@viu/emporix-sdk 2.20.0 → 2.20.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.
package/dist/index.d.cts CHANGED
@@ -1385,18 +1385,6 @@ type CustomInstanceResponse = {
1385
1385
  media?: Array<string>;
1386
1386
  metadata?: CustomInstanceMetadata;
1387
1387
  };
1388
- type BulkPatchCustomInstanceRequest = {
1389
- /**
1390
- * Unique identifier of the custom instance to patch.
1391
- */
1392
- id: string;
1393
- /**
1394
- * List of patch operations to apply to the custom instance.
1395
- */
1396
- data: Array<{
1397
- [key: string]: unknown;
1398
- }>;
1399
- };
1400
1388
  type BulkResponse = Array<{
1401
1389
  /**
1402
1390
  * Index of the processed item, matching the item position in request body.
@@ -1421,6 +1409,16 @@ type BulkResponse = Array<{
1421
1409
  message?: string;
1422
1410
  }>;
1423
1411
  }>;
1412
+ type BulkPatchCustomInstanceRequest = {
1413
+ /**
1414
+ * Unique identifier of the custom instance to patch.
1415
+ */
1416
+ id: string;
1417
+ /**
1418
+ * List of patch operations to apply to the custom instance.
1419
+ */
1420
+ data: Array<PatchOperation$1>;
1421
+ };
1424
1422
  type CustomInstanceMetadata = {
1425
1423
  /**
1426
1424
  * Date and time when the object was created, compliant with the ISO 8601 standard. For example: `2022-03-31T09:52:15.423Z`
@@ -1441,6 +1439,26 @@ type CustomInstanceMetadata = {
1441
1439
  [key: string]: unknown;
1442
1440
  };
1443
1441
  };
1442
+ type PatchOperation$1 = {
1443
+ /**
1444
+ * Indicates an operation which should be done on a return. Available operations: `add` `remove` and `replace`
1445
+ */
1446
+ op: 'add' | 'remove' | 'replace';
1447
+ /**
1448
+ * Path to the field to update.
1449
+ *
1450
+ * Examples: `/name`, `/mixins/additionalAttributes/externalId`, `/mixins/additionalAttributes/careInstructions/1`.
1451
+ *
1452
+ * To append an item to an array mixin field (for example, a table row), use `add` with a path ending in `/-`. The `-` means append after the last element.
1453
+ */
1454
+ path: string;
1455
+ /**
1456
+ * Indicates a value that should be changed or added. The value can be of a primitive type, like string, number, boolean or it can be an object or an array.
1457
+ */
1458
+ value?: {
1459
+ [key: string]: unknown;
1460
+ } | string | number;
1461
+ };
1444
1462
 
1445
1463
  /** One item for {@link SchemaService.bulkPatchInstances} — `{ id, data: op[] }`. */
1446
1464
  type BulkPatchInstanceItem = BulkPatchCustomInstanceRequest;
package/dist/index.d.ts CHANGED
@@ -1385,18 +1385,6 @@ type CustomInstanceResponse = {
1385
1385
  media?: Array<string>;
1386
1386
  metadata?: CustomInstanceMetadata;
1387
1387
  };
1388
- type BulkPatchCustomInstanceRequest = {
1389
- /**
1390
- * Unique identifier of the custom instance to patch.
1391
- */
1392
- id: string;
1393
- /**
1394
- * List of patch operations to apply to the custom instance.
1395
- */
1396
- data: Array<{
1397
- [key: string]: unknown;
1398
- }>;
1399
- };
1400
1388
  type BulkResponse = Array<{
1401
1389
  /**
1402
1390
  * Index of the processed item, matching the item position in request body.
@@ -1421,6 +1409,16 @@ type BulkResponse = Array<{
1421
1409
  message?: string;
1422
1410
  }>;
1423
1411
  }>;
1412
+ type BulkPatchCustomInstanceRequest = {
1413
+ /**
1414
+ * Unique identifier of the custom instance to patch.
1415
+ */
1416
+ id: string;
1417
+ /**
1418
+ * List of patch operations to apply to the custom instance.
1419
+ */
1420
+ data: Array<PatchOperation$1>;
1421
+ };
1424
1422
  type CustomInstanceMetadata = {
1425
1423
  /**
1426
1424
  * Date and time when the object was created, compliant with the ISO 8601 standard. For example: `2022-03-31T09:52:15.423Z`
@@ -1441,6 +1439,26 @@ type CustomInstanceMetadata = {
1441
1439
  [key: string]: unknown;
1442
1440
  };
1443
1441
  };
1442
+ type PatchOperation$1 = {
1443
+ /**
1444
+ * Indicates an operation which should be done on a return. Available operations: `add` `remove` and `replace`
1445
+ */
1446
+ op: 'add' | 'remove' | 'replace';
1447
+ /**
1448
+ * Path to the field to update.
1449
+ *
1450
+ * Examples: `/name`, `/mixins/additionalAttributes/externalId`, `/mixins/additionalAttributes/careInstructions/1`.
1451
+ *
1452
+ * To append an item to an array mixin field (for example, a table row), use `add` with a path ending in `/-`. The `-` means append after the last element.
1453
+ */
1454
+ path: string;
1455
+ /**
1456
+ * Indicates a value that should be changed or added. The value can be of a primitive type, like string, number, boolean or it can be an object or an array.
1457
+ */
1458
+ value?: {
1459
+ [key: string]: unknown;
1460
+ } | string | number;
1461
+ };
1444
1462
 
1445
1463
  /** One item for {@link SchemaService.bulkPatchInstances} — `{ id, data: op[] }`. */
1446
1464
  type BulkPatchInstanceItem = BulkPatchCustomInstanceRequest;
package/dist/index.js CHANGED
@@ -591,7 +591,7 @@ var HttpClient = class {
591
591
  };
592
592
 
593
593
  // package.json
594
- var version = "2.20.0";
594
+ var version = "2.20.1";
595
595
 
596
596
  // src/version.ts
597
597
  var SDK_VERSION = version;