basyx-typescript-sdk 2.4.0 → 2.4.2

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.
package/bundle/index.cjs CHANGED
@@ -2672,7 +2672,6 @@ var SubmodelRepositoryAPIApi = class extends BaseAPI {
2672
2672
  * Asynchronously invokes an Operation at a specified path
2673
2673
  */
2674
2674
  async invokeOperationAsyncValueOnlyRaw(requestParameters, initOverrides) {
2675
- if (requestParameters["aasIdentifier"] == null) throw new RequiredError("aasIdentifier", "Required parameter \"aasIdentifier\" was null or undefined when calling invokeOperationAsyncValueOnly().");
2676
2675
  if (requestParameters["submodelIdentifier"] == null) throw new RequiredError("submodelIdentifier", "Required parameter \"submodelIdentifier\" was null or undefined when calling invokeOperationAsyncValueOnly().");
2677
2676
  if (requestParameters["idShortPath"] == null) throw new RequiredError("idShortPath", "Required parameter \"idShortPath\" was null or undefined when calling invokeOperationAsyncValueOnly().");
2678
2677
  if (requestParameters["operationRequestValueOnly"] == null) throw new RequiredError("operationRequestValueOnly", "Required parameter \"operationRequestValueOnly\" was null or undefined when calling invokeOperationAsyncValueOnly().");
@@ -2680,7 +2679,7 @@ var SubmodelRepositoryAPIApi = class extends BaseAPI {
2680
2679
  const headerParameters = {};
2681
2680
  headerParameters["Content-Type"] = "application/json";
2682
2681
  return new VoidApiResponse(await this.request({
2683
- 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"]))),
2682
+ path: `/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async/$value`.replace(`{submodelIdentifier}`, encodeURIComponent(String(requestParameters["submodelIdentifier"]))).replace(`{idShortPath}`, encodeURIComponent(String(requestParameters["idShortPath"]))),
2684
2683
  method: "POST",
2685
2684
  headers: headerParameters,
2686
2685
  query: queryParameters,
@@ -2721,7 +2720,6 @@ var SubmodelRepositoryAPIApi = class extends BaseAPI {
2721
2720
  * Synchronously invokes an Operation at a specified path
2722
2721
  */
2723
2722
  async invokeOperationValueOnlyRaw(requestParameters, initOverrides) {
2724
- if (requestParameters["aasIdentifier"] == null) throw new RequiredError("aasIdentifier", "Required parameter \"aasIdentifier\" was null or undefined when calling invokeOperationValueOnly().");
2725
2723
  if (requestParameters["submodelIdentifier"] == null) throw new RequiredError("submodelIdentifier", "Required parameter \"submodelIdentifier\" was null or undefined when calling invokeOperationValueOnly().");
2726
2724
  if (requestParameters["idShortPath"] == null) throw new RequiredError("idShortPath", "Required parameter \"idShortPath\" was null or undefined when calling invokeOperationValueOnly().");
2727
2725
  if (requestParameters["operationRequestValueOnly"] == null) throw new RequiredError("operationRequestValueOnly", "Required parameter \"operationRequestValueOnly\" was null or undefined when calling invokeOperationValueOnly().");
@@ -2729,7 +2727,7 @@ var SubmodelRepositoryAPIApi = class extends BaseAPI {
2729
2727
  const headerParameters = {};
2730
2728
  headerParameters["Content-Type"] = "application/json";
2731
2729
  return new JSONApiResponse(await this.request({
2732
- 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"]))),
2730
+ path: `/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke/$value`.replace(`{submodelIdentifier}`, encodeURIComponent(String(requestParameters["submodelIdentifier"]))).replace(`{idShortPath}`, encodeURIComponent(String(requestParameters["idShortPath"]))),
2733
2731
  method: "POST",
2734
2732
  headers: headerParameters,
2735
2733
  query: queryParameters,
@@ -7922,7 +7920,7 @@ function base64Decode$1(text) {
7922
7920
  *
7923
7921
  * @remarks
7924
7922
  * The value is an URI that can represent an absolute or relative path.
7925
- */ var File = class extends Class {
7923
+ */ var File$1 = class extends Class {
7926
7924
  /**
7927
7925
  * Indicate the runtime model type of the instance.
7928
7926
  */ modelType() {
@@ -11919,7 +11917,7 @@ const AS_DATA_ELEMENT_TRANSFORMER = new AsDataElementTransformer();
11919
11917
  * @param that - instance to be type-checked
11920
11918
  * @returns `true` if the type check is successful
11921
11919
  */ function isFile(that) {
11922
- return that instanceof File;
11920
+ return that instanceof File$1;
11923
11921
  }
11924
11922
  /**
11925
11923
  * Check the type of `that` instance.
@@ -17459,7 +17457,7 @@ function fileFromJsonable(jsonable) {
17459
17457
  }
17460
17458
  if (setter.modelType === null) return newDeserializationError("The required property 'modelType' is missing");
17461
17459
  else if (setter.modelType != "File") return newDeserializationError(`Expected model type 'File', but got: ${setter.modelType}`);
17462
- return new Either(new File(setter.extensions, setter.category, setter.idShort, setter.displayName, setter.description, setter.semanticId, setter.supplementalSemanticIds, setter.qualifiers, setter.embeddedDataSpecifications, setter.value, setter.contentType), null);
17460
+ return new Either(new File$1(setter.extensions, setter.category, setter.idShort, setter.displayName, setter.description, setter.semanticId, setter.supplementalSemanticIds, setter.qualifiers, setter.embeddedDataSpecifications, setter.value, setter.contentType), null);
17463
17461
  }
17464
17462
  /**
17465
17463
  * Provide de-serialize & set methods for properties
@@ -27998,6 +27996,53 @@ function convertCoreSubmodelElementToApiSubmodelElement(submodelElement) {
27998
27996
  return JSON.parse(submodelElementStr);
27999
27997
  }
28000
27998
  //#endregion
27999
+ //#region dist/lib/multipartFile.js
28000
+ /**
28001
+ * Names a file for a multipart upload, so that the name is sent as the `filename` parameter of the
28002
+ * file part's `Content-Disposition` header. AAS Part 2 V3.2 reads the file name only from there;
28003
+ * a plain `Blob` would otherwise be sent with the default name `blob`.
28004
+ *
28005
+ * @function withFileName
28006
+ * @param {Blob} file - The file content to upload.
28007
+ * @param {string} [fileName] - The requested file name. Without a name, the file is returned unchanged.
28008
+ * @returns {Blob} A `File` with the requested name and the content type of the given file.
28009
+ */
28010
+ function withFileName(file, fileName) {
28011
+ const name = fileName?.trim();
28012
+ if (!name) return file;
28013
+ if (file instanceof File && file.name === name) return file;
28014
+ return new File([file], name, { type: file.type });
28015
+ }
28016
+ //#endregion
28017
+ //#region dist/lib/operationHandle.js
28018
+ const OPERATION_STATUS_SEGMENT = /(?:^|\/)operation-status\/([^/?#]+)\/?(?:[?#].*)?$/;
28019
+ /**
28020
+ * Returns the handle of an asynchronously invoked Operation from the `Location` header of the `202 Accepted`
28021
+ * response, or `undefined` if the header is missing or does not point to an `operation-status` resource.
28022
+ *
28023
+ * The `Location` header may be absolute or a relative reference (RFC 9110, section 10.2.2), e.g.
28024
+ * `operation-status/{handleId}` relative to the invocation URL. It is returned unchanged. The handle id is
28025
+ * URL-decoded, so it can be passed to `getOperationAsyncStatus` and `getOperationAsyncResult` as is.
28026
+ */
28027
+ function getOperationHandle(response) {
28028
+ const headers = response?.headers;
28029
+ if (typeof headers?.get !== "function") return;
28030
+ const location = headers.get("Location");
28031
+ const encodedHandleId = location?.match(OPERATION_STATUS_SEGMENT)?.[1];
28032
+ if (location == null || encodedHandleId === void 0) return;
28033
+ try {
28034
+ return {
28035
+ handleId: decodeURIComponent(encodedHandleId),
28036
+ location
28037
+ };
28038
+ } catch {
28039
+ return {
28040
+ handleId: encodedHandleId,
28041
+ location
28042
+ };
28043
+ }
28044
+ }
28045
+ //#endregion
28001
28046
  //#region dist/clients/AasRepositoryClient.js
28002
28047
  var AasRepositoryClient = class AasRepositoryClient {
28003
28048
  static requireIdentifier(value, field) {
@@ -28465,7 +28510,7 @@ var AasRepositoryClient = class AasRepositoryClient {
28465
28510
  * @param options Object containing:
28466
28511
  * - configuration: The http request options
28467
28512
  * - aasIdentifier: The Asset Administration Shell’s unique id
28468
- * - fileName: The name of the file
28513
+ * - fileName: The name of the file, sent as filename of the file part and as `fileName` field
28469
28514
  * - file: The file to upload
28470
28515
  * - ifMatch?: Sent as `If-Match` header; the request fails with `preconditionFailed` if the resource has changed since the `etag` was issued
28471
28516
  * - ifNoneMatch?: Sent as `If-None-Match` header; use `*` to only create the resource (fails with `preconditionFailed` if it exists)
@@ -28483,7 +28528,7 @@ var AasRepositoryClient = class AasRepositoryClient {
28483
28528
  const response = await apiInstance.putThumbnailAasRepositoryRaw({
28484
28529
  aasIdentifier: encodedAasIdentifier,
28485
28530
  fileName,
28486
- file
28531
+ file: withFileName(file, fileName)
28487
28532
  });
28488
28533
  return {
28489
28534
  success: true,
@@ -29903,7 +29948,7 @@ var AasRepositoryClient = class AasRepositoryClient {
29903
29948
  * - aasIdentifier: The Asset Administration Shell’s unique id
29904
29949
  * - submodelIdentifier: The Submodel’s unique id
29905
29950
  * - idShortPath: IdShort path to the submodel element (dot-separated)
29906
- * - fileName: The name of the file
29951
+ * - fileName: The name of the file, sent as filename of the file part and as `fileName` field
29907
29952
  * - file: The file to upload
29908
29953
  * - ifMatch?: Sent as `If-Match` header; the request fails with `preconditionFailed` if the resource has changed since the `etag` was issued
29909
29954
  * - ifNoneMatch?: Sent as `If-None-Match` header; use `*` to only create the resource (fails with `preconditionFailed` if it exists)
@@ -29924,7 +29969,7 @@ var AasRepositoryClient = class AasRepositoryClient {
29924
29969
  submodelIdentifier: encodedSubmodelIdentifier,
29925
29970
  idShortPath,
29926
29971
  fileName,
29927
- file
29972
+ file: withFileName(file, fileName)
29928
29973
  });
29929
29974
  return {
29930
29975
  success: true,
@@ -30075,6 +30120,10 @@ var AasRepositoryClient = class AasRepositoryClient {
30075
30120
  * - ifMatch?: Sent as `If-Match` header; the request fails with `preconditionFailed` if the resource has changed since the `etag` was issued
30076
30121
  *
30077
30122
  * @returns Either `{ success: true; data: ... }` or `{ success: false; error: ... }`.
30123
+ * `data` is the handle of the invocation, taken from the `Location` header, for
30124
+ * `getOperationAsyncStatusAasRepository` and `getOperationAsyncResultAasRepository`. It is `undefined` if the server
30125
+ * sends no `Location` header or the client cannot read it (in browsers, the server must list `Location` in
30126
+ * `Access-Control-Expose-Headers`).
30078
30127
  */
30079
30128
  async invokeOperationAsyncAasRepository(options) {
30080
30129
  const { configuration, aasIdentifier, submodelIdentifier, idShortPath, operationRequest, ifMatch } = options;
@@ -30090,7 +30139,7 @@ var AasRepositoryClient = class AasRepositoryClient {
30090
30139
  });
30091
30140
  return {
30092
30141
  success: true,
30093
- data: await response.value(),
30142
+ data: getOperationHandle(response.raw),
30094
30143
  statusCode: response.raw.status,
30095
30144
  etag: getEtag(response.raw)
30096
30145
  };
@@ -30116,6 +30165,10 @@ var AasRepositoryClient = class AasRepositoryClient {
30116
30165
  * - ifMatch?: Sent as `If-Match` header; the request fails with `preconditionFailed` if the resource has changed since the `etag` was issued
30117
30166
  *
30118
30167
  * @returns Either `{ success: true; data: ... }` or `{ success: false; error: ... }`.
30168
+ * `data` is the handle of the invocation, taken from the `Location` header, for
30169
+ * `getOperationAsyncStatusAasRepository` and `getOperationAsyncResultAasRepository`. It is `undefined` if the server
30170
+ * sends no `Location` header or the client cannot read it (in browsers, the server must list `Location` in
30171
+ * `Access-Control-Expose-Headers`).
30119
30172
  */
30120
30173
  async invokeOperationAsyncValueOnlyAasRepository(options) {
30121
30174
  const { configuration, aasIdentifier, submodelIdentifier, idShortPath, operationRequestValueOnly, ifMatch } = options;
@@ -30131,7 +30184,7 @@ var AasRepositoryClient = class AasRepositoryClient {
30131
30184
  });
30132
30185
  return {
30133
30186
  success: true,
30134
- data: await response.value(),
30187
+ data: getOperationHandle(response.raw),
30135
30188
  statusCode: response.raw.status,
30136
30189
  etag: getEtag(response.raw)
30137
30190
  };
@@ -30397,7 +30450,7 @@ var AasxFileClient = class AasxFileClient {
30397
30450
  * - configuration: The http request options.
30398
30451
  * - aasIds?: A list of Asset Administration Shells' unique ids
30399
30452
  * - file: The file to upload
30400
- * - fileName: The name of the file
30453
+ * - fileName: The name of the file, sent as filename of the file part and as `fileName` field
30401
30454
  *
30402
30455
  * @returns Either `{ success: true; data: ... }` or `{ success: false; error: ... }`.
30403
30456
  */
@@ -30406,7 +30459,7 @@ var AasxFileClient = class AasxFileClient {
30406
30459
  try {
30407
30460
  const response = await new AASXFileServerAPIApi(applyDefaults(configuration)).postAASXPackageRaw({
30408
30461
  aasIds,
30409
- file,
30462
+ file: withFileName(file, fileName),
30410
30463
  fileName
30411
30464
  });
30412
30465
  return {
@@ -30467,7 +30520,7 @@ var AasxFileClient = class AasxFileClient {
30467
30520
  * - packageId: The package Id (UTF8-BASE64-URL-encoded)
30468
30521
  * - aasIds?: A list of Asset Administration Shells' unique ids
30469
30522
  * - file: The file to upload
30470
- * - fileName: The name of the file
30523
+ * - fileName: The name of the file, sent as filename of the file part and as `fileName` field
30471
30524
  * - ifMatch?: Sent as `If-Match` header; the request fails with `preconditionFailed` if the resource has changed since the `etag` was issued
30472
30525
  * - ifNoneMatch?: Sent as `If-None-Match` header; use `*` to only create the resource (fails with `preconditionFailed` if it exists)
30473
30526
  *
@@ -30484,7 +30537,7 @@ var AasxFileClient = class AasxFileClient {
30484
30537
  const response = await apiInstance.putAASXByPackageIdRaw({
30485
30538
  packageId: encodedPackageId,
30486
30539
  aasIds,
30487
- file,
30540
+ file: withFileName(file, fileName),
30488
30541
  fileName
30489
30542
  });
30490
30543
  return {
@@ -32572,7 +32625,7 @@ var SubmodelRepositoryClient = class SubmodelRepositoryClient {
32572
32625
  * - configuration: The http request options
32573
32626
  * - submodelIdentifier: The Submodel's unique id
32574
32627
  * - idShortPath: IdShort path to the submodel element (dot-separated)
32575
- * - fileName?: Name of the uploaded file
32628
+ * - fileName?: Name of the uploaded file, sent as filename of the file part and as `fileName` field
32576
32629
  * - file?: File content
32577
32630
  * - ifMatch?: Sent as `If-Match` header; the request fails with `preconditionFailed` if the resource has changed since the `etag` was issued
32578
32631
  * - ifNoneMatch?: Sent as `If-None-Match` header; use `*` to only create the resource (fails with `preconditionFailed` if it exists)
@@ -32591,7 +32644,7 @@ var SubmodelRepositoryClient = class SubmodelRepositoryClient {
32591
32644
  submodelIdentifier: encodedSubmodelIdentifier,
32592
32645
  idShortPath,
32593
32646
  fileName,
32594
- file
32647
+ file: file && withFileName(file, fileName)
32595
32648
  });
32596
32649
  return {
32597
32650
  success: true,
@@ -32689,7 +32742,6 @@ var SubmodelRepositoryClient = class SubmodelRepositoryClient {
32689
32742
  *
32690
32743
  * @param options Object containing:
32691
32744
  * - configuration: The http request options.
32692
- * - aasIdentifier: The Asset Administration Shell’s unique id (UTF8-BASE64-URL-encoded)
32693
32745
  * - submodelIdentifier: The Submodel’s unique id
32694
32746
  * - idShortPath: IdShort path to the submodel element (dot-separated)
32695
32747
  * - operationRequestValueOnly: Operation request object
@@ -32698,13 +32750,11 @@ var SubmodelRepositoryClient = class SubmodelRepositoryClient {
32698
32750
  * @returns Either `{ success: true; data: ... }` or `{ success: false; error: ... }`.
32699
32751
  */
32700
32752
  async postInvokeOperationValueOnly(options) {
32701
- const { configuration, aasIdentifier, submodelIdentifier, idShortPath, operationRequestValueOnly, ifMatch } = options;
32753
+ const { configuration, submodelIdentifier, idShortPath, operationRequestValueOnly, ifMatch } = options;
32702
32754
  try {
32703
32755
  const apiInstance = new SubmodelRepositoryAPIApi(applyDefaults(configuration, { ifMatch }));
32704
- const encodedAasIdentifier = base64Encode(SubmodelRepositoryClient.requireIdentifier(aasIdentifier, "aasIdentifier"));
32705
32756
  const encodedSubmodelIdentifier = base64Encode(SubmodelRepositoryClient.requireIdentifier(submodelIdentifier, "submodelIdentifier"));
32706
32757
  const response = await apiInstance.invokeOperationValueOnlyRaw({
32707
- aasIdentifier: encodedAasIdentifier,
32708
32758
  submodelIdentifier: encodedSubmodelIdentifier,
32709
32759
  idShortPath,
32710
32760
  operationRequestValueOnly
@@ -32736,6 +32786,9 @@ var SubmodelRepositoryClient = class SubmodelRepositoryClient {
32736
32786
  * - ifMatch?: Sent as `If-Match` header; the request fails with `preconditionFailed` if the resource has changed since the `etag` was issued
32737
32787
  *
32738
32788
  * @returns Either `{ success: true; data: ... }` or `{ success: false; error: ... }`.
32789
+ * `data` is the handle of the invocation, taken from the `Location` header, for `getOperationAsyncStatus` and
32790
+ * `getOperationAsyncResult`. It is `undefined` if the server sends no `Location` header or the client cannot read it
32791
+ * (in browsers, the server must list `Location` in `Access-Control-Expose-Headers`).
32739
32792
  */
32740
32793
  async postInvokeOperationAsync(options) {
32741
32794
  const { configuration, submodelIdentifier, idShortPath, operationRequest, ifMatch } = options;
@@ -32749,7 +32802,7 @@ var SubmodelRepositoryClient = class SubmodelRepositoryClient {
32749
32802
  });
32750
32803
  return {
32751
32804
  success: true,
32752
- data: await response.value(),
32805
+ data: getOperationHandle(response.raw),
32753
32806
  statusCode: response.raw.status,
32754
32807
  etag: getEtag(response.raw)
32755
32808
  };
@@ -32768,29 +32821,29 @@ var SubmodelRepositoryClient = class SubmodelRepositoryClient {
32768
32821
  *
32769
32822
  * @param options Object containing:
32770
32823
  * - configuration: The http request options.
32771
- * - aasIdentifier: The Asset Administration Shell’s unique id (UTF8-BASE64-URL-encoded)
32772
32824
  * - submodelIdentifier: The Submodel’s unique id
32773
32825
  * - idShortPath: IdShort path to the submodel element (dot-separated)
32774
32826
  * - operationRequestValueOnly: Operation request object
32775
32827
  * - ifMatch?: Sent as `If-Match` header; the request fails with `preconditionFailed` if the resource has changed since the `etag` was issued
32776
32828
  *
32777
32829
  * @returns Either `{ success: true; data: ... }` or `{ success: false; error: ... }`.
32830
+ * `data` is the handle of the invocation, taken from the `Location` header, for `getOperationAsyncStatus` and
32831
+ * `getOperationAsyncResult`. It is `undefined` if the server sends no `Location` header or the client cannot read it
32832
+ * (in browsers, the server must list `Location` in `Access-Control-Expose-Headers`).
32778
32833
  */
32779
32834
  async postInvokeOperationAsyncValueOnly(options) {
32780
- const { configuration, aasIdentifier, submodelIdentifier, idShortPath, operationRequestValueOnly, ifMatch } = options;
32835
+ const { configuration, submodelIdentifier, idShortPath, operationRequestValueOnly, ifMatch } = options;
32781
32836
  try {
32782
32837
  const apiInstance = new SubmodelRepositoryAPIApi(applyDefaults(configuration, { ifMatch }));
32783
- const encodedAasIdentifier = base64Encode(SubmodelRepositoryClient.requireIdentifier(aasIdentifier, "aasIdentifier"));
32784
32838
  const encodedSubmodelIdentifier = base64Encode(SubmodelRepositoryClient.requireIdentifier(submodelIdentifier, "submodelIdentifier"));
32785
32839
  const response = await apiInstance.invokeOperationAsyncValueOnlyRaw({
32786
- aasIdentifier: encodedAasIdentifier,
32787
32840
  submodelIdentifier: encodedSubmodelIdentifier,
32788
32841
  idShortPath,
32789
32842
  operationRequestValueOnly
32790
32843
  });
32791
32844
  return {
32792
32845
  success: true,
32793
- data: await response.value(),
32846
+ data: getOperationHandle(response.raw),
32794
32847
  statusCode: response.raw.status,
32795
32848
  etag: getEtag(response.raw)
32796
32849
  };
@@ -36216,7 +36269,7 @@ function parseBlob(data) {
36216
36269
  return new Blob$1(data.extensions?.extension ? data.extensions.extension.map(parseExtension) : void 0, data.category || void 0, data.idShort || void 0, data.displayName?.langStringNameType ? data.displayName.langStringNameType.map(parseLangStringNameType) : void 0, data.description?.langStringTextType ? data.description.langStringTextType.map(parseLangStringTextType) : void 0, data.semanticId ? parseReference(data.semanticId) : void 0, data.supplementalSemanticIds?.reference ? data.supplementalSemanticIds.reference.map(parseReference) : void 0, data.qualifiers?.qualifier ? data.qualifiers.qualifier.map(parseQualifier) : void 0, data.embeddedDataSpecifications?.embeddedDataSpecification ? data.embeddedDataSpecifications.embeddedDataSpecification.map(parseEmbeddedDataSpecification) : void 0, data.value || void 0, data.contentType);
36217
36270
  }
36218
36271
  function parseFile(data) {
36219
- return new File(data.extensions?.extension ? data.extensions.extension.map(parseExtension) : void 0, data.category || void 0, data.idShort || void 0, data.displayName?.langStringNameType ? data.displayName.langStringNameType.map(parseLangStringNameType) : void 0, data.description?.langStringTextType ? data.description.langStringTextType.map(parseLangStringTextType) : void 0, data.semanticId ? parseReference(data.semanticId) : void 0, data.supplementalSemanticIds?.reference ? data.supplementalSemanticIds.reference.map(parseReference) : void 0, data.qualifiers?.qualifier ? data.qualifiers.qualifier.map(parseQualifier) : void 0, data.embeddedDataSpecifications?.embeddedDataSpecification ? data.embeddedDataSpecifications.embeddedDataSpecification.map(parseEmbeddedDataSpecification) : void 0, data.value || void 0, data.contentType);
36272
+ return new File$1(data.extensions?.extension ? data.extensions.extension.map(parseExtension) : void 0, data.category || void 0, data.idShort || void 0, data.displayName?.langStringNameType ? data.displayName.langStringNameType.map(parseLangStringNameType) : void 0, data.description?.langStringTextType ? data.description.langStringTextType.map(parseLangStringTextType) : void 0, data.semanticId ? parseReference(data.semanticId) : void 0, data.supplementalSemanticIds?.reference ? data.supplementalSemanticIds.reference.map(parseReference) : void 0, data.qualifiers?.qualifier ? data.qualifiers.qualifier.map(parseQualifier) : void 0, data.embeddedDataSpecifications?.embeddedDataSpecification ? data.embeddedDataSpecifications.embeddedDataSpecification.map(parseEmbeddedDataSpecification) : void 0, data.value || void 0, data.contentType);
36220
36273
  }
36221
36274
  function parseEntity(data) {
36222
36275
  const entityType = data.entityType ? entityTypeFromJsonable(data.entityType).value ?? data.entityType : void 0;