@zennify/sdk-js 1.40.0 → 1.41.1

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.40.0",
3
+ "version": "1.41.1",
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
@@ -26,6 +26,7 @@ export interface APIErrors {
26
26
  'PLEASE_REVERIFY': {};
27
27
  // = user errors
28
28
  'USER_NOT_FOUND': {};
29
+ 'USER_INVALID_NAME': {};
29
30
  /// legal errors
30
31
  'USER_LEGAL_DATA_ALREADY_EXISTS': {};
31
32
  'USER_LEGAL_RESPONSIBLE_INVALID': {};
@@ -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',
@@ -79,6 +79,10 @@
79
79
  "name": "User not found",
80
80
  "message": "Try again."
81
81
  },
82
+ "USER_INVALID_NAME": {
83
+ "name": "Invalid username",
84
+ "message": "Must be between 3 to 32 characters, with alphanumeric characters."
85
+ },
82
86
  "USER_LEGAL_DATA_ALREADY_EXISTS": {
83
87
  "name": "Legal data already exists",
84
88
  "message": "You already have legal data registered."
@@ -75,6 +75,10 @@
75
75
  "name": "Usuário não encontrado",
76
76
  "message": "Tente novamente."
77
77
  },
78
+ "USER_INVALID_NAME": {
79
+ "name": "Nome de usuário inválido",
80
+ "message": "Deve ter entre 3 a 32 caracteres, com caracteres alfanuméricos."
81
+ },
78
82
  "USER_LEGAL_DATA_ALREADY_EXISTS": {
79
83
  "name": "Dados legais já existem",
80
84
  "message": "Você já possui dados legais cadastrados."
package/types/errors.d.ts CHANGED
@@ -23,6 +23,7 @@ export interface APIErrors {
23
23
  'VERIFY_YOUR_EMAIL': {};
24
24
  'PLEASE_REVERIFY': {};
25
25
  'USER_NOT_FOUND': {};
26
+ 'USER_INVALID_NAME': {};
26
27
  'USER_LEGAL_DATA_ALREADY_EXISTS': {};
27
28
  'USER_LEGAL_RESPONSIBLE_INVALID': {};
28
29
  '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';