Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 0 additions & 21 deletions package-lock.json

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

16 changes: 12 additions & 4 deletions src/models/common/decorators/wfs/wfs.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,22 @@ export enum JAVA_BINDINGS {
}

export interface IWFSMapping {
binding: JAVA_BINDINGS; // java type 'java.util.UUID'
name?: string; // property name that will be exposed by WFS service
minOccurs?: number;
maxOccurs?: number;
geoserver?: {
binding: JAVA_BINDINGS; // java type 'java.util.UUID'
name?: string; // property name that will be exposed by WFS service
minOccurs?: number;
maxOccurs?: number;
};
capabilitiesMapping?: {
xmlElement: string;
};
}

export interface IPropWFSMapping extends IWFSMapping {
prop: string; // prop name for convinience
}

export interface IWFSGeoServerMapping extends IWFSMapping, IPropWFSMapping {
source: string; // DB column name. IMPORTANT: Will be derived from catalogDB decorator metadata
nillable: boolean; // is nullable by DB definitions
}
Expand Down
17 changes: 14 additions & 3 deletions src/models/layerMetadata/decorators/property/tsTypes.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export interface IDescribeTsType {
importFromPackage?: string;
}

//****** IMPORTANT: ALL external enums which in use MUST be proxied by mc-models.
//****** In other words, enums MUST be imported in generated code(graphQL) from MC_MODELS ONLY,
//****** in order to be compliant to types package which in use by MC-MODELS
/* eslint-disable @typescript-eslint/naming-convention */
export const TsTypes = {
STRING: {
Expand Down Expand Up @@ -59,6 +62,14 @@ export const TsTypes = {
value: 'Link',
type: PropertiesTypes.ARRAY,
},
FEATURESTRUCTURE: {
value: 'VectorFeatureTypeStructure',
type: PropertiesTypes.CLASS,
},
FIELDFEATURETYPES: {
value: 'FieldFeatureType',
type: PropertiesTypes.ARRAY,
},
RECORDTYPE: {
value: 'RecordType',
type: PropertiesTypes.ENUM,
Expand Down Expand Up @@ -97,12 +108,12 @@ export const TsTypes = {
PRODUCTTYPE: {
value: 'ProductType',
type: PropertiesTypes.ENUM,
importFromPackage: '@map-colonies/types',
importFromPackage: '@map-colonies/mc-model-types',
},
TRANSPARENCY: {
value: 'Transparency',
type: PropertiesTypes.ENUM,
importFromPackage: '@map-colonies/types',
importFromPackage: '@map-colonies/mc-model-types',
},
TILE_OUTPUT_FORMAT: {
value: 'TileOutputFormat',
Expand All @@ -112,7 +123,7 @@ export const TsTypes = {
RECORD_STATUS: {
value: 'RecordStatus',
type: PropertiesTypes.ENUM,
importFromPackage: '@map-colonies/types',
importFromPackage: '@map-colonies/mc-model-types',
},
} satisfies Record<string, IDescribeTsType>;

Expand Down
3 changes: 2 additions & 1 deletion src/models/layerMetadata/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export { IOrmCatalog } from '../common/interfaces/ormCatalog.interface';
export * from './pycswLayerCatalogRecord';
export * from './pycsw3DCatalogRecord';
export * from './pycswDEMCatalogRecord';
export * from './pycswVectorBestCatalogRecord';
export * from './vectorBestMetadata';
export * from './pycswQuantizedMeshBestCatalogRecord';
export * from './vectorFeatureTypeStructure';
export * from './enums';
Loading