@zennify/sdk-js 1.0.0-beta.31 → 1.0.0-beta.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.
package/package.json
CHANGED
package/src/errors.ts
CHANGED
package/src/interfaces/Stores.ts
CHANGED
|
@@ -15,7 +15,8 @@ export interface PartialStore {
|
|
|
15
15
|
id: number,
|
|
16
16
|
name: string,
|
|
17
17
|
expires_at: string,
|
|
18
|
-
icon_id?: number | null
|
|
18
|
+
icon_id?: number | null,
|
|
19
|
+
pending_setup?: boolean | null
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
export interface FullStore {
|
|
@@ -28,6 +29,7 @@ export interface FullStore {
|
|
|
28
29
|
banner_id: number | null,
|
|
29
30
|
addons: Addons[],
|
|
30
31
|
blocked_banks: Banks[],
|
|
32
|
+
pending_setup?: boolean | null,
|
|
31
33
|
discord_channels: Record<
|
|
32
34
|
string /** guild id */,
|
|
33
35
|
Record<
|
package/translations/en_US.json
CHANGED
|
@@ -47,6 +47,10 @@
|
|
|
47
47
|
"name": "Expected a valid ID",
|
|
48
48
|
"message": "IDs must be integers between 0 and 2.147.483.647"
|
|
49
49
|
},
|
|
50
|
+
"STORE_ALREADY_CONFIGURED": {
|
|
51
|
+
"name": "This store is already configured",
|
|
52
|
+
"message": "Go back to dashboard and access the store again"
|
|
53
|
+
},
|
|
50
54
|
"DUPLICATED_VALUES_ISNT_ALLOWED": {
|
|
51
55
|
"name": "Duplicated values aren't allowed",
|
|
52
56
|
"message": "Received \"{received}\", Check \"{field}\" field"
|
|
@@ -213,7 +217,7 @@
|
|
|
213
217
|
},
|
|
214
218
|
"THIS_COUPON_HAS_EXPIRED": {
|
|
215
219
|
"name": "This coupon has expired",
|
|
216
|
-
"message": "
|
|
220
|
+
"message": "Try using another coupon."
|
|
217
221
|
},
|
|
218
222
|
"THIS_COUPON_REACHED_THE_USE_LIMIT": {
|
|
219
223
|
"name": "This coupon reached the use limit",
|
package/translations/pt_BR.json
CHANGED
|
@@ -212,12 +212,16 @@
|
|
|
212
212
|
"message": "Verifique o código do cupom."
|
|
213
213
|
},
|
|
214
214
|
"THIS_COUPON_HAS_EXPIRED": {
|
|
215
|
-
"name": "
|
|
216
|
-
"message": "
|
|
215
|
+
"name": "O cupom inserido está expirado",
|
|
216
|
+
"message": "Tente usar outro cupom."
|
|
217
|
+
},
|
|
218
|
+
"STORE_ALREADY_CONFIGURED": {
|
|
219
|
+
"name": "Essa loja já foi configurada",
|
|
220
|
+
"message": "Volte para a dashboard e acesse a loja normalmente"
|
|
217
221
|
},
|
|
218
222
|
"THIS_COUPON_REACHED_THE_USE_LIMIT": {
|
|
219
223
|
"name": "O cupom atingiu o limite de usos",
|
|
220
|
-
"message": "Tente
|
|
224
|
+
"message": "Tente usar um cupom diferente."
|
|
221
225
|
},
|
|
222
226
|
"SELECT_MORE_ITENS_TO_REACH_MINIMUM_COUPON_VALUE": {
|
|
223
227
|
"name": "Adicione mais itens pra atingir o valor mínimo do cupom",
|
|
@@ -225,7 +229,7 @@
|
|
|
225
229
|
},
|
|
226
230
|
"THIS_COUPON_IS_VALID_ONLY_FOR_THE_FIRST_BUY": {
|
|
227
231
|
"name": "Cupom válido apenas para a primeira compra",
|
|
228
|
-
"message": "
|
|
232
|
+
"message": "Tente usar um cupom diferente desse."
|
|
229
233
|
},
|
|
230
234
|
"UNKNOWN_STORE": {
|
|
231
235
|
"name": "Loja desconhecida",
|
package/types/errors.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export interface PartialStore {
|
|
|
6
6
|
name: string;
|
|
7
7
|
expires_at: string;
|
|
8
8
|
icon_id?: number | null;
|
|
9
|
+
pending_setup?: boolean | null;
|
|
9
10
|
}
|
|
10
11
|
export interface FullStore {
|
|
11
12
|
id: number;
|
|
@@ -17,6 +18,7 @@ export interface FullStore {
|
|
|
17
18
|
banner_id: number | null;
|
|
18
19
|
addons: Addons[];
|
|
19
20
|
blocked_banks: Banks[];
|
|
21
|
+
pending_setup?: boolean | null;
|
|
20
22
|
discord_channels: Record<string /** guild id */, Record<'sale' | 'voice' | 'feedback' | 'carts', string | null | void /** channel id */>>;
|
|
21
23
|
discord_bot: {
|
|
22
24
|
id: string;
|