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

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;
@@ -2959,12 +2963,15 @@ interface components {
2959
2963
  /** @description Internal note on the entity. Used for identifying and differentiating entities with similar names. */
2960
2964
  scopeNote?: string;
2961
2965
  };
2966
+ /** @enum {string} */
2967
+ CordataEnumEventTypeCode: "fire" | "genocide" | "famine" | "war" | "criminal_case" | "crisis" | "military_operation" | "natural_disaster" | "uprising" | "pandemic" | "revolution" | "battle" | "strike" | "era" | "time_span" | "concert" | "accident";
2962
2968
  /** @description Conference, music festival or other type of event. */
2963
2969
  SubjectTypeEvent: components["schemas"]["SubjectBase"] & {
2964
2970
  /** @constant */
2965
2971
  type: "SubjectTypeEvent";
2966
2972
  /** @constant */
2967
2973
  entityType: "event";
2974
+ eventType?: components["schemas"]["CordataEnumEventTypeCode"];
2968
2975
  /** @description Map of identifiers for matching records in external systems. */
2969
2976
  identifiers: {
2970
2977
  /** @description Identifier assigned by Biblioteksentralen for authority records. Unique for all authorities independent of type. */
@@ -2981,6 +2988,7 @@ interface components {
2981
2988
  type: "SubjectTypeWork";
2982
2989
  /** @constant */
2983
2990
  entityType: "work";
2991
+ workType: components["schemas"]["CordataEnumWorkTypeCode"];
2984
2992
  /** @description Map of identifiers for matching records in external systems. */
2985
2993
  identifiers: {
2986
2994
  bibbiAuthorityId?: string;
@@ -3888,12 +3896,14 @@ interface components {
3888
3896
  code: components["schemas"]["CordataEnumConceptTypeCode"];
3889
3897
  label: string;
3890
3898
  };
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
3899
  CordataEnumEventTypeTranslated: {
3894
3900
  code: components["schemas"]["CordataEnumEventTypeCode"];
3895
3901
  label: string;
3896
3902
  };
3903
+ CordataEnumPlaceTypeTranslated: {
3904
+ code: components["schemas"]["CordataEnumPlaceTypeCode"];
3905
+ label: string;
3906
+ };
3897
3907
  SubjectSummary: {
3898
3908
  id: components["schemas"]["Id"];
3899
3909
  name: string;
@@ -3918,7 +3928,18 @@ interface components {
3918
3928
  type: "SubjectSummaryEvent";
3919
3929
  /** @constant */
3920
3930
  entityType: "event";
3921
- eventType: components["schemas"]["CordataEnumEventTypeTranslated"];
3931
+ eventType?: components["schemas"]["CordataEnumEventTypeTranslated"];
3932
+ identifiers: {
3933
+ /** @description Identifier assigned by Biblioteksentralen for authority records. Unique for all authorities independent of type. */
3934
+ bibbiAuthorityId?: string;
3935
+ neoUri?: string;
3936
+ };
3937
+ } | {
3938
+ /** @constant */
3939
+ type: "SubjectSummaryPlace";
3940
+ /** @constant */
3941
+ entityType: "place";
3942
+ placeType?: components["schemas"]["CordataEnumPlaceTypeTranslated"];
3922
3943
  identifiers: {
3923
3944
  /** @description Identifier assigned by Biblioteksentralen for authority records. Unique for all authorities independent of type. */
3924
3945
  bibbiAuthorityId?: string;
@@ -4063,7 +4084,7 @@ interface components {
4063
4084
  * @description Suggestion type
4064
4085
  * @enum {string}
4065
4086
  */
4066
- type?: "work" | "agent" | "collection";
4087
+ type?: "work" | "agent" | "collection" | "subject";
4067
4088
  };
4068
4089
  SuggestionAgentBase: {
4069
4090
  id: components["schemas"]["Id"];
@@ -4116,6 +4137,11 @@ interface components {
4116
4137
  type: "SubjectSuggestion";
4117
4138
  /** @constant */
4118
4139
  entityType: "subject";
4140
+ subjectType: {
4141
+ /** @enum {string} */
4142
+ code: "concept" | "event" | "place" | "person" | "collective_agent" | "artificial_agent" | "work" | "collection";
4143
+ label: string;
4144
+ };
4119
4145
  id: components["schemas"]["Id"];
4120
4146
  label: string;
4121
4147
  /** @description Map of other identifiers for the entity. */
@@ -10019,4 +10045,4 @@ type BmdbSearchClient = Client<BmdbCordataApiV1Paths>;
10019
10045
  declare const createBmdbFetchClient: (options: BmdbSearchClientOptions) => BmdbSearchClient;
10020
10046
  //#endregion
10021
10047
  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
10048
+ //# sourceMappingURL=index-CUQjKe2y.d.cts.map
@@ -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;
@@ -2959,12 +2963,15 @@ interface components {
2959
2963
  /** @description Internal note on the entity. Used for identifying and differentiating entities with similar names. */
2960
2964
  scopeNote?: string;
2961
2965
  };
2966
+ /** @enum {string} */
2967
+ CordataEnumEventTypeCode: "fire" | "genocide" | "famine" | "war" | "criminal_case" | "crisis" | "military_operation" | "natural_disaster" | "uprising" | "pandemic" | "revolution" | "battle" | "strike" | "era" | "time_span" | "concert" | "accident";
2962
2968
  /** @description Conference, music festival or other type of event. */
2963
2969
  SubjectTypeEvent: components["schemas"]["SubjectBase"] & {
2964
2970
  /** @constant */
2965
2971
  type: "SubjectTypeEvent";
2966
2972
  /** @constant */
2967
2973
  entityType: "event";
2974
+ eventType?: components["schemas"]["CordataEnumEventTypeCode"];
2968
2975
  /** @description Map of identifiers for matching records in external systems. */
2969
2976
  identifiers: {
2970
2977
  /** @description Identifier assigned by Biblioteksentralen for authority records. Unique for all authorities independent of type. */
@@ -2981,6 +2988,7 @@ interface components {
2981
2988
  type: "SubjectTypeWork";
2982
2989
  /** @constant */
2983
2990
  entityType: "work";
2991
+ workType: components["schemas"]["CordataEnumWorkTypeCode"];
2984
2992
  /** @description Map of identifiers for matching records in external systems. */
2985
2993
  identifiers: {
2986
2994
  bibbiAuthorityId?: string;
@@ -3888,12 +3896,14 @@ interface components {
3888
3896
  code: components["schemas"]["CordataEnumConceptTypeCode"];
3889
3897
  label: string;
3890
3898
  };
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
3899
  CordataEnumEventTypeTranslated: {
3894
3900
  code: components["schemas"]["CordataEnumEventTypeCode"];
3895
3901
  label: string;
3896
3902
  };
3903
+ CordataEnumPlaceTypeTranslated: {
3904
+ code: components["schemas"]["CordataEnumPlaceTypeCode"];
3905
+ label: string;
3906
+ };
3897
3907
  SubjectSummary: {
3898
3908
  id: components["schemas"]["Id"];
3899
3909
  name: string;
@@ -3918,7 +3928,18 @@ interface components {
3918
3928
  type: "SubjectSummaryEvent";
3919
3929
  /** @constant */
3920
3930
  entityType: "event";
3921
- eventType: components["schemas"]["CordataEnumEventTypeTranslated"];
3931
+ eventType?: components["schemas"]["CordataEnumEventTypeTranslated"];
3932
+ identifiers: {
3933
+ /** @description Identifier assigned by Biblioteksentralen for authority records. Unique for all authorities independent of type. */
3934
+ bibbiAuthorityId?: string;
3935
+ neoUri?: string;
3936
+ };
3937
+ } | {
3938
+ /** @constant */
3939
+ type: "SubjectSummaryPlace";
3940
+ /** @constant */
3941
+ entityType: "place";
3942
+ placeType?: components["schemas"]["CordataEnumPlaceTypeTranslated"];
3922
3943
  identifiers: {
3923
3944
  /** @description Identifier assigned by Biblioteksentralen for authority records. Unique for all authorities independent of type. */
3924
3945
  bibbiAuthorityId?: string;
@@ -4063,7 +4084,7 @@ interface components {
4063
4084
  * @description Suggestion type
4064
4085
  * @enum {string}
4065
4086
  */
4066
- type?: "work" | "agent" | "collection";
4087
+ type?: "work" | "agent" | "collection" | "subject";
4067
4088
  };
4068
4089
  SuggestionAgentBase: {
4069
4090
  id: components["schemas"]["Id"];
@@ -4116,6 +4137,11 @@ interface components {
4116
4137
  type: "SubjectSuggestion";
4117
4138
  /** @constant */
4118
4139
  entityType: "subject";
4140
+ subjectType: {
4141
+ /** @enum {string} */
4142
+ code: "concept" | "event" | "place" | "person" | "collective_agent" | "artificial_agent" | "work" | "collection";
4143
+ label: string;
4144
+ };
4119
4145
  id: components["schemas"]["Id"];
4120
4146
  label: string;
4121
4147
  /** @description Map of other identifiers for the entity. */
@@ -10019,4 +10045,4 @@ type BmdbSearchClient = Client<BmdbCordataApiV1Paths>;
10019
10045
  declare const createBmdbFetchClient: (options: BmdbSearchClientOptions) => BmdbSearchClient;
10020
10046
  //#endregion
10021
10047
  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.ts.map
10048
+ //# sourceMappingURL=index-CUQjKe2y.d.ts.map
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as serializeCatalogueRecordId, E as serializeCatalogueId, S as parseCatalogueRecordId, T as parseCatalogueId, _ as ParsedDigitalServiceRecordId, a as BmdbApiSchemas, b as CatalogueRecordId, c as isCordataEnumAgeGroupCode, d as isCordataEnumExpressionTypeCode, f as isCordataEnumLanguageCode, g as DigitalServiceRecordId, h as formatIsbdTitle, i as BmdbApiPaths, l as isCordataEnumAgeLimitCode, m as isCordataEnumWorkTypeCode, n as BmdbSearchClientOptions, o as BmdbCordataApiV1Paths, p as isCordataEnumManifestationMediumCode, r as createBmdbFetchClient, s as BmdbCordataApiV1Schemas, t as BmdbSearchClient, u as isCordataEnumContributorRoleCode, v as parseDigitalServiceRecordId, w as ParsedCatalogueId, x as ParsedCatalogueRecordId, y as serializeDigitalServiceRecordId } from "./index-h3JijBsk.cjs";
1
+ import { C as serializeCatalogueRecordId, E as serializeCatalogueId, S as parseCatalogueRecordId, T as parseCatalogueId, _ as ParsedDigitalServiceRecordId, a as BmdbApiSchemas, b as CatalogueRecordId, c as isCordataEnumAgeGroupCode, d as isCordataEnumExpressionTypeCode, f as isCordataEnumLanguageCode, g as DigitalServiceRecordId, h as formatIsbdTitle, i as BmdbApiPaths, l as isCordataEnumAgeLimitCode, m as isCordataEnumWorkTypeCode, n as BmdbSearchClientOptions, o as BmdbCordataApiV1Paths, p as isCordataEnumManifestationMediumCode, r as createBmdbFetchClient, s as BmdbCordataApiV1Schemas, t as BmdbSearchClient, u as isCordataEnumContributorRoleCode, v as parseDigitalServiceRecordId, w as ParsedCatalogueId, x as ParsedCatalogueRecordId, y as serializeDigitalServiceRecordId } from "./index-CUQjKe2y.cjs";
2
2
  import { Client, ClientOptions } from "openapi-fetch";
3
3
  //#region ../api-specifications/dist/bmdb-cordata-api/utils/substituteBibbiIdentifiersForIds.d.ts
4
4
  type BibbiIdentifierContext = {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as serializeCatalogueRecordId, E as serializeCatalogueId, S as parseCatalogueRecordId, T as parseCatalogueId, _ as ParsedDigitalServiceRecordId, a as BmdbApiSchemas, b as CatalogueRecordId, c as isCordataEnumAgeGroupCode, d as isCordataEnumExpressionTypeCode, f as isCordataEnumLanguageCode, g as DigitalServiceRecordId, h as formatIsbdTitle, i as BmdbApiPaths, l as isCordataEnumAgeLimitCode, m as isCordataEnumWorkTypeCode, n as BmdbSearchClientOptions, o as BmdbCordataApiV1Paths, p as isCordataEnumManifestationMediumCode, r as createBmdbFetchClient, s as BmdbCordataApiV1Schemas, t as BmdbSearchClient, u as isCordataEnumContributorRoleCode, v as parseDigitalServiceRecordId, w as ParsedCatalogueId, x as ParsedCatalogueRecordId, y as serializeDigitalServiceRecordId } from "./index-h3JijBsk.js";
1
+ import { C as serializeCatalogueRecordId, E as serializeCatalogueId, S as parseCatalogueRecordId, T as parseCatalogueId, _ as ParsedDigitalServiceRecordId, a as BmdbApiSchemas, b as CatalogueRecordId, c as isCordataEnumAgeGroupCode, d as isCordataEnumExpressionTypeCode, f as isCordataEnumLanguageCode, g as DigitalServiceRecordId, h as formatIsbdTitle, i as BmdbApiPaths, l as isCordataEnumAgeLimitCode, m as isCordataEnumWorkTypeCode, n as BmdbSearchClientOptions, o as BmdbCordataApiV1Paths, p as isCordataEnumManifestationMediumCode, r as createBmdbFetchClient, s as BmdbCordataApiV1Schemas, t as BmdbSearchClient, u as isCordataEnumContributorRoleCode, v as parseDigitalServiceRecordId, w as ParsedCatalogueId, x as ParsedCatalogueRecordId, y as serializeDigitalServiceRecordId } from "./index-CUQjKe2y.js";
2
2
  import { Client, ClientOptions } from "openapi-fetch";
3
3
  //#region ../api-specifications/dist/bmdb-cordata-api/utils/substituteBibbiIdentifiersForIds.d.ts
4
4
  type BibbiIdentifierContext = {
@@ -1,2 +1,2 @@
1
- import { c as isCordataEnumAgeGroupCode, d as isCordataEnumExpressionTypeCode, f as isCordataEnumLanguageCode, h as formatIsbdTitle, l as isCordataEnumAgeLimitCode, m as isCordataEnumWorkTypeCode, n as BmdbSearchClientOptions, o as BmdbCordataApiV1Paths, p as isCordataEnumManifestationMediumCode, r as createBmdbFetchClient, s as BmdbCordataApiV1Schemas, t as BmdbSearchClient, u as isCordataEnumContributorRoleCode } from "../index-h3JijBsk.cjs";
1
+ import { c as isCordataEnumAgeGroupCode, d as isCordataEnumExpressionTypeCode, f as isCordataEnumLanguageCode, h as formatIsbdTitle, l as isCordataEnumAgeLimitCode, m as isCordataEnumWorkTypeCode, n as BmdbSearchClientOptions, o as BmdbCordataApiV1Paths, p as isCordataEnumManifestationMediumCode, r as createBmdbFetchClient, s as BmdbCordataApiV1Schemas, t as BmdbSearchClient, u as isCordataEnumContributorRoleCode } from "../index-CUQjKe2y.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 { c as isCordataEnumAgeGroupCode, d as isCordataEnumExpressionTypeCode, f as isCordataEnumLanguageCode, h as formatIsbdTitle, l as isCordataEnumAgeLimitCode, m as isCordataEnumWorkTypeCode, n as BmdbSearchClientOptions, o as BmdbCordataApiV1Paths, p as isCordataEnumManifestationMediumCode, r as createBmdbFetchClient, s as BmdbCordataApiV1Schemas, t as BmdbSearchClient, u as isCordataEnumContributorRoleCode } from "../index-h3JijBsk.js";
1
+ import { c as isCordataEnumAgeGroupCode, d as isCordataEnumExpressionTypeCode, f as isCordataEnumLanguageCode, h as formatIsbdTitle, l as isCordataEnumAgeLimitCode, m as isCordataEnumWorkTypeCode, n as BmdbSearchClientOptions, o as BmdbCordataApiV1Paths, p as isCordataEnumManifestationMediumCode, r as createBmdbFetchClient, s as BmdbCordataApiV1Schemas, t as BmdbSearchClient, u as isCordataEnumContributorRoleCode } from "../index-CUQjKe2y.js";
2
2
  export { type BmdbCordataApiV1Paths, type BmdbCordataApiV1Schemas, BmdbSearchClient, BmdbSearchClientOptions, createBmdbFetchClient, formatIsbdTitle, isCordataEnumAgeGroupCode, isCordataEnumAgeLimitCode, isCordataEnumContributorRoleCode, isCordataEnumExpressionTypeCode, isCordataEnumLanguageCode, isCordataEnumManifestationMediumCode, isCordataEnumWorkTypeCode };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biblioteksentralen/bmdb-search",
3
- "version": "0.0.0-beta.65",
3
+ "version": "0.0.0-beta.66",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Client for searching Bibliotekenes metadatabrønn (BMDB)",