@viu/emporix-sdk 4.7.0 → 4.7.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
@@ -2310,6 +2310,12 @@ type AbstractSchemaResponse = {
2310
2310
  metadata?: SchemaMetadata;
2311
2311
  };
2312
2312
  type SchemaResponse = AbstractSchemaResponse & {
2313
+ /**
2314
+ * When `true`, custom instances or products that use this mixin may store per-site overlays under keys in the form `{mixinName}__{siteCode}`.
2315
+ * Historical schemas may omit the field (`null`), which behaves like `false`.
2316
+ *
2317
+ */
2318
+ siteAware?: boolean | null;
2313
2319
  /**
2314
2320
  * List of attributes related to the schema.
2315
2321
  */
@@ -2384,12 +2390,18 @@ type CustomInstanceCreation = {
2384
2390
  };
2385
2391
  owner?: CustomInstanceOwnerRequest;
2386
2392
  /**
2387
- * A key-value map of additional attributes.
2393
+ * Key-value map of mixin payloads. For site-aware schemas, include per-site overlays as additional keys in the form `{mixinName}__{siteCode}`.
2394
+ * Overlay values are validated against the base mixin JSON Schema.
2395
+ *
2388
2396
  */
2389
- mixins?: string;
2397
+ mixins?: {
2398
+ [key: string]: unknown;
2399
+ };
2390
2400
  metadata?: {
2391
2401
  /**
2392
- * A key-value map, where key is a mixin name and value is a link to the mixin schema.
2402
+ * Key-value map where each key is a base mixin name and each value is a link to the mixin schema.
2403
+ * Do not add `{mixinName}__{siteCode}` keys here. Site overlays reuse the base schema URL.
2404
+ *
2393
2405
  */
2394
2406
  mixins?: {
2395
2407
  [key: string]: unknown;
@@ -2405,16 +2417,22 @@ type CustomInstanceUpdate = {
2405
2417
  };
2406
2418
  owner?: CustomInstanceOwnerRequest;
2407
2419
  /**
2408
- * A key-value map of additional attributes.
2420
+ * Key-value map of mixin payloads. For site-aware schemas, include per-site overlays as additional keys in the form `{mixinName}__{siteCode}`.
2421
+ * Overlay values are validated against the base mixin JSON Schema.
2422
+ *
2409
2423
  */
2410
- mixins?: string;
2424
+ mixins?: {
2425
+ [key: string]: unknown;
2426
+ };
2411
2427
  metadata?: {
2412
2428
  /**
2413
2429
  * Version of the custom instance. If provided, it will be validated against the current entity version.
2414
2430
  */
2415
2431
  version?: number;
2416
2432
  /**
2417
- * A key-value map, where key is a mixin name and value is a link to the mixin schema.
2433
+ * Key-value map where each key is a base mixin name and each value is a link to the mixin schema.
2434
+ * Do not add `{mixinName}__{siteCode}` keys here. Site overlays reuse the base schema URL.
2435
+ *
2418
2436
  */
2419
2437
  mixins?: {
2420
2438
  [key: string]: unknown;
@@ -2472,9 +2490,13 @@ type CustomInstanceResponse = {
2472
2490
  type?: string;
2473
2491
  owner?: CustomInstanceOwner;
2474
2492
  /**
2475
- * A key-value map of additional attributes.
2493
+ * Key-value map of mixin payloads. Without `emporix-site`, base keys and `{mixinName}__{siteCode}` overlay keys are returned as stored.
2494
+ * With `emporix-site`, overlays for that site are deep-merged into the base keys and only the merged base keys are returned.
2495
+ *
2476
2496
  */
2477
- mixins?: string;
2497
+ mixins?: {
2498
+ [key: string]: unknown;
2499
+ };
2478
2500
  /**
2479
2501
  * List of media IDs assigned to the custom instance.
2480
2502
  */
package/dist/index.d.ts CHANGED
@@ -2310,6 +2310,12 @@ type AbstractSchemaResponse = {
2310
2310
  metadata?: SchemaMetadata;
2311
2311
  };
2312
2312
  type SchemaResponse = AbstractSchemaResponse & {
2313
+ /**
2314
+ * When `true`, custom instances or products that use this mixin may store per-site overlays under keys in the form `{mixinName}__{siteCode}`.
2315
+ * Historical schemas may omit the field (`null`), which behaves like `false`.
2316
+ *
2317
+ */
2318
+ siteAware?: boolean | null;
2313
2319
  /**
2314
2320
  * List of attributes related to the schema.
2315
2321
  */
@@ -2384,12 +2390,18 @@ type CustomInstanceCreation = {
2384
2390
  };
2385
2391
  owner?: CustomInstanceOwnerRequest;
2386
2392
  /**
2387
- * A key-value map of additional attributes.
2393
+ * Key-value map of mixin payloads. For site-aware schemas, include per-site overlays as additional keys in the form `{mixinName}__{siteCode}`.
2394
+ * Overlay values are validated against the base mixin JSON Schema.
2395
+ *
2388
2396
  */
2389
- mixins?: string;
2397
+ mixins?: {
2398
+ [key: string]: unknown;
2399
+ };
2390
2400
  metadata?: {
2391
2401
  /**
2392
- * A key-value map, where key is a mixin name and value is a link to the mixin schema.
2402
+ * Key-value map where each key is a base mixin name and each value is a link to the mixin schema.
2403
+ * Do not add `{mixinName}__{siteCode}` keys here. Site overlays reuse the base schema URL.
2404
+ *
2393
2405
  */
2394
2406
  mixins?: {
2395
2407
  [key: string]: unknown;
@@ -2405,16 +2417,22 @@ type CustomInstanceUpdate = {
2405
2417
  };
2406
2418
  owner?: CustomInstanceOwnerRequest;
2407
2419
  /**
2408
- * A key-value map of additional attributes.
2420
+ * Key-value map of mixin payloads. For site-aware schemas, include per-site overlays as additional keys in the form `{mixinName}__{siteCode}`.
2421
+ * Overlay values are validated against the base mixin JSON Schema.
2422
+ *
2409
2423
  */
2410
- mixins?: string;
2424
+ mixins?: {
2425
+ [key: string]: unknown;
2426
+ };
2411
2427
  metadata?: {
2412
2428
  /**
2413
2429
  * Version of the custom instance. If provided, it will be validated against the current entity version.
2414
2430
  */
2415
2431
  version?: number;
2416
2432
  /**
2417
- * A key-value map, where key is a mixin name and value is a link to the mixin schema.
2433
+ * Key-value map where each key is a base mixin name and each value is a link to the mixin schema.
2434
+ * Do not add `{mixinName}__{siteCode}` keys here. Site overlays reuse the base schema URL.
2435
+ *
2418
2436
  */
2419
2437
  mixins?: {
2420
2438
  [key: string]: unknown;
@@ -2472,9 +2490,13 @@ type CustomInstanceResponse = {
2472
2490
  type?: string;
2473
2491
  owner?: CustomInstanceOwner;
2474
2492
  /**
2475
- * A key-value map of additional attributes.
2493
+ * Key-value map of mixin payloads. Without `emporix-site`, base keys and `{mixinName}__{siteCode}` overlay keys are returned as stored.
2494
+ * With `emporix-site`, overlays for that site are deep-merged into the base keys and only the merged base keys are returned.
2495
+ *
2476
2496
  */
2477
- mixins?: string;
2497
+ mixins?: {
2498
+ [key: string]: unknown;
2499
+ };
2478
2500
  /**
2479
2501
  * List of media IDs assigned to the custom instance.
2480
2502
  */
package/dist/index.js CHANGED
@@ -948,7 +948,7 @@ var HttpClient = class {
948
948
  };
949
949
 
950
950
  // package.json
951
- var version = "4.7.0";
951
+ var version = "4.7.1";
952
952
 
953
953
  // src/version.ts
954
954
  var SDK_VERSION = version;