@wix/auto_sdk_stores_inventory 1.0.73 → 1.0.75

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 (49) hide show
  1. package/build/cjs/index.d.ts +21 -21
  2. package/build/cjs/index.js +175 -175
  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/cjs/schemas.d.ts +63 -63
  11. package/build/cjs/schemas.js +172 -170
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +21 -21
  14. package/build/es/index.mjs +175 -175
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +197 -197
  17. package/build/es/index.typings.mjs +154 -154
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +178 -178
  20. package/build/es/meta.mjs +140 -140
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +63 -63
  23. package/build/es/schemas.mjs +172 -170
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +21 -21
  26. package/build/internal/cjs/index.typings.d.ts +247 -230
  27. package/build/internal/cjs/meta.d.ts +195 -178
  28. package/build/internal/cjs/schemas.d.ts +63 -63
  29. package/build/internal/es/index.d.mts +21 -21
  30. package/build/internal/es/index.typings.d.mts +247 -230
  31. package/build/internal/es/meta.d.mts +195 -178
  32. package/build/internal/es/schemas.d.mts +63 -63
  33. package/package.json +4 -4
  34. package/build/internal/cjs/index.js +0 -560
  35. package/build/internal/cjs/index.js.map +0 -1
  36. package/build/internal/cjs/index.typings.js +0 -467
  37. package/build/internal/cjs/index.typings.js.map +0 -1
  38. package/build/internal/cjs/meta.js +0 -427
  39. package/build/internal/cjs/meta.js.map +0 -1
  40. package/build/internal/cjs/schemas.js +0 -274
  41. package/build/internal/cjs/schemas.js.map +0 -1
  42. package/build/internal/es/index.mjs +0 -528
  43. package/build/internal/es/index.mjs.map +0 -1
  44. package/build/internal/es/index.typings.mjs +0 -437
  45. package/build/internal/es/index.typings.mjs.map +0 -1
  46. package/build/internal/es/meta.mjs +0 -394
  47. package/build/internal/es/meta.mjs.map +0 -1
  48. package/build/internal/es/schemas.mjs +0 -228
  49. package/build/internal/es/schemas.mjs.map +0 -1
@@ -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,191 @@ 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
+ }
66
251
  interface InventoryItemChanged {
67
252
  /** Inventory item ID. */
68
253
  inventoryItemId?: string;
@@ -98,6 +283,11 @@ interface InventoryVariantsChanged {
98
283
  productId?: string;
99
284
  /** Information about changed variants. */
100
285
  variants?: ChangedInventoryVariant[];
286
+ /**
287
+ * Reason data
288
+ * @internal
289
+ */
290
+ reason?: ReasonTypeWithLiterals;
101
291
  /** Date and time the inventory variant item was last updated. */
102
292
  updatedDate?: Date | null;
103
293
  }
@@ -117,18 +307,6 @@ interface ChangedInventoryVariantData {
117
307
  /** Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level. */
118
308
  availableForPreorder?: boolean;
119
309
  }
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
310
  interface GetInventoryVariantsRequest extends GetInventoryVariantsRequestIdOneOf {
133
311
  /** Inventory item ID. */
134
312
  inventoryId: string;
@@ -294,167 +472,6 @@ interface AccountInfo {
294
472
  */
295
473
  siteId?: string | null;
296
474
  }
297
- interface UpdateInventoryVariantsRequest {
298
- /** Inventory item. */
299
- inventoryItem: InventoryItemV2;
300
- }
301
- interface UpdateInventoryVariantsResponse {
302
- }
303
- interface BulkUpdateInventoryVariantsRequest extends 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
- /** Variants filter. Learn more about [API query language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
319
- filter?: Record<string, any> | null;
320
- }
321
- /** @oneof */
322
- interface BulkUpdateInventoryVariantsRequestActionOneOf {
323
- /** Change availability. */
324
- setInStock?: boolean | null;
325
- /** Set new quantity. */
326
- setQuantity?: number | null;
327
- /**
328
- * Number to increment inventory by.
329
- * @min 1
330
- */
331
- incrementBy?: number | null;
332
- /**
333
- * Number to decrement inventory by.
334
- * @min 1
335
- */
336
- decrementBy?: number | null;
337
- }
338
- interface BulkUpdateInventoryVariantsResponse {
339
- }
340
- interface BulkUpdateInventoryItemsRequest {
341
- /** Variants filter */
342
- variantsFilter?: Record<string, any> | null;
343
- /** Whether inventory is being tracked. */
344
- trackInventory?: boolean | null;
345
- }
346
- interface BulkUpdateInventoryItemsResponse {
347
- }
348
- interface DecrementInventoryRequest {
349
- /**
350
- * @minSize 1
351
- * @maxSize 300
352
- */
353
- decrementData?: DecrementData[];
354
- }
355
- interface DecrementData extends DecrementDataIdOneOf {
356
- /**
357
- * Inventory item ID.
358
- * @maxLength 36
359
- */
360
- inventoryId?: string;
361
- /**
362
- * Deprecated: use productId.
363
- * @maxLength 36
364
- * @deprecated Deprecated: use productId.
365
- * @replacedBy product_id
366
- * @targetRemovalDate 2024-12-31
367
- */
368
- externalId?: string;
369
- /**
370
- * Product ID.
371
- * @maxLength 36
372
- */
373
- productId?: string;
374
- /**
375
- * Variant ID.
376
- * @format GUID
377
- */
378
- variantId?: string;
379
- /**
380
- * Number to decrement inventory by.
381
- * @min 1
382
- */
383
- decrementBy?: number;
384
- /**
385
- * Whether the request to decrement the item's inventory was made as part of a purchase that includes preorder items.
386
- * If true and the item is available for preorder, we allow negative inventory.
387
- * If false and the item is not available for preorder, we allow regular buy flow (no negative inventory).
388
- */
389
- preorderRequest?: boolean;
390
- }
391
- /** @oneof */
392
- interface DecrementDataIdOneOf {
393
- /**
394
- * Inventory item ID.
395
- * @maxLength 36
396
- */
397
- inventoryId?: string;
398
- /**
399
- * Deprecated: use productId.
400
- * @maxLength 36
401
- * @deprecated Deprecated: use productId.
402
- * @replacedBy product_id
403
- * @targetRemovalDate 2024-12-31
404
- */
405
- externalId?: string;
406
- /**
407
- * Product ID.
408
- * @maxLength 36
409
- */
410
- productId?: string;
411
- }
412
- interface DecrementInventoryResponse {
413
- }
414
- interface IncrementInventoryRequest {
415
- /**
416
- * @minSize 1
417
- * @maxSize 300
418
- */
419
- incrementData?: IncrementData[];
420
- }
421
- interface IncrementData extends IncrementDataIdOneOf {
422
- /**
423
- * Inventory item ID.
424
- * @maxLength 36
425
- */
426
- inventoryId?: string;
427
- /**
428
- * Product ID.
429
- * @maxLength 36
430
- */
431
- productId?: string;
432
- /**
433
- * Variant ID.
434
- * @format GUID
435
- */
436
- variantId?: string;
437
- /**
438
- * Number to increment inventory by.
439
- * @min 1
440
- */
441
- incrementBy?: number;
442
- }
443
- /** @oneof */
444
- interface IncrementDataIdOneOf {
445
- /**
446
- * Inventory item ID.
447
- * @maxLength 36
448
- */
449
- inventoryId?: string;
450
- /**
451
- * Product ID.
452
- * @maxLength 36
453
- */
454
- productId?: string;
455
- }
456
- interface IncrementInventoryResponse {
457
- }
458
475
 
459
476
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
460
477
  getUrl: (context: any) => string;
@@ -466,14 +483,14 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
466
483
  __responseType: Q;
467
484
  __originalResponseType: R;
468
485
  };
469
- declare function getInventoryVariants(): __PublicMethodMetaInfo<'POST', {
470
- inventoryId: string;
471
- }, GetInventoryVariantsRequest$1, GetInventoryVariantsRequest, GetInventoryVariantsResponse$1, GetInventoryVariantsResponse>;
472
- declare function queryInventory(): __PublicMethodMetaInfo<'POST', {}, QueryInventoryRequest$1, QueryInventoryRequest, QueryInventoryResponse$1, QueryInventoryResponse>;
473
486
  declare function updateInventoryVariants(): __PublicMethodMetaInfo<'PATCH', {
474
487
  inventoryItemProductId: string;
475
488
  }, UpdateInventoryVariantsRequest$1, UpdateInventoryVariantsRequest, UpdateInventoryVariantsResponse$1, UpdateInventoryVariantsResponse>;
476
489
  declare function decrementInventory(): __PublicMethodMetaInfo<'POST', {}, DecrementInventoryRequest$1, DecrementInventoryRequest, DecrementInventoryResponse$1, DecrementInventoryResponse>;
477
490
  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>;
478
495
 
479
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,5 +1,68 @@
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>;
3
66
  declare const GetInventoryVariantsRequest: z.ZodObject<{
4
67
  inventoryId: z.ZodString;
5
68
  options: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
@@ -81,68 +144,5 @@ declare const QueryInventoryResponse: z.ZodObject<{
81
144
  }, z.core.$strip>>;
82
145
  totalResults: z.ZodOptional<z.ZodNumber>;
83
146
  }, 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.73",
3
+ "version": "1.0.75",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -35,8 +35,8 @@
35
35
  "schemas"
36
36
  ],
37
37
  "dependencies": {
38
- "@wix/sdk-runtime": "^1.0.12",
39
- "@wix/sdk-types": "^1.17.7",
38
+ "@wix/sdk-runtime": "^1.0.24",
39
+ "@wix/sdk-types": "^1.17.11",
40
40
  "zod": "^4.3.6"
41
41
  },
42
42
  "devDependencies": {
@@ -57,5 +57,5 @@
57
57
  "fqdn": "wix.stores.v2.inventory"
58
58
  }
59
59
  },
60
- "falconPackageHash": "70acd16825194e81cb903b8735b23e56fc73157925d50ae6546a9c75"
60
+ "falconPackageHash": "a109b8fd76164910f25553d185ec3095390c0fe41fe1a5286126f4ba"
61
61
  }