@wix/auto_sdk_stores_product-groups-v-3 1.0.0
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 +11 -0
- package/build/cjs/index.js +1279 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +7 -0
- package/build/cjs/index.typings.js +1141 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1393 -0
- package/build/cjs/meta.js +939 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/stores-catalog-v3-product-group-product-groups-v-3.universal-BSxpFEZE.d.ts +1824 -0
- package/build/es/index.d.mts +11 -0
- package/build/es/index.mjs +1226 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +7 -0
- package/build/es/index.typings.mjs +1087 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1393 -0
- package/build/es/meta.mjs +884 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/stores-catalog-v3-product-group-product-groups-v-3.universal-BSxpFEZE.d.mts +1824 -0
- package/build/internal/cjs/index.d.ts +162 -0
- package/build/internal/cjs/index.js +1279 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +21 -0
- package/build/internal/cjs/index.typings.js +1141 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1393 -0
- package/build/internal/cjs/meta.js +939 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/stores-catalog-v3-product-group-product-groups-v-3.universal-4XnTTWRs.d.ts +1986 -0
- package/build/internal/es/index.d.mts +162 -0
- package/build/internal/es/index.mjs +1226 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +21 -0
- package/build/internal/es/index.typings.mjs +1087 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +1393 -0
- package/build/internal/es/meta.mjs +884 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/build/internal/es/stores-catalog-v3-product-group-product-groups-v-3.universal-4XnTTWRs.d.mts +1986 -0
- package/meta/package.json +3 -0
- package/package.json +55 -0
|
@@ -0,0 +1,1986 @@
|
|
|
1
|
+
import * as _wix_sdk_types from '@wix/sdk-types';
|
|
2
|
+
import { QuerySpec, SearchSpec, Query, Search, NonNullablePaths } from '@wix/sdk-types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A product group aggregates related products based on a shared customization
|
|
6
|
+
* (option or modifier). Each member product is automatically assigned to
|
|
7
|
+
* represent a specific choice of that customization.
|
|
8
|
+
*/
|
|
9
|
+
interface ProductGroup {
|
|
10
|
+
/**
|
|
11
|
+
* Product group ID.
|
|
12
|
+
* @format GUID
|
|
13
|
+
* @readonly
|
|
14
|
+
*/
|
|
15
|
+
_id?: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Revision number, which increments by 1 each time the product group is updated.
|
|
18
|
+
* To prevent conflicting changes,
|
|
19
|
+
* the current revision must be passed when updating the product group.
|
|
20
|
+
*
|
|
21
|
+
* Ignored when creating a product group.
|
|
22
|
+
* @readonly
|
|
23
|
+
*/
|
|
24
|
+
revision?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Date and time the product group was created.
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
_createdDate?: Date | null;
|
|
30
|
+
/**
|
|
31
|
+
* Date and time the product group was last updated.
|
|
32
|
+
* @readonly
|
|
33
|
+
*/
|
|
34
|
+
_updatedDate?: Date | null;
|
|
35
|
+
/**
|
|
36
|
+
* Product group name.
|
|
37
|
+
* @minLength 1
|
|
38
|
+
* @maxLength 100
|
|
39
|
+
*/
|
|
40
|
+
name?: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* ID of the shared customization (option or modifier) that defines
|
|
43
|
+
* the grouping attribute. Can't be changed after creation.
|
|
44
|
+
* @minLength 1
|
|
45
|
+
* @maxLength 36
|
|
46
|
+
* @readonly
|
|
47
|
+
* @immutable
|
|
48
|
+
*/
|
|
49
|
+
groupingCustomizationId?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* Ordered list of choice IDs that defines the display order of choices in the storefront.
|
|
52
|
+
* Choices not listed here will appear after the listed ones.
|
|
53
|
+
* @maxSize 100
|
|
54
|
+
* @format GUID
|
|
55
|
+
*/
|
|
56
|
+
choiceOrder?: string[];
|
|
57
|
+
/**
|
|
58
|
+
* Products that belong to this group, with their derived choice and status.
|
|
59
|
+
* Ordered according to `choice_order`.
|
|
60
|
+
* @readonly
|
|
61
|
+
* @maxSize 100
|
|
62
|
+
*/
|
|
63
|
+
members?: ProductGroupMember[];
|
|
64
|
+
/**
|
|
65
|
+
* Unique human-friendly identifier for the product group.
|
|
66
|
+
*
|
|
67
|
+
* Unlike the auto-generated `id`, the handle can be set when creating a product group.
|
|
68
|
+
* Useful for external catalog sync systems. Unique per site.
|
|
69
|
+
* If not provided during creation, a random UUID is automatically generated. Can't be changed after creation.
|
|
70
|
+
* @minLength 1
|
|
71
|
+
* @maxLength 100
|
|
72
|
+
* @readonly
|
|
73
|
+
* @immutable
|
|
74
|
+
*/
|
|
75
|
+
handle?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* Details of the catalog [customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction) referenced by `grouping_customization_id` (for example, name and render type).
|
|
78
|
+
*
|
|
79
|
+
* > **Note:** Returned only when you pass `"GROUPING_CUSTOMIZATION"` to the `fields` array in Product Groups API requests.
|
|
80
|
+
* @readonly
|
|
81
|
+
*/
|
|
82
|
+
groupingCustomization?: GroupingCustomization;
|
|
83
|
+
/**
|
|
84
|
+
* Custom field data for the product group.
|
|
85
|
+
* [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)
|
|
86
|
+
* must be configured in the app dashboard before they can be accessed with API calls.
|
|
87
|
+
*/
|
|
88
|
+
extendedFields?: ExtendedFields;
|
|
89
|
+
/** Tags */
|
|
90
|
+
tags?: Tags;
|
|
91
|
+
}
|
|
92
|
+
/** Represents a product within a product group, with its derived choice and status. */
|
|
93
|
+
interface ProductGroupMember {
|
|
94
|
+
/**
|
|
95
|
+
* The member product ID.
|
|
96
|
+
* @minLength 1
|
|
97
|
+
* @maxLength 36
|
|
98
|
+
*/
|
|
99
|
+
productId?: string;
|
|
100
|
+
/**
|
|
101
|
+
* The choice derived from the product's option or modifier data
|
|
102
|
+
* for the group's `grouping_customization_id`.
|
|
103
|
+
*/
|
|
104
|
+
choice?: ProductChoice;
|
|
105
|
+
/**
|
|
106
|
+
* The product's URL slug, for storefront navigation between siblings.
|
|
107
|
+
* @minLength 1
|
|
108
|
+
* @maxLength 200
|
|
109
|
+
*/
|
|
110
|
+
slug?: string | null;
|
|
111
|
+
/** The product's inventory availability status, for rendering out-of-stock choices as disabled. */
|
|
112
|
+
inventoryAvailabilityStatus?: AvailabilityStatusWithLiterals;
|
|
113
|
+
/**
|
|
114
|
+
* Membership status. Indicates whether the product qualifies for display in the group.
|
|
115
|
+
* + `ACTIVE` — Product has exactly one choice for the group's customization and is visible.
|
|
116
|
+
* + `HIDDEN` — Merchant manually hid this product from site visitors.
|
|
117
|
+
* + `OUT_OF_SYNC` — Product no longer qualifies for the group. For example, the group's
|
|
118
|
+
* customization was removed from the product, or the product has multiple choices for it.
|
|
119
|
+
*/
|
|
120
|
+
status?: MembershipStatusWithLiterals;
|
|
121
|
+
/**
|
|
122
|
+
* The product's name, materialized for search indexing.
|
|
123
|
+
* @maxLength 100
|
|
124
|
+
*/
|
|
125
|
+
productName?: string | null;
|
|
126
|
+
}
|
|
127
|
+
interface ProductChoice extends ProductChoiceValueOneOf {
|
|
128
|
+
/**
|
|
129
|
+
* Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color).
|
|
130
|
+
* @minLength 3
|
|
131
|
+
* @maxLength 20
|
|
132
|
+
* @format COLOR_HEX
|
|
133
|
+
*/
|
|
134
|
+
colorCode?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Choice ID.
|
|
137
|
+
* @format GUID
|
|
138
|
+
* @readonly
|
|
139
|
+
*/
|
|
140
|
+
_id?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Choice type.
|
|
143
|
+
*
|
|
144
|
+
* > **Notes:**
|
|
145
|
+
* > + For `customizationRenderType: SWATCH_CHOICES`, the supported `choiceType` value is: `ONE_COLOR`.
|
|
146
|
+
* > + For a `customizationRenderType` of `TEXT_CHOICES`, the supported `choiceType` value is: `CHOICE_TEXT`.
|
|
147
|
+
* @immutable
|
|
148
|
+
*/
|
|
149
|
+
choiceType?: ChoiceTypeWithLiterals;
|
|
150
|
+
/**
|
|
151
|
+
* A read-only identifier generated from the choice name.
|
|
152
|
+
*
|
|
153
|
+
* Use `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration).
|
|
154
|
+
* @readonly
|
|
155
|
+
* @minLength 1
|
|
156
|
+
* @maxLength 50
|
|
157
|
+
*/
|
|
158
|
+
key?: string | null;
|
|
159
|
+
/**
|
|
160
|
+
* Choice name.
|
|
161
|
+
* @minLength 1
|
|
162
|
+
* @maxLength 50
|
|
163
|
+
*/
|
|
164
|
+
name?: string;
|
|
165
|
+
}
|
|
166
|
+
/** @oneof */
|
|
167
|
+
interface ProductChoiceValueOneOf {
|
|
168
|
+
/**
|
|
169
|
+
* Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color).
|
|
170
|
+
* @minLength 3
|
|
171
|
+
* @maxLength 20
|
|
172
|
+
* @format COLOR_HEX
|
|
173
|
+
*/
|
|
174
|
+
colorCode?: string;
|
|
175
|
+
}
|
|
176
|
+
declare enum ChoiceType {
|
|
177
|
+
/** For a `customizationRenderType` of `TEXT_CHOICES`. */
|
|
178
|
+
CHOICE_TEXT = "CHOICE_TEXT",
|
|
179
|
+
/** For `customizationRenderType: SWATCH_CHOICES`. */
|
|
180
|
+
ONE_COLOR = "ONE_COLOR"
|
|
181
|
+
}
|
|
182
|
+
/** @enumType */
|
|
183
|
+
type ChoiceTypeWithLiterals = ChoiceType | 'CHOICE_TEXT' | 'ONE_COLOR';
|
|
184
|
+
declare enum AvailabilityStatus {
|
|
185
|
+
/** All variants are in stock and available for purchase. */
|
|
186
|
+
IN_STOCK = "IN_STOCK",
|
|
187
|
+
/** All variants are out of stock. */
|
|
188
|
+
OUT_OF_STOCK = "OUT_OF_STOCK",
|
|
189
|
+
/** Some variants are out of stock and some are in stock and available for purchase. */
|
|
190
|
+
PARTIALLY_OUT_OF_STOCK = "PARTIALLY_OUT_OF_STOCK"
|
|
191
|
+
}
|
|
192
|
+
/** @enumType */
|
|
193
|
+
type AvailabilityStatusWithLiterals = AvailabilityStatus | 'IN_STOCK' | 'OUT_OF_STOCK' | 'PARTIALLY_OUT_OF_STOCK';
|
|
194
|
+
declare enum MembershipStatus {
|
|
195
|
+
/** Product is active and visible in the group. */
|
|
196
|
+
ACTIVE = "ACTIVE",
|
|
197
|
+
/** Merchant manually hid this product from site visitors. */
|
|
198
|
+
HIDDEN = "HIDDEN",
|
|
199
|
+
/** Product no longer qualifies (missing customization, multiple choices, etc.). */
|
|
200
|
+
OUT_OF_SYNC = "OUT_OF_SYNC"
|
|
201
|
+
}
|
|
202
|
+
/** @enumType */
|
|
203
|
+
type MembershipStatusWithLiterals = MembershipStatus | 'ACTIVE' | 'HIDDEN' | 'OUT_OF_SYNC';
|
|
204
|
+
interface GroupingCustomization {
|
|
205
|
+
/**
|
|
206
|
+
* @minLength 1
|
|
207
|
+
* @maxLength 36
|
|
208
|
+
*/
|
|
209
|
+
_id?: string | null;
|
|
210
|
+
/**
|
|
211
|
+
* @minLength 1
|
|
212
|
+
* @maxLength 50
|
|
213
|
+
*/
|
|
214
|
+
key?: string | null;
|
|
215
|
+
/**
|
|
216
|
+
* @minLength 1
|
|
217
|
+
* @maxLength 50
|
|
218
|
+
*/
|
|
219
|
+
name?: string;
|
|
220
|
+
customizationType?: CustomizationTypeWithLiterals;
|
|
221
|
+
customizationRenderType?: CustomizationRenderTypeWithLiterals;
|
|
222
|
+
}
|
|
223
|
+
declare enum CustomizationType {
|
|
224
|
+
PRODUCT_OPTION = "PRODUCT_OPTION",
|
|
225
|
+
MODIFIER = "MODIFIER"
|
|
226
|
+
}
|
|
227
|
+
/** @enumType */
|
|
228
|
+
type CustomizationTypeWithLiterals = CustomizationType | 'PRODUCT_OPTION' | 'MODIFIER';
|
|
229
|
+
declare enum CustomizationRenderType {
|
|
230
|
+
FREE_TEXT = "FREE_TEXT",
|
|
231
|
+
TEXT_CHOICES = "TEXT_CHOICES",
|
|
232
|
+
SWATCH_CHOICES = "SWATCH_CHOICES"
|
|
233
|
+
}
|
|
234
|
+
/** @enumType */
|
|
235
|
+
type CustomizationRenderTypeWithLiterals = CustomizationRenderType | 'FREE_TEXT' | 'TEXT_CHOICES' | 'SWATCH_CHOICES';
|
|
236
|
+
interface ExtendedFields {
|
|
237
|
+
/**
|
|
238
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
239
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
240
|
+
*
|
|
241
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
242
|
+
*
|
|
243
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
244
|
+
*/
|
|
245
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Common object for tags.
|
|
249
|
+
* Should be use as in this example:
|
|
250
|
+
* message Foo {
|
|
251
|
+
* option (.wix.api.decomposite_of) = "wix.commons.v2.tags.Foo";
|
|
252
|
+
* string id = 1;
|
|
253
|
+
* ...
|
|
254
|
+
* Tags tags = 5
|
|
255
|
+
* }
|
|
256
|
+
*
|
|
257
|
+
* example of taggable entity
|
|
258
|
+
* {
|
|
259
|
+
* id: "123"
|
|
260
|
+
* tags: {
|
|
261
|
+
* public_tags: {
|
|
262
|
+
* tag_ids:["11","22"]
|
|
263
|
+
* },
|
|
264
|
+
* private_tags: {
|
|
265
|
+
* tag_ids: ["33", "44"]
|
|
266
|
+
* }
|
|
267
|
+
* }
|
|
268
|
+
* }
|
|
269
|
+
*/
|
|
270
|
+
interface Tags {
|
|
271
|
+
/** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */
|
|
272
|
+
privateTags?: TagList;
|
|
273
|
+
/** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
|
|
274
|
+
publicTags?: TagList;
|
|
275
|
+
}
|
|
276
|
+
interface TagList {
|
|
277
|
+
/**
|
|
278
|
+
* List of tag IDs.
|
|
279
|
+
* @maxSize 100
|
|
280
|
+
* @maxLength 5
|
|
281
|
+
*/
|
|
282
|
+
tagIds?: string[];
|
|
283
|
+
}
|
|
284
|
+
interface ProductGroupTagsModified {
|
|
285
|
+
/** Updated ProductGroup. */
|
|
286
|
+
productGroup?: ProductGroup;
|
|
287
|
+
/** Tags that were assigned to the ProductGroup. */
|
|
288
|
+
assignedTags?: Tags;
|
|
289
|
+
/** Tags that were unassigned from the ProductGroup. */
|
|
290
|
+
unassignedTags?: Tags;
|
|
291
|
+
}
|
|
292
|
+
interface CreateProductGroupRequest {
|
|
293
|
+
/** The product group to create. */
|
|
294
|
+
productGroup: ProductGroup;
|
|
295
|
+
/**
|
|
296
|
+
* Fields to include on the returned `product_group` (e.g. `GROUPING_CUSTOMIZATION`).
|
|
297
|
+
* @maxSize 10
|
|
298
|
+
*/
|
|
299
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
300
|
+
}
|
|
301
|
+
declare enum ProductGroupRequestedFields {
|
|
302
|
+
/** Provides details of the customization referenced by `grouping_customization_id` (see `ProductGroup.grouping_customization`). */
|
|
303
|
+
GROUPING_CUSTOMIZATION = "GROUPING_CUSTOMIZATION"
|
|
304
|
+
}
|
|
305
|
+
/** @enumType */
|
|
306
|
+
type ProductGroupRequestedFieldsWithLiterals = ProductGroupRequestedFields | 'GROUPING_CUSTOMIZATION';
|
|
307
|
+
interface CreateProductGroupResponse {
|
|
308
|
+
/** The created product group. */
|
|
309
|
+
productGroup?: ProductGroup;
|
|
310
|
+
/**
|
|
311
|
+
* Fields to include on the returned `product_group` (e.g. `GROUPING_CUSTOMIZATION`).
|
|
312
|
+
* @maxSize 10
|
|
313
|
+
*/
|
|
314
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
315
|
+
}
|
|
316
|
+
interface UpdateProductGroupRequest {
|
|
317
|
+
/** The product group to update with the desired field values. */
|
|
318
|
+
productGroup: ProductGroup;
|
|
319
|
+
/**
|
|
320
|
+
* Fields to include on the returned `product_group` (e.g. `GROUPING_CUSTOMIZATION`).
|
|
321
|
+
* @maxSize 10
|
|
322
|
+
*/
|
|
323
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
324
|
+
}
|
|
325
|
+
interface UpdateProductGroupResponse {
|
|
326
|
+
/** The updated product group. */
|
|
327
|
+
productGroup?: ProductGroup;
|
|
328
|
+
/**
|
|
329
|
+
* Fields to include on the returned product_group (e.g. GROUPING_CUSTOMIZATION).
|
|
330
|
+
* @maxSize 10
|
|
331
|
+
*/
|
|
332
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
333
|
+
}
|
|
334
|
+
interface DeleteProductGroupRequest {
|
|
335
|
+
/**
|
|
336
|
+
* ID of the product group to delete.
|
|
337
|
+
* @format GUID
|
|
338
|
+
*/
|
|
339
|
+
productGroupId: string;
|
|
340
|
+
}
|
|
341
|
+
interface DeleteProductGroupResponse {
|
|
342
|
+
}
|
|
343
|
+
interface GetProductGroupRequest {
|
|
344
|
+
/**
|
|
345
|
+
* ID of the product group to retrieve.
|
|
346
|
+
* @format GUID
|
|
347
|
+
*/
|
|
348
|
+
productGroupId: string;
|
|
349
|
+
/**
|
|
350
|
+
* Fields to include on the returned product group (e.g. `GROUPING_CUSTOMIZATION`).
|
|
351
|
+
* @maxSize 10
|
|
352
|
+
*/
|
|
353
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
354
|
+
}
|
|
355
|
+
interface GetProductGroupResponse {
|
|
356
|
+
/** The requested product group. */
|
|
357
|
+
productGroup?: ProductGroup;
|
|
358
|
+
/**
|
|
359
|
+
* Optional expansions on each returned product group (e.g. `GROUPING_CUSTOMIZATION`).
|
|
360
|
+
* @maxSize 10
|
|
361
|
+
*/
|
|
362
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
363
|
+
}
|
|
364
|
+
interface QueryProductGroupsRequest {
|
|
365
|
+
/** WQL query — filter, sort, and cursor-based paging criteria. */
|
|
366
|
+
query?: CursorQuery;
|
|
367
|
+
/**
|
|
368
|
+
* Optional expansions on each returned product group (e.g. `GROUPING_CUSTOMIZATION`).
|
|
369
|
+
* @maxSize 10
|
|
370
|
+
*/
|
|
371
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
372
|
+
}
|
|
373
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
374
|
+
/**
|
|
375
|
+
* Cursor paging options.
|
|
376
|
+
*
|
|
377
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
378
|
+
*/
|
|
379
|
+
cursorPaging?: CursorPaging;
|
|
380
|
+
/**
|
|
381
|
+
* Filter object.
|
|
382
|
+
*
|
|
383
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
384
|
+
*/
|
|
385
|
+
filter?: Record<string, any> | null;
|
|
386
|
+
/**
|
|
387
|
+
* Sort object.
|
|
388
|
+
*
|
|
389
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
390
|
+
* @maxSize 5
|
|
391
|
+
*/
|
|
392
|
+
sort?: Sorting[];
|
|
393
|
+
}
|
|
394
|
+
/** @oneof */
|
|
395
|
+
interface CursorQueryPagingMethodOneOf {
|
|
396
|
+
/**
|
|
397
|
+
* Cursor paging options.
|
|
398
|
+
*
|
|
399
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
400
|
+
*/
|
|
401
|
+
cursorPaging?: CursorPaging;
|
|
402
|
+
}
|
|
403
|
+
interface Sorting {
|
|
404
|
+
/**
|
|
405
|
+
* Name of the field to sort by.
|
|
406
|
+
* @maxLength 512
|
|
407
|
+
*/
|
|
408
|
+
fieldName?: string;
|
|
409
|
+
/** Sort order. */
|
|
410
|
+
order?: SortOrderWithLiterals;
|
|
411
|
+
}
|
|
412
|
+
declare enum SortOrder {
|
|
413
|
+
ASC = "ASC",
|
|
414
|
+
DESC = "DESC"
|
|
415
|
+
}
|
|
416
|
+
/** @enumType */
|
|
417
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
418
|
+
interface CursorPaging {
|
|
419
|
+
/**
|
|
420
|
+
* Maximum number of items to return in the results.
|
|
421
|
+
* @max 100
|
|
422
|
+
*/
|
|
423
|
+
limit?: number | null;
|
|
424
|
+
/**
|
|
425
|
+
* Pointer to the next or previous page in the list of results.
|
|
426
|
+
*
|
|
427
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
428
|
+
* Not relevant for the first request.
|
|
429
|
+
* @maxLength 16000
|
|
430
|
+
*/
|
|
431
|
+
cursor?: string | null;
|
|
432
|
+
}
|
|
433
|
+
interface QueryProductGroupsResponse {
|
|
434
|
+
/** List of product groups matching the query. */
|
|
435
|
+
productGroups?: ProductGroup[];
|
|
436
|
+
/** Paging metadata for the next cursor. */
|
|
437
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
438
|
+
/**
|
|
439
|
+
* Optional expansions on each returned product group (e.g. `GROUPING_CUSTOMIZATION`).
|
|
440
|
+
* @maxSize 10
|
|
441
|
+
*/
|
|
442
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
443
|
+
}
|
|
444
|
+
interface CursorPagingMetadata {
|
|
445
|
+
/** Number of items returned in current page. */
|
|
446
|
+
count?: number | null;
|
|
447
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
448
|
+
cursors?: Cursors;
|
|
449
|
+
/**
|
|
450
|
+
* Whether there are more pages to retrieve following the current page.
|
|
451
|
+
*
|
|
452
|
+
* + `true`: Another page of results can be retrieved.
|
|
453
|
+
* + `false`: This is the last page.
|
|
454
|
+
*/
|
|
455
|
+
hasNext?: boolean | null;
|
|
456
|
+
}
|
|
457
|
+
interface Cursors {
|
|
458
|
+
/**
|
|
459
|
+
* Cursor string pointing to the next page in the list of results.
|
|
460
|
+
* @maxLength 16000
|
|
461
|
+
*/
|
|
462
|
+
next?: string | null;
|
|
463
|
+
/**
|
|
464
|
+
* Cursor pointing to the previous page in the list of results.
|
|
465
|
+
* @maxLength 16000
|
|
466
|
+
*/
|
|
467
|
+
prev?: string | null;
|
|
468
|
+
}
|
|
469
|
+
interface SearchProductGroupsRequest {
|
|
470
|
+
/** WQL search — filter, free-text search, sort, and cursor-based paging. */
|
|
471
|
+
search?: CursorSearch;
|
|
472
|
+
/**
|
|
473
|
+
* Optional expansions on each returned product group (e.g. `GROUPING_CUSTOMIZATION`).
|
|
474
|
+
* @maxSize 10
|
|
475
|
+
*/
|
|
476
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
477
|
+
}
|
|
478
|
+
interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
479
|
+
/**
|
|
480
|
+
* Cursor paging options.
|
|
481
|
+
*
|
|
482
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
483
|
+
*/
|
|
484
|
+
cursorPaging?: CursorPaging;
|
|
485
|
+
/**
|
|
486
|
+
* Filter object.
|
|
487
|
+
*
|
|
488
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
489
|
+
*/
|
|
490
|
+
filter?: Record<string, any> | null;
|
|
491
|
+
/**
|
|
492
|
+
* List of sort objects.
|
|
493
|
+
*
|
|
494
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
495
|
+
* @maxSize 10
|
|
496
|
+
*/
|
|
497
|
+
sort?: Sorting[];
|
|
498
|
+
/**
|
|
499
|
+
* Aggregations are a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.
|
|
500
|
+
* @maxSize 10
|
|
501
|
+
*/
|
|
502
|
+
aggregations?: Aggregation[];
|
|
503
|
+
/** Free text to match in searchable fields. */
|
|
504
|
+
search?: SearchDetails;
|
|
505
|
+
/**
|
|
506
|
+
* UTC offset or IANA time zone. Valid values are
|
|
507
|
+
* ISO 8601 UTC offsets, such as +02:00 or -06:00,
|
|
508
|
+
* and IANA time zone IDs, such as Europe/Rome.
|
|
509
|
+
*
|
|
510
|
+
* Affects all filters and aggregations returned values.
|
|
511
|
+
* You may override this behavior in a specific filter by providing
|
|
512
|
+
* timestamps including time zone. For example, `"2023-12-20T10:52:34.795Z"`.
|
|
513
|
+
* @maxLength 50
|
|
514
|
+
*/
|
|
515
|
+
timeZone?: string | null;
|
|
516
|
+
}
|
|
517
|
+
/** @oneof */
|
|
518
|
+
interface CursorSearchPagingMethodOneOf {
|
|
519
|
+
/**
|
|
520
|
+
* Cursor paging options.
|
|
521
|
+
*
|
|
522
|
+
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
523
|
+
*/
|
|
524
|
+
cursorPaging?: CursorPaging;
|
|
525
|
+
}
|
|
526
|
+
interface Aggregation extends AggregationKindOneOf {
|
|
527
|
+
/** Value aggregation. */
|
|
528
|
+
value?: ValueAggregation;
|
|
529
|
+
/** Range aggregation. */
|
|
530
|
+
range?: RangeAggregation;
|
|
531
|
+
/** Scalar aggregation. */
|
|
532
|
+
scalar?: ScalarAggregation;
|
|
533
|
+
/** Date histogram aggregation. */
|
|
534
|
+
dateHistogram?: DateHistogramAggregation;
|
|
535
|
+
/** Nested aggregation. */
|
|
536
|
+
nested?: NestedAggregation;
|
|
537
|
+
/**
|
|
538
|
+
* User-defined name of aggregation, should be unique, will appear in aggregation results.
|
|
539
|
+
* @maxLength 100
|
|
540
|
+
*/
|
|
541
|
+
name?: string | null;
|
|
542
|
+
/** Type of aggregation, client must provide matching aggregation field below. */
|
|
543
|
+
type?: AggregationTypeWithLiterals;
|
|
544
|
+
/**
|
|
545
|
+
* Field to aggregate by, use dot notation to specify json path.
|
|
546
|
+
* @maxLength 200
|
|
547
|
+
*/
|
|
548
|
+
fieldPath?: string;
|
|
549
|
+
}
|
|
550
|
+
/** @oneof */
|
|
551
|
+
interface AggregationKindOneOf {
|
|
552
|
+
/** Value aggregation. */
|
|
553
|
+
value?: ValueAggregation;
|
|
554
|
+
/** Range aggregation. */
|
|
555
|
+
range?: RangeAggregation;
|
|
556
|
+
/** Scalar aggregation. */
|
|
557
|
+
scalar?: ScalarAggregation;
|
|
558
|
+
/** Date histogram aggregation. */
|
|
559
|
+
dateHistogram?: DateHistogramAggregation;
|
|
560
|
+
/** Nested aggregation. */
|
|
561
|
+
nested?: NestedAggregation;
|
|
562
|
+
}
|
|
563
|
+
interface RangeBucket {
|
|
564
|
+
/** Inclusive lower bound of the range. Required if `to` is not provided. */
|
|
565
|
+
from?: number | null;
|
|
566
|
+
/** Exclusive upper bound of the range. Required if `from` is not provided. */
|
|
567
|
+
to?: number | null;
|
|
568
|
+
}
|
|
569
|
+
declare enum SortType {
|
|
570
|
+
/** Sort by number of matches. */
|
|
571
|
+
COUNT = "COUNT",
|
|
572
|
+
/** Sort by value of the field alphabetically. */
|
|
573
|
+
VALUE = "VALUE"
|
|
574
|
+
}
|
|
575
|
+
/** @enumType */
|
|
576
|
+
type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE';
|
|
577
|
+
declare enum SortDirection {
|
|
578
|
+
/** Sort in descending order. */
|
|
579
|
+
DESC = "DESC",
|
|
580
|
+
/** Sort in ascending order. */
|
|
581
|
+
ASC = "ASC"
|
|
582
|
+
}
|
|
583
|
+
/** @enumType */
|
|
584
|
+
type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC';
|
|
585
|
+
declare enum MissingValues {
|
|
586
|
+
/** Exclude missing values from the aggregation results. */
|
|
587
|
+
EXCLUDE = "EXCLUDE",
|
|
588
|
+
/** Include missing values in the aggregation results. */
|
|
589
|
+
INCLUDE = "INCLUDE"
|
|
590
|
+
}
|
|
591
|
+
/** @enumType */
|
|
592
|
+
type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';
|
|
593
|
+
interface IncludeMissingValuesOptions {
|
|
594
|
+
/**
|
|
595
|
+
* Specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ...
|
|
596
|
+
* @maxLength 20
|
|
597
|
+
*/
|
|
598
|
+
addToBucket?: string;
|
|
599
|
+
}
|
|
600
|
+
declare enum ScalarType {
|
|
601
|
+
/** Count of distinct values. */
|
|
602
|
+
COUNT_DISTINCT = "COUNT_DISTINCT",
|
|
603
|
+
/** Minimum value. */
|
|
604
|
+
MIN = "MIN",
|
|
605
|
+
/** Maximum value. */
|
|
606
|
+
MAX = "MAX"
|
|
607
|
+
}
|
|
608
|
+
/** @enumType */
|
|
609
|
+
type ScalarTypeWithLiterals = ScalarType | 'COUNT_DISTINCT' | 'MIN' | 'MAX';
|
|
610
|
+
interface ValueAggregation extends ValueAggregationOptionsOneOf {
|
|
611
|
+
/** Options for including missing values. */
|
|
612
|
+
includeOptions?: IncludeMissingValuesOptions;
|
|
613
|
+
/** Whether to sort by number of matches or value of the field. */
|
|
614
|
+
sortType?: SortTypeWithLiterals;
|
|
615
|
+
/** Whether to sort in ascending or descending order. */
|
|
616
|
+
sortDirection?: SortDirectionWithLiterals;
|
|
617
|
+
/** How many aggregations to return. Can be between 1 and 250. 10 is the default. */
|
|
618
|
+
limit?: number | null;
|
|
619
|
+
/** Whether to include or exclude missing values from the aggregation results. Default: `EXCLUDE`. */
|
|
620
|
+
missingValues?: MissingValuesWithLiterals;
|
|
621
|
+
}
|
|
622
|
+
/** @oneof */
|
|
623
|
+
interface ValueAggregationOptionsOneOf {
|
|
624
|
+
/** Options for including missing values. */
|
|
625
|
+
includeOptions?: IncludeMissingValuesOptions;
|
|
626
|
+
}
|
|
627
|
+
declare enum NestedAggregationType {
|
|
628
|
+
/** An aggregation where result buckets are dynamically built - one per unique value. */
|
|
629
|
+
VALUE = "VALUE",
|
|
630
|
+
/** An aggregation, where user can define set of ranges - each representing a bucket. */
|
|
631
|
+
RANGE = "RANGE",
|
|
632
|
+
/** A single-value metric aggregation. For example, min, max, sum, avg. */
|
|
633
|
+
SCALAR = "SCALAR",
|
|
634
|
+
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.). */
|
|
635
|
+
DATE_HISTOGRAM = "DATE_HISTOGRAM"
|
|
636
|
+
}
|
|
637
|
+
/** @enumType */
|
|
638
|
+
type NestedAggregationTypeWithLiterals = NestedAggregationType | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM';
|
|
639
|
+
interface RangeAggregation {
|
|
640
|
+
/**
|
|
641
|
+
* List of range buckets, where during aggregation each entity will be placed in the first bucket its value falls into, based on the provided range bounds.
|
|
642
|
+
* @maxSize 50
|
|
643
|
+
*/
|
|
644
|
+
buckets?: RangeBucket[];
|
|
645
|
+
}
|
|
646
|
+
interface ScalarAggregation {
|
|
647
|
+
/** Define the operator for the scalar aggregation. */
|
|
648
|
+
type?: ScalarTypeWithLiterals;
|
|
649
|
+
}
|
|
650
|
+
interface DateHistogramAggregation {
|
|
651
|
+
/** Interval for date histogram aggregation. */
|
|
652
|
+
interval?: IntervalWithLiterals;
|
|
653
|
+
}
|
|
654
|
+
declare enum Interval {
|
|
655
|
+
/** Yearly interval */
|
|
656
|
+
YEAR = "YEAR",
|
|
657
|
+
/** Monthly interval */
|
|
658
|
+
MONTH = "MONTH",
|
|
659
|
+
/** Weekly interval */
|
|
660
|
+
WEEK = "WEEK",
|
|
661
|
+
/** Daily interval */
|
|
662
|
+
DAY = "DAY",
|
|
663
|
+
/** Hourly interval */
|
|
664
|
+
HOUR = "HOUR",
|
|
665
|
+
/** Minute interval */
|
|
666
|
+
MINUTE = "MINUTE",
|
|
667
|
+
/** Second interval */
|
|
668
|
+
SECOND = "SECOND"
|
|
669
|
+
}
|
|
670
|
+
/** @enumType */
|
|
671
|
+
type IntervalWithLiterals = Interval | 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | 'MINUTE' | 'SECOND';
|
|
672
|
+
interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
|
|
673
|
+
/** Value aggregation. */
|
|
674
|
+
value?: ValueAggregation;
|
|
675
|
+
/** Range aggregation. */
|
|
676
|
+
range?: RangeAggregation;
|
|
677
|
+
/** Scalar aggregation. */
|
|
678
|
+
scalar?: ScalarAggregation;
|
|
679
|
+
/** Date histogram aggregation. */
|
|
680
|
+
dateHistogram?: DateHistogramAggregation;
|
|
681
|
+
/**
|
|
682
|
+
* User-defined name of aggregation, should be unique, will appear in aggregation results.
|
|
683
|
+
* @maxLength 100
|
|
684
|
+
*/
|
|
685
|
+
name?: string | null;
|
|
686
|
+
/** Type of aggregation, client must provide matching aggregation field below. */
|
|
687
|
+
type?: NestedAggregationTypeWithLiterals;
|
|
688
|
+
/**
|
|
689
|
+
* Field to aggregate by, use dot notation to specify json path.
|
|
690
|
+
* @maxLength 200
|
|
691
|
+
*/
|
|
692
|
+
fieldPath?: string;
|
|
693
|
+
}
|
|
694
|
+
/** @oneof */
|
|
695
|
+
interface NestedAggregationItemKindOneOf {
|
|
696
|
+
/** Value aggregation. */
|
|
697
|
+
value?: ValueAggregation;
|
|
698
|
+
/** Range aggregation. */
|
|
699
|
+
range?: RangeAggregation;
|
|
700
|
+
/** Scalar aggregation. */
|
|
701
|
+
scalar?: ScalarAggregation;
|
|
702
|
+
/** Date histogram aggregation. */
|
|
703
|
+
dateHistogram?: DateHistogramAggregation;
|
|
704
|
+
}
|
|
705
|
+
declare enum AggregationType {
|
|
706
|
+
/** An aggregation where result buckets are dynamically built - one per unique value. */
|
|
707
|
+
VALUE = "VALUE",
|
|
708
|
+
/** An aggregation, where user can define set of ranges - each representing a bucket. */
|
|
709
|
+
RANGE = "RANGE",
|
|
710
|
+
/** A single-value metric aggregation. For example, min, max, sum, avg. */
|
|
711
|
+
SCALAR = "SCALAR",
|
|
712
|
+
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
|
|
713
|
+
DATE_HISTOGRAM = "DATE_HISTOGRAM",
|
|
714
|
+
/** Multi-level aggregation, where each next aggregation is nested within previous one. */
|
|
715
|
+
NESTED = "NESTED"
|
|
716
|
+
}
|
|
717
|
+
/** @enumType */
|
|
718
|
+
type AggregationTypeWithLiterals = AggregationType | 'VALUE' | 'RANGE' | 'SCALAR' | 'DATE_HISTOGRAM' | 'NESTED';
|
|
719
|
+
/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one. */
|
|
720
|
+
interface NestedAggregation {
|
|
721
|
+
/**
|
|
722
|
+
* Flattened list of aggregations, where each next aggregation is nested within previous one.
|
|
723
|
+
* @minSize 2
|
|
724
|
+
* @maxSize 3
|
|
725
|
+
*/
|
|
726
|
+
nestedAggregations?: NestedAggregationItem[];
|
|
727
|
+
}
|
|
728
|
+
interface SearchDetails {
|
|
729
|
+
/** Defines how separate search terms in `expression` are combined. */
|
|
730
|
+
mode?: ModeWithLiterals;
|
|
731
|
+
/**
|
|
732
|
+
* Search term or expression.
|
|
733
|
+
* @maxLength 100
|
|
734
|
+
*/
|
|
735
|
+
expression?: string | null;
|
|
736
|
+
/**
|
|
737
|
+
* Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path.
|
|
738
|
+
* @maxLength 200
|
|
739
|
+
* @maxSize 20
|
|
740
|
+
*/
|
|
741
|
+
fields?: string[];
|
|
742
|
+
/** Whether to use auto fuzzy search (allowing typos by a managed proximity algorithm). */
|
|
743
|
+
fuzzy?: boolean;
|
|
744
|
+
}
|
|
745
|
+
declare enum Mode {
|
|
746
|
+
/** Any of the search terms must be present. */
|
|
747
|
+
OR = "OR",
|
|
748
|
+
/** All search terms must be present. */
|
|
749
|
+
AND = "AND"
|
|
750
|
+
}
|
|
751
|
+
/** @enumType */
|
|
752
|
+
type ModeWithLiterals = Mode | 'OR' | 'AND';
|
|
753
|
+
interface SearchProductGroupsResponse {
|
|
754
|
+
/** List of product groups matching the search. */
|
|
755
|
+
productGroups?: ProductGroup[];
|
|
756
|
+
/** Paging metadata for the next cursor. */
|
|
757
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
758
|
+
/** Aggregation data from the search. */
|
|
759
|
+
aggregationData?: AggregationData;
|
|
760
|
+
/**
|
|
761
|
+
* Optional expansions on each returned product group (e.g. `GROUPING_CUSTOMIZATION`).
|
|
762
|
+
* @maxSize 10
|
|
763
|
+
*/
|
|
764
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
765
|
+
}
|
|
766
|
+
interface AggregationData {
|
|
767
|
+
/**
|
|
768
|
+
* key = aggregation name (as derived from search request).
|
|
769
|
+
* @maxSize 10000
|
|
770
|
+
*/
|
|
771
|
+
results?: AggregationResults[];
|
|
772
|
+
}
|
|
773
|
+
interface ValueAggregationResult {
|
|
774
|
+
/**
|
|
775
|
+
* Value of the field.
|
|
776
|
+
* @maxLength 100
|
|
777
|
+
*/
|
|
778
|
+
value?: string;
|
|
779
|
+
/** Count of entities with this value. */
|
|
780
|
+
count?: number;
|
|
781
|
+
}
|
|
782
|
+
interface RangeAggregationResult {
|
|
783
|
+
/** Inclusive lower bound of the range. */
|
|
784
|
+
from?: number | null;
|
|
785
|
+
/** Exclusive upper bound of the range. */
|
|
786
|
+
to?: number | null;
|
|
787
|
+
/** Count of entities in this range. */
|
|
788
|
+
count?: number;
|
|
789
|
+
}
|
|
790
|
+
interface NestedAggregationResults extends NestedAggregationResultsResultOneOf {
|
|
791
|
+
/** Value aggregation results. */
|
|
792
|
+
values?: ValueResults;
|
|
793
|
+
/** Range aggregation results. */
|
|
794
|
+
ranges?: RangeResults;
|
|
795
|
+
/** Scalar aggregation results. */
|
|
796
|
+
scalar?: AggregationResultsScalarResult;
|
|
797
|
+
/**
|
|
798
|
+
* User-defined name of aggregation, matches the one provided in request.
|
|
799
|
+
* @maxLength 100
|
|
800
|
+
*/
|
|
801
|
+
name?: string;
|
|
802
|
+
/** Type of aggregation that matches result. */
|
|
803
|
+
type?: AggregationTypeWithLiterals;
|
|
804
|
+
/**
|
|
805
|
+
* Field to aggregate by, matches the one provided in request.
|
|
806
|
+
* @maxLength 200
|
|
807
|
+
*/
|
|
808
|
+
fieldPath?: string;
|
|
809
|
+
}
|
|
810
|
+
/** @oneof */
|
|
811
|
+
interface NestedAggregationResultsResultOneOf {
|
|
812
|
+
/** Value aggregation results. */
|
|
813
|
+
values?: ValueResults;
|
|
814
|
+
/** Range aggregation results. */
|
|
815
|
+
ranges?: RangeResults;
|
|
816
|
+
/** Scalar aggregation results. */
|
|
817
|
+
scalar?: AggregationResultsScalarResult;
|
|
818
|
+
}
|
|
819
|
+
interface ValueResults {
|
|
820
|
+
/**
|
|
821
|
+
* List of value aggregations.
|
|
822
|
+
* @maxSize 250
|
|
823
|
+
*/
|
|
824
|
+
results?: ValueAggregationResult[];
|
|
825
|
+
}
|
|
826
|
+
interface RangeResults {
|
|
827
|
+
/**
|
|
828
|
+
* List of ranges returned in same order as requested.
|
|
829
|
+
* @maxSize 50
|
|
830
|
+
*/
|
|
831
|
+
results?: RangeAggregationResult[];
|
|
832
|
+
}
|
|
833
|
+
interface AggregationResultsScalarResult {
|
|
834
|
+
/** Type of scalar aggregation. */
|
|
835
|
+
type?: ScalarTypeWithLiterals;
|
|
836
|
+
/** Value of the scalar aggregation. */
|
|
837
|
+
value?: number;
|
|
838
|
+
}
|
|
839
|
+
interface NestedValueAggregationResult {
|
|
840
|
+
/**
|
|
841
|
+
* Value of the field.
|
|
842
|
+
* @maxLength 1000
|
|
843
|
+
*/
|
|
844
|
+
value?: string;
|
|
845
|
+
/** Nested aggregations. */
|
|
846
|
+
nestedResults?: NestedAggregationResults;
|
|
847
|
+
}
|
|
848
|
+
interface ValueResult {
|
|
849
|
+
/**
|
|
850
|
+
* Value of the field.
|
|
851
|
+
* @maxLength 1000
|
|
852
|
+
*/
|
|
853
|
+
value?: string;
|
|
854
|
+
/** Count of entities with this value. */
|
|
855
|
+
count?: number | null;
|
|
856
|
+
}
|
|
857
|
+
interface RangeResult {
|
|
858
|
+
/** Inclusive lower bound of the range. */
|
|
859
|
+
from?: number | null;
|
|
860
|
+
/** Exclusive upper bound of the range. */
|
|
861
|
+
to?: number | null;
|
|
862
|
+
/** Count of entities in this range. */
|
|
863
|
+
count?: number | null;
|
|
864
|
+
}
|
|
865
|
+
interface ScalarResult {
|
|
866
|
+
/** Value of the scalar aggregation. */
|
|
867
|
+
value?: number;
|
|
868
|
+
}
|
|
869
|
+
interface NestedResultValue extends NestedResultValueResultOneOf {
|
|
870
|
+
/** Value aggregation result. */
|
|
871
|
+
value?: ValueResult;
|
|
872
|
+
/** Range aggregation result. */
|
|
873
|
+
range?: RangeResult;
|
|
874
|
+
/** Scalar aggregation result. */
|
|
875
|
+
scalar?: ScalarResult;
|
|
876
|
+
/** Date histogram aggregation result. */
|
|
877
|
+
dateHistogram?: ValueResult;
|
|
878
|
+
}
|
|
879
|
+
/** @oneof */
|
|
880
|
+
interface NestedResultValueResultOneOf {
|
|
881
|
+
/** Value aggregation result. */
|
|
882
|
+
value?: ValueResult;
|
|
883
|
+
/** Range aggregation result. */
|
|
884
|
+
range?: RangeResult;
|
|
885
|
+
/** Scalar aggregation result. */
|
|
886
|
+
scalar?: ScalarResult;
|
|
887
|
+
/** Date histogram aggregation result. */
|
|
888
|
+
dateHistogram?: ValueResult;
|
|
889
|
+
}
|
|
890
|
+
interface Results {
|
|
891
|
+
/** List of nested aggregations. */
|
|
892
|
+
results?: Record<string, NestedResultValue>;
|
|
893
|
+
}
|
|
894
|
+
interface DateHistogramResult {
|
|
895
|
+
/**
|
|
896
|
+
* Date in ISO 8601 format.
|
|
897
|
+
* @maxLength 100
|
|
898
|
+
*/
|
|
899
|
+
value?: string;
|
|
900
|
+
/** Count of documents in the bucket. */
|
|
901
|
+
count?: number;
|
|
902
|
+
}
|
|
903
|
+
interface GroupByValueResults {
|
|
904
|
+
/**
|
|
905
|
+
* List of value aggregations.
|
|
906
|
+
* @maxSize 1000
|
|
907
|
+
*/
|
|
908
|
+
results?: NestedValueAggregationResult[];
|
|
909
|
+
}
|
|
910
|
+
interface DateHistogramResults {
|
|
911
|
+
/**
|
|
912
|
+
* List of date histogram aggregations.
|
|
913
|
+
* @maxSize 200
|
|
914
|
+
*/
|
|
915
|
+
results?: DateHistogramResult[];
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* Results of `NESTED` aggregation type in a flattened form.
|
|
919
|
+
* Aggregations in resulting array are keyed by requested aggregation `name`.
|
|
920
|
+
*/
|
|
921
|
+
interface NestedResults {
|
|
922
|
+
/**
|
|
923
|
+
* List of nested aggregations.
|
|
924
|
+
* @maxSize 1000
|
|
925
|
+
*/
|
|
926
|
+
results?: Results[];
|
|
927
|
+
}
|
|
928
|
+
interface AggregationResults extends AggregationResultsResultOneOf {
|
|
929
|
+
/** Value aggregation results. */
|
|
930
|
+
values?: ValueResults;
|
|
931
|
+
/** Range aggregation results. */
|
|
932
|
+
ranges?: RangeResults;
|
|
933
|
+
/** Scalar aggregation results. */
|
|
934
|
+
scalar?: AggregationResultsScalarResult;
|
|
935
|
+
/** Group by value aggregation results. */
|
|
936
|
+
groupedByValue?: GroupByValueResults;
|
|
937
|
+
/** Date histogram aggregation results. */
|
|
938
|
+
dateHistogram?: DateHistogramResults;
|
|
939
|
+
/** Nested aggregation results. */
|
|
940
|
+
nested?: NestedResults;
|
|
941
|
+
/**
|
|
942
|
+
* User-defined name of aggregation as derived from search request.
|
|
943
|
+
* @maxLength 100
|
|
944
|
+
*/
|
|
945
|
+
name?: string;
|
|
946
|
+
/** Type of aggregation that must match provided kind as derived from search request. */
|
|
947
|
+
type?: AggregationTypeWithLiterals;
|
|
948
|
+
/**
|
|
949
|
+
* Field to aggregate by as derived from search request.
|
|
950
|
+
* @maxLength 200
|
|
951
|
+
*/
|
|
952
|
+
fieldPath?: string;
|
|
953
|
+
}
|
|
954
|
+
/** @oneof */
|
|
955
|
+
interface AggregationResultsResultOneOf {
|
|
956
|
+
/** Value aggregation results. */
|
|
957
|
+
values?: ValueResults;
|
|
958
|
+
/** Range aggregation results. */
|
|
959
|
+
ranges?: RangeResults;
|
|
960
|
+
/** Scalar aggregation results. */
|
|
961
|
+
scalar?: AggregationResultsScalarResult;
|
|
962
|
+
/** Group by value aggregation results. */
|
|
963
|
+
groupedByValue?: GroupByValueResults;
|
|
964
|
+
/** Date histogram aggregation results. */
|
|
965
|
+
dateHistogram?: DateHistogramResults;
|
|
966
|
+
/** Nested aggregation results. */
|
|
967
|
+
nested?: NestedResults;
|
|
968
|
+
}
|
|
969
|
+
interface BulkCreateProductGroupsRequest {
|
|
970
|
+
/**
|
|
971
|
+
* List of product groups to create.
|
|
972
|
+
* @minSize 1
|
|
973
|
+
* @maxSize 100
|
|
974
|
+
*/
|
|
975
|
+
productGroups: ProductGroup[];
|
|
976
|
+
/** Whether to return the created product group entities in the response. */
|
|
977
|
+
returnEntity?: boolean;
|
|
978
|
+
/**
|
|
979
|
+
* Fields to include on each returned `item` (e.g. `GROUPING_CUSTOMIZATION`).
|
|
980
|
+
* @maxSize 10
|
|
981
|
+
*/
|
|
982
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
983
|
+
}
|
|
984
|
+
interface BulkCreateProductGroupsResponse {
|
|
985
|
+
/**
|
|
986
|
+
* Results for each product group creation attempt, in request order.
|
|
987
|
+
* @minSize 1
|
|
988
|
+
* @maxSize 100
|
|
989
|
+
*/
|
|
990
|
+
results?: BulkProductGroupResult[];
|
|
991
|
+
/** Aggregated success/failure counts. */
|
|
992
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
993
|
+
/**
|
|
994
|
+
* Fields to include on each returned `item` (e.g. `GROUPING_CUSTOMIZATION`).
|
|
995
|
+
* @maxSize 10
|
|
996
|
+
*/
|
|
997
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
998
|
+
}
|
|
999
|
+
interface ItemMetadata {
|
|
1000
|
+
/**
|
|
1001
|
+
* Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.
|
|
1002
|
+
* @format GUID
|
|
1003
|
+
*/
|
|
1004
|
+
_id?: string | null;
|
|
1005
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
1006
|
+
originalIndex?: number;
|
|
1007
|
+
/** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */
|
|
1008
|
+
success?: boolean;
|
|
1009
|
+
/** Details about the error in case of failure. */
|
|
1010
|
+
error?: ApplicationError;
|
|
1011
|
+
}
|
|
1012
|
+
interface ApplicationError {
|
|
1013
|
+
/** Error code. */
|
|
1014
|
+
code?: string;
|
|
1015
|
+
/** Description of the error. */
|
|
1016
|
+
description?: string;
|
|
1017
|
+
/** Data related to the error. */
|
|
1018
|
+
data?: Record<string, any> | null;
|
|
1019
|
+
}
|
|
1020
|
+
/** The result of a single item in a bulk create operation. */
|
|
1021
|
+
interface BulkProductGroupResult {
|
|
1022
|
+
itemMetadata?: ItemMetadata;
|
|
1023
|
+
/** Only populated if `return_entity` was `true` and the operation succeeded. */
|
|
1024
|
+
item?: ProductGroup;
|
|
1025
|
+
}
|
|
1026
|
+
interface BulkActionMetadata {
|
|
1027
|
+
/** Number of items that were successfully processed. */
|
|
1028
|
+
totalSuccesses?: number;
|
|
1029
|
+
/** Number of items that couldn't be processed. */
|
|
1030
|
+
totalFailures?: number;
|
|
1031
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
1032
|
+
undetailedFailures?: number;
|
|
1033
|
+
}
|
|
1034
|
+
interface BulkUpdateProductGroupsRequest {
|
|
1035
|
+
/**
|
|
1036
|
+
* List of product groups to update, each with its own field mask.
|
|
1037
|
+
* @minSize 1
|
|
1038
|
+
* @maxSize 100
|
|
1039
|
+
*/
|
|
1040
|
+
productGroups: MaskedProductGroup[];
|
|
1041
|
+
/** Whether to return the updated product group entities in the response. */
|
|
1042
|
+
returnEntity?: boolean;
|
|
1043
|
+
/**
|
|
1044
|
+
* Fields to include on each returned `item` (e.g. `GROUPING_CUSTOMIZATION`).
|
|
1045
|
+
* @maxSize 10
|
|
1046
|
+
*/
|
|
1047
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
1048
|
+
}
|
|
1049
|
+
interface MaskedProductGroup {
|
|
1050
|
+
/** The product group to update. `product_group.id` and `product_group.revision` are required. */
|
|
1051
|
+
productGroup?: ProductGroup;
|
|
1052
|
+
}
|
|
1053
|
+
interface BulkUpdateProductGroupsResponse {
|
|
1054
|
+
/**
|
|
1055
|
+
* Results for each product group update attempt, in request order.
|
|
1056
|
+
* @minSize 1
|
|
1057
|
+
* @maxSize 100
|
|
1058
|
+
*/
|
|
1059
|
+
results?: BulkUpdateProductGroupsResponseBulkProductGroupResult[];
|
|
1060
|
+
/** Aggregated success/failure counts. */
|
|
1061
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
1062
|
+
}
|
|
1063
|
+
/** The result of a single item in a bulk update operation. */
|
|
1064
|
+
interface BulkUpdateProductGroupsResponseBulkProductGroupResult {
|
|
1065
|
+
itemMetadata?: ItemMetadata;
|
|
1066
|
+
/** Only populated if `return_entity` was `true` and the operation succeeded. */
|
|
1067
|
+
item?: ProductGroup;
|
|
1068
|
+
}
|
|
1069
|
+
interface AssignProductsToProductGroupRequest {
|
|
1070
|
+
/**
|
|
1071
|
+
* ID of the product group to assign products to.
|
|
1072
|
+
* @format GUID
|
|
1073
|
+
*/
|
|
1074
|
+
productGroupId: string;
|
|
1075
|
+
/**
|
|
1076
|
+
* IDs of the products to assign. Duplicates are silently de-duplicated. Products already in the group are skipped.
|
|
1077
|
+
* @minSize 1
|
|
1078
|
+
* @maxSize 100
|
|
1079
|
+
* @minLength 1
|
|
1080
|
+
* @maxLength 36
|
|
1081
|
+
*/
|
|
1082
|
+
productIds: string[];
|
|
1083
|
+
}
|
|
1084
|
+
interface AssignProductsToProductGroupResponse {
|
|
1085
|
+
/** Per-item results, one entry per product ID in the request. */
|
|
1086
|
+
results?: ProductAssignmentResult[];
|
|
1087
|
+
}
|
|
1088
|
+
interface ProductAssignmentResult {
|
|
1089
|
+
/** ID of the product. */
|
|
1090
|
+
productId?: string;
|
|
1091
|
+
/** Whether the assignment succeeded. */
|
|
1092
|
+
success?: boolean;
|
|
1093
|
+
/** Error details if the assignment failed. */
|
|
1094
|
+
error?: ApplicationError;
|
|
1095
|
+
}
|
|
1096
|
+
interface UnassignProductsFromProductGroupRequest {
|
|
1097
|
+
/**
|
|
1098
|
+
* ID of the product group to unassign products from.
|
|
1099
|
+
* @format GUID
|
|
1100
|
+
*/
|
|
1101
|
+
productGroupId: string;
|
|
1102
|
+
/**
|
|
1103
|
+
* IDs of the products to unassign. Duplicates are silently de-duplicated. All products must currently be members of the group.
|
|
1104
|
+
* @minSize 1
|
|
1105
|
+
* @maxSize 100
|
|
1106
|
+
* @minLength 1
|
|
1107
|
+
* @maxLength 36
|
|
1108
|
+
*/
|
|
1109
|
+
productIds: string[];
|
|
1110
|
+
}
|
|
1111
|
+
interface UnassignProductsFromProductGroupResponse {
|
|
1112
|
+
/** Per-item results, one entry per product ID in the request. */
|
|
1113
|
+
results?: ProductUnassignmentResult[];
|
|
1114
|
+
}
|
|
1115
|
+
interface ProductUnassignmentResult {
|
|
1116
|
+
/** ID of the product */
|
|
1117
|
+
productId?: string;
|
|
1118
|
+
/** Whether the unassignment succeeded. */
|
|
1119
|
+
success?: boolean;
|
|
1120
|
+
/** Error details if the unassignment failed. */
|
|
1121
|
+
error?: ApplicationError;
|
|
1122
|
+
}
|
|
1123
|
+
interface BulkDeleteProductGroupsRequest {
|
|
1124
|
+
/**
|
|
1125
|
+
* IDs of the product groups to delete.
|
|
1126
|
+
* @format GUID
|
|
1127
|
+
* @minSize 1
|
|
1128
|
+
* @maxSize 100
|
|
1129
|
+
*/
|
|
1130
|
+
productGroupIds: string[];
|
|
1131
|
+
}
|
|
1132
|
+
interface BulkDeleteProductGroupsResponse {
|
|
1133
|
+
/**
|
|
1134
|
+
* Results for each product group deletion attempt, in request order.
|
|
1135
|
+
* @minSize 1
|
|
1136
|
+
* @maxSize 100
|
|
1137
|
+
*/
|
|
1138
|
+
results?: BulkDeleteProductGroupsResponseBulkProductGroupResult[];
|
|
1139
|
+
/** Aggregated success/failure counts. */
|
|
1140
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
1141
|
+
}
|
|
1142
|
+
interface BulkDeleteProductGroupsResponseBulkProductGroupResult {
|
|
1143
|
+
/** Metadata regarding the specific single delete operation. */
|
|
1144
|
+
itemMetadata?: ItemMetadata;
|
|
1145
|
+
}
|
|
1146
|
+
interface BulkUpdateProductGroupTagsRequest {
|
|
1147
|
+
/**
|
|
1148
|
+
* List of product group IDs whose tags will be updated.
|
|
1149
|
+
* @minSize 1
|
|
1150
|
+
* @maxSize 100
|
|
1151
|
+
* @format GUID
|
|
1152
|
+
*/
|
|
1153
|
+
productGroupIds: string[];
|
|
1154
|
+
/** List of tags to assign. */
|
|
1155
|
+
assignTags?: Tags;
|
|
1156
|
+
/** List of tags to unassign. */
|
|
1157
|
+
unassignTags?: Tags;
|
|
1158
|
+
}
|
|
1159
|
+
interface BulkUpdateProductGroupTagsResponse {
|
|
1160
|
+
/**
|
|
1161
|
+
* Results.
|
|
1162
|
+
* @minSize 1
|
|
1163
|
+
* @maxSize 100
|
|
1164
|
+
*/
|
|
1165
|
+
results?: BulkUpdateProductGroupTagsResult[];
|
|
1166
|
+
/** Aggregated success/failure counts. */
|
|
1167
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
1168
|
+
}
|
|
1169
|
+
interface BulkUpdateProductGroupTagsResult {
|
|
1170
|
+
/** Metadata regarding the specific single update operation. */
|
|
1171
|
+
itemMetadata?: ItemMetadata;
|
|
1172
|
+
}
|
|
1173
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
1174
|
+
createdEvent?: EntityCreatedEvent;
|
|
1175
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
1176
|
+
deletedEvent?: EntityDeletedEvent;
|
|
1177
|
+
actionEvent?: ActionEvent;
|
|
1178
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1179
|
+
_id?: string;
|
|
1180
|
+
/**
|
|
1181
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1182
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1183
|
+
*/
|
|
1184
|
+
entityFqdn?: string;
|
|
1185
|
+
/**
|
|
1186
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1187
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1188
|
+
*/
|
|
1189
|
+
slug?: string;
|
|
1190
|
+
/** ID of the entity associated with the event. */
|
|
1191
|
+
entityId?: string;
|
|
1192
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1193
|
+
eventTime?: Date | null;
|
|
1194
|
+
/**
|
|
1195
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
1196
|
+
* (for example, GDPR).
|
|
1197
|
+
*/
|
|
1198
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
1199
|
+
/** If present, indicates the action that triggered the event. */
|
|
1200
|
+
originatedFrom?: string | null;
|
|
1201
|
+
/**
|
|
1202
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1203
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1204
|
+
*/
|
|
1205
|
+
entityEventSequence?: string | null;
|
|
1206
|
+
}
|
|
1207
|
+
/** @oneof */
|
|
1208
|
+
interface DomainEventBodyOneOf {
|
|
1209
|
+
createdEvent?: EntityCreatedEvent;
|
|
1210
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
1211
|
+
deletedEvent?: EntityDeletedEvent;
|
|
1212
|
+
actionEvent?: ActionEvent;
|
|
1213
|
+
}
|
|
1214
|
+
interface EntityCreatedEvent {
|
|
1215
|
+
entity?: string;
|
|
1216
|
+
}
|
|
1217
|
+
interface RestoreInfo {
|
|
1218
|
+
deletedDate?: Date | null;
|
|
1219
|
+
}
|
|
1220
|
+
interface EntityUpdatedEvent {
|
|
1221
|
+
/**
|
|
1222
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1223
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1224
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1225
|
+
*/
|
|
1226
|
+
currentEntity?: string;
|
|
1227
|
+
}
|
|
1228
|
+
interface EntityDeletedEvent {
|
|
1229
|
+
/** Entity that was deleted. */
|
|
1230
|
+
deletedEntity?: string | null;
|
|
1231
|
+
}
|
|
1232
|
+
interface ActionEvent {
|
|
1233
|
+
body?: string;
|
|
1234
|
+
}
|
|
1235
|
+
interface Empty {
|
|
1236
|
+
}
|
|
1237
|
+
interface BulkUpdateProductGroupTagsByFilterRequest {
|
|
1238
|
+
/**
|
|
1239
|
+
* Filter object. Supported fields for filtering: `id`, `handle`.
|
|
1240
|
+
* Pass an empty object `{}` to target all product groups.
|
|
1241
|
+
*/
|
|
1242
|
+
filter: Record<string, any> | null;
|
|
1243
|
+
/** List of tags to assign. */
|
|
1244
|
+
assignTags?: Tags;
|
|
1245
|
+
/** List of tags to unassign. */
|
|
1246
|
+
unassignTags?: Tags;
|
|
1247
|
+
}
|
|
1248
|
+
interface BulkUpdateProductGroupTagsByFilterResponse {
|
|
1249
|
+
/**
|
|
1250
|
+
* Job ID.
|
|
1251
|
+
*
|
|
1252
|
+
* Pass this ID to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/introduction) to retrieve job details and metadata..
|
|
1253
|
+
* @format GUID
|
|
1254
|
+
*/
|
|
1255
|
+
jobId?: string;
|
|
1256
|
+
}
|
|
1257
|
+
interface MessageEnvelope {
|
|
1258
|
+
/**
|
|
1259
|
+
* App instance ID.
|
|
1260
|
+
* @format GUID
|
|
1261
|
+
*/
|
|
1262
|
+
instanceId?: string | null;
|
|
1263
|
+
/**
|
|
1264
|
+
* Event type.
|
|
1265
|
+
* @maxLength 150
|
|
1266
|
+
*/
|
|
1267
|
+
eventType?: string;
|
|
1268
|
+
/** The identification type and identity data. */
|
|
1269
|
+
identity?: IdentificationData;
|
|
1270
|
+
/** Stringify payload. */
|
|
1271
|
+
data?: string;
|
|
1272
|
+
/** Details related to the account */
|
|
1273
|
+
accountInfo?: AccountInfo;
|
|
1274
|
+
}
|
|
1275
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1276
|
+
/**
|
|
1277
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1278
|
+
* @format GUID
|
|
1279
|
+
*/
|
|
1280
|
+
anonymousVisitorId?: string;
|
|
1281
|
+
/**
|
|
1282
|
+
* ID of a site visitor that has logged in to the site.
|
|
1283
|
+
* @format GUID
|
|
1284
|
+
*/
|
|
1285
|
+
memberId?: string;
|
|
1286
|
+
/**
|
|
1287
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1288
|
+
* @format GUID
|
|
1289
|
+
*/
|
|
1290
|
+
wixUserId?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* ID of an app.
|
|
1293
|
+
* @format GUID
|
|
1294
|
+
*/
|
|
1295
|
+
appId?: string;
|
|
1296
|
+
/** @readonly */
|
|
1297
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
1298
|
+
}
|
|
1299
|
+
/** @oneof */
|
|
1300
|
+
interface IdentificationDataIdOneOf {
|
|
1301
|
+
/**
|
|
1302
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1303
|
+
* @format GUID
|
|
1304
|
+
*/
|
|
1305
|
+
anonymousVisitorId?: string;
|
|
1306
|
+
/**
|
|
1307
|
+
* ID of a site visitor that has logged in to the site.
|
|
1308
|
+
* @format GUID
|
|
1309
|
+
*/
|
|
1310
|
+
memberId?: string;
|
|
1311
|
+
/**
|
|
1312
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1313
|
+
* @format GUID
|
|
1314
|
+
*/
|
|
1315
|
+
wixUserId?: string;
|
|
1316
|
+
/**
|
|
1317
|
+
* ID of an app.
|
|
1318
|
+
* @format GUID
|
|
1319
|
+
*/
|
|
1320
|
+
appId?: string;
|
|
1321
|
+
}
|
|
1322
|
+
declare enum WebhookIdentityType {
|
|
1323
|
+
UNKNOWN = "UNKNOWN",
|
|
1324
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1325
|
+
MEMBER = "MEMBER",
|
|
1326
|
+
WIX_USER = "WIX_USER",
|
|
1327
|
+
APP = "APP"
|
|
1328
|
+
}
|
|
1329
|
+
/** @enumType */
|
|
1330
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1331
|
+
interface AccountInfo {
|
|
1332
|
+
/**
|
|
1333
|
+
* ID of the Wix account associated with the event.
|
|
1334
|
+
* @format GUID
|
|
1335
|
+
*/
|
|
1336
|
+
accountId?: string | null;
|
|
1337
|
+
/**
|
|
1338
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
1339
|
+
* @format GUID
|
|
1340
|
+
*/
|
|
1341
|
+
parentAccountId?: string | null;
|
|
1342
|
+
/**
|
|
1343
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
1344
|
+
* @format GUID
|
|
1345
|
+
*/
|
|
1346
|
+
siteId?: string | null;
|
|
1347
|
+
}
|
|
1348
|
+
/** @docsIgnore */
|
|
1349
|
+
type BulkUpdateProductGroupTagsApplicationErrors = {
|
|
1350
|
+
code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
|
|
1351
|
+
description?: string;
|
|
1352
|
+
data?: Record<string, any>;
|
|
1353
|
+
};
|
|
1354
|
+
/** @docsIgnore */
|
|
1355
|
+
type BulkUpdateProductGroupTagsByFilterApplicationErrors = {
|
|
1356
|
+
code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
|
|
1357
|
+
description?: string;
|
|
1358
|
+
data?: Record<string, any>;
|
|
1359
|
+
};
|
|
1360
|
+
/**
|
|
1361
|
+
* Creates a new product group.
|
|
1362
|
+
* @param productGroup - The product group to create.
|
|
1363
|
+
* @internal
|
|
1364
|
+
* @documentationMaturity preview
|
|
1365
|
+
* @requiredField productGroup
|
|
1366
|
+
* @requiredField productGroup.groupingCustomizationId
|
|
1367
|
+
* @requiredField productGroup.name
|
|
1368
|
+
* @permissionId stores:catalog:v3:product_group:create_product_group
|
|
1369
|
+
* @applicableIdentity APP
|
|
1370
|
+
* @returns The created product group.
|
|
1371
|
+
* @fqn wix.stores.catalog.product_group.v3.ProductGroupService.CreateProductGroup
|
|
1372
|
+
*/
|
|
1373
|
+
declare function createProductGroup(productGroup: NonNullablePaths<ProductGroup, `groupingCustomizationId` | `name`, 2>, options?: CreateProductGroupOptions): Promise<NonNullablePaths<ProductGroup, `choiceOrder` | `members` | `members.${number}.productId` | `members.${number}.choice.colorCode` | `members.${number}.choice._id` | `members.${number}.choice.choiceType` | `members.${number}.choice.name` | `members.${number}.inventoryAvailabilityStatus` | `members.${number}.status` | `groupingCustomization.name` | `groupingCustomization.customizationType` | `groupingCustomization.customizationRenderType` | `tags.privateTags.tagIds`, 5>>;
|
|
1374
|
+
interface CreateProductGroupOptions {
|
|
1375
|
+
/**
|
|
1376
|
+
* Fields to include on the returned `product_group` (e.g. `GROUPING_CUSTOMIZATION`).
|
|
1377
|
+
* @maxSize 10
|
|
1378
|
+
*/
|
|
1379
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
1380
|
+
}
|
|
1381
|
+
/**
|
|
1382
|
+
* Updates a product group.
|
|
1383
|
+
* Each time the product group is updated, `revision` increments by 1.
|
|
1384
|
+
* The current `revision` must be passed when updating the product group.
|
|
1385
|
+
* This ensures you're working with the latest product group and prevents unintended overwrites.
|
|
1386
|
+
* @param _id - Product group ID.
|
|
1387
|
+
* @internal
|
|
1388
|
+
* @documentationMaturity preview
|
|
1389
|
+
* @requiredField _id
|
|
1390
|
+
* @requiredField productGroup
|
|
1391
|
+
* @requiredField productGroup.revision
|
|
1392
|
+
* @permissionId stores:catalog:v3:product_group:update_product_group
|
|
1393
|
+
* @applicableIdentity APP
|
|
1394
|
+
* @returns The updated product group.
|
|
1395
|
+
* @fqn wix.stores.catalog.product_group.v3.ProductGroupService.UpdateProductGroup
|
|
1396
|
+
*/
|
|
1397
|
+
declare function updateProductGroup(_id: string, productGroup: NonNullablePaths<UpdateProductGroup, `revision`, 2>, options?: UpdateProductGroupOptions): Promise<NonNullablePaths<ProductGroup, `choiceOrder` | `members` | `members.${number}.productId` | `members.${number}.choice.colorCode` | `members.${number}.choice._id` | `members.${number}.choice.choiceType` | `members.${number}.choice.name` | `members.${number}.inventoryAvailabilityStatus` | `members.${number}.status` | `groupingCustomization.name` | `groupingCustomization.customizationType` | `groupingCustomization.customizationRenderType` | `tags.privateTags.tagIds`, 5>>;
|
|
1398
|
+
interface UpdateProductGroup {
|
|
1399
|
+
/**
|
|
1400
|
+
* Product group ID.
|
|
1401
|
+
* @format GUID
|
|
1402
|
+
* @readonly
|
|
1403
|
+
*/
|
|
1404
|
+
_id?: string | null;
|
|
1405
|
+
/**
|
|
1406
|
+
* Revision number, which increments by 1 each time the product group is updated.
|
|
1407
|
+
* To prevent conflicting changes,
|
|
1408
|
+
* the current revision must be passed when updating the product group.
|
|
1409
|
+
*
|
|
1410
|
+
* Ignored when creating a product group.
|
|
1411
|
+
* @readonly
|
|
1412
|
+
*/
|
|
1413
|
+
revision?: string | null;
|
|
1414
|
+
/**
|
|
1415
|
+
* Date and time the product group was created.
|
|
1416
|
+
* @readonly
|
|
1417
|
+
*/
|
|
1418
|
+
_createdDate?: Date | null;
|
|
1419
|
+
/**
|
|
1420
|
+
* Date and time the product group was last updated.
|
|
1421
|
+
* @readonly
|
|
1422
|
+
*/
|
|
1423
|
+
_updatedDate?: Date | null;
|
|
1424
|
+
/**
|
|
1425
|
+
* Product group name.
|
|
1426
|
+
* @minLength 1
|
|
1427
|
+
* @maxLength 100
|
|
1428
|
+
*/
|
|
1429
|
+
name?: string | null;
|
|
1430
|
+
/**
|
|
1431
|
+
* ID of the shared customization (option or modifier) that defines
|
|
1432
|
+
* the grouping attribute. Can't be changed after creation.
|
|
1433
|
+
* @minLength 1
|
|
1434
|
+
* @maxLength 36
|
|
1435
|
+
* @readonly
|
|
1436
|
+
* @immutable
|
|
1437
|
+
*/
|
|
1438
|
+
groupingCustomizationId?: string | null;
|
|
1439
|
+
/**
|
|
1440
|
+
* Ordered list of choice IDs that defines the display order of choices in the storefront.
|
|
1441
|
+
* Choices not listed here will appear after the listed ones.
|
|
1442
|
+
* @maxSize 100
|
|
1443
|
+
* @format GUID
|
|
1444
|
+
*/
|
|
1445
|
+
choiceOrder?: string[];
|
|
1446
|
+
/**
|
|
1447
|
+
* Products that belong to this group, with their derived choice and status.
|
|
1448
|
+
* Ordered according to `choice_order`.
|
|
1449
|
+
* @readonly
|
|
1450
|
+
* @maxSize 100
|
|
1451
|
+
*/
|
|
1452
|
+
members?: ProductGroupMember[];
|
|
1453
|
+
/**
|
|
1454
|
+
* Unique human-friendly identifier for the product group.
|
|
1455
|
+
*
|
|
1456
|
+
* Unlike the auto-generated `id`, the handle can be set when creating a product group.
|
|
1457
|
+
* Useful for external catalog sync systems. Unique per site.
|
|
1458
|
+
* If not provided during creation, a random UUID is automatically generated. Can't be changed after creation.
|
|
1459
|
+
* @minLength 1
|
|
1460
|
+
* @maxLength 100
|
|
1461
|
+
* @readonly
|
|
1462
|
+
* @immutable
|
|
1463
|
+
*/
|
|
1464
|
+
handle?: string | null;
|
|
1465
|
+
/**
|
|
1466
|
+
* Details of the catalog [customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction) referenced by `grouping_customization_id` (for example, name and render type).
|
|
1467
|
+
*
|
|
1468
|
+
* > **Note:** Returned only when you pass `"GROUPING_CUSTOMIZATION"` to the `fields` array in Product Groups API requests.
|
|
1469
|
+
* @readonly
|
|
1470
|
+
*/
|
|
1471
|
+
groupingCustomization?: GroupingCustomization;
|
|
1472
|
+
/**
|
|
1473
|
+
* Custom field data for the product group.
|
|
1474
|
+
* [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)
|
|
1475
|
+
* must be configured in the app dashboard before they can be accessed with API calls.
|
|
1476
|
+
*/
|
|
1477
|
+
extendedFields?: ExtendedFields;
|
|
1478
|
+
/** Tags */
|
|
1479
|
+
tags?: Tags;
|
|
1480
|
+
}
|
|
1481
|
+
interface UpdateProductGroupOptions {
|
|
1482
|
+
/**
|
|
1483
|
+
* Fields to include on the returned `product_group` (e.g. `GROUPING_CUSTOMIZATION`).
|
|
1484
|
+
* @maxSize 10
|
|
1485
|
+
*/
|
|
1486
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
1487
|
+
}
|
|
1488
|
+
/**
|
|
1489
|
+
* Deletes a product group.
|
|
1490
|
+
* @param productGroupId - ID of the product group to delete.
|
|
1491
|
+
* @internal
|
|
1492
|
+
* @documentationMaturity preview
|
|
1493
|
+
* @requiredField productGroupId
|
|
1494
|
+
* @permissionId stores:catalog:v3:product_group:delete_product_group
|
|
1495
|
+
* @applicableIdentity APP
|
|
1496
|
+
* @fqn wix.stores.catalog.product_group.v3.ProductGroupService.DeleteProductGroup
|
|
1497
|
+
*/
|
|
1498
|
+
declare function deleteProductGroup(productGroupId: string): Promise<void>;
|
|
1499
|
+
/**
|
|
1500
|
+
* Retrieves a product group by ID.
|
|
1501
|
+
* Without `read_non_visible` permission, members with status `HIDDEN` or `OUT_OF_SYNC` are filtered out.
|
|
1502
|
+
* @param productGroupId - ID of the product group to retrieve.
|
|
1503
|
+
* @internal
|
|
1504
|
+
* @documentationMaturity preview
|
|
1505
|
+
* @requiredField productGroupId
|
|
1506
|
+
* @permissionId stores:catalog:v3:product_group:get_product_group
|
|
1507
|
+
* @permissionId stores:catalog:v3:product_group:read_non_visible
|
|
1508
|
+
* @applicableIdentity APP
|
|
1509
|
+
* @returns The requested product group.
|
|
1510
|
+
* @fqn wix.stores.catalog.product_group.v3.ProductGroupService.GetProductGroup
|
|
1511
|
+
*/
|
|
1512
|
+
declare function getProductGroup(productGroupId: string, options?: GetProductGroupOptions): Promise<NonNullablePaths<ProductGroup, `choiceOrder` | `members` | `members.${number}.productId` | `members.${number}.choice.colorCode` | `members.${number}.choice._id` | `members.${number}.choice.choiceType` | `members.${number}.choice.name` | `members.${number}.inventoryAvailabilityStatus` | `members.${number}.status` | `groupingCustomization.name` | `groupingCustomization.customizationType` | `groupingCustomization.customizationRenderType` | `tags.privateTags.tagIds`, 5>>;
|
|
1513
|
+
interface GetProductGroupOptions {
|
|
1514
|
+
/**
|
|
1515
|
+
* Fields to include on the returned product group (e.g. `GROUPING_CUSTOMIZATION`).
|
|
1516
|
+
* @maxSize 10
|
|
1517
|
+
*/
|
|
1518
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
1519
|
+
}
|
|
1520
|
+
/**
|
|
1521
|
+
* Queries product groups using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
1522
|
+
* Without `read_non_visible` permission, members with status `HIDDEN` or `OUT_OF_SYNC` are filtered out.
|
|
1523
|
+
* @internal
|
|
1524
|
+
* @documentationMaturity preview
|
|
1525
|
+
* @permissionId stores:catalog:v3:product_group:query_product_groups
|
|
1526
|
+
* @permissionId stores:catalog:v3:product_group:read_non_visible
|
|
1527
|
+
* @applicableIdentity APP
|
|
1528
|
+
* @fqn wix.stores.catalog.product_group.v3.ProductGroupService.QueryProductGroups
|
|
1529
|
+
*/
|
|
1530
|
+
declare function queryProductGroups(options?: QueryProductGroupsOptions): ProductGroupsQueryBuilder;
|
|
1531
|
+
interface QueryProductGroupsOptions {
|
|
1532
|
+
/**
|
|
1533
|
+
* Optional expansions on each returned product group (e.g. `GROUPING_CUSTOMIZATION`).
|
|
1534
|
+
* @maxSize 10
|
|
1535
|
+
*/
|
|
1536
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[] | undefined;
|
|
1537
|
+
}
|
|
1538
|
+
interface QueryCursorResult {
|
|
1539
|
+
cursors: Cursors;
|
|
1540
|
+
hasNext: () => boolean;
|
|
1541
|
+
hasPrev: () => boolean;
|
|
1542
|
+
length: number;
|
|
1543
|
+
pageSize: number;
|
|
1544
|
+
}
|
|
1545
|
+
interface ProductGroupsQueryResult extends QueryCursorResult {
|
|
1546
|
+
items: ProductGroup[];
|
|
1547
|
+
query: ProductGroupsQueryBuilder;
|
|
1548
|
+
next: () => Promise<ProductGroupsQueryResult>;
|
|
1549
|
+
prev: () => Promise<ProductGroupsQueryResult>;
|
|
1550
|
+
}
|
|
1551
|
+
interface ProductGroupsQueryBuilder {
|
|
1552
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
1553
|
+
* @param value - Value to compare against.
|
|
1554
|
+
* @documentationMaturity preview
|
|
1555
|
+
*/
|
|
1556
|
+
eq: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;
|
|
1557
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
1558
|
+
* @param value - Value to compare against.
|
|
1559
|
+
* @documentationMaturity preview
|
|
1560
|
+
*/
|
|
1561
|
+
ne: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;
|
|
1562
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
1563
|
+
* @param value - Value to compare against.
|
|
1564
|
+
* @documentationMaturity preview
|
|
1565
|
+
*/
|
|
1566
|
+
ge: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;
|
|
1567
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
1568
|
+
* @param value - Value to compare against.
|
|
1569
|
+
* @documentationMaturity preview
|
|
1570
|
+
*/
|
|
1571
|
+
gt: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;
|
|
1572
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
1573
|
+
* @param value - Value to compare against.
|
|
1574
|
+
* @documentationMaturity preview
|
|
1575
|
+
*/
|
|
1576
|
+
le: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;
|
|
1577
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
1578
|
+
* @param value - Value to compare against.
|
|
1579
|
+
* @documentationMaturity preview
|
|
1580
|
+
*/
|
|
1581
|
+
lt: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;
|
|
1582
|
+
/** @param propertyName - Property whose value is compared with `string`.
|
|
1583
|
+
* @param string - String to compare against. Case-insensitive.
|
|
1584
|
+
* @documentationMaturity preview
|
|
1585
|
+
*/
|
|
1586
|
+
startsWith: (propertyName: '_id' | 'handle', value: string) => ProductGroupsQueryBuilder;
|
|
1587
|
+
/** @param propertyName - Property whose value is compared with `values`.
|
|
1588
|
+
* @param values - List of values to compare against.
|
|
1589
|
+
* @documentationMaturity preview
|
|
1590
|
+
*/
|
|
1591
|
+
hasSome: (propertyName: '_id' | 'handle', value: any[]) => ProductGroupsQueryBuilder;
|
|
1592
|
+
/** @documentationMaturity preview */
|
|
1593
|
+
in: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;
|
|
1594
|
+
/** @documentationMaturity preview */
|
|
1595
|
+
exists: (propertyName: '_id' | 'handle', value: boolean) => ProductGroupsQueryBuilder;
|
|
1596
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
1597
|
+
* @documentationMaturity preview
|
|
1598
|
+
*/
|
|
1599
|
+
limit: (limit: number) => ProductGroupsQueryBuilder;
|
|
1600
|
+
/** @param cursor - A pointer to specific record
|
|
1601
|
+
* @documentationMaturity preview
|
|
1602
|
+
*/
|
|
1603
|
+
skipTo: (cursor: string) => ProductGroupsQueryBuilder;
|
|
1604
|
+
/** @documentationMaturity preview */
|
|
1605
|
+
find: () => Promise<ProductGroupsQueryResult>;
|
|
1606
|
+
}
|
|
1607
|
+
/**
|
|
1608
|
+
* @hidden
|
|
1609
|
+
* @fqn wix.stores.catalog.product_group.v3.ProductGroupService.QueryProductGroups
|
|
1610
|
+
* @requiredField query
|
|
1611
|
+
*/
|
|
1612
|
+
declare function typedQueryProductGroups(query: ProductGroupQuery, options?: QueryProductGroupsOptions): Promise<NonNullablePaths<QueryProductGroupsResponse, `productGroups` | `productGroups.${number}.groupingCustomization.name` | `productGroups.${number}.groupingCustomization.customizationType` | `productGroups.${number}.groupingCustomization.customizationRenderType` | `fields`, 5>>;
|
|
1613
|
+
interface ProductGroupQuerySpec extends QuerySpec {
|
|
1614
|
+
paging: 'cursor';
|
|
1615
|
+
wql: [
|
|
1616
|
+
{
|
|
1617
|
+
fields: ['_id', 'handle'];
|
|
1618
|
+
operators: '*';
|
|
1619
|
+
sort: 'NONE';
|
|
1620
|
+
}
|
|
1621
|
+
];
|
|
1622
|
+
}
|
|
1623
|
+
type CommonQueryWithEntityContext = Query<ProductGroup, ProductGroupQuerySpec>;
|
|
1624
|
+
type ProductGroupQuery = {
|
|
1625
|
+
/**
|
|
1626
|
+
Cursor paging options.
|
|
1627
|
+
|
|
1628
|
+
Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
1629
|
+
*/
|
|
1630
|
+
cursorPaging?: {
|
|
1631
|
+
/**
|
|
1632
|
+
Maximum number of items to return in the results.
|
|
1633
|
+
@max: 100
|
|
1634
|
+
*/
|
|
1635
|
+
limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
|
|
1636
|
+
/**
|
|
1637
|
+
Pointer to the next or previous page in the list of results.
|
|
1638
|
+
|
|
1639
|
+
Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1640
|
+
Not relevant for the first request.
|
|
1641
|
+
@maxLength: 16000
|
|
1642
|
+
*/
|
|
1643
|
+
cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
|
|
1644
|
+
};
|
|
1645
|
+
/**
|
|
1646
|
+
Filter object.
|
|
1647
|
+
|
|
1648
|
+
Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
1649
|
+
*/
|
|
1650
|
+
filter?: CommonQueryWithEntityContext['filter'] | null;
|
|
1651
|
+
/**
|
|
1652
|
+
Sort object.
|
|
1653
|
+
|
|
1654
|
+
Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
1655
|
+
@maxSize: 5
|
|
1656
|
+
*/
|
|
1657
|
+
sort?: {
|
|
1658
|
+
/**
|
|
1659
|
+
Name of the field to sort by.
|
|
1660
|
+
@maxLength: 512
|
|
1661
|
+
*/
|
|
1662
|
+
fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
|
|
1663
|
+
/**
|
|
1664
|
+
Sort order.
|
|
1665
|
+
*/
|
|
1666
|
+
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1667
|
+
}[];
|
|
1668
|
+
};
|
|
1669
|
+
declare const utils: {
|
|
1670
|
+
query: {
|
|
1671
|
+
QueryBuilder: () => _wix_sdk_types.QueryBuilder<ProductGroup, ProductGroupQuerySpec, ProductGroupQuery>;
|
|
1672
|
+
Filter: _wix_sdk_types.FilterFactory<ProductGroup, ProductGroupQuerySpec>;
|
|
1673
|
+
Sort: _wix_sdk_types.SortFactory<ProductGroupQuerySpec>;
|
|
1674
|
+
};
|
|
1675
|
+
search: {
|
|
1676
|
+
SearchBuilder: () => _wix_sdk_types.SearchBuilder<ProductGroup, ProductGroupSearchSpec, ProductGroupSearch>;
|
|
1677
|
+
Filter: _wix_sdk_types.FilterFactory<ProductGroup, ProductGroupSearchSpec>;
|
|
1678
|
+
Sort: _wix_sdk_types.SortFactory<ProductGroupSearchSpec>;
|
|
1679
|
+
SearchParams: _wix_sdk_types.SearchParamsFactory<ProductGroupSearchSpec>;
|
|
1680
|
+
Aggregation: _wix_sdk_types.AggregationFactory<ProductGroupSearchSpec>;
|
|
1681
|
+
};
|
|
1682
|
+
};
|
|
1683
|
+
interface SearchProductGroupsOptions {
|
|
1684
|
+
/**
|
|
1685
|
+
* Optional expansions on each returned product group (e.g. `GROUPING_CUSTOMIZATION`).
|
|
1686
|
+
* @maxSize 10
|
|
1687
|
+
*/
|
|
1688
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
1689
|
+
}
|
|
1690
|
+
interface ProductGroupSearchSpec extends SearchSpec {
|
|
1691
|
+
searchable: ['members.productName', 'name'];
|
|
1692
|
+
aggregatable: [
|
|
1693
|
+
'_createdDate',
|
|
1694
|
+
'_id',
|
|
1695
|
+
'groupingCustomizationId',
|
|
1696
|
+
'members.productId',
|
|
1697
|
+
'members.productName',
|
|
1698
|
+
'name'
|
|
1699
|
+
];
|
|
1700
|
+
paging: 'cursor';
|
|
1701
|
+
wql: [
|
|
1702
|
+
{
|
|
1703
|
+
operators: '*';
|
|
1704
|
+
fields: ['_createdDate', '_id', 'name'];
|
|
1705
|
+
sort: 'BOTH';
|
|
1706
|
+
},
|
|
1707
|
+
{
|
|
1708
|
+
operators: ['$hasAll', '$hasSome'];
|
|
1709
|
+
fields: ['members.productId', 'members.productName'];
|
|
1710
|
+
sort: 'NONE';
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
operators: '*';
|
|
1714
|
+
fields: ['groupingCustomizationId'];
|
|
1715
|
+
sort: 'NONE';
|
|
1716
|
+
}
|
|
1717
|
+
];
|
|
1718
|
+
}
|
|
1719
|
+
type CommonSearchWithEntityContext = Search<ProductGroup, ProductGroupSearchSpec>;
|
|
1720
|
+
type ProductGroupSearch = {
|
|
1721
|
+
/**
|
|
1722
|
+
Cursor paging options.
|
|
1723
|
+
|
|
1724
|
+
Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
1725
|
+
*/
|
|
1726
|
+
cursorPaging?: {
|
|
1727
|
+
/**
|
|
1728
|
+
Maximum number of items to return in the results.
|
|
1729
|
+
@max: 100
|
|
1730
|
+
*/
|
|
1731
|
+
limit?: NonNullable<CommonSearchWithEntityContext['cursorPaging']>['limit'] | null;
|
|
1732
|
+
/**
|
|
1733
|
+
Pointer to the next or previous page in the list of results.
|
|
1734
|
+
|
|
1735
|
+
Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1736
|
+
Not relevant for the first request.
|
|
1737
|
+
@maxLength: 16000
|
|
1738
|
+
*/
|
|
1739
|
+
cursor?: NonNullable<CommonSearchWithEntityContext['cursorPaging']>['cursor'] | null;
|
|
1740
|
+
};
|
|
1741
|
+
/**
|
|
1742
|
+
Filter object.
|
|
1743
|
+
|
|
1744
|
+
Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
1745
|
+
*/
|
|
1746
|
+
filter?: CommonSearchWithEntityContext['filter'] | null;
|
|
1747
|
+
/**
|
|
1748
|
+
List of sort objects.
|
|
1749
|
+
|
|
1750
|
+
Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
1751
|
+
@maxSize: 10
|
|
1752
|
+
*/
|
|
1753
|
+
sort?: {
|
|
1754
|
+
/**
|
|
1755
|
+
Name of the field to sort by.
|
|
1756
|
+
@maxLength: 512
|
|
1757
|
+
*/
|
|
1758
|
+
fieldName?: NonNullable<CommonSearchWithEntityContext['sort']>[number]['fieldName'];
|
|
1759
|
+
/**
|
|
1760
|
+
Sort order.
|
|
1761
|
+
*/
|
|
1762
|
+
order?: NonNullable<CommonSearchWithEntityContext['sort']>[number]['order'];
|
|
1763
|
+
}[];
|
|
1764
|
+
/**
|
|
1765
|
+
Aggregations are a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.
|
|
1766
|
+
@maxSize: 10
|
|
1767
|
+
*/
|
|
1768
|
+
aggregations?: {
|
|
1769
|
+
/**
|
|
1770
|
+
Value aggregation.
|
|
1771
|
+
*/
|
|
1772
|
+
value?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['value'];
|
|
1773
|
+
/**
|
|
1774
|
+
Range aggregation.
|
|
1775
|
+
*/
|
|
1776
|
+
range?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['range'];
|
|
1777
|
+
/**
|
|
1778
|
+
Scalar aggregation.
|
|
1779
|
+
*/
|
|
1780
|
+
scalar?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['scalar'];
|
|
1781
|
+
/**
|
|
1782
|
+
Date histogram aggregation.
|
|
1783
|
+
*/
|
|
1784
|
+
dateHistogram?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['dateHistogram'];
|
|
1785
|
+
/**
|
|
1786
|
+
Nested aggregation.
|
|
1787
|
+
*/
|
|
1788
|
+
nested?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['nested'];
|
|
1789
|
+
/**
|
|
1790
|
+
User-defined name of aggregation, should be unique, will appear in aggregation results.
|
|
1791
|
+
@maxLength: 100
|
|
1792
|
+
*/
|
|
1793
|
+
name?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['name'] | null;
|
|
1794
|
+
/**
|
|
1795
|
+
Type of aggregation, client must provide matching aggregation field below.
|
|
1796
|
+
*/
|
|
1797
|
+
type?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['type'];
|
|
1798
|
+
/**
|
|
1799
|
+
Field to aggregate by, use dot notation to specify json path.
|
|
1800
|
+
@maxLength: 200
|
|
1801
|
+
*/
|
|
1802
|
+
fieldPath?: NonNullable<CommonSearchWithEntityContext['aggregations']>[number]['fieldPath'];
|
|
1803
|
+
}[];
|
|
1804
|
+
/**
|
|
1805
|
+
Free text to match in searchable fields.
|
|
1806
|
+
*/
|
|
1807
|
+
search?: {
|
|
1808
|
+
/**
|
|
1809
|
+
Defines how separate search terms in `expression` are combined.
|
|
1810
|
+
*/
|
|
1811
|
+
mode?: NonNullable<CommonSearchWithEntityContext['search']>['mode'];
|
|
1812
|
+
/**
|
|
1813
|
+
Search term or expression.
|
|
1814
|
+
@maxLength: 100
|
|
1815
|
+
*/
|
|
1816
|
+
expression?: NonNullable<CommonSearchWithEntityContext['search']>['expression'] | null;
|
|
1817
|
+
/**
|
|
1818
|
+
Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path.
|
|
1819
|
+
@maxLength: 200,
|
|
1820
|
+
@maxSize: 20
|
|
1821
|
+
*/
|
|
1822
|
+
fields?: NonNullable<CommonSearchWithEntityContext['search']>['fields'];
|
|
1823
|
+
/**
|
|
1824
|
+
Whether to use auto fuzzy search (allowing typos by a managed proximity algorithm).
|
|
1825
|
+
*/
|
|
1826
|
+
fuzzy?: NonNullable<CommonSearchWithEntityContext['search']>['fuzzy'];
|
|
1827
|
+
};
|
|
1828
|
+
/**
|
|
1829
|
+
UTC offset or IANA time zone. Valid values are
|
|
1830
|
+
ISO 8601 UTC offsets, such as +02:00 or -06:00,
|
|
1831
|
+
and IANA time zone IDs, such as Europe/Rome.
|
|
1832
|
+
|
|
1833
|
+
Affects all filters and aggregations returned values.
|
|
1834
|
+
You may override this behavior in a specific filter by providing
|
|
1835
|
+
timestamps including time zone. For example, `"2023-12-20T10:52:34.795Z"`.
|
|
1836
|
+
@maxLength: 50
|
|
1837
|
+
*/
|
|
1838
|
+
timeZone?: CommonSearchWithEntityContext['timeZone'] | null;
|
|
1839
|
+
};
|
|
1840
|
+
/**
|
|
1841
|
+
* Creates multiple product groups in a single request.
|
|
1842
|
+
* @param productGroups - List of product groups to create.
|
|
1843
|
+
* @internal
|
|
1844
|
+
* @documentationMaturity preview
|
|
1845
|
+
* @requiredField productGroups
|
|
1846
|
+
* @requiredField productGroups.groupingCustomizationId
|
|
1847
|
+
* @requiredField productGroups.name
|
|
1848
|
+
* @permissionId stores:catalog:v3:product_group:bulk_create_product_groups
|
|
1849
|
+
* @applicableIdentity APP
|
|
1850
|
+
* @fqn wix.stores.catalog.product_group.v3.ProductGroupService.BulkCreateProductGroups
|
|
1851
|
+
*/
|
|
1852
|
+
declare function bulkCreateProductGroups(productGroups: NonNullablePaths<ProductGroup, `groupingCustomizationId` | `name`, 2>[], options?: BulkCreateProductGroupsOptions): Promise<NonNullablePaths<BulkCreateProductGroupsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.groupingCustomization.name` | `results.${number}.item.groupingCustomization.customizationType` | `results.${number}.item.groupingCustomization.customizationRenderType` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures` | `fields`, 6>>;
|
|
1853
|
+
interface BulkCreateProductGroupsOptions {
|
|
1854
|
+
/** Whether to return the created product group entities in the response. */
|
|
1855
|
+
returnEntity?: boolean;
|
|
1856
|
+
/**
|
|
1857
|
+
* Fields to include on each returned `item` (e.g. `GROUPING_CUSTOMIZATION`).
|
|
1858
|
+
* @maxSize 10
|
|
1859
|
+
*/
|
|
1860
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
1861
|
+
}
|
|
1862
|
+
/**
|
|
1863
|
+
* Updates multiple product groups in a single request.
|
|
1864
|
+
* Each item carries its own `field_mask` to allow partial updates per item.
|
|
1865
|
+
* The current `revision` must be passed for each product group to prevent conflicting changes.
|
|
1866
|
+
* @param productGroups - List of product groups to update, each with its own field mask.
|
|
1867
|
+
* @internal
|
|
1868
|
+
* @documentationMaturity preview
|
|
1869
|
+
* @requiredField productGroups
|
|
1870
|
+
* @requiredField productGroups.productGroup._id
|
|
1871
|
+
* @requiredField productGroups.productGroup.revision
|
|
1872
|
+
* @permissionId stores:catalog:v3:product_group:bulk_update_product_groups
|
|
1873
|
+
* @applicableIdentity APP
|
|
1874
|
+
* @fqn wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroups
|
|
1875
|
+
*/
|
|
1876
|
+
declare function bulkUpdateProductGroups(productGroups: NonNullablePaths<MaskedProductGroup, `productGroup._id` | `productGroup.revision`, 3>[], options?: BulkUpdateProductGroupsOptions): Promise<NonNullablePaths<BulkUpdateProductGroupsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.groupingCustomization.name` | `results.${number}.item.groupingCustomization.customizationType` | `results.${number}.item.groupingCustomization.customizationRenderType` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
1877
|
+
interface BulkUpdateProductGroupsOptions {
|
|
1878
|
+
/** Whether to return the updated product group entities in the response. */
|
|
1879
|
+
returnEntity?: boolean;
|
|
1880
|
+
/**
|
|
1881
|
+
* Fields to include on each returned `item` (e.g. `GROUPING_CUSTOMIZATION`).
|
|
1882
|
+
* @maxSize 10
|
|
1883
|
+
*/
|
|
1884
|
+
fields?: ProductGroupRequestedFieldsWithLiterals[];
|
|
1885
|
+
}
|
|
1886
|
+
/**
|
|
1887
|
+
* Assigns multiple products to a product group in a single request.
|
|
1888
|
+
* @param productGroupId - ID of the product group to assign products to.
|
|
1889
|
+
* @internal
|
|
1890
|
+
* @documentationMaturity preview
|
|
1891
|
+
* @requiredField options
|
|
1892
|
+
* @requiredField options.productIds
|
|
1893
|
+
* @requiredField productGroupId
|
|
1894
|
+
* @permissionId stores:catalog:v3:product_group:assign_products_to_product_group
|
|
1895
|
+
* @applicableIdentity APP
|
|
1896
|
+
* @fqn wix.stores.catalog.product_group.v3.ProductGroupService.AssignProductsToProductGroup
|
|
1897
|
+
*/
|
|
1898
|
+
declare function assignProductsToProductGroup(productGroupId: string, options: NonNullablePaths<AssignProductsToProductGroupOptions, `productIds`, 2>): Promise<NonNullablePaths<AssignProductsToProductGroupResponse, `results` | `results.${number}.productId` | `results.${number}.success` | `results.${number}.error.code` | `results.${number}.error.description`, 5>>;
|
|
1899
|
+
interface AssignProductsToProductGroupOptions {
|
|
1900
|
+
/**
|
|
1901
|
+
* IDs of the products to assign. Duplicates are silently de-duplicated. Products already in the group are skipped.
|
|
1902
|
+
* @minSize 1
|
|
1903
|
+
* @maxSize 100
|
|
1904
|
+
* @minLength 1
|
|
1905
|
+
* @maxLength 36
|
|
1906
|
+
*/
|
|
1907
|
+
productIds: string[];
|
|
1908
|
+
}
|
|
1909
|
+
/**
|
|
1910
|
+
* Removes multiple products from a product group in a single request.
|
|
1911
|
+
* @param productGroupId - ID of the product group to unassign products from.
|
|
1912
|
+
* @internal
|
|
1913
|
+
* @documentationMaturity preview
|
|
1914
|
+
* @requiredField options
|
|
1915
|
+
* @requiredField options.productIds
|
|
1916
|
+
* @requiredField productGroupId
|
|
1917
|
+
* @permissionId stores:catalog:v3:product_group:unassign_products_from_product_group
|
|
1918
|
+
* @applicableIdentity APP
|
|
1919
|
+
* @fqn wix.stores.catalog.product_group.v3.ProductGroupService.UnassignProductsFromProductGroup
|
|
1920
|
+
*/
|
|
1921
|
+
declare function unassignProductsFromProductGroup(productGroupId: string, options: NonNullablePaths<UnassignProductsFromProductGroupOptions, `productIds`, 2>): Promise<NonNullablePaths<UnassignProductsFromProductGroupResponse, `results` | `results.${number}.productId` | `results.${number}.success` | `results.${number}.error.code` | `results.${number}.error.description`, 5>>;
|
|
1922
|
+
interface UnassignProductsFromProductGroupOptions {
|
|
1923
|
+
/**
|
|
1924
|
+
* IDs of the products to unassign. Duplicates are silently de-duplicated. All products must currently be members of the group.
|
|
1925
|
+
* @minSize 1
|
|
1926
|
+
* @maxSize 100
|
|
1927
|
+
* @minLength 1
|
|
1928
|
+
* @maxLength 36
|
|
1929
|
+
*/
|
|
1930
|
+
productIds: string[];
|
|
1931
|
+
}
|
|
1932
|
+
/**
|
|
1933
|
+
* Deletes multiple product groups in a single request.
|
|
1934
|
+
* @param productGroupIds - IDs of the product groups to delete.
|
|
1935
|
+
* @internal
|
|
1936
|
+
* @documentationMaturity preview
|
|
1937
|
+
* @requiredField productGroupIds
|
|
1938
|
+
* @permissionId stores:catalog:v3:product_group:bulk_delete_product_groups
|
|
1939
|
+
* @applicableIdentity APP
|
|
1940
|
+
* @fqn wix.stores.catalog.product_group.v3.ProductGroupService.BulkDeleteProductGroups
|
|
1941
|
+
*/
|
|
1942
|
+
declare function bulkDeleteProductGroups(productGroupIds: string[]): Promise<NonNullablePaths<BulkDeleteProductGroupsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
1943
|
+
/**
|
|
1944
|
+
* Synchronously update tags on multiple product groups, by list of product group IDs.
|
|
1945
|
+
* A tag that appears both in the list of assign and unassign tags, will be assigned.
|
|
1946
|
+
* @param productGroupIds - List of product group IDs whose tags will be updated.
|
|
1947
|
+
* @internal
|
|
1948
|
+
* @documentationMaturity preview
|
|
1949
|
+
* @requiredField productGroupIds
|
|
1950
|
+
* @permissionId stores:catalog:v3:product_group:bulk_update_product_group_tags
|
|
1951
|
+
* @applicableIdentity APP
|
|
1952
|
+
* @fqn wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroupTags
|
|
1953
|
+
*/
|
|
1954
|
+
declare function bulkUpdateProductGroupTags(productGroupIds: string[], options?: BulkUpdateProductGroupTagsOptions): Promise<NonNullablePaths<BulkUpdateProductGroupTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
|
|
1955
|
+
__applicationErrorsType?: BulkUpdateProductGroupTagsApplicationErrors;
|
|
1956
|
+
}>;
|
|
1957
|
+
interface BulkUpdateProductGroupTagsOptions {
|
|
1958
|
+
/** List of tags to assign. */
|
|
1959
|
+
assignTags?: Tags;
|
|
1960
|
+
/** List of tags to unassign. */
|
|
1961
|
+
unassignTags?: Tags;
|
|
1962
|
+
}
|
|
1963
|
+
/**
|
|
1964
|
+
* Asynchronously update tags on multiple product groups, by provided filter.
|
|
1965
|
+
* An empty filter will update all product groups.
|
|
1966
|
+
* A tag that appears both in the list of assign and unassign tags, will be assigned.
|
|
1967
|
+
* @param filter - Filter object. Supported fields for filtering: `id`, `handle`.
|
|
1968
|
+
* Pass an empty object `{}` to target all product groups.
|
|
1969
|
+
* @internal
|
|
1970
|
+
* @documentationMaturity preview
|
|
1971
|
+
* @requiredField filter
|
|
1972
|
+
* @permissionId stores:catalog:v3:product_group:bulk_update_product_group_tags_by_filter
|
|
1973
|
+
* @applicableIdentity APP
|
|
1974
|
+
* @fqn wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroupTagsByFilter
|
|
1975
|
+
*/
|
|
1976
|
+
declare function bulkUpdateProductGroupTagsByFilter(filter: Record<string, any>, options?: BulkUpdateProductGroupTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateProductGroupTagsByFilterResponse, `jobId`, 2> & {
|
|
1977
|
+
__applicationErrorsType?: BulkUpdateProductGroupTagsByFilterApplicationErrors;
|
|
1978
|
+
}>;
|
|
1979
|
+
interface BulkUpdateProductGroupTagsByFilterOptions {
|
|
1980
|
+
/** List of tags to assign. */
|
|
1981
|
+
assignTags?: Tags;
|
|
1982
|
+
/** List of tags to unassign. */
|
|
1983
|
+
unassignTags?: Tags;
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
export { type CreateProductGroupResponse as $, type AssignProductsToProductGroupOptions as A, type BulkCreateProductGroupsOptions as B, type CreateProductGroupOptions as C, SortType as D, SortDirection as E, MissingValues as F, type GetProductGroupOptions as G, ScalarType as H, Interval as I, AggregationType as J, Mode as K, type ProductGroupMember as L, type MaskedProductGroup as M, NestedAggregationType as N, type ProductChoice as O, type ProductGroup as P, type QueryProductGroupsOptions as Q, type ProductChoiceValueOneOf as R, type SearchProductGroupsOptions as S, type GroupingCustomization as T, type UpdateProductGroup as U, type ExtendedFields as V, WebhookIdentityType as W, type Tags as X, type TagList as Y, type ProductGroupTagsModified as Z, type CreateProductGroupRequest as _, type UpdateProductGroupOptions as a, type BulkDeleteProductGroupsResponseBulkProductGroupResult as a$, type UpdateProductGroupRequest as a0, type UpdateProductGroupResponse as a1, type DeleteProductGroupRequest as a2, type DeleteProductGroupResponse as a3, type GetProductGroupRequest as a4, type GetProductGroupResponse as a5, type QueryProductGroupsRequest as a6, type CursorQuery as a7, type CursorQueryPagingMethodOneOf as a8, type Sorting as a9, type RangeResults as aA, type AggregationResultsScalarResult as aB, type NestedValueAggregationResult as aC, type ValueResult as aD, type RangeResult as aE, type ScalarResult as aF, type NestedResultValue as aG, type NestedResultValueResultOneOf as aH, type Results as aI, type DateHistogramResult as aJ, type GroupByValueResults as aK, type DateHistogramResults as aL, type NestedResults as aM, type AggregationResults as aN, type AggregationResultsResultOneOf as aO, type BulkCreateProductGroupsRequest as aP, type ItemMetadata as aQ, type ApplicationError as aR, type BulkProductGroupResult as aS, type BulkActionMetadata as aT, type BulkUpdateProductGroupsRequest as aU, type BulkUpdateProductGroupsResponseBulkProductGroupResult as aV, type AssignProductsToProductGroupRequest as aW, type ProductAssignmentResult as aX, type UnassignProductsFromProductGroupRequest as aY, type ProductUnassignmentResult as aZ, type BulkDeleteProductGroupsRequest as a_, type CursorPaging as aa, type QueryProductGroupsResponse as ab, type CursorPagingMetadata as ac, type Cursors as ad, type SearchProductGroupsRequest as ae, type CursorSearch as af, type CursorSearchPagingMethodOneOf as ag, type Aggregation as ah, type AggregationKindOneOf as ai, type RangeBucket as aj, type IncludeMissingValuesOptions as ak, type ValueAggregation as al, type ValueAggregationOptionsOneOf as am, type RangeAggregation as an, type ScalarAggregation as ao, type DateHistogramAggregation as ap, type NestedAggregationItem as aq, type NestedAggregationItemKindOneOf as ar, type NestedAggregation as as, type SearchDetails as at, type AggregationData as au, type ValueAggregationResult as av, type RangeAggregationResult as aw, type NestedAggregationResults as ax, type NestedAggregationResultsResultOneOf as ay, type ValueResults as az, type ProductGroupSearch as b, type BulkUpdateProductGroupTagsRequest as b0, type BulkUpdateProductGroupTagsResult as b1, type DomainEvent as b2, type DomainEventBodyOneOf as b3, type EntityCreatedEvent as b4, type RestoreInfo as b5, type EntityUpdatedEvent as b6, type EntityDeletedEvent as b7, type ActionEvent as b8, type Empty as b9, type CommonSearchWithEntityContext as bA, createProductGroup as bB, updateProductGroup as bC, deleteProductGroup as bD, getProductGroup as bE, queryProductGroups as bF, bulkCreateProductGroups as bG, bulkUpdateProductGroups as bH, assignProductsToProductGroup as bI, unassignProductsFromProductGroup as bJ, bulkDeleteProductGroups as bK, bulkUpdateProductGroupTags as bL, bulkUpdateProductGroupTagsByFilter as bM, type BulkUpdateProductGroupTagsByFilterRequest as ba, type MessageEnvelope as bb, type IdentificationData as bc, type IdentificationDataIdOneOf as bd, type AccountInfo as be, type ProductGroupsQueryResult as bf, type ProductGroupQuerySpec as bg, type ProductGroupSearchSpec as bh, utils as bi, type ChoiceTypeWithLiterals as bj, type AvailabilityStatusWithLiterals as bk, type MembershipStatusWithLiterals as bl, type CustomizationTypeWithLiterals as bm, type CustomizationRenderTypeWithLiterals as bn, type ProductGroupRequestedFieldsWithLiterals as bo, type SortOrderWithLiterals as bp, type SortTypeWithLiterals as bq, type SortDirectionWithLiterals as br, type MissingValuesWithLiterals as bs, type ScalarTypeWithLiterals as bt, type NestedAggregationTypeWithLiterals as bu, type IntervalWithLiterals as bv, type AggregationTypeWithLiterals as bw, type ModeWithLiterals as bx, type WebhookIdentityTypeWithLiterals as by, type CommonQueryWithEntityContext as bz, type SearchProductGroupsResponse as c, type BulkCreateProductGroupsResponse as d, type BulkUpdateProductGroupsOptions as e, type BulkUpdateProductGroupsResponse as f, type AssignProductsToProductGroupResponse as g, type UnassignProductsFromProductGroupOptions as h, type UnassignProductsFromProductGroupResponse as i, type BulkDeleteProductGroupsResponse as j, type BulkUpdateProductGroupTagsOptions as k, type BulkUpdateProductGroupTagsResponse as l, type BulkUpdateProductGroupTagsApplicationErrors as m, type BulkUpdateProductGroupTagsByFilterOptions as n, type BulkUpdateProductGroupTagsByFilterResponse as o, type BulkUpdateProductGroupTagsByFilterApplicationErrors as p, type ProductGroupQuery as q, type ProductGroupsQueryBuilder as r, ChoiceType as s, typedQueryProductGroups as t, AvailabilityStatus as u, MembershipStatus as v, CustomizationType as w, CustomizationRenderType as x, ProductGroupRequestedFields as y, SortOrder as z };
|