@wix/auto_sdk_stores_customizations-v-3 1.0.16 → 1.0.18
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/index.d.mts +154 -0
- package/build/index.d.ts +154 -0
- package/build/index.js +1389 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +1346 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +154 -0
- package/build/internal/index.d.ts +154 -0
- package/build/internal/index.js +1389 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +1346 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +619 -0
- package/build/internal/meta.d.ts +619 -0
- package/build/internal/meta.js +873 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +836 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{es/src/stores-catalog-v3-customization-customizations-v-3.types.d.ts → internal/stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.d.mts} +377 -108
- package/build/{cjs/src/stores-catalog-v3-customization-customizations-v-3.types.d.ts → internal/stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.d.ts} +377 -108
- package/build/meta.d.mts +619 -0
- package/build/meta.d.ts +619 -0
- package/build/meta.js +873 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +836 -0
- package/build/meta.mjs.map +1 -0
- package/build/{internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.types.d.ts → stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.d.mts} +377 -108
- package/build/{internal/es/src/stores-catalog-v3-customization-customizations-v-3.types.d.ts → stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.d.ts} +377 -108
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.context.d.ts +0 -31
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.context.js +0 -40
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.context.js.map +0 -1
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.d.ts +0 -63
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.js +0 -683
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.js.map +0 -1
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.d.ts +0 -35
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.js +0 -237
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.js.map +0 -1
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.d.ts +0 -130
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.js +0 -126
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.js.map +0 -1
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.types.js +0 -54
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.types.js.map +0 -1
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.universal.d.ts +0 -1588
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.universal.js +0 -819
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.context.d.ts +0 -31
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.context.js +0 -31
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.context.js.map +0 -1
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.http.d.ts +0 -63
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.http.js +0 -669
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.http.js.map +0 -1
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.meta.d.ts +0 -35
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.meta.js +0 -200
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.meta.js.map +0 -1
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.public.d.ts +0 -130
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.public.js +0 -106
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.public.js.map +0 -1
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.types.js +0 -51
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.types.js.map +0 -1
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.universal.d.ts +0 -1588
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.universal.js +0 -782
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.context.d.ts +0 -31
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.context.js +0 -40
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.context.js.map +0 -1
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.d.ts +0 -63
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.js +0 -683
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.js.map +0 -1
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.d.ts +0 -35
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.js +0 -237
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.js.map +0 -1
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.d.ts +0 -130
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.js +0 -126
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.js.map +0 -1
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.types.js +0 -54
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.types.js.map +0 -1
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.universal.d.ts +0 -1588
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.universal.js +0 -819
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.context.d.ts +0 -31
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.context.js +0 -31
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.context.js.map +0 -1
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.http.d.ts +0 -63
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.http.js +0 -669
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.http.js.map +0 -1
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.meta.d.ts +0 -35
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.meta.js +0 -200
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.meta.js.map +0 -1
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.public.d.ts +0 -130
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.public.js +0 -106
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.public.js.map +0 -1
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.types.js +0 -51
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.types.js.map +0 -1
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.universal.d.ts +0 -1588
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.universal.js +0 -782
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.universal.js.map +0 -1
package/build/meta.d.mts
ADDED
|
@@ -0,0 +1,619 @@
|
|
|
1
|
+
import { K as CreateCustomizationRequest$1, L as CreateCustomizationResponse$1, N as GetCustomizationRequest$1, O as GetCustomizationResponse$1, T as UpdateCustomizationRequest$1, V as UpdateCustomizationResponse$1, X as DeleteCustomizationRequest$1, Y as DeleteCustomizationResponse$1, Z as QueryCustomizationsRequest$1, a2 as QueryCustomizationsResponse$1, a5 as BulkCreateCustomizationsRequest$1, c as BulkCreateCustomizationsResponse$1, ab as AddCustomizationChoicesRequest$1, e as AddCustomizationChoicesResponse$1, ac as SetCustomizationChoicesRequest$1, f as SetCustomizationChoicesResponse$1, ad as RemoveCustomizationChoicesRequest$1, g as RemoveCustomizationChoicesResponse$1, ae as BulkAddCustomizationChoicesRequest$1, j as BulkAddCustomizationChoicesResponse$1, af as BulkUpdateCustomizationsRequest$1, l as BulkUpdateCustomizationsResponse$1 } from './stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Customizations include options and modifiers which can later be applied to products.
|
|
5
|
+
* Options are designed to add variations to a product, where modifiers add a customizable change to the product but without creating another variant.
|
|
6
|
+
*/
|
|
7
|
+
interface Customization extends CustomizationCustomizationSettingsOneOf {
|
|
8
|
+
/**
|
|
9
|
+
* Free text input settings.
|
|
10
|
+
*
|
|
11
|
+
* > **Note:** To be passed along with `customizationRenderType: FREE_TEXT`.
|
|
12
|
+
* @immutable
|
|
13
|
+
*/
|
|
14
|
+
freeTextInput?: FreeTextSettings;
|
|
15
|
+
/**
|
|
16
|
+
* Choices settings.
|
|
17
|
+
*
|
|
18
|
+
* > **Note:** Must be passed along with `customizationRenderType` of `SWATCH_CHOICES` and `TEXT_CHOICES`.
|
|
19
|
+
*/
|
|
20
|
+
choicesSettings?: ChoicesSettings;
|
|
21
|
+
/**
|
|
22
|
+
* Customization ID.
|
|
23
|
+
* @minLength 1
|
|
24
|
+
* @maxLength 36
|
|
25
|
+
* @readonly
|
|
26
|
+
*/
|
|
27
|
+
id?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* Revision number, which increments by 1 each time the customization is updated.
|
|
30
|
+
* To prevent conflicting changes,
|
|
31
|
+
* the current revision must be passed when updating the customization.
|
|
32
|
+
*
|
|
33
|
+
* Ignored when creating a customization.
|
|
34
|
+
* @readonly
|
|
35
|
+
*/
|
|
36
|
+
revision?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Date and time the customization was created.
|
|
39
|
+
* @readonly
|
|
40
|
+
*/
|
|
41
|
+
createdDate?: Date | null;
|
|
42
|
+
/**
|
|
43
|
+
* Date and time the customization was updated.
|
|
44
|
+
* @readonly
|
|
45
|
+
*/
|
|
46
|
+
updatedDate?: Date | null;
|
|
47
|
+
/**
|
|
48
|
+
* Customization name for options (for example, `"color"`, `"size"`) and modifiers (for example, `"greeting card"`).
|
|
49
|
+
* @minLength 1
|
|
50
|
+
* @maxLength 50
|
|
51
|
+
*/
|
|
52
|
+
name?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Customization type.
|
|
55
|
+
* @immutable
|
|
56
|
+
*/
|
|
57
|
+
customizationType?: CustomizationTypeWithLiterals;
|
|
58
|
+
/**
|
|
59
|
+
* Customization render type.
|
|
60
|
+
*
|
|
61
|
+
* Defines how the customization will be displayed in the storefront.
|
|
62
|
+
* @immutable
|
|
63
|
+
*/
|
|
64
|
+
customizationRenderType?: CustomizationRenderTypeWithLiterals;
|
|
65
|
+
/**
|
|
66
|
+
* Number of products this customization is assigned to.
|
|
67
|
+
* > **Note:** Returned only when you pass `"ASSIGNED_PRODUCTS_COUNT"` to the `fields` array in Customizations API requests.
|
|
68
|
+
* @readonly
|
|
69
|
+
*/
|
|
70
|
+
assignedProductsCount?: number | null;
|
|
71
|
+
}
|
|
72
|
+
/** @oneof */
|
|
73
|
+
interface CustomizationCustomizationSettingsOneOf {
|
|
74
|
+
/**
|
|
75
|
+
* Free text input settings.
|
|
76
|
+
*
|
|
77
|
+
* > **Note:** To be passed along with `customizationRenderType: FREE_TEXT`.
|
|
78
|
+
* @immutable
|
|
79
|
+
*/
|
|
80
|
+
freeTextInput?: FreeTextSettings;
|
|
81
|
+
/**
|
|
82
|
+
* Choices settings.
|
|
83
|
+
*
|
|
84
|
+
* > **Note:** Must be passed along with `customizationRenderType` of `SWATCH_CHOICES` and `TEXT_CHOICES`.
|
|
85
|
+
*/
|
|
86
|
+
choicesSettings?: ChoicesSettings;
|
|
87
|
+
}
|
|
88
|
+
declare enum CustomizationType {
|
|
89
|
+
UNKNOWN_CUSTOMIZATION_TYPE = "UNKNOWN_CUSTOMIZATION_TYPE",
|
|
90
|
+
PRODUCT_OPTION = "PRODUCT_OPTION",
|
|
91
|
+
MODIFIER = "MODIFIER"
|
|
92
|
+
}
|
|
93
|
+
/** @enumType */
|
|
94
|
+
type CustomizationTypeWithLiterals = CustomizationType | 'UNKNOWN_CUSTOMIZATION_TYPE' | 'PRODUCT_OPTION' | 'MODIFIER';
|
|
95
|
+
declare enum CustomizationRenderType {
|
|
96
|
+
UNKNOWN_CUSTOMIZATION_RENDER_TYPE = "UNKNOWN_CUSTOMIZATION_RENDER_TYPE",
|
|
97
|
+
/** Customization by free text input. */
|
|
98
|
+
FREE_TEXT = "FREE_TEXT",
|
|
99
|
+
/** Customization by selection of text choices. */
|
|
100
|
+
TEXT_CHOICES = "TEXT_CHOICES",
|
|
101
|
+
/** Customization by selection of colors. */
|
|
102
|
+
SWATCH_CHOICES = "SWATCH_CHOICES"
|
|
103
|
+
}
|
|
104
|
+
/** @enumType */
|
|
105
|
+
type CustomizationRenderTypeWithLiterals = CustomizationRenderType | 'UNKNOWN_CUSTOMIZATION_RENDER_TYPE' | 'FREE_TEXT' | 'TEXT_CHOICES' | 'SWATCH_CHOICES';
|
|
106
|
+
interface FreeTextSettings {
|
|
107
|
+
/** Minimum text character length. */
|
|
108
|
+
minCharCount?: number;
|
|
109
|
+
/**
|
|
110
|
+
* Maximum text character length.
|
|
111
|
+
* @max 500
|
|
112
|
+
*/
|
|
113
|
+
maxCharCount?: number;
|
|
114
|
+
/**
|
|
115
|
+
* Default amount added to a product's price when this choice is assigned to a modifier.
|
|
116
|
+
* @decimalValue options { gte:0, lte:999999999, maxScale:3 }
|
|
117
|
+
*/
|
|
118
|
+
defaultAddedPrice?: string | null;
|
|
119
|
+
/**
|
|
120
|
+
* Title to display to customer for their free-text input.
|
|
121
|
+
* @minLength 1
|
|
122
|
+
* @maxLength 100
|
|
123
|
+
*/
|
|
124
|
+
title?: string;
|
|
125
|
+
}
|
|
126
|
+
interface ChoicesSettings {
|
|
127
|
+
/**
|
|
128
|
+
* List of choices.
|
|
129
|
+
* @minSize 1
|
|
130
|
+
* @maxSize 200
|
|
131
|
+
* @immutable
|
|
132
|
+
*/
|
|
133
|
+
choices?: Choice[];
|
|
134
|
+
}
|
|
135
|
+
interface Choice extends ChoiceValueOneOf {
|
|
136
|
+
/**
|
|
137
|
+
* Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color).
|
|
138
|
+
* @minLength 3
|
|
139
|
+
* @maxLength 20
|
|
140
|
+
* @format COLOR_HEX
|
|
141
|
+
*/
|
|
142
|
+
colorCode?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Choice ID.
|
|
145
|
+
* @format GUID
|
|
146
|
+
* @readonly
|
|
147
|
+
*/
|
|
148
|
+
id?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Choice type.
|
|
151
|
+
*
|
|
152
|
+
* > **Notes:**
|
|
153
|
+
* > + For `customizationRenderType: SWATCH_CHOICES`, the supported `choiceType` values are: `ONE_COLOR`, `MULTIPLE_COLORS`, or `IMAGE`.
|
|
154
|
+
* > + For a `customizationRenderType` of `TEXT_CHOICES` and `FREE_TEXT`, the supported `choiceType` value is: `CHOICE_TEXT`.
|
|
155
|
+
* @immutable
|
|
156
|
+
*/
|
|
157
|
+
choiceType?: ChoiceTypeWithLiterals;
|
|
158
|
+
/**
|
|
159
|
+
* A read-only key generated based on choice name. Used for eCommerce integration.
|
|
160
|
+
* @readonly
|
|
161
|
+
* @minLength 1
|
|
162
|
+
* @maxLength 50
|
|
163
|
+
*/
|
|
164
|
+
key?: string | null;
|
|
165
|
+
/**
|
|
166
|
+
* Choice name.
|
|
167
|
+
* @minLength 1
|
|
168
|
+
* @maxLength 50
|
|
169
|
+
*/
|
|
170
|
+
name?: string;
|
|
171
|
+
/**
|
|
172
|
+
* Default amount added to a product's price when this customization is assigned to a modifier.
|
|
173
|
+
* @decimalValue options { gte:0, lte:999999999, maxScale:3 }
|
|
174
|
+
*/
|
|
175
|
+
defaultAddedPrice?: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* Number of products this choice is assigned to .
|
|
178
|
+
* @readonly
|
|
179
|
+
*/
|
|
180
|
+
assignedProductsCount?: number;
|
|
181
|
+
}
|
|
182
|
+
/** @oneof */
|
|
183
|
+
interface ChoiceValueOneOf {
|
|
184
|
+
/**
|
|
185
|
+
* Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color).
|
|
186
|
+
* @minLength 3
|
|
187
|
+
* @maxLength 20
|
|
188
|
+
* @format COLOR_HEX
|
|
189
|
+
*/
|
|
190
|
+
colorCode?: string;
|
|
191
|
+
}
|
|
192
|
+
declare enum ChoiceType {
|
|
193
|
+
UNKNOWN_CHOICE_TYPE = "UNKNOWN_CHOICE_TYPE",
|
|
194
|
+
/** For a `customizationRenderType` of `TEXT_CHOICES` and `FREE_TEXT`. */
|
|
195
|
+
CHOICE_TEXT = "CHOICE_TEXT",
|
|
196
|
+
/** For `customizationRenderType: SWATCH_CHOICES`. */
|
|
197
|
+
ONE_COLOR = "ONE_COLOR",
|
|
198
|
+
/** For `customizationRenderType: SWATCH_CHOICES`. */
|
|
199
|
+
MULTIPLE_COLORS = "MULTIPLE_COLORS",
|
|
200
|
+
/** For `customizationRenderType: SWATCH_CHOICES`. */
|
|
201
|
+
IMAGE = "IMAGE"
|
|
202
|
+
}
|
|
203
|
+
/** @enumType */
|
|
204
|
+
type ChoiceTypeWithLiterals = ChoiceType | 'UNKNOWN_CHOICE_TYPE' | 'CHOICE_TEXT' | 'ONE_COLOR' | 'MULTIPLE_COLORS' | 'IMAGE';
|
|
205
|
+
interface CreateCustomizationRequest {
|
|
206
|
+
/** Customization to create. */
|
|
207
|
+
customization: Customization;
|
|
208
|
+
}
|
|
209
|
+
interface CreateCustomizationResponse {
|
|
210
|
+
/** Created customization. */
|
|
211
|
+
customization?: Customization;
|
|
212
|
+
}
|
|
213
|
+
interface GetCustomizationRequest {
|
|
214
|
+
/**
|
|
215
|
+
* Customization ID.
|
|
216
|
+
* @format GUID
|
|
217
|
+
*/
|
|
218
|
+
customizationId: string;
|
|
219
|
+
/**
|
|
220
|
+
* Fields to include in the response.
|
|
221
|
+
*
|
|
222
|
+
* Supported values: `ASSIGNED_PRODUCTS_COUNT`
|
|
223
|
+
* @maxSize 100
|
|
224
|
+
*/
|
|
225
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
226
|
+
}
|
|
227
|
+
declare enum RequestedFields {
|
|
228
|
+
/** Unknown requested field. */
|
|
229
|
+
UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
|
|
230
|
+
/** Assigned products count. */
|
|
231
|
+
ASSIGNED_PRODUCTS_COUNT = "ASSIGNED_PRODUCTS_COUNT"
|
|
232
|
+
}
|
|
233
|
+
/** @enumType */
|
|
234
|
+
type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'ASSIGNED_PRODUCTS_COUNT';
|
|
235
|
+
interface GetCustomizationResponse {
|
|
236
|
+
/** Customization. */
|
|
237
|
+
customization?: Customization;
|
|
238
|
+
}
|
|
239
|
+
interface UpdateCustomizationRequest {
|
|
240
|
+
/** Customization to update. */
|
|
241
|
+
customization: Customization;
|
|
242
|
+
/**
|
|
243
|
+
* Fields to include in the response.
|
|
244
|
+
*
|
|
245
|
+
* Supported values: `ASSIGNED_PRODUCTS_COUNT`
|
|
246
|
+
* @maxSize 100
|
|
247
|
+
*/
|
|
248
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
249
|
+
}
|
|
250
|
+
interface UpdateCustomizationResponse {
|
|
251
|
+
/** Updated customization. */
|
|
252
|
+
customization?: Customization;
|
|
253
|
+
}
|
|
254
|
+
interface DeleteCustomizationRequest {
|
|
255
|
+
/**
|
|
256
|
+
* Customization ID.
|
|
257
|
+
* @format GUID
|
|
258
|
+
*/
|
|
259
|
+
customizationId: string;
|
|
260
|
+
}
|
|
261
|
+
interface DeleteCustomizationResponse {
|
|
262
|
+
}
|
|
263
|
+
interface QueryCustomizationsRequest {
|
|
264
|
+
/** Query options. */
|
|
265
|
+
query?: CursorQuery;
|
|
266
|
+
/**
|
|
267
|
+
* Fields to include in the response.
|
|
268
|
+
*
|
|
269
|
+
* Supported values: `ASSIGNED_PRODUCTS_COUNT`
|
|
270
|
+
* @maxSize 100
|
|
271
|
+
*/
|
|
272
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
273
|
+
}
|
|
274
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
275
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
276
|
+
cursorPaging?: CursorPaging;
|
|
277
|
+
/**
|
|
278
|
+
* Filter object in the following format:
|
|
279
|
+
* `"filter" : {
|
|
280
|
+
* "fieldName1": "value1",
|
|
281
|
+
* "fieldName2":{"$operator":"value2"}
|
|
282
|
+
* }`
|
|
283
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
284
|
+
*/
|
|
285
|
+
filter?: Record<string, any> | null;
|
|
286
|
+
/**
|
|
287
|
+
* Sort object in the following format:
|
|
288
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
289
|
+
* @maxSize 5
|
|
290
|
+
*/
|
|
291
|
+
sort?: Sorting[];
|
|
292
|
+
}
|
|
293
|
+
/** @oneof */
|
|
294
|
+
interface CursorQueryPagingMethodOneOf {
|
|
295
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
296
|
+
cursorPaging?: CursorPaging;
|
|
297
|
+
}
|
|
298
|
+
interface Sorting {
|
|
299
|
+
/**
|
|
300
|
+
* Name of the field to sort by.
|
|
301
|
+
* @maxLength 512
|
|
302
|
+
*/
|
|
303
|
+
fieldName?: string;
|
|
304
|
+
/** Sort order. */
|
|
305
|
+
order?: SortOrderWithLiterals;
|
|
306
|
+
}
|
|
307
|
+
declare enum SortOrder {
|
|
308
|
+
/** Ascending order. */
|
|
309
|
+
ASC = "ASC",
|
|
310
|
+
/** Descending order. */
|
|
311
|
+
DESC = "DESC"
|
|
312
|
+
}
|
|
313
|
+
/** @enumType */
|
|
314
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
315
|
+
interface CursorPaging {
|
|
316
|
+
/**
|
|
317
|
+
* Maximum number of items to return in the results.
|
|
318
|
+
* @max 100
|
|
319
|
+
*/
|
|
320
|
+
limit?: number | null;
|
|
321
|
+
/**
|
|
322
|
+
* Pointer to the next or previous page in the list of results.
|
|
323
|
+
*
|
|
324
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
325
|
+
* Not relevant for the first request.
|
|
326
|
+
* @maxLength 16000
|
|
327
|
+
*/
|
|
328
|
+
cursor?: string | null;
|
|
329
|
+
}
|
|
330
|
+
interface QueryCustomizationsResponse {
|
|
331
|
+
/**
|
|
332
|
+
* List of customizations.
|
|
333
|
+
* @minSize 1
|
|
334
|
+
* @maxSize 200
|
|
335
|
+
*/
|
|
336
|
+
customizations?: Customization[];
|
|
337
|
+
/** Details on the paged set of results returned. */
|
|
338
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
339
|
+
}
|
|
340
|
+
interface CursorPagingMetadata {
|
|
341
|
+
/** Number of items returned in the response. */
|
|
342
|
+
count?: number | null;
|
|
343
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
344
|
+
cursors?: Cursors;
|
|
345
|
+
/**
|
|
346
|
+
* Whether there are more pages to retrieve following the current page.
|
|
347
|
+
*
|
|
348
|
+
* + `true`: Another page of results can be retrieved.
|
|
349
|
+
* + `false`: This is the last page.
|
|
350
|
+
*/
|
|
351
|
+
hasNext?: boolean | null;
|
|
352
|
+
}
|
|
353
|
+
interface Cursors {
|
|
354
|
+
/**
|
|
355
|
+
* Cursor string pointing to the next page in the list of results.
|
|
356
|
+
* @maxLength 16000
|
|
357
|
+
*/
|
|
358
|
+
next?: string | null;
|
|
359
|
+
/**
|
|
360
|
+
* Cursor pointing to the previous page in the list of results.
|
|
361
|
+
* @maxLength 16000
|
|
362
|
+
*/
|
|
363
|
+
prev?: string | null;
|
|
364
|
+
}
|
|
365
|
+
interface BulkCreateCustomizationsRequest {
|
|
366
|
+
/**
|
|
367
|
+
* Customizations to create.
|
|
368
|
+
* @minSize 1
|
|
369
|
+
* @maxSize 100
|
|
370
|
+
*/
|
|
371
|
+
customizations: Customization[];
|
|
372
|
+
/**
|
|
373
|
+
* Whether to return the full customization entities in the response.
|
|
374
|
+
*
|
|
375
|
+
* Default: `false`
|
|
376
|
+
*/
|
|
377
|
+
returnEntity?: boolean;
|
|
378
|
+
}
|
|
379
|
+
interface BulkCreateCustomizationsResponse {
|
|
380
|
+
/**
|
|
381
|
+
* Customizations created by bulk action.
|
|
382
|
+
* @minSize 1
|
|
383
|
+
* @maxSize 100
|
|
384
|
+
*/
|
|
385
|
+
results?: BulkCustomizationResult[];
|
|
386
|
+
/** Bulk action metadata. */
|
|
387
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
388
|
+
}
|
|
389
|
+
interface BulkCustomizationResult {
|
|
390
|
+
/** Bulk action metadata for customization. */
|
|
391
|
+
itemMetadata?: ItemMetadata;
|
|
392
|
+
/**
|
|
393
|
+
* Full customization entity.
|
|
394
|
+
*
|
|
395
|
+
* Returned only if `returnEntity: true` is passed in the request.
|
|
396
|
+
*/
|
|
397
|
+
customization?: Customization;
|
|
398
|
+
}
|
|
399
|
+
interface ItemMetadata {
|
|
400
|
+
/**
|
|
401
|
+
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
402
|
+
* @minLength 1
|
|
403
|
+
* @maxLength 36
|
|
404
|
+
*/
|
|
405
|
+
id?: string | null;
|
|
406
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
407
|
+
originalIndex?: number;
|
|
408
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
409
|
+
success?: boolean;
|
|
410
|
+
/** Details about the error in case of failure. */
|
|
411
|
+
error?: ApplicationError;
|
|
412
|
+
}
|
|
413
|
+
interface ApplicationError {
|
|
414
|
+
/** Error code. */
|
|
415
|
+
code?: string;
|
|
416
|
+
/** Description of the error. */
|
|
417
|
+
description?: string;
|
|
418
|
+
/** Data related to the error. */
|
|
419
|
+
data?: Record<string, any> | null;
|
|
420
|
+
}
|
|
421
|
+
interface BulkActionMetadata {
|
|
422
|
+
/** Number of items that were successfully processed. */
|
|
423
|
+
totalSuccesses?: number;
|
|
424
|
+
/** Number of items that couldn't be processed. */
|
|
425
|
+
totalFailures?: number;
|
|
426
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
427
|
+
undetailedFailures?: number;
|
|
428
|
+
}
|
|
429
|
+
interface AddCustomizationChoicesRequest {
|
|
430
|
+
/**
|
|
431
|
+
* Customization ID.
|
|
432
|
+
* @format GUID
|
|
433
|
+
*/
|
|
434
|
+
customizationId: string;
|
|
435
|
+
/**
|
|
436
|
+
* Choices to add.
|
|
437
|
+
* @minSize 1
|
|
438
|
+
* @maxSize 100
|
|
439
|
+
*/
|
|
440
|
+
choices: Choice[];
|
|
441
|
+
/**
|
|
442
|
+
* Fields to include in the response.
|
|
443
|
+
*
|
|
444
|
+
* Supported values: `ASSIGNED_PRODUCTS_COUNT`
|
|
445
|
+
* @maxSize 100
|
|
446
|
+
*/
|
|
447
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
448
|
+
}
|
|
449
|
+
interface AddCustomizationChoicesResponse {
|
|
450
|
+
/** Updated customization. */
|
|
451
|
+
customization?: Customization;
|
|
452
|
+
}
|
|
453
|
+
interface SetCustomizationChoicesRequest {
|
|
454
|
+
/**
|
|
455
|
+
* Customization ID.
|
|
456
|
+
* @format GUID
|
|
457
|
+
*/
|
|
458
|
+
customizationId: string;
|
|
459
|
+
/**
|
|
460
|
+
* Choices to set.
|
|
461
|
+
* @minSize 1
|
|
462
|
+
* @maxSize 100
|
|
463
|
+
*/
|
|
464
|
+
choices: Choice[];
|
|
465
|
+
/**
|
|
466
|
+
* Fields to include in the response.
|
|
467
|
+
*
|
|
468
|
+
* Supported values: `ASSIGNED_PRODUCTS_COUNT`
|
|
469
|
+
* @maxSize 100
|
|
470
|
+
*/
|
|
471
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
472
|
+
}
|
|
473
|
+
interface SetCustomizationChoicesResponse {
|
|
474
|
+
/** Updated customization. */
|
|
475
|
+
customization?: Customization;
|
|
476
|
+
}
|
|
477
|
+
interface RemoveCustomizationChoicesRequest {
|
|
478
|
+
/**
|
|
479
|
+
* Customization ID.
|
|
480
|
+
* @format GUID
|
|
481
|
+
*/
|
|
482
|
+
customizationId: string;
|
|
483
|
+
/**
|
|
484
|
+
* IDs of choices to remove.
|
|
485
|
+
* @format GUID
|
|
486
|
+
* @minSize 1
|
|
487
|
+
* @maxSize 100
|
|
488
|
+
*/
|
|
489
|
+
choiceIds: string[];
|
|
490
|
+
/** Customization revision. */
|
|
491
|
+
revision?: string;
|
|
492
|
+
/**
|
|
493
|
+
* Fields to include in the response.
|
|
494
|
+
*
|
|
495
|
+
* Supported values: `ASSIGNED_PRODUCTS_COUNT`
|
|
496
|
+
* @maxSize 100
|
|
497
|
+
*/
|
|
498
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
499
|
+
}
|
|
500
|
+
interface RemoveCustomizationChoicesResponse {
|
|
501
|
+
/** Updated customization. */
|
|
502
|
+
customization?: Customization;
|
|
503
|
+
}
|
|
504
|
+
interface BulkAddCustomizationChoicesRequest {
|
|
505
|
+
/**
|
|
506
|
+
* List of customization IDs and choices.
|
|
507
|
+
* @minSize 1
|
|
508
|
+
* @maxSize 100
|
|
509
|
+
*/
|
|
510
|
+
customizationsChoices: CustomizationChoices[];
|
|
511
|
+
/**
|
|
512
|
+
* Whether to return the full customization entities in the response.
|
|
513
|
+
*
|
|
514
|
+
* Default: `false`
|
|
515
|
+
*/
|
|
516
|
+
returnEntity?: boolean;
|
|
517
|
+
/**
|
|
518
|
+
* Fields to include in the response.
|
|
519
|
+
*
|
|
520
|
+
* Supported values: `ASSIGNED_PRODUCTS_COUNT`
|
|
521
|
+
* @maxSize 100
|
|
522
|
+
*/
|
|
523
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
524
|
+
}
|
|
525
|
+
interface CustomizationChoices {
|
|
526
|
+
/**
|
|
527
|
+
* Customization ID.
|
|
528
|
+
* @minLength 1
|
|
529
|
+
* @maxLength 36
|
|
530
|
+
*/
|
|
531
|
+
customizationId?: string;
|
|
532
|
+
/**
|
|
533
|
+
* Choices to add.
|
|
534
|
+
* @minSize 1
|
|
535
|
+
* @maxSize 100
|
|
536
|
+
*/
|
|
537
|
+
choices?: Choice[];
|
|
538
|
+
}
|
|
539
|
+
interface BulkAddCustomizationChoicesResponse {
|
|
540
|
+
/**
|
|
541
|
+
* Customizations updated by bulk action.
|
|
542
|
+
* @minSize 1
|
|
543
|
+
* @maxSize 100
|
|
544
|
+
*/
|
|
545
|
+
results?: BulkCustomizationResult[];
|
|
546
|
+
/** Bulk action metadata. */
|
|
547
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
548
|
+
}
|
|
549
|
+
interface BulkUpdateCustomizationsRequest {
|
|
550
|
+
/**
|
|
551
|
+
* List of customizations to update.
|
|
552
|
+
* @minSize 1
|
|
553
|
+
* @maxSize 100
|
|
554
|
+
*/
|
|
555
|
+
customizations: MaskedCustomization[];
|
|
556
|
+
/**
|
|
557
|
+
* Whether to return the full customization entities in the response.
|
|
558
|
+
*
|
|
559
|
+
* Default: `false`
|
|
560
|
+
*/
|
|
561
|
+
returnEntity?: boolean;
|
|
562
|
+
/**
|
|
563
|
+
* Fields to include in the response.
|
|
564
|
+
*
|
|
565
|
+
* Supported values: `ASSIGNED_PRODUCTS_COUNT`
|
|
566
|
+
* @maxSize 100
|
|
567
|
+
*/
|
|
568
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
569
|
+
}
|
|
570
|
+
interface MaskedCustomization {
|
|
571
|
+
/** Customization to update. */
|
|
572
|
+
customization?: Customization;
|
|
573
|
+
}
|
|
574
|
+
interface BulkUpdateCustomizationsResponse {
|
|
575
|
+
/**
|
|
576
|
+
* Customizations updated by bulk action.
|
|
577
|
+
* @minSize 1
|
|
578
|
+
* @maxSize 100
|
|
579
|
+
*/
|
|
580
|
+
results?: BulkCustomizationResult[];
|
|
581
|
+
/** Bulk action metadata. */
|
|
582
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
586
|
+
getUrl: (context: any) => string;
|
|
587
|
+
httpMethod: K;
|
|
588
|
+
path: string;
|
|
589
|
+
pathParams: M;
|
|
590
|
+
__requestType: T;
|
|
591
|
+
__originalRequestType: S;
|
|
592
|
+
__responseType: Q;
|
|
593
|
+
__originalResponseType: R;
|
|
594
|
+
};
|
|
595
|
+
declare function createCustomization(): __PublicMethodMetaInfo<'POST', {}, CreateCustomizationRequest$1, CreateCustomizationRequest, CreateCustomizationResponse$1, CreateCustomizationResponse>;
|
|
596
|
+
declare function getCustomization(): __PublicMethodMetaInfo<'GET', {
|
|
597
|
+
customizationId: string;
|
|
598
|
+
}, GetCustomizationRequest$1, GetCustomizationRequest, GetCustomizationResponse$1, GetCustomizationResponse>;
|
|
599
|
+
declare function updateCustomization(): __PublicMethodMetaInfo<'PATCH', {
|
|
600
|
+
customizationId: string;
|
|
601
|
+
}, UpdateCustomizationRequest$1, UpdateCustomizationRequest, UpdateCustomizationResponse$1, UpdateCustomizationResponse>;
|
|
602
|
+
declare function deleteCustomization(): __PublicMethodMetaInfo<'DELETE', {
|
|
603
|
+
customizationId: string;
|
|
604
|
+
}, DeleteCustomizationRequest$1, DeleteCustomizationRequest, DeleteCustomizationResponse$1, DeleteCustomizationResponse>;
|
|
605
|
+
declare function queryCustomizations(): __PublicMethodMetaInfo<'POST', {}, QueryCustomizationsRequest$1, QueryCustomizationsRequest, QueryCustomizationsResponse$1, QueryCustomizationsResponse>;
|
|
606
|
+
declare function bulkCreateCustomizations(): __PublicMethodMetaInfo<'POST', {}, BulkCreateCustomizationsRequest$1, BulkCreateCustomizationsRequest, BulkCreateCustomizationsResponse$1, BulkCreateCustomizationsResponse>;
|
|
607
|
+
declare function addCustomizationChoices(): __PublicMethodMetaInfo<'POST', {
|
|
608
|
+
customizationId: string;
|
|
609
|
+
}, AddCustomizationChoicesRequest$1, AddCustomizationChoicesRequest, AddCustomizationChoicesResponse$1, AddCustomizationChoicesResponse>;
|
|
610
|
+
declare function setCustomizationChoices(): __PublicMethodMetaInfo<'POST', {
|
|
611
|
+
customizationId: string;
|
|
612
|
+
}, SetCustomizationChoicesRequest$1, SetCustomizationChoicesRequest, SetCustomizationChoicesResponse$1, SetCustomizationChoicesResponse>;
|
|
613
|
+
declare function removeCustomizationChoices(): __PublicMethodMetaInfo<'POST', {
|
|
614
|
+
customizationId: string;
|
|
615
|
+
}, RemoveCustomizationChoicesRequest$1, RemoveCustomizationChoicesRequest, RemoveCustomizationChoicesResponse$1, RemoveCustomizationChoicesResponse>;
|
|
616
|
+
declare function bulkAddCustomizationChoices(): __PublicMethodMetaInfo<'POST', {}, BulkAddCustomizationChoicesRequest$1, BulkAddCustomizationChoicesRequest, BulkAddCustomizationChoicesResponse$1, BulkAddCustomizationChoicesResponse>;
|
|
617
|
+
declare function bulkUpdateCustomizations(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateCustomizationsRequest$1, BulkUpdateCustomizationsRequest, BulkUpdateCustomizationsResponse$1, BulkUpdateCustomizationsResponse>;
|
|
618
|
+
|
|
619
|
+
export { type __PublicMethodMetaInfo, addCustomizationChoices, bulkAddCustomizationChoices, bulkCreateCustomizations, bulkUpdateCustomizations, createCustomization, deleteCustomization, getCustomization, queryCustomizations, removeCustomizationChoices, setCustomizationChoices, updateCustomization };
|