@allbluecn/database 0.9.2 → 0.9.4
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/cf-env-stub.ts +4 -0
- package/cf-env.ts +25 -0
- package/cloudflare-workers.d.ts +6 -0
- package/generated/browser.ts +30 -15
- package/generated/client.ts +30 -15
- package/generated/internal/class.ts +64 -34
- package/generated/internal/prismaNamespace.ts +543 -263
- package/generated/internal/prismaNamespaceBrowser.ts +92 -37
- package/generated/models/AiTask.ts +2481 -0
- package/generated/models/AiTaskRun.ts +1564 -0
- package/generated/models/Bug.ts +94 -1
- package/generated/models/BugComment.ts +139 -0
- package/generated/models/BugCommentReaction.ts +1472 -0
- package/generated/models/CollabClient.ts +1199 -0
- package/generated/models/CollabDocument.ts +1121 -0
- package/generated/models/CollabUpdate.ts +1149 -0
- package/generated/models/Component.ts +0 -194
- package/generated/models/Design.ts +0 -190
- package/generated/models/Project.ts +261 -0
- package/generated/models/TestCase.ts +78 -1
- package/generated/models/User.ts +2073 -1271
- package/generated/models/Workspace.ts +204 -0
- package/generated/models.ts +6 -3
- package/generated-sqlite/browser.ts +0 -15
- package/generated-sqlite/client.ts +0 -15
- package/generated-sqlite/internal/class.ts +4 -34
- package/generated-sqlite/internal/prismaNamespace.ts +1 -262
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +0 -36
- package/generated-sqlite/models/Component.ts +0 -194
- package/generated-sqlite/models/Design.ts +0 -182
- package/generated-sqlite/models/User.ts +0 -586
- package/generated-sqlite/models.ts +0 -3
- package/index.ts +16 -2
- package/migrations/20261007112656_collab_init/migration.sql +45 -0
- package/migrations/20261007122530_collab_client_clientid_bigint/migration.sql +10 -0
- package/migrations/20261009194853_remove_tag_module/migration.sql +24 -0
- package/migrations/20261009222043_ai_task_init/migration.sql +67 -0
- package/migrations/20261019202531_ui_alignment_board_order/migration.sql +35 -0
- package/package.json +13 -17
- package/schema.prisma +99 -54
- package/schema.sqlite.prisma +0 -54
- package/dist/get-prisma.d.ts +0 -1
- package/dist/get-prisma.js +0 -7
- package/dist/lib/share-utils.d.ts +0 -2
- package/dist/lib/share-utils.js +0 -17
- package/generated/models/ComponentTag.ts +0 -1281
- package/generated/models/DesignTag.ts +0 -1430
- package/generated/models/Tag.ts +0 -1655
- package/generated-sqlite/models/ComponentTag.ts +0 -1278
- package/generated-sqlite/models/DesignTag.ts +0 -1426
- package/generated-sqlite/models/Tag.ts +0 -1652
|
@@ -101,9 +101,6 @@ export const ModelName = {
|
|
|
101
101
|
Comment: 'Comment',
|
|
102
102
|
CommentIgnore: 'CommentIgnore',
|
|
103
103
|
Share: 'Share',
|
|
104
|
-
Tag: 'Tag',
|
|
105
|
-
DesignTag: 'DesignTag',
|
|
106
|
-
ComponentTag: 'ComponentTag',
|
|
107
104
|
Reference: 'Reference',
|
|
108
105
|
ShareVersion: 'ShareVersion',
|
|
109
106
|
AnyHubApp: 'AnyHubApp',
|
|
@@ -175,6 +172,7 @@ export const ModelName = {
|
|
|
175
172
|
BugEvent: 'BugEvent',
|
|
176
173
|
BugActivity: 'BugActivity',
|
|
177
174
|
BugComment: 'BugComment',
|
|
175
|
+
BugCommentReaction: 'BugCommentReaction',
|
|
178
176
|
ProjectAccessToken: 'ProjectAccessToken',
|
|
179
177
|
BugFixRun: 'BugFixRun',
|
|
180
178
|
BugReproRun: 'BugReproRun',
|
|
@@ -191,7 +189,12 @@ export const ModelName = {
|
|
|
191
189
|
TestRun: 'TestRun',
|
|
192
190
|
TestRunCase: 'TestRunCase',
|
|
193
191
|
TestExecRun: 'TestExecRun',
|
|
194
|
-
TestAutomationArtifact: 'TestAutomationArtifact'
|
|
192
|
+
TestAutomationArtifact: 'TestAutomationArtifact',
|
|
193
|
+
CollabDocument: 'CollabDocument',
|
|
194
|
+
CollabUpdate: 'CollabUpdate',
|
|
195
|
+
CollabClient: 'CollabClient',
|
|
196
|
+
AiTask: 'AiTask',
|
|
197
|
+
AiTaskRun: 'AiTaskRun'
|
|
195
198
|
} as const
|
|
196
199
|
|
|
197
200
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -988,39 +991,6 @@ export const ShareScalarFieldEnum = {
|
|
|
988
991
|
export type ShareScalarFieldEnum = (typeof ShareScalarFieldEnum)[keyof typeof ShareScalarFieldEnum]
|
|
989
992
|
|
|
990
993
|
|
|
991
|
-
export const TagScalarFieldEnum = {
|
|
992
|
-
id: 'id',
|
|
993
|
-
name: 'name',
|
|
994
|
-
color: 'color',
|
|
995
|
-
sortOrder: 'sortOrder',
|
|
996
|
-
isHidden: 'isHidden',
|
|
997
|
-
userId: 'userId',
|
|
998
|
-
createdAt: 'createdAt',
|
|
999
|
-
updatedAt: 'updatedAt'
|
|
1000
|
-
} as const
|
|
1001
|
-
|
|
1002
|
-
export type TagScalarFieldEnum = (typeof TagScalarFieldEnum)[keyof typeof TagScalarFieldEnum]
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
export const DesignTagScalarFieldEnum = {
|
|
1006
|
-
id: 'id',
|
|
1007
|
-
designId: 'designId',
|
|
1008
|
-
tagId: 'tagId',
|
|
1009
|
-
createdAt: 'createdAt'
|
|
1010
|
-
} as const
|
|
1011
|
-
|
|
1012
|
-
export type DesignTagScalarFieldEnum = (typeof DesignTagScalarFieldEnum)[keyof typeof DesignTagScalarFieldEnum]
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
export const ComponentTagScalarFieldEnum = {
|
|
1016
|
-
id: 'id',
|
|
1017
|
-
componentId: 'componentId',
|
|
1018
|
-
tagId: 'tagId'
|
|
1019
|
-
} as const
|
|
1020
|
-
|
|
1021
|
-
export type ComponentTagScalarFieldEnum = (typeof ComponentTagScalarFieldEnum)[keyof typeof ComponentTagScalarFieldEnum]
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
994
|
export const ReferenceScalarFieldEnum = {
|
|
1025
995
|
id: 'id',
|
|
1026
996
|
sourceModule: 'sourceModule',
|
|
@@ -2087,6 +2057,7 @@ export const BugScalarFieldEnum = {
|
|
|
2087
2057
|
repoHints: 'repoHints',
|
|
2088
2058
|
archived: 'archived',
|
|
2089
2059
|
archivedAt: 'archivedAt',
|
|
2060
|
+
boardOrder: 'boardOrder',
|
|
2090
2061
|
createdAt: 'createdAt',
|
|
2091
2062
|
updatedAt: 'updatedAt'
|
|
2092
2063
|
} as const
|
|
@@ -2136,6 +2107,17 @@ export const BugCommentScalarFieldEnum = {
|
|
|
2136
2107
|
export type BugCommentScalarFieldEnum = (typeof BugCommentScalarFieldEnum)[keyof typeof BugCommentScalarFieldEnum]
|
|
2137
2108
|
|
|
2138
2109
|
|
|
2110
|
+
export const BugCommentReactionScalarFieldEnum = {
|
|
2111
|
+
id: 'id',
|
|
2112
|
+
commentId: 'commentId',
|
|
2113
|
+
userId: 'userId',
|
|
2114
|
+
emoji: 'emoji',
|
|
2115
|
+
createdAt: 'createdAt'
|
|
2116
|
+
} as const
|
|
2117
|
+
|
|
2118
|
+
export type BugCommentReactionScalarFieldEnum = (typeof BugCommentReactionScalarFieldEnum)[keyof typeof BugCommentReactionScalarFieldEnum]
|
|
2119
|
+
|
|
2120
|
+
|
|
2139
2121
|
export const ProjectAccessTokenScalarFieldEnum = {
|
|
2140
2122
|
id: 'id',
|
|
2141
2123
|
projectId: 'projectId',
|
|
@@ -2251,6 +2233,7 @@ export const TestCaseScalarFieldEnum = {
|
|
|
2251
2233
|
createdById: 'createdById',
|
|
2252
2234
|
archived: 'archived',
|
|
2253
2235
|
archivedAt: 'archivedAt',
|
|
2236
|
+
boardOrder: 'boardOrder',
|
|
2254
2237
|
createdAt: 'createdAt',
|
|
2255
2238
|
updatedAt: 'updatedAt'
|
|
2256
2239
|
} as const
|
|
@@ -2404,6 +2387,78 @@ export const TestAutomationArtifactScalarFieldEnum = {
|
|
|
2404
2387
|
export type TestAutomationArtifactScalarFieldEnum = (typeof TestAutomationArtifactScalarFieldEnum)[keyof typeof TestAutomationArtifactScalarFieldEnum]
|
|
2405
2388
|
|
|
2406
2389
|
|
|
2390
|
+
export const CollabDocumentScalarFieldEnum = {
|
|
2391
|
+
id: 'id',
|
|
2392
|
+
roomName: 'roomName',
|
|
2393
|
+
state: 'state',
|
|
2394
|
+
updatedAt: 'updatedAt'
|
|
2395
|
+
} as const
|
|
2396
|
+
|
|
2397
|
+
export type CollabDocumentScalarFieldEnum = (typeof CollabDocumentScalarFieldEnum)[keyof typeof CollabDocumentScalarFieldEnum]
|
|
2398
|
+
|
|
2399
|
+
|
|
2400
|
+
export const CollabUpdateScalarFieldEnum = {
|
|
2401
|
+
id: 'id',
|
|
2402
|
+
roomName: 'roomName',
|
|
2403
|
+
update: 'update',
|
|
2404
|
+
authorId: 'authorId',
|
|
2405
|
+
createdAt: 'createdAt'
|
|
2406
|
+
} as const
|
|
2407
|
+
|
|
2408
|
+
export type CollabUpdateScalarFieldEnum = (typeof CollabUpdateScalarFieldEnum)[keyof typeof CollabUpdateScalarFieldEnum]
|
|
2409
|
+
|
|
2410
|
+
|
|
2411
|
+
export const CollabClientScalarFieldEnum = {
|
|
2412
|
+
id: 'id',
|
|
2413
|
+
roomName: 'roomName',
|
|
2414
|
+
clientId: 'clientId',
|
|
2415
|
+
userId: 'userId',
|
|
2416
|
+
seenAt: 'seenAt'
|
|
2417
|
+
} as const
|
|
2418
|
+
|
|
2419
|
+
export type CollabClientScalarFieldEnum = (typeof CollabClientScalarFieldEnum)[keyof typeof CollabClientScalarFieldEnum]
|
|
2420
|
+
|
|
2421
|
+
|
|
2422
|
+
export const AiTaskScalarFieldEnum = {
|
|
2423
|
+
id: 'id',
|
|
2424
|
+
createdById: 'createdById',
|
|
2425
|
+
workspaceId: 'workspaceId',
|
|
2426
|
+
projectId: 'projectId',
|
|
2427
|
+
title: 'title',
|
|
2428
|
+
instruction: 'instruction',
|
|
2429
|
+
sourceType: 'sourceType',
|
|
2430
|
+
sourceId: 'sourceId',
|
|
2431
|
+
status: 'status',
|
|
2432
|
+
lastRunAt: 'lastRunAt',
|
|
2433
|
+
lastRunId: 'lastRunId',
|
|
2434
|
+
scheduleCron: 'scheduleCron',
|
|
2435
|
+
scheduleTimezone: 'scheduleTimezone',
|
|
2436
|
+
maxRuns: 'maxRuns',
|
|
2437
|
+
runCount: 'runCount',
|
|
2438
|
+
nextRunAt: 'nextRunAt',
|
|
2439
|
+
createdAt: 'createdAt',
|
|
2440
|
+
updatedAt: 'updatedAt'
|
|
2441
|
+
} as const
|
|
2442
|
+
|
|
2443
|
+
export type AiTaskScalarFieldEnum = (typeof AiTaskScalarFieldEnum)[keyof typeof AiTaskScalarFieldEnum]
|
|
2444
|
+
|
|
2445
|
+
|
|
2446
|
+
export const AiTaskRunScalarFieldEnum = {
|
|
2447
|
+
id: 'id',
|
|
2448
|
+
taskId: 'taskId',
|
|
2449
|
+
trigger: 'trigger',
|
|
2450
|
+
status: 'status',
|
|
2451
|
+
resultSummary: 'resultSummary',
|
|
2452
|
+
error: 'error',
|
|
2453
|
+
parentRunId: 'parentRunId',
|
|
2454
|
+
startedAt: 'startedAt',
|
|
2455
|
+
finishedAt: 'finishedAt',
|
|
2456
|
+
durationMs: 'durationMs'
|
|
2457
|
+
} as const
|
|
2458
|
+
|
|
2459
|
+
export type AiTaskRunScalarFieldEnum = (typeof AiTaskRunScalarFieldEnum)[keyof typeof AiTaskRunScalarFieldEnum]
|
|
2460
|
+
|
|
2461
|
+
|
|
2407
2462
|
export const SortOrder = {
|
|
2408
2463
|
asc: 'asc',
|
|
2409
2464
|
desc: 'desc'
|