@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zennify/sdk-js",
3
- "version": "1.0.0-beta.31",
3
+ "version": "1.0.0-beta.34",
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
@@ -148,6 +148,7 @@ export interface APIErrors {
148
148
  'YOU_REACHED_PANEL_LIMIT': {};
149
149
  'PANEL_NAME_ALREADY_EXIST': {};
150
150
  'YOU_REACHED_THE_PRODUCT_LIMIT_ON_PANEL': {};
151
+ 'STORE_ALREADY_CONFIGURED': {};
151
152
  }
152
153
 
153
154
  type ExpectedAdditionalData = {
@@ -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<
@@ -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": "Use a valid coupon."
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",
@@ -212,12 +212,16 @@
212
212
  "message": "Verifique o código do cupom."
213
213
  },
214
214
  "THIS_COUPON_HAS_EXPIRED": {
215
- "name": "Cupom expirado",
216
- "message": "Use um cupom válido."
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 novamente depois."
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": "Cupom válido apenas na primeira compra."
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
@@ -129,6 +129,7 @@ export interface APIErrors {
129
129
  'YOU_REACHED_PANEL_LIMIT': {};
130
130
  'PANEL_NAME_ALREADY_EXIST': {};
131
131
  'YOU_REACHED_THE_PRODUCT_LIMIT_ON_PANEL': {};
132
+ 'STORE_ALREADY_CONFIGURED': {};
132
133
  }
133
134
  type ExpectedAdditionalData = {
134
135
  field: string;
@@ -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;