@wix/auto_sdk_stores_customizations-v-3 1.0.107 → 1.0.109
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 +3 -3
- package/build/cjs/index.js +17 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +68 -10
- package/build/cjs/index.typings.js +15 -7
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +44 -8
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +3 -3
- package/build/es/index.mjs +17 -8
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +68 -10
- package/build/es/index.typings.mjs +15 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +44 -8
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -3
- package/build/internal/cjs/index.typings.d.ts +56 -18
- package/build/internal/cjs/meta.d.ts +35 -14
- package/build/internal/es/index.d.mts +3 -3
- package/build/internal/es/index.typings.d.mts +56 -18
- package/build/internal/es/meta.d.mts +35 -14
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -6,6 +6,12 @@ import '@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. */
|
|
@@ -490,7 +512,22 @@ interface URIs {
|
|
|
490
512
|
interface CreateCustomizationRequest {
|
|
491
513
|
/** Customization to create. */
|
|
492
514
|
customization: Customization;
|
|
515
|
+
/**
|
|
516
|
+
* Fields to include in the response.
|
|
517
|
+
*
|
|
518
|
+
* Supported values: `ASSIGNED_PRODUCTS_COUNT`
|
|
519
|
+
* @maxSize 100
|
|
520
|
+
*/
|
|
521
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
493
522
|
}
|
|
523
|
+
declare enum RequestedFields {
|
|
524
|
+
/** Assigned products count. */
|
|
525
|
+
ASSIGNED_PRODUCTS_COUNT = "ASSIGNED_PRODUCTS_COUNT",
|
|
526
|
+
/** Returns display images for choices. */
|
|
527
|
+
CHOICE_DISPLAY_IMAGE = "CHOICE_DISPLAY_IMAGE"
|
|
528
|
+
}
|
|
529
|
+
/** @enumType */
|
|
530
|
+
type RequestedFieldsWithLiterals = RequestedFields | 'ASSIGNED_PRODUCTS_COUNT' | 'CHOICE_DISPLAY_IMAGE';
|
|
494
531
|
interface CreateCustomizationResponse {
|
|
495
532
|
/** Created customization. */
|
|
496
533
|
customization?: Customization;
|
|
@@ -509,14 +546,6 @@ interface GetCustomizationRequest {
|
|
|
509
546
|
*/
|
|
510
547
|
fields?: RequestedFieldsWithLiterals[];
|
|
511
548
|
}
|
|
512
|
-
declare enum RequestedFields {
|
|
513
|
-
/** Assigned products count. */
|
|
514
|
-
ASSIGNED_PRODUCTS_COUNT = "ASSIGNED_PRODUCTS_COUNT",
|
|
515
|
-
/** Returns display images for choices. */
|
|
516
|
-
CHOICE_DISPLAY_IMAGE = "CHOICE_DISPLAY_IMAGE"
|
|
517
|
-
}
|
|
518
|
-
/** @enumType */
|
|
519
|
-
type RequestedFieldsWithLiterals = RequestedFields | 'ASSIGNED_PRODUCTS_COUNT' | 'CHOICE_DISPLAY_IMAGE';
|
|
520
549
|
interface GetCustomizationResponse {
|
|
521
550
|
/** Customization. */
|
|
522
551
|
customization?: Customization;
|
|
@@ -668,6 +697,13 @@ interface BulkCreateCustomizationsRequest {
|
|
|
668
697
|
* Default: `false`
|
|
669
698
|
*/
|
|
670
699
|
returnEntity?: boolean;
|
|
700
|
+
/**
|
|
701
|
+
* Fields to include in the response.
|
|
702
|
+
*
|
|
703
|
+
* Supported values: `ASSIGNED_PRODUCTS_COUNT`
|
|
704
|
+
* @maxSize 100
|
|
705
|
+
*/
|
|
706
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
671
707
|
}
|
|
672
708
|
interface BulkCreateCustomizationsResponse {
|
|
673
709
|
/**
|