@zennify/sdk-js 1.10.2 → 1.11.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zennify/sdk-js",
3
- "version": "1.10.2",
3
+ "version": "1.11.0",
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
@@ -109,6 +109,7 @@ export interface APIErrors {
109
109
  received: string
110
110
  };
111
111
  'INVALID_STORE_NAME': {};
112
+ 'YOU_HAVE_ALREADY_MIGRATED': {};
112
113
  /// AUTOROLE
113
114
  'UNKNOWN_AUTOROLE_RULE': {},
114
115
  'AUTOROLE_RULE_ALREADY_EXISTS': {};
@@ -192,8 +192,8 @@
192
192
  "message": "Remove the additional \"{addon}\"."
193
193
  },
194
194
  "UNKNOWN_TRANSACTION": {
195
- "name": "Order not found.",
196
- "message": "Check if the ID is correct."
195
+ "name": "Transaction not found.",
196
+ "message": "It may not exist or may belong to another user."
197
197
  },
198
198
  "MP_ACCOUNT_OFFLINE": {
199
199
  "name": "Unable to generate an order",
@@ -283,6 +283,10 @@
283
283
  "name": "Invalid store name",
284
284
  "message": "The name must be up to 50 characters"
285
285
  },
286
+ "YOU_HAVE_ALREADY_MIGRATED": {
287
+ "name": "You have already migrated in another store",
288
+ "message": "Try setting up again with migration disabled."
289
+ },
286
290
  "UNKNOWN_AUTOROLE_RULE": {
287
291
  "name": "Unknown Discord autorole rule",
288
292
  "message": "Try to create a new rule"
@@ -188,8 +188,8 @@
188
188
  "message": "Remova o adicional \"{addon}\"."
189
189
  },
190
190
  "UNKNOWN_TRANSACTION": {
191
- "name": "Pedido não encontrado.",
192
- "message": "Verifique o ID enviado."
191
+ "name": "Transação não encontrada.",
192
+ "message": "Talvez não exista ou pertença a outra pessoa."
193
193
  },
194
194
  "MP_ACCOUNT_OFFLINE": {
195
195
  "name": "Não foi possível gerar um pedido",
@@ -283,6 +283,10 @@
283
283
  "name": "Nome de loja inválido",
284
284
  "message": "O nome deve ter até 50 caracteres"
285
285
  },
286
+ "YOU_HAVE_ALREADY_MIGRATED": {
287
+ "name": "Você já realizou a migração em outra loja",
288
+ "message": "Tente configurar novamente com a migração desabilitada."
289
+ },
286
290
  "UNKNOWN_AUTOROLE_RULE": {
287
291
  "name": "Regra de cargo automático desconhecida",
288
292
  "message": "Tente criar uma nova regra"
package/types/errors.d.ts CHANGED
@@ -100,6 +100,7 @@ export interface APIErrors {
100
100
  received: string;
101
101
  };
102
102
  'INVALID_STORE_NAME': {};
103
+ 'YOU_HAVE_ALREADY_MIGRATED': {};
103
104
  'UNKNOWN_AUTOROLE_RULE': {};
104
105
  'AUTOROLE_RULE_ALREADY_EXISTS': {};
105
106
  'YOU_REACHED_THE_AUTOROLE_RULE_LIMIT': {};