@prenta/core 4.3.1 → 5.0.0

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 (185) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/actions.d.ts +8 -0
  3. package/dist/actions.d.ts.map +1 -1
  4. package/dist/actions.js +60 -21
  5. package/dist/actions.js.map +1 -1
  6. package/dist/ai/brand-voice-document.d.ts.map +1 -1
  7. package/dist/ai/brand-voice-document.js +4 -2
  8. package/dist/ai/brand-voice-document.js.map +1 -1
  9. package/dist/ai/brand-voice-structured.d.ts.map +1 -1
  10. package/dist/ai/brand-voice-structured.js +24 -9
  11. package/dist/ai/brand-voice-structured.js.map +1 -1
  12. package/dist/ai/content-writing-generate.js +1 -1
  13. package/dist/ai/content-writing-generate.js.map +1 -1
  14. package/dist/api/auth-context.d.ts +3 -0
  15. package/dist/api/auth-context.d.ts.map +1 -0
  16. package/dist/api/auth-context.js +3 -0
  17. package/dist/api/auth-context.js.map +1 -0
  18. package/dist/api/handler-factory.d.ts.map +1 -1
  19. package/dist/api/handler-factory.js +8 -2
  20. package/dist/api/handler-factory.js.map +1 -1
  21. package/dist/api/index.d.ts +2 -0
  22. package/dist/api/index.d.ts.map +1 -1
  23. package/dist/api/index.js +2 -0
  24. package/dist/api/index.js.map +1 -1
  25. package/dist/api/limiters.d.ts +3 -0
  26. package/dist/api/limiters.d.ts.map +1 -0
  27. package/dist/api/limiters.js +3 -0
  28. package/dist/api/limiters.js.map +1 -0
  29. package/dist/api/pagination.d.ts +3 -0
  30. package/dist/api/pagination.d.ts.map +1 -0
  31. package/dist/api/pagination.js +3 -0
  32. package/dist/api/pagination.js.map +1 -0
  33. package/dist/api/responses.d.ts +3 -0
  34. package/dist/api/responses.d.ts.map +1 -0
  35. package/dist/api/responses.js +3 -0
  36. package/dist/api/responses.js.map +1 -0
  37. package/dist/api/route-helpers.d.ts +12 -0
  38. package/dist/api/route-helpers.d.ts.map +1 -1
  39. package/dist/api/route-helpers.js +49 -4
  40. package/dist/api/route-helpers.js.map +1 -1
  41. package/dist/api/routes/auth.d.ts.map +1 -1
  42. package/dist/api/routes/auth.js +103 -30
  43. package/dist/api/routes/auth.js.map +1 -1
  44. package/dist/api/routes/dashboard.d.ts.map +1 -1
  45. package/dist/api/routes/dashboard.js +11 -4
  46. package/dist/api/routes/dashboard.js.map +1 -1
  47. package/dist/api/routes/documents.d.ts.map +1 -1
  48. package/dist/api/routes/documents.js +11 -1
  49. package/dist/api/routes/documents.js.map +1 -1
  50. package/dist/api/routes/media.d.ts.map +1 -1
  51. package/dist/api/routes/media.js +7 -24
  52. package/dist/api/routes/media.js.map +1 -1
  53. package/dist/api/routes/meta.js +1 -1
  54. package/dist/api/routes/meta.js.map +1 -1
  55. package/dist/api/routes/seo-public.d.ts.map +1 -1
  56. package/dist/api/routes/seo-public.js +12 -4
  57. package/dist/api/routes/seo-public.js.map +1 -1
  58. package/dist/api/routes/seo.d.ts.map +1 -1
  59. package/dist/api/routes/seo.js +4 -0
  60. package/dist/api/routes/seo.js.map +1 -1
  61. package/dist/api/routes/system.d.ts.map +1 -1
  62. package/dist/api/routes/system.js +101 -1
  63. package/dist/api/routes/system.js.map +1 -1
  64. package/dist/api/routes/users.d.ts.map +1 -1
  65. package/dist/api/routes/users.js +4 -1
  66. package/dist/api/routes/users.js.map +1 -1
  67. package/dist/appearance/favicon-icon.d.ts.map +1 -1
  68. package/dist/appearance/favicon-icon.js +24 -4
  69. package/dist/appearance/favicon-icon.js.map +1 -1
  70. package/dist/auth/oauth.js +2 -2
  71. package/dist/auth/oauth.js.map +1 -1
  72. package/dist/auth/session.d.ts +2 -0
  73. package/dist/auth/session.d.ts.map +1 -1
  74. package/dist/auth/session.js +5 -0
  75. package/dist/auth/session.js.map +1 -1
  76. package/dist/auth/user-admin.d.ts +2 -0
  77. package/dist/auth/user-admin.d.ts.map +1 -1
  78. package/dist/auth/user-admin.js +16 -0
  79. package/dist/auth/user-admin.js.map +1 -1
  80. package/dist/cache/http.d.ts.map +1 -1
  81. package/dist/cache/http.js +4 -2
  82. package/dist/cache/http.js.map +1 -1
  83. package/dist/content/extract.js +1 -1
  84. package/dist/content/extract.js.map +1 -1
  85. package/dist/content-health/scanner.d.ts.map +1 -1
  86. package/dist/content-health/scanner.js +5 -4
  87. package/dist/content-health/scanner.js.map +1 -1
  88. package/dist/db/adapters/mysql.js +5 -5
  89. package/dist/db/adapters/mysql.js.map +1 -1
  90. package/dist/db/adapters/postgres.d.ts.map +1 -1
  91. package/dist/db/adapters/postgres.js +6 -3
  92. package/dist/db/adapters/postgres.js.map +1 -1
  93. package/dist/db/adapters/sqlite.js +5 -5
  94. package/dist/db/adapters/sqlite.js.map +1 -1
  95. package/dist/db/create-adapter.d.ts.map +1 -1
  96. package/dist/db/create-adapter.js +13 -5
  97. package/dist/db/create-adapter.js.map +1 -1
  98. package/dist/db/model-types.d.ts +0 -36
  99. package/dist/db/model-types.d.ts.map +1 -1
  100. package/dist/diagnostics/logger.d.ts.map +1 -1
  101. package/dist/diagnostics/logger.js +22 -28
  102. package/dist/diagnostics/logger.js.map +1 -1
  103. package/dist/diagnostics/sentry.d.ts.map +1 -1
  104. package/dist/diagnostics/sentry.js +12 -0
  105. package/dist/diagnostics/sentry.js.map +1 -1
  106. package/dist/forms/files.d.ts +2 -2
  107. package/dist/forms/files.d.ts.map +1 -1
  108. package/dist/forms/files.js +2 -14
  109. package/dist/forms/files.js.map +1 -1
  110. package/dist/forms/submission.d.ts.map +1 -1
  111. package/dist/forms/submission.js +6 -4
  112. package/dist/forms/submission.js.map +1 -1
  113. package/dist/generated/browser.d.ts +0 -15
  114. package/dist/generated/client.d.ts +0 -15
  115. package/dist/generated/internal/class.d.ts +0 -33
  116. package/dist/generated/internal/class.js +4 -4
  117. package/dist/generated/internal/prismaNamespace.d.ts +1 -282
  118. package/dist/generated/internal/prismaNamespace.js +0 -50
  119. package/dist/generated/internal/prismaNamespaceBrowser.d.ts +0 -56
  120. package/dist/generated/internal/prismaNamespaceBrowser.js +0 -50
  121. package/dist/generated/models/ContentLock.d.ts +2 -2
  122. package/dist/generated/models/Document.d.ts +1 -274
  123. package/dist/generated/models/User.d.ts +0 -281
  124. package/dist/generated/models.d.ts +0 -3
  125. package/dist/index.d.ts +1 -1
  126. package/dist/index.d.ts.map +1 -1
  127. package/dist/index.js +1 -1
  128. package/dist/index.js.map +1 -1
  129. package/dist/media/optimize.d.ts.map +1 -1
  130. package/dist/media/optimize.js +2 -1
  131. package/dist/media/optimize.js.map +1 -1
  132. package/dist/media/reoptimize.js +1 -1
  133. package/dist/media/reoptimize.js.map +1 -1
  134. package/dist/presence/index.d.ts.map +1 -1
  135. package/dist/presence/index.js +6 -2
  136. package/dist/presence/index.js.map +1 -1
  137. package/dist/sections/define.d.ts.map +1 -1
  138. package/dist/sections/define.js +5 -2
  139. package/dist/sections/define.js.map +1 -1
  140. package/dist/security/access.d.ts +9 -5
  141. package/dist/security/access.d.ts.map +1 -1
  142. package/dist/security/access.js +28 -15
  143. package/dist/security/access.js.map +1 -1
  144. package/dist/security/audit.d.ts.map +1 -1
  145. package/dist/security/audit.js +1 -0
  146. package/dist/security/audit.js.map +1 -1
  147. package/dist/security/center/index.d.ts +2 -2
  148. package/dist/security/center/index.d.ts.map +1 -1
  149. package/dist/security/center/index.js +1 -1
  150. package/dist/security/center/index.js.map +1 -1
  151. package/dist/security/center/settings.d.ts +2 -0
  152. package/dist/security/center/settings.d.ts.map +1 -1
  153. package/dist/security/center/settings.js +38 -0
  154. package/dist/security/center/settings.js.map +1 -1
  155. package/dist/security/center/types.d.ts +8 -0
  156. package/dist/security/center/types.d.ts.map +1 -1
  157. package/dist/security/encrypted-fields.d.ts +1 -1
  158. package/dist/security/encrypted-fields.d.ts.map +1 -1
  159. package/dist/security/encrypted-fields.js +4 -3
  160. package/dist/security/encrypted-fields.js.map +1 -1
  161. package/dist/security/index.d.ts +1 -1
  162. package/dist/security/index.d.ts.map +1 -1
  163. package/dist/security/index.js +1 -1
  164. package/dist/security/index.js.map +1 -1
  165. package/dist/security/upload.d.ts +10 -0
  166. package/dist/security/upload.d.ts.map +1 -1
  167. package/dist/security/upload.js +32 -0
  168. package/dist/security/upload.js.map +1 -1
  169. package/dist/seo/link-suggest.js +1 -1
  170. package/dist/seo/link-suggest.js.map +1 -1
  171. package/dist/seo/llms-txt.d.ts.map +1 -1
  172. package/dist/seo/llms-txt.js +1 -0
  173. package/dist/seo/llms-txt.js.map +1 -1
  174. package/dist/storage/auto-wire.js +1 -1
  175. package/dist/storage/auto-wire.js.map +1 -1
  176. package/package.json +2 -1
  177. package/prisma/migrations/0015_audit_remediation_indexes/migration.sql +79 -0
  178. package/prisma/schema.prisma +4 -47
  179. package/schema-fragments/cms-schema.prisma +0 -1
  180. package/dist/generated/models/BackupRecord.d.ts +0 -1100
  181. package/dist/generated/models/BackupRecord.js +0 -1
  182. package/dist/generated/models/Site.d.ts +0 -1062
  183. package/dist/generated/models/Site.js +0 -1
  184. package/dist/generated/models/WorkflowState.d.ts +0 -1436
  185. package/dist/generated/models/WorkflowState.js +0 -1
@@ -1,1436 +0,0 @@
1
- import type * as runtime from "@prisma/client/runtime/client";
2
- import type * as Prisma from "../internal/prismaNamespace.js";
3
- /**
4
- * Model WorkflowState
5
- *
6
- */
7
- export type WorkflowStateModel = runtime.Types.Result.DefaultSelection<Prisma.$WorkflowStatePayload>;
8
- export type AggregateWorkflowState = {
9
- _count: WorkflowStateCountAggregateOutputType | null;
10
- _avg: WorkflowStateAvgAggregateOutputType | null;
11
- _sum: WorkflowStateSumAggregateOutputType | null;
12
- _min: WorkflowStateMinAggregateOutputType | null;
13
- _max: WorkflowStateMaxAggregateOutputType | null;
14
- };
15
- export type WorkflowStateAvgAggregateOutputType = {
16
- currentStep: number | null;
17
- };
18
- export type WorkflowStateSumAggregateOutputType = {
19
- currentStep: number | null;
20
- };
21
- export type WorkflowStateMinAggregateOutputType = {
22
- id: string | null;
23
- documentId: string | null;
24
- currentStep: number | null;
25
- assignedToId: string | null;
26
- status: string | null;
27
- createdAt: Date | null;
28
- updatedAt: Date | null;
29
- };
30
- export type WorkflowStateMaxAggregateOutputType = {
31
- id: string | null;
32
- documentId: string | null;
33
- currentStep: number | null;
34
- assignedToId: string | null;
35
- status: string | null;
36
- createdAt: Date | null;
37
- updatedAt: Date | null;
38
- };
39
- export type WorkflowStateCountAggregateOutputType = {
40
- id: number;
41
- documentId: number;
42
- currentStep: number;
43
- assignedToId: number;
44
- status: number;
45
- definition: number;
46
- createdAt: number;
47
- updatedAt: number;
48
- _all: number;
49
- };
50
- export type WorkflowStateAvgAggregateInputType = {
51
- currentStep?: true;
52
- };
53
- export type WorkflowStateSumAggregateInputType = {
54
- currentStep?: true;
55
- };
56
- export type WorkflowStateMinAggregateInputType = {
57
- id?: true;
58
- documentId?: true;
59
- currentStep?: true;
60
- assignedToId?: true;
61
- status?: true;
62
- createdAt?: true;
63
- updatedAt?: true;
64
- };
65
- export type WorkflowStateMaxAggregateInputType = {
66
- id?: true;
67
- documentId?: true;
68
- currentStep?: true;
69
- assignedToId?: true;
70
- status?: true;
71
- createdAt?: true;
72
- updatedAt?: true;
73
- };
74
- export type WorkflowStateCountAggregateInputType = {
75
- id?: true;
76
- documentId?: true;
77
- currentStep?: true;
78
- assignedToId?: true;
79
- status?: true;
80
- definition?: true;
81
- createdAt?: true;
82
- updatedAt?: true;
83
- _all?: true;
84
- };
85
- export type WorkflowStateAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
86
- /**
87
- * Filter which WorkflowState to aggregate.
88
- */
89
- where?: Prisma.WorkflowStateWhereInput;
90
- /**
91
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
92
- *
93
- * Determine the order of WorkflowStates to fetch.
94
- */
95
- orderBy?: Prisma.WorkflowStateOrderByWithRelationInput | Prisma.WorkflowStateOrderByWithRelationInput[];
96
- /**
97
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
98
- *
99
- * Sets the start position
100
- */
101
- cursor?: Prisma.WorkflowStateWhereUniqueInput;
102
- /**
103
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
104
- *
105
- * Take `±n` WorkflowStates from the position of the cursor.
106
- */
107
- take?: number;
108
- /**
109
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
110
- *
111
- * Skip the first `n` WorkflowStates.
112
- */
113
- skip?: number;
114
- /**
115
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
116
- *
117
- * Count returned WorkflowStates
118
- **/
119
- _count?: true | WorkflowStateCountAggregateInputType;
120
- /**
121
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
122
- *
123
- * Select which fields to average
124
- **/
125
- _avg?: WorkflowStateAvgAggregateInputType;
126
- /**
127
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
128
- *
129
- * Select which fields to sum
130
- **/
131
- _sum?: WorkflowStateSumAggregateInputType;
132
- /**
133
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
134
- *
135
- * Select which fields to find the minimum value
136
- **/
137
- _min?: WorkflowStateMinAggregateInputType;
138
- /**
139
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
140
- *
141
- * Select which fields to find the maximum value
142
- **/
143
- _max?: WorkflowStateMaxAggregateInputType;
144
- };
145
- export type GetWorkflowStateAggregateType<T extends WorkflowStateAggregateArgs> = {
146
- [P in keyof T & keyof AggregateWorkflowState]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateWorkflowState[P]> : Prisma.GetScalarType<T[P], AggregateWorkflowState[P]>;
147
- };
148
- export type WorkflowStateGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
149
- where?: Prisma.WorkflowStateWhereInput;
150
- orderBy?: Prisma.WorkflowStateOrderByWithAggregationInput | Prisma.WorkflowStateOrderByWithAggregationInput[];
151
- by: Prisma.WorkflowStateScalarFieldEnum[] | Prisma.WorkflowStateScalarFieldEnum;
152
- having?: Prisma.WorkflowStateScalarWhereWithAggregatesInput;
153
- take?: number;
154
- skip?: number;
155
- _count?: WorkflowStateCountAggregateInputType | true;
156
- _avg?: WorkflowStateAvgAggregateInputType;
157
- _sum?: WorkflowStateSumAggregateInputType;
158
- _min?: WorkflowStateMinAggregateInputType;
159
- _max?: WorkflowStateMaxAggregateInputType;
160
- };
161
- export type WorkflowStateGroupByOutputType = {
162
- id: string;
163
- documentId: string;
164
- currentStep: number;
165
- assignedToId: string | null;
166
- status: string;
167
- definition: runtime.JsonValue;
168
- createdAt: Date;
169
- updatedAt: Date;
170
- _count: WorkflowStateCountAggregateOutputType | null;
171
- _avg: WorkflowStateAvgAggregateOutputType | null;
172
- _sum: WorkflowStateSumAggregateOutputType | null;
173
- _min: WorkflowStateMinAggregateOutputType | null;
174
- _max: WorkflowStateMaxAggregateOutputType | null;
175
- };
176
- export type GetWorkflowStateGroupByPayload<T extends WorkflowStateGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<WorkflowStateGroupByOutputType, T['by']> & {
177
- [P in ((keyof T) & (keyof WorkflowStateGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], WorkflowStateGroupByOutputType[P]> : Prisma.GetScalarType<T[P], WorkflowStateGroupByOutputType[P]>;
178
- }>>;
179
- export type WorkflowStateWhereInput = {
180
- AND?: Prisma.WorkflowStateWhereInput | Prisma.WorkflowStateWhereInput[];
181
- OR?: Prisma.WorkflowStateWhereInput[];
182
- NOT?: Prisma.WorkflowStateWhereInput | Prisma.WorkflowStateWhereInput[];
183
- id?: Prisma.StringFilter<"WorkflowState"> | string;
184
- documentId?: Prisma.StringFilter<"WorkflowState"> | string;
185
- currentStep?: Prisma.IntFilter<"WorkflowState"> | number;
186
- assignedToId?: Prisma.StringNullableFilter<"WorkflowState"> | string | null;
187
- status?: Prisma.StringFilter<"WorkflowState"> | string;
188
- definition?: Prisma.JsonFilter<"WorkflowState">;
189
- createdAt?: Prisma.DateTimeFilter<"WorkflowState"> | Date | string;
190
- updatedAt?: Prisma.DateTimeFilter<"WorkflowState"> | Date | string;
191
- document?: Prisma.XOR<Prisma.DocumentScalarRelationFilter, Prisma.DocumentWhereInput>;
192
- assignedTo?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
193
- };
194
- export type WorkflowStateOrderByWithRelationInput = {
195
- id?: Prisma.SortOrder;
196
- documentId?: Prisma.SortOrder;
197
- currentStep?: Prisma.SortOrder;
198
- assignedToId?: Prisma.SortOrderInput | Prisma.SortOrder;
199
- status?: Prisma.SortOrder;
200
- definition?: Prisma.SortOrder;
201
- createdAt?: Prisma.SortOrder;
202
- updatedAt?: Prisma.SortOrder;
203
- document?: Prisma.DocumentOrderByWithRelationInput;
204
- assignedTo?: Prisma.UserOrderByWithRelationInput;
205
- _relevance?: Prisma.WorkflowStateOrderByRelevanceInput;
206
- };
207
- export type WorkflowStateWhereUniqueInput = Prisma.AtLeast<{
208
- id?: string;
209
- documentId?: string;
210
- AND?: Prisma.WorkflowStateWhereInput | Prisma.WorkflowStateWhereInput[];
211
- OR?: Prisma.WorkflowStateWhereInput[];
212
- NOT?: Prisma.WorkflowStateWhereInput | Prisma.WorkflowStateWhereInput[];
213
- currentStep?: Prisma.IntFilter<"WorkflowState"> | number;
214
- assignedToId?: Prisma.StringNullableFilter<"WorkflowState"> | string | null;
215
- status?: Prisma.StringFilter<"WorkflowState"> | string;
216
- definition?: Prisma.JsonFilter<"WorkflowState">;
217
- createdAt?: Prisma.DateTimeFilter<"WorkflowState"> | Date | string;
218
- updatedAt?: Prisma.DateTimeFilter<"WorkflowState"> | Date | string;
219
- document?: Prisma.XOR<Prisma.DocumentScalarRelationFilter, Prisma.DocumentWhereInput>;
220
- assignedTo?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
221
- }, "id" | "documentId">;
222
- export type WorkflowStateOrderByWithAggregationInput = {
223
- id?: Prisma.SortOrder;
224
- documentId?: Prisma.SortOrder;
225
- currentStep?: Prisma.SortOrder;
226
- assignedToId?: Prisma.SortOrderInput | Prisma.SortOrder;
227
- status?: Prisma.SortOrder;
228
- definition?: Prisma.SortOrder;
229
- createdAt?: Prisma.SortOrder;
230
- updatedAt?: Prisma.SortOrder;
231
- _count?: Prisma.WorkflowStateCountOrderByAggregateInput;
232
- _avg?: Prisma.WorkflowStateAvgOrderByAggregateInput;
233
- _max?: Prisma.WorkflowStateMaxOrderByAggregateInput;
234
- _min?: Prisma.WorkflowStateMinOrderByAggregateInput;
235
- _sum?: Prisma.WorkflowStateSumOrderByAggregateInput;
236
- };
237
- export type WorkflowStateScalarWhereWithAggregatesInput = {
238
- AND?: Prisma.WorkflowStateScalarWhereWithAggregatesInput | Prisma.WorkflowStateScalarWhereWithAggregatesInput[];
239
- OR?: Prisma.WorkflowStateScalarWhereWithAggregatesInput[];
240
- NOT?: Prisma.WorkflowStateScalarWhereWithAggregatesInput | Prisma.WorkflowStateScalarWhereWithAggregatesInput[];
241
- id?: Prisma.StringWithAggregatesFilter<"WorkflowState"> | string;
242
- documentId?: Prisma.StringWithAggregatesFilter<"WorkflowState"> | string;
243
- currentStep?: Prisma.IntWithAggregatesFilter<"WorkflowState"> | number;
244
- assignedToId?: Prisma.StringNullableWithAggregatesFilter<"WorkflowState"> | string | null;
245
- status?: Prisma.StringWithAggregatesFilter<"WorkflowState"> | string;
246
- definition?: Prisma.JsonWithAggregatesFilter<"WorkflowState">;
247
- createdAt?: Prisma.DateTimeWithAggregatesFilter<"WorkflowState"> | Date | string;
248
- updatedAt?: Prisma.DateTimeWithAggregatesFilter<"WorkflowState"> | Date | string;
249
- };
250
- export type WorkflowStateCreateInput = {
251
- id?: string;
252
- currentStep?: number;
253
- status?: string;
254
- definition: Prisma.JsonNullValueInput | runtime.InputJsonValue;
255
- createdAt?: Date | string;
256
- updatedAt?: Date | string;
257
- document: Prisma.DocumentCreateNestedOneWithoutWorkflowStateInput;
258
- assignedTo?: Prisma.UserCreateNestedOneWithoutWorkflowAssignedInput;
259
- };
260
- export type WorkflowStateUncheckedCreateInput = {
261
- id?: string;
262
- documentId: string;
263
- currentStep?: number;
264
- assignedToId?: string | null;
265
- status?: string;
266
- definition: Prisma.JsonNullValueInput | runtime.InputJsonValue;
267
- createdAt?: Date | string;
268
- updatedAt?: Date | string;
269
- };
270
- export type WorkflowStateUpdateInput = {
271
- id?: Prisma.StringFieldUpdateOperationsInput | string;
272
- currentStep?: Prisma.IntFieldUpdateOperationsInput | number;
273
- status?: Prisma.StringFieldUpdateOperationsInput | string;
274
- definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
275
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
276
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
277
- document?: Prisma.DocumentUpdateOneRequiredWithoutWorkflowStateNestedInput;
278
- assignedTo?: Prisma.UserUpdateOneWithoutWorkflowAssignedNestedInput;
279
- };
280
- export type WorkflowStateUncheckedUpdateInput = {
281
- id?: Prisma.StringFieldUpdateOperationsInput | string;
282
- documentId?: Prisma.StringFieldUpdateOperationsInput | string;
283
- currentStep?: Prisma.IntFieldUpdateOperationsInput | number;
284
- assignedToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
285
- status?: Prisma.StringFieldUpdateOperationsInput | string;
286
- definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
287
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
288
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
289
- };
290
- export type WorkflowStateCreateManyInput = {
291
- id?: string;
292
- documentId: string;
293
- currentStep?: number;
294
- assignedToId?: string | null;
295
- status?: string;
296
- definition: Prisma.JsonNullValueInput | runtime.InputJsonValue;
297
- createdAt?: Date | string;
298
- updatedAt?: Date | string;
299
- };
300
- export type WorkflowStateUpdateManyMutationInput = {
301
- id?: Prisma.StringFieldUpdateOperationsInput | string;
302
- currentStep?: Prisma.IntFieldUpdateOperationsInput | number;
303
- status?: Prisma.StringFieldUpdateOperationsInput | string;
304
- definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
305
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
306
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
307
- };
308
- export type WorkflowStateUncheckedUpdateManyInput = {
309
- id?: Prisma.StringFieldUpdateOperationsInput | string;
310
- documentId?: Prisma.StringFieldUpdateOperationsInput | string;
311
- currentStep?: Prisma.IntFieldUpdateOperationsInput | number;
312
- assignedToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
313
- status?: Prisma.StringFieldUpdateOperationsInput | string;
314
- definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
315
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
316
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
317
- };
318
- export type WorkflowStateListRelationFilter = {
319
- every?: Prisma.WorkflowStateWhereInput;
320
- some?: Prisma.WorkflowStateWhereInput;
321
- none?: Prisma.WorkflowStateWhereInput;
322
- };
323
- export type WorkflowStateOrderByRelationAggregateInput = {
324
- _count?: Prisma.SortOrder;
325
- };
326
- export type WorkflowStateNullableScalarRelationFilter = {
327
- is?: Prisma.WorkflowStateWhereInput | null;
328
- isNot?: Prisma.WorkflowStateWhereInput | null;
329
- };
330
- export type WorkflowStateOrderByRelevanceInput = {
331
- fields: Prisma.WorkflowStateOrderByRelevanceFieldEnum | Prisma.WorkflowStateOrderByRelevanceFieldEnum[];
332
- sort: Prisma.SortOrder;
333
- search: string;
334
- };
335
- export type WorkflowStateCountOrderByAggregateInput = {
336
- id?: Prisma.SortOrder;
337
- documentId?: Prisma.SortOrder;
338
- currentStep?: Prisma.SortOrder;
339
- assignedToId?: Prisma.SortOrder;
340
- status?: Prisma.SortOrder;
341
- definition?: Prisma.SortOrder;
342
- createdAt?: Prisma.SortOrder;
343
- updatedAt?: Prisma.SortOrder;
344
- };
345
- export type WorkflowStateAvgOrderByAggregateInput = {
346
- currentStep?: Prisma.SortOrder;
347
- };
348
- export type WorkflowStateMaxOrderByAggregateInput = {
349
- id?: Prisma.SortOrder;
350
- documentId?: Prisma.SortOrder;
351
- currentStep?: Prisma.SortOrder;
352
- assignedToId?: Prisma.SortOrder;
353
- status?: Prisma.SortOrder;
354
- createdAt?: Prisma.SortOrder;
355
- updatedAt?: Prisma.SortOrder;
356
- };
357
- export type WorkflowStateMinOrderByAggregateInput = {
358
- id?: Prisma.SortOrder;
359
- documentId?: Prisma.SortOrder;
360
- currentStep?: Prisma.SortOrder;
361
- assignedToId?: Prisma.SortOrder;
362
- status?: Prisma.SortOrder;
363
- createdAt?: Prisma.SortOrder;
364
- updatedAt?: Prisma.SortOrder;
365
- };
366
- export type WorkflowStateSumOrderByAggregateInput = {
367
- currentStep?: Prisma.SortOrder;
368
- };
369
- export type WorkflowStateCreateNestedManyWithoutAssignedToInput = {
370
- create?: Prisma.XOR<Prisma.WorkflowStateCreateWithoutAssignedToInput, Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput> | Prisma.WorkflowStateCreateWithoutAssignedToInput[] | Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput[];
371
- connectOrCreate?: Prisma.WorkflowStateCreateOrConnectWithoutAssignedToInput | Prisma.WorkflowStateCreateOrConnectWithoutAssignedToInput[];
372
- createMany?: Prisma.WorkflowStateCreateManyAssignedToInputEnvelope;
373
- connect?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[];
374
- };
375
- export type WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput = {
376
- create?: Prisma.XOR<Prisma.WorkflowStateCreateWithoutAssignedToInput, Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput> | Prisma.WorkflowStateCreateWithoutAssignedToInput[] | Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput[];
377
- connectOrCreate?: Prisma.WorkflowStateCreateOrConnectWithoutAssignedToInput | Prisma.WorkflowStateCreateOrConnectWithoutAssignedToInput[];
378
- createMany?: Prisma.WorkflowStateCreateManyAssignedToInputEnvelope;
379
- connect?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[];
380
- };
381
- export type WorkflowStateUpdateManyWithoutAssignedToNestedInput = {
382
- create?: Prisma.XOR<Prisma.WorkflowStateCreateWithoutAssignedToInput, Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput> | Prisma.WorkflowStateCreateWithoutAssignedToInput[] | Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput[];
383
- connectOrCreate?: Prisma.WorkflowStateCreateOrConnectWithoutAssignedToInput | Prisma.WorkflowStateCreateOrConnectWithoutAssignedToInput[];
384
- upsert?: Prisma.WorkflowStateUpsertWithWhereUniqueWithoutAssignedToInput | Prisma.WorkflowStateUpsertWithWhereUniqueWithoutAssignedToInput[];
385
- createMany?: Prisma.WorkflowStateCreateManyAssignedToInputEnvelope;
386
- set?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[];
387
- disconnect?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[];
388
- delete?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[];
389
- connect?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[];
390
- update?: Prisma.WorkflowStateUpdateWithWhereUniqueWithoutAssignedToInput | Prisma.WorkflowStateUpdateWithWhereUniqueWithoutAssignedToInput[];
391
- updateMany?: Prisma.WorkflowStateUpdateManyWithWhereWithoutAssignedToInput | Prisma.WorkflowStateUpdateManyWithWhereWithoutAssignedToInput[];
392
- deleteMany?: Prisma.WorkflowStateScalarWhereInput | Prisma.WorkflowStateScalarWhereInput[];
393
- };
394
- export type WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput = {
395
- create?: Prisma.XOR<Prisma.WorkflowStateCreateWithoutAssignedToInput, Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput> | Prisma.WorkflowStateCreateWithoutAssignedToInput[] | Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput[];
396
- connectOrCreate?: Prisma.WorkflowStateCreateOrConnectWithoutAssignedToInput | Prisma.WorkflowStateCreateOrConnectWithoutAssignedToInput[];
397
- upsert?: Prisma.WorkflowStateUpsertWithWhereUniqueWithoutAssignedToInput | Prisma.WorkflowStateUpsertWithWhereUniqueWithoutAssignedToInput[];
398
- createMany?: Prisma.WorkflowStateCreateManyAssignedToInputEnvelope;
399
- set?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[];
400
- disconnect?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[];
401
- delete?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[];
402
- connect?: Prisma.WorkflowStateWhereUniqueInput | Prisma.WorkflowStateWhereUniqueInput[];
403
- update?: Prisma.WorkflowStateUpdateWithWhereUniqueWithoutAssignedToInput | Prisma.WorkflowStateUpdateWithWhereUniqueWithoutAssignedToInput[];
404
- updateMany?: Prisma.WorkflowStateUpdateManyWithWhereWithoutAssignedToInput | Prisma.WorkflowStateUpdateManyWithWhereWithoutAssignedToInput[];
405
- deleteMany?: Prisma.WorkflowStateScalarWhereInput | Prisma.WorkflowStateScalarWhereInput[];
406
- };
407
- export type WorkflowStateCreateNestedOneWithoutDocumentInput = {
408
- create?: Prisma.XOR<Prisma.WorkflowStateCreateWithoutDocumentInput, Prisma.WorkflowStateUncheckedCreateWithoutDocumentInput>;
409
- connectOrCreate?: Prisma.WorkflowStateCreateOrConnectWithoutDocumentInput;
410
- connect?: Prisma.WorkflowStateWhereUniqueInput;
411
- };
412
- export type WorkflowStateUncheckedCreateNestedOneWithoutDocumentInput = {
413
- create?: Prisma.XOR<Prisma.WorkflowStateCreateWithoutDocumentInput, Prisma.WorkflowStateUncheckedCreateWithoutDocumentInput>;
414
- connectOrCreate?: Prisma.WorkflowStateCreateOrConnectWithoutDocumentInput;
415
- connect?: Prisma.WorkflowStateWhereUniqueInput;
416
- };
417
- export type WorkflowStateUpdateOneWithoutDocumentNestedInput = {
418
- create?: Prisma.XOR<Prisma.WorkflowStateCreateWithoutDocumentInput, Prisma.WorkflowStateUncheckedCreateWithoutDocumentInput>;
419
- connectOrCreate?: Prisma.WorkflowStateCreateOrConnectWithoutDocumentInput;
420
- upsert?: Prisma.WorkflowStateUpsertWithoutDocumentInput;
421
- disconnect?: Prisma.WorkflowStateWhereInput | boolean;
422
- delete?: Prisma.WorkflowStateWhereInput | boolean;
423
- connect?: Prisma.WorkflowStateWhereUniqueInput;
424
- update?: Prisma.XOR<Prisma.XOR<Prisma.WorkflowStateUpdateToOneWithWhereWithoutDocumentInput, Prisma.WorkflowStateUpdateWithoutDocumentInput>, Prisma.WorkflowStateUncheckedUpdateWithoutDocumentInput>;
425
- };
426
- export type WorkflowStateUncheckedUpdateOneWithoutDocumentNestedInput = {
427
- create?: Prisma.XOR<Prisma.WorkflowStateCreateWithoutDocumentInput, Prisma.WorkflowStateUncheckedCreateWithoutDocumentInput>;
428
- connectOrCreate?: Prisma.WorkflowStateCreateOrConnectWithoutDocumentInput;
429
- upsert?: Prisma.WorkflowStateUpsertWithoutDocumentInput;
430
- disconnect?: Prisma.WorkflowStateWhereInput | boolean;
431
- delete?: Prisma.WorkflowStateWhereInput | boolean;
432
- connect?: Prisma.WorkflowStateWhereUniqueInput;
433
- update?: Prisma.XOR<Prisma.XOR<Prisma.WorkflowStateUpdateToOneWithWhereWithoutDocumentInput, Prisma.WorkflowStateUpdateWithoutDocumentInput>, Prisma.WorkflowStateUncheckedUpdateWithoutDocumentInput>;
434
- };
435
- export type WorkflowStateCreateWithoutAssignedToInput = {
436
- id?: string;
437
- currentStep?: number;
438
- status?: string;
439
- definition: Prisma.JsonNullValueInput | runtime.InputJsonValue;
440
- createdAt?: Date | string;
441
- updatedAt?: Date | string;
442
- document: Prisma.DocumentCreateNestedOneWithoutWorkflowStateInput;
443
- };
444
- export type WorkflowStateUncheckedCreateWithoutAssignedToInput = {
445
- id?: string;
446
- documentId: string;
447
- currentStep?: number;
448
- status?: string;
449
- definition: Prisma.JsonNullValueInput | runtime.InputJsonValue;
450
- createdAt?: Date | string;
451
- updatedAt?: Date | string;
452
- };
453
- export type WorkflowStateCreateOrConnectWithoutAssignedToInput = {
454
- where: Prisma.WorkflowStateWhereUniqueInput;
455
- create: Prisma.XOR<Prisma.WorkflowStateCreateWithoutAssignedToInput, Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput>;
456
- };
457
- export type WorkflowStateCreateManyAssignedToInputEnvelope = {
458
- data: Prisma.WorkflowStateCreateManyAssignedToInput | Prisma.WorkflowStateCreateManyAssignedToInput[];
459
- skipDuplicates?: boolean;
460
- };
461
- export type WorkflowStateUpsertWithWhereUniqueWithoutAssignedToInput = {
462
- where: Prisma.WorkflowStateWhereUniqueInput;
463
- update: Prisma.XOR<Prisma.WorkflowStateUpdateWithoutAssignedToInput, Prisma.WorkflowStateUncheckedUpdateWithoutAssignedToInput>;
464
- create: Prisma.XOR<Prisma.WorkflowStateCreateWithoutAssignedToInput, Prisma.WorkflowStateUncheckedCreateWithoutAssignedToInput>;
465
- };
466
- export type WorkflowStateUpdateWithWhereUniqueWithoutAssignedToInput = {
467
- where: Prisma.WorkflowStateWhereUniqueInput;
468
- data: Prisma.XOR<Prisma.WorkflowStateUpdateWithoutAssignedToInput, Prisma.WorkflowStateUncheckedUpdateWithoutAssignedToInput>;
469
- };
470
- export type WorkflowStateUpdateManyWithWhereWithoutAssignedToInput = {
471
- where: Prisma.WorkflowStateScalarWhereInput;
472
- data: Prisma.XOR<Prisma.WorkflowStateUpdateManyMutationInput, Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToInput>;
473
- };
474
- export type WorkflowStateScalarWhereInput = {
475
- AND?: Prisma.WorkflowStateScalarWhereInput | Prisma.WorkflowStateScalarWhereInput[];
476
- OR?: Prisma.WorkflowStateScalarWhereInput[];
477
- NOT?: Prisma.WorkflowStateScalarWhereInput | Prisma.WorkflowStateScalarWhereInput[];
478
- id?: Prisma.StringFilter<"WorkflowState"> | string;
479
- documentId?: Prisma.StringFilter<"WorkflowState"> | string;
480
- currentStep?: Prisma.IntFilter<"WorkflowState"> | number;
481
- assignedToId?: Prisma.StringNullableFilter<"WorkflowState"> | string | null;
482
- status?: Prisma.StringFilter<"WorkflowState"> | string;
483
- definition?: Prisma.JsonFilter<"WorkflowState">;
484
- createdAt?: Prisma.DateTimeFilter<"WorkflowState"> | Date | string;
485
- updatedAt?: Prisma.DateTimeFilter<"WorkflowState"> | Date | string;
486
- };
487
- export type WorkflowStateCreateWithoutDocumentInput = {
488
- id?: string;
489
- currentStep?: number;
490
- status?: string;
491
- definition: Prisma.JsonNullValueInput | runtime.InputJsonValue;
492
- createdAt?: Date | string;
493
- updatedAt?: Date | string;
494
- assignedTo?: Prisma.UserCreateNestedOneWithoutWorkflowAssignedInput;
495
- };
496
- export type WorkflowStateUncheckedCreateWithoutDocumentInput = {
497
- id?: string;
498
- currentStep?: number;
499
- assignedToId?: string | null;
500
- status?: string;
501
- definition: Prisma.JsonNullValueInput | runtime.InputJsonValue;
502
- createdAt?: Date | string;
503
- updatedAt?: Date | string;
504
- };
505
- export type WorkflowStateCreateOrConnectWithoutDocumentInput = {
506
- where: Prisma.WorkflowStateWhereUniqueInput;
507
- create: Prisma.XOR<Prisma.WorkflowStateCreateWithoutDocumentInput, Prisma.WorkflowStateUncheckedCreateWithoutDocumentInput>;
508
- };
509
- export type WorkflowStateUpsertWithoutDocumentInput = {
510
- update: Prisma.XOR<Prisma.WorkflowStateUpdateWithoutDocumentInput, Prisma.WorkflowStateUncheckedUpdateWithoutDocumentInput>;
511
- create: Prisma.XOR<Prisma.WorkflowStateCreateWithoutDocumentInput, Prisma.WorkflowStateUncheckedCreateWithoutDocumentInput>;
512
- where?: Prisma.WorkflowStateWhereInput;
513
- };
514
- export type WorkflowStateUpdateToOneWithWhereWithoutDocumentInput = {
515
- where?: Prisma.WorkflowStateWhereInput;
516
- data: Prisma.XOR<Prisma.WorkflowStateUpdateWithoutDocumentInput, Prisma.WorkflowStateUncheckedUpdateWithoutDocumentInput>;
517
- };
518
- export type WorkflowStateUpdateWithoutDocumentInput = {
519
- id?: Prisma.StringFieldUpdateOperationsInput | string;
520
- currentStep?: Prisma.IntFieldUpdateOperationsInput | number;
521
- status?: Prisma.StringFieldUpdateOperationsInput | string;
522
- definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
523
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
524
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
525
- assignedTo?: Prisma.UserUpdateOneWithoutWorkflowAssignedNestedInput;
526
- };
527
- export type WorkflowStateUncheckedUpdateWithoutDocumentInput = {
528
- id?: Prisma.StringFieldUpdateOperationsInput | string;
529
- currentStep?: Prisma.IntFieldUpdateOperationsInput | number;
530
- assignedToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
531
- status?: Prisma.StringFieldUpdateOperationsInput | string;
532
- definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
533
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
534
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
535
- };
536
- export type WorkflowStateCreateManyAssignedToInput = {
537
- id?: string;
538
- documentId: string;
539
- currentStep?: number;
540
- status?: string;
541
- definition: Prisma.JsonNullValueInput | runtime.InputJsonValue;
542
- createdAt?: Date | string;
543
- updatedAt?: Date | string;
544
- };
545
- export type WorkflowStateUpdateWithoutAssignedToInput = {
546
- id?: Prisma.StringFieldUpdateOperationsInput | string;
547
- currentStep?: Prisma.IntFieldUpdateOperationsInput | number;
548
- status?: Prisma.StringFieldUpdateOperationsInput | string;
549
- definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
550
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
551
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
552
- document?: Prisma.DocumentUpdateOneRequiredWithoutWorkflowStateNestedInput;
553
- };
554
- export type WorkflowStateUncheckedUpdateWithoutAssignedToInput = {
555
- id?: Prisma.StringFieldUpdateOperationsInput | string;
556
- documentId?: Prisma.StringFieldUpdateOperationsInput | string;
557
- currentStep?: Prisma.IntFieldUpdateOperationsInput | number;
558
- status?: Prisma.StringFieldUpdateOperationsInput | string;
559
- definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
560
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
561
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
562
- };
563
- export type WorkflowStateUncheckedUpdateManyWithoutAssignedToInput = {
564
- id?: Prisma.StringFieldUpdateOperationsInput | string;
565
- documentId?: Prisma.StringFieldUpdateOperationsInput | string;
566
- currentStep?: Prisma.IntFieldUpdateOperationsInput | number;
567
- status?: Prisma.StringFieldUpdateOperationsInput | string;
568
- definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
569
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
570
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
571
- };
572
- export type WorkflowStateSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
573
- id?: boolean;
574
- documentId?: boolean;
575
- currentStep?: boolean;
576
- assignedToId?: boolean;
577
- status?: boolean;
578
- definition?: boolean;
579
- createdAt?: boolean;
580
- updatedAt?: boolean;
581
- document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>;
582
- assignedTo?: boolean | Prisma.WorkflowState$assignedToArgs<ExtArgs>;
583
- }, ExtArgs["result"]["workflowState"]>;
584
- export type WorkflowStateSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
585
- id?: boolean;
586
- documentId?: boolean;
587
- currentStep?: boolean;
588
- assignedToId?: boolean;
589
- status?: boolean;
590
- definition?: boolean;
591
- createdAt?: boolean;
592
- updatedAt?: boolean;
593
- document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>;
594
- assignedTo?: boolean | Prisma.WorkflowState$assignedToArgs<ExtArgs>;
595
- }, ExtArgs["result"]["workflowState"]>;
596
- export type WorkflowStateSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
597
- id?: boolean;
598
- documentId?: boolean;
599
- currentStep?: boolean;
600
- assignedToId?: boolean;
601
- status?: boolean;
602
- definition?: boolean;
603
- createdAt?: boolean;
604
- updatedAt?: boolean;
605
- document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>;
606
- assignedTo?: boolean | Prisma.WorkflowState$assignedToArgs<ExtArgs>;
607
- }, ExtArgs["result"]["workflowState"]>;
608
- export type WorkflowStateSelectScalar = {
609
- id?: boolean;
610
- documentId?: boolean;
611
- currentStep?: boolean;
612
- assignedToId?: boolean;
613
- status?: boolean;
614
- definition?: boolean;
615
- createdAt?: boolean;
616
- updatedAt?: boolean;
617
- };
618
- export type WorkflowStateOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "documentId" | "currentStep" | "assignedToId" | "status" | "definition" | "createdAt" | "updatedAt", ExtArgs["result"]["workflowState"]>;
619
- export type WorkflowStateInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
620
- document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>;
621
- assignedTo?: boolean | Prisma.WorkflowState$assignedToArgs<ExtArgs>;
622
- };
623
- export type WorkflowStateIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
624
- document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>;
625
- assignedTo?: boolean | Prisma.WorkflowState$assignedToArgs<ExtArgs>;
626
- };
627
- export type WorkflowStateIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
628
- document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>;
629
- assignedTo?: boolean | Prisma.WorkflowState$assignedToArgs<ExtArgs>;
630
- };
631
- export type $WorkflowStatePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
632
- name: "WorkflowState";
633
- objects: {
634
- document: Prisma.$DocumentPayload<ExtArgs>;
635
- assignedTo: Prisma.$UserPayload<ExtArgs> | null;
636
- };
637
- scalars: runtime.Types.Extensions.GetPayloadResult<{
638
- id: string;
639
- documentId: string;
640
- currentStep: number;
641
- assignedToId: string | null;
642
- status: string;
643
- definition: runtime.JsonValue;
644
- createdAt: Date;
645
- updatedAt: Date;
646
- }, ExtArgs["result"]["workflowState"]>;
647
- composites: {};
648
- };
649
- export type WorkflowStateGetPayload<S extends boolean | null | undefined | WorkflowStateDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload, S>;
650
- export type WorkflowStateCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<WorkflowStateFindManyArgs, 'select' | 'include' | 'distinct' | 'omit' | 'relationLoadStrategy'> & {
651
- select?: WorkflowStateCountAggregateInputType | true;
652
- };
653
- export interface WorkflowStateDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
654
- [K: symbol]: {
655
- types: Prisma.TypeMap<ExtArgs>['model']['WorkflowState'];
656
- meta: {
657
- name: 'WorkflowState';
658
- };
659
- };
660
- /**
661
- * Find zero or one WorkflowState that matches the filter.
662
- * @param {WorkflowStateFindUniqueArgs} args - Arguments to find a WorkflowState
663
- * @example
664
- * // Get one WorkflowState
665
- * const workflowState = await prisma.workflowState.findUnique({
666
- * where: {
667
- * // ... provide filter here
668
- * }
669
- * })
670
- */
671
- findUnique<T extends WorkflowStateFindUniqueArgs>(args: Prisma.SelectSubset<T, WorkflowStateFindUniqueArgs<ExtArgs>>): Prisma.Prisma__WorkflowStateClient<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
672
- /**
673
- * Find one WorkflowState that matches the filter or throw an error with `error.code='P2025'`
674
- * if no matches were found.
675
- * @param {WorkflowStateFindUniqueOrThrowArgs} args - Arguments to find a WorkflowState
676
- * @example
677
- * // Get one WorkflowState
678
- * const workflowState = await prisma.workflowState.findUniqueOrThrow({
679
- * where: {
680
- * // ... provide filter here
681
- * }
682
- * })
683
- */
684
- findUniqueOrThrow<T extends WorkflowStateFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, WorkflowStateFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkflowStateClient<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
685
- /**
686
- * Find the first WorkflowState that matches the filter.
687
- * Note, that providing `undefined` is treated as the value not being there.
688
- * Read more here: https://pris.ly/d/null-undefined
689
- * @param {WorkflowStateFindFirstArgs} args - Arguments to find a WorkflowState
690
- * @example
691
- * // Get one WorkflowState
692
- * const workflowState = await prisma.workflowState.findFirst({
693
- * where: {
694
- * // ... provide filter here
695
- * }
696
- * })
697
- */
698
- findFirst<T extends WorkflowStateFindFirstArgs>(args?: Prisma.SelectSubset<T, WorkflowStateFindFirstArgs<ExtArgs>>): Prisma.Prisma__WorkflowStateClient<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
699
- /**
700
- * Find the first WorkflowState that matches the filter or
701
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
702
- * Note, that providing `undefined` is treated as the value not being there.
703
- * Read more here: https://pris.ly/d/null-undefined
704
- * @param {WorkflowStateFindFirstOrThrowArgs} args - Arguments to find a WorkflowState
705
- * @example
706
- * // Get one WorkflowState
707
- * const workflowState = await prisma.workflowState.findFirstOrThrow({
708
- * where: {
709
- * // ... provide filter here
710
- * }
711
- * })
712
- */
713
- findFirstOrThrow<T extends WorkflowStateFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, WorkflowStateFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkflowStateClient<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
714
- /**
715
- * Find zero or more WorkflowStates that matches the filter.
716
- * Note, that providing `undefined` is treated as the value not being there.
717
- * Read more here: https://pris.ly/d/null-undefined
718
- * @param {WorkflowStateFindManyArgs} args - Arguments to filter and select certain fields only.
719
- * @example
720
- * // Get all WorkflowStates
721
- * const workflowStates = await prisma.workflowState.findMany()
722
- *
723
- * // Get first 10 WorkflowStates
724
- * const workflowStates = await prisma.workflowState.findMany({ take: 10 })
725
- *
726
- * // Only select the `id`
727
- * const workflowStateWithIdOnly = await prisma.workflowState.findMany({ select: { id: true } })
728
- *
729
- */
730
- findMany<T extends WorkflowStateFindManyArgs>(args?: Prisma.SelectSubset<T, WorkflowStateFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
731
- /**
732
- * Create a WorkflowState.
733
- * @param {WorkflowStateCreateArgs} args - Arguments to create a WorkflowState.
734
- * @example
735
- * // Create one WorkflowState
736
- * const WorkflowState = await prisma.workflowState.create({
737
- * data: {
738
- * // ... data to create a WorkflowState
739
- * }
740
- * })
741
- *
742
- */
743
- create<T extends WorkflowStateCreateArgs>(args: Prisma.SelectSubset<T, WorkflowStateCreateArgs<ExtArgs>>): Prisma.Prisma__WorkflowStateClient<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
744
- /**
745
- * Create many WorkflowStates.
746
- * @param {WorkflowStateCreateManyArgs} args - Arguments to create many WorkflowStates.
747
- * @example
748
- * // Create many WorkflowStates
749
- * const workflowState = await prisma.workflowState.createMany({
750
- * data: [
751
- * // ... provide data here
752
- * ]
753
- * })
754
- *
755
- */
756
- createMany<T extends WorkflowStateCreateManyArgs>(args?: Prisma.SelectSubset<T, WorkflowStateCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
757
- /**
758
- * Create many WorkflowStates and returns the data saved in the database.
759
- * @param {WorkflowStateCreateManyAndReturnArgs} args - Arguments to create many WorkflowStates.
760
- * @example
761
- * // Create many WorkflowStates
762
- * const workflowState = await prisma.workflowState.createManyAndReturn({
763
- * data: [
764
- * // ... provide data here
765
- * ]
766
- * })
767
- *
768
- * // Create many WorkflowStates and only return the `id`
769
- * const workflowStateWithIdOnly = await prisma.workflowState.createManyAndReturn({
770
- * select: { id: true },
771
- * data: [
772
- * // ... provide data here
773
- * ]
774
- * })
775
- * Note, that providing `undefined` is treated as the value not being there.
776
- * Read more here: https://pris.ly/d/null-undefined
777
- *
778
- */
779
- createManyAndReturn<T extends WorkflowStateCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, WorkflowStateCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
780
- /**
781
- * Delete a WorkflowState.
782
- * @param {WorkflowStateDeleteArgs} args - Arguments to delete one WorkflowState.
783
- * @example
784
- * // Delete one WorkflowState
785
- * const WorkflowState = await prisma.workflowState.delete({
786
- * where: {
787
- * // ... filter to delete one WorkflowState
788
- * }
789
- * })
790
- *
791
- */
792
- delete<T extends WorkflowStateDeleteArgs>(args: Prisma.SelectSubset<T, WorkflowStateDeleteArgs<ExtArgs>>): Prisma.Prisma__WorkflowStateClient<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
793
- /**
794
- * Update one WorkflowState.
795
- * @param {WorkflowStateUpdateArgs} args - Arguments to update one WorkflowState.
796
- * @example
797
- * // Update one WorkflowState
798
- * const workflowState = await prisma.workflowState.update({
799
- * where: {
800
- * // ... provide filter here
801
- * },
802
- * data: {
803
- * // ... provide data here
804
- * }
805
- * })
806
- *
807
- */
808
- update<T extends WorkflowStateUpdateArgs>(args: Prisma.SelectSubset<T, WorkflowStateUpdateArgs<ExtArgs>>): Prisma.Prisma__WorkflowStateClient<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
809
- /**
810
- * Delete zero or more WorkflowStates.
811
- * @param {WorkflowStateDeleteManyArgs} args - Arguments to filter WorkflowStates to delete.
812
- * @example
813
- * // Delete a few WorkflowStates
814
- * const { count } = await prisma.workflowState.deleteMany({
815
- * where: {
816
- * // ... provide filter here
817
- * }
818
- * })
819
- *
820
- */
821
- deleteMany<T extends WorkflowStateDeleteManyArgs>(args?: Prisma.SelectSubset<T, WorkflowStateDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
822
- /**
823
- * Update zero or more WorkflowStates.
824
- * Note, that providing `undefined` is treated as the value not being there.
825
- * Read more here: https://pris.ly/d/null-undefined
826
- * @param {WorkflowStateUpdateManyArgs} args - Arguments to update one or more rows.
827
- * @example
828
- * // Update many WorkflowStates
829
- * const workflowState = await prisma.workflowState.updateMany({
830
- * where: {
831
- * // ... provide filter here
832
- * },
833
- * data: {
834
- * // ... provide data here
835
- * }
836
- * })
837
- *
838
- */
839
- updateMany<T extends WorkflowStateUpdateManyArgs>(args: Prisma.SelectSubset<T, WorkflowStateUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
840
- /**
841
- * Update zero or more WorkflowStates and returns the data updated in the database.
842
- * @param {WorkflowStateUpdateManyAndReturnArgs} args - Arguments to update many WorkflowStates.
843
- * @example
844
- * // Update many WorkflowStates
845
- * const workflowState = await prisma.workflowState.updateManyAndReturn({
846
- * where: {
847
- * // ... provide filter here
848
- * },
849
- * data: [
850
- * // ... provide data here
851
- * ]
852
- * })
853
- *
854
- * // Update zero or more WorkflowStates and only return the `id`
855
- * const workflowStateWithIdOnly = await prisma.workflowState.updateManyAndReturn({
856
- * select: { id: true },
857
- * where: {
858
- * // ... provide filter here
859
- * },
860
- * data: [
861
- * // ... provide data here
862
- * ]
863
- * })
864
- * Note, that providing `undefined` is treated as the value not being there.
865
- * Read more here: https://pris.ly/d/null-undefined
866
- *
867
- */
868
- updateManyAndReturn<T extends WorkflowStateUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, WorkflowStateUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
869
- /**
870
- * Create or update one WorkflowState.
871
- * @param {WorkflowStateUpsertArgs} args - Arguments to update or create a WorkflowState.
872
- * @example
873
- * // Update or create a WorkflowState
874
- * const workflowState = await prisma.workflowState.upsert({
875
- * create: {
876
- * // ... data to create a WorkflowState
877
- * },
878
- * update: {
879
- * // ... in case it already exists, update
880
- * },
881
- * where: {
882
- * // ... the filter for the WorkflowState we want to update
883
- * }
884
- * })
885
- */
886
- upsert<T extends WorkflowStateUpsertArgs>(args: Prisma.SelectSubset<T, WorkflowStateUpsertArgs<ExtArgs>>): Prisma.Prisma__WorkflowStateClient<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
887
- /**
888
- * Count the number of WorkflowStates.
889
- * Note, that providing `undefined` is treated as the value not being there.
890
- * Read more here: https://pris.ly/d/null-undefined
891
- * @param {WorkflowStateCountArgs} args - Arguments to filter WorkflowStates to count.
892
- * @example
893
- * // Count the number of WorkflowStates
894
- * const count = await prisma.workflowState.count({
895
- * where: {
896
- * // ... the filter for the WorkflowStates we want to count
897
- * }
898
- * })
899
- **/
900
- count<T extends WorkflowStateCountArgs>(args?: Prisma.Subset<T, WorkflowStateCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], WorkflowStateCountAggregateOutputType> : number>;
901
- /**
902
- * Allows you to perform aggregations operations on a WorkflowState.
903
- * Note, that providing `undefined` is treated as the value not being there.
904
- * Read more here: https://pris.ly/d/null-undefined
905
- * @param {WorkflowStateAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
906
- * @example
907
- * // Ordered by age ascending
908
- * // Where email contains prisma.io
909
- * // Limited to the 10 users
910
- * const aggregations = await prisma.user.aggregate({
911
- * _avg: {
912
- * age: true,
913
- * },
914
- * where: {
915
- * email: {
916
- * contains: "prisma.io",
917
- * },
918
- * },
919
- * orderBy: {
920
- * age: "asc",
921
- * },
922
- * take: 10,
923
- * })
924
- **/
925
- aggregate<T extends WorkflowStateAggregateArgs>(args: Prisma.Subset<T, WorkflowStateAggregateArgs>): Prisma.PrismaPromise<GetWorkflowStateAggregateType<T>>;
926
- /**
927
- * Group by WorkflowState.
928
- * Note, that providing `undefined` is treated as the value not being there.
929
- * Read more here: https://pris.ly/d/null-undefined
930
- * @param {WorkflowStateGroupByArgs} args - Group by arguments.
931
- * @example
932
- * // Group by city, order by createdAt, get count
933
- * const result = await prisma.user.groupBy({
934
- * by: ['city', 'createdAt'],
935
- * orderBy: {
936
- * createdAt: true
937
- * },
938
- * _count: {
939
- * _all: true
940
- * },
941
- * })
942
- *
943
- **/
944
- groupBy<T extends WorkflowStateGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
945
- orderBy: WorkflowStateGroupByArgs['orderBy'];
946
- } : {
947
- orderBy?: WorkflowStateGroupByArgs['orderBy'];
948
- }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
949
- [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
950
- Error,
951
- 'Field ',
952
- P,
953
- ` in "having" needs to be provided in "by"`
954
- ];
955
- }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
956
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
957
- }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
958
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
959
- }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
960
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
961
- }[OrderFields]>(args: Prisma.SubsetIntersection<T, WorkflowStateGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorkflowStateGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
962
- /**
963
- * Fields of the WorkflowState model
964
- */
965
- readonly fields: WorkflowStateFieldRefs;
966
- }
967
- /**
968
- * The delegate class that acts as a "Promise-like" for WorkflowState.
969
- * Why is this prefixed with `Prisma__`?
970
- * Because we want to prevent naming conflicts as mentioned in
971
- * https://github.com/prisma/prisma-client-js/issues/707
972
- */
973
- export interface Prisma__WorkflowStateClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
974
- readonly [Symbol.toStringTag]: "PrismaPromise";
975
- document<T extends Prisma.DocumentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentDefaultArgs<ExtArgs>>): Prisma.Prisma__DocumentClient<runtime.Types.Result.GetResult<Prisma.$DocumentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
976
- assignedTo<T extends Prisma.WorkflowState$assignedToArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WorkflowState$assignedToArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
977
- /**
978
- * Attaches callbacks for the resolution and/or rejection of the Promise.
979
- * @param onfulfilled The callback to execute when the Promise is resolved.
980
- * @param onrejected The callback to execute when the Promise is rejected.
981
- * @returns A Promise for the completion of which ever callback is executed.
982
- */
983
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
984
- /**
985
- * Attaches a callback for only the rejection of the Promise.
986
- * @param onrejected The callback to execute when the Promise is rejected.
987
- * @returns A Promise for the completion of the callback.
988
- */
989
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
990
- /**
991
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
992
- * resolved value cannot be modified from the callback.
993
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
994
- * @returns A Promise for the completion of the callback.
995
- */
996
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
997
- }
998
- /**
999
- * Fields of the WorkflowState model
1000
- */
1001
- export interface WorkflowStateFieldRefs {
1002
- readonly id: Prisma.FieldRef<"WorkflowState", 'String'>;
1003
- readonly documentId: Prisma.FieldRef<"WorkflowState", 'String'>;
1004
- readonly currentStep: Prisma.FieldRef<"WorkflowState", 'Int'>;
1005
- readonly assignedToId: Prisma.FieldRef<"WorkflowState", 'String'>;
1006
- readonly status: Prisma.FieldRef<"WorkflowState", 'String'>;
1007
- readonly definition: Prisma.FieldRef<"WorkflowState", 'Json'>;
1008
- readonly createdAt: Prisma.FieldRef<"WorkflowState", 'DateTime'>;
1009
- readonly updatedAt: Prisma.FieldRef<"WorkflowState", 'DateTime'>;
1010
- }
1011
- /**
1012
- * WorkflowState findUnique
1013
- */
1014
- export type WorkflowStateFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1015
- /**
1016
- * Select specific fields to fetch from the WorkflowState
1017
- */
1018
- select?: Prisma.WorkflowStateSelect<ExtArgs> | null;
1019
- /**
1020
- * Omit specific fields from the WorkflowState
1021
- */
1022
- omit?: Prisma.WorkflowStateOmit<ExtArgs> | null;
1023
- /**
1024
- * Choose, which related nodes to fetch as well
1025
- */
1026
- include?: Prisma.WorkflowStateInclude<ExtArgs> | null;
1027
- /**
1028
- * Filter, which WorkflowState to fetch.
1029
- */
1030
- where: Prisma.WorkflowStateWhereUniqueInput;
1031
- relationLoadStrategy?: Prisma.RelationLoadStrategy;
1032
- };
1033
- /**
1034
- * WorkflowState findUniqueOrThrow
1035
- */
1036
- export type WorkflowStateFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1037
- /**
1038
- * Select specific fields to fetch from the WorkflowState
1039
- */
1040
- select?: Prisma.WorkflowStateSelect<ExtArgs> | null;
1041
- /**
1042
- * Omit specific fields from the WorkflowState
1043
- */
1044
- omit?: Prisma.WorkflowStateOmit<ExtArgs> | null;
1045
- /**
1046
- * Choose, which related nodes to fetch as well
1047
- */
1048
- include?: Prisma.WorkflowStateInclude<ExtArgs> | null;
1049
- /**
1050
- * Filter, which WorkflowState to fetch.
1051
- */
1052
- where: Prisma.WorkflowStateWhereUniqueInput;
1053
- relationLoadStrategy?: Prisma.RelationLoadStrategy;
1054
- };
1055
- /**
1056
- * WorkflowState findFirst
1057
- */
1058
- export type WorkflowStateFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1059
- /**
1060
- * Select specific fields to fetch from the WorkflowState
1061
- */
1062
- select?: Prisma.WorkflowStateSelect<ExtArgs> | null;
1063
- /**
1064
- * Omit specific fields from the WorkflowState
1065
- */
1066
- omit?: Prisma.WorkflowStateOmit<ExtArgs> | null;
1067
- /**
1068
- * Choose, which related nodes to fetch as well
1069
- */
1070
- include?: Prisma.WorkflowStateInclude<ExtArgs> | null;
1071
- /**
1072
- * Filter, which WorkflowState to fetch.
1073
- */
1074
- where?: Prisma.WorkflowStateWhereInput;
1075
- /**
1076
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1077
- *
1078
- * Determine the order of WorkflowStates to fetch.
1079
- */
1080
- orderBy?: Prisma.WorkflowStateOrderByWithRelationInput | Prisma.WorkflowStateOrderByWithRelationInput[];
1081
- /**
1082
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1083
- *
1084
- * Sets the position for searching for WorkflowStates.
1085
- */
1086
- cursor?: Prisma.WorkflowStateWhereUniqueInput;
1087
- /**
1088
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1089
- *
1090
- * Take `±n` WorkflowStates from the position of the cursor.
1091
- */
1092
- take?: number;
1093
- /**
1094
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1095
- *
1096
- * Skip the first `n` WorkflowStates.
1097
- */
1098
- skip?: number;
1099
- /**
1100
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1101
- *
1102
- * Filter by unique combinations of WorkflowStates.
1103
- */
1104
- distinct?: Prisma.WorkflowStateScalarFieldEnum | Prisma.WorkflowStateScalarFieldEnum[];
1105
- relationLoadStrategy?: Prisma.RelationLoadStrategy;
1106
- };
1107
- /**
1108
- * WorkflowState findFirstOrThrow
1109
- */
1110
- export type WorkflowStateFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1111
- /**
1112
- * Select specific fields to fetch from the WorkflowState
1113
- */
1114
- select?: Prisma.WorkflowStateSelect<ExtArgs> | null;
1115
- /**
1116
- * Omit specific fields from the WorkflowState
1117
- */
1118
- omit?: Prisma.WorkflowStateOmit<ExtArgs> | null;
1119
- /**
1120
- * Choose, which related nodes to fetch as well
1121
- */
1122
- include?: Prisma.WorkflowStateInclude<ExtArgs> | null;
1123
- /**
1124
- * Filter, which WorkflowState to fetch.
1125
- */
1126
- where?: Prisma.WorkflowStateWhereInput;
1127
- /**
1128
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1129
- *
1130
- * Determine the order of WorkflowStates to fetch.
1131
- */
1132
- orderBy?: Prisma.WorkflowStateOrderByWithRelationInput | Prisma.WorkflowStateOrderByWithRelationInput[];
1133
- /**
1134
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1135
- *
1136
- * Sets the position for searching for WorkflowStates.
1137
- */
1138
- cursor?: Prisma.WorkflowStateWhereUniqueInput;
1139
- /**
1140
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1141
- *
1142
- * Take `±n` WorkflowStates from the position of the cursor.
1143
- */
1144
- take?: number;
1145
- /**
1146
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1147
- *
1148
- * Skip the first `n` WorkflowStates.
1149
- */
1150
- skip?: number;
1151
- /**
1152
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1153
- *
1154
- * Filter by unique combinations of WorkflowStates.
1155
- */
1156
- distinct?: Prisma.WorkflowStateScalarFieldEnum | Prisma.WorkflowStateScalarFieldEnum[];
1157
- relationLoadStrategy?: Prisma.RelationLoadStrategy;
1158
- };
1159
- /**
1160
- * WorkflowState findMany
1161
- */
1162
- export type WorkflowStateFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1163
- /**
1164
- * Select specific fields to fetch from the WorkflowState
1165
- */
1166
- select?: Prisma.WorkflowStateSelect<ExtArgs> | null;
1167
- /**
1168
- * Omit specific fields from the WorkflowState
1169
- */
1170
- omit?: Prisma.WorkflowStateOmit<ExtArgs> | null;
1171
- /**
1172
- * Choose, which related nodes to fetch as well
1173
- */
1174
- include?: Prisma.WorkflowStateInclude<ExtArgs> | null;
1175
- /**
1176
- * Filter, which WorkflowStates to fetch.
1177
- */
1178
- where?: Prisma.WorkflowStateWhereInput;
1179
- /**
1180
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1181
- *
1182
- * Determine the order of WorkflowStates to fetch.
1183
- */
1184
- orderBy?: Prisma.WorkflowStateOrderByWithRelationInput | Prisma.WorkflowStateOrderByWithRelationInput[];
1185
- /**
1186
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1187
- *
1188
- * Sets the position for listing WorkflowStates.
1189
- */
1190
- cursor?: Prisma.WorkflowStateWhereUniqueInput;
1191
- /**
1192
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1193
- *
1194
- * Take `±n` WorkflowStates from the position of the cursor.
1195
- */
1196
- take?: number;
1197
- /**
1198
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1199
- *
1200
- * Skip the first `n` WorkflowStates.
1201
- */
1202
- skip?: number;
1203
- /**
1204
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1205
- *
1206
- * Filter by unique combinations of WorkflowStates.
1207
- */
1208
- distinct?: Prisma.WorkflowStateScalarFieldEnum | Prisma.WorkflowStateScalarFieldEnum[];
1209
- relationLoadStrategy?: Prisma.RelationLoadStrategy;
1210
- };
1211
- /**
1212
- * WorkflowState create
1213
- */
1214
- export type WorkflowStateCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1215
- /**
1216
- * Select specific fields to fetch from the WorkflowState
1217
- */
1218
- select?: Prisma.WorkflowStateSelect<ExtArgs> | null;
1219
- /**
1220
- * Omit specific fields from the WorkflowState
1221
- */
1222
- omit?: Prisma.WorkflowStateOmit<ExtArgs> | null;
1223
- /**
1224
- * Choose, which related nodes to fetch as well
1225
- */
1226
- include?: Prisma.WorkflowStateInclude<ExtArgs> | null;
1227
- /**
1228
- * The data needed to create a WorkflowState.
1229
- */
1230
- data: Prisma.XOR<Prisma.WorkflowStateCreateInput, Prisma.WorkflowStateUncheckedCreateInput>;
1231
- relationLoadStrategy?: Prisma.RelationLoadStrategy;
1232
- };
1233
- /**
1234
- * WorkflowState createMany
1235
- */
1236
- export type WorkflowStateCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1237
- /**
1238
- * The data used to create many WorkflowStates.
1239
- */
1240
- data: Prisma.WorkflowStateCreateManyInput | Prisma.WorkflowStateCreateManyInput[];
1241
- skipDuplicates?: boolean;
1242
- };
1243
- /**
1244
- * WorkflowState createManyAndReturn
1245
- */
1246
- export type WorkflowStateCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1247
- /**
1248
- * Select specific fields to fetch from the WorkflowState
1249
- */
1250
- select?: Prisma.WorkflowStateSelectCreateManyAndReturn<ExtArgs> | null;
1251
- /**
1252
- * Omit specific fields from the WorkflowState
1253
- */
1254
- omit?: Prisma.WorkflowStateOmit<ExtArgs> | null;
1255
- /**
1256
- * The data used to create many WorkflowStates.
1257
- */
1258
- data: Prisma.WorkflowStateCreateManyInput | Prisma.WorkflowStateCreateManyInput[];
1259
- skipDuplicates?: boolean;
1260
- /**
1261
- * Choose, which related nodes to fetch as well
1262
- */
1263
- include?: Prisma.WorkflowStateIncludeCreateManyAndReturn<ExtArgs> | null;
1264
- };
1265
- /**
1266
- * WorkflowState update
1267
- */
1268
- export type WorkflowStateUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1269
- /**
1270
- * Select specific fields to fetch from the WorkflowState
1271
- */
1272
- select?: Prisma.WorkflowStateSelect<ExtArgs> | null;
1273
- /**
1274
- * Omit specific fields from the WorkflowState
1275
- */
1276
- omit?: Prisma.WorkflowStateOmit<ExtArgs> | null;
1277
- /**
1278
- * Choose, which related nodes to fetch as well
1279
- */
1280
- include?: Prisma.WorkflowStateInclude<ExtArgs> | null;
1281
- /**
1282
- * The data needed to update a WorkflowState.
1283
- */
1284
- data: Prisma.XOR<Prisma.WorkflowStateUpdateInput, Prisma.WorkflowStateUncheckedUpdateInput>;
1285
- /**
1286
- * Choose, which WorkflowState to update.
1287
- */
1288
- where: Prisma.WorkflowStateWhereUniqueInput;
1289
- relationLoadStrategy?: Prisma.RelationLoadStrategy;
1290
- };
1291
- /**
1292
- * WorkflowState updateMany
1293
- */
1294
- export type WorkflowStateUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1295
- /**
1296
- * The data used to update WorkflowStates.
1297
- */
1298
- data: Prisma.XOR<Prisma.WorkflowStateUpdateManyMutationInput, Prisma.WorkflowStateUncheckedUpdateManyInput>;
1299
- /**
1300
- * Filter which WorkflowStates to update
1301
- */
1302
- where?: Prisma.WorkflowStateWhereInput;
1303
- /**
1304
- * Limit how many WorkflowStates to update.
1305
- */
1306
- limit?: number;
1307
- };
1308
- /**
1309
- * WorkflowState updateManyAndReturn
1310
- */
1311
- export type WorkflowStateUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1312
- /**
1313
- * Select specific fields to fetch from the WorkflowState
1314
- */
1315
- select?: Prisma.WorkflowStateSelectUpdateManyAndReturn<ExtArgs> | null;
1316
- /**
1317
- * Omit specific fields from the WorkflowState
1318
- */
1319
- omit?: Prisma.WorkflowStateOmit<ExtArgs> | null;
1320
- /**
1321
- * The data used to update WorkflowStates.
1322
- */
1323
- data: Prisma.XOR<Prisma.WorkflowStateUpdateManyMutationInput, Prisma.WorkflowStateUncheckedUpdateManyInput>;
1324
- /**
1325
- * Filter which WorkflowStates to update
1326
- */
1327
- where?: Prisma.WorkflowStateWhereInput;
1328
- /**
1329
- * Limit how many WorkflowStates to update.
1330
- */
1331
- limit?: number;
1332
- /**
1333
- * Choose, which related nodes to fetch as well
1334
- */
1335
- include?: Prisma.WorkflowStateIncludeUpdateManyAndReturn<ExtArgs> | null;
1336
- };
1337
- /**
1338
- * WorkflowState upsert
1339
- */
1340
- export type WorkflowStateUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1341
- /**
1342
- * Select specific fields to fetch from the WorkflowState
1343
- */
1344
- select?: Prisma.WorkflowStateSelect<ExtArgs> | null;
1345
- /**
1346
- * Omit specific fields from the WorkflowState
1347
- */
1348
- omit?: Prisma.WorkflowStateOmit<ExtArgs> | null;
1349
- /**
1350
- * Choose, which related nodes to fetch as well
1351
- */
1352
- include?: Prisma.WorkflowStateInclude<ExtArgs> | null;
1353
- /**
1354
- * The filter to search for the WorkflowState to update in case it exists.
1355
- */
1356
- where: Prisma.WorkflowStateWhereUniqueInput;
1357
- /**
1358
- * In case the WorkflowState found by the `where` argument doesn't exist, create a new WorkflowState with this data.
1359
- */
1360
- create: Prisma.XOR<Prisma.WorkflowStateCreateInput, Prisma.WorkflowStateUncheckedCreateInput>;
1361
- /**
1362
- * In case the WorkflowState was found with the provided `where` argument, update it with this data.
1363
- */
1364
- update: Prisma.XOR<Prisma.WorkflowStateUpdateInput, Prisma.WorkflowStateUncheckedUpdateInput>;
1365
- relationLoadStrategy?: Prisma.RelationLoadStrategy;
1366
- };
1367
- /**
1368
- * WorkflowState delete
1369
- */
1370
- export type WorkflowStateDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1371
- /**
1372
- * Select specific fields to fetch from the WorkflowState
1373
- */
1374
- select?: Prisma.WorkflowStateSelect<ExtArgs> | null;
1375
- /**
1376
- * Omit specific fields from the WorkflowState
1377
- */
1378
- omit?: Prisma.WorkflowStateOmit<ExtArgs> | null;
1379
- /**
1380
- * Choose, which related nodes to fetch as well
1381
- */
1382
- include?: Prisma.WorkflowStateInclude<ExtArgs> | null;
1383
- /**
1384
- * Filter which WorkflowState to delete.
1385
- */
1386
- where: Prisma.WorkflowStateWhereUniqueInput;
1387
- relationLoadStrategy?: Prisma.RelationLoadStrategy;
1388
- };
1389
- /**
1390
- * WorkflowState deleteMany
1391
- */
1392
- export type WorkflowStateDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1393
- /**
1394
- * Filter which WorkflowStates to delete
1395
- */
1396
- where?: Prisma.WorkflowStateWhereInput;
1397
- /**
1398
- * Limit how many WorkflowStates to delete.
1399
- */
1400
- limit?: number;
1401
- };
1402
- /**
1403
- * WorkflowState.assignedTo
1404
- */
1405
- export type WorkflowState$assignedToArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1406
- /**
1407
- * Select specific fields to fetch from the User
1408
- */
1409
- select?: Prisma.UserSelect<ExtArgs> | null;
1410
- /**
1411
- * Omit specific fields from the User
1412
- */
1413
- omit?: Prisma.UserOmit<ExtArgs> | null;
1414
- /**
1415
- * Choose, which related nodes to fetch as well
1416
- */
1417
- include?: Prisma.UserInclude<ExtArgs> | null;
1418
- where?: Prisma.UserWhereInput;
1419
- };
1420
- /**
1421
- * WorkflowState without action
1422
- */
1423
- export type WorkflowStateDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1424
- /**
1425
- * Select specific fields to fetch from the WorkflowState
1426
- */
1427
- select?: Prisma.WorkflowStateSelect<ExtArgs> | null;
1428
- /**
1429
- * Omit specific fields from the WorkflowState
1430
- */
1431
- omit?: Prisma.WorkflowStateOmit<ExtArgs> | null;
1432
- /**
1433
- * Choose, which related nodes to fetch as well
1434
- */
1435
- include?: Prisma.WorkflowStateInclude<ExtArgs> | null;
1436
- };