@zennify/sdk-js 1.46.1 → 1.46.2
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 +1 -1
- package/src/interfaces/Stores.ts +4 -19
- package/types/interfaces/Stores.d.ts +3 -10
package/package.json
CHANGED
package/src/interfaces/Stores.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { DiscordGuild } from "./Guild";
|
|
2
|
-
|
|
3
1
|
export type Addons = 'custom_bot' | 'divulgation' | 'antiraid' | 'managed_automod';
|
|
4
2
|
|
|
5
3
|
export interface PartialStore {
|
|
6
4
|
id: number,
|
|
7
5
|
name: string,
|
|
8
6
|
expires_at: number,
|
|
7
|
+
created_at?: boolean | null,
|
|
9
8
|
icon_id?: string | null,
|
|
10
9
|
banner_id?: string | null,
|
|
11
|
-
pending_setup?: boolean | null,
|
|
12
10
|
is_owner: boolean
|
|
13
11
|
}
|
|
14
12
|
|
|
@@ -20,7 +18,6 @@ export type StoreModeratorPermissions =
|
|
|
20
18
|
| 'MANAGE_SALES' // Gerenciar vendas (Aprovar, cancelar e reembolsar)
|
|
21
19
|
| 'VIEW_STATISTICS' // Ver estatísticas (Acessar a home da dashboard, usar o comando /ranking e ver estatisticas de produtos)
|
|
22
20
|
|
|
23
|
-
|
|
24
21
|
export type StoreModerator = {
|
|
25
22
|
username: string,
|
|
26
23
|
discord_user_id: string | null,
|
|
@@ -40,30 +37,18 @@ export interface FullStore {
|
|
|
40
37
|
background_ranking_id: string | null,
|
|
41
38
|
addons: Addons[],
|
|
42
39
|
blocked_banks: string[],
|
|
43
|
-
pending_setup?: boolean | null,
|
|
44
40
|
limit_product: number,
|
|
45
41
|
limit_discord_server: number,
|
|
46
|
-
discord_channels: Record<
|
|
47
|
-
string /** guild id */,
|
|
48
|
-
Record<
|
|
49
|
-
'sale' | 'voice' | 'feedback' | 'carts',
|
|
50
|
-
string | null | void /** channel id */
|
|
51
|
-
>
|
|
52
|
-
>,
|
|
53
42
|
discord_bot: {
|
|
54
43
|
id: string
|
|
55
|
-
token: string | null
|
|
56
44
|
cluster: string | null
|
|
57
45
|
},
|
|
58
|
-
moderators: Record<string, StoreModerator
|
|
59
|
-
discord_bot_guilds: Record<string, DiscordGuild>
|
|
46
|
+
moderators: Record<string, StoreModerator>
|
|
60
47
|
}
|
|
61
48
|
|
|
62
49
|
export type StoreInvite = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
expires: number
|
|
66
|
-
},
|
|
50
|
+
permissions: StoreModeratorPermissions[],
|
|
51
|
+
expires: number
|
|
67
52
|
store: {
|
|
68
53
|
name: string,
|
|
69
54
|
created_at: number
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { DiscordGuild } from "./Guild";
|
|
2
1
|
export type Addons = 'custom_bot' | 'divulgation' | 'antiraid' | 'managed_automod';
|
|
3
2
|
export interface PartialStore {
|
|
4
3
|
id: number;
|
|
5
4
|
name: string;
|
|
6
5
|
expires_at: number;
|
|
6
|
+
created_at?: boolean | null;
|
|
7
7
|
icon_id?: string | null;
|
|
8
8
|
banner_id?: string | null;
|
|
9
|
-
pending_setup?: boolean | null;
|
|
10
9
|
is_owner: boolean;
|
|
11
10
|
}
|
|
12
11
|
export type StoreModeratorPermissions = 'MANAGE_DISCORD_PANELS' | 'MANAGE_PRODUCTS' | 'MANAGE_COUPONS' | 'MANAGE_STORE' | 'MANAGE_SALES' | 'VIEW_STATISTICS';
|
|
@@ -28,23 +27,17 @@ export interface FullStore {
|
|
|
28
27
|
background_ranking_id: string | null;
|
|
29
28
|
addons: Addons[];
|
|
30
29
|
blocked_banks: string[];
|
|
31
|
-
pending_setup?: boolean | null;
|
|
32
30
|
limit_product: number;
|
|
33
31
|
limit_discord_server: number;
|
|
34
|
-
discord_channels: Record<string /** guild id */, Record<'sale' | 'voice' | 'feedback' | 'carts', string | null | void /** channel id */>>;
|
|
35
32
|
discord_bot: {
|
|
36
33
|
id: string;
|
|
37
|
-
token: string | null;
|
|
38
34
|
cluster: string | null;
|
|
39
35
|
};
|
|
40
36
|
moderators: Record<string, StoreModerator>;
|
|
41
|
-
discord_bot_guilds: Record<string, DiscordGuild>;
|
|
42
37
|
}
|
|
43
38
|
export type StoreInvite = {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
expires: number;
|
|
47
|
-
};
|
|
39
|
+
permissions: StoreModeratorPermissions[];
|
|
40
|
+
expires: number;
|
|
48
41
|
store: {
|
|
49
42
|
name: string;
|
|
50
43
|
created_at: number;
|