@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,382 @@
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], GuildGiveawayRelations>>;
6
+ export type GuildGiveawayRelations = 'db' | 'guildGiveaway';
7
+ export declare const GuildGiveawayZod: {
8
+ readonly GuildGiveawayCreateSchema: z.ZodObject<{
9
+ giveawayId: z.ZodString;
10
+ guildId: z.ZodEffects<z.ZodString, string, string>;
11
+ channelId: z.ZodEffects<z.ZodString, string, string>;
12
+ hostId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
13
+ name: z.ZodString;
14
+ durationMinutes: z.ZodNumber;
15
+ winnerCount: z.ZodNumber;
16
+ messageId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
17
+ winnerIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18
+ mentionRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ emojiUnicodeOrId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ buttonLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ liveEntryCountUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
22
+ currentEntries: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodLazy<z.ZodObject<{
23
+ userId: z.ZodEffects<z.ZodString, string, string>;
24
+ username: z.ZodString;
25
+ entries: z.ZodNumber;
26
+ }, "strip", z.ZodTypeAny, {
27
+ entries: number;
28
+ username: string;
29
+ userId: string;
30
+ }, {
31
+ entries: number;
32
+ username: string;
33
+ userId: string;
34
+ }>>, "many">, {
35
+ entries: number;
36
+ username: string;
37
+ userId: string;
38
+ }[], {
39
+ entries: number;
40
+ username: string;
41
+ userId: string;
42
+ }[]>>;
43
+ startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
44
+ endedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
45
+ maxEntries: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
+ entryFilter: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
47
+ roleMode: z.ZodEnum<["whitelist", "blacklist"]>;
48
+ roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ roles: string[];
51
+ roleMode: "whitelist" | "blacklist";
52
+ }, {
53
+ roles: string[];
54
+ roleMode: "whitelist" | "blacklist";
55
+ }>>>>;
56
+ disableDoubleVoteEntry: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
57
+ roleBonusType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["stackable", "highest"]>>>;
58
+ roleBonuses: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodLazy<z.ZodObject<{
59
+ roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
60
+ additionalEntries: z.ZodNumber;
61
+ }, "strip", z.ZodTypeAny, {
62
+ roles: string[];
63
+ additionalEntries: number;
64
+ }, {
65
+ roles: string[];
66
+ additionalEntries: number;
67
+ }>>, "many">, {
68
+ roles: string[];
69
+ additionalEntries: number;
70
+ }[], {
71
+ roles: string[];
72
+ additionalEntries: number;
73
+ }[]>>;
74
+ requirements: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
75
+ joinedServerBefore: z.ZodNullable<z.ZodDate>;
76
+ accountCreatedBefore: z.ZodNullable<z.ZodDate>;
77
+ boostingServer: z.ZodNullable<z.ZodBoolean>;
78
+ messageCount: z.ZodNullable<z.ZodNumber>;
79
+ roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ roles: string[];
82
+ joinedServerBefore: Date | null;
83
+ accountCreatedBefore: Date | null;
84
+ boostingServer: boolean | null;
85
+ messageCount: number | null;
86
+ }, {
87
+ roles: string[];
88
+ joinedServerBefore: Date | null;
89
+ accountCreatedBefore: Date | null;
90
+ boostingServer: boolean | null;
91
+ messageCount: number | null;
92
+ }>>>>;
93
+ bypassRequirementsRoles: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ name: string;
96
+ guildId: string;
97
+ durationMinutes: number;
98
+ channelId: string;
99
+ giveawayId: string;
100
+ hostId: string | null;
101
+ winnerCount: number;
102
+ disableDoubleVoteEntry?: boolean | null | undefined;
103
+ messageId?: string | null | undefined;
104
+ emojiUnicodeOrId?: string | null | undefined;
105
+ currentEntries?: {
106
+ entries: number;
107
+ username: string;
108
+ userId: string;
109
+ }[] | undefined;
110
+ entryFilter?: {
111
+ roles: string[];
112
+ roleMode: "whitelist" | "blacklist";
113
+ } | null | undefined;
114
+ roleBonuses?: {
115
+ roles: string[];
116
+ additionalEntries: number;
117
+ }[] | undefined;
118
+ requirements?: {
119
+ roles: string[];
120
+ joinedServerBefore: Date | null;
121
+ accountCreatedBefore: Date | null;
122
+ boostingServer: boolean | null;
123
+ messageCount: number | null;
124
+ } | null | undefined;
125
+ winnerIds?: string[] | undefined;
126
+ mentionRole?: string | null | undefined;
127
+ buttonLabel?: string | null | undefined;
128
+ liveEntryCountUpdatedAt?: Date | null | undefined;
129
+ startedAt?: Date | null | undefined;
130
+ endedAt?: Date | null | undefined;
131
+ maxEntries?: number | null | undefined;
132
+ roleBonusType?: "stackable" | "highest" | null | undefined;
133
+ bypassRequirementsRoles?: string[] | undefined;
134
+ }, {
135
+ name: string;
136
+ guildId: string;
137
+ durationMinutes: number;
138
+ channelId: string;
139
+ giveawayId: string;
140
+ hostId: string | null;
141
+ winnerCount: number;
142
+ disableDoubleVoteEntry?: boolean | null | undefined;
143
+ messageId?: string | null | undefined;
144
+ emojiUnicodeOrId?: string | null | undefined;
145
+ currentEntries?: {
146
+ entries: number;
147
+ username: string;
148
+ userId: string;
149
+ }[] | undefined;
150
+ entryFilter?: {
151
+ roles: string[];
152
+ roleMode: "whitelist" | "blacklist";
153
+ } | null | undefined;
154
+ roleBonuses?: {
155
+ roles: string[];
156
+ additionalEntries: number;
157
+ }[] | undefined;
158
+ requirements?: {
159
+ roles: string[];
160
+ joinedServerBefore: Date | null;
161
+ accountCreatedBefore: Date | null;
162
+ boostingServer: boolean | null;
163
+ messageCount: number | null;
164
+ } | null | undefined;
165
+ winnerIds?: string[] | undefined;
166
+ mentionRole?: string | null | undefined;
167
+ buttonLabel?: string | null | undefined;
168
+ liveEntryCountUpdatedAt?: Date | null | undefined;
169
+ startedAt?: Date | null | undefined;
170
+ endedAt?: Date | null | undefined;
171
+ maxEntries?: number | null | undefined;
172
+ roleBonusType?: "stackable" | "highest" | null | undefined;
173
+ bypassRequirementsRoles?: string[] | undefined;
174
+ }>;
175
+ readonly GuildGiveawaySchema: z.ZodObject<{
176
+ giveawayId: z.ZodString;
177
+ guildId: z.ZodEffects<z.ZodString, string, string>;
178
+ channelId: z.ZodEffects<z.ZodString, string, string>;
179
+ messageId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
180
+ name: z.ZodString;
181
+ winnerIds: z.ZodArray<z.ZodString, "many">;
182
+ mentionRole: z.ZodNullable<z.ZodString>;
183
+ emojiUnicodeOrId: z.ZodNullable<z.ZodString>;
184
+ buttonLabel: z.ZodNullable<z.ZodString>;
185
+ liveEntryCountUpdatedAt: z.ZodNullable<z.ZodDate>;
186
+ currentEntries: z.ZodEffects<z.ZodArray<z.ZodLazy<z.ZodObject<{
187
+ userId: z.ZodEffects<z.ZodString, string, string>;
188
+ username: z.ZodString;
189
+ entries: z.ZodNumber;
190
+ }, "strip", z.ZodTypeAny, {
191
+ entries: number;
192
+ username: string;
193
+ userId: string;
194
+ }, {
195
+ entries: number;
196
+ username: string;
197
+ userId: string;
198
+ }>>, "many">, {
199
+ entries: number;
200
+ username: string;
201
+ userId: string;
202
+ }[], {
203
+ entries: number;
204
+ username: string;
205
+ userId: string;
206
+ }[]>;
207
+ startedAt: z.ZodNullable<z.ZodDate>;
208
+ durationMinutes: z.ZodNumber;
209
+ endedAt: z.ZodNullable<z.ZodDate>;
210
+ hostId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
211
+ maxEntries: z.ZodNullable<z.ZodNumber>;
212
+ winnerCount: z.ZodNumber;
213
+ entryFilter: z.ZodNullable<z.ZodLazy<z.ZodObject<{
214
+ roleMode: z.ZodEnum<["whitelist", "blacklist"]>;
215
+ roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ roles: string[];
218
+ roleMode: "whitelist" | "blacklist";
219
+ }, {
220
+ roles: string[];
221
+ roleMode: "whitelist" | "blacklist";
222
+ }>>>;
223
+ disableDoubleVoteEntry: z.ZodNullable<z.ZodBoolean>;
224
+ roleBonusType: z.ZodNullable<z.ZodEnum<["stackable", "highest"]>>;
225
+ roleBonuses: z.ZodEffects<z.ZodArray<z.ZodLazy<z.ZodObject<{
226
+ roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
227
+ additionalEntries: z.ZodNumber;
228
+ }, "strip", z.ZodTypeAny, {
229
+ roles: string[];
230
+ additionalEntries: number;
231
+ }, {
232
+ roles: string[];
233
+ additionalEntries: number;
234
+ }>>, "many">, {
235
+ roles: string[];
236
+ additionalEntries: number;
237
+ }[], {
238
+ roles: string[];
239
+ additionalEntries: number;
240
+ }[]>;
241
+ requirements: z.ZodNullable<z.ZodLazy<z.ZodObject<{
242
+ joinedServerBefore: z.ZodNullable<z.ZodDate>;
243
+ accountCreatedBefore: z.ZodNullable<z.ZodDate>;
244
+ boostingServer: z.ZodNullable<z.ZodBoolean>;
245
+ messageCount: z.ZodNullable<z.ZodNumber>;
246
+ roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ roles: string[];
249
+ joinedServerBefore: Date | null;
250
+ accountCreatedBefore: Date | null;
251
+ boostingServer: boolean | null;
252
+ messageCount: number | null;
253
+ }, {
254
+ roles: string[];
255
+ joinedServerBefore: Date | null;
256
+ accountCreatedBefore: Date | null;
257
+ boostingServer: boolean | null;
258
+ messageCount: number | null;
259
+ }>>>;
260
+ bypassRequirementsRoles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ name: string;
263
+ guildId: string;
264
+ disableDoubleVoteEntry: boolean | null;
265
+ durationMinutes: number;
266
+ channelId: string;
267
+ messageId: string | null;
268
+ emojiUnicodeOrId: string | null;
269
+ currentEntries: {
270
+ entries: number;
271
+ username: string;
272
+ userId: string;
273
+ }[];
274
+ entryFilter: {
275
+ roles: string[];
276
+ roleMode: "whitelist" | "blacklist";
277
+ } | null;
278
+ roleBonuses: {
279
+ roles: string[];
280
+ additionalEntries: number;
281
+ }[];
282
+ requirements: {
283
+ roles: string[];
284
+ joinedServerBefore: Date | null;
285
+ accountCreatedBefore: Date | null;
286
+ boostingServer: boolean | null;
287
+ messageCount: number | null;
288
+ } | null;
289
+ giveawayId: string;
290
+ winnerIds: string[];
291
+ mentionRole: string | null;
292
+ buttonLabel: string | null;
293
+ liveEntryCountUpdatedAt: Date | null;
294
+ startedAt: Date | null;
295
+ endedAt: Date | null;
296
+ hostId: string | null;
297
+ maxEntries: number | null;
298
+ winnerCount: number;
299
+ roleBonusType: "stackable" | "highest" | null;
300
+ bypassRequirementsRoles: string[];
301
+ }, {
302
+ name: string;
303
+ guildId: string;
304
+ disableDoubleVoteEntry: boolean | null;
305
+ durationMinutes: number;
306
+ channelId: string;
307
+ messageId: string | null;
308
+ emojiUnicodeOrId: string | null;
309
+ currentEntries: {
310
+ entries: number;
311
+ username: string;
312
+ userId: string;
313
+ }[];
314
+ entryFilter: {
315
+ roles: string[];
316
+ roleMode: "whitelist" | "blacklist";
317
+ } | null;
318
+ roleBonuses: {
319
+ roles: string[];
320
+ additionalEntries: number;
321
+ }[];
322
+ requirements: {
323
+ roles: string[];
324
+ joinedServerBefore: Date | null;
325
+ accountCreatedBefore: Date | null;
326
+ boostingServer: boolean | null;
327
+ messageCount: number | null;
328
+ } | null;
329
+ giveawayId: string;
330
+ winnerIds: string[];
331
+ mentionRole: string | null;
332
+ buttonLabel: string | null;
333
+ liveEntryCountUpdatedAt: Date | null;
334
+ startedAt: Date | null;
335
+ endedAt: Date | null;
336
+ hostId: string | null;
337
+ maxEntries: number | null;
338
+ winnerCount: number;
339
+ roleBonusType: "stackable" | "highest" | null;
340
+ bypassRequirementsRoles: string[];
341
+ }>;
342
+ readonly GuildGiveawayFilterSchema: z.ZodObject<{
343
+ roleMode: z.ZodEnum<["whitelist", "blacklist"]>;
344
+ roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
345
+ }, "strip", z.ZodTypeAny, {
346
+ roles: string[];
347
+ roleMode: "whitelist" | "blacklist";
348
+ }, {
349
+ roles: string[];
350
+ roleMode: "whitelist" | "blacklist";
351
+ }>;
352
+ readonly GuildGiveawayRoleBonusSchema: z.ZodObject<{
353
+ roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
354
+ additionalEntries: z.ZodNumber;
355
+ }, "strip", z.ZodTypeAny, {
356
+ roles: string[];
357
+ additionalEntries: number;
358
+ }, {
359
+ roles: string[];
360
+ additionalEntries: number;
361
+ }>;
362
+ readonly GuildGiveawayRequirementsSchema: z.ZodObject<{
363
+ joinedServerBefore: z.ZodNullable<z.ZodDate>;
364
+ accountCreatedBefore: z.ZodNullable<z.ZodDate>;
365
+ boostingServer: z.ZodNullable<z.ZodBoolean>;
366
+ messageCount: z.ZodNullable<z.ZodNumber>;
367
+ roles: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
368
+ }, "strip", z.ZodTypeAny, {
369
+ roles: string[];
370
+ joinedServerBefore: Date | null;
371
+ accountCreatedBefore: Date | null;
372
+ boostingServer: boolean | null;
373
+ messageCount: number | null;
374
+ }, {
375
+ roles: string[];
376
+ joinedServerBefore: Date | null;
377
+ accountCreatedBefore: Date | null;
378
+ boostingServer: boolean | null;
379
+ messageCount: number | null;
380
+ }>;
381
+ };
382
+ export declare const GuildGiveawayZodPartial: PartialZodObject<typeof GuildGiveawayZod>;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GuildGiveawayZodPartial = exports.GuildGiveawayZod = void 0;
4
+ const schema_zod_1 = require("./schema.zod");
5
+ const zod_1 = require("./zod");
6
+ const zod_2 = require("zod");
7
+ const mainSchemaFields = {
8
+ giveawayId: zod_2.z.string(),
9
+ guildId: zod_1.SnowFlake,
10
+ channelId: zod_1.SnowFlake,
11
+ messageId: zod_1.SnowFlake.nullable(),
12
+ name: zod_2.z.string().max(100),
13
+ winnerIds: zod_2.z.array(zod_2.z.string()),
14
+ mentionRole: zod_2.z.string().nullable(),
15
+ emojiUnicodeOrId: zod_2.z.string().nullable(),
16
+ buttonLabel: zod_2.z.string().max(50).nullable(),
17
+ liveEntryCountUpdatedAt: zod_2.z.date().nullable(),
18
+ currentEntries: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => GuildGiveawayEntrySchema)), ['userId']),
19
+ startedAt: zod_2.z.date().nullable(),
20
+ durationMinutes: zod_2.z.number().min(1),
21
+ endedAt: zod_2.z.date().nullable(),
22
+ hostId: zod_1.SnowFlake.nullable(),
23
+ maxEntries: zod_2.z.number().min(1).nullable(),
24
+ winnerCount: zod_2.z.number().min(1),
25
+ entryFilter: zod_2.z.lazy(() => GuildGiveawayFilterSchema).nullable(),
26
+ disableDoubleVoteEntry: zod_2.z.boolean().nullable(),
27
+ roleBonusType: schema_zod_1.RoleBonusEnum.nullable(),
28
+ roleBonuses: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => GuildGiveawayRoleBonusSchema)), ['multiplier']),
29
+ requirements: zod_2.z.lazy(() => GuildGiveawayRequirementsSchema).nullable(),
30
+ bypassRequirementsRoles: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
31
+ };
32
+ const GuildGiveawaySchema = zod_2.z.object({
33
+ ...mainSchemaFields,
34
+ });
35
+ const GuildGiveawayCreateSchema = zod_2.z.object({
36
+ ...(0, zod_1.makePartialTyped)(mainSchemaFields),
37
+ giveawayId: zod_2.z.string(),
38
+ guildId: zod_1.SnowFlake,
39
+ channelId: zod_1.SnowFlake,
40
+ hostId: zod_1.SnowFlake.nullable(),
41
+ name: zod_2.z.string().max(100),
42
+ durationMinutes: zod_2.z.number().min(1),
43
+ winnerCount: zod_2.z.number().min(1),
44
+ });
45
+ const GuildGiveawayEntrySchema = zod_2.z.object({
46
+ userId: zod_1.SnowFlake,
47
+ username: zod_2.z.string(),
48
+ entries: zod_2.z.number().min(1),
49
+ });
50
+ const GuildGiveawayFilterSchema = zod_2.z.object({
51
+ roleMode: schema_zod_1.FilterEnum,
52
+ roles: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
53
+ });
54
+ const GuildGiveawayRoleBonusSchema = zod_2.z.object({
55
+ roles: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
56
+ additionalEntries: zod_2.z.number().min(1),
57
+ });
58
+ const GuildGiveawayRequirementsSchema = zod_2.z.object({
59
+ joinedServerBefore: zod_2.z.date().nullable(),
60
+ accountCreatedBefore: zod_2.z.date().nullable(),
61
+ boostingServer: zod_2.z.boolean().nullable(),
62
+ messageCount: zod_2.z.number().min(1).nullable(),
63
+ roles: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_1.SnowFlake)),
64
+ });
65
+ exports.GuildGiveawayZod = {
66
+ GuildGiveawayCreateSchema,
67
+ GuildGiveawaySchema,
68
+ GuildGiveawayFilterSchema,
69
+ GuildGiveawayRoleBonusSchema,
70
+ GuildGiveawayRequirementsSchema,
71
+ };
72
+ exports.GuildGiveawayZodPartial = Object.fromEntries(Object.entries(exports.GuildGiveawayZod).map(([key, value]) => [key, (0, schema_zod_1.deepPartialify)(value)]));