@zennify/sdk-js 1.0.0-beta.12 → 1.0.0-beta.14
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/dist/interfaces/Guild.js +2 -0
- package/dist/interfaces/Stores.js +2 -0
- package/dist/main.js +2 -0
- package/package.json +2 -1
- package/src/interfaces/Guild.ts +22 -0
- package/src/interfaces/Stores.ts +45 -0
- package/src/main.ts +4 -1
- package/types/interfaces/Guild.d.ts +19 -0
- package/types/interfaces/Stores.d.ts +34 -0
- package/types/main.d.ts +2 -0
package/dist/main.js
CHANGED
|
@@ -21,3 +21,5 @@ __exportStar(require("./RequestError"), exports);
|
|
|
21
21
|
__exportStar(require("./interfaces/Media"), exports);
|
|
22
22
|
__exportStar(require("./interfaces/Panels"), exports);
|
|
23
23
|
__exportStar(require("./interfaces/Products"), exports);
|
|
24
|
+
__exportStar(require("./interfaces/Guild"), exports);
|
|
25
|
+
__exportStar(require("./interfaces/Stores"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zennify/sdk-js",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.14",
|
|
4
4
|
"description": "A simple package to work with https://api.zennify.app",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"types": "./types/main.d.ts",
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/node": "^20.12.12",
|
|
18
|
+
"discord.js": "^14.15.3",
|
|
18
19
|
"typescript": "^5.5.3"
|
|
19
20
|
},
|
|
20
21
|
"scripts": {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ChannelType } from 'discord.js';
|
|
2
|
+
|
|
3
|
+
export interface DiscordGuildChannel {
|
|
4
|
+
id: string,
|
|
5
|
+
name: string,
|
|
6
|
+
type: ChannelType
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface DiscordGuildRole {
|
|
10
|
+
id: string,
|
|
11
|
+
name: string,
|
|
12
|
+
position: number,
|
|
13
|
+
color: number
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface DiscordGuild {
|
|
17
|
+
id: string,
|
|
18
|
+
name: string,
|
|
19
|
+
icon_url: string,
|
|
20
|
+
owner_id: string,
|
|
21
|
+
channels: DiscordGuildChannel[]
|
|
22
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { DiscordGuild } from "./Guild";
|
|
2
|
+
|
|
3
|
+
export type Addons = 'custom_bot' | 'divulgation' | 'antiraid' | 'managed_automod';
|
|
4
|
+
export type Banks = 'Banco Inter S.A.'
|
|
5
|
+
| 'Nu Pagamentos S.A.'
|
|
6
|
+
| 'Picpay Serviços S.A.'
|
|
7
|
+
| 'Mercadopago.com Representações Ltda.'
|
|
8
|
+
| 'Caixa Econômica Federal'
|
|
9
|
+
| 'PagSeguro Internet S.A.'
|
|
10
|
+
| 'Banco do Brasil S.A.'
|
|
11
|
+
| 'Banco Bradesco S.A.'
|
|
12
|
+
| 'Banco Santander (Brasil) S.A.';
|
|
13
|
+
|
|
14
|
+
export interface PartialStore {
|
|
15
|
+
id: number,
|
|
16
|
+
name: string,
|
|
17
|
+
expires_at: string,
|
|
18
|
+
icon_id?: number | null
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface FullStore {
|
|
22
|
+
id: number,
|
|
23
|
+
name: string,
|
|
24
|
+
created_at: string,
|
|
25
|
+
expires_at: string,
|
|
26
|
+
owner_id: number,
|
|
27
|
+
icon_id: number | null,
|
|
28
|
+
banner_id: number | null,
|
|
29
|
+
addons: Addons[],
|
|
30
|
+
blocked_banks: Banks[],
|
|
31
|
+
channels: {
|
|
32
|
+
discord: {
|
|
33
|
+
sale: string | null,
|
|
34
|
+
voice: string | null,
|
|
35
|
+
feedback: string | null,
|
|
36
|
+
carts: string | null
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
discord_bot: {
|
|
40
|
+
id: string,
|
|
41
|
+
app_id: string | null,
|
|
42
|
+
token: string | null
|
|
43
|
+
},
|
|
44
|
+
discord_bot_guilds: DiscordGuild[]
|
|
45
|
+
}
|
package/src/main.ts
CHANGED
|
@@ -2,6 +2,9 @@ export * from './var';
|
|
|
2
2
|
export * from './errors';
|
|
3
3
|
export * from './utils';
|
|
4
4
|
export * from './RequestError';
|
|
5
|
+
|
|
5
6
|
export * from './interfaces/Media';
|
|
6
7
|
export * from './interfaces/Panels';
|
|
7
|
-
export * from './interfaces/Products';
|
|
8
|
+
export * from './interfaces/Products';
|
|
9
|
+
export * from './interfaces/Guild';
|
|
10
|
+
export * from './interfaces/Stores';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ChannelType } from 'discord.js';
|
|
2
|
+
export interface DiscordGuildChannel {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
type: ChannelType;
|
|
6
|
+
}
|
|
7
|
+
export interface DiscordGuildRole {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
position: number;
|
|
11
|
+
color: number;
|
|
12
|
+
}
|
|
13
|
+
export interface DiscordGuild {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
icon_url: string;
|
|
17
|
+
owner_id: string;
|
|
18
|
+
channels: DiscordGuildChannel[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DiscordGuild } from "./Guild";
|
|
2
|
+
export type Addons = 'custom_bot' | 'divulgation' | 'antiraid' | 'managed_automod';
|
|
3
|
+
export type Banks = 'Banco Inter S.A.' | 'Nu Pagamentos S.A.' | 'Picpay Serviços S.A.' | 'Mercadopago.com Representações Ltda.' | 'Caixa Econômica Federal' | 'PagSeguro Internet S.A.' | 'Banco do Brasil S.A.' | 'Banco Bradesco S.A.' | 'Banco Santander (Brasil) S.A.';
|
|
4
|
+
export interface PartialStore {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
expires_at: string;
|
|
8
|
+
icon_id?: number | null;
|
|
9
|
+
}
|
|
10
|
+
export interface FullStore {
|
|
11
|
+
id: number;
|
|
12
|
+
name: string;
|
|
13
|
+
created_at: string;
|
|
14
|
+
expires_at: string;
|
|
15
|
+
owner_id: number;
|
|
16
|
+
icon_id: number | null;
|
|
17
|
+
banner_id: number | null;
|
|
18
|
+
addons: Addons[];
|
|
19
|
+
blocked_banks: Banks[];
|
|
20
|
+
channels: {
|
|
21
|
+
discord: {
|
|
22
|
+
sale: string | null;
|
|
23
|
+
voice: string | null;
|
|
24
|
+
feedback: string | null;
|
|
25
|
+
carts: string | null;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
discord_bot: {
|
|
29
|
+
id: string;
|
|
30
|
+
app_id: string | null;
|
|
31
|
+
token: string | null;
|
|
32
|
+
};
|
|
33
|
+
discord_bot_guilds: DiscordGuild[];
|
|
34
|
+
}
|