@viu/emporix-sdk 4.7.0 → 4.7.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/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
  */
@@ -4918,7 +4940,7 @@ type TaxClass = {
4918
4940
  *
4919
4941
  * * If the `Content-Language` header is set to `*`, then the name should be provided as a map of translations, where each key is a language code and the value is the name in its respective language.
4920
4942
  * * If the `Content-Language` header is set to a specific language, the name should be provided as a string.
4921
- * * If the `Content-Language` header is empty, the endpoint will asume that the name is provided in the default language defined in the Configuration Service.
4943
+ * * If the `Content-Language` header is empty, the endpoint will assume that the name is provided in the default language defined in the Configuration Service.
4922
4944
  *
4923
4945
  * **Note**: You can provide the names only in languages defined in the Configuration Service. In case the name is provided in a language that is not defined in the Configuration Service, the request will be rejected.
4924
4946
  */
@@ -4930,7 +4952,7 @@ type TaxClass = {
4930
4952
  *
4931
4953
  * * If the `Content-Language` header is set to `*`, then the description should be provided as a map of translations, where each key is a language code and the value is the description in its respective language.
4932
4954
  * * If the `Content-Language` header is set to a specific language, the description should be provided as a string.
4933
- * * If the `Content-Language` header is empty, the endpoint will asume that the description is provided in the default language defined in the Configuration Service.
4955
+ * * If the `Content-Language` header is empty, the endpoint will assume that the description is provided in the default language defined in the Configuration Service.
4934
4956
  *
4935
4957
  * **Note**: You can provide the descriptions only in languages defined in the Configuration Service. In case the description is provided in a language that is not defined in the Configuration Service, the request will be rejected.
4936
4958
  */
@@ -4948,7 +4970,7 @@ type TaxClass = {
4948
4970
  */
4949
4971
  rate: number;
4950
4972
  /**
4951
- * Indicates that the tax class is a default tax class for the tax configuration. Only one tax class can be marked as a default for a particular tax configuration.
4973
+ * Indicates whether the tax class is the default tax class for the tax configuration. Only one tax class can be marked as default for a particular tax configuration.
4952
4974
  */
4953
4975
  isDefault?: boolean;
4954
4976
  };
@@ -4957,7 +4979,7 @@ type TaxClass = {
4957
4979
  */
4958
4980
  type TaxCreationResponse = {
4959
4981
  /**
4960
- * Code of country for which the tax configuration has been created.
4982
+ * Code of the country for which the tax configuration has been created.
4961
4983
  */
4962
4984
  locationCode?: string;
4963
4985
  };
@@ -5004,7 +5026,7 @@ type TaxCalculationRequest = {
5004
5026
  /**
5005
5027
  * Original price value.
5006
5028
  *
5007
- * This field should contain by a number where the cent part is separated by a dot sign - such as `12.99`.
5029
+ * This field must contain a number where the cent part is separated by a dot — for example `12.99`.
5008
5030
  *
5009
5031
  * **Note**: The cent part of the price is not limited to two digits. You can specify the price with any precision.
5010
5032
  */
@@ -5041,8 +5063,8 @@ type TaxCalculationResponse = {
5041
5063
  *
5042
5064
  * | Value | Description |
5043
5065
  * | --- | --- |
5044
- * | `true` | Prices will be expressed as gross values. |
5045
- * | `false` | Prices will be expressed as net values. |
5066
+ * | `true` | Prices are expressed as gross values. |
5067
+ * | `false` | Prices are expressed as net values. |
5046
5068
  */
5047
5069
  includesTax?: boolean;
5048
5070
  /**
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
  */
@@ -4918,7 +4940,7 @@ type TaxClass = {
4918
4940
  *
4919
4941
  * * If the `Content-Language` header is set to `*`, then the name should be provided as a map of translations, where each key is a language code and the value is the name in its respective language.
4920
4942
  * * If the `Content-Language` header is set to a specific language, the name should be provided as a string.
4921
- * * If the `Content-Language` header is empty, the endpoint will asume that the name is provided in the default language defined in the Configuration Service.
4943
+ * * If the `Content-Language` header is empty, the endpoint will assume that the name is provided in the default language defined in the Configuration Service.
4922
4944
  *
4923
4945
  * **Note**: You can provide the names only in languages defined in the Configuration Service. In case the name is provided in a language that is not defined in the Configuration Service, the request will be rejected.
4924
4946
  */
@@ -4930,7 +4952,7 @@ type TaxClass = {
4930
4952
  *
4931
4953
  * * If the `Content-Language` header is set to `*`, then the description should be provided as a map of translations, where each key is a language code and the value is the description in its respective language.
4932
4954
  * * If the `Content-Language` header is set to a specific language, the description should be provided as a string.
4933
- * * If the `Content-Language` header is empty, the endpoint will asume that the description is provided in the default language defined in the Configuration Service.
4955
+ * * If the `Content-Language` header is empty, the endpoint will assume that the description is provided in the default language defined in the Configuration Service.
4934
4956
  *
4935
4957
  * **Note**: You can provide the descriptions only in languages defined in the Configuration Service. In case the description is provided in a language that is not defined in the Configuration Service, the request will be rejected.
4936
4958
  */
@@ -4948,7 +4970,7 @@ type TaxClass = {
4948
4970
  */
4949
4971
  rate: number;
4950
4972
  /**
4951
- * Indicates that the tax class is a default tax class for the tax configuration. Only one tax class can be marked as a default for a particular tax configuration.
4973
+ * Indicates whether the tax class is the default tax class for the tax configuration. Only one tax class can be marked as default for a particular tax configuration.
4952
4974
  */
4953
4975
  isDefault?: boolean;
4954
4976
  };
@@ -4957,7 +4979,7 @@ type TaxClass = {
4957
4979
  */
4958
4980
  type TaxCreationResponse = {
4959
4981
  /**
4960
- * Code of country for which the tax configuration has been created.
4982
+ * Code of the country for which the tax configuration has been created.
4961
4983
  */
4962
4984
  locationCode?: string;
4963
4985
  };
@@ -5004,7 +5026,7 @@ type TaxCalculationRequest = {
5004
5026
  /**
5005
5027
  * Original price value.
5006
5028
  *
5007
- * This field should contain by a number where the cent part is separated by a dot sign - such as `12.99`.
5029
+ * This field must contain a number where the cent part is separated by a dot — for example `12.99`.
5008
5030
  *
5009
5031
  * **Note**: The cent part of the price is not limited to two digits. You can specify the price with any precision.
5010
5032
  */
@@ -5041,8 +5063,8 @@ type TaxCalculationResponse = {
5041
5063
  *
5042
5064
  * | Value | Description |
5043
5065
  * | --- | --- |
5044
- * | `true` | Prices will be expressed as gross values. |
5045
- * | `false` | Prices will be expressed as net values. |
5066
+ * | `true` | Prices are expressed as gross values. |
5067
+ * | `false` | Prices are expressed as net values. |
5046
5068
  */
5047
5069
  includesTax?: boolean;
5048
5070
  /**
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.2";
952
952
 
953
953
  // src/version.ts
954
954
  var SDK_VERSION = version;