@wix/auto_sdk_stores_customizations-v-3 1.0.106 → 1.0.108
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/build/cjs/index.d.ts +2 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +34 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +26 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +2 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +34 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +26 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -1
- package/build/internal/cjs/index.typings.d.ts +22 -9
- package/build/internal/cjs/meta.d.ts +17 -6
- package/build/internal/es/index.d.mts +2 -1
- package/build/internal/es/index.typings.d.mts +22 -9
- package/build/internal/es/meta.d.mts +17 -6
- package/package.json +2 -2
|
@@ -6,6 +6,12 @@ import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
|
|
|
6
6
|
* Options are designed to add variations to a product, where modifiers add a customizable change to the product but without creating another variant.
|
|
7
7
|
*/
|
|
8
8
|
interface Customization extends CustomizationTypeSpecificSettingsOneOf, CustomizationCustomizationSettingsOneOf {
|
|
9
|
+
/**
|
|
10
|
+
* Modifier-specific settings.
|
|
11
|
+
*
|
|
12
|
+
* Only supported when `customizationType` is `MODIFIER`.
|
|
13
|
+
*/
|
|
14
|
+
modifierSettings?: ModifierSettings;
|
|
9
15
|
/**
|
|
10
16
|
* Free text input settings.
|
|
11
17
|
*
|
|
@@ -80,6 +86,12 @@ interface Customization extends CustomizationTypeSpecificSettingsOneOf, Customiz
|
|
|
80
86
|
}
|
|
81
87
|
/** @oneof */
|
|
82
88
|
interface CustomizationTypeSpecificSettingsOneOf {
|
|
89
|
+
/**
|
|
90
|
+
* Modifier-specific settings.
|
|
91
|
+
*
|
|
92
|
+
* Only supported when `customizationType` is `MODIFIER`.
|
|
93
|
+
*/
|
|
94
|
+
modifierSettings?: ModifierSettings;
|
|
83
95
|
}
|
|
84
96
|
/** @oneof */
|
|
85
97
|
interface CustomizationCustomizationSettingsOneOf {
|
|
@@ -112,7 +124,17 @@ declare enum CustomizationRenderType {
|
|
|
112
124
|
}
|
|
113
125
|
/** @enumType */
|
|
114
126
|
type CustomizationRenderTypeWithLiterals = CustomizationRenderType | 'FREE_TEXT' | 'TEXT_CHOICES' | 'SWATCH_CHOICES';
|
|
127
|
+
/** Settings specific to modifier customizations. */
|
|
115
128
|
interface ModifierSettings {
|
|
129
|
+
/**
|
|
130
|
+
* Whether customer input is required for this modifier by default.
|
|
131
|
+
*
|
|
132
|
+
* Applies to `modifiers.mandatory` on a product that uses this modifier without setting
|
|
133
|
+
* `mandatory` explicitly. A product that sets `modifiers.mandatory` overrides this default.
|
|
134
|
+
*
|
|
135
|
+
* Default: `false`
|
|
136
|
+
*/
|
|
137
|
+
defaultMandatory?: boolean | null;
|
|
116
138
|
}
|
|
117
139
|
interface FreeTextSettings {
|
|
118
140
|
/** Minimum text character length. */
|
|
@@ -1277,6 +1299,10 @@ type UpdateCustomizationChoicesApplicationErrors = {
|
|
|
1277
1299
|
code?: 'CHOICE_NOT_FOUND';
|
|
1278
1300
|
description?: string;
|
|
1279
1301
|
data?: Record<string, any>;
|
|
1302
|
+
} | {
|
|
1303
|
+
code?: 'CHOICE_PRICE_NOT_SUPPORTED';
|
|
1304
|
+
description?: string;
|
|
1305
|
+
data?: Record<string, any>;
|
|
1280
1306
|
};
|
|
1281
1307
|
/** @docsIgnore */
|
|
1282
1308
|
type UpdateCustomizationChoicesValidationErrors = {
|
|
@@ -1573,6 +1599,12 @@ declare function updateCustomization(_id: string, customization: NonNullablePath
|
|
|
1573
1599
|
__applicationErrorsType?: UpdateCustomizationApplicationErrors;
|
|
1574
1600
|
}>;
|
|
1575
1601
|
interface UpdateCustomization {
|
|
1602
|
+
/**
|
|
1603
|
+
* Modifier-specific settings.
|
|
1604
|
+
*
|
|
1605
|
+
* Only supported when `customizationType` is `MODIFIER`.
|
|
1606
|
+
*/
|
|
1607
|
+
modifierSettings?: ModifierSettings;
|
|
1576
1608
|
/**
|
|
1577
1609
|
* Free text input settings.
|
|
1578
1610
|
*
|
|
@@ -1940,7 +1972,8 @@ interface RemoveCustomizationChoicesOptions {
|
|
|
1940
1972
|
* Updates properties of existing choices in a customization.
|
|
1941
1973
|
* Choices are identified by their IDs. Only the fields specified in `fieldMask` are updated.
|
|
1942
1974
|
*
|
|
1943
|
-
*
|
|
1975
|
+
* Supports updating `name`, `primaryChoiceIds`, `colorCode`, and `displayImage`.
|
|
1976
|
+
* Updating `addedPrice` is supported only for `MODIFIER` customizations.
|
|
1944
1977
|
* @param customizationId - Customization ID.
|
|
1945
1978
|
* @param revision - Revision number, which increments by 1 each time the customization is updated.
|
|
1946
1979
|
* To prevent conflicting changes,
|