@notidotbot/noti-api-client 1.4.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/cname.js +3 -0
- package/dist/classes/@me.d.ts +122 -0
- package/dist/classes/@me.js +59 -0
- package/dist/classes/admin.d.ts +71 -0
- package/dist/classes/admin.js +26 -0
- package/dist/classes/client.d.ts +156 -0
- package/dist/classes/client.js +116 -0
- package/dist/classes/emotes.d.ts +31 -0
- package/dist/classes/emotes.js +24 -0
- package/dist/classes/files.d.ts +36 -0
- package/dist/classes/files.js +36 -0
- package/dist/classes/guild.d.ts +187 -0
- package/dist/classes/guild.js +140 -0
- package/dist/classes/guildDrops.d.ts +58 -0
- package/dist/classes/guildDrops.js +32 -0
- package/dist/classes/guildGiveaway.d.ts +110 -0
- package/dist/classes/guildGiveaway.js +76 -0
- package/dist/classes/guildPlatform.d.ts +163 -0
- package/dist/classes/guildPlatform.js +99 -0
- package/dist/classes/guildPlatformAction.d.ts +67 -0
- package/dist/classes/guildPlatformAction.js +26 -0
- package/dist/classes/guildStarboard.d.ts +66 -0
- package/dist/classes/guildStarboard.js +36 -0
- package/dist/classes/linked.d.ts +26 -0
- package/dist/classes/linked.js +32 -0
- package/dist/classes/other.d.ts +83 -0
- package/dist/classes/other.js +53 -0
- package/dist/classes/platform.d.ts +227 -0
- package/dist/classes/platform.js +30 -0
- package/dist/classes/premium.d.ts +179 -0
- package/dist/classes/premium.js +76 -0
- package/dist/classes/sessions.d.ts +42 -0
- package/dist/classes/sessions.js +30 -0
- package/dist/classes/teams.d.ts +88 -0
- package/dist/classes/teams.js +66 -0
- package/dist/classes/telemetry.d.ts +32 -0
- package/dist/classes/telemetry.js +28 -0
- package/dist/classes/user.d.ts +40 -0
- package/dist/classes/user.js +30 -0
- package/dist/classes/vods.d.ts +55 -0
- package/dist/classes/vods.js +38 -0
- package/dist/core/manager.d.ts +57 -0
- package/dist/core/manager.js +78 -0
- package/dist/core/utils.d.ts +4 -0
- package/dist/core/utils.js +26 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +42 -0
- package/dist/modules/stripe.d.ts +12 -0
- package/dist/modules/stripe.js +18 -0
- package/dist/other/bitfields.d.ts +283 -0
- package/dist/other/bitfields.js +323 -0
- package/dist/other/enums.d.ts +2 -0
- package/dist/other/enums.js +10 -0
- package/dist/other/prisma.d.ts +76 -0
- package/dist/other/prisma.js +9 -0
- package/dist/other/templates.d.ts +795 -0
- package/dist/other/templates.js +706 -0
- package/dist/other/types.d.ts +45 -0
- package/dist/other/types.js +17 -0
- package/dist/other/utils.d.ts +5 -0
- package/dist/other/utils.js +51 -0
- package/dist/other/zod/client.zod.d.ts +349 -0
- package/dist/other/zod/client.zod.js +63 -0
- package/dist/other/zod/drops.zod.d.ts +16 -0
- package/dist/other/zod/drops.zod.js +93 -0
- package/dist/other/zod/giveaways.zod.d.ts +382 -0
- package/dist/other/zod/giveaways.zod.js +72 -0
- package/dist/other/zod/guild.zod.d.ts +1638 -0
- package/dist/other/zod/guild.zod.js +139 -0
- package/dist/other/zod/kickStreamer.zod.d.ts +761 -0
- package/dist/other/zod/kickStreamer.zod.js +92 -0
- package/dist/other/zod/member.zod.d.ts +22 -0
- package/dist/other/zod/member.zod.js +15 -0
- package/dist/other/zod/r2Storage.zod.d.ts +56 -0
- package/dist/other/zod/r2Storage.zod.js +21 -0
- package/dist/other/zod/rumbleStreamer.zod.d.ts +530 -0
- package/dist/other/zod/rumbleStreamer.zod.js +45 -0
- package/dist/other/zod/schema.zod.d.ts +25 -0
- package/dist/other/zod/schema.zod.js +168 -0
- package/dist/other/zod/starboard.zod.d.ts +167 -0
- package/dist/other/zod/starboard.zod.js +46 -0
- package/dist/other/zod/team.zod.d.ts +107 -0
- package/dist/other/zod/team.zod.js +30 -0
- package/dist/other/zod/tiktokStreamer.zod.d.ts +473 -0
- package/dist/other/zod/tiktokStreamer.zod.js +46 -0
- package/dist/other/zod/twitchStreamer.zod.d.ts +473 -0
- package/dist/other/zod/twitchStreamer.zod.js +46 -0
- package/dist/other/zod/user.zod.d.ts +678 -0
- package/dist/other/zod/user.zod.js +124 -0
- package/dist/other/zod/youtubeStreamer.zod.d.ts +476 -0
- package/dist/other/zod/youtubeStreamer.zod.js +47 -0
- package/dist/other/zod/zod.d.ts +177 -0
- package/dist/other/zod/zod.js +60 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types.d.ts +37 -0
- package/dist/types.js +2 -0
- package/package.json +63 -0
- package/prisma/generated/index.ts +25 -0
- package/prisma/generated/ts-prisma.d.ts +91725 -0
- package/prisma/schema/models/client.prisma +89 -0
- package/prisma/schema/models/drops.prisma +167 -0
- package/prisma/schema/models/giveaways.prisma +82 -0
- package/prisma/schema/models/guild.prisma +368 -0
- package/prisma/schema/models/kickStreamer.prisma +202 -0
- package/prisma/schema/models/member.prisma +10 -0
- package/prisma/schema/models/r2Storage.prisma +22 -0
- package/prisma/schema/models/rumbleStreamer.prisma +121 -0
- package/prisma/schema/models/starboard.prisma +66 -0
- package/prisma/schema/models/team.prisma +38 -0
- package/prisma/schema/models/tiktokStreamer.prisma +121 -0
- package/prisma/schema/models/twitchStreamer.prisma +122 -0
- package/prisma/schema/models/user.prisma +212 -0
- package/prisma/schema/models/youtubeStreamer.prisma +123 -0
- package/prisma/schema/schema.prisma +182 -0
- package/prisma.config.ts +6 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { $Enums, Prisma, TSPrisma } from '@prisma/client';
|
|
2
|
+
import { PrismaModelsNonRecursive, PrismaEnums } from 'ts-prisma';
|
|
3
|
+
import { YoutubeStreamerZod } from './zod/youtubeStreamer.zod';
|
|
4
|
+
import { TwitchStreamerZod } from './zod/twitchStreamer.zod';
|
|
5
|
+
import { TiktokStreamerZod } from './zod/tiktokStreamer.zod';
|
|
6
|
+
import { RumbleStreamerZod } from './zod/rumbleStreamer.zod';
|
|
7
|
+
import { KickStreamerZod } from './zod/kickStreamer.zod';
|
|
8
|
+
import { GuildStarboardZod } from './zod/starboard.zod';
|
|
9
|
+
import { GuildGiveawayZod } from './zod/giveaways.zod';
|
|
10
|
+
import { R2StorageZod } from './zod/r2Storage.zod';
|
|
11
|
+
import { MemberZod } from './zod/member.zod';
|
|
12
|
+
import { ClientZod } from './zod/client.zod';
|
|
13
|
+
import { GuildZod } from './zod/guild.zod';
|
|
14
|
+
import { DropsZod } from './zod/drops.zod';
|
|
15
|
+
import { UserZod } from './zod/user.zod';
|
|
16
|
+
import { TeamZod } from './zod/team.zod';
|
|
17
|
+
import { z } from 'zod';
|
|
18
|
+
export type Models = PrismaModelsNonRecursive<Prisma.ModelName, Prisma.TypeMap, true>;
|
|
19
|
+
export type Enums = PrismaEnums<typeof $Enums>;
|
|
20
|
+
export type Team = TSPrisma.TSPrismaModelsFull['Team'];
|
|
21
|
+
export type User = TSPrisma.TSPrismaModelsFull['User'];
|
|
22
|
+
export type Guild = TSPrisma.TSPrismaModelsFull['Guild'];
|
|
23
|
+
export type Client = TSPrisma.TSPrismaModelsFull['Client'];
|
|
24
|
+
export type Member = TSPrisma.TSPrismaModelsFull['Member'];
|
|
25
|
+
export type R2Storage = TSPrisma.TSPrismaModelsFull['R2Storage'];
|
|
26
|
+
export type KickStreamer = TSPrisma.TSPrismaModelsFull['KickStreamer'];
|
|
27
|
+
export type TwitchStreamer = TSPrisma.TSPrismaModelsFull['TwitchStreamer'];
|
|
28
|
+
export type RumbleStreamer = TSPrisma.TSPrismaModelsFull['RumbleStreamer'];
|
|
29
|
+
export type TikTokStreamer = TSPrisma.TSPrismaModelsFull['TiktokStreamer'];
|
|
30
|
+
export type YouTubeStreamer = TSPrisma.TSPrismaModelsFull['YoutubeStreamer'];
|
|
31
|
+
export type GuildStarboard = TSPrisma.TSPrismaModelsFull['GuildStarboard'];
|
|
32
|
+
export type GuildGiveaway = TSPrisma.TSPrismaModelsFull['GuildGiveaway'];
|
|
33
|
+
export type Drop = TSPrisma.TSPrismaModelsFull['Drop'];
|
|
34
|
+
export type DropGame = TSPrisma.TSPrismaModelsFull['DropGame'];
|
|
35
|
+
export type GuildDrops = TSPrisma.TSPrismaModelsFull['GuildDrops'];
|
|
36
|
+
export type GuildDropsWebhook = TSPrisma.TSPrismaModelsFull['GuildDropsWebhook'];
|
|
37
|
+
export type GuildDropsGame = TSPrisma.TSPrismaModelsFull['GuildDropsGame'];
|
|
38
|
+
export type GuildDropsGameWebhook = TSPrisma.TSPrismaModelsFull['GuildDropsGameWebhook'];
|
|
39
|
+
export type SentDrop = TSPrisma.TSPrismaModelsFull['SentDrop'];
|
|
40
|
+
export type TeamZod = z.infer<typeof TeamZod.TeamSchema>;
|
|
41
|
+
export type UserZod = z.infer<typeof UserZod.UserSchema>;
|
|
42
|
+
export type GuildZod = z.infer<typeof GuildZod.GuildSchema>;
|
|
43
|
+
export type ClientZod = z.infer<typeof ClientZod.ClientSchema>;
|
|
44
|
+
export type MemberZod = z.infer<typeof MemberZod.MemberSchema>;
|
|
45
|
+
export type R2StorageZod = z.infer<typeof R2StorageZod.R2StorageSchema>;
|
|
46
|
+
export type KickStreamerZod = z.infer<typeof KickStreamerZod.KickStreamerSchema>;
|
|
47
|
+
export type TwitchStreamerZod = z.infer<typeof TwitchStreamerZod.TwitchStreamerSchema>;
|
|
48
|
+
export type RumbleStreamerZod = z.infer<typeof RumbleStreamerZod.RumbleStreamerSchema>;
|
|
49
|
+
export type TikTokStreamerZod = z.infer<typeof TiktokStreamerZod.TiktokStreamerSchema>;
|
|
50
|
+
export type YouTubeStreamerZod = z.infer<typeof YoutubeStreamerZod.YoutubeStreamerSchema>;
|
|
51
|
+
export type GuildStarboardZod = z.infer<typeof GuildStarboardZod.GuildStarboardSchema>;
|
|
52
|
+
export type GuildGiveawayZod = z.infer<typeof GuildGiveawayZod.GuildGiveawaySchema>;
|
|
53
|
+
export type GuildGiveawayCreateSchema = z.infer<typeof GuildGiveawayZod.GuildGiveawayCreateSchema>;
|
|
54
|
+
export type DropZod = z.infer<typeof DropsZod.DropSchema>;
|
|
55
|
+
export type DropGameZod = z.infer<typeof DropsZod.DropGameSchema>;
|
|
56
|
+
export type GuildDropsZod = z.infer<typeof DropsZod.GuildDropsSchema>;
|
|
57
|
+
export type GuildDropsWebhookZod = z.infer<typeof DropsZod.GuildDropsWebhookSchema>;
|
|
58
|
+
export type GuildDropsGameZod = z.infer<typeof DropsZod.GuildDropsGameSchema>;
|
|
59
|
+
export type GuildDropsGameWebhookZod = z.infer<typeof DropsZod.GuildDropsGameWebhookSchema>;
|
|
60
|
+
export type SentDropZod = z.infer<typeof DropsZod.SentDropSchema>;
|
|
61
|
+
export type AllPlatforms = Enums['PlatformEnum'];
|
|
62
|
+
export type AllPlatformsWithVideos = Enums['PlatformsWithVideosEnum'];
|
|
63
|
+
export type PlatformsToLinkType = typeof PlatformsToLink[number];
|
|
64
|
+
export type MediaSharePermissions = Enums['UserMediaSharePermissionsEnum'];
|
|
65
|
+
export type OverridesType = Enums['OverridesEnum'];
|
|
66
|
+
export type OverrideQueryType = Enums['QueryInEnum'];
|
|
67
|
+
export type UnionWithoutMember<T, M> = T extends M ? never : T;
|
|
68
|
+
export type FirstCapital<T extends string> = T extends `${infer F}${infer R}` ? `${Uppercase<F>}${R}` : T;
|
|
69
|
+
export declare const RawPlatformArray: AllPlatforms[];
|
|
70
|
+
export declare const RawPlatformArrayCapital: FirstCapital<AllPlatforms>[];
|
|
71
|
+
export declare const PWithoutLinking: ["tiktok"];
|
|
72
|
+
export declare const PlatformsToLink: UnionWithoutMember<AllPlatforms, (typeof PWithoutLinking)[number]>[];
|
|
73
|
+
export declare const PlatformDataName: `${AllPlatforms}Streamer`[];
|
|
74
|
+
export type RemoveProperties<T, X extends string> = T extends Array<infer U> ? Array<RemoveProperties<U, X>> : T extends object ? {
|
|
75
|
+
[K in keyof T as K extends `${X}Id` | X ? never : K]: RemoveProperties<T[K], X>;
|
|
76
|
+
} : T;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformDataName = exports.PlatformsToLink = exports.PWithoutLinking = exports.RawPlatformArrayCapital = exports.RawPlatformArray = void 0;
|
|
4
|
+
const client_1 = require("@prisma/client");
|
|
5
|
+
exports.RawPlatformArray = Object.values(client_1.PlatformEnum);
|
|
6
|
+
exports.RawPlatformArrayCapital = exports.RawPlatformArray.map((p) => p.charAt(0).toUpperCase() + p.slice(1));
|
|
7
|
+
exports.PWithoutLinking = ['tiktok'];
|
|
8
|
+
exports.PlatformsToLink = exports.RawPlatformArray.filter((p) => !exports.PWithoutLinking.includes(p));
|
|
9
|
+
exports.PlatformDataName = exports.RawPlatformArray.map((p) => p + 'Streamer');
|