@wix/auto_sdk_stores_inventory 1.0.75 → 1.0.76
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 +197 -197
- package/build/cjs/index.typings.js +154 -154
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +178 -178
- package/build/cjs/meta.js +140 -140
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +63 -63
- package/build/cjs/schemas.js +100 -100
- package/build/cjs/schemas.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 +197 -197
- package/build/es/index.typings.mjs +154 -154
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +178 -178
- package/build/es/meta.mjs +140 -140
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +63 -63
- package/build/es/schemas.mjs +100 -100
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +21 -21
- package/build/internal/cjs/index.typings.d.ts +242 -242
- package/build/internal/cjs/meta.d.ts +190 -190
- package/build/internal/cjs/schemas.d.ts +63 -63
- package/build/internal/es/index.d.mts +21 -21
- package/build/internal/es/index.typings.d.mts +242 -242
- package/build/internal/es/meta.d.mts +190 -190
- package/build/internal/es/schemas.d.mts +63 -63
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GetInventoryVariantsRequest as GetInventoryVariantsRequest$1, GetInventoryVariantsResponse as GetInventoryVariantsResponse$1, QueryInventoryRequest as QueryInventoryRequest$1, QueryInventoryResponse as QueryInventoryResponse$1, UpdateInventoryVariantsRequest as UpdateInventoryVariantsRequest$1, UpdateInventoryVariantsResponse as UpdateInventoryVariantsResponse$1, DecrementInventoryRequest as DecrementInventoryRequest$1, DecrementInventoryResponse as DecrementInventoryResponse$1, IncrementInventoryRequest as IncrementInventoryRequest$1, IncrementInventoryResponse as IncrementInventoryResponse$1 } from './index.typings.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface InventoryItemV2 {
|
|
@@ -63,191 +63,6 @@ interface PreorderInfo {
|
|
|
63
63
|
*/
|
|
64
64
|
limit?: number | null;
|
|
65
65
|
}
|
|
66
|
-
interface UpdateInventoryVariantsRequest {
|
|
67
|
-
/** Inventory item. */
|
|
68
|
-
inventoryItem: InventoryItemV2;
|
|
69
|
-
/** @internal */
|
|
70
|
-
reason?: ReasonTypeWithLiterals;
|
|
71
|
-
}
|
|
72
|
-
declare enum ReasonType {
|
|
73
|
-
/** Unknown reason. */
|
|
74
|
-
UNKNOWN = "UNKNOWN",
|
|
75
|
-
/** Order related. */
|
|
76
|
-
ORDER = "ORDER",
|
|
77
|
-
/** Manual adjustment. */
|
|
78
|
-
MANUAL = "MANUAL",
|
|
79
|
-
/** Reverting an inventory change. */
|
|
80
|
-
REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
|
|
81
|
-
}
|
|
82
|
-
/** @enumType */
|
|
83
|
-
type ReasonTypeWithLiterals = ReasonType | 'UNKNOWN' | 'ORDER' | 'MANUAL' | 'REVERT_INVENTORY_CHANGE';
|
|
84
|
-
interface UpdateInventoryVariantsResponse {
|
|
85
|
-
}
|
|
86
|
-
interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
|
|
87
|
-
/** Change availability. */
|
|
88
|
-
setInStock?: boolean | null;
|
|
89
|
-
/** Set new quantity. */
|
|
90
|
-
setQuantity?: number | null;
|
|
91
|
-
/**
|
|
92
|
-
* Number to increment inventory by.
|
|
93
|
-
* @min 1
|
|
94
|
-
*/
|
|
95
|
-
incrementBy?: number | null;
|
|
96
|
-
/**
|
|
97
|
-
* Number to decrement inventory by.
|
|
98
|
-
* @min 1
|
|
99
|
-
*/
|
|
100
|
-
decrementBy?: number | null;
|
|
101
|
-
/** Variants filter. Learn more about [API query language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
|
|
102
|
-
filter?: Record<string, any> | null;
|
|
103
|
-
/** @internal */
|
|
104
|
-
reason?: ReasonTypeWithLiterals;
|
|
105
|
-
/** @internal */
|
|
106
|
-
changeTrackingMethod?: boolean;
|
|
107
|
-
}
|
|
108
|
-
/** @oneof */
|
|
109
|
-
interface BulkUpdateInventoryVariantsRequestActionOneOf {
|
|
110
|
-
/** Change availability. */
|
|
111
|
-
setInStock?: boolean | null;
|
|
112
|
-
/** Set new quantity. */
|
|
113
|
-
setQuantity?: number | null;
|
|
114
|
-
/**
|
|
115
|
-
* Number to increment inventory by.
|
|
116
|
-
* @min 1
|
|
117
|
-
*/
|
|
118
|
-
incrementBy?: number | null;
|
|
119
|
-
/**
|
|
120
|
-
* Number to decrement inventory by.
|
|
121
|
-
* @min 1
|
|
122
|
-
*/
|
|
123
|
-
decrementBy?: number | null;
|
|
124
|
-
}
|
|
125
|
-
interface BulkUpdateInventoryVariantsResponse {
|
|
126
|
-
}
|
|
127
|
-
interface BulkUpdateInventoryItemsRequest {
|
|
128
|
-
/** Variants filter */
|
|
129
|
-
variantsFilter?: Record<string, any> | null;
|
|
130
|
-
/** Whether inventory is being tracked. */
|
|
131
|
-
trackInventory?: boolean | null;
|
|
132
|
-
}
|
|
133
|
-
interface BulkUpdateInventoryItemsResponse {
|
|
134
|
-
}
|
|
135
|
-
interface DecrementInventoryRequest {
|
|
136
|
-
/**
|
|
137
|
-
* @minSize 1
|
|
138
|
-
* @maxSize 300
|
|
139
|
-
*/
|
|
140
|
-
decrementData?: DecrementData[];
|
|
141
|
-
/** @internal */
|
|
142
|
-
reason?: ReasonTypeWithLiterals;
|
|
143
|
-
/** @internal */
|
|
144
|
-
restrictInventoryValue?: boolean;
|
|
145
|
-
}
|
|
146
|
-
interface DecrementData extends DecrementDataIdOneOf {
|
|
147
|
-
/**
|
|
148
|
-
* Inventory item ID.
|
|
149
|
-
* @maxLength 36
|
|
150
|
-
*/
|
|
151
|
-
inventoryId?: string;
|
|
152
|
-
/**
|
|
153
|
-
* Deprecated: use productId.
|
|
154
|
-
* @maxLength 36
|
|
155
|
-
* @deprecated Deprecated: use productId.
|
|
156
|
-
* @replacedBy product_id
|
|
157
|
-
* @targetRemovalDate 2024-12-31
|
|
158
|
-
*/
|
|
159
|
-
externalId?: string;
|
|
160
|
-
/**
|
|
161
|
-
* Product ID.
|
|
162
|
-
* @maxLength 36
|
|
163
|
-
*/
|
|
164
|
-
productId?: string;
|
|
165
|
-
/**
|
|
166
|
-
* Variant ID.
|
|
167
|
-
* @format GUID
|
|
168
|
-
*/
|
|
169
|
-
variantId?: string;
|
|
170
|
-
/**
|
|
171
|
-
* Number to decrement inventory by.
|
|
172
|
-
* @min 1
|
|
173
|
-
*/
|
|
174
|
-
decrementBy?: number;
|
|
175
|
-
/**
|
|
176
|
-
* Whether the request to decrement the item's inventory was made as part of a purchase that includes preorder items.
|
|
177
|
-
* If true and the item is available for preorder, we allow negative inventory.
|
|
178
|
-
* If false and the item is not available for preorder, we allow regular buy flow (no negative inventory).
|
|
179
|
-
*/
|
|
180
|
-
preorderRequest?: boolean;
|
|
181
|
-
}
|
|
182
|
-
/** @oneof */
|
|
183
|
-
interface DecrementDataIdOneOf {
|
|
184
|
-
/**
|
|
185
|
-
* Inventory item ID.
|
|
186
|
-
* @maxLength 36
|
|
187
|
-
*/
|
|
188
|
-
inventoryId?: string;
|
|
189
|
-
/**
|
|
190
|
-
* Deprecated: use productId.
|
|
191
|
-
* @maxLength 36
|
|
192
|
-
* @deprecated Deprecated: use productId.
|
|
193
|
-
* @replacedBy product_id
|
|
194
|
-
* @targetRemovalDate 2024-12-31
|
|
195
|
-
*/
|
|
196
|
-
externalId?: string;
|
|
197
|
-
/**
|
|
198
|
-
* Product ID.
|
|
199
|
-
* @maxLength 36
|
|
200
|
-
*/
|
|
201
|
-
productId?: string;
|
|
202
|
-
}
|
|
203
|
-
interface DecrementInventoryResponse {
|
|
204
|
-
}
|
|
205
|
-
interface IncrementInventoryRequest {
|
|
206
|
-
/**
|
|
207
|
-
* @minSize 1
|
|
208
|
-
* @maxSize 300
|
|
209
|
-
*/
|
|
210
|
-
incrementData?: IncrementData[];
|
|
211
|
-
/** @internal */
|
|
212
|
-
reason?: ReasonTypeWithLiterals;
|
|
213
|
-
}
|
|
214
|
-
interface IncrementData extends IncrementDataIdOneOf {
|
|
215
|
-
/**
|
|
216
|
-
* Inventory item ID.
|
|
217
|
-
* @maxLength 36
|
|
218
|
-
*/
|
|
219
|
-
inventoryId?: string;
|
|
220
|
-
/**
|
|
221
|
-
* Product ID.
|
|
222
|
-
* @maxLength 36
|
|
223
|
-
*/
|
|
224
|
-
productId?: string;
|
|
225
|
-
/**
|
|
226
|
-
* Variant ID.
|
|
227
|
-
* @format GUID
|
|
228
|
-
*/
|
|
229
|
-
variantId?: string;
|
|
230
|
-
/**
|
|
231
|
-
* Number to increment inventory by.
|
|
232
|
-
* @min 1
|
|
233
|
-
*/
|
|
234
|
-
incrementBy?: number;
|
|
235
|
-
}
|
|
236
|
-
/** @oneof */
|
|
237
|
-
interface IncrementDataIdOneOf {
|
|
238
|
-
/**
|
|
239
|
-
* Inventory item ID.
|
|
240
|
-
* @maxLength 36
|
|
241
|
-
*/
|
|
242
|
-
inventoryId?: string;
|
|
243
|
-
/**
|
|
244
|
-
* Product ID.
|
|
245
|
-
* @maxLength 36
|
|
246
|
-
*/
|
|
247
|
-
productId?: string;
|
|
248
|
-
}
|
|
249
|
-
interface IncrementInventoryResponse {
|
|
250
|
-
}
|
|
251
66
|
interface InventoryItemChanged {
|
|
252
67
|
/** Inventory item ID. */
|
|
253
68
|
inventoryItemId?: string;
|
|
@@ -307,6 +122,18 @@ interface ChangedInventoryVariantData {
|
|
|
307
122
|
/** Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level. */
|
|
308
123
|
availableForPreorder?: boolean;
|
|
309
124
|
}
|
|
125
|
+
declare enum ReasonType {
|
|
126
|
+
/** Unknown reason. */
|
|
127
|
+
UNKNOWN = "UNKNOWN",
|
|
128
|
+
/** Order related. */
|
|
129
|
+
ORDER = "ORDER",
|
|
130
|
+
/** Manual adjustment. */
|
|
131
|
+
MANUAL = "MANUAL",
|
|
132
|
+
/** Reverting an inventory change. */
|
|
133
|
+
REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
|
|
134
|
+
}
|
|
135
|
+
/** @enumType */
|
|
136
|
+
type ReasonTypeWithLiterals = ReasonType | 'UNKNOWN' | 'ORDER' | 'MANUAL' | 'REVERT_INVENTORY_CHANGE';
|
|
310
137
|
interface GetInventoryVariantsRequest extends GetInventoryVariantsRequestIdOneOf {
|
|
311
138
|
/** Inventory item ID. */
|
|
312
139
|
inventoryId: string;
|
|
@@ -472,6 +299,179 @@ interface AccountInfo {
|
|
|
472
299
|
*/
|
|
473
300
|
siteId?: string | null;
|
|
474
301
|
}
|
|
302
|
+
interface UpdateInventoryVariantsRequest {
|
|
303
|
+
/** Inventory item. */
|
|
304
|
+
inventoryItem: InventoryItemV2;
|
|
305
|
+
/** @internal */
|
|
306
|
+
reason?: ReasonTypeWithLiterals;
|
|
307
|
+
}
|
|
308
|
+
interface UpdateInventoryVariantsResponse {
|
|
309
|
+
}
|
|
310
|
+
interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
|
|
311
|
+
/** Change availability. */
|
|
312
|
+
setInStock?: boolean | null;
|
|
313
|
+
/** Set new quantity. */
|
|
314
|
+
setQuantity?: number | null;
|
|
315
|
+
/**
|
|
316
|
+
* Number to increment inventory by.
|
|
317
|
+
* @min 1
|
|
318
|
+
*/
|
|
319
|
+
incrementBy?: number | null;
|
|
320
|
+
/**
|
|
321
|
+
* Number to decrement inventory by.
|
|
322
|
+
* @min 1
|
|
323
|
+
*/
|
|
324
|
+
decrementBy?: number | null;
|
|
325
|
+
/** Variants filter. Learn more about [API query language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
|
|
326
|
+
filter?: Record<string, any> | null;
|
|
327
|
+
/** @internal */
|
|
328
|
+
reason?: ReasonTypeWithLiterals;
|
|
329
|
+
/** @internal */
|
|
330
|
+
changeTrackingMethod?: boolean;
|
|
331
|
+
}
|
|
332
|
+
/** @oneof */
|
|
333
|
+
interface BulkUpdateInventoryVariantsRequestActionOneOf {
|
|
334
|
+
/** Change availability. */
|
|
335
|
+
setInStock?: boolean | null;
|
|
336
|
+
/** Set new quantity. */
|
|
337
|
+
setQuantity?: number | null;
|
|
338
|
+
/**
|
|
339
|
+
* Number to increment inventory by.
|
|
340
|
+
* @min 1
|
|
341
|
+
*/
|
|
342
|
+
incrementBy?: number | null;
|
|
343
|
+
/**
|
|
344
|
+
* Number to decrement inventory by.
|
|
345
|
+
* @min 1
|
|
346
|
+
*/
|
|
347
|
+
decrementBy?: number | null;
|
|
348
|
+
}
|
|
349
|
+
interface BulkUpdateInventoryVariantsResponse {
|
|
350
|
+
}
|
|
351
|
+
interface BulkUpdateInventoryItemsRequest {
|
|
352
|
+
/** Variants filter */
|
|
353
|
+
variantsFilter?: Record<string, any> | null;
|
|
354
|
+
/** Whether inventory is being tracked. */
|
|
355
|
+
trackInventory?: boolean | null;
|
|
356
|
+
}
|
|
357
|
+
interface BulkUpdateInventoryItemsResponse {
|
|
358
|
+
}
|
|
359
|
+
interface DecrementInventoryRequest {
|
|
360
|
+
/**
|
|
361
|
+
* @minSize 1
|
|
362
|
+
* @maxSize 300
|
|
363
|
+
*/
|
|
364
|
+
decrementData?: DecrementData[];
|
|
365
|
+
/** @internal */
|
|
366
|
+
reason?: ReasonTypeWithLiterals;
|
|
367
|
+
/** @internal */
|
|
368
|
+
restrictInventoryValue?: boolean;
|
|
369
|
+
}
|
|
370
|
+
interface DecrementData extends DecrementDataIdOneOf {
|
|
371
|
+
/**
|
|
372
|
+
* Inventory item ID.
|
|
373
|
+
* @maxLength 36
|
|
374
|
+
*/
|
|
375
|
+
inventoryId?: string;
|
|
376
|
+
/**
|
|
377
|
+
* Deprecated: use productId.
|
|
378
|
+
* @maxLength 36
|
|
379
|
+
* @deprecated Deprecated: use productId.
|
|
380
|
+
* @replacedBy product_id
|
|
381
|
+
* @targetRemovalDate 2024-12-31
|
|
382
|
+
*/
|
|
383
|
+
externalId?: string;
|
|
384
|
+
/**
|
|
385
|
+
* Product ID.
|
|
386
|
+
* @maxLength 36
|
|
387
|
+
*/
|
|
388
|
+
productId?: string;
|
|
389
|
+
/**
|
|
390
|
+
* Variant ID.
|
|
391
|
+
* @format GUID
|
|
392
|
+
*/
|
|
393
|
+
variantId?: string;
|
|
394
|
+
/**
|
|
395
|
+
* Number to decrement inventory by.
|
|
396
|
+
* @min 1
|
|
397
|
+
*/
|
|
398
|
+
decrementBy?: number;
|
|
399
|
+
/**
|
|
400
|
+
* Whether the request to decrement the item's inventory was made as part of a purchase that includes preorder items.
|
|
401
|
+
* If true and the item is available for preorder, we allow negative inventory.
|
|
402
|
+
* If false and the item is not available for preorder, we allow regular buy flow (no negative inventory).
|
|
403
|
+
*/
|
|
404
|
+
preorderRequest?: boolean;
|
|
405
|
+
}
|
|
406
|
+
/** @oneof */
|
|
407
|
+
interface DecrementDataIdOneOf {
|
|
408
|
+
/**
|
|
409
|
+
* Inventory item ID.
|
|
410
|
+
* @maxLength 36
|
|
411
|
+
*/
|
|
412
|
+
inventoryId?: string;
|
|
413
|
+
/**
|
|
414
|
+
* Deprecated: use productId.
|
|
415
|
+
* @maxLength 36
|
|
416
|
+
* @deprecated Deprecated: use productId.
|
|
417
|
+
* @replacedBy product_id
|
|
418
|
+
* @targetRemovalDate 2024-12-31
|
|
419
|
+
*/
|
|
420
|
+
externalId?: string;
|
|
421
|
+
/**
|
|
422
|
+
* Product ID.
|
|
423
|
+
* @maxLength 36
|
|
424
|
+
*/
|
|
425
|
+
productId?: string;
|
|
426
|
+
}
|
|
427
|
+
interface DecrementInventoryResponse {
|
|
428
|
+
}
|
|
429
|
+
interface IncrementInventoryRequest {
|
|
430
|
+
/**
|
|
431
|
+
* @minSize 1
|
|
432
|
+
* @maxSize 300
|
|
433
|
+
*/
|
|
434
|
+
incrementData?: IncrementData[];
|
|
435
|
+
/** @internal */
|
|
436
|
+
reason?: ReasonTypeWithLiterals;
|
|
437
|
+
}
|
|
438
|
+
interface IncrementData extends IncrementDataIdOneOf {
|
|
439
|
+
/**
|
|
440
|
+
* Inventory item ID.
|
|
441
|
+
* @maxLength 36
|
|
442
|
+
*/
|
|
443
|
+
inventoryId?: string;
|
|
444
|
+
/**
|
|
445
|
+
* Product ID.
|
|
446
|
+
* @maxLength 36
|
|
447
|
+
*/
|
|
448
|
+
productId?: string;
|
|
449
|
+
/**
|
|
450
|
+
* Variant ID.
|
|
451
|
+
* @format GUID
|
|
452
|
+
*/
|
|
453
|
+
variantId?: string;
|
|
454
|
+
/**
|
|
455
|
+
* Number to increment inventory by.
|
|
456
|
+
* @min 1
|
|
457
|
+
*/
|
|
458
|
+
incrementBy?: number;
|
|
459
|
+
}
|
|
460
|
+
/** @oneof */
|
|
461
|
+
interface IncrementDataIdOneOf {
|
|
462
|
+
/**
|
|
463
|
+
* Inventory item ID.
|
|
464
|
+
* @maxLength 36
|
|
465
|
+
*/
|
|
466
|
+
inventoryId?: string;
|
|
467
|
+
/**
|
|
468
|
+
* Product ID.
|
|
469
|
+
* @maxLength 36
|
|
470
|
+
*/
|
|
471
|
+
productId?: string;
|
|
472
|
+
}
|
|
473
|
+
interface IncrementInventoryResponse {
|
|
474
|
+
}
|
|
475
475
|
|
|
476
476
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
477
477
|
getUrl: (context: any) => string;
|
|
@@ -483,14 +483,14 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
483
483
|
__responseType: Q;
|
|
484
484
|
__originalResponseType: R;
|
|
485
485
|
};
|
|
486
|
+
declare function getInventoryVariants(): __PublicMethodMetaInfo<'POST', {
|
|
487
|
+
inventoryId: string;
|
|
488
|
+
}, GetInventoryVariantsRequest$1, GetInventoryVariantsRequest, GetInventoryVariantsResponse$1, GetInventoryVariantsResponse>;
|
|
489
|
+
declare function queryInventory(): __PublicMethodMetaInfo<'POST', {}, QueryInventoryRequest$1, QueryInventoryRequest, QueryInventoryResponse$1, QueryInventoryResponse>;
|
|
486
490
|
declare function updateInventoryVariants(): __PublicMethodMetaInfo<'PATCH', {
|
|
487
491
|
inventoryItemProductId: string;
|
|
488
492
|
}, UpdateInventoryVariantsRequest$1, UpdateInventoryVariantsRequest, UpdateInventoryVariantsResponse$1, UpdateInventoryVariantsResponse>;
|
|
489
493
|
declare function decrementInventory(): __PublicMethodMetaInfo<'POST', {}, DecrementInventoryRequest$1, DecrementInventoryRequest, DecrementInventoryResponse$1, DecrementInventoryResponse>;
|
|
490
494
|
declare function incrementInventory(): __PublicMethodMetaInfo<'POST', {}, IncrementInventoryRequest$1, IncrementInventoryRequest, IncrementInventoryResponse$1, IncrementInventoryResponse>;
|
|
491
|
-
declare function getInventoryVariants(): __PublicMethodMetaInfo<'POST', {
|
|
492
|
-
inventoryId: string;
|
|
493
|
-
}, GetInventoryVariantsRequest$1, GetInventoryVariantsRequest, GetInventoryVariantsResponse$1, GetInventoryVariantsResponse>;
|
|
494
|
-
declare function queryInventory(): __PublicMethodMetaInfo<'POST', {}, QueryInventoryRequest$1, QueryInventoryRequest, QueryInventoryResponse$1, QueryInventoryResponse>;
|
|
495
495
|
|
|
496
496
|
export { type AccountInfo as AccountInfoOriginal, type BulkUpdateInventoryItemsRequest as BulkUpdateInventoryItemsRequestOriginal, type BulkUpdateInventoryItemsResponse as BulkUpdateInventoryItemsResponseOriginal, type BulkUpdateInventoryVariantsRequestActionOneOf as BulkUpdateInventoryVariantsRequestActionOneOfOriginal, type BulkUpdateInventoryVariantsRequest as BulkUpdateInventoryVariantsRequestOriginal, type BulkUpdateInventoryVariantsResponse as BulkUpdateInventoryVariantsResponseOriginal, type ChangedInventoryVariantData as ChangedInventoryVariantDataOriginal, type ChangedInventoryVariant as ChangedInventoryVariantOriginal, type DecrementDataIdOneOf as DecrementDataIdOneOfOriginal, type DecrementData as DecrementDataOriginal, type DecrementInventoryRequest as DecrementInventoryRequestOriginal, type DecrementInventoryResponse as DecrementInventoryResponseOriginal, type GetInventoryItemsRequest as GetInventoryItemsRequestOriginal, type GetInventoryItemsResponse as GetInventoryItemsResponseOriginal, type GetInventoryVariantsRequestIdOneOf as GetInventoryVariantsRequestIdOneOfOriginal, type GetInventoryVariantsRequest as GetInventoryVariantsRequestOriginal, type GetInventoryVariantsResponse as GetInventoryVariantsResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type IncrementDataIdOneOf as IncrementDataIdOneOfOriginal, type IncrementData as IncrementDataOriginal, type IncrementInventoryRequest as IncrementInventoryRequestOriginal, type IncrementInventoryResponse as IncrementInventoryResponseOriginal, type InventoryItemChanged as InventoryItemChangedOriginal, type InventoryItemV2 as InventoryItemV2Original, type InventoryVariantV2 as InventoryVariantV2Original, type InventoryVariantsChanged as InventoryVariantsChangedOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PagingMetadata as PagingMetadataOriginal, type Paging as PagingOriginal, type PreorderInfo as PreorderInfoOriginal, type QueryInventoryRequest as QueryInventoryRequestOriginal, type QueryInventoryResponse as QueryInventoryResponseOriginal, type Query as QueryOriginal, ReasonType as ReasonTypeOriginal, type ReasonTypeWithLiterals as ReasonTypeWithLiteralsOriginal, type UpdateInventoryVariantsRequest as UpdateInventoryVariantsRequestOriginal, type UpdateInventoryVariantsResponse as UpdateInventoryVariantsResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, decrementInventory, getInventoryVariants, incrementInventory, queryInventory, updateInventoryVariants };
|
|
@@ -1,68 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
|
|
3
|
-
declare const UpdateInventoryVariantsRequest: z.ZodObject<{
|
|
4
|
-
productId: z.ZodString;
|
|
5
|
-
inventoryItem: z.ZodObject<{
|
|
6
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
-
externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
-
productId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9
|
-
trackQuantity: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
10
|
-
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
|
-
variantId: z.ZodOptional<z.ZodString>;
|
|
12
|
-
inStock: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
13
|
-
quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
14
|
-
availableForPreorder: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
-
}, z.core.$strip>>>;
|
|
16
|
-
lastUpdated: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
17
|
-
numericId: z.ZodOptional<z.ZodString>;
|
|
18
|
-
preorderInfo: z.ZodOptional<z.ZodObject<{
|
|
19
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
-
message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21
|
-
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22
|
-
}, z.core.$strip>>;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
declare const UpdateInventoryVariantsResponse: z.ZodObject<{}, z.core.$strip>;
|
|
26
|
-
declare const DecrementInventoryRequest: z.ZodObject<{
|
|
27
|
-
decrementData: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
28
|
-
variantId: z.ZodOptional<z.ZodString>;
|
|
29
|
-
decrementBy: z.ZodOptional<z.ZodNumber>;
|
|
30
|
-
preorderRequest: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
-
}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
|
|
32
|
-
inventoryId: z.ZodOptional<z.ZodNever>;
|
|
33
|
-
externalId: z.ZodOptional<z.ZodNever>;
|
|
34
|
-
productId: z.ZodOptional<z.ZodNever>;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
externalId: z.ZodOptional<z.ZodNever>;
|
|
37
|
-
productId: z.ZodOptional<z.ZodNever>;
|
|
38
|
-
inventoryId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
inventoryId: z.ZodOptional<z.ZodNever>;
|
|
41
|
-
productId: z.ZodOptional<z.ZodNever>;
|
|
42
|
-
externalId: z.ZodString;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
inventoryId: z.ZodOptional<z.ZodNever>;
|
|
45
|
-
externalId: z.ZodOptional<z.ZodNever>;
|
|
46
|
-
productId: z.ZodString;
|
|
47
|
-
}, z.core.$strip>]>>>;
|
|
48
|
-
}, z.core.$strip>;
|
|
49
|
-
declare const DecrementInventoryResponse: z.ZodObject<{}, z.core.$strip>;
|
|
50
|
-
declare const IncrementInventoryRequest: z.ZodObject<{
|
|
51
|
-
incrementData: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
52
|
-
variantId: z.ZodOptional<z.ZodString>;
|
|
53
|
-
incrementBy: z.ZodOptional<z.ZodNumber>;
|
|
54
|
-
}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
|
|
55
|
-
inventoryId: z.ZodOptional<z.ZodNever>;
|
|
56
|
-
productId: z.ZodOptional<z.ZodNever>;
|
|
57
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
-
productId: z.ZodOptional<z.ZodNever>;
|
|
59
|
-
inventoryId: z.ZodString;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
inventoryId: z.ZodOptional<z.ZodNever>;
|
|
62
|
-
productId: z.ZodString;
|
|
63
|
-
}, z.core.$strip>]>>>;
|
|
64
|
-
}, z.core.$strip>;
|
|
65
|
-
declare const IncrementInventoryResponse: z.ZodObject<{}, z.core.$strip>;
|
|
66
3
|
declare const GetInventoryVariantsRequest: z.ZodObject<{
|
|
67
4
|
inventoryId: z.ZodString;
|
|
68
5
|
options: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
@@ -144,5 +81,68 @@ declare const QueryInventoryResponse: z.ZodObject<{
|
|
|
144
81
|
}, z.core.$strip>>;
|
|
145
82
|
totalResults: z.ZodOptional<z.ZodNumber>;
|
|
146
83
|
}, z.core.$strip>;
|
|
84
|
+
declare const UpdateInventoryVariantsRequest: z.ZodObject<{
|
|
85
|
+
productId: z.ZodString;
|
|
86
|
+
inventoryItem: z.ZodObject<{
|
|
87
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
88
|
+
externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
89
|
+
productId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
90
|
+
trackQuantity: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
91
|
+
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
92
|
+
variantId: z.ZodOptional<z.ZodString>;
|
|
93
|
+
inStock: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
94
|
+
quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
95
|
+
availableForPreorder: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
}, z.core.$strip>>>;
|
|
97
|
+
lastUpdated: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
98
|
+
numericId: z.ZodOptional<z.ZodString>;
|
|
99
|
+
preorderInfo: z.ZodOptional<z.ZodObject<{
|
|
100
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
102
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
declare const UpdateInventoryVariantsResponse: z.ZodObject<{}, z.core.$strip>;
|
|
107
|
+
declare const DecrementInventoryRequest: z.ZodObject<{
|
|
108
|
+
decrementData: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
109
|
+
variantId: z.ZodOptional<z.ZodString>;
|
|
110
|
+
decrementBy: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
preorderRequest: z.ZodOptional<z.ZodBoolean>;
|
|
112
|
+
}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
|
|
113
|
+
inventoryId: z.ZodOptional<z.ZodNever>;
|
|
114
|
+
externalId: z.ZodOptional<z.ZodNever>;
|
|
115
|
+
productId: z.ZodOptional<z.ZodNever>;
|
|
116
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
117
|
+
externalId: z.ZodOptional<z.ZodNever>;
|
|
118
|
+
productId: z.ZodOptional<z.ZodNever>;
|
|
119
|
+
inventoryId: z.ZodString;
|
|
120
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
121
|
+
inventoryId: z.ZodOptional<z.ZodNever>;
|
|
122
|
+
productId: z.ZodOptional<z.ZodNever>;
|
|
123
|
+
externalId: z.ZodString;
|
|
124
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
125
|
+
inventoryId: z.ZodOptional<z.ZodNever>;
|
|
126
|
+
externalId: z.ZodOptional<z.ZodNever>;
|
|
127
|
+
productId: z.ZodString;
|
|
128
|
+
}, z.core.$strip>]>>>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
declare const DecrementInventoryResponse: z.ZodObject<{}, z.core.$strip>;
|
|
131
|
+
declare const IncrementInventoryRequest: z.ZodObject<{
|
|
132
|
+
incrementData: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
133
|
+
variantId: z.ZodOptional<z.ZodString>;
|
|
134
|
+
incrementBy: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
|
|
136
|
+
inventoryId: z.ZodOptional<z.ZodNever>;
|
|
137
|
+
productId: z.ZodOptional<z.ZodNever>;
|
|
138
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
139
|
+
productId: z.ZodOptional<z.ZodNever>;
|
|
140
|
+
inventoryId: z.ZodString;
|
|
141
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
142
|
+
inventoryId: z.ZodOptional<z.ZodNever>;
|
|
143
|
+
productId: z.ZodString;
|
|
144
|
+
}, z.core.$strip>]>>>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
declare const IncrementInventoryResponse: z.ZodObject<{}, z.core.$strip>;
|
|
147
147
|
|
|
148
148
|
export { DecrementInventoryRequest, DecrementInventoryResponse, GetInventoryVariantsRequest, GetInventoryVariantsResponse, IncrementInventoryRequest, IncrementInventoryResponse, QueryInventoryRequest, QueryInventoryResponse, UpdateInventoryVariantsRequest, UpdateInventoryVariantsResponse };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_stores_inventory",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.76",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"fqdn": "wix.stores.v2.inventory"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
-
"falconPackageHash": "
|
|
60
|
+
"falconPackageHash": "d07349fcfff0e2c7cb82e3aab4f7f047fd17afca9ef57176ec153387"
|
|
61
61
|
}
|