@wix/stores 1.0.56 → 1.0.57

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.
@@ -30,6 +30,10 @@ export interface Media {
30
30
  items?: MediaItem[];
31
31
  }
32
32
  export interface MediaItem extends MediaItemItemOneOf {
33
+ /** Image data (URL, size). */
34
+ image?: MediaItemUrlAndSize;
35
+ /** Video data (URL, size). */
36
+ video?: MediaItemVideo;
33
37
  /** Media item thumbnail details. */
34
38
  thumbnail?: MediaItemUrlAndSize;
35
39
  /** Media item type (image, video, etc.). */
@@ -38,10 +42,6 @@ export interface MediaItem extends MediaItemItemOneOf {
38
42
  title?: string;
39
43
  /** Media ID (for example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`). */
40
44
  id?: string;
41
- /** Image data (URL, size). */
42
- image?: MediaItemUrlAndSize;
43
- /** Video data (URL, size). */
44
- video?: MediaItemVideo;
45
45
  }
46
46
  /** @oneof */
47
47
  export interface MediaItemItemOneOf {
@@ -130,14 +130,14 @@ export interface QueryCollectionsRequest {
130
130
  query?: PlatformQuery;
131
131
  }
132
132
  export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
133
- /** Filter object. */
134
- filter?: Record<string, any> | null;
135
- /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
136
- sort?: Sorting[];
137
133
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
138
134
  paging?: PlatformPaging;
139
135
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
140
136
  cursorPaging?: CursorPaging;
137
+ /** Filter object. */
138
+ filter?: Record<string, any> | null;
139
+ /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
140
+ sort?: Sorting[];
141
141
  }
142
142
  /** @oneof */
143
143
  export interface PlatformQueryPagingMethodOneOf {
@@ -36,6 +36,10 @@ export interface Media {
36
36
  items?: MediaItem[];
37
37
  }
38
38
  export interface MediaItem extends MediaItemItemOneOf {
39
+ /** Image data (URL, size). */
40
+ image?: MediaItemUrlAndSize;
41
+ /** Video data (URL, size). */
42
+ video?: MediaItemVideo;
39
43
  /** Media item thumbnail details. */
40
44
  thumbnail?: MediaItemUrlAndSize;
41
45
  /** Media item type (image, video, etc.). */
@@ -44,10 +48,6 @@ export interface MediaItem extends MediaItemItemOneOf {
44
48
  title?: string;
45
49
  /** Media ID (for example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`). */
46
50
  _id?: string;
47
- /** Image data (URL, size). */
48
- image?: MediaItemUrlAndSize;
49
- /** Video data (URL, size). */
50
- video?: MediaItemVideo;
51
51
  }
52
52
  /** @oneof */
53
53
  export interface MediaItemItemOneOf {
@@ -136,14 +136,14 @@ export interface QueryCollectionsRequest {
136
136
  query?: PlatformQuery;
137
137
  }
138
138
  export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
139
- /** Filter object. */
140
- filter?: Record<string, any> | null;
141
- /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
142
- sort?: Sorting[];
143
139
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
144
140
  paging?: PlatformPaging;
145
141
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
146
142
  cursorPaging?: CursorPaging;
143
+ /** Filter object. */
144
+ filter?: Record<string, any> | null;
145
+ /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
146
+ sort?: Sorting[];
147
147
  }
148
148
  /** @oneof */
149
149
  export interface PlatformQueryPagingMethodOneOf {
@@ -265,6 +265,10 @@ export interface Media {
265
265
  items?: MediaItem[];
266
266
  }
267
267
  export interface MediaItem extends MediaItemItemOneOf {
268
+ /** Image data (URL, size). */
269
+ image?: MediaItemUrlAndSize;
270
+ /** Video data (URL, size). */
271
+ video?: MediaItemVideo;
268
272
  /** Media item thumbnail details. */
269
273
  thumbnail?: MediaItemUrlAndSize;
270
274
  /** Media item type (image, video, etc.). */
@@ -273,10 +277,6 @@ export interface MediaItem extends MediaItemItemOneOf {
273
277
  title?: string;
274
278
  /** Media ID (for example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`). */
275
279
  id?: string;
276
- /** Image data (URL, size). */
277
- image?: MediaItemUrlAndSize;
278
- /** Video data (URL, size). */
279
- video?: MediaItemVideo;
280
280
  }
281
281
  /** @oneof */
282
282
  export interface MediaItemItemOneOf {
@@ -543,16 +543,16 @@ export interface AddProductMediaRequest {
543
543
  media?: MediaDataForWrite[];
544
544
  }
545
545
  export interface MediaDataForWrite extends MediaDataForWriteMediaSourceOneOf {
546
+ /** Media ID. For media items previously saved in Wix Media, the media ID is returned in the Query Product response. */
547
+ mediaId?: string;
548
+ /** Media external URL (for new media items). */
549
+ url?: string;
546
550
  /**
547
551
  * Optional - assign this media item to a specific product choice.
548
552
  * Note that you may set media items for choices under only one option (e.g., if Colors blue, green, and red have media items, Sizes S, M, and L can't have media items assigned to them).
549
553
  * You may clear existing media from choices via the Remove Product Media From Choices endpoint
550
554
  */
551
555
  choice?: OptionAndChoice;
552
- /** Media ID. For media items previously saved in Wix Media, the media ID is returned in the Query Product response. */
553
- mediaId?: string;
554
- /** Media external URL (for new media items). */
555
- url?: string;
556
556
  }
557
557
  /** @oneof */
558
558
  export interface MediaDataForWriteMediaSourceOneOf {
@@ -998,14 +998,14 @@ export interface QueryProductsPlatformizedRequest {
998
998
  query?: PlatformQuery;
999
999
  }
1000
1000
  export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
1001
- /** Filter object. */
1002
- filter?: Record<string, any> | null;
1003
- /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1004
- sort?: Sorting[];
1005
1001
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
1006
1002
  paging?: PlatformPaging;
1007
1003
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
1008
1004
  cursorPaging?: CursorPaging;
1005
+ /** Filter object. */
1006
+ filter?: Record<string, any> | null;
1007
+ /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1008
+ sort?: Sorting[];
1009
1009
  }
1010
1010
  /** @oneof */
1011
1011
  export interface PlatformQueryPagingMethodOneOf {
@@ -1312,14 +1312,14 @@ export interface QueryStoreVariantsWithBigLimitRequest {
1312
1312
  * It doesn't have max validation for limit but we still MUST have it so implement required validation in your code.
1313
1313
  */
1314
1314
  export interface UnlimitedPlatformQuery extends UnlimitedPlatformQueryPagingMethodOneOf {
1315
- /** Filter object. */
1316
- filter?: Record<string, any> | null;
1317
- /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1318
- sort?: Sorting[];
1319
1315
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
1320
1316
  paging?: UnlimitedPlatformPaging;
1321
1317
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
1322
1318
  cursorPaging?: UnlimitedPlatformCursorPaging;
1319
+ /** Filter object. */
1320
+ filter?: Record<string, any> | null;
1321
+ /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1322
+ sort?: Sorting[];
1323
1323
  }
1324
1324
  /** @oneof */
1325
1325
  export interface UnlimitedPlatformQueryPagingMethodOneOf {
@@ -271,6 +271,10 @@ export interface Media {
271
271
  items?: MediaItem[];
272
272
  }
273
273
  export interface MediaItem extends MediaItemItemOneOf {
274
+ /** Image data (URL, size). */
275
+ image?: MediaItemUrlAndSize;
276
+ /** Video data (URL, size). */
277
+ video?: MediaItemVideo;
274
278
  /** Media item thumbnail details. */
275
279
  thumbnail?: MediaItemUrlAndSize;
276
280
  /** Media item type (image, video, etc.). */
@@ -279,10 +283,6 @@ export interface MediaItem extends MediaItemItemOneOf {
279
283
  title?: string;
280
284
  /** Media ID (for example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`). */
281
285
  _id?: string;
282
- /** Image data (URL, size). */
283
- image?: MediaItemUrlAndSize;
284
- /** Video data (URL, size). */
285
- video?: MediaItemVideo;
286
286
  }
287
287
  /** @oneof */
288
288
  export interface MediaItemItemOneOf {
@@ -549,16 +549,16 @@ export interface AddProductMediaRequest {
549
549
  media?: MediaDataForWrite[];
550
550
  }
551
551
  export interface MediaDataForWrite extends MediaDataForWriteMediaSourceOneOf {
552
+ /** Media ID. For media items previously saved in Wix Media, the media ID is returned in the Query Product response. */
553
+ mediaId?: string;
554
+ /** Media external URL (for new media items). */
555
+ url?: string;
552
556
  /**
553
557
  * Optional - assign this media item to a specific product choice.
554
558
  * Note that you may set media items for choices under only one option (e.g., if Colors blue, green, and red have media items, Sizes S, M, and L can't have media items assigned to them).
555
559
  * You may clear existing media from choices via the Remove Product Media From Choices endpoint
556
560
  */
557
561
  choice?: OptionAndChoice;
558
- /** Media ID. For media items previously saved in Wix Media, the media ID is returned in the Query Product response. */
559
- mediaId?: string;
560
- /** Media external URL (for new media items). */
561
- url?: string;
562
562
  }
563
563
  /** @oneof */
564
564
  export interface MediaDataForWriteMediaSourceOneOf {
@@ -1004,14 +1004,14 @@ export interface QueryProductsPlatformizedRequest {
1004
1004
  query?: PlatformQuery;
1005
1005
  }
1006
1006
  export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
1007
- /** Filter object. */
1008
- filter?: Record<string, any> | null;
1009
- /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1010
- sort?: Sorting[];
1011
1007
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
1012
1008
  paging?: PlatformPaging;
1013
1009
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
1014
1010
  cursorPaging?: CursorPaging;
1011
+ /** Filter object. */
1012
+ filter?: Record<string, any> | null;
1013
+ /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1014
+ sort?: Sorting[];
1015
1015
  }
1016
1016
  /** @oneof */
1017
1017
  export interface PlatformQueryPagingMethodOneOf {
@@ -1281,14 +1281,14 @@ export interface QueryStoreVariantsWithBigLimitRequest {
1281
1281
  * It doesn't have max validation for limit but we still MUST have it so implement required validation in your code.
1282
1282
  */
1283
1283
  export interface UnlimitedPlatformQuery extends UnlimitedPlatformQueryPagingMethodOneOf {
1284
- /** Filter object. */
1285
- filter?: Record<string, any> | null;
1286
- /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1287
- sort?: Sorting[];
1288
1284
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
1289
1285
  paging?: UnlimitedPlatformPaging;
1290
1286
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
1291
1287
  cursorPaging?: UnlimitedPlatformCursorPaging;
1288
+ /** Filter object. */
1289
+ filter?: Record<string, any> | null;
1290
+ /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1291
+ sort?: Sorting[];
1292
1292
  }
1293
1293
  /** @oneof */
1294
1294
  export interface UnlimitedPlatformQueryPagingMethodOneOf {
@@ -97,14 +97,14 @@ export declare enum ReasonType {
97
97
  REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
98
98
  }
99
99
  export interface GetInventoryVariantsRequest extends GetInventoryVariantsRequestIdOneOf {
100
- /** Variant IDs to query for this inventory item (optional). */
101
- variantIds?: string[];
102
100
  /** Inventory item ID. */
103
101
  inventoryId?: string;
104
102
  /** Deprecated (use productID instead). */
105
103
  externalId?: string;
106
104
  /** Product ID. */
107
105
  productId?: string;
106
+ /** Variant IDs to query for this inventory item (optional). */
107
+ variantIds?: string[];
108
108
  }
109
109
  /** @oneof */
110
110
  export interface GetInventoryVariantsRequestIdOneOf {
@@ -164,8 +164,6 @@ export interface UpdateInventoryVariantsRequest {
164
164
  export interface UpdateInventoryVariantsResponse {
165
165
  }
166
166
  export interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
167
- /** Variants filter. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
168
- filter?: Record<string, any> | null;
169
167
  /** Change availability. */
170
168
  setInStock?: boolean | null;
171
169
  /** Set new quantity. */
@@ -174,6 +172,8 @@ export interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryV
174
172
  incrementBy?: number | null;
175
173
  /** Number to decrement inventory by. */
176
174
  decrementBy?: number | null;
175
+ /** Variants filter. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
176
+ filter?: Record<string, any> | null;
177
177
  }
178
178
  /** @oneof */
179
179
  export interface BulkUpdateInventoryVariantsRequestActionOneOf {
@@ -200,6 +200,12 @@ export interface DecrementInventoryRequest {
200
200
  decrementData?: DecrementData[];
201
201
  }
202
202
  export interface DecrementData extends DecrementDataIdOneOf {
203
+ /** Inventory item ID. */
204
+ inventoryId?: string;
205
+ /** Deprecated: use productId. */
206
+ externalId?: string;
207
+ /** Product ID. */
208
+ productId?: string;
203
209
  /** Variant ID. */
204
210
  variantId?: string;
205
211
  /** Number to decrement inventory by. */
@@ -210,12 +216,6 @@ export interface DecrementData extends DecrementDataIdOneOf {
210
216
  * If false and the item is not available for preorder, we allow regular buy flow (no negative inventory).
211
217
  */
212
218
  preorderRequest?: boolean;
213
- /** Inventory item ID. */
214
- inventoryId?: string;
215
- /** Deprecated: use productId. */
216
- externalId?: string;
217
- /** Product ID. */
218
- productId?: string;
219
219
  }
220
220
  /** @oneof */
221
221
  export interface DecrementDataIdOneOf {
@@ -232,14 +232,14 @@ export interface IncrementInventoryRequest {
232
232
  incrementData?: IncrementData[];
233
233
  }
234
234
  export interface IncrementData extends IncrementDataIdOneOf {
235
- /** Variant ID. */
236
- variantId?: string;
237
- /** Number to increment inventory by. */
238
- incrementBy?: number;
239
235
  /** Inventory item ID. */
240
236
  inventoryId?: string;
241
237
  /** Product ID. */
242
238
  productId?: string;
239
+ /** Variant ID. */
240
+ variantId?: string;
241
+ /** Number to increment inventory by. */
242
+ incrementBy?: number;
243
243
  }
244
244
  /** @oneof */
245
245
  export interface IncrementDataIdOneOf {
@@ -103,14 +103,14 @@ export declare enum ReasonType {
103
103
  REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
104
104
  }
105
105
  export interface GetInventoryVariantsRequest extends GetInventoryVariantsRequestIdOneOf {
106
- /** Variant IDs to query for this inventory item (optional). */
107
- variantIds?: string[];
108
106
  /** Inventory item ID. */
109
107
  inventoryId?: string;
110
108
  /** Deprecated (use productID instead). */
111
109
  externalId?: string;
112
110
  /** Product ID. */
113
111
  productId?: string;
112
+ /** Variant IDs to query for this inventory item (optional). */
113
+ variantIds?: string[];
114
114
  }
115
115
  /** @oneof */
116
116
  export interface GetInventoryVariantsRequestIdOneOf {
@@ -170,8 +170,6 @@ export interface UpdateInventoryVariantsRequest {
170
170
  export interface UpdateInventoryVariantsResponse {
171
171
  }
172
172
  export interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
173
- /** Variants filter. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
174
- filter?: Record<string, any> | null;
175
173
  /** Change availability. */
176
174
  setInStock?: boolean | null;
177
175
  /** Set new quantity. */
@@ -180,6 +178,8 @@ export interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryV
180
178
  incrementBy?: number | null;
181
179
  /** Number to decrement inventory by. */
182
180
  decrementBy?: number | null;
181
+ /** Variants filter. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
182
+ filter?: Record<string, any> | null;
183
183
  }
184
184
  /** @oneof */
185
185
  export interface BulkUpdateInventoryVariantsRequestActionOneOf {
@@ -206,6 +206,12 @@ export interface DecrementInventoryRequest {
206
206
  decrementData?: DecrementData[];
207
207
  }
208
208
  export interface DecrementData extends DecrementDataIdOneOf {
209
+ /** Inventory item ID. */
210
+ inventoryId?: string;
211
+ /** Deprecated: use productId. */
212
+ externalId?: string;
213
+ /** Product ID. */
214
+ productId?: string;
209
215
  /** Variant ID. */
210
216
  variantId?: string;
211
217
  /** Number to decrement inventory by. */
@@ -216,12 +222,6 @@ export interface DecrementData extends DecrementDataIdOneOf {
216
222
  * If false and the item is not available for preorder, we allow regular buy flow (no negative inventory).
217
223
  */
218
224
  preorderRequest?: boolean;
219
- /** Inventory item ID. */
220
- inventoryId?: string;
221
- /** Deprecated: use productId. */
222
- externalId?: string;
223
- /** Product ID. */
224
- productId?: string;
225
225
  }
226
226
  /** @oneof */
227
227
  export interface DecrementDataIdOneOf {
@@ -238,14 +238,14 @@ export interface IncrementInventoryRequest {
238
238
  incrementData?: IncrementData[];
239
239
  }
240
240
  export interface IncrementData extends IncrementDataIdOneOf {
241
- /** Variant ID. */
242
- variantId?: string;
243
- /** Number to increment inventory by. */
244
- incrementBy?: number;
245
241
  /** Inventory item ID. */
246
242
  inventoryId?: string;
247
243
  /** Product ID. */
248
244
  productId?: string;
245
+ /** Variant ID. */
246
+ variantId?: string;
247
+ /** Number to increment inventory by. */
248
+ incrementBy?: number;
249
249
  }
250
250
  /** @oneof */
251
251
  export interface IncrementDataIdOneOf {
@@ -30,6 +30,10 @@ export interface Media {
30
30
  items?: MediaItem[];
31
31
  }
32
32
  export interface MediaItem extends MediaItemItemOneOf {
33
+ /** Image data (URL, size). */
34
+ image?: MediaItemUrlAndSize;
35
+ /** Video data (URL, size). */
36
+ video?: MediaItemVideo;
33
37
  /** Media item thumbnail details. */
34
38
  thumbnail?: MediaItemUrlAndSize;
35
39
  /** Media item type (image, video, etc.). */
@@ -38,10 +42,6 @@ export interface MediaItem extends MediaItemItemOneOf {
38
42
  title?: string;
39
43
  /** Media ID (for example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`). */
40
44
  id?: string;
41
- /** Image data (URL, size). */
42
- image?: MediaItemUrlAndSize;
43
- /** Video data (URL, size). */
44
- video?: MediaItemVideo;
45
45
  }
46
46
  /** @oneof */
47
47
  export interface MediaItemItemOneOf {
@@ -130,14 +130,14 @@ export interface QueryCollectionsRequest {
130
130
  query?: PlatformQuery;
131
131
  }
132
132
  export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
133
- /** Filter object. */
134
- filter?: Record<string, any> | null;
135
- /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
136
- sort?: Sorting[];
137
133
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
138
134
  paging?: PlatformPaging;
139
135
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
140
136
  cursorPaging?: CursorPaging;
137
+ /** Filter object. */
138
+ filter?: Record<string, any> | null;
139
+ /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
140
+ sort?: Sorting[];
141
141
  }
142
142
  /** @oneof */
143
143
  export interface PlatformQueryPagingMethodOneOf {
@@ -36,6 +36,10 @@ export interface Media {
36
36
  items?: MediaItem[];
37
37
  }
38
38
  export interface MediaItem extends MediaItemItemOneOf {
39
+ /** Image data (URL, size). */
40
+ image?: MediaItemUrlAndSize;
41
+ /** Video data (URL, size). */
42
+ video?: MediaItemVideo;
39
43
  /** Media item thumbnail details. */
40
44
  thumbnail?: MediaItemUrlAndSize;
41
45
  /** Media item type (image, video, etc.). */
@@ -44,10 +48,6 @@ export interface MediaItem extends MediaItemItemOneOf {
44
48
  title?: string;
45
49
  /** Media ID (for example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`). */
46
50
  _id?: string;
47
- /** Image data (URL, size). */
48
- image?: MediaItemUrlAndSize;
49
- /** Video data (URL, size). */
50
- video?: MediaItemVideo;
51
51
  }
52
52
  /** @oneof */
53
53
  export interface MediaItemItemOneOf {
@@ -136,14 +136,14 @@ export interface QueryCollectionsRequest {
136
136
  query?: PlatformQuery;
137
137
  }
138
138
  export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
139
- /** Filter object. */
140
- filter?: Record<string, any> | null;
141
- /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
142
- sort?: Sorting[];
143
139
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
144
140
  paging?: PlatformPaging;
145
141
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
146
142
  cursorPaging?: CursorPaging;
143
+ /** Filter object. */
144
+ filter?: Record<string, any> | null;
145
+ /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
146
+ sort?: Sorting[];
147
147
  }
148
148
  /** @oneof */
149
149
  export interface PlatformQueryPagingMethodOneOf {
@@ -265,6 +265,10 @@ export interface Media {
265
265
  items?: MediaItem[];
266
266
  }
267
267
  export interface MediaItem extends MediaItemItemOneOf {
268
+ /** Image data (URL, size). */
269
+ image?: MediaItemUrlAndSize;
270
+ /** Video data (URL, size). */
271
+ video?: MediaItemVideo;
268
272
  /** Media item thumbnail details. */
269
273
  thumbnail?: MediaItemUrlAndSize;
270
274
  /** Media item type (image, video, etc.). */
@@ -273,10 +277,6 @@ export interface MediaItem extends MediaItemItemOneOf {
273
277
  title?: string;
274
278
  /** Media ID (for example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`). */
275
279
  id?: string;
276
- /** Image data (URL, size). */
277
- image?: MediaItemUrlAndSize;
278
- /** Video data (URL, size). */
279
- video?: MediaItemVideo;
280
280
  }
281
281
  /** @oneof */
282
282
  export interface MediaItemItemOneOf {
@@ -543,16 +543,16 @@ export interface AddProductMediaRequest {
543
543
  media?: MediaDataForWrite[];
544
544
  }
545
545
  export interface MediaDataForWrite extends MediaDataForWriteMediaSourceOneOf {
546
+ /** Media ID. For media items previously saved in Wix Media, the media ID is returned in the Query Product response. */
547
+ mediaId?: string;
548
+ /** Media external URL (for new media items). */
549
+ url?: string;
546
550
  /**
547
551
  * Optional - assign this media item to a specific product choice.
548
552
  * Note that you may set media items for choices under only one option (e.g., if Colors blue, green, and red have media items, Sizes S, M, and L can't have media items assigned to them).
549
553
  * You may clear existing media from choices via the Remove Product Media From Choices endpoint
550
554
  */
551
555
  choice?: OptionAndChoice;
552
- /** Media ID. For media items previously saved in Wix Media, the media ID is returned in the Query Product response. */
553
- mediaId?: string;
554
- /** Media external URL (for new media items). */
555
- url?: string;
556
556
  }
557
557
  /** @oneof */
558
558
  export interface MediaDataForWriteMediaSourceOneOf {
@@ -998,14 +998,14 @@ export interface QueryProductsPlatformizedRequest {
998
998
  query?: PlatformQuery;
999
999
  }
1000
1000
  export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
1001
- /** Filter object. */
1002
- filter?: Record<string, any> | null;
1003
- /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1004
- sort?: Sorting[];
1005
1001
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
1006
1002
  paging?: PlatformPaging;
1007
1003
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
1008
1004
  cursorPaging?: CursorPaging;
1005
+ /** Filter object. */
1006
+ filter?: Record<string, any> | null;
1007
+ /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1008
+ sort?: Sorting[];
1009
1009
  }
1010
1010
  /** @oneof */
1011
1011
  export interface PlatformQueryPagingMethodOneOf {
@@ -1312,14 +1312,14 @@ export interface QueryStoreVariantsWithBigLimitRequest {
1312
1312
  * It doesn't have max validation for limit but we still MUST have it so implement required validation in your code.
1313
1313
  */
1314
1314
  export interface UnlimitedPlatformQuery extends UnlimitedPlatformQueryPagingMethodOneOf {
1315
- /** Filter object. */
1316
- filter?: Record<string, any> | null;
1317
- /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1318
- sort?: Sorting[];
1319
1315
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
1320
1316
  paging?: UnlimitedPlatformPaging;
1321
1317
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
1322
1318
  cursorPaging?: UnlimitedPlatformCursorPaging;
1319
+ /** Filter object. */
1320
+ filter?: Record<string, any> | null;
1321
+ /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1322
+ sort?: Sorting[];
1323
1323
  }
1324
1324
  /** @oneof */
1325
1325
  export interface UnlimitedPlatformQueryPagingMethodOneOf {
@@ -271,6 +271,10 @@ export interface Media {
271
271
  items?: MediaItem[];
272
272
  }
273
273
  export interface MediaItem extends MediaItemItemOneOf {
274
+ /** Image data (URL, size). */
275
+ image?: MediaItemUrlAndSize;
276
+ /** Video data (URL, size). */
277
+ video?: MediaItemVideo;
274
278
  /** Media item thumbnail details. */
275
279
  thumbnail?: MediaItemUrlAndSize;
276
280
  /** Media item type (image, video, etc.). */
@@ -279,10 +283,6 @@ export interface MediaItem extends MediaItemItemOneOf {
279
283
  title?: string;
280
284
  /** Media ID (for example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`). */
281
285
  _id?: string;
282
- /** Image data (URL, size). */
283
- image?: MediaItemUrlAndSize;
284
- /** Video data (URL, size). */
285
- video?: MediaItemVideo;
286
286
  }
287
287
  /** @oneof */
288
288
  export interface MediaItemItemOneOf {
@@ -549,16 +549,16 @@ export interface AddProductMediaRequest {
549
549
  media?: MediaDataForWrite[];
550
550
  }
551
551
  export interface MediaDataForWrite extends MediaDataForWriteMediaSourceOneOf {
552
+ /** Media ID. For media items previously saved in Wix Media, the media ID is returned in the Query Product response. */
553
+ mediaId?: string;
554
+ /** Media external URL (for new media items). */
555
+ url?: string;
552
556
  /**
553
557
  * Optional - assign this media item to a specific product choice.
554
558
  * Note that you may set media items for choices under only one option (e.g., if Colors blue, green, and red have media items, Sizes S, M, and L can't have media items assigned to them).
555
559
  * You may clear existing media from choices via the Remove Product Media From Choices endpoint
556
560
  */
557
561
  choice?: OptionAndChoice;
558
- /** Media ID. For media items previously saved in Wix Media, the media ID is returned in the Query Product response. */
559
- mediaId?: string;
560
- /** Media external URL (for new media items). */
561
- url?: string;
562
562
  }
563
563
  /** @oneof */
564
564
  export interface MediaDataForWriteMediaSourceOneOf {
@@ -1004,14 +1004,14 @@ export interface QueryProductsPlatformizedRequest {
1004
1004
  query?: PlatformQuery;
1005
1005
  }
1006
1006
  export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
1007
- /** Filter object. */
1008
- filter?: Record<string, any> | null;
1009
- /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1010
- sort?: Sorting[];
1011
1007
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
1012
1008
  paging?: PlatformPaging;
1013
1009
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
1014
1010
  cursorPaging?: CursorPaging;
1011
+ /** Filter object. */
1012
+ filter?: Record<string, any> | null;
1013
+ /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1014
+ sort?: Sorting[];
1015
1015
  }
1016
1016
  /** @oneof */
1017
1017
  export interface PlatformQueryPagingMethodOneOf {
@@ -1281,14 +1281,14 @@ export interface QueryStoreVariantsWithBigLimitRequest {
1281
1281
  * It doesn't have max validation for limit but we still MUST have it so implement required validation in your code.
1282
1282
  */
1283
1283
  export interface UnlimitedPlatformQuery extends UnlimitedPlatformQueryPagingMethodOneOf {
1284
- /** Filter object. */
1285
- filter?: Record<string, any> | null;
1286
- /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1287
- sort?: Sorting[];
1288
1284
  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */
1289
1285
  paging?: UnlimitedPlatformPaging;
1290
1286
  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */
1291
1287
  cursorPaging?: UnlimitedPlatformCursorPaging;
1288
+ /** Filter object. */
1289
+ filter?: Record<string, any> | null;
1290
+ /** Sorting options. For example, `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]`. */
1291
+ sort?: Sorting[];
1292
1292
  }
1293
1293
  /** @oneof */
1294
1294
  export interface UnlimitedPlatformQueryPagingMethodOneOf {
@@ -97,14 +97,14 @@ export declare enum ReasonType {
97
97
  REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
98
98
  }
99
99
  export interface GetInventoryVariantsRequest extends GetInventoryVariantsRequestIdOneOf {
100
- /** Variant IDs to query for this inventory item (optional). */
101
- variantIds?: string[];
102
100
  /** Inventory item ID. */
103
101
  inventoryId?: string;
104
102
  /** Deprecated (use productID instead). */
105
103
  externalId?: string;
106
104
  /** Product ID. */
107
105
  productId?: string;
106
+ /** Variant IDs to query for this inventory item (optional). */
107
+ variantIds?: string[];
108
108
  }
109
109
  /** @oneof */
110
110
  export interface GetInventoryVariantsRequestIdOneOf {
@@ -164,8 +164,6 @@ export interface UpdateInventoryVariantsRequest {
164
164
  export interface UpdateInventoryVariantsResponse {
165
165
  }
166
166
  export interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
167
- /** Variants filter. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
168
- filter?: Record<string, any> | null;
169
167
  /** Change availability. */
170
168
  setInStock?: boolean | null;
171
169
  /** Set new quantity. */
@@ -174,6 +172,8 @@ export interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryV
174
172
  incrementBy?: number | null;
175
173
  /** Number to decrement inventory by. */
176
174
  decrementBy?: number | null;
175
+ /** Variants filter. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
176
+ filter?: Record<string, any> | null;
177
177
  }
178
178
  /** @oneof */
179
179
  export interface BulkUpdateInventoryVariantsRequestActionOneOf {
@@ -200,6 +200,12 @@ export interface DecrementInventoryRequest {
200
200
  decrementData?: DecrementData[];
201
201
  }
202
202
  export interface DecrementData extends DecrementDataIdOneOf {
203
+ /** Inventory item ID. */
204
+ inventoryId?: string;
205
+ /** Deprecated: use productId. */
206
+ externalId?: string;
207
+ /** Product ID. */
208
+ productId?: string;
203
209
  /** Variant ID. */
204
210
  variantId?: string;
205
211
  /** Number to decrement inventory by. */
@@ -210,12 +216,6 @@ export interface DecrementData extends DecrementDataIdOneOf {
210
216
  * If false and the item is not available for preorder, we allow regular buy flow (no negative inventory).
211
217
  */
212
218
  preorderRequest?: boolean;
213
- /** Inventory item ID. */
214
- inventoryId?: string;
215
- /** Deprecated: use productId. */
216
- externalId?: string;
217
- /** Product ID. */
218
- productId?: string;
219
219
  }
220
220
  /** @oneof */
221
221
  export interface DecrementDataIdOneOf {
@@ -232,14 +232,14 @@ export interface IncrementInventoryRequest {
232
232
  incrementData?: IncrementData[];
233
233
  }
234
234
  export interface IncrementData extends IncrementDataIdOneOf {
235
- /** Variant ID. */
236
- variantId?: string;
237
- /** Number to increment inventory by. */
238
- incrementBy?: number;
239
235
  /** Inventory item ID. */
240
236
  inventoryId?: string;
241
237
  /** Product ID. */
242
238
  productId?: string;
239
+ /** Variant ID. */
240
+ variantId?: string;
241
+ /** Number to increment inventory by. */
242
+ incrementBy?: number;
243
243
  }
244
244
  /** @oneof */
245
245
  export interface IncrementDataIdOneOf {
@@ -103,14 +103,14 @@ export declare enum ReasonType {
103
103
  REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
104
104
  }
105
105
  export interface GetInventoryVariantsRequest extends GetInventoryVariantsRequestIdOneOf {
106
- /** Variant IDs to query for this inventory item (optional). */
107
- variantIds?: string[];
108
106
  /** Inventory item ID. */
109
107
  inventoryId?: string;
110
108
  /** Deprecated (use productID instead). */
111
109
  externalId?: string;
112
110
  /** Product ID. */
113
111
  productId?: string;
112
+ /** Variant IDs to query for this inventory item (optional). */
113
+ variantIds?: string[];
114
114
  }
115
115
  /** @oneof */
116
116
  export interface GetInventoryVariantsRequestIdOneOf {
@@ -170,8 +170,6 @@ export interface UpdateInventoryVariantsRequest {
170
170
  export interface UpdateInventoryVariantsResponse {
171
171
  }
172
172
  export interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
173
- /** Variants filter. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
174
- filter?: Record<string, any> | null;
175
173
  /** Change availability. */
176
174
  setInStock?: boolean | null;
177
175
  /** Set new quantity. */
@@ -180,6 +178,8 @@ export interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryV
180
178
  incrementBy?: number | null;
181
179
  /** Number to decrement inventory by. */
182
180
  decrementBy?: number | null;
181
+ /** Variants filter. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
182
+ filter?: Record<string, any> | null;
183
183
  }
184
184
  /** @oneof */
185
185
  export interface BulkUpdateInventoryVariantsRequestActionOneOf {
@@ -206,6 +206,12 @@ export interface DecrementInventoryRequest {
206
206
  decrementData?: DecrementData[];
207
207
  }
208
208
  export interface DecrementData extends DecrementDataIdOneOf {
209
+ /** Inventory item ID. */
210
+ inventoryId?: string;
211
+ /** Deprecated: use productId. */
212
+ externalId?: string;
213
+ /** Product ID. */
214
+ productId?: string;
209
215
  /** Variant ID. */
210
216
  variantId?: string;
211
217
  /** Number to decrement inventory by. */
@@ -216,12 +222,6 @@ export interface DecrementData extends DecrementDataIdOneOf {
216
222
  * If false and the item is not available for preorder, we allow regular buy flow (no negative inventory).
217
223
  */
218
224
  preorderRequest?: boolean;
219
- /** Inventory item ID. */
220
- inventoryId?: string;
221
- /** Deprecated: use productId. */
222
- externalId?: string;
223
- /** Product ID. */
224
- productId?: string;
225
225
  }
226
226
  /** @oneof */
227
227
  export interface DecrementDataIdOneOf {
@@ -238,14 +238,14 @@ export interface IncrementInventoryRequest {
238
238
  incrementData?: IncrementData[];
239
239
  }
240
240
  export interface IncrementData extends IncrementDataIdOneOf {
241
- /** Variant ID. */
242
- variantId?: string;
243
- /** Number to increment inventory by. */
244
- incrementBy?: number;
245
241
  /** Inventory item ID. */
246
242
  inventoryId?: string;
247
243
  /** Product ID. */
248
244
  productId?: string;
245
+ /** Variant ID. */
246
+ variantId?: string;
247
+ /** Number to increment inventory by. */
248
+ incrementBy?: number;
249
249
  }
250
250
  /** @oneof */
251
251
  export interface IncrementDataIdOneOf {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/stores",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -33,5 +33,5 @@
33
33
  "groupId": "com.wixpress.public-sdk-autogen"
34
34
  }
35
35
  },
36
- "falconPackageHash": "2b940a6b91ead6328e10ba7d53451408d3a79a73559338d3d0d94481"
36
+ "falconPackageHash": "ad717010558cc240623923d3337e48cdf7e6d9a1c7b667ef5131eaa8"
37
37
  }