@epilot/sdk 2.20.3 → 2.20.4
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/apis/pricing.cjs
CHANGED
|
@@ -43,7 +43,11 @@ var OVERRIDABLE_ATTRIBUTE_TYPE_LIST = [
|
|
|
43
43
|
"multiselect",
|
|
44
44
|
"checkbox",
|
|
45
45
|
"country",
|
|
46
|
-
"tags"
|
|
46
|
+
"tags",
|
|
47
|
+
"relation",
|
|
48
|
+
"relation_user",
|
|
49
|
+
"relation_address",
|
|
50
|
+
"relation_payment_method"
|
|
47
51
|
];
|
|
48
52
|
var OVERRIDABLE_ATTRIBUTE_TYPES = new Set(OVERRIDABLE_ATTRIBUTE_TYPE_LIST);
|
|
49
53
|
|
package/dist/apis/pricing.d.cts
CHANGED
|
@@ -103,8 +103,12 @@ declare const DynamicTariffModeValues: {
|
|
|
103
103
|
* Entity attribute types a conditional pricing variant may override (`overridable_attribute`).
|
|
104
104
|
* An allowlist, so a new attribute type is never overridable by default. No pricing schema to
|
|
105
105
|
* `satisfies` against — `models.test.ts` checks these against the entity spec.
|
|
106
|
+
*
|
|
107
|
+
* Scalars are overridden value for value. The relation types are overridden as a whole: the
|
|
108
|
+
* variant's `$relation` list replaces the base entity's, which is how a variant swaps a product's
|
|
109
|
+
* prices or a composite price's components (the entity spec's `RELATION_ATTRIBUTE_TYPE_LIST`).
|
|
106
110
|
*/
|
|
107
|
-
declare const OVERRIDABLE_ATTRIBUTE_TYPE_LIST: readonly ["string", "number", "currency", "boolean", "date", "datetime", "select", "radio", "multiselect", "checkbox", "country", "tags"];
|
|
111
|
+
declare const OVERRIDABLE_ATTRIBUTE_TYPE_LIST: readonly ["string", "number", "currency", "boolean", "date", "datetime", "select", "radio", "multiselect", "checkbox", "country", "tags", "relation", "relation_user", "relation_address", "relation_payment_method"];
|
|
108
112
|
/** `string`, not a literal union, so callers can test an unnarrowed `attribute.type`. */
|
|
109
113
|
declare const OVERRIDABLE_ATTRIBUTE_TYPES: ReadonlySet<string>;
|
|
110
114
|
|
package/dist/apis/pricing.d.ts
CHANGED
|
@@ -103,8 +103,12 @@ declare const DynamicTariffModeValues: {
|
|
|
103
103
|
* Entity attribute types a conditional pricing variant may override (`overridable_attribute`).
|
|
104
104
|
* An allowlist, so a new attribute type is never overridable by default. No pricing schema to
|
|
105
105
|
* `satisfies` against — `models.test.ts` checks these against the entity spec.
|
|
106
|
+
*
|
|
107
|
+
* Scalars are overridden value for value. The relation types are overridden as a whole: the
|
|
108
|
+
* variant's `$relation` list replaces the base entity's, which is how a variant swaps a product's
|
|
109
|
+
* prices or a composite price's components (the entity spec's `RELATION_ATTRIBUTE_TYPE_LIST`).
|
|
106
110
|
*/
|
|
107
|
-
declare const OVERRIDABLE_ATTRIBUTE_TYPE_LIST: readonly ["string", "number", "currency", "boolean", "date", "datetime", "select", "radio", "multiselect", "checkbox", "country", "tags"];
|
|
111
|
+
declare const OVERRIDABLE_ATTRIBUTE_TYPE_LIST: readonly ["string", "number", "currency", "boolean", "date", "datetime", "select", "radio", "multiselect", "checkbox", "country", "tags", "relation", "relation_user", "relation_address", "relation_payment_method"];
|
|
108
112
|
/** `string`, not a literal union, so callers can test an unnarrowed `attribute.type`. */
|
|
109
113
|
declare const OVERRIDABLE_ATTRIBUTE_TYPES: ReadonlySet<string>;
|
|
110
114
|
|
package/dist/apis/pricing.js
CHANGED
|
@@ -43,7 +43,11 @@ var OVERRIDABLE_ATTRIBUTE_TYPE_LIST = [
|
|
|
43
43
|
"multiselect",
|
|
44
44
|
"checkbox",
|
|
45
45
|
"country",
|
|
46
|
-
"tags"
|
|
46
|
+
"tags",
|
|
47
|
+
"relation",
|
|
48
|
+
"relation_user",
|
|
49
|
+
"relation_address",
|
|
50
|
+
"relation_payment_method"
|
|
47
51
|
];
|
|
48
52
|
var OVERRIDABLE_ATTRIBUTE_TYPES = new Set(OVERRIDABLE_ATTRIBUTE_TYPE_LIST);
|
|
49
53
|
|