@zennify/sdk-js 1.41.0 → 1.41.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zennify/sdk-js",
3
- "version": "1.41.0",
3
+ "version": "1.41.2",
4
4
  "description": "A simple package to work with https://api.zennify.app",
5
5
  "main": "dist/main.js",
6
6
  "keywords": [],
package/src/errors.ts CHANGED
@@ -28,6 +28,7 @@ export interface APIErrors {
28
28
  'USER_NOT_FOUND': {};
29
29
  'USER_INVALID_NAME': {};
30
30
  /// legal errors
31
+ 'USER_LEGAL_DATA_REQUIRED': {};
31
32
  'USER_LEGAL_DATA_ALREADY_EXISTS': {};
32
33
  'USER_LEGAL_RESPONSIBLE_INVALID': {};
33
34
 
@@ -1,7 +1,7 @@
1
1
  export type BaseTransaction<TransactionMetadata = any> = {
2
2
  id: string,
3
3
  created_at: number,
4
- entity: 'semiauto' | 'mercadopago',
4
+ entity: 'semiauto' | 'mercadopago' | 'efi' | 'wallet-efi',
5
5
  method: 'pix',
6
6
  managed?: boolean | null,
7
7
  status: 'approved' | 'cancelled' | 'expired' | 'pending' | 'refused' | 'rejected' | 'analysis' | 'refunded' | 'refunded_partial',
@@ -83,6 +83,10 @@
83
83
  "name": "Invalid username",
84
84
  "message": "Must be between 3 to 32 characters, with alphanumeric characters."
85
85
  },
86
+ "USER_LEGAL_DATA_REQUIRED": {
87
+ "name": "Legal data registration required",
88
+ "message": "Legal data is mandatory in this context."
89
+ },
86
90
  "USER_LEGAL_DATA_ALREADY_EXISTS": {
87
91
  "name": "Legal data already exists",
88
92
  "message": "You already have legal data registered."
@@ -79,6 +79,10 @@
79
79
  "name": "Nome de usuário inválido",
80
80
  "message": "Deve ter entre 3 a 32 caracteres, com caracteres alfanuméricos."
81
81
  },
82
+ "USER_LEGAL_DATA_REQUIRED": {
83
+ "name": "É necessário ter dados legais cadastrados.",
84
+ "message": "Os dados legais são obrigatórios nesse contexto."
85
+ },
82
86
  "USER_LEGAL_DATA_ALREADY_EXISTS": {
83
87
  "name": "Dados legais já existem",
84
88
  "message": "Você já possui dados legais cadastrados."
package/types/errors.d.ts CHANGED
@@ -24,6 +24,7 @@ export interface APIErrors {
24
24
  'PLEASE_REVERIFY': {};
25
25
  'USER_NOT_FOUND': {};
26
26
  'USER_INVALID_NAME': {};
27
+ 'USER_LEGAL_DATA_REQUIRED': {};
27
28
  'USER_LEGAL_DATA_ALREADY_EXISTS': {};
28
29
  'USER_LEGAL_RESPONSIBLE_INVALID': {};
29
30
  'USER_LEGAL_DOCUMENTS_REQUIRED': {};
@@ -1,7 +1,7 @@
1
1
  export type BaseTransaction<TransactionMetadata = any> = {
2
2
  id: string;
3
3
  created_at: number;
4
- entity: 'semiauto' | 'mercadopago';
4
+ entity: 'semiauto' | 'mercadopago' | 'efi' | 'wallet-efi';
5
5
  method: 'pix';
6
6
  managed?: boolean | null;
7
7
  status: 'approved' | 'cancelled' | 'expired' | 'pending' | 'refused' | 'rejected' | 'analysis' | 'refunded' | 'refunded_partial';