@wix/auto_sdk_stores_inventory 1.0.74 → 1.0.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +21 -21
  2. package/build/cjs/index.js +175 -175
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +197 -197
  5. package/build/cjs/index.typings.js +154 -154
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +178 -178
  8. package/build/cjs/meta.js +140 -140
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +63 -63
  11. package/build/cjs/schemas.js +172 -170
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +21 -21
  14. package/build/es/index.mjs +175 -175
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +197 -197
  17. package/build/es/index.typings.mjs +154 -154
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +178 -178
  20. package/build/es/meta.mjs +140 -140
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +63 -63
  23. package/build/es/schemas.mjs +172 -170
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +21 -21
  26. package/build/internal/cjs/index.typings.d.ts +242 -242
  27. package/build/internal/cjs/meta.d.ts +190 -190
  28. package/build/internal/cjs/schemas.d.ts +63 -63
  29. package/build/internal/es/index.d.mts +21 -21
  30. package/build/internal/es/index.typings.d.mts +242 -242
  31. package/build/internal/es/meta.d.mts +190 -190
  32. package/build/internal/es/schemas.d.mts +63 -63
  33. package/package.json +3 -3
  34. package/build/internal/cjs/index.js +0 -560
  35. package/build/internal/cjs/index.js.map +0 -1
  36. package/build/internal/cjs/index.typings.js +0 -467
  37. package/build/internal/cjs/index.typings.js.map +0 -1
  38. package/build/internal/cjs/meta.js +0 -427
  39. package/build/internal/cjs/meta.js.map +0 -1
  40. package/build/internal/cjs/schemas.js +0 -274
  41. package/build/internal/cjs/schemas.js.map +0 -1
  42. package/build/internal/es/index.mjs +0 -528
  43. package/build/internal/es/index.mjs.map +0 -1
  44. package/build/internal/es/index.typings.mjs +0 -437
  45. package/build/internal/es/index.typings.mjs.map +0 -1
  46. package/build/internal/es/meta.mjs +0 -394
  47. package/build/internal/es/meta.mjs.map +0 -1
  48. package/build/internal/es/schemas.mjs +0 -228
  49. package/build/internal/es/schemas.mjs.map +0 -1
@@ -1,5 +1,68 @@
1
1
  import * as z from 'zod';
2
2
 
3
+ declare const UpdateInventoryVariantsRequest: z.ZodObject<{
4
+ productId: z.ZodString;
5
+ inventoryItem: z.ZodObject<{
6
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7
+ externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8
+ productId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9
+ trackQuantity: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
10
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
11
+ variantId: z.ZodOptional<z.ZodString>;
12
+ inStock: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
13
+ quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
14
+ availableForPreorder: z.ZodOptional<z.ZodBoolean>;
15
+ }, z.core.$strip>>>;
16
+ lastUpdated: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
17
+ numericId: z.ZodOptional<z.ZodString>;
18
+ preorderInfo: z.ZodOptional<z.ZodObject<{
19
+ enabled: z.ZodOptional<z.ZodBoolean>;
20
+ message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
21
+ limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
22
+ }, z.core.$strip>>;
23
+ }, z.core.$strip>;
24
+ }, z.core.$strip>;
25
+ declare const UpdateInventoryVariantsResponse: z.ZodObject<{}, z.core.$strip>;
26
+ declare const DecrementInventoryRequest: z.ZodObject<{
27
+ decrementData: z.ZodArray<z.ZodIntersection<z.ZodObject<{
28
+ variantId: z.ZodOptional<z.ZodString>;
29
+ decrementBy: z.ZodOptional<z.ZodNumber>;
30
+ preorderRequest: z.ZodOptional<z.ZodBoolean>;
31
+ }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
32
+ inventoryId: z.ZodOptional<z.ZodNever>;
33
+ externalId: z.ZodOptional<z.ZodNever>;
34
+ productId: z.ZodOptional<z.ZodNever>;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ externalId: z.ZodOptional<z.ZodNever>;
37
+ productId: z.ZodOptional<z.ZodNever>;
38
+ inventoryId: z.ZodString;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ inventoryId: z.ZodOptional<z.ZodNever>;
41
+ productId: z.ZodOptional<z.ZodNever>;
42
+ externalId: z.ZodString;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ inventoryId: z.ZodOptional<z.ZodNever>;
45
+ externalId: z.ZodOptional<z.ZodNever>;
46
+ productId: z.ZodString;
47
+ }, z.core.$strip>]>>>;
48
+ }, z.core.$strip>;
49
+ declare const DecrementInventoryResponse: z.ZodObject<{}, z.core.$strip>;
50
+ declare const IncrementInventoryRequest: z.ZodObject<{
51
+ incrementData: z.ZodArray<z.ZodIntersection<z.ZodObject<{
52
+ variantId: z.ZodOptional<z.ZodString>;
53
+ incrementBy: z.ZodOptional<z.ZodNumber>;
54
+ }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
55
+ inventoryId: z.ZodOptional<z.ZodNever>;
56
+ productId: z.ZodOptional<z.ZodNever>;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ productId: z.ZodOptional<z.ZodNever>;
59
+ inventoryId: z.ZodString;
60
+ }, z.core.$strip>, z.ZodObject<{
61
+ inventoryId: z.ZodOptional<z.ZodNever>;
62
+ productId: z.ZodString;
63
+ }, z.core.$strip>]>>>;
64
+ }, z.core.$strip>;
65
+ declare const IncrementInventoryResponse: z.ZodObject<{}, z.core.$strip>;
3
66
  declare const GetInventoryVariantsRequest: z.ZodObject<{
4
67
  inventoryId: z.ZodString;
5
68
  options: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
@@ -81,68 +144,5 @@ declare const QueryInventoryResponse: z.ZodObject<{
81
144
  }, z.core.$strip>>;
82
145
  totalResults: z.ZodOptional<z.ZodNumber>;
83
146
  }, z.core.$strip>;
84
- declare const UpdateInventoryVariantsRequest: z.ZodObject<{
85
- productId: z.ZodString;
86
- inventoryItem: z.ZodObject<{
87
- _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
88
- externalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
89
- productId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
90
- trackQuantity: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
91
- variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
92
- variantId: z.ZodOptional<z.ZodString>;
93
- inStock: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
94
- quantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
95
- availableForPreorder: z.ZodOptional<z.ZodBoolean>;
96
- }, z.core.$strip>>>;
97
- lastUpdated: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
98
- numericId: z.ZodOptional<z.ZodString>;
99
- preorderInfo: z.ZodOptional<z.ZodObject<{
100
- enabled: z.ZodOptional<z.ZodBoolean>;
101
- message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
102
- limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
103
- }, z.core.$strip>>;
104
- }, z.core.$strip>;
105
- }, z.core.$strip>;
106
- declare const UpdateInventoryVariantsResponse: z.ZodObject<{}, z.core.$strip>;
107
- declare const DecrementInventoryRequest: z.ZodObject<{
108
- decrementData: z.ZodArray<z.ZodIntersection<z.ZodObject<{
109
- variantId: z.ZodOptional<z.ZodString>;
110
- decrementBy: z.ZodOptional<z.ZodNumber>;
111
- preorderRequest: z.ZodOptional<z.ZodBoolean>;
112
- }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
113
- inventoryId: z.ZodOptional<z.ZodNever>;
114
- externalId: z.ZodOptional<z.ZodNever>;
115
- productId: z.ZodOptional<z.ZodNever>;
116
- }, z.core.$strip>, z.ZodObject<{
117
- externalId: z.ZodOptional<z.ZodNever>;
118
- productId: z.ZodOptional<z.ZodNever>;
119
- inventoryId: z.ZodString;
120
- }, z.core.$strip>, z.ZodObject<{
121
- inventoryId: z.ZodOptional<z.ZodNever>;
122
- productId: z.ZodOptional<z.ZodNever>;
123
- externalId: z.ZodString;
124
- }, z.core.$strip>, z.ZodObject<{
125
- inventoryId: z.ZodOptional<z.ZodNever>;
126
- externalId: z.ZodOptional<z.ZodNever>;
127
- productId: z.ZodString;
128
- }, z.core.$strip>]>>>;
129
- }, z.core.$strip>;
130
- declare const DecrementInventoryResponse: z.ZodObject<{}, z.core.$strip>;
131
- declare const IncrementInventoryRequest: z.ZodObject<{
132
- incrementData: z.ZodArray<z.ZodIntersection<z.ZodObject<{
133
- variantId: z.ZodOptional<z.ZodString>;
134
- incrementBy: z.ZodOptional<z.ZodNumber>;
135
- }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
136
- inventoryId: z.ZodOptional<z.ZodNever>;
137
- productId: z.ZodOptional<z.ZodNever>;
138
- }, z.core.$strip>, z.ZodObject<{
139
- productId: z.ZodOptional<z.ZodNever>;
140
- inventoryId: z.ZodString;
141
- }, z.core.$strip>, z.ZodObject<{
142
- inventoryId: z.ZodOptional<z.ZodNever>;
143
- productId: z.ZodString;
144
- }, z.core.$strip>]>>>;
145
- }, z.core.$strip>;
146
- declare const IncrementInventoryResponse: z.ZodObject<{}, z.core.$strip>;
147
147
 
148
148
  export { DecrementInventoryRequest, DecrementInventoryResponse, GetInventoryVariantsRequest, GetInventoryVariantsResponse, IncrementInventoryRequest, IncrementInventoryResponse, QueryInventoryRequest, QueryInventoryResponse, UpdateInventoryVariantsRequest, UpdateInventoryVariantsResponse };
@@ -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 UpdateInventoryVariantsRequest = /* @__PURE__ */ z.object({
49
+ productId: /* @__PURE__ */ z.string().describe("Product ID."),
50
+ inventoryItem: /* @__PURE__ */ z.object({
51
+ _id: /* @__PURE__ */ z.string().describe("Inventory item ID.").optional().nullable(),
52
+ externalId: /* @__PURE__ */ z.string().describe("Deprecated: use productId.").optional().nullable(),
53
+ productId: /* @__PURE__ */ z.string().describe("Product ID.").optional().nullable(),
54
+ trackQuantity: /* @__PURE__ */ z.boolean().describe("Whether quantity is being tracked.").optional().nullable(),
55
+ variants: /* @__PURE__ */ z.array(
56
+ /* @__PURE__ */ z.object({
57
+ variantId: /* @__PURE__ */ z.string().describe("Variant ID.").optional(),
58
+ inStock: /* @__PURE__ */ z.boolean().describe("Whether the product is listed as in stock.").optional().nullable(),
59
+ quantity: /* @__PURE__ */ z.number().int().describe("Quantity currently left in inventory.").min(0).optional().nullable(),
60
+ availableForPreorder: /* @__PURE__ */ z.boolean().describe(
61
+ "Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level."
62
+ ).optional()
63
+ })
64
+ ).optional(),
65
+ lastUpdated: /* @__PURE__ */ z.date().describe("Last updated timestamp.").optional().nullable(),
66
+ numericId: /* @__PURE__ */ z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
67
+ "Inventory\u2019s unique numeric ID (assigned in ascending order).\nPrimarily for sorting and filtering when crawling all inventories."
68
+ ).optional(),
69
+ preorderInfo: /* @__PURE__ */ z.object({
70
+ enabled: /* @__PURE__ */ z.boolean().describe("Whether the item is available for preorder.").optional(),
71
+ message: /* @__PURE__ */ z.string().describe(
72
+ "A message the buyer will see when the item is out of stock and preorder is enabled."
73
+ ).min(1).max(250).optional().nullable(),
74
+ limit: /* @__PURE__ */ z.number().int().describe(
75
+ "Number of products that can be preordered after stock reaches zero."
76
+ ).min(0).max(1e5).optional().nullable()
77
+ }).describe("Preorder information.").optional()
78
+ }).describe("Inventory item to update.")
79
+ });
80
+ var UpdateInventoryVariantsResponse = /* @__PURE__ */ z.object({});
81
+ var DecrementInventoryRequest = /* @__PURE__ */ z.object({
82
+ decrementData: /* @__PURE__ */ z.array(
83
+ /* @__PURE__ */ z.intersection(
84
+ /* @__PURE__ */ z.object({
85
+ variantId: /* @__PURE__ */ z.string().describe("Variant ID.").regex(
86
+ /^[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}$/,
87
+ "Must be a valid GUID"
88
+ ).optional(),
89
+ decrementBy: /* @__PURE__ */ z.number().int().describe("Number to decrement inventory by.").min(1).optional(),
90
+ preorderRequest: /* @__PURE__ */ z.boolean().describe(
91
+ "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)."
92
+ ).optional()
93
+ }),
94
+ /* @__PURE__ */ z.xor([
95
+ /* @__PURE__ */ z.object({
96
+ inventoryId: /* @__PURE__ */ z.never().optional(),
97
+ externalId: /* @__PURE__ */ z.never().optional(),
98
+ productId: /* @__PURE__ */ z.never().optional()
99
+ }),
100
+ /* @__PURE__ */ z.object({
101
+ externalId: /* @__PURE__ */ z.never().optional(),
102
+ productId: /* @__PURE__ */ z.never().optional(),
103
+ inventoryId: /* @__PURE__ */ z.string().describe("Inventory item ID.").max(36)
104
+ }),
105
+ /* @__PURE__ */ z.object({
106
+ inventoryId: /* @__PURE__ */ z.never().optional(),
107
+ productId: /* @__PURE__ */ z.never().optional(),
108
+ externalId: /* @__PURE__ */ z.string().describe("Deprecated: use productId.").max(36)
109
+ }),
110
+ /* @__PURE__ */ z.object({
111
+ inventoryId: /* @__PURE__ */ z.never().optional(),
112
+ externalId: /* @__PURE__ */ z.never().optional(),
113
+ productId: /* @__PURE__ */ z.string().describe("Product ID.").max(36)
114
+ })
115
+ ])
116
+ )
117
+ ).min(1).max(300)
118
+ });
119
+ var DecrementInventoryResponse = /* @__PURE__ */ z.object({});
120
+ var IncrementInventoryRequest = /* @__PURE__ */ z.object({
121
+ incrementData: /* @__PURE__ */ z.array(
122
+ /* @__PURE__ */ z.intersection(
123
+ /* @__PURE__ */ z.object({
124
+ variantId: /* @__PURE__ */ z.string().describe("Variant ID.").regex(
125
+ /^[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}$/,
126
+ "Must be a valid GUID"
127
+ ).optional(),
128
+ incrementBy: /* @__PURE__ */ z.number().int().describe("Number to increment inventory by.").min(1).optional()
129
+ }),
130
+ /* @__PURE__ */ z.xor([
131
+ /* @__PURE__ */ z.object({
132
+ inventoryId: /* @__PURE__ */ z.never().optional(),
133
+ productId: /* @__PURE__ */ z.never().optional()
134
+ }),
135
+ /* @__PURE__ */ z.object({
136
+ productId: /* @__PURE__ */ z.never().optional(),
137
+ inventoryId: /* @__PURE__ */ z.string().describe("Inventory item ID.").max(36)
138
+ }),
139
+ /* @__PURE__ */ z.object({
140
+ inventoryId: /* @__PURE__ */ z.never().optional(),
141
+ productId: /* @__PURE__ */ z.string().describe("Product ID.").max(36)
142
+ })
143
+ ])
144
+ )
145
+ ).min(1).max(300)
146
+ });
147
+ var IncrementInventoryResponse = /* @__PURE__ */ z.object({});
148
+ var GetInventoryVariantsRequest = /* @__PURE__ */ z.object({
149
+ inventoryId: /* @__PURE__ */ z.string().describe("Inventory item ID."),
150
+ options: /* @__PURE__ */ z.intersection(
151
+ /* @__PURE__ */ z.object({
152
+ variantIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional()
153
+ }),
154
+ /* @__PURE__ */ z.xor([
155
+ /* @__PURE__ */ z.object({
156
+ inventoryId: /* @__PURE__ */ z.never().optional(),
157
+ externalId: /* @__PURE__ */ z.never().optional(),
158
+ productId: /* @__PURE__ */ z.never().optional()
57
159
  }),
58
- z.object({
59
- externalId: z.never().optional(),
60
- productId: z.never().optional(),
61
- inventoryId: z.string().describe("Inventory item ID.")
160
+ /* @__PURE__ */ z.object({
161
+ externalId: /* @__PURE__ */ z.never().optional(),
162
+ productId: /* @__PURE__ */ z.never().optional(),
163
+ inventoryId: /* @__PURE__ */ z.string().describe("Inventory item ID.")
62
164
  }),
63
- z.object({
64
- inventoryId: z.never().optional(),
65
- productId: z.never().optional(),
66
- externalId: z.string().describe("Deprecated (use productID instead).")
165
+ /* @__PURE__ */ z.object({
166
+ inventoryId: /* @__PURE__ */ z.never().optional(),
167
+ productId: /* @__PURE__ */ z.never().optional(),
168
+ externalId: /* @__PURE__ */ z.string().describe("Deprecated (use productID instead).")
67
169
  }),
68
- z.object({
69
- inventoryId: z.never().optional(),
70
- externalId: z.never().optional(),
71
- productId: z.string().describe("Product ID.")
170
+ /* @__PURE__ */ z.object({
171
+ inventoryId: /* @__PURE__ */ z.never().optional(),
172
+ externalId: /* @__PURE__ */ z.never().optional(),
173
+ productId: /* @__PURE__ */ z.string().describe("Product ID.")
72
174
  })
73
175
  ])
74
176
  ).optional()
75
177
  });
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(
178
+ var GetInventoryVariantsResponse = /* @__PURE__ */ z.object({
179
+ inventoryItem: /* @__PURE__ */ z.object({
180
+ _id: /* @__PURE__ */ z.string().describe("Inventory item ID.").optional().nullable(),
181
+ externalId: /* @__PURE__ */ z.string().describe("Deprecated: use productId.").optional().nullable(),
182
+ productId: /* @__PURE__ */ z.string().describe("Product ID.").optional().nullable(),
183
+ trackQuantity: /* @__PURE__ */ z.boolean().describe("Whether quantity is being tracked.").optional().nullable(),
184
+ variants: /* @__PURE__ */ z.array(
185
+ /* @__PURE__ */ z.object({
186
+ variantId: /* @__PURE__ */ z.string().describe("Variant ID.").optional(),
187
+ inStock: /* @__PURE__ */ z.boolean().describe("Whether the product is listed as in stock.").optional().nullable(),
188
+ quantity: /* @__PURE__ */ z.number().int().describe("Quantity currently left in inventory.").min(0).optional().nullable(),
189
+ availableForPreorder: /* @__PURE__ */ z.boolean().describe(
88
190
  "Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level."
89
191
  ).optional()
90
192
  })
91
193
  ).optional(),
92
- lastUpdated: z.date().describe("Last updated timestamp.").optional().nullable(),
93
- numericId: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
194
+ lastUpdated: /* @__PURE__ */ z.date().describe("Last updated timestamp.").optional().nullable(),
195
+ numericId: /* @__PURE__ */ z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
94
196
  "Inventory\u2019s unique numeric ID (assigned in ascending order).\nPrimarily for sorting and filtering when crawling all inventories."
95
197
  ).optional(),
96
- preorderInfo: z.object({
97
- enabled: z.boolean().describe("Whether the item is available for preorder.").optional(),
98
- message: z.string().describe(
198
+ preorderInfo: /* @__PURE__ */ z.object({
199
+ enabled: /* @__PURE__ */ z.boolean().describe("Whether the item is available for preorder.").optional(),
200
+ message: /* @__PURE__ */ z.string().describe(
99
201
  "A message the buyer will see when the item is out of stock and preorder is enabled."
100
202
  ).min(1).max(250).optional().nullable(),
101
- limit: z.number().int().describe(
203
+ limit: /* @__PURE__ */ z.number().int().describe(
102
204
  "Number of products that can be preordered after stock reaches zero."
103
205
  ).min(0).max(1e5).optional().nullable()
104
206
  }).describe("Preorder information.").optional()
105
207
  }).describe("Inventory item.").optional()
106
208
  });
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(
209
+ var QueryInventoryRequest = /* @__PURE__ */ z.object({
210
+ options: /* @__PURE__ */ z.object({
211
+ query: /* @__PURE__ */ z.object({
212
+ paging: /* @__PURE__ */ z.object({
213
+ limit: /* @__PURE__ */ z.number().int().describe("Amount of items to load per page").min(0).max(100).optional().nullable(),
214
+ offset: /* @__PURE__ */ z.number().int().describe(
113
215
  "Number of items to skip in the display (relevant for all pages after the first)"
114
216
  ).min(0).optional().nullable()
115
217
  }).optional(),
116
- filter: z.string().describe("Filter string").optional().nullable(),
117
- sort: z.string().describe("Sort string").optional().nullable()
218
+ filter: /* @__PURE__ */ z.string().describe("Filter string").optional().nullable(),
219
+ sort: /* @__PURE__ */ z.string().describe("Sort string").optional().nullable()
118
220
  }).optional()
119
221
  }).optional()
120
222
  });
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(
223
+ var QueryInventoryResponse = /* @__PURE__ */ z.object({
224
+ inventoryItems: /* @__PURE__ */ z.array(
225
+ /* @__PURE__ */ z.object({
226
+ _id: /* @__PURE__ */ z.string().describe("Inventory item ID.").optional().nullable(),
227
+ externalId: /* @__PURE__ */ z.string().describe("Deprecated: use productId.").optional().nullable(),
228
+ productId: /* @__PURE__ */ z.string().describe("Product ID.").optional().nullable(),
229
+ trackQuantity: /* @__PURE__ */ z.boolean().describe("Whether quantity is being tracked.").optional().nullable(),
230
+ variants: /* @__PURE__ */ z.array(
231
+ /* @__PURE__ */ z.object({
232
+ variantId: /* @__PURE__ */ z.string().describe("Variant ID.").optional(),
233
+ inStock: /* @__PURE__ */ z.boolean().describe("Whether the product is listed as in stock.").optional().nullable(),
234
+ quantity: /* @__PURE__ */ z.number().int().describe("Quantity currently left in inventory.").min(0).optional().nullable(),
235
+ availableForPreorder: /* @__PURE__ */ z.boolean().describe(
134
236
  "Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level."
135
237
  ).optional()
136
238
  })
137
239
  ).optional(),
138
- lastUpdated: z.date().describe("Last updated timestamp.").optional().nullable(),
139
- numericId: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
240
+ lastUpdated: /* @__PURE__ */ z.date().describe("Last updated timestamp.").optional().nullable(),
241
+ numericId: /* @__PURE__ */ z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
140
242
  "Inventory\u2019s unique numeric ID (assigned in ascending order).\nPrimarily for sorting and filtering when crawling all inventories."
141
243
  ).optional(),
142
- preorderInfo: z.object({
143
- enabled: z.boolean().describe("Whether the item is available for preorder.").optional(),
144
- message: z.string().describe(
244
+ preorderInfo: /* @__PURE__ */ z.object({
245
+ enabled: /* @__PURE__ */ z.boolean().describe("Whether the item is available for preorder.").optional(),
246
+ message: /* @__PURE__ */ z.string().describe(
145
247
  "A message the buyer will see when the item is out of stock and preorder is enabled."
146
248
  ).min(1).max(250).optional().nullable(),
147
- limit: z.number().int().describe(
249
+ limit: /* @__PURE__ */ z.number().int().describe(
148
250
  "Number of products that can be preordered after stock reaches zero."
149
251
  ).min(0).max(1e5).optional().nullable()
150
252
  }).describe("Preorder information.").optional()
151
253
  })
152
254
  ).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(
255
+ metadata: /* @__PURE__ */ z.object({
256
+ items: /* @__PURE__ */ z.number().int().describe("Amount of items to load per page").optional(),
257
+ offset: /* @__PURE__ */ z.number().int().describe(
156
258
  "Number of items to skip in the display (relevant for all pages after the first)"
157
259
  ).optional()
158
260
  }).describe("Display metadata.").optional(),
159
- totalResults: z.number().int().describe("Number of total results.").optional()
160
- });
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(
174
- "Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level."
175
- ).optional()
176
- })
177
- ).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
- "Inventory\u2019s unique numeric ID (assigned in ascending order).\nPrimarily for sorting and filtering when crawling all inventories."
181
- ).optional(),
182
- preorderInfo: z.object({
183
- enabled: z.boolean().describe("Whether the item is available for preorder.").optional(),
184
- message: z.string().describe(
185
- "A message the buyer will see when the item is out of stock and preorder is enabled."
186
- ).min(1).max(250).optional().nullable(),
187
- limit: z.number().int().describe(
188
- "Number of products that can be preordered after stock reaches zero."
189
- ).min(0).max(1e5).optional().nullable()
190
- }).describe("Preorder information.").optional()
191
- }).describe("Inventory item to update.")
192
- });
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(
199
- /^[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
- "Must be a valid GUID"
201
- ).optional(),
202
- decrementBy: z.number().int().describe("Number to decrement inventory by.").min(1).optional(),
203
- preorderRequest: z.boolean().describe(
204
- "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
- ).optional()
206
- }),
207
- z.xor([
208
- z.object({
209
- inventoryId: z.never().optional(),
210
- externalId: z.never().optional(),
211
- productId: z.never().optional()
212
- }),
213
- z.object({
214
- externalId: z.never().optional(),
215
- productId: z.never().optional(),
216
- inventoryId: z.string().describe("Inventory item ID.").max(36)
217
- }),
218
- z.object({
219
- inventoryId: z.never().optional(),
220
- productId: z.never().optional(),
221
- externalId: z.string().describe("Deprecated: use productId.").max(36)
222
- }),
223
- z.object({
224
- inventoryId: z.never().optional(),
225
- externalId: z.never().optional(),
226
- productId: z.string().describe("Product ID.").max(36)
227
- })
228
- ])
229
- )
230
- ).min(1).max(300)
231
- });
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(
238
- /^[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
- "Must be a valid GUID"
240
- ).optional(),
241
- incrementBy: z.number().int().describe("Number to increment inventory by.").min(1).optional()
242
- }),
243
- z.xor([
244
- z.object({
245
- inventoryId: z.never().optional(),
246
- productId: z.never().optional()
247
- }),
248
- z.object({
249
- productId: z.never().optional(),
250
- inventoryId: z.string().describe("Inventory item ID.").max(36)
251
- }),
252
- z.object({
253
- inventoryId: z.never().optional(),
254
- productId: z.string().describe("Product ID.").max(36)
255
- })
256
- ])
257
- )
258
- ).min(1).max(300)
261
+ totalResults: /* @__PURE__ */ z.number().int().describe("Number of total results.").optional()
259
262
  });
260
- var IncrementInventoryResponse = 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,S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AAA,UACP,aAAe,QAAM,EAAE,SAAS;AAAA,UAChC,YAAc,QAAM,EAAE,SAAS;AAAA,UAC/B,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;AAC9C,IAAM,4BAA8B,SAAO;AAAA,EAChD,eACG;AAAA,IACG;AAAA,MACE,SAAO;AAAA,QACP,WACG,SAAO,EACP,SAAS,aAAa,EACtB;AAAA,UACC;AAAA,UACA;AAAA,QACF,EACC,SAAS;AAAA,QACZ,aACG,SAAO,EACP,IAAI,EACJ,SAAS,mCAAmC,EAC5C,IAAI,CAAC,EACL,SAAS;AAAA,MACd,CAAC;AAAA,MACC,MAAI;AAAA,QACF,SAAO;AAAA,UACP,aAAe,QAAM,EAAE,SAAS;AAAA,UAChC,WAAa,QAAM,EAAE,SAAS;AAAA,QAChC,CAAC;AAAA,QACC,SAAO;AAAA,UACP,WAAa,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 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({});\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});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,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