ce-storefront 0.3.9 → 0.3.11
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/docs/sdks/auth/README.md +2 -0
- package/docs/sdks/carts/README.md +22 -12
- package/docs/sdks/cestorefrontuser/README.md +30 -2
- package/docs/sdks/checkout/README.md +4 -0
- package/esm/funcs/cartsAddItem.js +1 -1
- package/esm/funcs/cartsAddItem.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/lib/config.js.map +1 -1
- package/esm/models/components/anonymoususer.d.ts +14 -14
- package/esm/models/components/anonymoususer.d.ts.map +1 -1
- package/esm/models/components/anonymoususer.js +14 -14
- package/esm/models/components/anonymoususer.js.map +1 -1
- package/esm/models/components/associatedoption.d.ts +4 -102
- package/esm/models/components/associatedoption.d.ts.map +1 -1
- package/esm/models/components/associatedoption.js +4 -82
- package/esm/models/components/associatedoption.js.map +1 -1
- package/esm/models/components/bundleproduct.d.ts +48 -48
- package/esm/models/components/bundleproduct.d.ts.map +1 -1
- package/esm/models/components/bundleproduct.js +46 -50
- package/esm/models/components/bundleproduct.js.map +1 -1
- package/esm/models/components/bundleproductdetail.d.ts +66 -66
- package/esm/models/components/bundleproductdetail.d.ts.map +1 -1
- package/esm/models/components/bundleproductdetail.js +62 -66
- package/esm/models/components/bundleproductdetail.js.map +1 -1
- package/esm/models/components/coloroption.d.ts +72 -0
- package/esm/models/components/coloroption.d.ts.map +1 -0
- package/esm/models/components/coloroption.js +62 -0
- package/esm/models/components/coloroption.js.map +1 -0
- package/esm/models/components/currency.d.ts +6 -6
- package/esm/models/components/currency.d.ts.map +1 -1
- package/esm/models/components/currency.js +6 -6
- package/esm/models/components/currency.js.map +1 -1
- package/esm/models/components/index.d.ts +3 -1
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +3 -1
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/notificationpreferences.d.ts +6 -6
- package/esm/models/components/notificationpreferences.d.ts.map +1 -1
- package/esm/models/components/notificationpreferences.js +6 -6
- package/esm/models/components/notificationpreferences.js.map +1 -1
- package/esm/models/components/pagination.d.ts +8 -8
- package/esm/models/components/pagination.d.ts.map +1 -1
- package/esm/models/components/pagination.js +8 -8
- package/esm/models/components/pagination.js.map +1 -1
- package/esm/models/components/productattribute.d.ts +2 -2
- package/esm/models/components/productattribute.d.ts.map +1 -1
- package/esm/models/components/productattribute.js +2 -2
- package/esm/models/components/productattribute.js.map +1 -1
- package/esm/models/components/productcategory.d.ts +20 -20
- package/esm/models/components/productcategory.d.ts.map +1 -1
- package/esm/models/components/productcategory.js +20 -20
- package/esm/models/components/productcategory.js.map +1 -1
- package/esm/models/components/productdetail.d.ts +2 -14
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +4 -18
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/productimage.d.ts +14 -14
- package/esm/models/components/productimage.d.ts.map +1 -1
- package/esm/models/components/productimage.js +14 -14
- package/esm/models/components/productimage.js.map +1 -1
- package/esm/models/components/productpricing.d.ts +4 -4
- package/esm/models/components/productpricing.d.ts.map +1 -1
- package/esm/models/components/productpricing.js +4 -4
- package/esm/models/components/productpricing.js.map +1 -1
- package/esm/models/components/productshipping.d.ts +12 -12
- package/esm/models/components/productshipping.d.ts.map +1 -1
- package/esm/models/components/productshipping.js +12 -12
- package/esm/models/components/productshipping.js.map +1 -1
- package/esm/models/components/productvideo.d.ts +16 -16
- package/esm/models/components/productvideo.d.ts.map +1 -1
- package/esm/models/components/productvideo.js +16 -16
- package/esm/models/components/productvideo.js.map +1 -1
- package/esm/models/components/seo.d.ts +8 -8
- package/esm/models/components/seo.d.ts.map +1 -1
- package/esm/models/components/seo.js +8 -8
- package/esm/models/components/seo.js.map +1 -1
- package/esm/models/components/singleproduct.d.ts +18 -18
- package/esm/models/components/singleproduct.d.ts.map +1 -1
- package/esm/models/components/singleproduct.js +18 -18
- package/esm/models/components/singleproduct.js.map +1 -1
- package/esm/models/components/singleproductdetail.d.ts +36 -36
- package/esm/models/components/singleproductdetail.d.ts.map +1 -1
- package/esm/models/components/singleproductdetail.js +34 -34
- package/esm/models/components/singleproductdetail.js.map +1 -1
- package/esm/models/components/singleselectoption.d.ts +42 -0
- package/esm/models/components/singleselectoption.d.ts.map +1 -0
- package/esm/models/components/singleselectoption.js +35 -0
- package/esm/models/components/singleselectoption.js.map +1 -0
- package/esm/models/components/sku.d.ts +30 -30
- package/esm/models/components/sku.d.ts.map +1 -1
- package/esm/models/components/sku.js +28 -30
- package/esm/models/components/sku.js.map +1 -1
- package/esm/models/components/updatecartitem.d.ts +45 -0
- package/esm/models/components/updatecartitem.d.ts.map +1 -0
- package/esm/models/components/updatecartitem.js +46 -0
- package/esm/models/components/updatecartitem.js.map +1 -0
- package/esm/models/components/user.d.ts +116 -26
- package/esm/models/components/user.d.ts.map +1 -1
- package/esm/models/components/user.js +104 -30
- package/esm/models/components/user.js.map +1 -1
- package/esm/models/components/variant.d.ts +15 -12
- package/esm/models/components/variant.d.ts.map +1 -1
- package/esm/models/components/variant.js +12 -12
- package/esm/models/components/variant.js.map +1 -1
- package/esm/models/components/variantdetail.d.ts +41 -38
- package/esm/models/components/variantdetail.d.ts.map +1 -1
- package/esm/models/components/variantdetail.js +36 -36
- package/esm/models/components/variantdetail.js.map +1 -1
- package/esm/models/components/variantoption.d.ts +34 -26
- package/esm/models/components/variantoption.d.ts.map +1 -1
- package/esm/models/components/variantoption.js +32 -45
- package/esm/models/components/variantoption.js.map +1 -1
- package/esm/models/operations/getcrosssell.d.ts +6 -6
- package/esm/models/operations/getcrosssell.d.ts.map +1 -1
- package/esm/models/operations/getcrosssell.js +6 -6
- package/esm/models/operations/getcrosssell.js.map +1 -1
- package/esm/models/operations/getproductscategories.d.ts +4 -4
- package/esm/models/operations/getproductscategories.d.ts.map +1 -1
- package/esm/models/operations/getproductscategories.js +4 -4
- package/esm/models/operations/getproductscategories.js.map +1 -1
- package/esm/models/operations/getproductsidreviews.d.ts +4 -4
- package/esm/models/operations/getproductsidreviews.d.ts.map +1 -1
- package/esm/models/operations/getproductsidreviews.js +4 -4
- package/esm/models/operations/getproductsidreviews.js.map +1 -1
- package/esm/models/operations/getsimilar.d.ts +6 -6
- package/esm/models/operations/getsimilar.d.ts.map +1 -1
- package/esm/models/operations/getsimilar.js +6 -6
- package/esm/models/operations/getsimilar.js.map +1 -1
- package/esm/models/operations/getskus.d.ts +4 -4
- package/esm/models/operations/getskus.d.ts.map +1 -1
- package/esm/models/operations/getskus.js +4 -4
- package/esm/models/operations/getskus.js.map +1 -1
- package/esm/models/operations/getupsell.d.ts +6 -6
- package/esm/models/operations/getupsell.d.ts.map +1 -1
- package/esm/models/operations/getupsell.js +6 -6
- package/esm/models/operations/getupsell.js.map +1 -1
- package/esm/models/operations/postauthanonymous.d.ts +12 -12
- package/esm/models/operations/postauthanonymous.d.ts.map +1 -1
- package/esm/models/operations/postauthanonymous.js +12 -12
- package/esm/models/operations/postauthanonymous.js.map +1 -1
- package/esm/models/operations/postauthgenerateotp.d.ts +2 -2
- package/esm/models/operations/postauthgenerateotp.d.ts.map +1 -1
- package/esm/models/operations/postauthgenerateotp.js +2 -2
- package/esm/models/operations/postauthgenerateotp.js.map +1 -1
- package/esm/models/operations/postcartaddress.d.ts +8 -8
- package/esm/models/operations/postcartaddress.d.ts.map +1 -1
- package/esm/models/operations/postcartaddress.js +8 -12
- package/esm/models/operations/postcartaddress.js.map +1 -1
- package/esm/models/operations/postcartitemid.d.ts +2 -35
- package/esm/models/operations/postcartitemid.d.ts.map +1 -1
- package/esm/models/operations/postcartitemid.js +4 -49
- package/esm/models/operations/postcartitemid.js.map +1 -1
- package/esm/models/operations/postcartsid.d.ts +5 -31
- package/esm/models/operations/postcartsid.d.ts.map +1 -1
- package/esm/models/operations/postcartsid.js +2 -41
- package/esm/models/operations/postcartsid.js.map +1 -1
- package/esm/models/operations/postproductsidreviews.d.ts +4 -4
- package/esm/models/operations/postproductsidreviews.d.ts.map +1 -1
- package/esm/models/operations/postproductsidreviews.js +4 -4
- package/esm/models/operations/postproductsidreviews.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/cartsAddItem.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/anonymoususer.ts +28 -28
- package/src/models/components/associatedoption.ts +19 -164
- package/src/models/components/bundleproduct.ts +92 -99
- package/src/models/components/bundleproductdetail.ts +124 -131
- package/src/models/components/coloroption.ts +144 -0
- package/src/models/components/currency.ts +12 -12
- package/src/models/components/index.ts +3 -1
- package/src/models/components/notificationpreferences.ts +12 -12
- package/src/models/components/pagination.ts +16 -16
- package/src/models/components/productattribute.ts +4 -4
- package/src/models/components/productcategory.ts +40 -40
- package/src/models/components/productdetail.ts +7 -37
- package/src/models/components/productimage.ts +28 -28
- package/src/models/components/productpricing.ts +8 -8
- package/src/models/components/productshipping.ts +24 -24
- package/src/models/components/productvideo.ts +32 -32
- package/src/models/components/seo.ts +16 -16
- package/src/models/components/singleproduct.ts +36 -36
- package/src/models/components/singleproductdetail.ts +68 -68
- package/src/models/components/singleselectoption.ts +83 -0
- package/src/models/components/sku.ts +56 -61
- package/src/models/components/updatecartitem.ts +93 -0
- package/src/models/components/user.ts +199 -56
- package/src/models/components/variant.ts +27 -24
- package/src/models/components/variantdetail.ts +75 -72
- package/src/models/components/variantoption.ts +54 -61
- package/src/models/operations/getcrosssell.ts +12 -12
- package/src/models/operations/getproductscategories.ts +8 -8
- package/src/models/operations/getproductsidreviews.ts +8 -8
- package/src/models/operations/getsimilar.ts +12 -12
- package/src/models/operations/getskus.ts +8 -8
- package/src/models/operations/getupsell.ts +12 -12
- package/src/models/operations/postauthanonymous.ts +24 -24
- package/src/models/operations/postauthgenerateotp.ts +4 -4
- package/src/models/operations/postcartaddress.ts +16 -23
- package/src/models/operations/postcartitemid.ts +6 -94
- package/src/models/operations/postcartsid.ts +7 -72
- package/src/models/operations/postproductsidreviews.ts +8 -8
- package/esm/models/components/userinput.d.ts +0 -63
- package/esm/models/components/userinput.d.ts.map +0 -1
- package/esm/models/components/userinput.js +0 -61
- package/esm/models/components/userinput.js.map +0 -1
- package/src/models/components/userinput.ts +0 -130
|
@@ -72,13 +72,13 @@ export type BundleProductBundleItemsProductType = ClosedEnum<
|
|
|
72
72
|
export type BundleProductSKU = {
|
|
73
73
|
quantity: number;
|
|
74
74
|
productId: string;
|
|
75
|
-
variantId
|
|
75
|
+
variantId: string | null;
|
|
76
76
|
sku: string;
|
|
77
|
-
slug
|
|
77
|
+
slug: string | null;
|
|
78
78
|
productName: string;
|
|
79
|
-
variantName
|
|
79
|
+
variantName: string | null;
|
|
80
80
|
productType: BundleProductBundleItemsProductType;
|
|
81
|
-
shortDescription
|
|
81
|
+
shortDescription: string | null;
|
|
82
82
|
active?: boolean | undefined;
|
|
83
83
|
stockAvailable?: boolean | undefined;
|
|
84
84
|
/**
|
|
@@ -87,16 +87,16 @@ export type BundleProductSKU = {
|
|
|
87
87
|
onOffer?: boolean | undefined;
|
|
88
88
|
onSubscription?: boolean | undefined;
|
|
89
89
|
onPromotion?: boolean | undefined;
|
|
90
|
-
categoryIds
|
|
91
|
-
tags
|
|
92
|
-
reviewsCount
|
|
93
|
-
reviewsRatingSum
|
|
94
|
-
attributes
|
|
95
|
-
images
|
|
96
|
-
pricing
|
|
97
|
-
promotion
|
|
98
|
-
subscription
|
|
99
|
-
associatedOptions
|
|
90
|
+
categoryIds: Array<string>;
|
|
91
|
+
tags: Array<string> | null;
|
|
92
|
+
reviewsCount: number;
|
|
93
|
+
reviewsRatingSum: number | null;
|
|
94
|
+
attributes: Array<ProductAttribute>;
|
|
95
|
+
images: Array<ProductImage>;
|
|
96
|
+
pricing: ProductPricing;
|
|
97
|
+
promotion: ProductPromotion | null;
|
|
98
|
+
subscription: Array<ProductSubscription>;
|
|
99
|
+
associatedOptions: { [k: string]: AssociatedOption } | null;
|
|
100
100
|
};
|
|
101
101
|
|
|
102
102
|
export type BundleProduct = {
|
|
@@ -104,10 +104,10 @@ export type BundleProduct = {
|
|
|
104
104
|
* The ULID of the product
|
|
105
105
|
*/
|
|
106
106
|
id: string;
|
|
107
|
-
sku
|
|
107
|
+
sku: string | null;
|
|
108
108
|
name: string;
|
|
109
|
-
slug: string;
|
|
110
|
-
shortDescription
|
|
109
|
+
slug: string | null;
|
|
110
|
+
shortDescription: string | null;
|
|
111
111
|
productType: BundleProductProductType;
|
|
112
112
|
active?: boolean | undefined;
|
|
113
113
|
/**
|
|
@@ -130,11 +130,11 @@ export type BundleProduct = {
|
|
|
130
130
|
* Indicates whether the product has variants
|
|
131
131
|
*/
|
|
132
132
|
hasVariant?: boolean | undefined;
|
|
133
|
-
tags
|
|
134
|
-
categoryIds
|
|
135
|
-
reviewsRatingSum
|
|
136
|
-
reviewsCount
|
|
137
|
-
attributes
|
|
133
|
+
tags: Array<string> | null;
|
|
134
|
+
categoryIds: Array<string>;
|
|
135
|
+
reviewsRatingSum: number;
|
|
136
|
+
reviewsCount: number;
|
|
137
|
+
attributes: Array<ProductAttribute>;
|
|
138
138
|
pricing: ProductPricing;
|
|
139
139
|
/**
|
|
140
140
|
* this will be used if has_variant is true, to auto set default values.
|
|
@@ -143,7 +143,7 @@ export type BundleProduct = {
|
|
|
143
143
|
promotion: ProductPromotion | null;
|
|
144
144
|
images: Array<ProductImage>;
|
|
145
145
|
subscription: Array<ProductSubscription>;
|
|
146
|
-
bundleItems
|
|
146
|
+
bundleItems: Array<BundleProductSKU>;
|
|
147
147
|
};
|
|
148
148
|
|
|
149
149
|
/** @internal */
|
|
@@ -198,29 +198,28 @@ export const BundleProductSKU$inboundSchema: z.ZodType<
|
|
|
198
198
|
> = z.object({
|
|
199
199
|
quantity: z.number().int(),
|
|
200
200
|
product_id: z.string(),
|
|
201
|
-
variant_id: z.nullable(z.string())
|
|
201
|
+
variant_id: z.nullable(z.string()),
|
|
202
202
|
sku: z.string(),
|
|
203
|
-
slug: z.
|
|
203
|
+
slug: z.nullable(z.string()),
|
|
204
204
|
product_name: z.string(),
|
|
205
|
-
variant_name: z.nullable(z.string())
|
|
205
|
+
variant_name: z.nullable(z.string()),
|
|
206
206
|
product_type: BundleProductBundleItemsProductType$inboundSchema,
|
|
207
|
-
short_description: z.
|
|
207
|
+
short_description: z.nullable(z.string()),
|
|
208
208
|
active: z.boolean().default(true),
|
|
209
209
|
stock_available: z.boolean().default(true),
|
|
210
210
|
on_offer: z.boolean().default(false),
|
|
211
211
|
on_subscription: z.boolean().default(false),
|
|
212
212
|
on_promotion: z.boolean().default(false),
|
|
213
|
-
category_ids: z.array(z.string())
|
|
214
|
-
tags: z.array(z.string())
|
|
215
|
-
reviews_count: z.number().int()
|
|
216
|
-
reviews_rating_sum: z.
|
|
217
|
-
attributes: z.array(ProductAttribute$inboundSchema)
|
|
218
|
-
images: z.array(ProductImage$inboundSchema)
|
|
219
|
-
pricing: ProductPricing$inboundSchema
|
|
220
|
-
promotion: z.nullable(ProductPromotion$inboundSchema)
|
|
221
|
-
subscription: z.array(ProductSubscription$inboundSchema)
|
|
222
|
-
associated_options: z.nullable(z.record(AssociatedOption$inboundSchema))
|
|
223
|
-
.optional(),
|
|
213
|
+
category_ids: z.array(z.string()),
|
|
214
|
+
tags: z.nullable(z.array(z.string())),
|
|
215
|
+
reviews_count: z.number().int(),
|
|
216
|
+
reviews_rating_sum: z.nullable(z.number()),
|
|
217
|
+
attributes: z.array(ProductAttribute$inboundSchema),
|
|
218
|
+
images: z.array(ProductImage$inboundSchema),
|
|
219
|
+
pricing: ProductPricing$inboundSchema,
|
|
220
|
+
promotion: z.nullable(ProductPromotion$inboundSchema),
|
|
221
|
+
subscription: z.array(ProductSubscription$inboundSchema),
|
|
222
|
+
associated_options: z.nullable(z.record(AssociatedOption$inboundSchema)),
|
|
224
223
|
}).transform((v) => {
|
|
225
224
|
return remap$(v, {
|
|
226
225
|
"product_id": "productId",
|
|
@@ -244,31 +243,28 @@ export const BundleProductSKU$inboundSchema: z.ZodType<
|
|
|
244
243
|
export type BundleProductSKU$Outbound = {
|
|
245
244
|
quantity: number;
|
|
246
245
|
product_id: string;
|
|
247
|
-
variant_id
|
|
246
|
+
variant_id: string | null;
|
|
248
247
|
sku: string;
|
|
249
|
-
slug
|
|
248
|
+
slug: string | null;
|
|
250
249
|
product_name: string;
|
|
251
|
-
variant_name
|
|
250
|
+
variant_name: string | null;
|
|
252
251
|
product_type: string;
|
|
253
|
-
short_description
|
|
252
|
+
short_description: string | null;
|
|
254
253
|
active: boolean;
|
|
255
254
|
stock_available: boolean;
|
|
256
255
|
on_offer: boolean;
|
|
257
256
|
on_subscription: boolean;
|
|
258
257
|
on_promotion: boolean;
|
|
259
|
-
category_ids
|
|
260
|
-
tags
|
|
261
|
-
reviews_count
|
|
262
|
-
reviews_rating_sum
|
|
263
|
-
attributes
|
|
264
|
-
images
|
|
265
|
-
pricing
|
|
266
|
-
promotion
|
|
267
|
-
subscription
|
|
268
|
-
associated_options
|
|
269
|
-
| { [k: string]: AssociatedOption$Outbound }
|
|
270
|
-
| null
|
|
271
|
-
| undefined;
|
|
258
|
+
category_ids: Array<string>;
|
|
259
|
+
tags: Array<string> | null;
|
|
260
|
+
reviews_count: number;
|
|
261
|
+
reviews_rating_sum: number | null;
|
|
262
|
+
attributes: Array<ProductAttribute$Outbound>;
|
|
263
|
+
images: Array<ProductImage$Outbound>;
|
|
264
|
+
pricing: ProductPricing$Outbound;
|
|
265
|
+
promotion: ProductPromotion$Outbound | null;
|
|
266
|
+
subscription: Array<ProductSubscription$Outbound>;
|
|
267
|
+
associated_options: { [k: string]: AssociatedOption$Outbound } | null;
|
|
272
268
|
};
|
|
273
269
|
|
|
274
270
|
/** @internal */
|
|
@@ -279,29 +275,28 @@ export const BundleProductSKU$outboundSchema: z.ZodType<
|
|
|
279
275
|
> = z.object({
|
|
280
276
|
quantity: z.number().int(),
|
|
281
277
|
productId: z.string(),
|
|
282
|
-
variantId: z.nullable(z.string())
|
|
278
|
+
variantId: z.nullable(z.string()),
|
|
283
279
|
sku: z.string(),
|
|
284
|
-
slug: z.
|
|
280
|
+
slug: z.nullable(z.string()),
|
|
285
281
|
productName: z.string(),
|
|
286
|
-
variantName: z.nullable(z.string())
|
|
282
|
+
variantName: z.nullable(z.string()),
|
|
287
283
|
productType: BundleProductBundleItemsProductType$outboundSchema,
|
|
288
|
-
shortDescription: z.
|
|
284
|
+
shortDescription: z.nullable(z.string()),
|
|
289
285
|
active: z.boolean().default(true),
|
|
290
286
|
stockAvailable: z.boolean().default(true),
|
|
291
287
|
onOffer: z.boolean().default(false),
|
|
292
288
|
onSubscription: z.boolean().default(false),
|
|
293
289
|
onPromotion: z.boolean().default(false),
|
|
294
|
-
categoryIds: z.array(z.string())
|
|
295
|
-
tags: z.array(z.string())
|
|
296
|
-
reviewsCount: z.number().int()
|
|
297
|
-
reviewsRatingSum: z.
|
|
298
|
-
attributes: z.array(ProductAttribute$outboundSchema)
|
|
299
|
-
images: z.array(ProductImage$outboundSchema)
|
|
300
|
-
pricing: ProductPricing$outboundSchema
|
|
301
|
-
promotion: z.nullable(ProductPromotion$outboundSchema)
|
|
302
|
-
subscription: z.array(ProductSubscription$outboundSchema)
|
|
303
|
-
associatedOptions: z.nullable(z.record(AssociatedOption$outboundSchema))
|
|
304
|
-
.optional(),
|
|
290
|
+
categoryIds: z.array(z.string()),
|
|
291
|
+
tags: z.nullable(z.array(z.string())),
|
|
292
|
+
reviewsCount: z.number().int(),
|
|
293
|
+
reviewsRatingSum: z.nullable(z.number()),
|
|
294
|
+
attributes: z.array(ProductAttribute$outboundSchema),
|
|
295
|
+
images: z.array(ProductImage$outboundSchema),
|
|
296
|
+
pricing: ProductPricing$outboundSchema,
|
|
297
|
+
promotion: z.nullable(ProductPromotion$outboundSchema),
|
|
298
|
+
subscription: z.array(ProductSubscription$outboundSchema),
|
|
299
|
+
associatedOptions: z.nullable(z.record(AssociatedOption$outboundSchema)),
|
|
305
300
|
}).transform((v) => {
|
|
306
301
|
return remap$(v, {
|
|
307
302
|
productId: "product_id",
|
|
@@ -359,10 +354,10 @@ export const BundleProduct$inboundSchema: z.ZodType<
|
|
|
359
354
|
unknown
|
|
360
355
|
> = z.object({
|
|
361
356
|
id: z.string(),
|
|
362
|
-
sku: z.
|
|
357
|
+
sku: z.nullable(z.string()),
|
|
363
358
|
name: z.string(),
|
|
364
|
-
slug: z.string(),
|
|
365
|
-
short_description: z.
|
|
359
|
+
slug: z.nullable(z.string()),
|
|
360
|
+
short_description: z.nullable(z.string()),
|
|
366
361
|
product_type: BundleProductProductType$inboundSchema,
|
|
367
362
|
active: z.boolean().default(true),
|
|
368
363
|
stock_available: z.boolean().default(true),
|
|
@@ -370,18 +365,17 @@ export const BundleProduct$inboundSchema: z.ZodType<
|
|
|
370
365
|
on_subscription: z.boolean().default(false),
|
|
371
366
|
on_promotion: z.boolean().default(false),
|
|
372
367
|
has_variant: z.boolean().default(false),
|
|
373
|
-
tags: z.nullable(z.array(z.string()))
|
|
374
|
-
category_ids: z.array(z.string())
|
|
375
|
-
reviews_rating_sum: z.number()
|
|
376
|
-
reviews_count: z.number().int()
|
|
377
|
-
attributes: z.array(ProductAttribute$inboundSchema)
|
|
368
|
+
tags: z.nullable(z.array(z.string())),
|
|
369
|
+
category_ids: z.array(z.string()),
|
|
370
|
+
reviews_rating_sum: z.number(),
|
|
371
|
+
reviews_count: z.number().int(),
|
|
372
|
+
attributes: z.array(ProductAttribute$inboundSchema),
|
|
378
373
|
pricing: ProductPricing$inboundSchema,
|
|
379
374
|
variant_options: z.nullable(z.array(VariantOption$inboundSchema)),
|
|
380
375
|
promotion: z.nullable(ProductPromotion$inboundSchema),
|
|
381
376
|
images: z.array(ProductImage$inboundSchema),
|
|
382
377
|
subscription: z.array(ProductSubscription$inboundSchema),
|
|
383
|
-
bundle_items: z.array(z.lazy(() => BundleProductSKU$inboundSchema))
|
|
384
|
-
.optional(),
|
|
378
|
+
bundle_items: z.array(z.lazy(() => BundleProductSKU$inboundSchema)),
|
|
385
379
|
}).transform((v) => {
|
|
386
380
|
return remap$(v, {
|
|
387
381
|
"short_description": "shortDescription",
|
|
@@ -402,10 +396,10 @@ export const BundleProduct$inboundSchema: z.ZodType<
|
|
|
402
396
|
/** @internal */
|
|
403
397
|
export type BundleProduct$Outbound = {
|
|
404
398
|
id: string;
|
|
405
|
-
sku
|
|
399
|
+
sku: string | null;
|
|
406
400
|
name: string;
|
|
407
|
-
slug: string;
|
|
408
|
-
short_description
|
|
401
|
+
slug: string | null;
|
|
402
|
+
short_description: string | null;
|
|
409
403
|
product_type: string;
|
|
410
404
|
active: boolean;
|
|
411
405
|
stock_available: boolean;
|
|
@@ -413,17 +407,17 @@ export type BundleProduct$Outbound = {
|
|
|
413
407
|
on_subscription: boolean;
|
|
414
408
|
on_promotion: boolean;
|
|
415
409
|
has_variant: boolean;
|
|
416
|
-
tags
|
|
417
|
-
category_ids
|
|
418
|
-
reviews_rating_sum
|
|
419
|
-
reviews_count
|
|
420
|
-
attributes
|
|
410
|
+
tags: Array<string> | null;
|
|
411
|
+
category_ids: Array<string>;
|
|
412
|
+
reviews_rating_sum: number;
|
|
413
|
+
reviews_count: number;
|
|
414
|
+
attributes: Array<ProductAttribute$Outbound>;
|
|
421
415
|
pricing: ProductPricing$Outbound;
|
|
422
416
|
variant_options: Array<VariantOption$Outbound> | null;
|
|
423
417
|
promotion: ProductPromotion$Outbound | null;
|
|
424
418
|
images: Array<ProductImage$Outbound>;
|
|
425
419
|
subscription: Array<ProductSubscription$Outbound>;
|
|
426
|
-
bundle_items
|
|
420
|
+
bundle_items: Array<BundleProductSKU$Outbound>;
|
|
427
421
|
};
|
|
428
422
|
|
|
429
423
|
/** @internal */
|
|
@@ -433,10 +427,10 @@ export const BundleProduct$outboundSchema: z.ZodType<
|
|
|
433
427
|
BundleProduct
|
|
434
428
|
> = z.object({
|
|
435
429
|
id: z.string(),
|
|
436
|
-
sku: z.
|
|
430
|
+
sku: z.nullable(z.string()),
|
|
437
431
|
name: z.string(),
|
|
438
|
-
slug: z.string(),
|
|
439
|
-
shortDescription: z.
|
|
432
|
+
slug: z.nullable(z.string()),
|
|
433
|
+
shortDescription: z.nullable(z.string()),
|
|
440
434
|
productType: BundleProductProductType$outboundSchema,
|
|
441
435
|
active: z.boolean().default(true),
|
|
442
436
|
stockAvailable: z.boolean().default(true),
|
|
@@ -444,18 +438,17 @@ export const BundleProduct$outboundSchema: z.ZodType<
|
|
|
444
438
|
onSubscription: z.boolean().default(false),
|
|
445
439
|
onPromotion: z.boolean().default(false),
|
|
446
440
|
hasVariant: z.boolean().default(false),
|
|
447
|
-
tags: z.nullable(z.array(z.string()))
|
|
448
|
-
categoryIds: z.array(z.string())
|
|
449
|
-
reviewsRatingSum: z.number()
|
|
450
|
-
reviewsCount: z.number().int()
|
|
451
|
-
attributes: z.array(ProductAttribute$outboundSchema)
|
|
441
|
+
tags: z.nullable(z.array(z.string())),
|
|
442
|
+
categoryIds: z.array(z.string()),
|
|
443
|
+
reviewsRatingSum: z.number(),
|
|
444
|
+
reviewsCount: z.number().int(),
|
|
445
|
+
attributes: z.array(ProductAttribute$outboundSchema),
|
|
452
446
|
pricing: ProductPricing$outboundSchema,
|
|
453
447
|
variantOptions: z.nullable(z.array(VariantOption$outboundSchema)),
|
|
454
448
|
promotion: z.nullable(ProductPromotion$outboundSchema),
|
|
455
449
|
images: z.array(ProductImage$outboundSchema),
|
|
456
450
|
subscription: z.array(ProductSubscription$outboundSchema),
|
|
457
|
-
bundleItems: z.array(z.lazy(() => BundleProductSKU$outboundSchema))
|
|
458
|
-
.optional(),
|
|
451
|
+
bundleItems: z.array(z.lazy(() => BundleProductSKU$outboundSchema)),
|
|
459
452
|
}).transform((v) => {
|
|
460
453
|
return remap$(v, {
|
|
461
454
|
shortDescription: "short_description",
|