@notidotbot/noti-api-client 1.6.1 → 1.6.3
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/classes/guild.d.ts +24 -0
- package/dist/classes/guildRolePanel.d.ts +189 -0
- package/dist/classes/guildRolePanel.js +48 -0
- package/dist/core/manager.d.ts +2 -0
- package/dist/core/manager.js +2 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/other/enums.d.ts +6 -0
- package/dist/other/enums.js +3 -0
- package/dist/other/prisma.d.ts +9 -0
- package/dist/other/templates.d.ts +19 -0
- package/dist/other/templates.js +15 -0
- package/dist/other/zod/guild.zod.d.ts +3 -0
- package/dist/other/zod/kickStreamer.zod.d.ts +2 -0
- package/dist/other/zod/rolePanels.zod.d.ts +137 -0
- package/dist/other/zod/rolePanels.zod.js +72 -0
- package/dist/other/zod/rumbleStreamer.zod.d.ts +7 -0
- package/dist/other/zod/rumbleStreamer.zod.js +5 -0
- package/dist/other/zod/schema.zod.d.ts +7 -4
- package/dist/other/zod/schema.zod.js +3 -0
- package/dist/other/zod/tiktokStreamer.zod.d.ts +2 -0
- package/dist/other/zod/twitchStreamer.zod.d.ts +2 -0
- package/dist/other/zod/youtubeStreamer.zod.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/prisma/generated/ts-prisma.d.ts +888 -0
- package/prisma/schema/models/rolePanels.prisma +72 -0
- package/prisma/schema/models/rumbleStreamer.prisma +9 -3
- package/prisma/schema/schema.prisma +18 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
model GuildRolePanel {
|
|
2
|
+
dbId String @id @default(uuid())
|
|
3
|
+
|
|
4
|
+
panelId String @unique
|
|
5
|
+
|
|
6
|
+
guildId String
|
|
7
|
+
channelId String
|
|
8
|
+
messageId String?
|
|
9
|
+
|
|
10
|
+
name String @db.VarChar(100)
|
|
11
|
+
|
|
12
|
+
interactionType RolePanelType
|
|
13
|
+
assignMode RolePanelAssignMode
|
|
14
|
+
|
|
15
|
+
maxRoles Int?
|
|
16
|
+
logChannelId String?
|
|
17
|
+
|
|
18
|
+
requireAccountAgeDays Int?
|
|
19
|
+
requireJoinAgeDays Int?
|
|
20
|
+
boosterOnly Boolean?
|
|
21
|
+
|
|
22
|
+
embeds GuildRolePanelEmbed[]
|
|
23
|
+
rows GuildRolePanelRole[]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
model GuildRolePanelRole {
|
|
27
|
+
dbId String @id @default(uuid())
|
|
28
|
+
|
|
29
|
+
roleId String
|
|
30
|
+
label String? @db.VarChar(80)
|
|
31
|
+
emojiUnicodeOrId String?
|
|
32
|
+
style Int?
|
|
33
|
+
|
|
34
|
+
temporaryMinutes Int?
|
|
35
|
+
requiredRoleIds String[]
|
|
36
|
+
blacklistRoleIds String[]
|
|
37
|
+
|
|
38
|
+
guildRolePanelId String
|
|
39
|
+
guildRolePanel GuildRolePanel? @relation(fields: [guildRolePanelId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
model GuildRolePanelEmbed {
|
|
43
|
+
dbId String @id @default(uuid())
|
|
44
|
+
|
|
45
|
+
order Int
|
|
46
|
+
title String? @db.VarChar(256)
|
|
47
|
+
url String?
|
|
48
|
+
description String @db.VarChar(2048)
|
|
49
|
+
color String? @db.VarChar(10)
|
|
50
|
+
footer String? @db.VarChar(1024)
|
|
51
|
+
footerIcon String?
|
|
52
|
+
image String?
|
|
53
|
+
thumbnail String?
|
|
54
|
+
author String? @db.VarChar(256)
|
|
55
|
+
authorIcon String?
|
|
56
|
+
|
|
57
|
+
fields GuildRolePanelEmbedField[]
|
|
58
|
+
|
|
59
|
+
guildRolePanelId String
|
|
60
|
+
guildRolePanel GuildRolePanel? @relation(fields: [guildRolePanelId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
model GuildRolePanelEmbedField {
|
|
64
|
+
dbId String @id @default(uuid())
|
|
65
|
+
|
|
66
|
+
name String @db.VarChar(256)
|
|
67
|
+
value String? @db.VarChar(1024)
|
|
68
|
+
inline Boolean?
|
|
69
|
+
|
|
70
|
+
guildRolePanelEmbedId String
|
|
71
|
+
guildRolePanelEmbed GuildRolePanelEmbed? @relation(fields: [guildRolePanelEmbedId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
|
|
72
|
+
}
|
|
@@ -13,12 +13,16 @@ model RumbleStreamer {
|
|
|
13
13
|
|
|
14
14
|
customMessages RSCustomMessage[] // Premium
|
|
15
15
|
|
|
16
|
-
notificationChannelId
|
|
17
|
-
|
|
16
|
+
notificationChannelId String? // Live notification channel.
|
|
17
|
+
videoNotificationChannelId String? // Upload (video) notification channel.
|
|
18
|
+
showNotifyButton Boolean?
|
|
18
19
|
|
|
19
20
|
pingRoleId String?
|
|
21
|
+
videoRoleId String? // Ping role for uploads.
|
|
20
22
|
customCoolDownBeforeNextLive Int? // Premium. In minutes.
|
|
21
23
|
|
|
24
|
+
notifyOnStreamVods Boolean? // If true, livestream replays (VODs) also trigger an upload notification.
|
|
25
|
+
|
|
22
26
|
liveRoleId String?
|
|
23
27
|
usersForLiveRole String[]
|
|
24
28
|
usersWhoHaveLiveRole String[] // Internal
|
|
@@ -26,7 +30,9 @@ model RumbleStreamer {
|
|
|
26
30
|
statsChannelIds RSStatsChannelId? // Internal
|
|
27
31
|
isCurrentlyLive RSCurrentlyLive? // Internal
|
|
28
32
|
|
|
29
|
-
lastLive
|
|
33
|
+
lastLive DateTime?
|
|
34
|
+
lastVideo DateTime? // Upload dedup: timestamp of the most recently notified video.
|
|
35
|
+
lastVideoId String? // Upload dedup: id of the most recently notified video (seeded silently on first check).
|
|
30
36
|
|
|
31
37
|
@@unique([streamerUserName, guildId])
|
|
32
38
|
}
|
|
@@ -37,6 +37,7 @@ enum StreamerMessageTypeEnum {
|
|
|
37
37
|
twitchOffline
|
|
38
38
|
rumbleLive
|
|
39
39
|
rumbleOffline
|
|
40
|
+
rumbleVideo
|
|
40
41
|
tiktokLive
|
|
41
42
|
tiktokOffline
|
|
42
43
|
tiktokVideo
|
|
@@ -65,6 +66,7 @@ enum GuildMessageTypeEnum {
|
|
|
65
66
|
twitchOffline
|
|
66
67
|
rumbleLive
|
|
67
68
|
rumbleOffline
|
|
69
|
+
rumbleVideo
|
|
68
70
|
tiktokLive
|
|
69
71
|
tiktokOffline
|
|
70
72
|
tiktokVideo
|
|
@@ -114,6 +116,7 @@ enum UserMediaSharePermissionsEnum {
|
|
|
114
116
|
enum PlatformsWithVideosEnum {
|
|
115
117
|
tiktok
|
|
116
118
|
youtube
|
|
119
|
+
rumble
|
|
117
120
|
}
|
|
118
121
|
|
|
119
122
|
enum RumbleTypeEnum {
|
|
@@ -218,6 +221,19 @@ enum ScheduledMessageTriggerEnum {
|
|
|
218
221
|
guildEvent
|
|
219
222
|
}
|
|
220
223
|
|
|
224
|
+
enum RolePanelType {
|
|
225
|
+
buttons
|
|
226
|
+
dropdown
|
|
227
|
+
reactions
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
enum RolePanelAssignMode {
|
|
231
|
+
toggle
|
|
232
|
+
unique
|
|
233
|
+
limit
|
|
234
|
+
verify
|
|
235
|
+
}
|
|
236
|
+
|
|
221
237
|
model AllEnumsModel {
|
|
222
238
|
dbId String @id @default(uuid())
|
|
223
239
|
|
|
@@ -244,4 +260,6 @@ model AllEnumsModel {
|
|
|
244
260
|
gameRobloxKinds GameRobloxKindEnum
|
|
245
261
|
scheduledRecurrence ScheduledMessageRecurrenceEnum
|
|
246
262
|
scheduledTrigger ScheduledMessageTriggerEnum
|
|
263
|
+
rolePanelTypes RolePanelType
|
|
264
|
+
rolePanelAssignModes RolePanelAssignMode
|
|
247
265
|
}
|