basyx-typescript-sdk 2.3.1 → 2.4.1

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 (64) hide show
  1. package/README.md +68 -1
  2. package/bundle/index.cjs +1463 -105
  3. package/bundle/index.cjs.map +1 -1
  4. package/bundle/index.mjs +1395 -106
  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 +31 -3
  9. package/dist/clients/AasRepositoryClient.js +61 -4
  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 +33 -7
  15. package/dist/clients/SubmodelRepositoryClient.js +61 -12
  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 -3
  33. package/dist/generated/SubmodelRepositoryService/apis/SubmodelRepositoryAPIApi.js +31 -8
  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/operationHandle.d.ts +10 -0
  41. package/dist/lib/operationHandle.js +26 -0
  42. package/dist/lib/queryJsonization.d.ts +17 -0
  43. package/dist/lib/queryJsonization.js +309 -0
  44. package/dist/lib/queryRequests.d.ts +24 -0
  45. package/dist/lib/queryRequests.js +44 -0
  46. package/dist/models/Query.d.ts +378 -0
  47. package/dist/models/Query.js +430 -0
  48. package/dist/models/QueryResult.d.ts +22 -0
  49. package/dist/models/QueryResult.js +1 -0
  50. package/dist/models/api.d.ts +10 -0
  51. package/dist/models/index.d.ts +2 -0
  52. package/dist/models/index.js +2 -0
  53. package/dist/services/AasService.d.ts +15 -4
  54. package/dist/services/AasService.js +38 -40
  55. package/dist/services/SubmodelService.d.ts +9 -8
  56. package/dist/services/SubmodelService.js +17 -34
  57. package/dist/services/index.d.ts +1 -0
  58. package/dist/utils/DescriptorUtils.d.ts +27 -1
  59. package/dist/utils/DescriptorUtils.js +65 -27
  60. package/dist/utils/ServiceDescriptionUtils.d.ts +30 -0
  61. package/dist/utils/ServiceDescriptionUtils.js +43 -0
  62. package/dist/utils/index.d.ts +2 -0
  63. package/dist/utils/index.js +2 -0
  64. package/package.json +1 -1
@@ -568,6 +568,182 @@ export interface LevelType {
568
568
  */
569
569
  max: boolean;
570
570
  }
571
+ /**
572
+ *
573
+ * @export
574
+ * @interface LogicalExpression
575
+ */
576
+ export interface LogicalExpression {
577
+ /**
578
+ *
579
+ * @type {Array<LogicalExpression>}
580
+ * @memberof LogicalExpression
581
+ */
582
+ $and?: Array<LogicalExpression>;
583
+ /**
584
+ *
585
+ * @type {Array<MatchExpression>}
586
+ * @memberof LogicalExpression
587
+ */
588
+ $match?: Array<MatchExpression>;
589
+ /**
590
+ *
591
+ * @type {Array<LogicalExpression>}
592
+ * @memberof LogicalExpression
593
+ */
594
+ $or?: Array<LogicalExpression>;
595
+ /**
596
+ *
597
+ * @type {LogicalExpression}
598
+ * @memberof LogicalExpression
599
+ */
600
+ $not?: LogicalExpression | null;
601
+ /**
602
+ *
603
+ * @type {Array<Value>}
604
+ * @memberof LogicalExpression
605
+ */
606
+ $eq?: Array<Value>;
607
+ /**
608
+ *
609
+ * @type {Array<Value>}
610
+ * @memberof LogicalExpression
611
+ */
612
+ $ne?: Array<Value>;
613
+ /**
614
+ *
615
+ * @type {Array<Value>}
616
+ * @memberof LogicalExpression
617
+ */
618
+ $gt?: Array<Value>;
619
+ /**
620
+ *
621
+ * @type {Array<Value>}
622
+ * @memberof LogicalExpression
623
+ */
624
+ $ge?: Array<Value>;
625
+ /**
626
+ *
627
+ * @type {Array<Value>}
628
+ * @memberof LogicalExpression
629
+ */
630
+ $lt?: Array<Value>;
631
+ /**
632
+ *
633
+ * @type {Array<Value>}
634
+ * @memberof LogicalExpression
635
+ */
636
+ $le?: Array<Value>;
637
+ /**
638
+ *
639
+ * @type {Array<StringValue>}
640
+ * @memberof LogicalExpression
641
+ */
642
+ $contains?: Array<StringValue>;
643
+ /**
644
+ *
645
+ * @type {Array<StringValue>}
646
+ * @memberof LogicalExpression
647
+ */
648
+ '$starts-with'?: Array<StringValue>;
649
+ /**
650
+ *
651
+ * @type {Array<StringValue>}
652
+ * @memberof LogicalExpression
653
+ */
654
+ '$ends-with'?: Array<StringValue>;
655
+ /**
656
+ *
657
+ * @type {Array<StringValue>}
658
+ * @memberof LogicalExpression
659
+ */
660
+ $regex?: Array<StringValue>;
661
+ /**
662
+ *
663
+ * @type {boolean}
664
+ * @memberof LogicalExpression
665
+ */
666
+ $boolean?: boolean;
667
+ }
668
+ /**
669
+ *
670
+ * @export
671
+ * @interface MatchExpression
672
+ */
673
+ export interface MatchExpression {
674
+ /**
675
+ *
676
+ * @type {Array<MatchExpression>}
677
+ * @memberof MatchExpression
678
+ */
679
+ $match?: Array<MatchExpression>;
680
+ /**
681
+ *
682
+ * @type {Array<Value>}
683
+ * @memberof MatchExpression
684
+ */
685
+ $eq?: Array<Value>;
686
+ /**
687
+ *
688
+ * @type {Array<Value>}
689
+ * @memberof MatchExpression
690
+ */
691
+ $ne?: Array<Value>;
692
+ /**
693
+ *
694
+ * @type {Array<Value>}
695
+ * @memberof MatchExpression
696
+ */
697
+ $gt?: Array<Value>;
698
+ /**
699
+ *
700
+ * @type {Array<Value>}
701
+ * @memberof MatchExpression
702
+ */
703
+ $ge?: Array<Value>;
704
+ /**
705
+ *
706
+ * @type {Array<Value>}
707
+ * @memberof MatchExpression
708
+ */
709
+ $lt?: Array<Value>;
710
+ /**
711
+ *
712
+ * @type {Array<Value>}
713
+ * @memberof MatchExpression
714
+ */
715
+ $le?: Array<Value>;
716
+ /**
717
+ *
718
+ * @type {Array<StringValue>}
719
+ * @memberof MatchExpression
720
+ */
721
+ $contains?: Array<StringValue>;
722
+ /**
723
+ *
724
+ * @type {Array<StringValue>}
725
+ * @memberof MatchExpression
726
+ */
727
+ '$starts-with'?: Array<StringValue>;
728
+ /**
729
+ *
730
+ * @type {Array<StringValue>}
731
+ * @memberof MatchExpression
732
+ */
733
+ '$ends-with'?: Array<StringValue>;
734
+ /**
735
+ *
736
+ * @type {Array<StringValue>}
737
+ * @memberof MatchExpression
738
+ */
739
+ $regex?: Array<StringValue>;
740
+ /**
741
+ *
742
+ * @type {boolean}
743
+ * @memberof MatchExpression
744
+ */
745
+ $boolean?: boolean;
746
+ }
571
747
  /**
572
748
  *
573
749
  * @export
@@ -750,6 +926,77 @@ export declare const ProtocolInformationSecurityAttributesTypeEnum: {
750
926
  readonly W3CDid: "W3C_DID";
751
927
  };
752
928
  export type ProtocolInformationSecurityAttributesTypeEnum = typeof ProtocolInformationSecurityAttributesTypeEnum[keyof typeof ProtocolInformationSecurityAttributesTypeEnum];
929
+ /**
930
+ *
931
+ * @export
932
+ * @interface Query
933
+ */
934
+ export interface Query {
935
+ /**
936
+ *
937
+ * @type {string}
938
+ * @memberof Query
939
+ */
940
+ $select?: string;
941
+ /**
942
+ *
943
+ * @type {LogicalExpression}
944
+ * @memberof Query
945
+ */
946
+ $condition: LogicalExpression | null;
947
+ }
948
+ /**
949
+ *
950
+ * @export
951
+ * @interface QueryResultSubmodelDescriptor
952
+ */
953
+ export interface QueryResultSubmodelDescriptor {
954
+ /**
955
+ *
956
+ * @type {QueryResultSubmodelDescriptorPagingMetadata}
957
+ * @memberof QueryResultSubmodelDescriptor
958
+ */
959
+ paging_metadata: QueryResultSubmodelDescriptorPagingMetadata;
960
+ /**
961
+ *
962
+ * @type {Array<QueryResultSubmodelDescriptorResultInner>}
963
+ * @memberof QueryResultSubmodelDescriptor
964
+ */
965
+ result?: Array<QueryResultSubmodelDescriptorResultInner>;
966
+ }
967
+ /**
968
+ *
969
+ * @export
970
+ * @interface QueryResultSubmodelDescriptorPagingMetadata
971
+ */
972
+ export interface QueryResultSubmodelDescriptorPagingMetadata {
973
+ /**
974
+ *
975
+ * @type {string}
976
+ * @memberof QueryResultSubmodelDescriptorPagingMetadata
977
+ */
978
+ cursor?: string;
979
+ /**
980
+ *
981
+ * @type {string}
982
+ * @memberof QueryResultSubmodelDescriptorPagingMetadata
983
+ */
984
+ resultType?: QueryResultSubmodelDescriptorPagingMetadataResultTypeEnum;
985
+ }
986
+ /**
987
+ * @export
988
+ */
989
+ export declare const QueryResultSubmodelDescriptorPagingMetadataResultTypeEnum: {
990
+ readonly SubmodelDescriptor: "SubmodelDescriptor";
991
+ readonly Identifier: "Identifier";
992
+ };
993
+ export type QueryResultSubmodelDescriptorPagingMetadataResultTypeEnum = typeof QueryResultSubmodelDescriptorPagingMetadataResultTypeEnum[keyof typeof QueryResultSubmodelDescriptorPagingMetadataResultTypeEnum];
994
+ /**
995
+ * @type QueryResultSubmodelDescriptorResultInner
996
+ *
997
+ * @export
998
+ */
999
+ export type QueryResultSubmodelDescriptorResultInner = SubmodelDescriptor | string;
753
1000
  /**
754
1001
  *
755
1002
  * @export
@@ -829,6 +1076,31 @@ export interface ServiceDescription {
829
1076
  */
830
1077
  profiles?: Array<string>;
831
1078
  }
1079
+ /**
1080
+ *
1081
+ * @export
1082
+ * @interface StringValue
1083
+ */
1084
+ export interface StringValue {
1085
+ /**
1086
+ *
1087
+ * @type {string}
1088
+ * @memberof StringValue
1089
+ */
1090
+ $field?: string;
1091
+ /**
1092
+ *
1093
+ * @type {string}
1094
+ * @memberof StringValue
1095
+ */
1096
+ $strVal?: string;
1097
+ /**
1098
+ *
1099
+ * @type {Value}
1100
+ * @memberof StringValue
1101
+ */
1102
+ $strCast?: Value | null;
1103
+ }
832
1104
  /**
833
1105
  *
834
1106
  * @export
@@ -890,6 +1162,115 @@ export interface SubmodelDescriptor {
890
1162
  */
891
1163
  extensions?: Array<Extension>;
892
1164
  }
1165
+ /**
1166
+ *
1167
+ * @export
1168
+ * @interface Value
1169
+ */
1170
+ export interface Value {
1171
+ /**
1172
+ *
1173
+ * @type {string}
1174
+ * @memberof Value
1175
+ */
1176
+ $field?: string;
1177
+ /**
1178
+ *
1179
+ * @type {string}
1180
+ * @memberof Value
1181
+ */
1182
+ $strVal?: string;
1183
+ /**
1184
+ *
1185
+ * @type {number}
1186
+ * @memberof Value
1187
+ */
1188
+ $numVal?: number;
1189
+ /**
1190
+ *
1191
+ * @type {string}
1192
+ * @memberof Value
1193
+ */
1194
+ $hexVal?: string;
1195
+ /**
1196
+ *
1197
+ * @type {string}
1198
+ * @memberof Value
1199
+ */
1200
+ $dateTimeVal?: string;
1201
+ /**
1202
+ *
1203
+ * @type {string}
1204
+ * @memberof Value
1205
+ */
1206
+ $timeVal?: string;
1207
+ /**
1208
+ *
1209
+ * @type {boolean}
1210
+ * @memberof Value
1211
+ */
1212
+ $boolean?: boolean;
1213
+ /**
1214
+ *
1215
+ * @type {Value}
1216
+ * @memberof Value
1217
+ */
1218
+ $strCast?: Value | null;
1219
+ /**
1220
+ *
1221
+ * @type {Value}
1222
+ * @memberof Value
1223
+ */
1224
+ $numCast?: Value | null;
1225
+ /**
1226
+ *
1227
+ * @type {Value}
1228
+ * @memberof Value
1229
+ */
1230
+ $hexCast?: Value | null;
1231
+ /**
1232
+ *
1233
+ * @type {Value}
1234
+ * @memberof Value
1235
+ */
1236
+ $boolCast?: Value | null;
1237
+ /**
1238
+ *
1239
+ * @type {Value}
1240
+ * @memberof Value
1241
+ */
1242
+ $dateTimeCast?: Value | null;
1243
+ /**
1244
+ *
1245
+ * @type {Value}
1246
+ * @memberof Value
1247
+ */
1248
+ $timeCast?: Value | null;
1249
+ /**
1250
+ *
1251
+ * @type {string}
1252
+ * @memberof Value
1253
+ */
1254
+ $dayOfWeek?: string;
1255
+ /**
1256
+ *
1257
+ * @type {string}
1258
+ * @memberof Value
1259
+ */
1260
+ $dayOfMonth?: string;
1261
+ /**
1262
+ *
1263
+ * @type {string}
1264
+ * @memberof Value
1265
+ */
1266
+ $month?: string;
1267
+ /**
1268
+ *
1269
+ * @type {string}
1270
+ * @memberof Value
1271
+ */
1272
+ $year?: string;
1273
+ }
893
1274
  /**
894
1275
  *
895
1276
  * @export
@@ -131,6 +131,13 @@ export const ProtocolInformationSecurityAttributesTypeEnum = {
131
131
  RfcTlsa: 'RFC_TLSA',
132
132
  W3CDid: 'W3C_DID'
133
133
  };
134
+ /**
135
+ * @export
136
+ */
137
+ export const QueryResultSubmodelDescriptorPagingMetadataResultTypeEnum = {
138
+ SubmodelDescriptor: 'SubmodelDescriptor',
139
+ Identifier: 'Identifier'
140
+ };
134
141
  /**
135
142
  *
136
143
  * @export
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../../runtime';
13
- import type { BaseOperationResult, GetPathItemsResult, GetReferencesResult, GetSubmodelElementsMetadataResult, GetSubmodelElementsResult, GetSubmodelElementsValueResult, GetSubmodelsMetadataResult, GetSubmodelsResult, GetSubmodelsValueResult, OperationRequest, OperationRequestValueOnly, OperationResult, OperationResultValueOnly, Reference, Submodel, SubmodelElement, SubmodelElementMetadata, SubmodelElementValue, SubmodelMetadata } from '../models/index';
13
+ import type { BaseOperationResult, GetPathItemsResult, GetReferencesResult, GetSubmodelElementsMetadataResult, GetSubmodelElementsResult, GetSubmodelElementsValueResult, GetSubmodelsMetadataResult, GetSubmodelsResult, GetSubmodelsValueResult, OperationRequest, OperationRequestValueOnly, OperationResult, OperationResultValueOnly, Query, QueryResultSubmodel, Reference, Submodel, SubmodelElement, SubmodelElementMetadata, SubmodelElementValue, SubmodelMetadata } from '../models/index';
14
14
  export interface DeleteFileByPathSubmodelRepoRequest {
15
15
  submodelIdentifier: string;
16
16
  idShortPath: string;
@@ -159,7 +159,6 @@ export interface InvokeOperationAsyncRequest {
159
159
  operationRequest: OperationRequest;
160
160
  }
161
161
  export interface InvokeOperationAsyncValueOnlyRequest {
162
- aasIdentifier: string;
163
162
  submodelIdentifier: string;
164
163
  idShortPath: string;
165
164
  operationRequestValueOnly: OperationRequestValueOnly;
@@ -170,7 +169,6 @@ export interface InvokeOperationSubmodelRepoRequest {
170
169
  operationRequest: OperationRequest;
171
170
  }
172
171
  export interface InvokeOperationValueOnlyRequest {
173
- aasIdentifier: string;
174
172
  submodelIdentifier: string;
175
173
  idShortPath: string;
176
174
  operationRequestValueOnly: OperationRequestValueOnly;
@@ -235,6 +233,11 @@ export interface PutSubmodelElementByPathSubmodelRepoRequest {
235
233
  submodelElement: SubmodelElement;
236
234
  level?: PutSubmodelElementByPathSubmodelRepoLevelEnum;
237
235
  }
236
+ export interface QuerySubmodelsRequest {
237
+ limit?: number;
238
+ cursor?: string;
239
+ query?: Query;
240
+ }
238
241
  /**
239
242
  *
240
243
  */
@@ -583,6 +586,14 @@ export declare class SubmodelRepositoryAPIApi extends runtime.BaseAPI {
583
586
  * Creates or updates an existing submodel element at a specified path within submodel elements hierarchy
584
587
  */
585
588
  putSubmodelElementByPathSubmodelRepo(requestParameters: PutSubmodelElementByPathSubmodelRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubmodelElement | null | undefined>;
589
+ /**
590
+ * Returns all Submodels that confirm to the input query
591
+ */
592
+ querySubmodelsRaw(requestParameters: QuerySubmodelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<QueryResultSubmodel>>;
593
+ /**
594
+ * Returns all Submodels that confirm to the input query
595
+ */
596
+ querySubmodels(requestParameters?: QuerySubmodelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<QueryResultSubmodel>;
586
597
  }
587
598
  /**
588
599
  * @export
@@ -879,9 +879,6 @@ export class SubmodelRepositoryAPIApi extends runtime.BaseAPI {
879
879
  * Asynchronously invokes an Operation at a specified path
880
880
  */
881
881
  async invokeOperationAsyncValueOnlyRaw(requestParameters, initOverrides) {
882
- if (requestParameters['aasIdentifier'] == null) {
883
- throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling invokeOperationAsyncValueOnly().');
884
- }
885
882
  if (requestParameters['submodelIdentifier'] == null) {
886
883
  throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling invokeOperationAsyncValueOnly().');
887
884
  }
@@ -895,7 +892,7 @@ export class SubmodelRepositoryAPIApi extends runtime.BaseAPI {
895
892
  const headerParameters = {};
896
893
  headerParameters['Content-Type'] = 'application/json';
897
894
  const response = await this.request({
898
- path: `/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async/$value`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
895
+ path: `/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async/$value`.replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
899
896
  method: 'POST',
900
897
  headers: headerParameters,
901
898
  query: queryParameters,
@@ -945,9 +942,6 @@ export class SubmodelRepositoryAPIApi extends runtime.BaseAPI {
945
942
  * Synchronously invokes an Operation at a specified path
946
943
  */
947
944
  async invokeOperationValueOnlyRaw(requestParameters, initOverrides) {
948
- if (requestParameters['aasIdentifier'] == null) {
949
- throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling invokeOperationValueOnly().');
950
- }
951
945
  if (requestParameters['submodelIdentifier'] == null) {
952
946
  throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling invokeOperationValueOnly().');
953
947
  }
@@ -961,7 +955,7 @@ export class SubmodelRepositoryAPIApi extends runtime.BaseAPI {
961
955
  const headerParameters = {};
962
956
  headerParameters['Content-Type'] = 'application/json';
963
957
  const response = await this.request({
964
- path: `/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke/$value`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
958
+ path: `/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke/$value`.replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
965
959
  method: 'POST',
966
960
  headers: headerParameters,
967
961
  query: queryParameters,
@@ -1381,6 +1375,35 @@ export class SubmodelRepositoryAPIApi extends runtime.BaseAPI {
1381
1375
  return await response.value();
1382
1376
  }
1383
1377
  }
1378
+ /**
1379
+ * Returns all Submodels that confirm to the input query
1380
+ */
1381
+ async querySubmodelsRaw(requestParameters, initOverrides) {
1382
+ const queryParameters = {};
1383
+ if (requestParameters['limit'] != null) {
1384
+ queryParameters['limit'] = requestParameters['limit'];
1385
+ }
1386
+ if (requestParameters['cursor'] != null) {
1387
+ queryParameters['cursor'] = requestParameters['cursor'];
1388
+ }
1389
+ const headerParameters = {};
1390
+ headerParameters['Content-Type'] = 'application/json';
1391
+ const response = await this.request({
1392
+ path: `/query/submodels`,
1393
+ method: 'POST',
1394
+ headers: headerParameters,
1395
+ query: queryParameters,
1396
+ body: requestParameters['query'],
1397
+ }, initOverrides);
1398
+ return new runtime.JSONApiResponse(response);
1399
+ }
1400
+ /**
1401
+ * Returns all Submodels that confirm to the input query
1402
+ */
1403
+ async querySubmodels(requestParameters = {}, initOverrides) {
1404
+ const response = await this.querySubmodelsRaw(requestParameters, initOverrides);
1405
+ return await response.value();
1406
+ }
1384
1407
  }
1385
1408
  /**
1386
1409
  * @export