@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.
Files changed (115) hide show
  1. package/cname.js +3 -0
  2. package/dist/classes/@me.d.ts +122 -0
  3. package/dist/classes/@me.js +59 -0
  4. package/dist/classes/admin.d.ts +71 -0
  5. package/dist/classes/admin.js +26 -0
  6. package/dist/classes/client.d.ts +156 -0
  7. package/dist/classes/client.js +116 -0
  8. package/dist/classes/emotes.d.ts +31 -0
  9. package/dist/classes/emotes.js +24 -0
  10. package/dist/classes/files.d.ts +36 -0
  11. package/dist/classes/files.js +36 -0
  12. package/dist/classes/guild.d.ts +187 -0
  13. package/dist/classes/guild.js +140 -0
  14. package/dist/classes/guildDrops.d.ts +58 -0
  15. package/dist/classes/guildDrops.js +32 -0
  16. package/dist/classes/guildGiveaway.d.ts +110 -0
  17. package/dist/classes/guildGiveaway.js +76 -0
  18. package/dist/classes/guildPlatform.d.ts +163 -0
  19. package/dist/classes/guildPlatform.js +99 -0
  20. package/dist/classes/guildPlatformAction.d.ts +67 -0
  21. package/dist/classes/guildPlatformAction.js +26 -0
  22. package/dist/classes/guildStarboard.d.ts +66 -0
  23. package/dist/classes/guildStarboard.js +36 -0
  24. package/dist/classes/linked.d.ts +26 -0
  25. package/dist/classes/linked.js +32 -0
  26. package/dist/classes/other.d.ts +83 -0
  27. package/dist/classes/other.js +53 -0
  28. package/dist/classes/platform.d.ts +227 -0
  29. package/dist/classes/platform.js +30 -0
  30. package/dist/classes/premium.d.ts +179 -0
  31. package/dist/classes/premium.js +76 -0
  32. package/dist/classes/sessions.d.ts +42 -0
  33. package/dist/classes/sessions.js +30 -0
  34. package/dist/classes/teams.d.ts +88 -0
  35. package/dist/classes/teams.js +66 -0
  36. package/dist/classes/telemetry.d.ts +32 -0
  37. package/dist/classes/telemetry.js +28 -0
  38. package/dist/classes/user.d.ts +40 -0
  39. package/dist/classes/user.js +30 -0
  40. package/dist/classes/vods.d.ts +55 -0
  41. package/dist/classes/vods.js +38 -0
  42. package/dist/core/manager.d.ts +57 -0
  43. package/dist/core/manager.js +78 -0
  44. package/dist/core/utils.d.ts +4 -0
  45. package/dist/core/utils.js +26 -0
  46. package/dist/index.d.ts +22 -0
  47. package/dist/index.js +42 -0
  48. package/dist/modules/stripe.d.ts +12 -0
  49. package/dist/modules/stripe.js +18 -0
  50. package/dist/other/bitfields.d.ts +283 -0
  51. package/dist/other/bitfields.js +323 -0
  52. package/dist/other/enums.d.ts +2 -0
  53. package/dist/other/enums.js +10 -0
  54. package/dist/other/prisma.d.ts +76 -0
  55. package/dist/other/prisma.js +9 -0
  56. package/dist/other/templates.d.ts +795 -0
  57. package/dist/other/templates.js +706 -0
  58. package/dist/other/types.d.ts +45 -0
  59. package/dist/other/types.js +17 -0
  60. package/dist/other/utils.d.ts +5 -0
  61. package/dist/other/utils.js +51 -0
  62. package/dist/other/zod/client.zod.d.ts +349 -0
  63. package/dist/other/zod/client.zod.js +63 -0
  64. package/dist/other/zod/drops.zod.d.ts +16 -0
  65. package/dist/other/zod/drops.zod.js +93 -0
  66. package/dist/other/zod/giveaways.zod.d.ts +382 -0
  67. package/dist/other/zod/giveaways.zod.js +72 -0
  68. package/dist/other/zod/guild.zod.d.ts +1638 -0
  69. package/dist/other/zod/guild.zod.js +139 -0
  70. package/dist/other/zod/kickStreamer.zod.d.ts +761 -0
  71. package/dist/other/zod/kickStreamer.zod.js +92 -0
  72. package/dist/other/zod/member.zod.d.ts +22 -0
  73. package/dist/other/zod/member.zod.js +15 -0
  74. package/dist/other/zod/r2Storage.zod.d.ts +56 -0
  75. package/dist/other/zod/r2Storage.zod.js +21 -0
  76. package/dist/other/zod/rumbleStreamer.zod.d.ts +530 -0
  77. package/dist/other/zod/rumbleStreamer.zod.js +45 -0
  78. package/dist/other/zod/schema.zod.d.ts +25 -0
  79. package/dist/other/zod/schema.zod.js +168 -0
  80. package/dist/other/zod/starboard.zod.d.ts +167 -0
  81. package/dist/other/zod/starboard.zod.js +46 -0
  82. package/dist/other/zod/team.zod.d.ts +107 -0
  83. package/dist/other/zod/team.zod.js +30 -0
  84. package/dist/other/zod/tiktokStreamer.zod.d.ts +473 -0
  85. package/dist/other/zod/tiktokStreamer.zod.js +46 -0
  86. package/dist/other/zod/twitchStreamer.zod.d.ts +473 -0
  87. package/dist/other/zod/twitchStreamer.zod.js +46 -0
  88. package/dist/other/zod/user.zod.d.ts +678 -0
  89. package/dist/other/zod/user.zod.js +124 -0
  90. package/dist/other/zod/youtubeStreamer.zod.d.ts +476 -0
  91. package/dist/other/zod/youtubeStreamer.zod.js +47 -0
  92. package/dist/other/zod/zod.d.ts +177 -0
  93. package/dist/other/zod/zod.js +60 -0
  94. package/dist/tsconfig.tsbuildinfo +1 -0
  95. package/dist/types.d.ts +37 -0
  96. package/dist/types.js +2 -0
  97. package/package.json +63 -0
  98. package/prisma/generated/index.ts +25 -0
  99. package/prisma/generated/ts-prisma.d.ts +91725 -0
  100. package/prisma/schema/models/client.prisma +89 -0
  101. package/prisma/schema/models/drops.prisma +167 -0
  102. package/prisma/schema/models/giveaways.prisma +82 -0
  103. package/prisma/schema/models/guild.prisma +368 -0
  104. package/prisma/schema/models/kickStreamer.prisma +202 -0
  105. package/prisma/schema/models/member.prisma +10 -0
  106. package/prisma/schema/models/r2Storage.prisma +22 -0
  107. package/prisma/schema/models/rumbleStreamer.prisma +121 -0
  108. package/prisma/schema/models/starboard.prisma +66 -0
  109. package/prisma/schema/models/team.prisma +38 -0
  110. package/prisma/schema/models/tiktokStreamer.prisma +121 -0
  111. package/prisma/schema/models/twitchStreamer.prisma +122 -0
  112. package/prisma/schema/models/user.prisma +212 -0
  113. package/prisma/schema/models/youtubeStreamer.prisma +123 -0
  114. package/prisma/schema/schema.prisma +182 -0
  115. package/prisma.config.ts +6 -0
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserNotificationSeverityEnum = exports.RoleBonusEnum = exports.MediaShareCommandsEnum = exports.MediaShareTypesEnum = exports.FilterEnum = exports.QueryInEnum = exports.RumbleTypeEnum = exports.PlatformsWithVideosEnum = exports.UserMediaSharePermissionsEnum = exports.ClipperCategoryEnum = exports.PlatformEnum = exports.OverridesEnum = exports.GuildSingleMessageTypeEnum = exports.GuildMessageTypeEnum = exports.StreamerMessageTypeEnum = exports.SingleMessageTypeEnum = exports.LeaderBoardTypesEnum = void 0;
4
+ exports.deepPartialify = deepPartialify;
5
+ const zod_1 = require("zod");
6
+ function deepPartialify(schema) {
7
+ if (schema instanceof zod_1.ZodObject) {
8
+ const newShape = {};
9
+ for (const key in schema.shape) {
10
+ const fieldSchema = schema.shape[key];
11
+ newShape[key] = zod_1.ZodOptional.create(deepPartialify(fieldSchema));
12
+ }
13
+ return new zod_1.ZodObject({ ...schema._def, shape: () => newShape });
14
+ }
15
+ else if (schema instanceof zod_1.ZodArray) {
16
+ return new zod_1.ZodArray({ ...schema._def, type: deepPartialify(schema.element) });
17
+ }
18
+ else if (schema instanceof zod_1.ZodOptional) {
19
+ return zod_1.ZodOptional.create(deepPartialify(schema.unwrap()));
20
+ }
21
+ else if (schema instanceof zod_1.ZodNullable) {
22
+ return zod_1.ZodNullable.create(deepPartialify(schema.unwrap()));
23
+ }
24
+ else if (schema instanceof zod_1.ZodTuple) {
25
+ return zod_1.ZodTuple.create(schema.items.map((item) => deepPartialify(item)));
26
+ }
27
+ else if (schema instanceof zod_1.ZodUnion) {
28
+ return zod_1.ZodUnion.create(schema._def.options.map((option) => deepPartialify(option)));
29
+ }
30
+ else if (schema instanceof zod_1.ZodLazy) {
31
+ return zod_1.ZodLazy.create(() => deepPartialify(schema._def.getter()));
32
+ }
33
+ else if (schema instanceof zod_1.ZodEffects) {
34
+ return new zod_1.ZodEffects({ ...schema._def, schema: deepPartialify(schema._def.schema) });
35
+ }
36
+ else {
37
+ return schema;
38
+ }
39
+ }
40
+ // Schemas.
41
+ exports.LeaderBoardTypesEnum = zod_1.z.enum([
42
+ 'weekly',
43
+ 'monthly',
44
+ 'overall',
45
+ ]);
46
+ exports.SingleMessageTypeEnum = zod_1.z.enum([
47
+ 'autoLiveRoleAdded',
48
+ 'autoLiveRoleRemoved',
49
+ 'statusRoleAdded',
50
+ 'statusRoleRemoved',
51
+ 'statChannelLive',
52
+ 'statChannelOffline',
53
+ 'statFollowers',
54
+ ]);
55
+ exports.StreamerMessageTypeEnum = zod_1.z.enum([
56
+ 'clip',
57
+ 'vod',
58
+ 'kickLive',
59
+ 'kickOffline',
60
+ 'twitchLive',
61
+ 'twitchOffline',
62
+ 'rumbleLive',
63
+ 'rumbleOffline',
64
+ 'tiktokLive',
65
+ 'tiktokOffline',
66
+ 'tiktokVideo',
67
+ 'youtubeLive',
68
+ 'youtubeVideo',
69
+ ]);
70
+ exports.GuildMessageTypeEnum = zod_1.z.enum([
71
+ 'giveawayRerolled',
72
+ 'giveawayWinner',
73
+ 'giveawayEnded',
74
+ 'giveawayDM',
75
+ 'linkedRole',
76
+ 'giveaway',
77
+ 'birthday',
78
+ 'welcome',
79
+ 'leave',
80
+ 'clip',
81
+ 'vod',
82
+ 'kickLive',
83
+ 'kickOffline',
84
+ 'twitchLive',
85
+ 'twitchOffline',
86
+ 'rumbleLive',
87
+ 'rumbleOffline',
88
+ 'tiktokLive',
89
+ 'tiktokOffline',
90
+ 'tiktokVideo',
91
+ 'youtubeLive',
92
+ 'youtubeVideo',
93
+ ]);
94
+ exports.GuildSingleMessageTypeEnum = zod_1.z.enum([
95
+ 'autoLiveRoleAdded',
96
+ 'autoLiveRoleRemoved',
97
+ 'statusRoleAdded',
98
+ 'statusRoleRemoved',
99
+ 'statChannelLive',
100
+ 'statChannelOffline',
101
+ 'statFollowers',
102
+ ]);
103
+ exports.OverridesEnum = zod_1.z.enum([
104
+ 'autoPublish',
105
+ 'cancel',
106
+ 'dontPublish',
107
+ ]);
108
+ exports.PlatformEnum = zod_1.z.enum([
109
+ 'kick',
110
+ 'twitch',
111
+ 'rumble',
112
+ 'tiktok',
113
+ 'youtube',
114
+ ]);
115
+ exports.ClipperCategoryEnum = zod_1.z.enum([
116
+ 'vip',
117
+ 'sub',
118
+ 'mod',
119
+ 'broadcaster',
120
+ ]);
121
+ exports.UserMediaSharePermissionsEnum = zod_1.z.enum([
122
+ 'vip',
123
+ 'sub',
124
+ 'mod',
125
+ 'broadcaster',
126
+ 'everyone',
127
+ ]);
128
+ exports.PlatformsWithVideosEnum = zod_1.z.enum([
129
+ 'tiktok',
130
+ 'youtube',
131
+ ]);
132
+ exports.RumbleTypeEnum = zod_1.z.enum([
133
+ 'channel',
134
+ 'user',
135
+ ]);
136
+ exports.QueryInEnum = zod_1.z.enum([
137
+ 'title',
138
+ 'category',
139
+ 'description',
140
+ ]);
141
+ exports.FilterEnum = zod_1.z.enum([
142
+ 'whitelist',
143
+ 'blacklist',
144
+ ]);
145
+ exports.MediaShareTypesEnum = zod_1.z.enum([
146
+ 'tiktok',
147
+ 'youtube',
148
+ 'shorts',
149
+ ]);
150
+ exports.MediaShareCommandsEnum = zod_1.z.enum([
151
+ 'request',
152
+ 'skip',
153
+ 'pause',
154
+ 'clear',
155
+ 'rban',
156
+ 'play',
157
+ 'mode',
158
+ 'runban',
159
+ ]);
160
+ exports.RoleBonusEnum = zod_1.z.enum([
161
+ 'stackable',
162
+ 'highest',
163
+ ]);
164
+ exports.UserNotificationSeverityEnum = zod_1.z.enum([
165
+ 'info',
166
+ 'warning',
167
+ 'emergency',
168
+ ]);
@@ -0,0 +1,167 @@
1
+ import { PartialZodObject } from './schema.zod';
2
+ import { TSPrisma } from '@prisma/client';
3
+ import { RemoveProperties } from '../prisma';
4
+ import { z } from 'zod';
5
+ export type RT<T extends TSPrisma.AllModelNames> = z.ZodType<RemoveProperties<TSPrisma.TSPrismaModelsFull[T], GuildStarboardRelations>>;
6
+ export type GuildStarboardRelations = 'db' | 'guildStarboard' | 'guildStarboardMessages';
7
+ export declare const GuildStarboardZod: {
8
+ readonly GuildStarboardSchema: z.ZodObject<{
9
+ channelId: z.ZodEffects<z.ZodString, string, string>;
10
+ guildId: z.ZodEffects<z.ZodString, string, string>;
11
+ enabled: z.ZodNullable<z.ZodBoolean>;
12
+ threshold: z.ZodNullable<z.ZodNumber>;
13
+ emojiId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
14
+ emojiName: z.ZodNullable<z.ZodString>;
15
+ allowNsfw: z.ZodNullable<z.ZodBoolean>;
16
+ allowSelfStar: z.ZodNullable<z.ZodBoolean>;
17
+ allowBotMessages: z.ZodNullable<z.ZodBoolean>;
18
+ deleteIfLost: z.ZodNullable<z.ZodBoolean>;
19
+ rewardRole: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
20
+ openThreadOnStar: z.ZodNullable<z.ZodBoolean>;
21
+ filter: z.ZodNullable<z.ZodLazy<z.ZodObject<{
22
+ roleMode: z.ZodNullable<z.ZodEnum<["whitelist", "blacklist"]>>;
23
+ roles: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
24
+ channelMode: z.ZodNullable<z.ZodEnum<["whitelist", "blacklist"]>>;
25
+ channels: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ roles: string[];
28
+ roleMode: "whitelist" | "blacklist" | null;
29
+ channelMode: "whitelist" | "blacklist" | null;
30
+ channels: string[];
31
+ }, {
32
+ roles: string[];
33
+ roleMode: "whitelist" | "blacklist" | null;
34
+ channelMode: "whitelist" | "blacklist" | null;
35
+ channels: string[];
36
+ }>>>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ guildId: string;
39
+ filter: {
40
+ roles: string[];
41
+ roleMode: "whitelist" | "blacklist" | null;
42
+ channelMode: "whitelist" | "blacklist" | null;
43
+ channels: string[];
44
+ } | null;
45
+ channelId: string;
46
+ enabled: boolean | null;
47
+ threshold: number | null;
48
+ emojiId: string | null;
49
+ emojiName: string | null;
50
+ allowNsfw: boolean | null;
51
+ allowSelfStar: boolean | null;
52
+ allowBotMessages: boolean | null;
53
+ deleteIfLost: boolean | null;
54
+ rewardRole: string | null;
55
+ openThreadOnStar: boolean | null;
56
+ }, {
57
+ guildId: string;
58
+ filter: {
59
+ roles: string[];
60
+ roleMode: "whitelist" | "blacklist" | null;
61
+ channelMode: "whitelist" | "blacklist" | null;
62
+ channels: string[];
63
+ } | null;
64
+ channelId: string;
65
+ enabled: boolean | null;
66
+ threshold: number | null;
67
+ emojiId: string | null;
68
+ emojiName: string | null;
69
+ allowNsfw: boolean | null;
70
+ allowSelfStar: boolean | null;
71
+ allowBotMessages: boolean | null;
72
+ deleteIfLost: boolean | null;
73
+ rewardRole: string | null;
74
+ openThreadOnStar: boolean | null;
75
+ }>;
76
+ readonly GuildStarboardFilterSchema: z.ZodObject<{
77
+ roleMode: z.ZodNullable<z.ZodEnum<["whitelist", "blacklist"]>>;
78
+ roles: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
79
+ channelMode: z.ZodNullable<z.ZodEnum<["whitelist", "blacklist"]>>;
80
+ channels: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ roles: string[];
83
+ roleMode: "whitelist" | "blacklist" | null;
84
+ channelMode: "whitelist" | "blacklist" | null;
85
+ channels: string[];
86
+ }, {
87
+ roles: string[];
88
+ roleMode: "whitelist" | "blacklist" | null;
89
+ channelMode: "whitelist" | "blacklist" | null;
90
+ channels: string[];
91
+ }>;
92
+ readonly GuildStarboardMessagesSchema: z.ZodObject<{
93
+ guildId: z.ZodEffects<z.ZodString, string, string>;
94
+ channelId: z.ZodEffects<z.ZodString, string, string>;
95
+ messages: z.ZodEffects<z.ZodArray<z.ZodLazy<z.ZodObject<{
96
+ messageId: z.ZodString;
97
+ originalMessageId: z.ZodString;
98
+ originalChannelId: z.ZodEffects<z.ZodString, string, string>;
99
+ currentStars: z.ZodNumber;
100
+ isTrashed: z.ZodNullable<z.ZodBoolean>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ messageId: string;
103
+ originalMessageId: string;
104
+ originalChannelId: string;
105
+ currentStars: number;
106
+ isTrashed: boolean | null;
107
+ }, {
108
+ messageId: string;
109
+ originalMessageId: string;
110
+ originalChannelId: string;
111
+ currentStars: number;
112
+ isTrashed: boolean | null;
113
+ }>>, "many">, {
114
+ messageId: string;
115
+ originalMessageId: string;
116
+ originalChannelId: string;
117
+ currentStars: number;
118
+ isTrashed: boolean | null;
119
+ }[], {
120
+ messageId: string;
121
+ originalMessageId: string;
122
+ originalChannelId: string;
123
+ currentStars: number;
124
+ isTrashed: boolean | null;
125
+ }[]>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ messages: {
128
+ messageId: string;
129
+ originalMessageId: string;
130
+ originalChannelId: string;
131
+ currentStars: number;
132
+ isTrashed: boolean | null;
133
+ }[];
134
+ guildId: string;
135
+ channelId: string;
136
+ }, {
137
+ messages: {
138
+ messageId: string;
139
+ originalMessageId: string;
140
+ originalChannelId: string;
141
+ currentStars: number;
142
+ isTrashed: boolean | null;
143
+ }[];
144
+ guildId: string;
145
+ channelId: string;
146
+ }>;
147
+ readonly GuildStarboardMessageSchema: z.ZodObject<{
148
+ messageId: z.ZodString;
149
+ originalMessageId: z.ZodString;
150
+ originalChannelId: z.ZodEffects<z.ZodString, string, string>;
151
+ currentStars: z.ZodNumber;
152
+ isTrashed: z.ZodNullable<z.ZodBoolean>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ messageId: string;
155
+ originalMessageId: string;
156
+ originalChannelId: string;
157
+ currentStars: number;
158
+ isTrashed: boolean | null;
159
+ }, {
160
+ messageId: string;
161
+ originalMessageId: string;
162
+ originalChannelId: string;
163
+ currentStars: number;
164
+ isTrashed: boolean | null;
165
+ }>;
166
+ };
167
+ export declare const GuildStarboardZodPartial: PartialZodObject<typeof GuildStarboardZod>;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GuildStarboardZodPartial = exports.GuildStarboardZod = void 0;
4
+ const schema_zod_1 = require("./schema.zod");
5
+ const zod_1 = require("./zod");
6
+ const zod_2 = require("zod");
7
+ const GuildStarboardSchema = zod_2.z.object({
8
+ channelId: zod_1.SnowFlake,
9
+ guildId: zod_1.SnowFlake,
10
+ enabled: zod_2.z.boolean().nullable(),
11
+ threshold: zod_2.z.number().min(1).nullable(),
12
+ emojiId: zod_1.SnowFlake.nullable(),
13
+ emojiName: zod_2.z.string().nullable(),
14
+ allowNsfw: zod_2.z.boolean().nullable(),
15
+ allowSelfStar: zod_2.z.boolean().nullable(),
16
+ allowBotMessages: zod_2.z.boolean().nullable(),
17
+ deleteIfLost: zod_2.z.boolean().nullable(),
18
+ rewardRole: zod_1.SnowFlake.nullable(),
19
+ openThreadOnStar: zod_2.z.boolean().nullable(),
20
+ filter: zod_2.z.lazy(() => GuildStarboardFilterSchema).nullable(),
21
+ });
22
+ const GuildStarboardFilterSchema = zod_2.z.object({
23
+ roleMode: schema_zod_1.FilterEnum.nullable(),
24
+ roles: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.string())),
25
+ channelMode: schema_zod_1.FilterEnum.nullable(),
26
+ channels: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.string())),
27
+ });
28
+ const GuildStarboardMessagesSchema = zod_2.z.object({
29
+ guildId: zod_1.SnowFlake,
30
+ channelId: zod_1.SnowFlake,
31
+ messages: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => GuildStarboardMessageSchema)), ['messageId']),
32
+ });
33
+ const GuildStarboardMessageSchema = zod_2.z.object({
34
+ messageId: zod_2.z.string(),
35
+ originalMessageId: zod_2.z.string(),
36
+ originalChannelId: zod_1.SnowFlake,
37
+ currentStars: zod_2.z.number(),
38
+ isTrashed: zod_2.z.boolean().nullable(),
39
+ });
40
+ exports.GuildStarboardZod = {
41
+ GuildStarboardSchema,
42
+ GuildStarboardFilterSchema,
43
+ GuildStarboardMessagesSchema,
44
+ GuildStarboardMessageSchema,
45
+ };
46
+ exports.GuildStarboardZodPartial = Object.fromEntries(Object.entries(exports.GuildStarboardZod).map(([key, value]) => [key, (0, schema_zod_1.deepPartialify)(value)]));
@@ -0,0 +1,107 @@
1
+ import { PartialZodObject } from './schema.zod';
2
+ import { TSPrisma } from '@prisma/client';
3
+ import { RemoveProperties } from '../prisma';
4
+ import { z } from 'zod';
5
+ export type RT<T extends TSPrisma.AllModelNames> = z.ZodType<RemoveProperties<TSPrisma.TSPrismaModelsFull[T], TeamRelations>>;
6
+ export type TeamRelations = 'db' | 'team';
7
+ export declare const TeamZod: {
8
+ readonly TeamSchema: z.ZodObject<{
9
+ teamId: z.ZodEffects<z.ZodString, string, string>;
10
+ teamName: z.ZodString;
11
+ teamMembers: z.ZodArray<z.ZodLazy<z.ZodObject<{
12
+ userId: z.ZodEffects<z.ZodString, string, string>;
13
+ bitfield: z.ZodString;
14
+ joinedAt: z.ZodDate;
15
+ }, "strip", z.ZodTypeAny, {
16
+ bitfield: string;
17
+ userId: string;
18
+ joinedAt: Date;
19
+ }, {
20
+ bitfield: string;
21
+ userId: string;
22
+ joinedAt: Date;
23
+ }>>, "many">;
24
+ activeInvites: z.ZodArray<z.ZodLazy<z.ZodObject<{
25
+ code: z.ZodString;
26
+ maxUses: z.ZodNullable<z.ZodNumber>;
27
+ currentUses: z.ZodNumber;
28
+ bitfieldToSet: z.ZodString;
29
+ expiresAt: z.ZodNullable<z.ZodDate>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ code: string;
32
+ maxUses: number | null;
33
+ currentUses: number;
34
+ bitfieldToSet: string;
35
+ expiresAt: Date | null;
36
+ }, {
37
+ code: string;
38
+ maxUses: number | null;
39
+ currentUses: number;
40
+ bitfieldToSet: string;
41
+ expiresAt: Date | null;
42
+ }>>, "many">;
43
+ }, "strip", z.ZodTypeAny, {
44
+ teamMembers: {
45
+ bitfield: string;
46
+ userId: string;
47
+ joinedAt: Date;
48
+ }[];
49
+ activeInvites: {
50
+ code: string;
51
+ maxUses: number | null;
52
+ currentUses: number;
53
+ bitfieldToSet: string;
54
+ expiresAt: Date | null;
55
+ }[];
56
+ teamId: string;
57
+ teamName: string;
58
+ }, {
59
+ teamMembers: {
60
+ bitfield: string;
61
+ userId: string;
62
+ joinedAt: Date;
63
+ }[];
64
+ activeInvites: {
65
+ code: string;
66
+ maxUses: number | null;
67
+ currentUses: number;
68
+ bitfieldToSet: string;
69
+ expiresAt: Date | null;
70
+ }[];
71
+ teamId: string;
72
+ teamName: string;
73
+ }>;
74
+ readonly TeamMemberSchema: z.ZodObject<{
75
+ userId: z.ZodEffects<z.ZodString, string, string>;
76
+ bitfield: z.ZodString;
77
+ joinedAt: z.ZodDate;
78
+ }, "strip", z.ZodTypeAny, {
79
+ bitfield: string;
80
+ userId: string;
81
+ joinedAt: Date;
82
+ }, {
83
+ bitfield: string;
84
+ userId: string;
85
+ joinedAt: Date;
86
+ }>;
87
+ readonly ActiveInviteSchema: z.ZodObject<{
88
+ code: z.ZodString;
89
+ maxUses: z.ZodNullable<z.ZodNumber>;
90
+ currentUses: z.ZodNumber;
91
+ bitfieldToSet: z.ZodString;
92
+ expiresAt: z.ZodNullable<z.ZodDate>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ code: string;
95
+ maxUses: number | null;
96
+ currentUses: number;
97
+ bitfieldToSet: string;
98
+ expiresAt: Date | null;
99
+ }, {
100
+ code: string;
101
+ maxUses: number | null;
102
+ currentUses: number;
103
+ bitfieldToSet: string;
104
+ expiresAt: Date | null;
105
+ }>;
106
+ };
107
+ export declare const TeamZodPartial: PartialZodObject<typeof TeamZod>;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TeamZodPartial = exports.TeamZod = void 0;
4
+ const schema_zod_1 = require("./schema.zod");
5
+ const zod_1 = require("./zod");
6
+ const zod_2 = require("zod");
7
+ const TeamSchema = zod_2.z.object({
8
+ teamId: zod_1.SnowFlake,
9
+ teamName: zod_2.z.string(),
10
+ teamMembers: zod_2.z.array(zod_2.z.lazy(() => TeamMemberSchema)),
11
+ activeInvites: zod_2.z.array(zod_2.z.lazy(() => ActiveInviteSchema)),
12
+ });
13
+ const TeamMemberSchema = zod_2.z.object({
14
+ userId: zod_1.SnowFlake,
15
+ bitfield: zod_2.z.string(),
16
+ joinedAt: zod_2.z.date(),
17
+ });
18
+ const ActiveInviteSchema = zod_2.z.object({
19
+ code: zod_2.z.string(),
20
+ maxUses: zod_2.z.number().nullable(),
21
+ currentUses: zod_2.z.number(),
22
+ bitfieldToSet: zod_2.z.string(),
23
+ expiresAt: zod_2.z.date().nullable(),
24
+ });
25
+ exports.TeamZod = {
26
+ TeamSchema,
27
+ TeamMemberSchema,
28
+ ActiveInviteSchema,
29
+ };
30
+ exports.TeamZodPartial = Object.fromEntries(Object.entries(exports.TeamZod).map(([key, value]) => [key, (0, schema_zod_1.deepPartialify)(value)]));