@zennify/sdk-js 1.22.0 → 1.23.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.22.0",
3
+ "version": "1.23.0",
4
4
  "description": "A simple package to work with https://api.zennify.app",
5
5
  "main": "dist/main.js",
6
6
  "keywords": [],
@@ -1,22 +1,21 @@
1
- export type Statistic = {
1
+ export type ProductStatisticsCustomer = {
2
+ id: number,
3
+ discord_user_id: string,
4
+ revenue: number,
5
+ sales: number
6
+ };
7
+
8
+ export type ProductStatistics = {
2
9
  count: number,
3
10
  users: number,
4
11
  value: number,
5
- rating: number
12
+ rating: number,
13
+ customers: ProductStatisticsCustomer
6
14
  }
7
15
 
8
- export type Statistics = Record<string, Record<number, Statistic>>
16
+ export type Statistics = Record<string, Record<number, ProductStatistics>>
9
17
  export type StatisticsResponse = {
10
18
  last_update: string,
11
19
  created_at: string
12
20
  statistics: Statistics
13
- };
14
-
15
- export type Ranking = {
16
- id: number,
17
- discord_user_id: string,
18
- revenue: number,
19
- sales: number
20
- };
21
-
22
- export type RankingResponse = Ranking[]
21
+ };
@@ -1,19 +1,19 @@
1
- export type Statistic = {
1
+ export type ProductStatisticsCustomer = {
2
+ id: number;
3
+ discord_user_id: string;
4
+ revenue: number;
5
+ sales: number;
6
+ };
7
+ export type ProductStatistics = {
2
8
  count: number;
3
9
  users: number;
4
10
  value: number;
5
11
  rating: number;
12
+ customers: ProductStatisticsCustomer;
6
13
  };
7
- export type Statistics = Record<string, Record<number, Statistic>>;
14
+ export type Statistics = Record<string, Record<number, ProductStatistics>>;
8
15
  export type StatisticsResponse = {
9
16
  last_update: string;
10
17
  created_at: string;
11
18
  statistics: Statistics;
12
19
  };
13
- export type Ranking = {
14
- id: number;
15
- discord_user_id: string;
16
- revenue: number;
17
- sales: number;
18
- };
19
- export type RankingResponse = Ranking[];