@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.
Files changed (131) hide show
  1. package/desktop-init.ts +2 -2
  2. package/dist/lib/share-utils.js +3 -3
  3. package/generated/browser.ts +115 -25
  4. package/generated/client.ts +115 -25
  5. package/generated/commonInputTypes.ts +34 -0
  6. package/generated/enums.ts +14 -0
  7. package/generated/internal/class.ts +234 -54
  8. package/generated/internal/prismaNamespace.ts +2190 -511
  9. package/generated/internal/prismaNamespaceBrowser.ts +391 -76
  10. package/generated/models/AgentConversation.ts +89 -89
  11. package/generated/models/AiProvider.ts +3 -3
  12. package/generated/models/AiStreamChunk.ts +3 -3
  13. package/generated/models/AnyHubMarketApp.ts +8 -8
  14. package/generated/models/AuditLog.ts +6 -6
  15. package/generated/models/BlockInstance.ts +17 -17
  16. package/generated/models/Bug.ts +5023 -0
  17. package/generated/models/BugActivity.ts +1765 -0
  18. package/generated/models/BugComment.ts +1853 -0
  19. package/generated/models/BugEvent.ts +1339 -0
  20. package/generated/models/BugFilterView.ts +1438 -0
  21. package/generated/models/BugFixRun.ts +1479 -0
  22. package/generated/models/BugLabel.ts +1349 -0
  23. package/generated/models/BugProjectSettings.ts +1403 -0
  24. package/generated/models/BugReproRun.ts +1582 -0
  25. package/generated/models/ChatPersistenceMeta.ts +3 -3
  26. package/generated/models/Comment.ts +99 -99
  27. package/generated/models/Component.ts +9 -9
  28. package/generated/models/ComponentInstance.ts +17 -17
  29. package/generated/models/CustomRole.ts +8 -8
  30. package/generated/models/Design.ts +2872 -0
  31. package/generated/models/DesignPage.ts +2402 -0
  32. package/generated/models/DesignTag.ts +1430 -0
  33. package/generated/models/DesignVersion.ts +2121 -0
  34. package/generated/models/DesktopSetting.ts +3 -3
  35. package/generated/models/Iteration.ts +148 -0
  36. package/generated/models/Label.ts +118 -0
  37. package/generated/models/LicenseKey.ts +16 -16
  38. package/generated/models/NotificationPreference.ts +5 -5
  39. package/generated/models/PageVersion.ts +49 -49
  40. package/generated/models/Plan.ts +5 -5
  41. package/generated/models/Project.ts +1970 -58
  42. package/generated/models/ProjectAccessToken.ts +1705 -0
  43. package/generated/models/ProjectWebhook.ts +1409 -0
  44. package/generated/models/Review.ts +118 -118
  45. package/generated/models/Share.ts +83 -83
  46. package/generated/models/ShareVersion.ts +15 -15
  47. package/generated/models/SsoProvider.ts +8 -8
  48. package/generated/models/Story.ts +973 -87
  49. package/generated/models/StoryDesignLink.ts +1430 -0
  50. package/generated/models/StoryFilterView.ts +12 -12
  51. package/generated/models/SystemPromptVersion.ts +6 -6
  52. package/generated/models/Tag.ts +49 -49
  53. package/generated/models/TestAutomationArtifact.ts +1790 -0
  54. package/generated/models/TestCase.ts +3568 -0
  55. package/generated/models/TestCaseFilterView.ts +1587 -0
  56. package/generated/models/TestCaseFolder.ts +1795 -0
  57. package/generated/models/TestExecRun.ts +1673 -0
  58. package/generated/models/TestGenerationRun.ts +1952 -0
  59. package/generated/models/TestPlan.ts +1950 -0
  60. package/generated/models/TestPlanCase.ts +1430 -0
  61. package/generated/models/TestRun.ts +1979 -0
  62. package/generated/models/TestRunCase.ts +2772 -0
  63. package/generated/models/ThirdPartyDependency.ts +19 -15
  64. package/generated/models/User.ts +12141 -2721
  65. package/generated/models.ts +26 -8
  66. package/generated-sqlite/browser.ts +8 -23
  67. package/generated-sqlite/client.ts +8 -23
  68. package/generated-sqlite/internal/class.ts +20 -50
  69. package/generated-sqlite/internal/prismaNamespace.ts +166 -437
  70. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +25 -71
  71. package/generated-sqlite/models/AgentConversation.ts +89 -89
  72. package/generated-sqlite/models/AiProvider.ts +3 -3
  73. package/generated-sqlite/models/AiStreamChunk.ts +3 -3
  74. package/generated-sqlite/models/AnyHubMarketApp.ts +8 -8
  75. package/generated-sqlite/models/BlockInstance.ts +17 -17
  76. package/generated-sqlite/models/ChatPersistenceMeta.ts +3 -3
  77. package/generated-sqlite/models/Comment.ts +99 -99
  78. package/generated-sqlite/models/Component.ts +9 -9
  79. package/generated-sqlite/models/ComponentInstance.ts +17 -17
  80. package/generated-sqlite/models/Design.ts +2679 -0
  81. package/generated-sqlite/models/DesignPage.ts +2398 -0
  82. package/generated-sqlite/models/DesignTag.ts +1426 -0
  83. package/generated-sqlite/models/DesignVersion.ts +2117 -0
  84. package/generated-sqlite/models/DesktopSetting.ts +3 -3
  85. package/generated-sqlite/models/KnowledgeBase.ts +240 -1
  86. package/generated-sqlite/models/NotificationPreference.ts +5 -5
  87. package/generated-sqlite/models/PageVersion.ts +49 -49
  88. package/generated-sqlite/models/Review.ts +118 -118
  89. package/generated-sqlite/models/Share.ts +83 -83
  90. package/generated-sqlite/models/ShareVersion.ts +15 -15
  91. package/generated-sqlite/models/SystemPromptVersion.ts +6 -6
  92. package/generated-sqlite/models/Tag.ts +49 -49
  93. package/generated-sqlite/models/User.ts +1201 -1321
  94. package/generated-sqlite/models/Workspace.ts +164 -0
  95. package/generated-sqlite/models.ts +4 -7
  96. package/index.ts +17 -3
  97. package/migrations/20260924084200_add_prd_kind_drop_design_sketch/migration.sql +24 -0
  98. package/migrations/20260924123118_drop_user_sketch_api_token/migration.sql +8 -0
  99. package/migrations/20260925011516_rename_prd_tables/migration.sql +189 -0
  100. package/migrations/20260925064226_rename_prd_columns/migration.sql +193 -0
  101. package/migrations/20260925080000_rename_prd_embeddings/migration.sql +43 -0
  102. package/migrations/20261002184838_bug_module_init/migration.sql +297 -0
  103. package/migrations/20261004234209_testcase_module_init/migration.sql +290 -0
  104. package/migrations/20261005090000_testcase_plan_cases/migration.sql +34 -0
  105. package/migrations/20261006151229_add_missing_fk_indexes_auth_billing/migration.sql +50 -0
  106. package/migrations/20261006152058_add_missing_fk_indexes_story_bug_test/migration.sql +59 -0
  107. package/migrations/20261006152153_add_missing_fk_indexes_design_misc/migration.sql +50 -0
  108. package/migrations/20261006184250_explicit_on_delete_core/migration.sql +33 -0
  109. package/migrations/20261006184604_explicit_on_delete_rest/migration.sql +117 -0
  110. package/migrations/20261006184932_json_column_defaults/migration.sql +74 -0
  111. package/migrations/20261006191724_revert_version_token_cascade/migration.sql +21 -0
  112. package/migrations/20261007025537_dependency_category_enum/migration.sql +22 -0
  113. package/package.json +2 -2
  114. package/schema.prisma +687 -177
  115. package/schema.sqlite.prisma +149 -151
  116. package/src/lib/share-utils.ts +2 -2
  117. package/generated/models/Artboard.ts +0 -1811
  118. package/generated/models/ArtboardExport.ts +0 -1548
  119. package/generated/models/DesignProject.ts +0 -1643
  120. package/generated/models/PRD.ts +0 -2805
  121. package/generated/models/PRDPage.ts +0 -2402
  122. package/generated/models/PRDTag.ts +0 -1430
  123. package/generated/models/PRDVersion.ts +0 -2121
  124. package/generated/models/StoryPrdLink.ts +0 -1430
  125. package/generated-sqlite/models/Artboard.ts +0 -1808
  126. package/generated-sqlite/models/ArtboardExport.ts +0 -1545
  127. package/generated-sqlite/models/DesignProject.ts +0 -1640
  128. package/generated-sqlite/models/PRD.ts +0 -2616
  129. package/generated-sqlite/models/PRDPage.ts +0 -2398
  130. package/generated-sqlite/models/PRDTag.ts +0 -1426
  131. package/generated-sqlite/models/PRDVersion.ts +0 -2117
@@ -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,10 +91,10 @@ 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',
@@ -102,7 +102,7 @@ export const ModelName = {
102
102
  CommentIgnore: 'CommentIgnore',
103
103
  Share: 'Share',
104
104
  Tag: 'Tag',
105
- PRDTag: 'PRDTag',
105
+ DesignTag: 'DesignTag',
106
106
  ComponentTag: 'ComponentTag',
107
107
  Reference: 'Reference',
108
108
  ShareVersion: 'ShareVersion',
@@ -111,9 +111,6 @@ export const ModelName = {
111
111
  AnyHubMarketApp: 'AnyHubMarketApp',
112
112
  AnyHubRecommendation: 'AnyHubRecommendation',
113
113
  AnyHubRecommender: 'AnyHubRecommender',
114
- DesignProject: 'DesignProject',
115
- Artboard: 'Artboard',
116
- ArtboardExport: 'ArtboardExport',
117
114
  AiProvider: 'AiProvider',
118
115
  AiProviderConfig: 'AiProviderConfig',
119
116
  ThirdPartyDependency: 'ThirdPartyDependency',
@@ -138,7 +135,7 @@ export const ModelName = {
138
135
  WorkspaceQuickDoc: 'WorkspaceQuickDoc',
139
136
  StoryLink: 'StoryLink',
140
137
  StoryAttachment: 'StoryAttachment',
141
- StoryPrdLink: 'StoryPrdLink',
138
+ StoryDesignLink: 'StoryDesignLink',
142
139
  StoryDocLink: 'StoryDocLink',
143
140
  StoryExternalLink: 'StoryExternalLink',
144
141
  StoryFilterView: 'StoryFilterView',
@@ -173,7 +170,28 @@ export const ModelName = {
173
170
  DesktopSetting: 'DesktopSetting',
174
171
  HarnessWorkspace: 'HarnessWorkspace',
175
172
  WorkspaceFile: 'WorkspaceFile',
176
- Blob: 'Blob'
173
+ Blob: 'Blob',
174
+ Bug: 'Bug',
175
+ BugEvent: 'BugEvent',
176
+ BugActivity: 'BugActivity',
177
+ BugComment: 'BugComment',
178
+ ProjectAccessToken: 'ProjectAccessToken',
179
+ BugFixRun: 'BugFixRun',
180
+ BugReproRun: 'BugReproRun',
181
+ ProjectWebhook: 'ProjectWebhook',
182
+ BugProjectSettings: 'BugProjectSettings',
183
+ BugLabel: 'BugLabel',
184
+ BugFilterView: 'BugFilterView',
185
+ TestCase: 'TestCase',
186
+ TestCaseFolder: 'TestCaseFolder',
187
+ TestCaseFilterView: 'TestCaseFilterView',
188
+ TestGenerationRun: 'TestGenerationRun',
189
+ TestPlan: 'TestPlan',
190
+ TestPlanCase: 'TestPlanCase',
191
+ TestRun: 'TestRun',
192
+ TestRunCase: 'TestRunCase',
193
+ TestExecRun: 'TestExecRun',
194
+ TestAutomationArtifact: 'TestAutomationArtifact'
177
195
  } as const
178
196
 
179
197
  export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -226,7 +244,6 @@ export const UserScalarFieldEnum = {
226
244
  aiSourceMode: 'aiSourceMode',
227
245
  locale: 'locale',
228
246
  storyDisplayOptions: 'storyDisplayOptions',
229
- sketchApiToken: 'sketchApiToken',
230
247
  timezone: 'timezone',
231
248
  preferredCurrency: 'preferredCurrency',
232
249
  defaultWorkspaceId: 'defaultWorkspaceId'
@@ -684,11 +701,12 @@ export const KnowledgeDocumentScalarFieldEnum = {
684
701
  export type KnowledgeDocumentScalarFieldEnum = (typeof KnowledgeDocumentScalarFieldEnum)[keyof typeof KnowledgeDocumentScalarFieldEnum]
685
702
 
686
703
 
687
- export const PRDScalarFieldEnum = {
704
+ export const DesignScalarFieldEnum = {
688
705
  id: 'id',
689
706
  icon: 'icon',
690
707
  name: 'name',
691
708
  description: 'description',
709
+ kind: 'kind',
692
710
  settings: 'settings',
693
711
  userId: 'userId',
694
712
  isDeleted: 'isDeleted',
@@ -697,13 +715,13 @@ export const PRDScalarFieldEnum = {
697
715
  updatedAt: 'updatedAt'
698
716
  } as const
699
717
 
700
- export type PRDScalarFieldEnum = (typeof PRDScalarFieldEnum)[keyof typeof PRDScalarFieldEnum]
718
+ export type DesignScalarFieldEnum = (typeof DesignScalarFieldEnum)[keyof typeof DesignScalarFieldEnum]
701
719
 
702
720
 
703
721
  export const AgentConversationScalarFieldEnum = {
704
722
  id: 'id',
705
723
  userId: 'userId',
706
- prdId: 'prdId',
724
+ designId: 'designId',
707
725
  title: 'title',
708
726
  createdAt: 'createdAt',
709
727
  updatedAt: 'updatedAt'
@@ -810,9 +828,9 @@ export const TemplateBlockScalarFieldEnum = {
810
828
  export type TemplateBlockScalarFieldEnum = (typeof TemplateBlockScalarFieldEnum)[keyof typeof TemplateBlockScalarFieldEnum]
811
829
 
812
830
 
813
- export const PRDPageScalarFieldEnum = {
831
+ export const DesignPageScalarFieldEnum = {
814
832
  id: 'id',
815
- prdId: 'prdId',
833
+ designId: 'designId',
816
834
  parentId: 'parentId',
817
835
  name: 'name',
818
836
  order: 'order',
@@ -824,7 +842,7 @@ export const PRDPageScalarFieldEnum = {
824
842
  updatedAt: 'updatedAt'
825
843
  } as const
826
844
 
827
- export type PRDPageScalarFieldEnum = (typeof PRDPageScalarFieldEnum)[keyof typeof PRDPageScalarFieldEnum]
845
+ export type DesignPageScalarFieldEnum = (typeof DesignPageScalarFieldEnum)[keyof typeof DesignPageScalarFieldEnum]
828
846
 
829
847
 
830
848
  export const ComponentInstanceScalarFieldEnum = {
@@ -866,9 +884,9 @@ export const BlockInstanceScalarFieldEnum = {
866
884
  export type BlockInstanceScalarFieldEnum = (typeof BlockInstanceScalarFieldEnum)[keyof typeof BlockInstanceScalarFieldEnum]
867
885
 
868
886
 
869
- export const PRDVersionScalarFieldEnum = {
887
+ export const DesignVersionScalarFieldEnum = {
870
888
  id: 'id',
871
- prdId: 'prdId',
889
+ designId: 'designId',
872
890
  major: 'major',
873
891
  minor: 'minor',
874
892
  patch: 'patch',
@@ -881,7 +899,7 @@ export const PRDVersionScalarFieldEnum = {
881
899
  updatedAt: 'updatedAt'
882
900
  } as const
883
901
 
884
- export type PRDVersionScalarFieldEnum = (typeof PRDVersionScalarFieldEnum)[keyof typeof PRDVersionScalarFieldEnum]
902
+ export type DesignVersionScalarFieldEnum = (typeof DesignVersionScalarFieldEnum)[keyof typeof DesignVersionScalarFieldEnum]
885
903
 
886
904
 
887
905
  export const PageVersionScalarFieldEnum = {
@@ -892,7 +910,7 @@ export const PageVersionScalarFieldEnum = {
892
910
  canvas: 'canvas',
893
911
  content: 'content',
894
912
  restoredFromVersion: 'restoredFromVersion',
895
- fromPRDVersionId: 'fromPRDVersionId',
913
+ fromDesignVersionId: 'fromDesignVersionId',
896
914
  createdAt: 'createdAt'
897
915
  } as const
898
916
 
@@ -901,7 +919,7 @@ export type PageVersionScalarFieldEnum = (typeof PageVersionScalarFieldEnum)[key
901
919
 
902
920
  export const ReviewScalarFieldEnum = {
903
921
  id: 'id',
904
- prdId: 'prdId',
922
+ designId: 'designId',
905
923
  versionId: 'versionId',
906
924
  status: 'status',
907
925
  reviewerId: 'reviewerId',
@@ -929,7 +947,7 @@ export type ReviewCommentScalarFieldEnum = (typeof ReviewCommentScalarFieldEnum)
929
947
 
930
948
  export const CommentScalarFieldEnum = {
931
949
  id: 'id',
932
- prdId: 'prdId',
950
+ designId: 'designId',
933
951
  pageId: 'pageId',
934
952
  elementId: 'elementId',
935
953
  userId: 'userId',
@@ -956,7 +974,7 @@ export type CommentIgnoreScalarFieldEnum = (typeof CommentIgnoreScalarFieldEnum)
956
974
 
957
975
  export const ShareScalarFieldEnum = {
958
976
  id: 'id',
959
- prdId: 'prdId',
977
+ designId: 'designId',
960
978
  token: 'token',
961
979
  type: 'type',
962
980
  status: 'status',
@@ -984,14 +1002,14 @@ export const TagScalarFieldEnum = {
984
1002
  export type TagScalarFieldEnum = (typeof TagScalarFieldEnum)[keyof typeof TagScalarFieldEnum]
985
1003
 
986
1004
 
987
- export const PRDTagScalarFieldEnum = {
1005
+ export const DesignTagScalarFieldEnum = {
988
1006
  id: 'id',
989
- prdId: 'prdId',
1007
+ designId: 'designId',
990
1008
  tagId: 'tagId',
991
1009
  createdAt: 'createdAt'
992
1010
  } as const
993
1011
 
994
- export type PRDTagScalarFieldEnum = (typeof PRDTagScalarFieldEnum)[keyof typeof PRDTagScalarFieldEnum]
1012
+ export type DesignTagScalarFieldEnum = (typeof DesignTagScalarFieldEnum)[keyof typeof DesignTagScalarFieldEnum]
995
1013
 
996
1014
 
997
1015
  export const ComponentTagScalarFieldEnum = {
@@ -1111,53 +1129,6 @@ export const AnyHubRecommenderScalarFieldEnum = {
1111
1129
  export type AnyHubRecommenderScalarFieldEnum = (typeof AnyHubRecommenderScalarFieldEnum)[keyof typeof AnyHubRecommenderScalarFieldEnum]
1112
1130
 
1113
1131
 
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
1132
  export const AiProviderScalarFieldEnum = {
1162
1133
  id: 'id',
1163
1134
  providerId: 'providerId',
@@ -1541,14 +1512,14 @@ export const StoryAttachmentScalarFieldEnum = {
1541
1512
  export type StoryAttachmentScalarFieldEnum = (typeof StoryAttachmentScalarFieldEnum)[keyof typeof StoryAttachmentScalarFieldEnum]
1542
1513
 
1543
1514
 
1544
- export const StoryPrdLinkScalarFieldEnum = {
1515
+ export const StoryDesignLinkScalarFieldEnum = {
1545
1516
  id: 'id',
1546
1517
  storyId: 'storyId',
1547
- prdId: 'prdId',
1518
+ designId: 'designId',
1548
1519
  createdAt: 'createdAt'
1549
1520
  } as const
1550
1521
 
1551
- export type StoryPrdLinkScalarFieldEnum = (typeof StoryPrdLinkScalarFieldEnum)[keyof typeof StoryPrdLinkScalarFieldEnum]
1522
+ export type StoryDesignLinkScalarFieldEnum = (typeof StoryDesignLinkScalarFieldEnum)[keyof typeof StoryDesignLinkScalarFieldEnum]
1552
1523
 
1553
1524
 
1554
1525
  export const StoryDocLinkScalarFieldEnum = {
@@ -2089,6 +2060,350 @@ export const BlobScalarFieldEnum = {
2089
2060
  export type BlobScalarFieldEnum = (typeof BlobScalarFieldEnum)[keyof typeof BlobScalarFieldEnum]
2090
2061
 
2091
2062
 
2063
+ export const BugScalarFieldEnum = {
2064
+ id: 'id',
2065
+ sequenceId: 'sequenceId',
2066
+ identifier: 'identifier',
2067
+ projectId: 'projectId',
2068
+ title: 'title',
2069
+ description: 'description',
2070
+ reproduceSteps: 'reproduceSteps',
2071
+ state: 'state',
2072
+ severity: 'severity',
2073
+ source: 'source',
2074
+ pendingConfirm: 'pendingConfirm',
2075
+ fingerprint: 'fingerprint',
2076
+ env: 'env',
2077
+ url: 'url',
2078
+ userAgent: 'userAgent',
2079
+ stackSummary: 'stackSummary',
2080
+ totalCount: 'totalCount',
2081
+ firstOccurAt: 'firstOccurAt',
2082
+ lastOccurAt: 'lastOccurAt',
2083
+ assigneeId: 'assigneeId',
2084
+ createdById: 'createdById',
2085
+ updatedById: 'updatedById',
2086
+ storyId: 'storyId',
2087
+ repoHints: 'repoHints',
2088
+ archived: 'archived',
2089
+ archivedAt: 'archivedAt',
2090
+ createdAt: 'createdAt',
2091
+ updatedAt: 'updatedAt'
2092
+ } as const
2093
+
2094
+ export type BugScalarFieldEnum = (typeof BugScalarFieldEnum)[keyof typeof BugScalarFieldEnum]
2095
+
2096
+
2097
+ export const BugEventScalarFieldEnum = {
2098
+ id: 'id',
2099
+ bugId: 'bugId',
2100
+ rawPayload: 'rawPayload',
2101
+ occurTime: 'occurTime',
2102
+ userAgent: 'userAgent'
2103
+ } as const
2104
+
2105
+ export type BugEventScalarFieldEnum = (typeof BugEventScalarFieldEnum)[keyof typeof BugEventScalarFieldEnum]
2106
+
2107
+
2108
+ export const BugActivityScalarFieldEnum = {
2109
+ id: 'id',
2110
+ bugId: 'bugId',
2111
+ userId: 'userId',
2112
+ actorType: 'actorType',
2113
+ agentName: 'agentName',
2114
+ action: 'action',
2115
+ field: 'field',
2116
+ oldValue: 'oldValue',
2117
+ newValue: 'newValue',
2118
+ isAI: 'isAI',
2119
+ metadata: 'metadata',
2120
+ createdAt: 'createdAt'
2121
+ } as const
2122
+
2123
+ export type BugActivityScalarFieldEnum = (typeof BugActivityScalarFieldEnum)[keyof typeof BugActivityScalarFieldEnum]
2124
+
2125
+
2126
+ export const BugCommentScalarFieldEnum = {
2127
+ id: 'id',
2128
+ bugId: 'bugId',
2129
+ userId: 'userId',
2130
+ parentId: 'parentId',
2131
+ content: 'content',
2132
+ createdAt: 'createdAt',
2133
+ updatedAt: 'updatedAt'
2134
+ } as const
2135
+
2136
+ export type BugCommentScalarFieldEnum = (typeof BugCommentScalarFieldEnum)[keyof typeof BugCommentScalarFieldEnum]
2137
+
2138
+
2139
+ export const ProjectAccessTokenScalarFieldEnum = {
2140
+ id: 'id',
2141
+ projectId: 'projectId',
2142
+ name: 'name',
2143
+ scope: 'scope',
2144
+ tokenHash: 'tokenHash',
2145
+ tokenPrefix: 'tokenPrefix',
2146
+ config: 'config',
2147
+ lastUsedAt: 'lastUsedAt',
2148
+ revokedAt: 'revokedAt',
2149
+ createdById: 'createdById',
2150
+ createdAt: 'createdAt'
2151
+ } as const
2152
+
2153
+ export type ProjectAccessTokenScalarFieldEnum = (typeof ProjectAccessTokenScalarFieldEnum)[keyof typeof ProjectAccessTokenScalarFieldEnum]
2154
+
2155
+
2156
+ export const BugFixRunScalarFieldEnum = {
2157
+ id: 'id',
2158
+ bugId: 'bugId',
2159
+ status: 'status',
2160
+ triggerType: 'triggerType',
2161
+ agentName: 'agentName',
2162
+ claimedAt: 'claimedAt',
2163
+ completedAt: 'completedAt',
2164
+ summary: 'summary',
2165
+ createdAt: 'createdAt'
2166
+ } as const
2167
+
2168
+ export type BugFixRunScalarFieldEnum = (typeof BugFixRunScalarFieldEnum)[keyof typeof BugFixRunScalarFieldEnum]
2169
+
2170
+
2171
+ export const BugReproRunScalarFieldEnum = {
2172
+ id: 'id',
2173
+ bugId: 'bugId',
2174
+ mode: 'mode',
2175
+ status: 'status',
2176
+ report: 'report',
2177
+ error: 'error',
2178
+ createdById: 'createdById',
2179
+ createdAt: 'createdAt'
2180
+ } as const
2181
+
2182
+ export type BugReproRunScalarFieldEnum = (typeof BugReproRunScalarFieldEnum)[keyof typeof BugReproRunScalarFieldEnum]
2183
+
2184
+
2185
+ export const ProjectWebhookScalarFieldEnum = {
2186
+ id: 'id',
2187
+ projectId: 'projectId',
2188
+ url: 'url',
2189
+ secret: 'secret',
2190
+ events: 'events',
2191
+ enabled: 'enabled',
2192
+ createdAt: 'createdAt'
2193
+ } as const
2194
+
2195
+ export type ProjectWebhookScalarFieldEnum = (typeof ProjectWebhookScalarFieldEnum)[keyof typeof ProjectWebhookScalarFieldEnum]
2196
+
2197
+
2198
+ export const BugProjectSettingsScalarFieldEnum = {
2199
+ projectId: 'projectId',
2200
+ autoReportEnabled: 'autoReportEnabled',
2201
+ sampleRate: 'sampleRate',
2202
+ reopenOnDuplicate: 'reopenOnDuplicate',
2203
+ autoFixEnabled: 'autoFixEnabled',
2204
+ autoSubmitTestBugs: 'autoSubmitTestBugs',
2205
+ updatedAt: 'updatedAt'
2206
+ } as const
2207
+
2208
+ export type BugProjectSettingsScalarFieldEnum = (typeof BugProjectSettingsScalarFieldEnum)[keyof typeof BugProjectSettingsScalarFieldEnum]
2209
+
2210
+
2211
+ export const BugLabelScalarFieldEnum = {
2212
+ bugId: 'bugId',
2213
+ labelId: 'labelId'
2214
+ } as const
2215
+
2216
+ export type BugLabelScalarFieldEnum = (typeof BugLabelScalarFieldEnum)[keyof typeof BugLabelScalarFieldEnum]
2217
+
2218
+
2219
+ export const BugFilterViewScalarFieldEnum = {
2220
+ id: 'id',
2221
+ userId: 'userId',
2222
+ name: 'name',
2223
+ projectId: 'projectId',
2224
+ filters: 'filters',
2225
+ displayOptions: 'displayOptions',
2226
+ createdAt: 'createdAt',
2227
+ updatedAt: 'updatedAt'
2228
+ } as const
2229
+
2230
+ export type BugFilterViewScalarFieldEnum = (typeof BugFilterViewScalarFieldEnum)[keyof typeof BugFilterViewScalarFieldEnum]
2231
+
2232
+
2233
+ export const TestCaseScalarFieldEnum = {
2234
+ id: 'id',
2235
+ sequenceId: 'sequenceId',
2236
+ identifier: 'identifier',
2237
+ projectId: 'projectId',
2238
+ folderId: 'folderId',
2239
+ storyId: 'storyId',
2240
+ title: 'title',
2241
+ precondition: 'precondition',
2242
+ steps: 'steps',
2243
+ type: 'type',
2244
+ priority: 'priority',
2245
+ state: 'state',
2246
+ version: 'version',
2247
+ automation: 'automation',
2248
+ aiGenerated: 'aiGenerated',
2249
+ generationId: 'generationId',
2250
+ assigneeId: 'assigneeId',
2251
+ createdById: 'createdById',
2252
+ archived: 'archived',
2253
+ archivedAt: 'archivedAt',
2254
+ createdAt: 'createdAt',
2255
+ updatedAt: 'updatedAt'
2256
+ } as const
2257
+
2258
+ export type TestCaseScalarFieldEnum = (typeof TestCaseScalarFieldEnum)[keyof typeof TestCaseScalarFieldEnum]
2259
+
2260
+
2261
+ export const TestCaseFolderScalarFieldEnum = {
2262
+ id: 'id',
2263
+ projectId: 'projectId',
2264
+ parentId: 'parentId',
2265
+ name: 'name',
2266
+ position: 'position'
2267
+ } as const
2268
+
2269
+ export type TestCaseFolderScalarFieldEnum = (typeof TestCaseFolderScalarFieldEnum)[keyof typeof TestCaseFolderScalarFieldEnum]
2270
+
2271
+
2272
+ export const TestCaseFilterViewScalarFieldEnum = {
2273
+ id: 'id',
2274
+ userId: 'userId',
2275
+ name: 'name',
2276
+ description: 'description',
2277
+ icon: 'icon',
2278
+ projectId: 'projectId',
2279
+ filters: 'filters',
2280
+ displayOptions: 'displayOptions',
2281
+ sortOrder: 'sortOrder',
2282
+ createdAt: 'createdAt',
2283
+ updatedAt: 'updatedAt'
2284
+ } as const
2285
+
2286
+ export type TestCaseFilterViewScalarFieldEnum = (typeof TestCaseFilterViewScalarFieldEnum)[keyof typeof TestCaseFilterViewScalarFieldEnum]
2287
+
2288
+
2289
+ export const TestGenerationRunScalarFieldEnum = {
2290
+ id: 'id',
2291
+ projectId: 'projectId',
2292
+ storyId: 'storyId',
2293
+ status: 'status',
2294
+ error: 'error',
2295
+ input: 'input',
2296
+ output: 'output',
2297
+ draftCount: 'draftCount',
2298
+ adoptedCount: 'adoptedCount',
2299
+ createdById: 'createdById',
2300
+ createdAt: 'createdAt',
2301
+ completedAt: 'completedAt'
2302
+ } as const
2303
+
2304
+ export type TestGenerationRunScalarFieldEnum = (typeof TestGenerationRunScalarFieldEnum)[keyof typeof TestGenerationRunScalarFieldEnum]
2305
+
2306
+
2307
+ export const TestPlanScalarFieldEnum = {
2308
+ id: 'id',
2309
+ projectId: 'projectId',
2310
+ iterationId: 'iterationId',
2311
+ name: 'name',
2312
+ description: 'description',
2313
+ state: 'state',
2314
+ createdById: 'createdById',
2315
+ createdAt: 'createdAt',
2316
+ updatedAt: 'updatedAt'
2317
+ } as const
2318
+
2319
+ export type TestPlanScalarFieldEnum = (typeof TestPlanScalarFieldEnum)[keyof typeof TestPlanScalarFieldEnum]
2320
+
2321
+
2322
+ export const TestPlanCaseScalarFieldEnum = {
2323
+ id: 'id',
2324
+ planId: 'planId',
2325
+ caseId: 'caseId',
2326
+ createdAt: 'createdAt'
2327
+ } as const
2328
+
2329
+ export type TestPlanCaseScalarFieldEnum = (typeof TestPlanCaseScalarFieldEnum)[keyof typeof TestPlanCaseScalarFieldEnum]
2330
+
2331
+
2332
+ export const TestRunScalarFieldEnum = {
2333
+ id: 'id',
2334
+ projectId: 'projectId',
2335
+ planId: 'planId',
2336
+ name: 'name',
2337
+ trigger: 'trigger',
2338
+ executorType: 'executorType',
2339
+ targetEnv: 'targetEnv',
2340
+ status: 'status',
2341
+ summary: 'summary',
2342
+ startedAt: 'startedAt',
2343
+ completedAt: 'completedAt',
2344
+ createdById: 'createdById',
2345
+ createdAt: 'createdAt'
2346
+ } as const
2347
+
2348
+ export type TestRunScalarFieldEnum = (typeof TestRunScalarFieldEnum)[keyof typeof TestRunScalarFieldEnum]
2349
+
2350
+
2351
+ export const TestRunCaseScalarFieldEnum = {
2352
+ id: 'id',
2353
+ runId: 'runId',
2354
+ caseId: 'caseId',
2355
+ caseVersion: 'caseVersion',
2356
+ caseSnapshot: 'caseSnapshot',
2357
+ status: 'status',
2358
+ stepResults: 'stepResults',
2359
+ actualResult: 'actualResult',
2360
+ bugId: 'bugId',
2361
+ execRunId: 'execRunId',
2362
+ flaky: 'flaky',
2363
+ fingerprint: 'fingerprint',
2364
+ startedAt: 'startedAt',
2365
+ finishedAt: 'finishedAt',
2366
+ durationMs: 'durationMs',
2367
+ executedById: 'executedById'
2368
+ } as const
2369
+
2370
+ export type TestRunCaseScalarFieldEnum = (typeof TestRunCaseScalarFieldEnum)[keyof typeof TestRunCaseScalarFieldEnum]
2371
+
2372
+
2373
+ export const TestExecRunScalarFieldEnum = {
2374
+ id: 'id',
2375
+ runCaseId: 'runCaseId',
2376
+ mode: 'mode',
2377
+ status: 'status',
2378
+ agentName: 'agentName',
2379
+ report: 'report',
2380
+ error: 'error',
2381
+ claimedAt: 'claimedAt',
2382
+ completedAt: 'completedAt',
2383
+ createdAt: 'createdAt'
2384
+ } as const
2385
+
2386
+ export type TestExecRunScalarFieldEnum = (typeof TestExecRunScalarFieldEnum)[keyof typeof TestExecRunScalarFieldEnum]
2387
+
2388
+
2389
+ export const TestAutomationArtifactScalarFieldEnum = {
2390
+ id: 'id',
2391
+ caseId: 'caseId',
2392
+ caseVersion: 'caseVersion',
2393
+ kind: 'kind',
2394
+ status: 'status',
2395
+ language: 'language',
2396
+ code: 'code',
2397
+ targetPath: 'targetPath',
2398
+ verifyRun: 'verifyRun',
2399
+ createdById: 'createdById',
2400
+ createdAt: 'createdAt',
2401
+ adoptedAt: 'adoptedAt'
2402
+ } as const
2403
+
2404
+ export type TestAutomationArtifactScalarFieldEnum = (typeof TestAutomationArtifactScalarFieldEnum)[keyof typeof TestAutomationArtifactScalarFieldEnum]
2405
+
2406
+
2092
2407
  export const SortOrder = {
2093
2408
  asc: 'asc',
2094
2409
  desc: 'desc'