ce-storefront 0.12.5 → 0.13.0
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 +20 -13
- package/docs/sdks/carts/README.md +8 -3
- package/docs/sdks/catalog/README.md +6 -3
- package/docs/sdks/common/README.md +6 -3
- package/docs/sdks/customers/README.md +12 -6
- package/docs/sdks/orders/README.md +6 -3
- package/docs/sdks/shipping/README.md +15 -6
- package/esm/funcs/authGenerateOtp.d.ts +2 -1
- package/esm/funcs/authGenerateOtp.d.ts.map +1 -1
- package/esm/funcs/authGenerateOtp.js +8 -2
- package/esm/funcs/authGenerateOtp.js.map +1 -1
- package/esm/funcs/authGetAnonymousToken.js +2 -0
- package/esm/funcs/authGetAnonymousToken.js.map +1 -1
- package/esm/funcs/authGetUserDetail.js +2 -0
- package/esm/funcs/authGetUserDetail.js.map +1 -1
- package/esm/funcs/authLoginWithEmail.js +2 -0
- package/esm/funcs/authLoginWithEmail.js.map +1 -1
- package/esm/funcs/authLoginWithPhone.js +2 -0
- package/esm/funcs/authLoginWithPhone.js.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts +2 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.js +8 -2
- package/esm/funcs/authLoginWithWhatsapp.js.map +1 -1
- package/esm/funcs/authLogout.d.ts +2 -1
- package/esm/funcs/authLogout.d.ts.map +1 -1
- package/esm/funcs/authLogout.js +8 -2
- package/esm/funcs/authLogout.js.map +1 -1
- package/esm/funcs/authRefreshToken.js +2 -0
- package/esm/funcs/authRefreshToken.js.map +1 -1
- package/esm/funcs/authUpdateUser.js +2 -0
- package/esm/funcs/authUpdateUser.js.map +1 -1
- package/esm/funcs/authVerifyOtp.js +2 -0
- package/esm/funcs/authVerifyOtp.js.map +1 -1
- package/esm/funcs/cartsAddShippingMethod.js +2 -0
- package/esm/funcs/cartsAddShippingMethod.js.map +1 -1
- package/esm/funcs/cartsApplyCoupon.js +2 -0
- package/esm/funcs/cartsApplyCoupon.js.map +1 -1
- package/esm/funcs/cartsCreateCart.d.ts +2 -1
- package/esm/funcs/cartsCreateCart.d.ts.map +1 -1
- package/esm/funcs/cartsCreateCart.js +8 -2
- package/esm/funcs/cartsCreateCart.js.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.js +2 -0
- package/esm/funcs/cartsCreateCartAddress.js.map +1 -1
- package/esm/funcs/cartsDeleteCart.js +2 -0
- package/esm/funcs/cartsDeleteCart.js.map +1 -1
- package/esm/funcs/cartsGetCart.js +2 -0
- package/esm/funcs/cartsGetCart.js.map +1 -1
- package/esm/funcs/cartsGetUserCart.js +2 -0
- package/esm/funcs/cartsGetUserCart.js.map +1 -1
- package/esm/funcs/cartsRedeemLoyaltyPoints.js +2 -0
- package/esm/funcs/cartsRedeemLoyaltyPoints.js.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.js +2 -0
- package/esm/funcs/cartsRemoveCoupon.js.map +1 -1
- package/esm/funcs/cartsRemoveLoyaltyPoints.js +2 -0
- package/esm/funcs/cartsRemoveLoyaltyPoints.js.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.js +2 -0
- package/esm/funcs/cartsRemoveUserCart.js.map +1 -1
- package/esm/funcs/cartsUpdateCart.js +2 -0
- package/esm/funcs/cartsUpdateCart.js.map +1 -1
- package/esm/funcs/catalogGetProductDetail.js +2 -0
- package/esm/funcs/catalogGetProductDetail.js.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.js +2 -0
- package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
- package/esm/funcs/catalogListCategories.d.ts +2 -1
- package/esm/funcs/catalogListCategories.d.ts.map +1 -1
- package/esm/funcs/catalogListCategories.js +8 -2
- package/esm/funcs/catalogListCategories.js.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.js +2 -0
- package/esm/funcs/catalogListCrosssellProducts.js.map +1 -1
- package/esm/funcs/catalogListProductReviews.js +2 -0
- package/esm/funcs/catalogListProductReviews.js.map +1 -1
- package/esm/funcs/catalogListProductVariants.js +2 -0
- package/esm/funcs/catalogListProductVariants.js.map +1 -1
- package/esm/funcs/catalogListProducts.js +2 -0
- package/esm/funcs/catalogListProducts.js.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.js +2 -0
- package/esm/funcs/catalogListSimilarProducts.js.map +1 -1
- package/esm/funcs/catalogListSkus.js +2 -0
- package/esm/funcs/catalogListSkus.js.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.js +2 -0
- package/esm/funcs/catalogListUpsellProducts.js.map +1 -1
- package/esm/funcs/catalogSearchProducts.js +2 -0
- package/esm/funcs/catalogSearchProducts.js.map +1 -1
- package/esm/funcs/commonListCountryPincodes.d.ts +2 -1
- package/esm/funcs/commonListCountryPincodes.d.ts.map +1 -1
- package/esm/funcs/commonListCountryPincodes.js +8 -2
- package/esm/funcs/commonListCountryPincodes.js.map +1 -1
- package/esm/funcs/customersCreateAddress.js +2 -0
- package/esm/funcs/customersCreateAddress.js.map +1 -1
- package/esm/funcs/customersDeleteAddress.js +2 -0
- package/esm/funcs/customersDeleteAddress.js.map +1 -1
- package/esm/funcs/customersGetAddressDetail.js +2 -0
- package/esm/funcs/customersGetAddressDetail.js.map +1 -1
- package/esm/funcs/customersGetLoyaltyDetails.js +2 -0
- package/esm/funcs/customersGetLoyaltyDetails.js.map +1 -1
- package/esm/funcs/customersListAddresses.d.ts +2 -1
- package/esm/funcs/customersListAddresses.d.ts.map +1 -1
- package/esm/funcs/customersListAddresses.js +8 -2
- package/esm/funcs/customersListAddresses.js.map +1 -1
- package/esm/funcs/customersListUserReviews.d.ts +2 -1
- package/esm/funcs/customersListUserReviews.d.ts.map +1 -1
- package/esm/funcs/customersListUserReviews.js +8 -2
- package/esm/funcs/customersListUserReviews.js.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.js +2 -0
- package/esm/funcs/customersUpdateAddressDetail.js.map +1 -1
- package/esm/funcs/ordersCancelOrder.js +2 -0
- package/esm/funcs/ordersCancelOrder.js.map +1 -1
- package/esm/funcs/ordersCreateOrder.js +2 -0
- package/esm/funcs/ordersCreateOrder.js.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.js +2 -0
- package/esm/funcs/ordersGetOrderDetail.js.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.d.ts +2 -1
- package/esm/funcs/ordersGetPaymentStatus.d.ts.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.js +8 -2
- package/esm/funcs/ordersGetPaymentStatus.js.map +1 -1
- package/esm/funcs/ordersListOrderShipments.js +2 -0
- package/esm/funcs/ordersListOrderShipments.js.map +1 -1
- package/esm/funcs/ordersListOrders.js +2 -0
- package/esm/funcs/ordersListOrders.js.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.js +2 -0
- package/esm/funcs/ordersRetryOrderPayment.js.map +1 -1
- package/esm/funcs/shippingShippingMethods.d.ts +3 -1
- package/esm/funcs/shippingShippingMethods.d.ts.map +1 -1
- package/esm/funcs/shippingShippingMethods.js +11 -6
- package/esm/funcs/shippingShippingMethods.js.map +1 -1
- package/esm/hooks/types.d.ts +2 -0
- package/esm/hooks/types.d.ts.map +1 -1
- package/esm/lib/config.d.ts +7 -3
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/sdks.d.ts +1 -0
- package/esm/lib/sdks.d.ts.map +1 -1
- package/esm/lib/sdks.js +3 -3
- package/esm/lib/sdks.js.map +1 -1
- package/esm/models/components/appliedcoupon.d.ts +85 -0
- package/esm/models/components/appliedcoupon.d.ts.map +1 -0
- package/esm/models/components/appliedcoupon.js +87 -0
- package/esm/models/components/appliedcoupon.js.map +1 -0
- package/esm/models/components/appliedpromotion.d.ts +83 -0
- package/esm/models/components/appliedpromotion.d.ts.map +1 -0
- package/esm/models/components/appliedpromotion.js +90 -0
- package/esm/models/components/appliedpromotion.js.map +1 -0
- package/esm/models/components/cart.d.ts +6 -153
- package/esm/models/components/cart.d.ts.map +1 -1
- package/esm/models/components/cart.js +6 -161
- package/esm/models/components/cart.js.map +1 -1
- package/esm/models/components/generateotpwithemail.d.ts +65 -0
- package/esm/models/components/generateotpwithemail.d.ts.map +1 -0
- package/esm/models/components/generateotpwithemail.js +65 -0
- package/esm/models/components/generateotpwithemail.js.map +1 -0
- package/esm/models/components/generateotpwithphone.d.ts +98 -0
- package/esm/models/components/generateotpwithphone.d.ts.map +1 -0
- package/esm/models/components/generateotpwithphone.js +90 -0
- package/esm/models/components/generateotpwithphone.js.map +1 -0
- package/esm/models/components/index.d.ts +4 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +4 -0
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/order.d.ts +6 -181
- package/esm/models/components/order.d.ts.map +1 -1
- package/esm/models/components/order.js +6 -185
- package/esm/models/components/order.js.map +1 -1
- package/esm/models/components/orderdetail.d.ts +6 -181
- package/esm/models/components/orderdetail.d.ts.map +1 -1
- package/esm/models/components/orderdetail.js +6 -185
- package/esm/models/components/orderdetail.js.map +1 -1
- package/esm/models/operations/generateotp.d.ts +3 -104
- package/esm/models/operations/generateotp.d.ts.map +1 -1
- package/esm/models/operations/generateotp.js +9 -72
- package/esm/models/operations/generateotp.js.map +1 -1
- package/esm/models/operations/getshippingmethods.d.ts +0 -21
- package/esm/models/operations/getshippingmethods.d.ts.map +1 -1
- package/esm/models/operations/getshippingmethods.js +0 -21
- package/esm/models/operations/getshippingmethods.js.map +1 -1
- package/esm/models/operations/updateshippingmethod.d.ts +9 -33
- package/esm/models/operations/updateshippingmethod.d.ts.map +1 -1
- package/esm/models/operations/updateshippingmethod.js +6 -27
- package/esm/models/operations/updateshippingmethod.js.map +1 -1
- package/esm/sdk/shipping.d.ts +2 -1
- package/esm/sdk/shipping.d.ts.map +1 -1
- package/esm/sdk/shipping.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authGenerateOtp.ts +17 -2
- package/src/funcs/authGetAnonymousToken.ts +2 -0
- package/src/funcs/authGetUserDetail.ts +2 -0
- package/src/funcs/authLoginWithEmail.ts +2 -0
- package/src/funcs/authLoginWithPhone.ts +2 -0
- package/src/funcs/authLoginWithWhatsapp.ts +17 -2
- package/src/funcs/authLogout.ts +21 -2
- package/src/funcs/authRefreshToken.ts +2 -0
- package/src/funcs/authUpdateUser.ts +2 -0
- package/src/funcs/authVerifyOtp.ts +2 -0
- package/src/funcs/cartsAddShippingMethod.ts +2 -0
- package/src/funcs/cartsApplyCoupon.ts +2 -0
- package/src/funcs/cartsCreateCart.ts +21 -2
- package/src/funcs/cartsCreateCartAddress.ts +2 -0
- package/src/funcs/cartsDeleteCart.ts +2 -0
- package/src/funcs/cartsGetCart.ts +2 -0
- package/src/funcs/cartsGetUserCart.ts +2 -0
- package/src/funcs/cartsRedeemLoyaltyPoints.ts +2 -0
- package/src/funcs/cartsRemoveCoupon.ts +2 -0
- package/src/funcs/cartsRemoveLoyaltyPoints.ts +2 -0
- package/src/funcs/cartsRemoveUserCart.ts +2 -0
- package/src/funcs/cartsUpdateCart.ts +2 -0
- package/src/funcs/catalogGetProductDetail.ts +2 -0
- package/src/funcs/catalogGetVariantDetail.ts +2 -0
- package/src/funcs/catalogListCategories.ts +21 -2
- package/src/funcs/catalogListCrosssellProducts.ts +2 -0
- package/src/funcs/catalogListProductReviews.ts +2 -0
- package/src/funcs/catalogListProductVariants.ts +2 -0
- package/src/funcs/catalogListProducts.ts +2 -0
- package/src/funcs/catalogListSimilarProducts.ts +2 -0
- package/src/funcs/catalogListSkus.ts +2 -0
- package/src/funcs/catalogListUpsellProducts.ts +2 -0
- package/src/funcs/catalogSearchProducts.ts +2 -0
- package/src/funcs/commonListCountryPincodes.ts +21 -2
- package/src/funcs/customersCreateAddress.ts +2 -0
- package/src/funcs/customersDeleteAddress.ts +2 -0
- package/src/funcs/customersGetAddressDetail.ts +2 -0
- package/src/funcs/customersGetLoyaltyDetails.ts +2 -0
- package/src/funcs/customersListAddresses.ts +21 -2
- package/src/funcs/customersListUserReviews.ts +21 -2
- package/src/funcs/customersUpdateAddressDetail.ts +2 -0
- package/src/funcs/ordersCancelOrder.ts +2 -0
- package/src/funcs/ordersCreateOrder.ts +2 -0
- package/src/funcs/ordersGetOrderDetail.ts +2 -0
- package/src/funcs/ordersGetPaymentStatus.ts +21 -2
- package/src/funcs/ordersListOrderShipments.ts +2 -0
- package/src/funcs/ordersListOrders.ts +2 -0
- package/src/funcs/ordersRetryOrderPayment.ts +2 -0
- package/src/funcs/shippingShippingMethods.ts +26 -10
- package/src/hooks/types.ts +2 -0
- package/src/lib/config.ts +7 -3
- package/src/lib/sdks.ts +10 -4
- package/src/models/components/appliedcoupon.ts +139 -0
- package/src/models/components/appliedpromotion.ts +153 -0
- package/src/models/components/cart.ts +20 -265
- package/src/models/components/generateotpwithemail.ts +115 -0
- package/src/models/components/generateotpwithphone.ts +148 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/order.ts +20 -310
- package/src/models/components/orderdetail.ts +20 -319
- package/src/models/operations/generateotp.ts +15 -118
- package/src/models/operations/getshippingmethods.ts +0 -54
- package/src/models/operations/updateshippingmethod.ts +15 -69
- package/src/sdk/shipping.ts +2 -1
|
@@ -9,22 +9,17 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as components from "../components/index.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
* For registered users where address is previously added
|
|
14
|
-
*/
|
|
15
|
-
export type RequestBodyRegisteredUser = {
|
|
12
|
+
export type UpdateShippingMethodRequestBody = {
|
|
16
13
|
shippingProviderId: string;
|
|
17
|
-
courierCompanyId
|
|
14
|
+
courierCompanyId: string | null;
|
|
18
15
|
};
|
|
19
16
|
|
|
20
|
-
export type UpdateShippingMethodRequestBody = RequestBodyRegisteredUser;
|
|
21
|
-
|
|
22
17
|
export type UpdateShippingMethodRequest = {
|
|
23
18
|
/**
|
|
24
19
|
* Cart ID
|
|
25
20
|
*/
|
|
26
21
|
id: string;
|
|
27
|
-
requestBody:
|
|
22
|
+
requestBody: UpdateShippingMethodRequestBody;
|
|
28
23
|
};
|
|
29
24
|
|
|
30
25
|
export type UpdateShippingMethodContent = {
|
|
@@ -44,13 +39,13 @@ export type UpdateShippingMethodResponseBody = {
|
|
|
44
39
|
};
|
|
45
40
|
|
|
46
41
|
/** @internal */
|
|
47
|
-
export const
|
|
48
|
-
|
|
42
|
+
export const UpdateShippingMethodRequestBody$inboundSchema: z.ZodType<
|
|
43
|
+
UpdateShippingMethodRequestBody,
|
|
49
44
|
z.ZodTypeDef,
|
|
50
45
|
unknown
|
|
51
46
|
> = z.object({
|
|
52
47
|
shipping_provider_id: z.string(),
|
|
53
|
-
courier_company_id: z.nullable(z.string())
|
|
48
|
+
courier_company_id: z.nullable(z.string()),
|
|
54
49
|
}).transform((v) => {
|
|
55
50
|
return remap$(v, {
|
|
56
51
|
"shipping_provider_id": "shippingProviderId",
|
|
@@ -59,19 +54,19 @@ export const RequestBodyRegisteredUser$inboundSchema: z.ZodType<
|
|
|
59
54
|
});
|
|
60
55
|
|
|
61
56
|
/** @internal */
|
|
62
|
-
export type
|
|
57
|
+
export type UpdateShippingMethodRequestBody$Outbound = {
|
|
63
58
|
shipping_provider_id: string;
|
|
64
|
-
courier_company_id
|
|
59
|
+
courier_company_id: string | null;
|
|
65
60
|
};
|
|
66
61
|
|
|
67
62
|
/** @internal */
|
|
68
|
-
export const
|
|
69
|
-
|
|
63
|
+
export const UpdateShippingMethodRequestBody$outboundSchema: z.ZodType<
|
|
64
|
+
UpdateShippingMethodRequestBody$Outbound,
|
|
70
65
|
z.ZodTypeDef,
|
|
71
|
-
|
|
66
|
+
UpdateShippingMethodRequestBody
|
|
72
67
|
> = z.object({
|
|
73
68
|
shippingProviderId: z.string(),
|
|
74
|
-
courierCompanyId: z.nullable(z.string())
|
|
69
|
+
courierCompanyId: z.nullable(z.string()),
|
|
75
70
|
}).transform((v) => {
|
|
76
71
|
return remap$(v, {
|
|
77
72
|
shippingProviderId: "shipping_provider_id",
|
|
@@ -79,55 +74,6 @@ export const RequestBodyRegisteredUser$outboundSchema: z.ZodType<
|
|
|
79
74
|
});
|
|
80
75
|
});
|
|
81
76
|
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
-
*/
|
|
86
|
-
export namespace RequestBodyRegisteredUser$ {
|
|
87
|
-
/** @deprecated use `RequestBodyRegisteredUser$inboundSchema` instead. */
|
|
88
|
-
export const inboundSchema = RequestBodyRegisteredUser$inboundSchema;
|
|
89
|
-
/** @deprecated use `RequestBodyRegisteredUser$outboundSchema` instead. */
|
|
90
|
-
export const outboundSchema = RequestBodyRegisteredUser$outboundSchema;
|
|
91
|
-
/** @deprecated use `RequestBodyRegisteredUser$Outbound` instead. */
|
|
92
|
-
export type Outbound = RequestBodyRegisteredUser$Outbound;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function requestBodyRegisteredUserToJSON(
|
|
96
|
-
requestBodyRegisteredUser: RequestBodyRegisteredUser,
|
|
97
|
-
): string {
|
|
98
|
-
return JSON.stringify(
|
|
99
|
-
RequestBodyRegisteredUser$outboundSchema.parse(requestBodyRegisteredUser),
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function requestBodyRegisteredUserFromJSON(
|
|
104
|
-
jsonString: string,
|
|
105
|
-
): SafeParseResult<RequestBodyRegisteredUser, SDKValidationError> {
|
|
106
|
-
return safeParse(
|
|
107
|
-
jsonString,
|
|
108
|
-
(x) => RequestBodyRegisteredUser$inboundSchema.parse(JSON.parse(x)),
|
|
109
|
-
`Failed to parse 'RequestBodyRegisteredUser' from JSON`,
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/** @internal */
|
|
114
|
-
export const UpdateShippingMethodRequestBody$inboundSchema: z.ZodType<
|
|
115
|
-
UpdateShippingMethodRequestBody,
|
|
116
|
-
z.ZodTypeDef,
|
|
117
|
-
unknown
|
|
118
|
-
> = z.lazy(() => RequestBodyRegisteredUser$inboundSchema);
|
|
119
|
-
|
|
120
|
-
/** @internal */
|
|
121
|
-
export type UpdateShippingMethodRequestBody$Outbound =
|
|
122
|
-
RequestBodyRegisteredUser$Outbound;
|
|
123
|
-
|
|
124
|
-
/** @internal */
|
|
125
|
-
export const UpdateShippingMethodRequestBody$outboundSchema: z.ZodType<
|
|
126
|
-
UpdateShippingMethodRequestBody$Outbound,
|
|
127
|
-
z.ZodTypeDef,
|
|
128
|
-
UpdateShippingMethodRequestBody
|
|
129
|
-
> = z.lazy(() => RequestBodyRegisteredUser$outboundSchema);
|
|
130
|
-
|
|
131
77
|
/**
|
|
132
78
|
* @internal
|
|
133
79
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -168,7 +114,7 @@ export const UpdateShippingMethodRequest$inboundSchema: z.ZodType<
|
|
|
168
114
|
unknown
|
|
169
115
|
> = z.object({
|
|
170
116
|
id: z.string(),
|
|
171
|
-
RequestBody: z.lazy(() =>
|
|
117
|
+
RequestBody: z.lazy(() => UpdateShippingMethodRequestBody$inboundSchema),
|
|
172
118
|
}).transform((v) => {
|
|
173
119
|
return remap$(v, {
|
|
174
120
|
"RequestBody": "requestBody",
|
|
@@ -178,7 +124,7 @@ export const UpdateShippingMethodRequest$inboundSchema: z.ZodType<
|
|
|
178
124
|
/** @internal */
|
|
179
125
|
export type UpdateShippingMethodRequest$Outbound = {
|
|
180
126
|
id: string;
|
|
181
|
-
RequestBody:
|
|
127
|
+
RequestBody: UpdateShippingMethodRequestBody$Outbound;
|
|
182
128
|
};
|
|
183
129
|
|
|
184
130
|
/** @internal */
|
|
@@ -188,7 +134,7 @@ export const UpdateShippingMethodRequest$outboundSchema: z.ZodType<
|
|
|
188
134
|
UpdateShippingMethodRequest
|
|
189
135
|
> = z.object({
|
|
190
136
|
id: z.string(),
|
|
191
|
-
requestBody: z.lazy(() =>
|
|
137
|
+
requestBody: z.lazy(() => UpdateShippingMethodRequestBody$outboundSchema),
|
|
192
138
|
}).transform((v) => {
|
|
193
139
|
return remap$(v, {
|
|
194
140
|
requestBody: "RequestBody",
|
package/src/sdk/shipping.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { shippingShippingMethods } from "../funcs/shippingShippingMethods.js";
|
|
6
6
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as components from "../models/components/index.js";
|
|
7
8
|
import * as operations from "../models/operations/index.js";
|
|
8
9
|
import { unwrapAsync } from "../types/fp.js";
|
|
9
10
|
|
|
@@ -15,7 +16,7 @@ export class Shipping extends ClientSDK {
|
|
|
15
16
|
* Checks whether a given pincode is serviceable and returns all available shipping methods based on delivery address
|
|
16
17
|
*/
|
|
17
18
|
async shippingMethods(
|
|
18
|
-
request
|
|
19
|
+
request: components.CartBasedServiceabilityCheck,
|
|
19
20
|
options?: RequestOptions,
|
|
20
21
|
): Promise<operations.GetShippingMethodsResponseBody> {
|
|
21
22
|
return unwrapAsync(shippingShippingMethods(
|