@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
@@ -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-CAYc4_b7.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 };
@@ -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-CAYc4_b7.js';
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 };