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.
- package/docs/sdks/auth/README.md +45 -23
- package/esm/funcs/authGetAnonymousToken.d.ts +2 -1
- package/esm/funcs/authGetAnonymousToken.d.ts.map +1 -1
- package/esm/funcs/authGetAnonymousToken.js +6 -2
- package/esm/funcs/authGetAnonymousToken.js.map +1 -1
- package/esm/funcs/authGetUserDetail.d.ts +2 -1
- package/esm/funcs/authGetUserDetail.d.ts.map +1 -1
- package/esm/funcs/authGetUserDetail.js +6 -2
- package/esm/funcs/authGetUserDetail.js.map +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts +2 -1
- package/esm/funcs/authLoginWithEmail.d.ts.map +1 -1
- package/esm/funcs/authLoginWithEmail.js +6 -2
- package/esm/funcs/authLoginWithEmail.js.map +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts +2 -1
- package/esm/funcs/authLoginWithPhone.d.ts.map +1 -1
- package/esm/funcs/authLoginWithPhone.js +6 -2
- package/esm/funcs/authLoginWithPhone.js.map +1 -1
- package/esm/funcs/authRefreshToken.d.ts +2 -1
- package/esm/funcs/authRefreshToken.d.ts.map +1 -1
- package/esm/funcs/authRefreshToken.js +6 -2
- package/esm/funcs/authRefreshToken.js.map +1 -1
- package/esm/funcs/authUpdateUser.d.ts +2 -1
- package/esm/funcs/authUpdateUser.d.ts.map +1 -1
- package/esm/funcs/authUpdateUser.js +6 -2
- package/esm/funcs/authUpdateUser.js.map +1 -1
- package/esm/funcs/authVerifyOtp.d.ts +2 -1
- package/esm/funcs/authVerifyOtp.d.ts.map +1 -1
- package/esm/funcs/authVerifyOtp.js +6 -2
- package/esm/funcs/authVerifyOtp.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/operations/generateotp.d.ts +10 -10
- package/esm/models/operations/generateotp.d.ts.map +1 -1
- package/esm/models/operations/generateotp.js +10 -10
- package/esm/models/operations/generateotp.js.map +1 -1
- package/esm/models/operations/getuserdetail.d.ts +8 -8
- package/esm/models/operations/getuserdetail.d.ts.map +1 -1
- package/esm/models/operations/getuserdetail.js +8 -8
- package/esm/models/operations/getuserdetail.js.map +1 -1
- package/esm/models/operations/loginwithemail.d.ts +10 -10
- package/esm/models/operations/loginwithemail.d.ts.map +1 -1
- package/esm/models/operations/loginwithemail.js +10 -10
- package/esm/models/operations/loginwithemail.js.map +1 -1
- package/esm/models/operations/loginwithphone.d.ts +10 -10
- package/esm/models/operations/loginwithphone.d.ts.map +1 -1
- package/esm/models/operations/loginwithphone.js +11 -11
- package/esm/models/operations/loginwithphone.js.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.d.ts +10 -10
- package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.js +10 -10
- package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
- package/esm/models/operations/logout.d.ts +12 -12
- package/esm/models/operations/logout.d.ts.map +1 -1
- package/esm/models/operations/logout.js +12 -12
- package/esm/models/operations/logout.js.map +1 -1
- package/esm/models/operations/refreshtoken.d.ts +12 -12
- package/esm/models/operations/refreshtoken.d.ts.map +1 -1
- package/esm/models/operations/refreshtoken.js +12 -12
- package/esm/models/operations/refreshtoken.js.map +1 -1
- package/esm/models/operations/updateuser.d.ts +8 -8
- package/esm/models/operations/updateuser.d.ts.map +1 -1
- package/esm/models/operations/updateuser.js +8 -8
- package/esm/models/operations/updateuser.js.map +1 -1
- package/esm/models/operations/verifyotp.d.ts +8 -8
- package/esm/models/operations/verifyotp.d.ts.map +1 -1
- package/esm/models/operations/verifyotp.js +8 -8
- package/esm/models/operations/verifyotp.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authGetAnonymousToken.ts +15 -2
- package/src/funcs/authGetUserDetail.ts +19 -2
- package/src/funcs/authLoginWithEmail.ts +19 -2
- package/src/funcs/authLoginWithPhone.ts +19 -2
- package/src/funcs/authRefreshToken.ts +15 -2
- package/src/funcs/authUpdateUser.ts +15 -2
- package/src/funcs/authVerifyOtp.ts +19 -2
- package/src/lib/config.ts +2 -2
- package/src/models/operations/generateotp.ts +20 -20
- package/src/models/operations/getuserdetail.ts +16 -16
- package/src/models/operations/loginwithemail.ts +20 -20
- package/src/models/operations/loginwithphone.ts +21 -21
- package/src/models/operations/loginwithwhatsapp.ts +20 -20
- package/src/models/operations/logout.ts +24 -24
- package/src/models/operations/refreshtoken.ts +24 -24
- package/src/models/operations/updateuser.ts +16 -16
- 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
|
|
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
|
|
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
|
|
38
|
+
success: boolean;
|
|
39
39
|
/**
|
|
40
40
|
* An object containing the response content.
|
|
41
41
|
*/
|
|
42
|
-
content
|
|
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
|
|
116
|
+
user: components.User$inboundSchema,
|
|
117
117
|
});
|
|
118
118
|
|
|
119
119
|
/** @internal */
|
|
120
120
|
export type UpdateUserContent$Outbound = {
|
|
121
|
-
user
|
|
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
|
|
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()
|
|
171
|
-
success: z.boolean()
|
|
172
|
-
content: z.lazy(() => UpdateUserContent$inboundSchema)
|
|
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
|
|
178
|
-
success
|
|
179
|
-
content
|
|
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()
|
|
189
|
-
success: z.boolean()
|
|
190
|
-
content: z.lazy(() => UpdateUserContent$outboundSchema)
|
|
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
|
|
49
|
+
user: components.User;
|
|
50
50
|
/**
|
|
51
51
|
* A string representing the access token.
|
|
52
52
|
*/
|
|
53
|
-
accessToken
|
|
53
|
+
accessToken: string;
|
|
54
54
|
/**
|
|
55
55
|
* A string representing the refresh token.
|
|
56
56
|
*/
|
|
57
|
-
refreshToken
|
|
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
|
|
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
|
|
174
|
-
access_token: z.string()
|
|
175
|
-
refresh_token: z.string()
|
|
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
|
|
186
|
-
access_token
|
|
187
|
-
refresh_token
|
|
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
|
|
197
|
-
accessToken: z.string()
|
|
198
|
-
refreshToken: z.string()
|
|
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)
|
|
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
|
|
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)
|
|
263
|
+
content: z.lazy(() => VerifyOtpContent$outboundSchema),
|
|
264
264
|
});
|
|
265
265
|
|
|
266
266
|
/**
|