ce-storefront 0.15.26 → 0.15.28
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.
- package/README.md +3 -3
- package/docs/sdks/cestorefront/README.md +1 -1
- package/esm/funcs/catalogGetProductDetail.js +5 -1
- package/esm/funcs/catalogGetProductDetail.js.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.js +5 -1
- package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
- package/esm/funcs/catalogListProductVariants.js +5 -1
- package/esm/funcs/catalogListProductVariants.js.map +1 -1
- package/esm/funcs/catalogListProducts.js +1 -0
- package/esm/funcs/catalogListProducts.js.map +1 -1
- package/esm/funcs/catalogListSkus.js +1 -0
- package/esm/funcs/catalogListSkus.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/components/index.d.ts +2 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +2 -0
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/item.d.ts +3 -0
- package/esm/models/components/item.d.ts.map +1 -1
- package/esm/models/components/item.js +3 -0
- package/esm/models/components/item.js.map +1 -1
- package/esm/models/components/lotbatchdetail.d.ts +41 -0
- package/esm/models/components/lotbatchdetail.d.ts.map +1 -0
- package/esm/models/components/lotbatchdetail.js +55 -0
- package/esm/models/components/lotbatchdetail.js.map +1 -0
- package/esm/models/components/partialcollectanddelivery.d.ts +122 -0
- package/esm/models/components/partialcollectanddelivery.d.ts.map +1 -0
- package/esm/models/components/partialcollectanddelivery.js +159 -0
- package/esm/models/components/partialcollectanddelivery.js.map +1 -0
- package/esm/models/components/product.d.ts +3 -0
- package/esm/models/components/product.d.ts.map +1 -1
- package/esm/models/components/product.js +3 -0
- package/esm/models/components/product.js.map +1 -1
- package/esm/models/components/productbundleitem.d.ts +3 -0
- package/esm/models/components/productbundleitem.d.ts.map +1 -1
- package/esm/models/components/productbundleitem.js +3 -0
- package/esm/models/components/productbundleitem.js.map +1 -1
- package/esm/models/components/productdetail.d.ts +3 -0
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +3 -0
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/variant.d.ts +3 -0
- package/esm/models/components/variant.d.ts.map +1 -1
- package/esm/models/components/variant.js +3 -0
- package/esm/models/components/variant.js.map +1 -1
- package/esm/models/components/variantdetail.d.ts +3 -0
- package/esm/models/components/variantdetail.d.ts.map +1 -1
- package/esm/models/components/variantdetail.js +3 -0
- package/esm/models/components/variantdetail.js.map +1 -1
- package/esm/models/errors/index.d.ts +1 -0
- package/esm/models/errors/index.d.ts.map +1 -1
- package/esm/models/errors/index.js +1 -0
- package/esm/models/errors/index.js.map +1 -1
- package/esm/models/operations/getproductdetail.d.ts +5 -0
- package/esm/models/operations/getproductdetail.d.ts.map +1 -1
- package/esm/models/operations/getproductdetail.js +2 -0
- package/esm/models/operations/getproductdetail.js.map +1 -1
- package/esm/models/operations/getvariantdetail.d.ts +5 -0
- package/esm/models/operations/getvariantdetail.d.ts.map +1 -1
- package/esm/models/operations/getvariantdetail.js +2 -0
- package/esm/models/operations/getvariantdetail.js.map +1 -1
- package/esm/models/operations/listproducts.d.ts +5 -0
- package/esm/models/operations/listproducts.d.ts.map +1 -1
- package/esm/models/operations/listproducts.js +2 -0
- package/esm/models/operations/listproducts.js.map +1 -1
- package/esm/models/operations/listproductvariants.d.ts +5 -0
- package/esm/models/operations/listproductvariants.d.ts.map +1 -1
- package/esm/models/operations/listproductvariants.js +2 -0
- package/esm/models/operations/listproductvariants.js.map +1 -1
- package/esm/models/operations/listskus.d.ts +5 -0
- package/esm/models/operations/listskus.d.ts.map +1 -1
- package/esm/models/operations/listskus.js +2 -0
- package/esm/models/operations/listskus.js.map +1 -1
- package/esm/models/operations/updatefulfillmentpreference.d.ts +4 -4
- package/esm/models/operations/updatefulfillmentpreference.d.ts.map +1 -1
- package/esm/models/operations/updatefulfillmentpreference.js +4 -0
- package/esm/models/operations/updatefulfillmentpreference.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/catalogGetProductDetail.ts +6 -1
- package/src/funcs/catalogGetVariantDetail.ts +6 -1
- package/src/funcs/catalogListProductVariants.ts +6 -1
- package/src/funcs/catalogListProducts.ts +1 -0
- package/src/funcs/catalogListSkus.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +2 -0
- package/src/models/components/item.ts +10 -0
- package/src/models/components/lotbatchdetail.ts +97 -0
- package/src/models/components/partialcollectanddelivery.ts +303 -0
- package/src/models/components/product.ts +10 -0
- package/src/models/components/productbundleitem.ts +10 -0
- package/src/models/components/productdetail.ts +10 -0
- package/src/models/components/variant.ts +10 -0
- package/src/models/components/variantdetail.ts +10 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/getproductdetail.ts +7 -0
- package/src/models/operations/getvariantdetail.ts +7 -0
- package/src/models/operations/listproducts.ts +7 -0
- package/src/models/operations/listproductvariants.ts +7 -0
- package/src/models/operations/listskus.ts +7 -0
- package/src/models/operations/updatefulfillmentpreference.ts +8 -0
|
@@ -14,6 +14,12 @@ import {
|
|
|
14
14
|
Category$Outbound,
|
|
15
15
|
Category$outboundSchema,
|
|
16
16
|
} from "./category.js";
|
|
17
|
+
import {
|
|
18
|
+
LotBatchDetail,
|
|
19
|
+
LotBatchDetail$inboundSchema,
|
|
20
|
+
LotBatchDetail$Outbound,
|
|
21
|
+
LotBatchDetail$outboundSchema,
|
|
22
|
+
} from "./lotbatchdetail.js";
|
|
17
23
|
import {
|
|
18
24
|
ProductAttribute,
|
|
19
25
|
ProductAttribute$inboundSchema,
|
|
@@ -124,6 +130,7 @@ export type Product = {
|
|
|
124
130
|
subscription: Array<ProductSubscription>;
|
|
125
131
|
variants: Array<Variant>;
|
|
126
132
|
bundleItems: Array<ProductBundleItem>;
|
|
133
|
+
inventory?: Array<LotBatchDetail> | undefined;
|
|
127
134
|
};
|
|
128
135
|
|
|
129
136
|
/** @internal */
|
|
@@ -176,6 +183,7 @@ export const Product$inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown> =
|
|
|
176
183
|
subscription: z.array(ProductSubscription$inboundSchema),
|
|
177
184
|
variants: z.array(Variant$inboundSchema),
|
|
178
185
|
bundle_items: z.array(ProductBundleItem$inboundSchema),
|
|
186
|
+
inventory: z.array(LotBatchDetail$inboundSchema).optional(),
|
|
179
187
|
}).transform((v) => {
|
|
180
188
|
return remap$(v, {
|
|
181
189
|
"short_description": "shortDescription",
|
|
@@ -221,6 +229,7 @@ export type Product$Outbound = {
|
|
|
221
229
|
subscription: Array<ProductSubscription$Outbound>;
|
|
222
230
|
variants: Array<Variant$Outbound>;
|
|
223
231
|
bundle_items: Array<ProductBundleItem$Outbound>;
|
|
232
|
+
inventory?: Array<LotBatchDetail$Outbound> | undefined;
|
|
224
233
|
};
|
|
225
234
|
|
|
226
235
|
/** @internal */
|
|
@@ -255,6 +264,7 @@ export const Product$outboundSchema: z.ZodType<
|
|
|
255
264
|
subscription: z.array(ProductSubscription$outboundSchema),
|
|
256
265
|
variants: z.array(Variant$outboundSchema),
|
|
257
266
|
bundleItems: z.array(ProductBundleItem$outboundSchema),
|
|
267
|
+
inventory: z.array(LotBatchDetail$outboundSchema).optional(),
|
|
258
268
|
}).transform((v) => {
|
|
259
269
|
return remap$(v, {
|
|
260
270
|
shortDescription: "short_description",
|
|
@@ -14,6 +14,12 @@ import {
|
|
|
14
14
|
AssociatedOption$Outbound,
|
|
15
15
|
AssociatedOption$outboundSchema,
|
|
16
16
|
} from "./associatedoption.js";
|
|
17
|
+
import {
|
|
18
|
+
LotBatchDetail,
|
|
19
|
+
LotBatchDetail$inboundSchema,
|
|
20
|
+
LotBatchDetail$Outbound,
|
|
21
|
+
LotBatchDetail$outboundSchema,
|
|
22
|
+
} from "./lotbatchdetail.js";
|
|
17
23
|
import {
|
|
18
24
|
ProductAttribute,
|
|
19
25
|
ProductAttribute$inboundSchema,
|
|
@@ -96,6 +102,7 @@ export type ProductBundleItem = {
|
|
|
96
102
|
subscription: Array<ProductSubscription>;
|
|
97
103
|
associatedOptions: { [k: string]: AssociatedOption } | null;
|
|
98
104
|
shipping?: ProductShipping | null | undefined;
|
|
105
|
+
inventory?: Array<LotBatchDetail> | undefined;
|
|
99
106
|
};
|
|
100
107
|
|
|
101
108
|
/** @internal */
|
|
@@ -151,6 +158,7 @@ export const ProductBundleItem$inboundSchema: z.ZodType<
|
|
|
151
158
|
subscription: z.array(ProductSubscription$inboundSchema),
|
|
152
159
|
associated_options: z.nullable(z.record(AssociatedOption$inboundSchema)),
|
|
153
160
|
shipping: z.nullable(ProductShipping$inboundSchema).optional(),
|
|
161
|
+
inventory: z.array(LotBatchDetail$inboundSchema).optional(),
|
|
154
162
|
}).transform((v) => {
|
|
155
163
|
return remap$(v, {
|
|
156
164
|
"product_id": "productId",
|
|
@@ -198,6 +206,7 @@ export type ProductBundleItem$Outbound = {
|
|
|
198
206
|
subscription: Array<ProductSubscription$Outbound>;
|
|
199
207
|
associated_options: { [k: string]: AssociatedOption$Outbound } | null;
|
|
200
208
|
shipping?: ProductShipping$Outbound | null | undefined;
|
|
209
|
+
inventory?: Array<LotBatchDetail$Outbound> | undefined;
|
|
201
210
|
};
|
|
202
211
|
|
|
203
212
|
/** @internal */
|
|
@@ -232,6 +241,7 @@ export const ProductBundleItem$outboundSchema: z.ZodType<
|
|
|
232
241
|
subscription: z.array(ProductSubscription$outboundSchema),
|
|
233
242
|
associatedOptions: z.nullable(z.record(AssociatedOption$outboundSchema)),
|
|
234
243
|
shipping: z.nullable(ProductShipping$outboundSchema).optional(),
|
|
244
|
+
inventory: z.array(LotBatchDetail$outboundSchema).optional(),
|
|
235
245
|
}).transform((v) => {
|
|
236
246
|
return remap$(v, {
|
|
237
247
|
productId: "product_id",
|
|
@@ -14,6 +14,12 @@ import {
|
|
|
14
14
|
Category$Outbound,
|
|
15
15
|
Category$outboundSchema,
|
|
16
16
|
} from "./category.js";
|
|
17
|
+
import {
|
|
18
|
+
LotBatchDetail,
|
|
19
|
+
LotBatchDetail$inboundSchema,
|
|
20
|
+
LotBatchDetail$Outbound,
|
|
21
|
+
LotBatchDetail$outboundSchema,
|
|
22
|
+
} from "./lotbatchdetail.js";
|
|
17
23
|
import {
|
|
18
24
|
ProductAttribute,
|
|
19
25
|
ProductAttribute$inboundSchema,
|
|
@@ -144,6 +150,7 @@ export type ProductDetail = {
|
|
|
144
150
|
subscription: Array<ProductSubscription>;
|
|
145
151
|
variants: Array<Variant>;
|
|
146
152
|
bundleItems: Array<ProductBundleItem>;
|
|
153
|
+
inventory?: Array<LotBatchDetail> | undefined;
|
|
147
154
|
description: string | null;
|
|
148
155
|
hsnCode: string | null;
|
|
149
156
|
videos: Array<ProductVideo>;
|
|
@@ -213,6 +220,7 @@ export const ProductDetail$inboundSchema: z.ZodType<
|
|
|
213
220
|
subscription: z.array(ProductSubscription$inboundSchema),
|
|
214
221
|
variants: z.array(Variant$inboundSchema),
|
|
215
222
|
bundle_items: z.array(ProductBundleItem$inboundSchema),
|
|
223
|
+
inventory: z.array(LotBatchDetail$inboundSchema).optional(),
|
|
216
224
|
description: z.nullable(z.string()),
|
|
217
225
|
hsn_code: z.nullable(z.string()),
|
|
218
226
|
videos: z.array(ProductVideo$inboundSchema),
|
|
@@ -269,6 +277,7 @@ export type ProductDetail$Outbound = {
|
|
|
269
277
|
subscription: Array<ProductSubscription$Outbound>;
|
|
270
278
|
variants: Array<Variant$Outbound>;
|
|
271
279
|
bundle_items: Array<ProductBundleItem$Outbound>;
|
|
280
|
+
inventory?: Array<LotBatchDetail$Outbound> | undefined;
|
|
272
281
|
description: string | null;
|
|
273
282
|
hsn_code: string | null;
|
|
274
283
|
videos: Array<ProductVideo$Outbound>;
|
|
@@ -311,6 +320,7 @@ export const ProductDetail$outboundSchema: z.ZodType<
|
|
|
311
320
|
subscription: z.array(ProductSubscription$outboundSchema),
|
|
312
321
|
variants: z.array(Variant$outboundSchema),
|
|
313
322
|
bundleItems: z.array(ProductBundleItem$outboundSchema),
|
|
323
|
+
inventory: z.array(LotBatchDetail$outboundSchema).optional(),
|
|
314
324
|
description: z.nullable(z.string()),
|
|
315
325
|
hsnCode: z.nullable(z.string()),
|
|
316
326
|
videos: z.array(ProductVideo$outboundSchema),
|
|
@@ -13,6 +13,12 @@ import {
|
|
|
13
13
|
AssociatedOption$Outbound,
|
|
14
14
|
AssociatedOption$outboundSchema,
|
|
15
15
|
} from "./associatedoption.js";
|
|
16
|
+
import {
|
|
17
|
+
LotBatchDetail,
|
|
18
|
+
LotBatchDetail$inboundSchema,
|
|
19
|
+
LotBatchDetail$Outbound,
|
|
20
|
+
LotBatchDetail$outboundSchema,
|
|
21
|
+
} from "./lotbatchdetail.js";
|
|
16
22
|
import {
|
|
17
23
|
ProductImage,
|
|
18
24
|
ProductImage$inboundSchema,
|
|
@@ -88,6 +94,7 @@ export type Variant = {
|
|
|
88
94
|
pricing: ProductPricing;
|
|
89
95
|
subscription: Array<ProductSubscription>;
|
|
90
96
|
promotion: ProductPromotion | null;
|
|
97
|
+
inventory?: Array<LotBatchDetail> | undefined;
|
|
91
98
|
};
|
|
92
99
|
|
|
93
100
|
/** @internal */
|
|
@@ -112,6 +119,7 @@ export const Variant$inboundSchema: z.ZodType<Variant, z.ZodTypeDef, unknown> =
|
|
|
112
119
|
pricing: ProductPricing$inboundSchema,
|
|
113
120
|
subscription: z.array(ProductSubscription$inboundSchema),
|
|
114
121
|
promotion: z.nullable(ProductPromotion$inboundSchema),
|
|
122
|
+
inventory: z.array(LotBatchDetail$inboundSchema).optional(),
|
|
115
123
|
}).transform((v) => {
|
|
116
124
|
return remap$(v, {
|
|
117
125
|
"product_id": "productId",
|
|
@@ -147,6 +155,7 @@ export type Variant$Outbound = {
|
|
|
147
155
|
pricing: ProductPricing$Outbound;
|
|
148
156
|
subscription: Array<ProductSubscription$Outbound>;
|
|
149
157
|
promotion: ProductPromotion$Outbound | null;
|
|
158
|
+
inventory?: Array<LotBatchDetail$Outbound> | undefined;
|
|
150
159
|
};
|
|
151
160
|
|
|
152
161
|
/** @internal */
|
|
@@ -174,6 +183,7 @@ export const Variant$outboundSchema: z.ZodType<
|
|
|
174
183
|
pricing: ProductPricing$outboundSchema,
|
|
175
184
|
subscription: z.array(ProductSubscription$outboundSchema),
|
|
176
185
|
promotion: z.nullable(ProductPromotion$outboundSchema),
|
|
186
|
+
inventory: z.array(LotBatchDetail$outboundSchema).optional(),
|
|
177
187
|
}).transform((v) => {
|
|
178
188
|
return remap$(v, {
|
|
179
189
|
productId: "product_id",
|
|
@@ -14,6 +14,12 @@ import {
|
|
|
14
14
|
AssociatedOption$Outbound,
|
|
15
15
|
AssociatedOption$outboundSchema,
|
|
16
16
|
} from "./associatedoption.js";
|
|
17
|
+
import {
|
|
18
|
+
LotBatchDetail,
|
|
19
|
+
LotBatchDetail$inboundSchema,
|
|
20
|
+
LotBatchDetail$Outbound,
|
|
21
|
+
LotBatchDetail$outboundSchema,
|
|
22
|
+
} from "./lotbatchdetail.js";
|
|
17
23
|
import {
|
|
18
24
|
ProductAttribute,
|
|
19
25
|
ProductAttribute$inboundSchema,
|
|
@@ -128,6 +134,7 @@ export type VariantDetail = {
|
|
|
128
134
|
pricing: ProductPricing;
|
|
129
135
|
subscription: Array<ProductSubscription>;
|
|
130
136
|
promotion: ProductPromotion | null;
|
|
137
|
+
inventory?: Array<LotBatchDetail> | undefined;
|
|
131
138
|
productType: VariantDetailProductType;
|
|
132
139
|
description: string | null;
|
|
133
140
|
categoryIds: Array<string>;
|
|
@@ -190,6 +197,7 @@ export const VariantDetail$inboundSchema: z.ZodType<
|
|
|
190
197
|
pricing: ProductPricing$inboundSchema,
|
|
191
198
|
subscription: z.array(ProductSubscription$inboundSchema),
|
|
192
199
|
promotion: z.nullable(ProductPromotion$inboundSchema),
|
|
200
|
+
inventory: z.array(LotBatchDetail$inboundSchema).optional(),
|
|
193
201
|
product_type: VariantDetailProductType$inboundSchema,
|
|
194
202
|
description: z.nullable(z.string()),
|
|
195
203
|
category_ids: z.array(z.string()),
|
|
@@ -247,6 +255,7 @@ export type VariantDetail$Outbound = {
|
|
|
247
255
|
pricing: ProductPricing$Outbound;
|
|
248
256
|
subscription: Array<ProductSubscription$Outbound>;
|
|
249
257
|
promotion: ProductPromotion$Outbound | null;
|
|
258
|
+
inventory?: Array<LotBatchDetail$Outbound> | undefined;
|
|
250
259
|
product_type: string;
|
|
251
260
|
description: string | null;
|
|
252
261
|
category_ids: Array<string>;
|
|
@@ -288,6 +297,7 @@ export const VariantDetail$outboundSchema: z.ZodType<
|
|
|
288
297
|
pricing: ProductPricing$outboundSchema,
|
|
289
298
|
subscription: z.array(ProductSubscription$outboundSchema),
|
|
290
299
|
promotion: z.nullable(ProductPromotion$outboundSchema),
|
|
300
|
+
inventory: z.array(LotBatchDetail$outboundSchema).optional(),
|
|
291
301
|
productType: VariantDetailProductType$outboundSchema,
|
|
292
302
|
description: z.nullable(z.string()),
|
|
293
303
|
categoryIds: z.array(z.string()),
|
|
@@ -14,6 +14,10 @@ export type GetProductDetailRequest = {
|
|
|
14
14
|
* This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned.
|
|
15
15
|
*/
|
|
16
16
|
xCustomerGroupId?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Determines whether to include or exlude inventory details in response json
|
|
19
|
+
*/
|
|
20
|
+
inventory?: boolean | undefined;
|
|
17
21
|
/**
|
|
18
22
|
* The unique identifier of the product. Can be either the product ID or the slug.
|
|
19
23
|
*/
|
|
@@ -40,6 +44,7 @@ export const GetProductDetailRequest$inboundSchema: z.ZodType<
|
|
|
40
44
|
unknown
|
|
41
45
|
> = z.object({
|
|
42
46
|
"x-customer-group-id": z.string().optional(),
|
|
47
|
+
inventory: z.boolean().optional(),
|
|
43
48
|
product_id_or_slug: z.string(),
|
|
44
49
|
}).transform((v) => {
|
|
45
50
|
return remap$(v, {
|
|
@@ -51,6 +56,7 @@ export const GetProductDetailRequest$inboundSchema: z.ZodType<
|
|
|
51
56
|
/** @internal */
|
|
52
57
|
export type GetProductDetailRequest$Outbound = {
|
|
53
58
|
"x-customer-group-id"?: string | undefined;
|
|
59
|
+
inventory?: boolean | undefined;
|
|
54
60
|
product_id_or_slug: string;
|
|
55
61
|
};
|
|
56
62
|
|
|
@@ -61,6 +67,7 @@ export const GetProductDetailRequest$outboundSchema: z.ZodType<
|
|
|
61
67
|
GetProductDetailRequest
|
|
62
68
|
> = z.object({
|
|
63
69
|
xCustomerGroupId: z.string().optional(),
|
|
70
|
+
inventory: z.boolean().optional(),
|
|
64
71
|
productIdOrSlug: z.string(),
|
|
65
72
|
}).transform((v) => {
|
|
66
73
|
return remap$(v, {
|
|
@@ -14,6 +14,10 @@ export type GetVariantDetailRequest = {
|
|
|
14
14
|
* This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned.
|
|
15
15
|
*/
|
|
16
16
|
xCustomerGroupId?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Determines whether to include or exlude inventory details in response json
|
|
19
|
+
*/
|
|
20
|
+
inventory?: boolean | undefined;
|
|
17
21
|
/**
|
|
18
22
|
* product id
|
|
19
23
|
*/
|
|
@@ -44,6 +48,7 @@ export const GetVariantDetailRequest$inboundSchema: z.ZodType<
|
|
|
44
48
|
unknown
|
|
45
49
|
> = z.object({
|
|
46
50
|
"x-customer-group-id": z.string().optional(),
|
|
51
|
+
inventory: z.boolean().optional(),
|
|
47
52
|
product_id: z.string(),
|
|
48
53
|
variant_id: z.string(),
|
|
49
54
|
}).transform((v) => {
|
|
@@ -57,6 +62,7 @@ export const GetVariantDetailRequest$inboundSchema: z.ZodType<
|
|
|
57
62
|
/** @internal */
|
|
58
63
|
export type GetVariantDetailRequest$Outbound = {
|
|
59
64
|
"x-customer-group-id"?: string | undefined;
|
|
65
|
+
inventory?: boolean | undefined;
|
|
60
66
|
product_id: string;
|
|
61
67
|
variant_id: string;
|
|
62
68
|
};
|
|
@@ -68,6 +74,7 @@ export const GetVariantDetailRequest$outboundSchema: z.ZodType<
|
|
|
68
74
|
GetVariantDetailRequest
|
|
69
75
|
> = z.object({
|
|
70
76
|
xCustomerGroupId: z.string().optional(),
|
|
77
|
+
inventory: z.boolean().optional(),
|
|
71
78
|
productId: z.string(),
|
|
72
79
|
variantId: z.string(),
|
|
73
80
|
}).transform((v) => {
|
|
@@ -34,6 +34,10 @@ export type ListProductsRequest = {
|
|
|
34
34
|
* filter products by categories slugs
|
|
35
35
|
*/
|
|
36
36
|
categorySlug?: Array<string> | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Determines whether to include or exlude inventory details in response json
|
|
39
|
+
*/
|
|
40
|
+
inventory?: boolean | undefined;
|
|
37
41
|
};
|
|
38
42
|
|
|
39
43
|
export type ListProductsContent = {
|
|
@@ -65,6 +69,7 @@ export const ListProductsRequest$inboundSchema: z.ZodType<
|
|
|
65
69
|
"x-customer-group-id": z.string().optional(),
|
|
66
70
|
category_id: z.array(z.string()).optional(),
|
|
67
71
|
category_slug: z.array(z.string()).optional(),
|
|
72
|
+
inventory: z.boolean().optional(),
|
|
68
73
|
}).transform((v) => {
|
|
69
74
|
return remap$(v, {
|
|
70
75
|
"sort_by": "sortBy",
|
|
@@ -82,6 +87,7 @@ export type ListProductsRequest$Outbound = {
|
|
|
82
87
|
"x-customer-group-id"?: string | undefined;
|
|
83
88
|
category_id?: Array<string> | undefined;
|
|
84
89
|
category_slug?: Array<string> | undefined;
|
|
90
|
+
inventory?: boolean | undefined;
|
|
85
91
|
};
|
|
86
92
|
|
|
87
93
|
/** @internal */
|
|
@@ -96,6 +102,7 @@ export const ListProductsRequest$outboundSchema: z.ZodType<
|
|
|
96
102
|
xCustomerGroupId: z.string().optional(),
|
|
97
103
|
categoryId: z.array(z.string()).optional(),
|
|
98
104
|
categorySlug: z.array(z.string()).optional(),
|
|
105
|
+
inventory: z.boolean().optional(),
|
|
99
106
|
}).transform((v) => {
|
|
100
107
|
return remap$(v, {
|
|
101
108
|
sortBy: "sort_by",
|
|
@@ -14,6 +14,10 @@ export type ListProductVariantsRequest = {
|
|
|
14
14
|
* This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned.
|
|
15
15
|
*/
|
|
16
16
|
xCustomerGroupId?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Determines whether to include or exlude inventory details in response json
|
|
19
|
+
*/
|
|
20
|
+
inventory?: boolean | undefined;
|
|
17
21
|
/**
|
|
18
22
|
* ID of a particular product
|
|
19
23
|
*/
|
|
@@ -40,6 +44,7 @@ export const ListProductVariantsRequest$inboundSchema: z.ZodType<
|
|
|
40
44
|
unknown
|
|
41
45
|
> = z.object({
|
|
42
46
|
"x-customer-group-id": z.string().optional(),
|
|
47
|
+
inventory: z.boolean().optional(),
|
|
43
48
|
product_id: z.string(),
|
|
44
49
|
}).transform((v) => {
|
|
45
50
|
return remap$(v, {
|
|
@@ -51,6 +56,7 @@ export const ListProductVariantsRequest$inboundSchema: z.ZodType<
|
|
|
51
56
|
/** @internal */
|
|
52
57
|
export type ListProductVariantsRequest$Outbound = {
|
|
53
58
|
"x-customer-group-id"?: string | undefined;
|
|
59
|
+
inventory?: boolean | undefined;
|
|
54
60
|
product_id: string;
|
|
55
61
|
};
|
|
56
62
|
|
|
@@ -61,6 +67,7 @@ export const ListProductVariantsRequest$outboundSchema: z.ZodType<
|
|
|
61
67
|
ListProductVariantsRequest
|
|
62
68
|
> = z.object({
|
|
63
69
|
xCustomerGroupId: z.string().optional(),
|
|
70
|
+
inventory: z.boolean().optional(),
|
|
64
71
|
productId: z.string(),
|
|
65
72
|
}).transform((v) => {
|
|
66
73
|
return remap$(v, {
|
|
@@ -30,6 +30,10 @@ export type ListSkusRequest = {
|
|
|
30
30
|
* filter sku by categories
|
|
31
31
|
*/
|
|
32
32
|
categoryId?: Array<string> | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Determines whether to include or exlude inventory details in response json
|
|
35
|
+
*/
|
|
36
|
+
inventory?: boolean | undefined;
|
|
33
37
|
/**
|
|
34
38
|
* array of sku
|
|
35
39
|
*/
|
|
@@ -64,6 +68,7 @@ export const ListSkusRequest$inboundSchema: z.ZodType<
|
|
|
64
68
|
sort_by: z.string().optional(),
|
|
65
69
|
"x-customer-group-id": z.string().optional(),
|
|
66
70
|
category_id: z.array(z.string()).optional(),
|
|
71
|
+
inventory: z.boolean().optional(),
|
|
67
72
|
sku: z.array(z.string()).optional(),
|
|
68
73
|
}).transform((v) => {
|
|
69
74
|
return remap$(v, {
|
|
@@ -80,6 +85,7 @@ export type ListSkusRequest$Outbound = {
|
|
|
80
85
|
sort_by?: string | undefined;
|
|
81
86
|
"x-customer-group-id"?: string | undefined;
|
|
82
87
|
category_id?: Array<string> | undefined;
|
|
88
|
+
inventory?: boolean | undefined;
|
|
83
89
|
sku?: Array<string> | undefined;
|
|
84
90
|
};
|
|
85
91
|
|
|
@@ -94,6 +100,7 @@ export const ListSkusRequest$outboundSchema: z.ZodType<
|
|
|
94
100
|
sortBy: z.string().optional(),
|
|
95
101
|
xCustomerGroupId: z.string().optional(),
|
|
96
102
|
categoryId: z.array(z.string()).optional(),
|
|
103
|
+
inventory: z.boolean().optional(),
|
|
97
104
|
sku: z.array(z.string()).optional(),
|
|
98
105
|
}).transform((v) => {
|
|
99
106
|
return remap$(v, {
|
|
@@ -11,6 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
|
|
12
12
|
export type UpdateFulfillmentPreferenceRequestBody =
|
|
13
13
|
| components.CollectInStoreFulfillment
|
|
14
|
+
| components.PartialCollectAndDelivery
|
|
14
15
|
| components.DeliveryFulfillment;
|
|
15
16
|
|
|
16
17
|
export type UpdateFulfillmentPreferenceRequest = {
|
|
@@ -20,6 +21,7 @@ export type UpdateFulfillmentPreferenceRequest = {
|
|
|
20
21
|
id: string;
|
|
21
22
|
requestBody:
|
|
22
23
|
| components.CollectInStoreFulfillment
|
|
24
|
+
| components.PartialCollectAndDelivery
|
|
23
25
|
| components.DeliveryFulfillment;
|
|
24
26
|
};
|
|
25
27
|
|
|
@@ -38,12 +40,14 @@ export const UpdateFulfillmentPreferenceRequestBody$inboundSchema: z.ZodType<
|
|
|
38
40
|
unknown
|
|
39
41
|
> = z.union([
|
|
40
42
|
components.CollectInStoreFulfillment$inboundSchema,
|
|
43
|
+
components.PartialCollectAndDelivery$inboundSchema,
|
|
41
44
|
components.DeliveryFulfillment$inboundSchema,
|
|
42
45
|
]);
|
|
43
46
|
|
|
44
47
|
/** @internal */
|
|
45
48
|
export type UpdateFulfillmentPreferenceRequestBody$Outbound =
|
|
46
49
|
| components.CollectInStoreFulfillment$Outbound
|
|
50
|
+
| components.PartialCollectAndDelivery$Outbound
|
|
47
51
|
| components.DeliveryFulfillment$Outbound;
|
|
48
52
|
|
|
49
53
|
/** @internal */
|
|
@@ -53,6 +57,7 @@ export const UpdateFulfillmentPreferenceRequestBody$outboundSchema: z.ZodType<
|
|
|
53
57
|
UpdateFulfillmentPreferenceRequestBody
|
|
54
58
|
> = z.union([
|
|
55
59
|
components.CollectInStoreFulfillment$outboundSchema,
|
|
60
|
+
components.PartialCollectAndDelivery$outboundSchema,
|
|
56
61
|
components.DeliveryFulfillment$outboundSchema,
|
|
57
62
|
]);
|
|
58
63
|
|
|
@@ -102,6 +107,7 @@ export const UpdateFulfillmentPreferenceRequest$inboundSchema: z.ZodType<
|
|
|
102
107
|
id: z.string(),
|
|
103
108
|
RequestBody: z.union([
|
|
104
109
|
components.CollectInStoreFulfillment$inboundSchema,
|
|
110
|
+
components.PartialCollectAndDelivery$inboundSchema,
|
|
105
111
|
components.DeliveryFulfillment$inboundSchema,
|
|
106
112
|
]),
|
|
107
113
|
}).transform((v) => {
|
|
@@ -115,6 +121,7 @@ export type UpdateFulfillmentPreferenceRequest$Outbound = {
|
|
|
115
121
|
id: string;
|
|
116
122
|
RequestBody:
|
|
117
123
|
| components.CollectInStoreFulfillment$Outbound
|
|
124
|
+
| components.PartialCollectAndDelivery$Outbound
|
|
118
125
|
| components.DeliveryFulfillment$Outbound;
|
|
119
126
|
};
|
|
120
127
|
|
|
@@ -127,6 +134,7 @@ export const UpdateFulfillmentPreferenceRequest$outboundSchema: z.ZodType<
|
|
|
127
134
|
id: z.string(),
|
|
128
135
|
requestBody: z.union([
|
|
129
136
|
components.CollectInStoreFulfillment$outboundSchema,
|
|
137
|
+
components.PartialCollectAndDelivery$outboundSchema,
|
|
130
138
|
components.DeliveryFulfillment$outboundSchema,
|
|
131
139
|
]),
|
|
132
140
|
}).transform((v) => {
|