@wix/auto_sdk_stores_inventory 1.0.73 → 1.0.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +21 -21
  2. package/build/cjs/index.js +175 -175
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +197 -197
  5. package/build/cjs/index.typings.js +154 -154
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +178 -178
  8. package/build/cjs/meta.js +140 -140
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +63 -63
  11. package/build/cjs/schemas.js +172 -170
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +21 -21
  14. package/build/es/index.mjs +175 -175
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +197 -197
  17. package/build/es/index.typings.mjs +154 -154
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +178 -178
  20. package/build/es/meta.mjs +140 -140
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +63 -63
  23. package/build/es/schemas.mjs +172 -170
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +21 -21
  26. package/build/internal/cjs/index.typings.d.ts +247 -230
  27. package/build/internal/cjs/meta.d.ts +195 -178
  28. package/build/internal/cjs/schemas.d.ts +63 -63
  29. package/build/internal/es/index.d.mts +21 -21
  30. package/build/internal/es/index.typings.d.mts +247 -230
  31. package/build/internal/es/meta.d.mts +195 -178
  32. package/build/internal/es/schemas.d.mts +63 -63
  33. package/package.json +4 -4
  34. package/build/internal/cjs/index.js +0 -560
  35. package/build/internal/cjs/index.js.map +0 -1
  36. package/build/internal/cjs/index.typings.js +0 -467
  37. package/build/internal/cjs/index.typings.js.map +0 -1
  38. package/build/internal/cjs/meta.js +0 -427
  39. package/build/internal/cjs/meta.js.map +0 -1
  40. package/build/internal/cjs/schemas.js +0 -274
  41. package/build/internal/cjs/schemas.js.map +0 -1
  42. package/build/internal/es/index.mjs +0 -528
  43. package/build/internal/es/index.mjs.map +0 -1
  44. package/build/internal/es/index.typings.mjs +0 -437
  45. package/build/internal/es/index.typings.mjs.map +0 -1
  46. package/build/internal/es/meta.mjs +0 -394
  47. package/build/internal/es/meta.mjs.map +0 -1
  48. package/build/internal/es/schemas.mjs +0 -228
  49. package/build/internal/es/schemas.mjs.map +0 -1
@@ -1,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 };
@@ -1,218 +1,220 @@
1
1
  // src/stores-v2-inventory-inventory.schemas.ts
2
2
  import * as z from "zod";
3
- var GetInventoryVariantsRequest = z.object({
4
- inventoryId: z.string().describe("Inventory item ID."),
5
- options: z.intersection(
6
- z.object({ variantIds: z.array(z.string()).optional() }),
7
- z.xor([
8
- z.object({
9
- inventoryId: z.never().optional(),
10
- externalId: z.never().optional(),
11
- productId: z.never().optional()
3
+ var UpdateInventoryVariantsRequest = /* @__PURE__ */ z.object({
4
+ productId: /* @__PURE__ */ z.string().describe("Product ID."),
5
+ inventoryItem: /* @__PURE__ */ z.object({
6
+ _id: /* @__PURE__ */ z.string().describe("Inventory item ID.").optional().nullable(),
7
+ externalId: /* @__PURE__ */ z.string().describe("Deprecated: use productId.").optional().nullable(),
8
+ productId: /* @__PURE__ */ z.string().describe("Product ID.").optional().nullable(),
9
+ trackQuantity: /* @__PURE__ */ z.boolean().describe("Whether quantity is being tracked.").optional().nullable(),
10
+ variants: /* @__PURE__ */ z.array(
11
+ /* @__PURE__ */ z.object({
12
+ variantId: /* @__PURE__ */ z.string().describe("Variant ID.").optional(),
13
+ inStock: /* @__PURE__ */ z.boolean().describe("Whether the product is listed as in stock.").optional().nullable(),
14
+ quantity: /* @__PURE__ */ z.number().int().describe("Quantity currently left in inventory.").min(0).optional().nullable(),
15
+ availableForPreorder: /* @__PURE__ */ z.boolean().describe(
16
+ "Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level."
17
+ ).optional()
18
+ })
19
+ ).optional(),
20
+ lastUpdated: /* @__PURE__ */ z.date().describe("Last updated timestamp.").optional().nullable(),
21
+ numericId: /* @__PURE__ */ z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
22
+ "Inventory\u2019s unique numeric ID (assigned in ascending order).\nPrimarily for sorting and filtering when crawling all inventories."
23
+ ).optional(),
24
+ preorderInfo: /* @__PURE__ */ z.object({
25
+ enabled: /* @__PURE__ */ z.boolean().describe("Whether the item is available for preorder.").optional(),
26
+ message: /* @__PURE__ */ z.string().describe(
27
+ "A message the buyer will see when the item is out of stock and preorder is enabled."
28
+ ).min(1).max(250).optional().nullable(),
29
+ limit: /* @__PURE__ */ z.number().int().describe(
30
+ "Number of products that can be preordered after stock reaches zero."
31
+ ).min(0).max(1e5).optional().nullable()
32
+ }).describe("Preorder information.").optional()
33
+ }).describe("Inventory item to update.")
34
+ });
35
+ var UpdateInventoryVariantsResponse = /* @__PURE__ */ z.object({});
36
+ var DecrementInventoryRequest = /* @__PURE__ */ z.object({
37
+ decrementData: /* @__PURE__ */ z.array(
38
+ /* @__PURE__ */ z.intersection(
39
+ /* @__PURE__ */ z.object({
40
+ variantId: /* @__PURE__ */ z.string().describe("Variant ID.").regex(
41
+ /^[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}$/,
42
+ "Must be a valid GUID"
43
+ ).optional(),
44
+ decrementBy: /* @__PURE__ */ z.number().int().describe("Number to decrement inventory by.").min(1).optional(),
45
+ preorderRequest: /* @__PURE__ */ z.boolean().describe(
46
+ "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)."
47
+ ).optional()
48
+ }),
49
+ /* @__PURE__ */ z.xor([
50
+ /* @__PURE__ */ z.object({
51
+ inventoryId: /* @__PURE__ */ z.never().optional(),
52
+ externalId: /* @__PURE__ */ z.never().optional(),
53
+ productId: /* @__PURE__ */ z.never().optional()
54
+ }),
55
+ /* @__PURE__ */ z.object({
56
+ externalId: /* @__PURE__ */ z.never().optional(),
57
+ productId: /* @__PURE__ */ z.never().optional(),
58
+ inventoryId: /* @__PURE__ */ z.string().describe("Inventory item ID.").max(36)
59
+ }),
60
+ /* @__PURE__ */ z.object({
61
+ inventoryId: /* @__PURE__ */ z.never().optional(),
62
+ productId: /* @__PURE__ */ z.never().optional(),
63
+ externalId: /* @__PURE__ */ z.string().describe("Deprecated: use productId.").max(36)
64
+ }),
65
+ /* @__PURE__ */ z.object({
66
+ inventoryId: /* @__PURE__ */ z.never().optional(),
67
+ externalId: /* @__PURE__ */ z.never().optional(),
68
+ productId: /* @__PURE__ */ z.string().describe("Product ID.").max(36)
69
+ })
70
+ ])
71
+ )
72
+ ).min(1).max(300)
73
+ });
74
+ var DecrementInventoryResponse = /* @__PURE__ */ z.object({});
75
+ var IncrementInventoryRequest = /* @__PURE__ */ z.object({
76
+ incrementData: /* @__PURE__ */ z.array(
77
+ /* @__PURE__ */ z.intersection(
78
+ /* @__PURE__ */ z.object({
79
+ variantId: /* @__PURE__ */ z.string().describe("Variant ID.").regex(
80
+ /^[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}$/,
81
+ "Must be a valid GUID"
82
+ ).optional(),
83
+ incrementBy: /* @__PURE__ */ z.number().int().describe("Number to increment inventory by.").min(1).optional()
84
+ }),
85
+ /* @__PURE__ */ z.xor([
86
+ /* @__PURE__ */ z.object({
87
+ inventoryId: /* @__PURE__ */ z.never().optional(),
88
+ productId: /* @__PURE__ */ z.never().optional()
89
+ }),
90
+ /* @__PURE__ */ z.object({
91
+ productId: /* @__PURE__ */ z.never().optional(),
92
+ inventoryId: /* @__PURE__ */ z.string().describe("Inventory item ID.").max(36)
93
+ }),
94
+ /* @__PURE__ */ z.object({
95
+ inventoryId: /* @__PURE__ */ z.never().optional(),
96
+ productId: /* @__PURE__ */ z.string().describe("Product ID.").max(36)
97
+ })
98
+ ])
99
+ )
100
+ ).min(1).max(300)
101
+ });
102
+ var IncrementInventoryResponse = /* @__PURE__ */ z.object({});
103
+ var GetInventoryVariantsRequest = /* @__PURE__ */ z.object({
104
+ inventoryId: /* @__PURE__ */ z.string().describe("Inventory item ID."),
105
+ options: /* @__PURE__ */ z.intersection(
106
+ /* @__PURE__ */ z.object({
107
+ variantIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional()
108
+ }),
109
+ /* @__PURE__ */ z.xor([
110
+ /* @__PURE__ */ z.object({
111
+ inventoryId: /* @__PURE__ */ z.never().optional(),
112
+ externalId: /* @__PURE__ */ z.never().optional(),
113
+ productId: /* @__PURE__ */ z.never().optional()
12
114
  }),
13
- z.object({
14
- externalId: z.never().optional(),
15
- productId: z.never().optional(),
16
- inventoryId: z.string().describe("Inventory item ID.")
115
+ /* @__PURE__ */ z.object({
116
+ externalId: /* @__PURE__ */ z.never().optional(),
117
+ productId: /* @__PURE__ */ z.never().optional(),
118
+ inventoryId: /* @__PURE__ */ z.string().describe("Inventory item ID.")
17
119
  }),
18
- z.object({
19
- inventoryId: z.never().optional(),
20
- productId: z.never().optional(),
21
- externalId: z.string().describe("Deprecated (use productID instead).")
120
+ /* @__PURE__ */ z.object({
121
+ inventoryId: /* @__PURE__ */ z.never().optional(),
122
+ productId: /* @__PURE__ */ z.never().optional(),
123
+ externalId: /* @__PURE__ */ z.string().describe("Deprecated (use productID instead).")
22
124
  }),
23
- z.object({
24
- inventoryId: z.never().optional(),
25
- externalId: z.never().optional(),
26
- productId: z.string().describe("Product ID.")
125
+ /* @__PURE__ */ z.object({
126
+ inventoryId: /* @__PURE__ */ z.never().optional(),
127
+ externalId: /* @__PURE__ */ z.never().optional(),
128
+ productId: /* @__PURE__ */ z.string().describe("Product ID.")
27
129
  })
28
130
  ])
29
131
  ).optional()
30
132
  });
31
- var GetInventoryVariantsResponse = z.object({
32
- inventoryItem: z.object({
33
- _id: z.string().describe("Inventory item ID.").optional().nullable(),
34
- externalId: z.string().describe("Deprecated: use productId.").optional().nullable(),
35
- productId: z.string().describe("Product ID.").optional().nullable(),
36
- trackQuantity: z.boolean().describe("Whether quantity is being tracked.").optional().nullable(),
37
- variants: z.array(
38
- z.object({
39
- variantId: z.string().describe("Variant ID.").optional(),
40
- inStock: z.boolean().describe("Whether the product is listed as in stock.").optional().nullable(),
41
- quantity: z.number().int().describe("Quantity currently left in inventory.").min(0).optional().nullable(),
42
- availableForPreorder: z.boolean().describe(
133
+ var GetInventoryVariantsResponse = /* @__PURE__ */ z.object({
134
+ inventoryItem: /* @__PURE__ */ z.object({
135
+ _id: /* @__PURE__ */ z.string().describe("Inventory item ID.").optional().nullable(),
136
+ externalId: /* @__PURE__ */ z.string().describe("Deprecated: use productId.").optional().nullable(),
137
+ productId: /* @__PURE__ */ z.string().describe("Product ID.").optional().nullable(),
138
+ trackQuantity: /* @__PURE__ */ z.boolean().describe("Whether quantity is being tracked.").optional().nullable(),
139
+ variants: /* @__PURE__ */ z.array(
140
+ /* @__PURE__ */ z.object({
141
+ variantId: /* @__PURE__ */ z.string().describe("Variant ID.").optional(),
142
+ inStock: /* @__PURE__ */ z.boolean().describe("Whether the product is listed as in stock.").optional().nullable(),
143
+ quantity: /* @__PURE__ */ z.number().int().describe("Quantity currently left in inventory.").min(0).optional().nullable(),
144
+ availableForPreorder: /* @__PURE__ */ z.boolean().describe(
43
145
  "Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level."
44
146
  ).optional()
45
147
  })
46
148
  ).optional(),
47
- lastUpdated: z.date().describe("Last updated timestamp.").optional().nullable(),
48
- numericId: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
149
+ lastUpdated: /* @__PURE__ */ z.date().describe("Last updated timestamp.").optional().nullable(),
150
+ numericId: /* @__PURE__ */ z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
49
151
  "Inventory\u2019s unique numeric ID (assigned in ascending order).\nPrimarily for sorting and filtering when crawling all inventories."
50
152
  ).optional(),
51
- preorderInfo: z.object({
52
- enabled: z.boolean().describe("Whether the item is available for preorder.").optional(),
53
- message: z.string().describe(
153
+ preorderInfo: /* @__PURE__ */ z.object({
154
+ enabled: /* @__PURE__ */ z.boolean().describe("Whether the item is available for preorder.").optional(),
155
+ message: /* @__PURE__ */ z.string().describe(
54
156
  "A message the buyer will see when the item is out of stock and preorder is enabled."
55
157
  ).min(1).max(250).optional().nullable(),
56
- limit: z.number().int().describe(
158
+ limit: /* @__PURE__ */ z.number().int().describe(
57
159
  "Number of products that can be preordered after stock reaches zero."
58
160
  ).min(0).max(1e5).optional().nullable()
59
161
  }).describe("Preorder information.").optional()
60
162
  }).describe("Inventory item.").optional()
61
163
  });
62
- var QueryInventoryRequest = z.object({
63
- options: z.object({
64
- query: z.object({
65
- paging: z.object({
66
- limit: z.number().int().describe("Amount of items to load per page").min(0).max(100).optional().nullable(),
67
- offset: z.number().int().describe(
164
+ var QueryInventoryRequest = /* @__PURE__ */ z.object({
165
+ options: /* @__PURE__ */ z.object({
166
+ query: /* @__PURE__ */ z.object({
167
+ paging: /* @__PURE__ */ z.object({
168
+ limit: /* @__PURE__ */ z.number().int().describe("Amount of items to load per page").min(0).max(100).optional().nullable(),
169
+ offset: /* @__PURE__ */ z.number().int().describe(
68
170
  "Number of items to skip in the display (relevant for all pages after the first)"
69
171
  ).min(0).optional().nullable()
70
172
  }).optional(),
71
- filter: z.string().describe("Filter string").optional().nullable(),
72
- sort: z.string().describe("Sort string").optional().nullable()
173
+ filter: /* @__PURE__ */ z.string().describe("Filter string").optional().nullable(),
174
+ sort: /* @__PURE__ */ z.string().describe("Sort string").optional().nullable()
73
175
  }).optional()
74
176
  }).optional()
75
177
  });
76
- var QueryInventoryResponse = z.object({
77
- inventoryItems: z.array(
78
- z.object({
79
- _id: z.string().describe("Inventory item ID.").optional().nullable(),
80
- externalId: z.string().describe("Deprecated: use productId.").optional().nullable(),
81
- productId: z.string().describe("Product ID.").optional().nullable(),
82
- trackQuantity: z.boolean().describe("Whether quantity is being tracked.").optional().nullable(),
83
- variants: z.array(
84
- z.object({
85
- variantId: z.string().describe("Variant ID.").optional(),
86
- inStock: z.boolean().describe("Whether the product is listed as in stock.").optional().nullable(),
87
- quantity: z.number().int().describe("Quantity currently left in inventory.").min(0).optional().nullable(),
88
- availableForPreorder: z.boolean().describe(
178
+ var QueryInventoryResponse = /* @__PURE__ */ z.object({
179
+ inventoryItems: /* @__PURE__ */ z.array(
180
+ /* @__PURE__ */ z.object({
181
+ _id: /* @__PURE__ */ z.string().describe("Inventory item ID.").optional().nullable(),
182
+ externalId: /* @__PURE__ */ z.string().describe("Deprecated: use productId.").optional().nullable(),
183
+ productId: /* @__PURE__ */ z.string().describe("Product ID.").optional().nullable(),
184
+ trackQuantity: /* @__PURE__ */ z.boolean().describe("Whether quantity is being tracked.").optional().nullable(),
185
+ variants: /* @__PURE__ */ z.array(
186
+ /* @__PURE__ */ z.object({
187
+ variantId: /* @__PURE__ */ z.string().describe("Variant ID.").optional(),
188
+ inStock: /* @__PURE__ */ z.boolean().describe("Whether the product is listed as in stock.").optional().nullable(),
189
+ quantity: /* @__PURE__ */ z.number().int().describe("Quantity currently left in inventory.").min(0).optional().nullable(),
190
+ availableForPreorder: /* @__PURE__ */ z.boolean().describe(
89
191
  "Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level."
90
192
  ).optional()
91
193
  })
92
194
  ).optional(),
93
- lastUpdated: z.date().describe("Last updated timestamp.").optional().nullable(),
94
- numericId: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
195
+ lastUpdated: /* @__PURE__ */ z.date().describe("Last updated timestamp.").optional().nullable(),
196
+ numericId: /* @__PURE__ */ z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
95
197
  "Inventory\u2019s unique numeric ID (assigned in ascending order).\nPrimarily for sorting and filtering when crawling all inventories."
96
198
  ).optional(),
97
- preorderInfo: z.object({
98
- enabled: z.boolean().describe("Whether the item is available for preorder.").optional(),
99
- message: z.string().describe(
199
+ preorderInfo: /* @__PURE__ */ z.object({
200
+ enabled: /* @__PURE__ */ z.boolean().describe("Whether the item is available for preorder.").optional(),
201
+ message: /* @__PURE__ */ z.string().describe(
100
202
  "A message the buyer will see when the item is out of stock and preorder is enabled."
101
203
  ).min(1).max(250).optional().nullable(),
102
- limit: z.number().int().describe(
204
+ limit: /* @__PURE__ */ z.number().int().describe(
103
205
  "Number of products that can be preordered after stock reaches zero."
104
206
  ).min(0).max(1e5).optional().nullable()
105
207
  }).describe("Preorder information.").optional()
106
208
  })
107
209
  ).optional(),
108
- metadata: z.object({
109
- items: z.number().int().describe("Amount of items to load per page").optional(),
110
- offset: z.number().int().describe(
210
+ metadata: /* @__PURE__ */ z.object({
211
+ items: /* @__PURE__ */ z.number().int().describe("Amount of items to load per page").optional(),
212
+ offset: /* @__PURE__ */ z.number().int().describe(
111
213
  "Number of items to skip in the display (relevant for all pages after the first)"
112
214
  ).optional()
113
215
  }).describe("Display metadata.").optional(),
114
- totalResults: z.number().int().describe("Number of total results.").optional()
115
- });
116
- var UpdateInventoryVariantsRequest = z.object({
117
- productId: z.string().describe("Product ID."),
118
- inventoryItem: z.object({
119
- _id: z.string().describe("Inventory item ID.").optional().nullable(),
120
- externalId: z.string().describe("Deprecated: use productId.").optional().nullable(),
121
- productId: z.string().describe("Product ID.").optional().nullable(),
122
- trackQuantity: z.boolean().describe("Whether quantity is being tracked.").optional().nullable(),
123
- variants: z.array(
124
- z.object({
125
- variantId: z.string().describe("Variant ID.").optional(),
126
- inStock: z.boolean().describe("Whether the product is listed as in stock.").optional().nullable(),
127
- quantity: z.number().int().describe("Quantity currently left in inventory.").min(0).optional().nullable(),
128
- availableForPreorder: z.boolean().describe(
129
- "Whether the variant is available for preorder. When `true`, the variant is out of stock and preorder is enabled on inventory level."
130
- ).optional()
131
- })
132
- ).optional(),
133
- lastUpdated: z.date().describe("Last updated timestamp.").optional().nullable(),
134
- numericId: z.string().regex(/^\d+$/, "Must be a valid UInt64 string").describe(
135
- "Inventory\u2019s unique numeric ID (assigned in ascending order).\nPrimarily for sorting and filtering when crawling all inventories."
136
- ).optional(),
137
- preorderInfo: z.object({
138
- enabled: z.boolean().describe("Whether the item is available for preorder.").optional(),
139
- message: z.string().describe(
140
- "A message the buyer will see when the item is out of stock and preorder is enabled."
141
- ).min(1).max(250).optional().nullable(),
142
- limit: z.number().int().describe(
143
- "Number of products that can be preordered after stock reaches zero."
144
- ).min(0).max(1e5).optional().nullable()
145
- }).describe("Preorder information.").optional()
146
- }).describe("Inventory item to update.")
147
- });
148
- var UpdateInventoryVariantsResponse = z.object({});
149
- var DecrementInventoryRequest = z.object({
150
- decrementData: z.array(
151
- z.intersection(
152
- z.object({
153
- variantId: z.string().describe("Variant ID.").regex(
154
- /^[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}$/,
155
- "Must be a valid GUID"
156
- ).optional(),
157
- decrementBy: z.number().int().describe("Number to decrement inventory by.").min(1).optional(),
158
- preorderRequest: z.boolean().describe(
159
- "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)."
160
- ).optional()
161
- }),
162
- z.xor([
163
- z.object({
164
- inventoryId: z.never().optional(),
165
- externalId: z.never().optional(),
166
- productId: z.never().optional()
167
- }),
168
- z.object({
169
- externalId: z.never().optional(),
170
- productId: z.never().optional(),
171
- inventoryId: z.string().describe("Inventory item ID.").max(36)
172
- }),
173
- z.object({
174
- inventoryId: z.never().optional(),
175
- productId: z.never().optional(),
176
- externalId: z.string().describe("Deprecated: use productId.").max(36)
177
- }),
178
- z.object({
179
- inventoryId: z.never().optional(),
180
- externalId: z.never().optional(),
181
- productId: z.string().describe("Product ID.").max(36)
182
- })
183
- ])
184
- )
185
- ).min(1).max(300)
186
- });
187
- var DecrementInventoryResponse = z.object({});
188
- var IncrementInventoryRequest = z.object({
189
- incrementData: z.array(
190
- z.intersection(
191
- z.object({
192
- variantId: z.string().describe("Variant ID.").regex(
193
- /^[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}$/,
194
- "Must be a valid GUID"
195
- ).optional(),
196
- incrementBy: z.number().int().describe("Number to increment inventory by.").min(1).optional()
197
- }),
198
- z.xor([
199
- z.object({
200
- inventoryId: z.never().optional(),
201
- productId: z.never().optional()
202
- }),
203
- z.object({
204
- productId: z.never().optional(),
205
- inventoryId: z.string().describe("Inventory item ID.").max(36)
206
- }),
207
- z.object({
208
- inventoryId: z.never().optional(),
209
- productId: z.string().describe("Product ID.").max(36)
210
- })
211
- ])
212
- )
213
- ).min(1).max(300)
216
+ totalResults: /* @__PURE__ */ z.number().int().describe("Number of total results.").optional()
214
217
  });
215
- var IncrementInventoryResponse = z.object({});
216
218
  export {
217
219
  DecrementInventoryRequest,
218
220
  DecrementInventoryResponse,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/stores-v2-inventory-inventory.schemas.ts"],"sourcesContent":["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,YAAY,OAAO;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;A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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":["../../src/stores-v2-inventory-inventory.schemas.ts"],"sourcesContent":["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,YAAY,OAAO;AAEZ,IAAM,iCAA+C,gBAAE,SAAO;AAAA,EACnE,WAAyB,gBAAE,SAAO,EAAE,SAAS,aAAa;AAAA,EAC1D,eAA6B,gBAC1B,SAAO;AAAA,IACN,KAAmB,gBAChB,SAAO,EACP,SAAS,oBAAoB,EAC7B,SAAS,EACT,SAAS;AAAA,IACZ,YAA0B,gBACvB,SAAO,EACP,SAAS,4BAA4B,EACrC,SAAS,EACT,SAAS;AAAA,IACZ,WAAyB,gBACtB,SAAO,EACP,SAAS,aAAa,EACtB,SAAS,EACT,SAAS;AAAA,IACZ,eAA6B,gBAC1B,UAAQ,EACR,SAAS,oCAAoC,E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