@biblioteksentralen/bmdb-search 0.0.0-beta.74 → 0.0.0-beta.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,8 +44,9 @@ interface paths {
44
44
  /**
45
45
  * Get works
46
46
  * @description Fetch full `Work` records by BMDB work ID. Each work includes its expressions and
47
- * manifestations. Results are limited to the search profile's catalogues and digital
48
- * services.
47
+ * manifestations. Works are returned whenever they exist, but their expressions and
48
+ * manifestations are limited to the search profile's catalogues and digital services,
49
+ * so `expressions` is empty for works without manifestations in the search profile.
49
50
  */
50
51
  get: operations["getWorks"];
51
52
  put?: never;
@@ -1229,6 +1230,17 @@ interface components {
1229
1230
  nn: string;
1230
1231
  };
1231
1232
  };
1233
+ /**
1234
+ * @description - `general_note` - Used for notes that do not have a more specific type.
1235
+ * - `contents_note`: Information about the contents of the document, such as the number of short works included, songs in a music work, whether the document has bibliographies, adress lists etc.
1236
+ * @enum {string}
1237
+ */
1238
+ WorkNoteTypeEnum: "general_note" | "contents_note";
1239
+ /** @description Additional information about the document given by the cataloguer */
1240
+ WorkNote: {
1241
+ value: string;
1242
+ noteType: components["schemas"]["WorkNoteTypeEnum"];
1243
+ };
1232
1244
  CordataEnumAgeGroup: {
1233
1245
  code: components["schemas"]["CordataEnumAgeGroupCode"];
1234
1246
  label: {
@@ -1258,7 +1270,7 @@ interface components {
1258
1270
  };
1259
1271
  };
1260
1272
  /** @enum {string} */
1261
- CordataEnumAgeLimitCode: "nmaa" | "nma6" | "nma9" | "nma12" | "nma15" | "nma18" | "pegi3" | "pegi7" | "pegi12" | "pegi16" | "pegi18" | "ttg4" | "ttg5" | "ttg6" | "ttg7" | "ttg8" | "ttg9" | "ttg10" | "ttg12" | "ttg14" | "ttg16" | "ttg18";
1273
+ CordataEnumAgeLimitCode: "nmaa" | "nma6" | "nma9" | "nma12" | "nma15" | "nma18" | "pegi3" | "pegi7" | "pegi12" | "pegi16" | "pegi18" | "ttg2" | "ttg3" | "ttg4" | "ttg5" | "ttg6" | "ttg7" | "ttg8" | "ttg9" | "ttg10" | "ttg12" | "ttg14" | "ttg16" | "ttg18";
1262
1274
  CordataEnumAgeLimit: {
1263
1275
  code: components["schemas"]["CordataEnumAgeLimitCode"];
1264
1276
  label: {
@@ -1501,6 +1513,7 @@ interface components {
1501
1513
  */
1502
1514
  AccessibleContentFeature: {
1503
1515
  type: string;
1516
+ id: string;
1504
1517
  code: components["schemas"]["CordataEnumAccessibleContentCode"];
1505
1518
  label: components["schemas"]["LanguageMap"];
1506
1519
  /** @description URI for the corresponding concept in National Library's [Vocabulary of target groups (nortarget)](https://www.nb.no/nbvok/tg/nb/). */
@@ -1508,15 +1521,6 @@ interface components {
1508
1521
  };
1509
1522
  /** @enum {string} */
1510
1523
  CordataEnumWorkWorkRelationTypeCode: "complements" | "complemented_by" | "augments" | "augmented_by" | "part_of" | "has_part" | "replaces" | "replaced_by" | "continuation_of" | "continued_in" | "abridgement_of" | "abridged_as" | "based_on" | "basis_for" | "inspired_by" | "inspiration_for" | "expansion_of" | "expanded_as" | "is_language_version_of" | "has_language_version";
1511
- /** @description A contents entry, also know as an analytical title entry, describes a work (usually short work) contained in a larger work. It contains a title an optionally the main creator of the work. */
1512
- ContentsEntry: {
1513
- /** @constant */
1514
- type: "ContentsEntry";
1515
- /** @description Work or manifestation title extracted from analytical entry (7XX$t or 740$a) */
1516
- title: components["schemas"]["LegacyRegularTitle"];
1517
- /** @description Main creator extracted from analytical entry (700/710) */
1518
- creator?: components["schemas"]["Agent"];
1519
- };
1520
1524
  /** @description Map of other identifiers for the entity */
1521
1525
  ExpressionIdentifiers: {
1522
1526
  /** @description Identifier assigned by Biblioteksentralen for authority records. Unique for all authorities independent of type. */
@@ -1786,11 +1790,11 @@ interface components {
1786
1790
  * - succeeding_entry_note: Migrated from 785, will eventually be migrated to `relatedExpressions`.
1787
1791
  * @enum {string}
1788
1792
  */
1789
- NoteTypeEnum: "general_note" | "bibliographic_history_note" | "contents_note_complete" | "contents_note_legacy" | "participant_or_performer_note" | "system_details_note" | "language_note" | "other_identifier_note" | "variant_title_note" | "title_source_note" | "original_title_note" | "preceding_entry_note" | "succeeding_entry_note";
1793
+ ManifestationNoteTypeEnum: "general_note" | "bibliographic_history_note" | "contents_note_complete" | "contents_note_legacy" | "participant_or_performer_note" | "system_details_note" | "language_note" | "other_identifier_note" | "variant_title_note" | "title_source_note" | "original_title_note" | "preceding_entry_note" | "succeeding_entry_note";
1790
1794
  /** @description Additional information about the document given by the cataloguer */
1791
- Note: {
1795
+ ManifestationNote: {
1792
1796
  value: string;
1793
- noteType: components["schemas"]["NoteTypeEnum"];
1797
+ noteType: components["schemas"]["ManifestationNoteTypeEnum"];
1794
1798
  };
1795
1799
  /**
1796
1800
  * @description Identifier of a digital lending or streaming service.
@@ -1906,7 +1910,7 @@ interface components {
1906
1910
  /** @description Specifies the material that accompanyies the item, typically of document type "Combined document" or "Language Course" */
1907
1911
  accompanyingMaterial?: string;
1908
1912
  /** @description Cataloguer notes about the manifestation. */
1909
- notes?: components["schemas"]["Note"][];
1913
+ notes?: components["schemas"]["ManifestationNote"][];
1910
1914
  /** @description Whether the manifestation has been approved by Arts Council Norway (Kulturrådet) for library distribution through Innkjøpsordningane for litteratur. */
1911
1915
  kulturfond?: components["schemas"]["Kulturfond"];
1912
1916
  /** @description This is an aggregate manifestation containing several works. */
@@ -2005,6 +2009,11 @@ interface components {
2005
2009
  /** @constant */
2006
2010
  entityType: "work";
2007
2011
  id: components["schemas"]["Id"];
2012
+ /**
2013
+ * Format: date-time
2014
+ * @description When the work's Elasticsearch document was last updated (index ingest time).
2015
+ */
2016
+ updatedAt: string;
2008
2017
  } & components["schemas"]["BaseWork"] & {
2009
2018
  workType: components["schemas"]["CordataEnumWorkType"];
2010
2019
  literatureType?: components["schemas"]["LiteratureType"];
@@ -2041,6 +2050,7 @@ interface components {
2041
2050
  */
2042
2051
  contributors: components["schemas"]["Contributor"][];
2043
2052
  illustrations?: components["schemas"]["CordataEnumWorkIllustrationsOption"];
2053
+ notes?: components["schemas"]["WorkNote"][];
2044
2054
  /**
2045
2055
  * @description The recommended age group(s) for the work as assigned by Biblioteksentralen according to a controlled vocabulary.
2046
2056
  *
@@ -2069,8 +2079,6 @@ interface components {
2069
2079
  bibbiAuthorityId?: string;
2070
2080
  relation: components["schemas"]["CordataEnumWorkWorkRelationTypeCode"];
2071
2081
  }[];
2072
- /** @description Less structured information about the work's contents. Example: song titles for musical works (parsed from 740$a with ind2 == "2" in MARC21) */
2073
- contents?: components["schemas"]["ContentsEntry"][];
2074
2082
  /** @description List of countries where work is made, firstly used for movies. */
2075
2083
  countriesOfOrigin?: components["schemas"]["Place"][];
2076
2084
  /** @description Classification of the work according to a classification scheme. */
@@ -2087,11 +2095,32 @@ interface components {
2087
2095
  /** @description Expressions of this work, each with their manifestations. */
2088
2096
  expressions: components["schemas"]["Expression"][];
2089
2097
  };
2098
+ /** DeletedWork */
2099
+ DeletedWork: {
2100
+ /** @constant */
2101
+ type: "DeletedWork";
2102
+ /** @constant */
2103
+ entityType: "work";
2104
+ id: components["schemas"]["Id"];
2105
+ /**
2106
+ * Format: date-time
2107
+ * @description When the work was deleted from BMDB.
2108
+ */
2109
+ deletedAt: string;
2110
+ /** @description Replacement for the deleted work. */
2111
+ replacement?: components["schemas"]["Work"];
2112
+ };
2090
2113
  /** @description Full `Work` records for the requested IDs. */
2091
2114
  GetWorks200Response: {
2092
2115
  total?: components["schemas"]["total"];
2093
2116
  results: {
2094
- work: components["schemas"]["Work"];
2117
+ work: components["schemas"]["Work"] | components["schemas"]["DeletedWork"];
2118
+ /**
2119
+ * Format: date-time
2120
+ * @deprecated
2121
+ * @description Deprecated. Use `work.updatedAt` instead.
2122
+ */
2123
+ updatedAt: string;
2095
2124
  }[];
2096
2125
  };
2097
2126
  /** @description A batch of full `Work` records from a harvest. `resumptionToken` is present when more remain. */
@@ -2723,6 +2752,8 @@ interface components {
2723
2752
  type: "SearchProfile";
2724
2753
  /** @constant */
2725
2754
  entityType: "search_profile";
2755
+ /** @description Display name of the search profile, e.g. the library name. */
2756
+ name: string;
2726
2757
  /** @description Library catalogues included in this search profile. */
2727
2758
  catalogues: components["schemas"]["Catalogue"][];
2728
2759
  /** @description Redia customer identifier for this library (optional). */
@@ -5338,6 +5369,36 @@ declare const cordataEnumAgeLimitMap: {
5338
5369
  readonly nbvok_uri: "https://schema.nb.no/Bibliographic/Values/PG1004";
5339
5370
  readonly type: "age_limit";
5340
5371
  };
5372
+ readonly ttg2: {
5373
+ readonly code: "ttg2";
5374
+ readonly name: "2+";
5375
+ readonly preferred_name: {
5376
+ readonly nb: "2+";
5377
+ readonly nn: "2+";
5378
+ readonly en: "2+";
5379
+ };
5380
+ readonly comments: null;
5381
+ readonly domain: "cordata";
5382
+ readonly age_limit_type: "tabletop_game";
5383
+ readonly years: 2;
5384
+ readonly nbvok_uri: null;
5385
+ readonly type: "age_limit";
5386
+ };
5387
+ readonly ttg3: {
5388
+ readonly code: "ttg3";
5389
+ readonly name: "3+";
5390
+ readonly preferred_name: {
5391
+ readonly nb: "3+";
5392
+ readonly nn: "3+";
5393
+ readonly en: "3+";
5394
+ };
5395
+ readonly comments: null;
5396
+ readonly domain: "cordata";
5397
+ readonly age_limit_type: "tabletop_game";
5398
+ readonly years: 3;
5399
+ readonly nbvok_uri: null;
5400
+ readonly type: "age_limit";
5401
+ };
5341
5402
  readonly ttg4: {
5342
5403
  readonly code: "ttg4";
5343
5404
  readonly name: "4+";
@@ -8297,7 +8358,7 @@ declare const cordataEnumContributorRoleMap: {
8297
8358
  readonly normarc_code: "forf.";
8298
8359
  readonly bibframe_code: null;
8299
8360
  readonly rda_code: null;
8300
- readonly entities: ["expression", "work"];
8361
+ readonly entities: ["work"];
8301
8362
  readonly type: "contributor_role";
8302
8363
  };
8303
8364
  readonly translator: {
@@ -9351,4 +9412,4 @@ type BmdbSearchClient = Client<BmdbCordataApiV1Paths>;
9351
9412
  declare const createBmdbFetchClient: (options: BmdbSearchClientOptions) => BmdbSearchClient;
9352
9413
  //#endregion
9353
9414
  export { parseCatalogueId as C, ParsedCatalogueId as S, serializeDigitalServiceRecordId as _, BmdbCordataApiV1Schemas as a, parseCatalogueRecordId as b, isCordataEnumContributorRoleCode as c, isCordataEnumManifestationMediumCode as d, isCordataEnumWorkTypeCode as f, parseDigitalServiceRecordId as g, ParsedDigitalServiceRecordId as h, BmdbCordataApiV1Paths as i, isCordataEnumExpressionTypeCode as l, DigitalServiceRecordId as m, BmdbSearchClientOptions as n, isCordataEnumAgeGroupCode as o, formatIsbdTitle as p, createBmdbFetchClient as r, isCordataEnumAgeLimitCode as s, BmdbSearchClient as t, isCordataEnumLanguageCode as u, CatalogueRecordId as v, serializeCatalogueId as w, serializeCatalogueRecordId as x, ParsedCatalogueRecordId as y };
9354
- //# sourceMappingURL=index-H2sfQhnU.d.cts.map
9415
+ //# sourceMappingURL=index-B-NaE4GW.d.cts.map
@@ -45,8 +45,9 @@ interface paths {
45
45
  /**
46
46
  * Get works
47
47
  * @description Fetch full `Work` records by BMDB work ID. Each work includes its expressions and
48
- * manifestations. Results are limited to the search profile's catalogues and digital
49
- * services.
48
+ * manifestations. Works are returned whenever they exist, but their expressions and
49
+ * manifestations are limited to the search profile's catalogues and digital services,
50
+ * so `expressions` is empty for works without manifestations in the search profile.
50
51
  */
51
52
  get: operations["getWorks"];
52
53
  put?: never;
@@ -1230,6 +1231,17 @@ interface components {
1230
1231
  nn: string;
1231
1232
  };
1232
1233
  };
1234
+ /**
1235
+ * @description - `general_note` - Used for notes that do not have a more specific type.
1236
+ * - `contents_note`: Information about the contents of the document, such as the number of short works included, songs in a music work, whether the document has bibliographies, adress lists etc.
1237
+ * @enum {string}
1238
+ */
1239
+ WorkNoteTypeEnum: "general_note" | "contents_note";
1240
+ /** @description Additional information about the document given by the cataloguer */
1241
+ WorkNote: {
1242
+ value: string;
1243
+ noteType: components["schemas"]["WorkNoteTypeEnum"];
1244
+ };
1233
1245
  CordataEnumAgeGroup: {
1234
1246
  code: components["schemas"]["CordataEnumAgeGroupCode"];
1235
1247
  label: {
@@ -1259,7 +1271,7 @@ interface components {
1259
1271
  };
1260
1272
  };
1261
1273
  /** @enum {string} */
1262
- CordataEnumAgeLimitCode: "nmaa" | "nma6" | "nma9" | "nma12" | "nma15" | "nma18" | "pegi3" | "pegi7" | "pegi12" | "pegi16" | "pegi18" | "ttg4" | "ttg5" | "ttg6" | "ttg7" | "ttg8" | "ttg9" | "ttg10" | "ttg12" | "ttg14" | "ttg16" | "ttg18";
1274
+ CordataEnumAgeLimitCode: "nmaa" | "nma6" | "nma9" | "nma12" | "nma15" | "nma18" | "pegi3" | "pegi7" | "pegi12" | "pegi16" | "pegi18" | "ttg2" | "ttg3" | "ttg4" | "ttg5" | "ttg6" | "ttg7" | "ttg8" | "ttg9" | "ttg10" | "ttg12" | "ttg14" | "ttg16" | "ttg18";
1263
1275
  CordataEnumAgeLimit: {
1264
1276
  code: components["schemas"]["CordataEnumAgeLimitCode"];
1265
1277
  label: {
@@ -1502,6 +1514,7 @@ interface components {
1502
1514
  */
1503
1515
  AccessibleContentFeature: {
1504
1516
  type: string;
1517
+ id: string;
1505
1518
  code: components["schemas"]["CordataEnumAccessibleContentCode"];
1506
1519
  label: components["schemas"]["LanguageMap"];
1507
1520
  /** @description URI for the corresponding concept in National Library's [Vocabulary of target groups (nortarget)](https://www.nb.no/nbvok/tg/nb/). */
@@ -1509,15 +1522,6 @@ interface components {
1509
1522
  };
1510
1523
  /** @enum {string} */
1511
1524
  CordataEnumWorkWorkRelationTypeCode: "complements" | "complemented_by" | "augments" | "augmented_by" | "part_of" | "has_part" | "replaces" | "replaced_by" | "continuation_of" | "continued_in" | "abridgement_of" | "abridged_as" | "based_on" | "basis_for" | "inspired_by" | "inspiration_for" | "expansion_of" | "expanded_as" | "is_language_version_of" | "has_language_version";
1512
- /** @description A contents entry, also know as an analytical title entry, describes a work (usually short work) contained in a larger work. It contains a title an optionally the main creator of the work. */
1513
- ContentsEntry: {
1514
- /** @constant */
1515
- type: "ContentsEntry";
1516
- /** @description Work or manifestation title extracted from analytical entry (7XX$t or 740$a) */
1517
- title: components["schemas"]["LegacyRegularTitle"];
1518
- /** @description Main creator extracted from analytical entry (700/710) */
1519
- creator?: components["schemas"]["Agent"];
1520
- };
1521
1525
  /** @description Map of other identifiers for the entity */
1522
1526
  ExpressionIdentifiers: {
1523
1527
  /** @description Identifier assigned by Biblioteksentralen for authority records. Unique for all authorities independent of type. */
@@ -1787,11 +1791,11 @@ interface components {
1787
1791
  * - succeeding_entry_note: Migrated from 785, will eventually be migrated to `relatedExpressions`.
1788
1792
  * @enum {string}
1789
1793
  */
1790
- NoteTypeEnum: "general_note" | "bibliographic_history_note" | "contents_note_complete" | "contents_note_legacy" | "participant_or_performer_note" | "system_details_note" | "language_note" | "other_identifier_note" | "variant_title_note" | "title_source_note" | "original_title_note" | "preceding_entry_note" | "succeeding_entry_note";
1794
+ ManifestationNoteTypeEnum: "general_note" | "bibliographic_history_note" | "contents_note_complete" | "contents_note_legacy" | "participant_or_performer_note" | "system_details_note" | "language_note" | "other_identifier_note" | "variant_title_note" | "title_source_note" | "original_title_note" | "preceding_entry_note" | "succeeding_entry_note";
1791
1795
  /** @description Additional information about the document given by the cataloguer */
1792
- Note: {
1796
+ ManifestationNote: {
1793
1797
  value: string;
1794
- noteType: components["schemas"]["NoteTypeEnum"];
1798
+ noteType: components["schemas"]["ManifestationNoteTypeEnum"];
1795
1799
  };
1796
1800
  /**
1797
1801
  * @description Identifier of a digital lending or streaming service.
@@ -1907,7 +1911,7 @@ interface components {
1907
1911
  /** @description Specifies the material that accompanyies the item, typically of document type "Combined document" or "Language Course" */
1908
1912
  accompanyingMaterial?: string;
1909
1913
  /** @description Cataloguer notes about the manifestation. */
1910
- notes?: components["schemas"]["Note"][];
1914
+ notes?: components["schemas"]["ManifestationNote"][];
1911
1915
  /** @description Whether the manifestation has been approved by Arts Council Norway (Kulturrådet) for library distribution through Innkjøpsordningane for litteratur. */
1912
1916
  kulturfond?: components["schemas"]["Kulturfond"];
1913
1917
  /** @description This is an aggregate manifestation containing several works. */
@@ -2006,6 +2010,11 @@ interface components {
2006
2010
  /** @constant */
2007
2011
  entityType: "work";
2008
2012
  id: components["schemas"]["Id"];
2013
+ /**
2014
+ * Format: date-time
2015
+ * @description When the work's Elasticsearch document was last updated (index ingest time).
2016
+ */
2017
+ updatedAt: string;
2009
2018
  } & components["schemas"]["BaseWork"] & {
2010
2019
  workType: components["schemas"]["CordataEnumWorkType"];
2011
2020
  literatureType?: components["schemas"]["LiteratureType"];
@@ -2042,6 +2051,7 @@ interface components {
2042
2051
  */
2043
2052
  contributors: components["schemas"]["Contributor"][];
2044
2053
  illustrations?: components["schemas"]["CordataEnumWorkIllustrationsOption"];
2054
+ notes?: components["schemas"]["WorkNote"][];
2045
2055
  /**
2046
2056
  * @description The recommended age group(s) for the work as assigned by Biblioteksentralen according to a controlled vocabulary.
2047
2057
  *
@@ -2070,8 +2080,6 @@ interface components {
2070
2080
  bibbiAuthorityId?: string;
2071
2081
  relation: components["schemas"]["CordataEnumWorkWorkRelationTypeCode"];
2072
2082
  }[];
2073
- /** @description Less structured information about the work's contents. Example: song titles for musical works (parsed from 740$a with ind2 == "2" in MARC21) */
2074
- contents?: components["schemas"]["ContentsEntry"][];
2075
2083
  /** @description List of countries where work is made, firstly used for movies. */
2076
2084
  countriesOfOrigin?: components["schemas"]["Place"][];
2077
2085
  /** @description Classification of the work according to a classification scheme. */
@@ -2088,11 +2096,32 @@ interface components {
2088
2096
  /** @description Expressions of this work, each with their manifestations. */
2089
2097
  expressions: components["schemas"]["Expression"][];
2090
2098
  };
2099
+ /** DeletedWork */
2100
+ DeletedWork: {
2101
+ /** @constant */
2102
+ type: "DeletedWork";
2103
+ /** @constant */
2104
+ entityType: "work";
2105
+ id: components["schemas"]["Id"];
2106
+ /**
2107
+ * Format: date-time
2108
+ * @description When the work was deleted from BMDB.
2109
+ */
2110
+ deletedAt: string;
2111
+ /** @description Replacement for the deleted work. */
2112
+ replacement?: components["schemas"]["Work"];
2113
+ };
2091
2114
  /** @description Full `Work` records for the requested IDs. */
2092
2115
  GetWorks200Response: {
2093
2116
  total?: components["schemas"]["total"];
2094
2117
  results: {
2095
- work: components["schemas"]["Work"];
2118
+ work: components["schemas"]["Work"] | components["schemas"]["DeletedWork"];
2119
+ /**
2120
+ * Format: date-time
2121
+ * @deprecated
2122
+ * @description Deprecated. Use `work.updatedAt` instead.
2123
+ */
2124
+ updatedAt: string;
2096
2125
  }[];
2097
2126
  };
2098
2127
  /** @description A batch of full `Work` records from a harvest. `resumptionToken` is present when more remain. */
@@ -2724,6 +2753,8 @@ interface components {
2724
2753
  type: "SearchProfile";
2725
2754
  /** @constant */
2726
2755
  entityType: "search_profile";
2756
+ /** @description Display name of the search profile, e.g. the library name. */
2757
+ name: string;
2727
2758
  /** @description Library catalogues included in this search profile. */
2728
2759
  catalogues: components["schemas"]["Catalogue"][];
2729
2760
  /** @description Redia customer identifier for this library (optional). */
@@ -5339,6 +5370,36 @@ declare const cordataEnumAgeLimitMap: {
5339
5370
  readonly nbvok_uri: "https://schema.nb.no/Bibliographic/Values/PG1004";
5340
5371
  readonly type: "age_limit";
5341
5372
  };
5373
+ readonly ttg2: {
5374
+ readonly code: "ttg2";
5375
+ readonly name: "2+";
5376
+ readonly preferred_name: {
5377
+ readonly nb: "2+";
5378
+ readonly nn: "2+";
5379
+ readonly en: "2+";
5380
+ };
5381
+ readonly comments: null;
5382
+ readonly domain: "cordata";
5383
+ readonly age_limit_type: "tabletop_game";
5384
+ readonly years: 2;
5385
+ readonly nbvok_uri: null;
5386
+ readonly type: "age_limit";
5387
+ };
5388
+ readonly ttg3: {
5389
+ readonly code: "ttg3";
5390
+ readonly name: "3+";
5391
+ readonly preferred_name: {
5392
+ readonly nb: "3+";
5393
+ readonly nn: "3+";
5394
+ readonly en: "3+";
5395
+ };
5396
+ readonly comments: null;
5397
+ readonly domain: "cordata";
5398
+ readonly age_limit_type: "tabletop_game";
5399
+ readonly years: 3;
5400
+ readonly nbvok_uri: null;
5401
+ readonly type: "age_limit";
5402
+ };
5342
5403
  readonly ttg4: {
5343
5404
  readonly code: "ttg4";
5344
5405
  readonly name: "4+";
@@ -8298,7 +8359,7 @@ declare const cordataEnumContributorRoleMap: {
8298
8359
  readonly normarc_code: "forf.";
8299
8360
  readonly bibframe_code: null;
8300
8361
  readonly rda_code: null;
8301
- readonly entities: ["expression", "work"];
8362
+ readonly entities: ["work"];
8302
8363
  readonly type: "contributor_role";
8303
8364
  };
8304
8365
  readonly translator: {
@@ -9135,4 +9196,4 @@ type BmdbSearchClient = Client<BmdbCordataApiV1Paths>;
9135
9196
  declare const createBmdbFetchClient: (options: BmdbSearchClientOptions) => BmdbSearchClient;
9136
9197
  //#endregion
9137
9198
  export { parseCatalogueId as C, ParsedCatalogueId as S, serializeDigitalServiceRecordId as _, BmdbCordataApiV1Schemas as a, parseCatalogueRecordId as b, isCordataEnumContributorRoleCode as c, isCordataEnumManifestationMediumCode as d, isCordataEnumWorkTypeCode as f, parseDigitalServiceRecordId as g, ParsedDigitalServiceRecordId as h, BmdbCordataApiV1Paths as i, isCordataEnumExpressionTypeCode as l, DigitalServiceRecordId as m, BmdbSearchClientOptions as n, isCordataEnumAgeGroupCode as o, formatIsbdTitle as p, createBmdbFetchClient as r, isCordataEnumAgeLimitCode as s, BmdbSearchClient as t, isCordataEnumLanguageCode as u, CatalogueRecordId as v, serializeCatalogueId as w, serializeCatalogueRecordId as x, ParsedCatalogueRecordId as y };
9138
- //# sourceMappingURL=index-CVJjkWB5.d.ts.map
9199
+ //# sourceMappingURL=index-CToMrbVb.d.ts.map
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_v1 = require("./v1-C_OZojnA.cjs");
2
+ const require_v1 = require("./v1-C5kBZR4y.cjs");
3
3
  //#region ../api-specifications/dist/bmdb-cordata-api/utils/catalogueRecordId.js
4
4
  const librarySystemTypeMap = {
5
5
  b: "bibliofil",
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as parseCatalogueId, S as ParsedCatalogueId, _ as serializeDigitalServiceRecordId, a as BmdbCordataApiV1Schemas, b as parseCatalogueRecordId, c as isCordataEnumContributorRoleCode, d as isCordataEnumManifestationMediumCode, f as isCordataEnumWorkTypeCode, g as parseDigitalServiceRecordId, h as ParsedDigitalServiceRecordId, i as BmdbCordataApiV1Paths, l as isCordataEnumExpressionTypeCode, m as DigitalServiceRecordId, n as BmdbSearchClientOptions, o as isCordataEnumAgeGroupCode, p as formatIsbdTitle, r as createBmdbFetchClient, s as isCordataEnumAgeLimitCode, t as BmdbSearchClient, u as isCordataEnumLanguageCode, v as CatalogueRecordId, w as serializeCatalogueId, x as serializeCatalogueRecordId, y as ParsedCatalogueRecordId } from "./index-H2sfQhnU.cjs";
1
+ import { C as parseCatalogueId, S as ParsedCatalogueId, _ as serializeDigitalServiceRecordId, a as BmdbCordataApiV1Schemas, b as parseCatalogueRecordId, c as isCordataEnumContributorRoleCode, d as isCordataEnumManifestationMediumCode, f as isCordataEnumWorkTypeCode, g as parseDigitalServiceRecordId, h as ParsedDigitalServiceRecordId, i as BmdbCordataApiV1Paths, l as isCordataEnumExpressionTypeCode, m as DigitalServiceRecordId, n as BmdbSearchClientOptions, o as isCordataEnumAgeGroupCode, p as formatIsbdTitle, r as createBmdbFetchClient, s as isCordataEnumAgeLimitCode, t as BmdbSearchClient, u as isCordataEnumLanguageCode, v as CatalogueRecordId, w as serializeCatalogueId, x as serializeCatalogueRecordId, y as ParsedCatalogueRecordId } from "./index-B-NaE4GW.cjs";
2
2
  //#region ../api-specifications/dist/bmdb-cordata-api/utils/substituteBibbiIdentifiersForIds.d.ts
3
3
  type BibbiIdentifierContext = {
4
4
  workBibbiIdentifier?: string;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as parseCatalogueId, S as ParsedCatalogueId, _ as serializeDigitalServiceRecordId, a as BmdbCordataApiV1Schemas, b as parseCatalogueRecordId, c as isCordataEnumContributorRoleCode, d as isCordataEnumManifestationMediumCode, f as isCordataEnumWorkTypeCode, g as parseDigitalServiceRecordId, h as ParsedDigitalServiceRecordId, i as BmdbCordataApiV1Paths, l as isCordataEnumExpressionTypeCode, m as DigitalServiceRecordId, n as BmdbSearchClientOptions, o as isCordataEnumAgeGroupCode, p as formatIsbdTitle, r as createBmdbFetchClient, s as isCordataEnumAgeLimitCode, t as BmdbSearchClient, u as isCordataEnumLanguageCode, v as CatalogueRecordId, w as serializeCatalogueId, x as serializeCatalogueRecordId, y as ParsedCatalogueRecordId } from "./index-CVJjkWB5.js";
1
+ import { C as parseCatalogueId, S as ParsedCatalogueId, _ as serializeDigitalServiceRecordId, a as BmdbCordataApiV1Schemas, b as parseCatalogueRecordId, c as isCordataEnumContributorRoleCode, d as isCordataEnumManifestationMediumCode, f as isCordataEnumWorkTypeCode, g as parseDigitalServiceRecordId, h as ParsedDigitalServiceRecordId, i as BmdbCordataApiV1Paths, l as isCordataEnumExpressionTypeCode, m as DigitalServiceRecordId, n as BmdbSearchClientOptions, o as isCordataEnumAgeGroupCode, p as formatIsbdTitle, r as createBmdbFetchClient, s as isCordataEnumAgeLimitCode, t as BmdbSearchClient, u as isCordataEnumLanguageCode, v as CatalogueRecordId, w as serializeCatalogueId, x as serializeCatalogueRecordId, y as ParsedCatalogueRecordId } from "./index-CToMrbVb.js";
2
2
  //#region ../api-specifications/dist/bmdb-cordata-api/utils/substituteBibbiIdentifiersForIds.d.ts
3
3
  type BibbiIdentifierContext = {
4
4
  workBibbiIdentifier?: string;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as isCordataEnumExpressionTypeCode, c as isCordataEnumWorkTypeCode, i as isCordataEnumContributorRoleCode, l as formatIsbdTitle, n as isCordataEnumAgeGroupCode, o as isCordataEnumLanguageCode, r as isCordataEnumAgeLimitCode, s as isCordataEnumManifestationMediumCode, t as createBmdbFetchClient } from "./v1-Blzc_Gn2.js";
1
+ import { a as isCordataEnumExpressionTypeCode, c as isCordataEnumWorkTypeCode, i as isCordataEnumContributorRoleCode, l as formatIsbdTitle, n as isCordataEnumAgeGroupCode, o as isCordataEnumLanguageCode, r as isCordataEnumAgeLimitCode, s as isCordataEnumManifestationMediumCode, t as createBmdbFetchClient } from "./v1-BCdmqXr8.js";
2
2
  //#region ../api-specifications/dist/bmdb-cordata-api/utils/catalogueRecordId.js
3
3
  const librarySystemTypeMap = {
4
4
  b: "bibliofil",
package/dist/v1/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_v1 = require("../v1-C_OZojnA.cjs");
2
+ const require_v1 = require("../v1-C5kBZR4y.cjs");
3
3
  exports.createBmdbFetchClient = require_v1.createBmdbFetchClient;
4
4
  exports.formatIsbdTitle = require_v1.formatIsbdTitle;
5
5
  exports.isCordataEnumAgeGroupCode = require_v1.isCordataEnumAgeGroupCode;
@@ -1,2 +1,2 @@
1
- import { a as BmdbCordataApiV1Schemas, c as isCordataEnumContributorRoleCode, d as isCordataEnumManifestationMediumCode, f as isCordataEnumWorkTypeCode, i as BmdbCordataApiV1Paths, l as isCordataEnumExpressionTypeCode, n as BmdbSearchClientOptions, o as isCordataEnumAgeGroupCode, p as formatIsbdTitle, r as createBmdbFetchClient, s as isCordataEnumAgeLimitCode, t as BmdbSearchClient, u as isCordataEnumLanguageCode } from "../index-H2sfQhnU.cjs";
1
+ import { a as BmdbCordataApiV1Schemas, c as isCordataEnumContributorRoleCode, d as isCordataEnumManifestationMediumCode, f as isCordataEnumWorkTypeCode, i as BmdbCordataApiV1Paths, l as isCordataEnumExpressionTypeCode, n as BmdbSearchClientOptions, o as isCordataEnumAgeGroupCode, p as formatIsbdTitle, r as createBmdbFetchClient, s as isCordataEnumAgeLimitCode, t as BmdbSearchClient, u as isCordataEnumLanguageCode } from "../index-B-NaE4GW.cjs";
2
2
  export { type BmdbCordataApiV1Paths, type BmdbCordataApiV1Schemas, BmdbSearchClient, BmdbSearchClientOptions, createBmdbFetchClient, formatIsbdTitle, isCordataEnumAgeGroupCode, isCordataEnumAgeLimitCode, isCordataEnumContributorRoleCode, isCordataEnumExpressionTypeCode, isCordataEnumLanguageCode, isCordataEnumManifestationMediumCode, isCordataEnumWorkTypeCode };
@@ -1,2 +1,2 @@
1
- import { a as BmdbCordataApiV1Schemas, c as isCordataEnumContributorRoleCode, d as isCordataEnumManifestationMediumCode, f as isCordataEnumWorkTypeCode, i as BmdbCordataApiV1Paths, l as isCordataEnumExpressionTypeCode, n as BmdbSearchClientOptions, o as isCordataEnumAgeGroupCode, p as formatIsbdTitle, r as createBmdbFetchClient, s as isCordataEnumAgeLimitCode, t as BmdbSearchClient, u as isCordataEnumLanguageCode } from "../index-CVJjkWB5.js";
1
+ import { a as BmdbCordataApiV1Schemas, c as isCordataEnumContributorRoleCode, d as isCordataEnumManifestationMediumCode, f as isCordataEnumWorkTypeCode, i as BmdbCordataApiV1Paths, l as isCordataEnumExpressionTypeCode, n as BmdbSearchClientOptions, o as isCordataEnumAgeGroupCode, p as formatIsbdTitle, r as createBmdbFetchClient, s as isCordataEnumAgeLimitCode, t as BmdbSearchClient, u as isCordataEnumLanguageCode } from "../index-CToMrbVb.js";
2
2
  export { type BmdbCordataApiV1Paths, type BmdbCordataApiV1Schemas, BmdbSearchClient, BmdbSearchClientOptions, createBmdbFetchClient, formatIsbdTitle, isCordataEnumAgeGroupCode, isCordataEnumAgeLimitCode, isCordataEnumContributorRoleCode, isCordataEnumExpressionTypeCode, isCordataEnumLanguageCode, isCordataEnumManifestationMediumCode, isCordataEnumWorkTypeCode };
package/dist/v1/index.js CHANGED
@@ -1 +1 @@
1
- export { t as createBmdbFetchClient, l as formatIsbdTitle, n as isCordataEnumAgeGroupCode, r as isCordataEnumAgeLimitCode, i as isCordataEnumContributorRoleCode, a as isCordataEnumExpressionTypeCode, o as isCordataEnumLanguageCode, s as isCordataEnumManifestationMediumCode, c as isCordataEnumWorkTypeCode } from "../v1-Blzc_Gn2.js";
1
+ export { t as createBmdbFetchClient, l as formatIsbdTitle, n as isCordataEnumAgeGroupCode, r as isCordataEnumAgeLimitCode, i as isCordataEnumContributorRoleCode, a as isCordataEnumExpressionTypeCode, o as isCordataEnumLanguageCode, s as isCordataEnumManifestationMediumCode, c as isCordataEnumWorkTypeCode } from "../v1-BCdmqXr8.js";
@@ -2064,6 +2064,36 @@ const cordataEnumAgeLimitMap = {
2064
2064
  nbvok_uri: "https://schema.nb.no/Bibliographic/Values/PG1004",
2065
2065
  type: "age_limit"
2066
2066
  },
2067
+ ttg2: {
2068
+ code: "ttg2",
2069
+ name: "2+",
2070
+ preferred_name: {
2071
+ nb: "2+",
2072
+ nn: "2+",
2073
+ en: "2+"
2074
+ },
2075
+ comments: null,
2076
+ domain: "cordata",
2077
+ age_limit_type: "tabletop_game",
2078
+ years: 2,
2079
+ nbvok_uri: null,
2080
+ type: "age_limit"
2081
+ },
2082
+ ttg3: {
2083
+ code: "ttg3",
2084
+ name: "3+",
2085
+ preferred_name: {
2086
+ nb: "3+",
2087
+ nn: "3+",
2088
+ en: "3+"
2089
+ },
2090
+ comments: null,
2091
+ domain: "cordata",
2092
+ age_limit_type: "tabletop_game",
2093
+ years: 3,
2094
+ nbvok_uri: null,
2095
+ type: "age_limit"
2096
+ },
2067
2097
  ttg4: {
2068
2098
  code: "ttg4",
2069
2099
  name: "4+",
@@ -5087,7 +5117,7 @@ const cordataEnumContributorRoleMap = {
5087
5117
  normarc_code: "forf.",
5088
5118
  bibframe_code: null,
5089
5119
  rda_code: null,
5090
- entities: ["expression", "work"],
5120
+ entities: ["work"],
5091
5121
  type: "contributor_role"
5092
5122
  },
5093
5123
  translator: {
@@ -9109,9 +9139,37 @@ const storeEnumDiscountGroupMap = {
9109
9139
  },
9110
9140
  "SPILL": {
9111
9141
  code: "SPILL",
9112
- name: "Spill",
9142
+ name: "Spill (utgår)",
9143
+ preferred_name: {
9144
+ nb: "Spill (utgår)",
9145
+ nn: null,
9146
+ en: null
9147
+ },
9148
+ comments: "Utgår, bruk DATASPILL eller BRETTSPILL",
9149
+ domain: "store",
9150
+ group_type: "materialtype",
9151
+ language: null,
9152
+ type: "discount_group"
9153
+ },
9154
+ "DATASPILL": {
9155
+ code: "DATASPILL",
9156
+ name: "Dataspill",
9113
9157
  preferred_name: {
9114
- nb: "Spill",
9158
+ nb: "Dataspill",
9159
+ nn: null,
9160
+ en: null
9161
+ },
9162
+ comments: null,
9163
+ domain: "store",
9164
+ group_type: "materialtype",
9165
+ language: null,
9166
+ type: "discount_group"
9167
+ },
9168
+ "BRETTSPILL": {
9169
+ code: "BRETTSPILL",
9170
+ name: "Brettspill",
9171
+ preferred_name: {
9172
+ nb: "Brettspill",
9115
9173
  nn: null,
9116
9174
  en: null
9117
9175
  },
@@ -11679,6 +11737,20 @@ const systemEnumIssueMap = {
11679
11737
  category: "internal",
11680
11738
  type: "issue"
11681
11739
  },
11740
+ "duplicate_noraf_id": {
11741
+ code: "duplicate_noraf_id",
11742
+ name: "Mulig duplikat: samme NORAF-id",
11743
+ preferred_name: {
11744
+ nb: "Mulig duplikat: samme NORAF-id",
11745
+ nn: null,
11746
+ en: null
11747
+ },
11748
+ comments: null,
11749
+ domain: "system",
11750
+ entities: ["agent"],
11751
+ category: "internal",
11752
+ type: "issue"
11753
+ },
11682
11754
  "manual_flag": {
11683
11755
  code: "manual_flag",
11684
11756
  name: "Manuelt flagget for kvalitetssikring",
@@ -14794,6 +14866,18 @@ const systemEnumOriginNameMap = {
14794
14866
  domain: "system",
14795
14867
  type: "origin_name"
14796
14868
  },
14869
+ nordic_game_supply: {
14870
+ code: "nordic_game_supply",
14871
+ name: "Nordic Game Supply",
14872
+ preferred_name: {
14873
+ nb: "Nordic Game Supply",
14874
+ nn: "Nordic Game Supply",
14875
+ en: "Nordic Game Supply"
14876
+ },
14877
+ comments: null,
14878
+ domain: "system",
14879
+ type: "origin_name"
14880
+ },
14797
14881
  bokbasen: {
14798
14882
  code: "bokbasen",
14799
14883
  name: "Bokbasen",
@@ -15191,4 +15275,4 @@ const parseHost = (host = "search.bmdb.no") => {
15191
15275
  //#endregion
15192
15276
  export { isCordataEnumExpressionTypeCode as a, isCordataEnumWorkTypeCode as c, isCordataEnumContributorRoleCode as i, formatIsbdTitle as l, isCordataEnumAgeGroupCode as n, isCordataEnumLanguageCode as o, isCordataEnumAgeLimitCode as r, isCordataEnumManifestationMediumCode as s, createBmdbFetchClient as t };
15193
15277
 
15194
- //# sourceMappingURL=v1-Blzc_Gn2.js.map
15278
+ //# sourceMappingURL=v1-BCdmqXr8.js.map
@@ -2063,6 +2063,36 @@ const cordataEnumAgeLimitMap = {
2063
2063
  nbvok_uri: "https://schema.nb.no/Bibliographic/Values/PG1004",
2064
2064
  type: "age_limit"
2065
2065
  },
2066
+ ttg2: {
2067
+ code: "ttg2",
2068
+ name: "2+",
2069
+ preferred_name: {
2070
+ nb: "2+",
2071
+ nn: "2+",
2072
+ en: "2+"
2073
+ },
2074
+ comments: null,
2075
+ domain: "cordata",
2076
+ age_limit_type: "tabletop_game",
2077
+ years: 2,
2078
+ nbvok_uri: null,
2079
+ type: "age_limit"
2080
+ },
2081
+ ttg3: {
2082
+ code: "ttg3",
2083
+ name: "3+",
2084
+ preferred_name: {
2085
+ nb: "3+",
2086
+ nn: "3+",
2087
+ en: "3+"
2088
+ },
2089
+ comments: null,
2090
+ domain: "cordata",
2091
+ age_limit_type: "tabletop_game",
2092
+ years: 3,
2093
+ nbvok_uri: null,
2094
+ type: "age_limit"
2095
+ },
2066
2096
  ttg4: {
2067
2097
  code: "ttg4",
2068
2098
  name: "4+",
@@ -5086,7 +5116,7 @@ const cordataEnumContributorRoleMap = {
5086
5116
  normarc_code: "forf.",
5087
5117
  bibframe_code: null,
5088
5118
  rda_code: null,
5089
- entities: ["expression", "work"],
5119
+ entities: ["work"],
5090
5120
  type: "contributor_role"
5091
5121
  },
5092
5122
  translator: {
@@ -9108,9 +9138,37 @@ const storeEnumDiscountGroupMap = {
9108
9138
  },
9109
9139
  "SPILL": {
9110
9140
  code: "SPILL",
9111
- name: "Spill",
9141
+ name: "Spill (utgår)",
9142
+ preferred_name: {
9143
+ nb: "Spill (utgår)",
9144
+ nn: null,
9145
+ en: null
9146
+ },
9147
+ comments: "Utgår, bruk DATASPILL eller BRETTSPILL",
9148
+ domain: "store",
9149
+ group_type: "materialtype",
9150
+ language: null,
9151
+ type: "discount_group"
9152
+ },
9153
+ "DATASPILL": {
9154
+ code: "DATASPILL",
9155
+ name: "Dataspill",
9112
9156
  preferred_name: {
9113
- nb: "Spill",
9157
+ nb: "Dataspill",
9158
+ nn: null,
9159
+ en: null
9160
+ },
9161
+ comments: null,
9162
+ domain: "store",
9163
+ group_type: "materialtype",
9164
+ language: null,
9165
+ type: "discount_group"
9166
+ },
9167
+ "BRETTSPILL": {
9168
+ code: "BRETTSPILL",
9169
+ name: "Brettspill",
9170
+ preferred_name: {
9171
+ nb: "Brettspill",
9114
9172
  nn: null,
9115
9173
  en: null
9116
9174
  },
@@ -11678,6 +11736,20 @@ const systemEnumIssueMap = {
11678
11736
  category: "internal",
11679
11737
  type: "issue"
11680
11738
  },
11739
+ "duplicate_noraf_id": {
11740
+ code: "duplicate_noraf_id",
11741
+ name: "Mulig duplikat: samme NORAF-id",
11742
+ preferred_name: {
11743
+ nb: "Mulig duplikat: samme NORAF-id",
11744
+ nn: null,
11745
+ en: null
11746
+ },
11747
+ comments: null,
11748
+ domain: "system",
11749
+ entities: ["agent"],
11750
+ category: "internal",
11751
+ type: "issue"
11752
+ },
11681
11753
  "manual_flag": {
11682
11754
  code: "manual_flag",
11683
11755
  name: "Manuelt flagget for kvalitetssikring",
@@ -14793,6 +14865,18 @@ const systemEnumOriginNameMap = {
14793
14865
  domain: "system",
14794
14866
  type: "origin_name"
14795
14867
  },
14868
+ nordic_game_supply: {
14869
+ code: "nordic_game_supply",
14870
+ name: "Nordic Game Supply",
14871
+ preferred_name: {
14872
+ nb: "Nordic Game Supply",
14873
+ nn: "Nordic Game Supply",
14874
+ en: "Nordic Game Supply"
14875
+ },
14876
+ comments: null,
14877
+ domain: "system",
14878
+ type: "origin_name"
14879
+ },
14796
14880
  bokbasen: {
14797
14881
  code: "bokbasen",
14798
14882
  name: "Bokbasen",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biblioteksentralen/bmdb-search",
3
- "version": "0.0.0-beta.74",
3
+ "version": "0.0.0-beta.75",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Client for searching Bibliotekenes metadatabrønn (BMDB)",