@wix/auto_sdk_stores_inventory 1.0.33 → 1.0.34

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 (37) hide show
  1. package/build/cjs/index.d.ts +21 -21
  2. package/build/cjs/index.js +171 -171
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +197 -197
  5. package/build/cjs/index.typings.js +154 -154
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +178 -178
  8. package/build/cjs/meta.js +140 -140
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +21 -21
  11. package/build/es/index.mjs +171 -171
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +197 -197
  14. package/build/es/index.typings.mjs +154 -154
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +178 -178
  17. package/build/es/meta.mjs +140 -140
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +21 -21
  20. package/build/internal/cjs/index.js +171 -171
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +230 -230
  23. package/build/internal/cjs/index.typings.js +154 -154
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +178 -178
  26. package/build/internal/cjs/meta.js +140 -140
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +21 -21
  29. package/build/internal/es/index.mjs +171 -171
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +230 -230
  32. package/build/internal/es/index.typings.mjs +154 -154
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +178 -178
  35. package/build/internal/es/meta.mjs +140 -140
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1,4 +1,4 @@
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';
1
+ import { UpdateInventoryVariantsRequest as UpdateInventoryVariantsRequest$1, UpdateInventoryVariantsResponse as UpdateInventoryVariantsResponse$1, DecrementInventoryRequest as DecrementInventoryRequest$1, DecrementInventoryResponse as DecrementInventoryResponse$1, IncrementInventoryRequest as IncrementInventoryRequest$1, IncrementInventoryResponse as IncrementInventoryResponse$1, GetInventoryVariantsRequest as GetInventoryVariantsRequest$1, GetInventoryVariantsResponse as GetInventoryVariantsResponse$1, QueryInventoryRequest as QueryInventoryRequest$1, QueryInventoryResponse as QueryInventoryResponse$1 } from './index.typings.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  interface InventoryItemV2 {
@@ -63,6 +63,179 @@ interface PreorderInfo {
63
63
  */
64
64
  limit?: number | null;
65
65
  }
66
+ interface UpdateInventoryVariantsRequest {
67
+ /** Inventory item. */
68
+ inventoryItem: InventoryItemV2;
69
+ }
70
+ declare enum ReasonType {
71
+ /** Unknown reason. */
72
+ UNKNOWN = "UNKNOWN",
73
+ /** Order related. */
74
+ ORDER = "ORDER",
75
+ /** Manual adjustment. */
76
+ MANUAL = "MANUAL",
77
+ /** Reverting an inventory change. */
78
+ REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
79
+ }
80
+ /** @enumType */
81
+ type ReasonTypeWithLiterals = ReasonType | 'UNKNOWN' | 'ORDER' | 'MANUAL' | 'REVERT_INVENTORY_CHANGE';
82
+ interface UpdateInventoryVariantsResponse {
83
+ }
84
+ interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
85
+ /** Change availability. */
86
+ setInStock?: boolean | null;
87
+ /** Set new quantity. */
88
+ setQuantity?: number | null;
89
+ /**
90
+ * Number to increment inventory by.
91
+ * @min 1
92
+ */
93
+ incrementBy?: number | null;
94
+ /**
95
+ * Number to decrement inventory by.
96
+ * @min 1
97
+ */
98
+ decrementBy?: number | null;
99
+ /** Variants filter. Learn more about [API query language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
100
+ filter?: Record<string, any> | null;
101
+ }
102
+ /** @oneof */
103
+ interface BulkUpdateInventoryVariantsRequestActionOneOf {
104
+ /** Change availability. */
105
+ setInStock?: boolean | null;
106
+ /** Set new quantity. */
107
+ setQuantity?: number | null;
108
+ /**
109
+ * Number to increment inventory by.
110
+ * @min 1
111
+ */
112
+ incrementBy?: number | null;
113
+ /**
114
+ * Number to decrement inventory by.
115
+ * @min 1
116
+ */
117
+ decrementBy?: number | null;
118
+ }
119
+ interface BulkUpdateInventoryVariantsResponse {
120
+ }
121
+ interface BulkUpdateInventoryItemsRequest {
122
+ /** Variants filter */
123
+ variantsFilter?: Record<string, any> | null;
124
+ /** Whether inventory is being tracked. */
125
+ trackInventory?: boolean | null;
126
+ }
127
+ interface BulkUpdateInventoryItemsResponse {
128
+ }
129
+ interface DecrementInventoryRequest {
130
+ /**
131
+ * @minSize 1
132
+ * @maxSize 300
133
+ */
134
+ decrementData?: DecrementData[];
135
+ }
136
+ interface DecrementData extends DecrementDataIdOneOf {
137
+ /**
138
+ * Inventory item ID.
139
+ * @maxLength 36
140
+ */
141
+ inventoryId?: string;
142
+ /**
143
+ * Deprecated: use productId.
144
+ * @maxLength 36
145
+ * @deprecated Deprecated: use productId.
146
+ * @replacedBy product_id
147
+ * @targetRemovalDate 2024-12-31
148
+ */
149
+ externalId?: string;
150
+ /**
151
+ * Product ID.
152
+ * @maxLength 36
153
+ */
154
+ productId?: string;
155
+ /**
156
+ * Variant ID.
157
+ * @format GUID
158
+ */
159
+ variantId?: string;
160
+ /**
161
+ * Number to decrement inventory by.
162
+ * @min 1
163
+ */
164
+ decrementBy?: number;
165
+ /**
166
+ * Whether the request to decrement the item's inventory was made as part of a purchase that includes preorder items.
167
+ * If true and the item is available for preorder, we allow negative inventory.
168
+ * If false and the item is not available for preorder, we allow regular buy flow (no negative inventory).
169
+ */
170
+ preorderRequest?: boolean;
171
+ }
172
+ /** @oneof */
173
+ interface DecrementDataIdOneOf {
174
+ /**
175
+ * Inventory item ID.
176
+ * @maxLength 36
177
+ */
178
+ inventoryId?: string;
179
+ /**
180
+ * Deprecated: use productId.
181
+ * @maxLength 36
182
+ * @deprecated Deprecated: use productId.
183
+ * @replacedBy product_id
184
+ * @targetRemovalDate 2024-12-31
185
+ */
186
+ externalId?: string;
187
+ /**
188
+ * Product ID.
189
+ * @maxLength 36
190
+ */
191
+ productId?: string;
192
+ }
193
+ interface DecrementInventoryResponse {
194
+ }
195
+ interface IncrementInventoryRequest {
196
+ /**
197
+ * @minSize 1
198
+ * @maxSize 300
199
+ */
200
+ incrementData?: IncrementData[];
201
+ }
202
+ interface IncrementData extends 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
+ * Variant ID.
215
+ * @format GUID
216
+ */
217
+ variantId?: string;
218
+ /**
219
+ * Number to increment inventory by.
220
+ * @min 1
221
+ */
222
+ incrementBy?: number;
223
+ }
224
+ /** @oneof */
225
+ interface IncrementDataIdOneOf {
226
+ /**
227
+ * Inventory item ID.
228
+ * @maxLength 36
229
+ */
230
+ inventoryId?: string;
231
+ /**
232
+ * Product ID.
233
+ * @maxLength 36
234
+ */
235
+ productId?: string;
236
+ }
237
+ interface IncrementInventoryResponse {
238
+ }
66
239
  interface InventoryItemChanged {
67
240
  /** Inventory item ID. */
68
241
  inventoryItemId?: string;
@@ -117,18 +290,6 @@ interface ChangedInventoryVariantData {
117
290
  /** Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level. */
118
291
  availableForPreorder?: boolean;
119
292
  }
120
- declare enum ReasonType {
121
- /** Unknown reason. */
122
- UNKNOWN = "UNKNOWN",
123
- /** Order related. */
124
- ORDER = "ORDER",
125
- /** Manual adjustment. */
126
- MANUAL = "MANUAL",
127
- /** Reverting an inventory change. */
128
- REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
129
- }
130
- /** @enumType */
131
- type ReasonTypeWithLiterals = ReasonType | 'UNKNOWN' | 'ORDER' | 'MANUAL' | 'REVERT_INVENTORY_CHANGE';
132
293
  interface GetInventoryVariantsRequest extends GetInventoryVariantsRequestIdOneOf {
133
294
  /** Inventory item ID. */
134
295
  inventoryId: string;
@@ -275,167 +436,6 @@ declare enum WebhookIdentityType {
275
436
  }
276
437
  /** @enumType */
277
438
  type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
278
- interface UpdateInventoryVariantsRequest {
279
- /** Inventory item. */
280
- inventoryItem: InventoryItemV2;
281
- }
282
- interface UpdateInventoryVariantsResponse {
283
- }
284
- interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
285
- /** Change availability. */
286
- setInStock?: boolean | null;
287
- /** Set new quantity. */
288
- setQuantity?: number | null;
289
- /**
290
- * Number to increment inventory by.
291
- * @min 1
292
- */
293
- incrementBy?: number | null;
294
- /**
295
- * Number to decrement inventory by.
296
- * @min 1
297
- */
298
- decrementBy?: number | null;
299
- /** Variants filter. Learn more about [API query language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
300
- filter?: Record<string, any> | null;
301
- }
302
- /** @oneof */
303
- interface BulkUpdateInventoryVariantsRequestActionOneOf {
304
- /** Change availability. */
305
- setInStock?: boolean | null;
306
- /** Set new quantity. */
307
- setQuantity?: number | null;
308
- /**
309
- * Number to increment inventory by.
310
- * @min 1
311
- */
312
- incrementBy?: number | null;
313
- /**
314
- * Number to decrement inventory by.
315
- * @min 1
316
- */
317
- decrementBy?: number | null;
318
- }
319
- interface BulkUpdateInventoryVariantsResponse {
320
- }
321
- interface BulkUpdateInventoryItemsRequest {
322
- /** Variants filter */
323
- variantsFilter?: Record<string, any> | null;
324
- /** Whether inventory is being tracked. */
325
- trackInventory?: boolean | null;
326
- }
327
- interface BulkUpdateInventoryItemsResponse {
328
- }
329
- interface DecrementInventoryRequest {
330
- /**
331
- * @minSize 1
332
- * @maxSize 300
333
- */
334
- decrementData?: DecrementData[];
335
- }
336
- interface DecrementData extends DecrementDataIdOneOf {
337
- /**
338
- * Inventory item ID.
339
- * @maxLength 36
340
- */
341
- inventoryId?: string;
342
- /**
343
- * Deprecated: use productId.
344
- * @maxLength 36
345
- * @deprecated Deprecated: use productId.
346
- * @replacedBy product_id
347
- * @targetRemovalDate 2024-12-31
348
- */
349
- externalId?: string;
350
- /**
351
- * Product ID.
352
- * @maxLength 36
353
- */
354
- productId?: string;
355
- /**
356
- * Variant ID.
357
- * @format GUID
358
- */
359
- variantId?: string;
360
- /**
361
- * Number to decrement inventory by.
362
- * @min 1
363
- */
364
- decrementBy?: number;
365
- /**
366
- * Whether the request to decrement the item's inventory was made as part of a purchase that includes preorder items.
367
- * If true and the item is available for preorder, we allow negative inventory.
368
- * If false and the item is not available for preorder, we allow regular buy flow (no negative inventory).
369
- */
370
- preorderRequest?: boolean;
371
- }
372
- /** @oneof */
373
- interface DecrementDataIdOneOf {
374
- /**
375
- * Inventory item ID.
376
- * @maxLength 36
377
- */
378
- inventoryId?: string;
379
- /**
380
- * Deprecated: use productId.
381
- * @maxLength 36
382
- * @deprecated Deprecated: use productId.
383
- * @replacedBy product_id
384
- * @targetRemovalDate 2024-12-31
385
- */
386
- externalId?: string;
387
- /**
388
- * Product ID.
389
- * @maxLength 36
390
- */
391
- productId?: string;
392
- }
393
- interface DecrementInventoryResponse {
394
- }
395
- interface IncrementInventoryRequest {
396
- /**
397
- * @minSize 1
398
- * @maxSize 300
399
- */
400
- incrementData?: IncrementData[];
401
- }
402
- interface IncrementData extends IncrementDataIdOneOf {
403
- /**
404
- * Inventory item ID.
405
- * @maxLength 36
406
- */
407
- inventoryId?: string;
408
- /**
409
- * Product ID.
410
- * @maxLength 36
411
- */
412
- productId?: string;
413
- /**
414
- * Variant ID.
415
- * @format GUID
416
- */
417
- variantId?: string;
418
- /**
419
- * Number to increment inventory by.
420
- * @min 1
421
- */
422
- incrementBy?: number;
423
- }
424
- /** @oneof */
425
- interface IncrementDataIdOneOf {
426
- /**
427
- * Inventory item ID.
428
- * @maxLength 36
429
- */
430
- inventoryId?: string;
431
- /**
432
- * Product ID.
433
- * @maxLength 36
434
- */
435
- productId?: string;
436
- }
437
- interface IncrementInventoryResponse {
438
- }
439
439
 
440
440
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
441
441
  getUrl: (context: any) => string;
@@ -447,14 +447,14 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
447
447
  __responseType: Q;
448
448
  __originalResponseType: R;
449
449
  };
450
- declare function getInventoryVariants(): __PublicMethodMetaInfo<'POST', {
451
- inventoryId: string;
452
- }, GetInventoryVariantsRequest$1, GetInventoryVariantsRequest, GetInventoryVariantsResponse$1, GetInventoryVariantsResponse>;
453
- declare function queryInventory(): __PublicMethodMetaInfo<'POST', {}, QueryInventoryRequest$1, QueryInventoryRequest, QueryInventoryResponse$1, QueryInventoryResponse>;
454
450
  declare function updateInventoryVariants(): __PublicMethodMetaInfo<'PATCH', {
455
451
  inventoryItemProductId: string;
456
452
  }, UpdateInventoryVariantsRequest$1, UpdateInventoryVariantsRequest, UpdateInventoryVariantsResponse$1, UpdateInventoryVariantsResponse>;
457
453
  declare function decrementInventory(): __PublicMethodMetaInfo<'POST', {}, DecrementInventoryRequest$1, DecrementInventoryRequest, DecrementInventoryResponse$1, DecrementInventoryResponse>;
458
454
  declare function incrementInventory(): __PublicMethodMetaInfo<'POST', {}, IncrementInventoryRequest$1, IncrementInventoryRequest, IncrementInventoryResponse$1, IncrementInventoryResponse>;
455
+ declare function getInventoryVariants(): __PublicMethodMetaInfo<'POST', {
456
+ inventoryId: string;
457
+ }, GetInventoryVariantsRequest$1, GetInventoryVariantsRequest, GetInventoryVariantsResponse$1, GetInventoryVariantsResponse>;
458
+ declare function queryInventory(): __PublicMethodMetaInfo<'POST', {}, QueryInventoryRequest$1, QueryInventoryRequest, QueryInventoryResponse$1, QueryInventoryResponse>;
459
459
 
460
460
  export { 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 };