Skip to content

Commit

Permalink
fix: rename dem classes to camel case format (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
alebinson authored Dec 19, 2021
1 parent 8f5b925 commit c5e285c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
22 changes: 11 additions & 11 deletions src/models/layerMetadata/layerDEMMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -969,22 +969,22 @@ export class LayerDEMMetadata implements ILayerMetadata, IMetadataCommonModel {
//#endregion

public static getPyCSWMapping(prop: string): IPYCSWMapping | undefined {
return getPyCSWMapping<LayerDEMMetadata>(new LayerDEMMetadata(), prop);
return getPyCSWMapping<LayerDemMetadata>(new LayerDemMetadata(), prop);
}

public static getCatalogDBMapping(prop: string): ICatalogDBMapping | undefined {
return getCatalogDBMapping<LayerDEMMetadata>(new LayerDEMMetadata(), prop);
return getCatalogDBMapping<LayerDemMetadata>(new LayerDemMetadata(), prop);
}

public static getFieldConfig(prop: string): IFieldConfigInfo | undefined {
return getFieldConfig<LayerDEMMetadata>(new LayerDEMMetadata(), prop);
return getFieldConfig<LayerDemMetadata>(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<LayerDEMMetadata>(layer, prop);
const pycswMap = getPyCSWMapping<LayerDemMetadata>(layer, prop);
if (pycswMap) {
ret.push({
prop: prop,
Expand All @@ -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<LayerDEMMetadata>(layer, prop);
const tsTypesMap = getTsTypesMapping<LayerDEMMetadata>(layer, prop);
const catalogDbMap = getCatalogDBMapping<LayerDemMetadata>(layer, prop);
const tsTypesMap = getTsTypesMapping<LayerDemMetadata>(layer, prop);
if (catalogDbMap && tsTypesMap) {
ret.push({
prop: prop,
Expand All @@ -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<LayerDEMMetadata>(layer, prop);
const fieldConfigMap = getFieldConfig<LayerDemMetadata>(layer, prop);
if (fieldConfigMap) {
ret.push({
prop: prop,
Expand Down
16 changes: 8 additions & 8 deletions src/models/layerMetadata/pycswDEMCatalogRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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<PycswDEMCatalogRecord>(layer, prop);
const pycswMap = getPyCSWMapping<PycswDemCatalogRecord>(layer, prop);
if (pycswMap) {
ret.push({
prop: prop,
Expand All @@ -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<PycswDEMCatalogRecord>(layer, prop);
const fieldConfigMap = getFieldConfig<PycswDemCatalogRecord>(layer, prop);
if (fieldConfigMap) {
const fieldConfig = { prop: prop, ...fieldConfigMap };
if (fieldConfigMap.complexType) {
Expand Down Expand Up @@ -301,6 +301,6 @@ export class PycswDEMCatalogRecord extends LayerDEMMetadata implements IPycswCor
}

public getORMCatalogEntityMappings(): ICatalogDBEntityMapping {
return getCatalogDBEntityMapping(PycswDEMCatalogRecord);
return getCatalogDBEntityMapping(PycswDemCatalogRecord);
}
}

0 comments on commit c5e285c

Please sign in to comment.