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

feat!: Update raster CSW record to new design (MAPCO-4265, MAPCO-4232) #186

Merged
merged 12 commits into from
May 20, 2024
3 changes: 3 additions & 0 deletions src/models/layerMetadata/bestMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { GeoJSON } from 'geojson';
import { IPropCatalogDBMapping } from '../common/interfaces/propCatalogDBMapping.interface';
import { graphql } from '../common/decorators/graphQL/graphql.decorator';

Check warning on line 3 in src/models/layerMetadata/bestMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/bestMetadata.ts#L3

'graphql' is defined but never used (@typescript-eslint/no-unused-vars)
import {
FieldCategory,

Check warning on line 5 in src/models/layerMetadata/bestMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/bestMetadata.ts#L5

'FieldCategory' is defined but never used (@typescript-eslint/no-unused-vars)
fieldConfig,

Check warning on line 6 in src/models/layerMetadata/bestMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/bestMetadata.ts#L6

'fieldConfig' is defined but never used (@typescript-eslint/no-unused-vars)
getFieldConfig,
IFieldConfigInfo,
IPropFieldConfigInfo,
} from '../common/decorators/fieldConfig/fieldConfig.decorator';
import { RecordType } from '../pycsw/coreEnums';
import { IMetadataCommonModel } from './interfaces/metadataCommonModel';
import { getPyCSWMapping, IPYCSWMapping, pycsw } from './decorators/property/csw.decorator';

Check warning on line 13 in src/models/layerMetadata/bestMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/bestMetadata.ts#L13

'pycsw' is defined but never used (@typescript-eslint/no-unused-vars)
import { getInputDataMapping, IDataMapping, DataFileType, inputDataMapping, IPropSHPMapping } from './decorators/property/shp.decorator';

Check warning on line 14 in src/models/layerMetadata/bestMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/bestMetadata.ts#L14

'DataFileType' is defined but never used (@typescript-eslint/no-unused-vars)

Check warning on line 14 in src/models/layerMetadata/bestMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/bestMetadata.ts#L14

'inputDataMapping' is defined but never used (@typescript-eslint/no-unused-vars)
import { getCatalogDBMapping, ICatalogDBMapping, catalogDB } from './decorators/property/catalogDB.decorator';

Check warning on line 15 in src/models/layerMetadata/bestMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/bestMetadata.ts#L15

'catalogDB' is defined but never used (@typescript-eslint/no-unused-vars)
import { getTsTypesMapping, tsTypes, TsTypes } from './decorators/property/tsTypes.decorator';

Check warning on line 16 in src/models/layerMetadata/bestMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/bestMetadata.ts#L16

'tsTypes' is defined but never used (@typescript-eslint/no-unused-vars)

Check warning on line 16 in src/models/layerMetadata/bestMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/bestMetadata.ts#L16

'TsTypes' is defined but never used (@typescript-eslint/no-unused-vars)
import { ProductType } from './enums';
import { DiscreteOrder } from './discreteOrder';

Expand All @@ -24,6 +24,9 @@
rms: number | undefined;
scale: number | undefined;
discretes: DiscreteOrder[] | undefined;
sourceDateStart: Date | undefined;
sourceDateEnd: Date | undefined;
updateDate: Date | undefined;
}

export interface IPropPYCSWMapping extends IPYCSWMapping {
Expand Down
3 changes: 0 additions & 3 deletions src/models/layerMetadata/interfaces/metadataCommonModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ export interface IMetadataCommonModel {
description: string | undefined;
srsName: string | undefined;
producerName: string | undefined;
updateDate: Date | undefined;
sourceDateStart: Date | undefined;
sourceDateEnd: Date | undefined;
sensors: string[] | undefined;
region: string[] | undefined;
footprint: GeoJSON | undefined;
Expand Down
3 changes: 3 additions & 0 deletions src/models/layerMetadata/layer3DMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { GeoJSON } from 'geojson';
import { graphql } from '../common/decorators/graphQL/graphql.decorator';

Check warning on line 2 in src/models/layerMetadata/layer3DMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/layer3DMetadata.ts#L2

'graphql' is defined but never used (@typescript-eslint/no-unused-vars)
import {
FieldCategory,

Check warning on line 4 in src/models/layerMetadata/layer3DMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/layer3DMetadata.ts#L4

'FieldCategory' is defined but never used (@typescript-eslint/no-unused-vars)
fieldConfig,

Check warning on line 5 in src/models/layerMetadata/layer3DMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/layer3DMetadata.ts#L5

'fieldConfig' is defined but never used (@typescript-eslint/no-unused-vars)
getFieldConfig,
IFieldConfigInfo,
IPropFieldConfigInfo,
} from '../common/decorators/fieldConfig/fieldConfig.decorator';
import { RecordType } from '../pycsw/coreEnums';
import { getPyCSWMapping, IPYCSWMapping, pycsw } from './decorators/property/csw.decorator';

Check warning on line 11 in src/models/layerMetadata/layer3DMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/layer3DMetadata.ts#L11

'pycsw' is defined but never used (@typescript-eslint/no-unused-vars)
import { tsTypes, TsTypes } from './decorators/property/tsTypes.decorator';

Check warning on line 12 in src/models/layerMetadata/layer3DMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/layer3DMetadata.ts#L12

'tsTypes' is defined but never used (@typescript-eslint/no-unused-vars)

Check warning on line 12 in src/models/layerMetadata/layer3DMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/layer3DMetadata.ts#L12

'TsTypes' is defined but never used (@typescript-eslint/no-unused-vars)
import { ProductType, RecordStatus } from './enums';
import { catalogDB, ORMColumnType } from './decorators/property/catalogDB.decorator';

Check warning on line 14 in src/models/layerMetadata/layer3DMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/layer3DMetadata.ts#L14

'catalogDB' is defined but never used (@typescript-eslint/no-unused-vars)

Check warning on line 14 in src/models/layerMetadata/layer3DMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/layer3DMetadata.ts#L14

'ORMColumnType' is defined but never used (@typescript-eslint/no-unused-vars)
import { IMetadataCommonModel } from './interfaces/metadataCommonModel';

export interface ILayer3DMetadata {
Expand All @@ -35,6 +35,9 @@
productBoundingBox: string | undefined;
productSource: string | undefined;
productStatus: RecordStatus | undefined;
sourceDateStart: Date | undefined;
sourceDateEnd: Date | undefined;
updateDate: Date | undefined;
}

export interface IPropPYCSWMapping extends IPYCSWMapping {
Expand Down
3 changes: 3 additions & 0 deletions src/models/layerMetadata/layerDEMMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { GeoJSON } from 'geojson';
import { IPropCatalogDBMapping } from '../common/interfaces/propCatalogDBMapping.interface';
import { graphql } from '../common/decorators/graphQL/graphql.decorator';

Check warning on line 3 in src/models/layerMetadata/layerDEMMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/layerDEMMetadata.ts#L3

'graphql' is defined but never used (@typescript-eslint/no-unused-vars)
import {
FieldCategory,

Check warning on line 5 in src/models/layerMetadata/layerDEMMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/layerDEMMetadata.ts#L5

'FieldCategory' is defined but never used (@typescript-eslint/no-unused-vars)
fieldConfig,

Check warning on line 6 in src/models/layerMetadata/layerDEMMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/layerDEMMetadata.ts#L6

'fieldConfig' is defined but never used (@typescript-eslint/no-unused-vars)
getFieldConfig,
IFieldConfigInfo,
IPropFieldConfigInfo,
} from '../common/decorators/fieldConfig/fieldConfig.decorator';
import { DEMDataType, NoDataValue, RecordType, UndulationModel } from '../pycsw/coreEnums';
import { IMetadataCommonModel } from './interfaces/metadataCommonModel';
import { getPyCSWMapping, IPYCSWMapping, pycsw } from './decorators/property/csw.decorator';

Check warning on line 13 in src/models/layerMetadata/layerDEMMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/layerDEMMetadata.ts#L13

'pycsw' is defined but never used (@typescript-eslint/no-unused-vars)
import { getCatalogDBMapping, ICatalogDBMapping, catalogDB } from './decorators/property/catalogDB.decorator';

Check warning on line 14 in src/models/layerMetadata/layerDEMMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/layerDEMMetadata.ts#L14

'catalogDB' is defined but never used (@typescript-eslint/no-unused-vars)
import { getTsTypesMapping, tsTypes, TsTypes } from './decorators/property/tsTypes.decorator';

Check warning on line 15 in src/models/layerMetadata/layerDEMMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/layerDEMMetadata.ts#L15

'tsTypes' is defined but never used (@typescript-eslint/no-unused-vars)

Check warning on line 15 in src/models/layerMetadata/layerDEMMetadata.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/models/layerMetadata/layerDEMMetadata.ts#L15

'TsTypes' is defined but never used (@typescript-eslint/no-unused-vars)
import { ProductType, RecordStatus } from './enums';

export interface ILayerMetadata {
Expand All @@ -32,6 +32,9 @@
imagingSortieAccuracyCEP90: number | undefined;
productStatus: RecordStatus | undefined;
hasTerrain: boolean | undefined;
sourceDateStart: Date | undefined;
sourceDateEnd: Date | undefined;
updateDate: Date | undefined;
}

export interface IPropPYCSWMapping extends IPYCSWMapping {
Expand Down
Loading
Loading