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

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.31",
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
+ }
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';
@@ -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
+ };
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';