@wix/auto_sdk_stores_inventory 1.0.0 → 1.0.2

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.
Files changed (69) hide show
  1. package/build/cjs/src/stores-v2-inventory-inventory.context.d.ts +4 -4
  2. package/build/cjs/src/stores-v2-inventory-inventory.context.js +3 -3
  3. package/build/cjs/src/stores-v2-inventory-inventory.context.js.map +1 -1
  4. package/build/cjs/src/stores-v2-inventory-inventory.http.d.ts +9 -9
  5. package/build/cjs/src/stores-v2-inventory-inventory.http.js +118 -118
  6. package/build/cjs/src/stores-v2-inventory-inventory.http.js.map +1 -1
  7. package/build/cjs/src/stores-v2-inventory-inventory.meta.d.ts +4 -4
  8. package/build/cjs/src/stores-v2-inventory-inventory.meta.js +31 -31
  9. package/build/cjs/src/stores-v2-inventory-inventory.meta.js.map +1 -1
  10. package/build/cjs/src/stores-v2-inventory-inventory.public.d.ts +18 -18
  11. package/build/cjs/src/stores-v2-inventory-inventory.public.js +13 -13
  12. package/build/cjs/src/stores-v2-inventory-inventory.public.js.map +1 -1
  13. package/build/cjs/src/stores-v2-inventory-inventory.types.d.ts +224 -126
  14. package/build/cjs/src/stores-v2-inventory-inventory.types.js.map +1 -1
  15. package/build/cjs/src/stores-v2-inventory-inventory.universal.d.ts +278 -165
  16. package/build/cjs/src/stores-v2-inventory-inventory.universal.js +91 -91
  17. package/build/cjs/src/stores-v2-inventory-inventory.universal.js.map +1 -1
  18. package/build/es/src/stores-v2-inventory-inventory.context.d.ts +4 -4
  19. package/build/es/src/stores-v2-inventory-inventory.context.js +3 -3
  20. package/build/es/src/stores-v2-inventory-inventory.context.js.map +1 -1
  21. package/build/es/src/stores-v2-inventory-inventory.http.d.ts +9 -9
  22. package/build/es/src/stores-v2-inventory-inventory.http.js +115 -115
  23. package/build/es/src/stores-v2-inventory-inventory.http.js.map +1 -1
  24. package/build/es/src/stores-v2-inventory-inventory.meta.d.ts +4 -4
  25. package/build/es/src/stores-v2-inventory-inventory.meta.js +25 -25
  26. package/build/es/src/stores-v2-inventory-inventory.meta.js.map +1 -1
  27. package/build/es/src/stores-v2-inventory-inventory.public.d.ts +18 -18
  28. package/build/es/src/stores-v2-inventory-inventory.public.js +10 -10
  29. package/build/es/src/stores-v2-inventory-inventory.public.js.map +1 -1
  30. package/build/es/src/stores-v2-inventory-inventory.types.d.ts +224 -126
  31. package/build/es/src/stores-v2-inventory-inventory.types.js.map +1 -1
  32. package/build/es/src/stores-v2-inventory-inventory.universal.d.ts +278 -165
  33. package/build/es/src/stores-v2-inventory-inventory.universal.js +85 -85
  34. package/build/es/src/stores-v2-inventory-inventory.universal.js.map +1 -1
  35. package/build/internal/cjs/src/stores-v2-inventory-inventory.context.d.ts +4 -4
  36. package/build/internal/cjs/src/stores-v2-inventory-inventory.context.js +3 -3
  37. package/build/internal/cjs/src/stores-v2-inventory-inventory.context.js.map +1 -1
  38. package/build/internal/cjs/src/stores-v2-inventory-inventory.http.d.ts +9 -9
  39. package/build/internal/cjs/src/stores-v2-inventory-inventory.http.js +118 -118
  40. package/build/internal/cjs/src/stores-v2-inventory-inventory.http.js.map +1 -1
  41. package/build/internal/cjs/src/stores-v2-inventory-inventory.meta.d.ts +4 -4
  42. package/build/internal/cjs/src/stores-v2-inventory-inventory.meta.js +31 -31
  43. package/build/internal/cjs/src/stores-v2-inventory-inventory.meta.js.map +1 -1
  44. package/build/internal/cjs/src/stores-v2-inventory-inventory.public.d.ts +18 -18
  45. package/build/internal/cjs/src/stores-v2-inventory-inventory.public.js +13 -13
  46. package/build/internal/cjs/src/stores-v2-inventory-inventory.public.js.map +1 -1
  47. package/build/internal/cjs/src/stores-v2-inventory-inventory.types.d.ts +224 -126
  48. package/build/internal/cjs/src/stores-v2-inventory-inventory.types.js.map +1 -1
  49. package/build/internal/cjs/src/stores-v2-inventory-inventory.universal.d.ts +311 -189
  50. package/build/internal/cjs/src/stores-v2-inventory-inventory.universal.js +91 -91
  51. package/build/internal/cjs/src/stores-v2-inventory-inventory.universal.js.map +1 -1
  52. package/build/internal/es/src/stores-v2-inventory-inventory.context.d.ts +4 -4
  53. package/build/internal/es/src/stores-v2-inventory-inventory.context.js +3 -3
  54. package/build/internal/es/src/stores-v2-inventory-inventory.context.js.map +1 -1
  55. package/build/internal/es/src/stores-v2-inventory-inventory.http.d.ts +9 -9
  56. package/build/internal/es/src/stores-v2-inventory-inventory.http.js +115 -115
  57. package/build/internal/es/src/stores-v2-inventory-inventory.http.js.map +1 -1
  58. package/build/internal/es/src/stores-v2-inventory-inventory.meta.d.ts +4 -4
  59. package/build/internal/es/src/stores-v2-inventory-inventory.meta.js +25 -25
  60. package/build/internal/es/src/stores-v2-inventory-inventory.meta.js.map +1 -1
  61. package/build/internal/es/src/stores-v2-inventory-inventory.public.d.ts +18 -18
  62. package/build/internal/es/src/stores-v2-inventory-inventory.public.js +10 -10
  63. package/build/internal/es/src/stores-v2-inventory-inventory.public.js.map +1 -1
  64. package/build/internal/es/src/stores-v2-inventory-inventory.types.d.ts +224 -126
  65. package/build/internal/es/src/stores-v2-inventory-inventory.types.js.map +1 -1
  66. package/build/internal/es/src/stores-v2-inventory-inventory.universal.d.ts +311 -189
  67. package/build/internal/es/src/stores-v2-inventory-inventory.universal.js +85 -85
  68. package/build/internal/es/src/stores-v2-inventory-inventory.universal.js.map +1 -1
  69. package/package.json +2 -2
@@ -40,11 +40,175 @@ export interface InventoryVariantV2 {
40
40
  export interface PreorderInfo {
41
41
  /** Whether the item is available for preorder. */
42
42
  enabled?: boolean;
43
- /** A message the buyer will see when the item is out of stock and preorder is enabled. */
43
+ /**
44
+ * A message the buyer will see when the item is out of stock and preorder is enabled.
45
+ * @minLength 1
46
+ * @maxLength 250
47
+ */
44
48
  message?: string | null;
45
- /** Number of products that can be preordered after stock reaches zero. */
49
+ /**
50
+ * Number of products that can be preordered after stock reaches zero.
51
+ * @max 100000
52
+ */
46
53
  limit?: number | null;
47
54
  }
55
+ export interface UpdateInventoryVariantsRequest {
56
+ /** Inventory item. */
57
+ inventoryItem: InventoryItemV2;
58
+ }
59
+ export declare enum ReasonType {
60
+ /** Unknown reason. */
61
+ UNKNOWN = "UNKNOWN",
62
+ /** Order related. */
63
+ ORDER = "ORDER",
64
+ /** Manual adjustment. */
65
+ MANUAL = "MANUAL",
66
+ /** Reverting an inventory change. */
67
+ REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
68
+ }
69
+ export interface UpdateInventoryVariantsResponse {
70
+ }
71
+ export interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
72
+ /** Change availability. */
73
+ setInStock?: boolean | null;
74
+ /** Set new quantity. */
75
+ setQuantity?: number | null;
76
+ /**
77
+ * Number to increment inventory by.
78
+ * @min 1
79
+ */
80
+ incrementBy?: number | null;
81
+ /**
82
+ * Number to decrement inventory by.
83
+ * @min 1
84
+ */
85
+ decrementBy?: number | null;
86
+ /** Variants filter. Learn more about [API query language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
87
+ filter?: Record<string, any> | null;
88
+ }
89
+ /** @oneof */
90
+ export interface BulkUpdateInventoryVariantsRequestActionOneOf {
91
+ /** Change availability. */
92
+ setInStock?: boolean | null;
93
+ /** Set new quantity. */
94
+ setQuantity?: number | null;
95
+ /**
96
+ * Number to increment inventory by.
97
+ * @min 1
98
+ */
99
+ incrementBy?: number | null;
100
+ /**
101
+ * Number to decrement inventory by.
102
+ * @min 1
103
+ */
104
+ decrementBy?: number | null;
105
+ }
106
+ export interface BulkUpdateInventoryVariantsResponse {
107
+ }
108
+ export interface BulkUpdateInventoryItemsRequest {
109
+ /** Variants filter */
110
+ variantsFilter?: Record<string, any> | null;
111
+ /** Whether inventory is being tracked. */
112
+ trackInventory?: boolean | null;
113
+ }
114
+ export interface BulkUpdateInventoryItemsResponse {
115
+ }
116
+ export interface DecrementInventoryRequest {
117
+ /**
118
+ * Item or product to decrement.
119
+ * @minSize 1
120
+ * @maxSize 300
121
+ */
122
+ decrementData?: DecrementData[];
123
+ }
124
+ export interface DecrementData extends DecrementDataIdOneOf {
125
+ /**
126
+ * Inventory item ID.
127
+ * @maxLength 36
128
+ */
129
+ inventoryId?: string;
130
+ /**
131
+ * Product ID.
132
+ * @maxLength 36
133
+ */
134
+ productId?: string;
135
+ /**
136
+ * Variant ID.
137
+ * @format GUID
138
+ */
139
+ variantId?: string;
140
+ /**
141
+ * Number to decrement inventory by.
142
+ * @min 1
143
+ */
144
+ decrementBy?: number;
145
+ /**
146
+ * Whether the request to decrement the item's inventory was made as part of a purchase that includes preorder items.
147
+ * If true and the item is available for preorder, we allow negative inventory.
148
+ * If false and the item is not available for preorder, we allow regular buy flow (no negative inventory).
149
+ */
150
+ preorderRequest?: boolean;
151
+ }
152
+ /** @oneof */
153
+ export interface DecrementDataIdOneOf {
154
+ /**
155
+ * Inventory item ID.
156
+ * @maxLength 36
157
+ */
158
+ inventoryId?: string;
159
+ /**
160
+ * Product ID.
161
+ * @maxLength 36
162
+ */
163
+ productId?: string;
164
+ }
165
+ export interface DecrementInventoryResponse {
166
+ }
167
+ export interface IncrementInventoryRequest {
168
+ /**
169
+ * Item or product to increment.
170
+ * @minSize 1
171
+ * @maxSize 300
172
+ */
173
+ incrementData?: IncrementData[];
174
+ }
175
+ export interface IncrementData extends IncrementDataIdOneOf {
176
+ /**
177
+ * Inventory item ID.
178
+ * @maxLength 36
179
+ */
180
+ inventoryId?: string;
181
+ /**
182
+ * Product ID.
183
+ * @maxLength 36
184
+ */
185
+ productId?: string;
186
+ /**
187
+ * Variant ID.
188
+ * @format GUID
189
+ */
190
+ variantId?: string;
191
+ /**
192
+ * Number to increment inventory by.
193
+ * @min 1
194
+ */
195
+ incrementBy?: number;
196
+ }
197
+ /** @oneof */
198
+ export interface IncrementDataIdOneOf {
199
+ /**
200
+ * Inventory item ID.
201
+ * @maxLength 36
202
+ */
203
+ inventoryId?: string;
204
+ /**
205
+ * Product ID.
206
+ * @maxLength 36
207
+ */
208
+ productId?: string;
209
+ }
210
+ export interface IncrementInventoryResponse {
211
+ }
48
212
  export interface InventoryItemChanged {
49
213
  /** Inventory item ID. */
50
214
  inventoryItemId?: string;
@@ -85,16 +249,6 @@ export interface ChangedInventoryVariantData {
85
249
  /** Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level. */
86
250
  availableForPreorder?: boolean;
87
251
  }
88
- export declare enum ReasonType {
89
- /** Unknown reason. */
90
- UNKNOWN = "UNKNOWN",
91
- /** Order related. */
92
- ORDER = "ORDER",
93
- /** Manual adjustment. */
94
- MANUAL = "MANUAL",
95
- /** Reverting an inventory change. */
96
- REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
97
- }
98
252
  export interface GetInventoryVariantsRequest extends GetInventoryVariantsRequestIdOneOf {
99
253
  /** Inventory item ID. */
100
254
  inventoryId: string;
@@ -135,7 +289,10 @@ export interface Query {
135
289
  sort?: string | null;
136
290
  }
137
291
  export interface Paging {
138
- /** Amount of items to load per page */
292
+ /**
293
+ * Amount of items to load per page
294
+ * @max 100
295
+ */
139
296
  limit?: number | null;
140
297
  /** Number of items to skip in the display (relevant for all pages after the first) */
141
298
  offset?: number | null;
@@ -155,9 +312,15 @@ export interface PagingMetadata {
155
312
  offset?: number;
156
313
  }
157
314
  export interface MessageEnvelope {
158
- /** App instance ID. */
315
+ /**
316
+ * App instance ID.
317
+ * @format GUID
318
+ */
159
319
  instanceId?: string | null;
160
- /** Event type. */
320
+ /**
321
+ * Event type.
322
+ * @maxLength 150
323
+ */
161
324
  eventType?: string;
162
325
  /** The identification type and identity data. */
163
326
  identity?: IdentificationData;
@@ -165,26 +328,50 @@ export interface MessageEnvelope {
165
328
  data?: string;
166
329
  }
167
330
  export interface IdentificationData extends IdentificationDataIdOneOf {
168
- /** ID of a site visitor that has not logged in to the site. */
331
+ /**
332
+ * ID of a site visitor that has not logged in to the site.
333
+ * @format GUID
334
+ */
169
335
  anonymousVisitorId?: string;
170
- /** ID of a site visitor that has logged in to the site. */
336
+ /**
337
+ * ID of a site visitor that has logged in to the site.
338
+ * @format GUID
339
+ */
171
340
  memberId?: string;
172
- /** ID of a Wix user (site owner, contributor, etc.). */
341
+ /**
342
+ * ID of a Wix user (site owner, contributor, etc.).
343
+ * @format GUID
344
+ */
173
345
  wixUserId?: string;
174
- /** ID of an app. */
346
+ /**
347
+ * ID of an app.
348
+ * @format GUID
349
+ */
175
350
  appId?: string;
176
351
  /** @readonly */
177
352
  identityType?: WebhookIdentityType;
178
353
  }
179
354
  /** @oneof */
180
355
  export interface IdentificationDataIdOneOf {
181
- /** ID of a site visitor that has not logged in to the site. */
356
+ /**
357
+ * ID of a site visitor that has not logged in to the site.
358
+ * @format GUID
359
+ */
182
360
  anonymousVisitorId?: string;
183
- /** ID of a site visitor that has logged in to the site. */
361
+ /**
362
+ * ID of a site visitor that has logged in to the site.
363
+ * @format GUID
364
+ */
184
365
  memberId?: string;
185
- /** ID of a Wix user (site owner, contributor, etc.). */
366
+ /**
367
+ * ID of a Wix user (site owner, contributor, etc.).
368
+ * @format GUID
369
+ */
186
370
  wixUserId?: string;
187
- /** ID of an app. */
371
+ /**
372
+ * ID of an app.
373
+ * @format GUID
374
+ */
188
375
  appId?: string;
189
376
  }
190
377
  export declare enum WebhookIdentityType {
@@ -194,97 +381,6 @@ export declare enum WebhookIdentityType {
194
381
  WIX_USER = "WIX_USER",
195
382
  APP = "APP"
196
383
  }
197
- export interface UpdateInventoryVariantsRequest {
198
- /** Inventory item. */
199
- inventoryItem: InventoryItemV2;
200
- }
201
- export interface UpdateInventoryVariantsResponse {
202
- }
203
- export interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
204
- /** Change availability. */
205
- setInStock?: boolean | null;
206
- /** Set new quantity. */
207
- setQuantity?: number | null;
208
- /** Number to increment inventory by. */
209
- incrementBy?: number | null;
210
- /** Number to decrement inventory by. */
211
- decrementBy?: number | null;
212
- /** Variants filter. Learn more about [API query language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
213
- filter?: Record<string, any> | null;
214
- }
215
- /** @oneof */
216
- export interface BulkUpdateInventoryVariantsRequestActionOneOf {
217
- /** Change availability. */
218
- setInStock?: boolean | null;
219
- /** Set new quantity. */
220
- setQuantity?: number | null;
221
- /** Number to increment inventory by. */
222
- incrementBy?: number | null;
223
- /** Number to decrement inventory by. */
224
- decrementBy?: number | null;
225
- }
226
- export interface BulkUpdateInventoryVariantsResponse {
227
- }
228
- export interface BulkUpdateInventoryItemsRequest {
229
- /** Variants filter */
230
- variantsFilter?: Record<string, any> | null;
231
- /** Whether inventory is being tracked. */
232
- trackInventory?: boolean | null;
233
- }
234
- export interface BulkUpdateInventoryItemsResponse {
235
- }
236
- export interface DecrementInventoryRequest {
237
- /** Item or product to decrement. */
238
- decrementData?: DecrementData[];
239
- }
240
- export interface DecrementData extends DecrementDataIdOneOf {
241
- /** Inventory item ID. */
242
- inventoryId?: string;
243
- /** Product ID. */
244
- productId?: string;
245
- /** Variant ID. */
246
- variantId?: string;
247
- /** Number to decrement inventory by. */
248
- decrementBy?: number;
249
- /**
250
- * Whether the request to decrement the item's inventory was made as part of a purchase that includes preorder items.
251
- * If true and the item is available for preorder, we allow negative inventory.
252
- * If false and the item is not available for preorder, we allow regular buy flow (no negative inventory).
253
- */
254
- preorderRequest?: boolean;
255
- }
256
- /** @oneof */
257
- export interface DecrementDataIdOneOf {
258
- /** Inventory item ID. */
259
- inventoryId?: string;
260
- /** Product ID. */
261
- productId?: string;
262
- }
263
- export interface DecrementInventoryResponse {
264
- }
265
- export interface IncrementInventoryRequest {
266
- /** Item or product to increment. */
267
- incrementData?: IncrementData[];
268
- }
269
- export interface IncrementData extends IncrementDataIdOneOf {
270
- /** Inventory item ID. */
271
- inventoryId?: string;
272
- /** Product ID. */
273
- productId?: string;
274
- /** Variant ID. */
275
- variantId?: string;
276
- /** Number to increment inventory by. */
277
- incrementBy?: number;
278
- }
279
- /** @oneof */
280
- export interface IncrementDataIdOneOf {
281
- /** Inventory item ID. */
282
- inventoryId?: string;
283
- /** Product ID. */
284
- productId?: string;
285
- }
286
- export interface IncrementInventoryResponse {
287
- }
288
384
  interface InventoryVariantV2NonNullableFields {
289
385
  variantId: string;
290
386
  availableForPreorder: boolean;
@@ -310,9 +406,15 @@ export interface QueryInventoryResponseNonNullableFields {
310
406
  totalResults: number;
311
407
  }
312
408
  export interface BaseEventMetadata {
313
- /** App instance ID. */
409
+ /**
410
+ * App instance ID.
411
+ * @format GUID
412
+ */
314
413
  instanceId?: string | null;
315
- /** Event type. */
414
+ /**
415
+ * Event type.
416
+ * @maxLength 150
417
+ */
316
418
  eventType?: string;
317
419
  /** The identification type and identity data. */
318
420
  identity?: IdentificationData;
@@ -334,6 +436,8 @@ export interface InventoryItemChangedEnvelope {
334
436
  * @permissionId WIX_STORES.READ_INVENTORY
335
437
  * @webhook
336
438
  * @eventType com.wix.ecommerce.inventory.api.v1.InventoryItemChanged
439
+ * @serviceIdentifier wix.inventory.api.v1.InventoryReadApi
440
+ * @slug inventory_item_changed
337
441
  */
338
442
  export declare function onInventoryItemChanged(handler: (event: InventoryItemChangedEnvelope) => void | Promise<void>): void;
339
443
  export interface InventoryVariantsChangedEnvelope {
@@ -353,57 +457,10 @@ export interface InventoryVariantsChangedEnvelope {
353
457
  * @permissionId WIX_STORES.READ_INVENTORY
354
458
  * @webhook
355
459
  * @eventType com.wix.ecommerce.inventory.api.v1.InventoryVariantsChanged
460
+ * @serviceIdentifier wix.inventory.api.v1.InventoryReadApi
461
+ * @slug inventory_variants_changed
356
462
  */
357
463
  export declare function onInventoryVariantsChanged(handler: (event: InventoryVariantsChangedEnvelope) => void | Promise<void>): void;
358
- /**
359
- * Gets inventory variant information based on the specified option choices.
360
- *
361
- *
362
- * The `getInventoryVariants()` function returns a Promise that resolves to the specified inventory variant information.
363
- * @param inventoryId - Inventory item ID.
364
- * @public
365
- * @requiredField inventoryId
366
- * @permissionId WIX_STORES.READ_INVENTORY
367
- * @permissionScope Manage Stores - all permissions
368
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
369
- * @permissionScope Manage Products
370
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
371
- * @permissionScope Read Stores - all read permissions
372
- * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
373
- * @permissionScope Read Products
374
- * @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
375
- * @applicableIdentity APP
376
- * @applicableIdentity VISITOR
377
- * @fqn wix.inventory.api.v1.InventoryReadApi.GetInventoryVariants
378
- */
379
- export declare function getInventoryVariants(inventoryId: string, options?: GetInventoryVariantsOptions): Promise<GetInventoryVariantsResponse & GetInventoryVariantsResponseNonNullableFields>;
380
- export interface GetInventoryVariantsOptions extends GetInventoryVariantsRequestIdOneOf {
381
- /** Product ID. */
382
- productId?: string;
383
- /** Variant IDs to query for this inventory item (optional). */
384
- variantIds?: string[];
385
- }
386
- /**
387
- * Returns a list of inventory items, given the provided paging, sorting and filtering.
388
- * @public
389
- * @permissionId WIX_STORES.READ_INVENTORY
390
- * @permissionScope Manage Stores - all permissions
391
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
392
- * @permissionScope Manage Products
393
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
394
- * @permissionScope Read Stores - all read permissions
395
- * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
396
- * @permissionScope Read Products
397
- * @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
398
- * @applicableIdentity APP
399
- * @applicableIdentity VISITOR
400
- * @fqn wix.inventory.api.v1.InventoryReadApi.QueryInventory
401
- */
402
- export declare function queryInventory(options?: QueryInventoryOptions): Promise<QueryInventoryResponse & QueryInventoryResponseNonNullableFields>;
403
- export interface QueryInventoryOptions {
404
- /** Information about paging, filters, sorting. */
405
- query?: Query;
406
- }
407
464
  /**
408
465
  * Updates product inventory, including total quantity, whether the product is in stock, and whether the product inventory is tracked.
409
466
  *
@@ -486,4 +543,60 @@ export declare function decrementInventory(decrementData: DecrementData[]): Prom
486
543
  * @fqn wix.inventory.api.v1.InventoryWriteApi.IncrementInventory
487
544
  */
488
545
  export declare function incrementInventory(incrementData: IncrementData[]): Promise<void>;
546
+ /**
547
+ * Gets inventory variant information based on the specified option choices.
548
+ *
549
+ *
550
+ * The `getInventoryVariants()` function returns a Promise that resolves to the specified inventory variant information.
551
+ * @param inventoryId - Inventory item ID.
552
+ * @public
553
+ * @requiredField inventoryId
554
+ * @permissionId WIX_STORES.READ_INVENTORY
555
+ * @permissionScope Manage Stores - all permissions
556
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
557
+ * @permissionScope Manage Products
558
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
559
+ * @permissionScope Read Stores - all read permissions
560
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
561
+ * @permissionScope Read Products
562
+ * @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
563
+ * @applicableIdentity APP
564
+ * @applicableIdentity VISITOR
565
+ * @fqn wix.inventory.api.v1.InventoryReadApi.GetInventoryVariants
566
+ */
567
+ export declare function getInventoryVariants(inventoryId: string, options?: GetInventoryVariantsOptions): Promise<GetInventoryVariantsResponse & GetInventoryVariantsResponseNonNullableFields>;
568
+ export interface GetInventoryVariantsOptions extends GetInventoryVariantsOptionsIdOneOf {
569
+ /** Product ID. */
570
+ productId?: string;
571
+ /** Variant IDs to query for this inventory item (optional). */
572
+ variantIds?: string[];
573
+ }
574
+ /** @oneof */
575
+ interface GetInventoryVariantsOptionsIdOneOf {
576
+ /** Inventory item ID. */
577
+ inventoryId?: string;
578
+ /** Product ID. */
579
+ productId?: string;
580
+ }
581
+ /**
582
+ * Returns a list of inventory items, given the provided paging, sorting and filtering.
583
+ * @public
584
+ * @permissionId WIX_STORES.READ_INVENTORY
585
+ * @permissionScope Manage Stores - all permissions
586
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
587
+ * @permissionScope Manage Products
588
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
589
+ * @permissionScope Read Stores - all read permissions
590
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
591
+ * @permissionScope Read Products
592
+ * @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
593
+ * @applicableIdentity APP
594
+ * @applicableIdentity VISITOR
595
+ * @fqn wix.inventory.api.v1.InventoryReadApi.QueryInventory
596
+ */
597
+ export declare function queryInventory(options?: QueryInventoryOptions): Promise<QueryInventoryResponse & QueryInventoryResponseNonNullableFields>;
598
+ export interface QueryInventoryOptions {
599
+ /** Information about paging, filters, sorting. */
600
+ query?: Query;
601
+ }
489
602
  export {};