@wix/auto_sdk_stores_inventory 1.0.1 → 1.0.3
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/src/stores-v2-inventory-inventory.context.d.ts +4 -4
- package/build/cjs/src/stores-v2-inventory-inventory.context.js +3 -3
- package/build/cjs/src/stores-v2-inventory-inventory.context.js.map +1 -1
- package/build/cjs/src/stores-v2-inventory-inventory.http.d.ts +9 -9
- package/build/cjs/src/stores-v2-inventory-inventory.http.js +118 -118
- package/build/cjs/src/stores-v2-inventory-inventory.http.js.map +1 -1
- package/build/cjs/src/stores-v2-inventory-inventory.meta.d.ts +4 -4
- package/build/cjs/src/stores-v2-inventory-inventory.meta.js +31 -31
- package/build/cjs/src/stores-v2-inventory-inventory.meta.js.map +1 -1
- package/build/cjs/src/stores-v2-inventory-inventory.public.d.ts +19 -19
- package/build/cjs/src/stores-v2-inventory-inventory.public.js +13 -13
- package/build/cjs/src/stores-v2-inventory-inventory.public.js.map +1 -1
- package/build/cjs/src/stores-v2-inventory-inventory.types.d.ts +224 -126
- package/build/cjs/src/stores-v2-inventory-inventory.types.js.map +1 -1
- package/build/cjs/src/stores-v2-inventory-inventory.universal.d.ts +274 -165
- package/build/cjs/src/stores-v2-inventory-inventory.universal.js +91 -91
- package/build/cjs/src/stores-v2-inventory-inventory.universal.js.map +1 -1
- package/build/es/src/stores-v2-inventory-inventory.context.d.ts +4 -4
- package/build/es/src/stores-v2-inventory-inventory.context.js +3 -3
- package/build/es/src/stores-v2-inventory-inventory.context.js.map +1 -1
- package/build/es/src/stores-v2-inventory-inventory.http.d.ts +9 -9
- package/build/es/src/stores-v2-inventory-inventory.http.js +115 -115
- package/build/es/src/stores-v2-inventory-inventory.http.js.map +1 -1
- package/build/es/src/stores-v2-inventory-inventory.meta.d.ts +4 -4
- package/build/es/src/stores-v2-inventory-inventory.meta.js +25 -25
- package/build/es/src/stores-v2-inventory-inventory.meta.js.map +1 -1
- package/build/es/src/stores-v2-inventory-inventory.public.d.ts +19 -19
- package/build/es/src/stores-v2-inventory-inventory.public.js +10 -10
- package/build/es/src/stores-v2-inventory-inventory.public.js.map +1 -1
- package/build/es/src/stores-v2-inventory-inventory.types.d.ts +224 -126
- package/build/es/src/stores-v2-inventory-inventory.types.js.map +1 -1
- package/build/es/src/stores-v2-inventory-inventory.universal.d.ts +274 -165
- package/build/es/src/stores-v2-inventory-inventory.universal.js +85 -85
- package/build/es/src/stores-v2-inventory-inventory.universal.js.map +1 -1
- package/build/internal/cjs/src/stores-v2-inventory-inventory.context.d.ts +4 -4
- package/build/internal/cjs/src/stores-v2-inventory-inventory.context.js +3 -3
- package/build/internal/cjs/src/stores-v2-inventory-inventory.context.js.map +1 -1
- package/build/internal/cjs/src/stores-v2-inventory-inventory.http.d.ts +9 -9
- package/build/internal/cjs/src/stores-v2-inventory-inventory.http.js +118 -118
- package/build/internal/cjs/src/stores-v2-inventory-inventory.http.js.map +1 -1
- package/build/internal/cjs/src/stores-v2-inventory-inventory.meta.d.ts +4 -4
- package/build/internal/cjs/src/stores-v2-inventory-inventory.meta.js +31 -31
- package/build/internal/cjs/src/stores-v2-inventory-inventory.meta.js.map +1 -1
- package/build/internal/cjs/src/stores-v2-inventory-inventory.public.d.ts +19 -19
- package/build/internal/cjs/src/stores-v2-inventory-inventory.public.js +13 -13
- package/build/internal/cjs/src/stores-v2-inventory-inventory.public.js.map +1 -1
- package/build/internal/cjs/src/stores-v2-inventory-inventory.types.d.ts +224 -126
- package/build/internal/cjs/src/stores-v2-inventory-inventory.types.js.map +1 -1
- package/build/internal/cjs/src/stores-v2-inventory-inventory.universal.d.ts +307 -189
- package/build/internal/cjs/src/stores-v2-inventory-inventory.universal.js +91 -91
- package/build/internal/cjs/src/stores-v2-inventory-inventory.universal.js.map +1 -1
- package/build/internal/es/src/stores-v2-inventory-inventory.context.d.ts +4 -4
- package/build/internal/es/src/stores-v2-inventory-inventory.context.js +3 -3
- package/build/internal/es/src/stores-v2-inventory-inventory.context.js.map +1 -1
- package/build/internal/es/src/stores-v2-inventory-inventory.http.d.ts +9 -9
- package/build/internal/es/src/stores-v2-inventory-inventory.http.js +115 -115
- package/build/internal/es/src/stores-v2-inventory-inventory.http.js.map +1 -1
- package/build/internal/es/src/stores-v2-inventory-inventory.meta.d.ts +4 -4
- package/build/internal/es/src/stores-v2-inventory-inventory.meta.js +25 -25
- package/build/internal/es/src/stores-v2-inventory-inventory.meta.js.map +1 -1
- package/build/internal/es/src/stores-v2-inventory-inventory.public.d.ts +19 -19
- package/build/internal/es/src/stores-v2-inventory-inventory.public.js +10 -10
- package/build/internal/es/src/stores-v2-inventory-inventory.public.js.map +1 -1
- package/build/internal/es/src/stores-v2-inventory-inventory.types.d.ts +224 -126
- package/build/internal/es/src/stores-v2-inventory-inventory.types.js.map +1 -1
- package/build/internal/es/src/stores-v2-inventory-inventory.universal.d.ts +307 -189
- package/build/internal/es/src/stores-v2-inventory-inventory.universal.js +85 -85
- package/build/internal/es/src/stores-v2-inventory-inventory.universal.js.map +1 -1
- 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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
315
|
+
/**
|
|
316
|
+
* App instance ID.
|
|
317
|
+
* @format GUID
|
|
318
|
+
*/
|
|
159
319
|
instanceId?: string | null;
|
|
160
|
-
/**
|
|
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
|
-
/**
|
|
331
|
+
/**
|
|
332
|
+
* ID of a site visitor that has not logged in to the site.
|
|
333
|
+
* @format GUID
|
|
334
|
+
*/
|
|
169
335
|
anonymousVisitorId?: string;
|
|
170
|
-
/**
|
|
336
|
+
/**
|
|
337
|
+
* ID of a site visitor that has logged in to the site.
|
|
338
|
+
* @format GUID
|
|
339
|
+
*/
|
|
171
340
|
memberId?: string;
|
|
172
|
-
/**
|
|
341
|
+
/**
|
|
342
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
343
|
+
* @format GUID
|
|
344
|
+
*/
|
|
173
345
|
wixUserId?: string;
|
|
174
|
-
/**
|
|
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
|
-
/**
|
|
356
|
+
/**
|
|
357
|
+
* ID of a site visitor that has not logged in to the site.
|
|
358
|
+
* @format GUID
|
|
359
|
+
*/
|
|
182
360
|
anonymousVisitorId?: string;
|
|
183
|
-
/**
|
|
361
|
+
/**
|
|
362
|
+
* ID of a site visitor that has logged in to the site.
|
|
363
|
+
* @format GUID
|
|
364
|
+
*/
|
|
184
365
|
memberId?: string;
|
|
185
|
-
/**
|
|
366
|
+
/**
|
|
367
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
368
|
+
* @format GUID
|
|
369
|
+
*/
|
|
186
370
|
wixUserId?: string;
|
|
187
|
-
/**
|
|
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
|
-
/**
|
|
409
|
+
/**
|
|
410
|
+
* App instance ID.
|
|
411
|
+
* @format GUID
|
|
412
|
+
*/
|
|
314
413
|
instanceId?: string | null;
|
|
315
|
-
/**
|
|
414
|
+
/**
|
|
415
|
+
* Event type.
|
|
416
|
+
* @maxLength 150
|
|
417
|
+
*/
|
|
316
418
|
eventType?: string;
|
|
317
419
|
/** The identification type and identity data. */
|
|
318
420
|
identity?: IdentificationData;
|
|
@@ -359,55 +461,6 @@ export interface InventoryVariantsChangedEnvelope {
|
|
|
359
461
|
* @slug inventory_variants_changed
|
|
360
462
|
*/
|
|
361
463
|
export declare function onInventoryVariantsChanged(handler: (event: InventoryVariantsChangedEnvelope) => void | Promise<void>): void;
|
|
362
|
-
/**
|
|
363
|
-
* Gets inventory variant information based on the specified option choices.
|
|
364
|
-
*
|
|
365
|
-
*
|
|
366
|
-
* The `getInventoryVariants()` function returns a Promise that resolves to the specified inventory variant information.
|
|
367
|
-
* @param inventoryId - Inventory item ID.
|
|
368
|
-
* @public
|
|
369
|
-
* @requiredField inventoryId
|
|
370
|
-
* @permissionId WIX_STORES.READ_INVENTORY
|
|
371
|
-
* @permissionScope Manage Stores - all permissions
|
|
372
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
373
|
-
* @permissionScope Manage Products
|
|
374
|
-
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
375
|
-
* @permissionScope Read Stores - all read permissions
|
|
376
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
377
|
-
* @permissionScope Read Products
|
|
378
|
-
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
379
|
-
* @applicableIdentity APP
|
|
380
|
-
* @applicableIdentity VISITOR
|
|
381
|
-
* @fqn wix.inventory.api.v1.InventoryReadApi.GetInventoryVariants
|
|
382
|
-
*/
|
|
383
|
-
export declare function getInventoryVariants(inventoryId: string, options?: GetInventoryVariantsOptions): Promise<GetInventoryVariantsResponse & GetInventoryVariantsResponseNonNullableFields>;
|
|
384
|
-
export interface GetInventoryVariantsOptions extends GetInventoryVariantsRequestIdOneOf {
|
|
385
|
-
/** Product ID. */
|
|
386
|
-
productId?: string;
|
|
387
|
-
/** Variant IDs to query for this inventory item (optional). */
|
|
388
|
-
variantIds?: string[];
|
|
389
|
-
}
|
|
390
|
-
/**
|
|
391
|
-
* Returns a list of inventory items, given the provided paging, sorting and filtering.
|
|
392
|
-
* @public
|
|
393
|
-
* @permissionId WIX_STORES.READ_INVENTORY
|
|
394
|
-
* @permissionScope Manage Stores - all permissions
|
|
395
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
396
|
-
* @permissionScope Manage Products
|
|
397
|
-
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
398
|
-
* @permissionScope Read Stores - all read permissions
|
|
399
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
400
|
-
* @permissionScope Read Products
|
|
401
|
-
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
402
|
-
* @applicableIdentity APP
|
|
403
|
-
* @applicableIdentity VISITOR
|
|
404
|
-
* @fqn wix.inventory.api.v1.InventoryReadApi.QueryInventory
|
|
405
|
-
*/
|
|
406
|
-
export declare function queryInventory(options?: QueryInventoryOptions): Promise<QueryInventoryResponse & QueryInventoryResponseNonNullableFields>;
|
|
407
|
-
export interface QueryInventoryOptions {
|
|
408
|
-
/** Information about paging, filters, sorting. */
|
|
409
|
-
query?: Query;
|
|
410
|
-
}
|
|
411
464
|
/**
|
|
412
465
|
* Updates product inventory, including total quantity, whether the product is in stock, and whether the product inventory is tracked.
|
|
413
466
|
*
|
|
@@ -490,4 +543,60 @@ export declare function decrementInventory(decrementData: DecrementData[]): Prom
|
|
|
490
543
|
* @fqn wix.inventory.api.v1.InventoryWriteApi.IncrementInventory
|
|
491
544
|
*/
|
|
492
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
|
+
export 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
|
+
}
|
|
493
602
|
export {};
|