Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cleanup inputmapping decorator not relevant #231

Merged
merged 1 commit into from
Nov 13, 2024
Merged
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
85 changes: 1 addition & 84 deletions src/models/layerMetadata/layerMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { NewRasterLayerMetadata, UpdateRasterLayerMetadata } from '../raster/ing
import { VALIDATIONS } from '../raster/constants';
import { IMetadataCommonModel } from './interfaces/metadataCommonModel';
import { getPyCSWMapping, IPYCSWMapping, pycsw } from './decorators/property/csw.decorator';
import { getInputDataMapping, IDataMapping, DataFileType, inputDataMapping, IPropSHPMapping } from './decorators/property/shp.decorator';
import { getInputDataMapping, IDataMapping, IPropSHPMapping } from './decorators/property/shp.decorator';
import { getCatalogDBMapping, ICatalogDBMapping, catalogDB, ORMColumnType } from './decorators/property/catalogDB.decorator';
import { getTsTypesMapping, tsTypes, TsTypes } from './decorators/property/tsTypes.decorator';
import { ProductType, Transparency, TileOutputFormat } from './enums';
Expand Down Expand Up @@ -151,10 +151,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
nullable: true,
},
})
@inputDataMapping({
dataFile: DataFileType.SHAPE_METADATA,
valuePath: 'features[0].properties.SourceName',
})
@tsTypes({
mappingType: TsTypes.STRING,
})
Expand Down Expand Up @@ -187,10 +183,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
nullable: true,
},
})
@inputDataMapping({
dataFile: DataFileType.SHAPE_METADATA,
valuePath: 'features[0].properties.Dsc',
})
@tsTypes({
mappingType: TsTypes.STRING,
})
Expand Down Expand Up @@ -336,11 +328,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
columnType: ORMColumnType.UPDATE_DATE_COLUMN,
},
})
@inputDataMapping({
isCustomLogic: true,
dataFile: DataFileType.SHAPE_METADATA,
valuePath: '***max(features[].properties.UpdateDate)***',
})
@tsTypes({
mappingType: TsTypes.DATE,
})
Expand Down Expand Up @@ -370,11 +357,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
nullable: false,
},
})
@inputDataMapping({
isCustomLogic: true,
dataFile: DataFileType.SHAPE_METADATA,
valuePath: '***min(features[].properties.UpdateDate)***',
})
@tsTypes({
mappingType: TsTypes.DATE,
})
Expand Down Expand Up @@ -419,11 +401,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
nullable: false,
},
})
@inputDataMapping({
isCustomLogic: true,
dataFile: DataFileType.SHAPE_METADATA,
valuePath: '***max(features[].properties.UpdateDate)***',
})
@tsTypes({
mappingType: TsTypes.DATE,
})
Expand Down Expand Up @@ -457,10 +434,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
type: 'real',
},
})
@inputDataMapping({
dataFile: DataFileType.SHAPE_METADATA,
valuePath: 'features[0].properties.Ep90',
})
@tsTypes({
mappingType: TsTypes.NUMBER,
})
Expand Down Expand Up @@ -504,10 +477,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
type: 'real',
},
})
@inputDataMapping({
dataFile: DataFileType.SHAPE_METADATA,
valuePath: 'features[0].properties.Ep90',
})
@tsTypes({
mappingType: TsTypes.NUMBER,
})
Expand Down Expand Up @@ -554,11 +523,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
overrideType: TsTypes.STRING,
},
})
@inputDataMapping({
isCustomLogic: true,
dataFile: DataFileType.SHAPE_METADATA,
valuePath: '***features[].properties.SensorType***',
})
@tsTypes({
mappingType: TsTypes.STRING_ARRAY,
})
Expand Down Expand Up @@ -595,11 +559,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
overrideType: TsTypes.STRING,
},
})
@inputDataMapping({
isCustomLogic: true,
dataFile: DataFileType.SHAPE_METADATA,
valuePath: '***features[].properties.Countries***',
})
@tsTypes({
mappingType: TsTypes.STRING_ARRAY,
})
Expand Down Expand Up @@ -637,11 +596,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
nullable: false,
},
})
@inputDataMapping({
isCustomLogic: true,
dataFile: DataFileType.SHAPE_METADATA,
valuePath: '***features[0].properties.Source.Split(-)[0]***',
})
@tsTypes({
mappingType: TsTypes.STRING,
})
Expand Down Expand Up @@ -680,11 +634,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
nullable: true,
},
})
@inputDataMapping({
isCustomLogic: true,
dataFile: DataFileType.SHAPE_METADATA,
valuePath: '***features[0].properties.Source.Split(-)[1]***',
})
@tsTypes({
mappingType: TsTypes.STRING,
})
Expand Down Expand Up @@ -723,10 +672,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
nullable: false,
},
})
@inputDataMapping({
dataFile: DataFileType.PRODUCT,
valuePath: 'features[0].properties.Type',
})
@tsTypes({
mappingType: TsTypes.PRODUCTTYPE,
})
Expand Down Expand Up @@ -823,10 +768,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
type: 'numeric',
},
})
@inputDataMapping({
dataFile: DataFileType.TFW,
valuePath: '[0]',
})
@tsTypes({
mappingType: TsTypes.NUMBER,
})
Expand Down Expand Up @@ -875,10 +816,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
type: 'numeric',
},
})
@inputDataMapping({
dataFile: DataFileType.TFW,
valuePath: '[0]',
})
@tsTypes({
mappingType: TsTypes.NUMBER,
})
Expand Down Expand Up @@ -927,10 +864,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
type: 'numeric',
},
})
@inputDataMapping({
dataFile: DataFileType.SHAPE_METADATA,
valuePath: 'features[0].properties.Resolution',
})
@tsTypes({
mappingType: TsTypes.NUMBER,
})
Expand Down Expand Up @@ -974,10 +907,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
type: 'numeric',
},
})
@inputDataMapping({
dataFile: DataFileType.SHAPE_METADATA,
valuePath: 'features[0].properties.Resolution',
})
@tsTypes({
mappingType: TsTypes.NUMBER,
})
Expand Down Expand Up @@ -1022,10 +951,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
nullable: true,
},
})
@inputDataMapping({
dataFile: DataFileType.SHAPE_METADATA,
valuePath: 'features[0].properties.Rms',
})
@tsTypes({
mappingType: TsTypes.NUMBER,
})
Expand All @@ -1049,10 +974,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
nullable: true,
},
})
@inputDataMapping({
dataFile: DataFileType.SHAPE_METADATA,
valuePath: 'features[0].properties.Scale',
})
@tsTypes({
mappingType: TsTypes.NUMBER,
})
Expand Down Expand Up @@ -1094,10 +1015,6 @@ export class LayerMetadata implements ILayerMetadata, IMetadataCommonModel {
nullable: false,
},
})
@inputDataMapping({
dataFile: DataFileType.PRODUCT,
valuePath: 'features[0].geometry',
})
@tsTypes({
mappingType: TsTypes.OBJECT,
})
Expand Down
Loading