@allbluecn/database 0.9.1 → 0.9.2
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/desktop-init.ts +2 -2
- package/dist/lib/share-utils.js +3 -3
- package/generated/browser.ts +115 -25
- package/generated/client.ts +115 -25
- package/generated/commonInputTypes.ts +34 -0
- package/generated/enums.ts +14 -0
- package/generated/internal/class.ts +234 -54
- package/generated/internal/prismaNamespace.ts +2190 -511
- package/generated/internal/prismaNamespaceBrowser.ts +391 -76
- package/generated/models/AgentConversation.ts +89 -89
- package/generated/models/AiProvider.ts +3 -3
- package/generated/models/AiStreamChunk.ts +3 -3
- package/generated/models/AnyHubMarketApp.ts +8 -8
- package/generated/models/AuditLog.ts +6 -6
- package/generated/models/BlockInstance.ts +17 -17
- package/generated/models/Bug.ts +5023 -0
- package/generated/models/BugActivity.ts +1765 -0
- package/generated/models/BugComment.ts +1853 -0
- package/generated/models/BugEvent.ts +1339 -0
- package/generated/models/BugFilterView.ts +1438 -0
- package/generated/models/BugFixRun.ts +1479 -0
- package/generated/models/BugLabel.ts +1349 -0
- package/generated/models/BugProjectSettings.ts +1403 -0
- package/generated/models/BugReproRun.ts +1582 -0
- package/generated/models/ChatPersistenceMeta.ts +3 -3
- package/generated/models/Comment.ts +99 -99
- package/generated/models/Component.ts +9 -9
- package/generated/models/ComponentInstance.ts +17 -17
- package/generated/models/CustomRole.ts +8 -8
- package/generated/models/Design.ts +2872 -0
- package/generated/models/DesignPage.ts +2402 -0
- package/generated/models/DesignTag.ts +1430 -0
- package/generated/models/DesignVersion.ts +2121 -0
- package/generated/models/DesktopSetting.ts +3 -3
- package/generated/models/Iteration.ts +148 -0
- package/generated/models/Label.ts +118 -0
- package/generated/models/LicenseKey.ts +16 -16
- package/generated/models/NotificationPreference.ts +5 -5
- package/generated/models/PageVersion.ts +49 -49
- package/generated/models/Plan.ts +5 -5
- package/generated/models/Project.ts +1970 -58
- package/generated/models/ProjectAccessToken.ts +1705 -0
- package/generated/models/ProjectWebhook.ts +1409 -0
- package/generated/models/Review.ts +118 -118
- package/generated/models/Share.ts +83 -83
- package/generated/models/ShareVersion.ts +15 -15
- package/generated/models/SsoProvider.ts +8 -8
- package/generated/models/Story.ts +973 -87
- package/generated/models/StoryDesignLink.ts +1430 -0
- package/generated/models/StoryFilterView.ts +12 -12
- package/generated/models/SystemPromptVersion.ts +6 -6
- package/generated/models/Tag.ts +49 -49
- package/generated/models/TestAutomationArtifact.ts +1790 -0
- package/generated/models/TestCase.ts +3568 -0
- package/generated/models/TestCaseFilterView.ts +1587 -0
- package/generated/models/TestCaseFolder.ts +1795 -0
- package/generated/models/TestExecRun.ts +1673 -0
- package/generated/models/TestGenerationRun.ts +1952 -0
- package/generated/models/TestPlan.ts +1950 -0
- package/generated/models/TestPlanCase.ts +1430 -0
- package/generated/models/TestRun.ts +1979 -0
- package/generated/models/TestRunCase.ts +2772 -0
- package/generated/models/ThirdPartyDependency.ts +19 -15
- package/generated/models/User.ts +12141 -2721
- package/generated/models.ts +26 -8
- package/generated-sqlite/browser.ts +8 -23
- package/generated-sqlite/client.ts +8 -23
- package/generated-sqlite/internal/class.ts +20 -50
- package/generated-sqlite/internal/prismaNamespace.ts +166 -437
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +25 -71
- package/generated-sqlite/models/AgentConversation.ts +89 -89
- package/generated-sqlite/models/AiProvider.ts +3 -3
- package/generated-sqlite/models/AiStreamChunk.ts +3 -3
- package/generated-sqlite/models/AnyHubMarketApp.ts +8 -8
- package/generated-sqlite/models/BlockInstance.ts +17 -17
- package/generated-sqlite/models/ChatPersistenceMeta.ts +3 -3
- package/generated-sqlite/models/Comment.ts +99 -99
- package/generated-sqlite/models/Component.ts +9 -9
- package/generated-sqlite/models/ComponentInstance.ts +17 -17
- package/generated-sqlite/models/Design.ts +2679 -0
- package/generated-sqlite/models/DesignPage.ts +2398 -0
- package/generated-sqlite/models/DesignTag.ts +1426 -0
- package/generated-sqlite/models/DesignVersion.ts +2117 -0
- package/generated-sqlite/models/DesktopSetting.ts +3 -3
- package/generated-sqlite/models/KnowledgeBase.ts +240 -1
- package/generated-sqlite/models/NotificationPreference.ts +5 -5
- package/generated-sqlite/models/PageVersion.ts +49 -49
- package/generated-sqlite/models/Review.ts +118 -118
- package/generated-sqlite/models/Share.ts +83 -83
- package/generated-sqlite/models/ShareVersion.ts +15 -15
- package/generated-sqlite/models/SystemPromptVersion.ts +6 -6
- package/generated-sqlite/models/Tag.ts +49 -49
- package/generated-sqlite/models/User.ts +1201 -1321
- package/generated-sqlite/models/Workspace.ts +164 -0
- package/generated-sqlite/models.ts +4 -7
- package/index.ts +17 -3
- package/migrations/20260924084200_add_prd_kind_drop_design_sketch/migration.sql +24 -0
- package/migrations/20260924123118_drop_user_sketch_api_token/migration.sql +8 -0
- package/migrations/20260925011516_rename_prd_tables/migration.sql +189 -0
- package/migrations/20260925064226_rename_prd_columns/migration.sql +193 -0
- package/migrations/20260925080000_rename_prd_embeddings/migration.sql +43 -0
- package/migrations/20261002184838_bug_module_init/migration.sql +297 -0
- package/migrations/20261004234209_testcase_module_init/migration.sql +290 -0
- package/migrations/20261005090000_testcase_plan_cases/migration.sql +34 -0
- package/migrations/20261006151229_add_missing_fk_indexes_auth_billing/migration.sql +50 -0
- package/migrations/20261006152058_add_missing_fk_indexes_story_bug_test/migration.sql +59 -0
- package/migrations/20261006152153_add_missing_fk_indexes_design_misc/migration.sql +50 -0
- package/migrations/20261006184250_explicit_on_delete_core/migration.sql +33 -0
- package/migrations/20261006184604_explicit_on_delete_rest/migration.sql +117 -0
- package/migrations/20261006184932_json_column_defaults/migration.sql +74 -0
- package/migrations/20261006191724_revert_version_token_cascade/migration.sql +21 -0
- package/migrations/20261007025537_dependency_category_enum/migration.sql +22 -0
- package/package.json +2 -2
- package/schema.prisma +687 -177
- package/schema.sqlite.prisma +149 -151
- package/src/lib/share-utils.ts +2 -2
- package/generated/models/Artboard.ts +0 -1811
- package/generated/models/ArtboardExport.ts +0 -1548
- package/generated/models/DesignProject.ts +0 -1643
- package/generated/models/PRD.ts +0 -2805
- package/generated/models/PRDPage.ts +0 -2402
- package/generated/models/PRDTag.ts +0 -1430
- package/generated/models/PRDVersion.ts +0 -2121
- package/generated/models/StoryPrdLink.ts +0 -1430
- package/generated-sqlite/models/Artboard.ts +0 -1808
- package/generated-sqlite/models/ArtboardExport.ts +0 -1545
- package/generated-sqlite/models/DesignProject.ts +0 -1640
- package/generated-sqlite/models/PRD.ts +0 -2616
- package/generated-sqlite/models/PRDPage.ts +0 -2398
- package/generated-sqlite/models/PRDTag.ts +0 -1426
- package/generated-sqlite/models/PRDVersion.ts +0 -2117
|
@@ -371,13 +371,13 @@ export type LicenseKeyCreateInput = {
|
|
|
371
371
|
id?: string
|
|
372
372
|
key: string
|
|
373
373
|
signature: string
|
|
374
|
-
payload
|
|
374
|
+
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
375
375
|
customerId: string
|
|
376
376
|
customerName: string
|
|
377
377
|
customerEmail: string
|
|
378
378
|
plan?: string
|
|
379
379
|
seats: number
|
|
380
|
-
features
|
|
380
|
+
features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
381
381
|
issuedAt?: Date | string
|
|
382
382
|
expiresAt?: Date | string | null
|
|
383
383
|
revokedAt?: Date | string | null
|
|
@@ -389,13 +389,13 @@ export type LicenseKeyUncheckedCreateInput = {
|
|
|
389
389
|
id?: string
|
|
390
390
|
key: string
|
|
391
391
|
signature: string
|
|
392
|
-
payload
|
|
392
|
+
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
393
393
|
customerId: string
|
|
394
394
|
customerName: string
|
|
395
395
|
customerEmail: string
|
|
396
396
|
plan?: string
|
|
397
397
|
seats: number
|
|
398
|
-
features
|
|
398
|
+
features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
399
399
|
issuedAt?: Date | string
|
|
400
400
|
expiresAt?: Date | string | null
|
|
401
401
|
revokedAt?: Date | string | null
|
|
@@ -443,13 +443,13 @@ export type LicenseKeyCreateManyInput = {
|
|
|
443
443
|
id?: string
|
|
444
444
|
key: string
|
|
445
445
|
signature: string
|
|
446
|
-
payload
|
|
446
|
+
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
447
447
|
customerId: string
|
|
448
448
|
customerName: string
|
|
449
449
|
customerEmail: string
|
|
450
450
|
plan?: string
|
|
451
451
|
seats: number
|
|
452
|
-
features
|
|
452
|
+
features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
453
453
|
issuedAt?: Date | string
|
|
454
454
|
expiresAt?: Date | string | null
|
|
455
455
|
revokedAt?: Date | string | null
|
|
@@ -619,13 +619,13 @@ export type LicenseKeyCreateWithoutIssuedByInput = {
|
|
|
619
619
|
id?: string
|
|
620
620
|
key: string
|
|
621
621
|
signature: string
|
|
622
|
-
payload
|
|
622
|
+
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
623
623
|
customerId: string
|
|
624
624
|
customerName: string
|
|
625
625
|
customerEmail: string
|
|
626
626
|
plan?: string
|
|
627
627
|
seats: number
|
|
628
|
-
features
|
|
628
|
+
features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
629
629
|
issuedAt?: Date | string
|
|
630
630
|
expiresAt?: Date | string | null
|
|
631
631
|
revokedAt?: Date | string | null
|
|
@@ -636,13 +636,13 @@ export type LicenseKeyUncheckedCreateWithoutIssuedByInput = {
|
|
|
636
636
|
id?: string
|
|
637
637
|
key: string
|
|
638
638
|
signature: string
|
|
639
|
-
payload
|
|
639
|
+
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
640
640
|
customerId: string
|
|
641
641
|
customerName: string
|
|
642
642
|
customerEmail: string
|
|
643
643
|
plan?: string
|
|
644
644
|
seats: number
|
|
645
|
-
features
|
|
645
|
+
features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
646
646
|
issuedAt?: Date | string
|
|
647
647
|
expiresAt?: Date | string | null
|
|
648
648
|
revokedAt?: Date | string | null
|
|
@@ -699,13 +699,13 @@ export type LicenseKeyCreateWithoutActivationsInput = {
|
|
|
699
699
|
id?: string
|
|
700
700
|
key: string
|
|
701
701
|
signature: string
|
|
702
|
-
payload
|
|
702
|
+
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
703
703
|
customerId: string
|
|
704
704
|
customerName: string
|
|
705
705
|
customerEmail: string
|
|
706
706
|
plan?: string
|
|
707
707
|
seats: number
|
|
708
|
-
features
|
|
708
|
+
features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
709
709
|
issuedAt?: Date | string
|
|
710
710
|
expiresAt?: Date | string | null
|
|
711
711
|
revokedAt?: Date | string | null
|
|
@@ -716,13 +716,13 @@ export type LicenseKeyUncheckedCreateWithoutActivationsInput = {
|
|
|
716
716
|
id?: string
|
|
717
717
|
key: string
|
|
718
718
|
signature: string
|
|
719
|
-
payload
|
|
719
|
+
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
720
720
|
customerId: string
|
|
721
721
|
customerName: string
|
|
722
722
|
customerEmail: string
|
|
723
723
|
plan?: string
|
|
724
724
|
seats: number
|
|
725
|
-
features
|
|
725
|
+
features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
726
726
|
issuedAt?: Date | string
|
|
727
727
|
expiresAt?: Date | string | null
|
|
728
728
|
revokedAt?: Date | string | null
|
|
@@ -783,13 +783,13 @@ export type LicenseKeyCreateManyIssuedByInput = {
|
|
|
783
783
|
id?: string
|
|
784
784
|
key: string
|
|
785
785
|
signature: string
|
|
786
|
-
payload
|
|
786
|
+
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
787
787
|
customerId: string
|
|
788
788
|
customerName: string
|
|
789
789
|
customerEmail: string
|
|
790
790
|
plan?: string
|
|
791
791
|
seats: number
|
|
792
|
-
features
|
|
792
|
+
features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
793
793
|
issuedAt?: Date | string
|
|
794
794
|
expiresAt?: Date | string | null
|
|
795
795
|
revokedAt?: Date | string | null
|
|
@@ -233,7 +233,7 @@ export type NotificationPreferenceScalarWhereWithAggregatesInput = {
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
export type NotificationPreferenceCreateInput = {
|
|
236
|
-
categories
|
|
236
|
+
categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
237
237
|
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
238
238
|
dndEnabled?: boolean
|
|
239
239
|
dndStart?: string
|
|
@@ -243,7 +243,7 @@ export type NotificationPreferenceCreateInput = {
|
|
|
243
243
|
|
|
244
244
|
export type NotificationPreferenceUncheckedCreateInput = {
|
|
245
245
|
userId: string
|
|
246
|
-
categories
|
|
246
|
+
categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
247
247
|
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
248
248
|
dndEnabled?: boolean
|
|
249
249
|
dndStart?: string
|
|
@@ -270,7 +270,7 @@ export type NotificationPreferenceUncheckedUpdateInput = {
|
|
|
270
270
|
|
|
271
271
|
export type NotificationPreferenceCreateManyInput = {
|
|
272
272
|
userId: string
|
|
273
|
-
categories
|
|
273
|
+
categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
274
274
|
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
275
275
|
dndEnabled?: boolean
|
|
276
276
|
dndStart?: string
|
|
@@ -355,7 +355,7 @@ export type NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput = {
|
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
export type NotificationPreferenceCreateWithoutUserInput = {
|
|
358
|
-
categories
|
|
358
|
+
categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
359
359
|
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
360
360
|
dndEnabled?: boolean
|
|
361
361
|
dndStart?: string
|
|
@@ -363,7 +363,7 @@ export type NotificationPreferenceCreateWithoutUserInput = {
|
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
export type NotificationPreferenceUncheckedCreateWithoutUserInput = {
|
|
366
|
-
categories
|
|
366
|
+
categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
367
367
|
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
368
368
|
dndEnabled?: boolean
|
|
369
369
|
dndStart?: string
|
|
@@ -42,7 +42,7 @@ export type PageVersionMinAggregateOutputType = {
|
|
|
42
42
|
version: number | null
|
|
43
43
|
notes: string | null
|
|
44
44
|
restoredFromVersion: number | null
|
|
45
|
-
|
|
45
|
+
fromDesignVersionId: string | null
|
|
46
46
|
createdAt: Date | null
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -52,7 +52,7 @@ export type PageVersionMaxAggregateOutputType = {
|
|
|
52
52
|
version: number | null
|
|
53
53
|
notes: string | null
|
|
54
54
|
restoredFromVersion: number | null
|
|
55
|
-
|
|
55
|
+
fromDesignVersionId: string | null
|
|
56
56
|
createdAt: Date | null
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -64,7 +64,7 @@ export type PageVersionCountAggregateOutputType = {
|
|
|
64
64
|
canvas: number
|
|
65
65
|
content: number
|
|
66
66
|
restoredFromVersion: number
|
|
67
|
-
|
|
67
|
+
fromDesignVersionId: number
|
|
68
68
|
createdAt: number
|
|
69
69
|
_all: number
|
|
70
70
|
}
|
|
@@ -86,7 +86,7 @@ export type PageVersionMinAggregateInputType = {
|
|
|
86
86
|
version?: true
|
|
87
87
|
notes?: true
|
|
88
88
|
restoredFromVersion?: true
|
|
89
|
-
|
|
89
|
+
fromDesignVersionId?: true
|
|
90
90
|
createdAt?: true
|
|
91
91
|
}
|
|
92
92
|
|
|
@@ -96,7 +96,7 @@ export type PageVersionMaxAggregateInputType = {
|
|
|
96
96
|
version?: true
|
|
97
97
|
notes?: true
|
|
98
98
|
restoredFromVersion?: true
|
|
99
|
-
|
|
99
|
+
fromDesignVersionId?: true
|
|
100
100
|
createdAt?: true
|
|
101
101
|
}
|
|
102
102
|
|
|
@@ -108,7 +108,7 @@ export type PageVersionCountAggregateInputType = {
|
|
|
108
108
|
canvas?: true
|
|
109
109
|
content?: true
|
|
110
110
|
restoredFromVersion?: true
|
|
111
|
-
|
|
111
|
+
fromDesignVersionId?: true
|
|
112
112
|
createdAt?: true
|
|
113
113
|
_all?: true
|
|
114
114
|
}
|
|
@@ -207,7 +207,7 @@ export type PageVersionGroupByOutputType = {
|
|
|
207
207
|
canvas: runtime.JsonValue | null
|
|
208
208
|
content: runtime.JsonValue | null
|
|
209
209
|
restoredFromVersion: number | null
|
|
210
|
-
|
|
210
|
+
fromDesignVersionId: string | null
|
|
211
211
|
createdAt: Date
|
|
212
212
|
_count: PageVersionCountAggregateOutputType | null
|
|
213
213
|
_avg: PageVersionAvgAggregateOutputType | null
|
|
@@ -242,9 +242,9 @@ export type PageVersionWhereInput = {
|
|
|
242
242
|
canvas?: Prisma.JsonNullableFilter<"PageVersion">
|
|
243
243
|
content?: Prisma.JsonNullableFilter<"PageVersion">
|
|
244
244
|
restoredFromVersion?: Prisma.IntNullableFilter<"PageVersion"> | number | null
|
|
245
|
-
|
|
245
|
+
fromDesignVersionId?: Prisma.StringNullableFilter<"PageVersion"> | string | null
|
|
246
246
|
createdAt?: Prisma.DateTimeFilter<"PageVersion"> | Date | string
|
|
247
|
-
page?: Prisma.XOR<Prisma.
|
|
247
|
+
page?: Prisma.XOR<Prisma.DesignPageScalarRelationFilter, Prisma.DesignPageWhereInput>
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
export type PageVersionOrderByWithRelationInput = {
|
|
@@ -255,9 +255,9 @@ export type PageVersionOrderByWithRelationInput = {
|
|
|
255
255
|
canvas?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
256
256
|
content?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
257
257
|
restoredFromVersion?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
258
|
-
|
|
258
|
+
fromDesignVersionId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
259
259
|
createdAt?: Prisma.SortOrder
|
|
260
|
-
page?: Prisma.
|
|
260
|
+
page?: Prisma.DesignPageOrderByWithRelationInput
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
export type PageVersionWhereUniqueInput = Prisma.AtLeast<{
|
|
@@ -271,9 +271,9 @@ export type PageVersionWhereUniqueInput = Prisma.AtLeast<{
|
|
|
271
271
|
canvas?: Prisma.JsonNullableFilter<"PageVersion">
|
|
272
272
|
content?: Prisma.JsonNullableFilter<"PageVersion">
|
|
273
273
|
restoredFromVersion?: Prisma.IntNullableFilter<"PageVersion"> | number | null
|
|
274
|
-
|
|
274
|
+
fromDesignVersionId?: Prisma.StringNullableFilter<"PageVersion"> | string | null
|
|
275
275
|
createdAt?: Prisma.DateTimeFilter<"PageVersion"> | Date | string
|
|
276
|
-
page?: Prisma.XOR<Prisma.
|
|
276
|
+
page?: Prisma.XOR<Prisma.DesignPageScalarRelationFilter, Prisma.DesignPageWhereInput>
|
|
277
277
|
}, "id">
|
|
278
278
|
|
|
279
279
|
export type PageVersionOrderByWithAggregationInput = {
|
|
@@ -284,7 +284,7 @@ export type PageVersionOrderByWithAggregationInput = {
|
|
|
284
284
|
canvas?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
285
285
|
content?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
286
286
|
restoredFromVersion?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
287
|
-
|
|
287
|
+
fromDesignVersionId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
288
288
|
createdAt?: Prisma.SortOrder
|
|
289
289
|
_count?: Prisma.PageVersionCountOrderByAggregateInput
|
|
290
290
|
_avg?: Prisma.PageVersionAvgOrderByAggregateInput
|
|
@@ -304,7 +304,7 @@ export type PageVersionScalarWhereWithAggregatesInput = {
|
|
|
304
304
|
canvas?: Prisma.JsonNullableWithAggregatesFilter<"PageVersion">
|
|
305
305
|
content?: Prisma.JsonNullableWithAggregatesFilter<"PageVersion">
|
|
306
306
|
restoredFromVersion?: Prisma.IntNullableWithAggregatesFilter<"PageVersion"> | number | null
|
|
307
|
-
|
|
307
|
+
fromDesignVersionId?: Prisma.StringNullableWithAggregatesFilter<"PageVersion"> | string | null
|
|
308
308
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"PageVersion"> | Date | string
|
|
309
309
|
}
|
|
310
310
|
|
|
@@ -315,9 +315,9 @@ export type PageVersionCreateInput = {
|
|
|
315
315
|
canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
316
316
|
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
317
317
|
restoredFromVersion?: number | null
|
|
318
|
-
|
|
318
|
+
fromDesignVersionId?: string | null
|
|
319
319
|
createdAt?: Date | string
|
|
320
|
-
page: Prisma.
|
|
320
|
+
page: Prisma.DesignPageCreateNestedOneWithoutPageVersionsInput
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
export type PageVersionUncheckedCreateInput = {
|
|
@@ -328,7 +328,7 @@ export type PageVersionUncheckedCreateInput = {
|
|
|
328
328
|
canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
329
329
|
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
330
330
|
restoredFromVersion?: number | null
|
|
331
|
-
|
|
331
|
+
fromDesignVersionId?: string | null
|
|
332
332
|
createdAt?: Date | string
|
|
333
333
|
}
|
|
334
334
|
|
|
@@ -339,9 +339,9 @@ export type PageVersionUpdateInput = {
|
|
|
339
339
|
canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
340
340
|
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
341
341
|
restoredFromVersion?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
342
|
-
|
|
342
|
+
fromDesignVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
343
343
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
344
|
-
page?: Prisma.
|
|
344
|
+
page?: Prisma.DesignPageUpdateOneRequiredWithoutPageVersionsNestedInput
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
export type PageVersionUncheckedUpdateInput = {
|
|
@@ -352,7 +352,7 @@ export type PageVersionUncheckedUpdateInput = {
|
|
|
352
352
|
canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
353
353
|
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
354
354
|
restoredFromVersion?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
355
|
-
|
|
355
|
+
fromDesignVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
356
356
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
357
357
|
}
|
|
358
358
|
|
|
@@ -364,7 +364,7 @@ export type PageVersionCreateManyInput = {
|
|
|
364
364
|
canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
365
365
|
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
366
366
|
restoredFromVersion?: number | null
|
|
367
|
-
|
|
367
|
+
fromDesignVersionId?: string | null
|
|
368
368
|
createdAt?: Date | string
|
|
369
369
|
}
|
|
370
370
|
|
|
@@ -375,7 +375,7 @@ export type PageVersionUpdateManyMutationInput = {
|
|
|
375
375
|
canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
376
376
|
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
377
377
|
restoredFromVersion?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
378
|
-
|
|
378
|
+
fromDesignVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
379
379
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
380
380
|
}
|
|
381
381
|
|
|
@@ -387,7 +387,7 @@ export type PageVersionUncheckedUpdateManyInput = {
|
|
|
387
387
|
canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
388
388
|
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
389
389
|
restoredFromVersion?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
390
|
-
|
|
390
|
+
fromDesignVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
391
391
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
392
392
|
}
|
|
393
393
|
|
|
@@ -409,7 +409,7 @@ export type PageVersionCountOrderByAggregateInput = {
|
|
|
409
409
|
canvas?: Prisma.SortOrder
|
|
410
410
|
content?: Prisma.SortOrder
|
|
411
411
|
restoredFromVersion?: Prisma.SortOrder
|
|
412
|
-
|
|
412
|
+
fromDesignVersionId?: Prisma.SortOrder
|
|
413
413
|
createdAt?: Prisma.SortOrder
|
|
414
414
|
}
|
|
415
415
|
|
|
@@ -424,7 +424,7 @@ export type PageVersionMaxOrderByAggregateInput = {
|
|
|
424
424
|
version?: Prisma.SortOrder
|
|
425
425
|
notes?: Prisma.SortOrder
|
|
426
426
|
restoredFromVersion?: Prisma.SortOrder
|
|
427
|
-
|
|
427
|
+
fromDesignVersionId?: Prisma.SortOrder
|
|
428
428
|
createdAt?: Prisma.SortOrder
|
|
429
429
|
}
|
|
430
430
|
|
|
@@ -434,7 +434,7 @@ export type PageVersionMinOrderByAggregateInput = {
|
|
|
434
434
|
version?: Prisma.SortOrder
|
|
435
435
|
notes?: Prisma.SortOrder
|
|
436
436
|
restoredFromVersion?: Prisma.SortOrder
|
|
437
|
-
|
|
437
|
+
fromDesignVersionId?: Prisma.SortOrder
|
|
438
438
|
createdAt?: Prisma.SortOrder
|
|
439
439
|
}
|
|
440
440
|
|
|
@@ -492,7 +492,7 @@ export type PageVersionCreateWithoutPageInput = {
|
|
|
492
492
|
canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
493
493
|
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
494
494
|
restoredFromVersion?: number | null
|
|
495
|
-
|
|
495
|
+
fromDesignVersionId?: string | null
|
|
496
496
|
createdAt?: Date | string
|
|
497
497
|
}
|
|
498
498
|
|
|
@@ -503,7 +503,7 @@ export type PageVersionUncheckedCreateWithoutPageInput = {
|
|
|
503
503
|
canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
504
504
|
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
505
505
|
restoredFromVersion?: number | null
|
|
506
|
-
|
|
506
|
+
fromDesignVersionId?: string | null
|
|
507
507
|
createdAt?: Date | string
|
|
508
508
|
}
|
|
509
509
|
|
|
@@ -544,7 +544,7 @@ export type PageVersionScalarWhereInput = {
|
|
|
544
544
|
canvas?: Prisma.JsonNullableFilter<"PageVersion">
|
|
545
545
|
content?: Prisma.JsonNullableFilter<"PageVersion">
|
|
546
546
|
restoredFromVersion?: Prisma.IntNullableFilter<"PageVersion"> | number | null
|
|
547
|
-
|
|
547
|
+
fromDesignVersionId?: Prisma.StringNullableFilter<"PageVersion"> | string | null
|
|
548
548
|
createdAt?: Prisma.DateTimeFilter<"PageVersion"> | Date | string
|
|
549
549
|
}
|
|
550
550
|
|
|
@@ -555,7 +555,7 @@ export type PageVersionCreateManyPageInput = {
|
|
|
555
555
|
canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
556
556
|
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
557
557
|
restoredFromVersion?: number | null
|
|
558
|
-
|
|
558
|
+
fromDesignVersionId?: string | null
|
|
559
559
|
createdAt?: Date | string
|
|
560
560
|
}
|
|
561
561
|
|
|
@@ -566,7 +566,7 @@ export type PageVersionUpdateWithoutPageInput = {
|
|
|
566
566
|
canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
567
567
|
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
568
568
|
restoredFromVersion?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
569
|
-
|
|
569
|
+
fromDesignVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
570
570
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
571
571
|
}
|
|
572
572
|
|
|
@@ -577,7 +577,7 @@ export type PageVersionUncheckedUpdateWithoutPageInput = {
|
|
|
577
577
|
canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
578
578
|
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
579
579
|
restoredFromVersion?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
580
|
-
|
|
580
|
+
fromDesignVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
581
581
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
582
582
|
}
|
|
583
583
|
|
|
@@ -588,7 +588,7 @@ export type PageVersionUncheckedUpdateManyWithoutPageInput = {
|
|
|
588
588
|
canvas?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
589
589
|
content?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
590
590
|
restoredFromVersion?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
591
|
-
|
|
591
|
+
fromDesignVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
592
592
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
593
593
|
}
|
|
594
594
|
|
|
@@ -602,9 +602,9 @@ export type PageVersionSelect<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
602
602
|
canvas?: boolean
|
|
603
603
|
content?: boolean
|
|
604
604
|
restoredFromVersion?: boolean
|
|
605
|
-
|
|
605
|
+
fromDesignVersionId?: boolean
|
|
606
606
|
createdAt?: boolean
|
|
607
|
-
page?: boolean | Prisma.
|
|
607
|
+
page?: boolean | Prisma.DesignPageDefaultArgs<ExtArgs>
|
|
608
608
|
}, ExtArgs["result"]["pageVersion"]>
|
|
609
609
|
|
|
610
610
|
export type PageVersionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
@@ -615,9 +615,9 @@ export type PageVersionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.E
|
|
|
615
615
|
canvas?: boolean
|
|
616
616
|
content?: boolean
|
|
617
617
|
restoredFromVersion?: boolean
|
|
618
|
-
|
|
618
|
+
fromDesignVersionId?: boolean
|
|
619
619
|
createdAt?: boolean
|
|
620
|
-
page?: boolean | Prisma.
|
|
620
|
+
page?: boolean | Prisma.DesignPageDefaultArgs<ExtArgs>
|
|
621
621
|
}, ExtArgs["result"]["pageVersion"]>
|
|
622
622
|
|
|
623
623
|
export type PageVersionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
@@ -628,9 +628,9 @@ export type PageVersionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.E
|
|
|
628
628
|
canvas?: boolean
|
|
629
629
|
content?: boolean
|
|
630
630
|
restoredFromVersion?: boolean
|
|
631
|
-
|
|
631
|
+
fromDesignVersionId?: boolean
|
|
632
632
|
createdAt?: boolean
|
|
633
|
-
page?: boolean | Prisma.
|
|
633
|
+
page?: boolean | Prisma.DesignPageDefaultArgs<ExtArgs>
|
|
634
634
|
}, ExtArgs["result"]["pageVersion"]>
|
|
635
635
|
|
|
636
636
|
export type PageVersionSelectScalar = {
|
|
@@ -641,25 +641,25 @@ export type PageVersionSelectScalar = {
|
|
|
641
641
|
canvas?: boolean
|
|
642
642
|
content?: boolean
|
|
643
643
|
restoredFromVersion?: boolean
|
|
644
|
-
|
|
644
|
+
fromDesignVersionId?: boolean
|
|
645
645
|
createdAt?: boolean
|
|
646
646
|
}
|
|
647
647
|
|
|
648
|
-
export type PageVersionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "pageId" | "version" | "notes" | "canvas" | "content" | "restoredFromVersion" | "
|
|
648
|
+
export type PageVersionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "pageId" | "version" | "notes" | "canvas" | "content" | "restoredFromVersion" | "fromDesignVersionId" | "createdAt", ExtArgs["result"]["pageVersion"]>
|
|
649
649
|
export type PageVersionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
650
|
-
page?: boolean | Prisma.
|
|
650
|
+
page?: boolean | Prisma.DesignPageDefaultArgs<ExtArgs>
|
|
651
651
|
}
|
|
652
652
|
export type PageVersionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
653
|
-
page?: boolean | Prisma.
|
|
653
|
+
page?: boolean | Prisma.DesignPageDefaultArgs<ExtArgs>
|
|
654
654
|
}
|
|
655
655
|
export type PageVersionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
656
|
-
page?: boolean | Prisma.
|
|
656
|
+
page?: boolean | Prisma.DesignPageDefaultArgs<ExtArgs>
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
export type $PageVersionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
660
660
|
name: "PageVersion"
|
|
661
661
|
objects: {
|
|
662
|
-
page: Prisma.$
|
|
662
|
+
page: Prisma.$DesignPagePayload<ExtArgs>
|
|
663
663
|
}
|
|
664
664
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
665
665
|
id: string
|
|
@@ -669,7 +669,7 @@ export type $PageVersionPayload<ExtArgs extends runtime.Types.Extensions.Interna
|
|
|
669
669
|
canvas: runtime.JsonValue | null
|
|
670
670
|
content: runtime.JsonValue | null
|
|
671
671
|
restoredFromVersion: number | null
|
|
672
|
-
|
|
672
|
+
fromDesignVersionId: string | null
|
|
673
673
|
createdAt: Date
|
|
674
674
|
}, ExtArgs["result"]["pageVersion"]>
|
|
675
675
|
composites: {}
|
|
@@ -1065,7 +1065,7 @@ readonly fields: PageVersionFieldRefs;
|
|
|
1065
1065
|
*/
|
|
1066
1066
|
export interface Prisma__PageVersionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1067
1067
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1068
|
-
page<T extends Prisma.
|
|
1068
|
+
page<T extends Prisma.DesignPageDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DesignPageDefaultArgs<ExtArgs>>): Prisma.Prisma__DesignPageClient<runtime.Types.Result.GetResult<Prisma.$DesignPagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1069
1069
|
/**
|
|
1070
1070
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1071
1071
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
@@ -1102,7 +1102,7 @@ export interface PageVersionFieldRefs {
|
|
|
1102
1102
|
readonly canvas: Prisma.FieldRef<"PageVersion", 'Json'>
|
|
1103
1103
|
readonly content: Prisma.FieldRef<"PageVersion", 'Json'>
|
|
1104
1104
|
readonly restoredFromVersion: Prisma.FieldRef<"PageVersion", 'Int'>
|
|
1105
|
-
readonly
|
|
1105
|
+
readonly fromDesignVersionId: Prisma.FieldRef<"PageVersion", 'String'>
|
|
1106
1106
|
readonly createdAt: Prisma.FieldRef<"PageVersion", 'DateTime'>
|
|
1107
1107
|
}
|
|
1108
1108
|
|
package/generated/models/Plan.ts
CHANGED
|
@@ -596,7 +596,7 @@ export type PlanCreateInput = {
|
|
|
596
596
|
maxGuestSeats?: number | null
|
|
597
597
|
maxWorkspaces?: number | null
|
|
598
598
|
aiQuotaMonthly?: number | null
|
|
599
|
-
features
|
|
599
|
+
features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
600
600
|
isPublic?: boolean
|
|
601
601
|
sortOrder?: number
|
|
602
602
|
createdAt?: Date | string
|
|
@@ -628,7 +628,7 @@ export type PlanUncheckedCreateInput = {
|
|
|
628
628
|
maxGuestSeats?: number | null
|
|
629
629
|
maxWorkspaces?: number | null
|
|
630
630
|
aiQuotaMonthly?: number | null
|
|
631
|
-
features
|
|
631
|
+
features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
632
632
|
isPublic?: boolean
|
|
633
633
|
sortOrder?: number
|
|
634
634
|
createdAt?: Date | string
|
|
@@ -724,7 +724,7 @@ export type PlanCreateManyInput = {
|
|
|
724
724
|
maxGuestSeats?: number | null
|
|
725
725
|
maxWorkspaces?: number | null
|
|
726
726
|
aiQuotaMonthly?: number | null
|
|
727
|
-
features
|
|
727
|
+
features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
728
728
|
isPublic?: boolean
|
|
729
729
|
sortOrder?: number
|
|
730
730
|
createdAt?: Date | string
|
|
@@ -959,7 +959,7 @@ export type PlanCreateWithoutSubscriptionsInput = {
|
|
|
959
959
|
maxGuestSeats?: number | null
|
|
960
960
|
maxWorkspaces?: number | null
|
|
961
961
|
aiQuotaMonthly?: number | null
|
|
962
|
-
features
|
|
962
|
+
features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
963
963
|
isPublic?: boolean
|
|
964
964
|
sortOrder?: number
|
|
965
965
|
createdAt?: Date | string
|
|
@@ -990,7 +990,7 @@ export type PlanUncheckedCreateWithoutSubscriptionsInput = {
|
|
|
990
990
|
maxGuestSeats?: number | null
|
|
991
991
|
maxWorkspaces?: number | null
|
|
992
992
|
aiQuotaMonthly?: number | null
|
|
993
|
-
features
|
|
993
|
+
features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
994
994
|
isPublic?: boolean
|
|
995
995
|
sortOrder?: number
|
|
996
996
|
createdAt?: Date | string
|