ce-storefront 0.12.2 → 0.12.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.
Files changed (86) 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/operations/generateotp.d.ts +10 -10
  33. package/esm/models/operations/generateotp.d.ts.map +1 -1
  34. package/esm/models/operations/generateotp.js +10 -10
  35. package/esm/models/operations/generateotp.js.map +1 -1
  36. package/esm/models/operations/getuserdetail.d.ts +8 -8
  37. package/esm/models/operations/getuserdetail.d.ts.map +1 -1
  38. package/esm/models/operations/getuserdetail.js +8 -8
  39. package/esm/models/operations/getuserdetail.js.map +1 -1
  40. package/esm/models/operations/loginwithemail.d.ts +10 -10
  41. package/esm/models/operations/loginwithemail.d.ts.map +1 -1
  42. package/esm/models/operations/loginwithemail.js +10 -10
  43. package/esm/models/operations/loginwithemail.js.map +1 -1
  44. package/esm/models/operations/loginwithphone.d.ts +10 -10
  45. package/esm/models/operations/loginwithphone.d.ts.map +1 -1
  46. package/esm/models/operations/loginwithphone.js +11 -11
  47. package/esm/models/operations/loginwithphone.js.map +1 -1
  48. package/esm/models/operations/loginwithwhatsapp.d.ts +10 -10
  49. package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
  50. package/esm/models/operations/loginwithwhatsapp.js +10 -10
  51. package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
  52. package/esm/models/operations/logout.d.ts +12 -12
  53. package/esm/models/operations/logout.d.ts.map +1 -1
  54. package/esm/models/operations/logout.js +12 -12
  55. package/esm/models/operations/logout.js.map +1 -1
  56. package/esm/models/operations/refreshtoken.d.ts +12 -12
  57. package/esm/models/operations/refreshtoken.d.ts.map +1 -1
  58. package/esm/models/operations/refreshtoken.js +12 -12
  59. package/esm/models/operations/refreshtoken.js.map +1 -1
  60. package/esm/models/operations/updateuser.d.ts +8 -8
  61. package/esm/models/operations/updateuser.d.ts.map +1 -1
  62. package/esm/models/operations/updateuser.js +8 -8
  63. package/esm/models/operations/updateuser.js.map +1 -1
  64. package/esm/models/operations/verifyotp.d.ts +8 -8
  65. package/esm/models/operations/verifyotp.d.ts.map +1 -1
  66. package/esm/models/operations/verifyotp.js +8 -8
  67. package/esm/models/operations/verifyotp.js.map +1 -1
  68. package/jsr.json +1 -1
  69. package/package.json +1 -1
  70. package/src/funcs/authGetAnonymousToken.ts +15 -2
  71. package/src/funcs/authGetUserDetail.ts +19 -2
  72. package/src/funcs/authLoginWithEmail.ts +19 -2
  73. package/src/funcs/authLoginWithPhone.ts +19 -2
  74. package/src/funcs/authRefreshToken.ts +15 -2
  75. package/src/funcs/authUpdateUser.ts +15 -2
  76. package/src/funcs/authVerifyOtp.ts +19 -2
  77. package/src/lib/config.ts +2 -2
  78. package/src/models/operations/generateotp.ts +20 -20
  79. package/src/models/operations/getuserdetail.ts +16 -16
  80. package/src/models/operations/loginwithemail.ts +20 -20
  81. package/src/models/operations/loginwithphone.ts +21 -21
  82. package/src/models/operations/loginwithwhatsapp.ts +20 -20
  83. package/src/models/operations/logout.ts +24 -24
  84. package/src/models/operations/refreshtoken.ts +24 -24
  85. package/src/models/operations/updateuser.ts +16 -16
  86. package/src/models/operations/verifyotp.ts +16 -16
@@ -21,7 +21,7 @@ export type UpdateUserRequest = {
21
21
  * An object containing the response content.
22
22
  */
23
23
  export type UpdateUserContent = {
24
- user?: components.User | undefined;
24
+ user: components.User;
25
25
  };
26
26
 
27
27
  /**
@@ -31,15 +31,15 @@ export type UpdateUserResponseBody = {
31
31
  /**
32
32
  * A descriptive message confirming the success or failure of the Registration process.
33
33
  */
34
- message?: string | undefined;
34
+ message: string;
35
35
  /**
36
36
  * Indicates whether the request was successful or failure (true for success, false for failure).
37
37
  */
38
- success?: boolean | undefined;
38
+ success: boolean;
39
39
  /**
40
40
  * An object containing the response content.
41
41
  */
42
- content?: UpdateUserContent | undefined;
42
+ content: UpdateUserContent;
43
43
  };
44
44
 
45
45
  /** @internal */
@@ -113,12 +113,12 @@ export const UpdateUserContent$inboundSchema: z.ZodType<
113
113
  z.ZodTypeDef,
114
114
  unknown
115
115
  > = z.object({
116
- user: components.User$inboundSchema.optional(),
116
+ user: components.User$inboundSchema,
117
117
  });
118
118
 
119
119
  /** @internal */
120
120
  export type UpdateUserContent$Outbound = {
121
- user?: components.User$Outbound | undefined;
121
+ user: components.User$Outbound;
122
122
  };
123
123
 
124
124
  /** @internal */
@@ -127,7 +127,7 @@ export const UpdateUserContent$outboundSchema: z.ZodType<
127
127
  z.ZodTypeDef,
128
128
  UpdateUserContent
129
129
  > = z.object({
130
- user: components.User$outboundSchema.optional(),
130
+ user: components.User$outboundSchema,
131
131
  });
132
132
 
133
133
  /**
@@ -167,16 +167,16 @@ export const UpdateUserResponseBody$inboundSchema: z.ZodType<
167
167
  z.ZodTypeDef,
168
168
  unknown
169
169
  > = z.object({
170
- message: z.string().optional(),
171
- success: z.boolean().optional(),
172
- content: z.lazy(() => UpdateUserContent$inboundSchema).optional(),
170
+ message: z.string(),
171
+ success: z.boolean(),
172
+ content: z.lazy(() => UpdateUserContent$inboundSchema),
173
173
  });
174
174
 
175
175
  /** @internal */
176
176
  export type UpdateUserResponseBody$Outbound = {
177
- message?: string | undefined;
178
- success?: boolean | undefined;
179
- content?: UpdateUserContent$Outbound | undefined;
177
+ message: string;
178
+ success: boolean;
179
+ content: UpdateUserContent$Outbound;
180
180
  };
181
181
 
182
182
  /** @internal */
@@ -185,9 +185,9 @@ export const UpdateUserResponseBody$outboundSchema: z.ZodType<
185
185
  z.ZodTypeDef,
186
186
  UpdateUserResponseBody
187
187
  > = z.object({
188
- message: z.string().optional(),
189
- success: z.boolean().optional(),
190
- content: z.lazy(() => UpdateUserContent$outboundSchema).optional(),
188
+ message: z.string(),
189
+ success: z.boolean(),
190
+ content: z.lazy(() => UpdateUserContent$outboundSchema),
191
191
  });
192
192
 
193
193
  /**
@@ -46,15 +46,15 @@ export type VerifyOtpRequestBody = {
46
46
  * An object containing the response content.
47
47
  */
48
48
  export type VerifyOtpContent = {
49
- user?: components.User | undefined;
49
+ user: components.User;
50
50
  /**
51
51
  * A string representing the access token.
52
52
  */
53
- accessToken?: string | undefined;
53
+ accessToken: string;
54
54
  /**
55
55
  * A string representing the refresh token.
56
56
  */
57
- refreshToken?: string | undefined;
57
+ refreshToken: string;
58
58
  };
59
59
 
60
60
  /**
@@ -72,7 +72,7 @@ export type VerifyOtpResponseBody = {
72
72
  /**
73
73
  * An object containing the response content.
74
74
  */
75
- content?: VerifyOtpContent | undefined;
75
+ content: VerifyOtpContent;
76
76
  };
77
77
 
78
78
  /** @internal */
@@ -170,9 +170,9 @@ export const VerifyOtpContent$inboundSchema: z.ZodType<
170
170
  z.ZodTypeDef,
171
171
  unknown
172
172
  > = z.object({
173
- user: components.User$inboundSchema.optional(),
174
- access_token: z.string().optional(),
175
- refresh_token: z.string().optional(),
173
+ user: components.User$inboundSchema,
174
+ access_token: z.string(),
175
+ refresh_token: z.string(),
176
176
  }).transform((v) => {
177
177
  return remap$(v, {
178
178
  "access_token": "accessToken",
@@ -182,9 +182,9 @@ export const VerifyOtpContent$inboundSchema: z.ZodType<
182
182
 
183
183
  /** @internal */
184
184
  export type VerifyOtpContent$Outbound = {
185
- user?: components.User$Outbound | undefined;
186
- access_token?: string | undefined;
187
- refresh_token?: string | undefined;
185
+ user: components.User$Outbound;
186
+ access_token: string;
187
+ refresh_token: string;
188
188
  };
189
189
 
190
190
  /** @internal */
@@ -193,9 +193,9 @@ export const VerifyOtpContent$outboundSchema: z.ZodType<
193
193
  z.ZodTypeDef,
194
194
  VerifyOtpContent
195
195
  > = z.object({
196
- user: components.User$outboundSchema.optional(),
197
- accessToken: z.string().optional(),
198
- refreshToken: z.string().optional(),
196
+ user: components.User$outboundSchema,
197
+ accessToken: z.string(),
198
+ refreshToken: z.string(),
199
199
  }).transform((v) => {
200
200
  return remap$(v, {
201
201
  accessToken: "access_token",
@@ -242,14 +242,14 @@ export const VerifyOtpResponseBody$inboundSchema: z.ZodType<
242
242
  > = z.object({
243
243
  message: z.string(),
244
244
  success: z.boolean(),
245
- content: z.lazy(() => VerifyOtpContent$inboundSchema).optional(),
245
+ content: z.lazy(() => VerifyOtpContent$inboundSchema),
246
246
  });
247
247
 
248
248
  /** @internal */
249
249
  export type VerifyOtpResponseBody$Outbound = {
250
250
  message: string;
251
251
  success: boolean;
252
- content?: VerifyOtpContent$Outbound | undefined;
252
+ content: VerifyOtpContent$Outbound;
253
253
  };
254
254
 
255
255
  /** @internal */
@@ -260,7 +260,7 @@ export const VerifyOtpResponseBody$outboundSchema: z.ZodType<
260
260
  > = z.object({
261
261
  message: z.string(),
262
262
  success: z.boolean(),
263
- content: z.lazy(() => VerifyOtpContent$outboundSchema).optional(),
263
+ content: z.lazy(() => VerifyOtpContent$outboundSchema),
264
264
  });
265
265
 
266
266
  /**