diff --git a/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.ts b/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.ts index f5fd8bca4c..c97b568e74 100644 --- a/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.ts +++ b/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.ts @@ -11,12 +11,12 @@ import { LANG_2_TO_3_MAPPER } from '@geonetwork-ui/util/i18n' import { FieldFilters } from '@geonetwork-ui/common/domain/search' import { CatalogRecord, - MetadataObject, Organization, } from '@geonetwork-ui/common/domain/record' import { OrganizationsServiceInterface } from '@geonetwork-ui/common/domain/organizations.service.interface' import { ElasticsearchService } from '../elasticsearch' import { getAsUrl } from '@geonetwork-ui/metadata-converter' +import { MetadataObject } from '../types' const IMAGE_URL = '/geonetwork/images/harvesting/' diff --git a/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.ts b/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.ts index f1189dfd4c..126f331786 100644 --- a/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.ts +++ b/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.ts @@ -12,7 +12,6 @@ import { } from '@geonetwork-ui/common/domain/search' import { CatalogRecord, - MetadataObject, Organization, } from '@geonetwork-ui/common/domain/record' import { OrganizationsServiceInterface } from '@geonetwork-ui/common/domain/organizations.service.interface' @@ -23,6 +22,7 @@ import { mapOrganization, selectField, } from '@geonetwork-ui/metadata-converter' +import { MetadataObject } from '../types' const IMAGE_URL = '/geonetwork/images/harvesting/' diff --git a/libs/common/fixtures/src/lib/elasticsearch/metadata.fixtures.ts b/libs/common/fixtures/src/lib/elasticsearch/metadata.fixtures.ts index 559431389e..8fc70c73d9 100644 --- a/libs/common/fixtures/src/lib/elasticsearch/metadata.fixtures.ts +++ b/libs/common/fixtures/src/lib/elasticsearch/metadata.fixtures.ts @@ -1,7 +1,6 @@ import { deepFreeze } from '../utils/freeze' -import { EsSearchResponse } from '@geonetwork-ui/api/repository/gn4' -export const hitsOnly = (): EsSearchResponse => +export const hitsOnly = () => deepFreeze({ hits: { max_score: 1, @@ -160,7 +159,7 @@ export const hitsOnly = (): EsSearchResponse => ], }, }) -export const ES_FIXTURE_FULL_RESPONSE = (): EsSearchResponse => +export const ES_FIXTURE_FULL_RESPONSE = () => deepFreeze({ took: 1, timed_out: false, diff --git a/libs/common/fixtures/src/lib/records.fixtures.ts b/libs/common/fixtures/src/lib/records.fixtures.ts index bd8990ce02..0c76cee7e3 100644 --- a/libs/common/fixtures/src/lib/records.fixtures.ts +++ b/libs/common/fixtures/src/lib/records.fixtures.ts @@ -1,4 +1,4 @@ -import { DatasetRecord } from '../../../domain/src/lib/record/metadata.model' +import { DatasetRecord } from '@geonetwork-ui/common/domain/record' import { deepFreeze } from './utils/freeze' export const DATASET_RECORDS: DatasetRecord[] = deepFreeze([ diff --git a/libs/data-access/datafeeder/project.json b/libs/data-access/datafeeder/project.json index 8ade846f67..bc7df82333 100644 --- a/libs/data-access/datafeeder/project.json +++ b/libs/data-access/datafeeder/project.json @@ -5,5 +5,5 @@ "sourceRoot": "libs/data-access/datafeeder/src", "prefix": "gn-ui", "targets": {}, - "tags": ["type:data-access"] + "tags": ["type:data-access", "type:api"] } diff --git a/libs/data-access/gn4/project.json b/libs/data-access/gn4/project.json index 41307cdf77..ddb5bb54ca 100644 --- a/libs/data-access/gn4/project.json +++ b/libs/data-access/gn4/project.json @@ -5,5 +5,5 @@ "sourceRoot": "libs/data-access/gn4/src", "prefix": "gn-ui", "targets": {}, - "tags": ["type:data-access"] + "tags": ["type:data-access", "type:api"] } diff --git a/libs/util/i18n/project.json b/libs/util/i18n/project.json index 539648559a..c9e807f58b 100644 --- a/libs/util/i18n/project.json +++ b/libs/util/i18n/project.json @@ -24,5 +24,5 @@ "outputs": ["{options.outputFile}"] } }, - "tags": ["type:util", "scope:i18n"] + "tags": ["type:util", "scope:i18n", "scope:shared"] } diff --git a/libs/util/shared/src/lib/utils/sort-by.spec.ts b/libs/util/shared/src/lib/utils/sort-by.spec.ts index 2bfd427c5e..7b9f37af33 100644 --- a/libs/util/shared/src/lib/utils/sort-by.spec.ts +++ b/libs/util/shared/src/lib/utils/sort-by.spec.ts @@ -1,8 +1,4 @@ -import { - sortByFromString, - sortByToString, - sortByToStrings, -} from '@geonetwork-ui/util/shared' +import { sortByFromString, sortByToString, sortByToStrings } from './sort-by' describe('sortBy utils', () => { describe('sortByToStrings', () => {