@valentine-efagene/qshelter-common 2.0.138 → 2.0.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/client/browser.d.ts +17 -17
- package/dist/generated/client/client.d.ts +17 -17
- package/dist/generated/client/commonInputTypes.d.ts +142 -202
- package/dist/generated/client/enums.d.ts +23 -0
- package/dist/generated/client/enums.js +21 -1
- package/dist/generated/client/internal/class.d.ts +37 -37
- package/dist/generated/client/internal/class.js +2 -2
- package/dist/generated/client/internal/prismaNamespace.d.ts +348 -377
- package/dist/generated/client/internal/prismaNamespace.js +91 -116
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +97 -122
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +91 -116
- package/dist/generated/client/models/ApplicationDocument.d.ts +290 -1
- package/dist/generated/client/models/ApprovalStage.d.ts +1605 -0
- package/dist/generated/client/models/ApprovalStage.js +1 -0
- package/dist/generated/client/models/ApprovalStageProgress.d.ts +2329 -0
- package/dist/generated/client/models/ApprovalStageProgress.js +1 -0
- package/dist/generated/client/models/DocumentApproval.d.ts +1611 -0
- package/dist/generated/client/models/DocumentApproval.js +1 -0
- package/dist/generated/client/models/DocumentDefinition.d.ts +1475 -0
- package/dist/generated/client/models/DocumentDefinition.js +1 -0
- package/dist/generated/client/models/DocumentReview.d.ts +0 -3
- package/dist/generated/client/models/DocumentationPhase.d.ts +215 -629
- package/dist/generated/client/models/DocumentationPlan.d.ts +188 -57
- package/dist/generated/client/models/PaymentMethodPhaseStep.d.ts +3 -0
- package/dist/generated/client/models/Tenant.d.ts +640 -1203
- package/dist/generated/client/models/User.d.ts +414 -817
- package/dist/generated/client/models/index.d.ts +4 -4
- package/dist/generated/client/models/index.js +4 -4
- package/dist/generated/client/models.d.ts +4 -4
- package/dist/src/utils/documentation-enums.d.ts +10 -1
- package/dist/src/utils/documentation-enums.js +8 -0
- package/package.json +1 -1
- package/prisma/migrations/20260119190336_add_document_approval_workflow/migration.sql +134 -0
- package/prisma/schema.prisma +229 -214
|
@@ -0,0 +1,1611 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as $Enums from "../enums.js";
|
|
3
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
4
|
+
/**
|
|
5
|
+
* Model DocumentApproval
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export type DocumentApprovalModel = runtime.Types.Result.DefaultSelection<Prisma.$DocumentApprovalPayload>;
|
|
9
|
+
export type AggregateDocumentApproval = {
|
|
10
|
+
_count: DocumentApprovalCountAggregateOutputType | null;
|
|
11
|
+
_min: DocumentApprovalMinAggregateOutputType | null;
|
|
12
|
+
_max: DocumentApprovalMaxAggregateOutputType | null;
|
|
13
|
+
};
|
|
14
|
+
export type DocumentApprovalMinAggregateOutputType = {
|
|
15
|
+
id: string | null;
|
|
16
|
+
tenantId: string | null;
|
|
17
|
+
documentId: string | null;
|
|
18
|
+
stageProgressId: string | null;
|
|
19
|
+
reviewerId: string | null;
|
|
20
|
+
reviewParty: $Enums.ReviewParty | null;
|
|
21
|
+
decision: $Enums.ReviewDecision | null;
|
|
22
|
+
comment: string | null;
|
|
23
|
+
reviewedAt: Date | null;
|
|
24
|
+
createdAt: Date | null;
|
|
25
|
+
};
|
|
26
|
+
export type DocumentApprovalMaxAggregateOutputType = {
|
|
27
|
+
id: string | null;
|
|
28
|
+
tenantId: string | null;
|
|
29
|
+
documentId: string | null;
|
|
30
|
+
stageProgressId: string | null;
|
|
31
|
+
reviewerId: string | null;
|
|
32
|
+
reviewParty: $Enums.ReviewParty | null;
|
|
33
|
+
decision: $Enums.ReviewDecision | null;
|
|
34
|
+
comment: string | null;
|
|
35
|
+
reviewedAt: Date | null;
|
|
36
|
+
createdAt: Date | null;
|
|
37
|
+
};
|
|
38
|
+
export type DocumentApprovalCountAggregateOutputType = {
|
|
39
|
+
id: number;
|
|
40
|
+
tenantId: number;
|
|
41
|
+
documentId: number;
|
|
42
|
+
stageProgressId: number;
|
|
43
|
+
reviewerId: number;
|
|
44
|
+
reviewParty: number;
|
|
45
|
+
decision: number;
|
|
46
|
+
comment: number;
|
|
47
|
+
reviewedAt: number;
|
|
48
|
+
createdAt: number;
|
|
49
|
+
_all: number;
|
|
50
|
+
};
|
|
51
|
+
export type DocumentApprovalMinAggregateInputType = {
|
|
52
|
+
id?: true;
|
|
53
|
+
tenantId?: true;
|
|
54
|
+
documentId?: true;
|
|
55
|
+
stageProgressId?: true;
|
|
56
|
+
reviewerId?: true;
|
|
57
|
+
reviewParty?: true;
|
|
58
|
+
decision?: true;
|
|
59
|
+
comment?: true;
|
|
60
|
+
reviewedAt?: true;
|
|
61
|
+
createdAt?: true;
|
|
62
|
+
};
|
|
63
|
+
export type DocumentApprovalMaxAggregateInputType = {
|
|
64
|
+
id?: true;
|
|
65
|
+
tenantId?: true;
|
|
66
|
+
documentId?: true;
|
|
67
|
+
stageProgressId?: true;
|
|
68
|
+
reviewerId?: true;
|
|
69
|
+
reviewParty?: true;
|
|
70
|
+
decision?: true;
|
|
71
|
+
comment?: true;
|
|
72
|
+
reviewedAt?: true;
|
|
73
|
+
createdAt?: true;
|
|
74
|
+
};
|
|
75
|
+
export type DocumentApprovalCountAggregateInputType = {
|
|
76
|
+
id?: true;
|
|
77
|
+
tenantId?: true;
|
|
78
|
+
documentId?: true;
|
|
79
|
+
stageProgressId?: true;
|
|
80
|
+
reviewerId?: true;
|
|
81
|
+
reviewParty?: true;
|
|
82
|
+
decision?: true;
|
|
83
|
+
comment?: true;
|
|
84
|
+
reviewedAt?: true;
|
|
85
|
+
createdAt?: true;
|
|
86
|
+
_all?: true;
|
|
87
|
+
};
|
|
88
|
+
export type DocumentApprovalAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
89
|
+
/**
|
|
90
|
+
* Filter which DocumentApproval to aggregate.
|
|
91
|
+
*/
|
|
92
|
+
where?: Prisma.DocumentApprovalWhereInput;
|
|
93
|
+
/**
|
|
94
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
95
|
+
*
|
|
96
|
+
* Determine the order of DocumentApprovals to fetch.
|
|
97
|
+
*/
|
|
98
|
+
orderBy?: Prisma.DocumentApprovalOrderByWithRelationInput | Prisma.DocumentApprovalOrderByWithRelationInput[];
|
|
99
|
+
/**
|
|
100
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
101
|
+
*
|
|
102
|
+
* Sets the start position
|
|
103
|
+
*/
|
|
104
|
+
cursor?: Prisma.DocumentApprovalWhereUniqueInput;
|
|
105
|
+
/**
|
|
106
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
107
|
+
*
|
|
108
|
+
* Take `±n` DocumentApprovals from the position of the cursor.
|
|
109
|
+
*/
|
|
110
|
+
take?: number;
|
|
111
|
+
/**
|
|
112
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
113
|
+
*
|
|
114
|
+
* Skip the first `n` DocumentApprovals.
|
|
115
|
+
*/
|
|
116
|
+
skip?: number;
|
|
117
|
+
/**
|
|
118
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
119
|
+
*
|
|
120
|
+
* Count returned DocumentApprovals
|
|
121
|
+
**/
|
|
122
|
+
_count?: true | DocumentApprovalCountAggregateInputType;
|
|
123
|
+
/**
|
|
124
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
125
|
+
*
|
|
126
|
+
* Select which fields to find the minimum value
|
|
127
|
+
**/
|
|
128
|
+
_min?: DocumentApprovalMinAggregateInputType;
|
|
129
|
+
/**
|
|
130
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
131
|
+
*
|
|
132
|
+
* Select which fields to find the maximum value
|
|
133
|
+
**/
|
|
134
|
+
_max?: DocumentApprovalMaxAggregateInputType;
|
|
135
|
+
};
|
|
136
|
+
export type GetDocumentApprovalAggregateType<T extends DocumentApprovalAggregateArgs> = {
|
|
137
|
+
[P in keyof T & keyof AggregateDocumentApproval]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateDocumentApproval[P]> : Prisma.GetScalarType<T[P], AggregateDocumentApproval[P]>;
|
|
138
|
+
};
|
|
139
|
+
export type DocumentApprovalGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
140
|
+
where?: Prisma.DocumentApprovalWhereInput;
|
|
141
|
+
orderBy?: Prisma.DocumentApprovalOrderByWithAggregationInput | Prisma.DocumentApprovalOrderByWithAggregationInput[];
|
|
142
|
+
by: Prisma.DocumentApprovalScalarFieldEnum[] | Prisma.DocumentApprovalScalarFieldEnum;
|
|
143
|
+
having?: Prisma.DocumentApprovalScalarWhereWithAggregatesInput;
|
|
144
|
+
take?: number;
|
|
145
|
+
skip?: number;
|
|
146
|
+
_count?: DocumentApprovalCountAggregateInputType | true;
|
|
147
|
+
_min?: DocumentApprovalMinAggregateInputType;
|
|
148
|
+
_max?: DocumentApprovalMaxAggregateInputType;
|
|
149
|
+
};
|
|
150
|
+
export type DocumentApprovalGroupByOutputType = {
|
|
151
|
+
id: string;
|
|
152
|
+
tenantId: string;
|
|
153
|
+
documentId: string;
|
|
154
|
+
stageProgressId: string;
|
|
155
|
+
reviewerId: string;
|
|
156
|
+
reviewParty: $Enums.ReviewParty;
|
|
157
|
+
decision: $Enums.ReviewDecision;
|
|
158
|
+
comment: string | null;
|
|
159
|
+
reviewedAt: Date;
|
|
160
|
+
createdAt: Date;
|
|
161
|
+
_count: DocumentApprovalCountAggregateOutputType | null;
|
|
162
|
+
_min: DocumentApprovalMinAggregateOutputType | null;
|
|
163
|
+
_max: DocumentApprovalMaxAggregateOutputType | null;
|
|
164
|
+
};
|
|
165
|
+
type GetDocumentApprovalGroupByPayload<T extends DocumentApprovalGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<DocumentApprovalGroupByOutputType, T['by']> & {
|
|
166
|
+
[P in ((keyof T) & (keyof DocumentApprovalGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], DocumentApprovalGroupByOutputType[P]> : Prisma.GetScalarType<T[P], DocumentApprovalGroupByOutputType[P]>;
|
|
167
|
+
}>>;
|
|
168
|
+
export type DocumentApprovalWhereInput = {
|
|
169
|
+
AND?: Prisma.DocumentApprovalWhereInput | Prisma.DocumentApprovalWhereInput[];
|
|
170
|
+
OR?: Prisma.DocumentApprovalWhereInput[];
|
|
171
|
+
NOT?: Prisma.DocumentApprovalWhereInput | Prisma.DocumentApprovalWhereInput[];
|
|
172
|
+
id?: Prisma.StringFilter<"DocumentApproval"> | string;
|
|
173
|
+
tenantId?: Prisma.StringFilter<"DocumentApproval"> | string;
|
|
174
|
+
documentId?: Prisma.StringFilter<"DocumentApproval"> | string;
|
|
175
|
+
stageProgressId?: Prisma.StringFilter<"DocumentApproval"> | string;
|
|
176
|
+
reviewerId?: Prisma.StringFilter<"DocumentApproval"> | string;
|
|
177
|
+
reviewParty?: Prisma.EnumReviewPartyFilter<"DocumentApproval"> | $Enums.ReviewParty;
|
|
178
|
+
decision?: Prisma.EnumReviewDecisionFilter<"DocumentApproval"> | $Enums.ReviewDecision;
|
|
179
|
+
comment?: Prisma.StringNullableFilter<"DocumentApproval"> | string | null;
|
|
180
|
+
reviewedAt?: Prisma.DateTimeFilter<"DocumentApproval"> | Date | string;
|
|
181
|
+
createdAt?: Prisma.DateTimeFilter<"DocumentApproval"> | Date | string;
|
|
182
|
+
tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
|
|
183
|
+
document?: Prisma.XOR<Prisma.ApplicationDocumentScalarRelationFilter, Prisma.ApplicationDocumentWhereInput>;
|
|
184
|
+
stageProgress?: Prisma.XOR<Prisma.ApprovalStageProgressScalarRelationFilter, Prisma.ApprovalStageProgressWhereInput>;
|
|
185
|
+
reviewer?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
186
|
+
};
|
|
187
|
+
export type DocumentApprovalOrderByWithRelationInput = {
|
|
188
|
+
id?: Prisma.SortOrder;
|
|
189
|
+
tenantId?: Prisma.SortOrder;
|
|
190
|
+
documentId?: Prisma.SortOrder;
|
|
191
|
+
stageProgressId?: Prisma.SortOrder;
|
|
192
|
+
reviewerId?: Prisma.SortOrder;
|
|
193
|
+
reviewParty?: Prisma.SortOrder;
|
|
194
|
+
decision?: Prisma.SortOrder;
|
|
195
|
+
comment?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
196
|
+
reviewedAt?: Prisma.SortOrder;
|
|
197
|
+
createdAt?: Prisma.SortOrder;
|
|
198
|
+
tenant?: Prisma.TenantOrderByWithRelationInput;
|
|
199
|
+
document?: Prisma.ApplicationDocumentOrderByWithRelationInput;
|
|
200
|
+
stageProgress?: Prisma.ApprovalStageProgressOrderByWithRelationInput;
|
|
201
|
+
reviewer?: Prisma.UserOrderByWithRelationInput;
|
|
202
|
+
_relevance?: Prisma.DocumentApprovalOrderByRelevanceInput;
|
|
203
|
+
};
|
|
204
|
+
export type DocumentApprovalWhereUniqueInput = Prisma.AtLeast<{
|
|
205
|
+
id?: string;
|
|
206
|
+
AND?: Prisma.DocumentApprovalWhereInput | Prisma.DocumentApprovalWhereInput[];
|
|
207
|
+
OR?: Prisma.DocumentApprovalWhereInput[];
|
|
208
|
+
NOT?: Prisma.DocumentApprovalWhereInput | Prisma.DocumentApprovalWhereInput[];
|
|
209
|
+
tenantId?: Prisma.StringFilter<"DocumentApproval"> | string;
|
|
210
|
+
documentId?: Prisma.StringFilter<"DocumentApproval"> | string;
|
|
211
|
+
stageProgressId?: Prisma.StringFilter<"DocumentApproval"> | string;
|
|
212
|
+
reviewerId?: Prisma.StringFilter<"DocumentApproval"> | string;
|
|
213
|
+
reviewParty?: Prisma.EnumReviewPartyFilter<"DocumentApproval"> | $Enums.ReviewParty;
|
|
214
|
+
decision?: Prisma.EnumReviewDecisionFilter<"DocumentApproval"> | $Enums.ReviewDecision;
|
|
215
|
+
comment?: Prisma.StringNullableFilter<"DocumentApproval"> | string | null;
|
|
216
|
+
reviewedAt?: Prisma.DateTimeFilter<"DocumentApproval"> | Date | string;
|
|
217
|
+
createdAt?: Prisma.DateTimeFilter<"DocumentApproval"> | Date | string;
|
|
218
|
+
tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
|
|
219
|
+
document?: Prisma.XOR<Prisma.ApplicationDocumentScalarRelationFilter, Prisma.ApplicationDocumentWhereInput>;
|
|
220
|
+
stageProgress?: Prisma.XOR<Prisma.ApprovalStageProgressScalarRelationFilter, Prisma.ApprovalStageProgressWhereInput>;
|
|
221
|
+
reviewer?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
222
|
+
}, "id">;
|
|
223
|
+
export type DocumentApprovalOrderByWithAggregationInput = {
|
|
224
|
+
id?: Prisma.SortOrder;
|
|
225
|
+
tenantId?: Prisma.SortOrder;
|
|
226
|
+
documentId?: Prisma.SortOrder;
|
|
227
|
+
stageProgressId?: Prisma.SortOrder;
|
|
228
|
+
reviewerId?: Prisma.SortOrder;
|
|
229
|
+
reviewParty?: Prisma.SortOrder;
|
|
230
|
+
decision?: Prisma.SortOrder;
|
|
231
|
+
comment?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
232
|
+
reviewedAt?: Prisma.SortOrder;
|
|
233
|
+
createdAt?: Prisma.SortOrder;
|
|
234
|
+
_count?: Prisma.DocumentApprovalCountOrderByAggregateInput;
|
|
235
|
+
_max?: Prisma.DocumentApprovalMaxOrderByAggregateInput;
|
|
236
|
+
_min?: Prisma.DocumentApprovalMinOrderByAggregateInput;
|
|
237
|
+
};
|
|
238
|
+
export type DocumentApprovalScalarWhereWithAggregatesInput = {
|
|
239
|
+
AND?: Prisma.DocumentApprovalScalarWhereWithAggregatesInput | Prisma.DocumentApprovalScalarWhereWithAggregatesInput[];
|
|
240
|
+
OR?: Prisma.DocumentApprovalScalarWhereWithAggregatesInput[];
|
|
241
|
+
NOT?: Prisma.DocumentApprovalScalarWhereWithAggregatesInput | Prisma.DocumentApprovalScalarWhereWithAggregatesInput[];
|
|
242
|
+
id?: Prisma.StringWithAggregatesFilter<"DocumentApproval"> | string;
|
|
243
|
+
tenantId?: Prisma.StringWithAggregatesFilter<"DocumentApproval"> | string;
|
|
244
|
+
documentId?: Prisma.StringWithAggregatesFilter<"DocumentApproval"> | string;
|
|
245
|
+
stageProgressId?: Prisma.StringWithAggregatesFilter<"DocumentApproval"> | string;
|
|
246
|
+
reviewerId?: Prisma.StringWithAggregatesFilter<"DocumentApproval"> | string;
|
|
247
|
+
reviewParty?: Prisma.EnumReviewPartyWithAggregatesFilter<"DocumentApproval"> | $Enums.ReviewParty;
|
|
248
|
+
decision?: Prisma.EnumReviewDecisionWithAggregatesFilter<"DocumentApproval"> | $Enums.ReviewDecision;
|
|
249
|
+
comment?: Prisma.StringNullableWithAggregatesFilter<"DocumentApproval"> | string | null;
|
|
250
|
+
reviewedAt?: Prisma.DateTimeWithAggregatesFilter<"DocumentApproval"> | Date | string;
|
|
251
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"DocumentApproval"> | Date | string;
|
|
252
|
+
};
|
|
253
|
+
export type DocumentApprovalCreateInput = {
|
|
254
|
+
id?: string;
|
|
255
|
+
reviewParty: $Enums.ReviewParty;
|
|
256
|
+
decision: $Enums.ReviewDecision;
|
|
257
|
+
comment?: string | null;
|
|
258
|
+
reviewedAt?: Date | string;
|
|
259
|
+
createdAt?: Date | string;
|
|
260
|
+
tenant: Prisma.TenantCreateNestedOneWithoutDocumentApprovalsInput;
|
|
261
|
+
document: Prisma.ApplicationDocumentCreateNestedOneWithoutApprovalTrailInput;
|
|
262
|
+
stageProgress: Prisma.ApprovalStageProgressCreateNestedOneWithoutDocumentApprovalsInput;
|
|
263
|
+
reviewer: Prisma.UserCreateNestedOneWithoutDocumentApprovalsInput;
|
|
264
|
+
};
|
|
265
|
+
export type DocumentApprovalUncheckedCreateInput = {
|
|
266
|
+
id?: string;
|
|
267
|
+
tenantId: string;
|
|
268
|
+
documentId: string;
|
|
269
|
+
stageProgressId: string;
|
|
270
|
+
reviewerId: string;
|
|
271
|
+
reviewParty: $Enums.ReviewParty;
|
|
272
|
+
decision: $Enums.ReviewDecision;
|
|
273
|
+
comment?: string | null;
|
|
274
|
+
reviewedAt?: Date | string;
|
|
275
|
+
createdAt?: Date | string;
|
|
276
|
+
};
|
|
277
|
+
export type DocumentApprovalUpdateInput = {
|
|
278
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
279
|
+
reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
|
|
280
|
+
decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
|
|
281
|
+
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
282
|
+
reviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
283
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
284
|
+
tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentApprovalsNestedInput;
|
|
285
|
+
document?: Prisma.ApplicationDocumentUpdateOneRequiredWithoutApprovalTrailNestedInput;
|
|
286
|
+
stageProgress?: Prisma.ApprovalStageProgressUpdateOneRequiredWithoutDocumentApprovalsNestedInput;
|
|
287
|
+
reviewer?: Prisma.UserUpdateOneRequiredWithoutDocumentApprovalsNestedInput;
|
|
288
|
+
};
|
|
289
|
+
export type DocumentApprovalUncheckedUpdateInput = {
|
|
290
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
291
|
+
tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
292
|
+
documentId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
293
|
+
stageProgressId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
294
|
+
reviewerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
295
|
+
reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
|
|
296
|
+
decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
|
|
297
|
+
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
298
|
+
reviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
299
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
300
|
+
};
|
|
301
|
+
export type DocumentApprovalCreateManyInput = {
|
|
302
|
+
id?: string;
|
|
303
|
+
tenantId: string;
|
|
304
|
+
documentId: string;
|
|
305
|
+
stageProgressId: string;
|
|
306
|
+
reviewerId: string;
|
|
307
|
+
reviewParty: $Enums.ReviewParty;
|
|
308
|
+
decision: $Enums.ReviewDecision;
|
|
309
|
+
comment?: string | null;
|
|
310
|
+
reviewedAt?: Date | string;
|
|
311
|
+
createdAt?: Date | string;
|
|
312
|
+
};
|
|
313
|
+
export type DocumentApprovalUpdateManyMutationInput = {
|
|
314
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
315
|
+
reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
|
|
316
|
+
decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
|
|
317
|
+
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
318
|
+
reviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
319
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
320
|
+
};
|
|
321
|
+
export type DocumentApprovalUncheckedUpdateManyInput = {
|
|
322
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
323
|
+
tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
324
|
+
documentId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
325
|
+
stageProgressId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
326
|
+
reviewerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
327
|
+
reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
|
|
328
|
+
decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
|
|
329
|
+
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
330
|
+
reviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
331
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
332
|
+
};
|
|
333
|
+
export type DocumentApprovalListRelationFilter = {
|
|
334
|
+
every?: Prisma.DocumentApprovalWhereInput;
|
|
335
|
+
some?: Prisma.DocumentApprovalWhereInput;
|
|
336
|
+
none?: Prisma.DocumentApprovalWhereInput;
|
|
337
|
+
};
|
|
338
|
+
export type DocumentApprovalOrderByRelationAggregateInput = {
|
|
339
|
+
_count?: Prisma.SortOrder;
|
|
340
|
+
};
|
|
341
|
+
export type DocumentApprovalOrderByRelevanceInput = {
|
|
342
|
+
fields: Prisma.DocumentApprovalOrderByRelevanceFieldEnum | Prisma.DocumentApprovalOrderByRelevanceFieldEnum[];
|
|
343
|
+
sort: Prisma.SortOrder;
|
|
344
|
+
search: string;
|
|
345
|
+
};
|
|
346
|
+
export type DocumentApprovalCountOrderByAggregateInput = {
|
|
347
|
+
id?: Prisma.SortOrder;
|
|
348
|
+
tenantId?: Prisma.SortOrder;
|
|
349
|
+
documentId?: Prisma.SortOrder;
|
|
350
|
+
stageProgressId?: Prisma.SortOrder;
|
|
351
|
+
reviewerId?: Prisma.SortOrder;
|
|
352
|
+
reviewParty?: Prisma.SortOrder;
|
|
353
|
+
decision?: Prisma.SortOrder;
|
|
354
|
+
comment?: Prisma.SortOrder;
|
|
355
|
+
reviewedAt?: Prisma.SortOrder;
|
|
356
|
+
createdAt?: Prisma.SortOrder;
|
|
357
|
+
};
|
|
358
|
+
export type DocumentApprovalMaxOrderByAggregateInput = {
|
|
359
|
+
id?: Prisma.SortOrder;
|
|
360
|
+
tenantId?: Prisma.SortOrder;
|
|
361
|
+
documentId?: Prisma.SortOrder;
|
|
362
|
+
stageProgressId?: Prisma.SortOrder;
|
|
363
|
+
reviewerId?: Prisma.SortOrder;
|
|
364
|
+
reviewParty?: Prisma.SortOrder;
|
|
365
|
+
decision?: Prisma.SortOrder;
|
|
366
|
+
comment?: Prisma.SortOrder;
|
|
367
|
+
reviewedAt?: Prisma.SortOrder;
|
|
368
|
+
createdAt?: Prisma.SortOrder;
|
|
369
|
+
};
|
|
370
|
+
export type DocumentApprovalMinOrderByAggregateInput = {
|
|
371
|
+
id?: Prisma.SortOrder;
|
|
372
|
+
tenantId?: Prisma.SortOrder;
|
|
373
|
+
documentId?: Prisma.SortOrder;
|
|
374
|
+
stageProgressId?: Prisma.SortOrder;
|
|
375
|
+
reviewerId?: Prisma.SortOrder;
|
|
376
|
+
reviewParty?: Prisma.SortOrder;
|
|
377
|
+
decision?: Prisma.SortOrder;
|
|
378
|
+
comment?: Prisma.SortOrder;
|
|
379
|
+
reviewedAt?: Prisma.SortOrder;
|
|
380
|
+
createdAt?: Prisma.SortOrder;
|
|
381
|
+
};
|
|
382
|
+
export type DocumentApprovalCreateNestedManyWithoutReviewerInput = {
|
|
383
|
+
create?: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutReviewerInput, Prisma.DocumentApprovalUncheckedCreateWithoutReviewerInput> | Prisma.DocumentApprovalCreateWithoutReviewerInput[] | Prisma.DocumentApprovalUncheckedCreateWithoutReviewerInput[];
|
|
384
|
+
connectOrCreate?: Prisma.DocumentApprovalCreateOrConnectWithoutReviewerInput | Prisma.DocumentApprovalCreateOrConnectWithoutReviewerInput[];
|
|
385
|
+
createMany?: Prisma.DocumentApprovalCreateManyReviewerInputEnvelope;
|
|
386
|
+
connect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
387
|
+
};
|
|
388
|
+
export type DocumentApprovalUncheckedCreateNestedManyWithoutReviewerInput = {
|
|
389
|
+
create?: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutReviewerInput, Prisma.DocumentApprovalUncheckedCreateWithoutReviewerInput> | Prisma.DocumentApprovalCreateWithoutReviewerInput[] | Prisma.DocumentApprovalUncheckedCreateWithoutReviewerInput[];
|
|
390
|
+
connectOrCreate?: Prisma.DocumentApprovalCreateOrConnectWithoutReviewerInput | Prisma.DocumentApprovalCreateOrConnectWithoutReviewerInput[];
|
|
391
|
+
createMany?: Prisma.DocumentApprovalCreateManyReviewerInputEnvelope;
|
|
392
|
+
connect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
393
|
+
};
|
|
394
|
+
export type DocumentApprovalUpdateManyWithoutReviewerNestedInput = {
|
|
395
|
+
create?: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutReviewerInput, Prisma.DocumentApprovalUncheckedCreateWithoutReviewerInput> | Prisma.DocumentApprovalCreateWithoutReviewerInput[] | Prisma.DocumentApprovalUncheckedCreateWithoutReviewerInput[];
|
|
396
|
+
connectOrCreate?: Prisma.DocumentApprovalCreateOrConnectWithoutReviewerInput | Prisma.DocumentApprovalCreateOrConnectWithoutReviewerInput[];
|
|
397
|
+
upsert?: Prisma.DocumentApprovalUpsertWithWhereUniqueWithoutReviewerInput | Prisma.DocumentApprovalUpsertWithWhereUniqueWithoutReviewerInput[];
|
|
398
|
+
createMany?: Prisma.DocumentApprovalCreateManyReviewerInputEnvelope;
|
|
399
|
+
set?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
400
|
+
disconnect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
401
|
+
delete?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
402
|
+
connect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
403
|
+
update?: Prisma.DocumentApprovalUpdateWithWhereUniqueWithoutReviewerInput | Prisma.DocumentApprovalUpdateWithWhereUniqueWithoutReviewerInput[];
|
|
404
|
+
updateMany?: Prisma.DocumentApprovalUpdateManyWithWhereWithoutReviewerInput | Prisma.DocumentApprovalUpdateManyWithWhereWithoutReviewerInput[];
|
|
405
|
+
deleteMany?: Prisma.DocumentApprovalScalarWhereInput | Prisma.DocumentApprovalScalarWhereInput[];
|
|
406
|
+
};
|
|
407
|
+
export type DocumentApprovalUncheckedUpdateManyWithoutReviewerNestedInput = {
|
|
408
|
+
create?: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutReviewerInput, Prisma.DocumentApprovalUncheckedCreateWithoutReviewerInput> | Prisma.DocumentApprovalCreateWithoutReviewerInput[] | Prisma.DocumentApprovalUncheckedCreateWithoutReviewerInput[];
|
|
409
|
+
connectOrCreate?: Prisma.DocumentApprovalCreateOrConnectWithoutReviewerInput | Prisma.DocumentApprovalCreateOrConnectWithoutReviewerInput[];
|
|
410
|
+
upsert?: Prisma.DocumentApprovalUpsertWithWhereUniqueWithoutReviewerInput | Prisma.DocumentApprovalUpsertWithWhereUniqueWithoutReviewerInput[];
|
|
411
|
+
createMany?: Prisma.DocumentApprovalCreateManyReviewerInputEnvelope;
|
|
412
|
+
set?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
413
|
+
disconnect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
414
|
+
delete?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
415
|
+
connect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
416
|
+
update?: Prisma.DocumentApprovalUpdateWithWhereUniqueWithoutReviewerInput | Prisma.DocumentApprovalUpdateWithWhereUniqueWithoutReviewerInput[];
|
|
417
|
+
updateMany?: Prisma.DocumentApprovalUpdateManyWithWhereWithoutReviewerInput | Prisma.DocumentApprovalUpdateManyWithWhereWithoutReviewerInput[];
|
|
418
|
+
deleteMany?: Prisma.DocumentApprovalScalarWhereInput | Prisma.DocumentApprovalScalarWhereInput[];
|
|
419
|
+
};
|
|
420
|
+
export type DocumentApprovalCreateNestedManyWithoutTenantInput = {
|
|
421
|
+
create?: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutTenantInput, Prisma.DocumentApprovalUncheckedCreateWithoutTenantInput> | Prisma.DocumentApprovalCreateWithoutTenantInput[] | Prisma.DocumentApprovalUncheckedCreateWithoutTenantInput[];
|
|
422
|
+
connectOrCreate?: Prisma.DocumentApprovalCreateOrConnectWithoutTenantInput | Prisma.DocumentApprovalCreateOrConnectWithoutTenantInput[];
|
|
423
|
+
createMany?: Prisma.DocumentApprovalCreateManyTenantInputEnvelope;
|
|
424
|
+
connect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
425
|
+
};
|
|
426
|
+
export type DocumentApprovalUncheckedCreateNestedManyWithoutTenantInput = {
|
|
427
|
+
create?: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutTenantInput, Prisma.DocumentApprovalUncheckedCreateWithoutTenantInput> | Prisma.DocumentApprovalCreateWithoutTenantInput[] | Prisma.DocumentApprovalUncheckedCreateWithoutTenantInput[];
|
|
428
|
+
connectOrCreate?: Prisma.DocumentApprovalCreateOrConnectWithoutTenantInput | Prisma.DocumentApprovalCreateOrConnectWithoutTenantInput[];
|
|
429
|
+
createMany?: Prisma.DocumentApprovalCreateManyTenantInputEnvelope;
|
|
430
|
+
connect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
431
|
+
};
|
|
432
|
+
export type DocumentApprovalUpdateManyWithoutTenantNestedInput = {
|
|
433
|
+
create?: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutTenantInput, Prisma.DocumentApprovalUncheckedCreateWithoutTenantInput> | Prisma.DocumentApprovalCreateWithoutTenantInput[] | Prisma.DocumentApprovalUncheckedCreateWithoutTenantInput[];
|
|
434
|
+
connectOrCreate?: Prisma.DocumentApprovalCreateOrConnectWithoutTenantInput | Prisma.DocumentApprovalCreateOrConnectWithoutTenantInput[];
|
|
435
|
+
upsert?: Prisma.DocumentApprovalUpsertWithWhereUniqueWithoutTenantInput | Prisma.DocumentApprovalUpsertWithWhereUniqueWithoutTenantInput[];
|
|
436
|
+
createMany?: Prisma.DocumentApprovalCreateManyTenantInputEnvelope;
|
|
437
|
+
set?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
438
|
+
disconnect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
439
|
+
delete?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
440
|
+
connect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
441
|
+
update?: Prisma.DocumentApprovalUpdateWithWhereUniqueWithoutTenantInput | Prisma.DocumentApprovalUpdateWithWhereUniqueWithoutTenantInput[];
|
|
442
|
+
updateMany?: Prisma.DocumentApprovalUpdateManyWithWhereWithoutTenantInput | Prisma.DocumentApprovalUpdateManyWithWhereWithoutTenantInput[];
|
|
443
|
+
deleteMany?: Prisma.DocumentApprovalScalarWhereInput | Prisma.DocumentApprovalScalarWhereInput[];
|
|
444
|
+
};
|
|
445
|
+
export type DocumentApprovalUncheckedUpdateManyWithoutTenantNestedInput = {
|
|
446
|
+
create?: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutTenantInput, Prisma.DocumentApprovalUncheckedCreateWithoutTenantInput> | Prisma.DocumentApprovalCreateWithoutTenantInput[] | Prisma.DocumentApprovalUncheckedCreateWithoutTenantInput[];
|
|
447
|
+
connectOrCreate?: Prisma.DocumentApprovalCreateOrConnectWithoutTenantInput | Prisma.DocumentApprovalCreateOrConnectWithoutTenantInput[];
|
|
448
|
+
upsert?: Prisma.DocumentApprovalUpsertWithWhereUniqueWithoutTenantInput | Prisma.DocumentApprovalUpsertWithWhereUniqueWithoutTenantInput[];
|
|
449
|
+
createMany?: Prisma.DocumentApprovalCreateManyTenantInputEnvelope;
|
|
450
|
+
set?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
451
|
+
disconnect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
452
|
+
delete?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
453
|
+
connect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
454
|
+
update?: Prisma.DocumentApprovalUpdateWithWhereUniqueWithoutTenantInput | Prisma.DocumentApprovalUpdateWithWhereUniqueWithoutTenantInput[];
|
|
455
|
+
updateMany?: Prisma.DocumentApprovalUpdateManyWithWhereWithoutTenantInput | Prisma.DocumentApprovalUpdateManyWithWhereWithoutTenantInput[];
|
|
456
|
+
deleteMany?: Prisma.DocumentApprovalScalarWhereInput | Prisma.DocumentApprovalScalarWhereInput[];
|
|
457
|
+
};
|
|
458
|
+
export type DocumentApprovalCreateNestedManyWithoutDocumentInput = {
|
|
459
|
+
create?: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutDocumentInput, Prisma.DocumentApprovalUncheckedCreateWithoutDocumentInput> | Prisma.DocumentApprovalCreateWithoutDocumentInput[] | Prisma.DocumentApprovalUncheckedCreateWithoutDocumentInput[];
|
|
460
|
+
connectOrCreate?: Prisma.DocumentApprovalCreateOrConnectWithoutDocumentInput | Prisma.DocumentApprovalCreateOrConnectWithoutDocumentInput[];
|
|
461
|
+
createMany?: Prisma.DocumentApprovalCreateManyDocumentInputEnvelope;
|
|
462
|
+
connect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
463
|
+
};
|
|
464
|
+
export type DocumentApprovalUncheckedCreateNestedManyWithoutDocumentInput = {
|
|
465
|
+
create?: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutDocumentInput, Prisma.DocumentApprovalUncheckedCreateWithoutDocumentInput> | Prisma.DocumentApprovalCreateWithoutDocumentInput[] | Prisma.DocumentApprovalUncheckedCreateWithoutDocumentInput[];
|
|
466
|
+
connectOrCreate?: Prisma.DocumentApprovalCreateOrConnectWithoutDocumentInput | Prisma.DocumentApprovalCreateOrConnectWithoutDocumentInput[];
|
|
467
|
+
createMany?: Prisma.DocumentApprovalCreateManyDocumentInputEnvelope;
|
|
468
|
+
connect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
469
|
+
};
|
|
470
|
+
export type DocumentApprovalUpdateManyWithoutDocumentNestedInput = {
|
|
471
|
+
create?: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutDocumentInput, Prisma.DocumentApprovalUncheckedCreateWithoutDocumentInput> | Prisma.DocumentApprovalCreateWithoutDocumentInput[] | Prisma.DocumentApprovalUncheckedCreateWithoutDocumentInput[];
|
|
472
|
+
connectOrCreate?: Prisma.DocumentApprovalCreateOrConnectWithoutDocumentInput | Prisma.DocumentApprovalCreateOrConnectWithoutDocumentInput[];
|
|
473
|
+
upsert?: Prisma.DocumentApprovalUpsertWithWhereUniqueWithoutDocumentInput | Prisma.DocumentApprovalUpsertWithWhereUniqueWithoutDocumentInput[];
|
|
474
|
+
createMany?: Prisma.DocumentApprovalCreateManyDocumentInputEnvelope;
|
|
475
|
+
set?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
476
|
+
disconnect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
477
|
+
delete?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
478
|
+
connect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
479
|
+
update?: Prisma.DocumentApprovalUpdateWithWhereUniqueWithoutDocumentInput | Prisma.DocumentApprovalUpdateWithWhereUniqueWithoutDocumentInput[];
|
|
480
|
+
updateMany?: Prisma.DocumentApprovalUpdateManyWithWhereWithoutDocumentInput | Prisma.DocumentApprovalUpdateManyWithWhereWithoutDocumentInput[];
|
|
481
|
+
deleteMany?: Prisma.DocumentApprovalScalarWhereInput | Prisma.DocumentApprovalScalarWhereInput[];
|
|
482
|
+
};
|
|
483
|
+
export type DocumentApprovalUncheckedUpdateManyWithoutDocumentNestedInput = {
|
|
484
|
+
create?: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutDocumentInput, Prisma.DocumentApprovalUncheckedCreateWithoutDocumentInput> | Prisma.DocumentApprovalCreateWithoutDocumentInput[] | Prisma.DocumentApprovalUncheckedCreateWithoutDocumentInput[];
|
|
485
|
+
connectOrCreate?: Prisma.DocumentApprovalCreateOrConnectWithoutDocumentInput | Prisma.DocumentApprovalCreateOrConnectWithoutDocumentInput[];
|
|
486
|
+
upsert?: Prisma.DocumentApprovalUpsertWithWhereUniqueWithoutDocumentInput | Prisma.DocumentApprovalUpsertWithWhereUniqueWithoutDocumentInput[];
|
|
487
|
+
createMany?: Prisma.DocumentApprovalCreateManyDocumentInputEnvelope;
|
|
488
|
+
set?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
489
|
+
disconnect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
490
|
+
delete?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
491
|
+
connect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
492
|
+
update?: Prisma.DocumentApprovalUpdateWithWhereUniqueWithoutDocumentInput | Prisma.DocumentApprovalUpdateWithWhereUniqueWithoutDocumentInput[];
|
|
493
|
+
updateMany?: Prisma.DocumentApprovalUpdateManyWithWhereWithoutDocumentInput | Prisma.DocumentApprovalUpdateManyWithWhereWithoutDocumentInput[];
|
|
494
|
+
deleteMany?: Prisma.DocumentApprovalScalarWhereInput | Prisma.DocumentApprovalScalarWhereInput[];
|
|
495
|
+
};
|
|
496
|
+
export type DocumentApprovalCreateNestedManyWithoutStageProgressInput = {
|
|
497
|
+
create?: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutStageProgressInput, Prisma.DocumentApprovalUncheckedCreateWithoutStageProgressInput> | Prisma.DocumentApprovalCreateWithoutStageProgressInput[] | Prisma.DocumentApprovalUncheckedCreateWithoutStageProgressInput[];
|
|
498
|
+
connectOrCreate?: Prisma.DocumentApprovalCreateOrConnectWithoutStageProgressInput | Prisma.DocumentApprovalCreateOrConnectWithoutStageProgressInput[];
|
|
499
|
+
createMany?: Prisma.DocumentApprovalCreateManyStageProgressInputEnvelope;
|
|
500
|
+
connect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
501
|
+
};
|
|
502
|
+
export type DocumentApprovalUncheckedCreateNestedManyWithoutStageProgressInput = {
|
|
503
|
+
create?: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutStageProgressInput, Prisma.DocumentApprovalUncheckedCreateWithoutStageProgressInput> | Prisma.DocumentApprovalCreateWithoutStageProgressInput[] | Prisma.DocumentApprovalUncheckedCreateWithoutStageProgressInput[];
|
|
504
|
+
connectOrCreate?: Prisma.DocumentApprovalCreateOrConnectWithoutStageProgressInput | Prisma.DocumentApprovalCreateOrConnectWithoutStageProgressInput[];
|
|
505
|
+
createMany?: Prisma.DocumentApprovalCreateManyStageProgressInputEnvelope;
|
|
506
|
+
connect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
507
|
+
};
|
|
508
|
+
export type DocumentApprovalUpdateManyWithoutStageProgressNestedInput = {
|
|
509
|
+
create?: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutStageProgressInput, Prisma.DocumentApprovalUncheckedCreateWithoutStageProgressInput> | Prisma.DocumentApprovalCreateWithoutStageProgressInput[] | Prisma.DocumentApprovalUncheckedCreateWithoutStageProgressInput[];
|
|
510
|
+
connectOrCreate?: Prisma.DocumentApprovalCreateOrConnectWithoutStageProgressInput | Prisma.DocumentApprovalCreateOrConnectWithoutStageProgressInput[];
|
|
511
|
+
upsert?: Prisma.DocumentApprovalUpsertWithWhereUniqueWithoutStageProgressInput | Prisma.DocumentApprovalUpsertWithWhereUniqueWithoutStageProgressInput[];
|
|
512
|
+
createMany?: Prisma.DocumentApprovalCreateManyStageProgressInputEnvelope;
|
|
513
|
+
set?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
514
|
+
disconnect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
515
|
+
delete?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
516
|
+
connect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
517
|
+
update?: Prisma.DocumentApprovalUpdateWithWhereUniqueWithoutStageProgressInput | Prisma.DocumentApprovalUpdateWithWhereUniqueWithoutStageProgressInput[];
|
|
518
|
+
updateMany?: Prisma.DocumentApprovalUpdateManyWithWhereWithoutStageProgressInput | Prisma.DocumentApprovalUpdateManyWithWhereWithoutStageProgressInput[];
|
|
519
|
+
deleteMany?: Prisma.DocumentApprovalScalarWhereInput | Prisma.DocumentApprovalScalarWhereInput[];
|
|
520
|
+
};
|
|
521
|
+
export type DocumentApprovalUncheckedUpdateManyWithoutStageProgressNestedInput = {
|
|
522
|
+
create?: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutStageProgressInput, Prisma.DocumentApprovalUncheckedCreateWithoutStageProgressInput> | Prisma.DocumentApprovalCreateWithoutStageProgressInput[] | Prisma.DocumentApprovalUncheckedCreateWithoutStageProgressInput[];
|
|
523
|
+
connectOrCreate?: Prisma.DocumentApprovalCreateOrConnectWithoutStageProgressInput | Prisma.DocumentApprovalCreateOrConnectWithoutStageProgressInput[];
|
|
524
|
+
upsert?: Prisma.DocumentApprovalUpsertWithWhereUniqueWithoutStageProgressInput | Prisma.DocumentApprovalUpsertWithWhereUniqueWithoutStageProgressInput[];
|
|
525
|
+
createMany?: Prisma.DocumentApprovalCreateManyStageProgressInputEnvelope;
|
|
526
|
+
set?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
527
|
+
disconnect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
528
|
+
delete?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
529
|
+
connect?: Prisma.DocumentApprovalWhereUniqueInput | Prisma.DocumentApprovalWhereUniqueInput[];
|
|
530
|
+
update?: Prisma.DocumentApprovalUpdateWithWhereUniqueWithoutStageProgressInput | Prisma.DocumentApprovalUpdateWithWhereUniqueWithoutStageProgressInput[];
|
|
531
|
+
updateMany?: Prisma.DocumentApprovalUpdateManyWithWhereWithoutStageProgressInput | Prisma.DocumentApprovalUpdateManyWithWhereWithoutStageProgressInput[];
|
|
532
|
+
deleteMany?: Prisma.DocumentApprovalScalarWhereInput | Prisma.DocumentApprovalScalarWhereInput[];
|
|
533
|
+
};
|
|
534
|
+
export type DocumentApprovalCreateWithoutReviewerInput = {
|
|
535
|
+
id?: string;
|
|
536
|
+
reviewParty: $Enums.ReviewParty;
|
|
537
|
+
decision: $Enums.ReviewDecision;
|
|
538
|
+
comment?: string | null;
|
|
539
|
+
reviewedAt?: Date | string;
|
|
540
|
+
createdAt?: Date | string;
|
|
541
|
+
tenant: Prisma.TenantCreateNestedOneWithoutDocumentApprovalsInput;
|
|
542
|
+
document: Prisma.ApplicationDocumentCreateNestedOneWithoutApprovalTrailInput;
|
|
543
|
+
stageProgress: Prisma.ApprovalStageProgressCreateNestedOneWithoutDocumentApprovalsInput;
|
|
544
|
+
};
|
|
545
|
+
export type DocumentApprovalUncheckedCreateWithoutReviewerInput = {
|
|
546
|
+
id?: string;
|
|
547
|
+
tenantId: string;
|
|
548
|
+
documentId: string;
|
|
549
|
+
stageProgressId: string;
|
|
550
|
+
reviewParty: $Enums.ReviewParty;
|
|
551
|
+
decision: $Enums.ReviewDecision;
|
|
552
|
+
comment?: string | null;
|
|
553
|
+
reviewedAt?: Date | string;
|
|
554
|
+
createdAt?: Date | string;
|
|
555
|
+
};
|
|
556
|
+
export type DocumentApprovalCreateOrConnectWithoutReviewerInput = {
|
|
557
|
+
where: Prisma.DocumentApprovalWhereUniqueInput;
|
|
558
|
+
create: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutReviewerInput, Prisma.DocumentApprovalUncheckedCreateWithoutReviewerInput>;
|
|
559
|
+
};
|
|
560
|
+
export type DocumentApprovalCreateManyReviewerInputEnvelope = {
|
|
561
|
+
data: Prisma.DocumentApprovalCreateManyReviewerInput | Prisma.DocumentApprovalCreateManyReviewerInput[];
|
|
562
|
+
skipDuplicates?: boolean;
|
|
563
|
+
};
|
|
564
|
+
export type DocumentApprovalUpsertWithWhereUniqueWithoutReviewerInput = {
|
|
565
|
+
where: Prisma.DocumentApprovalWhereUniqueInput;
|
|
566
|
+
update: Prisma.XOR<Prisma.DocumentApprovalUpdateWithoutReviewerInput, Prisma.DocumentApprovalUncheckedUpdateWithoutReviewerInput>;
|
|
567
|
+
create: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutReviewerInput, Prisma.DocumentApprovalUncheckedCreateWithoutReviewerInput>;
|
|
568
|
+
};
|
|
569
|
+
export type DocumentApprovalUpdateWithWhereUniqueWithoutReviewerInput = {
|
|
570
|
+
where: Prisma.DocumentApprovalWhereUniqueInput;
|
|
571
|
+
data: Prisma.XOR<Prisma.DocumentApprovalUpdateWithoutReviewerInput, Prisma.DocumentApprovalUncheckedUpdateWithoutReviewerInput>;
|
|
572
|
+
};
|
|
573
|
+
export type DocumentApprovalUpdateManyWithWhereWithoutReviewerInput = {
|
|
574
|
+
where: Prisma.DocumentApprovalScalarWhereInput;
|
|
575
|
+
data: Prisma.XOR<Prisma.DocumentApprovalUpdateManyMutationInput, Prisma.DocumentApprovalUncheckedUpdateManyWithoutReviewerInput>;
|
|
576
|
+
};
|
|
577
|
+
export type DocumentApprovalScalarWhereInput = {
|
|
578
|
+
AND?: Prisma.DocumentApprovalScalarWhereInput | Prisma.DocumentApprovalScalarWhereInput[];
|
|
579
|
+
OR?: Prisma.DocumentApprovalScalarWhereInput[];
|
|
580
|
+
NOT?: Prisma.DocumentApprovalScalarWhereInput | Prisma.DocumentApprovalScalarWhereInput[];
|
|
581
|
+
id?: Prisma.StringFilter<"DocumentApproval"> | string;
|
|
582
|
+
tenantId?: Prisma.StringFilter<"DocumentApproval"> | string;
|
|
583
|
+
documentId?: Prisma.StringFilter<"DocumentApproval"> | string;
|
|
584
|
+
stageProgressId?: Prisma.StringFilter<"DocumentApproval"> | string;
|
|
585
|
+
reviewerId?: Prisma.StringFilter<"DocumentApproval"> | string;
|
|
586
|
+
reviewParty?: Prisma.EnumReviewPartyFilter<"DocumentApproval"> | $Enums.ReviewParty;
|
|
587
|
+
decision?: Prisma.EnumReviewDecisionFilter<"DocumentApproval"> | $Enums.ReviewDecision;
|
|
588
|
+
comment?: Prisma.StringNullableFilter<"DocumentApproval"> | string | null;
|
|
589
|
+
reviewedAt?: Prisma.DateTimeFilter<"DocumentApproval"> | Date | string;
|
|
590
|
+
createdAt?: Prisma.DateTimeFilter<"DocumentApproval"> | Date | string;
|
|
591
|
+
};
|
|
592
|
+
export type DocumentApprovalCreateWithoutTenantInput = {
|
|
593
|
+
id?: string;
|
|
594
|
+
reviewParty: $Enums.ReviewParty;
|
|
595
|
+
decision: $Enums.ReviewDecision;
|
|
596
|
+
comment?: string | null;
|
|
597
|
+
reviewedAt?: Date | string;
|
|
598
|
+
createdAt?: Date | string;
|
|
599
|
+
document: Prisma.ApplicationDocumentCreateNestedOneWithoutApprovalTrailInput;
|
|
600
|
+
stageProgress: Prisma.ApprovalStageProgressCreateNestedOneWithoutDocumentApprovalsInput;
|
|
601
|
+
reviewer: Prisma.UserCreateNestedOneWithoutDocumentApprovalsInput;
|
|
602
|
+
};
|
|
603
|
+
export type DocumentApprovalUncheckedCreateWithoutTenantInput = {
|
|
604
|
+
id?: string;
|
|
605
|
+
documentId: string;
|
|
606
|
+
stageProgressId: string;
|
|
607
|
+
reviewerId: string;
|
|
608
|
+
reviewParty: $Enums.ReviewParty;
|
|
609
|
+
decision: $Enums.ReviewDecision;
|
|
610
|
+
comment?: string | null;
|
|
611
|
+
reviewedAt?: Date | string;
|
|
612
|
+
createdAt?: Date | string;
|
|
613
|
+
};
|
|
614
|
+
export type DocumentApprovalCreateOrConnectWithoutTenantInput = {
|
|
615
|
+
where: Prisma.DocumentApprovalWhereUniqueInput;
|
|
616
|
+
create: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutTenantInput, Prisma.DocumentApprovalUncheckedCreateWithoutTenantInput>;
|
|
617
|
+
};
|
|
618
|
+
export type DocumentApprovalCreateManyTenantInputEnvelope = {
|
|
619
|
+
data: Prisma.DocumentApprovalCreateManyTenantInput | Prisma.DocumentApprovalCreateManyTenantInput[];
|
|
620
|
+
skipDuplicates?: boolean;
|
|
621
|
+
};
|
|
622
|
+
export type DocumentApprovalUpsertWithWhereUniqueWithoutTenantInput = {
|
|
623
|
+
where: Prisma.DocumentApprovalWhereUniqueInput;
|
|
624
|
+
update: Prisma.XOR<Prisma.DocumentApprovalUpdateWithoutTenantInput, Prisma.DocumentApprovalUncheckedUpdateWithoutTenantInput>;
|
|
625
|
+
create: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutTenantInput, Prisma.DocumentApprovalUncheckedCreateWithoutTenantInput>;
|
|
626
|
+
};
|
|
627
|
+
export type DocumentApprovalUpdateWithWhereUniqueWithoutTenantInput = {
|
|
628
|
+
where: Prisma.DocumentApprovalWhereUniqueInput;
|
|
629
|
+
data: Prisma.XOR<Prisma.DocumentApprovalUpdateWithoutTenantInput, Prisma.DocumentApprovalUncheckedUpdateWithoutTenantInput>;
|
|
630
|
+
};
|
|
631
|
+
export type DocumentApprovalUpdateManyWithWhereWithoutTenantInput = {
|
|
632
|
+
where: Prisma.DocumentApprovalScalarWhereInput;
|
|
633
|
+
data: Prisma.XOR<Prisma.DocumentApprovalUpdateManyMutationInput, Prisma.DocumentApprovalUncheckedUpdateManyWithoutTenantInput>;
|
|
634
|
+
};
|
|
635
|
+
export type DocumentApprovalCreateWithoutDocumentInput = {
|
|
636
|
+
id?: string;
|
|
637
|
+
reviewParty: $Enums.ReviewParty;
|
|
638
|
+
decision: $Enums.ReviewDecision;
|
|
639
|
+
comment?: string | null;
|
|
640
|
+
reviewedAt?: Date | string;
|
|
641
|
+
createdAt?: Date | string;
|
|
642
|
+
tenant: Prisma.TenantCreateNestedOneWithoutDocumentApprovalsInput;
|
|
643
|
+
stageProgress: Prisma.ApprovalStageProgressCreateNestedOneWithoutDocumentApprovalsInput;
|
|
644
|
+
reviewer: Prisma.UserCreateNestedOneWithoutDocumentApprovalsInput;
|
|
645
|
+
};
|
|
646
|
+
export type DocumentApprovalUncheckedCreateWithoutDocumentInput = {
|
|
647
|
+
id?: string;
|
|
648
|
+
tenantId: string;
|
|
649
|
+
stageProgressId: string;
|
|
650
|
+
reviewerId: string;
|
|
651
|
+
reviewParty: $Enums.ReviewParty;
|
|
652
|
+
decision: $Enums.ReviewDecision;
|
|
653
|
+
comment?: string | null;
|
|
654
|
+
reviewedAt?: Date | string;
|
|
655
|
+
createdAt?: Date | string;
|
|
656
|
+
};
|
|
657
|
+
export type DocumentApprovalCreateOrConnectWithoutDocumentInput = {
|
|
658
|
+
where: Prisma.DocumentApprovalWhereUniqueInput;
|
|
659
|
+
create: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutDocumentInput, Prisma.DocumentApprovalUncheckedCreateWithoutDocumentInput>;
|
|
660
|
+
};
|
|
661
|
+
export type DocumentApprovalCreateManyDocumentInputEnvelope = {
|
|
662
|
+
data: Prisma.DocumentApprovalCreateManyDocumentInput | Prisma.DocumentApprovalCreateManyDocumentInput[];
|
|
663
|
+
skipDuplicates?: boolean;
|
|
664
|
+
};
|
|
665
|
+
export type DocumentApprovalUpsertWithWhereUniqueWithoutDocumentInput = {
|
|
666
|
+
where: Prisma.DocumentApprovalWhereUniqueInput;
|
|
667
|
+
update: Prisma.XOR<Prisma.DocumentApprovalUpdateWithoutDocumentInput, Prisma.DocumentApprovalUncheckedUpdateWithoutDocumentInput>;
|
|
668
|
+
create: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutDocumentInput, Prisma.DocumentApprovalUncheckedCreateWithoutDocumentInput>;
|
|
669
|
+
};
|
|
670
|
+
export type DocumentApprovalUpdateWithWhereUniqueWithoutDocumentInput = {
|
|
671
|
+
where: Prisma.DocumentApprovalWhereUniqueInput;
|
|
672
|
+
data: Prisma.XOR<Prisma.DocumentApprovalUpdateWithoutDocumentInput, Prisma.DocumentApprovalUncheckedUpdateWithoutDocumentInput>;
|
|
673
|
+
};
|
|
674
|
+
export type DocumentApprovalUpdateManyWithWhereWithoutDocumentInput = {
|
|
675
|
+
where: Prisma.DocumentApprovalScalarWhereInput;
|
|
676
|
+
data: Prisma.XOR<Prisma.DocumentApprovalUpdateManyMutationInput, Prisma.DocumentApprovalUncheckedUpdateManyWithoutDocumentInput>;
|
|
677
|
+
};
|
|
678
|
+
export type DocumentApprovalCreateWithoutStageProgressInput = {
|
|
679
|
+
id?: string;
|
|
680
|
+
reviewParty: $Enums.ReviewParty;
|
|
681
|
+
decision: $Enums.ReviewDecision;
|
|
682
|
+
comment?: string | null;
|
|
683
|
+
reviewedAt?: Date | string;
|
|
684
|
+
createdAt?: Date | string;
|
|
685
|
+
tenant: Prisma.TenantCreateNestedOneWithoutDocumentApprovalsInput;
|
|
686
|
+
document: Prisma.ApplicationDocumentCreateNestedOneWithoutApprovalTrailInput;
|
|
687
|
+
reviewer: Prisma.UserCreateNestedOneWithoutDocumentApprovalsInput;
|
|
688
|
+
};
|
|
689
|
+
export type DocumentApprovalUncheckedCreateWithoutStageProgressInput = {
|
|
690
|
+
id?: string;
|
|
691
|
+
tenantId: string;
|
|
692
|
+
documentId: string;
|
|
693
|
+
reviewerId: string;
|
|
694
|
+
reviewParty: $Enums.ReviewParty;
|
|
695
|
+
decision: $Enums.ReviewDecision;
|
|
696
|
+
comment?: string | null;
|
|
697
|
+
reviewedAt?: Date | string;
|
|
698
|
+
createdAt?: Date | string;
|
|
699
|
+
};
|
|
700
|
+
export type DocumentApprovalCreateOrConnectWithoutStageProgressInput = {
|
|
701
|
+
where: Prisma.DocumentApprovalWhereUniqueInput;
|
|
702
|
+
create: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutStageProgressInput, Prisma.DocumentApprovalUncheckedCreateWithoutStageProgressInput>;
|
|
703
|
+
};
|
|
704
|
+
export type DocumentApprovalCreateManyStageProgressInputEnvelope = {
|
|
705
|
+
data: Prisma.DocumentApprovalCreateManyStageProgressInput | Prisma.DocumentApprovalCreateManyStageProgressInput[];
|
|
706
|
+
skipDuplicates?: boolean;
|
|
707
|
+
};
|
|
708
|
+
export type DocumentApprovalUpsertWithWhereUniqueWithoutStageProgressInput = {
|
|
709
|
+
where: Prisma.DocumentApprovalWhereUniqueInput;
|
|
710
|
+
update: Prisma.XOR<Prisma.DocumentApprovalUpdateWithoutStageProgressInput, Prisma.DocumentApprovalUncheckedUpdateWithoutStageProgressInput>;
|
|
711
|
+
create: Prisma.XOR<Prisma.DocumentApprovalCreateWithoutStageProgressInput, Prisma.DocumentApprovalUncheckedCreateWithoutStageProgressInput>;
|
|
712
|
+
};
|
|
713
|
+
export type DocumentApprovalUpdateWithWhereUniqueWithoutStageProgressInput = {
|
|
714
|
+
where: Prisma.DocumentApprovalWhereUniqueInput;
|
|
715
|
+
data: Prisma.XOR<Prisma.DocumentApprovalUpdateWithoutStageProgressInput, Prisma.DocumentApprovalUncheckedUpdateWithoutStageProgressInput>;
|
|
716
|
+
};
|
|
717
|
+
export type DocumentApprovalUpdateManyWithWhereWithoutStageProgressInput = {
|
|
718
|
+
where: Prisma.DocumentApprovalScalarWhereInput;
|
|
719
|
+
data: Prisma.XOR<Prisma.DocumentApprovalUpdateManyMutationInput, Prisma.DocumentApprovalUncheckedUpdateManyWithoutStageProgressInput>;
|
|
720
|
+
};
|
|
721
|
+
export type DocumentApprovalCreateManyReviewerInput = {
|
|
722
|
+
id?: string;
|
|
723
|
+
tenantId: string;
|
|
724
|
+
documentId: string;
|
|
725
|
+
stageProgressId: string;
|
|
726
|
+
reviewParty: $Enums.ReviewParty;
|
|
727
|
+
decision: $Enums.ReviewDecision;
|
|
728
|
+
comment?: string | null;
|
|
729
|
+
reviewedAt?: Date | string;
|
|
730
|
+
createdAt?: Date | string;
|
|
731
|
+
};
|
|
732
|
+
export type DocumentApprovalUpdateWithoutReviewerInput = {
|
|
733
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
734
|
+
reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
|
|
735
|
+
decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
|
|
736
|
+
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
737
|
+
reviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
738
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
739
|
+
tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentApprovalsNestedInput;
|
|
740
|
+
document?: Prisma.ApplicationDocumentUpdateOneRequiredWithoutApprovalTrailNestedInput;
|
|
741
|
+
stageProgress?: Prisma.ApprovalStageProgressUpdateOneRequiredWithoutDocumentApprovalsNestedInput;
|
|
742
|
+
};
|
|
743
|
+
export type DocumentApprovalUncheckedUpdateWithoutReviewerInput = {
|
|
744
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
745
|
+
tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
746
|
+
documentId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
747
|
+
stageProgressId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
748
|
+
reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
|
|
749
|
+
decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
|
|
750
|
+
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
751
|
+
reviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
752
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
753
|
+
};
|
|
754
|
+
export type DocumentApprovalUncheckedUpdateManyWithoutReviewerInput = {
|
|
755
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
756
|
+
tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
757
|
+
documentId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
758
|
+
stageProgressId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
759
|
+
reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
|
|
760
|
+
decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
|
|
761
|
+
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
762
|
+
reviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
763
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
764
|
+
};
|
|
765
|
+
export type DocumentApprovalCreateManyTenantInput = {
|
|
766
|
+
id?: string;
|
|
767
|
+
documentId: string;
|
|
768
|
+
stageProgressId: string;
|
|
769
|
+
reviewerId: string;
|
|
770
|
+
reviewParty: $Enums.ReviewParty;
|
|
771
|
+
decision: $Enums.ReviewDecision;
|
|
772
|
+
comment?: string | null;
|
|
773
|
+
reviewedAt?: Date | string;
|
|
774
|
+
createdAt?: Date | string;
|
|
775
|
+
};
|
|
776
|
+
export type DocumentApprovalUpdateWithoutTenantInput = {
|
|
777
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
778
|
+
reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
|
|
779
|
+
decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
|
|
780
|
+
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
781
|
+
reviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
782
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
783
|
+
document?: Prisma.ApplicationDocumentUpdateOneRequiredWithoutApprovalTrailNestedInput;
|
|
784
|
+
stageProgress?: Prisma.ApprovalStageProgressUpdateOneRequiredWithoutDocumentApprovalsNestedInput;
|
|
785
|
+
reviewer?: Prisma.UserUpdateOneRequiredWithoutDocumentApprovalsNestedInput;
|
|
786
|
+
};
|
|
787
|
+
export type DocumentApprovalUncheckedUpdateWithoutTenantInput = {
|
|
788
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
789
|
+
documentId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
790
|
+
stageProgressId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
791
|
+
reviewerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
792
|
+
reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
|
|
793
|
+
decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
|
|
794
|
+
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
795
|
+
reviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
796
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
797
|
+
};
|
|
798
|
+
export type DocumentApprovalUncheckedUpdateManyWithoutTenantInput = {
|
|
799
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
800
|
+
documentId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
801
|
+
stageProgressId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
802
|
+
reviewerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
803
|
+
reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
|
|
804
|
+
decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
|
|
805
|
+
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
806
|
+
reviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
807
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
808
|
+
};
|
|
809
|
+
export type DocumentApprovalCreateManyDocumentInput = {
|
|
810
|
+
id?: string;
|
|
811
|
+
tenantId: string;
|
|
812
|
+
stageProgressId: string;
|
|
813
|
+
reviewerId: string;
|
|
814
|
+
reviewParty: $Enums.ReviewParty;
|
|
815
|
+
decision: $Enums.ReviewDecision;
|
|
816
|
+
comment?: string | null;
|
|
817
|
+
reviewedAt?: Date | string;
|
|
818
|
+
createdAt?: Date | string;
|
|
819
|
+
};
|
|
820
|
+
export type DocumentApprovalUpdateWithoutDocumentInput = {
|
|
821
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
822
|
+
reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
|
|
823
|
+
decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
|
|
824
|
+
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
825
|
+
reviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
826
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
827
|
+
tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentApprovalsNestedInput;
|
|
828
|
+
stageProgress?: Prisma.ApprovalStageProgressUpdateOneRequiredWithoutDocumentApprovalsNestedInput;
|
|
829
|
+
reviewer?: Prisma.UserUpdateOneRequiredWithoutDocumentApprovalsNestedInput;
|
|
830
|
+
};
|
|
831
|
+
export type DocumentApprovalUncheckedUpdateWithoutDocumentInput = {
|
|
832
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
833
|
+
tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
834
|
+
stageProgressId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
835
|
+
reviewerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
836
|
+
reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
|
|
837
|
+
decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
|
|
838
|
+
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
839
|
+
reviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
840
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
841
|
+
};
|
|
842
|
+
export type DocumentApprovalUncheckedUpdateManyWithoutDocumentInput = {
|
|
843
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
844
|
+
tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
845
|
+
stageProgressId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
846
|
+
reviewerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
847
|
+
reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
|
|
848
|
+
decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
|
|
849
|
+
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
850
|
+
reviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
851
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
852
|
+
};
|
|
853
|
+
export type DocumentApprovalCreateManyStageProgressInput = {
|
|
854
|
+
id?: string;
|
|
855
|
+
tenantId: string;
|
|
856
|
+
documentId: string;
|
|
857
|
+
reviewerId: string;
|
|
858
|
+
reviewParty: $Enums.ReviewParty;
|
|
859
|
+
decision: $Enums.ReviewDecision;
|
|
860
|
+
comment?: string | null;
|
|
861
|
+
reviewedAt?: Date | string;
|
|
862
|
+
createdAt?: Date | string;
|
|
863
|
+
};
|
|
864
|
+
export type DocumentApprovalUpdateWithoutStageProgressInput = {
|
|
865
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
866
|
+
reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
|
|
867
|
+
decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
|
|
868
|
+
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
869
|
+
reviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
870
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
871
|
+
tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentApprovalsNestedInput;
|
|
872
|
+
document?: Prisma.ApplicationDocumentUpdateOneRequiredWithoutApprovalTrailNestedInput;
|
|
873
|
+
reviewer?: Prisma.UserUpdateOneRequiredWithoutDocumentApprovalsNestedInput;
|
|
874
|
+
};
|
|
875
|
+
export type DocumentApprovalUncheckedUpdateWithoutStageProgressInput = {
|
|
876
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
877
|
+
tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
878
|
+
documentId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
879
|
+
reviewerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
880
|
+
reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
|
|
881
|
+
decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
|
|
882
|
+
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
883
|
+
reviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
884
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
885
|
+
};
|
|
886
|
+
export type DocumentApprovalUncheckedUpdateManyWithoutStageProgressInput = {
|
|
887
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
888
|
+
tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
889
|
+
documentId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
890
|
+
reviewerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
891
|
+
reviewParty?: Prisma.EnumReviewPartyFieldUpdateOperationsInput | $Enums.ReviewParty;
|
|
892
|
+
decision?: Prisma.EnumReviewDecisionFieldUpdateOperationsInput | $Enums.ReviewDecision;
|
|
893
|
+
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
894
|
+
reviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
895
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
896
|
+
};
|
|
897
|
+
export type DocumentApprovalSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
898
|
+
id?: boolean;
|
|
899
|
+
tenantId?: boolean;
|
|
900
|
+
documentId?: boolean;
|
|
901
|
+
stageProgressId?: boolean;
|
|
902
|
+
reviewerId?: boolean;
|
|
903
|
+
reviewParty?: boolean;
|
|
904
|
+
decision?: boolean;
|
|
905
|
+
comment?: boolean;
|
|
906
|
+
reviewedAt?: boolean;
|
|
907
|
+
createdAt?: boolean;
|
|
908
|
+
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
|
|
909
|
+
document?: boolean | Prisma.ApplicationDocumentDefaultArgs<ExtArgs>;
|
|
910
|
+
stageProgress?: boolean | Prisma.ApprovalStageProgressDefaultArgs<ExtArgs>;
|
|
911
|
+
reviewer?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
912
|
+
}, ExtArgs["result"]["documentApproval"]>;
|
|
913
|
+
export type DocumentApprovalSelectScalar = {
|
|
914
|
+
id?: boolean;
|
|
915
|
+
tenantId?: boolean;
|
|
916
|
+
documentId?: boolean;
|
|
917
|
+
stageProgressId?: boolean;
|
|
918
|
+
reviewerId?: boolean;
|
|
919
|
+
reviewParty?: boolean;
|
|
920
|
+
decision?: boolean;
|
|
921
|
+
comment?: boolean;
|
|
922
|
+
reviewedAt?: boolean;
|
|
923
|
+
createdAt?: boolean;
|
|
924
|
+
};
|
|
925
|
+
export type DocumentApprovalOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "documentId" | "stageProgressId" | "reviewerId" | "reviewParty" | "decision" | "comment" | "reviewedAt" | "createdAt", ExtArgs["result"]["documentApproval"]>;
|
|
926
|
+
export type DocumentApprovalInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
927
|
+
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
|
|
928
|
+
document?: boolean | Prisma.ApplicationDocumentDefaultArgs<ExtArgs>;
|
|
929
|
+
stageProgress?: boolean | Prisma.ApprovalStageProgressDefaultArgs<ExtArgs>;
|
|
930
|
+
reviewer?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
931
|
+
};
|
|
932
|
+
export type $DocumentApprovalPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
933
|
+
name: "DocumentApproval";
|
|
934
|
+
objects: {
|
|
935
|
+
tenant: Prisma.$TenantPayload<ExtArgs>;
|
|
936
|
+
document: Prisma.$ApplicationDocumentPayload<ExtArgs>;
|
|
937
|
+
stageProgress: Prisma.$ApprovalStageProgressPayload<ExtArgs>;
|
|
938
|
+
reviewer: Prisma.$UserPayload<ExtArgs>;
|
|
939
|
+
};
|
|
940
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
941
|
+
id: string;
|
|
942
|
+
tenantId: string;
|
|
943
|
+
documentId: string;
|
|
944
|
+
stageProgressId: string;
|
|
945
|
+
reviewerId: string;
|
|
946
|
+
reviewParty: $Enums.ReviewParty;
|
|
947
|
+
decision: $Enums.ReviewDecision;
|
|
948
|
+
comment: string | null;
|
|
949
|
+
reviewedAt: Date;
|
|
950
|
+
createdAt: Date;
|
|
951
|
+
}, ExtArgs["result"]["documentApproval"]>;
|
|
952
|
+
composites: {};
|
|
953
|
+
};
|
|
954
|
+
export type DocumentApprovalGetPayload<S extends boolean | null | undefined | DocumentApprovalDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DocumentApprovalPayload, S>;
|
|
955
|
+
export type DocumentApprovalCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<DocumentApprovalFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
956
|
+
select?: DocumentApprovalCountAggregateInputType | true;
|
|
957
|
+
};
|
|
958
|
+
export interface DocumentApprovalDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
959
|
+
[K: symbol]: {
|
|
960
|
+
types: Prisma.TypeMap<ExtArgs>['model']['DocumentApproval'];
|
|
961
|
+
meta: {
|
|
962
|
+
name: 'DocumentApproval';
|
|
963
|
+
};
|
|
964
|
+
};
|
|
965
|
+
/**
|
|
966
|
+
* Find zero or one DocumentApproval that matches the filter.
|
|
967
|
+
* @param {DocumentApprovalFindUniqueArgs} args - Arguments to find a DocumentApproval
|
|
968
|
+
* @example
|
|
969
|
+
* // Get one DocumentApproval
|
|
970
|
+
* const documentApproval = await prisma.documentApproval.findUnique({
|
|
971
|
+
* where: {
|
|
972
|
+
* // ... provide filter here
|
|
973
|
+
* }
|
|
974
|
+
* })
|
|
975
|
+
*/
|
|
976
|
+
findUnique<T extends DocumentApprovalFindUniqueArgs>(args: Prisma.SelectSubset<T, DocumentApprovalFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DocumentApprovalClient<runtime.Types.Result.GetResult<Prisma.$DocumentApprovalPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
977
|
+
/**
|
|
978
|
+
* Find one DocumentApproval that matches the filter or throw an error with `error.code='P2025'`
|
|
979
|
+
* if no matches were found.
|
|
980
|
+
* @param {DocumentApprovalFindUniqueOrThrowArgs} args - Arguments to find a DocumentApproval
|
|
981
|
+
* @example
|
|
982
|
+
* // Get one DocumentApproval
|
|
983
|
+
* const documentApproval = await prisma.documentApproval.findUniqueOrThrow({
|
|
984
|
+
* where: {
|
|
985
|
+
* // ... provide filter here
|
|
986
|
+
* }
|
|
987
|
+
* })
|
|
988
|
+
*/
|
|
989
|
+
findUniqueOrThrow<T extends DocumentApprovalFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DocumentApprovalFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DocumentApprovalClient<runtime.Types.Result.GetResult<Prisma.$DocumentApprovalPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
990
|
+
/**
|
|
991
|
+
* Find the first DocumentApproval that matches the filter.
|
|
992
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
993
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
994
|
+
* @param {DocumentApprovalFindFirstArgs} args - Arguments to find a DocumentApproval
|
|
995
|
+
* @example
|
|
996
|
+
* // Get one DocumentApproval
|
|
997
|
+
* const documentApproval = await prisma.documentApproval.findFirst({
|
|
998
|
+
* where: {
|
|
999
|
+
* // ... provide filter here
|
|
1000
|
+
* }
|
|
1001
|
+
* })
|
|
1002
|
+
*/
|
|
1003
|
+
findFirst<T extends DocumentApprovalFindFirstArgs>(args?: Prisma.SelectSubset<T, DocumentApprovalFindFirstArgs<ExtArgs>>): Prisma.Prisma__DocumentApprovalClient<runtime.Types.Result.GetResult<Prisma.$DocumentApprovalPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1004
|
+
/**
|
|
1005
|
+
* Find the first DocumentApproval that matches the filter or
|
|
1006
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
1007
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1008
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1009
|
+
* @param {DocumentApprovalFindFirstOrThrowArgs} args - Arguments to find a DocumentApproval
|
|
1010
|
+
* @example
|
|
1011
|
+
* // Get one DocumentApproval
|
|
1012
|
+
* const documentApproval = await prisma.documentApproval.findFirstOrThrow({
|
|
1013
|
+
* where: {
|
|
1014
|
+
* // ... provide filter here
|
|
1015
|
+
* }
|
|
1016
|
+
* })
|
|
1017
|
+
*/
|
|
1018
|
+
findFirstOrThrow<T extends DocumentApprovalFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DocumentApprovalFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DocumentApprovalClient<runtime.Types.Result.GetResult<Prisma.$DocumentApprovalPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1019
|
+
/**
|
|
1020
|
+
* Find zero or more DocumentApprovals that matches the filter.
|
|
1021
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1022
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1023
|
+
* @param {DocumentApprovalFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
1024
|
+
* @example
|
|
1025
|
+
* // Get all DocumentApprovals
|
|
1026
|
+
* const documentApprovals = await prisma.documentApproval.findMany()
|
|
1027
|
+
*
|
|
1028
|
+
* // Get first 10 DocumentApprovals
|
|
1029
|
+
* const documentApprovals = await prisma.documentApproval.findMany({ take: 10 })
|
|
1030
|
+
*
|
|
1031
|
+
* // Only select the `id`
|
|
1032
|
+
* const documentApprovalWithIdOnly = await prisma.documentApproval.findMany({ select: { id: true } })
|
|
1033
|
+
*
|
|
1034
|
+
*/
|
|
1035
|
+
findMany<T extends DocumentApprovalFindManyArgs>(args?: Prisma.SelectSubset<T, DocumentApprovalFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentApprovalPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
1036
|
+
/**
|
|
1037
|
+
* Create a DocumentApproval.
|
|
1038
|
+
* @param {DocumentApprovalCreateArgs} args - Arguments to create a DocumentApproval.
|
|
1039
|
+
* @example
|
|
1040
|
+
* // Create one DocumentApproval
|
|
1041
|
+
* const DocumentApproval = await prisma.documentApproval.create({
|
|
1042
|
+
* data: {
|
|
1043
|
+
* // ... data to create a DocumentApproval
|
|
1044
|
+
* }
|
|
1045
|
+
* })
|
|
1046
|
+
*
|
|
1047
|
+
*/
|
|
1048
|
+
create<T extends DocumentApprovalCreateArgs>(args: Prisma.SelectSubset<T, DocumentApprovalCreateArgs<ExtArgs>>): Prisma.Prisma__DocumentApprovalClient<runtime.Types.Result.GetResult<Prisma.$DocumentApprovalPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1049
|
+
/**
|
|
1050
|
+
* Create many DocumentApprovals.
|
|
1051
|
+
* @param {DocumentApprovalCreateManyArgs} args - Arguments to create many DocumentApprovals.
|
|
1052
|
+
* @example
|
|
1053
|
+
* // Create many DocumentApprovals
|
|
1054
|
+
* const documentApproval = await prisma.documentApproval.createMany({
|
|
1055
|
+
* data: [
|
|
1056
|
+
* // ... provide data here
|
|
1057
|
+
* ]
|
|
1058
|
+
* })
|
|
1059
|
+
*
|
|
1060
|
+
*/
|
|
1061
|
+
createMany<T extends DocumentApprovalCreateManyArgs>(args?: Prisma.SelectSubset<T, DocumentApprovalCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1062
|
+
/**
|
|
1063
|
+
* Delete a DocumentApproval.
|
|
1064
|
+
* @param {DocumentApprovalDeleteArgs} args - Arguments to delete one DocumentApproval.
|
|
1065
|
+
* @example
|
|
1066
|
+
* // Delete one DocumentApproval
|
|
1067
|
+
* const DocumentApproval = await prisma.documentApproval.delete({
|
|
1068
|
+
* where: {
|
|
1069
|
+
* // ... filter to delete one DocumentApproval
|
|
1070
|
+
* }
|
|
1071
|
+
* })
|
|
1072
|
+
*
|
|
1073
|
+
*/
|
|
1074
|
+
delete<T extends DocumentApprovalDeleteArgs>(args: Prisma.SelectSubset<T, DocumentApprovalDeleteArgs<ExtArgs>>): Prisma.Prisma__DocumentApprovalClient<runtime.Types.Result.GetResult<Prisma.$DocumentApprovalPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1075
|
+
/**
|
|
1076
|
+
* Update one DocumentApproval.
|
|
1077
|
+
* @param {DocumentApprovalUpdateArgs} args - Arguments to update one DocumentApproval.
|
|
1078
|
+
* @example
|
|
1079
|
+
* // Update one DocumentApproval
|
|
1080
|
+
* const documentApproval = await prisma.documentApproval.update({
|
|
1081
|
+
* where: {
|
|
1082
|
+
* // ... provide filter here
|
|
1083
|
+
* },
|
|
1084
|
+
* data: {
|
|
1085
|
+
* // ... provide data here
|
|
1086
|
+
* }
|
|
1087
|
+
* })
|
|
1088
|
+
*
|
|
1089
|
+
*/
|
|
1090
|
+
update<T extends DocumentApprovalUpdateArgs>(args: Prisma.SelectSubset<T, DocumentApprovalUpdateArgs<ExtArgs>>): Prisma.Prisma__DocumentApprovalClient<runtime.Types.Result.GetResult<Prisma.$DocumentApprovalPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1091
|
+
/**
|
|
1092
|
+
* Delete zero or more DocumentApprovals.
|
|
1093
|
+
* @param {DocumentApprovalDeleteManyArgs} args - Arguments to filter DocumentApprovals to delete.
|
|
1094
|
+
* @example
|
|
1095
|
+
* // Delete a few DocumentApprovals
|
|
1096
|
+
* const { count } = await prisma.documentApproval.deleteMany({
|
|
1097
|
+
* where: {
|
|
1098
|
+
* // ... provide filter here
|
|
1099
|
+
* }
|
|
1100
|
+
* })
|
|
1101
|
+
*
|
|
1102
|
+
*/
|
|
1103
|
+
deleteMany<T extends DocumentApprovalDeleteManyArgs>(args?: Prisma.SelectSubset<T, DocumentApprovalDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1104
|
+
/**
|
|
1105
|
+
* Update zero or more DocumentApprovals.
|
|
1106
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1107
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1108
|
+
* @param {DocumentApprovalUpdateManyArgs} args - Arguments to update one or more rows.
|
|
1109
|
+
* @example
|
|
1110
|
+
* // Update many DocumentApprovals
|
|
1111
|
+
* const documentApproval = await prisma.documentApproval.updateMany({
|
|
1112
|
+
* where: {
|
|
1113
|
+
* // ... provide filter here
|
|
1114
|
+
* },
|
|
1115
|
+
* data: {
|
|
1116
|
+
* // ... provide data here
|
|
1117
|
+
* }
|
|
1118
|
+
* })
|
|
1119
|
+
*
|
|
1120
|
+
*/
|
|
1121
|
+
updateMany<T extends DocumentApprovalUpdateManyArgs>(args: Prisma.SelectSubset<T, DocumentApprovalUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1122
|
+
/**
|
|
1123
|
+
* Create or update one DocumentApproval.
|
|
1124
|
+
* @param {DocumentApprovalUpsertArgs} args - Arguments to update or create a DocumentApproval.
|
|
1125
|
+
* @example
|
|
1126
|
+
* // Update or create a DocumentApproval
|
|
1127
|
+
* const documentApproval = await prisma.documentApproval.upsert({
|
|
1128
|
+
* create: {
|
|
1129
|
+
* // ... data to create a DocumentApproval
|
|
1130
|
+
* },
|
|
1131
|
+
* update: {
|
|
1132
|
+
* // ... in case it already exists, update
|
|
1133
|
+
* },
|
|
1134
|
+
* where: {
|
|
1135
|
+
* // ... the filter for the DocumentApproval we want to update
|
|
1136
|
+
* }
|
|
1137
|
+
* })
|
|
1138
|
+
*/
|
|
1139
|
+
upsert<T extends DocumentApprovalUpsertArgs>(args: Prisma.SelectSubset<T, DocumentApprovalUpsertArgs<ExtArgs>>): Prisma.Prisma__DocumentApprovalClient<runtime.Types.Result.GetResult<Prisma.$DocumentApprovalPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1140
|
+
/**
|
|
1141
|
+
* Count the number of DocumentApprovals.
|
|
1142
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1143
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1144
|
+
* @param {DocumentApprovalCountArgs} args - Arguments to filter DocumentApprovals to count.
|
|
1145
|
+
* @example
|
|
1146
|
+
* // Count the number of DocumentApprovals
|
|
1147
|
+
* const count = await prisma.documentApproval.count({
|
|
1148
|
+
* where: {
|
|
1149
|
+
* // ... the filter for the DocumentApprovals we want to count
|
|
1150
|
+
* }
|
|
1151
|
+
* })
|
|
1152
|
+
**/
|
|
1153
|
+
count<T extends DocumentApprovalCountArgs>(args?: Prisma.Subset<T, DocumentApprovalCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], DocumentApprovalCountAggregateOutputType> : number>;
|
|
1154
|
+
/**
|
|
1155
|
+
* Allows you to perform aggregations operations on a DocumentApproval.
|
|
1156
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1157
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1158
|
+
* @param {DocumentApprovalAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1159
|
+
* @example
|
|
1160
|
+
* // Ordered by age ascending
|
|
1161
|
+
* // Where email contains prisma.io
|
|
1162
|
+
* // Limited to the 10 users
|
|
1163
|
+
* const aggregations = await prisma.user.aggregate({
|
|
1164
|
+
* _avg: {
|
|
1165
|
+
* age: true,
|
|
1166
|
+
* },
|
|
1167
|
+
* where: {
|
|
1168
|
+
* email: {
|
|
1169
|
+
* contains: "prisma.io",
|
|
1170
|
+
* },
|
|
1171
|
+
* },
|
|
1172
|
+
* orderBy: {
|
|
1173
|
+
* age: "asc",
|
|
1174
|
+
* },
|
|
1175
|
+
* take: 10,
|
|
1176
|
+
* })
|
|
1177
|
+
**/
|
|
1178
|
+
aggregate<T extends DocumentApprovalAggregateArgs>(args: Prisma.Subset<T, DocumentApprovalAggregateArgs>): Prisma.PrismaPromise<GetDocumentApprovalAggregateType<T>>;
|
|
1179
|
+
/**
|
|
1180
|
+
* Group by DocumentApproval.
|
|
1181
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1182
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1183
|
+
* @param {DocumentApprovalGroupByArgs} args - Group by arguments.
|
|
1184
|
+
* @example
|
|
1185
|
+
* // Group by city, order by createdAt, get count
|
|
1186
|
+
* const result = await prisma.user.groupBy({
|
|
1187
|
+
* by: ['city', 'createdAt'],
|
|
1188
|
+
* orderBy: {
|
|
1189
|
+
* createdAt: true
|
|
1190
|
+
* },
|
|
1191
|
+
* _count: {
|
|
1192
|
+
* _all: true
|
|
1193
|
+
* },
|
|
1194
|
+
* })
|
|
1195
|
+
*
|
|
1196
|
+
**/
|
|
1197
|
+
groupBy<T extends DocumentApprovalGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
1198
|
+
orderBy: DocumentApprovalGroupByArgs['orderBy'];
|
|
1199
|
+
} : {
|
|
1200
|
+
orderBy?: DocumentApprovalGroupByArgs['orderBy'];
|
|
1201
|
+
}, 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 ? {
|
|
1202
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
1203
|
+
Error,
|
|
1204
|
+
'Field ',
|
|
1205
|
+
P,
|
|
1206
|
+
` in "having" needs to be provided in "by"`
|
|
1207
|
+
];
|
|
1208
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
1209
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1210
|
+
}[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 ? {} : {
|
|
1211
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1212
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1213
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1214
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, DocumentApprovalGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDocumentApprovalGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1215
|
+
/**
|
|
1216
|
+
* Fields of the DocumentApproval model
|
|
1217
|
+
*/
|
|
1218
|
+
readonly fields: DocumentApprovalFieldRefs;
|
|
1219
|
+
}
|
|
1220
|
+
/**
|
|
1221
|
+
* The delegate class that acts as a "Promise-like" for DocumentApproval.
|
|
1222
|
+
* Why is this prefixed with `Prisma__`?
|
|
1223
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1224
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1225
|
+
*/
|
|
1226
|
+
export interface Prisma__DocumentApprovalClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1227
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1228
|
+
tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
1229
|
+
document<T extends Prisma.ApplicationDocumentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationDocumentDefaultArgs<ExtArgs>>): Prisma.Prisma__ApplicationDocumentClient<runtime.Types.Result.GetResult<Prisma.$ApplicationDocumentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
1230
|
+
stageProgress<T extends Prisma.ApprovalStageProgressDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApprovalStageProgressDefaultArgs<ExtArgs>>): Prisma.Prisma__ApprovalStageProgressClient<runtime.Types.Result.GetResult<Prisma.$ApprovalStageProgressPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
1231
|
+
reviewer<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
1232
|
+
/**
|
|
1233
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1234
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1235
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1236
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1237
|
+
*/
|
|
1238
|
+
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>;
|
|
1239
|
+
/**
|
|
1240
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1241
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1242
|
+
* @returns A Promise for the completion of the callback.
|
|
1243
|
+
*/
|
|
1244
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1245
|
+
/**
|
|
1246
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1247
|
+
* resolved value cannot be modified from the callback.
|
|
1248
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1249
|
+
* @returns A Promise for the completion of the callback.
|
|
1250
|
+
*/
|
|
1251
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1252
|
+
}
|
|
1253
|
+
/**
|
|
1254
|
+
* Fields of the DocumentApproval model
|
|
1255
|
+
*/
|
|
1256
|
+
export interface DocumentApprovalFieldRefs {
|
|
1257
|
+
readonly id: Prisma.FieldRef<"DocumentApproval", 'String'>;
|
|
1258
|
+
readonly tenantId: Prisma.FieldRef<"DocumentApproval", 'String'>;
|
|
1259
|
+
readonly documentId: Prisma.FieldRef<"DocumentApproval", 'String'>;
|
|
1260
|
+
readonly stageProgressId: Prisma.FieldRef<"DocumentApproval", 'String'>;
|
|
1261
|
+
readonly reviewerId: Prisma.FieldRef<"DocumentApproval", 'String'>;
|
|
1262
|
+
readonly reviewParty: Prisma.FieldRef<"DocumentApproval", 'ReviewParty'>;
|
|
1263
|
+
readonly decision: Prisma.FieldRef<"DocumentApproval", 'ReviewDecision'>;
|
|
1264
|
+
readonly comment: Prisma.FieldRef<"DocumentApproval", 'String'>;
|
|
1265
|
+
readonly reviewedAt: Prisma.FieldRef<"DocumentApproval", 'DateTime'>;
|
|
1266
|
+
readonly createdAt: Prisma.FieldRef<"DocumentApproval", 'DateTime'>;
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* DocumentApproval findUnique
|
|
1270
|
+
*/
|
|
1271
|
+
export type DocumentApprovalFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1272
|
+
/**
|
|
1273
|
+
* Select specific fields to fetch from the DocumentApproval
|
|
1274
|
+
*/
|
|
1275
|
+
select?: Prisma.DocumentApprovalSelect<ExtArgs> | null;
|
|
1276
|
+
/**
|
|
1277
|
+
* Omit specific fields from the DocumentApproval
|
|
1278
|
+
*/
|
|
1279
|
+
omit?: Prisma.DocumentApprovalOmit<ExtArgs> | null;
|
|
1280
|
+
/**
|
|
1281
|
+
* Choose, which related nodes to fetch as well
|
|
1282
|
+
*/
|
|
1283
|
+
include?: Prisma.DocumentApprovalInclude<ExtArgs> | null;
|
|
1284
|
+
/**
|
|
1285
|
+
* Filter, which DocumentApproval to fetch.
|
|
1286
|
+
*/
|
|
1287
|
+
where: Prisma.DocumentApprovalWhereUniqueInput;
|
|
1288
|
+
};
|
|
1289
|
+
/**
|
|
1290
|
+
* DocumentApproval findUniqueOrThrow
|
|
1291
|
+
*/
|
|
1292
|
+
export type DocumentApprovalFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1293
|
+
/**
|
|
1294
|
+
* Select specific fields to fetch from the DocumentApproval
|
|
1295
|
+
*/
|
|
1296
|
+
select?: Prisma.DocumentApprovalSelect<ExtArgs> | null;
|
|
1297
|
+
/**
|
|
1298
|
+
* Omit specific fields from the DocumentApproval
|
|
1299
|
+
*/
|
|
1300
|
+
omit?: Prisma.DocumentApprovalOmit<ExtArgs> | null;
|
|
1301
|
+
/**
|
|
1302
|
+
* Choose, which related nodes to fetch as well
|
|
1303
|
+
*/
|
|
1304
|
+
include?: Prisma.DocumentApprovalInclude<ExtArgs> | null;
|
|
1305
|
+
/**
|
|
1306
|
+
* Filter, which DocumentApproval to fetch.
|
|
1307
|
+
*/
|
|
1308
|
+
where: Prisma.DocumentApprovalWhereUniqueInput;
|
|
1309
|
+
};
|
|
1310
|
+
/**
|
|
1311
|
+
* DocumentApproval findFirst
|
|
1312
|
+
*/
|
|
1313
|
+
export type DocumentApprovalFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1314
|
+
/**
|
|
1315
|
+
* Select specific fields to fetch from the DocumentApproval
|
|
1316
|
+
*/
|
|
1317
|
+
select?: Prisma.DocumentApprovalSelect<ExtArgs> | null;
|
|
1318
|
+
/**
|
|
1319
|
+
* Omit specific fields from the DocumentApproval
|
|
1320
|
+
*/
|
|
1321
|
+
omit?: Prisma.DocumentApprovalOmit<ExtArgs> | null;
|
|
1322
|
+
/**
|
|
1323
|
+
* Choose, which related nodes to fetch as well
|
|
1324
|
+
*/
|
|
1325
|
+
include?: Prisma.DocumentApprovalInclude<ExtArgs> | null;
|
|
1326
|
+
/**
|
|
1327
|
+
* Filter, which DocumentApproval to fetch.
|
|
1328
|
+
*/
|
|
1329
|
+
where?: Prisma.DocumentApprovalWhereInput;
|
|
1330
|
+
/**
|
|
1331
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1332
|
+
*
|
|
1333
|
+
* Determine the order of DocumentApprovals to fetch.
|
|
1334
|
+
*/
|
|
1335
|
+
orderBy?: Prisma.DocumentApprovalOrderByWithRelationInput | Prisma.DocumentApprovalOrderByWithRelationInput[];
|
|
1336
|
+
/**
|
|
1337
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1338
|
+
*
|
|
1339
|
+
* Sets the position for searching for DocumentApprovals.
|
|
1340
|
+
*/
|
|
1341
|
+
cursor?: Prisma.DocumentApprovalWhereUniqueInput;
|
|
1342
|
+
/**
|
|
1343
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1344
|
+
*
|
|
1345
|
+
* Take `±n` DocumentApprovals from the position of the cursor.
|
|
1346
|
+
*/
|
|
1347
|
+
take?: number;
|
|
1348
|
+
/**
|
|
1349
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1350
|
+
*
|
|
1351
|
+
* Skip the first `n` DocumentApprovals.
|
|
1352
|
+
*/
|
|
1353
|
+
skip?: number;
|
|
1354
|
+
/**
|
|
1355
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1356
|
+
*
|
|
1357
|
+
* Filter by unique combinations of DocumentApprovals.
|
|
1358
|
+
*/
|
|
1359
|
+
distinct?: Prisma.DocumentApprovalScalarFieldEnum | Prisma.DocumentApprovalScalarFieldEnum[];
|
|
1360
|
+
};
|
|
1361
|
+
/**
|
|
1362
|
+
* DocumentApproval findFirstOrThrow
|
|
1363
|
+
*/
|
|
1364
|
+
export type DocumentApprovalFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1365
|
+
/**
|
|
1366
|
+
* Select specific fields to fetch from the DocumentApproval
|
|
1367
|
+
*/
|
|
1368
|
+
select?: Prisma.DocumentApprovalSelect<ExtArgs> | null;
|
|
1369
|
+
/**
|
|
1370
|
+
* Omit specific fields from the DocumentApproval
|
|
1371
|
+
*/
|
|
1372
|
+
omit?: Prisma.DocumentApprovalOmit<ExtArgs> | null;
|
|
1373
|
+
/**
|
|
1374
|
+
* Choose, which related nodes to fetch as well
|
|
1375
|
+
*/
|
|
1376
|
+
include?: Prisma.DocumentApprovalInclude<ExtArgs> | null;
|
|
1377
|
+
/**
|
|
1378
|
+
* Filter, which DocumentApproval to fetch.
|
|
1379
|
+
*/
|
|
1380
|
+
where?: Prisma.DocumentApprovalWhereInput;
|
|
1381
|
+
/**
|
|
1382
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1383
|
+
*
|
|
1384
|
+
* Determine the order of DocumentApprovals to fetch.
|
|
1385
|
+
*/
|
|
1386
|
+
orderBy?: Prisma.DocumentApprovalOrderByWithRelationInput | Prisma.DocumentApprovalOrderByWithRelationInput[];
|
|
1387
|
+
/**
|
|
1388
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1389
|
+
*
|
|
1390
|
+
* Sets the position for searching for DocumentApprovals.
|
|
1391
|
+
*/
|
|
1392
|
+
cursor?: Prisma.DocumentApprovalWhereUniqueInput;
|
|
1393
|
+
/**
|
|
1394
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1395
|
+
*
|
|
1396
|
+
* Take `±n` DocumentApprovals from the position of the cursor.
|
|
1397
|
+
*/
|
|
1398
|
+
take?: number;
|
|
1399
|
+
/**
|
|
1400
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1401
|
+
*
|
|
1402
|
+
* Skip the first `n` DocumentApprovals.
|
|
1403
|
+
*/
|
|
1404
|
+
skip?: number;
|
|
1405
|
+
/**
|
|
1406
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1407
|
+
*
|
|
1408
|
+
* Filter by unique combinations of DocumentApprovals.
|
|
1409
|
+
*/
|
|
1410
|
+
distinct?: Prisma.DocumentApprovalScalarFieldEnum | Prisma.DocumentApprovalScalarFieldEnum[];
|
|
1411
|
+
};
|
|
1412
|
+
/**
|
|
1413
|
+
* DocumentApproval findMany
|
|
1414
|
+
*/
|
|
1415
|
+
export type DocumentApprovalFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1416
|
+
/**
|
|
1417
|
+
* Select specific fields to fetch from the DocumentApproval
|
|
1418
|
+
*/
|
|
1419
|
+
select?: Prisma.DocumentApprovalSelect<ExtArgs> | null;
|
|
1420
|
+
/**
|
|
1421
|
+
* Omit specific fields from the DocumentApproval
|
|
1422
|
+
*/
|
|
1423
|
+
omit?: Prisma.DocumentApprovalOmit<ExtArgs> | null;
|
|
1424
|
+
/**
|
|
1425
|
+
* Choose, which related nodes to fetch as well
|
|
1426
|
+
*/
|
|
1427
|
+
include?: Prisma.DocumentApprovalInclude<ExtArgs> | null;
|
|
1428
|
+
/**
|
|
1429
|
+
* Filter, which DocumentApprovals to fetch.
|
|
1430
|
+
*/
|
|
1431
|
+
where?: Prisma.DocumentApprovalWhereInput;
|
|
1432
|
+
/**
|
|
1433
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1434
|
+
*
|
|
1435
|
+
* Determine the order of DocumentApprovals to fetch.
|
|
1436
|
+
*/
|
|
1437
|
+
orderBy?: Prisma.DocumentApprovalOrderByWithRelationInput | Prisma.DocumentApprovalOrderByWithRelationInput[];
|
|
1438
|
+
/**
|
|
1439
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1440
|
+
*
|
|
1441
|
+
* Sets the position for listing DocumentApprovals.
|
|
1442
|
+
*/
|
|
1443
|
+
cursor?: Prisma.DocumentApprovalWhereUniqueInput;
|
|
1444
|
+
/**
|
|
1445
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1446
|
+
*
|
|
1447
|
+
* Take `±n` DocumentApprovals from the position of the cursor.
|
|
1448
|
+
*/
|
|
1449
|
+
take?: number;
|
|
1450
|
+
/**
|
|
1451
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1452
|
+
*
|
|
1453
|
+
* Skip the first `n` DocumentApprovals.
|
|
1454
|
+
*/
|
|
1455
|
+
skip?: number;
|
|
1456
|
+
distinct?: Prisma.DocumentApprovalScalarFieldEnum | Prisma.DocumentApprovalScalarFieldEnum[];
|
|
1457
|
+
};
|
|
1458
|
+
/**
|
|
1459
|
+
* DocumentApproval create
|
|
1460
|
+
*/
|
|
1461
|
+
export type DocumentApprovalCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1462
|
+
/**
|
|
1463
|
+
* Select specific fields to fetch from the DocumentApproval
|
|
1464
|
+
*/
|
|
1465
|
+
select?: Prisma.DocumentApprovalSelect<ExtArgs> | null;
|
|
1466
|
+
/**
|
|
1467
|
+
* Omit specific fields from the DocumentApproval
|
|
1468
|
+
*/
|
|
1469
|
+
omit?: Prisma.DocumentApprovalOmit<ExtArgs> | null;
|
|
1470
|
+
/**
|
|
1471
|
+
* Choose, which related nodes to fetch as well
|
|
1472
|
+
*/
|
|
1473
|
+
include?: Prisma.DocumentApprovalInclude<ExtArgs> | null;
|
|
1474
|
+
/**
|
|
1475
|
+
* The data needed to create a DocumentApproval.
|
|
1476
|
+
*/
|
|
1477
|
+
data: Prisma.XOR<Prisma.DocumentApprovalCreateInput, Prisma.DocumentApprovalUncheckedCreateInput>;
|
|
1478
|
+
};
|
|
1479
|
+
/**
|
|
1480
|
+
* DocumentApproval createMany
|
|
1481
|
+
*/
|
|
1482
|
+
export type DocumentApprovalCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1483
|
+
/**
|
|
1484
|
+
* The data used to create many DocumentApprovals.
|
|
1485
|
+
*/
|
|
1486
|
+
data: Prisma.DocumentApprovalCreateManyInput | Prisma.DocumentApprovalCreateManyInput[];
|
|
1487
|
+
skipDuplicates?: boolean;
|
|
1488
|
+
};
|
|
1489
|
+
/**
|
|
1490
|
+
* DocumentApproval update
|
|
1491
|
+
*/
|
|
1492
|
+
export type DocumentApprovalUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1493
|
+
/**
|
|
1494
|
+
* Select specific fields to fetch from the DocumentApproval
|
|
1495
|
+
*/
|
|
1496
|
+
select?: Prisma.DocumentApprovalSelect<ExtArgs> | null;
|
|
1497
|
+
/**
|
|
1498
|
+
* Omit specific fields from the DocumentApproval
|
|
1499
|
+
*/
|
|
1500
|
+
omit?: Prisma.DocumentApprovalOmit<ExtArgs> | null;
|
|
1501
|
+
/**
|
|
1502
|
+
* Choose, which related nodes to fetch as well
|
|
1503
|
+
*/
|
|
1504
|
+
include?: Prisma.DocumentApprovalInclude<ExtArgs> | null;
|
|
1505
|
+
/**
|
|
1506
|
+
* The data needed to update a DocumentApproval.
|
|
1507
|
+
*/
|
|
1508
|
+
data: Prisma.XOR<Prisma.DocumentApprovalUpdateInput, Prisma.DocumentApprovalUncheckedUpdateInput>;
|
|
1509
|
+
/**
|
|
1510
|
+
* Choose, which DocumentApproval to update.
|
|
1511
|
+
*/
|
|
1512
|
+
where: Prisma.DocumentApprovalWhereUniqueInput;
|
|
1513
|
+
};
|
|
1514
|
+
/**
|
|
1515
|
+
* DocumentApproval updateMany
|
|
1516
|
+
*/
|
|
1517
|
+
export type DocumentApprovalUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1518
|
+
/**
|
|
1519
|
+
* The data used to update DocumentApprovals.
|
|
1520
|
+
*/
|
|
1521
|
+
data: Prisma.XOR<Prisma.DocumentApprovalUpdateManyMutationInput, Prisma.DocumentApprovalUncheckedUpdateManyInput>;
|
|
1522
|
+
/**
|
|
1523
|
+
* Filter which DocumentApprovals to update
|
|
1524
|
+
*/
|
|
1525
|
+
where?: Prisma.DocumentApprovalWhereInput;
|
|
1526
|
+
/**
|
|
1527
|
+
* Limit how many DocumentApprovals to update.
|
|
1528
|
+
*/
|
|
1529
|
+
limit?: number;
|
|
1530
|
+
};
|
|
1531
|
+
/**
|
|
1532
|
+
* DocumentApproval upsert
|
|
1533
|
+
*/
|
|
1534
|
+
export type DocumentApprovalUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1535
|
+
/**
|
|
1536
|
+
* Select specific fields to fetch from the DocumentApproval
|
|
1537
|
+
*/
|
|
1538
|
+
select?: Prisma.DocumentApprovalSelect<ExtArgs> | null;
|
|
1539
|
+
/**
|
|
1540
|
+
* Omit specific fields from the DocumentApproval
|
|
1541
|
+
*/
|
|
1542
|
+
omit?: Prisma.DocumentApprovalOmit<ExtArgs> | null;
|
|
1543
|
+
/**
|
|
1544
|
+
* Choose, which related nodes to fetch as well
|
|
1545
|
+
*/
|
|
1546
|
+
include?: Prisma.DocumentApprovalInclude<ExtArgs> | null;
|
|
1547
|
+
/**
|
|
1548
|
+
* The filter to search for the DocumentApproval to update in case it exists.
|
|
1549
|
+
*/
|
|
1550
|
+
where: Prisma.DocumentApprovalWhereUniqueInput;
|
|
1551
|
+
/**
|
|
1552
|
+
* In case the DocumentApproval found by the `where` argument doesn't exist, create a new DocumentApproval with this data.
|
|
1553
|
+
*/
|
|
1554
|
+
create: Prisma.XOR<Prisma.DocumentApprovalCreateInput, Prisma.DocumentApprovalUncheckedCreateInput>;
|
|
1555
|
+
/**
|
|
1556
|
+
* In case the DocumentApproval was found with the provided `where` argument, update it with this data.
|
|
1557
|
+
*/
|
|
1558
|
+
update: Prisma.XOR<Prisma.DocumentApprovalUpdateInput, Prisma.DocumentApprovalUncheckedUpdateInput>;
|
|
1559
|
+
};
|
|
1560
|
+
/**
|
|
1561
|
+
* DocumentApproval delete
|
|
1562
|
+
*/
|
|
1563
|
+
export type DocumentApprovalDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1564
|
+
/**
|
|
1565
|
+
* Select specific fields to fetch from the DocumentApproval
|
|
1566
|
+
*/
|
|
1567
|
+
select?: Prisma.DocumentApprovalSelect<ExtArgs> | null;
|
|
1568
|
+
/**
|
|
1569
|
+
* Omit specific fields from the DocumentApproval
|
|
1570
|
+
*/
|
|
1571
|
+
omit?: Prisma.DocumentApprovalOmit<ExtArgs> | null;
|
|
1572
|
+
/**
|
|
1573
|
+
* Choose, which related nodes to fetch as well
|
|
1574
|
+
*/
|
|
1575
|
+
include?: Prisma.DocumentApprovalInclude<ExtArgs> | null;
|
|
1576
|
+
/**
|
|
1577
|
+
* Filter which DocumentApproval to delete.
|
|
1578
|
+
*/
|
|
1579
|
+
where: Prisma.DocumentApprovalWhereUniqueInput;
|
|
1580
|
+
};
|
|
1581
|
+
/**
|
|
1582
|
+
* DocumentApproval deleteMany
|
|
1583
|
+
*/
|
|
1584
|
+
export type DocumentApprovalDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1585
|
+
/**
|
|
1586
|
+
* Filter which DocumentApprovals to delete
|
|
1587
|
+
*/
|
|
1588
|
+
where?: Prisma.DocumentApprovalWhereInput;
|
|
1589
|
+
/**
|
|
1590
|
+
* Limit how many DocumentApprovals to delete.
|
|
1591
|
+
*/
|
|
1592
|
+
limit?: number;
|
|
1593
|
+
};
|
|
1594
|
+
/**
|
|
1595
|
+
* DocumentApproval without action
|
|
1596
|
+
*/
|
|
1597
|
+
export type DocumentApprovalDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1598
|
+
/**
|
|
1599
|
+
* Select specific fields to fetch from the DocumentApproval
|
|
1600
|
+
*/
|
|
1601
|
+
select?: Prisma.DocumentApprovalSelect<ExtArgs> | null;
|
|
1602
|
+
/**
|
|
1603
|
+
* Omit specific fields from the DocumentApproval
|
|
1604
|
+
*/
|
|
1605
|
+
omit?: Prisma.DocumentApprovalOmit<ExtArgs> | null;
|
|
1606
|
+
/**
|
|
1607
|
+
* Choose, which related nodes to fetch as well
|
|
1608
|
+
*/
|
|
1609
|
+
include?: Prisma.DocumentApprovalInclude<ExtArgs> | null;
|
|
1610
|
+
};
|
|
1611
|
+
export {};
|