ce-storefront 0.14.0 → 0.14.2
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/catalog/README.md +7 -3
- package/esm/funcs/catalogGetProductDetail.js +1 -1
- package/esm/funcs/catalogGetProductDetail.js.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.js +1 -1
- package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.js +1 -1
- package/esm/funcs/catalogListCrosssellProducts.js.map +1 -1
- package/esm/funcs/catalogListProductVariants.js +1 -1
- package/esm/funcs/catalogListProductVariants.js.map +1 -1
- package/esm/funcs/catalogListProducts.js +1 -1
- package/esm/funcs/catalogListProducts.js.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.js +1 -1
- package/esm/funcs/catalogListSimilarProducts.js.map +1 -1
- package/esm/funcs/catalogListSkus.js +1 -1
- package/esm/funcs/catalogListSkus.js.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.js +1 -1
- package/esm/funcs/catalogListUpsellProducts.js.map +1 -1
- package/esm/funcs/catalogSearchProducts.d.ts +1 -2
- package/esm/funcs/catalogSearchProducts.d.ts.map +1 -1
- package/esm/funcs/catalogSearchProducts.js +4 -4
- package/esm/funcs/catalogSearchProducts.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/files.d.ts +5 -0
- package/esm/lib/files.d.ts.map +1 -1
- package/esm/lib/files.js +40 -0
- package/esm/lib/files.js.map +1 -1
- package/esm/lib/security.d.ts +2 -2
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/models/components/cart.d.ts +12 -12
- package/esm/models/components/cart.d.ts.map +1 -1
- package/esm/models/components/cart.js +12 -12
- package/esm/models/components/cart.js.map +1 -1
- package/esm/models/components/coloroption.js +1 -1
- package/esm/models/components/coloroption.js.map +1 -1
- package/esm/models/components/customeraddress.js +1 -1
- package/esm/models/components/customeraddress.js.map +1 -1
- package/esm/models/components/customeraddressinput.js +1 -1
- package/esm/models/components/customeraddressinput.js.map +1 -1
- package/esm/models/components/discountbasedpromotion.js +1 -1
- package/esm/models/components/discountbasedpromotion.js.map +1 -1
- package/esm/models/components/fixedpricepromotion.js +1 -1
- package/esm/models/components/fixedpricepromotion.js.map +1 -1
- package/esm/models/components/freegoodspromotion.js +1 -1
- package/esm/models/components/freegoodspromotion.js.map +1 -1
- package/esm/models/components/generateotpwithemail.js +1 -1
- package/esm/models/components/generateotpwithemail.js.map +1 -1
- package/esm/models/components/juspaypaymentinfo.d.ts.map +1 -1
- package/esm/models/components/juspaypaymentinfo.js +3 -2
- package/esm/models/components/juspaypaymentinfo.js.map +1 -1
- package/esm/models/components/orderpayment.d.ts +2 -2
- package/esm/models/components/orderpayment.d.ts.map +1 -1
- package/esm/models/components/orderpayment.js +2 -2
- package/esm/models/components/orderpayment.js.map +1 -1
- package/esm/models/components/payupaymentinfo.js +3 -3
- package/esm/models/components/payupaymentinfo.js.map +1 -1
- package/esm/models/components/productpromotion.d.ts +20 -20
- package/esm/models/components/productpromotion.d.ts.map +1 -1
- package/esm/models/components/productpromotion.js +16 -16
- package/esm/models/components/productpromotion.js.map +1 -1
- package/esm/models/components/searchproduct.d.ts +0 -5
- package/esm/models/components/searchproduct.d.ts.map +1 -1
- package/esm/models/components/searchproduct.js +0 -11
- package/esm/models/components/searchproduct.js.map +1 -1
- package/esm/models/components/singleselectoption.js +1 -1
- package/esm/models/components/singleselectoption.js.map +1 -1
- package/esm/models/components/volumebasedpromotion.js +1 -1
- package/esm/models/components/volumebasedpromotion.js.map +1 -1
- package/esm/models/operations/createaddress.js +1 -1
- package/esm/models/operations/createaddress.js.map +1 -1
- package/esm/models/operations/createorder.d.ts +16 -16
- package/esm/models/operations/createorder.d.ts.map +1 -1
- package/esm/models/operations/createorder.js +12 -12
- package/esm/models/operations/createorder.js.map +1 -1
- package/esm/models/operations/generateotp.d.ts +2 -2
- package/esm/models/operations/generateotp.js +2 -2
- package/esm/models/operations/getaddressdetail.js +1 -1
- package/esm/models/operations/getaddressdetail.js.map +1 -1
- package/esm/models/operations/getproductdetail.d.ts +3 -3
- package/esm/models/operations/getproductdetail.d.ts.map +1 -1
- package/esm/models/operations/getproductdetail.js +4 -4
- package/esm/models/operations/getproductdetail.js.map +1 -1
- package/esm/models/operations/getvariantdetail.d.ts +3 -3
- package/esm/models/operations/getvariantdetail.d.ts.map +1 -1
- package/esm/models/operations/getvariantdetail.js +4 -4
- package/esm/models/operations/getvariantdetail.js.map +1 -1
- package/esm/models/operations/listaddresses.js +1 -1
- package/esm/models/operations/listaddresses.js.map +1 -1
- package/esm/models/operations/listcrosssellproducts.d.ts +3 -3
- package/esm/models/operations/listcrosssellproducts.d.ts.map +1 -1
- package/esm/models/operations/listcrosssellproducts.js +4 -4
- package/esm/models/operations/listcrosssellproducts.js.map +1 -1
- package/esm/models/operations/listproducts.d.ts +3 -3
- package/esm/models/operations/listproducts.d.ts.map +1 -1
- package/esm/models/operations/listproducts.js +4 -4
- package/esm/models/operations/listproducts.js.map +1 -1
- package/esm/models/operations/listproductvariants.d.ts +3 -3
- package/esm/models/operations/listproductvariants.d.ts.map +1 -1
- package/esm/models/operations/listproductvariants.js +4 -4
- package/esm/models/operations/listproductvariants.js.map +1 -1
- package/esm/models/operations/listsimilarproducts.d.ts +3 -3
- package/esm/models/operations/listsimilarproducts.d.ts.map +1 -1
- package/esm/models/operations/listsimilarproducts.js +4 -4
- package/esm/models/operations/listsimilarproducts.js.map +1 -1
- package/esm/models/operations/listskus.d.ts +3 -3
- package/esm/models/operations/listskus.d.ts.map +1 -1
- package/esm/models/operations/listskus.js +4 -4
- package/esm/models/operations/listskus.js.map +1 -1
- package/esm/models/operations/listupsellproducts.d.ts +3 -3
- package/esm/models/operations/listupsellproducts.d.ts.map +1 -1
- package/esm/models/operations/listupsellproducts.js +4 -4
- package/esm/models/operations/listupsellproducts.js.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.js +1 -1
- package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
- package/esm/models/operations/retryorderpayment.d.ts +16 -16
- package/esm/models/operations/retryorderpayment.d.ts.map +1 -1
- package/esm/models/operations/retryorderpayment.js +12 -12
- package/esm/models/operations/retryorderpayment.js.map +1 -1
- package/esm/models/operations/searchproducts.d.ts +30 -0
- package/esm/models/operations/searchproducts.d.ts.map +1 -1
- package/esm/models/operations/searchproducts.js +37 -0
- package/esm/models/operations/searchproducts.js.map +1 -1
- package/esm/models/operations/updateaddressdetail.js +1 -1
- package/esm/models/operations/updateaddressdetail.js.map +1 -1
- package/esm/sdk/catalog.d.ts +1 -2
- package/esm/sdk/catalog.d.ts.map +1 -1
- package/esm/sdk/catalog.js.map +1 -1
- package/esm/types/constdatetime.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/catalogGetProductDetail.ts +3 -3
- package/src/funcs/catalogGetVariantDetail.ts +3 -3
- package/src/funcs/catalogListCrosssellProducts.ts +3 -3
- package/src/funcs/catalogListProductVariants.ts +3 -3
- package/src/funcs/catalogListProducts.ts +3 -3
- package/src/funcs/catalogListSimilarProducts.ts +3 -3
- package/src/funcs/catalogListSkus.ts +3 -3
- package/src/funcs/catalogListUpsellProducts.ts +3 -3
- package/src/funcs/catalogSearchProducts.ts +10 -6
- package/src/lib/config.ts +3 -3
- package/src/lib/files.ts +42 -0
- package/src/lib/security.ts +2 -2
- package/src/models/components/cart.ts +24 -24
- package/src/models/components/coloroption.ts +1 -1
- package/src/models/components/customeraddress.ts +1 -1
- package/src/models/components/customeraddressinput.ts +1 -1
- package/src/models/components/discountbasedpromotion.ts +1 -1
- package/src/models/components/fixedpricepromotion.ts +1 -1
- package/src/models/components/freegoodspromotion.ts +1 -1
- package/src/models/components/generateotpwithemail.ts +1 -1
- package/src/models/components/juspaypaymentinfo.ts +3 -2
- package/src/models/components/orderpayment.ts +4 -4
- package/src/models/components/payupaymentinfo.ts +3 -3
- package/src/models/components/productpromotion.ts +48 -48
- package/src/models/components/searchproduct.ts +0 -16
- package/src/models/components/singleselectoption.ts +1 -1
- package/src/models/components/volumebasedpromotion.ts +1 -1
- package/src/models/operations/createaddress.ts +1 -1
- package/src/models/operations/createorder.ts +37 -35
- package/src/models/operations/generateotp.ts +6 -6
- package/src/models/operations/getaddressdetail.ts +1 -1
- package/src/models/operations/getproductdetail.ts +7 -7
- package/src/models/operations/getvariantdetail.ts +7 -7
- package/src/models/operations/listaddresses.ts +1 -1
- package/src/models/operations/listcrosssellproducts.ts +7 -7
- package/src/models/operations/listproducts.ts +7 -7
- package/src/models/operations/listproductvariants.ts +7 -7
- package/src/models/operations/listsimilarproducts.ts +7 -7
- package/src/models/operations/listskus.ts +7 -7
- package/src/models/operations/listupsellproducts.ts +7 -7
- package/src/models/operations/loginwithwhatsapp.ts +1 -1
- package/src/models/operations/retryorderpayment.ts +37 -35
- package/src/models/operations/searchproducts.ts +75 -0
- package/src/models/operations/updateaddressdetail.ts +1 -1
- package/src/sdk/catalog.ts +1 -2
- package/src/types/constdatetime.ts +1 -1
|
@@ -33,35 +33,25 @@ import {
|
|
|
33
33
|
} from "./volumebasedpromotion.js";
|
|
34
34
|
|
|
35
35
|
export type Details =
|
|
36
|
-
| (FixedPricePromotion & { promotionType: "fixed-price" })
|
|
37
|
-
| (VolumeBasedPromotion & { promotionType: "volume-based" })
|
|
38
36
|
| (FreeGoodsPromotion & { promotionType: "free-goods" })
|
|
39
|
-
| (DiscountBasedPromotion & { promotionType: "discount" })
|
|
37
|
+
| (DiscountBasedPromotion & { promotionType: "discount" })
|
|
38
|
+
| (FixedPricePromotion & { promotionType: "fixed-price" })
|
|
39
|
+
| (VolumeBasedPromotion & { promotionType: "volume-based" });
|
|
40
40
|
|
|
41
41
|
export type ProductPromotion = {
|
|
42
42
|
id: string;
|
|
43
43
|
startsAt: Date;
|
|
44
44
|
expiresAt: Date | null;
|
|
45
45
|
details:
|
|
46
|
-
| (FixedPricePromotion & { promotionType: "fixed-price" })
|
|
47
|
-
| (VolumeBasedPromotion & { promotionType: "volume-based" })
|
|
48
46
|
| (FreeGoodsPromotion & { promotionType: "free-goods" })
|
|
49
|
-
| (DiscountBasedPromotion & { promotionType: "discount" })
|
|
47
|
+
| (DiscountBasedPromotion & { promotionType: "discount" })
|
|
48
|
+
| (FixedPricePromotion & { promotionType: "fixed-price" })
|
|
49
|
+
| (VolumeBasedPromotion & { promotionType: "volume-based" });
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
/** @internal */
|
|
53
53
|
export const Details$inboundSchema: z.ZodType<Details, z.ZodTypeDef, unknown> =
|
|
54
54
|
z.union([
|
|
55
|
-
FixedPricePromotion$inboundSchema.and(
|
|
56
|
-
z.object({ promotion_type: z.literal("fixed-price") }).transform((v) => ({
|
|
57
|
-
promotionType: v.promotion_type,
|
|
58
|
-
})),
|
|
59
|
-
),
|
|
60
|
-
VolumeBasedPromotion$inboundSchema.and(
|
|
61
|
-
z.object({ promotion_type: z.literal("volume-based") }).transform((
|
|
62
|
-
v,
|
|
63
|
-
) => ({ promotionType: v.promotion_type })),
|
|
64
|
-
),
|
|
65
55
|
FreeGoodsPromotion$inboundSchema.and(
|
|
66
56
|
z.object({ promotion_type: z.literal("free-goods") }).transform((v) => ({
|
|
67
57
|
promotionType: v.promotion_type,
|
|
@@ -72,14 +62,24 @@ export const Details$inboundSchema: z.ZodType<Details, z.ZodTypeDef, unknown> =
|
|
|
72
62
|
promotionType: v.promotion_type,
|
|
73
63
|
})),
|
|
74
64
|
),
|
|
65
|
+
FixedPricePromotion$inboundSchema.and(
|
|
66
|
+
z.object({ promotion_type: z.literal("fixed-price") }).transform((v) => ({
|
|
67
|
+
promotionType: v.promotion_type,
|
|
68
|
+
})),
|
|
69
|
+
),
|
|
70
|
+
VolumeBasedPromotion$inboundSchema.and(
|
|
71
|
+
z.object({ promotion_type: z.literal("volume-based") }).transform((
|
|
72
|
+
v,
|
|
73
|
+
) => ({ promotionType: v.promotion_type })),
|
|
74
|
+
),
|
|
75
75
|
]);
|
|
76
76
|
|
|
77
77
|
/** @internal */
|
|
78
78
|
export type Details$Outbound =
|
|
79
|
-
| (FixedPricePromotion$Outbound & { promotion_type: "fixed-price" })
|
|
80
|
-
| (VolumeBasedPromotion$Outbound & { promotion_type: "volume-based" })
|
|
81
79
|
| (FreeGoodsPromotion$Outbound & { promotion_type: "free-goods" })
|
|
82
|
-
| (DiscountBasedPromotion$Outbound & { promotion_type: "discount" })
|
|
80
|
+
| (DiscountBasedPromotion$Outbound & { promotion_type: "discount" })
|
|
81
|
+
| (FixedPricePromotion$Outbound & { promotion_type: "fixed-price" })
|
|
82
|
+
| (VolumeBasedPromotion$Outbound & { promotion_type: "volume-based" });
|
|
83
83
|
|
|
84
84
|
/** @internal */
|
|
85
85
|
export const Details$outboundSchema: z.ZodType<
|
|
@@ -87,23 +87,23 @@ export const Details$outboundSchema: z.ZodType<
|
|
|
87
87
|
z.ZodTypeDef,
|
|
88
88
|
Details
|
|
89
89
|
> = z.union([
|
|
90
|
-
|
|
91
|
-
z.object({ promotionType: z.literal("
|
|
90
|
+
FreeGoodsPromotion$outboundSchema.and(
|
|
91
|
+
z.object({ promotionType: z.literal("free-goods") }).transform((v) => ({
|
|
92
92
|
promotion_type: v.promotionType,
|
|
93
93
|
})),
|
|
94
94
|
),
|
|
95
|
-
|
|
96
|
-
z.object({ promotionType: z.literal("
|
|
95
|
+
DiscountBasedPromotion$outboundSchema.and(
|
|
96
|
+
z.object({ promotionType: z.literal("discount") }).transform((v) => ({
|
|
97
97
|
promotion_type: v.promotionType,
|
|
98
98
|
})),
|
|
99
99
|
),
|
|
100
|
-
|
|
101
|
-
z.object({ promotionType: z.literal("
|
|
100
|
+
FixedPricePromotion$outboundSchema.and(
|
|
101
|
+
z.object({ promotionType: z.literal("fixed-price") }).transform((v) => ({
|
|
102
102
|
promotion_type: v.promotionType,
|
|
103
103
|
})),
|
|
104
104
|
),
|
|
105
|
-
|
|
106
|
-
z.object({ promotionType: z.literal("
|
|
105
|
+
VolumeBasedPromotion$outboundSchema.and(
|
|
106
|
+
z.object({ promotionType: z.literal("volume-based") }).transform((v) => ({
|
|
107
107
|
promotion_type: v.promotionType,
|
|
108
108
|
})),
|
|
109
109
|
),
|
|
@@ -148,16 +148,6 @@ export const ProductPromotion$inboundSchema: z.ZodType<
|
|
|
148
148
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
149
149
|
),
|
|
150
150
|
details: z.union([
|
|
151
|
-
FixedPricePromotion$inboundSchema.and(
|
|
152
|
-
z.object({ promotion_type: z.literal("fixed-price") }).transform((v) => ({
|
|
153
|
-
promotionType: v.promotion_type,
|
|
154
|
-
})),
|
|
155
|
-
),
|
|
156
|
-
VolumeBasedPromotion$inboundSchema.and(
|
|
157
|
-
z.object({ promotion_type: z.literal("volume-based") }).transform((
|
|
158
|
-
v,
|
|
159
|
-
) => ({ promotionType: v.promotion_type })),
|
|
160
|
-
),
|
|
161
151
|
FreeGoodsPromotion$inboundSchema.and(
|
|
162
152
|
z.object({ promotion_type: z.literal("free-goods") }).transform((v) => ({
|
|
163
153
|
promotionType: v.promotion_type,
|
|
@@ -168,6 +158,16 @@ export const ProductPromotion$inboundSchema: z.ZodType<
|
|
|
168
158
|
promotionType: v.promotion_type,
|
|
169
159
|
})),
|
|
170
160
|
),
|
|
161
|
+
FixedPricePromotion$inboundSchema.and(
|
|
162
|
+
z.object({ promotion_type: z.literal("fixed-price") }).transform((v) => ({
|
|
163
|
+
promotionType: v.promotion_type,
|
|
164
|
+
})),
|
|
165
|
+
),
|
|
166
|
+
VolumeBasedPromotion$inboundSchema.and(
|
|
167
|
+
z.object({ promotion_type: z.literal("volume-based") }).transform((
|
|
168
|
+
v,
|
|
169
|
+
) => ({ promotionType: v.promotion_type })),
|
|
170
|
+
),
|
|
171
171
|
]),
|
|
172
172
|
}).transform((v) => {
|
|
173
173
|
return remap$(v, {
|
|
@@ -182,10 +182,10 @@ export type ProductPromotion$Outbound = {
|
|
|
182
182
|
starts_at: string;
|
|
183
183
|
expires_at: string | null;
|
|
184
184
|
details:
|
|
185
|
-
| (FixedPricePromotion$Outbound & { promotion_type: "fixed-price" })
|
|
186
|
-
| (VolumeBasedPromotion$Outbound & { promotion_type: "volume-based" })
|
|
187
185
|
| (FreeGoodsPromotion$Outbound & { promotion_type: "free-goods" })
|
|
188
|
-
| (DiscountBasedPromotion$Outbound & { promotion_type: "discount" })
|
|
186
|
+
| (DiscountBasedPromotion$Outbound & { promotion_type: "discount" })
|
|
187
|
+
| (FixedPricePromotion$Outbound & { promotion_type: "fixed-price" })
|
|
188
|
+
| (VolumeBasedPromotion$Outbound & { promotion_type: "volume-based" });
|
|
189
189
|
};
|
|
190
190
|
|
|
191
191
|
/** @internal */
|
|
@@ -198,23 +198,23 @@ export const ProductPromotion$outboundSchema: z.ZodType<
|
|
|
198
198
|
startsAt: z.date().transform(v => v.toISOString()),
|
|
199
199
|
expiresAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
200
200
|
details: z.union([
|
|
201
|
-
|
|
202
|
-
z.object({ promotionType: z.literal("
|
|
201
|
+
FreeGoodsPromotion$outboundSchema.and(
|
|
202
|
+
z.object({ promotionType: z.literal("free-goods") }).transform((v) => ({
|
|
203
203
|
promotion_type: v.promotionType,
|
|
204
204
|
})),
|
|
205
205
|
),
|
|
206
|
-
|
|
207
|
-
z.object({ promotionType: z.literal("
|
|
206
|
+
DiscountBasedPromotion$outboundSchema.and(
|
|
207
|
+
z.object({ promotionType: z.literal("discount") }).transform((v) => ({
|
|
208
208
|
promotion_type: v.promotionType,
|
|
209
209
|
})),
|
|
210
210
|
),
|
|
211
|
-
|
|
212
|
-
z.object({ promotionType: z.literal("
|
|
211
|
+
FixedPricePromotion$outboundSchema.and(
|
|
212
|
+
z.object({ promotionType: z.literal("fixed-price") }).transform((v) => ({
|
|
213
213
|
promotion_type: v.promotionType,
|
|
214
214
|
})),
|
|
215
215
|
),
|
|
216
|
-
|
|
217
|
-
z.object({ promotionType: z.literal("
|
|
216
|
+
VolumeBasedPromotion$outboundSchema.and(
|
|
217
|
+
z.object({ promotionType: z.literal("volume-based") }).transform((v) => ({
|
|
218
218
|
promotion_type: v.promotionType,
|
|
219
219
|
})),
|
|
220
220
|
),
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -24,10 +23,6 @@ export type SearchProduct = {
|
|
|
24
23
|
* Maximum number of records returned for a page.
|
|
25
24
|
*/
|
|
26
25
|
limit?: number | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* to return pricing, promotion and subscriptions data for a specific customer group. Otherwise it will return data as per default customer group.
|
|
29
|
-
*/
|
|
30
|
-
customerGroupId?: string | undefined;
|
|
31
26
|
/**
|
|
32
27
|
* provide list of attributes for specific facets or * for all facets.
|
|
33
28
|
*
|
|
@@ -51,12 +46,7 @@ export const SearchProduct$inboundSchema: z.ZodType<
|
|
|
51
46
|
query: z.string(),
|
|
52
47
|
page: z.number().int().default(1),
|
|
53
48
|
limit: z.number().int().default(25),
|
|
54
|
-
customer_group_id: z.string().optional(),
|
|
55
49
|
facets: z.array(z.string()).optional(),
|
|
56
|
-
}).transform((v) => {
|
|
57
|
-
return remap$(v, {
|
|
58
|
-
"customer_group_id": "customerGroupId",
|
|
59
|
-
});
|
|
60
50
|
});
|
|
61
51
|
|
|
62
52
|
/** @internal */
|
|
@@ -64,7 +54,6 @@ export type SearchProduct$Outbound = {
|
|
|
64
54
|
query: string;
|
|
65
55
|
page: number;
|
|
66
56
|
limit: number;
|
|
67
|
-
customer_group_id?: string | undefined;
|
|
68
57
|
facets?: Array<string> | undefined;
|
|
69
58
|
};
|
|
70
59
|
|
|
@@ -77,12 +66,7 @@ export const SearchProduct$outboundSchema: z.ZodType<
|
|
|
77
66
|
query: z.string(),
|
|
78
67
|
page: z.number().int().default(1),
|
|
79
68
|
limit: z.number().int().default(25),
|
|
80
|
-
customerGroupId: z.string().optional(),
|
|
81
69
|
facets: z.array(z.string()).optional(),
|
|
82
|
-
}).transform((v) => {
|
|
83
|
-
return remap$(v, {
|
|
84
|
-
customerGroupId: "customer_group_id",
|
|
85
|
-
});
|
|
86
70
|
});
|
|
87
71
|
|
|
88
72
|
/**
|
|
@@ -29,7 +29,7 @@ export const SingleSelectOption$inboundSchema: z.ZodType<
|
|
|
29
29
|
unknown
|
|
30
30
|
> = z.object({
|
|
31
31
|
name: z.string(),
|
|
32
|
-
type: z.literal("single-select").optional(),
|
|
32
|
+
type: z.literal("single-select").default("single-select").optional(),
|
|
33
33
|
value: z.string(),
|
|
34
34
|
});
|
|
35
35
|
|
|
@@ -123,7 +123,7 @@ export const VolumeBasedPromotion$inboundSchema: z.ZodType<
|
|
|
123
123
|
z.ZodTypeDef,
|
|
124
124
|
unknown
|
|
125
125
|
> = z.object({
|
|
126
|
-
promotion_type: z.literal("volume-based").optional(),
|
|
126
|
+
promotion_type: z.literal("volume-based").default("volume-based").optional(),
|
|
127
127
|
slabs: z.array(z.lazy(() => Slabs$inboundSchema)),
|
|
128
128
|
}).transform((v) => {
|
|
129
129
|
return remap$(v, {
|
|
@@ -91,7 +91,7 @@ export const CreateAddressRequestBody$inboundSchema: z.ZodType<
|
|
|
91
91
|
pincode: z.string(),
|
|
92
92
|
city: z.string(),
|
|
93
93
|
state: z.string(),
|
|
94
|
-
country: z.literal("India").optional(),
|
|
94
|
+
country: z.literal("India").default("India").optional(),
|
|
95
95
|
tax_identification_number: z.nullable(z.string()),
|
|
96
96
|
business_name: z.nullable(z.string()),
|
|
97
97
|
is_default_billing: z.boolean().optional(),
|
|
@@ -17,8 +17,8 @@ export const PaymentGateway = {
|
|
|
17
17
|
export type PaymentGateway = ClosedEnum<typeof PaymentGateway>;
|
|
18
18
|
|
|
19
19
|
export type PaymentGatewayParams =
|
|
20
|
-
| (components.
|
|
21
|
-
| (components.
|
|
20
|
+
| (components.JuspayPaymentGatewayParams & { paymentGateway: "JUSPAY" })
|
|
21
|
+
| (components.PayuPaymentGatewayParams & { paymentGateway: "PAYU" });
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Request body
|
|
@@ -27,18 +27,18 @@ export type CreateOrderRequestBody = {
|
|
|
27
27
|
cartId: string;
|
|
28
28
|
paymentGateway: PaymentGateway;
|
|
29
29
|
paymentGatewayParams:
|
|
30
|
-
| (components.
|
|
31
|
-
| (components.
|
|
30
|
+
| (components.JuspayPaymentGatewayParams & { paymentGateway: "JUSPAY" })
|
|
31
|
+
| (components.PayuPaymentGatewayParams & { paymentGateway: "PAYU" });
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
export type PaymentInfo =
|
|
35
|
-
| components.
|
|
36
|
-
| components.
|
|
35
|
+
| components.PayuPaymentInfo
|
|
36
|
+
| components.JuspayPaymentInfo;
|
|
37
37
|
|
|
38
38
|
export type CreateOrderContent = {
|
|
39
39
|
order: components.Order;
|
|
40
40
|
paymentRequired: boolean;
|
|
41
|
-
paymentInfo: components.
|
|
41
|
+
paymentInfo: components.PayuPaymentInfo | components.JuspayPaymentInfo;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
/**
|
|
@@ -77,13 +77,13 @@ export const PaymentGatewayParams$inboundSchema: z.ZodType<
|
|
|
77
77
|
z.ZodTypeDef,
|
|
78
78
|
unknown
|
|
79
79
|
> = z.union([
|
|
80
|
-
components.
|
|
81
|
-
z.object({ payment_gateway: z.literal("
|
|
80
|
+
components.JuspayPaymentGatewayParams$inboundSchema.and(
|
|
81
|
+
z.object({ payment_gateway: z.literal("JUSPAY") }).transform((v) => ({
|
|
82
82
|
paymentGateway: v.payment_gateway,
|
|
83
83
|
})),
|
|
84
84
|
),
|
|
85
|
-
components.
|
|
86
|
-
z.object({ payment_gateway: z.literal("
|
|
85
|
+
components.PayuPaymentGatewayParams$inboundSchema.and(
|
|
86
|
+
z.object({ payment_gateway: z.literal("PAYU") }).transform((v) => ({
|
|
87
87
|
paymentGateway: v.payment_gateway,
|
|
88
88
|
})),
|
|
89
89
|
),
|
|
@@ -91,9 +91,11 @@ export const PaymentGatewayParams$inboundSchema: z.ZodType<
|
|
|
91
91
|
|
|
92
92
|
/** @internal */
|
|
93
93
|
export type PaymentGatewayParams$Outbound =
|
|
94
|
-
| (components.PayuPaymentGatewayParams$Outbound & { payment_gateway: "PAYU" })
|
|
95
94
|
| (components.JuspayPaymentGatewayParams$Outbound & {
|
|
96
95
|
payment_gateway: "JUSPAY";
|
|
96
|
+
})
|
|
97
|
+
| (components.PayuPaymentGatewayParams$Outbound & {
|
|
98
|
+
payment_gateway: "PAYU";
|
|
97
99
|
});
|
|
98
100
|
|
|
99
101
|
/** @internal */
|
|
@@ -102,13 +104,13 @@ export const PaymentGatewayParams$outboundSchema: z.ZodType<
|
|
|
102
104
|
z.ZodTypeDef,
|
|
103
105
|
PaymentGatewayParams
|
|
104
106
|
> = z.union([
|
|
105
|
-
components.
|
|
106
|
-
z.object({ paymentGateway: z.literal("
|
|
107
|
+
components.JuspayPaymentGatewayParams$outboundSchema.and(
|
|
108
|
+
z.object({ paymentGateway: z.literal("JUSPAY") }).transform((v) => ({
|
|
107
109
|
payment_gateway: v.paymentGateway,
|
|
108
110
|
})),
|
|
109
111
|
),
|
|
110
|
-
components.
|
|
111
|
-
z.object({ paymentGateway: z.literal("
|
|
112
|
+
components.PayuPaymentGatewayParams$outboundSchema.and(
|
|
113
|
+
z.object({ paymentGateway: z.literal("PAYU") }).transform((v) => ({
|
|
112
114
|
payment_gateway: v.paymentGateway,
|
|
113
115
|
})),
|
|
114
116
|
),
|
|
@@ -154,13 +156,13 @@ export const CreateOrderRequestBody$inboundSchema: z.ZodType<
|
|
|
154
156
|
cart_id: z.string(),
|
|
155
157
|
payment_gateway: PaymentGateway$inboundSchema,
|
|
156
158
|
payment_gateway_params: z.union([
|
|
157
|
-
components.
|
|
158
|
-
z.object({ payment_gateway: z.literal("
|
|
159
|
+
components.JuspayPaymentGatewayParams$inboundSchema.and(
|
|
160
|
+
z.object({ payment_gateway: z.literal("JUSPAY") }).transform((v) => ({
|
|
159
161
|
paymentGateway: v.payment_gateway,
|
|
160
162
|
})),
|
|
161
163
|
),
|
|
162
|
-
components.
|
|
163
|
-
z.object({ payment_gateway: z.literal("
|
|
164
|
+
components.PayuPaymentGatewayParams$inboundSchema.and(
|
|
165
|
+
z.object({ payment_gateway: z.literal("PAYU") }).transform((v) => ({
|
|
164
166
|
paymentGateway: v.payment_gateway,
|
|
165
167
|
})),
|
|
166
168
|
),
|
|
@@ -178,11 +180,11 @@ export type CreateOrderRequestBody$Outbound = {
|
|
|
178
180
|
cart_id: string;
|
|
179
181
|
payment_gateway: string;
|
|
180
182
|
payment_gateway_params:
|
|
181
|
-
| (components.PayuPaymentGatewayParams$Outbound & {
|
|
182
|
-
payment_gateway: "PAYU";
|
|
183
|
-
})
|
|
184
183
|
| (components.JuspayPaymentGatewayParams$Outbound & {
|
|
185
184
|
payment_gateway: "JUSPAY";
|
|
185
|
+
})
|
|
186
|
+
| (components.PayuPaymentGatewayParams$Outbound & {
|
|
187
|
+
payment_gateway: "PAYU";
|
|
186
188
|
});
|
|
187
189
|
};
|
|
188
190
|
|
|
@@ -195,13 +197,13 @@ export const CreateOrderRequestBody$outboundSchema: z.ZodType<
|
|
|
195
197
|
cartId: z.string(),
|
|
196
198
|
paymentGateway: PaymentGateway$outboundSchema,
|
|
197
199
|
paymentGatewayParams: z.union([
|
|
198
|
-
components.
|
|
199
|
-
z.object({ paymentGateway: z.literal("
|
|
200
|
+
components.JuspayPaymentGatewayParams$outboundSchema.and(
|
|
201
|
+
z.object({ paymentGateway: z.literal("JUSPAY") }).transform((v) => ({
|
|
200
202
|
payment_gateway: v.paymentGateway,
|
|
201
203
|
})),
|
|
202
204
|
),
|
|
203
|
-
components.
|
|
204
|
-
z.object({ paymentGateway: z.literal("
|
|
205
|
+
components.PayuPaymentGatewayParams$outboundSchema.and(
|
|
206
|
+
z.object({ paymentGateway: z.literal("PAYU") }).transform((v) => ({
|
|
205
207
|
payment_gateway: v.paymentGateway,
|
|
206
208
|
})),
|
|
207
209
|
),
|
|
@@ -251,14 +253,14 @@ export const PaymentInfo$inboundSchema: z.ZodType<
|
|
|
251
253
|
z.ZodTypeDef,
|
|
252
254
|
unknown
|
|
253
255
|
> = z.union([
|
|
254
|
-
components.JuspayPaymentInfo$inboundSchema,
|
|
255
256
|
components.PayuPaymentInfo$inboundSchema,
|
|
257
|
+
components.JuspayPaymentInfo$inboundSchema,
|
|
256
258
|
]);
|
|
257
259
|
|
|
258
260
|
/** @internal */
|
|
259
261
|
export type PaymentInfo$Outbound =
|
|
260
|
-
| components.
|
|
261
|
-
| components.
|
|
262
|
+
| components.PayuPaymentInfo$Outbound
|
|
263
|
+
| components.JuspayPaymentInfo$Outbound;
|
|
262
264
|
|
|
263
265
|
/** @internal */
|
|
264
266
|
export const PaymentInfo$outboundSchema: z.ZodType<
|
|
@@ -266,8 +268,8 @@ export const PaymentInfo$outboundSchema: z.ZodType<
|
|
|
266
268
|
z.ZodTypeDef,
|
|
267
269
|
PaymentInfo
|
|
268
270
|
> = z.union([
|
|
269
|
-
components.JuspayPaymentInfo$outboundSchema,
|
|
270
271
|
components.PayuPaymentInfo$outboundSchema,
|
|
272
|
+
components.JuspayPaymentInfo$outboundSchema,
|
|
271
273
|
]);
|
|
272
274
|
|
|
273
275
|
/**
|
|
@@ -306,8 +308,8 @@ export const CreateOrderContent$inboundSchema: z.ZodType<
|
|
|
306
308
|
order: components.Order$inboundSchema,
|
|
307
309
|
payment_required: z.boolean(),
|
|
308
310
|
payment_info: z.union([
|
|
309
|
-
components.JuspayPaymentInfo$inboundSchema,
|
|
310
311
|
components.PayuPaymentInfo$inboundSchema,
|
|
312
|
+
components.JuspayPaymentInfo$inboundSchema,
|
|
311
313
|
]),
|
|
312
314
|
}).transform((v) => {
|
|
313
315
|
return remap$(v, {
|
|
@@ -321,8 +323,8 @@ export type CreateOrderContent$Outbound = {
|
|
|
321
323
|
order: components.Order$Outbound;
|
|
322
324
|
payment_required: boolean;
|
|
323
325
|
payment_info:
|
|
324
|
-
| components.
|
|
325
|
-
| components.
|
|
326
|
+
| components.PayuPaymentInfo$Outbound
|
|
327
|
+
| components.JuspayPaymentInfo$Outbound;
|
|
326
328
|
};
|
|
327
329
|
|
|
328
330
|
/** @internal */
|
|
@@ -334,8 +336,8 @@ export const CreateOrderContent$outboundSchema: z.ZodType<
|
|
|
334
336
|
order: components.Order$outboundSchema,
|
|
335
337
|
paymentRequired: z.boolean(),
|
|
336
338
|
paymentInfo: z.union([
|
|
337
|
-
components.JuspayPaymentInfo$outboundSchema,
|
|
338
339
|
components.PayuPaymentInfo$outboundSchema,
|
|
340
|
+
components.JuspayPaymentInfo$outboundSchema,
|
|
339
341
|
]),
|
|
340
342
|
}).transform((v) => {
|
|
341
343
|
return remap$(v, {
|
|
@@ -10,8 +10,8 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type GenerateOtpRequestBody =
|
|
13
|
-
| components.
|
|
14
|
-
| components.
|
|
13
|
+
| components.GenerateOtpWithPhone
|
|
14
|
+
| components.GenerateOtpWithEmail;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* An object containing the response content.
|
|
@@ -51,14 +51,14 @@ export const GenerateOtpRequestBody$inboundSchema: z.ZodType<
|
|
|
51
51
|
z.ZodTypeDef,
|
|
52
52
|
unknown
|
|
53
53
|
> = z.union([
|
|
54
|
-
components.GenerateOtpWithEmail$inboundSchema,
|
|
55
54
|
components.GenerateOtpWithPhone$inboundSchema,
|
|
55
|
+
components.GenerateOtpWithEmail$inboundSchema,
|
|
56
56
|
]);
|
|
57
57
|
|
|
58
58
|
/** @internal */
|
|
59
59
|
export type GenerateOtpRequestBody$Outbound =
|
|
60
|
-
| components.
|
|
61
|
-
| components.
|
|
60
|
+
| components.GenerateOtpWithPhone$Outbound
|
|
61
|
+
| components.GenerateOtpWithEmail$Outbound;
|
|
62
62
|
|
|
63
63
|
/** @internal */
|
|
64
64
|
export const GenerateOtpRequestBody$outboundSchema: z.ZodType<
|
|
@@ -66,8 +66,8 @@ export const GenerateOtpRequestBody$outboundSchema: z.ZodType<
|
|
|
66
66
|
z.ZodTypeDef,
|
|
67
67
|
GenerateOtpRequestBody
|
|
68
68
|
> = z.union([
|
|
69
|
-
components.GenerateOtpWithEmail$outboundSchema,
|
|
70
69
|
components.GenerateOtpWithPhone$outboundSchema,
|
|
70
|
+
components.GenerateOtpWithEmail$outboundSchema,
|
|
71
71
|
]);
|
|
72
72
|
|
|
73
73
|
/**
|
|
@@ -153,7 +153,7 @@ export const Address$inboundSchema: z.ZodType<Address, z.ZodTypeDef, unknown> =
|
|
|
153
153
|
pincode: z.string(),
|
|
154
154
|
city: z.string(),
|
|
155
155
|
state: z.string(),
|
|
156
|
-
country: z.literal("India").optional(),
|
|
156
|
+
country: z.literal("India").default("India").optional(),
|
|
157
157
|
tax_identification_number: z.nullable(z.string()),
|
|
158
158
|
business_name: z.nullable(z.string()),
|
|
159
159
|
is_phone_verified: z.boolean(),
|
|
@@ -15,9 +15,9 @@ export type GetProductDetailRequest = {
|
|
|
15
15
|
*/
|
|
16
16
|
productIdOrSlug: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* 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.
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
xCustomerGroupId?: string | undefined;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
export type GetProductDetailContent = {
|
|
@@ -40,18 +40,18 @@ export const GetProductDetailRequest$inboundSchema: z.ZodType<
|
|
|
40
40
|
unknown
|
|
41
41
|
> = z.object({
|
|
42
42
|
product_id_or_slug: z.string(),
|
|
43
|
-
|
|
43
|
+
"x-customer-group-id": z.string().optional(),
|
|
44
44
|
}).transform((v) => {
|
|
45
45
|
return remap$(v, {
|
|
46
46
|
"product_id_or_slug": "productIdOrSlug",
|
|
47
|
-
"
|
|
47
|
+
"x-customer-group-id": "xCustomerGroupId",
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
/** @internal */
|
|
52
52
|
export type GetProductDetailRequest$Outbound = {
|
|
53
53
|
product_id_or_slug: string;
|
|
54
|
-
|
|
54
|
+
"x-customer-group-id"?: string | undefined;
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
/** @internal */
|
|
@@ -61,11 +61,11 @@ export const GetProductDetailRequest$outboundSchema: z.ZodType<
|
|
|
61
61
|
GetProductDetailRequest
|
|
62
62
|
> = z.object({
|
|
63
63
|
productIdOrSlug: z.string(),
|
|
64
|
-
|
|
64
|
+
xCustomerGroupId: z.string().optional(),
|
|
65
65
|
}).transform((v) => {
|
|
66
66
|
return remap$(v, {
|
|
67
67
|
productIdOrSlug: "product_id_or_slug",
|
|
68
|
-
|
|
68
|
+
xCustomerGroupId: "x-customer-group-id",
|
|
69
69
|
});
|
|
70
70
|
});
|
|
71
71
|
|
|
@@ -19,9 +19,9 @@ export type GetVariantDetailRequest = {
|
|
|
19
19
|
*/
|
|
20
20
|
variantId: string;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* 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.
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
xCustomerGroupId?: string | undefined;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export type GetVariantDetailContent = {
|
|
@@ -45,12 +45,12 @@ export const GetVariantDetailRequest$inboundSchema: z.ZodType<
|
|
|
45
45
|
> = z.object({
|
|
46
46
|
product_id: z.string(),
|
|
47
47
|
variant_id: z.string(),
|
|
48
|
-
|
|
48
|
+
"x-customer-group-id": z.string().optional(),
|
|
49
49
|
}).transform((v) => {
|
|
50
50
|
return remap$(v, {
|
|
51
51
|
"product_id": "productId",
|
|
52
52
|
"variant_id": "variantId",
|
|
53
|
-
"
|
|
53
|
+
"x-customer-group-id": "xCustomerGroupId",
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
|
|
@@ -58,7 +58,7 @@ export const GetVariantDetailRequest$inboundSchema: z.ZodType<
|
|
|
58
58
|
export type GetVariantDetailRequest$Outbound = {
|
|
59
59
|
product_id: string;
|
|
60
60
|
variant_id: string;
|
|
61
|
-
|
|
61
|
+
"x-customer-group-id"?: string | undefined;
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
/** @internal */
|
|
@@ -69,12 +69,12 @@ export const GetVariantDetailRequest$outboundSchema: z.ZodType<
|
|
|
69
69
|
> = z.object({
|
|
70
70
|
productId: z.string(),
|
|
71
71
|
variantId: z.string(),
|
|
72
|
-
|
|
72
|
+
xCustomerGroupId: z.string().optional(),
|
|
73
73
|
}).transform((v) => {
|
|
74
74
|
return remap$(v, {
|
|
75
75
|
productId: "product_id",
|
|
76
76
|
variantId: "variant_id",
|
|
77
|
-
|
|
77
|
+
xCustomerGroupId: "x-customer-group-id",
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
|
|
@@ -166,7 +166,7 @@ export const Addresses$inboundSchema: z.ZodType<
|
|
|
166
166
|
pincode: z.string(),
|
|
167
167
|
city: z.string(),
|
|
168
168
|
state: z.string(),
|
|
169
|
-
country: z.literal("India").optional(),
|
|
169
|
+
country: z.literal("India").default("India").optional(),
|
|
170
170
|
tax_identification_number: z.nullable(z.string()),
|
|
171
171
|
business_name: z.nullable(z.string()),
|
|
172
172
|
is_phone_verified: z.boolean(),
|
|
@@ -27,9 +27,9 @@ export type ListCrosssellProductsRequest = {
|
|
|
27
27
|
*/
|
|
28
28
|
sortBy?: string | undefined;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* 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.
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
xCustomerGroupId?: string | undefined;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
export type ListCrosssellProductsContent = {
|
|
@@ -59,12 +59,12 @@ export const ListCrosssellProductsRequest$inboundSchema: z.ZodType<
|
|
|
59
59
|
page: z.number().int().optional(),
|
|
60
60
|
limit: z.number().int().optional(),
|
|
61
61
|
sort_by: z.string().optional(),
|
|
62
|
-
|
|
62
|
+
"x-customer-group-id": z.string().optional(),
|
|
63
63
|
}).transform((v) => {
|
|
64
64
|
return remap$(v, {
|
|
65
65
|
"product_id": "productId",
|
|
66
66
|
"sort_by": "sortBy",
|
|
67
|
-
"
|
|
67
|
+
"x-customer-group-id": "xCustomerGroupId",
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
|
|
@@ -74,7 +74,7 @@ export type ListCrosssellProductsRequest$Outbound = {
|
|
|
74
74
|
page?: number | undefined;
|
|
75
75
|
limit?: number | undefined;
|
|
76
76
|
sort_by?: string | undefined;
|
|
77
|
-
|
|
77
|
+
"x-customer-group-id"?: string | undefined;
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
/** @internal */
|
|
@@ -87,12 +87,12 @@ export const ListCrosssellProductsRequest$outboundSchema: z.ZodType<
|
|
|
87
87
|
page: z.number().int().optional(),
|
|
88
88
|
limit: z.number().int().optional(),
|
|
89
89
|
sortBy: z.string().optional(),
|
|
90
|
-
|
|
90
|
+
xCustomerGroupId: z.string().optional(),
|
|
91
91
|
}).transform((v) => {
|
|
92
92
|
return remap$(v, {
|
|
93
93
|
productId: "product_id",
|
|
94
94
|
sortBy: "sort_by",
|
|
95
|
-
|
|
95
|
+
xCustomerGroupId: "x-customer-group-id",
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
|