@allbluecn/database 0.9.1 → 0.9.3

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 (150) hide show
  1. package/cf-env-stub.ts +4 -0
  2. package/cf-env.ts +25 -0
  3. package/cloudflare-workers.d.ts +6 -0
  4. package/desktop-init.ts +2 -2
  5. package/dist/cf-env-stub.d.ts +1 -0
  6. package/dist/cf-env-stub.js +4 -0
  7. package/dist/cf-env.d.ts +1 -0
  8. package/dist/cf-env.js +8 -0
  9. package/dist/lib/share-utils.js +3 -3
  10. package/generated/browser.ts +143 -38
  11. package/generated/client.ts +143 -38
  12. package/generated/commonInputTypes.ts +34 -0
  13. package/generated/enums.ts +14 -0
  14. package/generated/internal/class.ts +290 -80
  15. package/generated/internal/prismaNamespace.ts +3756 -1797
  16. package/generated/internal/prismaNamespaceBrowser.ts +478 -108
  17. package/generated/models/AgentConversation.ts +89 -89
  18. package/generated/models/AiProvider.ts +3 -3
  19. package/generated/models/AiStreamChunk.ts +3 -3
  20. package/generated/models/AiTask.ts +2481 -0
  21. package/generated/models/AiTaskRun.ts +1564 -0
  22. package/generated/models/AnyHubMarketApp.ts +8 -8
  23. package/generated/models/AuditLog.ts +6 -6
  24. package/generated/models/BlockInstance.ts +17 -17
  25. package/generated/models/Bug.ts +5116 -0
  26. package/generated/models/BugActivity.ts +1765 -0
  27. package/generated/models/BugComment.ts +1992 -0
  28. package/generated/models/BugCommentReaction.ts +1472 -0
  29. package/generated/models/BugEvent.ts +1339 -0
  30. package/generated/models/BugFilterView.ts +1438 -0
  31. package/generated/models/BugFixRun.ts +1479 -0
  32. package/generated/models/BugLabel.ts +1349 -0
  33. package/generated/models/BugProjectSettings.ts +1403 -0
  34. package/generated/models/BugReproRun.ts +1582 -0
  35. package/generated/models/ChatPersistenceMeta.ts +3 -3
  36. package/generated/models/CollabClient.ts +1199 -0
  37. package/generated/models/CollabDocument.ts +1121 -0
  38. package/generated/models/CollabUpdate.ts +1149 -0
  39. package/generated/models/Comment.ts +99 -99
  40. package/generated/models/Component.ts +7 -201
  41. package/generated/models/ComponentInstance.ts +17 -17
  42. package/generated/models/CustomRole.ts +8 -8
  43. package/generated/models/Design.ts +2682 -0
  44. package/generated/models/DesignPage.ts +2402 -0
  45. package/generated/models/DesignVersion.ts +2121 -0
  46. package/generated/models/DesktopSetting.ts +3 -3
  47. package/generated/models/Iteration.ts +148 -0
  48. package/generated/models/Label.ts +118 -0
  49. package/generated/models/LicenseKey.ts +16 -16
  50. package/generated/models/NotificationPreference.ts +5 -5
  51. package/generated/models/PageVersion.ts +49 -49
  52. package/generated/models/Plan.ts +5 -5
  53. package/generated/models/Project.ts +2240 -67
  54. package/generated/models/ProjectAccessToken.ts +1705 -0
  55. package/generated/models/ProjectWebhook.ts +1409 -0
  56. package/generated/models/Review.ts +118 -118
  57. package/generated/models/Share.ts +83 -83
  58. package/generated/models/ShareVersion.ts +15 -15
  59. package/generated/models/SsoProvider.ts +8 -8
  60. package/generated/models/Story.ts +973 -87
  61. package/generated/models/StoryDesignLink.ts +1430 -0
  62. package/generated/models/StoryFilterView.ts +12 -12
  63. package/generated/models/SystemPromptVersion.ts +6 -6
  64. package/generated/models/TestAutomationArtifact.ts +1790 -0
  65. package/generated/models/TestCase.ts +3645 -0
  66. package/generated/models/TestCaseFilterView.ts +1587 -0
  67. package/generated/models/TestCaseFolder.ts +1795 -0
  68. package/generated/models/TestExecRun.ts +1673 -0
  69. package/generated/models/TestGenerationRun.ts +1952 -0
  70. package/generated/models/TestPlan.ts +1950 -0
  71. package/generated/models/TestPlanCase.ts +1430 -0
  72. package/generated/models/TestRun.ts +1979 -0
  73. package/generated/models/TestRunCase.ts +2772 -0
  74. package/generated/models/ThirdPartyDependency.ts +19 -15
  75. package/generated/models/User.ts +13573 -3351
  76. package/generated/models/Workspace.ts +204 -0
  77. package/generated/models.ts +31 -10
  78. package/generated-sqlite/browser.ts +6 -36
  79. package/generated-sqlite/client.ts +6 -36
  80. package/generated-sqlite/internal/class.ts +16 -76
  81. package/generated-sqlite/internal/prismaNamespace.ts +127 -659
  82. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +21 -103
  83. package/generated-sqlite/models/AgentConversation.ts +89 -89
  84. package/generated-sqlite/models/AiProvider.ts +3 -3
  85. package/generated-sqlite/models/AiStreamChunk.ts +3 -3
  86. package/generated-sqlite/models/AnyHubMarketApp.ts +8 -8
  87. package/generated-sqlite/models/BlockInstance.ts +17 -17
  88. package/generated-sqlite/models/ChatPersistenceMeta.ts +3 -3
  89. package/generated-sqlite/models/Comment.ts +99 -99
  90. package/generated-sqlite/models/Component.ts +7 -201
  91. package/generated-sqlite/models/ComponentInstance.ts +17 -17
  92. package/generated-sqlite/models/Design.ts +2497 -0
  93. package/generated-sqlite/models/DesignPage.ts +2398 -0
  94. package/generated-sqlite/models/DesignVersion.ts +2117 -0
  95. package/generated-sqlite/models/DesktopSetting.ts +3 -3
  96. package/generated-sqlite/models/KnowledgeBase.ts +240 -1
  97. package/generated-sqlite/models/NotificationPreference.ts +5 -5
  98. package/generated-sqlite/models/PageVersion.ts +49 -49
  99. package/generated-sqlite/models/Review.ts +118 -118
  100. package/generated-sqlite/models/Share.ts +83 -83
  101. package/generated-sqlite/models/ShareVersion.ts +15 -15
  102. package/generated-sqlite/models/SystemPromptVersion.ts +6 -6
  103. package/generated-sqlite/models/User.ts +1310 -2016
  104. package/generated-sqlite/models/Workspace.ts +164 -0
  105. package/generated-sqlite/models.ts +3 -9
  106. package/index.ts +31 -3
  107. package/migrations/20260924084200_add_prd_kind_drop_design_sketch/migration.sql +24 -0
  108. package/migrations/20260924123118_drop_user_sketch_api_token/migration.sql +8 -0
  109. package/migrations/20260925011516_rename_prd_tables/migration.sql +189 -0
  110. package/migrations/20260925064226_rename_prd_columns/migration.sql +193 -0
  111. package/migrations/20260925080000_rename_prd_embeddings/migration.sql +43 -0
  112. package/migrations/20261002184838_bug_module_init/migration.sql +297 -0
  113. package/migrations/20261004234209_testcase_module_init/migration.sql +290 -0
  114. package/migrations/20261005090000_testcase_plan_cases/migration.sql +34 -0
  115. package/migrations/20261006151229_add_missing_fk_indexes_auth_billing/migration.sql +50 -0
  116. package/migrations/20261006152058_add_missing_fk_indexes_story_bug_test/migration.sql +59 -0
  117. package/migrations/20261006152153_add_missing_fk_indexes_design_misc/migration.sql +50 -0
  118. package/migrations/20261006184250_explicit_on_delete_core/migration.sql +33 -0
  119. package/migrations/20261006184604_explicit_on_delete_rest/migration.sql +117 -0
  120. package/migrations/20261006184932_json_column_defaults/migration.sql +74 -0
  121. package/migrations/20261006191724_revert_version_token_cascade/migration.sql +21 -0
  122. package/migrations/20261007025537_dependency_category_enum/migration.sql +22 -0
  123. package/migrations/20261007112656_collab_init/migration.sql +45 -0
  124. package/migrations/20261007122530_collab_client_clientid_bigint/migration.sql +10 -0
  125. package/migrations/20261009194853_remove_tag_module/migration.sql +24 -0
  126. package/migrations/20261009222043_ai_task_init/migration.sql +67 -0
  127. package/migrations/20261019202531_ui_alignment_board_order/migration.sql +35 -0
  128. package/package.json +17 -6
  129. package/schema.prisma +777 -222
  130. package/schema.sqlite.prisma +140 -196
  131. package/src/lib/share-utils.ts +2 -2
  132. package/generated/models/Artboard.ts +0 -1811
  133. package/generated/models/ArtboardExport.ts +0 -1548
  134. package/generated/models/ComponentTag.ts +0 -1281
  135. package/generated/models/DesignProject.ts +0 -1643
  136. package/generated/models/PRD.ts +0 -2805
  137. package/generated/models/PRDPage.ts +0 -2402
  138. package/generated/models/PRDTag.ts +0 -1430
  139. package/generated/models/PRDVersion.ts +0 -2121
  140. package/generated/models/StoryPrdLink.ts +0 -1430
  141. package/generated/models/Tag.ts +0 -1655
  142. package/generated-sqlite/models/Artboard.ts +0 -1808
  143. package/generated-sqlite/models/ArtboardExport.ts +0 -1545
  144. package/generated-sqlite/models/ComponentTag.ts +0 -1278
  145. package/generated-sqlite/models/DesignProject.ts +0 -1640
  146. package/generated-sqlite/models/PRD.ts +0 -2616
  147. package/generated-sqlite/models/PRDPage.ts +0 -2398
  148. package/generated-sqlite/models/PRDTag.ts +0 -1426
  149. package/generated-sqlite/models/PRDVersion.ts +0 -2117
  150. package/generated-sqlite/models/Tag.ts +0 -1652
package/cf-env-stub.ts ADDED
@@ -0,0 +1,4 @@
1
+ // "cloudflare:workers" 的非 CF 构建替身(经 vite resolve.alias 接入),
2
+ // 使 packages/database 的 cf-env.ts 在 vercel/desktop/admin 构建中可解析。
3
+ // 恒为空对象:非 CF 运行时 env 一律走 process.env(dotenv 已加载)。
4
+ export const env = {} as Record<string, unknown>;
package/cf-env.ts ADDED
@@ -0,0 +1,25 @@
1
+ // Cloudflare Workers 运行时下,module-scope 读取绑定的官方途径
2
+ // (TanStack Start 官方部署口径:process.env 在 CF 的 module scope 为 undefined,
3
+ // env 按请求注入——见 .agents/skills/tanstack-react-start/deployment)。
4
+ // 必须用「module-scope 动态 import + try/catch」而非静态 import:静态导入会在
5
+ // 无 vite alias 的裸 Node ESM 运行时(tsx 直跑的 collab、seed 脚本等)抛
6
+ // ERR_UNSUPPORTED_ESM_URL_SCHEME 直接炸掉加载;动态版三种环境均正确——
7
+ // ① CF 构建(不 alias):workerd 内建模块,拿到真实 env;
8
+ // ② vite alias 构建(vercel/desktop/admin/Pro):解析到 cf-env-stub,返回空 env;
9
+ // ③ 裸 Node/tsx:import 抛 ERR_UNSUPPORTED_ESM_URL_SCHEME,catch 后降级空 env。
10
+ // 类型来自同包 cloudflare-workers.d.ts(轻量声明;勿用 @cloudflare/workers-types
11
+ // 全量 reference——会令下游 tsc 实例化爆炸 OOM)。
12
+ /// <reference path="./cloudflare-workers.d.ts" />
13
+ // ↑ 该 d.ts 纯环境声明、无人 import 且不在包 tsconfig include 内,须经此
14
+ // 显式拉进 program,否则本文件对 "cloudflare:workers" 的解析报 TS2307
15
+ // (静态与动态 import 同病,packages/database 包级 tsc 在 main 上本就红)。
16
+
17
+ let cloudflareEnv: Record<string, unknown> = {};
18
+
19
+ try {
20
+ ({ env: cloudflareEnv } = await import("cloudflare:workers"));
21
+ } catch {
22
+ // 非 CF 运行时:env 缺席,resolveDatabaseUrl 走 process.env 分支。
23
+ }
24
+
25
+ export { cloudflareEnv };
@@ -0,0 +1,6 @@
1
+ // workerd 内建模块的轻量类型声明(仅本包所需面;运行时由 workerd 提供,
2
+ // 非 CF 构建经 vite alias 指向 packages/database/cf-env-stub.ts)。
3
+ // 勿换成 @cloudflare/workers-types 全量 reference——下游 tsc 会 OOM。
4
+ declare module "cloudflare:workers" {
5
+ export const env: Record<string, unknown>;
6
+ }
package/desktop-init.ts CHANGED
@@ -23,10 +23,10 @@ import { join } from "node:path";
23
23
 
24
24
  // 与 apps/web/src/lib/vector-store/sqlite-vec-store.ts 的 ALLOWED_TABLES 保持一致
25
25
  const VEC_TABLES = [
26
- "prd_pages",
26
+ "design_pages",
27
27
  "components",
28
28
  "blocks",
29
- "prd_embeddings",
29
+ "design_embeddings",
30
30
  "knowledge_embeddings",
31
31
  ] as const;
32
32
 
@@ -0,0 +1 @@
1
+ export declare const env: Record<string, unknown>;
@@ -0,0 +1,4 @@
1
+ const env = {};
2
+ export {
3
+ env
4
+ };
@@ -0,0 +1 @@
1
+ export declare const cloudflareEnv: Record<string, unknown>;
package/dist/cf-env.js ADDED
@@ -0,0 +1,8 @@
1
+ let cloudflareEnv = {};
2
+ try {
3
+ ({ env: cloudflareEnv } = await import("cloudflare:workers"));
4
+ } catch {
5
+ }
6
+ export {
7
+ cloudflareEnv
8
+ };
@@ -6,12 +6,12 @@ async function verifySharePassword(input, stored) {
6
6
  }
7
7
  return false;
8
8
  }
9
- async function verifyPrdOwner(prdId, userId) {
9
+ async function verifyDesignOwner(designId, userId) {
10
10
  const { prisma } = await import("@allbluecn/database");
11
- const prd = await prisma.pRD.findUnique({ where: { id: prdId }, select: { userId: true } });
11
+ const prd = await prisma.design.findUnique({ where: { id: designId }, select: { userId: true } });
12
12
  return prd?.userId === userId;
13
13
  }
14
14
  export {
15
- verifyPrdOwner,
15
+ verifyDesignOwner,
16
16
  verifySharePassword
17
17
  };
@@ -178,10 +178,10 @@ export type KnowledgeBase = Prisma.KnowledgeBaseModel
178
178
  */
179
179
  export type KnowledgeDocument = Prisma.KnowledgeDocumentModel
180
180
  /**
181
- * Model PRD
181
+ * Model Design
182
182
  *
183
183
  */
184
- export type PRD = Prisma.PRDModel
184
+ export type Design = Prisma.DesignModel
185
185
  /**
186
186
  * Model AgentConversation
187
187
  *
@@ -218,10 +218,10 @@ export type Template = Prisma.TemplateModel
218
218
  */
219
219
  export type TemplateBlock = Prisma.TemplateBlockModel
220
220
  /**
221
- * Model PRDPage
221
+ * Model DesignPage
222
222
  *
223
223
  */
224
- export type PRDPage = Prisma.PRDPageModel
224
+ export type DesignPage = Prisma.DesignPageModel
225
225
  /**
226
226
  * Model ComponentInstance
227
227
  *
@@ -233,10 +233,10 @@ export type ComponentInstance = Prisma.ComponentInstanceModel
233
233
  */
234
234
  export type BlockInstance = Prisma.BlockInstanceModel
235
235
  /**
236
- * Model PRDVersion
236
+ * Model DesignVersion
237
237
  *
238
238
  */
239
- export type PRDVersion = Prisma.PRDVersionModel
239
+ export type DesignVersion = Prisma.DesignVersionModel
240
240
  /**
241
241
  * Model PageVersion
242
242
  *
@@ -267,21 +267,6 @@ export type CommentIgnore = Prisma.CommentIgnoreModel
267
267
  *
268
268
  */
269
269
  export type Share = Prisma.ShareModel
270
- /**
271
- * Model Tag
272
- *
273
- */
274
- export type Tag = Prisma.TagModel
275
- /**
276
- * Model PRDTag
277
- *
278
- */
279
- export type PRDTag = Prisma.PRDTagModel
280
- /**
281
- * Model ComponentTag
282
- *
283
- */
284
- export type ComponentTag = Prisma.ComponentTagModel
285
270
  /**
286
271
  * Model Reference
287
272
  *
@@ -317,21 +302,6 @@ export type AnyHubRecommendation = Prisma.AnyHubRecommendationModel
317
302
  *
318
303
  */
319
304
  export type AnyHubRecommender = Prisma.AnyHubRecommenderModel
320
- /**
321
- * Model DesignProject
322
- *
323
- */
324
- export type DesignProject = Prisma.DesignProjectModel
325
- /**
326
- * Model Artboard
327
- *
328
- */
329
- export type Artboard = Prisma.ArtboardModel
330
- /**
331
- * Model ArtboardExport
332
- *
333
- */
334
- export type ArtboardExport = Prisma.ArtboardExportModel
335
305
  /**
336
306
  * Model AiProvider
337
307
  *
@@ -453,10 +423,10 @@ export type StoryLink = Prisma.StoryLinkModel
453
423
  */
454
424
  export type StoryAttachment = Prisma.StoryAttachmentModel
455
425
  /**
456
- * Model StoryPrdLink
426
+ * Model StoryDesignLink
457
427
  *
458
428
  */
459
- export type StoryPrdLink = Prisma.StoryPrdLinkModel
429
+ export type StoryDesignLink = Prisma.StoryDesignLinkModel
460
430
  /**
461
431
  * Model StoryDocLink
462
432
  *
@@ -632,3 +602,138 @@ export type WorkspaceFile = Prisma.WorkspaceFileModel
632
602
  *
633
603
  */
634
604
  export type Blob = Prisma.BlobModel
605
+ /**
606
+ * Model Bug
607
+ *
608
+ */
609
+ export type Bug = Prisma.BugModel
610
+ /**
611
+ * Model BugEvent
612
+ *
613
+ */
614
+ export type BugEvent = Prisma.BugEventModel
615
+ /**
616
+ * Model BugActivity
617
+ *
618
+ */
619
+ export type BugActivity = Prisma.BugActivityModel
620
+ /**
621
+ * Model BugComment
622
+ *
623
+ */
624
+ export type BugComment = Prisma.BugCommentModel
625
+ /**
626
+ * Model BugCommentReaction
627
+ *
628
+ */
629
+ export type BugCommentReaction = Prisma.BugCommentReactionModel
630
+ /**
631
+ * Model ProjectAccessToken
632
+ *
633
+ */
634
+ export type ProjectAccessToken = Prisma.ProjectAccessTokenModel
635
+ /**
636
+ * Model BugFixRun
637
+ *
638
+ */
639
+ export type BugFixRun = Prisma.BugFixRunModel
640
+ /**
641
+ * Model BugReproRun
642
+ *
643
+ */
644
+ export type BugReproRun = Prisma.BugReproRunModel
645
+ /**
646
+ * Model ProjectWebhook
647
+ *
648
+ */
649
+ export type ProjectWebhook = Prisma.ProjectWebhookModel
650
+ /**
651
+ * Model BugProjectSettings
652
+ *
653
+ */
654
+ export type BugProjectSettings = Prisma.BugProjectSettingsModel
655
+ /**
656
+ * Model BugLabel
657
+ *
658
+ */
659
+ export type BugLabel = Prisma.BugLabelModel
660
+ /**
661
+ * Model BugFilterView
662
+ *
663
+ */
664
+ export type BugFilterView = Prisma.BugFilterViewModel
665
+ /**
666
+ * Model TestCase
667
+ *
668
+ */
669
+ export type TestCase = Prisma.TestCaseModel
670
+ /**
671
+ * Model TestCaseFolder
672
+ *
673
+ */
674
+ export type TestCaseFolder = Prisma.TestCaseFolderModel
675
+ /**
676
+ * Model TestCaseFilterView
677
+ *
678
+ */
679
+ export type TestCaseFilterView = Prisma.TestCaseFilterViewModel
680
+ /**
681
+ * Model TestGenerationRun
682
+ *
683
+ */
684
+ export type TestGenerationRun = Prisma.TestGenerationRunModel
685
+ /**
686
+ * Model TestPlan
687
+ *
688
+ */
689
+ export type TestPlan = Prisma.TestPlanModel
690
+ /**
691
+ * Model TestPlanCase
692
+ *
693
+ */
694
+ export type TestPlanCase = Prisma.TestPlanCaseModel
695
+ /**
696
+ * Model TestRun
697
+ *
698
+ */
699
+ export type TestRun = Prisma.TestRunModel
700
+ /**
701
+ * Model TestRunCase
702
+ *
703
+ */
704
+ export type TestRunCase = Prisma.TestRunCaseModel
705
+ /**
706
+ * Model TestExecRun
707
+ *
708
+ */
709
+ export type TestExecRun = Prisma.TestExecRunModel
710
+ /**
711
+ * Model TestAutomationArtifact
712
+ *
713
+ */
714
+ export type TestAutomationArtifact = Prisma.TestAutomationArtifactModel
715
+ /**
716
+ * Model CollabDocument
717
+ *
718
+ */
719
+ export type CollabDocument = Prisma.CollabDocumentModel
720
+ /**
721
+ * Model CollabUpdate
722
+ *
723
+ */
724
+ export type CollabUpdate = Prisma.CollabUpdateModel
725
+ /**
726
+ * Model CollabClient
727
+ *
728
+ */
729
+ export type CollabClient = Prisma.CollabClientModel
730
+ /**
731
+ * Model AiTask
732
+ *
733
+ */
734
+ export type AiTask = Prisma.AiTaskModel
735
+ /**
736
+ * Model AiTaskRun
737
+ *
738
+ */
739
+ export type AiTaskRun = Prisma.AiTaskRunModel
@@ -202,10 +202,10 @@ export type KnowledgeBase = Prisma.KnowledgeBaseModel
202
202
  */
203
203
  export type KnowledgeDocument = Prisma.KnowledgeDocumentModel
204
204
  /**
205
- * Model PRD
205
+ * Model Design
206
206
  *
207
207
  */
208
- export type PRD = Prisma.PRDModel
208
+ export type Design = Prisma.DesignModel
209
209
  /**
210
210
  * Model AgentConversation
211
211
  *
@@ -242,10 +242,10 @@ export type Template = Prisma.TemplateModel
242
242
  */
243
243
  export type TemplateBlock = Prisma.TemplateBlockModel
244
244
  /**
245
- * Model PRDPage
245
+ * Model DesignPage
246
246
  *
247
247
  */
248
- export type PRDPage = Prisma.PRDPageModel
248
+ export type DesignPage = Prisma.DesignPageModel
249
249
  /**
250
250
  * Model ComponentInstance
251
251
  *
@@ -257,10 +257,10 @@ export type ComponentInstance = Prisma.ComponentInstanceModel
257
257
  */
258
258
  export type BlockInstance = Prisma.BlockInstanceModel
259
259
  /**
260
- * Model PRDVersion
260
+ * Model DesignVersion
261
261
  *
262
262
  */
263
- export type PRDVersion = Prisma.PRDVersionModel
263
+ export type DesignVersion = Prisma.DesignVersionModel
264
264
  /**
265
265
  * Model PageVersion
266
266
  *
@@ -291,21 +291,6 @@ export type CommentIgnore = Prisma.CommentIgnoreModel
291
291
  *
292
292
  */
293
293
  export type Share = Prisma.ShareModel
294
- /**
295
- * Model Tag
296
- *
297
- */
298
- export type Tag = Prisma.TagModel
299
- /**
300
- * Model PRDTag
301
- *
302
- */
303
- export type PRDTag = Prisma.PRDTagModel
304
- /**
305
- * Model ComponentTag
306
- *
307
- */
308
- export type ComponentTag = Prisma.ComponentTagModel
309
294
  /**
310
295
  * Model Reference
311
296
  *
@@ -341,21 +326,6 @@ export type AnyHubRecommendation = Prisma.AnyHubRecommendationModel
341
326
  *
342
327
  */
343
328
  export type AnyHubRecommender = Prisma.AnyHubRecommenderModel
344
- /**
345
- * Model DesignProject
346
- *
347
- */
348
- export type DesignProject = Prisma.DesignProjectModel
349
- /**
350
- * Model Artboard
351
- *
352
- */
353
- export type Artboard = Prisma.ArtboardModel
354
- /**
355
- * Model ArtboardExport
356
- *
357
- */
358
- export type ArtboardExport = Prisma.ArtboardExportModel
359
329
  /**
360
330
  * Model AiProvider
361
331
  *
@@ -477,10 +447,10 @@ export type StoryLink = Prisma.StoryLinkModel
477
447
  */
478
448
  export type StoryAttachment = Prisma.StoryAttachmentModel
479
449
  /**
480
- * Model StoryPrdLink
450
+ * Model StoryDesignLink
481
451
  *
482
452
  */
483
- export type StoryPrdLink = Prisma.StoryPrdLinkModel
453
+ export type StoryDesignLink = Prisma.StoryDesignLinkModel
484
454
  /**
485
455
  * Model StoryDocLink
486
456
  *
@@ -656,3 +626,138 @@ export type WorkspaceFile = Prisma.WorkspaceFileModel
656
626
  *
657
627
  */
658
628
  export type Blob = Prisma.BlobModel
629
+ /**
630
+ * Model Bug
631
+ *
632
+ */
633
+ export type Bug = Prisma.BugModel
634
+ /**
635
+ * Model BugEvent
636
+ *
637
+ */
638
+ export type BugEvent = Prisma.BugEventModel
639
+ /**
640
+ * Model BugActivity
641
+ *
642
+ */
643
+ export type BugActivity = Prisma.BugActivityModel
644
+ /**
645
+ * Model BugComment
646
+ *
647
+ */
648
+ export type BugComment = Prisma.BugCommentModel
649
+ /**
650
+ * Model BugCommentReaction
651
+ *
652
+ */
653
+ export type BugCommentReaction = Prisma.BugCommentReactionModel
654
+ /**
655
+ * Model ProjectAccessToken
656
+ *
657
+ */
658
+ export type ProjectAccessToken = Prisma.ProjectAccessTokenModel
659
+ /**
660
+ * Model BugFixRun
661
+ *
662
+ */
663
+ export type BugFixRun = Prisma.BugFixRunModel
664
+ /**
665
+ * Model BugReproRun
666
+ *
667
+ */
668
+ export type BugReproRun = Prisma.BugReproRunModel
669
+ /**
670
+ * Model ProjectWebhook
671
+ *
672
+ */
673
+ export type ProjectWebhook = Prisma.ProjectWebhookModel
674
+ /**
675
+ * Model BugProjectSettings
676
+ *
677
+ */
678
+ export type BugProjectSettings = Prisma.BugProjectSettingsModel
679
+ /**
680
+ * Model BugLabel
681
+ *
682
+ */
683
+ export type BugLabel = Prisma.BugLabelModel
684
+ /**
685
+ * Model BugFilterView
686
+ *
687
+ */
688
+ export type BugFilterView = Prisma.BugFilterViewModel
689
+ /**
690
+ * Model TestCase
691
+ *
692
+ */
693
+ export type TestCase = Prisma.TestCaseModel
694
+ /**
695
+ * Model TestCaseFolder
696
+ *
697
+ */
698
+ export type TestCaseFolder = Prisma.TestCaseFolderModel
699
+ /**
700
+ * Model TestCaseFilterView
701
+ *
702
+ */
703
+ export type TestCaseFilterView = Prisma.TestCaseFilterViewModel
704
+ /**
705
+ * Model TestGenerationRun
706
+ *
707
+ */
708
+ export type TestGenerationRun = Prisma.TestGenerationRunModel
709
+ /**
710
+ * Model TestPlan
711
+ *
712
+ */
713
+ export type TestPlan = Prisma.TestPlanModel
714
+ /**
715
+ * Model TestPlanCase
716
+ *
717
+ */
718
+ export type TestPlanCase = Prisma.TestPlanCaseModel
719
+ /**
720
+ * Model TestRun
721
+ *
722
+ */
723
+ export type TestRun = Prisma.TestRunModel
724
+ /**
725
+ * Model TestRunCase
726
+ *
727
+ */
728
+ export type TestRunCase = Prisma.TestRunCaseModel
729
+ /**
730
+ * Model TestExecRun
731
+ *
732
+ */
733
+ export type TestExecRun = Prisma.TestExecRunModel
734
+ /**
735
+ * Model TestAutomationArtifact
736
+ *
737
+ */
738
+ export type TestAutomationArtifact = Prisma.TestAutomationArtifactModel
739
+ /**
740
+ * Model CollabDocument
741
+ *
742
+ */
743
+ export type CollabDocument = Prisma.CollabDocumentModel
744
+ /**
745
+ * Model CollabUpdate
746
+ *
747
+ */
748
+ export type CollabUpdate = Prisma.CollabUpdateModel
749
+ /**
750
+ * Model CollabClient
751
+ *
752
+ */
753
+ export type CollabClient = Prisma.CollabClientModel
754
+ /**
755
+ * Model AiTask
756
+ *
757
+ */
758
+ export type AiTask = Prisma.AiTaskModel
759
+ /**
760
+ * Model AiTaskRun
761
+ *
762
+ */
763
+ export type AiTaskRun = Prisma.AiTaskRunModel
@@ -473,6 +473,23 @@ export type EnumMarketplaceAppStatusWithAggregatesFilter<$PrismaModel = never> =
473
473
  _max?: Prisma.NestedEnumMarketplaceAppStatusFilter<$PrismaModel>
474
474
  }
475
475
 
476
+ export type EnumDependencyCategoryFilter<$PrismaModel = never> = {
477
+ equals?: $Enums.DependencyCategory | Prisma.EnumDependencyCategoryFieldRefInput<$PrismaModel>
478
+ in?: $Enums.DependencyCategory[] | Prisma.ListEnumDependencyCategoryFieldRefInput<$PrismaModel>
479
+ notIn?: $Enums.DependencyCategory[] | Prisma.ListEnumDependencyCategoryFieldRefInput<$PrismaModel>
480
+ not?: Prisma.NestedEnumDependencyCategoryFilter<$PrismaModel> | $Enums.DependencyCategory
481
+ }
482
+
483
+ export type EnumDependencyCategoryWithAggregatesFilter<$PrismaModel = never> = {
484
+ equals?: $Enums.DependencyCategory | Prisma.EnumDependencyCategoryFieldRefInput<$PrismaModel>
485
+ in?: $Enums.DependencyCategory[] | Prisma.ListEnumDependencyCategoryFieldRefInput<$PrismaModel>
486
+ notIn?: $Enums.DependencyCategory[] | Prisma.ListEnumDependencyCategoryFieldRefInput<$PrismaModel>
487
+ not?: Prisma.NestedEnumDependencyCategoryWithAggregatesFilter<$PrismaModel> | $Enums.DependencyCategory
488
+ _count?: Prisma.NestedIntFilter<$PrismaModel>
489
+ _min?: Prisma.NestedEnumDependencyCategoryFilter<$PrismaModel>
490
+ _max?: Prisma.NestedEnumDependencyCategoryFilter<$PrismaModel>
491
+ }
492
+
476
493
  export type EnumDependencyTypeFilter<$PrismaModel = never> = {
477
494
  equals?: $Enums.DependencyType | Prisma.EnumDependencyTypeFieldRefInput<$PrismaModel>
478
495
  in?: $Enums.DependencyType[] | Prisma.ListEnumDependencyTypeFieldRefInput<$PrismaModel>
@@ -1008,6 +1025,23 @@ export type NestedEnumMarketplaceAppStatusWithAggregatesFilter<$PrismaModel = ne
1008
1025
  _max?: Prisma.NestedEnumMarketplaceAppStatusFilter<$PrismaModel>
1009
1026
  }
1010
1027
 
1028
+ export type NestedEnumDependencyCategoryFilter<$PrismaModel = never> = {
1029
+ equals?: $Enums.DependencyCategory | Prisma.EnumDependencyCategoryFieldRefInput<$PrismaModel>
1030
+ in?: $Enums.DependencyCategory[] | Prisma.ListEnumDependencyCategoryFieldRefInput<$PrismaModel>
1031
+ notIn?: $Enums.DependencyCategory[] | Prisma.ListEnumDependencyCategoryFieldRefInput<$PrismaModel>
1032
+ not?: Prisma.NestedEnumDependencyCategoryFilter<$PrismaModel> | $Enums.DependencyCategory
1033
+ }
1034
+
1035
+ export type NestedEnumDependencyCategoryWithAggregatesFilter<$PrismaModel = never> = {
1036
+ equals?: $Enums.DependencyCategory | Prisma.EnumDependencyCategoryFieldRefInput<$PrismaModel>
1037
+ in?: $Enums.DependencyCategory[] | Prisma.ListEnumDependencyCategoryFieldRefInput<$PrismaModel>
1038
+ notIn?: $Enums.DependencyCategory[] | Prisma.ListEnumDependencyCategoryFieldRefInput<$PrismaModel>
1039
+ not?: Prisma.NestedEnumDependencyCategoryWithAggregatesFilter<$PrismaModel> | $Enums.DependencyCategory
1040
+ _count?: Prisma.NestedIntFilter<$PrismaModel>
1041
+ _min?: Prisma.NestedEnumDependencyCategoryFilter<$PrismaModel>
1042
+ _max?: Prisma.NestedEnumDependencyCategoryFilter<$PrismaModel>
1043
+ }
1044
+
1011
1045
  export type NestedEnumDependencyTypeFilter<$PrismaModel = never> = {
1012
1046
  equals?: $Enums.DependencyType | Prisma.EnumDependencyTypeFieldRefInput<$PrismaModel>
1013
1047
  in?: $Enums.DependencyType[] | Prisma.ListEnumDependencyTypeFieldRefInput<$PrismaModel>
@@ -91,3 +91,17 @@ export const UsageMetric = {
91
91
  } as const
92
92
 
93
93
  export type UsageMetric = (typeof UsageMetric)[keyof typeof UsageMetric]
94
+
95
+
96
+ export const DependencyCategory = {
97
+ framework: 'framework',
98
+ ui: 'ui',
99
+ editor: 'editor',
100
+ ai: 'ai',
101
+ state: 'state',
102
+ auth: 'auth',
103
+ tool: 'tool',
104
+ other: 'other'
105
+ } as const
106
+
107
+ export type DependencyCategory = (typeof DependencyCategory)[keyof typeof DependencyCategory]