diff --git a/src/models/layerMetadata/layerDEMMetadata.ts b/src/models/layerMetadata/layerDEMMetadata.ts index a77fc53..7fda2c8 100644 --- a/src/models/layerMetadata/layerDEMMetadata.ts +++ b/src/models/layerMetadata/layerDEMMetadata.ts @@ -35,7 +35,7 @@ export interface IPropPYCSWMapping extends IPYCSWMapping { prop: string; } -export class LayerDEMMetadata implements ILayerMetadata, IMetadataCommonModel { +export class LayerDemMetadata implements ILayerMetadata, IMetadataCommonModel { //#region COMMON FIELDS //#region COMMON: type @pycsw({ @@ -969,22 +969,22 @@ export class LayerDEMMetadata implements ILayerMetadata, IMetadataCommonModel { //#endregion public static getPyCSWMapping(prop: string): IPYCSWMapping | undefined { - return getPyCSWMapping(new LayerDEMMetadata(), prop); + return getPyCSWMapping(new LayerDemMetadata(), prop); } public static getCatalogDBMapping(prop: string): ICatalogDBMapping | undefined { - return getCatalogDBMapping(new LayerDEMMetadata(), prop); + return getCatalogDBMapping(new LayerDemMetadata(), prop); } public static getFieldConfig(prop: string): IFieldConfigInfo | undefined { - return getFieldConfig(new LayerDEMMetadata(), prop); + return getFieldConfig(new LayerDemMetadata(), prop); } public static getPyCSWMappings(): IPropPYCSWMapping[] { const ret = []; - const layer = new LayerDEMMetadata(); + const layer = new LayerDemMetadata(); for (const prop in layer) { - const pycswMap = getPyCSWMapping(layer, prop); + const pycswMap = getPyCSWMapping(layer, prop); if (pycswMap) { ret.push({ prop: prop, @@ -997,10 +997,10 @@ export class LayerDEMMetadata implements ILayerMetadata, IMetadataCommonModel { public static getCatalogDBMappings(): IPropCatalogDBMapping[] { const ret = []; - const layer = new LayerDEMMetadata(); + const layer = new LayerDemMetadata(); for (const prop in layer) { - const catalogDbMap = getCatalogDBMapping(layer, prop); - const tsTypesMap = getTsTypesMapping(layer, prop); + const catalogDbMap = getCatalogDBMapping(layer, prop); + const tsTypesMap = getTsTypesMapping(layer, prop); if (catalogDbMap && tsTypesMap) { ret.push({ prop: prop, @@ -1014,9 +1014,9 @@ export class LayerDEMMetadata implements ILayerMetadata, IMetadataCommonModel { public static getFieldConfigs(): IPropFieldConfigInfo[] { const ret = []; - const layer = new LayerDEMMetadata(); + const layer = new LayerDemMetadata(); for (const prop in layer) { - const fieldConfigMap = getFieldConfig(layer, prop); + const fieldConfigMap = getFieldConfig(layer, prop); if (fieldConfigMap) { ret.push({ prop: prop, diff --git a/src/models/layerMetadata/pycswDEMCatalogRecord.ts b/src/models/layerMetadata/pycswDEMCatalogRecord.ts index 20f0164..c727b2a 100644 --- a/src/models/layerMetadata/pycswDEMCatalogRecord.ts +++ b/src/models/layerMetadata/pycswDEMCatalogRecord.ts @@ -9,15 +9,15 @@ import { catalogDB, getCatalogDBMapping } from './decorators/property/catalogDB. import { getTsTypesMapping, TsTypes, tsTypes } from './decorators/property/tsTypes.decorator'; import { getCatalogDBEntityMapping, catalogDBEntity, ICatalogDBEntityMapping } from './decorators/class/catalogDBEntity.decorator'; import { getPyCSWMapping, pycsw } from './decorators/property/csw.decorator'; -import { LayerDEMMetadata, IPropPYCSWMapping } from './layerDEMMetadata'; +import { LayerDemMetadata, IPropPYCSWMapping } from './layerDEMMetadata'; import { Link } from './link'; @catalogDBEntity({ table: 'records', className: 'Metadata', }) -@graphqlClass({ alias: 'LayerDEMRecord' }) -export class PycswDEMCatalogRecord extends LayerDEMMetadata implements IPycswCoreModel, IOrmCatalog { +@graphqlClass({ alias: 'LayerDemRecord' }) +export class PycswDemCatalogRecord extends LayerDemMetadata implements IPycswCoreModel, IOrmCatalog { //#region CORE: id @pycsw({ profile: 'mc_dem', @@ -254,9 +254,9 @@ export class PycswDEMCatalogRecord extends LayerDEMMetadata implements IPycswCor public static getPyCSWMappings(): IPropPYCSWMapping[] { const ret = []; - const layer = new PycswDEMCatalogRecord(); + const layer = new PycswDemCatalogRecord(); for (const prop in layer) { - const pycswMap = getPyCSWMapping(layer, prop); + const pycswMap = getPyCSWMapping(layer, prop); if (pycswMap) { ret.push({ prop: prop, @@ -269,9 +269,9 @@ export class PycswDEMCatalogRecord extends LayerDEMMetadata implements IPycswCor public static getFieldConfigs(): IPropFieldConfigInfo[] { const ret = []; - const layer = new PycswDEMCatalogRecord(); + const layer = new PycswDemCatalogRecord(); for (const prop in layer) { - const fieldConfigMap = getFieldConfig(layer, prop); + const fieldConfigMap = getFieldConfig(layer, prop); if (fieldConfigMap) { const fieldConfig = { prop: prop, ...fieldConfigMap }; if (fieldConfigMap.complexType) { @@ -301,6 +301,6 @@ export class PycswDEMCatalogRecord extends LayerDEMMetadata implements IPycswCor } public getORMCatalogEntityMappings(): ICatalogDBEntityMapping { - return getCatalogDBEntityMapping(PycswDEMCatalogRecord); + return getCatalogDBEntityMapping(PycswDemCatalogRecord); } }