@allbluecn/database 0.6.0 → 0.9.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/LICENSE +661 -0
- package/dist/get-prisma.d.ts +1 -0
- package/dist/get-prisma.js +7 -0
- package/generated/browser.ts +85 -0
- package/generated/client.ts +85 -0
- package/generated/commonInputTypes.ts +106 -46
- package/generated/internal/class.ts +174 -4
- package/generated/internal/prismaNamespace.ts +1698 -151
- package/generated/internal/prismaNamespaceBrowser.ts +279 -7
- package/generated/models/AiProviderConfig.ts +100 -1
- package/generated/models/AiStreamChunk.ts +1159 -0
- package/generated/models/AiUsageLog.ts +91 -31
- package/generated/models/Blob.ts +1428 -0
- package/generated/models/BusinessAgentBinding.ts +1553 -0
- package/generated/models/ChatInterrupt.ts +42 -1
- package/generated/models/ChatMessage.ts +58 -29
- package/generated/models/ChatPersistenceMeta.ts +1121 -0
- package/generated/models/ChatRun.ts +166 -1
- package/generated/models/ChatThread.ts +294 -1
- package/generated/models/CodeSnippet.ts +1555 -0
- package/generated/models/DesktopSetting.ts +1059 -0
- package/generated/models/EmailLog.ts +1345 -0
- package/generated/models/EmailPreference.ts +1257 -0
- package/generated/models/EmailSubscriber.ts +1233 -0
- package/generated/models/EmailVerificationToken.ts +1380 -0
- package/generated/models/GenerationRun.ts +193 -1
- package/generated/models/HarnessPlugin.ts +1677 -0
- package/generated/models/HarnessWorkspace.ts +1650 -0
- package/generated/models/InvitationCode.ts +65 -9
- package/generated/models/NotificationPreference.ts +27 -1
- package/generated/models/OAuthProviderConfig.ts +1227 -0
- package/generated/models/Plan.ts +115 -1
- package/generated/models/SandboxInstance.ts +1277 -0
- package/generated/models/SystemPromptTemplate.ts +1583 -0
- package/generated/models/SystemPromptVersion.ts +1459 -0
- package/generated/models/User.ts +5759 -823
- package/generated/models/UserAgent.ts +250 -1
- package/generated/models/Workspace.ts +3 -1
- package/generated/models/WorkspaceFile.ts +1535 -0
- package/generated/models.ts +17 -0
- package/generated-sqlite/browser.ts +90 -0
- package/generated-sqlite/client.ts +90 -0
- package/generated-sqlite/commonInputTypes.ts +192 -78
- package/generated-sqlite/internal/class.ts +184 -4
- package/generated-sqlite/internal/prismaNamespace.ts +1786 -138
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +291 -7
- package/generated-sqlite/models/AiProviderConfig.ts +100 -1
- package/generated-sqlite/models/AiStreamChunk.ts +1157 -0
- package/generated-sqlite/models/AiUsageLog.ts +91 -31
- package/generated-sqlite/models/Blob.ts +1425 -0
- package/generated-sqlite/models/BusinessAgentBinding.ts +1549 -0
- package/generated-sqlite/models/ChatInterrupt.ts +42 -1
- package/generated-sqlite/models/ChatMessage.ts +58 -29
- package/generated-sqlite/models/ChatPersistenceMeta.ts +1119 -0
- package/generated-sqlite/models/ChatRun.ts +174 -1
- package/generated-sqlite/models/ChatThread.ts +293 -1
- package/generated-sqlite/models/CodeSnippet.ts +1552 -0
- package/generated-sqlite/models/DesktopSetting.ts +1057 -0
- package/generated-sqlite/models/EmailLog.ts +1343 -0
- package/generated-sqlite/models/EmailPreference.ts +1255 -0
- package/generated-sqlite/models/EmailSubscriber.ts +1231 -0
- package/generated-sqlite/models/EmailVerificationToken.ts +1377 -0
- package/generated-sqlite/models/GenerationRun.ts +193 -1
- package/generated-sqlite/models/HarnessPlugin.ts +1674 -0
- package/generated-sqlite/models/HarnessWorkspace.ts +1647 -0
- package/generated-sqlite/models/InvitationCode.ts +65 -9
- package/generated-sqlite/models/NotificationPreference.ts +1313 -0
- package/generated-sqlite/models/OAuthProviderConfig.ts +1225 -0
- package/generated-sqlite/models/PageVersion.ts +0 -8
- package/generated-sqlite/models/Plan.ts +115 -1
- package/generated-sqlite/models/SandboxInstance.ts +1283 -0
- package/generated-sqlite/models/SystemPromptTemplate.ts +1581 -0
- package/generated-sqlite/models/SystemPromptVersion.ts +1456 -0
- package/generated-sqlite/models/User.ts +5345 -701
- package/generated-sqlite/models/UserAgent.ts +250 -1
- package/generated-sqlite/models/Workspace.ts +3 -1
- package/generated-sqlite/models/WorkspaceFile.ts +1532 -0
- package/generated-sqlite/models.ts +18 -0
- package/get-prisma.ts +6 -0
- package/index.ts +11 -6
- package/migrations/20260911120000_add_pgvector_tables/migration.sql +28 -0
- package/migrations/20260911171433_email_auth_invitation/migration.sql +80 -0
- package/migrations/20260912032616_email_p4_p8/migration.sql +42 -0
- package/migrations/20260914002427_ai_p0_durable_runs_meta/migration.sql +15 -0
- package/migrations/20260914041010_ai_p0_interrupt_requested_at/migration.sql +15 -0
- package/migrations/20260914041909_ai_p0_message_tool_call_id/migration.sql +2 -0
- package/migrations/20260914042448_ai_p0_message_content_json/migration.sql +27 -0
- package/migrations/20260914150229_harness_plugin/migration.sql +27 -0
- package/migrations/20260914174404_prompt_platform_agents/migration.sql +67 -0
- package/migrations/20260915090000_add_memory_facts/migration.sql +22 -0
- package/migrations/20260915124417_ai_p3_sandbox_durable/migration.sql +48 -0
- package/migrations/20260915150034_sandbox_instance_updatedat_bigint/migration.sql +2 -0
- package/migrations/20260915154000_add_code_snippets/migration.sql +31 -0
- package/migrations/20260916090000_ai_usage_log_nullable_workspace/migration.sql +10 -0
- package/migrations/20260916192752_add_ai_source_mode/migration.sql +13 -0
- package/migrations/20260917044512_harness_workspace/migration.sql +47 -0
- package/migrations/20260917100000_add_media_plan_limits/migration.sql +3 -0
- package/migrations/20260917163433_add_generation_run_linked_target/migration.sql +2 -0
- package/migrations/20260920050606_add_blob_table/migration.sql +17 -0
- package/migrations/20260920093412_add_byteplus_voice_fields/migration.sql +3 -0
- package/package.json +8 -3
- package/schema.prisma +413 -99
- package/schema.sqlite.prisma +865 -543
|
@@ -43,6 +43,8 @@ export type InvitationCodeMinAggregateOutputType = {
|
|
|
43
43
|
usedCount: number | null
|
|
44
44
|
expiresAt: Date | null
|
|
45
45
|
createdAt: Date | null
|
|
46
|
+
createdById: string | null
|
|
47
|
+
disabledAt: Date | null
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
export type InvitationCodeMaxAggregateOutputType = {
|
|
@@ -52,6 +54,8 @@ export type InvitationCodeMaxAggregateOutputType = {
|
|
|
52
54
|
usedCount: number | null
|
|
53
55
|
expiresAt: Date | null
|
|
54
56
|
createdAt: Date | null
|
|
57
|
+
createdById: string | null
|
|
58
|
+
disabledAt: Date | null
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
export type InvitationCodeCountAggregateOutputType = {
|
|
@@ -61,6 +65,8 @@ export type InvitationCodeCountAggregateOutputType = {
|
|
|
61
65
|
usedCount: number
|
|
62
66
|
expiresAt: number
|
|
63
67
|
createdAt: number
|
|
68
|
+
createdById: number
|
|
69
|
+
disabledAt: number
|
|
64
70
|
_all: number
|
|
65
71
|
}
|
|
66
72
|
|
|
@@ -82,6 +88,8 @@ export type InvitationCodeMinAggregateInputType = {
|
|
|
82
88
|
usedCount?: true
|
|
83
89
|
expiresAt?: true
|
|
84
90
|
createdAt?: true
|
|
91
|
+
createdById?: true
|
|
92
|
+
disabledAt?: true
|
|
85
93
|
}
|
|
86
94
|
|
|
87
95
|
export type InvitationCodeMaxAggregateInputType = {
|
|
@@ -91,6 +99,8 @@ export type InvitationCodeMaxAggregateInputType = {
|
|
|
91
99
|
usedCount?: true
|
|
92
100
|
expiresAt?: true
|
|
93
101
|
createdAt?: true
|
|
102
|
+
createdById?: true
|
|
103
|
+
disabledAt?: true
|
|
94
104
|
}
|
|
95
105
|
|
|
96
106
|
export type InvitationCodeCountAggregateInputType = {
|
|
@@ -100,6 +110,8 @@ export type InvitationCodeCountAggregateInputType = {
|
|
|
100
110
|
usedCount?: true
|
|
101
111
|
expiresAt?: true
|
|
102
112
|
createdAt?: true
|
|
113
|
+
createdById?: true
|
|
114
|
+
disabledAt?: true
|
|
103
115
|
_all?: true
|
|
104
116
|
}
|
|
105
117
|
|
|
@@ -196,6 +208,8 @@ export type InvitationCodeGroupByOutputType = {
|
|
|
196
208
|
usedCount: number
|
|
197
209
|
expiresAt: Date
|
|
198
210
|
createdAt: Date
|
|
211
|
+
createdById: string | null
|
|
212
|
+
disabledAt: Date | null
|
|
199
213
|
_count: InvitationCodeCountAggregateOutputType | null
|
|
200
214
|
_avg: InvitationCodeAvgAggregateOutputType | null
|
|
201
215
|
_sum: InvitationCodeSumAggregateOutputType | null
|
|
@@ -228,6 +242,8 @@ export type InvitationCodeWhereInput = {
|
|
|
228
242
|
usedCount?: Prisma.IntFilter<"InvitationCode"> | number
|
|
229
243
|
expiresAt?: Prisma.DateTimeFilter<"InvitationCode"> | Date | string
|
|
230
244
|
createdAt?: Prisma.DateTimeFilter<"InvitationCode"> | Date | string
|
|
245
|
+
createdById?: Prisma.StringNullableFilter<"InvitationCode"> | string | null
|
|
246
|
+
disabledAt?: Prisma.DateTimeNullableFilter<"InvitationCode"> | Date | string | null
|
|
231
247
|
uses?: Prisma.InvitationUseListRelationFilter
|
|
232
248
|
}
|
|
233
249
|
|
|
@@ -238,6 +254,8 @@ export type InvitationCodeOrderByWithRelationInput = {
|
|
|
238
254
|
usedCount?: Prisma.SortOrder
|
|
239
255
|
expiresAt?: Prisma.SortOrder
|
|
240
256
|
createdAt?: Prisma.SortOrder
|
|
257
|
+
createdById?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
258
|
+
disabledAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
241
259
|
uses?: Prisma.InvitationUseOrderByRelationAggregateInput
|
|
242
260
|
}
|
|
243
261
|
|
|
@@ -251,6 +269,8 @@ export type InvitationCodeWhereUniqueInput = Prisma.AtLeast<{
|
|
|
251
269
|
usedCount?: Prisma.IntFilter<"InvitationCode"> | number
|
|
252
270
|
expiresAt?: Prisma.DateTimeFilter<"InvitationCode"> | Date | string
|
|
253
271
|
createdAt?: Prisma.DateTimeFilter<"InvitationCode"> | Date | string
|
|
272
|
+
createdById?: Prisma.StringNullableFilter<"InvitationCode"> | string | null
|
|
273
|
+
disabledAt?: Prisma.DateTimeNullableFilter<"InvitationCode"> | Date | string | null
|
|
254
274
|
uses?: Prisma.InvitationUseListRelationFilter
|
|
255
275
|
}, "id" | "code">
|
|
256
276
|
|
|
@@ -261,6 +281,8 @@ export type InvitationCodeOrderByWithAggregationInput = {
|
|
|
261
281
|
usedCount?: Prisma.SortOrder
|
|
262
282
|
expiresAt?: Prisma.SortOrder
|
|
263
283
|
createdAt?: Prisma.SortOrder
|
|
284
|
+
createdById?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
285
|
+
disabledAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
264
286
|
_count?: Prisma.InvitationCodeCountOrderByAggregateInput
|
|
265
287
|
_avg?: Prisma.InvitationCodeAvgOrderByAggregateInput
|
|
266
288
|
_max?: Prisma.InvitationCodeMaxOrderByAggregateInput
|
|
@@ -278,6 +300,8 @@ export type InvitationCodeScalarWhereWithAggregatesInput = {
|
|
|
278
300
|
usedCount?: Prisma.IntWithAggregatesFilter<"InvitationCode"> | number
|
|
279
301
|
expiresAt?: Prisma.DateTimeWithAggregatesFilter<"InvitationCode"> | Date | string
|
|
280
302
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"InvitationCode"> | Date | string
|
|
303
|
+
createdById?: Prisma.StringNullableWithAggregatesFilter<"InvitationCode"> | string | null
|
|
304
|
+
disabledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"InvitationCode"> | Date | string | null
|
|
281
305
|
}
|
|
282
306
|
|
|
283
307
|
export type InvitationCodeCreateInput = {
|
|
@@ -287,6 +311,8 @@ export type InvitationCodeCreateInput = {
|
|
|
287
311
|
usedCount?: number
|
|
288
312
|
expiresAt: Date | string
|
|
289
313
|
createdAt?: Date | string
|
|
314
|
+
createdById?: string | null
|
|
315
|
+
disabledAt?: Date | string | null
|
|
290
316
|
uses?: Prisma.InvitationUseCreateNestedManyWithoutCodeInput
|
|
291
317
|
}
|
|
292
318
|
|
|
@@ -297,6 +323,8 @@ export type InvitationCodeUncheckedCreateInput = {
|
|
|
297
323
|
usedCount?: number
|
|
298
324
|
expiresAt: Date | string
|
|
299
325
|
createdAt?: Date | string
|
|
326
|
+
createdById?: string | null
|
|
327
|
+
disabledAt?: Date | string | null
|
|
300
328
|
uses?: Prisma.InvitationUseUncheckedCreateNestedManyWithoutCodeInput
|
|
301
329
|
}
|
|
302
330
|
|
|
@@ -307,6 +335,8 @@ export type InvitationCodeUpdateInput = {
|
|
|
307
335
|
usedCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
308
336
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
309
337
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
338
|
+
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
339
|
+
disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
310
340
|
uses?: Prisma.InvitationUseUpdateManyWithoutCodeNestedInput
|
|
311
341
|
}
|
|
312
342
|
|
|
@@ -317,6 +347,8 @@ export type InvitationCodeUncheckedUpdateInput = {
|
|
|
317
347
|
usedCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
318
348
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
319
349
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
350
|
+
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
351
|
+
disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
320
352
|
uses?: Prisma.InvitationUseUncheckedUpdateManyWithoutCodeNestedInput
|
|
321
353
|
}
|
|
322
354
|
|
|
@@ -327,6 +359,8 @@ export type InvitationCodeCreateManyInput = {
|
|
|
327
359
|
usedCount?: number
|
|
328
360
|
expiresAt: Date | string
|
|
329
361
|
createdAt?: Date | string
|
|
362
|
+
createdById?: string | null
|
|
363
|
+
disabledAt?: Date | string | null
|
|
330
364
|
}
|
|
331
365
|
|
|
332
366
|
export type InvitationCodeUpdateManyMutationInput = {
|
|
@@ -336,6 +370,8 @@ export type InvitationCodeUpdateManyMutationInput = {
|
|
|
336
370
|
usedCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
337
371
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
338
372
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
373
|
+
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
374
|
+
disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
339
375
|
}
|
|
340
376
|
|
|
341
377
|
export type InvitationCodeUncheckedUpdateManyInput = {
|
|
@@ -345,6 +381,8 @@ export type InvitationCodeUncheckedUpdateManyInput = {
|
|
|
345
381
|
usedCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
346
382
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
347
383
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
384
|
+
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
385
|
+
disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
348
386
|
}
|
|
349
387
|
|
|
350
388
|
export type InvitationCodeCountOrderByAggregateInput = {
|
|
@@ -354,6 +392,8 @@ export type InvitationCodeCountOrderByAggregateInput = {
|
|
|
354
392
|
usedCount?: Prisma.SortOrder
|
|
355
393
|
expiresAt?: Prisma.SortOrder
|
|
356
394
|
createdAt?: Prisma.SortOrder
|
|
395
|
+
createdById?: Prisma.SortOrder
|
|
396
|
+
disabledAt?: Prisma.SortOrder
|
|
357
397
|
}
|
|
358
398
|
|
|
359
399
|
export type InvitationCodeAvgOrderByAggregateInput = {
|
|
@@ -368,6 +408,8 @@ export type InvitationCodeMaxOrderByAggregateInput = {
|
|
|
368
408
|
usedCount?: Prisma.SortOrder
|
|
369
409
|
expiresAt?: Prisma.SortOrder
|
|
370
410
|
createdAt?: Prisma.SortOrder
|
|
411
|
+
createdById?: Prisma.SortOrder
|
|
412
|
+
disabledAt?: Prisma.SortOrder
|
|
371
413
|
}
|
|
372
414
|
|
|
373
415
|
export type InvitationCodeMinOrderByAggregateInput = {
|
|
@@ -377,6 +419,8 @@ export type InvitationCodeMinOrderByAggregateInput = {
|
|
|
377
419
|
usedCount?: Prisma.SortOrder
|
|
378
420
|
expiresAt?: Prisma.SortOrder
|
|
379
421
|
createdAt?: Prisma.SortOrder
|
|
422
|
+
createdById?: Prisma.SortOrder
|
|
423
|
+
disabledAt?: Prisma.SortOrder
|
|
380
424
|
}
|
|
381
425
|
|
|
382
426
|
export type InvitationCodeSumOrderByAggregateInput = {
|
|
@@ -389,14 +433,6 @@ export type InvitationCodeScalarRelationFilter = {
|
|
|
389
433
|
isNot?: Prisma.InvitationCodeWhereInput
|
|
390
434
|
}
|
|
391
435
|
|
|
392
|
-
export type IntFieldUpdateOperationsInput = {
|
|
393
|
-
set?: number
|
|
394
|
-
increment?: number
|
|
395
|
-
decrement?: number
|
|
396
|
-
multiply?: number
|
|
397
|
-
divide?: number
|
|
398
|
-
}
|
|
399
|
-
|
|
400
436
|
export type InvitationCodeCreateNestedOneWithoutUsesInput = {
|
|
401
437
|
create?: Prisma.XOR<Prisma.InvitationCodeCreateWithoutUsesInput, Prisma.InvitationCodeUncheckedCreateWithoutUsesInput>
|
|
402
438
|
connectOrCreate?: Prisma.InvitationCodeCreateOrConnectWithoutUsesInput
|
|
@@ -418,6 +454,8 @@ export type InvitationCodeCreateWithoutUsesInput = {
|
|
|
418
454
|
usedCount?: number
|
|
419
455
|
expiresAt: Date | string
|
|
420
456
|
createdAt?: Date | string
|
|
457
|
+
createdById?: string | null
|
|
458
|
+
disabledAt?: Date | string | null
|
|
421
459
|
}
|
|
422
460
|
|
|
423
461
|
export type InvitationCodeUncheckedCreateWithoutUsesInput = {
|
|
@@ -427,6 +465,8 @@ export type InvitationCodeUncheckedCreateWithoutUsesInput = {
|
|
|
427
465
|
usedCount?: number
|
|
428
466
|
expiresAt: Date | string
|
|
429
467
|
createdAt?: Date | string
|
|
468
|
+
createdById?: string | null
|
|
469
|
+
disabledAt?: Date | string | null
|
|
430
470
|
}
|
|
431
471
|
|
|
432
472
|
export type InvitationCodeCreateOrConnectWithoutUsesInput = {
|
|
@@ -452,6 +492,8 @@ export type InvitationCodeUpdateWithoutUsesInput = {
|
|
|
452
492
|
usedCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
453
493
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
454
494
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
495
|
+
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
496
|
+
disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
455
497
|
}
|
|
456
498
|
|
|
457
499
|
export type InvitationCodeUncheckedUpdateWithoutUsesInput = {
|
|
@@ -461,6 +503,8 @@ export type InvitationCodeUncheckedUpdateWithoutUsesInput = {
|
|
|
461
503
|
usedCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
462
504
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
463
505
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
506
|
+
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
507
|
+
disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
464
508
|
}
|
|
465
509
|
|
|
466
510
|
|
|
@@ -501,6 +545,8 @@ export type InvitationCodeSelect<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
501
545
|
usedCount?: boolean
|
|
502
546
|
expiresAt?: boolean
|
|
503
547
|
createdAt?: boolean
|
|
548
|
+
createdById?: boolean
|
|
549
|
+
disabledAt?: boolean
|
|
504
550
|
uses?: boolean | Prisma.InvitationCode$usesArgs<ExtArgs>
|
|
505
551
|
_count?: boolean | Prisma.InvitationCodeCountOutputTypeDefaultArgs<ExtArgs>
|
|
506
552
|
}, ExtArgs["result"]["invitationCode"]>
|
|
@@ -512,6 +558,8 @@ export type InvitationCodeSelectCreateManyAndReturn<ExtArgs extends runtime.Type
|
|
|
512
558
|
usedCount?: boolean
|
|
513
559
|
expiresAt?: boolean
|
|
514
560
|
createdAt?: boolean
|
|
561
|
+
createdById?: boolean
|
|
562
|
+
disabledAt?: boolean
|
|
515
563
|
}, ExtArgs["result"]["invitationCode"]>
|
|
516
564
|
|
|
517
565
|
export type InvitationCodeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
@@ -521,6 +569,8 @@ export type InvitationCodeSelectUpdateManyAndReturn<ExtArgs extends runtime.Type
|
|
|
521
569
|
usedCount?: boolean
|
|
522
570
|
expiresAt?: boolean
|
|
523
571
|
createdAt?: boolean
|
|
572
|
+
createdById?: boolean
|
|
573
|
+
disabledAt?: boolean
|
|
524
574
|
}, ExtArgs["result"]["invitationCode"]>
|
|
525
575
|
|
|
526
576
|
export type InvitationCodeSelectScalar = {
|
|
@@ -530,9 +580,11 @@ export type InvitationCodeSelectScalar = {
|
|
|
530
580
|
usedCount?: boolean
|
|
531
581
|
expiresAt?: boolean
|
|
532
582
|
createdAt?: boolean
|
|
583
|
+
createdById?: boolean
|
|
584
|
+
disabledAt?: boolean
|
|
533
585
|
}
|
|
534
586
|
|
|
535
|
-
export type InvitationCodeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "maxUses" | "usedCount" | "expiresAt" | "createdAt", ExtArgs["result"]["invitationCode"]>
|
|
587
|
+
export type InvitationCodeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "maxUses" | "usedCount" | "expiresAt" | "createdAt" | "createdById" | "disabledAt", ExtArgs["result"]["invitationCode"]>
|
|
536
588
|
export type InvitationCodeInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
537
589
|
uses?: boolean | Prisma.InvitationCode$usesArgs<ExtArgs>
|
|
538
590
|
_count?: boolean | Prisma.InvitationCodeCountOutputTypeDefaultArgs<ExtArgs>
|
|
@@ -552,6 +604,8 @@ export type $InvitationCodePayload<ExtArgs extends runtime.Types.Extensions.Inte
|
|
|
552
604
|
usedCount: number
|
|
553
605
|
expiresAt: Date
|
|
554
606
|
createdAt: Date
|
|
607
|
+
createdById: string | null
|
|
608
|
+
disabledAt: Date | null
|
|
555
609
|
}, ExtArgs["result"]["invitationCode"]>
|
|
556
610
|
composites: {}
|
|
557
611
|
}
|
|
@@ -982,6 +1036,8 @@ export interface InvitationCodeFieldRefs {
|
|
|
982
1036
|
readonly usedCount: Prisma.FieldRef<"InvitationCode", 'Int'>
|
|
983
1037
|
readonly expiresAt: Prisma.FieldRef<"InvitationCode", 'DateTime'>
|
|
984
1038
|
readonly createdAt: Prisma.FieldRef<"InvitationCode", 'DateTime'>
|
|
1039
|
+
readonly createdById: Prisma.FieldRef<"InvitationCode", 'String'>
|
|
1040
|
+
readonly disabledAt: Prisma.FieldRef<"InvitationCode", 'DateTime'>
|
|
985
1041
|
}
|
|
986
1042
|
|
|
987
1043
|
|
|
@@ -41,6 +41,7 @@ export type NotificationPreferenceMaxAggregateOutputType = {
|
|
|
41
41
|
export type NotificationPreferenceCountAggregateOutputType = {
|
|
42
42
|
userId: number
|
|
43
43
|
categories: number
|
|
44
|
+
emailCategories: number
|
|
44
45
|
dndEnabled: number
|
|
45
46
|
dndStart: number
|
|
46
47
|
dndEnd: number
|
|
@@ -65,6 +66,7 @@ export type NotificationPreferenceMaxAggregateInputType = {
|
|
|
65
66
|
export type NotificationPreferenceCountAggregateInputType = {
|
|
66
67
|
userId?: true
|
|
67
68
|
categories?: true
|
|
69
|
+
emailCategories?: true
|
|
68
70
|
dndEnabled?: true
|
|
69
71
|
dndStart?: true
|
|
70
72
|
dndEnd?: true
|
|
@@ -146,6 +148,7 @@ export type NotificationPreferenceGroupByArgs<ExtArgs extends runtime.Types.Exte
|
|
|
146
148
|
export type NotificationPreferenceGroupByOutputType = {
|
|
147
149
|
userId: string
|
|
148
150
|
categories: runtime.JsonValue
|
|
151
|
+
emailCategories: runtime.JsonValue
|
|
149
152
|
dndEnabled: boolean
|
|
150
153
|
dndStart: string
|
|
151
154
|
dndEnd: string
|
|
@@ -175,6 +178,7 @@ export type NotificationPreferenceWhereInput = {
|
|
|
175
178
|
NOT?: Prisma.NotificationPreferenceWhereInput | Prisma.NotificationPreferenceWhereInput[]
|
|
176
179
|
userId?: Prisma.StringFilter<"NotificationPreference"> | string
|
|
177
180
|
categories?: Prisma.JsonFilter<"NotificationPreference">
|
|
181
|
+
emailCategories?: Prisma.JsonFilter<"NotificationPreference">
|
|
178
182
|
dndEnabled?: Prisma.BoolFilter<"NotificationPreference"> | boolean
|
|
179
183
|
dndStart?: Prisma.StringFilter<"NotificationPreference"> | string
|
|
180
184
|
dndEnd?: Prisma.StringFilter<"NotificationPreference"> | string
|
|
@@ -184,6 +188,7 @@ export type NotificationPreferenceWhereInput = {
|
|
|
184
188
|
export type NotificationPreferenceOrderByWithRelationInput = {
|
|
185
189
|
userId?: Prisma.SortOrder
|
|
186
190
|
categories?: Prisma.SortOrder
|
|
191
|
+
emailCategories?: Prisma.SortOrder
|
|
187
192
|
dndEnabled?: Prisma.SortOrder
|
|
188
193
|
dndStart?: Prisma.SortOrder
|
|
189
194
|
dndEnd?: Prisma.SortOrder
|
|
@@ -196,6 +201,7 @@ export type NotificationPreferenceWhereUniqueInput = Prisma.AtLeast<{
|
|
|
196
201
|
OR?: Prisma.NotificationPreferenceWhereInput[]
|
|
197
202
|
NOT?: Prisma.NotificationPreferenceWhereInput | Prisma.NotificationPreferenceWhereInput[]
|
|
198
203
|
categories?: Prisma.JsonFilter<"NotificationPreference">
|
|
204
|
+
emailCategories?: Prisma.JsonFilter<"NotificationPreference">
|
|
199
205
|
dndEnabled?: Prisma.BoolFilter<"NotificationPreference"> | boolean
|
|
200
206
|
dndStart?: Prisma.StringFilter<"NotificationPreference"> | string
|
|
201
207
|
dndEnd?: Prisma.StringFilter<"NotificationPreference"> | string
|
|
@@ -205,6 +211,7 @@ export type NotificationPreferenceWhereUniqueInput = Prisma.AtLeast<{
|
|
|
205
211
|
export type NotificationPreferenceOrderByWithAggregationInput = {
|
|
206
212
|
userId?: Prisma.SortOrder
|
|
207
213
|
categories?: Prisma.SortOrder
|
|
214
|
+
emailCategories?: Prisma.SortOrder
|
|
208
215
|
dndEnabled?: Prisma.SortOrder
|
|
209
216
|
dndStart?: Prisma.SortOrder
|
|
210
217
|
dndEnd?: Prisma.SortOrder
|
|
@@ -219,6 +226,7 @@ export type NotificationPreferenceScalarWhereWithAggregatesInput = {
|
|
|
219
226
|
NOT?: Prisma.NotificationPreferenceScalarWhereWithAggregatesInput | Prisma.NotificationPreferenceScalarWhereWithAggregatesInput[]
|
|
220
227
|
userId?: Prisma.StringWithAggregatesFilter<"NotificationPreference"> | string
|
|
221
228
|
categories?: Prisma.JsonWithAggregatesFilter<"NotificationPreference">
|
|
229
|
+
emailCategories?: Prisma.JsonWithAggregatesFilter<"NotificationPreference">
|
|
222
230
|
dndEnabled?: Prisma.BoolWithAggregatesFilter<"NotificationPreference"> | boolean
|
|
223
231
|
dndStart?: Prisma.StringWithAggregatesFilter<"NotificationPreference"> | string
|
|
224
232
|
dndEnd?: Prisma.StringWithAggregatesFilter<"NotificationPreference"> | string
|
|
@@ -226,6 +234,7 @@ export type NotificationPreferenceScalarWhereWithAggregatesInput = {
|
|
|
226
234
|
|
|
227
235
|
export type NotificationPreferenceCreateInput = {
|
|
228
236
|
categories: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
237
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
229
238
|
dndEnabled?: boolean
|
|
230
239
|
dndStart?: string
|
|
231
240
|
dndEnd?: string
|
|
@@ -235,6 +244,7 @@ export type NotificationPreferenceCreateInput = {
|
|
|
235
244
|
export type NotificationPreferenceUncheckedCreateInput = {
|
|
236
245
|
userId: string
|
|
237
246
|
categories: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
247
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
238
248
|
dndEnabled?: boolean
|
|
239
249
|
dndStart?: string
|
|
240
250
|
dndEnd?: string
|
|
@@ -242,6 +252,7 @@ export type NotificationPreferenceUncheckedCreateInput = {
|
|
|
242
252
|
|
|
243
253
|
export type NotificationPreferenceUpdateInput = {
|
|
244
254
|
categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
255
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
245
256
|
dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
246
257
|
dndStart?: Prisma.StringFieldUpdateOperationsInput | string
|
|
247
258
|
dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
|
|
@@ -251,6 +262,7 @@ export type NotificationPreferenceUpdateInput = {
|
|
|
251
262
|
export type NotificationPreferenceUncheckedUpdateInput = {
|
|
252
263
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
253
264
|
categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
265
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
254
266
|
dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
255
267
|
dndStart?: Prisma.StringFieldUpdateOperationsInput | string
|
|
256
268
|
dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
|
|
@@ -259,6 +271,7 @@ export type NotificationPreferenceUncheckedUpdateInput = {
|
|
|
259
271
|
export type NotificationPreferenceCreateManyInput = {
|
|
260
272
|
userId: string
|
|
261
273
|
categories: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
274
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
262
275
|
dndEnabled?: boolean
|
|
263
276
|
dndStart?: string
|
|
264
277
|
dndEnd?: string
|
|
@@ -266,6 +279,7 @@ export type NotificationPreferenceCreateManyInput = {
|
|
|
266
279
|
|
|
267
280
|
export type NotificationPreferenceUpdateManyMutationInput = {
|
|
268
281
|
categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
282
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
269
283
|
dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
270
284
|
dndStart?: Prisma.StringFieldUpdateOperationsInput | string
|
|
271
285
|
dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
|
|
@@ -274,6 +288,7 @@ export type NotificationPreferenceUpdateManyMutationInput = {
|
|
|
274
288
|
export type NotificationPreferenceUncheckedUpdateManyInput = {
|
|
275
289
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
276
290
|
categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
291
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
277
292
|
dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
278
293
|
dndStart?: Prisma.StringFieldUpdateOperationsInput | string
|
|
279
294
|
dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
|
|
@@ -287,6 +302,7 @@ export type NotificationPreferenceNullableScalarRelationFilter = {
|
|
|
287
302
|
export type NotificationPreferenceCountOrderByAggregateInput = {
|
|
288
303
|
userId?: Prisma.SortOrder
|
|
289
304
|
categories?: Prisma.SortOrder
|
|
305
|
+
emailCategories?: Prisma.SortOrder
|
|
290
306
|
dndEnabled?: Prisma.SortOrder
|
|
291
307
|
dndStart?: Prisma.SortOrder
|
|
292
308
|
dndEnd?: Prisma.SortOrder
|
|
@@ -340,6 +356,7 @@ export type NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput = {
|
|
|
340
356
|
|
|
341
357
|
export type NotificationPreferenceCreateWithoutUserInput = {
|
|
342
358
|
categories: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
359
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
343
360
|
dndEnabled?: boolean
|
|
344
361
|
dndStart?: string
|
|
345
362
|
dndEnd?: string
|
|
@@ -347,6 +364,7 @@ export type NotificationPreferenceCreateWithoutUserInput = {
|
|
|
347
364
|
|
|
348
365
|
export type NotificationPreferenceUncheckedCreateWithoutUserInput = {
|
|
349
366
|
categories: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
367
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
350
368
|
dndEnabled?: boolean
|
|
351
369
|
dndStart?: string
|
|
352
370
|
dndEnd?: string
|
|
@@ -370,6 +388,7 @@ export type NotificationPreferenceUpdateToOneWithWhereWithoutUserInput = {
|
|
|
370
388
|
|
|
371
389
|
export type NotificationPreferenceUpdateWithoutUserInput = {
|
|
372
390
|
categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
391
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
373
392
|
dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
374
393
|
dndStart?: Prisma.StringFieldUpdateOperationsInput | string
|
|
375
394
|
dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
|
|
@@ -377,6 +396,7 @@ export type NotificationPreferenceUpdateWithoutUserInput = {
|
|
|
377
396
|
|
|
378
397
|
export type NotificationPreferenceUncheckedUpdateWithoutUserInput = {
|
|
379
398
|
categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
399
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
380
400
|
dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
381
401
|
dndStart?: Prisma.StringFieldUpdateOperationsInput | string
|
|
382
402
|
dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
|
|
@@ -387,6 +407,7 @@ export type NotificationPreferenceUncheckedUpdateWithoutUserInput = {
|
|
|
387
407
|
export type NotificationPreferenceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
388
408
|
userId?: boolean
|
|
389
409
|
categories?: boolean
|
|
410
|
+
emailCategories?: boolean
|
|
390
411
|
dndEnabled?: boolean
|
|
391
412
|
dndStart?: boolean
|
|
392
413
|
dndEnd?: boolean
|
|
@@ -396,6 +417,7 @@ export type NotificationPreferenceSelect<ExtArgs extends runtime.Types.Extension
|
|
|
396
417
|
export type NotificationPreferenceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
397
418
|
userId?: boolean
|
|
398
419
|
categories?: boolean
|
|
420
|
+
emailCategories?: boolean
|
|
399
421
|
dndEnabled?: boolean
|
|
400
422
|
dndStart?: boolean
|
|
401
423
|
dndEnd?: boolean
|
|
@@ -405,6 +427,7 @@ export type NotificationPreferenceSelectCreateManyAndReturn<ExtArgs extends runt
|
|
|
405
427
|
export type NotificationPreferenceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
406
428
|
userId?: boolean
|
|
407
429
|
categories?: boolean
|
|
430
|
+
emailCategories?: boolean
|
|
408
431
|
dndEnabled?: boolean
|
|
409
432
|
dndStart?: boolean
|
|
410
433
|
dndEnd?: boolean
|
|
@@ -414,12 +437,13 @@ export type NotificationPreferenceSelectUpdateManyAndReturn<ExtArgs extends runt
|
|
|
414
437
|
export type NotificationPreferenceSelectScalar = {
|
|
415
438
|
userId?: boolean
|
|
416
439
|
categories?: boolean
|
|
440
|
+
emailCategories?: boolean
|
|
417
441
|
dndEnabled?: boolean
|
|
418
442
|
dndStart?: boolean
|
|
419
443
|
dndEnd?: boolean
|
|
420
444
|
}
|
|
421
445
|
|
|
422
|
-
export type NotificationPreferenceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"userId" | "categories" | "dndEnabled" | "dndStart" | "dndEnd", ExtArgs["result"]["notificationPreference"]>
|
|
446
|
+
export type NotificationPreferenceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"userId" | "categories" | "emailCategories" | "dndEnabled" | "dndStart" | "dndEnd", ExtArgs["result"]["notificationPreference"]>
|
|
423
447
|
export type NotificationPreferenceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
424
448
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
425
449
|
}
|
|
@@ -438,6 +462,7 @@ export type $NotificationPreferencePayload<ExtArgs extends runtime.Types.Extensi
|
|
|
438
462
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
439
463
|
userId: string
|
|
440
464
|
categories: runtime.JsonValue
|
|
465
|
+
emailCategories: runtime.JsonValue
|
|
441
466
|
dndEnabled: boolean
|
|
442
467
|
dndStart: string
|
|
443
468
|
dndEnd: string
|
|
@@ -867,6 +892,7 @@ export interface Prisma__NotificationPreferenceClient<T, Null = never, ExtArgs e
|
|
|
867
892
|
export interface NotificationPreferenceFieldRefs {
|
|
868
893
|
readonly userId: Prisma.FieldRef<"NotificationPreference", 'String'>
|
|
869
894
|
readonly categories: Prisma.FieldRef<"NotificationPreference", 'Json'>
|
|
895
|
+
readonly emailCategories: Prisma.FieldRef<"NotificationPreference", 'Json'>
|
|
870
896
|
readonly dndEnabled: Prisma.FieldRef<"NotificationPreference", 'Boolean'>
|
|
871
897
|
readonly dndStart: Prisma.FieldRef<"NotificationPreference", 'String'>
|
|
872
898
|
readonly dndEnd: Prisma.FieldRef<"NotificationPreference", 'String'>
|