@uappi/public-sdk 1.1.32 → 1.1.34

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.
@@ -1,6 +1,6 @@
1
1
  import type { Ref } from 'vue';
2
2
 
3
- import type { ApiParams, CustomerErrorCode } from '..';
3
+ import type { ApiParams, CustomerErrorCode, CustomerMFAErrorCode } from '..';
4
4
 
5
5
  export type ApiStatus = 'pending' | 'success' | 'error';
6
6
 
@@ -63,6 +63,7 @@ export interface ApiErrorData {
63
63
  | 'GATEWAY_TIME_OUT'
64
64
  | 'UAPPI_TOOLS_ITEM_EVALUATED'
65
65
  | 'UAPPI_TOOLS_REVIEW_NOT_FOUND'
66
- | CustomerErrorCode;
66
+ | CustomerErrorCode
67
+ | CustomerMFAErrorCode;
67
68
  message: string;
68
69
  }
@@ -10,24 +10,26 @@ export interface RequestConfirmMFA {
10
10
  }
11
11
 
12
12
  export interface MFAOption {
13
- type: 'email' | 'sms' | 'app';
13
+ type: "email" | "sms" | "app";
14
14
  id: number;
15
15
  label: string;
16
- settings: MFAAPPSettings | MFAEmailSettings | MFAPhoneSettings;
16
+ settings: MFAAPPSettings | MFAEmailSettings | MFAPhoneSettings;
17
17
  }
18
18
 
19
19
  export interface RequestLoginMFA {
20
20
  mfaOptionId: number;
21
- mfaToken: string;
22
- code: string;
23
- secretKey: string;
21
+ mfaToken: string;
22
+ code: string;
23
+ secretKey: string;
24
24
  }
25
25
 
26
+ export type CustomerMFAErrorCode = 'UAPPI_STORE_CUSTOMER_MFA_CODE_INVALID' | 'UAPPI_STORE_CUSTOMER_MFA_CODE_ATTEMPTS_EXCEEDED'
27
+
26
28
  export interface MFAAPPSettings {
27
29
  otpauth: string;
28
30
  qrCode: string;
29
31
  secretKey: string;
30
- }
32
+ }
31
33
 
32
34
  export interface MFAEmailSettings {
33
35
  email: string;
@@ -36,4 +38,3 @@ export interface MFAEmailSettings {
36
38
  export interface MFAPhoneSettings {
37
39
  phone: string;
38
40
  }
39
-
@@ -237,7 +237,17 @@ import type { PriceRule } from './endpoints/price/price.interfaces';
237
237
 
238
238
  import type { RedirectRequest, OauthType } from './endpoints/third-party/oauth.interfaces';
239
239
 
240
- import type { MFAOption, RequestSendMFA, RequestConfirmMFA, MFAAPPSettings, MFAEmailSettings, MFAPhoneSettings, RequestLoginMFA } from './endpoints/mfa/mfa.interfaces'
240
+ import type {
241
+ MFAOption,
242
+ RequestSendMFA,
243
+ RequestConfirmMFA,
244
+ MFAAPPSettings,
245
+ MFAEmailSettings,
246
+ MFAPhoneSettings,
247
+ RequestLoginMFA,
248
+ CustomerMFAErrorCode
249
+ } from './endpoints/mfa/mfa.interfaces';
250
+
241
251
  export type {
242
252
  // Config da useApi
243
253
  ApiResponse,
@@ -465,6 +475,7 @@ export type {
465
475
  MFAEmailSettings,
466
476
  MFAPhoneSettings,
467
477
  RequestLoginMFA,
478
+ CustomerMFAErrorCode,
468
479
 
469
480
  // Order
470
481
  Order,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uappi/public-sdk",
3
- "version": "1.1.32",
3
+ "version": "1.1.34",
4
4
  "description": "Pacotes públicos para desenvolvimento do ecossistema Uappi",
5
5
  "main": "main.ts",
6
6
  "scripts": {