Skip to content

Commit

Permalink
Merge pull request #1572 from danskernesdigitalebibliotek/DDFBRA-43-a…
Browse files Browse the repository at this point in the history
…nalyse-af-fejl-pa-intelligente-facetter

Update FBI graphql with gamePlatform
  • Loading branch information
Adamik10 authored Dec 9, 2024
2 parents 8999f81 + 6254c85 commit e889197
Show file tree
Hide file tree
Showing 3 changed files with 338 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/facet-browser/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ export const getFacetFieldTranslation = (name: FacetFieldEnum) => {
return "facetWorkTypesText";
case FacetFieldEnum.Year.toLowerCase():
return "facetYearText";
// TODO: Replace this case when FBI API specs have updated
case "gameplatform":
case FacetFieldEnum.Gameplatform.toLowerCase():
return "facetGamePlatformText";
default:
return invalidSwitchCase<string>(name as never);
Expand Down
279 changes: 279 additions & 0 deletions src/core/dbc-gateway/generated/graphql.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1445,6 +1445,22 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "traceId",
"description": "A unique identifier for tracking user interactions with this suggestion. \nIt is generated in the response and should be included in subsequent\nAPI calls when this suggestion is selected.",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "type",
"description": "The type of suggestion",
Expand Down Expand Up @@ -5065,6 +5081,18 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "marc",
"description": "Field for presenting bibliographic records in MARC format",
"args": [],
"type": {
"kind": "OBJECT",
"name": "MarcRecord",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "materialTypes",
"description": "The type of material of the manifestation based on bibliotek.dk types",
Expand Down Expand Up @@ -5353,6 +5381,22 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "traceId",
"description": "A unique identifier for tracking user interactions with this manifestation. \nIt is generated in the response and should be included in subsequent\nAPI calls when this manifestation is selected.",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "unit",
"description": "id of the manifestaion unit",
Expand Down Expand Up @@ -6059,6 +6103,155 @@
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "Marc",
"description": null,
"isOneOf": null,
"fields": [
{
"name": "getMarcByRecordId",
"description": "Gets the MARC record collection for the given record identifier, containing either standalone or head and/or section and volume records.",
"args": [
{
"name": "recordId",
"description": "The marc record identifier",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"type": {
"kind": "OBJECT",
"name": "MarcRecord",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "MarcRecord",
"description": null,
"isOneOf": null,
"fields": [
{
"name": "agencyId",
"description": "The library agency",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "bibliographicRecordId",
"description": "The bibliographic record identifier",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "content",
"description": "The MARC record collection content as marcXchange XML string",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "contentSerializationFormat",
"description": "The serialization format of the MARC record content. Defaults to 'marcXchange'",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "deleted",
"description": "Flag indicating whether or not the record is deleted",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "id",
"description": "The marc record identifier",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "MaterialType",
Expand Down Expand Up @@ -7508,6 +7701,12 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "EXPECTED_PUBLICATION_DATE",
"description": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "FREQUENCY",
"description": null,
Expand Down Expand Up @@ -8510,6 +8709,22 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "marc",
"description": "Field for presenting bibliographic records in MARC format",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Marc",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "mood",
"description": null,
Expand Down Expand Up @@ -10463,6 +10678,26 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "gamePlatform",
"description": null,
"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": "generalAudience",
"description": null,
Expand Down Expand Up @@ -12681,6 +12916,22 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "traceId",
"description": "A unique identifier for tracking user interactions with this suggestion. \nIt is generated in the response and should be included in subsequent\nAPI calls when this suggestion is selected.",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "type",
"description": "The type of suggestion: creator, subject or title",
Expand Down Expand Up @@ -13736,6 +13987,18 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "marc",
"description": "Field for presenting bibliographic records in MARC format",
"args": [],
"type": {
"kind": "OBJECT",
"name": "MarcRecord",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "materialTypes",
"description": "The type of material of the manifestation based on bibliotek.dk types",
Expand Down Expand Up @@ -13832,6 +14095,22 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "traceId",
"description": "A unique identifier for tracking user interactions with this work.\nIt is generated in the response and should be included in subsequent\nAPI calls when this work is selected.",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "universes",
"description": "Literary/movie universes this work is part of, e.g. Wizarding World, Marvel Universe",
Expand Down
Loading

0 comments on commit e889197

Please sign in to comment.