@wix/auto_sdk_stores_inventory 1.0.11 → 1.0.13

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 (134) hide show
  1. package/build/index.d.mts +74 -0
  2. package/build/index.d.ts +74 -0
  3. package/build/index.js +541 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +509 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +74 -0
  8. package/build/internal/index.d.ts +74 -0
  9. package/build/internal/index.js +541 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +509 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +268 -0
  14. package/build/internal/meta.d.ts +268 -0
  15. package/build/internal/meta.js +391 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +360 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/internal/{cjs/src/stores-v2-inventory-inventory.types.d.ts → stores-v2-inventory-inventory.universal-CAYc4_b7.d.mts} +146 -51
  20. package/build/internal/{es/src/stores-v2-inventory-inventory.types.d.ts → stores-v2-inventory-inventory.universal-CAYc4_b7.d.ts} +146 -51
  21. package/build/meta.d.mts +268 -0
  22. package/build/meta.d.ts +268 -0
  23. package/build/meta.js +391 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +360 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{es/src/stores-v2-inventory-inventory.types.d.ts → stores-v2-inventory-inventory.universal-BltJPMge.d.mts} +108 -96
  28. package/build/{cjs/src/stores-v2-inventory-inventory.types.d.ts → stores-v2-inventory-inventory.universal-BltJPMge.d.ts} +108 -96
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/stores-v2-inventory-inventory.context.d.ts +0 -20
  40. package/build/cjs/src/stores-v2-inventory-inventory.context.js +0 -25
  41. package/build/cjs/src/stores-v2-inventory-inventory.context.js.map +0 -1
  42. package/build/cjs/src/stores-v2-inventory-inventory.http.d.ts +0 -31
  43. package/build/cjs/src/stores-v2-inventory-inventory.http.js +0 -291
  44. package/build/cjs/src/stores-v2-inventory-inventory.http.js.map +0 -1
  45. package/build/cjs/src/stores-v2-inventory-inventory.meta.d.ts +0 -21
  46. package/build/cjs/src/stores-v2-inventory-inventory.meta.js +0 -125
  47. package/build/cjs/src/stores-v2-inventory-inventory.meta.js.map +0 -1
  48. package/build/cjs/src/stores-v2-inventory-inventory.public.d.ts +0 -60
  49. package/build/cjs/src/stores-v2-inventory-inventory.public.js +0 -60
  50. package/build/cjs/src/stores-v2-inventory-inventory.public.js.map +0 -1
  51. package/build/cjs/src/stores-v2-inventory-inventory.types.js +0 -23
  52. package/build/cjs/src/stores-v2-inventory-inventory.types.js.map +0 -1
  53. package/build/cjs/src/stores-v2-inventory-inventory.universal.d.ts +0 -600
  54. package/build/cjs/src/stores-v2-inventory-inventory.universal.js +0 -277
  55. package/build/cjs/src/stores-v2-inventory-inventory.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/stores-v2-inventory-inventory.context.d.ts +0 -20
  67. package/build/es/src/stores-v2-inventory-inventory.context.js +0 -20
  68. package/build/es/src/stores-v2-inventory-inventory.context.js.map +0 -1
  69. package/build/es/src/stores-v2-inventory-inventory.http.d.ts +0 -31
  70. package/build/es/src/stores-v2-inventory-inventory.http.js +0 -283
  71. package/build/es/src/stores-v2-inventory-inventory.http.js.map +0 -1
  72. package/build/es/src/stores-v2-inventory-inventory.meta.d.ts +0 -21
  73. package/build/es/src/stores-v2-inventory-inventory.meta.js +0 -94
  74. package/build/es/src/stores-v2-inventory-inventory.meta.js.map +0 -1
  75. package/build/es/src/stores-v2-inventory-inventory.public.d.ts +0 -60
  76. package/build/es/src/stores-v2-inventory-inventory.public.js +0 -50
  77. package/build/es/src/stores-v2-inventory-inventory.public.js.map +0 -1
  78. package/build/es/src/stores-v2-inventory-inventory.types.js +0 -20
  79. package/build/es/src/stores-v2-inventory-inventory.types.js.map +0 -1
  80. package/build/es/src/stores-v2-inventory-inventory.universal.d.ts +0 -600
  81. package/build/es/src/stores-v2-inventory-inventory.universal.js +0 -246
  82. package/build/es/src/stores-v2-inventory-inventory.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/stores-v2-inventory-inventory.context.d.ts +0 -20
  93. package/build/internal/cjs/src/stores-v2-inventory-inventory.context.js +0 -25
  94. package/build/internal/cjs/src/stores-v2-inventory-inventory.context.js.map +0 -1
  95. package/build/internal/cjs/src/stores-v2-inventory-inventory.http.d.ts +0 -31
  96. package/build/internal/cjs/src/stores-v2-inventory-inventory.http.js +0 -291
  97. package/build/internal/cjs/src/stores-v2-inventory-inventory.http.js.map +0 -1
  98. package/build/internal/cjs/src/stores-v2-inventory-inventory.meta.d.ts +0 -21
  99. package/build/internal/cjs/src/stores-v2-inventory-inventory.meta.js +0 -125
  100. package/build/internal/cjs/src/stores-v2-inventory-inventory.meta.js.map +0 -1
  101. package/build/internal/cjs/src/stores-v2-inventory-inventory.public.d.ts +0 -60
  102. package/build/internal/cjs/src/stores-v2-inventory-inventory.public.js +0 -60
  103. package/build/internal/cjs/src/stores-v2-inventory-inventory.public.js.map +0 -1
  104. package/build/internal/cjs/src/stores-v2-inventory-inventory.types.js +0 -23
  105. package/build/internal/cjs/src/stores-v2-inventory-inventory.types.js.map +0 -1
  106. package/build/internal/cjs/src/stores-v2-inventory-inventory.universal.d.ts +0 -683
  107. package/build/internal/cjs/src/stores-v2-inventory-inventory.universal.js +0 -277
  108. package/build/internal/cjs/src/stores-v2-inventory-inventory.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/stores-v2-inventory-inventory.context.d.ts +0 -20
  119. package/build/internal/es/src/stores-v2-inventory-inventory.context.js +0 -20
  120. package/build/internal/es/src/stores-v2-inventory-inventory.context.js.map +0 -1
  121. package/build/internal/es/src/stores-v2-inventory-inventory.http.d.ts +0 -31
  122. package/build/internal/es/src/stores-v2-inventory-inventory.http.js +0 -283
  123. package/build/internal/es/src/stores-v2-inventory-inventory.http.js.map +0 -1
  124. package/build/internal/es/src/stores-v2-inventory-inventory.meta.d.ts +0 -21
  125. package/build/internal/es/src/stores-v2-inventory-inventory.meta.js +0 -94
  126. package/build/internal/es/src/stores-v2-inventory-inventory.meta.js.map +0 -1
  127. package/build/internal/es/src/stores-v2-inventory-inventory.public.d.ts +0 -60
  128. package/build/internal/es/src/stores-v2-inventory-inventory.public.js +0 -50
  129. package/build/internal/es/src/stores-v2-inventory-inventory.public.js.map +0 -1
  130. package/build/internal/es/src/stores-v2-inventory-inventory.types.js +0 -20
  131. package/build/internal/es/src/stores-v2-inventory-inventory.types.js.map +0 -1
  132. package/build/internal/es/src/stores-v2-inventory-inventory.universal.d.ts +0 -683
  133. package/build/internal/es/src/stores-v2-inventory-inventory.universal.js +0 -246
  134. package/build/internal/es/src/stores-v2-inventory-inventory.universal.js.map +0 -1
@@ -1,8 +1,9 @@
1
- export interface InventoryItemV2 {
1
+ interface InventoryItemV2 {
2
2
  /** Inventory item ID. */
3
- id?: string | null;
3
+ _id?: string | null;
4
4
  /**
5
- * Deprecated: use productId.
5
+ * @internal
6
+ * @internal
6
7
  * @readonly
7
8
  * @deprecated Deprecated: use productId.
8
9
  * @replacedBy product_id
@@ -32,7 +33,7 @@ export interface InventoryItemV2 {
32
33
  /** Preorder information. */
33
34
  preorderInfo?: PreorderInfo;
34
35
  }
35
- export interface InventoryVariantV2 {
36
+ interface InventoryVariantV2 {
36
37
  /** Variant ID. */
37
38
  variantId?: string;
38
39
  /** Whether the product is listed as in stock. */
@@ -45,7 +46,7 @@ export interface InventoryVariantV2 {
45
46
  */
46
47
  availableForPreorder?: boolean;
47
48
  }
48
- export interface PreorderInfo {
49
+ interface PreorderInfo {
49
50
  /** Whether the item is available for preorder. */
50
51
  enabled?: boolean;
51
52
  /**
@@ -60,11 +61,11 @@ export interface PreorderInfo {
60
61
  */
61
62
  limit?: number | null;
62
63
  }
63
- export interface UpdateInventoryVariantsRequest {
64
+ interface UpdateInventoryVariantsRequest {
64
65
  /** Inventory item. */
65
66
  inventoryItem: InventoryItemV2;
66
67
  }
67
- export declare enum ReasonType {
68
+ declare enum ReasonType {
68
69
  /** Unknown reason. */
69
70
  UNKNOWN = "UNKNOWN",
70
71
  /** Order related. */
@@ -74,11 +75,9 @@ export declare enum ReasonType {
74
75
  /** Reverting an inventory change. */
75
76
  REVERT_INVENTORY_CHANGE = "REVERT_INVENTORY_CHANGE"
76
77
  }
77
- /** @enumType */
78
- export type ReasonTypeWithLiterals = ReasonType | 'UNKNOWN' | 'ORDER' | 'MANUAL' | 'REVERT_INVENTORY_CHANGE';
79
- export interface UpdateInventoryVariantsResponse {
78
+ interface UpdateInventoryVariantsResponse {
80
79
  }
81
- export interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
80
+ interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryVariantsRequestActionOneOf {
82
81
  /** Change availability. */
83
82
  setInStock?: boolean | null;
84
83
  /** Set new quantity. */
@@ -97,7 +96,7 @@ export interface BulkUpdateInventoryVariantsRequest extends BulkUpdateInventoryV
97
96
  filter?: Record<string, any> | null;
98
97
  }
99
98
  /** @oneof */
100
- export interface BulkUpdateInventoryVariantsRequestActionOneOf {
99
+ interface BulkUpdateInventoryVariantsRequestActionOneOf {
101
100
  /** Change availability. */
102
101
  setInStock?: boolean | null;
103
102
  /** Set new quantity. */
@@ -113,31 +112,33 @@ export interface BulkUpdateInventoryVariantsRequestActionOneOf {
113
112
  */
114
113
  decrementBy?: number | null;
115
114
  }
116
- export interface BulkUpdateInventoryVariantsResponse {
115
+ interface BulkUpdateInventoryVariantsResponse {
117
116
  }
118
- export interface BulkUpdateInventoryItemsRequest {
117
+ interface BulkUpdateInventoryItemsRequest {
119
118
  /** Variants filter */
120
119
  variantsFilter?: Record<string, any> | null;
121
120
  /** Whether inventory is being tracked. */
122
121
  trackInventory?: boolean | null;
123
122
  }
124
- export interface BulkUpdateInventoryItemsResponse {
123
+ interface BulkUpdateInventoryItemsResponse {
125
124
  }
126
- export interface DecrementInventoryRequest {
125
+ interface DecrementInventoryRequest {
127
126
  /**
127
+ * Item or product to decrement.
128
128
  * @minSize 1
129
129
  * @maxSize 300
130
130
  */
131
131
  decrementData?: DecrementData[];
132
132
  }
133
- export interface DecrementData extends DecrementDataIdOneOf {
133
+ interface DecrementData extends DecrementDataIdOneOf {
134
134
  /**
135
135
  * Inventory item ID.
136
136
  * @maxLength 36
137
137
  */
138
138
  inventoryId?: string;
139
139
  /**
140
- * Deprecated: use productId.
140
+ * @internal
141
+ * @internal
141
142
  * @maxLength 36
142
143
  * @deprecated Deprecated: use productId.
143
144
  * @replacedBy product_id
@@ -167,14 +168,15 @@ export interface DecrementData extends DecrementDataIdOneOf {
167
168
  preorderRequest?: boolean;
168
169
  }
169
170
  /** @oneof */
170
- export interface DecrementDataIdOneOf {
171
+ interface DecrementDataIdOneOf {
171
172
  /**
172
173
  * Inventory item ID.
173
174
  * @maxLength 36
174
175
  */
175
176
  inventoryId?: string;
176
177
  /**
177
- * Deprecated: use productId.
178
+ * @internal
179
+ * @internal
178
180
  * @maxLength 36
179
181
  * @deprecated Deprecated: use productId.
180
182
  * @replacedBy product_id
@@ -187,16 +189,17 @@ export interface DecrementDataIdOneOf {
187
189
  */
188
190
  productId?: string;
189
191
  }
190
- export interface DecrementInventoryResponse {
192
+ interface DecrementInventoryResponse {
191
193
  }
192
- export interface IncrementInventoryRequest {
194
+ interface IncrementInventoryRequest {
193
195
  /**
196
+ * Item or product to increment.
194
197
  * @minSize 1
195
198
  * @maxSize 300
196
199
  */
197
200
  incrementData?: IncrementData[];
198
201
  }
199
- export interface IncrementData extends IncrementDataIdOneOf {
202
+ interface IncrementData extends IncrementDataIdOneOf {
200
203
  /**
201
204
  * Inventory item ID.
202
205
  * @maxLength 36
@@ -219,7 +222,7 @@ export interface IncrementData extends IncrementDataIdOneOf {
219
222
  incrementBy?: number;
220
223
  }
221
224
  /** @oneof */
222
- export interface IncrementDataIdOneOf {
225
+ interface IncrementDataIdOneOf {
223
226
  /**
224
227
  * Inventory item ID.
225
228
  * @maxLength 36
@@ -231,13 +234,14 @@ export interface IncrementDataIdOneOf {
231
234
  */
232
235
  productId?: string;
233
236
  }
234
- export interface IncrementInventoryResponse {
237
+ interface IncrementInventoryResponse {
235
238
  }
236
- export interface InventoryItemChanged {
239
+ interface InventoryItemChanged {
237
240
  /** Inventory item ID. */
238
241
  inventoryItemId?: string;
239
242
  /**
240
- * Deprecated: use productId.
243
+ * @internal
244
+ * @internal
241
245
  * @deprecated Deprecated: use productId.
242
246
  * @replacedBy product_id
243
247
  * @targetRemovalDate 2024-12-31
@@ -252,13 +256,14 @@ export interface InventoryItemChanged {
252
256
  /** Field mask of updated fields. */
253
257
  fieldMask?: string[];
254
258
  /** Date and time the inventory item was last updated. */
255
- updatedDate?: Date | null;
259
+ _updatedDate?: Date | null;
256
260
  }
257
- export interface InventoryVariantsChanged {
261
+ interface InventoryVariantsChanged {
258
262
  /** Inventory item ID. */
259
263
  inventoryItemId?: string;
260
264
  /**
261
- * Deprecated: use productId.
265
+ * @internal
266
+ * @internal
262
267
  * @deprecated Deprecated: use productId.
263
268
  * @replacedBy product_id
264
269
  * @targetRemovalDate 2024-12-31
@@ -269,17 +274,17 @@ export interface InventoryVariantsChanged {
269
274
  /** Information about changed variants. */
270
275
  variants?: ChangedInventoryVariant[];
271
276
  /** Date and time the inventory variant item was last updated. */
272
- updatedDate?: Date | null;
277
+ _updatedDate?: Date | null;
273
278
  }
274
- export interface ChangedInventoryVariant {
279
+ interface ChangedInventoryVariant {
275
280
  /** Variant ID. */
276
- id?: string;
281
+ _id?: string;
277
282
  /** Previous inventory variant data. */
278
283
  oldValue?: ChangedInventoryVariantData;
279
284
  /** Current inventory variant data. */
280
285
  newValue?: ChangedInventoryVariantData;
281
286
  }
282
- export interface ChangedInventoryVariantData {
287
+ interface ChangedInventoryVariantData {
283
288
  /** Inventory variant quantity. */
284
289
  quantity?: number | null;
285
290
  /** Whether the product variant is in stock. */
@@ -287,11 +292,12 @@ export interface ChangedInventoryVariantData {
287
292
  /** Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level. */
288
293
  availableForPreorder?: boolean;
289
294
  }
290
- export interface GetInventoryVariantsRequest extends GetInventoryVariantsRequestIdOneOf {
295
+ interface GetInventoryVariantsRequest extends GetInventoryVariantsRequestIdOneOf {
291
296
  /** Inventory item ID. */
292
297
  inventoryId: string;
293
298
  /**
294
- * Deprecated (use productID instead).
299
+ * @internal
300
+ * @internal
295
301
  * @deprecated Deprecated (use productID instead).
296
302
  * @replacedBy product_id
297
303
  * @targetRemovalDate 2024-12-31
@@ -303,11 +309,12 @@ export interface GetInventoryVariantsRequest extends GetInventoryVariantsRequest
303
309
  variantIds?: string[];
304
310
  }
305
311
  /** @oneof */
306
- export interface GetInventoryVariantsRequestIdOneOf {
312
+ interface GetInventoryVariantsRequestIdOneOf {
307
313
  /** Inventory item ID. */
308
314
  inventoryId?: string;
309
315
  /**
310
- * Deprecated (use productID instead).
316
+ * @internal
317
+ * @internal
311
318
  * @deprecated Deprecated (use productID instead).
312
319
  * @replacedBy product_id
313
320
  * @targetRemovalDate 2024-12-31
@@ -316,29 +323,31 @@ export interface GetInventoryVariantsRequestIdOneOf {
316
323
  /** Product ID. */
317
324
  productId?: string;
318
325
  }
319
- export interface GetInventoryVariantsResponse {
326
+ interface GetInventoryVariantsResponse {
320
327
  /** Inventory item. */
321
328
  inventoryItem?: InventoryItemV2;
322
329
  }
323
- export interface GetInventoryItemsRequest {
330
+ interface GetInventoryItemsRequest {
324
331
  /** Product IDs */
325
332
  productIds?: string[];
326
333
  }
327
- export interface GetInventoryItemsResponse {
334
+ interface GetInventoryItemsResponse {
328
335
  /** Inventory items. */
329
336
  inventoryItems?: InventoryItemV2[];
330
337
  }
331
- export interface QueryInventoryRequest {
338
+ interface QueryInventoryRequest {
339
+ /** Information about paging, filters, sorting. */
332
340
  query?: Query;
333
341
  }
334
- export interface Query {
342
+ interface Query {
343
+ /** Paging options to limit and skip the number of items. */
335
344
  paging?: Paging;
336
345
  /** Filter string */
337
346
  filter?: string | null;
338
347
  /** Sort string */
339
348
  sort?: string | null;
340
349
  }
341
- export interface Paging {
350
+ interface Paging {
342
351
  /**
343
352
  * Amount of items to load per page
344
353
  * @max 100
@@ -347,7 +356,7 @@ export interface Paging {
347
356
  /** Number of items to skip in the display (relevant for all pages after the first) */
348
357
  offset?: number | null;
349
358
  }
350
- export interface QueryInventoryResponse {
359
+ interface QueryInventoryResponse {
351
360
  /** Inventory items. */
352
361
  inventoryItems?: InventoryItemV2[];
353
362
  /** Display metadata. */
@@ -355,13 +364,13 @@ export interface QueryInventoryResponse {
355
364
  /** Number of total results. */
356
365
  totalResults?: number;
357
366
  }
358
- export interface PagingMetadata {
367
+ interface PagingMetadata {
359
368
  /** Amount of items to load per page */
360
369
  items?: number;
361
370
  /** Number of items to skip in the display (relevant for all pages after the first) */
362
371
  offset?: number;
363
372
  }
364
- export interface MessageEnvelope {
373
+ interface MessageEnvelope {
365
374
  /**
366
375
  * App instance ID.
367
376
  * @format GUID
@@ -377,7 +386,7 @@ export interface MessageEnvelope {
377
386
  /** Stringify payload. */
378
387
  data?: string;
379
388
  }
380
- export interface IdentificationData extends IdentificationDataIdOneOf {
389
+ interface IdentificationData extends IdentificationDataIdOneOf {
381
390
  /**
382
391
  * ID of a site visitor that has not logged in to the site.
383
392
  * @format GUID
@@ -402,7 +411,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
402
411
  identityType?: WebhookIdentityTypeWithLiterals;
403
412
  }
404
413
  /** @oneof */
405
- export interface IdentificationDataIdOneOf {
414
+ interface IdentificationDataIdOneOf {
406
415
  /**
407
416
  * ID of a site visitor that has not logged in to the site.
408
417
  * @format GUID
@@ -424,7 +433,7 @@ export interface IdentificationDataIdOneOf {
424
433
  */
425
434
  appId?: string;
426
435
  }
427
- export declare enum WebhookIdentityType {
436
+ declare enum WebhookIdentityType {
428
437
  UNKNOWN = "UNKNOWN",
429
438
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
430
439
  MEMBER = "MEMBER",
@@ -432,4 +441,90 @@ export declare enum WebhookIdentityType {
432
441
  APP = "APP"
433
442
  }
434
443
  /** @enumType */
435
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
444
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
445
+ interface BaseEventMetadata {
446
+ /**
447
+ * App instance ID.
448
+ * @format GUID
449
+ */
450
+ instanceId?: string | null;
451
+ /**
452
+ * Event type.
453
+ * @maxLength 150
454
+ */
455
+ eventType?: string;
456
+ /** The identification type and identity data. */
457
+ identity?: IdentificationData;
458
+ }
459
+ interface InventoryItemChangedEnvelope {
460
+ data: InventoryItemChanged;
461
+ metadata: BaseEventMetadata;
462
+ }
463
+ interface InventoryVariantsChangedEnvelope {
464
+ data: InventoryVariantsChanged;
465
+ metadata: BaseEventMetadata;
466
+ }
467
+ interface UpdateInventoryVariantsInventoryItem {
468
+ /** Inventory item ID. */
469
+ _id?: string | null;
470
+ /**
471
+ * @internal
472
+ * @internal
473
+ * @readonly
474
+ * @deprecated Deprecated: use productId.
475
+ * @replacedBy product_id
476
+ * @targetRemovalDate 2024-12-31
477
+ */
478
+ externalId?: string | null;
479
+ /** Whether quantity is being tracked. */
480
+ trackQuantity?: boolean | null;
481
+ /** Variants associated with this inventory item. */
482
+ variants?: InventoryVariantV2[];
483
+ /**
484
+ * Last updated timestamp.
485
+ * @readonly
486
+ */
487
+ lastUpdated?: Date | null;
488
+ /**
489
+ * Inventory’s unique numeric ID (assigned in ascending order).
490
+ * Primarily for sorting and filtering when crawling all inventories.
491
+ * @readonly
492
+ */
493
+ numericId?: string;
494
+ /** Preorder information. */
495
+ preorderInfo?: PreorderInfo;
496
+ }
497
+ interface GetInventoryVariantsOptions extends GetInventoryVariantsOptionsIdOneOf {
498
+ /**
499
+ * @internal
500
+ * @internal
501
+ * @deprecated Deprecated (use productID instead).
502
+ * @replacedBy product_id
503
+ * @targetRemovalDate 2024-12-31
504
+ */
505
+ externalId?: string;
506
+ /** Product ID. */
507
+ productId?: string;
508
+ /** Variant IDs to query for this inventory item (optional). */
509
+ variantIds?: string[];
510
+ }
511
+ /** @oneof */
512
+ interface GetInventoryVariantsOptionsIdOneOf {
513
+ /** Inventory item ID. */
514
+ inventoryId?: string;
515
+ /**
516
+ * @internal
517
+ * @deprecated Deprecated (use productID instead).
518
+ * @replacedBy product_id
519
+ * @targetRemovalDate 2024-12-31
520
+ */
521
+ externalId?: string;
522
+ /** Product ID. */
523
+ productId?: string;
524
+ }
525
+ interface QueryInventoryOptions {
526
+ /** Information about paging, filters, sorting. */
527
+ query?: Query;
528
+ }
529
+
530
+ export { type Query as A, type BulkUpdateInventoryVariantsRequest as B, type ChangedInventoryVariant as C, type DecrementData as D, type Paging as E, type PagingMetadata as F, type GetInventoryVariantsOptions as G, type IdentificationData as H, type IncrementData as I, type IdentificationDataIdOneOf as J, type BaseEventMetadata as K, type GetInventoryVariantsOptionsIdOneOf as L, type MessageEnvelope as M, type PreorderInfo as P, type QueryInventoryOptions as Q, ReasonType as R, type UpdateInventoryVariantsInventoryItem as U, WebhookIdentityType as W, type GetInventoryVariantsResponse as a, type QueryInventoryResponse as b, type InventoryItemChangedEnvelope as c, type InventoryVariantsChangedEnvelope as d, type InventoryItemV2 as e, type InventoryVariantV2 as f, type UpdateInventoryVariantsRequest as g, type UpdateInventoryVariantsResponse as h, type BulkUpdateInventoryVariantsRequestActionOneOf as i, type BulkUpdateInventoryVariantsResponse as j, type BulkUpdateInventoryItemsRequest as k, type BulkUpdateInventoryItemsResponse as l, type DecrementInventoryRequest as m, type DecrementDataIdOneOf as n, type DecrementInventoryResponse as o, type IncrementInventoryRequest as p, type IncrementDataIdOneOf as q, type IncrementInventoryResponse as r, type InventoryItemChanged as s, type InventoryVariantsChanged as t, type ChangedInventoryVariantData as u, type GetInventoryVariantsRequest as v, type GetInventoryVariantsRequestIdOneOf as w, type GetInventoryItemsRequest as x, type GetInventoryItemsResponse as y, type QueryInventoryRequest as z };
@@ -0,0 +1,268 @@
1
+ import { g as UpdateInventoryVariantsRequest$1, h as UpdateInventoryVariantsResponse$1, m as DecrementInventoryRequest$1, o as DecrementInventoryResponse$1, p as IncrementInventoryRequest$1, r as IncrementInventoryResponse$1, v as GetInventoryVariantsRequest$1, a as GetInventoryVariantsResponse$1, z as QueryInventoryRequest$1, b as QueryInventoryResponse$1 } from './stores-v2-inventory-inventory.universal-BltJPMge.mjs';
2
+
3
+ interface InventoryItemV2 {
4
+ /** Inventory item ID. */
5
+ id?: string | null;
6
+ /**
7
+ * Deprecated: use productId.
8
+ * @readonly
9
+ * @deprecated Deprecated: use productId.
10
+ * @replacedBy product_id
11
+ * @targetRemovalDate 2024-12-31
12
+ */
13
+ externalId?: string | null;
14
+ /**
15
+ * Product ID.
16
+ * @readonly
17
+ */
18
+ productId?: string | null;
19
+ /** Whether quantity is being tracked. */
20
+ trackQuantity?: boolean | null;
21
+ /** Variants associated with this inventory item. */
22
+ variants?: InventoryVariantV2[];
23
+ /**
24
+ * Last updated timestamp.
25
+ * @readonly
26
+ */
27
+ lastUpdated?: Date | null;
28
+ /**
29
+ * Inventory’s unique numeric ID (assigned in ascending order).
30
+ * Primarily for sorting and filtering when crawling all inventories.
31
+ * @readonly
32
+ */
33
+ numericId?: string;
34
+ /** Preorder information. */
35
+ preorderInfo?: PreorderInfo;
36
+ }
37
+ interface InventoryVariantV2 {
38
+ /** Variant ID. */
39
+ variantId?: string;
40
+ /** Whether the product is listed as in stock. */
41
+ inStock?: boolean | null;
42
+ /** Quantity currently left in inventory. */
43
+ quantity?: number | null;
44
+ /**
45
+ * Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level.
46
+ * @readonly
47
+ */
48
+ availableForPreorder?: boolean;
49
+ }
50
+ interface PreorderInfo {
51
+ /** Whether the item is available for preorder. */
52
+ enabled?: boolean;
53
+ /**
54
+ * A message the buyer will see when the item is out of stock and preorder is enabled.
55
+ * @minLength 1
56
+ * @maxLength 250
57
+ */
58
+ message?: string | null;
59
+ /**
60
+ * Number of products that can be preordered after stock reaches zero.
61
+ * @max 100000
62
+ */
63
+ limit?: number | null;
64
+ }
65
+ interface UpdateInventoryVariantsRequest {
66
+ /** Inventory item. */
67
+ inventoryItem: InventoryItemV2;
68
+ }
69
+ interface UpdateInventoryVariantsResponse {
70
+ }
71
+ interface DecrementInventoryRequest {
72
+ /**
73
+ * @minSize 1
74
+ * @maxSize 300
75
+ */
76
+ decrementData?: DecrementData[];
77
+ }
78
+ interface DecrementData extends DecrementDataIdOneOf {
79
+ /**
80
+ * Inventory item ID.
81
+ * @maxLength 36
82
+ */
83
+ inventoryId?: string;
84
+ /**
85
+ * Deprecated: use productId.
86
+ * @maxLength 36
87
+ * @deprecated Deprecated: use productId.
88
+ * @replacedBy product_id
89
+ * @targetRemovalDate 2024-12-31
90
+ */
91
+ externalId?: string;
92
+ /**
93
+ * Product ID.
94
+ * @maxLength 36
95
+ */
96
+ productId?: string;
97
+ /**
98
+ * Variant ID.
99
+ * @format GUID
100
+ */
101
+ variantId?: string;
102
+ /**
103
+ * Number to decrement inventory by.
104
+ * @min 1
105
+ */
106
+ decrementBy?: number;
107
+ /**
108
+ * Whether the request to decrement the item's inventory was made as part of a purchase that includes preorder items.
109
+ * If true and the item is available for preorder, we allow negative inventory.
110
+ * If false and the item is not available for preorder, we allow regular buy flow (no negative inventory).
111
+ */
112
+ preorderRequest?: boolean;
113
+ }
114
+ /** @oneof */
115
+ interface DecrementDataIdOneOf {
116
+ /**
117
+ * Inventory item ID.
118
+ * @maxLength 36
119
+ */
120
+ inventoryId?: string;
121
+ /**
122
+ * Deprecated: use productId.
123
+ * @maxLength 36
124
+ * @deprecated Deprecated: use productId.
125
+ * @replacedBy product_id
126
+ * @targetRemovalDate 2024-12-31
127
+ */
128
+ externalId?: string;
129
+ /**
130
+ * Product ID.
131
+ * @maxLength 36
132
+ */
133
+ productId?: string;
134
+ }
135
+ interface DecrementInventoryResponse {
136
+ }
137
+ interface IncrementInventoryRequest {
138
+ /**
139
+ * @minSize 1
140
+ * @maxSize 300
141
+ */
142
+ incrementData?: IncrementData[];
143
+ }
144
+ interface IncrementData extends IncrementDataIdOneOf {
145
+ /**
146
+ * Inventory item ID.
147
+ * @maxLength 36
148
+ */
149
+ inventoryId?: 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 increment inventory by.
162
+ * @min 1
163
+ */
164
+ incrementBy?: number;
165
+ }
166
+ /** @oneof */
167
+ interface IncrementDataIdOneOf {
168
+ /**
169
+ * Inventory item ID.
170
+ * @maxLength 36
171
+ */
172
+ inventoryId?: string;
173
+ /**
174
+ * Product ID.
175
+ * @maxLength 36
176
+ */
177
+ productId?: string;
178
+ }
179
+ interface IncrementInventoryResponse {
180
+ }
181
+ interface GetInventoryVariantsRequest extends GetInventoryVariantsRequestIdOneOf {
182
+ /** Inventory item ID. */
183
+ inventoryId: string;
184
+ /**
185
+ * Deprecated (use productID instead).
186
+ * @deprecated Deprecated (use productID instead).
187
+ * @replacedBy product_id
188
+ * @targetRemovalDate 2024-12-31
189
+ */
190
+ externalId?: string;
191
+ /** Product ID. */
192
+ productId?: string;
193
+ /** Variant IDs to query for this inventory item (optional). */
194
+ variantIds?: string[];
195
+ }
196
+ /** @oneof */
197
+ interface GetInventoryVariantsRequestIdOneOf {
198
+ /** Inventory item ID. */
199
+ inventoryId?: string;
200
+ /**
201
+ * Deprecated (use productID instead).
202
+ * @deprecated Deprecated (use productID instead).
203
+ * @replacedBy product_id
204
+ * @targetRemovalDate 2024-12-31
205
+ */
206
+ externalId?: string;
207
+ /** Product ID. */
208
+ productId?: string;
209
+ }
210
+ interface GetInventoryVariantsResponse {
211
+ /** Inventory item. */
212
+ inventoryItem?: InventoryItemV2;
213
+ }
214
+ interface QueryInventoryRequest {
215
+ query?: Query;
216
+ }
217
+ interface Query {
218
+ paging?: Paging;
219
+ /** Filter string */
220
+ filter?: string | null;
221
+ /** Sort string */
222
+ sort?: string | null;
223
+ }
224
+ interface Paging {
225
+ /**
226
+ * Amount of items to load per page
227
+ * @max 100
228
+ */
229
+ limit?: number | null;
230
+ /** Number of items to skip in the display (relevant for all pages after the first) */
231
+ offset?: number | null;
232
+ }
233
+ interface QueryInventoryResponse {
234
+ /** Inventory items. */
235
+ inventoryItems?: InventoryItemV2[];
236
+ /** Display metadata. */
237
+ metadata?: PagingMetadata;
238
+ /** Number of total results. */
239
+ totalResults?: number;
240
+ }
241
+ interface PagingMetadata {
242
+ /** Amount of items to load per page */
243
+ items?: number;
244
+ /** Number of items to skip in the display (relevant for all pages after the first) */
245
+ offset?: number;
246
+ }
247
+
248
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
249
+ getUrl: (context: any) => string;
250
+ httpMethod: K;
251
+ path: string;
252
+ pathParams: M;
253
+ __requestType: T;
254
+ __originalRequestType: S;
255
+ __responseType: Q;
256
+ __originalResponseType: R;
257
+ };
258
+ declare function updateInventoryVariants(): __PublicMethodMetaInfo<'PATCH', {
259
+ inventoryItemProductId: string;
260
+ }, UpdateInventoryVariantsRequest$1, UpdateInventoryVariantsRequest, UpdateInventoryVariantsResponse$1, UpdateInventoryVariantsResponse>;
261
+ declare function decrementInventory(): __PublicMethodMetaInfo<'POST', {}, DecrementInventoryRequest$1, DecrementInventoryRequest, DecrementInventoryResponse$1, DecrementInventoryResponse>;
262
+ declare function incrementInventory(): __PublicMethodMetaInfo<'POST', {}, IncrementInventoryRequest$1, IncrementInventoryRequest, IncrementInventoryResponse$1, IncrementInventoryResponse>;
263
+ declare function getInventoryVariants(): __PublicMethodMetaInfo<'POST', {
264
+ inventoryId: string;
265
+ }, GetInventoryVariantsRequest$1, GetInventoryVariantsRequest, GetInventoryVariantsResponse$1, GetInventoryVariantsResponse>;
266
+ declare function queryInventory(): __PublicMethodMetaInfo<'POST', {}, QueryInventoryRequest$1, QueryInventoryRequest, QueryInventoryResponse$1, QueryInventoryResponse>;
267
+
268
+ export { type __PublicMethodMetaInfo, decrementInventory, getInventoryVariants, incrementInventory, queryInventory, updateInventoryVariants };