ce-storefront 0.7.1 → 0.7.3
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/esm/funcs/authCheckVerificationStatus.d.ts.map +1 -1
- package/esm/funcs/authCheckVerificationStatus.js +1 -0
- package/esm/funcs/authCheckVerificationStatus.js.map +1 -1
- package/esm/funcs/authCreateNotificationPreferences.d.ts.map +1 -1
- package/esm/funcs/authCreateNotificationPreferences.js +1 -0
- package/esm/funcs/authCreateNotificationPreferences.js.map +1 -1
- package/esm/funcs/authGenerateOtp.d.ts.map +1 -1
- package/esm/funcs/authGenerateOtp.js +1 -0
- package/esm/funcs/authGenerateOtp.js.map +1 -1
- package/esm/funcs/authGetAnonymousToken.d.ts.map +1 -1
- package/esm/funcs/authGetAnonymousToken.js +1 -0
- package/esm/funcs/authGetAnonymousToken.js.map +1 -1
- package/esm/funcs/authGetNotificationPreferences.d.ts.map +1 -1
- package/esm/funcs/authGetNotificationPreferences.js +1 -0
- package/esm/funcs/authGetNotificationPreferences.js.map +1 -1
- package/esm/funcs/authGetUserDetail.d.ts.map +1 -1
- package/esm/funcs/authGetUserDetail.js +1 -0
- package/esm/funcs/authGetUserDetail.js.map +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts.map +1 -1
- package/esm/funcs/authLoginWithEmail.js +1 -0
- package/esm/funcs/authLoginWithEmail.js.map +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts.map +1 -1
- package/esm/funcs/authLoginWithPhone.js +1 -0
- package/esm/funcs/authLoginWithPhone.js.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.js +1 -0
- package/esm/funcs/authLoginWithWhatsapp.js.map +1 -1
- package/esm/funcs/authLogout.d.ts.map +1 -1
- package/esm/funcs/authLogout.js +1 -0
- package/esm/funcs/authLogout.js.map +1 -1
- package/esm/funcs/authRefreshToken.d.ts.map +1 -1
- package/esm/funcs/authRefreshToken.js +1 -0
- package/esm/funcs/authRefreshToken.js.map +1 -1
- package/esm/funcs/authUpdateNotificationPreferences.d.ts.map +1 -1
- package/esm/funcs/authUpdateNotificationPreferences.js +1 -0
- package/esm/funcs/authUpdateNotificationPreferences.js.map +1 -1
- package/esm/funcs/authUpdateUser.d.ts.map +1 -1
- package/esm/funcs/authUpdateUser.js +1 -0
- package/esm/funcs/authUpdateUser.js.map +1 -1
- package/esm/funcs/authVerifyOtp.d.ts.map +1 -1
- package/esm/funcs/authVerifyOtp.js +1 -0
- package/esm/funcs/authVerifyOtp.js.map +1 -1
- package/esm/funcs/campaignsSubscribeNewsletter.d.ts.map +1 -1
- package/esm/funcs/campaignsSubscribeNewsletter.js +1 -0
- package/esm/funcs/campaignsSubscribeNewsletter.js.map +1 -1
- package/esm/funcs/cartsApplyCoupon.d.ts.map +1 -1
- package/esm/funcs/cartsApplyCoupon.js +1 -0
- package/esm/funcs/cartsApplyCoupon.js.map +1 -1
- package/esm/funcs/cartsCreateCart.d.ts.map +1 -1
- package/esm/funcs/cartsCreateCart.js +1 -0
- package/esm/funcs/cartsCreateCart.js.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.d.ts.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.js +1 -0
- package/esm/funcs/cartsCreateCartAddress.js.map +1 -1
- package/esm/funcs/cartsDeleteCart.d.ts.map +1 -1
- package/esm/funcs/cartsDeleteCart.js +1 -0
- package/esm/funcs/cartsDeleteCart.js.map +1 -1
- package/esm/funcs/cartsGetCart.d.ts.map +1 -1
- package/esm/funcs/cartsGetCart.js +1 -0
- package/esm/funcs/cartsGetCart.js.map +1 -1
- package/esm/funcs/cartsGetUserCart.d.ts.map +1 -1
- package/esm/funcs/cartsGetUserCart.js +1 -0
- package/esm/funcs/cartsGetUserCart.js.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.js +1 -0
- package/esm/funcs/cartsRemoveCoupon.js.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.js +1 -0
- package/esm/funcs/cartsRemoveUserCart.js.map +1 -1
- package/esm/funcs/cartsUpdateCart.d.ts.map +1 -1
- package/esm/funcs/cartsUpdateCart.js +1 -0
- package/esm/funcs/cartsUpdateCart.js.map +1 -1
- package/esm/funcs/catalogCreateProductReview.d.ts.map +1 -1
- package/esm/funcs/catalogCreateProductReview.js +1 -0
- package/esm/funcs/catalogCreateProductReview.js.map +1 -1
- package/esm/funcs/catalogGetProductDetail.d.ts.map +1 -1
- package/esm/funcs/catalogGetProductDetail.js +1 -0
- package/esm/funcs/catalogGetProductDetail.js.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.d.ts.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.js +1 -0
- package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
- package/esm/funcs/catalogListCategories.d.ts.map +1 -1
- package/esm/funcs/catalogListCategories.js +1 -0
- package/esm/funcs/catalogListCategories.js.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.js +1 -0
- package/esm/funcs/catalogListCrosssellProducts.js.map +1 -1
- package/esm/funcs/catalogListProductReviews.d.ts.map +1 -1
- package/esm/funcs/catalogListProductReviews.js +1 -0
- package/esm/funcs/catalogListProductReviews.js.map +1 -1
- package/esm/funcs/catalogListProductVariants.d.ts.map +1 -1
- package/esm/funcs/catalogListProductVariants.js +1 -0
- package/esm/funcs/catalogListProductVariants.js.map +1 -1
- package/esm/funcs/catalogListProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListProducts.js +1 -0
- package/esm/funcs/catalogListProducts.js.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.js +1 -0
- package/esm/funcs/catalogListSimilarProducts.js.map +1 -1
- package/esm/funcs/catalogListSkus.d.ts.map +1 -1
- package/esm/funcs/catalogListSkus.js +1 -0
- package/esm/funcs/catalogListSkus.js.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.js +1 -0
- package/esm/funcs/catalogListUpsellProducts.js.map +1 -1
- package/esm/funcs/catalogSearchProducts.d.ts.map +1 -1
- package/esm/funcs/catalogSearchProducts.js +1 -0
- package/esm/funcs/catalogSearchProducts.js.map +1 -1
- package/esm/funcs/commonListCountryPincodes.d.ts.map +1 -1
- package/esm/funcs/commonListCountryPincodes.js +1 -0
- package/esm/funcs/commonListCountryPincodes.js.map +1 -1
- package/esm/funcs/customersCreateAddress.d.ts.map +1 -1
- package/esm/funcs/customersCreateAddress.js +1 -0
- package/esm/funcs/customersCreateAddress.js.map +1 -1
- package/esm/funcs/customersDeleteAddress.d.ts.map +1 -1
- package/esm/funcs/customersDeleteAddress.js +1 -0
- package/esm/funcs/customersDeleteAddress.js.map +1 -1
- package/esm/funcs/customersGetAddressDetail.d.ts.map +1 -1
- package/esm/funcs/customersGetAddressDetail.js +1 -0
- package/esm/funcs/customersGetAddressDetail.js.map +1 -1
- package/esm/funcs/customersListAddresses.d.ts.map +1 -1
- package/esm/funcs/customersListAddresses.js +1 -0
- package/esm/funcs/customersListAddresses.js.map +1 -1
- package/esm/funcs/customersListUserReviews.d.ts.map +1 -1
- package/esm/funcs/customersListUserReviews.js +1 -0
- package/esm/funcs/customersListUserReviews.js.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.d.ts.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.js +1 -0
- package/esm/funcs/customersUpdateAddressDetail.js.map +1 -1
- package/esm/funcs/ordersCancelOrder.d.ts.map +1 -1
- package/esm/funcs/ordersCancelOrder.js +1 -0
- package/esm/funcs/ordersCancelOrder.js.map +1 -1
- package/esm/funcs/ordersCreateOrder.d.ts.map +1 -1
- package/esm/funcs/ordersCreateOrder.js +1 -0
- package/esm/funcs/ordersCreateOrder.js.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.d.ts.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.js +1 -0
- package/esm/funcs/ordersGetOrderDetail.js.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.d.ts.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.js +1 -0
- package/esm/funcs/ordersGetPaymentStatus.js.map +1 -1
- package/esm/funcs/ordersListOrderShipments.d.ts.map +1 -1
- package/esm/funcs/ordersListOrderShipments.js +1 -0
- package/esm/funcs/ordersListOrderShipments.js.map +1 -1
- package/esm/funcs/ordersListOrders.d.ts.map +1 -1
- package/esm/funcs/ordersListOrders.js +1 -0
- package/esm/funcs/ordersListOrders.js.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.d.ts.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.js +1 -0
- package/esm/funcs/ordersRetryOrderPayment.js.map +1 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.d.ts.map +1 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.js +1 -0
- package/esm/funcs/shippingCheckDeliveryAvailability.js.map +1 -1
- package/esm/hooks/types.d.ts +1 -0
- package/esm/hooks/types.d.ts.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js.map +1 -1
- package/esm/models/components/booleanattribute.d.ts +46 -0
- package/esm/models/components/booleanattribute.d.ts.map +1 -0
- package/esm/models/components/booleanattribute.js +39 -0
- package/esm/models/components/booleanattribute.js.map +1 -0
- package/esm/models/components/colorattribute.d.ts +73 -0
- package/esm/models/components/colorattribute.d.ts.map +1 -0
- package/esm/models/components/colorattribute.js +67 -0
- package/esm/models/components/colorattribute.js.map +1 -0
- package/esm/models/components/dateattribute.d.ts +46 -0
- package/esm/models/components/dateattribute.d.ts.map +1 -0
- package/esm/models/components/dateattribute.js +39 -0
- package/esm/models/components/dateattribute.js.map +1 -0
- package/esm/models/components/index.d.ts +7 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +7 -0
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/juspaypaymentgatewayparams.d.ts +24 -0
- package/esm/models/components/juspaypaymentgatewayparams.d.ts.map +1 -1
- package/esm/models/components/juspaypaymentgatewayparams.js +6 -0
- package/esm/models/components/juspaypaymentgatewayparams.js.map +1 -1
- package/esm/models/components/multiselectattribute.d.ts +46 -0
- package/esm/models/components/multiselectattribute.d.ts.map +1 -0
- package/esm/models/components/multiselectattribute.js +39 -0
- package/esm/models/components/multiselectattribute.js.map +1 -0
- package/esm/models/components/numberattribute.d.ts +46 -0
- package/esm/models/components/numberattribute.d.ts.map +1 -0
- package/esm/models/components/numberattribute.js +39 -0
- package/esm/models/components/numberattribute.js.map +1 -0
- package/esm/models/components/productattribute.d.ts +9 -401
- package/esm/models/components/productattribute.d.ts.map +1 -1
- package/esm/models/components/productattribute.js +21 -272
- package/esm/models/components/productattribute.js.map +1 -1
- package/esm/models/components/singleselectattribute.d.ts +46 -0
- package/esm/models/components/singleselectattribute.d.ts.map +1 -0
- package/esm/models/components/singleselectattribute.js +39 -0
- package/esm/models/components/singleselectattribute.js.map +1 -0
- package/esm/models/components/textattribute.d.ts +46 -0
- package/esm/models/components/textattribute.d.ts.map +1 -0
- package/esm/models/components/textattribute.js +39 -0
- package/esm/models/components/textattribute.js.map +1 -0
- package/esm/models/components/variantoption.d.ts +13 -13
- package/esm/models/components/variantoption.d.ts.map +1 -1
- package/esm/models/components/variantoption.js +13 -14
- package/esm/models/components/variantoption.js.map +1 -1
- package/esm/models/operations/getpaymentstatus.d.ts +12 -10
- package/esm/models/operations/getpaymentstatus.d.ts.map +1 -1
- package/esm/models/operations/getpaymentstatus.js +14 -10
- package/esm/models/operations/getpaymentstatus.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authCheckVerificationStatus.ts +1 -0
- package/src/funcs/authCreateNotificationPreferences.ts +1 -0
- package/src/funcs/authGenerateOtp.ts +1 -0
- package/src/funcs/authGetAnonymousToken.ts +1 -0
- package/src/funcs/authGetNotificationPreferences.ts +1 -0
- package/src/funcs/authGetUserDetail.ts +1 -0
- package/src/funcs/authLoginWithEmail.ts +1 -0
- package/src/funcs/authLoginWithPhone.ts +1 -0
- package/src/funcs/authLoginWithWhatsapp.ts +1 -0
- package/src/funcs/authLogout.ts +1 -0
- package/src/funcs/authRefreshToken.ts +1 -0
- package/src/funcs/authUpdateNotificationPreferences.ts +1 -0
- package/src/funcs/authUpdateUser.ts +1 -0
- package/src/funcs/authVerifyOtp.ts +1 -0
- package/src/funcs/campaignsSubscribeNewsletter.ts +1 -0
- package/src/funcs/cartsApplyCoupon.ts +1 -0
- package/src/funcs/cartsCreateCart.ts +1 -0
- package/src/funcs/cartsCreateCartAddress.ts +1 -0
- package/src/funcs/cartsDeleteCart.ts +1 -0
- package/src/funcs/cartsGetCart.ts +1 -0
- package/src/funcs/cartsGetUserCart.ts +1 -0
- package/src/funcs/cartsRemoveCoupon.ts +1 -0
- package/src/funcs/cartsRemoveUserCart.ts +1 -0
- package/src/funcs/cartsUpdateCart.ts +1 -0
- package/src/funcs/catalogCreateProductReview.ts +1 -0
- package/src/funcs/catalogGetProductDetail.ts +1 -0
- package/src/funcs/catalogGetVariantDetail.ts +1 -0
- package/src/funcs/catalogListCategories.ts +1 -0
- package/src/funcs/catalogListCrosssellProducts.ts +1 -0
- package/src/funcs/catalogListProductReviews.ts +1 -0
- package/src/funcs/catalogListProductVariants.ts +1 -0
- package/src/funcs/catalogListProducts.ts +1 -0
- package/src/funcs/catalogListSimilarProducts.ts +1 -0
- package/src/funcs/catalogListSkus.ts +1 -0
- package/src/funcs/catalogListUpsellProducts.ts +1 -0
- package/src/funcs/catalogSearchProducts.ts +1 -0
- package/src/funcs/commonListCountryPincodes.ts +1 -0
- package/src/funcs/customersCreateAddress.ts +1 -0
- package/src/funcs/customersDeleteAddress.ts +1 -0
- package/src/funcs/customersGetAddressDetail.ts +1 -0
- package/src/funcs/customersListAddresses.ts +1 -0
- package/src/funcs/customersListUserReviews.ts +1 -0
- package/src/funcs/customersUpdateAddressDetail.ts +1 -0
- package/src/funcs/ordersCancelOrder.ts +1 -0
- package/src/funcs/ordersCreateOrder.ts +1 -0
- package/src/funcs/ordersGetOrderDetail.ts +1 -0
- package/src/funcs/ordersGetPaymentStatus.ts +1 -0
- package/src/funcs/ordersListOrderShipments.ts +1 -0
- package/src/funcs/ordersListOrders.ts +1 -0
- package/src/funcs/ordersRetryOrderPayment.ts +1 -0
- package/src/funcs/shippingCheckDeliveryAvailability.ts +1 -0
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +0 -1
- package/src/models/components/booleanattribute.ts +91 -0
- package/src/models/components/colorattribute.ts +142 -0
- package/src/models/components/dateattribute.ts +87 -0
- package/src/models/components/index.ts +7 -0
- package/src/models/components/juspaypaymentgatewayparams.ts +24 -0
- package/src/models/components/multiselectattribute.ts +91 -0
- package/src/models/components/numberattribute.ts +89 -0
- package/src/models/components/productattribute.ts +56 -685
- package/src/models/components/singleselectattribute.ts +91 -0
- package/src/models/components/textattribute.ts +87 -0
- package/src/models/components/variantoption.ts +27 -20
- package/src/models/operations/getpaymentstatus.ts +26 -20
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Attribute for single-select values
|
|
12
|
+
*/
|
|
13
|
+
export type SingleSelectAttribute = {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type`
|
|
18
|
+
*/
|
|
19
|
+
key: string;
|
|
20
|
+
type: string;
|
|
21
|
+
/**
|
|
22
|
+
* For single-select attributes
|
|
23
|
+
*/
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const SingleSelectAttribute$inboundSchema: z.ZodType<
|
|
29
|
+
SingleSelectAttribute,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
id: z.string(),
|
|
34
|
+
name: z.string(),
|
|
35
|
+
key: z.string(),
|
|
36
|
+
type: z.string(),
|
|
37
|
+
value: z.string(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type SingleSelectAttribute$Outbound = {
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
key: string;
|
|
45
|
+
type: string;
|
|
46
|
+
value: string;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const SingleSelectAttribute$outboundSchema: z.ZodType<
|
|
51
|
+
SingleSelectAttribute$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
SingleSelectAttribute
|
|
54
|
+
> = z.object({
|
|
55
|
+
id: z.string(),
|
|
56
|
+
name: z.string(),
|
|
57
|
+
key: z.string(),
|
|
58
|
+
type: z.string(),
|
|
59
|
+
value: z.string(),
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
+
*/
|
|
66
|
+
export namespace SingleSelectAttribute$ {
|
|
67
|
+
/** @deprecated use `SingleSelectAttribute$inboundSchema` instead. */
|
|
68
|
+
export const inboundSchema = SingleSelectAttribute$inboundSchema;
|
|
69
|
+
/** @deprecated use `SingleSelectAttribute$outboundSchema` instead. */
|
|
70
|
+
export const outboundSchema = SingleSelectAttribute$outboundSchema;
|
|
71
|
+
/** @deprecated use `SingleSelectAttribute$Outbound` instead. */
|
|
72
|
+
export type Outbound = SingleSelectAttribute$Outbound;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function singleSelectAttributeToJSON(
|
|
76
|
+
singleSelectAttribute: SingleSelectAttribute,
|
|
77
|
+
): string {
|
|
78
|
+
return JSON.stringify(
|
|
79
|
+
SingleSelectAttribute$outboundSchema.parse(singleSelectAttribute),
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function singleSelectAttributeFromJSON(
|
|
84
|
+
jsonString: string,
|
|
85
|
+
): SafeParseResult<SingleSelectAttribute, SDKValidationError> {
|
|
86
|
+
return safeParse(
|
|
87
|
+
jsonString,
|
|
88
|
+
(x) => SingleSelectAttribute$inboundSchema.parse(JSON.parse(x)),
|
|
89
|
+
`Failed to parse 'SingleSelectAttribute' from JSON`,
|
|
90
|
+
);
|
|
91
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Attribute for text values
|
|
12
|
+
*/
|
|
13
|
+
export type TextAttribute = {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type`
|
|
18
|
+
*/
|
|
19
|
+
key: string;
|
|
20
|
+
type: string;
|
|
21
|
+
/**
|
|
22
|
+
* For text attributes
|
|
23
|
+
*/
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const TextAttribute$inboundSchema: z.ZodType<
|
|
29
|
+
TextAttribute,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
id: z.string(),
|
|
34
|
+
name: z.string(),
|
|
35
|
+
key: z.string(),
|
|
36
|
+
type: z.string(),
|
|
37
|
+
value: z.string(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type TextAttribute$Outbound = {
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
key: string;
|
|
45
|
+
type: string;
|
|
46
|
+
value: string;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const TextAttribute$outboundSchema: z.ZodType<
|
|
51
|
+
TextAttribute$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
TextAttribute
|
|
54
|
+
> = z.object({
|
|
55
|
+
id: z.string(),
|
|
56
|
+
name: z.string(),
|
|
57
|
+
key: z.string(),
|
|
58
|
+
type: z.string(),
|
|
59
|
+
value: z.string(),
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
+
*/
|
|
66
|
+
export namespace TextAttribute$ {
|
|
67
|
+
/** @deprecated use `TextAttribute$inboundSchema` instead. */
|
|
68
|
+
export const inboundSchema = TextAttribute$inboundSchema;
|
|
69
|
+
/** @deprecated use `TextAttribute$outboundSchema` instead. */
|
|
70
|
+
export const outboundSchema = TextAttribute$outboundSchema;
|
|
71
|
+
/** @deprecated use `TextAttribute$Outbound` instead. */
|
|
72
|
+
export type Outbound = TextAttribute$Outbound;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function textAttributeToJSON(textAttribute: TextAttribute): string {
|
|
76
|
+
return JSON.stringify(TextAttribute$outboundSchema.parse(textAttribute));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function textAttributeFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<TextAttribute, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => TextAttribute$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'TextAttribute' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
@@ -16,7 +16,7 @@ export type Type = ClosedEnum<typeof Type>;
|
|
|
16
16
|
|
|
17
17
|
export type Two = {};
|
|
18
18
|
|
|
19
|
-
export type
|
|
19
|
+
export type VariantOptionValue = Two | string;
|
|
20
20
|
|
|
21
21
|
export type VariantOption = {
|
|
22
22
|
/**
|
|
@@ -107,43 +107,50 @@ export function twoFromJSON(
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/** @internal */
|
|
110
|
-
export const
|
|
111
|
-
|
|
110
|
+
export const VariantOptionValue$inboundSchema: z.ZodType<
|
|
111
|
+
VariantOptionValue,
|
|
112
|
+
z.ZodTypeDef,
|
|
113
|
+
unknown
|
|
114
|
+
> = z.union([z.lazy(() => Two$inboundSchema), z.string()]);
|
|
112
115
|
|
|
113
116
|
/** @internal */
|
|
114
|
-
export type
|
|
117
|
+
export type VariantOptionValue$Outbound = Two$Outbound | string;
|
|
115
118
|
|
|
116
119
|
/** @internal */
|
|
117
|
-
export const
|
|
118
|
-
|
|
120
|
+
export const VariantOptionValue$outboundSchema: z.ZodType<
|
|
121
|
+
VariantOptionValue$Outbound,
|
|
119
122
|
z.ZodTypeDef,
|
|
120
|
-
|
|
123
|
+
VariantOptionValue
|
|
121
124
|
> = z.union([z.lazy(() => Two$outboundSchema), z.string()]);
|
|
122
125
|
|
|
123
126
|
/**
|
|
124
127
|
* @internal
|
|
125
128
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
126
129
|
*/
|
|
127
|
-
export namespace
|
|
128
|
-
/** @deprecated use `
|
|
129
|
-
export const inboundSchema =
|
|
130
|
-
/** @deprecated use `
|
|
131
|
-
export const outboundSchema =
|
|
132
|
-
/** @deprecated use `
|
|
133
|
-
export type Outbound =
|
|
130
|
+
export namespace VariantOptionValue$ {
|
|
131
|
+
/** @deprecated use `VariantOptionValue$inboundSchema` instead. */
|
|
132
|
+
export const inboundSchema = VariantOptionValue$inboundSchema;
|
|
133
|
+
/** @deprecated use `VariantOptionValue$outboundSchema` instead. */
|
|
134
|
+
export const outboundSchema = VariantOptionValue$outboundSchema;
|
|
135
|
+
/** @deprecated use `VariantOptionValue$Outbound` instead. */
|
|
136
|
+
export type Outbound = VariantOptionValue$Outbound;
|
|
134
137
|
}
|
|
135
138
|
|
|
136
|
-
export function
|
|
137
|
-
|
|
139
|
+
export function variantOptionValueToJSON(
|
|
140
|
+
variantOptionValue: VariantOptionValue,
|
|
141
|
+
): string {
|
|
142
|
+
return JSON.stringify(
|
|
143
|
+
VariantOptionValue$outboundSchema.parse(variantOptionValue),
|
|
144
|
+
);
|
|
138
145
|
}
|
|
139
146
|
|
|
140
|
-
export function
|
|
147
|
+
export function variantOptionValueFromJSON(
|
|
141
148
|
jsonString: string,
|
|
142
|
-
): SafeParseResult<
|
|
149
|
+
): SafeParseResult<VariantOptionValue, SDKValidationError> {
|
|
143
150
|
return safeParse(
|
|
144
151
|
jsonString,
|
|
145
|
-
(x) =>
|
|
146
|
-
`Failed to parse '
|
|
152
|
+
(x) => VariantOptionValue$inboundSchema.parse(JSON.parse(x)),
|
|
153
|
+
`Failed to parse 'VariantOptionValue' from JSON`,
|
|
147
154
|
);
|
|
148
155
|
}
|
|
149
156
|
|
|
@@ -25,9 +25,10 @@ export const Status = {
|
|
|
25
25
|
export type Status = ClosedEnum<typeof Status>;
|
|
26
26
|
|
|
27
27
|
export type GetPaymentStatusContent = {
|
|
28
|
-
status
|
|
29
|
-
amountPaid
|
|
30
|
-
amountUnpaid
|
|
28
|
+
status: Status;
|
|
29
|
+
amountPaid: number;
|
|
30
|
+
amountUnpaid: number;
|
|
31
|
+
isRetryAvailable: boolean;
|
|
31
32
|
};
|
|
32
33
|
|
|
33
34
|
/**
|
|
@@ -35,8 +36,8 @@ export type GetPaymentStatusContent = {
|
|
|
35
36
|
*/
|
|
36
37
|
export type GetPaymentStatusResponseBody = {
|
|
37
38
|
message?: string | undefined;
|
|
38
|
-
success
|
|
39
|
-
content
|
|
39
|
+
success: boolean;
|
|
40
|
+
content: GetPaymentStatusContent;
|
|
40
41
|
};
|
|
41
42
|
|
|
42
43
|
/** @internal */
|
|
@@ -126,21 +127,24 @@ export const GetPaymentStatusContent$inboundSchema: z.ZodType<
|
|
|
126
127
|
z.ZodTypeDef,
|
|
127
128
|
unknown
|
|
128
129
|
> = z.object({
|
|
129
|
-
status: Status$inboundSchema
|
|
130
|
-
amount_paid: z.number()
|
|
131
|
-
amount_unpaid: z.number()
|
|
130
|
+
status: Status$inboundSchema,
|
|
131
|
+
amount_paid: z.number(),
|
|
132
|
+
amount_unpaid: z.number(),
|
|
133
|
+
is_retry_available: z.boolean(),
|
|
132
134
|
}).transform((v) => {
|
|
133
135
|
return remap$(v, {
|
|
134
136
|
"amount_paid": "amountPaid",
|
|
135
137
|
"amount_unpaid": "amountUnpaid",
|
|
138
|
+
"is_retry_available": "isRetryAvailable",
|
|
136
139
|
});
|
|
137
140
|
});
|
|
138
141
|
|
|
139
142
|
/** @internal */
|
|
140
143
|
export type GetPaymentStatusContent$Outbound = {
|
|
141
|
-
status
|
|
142
|
-
amount_paid
|
|
143
|
-
amount_unpaid
|
|
144
|
+
status: string;
|
|
145
|
+
amount_paid: number;
|
|
146
|
+
amount_unpaid: number;
|
|
147
|
+
is_retry_available: boolean;
|
|
144
148
|
};
|
|
145
149
|
|
|
146
150
|
/** @internal */
|
|
@@ -149,13 +153,15 @@ export const GetPaymentStatusContent$outboundSchema: z.ZodType<
|
|
|
149
153
|
z.ZodTypeDef,
|
|
150
154
|
GetPaymentStatusContent
|
|
151
155
|
> = z.object({
|
|
152
|
-
status: Status$outboundSchema
|
|
153
|
-
amountPaid: z.number()
|
|
154
|
-
amountUnpaid: z.number()
|
|
156
|
+
status: Status$outboundSchema,
|
|
157
|
+
amountPaid: z.number(),
|
|
158
|
+
amountUnpaid: z.number(),
|
|
159
|
+
isRetryAvailable: z.boolean(),
|
|
155
160
|
}).transform((v) => {
|
|
156
161
|
return remap$(v, {
|
|
157
162
|
amountPaid: "amount_paid",
|
|
158
163
|
amountUnpaid: "amount_unpaid",
|
|
164
|
+
isRetryAvailable: "is_retry_available",
|
|
159
165
|
});
|
|
160
166
|
});
|
|
161
167
|
|
|
@@ -197,15 +203,15 @@ export const GetPaymentStatusResponseBody$inboundSchema: z.ZodType<
|
|
|
197
203
|
unknown
|
|
198
204
|
> = z.object({
|
|
199
205
|
message: z.string().default("order details"),
|
|
200
|
-
success: z.boolean()
|
|
201
|
-
content: z.lazy(() => GetPaymentStatusContent$inboundSchema)
|
|
206
|
+
success: z.boolean(),
|
|
207
|
+
content: z.lazy(() => GetPaymentStatusContent$inboundSchema),
|
|
202
208
|
});
|
|
203
209
|
|
|
204
210
|
/** @internal */
|
|
205
211
|
export type GetPaymentStatusResponseBody$Outbound = {
|
|
206
212
|
message: string;
|
|
207
|
-
success
|
|
208
|
-
content
|
|
213
|
+
success: boolean;
|
|
214
|
+
content: GetPaymentStatusContent$Outbound;
|
|
209
215
|
};
|
|
210
216
|
|
|
211
217
|
/** @internal */
|
|
@@ -215,8 +221,8 @@ export const GetPaymentStatusResponseBody$outboundSchema: z.ZodType<
|
|
|
215
221
|
GetPaymentStatusResponseBody
|
|
216
222
|
> = z.object({
|
|
217
223
|
message: z.string().default("order details"),
|
|
218
|
-
success: z.boolean()
|
|
219
|
-
content: z.lazy(() => GetPaymentStatusContent$outboundSchema)
|
|
224
|
+
success: z.boolean(),
|
|
225
|
+
content: z.lazy(() => GetPaymentStatusContent$outboundSchema),
|
|
220
226
|
});
|
|
221
227
|
|
|
222
228
|
/**
|