ce-storefront 0.12.2 → 0.12.4

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.
Files changed (101) hide show
  1. package/docs/sdks/auth/README.md +45 -23
  2. package/esm/funcs/authGetAnonymousToken.d.ts +2 -1
  3. package/esm/funcs/authGetAnonymousToken.d.ts.map +1 -1
  4. package/esm/funcs/authGetAnonymousToken.js +6 -2
  5. package/esm/funcs/authGetAnonymousToken.js.map +1 -1
  6. package/esm/funcs/authGetUserDetail.d.ts +2 -1
  7. package/esm/funcs/authGetUserDetail.d.ts.map +1 -1
  8. package/esm/funcs/authGetUserDetail.js +6 -2
  9. package/esm/funcs/authGetUserDetail.js.map +1 -1
  10. package/esm/funcs/authLoginWithEmail.d.ts +2 -1
  11. package/esm/funcs/authLoginWithEmail.d.ts.map +1 -1
  12. package/esm/funcs/authLoginWithEmail.js +6 -2
  13. package/esm/funcs/authLoginWithEmail.js.map +1 -1
  14. package/esm/funcs/authLoginWithPhone.d.ts +2 -1
  15. package/esm/funcs/authLoginWithPhone.d.ts.map +1 -1
  16. package/esm/funcs/authLoginWithPhone.js +6 -2
  17. package/esm/funcs/authLoginWithPhone.js.map +1 -1
  18. package/esm/funcs/authRefreshToken.d.ts +2 -1
  19. package/esm/funcs/authRefreshToken.d.ts.map +1 -1
  20. package/esm/funcs/authRefreshToken.js +6 -2
  21. package/esm/funcs/authRefreshToken.js.map +1 -1
  22. package/esm/funcs/authUpdateUser.d.ts +2 -1
  23. package/esm/funcs/authUpdateUser.d.ts.map +1 -1
  24. package/esm/funcs/authUpdateUser.js +6 -2
  25. package/esm/funcs/authUpdateUser.js.map +1 -1
  26. package/esm/funcs/authVerifyOtp.d.ts +2 -1
  27. package/esm/funcs/authVerifyOtp.d.ts.map +1 -1
  28. package/esm/funcs/authVerifyOtp.js +6 -2
  29. package/esm/funcs/authVerifyOtp.js.map +1 -1
  30. package/esm/lib/config.d.ts +2 -2
  31. package/esm/lib/config.js +2 -2
  32. package/esm/models/components/index.d.ts +0 -1
  33. package/esm/models/components/index.d.ts.map +1 -1
  34. package/esm/models/components/index.js +0 -1
  35. package/esm/models/components/index.js.map +1 -1
  36. package/esm/models/operations/generateotp.d.ts +10 -10
  37. package/esm/models/operations/generateotp.d.ts.map +1 -1
  38. package/esm/models/operations/generateotp.js +10 -10
  39. package/esm/models/operations/generateotp.js.map +1 -1
  40. package/esm/models/operations/getuserdetail.d.ts +8 -8
  41. package/esm/models/operations/getuserdetail.d.ts.map +1 -1
  42. package/esm/models/operations/getuserdetail.js +8 -8
  43. package/esm/models/operations/getuserdetail.js.map +1 -1
  44. package/esm/models/operations/loginwithemail.d.ts +10 -10
  45. package/esm/models/operations/loginwithemail.d.ts.map +1 -1
  46. package/esm/models/operations/loginwithemail.js +10 -10
  47. package/esm/models/operations/loginwithemail.js.map +1 -1
  48. package/esm/models/operations/loginwithphone.d.ts +10 -10
  49. package/esm/models/operations/loginwithphone.d.ts.map +1 -1
  50. package/esm/models/operations/loginwithphone.js +11 -11
  51. package/esm/models/operations/loginwithphone.js.map +1 -1
  52. package/esm/models/operations/loginwithwhatsapp.d.ts +10 -10
  53. package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
  54. package/esm/models/operations/loginwithwhatsapp.js +10 -10
  55. package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
  56. package/esm/models/operations/logout.d.ts +12 -12
  57. package/esm/models/operations/logout.d.ts.map +1 -1
  58. package/esm/models/operations/logout.js +12 -12
  59. package/esm/models/operations/logout.js.map +1 -1
  60. package/esm/models/operations/refreshtoken.d.ts +12 -12
  61. package/esm/models/operations/refreshtoken.d.ts.map +1 -1
  62. package/esm/models/operations/refreshtoken.js +12 -12
  63. package/esm/models/operations/refreshtoken.js.map +1 -1
  64. package/esm/models/operations/shippingmethods.d.ts +4 -4
  65. package/esm/models/operations/shippingmethods.d.ts.map +1 -1
  66. package/esm/models/operations/shippingmethods.js +2 -8
  67. package/esm/models/operations/shippingmethods.js.map +1 -1
  68. package/esm/models/operations/updateuser.d.ts +8 -8
  69. package/esm/models/operations/updateuser.d.ts.map +1 -1
  70. package/esm/models/operations/updateuser.js +8 -8
  71. package/esm/models/operations/updateuser.js.map +1 -1
  72. package/esm/models/operations/verifyotp.d.ts +8 -8
  73. package/esm/models/operations/verifyotp.d.ts.map +1 -1
  74. package/esm/models/operations/verifyotp.js +8 -8
  75. package/esm/models/operations/verifyotp.js.map +1 -1
  76. package/jsr.json +1 -1
  77. package/package.json +1 -1
  78. package/src/funcs/authGetAnonymousToken.ts +15 -2
  79. package/src/funcs/authGetUserDetail.ts +19 -2
  80. package/src/funcs/authLoginWithEmail.ts +19 -2
  81. package/src/funcs/authLoginWithPhone.ts +19 -2
  82. package/src/funcs/authRefreshToken.ts +15 -2
  83. package/src/funcs/authUpdateUser.ts +15 -2
  84. package/src/funcs/authVerifyOtp.ts +19 -2
  85. package/src/lib/config.ts +2 -2
  86. package/src/models/components/index.ts +0 -1
  87. package/src/models/operations/generateotp.ts +20 -20
  88. package/src/models/operations/getuserdetail.ts +16 -16
  89. package/src/models/operations/loginwithemail.ts +20 -20
  90. package/src/models/operations/loginwithphone.ts +21 -21
  91. package/src/models/operations/loginwithwhatsapp.ts +20 -20
  92. package/src/models/operations/logout.ts +24 -24
  93. package/src/models/operations/refreshtoken.ts +24 -24
  94. package/src/models/operations/shippingmethods.ts +4 -12
  95. package/src/models/operations/updateuser.ts +16 -16
  96. package/src/models/operations/verifyotp.ts +16 -16
  97. package/esm/models/components/productsbasedserviceabilitycheck.d.ts +0 -95
  98. package/esm/models/components/productsbasedserviceabilitycheck.d.ts.map +0 -1
  99. package/esm/models/components/productsbasedserviceabilitycheck.js +0 -132
  100. package/esm/models/components/productsbasedserviceabilitycheck.js.map +0 -1
  101. package/src/models/components/productsbasedserviceabilitycheck.ts +0 -243
@@ -1,243 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- export type Packaging = {
12
- packWidth: number;
13
- packHeight: number;
14
- packLength: number;
15
- packDryWeight: number;
16
- };
17
-
18
- export type Products = {
19
- productId: string;
20
- variantId: string | null;
21
- quantity: number;
22
- packaging: Packaging;
23
- };
24
-
25
- export type ProductsBasedServiceabilityCheck = {
26
- pickupPincode: string;
27
- deliveryPincode: string;
28
- products: Array<Products>;
29
- };
30
-
31
- /** @internal */
32
- export const Packaging$inboundSchema: z.ZodType<
33
- Packaging,
34
- z.ZodTypeDef,
35
- unknown
36
- > = z.object({
37
- pack_width: z.number(),
38
- pack_height: z.number(),
39
- pack_length: z.number(),
40
- pack_dry_weight: z.number(),
41
- }).transform((v) => {
42
- return remap$(v, {
43
- "pack_width": "packWidth",
44
- "pack_height": "packHeight",
45
- "pack_length": "packLength",
46
- "pack_dry_weight": "packDryWeight",
47
- });
48
- });
49
-
50
- /** @internal */
51
- export type Packaging$Outbound = {
52
- pack_width: number;
53
- pack_height: number;
54
- pack_length: number;
55
- pack_dry_weight: number;
56
- };
57
-
58
- /** @internal */
59
- export const Packaging$outboundSchema: z.ZodType<
60
- Packaging$Outbound,
61
- z.ZodTypeDef,
62
- Packaging
63
- > = z.object({
64
- packWidth: z.number(),
65
- packHeight: z.number(),
66
- packLength: z.number(),
67
- packDryWeight: z.number(),
68
- }).transform((v) => {
69
- return remap$(v, {
70
- packWidth: "pack_width",
71
- packHeight: "pack_height",
72
- packLength: "pack_length",
73
- packDryWeight: "pack_dry_weight",
74
- });
75
- });
76
-
77
- /**
78
- * @internal
79
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
80
- */
81
- export namespace Packaging$ {
82
- /** @deprecated use `Packaging$inboundSchema` instead. */
83
- export const inboundSchema = Packaging$inboundSchema;
84
- /** @deprecated use `Packaging$outboundSchema` instead. */
85
- export const outboundSchema = Packaging$outboundSchema;
86
- /** @deprecated use `Packaging$Outbound` instead. */
87
- export type Outbound = Packaging$Outbound;
88
- }
89
-
90
- export function packagingToJSON(packaging: Packaging): string {
91
- return JSON.stringify(Packaging$outboundSchema.parse(packaging));
92
- }
93
-
94
- export function packagingFromJSON(
95
- jsonString: string,
96
- ): SafeParseResult<Packaging, SDKValidationError> {
97
- return safeParse(
98
- jsonString,
99
- (x) => Packaging$inboundSchema.parse(JSON.parse(x)),
100
- `Failed to parse 'Packaging' from JSON`,
101
- );
102
- }
103
-
104
- /** @internal */
105
- export const Products$inboundSchema: z.ZodType<
106
- Products,
107
- z.ZodTypeDef,
108
- unknown
109
- > = z.object({
110
- product_id: z.string(),
111
- variant_id: z.nullable(z.string()),
112
- quantity: z.number().int(),
113
- packaging: z.lazy(() => Packaging$inboundSchema),
114
- }).transform((v) => {
115
- return remap$(v, {
116
- "product_id": "productId",
117
- "variant_id": "variantId",
118
- });
119
- });
120
-
121
- /** @internal */
122
- export type Products$Outbound = {
123
- product_id: string;
124
- variant_id: string | null;
125
- quantity: number;
126
- packaging: Packaging$Outbound;
127
- };
128
-
129
- /** @internal */
130
- export const Products$outboundSchema: z.ZodType<
131
- Products$Outbound,
132
- z.ZodTypeDef,
133
- Products
134
- > = z.object({
135
- productId: z.string(),
136
- variantId: z.nullable(z.string()),
137
- quantity: z.number().int(),
138
- packaging: z.lazy(() => Packaging$outboundSchema),
139
- }).transform((v) => {
140
- return remap$(v, {
141
- productId: "product_id",
142
- variantId: "variant_id",
143
- });
144
- });
145
-
146
- /**
147
- * @internal
148
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
149
- */
150
- export namespace Products$ {
151
- /** @deprecated use `Products$inboundSchema` instead. */
152
- export const inboundSchema = Products$inboundSchema;
153
- /** @deprecated use `Products$outboundSchema` instead. */
154
- export const outboundSchema = Products$outboundSchema;
155
- /** @deprecated use `Products$Outbound` instead. */
156
- export type Outbound = Products$Outbound;
157
- }
158
-
159
- export function productsToJSON(products: Products): string {
160
- return JSON.stringify(Products$outboundSchema.parse(products));
161
- }
162
-
163
- export function productsFromJSON(
164
- jsonString: string,
165
- ): SafeParseResult<Products, SDKValidationError> {
166
- return safeParse(
167
- jsonString,
168
- (x) => Products$inboundSchema.parse(JSON.parse(x)),
169
- `Failed to parse 'Products' from JSON`,
170
- );
171
- }
172
-
173
- /** @internal */
174
- export const ProductsBasedServiceabilityCheck$inboundSchema: z.ZodType<
175
- ProductsBasedServiceabilityCheck,
176
- z.ZodTypeDef,
177
- unknown
178
- > = z.object({
179
- pickup_pincode: z.string(),
180
- delivery_pincode: z.string(),
181
- products: z.array(z.lazy(() => Products$inboundSchema)),
182
- }).transform((v) => {
183
- return remap$(v, {
184
- "pickup_pincode": "pickupPincode",
185
- "delivery_pincode": "deliveryPincode",
186
- });
187
- });
188
-
189
- /** @internal */
190
- export type ProductsBasedServiceabilityCheck$Outbound = {
191
- pickup_pincode: string;
192
- delivery_pincode: string;
193
- products: Array<Products$Outbound>;
194
- };
195
-
196
- /** @internal */
197
- export const ProductsBasedServiceabilityCheck$outboundSchema: z.ZodType<
198
- ProductsBasedServiceabilityCheck$Outbound,
199
- z.ZodTypeDef,
200
- ProductsBasedServiceabilityCheck
201
- > = z.object({
202
- pickupPincode: z.string(),
203
- deliveryPincode: z.string(),
204
- products: z.array(z.lazy(() => Products$outboundSchema)),
205
- }).transform((v) => {
206
- return remap$(v, {
207
- pickupPincode: "pickup_pincode",
208
- deliveryPincode: "delivery_pincode",
209
- });
210
- });
211
-
212
- /**
213
- * @internal
214
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
215
- */
216
- export namespace ProductsBasedServiceabilityCheck$ {
217
- /** @deprecated use `ProductsBasedServiceabilityCheck$inboundSchema` instead. */
218
- export const inboundSchema = ProductsBasedServiceabilityCheck$inboundSchema;
219
- /** @deprecated use `ProductsBasedServiceabilityCheck$outboundSchema` instead. */
220
- export const outboundSchema = ProductsBasedServiceabilityCheck$outboundSchema;
221
- /** @deprecated use `ProductsBasedServiceabilityCheck$Outbound` instead. */
222
- export type Outbound = ProductsBasedServiceabilityCheck$Outbound;
223
- }
224
-
225
- export function productsBasedServiceabilityCheckToJSON(
226
- productsBasedServiceabilityCheck: ProductsBasedServiceabilityCheck,
227
- ): string {
228
- return JSON.stringify(
229
- ProductsBasedServiceabilityCheck$outboundSchema.parse(
230
- productsBasedServiceabilityCheck,
231
- ),
232
- );
233
- }
234
-
235
- export function productsBasedServiceabilityCheckFromJSON(
236
- jsonString: string,
237
- ): SafeParseResult<ProductsBasedServiceabilityCheck, SDKValidationError> {
238
- return safeParse(
239
- jsonString,
240
- (x) => ProductsBasedServiceabilityCheck$inboundSchema.parse(JSON.parse(x)),
241
- `Failed to parse 'ProductsBasedServiceabilityCheck' from JSON`,
242
- );
243
- }