Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e05271c
feat: common enums
EllaMartirosyan Oct 12, 2026
9588a9d
fix: code review
EllaMartirosyan Oct 15, 2026
d5ec3dc
chore: fix
EllaMartirosyan Oct 15, 2026
ecbb8fc
chore: fix
EllaMartirosyan Oct 15, 2026
622593c
fix: not permitted computed values
EllaMartirosyan Oct 15, 2026
7f9e0cd
chore: remove unused
EllaMartirosyan Oct 15, 2026
abe7fe3
chore: fix
EllaMartirosyan Oct 15, 2026
904641f
chore: fix enum union
EllaMartirosyan Oct 18, 2026
a9c90d7
fix: for Assaf
EllaMartirosyan Oct 19, 2026
e9c4633
fix: for 3D
EllaMartirosyan Oct 19, 2026
4f8edb9
fix: for vitali
EllaMartirosyan Oct 19, 2026
788ceb0
fix: wcs
EllaMartirosyan Oct 19, 2026
aca06a0
chore: fix
EllaMartirosyan Oct 19, 2026
308eade
chore: add UT
EllaMartirosyan Oct 19, 2026
d474a4c
fix: eslint
EllaMartirosyan Oct 19, 2026
4a81350
fix: eslint
EllaMartirosyan Oct 19, 2026
30692ab
Merge branch 'master' into basemap-management
EllaMartirosyan Oct 19, 2026
2fdf855
fix: code review
EllaMartirosyan Oct 20, 2026
6b314b7
fix: split into files
EllaMartirosyan Oct 20, 2026
719d5f6
fix: eslint
EllaMartirosyan Oct 20, 2026
f5246e5
fix: eslint
EllaMartirosyan Oct 20, 2026
7c1c41f
fix: prettier
EllaMartirosyan Oct 20, 2026
0d2295b
fix: eslint
EllaMartirosyan Oct 20, 2026
7c90393
fix: sync export with new enums
EllaMartirosyan Oct 20, 2026
fbf80b0
fix: naming convention and 2 new protocols
EllaMartirosyan Oct 20, 2026
8ed619d
fix: eslint
EllaMartirosyan Oct 20, 2026
654cbf5
fix: prettier
EllaMartirosyan Oct 20, 2026
9171032
fix: vector tiles
EllaMartirosyan Oct 21, 2026
2576a40
chore: fix
EllaMartirosyan Oct 25, 2026
15263ea
fix: should move to mc-models
EllaMartirosyan Oct 26, 2026
64d4d24
fix: unit test
EllaMartirosyan Oct 26, 2026
0994cd5
fix: prettier
EllaMartirosyan Oct 26, 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
45 changes: 24 additions & 21 deletions src/enums/common/artifact.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
export enum ArtifactDEMType {
MODEL = 'MODEL',
METADATA = 'METADATA',
ROI = 'ROI',
LEGEND = 'LEGEND',
}
/* eslint-disable @typescript-eslint/naming-convention */
import { LegendLinkType, ThumbnailLinkType } from './metadata/linkType';

export enum ArtifactRasterType {
GPKG = 'GPKG',
LEGEND = 'LEGEND',
METADATA = 'METADATA',
THUMBNAILS_SMALL = 'THUMBNAILS_SMALL',
THUMBNAILS_MEDIUM = 'THUMBNAILS_MEDIUM',
THUMBNAILS_LARGE = 'THUMBNAILS_LARGE',
}
export const ArtifactDEMType = {
MODEL: 'MODEL',
METADATA: 'METADATA',
ROI: 'ROI',
...LegendLinkType,
} as const;
export type ArtifactDEMType = (typeof ArtifactDEMType)[keyof typeof ArtifactDEMType];

export enum Artifact3DType {
MODEL_3D = 'MODEL_3D',
METADATA = 'METADATA',
THUMBNAILS_SMALL = 'THUMBNAILS_SMALL',
THUMBNAILS_MEDIUM = 'THUMBNAILS_MEDIUM',
THUMBNAILS_LARGE = 'THUMBNAILS_LARGE',
}
export const ArtifactRasterType = {
GPKG: 'GPKG',
METADATA: 'METADATA',
...LegendLinkType,
...ThumbnailLinkType,
} as const;
export type ArtifactRasterType = (typeof ArtifactRasterType)[keyof typeof ArtifactRasterType];

export const Artifact3DType = {
MODEL_3D: 'MODEL_3D',
METADATA: 'METADATA',
...ThumbnailLinkType,
} as const;
export type Artifact3DType = (typeof Artifact3DType)[keyof typeof Artifact3DType];
/* eslint-enable @typescript-eslint/naming-convention */
62 changes: 1 addition & 61 deletions src/enums/common/metadata/linkType.ts
Original file line number Diff line number Diff line change
@@ -1,61 +1 @@
import { DemProtocolType, RasterProtocolType, ThreeDProtocolType, VectorProtocolType } from './protocolType';

/* eslint-disable @typescript-eslint/naming-convention */

export const ThumbnailLinkType = {
THUMBNAIL_S: 'THUMBNAIL_S',
THUMBNAIL_M: 'THUMBNAIL_M',
THUMBNAIL_L: 'THUMBNAIL_L',
} as const;
export type ThumbnailLinkType = (typeof ThumbnailLinkType)[keyof typeof ThumbnailLinkType];

export const LegendLinkType = {
LEGEND_DOC: 'LEGEND_DOC',
LEGEND_IMG: 'LEGEND_IMG',
} as const;
export type LegendLinkType = (typeof LegendLinkType)[keyof typeof LegendLinkType];

export const AssetLinkType = {
...ThumbnailLinkType,
...LegendLinkType,
} as const;
export type AssetLinkType = (typeof AssetLinkType)[keyof typeof AssetLinkType];

export const RasterLinkType = {
WMTS_KVP: 'WMTS_KVP',
WMTS_BASE: 'WMTS_BASE',
WMS_BASE: 'WMS_BASE',
WMTS: RasterProtocolType.WMTS,
WMS: RasterProtocolType.WMS,
WFS: RasterProtocolType.WFS,
...AssetLinkType,
} as const;
export type RasterLinkType = (typeof RasterLinkType)[keyof typeof RasterLinkType];

export const ThreeDLinkType = {
...ThreeDProtocolType,
...ThumbnailLinkType,
} as const;
export type ThreeDLinkType = (typeof ThreeDLinkType)[keyof typeof ThreeDLinkType];

export const DemLinkType = {
...DemProtocolType,
...ThumbnailLinkType,
DOWNLOAD: 'DOWNLOAD',
} as const;
export type DemLinkType = (typeof DemLinkType)[keyof typeof DemLinkType];

export const VectorLinkType = {
...VectorProtocolType,
} as const;
export type VectorLinkType = (typeof VectorLinkType)[keyof typeof VectorLinkType];

export const LinkType = {
...RasterLinkType,
...ThreeDLinkType,
...DemLinkType,
...VectorLinkType,
} as const;
export type LinkType = RasterLinkType | ThreeDLinkType | DemLinkType | VectorLinkType;

/* eslint-enable @typescript-eslint/naming-convention */
export * from './linkType/common';
11 changes: 11 additions & 0 deletions src/enums/common/metadata/linkType/DemLinkType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { DemProtocolType } from '../protocolType/DemProtocolType';
import { ThumbnailLinkType } from './common';

export const DemLinkType = {
...DemProtocolType,
...ThumbnailLinkType,
DOWNLOAD: 'DOWNLOAD',
} as const;
export type DemLinkType = (typeof DemLinkType)[keyof typeof DemLinkType];
/* eslint-enable @typescript-eslint/naming-convention */
13 changes: 13 additions & 0 deletions src/enums/common/metadata/linkType/RasterLinkType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { RasterProtocolType } from '../protocolType/RasterProtocolType';
import { AssetLinkType } from './common';

export const RasterLinkType = {
WMTS_KVP: 'WMTS_KVP',
WMTS_BASE: 'WMTS_BASE',
WMS_BASE: 'WMS_BASE',
...RasterProtocolType,
...AssetLinkType,
} as const;
export type RasterLinkType = (typeof RasterLinkType)[keyof typeof RasterLinkType];
/* eslint-enable @typescript-eslint/naming-convention */
10 changes: 10 additions & 0 deletions src/enums/common/metadata/linkType/ThreeDLinkType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { ThreeDProtocolType } from '../protocolType/ThreeDProtocolType';
import { ThumbnailLinkType } from './common';

export const ThreeDLinkType = {
...ThreeDProtocolType,
...ThumbnailLinkType,
} as const;
export type ThreeDLinkType = (typeof ThreeDLinkType)[keyof typeof ThreeDLinkType];
/* eslint-enable @typescript-eslint/naming-convention */
8 changes: 8 additions & 0 deletions src/enums/common/metadata/linkType/VectorLinkType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { VectorProtocolType } from '../protocolType/VectorProtocolType';

export const VectorLinkType = {
...VectorProtocolType,
} as const;
export type VectorLinkType = (typeof VectorLinkType)[keyof typeof VectorLinkType];
/* eslint-enable @typescript-eslint/naming-convention */
20 changes: 20 additions & 0 deletions src/enums/common/metadata/linkType/common.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* eslint-disable @typescript-eslint/naming-convention */
export const ThumbnailLinkType = {
THUMBNAIL_S: 'THUMBNAIL_S',
THUMBNAIL_M: 'THUMBNAIL_M',
THUMBNAIL_L: 'THUMBNAIL_L',
} as const;
export type ThumbnailLinkType = (typeof ThumbnailLinkType)[keyof typeof ThumbnailLinkType];

export const LegendLinkType = {
LEGEND_DOC: 'LEGEND_DOC',
LEGEND_IMG: 'LEGEND_IMG',
} as const;
export type LegendLinkType = (typeof LegendLinkType)[keyof typeof LegendLinkType];

export const AssetLinkType = {
...ThumbnailLinkType,
...LegendLinkType,
} as const;
export type AssetLinkType = (typeof AssetLinkType)[keyof typeof AssetLinkType];
/* eslint-enable @typescript-eslint/naming-convention */
58 changes: 26 additions & 32 deletions src/enums/common/metadata/protocolType.ts
Original file line number Diff line number Diff line change
@@ -1,36 +1,30 @@
export enum RasterProtocolType {
WMS = 'WMS',
WMTS = 'WMTS',
XYZ = 'XYZ',
OSM = 'OSM',
WFS = 'WFS',
}

export enum ThreeDProtocolType {
COPC = 'COPC',
THREE_D_TILES = '3DTiles',
TERRAIN_QMESH = 'TERRAIN_QMESH',
WFS = 'WFS',
}

export enum DemProtocolType {
WMTS = 'WMTS',
TERRAIN_QMESH = 'TERRAIN_QMESH',
WFS = 'WFS',
WCS = 'WCS',
}

export enum VectorProtocolType {
WMTS = 'WMTS',
WFS = 'WFS',
VECTOR_TILES = 'VECTOR_TILES',
}
import {
OGC_ImageryProtocolType,
OGC_ThreeDProtocolType,
OGC_VectorProtocolType,
OPEN_ThreeDProtocolType,
OPEN_VectorProtocolType,
PROPRIETARY_DemProtocolType,
PROPRIETARY_ImageryProtocolType,
} from './protocolType/common';

// eslint-disable-next-line @typescript-eslint/naming-convention
export const ProtocolType = {
...RasterProtocolType,
...ThreeDProtocolType,
...DemProtocolType,
...VectorProtocolType,
...OGC_ImageryProtocolType,
...PROPRIETARY_ImageryProtocolType,
...OGC_VectorProtocolType,
...OPEN_VectorProtocolType,
...OGC_ThreeDProtocolType,
...OPEN_ThreeDProtocolType,
...PROPRIETARY_DemProtocolType,
} as const;
export type ProtocolType = RasterProtocolType | ThreeDProtocolType | DemProtocolType | VectorProtocolType;
export type ProtocolType =
| import('./protocolType/common').OGC_ImageryProtocolType
| import('./protocolType/common').PROPRIETARY_ImageryProtocolType
| import('./protocolType/common').OGC_VectorProtocolType
| import('./protocolType/common').OPEN_VectorProtocolType
| import('./protocolType/common').OGC_ThreeDProtocolType
| import('./protocolType/common').OPEN_ThreeDProtocolType
| import('./protocolType/common').PROPRIETARY_DemProtocolType;

export * from './protocolType/common';
11 changes: 11 additions & 0 deletions src/enums/common/metadata/protocolType/DemProtocolType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { OGC_ImageryProtocolType, OGC_VectorProtocolType, PROPRIETARY_DemProtocolType } from './common';

export const DemProtocolType = {
WMTS: OGC_ImageryProtocolType.WMTS,
TERRAIN_QMESH: PROPRIETARY_DemProtocolType.TERRAIN_QMESH,
WFS: OGC_VectorProtocolType.WFS,
WCS: OGC_ImageryProtocolType.WCS,
} as const;
export type DemProtocolType = (typeof DemProtocolType)[keyof typeof DemProtocolType];
/* eslint-enable @typescript-eslint/naming-convention */
10 changes: 10 additions & 0 deletions src/enums/common/metadata/protocolType/RasterProtocolType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { OGC_ImageryProtocolType, OGC_VectorProtocolType } from './common';

export const RasterProtocolType = {
WMTS: OGC_ImageryProtocolType.WMTS,
WMS: OGC_ImageryProtocolType.WMS,
WFS: OGC_VectorProtocolType.WFS,
} as const;
export type RasterProtocolType = (typeof RasterProtocolType)[keyof typeof RasterProtocolType];
/* eslint-enable @typescript-eslint/naming-convention */
11 changes: 11 additions & 0 deletions src/enums/common/metadata/protocolType/ThreeDProtocolType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { OGC_ThreeDProtocolType, OGC_VectorProtocolType, OPEN_ThreeDProtocolType, PROPRIETARY_DemProtocolType } from './common';

export const ThreeDProtocolType = {
COPC: OPEN_ThreeDProtocolType.COPC,
THREE_D_TILES: OGC_ThreeDProtocolType.THREE_D_TILES,
TERRAIN_QMESH: PROPRIETARY_DemProtocolType.TERRAIN_QMESH,
WFS: OGC_VectorProtocolType.WFS,
} as const;
export type ThreeDProtocolType = (typeof ThreeDProtocolType)[keyof typeof ThreeDProtocolType];
/* eslint-enable @typescript-eslint/naming-convention */
10 changes: 10 additions & 0 deletions src/enums/common/metadata/protocolType/VectorProtocolType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { OGC_ImageryProtocolType, OGC_VectorProtocolType, OPEN_VectorProtocolType } from './common';

export const VectorProtocolType = {
WMTS: OGC_ImageryProtocolType.WMTS,
WFS: OGC_VectorProtocolType.WFS,
VECTOR_TILES: OPEN_VectorProtocolType.VECTOR_TILES,
} as const;
export type VectorProtocolType = (typeof VectorProtocolType)[keyof typeof VectorProtocolType];
/* eslint-enable @typescript-eslint/naming-convention */
52 changes: 52 additions & 0 deletions src/enums/common/metadata/protocolType/common.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/* eslint-disable @typescript-eslint/naming-convention */

/*
Category Reference Guide:

OGC: Open Geospatial Consortium Certified Open Industry Standard.
STD: Ubiquitous/De Facto Web Specification Standard.
OPEN: Open-Source or Open-Access Specification Format.
PROPRIETARY: Proprietary Corporate API / Enterprise Network Service Protocol.
INTERNAL: Embedded Cesium Core Debugging or Algorithmic Runtime Component.
*/

export const OGC_ImageryProtocolType = {
WMS: 'WMS',
WMTS: 'WMTS',
XYZ: 'XYZ',
WCS: 'WCS',
} as const;
export type OGC_ImageryProtocolType = (typeof OGC_ImageryProtocolType)[keyof typeof OGC_ImageryProtocolType];

export const PROPRIETARY_ImageryProtocolType = {
OSM: 'OSM',
MAPBOX_STYLE: 'MAPBOX_STYLE',
BING_MAPS: 'BING_MAPS',
} as const;
export type PROPRIETARY_ImageryProtocolType = (typeof PROPRIETARY_ImageryProtocolType)[keyof typeof PROPRIETARY_ImageryProtocolType];

export const OGC_VectorProtocolType = {
WFS: 'WFS',
} as const;
export type OGC_VectorProtocolType = (typeof OGC_VectorProtocolType)[keyof typeof OGC_VectorProtocolType];

export const OPEN_VectorProtocolType = {
VECTOR_TILES: 'VECTOR_TILES',
} as const;
export type OPEN_VectorProtocolType = (typeof OPEN_VectorProtocolType)[keyof typeof OPEN_VectorProtocolType];

export const OGC_ThreeDProtocolType = {
THREE_D_TILES: '3DTiles',
} as const;
export type OGC_ThreeDProtocolType = (typeof OGC_ThreeDProtocolType)[keyof typeof OGC_ThreeDProtocolType];

export const OPEN_ThreeDProtocolType = {
COPC: 'COPC',
} as const;
export type OPEN_ThreeDProtocolType = (typeof OPEN_ThreeDProtocolType)[keyof typeof OPEN_ThreeDProtocolType];

export const PROPRIETARY_DemProtocolType = {
TERRAIN_QMESH: 'TERRAIN_QMESH',
} as const;
export type PROPRIETARY_DemProtocolType = (typeof PROPRIETARY_DemProtocolType)[keyof typeof PROPRIETARY_DemProtocolType];
/* eslint-enable @typescript-eslint/naming-convention */
Loading
Loading