diff --git a/src/core/dbc-gateway/fragments.graphql b/src/core/dbc-gateway/fragments.graphql index 055a30c288..edb9a8245f 100644 --- a/src/core/dbc-gateway/fragments.graphql +++ b/src/core/dbc-gateway/fragments.graphql @@ -89,6 +89,10 @@ fragment ManifestationsSimpleFields on Manifestation { workYear { year } + catalogueCodes { + nationalBibliography + otherCatalogues + } } fragment ManifestationReviewFields on Manifestation { diff --git a/src/core/dbc-gateway/generated/graphql.schema.json b/src/core/dbc-gateway/generated/graphql.schema.json index 00696cdb05..529d4dbd8d 100644 --- a/src/core/dbc-gateway/generated/graphql.schema.json +++ b/src/core/dbc-gateway/generated/graphql.schema.json @@ -643,9 +643,49 @@ "description": "Search Filters", "fields": null, "inputFields": [ + { + "name": "agencyId", + "description": "Id of agency.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "branch", + "description": "Name of the branch.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "branchId", - "description": null, + "description": "BranchId. ", "type": { "kind": "LIST", "name": null, @@ -665,7 +705,47 @@ }, { "name": "department", - "description": null, + "description": "Overall location in library (eg. Voksne).", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issueId", + "description": "Id of publishing issue.", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "itemId", + "description": "Local id of the item.", "type": { "kind": "LIST", "name": null, @@ -685,7 +765,7 @@ }, { "name": "location", - "description": null, + "description": "Where is the book physically located (eg. skønlitteratur).", "type": { "kind": "LIST", "name": null, @@ -705,7 +785,7 @@ }, { "name": "status", - "description": null, + "description": "Onloan or OnShelf.", "type": { "kind": "LIST", "name": null, @@ -725,7 +805,7 @@ }, { "name": "sublocation", - "description": null, + "description": "More specific location (eg. Fantasy).", "type": { "kind": "LIST", "name": null, @@ -1110,6 +1190,24 @@ "inputFields": null, "interfaces": null, "enumValues": [ + { + "name": "BORCHK_USER_BLOCKED_BY_AGENCY", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "BORCHK_USER_NOT_VERIFIED", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "BORCHK_USER_NO_LONGER_EXIST_ON_AGENCY", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "ERROR_AGENCY_NOT_SUBSCRIBED", "description": null, @@ -1128,6 +1226,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "ERROR_MUNICIPALITYAGENCYID_NOT_FOUND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "ERROR_PID_NOT_RESERVABLE", "description": null, @@ -1145,6 +1249,12 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "UNKNOWN_USER", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -4643,8 +4753,8 @@ "ofType": null } }, - "isDeprecated": false, - "deprecationReason": null + "isDeprecated": true, + "deprecationReason": "Use 'Elba.placeCopyRequest' instead" } ], "inputFields": null, @@ -6046,6 +6156,18 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "search_exact", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "type": { diff --git a/src/core/dbc-gateway/generated/graphql.tsx b/src/core/dbc-gateway/generated/graphql.tsx index c661f6d731..80747ffc92 100644 --- a/src/core/dbc-gateway/generated/graphql.tsx +++ b/src/core/dbc-gateway/generated/graphql.tsx @@ -129,10 +129,23 @@ export type Classification = { /** Search Filters */ export type ComplexSearchFilters = { + /** Id of agency. */ + agencyId?: InputMaybe>; + /** Name of the branch. */ + branch?: InputMaybe>; + /** BranchId. */ branchId?: InputMaybe>; + /** Overall location in library (eg. Voksne). */ department?: InputMaybe>; + /** Id of publishing issue. */ + issueId?: InputMaybe>; + /** Local id of the item. */ + itemId?: InputMaybe>; + /** Where is the book physically located (eg. skønlitteratur). */ location?: InputMaybe>; + /** Onloan or OnShelf. */ status?: InputMaybe>; + /** More specific location (eg. Fantasy). */ sublocation?: InputMaybe>; }; @@ -185,12 +198,17 @@ export type CopyRequestResponse = { }; export enum CopyRequestStatus { + BorchkUserBlockedByAgency = "BORCHK_USER_BLOCKED_BY_AGENCY", + BorchkUserNotVerified = "BORCHK_USER_NOT_VERIFIED", + BorchkUserNoLongerExistOnAgency = "BORCHK_USER_NO_LONGER_EXIST_ON_AGENCY", ErrorAgencyNotSubscribed = "ERROR_AGENCY_NOT_SUBSCRIBED", ErrorInvalidPickupBranch = "ERROR_INVALID_PICKUP_BRANCH", ErrorMissingClientConfiguration = "ERROR_MISSING_CLIENT_CONFIGURATION", + ErrorMunicipalityagencyidNotFound = "ERROR_MUNICIPALITYAGENCYID_NOT_FOUND", ErrorPidNotReservable = "ERROR_PID_NOT_RESERVABLE", ErrorUnauthenticatedUser = "ERROR_UNAUTHENTICATED_USER", - Ok = "OK" + Ok = "OK", + UnknownUser = "UNKNOWN_USER" } export type Corporation = Creator & @@ -691,6 +709,7 @@ export type MaterialType = { export type Mutation = { __typename?: "Mutation"; elba: ElbaServices; + /** @deprecated Use 'Elba.placeCopyRequest' instead */ submitPeriodicaArticleOrder: PeriodicaArticleOrderResponse; }; @@ -901,6 +920,7 @@ export type QueryRisArgs = { export type QuerySearchArgs = { filters?: InputMaybe; q: SearchQuery; + search_exact?: InputMaybe; }; export type QuerySuggestArgs = { @@ -1503,6 +1523,11 @@ export type GetSmallWorkQuery = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -1587,6 +1612,11 @@ export type GetSmallWorkQuery = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -1671,6 +1701,11 @@ export type GetSmallWorkQuery = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -1886,6 +1921,11 @@ export type GetMaterialQuery = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -1970,6 +2010,11 @@ export type GetMaterialQuery = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -2054,6 +2099,11 @@ export type GetMaterialQuery = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -2277,6 +2327,11 @@ export type RecommendFromFaustQuery = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -2367,6 +2422,11 @@ export type RecommendFromFaustQuery = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -2457,6 +2517,11 @@ export type RecommendFromFaustQuery = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -2607,6 +2672,11 @@ export type SearchWithPaginationQuery = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -2697,6 +2767,11 @@ export type SearchWithPaginationQuery = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -2787,6 +2862,11 @@ export type SearchWithPaginationQuery = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -2978,6 +3058,11 @@ export type ManifestationsSimpleFragment = { shelfmark: string; } | null; workYear?: { __typename?: "PublicationYear"; year?: number | null } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -3059,6 +3144,11 @@ export type ManifestationsSimpleFragment = { shelfmark: string; } | null; workYear?: { __typename?: "PublicationYear"; year?: number | null } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -3140,6 +3230,11 @@ export type ManifestationsSimpleFragment = { shelfmark: string; } | null; workYear?: { __typename?: "PublicationYear"; year?: number | null } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -3220,6 +3315,11 @@ export type ManifestationsSimpleFieldsFragment = { shelfmark: string; } | null; workYear?: { __typename?: "PublicationYear"; year?: number | null } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -3406,6 +3506,11 @@ export type WorkSmallFragment = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -3490,6 +3595,11 @@ export type WorkSmallFragment = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -3574,6 +3684,11 @@ export type WorkSmallFragment = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -3740,6 +3855,11 @@ export type WorkMediumFragment = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -3824,6 +3944,11 @@ export type WorkMediumFragment = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -3908,6 +4033,11 @@ export type WorkMediumFragment = { __typename?: "PublicationYear"; year?: number | null; } | null; + catalogueCodes: { + __typename?: "CatalogueCodes"; + nationalBibliography: Array; + otherCatalogues: Array; + }; languages?: { __typename?: "Languages"; main?: Array<{ @@ -4090,6 +4220,10 @@ export const ManifestationsSimpleFieldsFragmentDoc = ` workYear { year } + catalogueCodes { + nationalBibliography + otherCatalogues + } } ${WithLanguagesFragmentDoc}`; export const ManifestationsSimpleFragmentDoc = `