@zennify/sdk-js 1.37.7 → 1.38.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.37.7",
3
+ "version": "1.38.0",
4
4
  "description": "A simple package to work with https://api.zennify.app",
5
5
  "main": "dist/main.js",
6
6
  "keywords": [],
@@ -14,15 +14,15 @@
14
14
  },
15
15
  "types": "./types/main.d.ts",
16
16
  "devDependencies": {
17
- "@types/node": "^20.12.12",
18
- "discord.js": "^14.15.3",
19
- "typescript": "^5.5.3"
17
+ "@types/node": "^20.19.7",
18
+ "discord.js": "^14.21.0",
19
+ "typescript": "^5.8.3"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tsc"
23
23
  },
24
24
  "dependencies": {
25
- "undici-types": "^5.26.5"
25
+ "undici-types": "^5.28.4"
26
26
  },
27
27
  "bugs": {
28
28
  "url": "https://github.com/zennify-ofc/sdk-js/issues"
@@ -11,7 +11,7 @@ export interface PartialProduct {
11
11
  export interface Product {
12
12
  id: number,
13
13
  name: string,
14
- created_at: string,
14
+ created_at: number,
15
15
  store_id: number,
16
16
  owner_id: number,
17
17
  icon_id?: string | null,
@@ -15,7 +15,7 @@ export type ProductStatistics = {
15
15
 
16
16
  export type Statistics = Record<string, Record<number, ProductStatistics>>
17
17
  export type StatisticsResponse = {
18
- last_update: string,
19
- created_at: string
18
+ last_update: number,
19
+ created_at: number
20
20
  statistics: Statistics
21
21
  };
@@ -5,7 +5,7 @@ export type Addons = 'custom_bot' | 'divulgation' | 'antiraid' | 'managed_automo
5
5
  export interface PartialStore {
6
6
  id: number,
7
7
  name: string,
8
- expires_at: string,
8
+ expires_at: number,
9
9
  icon_id?: string | null,
10
10
  banner_id?: string | null,
11
11
  pending_setup?: boolean | null,
@@ -24,15 +24,15 @@ export type StoreModeratorPermissions =
24
24
  export type StoreModerator = {
25
25
  username: string,
26
26
  discord_user_id: string | null,
27
- created_at: string,
27
+ created_at: number,
28
28
  permissions: StoreModeratorPermissions[]
29
29
  }
30
30
 
31
31
  export interface FullStore {
32
32
  id: number,
33
33
  name: string,
34
- created_at: string,
35
- expires_at: string,
34
+ created_at: number,
35
+ expires_at: number,
36
36
  owner_id: number,
37
37
  icon_id: string | null,
38
38
  banner_id: string | null,
@@ -66,7 +66,7 @@ export type StoreInvite = {
66
66
  },
67
67
  store: {
68
68
  name: string,
69
- created_at: string
69
+ created_at: number
70
70
  icon_id?: string | null,
71
71
  banner_id?: string | null,
72
72
  }
@@ -1,6 +1,6 @@
1
1
  export type BaseTransaction<TransactionMetadata = any> = {
2
2
  id: string,
3
- created_at: string,
3
+ created_at: number,
4
4
  entity: 'semiauto' | 'mercadopago',
5
5
  method: 'pix',
6
6
  managed?: boolean | null,
@@ -30,7 +30,7 @@ type SaleTransaction = {
30
30
  type: 'sale',
31
31
  order: DiscordOrder & {
32
32
  id: string,
33
- created_at: string,
33
+ created_at: number,
34
34
  discount: number,
35
35
  subtotal: number,
36
36
  total_value: number,
@@ -70,6 +70,6 @@ export type FullTransaction<TransactionMetadata = any> = BaseTransaction<Transac
70
70
  export type PartialTransaction = {
71
71
  id: string,
72
72
  base_value: number,
73
- created_at: string,
73
+ created_at: number,
74
74
  status: 'approved' | 'cancelled' | 'expired' | 'pending' | 'refused' | 'rejected' | 'analysis' | 'refunded' | 'refunded_partial'
75
75
  }
@@ -10,7 +10,7 @@ export interface PartialProduct {
10
10
  export interface Product {
11
11
  id: number;
12
12
  name: string;
13
- created_at: string;
13
+ created_at: number;
14
14
  store_id: number;
15
15
  owner_id: number;
16
16
  icon_id?: string | null;
@@ -13,7 +13,7 @@ export type ProductStatistics = {
13
13
  };
14
14
  export type Statistics = Record<string, Record<number, ProductStatistics>>;
15
15
  export type StatisticsResponse = {
16
- last_update: string;
17
- created_at: string;
16
+ last_update: number;
17
+ created_at: number;
18
18
  statistics: Statistics;
19
19
  };
@@ -3,7 +3,7 @@ export type Addons = 'custom_bot' | 'divulgation' | 'antiraid' | 'managed_automo
3
3
  export interface PartialStore {
4
4
  id: number;
5
5
  name: string;
6
- expires_at: string;
6
+ expires_at: number;
7
7
  icon_id?: string | null;
8
8
  banner_id?: string | null;
9
9
  pending_setup?: boolean | null;
@@ -13,14 +13,14 @@ export type StoreModeratorPermissions = 'MANAGE_DISCORD_PANELS' | 'MANAGE_PRODUC
13
13
  export type StoreModerator = {
14
14
  username: string;
15
15
  discord_user_id: string | null;
16
- created_at: string;
16
+ created_at: number;
17
17
  permissions: StoreModeratorPermissions[];
18
18
  };
19
19
  export interface FullStore {
20
20
  id: number;
21
21
  name: string;
22
- created_at: string;
23
- expires_at: string;
22
+ created_at: number;
23
+ expires_at: number;
24
24
  owner_id: number;
25
25
  icon_id: string | null;
26
26
  banner_id: string | null;
@@ -47,7 +47,7 @@ export type StoreInvite = {
47
47
  };
48
48
  store: {
49
49
  name: string;
50
- created_at: string;
50
+ created_at: number;
51
51
  icon_id?: string | null;
52
52
  banner_id?: string | null;
53
53
  };
@@ -1,6 +1,6 @@
1
1
  export type BaseTransaction<TransactionMetadata = any> = {
2
2
  id: string;
3
- created_at: string;
3
+ created_at: number;
4
4
  entity: 'semiauto' | 'mercadopago';
5
5
  method: 'pix';
6
6
  managed?: boolean | null;
@@ -28,7 +28,7 @@ type SaleTransaction = {
28
28
  type: 'sale';
29
29
  order: DiscordOrder & {
30
30
  id: string;
31
- created_at: string;
31
+ created_at: number;
32
32
  discount: number;
33
33
  subtotal: number;
34
34
  total_value: number;
@@ -67,7 +67,7 @@ export type FullTransaction<TransactionMetadata = any> = BaseTransaction<Transac
67
67
  export type PartialTransaction = {
68
68
  id: string;
69
69
  base_value: number;
70
- created_at: string;
70
+ created_at: number;
71
71
  status: 'approved' | 'cancelled' | 'expired' | 'pending' | 'refused' | 'rejected' | 'analysis' | 'refunded' | 'refunded_partial';
72
72
  };
73
73
  export {};