Skip to content

Commit

Permalink
refactor(es): clean useless interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
fgravin committed Aug 25, 2023
1 parent 4ebbe7c commit a09a3fb
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions libs/api/metadata-converter/src/lib/gn4/types/search.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@ export interface SearchFilters {

type SearchFiltersFieldsLeaf = Record<string, boolean>

export interface Organisation {
name: string
description?: string
logoUrl?: string
recordCount?: number
email?: string
emails?: string[]
}

export interface MetadataContact {
name?: string
organisation?: string
Expand All @@ -26,34 +17,6 @@ export interface MetadataContact {
phone?: string
}

export interface MetadataRecord {
id: string
uuid: string
title: string
metadataUrl: string
abstract?: string
thumbnailUrl?: string
hasDownloads?: boolean
hasMaps?: boolean
updateStatus?: string
updateFrequency?: string
links?: MetadataLink[]
updatedOn?: Date
createdOn?: Date
dataUpdatedOn?: Date
dataCreatedOn?: Date
lineage?: string
keywords?: string[]
contact?: MetadataContact
resourceContacts?: MetadataContact[]
catalogUuid?: string
constraints?: string[]
favoriteCount?: number
isOpenData?: boolean
ownerInfo?: string
isPublishedToAll?: boolean
}

export enum MetadataLinkType {
WMS,
WMTS,
Expand All @@ -64,24 +27,11 @@ export enum MetadataLinkType {
OTHER,
}

export interface MetadataLink {
url: string
type: MetadataLinkType
// either a file name, a layer name or any other resource identifier
name?: string
protocol?: string
mimeType?: string
description?: string
label?: string
}

export interface RecordMetric {
value: string
recordCount: number
}

export const RESULTS_PAGE_SIZE = 10

interface HitsObject {
max_score?: number
total?: { value: number; relation: 'eq' }
Expand Down

0 comments on commit a09a3fb

Please sign in to comment.