@wix/auto_sdk_stores_inventory 1.0.42 → 1.0.44
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 +21 -21
- package/build/cjs/index.js +171 -171
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +201 -197
- package/build/cjs/index.typings.js +154 -154
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +180 -178
- package/build/cjs/meta.js +140 -140
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +21 -21
- package/build/es/index.mjs +171 -171
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +201 -197
- package/build/es/index.typings.mjs +154 -154
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +180 -178
- package/build/es/meta.mjs +140 -140
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +21 -21
- package/build/internal/cjs/index.js +171 -171
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +234 -230
- package/build/internal/cjs/index.typings.js +154 -154
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +180 -178
- package/build/internal/cjs/meta.js +140 -140
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +21 -21
- package/build/internal/es/index.mjs +171 -171
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +234 -230
- package/build/internal/es/index.typings.mjs +154 -154
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +180 -178
- package/build/internal/es/meta.mjs +140 -140
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -54,165 +54,6 @@ interface PreorderInfo {
|
|
|
54
54
|
*/
|
|
55
55
|
limit?: number | null;
|
|
56
56
|
}
|
|
57
|
-
interface UpdateInventoryVariantsRequest {
|
|
58
|
-
/** Inventory item. */
|
|
59
|
-
inventoryItem: InventoryItemV2;
|
|
60
|
-
}
|
|
61
|
-
declare enum ReasonType {
|
|
62
|
-
/** Unknown reason. */
|
|
63
|
-
UNKNOWN = "UNKNOWN",
|
|
64
|
-
/** Order related. */
|
|
65
|
-
ORDER = "ORDER",
|
|
66
|
-
/** Manual adjustment. */
|
|
67
|
-
MANUAL = "MANUAL",
|
|
68
|
-
/** Reverting an inventory change. */
|
|
69
|
-
REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
|
|
70
|
-
}
|
|
71
|
-
/** @enumType */
|
|
72
|
-
type ReasonTypeWithLiterals = ReasonType | 'UNKNOWN' | 'ORDER' | 'MANUAL' | 'REVERT_INVENTORY_CHANGE';
|
|
73
|
-
interface UpdateInventoryVariantsResponse {
|
|
74
|
-
}
|
|
75
|
-
interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
|
|
76
|
-
/** Change availability. */
|
|
77
|
-
setInStock?: boolean | null;
|
|
78
|
-
/** Set new quantity. */
|
|
79
|
-
setQuantity?: number | null;
|
|
80
|
-
/**
|
|
81
|
-
* Number to increment inventory by.
|
|
82
|
-
* @min 1
|
|
83
|
-
*/
|
|
84
|
-
incrementBy?: number | null;
|
|
85
|
-
/**
|
|
86
|
-
* Number to decrement inventory by.
|
|
87
|
-
* @min 1
|
|
88
|
-
*/
|
|
89
|
-
decrementBy?: number | null;
|
|
90
|
-
/** Variants filter. Learn more about [API query language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
|
|
91
|
-
filter?: Record<string, any> | null;
|
|
92
|
-
}
|
|
93
|
-
/** @oneof */
|
|
94
|
-
interface BulkUpdateInventoryVariantsRequestActionOneOf {
|
|
95
|
-
/** Change availability. */
|
|
96
|
-
setInStock?: boolean | null;
|
|
97
|
-
/** Set new quantity. */
|
|
98
|
-
setQuantity?: number | null;
|
|
99
|
-
/**
|
|
100
|
-
* Number to increment inventory by.
|
|
101
|
-
* @min 1
|
|
102
|
-
*/
|
|
103
|
-
incrementBy?: number | null;
|
|
104
|
-
/**
|
|
105
|
-
* Number to decrement inventory by.
|
|
106
|
-
* @min 1
|
|
107
|
-
*/
|
|
108
|
-
decrementBy?: number | null;
|
|
109
|
-
}
|
|
110
|
-
interface BulkUpdateInventoryVariantsResponse {
|
|
111
|
-
}
|
|
112
|
-
interface BulkUpdateInventoryItemsRequest {
|
|
113
|
-
/** Variants filter */
|
|
114
|
-
variantsFilter?: Record<string, any> | null;
|
|
115
|
-
/** Whether inventory is being tracked. */
|
|
116
|
-
trackInventory?: boolean | null;
|
|
117
|
-
}
|
|
118
|
-
interface BulkUpdateInventoryItemsResponse {
|
|
119
|
-
}
|
|
120
|
-
interface DecrementInventoryRequest {
|
|
121
|
-
/**
|
|
122
|
-
* Item or product to decrement.
|
|
123
|
-
* @minSize 1
|
|
124
|
-
* @maxSize 300
|
|
125
|
-
*/
|
|
126
|
-
decrementData?: DecrementData[];
|
|
127
|
-
}
|
|
128
|
-
interface DecrementData extends DecrementDataIdOneOf {
|
|
129
|
-
/**
|
|
130
|
-
* Inventory item ID.
|
|
131
|
-
* @maxLength 36
|
|
132
|
-
*/
|
|
133
|
-
inventoryId?: string;
|
|
134
|
-
/**
|
|
135
|
-
* Product ID.
|
|
136
|
-
* @maxLength 36
|
|
137
|
-
*/
|
|
138
|
-
productId?: string;
|
|
139
|
-
/**
|
|
140
|
-
* Variant ID.
|
|
141
|
-
* @format GUID
|
|
142
|
-
*/
|
|
143
|
-
variantId?: string;
|
|
144
|
-
/**
|
|
145
|
-
* Number to decrement inventory by.
|
|
146
|
-
* @min 1
|
|
147
|
-
*/
|
|
148
|
-
decrementBy?: number;
|
|
149
|
-
/**
|
|
150
|
-
* Whether the request to decrement the item's inventory was made as part of a purchase that includes preorder items.
|
|
151
|
-
* If true and the item is available for preorder, we allow negative inventory.
|
|
152
|
-
* If false and the item is not available for preorder, we allow regular buy flow (no negative inventory).
|
|
153
|
-
*/
|
|
154
|
-
preorderRequest?: boolean;
|
|
155
|
-
}
|
|
156
|
-
/** @oneof */
|
|
157
|
-
interface DecrementDataIdOneOf {
|
|
158
|
-
/**
|
|
159
|
-
* Inventory item ID.
|
|
160
|
-
* @maxLength 36
|
|
161
|
-
*/
|
|
162
|
-
inventoryId?: string;
|
|
163
|
-
/**
|
|
164
|
-
* Product ID.
|
|
165
|
-
* @maxLength 36
|
|
166
|
-
*/
|
|
167
|
-
productId?: string;
|
|
168
|
-
}
|
|
169
|
-
interface DecrementInventoryResponse {
|
|
170
|
-
}
|
|
171
|
-
interface IncrementInventoryRequest {
|
|
172
|
-
/**
|
|
173
|
-
* Item or product to increment.
|
|
174
|
-
* @minSize 1
|
|
175
|
-
* @maxSize 300
|
|
176
|
-
*/
|
|
177
|
-
incrementData?: IncrementData[];
|
|
178
|
-
}
|
|
179
|
-
interface IncrementData extends IncrementDataIdOneOf {
|
|
180
|
-
/**
|
|
181
|
-
* Inventory item ID.
|
|
182
|
-
* @maxLength 36
|
|
183
|
-
*/
|
|
184
|
-
inventoryId?: string;
|
|
185
|
-
/**
|
|
186
|
-
* Product ID.
|
|
187
|
-
* @maxLength 36
|
|
188
|
-
*/
|
|
189
|
-
productId?: string;
|
|
190
|
-
/**
|
|
191
|
-
* Variant ID.
|
|
192
|
-
* @format GUID
|
|
193
|
-
*/
|
|
194
|
-
variantId?: string;
|
|
195
|
-
/**
|
|
196
|
-
* Number to increment inventory by.
|
|
197
|
-
* @min 1
|
|
198
|
-
*/
|
|
199
|
-
incrementBy?: number;
|
|
200
|
-
}
|
|
201
|
-
/** @oneof */
|
|
202
|
-
interface IncrementDataIdOneOf {
|
|
203
|
-
/**
|
|
204
|
-
* Inventory item ID.
|
|
205
|
-
* @maxLength 36
|
|
206
|
-
*/
|
|
207
|
-
inventoryId?: string;
|
|
208
|
-
/**
|
|
209
|
-
* Product ID.
|
|
210
|
-
* @maxLength 36
|
|
211
|
-
*/
|
|
212
|
-
productId?: string;
|
|
213
|
-
}
|
|
214
|
-
interface IncrementInventoryResponse {
|
|
215
|
-
}
|
|
216
57
|
interface InventoryItemChanged {
|
|
217
58
|
/** Inventory item ID. */
|
|
218
59
|
inventoryItemId?: string;
|
|
@@ -253,6 +94,18 @@ interface ChangedInventoryVariantData {
|
|
|
253
94
|
/** Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level. */
|
|
254
95
|
availableForPreorder?: boolean;
|
|
255
96
|
}
|
|
97
|
+
declare enum ReasonType {
|
|
98
|
+
/** Unknown reason. */
|
|
99
|
+
UNKNOWN = "UNKNOWN",
|
|
100
|
+
/** Order related. */
|
|
101
|
+
ORDER = "ORDER",
|
|
102
|
+
/** Manual adjustment. */
|
|
103
|
+
MANUAL = "MANUAL",
|
|
104
|
+
/** Reverting an inventory change. */
|
|
105
|
+
REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
|
|
106
|
+
}
|
|
107
|
+
/** @enumType */
|
|
108
|
+
type ReasonTypeWithLiterals = ReasonType | 'UNKNOWN' | 'ORDER' | 'MANUAL' | 'REVERT_INVENTORY_CHANGE';
|
|
256
109
|
interface GetInventoryVariantsRequest extends GetInventoryVariantsRequestIdOneOf {
|
|
257
110
|
/** Inventory item ID. */
|
|
258
111
|
inventoryId: string;
|
|
@@ -330,6 +183,8 @@ interface MessageEnvelope {
|
|
|
330
183
|
identity?: IdentificationData;
|
|
331
184
|
/** Stringify payload. */
|
|
332
185
|
data?: string;
|
|
186
|
+
/** Details related to the account */
|
|
187
|
+
accountInfo?: AccountInfo;
|
|
333
188
|
}
|
|
334
189
|
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
335
190
|
/**
|
|
@@ -404,6 +259,153 @@ interface AccountInfo {
|
|
|
404
259
|
*/
|
|
405
260
|
siteId?: string | null;
|
|
406
261
|
}
|
|
262
|
+
interface UpdateInventoryVariantsRequest {
|
|
263
|
+
/** Inventory item. */
|
|
264
|
+
inventoryItem: InventoryItemV2;
|
|
265
|
+
}
|
|
266
|
+
interface UpdateInventoryVariantsResponse {
|
|
267
|
+
}
|
|
268
|
+
interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
|
|
269
|
+
/** Change availability. */
|
|
270
|
+
setInStock?: boolean | null;
|
|
271
|
+
/** Set new quantity. */
|
|
272
|
+
setQuantity?: number | null;
|
|
273
|
+
/**
|
|
274
|
+
* Number to increment inventory by.
|
|
275
|
+
* @min 1
|
|
276
|
+
*/
|
|
277
|
+
incrementBy?: number | null;
|
|
278
|
+
/**
|
|
279
|
+
* Number to decrement inventory by.
|
|
280
|
+
* @min 1
|
|
281
|
+
*/
|
|
282
|
+
decrementBy?: number | null;
|
|
283
|
+
/** Variants filter. Learn more about [API query language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
|
|
284
|
+
filter?: Record<string, any> | null;
|
|
285
|
+
}
|
|
286
|
+
/** @oneof */
|
|
287
|
+
interface BulkUpdateInventoryVariantsRequestActionOneOf {
|
|
288
|
+
/** Change availability. */
|
|
289
|
+
setInStock?: boolean | null;
|
|
290
|
+
/** Set new quantity. */
|
|
291
|
+
setQuantity?: number | null;
|
|
292
|
+
/**
|
|
293
|
+
* Number to increment inventory by.
|
|
294
|
+
* @min 1
|
|
295
|
+
*/
|
|
296
|
+
incrementBy?: number | null;
|
|
297
|
+
/**
|
|
298
|
+
* Number to decrement inventory by.
|
|
299
|
+
* @min 1
|
|
300
|
+
*/
|
|
301
|
+
decrementBy?: number | null;
|
|
302
|
+
}
|
|
303
|
+
interface BulkUpdateInventoryVariantsResponse {
|
|
304
|
+
}
|
|
305
|
+
interface BulkUpdateInventoryItemsRequest {
|
|
306
|
+
/** Variants filter */
|
|
307
|
+
variantsFilter?: Record<string, any> | null;
|
|
308
|
+
/** Whether inventory is being tracked. */
|
|
309
|
+
trackInventory?: boolean | null;
|
|
310
|
+
}
|
|
311
|
+
interface BulkUpdateInventoryItemsResponse {
|
|
312
|
+
}
|
|
313
|
+
interface DecrementInventoryRequest {
|
|
314
|
+
/**
|
|
315
|
+
* Item or product to decrement.
|
|
316
|
+
* @minSize 1
|
|
317
|
+
* @maxSize 300
|
|
318
|
+
*/
|
|
319
|
+
decrementData?: DecrementData[];
|
|
320
|
+
}
|
|
321
|
+
interface DecrementData extends DecrementDataIdOneOf {
|
|
322
|
+
/**
|
|
323
|
+
* Inventory item ID.
|
|
324
|
+
* @maxLength 36
|
|
325
|
+
*/
|
|
326
|
+
inventoryId?: string;
|
|
327
|
+
/**
|
|
328
|
+
* Product ID.
|
|
329
|
+
* @maxLength 36
|
|
330
|
+
*/
|
|
331
|
+
productId?: string;
|
|
332
|
+
/**
|
|
333
|
+
* Variant ID.
|
|
334
|
+
* @format GUID
|
|
335
|
+
*/
|
|
336
|
+
variantId?: string;
|
|
337
|
+
/**
|
|
338
|
+
* Number to decrement inventory by.
|
|
339
|
+
* @min 1
|
|
340
|
+
*/
|
|
341
|
+
decrementBy?: number;
|
|
342
|
+
/**
|
|
343
|
+
* Whether the request to decrement the item's inventory was made as part of a purchase that includes preorder items.
|
|
344
|
+
* If true and the item is available for preorder, we allow negative inventory.
|
|
345
|
+
* If false and the item is not available for preorder, we allow regular buy flow (no negative inventory).
|
|
346
|
+
*/
|
|
347
|
+
preorderRequest?: boolean;
|
|
348
|
+
}
|
|
349
|
+
/** @oneof */
|
|
350
|
+
interface DecrementDataIdOneOf {
|
|
351
|
+
/**
|
|
352
|
+
* Inventory item ID.
|
|
353
|
+
* @maxLength 36
|
|
354
|
+
*/
|
|
355
|
+
inventoryId?: string;
|
|
356
|
+
/**
|
|
357
|
+
* Product ID.
|
|
358
|
+
* @maxLength 36
|
|
359
|
+
*/
|
|
360
|
+
productId?: string;
|
|
361
|
+
}
|
|
362
|
+
interface DecrementInventoryResponse {
|
|
363
|
+
}
|
|
364
|
+
interface IncrementInventoryRequest {
|
|
365
|
+
/**
|
|
366
|
+
* Item or product to increment.
|
|
367
|
+
* @minSize 1
|
|
368
|
+
* @maxSize 300
|
|
369
|
+
*/
|
|
370
|
+
incrementData?: IncrementData[];
|
|
371
|
+
}
|
|
372
|
+
interface IncrementData extends IncrementDataIdOneOf {
|
|
373
|
+
/**
|
|
374
|
+
* Inventory item ID.
|
|
375
|
+
* @maxLength 36
|
|
376
|
+
*/
|
|
377
|
+
inventoryId?: string;
|
|
378
|
+
/**
|
|
379
|
+
* Product ID.
|
|
380
|
+
* @maxLength 36
|
|
381
|
+
*/
|
|
382
|
+
productId?: string;
|
|
383
|
+
/**
|
|
384
|
+
* Variant ID.
|
|
385
|
+
* @format GUID
|
|
386
|
+
*/
|
|
387
|
+
variantId?: string;
|
|
388
|
+
/**
|
|
389
|
+
* Number to increment inventory by.
|
|
390
|
+
* @min 1
|
|
391
|
+
*/
|
|
392
|
+
incrementBy?: number;
|
|
393
|
+
}
|
|
394
|
+
/** @oneof */
|
|
395
|
+
interface IncrementDataIdOneOf {
|
|
396
|
+
/**
|
|
397
|
+
* Inventory item ID.
|
|
398
|
+
* @maxLength 36
|
|
399
|
+
*/
|
|
400
|
+
inventoryId?: string;
|
|
401
|
+
/**
|
|
402
|
+
* Product ID.
|
|
403
|
+
* @maxLength 36
|
|
404
|
+
*/
|
|
405
|
+
productId?: string;
|
|
406
|
+
}
|
|
407
|
+
interface IncrementInventoryResponse {
|
|
408
|
+
}
|
|
407
409
|
interface BaseEventMetadata {
|
|
408
410
|
/**
|
|
409
411
|
* App instance ID.
|
|
@@ -417,6 +419,8 @@ interface BaseEventMetadata {
|
|
|
417
419
|
eventType?: string;
|
|
418
420
|
/** The identification type and identity data. */
|
|
419
421
|
identity?: IdentificationData;
|
|
422
|
+
/** Details related to the account */
|
|
423
|
+
accountInfo?: AccountInfo;
|
|
420
424
|
}
|
|
421
425
|
interface InventoryItemChangedEnvelope {
|
|
422
426
|
data: InventoryItemChanged;
|
|
@@ -464,6 +468,44 @@ interface InventoryVariantsChangedEnvelope {
|
|
|
464
468
|
* @slug inventory_variants_changed
|
|
465
469
|
*/
|
|
466
470
|
declare function onInventoryVariantsChanged(handler: (event: InventoryVariantsChangedEnvelope) => void | Promise<void>): void;
|
|
471
|
+
/**
|
|
472
|
+
* Gets inventory variant information based on the specified option choices.
|
|
473
|
+
*
|
|
474
|
+
*
|
|
475
|
+
* The `getInventoryVariants()` function returns a Promise that resolves to the specified inventory variant information.
|
|
476
|
+
* @param inventoryId - Inventory item ID.
|
|
477
|
+
* @public
|
|
478
|
+
* @requiredField inventoryId
|
|
479
|
+
* @permissionId WIX_STORES.READ_INVENTORY
|
|
480
|
+
* @applicableIdentity APP
|
|
481
|
+
* @fqn wix.inventory.api.v1.InventoryReadApi.GetInventoryVariants
|
|
482
|
+
*/
|
|
483
|
+
declare function getInventoryVariants(inventoryId: string, options?: GetInventoryVariantsOptions): Promise<NonNullablePaths<GetInventoryVariantsResponse, `inventoryItem.variants` | `inventoryItem.variants.${number}.variantId` | `inventoryItem.variants.${number}.availableForPreorder` | `inventoryItem.numericId` | `inventoryItem.preorderInfo.enabled`, 5>>;
|
|
484
|
+
interface GetInventoryVariantsOptions extends GetInventoryVariantsOptionsIdOneOf {
|
|
485
|
+
/** Product ID. */
|
|
486
|
+
productId?: string;
|
|
487
|
+
/** Variant IDs to query for this inventory item (optional). */
|
|
488
|
+
variantIds?: string[];
|
|
489
|
+
}
|
|
490
|
+
/** @oneof */
|
|
491
|
+
interface GetInventoryVariantsOptionsIdOneOf {
|
|
492
|
+
/** Inventory item ID. */
|
|
493
|
+
inventoryId?: string;
|
|
494
|
+
/** Product ID. */
|
|
495
|
+
productId?: string;
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Returns a list of inventory items, given the provided paging, sorting and filtering.
|
|
499
|
+
* @public
|
|
500
|
+
* @permissionId WIX_STORES.READ_INVENTORY
|
|
501
|
+
* @applicableIdentity APP
|
|
502
|
+
* @fqn wix.inventory.api.v1.InventoryReadApi.QueryInventory
|
|
503
|
+
*/
|
|
504
|
+
declare function queryInventory(options?: QueryInventoryOptions): Promise<NonNullablePaths<QueryInventoryResponse, `inventoryItems` | `inventoryItems.${number}.numericId` | `inventoryItems.${number}.preorderInfo.enabled` | `metadata.items` | `metadata.offset` | `totalResults`, 5>>;
|
|
505
|
+
interface QueryInventoryOptions {
|
|
506
|
+
/** Information about paging, filters, sorting. */
|
|
507
|
+
query?: Query;
|
|
508
|
+
}
|
|
467
509
|
/**
|
|
468
510
|
* Updates product inventory, including total quantity, whether the product is in stock, and whether the product inventory is tracked.
|
|
469
511
|
*
|
|
@@ -526,43 +568,5 @@ declare function decrementInventory(decrementData: DecrementData[]): Promise<voi
|
|
|
526
568
|
* @fqn wix.inventory.api.v1.InventoryWriteApi.IncrementInventory
|
|
527
569
|
*/
|
|
528
570
|
declare function incrementInventory(incrementData: IncrementData[]): Promise<void>;
|
|
529
|
-
/**
|
|
530
|
-
* Gets inventory variant information based on the specified option choices.
|
|
531
|
-
*
|
|
532
|
-
*
|
|
533
|
-
* The `getInventoryVariants()` function returns a Promise that resolves to the specified inventory variant information.
|
|
534
|
-
* @param inventoryId - Inventory item ID.
|
|
535
|
-
* @public
|
|
536
|
-
* @requiredField inventoryId
|
|
537
|
-
* @permissionId WIX_STORES.READ_INVENTORY
|
|
538
|
-
* @applicableIdentity APP
|
|
539
|
-
* @fqn wix.inventory.api.v1.InventoryReadApi.GetInventoryVariants
|
|
540
|
-
*/
|
|
541
|
-
declare function getInventoryVariants(inventoryId: string, options?: GetInventoryVariantsOptions): Promise<NonNullablePaths<GetInventoryVariantsResponse, `inventoryItem.variants` | `inventoryItem.variants.${number}.variantId` | `inventoryItem.variants.${number}.availableForPreorder` | `inventoryItem.numericId` | `inventoryItem.preorderInfo.enabled`, 5>>;
|
|
542
|
-
interface GetInventoryVariantsOptions extends GetInventoryVariantsOptionsIdOneOf {
|
|
543
|
-
/** Product ID. */
|
|
544
|
-
productId?: string;
|
|
545
|
-
/** Variant IDs to query for this inventory item (optional). */
|
|
546
|
-
variantIds?: string[];
|
|
547
|
-
}
|
|
548
|
-
/** @oneof */
|
|
549
|
-
interface GetInventoryVariantsOptionsIdOneOf {
|
|
550
|
-
/** Inventory item ID. */
|
|
551
|
-
inventoryId?: string;
|
|
552
|
-
/** Product ID. */
|
|
553
|
-
productId?: string;
|
|
554
|
-
}
|
|
555
|
-
/**
|
|
556
|
-
* Returns a list of inventory items, given the provided paging, sorting and filtering.
|
|
557
|
-
* @public
|
|
558
|
-
* @permissionId WIX_STORES.READ_INVENTORY
|
|
559
|
-
* @applicableIdentity APP
|
|
560
|
-
* @fqn wix.inventory.api.v1.InventoryReadApi.QueryInventory
|
|
561
|
-
*/
|
|
562
|
-
declare function queryInventory(options?: QueryInventoryOptions): Promise<NonNullablePaths<QueryInventoryResponse, `inventoryItems` | `inventoryItems.${number}.numericId` | `inventoryItems.${number}.preorderInfo.enabled` | `metadata.items` | `metadata.offset` | `totalResults`, 5>>;
|
|
563
|
-
interface QueryInventoryOptions {
|
|
564
|
-
/** Information about paging, filters, sorting. */
|
|
565
|
-
query?: Query;
|
|
566
|
-
}
|
|
567
571
|
|
|
568
572
|
export { type AccountInfo, type BaseEventMetadata, type BulkUpdateInventoryItemsRequest, type BulkUpdateInventoryItemsResponse, type BulkUpdateInventoryVariantsRequest, type BulkUpdateInventoryVariantsRequestActionOneOf, type BulkUpdateInventoryVariantsResponse, type ChangedInventoryVariant, type ChangedInventoryVariantData, type DecrementData, type DecrementDataIdOneOf, type DecrementInventoryRequest, type DecrementInventoryResponse, type GetInventoryItemsRequest, type GetInventoryItemsResponse, type GetInventoryVariantsOptions, type GetInventoryVariantsOptionsIdOneOf, type GetInventoryVariantsRequest, type GetInventoryVariantsRequestIdOneOf, type GetInventoryVariantsResponse, type IdentificationData, type IdentificationDataIdOneOf, type IncrementData, type IncrementDataIdOneOf, type IncrementInventoryRequest, type IncrementInventoryResponse, type InventoryItemChanged, type InventoryItemChangedEnvelope, type InventoryItemV2, type InventoryVariantV2, type InventoryVariantsChanged, type InventoryVariantsChangedEnvelope, type MessageEnvelope, type Paging, type PagingMetadata, type PreorderInfo, type Query, type QueryInventoryOptions, type QueryInventoryRequest, type QueryInventoryResponse, ReasonType, type ReasonTypeWithLiterals, type UpdateInventoryVariantsInventoryItem, type UpdateInventoryVariantsRequest, type UpdateInventoryVariantsResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, decrementInventory, getInventoryVariants, incrementInventory, onInventoryItemChanged, onInventoryVariantsChanged, queryInventory, updateInventoryVariants };
|