Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
b72678f
fix: package json version
nitzanmorr Apr 19, 2026
4f6ef36
feat: add resolution threshold check to thresholds schema
nitzanmorr Apr 19, 2026
e726f0d
fix: bump version
nitzanmorr Apr 19, 2026
2587722
refactor!: change polygon part validation error to new format (MAPCO-…
shimoncohen Apr 26, 2026
61e08f4
feat: update package
RonitKissis Apr 26, 2026
af9d32b
refactor: add ingestion job types schema and update polygon parts sch…
vitaligi Apr 27, 2026
908bcfd
refactor: set release-please initial version (#185)
vitaligi Apr 29, 2026
3769756
refactor: set release-please initial version (#186)
vitaligi Apr 29, 2026
19b49ff
chore(alpha): release 8.0.0-alpha.0 (#182)
mapcolonies-devops Apr 30, 2026
f92cfb6
ci: adjust publish for alpha release (#187)
vitaligi Apr 30, 2026
5ec4eb5
ci: adjust publish for alpha release (#188)
vitaligi Apr 30, 2026
b5c342d
ci: adjust publish for alpha release (#189)
vitaligi Apr 30, 2026
8ee3e0f
ci: adjust publish for alpha release (#190)
vitaligi Apr 30, 2026
c87c428
feat: add tile deletion schemas and types, refactor source type (#191)
almog8k May 4, 2026
8aee6a9
chore(alpha): release 8.1.0-alpha.0 (#192)
mapcolonies-devops May 4, 2026
440f0c5
feat: add polygon parts schema and types for intersection api (#193)
vitaligi May 5, 2026
7ea1733
ci: modify release-please (#195)
vitaligi May 5, 2026
7140755
chore(alpha): release 8.1.0-alpha.1 (#194)
mapcolonies-devops May 5, 2026
772d90b
ci: correct version reference for prerelease publishing in workflow (…
vitaligi May 5, 2026
921db4d
feat: add tile schema and type exports to core index files (#197)
almog8k May 5, 2026
25785df
chore(alpha): release 8.1.0-alpha.2 (#198)
mapcolonies-devops May 5, 2026
383ac19
fix: simplify file extension handling in tilesDeletionParamsBaseSchem…
almog8k May 5, 2026
b8901f9
chore(alpha): release 8.1.0-alpha.3 (#200)
mapcolonies-devops May 5, 2026
be9953e
fix: update productId pattern (#201)
vitaligi May 18, 2026
860c53b
chore: merge master into alpha (keep alpha version)
almog8k Jun 25, 2026
191b61e
chore: set alpha version to 8.3.0-alpha.0 for layerDeletion epic
almog8k Jun 25, 2026
8d50c52
feat: add layer deletion schemas, types and constants (MAPCO-7285) (#…
almog8k Jun 29, 2026
74cd66c
feat: add keywords field to base raster layer metadata schema (MAPCO-…
roicohen326 Jun 30, 2026
0249907
feat: handle resource deletion (#213)
vitaligi Jul 7, 2026
55a5359
chore(alpha): release 8.3.0-alpha.1 (#215)
mapcolonies-devops Jul 7, 2026
c832749
feat: add subpath field to fsStorageSchema (#216)
almog8k Jul 27, 2026
3ef1047
chore(alpha): release 8.3.0-alpha.2 (#217)
mapcolonies-devops Jul 27, 2026
130f4d0
chore: release 8.3.0
almog8k Aug 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "8.1.0"
".": "8.3.0-alpha.2"
}
14 changes: 9 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,21 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [8.1.0](https://github.com/MapColonies/raster-shared/compare/v7.10.2...v8.1.0) (2026-05-18)
## [8.3.0-alpha.2](https://github.com/MapColonies/raster-shared/compare/v8.3.0-alpha.1...v8.3.0-alpha.2) (2026-07-27)


### Features

* add optional errors summary to ingestion validation schema ([#180](https://github.com/MapColonies/raster-shared/issues/180)) ([5b6f644](https://github.com/MapColonies/raster-shared/commit/5b6f644d0ff2cc7fff26ee6e26f5337b0e1eeb56))
* added raster shared types and values for lower resolution feature support ([#203](https://github.com/MapColonies/raster-shared/issues/203)) ([04090f0](https://github.com/MapColonies/raster-shared/commit/04090f012c2116b3de687ec5e84ecb5900cee4c3))
* add subpath field to fsStorageSchema ([#216](https://github.com/MapColonies/raster-shared/issues/216)) ([c832749](https://github.com/MapColonies/raster-shared/commit/c832749354c6e4b73fc3cc22cf3584e0ee5daec3))

## [8.3.0-alpha.1](https://github.com/MapColonies/raster-shared/compare/v8.3.0-alpha.0...v8.3.0-alpha.1) (2026-07-07)


* release 8.1.0 ([0eb47c3](https://github.com/MapColonies/raster-shared/commit/0eb47c348d4a79d9b4234900b1548d5a9c4e2e2c))
* update release version to 8.1.0 ([#205](https://github.com/MapColonies/raster-shared/issues/205)) ([3b60a4f](https://github.com/MapColonies/raster-shared/commit/3b60a4fa326add0b9ce70ca1af0a0e2d19f86ba8))
### Features

* add keywords field to base raster layer metadata schema (MAPCO-8284) ([#208](https://github.com/MapColonies/raster-shared/issues/208)) ([74cd66c](https://github.com/MapColonies/raster-shared/commit/74cd66c9ea23e6e1b57615dd70288e5cf38f79bf))
* add layer deletion schemas, types and constants (MAPCO-7285) ([#210](https://github.com/MapColonies/raster-shared/issues/210)) ([8d50c52](https://github.com/MapColonies/raster-shared/commit/8d50c52d45a0012b00ccfaca4381e3e5bfdf51e2))
* handle resource deletion ([#213](https://github.com/MapColonies/raster-shared/issues/213)) ([0249907](https://github.com/MapColonies/raster-shared/commit/0249907f87803ae1b1c8b274d66506d7d6fc3474))

## [8.1.0-alpha.3](https://github.com/MapColonies/raster-shared/compare/v8.1.0-alpha.2...v8.1.0-alpha.3) (2026-05-05)

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@map-colonies/raster-shared",
"version": "8.2.0",
"version": "8.3.0-alpha.2",
"description": "This is template for map colonies typescript packages",
"main": "./dist/index.js",
"exports": {
Expand Down
15 changes: 15 additions & 0 deletions src/constants/deletion/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* eslint-disable @typescript-eslint/naming-convention */
export const DeletionJobTypes = {
Delete_Layer: 'Delete_Layer',
} as const;

export type DeletionJobTypes = (typeof DeletionJobTypes)[keyof typeof DeletionJobTypes];

export const DeletionTaskTypes = {
Delete: 'delete',
LayerTilesDeletion: 'tiles-deletion',
ArtifactsDeletion: 'artifacts-deletion',
} as const;

export type DeletionTaskTypes = (typeof DeletionTaskTypes)[keyof typeof DeletionTaskTypes];
/* eslint-enable @typescript-eslint/naming-convention */
1 change: 1 addition & 0 deletions src/constants/deletion/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './constants';
1 change: 1 addition & 0 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './core';
export * from './ingestion';
export * from './export';
export * from './deletion';
3 changes: 3 additions & 0 deletions src/openapi/core/layerMetadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ components:
Description:
type: string
description: Layer's description
Keywords:
type: string
description: Layer's keywords
Footprint:
type: object
oneOf:
Expand Down
1 change: 1 addition & 0 deletions src/schemas/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ export * from './link.schema';
export * from './file.schema';
export * from './polygonParts.schema';
export * from './tile.schema';
export * from './storage.schema';
14 changes: 14 additions & 0 deletions src/schemas/core/storage.schema.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { z } from 'zod';
import { SourceType } from '../../constants/core/constants';

export const fsStorageSchema = z.object({
storageProvider: z.literal(SourceType.FS),
subPath: z.string().min(1),
});

export const s3StorageSchema = z.object({
storageProvider: z.literal(SourceType.S3),
bucket: z.string().min(1),
});

export const storageSchema = z.discriminatedUnion('storageProvider', [fsStorageSchema, s3StorageSchema]);
2 changes: 2 additions & 0 deletions src/schemas/deletion/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './task.schema';
export * from './job.schema';
7 changes: 7 additions & 0 deletions src/schemas/deletion/job.schema.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { z } from 'zod';

export const deleteLayerJobParamsSchema = z
.object({
approver: z.string(),
})
.describe('deleteLayerJobParamsSchema');
19 changes: 19 additions & 0 deletions src/schemas/deletion/task.schema.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { z } from 'zod';
import { storageSchema } from '../core';

export const deleteTaskParamsSchema = z
.object({
deleteFromCatalog: z.boolean().default(false),
deleteFromMapproxy: z.boolean().default(false),
deleteFromGeoserver: z.boolean().default(false),
deletePolygonParts: z.boolean().default(false),
})
.describe('deleteTaskParamsSchema');

export const deleteStoredResourcesParamsBaseSchema = z.object({
paths: z.array(z.string().min(1)).min(1),
});

export const deleteStoredResourcesParamsSchema = deleteStoredResourcesParamsBaseSchema
.and(storageSchema)
.describe('deleteStoredResourcesParamsSchema');
1 change: 1 addition & 0 deletions src/schemas/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './core';
export * from './ingestion';
export * from './export';
export * from './deletion';
1 change: 1 addition & 0 deletions src/schemas/ingestion/metadata.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const baseRasterLayerMetadataSchema = z
classification: z
.string()
.regex(new RegExp(INGESTION_VALIDATIONS.classification.pattern), { message: 'Classification value must be between 0 and 100' }),
keywords: z.string().optional(),
})
.describe('baseRasterLayerMetadataSchema');

Expand Down
1 change: 1 addition & 0 deletions src/types/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ export * from './file.type';
export * from './callback.type';
export * from './polygonParts.type';
export * from './tile.type';
export * from './storage.type';
1 change: 1 addition & 0 deletions src/types/core/metadata.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export type RasterLayerMetadata = {
minResolutionMeter: number;
productSubType?: string;
productBoundingBox?: string;
keywords?: string;
displayPath: string;
transparency: Transparency;
tileMimeFormat: TilesMimeFormat;
Expand Down
6 changes: 6 additions & 0 deletions src/types/core/storage.type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type { z } from 'zod';
import type { fsStorageSchema, s3StorageSchema, storageSchema } from '../../schemas';

export type FsStorage = z.infer<typeof fsStorageSchema>;
export type S3Storage = z.infer<typeof s3StorageSchema>;
export type Storage = z.infer<typeof storageSchema>;
2 changes: 2 additions & 0 deletions src/types/deletion/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './task.type';
export * from './job.type';
4 changes: 4 additions & 0 deletions src/types/deletion/job.type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import z from 'zod';
import { deleteLayerJobParamsSchema } from '../../schemas/deletion/job.schema';

export type DeleteLayerJobParams = z.infer<typeof deleteLayerJobParamsSchema>;
5 changes: 5 additions & 0 deletions src/types/deletion/task.type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import z from 'zod';
import { deleteTaskParamsSchema, deleteStoredResourcesParamsSchema } from '../../schemas/deletion/task.schema';

export type DeleteTaskParams = z.infer<typeof deleteTaskParamsSchema>;
export type DeleteStoredResourcesParams = z.infer<typeof deleteStoredResourcesParamsSchema>;
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './core';
export * from './ingestion';
export * from './export';
export * from './deletion';
Loading