ce-storefront 0.5.2 → 0.5.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.
- package/docs/sdks/auth/README.md +85 -36
- package/esm/funcs/authGenerateOtp.d.ts +1 -1
- package/esm/funcs/authGenerateOtp.d.ts.map +1 -1
- package/esm/funcs/authGenerateOtp.js +27 -6
- package/esm/funcs/authGenerateOtp.js.map +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts.map +1 -1
- package/esm/funcs/authLoginWithEmail.js +27 -6
- package/esm/funcs/authLoginWithEmail.js.map +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts.map +1 -1
- package/esm/funcs/authLoginWithPhone.js +27 -6
- package/esm/funcs/authLoginWithPhone.js.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.js +27 -6
- package/esm/funcs/authLoginWithWhatsapp.js.map +1 -1
- package/esm/funcs/authVerifyOtp.d.ts +1 -1
- package/esm/funcs/authVerifyOtp.d.ts.map +1 -1
- package/esm/funcs/authVerifyOtp.js +27 -6
- package/esm/funcs/authVerifyOtp.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/components/notificationchannelpreferences.d.ts +3 -3
- package/esm/models/components/notificationchannelpreferences.d.ts.map +1 -1
- package/esm/models/components/notificationchannelpreferences.js +6 -6
- package/esm/models/components/notificationchannelpreferences.js.map +1 -1
- package/esm/models/operations/deleteaddress.d.ts +1 -1
- package/esm/models/operations/deleteaddress.d.ts.map +1 -1
- package/esm/models/operations/deleteaddress.js +2 -2
- package/esm/models/operations/deleteaddress.js.map +1 -1
- package/esm/models/operations/deletecart.d.ts +1 -1
- package/esm/models/operations/deletecart.d.ts.map +1 -1
- package/esm/models/operations/deletecart.js +2 -2
- package/esm/models/operations/deletecart.js.map +1 -1
- package/esm/models/operations/deleteusercart.d.ts +1 -1
- package/esm/models/operations/deleteusercart.d.ts.map +1 -1
- package/esm/models/operations/deleteusercart.js +2 -2
- package/esm/models/operations/deleteusercart.js.map +1 -1
- package/esm/models/operations/generateotp.d.ts +106 -0
- package/esm/models/operations/generateotp.d.ts.map +1 -1
- package/esm/models/operations/generateotp.js +144 -0
- package/esm/models/operations/generateotp.js.map +1 -1
- package/esm/models/operations/getcart.d.ts +1 -1
- package/esm/models/operations/getcart.d.ts.map +1 -1
- package/esm/models/operations/getcart.js +2 -2
- package/esm/models/operations/getcart.js.map +1 -1
- package/esm/models/operations/getproductdetail.d.ts +1 -1
- package/esm/models/operations/getproductdetail.d.ts.map +1 -1
- package/esm/models/operations/getproductdetail.js +2 -2
- package/esm/models/operations/getproductdetail.js.map +1 -1
- package/esm/models/operations/getusercart.d.ts +1 -1
- package/esm/models/operations/getusercart.d.ts.map +1 -1
- package/esm/models/operations/getusercart.js +2 -2
- package/esm/models/operations/getusercart.js.map +1 -1
- package/esm/models/operations/getvariantdetail.d.ts +1 -1
- package/esm/models/operations/getvariantdetail.d.ts.map +1 -1
- package/esm/models/operations/getvariantdetail.js +2 -2
- package/esm/models/operations/getvariantdetail.js.map +1 -1
- package/esm/models/operations/listcategories.d.ts +1 -1
- package/esm/models/operations/listcategories.d.ts.map +1 -1
- package/esm/models/operations/listcategories.js +2 -2
- package/esm/models/operations/listcategories.js.map +1 -1
- package/esm/models/operations/listproducts.d.ts +1 -1
- package/esm/models/operations/listproducts.d.ts.map +1 -1
- package/esm/models/operations/listproducts.js +2 -2
- package/esm/models/operations/listproducts.js.map +1 -1
- package/esm/models/operations/listproductvariants.d.ts +1 -1
- package/esm/models/operations/listproductvariants.d.ts.map +1 -1
- package/esm/models/operations/listproductvariants.js +2 -2
- package/esm/models/operations/listproductvariants.js.map +1 -1
- package/esm/models/operations/listskus.d.ts +1 -1
- package/esm/models/operations/listskus.d.ts.map +1 -1
- package/esm/models/operations/listskus.js +2 -2
- package/esm/models/operations/listskus.js.map +1 -1
- package/esm/models/operations/loginwithemail.d.ts +106 -0
- package/esm/models/operations/loginwithemail.d.ts.map +1 -1
- package/esm/models/operations/loginwithemail.js +147 -0
- package/esm/models/operations/loginwithemail.js.map +1 -1
- package/esm/models/operations/loginwithphone.d.ts +106 -0
- package/esm/models/operations/loginwithphone.d.ts.map +1 -1
- package/esm/models/operations/loginwithphone.js +147 -0
- package/esm/models/operations/loginwithphone.js.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.d.ts +106 -0
- package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.js +150 -0
- package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
- package/esm/models/operations/updatecart.d.ts +2 -2
- package/esm/models/operations/updatecart.d.ts.map +1 -1
- package/esm/models/operations/updatecart.js +2 -2
- package/esm/models/operations/updatecart.js.map +1 -1
- package/esm/models/operations/verifyotp.d.ts +106 -0
- package/esm/models/operations/verifyotp.d.ts.map +1 -1
- package/esm/models/operations/verifyotp.js +144 -0
- package/esm/models/operations/verifyotp.js.map +1 -1
- package/esm/sdk/auth.d.ts +5 -5
- package/esm/sdk/auth.d.ts.map +1 -1
- package/esm/sdk/auth.js +10 -10
- package/esm/sdk/auth.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authGenerateOtp.ts +31 -5
- package/src/funcs/authLoginWithEmail.ts +31 -5
- package/src/funcs/authLoginWithPhone.ts +31 -5
- package/src/funcs/authLoginWithWhatsapp.ts +31 -5
- package/src/funcs/authVerifyOtp.ts +31 -5
- package/src/lib/config.ts +3 -3
- package/src/models/components/notificationchannelpreferences.ts +9 -9
- package/src/models/operations/deleteaddress.ts +3 -3
- package/src/models/operations/deletecart.ts +3 -3
- package/src/models/operations/deleteusercart.ts +3 -3
- package/src/models/operations/generateotp.ts +282 -0
- package/src/models/operations/getcart.ts +3 -3
- package/src/models/operations/getproductdetail.ts +3 -3
- package/src/models/operations/getusercart.ts +3 -3
- package/src/models/operations/getvariantdetail.ts +3 -3
- package/src/models/operations/listcategories.ts +3 -3
- package/src/models/operations/listproducts.ts +3 -3
- package/src/models/operations/listproductvariants.ts +3 -3
- package/src/models/operations/listskus.ts +3 -3
- package/src/models/operations/loginwithemail.ts +291 -0
- package/src/models/operations/loginwithphone.ts +291 -0
- package/src/models/operations/loginwithwhatsapp.ts +294 -0
- package/src/models/operations/updatecart.ts +4 -4
- package/src/models/operations/verifyotp.ts +282 -0
- package/src/sdk/auth.ts +10 -0
package/docs/sdks/auth/README.md
CHANGED
|
@@ -103,12 +103,14 @@ This API enables users to authenticate into the system using their phone number.
|
|
|
103
103
|
```typescript
|
|
104
104
|
import { CeStorefront } from "ce-storefront";
|
|
105
105
|
|
|
106
|
-
const ceStorefront = new CeStorefront(
|
|
107
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
108
|
-
});
|
|
106
|
+
const ceStorefront = new CeStorefront();
|
|
109
107
|
|
|
110
108
|
async function run() {
|
|
111
109
|
const result = await ceStorefront.auth.loginWithPhone({
|
|
110
|
+
option1: {
|
|
111
|
+
xApiKey: "<YOUR_API_KEY_HERE>",
|
|
112
|
+
},
|
|
113
|
+
}, {
|
|
112
114
|
phone: "692.569.4013 x3423",
|
|
113
115
|
});
|
|
114
116
|
|
|
@@ -129,12 +131,14 @@ import { authLoginWithPhone } from "ce-storefront/funcs/authLoginWithPhone.js";
|
|
|
129
131
|
|
|
130
132
|
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
131
133
|
// You can create one instance of it to use across an application.
|
|
132
|
-
const ceStorefront = new CeStorefrontCore(
|
|
133
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
134
|
-
});
|
|
134
|
+
const ceStorefront = new CeStorefrontCore();
|
|
135
135
|
|
|
136
136
|
async function run() {
|
|
137
137
|
const res = await authLoginWithPhone(ceStorefront, {
|
|
138
|
+
option1: {
|
|
139
|
+
xApiKey: "<YOUR_API_KEY_HERE>",
|
|
140
|
+
},
|
|
141
|
+
}, {
|
|
138
142
|
phone: "692.569.4013 x3423",
|
|
139
143
|
});
|
|
140
144
|
|
|
@@ -156,6 +160,7 @@ run();
|
|
|
156
160
|
| Parameter | Type | Required | Description |
|
|
157
161
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
158
162
|
| `request` | [operations.LoginWithPhoneRequestBody](../../models/operations/loginwithphonerequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
163
|
+
| `security` | [operations.LoginWithPhoneSecurity](../../models/operations/loginwithphonesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
159
164
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
160
165
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
161
166
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -180,12 +185,14 @@ This API enables users to authenticate into the system using their email address
|
|
|
180
185
|
```typescript
|
|
181
186
|
import { CeStorefront } from "ce-storefront";
|
|
182
187
|
|
|
183
|
-
const ceStorefront = new CeStorefront(
|
|
184
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
185
|
-
});
|
|
188
|
+
const ceStorefront = new CeStorefront();
|
|
186
189
|
|
|
187
190
|
async function run() {
|
|
188
191
|
const result = await ceStorefront.auth.loginWithEmail({
|
|
192
|
+
option1: {
|
|
193
|
+
xApiKey: "<YOUR_API_KEY_HERE>",
|
|
194
|
+
},
|
|
195
|
+
}, {
|
|
189
196
|
email: "Rick.Gleichner@yahoo.com",
|
|
190
197
|
});
|
|
191
198
|
|
|
@@ -206,12 +213,14 @@ import { authLoginWithEmail } from "ce-storefront/funcs/authLoginWithEmail.js";
|
|
|
206
213
|
|
|
207
214
|
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
208
215
|
// You can create one instance of it to use across an application.
|
|
209
|
-
const ceStorefront = new CeStorefrontCore(
|
|
210
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
211
|
-
});
|
|
216
|
+
const ceStorefront = new CeStorefrontCore();
|
|
212
217
|
|
|
213
218
|
async function run() {
|
|
214
219
|
const res = await authLoginWithEmail(ceStorefront, {
|
|
220
|
+
option1: {
|
|
221
|
+
xApiKey: "<YOUR_API_KEY_HERE>",
|
|
222
|
+
},
|
|
223
|
+
}, {
|
|
215
224
|
email: "Rick.Gleichner@yahoo.com",
|
|
216
225
|
});
|
|
217
226
|
|
|
@@ -233,6 +242,7 @@ run();
|
|
|
233
242
|
| Parameter | Type | Required | Description |
|
|
234
243
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
235
244
|
| `request` | [operations.LoginWithEmailRequestBody](../../models/operations/loginwithemailrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
245
|
+
| `security` | [operations.LoginWithEmailSecurity](../../models/operations/loginwithemailsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
236
246
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
237
247
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
238
248
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -257,12 +267,14 @@ This API enables users to authenticate into the system using their WhatsApp Numb
|
|
|
257
267
|
```typescript
|
|
258
268
|
import { CeStorefront } from "ce-storefront";
|
|
259
269
|
|
|
260
|
-
const ceStorefront = new CeStorefront(
|
|
261
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
262
|
-
});
|
|
270
|
+
const ceStorefront = new CeStorefront();
|
|
263
271
|
|
|
264
272
|
async function run() {
|
|
265
273
|
const result = await ceStorefront.auth.loginWithWhatsapp({
|
|
274
|
+
option1: {
|
|
275
|
+
xApiKey: "<YOUR_API_KEY_HERE>",
|
|
276
|
+
},
|
|
277
|
+
}, {
|
|
266
278
|
phone: "1-581-213-0002",
|
|
267
279
|
});
|
|
268
280
|
|
|
@@ -283,12 +295,14 @@ import { authLoginWithWhatsapp } from "ce-storefront/funcs/authLoginWithWhatsapp
|
|
|
283
295
|
|
|
284
296
|
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
285
297
|
// You can create one instance of it to use across an application.
|
|
286
|
-
const ceStorefront = new CeStorefrontCore(
|
|
287
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
288
|
-
});
|
|
298
|
+
const ceStorefront = new CeStorefrontCore();
|
|
289
299
|
|
|
290
300
|
async function run() {
|
|
291
301
|
const res = await authLoginWithWhatsapp(ceStorefront, {
|
|
302
|
+
option1: {
|
|
303
|
+
xApiKey: "<YOUR_API_KEY_HERE>",
|
|
304
|
+
},
|
|
305
|
+
}, {
|
|
292
306
|
phone: "1-581-213-0002",
|
|
293
307
|
});
|
|
294
308
|
|
|
@@ -310,6 +324,7 @@ run();
|
|
|
310
324
|
| Parameter | Type | Required | Description |
|
|
311
325
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
312
326
|
| `request` | [operations.LoginWithWhatsappRequestBody](../../models/operations/loginwithwhatsapprequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
327
|
+
| `security` | [operations.LoginWithWhatsappSecurity](../../models/operations/loginwithwhatsappsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
313
328
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
314
329
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
315
330
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -334,12 +349,14 @@ This API endpoint allows you to verify a one-time password (OTP) for authenticat
|
|
|
334
349
|
```typescript
|
|
335
350
|
import { CeStorefront } from "ce-storefront";
|
|
336
351
|
|
|
337
|
-
const ceStorefront = new CeStorefront(
|
|
338
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
339
|
-
});
|
|
352
|
+
const ceStorefront = new CeStorefront();
|
|
340
353
|
|
|
341
354
|
async function run() {
|
|
342
355
|
const result = await ceStorefront.auth.verifyOtp({
|
|
356
|
+
option1: {
|
|
357
|
+
xApiKey: "<YOUR_API_KEY_HERE>",
|
|
358
|
+
},
|
|
359
|
+
}, {
|
|
343
360
|
otp: "<value>",
|
|
344
361
|
otpToken: "<value>",
|
|
345
362
|
otpAction: "login",
|
|
@@ -362,12 +379,14 @@ import { authVerifyOtp } from "ce-storefront/funcs/authVerifyOtp.js";
|
|
|
362
379
|
|
|
363
380
|
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
364
381
|
// You can create one instance of it to use across an application.
|
|
365
|
-
const ceStorefront = new CeStorefrontCore(
|
|
366
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
367
|
-
});
|
|
382
|
+
const ceStorefront = new CeStorefrontCore();
|
|
368
383
|
|
|
369
384
|
async function run() {
|
|
370
385
|
const res = await authVerifyOtp(ceStorefront, {
|
|
386
|
+
option1: {
|
|
387
|
+
xApiKey: "<YOUR_API_KEY_HERE>",
|
|
388
|
+
},
|
|
389
|
+
}, {
|
|
371
390
|
otp: "<value>",
|
|
372
391
|
otpToken: "<value>",
|
|
373
392
|
otpAction: "login",
|
|
@@ -391,6 +410,7 @@ run();
|
|
|
391
410
|
| Parameter | Type | Required | Description |
|
|
392
411
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
393
412
|
| `request` | [operations.VerifyOtpRequestBody](../../models/operations/verifyotprequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
413
|
+
| `security` | [operations.VerifyOtpSecurity](../../models/operations/verifyotpsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
394
414
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
395
415
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
396
416
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -509,9 +529,21 @@ async function run() {
|
|
|
509
529
|
|
|
510
530
|
],
|
|
511
531
|
notificationPreferences: {
|
|
512
|
-
transactional: {
|
|
513
|
-
|
|
514
|
-
|
|
532
|
+
transactional: {
|
|
533
|
+
email: true,
|
|
534
|
+
sms: true,
|
|
535
|
+
whatsapp: true,
|
|
536
|
+
},
|
|
537
|
+
promotional: {
|
|
538
|
+
email: true,
|
|
539
|
+
sms: true,
|
|
540
|
+
whatsapp: true,
|
|
541
|
+
},
|
|
542
|
+
newsletter: {
|
|
543
|
+
email: true,
|
|
544
|
+
sms: true,
|
|
545
|
+
whatsapp: true,
|
|
546
|
+
},
|
|
515
547
|
},
|
|
516
548
|
},
|
|
517
549
|
});
|
|
@@ -550,9 +582,21 @@ async function run() {
|
|
|
550
582
|
|
|
551
583
|
],
|
|
552
584
|
notificationPreferences: {
|
|
553
|
-
transactional: {
|
|
554
|
-
|
|
555
|
-
|
|
585
|
+
transactional: {
|
|
586
|
+
email: true,
|
|
587
|
+
sms: true,
|
|
588
|
+
whatsapp: true,
|
|
589
|
+
},
|
|
590
|
+
promotional: {
|
|
591
|
+
email: true,
|
|
592
|
+
sms: true,
|
|
593
|
+
whatsapp: true,
|
|
594
|
+
},
|
|
595
|
+
newsletter: {
|
|
596
|
+
email: true,
|
|
597
|
+
sms: true,
|
|
598
|
+
whatsapp: true,
|
|
599
|
+
},
|
|
556
600
|
},
|
|
557
601
|
},
|
|
558
602
|
});
|
|
@@ -907,12 +951,14 @@ Generating a One-Time Password (OTP) typically involves creating a random code t
|
|
|
907
951
|
```typescript
|
|
908
952
|
import { CeStorefront } from "ce-storefront";
|
|
909
953
|
|
|
910
|
-
const ceStorefront = new CeStorefront(
|
|
911
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
912
|
-
});
|
|
954
|
+
const ceStorefront = new CeStorefront();
|
|
913
955
|
|
|
914
956
|
async function run() {
|
|
915
957
|
const result = await ceStorefront.auth.generateOtp({
|
|
958
|
+
option1: {
|
|
959
|
+
xApiKey: "<YOUR_API_KEY_HERE>",
|
|
960
|
+
},
|
|
961
|
+
}, {
|
|
916
962
|
channel: "sms",
|
|
917
963
|
otpAction: "reset-password",
|
|
918
964
|
});
|
|
@@ -934,12 +980,14 @@ import { authGenerateOtp } from "ce-storefront/funcs/authGenerateOtp.js";
|
|
|
934
980
|
|
|
935
981
|
// Use `CeStorefrontCore` for best tree-shaking performance.
|
|
936
982
|
// You can create one instance of it to use across an application.
|
|
937
|
-
const ceStorefront = new CeStorefrontCore(
|
|
938
|
-
authorization: "<YOUR_BEARER_TOKEN_HERE>",
|
|
939
|
-
});
|
|
983
|
+
const ceStorefront = new CeStorefrontCore();
|
|
940
984
|
|
|
941
985
|
async function run() {
|
|
942
986
|
const res = await authGenerateOtp(ceStorefront, {
|
|
987
|
+
option1: {
|
|
988
|
+
xApiKey: "<YOUR_API_KEY_HERE>",
|
|
989
|
+
},
|
|
990
|
+
}, {
|
|
943
991
|
channel: "sms",
|
|
944
992
|
otpAction: "reset-password",
|
|
945
993
|
});
|
|
@@ -962,6 +1010,7 @@ run();
|
|
|
962
1010
|
| Parameter | Type | Required | Description |
|
|
963
1011
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
964
1012
|
| `request` | [operations.GenerateOtpRequestBody](../../models/operations/generateotprequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1013
|
+
| `security` | [operations.GenerateOtpSecurity](../../models/operations/generateotpsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
965
1014
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
966
1015
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
967
1016
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -11,5 +11,5 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
* @remarks
|
|
12
12
|
* Generating a One-Time Password (OTP) typically involves creating a random code that is sent to a user for authentication or verification purposes.
|
|
13
13
|
*/
|
|
14
|
-
export declare function authGenerateOtp(client: CeStorefrontCore, request: operations.GenerateOtpRequestBody, options?: RequestOptions): Promise<Result<operations.GenerateOtpResponseBody, CeError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
14
|
+
export declare function authGenerateOtp(client: CeStorefrontCore, security: operations.GenerateOtpSecurity, request: operations.GenerateOtpRequestBody, options?: RequestOptions): Promise<Result<operations.GenerateOtpResponseBody, CeError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
15
15
|
//# sourceMappingURL=authGenerateOtp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authGenerateOtp.d.ts","sourceRoot":"","sources":["../../src/funcs/authGenerateOtp.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAK9C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAE5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,uBAAuB,EAChC,OAAO,GACP,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,
|
|
1
|
+
{"version":3,"file":"authGenerateOtp.d.ts","sourceRoot":"","sources":["../../src/funcs/authGenerateOtp.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAK9C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAE5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,gBAAgB,EACxB,QAAQ,EAAE,UAAU,CAAC,mBAAmB,EACxC,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,uBAAuB,EAChC,OAAO,GACP,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA8GA"}
|
|
@@ -5,7 +5,7 @@ import { encodeJSON } from "../lib/encodings.js";
|
|
|
5
5
|
import * as M from "../lib/matchers.js";
|
|
6
6
|
import { compactMap } from "../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import {
|
|
8
|
+
import { resolveSecurity } from "../lib/security.js";
|
|
9
9
|
import { pathToFunc } from "../lib/url.js";
|
|
10
10
|
import { GenerateOtpServerList } from "../models/operations/generateotp.js";
|
|
11
11
|
import * as operations from "../models/operations/index.js";
|
|
@@ -15,7 +15,7 @@ import * as operations from "../models/operations/index.js";
|
|
|
15
15
|
* @remarks
|
|
16
16
|
* Generating a One-Time Password (OTP) typically involves creating a random code that is sent to a user for authentication or verification purposes.
|
|
17
17
|
*/
|
|
18
|
-
export async function authGenerateOtp(client, request, options) {
|
|
18
|
+
export async function authGenerateOtp(client, security, request, options) {
|
|
19
19
|
const parsed = safeParse(request, (value) => operations.GenerateOtpRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
20
20
|
if (!parsed.ok) {
|
|
21
21
|
return parsed;
|
|
@@ -31,14 +31,35 @@ export async function authGenerateOtp(client, request, options) {
|
|
|
31
31
|
"Content-Type": "application/json",
|
|
32
32
|
Accept: "application/json",
|
|
33
33
|
}));
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
const requestSecurity = resolveSecurity([
|
|
35
|
+
{
|
|
36
|
+
fieldName: "X-Api-Key",
|
|
37
|
+
type: "apiKey:header",
|
|
38
|
+
value: security?.option1?.xApiKey,
|
|
39
|
+
},
|
|
40
|
+
], [
|
|
41
|
+
{
|
|
42
|
+
fieldName: "Authorization",
|
|
43
|
+
type: "http:bearer",
|
|
44
|
+
value: security?.option2?.authorization,
|
|
45
|
+
},
|
|
46
|
+
], [
|
|
47
|
+
{
|
|
48
|
+
fieldName: "X-Api-Key",
|
|
49
|
+
type: "apiKey:header",
|
|
50
|
+
value: security?.option3?.xApiKey,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
fieldName: "Authorization",
|
|
54
|
+
type: "http:bearer",
|
|
55
|
+
value: security?.option3?.authorization,
|
|
56
|
+
},
|
|
57
|
+
]);
|
|
37
58
|
const context = {
|
|
38
59
|
operationID: "generate-otp",
|
|
39
60
|
oAuth2Scopes: [],
|
|
40
61
|
resolvedSecurity: requestSecurity,
|
|
41
|
-
securitySource:
|
|
62
|
+
securitySource: security,
|
|
42
63
|
retryConfig: options?.retries
|
|
43
64
|
|| client._options.retryConfig
|
|
44
65
|
|| { strategy: "none" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authGenerateOtp.js","sourceRoot":"","sources":["../../src/funcs/authGenerateOtp.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"authGenerateOtp.js","sourceRoot":"","sources":["../../src/funcs/authGenerateOtp.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAU3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,MAAwB,EACxB,QAAwC,EACxC,OAA0C,EAC1C,OAAwB;IAaxB,MAAM,MAAM,GAAG,SAAS,CACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,qCAAqC,CAAC,KAAK,CAAC,KAA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C,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,CAAC,CAAC;IACZ,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -11,5 +11,5 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
* @remarks
|
|
12
12
|
* This API enables users to authenticate into the system using their email address. It provides a secure way for users to Login by verifying their identity through a one-time password (OTP) sent to their email address.
|
|
13
13
|
*/
|
|
14
|
-
export declare function authLoginWithEmail(client: CeStorefrontCore, request: operations.LoginWithEmailRequestBody, options?: RequestOptions): Promise<Result<operations.LoginWithEmailResponseBody, CeError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
14
|
+
export declare function authLoginWithEmail(client: CeStorefrontCore, security: operations.LoginWithEmailSecurity, request: operations.LoginWithEmailRequestBody, options?: RequestOptions): Promise<Result<operations.LoginWithEmailResponseBody, CeError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
15
15
|
//# sourceMappingURL=authLoginWithEmail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authLoginWithEmail.d.ts","sourceRoot":"","sources":["../../src/funcs/authLoginWithEmail.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAK9C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,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F,CA8GA"}
|
|
@@ -5,7 +5,7 @@ import { encodeJSON } from "../lib/encodings.js";
|
|
|
5
5
|
import * as M from "../lib/matchers.js";
|
|
6
6
|
import { compactMap } from "../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import {
|
|
8
|
+
import { resolveSecurity } from "../lib/security.js";
|
|
9
9
|
import { pathToFunc } from "../lib/url.js";
|
|
10
10
|
import * as operations from "../models/operations/index.js";
|
|
11
11
|
import { LoginWithEmailServerList } from "../models/operations/loginwithemail.js";
|
|
@@ -15,7 +15,7 @@ import { LoginWithEmailServerList } from "../models/operations/loginwithemail.js
|
|
|
15
15
|
* @remarks
|
|
16
16
|
* This API enables users to authenticate into the system using their email address. It provides a secure way for users to Login by verifying their identity through a one-time password (OTP) sent to their email address.
|
|
17
17
|
*/
|
|
18
|
-
export async function authLoginWithEmail(client, request, options) {
|
|
18
|
+
export async function authLoginWithEmail(client, security, request, options) {
|
|
19
19
|
const parsed = safeParse(request, (value) => operations.LoginWithEmailRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
20
20
|
if (!parsed.ok) {
|
|
21
21
|
return parsed;
|
|
@@ -31,14 +31,35 @@ export async function authLoginWithEmail(client, request, options) {
|
|
|
31
31
|
"Content-Type": "application/json",
|
|
32
32
|
Accept: "application/json",
|
|
33
33
|
}));
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
const requestSecurity = resolveSecurity([
|
|
35
|
+
{
|
|
36
|
+
fieldName: "X-Api-Key",
|
|
37
|
+
type: "apiKey:header",
|
|
38
|
+
value: security?.option1?.xApiKey,
|
|
39
|
+
},
|
|
40
|
+
], [
|
|
41
|
+
{
|
|
42
|
+
fieldName: "Authorization",
|
|
43
|
+
type: "http:bearer",
|
|
44
|
+
value: security?.option2?.authorization,
|
|
45
|
+
},
|
|
46
|
+
], [
|
|
47
|
+
{
|
|
48
|
+
fieldName: "X-Api-Key",
|
|
49
|
+
type: "apiKey:header",
|
|
50
|
+
value: security?.option3?.xApiKey,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
fieldName: "Authorization",
|
|
54
|
+
type: "http:bearer",
|
|
55
|
+
value: security?.option3?.authorization,
|
|
56
|
+
},
|
|
57
|
+
]);
|
|
37
58
|
const context = {
|
|
38
59
|
operationID: "login-with-email",
|
|
39
60
|
oAuth2Scopes: [],
|
|
40
61
|
resolvedSecurity: requestSecurity,
|
|
41
|
-
securitySource:
|
|
62
|
+
securitySource: security,
|
|
42
63
|
retryConfig: options?.retries
|
|
43
64
|
|| client._options.retryConfig
|
|
44
65
|
|| { strategy: "none" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authLoginWithEmail.js","sourceRoot":"","sources":["../../src/funcs/authLoginWithEmail.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"authLoginWithEmail.js","sourceRoot":"","sources":["../../src/funcs/authLoginWithEmail.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAU3C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,wBAAwB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Q,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAU5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,wCAAwC,CAAC,EAChE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,CAAC,CAAC;IACZ,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -11,5 +11,5 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
* @remarks
|
|
12
12
|
* This API enables users to authenticate into the system using their phone number. It provides a secure way for users to log in by verifying their identity through a one-time password (OTP) sent to their registered phone.
|
|
13
13
|
*/
|
|
14
|
-
export declare function authLoginWithPhone(client: CeStorefrontCore, request: operations.LoginWithPhoneRequestBody, options?: RequestOptions): Promise<Result<operations.LoginWithPhoneResponseBody, CeError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
14
|
+
export declare function authLoginWithPhone(client: CeStorefrontCore, security: operations.LoginWithPhoneSecurity, request: operations.LoginWithPhoneRequestBody, options?: RequestOptions): Promise<Result<operations.LoginWithPhoneResponseBody, CeError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
15
15
|
//# sourceMappingURL=authLoginWithPhone.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authLoginWithPhone.d.ts","sourceRoot":"","sources":["../../src/funcs/authLoginWithPhone.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM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BAAgB,EACxB,QAAQ,EAAE,UAAU,CAAC,sBAAsB,EAC3C,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,0BAA0B,EACnC,OAAO,GACP,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA8GA"}
|
|
@@ -5,7 +5,7 @@ import { encodeJSON } from "../lib/encodings.js";
|
|
|
5
5
|
import * as M from "../lib/matchers.js";
|
|
6
6
|
import { compactMap } from "../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import {
|
|
8
|
+
import { resolveSecurity } from "../lib/security.js";
|
|
9
9
|
import { pathToFunc } from "../lib/url.js";
|
|
10
10
|
import * as operations from "../models/operations/index.js";
|
|
11
11
|
import { LoginWithPhoneServerList } from "../models/operations/loginwithphone.js";
|
|
@@ -15,7 +15,7 @@ import { LoginWithPhoneServerList } from "../models/operations/loginwithphone.js
|
|
|
15
15
|
* @remarks
|
|
16
16
|
* This API enables users to authenticate into the system using their phone number. It provides a secure way for users to log in by verifying their identity through a one-time password (OTP) sent to their registered phone.
|
|
17
17
|
*/
|
|
18
|
-
export async function authLoginWithPhone(client, request, options) {
|
|
18
|
+
export async function authLoginWithPhone(client, security, request, options) {
|
|
19
19
|
const parsed = safeParse(request, (value) => operations.LoginWithPhoneRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
20
20
|
if (!parsed.ok) {
|
|
21
21
|
return parsed;
|
|
@@ -31,14 +31,35 @@ export async function authLoginWithPhone(client, request, options) {
|
|
|
31
31
|
"Content-Type": "application/json",
|
|
32
32
|
Accept: "application/json",
|
|
33
33
|
}));
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
const requestSecurity = resolveSecurity([
|
|
35
|
+
{
|
|
36
|
+
fieldName: "X-Api-Key",
|
|
37
|
+
type: "apiKey:header",
|
|
38
|
+
value: security?.option1?.xApiKey,
|
|
39
|
+
},
|
|
40
|
+
], [
|
|
41
|
+
{
|
|
42
|
+
fieldName: "Authorization",
|
|
43
|
+
type: "http:bearer",
|
|
44
|
+
value: security?.option2?.authorization,
|
|
45
|
+
},
|
|
46
|
+
], [
|
|
47
|
+
{
|
|
48
|
+
fieldName: "X-Api-Key",
|
|
49
|
+
type: "apiKey:header",
|
|
50
|
+
value: security?.option3?.xApiKey,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
fieldName: "Authorization",
|
|
54
|
+
type: "http:bearer",
|
|
55
|
+
value: security?.option3?.authorization,
|
|
56
|
+
},
|
|
57
|
+
]);
|
|
37
58
|
const context = {
|
|
38
59
|
operationID: "login-with-phone",
|
|
39
60
|
oAuth2Scopes: [],
|
|
40
61
|
resolvedSecurity: requestSecurity,
|
|
41
|
-
securitySource:
|
|
62
|
+
securitySource: security,
|
|
42
63
|
retryConfig: options?.retries
|
|
43
64
|
|| client._options.retryConfig
|
|
44
65
|
|| { strategy: "none" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authLoginWithPhone.js","sourceRoot":"","sources":["../../src/funcs/authLoginWithPhone.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"authLoginWithPhone.js","sourceRoot":"","sources":["../../src/funcs/authLoginWithPhone.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,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M,GAAG,GAAG,UAAU,CAAC,KAAK,CAAC;IAE7B,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE;QACrC,OAAO;QACP,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QAC1B,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAU5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,wCAAwC,CAAC,EAChE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,CAAC,CAAC;IACZ,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -11,5 +11,5 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
* @remarks
|
|
12
12
|
* This API enables users to authenticate into the system using their WhatsApp Number. It provides a secure way for users to Login by verifying their identity through a one-time password (OTP) sent to their WhatsApp Number.
|
|
13
13
|
*/
|
|
14
|
-
export declare function authLoginWithWhatsapp(client: CeStorefrontCore, request: operations.LoginWithWhatsappRequestBody, options?: RequestOptions): Promise<Result<operations.LoginWithWhatsappResponseBody, CeError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
14
|
+
export declare function authLoginWithWhatsapp(client: CeStorefrontCore, security: operations.LoginWithWhatsappSecurity, request: operations.LoginWithWhatsappRequestBody, options?: RequestOptions): Promise<Result<operations.LoginWithWhatsappResponseBody, CeError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
15
15
|
//# sourceMappingURL=authLoginWithWhatsapp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authLoginWithWhatsapp.d.ts","sourceRoot":"","sources":["../../src/funcs/authLoginWithWhatsapp.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAK9C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,6BAA6B,EACtC,OAAO,GACP,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,
|
|
1
|
+
{"version":3,"file":"authLoginWithWhatsapp.d.ts","sourceRoot":"","sources":["../../src/funcs/authLoginWithWhatsapp.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAK9C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,gBAAgB,EACxB,QAAQ,EAAE,UAAU,CAAC,yBAAyB,EAC9C,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,6BAA6B,EACtC,OAAO,GACP,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA+GA"}
|