Skip to content

Commit

Permalink
fix(records): updated with missing fields from core (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
alebinson authored May 13, 2021
1 parent bb490b3 commit 6941f99
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/models/layerMetadata/pycsw3DCatalogRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,20 @@ export class Pycsw3DCatalogRecord extends LayerMetadata implements IPycswCoreMod
})
public insertDate?: Date = undefined;

@catalogDB({
column: {
name: 'creation_date',
type: 'timestamp without time zone',
},
})
@tsTypes({
mappingType: TsTypes.DATE,
})
@graphql({
nullable: true,
})
public creationDate?: Date = undefined;

@catalogDB({
column: {
name: 'wkt_geometry',
Expand Down Expand Up @@ -241,6 +255,34 @@ export class Pycsw3DCatalogRecord extends LayerMetadata implements IPycswCoreMod
})
public projectName?: string = undefined;

@catalogDB({
column: {
name: 'classification',
type: 'text',
},
})
@tsTypes({
mappingType: TsTypes.STRING,
})
@graphql({
nullable: true,
})
public classification?: string = undefined;

@catalogDB({
column: {
name: 'keywords',
type: 'text',
},
})
@tsTypes({
mappingType: TsTypes.STRING,
})
@graphql({
nullable: true,
})
public keywords?: string = undefined;

// TODO: remove field shoud be removed
@catalogDB({
column: {
Expand Down
42 changes: 42 additions & 0 deletions src/models/layerMetadata/pycswLayerCatalogRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,20 @@ export class PycswLayerCatalogRecord extends LayerMetadata implements IPycswCore
})
public insertDate?: Date = undefined;

@catalogDB({
column: {
name: 'creation_date',
type: 'timestamp without time zone',
},
})
@tsTypes({
mappingType: TsTypes.DATE,
})
@graphql({
nullable: true,
})
public creationDate?: Date = undefined;

@catalogDB({
column: {
name: 'wkt_geometry',
Expand Down Expand Up @@ -240,6 +254,34 @@ export class PycswLayerCatalogRecord extends LayerMetadata implements IPycswCore
})
public projectName?: string = undefined;

@catalogDB({
column: {
name: 'classification',
type: 'text',
},
})
@tsTypes({
mappingType: TsTypes.STRING,
})
@graphql({
nullable: true,
})
public classification?: string = undefined;

@catalogDB({
column: {
name: 'keywords',
type: 'text',
},
})
@tsTypes({
mappingType: TsTypes.STRING,
})
@graphql({
nullable: true,
})
public keywords?: string = undefined;

public constructor() {
super();
}
Expand Down

0 comments on commit 6941f99

Please sign in to comment.