@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
@@ -83,7 +83,7 @@ export const ModelName = {
83
83
  EmailSubscriber: 'EmailSubscriber',
84
84
  KnowledgeBase: 'KnowledgeBase',
85
85
  KnowledgeDocument: 'KnowledgeDocument',
86
- PRD: 'PRD',
86
+ Design: 'Design',
87
87
  AgentConversation: 'AgentConversation',
88
88
  AgentMessage: 'AgentMessage',
89
89
  Component: 'Component',
@@ -91,19 +91,16 @@ export const ModelName = {
91
91
  BlockComponent: 'BlockComponent',
92
92
  Template: 'Template',
93
93
  TemplateBlock: 'TemplateBlock',
94
- PRDPage: 'PRDPage',
94
+ DesignPage: 'DesignPage',
95
95
  ComponentInstance: 'ComponentInstance',
96
96
  BlockInstance: 'BlockInstance',
97
- PRDVersion: 'PRDVersion',
97
+ DesignVersion: 'DesignVersion',
98
98
  PageVersion: 'PageVersion',
99
99
  Review: 'Review',
100
100
  ReviewComment: 'ReviewComment',
101
101
  Comment: 'Comment',
102
102
  CommentIgnore: 'CommentIgnore',
103
103
  Share: 'Share',
104
- Tag: 'Tag',
105
- PRDTag: 'PRDTag',
106
- ComponentTag: 'ComponentTag',
107
104
  Reference: 'Reference',
108
105
  ShareVersion: 'ShareVersion',
109
106
  AnyHubApp: 'AnyHubApp',
@@ -111,9 +108,6 @@ export const ModelName = {
111
108
  AnyHubMarketApp: 'AnyHubMarketApp',
112
109
  AnyHubRecommendation: 'AnyHubRecommendation',
113
110
  AnyHubRecommender: 'AnyHubRecommender',
114
- DesignProject: 'DesignProject',
115
- Artboard: 'Artboard',
116
- ArtboardExport: 'ArtboardExport',
117
111
  AiProvider: 'AiProvider',
118
112
  AiProviderConfig: 'AiProviderConfig',
119
113
  ThirdPartyDependency: 'ThirdPartyDependency',
@@ -138,7 +132,7 @@ export const ModelName = {
138
132
  WorkspaceQuickDoc: 'WorkspaceQuickDoc',
139
133
  StoryLink: 'StoryLink',
140
134
  StoryAttachment: 'StoryAttachment',
141
- StoryPrdLink: 'StoryPrdLink',
135
+ StoryDesignLink: 'StoryDesignLink',
142
136
  StoryDocLink: 'StoryDocLink',
143
137
  StoryExternalLink: 'StoryExternalLink',
144
138
  StoryFilterView: 'StoryFilterView',
@@ -173,7 +167,34 @@ export const ModelName = {
173
167
  DesktopSetting: 'DesktopSetting',
174
168
  HarnessWorkspace: 'HarnessWorkspace',
175
169
  WorkspaceFile: 'WorkspaceFile',
176
- Blob: 'Blob'
170
+ Blob: 'Blob',
171
+ Bug: 'Bug',
172
+ BugEvent: 'BugEvent',
173
+ BugActivity: 'BugActivity',
174
+ BugComment: 'BugComment',
175
+ BugCommentReaction: 'BugCommentReaction',
176
+ ProjectAccessToken: 'ProjectAccessToken',
177
+ BugFixRun: 'BugFixRun',
178
+ BugReproRun: 'BugReproRun',
179
+ ProjectWebhook: 'ProjectWebhook',
180
+ BugProjectSettings: 'BugProjectSettings',
181
+ BugLabel: 'BugLabel',
182
+ BugFilterView: 'BugFilterView',
183
+ TestCase: 'TestCase',
184
+ TestCaseFolder: 'TestCaseFolder',
185
+ TestCaseFilterView: 'TestCaseFilterView',
186
+ TestGenerationRun: 'TestGenerationRun',
187
+ TestPlan: 'TestPlan',
188
+ TestPlanCase: 'TestPlanCase',
189
+ TestRun: 'TestRun',
190
+ TestRunCase: 'TestRunCase',
191
+ TestExecRun: 'TestExecRun',
192
+ TestAutomationArtifact: 'TestAutomationArtifact',
193
+ CollabDocument: 'CollabDocument',
194
+ CollabUpdate: 'CollabUpdate',
195
+ CollabClient: 'CollabClient',
196
+ AiTask: 'AiTask',
197
+ AiTaskRun: 'AiTaskRun'
177
198
  } as const
178
199
 
179
200
  export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -226,7 +247,6 @@ export const UserScalarFieldEnum = {
226
247
  aiSourceMode: 'aiSourceMode',
227
248
  locale: 'locale',
228
249
  storyDisplayOptions: 'storyDisplayOptions',
229
- sketchApiToken: 'sketchApiToken',
230
250
  timezone: 'timezone',
231
251
  preferredCurrency: 'preferredCurrency',
232
252
  defaultWorkspaceId: 'defaultWorkspaceId'
@@ -684,11 +704,12 @@ export const KnowledgeDocumentScalarFieldEnum = {
684
704
  export type KnowledgeDocumentScalarFieldEnum = (typeof KnowledgeDocumentScalarFieldEnum)[keyof typeof KnowledgeDocumentScalarFieldEnum]
685
705
 
686
706
 
687
- export const PRDScalarFieldEnum = {
707
+ export const DesignScalarFieldEnum = {
688
708
  id: 'id',
689
709
  icon: 'icon',
690
710
  name: 'name',
691
711
  description: 'description',
712
+ kind: 'kind',
692
713
  settings: 'settings',
693
714
  userId: 'userId',
694
715
  isDeleted: 'isDeleted',
@@ -697,13 +718,13 @@ export const PRDScalarFieldEnum = {
697
718
  updatedAt: 'updatedAt'
698
719
  } as const
699
720
 
700
- export type PRDScalarFieldEnum = (typeof PRDScalarFieldEnum)[keyof typeof PRDScalarFieldEnum]
721
+ export type DesignScalarFieldEnum = (typeof DesignScalarFieldEnum)[keyof typeof DesignScalarFieldEnum]
701
722
 
702
723
 
703
724
  export const AgentConversationScalarFieldEnum = {
704
725
  id: 'id',
705
726
  userId: 'userId',
706
- prdId: 'prdId',
727
+ designId: 'designId',
707
728
  title: 'title',
708
729
  createdAt: 'createdAt',
709
730
  updatedAt: 'updatedAt'
@@ -810,9 +831,9 @@ export const TemplateBlockScalarFieldEnum = {
810
831
  export type TemplateBlockScalarFieldEnum = (typeof TemplateBlockScalarFieldEnum)[keyof typeof TemplateBlockScalarFieldEnum]
811
832
 
812
833
 
813
- export const PRDPageScalarFieldEnum = {
834
+ export const DesignPageScalarFieldEnum = {
814
835
  id: 'id',
815
- prdId: 'prdId',
836
+ designId: 'designId',
816
837
  parentId: 'parentId',
817
838
  name: 'name',
818
839
  order: 'order',
@@ -824,7 +845,7 @@ export const PRDPageScalarFieldEnum = {
824
845
  updatedAt: 'updatedAt'
825
846
  } as const
826
847
 
827
- export type PRDPageScalarFieldEnum = (typeof PRDPageScalarFieldEnum)[keyof typeof PRDPageScalarFieldEnum]
848
+ export type DesignPageScalarFieldEnum = (typeof DesignPageScalarFieldEnum)[keyof typeof DesignPageScalarFieldEnum]
828
849
 
829
850
 
830
851
  export const ComponentInstanceScalarFieldEnum = {
@@ -866,9 +887,9 @@ export const BlockInstanceScalarFieldEnum = {
866
887
  export type BlockInstanceScalarFieldEnum = (typeof BlockInstanceScalarFieldEnum)[keyof typeof BlockInstanceScalarFieldEnum]
867
888
 
868
889
 
869
- export const PRDVersionScalarFieldEnum = {
890
+ export const DesignVersionScalarFieldEnum = {
870
891
  id: 'id',
871
- prdId: 'prdId',
892
+ designId: 'designId',
872
893
  major: 'major',
873
894
  minor: 'minor',
874
895
  patch: 'patch',
@@ -881,7 +902,7 @@ export const PRDVersionScalarFieldEnum = {
881
902
  updatedAt: 'updatedAt'
882
903
  } as const
883
904
 
884
- export type PRDVersionScalarFieldEnum = (typeof PRDVersionScalarFieldEnum)[keyof typeof PRDVersionScalarFieldEnum]
905
+ export type DesignVersionScalarFieldEnum = (typeof DesignVersionScalarFieldEnum)[keyof typeof DesignVersionScalarFieldEnum]
885
906
 
886
907
 
887
908
  export const PageVersionScalarFieldEnum = {
@@ -892,7 +913,7 @@ export const PageVersionScalarFieldEnum = {
892
913
  canvas: 'canvas',
893
914
  content: 'content',
894
915
  restoredFromVersion: 'restoredFromVersion',
895
- fromPRDVersionId: 'fromPRDVersionId',
916
+ fromDesignVersionId: 'fromDesignVersionId',
896
917
  createdAt: 'createdAt'
897
918
  } as const
898
919
 
@@ -901,7 +922,7 @@ export type PageVersionScalarFieldEnum = (typeof PageVersionScalarFieldEnum)[key
901
922
 
902
923
  export const ReviewScalarFieldEnum = {
903
924
  id: 'id',
904
- prdId: 'prdId',
925
+ designId: 'designId',
905
926
  versionId: 'versionId',
906
927
  status: 'status',
907
928
  reviewerId: 'reviewerId',
@@ -929,7 +950,7 @@ export type ReviewCommentScalarFieldEnum = (typeof ReviewCommentScalarFieldEnum)
929
950
 
930
951
  export const CommentScalarFieldEnum = {
931
952
  id: 'id',
932
- prdId: 'prdId',
953
+ designId: 'designId',
933
954
  pageId: 'pageId',
934
955
  elementId: 'elementId',
935
956
  userId: 'userId',
@@ -956,7 +977,7 @@ export type CommentIgnoreScalarFieldEnum = (typeof CommentIgnoreScalarFieldEnum)
956
977
 
957
978
  export const ShareScalarFieldEnum = {
958
979
  id: 'id',
959
- prdId: 'prdId',
980
+ designId: 'designId',
960
981
  token: 'token',
961
982
  type: 'type',
962
983
  status: 'status',
@@ -970,39 +991,6 @@ export const ShareScalarFieldEnum = {
970
991
  export type ShareScalarFieldEnum = (typeof ShareScalarFieldEnum)[keyof typeof ShareScalarFieldEnum]
971
992
 
972
993
 
973
- export const TagScalarFieldEnum = {
974
- id: 'id',
975
- name: 'name',
976
- color: 'color',
977
- sortOrder: 'sortOrder',
978
- isHidden: 'isHidden',
979
- userId: 'userId',
980
- createdAt: 'createdAt',
981
- updatedAt: 'updatedAt'
982
- } as const
983
-
984
- export type TagScalarFieldEnum = (typeof TagScalarFieldEnum)[keyof typeof TagScalarFieldEnum]
985
-
986
-
987
- export const PRDTagScalarFieldEnum = {
988
- id: 'id',
989
- prdId: 'prdId',
990
- tagId: 'tagId',
991
- createdAt: 'createdAt'
992
- } as const
993
-
994
- export type PRDTagScalarFieldEnum = (typeof PRDTagScalarFieldEnum)[keyof typeof PRDTagScalarFieldEnum]
995
-
996
-
997
- export const ComponentTagScalarFieldEnum = {
998
- id: 'id',
999
- componentId: 'componentId',
1000
- tagId: 'tagId'
1001
- } as const
1002
-
1003
- export type ComponentTagScalarFieldEnum = (typeof ComponentTagScalarFieldEnum)[keyof typeof ComponentTagScalarFieldEnum]
1004
-
1005
-
1006
994
  export const ReferenceScalarFieldEnum = {
1007
995
  id: 'id',
1008
996
  sourceModule: 'sourceModule',
@@ -1111,53 +1099,6 @@ export const AnyHubRecommenderScalarFieldEnum = {
1111
1099
  export type AnyHubRecommenderScalarFieldEnum = (typeof AnyHubRecommenderScalarFieldEnum)[keyof typeof AnyHubRecommenderScalarFieldEnum]
1112
1100
 
1113
1101
 
1114
- export const DesignProjectScalarFieldEnum = {
1115
- id: 'id',
1116
- name: 'name',
1117
- documentId: 'documentId',
1118
- sketchName: 'sketchName',
1119
- version: 'version',
1120
- userId: 'userId',
1121
- createdAt: 'createdAt',
1122
- updatedAt: 'updatedAt'
1123
- } as const
1124
-
1125
- export type DesignProjectScalarFieldEnum = (typeof DesignProjectScalarFieldEnum)[keyof typeof DesignProjectScalarFieldEnum]
1126
-
1127
-
1128
- export const ArtboardScalarFieldEnum = {
1129
- id: 'id',
1130
- projectId: 'projectId',
1131
- name: 'name',
1132
- pageName: 'pageName',
1133
- width: 'width',
1134
- height: 'height',
1135
- pngPath: 'pngPath',
1136
- svgPath: 'svgPath',
1137
- annotationJson: 'annotationJson',
1138
- layerCount: 'layerCount',
1139
- sortOrder: 'sortOrder',
1140
- createdAt: 'createdAt'
1141
- } as const
1142
-
1143
- export type ArtboardScalarFieldEnum = (typeof ArtboardScalarFieldEnum)[keyof typeof ArtboardScalarFieldEnum]
1144
-
1145
-
1146
- export const ArtboardExportScalarFieldEnum = {
1147
- id: 'id',
1148
- artboardId: 'artboardId',
1149
- layerName: 'layerName',
1150
- layerId: 'layerId',
1151
- scale: 'scale',
1152
- format: 'format',
1153
- filePath: 'filePath',
1154
- width: 'width',
1155
- height: 'height'
1156
- } as const
1157
-
1158
- export type ArtboardExportScalarFieldEnum = (typeof ArtboardExportScalarFieldEnum)[keyof typeof ArtboardExportScalarFieldEnum]
1159
-
1160
-
1161
1102
  export const AiProviderScalarFieldEnum = {
1162
1103
  id: 'id',
1163
1104
  providerId: 'providerId',
@@ -1541,14 +1482,14 @@ export const StoryAttachmentScalarFieldEnum = {
1541
1482
  export type StoryAttachmentScalarFieldEnum = (typeof StoryAttachmentScalarFieldEnum)[keyof typeof StoryAttachmentScalarFieldEnum]
1542
1483
 
1543
1484
 
1544
- export const StoryPrdLinkScalarFieldEnum = {
1485
+ export const StoryDesignLinkScalarFieldEnum = {
1545
1486
  id: 'id',
1546
1487
  storyId: 'storyId',
1547
- prdId: 'prdId',
1488
+ designId: 'designId',
1548
1489
  createdAt: 'createdAt'
1549
1490
  } as const
1550
1491
 
1551
- export type StoryPrdLinkScalarFieldEnum = (typeof StoryPrdLinkScalarFieldEnum)[keyof typeof StoryPrdLinkScalarFieldEnum]
1492
+ export type StoryDesignLinkScalarFieldEnum = (typeof StoryDesignLinkScalarFieldEnum)[keyof typeof StoryDesignLinkScalarFieldEnum]
1552
1493
 
1553
1494
 
1554
1495
  export const StoryDocLinkScalarFieldEnum = {
@@ -2089,6 +2030,435 @@ export const BlobScalarFieldEnum = {
2089
2030
  export type BlobScalarFieldEnum = (typeof BlobScalarFieldEnum)[keyof typeof BlobScalarFieldEnum]
2090
2031
 
2091
2032
 
2033
+ export const BugScalarFieldEnum = {
2034
+ id: 'id',
2035
+ sequenceId: 'sequenceId',
2036
+ identifier: 'identifier',
2037
+ projectId: 'projectId',
2038
+ title: 'title',
2039
+ description: 'description',
2040
+ reproduceSteps: 'reproduceSteps',
2041
+ state: 'state',
2042
+ severity: 'severity',
2043
+ source: 'source',
2044
+ pendingConfirm: 'pendingConfirm',
2045
+ fingerprint: 'fingerprint',
2046
+ env: 'env',
2047
+ url: 'url',
2048
+ userAgent: 'userAgent',
2049
+ stackSummary: 'stackSummary',
2050
+ totalCount: 'totalCount',
2051
+ firstOccurAt: 'firstOccurAt',
2052
+ lastOccurAt: 'lastOccurAt',
2053
+ assigneeId: 'assigneeId',
2054
+ createdById: 'createdById',
2055
+ updatedById: 'updatedById',
2056
+ storyId: 'storyId',
2057
+ repoHints: 'repoHints',
2058
+ archived: 'archived',
2059
+ archivedAt: 'archivedAt',
2060
+ boardOrder: 'boardOrder',
2061
+ createdAt: 'createdAt',
2062
+ updatedAt: 'updatedAt'
2063
+ } as const
2064
+
2065
+ export type BugScalarFieldEnum = (typeof BugScalarFieldEnum)[keyof typeof BugScalarFieldEnum]
2066
+
2067
+
2068
+ export const BugEventScalarFieldEnum = {
2069
+ id: 'id',
2070
+ bugId: 'bugId',
2071
+ rawPayload: 'rawPayload',
2072
+ occurTime: 'occurTime',
2073
+ userAgent: 'userAgent'
2074
+ } as const
2075
+
2076
+ export type BugEventScalarFieldEnum = (typeof BugEventScalarFieldEnum)[keyof typeof BugEventScalarFieldEnum]
2077
+
2078
+
2079
+ export const BugActivityScalarFieldEnum = {
2080
+ id: 'id',
2081
+ bugId: 'bugId',
2082
+ userId: 'userId',
2083
+ actorType: 'actorType',
2084
+ agentName: 'agentName',
2085
+ action: 'action',
2086
+ field: 'field',
2087
+ oldValue: 'oldValue',
2088
+ newValue: 'newValue',
2089
+ isAI: 'isAI',
2090
+ metadata: 'metadata',
2091
+ createdAt: 'createdAt'
2092
+ } as const
2093
+
2094
+ export type BugActivityScalarFieldEnum = (typeof BugActivityScalarFieldEnum)[keyof typeof BugActivityScalarFieldEnum]
2095
+
2096
+
2097
+ export const BugCommentScalarFieldEnum = {
2098
+ id: 'id',
2099
+ bugId: 'bugId',
2100
+ userId: 'userId',
2101
+ parentId: 'parentId',
2102
+ content: 'content',
2103
+ createdAt: 'createdAt',
2104
+ updatedAt: 'updatedAt'
2105
+ } as const
2106
+
2107
+ export type BugCommentScalarFieldEnum = (typeof BugCommentScalarFieldEnum)[keyof typeof BugCommentScalarFieldEnum]
2108
+
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
+
2121
+ export const ProjectAccessTokenScalarFieldEnum = {
2122
+ id: 'id',
2123
+ projectId: 'projectId',
2124
+ name: 'name',
2125
+ scope: 'scope',
2126
+ tokenHash: 'tokenHash',
2127
+ tokenPrefix: 'tokenPrefix',
2128
+ config: 'config',
2129
+ lastUsedAt: 'lastUsedAt',
2130
+ revokedAt: 'revokedAt',
2131
+ createdById: 'createdById',
2132
+ createdAt: 'createdAt'
2133
+ } as const
2134
+
2135
+ export type ProjectAccessTokenScalarFieldEnum = (typeof ProjectAccessTokenScalarFieldEnum)[keyof typeof ProjectAccessTokenScalarFieldEnum]
2136
+
2137
+
2138
+ export const BugFixRunScalarFieldEnum = {
2139
+ id: 'id',
2140
+ bugId: 'bugId',
2141
+ status: 'status',
2142
+ triggerType: 'triggerType',
2143
+ agentName: 'agentName',
2144
+ claimedAt: 'claimedAt',
2145
+ completedAt: 'completedAt',
2146
+ summary: 'summary',
2147
+ createdAt: 'createdAt'
2148
+ } as const
2149
+
2150
+ export type BugFixRunScalarFieldEnum = (typeof BugFixRunScalarFieldEnum)[keyof typeof BugFixRunScalarFieldEnum]
2151
+
2152
+
2153
+ export const BugReproRunScalarFieldEnum = {
2154
+ id: 'id',
2155
+ bugId: 'bugId',
2156
+ mode: 'mode',
2157
+ status: 'status',
2158
+ report: 'report',
2159
+ error: 'error',
2160
+ createdById: 'createdById',
2161
+ createdAt: 'createdAt'
2162
+ } as const
2163
+
2164
+ export type BugReproRunScalarFieldEnum = (typeof BugReproRunScalarFieldEnum)[keyof typeof BugReproRunScalarFieldEnum]
2165
+
2166
+
2167
+ export const ProjectWebhookScalarFieldEnum = {
2168
+ id: 'id',
2169
+ projectId: 'projectId',
2170
+ url: 'url',
2171
+ secret: 'secret',
2172
+ events: 'events',
2173
+ enabled: 'enabled',
2174
+ createdAt: 'createdAt'
2175
+ } as const
2176
+
2177
+ export type ProjectWebhookScalarFieldEnum = (typeof ProjectWebhookScalarFieldEnum)[keyof typeof ProjectWebhookScalarFieldEnum]
2178
+
2179
+
2180
+ export const BugProjectSettingsScalarFieldEnum = {
2181
+ projectId: 'projectId',
2182
+ autoReportEnabled: 'autoReportEnabled',
2183
+ sampleRate: 'sampleRate',
2184
+ reopenOnDuplicate: 'reopenOnDuplicate',
2185
+ autoFixEnabled: 'autoFixEnabled',
2186
+ autoSubmitTestBugs: 'autoSubmitTestBugs',
2187
+ updatedAt: 'updatedAt'
2188
+ } as const
2189
+
2190
+ export type BugProjectSettingsScalarFieldEnum = (typeof BugProjectSettingsScalarFieldEnum)[keyof typeof BugProjectSettingsScalarFieldEnum]
2191
+
2192
+
2193
+ export const BugLabelScalarFieldEnum = {
2194
+ bugId: 'bugId',
2195
+ labelId: 'labelId'
2196
+ } as const
2197
+
2198
+ export type BugLabelScalarFieldEnum = (typeof BugLabelScalarFieldEnum)[keyof typeof BugLabelScalarFieldEnum]
2199
+
2200
+
2201
+ export const BugFilterViewScalarFieldEnum = {
2202
+ id: 'id',
2203
+ userId: 'userId',
2204
+ name: 'name',
2205
+ projectId: 'projectId',
2206
+ filters: 'filters',
2207
+ displayOptions: 'displayOptions',
2208
+ createdAt: 'createdAt',
2209
+ updatedAt: 'updatedAt'
2210
+ } as const
2211
+
2212
+ export type BugFilterViewScalarFieldEnum = (typeof BugFilterViewScalarFieldEnum)[keyof typeof BugFilterViewScalarFieldEnum]
2213
+
2214
+
2215
+ export const TestCaseScalarFieldEnum = {
2216
+ id: 'id',
2217
+ sequenceId: 'sequenceId',
2218
+ identifier: 'identifier',
2219
+ projectId: 'projectId',
2220
+ folderId: 'folderId',
2221
+ storyId: 'storyId',
2222
+ title: 'title',
2223
+ precondition: 'precondition',
2224
+ steps: 'steps',
2225
+ type: 'type',
2226
+ priority: 'priority',
2227
+ state: 'state',
2228
+ version: 'version',
2229
+ automation: 'automation',
2230
+ aiGenerated: 'aiGenerated',
2231
+ generationId: 'generationId',
2232
+ assigneeId: 'assigneeId',
2233
+ createdById: 'createdById',
2234
+ archived: 'archived',
2235
+ archivedAt: 'archivedAt',
2236
+ boardOrder: 'boardOrder',
2237
+ createdAt: 'createdAt',
2238
+ updatedAt: 'updatedAt'
2239
+ } as const
2240
+
2241
+ export type TestCaseScalarFieldEnum = (typeof TestCaseScalarFieldEnum)[keyof typeof TestCaseScalarFieldEnum]
2242
+
2243
+
2244
+ export const TestCaseFolderScalarFieldEnum = {
2245
+ id: 'id',
2246
+ projectId: 'projectId',
2247
+ parentId: 'parentId',
2248
+ name: 'name',
2249
+ position: 'position'
2250
+ } as const
2251
+
2252
+ export type TestCaseFolderScalarFieldEnum = (typeof TestCaseFolderScalarFieldEnum)[keyof typeof TestCaseFolderScalarFieldEnum]
2253
+
2254
+
2255
+ export const TestCaseFilterViewScalarFieldEnum = {
2256
+ id: 'id',
2257
+ userId: 'userId',
2258
+ name: 'name',
2259
+ description: 'description',
2260
+ icon: 'icon',
2261
+ projectId: 'projectId',
2262
+ filters: 'filters',
2263
+ displayOptions: 'displayOptions',
2264
+ sortOrder: 'sortOrder',
2265
+ createdAt: 'createdAt',
2266
+ updatedAt: 'updatedAt'
2267
+ } as const
2268
+
2269
+ export type TestCaseFilterViewScalarFieldEnum = (typeof TestCaseFilterViewScalarFieldEnum)[keyof typeof TestCaseFilterViewScalarFieldEnum]
2270
+
2271
+
2272
+ export const TestGenerationRunScalarFieldEnum = {
2273
+ id: 'id',
2274
+ projectId: 'projectId',
2275
+ storyId: 'storyId',
2276
+ status: 'status',
2277
+ error: 'error',
2278
+ input: 'input',
2279
+ output: 'output',
2280
+ draftCount: 'draftCount',
2281
+ adoptedCount: 'adoptedCount',
2282
+ createdById: 'createdById',
2283
+ createdAt: 'createdAt',
2284
+ completedAt: 'completedAt'
2285
+ } as const
2286
+
2287
+ export type TestGenerationRunScalarFieldEnum = (typeof TestGenerationRunScalarFieldEnum)[keyof typeof TestGenerationRunScalarFieldEnum]
2288
+
2289
+
2290
+ export const TestPlanScalarFieldEnum = {
2291
+ id: 'id',
2292
+ projectId: 'projectId',
2293
+ iterationId: 'iterationId',
2294
+ name: 'name',
2295
+ description: 'description',
2296
+ state: 'state',
2297
+ createdById: 'createdById',
2298
+ createdAt: 'createdAt',
2299
+ updatedAt: 'updatedAt'
2300
+ } as const
2301
+
2302
+ export type TestPlanScalarFieldEnum = (typeof TestPlanScalarFieldEnum)[keyof typeof TestPlanScalarFieldEnum]
2303
+
2304
+
2305
+ export const TestPlanCaseScalarFieldEnum = {
2306
+ id: 'id',
2307
+ planId: 'planId',
2308
+ caseId: 'caseId',
2309
+ createdAt: 'createdAt'
2310
+ } as const
2311
+
2312
+ export type TestPlanCaseScalarFieldEnum = (typeof TestPlanCaseScalarFieldEnum)[keyof typeof TestPlanCaseScalarFieldEnum]
2313
+
2314
+
2315
+ export const TestRunScalarFieldEnum = {
2316
+ id: 'id',
2317
+ projectId: 'projectId',
2318
+ planId: 'planId',
2319
+ name: 'name',
2320
+ trigger: 'trigger',
2321
+ executorType: 'executorType',
2322
+ targetEnv: 'targetEnv',
2323
+ status: 'status',
2324
+ summary: 'summary',
2325
+ startedAt: 'startedAt',
2326
+ completedAt: 'completedAt',
2327
+ createdById: 'createdById',
2328
+ createdAt: 'createdAt'
2329
+ } as const
2330
+
2331
+ export type TestRunScalarFieldEnum = (typeof TestRunScalarFieldEnum)[keyof typeof TestRunScalarFieldEnum]
2332
+
2333
+
2334
+ export const TestRunCaseScalarFieldEnum = {
2335
+ id: 'id',
2336
+ runId: 'runId',
2337
+ caseId: 'caseId',
2338
+ caseVersion: 'caseVersion',
2339
+ caseSnapshot: 'caseSnapshot',
2340
+ status: 'status',
2341
+ stepResults: 'stepResults',
2342
+ actualResult: 'actualResult',
2343
+ bugId: 'bugId',
2344
+ execRunId: 'execRunId',
2345
+ flaky: 'flaky',
2346
+ fingerprint: 'fingerprint',
2347
+ startedAt: 'startedAt',
2348
+ finishedAt: 'finishedAt',
2349
+ durationMs: 'durationMs',
2350
+ executedById: 'executedById'
2351
+ } as const
2352
+
2353
+ export type TestRunCaseScalarFieldEnum = (typeof TestRunCaseScalarFieldEnum)[keyof typeof TestRunCaseScalarFieldEnum]
2354
+
2355
+
2356
+ export const TestExecRunScalarFieldEnum = {
2357
+ id: 'id',
2358
+ runCaseId: 'runCaseId',
2359
+ mode: 'mode',
2360
+ status: 'status',
2361
+ agentName: 'agentName',
2362
+ report: 'report',
2363
+ error: 'error',
2364
+ claimedAt: 'claimedAt',
2365
+ completedAt: 'completedAt',
2366
+ createdAt: 'createdAt'
2367
+ } as const
2368
+
2369
+ export type TestExecRunScalarFieldEnum = (typeof TestExecRunScalarFieldEnum)[keyof typeof TestExecRunScalarFieldEnum]
2370
+
2371
+
2372
+ export const TestAutomationArtifactScalarFieldEnum = {
2373
+ id: 'id',
2374
+ caseId: 'caseId',
2375
+ caseVersion: 'caseVersion',
2376
+ kind: 'kind',
2377
+ status: 'status',
2378
+ language: 'language',
2379
+ code: 'code',
2380
+ targetPath: 'targetPath',
2381
+ verifyRun: 'verifyRun',
2382
+ createdById: 'createdById',
2383
+ createdAt: 'createdAt',
2384
+ adoptedAt: 'adoptedAt'
2385
+ } as const
2386
+
2387
+ export type TestAutomationArtifactScalarFieldEnum = (typeof TestAutomationArtifactScalarFieldEnum)[keyof typeof TestAutomationArtifactScalarFieldEnum]
2388
+
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
+
2092
2462
  export const SortOrder = {
2093
2463
  asc: 'asc',
2094
2464
  desc: 'desc'