@biblioteksentralen/bmdb-search 0.0.0-beta.65 → 0.0.0-beta.67

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.
@@ -761,12 +761,15 @@ interface components$1 {
761
761
  /** @description Internal note on the entity. Used for identifying and differentiating entities with similar names. */
762
762
  scopeNote?: string;
763
763
  };
764
+ /** @enum {string} */
765
+ CordataEnumEventTypeCode: "fire" | "genocide" | "famine" | "war" | "criminal_case" | "crisis" | "military_operation" | "natural_disaster" | "uprising" | "pandemic" | "revolution" | "battle" | "strike" | "era" | "time_span" | "concert" | "accident";
764
766
  /** @description Conference, music festival or other type of event. */
765
767
  SubjectTypeEvent: components$1["schemas"]["SubjectBase"] & {
766
768
  /** @constant */
767
769
  type: "SubjectTypeEvent";
768
770
  /** @constant */
769
771
  entityType: "event";
772
+ eventType?: components$1["schemas"]["CordataEnumEventTypeCode"];
770
773
  /** @description Map of identifiers for matching records in external systems. */
771
774
  identifiers: {
772
775
  /** @description Identifier assigned by Biblioteksentralen for authority records. Unique for all authorities independent of type. */
@@ -783,6 +786,7 @@ interface components$1 {
783
786
  type: "SubjectTypeWork";
784
787
  /** @constant */
785
788
  entityType: "work";
789
+ workType: components$1["schemas"]["CordataEnumWorkTypeCode"];
786
790
  /** @description Map of identifiers for matching records in external systems. */
787
791
  identifiers: {
788
792
  bibbiAuthorityId?: string;
@@ -1895,48 +1899,6 @@ interface paths {
1895
1899
  patch?: never;
1896
1900
  trace?: never;
1897
1901
  };
1898
- "/{searchProfile}/subjects/search": {
1899
- parameters: {
1900
- query?: never;
1901
- header?: never;
1902
- path?: never;
1903
- cookie?: never;
1904
- };
1905
- /**
1906
- * Search subjects
1907
- * @description Endpoint for searching BMDB subjects.
1908
- *
1909
- */
1910
- get: operations["searchSubjects"];
1911
- put?: never;
1912
- post?: never;
1913
- delete?: never;
1914
- options?: never;
1915
- head?: never;
1916
- patch?: never;
1917
- trace?: never;
1918
- };
1919
- "/{searchProfile}/subjects": {
1920
- parameters: {
1921
- query?: never;
1922
- header?: never;
1923
- path?: never;
1924
- cookie?: never;
1925
- };
1926
- /**
1927
- * Get subjects
1928
- * @description Endpoint for getting BMDB subjects.
1929
- *
1930
- */
1931
- get: operations["getSubjects"];
1932
- put?: never;
1933
- post?: never;
1934
- delete?: never;
1935
- options?: never;
1936
- head?: never;
1937
- patch?: never;
1938
- trace?: never;
1939
- };
1940
1902
  "/{searchProfile}/catalogue-records": {
1941
1903
  parameters: {
1942
1904
  query?: never;
@@ -1958,27 +1920,6 @@ interface paths {
1958
1920
  patch?: never;
1959
1921
  trace?: never;
1960
1922
  };
1961
- "/{searchProfile}/suggestions/search": {
1962
- parameters: {
1963
- query?: never;
1964
- header?: never;
1965
- path?: never;
1966
- cookie?: never;
1967
- };
1968
- /**
1969
- * Search suggestions
1970
- * @description Endpoint for searching suggestions.
1971
- *
1972
- */
1973
- get: operations["searchSuggestions"];
1974
- put?: never;
1975
- post?: never;
1976
- delete?: never;
1977
- options?: never;
1978
- head?: never;
1979
- patch?: never;
1980
- trace?: never;
1981
- };
1982
1923
  "/search-profiles": {
1983
1924
  parameters: {
1984
1925
  query?: never;
@@ -2534,21 +2475,6 @@ interface components {
2534
2475
  };
2535
2476
  };
2536
2477
  /** @description A language map is used to associate a language with a value in a way that allows easy programmatic access. The keys of a language map are strings representing [BCP47](https://www.rfc-editor.org/info/bcp47) language tags, defined as the shortest ISO 639 code for a language. */
2537
- LanguageMapWithEnglish: {
2538
- nb: string;
2539
- nn: string;
2540
- en: string;
2541
- };
2542
- /** @description Work types from {@link https://www.nb.no/nbvok/vtp/nb/ Nbvok vocabulary of work types } */
2543
- WorkType: {
2544
- /** @constant */
2545
- type: "WorkType";
2546
- /** @enum {string} */
2547
- id: "V1000" | "V1001" | "V1002" | "V1003" | "V1004" | "V1005";
2548
- uri: string;
2549
- label: components["schemas"]["LanguageMapWithEnglish"];
2550
- };
2551
- /** @description A language map is used to associate a language with a value in a way that allows easy programmatic access. The keys of a language map are strings representing [BCP47](https://www.rfc-editor.org/info/bcp47) language tags, defined as the shortest ISO 639 code for a language. */
2552
2478
  LanguageMap: {
2553
2479
  nb: string;
2554
2480
  nn: string;
@@ -2558,6 +2484,13 @@ interface components {
2558
2484
  code: components["schemas"]["LiteratureTypeCode"];
2559
2485
  label: components["schemas"]["LanguageMap"];
2560
2486
  };
2487
+ RegularTitle: {
2488
+ /** @constant */
2489
+ titleType?: "regular_title";
2490
+ } & components["schemas"]["BaseTitle"] & {
2491
+ /** @description The language of the title. */
2492
+ titleLanguage?: components["schemas"]["Language"];
2493
+ };
2561
2494
  /**
2562
2495
  * @description Possible variant title types.
2563
2496
  *
@@ -2578,13 +2511,6 @@ interface components {
2578
2511
  /** @description The language of the title. */
2579
2512
  titleLanguage?: components["schemas"]["Language"];
2580
2513
  };
2581
- RegularTitle: {
2582
- /** @constant */
2583
- titleType?: "regular_title";
2584
- } & components["schemas"]["BaseTitle"] & {
2585
- /** @description The language of the title. */
2586
- titleLanguage?: components["schemas"]["Language"];
2587
- };
2588
2514
  /** @description A Language Map List is a Language Map of string lists, a construct to support the fact that the number of synonyms / alternative names for an entity is generally not the same across languages. */
2589
2515
  LanguageMapList: {
2590
2516
  nb: string[];
@@ -2748,36 +2674,6 @@ interface components {
2748
2674
  bibframeRelator?: string;
2749
2675
  rdaRelator?: string;
2750
2676
  };
2751
- /**
2752
- * @deprecated
2753
- * @description Use `code` instead.
2754
- */
2755
- id: string;
2756
- /**
2757
- * @deprecated
2758
- * @constant
2759
- */
2760
- type: "Role";
2761
- /**
2762
- * @deprecated
2763
- * @description Use `identifiers.marc21Code` instead.
2764
- */
2765
- marc21Code?: string;
2766
- /**
2767
- * @deprecated
2768
- * @description Use `identifiers.normarcCode` instead.
2769
- */
2770
- normarcCode?: string;
2771
- /**
2772
- * @deprecated
2773
- * @description Use `identifiers.bibframeRelator` instead.
2774
- */
2775
- bibframeRelator?: string;
2776
- /**
2777
- * @deprecated
2778
- * @description Use `identifiers.rdaRelator` instead.
2779
- */
2780
- rdaRelator?: string;
2781
2677
  };
2782
2678
  /** @description A Contributor object links a {@link Work } , {@link Expression } , {@link Manifestation } , {@link CollectionExpression } or {@link CollectionWork } to an {@link Agent } which has contributed to the entity and the Role the Agent played in the creation of the entity. */
2783
2679
  Contributor: {
@@ -2820,42 +2716,6 @@ interface components {
2820
2716
  /** @description Value from MARC 21 field 008/22 <https://www.loc.gov/marc/bibliographic/bd008b.html>. */
2821
2717
  marc21Code?: string;
2822
2718
  };
2823
- /**
2824
- * @deprecated
2825
- * @description Use `code` instead
2826
- */
2827
- id: string;
2828
- /**
2829
- * @deprecated
2830
- * @constant
2831
- */
2832
- type: "AgeGroup";
2833
- /**
2834
- * @deprecated
2835
- * @constant
2836
- */
2837
- entityType: "age_group";
2838
- /**
2839
- * @deprecated
2840
- * @description Use `label` instead.
2841
- */
2842
- name: components["schemas"]["LanguageMap"];
2843
- /**
2844
- * @deprecated
2845
- * @description Use `identifiers.nbVokUri` instead.
2846
- */
2847
- nortargetUri?: string;
2848
- /**
2849
- * @deprecated
2850
- * @description Use `identifiers.plasCode` instead.
2851
- * @enum {string}
2852
- */
2853
- plasCode?: "child" | "youngAdult" | "adult";
2854
- /**
2855
- * @deprecated
2856
- * @description Use `identifiers.marc21Code` instead.
2857
- */
2858
- marc21Code?: string;
2859
2719
  };
2860
2720
  /** @enum {string} */
2861
2721
  CordataEnumAgeLimitCode: "nmaa" | "nma6" | "nma9" | "nma12" | "nma15" | "nma18" | "pegi3" | "pegi7" | "pegi12" | "pegi16" | "pegi18";
@@ -2877,16 +2737,6 @@ interface components {
2877
2737
  * */
2878
2738
  uri: string;
2879
2739
  };
2880
- /**
2881
- * @deprecated
2882
- * @constant
2883
- */
2884
- entityType: "age_limit";
2885
- /**
2886
- * @deprecated
2887
- * @description Use `identifier.uri` instead.
2888
- */
2889
- uri: string;
2890
2740
  };
2891
2741
  SubjectBase: {
2892
2742
  id: components["schemas"]["Id"];
@@ -3000,6 +2850,21 @@ interface components {
3000
2850
  };
3001
2851
  };
3002
2852
  Subject: components["schemas"]["SubjectTypeConcept"] | components["schemas"]["SubjectTypePlace"] | components["schemas"]["SubjectTypePerson"] | components["schemas"]["SubjectTypeCollectiveAgent"] | components["schemas"]["SubjectTypeEvent"] | components["schemas"]["SubjectTypeWork"] | components["schemas"]["SubjectTypeCollection"];
2853
+ /** @description A language map is used to associate a language with a value in a way that allows easy programmatic access. The keys of a language map are strings representing [BCP47](https://www.rfc-editor.org/info/bcp47) language tags, defined as the shortest ISO 639 code for a language. */
2854
+ LanguageMapWithEnglish: {
2855
+ nb: string;
2856
+ nn: string;
2857
+ en: string;
2858
+ };
2859
+ /** @description Work types from {@link https://www.nb.no/nbvok/vtp/nb/ Nbvok vocabulary of work types } */
2860
+ WorkType: {
2861
+ /** @constant */
2862
+ type: "WorkType";
2863
+ /** @enum {string} */
2864
+ id: "V1000" | "V1001" | "V1002" | "V1003" | "V1004" | "V1005";
2865
+ uri: string;
2866
+ label: components["schemas"]["LanguageMapWithEnglish"];
2867
+ };
3003
2868
  /** @description Genre is used to group literature and other arts into categories based on stylistic criteria.
3004
2869
  *
3005
2870
  * Bibliographic conventions differ as to whether to separate genre and form, as well as in what constitutes a genre and what constitures a form. The Norwegian national thesaurus for genre and form, (@link https://www.nb.no/nbvok/ntsf/nb/ | NTSF), contains both genre and form without separation. For practical reasons, Cordata therefore includes form as a subtype of Genre, using a boolean toggle to indicate form terms.
@@ -3062,11 +2927,6 @@ interface components {
3062
2927
  * See also the manifestation property `accessibleFormat`, which describes accessibility features which are related to format, not content, such as larger font size or dyslexia friendly fonts. */
3063
2928
  AccessibleContentFeature: {
3064
2929
  type: string;
3065
- /**
3066
- * @deprecated
3067
- * @description Use `code` instead.
3068
- */
3069
- id: string;
3070
2930
  code: components["schemas"]["CordataEnumAccessibleContentCode"];
3071
2931
  label: components["schemas"]["LanguageMap"];
3072
2932
  /** @description URI for the corresponding concept in National Library's [Vocabulary of target groups (nortarget)](https://www.nb.no/nbvok/tg/nb/). */
@@ -3161,17 +3021,6 @@ interface components {
3161
3021
  domain?: "Expression" | "Manifestation";
3162
3022
  isUnstable: components["schemas"]["IsUnstable"];
3163
3023
  };
3164
- /** @description Map of other identifiers for the entity */
3165
- CollectionWorkIdentifiers: {
3166
- /** @description Identifier assigned by Biblioteksentralen for authority records. Unique for all authorities independent of type. */
3167
- bibbiAuthorityId?: string;
3168
- /** @description Identifier for the BMDB entity from id.nb.no */
3169
- nbBmdbUri?: string;
3170
- /** @description Identifier for the entity from IMDb */
3171
- imdbId?: string;
3172
- /** @description Identifier for the entity from Wikidata */
3173
- wikidataId?: string;
3174
- };
3175
3024
  /** @description A Collection is a set of entities - manifestations or works - that share certain features.
3176
3025
  *
3177
3026
  * The collection can be explicitly named in the source material, such as the series "SF Masterworks" which is a collection of acclaimed SF novels published by Gollancz, or constructed from a set of features that the collected entities have in common, such as "The Lovecraft Mythos" for works that use creatures and features from H.P. Lovecraft's fictional universe.
@@ -3183,7 +3032,17 @@ interface components {
3183
3032
  /** @constant */
3184
3033
  entityType: "collection_work";
3185
3034
  id: components["schemas"]["Id"];
3186
- identifiers: components["schemas"]["CollectionWorkIdentifiers"];
3035
+ /** @description Map of other identifiers for the entity */
3036
+ identifiers: {
3037
+ /** @description Identifier assigned by Biblioteksentralen for authority records. Unique for all authorities independent of type. */
3038
+ bibbiAuthorityId?: string;
3039
+ /** @description Identifier for the BMDB entity from id.nb.no */
3040
+ nbBmdbUri?: string;
3041
+ /** @description Identifier for the entity from IMDb */
3042
+ imdbId?: string;
3043
+ /** @description Identifier for the entity from Wikidata */
3044
+ wikidataId?: string;
3045
+ };
3187
3046
  collectionType: components["schemas"]["CordataEnumCollectionTypeCode"];
3188
3047
  workType?: components["schemas"]["CordataEnumWorkType"];
3189
3048
  /** @description TODO */
@@ -3204,24 +3063,9 @@ interface components {
3204
3063
  /** @description A Collection Expression Entry links a Manifestation or Expression to the collection the entity is a member of. */
3205
3064
  ExpressionCollectionExpressionEntry: {
3206
3065
  collection: components["schemas"]["BaseCollectionExpression"] & {
3207
- /**
3208
- * @deprecated
3209
- * @description Use `preferredTitle` instead.
3210
- */
3211
- title: components["schemas"]["LegacyRegularTitle"];
3212
- workExpressed?: components["schemas"]["BaseCollectionWork"] & {
3213
- /**
3214
- * @deprecated
3215
- * @description Use `preferredTitle` instead.
3216
- */
3217
- title: components["schemas"]["LegacyRegularTitle"];
3218
- };
3066
+ /** @description Links the Collection Expression to the Collection Work it expresses. */
3067
+ workExpressed?: components["schemas"]["BaseCollectionWork"];
3219
3068
  superCollection?: components["schemas"]["BaseCollectionExpression"] & {
3220
- /**
3221
- * @deprecated
3222
- * @description Use `preferredTitle` instead.
3223
- */
3224
- title: components["schemas"]["LegacyRegularTitle"];
3225
3069
  /** @description TODO */
3226
3070
  workExpressed?: {
3227
3071
  /** @constant */
@@ -3251,16 +3095,6 @@ interface components {
3251
3095
  Platform: components["schemas"]["CordataEnumPlatform"] & {
3252
3096
  /** @description Abbreviated name of the platform. Example: "PS4" */
3253
3097
  abbreviatedName?: string;
3254
- /**
3255
- * @deprecated
3256
- * @description Use `code` instead.
3257
- */
3258
- id: string;
3259
- /**
3260
- * @deprecated
3261
- * @description Use `label` instead.
3262
- */
3263
- name: string;
3264
3098
  };
3265
3099
  MusicInstrument: {
3266
3100
  /** @constant */
@@ -3283,11 +3117,6 @@ interface components {
3283
3117
  ManifestationIdentifiers: {
3284
3118
  /** @description ID assigned to all publications catalogued by Biblioteksentralen. */
3285
3119
  bibbiId?: string;
3286
- /**
3287
- * @deprecated
3288
- * @description SKU (varenummer) assigned to products in Biblioteksentralen's webshop.
3289
- */
3290
- bibsentSku?: string;
3291
3120
  /** @description Unique ID assigned to a publication in Bibliofil. Shared by all Bibliofil libraries. */
3292
3121
  bibliofilId?: string;
3293
3122
  /** @description Unique ID assigned to a publication in Bokbasen. */
@@ -3296,11 +3125,6 @@ interface components {
3296
3125
  filmoteketId?: string;
3297
3126
  /** @description Identifier for a movie in Cineast. Can be used to generate URLs: <https://www.cineast.no/no/library/400/title/{cineastId}> */
3298
3127
  cineastId?: string;
3299
- /**
3300
- * @deprecated
3301
- * @description Identifier for a movie in IMDB. Deprecated, see work.identifiers.imdbId instead
3302
- */
3303
- imdbId?: string;
3304
3128
  /** @description Identifier for the BMDB entity from id.nb.no */
3305
3129
  nbBmdbUri?: string;
3306
3130
  };
@@ -3320,19 +3144,6 @@ interface components {
3320
3144
  nn: string;
3321
3145
  };
3322
3146
  };
3323
- /** @description Binding type is taken from a controlled list of bindings for paper books. Provisionally it is expressed as a string in Norwegian Bokmål, but additional languages will be added later. */
3324
- BindingType: components["schemas"]["CordataEnumBindingType"] & {
3325
- /**
3326
- * @deprecated
3327
- * @description Use `code` instead.
3328
- */
3329
- id: string;
3330
- /**
3331
- * @deprecated
3332
- * @description Use `label` instead.
3333
- */
3334
- name: components["schemas"]["LanguageMap"];
3335
- };
3336
3147
  CordataEnumManifestationMedium: {
3337
3148
  code: components["schemas"]["CordataEnumManifestationMediumCode"];
3338
3149
  label: {
@@ -3340,20 +3151,6 @@ interface components {
3340
3151
  nn: string;
3341
3152
  };
3342
3153
  };
3343
- /** @description A DocumentType is a member of a controlled list used to categorize manifestations based on format and medum.
3344
- *
3345
- * It shows if a manifestation is e.g. a printed book, a downloadable e-book, a film on DVD, an audiobook on CD, a Nintendo Switch game on a game card, etc. */
3346
- DocumentType: {
3347
- /** @constant */
3348
- type: "DocumentType";
3349
- id: string;
3350
- /** @description Identifier for the document type. */
3351
- code: string;
3352
- /** @description The format of the manifestation, e.g. "book", "film", "audiobook", "Nintendo Switch game" */
3353
- format: string;
3354
- /** @description The carrier medium of the manifestation where applicable, e.g. "DVD", "downloadable", "game card" */
3355
- medium?: string;
3356
- };
3357
3154
  /** @description An imprint of a publishing company (publisher) is a trade name under which publications are published. */
3358
3155
  Imprint: {
3359
3156
  /** @constant */
@@ -3419,11 +3216,6 @@ interface components {
3419
3216
  *
3420
3217
  * The preferred source of title for a manifestation is the title page. See also {@link parallelTitles } and {@link variantTitles } . */
3421
3218
  preferredTitle: components["schemas"]["RegularTitle"];
3422
- /**
3423
- * @deprecated
3424
- * @description Use `preferredTitle` instead.
3425
- */
3426
- title: components["schemas"]["LegacyRegularTitle"];
3427
3219
  /** @description Parallel titles
3428
3220
  *
3429
3221
  * For manifestations containing two or more expressions of the same work in different languages, e.g. "As you like it = Som dere vil ha det". Bibliographic convention is to display parallel titles consecutively, separated by a = sign.
@@ -3437,13 +3229,8 @@ interface components {
3437
3229
  /** @description The cover image of the manifestation. */
3438
3230
  coverImage?: string;
3439
3231
  /** @description The binding type for paper books. */
3440
- binding?: components["schemas"]["BindingType"];
3232
+ binding?: components["schemas"]["CordataEnumBindingType"];
3441
3233
  manifestationMedium: components["schemas"]["CordataEnumManifestationMedium"];
3442
- /**
3443
- * @deprecated
3444
- * @description Use `manifestationMedium`, `expression.expressionType` and `work.workType` instead.
3445
- */
3446
- documentType: components["schemas"]["DocumentType"];
3447
3234
  /** @description Statement of responsibility is a human-readable text string that */
3448
3235
  statementOfResponsibility?: string;
3449
3236
  /** @description {@link https://en.wikipedia.org/wiki/ISBN ISBN } . International identifier for manifestations of books, including e-books and audio books.
@@ -3534,11 +3321,6 @@ interface components {
3534
3321
  entityType: "expression";
3535
3322
  id: components["schemas"]["Id"];
3536
3323
  identifiers?: components["schemas"]["ExpressionIdentifiers"];
3537
- /**
3538
- * @deprecated
3539
- * @description Use `preferredTitle` instead.
3540
- */
3541
- title?: components["schemas"]["LegacyRegularTitle"];
3542
3324
  /** @description Preferred title of expression. See {@link Title } for individual components of title. */
3543
3325
  preferredTitle: components["schemas"]["RegularTitle"];
3544
3326
  /** @description TODO */
@@ -3587,17 +3369,7 @@ interface components {
3587
3369
  id: components["schemas"]["Id"];
3588
3370
  } & components["schemas"]["BaseWork"] & {
3589
3371
  workType: components["schemas"]["CordataEnumWorkType"];
3590
- /**
3591
- * @deprecated
3592
- * @description Use `workType`
3593
- */
3594
- workTypes: components["schemas"]["WorkType"][];
3595
3372
  literatureType?: components["schemas"]["LiteratureType"];
3596
- /**
3597
- * @deprecated
3598
- * @description Use `preferredTitle` instead.
3599
- */
3600
- title: components["schemas"]["LegacyRegularTitle"] | components["schemas"]["UniformTitleMusic"];
3601
3373
  /** @description Preferred title of work.
3602
3374
  *
3603
3375
  * Typically this will be the title the work was assigned at its first publication or release. Exceptions are made if:
@@ -3635,11 +3407,6 @@ interface components {
3635
3407
  summary?: string;
3636
3408
  subjects: components["schemas"]["Subject"][];
3637
3409
  genres: components["schemas"]["Genre"][];
3638
- /**
3639
- * @deprecated
3640
- * @description Whether the Work is a work of fiction. **Deprecated.** Use `literatureType` instead. `isFiction === true` is equivalent to `literatureType.code === "skjønnlitteratur"`.
3641
- */
3642
- isFiction?: boolean;
3643
3410
  grepSubjects?: components["schemas"]["GrepSubject"][];
3644
3411
  /** @description Whether the work has been created or adapted for users with special needs. */
3645
3412
  accessibleContentFeature?: components["schemas"]["AccessibleContentFeature"];
@@ -3763,7 +3530,11 @@ interface components {
3763
3530
  /** @constant */
3764
3531
  entityType: "collection_work";
3765
3532
  id: components["schemas"]["Id"];
3766
- identifiers: components["schemas"]["CollectionWorkIdentifiers"];
3533
+ /** @description Map of other identifiers for the entity */
3534
+ identifiers: {
3535
+ /** @description Identifier assigned by Biblioteksentralen for authority records. Unique for all authorities independent of type. */
3536
+ bibbiAuthorityId?: string;
3537
+ };
3767
3538
  collectionType: components["schemas"]["CordataEnumCollectionTypeTranslated"];
3768
3539
  workType?: components["schemas"]["CordataEnumWorkTypeTranslated"];
3769
3540
  expressionType?: components["schemas"]["CordataEnumExpressionTypeTranslated"];
@@ -3866,112 +3637,6 @@ interface components {
3866
3637
  collection: components["schemas"]["CollectionWork"];
3867
3638
  }[];
3868
3639
  };
3869
- SubjectSearchFilterType: {
3870
- identifier?: string;
3871
- id?: string;
3872
- /** @enum {string} */
3873
- type?: "concept" | "event" | "agent" | "work" | "collection_work";
3874
- catalogue?: string;
3875
- };
3876
- /**
3877
- * @description How the search results should be sorted. Available options:
3878
- *
3879
- * - `relevance.desc`
3880
- * - `updateTime.desc`
3881
- * - `updateTime.asc`
3882
- * @enum {string}
3883
- */
3884
- SubjectSearchSortType: "relevance.desc" | "updateTime.desc" | "updateTime.asc";
3885
- /** @enum {string} */
3886
- SubjectSearchFacetType: "catalogue";
3887
- CordataEnumConceptTypeTranslated: {
3888
- code: components["schemas"]["CordataEnumConceptTypeCode"];
3889
- label: string;
3890
- };
3891
- /** @enum {string} */
3892
- CordataEnumEventTypeCode: "fire" | "genocide" | "famine" | "war" | "criminal_case" | "crisis" | "military_operation" | "natural_disaster" | "uprising" | "pandemic" | "revolution" | "battle" | "strike" | "era" | "time_span" | "concert" | "accident";
3893
- CordataEnumEventTypeTranslated: {
3894
- code: components["schemas"]["CordataEnumEventTypeCode"];
3895
- label: string;
3896
- };
3897
- SubjectSummary: {
3898
- id: components["schemas"]["Id"];
3899
- name: string;
3900
- /** @constant */
3901
- type: "SubjectSummary";
3902
- /** @constant */
3903
- entityType: "subject";
3904
- about?: {
3905
- /** @constant */
3906
- type: "SubjectSummaryConcept";
3907
- /** @constant */
3908
- entityType: "concept";
3909
- conceptType: components["schemas"]["CordataEnumConceptTypeTranslated"];
3910
- identifiers: {
3911
- /** @description Identifier assigned by Biblioteksentralen for authority records. Unique for all authorities independent of type. */
3912
- bibbiAuthorityId?: string;
3913
- /** @description Identifier from Norske emneord (NEO). */
3914
- neoUri?: string;
3915
- };
3916
- } | {
3917
- /** @constant */
3918
- type: "SubjectSummaryEvent";
3919
- /** @constant */
3920
- entityType: "event";
3921
- eventType: components["schemas"]["CordataEnumEventTypeTranslated"];
3922
- identifiers: {
3923
- /** @description Identifier assigned by Biblioteksentralen for authority records. Unique for all authorities independent of type. */
3924
- bibbiAuthorityId?: string;
3925
- /** @description Identifier from Norske emneord (NEO). */
3926
- neoUri?: string;
3927
- };
3928
- } | {
3929
- /** @constant */
3930
- type: "SubjectSummaryAgent";
3931
- /** @constant */
3932
- entityType: "agent";
3933
- agentType: components["schemas"]["CordataEnumAgentTypeTranslated"];
3934
- identifiers: components["schemas"]["AgentIdentifiers"];
3935
- } | {
3936
- /** @constant */
3937
- type: "SubjectSummaryWork";
3938
- /** @constant */
3939
- entityType: "work";
3940
- workType: components["schemas"]["CordataEnumWorkTypeTranslated"];
3941
- identifiers: components["schemas"]["WorkIdentifiers"];
3942
- } | {
3943
- /** @constant */
3944
- type: "SubjectSummaryCollection";
3945
- /** @constant */
3946
- entityType: "collection_work";
3947
- collectionType: components["schemas"]["CordataEnumCollectionTypeTranslated"];
3948
- identifiers: components["schemas"]["CollectionWorkIdentifiers"];
3949
- };
3950
- };
3951
- SubjectFacet: {
3952
- type: components["schemas"]["SubjectSearchFacetType"];
3953
- /** @description A displayable (human readable) facet name. */
3954
- name?: string;
3955
- terms: components["schemas"]["FacetTerm"][];
3956
- };
3957
- SearchSubjects200Response: {
3958
- total?: components["schemas"]["total"];
3959
- results: {
3960
- subject: components["schemas"]["SubjectSummary"];
3961
- }[];
3962
- endOfResults: components["schemas"]["endOfResults"];
3963
- /** @description This array contains the requested facets, and their terms. Each facet type should only appear once in the array. */
3964
- facets?: components["schemas"]["SubjectFacet"][];
3965
- queryType?: components["schemas"]["queryType"];
3966
- advancedQueryErrors?: components["schemas"]["advancedQueryErrors"];
3967
- sorting: components["schemas"]["SubjectSearchSortType"];
3968
- };
3969
- GetSubjects200Response: {
3970
- total?: components["schemas"]["total"];
3971
- results: {
3972
- subject: components["schemas"]["Subject"];
3973
- }[];
3974
- };
3975
3640
  CatalogueRecordWork: {
3976
3641
  /** @constant */
3977
3642
  type: "CatalogueRecordWork";
@@ -4058,88 +3723,6 @@ interface components {
4058
3723
  catalogueRecord: components["schemas"]["CatalogueRecord"];
4059
3724
  }[];
4060
3725
  };
4061
- SuggestionSearchFilterType: {
4062
- /**
4063
- * @description Suggestion type
4064
- * @enum {string}
4065
- */
4066
- type?: "work" | "agent" | "collection";
4067
- };
4068
- SuggestionAgentBase: {
4069
- id: components["schemas"]["Id"];
4070
- name: string;
4071
- /** @constant */
4072
- entityType: "agent";
4073
- agentType: components["schemas"]["CordataEnumAgentTypeTranslated"];
4074
- collectiveAgentType?: components["schemas"]["CordataEnumCollectiveAgentTypeTranslated"];
4075
- identifiers: components["schemas"]["AgentIdentifiers"];
4076
- };
4077
- SuggestionContributor: {
4078
- agent: {
4079
- /** @constant */
4080
- type: "ContributorAgentSuggestion";
4081
- } & components["schemas"]["SuggestionAgentBase"];
4082
- /**
4083
- * Role
4084
- * @description The Role shows which function the Agent has had in the process of producing an entity.
4085
- */
4086
- roles: components["schemas"]["CordataEnumContributorRoleTranslated"][];
4087
- };
4088
- Suggestion: {
4089
- /** @constant */
4090
- type: "WorkSuggestion";
4091
- /** @constant */
4092
- entityType: "work";
4093
- id: components["schemas"]["Id"];
4094
- workType: components["schemas"]["CordataEnumWorkTypeTranslated"];
4095
- expressionTypes: components["schemas"]["CordataEnumExpressionTypeTranslated"][];
4096
- title: string;
4097
- identifiers: components["schemas"]["WorkIdentifiers"];
4098
- contributors: components["schemas"]["SuggestionContributor"][];
4099
- } | ({
4100
- /** @constant */
4101
- type: "AgentSuggestion";
4102
- } & components["schemas"]["SuggestionAgentBase"]) | {
4103
- /** @constant */
4104
- type: "CollectionSuggestion";
4105
- /** @constant */
4106
- entityType: "collection_work";
4107
- collectionType: components["schemas"]["CordataEnumCollectionTypeTranslated"];
4108
- workType?: components["schemas"]["CordataEnumWorkTypeTranslated"];
4109
- expressionTypes?: components["schemas"]["CordataEnumExpressionTypeTranslated"][];
4110
- id: components["schemas"]["Id"];
4111
- title: string;
4112
- identifiers: components["schemas"]["CollectionWorkIdentifiers"];
4113
- contributors: components["schemas"]["SuggestionContributor"][];
4114
- } | {
4115
- /** @constant */
4116
- type: "SubjectSuggestion";
4117
- /** @constant */
4118
- entityType: "subject";
4119
- id: components["schemas"]["Id"];
4120
- label: string;
4121
- /** @description Map of other identifiers for the entity. */
4122
- identifiers: {
4123
- bibbiAuthorityId?: string;
4124
- /** @description Identifier from Norske emneord (NEO). */
4125
- neoUri?: string;
4126
- norafId?: string;
4127
- /** @description Unique ID assigned to an agent in Bokbasen. */
4128
- bokbasenId?: string;
4129
- /** @description International Standard Name Identifier. */
4130
- isni?: string;
4131
- };
4132
- };
4133
- SearchSuggestions200Response: {
4134
- results: {
4135
- suggestion: components["schemas"]["Suggestion"];
4136
- }[];
4137
- warnings?: {
4138
- /** @enum {string} */
4139
- code: "query_too_short" | "advanced_search_detected";
4140
- message: string;
4141
- }[];
4142
- };
4143
3726
  LibrarySystem: {
4144
3727
  /** @constant */
4145
3728
  librarySystemType: "bibliofil";
@@ -4577,86 +4160,6 @@ interface operations {
4577
4160
  };
4578
4161
  };
4579
4162
  };
4580
- searchSubjects: {
4581
- parameters: {
4582
- query?: {
4583
- /** @description The search query. */
4584
- query?: components["parameters"]["QueryParameter"];
4585
- /** @description Page size (default 10).
4586
- * It's important to be aware that, the page size here is only a preferred page size, the result set can be both small and greater, depending on the implementation from the LMS provider.
4587
- * This is important to consider in any product design.
4588
- * */
4589
- size?: components["parameters"]["SizeParameter"];
4590
- /** @description Page number (default 1). */
4591
- page?: components["parameters"]["PageParameter"];
4592
- /** @description The filters are AND'ed together.
4593
- * All filters support multiple comma-separated values that are OR'ed together except `catalogue`.
4594
- * */
4595
- filter?: components["schemas"]["SubjectSearchFilterType"];
4596
- /** @description Sorting */
4597
- sort?: components["schemas"]["SubjectSearchSortType"];
4598
- facet?: components["schemas"]["SubjectSearchFacetType"][];
4599
- /** @description Return this number of facet terms for each requested facet (default 10). */
4600
- facet_terms_size?: components["parameters"]["FacetTermsSizeParameter"];
4601
- /** @description The UI language determines the language of human-readable labels and descriptions in the API responses.
4602
- * */
4603
- ui_language?: components["parameters"]["UiLanguageParameter"];
4604
- /** @description Feature flags for enabling or disabling experimental features in the API. These flags are intended for testing and may be removed without notice.
4605
- * */
4606
- ft?: components["parameters"]["FeatureFlagParameter"];
4607
- };
4608
- header?: never;
4609
- path: {
4610
- /** @description The search profile defines the scope of the search. Each library has their own search profile. A special search profile called "global" is available for searching across all libraries.
4611
- * */
4612
- searchProfile: components["parameters"]["SearchProfileParameter"];
4613
- };
4614
- cookie?: never;
4615
- };
4616
- requestBody?: never;
4617
- responses: {
4618
- /** @description List of subjects */
4619
- 200: {
4620
- headers: {
4621
- [name: string]: unknown;
4622
- };
4623
- content: {
4624
- "application/json": components["schemas"]["SearchSubjects200Response"];
4625
- };
4626
- };
4627
- };
4628
- };
4629
- getSubjects: {
4630
- parameters: {
4631
- query: {
4632
- /** @description Comma-separated IDs. Accepts different formats where appropriate.
4633
- * */
4634
- ids: components["parameters"]["IdsParameter"];
4635
- /** @description The UI language determines the language of human-readable labels and descriptions in the API responses.
4636
- * */
4637
- ui_language?: components["parameters"]["UiLanguageParameter"];
4638
- };
4639
- header?: never;
4640
- path: {
4641
- /** @description The search profile defines the scope of the search. Each library has their own search profile. A special search profile called "global" is available for searching across all libraries.
4642
- * */
4643
- searchProfile: components["parameters"]["SearchProfileParameter"];
4644
- };
4645
- cookie?: never;
4646
- };
4647
- requestBody?: never;
4648
- responses: {
4649
- /** @description List of subjects */
4650
- 200: {
4651
- headers: {
4652
- [name: string]: unknown;
4653
- };
4654
- content: {
4655
- "application/json": components["schemas"]["GetSubjects200Response"];
4656
- };
4657
- };
4658
- };
4659
- };
4660
4163
  getCatalogueRecords: {
4661
4164
  parameters: {
4662
4165
  query: {
@@ -4709,67 +4212,6 @@ interface operations {
4709
4212
  };
4710
4213
  };
4711
4214
  };
4712
- searchSuggestions: {
4713
- parameters: {
4714
- query?: {
4715
- /** @description The search query. */
4716
- query?: components["parameters"]["QueryParameter"];
4717
- /** @description Page size (default 10).
4718
- * It's important to be aware that, the page size here is only a preferred page size, the result set can be both small and greater, depending on the implementation from the LMS provider.
4719
- * This is important to consider in any product design.
4720
- * */
4721
- size?: components["parameters"]["SizeParameter"];
4722
- /** @description The filters are AND'ed together.
4723
- * These filters support multiple comma-separated values that are OR'ed together:
4724
- * `type`
4725
- * */
4726
- filter?: components["schemas"]["SuggestionSearchFilterType"];
4727
- /** @description The UI language determines the language of human-readable labels and descriptions in the API responses.
4728
- * */
4729
- ui_language?: components["parameters"]["UiLanguageParameter"];
4730
- /** @description Feature flags for enabling or disabling experimental features in the API. These flags are intended for testing and may be removed without notice.
4731
- * */
4732
- ft?: components["parameters"]["FeatureFlagParameter"];
4733
- };
4734
- header?: never;
4735
- path: {
4736
- /** @description The search profile defines the scope of the search. Each library has their own search profile. A special search profile called "global" is available for searching across all libraries.
4737
- * */
4738
- searchProfile: components["parameters"]["SearchProfileParameter"];
4739
- };
4740
- cookie?: never;
4741
- };
4742
- requestBody?: never;
4743
- responses: {
4744
- /** @description List of suggestions */
4745
- 200: {
4746
- headers: {
4747
- [name: string]: unknown;
4748
- };
4749
- content: {
4750
- "application/json": components["schemas"]["SearchSuggestions200Response"];
4751
- };
4752
- };
4753
- /** @description Search profile not found */
4754
- 404: {
4755
- headers: {
4756
- [name: string]: unknown;
4757
- };
4758
- content: {
4759
- "application/problem+json": components["schemas"]["SearchProfileNotFoundError"];
4760
- };
4761
- };
4762
- /** @description Request validation error */
4763
- 422: {
4764
- headers: {
4765
- [name: string]: unknown;
4766
- };
4767
- content: {
4768
- "application/problem+json": components["schemas"]["RequestValidationError"];
4769
- };
4770
- };
4771
- };
4772
- };
4773
4215
  getSearchProfiles: {
4774
4216
  parameters: {
4775
4217
  query?: {
@@ -10019,4 +9461,4 @@ type BmdbSearchClient = Client<BmdbCordataApiV1Paths>;
10019
9461
  declare const createBmdbFetchClient: (options: BmdbSearchClientOptions) => BmdbSearchClient;
10020
9462
  //#endregion
10021
9463
  export { serializeCatalogueRecordId as C, serializeCatalogueId as E, parseCatalogueRecordId as S, parseCatalogueId as T, ParsedDigitalServiceRecordId as _, BmdbApiSchemas as a, CatalogueRecordId as b, isCordataEnumAgeGroupCode as c, isCordataEnumExpressionTypeCode as d, isCordataEnumLanguageCode as f, DigitalServiceRecordId as g, formatIsbdTitle as h, BmdbApiPaths as i, isCordataEnumAgeLimitCode as l, isCordataEnumWorkTypeCode as m, BmdbSearchClientOptions as n, BmdbCordataApiV1Paths as o, isCordataEnumManifestationMediumCode as p, createBmdbFetchClient as r, BmdbCordataApiV1Schemas as s, BmdbSearchClient as t, isCordataEnumContributorRoleCode as u, parseDigitalServiceRecordId as v, ParsedCatalogueId as w, ParsedCatalogueRecordId as x, serializeDigitalServiceRecordId as y };
10022
- //# sourceMappingURL=index-h3JijBsk.d.cts.map
9464
+ //# sourceMappingURL=index-CXCoxDL3.d.cts.map