basyx-typescript-sdk 2.3.1 → 2.4.0

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.
Files changed (61) hide show
  1. package/README.md +68 -1
  2. package/bundle/index.cjs +1412 -89
  3. package/bundle/index.cjs.map +1 -1
  4. package/bundle/index.mjs +1344 -90
  5. package/bundle/index.mjs.map +1 -1
  6. package/dist/clients/AasRegistryClient.d.ts +20 -0
  7. package/dist/clients/AasRegistryClient.js +40 -0
  8. package/dist/clients/AasRepositoryClient.d.ts +20 -0
  9. package/dist/clients/AasRepositoryClient.js +40 -0
  10. package/dist/clients/ConceptDescriptionRepositoryClient.d.ts +20 -0
  11. package/dist/clients/ConceptDescriptionRepositoryClient.js +40 -0
  12. package/dist/clients/SubmodelRegistryClient.d.ts +20 -0
  13. package/dist/clients/SubmodelRegistryClient.js +40 -0
  14. package/dist/clients/SubmodelRepositoryClient.d.ts +20 -0
  15. package/dist/clients/SubmodelRepositoryClient.js +40 -0
  16. package/dist/generated/AasRegistryService/apis/AssetAdministrationShellRegistryAPIApi.d.ts +14 -1
  17. package/dist/generated/AasRegistryService/apis/AssetAdministrationShellRegistryAPIApi.js +29 -0
  18. package/dist/generated/AasRegistryService/models/index.d.ts +374 -0
  19. package/dist/generated/AasRegistryService/models/index.js +6 -0
  20. package/dist/generated/AasRepositoryService/apis/AssetAdministrationShellRepositoryAPIApi.d.ts +14 -1
  21. package/dist/generated/AasRepositoryService/apis/AssetAdministrationShellRepositoryAPIApi.js +29 -0
  22. package/dist/generated/AasRepositoryService/models/index.d.ts +381 -0
  23. package/dist/generated/AasRepositoryService/models/index.js +7 -0
  24. package/dist/generated/ConceptDescriptionRepositoryService/apis/ConceptDescriptionRepositoryAPIApi.d.ts +14 -1
  25. package/dist/generated/ConceptDescriptionRepositoryService/apis/ConceptDescriptionRepositoryAPIApi.js +29 -0
  26. package/dist/generated/ConceptDescriptionRepositoryService/models/index.d.ts +381 -0
  27. package/dist/generated/ConceptDescriptionRepositoryService/models/index.js +7 -0
  28. package/dist/generated/SubmodelRegistryService/apis/SubmodelRegistryAPIApi.d.ts +14 -1
  29. package/dist/generated/SubmodelRegistryService/apis/SubmodelRegistryAPIApi.js +29 -0
  30. package/dist/generated/SubmodelRegistryService/models/index.d.ts +381 -0
  31. package/dist/generated/SubmodelRegistryService/models/index.js +7 -0
  32. package/dist/generated/SubmodelRepositoryService/apis/SubmodelRepositoryAPIApi.d.ts +14 -1
  33. package/dist/generated/SubmodelRepositoryService/apis/SubmodelRepositoryAPIApi.js +29 -0
  34. package/dist/generated/SubmodelRepositoryService/models/index.d.ts +381 -0
  35. package/dist/generated/SubmodelRepositoryService/models/index.js +7 -0
  36. package/dist/lib/endpointConfiguration.d.ts +71 -0
  37. package/dist/lib/endpointConfiguration.js +101 -0
  38. package/dist/lib/index.d.ts +1 -0
  39. package/dist/lib/index.js +2 -0
  40. package/dist/lib/queryJsonization.d.ts +17 -0
  41. package/dist/lib/queryJsonization.js +309 -0
  42. package/dist/lib/queryRequests.d.ts +24 -0
  43. package/dist/lib/queryRequests.js +44 -0
  44. package/dist/models/Query.d.ts +378 -0
  45. package/dist/models/Query.js +430 -0
  46. package/dist/models/QueryResult.d.ts +22 -0
  47. package/dist/models/QueryResult.js +1 -0
  48. package/dist/models/index.d.ts +2 -0
  49. package/dist/models/index.js +2 -0
  50. package/dist/services/AasService.d.ts +15 -4
  51. package/dist/services/AasService.js +38 -40
  52. package/dist/services/SubmodelService.d.ts +9 -8
  53. package/dist/services/SubmodelService.js +17 -34
  54. package/dist/services/index.d.ts +1 -0
  55. package/dist/utils/DescriptorUtils.d.ts +27 -1
  56. package/dist/utils/DescriptorUtils.js +65 -27
  57. package/dist/utils/ServiceDescriptionUtils.d.ts +30 -0
  58. package/dist/utils/ServiceDescriptionUtils.js +43 -0
  59. package/dist/utils/index.d.ts +2 -0
  60. package/dist/utils/index.js +2 -0
  61. package/package.json +1 -1
package/bundle/index.mjs CHANGED
@@ -1470,6 +1470,29 @@ var AssetAdministrationShellRepositoryAPIApi = class extends BaseAPI {
1470
1470
  async putThumbnailAasRepository(requestParameters, initOverrides) {
1471
1471
  await this.putThumbnailAasRepositoryRaw(requestParameters, initOverrides);
1472
1472
  }
1473
+ /**
1474
+ * Returns all Asset Administration Shells that conform to the input query
1475
+ */
1476
+ async queryAssetAdministrationShellsRaw(requestParameters, initOverrides) {
1477
+ const queryParameters = {};
1478
+ if (requestParameters["limit"] != null) queryParameters["limit"] = requestParameters["limit"];
1479
+ if (requestParameters["cursor"] != null) queryParameters["cursor"] = requestParameters["cursor"];
1480
+ const headerParameters = {};
1481
+ headerParameters["Content-Type"] = "application/json";
1482
+ return new JSONApiResponse(await this.request({
1483
+ path: `/query/shells`,
1484
+ method: "POST",
1485
+ headers: headerParameters,
1486
+ query: queryParameters,
1487
+ body: requestParameters["query"]
1488
+ }, initOverrides));
1489
+ }
1490
+ /**
1491
+ * Returns all Asset Administration Shells that conform to the input query
1492
+ */
1493
+ async queryAssetAdministrationShells(requestParameters = {}, initOverrides) {
1494
+ return await (await this.queryAssetAdministrationShellsRaw(requestParameters, initOverrides)).value();
1495
+ }
1473
1496
  };
1474
1497
  /**
1475
1498
  * @export
@@ -1886,6 +1909,13 @@ const QualifierKind$3 = {
1886
1909
  ValueQualifier: "ValueQualifier"
1887
1910
  };
1888
1911
  /**
1912
+ * @export
1913
+ */
1914
+ const QueryResultAssetAdministrationShellPagingMetadataResultTypeEnum = {
1915
+ AssetAdministrationShell: "AssetAdministrationShell",
1916
+ Identifier: "Identifier"
1917
+ };
1918
+ /**
1889
1919
  *
1890
1920
  * @export
1891
1921
  */
@@ -1947,6 +1977,7 @@ var AasRepositoryService_exports = /* @__PURE__ */ __exportAll({
1947
1977
  PatchSubmodelElementValueByPathAasRepositoryLevelEnum: () => PatchSubmodelElementValueByPathAasRepositoryLevelEnum,
1948
1978
  PatchSubmodelElementValueByPathValueOnlyLevelEnum: () => PatchSubmodelElementValueByPathValueOnlyLevelEnum,
1949
1979
  QualifierKind: () => QualifierKind$3,
1980
+ QueryResultAssetAdministrationShellPagingMetadataResultTypeEnum: () => QueryResultAssetAdministrationShellPagingMetadataResultTypeEnum,
1950
1981
  ReferenceTypes: () => ReferenceTypes$6,
1951
1982
  RequiredError: () => RequiredError,
1952
1983
  ResponseError: () => ResponseError,
@@ -3013,6 +3044,29 @@ var SubmodelRepositoryAPIApi = class extends BaseAPI {
3013
3044
  default: return await response.value();
3014
3045
  }
3015
3046
  }
3047
+ /**
3048
+ * Returns all Submodels that confirm to the input query
3049
+ */
3050
+ async querySubmodelsRaw(requestParameters, initOverrides) {
3051
+ const queryParameters = {};
3052
+ if (requestParameters["limit"] != null) queryParameters["limit"] = requestParameters["limit"];
3053
+ if (requestParameters["cursor"] != null) queryParameters["cursor"] = requestParameters["cursor"];
3054
+ const headerParameters = {};
3055
+ headerParameters["Content-Type"] = "application/json";
3056
+ return new JSONApiResponse(await this.request({
3057
+ path: `/query/submodels`,
3058
+ method: "POST",
3059
+ headers: headerParameters,
3060
+ query: queryParameters,
3061
+ body: requestParameters["query"]
3062
+ }, initOverrides));
3063
+ }
3064
+ /**
3065
+ * Returns all Submodels that confirm to the input query
3066
+ */
3067
+ async querySubmodels(requestParameters = {}, initOverrides) {
3068
+ return await (await this.querySubmodelsRaw(requestParameters, initOverrides)).value();
3069
+ }
3016
3070
  };
3017
3071
  /**
3018
3072
  * @export
@@ -3392,6 +3446,13 @@ const QualifierKind$2 = {
3392
3446
  ValueQualifier: "ValueQualifier"
3393
3447
  };
3394
3448
  /**
3449
+ * @export
3450
+ */
3451
+ const QueryResultSubmodelPagingMetadataResultTypeEnum = {
3452
+ Submodel: "Submodel",
3453
+ Identifier: "Identifier"
3454
+ };
3455
+ /**
3395
3456
  *
3396
3457
  * @export
3397
3458
  */
@@ -3451,6 +3512,7 @@ var SubmodelRepositoryService_exports = /* @__PURE__ */ __exportAll({
3451
3512
  PatchSubmodelElementByPathValueOnlySubmodelRepoLevelEnum: () => PatchSubmodelElementByPathValueOnlySubmodelRepoLevelEnum,
3452
3513
  PutSubmodelElementByPathSubmodelRepoLevelEnum: () => PutSubmodelElementByPathSubmodelRepoLevelEnum,
3453
3514
  QualifierKind: () => QualifierKind$2,
3515
+ QueryResultSubmodelPagingMetadataResultTypeEnum: () => QueryResultSubmodelPagingMetadataResultTypeEnum,
3454
3516
  ReferenceTypes: () => ReferenceTypes$5,
3455
3517
  SerializationAPIApi: () => SerializationAPIApi$1,
3456
3518
  StateOfEvent: () => StateOfEvent$2,
@@ -3582,6 +3644,29 @@ var ConceptDescriptionRepositoryAPIApi = class extends BaseAPI {
3582
3644
  default: return await response.value();
3583
3645
  }
3584
3646
  }
3647
+ /**
3648
+ * Returns all Concept Descriptions that confirm to the input query
3649
+ */
3650
+ async queryConceptDescriptionsRaw(requestParameters, initOverrides) {
3651
+ const queryParameters = {};
3652
+ if (requestParameters["limit"] != null) queryParameters["limit"] = requestParameters["limit"];
3653
+ if (requestParameters["cursor"] != null) queryParameters["cursor"] = requestParameters["cursor"];
3654
+ const headerParameters = {};
3655
+ headerParameters["Content-Type"] = "application/json";
3656
+ return new JSONApiResponse(await this.request({
3657
+ path: `/query/concept-descriptions`,
3658
+ method: "POST",
3659
+ headers: headerParameters,
3660
+ query: queryParameters,
3661
+ body: requestParameters["query"]
3662
+ }, initOverrides));
3663
+ }
3664
+ /**
3665
+ * Returns all Concept Descriptions that confirm to the input query
3666
+ */
3667
+ async queryConceptDescriptions(requestParameters = {}, initOverrides) {
3668
+ return await (await this.queryConceptDescriptionsRaw(requestParameters, initOverrides)).value();
3669
+ }
3585
3670
  };
3586
3671
  //#endregion
3587
3672
  //#region dist/generated/ConceptDescriptionRepositoryService/apis/DescriptionAPIApi.js
@@ -3851,6 +3936,13 @@ const QualifierKind$1 = {
3851
3936
  ValueQualifier: "ValueQualifier"
3852
3937
  };
3853
3938
  /**
3939
+ * @export
3940
+ */
3941
+ const QueryResultConceptDescriptionPagingMetadataResultTypeEnum = {
3942
+ ConceptDescription: "ConceptDescription",
3943
+ Identifier: "Identifier"
3944
+ };
3945
+ /**
3854
3946
  *
3855
3947
  * @export
3856
3948
  */
@@ -3882,6 +3974,7 @@ var ConceptDescriptionRepositoryService_exports = /* @__PURE__ */ __exportAll({
3882
3974
  ModelType: () => ModelType$3,
3883
3975
  ModellingKind: () => ModellingKind$1,
3884
3976
  QualifierKind: () => QualifierKind$1,
3977
+ QueryResultConceptDescriptionPagingMetadataResultTypeEnum: () => QueryResultConceptDescriptionPagingMetadataResultTypeEnum,
3885
3978
  ReferenceTypes: () => ReferenceTypes$4,
3886
3979
  SerializationAPIApi: () => SerializationAPIApi,
3887
3980
  StateOfEvent: () => StateOfEvent$1
@@ -4122,6 +4215,29 @@ var AssetAdministrationShellRegistryAPIApi = class extends BaseAPI {
4122
4215
  default: return await response.value();
4123
4216
  }
4124
4217
  }
4218
+ /**
4219
+ * Returns all Asset Administration Shell Descriptors that confirm to the input query
4220
+ */
4221
+ async queryAssetAdministrationShellDescriptorsRaw(requestParameters, initOverrides) {
4222
+ const queryParameters = {};
4223
+ if (requestParameters["limit"] != null) queryParameters["limit"] = requestParameters["limit"];
4224
+ if (requestParameters["cursor"] != null) queryParameters["cursor"] = requestParameters["cursor"];
4225
+ const headerParameters = {};
4226
+ headerParameters["Content-Type"] = "application/json";
4227
+ return new JSONApiResponse(await this.request({
4228
+ path: `/query/shell-descriptors`,
4229
+ method: "POST",
4230
+ headers: headerParameters,
4231
+ query: queryParameters,
4232
+ body: requestParameters["query"]
4233
+ }, initOverrides));
4234
+ }
4235
+ /**
4236
+ * Returns all Asset Administration Shell Descriptors that confirm to the input query
4237
+ */
4238
+ async queryAssetAdministrationShellDescriptors(requestParameters = {}, initOverrides) {
4239
+ return await (await this.queryAssetAdministrationShellDescriptorsRaw(requestParameters, initOverrides)).value();
4240
+ }
4125
4241
  };
4126
4242
  //#endregion
4127
4243
  //#region dist/generated/AasRegistryService/apis/DescriptionAPIApi.js
@@ -4304,6 +4420,10 @@ const ProtocolInformationSecurityAttributesInnerTypeEnum = {
4304
4420
  W3CDid: "W3C_DID"
4305
4421
  };
4306
4422
  /**
4423
+ * @export
4424
+ */
4425
+ const QueryResultAssetAdministrationShellDescriptorPagingMetadataResultTypeEnum = { AssetAdministrationShellDescriptor: "AssetAdministrationShellDescriptor" };
4426
+ /**
4307
4427
  *
4308
4428
  * @export
4309
4429
  */
@@ -4331,6 +4451,7 @@ var AasRegistryService_exports = /* @__PURE__ */ __exportAll({
4331
4451
  MessageMessageTypeEnum: () => MessageMessageTypeEnum$3,
4332
4452
  ModelType: () => ModelType$2,
4333
4453
  ProtocolInformationSecurityAttributesInnerTypeEnum: () => ProtocolInformationSecurityAttributesInnerTypeEnum,
4454
+ QueryResultAssetAdministrationShellDescriptorPagingMetadataResultTypeEnum: () => QueryResultAssetAdministrationShellDescriptorPagingMetadataResultTypeEnum,
4334
4455
  ReferenceTypes: () => ReferenceTypes$3,
4335
4456
  RequiredError: () => RequiredError,
4336
4457
  ResponseError: () => ResponseError,
@@ -4498,6 +4619,29 @@ var SubmodelRegistryAPIApi = class extends BaseAPI {
4498
4619
  default: return await response.value();
4499
4620
  }
4500
4621
  }
4622
+ /**
4623
+ * Returns all Submodel Descriptors that confirm to the input query
4624
+ */
4625
+ async querySubmodelDescriptorsRaw(requestParameters, initOverrides) {
4626
+ const queryParameters = {};
4627
+ if (requestParameters["limit"] != null) queryParameters["limit"] = requestParameters["limit"];
4628
+ if (requestParameters["cursor"] != null) queryParameters["cursor"] = requestParameters["cursor"];
4629
+ const headerParameters = {};
4630
+ headerParameters["Content-Type"] = "application/json";
4631
+ return new JSONApiResponse(await this.request({
4632
+ path: `/query/submodel-descriptors`,
4633
+ method: "POST",
4634
+ headers: headerParameters,
4635
+ query: queryParameters,
4636
+ body: requestParameters["query"]
4637
+ }, initOverrides));
4638
+ }
4639
+ /**
4640
+ * Returns all Submodel Descriptors that confirm to the input query
4641
+ */
4642
+ async querySubmodelDescriptors(requestParameters = {}, initOverrides) {
4643
+ return await (await this.querySubmodelDescriptorsRaw(requestParameters, initOverrides)).value();
4644
+ }
4501
4645
  };
4502
4646
  //#endregion
4503
4647
  //#region dist/generated/SubmodelRegistryService/models/index.js
@@ -4635,6 +4779,13 @@ const ProtocolInformationSecurityAttributesTypeEnum$1 = {
4635
4779
  W3CDid: "W3C_DID"
4636
4780
  };
4637
4781
  /**
4782
+ * @export
4783
+ */
4784
+ const QueryResultSubmodelDescriptorPagingMetadataResultTypeEnum = {
4785
+ SubmodelDescriptor: "SubmodelDescriptor",
4786
+ Identifier: "Identifier"
4787
+ };
4788
+ /**
4638
4789
  *
4639
4790
  * @export
4640
4791
  */
@@ -4652,6 +4803,7 @@ var SubmodelRegistryService_exports = /* @__PURE__ */ __exportAll({
4652
4803
  MessageMessageTypeEnum: () => MessageMessageTypeEnum$2,
4653
4804
  ModelType: () => ModelType$1,
4654
4805
  ProtocolInformationSecurityAttributesTypeEnum: () => ProtocolInformationSecurityAttributesTypeEnum$1,
4806
+ QueryResultSubmodelDescriptorPagingMetadataResultTypeEnum: () => QueryResultSubmodelDescriptorPagingMetadataResultTypeEnum,
4655
4807
  ReferenceTypes: () => ReferenceTypes$2,
4656
4808
  SubmodelRegistryAPIApi: () => SubmodelRegistryAPIApi
4657
4809
  });
@@ -26513,6 +26665,723 @@ function convertCoreSubmodelDescriptorToApiSubmodelDescriptor(submodelDescriptor
26513
26665
  return JSON.parse(submodelDescriptorStr);
26514
26666
  }
26515
26667
  //#endregion
26668
+ //#region dist/models/Query.js
26669
+ /**
26670
+ * Model of the AAS Query Language (IDTA-01002-3, `$condition`, `$filters` and `$select`).
26671
+ *
26672
+ * The names, property order and constructor signatures follow the query region of the aas-core-meta V3.2 meta-model,
26673
+ * so that this model can be replaced by the classes aas-core-codegen generates for it. Properties carry the
26674
+ * meta-model names (e.g. `strVal`, `andOperands`); {@link toJsonableQuery} and {@link queryFromJsonable} map them to the
26675
+ * JSON names of the query language (e.g. `$strVal`, `$and`).
26676
+ *
26677
+ * See https://industrialdigitaltwin.io/aas-specifications/IDTA-01002/v3.2/query-language.html
26678
+ */
26679
+ /**
26680
+ * Enumerate the global attributes which can be used in a query.
26681
+ */
26682
+ var GlobalAttributeKind;
26683
+ (function(GlobalAttributeKind) {
26684
+ /** The current date and time in the local time zone of the server (`LOCALNOW`) */
26685
+ GlobalAttributeKind[GlobalAttributeKind["LocalNow"] = 0] = "LocalNow";
26686
+ /** The current date and time in UTC (`UTCNOW`) */
26687
+ GlobalAttributeKind[GlobalAttributeKind["UtcNow"] = 1] = "UtcNow";
26688
+ /** The current date and time of the client (`CLIENTNOW`) */
26689
+ GlobalAttributeKind[GlobalAttributeKind["ClientNow"] = 2] = "ClientNow";
26690
+ /** The anonymous user, i.e. a request without authentication (`ANONYMOUS`) */
26691
+ GlobalAttributeKind[GlobalAttributeKind["Anonymous"] = 3] = "Anonymous";
26692
+ })(GlobalAttributeKind || (GlobalAttributeKind = {}));
26693
+ /**
26694
+ * Enumerate the global attributes which can be used as a date-time operand in a query.
26695
+ *
26696
+ * This is a subset of {@link GlobalAttributeKind}.
26697
+ */
26698
+ var DateTimeGlobalAttributeKind;
26699
+ (function(DateTimeGlobalAttributeKind) {
26700
+ /** The current date and time in the local time zone of the server (`LOCALNOW`) */
26701
+ DateTimeGlobalAttributeKind[DateTimeGlobalAttributeKind["LocalNow"] = 0] = "LocalNow";
26702
+ /** The current date and time in UTC (`UTCNOW`) */
26703
+ DateTimeGlobalAttributeKind[DateTimeGlobalAttributeKind["UtcNow"] = 1] = "UtcNow";
26704
+ /** The current date and time of the client (`CLIENTNOW`) */
26705
+ DateTimeGlobalAttributeKind[DateTimeGlobalAttributeKind["ClientNow"] = 2] = "ClientNow";
26706
+ })(DateTimeGlobalAttributeKind || (DateTimeGlobalAttributeKind = {}));
26707
+ /**
26708
+ * Enumerate what a query returns instead of the full objects.
26709
+ */
26710
+ var QuerySelect;
26711
+ (function(QuerySelect) {
26712
+ /** Return only the identifiers of the matching objects (`id`) */
26713
+ QuerySelect[QuerySelect["Id"] = 0] = "Id";
26714
+ })(QuerySelect || (QuerySelect = {}));
26715
+ /**
26716
+ * Refer to a claim of the requester, e.g. from an access token (`CLAIM`).
26717
+ */
26718
+ var ClaimAttribute = class {
26719
+ claim;
26720
+ constructor(claim) {
26721
+ this.claim = claim;
26722
+ }
26723
+ };
26724
+ /**
26725
+ * Refer to a global attribute (`GLOBAL`).
26726
+ */
26727
+ var GlobalAttribute = class {
26728
+ kind;
26729
+ constructor(kind) {
26730
+ this.kind = kind;
26731
+ }
26732
+ };
26733
+ /**
26734
+ * Refer to an attribute of a referable (`REFERENCE`).
26735
+ */
26736
+ var ReferenceAttribute = class {
26737
+ reference;
26738
+ constructor(reference) {
26739
+ this.reference = reference;
26740
+ }
26741
+ };
26742
+ /**
26743
+ * Refer to a global attribute which gives a date and time (`GLOBAL`).
26744
+ */
26745
+ var DateTimeAttributeItem = class {
26746
+ kind;
26747
+ constructor(kind) {
26748
+ this.kind = kind;
26749
+ }
26750
+ };
26751
+ /**
26752
+ * Refer to a field of the queried data (`$field`), e.g. `$aas#idShort` or `$sme.Temperature#value`.
26753
+ */
26754
+ var FieldOperand = class {
26755
+ field;
26756
+ constructor(field) {
26757
+ this.field = field;
26758
+ }
26759
+ };
26760
+ /**
26761
+ * Represent a string literal (`$strVal`).
26762
+ */
26763
+ var StringLiteral = class {
26764
+ strVal;
26765
+ constructor(strVal) {
26766
+ this.strVal = strVal;
26767
+ }
26768
+ };
26769
+ /**
26770
+ * Use an attribute as an operand (`$attribute`).
26771
+ */
26772
+ var AttributeOperand = class {
26773
+ attribute;
26774
+ constructor(attribute) {
26775
+ this.attribute = attribute;
26776
+ }
26777
+ };
26778
+ /**
26779
+ * Represent a number literal (`$numVal`).
26780
+ */
26781
+ var NumberLiteral = class {
26782
+ numVal;
26783
+ constructor(numVal) {
26784
+ this.numVal = numVal;
26785
+ }
26786
+ };
26787
+ /**
26788
+ * Represent a hexadecimal literal (`$hexVal`), e.g. `16#1F`.
26789
+ */
26790
+ var HexLiteral = class {
26791
+ hexVal;
26792
+ constructor(hexVal) {
26793
+ this.hexVal = hexVal;
26794
+ }
26795
+ };
26796
+ /**
26797
+ * Represent a date-time literal (`$dateTimeVal`), e.g. `2025-01-01T00:00:00Z`.
26798
+ */
26799
+ var DateTimeLiteral = class {
26800
+ dateTimeVal;
26801
+ constructor(dateTimeVal) {
26802
+ this.dateTimeVal = dateTimeVal;
26803
+ }
26804
+ };
26805
+ /**
26806
+ * Represent a time literal (`$timeVal`), e.g. `12:00` or `12:00:00`.
26807
+ */
26808
+ var TimeLiteral = class {
26809
+ timeVal;
26810
+ constructor(timeVal) {
26811
+ this.timeVal = timeVal;
26812
+ }
26813
+ };
26814
+ /**
26815
+ * Represent a boolean literal (`$boolean`). It is both an operand and a logical expression.
26816
+ */
26817
+ var BooleanLiteral = class {
26818
+ boolean;
26819
+ constructor(boolean) {
26820
+ this.boolean = boolean;
26821
+ }
26822
+ };
26823
+ /**
26824
+ * Cast the operand to a string (`$strCast`).
26825
+ */
26826
+ var StringCast = class {
26827
+ strCast;
26828
+ constructor(strCast) {
26829
+ this.strCast = strCast;
26830
+ }
26831
+ };
26832
+ /**
26833
+ * Cast the operand to a number (`$numCast`).
26834
+ */
26835
+ var NumberCast = class {
26836
+ numCast;
26837
+ constructor(numCast) {
26838
+ this.numCast = numCast;
26839
+ }
26840
+ };
26841
+ /**
26842
+ * Cast the operand to a hexadecimal (`$hexCast`).
26843
+ */
26844
+ var HexCast = class {
26845
+ hexCast;
26846
+ constructor(hexCast) {
26847
+ this.hexCast = hexCast;
26848
+ }
26849
+ };
26850
+ /**
26851
+ * Cast the operand to a boolean (`$boolCast`).
26852
+ */
26853
+ var BooleanCast = class {
26854
+ boolCast;
26855
+ constructor(boolCast) {
26856
+ this.boolCast = boolCast;
26857
+ }
26858
+ };
26859
+ /**
26860
+ * Cast the operand to a date-time (`$dateTimeCast`).
26861
+ */
26862
+ var DateTimeCast = class {
26863
+ dateTimeCast;
26864
+ constructor(dateTimeCast) {
26865
+ this.dateTimeCast = dateTimeCast;
26866
+ }
26867
+ };
26868
+ /**
26869
+ * Cast the operand to a time (`$timeCast`).
26870
+ */
26871
+ var TimeCast = class {
26872
+ timeCast;
26873
+ constructor(timeCast) {
26874
+ this.timeCast = timeCast;
26875
+ }
26876
+ };
26877
+ /**
26878
+ * Extract the day of the week from a date-time (`$dayOfWeek`).
26879
+ */
26880
+ var DayOfWeek = class {
26881
+ dayOfWeek;
26882
+ constructor(dayOfWeek) {
26883
+ this.dayOfWeek = dayOfWeek;
26884
+ }
26885
+ };
26886
+ /**
26887
+ * Extract the day of the month from a date-time (`$dayOfMonth`).
26888
+ */
26889
+ var DayOfMonth = class {
26890
+ dayOfMonth;
26891
+ constructor(dayOfMonth) {
26892
+ this.dayOfMonth = dayOfMonth;
26893
+ }
26894
+ };
26895
+ /**
26896
+ * Extract the month from a date-time (`$month`).
26897
+ */
26898
+ var Month = class {
26899
+ month;
26900
+ constructor(month) {
26901
+ this.month = month;
26902
+ }
26903
+ };
26904
+ /**
26905
+ * Extract the year from a date-time (`$year`).
26906
+ */
26907
+ var Year = class {
26908
+ year;
26909
+ constructor(year) {
26910
+ this.year = year;
26911
+ }
26912
+ };
26913
+ /**
26914
+ * Use a date-time global attribute as an operand (`$attribute`).
26915
+ */
26916
+ var DateTimeAttributeOperand = class {
26917
+ attribute;
26918
+ constructor(attribute) {
26919
+ this.attribute = attribute;
26920
+ }
26921
+ };
26922
+ /**
26923
+ * Check whether the two operands are equal (`$eq`).
26924
+ */
26925
+ var EqualComparison = class {
26926
+ eq;
26927
+ constructor(eq) {
26928
+ this.eq = eq;
26929
+ }
26930
+ };
26931
+ /**
26932
+ * Check whether the two operands are not equal (`$ne`).
26933
+ */
26934
+ var NotEqualComparison = class {
26935
+ ne;
26936
+ constructor(ne) {
26937
+ this.ne = ne;
26938
+ }
26939
+ };
26940
+ /**
26941
+ * Check whether the first operand is greater than the second (`$gt`).
26942
+ */
26943
+ var GreaterThanComparison = class {
26944
+ gt;
26945
+ constructor(gt) {
26946
+ this.gt = gt;
26947
+ }
26948
+ };
26949
+ /**
26950
+ * Check whether the first operand is greater than or equal to the second (`$ge`).
26951
+ */
26952
+ var GreaterThanOrEqualComparison = class {
26953
+ ge;
26954
+ constructor(ge) {
26955
+ this.ge = ge;
26956
+ }
26957
+ };
26958
+ /**
26959
+ * Check whether the first operand is less than the second (`$lt`).
26960
+ */
26961
+ var LessThanComparison = class {
26962
+ lt;
26963
+ constructor(lt) {
26964
+ this.lt = lt;
26965
+ }
26966
+ };
26967
+ /**
26968
+ * Check whether the first operand is less than or equal to the second (`$le`).
26969
+ */
26970
+ var LessThanOrEqualComparison = class {
26971
+ le;
26972
+ constructor(le) {
26973
+ this.le = le;
26974
+ }
26975
+ };
26976
+ /**
26977
+ * Check whether the first operand contains the second (`$contains`).
26978
+ */
26979
+ var ContainsComparison = class {
26980
+ contains;
26981
+ constructor(contains) {
26982
+ this.contains = contains;
26983
+ }
26984
+ };
26985
+ /**
26986
+ * Check whether the first operand starts with the second (`$starts-with`).
26987
+ */
26988
+ var StartsWithComparison = class {
26989
+ startsWith;
26990
+ constructor(startsWith) {
26991
+ this.startsWith = startsWith;
26992
+ }
26993
+ };
26994
+ /**
26995
+ * Check whether the first operand ends with the second (`$ends-with`).
26996
+ */
26997
+ var EndsWithComparison = class {
26998
+ endsWith;
26999
+ constructor(endsWith) {
27000
+ this.endsWith = endsWith;
27001
+ }
27002
+ };
27003
+ /**
27004
+ * Check whether the first operand matches the regular expression given by the second (`$regex`).
27005
+ */
27006
+ var RegexComparison = class {
27007
+ regex;
27008
+ constructor(regex) {
27009
+ this.regex = regex;
27010
+ }
27011
+ };
27012
+ /**
27013
+ * Evaluate all the expressions against the same element of a list (`$match`), at least one.
27014
+ */
27015
+ var MatchClause = class {
27016
+ matchOperands;
27017
+ constructor(matchOperands) {
27018
+ this.matchOperands = matchOperands;
27019
+ }
27020
+ };
27021
+ /**
27022
+ * Check whether all the operands hold (`$and`), at least two.
27023
+ */
27024
+ var AndExpression = class {
27025
+ andOperands;
27026
+ constructor(andOperands) {
27027
+ this.andOperands = andOperands;
27028
+ }
27029
+ };
27030
+ /**
27031
+ * Check whether any of the operands holds (`$or`), at least two.
27032
+ */
27033
+ var OrExpression = class {
27034
+ orOperands;
27035
+ constructor(orOperands) {
27036
+ this.orOperands = orOperands;
27037
+ }
27038
+ };
27039
+ /**
27040
+ * Negate the operand (`$not`).
27041
+ */
27042
+ var NotExpression = class {
27043
+ notOperand;
27044
+ constructor(notOperand) {
27045
+ this.notOperand = notOperand;
27046
+ }
27047
+ };
27048
+ /**
27049
+ * Filter a fragment of the returned data by a condition (an entry of `$filters`).
27050
+ */
27051
+ var QueryFilter = class {
27052
+ fragment;
27053
+ condition;
27054
+ constructor(fragment, condition) {
27055
+ this.fragment = fragment;
27056
+ this.condition = condition;
27057
+ }
27058
+ };
27059
+ /**
27060
+ * A query in the AAS Query Language.
27061
+ *
27062
+ * @example
27063
+ * ```typescript
27064
+ * const query = new Query(
27065
+ * new EqualComparison([new FieldOperand('$aas#idShort'), new StringLiteral('Robot')])
27066
+ * );
27067
+ * ```
27068
+ */
27069
+ var Query = class {
27070
+ condition;
27071
+ select;
27072
+ filters;
27073
+ constructor(condition, select = null, filters = null) {
27074
+ this.condition = condition;
27075
+ this.select = select;
27076
+ this.filters = filters;
27077
+ }
27078
+ };
27079
+ //#endregion
27080
+ //#region dist/lib/queryJsonization.js
27081
+ const GLOBAL_ATTRIBUTE_KIND_JSON_NAMES = [
27082
+ "LOCALNOW",
27083
+ "UTCNOW",
27084
+ "CLIENTNOW",
27085
+ "ANONYMOUS"
27086
+ ];
27087
+ const QUERY_SELECT_JSON_NAMES = ["id"];
27088
+ const PROPERTY_JSON_NAMES = [
27089
+ ["claim", "CLAIM"],
27090
+ ["kind", "GLOBAL"],
27091
+ ["reference", "REFERENCE"],
27092
+ ["field", "$field"],
27093
+ ["strVal", "$strVal"],
27094
+ ["attribute", "$attribute"],
27095
+ ["numVal", "$numVal"],
27096
+ ["hexVal", "$hexVal"],
27097
+ ["dateTimeVal", "$dateTimeVal"],
27098
+ ["timeVal", "$timeVal"],
27099
+ ["boolean", "$boolean"],
27100
+ ["strCast", "$strCast"],
27101
+ ["numCast", "$numCast"],
27102
+ ["hexCast", "$hexCast"],
27103
+ ["boolCast", "$boolCast"],
27104
+ ["dateTimeCast", "$dateTimeCast"],
27105
+ ["timeCast", "$timeCast"],
27106
+ ["dayOfWeek", "$dayOfWeek"],
27107
+ ["dayOfMonth", "$dayOfMonth"],
27108
+ ["month", "$month"],
27109
+ ["year", "$year"],
27110
+ ["eq", "$eq"],
27111
+ ["ne", "$ne"],
27112
+ ["gt", "$gt"],
27113
+ ["ge", "$ge"],
27114
+ ["lt", "$lt"],
27115
+ ["le", "$le"],
27116
+ ["contains", "$contains"],
27117
+ ["startsWith", "$starts-with"],
27118
+ ["endsWith", "$ends-with"],
27119
+ ["regex", "$regex"],
27120
+ ["matchOperands", "$match"],
27121
+ ["andOperands", "$and"],
27122
+ ["orOperands", "$or"],
27123
+ ["notOperand", "$not"]
27124
+ ];
27125
+ /**
27126
+ * Serialize a query to the JSON of the AAS Query Language, as sent in the body of the `/query/*` endpoints.
27127
+ *
27128
+ * @param query The query to serialize
27129
+ * @returns The JSON-able object, e.g. `{ "$condition": { "$eq": [{ "$field": "$aas#idShort" }, { "$strVal": "x" }] } }`
27130
+ */
27131
+ function toJsonableQuery(query) {
27132
+ const jsonable = {};
27133
+ if (query.select !== null && query.select !== void 0) jsonable["$select"] = enumToJsonable(QUERY_SELECT_JSON_NAMES, query.select, "QuerySelect");
27134
+ jsonable["$condition"] = expressionToJsonable(query.condition);
27135
+ if (query.filters !== null && query.filters !== void 0) jsonable["$filters"] = query.filters.map((filter) => ({
27136
+ $fragment: filter.fragment,
27137
+ $condition: expressionToJsonable(filter.condition)
27138
+ }));
27139
+ return jsonable;
27140
+ }
27141
+ function expressionToJsonable(expression) {
27142
+ const properties = expression;
27143
+ for (const [property, jsonName] of PROPERTY_JSON_NAMES) {
27144
+ const value = properties?.[property];
27145
+ if (value !== void 0) return { [jsonName]: propertyToJsonable(property, value) };
27146
+ }
27147
+ throw new Error(`Unexpected query expression: ${JSON.stringify(expression)}`);
27148
+ }
27149
+ function propertyToJsonable(property, value) {
27150
+ if (property === "kind") return enumToJsonable(GLOBAL_ATTRIBUTE_KIND_JSON_NAMES, value, "GlobalAttributeKind");
27151
+ if (Array.isArray(value)) return value.map((item) => expressionToJsonable(item));
27152
+ if (typeof value === "object" && value !== null) return expressionToJsonable(value);
27153
+ return value;
27154
+ }
27155
+ function enumToJsonable(jsonNames, value, enumName) {
27156
+ const jsonName = jsonNames[value];
27157
+ if (jsonName === void 0) throw new Error(`Unexpected ${enumName} value: ${value}`);
27158
+ return jsonName;
27159
+ }
27160
+ /**
27161
+ * Parse the JSON of the AAS Query Language as a {@link Query}.
27162
+ *
27163
+ * @param jsonable The JSON-able value to parse, e.g. the result of `JSON.parse`
27164
+ * @returns Either the parsed query, or the error with the path to the invalid value
27165
+ */
27166
+ function queryFromJsonable(jsonable) {
27167
+ try {
27168
+ return new Either(parseQuery(jsonable), null);
27169
+ } catch (err) {
27170
+ if (err instanceof ParseError) return new Either(null, new DeserializationError(err.message, err.path));
27171
+ throw err;
27172
+ }
27173
+ }
27174
+ var ParseError = class {
27175
+ message;
27176
+ path = new Path$1();
27177
+ constructor(message) {
27178
+ this.message = message;
27179
+ }
27180
+ };
27181
+ function fail(message) {
27182
+ throw new ParseError(message);
27183
+ }
27184
+ function describeJsonValue(jsonable) {
27185
+ if (jsonable === null) return "null";
27186
+ if (Array.isArray(jsonable)) return "an array";
27187
+ return typeof jsonable;
27188
+ }
27189
+ function asObject(jsonable) {
27190
+ if (typeof jsonable !== "object" || jsonable === null || Array.isArray(jsonable)) fail(`Expected a JSON object, but got ${describeJsonValue(jsonable)}`);
27191
+ return jsonable;
27192
+ }
27193
+ function asString(jsonable) {
27194
+ if (typeof jsonable !== "string") fail(`Expected a string, but got ${describeJsonValue(jsonable)}`);
27195
+ return jsonable;
27196
+ }
27197
+ function asNumber(jsonable) {
27198
+ if (typeof jsonable !== "number") fail(`Expected a number, but got ${describeJsonValue(jsonable)}`);
27199
+ return jsonable;
27200
+ }
27201
+ function asBoolean(jsonable) {
27202
+ if (typeof jsonable !== "boolean") fail(`Expected a boolean, but got ${describeJsonValue(jsonable)}`);
27203
+ return jsonable;
27204
+ }
27205
+ function asArray(jsonable) {
27206
+ if (!Array.isArray(jsonable)) fail(`Expected an array, but got ${describeJsonValue(jsonable)}`);
27207
+ return jsonable;
27208
+ }
27209
+ function listOf(parse) {
27210
+ return (jsonable) => {
27211
+ const items = asArray(jsonable);
27212
+ return items.map((item, index) => {
27213
+ try {
27214
+ return parse(item);
27215
+ } catch (err) {
27216
+ if (err instanceof ParseError) err.path.prepend(new IndexSegment$1(items, index));
27217
+ throw err;
27218
+ }
27219
+ });
27220
+ };
27221
+ }
27222
+ function pairOf(parse) {
27223
+ return (jsonable) => {
27224
+ const items = asArray(jsonable);
27225
+ if (items.length !== 2) fail(`Expected exactly two operands, but got ${items.length}`);
27226
+ const [left, right] = listOf(parse)(items);
27227
+ return [left, right];
27228
+ };
27229
+ }
27230
+ function enumFromJsonable(jsonNames, enumName) {
27231
+ return (jsonable) => {
27232
+ const value = jsonNames.indexOf(asString(jsonable));
27233
+ if (value === -1) fail(`Expected a ${enumName} (${jsonNames.join(", ")}), but got ${JSON.stringify(jsonable)}`);
27234
+ return value;
27235
+ };
27236
+ }
27237
+ function property(jsonObject, name, parse) {
27238
+ try {
27239
+ if (jsonObject[name] === void 0) fail(`The required property is missing`);
27240
+ return parse(jsonObject[name]);
27241
+ } catch (err) {
27242
+ if (err instanceof ParseError) err.path.prepend(new PropertySegment$1(jsonObject, name));
27243
+ throw err;
27244
+ }
27245
+ }
27246
+ function expectOnlyProperties(jsonObject, names, typeName) {
27247
+ const unexpected = Object.keys(jsonObject).filter((key) => !names.includes(key));
27248
+ if (unexpected.length > 0) fail(`Unexpected properties for ${typeName}: ${unexpected.join(", ")}`);
27249
+ }
27250
+ /**
27251
+ * Parse an expression of a union by the one property that names its class, as the JSON of the query language has no
27252
+ * `modelType`.
27253
+ */
27254
+ function oneOf(typeName, parsers) {
27255
+ return (jsonable) => {
27256
+ const jsonObject = asObject(jsonable);
27257
+ const available = parsers();
27258
+ const names = Object.keys(jsonObject);
27259
+ if (names.length !== 1 || !Object.hasOwn(available, names[0])) fail(`Expected exactly one of the properties ${Object.keys(available).join(", ")} for ${typeName}, but got: ${names.join(", ") || "none"}`);
27260
+ return available[names[0]](jsonObject);
27261
+ };
27262
+ }
27263
+ const parseGlobalAttributeKind = enumFromJsonable(GLOBAL_ATTRIBUTE_KIND_JSON_NAMES, "GlobalAttributeKind");
27264
+ const parseDateTimeGlobalAttributeKind = enumFromJsonable(GLOBAL_ATTRIBUTE_KIND_JSON_NAMES.slice(0, 3), "DateTimeGlobalAttributeKind");
27265
+ const parseQuerySelect = enumFromJsonable(QUERY_SELECT_JSON_NAMES, "QuerySelect");
27266
+ const parseAttributeItem = oneOf("AttributeItem", () => ({
27267
+ CLAIM: (o) => new ClaimAttribute(property(o, "CLAIM", asString)),
27268
+ GLOBAL: (o) => new GlobalAttribute(property(o, "GLOBAL", parseGlobalAttributeKind)),
27269
+ REFERENCE: (o) => new ReferenceAttribute(property(o, "REFERENCE", asString))
27270
+ }));
27271
+ const parseDateTimeAttributeItem = oneOf("DateTimeAttributeItem", () => ({ GLOBAL: (o) => new DateTimeAttributeItem(property(o, "GLOBAL", parseDateTimeGlobalAttributeKind)) }));
27272
+ const stringValueParsers = () => ({
27273
+ $field: (o) => new FieldOperand(property(o, "$field", asString)),
27274
+ $strVal: (o) => new StringLiteral(property(o, "$strVal", asString)),
27275
+ $strCast: (o) => new StringCast(property(o, "$strCast", parseValue)),
27276
+ $attribute: (o) => new AttributeOperand(property(o, "$attribute", parseAttributeItem))
27277
+ });
27278
+ const dateTimeLiteralParsers = () => ({
27279
+ $dateTimeVal: (o) => new DateTimeLiteral(property(o, "$dateTimeVal", asString)),
27280
+ $dateTimeCast: (o) => new DateTimeCast(property(o, "$dateTimeCast", parseStringValue))
27281
+ });
27282
+ const parseStringValue = oneOf("StringValue", stringValueParsers);
27283
+ const parseDateTimeOperand = oneOf("DateTimeOperand", () => ({
27284
+ ...dateTimeLiteralParsers(),
27285
+ $attribute: (o) => new DateTimeAttributeOperand(property(o, "$attribute", parseDateTimeAttributeItem))
27286
+ }));
27287
+ const parseTimeCastOperand = oneOf("TimeCastOperand", () => ({
27288
+ ...stringValueParsers(),
27289
+ ...dateTimeLiteralParsers()
27290
+ }));
27291
+ const parseValue = oneOf("Value", () => ({
27292
+ ...stringValueParsers(),
27293
+ $numVal: (o) => new NumberLiteral(property(o, "$numVal", asNumber)),
27294
+ $numCast: (o) => new NumberCast(property(o, "$numCast", parseValue)),
27295
+ $dayOfWeek: (o) => new DayOfWeek(property(o, "$dayOfWeek", parseDateTimeOperand)),
27296
+ $dayOfMonth: (o) => new DayOfMonth(property(o, "$dayOfMonth", parseDateTimeOperand)),
27297
+ $month: (o) => new Month(property(o, "$month", parseDateTimeOperand)),
27298
+ $year: (o) => new Year(property(o, "$year", parseDateTimeOperand)),
27299
+ $hexVal: (o) => new HexLiteral(property(o, "$hexVal", asString)),
27300
+ $hexCast: (o) => new HexCast(property(o, "$hexCast", parseValue)),
27301
+ $boolean: (o) => new BooleanLiteral(property(o, "$boolean", asBoolean)),
27302
+ $boolCast: (o) => new BooleanCast(property(o, "$boolCast", parseValue)),
27303
+ ...dateTimeLiteralParsers(),
27304
+ $timeVal: (o) => new TimeLiteral(property(o, "$timeVal", asString)),
27305
+ $timeCast: (o) => new TimeCast(property(o, "$timeCast", parseTimeCastOperand))
27306
+ }));
27307
+ const matchExpressionParsers = () => ({
27308
+ $match: (o) => new MatchClause(property(o, "$match", listOf(parseMatchExpression))),
27309
+ $eq: (o) => new EqualComparison(property(o, "$eq", pairOf(parseValue))),
27310
+ $ne: (o) => new NotEqualComparison(property(o, "$ne", pairOf(parseValue))),
27311
+ $gt: (o) => new GreaterThanComparison(property(o, "$gt", pairOf(parseValue))),
27312
+ $ge: (o) => new GreaterThanOrEqualComparison(property(o, "$ge", pairOf(parseValue))),
27313
+ $lt: (o) => new LessThanComparison(property(o, "$lt", pairOf(parseValue))),
27314
+ $le: (o) => new LessThanOrEqualComparison(property(o, "$le", pairOf(parseValue))),
27315
+ $contains: (o) => new ContainsComparison(property(o, "$contains", pairOf(parseStringValue))),
27316
+ "$starts-with": (o) => new StartsWithComparison(property(o, "$starts-with", pairOf(parseStringValue))),
27317
+ "$ends-with": (o) => new EndsWithComparison(property(o, "$ends-with", pairOf(parseStringValue))),
27318
+ $regex: (o) => new RegexComparison(property(o, "$regex", pairOf(parseStringValue)))
27319
+ });
27320
+ const parseMatchExpression = oneOf("MatchExpression", matchExpressionParsers);
27321
+ const parseLogicalExpression = oneOf("LogicalExpression", () => ({
27322
+ $and: (o) => new AndExpression(property(o, "$and", listOf(parseLogicalExpression))),
27323
+ $or: (o) => new OrExpression(property(o, "$or", listOf(parseLogicalExpression))),
27324
+ $not: (o) => new NotExpression(property(o, "$not", parseLogicalExpression)),
27325
+ $boolean: (o) => new BooleanLiteral(property(o, "$boolean", asBoolean)),
27326
+ ...matchExpressionParsers()
27327
+ }));
27328
+ function parseQueryFilter(jsonable) {
27329
+ const jsonObject = asObject(jsonable);
27330
+ expectOnlyProperties(jsonObject, ["$fragment", "$condition"], "QueryFilter");
27331
+ return new QueryFilter(property(jsonObject, "$fragment", asString), property(jsonObject, "$condition", parseLogicalExpression));
27332
+ }
27333
+ function parseQuery(jsonable) {
27334
+ const jsonObject = asObject(jsonable);
27335
+ expectOnlyProperties(jsonObject, [
27336
+ "$select",
27337
+ "$condition",
27338
+ "$filters"
27339
+ ], "Query");
27340
+ return new Query(property(jsonObject, "$condition", parseLogicalExpression), jsonObject["$select"] === void 0 ? null : property(jsonObject, "$select", parseQuerySelect), jsonObject["$filters"] === void 0 ? null : property(jsonObject, "$filters", listOf(parseQueryFilter)));
27341
+ }
27342
+ //#endregion
27343
+ //#region dist/lib/queryRequests.js
27344
+ /**
27345
+ * Serialize the query for the body of a `/query/*` request.
27346
+ *
27347
+ * @throws RequiredError if no query is given
27348
+ */
27349
+ function toQueryRequestBody(query) {
27350
+ if (query === null || query === void 0) throw new RequiredError("query", "Required parameter \"query\" was null or undefined.");
27351
+ return toJsonableQuery(query);
27352
+ }
27353
+ /**
27354
+ * Convert the response of a `/query/*` request.
27355
+ *
27356
+ * The result holds identifiers if the server reports `resultType: 'Identifier'` or the query selected them. Servers
27357
+ * that return objects for `select: QuerySelect.Id` anyway are tolerated: the `id` of each object is used.
27358
+ *
27359
+ * @param response The parsed response body
27360
+ * @param query The query that was sent
27361
+ * @param resultType The `resultType` of a result with objects
27362
+ * @param convertItem Converts a returned object
27363
+ */
27364
+ function convertQueryResult(response, query, resultType, convertItem) {
27365
+ const pagedResult = response.paging_metadata;
27366
+ const items = response.result ?? [];
27367
+ if (pagedResult?.resultType === "Identifier" || query.select === QuerySelect.Id) return {
27368
+ pagedResult,
27369
+ resultType: "Identifier",
27370
+ result: items.map(toIdentifier)
27371
+ };
27372
+ return {
27373
+ pagedResult,
27374
+ resultType,
27375
+ result: items.map((item) => convertItem(item))
27376
+ };
27377
+ }
27378
+ function toIdentifier(item) {
27379
+ if (typeof item === "string") return item;
27380
+ const id = item?.id;
27381
+ if (typeof id === "string") return id;
27382
+ throw new Error(`Expected an identifier in the query result, but got: ${JSON.stringify(item)}`);
27383
+ }
27384
+ //#endregion
26516
27385
  //#region dist/clients/AasRegistryClient.js
26517
27386
  var AasRegistryClient = class AasRegistryClient {
26518
27387
  static requireIdentifier(value, field) {
@@ -26573,6 +27442,42 @@ var AasRegistryClient = class AasRegistryClient {
26573
27442
  }
26574
27443
  }
26575
27444
  /**
27445
+ * Returns all Asset Administration Shell Descriptors that conform to the query (AAS Query Language)
27446
+ *
27447
+ * @param options Object containing:
27448
+ * - configuration: The http request options
27449
+ * - query: The query, e.g. `new Query(new EqualComparison([new FieldOperand('$aasdesc#idShort'), new StringLiteral('Robot')]))`
27450
+ * - limit?: The maximum number of elements in the response array
27451
+ * - cursor?: A server-generated identifier retrieved from paging_metadata that specifies from which position the result listing should continue
27452
+ *
27453
+ * @returns Either `{ success: true; data: ... }` or `{ success: false; error: ... }`.
27454
+ * `data.resultType` is `'Identifier'` with `result: string[]` if the query selects `QuerySelect.Id`.
27455
+ */
27456
+ async queryAssetAdministrationShellDescriptors(options) {
27457
+ const { configuration, query, limit, cursor } = options;
27458
+ try {
27459
+ const response = await new AssetAdministrationShellRegistryAPIApi(applyDefaults(configuration)).queryAssetAdministrationShellDescriptorsRaw({
27460
+ query: toQueryRequestBody(query),
27461
+ limit,
27462
+ cursor
27463
+ });
27464
+ return {
27465
+ success: true,
27466
+ data: convertQueryResult(await response.value(), query, "AssetAdministrationShellDescriptor", convertApiAasDescriptorToCoreAasDescriptor),
27467
+ statusCode: response.raw.status,
27468
+ etag: getEtag(response.raw)
27469
+ };
27470
+ } catch (err) {
27471
+ const customError = await handleApiError(err);
27472
+ return {
27473
+ success: false,
27474
+ error: customError,
27475
+ statusCode: AasRegistryClient.extractStatusCode(err, customError),
27476
+ ...getConditionalErrorFields(err)
27477
+ };
27478
+ }
27479
+ }
27480
+ /**
26576
27481
  * Creates a new Asset Administration Shell Descriptor, i.e. registers an AAS
26577
27482
  *
26578
27483
  * @param options Object containing:
@@ -27152,6 +28057,42 @@ var AasRepositoryClient = class AasRepositoryClient {
27152
28057
  }
27153
28058
  }
27154
28059
  /**
28060
+ * Returns all Asset Administration Shells that conform to the query (AAS Query Language)
28061
+ *
28062
+ * @param options Object containing:
28063
+ * - configuration: The http request options
28064
+ * - query: The query, e.g. `new Query(new EqualComparison([new FieldOperand('$aas#idShort'), new StringLiteral('Robot')]))`
28065
+ * - limit?: The maximum number of elements in the response array
28066
+ * - cursor?: A server-generated identifier retrieved from paging_metadata that specifies from which position the result listing should continue
28067
+ *
28068
+ * @returns Either `{ success: true; data: ... }` or `{ success: false; error: ... }`.
28069
+ * `data.resultType` is `'Identifier'` with `result: string[]` if the query selects `QuerySelect.Id`.
28070
+ */
28071
+ async queryAssetAdministrationShells(options) {
28072
+ const { configuration, query, limit, cursor } = options;
28073
+ try {
28074
+ const response = await new AssetAdministrationShellRepositoryAPIApi(applyDefaults(configuration)).queryAssetAdministrationShellsRaw({
28075
+ query: toQueryRequestBody(query),
28076
+ limit,
28077
+ cursor
28078
+ });
28079
+ return {
28080
+ success: true,
28081
+ data: convertQueryResult(await response.value(), query, "AssetAdministrationShell", convertApiAasToCoreAas),
28082
+ statusCode: response.raw.status,
28083
+ etag: getEtag(response.raw)
28084
+ };
28085
+ } catch (err) {
28086
+ const customError = await handleApiError(err);
28087
+ return {
28088
+ success: false,
28089
+ error: customError,
28090
+ statusCode: AasRepositoryClient.extractStatusCode(err, customError),
28091
+ ...getConditionalErrorFields(err)
28092
+ };
28093
+ }
28094
+ }
28095
+ /**
27155
28096
  * Returns References to all Asset Administration Shells
27156
28097
  *
27157
28098
  * @param options Object containing:
@@ -29829,6 +30770,42 @@ var ConceptDescriptionRepositoryClient = class ConceptDescriptionRepositoryClien
29829
30770
  }
29830
30771
  }
29831
30772
  /**
30773
+ * Returns all Concept Descriptions that conform to the query (AAS Query Language)
30774
+ *
30775
+ * @param options Object containing:
30776
+ * - configuration: The http request options
30777
+ * - query: The query, e.g. `new Query(new EqualComparison([new FieldOperand('$cd#idShort'), new StringLiteral('Voltage')]))`
30778
+ * - limit?: The maximum number of elements in the response array
30779
+ * - cursor?: A server-generated identifier retrieved from paging_metadata that specifies from which position the result listing should continue
30780
+ *
30781
+ * @returns Either `{ success: true; data: ... }` or `{ success: false; error: ... }`.
30782
+ * `data.resultType` is `'Identifier'` with `result: string[]` if the query selects `QuerySelect.Id`.
30783
+ */
30784
+ async queryConceptDescriptions(options) {
30785
+ const { configuration, query, limit, cursor } = options;
30786
+ try {
30787
+ const response = await new ConceptDescriptionRepositoryAPIApi(applyDefaults(configuration)).queryConceptDescriptionsRaw({
30788
+ query: toQueryRequestBody(query),
30789
+ limit,
30790
+ cursor
30791
+ });
30792
+ return {
30793
+ success: true,
30794
+ data: convertQueryResult(await response.value(), query, "ConceptDescription", convertApiCDToCoreCD),
30795
+ statusCode: response.raw.status,
30796
+ etag: getEtag(response.raw)
30797
+ };
30798
+ } catch (err) {
30799
+ const customError = await handleApiError(err);
30800
+ return {
30801
+ success: false,
30802
+ error: customError,
30803
+ statusCode: ConceptDescriptionRepositoryClient.extractStatusCode(err, customError),
30804
+ ...getConditionalErrorFields(err)
30805
+ };
30806
+ }
30807
+ }
30808
+ /**
29832
30809
  * Creates a new Concept Description
29833
30810
  *
29834
30811
  * @param options Object containing:
@@ -29976,6 +30953,42 @@ var SubmodelRegistryClient = class SubmodelRegistryClient {
29976
30953
  }
29977
30954
  }
29978
30955
  /**
30956
+ * Returns all Submodel Descriptors that conform to the query (AAS Query Language)
30957
+ *
30958
+ * @param options Object containing:
30959
+ * - configuration: The http request options
30960
+ * - query: The query, e.g. `new Query(new EqualComparison([new FieldOperand('$smdesc#idShort'), new StringLiteral('Nameplate')]))`
30961
+ * - limit?: The maximum number of elements in the response array
30962
+ * - cursor?: A server-generated identifier retrieved from paging_metadata that specifies from which position the result listing should continue
30963
+ *
30964
+ * @returns Either `{ success: true; data: ... }` or `{ success: false; error: ... }`.
30965
+ * `data.resultType` is `'Identifier'` with `result: string[]` if the query selects `QuerySelect.Id`.
30966
+ */
30967
+ async querySubmodelDescriptors(options) {
30968
+ const { configuration, query, limit, cursor } = options;
30969
+ try {
30970
+ const response = await new SubmodelRegistryAPIApi(applyDefaults(configuration)).querySubmodelDescriptorsRaw({
30971
+ query: toQueryRequestBody(query),
30972
+ limit,
30973
+ cursor
30974
+ });
30975
+ return {
30976
+ success: true,
30977
+ data: convertQueryResult(await response.value(), query, "SubmodelDescriptor", convertApiSubmodelDescriptorToCoreSubmodelDescriptor),
30978
+ statusCode: response.raw.status,
30979
+ etag: getEtag(response.raw)
30980
+ };
30981
+ } catch (err) {
30982
+ const customError = await handleApiError(err);
30983
+ return {
30984
+ success: false,
30985
+ error: customError,
30986
+ statusCode: SubmodelRegistryClient.extractStatusCode(err, customError),
30987
+ ...getConditionalErrorFields(err)
30988
+ };
30989
+ }
30990
+ }
30991
+ /**
29979
30992
  * Creates a new Submodel Descriptor, i.e. registers a Submodel
29980
30993
  *
29981
30994
  * @param options Object containing:
@@ -30211,6 +31224,42 @@ var SubmodelRepositoryClient = class SubmodelRepositoryClient {
30211
31224
  }
30212
31225
  }
30213
31226
  /**
31227
+ * Returns all Submodels that conform to the query (AAS Query Language)
31228
+ *
31229
+ * @param options Object containing:
31230
+ * - configuration: The http request options
31231
+ * - query: The query, e.g. `new Query(new EqualComparison([new FieldOperand('$sm#idShort'), new StringLiteral('Nameplate')]))`
31232
+ * - limit?: The maximum number of elements in the response array
31233
+ * - cursor?: A server-generated identifier retrieved from paging_metadata that specifies from which position the result listing should continue
31234
+ *
31235
+ * @returns Either `{ success: true; data: ... }` or `{ success: false; error: ... }`.
31236
+ * `data.resultType` is `'Identifier'` with `result: string[]` if the query selects `QuerySelect.Id`.
31237
+ */
31238
+ async querySubmodels(options) {
31239
+ const { configuration, query, limit, cursor } = options;
31240
+ try {
31241
+ const response = await new SubmodelRepositoryAPIApi(applyDefaults(configuration)).querySubmodelsRaw({
31242
+ query: toQueryRequestBody(query),
31243
+ limit,
31244
+ cursor
31245
+ });
31246
+ return {
31247
+ success: true,
31248
+ data: convertQueryResult(await response.value(), query, "Submodel", convertApiSubmodelToCoreSubmodel),
31249
+ statusCode: response.raw.status,
31250
+ etag: getEtag(response.raw)
31251
+ };
31252
+ } catch (err) {
31253
+ const customError = await handleApiError(err);
31254
+ return {
31255
+ success: false,
31256
+ error: customError,
31257
+ statusCode: SubmodelRepositoryClient.extractStatusCode(err, customError),
31258
+ ...getConditionalErrorFields(err)
31259
+ };
31260
+ }
31261
+ }
31262
+ /**
30214
31263
  * Returns all Submodels in metadata representation
30215
31264
  *
30216
31265
  * @param options Object containing:
@@ -31931,36 +32980,183 @@ var SubmodelRepositoryClient = class SubmodelRepositoryClient {
31931
32980
  };
31932
32981
  //#endregion
31933
32982
  //#region dist/utils/DescriptorUtils.js
31934
- var DescriptorUtils_exports = /* @__PURE__ */ __exportAll({ extractEndpointHref: () => extractEndpointHref });
32983
+ var DescriptorUtils_exports = /* @__PURE__ */ __exportAll({
32984
+ extractEndpointHref: () => extractEndpointHref,
32985
+ findEndpoint: () => findEndpoint,
32986
+ isRepositoryEndpoint: () => isRepositoryEndpoint
32987
+ });
32988
+ const interfaceShortNames = [
32989
+ "AAS",
32990
+ "SUBMODEL",
32991
+ "SERIALIZE",
32992
+ "DESCRIPTION",
32993
+ "AASX-FILE",
32994
+ "AAS-REGISTRY",
32995
+ "SUBMODEL-REGISTRY",
32996
+ "AAS-REPOSITORY",
32997
+ "SUBMODEL-REPOSITORY",
32998
+ "CD-REPOSITORY",
32999
+ "AAS-DISCOVERY"
33000
+ ];
33001
+ /**
33002
+ * Finds the endpoint of a descriptor that matches the given interface short name.
33003
+ *
33004
+ * An exact match on `endpoint._interface` is preferred. For `AAS-3.x` and `SUBMODEL-3.x` requests,
33005
+ * other 3.x versions are accepted as well, in this order:
33006
+ * 1. exact match (e.g. `AAS-3.0`)
33007
+ * 2. any direct interface of major version 3 (e.g. `AAS-3.1`, `AAS-3.2`)
33008
+ * 3. the repository interface of the same version (e.g. `AAS-REPOSITORY-3.0`)
33009
+ * 4. any repository interface of major version 3 (e.g. `AAS-REPOSITORY-3.2`)
33010
+ *
33011
+ * The href of a repository interface points to the repository base path instead of the resource itself.
33012
+ *
33013
+ * @param {Object} descriptor - The descriptor containing endpoint information.
33014
+ * @param {string} interfaceShortName - The short name of the interface to match against endpoint interfaces.
33015
+ * @returns {Endpoint | undefined} The matching endpoint, or `undefined` if there is none.
33016
+ */
33017
+ function findEndpoint(descriptor, interfaceShortName) {
33018
+ if (!interfaceShortName || interfaceShortName.trim() === "") return void 0;
33019
+ interfaceShortName = interfaceShortName.trim().toUpperCase();
33020
+ if (!interfaceShortNames.some((iShortName) => interfaceShortName.startsWith(`${iShortName}-`))) return;
33021
+ if (!Array.isArray(descriptor?.endpoints) || descriptor.endpoints.length === 0) return;
33022
+ const endpoints = descriptor.endpoints.filter((endpoint) => endpoint?.protocolInformation?.href);
33023
+ const interfaceOf = (endpoint) => endpoint._interface?.trim().toUpperCase();
33024
+ const exactMatch = endpoints.find((endpoint) => interfaceOf(endpoint) === interfaceShortName);
33025
+ if (exactMatch) return exactMatch;
33026
+ const versionedInterface = /^(AAS|SUBMODEL)-(3\.\d+(?:\.\d+)*)$/.exec(interfaceShortName);
33027
+ if (!versionedInterface) return void 0;
33028
+ const [, interfaceName, version] = versionedInterface;
33029
+ const directInterfacePattern = new RegExp(String.raw`^${interfaceName}-3\.\d+(?:\.\d+)*$`);
33030
+ const repositoryInterfacePattern = new RegExp(String.raw`^${interfaceName}-REPOSITORY-3\.\d+(?:\.\d+)*$`);
33031
+ return endpoints.find((endpoint) => directInterfacePattern.test(interfaceOf(endpoint) ?? "")) ?? endpoints.find((endpoint) => interfaceOf(endpoint) === `${interfaceName}-REPOSITORY-${version}`) ?? endpoints.find((endpoint) => repositoryInterfacePattern.test(interfaceOf(endpoint) ?? ""));
33032
+ }
33033
+ /**
33034
+ * Checks whether an endpoint uses a repository interface (e.g. `AAS-REPOSITORY-3.0`).
33035
+ * The href of such an endpoint points to the repository base path instead of the resource itself.
33036
+ *
33037
+ * @param {Endpoint} endpoint - The endpoint to check.
33038
+ * @returns {boolean} `true` if the endpoint uses a repository interface.
33039
+ */
33040
+ function isRepositoryEndpoint(endpoint) {
33041
+ return /^[A-Z-]+-REPOSITORY-/.test(endpoint?._interface?.trim().toUpperCase() ?? "");
33042
+ }
31935
33043
  /**
31936
33044
  * Extracts the endpoint from a descriptor based on the given interface short name.
33045
+ * See {@link findEndpoint} for the order in which endpoints are matched.
31937
33046
  *
31938
33047
  * @param {Object} descriptor - The descriptor containing endpoint information.
31939
33048
  * @param {string} interfaceShortName - The short name of the interface to match against endpoint interfaces.
31940
33049
  * @returns {string} The href of the matching endpoint's protocol information if found, otherwise an empty string.
31941
33050
  */
31942
33051
  function extractEndpointHref(descriptor, interfaceShortName) {
31943
- const failResponse = "";
31944
- const interfaceShortNames = [
31945
- "AAS",
31946
- "SUBMODEL",
31947
- "SERIALIZE",
31948
- "DESCRIPTION",
31949
- "AASX-FILE",
31950
- "AAS-REGISTRY",
31951
- "SUBMODEL-REGISTRY",
31952
- "AAS-REPOSITORY",
31953
- "SUBMODEL-REPOSITORY",
31954
- "CD-REPOSITORY",
31955
- "AAS-DISCOVERY"
31956
- ];
31957
- if (!interfaceShortName || interfaceShortName.trim() === "") return failResponse;
31958
- interfaceShortName = interfaceShortName.trim();
31959
- interfaceShortName = interfaceShortName.toUpperCase();
31960
- if (!interfaceShortNames.some((iShortName) => interfaceShortName.startsWith(`${iShortName}-`))) return failResponse;
31961
- if (!Array.isArray(descriptor?.endpoints) || descriptor?.endpoints.length === 0) return failResponse;
31962
- const endpoint = descriptor.endpoints.find((endpoint) => endpoint?._interface === interfaceShortName);
31963
- return endpoint?.protocolInformation?.href ? endpoint.protocolInformation.href : "";
33052
+ return findEndpoint(descriptor, interfaceShortName)?.protocolInformation?.href ?? "";
33053
+ }
33054
+ //#endregion
33055
+ //#region dist/lib/endpointConfiguration.js
33056
+ /**
33057
+ * Splits a resource URL like `http://host/prefix/shells/{encodedId}` into the repository base path and the
33058
+ * encoded identifier.
33059
+ *
33060
+ * @param href The resource URL
33061
+ * @param collection The collection segment (`shells` or `submodels`)
33062
+ * @returns The base path and encoded identifier, or `undefined` if the URL does not match
33063
+ */
33064
+ function splitResourceHref(href, collection) {
33065
+ const match = href.match(new RegExp(String.raw`^(https?:\/\/[^/?#]+(?:\/[^?#]*?)?)\/${collection}\/([^/?#]+)\/?$`));
33066
+ if (!match) return void 0;
33067
+ return {
33068
+ basePath: match[1],
33069
+ encodedId: match[2]
33070
+ };
33071
+ }
33072
+ /**
33073
+ * Resolves the endpoint of a descriptor for the given interface family (`AAS` or `SUBMODEL`).
33074
+ * Repository interface endpoints are expanded to the resource URL of the descriptor's identifier.
33075
+ *
33076
+ * @param descriptor The descriptor
33077
+ * @param interfaceName `AAS` or `SUBMODEL`
33078
+ * @returns The resolved endpoint, or `undefined` if the descriptor has no usable endpoint
33079
+ */
33080
+ function resolveDescriptorEndpoint(descriptor, interfaceName) {
33081
+ const endpoint = findEndpoint(descriptor, `${interfaceName}-3.0`);
33082
+ const endpointHref = endpoint?.protocolInformation?.href?.trim();
33083
+ if (!endpoint || !endpointHref) return void 0;
33084
+ const collection = interfaceName === "AAS" ? "shells" : "submodels";
33085
+ if (isRepositoryEndpoint(endpoint)) {
33086
+ if (!descriptor.id) return void 0;
33087
+ const basePath = endpointHref.replace(/\/+$/, "");
33088
+ return {
33089
+ href: `${basePath}/${collection}/${base64Encode(descriptor.id)}`,
33090
+ basePath
33091
+ };
33092
+ }
33093
+ return {
33094
+ href: endpointHref,
33095
+ basePath: splitResourceHref(endpointHref, collection)?.basePath ?? endpointHref
33096
+ };
33097
+ }
33098
+ /**
33099
+ * Creates a configuration for the given base path that keeps the auth, fetch and middleware settings of `source`.
33100
+ *
33101
+ * @param basePath The base path to target
33102
+ * @param source The configuration to take the settings from
33103
+ * @returns The new configuration
33104
+ */
33105
+ function withBasePath(basePath, source) {
33106
+ if (!source) return new Configuration({ basePath });
33107
+ return new Configuration({
33108
+ basePath,
33109
+ fetchApi: source.fetchApi,
33110
+ middleware: source.middleware,
33111
+ queryParamsStringify: source.queryParamsStringify,
33112
+ username: source.username,
33113
+ password: source.password,
33114
+ apiKey: source.apiKey,
33115
+ accessToken: source.accessToken,
33116
+ headers: source.headers,
33117
+ credentials: source.credentials
33118
+ });
33119
+ }
33120
+ /**
33121
+ * Determines the configuration for a request to a descriptor endpoint.
33122
+ *
33123
+ * If a resolver is given, it decides: it returns the configuration to use, or rejects the endpoint by returning
33124
+ * `null`/`undefined` or throwing. Otherwise, the settings of the fallback configuration (if any) are used.
33125
+ *
33126
+ * @param href The full endpoint URL
33127
+ * @param basePath The base path to send the request to
33128
+ * @param resolver The caller's endpoint configuration hook
33129
+ * @param fallback The configuration to take settings from if no resolver is given
33130
+ * @returns The configuration, or an `EndpointRejected` error
33131
+ */
33132
+ async function createEndpointConfiguration(href, basePath, resolver, fallback) {
33133
+ if (!resolver) return {
33134
+ success: true,
33135
+ configuration: withBasePath(basePath, fallback)
33136
+ };
33137
+ let configuration;
33138
+ try {
33139
+ configuration = await resolver(href);
33140
+ } catch (error) {
33141
+ return {
33142
+ success: false,
33143
+ error: {
33144
+ errorType: "EndpointRejected",
33145
+ message: `Endpoint ${href} was rejected: ${error instanceof Error ? error.message : String(error)}`
33146
+ }
33147
+ };
33148
+ }
33149
+ if (!configuration) return {
33150
+ success: false,
33151
+ error: {
33152
+ errorType: "EndpointRejected",
33153
+ message: `Endpoint ${href} was rejected`
33154
+ }
33155
+ };
33156
+ return {
33157
+ success: true,
33158
+ configuration: withBasePath(basePath, configuration)
33159
+ };
31964
33160
  }
31965
33161
  //#endregion
31966
33162
  //#region dist/services/SubmodelService.js
@@ -31979,6 +33175,7 @@ var SubmodelService = class {
31979
33175
  submodelRegistryConfig;
31980
33176
  submodelRepositoryConfig;
31981
33177
  conceptDescriptionRepositoryConfig;
33178
+ endpointConfiguration;
31982
33179
  constructor(config) {
31983
33180
  this.submodelRegistryClient = new SubmodelRegistryClient();
31984
33181
  this.submodelRepositoryClient = new SubmodelRepositoryClient();
@@ -31986,6 +33183,7 @@ var SubmodelService = class {
31986
33183
  this.submodelRegistryConfig = config.submodelRegistryConfig;
31987
33184
  this.submodelRepositoryConfig = config.submodelRepositoryConfig;
31988
33185
  this.conceptDescriptionRepositoryConfig = config.conceptDescriptionRepositoryConfig;
33186
+ this.endpointConfiguration = config.endpointConfiguration;
31989
33187
  }
31990
33188
  /**
31991
33189
  * Retrieves a list of all Submodels.
@@ -32029,13 +33227,13 @@ var SubmodelService = class {
32029
33227
  message: "Submodel descriptor does not contain an id and cannot be resolved"
32030
33228
  }
32031
33229
  };
32032
- const endpoint = descriptor.endpoints?.[0]?.protocolInformation?.href;
33230
+ const endpoint = resolveDescriptorEndpoint(descriptor, "SUBMODEL")?.href;
32033
33231
  if (!endpoint) return {
32034
33232
  submodel: null,
32035
33233
  warning: {
32036
33234
  submodelIdentifier: descriptor.id,
32037
33235
  errorType: "MissingEndpoint",
32038
- message: "Submodel descriptor has no endpoint and cannot be resolved"
33236
+ message: "Submodel descriptor has no SUBMODEL-3.x endpoint and cannot be resolved"
32039
33237
  }
32040
33238
  };
32041
33239
  const submodelResult = await this.getSubmodelByEndpoint({ endpoint });
@@ -32134,7 +33332,7 @@ var SubmodelService = class {
32134
33332
  });
32135
33333
  if (descriptorResult.success) {
32136
33334
  const descriptor = descriptorResult.data;
32137
- const endpoint = descriptor.endpoints?.[0]?.protocolInformation?.href;
33335
+ const endpoint = resolveDescriptorEndpoint(descriptor, "SUBMODEL")?.href;
32138
33336
  if (endpoint) {
32139
33337
  const submodelResult = await this.getSubmodelByEndpoint({
32140
33338
  endpoint,
@@ -32203,7 +33401,7 @@ var SubmodelService = class {
32203
33401
  submodelIdentifier
32204
33402
  });
32205
33403
  if (descriptorResult.success) {
32206
- const endpoint = descriptorResult.data.endpoints?.[0]?.protocolInformation?.href;
33404
+ const endpoint = resolveDescriptorEndpoint(descriptorResult.data, "SUBMODEL")?.href;
32207
33405
  if (endpoint) return {
32208
33406
  success: true,
32209
33407
  data: endpoint
@@ -32227,9 +33425,10 @@ var SubmodelService = class {
32227
33425
  *
32228
33426
  * Extracts the base URL and base64url-encoded Submodel identifier from the endpoint,
32229
33427
  * decodes the identifier, and fetches the submodel from the repository.
33428
+ * If an `endpointConfiguration` hook is configured, it decides whether and how the endpoint is contacted.
32230
33429
  *
32231
33430
  * @param options Object containing:
32232
- * - endpoint: The endpoint URL (format: http://host/submodels/{base64EncodedId})
33431
+ * - endpoint: The endpoint URL (format: http://host[/basePath]/submodels/{base64EncodedId})
32233
33432
  * - includeConceptDescriptions?: Whether to fetch concept descriptions (default: false)
32234
33433
  *
32235
33434
  * @returns Either `{ success: true; data: { submodel, conceptDescriptions? }; etag? }` or `{ success: false; error: ... }`.
@@ -32237,15 +33436,15 @@ var SubmodelService = class {
32237
33436
  */
32238
33437
  async getSubmodelByEndpoint(options) {
32239
33438
  const { endpoint, includeConceptDescriptions = false } = options;
32240
- const match = endpoint.match(/^(https?:\/\/[^/]+(?::\d+)?)\/submodels\/([^/]+)$/);
32241
- if (!match) return {
33439
+ const parts = splitResourceHref(endpoint, "submodels");
33440
+ if (!parts) return {
32242
33441
  success: false,
32243
33442
  error: {
32244
33443
  errorType: "InvalidEndpoint",
32245
33444
  message: "Invalid endpoint format. Expected format: http://host/submodels/{base64EncodedId}"
32246
33445
  }
32247
33446
  };
32248
- const [, baseUrl, encodedId] = match;
33447
+ const { basePath: baseUrl, encodedId } = parts;
32249
33448
  let submodelIdentifier;
32250
33449
  try {
32251
33450
  submodelIdentifier = base64Decode(encodedId);
@@ -32258,9 +33457,13 @@ var SubmodelService = class {
32258
33457
  }
32259
33458
  };
32260
33459
  }
32261
- const config = this.createRepositoryEndpointConfiguration(baseUrl);
33460
+ const configResult = await createEndpointConfiguration(endpoint, baseUrl, this.endpointConfiguration, this.submodelRepositoryConfig);
33461
+ if (!configResult.success) return {
33462
+ success: false,
33463
+ error: configResult.error
33464
+ };
32262
33465
  const submodelResult = await this.submodelRepositoryClient.getSubmodelById({
32263
- configuration: config,
33466
+ configuration: configResult.configuration,
32264
33467
  submodelIdentifier
32265
33468
  });
32266
33469
  if (!submodelResult.success) return {
@@ -32280,27 +33483,6 @@ var SubmodelService = class {
32280
33483
  };
32281
33484
  }
32282
33485
  /**
32283
- * Creates a repository configuration for an endpoint while preserving auth and middleware.
32284
- *
32285
- * @param basePath The endpoint base path to target
32286
- * @returns Configuration with endpoint basePath plus repository auth/settings
32287
- */
32288
- createRepositoryEndpointConfiguration(basePath) {
32289
- if (!this.submodelRepositoryConfig) return new Configuration({ basePath });
32290
- return new Configuration({
32291
- basePath,
32292
- fetchApi: this.submodelRepositoryConfig.fetchApi,
32293
- middleware: this.submodelRepositoryConfig.middleware,
32294
- queryParamsStringify: this.submodelRepositoryConfig.queryParamsStringify,
32295
- username: this.submodelRepositoryConfig.username,
32296
- password: this.submodelRepositoryConfig.password,
32297
- apiKey: this.submodelRepositoryConfig.apiKey,
32298
- accessToken: this.submodelRepositoryConfig.accessToken,
32299
- headers: this.submodelRepositoryConfig.headers,
32300
- credentials: this.submodelRepositoryConfig.credentials
32301
- });
32302
- }
32303
- /**
32304
33486
  * Creates a Submodel and optionally registers it in the registry.
32305
33487
  *
32306
33488
  * This method creates the Submodel in the repository first. If registry is configured
@@ -32590,6 +33772,7 @@ var AasService = class {
32590
33772
  aasRegistryConfig;
32591
33773
  aasRepositoryConfig;
32592
33774
  discoveryConfig;
33775
+ endpointConfiguration;
32593
33776
  submodelService;
32594
33777
  constructor(config) {
32595
33778
  this.aasRegistryClient = new AasRegistryClient();
@@ -32598,10 +33781,12 @@ var AasService = class {
32598
33781
  this.aasRegistryConfig = config.aasRegistryConfig;
32599
33782
  this.aasRepositoryConfig = config.aasRepositoryConfig;
32600
33783
  this.discoveryConfig = config.discoveryConfig;
33784
+ this.endpointConfiguration = config.endpointConfiguration;
32601
33785
  this.submodelService = new SubmodelService({
32602
33786
  submodelRegistryConfig: config.submodelRegistryConfig ?? config.aasRegistryConfig,
32603
33787
  submodelRepositoryConfig: config.submodelRepositoryConfig ?? config.aasRepositoryConfig,
32604
- conceptDescriptionRepositoryConfig: config.conceptDescriptionRepositoryConfig
33788
+ conceptDescriptionRepositoryConfig: config.conceptDescriptionRepositoryConfig,
33789
+ endpointConfiguration: config.endpointConfiguration
32605
33790
  });
32606
33791
  }
32607
33792
  /**
@@ -32648,19 +33833,27 @@ var AasService = class {
32648
33833
  });
32649
33834
  continue;
32650
33835
  }
32651
- const endpoint = extractEndpointHref(descriptor, "AAS-3.0");
32652
- if (!endpoint) {
33836
+ const resolvedEndpoint = resolveDescriptorEndpoint(descriptor, "AAS");
33837
+ if (!resolvedEndpoint) {
32653
33838
  warnings.push({
32654
33839
  descriptorId: descriptor.id,
32655
33840
  errorType: "MissingEndpoint",
32656
- message: "AAS descriptor has no AAS-3.0 endpoint and cannot be resolved"
33841
+ message: "AAS descriptor has no AAS-3.x endpoint and cannot be resolved"
33842
+ });
33843
+ continue;
33844
+ }
33845
+ const endpoint = resolvedEndpoint.href;
33846
+ const configResult = await this.createEndpointConfiguration(endpoint, resolvedEndpoint.basePath);
33847
+ if (!configResult.success) {
33848
+ warnings.push({
33849
+ descriptorId: descriptor.id,
33850
+ endpoint,
33851
+ ...configResult.error
32657
33852
  });
32658
33853
  continue;
32659
33854
  }
32660
- const baseUrl = endpoint.match(/^(https?:\/\/[^/]+(?::\d+)?)/)?.[1] || endpoint;
32661
- const config = this.createRepositoryEndpointConfiguration(baseUrl);
32662
33855
  const shellResult = await this.aasRepositoryClient.getAssetAdministrationShellById({
32663
- configuration: config,
33856
+ configuration: configResult.configuration,
32664
33857
  aasIdentifier: descriptor.id
32665
33858
  });
32666
33859
  if (shellResult.success) shells.push(shellResult.data);
@@ -32756,12 +33949,11 @@ var AasService = class {
32756
33949
  });
32757
33950
  if (descriptorResult.success) {
32758
33951
  const descriptor = descriptorResult.data;
32759
- const endpoint = extractEndpointHref(descriptor, "AAS-3.0");
32760
- if (endpoint) {
32761
- const baseUrl = endpoint.match(/^(https?:\/\/[^/]+(?::\d+)?)/)?.[1] || endpoint;
32762
- const config = this.createRepositoryEndpointConfiguration(baseUrl);
33952
+ const resolvedEndpoint = resolveDescriptorEndpoint(descriptor, "AAS");
33953
+ const configResult = resolvedEndpoint ? await this.createEndpointConfiguration(resolvedEndpoint.href, resolvedEndpoint.basePath) : void 0;
33954
+ if (configResult?.success) {
32763
33955
  const shellResult = await this.aasRepositoryClient.getAssetAdministrationShellById({
32764
- configuration: config,
33956
+ configuration: configResult.configuration,
32765
33957
  aasIdentifier
32766
33958
  });
32767
33959
  if (shellResult.success) {
@@ -32832,7 +34024,7 @@ var AasService = class {
32832
34024
  aasIdentifier
32833
34025
  });
32834
34026
  if (descriptorResult.success) {
32835
- const endpoint = extractEndpointHref(descriptorResult.data, "AAS-3.0");
34027
+ const endpoint = resolveDescriptorEndpoint(descriptorResult.data, "AAS")?.href;
32836
34028
  if (endpoint) return {
32837
34029
  success: true,
32838
34030
  data: endpoint
@@ -32856,9 +34048,10 @@ var AasService = class {
32856
34048
  *
32857
34049
  * Extracts the base URL and base64url-encoded AAS identifier from the endpoint,
32858
34050
  * decodes the identifier, and fetches the shell from the repository.
34051
+ * If an `endpointConfiguration` hook is configured, it decides whether and how the endpoint is contacted.
32859
34052
  *
32860
34053
  * @param options Object containing:
32861
- * - endpoint: The endpoint URL (format: http://host/shells/{base64EncodedId})
34054
+ * - endpoint: The endpoint URL (format: http://host[/basePath]/shells/{base64EncodedId})
32862
34055
  * - includeSubmodels?: Whether to fetch submodels for the shell (default: false)
32863
34056
  * - includeConceptDescriptions?: Whether to fetch concept descriptions (default: false)
32864
34057
  *
@@ -32867,15 +34060,15 @@ var AasService = class {
32867
34060
  */
32868
34061
  async getAasByEndpoint(options) {
32869
34062
  const { endpoint, includeSubmodels = false } = options;
32870
- const match = endpoint.match(/^(https?:\/\/[^/]+(?::\d+)?)\/shells\/([^/]+)$/);
32871
- if (!match) return {
34063
+ const parts = splitResourceHref(endpoint, "shells");
34064
+ if (!parts) return {
32872
34065
  success: false,
32873
34066
  error: {
32874
34067
  errorType: "InvalidEndpoint",
32875
34068
  message: "Invalid endpoint format. Expected format: http://host/shells/{base64EncodedId}"
32876
34069
  }
32877
34070
  };
32878
- const [, baseUrl, encodedId] = match;
34071
+ const { basePath: baseUrl, encodedId } = parts;
32879
34072
  let aasIdentifier;
32880
34073
  try {
32881
34074
  aasIdentifier = base64Decode(encodedId);
@@ -32888,9 +34081,13 @@ var AasService = class {
32888
34081
  }
32889
34082
  };
32890
34083
  }
32891
- const config = this.createRepositoryEndpointConfiguration(baseUrl);
34084
+ const configResult = await this.createEndpointConfiguration(endpoint, baseUrl);
34085
+ if (!configResult.success) return {
34086
+ success: false,
34087
+ error: configResult.error
34088
+ };
32892
34089
  const shellResult = await this.aasRepositoryClient.getAssetAdministrationShellById({
32893
- configuration: config,
34090
+ configuration: configResult.configuration,
32894
34091
  aasIdentifier
32895
34092
  });
32896
34093
  if (!shellResult.success) return {
@@ -33234,25 +34431,15 @@ var AasService = class {
33234
34431
  };
33235
34432
  }
33236
34433
  /**
33237
- * Creates a repository configuration for an endpoint while preserving auth and middleware.
34434
+ * Determines the configuration for a request to an AAS endpoint, using the `endpointConfiguration` hook if
34435
+ * configured and the repository settings otherwise.
33238
34436
  *
34437
+ * @param href The full endpoint URL
33239
34438
  * @param basePath The endpoint base path to target
33240
- * @returns Configuration with endpoint basePath plus repository auth/settings
33241
- */
33242
- createRepositoryEndpointConfiguration(basePath) {
33243
- if (!this.aasRepositoryConfig) return new Configuration({ basePath });
33244
- return new Configuration({
33245
- basePath,
33246
- fetchApi: this.aasRepositoryConfig.fetchApi,
33247
- middleware: this.aasRepositoryConfig.middleware,
33248
- queryParamsStringify: this.aasRepositoryConfig.queryParamsStringify,
33249
- username: this.aasRepositoryConfig.username,
33250
- password: this.aasRepositoryConfig.password,
33251
- apiKey: this.aasRepositoryConfig.apiKey,
33252
- accessToken: this.aasRepositoryConfig.accessToken,
33253
- headers: this.aasRepositoryConfig.headers,
33254
- credentials: this.aasRepositoryConfig.credentials
33255
- });
34439
+ * @returns The configuration, or an `EndpointRejected` error
34440
+ */
34441
+ createEndpointConfiguration(href, basePath) {
34442
+ return createEndpointConfiguration(href, basePath, this.endpointConfiguration, this.aasRepositoryConfig);
33256
34443
  }
33257
34444
  /**
33258
34445
  * Helper method to create an AAS descriptor from an AssetAdministrationShell.
@@ -35094,11 +36281,13 @@ var lib_exports = /* @__PURE__ */ __exportAll({
35094
36281
  endpointFromJsonable: () => endpointFromJsonable,
35095
36282
  handleApiError: () => handleApiError,
35096
36283
  protocolInformationFromJsonable: () => protocolInformationFromJsonable,
36284
+ queryFromJsonable: () => queryFromJsonable,
35097
36285
  serializeXml: () => serializeXml,
35098
36286
  submodelDescriptorFromJsonable: () => submodelDescriptorFromJsonable,
35099
36287
  toJsonableAssetAdministrationShellDescriptor: () => toJsonableAssetAdministrationShellDescriptor,
35100
36288
  toJsonableEndpoint: () => toJsonableEndpoint,
35101
36289
  toJsonableProtocolInformation: () => toJsonableProtocolInformation,
36290
+ toJsonableQuery: () => toJsonableQuery,
35102
36291
  toJsonableSecurityAttribute: () => toJsonableSecurityAttribute,
35103
36292
  toJsonableSubmodelDescriptor: () => toJsonableSubmodelDescriptor
35104
36293
  });
@@ -35735,6 +36924,66 @@ function extractVersionRevision(semanticId) {
35735
36924
  return failResponse;
35736
36925
  }
35737
36926
  //#endregion
36927
+ //#region dist/utils/ServiceDescriptionUtils.js
36928
+ var ServiceDescriptionUtils_exports = /* @__PURE__ */ __exportAll({
36929
+ getQueryEndpoints: () => getQueryEndpoints,
36930
+ supportsQuery: () => supportsQuery
36931
+ });
36932
+ const QUERY_PROFILES = {
36933
+ shells: {
36934
+ specification: "AssetAdministrationShellRepositoryServiceSpecification",
36935
+ profile: "SSP-003"
36936
+ },
36937
+ submodels: {
36938
+ specification: "SubmodelRepositoryServiceSpecification",
36939
+ profile: "SSP-005"
36940
+ },
36941
+ "shell-descriptors": {
36942
+ specification: "AssetAdministrationShellRegistryServiceSpecification",
36943
+ profile: "SSP-004"
36944
+ },
36945
+ "submodel-descriptors": {
36946
+ specification: "SubmodelRegistryServiceSpecification",
36947
+ profile: "SSP-004"
36948
+ },
36949
+ "concept-descriptions": {
36950
+ specification: "ConceptDescriptionRepositoryServiceSpecification",
36951
+ profile: "SSP-002"
36952
+ }
36953
+ };
36954
+ const PROFILE_PATTERN = /\/aas\/API\/3\/\d+\/([A-Za-z]+)\/(SSP-\d+)$/;
36955
+ /**
36956
+ * Returns the query endpoints whose query profile a service advertises in its `ServiceDescription`.
36957
+ *
36958
+ * Profiles are matched by service specification and profile number, regardless of host and API version (both
36959
+ * `https://admin-shell.io/aas/API/3/2/...` and `https://basyx.org/aas/API/3/2/...`). This is a best-effort hint: a
36960
+ * server can serve query endpoints without advertising their profile, so an empty result does not prove that queries
36961
+ * are unsupported.
36962
+ *
36963
+ * @param serviceDescription The result of `getSelfDescription`
36964
+ * @returns The query endpoints with an advertised profile
36965
+ */
36966
+ function getQueryEndpoints(serviceDescription) {
36967
+ const profiles = serviceDescription?.profiles ?? [];
36968
+ return Object.keys(QUERY_PROFILES).filter((endpoint) => profiles.some((profile) => {
36969
+ const match = PROFILE_PATTERN.exec(profile);
36970
+ return match !== null && match[1] === QUERY_PROFILES[endpoint].specification && match[2] === QUERY_PROFILES[endpoint].profile;
36971
+ }));
36972
+ }
36973
+ /**
36974
+ * Checks whether a service advertises the query profile for an endpoint, or for any query endpoint if none is given.
36975
+ *
36976
+ * This is a best-effort hint, see {@link getQueryEndpoints}.
36977
+ *
36978
+ * @param serviceDescription The result of `getSelfDescription`
36979
+ * @param endpoint The query endpoint, e.g. `'shells'` for `/query/shells`
36980
+ * @returns `true` if the matching query profile is advertised
36981
+ */
36982
+ function supportsQuery(serviceDescription, endpoint) {
36983
+ const endpoints = getQueryEndpoints(serviceDescription);
36984
+ return endpoint === void 0 ? endpoints.length > 0 : endpoints.includes(endpoint);
36985
+ }
36986
+ //#endregion
35738
36987
  //#region dist/utils/index.js
35739
36988
  var utils_exports = /* @__PURE__ */ __exportAll({
35740
36989
  DescriptorUtils: () => DescriptorUtils_exports,
@@ -35743,6 +36992,7 @@ var utils_exports = /* @__PURE__ */ __exportAll({
35743
36992
  ReferableUtils: () => ReferableUtils_exports,
35744
36993
  ReferenceUtil: () => ReferenceUtil_exports,
35745
36994
  SemanticIdUtils: () => SemanticIdUtils_exports,
36995
+ ServiceDescriptionUtils: () => ServiceDescriptionUtils_exports,
35746
36996
  checkIdShort: () => checkIdShort,
35747
36997
  checkSemanticId: () => checkSemanticId,
35748
36998
  checkSemanticIdEclassIrdi: () => checkSemanticIdEclassIrdi,
@@ -35753,20 +37003,24 @@ var utils_exports = /* @__PURE__ */ __exportAll({
35753
37003
  extractEndpointHref: () => extractEndpointHref,
35754
37004
  extractId: () => extractId,
35755
37005
  extractVersionRevision: () => extractVersionRevision,
37006
+ findEndpoint: () => findEndpoint,
35756
37007
  firstLangStringSetText: () => firstLangStringSetText,
35757
37008
  getEquivalentEclassSemanticIds: () => getEquivalentEclassSemanticIds,
35758
37009
  getEquivalentIriSemanticIds: () => getEquivalentIriSemanticIds,
35759
37010
  getKeyTypeAbbreviation: () => getKeyTypeAbbreviation,
37011
+ getQueryEndpoints: () => getQueryEndpoints,
35760
37012
  getSubmodelElementByIdShort: () => getSubmodelElementByIdShort,
35761
37013
  getSubmodelElementBySemanticId: () => getSubmodelElementBySemanticId,
35762
37014
  getSubmodelElementsByIdShort: () => getSubmodelElementsByIdShort,
35763
37015
  getSubmodelElementsBySemanticId: () => getSubmodelElementsBySemanticId,
35764
37016
  hasValue: () => hasValue,
37017
+ isRepositoryEndpoint: () => isRepositoryEndpoint,
35765
37018
  keyTypes: () => keyTypes,
35766
37019
  nameToDisplay: () => nameToDisplay,
37020
+ supportsQuery: () => supportsQuery,
35767
37021
  valueToDisplay: () => valueToDisplay
35768
37022
  });
35769
37023
  //#endregion
35770
- export { AasDiscoveryClient, AasDiscoveryService_exports as AasDiscoveryService, AasRegistryClient, AasRegistryService_exports as AasRegistryService, AasRepositoryClient, AasRepositoryService_exports as AasRepositoryService, AasService, AasxFileClient, AasxFileService_exports as AasxFileService, AssetAdministrationShellDescriptor, BASE_PATH, BaSyxEnvironment, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, ConceptDescriptionRepositoryClient, ConceptDescriptionRepositoryService_exports as ConceptDescriptionRepositoryService, Configuration, DefaultConfig, DescriptorUtils_exports as DescriptorUtils, FetchError, JSONApiResponse, KeyTypesUtil_exports as KeyTypesUtil, lib_exports as Lib, MultiLanguagePropertyUtils_exports as MultiLanguagePropertyUtils, ProtocolInformationSecurityAttributesTypeEnum, ReferableUtils_exports as ReferableUtils, ReferenceUtil_exports as ReferenceUtil, RequiredError, ResponseError, SemanticIdUtils_exports as SemanticIdUtils, SubmodelDescriptor, SubmodelRegistryClient, SubmodelRegistryService_exports as SubmodelRegistryService, SubmodelRepositoryClient, SubmodelRepositoryService_exports as SubmodelRepositoryService, SubmodelService, TextApiResponse, utils_exports as Utils, VoidApiResponse, applyDefaults, assetAdministrationShellDescriptorFromJsonable, base64Decode, base64Encode, canConsumeForm, checkIdShort, checkSemanticId, checkSemanticIdEclassIrdi, checkSemanticIdEclassIrdiUrl, checkSemanticIdIecCdd, checkSemanticIdIri, convertApiAasDescriptorToCoreAasDescriptor, convertApiAasToCoreAas, convertApiAssetIdToCoreAssetId, convertApiAssetInformationToCoreAssetInformation, convertApiCDToCoreCD, convertApiReferenceToCoreReference, convertApiSubmodelDescriptorToCoreSubmodelDescriptor, convertApiSubmodelElementToCoreSubmodelElement, convertApiSubmodelToCoreSubmodel, convertCoreAasDescriptorToApiAasDescriptor, convertCoreAasToApiAas, convertCoreAssetIdToApiAssetId, convertCoreAssetInformationToApiAssetInformation, convertCoreCDToApiCD, convertCoreReferenceToApiReference, convertCoreSubmodelDescriptorToApiSubmodelDescriptor, convertCoreSubmodelElementToApiSubmodelElement, convertCoreSubmodelToApiSubmodel, descriptionToDisplay, deserializeXml, endpointFromJsonable, exists, extractEndpointHref, extractId, extractVersionRevision, firstLangStringSetText, getEquivalentEclassSemanticIds, getEquivalentIriSemanticIds, getKeyTypeAbbreviation, getSubmodelElementByIdShort, getSubmodelElementBySemanticId, getSubmodelElementsByIdShort, getSubmodelElementsBySemanticId, handleApiError, hasValue, keyTypes, nameToDisplay, protocolInformationFromJsonable, querystring, serializeXml, submodelDescriptorFromJsonable, toJsonableAssetAdministrationShellDescriptor, toJsonableEndpoint, toJsonableProtocolInformation, toJsonableSecurityAttribute, toJsonableSubmodelDescriptor, valueToDisplay };
37024
+ export { AasDiscoveryClient, AasDiscoveryService_exports as AasDiscoveryService, AasRegistryClient, AasRegistryService_exports as AasRegistryService, AasRepositoryClient, AasRepositoryService_exports as AasRepositoryService, AasService, AasxFileClient, AasxFileService_exports as AasxFileService, AndExpression, AssetAdministrationShellDescriptor, AttributeOperand, BASE_PATH, BaSyxEnvironment, BaseAPI, BlobApiResponse, BooleanCast, BooleanLiteral, COLLECTION_FORMATS, ClaimAttribute, ConceptDescriptionRepositoryClient, ConceptDescriptionRepositoryService_exports as ConceptDescriptionRepositoryService, Configuration, ContainsComparison, DateTimeAttributeItem, DateTimeAttributeOperand, DateTimeCast, DateTimeGlobalAttributeKind, DateTimeLiteral, DayOfMonth, DayOfWeek, DefaultConfig, DescriptorUtils_exports as DescriptorUtils, EndsWithComparison, EqualComparison, FetchError, FieldOperand, GlobalAttribute, GlobalAttributeKind, GreaterThanComparison, GreaterThanOrEqualComparison, HexCast, HexLiteral, JSONApiResponse, KeyTypesUtil_exports as KeyTypesUtil, LessThanComparison, LessThanOrEqualComparison, lib_exports as Lib, MatchClause, Month, MultiLanguagePropertyUtils_exports as MultiLanguagePropertyUtils, NotEqualComparison, NotExpression, NumberCast, NumberLiteral, OrExpression, ProtocolInformationSecurityAttributesTypeEnum, Query, QueryFilter, QuerySelect, ReferableUtils_exports as ReferableUtils, ReferenceAttribute, ReferenceUtil_exports as ReferenceUtil, RegexComparison, RequiredError, ResponseError, SemanticIdUtils_exports as SemanticIdUtils, ServiceDescriptionUtils_exports as ServiceDescriptionUtils, StartsWithComparison, StringCast, StringLiteral, SubmodelDescriptor, SubmodelRegistryClient, SubmodelRegistryService_exports as SubmodelRegistryService, SubmodelRepositoryClient, SubmodelRepositoryService_exports as SubmodelRepositoryService, SubmodelService, TextApiResponse, TimeCast, TimeLiteral, utils_exports as Utils, VoidApiResponse, Year, applyDefaults, assetAdministrationShellDescriptorFromJsonable, base64Decode, base64Encode, canConsumeForm, checkIdShort, checkSemanticId, checkSemanticIdEclassIrdi, checkSemanticIdEclassIrdiUrl, checkSemanticIdIecCdd, checkSemanticIdIri, convertApiAasDescriptorToCoreAasDescriptor, convertApiAasToCoreAas, convertApiAssetIdToCoreAssetId, convertApiAssetInformationToCoreAssetInformation, convertApiCDToCoreCD, convertApiReferenceToCoreReference, convertApiSubmodelDescriptorToCoreSubmodelDescriptor, convertApiSubmodelElementToCoreSubmodelElement, convertApiSubmodelToCoreSubmodel, convertCoreAasDescriptorToApiAasDescriptor, convertCoreAasToApiAas, convertCoreAssetIdToApiAssetId, convertCoreAssetInformationToApiAssetInformation, convertCoreCDToApiCD, convertCoreReferenceToApiReference, convertCoreSubmodelDescriptorToApiSubmodelDescriptor, convertCoreSubmodelElementToApiSubmodelElement, convertCoreSubmodelToApiSubmodel, descriptionToDisplay, deserializeXml, endpointFromJsonable, exists, extractEndpointHref, extractId, extractVersionRevision, findEndpoint, firstLangStringSetText, getEquivalentEclassSemanticIds, getEquivalentIriSemanticIds, getKeyTypeAbbreviation, getQueryEndpoints, getSubmodelElementByIdShort, getSubmodelElementBySemanticId, getSubmodelElementsByIdShort, getSubmodelElementsBySemanticId, handleApiError, hasValue, isRepositoryEndpoint, keyTypes, nameToDisplay, protocolInformationFromJsonable, queryFromJsonable, querystring, serializeXml, submodelDescriptorFromJsonable, supportsQuery, toJsonableAssetAdministrationShellDescriptor, toJsonableEndpoint, toJsonableProtocolInformation, toJsonableQuery, toJsonableSecurityAttribute, toJsonableSubmodelDescriptor, valueToDisplay };
35771
37025
 
35772
37026
  //# sourceMappingURL=index.mjs.map