@zennify/sdk-js 1.15.0 → 1.16.0
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 +1 -1
- package/src/errors.ts +2 -1
- package/translations/en_US.json +4 -0
- package/translations/pt_BR.json +4 -0
- package/types/errors.d.ts +2 -3
package/package.json
CHANGED
package/src/errors.ts
CHANGED
|
@@ -29,7 +29,8 @@ export interface APIErrors {
|
|
|
29
29
|
/// token errors
|
|
30
30
|
'INVALID_TOKEN_NAME': {};
|
|
31
31
|
'INVALID_TOKEN_EXPIRATION': {};
|
|
32
|
-
'INVALID_TOKEN_PERMISSIONS': {
|
|
32
|
+
'INVALID_TOKEN_PERMISSIONS': {};
|
|
33
|
+
'YOU_REACHED_TOKEN_LIMIT': {};
|
|
33
34
|
/// password errors
|
|
34
35
|
'INVALID_PASSWORD': {};
|
|
35
36
|
'YOU_MUST_INSERT_THE_ACTUAL_PASSWORD': {};
|
package/translations/en_US.json
CHANGED
|
@@ -91,6 +91,10 @@
|
|
|
91
91
|
"name": "Invalid Permissions",
|
|
92
92
|
"message": "Contact support and/or check our documentation"
|
|
93
93
|
},
|
|
94
|
+
"YOU_REACHED_TOKEN_LIMIT": {
|
|
95
|
+
"name": "You have reached the limit of 5 tokens!",
|
|
96
|
+
"message": "Try removing old tokens"
|
|
97
|
+
},
|
|
94
98
|
"INVALID_PASSWORD": {
|
|
95
99
|
"name": "Invalid password",
|
|
96
100
|
"message": "Try again."
|
package/translations/pt_BR.json
CHANGED
|
@@ -87,6 +87,10 @@
|
|
|
87
87
|
"name": "Permissões inválidas",
|
|
88
88
|
"message": "Contate o suporte e/ou verifique nossa documentação"
|
|
89
89
|
},
|
|
90
|
+
"YOU_REACHED_TOKEN_LIMIT": {
|
|
91
|
+
"name": "Você atingiu o limite de 5 tokens!",
|
|
92
|
+
"message": "Tente remover tokens antigos"
|
|
93
|
+
},
|
|
90
94
|
"INVALID_PASSWORD": {
|
|
91
95
|
"name": "Senha inválida",
|
|
92
96
|
"message": "Tente novamente."
|
package/types/errors.d.ts
CHANGED
|
@@ -25,9 +25,8 @@ export interface APIErrors {
|
|
|
25
25
|
'USER_NOT_FOUND': {};
|
|
26
26
|
'INVALID_TOKEN_NAME': {};
|
|
27
27
|
'INVALID_TOKEN_EXPIRATION': {};
|
|
28
|
-
'INVALID_TOKEN_PERMISSIONS': {
|
|
29
|
-
|
|
30
|
-
};
|
|
28
|
+
'INVALID_TOKEN_PERMISSIONS': {};
|
|
29
|
+
'YOU_REACHED_TOKEN_LIMIT': {};
|
|
31
30
|
'INVALID_PASSWORD': {};
|
|
32
31
|
'YOU_MUST_INSERT_THE_ACTUAL_PASSWORD': {};
|
|
33
32
|
'THE_PASSWORD_DOES_NOT_MATCH': {};
|