@wix/auto_sdk_stores_inventory 1.0.74 → 1.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,219 +45,221 @@ module.exports = __toCommonJS(schemas_exports);
45
45
 
46
46
  // src/stores-v2-inventory-inventory.schemas.ts
47
47
  var z = __toESM(require("zod"));
48
- var GetInventoryVariantsRequest = z.object({
49
- inventoryId: z.string().describe("Inventory item ID."),
50
- options: z.intersection(
51
- z.object({ variantIds: z.array(z.string()).optional() }),
52
- z.xor([
53
- z.object({
54
- inventoryId: z.never().optional(),
55
- externalId: z.never().optional(),
56
- productId: z.never().optional()
48
+ var GetInventoryVariantsRequest = /* @__PURE__ */ z.object({
49
+ inventoryId: /* @__PURE__ */ z.string().describe("Inventory item ID."),
50
+ options: /* @__PURE__ */ z.intersection(
51
+ /* @__PURE__ */ z.object({
52
+ variantIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional()
53
+ }),
54
+ /* @__PURE__ */ z.xor([
55
+ /* @__PURE__ */ z.object({
56
+ inventoryId: /* @__PURE__ */ z.never().optional(),
57
+ externalId: /* @__PURE__ */ z.never().optional(),
58
+ productId: /* @__PURE__ */ z.never().optional()
57
59
  }),
58
- z.object({
59
- externalId: z.never().optional(),
60
- productId: z.never().optional(),
61
- inventoryId: z.string().describe("Inventory item ID.")
60
+ /* @__PURE__ */ z.object({
61
+ externalId: /* @__PURE__ */ z.never().optional(),
62
+ productId: /* @__PURE__ */ z.never().optional(),
63
+ inventoryId: /* @__PURE__ */ z.string().describe("Inventory item ID.")
62
64
  }),
63
- z.object({
64
- inventoryId: z.never().optional(),
65
- productId: z.never().optional(),
66
- externalId: z.string().describe("Deprecated (use productID instead).")
65
+ /* @__PURE__ */ z.object({
66
+ inventoryId: /* @__PURE__ */ z.never().optional(),
67
+ productId: /* @__PURE__ */ z.never().optional(),
68
+ externalId: /* @__PURE__ */ z.string().describe("Deprecated (use productID instead).")
67
69
  }),
68
- z.object({
69
- inventoryId: z.never().optional(),
70
- externalId: z.never().optional(),
71
- productId: z.string().describe("Product ID.")
70
+ /* @__PURE__ */ z.object({
71
+ inventoryId: /* @__PURE__ */ z.never().optional(),
72
+ externalId: /* @__PURE__ */ z.never().optional(),
73
+ productId: /* @__PURE__ */ z.string().describe("Product ID.")
72
74
  })
73
75
  ])
74
76
  ).optional()
75
77
  });
76
- var GetInventoryVariantsResponse = z.object({
77
- inventoryItem: z.object({
78
- _id: z.string().describe("Inventory item ID.").optional().nullable(),
79
- externalId: z.string().describe("Deprecated: use productId.").optional().nullable(),
80
- productId: z.string().describe("Product ID.").optional().nullable(),
81
- trackQuantity: z.boolean().describe("Whether quantity is being tracked.").optional().nullable(),
82
- variants: z.array(
83
- z.object({
84
- variantId: z.string().describe("Variant ID.").optional(),
85
- inStock: z.boolean().describe("Whether the product is listed as in stock.").optional().nullable(),
86
- quantity: z.number().int().describe("Quantity currently left in inventory.").min(0).optional().nullable(),
87
- availableForPreorder: z.boolean().describe(
78
+ var GetInventoryVariantsResponse = /* @__PURE__ */ z.object({
79
+ inventoryItem: /* @__PURE__ */ z.object({
80
+ _id: /* @__PURE__ */ z.string().describe("Inventory item ID.").optional().nullable(),
81
+ externalId: /* @__PURE__ */ z.string().describe("Deprecated: use productId.").optional().nullable(),
82
+ productId: /* @__PURE__ */ z.string().describe("Product ID.").optional().nullable(),
83
+ trackQuantity: /* @__PURE__ */ z.boolean().describe("Whether quantity is being tracked.").optional().nullable(),
84
+ variants: /* @__PURE__ */ z.array(
85
+ /* @__PURE__ */ z.object({
86
+ variantId: /* @__PURE__ */ z.string().describe("Variant ID.").optional(),
87
+ inStock: /* @__PURE__ */ z.boolean().describe("Whether the product is listed as in stock.").optional().nullable(),
88
+ quantity: /* @__PURE__ */ z.number().int().describe("Quantity currently left in inventory.").min(0).optional().nullable(),
89
+ availableForPreorder: /* @__PURE__ */ z.boolean().describe(
88
90
  "Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level."
89
91
  ).optional()
90
92
  })
91
93
  ).optional(),
92
- lastUpdated: z.date().describe("Last updated timestamp.").optional().nullable(),
93
- numericId: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
94
+ lastUpdated: /* @__PURE__ */ z.date().describe("Last updated timestamp.").optional().nullable(),
95
+ numericId: /* @__PURE__ */ z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
94
96
  "Inventory\u2019s unique numeric ID (assigned in ascending order).\nPrimarily for sorting and filtering when crawling all inventories."
95
97
  ).optional(),
96
- preorderInfo: z.object({
97
- enabled: z.boolean().describe("Whether the item is available for preorder.").optional(),
98
- message: z.string().describe(
98
+ preorderInfo: /* @__PURE__ */ z.object({
99
+ enabled: /* @__PURE__ */ z.boolean().describe("Whether the item is available for preorder.").optional(),
100
+ message: /* @__PURE__ */ z.string().describe(
99
101
  "A message the buyer will see when the item is out of stock and preorder is enabled."
100
102
  ).min(1).max(250).optional().nullable(),
101
- limit: z.number().int().describe(
103
+ limit: /* @__PURE__ */ z.number().int().describe(
102
104
  "Number of products that can be preordered after stock reaches zero."
103
105
  ).min(0).max(1e5).optional().nullable()
104
106
  }).describe("Preorder information.").optional()
105
107
  }).describe("Inventory item.").optional()
106
108
  });
107
- var QueryInventoryRequest = z.object({
108
- options: z.object({
109
- query: z.object({
110
- paging: z.object({
111
- limit: z.number().int().describe("Amount of items to load per page").min(0).max(100).optional().nullable(),
112
- offset: z.number().int().describe(
109
+ var QueryInventoryRequest = /* @__PURE__ */ z.object({
110
+ options: /* @__PURE__ */ z.object({
111
+ query: /* @__PURE__ */ z.object({
112
+ paging: /* @__PURE__ */ z.object({
113
+ limit: /* @__PURE__ */ z.number().int().describe("Amount of items to load per page").min(0).max(100).optional().nullable(),
114
+ offset: /* @__PURE__ */ z.number().int().describe(
113
115
  "Number of items to skip in the display (relevant for all pages after the first)"
114
116
  ).min(0).optional().nullable()
115
117
  }).optional(),
116
- filter: z.string().describe("Filter string").optional().nullable(),
117
- sort: z.string().describe("Sort string").optional().nullable()
118
+ filter: /* @__PURE__ */ z.string().describe("Filter string").optional().nullable(),
119
+ sort: /* @__PURE__ */ z.string().describe("Sort string").optional().nullable()
118
120
  }).optional()
119
121
  }).optional()
120
122
  });
121
- var QueryInventoryResponse = z.object({
122
- inventoryItems: z.array(
123
- z.object({
124
- _id: z.string().describe("Inventory item ID.").optional().nullable(),
125
- externalId: z.string().describe("Deprecated: use productId.").optional().nullable(),
126
- productId: z.string().describe("Product ID.").optional().nullable(),
127
- trackQuantity: z.boolean().describe("Whether quantity is being tracked.").optional().nullable(),
128
- variants: z.array(
129
- z.object({
130
- variantId: z.string().describe("Variant ID.").optional(),
131
- inStock: z.boolean().describe("Whether the product is listed as in stock.").optional().nullable(),
132
- quantity: z.number().int().describe("Quantity currently left in inventory.").min(0).optional().nullable(),
133
- availableForPreorder: z.boolean().describe(
123
+ var QueryInventoryResponse = /* @__PURE__ */ z.object({
124
+ inventoryItems: /* @__PURE__ */ z.array(
125
+ /* @__PURE__ */ z.object({
126
+ _id: /* @__PURE__ */ z.string().describe("Inventory item ID.").optional().nullable(),
127
+ externalId: /* @__PURE__ */ z.string().describe("Deprecated: use productId.").optional().nullable(),
128
+ productId: /* @__PURE__ */ z.string().describe("Product ID.").optional().nullable(),
129
+ trackQuantity: /* @__PURE__ */ z.boolean().describe("Whether quantity is being tracked.").optional().nullable(),
130
+ variants: /* @__PURE__ */ z.array(
131
+ /* @__PURE__ */ z.object({
132
+ variantId: /* @__PURE__ */ z.string().describe("Variant ID.").optional(),
133
+ inStock: /* @__PURE__ */ z.boolean().describe("Whether the product is listed as in stock.").optional().nullable(),
134
+ quantity: /* @__PURE__ */ z.number().int().describe("Quantity currently left in inventory.").min(0).optional().nullable(),
135
+ availableForPreorder: /* @__PURE__ */ z.boolean().describe(
134
136
  "Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level."
135
137
  ).optional()
136
138
  })
137
139
  ).optional(),
138
- lastUpdated: z.date().describe("Last updated timestamp.").optional().nullable(),
139
- numericId: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
140
+ lastUpdated: /* @__PURE__ */ z.date().describe("Last updated timestamp.").optional().nullable(),
141
+ numericId: /* @__PURE__ */ z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
140
142
  "Inventory\u2019s unique numeric ID (assigned in ascending order).\nPrimarily for sorting and filtering when crawling all inventories."
141
143
  ).optional(),
142
- preorderInfo: z.object({
143
- enabled: z.boolean().describe("Whether the item is available for preorder.").optional(),
144
- message: z.string().describe(
144
+ preorderInfo: /* @__PURE__ */ z.object({
145
+ enabled: /* @__PURE__ */ z.boolean().describe("Whether the item is available for preorder.").optional(),
146
+ message: /* @__PURE__ */ z.string().describe(
145
147
  "A message the buyer will see when the item is out of stock and preorder is enabled."
146
148
  ).min(1).max(250).optional().nullable(),
147
- limit: z.number().int().describe(
149
+ limit: /* @__PURE__ */ z.number().int().describe(
148
150
  "Number of products that can be preordered after stock reaches zero."
149
151
  ).min(0).max(1e5).optional().nullable()
150
152
  }).describe("Preorder information.").optional()
151
153
  })
152
154
  ).optional(),
153
- metadata: z.object({
154
- items: z.number().int().describe("Amount of items to load per page").optional(),
155
- offset: z.number().int().describe(
155
+ metadata: /* @__PURE__ */ z.object({
156
+ items: /* @__PURE__ */ z.number().int().describe("Amount of items to load per page").optional(),
157
+ offset: /* @__PURE__ */ z.number().int().describe(
156
158
  "Number of items to skip in the display (relevant for all pages after the first)"
157
159
  ).optional()
158
160
  }).describe("Display metadata.").optional(),
159
- totalResults: z.number().int().describe("Number of total results.").optional()
161
+ totalResults: /* @__PURE__ */ z.number().int().describe("Number of total results.").optional()
160
162
  });
161
- var UpdateInventoryVariantsRequest = z.object({
162
- productId: z.string().describe("Product ID."),
163
- inventoryItem: z.object({
164
- _id: z.string().describe("Inventory item ID.").optional().nullable(),
165
- externalId: z.string().describe("Deprecated: use productId.").optional().nullable(),
166
- productId: z.string().describe("Product ID.").optional().nullable(),
167
- trackQuantity: z.boolean().describe("Whether quantity is being tracked.").optional().nullable(),
168
- variants: z.array(
169
- z.object({
170
- variantId: z.string().describe("Variant ID.").optional(),
171
- inStock: z.boolean().describe("Whether the product is listed as in stock.").optional().nullable(),
172
- quantity: z.number().int().describe("Quantity currently left in inventory.").min(0).optional().nullable(),
173
- availableForPreorder: z.boolean().describe(
163
+ var UpdateInventoryVariantsRequest = /* @__PURE__ */ z.object({
164
+ productId: /* @__PURE__ */ z.string().describe("Product ID."),
165
+ inventoryItem: /* @__PURE__ */ z.object({
166
+ _id: /* @__PURE__ */ z.string().describe("Inventory item ID.").optional().nullable(),
167
+ externalId: /* @__PURE__ */ z.string().describe("Deprecated: use productId.").optional().nullable(),
168
+ productId: /* @__PURE__ */ z.string().describe("Product ID.").optional().nullable(),
169
+ trackQuantity: /* @__PURE__ */ z.boolean().describe("Whether quantity is being tracked.").optional().nullable(),
170
+ variants: /* @__PURE__ */ z.array(
171
+ /* @__PURE__ */ z.object({
172
+ variantId: /* @__PURE__ */ z.string().describe("Variant ID.").optional(),
173
+ inStock: /* @__PURE__ */ z.boolean().describe("Whether the product is listed as in stock.").optional().nullable(),
174
+ quantity: /* @__PURE__ */ z.number().int().describe("Quantity currently left in inventory.").min(0).optional().nullable(),
175
+ availableForPreorder: /* @__PURE__ */ z.boolean().describe(
174
176
  "Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level."
175
177
  ).optional()
176
178
  })
177
179
  ).optional(),
178
- lastUpdated: z.date().describe("Last updated timestamp.").optional().nullable(),
179
- numericId: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
180
+ lastUpdated: /* @__PURE__ */ z.date().describe("Last updated timestamp.").optional().nullable(),
181
+ numericId: /* @__PURE__ */ z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
180
182
  "Inventory\u2019s unique numeric ID (assigned in ascending order).\nPrimarily for sorting and filtering when crawling all inventories."
181
183
  ).optional(),
182
- preorderInfo: z.object({
183
- enabled: z.boolean().describe("Whether the item is available for preorder.").optional(),
184
- message: z.string().describe(
184
+ preorderInfo: /* @__PURE__ */ z.object({
185
+ enabled: /* @__PURE__ */ z.boolean().describe("Whether the item is available for preorder.").optional(),
186
+ message: /* @__PURE__ */ z.string().describe(
185
187
  "A message the buyer will see when the item is out of stock and preorder is enabled."
186
188
  ).min(1).max(250).optional().nullable(),
187
- limit: z.number().int().describe(
189
+ limit: /* @__PURE__ */ z.number().int().describe(
188
190
  "Number of products that can be preordered after stock reaches zero."
189
191
  ).min(0).max(1e5).optional().nullable()
190
192
  }).describe("Preorder information.").optional()
191
193
  }).describe("Inventory item to update.")
192
194
  });
193
- var UpdateInventoryVariantsResponse = z.object({});
194
- var DecrementInventoryRequest = z.object({
195
- decrementData: z.array(
196
- z.intersection(
197
- z.object({
198
- variantId: z.string().describe("Variant ID.").regex(
195
+ var UpdateInventoryVariantsResponse = /* @__PURE__ */ z.object({});
196
+ var DecrementInventoryRequest = /* @__PURE__ */ z.object({
197
+ decrementData: /* @__PURE__ */ z.array(
198
+ /* @__PURE__ */ z.intersection(
199
+ /* @__PURE__ */ z.object({
200
+ variantId: /* @__PURE__ */ z.string().describe("Variant ID.").regex(
199
201
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
200
202
  "Must be a valid GUID"
201
203
  ).optional(),
202
- decrementBy: z.number().int().describe("Number to decrement inventory by.").min(1).optional(),
203
- preorderRequest: z.boolean().describe(
204
+ decrementBy: /* @__PURE__ */ z.number().int().describe("Number to decrement inventory by.").min(1).optional(),
205
+ preorderRequest: /* @__PURE__ */ z.boolean().describe(
204
206
  "Whether the request to decrement the item's inventory was made as part of a purchase that includes preorder items.\nIf true and the item is available for preorder, we allow negative inventory.\nIf false and the item is not available for preorder, we allow regular buy flow (no negative inventory)."
205
207
  ).optional()
206
208
  }),
207
- z.xor([
208
- z.object({
209
- inventoryId: z.never().optional(),
210
- externalId: z.never().optional(),
211
- productId: z.never().optional()
209
+ /* @__PURE__ */ z.xor([
210
+ /* @__PURE__ */ z.object({
211
+ inventoryId: /* @__PURE__ */ z.never().optional(),
212
+ externalId: /* @__PURE__ */ z.never().optional(),
213
+ productId: /* @__PURE__ */ z.never().optional()
212
214
  }),
213
- z.object({
214
- externalId: z.never().optional(),
215
- productId: z.never().optional(),
216
- inventoryId: z.string().describe("Inventory item ID.").max(36)
215
+ /* @__PURE__ */ z.object({
216
+ externalId: /* @__PURE__ */ z.never().optional(),
217
+ productId: /* @__PURE__ */ z.never().optional(),
218
+ inventoryId: /* @__PURE__ */ z.string().describe("Inventory item ID.").max(36)
217
219
  }),
218
- z.object({
219
- inventoryId: z.never().optional(),
220
- productId: z.never().optional(),
221
- externalId: z.string().describe("Deprecated: use productId.").max(36)
220
+ /* @__PURE__ */ z.object({
221
+ inventoryId: /* @__PURE__ */ z.never().optional(),
222
+ productId: /* @__PURE__ */ z.never().optional(),
223
+ externalId: /* @__PURE__ */ z.string().describe("Deprecated: use productId.").max(36)
222
224
  }),
223
- z.object({
224
- inventoryId: z.never().optional(),
225
- externalId: z.never().optional(),
226
- productId: z.string().describe("Product ID.").max(36)
225
+ /* @__PURE__ */ z.object({
226
+ inventoryId: /* @__PURE__ */ z.never().optional(),
227
+ externalId: /* @__PURE__ */ z.never().optional(),
228
+ productId: /* @__PURE__ */ z.string().describe("Product ID.").max(36)
227
229
  })
228
230
  ])
229
231
  )
230
232
  ).min(1).max(300)
231
233
  });
232
- var DecrementInventoryResponse = z.object({});
233
- var IncrementInventoryRequest = z.object({
234
- incrementData: z.array(
235
- z.intersection(
236
- z.object({
237
- variantId: z.string().describe("Variant ID.").regex(
234
+ var DecrementInventoryResponse = /* @__PURE__ */ z.object({});
235
+ var IncrementInventoryRequest = /* @__PURE__ */ z.object({
236
+ incrementData: /* @__PURE__ */ z.array(
237
+ /* @__PURE__ */ z.intersection(
238
+ /* @__PURE__ */ z.object({
239
+ variantId: /* @__PURE__ */ z.string().describe("Variant ID.").regex(
238
240
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
239
241
  "Must be a valid GUID"
240
242
  ).optional(),
241
- incrementBy: z.number().int().describe("Number to increment inventory by.").min(1).optional()
243
+ incrementBy: /* @__PURE__ */ z.number().int().describe("Number to increment inventory by.").min(1).optional()
242
244
  }),
243
- z.xor([
244
- z.object({
245
- inventoryId: z.never().optional(),
246
- productId: z.never().optional()
245
+ /* @__PURE__ */ z.xor([
246
+ /* @__PURE__ */ z.object({
247
+ inventoryId: /* @__PURE__ */ z.never().optional(),
248
+ productId: /* @__PURE__ */ z.never().optional()
247
249
  }),
248
- z.object({
249
- productId: z.never().optional(),
250
- inventoryId: z.string().describe("Inventory item ID.").max(36)
250
+ /* @__PURE__ */ z.object({
251
+ productId: /* @__PURE__ */ z.never().optional(),
252
+ inventoryId: /* @__PURE__ */ z.string().describe("Inventory item ID.").max(36)
251
253
  }),
252
- z.object({
253
- inventoryId: z.never().optional(),
254
- productId: z.string().describe("Product ID.").max(36)
254
+ /* @__PURE__ */ z.object({
255
+ inventoryId: /* @__PURE__ */ z.never().optional(),
256
+ productId: /* @__PURE__ */ z.string().describe("Product ID.").max(36)
255
257
  })
256
258
  ])
257
259
  )
258
260
  ).min(1).max(300)
259
261
  });
260
- var IncrementInventoryResponse = z.object({});
262
+ var IncrementInventoryResponse = /* @__PURE__ */ z.object({});
261
263
  // Annotate the CommonJS export names for ESM import in node:
262
264
  0 && (module.exports = {
263
265
  DecrementInventoryRequest,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../schemas.ts","../../src/stores-v2-inventory-inventory.schemas.ts"],"sourcesContent":["export * from './src/stores-v2-inventory-inventory.schemas.js';\n","import * as z from 'zod';\n\nexport const GetInventoryVariantsRequest = z.object({\n inventoryId: z.string().describe('Inventory item ID.'),\n options: z\n .intersection(\n z.object({ variantIds: z.array(z.string()).optional() }),\n z.xor([\n z.object({\n inventoryId: z.never().optional(),\n externalId: z.never().optional(),\n productId: z.never().optional(),\n }),\n z.object({\n externalId: z.never().optional(),\n productId: z.never().optional(),\n inventoryId: z.string().describe('Inventory item ID.'),\n }),\n z.object({\n inventoryId: z.never().optional(),\n productId: z.never().optional(),\n externalId: z\n .string()\n .describe('Deprecated (use productID instead).'),\n }),\n z.object({\n inventoryId: z.never().optional(),\n externalId: z.never().optional(),\n productId: z.string().describe('Product ID.'),\n }),\n ])\n )\n .optional(),\n});\nexport const GetInventoryVariantsResponse = z.object({\n inventoryItem: z\n .object({\n _id: z.string().describe('Inventory item ID.').optional().nullable(),\n externalId: z\n .string()\n .describe('Deprecated: use productId.')\n .optional()\n .nullable(),\n productId: z.string().describe('Product ID.').optional().nullable(),\n trackQuantity: z\n .boolean()\n .describe('Whether quantity is being tracked.')\n .optional()\n .nullable(),\n variants: z\n .array(\n z.object({\n variantId: z.string().describe('Variant ID.').optional(),\n inStock: z\n .boolean()\n .describe('Whether the product is listed as in stock.')\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Quantity currently left in inventory.')\n .min(0)\n .optional()\n .nullable(),\n availableForPreorder: z\n .boolean()\n .describe(\n 'Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level.'\n )\n .optional(),\n })\n )\n .optional(),\n lastUpdated: z\n .date()\n .describe('Last updated timestamp.')\n .optional()\n .nullable(),\n numericId: z\n .string()\n .regex(/^\\d+$/, 'Must be a valid UInt64 string')\n .describe(\n 'Inventory’s unique numeric ID (assigned in ascending order).\\nPrimarily for sorting and filtering when crawling all inventories.'\n )\n .optional(),\n preorderInfo: z\n .object({\n enabled: z\n .boolean()\n .describe('Whether the item is available for preorder.')\n .optional(),\n message: z\n .string()\n .describe(\n 'A message the buyer will see when the item is out of stock and preorder is enabled.'\n )\n .min(1)\n .max(250)\n .optional()\n .nullable(),\n limit: z\n .number()\n .int()\n .describe(\n 'Number of products that can be preordered after stock reaches zero.'\n )\n .min(0)\n .max(100000)\n .optional()\n .nullable(),\n })\n .describe('Preorder information.')\n .optional(),\n })\n .describe('Inventory item.')\n .optional(),\n});\nexport const QueryInventoryRequest = z.object({\n options: z\n .object({\n query: z\n .object({\n paging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Amount of items to load per page')\n .min(0)\n .max(100)\n .optional()\n .nullable(),\n offset: z\n .number()\n .int()\n .describe(\n 'Number of items to skip in the display (relevant for all pages after the first)'\n )\n .min(0)\n .optional()\n .nullable(),\n })\n .optional(),\n filter: z.string().describe('Filter string').optional().nullable(),\n sort: z.string().describe('Sort string').optional().nullable(),\n })\n .optional(),\n })\n .optional(),\n});\nexport const QueryInventoryResponse = z.object({\n inventoryItems: z\n .array(\n z.object({\n _id: z.string().describe('Inventory item ID.').optional().nullable(),\n externalId: z\n .string()\n .describe('Deprecated: use productId.')\n .optional()\n .nullable(),\n productId: z.string().describe('Product ID.').optional().nullable(),\n trackQuantity: z\n .boolean()\n .describe('Whether quantity is being tracked.')\n .optional()\n .nullable(),\n variants: z\n .array(\n z.object({\n variantId: z.string().describe('Variant ID.').optional(),\n inStock: z\n .boolean()\n .describe('Whether the product is listed as in stock.')\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Quantity currently left in inventory.')\n .min(0)\n .optional()\n .nullable(),\n availableForPreorder: z\n .boolean()\n .describe(\n 'Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level.'\n )\n .optional(),\n })\n )\n .optional(),\n lastUpdated: z\n .date()\n .describe('Last updated timestamp.')\n .optional()\n .nullable(),\n numericId: z\n .string()\n .regex(/^\\d+$/, 'Must be a valid UInt64 string')\n .describe(\n 'Inventory’s unique numeric ID (assigned in ascending order).\\nPrimarily for sorting and filtering when crawling all inventories.'\n )\n .optional(),\n preorderInfo: z\n .object({\n enabled: z\n .boolean()\n .describe('Whether the item is available for preorder.')\n .optional(),\n message: z\n .string()\n .describe(\n 'A message the buyer will see when the item is out of stock and preorder is enabled.'\n )\n .min(1)\n .max(250)\n .optional()\n .nullable(),\n limit: z\n .number()\n .int()\n .describe(\n 'Number of products that can be preordered after stock reaches zero.'\n )\n .min(0)\n .max(100000)\n .optional()\n .nullable(),\n })\n .describe('Preorder information.')\n .optional(),\n })\n )\n .optional(),\n metadata: z\n .object({\n items: z\n .number()\n .int()\n .describe('Amount of items to load per page')\n .optional(),\n offset: z\n .number()\n .int()\n .describe(\n 'Number of items to skip in the display (relevant for all pages after the first)'\n )\n .optional(),\n })\n .describe('Display metadata.')\n .optional(),\n totalResults: z\n .number()\n .int()\n .describe('Number of total results.')\n .optional(),\n});\nexport const UpdateInventoryVariantsRequest = z.object({\n productId: z.string().describe('Product ID.'),\n inventoryItem: z\n .object({\n _id: z.string().describe('Inventory item ID.').optional().nullable(),\n externalId: z\n .string()\n .describe('Deprecated: use productId.')\n .optional()\n .nullable(),\n productId: z.string().describe('Product ID.').optional().nullable(),\n trackQuantity: z\n .boolean()\n .describe('Whether quantity is being tracked.')\n .optional()\n .nullable(),\n variants: z\n .array(\n z.object({\n variantId: z.string().describe('Variant ID.').optional(),\n inStock: z\n .boolean()\n .describe('Whether the product is listed as in stock.')\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Quantity currently left in inventory.')\n .min(0)\n .optional()\n .nullable(),\n availableForPreorder: z\n .boolean()\n .describe(\n 'Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level.'\n )\n .optional(),\n })\n )\n .optional(),\n lastUpdated: z\n .date()\n .describe('Last updated timestamp.')\n .optional()\n .nullable(),\n numericId: z\n .string()\n .regex(/^\\d+$/, 'Must be a valid UInt64 string')\n .describe(\n 'Inventory’s unique numeric ID (assigned in ascending order).\\nPrimarily for sorting and filtering when crawling all inventories.'\n )\n .optional(),\n preorderInfo: z\n .object({\n enabled: z\n .boolean()\n .describe('Whether the item is available for preorder.')\n .optional(),\n message: z\n .string()\n .describe(\n 'A message the buyer will see when the item is out of stock and preorder is enabled.'\n )\n .min(1)\n .max(250)\n .optional()\n .nullable(),\n limit: z\n .number()\n .int()\n .describe(\n 'Number of products that can be preordered after stock reaches zero.'\n )\n .min(0)\n .max(100000)\n .optional()\n .nullable(),\n })\n .describe('Preorder information.')\n .optional(),\n })\n .describe('Inventory item to update.'),\n});\nexport const UpdateInventoryVariantsResponse = z.object({});\nexport const DecrementInventoryRequest = z.object({\n decrementData: z\n .array(\n z.intersection(\n z.object({\n variantId: z\n .string()\n .describe('Variant ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n decrementBy: z\n .number()\n .int()\n .describe('Number to decrement inventory by.')\n .min(1)\n .optional(),\n preorderRequest: z\n .boolean()\n .describe(\n \"Whether the request to decrement the item's inventory was made as part of a purchase that includes preorder items.\\nIf true and the item is available for preorder, we allow negative inventory.\\nIf false and the item is not available for preorder, we allow regular buy flow (no negative inventory).\"\n )\n .optional(),\n }),\n z.xor([\n z.object({\n inventoryId: z.never().optional(),\n externalId: z.never().optional(),\n productId: z.never().optional(),\n }),\n z.object({\n externalId: z.never().optional(),\n productId: z.never().optional(),\n inventoryId: z.string().describe('Inventory item ID.').max(36),\n }),\n z.object({\n inventoryId: z.never().optional(),\n productId: z.never().optional(),\n externalId: z\n .string()\n .describe('Deprecated: use productId.')\n .max(36),\n }),\n z.object({\n inventoryId: z.never().optional(),\n externalId: z.never().optional(),\n productId: z.string().describe('Product ID.').max(36),\n }),\n ])\n )\n )\n .min(1)\n .max(300),\n});\nexport const DecrementInventoryResponse = z.object({});\nexport const IncrementInventoryRequest = z.object({\n incrementData: z\n .array(\n z.intersection(\n z.object({\n variantId: z\n .string()\n .describe('Variant ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n incrementBy: z\n .number()\n .int()\n .describe('Number to increment inventory by.')\n .min(1)\n .optional(),\n }),\n z.xor([\n z.object({\n inventoryId: z.never().optional(),\n productId: z.never().optional(),\n }),\n z.object({\n productId: z.never().optional(),\n inventoryId: z.string().describe('Inventory item ID.').max(36),\n }),\n z.object({\n inventoryId: z.never().optional(),\n productId: z.string().describe('Product ID.').max(36),\n }),\n ])\n )\n )\n .min(1)\n .max(300),\n});\nexport const IncrementInventoryResponse = z.object({});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,8BAAgC,SAAO;AAAA,EAClD,aAAe,SAAO,EAAE,SAAS,oBAAoB;AAAA,EACrD,SACG;AAAA,IACG,SAAO,EAAE,YAAc,QAAQ,SAAO,CAAC,EAAE,SAAS,EAAE,CAAC;AAAA,IACrD,MAAI;AAAA,MACF,SAAO;AAAA,QACP,aAAe,QAAM,EAAE,SAAS;AAAA,QAChC,YAAc,QAAM,EAAE,SAAS;AAAA,QAC/B,WAAa,QAAM,EAAE,SAAS;AAAA,MAChC,CAAC;AAAA,MACC,SAAO;AAAA,QACP,YAAc,QAAM,EAAE,SAAS;AAAA,QAC/B,WAAa,QAAM,EAAE,SAAS;AAAA,QAC9B,aAAe,SAAO,EAAE,SAAS,oBAAoB;AAAA,MACvD,CAAC;AAAA,MACC,SAAO;AAAA,QACP,aAAe,QAAM,EAAE,SAAS;AAAA,QAChC,WAAa,QAAM,EAAE,SAAS;AAAA,QAC9B,YACG,SAAO,EACP,SAAS,qCAAqC;AAAA,MACnD,CAAC;AAAA,MACC,SAAO;AAAA,QACP,aAAe,QAAM,EAAE,SAAS;AAAA,QAChC,YAAc,QAAM,EAAE,SAAS;AAAA,QAC/B,WAAa,SA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,QAAM,EAAE,SAAS;AAAA,UAC9B,aAAe,SAAO,EAAE,SAAS,oBAAoB,EAAE,IAAI,EAAE;AAAA,QAC/D,CAAC;AAAA,QACC,SAAO;AAAA,UACP,aAAe,QAAM,EAAE,SAAS;AAAA,UAChC,WAAa,SAAO,EAAE,SAAS,aAAa,EAAE,IAAI,EAAE;AAAA,QACtD,CAAC;AAAA,MACH,CAAC;AAAA,IACH;AAAA,EACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG;AACZ,CAAC;AACM,IAAM,6BAA+B,SAAO,CAAC,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../schemas.ts","../../src/stores-v2-inventory-inventory.schemas.ts"],"sourcesContent":["export * from './src/stores-v2-inventory-inventory.schemas.js';\n","import * as z from 'zod';\n\nexport const GetInventoryVariantsRequest = /*#__PURE__*/ z.object({\n inventoryId: /*#__PURE__*/ z.string().describe('Inventory item ID.'),\n options: /*#__PURE__*/ z\n .intersection(\n /*#__PURE__*/ z.object({\n variantIds: /*#__PURE__*/ z.array(/*#__PURE__*/ z.string()).optional(),\n }),\n /*#__PURE__*/ z.xor([\n /*#__PURE__*/ z.object({\n inventoryId: /*#__PURE__*/ z.never().optional(),\n externalId: /*#__PURE__*/ z.never().optional(),\n productId: /*#__PURE__*/ z.never().optional(),\n }),\n /*#__PURE__*/ z.object({\n externalId: /*#__PURE__*/ z.never().optional(),\n productId: /*#__PURE__*/ z.never().optional(),\n inventoryId: /*#__PURE__*/ z.string().describe('Inventory item ID.'),\n }),\n /*#__PURE__*/ z.object({\n inventoryId: /*#__PURE__*/ z.never().optional(),\n productId: /*#__PURE__*/ z.never().optional(),\n externalId: /*#__PURE__*/ z\n .string()\n .describe('Deprecated (use productID instead).'),\n }),\n /*#__PURE__*/ z.object({\n inventoryId: /*#__PURE__*/ z.never().optional(),\n externalId: /*#__PURE__*/ z.never().optional(),\n productId: /*#__PURE__*/ z.string().describe('Product ID.'),\n }),\n ])\n )\n .optional(),\n});\nexport const GetInventoryVariantsResponse = /*#__PURE__*/ z.object({\n inventoryItem: /*#__PURE__*/ z\n .object({\n _id: /*#__PURE__*/ z\n .string()\n .describe('Inventory item ID.')\n .optional()\n .nullable(),\n externalId: /*#__PURE__*/ z\n .string()\n .describe('Deprecated: use productId.')\n .optional()\n .nullable(),\n productId: /*#__PURE__*/ z\n .string()\n .describe('Product ID.')\n .optional()\n .nullable(),\n trackQuantity: /*#__PURE__*/ z\n .boolean()\n .describe('Whether quantity is being tracked.')\n .optional()\n .nullable(),\n variants: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n variantId: /*#__PURE__*/ z\n .string()\n .describe('Variant ID.')\n .optional(),\n inStock: /*#__PURE__*/ z\n .boolean()\n .describe('Whether the product is listed as in stock.')\n .optional()\n .nullable(),\n quantity: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Quantity currently left in inventory.')\n .min(0)\n .optional()\n .nullable(),\n availableForPreorder: /*#__PURE__*/ z\n .boolean()\n .describe(\n 'Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level.'\n )\n .optional(),\n })\n )\n .optional(),\n lastUpdated: /*#__PURE__*/ z\n .date()\n .describe('Last updated timestamp.')\n .optional()\n .nullable(),\n numericId: /*#__PURE__*/ z\n .string()\n .regex(/^\\d+$/, 'Must be a valid UInt64 string')\n .describe(\n 'Inventory’s unique numeric ID (assigned in ascending order).\\nPrimarily for sorting and filtering when crawling all inventories.'\n )\n .optional(),\n preorderInfo: /*#__PURE__*/ z\n .object({\n enabled: /*#__PURE__*/ z\n .boolean()\n .describe('Whether the item is available for preorder.')\n .optional(),\n message: /*#__PURE__*/ z\n .string()\n .describe(\n 'A message the buyer will see when the item is out of stock and preorder is enabled.'\n )\n .min(1)\n .max(250)\n .optional()\n .nullable(),\n limit: /*#__PURE__*/ z\n .number()\n .int()\n .describe(\n 'Number of products that can be preordered after stock reaches zero.'\n )\n .min(0)\n .max(100000)\n .optional()\n .nullable(),\n })\n .describe('Preorder information.')\n .optional(),\n })\n .describe('Inventory item.')\n .optional(),\n});\nexport const QueryInventoryRequest = /*#__PURE__*/ z.object({\n options: /*#__PURE__*/ z\n .object({\n query: /*#__PURE__*/ z\n .object({\n paging: /*#__PURE__*/ z\n .object({\n limit: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Amount of items to load per page')\n .min(0)\n .max(100)\n .optional()\n .nullable(),\n offset: /*#__PURE__*/ z\n .number()\n .int()\n .describe(\n 'Number of items to skip in the display (relevant for all pages after the first)'\n )\n .min(0)\n .optional()\n .nullable(),\n })\n .optional(),\n filter: /*#__PURE__*/ z\n .string()\n .describe('Filter string')\n .optional()\n .nullable(),\n sort: /*#__PURE__*/ z\n .string()\n .describe('Sort string')\n .optional()\n .nullable(),\n })\n .optional(),\n })\n .optional(),\n});\nexport const QueryInventoryResponse = /*#__PURE__*/ z.object({\n inventoryItems: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n _id: /*#__PURE__*/ z\n .string()\n .describe('Inventory item ID.')\n .optional()\n .nullable(),\n externalId: /*#__PURE__*/ z\n .string()\n .describe('Deprecated: use productId.')\n .optional()\n .nullable(),\n productId: /*#__PURE__*/ z\n .string()\n .describe('Product ID.')\n .optional()\n .nullable(),\n trackQuantity: /*#__PURE__*/ z\n .boolean()\n .describe('Whether quantity is being tracked.')\n .optional()\n .nullable(),\n variants: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n variantId: /*#__PURE__*/ z\n .string()\n .describe('Variant ID.')\n .optional(),\n inStock: /*#__PURE__*/ z\n .boolean()\n .describe('Whether the product is listed as in stock.')\n .optional()\n .nullable(),\n quantity: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Quantity currently left in inventory.')\n .min(0)\n .optional()\n .nullable(),\n availableForPreorder: /*#__PURE__*/ z\n .boolean()\n .describe(\n 'Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level.'\n )\n .optional(),\n })\n )\n .optional(),\n lastUpdated: /*#__PURE__*/ z\n .date()\n .describe('Last updated timestamp.')\n .optional()\n .nullable(),\n numericId: /*#__PURE__*/ z\n .string()\n .regex(/^\\d+$/, 'Must be a valid UInt64 string')\n .describe(\n 'Inventory’s unique numeric ID (assigned in ascending order).\\nPrimarily for sorting and filtering when crawling all inventories.'\n )\n .optional(),\n preorderInfo: /*#__PURE__*/ z\n .object({\n enabled: /*#__PURE__*/ z\n .boolean()\n .describe('Whether the item is available for preorder.')\n .optional(),\n message: /*#__PURE__*/ z\n .string()\n .describe(\n 'A message the buyer will see when the item is out of stock and preorder is enabled.'\n )\n .min(1)\n .max(250)\n .optional()\n .nullable(),\n limit: /*#__PURE__*/ z\n .number()\n .int()\n .describe(\n 'Number of products that can be preordered after stock reaches zero.'\n )\n .min(0)\n .max(100000)\n .optional()\n .nullable(),\n })\n .describe('Preorder information.')\n .optional(),\n })\n )\n .optional(),\n metadata: /*#__PURE__*/ z\n .object({\n items: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Amount of items to load per page')\n .optional(),\n offset: /*#__PURE__*/ z\n .number()\n .int()\n .describe(\n 'Number of items to skip in the display (relevant for all pages after the first)'\n )\n .optional(),\n })\n .describe('Display metadata.')\n .optional(),\n totalResults: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Number of total results.')\n .optional(),\n});\nexport const UpdateInventoryVariantsRequest = /*#__PURE__*/ z.object({\n productId: /*#__PURE__*/ z.string().describe('Product ID.'),\n inventoryItem: /*#__PURE__*/ z\n .object({\n _id: /*#__PURE__*/ z\n .string()\n .describe('Inventory item ID.')\n .optional()\n .nullable(),\n externalId: /*#__PURE__*/ z\n .string()\n .describe('Deprecated: use productId.')\n .optional()\n .nullable(),\n productId: /*#__PURE__*/ z\n .string()\n .describe('Product ID.')\n .optional()\n .nullable(),\n trackQuantity: /*#__PURE__*/ z\n .boolean()\n .describe('Whether quantity is being tracked.')\n .optional()\n .nullable(),\n variants: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.object({\n variantId: /*#__PURE__*/ z\n .string()\n .describe('Variant ID.')\n .optional(),\n inStock: /*#__PURE__*/ z\n .boolean()\n .describe('Whether the product is listed as in stock.')\n .optional()\n .nullable(),\n quantity: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Quantity currently left in inventory.')\n .min(0)\n .optional()\n .nullable(),\n availableForPreorder: /*#__PURE__*/ z\n .boolean()\n .describe(\n 'Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level.'\n )\n .optional(),\n })\n )\n .optional(),\n lastUpdated: /*#__PURE__*/ z\n .date()\n .describe('Last updated timestamp.')\n .optional()\n .nullable(),\n numericId: /*#__PURE__*/ z\n .string()\n .regex(/^\\d+$/, 'Must be a valid UInt64 string')\n .describe(\n 'Inventory’s unique numeric ID (assigned in ascending order).\\nPrimarily for sorting and filtering when crawling all inventories.'\n )\n .optional(),\n preorderInfo: /*#__PURE__*/ z\n .object({\n enabled: /*#__PURE__*/ z\n .boolean()\n .describe('Whether the item is available for preorder.')\n .optional(),\n message: /*#__PURE__*/ z\n .string()\n .describe(\n 'A message the buyer will see when the item is out of stock and preorder is enabled.'\n )\n .min(1)\n .max(250)\n .optional()\n .nullable(),\n limit: /*#__PURE__*/ z\n .number()\n .int()\n .describe(\n 'Number of products that can be preordered after stock reaches zero.'\n )\n .min(0)\n .max(100000)\n .optional()\n .nullable(),\n })\n .describe('Preorder information.')\n .optional(),\n })\n .describe('Inventory item to update.'),\n});\nexport const UpdateInventoryVariantsResponse = /*#__PURE__*/ z.object({});\nexport const DecrementInventoryRequest = /*#__PURE__*/ z.object({\n decrementData: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.intersection(\n /*#__PURE__*/ z.object({\n variantId: /*#__PURE__*/ z\n .string()\n .describe('Variant ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n decrementBy: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Number to decrement inventory by.')\n .min(1)\n .optional(),\n preorderRequest: /*#__PURE__*/ z\n .boolean()\n .describe(\n \"Whether the request to decrement the item's inventory was made as part of a purchase that includes preorder items.\\nIf true and the item is available for preorder, we allow negative inventory.\\nIf false and the item is not available for preorder, we allow regular buy flow (no negative inventory).\"\n )\n .optional(),\n }),\n /*#__PURE__*/ z.xor([\n /*#__PURE__*/ z.object({\n inventoryId: /*#__PURE__*/ z.never().optional(),\n externalId: /*#__PURE__*/ z.never().optional(),\n productId: /*#__PURE__*/ z.never().optional(),\n }),\n /*#__PURE__*/ z.object({\n externalId: /*#__PURE__*/ z.never().optional(),\n productId: /*#__PURE__*/ z.never().optional(),\n inventoryId: /*#__PURE__*/ z\n .string()\n .describe('Inventory item ID.')\n .max(36),\n }),\n /*#__PURE__*/ z.object({\n inventoryId: /*#__PURE__*/ z.never().optional(),\n productId: /*#__PURE__*/ z.never().optional(),\n externalId: /*#__PURE__*/ z\n .string()\n .describe('Deprecated: use productId.')\n .max(36),\n }),\n /*#__PURE__*/ z.object({\n inventoryId: /*#__PURE__*/ z.never().optional(),\n externalId: /*#__PURE__*/ z.never().optional(),\n productId: /*#__PURE__*/ z.string().describe('Product ID.').max(36),\n }),\n ])\n )\n )\n .min(1)\n .max(300),\n});\nexport const DecrementInventoryResponse = /*#__PURE__*/ z.object({});\nexport const IncrementInventoryRequest = /*#__PURE__*/ z.object({\n incrementData: /*#__PURE__*/ z\n .array(\n /*#__PURE__*/ z.intersection(\n /*#__PURE__*/ z.object({\n variantId: /*#__PURE__*/ z\n .string()\n .describe('Variant ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n incrementBy: /*#__PURE__*/ z\n .number()\n .int()\n .describe('Number to increment inventory by.')\n .min(1)\n .optional(),\n }),\n /*#__PURE__*/ z.xor([\n /*#__PURE__*/ z.object({\n inventoryId: /*#__PURE__*/ z.never().optional(),\n productId: /*#__PURE__*/ z.never().optional(),\n }),\n /*#__PURE__*/ z.object({\n productId: /*#__PURE__*/ z.never().optional(),\n inventoryId: /*#__PURE__*/ z\n .string()\n .describe('Inventory item ID.')\n .max(36),\n }),\n /*#__PURE__*/ z.object({\n inventoryId: /*#__PURE__*/ z.never().optional(),\n productId: /*#__PURE__*/ z.string().describe('Product ID.').max(36),\n }),\n ])\n )\n )\n .min(1)\n .max(300),\n});\nexport const IncrementInventoryResponse = /*#__PURE__*/ z.object({});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,8BAA4C,gBAAE,SAAO;AAAA,EAChE,aAA2B,gBAAE,SAAO,EAAE,SAAS,oBAAoB;AAAA,EACnE,SAAuB,gBACpB;AAAA,IACe,gBAAE,SAAO;AAAA,MACrB,YAA0B,gBAAE,QAAoB,gBAAE,SAAO,CAAC,EAAE,SAAS;AAAA,IACvE,CAAC;AAAA,IACa,gBAAE,MAAI;AAAA,MACJ,gBAAE,SAAO;AAAA,QACrB,aAA2B,gBAAE,QAAM,EAAE,SAAS;AAAA,QAC9C,YAA0B,gBAAE,QAAM,EAAE,SAAS;AAAA,QAC7C,WAAyB,gBAAE,QAAM,EAAE,SAAS;AAAA,MAC9C,CAAC;AAAA,MACa,gBAAE,SAAO;AAAA,QACrB,YAA0B,gBAAE,QAAM,EAAE,SAAS;AAAA,QAC7C,WAAyB,gBAAE,QAAM,EAAE,SAAS;AAAA,QAC5C,aAA2B,gBAAE,SAAO,EAAE,SAAS,oBAAoB;AAAA,MACrE,CAAC;AAAA,MACa,gBAAE,SAAO;AAAA,QACrB,aAA2B,gBAAE,QAAM,EAAE,SAAS;AAAA,QAC9C,WAAyB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SAAO,EACP,SAAS,oBAAoB,EAC7B,IAAI,EAAE;AAAA,QACX,CAAC;AAAA,QACa,gBAAE,SAAO;AAAA,UACrB,aAA2B,gBAAE,QAAM,EAAE,SAAS;AAAA,UAC9C,WAAyB,gBAAE,SAAO,EAAE,SAAS,aAAa,EAAE,IAAI,EAAE;AAAA,QACpE,CAAC;AAAA,MACH,CAAC;AAAA,IACH;AAAA,EACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG;AACZ,CAAC;AACM,IAAM,6BAA2C,gBAAE,SAAO,CAAC,CAAC;","names":[]}
@@ -471,7 +471,7 @@ function incrementInventory3(httpClient) {
471
471
  { httpClient }
472
472
  );
473
473
  }
474
- var onInventoryItemChanged = EventDefinition(
474
+ var onInventoryItemChanged = /* @__PURE__ */ EventDefinition(
475
475
  "com.wix.ecommerce.inventory.api.v1.InventoryItemChanged",
476
476
  false,
477
477
  (event) => renameKeysFromRESTResponseToSDKResponse2(
@@ -487,7 +487,7 @@ var onInventoryItemChanged = EventDefinition(
487
487
  ])
488
488
  )
489
489
  )();
490
- var onInventoryVariantsChanged = EventDefinition(
490
+ var onInventoryVariantsChanged = /* @__PURE__ */ EventDefinition(
491
491
  "com.wix.ecommerce.inventory.api.v1.InventoryVariantsChanged",
492
492
  false,
493
493
  (event) => renameKeysFromRESTResponseToSDKResponse2(
@@ -508,10 +508,10 @@ var queryInventory4 = /* @__PURE__ */ createRESTModule(queryInventory3);
508
508
  var updateInventoryVariants4 = /* @__PURE__ */ createRESTModule(updateInventoryVariants3);
509
509
  var decrementInventory4 = /* @__PURE__ */ createRESTModule(decrementInventory3);
510
510
  var incrementInventory4 = /* @__PURE__ */ createRESTModule(incrementInventory3);
511
- var onInventoryItemChanged2 = createEventModule(
511
+ var onInventoryItemChanged2 = /* @__PURE__ */ createEventModule(
512
512
  onInventoryItemChanged
513
513
  );
514
- var onInventoryVariantsChanged2 = createEventModule(
514
+ var onInventoryVariantsChanged2 = /* @__PURE__ */ createEventModule(
515
515
  onInventoryVariantsChanged
516
516
  );
517
517
  export {