@notidotbot/noti-api-client 1.4.11 → 1.4.13
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 +27 -0
- package/dist/classes/guild.js +15 -0
- package/dist/classes/premium.d.ts +24 -0
- package/dist/classes/premium.js +6 -0
- package/dist/core/manager.d.ts +2 -0
- package/dist/core/manager.js +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/modules/stripe.js +1 -0
- package/dist/other/zod/client.zod.d.ts +56 -288
- package/dist/other/zod/client.zod.js +11 -0
- package/dist/other/zod/drops.zod.d.ts +26 -7
- package/dist/other/zod/drops.zod.js +13 -11
- package/dist/other/zod/giveaways.zod.d.ts +61 -322
- package/dist/other/zod/guild.zod.d.ts +260 -1431
- package/dist/other/zod/guild.zod.js +21 -4
- package/dist/other/zod/kickStreamer.zod.d.ts +116 -669
- package/dist/other/zod/kickStreamer.zod.js +3 -3
- package/dist/other/zod/member.zod.d.ts +2 -10
- package/dist/other/zod/r2Storage.zod.d.ts +9 -41
- package/dist/other/zod/r2Storage.zod.js +2 -0
- package/dist/other/zod/rumbleStreamer.zod.d.ts +63 -456
- package/dist/other/zod/schema.zod.d.ts +130 -17
- package/dist/other/zod/schema.zod.js +43 -21
- package/dist/other/zod/starboard.zod.d.ts +36 -138
- package/dist/other/zod/team.zod.d.ts +9 -79
- package/dist/other/zod/tiktokStreamer.zod.d.ts +59 -397
- package/dist/other/zod/twitchStreamer.zod.d.ts +58 -396
- package/dist/other/zod/user.zod.d.ts +123 -556
- package/dist/other/zod/youtubeStreamer.zod.d.ts +58 -398
- package/dist/other/zod/zod.d.ts +12 -83
- package/dist/other/zod/zod.js +5 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/prisma/generated/ts-prisma.d.ts +2942 -352
- package/prisma/schema/models/client.prisma +71 -53
- package/prisma/schema/models/drops.prisma +127 -125
- package/prisma/schema/models/giveaways.prisma +49 -49
- package/prisma/schema/models/guild.prisma +239 -222
- package/prisma/schema/models/kickStreamer.prisma +125 -125
- package/prisma/schema/models/member.prisma +5 -5
- package/prisma/schema/models/r2Storage.prisma +13 -11
- package/prisma/schema/models/rumbleStreamer.prisma +73 -73
- package/prisma/schema/models/starboard.prisma +36 -36
- package/prisma/schema/models/team.prisma +21 -21
- package/prisma/schema/models/tiktokStreamer.prisma +74 -74
- package/prisma/schema/models/twitchStreamer.prisma +74 -74
- package/prisma/schema/models/user.prisma +117 -117
- package/prisma/schema/models/youtubeStreamer.prisma +75 -75
|
@@ -20,6 +20,9 @@ const KickStreamerSchema = zod_2.z.object({
|
|
|
20
20
|
clipperNeedsAllCategories: zod_2.z.boolean().nullable(),
|
|
21
21
|
clipperCategories: (0, zod_1.NoDuplicate)(zod_2.z.array(schema_zod_1.ClipperCategoryEnum)),
|
|
22
22
|
whitelistedClipperNames: zod_2.z.array(zod_2.z.string()),
|
|
23
|
+
builtInClipsEnabled: zod_2.z.boolean().nullable(),
|
|
24
|
+
builtInClipsChannelId: zod_1.SnowFlake.nullable(),
|
|
25
|
+
builtInClipsPingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
|
|
23
26
|
vodsChannelId: zod_1.SnowFlake.nullable(),
|
|
24
27
|
vodsPingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
|
|
25
28
|
notificationChannelId: zod_1.SnowFlake.nullable(),
|
|
@@ -46,9 +49,6 @@ const KickStreamerSchema = zod_2.z.object({
|
|
|
46
49
|
usersWhoHaveLiveRole: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
|
|
47
50
|
statsChannelIds: zod_2.z.lazy(() => KSStatsChannelIdSchema).nullable(),
|
|
48
51
|
isCurrentlyLive: zod_2.z.lazy(() => KSCurrentlyLiveSchema).nullable(),
|
|
49
|
-
builtInClipsEnabled: zod_2.z.boolean().nullable(),
|
|
50
|
-
builtInClipsChannelId: zod_1.SnowFlake.nullable(),
|
|
51
|
-
builtInClipsPingRoleId: zod_1.SnowFlakeOrEveryone.nullable(),
|
|
52
52
|
lastLive: zod_2.z.date().nullable(),
|
|
53
53
|
});
|
|
54
54
|
const KSCustomMessageSchema = zod_2.z.object({
|
|
@@ -7,16 +7,8 @@ export type MemberRelations = 'db' | 'member';
|
|
|
7
7
|
export declare const MemberZod: {
|
|
8
8
|
readonly MemberSchema: z.ZodObject<{
|
|
9
9
|
userId: z.ZodString;
|
|
10
|
-
guildId: z.
|
|
10
|
+
guildId: z.ZodString;
|
|
11
11
|
messagesSent: z.ZodNumber;
|
|
12
|
-
},
|
|
13
|
-
guildId: string;
|
|
14
|
-
userId: string;
|
|
15
|
-
messagesSent: number;
|
|
16
|
-
}, {
|
|
17
|
-
guildId: string;
|
|
18
|
-
userId: string;
|
|
19
|
-
messagesSent: number;
|
|
20
|
-
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
21
13
|
};
|
|
22
14
|
export declare const MemberZodPartial: PartialZodObject<typeof MemberZod>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PartialZodObject } from './schema.zod';
|
|
2
|
-
import { TSPrisma } from '@prisma/client';
|
|
3
2
|
import { RemoveProperties } from '../prisma';
|
|
3
|
+
import { TSPrisma } from '@prisma/client';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
export type RT<T extends TSPrisma.AllModelNames> = z.ZodType<RemoveProperties<TSPrisma.TSPrismaModelsFull[T], R2StorageRelations>>;
|
|
6
6
|
export type R2StorageRelations = 'db' | 'r2Storage';
|
|
@@ -9,48 +9,16 @@ export declare const R2StorageZod: {
|
|
|
9
9
|
key: z.ZodString;
|
|
10
10
|
tempUrl: z.ZodNullable<z.ZodString>;
|
|
11
11
|
urlExpiresAt: z.ZodNullable<z.ZodDate>;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
thumbnail: z.ZodNullable<z.ZodString>;
|
|
13
|
+
streamDate: z.ZodNullable<z.ZodDate>;
|
|
14
|
+
guilds: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
15
|
+
guildId: z.ZodString;
|
|
14
16
|
allowedUntil: z.ZodNullable<z.ZodDate>;
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
allowedUntil: Date | null;
|
|
18
|
-
}, {
|
|
19
|
-
guildId: string;
|
|
20
|
-
allowedUntil: Date | null;
|
|
21
|
-
}>>, "many">, {
|
|
22
|
-
guildId: string;
|
|
23
|
-
allowedUntil: Date | null;
|
|
24
|
-
}[], {
|
|
25
|
-
guildId: string;
|
|
26
|
-
allowedUntil: Date | null;
|
|
27
|
-
}[]>;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
key: string;
|
|
30
|
-
guilds: {
|
|
31
|
-
guildId: string;
|
|
32
|
-
allowedUntil: Date | null;
|
|
33
|
-
}[];
|
|
34
|
-
tempUrl: string | null;
|
|
35
|
-
urlExpiresAt: Date | null;
|
|
36
|
-
}, {
|
|
37
|
-
key: string;
|
|
38
|
-
guilds: {
|
|
39
|
-
guildId: string;
|
|
40
|
-
allowedUntil: Date | null;
|
|
41
|
-
}[];
|
|
42
|
-
tempUrl: string | null;
|
|
43
|
-
urlExpiresAt: Date | null;
|
|
44
|
-
}>;
|
|
17
|
+
}, z.core.$strip>>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
45
19
|
readonly R2StorageGuildSchema: z.ZodObject<{
|
|
46
|
-
guildId: z.
|
|
20
|
+
guildId: z.ZodString;
|
|
47
21
|
allowedUntil: z.ZodNullable<z.ZodDate>;
|
|
48
|
-
},
|
|
49
|
-
guildId: string;
|
|
50
|
-
allowedUntil: Date | null;
|
|
51
|
-
}, {
|
|
52
|
-
guildId: string;
|
|
53
|
-
allowedUntil: Date | null;
|
|
54
|
-
}>;
|
|
22
|
+
}, z.core.$strip>;
|
|
55
23
|
};
|
|
56
24
|
export declare const R2StorageZodPartial: PartialZodObject<typeof R2StorageZod>;
|
|
@@ -8,6 +8,8 @@ const R2StorageSchema = zod_2.z.object({
|
|
|
8
8
|
key: zod_2.z.string(),
|
|
9
9
|
tempUrl: zod_2.z.string().nullable(),
|
|
10
10
|
urlExpiresAt: zod_2.z.date().nullable(),
|
|
11
|
+
thumbnail: zod_2.z.string().nullable(),
|
|
12
|
+
streamDate: zod_2.z.date().nullable(),
|
|
11
13
|
guilds: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => R2StorageGuildSchema)), ['guildId']),
|
|
12
14
|
});
|
|
13
15
|
const R2StorageGuildSchema = zod_2.z.object({
|