@zennify/sdk-js 1.0.0-beta.30 → 1.0.0-beta.33

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.
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/main.js CHANGED
@@ -24,3 +24,4 @@ __exportStar(require("./interfaces/Panels"), exports);
24
24
  __exportStar(require("./interfaces/Products"), exports);
25
25
  __exportStar(require("./interfaces/Guild"), exports);
26
26
  __exportStar(require("./interfaces/Stores"), exports);
27
+ __exportStar(require("./interfaces/Statistics"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zennify/sdk-js",
3
- "version": "1.0.0-beta.30",
3
+ "version": "1.0.0-beta.33",
4
4
  "description": "A simple package to work with https://api.zennify.app",
5
5
  "main": "dist/main.js",
6
6
  "keywords": [],
@@ -0,0 +1,13 @@
1
+ export type Statistic = {
2
+ count: number,
3
+ users: number,
4
+ value: number,
5
+ rating: number
6
+ }
7
+
8
+ export type Statistics = Record<string, Record<number, Statistic>>
9
+ export type StatisticsResponse = {
10
+ last_update: string,
11
+ created_at: string
12
+ statistics: Statistics
13
+ }
@@ -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/src/main.ts CHANGED
@@ -8,4 +8,5 @@ export * from './interfaces/Media';
8
8
  export * from './interfaces/Panels';
9
9
  export * from './interfaces/Products';
10
10
  export * from './interfaces/Guild';
11
- export * from './interfaces/Stores';
11
+ export * from './interfaces/Stores';
12
+ export * from './interfaces/Statistics';
@@ -213,7 +213,7 @@
213
213
  },
214
214
  "THIS_COUPON_HAS_EXPIRED": {
215
215
  "name": "This coupon has expired",
216
- "message": "Use a valid coupon."
216
+ "message": "Try using another coupon."
217
217
  },
218
218
  "THIS_COUPON_REACHED_THE_USE_LIMIT": {
219
219
  "name": "This coupon reached the use limit",
@@ -212,12 +212,12 @@
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
217
  },
218
218
  "THIS_COUPON_REACHED_THE_USE_LIMIT": {
219
219
  "name": "O cupom atingiu o limite de usos",
220
- "message": "Tente novamente depois."
220
+ "message": "Tente usar um cupom diferente."
221
221
  },
222
222
  "SELECT_MORE_ITENS_TO_REACH_MINIMUM_COUPON_VALUE": {
223
223
  "name": "Adicione mais itens pra atingir o valor mínimo do cupom",
@@ -225,7 +225,7 @@
225
225
  },
226
226
  "THIS_COUPON_IS_VALID_ONLY_FOR_THE_FIRST_BUY": {
227
227
  "name": "Cupom válido apenas para a primeira compra",
228
- "message": "Cupom válido apenas na primeira compra."
228
+ "message": "Tente usar um cupom diferente desse."
229
229
  },
230
230
  "UNKNOWN_STORE": {
231
231
  "name": "Loja desconhecida",
@@ -0,0 +1,12 @@
1
+ export type Statistic = {
2
+ count: number;
3
+ users: number;
4
+ value: number;
5
+ rating: number;
6
+ };
7
+ export type Statistics = Record<string, Record<number, Statistic>>;
8
+ export type StatisticsResponse = {
9
+ last_update: string;
10
+ created_at: string;
11
+ statistics: Statistics;
12
+ };
@@ -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;
package/types/main.d.ts CHANGED
@@ -8,3 +8,4 @@ export * from './interfaces/Panels';
8
8
  export * from './interfaces/Products';
9
9
  export * from './interfaces/Guild';
10
10
  export * from './interfaces/Stores';
11
+ export * from './interfaces/Statistics';