@valentine-efagene/qshelter-common 2.0.151 → 2.0.153

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/generated/client/browser.d.ts +13 -2
  2. package/dist/generated/client/client.d.ts +15 -4
  3. package/dist/generated/client/client.js +2 -2
  4. package/dist/generated/client/commonInputTypes.d.ts +20 -190
  5. package/dist/generated/client/enums.d.ts +0 -34
  6. package/dist/generated/client/enums.js +0 -30
  7. package/dist/generated/client/internal/class.d.ts +29 -7
  8. package/dist/generated/client/internal/class.js +2 -2
  9. package/dist/generated/client/internal/prismaNamespace.d.ts +181 -32
  10. package/dist/generated/client/internal/prismaNamespace.js +42 -11
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +46 -11
  12. package/dist/generated/client/internal/prismaNamespaceBrowser.js +42 -11
  13. package/dist/generated/client/models/ApplicationOrganization.d.ts +308 -67
  14. package/dist/generated/client/models/ApprovalStage.d.ts +210 -91
  15. package/dist/generated/client/models/ApprovalStageProgress.d.ts +258 -69
  16. package/dist/generated/client/models/DocumentApproval.d.ts +196 -65
  17. package/dist/generated/client/models/DocumentReview.d.ts +475 -86
  18. package/dist/generated/client/models/Organization.d.ts +424 -52
  19. package/dist/generated/client/models/OrganizationMember.d.ts +42 -169
  20. package/dist/generated/client/models/OrganizationType.d.ts +1982 -0
  21. package/dist/generated/client/models/OrganizationType.js +1 -0
  22. package/dist/generated/client/models/OrganizationTypeAssignment.d.ts +1159 -0
  23. package/dist/generated/client/models/OrganizationTypeAssignment.js +1 -0
  24. package/dist/generated/client/models/Tenant.d.ts +575 -4
  25. package/dist/generated/client/models/User.d.ts +0 -12
  26. package/dist/generated/client/models/index.d.ts +2 -0
  27. package/dist/generated/client/models/index.js +2 -0
  28. package/dist/generated/client/models.d.ts +2 -0
  29. package/package.json +1 -1
  30. package/prisma/migrations/20260125102448_org_types_many_to_many/migration.sql +153 -0
  31. package/prisma/migrations/20260125103700_20260125102448_org_types_many_to_many_fix/migration.sql +5 -0
  32. package/prisma/schema.prisma +113 -79
@@ -0,0 +1,1982 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model OrganizationType
5
+ *
6
+ */
7
+ export type OrganizationTypeModel = runtime.Types.Result.DefaultSelection<Prisma.$OrganizationTypePayload>;
8
+ export type AggregateOrganizationType = {
9
+ _count: OrganizationTypeCountAggregateOutputType | null;
10
+ _min: OrganizationTypeMinAggregateOutputType | null;
11
+ _max: OrganizationTypeMaxAggregateOutputType | null;
12
+ };
13
+ export type OrganizationTypeMinAggregateOutputType = {
14
+ id: string | null;
15
+ tenantId: string | null;
16
+ code: string | null;
17
+ name: string | null;
18
+ description: string | null;
19
+ isSystemType: boolean | null;
20
+ createdAt: Date | null;
21
+ updatedAt: Date | null;
22
+ };
23
+ export type OrganizationTypeMaxAggregateOutputType = {
24
+ id: string | null;
25
+ tenantId: string | null;
26
+ code: string | null;
27
+ name: string | null;
28
+ description: string | null;
29
+ isSystemType: boolean | null;
30
+ createdAt: Date | null;
31
+ updatedAt: Date | null;
32
+ };
33
+ export type OrganizationTypeCountAggregateOutputType = {
34
+ id: number;
35
+ tenantId: number;
36
+ code: number;
37
+ name: number;
38
+ description: number;
39
+ isSystemType: number;
40
+ createdAt: number;
41
+ updatedAt: number;
42
+ _all: number;
43
+ };
44
+ export type OrganizationTypeMinAggregateInputType = {
45
+ id?: true;
46
+ tenantId?: true;
47
+ code?: true;
48
+ name?: true;
49
+ description?: true;
50
+ isSystemType?: true;
51
+ createdAt?: true;
52
+ updatedAt?: true;
53
+ };
54
+ export type OrganizationTypeMaxAggregateInputType = {
55
+ id?: true;
56
+ tenantId?: true;
57
+ code?: true;
58
+ name?: true;
59
+ description?: true;
60
+ isSystemType?: true;
61
+ createdAt?: true;
62
+ updatedAt?: true;
63
+ };
64
+ export type OrganizationTypeCountAggregateInputType = {
65
+ id?: true;
66
+ tenantId?: true;
67
+ code?: true;
68
+ name?: true;
69
+ description?: true;
70
+ isSystemType?: true;
71
+ createdAt?: true;
72
+ updatedAt?: true;
73
+ _all?: true;
74
+ };
75
+ export type OrganizationTypeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
76
+ /**
77
+ * Filter which OrganizationType to aggregate.
78
+ */
79
+ where?: Prisma.OrganizationTypeWhereInput;
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
82
+ *
83
+ * Determine the order of OrganizationTypes to fetch.
84
+ */
85
+ orderBy?: Prisma.OrganizationTypeOrderByWithRelationInput | Prisma.OrganizationTypeOrderByWithRelationInput[];
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
88
+ *
89
+ * Sets the start position
90
+ */
91
+ cursor?: Prisma.OrganizationTypeWhereUniqueInput;
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
94
+ *
95
+ * Take `±n` OrganizationTypes from the position of the cursor.
96
+ */
97
+ take?: number;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
100
+ *
101
+ * Skip the first `n` OrganizationTypes.
102
+ */
103
+ skip?: number;
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
106
+ *
107
+ * Count returned OrganizationTypes
108
+ **/
109
+ _count?: true | OrganizationTypeCountAggregateInputType;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
112
+ *
113
+ * Select which fields to find the minimum value
114
+ **/
115
+ _min?: OrganizationTypeMinAggregateInputType;
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
118
+ *
119
+ * Select which fields to find the maximum value
120
+ **/
121
+ _max?: OrganizationTypeMaxAggregateInputType;
122
+ };
123
+ export type GetOrganizationTypeAggregateType<T extends OrganizationTypeAggregateArgs> = {
124
+ [P in keyof T & keyof AggregateOrganizationType]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateOrganizationType[P]> : Prisma.GetScalarType<T[P], AggregateOrganizationType[P]>;
125
+ };
126
+ export type OrganizationTypeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
127
+ where?: Prisma.OrganizationTypeWhereInput;
128
+ orderBy?: Prisma.OrganizationTypeOrderByWithAggregationInput | Prisma.OrganizationTypeOrderByWithAggregationInput[];
129
+ by: Prisma.OrganizationTypeScalarFieldEnum[] | Prisma.OrganizationTypeScalarFieldEnum;
130
+ having?: Prisma.OrganizationTypeScalarWhereWithAggregatesInput;
131
+ take?: number;
132
+ skip?: number;
133
+ _count?: OrganizationTypeCountAggregateInputType | true;
134
+ _min?: OrganizationTypeMinAggregateInputType;
135
+ _max?: OrganizationTypeMaxAggregateInputType;
136
+ };
137
+ export type OrganizationTypeGroupByOutputType = {
138
+ id: string;
139
+ tenantId: string;
140
+ code: string;
141
+ name: string;
142
+ description: string | null;
143
+ isSystemType: boolean;
144
+ createdAt: Date;
145
+ updatedAt: Date;
146
+ _count: OrganizationTypeCountAggregateOutputType | null;
147
+ _min: OrganizationTypeMinAggregateOutputType | null;
148
+ _max: OrganizationTypeMaxAggregateOutputType | null;
149
+ };
150
+ type GetOrganizationTypeGroupByPayload<T extends OrganizationTypeGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<OrganizationTypeGroupByOutputType, T['by']> & {
151
+ [P in ((keyof T) & (keyof OrganizationTypeGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], OrganizationTypeGroupByOutputType[P]> : Prisma.GetScalarType<T[P], OrganizationTypeGroupByOutputType[P]>;
152
+ }>>;
153
+ export type OrganizationTypeWhereInput = {
154
+ AND?: Prisma.OrganizationTypeWhereInput | Prisma.OrganizationTypeWhereInput[];
155
+ OR?: Prisma.OrganizationTypeWhereInput[];
156
+ NOT?: Prisma.OrganizationTypeWhereInput | Prisma.OrganizationTypeWhereInput[];
157
+ id?: Prisma.StringFilter<"OrganizationType"> | string;
158
+ tenantId?: Prisma.StringFilter<"OrganizationType"> | string;
159
+ code?: Prisma.StringFilter<"OrganizationType"> | string;
160
+ name?: Prisma.StringFilter<"OrganizationType"> | string;
161
+ description?: Prisma.StringNullableFilter<"OrganizationType"> | string | null;
162
+ isSystemType?: Prisma.BoolFilter<"OrganizationType"> | boolean;
163
+ createdAt?: Prisma.DateTimeFilter<"OrganizationType"> | Date | string;
164
+ updatedAt?: Prisma.DateTimeFilter<"OrganizationType"> | Date | string;
165
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
166
+ organizations?: Prisma.OrganizationTypeAssignmentListRelationFilter;
167
+ applicationOrganizations?: Prisma.ApplicationOrganizationListRelationFilter;
168
+ approvalStages?: Prisma.ApprovalStageListRelationFilter;
169
+ documentReviews?: Prisma.DocumentReviewListRelationFilter;
170
+ approvalStageProgress?: Prisma.ApprovalStageProgressListRelationFilter;
171
+ documentApprovals?: Prisma.DocumentApprovalListRelationFilter;
172
+ };
173
+ export type OrganizationTypeOrderByWithRelationInput = {
174
+ id?: Prisma.SortOrder;
175
+ tenantId?: Prisma.SortOrder;
176
+ code?: Prisma.SortOrder;
177
+ name?: Prisma.SortOrder;
178
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
179
+ isSystemType?: Prisma.SortOrder;
180
+ createdAt?: Prisma.SortOrder;
181
+ updatedAt?: Prisma.SortOrder;
182
+ tenant?: Prisma.TenantOrderByWithRelationInput;
183
+ organizations?: Prisma.OrganizationTypeAssignmentOrderByRelationAggregateInput;
184
+ applicationOrganizations?: Prisma.ApplicationOrganizationOrderByRelationAggregateInput;
185
+ approvalStages?: Prisma.ApprovalStageOrderByRelationAggregateInput;
186
+ documentReviews?: Prisma.DocumentReviewOrderByRelationAggregateInput;
187
+ approvalStageProgress?: Prisma.ApprovalStageProgressOrderByRelationAggregateInput;
188
+ documentApprovals?: Prisma.DocumentApprovalOrderByRelationAggregateInput;
189
+ _relevance?: Prisma.OrganizationTypeOrderByRelevanceInput;
190
+ };
191
+ export type OrganizationTypeWhereUniqueInput = Prisma.AtLeast<{
192
+ id?: string;
193
+ tenantId_code?: Prisma.OrganizationTypeTenantIdCodeCompoundUniqueInput;
194
+ AND?: Prisma.OrganizationTypeWhereInput | Prisma.OrganizationTypeWhereInput[];
195
+ OR?: Prisma.OrganizationTypeWhereInput[];
196
+ NOT?: Prisma.OrganizationTypeWhereInput | Prisma.OrganizationTypeWhereInput[];
197
+ tenantId?: Prisma.StringFilter<"OrganizationType"> | string;
198
+ code?: Prisma.StringFilter<"OrganizationType"> | string;
199
+ name?: Prisma.StringFilter<"OrganizationType"> | string;
200
+ description?: Prisma.StringNullableFilter<"OrganizationType"> | string | null;
201
+ isSystemType?: Prisma.BoolFilter<"OrganizationType"> | boolean;
202
+ createdAt?: Prisma.DateTimeFilter<"OrganizationType"> | Date | string;
203
+ updatedAt?: Prisma.DateTimeFilter<"OrganizationType"> | Date | string;
204
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
205
+ organizations?: Prisma.OrganizationTypeAssignmentListRelationFilter;
206
+ applicationOrganizations?: Prisma.ApplicationOrganizationListRelationFilter;
207
+ approvalStages?: Prisma.ApprovalStageListRelationFilter;
208
+ documentReviews?: Prisma.DocumentReviewListRelationFilter;
209
+ approvalStageProgress?: Prisma.ApprovalStageProgressListRelationFilter;
210
+ documentApprovals?: Prisma.DocumentApprovalListRelationFilter;
211
+ }, "id" | "tenantId_code">;
212
+ export type OrganizationTypeOrderByWithAggregationInput = {
213
+ id?: Prisma.SortOrder;
214
+ tenantId?: Prisma.SortOrder;
215
+ code?: Prisma.SortOrder;
216
+ name?: Prisma.SortOrder;
217
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
218
+ isSystemType?: Prisma.SortOrder;
219
+ createdAt?: Prisma.SortOrder;
220
+ updatedAt?: Prisma.SortOrder;
221
+ _count?: Prisma.OrganizationTypeCountOrderByAggregateInput;
222
+ _max?: Prisma.OrganizationTypeMaxOrderByAggregateInput;
223
+ _min?: Prisma.OrganizationTypeMinOrderByAggregateInput;
224
+ };
225
+ export type OrganizationTypeScalarWhereWithAggregatesInput = {
226
+ AND?: Prisma.OrganizationTypeScalarWhereWithAggregatesInput | Prisma.OrganizationTypeScalarWhereWithAggregatesInput[];
227
+ OR?: Prisma.OrganizationTypeScalarWhereWithAggregatesInput[];
228
+ NOT?: Prisma.OrganizationTypeScalarWhereWithAggregatesInput | Prisma.OrganizationTypeScalarWhereWithAggregatesInput[];
229
+ id?: Prisma.StringWithAggregatesFilter<"OrganizationType"> | string;
230
+ tenantId?: Prisma.StringWithAggregatesFilter<"OrganizationType"> | string;
231
+ code?: Prisma.StringWithAggregatesFilter<"OrganizationType"> | string;
232
+ name?: Prisma.StringWithAggregatesFilter<"OrganizationType"> | string;
233
+ description?: Prisma.StringNullableWithAggregatesFilter<"OrganizationType"> | string | null;
234
+ isSystemType?: Prisma.BoolWithAggregatesFilter<"OrganizationType"> | boolean;
235
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"OrganizationType"> | Date | string;
236
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"OrganizationType"> | Date | string;
237
+ };
238
+ export type OrganizationTypeCreateInput = {
239
+ id?: string;
240
+ code: string;
241
+ name: string;
242
+ description?: string | null;
243
+ isSystemType?: boolean;
244
+ createdAt?: Date | string;
245
+ updatedAt?: Date | string;
246
+ tenant: Prisma.TenantCreateNestedOneWithoutOrganizationTypesInput;
247
+ organizations?: Prisma.OrganizationTypeAssignmentCreateNestedManyWithoutOrgTypeInput;
248
+ applicationOrganizations?: Prisma.ApplicationOrganizationCreateNestedManyWithoutAssignedAsTypeInput;
249
+ approvalStages?: Prisma.ApprovalStageCreateNestedManyWithoutOrganizationTypeInput;
250
+ documentReviews?: Prisma.DocumentReviewCreateNestedManyWithoutOrganizationTypeInput;
251
+ approvalStageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutOrganizationTypeInput;
252
+ documentApprovals?: Prisma.DocumentApprovalCreateNestedManyWithoutOrganizationTypeInput;
253
+ };
254
+ export type OrganizationTypeUncheckedCreateInput = {
255
+ id?: string;
256
+ tenantId: string;
257
+ code: string;
258
+ name: string;
259
+ description?: string | null;
260
+ isSystemType?: boolean;
261
+ createdAt?: Date | string;
262
+ updatedAt?: Date | string;
263
+ organizations?: Prisma.OrganizationTypeAssignmentUncheckedCreateNestedManyWithoutOrgTypeInput;
264
+ applicationOrganizations?: Prisma.ApplicationOrganizationUncheckedCreateNestedManyWithoutAssignedAsTypeInput;
265
+ approvalStages?: Prisma.ApprovalStageUncheckedCreateNestedManyWithoutOrganizationTypeInput;
266
+ documentReviews?: Prisma.DocumentReviewUncheckedCreateNestedManyWithoutOrganizationTypeInput;
267
+ approvalStageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutOrganizationTypeInput;
268
+ documentApprovals?: Prisma.DocumentApprovalUncheckedCreateNestedManyWithoutOrganizationTypeInput;
269
+ };
270
+ export type OrganizationTypeUpdateInput = {
271
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
272
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
273
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
274
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
275
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
276
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
277
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
278
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutOrganizationTypesNestedInput;
279
+ organizations?: Prisma.OrganizationTypeAssignmentUpdateManyWithoutOrgTypeNestedInput;
280
+ applicationOrganizations?: Prisma.ApplicationOrganizationUpdateManyWithoutAssignedAsTypeNestedInput;
281
+ approvalStages?: Prisma.ApprovalStageUpdateManyWithoutOrganizationTypeNestedInput;
282
+ documentReviews?: Prisma.DocumentReviewUpdateManyWithoutOrganizationTypeNestedInput;
283
+ approvalStageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutOrganizationTypeNestedInput;
284
+ documentApprovals?: Prisma.DocumentApprovalUpdateManyWithoutOrganizationTypeNestedInput;
285
+ };
286
+ export type OrganizationTypeUncheckedUpdateInput = {
287
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
288
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
289
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
290
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
291
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
292
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
293
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
294
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
295
+ organizations?: Prisma.OrganizationTypeAssignmentUncheckedUpdateManyWithoutOrgTypeNestedInput;
296
+ applicationOrganizations?: Prisma.ApplicationOrganizationUncheckedUpdateManyWithoutAssignedAsTypeNestedInput;
297
+ approvalStages?: Prisma.ApprovalStageUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
298
+ documentReviews?: Prisma.DocumentReviewUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
299
+ approvalStageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
300
+ documentApprovals?: Prisma.DocumentApprovalUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
301
+ };
302
+ export type OrganizationTypeCreateManyInput = {
303
+ id?: string;
304
+ tenantId: string;
305
+ code: string;
306
+ name: string;
307
+ description?: string | null;
308
+ isSystemType?: boolean;
309
+ createdAt?: Date | string;
310
+ updatedAt?: Date | string;
311
+ };
312
+ export type OrganizationTypeUpdateManyMutationInput = {
313
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
314
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
315
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
316
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
317
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
318
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
319
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
320
+ };
321
+ export type OrganizationTypeUncheckedUpdateManyInput = {
322
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
323
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
324
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
325
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
326
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
327
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
328
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
329
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
330
+ };
331
+ export type OrganizationTypeOrderByRelevanceInput = {
332
+ fields: Prisma.OrganizationTypeOrderByRelevanceFieldEnum | Prisma.OrganizationTypeOrderByRelevanceFieldEnum[];
333
+ sort: Prisma.SortOrder;
334
+ search: string;
335
+ };
336
+ export type OrganizationTypeTenantIdCodeCompoundUniqueInput = {
337
+ tenantId: string;
338
+ code: string;
339
+ };
340
+ export type OrganizationTypeCountOrderByAggregateInput = {
341
+ id?: Prisma.SortOrder;
342
+ tenantId?: Prisma.SortOrder;
343
+ code?: Prisma.SortOrder;
344
+ name?: Prisma.SortOrder;
345
+ description?: Prisma.SortOrder;
346
+ isSystemType?: Prisma.SortOrder;
347
+ createdAt?: Prisma.SortOrder;
348
+ updatedAt?: Prisma.SortOrder;
349
+ };
350
+ export type OrganizationTypeMaxOrderByAggregateInput = {
351
+ id?: Prisma.SortOrder;
352
+ tenantId?: Prisma.SortOrder;
353
+ code?: Prisma.SortOrder;
354
+ name?: Prisma.SortOrder;
355
+ description?: Prisma.SortOrder;
356
+ isSystemType?: Prisma.SortOrder;
357
+ createdAt?: Prisma.SortOrder;
358
+ updatedAt?: Prisma.SortOrder;
359
+ };
360
+ export type OrganizationTypeMinOrderByAggregateInput = {
361
+ id?: Prisma.SortOrder;
362
+ tenantId?: Prisma.SortOrder;
363
+ code?: Prisma.SortOrder;
364
+ name?: Prisma.SortOrder;
365
+ description?: Prisma.SortOrder;
366
+ isSystemType?: Prisma.SortOrder;
367
+ createdAt?: Prisma.SortOrder;
368
+ updatedAt?: Prisma.SortOrder;
369
+ };
370
+ export type OrganizationTypeScalarRelationFilter = {
371
+ is?: Prisma.OrganizationTypeWhereInput;
372
+ isNot?: Prisma.OrganizationTypeWhereInput;
373
+ };
374
+ export type OrganizationTypeListRelationFilter = {
375
+ every?: Prisma.OrganizationTypeWhereInput;
376
+ some?: Prisma.OrganizationTypeWhereInput;
377
+ none?: Prisma.OrganizationTypeWhereInput;
378
+ };
379
+ export type OrganizationTypeOrderByRelationAggregateInput = {
380
+ _count?: Prisma.SortOrder;
381
+ };
382
+ export type OrganizationTypeNullableScalarRelationFilter = {
383
+ is?: Prisma.OrganizationTypeWhereInput | null;
384
+ isNot?: Prisma.OrganizationTypeWhereInput | null;
385
+ };
386
+ export type StringFieldUpdateOperationsInput = {
387
+ set?: string;
388
+ };
389
+ export type NullableStringFieldUpdateOperationsInput = {
390
+ set?: string | null;
391
+ };
392
+ export type BoolFieldUpdateOperationsInput = {
393
+ set?: boolean;
394
+ };
395
+ export type DateTimeFieldUpdateOperationsInput = {
396
+ set?: Date | string;
397
+ };
398
+ export type OrganizationTypeCreateNestedOneWithoutOrganizationsInput = {
399
+ create?: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutOrganizationsInput, Prisma.OrganizationTypeUncheckedCreateWithoutOrganizationsInput>;
400
+ connectOrCreate?: Prisma.OrganizationTypeCreateOrConnectWithoutOrganizationsInput;
401
+ connect?: Prisma.OrganizationTypeWhereUniqueInput;
402
+ };
403
+ export type OrganizationTypeUpdateOneRequiredWithoutOrganizationsNestedInput = {
404
+ create?: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutOrganizationsInput, Prisma.OrganizationTypeUncheckedCreateWithoutOrganizationsInput>;
405
+ connectOrCreate?: Prisma.OrganizationTypeCreateOrConnectWithoutOrganizationsInput;
406
+ upsert?: Prisma.OrganizationTypeUpsertWithoutOrganizationsInput;
407
+ connect?: Prisma.OrganizationTypeWhereUniqueInput;
408
+ update?: Prisma.XOR<Prisma.XOR<Prisma.OrganizationTypeUpdateToOneWithWhereWithoutOrganizationsInput, Prisma.OrganizationTypeUpdateWithoutOrganizationsInput>, Prisma.OrganizationTypeUncheckedUpdateWithoutOrganizationsInput>;
409
+ };
410
+ export type OrganizationTypeCreateNestedManyWithoutTenantInput = {
411
+ create?: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutTenantInput, Prisma.OrganizationTypeUncheckedCreateWithoutTenantInput> | Prisma.OrganizationTypeCreateWithoutTenantInput[] | Prisma.OrganizationTypeUncheckedCreateWithoutTenantInput[];
412
+ connectOrCreate?: Prisma.OrganizationTypeCreateOrConnectWithoutTenantInput | Prisma.OrganizationTypeCreateOrConnectWithoutTenantInput[];
413
+ createMany?: Prisma.OrganizationTypeCreateManyTenantInputEnvelope;
414
+ connect?: Prisma.OrganizationTypeWhereUniqueInput | Prisma.OrganizationTypeWhereUniqueInput[];
415
+ };
416
+ export type OrganizationTypeUncheckedCreateNestedManyWithoutTenantInput = {
417
+ create?: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutTenantInput, Prisma.OrganizationTypeUncheckedCreateWithoutTenantInput> | Prisma.OrganizationTypeCreateWithoutTenantInput[] | Prisma.OrganizationTypeUncheckedCreateWithoutTenantInput[];
418
+ connectOrCreate?: Prisma.OrganizationTypeCreateOrConnectWithoutTenantInput | Prisma.OrganizationTypeCreateOrConnectWithoutTenantInput[];
419
+ createMany?: Prisma.OrganizationTypeCreateManyTenantInputEnvelope;
420
+ connect?: Prisma.OrganizationTypeWhereUniqueInput | Prisma.OrganizationTypeWhereUniqueInput[];
421
+ };
422
+ export type OrganizationTypeUpdateManyWithoutTenantNestedInput = {
423
+ create?: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutTenantInput, Prisma.OrganizationTypeUncheckedCreateWithoutTenantInput> | Prisma.OrganizationTypeCreateWithoutTenantInput[] | Prisma.OrganizationTypeUncheckedCreateWithoutTenantInput[];
424
+ connectOrCreate?: Prisma.OrganizationTypeCreateOrConnectWithoutTenantInput | Prisma.OrganizationTypeCreateOrConnectWithoutTenantInput[];
425
+ upsert?: Prisma.OrganizationTypeUpsertWithWhereUniqueWithoutTenantInput | Prisma.OrganizationTypeUpsertWithWhereUniqueWithoutTenantInput[];
426
+ createMany?: Prisma.OrganizationTypeCreateManyTenantInputEnvelope;
427
+ set?: Prisma.OrganizationTypeWhereUniqueInput | Prisma.OrganizationTypeWhereUniqueInput[];
428
+ disconnect?: Prisma.OrganizationTypeWhereUniqueInput | Prisma.OrganizationTypeWhereUniqueInput[];
429
+ delete?: Prisma.OrganizationTypeWhereUniqueInput | Prisma.OrganizationTypeWhereUniqueInput[];
430
+ connect?: Prisma.OrganizationTypeWhereUniqueInput | Prisma.OrganizationTypeWhereUniqueInput[];
431
+ update?: Prisma.OrganizationTypeUpdateWithWhereUniqueWithoutTenantInput | Prisma.OrganizationTypeUpdateWithWhereUniqueWithoutTenantInput[];
432
+ updateMany?: Prisma.OrganizationTypeUpdateManyWithWhereWithoutTenantInput | Prisma.OrganizationTypeUpdateManyWithWhereWithoutTenantInput[];
433
+ deleteMany?: Prisma.OrganizationTypeScalarWhereInput | Prisma.OrganizationTypeScalarWhereInput[];
434
+ };
435
+ export type OrganizationTypeUncheckedUpdateManyWithoutTenantNestedInput = {
436
+ create?: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutTenantInput, Prisma.OrganizationTypeUncheckedCreateWithoutTenantInput> | Prisma.OrganizationTypeCreateWithoutTenantInput[] | Prisma.OrganizationTypeUncheckedCreateWithoutTenantInput[];
437
+ connectOrCreate?: Prisma.OrganizationTypeCreateOrConnectWithoutTenantInput | Prisma.OrganizationTypeCreateOrConnectWithoutTenantInput[];
438
+ upsert?: Prisma.OrganizationTypeUpsertWithWhereUniqueWithoutTenantInput | Prisma.OrganizationTypeUpsertWithWhereUniqueWithoutTenantInput[];
439
+ createMany?: Prisma.OrganizationTypeCreateManyTenantInputEnvelope;
440
+ set?: Prisma.OrganizationTypeWhereUniqueInput | Prisma.OrganizationTypeWhereUniqueInput[];
441
+ disconnect?: Prisma.OrganizationTypeWhereUniqueInput | Prisma.OrganizationTypeWhereUniqueInput[];
442
+ delete?: Prisma.OrganizationTypeWhereUniqueInput | Prisma.OrganizationTypeWhereUniqueInput[];
443
+ connect?: Prisma.OrganizationTypeWhereUniqueInput | Prisma.OrganizationTypeWhereUniqueInput[];
444
+ update?: Prisma.OrganizationTypeUpdateWithWhereUniqueWithoutTenantInput | Prisma.OrganizationTypeUpdateWithWhereUniqueWithoutTenantInput[];
445
+ updateMany?: Prisma.OrganizationTypeUpdateManyWithWhereWithoutTenantInput | Prisma.OrganizationTypeUpdateManyWithWhereWithoutTenantInput[];
446
+ deleteMany?: Prisma.OrganizationTypeScalarWhereInput | Prisma.OrganizationTypeScalarWhereInput[];
447
+ };
448
+ export type OrganizationTypeCreateNestedOneWithoutApprovalStagesInput = {
449
+ create?: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutApprovalStagesInput, Prisma.OrganizationTypeUncheckedCreateWithoutApprovalStagesInput>;
450
+ connectOrCreate?: Prisma.OrganizationTypeCreateOrConnectWithoutApprovalStagesInput;
451
+ connect?: Prisma.OrganizationTypeWhereUniqueInput;
452
+ };
453
+ export type OrganizationTypeUpdateOneRequiredWithoutApprovalStagesNestedInput = {
454
+ create?: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutApprovalStagesInput, Prisma.OrganizationTypeUncheckedCreateWithoutApprovalStagesInput>;
455
+ connectOrCreate?: Prisma.OrganizationTypeCreateOrConnectWithoutApprovalStagesInput;
456
+ upsert?: Prisma.OrganizationTypeUpsertWithoutApprovalStagesInput;
457
+ connect?: Prisma.OrganizationTypeWhereUniqueInput;
458
+ update?: Prisma.XOR<Prisma.XOR<Prisma.OrganizationTypeUpdateToOneWithWhereWithoutApprovalStagesInput, Prisma.OrganizationTypeUpdateWithoutApprovalStagesInput>, Prisma.OrganizationTypeUncheckedUpdateWithoutApprovalStagesInput>;
459
+ };
460
+ export type OrganizationTypeCreateNestedOneWithoutApplicationOrganizationsInput = {
461
+ create?: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutApplicationOrganizationsInput, Prisma.OrganizationTypeUncheckedCreateWithoutApplicationOrganizationsInput>;
462
+ connectOrCreate?: Prisma.OrganizationTypeCreateOrConnectWithoutApplicationOrganizationsInput;
463
+ connect?: Prisma.OrganizationTypeWhereUniqueInput;
464
+ };
465
+ export type OrganizationTypeUpdateOneRequiredWithoutApplicationOrganizationsNestedInput = {
466
+ create?: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutApplicationOrganizationsInput, Prisma.OrganizationTypeUncheckedCreateWithoutApplicationOrganizationsInput>;
467
+ connectOrCreate?: Prisma.OrganizationTypeCreateOrConnectWithoutApplicationOrganizationsInput;
468
+ upsert?: Prisma.OrganizationTypeUpsertWithoutApplicationOrganizationsInput;
469
+ connect?: Prisma.OrganizationTypeWhereUniqueInput;
470
+ update?: Prisma.XOR<Prisma.XOR<Prisma.OrganizationTypeUpdateToOneWithWhereWithoutApplicationOrganizationsInput, Prisma.OrganizationTypeUpdateWithoutApplicationOrganizationsInput>, Prisma.OrganizationTypeUncheckedUpdateWithoutApplicationOrganizationsInput>;
471
+ };
472
+ export type OrganizationTypeCreateNestedOneWithoutDocumentReviewsInput = {
473
+ create?: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutDocumentReviewsInput, Prisma.OrganizationTypeUncheckedCreateWithoutDocumentReviewsInput>;
474
+ connectOrCreate?: Prisma.OrganizationTypeCreateOrConnectWithoutDocumentReviewsInput;
475
+ connect?: Prisma.OrganizationTypeWhereUniqueInput;
476
+ };
477
+ export type OrganizationTypeUpdateOneWithoutDocumentReviewsNestedInput = {
478
+ create?: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutDocumentReviewsInput, Prisma.OrganizationTypeUncheckedCreateWithoutDocumentReviewsInput>;
479
+ connectOrCreate?: Prisma.OrganizationTypeCreateOrConnectWithoutDocumentReviewsInput;
480
+ upsert?: Prisma.OrganizationTypeUpsertWithoutDocumentReviewsInput;
481
+ disconnect?: Prisma.OrganizationTypeWhereInput | boolean;
482
+ delete?: Prisma.OrganizationTypeWhereInput | boolean;
483
+ connect?: Prisma.OrganizationTypeWhereUniqueInput;
484
+ update?: Prisma.XOR<Prisma.XOR<Prisma.OrganizationTypeUpdateToOneWithWhereWithoutDocumentReviewsInput, Prisma.OrganizationTypeUpdateWithoutDocumentReviewsInput>, Prisma.OrganizationTypeUncheckedUpdateWithoutDocumentReviewsInput>;
485
+ };
486
+ export type OrganizationTypeCreateNestedOneWithoutApprovalStageProgressInput = {
487
+ create?: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutApprovalStageProgressInput, Prisma.OrganizationTypeUncheckedCreateWithoutApprovalStageProgressInput>;
488
+ connectOrCreate?: Prisma.OrganizationTypeCreateOrConnectWithoutApprovalStageProgressInput;
489
+ connect?: Prisma.OrganizationTypeWhereUniqueInput;
490
+ };
491
+ export type OrganizationTypeUpdateOneRequiredWithoutApprovalStageProgressNestedInput = {
492
+ create?: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutApprovalStageProgressInput, Prisma.OrganizationTypeUncheckedCreateWithoutApprovalStageProgressInput>;
493
+ connectOrCreate?: Prisma.OrganizationTypeCreateOrConnectWithoutApprovalStageProgressInput;
494
+ upsert?: Prisma.OrganizationTypeUpsertWithoutApprovalStageProgressInput;
495
+ connect?: Prisma.OrganizationTypeWhereUniqueInput;
496
+ update?: Prisma.XOR<Prisma.XOR<Prisma.OrganizationTypeUpdateToOneWithWhereWithoutApprovalStageProgressInput, Prisma.OrganizationTypeUpdateWithoutApprovalStageProgressInput>, Prisma.OrganizationTypeUncheckedUpdateWithoutApprovalStageProgressInput>;
497
+ };
498
+ export type OrganizationTypeCreateNestedOneWithoutDocumentApprovalsInput = {
499
+ create?: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutDocumentApprovalsInput, Prisma.OrganizationTypeUncheckedCreateWithoutDocumentApprovalsInput>;
500
+ connectOrCreate?: Prisma.OrganizationTypeCreateOrConnectWithoutDocumentApprovalsInput;
501
+ connect?: Prisma.OrganizationTypeWhereUniqueInput;
502
+ };
503
+ export type OrganizationTypeUpdateOneRequiredWithoutDocumentApprovalsNestedInput = {
504
+ create?: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutDocumentApprovalsInput, Prisma.OrganizationTypeUncheckedCreateWithoutDocumentApprovalsInput>;
505
+ connectOrCreate?: Prisma.OrganizationTypeCreateOrConnectWithoutDocumentApprovalsInput;
506
+ upsert?: Prisma.OrganizationTypeUpsertWithoutDocumentApprovalsInput;
507
+ connect?: Prisma.OrganizationTypeWhereUniqueInput;
508
+ update?: Prisma.XOR<Prisma.XOR<Prisma.OrganizationTypeUpdateToOneWithWhereWithoutDocumentApprovalsInput, Prisma.OrganizationTypeUpdateWithoutDocumentApprovalsInput>, Prisma.OrganizationTypeUncheckedUpdateWithoutDocumentApprovalsInput>;
509
+ };
510
+ export type OrganizationTypeCreateWithoutOrganizationsInput = {
511
+ id?: string;
512
+ code: string;
513
+ name: string;
514
+ description?: string | null;
515
+ isSystemType?: boolean;
516
+ createdAt?: Date | string;
517
+ updatedAt?: Date | string;
518
+ tenant: Prisma.TenantCreateNestedOneWithoutOrganizationTypesInput;
519
+ applicationOrganizations?: Prisma.ApplicationOrganizationCreateNestedManyWithoutAssignedAsTypeInput;
520
+ approvalStages?: Prisma.ApprovalStageCreateNestedManyWithoutOrganizationTypeInput;
521
+ documentReviews?: Prisma.DocumentReviewCreateNestedManyWithoutOrganizationTypeInput;
522
+ approvalStageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutOrganizationTypeInput;
523
+ documentApprovals?: Prisma.DocumentApprovalCreateNestedManyWithoutOrganizationTypeInput;
524
+ };
525
+ export type OrganizationTypeUncheckedCreateWithoutOrganizationsInput = {
526
+ id?: string;
527
+ tenantId: string;
528
+ code: string;
529
+ name: string;
530
+ description?: string | null;
531
+ isSystemType?: boolean;
532
+ createdAt?: Date | string;
533
+ updatedAt?: Date | string;
534
+ applicationOrganizations?: Prisma.ApplicationOrganizationUncheckedCreateNestedManyWithoutAssignedAsTypeInput;
535
+ approvalStages?: Prisma.ApprovalStageUncheckedCreateNestedManyWithoutOrganizationTypeInput;
536
+ documentReviews?: Prisma.DocumentReviewUncheckedCreateNestedManyWithoutOrganizationTypeInput;
537
+ approvalStageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutOrganizationTypeInput;
538
+ documentApprovals?: Prisma.DocumentApprovalUncheckedCreateNestedManyWithoutOrganizationTypeInput;
539
+ };
540
+ export type OrganizationTypeCreateOrConnectWithoutOrganizationsInput = {
541
+ where: Prisma.OrganizationTypeWhereUniqueInput;
542
+ create: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutOrganizationsInput, Prisma.OrganizationTypeUncheckedCreateWithoutOrganizationsInput>;
543
+ };
544
+ export type OrganizationTypeUpsertWithoutOrganizationsInput = {
545
+ update: Prisma.XOR<Prisma.OrganizationTypeUpdateWithoutOrganizationsInput, Prisma.OrganizationTypeUncheckedUpdateWithoutOrganizationsInput>;
546
+ create: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutOrganizationsInput, Prisma.OrganizationTypeUncheckedCreateWithoutOrganizationsInput>;
547
+ where?: Prisma.OrganizationTypeWhereInput;
548
+ };
549
+ export type OrganizationTypeUpdateToOneWithWhereWithoutOrganizationsInput = {
550
+ where?: Prisma.OrganizationTypeWhereInput;
551
+ data: Prisma.XOR<Prisma.OrganizationTypeUpdateWithoutOrganizationsInput, Prisma.OrganizationTypeUncheckedUpdateWithoutOrganizationsInput>;
552
+ };
553
+ export type OrganizationTypeUpdateWithoutOrganizationsInput = {
554
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
555
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
556
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
557
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
558
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
559
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
560
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
561
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutOrganizationTypesNestedInput;
562
+ applicationOrganizations?: Prisma.ApplicationOrganizationUpdateManyWithoutAssignedAsTypeNestedInput;
563
+ approvalStages?: Prisma.ApprovalStageUpdateManyWithoutOrganizationTypeNestedInput;
564
+ documentReviews?: Prisma.DocumentReviewUpdateManyWithoutOrganizationTypeNestedInput;
565
+ approvalStageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutOrganizationTypeNestedInput;
566
+ documentApprovals?: Prisma.DocumentApprovalUpdateManyWithoutOrganizationTypeNestedInput;
567
+ };
568
+ export type OrganizationTypeUncheckedUpdateWithoutOrganizationsInput = {
569
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
570
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
571
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
572
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
573
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
574
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
575
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
576
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
577
+ applicationOrganizations?: Prisma.ApplicationOrganizationUncheckedUpdateManyWithoutAssignedAsTypeNestedInput;
578
+ approvalStages?: Prisma.ApprovalStageUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
579
+ documentReviews?: Prisma.DocumentReviewUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
580
+ approvalStageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
581
+ documentApprovals?: Prisma.DocumentApprovalUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
582
+ };
583
+ export type OrganizationTypeCreateWithoutTenantInput = {
584
+ id?: string;
585
+ code: string;
586
+ name: string;
587
+ description?: string | null;
588
+ isSystemType?: boolean;
589
+ createdAt?: Date | string;
590
+ updatedAt?: Date | string;
591
+ organizations?: Prisma.OrganizationTypeAssignmentCreateNestedManyWithoutOrgTypeInput;
592
+ applicationOrganizations?: Prisma.ApplicationOrganizationCreateNestedManyWithoutAssignedAsTypeInput;
593
+ approvalStages?: Prisma.ApprovalStageCreateNestedManyWithoutOrganizationTypeInput;
594
+ documentReviews?: Prisma.DocumentReviewCreateNestedManyWithoutOrganizationTypeInput;
595
+ approvalStageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutOrganizationTypeInput;
596
+ documentApprovals?: Prisma.DocumentApprovalCreateNestedManyWithoutOrganizationTypeInput;
597
+ };
598
+ export type OrganizationTypeUncheckedCreateWithoutTenantInput = {
599
+ id?: string;
600
+ code: string;
601
+ name: string;
602
+ description?: string | null;
603
+ isSystemType?: boolean;
604
+ createdAt?: Date | string;
605
+ updatedAt?: Date | string;
606
+ organizations?: Prisma.OrganizationTypeAssignmentUncheckedCreateNestedManyWithoutOrgTypeInput;
607
+ applicationOrganizations?: Prisma.ApplicationOrganizationUncheckedCreateNestedManyWithoutAssignedAsTypeInput;
608
+ approvalStages?: Prisma.ApprovalStageUncheckedCreateNestedManyWithoutOrganizationTypeInput;
609
+ documentReviews?: Prisma.DocumentReviewUncheckedCreateNestedManyWithoutOrganizationTypeInput;
610
+ approvalStageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutOrganizationTypeInput;
611
+ documentApprovals?: Prisma.DocumentApprovalUncheckedCreateNestedManyWithoutOrganizationTypeInput;
612
+ };
613
+ export type OrganizationTypeCreateOrConnectWithoutTenantInput = {
614
+ where: Prisma.OrganizationTypeWhereUniqueInput;
615
+ create: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutTenantInput, Prisma.OrganizationTypeUncheckedCreateWithoutTenantInput>;
616
+ };
617
+ export type OrganizationTypeCreateManyTenantInputEnvelope = {
618
+ data: Prisma.OrganizationTypeCreateManyTenantInput | Prisma.OrganizationTypeCreateManyTenantInput[];
619
+ skipDuplicates?: boolean;
620
+ };
621
+ export type OrganizationTypeUpsertWithWhereUniqueWithoutTenantInput = {
622
+ where: Prisma.OrganizationTypeWhereUniqueInput;
623
+ update: Prisma.XOR<Prisma.OrganizationTypeUpdateWithoutTenantInput, Prisma.OrganizationTypeUncheckedUpdateWithoutTenantInput>;
624
+ create: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutTenantInput, Prisma.OrganizationTypeUncheckedCreateWithoutTenantInput>;
625
+ };
626
+ export type OrganizationTypeUpdateWithWhereUniqueWithoutTenantInput = {
627
+ where: Prisma.OrganizationTypeWhereUniqueInput;
628
+ data: Prisma.XOR<Prisma.OrganizationTypeUpdateWithoutTenantInput, Prisma.OrganizationTypeUncheckedUpdateWithoutTenantInput>;
629
+ };
630
+ export type OrganizationTypeUpdateManyWithWhereWithoutTenantInput = {
631
+ where: Prisma.OrganizationTypeScalarWhereInput;
632
+ data: Prisma.XOR<Prisma.OrganizationTypeUpdateManyMutationInput, Prisma.OrganizationTypeUncheckedUpdateManyWithoutTenantInput>;
633
+ };
634
+ export type OrganizationTypeScalarWhereInput = {
635
+ AND?: Prisma.OrganizationTypeScalarWhereInput | Prisma.OrganizationTypeScalarWhereInput[];
636
+ OR?: Prisma.OrganizationTypeScalarWhereInput[];
637
+ NOT?: Prisma.OrganizationTypeScalarWhereInput | Prisma.OrganizationTypeScalarWhereInput[];
638
+ id?: Prisma.StringFilter<"OrganizationType"> | string;
639
+ tenantId?: Prisma.StringFilter<"OrganizationType"> | string;
640
+ code?: Prisma.StringFilter<"OrganizationType"> | string;
641
+ name?: Prisma.StringFilter<"OrganizationType"> | string;
642
+ description?: Prisma.StringNullableFilter<"OrganizationType"> | string | null;
643
+ isSystemType?: Prisma.BoolFilter<"OrganizationType"> | boolean;
644
+ createdAt?: Prisma.DateTimeFilter<"OrganizationType"> | Date | string;
645
+ updatedAt?: Prisma.DateTimeFilter<"OrganizationType"> | Date | string;
646
+ };
647
+ export type OrganizationTypeCreateWithoutApprovalStagesInput = {
648
+ id?: string;
649
+ code: string;
650
+ name: string;
651
+ description?: string | null;
652
+ isSystemType?: boolean;
653
+ createdAt?: Date | string;
654
+ updatedAt?: Date | string;
655
+ tenant: Prisma.TenantCreateNestedOneWithoutOrganizationTypesInput;
656
+ organizations?: Prisma.OrganizationTypeAssignmentCreateNestedManyWithoutOrgTypeInput;
657
+ applicationOrganizations?: Prisma.ApplicationOrganizationCreateNestedManyWithoutAssignedAsTypeInput;
658
+ documentReviews?: Prisma.DocumentReviewCreateNestedManyWithoutOrganizationTypeInput;
659
+ approvalStageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutOrganizationTypeInput;
660
+ documentApprovals?: Prisma.DocumentApprovalCreateNestedManyWithoutOrganizationTypeInput;
661
+ };
662
+ export type OrganizationTypeUncheckedCreateWithoutApprovalStagesInput = {
663
+ id?: string;
664
+ tenantId: string;
665
+ code: string;
666
+ name: string;
667
+ description?: string | null;
668
+ isSystemType?: boolean;
669
+ createdAt?: Date | string;
670
+ updatedAt?: Date | string;
671
+ organizations?: Prisma.OrganizationTypeAssignmentUncheckedCreateNestedManyWithoutOrgTypeInput;
672
+ applicationOrganizations?: Prisma.ApplicationOrganizationUncheckedCreateNestedManyWithoutAssignedAsTypeInput;
673
+ documentReviews?: Prisma.DocumentReviewUncheckedCreateNestedManyWithoutOrganizationTypeInput;
674
+ approvalStageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutOrganizationTypeInput;
675
+ documentApprovals?: Prisma.DocumentApprovalUncheckedCreateNestedManyWithoutOrganizationTypeInput;
676
+ };
677
+ export type OrganizationTypeCreateOrConnectWithoutApprovalStagesInput = {
678
+ where: Prisma.OrganizationTypeWhereUniqueInput;
679
+ create: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutApprovalStagesInput, Prisma.OrganizationTypeUncheckedCreateWithoutApprovalStagesInput>;
680
+ };
681
+ export type OrganizationTypeUpsertWithoutApprovalStagesInput = {
682
+ update: Prisma.XOR<Prisma.OrganizationTypeUpdateWithoutApprovalStagesInput, Prisma.OrganizationTypeUncheckedUpdateWithoutApprovalStagesInput>;
683
+ create: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutApprovalStagesInput, Prisma.OrganizationTypeUncheckedCreateWithoutApprovalStagesInput>;
684
+ where?: Prisma.OrganizationTypeWhereInput;
685
+ };
686
+ export type OrganizationTypeUpdateToOneWithWhereWithoutApprovalStagesInput = {
687
+ where?: Prisma.OrganizationTypeWhereInput;
688
+ data: Prisma.XOR<Prisma.OrganizationTypeUpdateWithoutApprovalStagesInput, Prisma.OrganizationTypeUncheckedUpdateWithoutApprovalStagesInput>;
689
+ };
690
+ export type OrganizationTypeUpdateWithoutApprovalStagesInput = {
691
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
692
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
693
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
694
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
695
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
696
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
697
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
698
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutOrganizationTypesNestedInput;
699
+ organizations?: Prisma.OrganizationTypeAssignmentUpdateManyWithoutOrgTypeNestedInput;
700
+ applicationOrganizations?: Prisma.ApplicationOrganizationUpdateManyWithoutAssignedAsTypeNestedInput;
701
+ documentReviews?: Prisma.DocumentReviewUpdateManyWithoutOrganizationTypeNestedInput;
702
+ approvalStageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutOrganizationTypeNestedInput;
703
+ documentApprovals?: Prisma.DocumentApprovalUpdateManyWithoutOrganizationTypeNestedInput;
704
+ };
705
+ export type OrganizationTypeUncheckedUpdateWithoutApprovalStagesInput = {
706
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
707
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
708
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
709
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
710
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
711
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
712
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
713
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
714
+ organizations?: Prisma.OrganizationTypeAssignmentUncheckedUpdateManyWithoutOrgTypeNestedInput;
715
+ applicationOrganizations?: Prisma.ApplicationOrganizationUncheckedUpdateManyWithoutAssignedAsTypeNestedInput;
716
+ documentReviews?: Prisma.DocumentReviewUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
717
+ approvalStageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
718
+ documentApprovals?: Prisma.DocumentApprovalUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
719
+ };
720
+ export type OrganizationTypeCreateWithoutApplicationOrganizationsInput = {
721
+ id?: string;
722
+ code: string;
723
+ name: string;
724
+ description?: string | null;
725
+ isSystemType?: boolean;
726
+ createdAt?: Date | string;
727
+ updatedAt?: Date | string;
728
+ tenant: Prisma.TenantCreateNestedOneWithoutOrganizationTypesInput;
729
+ organizations?: Prisma.OrganizationTypeAssignmentCreateNestedManyWithoutOrgTypeInput;
730
+ approvalStages?: Prisma.ApprovalStageCreateNestedManyWithoutOrganizationTypeInput;
731
+ documentReviews?: Prisma.DocumentReviewCreateNestedManyWithoutOrganizationTypeInput;
732
+ approvalStageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutOrganizationTypeInput;
733
+ documentApprovals?: Prisma.DocumentApprovalCreateNestedManyWithoutOrganizationTypeInput;
734
+ };
735
+ export type OrganizationTypeUncheckedCreateWithoutApplicationOrganizationsInput = {
736
+ id?: string;
737
+ tenantId: string;
738
+ code: string;
739
+ name: string;
740
+ description?: string | null;
741
+ isSystemType?: boolean;
742
+ createdAt?: Date | string;
743
+ updatedAt?: Date | string;
744
+ organizations?: Prisma.OrganizationTypeAssignmentUncheckedCreateNestedManyWithoutOrgTypeInput;
745
+ approvalStages?: Prisma.ApprovalStageUncheckedCreateNestedManyWithoutOrganizationTypeInput;
746
+ documentReviews?: Prisma.DocumentReviewUncheckedCreateNestedManyWithoutOrganizationTypeInput;
747
+ approvalStageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutOrganizationTypeInput;
748
+ documentApprovals?: Prisma.DocumentApprovalUncheckedCreateNestedManyWithoutOrganizationTypeInput;
749
+ };
750
+ export type OrganizationTypeCreateOrConnectWithoutApplicationOrganizationsInput = {
751
+ where: Prisma.OrganizationTypeWhereUniqueInput;
752
+ create: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutApplicationOrganizationsInput, Prisma.OrganizationTypeUncheckedCreateWithoutApplicationOrganizationsInput>;
753
+ };
754
+ export type OrganizationTypeUpsertWithoutApplicationOrganizationsInput = {
755
+ update: Prisma.XOR<Prisma.OrganizationTypeUpdateWithoutApplicationOrganizationsInput, Prisma.OrganizationTypeUncheckedUpdateWithoutApplicationOrganizationsInput>;
756
+ create: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutApplicationOrganizationsInput, Prisma.OrganizationTypeUncheckedCreateWithoutApplicationOrganizationsInput>;
757
+ where?: Prisma.OrganizationTypeWhereInput;
758
+ };
759
+ export type OrganizationTypeUpdateToOneWithWhereWithoutApplicationOrganizationsInput = {
760
+ where?: Prisma.OrganizationTypeWhereInput;
761
+ data: Prisma.XOR<Prisma.OrganizationTypeUpdateWithoutApplicationOrganizationsInput, Prisma.OrganizationTypeUncheckedUpdateWithoutApplicationOrganizationsInput>;
762
+ };
763
+ export type OrganizationTypeUpdateWithoutApplicationOrganizationsInput = {
764
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
765
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
766
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
767
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
768
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
769
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
770
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
771
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutOrganizationTypesNestedInput;
772
+ organizations?: Prisma.OrganizationTypeAssignmentUpdateManyWithoutOrgTypeNestedInput;
773
+ approvalStages?: Prisma.ApprovalStageUpdateManyWithoutOrganizationTypeNestedInput;
774
+ documentReviews?: Prisma.DocumentReviewUpdateManyWithoutOrganizationTypeNestedInput;
775
+ approvalStageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutOrganizationTypeNestedInput;
776
+ documentApprovals?: Prisma.DocumentApprovalUpdateManyWithoutOrganizationTypeNestedInput;
777
+ };
778
+ export type OrganizationTypeUncheckedUpdateWithoutApplicationOrganizationsInput = {
779
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
780
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
781
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
782
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
783
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
784
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
785
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
786
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
787
+ organizations?: Prisma.OrganizationTypeAssignmentUncheckedUpdateManyWithoutOrgTypeNestedInput;
788
+ approvalStages?: Prisma.ApprovalStageUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
789
+ documentReviews?: Prisma.DocumentReviewUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
790
+ approvalStageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
791
+ documentApprovals?: Prisma.DocumentApprovalUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
792
+ };
793
+ export type OrganizationTypeCreateWithoutDocumentReviewsInput = {
794
+ id?: string;
795
+ code: string;
796
+ name: string;
797
+ description?: string | null;
798
+ isSystemType?: boolean;
799
+ createdAt?: Date | string;
800
+ updatedAt?: Date | string;
801
+ tenant: Prisma.TenantCreateNestedOneWithoutOrganizationTypesInput;
802
+ organizations?: Prisma.OrganizationTypeAssignmentCreateNestedManyWithoutOrgTypeInput;
803
+ applicationOrganizations?: Prisma.ApplicationOrganizationCreateNestedManyWithoutAssignedAsTypeInput;
804
+ approvalStages?: Prisma.ApprovalStageCreateNestedManyWithoutOrganizationTypeInput;
805
+ approvalStageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutOrganizationTypeInput;
806
+ documentApprovals?: Prisma.DocumentApprovalCreateNestedManyWithoutOrganizationTypeInput;
807
+ };
808
+ export type OrganizationTypeUncheckedCreateWithoutDocumentReviewsInput = {
809
+ id?: string;
810
+ tenantId: string;
811
+ code: string;
812
+ name: string;
813
+ description?: string | null;
814
+ isSystemType?: boolean;
815
+ createdAt?: Date | string;
816
+ updatedAt?: Date | string;
817
+ organizations?: Prisma.OrganizationTypeAssignmentUncheckedCreateNestedManyWithoutOrgTypeInput;
818
+ applicationOrganizations?: Prisma.ApplicationOrganizationUncheckedCreateNestedManyWithoutAssignedAsTypeInput;
819
+ approvalStages?: Prisma.ApprovalStageUncheckedCreateNestedManyWithoutOrganizationTypeInput;
820
+ approvalStageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutOrganizationTypeInput;
821
+ documentApprovals?: Prisma.DocumentApprovalUncheckedCreateNestedManyWithoutOrganizationTypeInput;
822
+ };
823
+ export type OrganizationTypeCreateOrConnectWithoutDocumentReviewsInput = {
824
+ where: Prisma.OrganizationTypeWhereUniqueInput;
825
+ create: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutDocumentReviewsInput, Prisma.OrganizationTypeUncheckedCreateWithoutDocumentReviewsInput>;
826
+ };
827
+ export type OrganizationTypeUpsertWithoutDocumentReviewsInput = {
828
+ update: Prisma.XOR<Prisma.OrganizationTypeUpdateWithoutDocumentReviewsInput, Prisma.OrganizationTypeUncheckedUpdateWithoutDocumentReviewsInput>;
829
+ create: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutDocumentReviewsInput, Prisma.OrganizationTypeUncheckedCreateWithoutDocumentReviewsInput>;
830
+ where?: Prisma.OrganizationTypeWhereInput;
831
+ };
832
+ export type OrganizationTypeUpdateToOneWithWhereWithoutDocumentReviewsInput = {
833
+ where?: Prisma.OrganizationTypeWhereInput;
834
+ data: Prisma.XOR<Prisma.OrganizationTypeUpdateWithoutDocumentReviewsInput, Prisma.OrganizationTypeUncheckedUpdateWithoutDocumentReviewsInput>;
835
+ };
836
+ export type OrganizationTypeUpdateWithoutDocumentReviewsInput = {
837
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
838
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
839
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
840
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
841
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
842
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
843
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
844
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutOrganizationTypesNestedInput;
845
+ organizations?: Prisma.OrganizationTypeAssignmentUpdateManyWithoutOrgTypeNestedInput;
846
+ applicationOrganizations?: Prisma.ApplicationOrganizationUpdateManyWithoutAssignedAsTypeNestedInput;
847
+ approvalStages?: Prisma.ApprovalStageUpdateManyWithoutOrganizationTypeNestedInput;
848
+ approvalStageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutOrganizationTypeNestedInput;
849
+ documentApprovals?: Prisma.DocumentApprovalUpdateManyWithoutOrganizationTypeNestedInput;
850
+ };
851
+ export type OrganizationTypeUncheckedUpdateWithoutDocumentReviewsInput = {
852
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
853
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
854
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
855
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
856
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
857
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
858
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
859
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
860
+ organizations?: Prisma.OrganizationTypeAssignmentUncheckedUpdateManyWithoutOrgTypeNestedInput;
861
+ applicationOrganizations?: Prisma.ApplicationOrganizationUncheckedUpdateManyWithoutAssignedAsTypeNestedInput;
862
+ approvalStages?: Prisma.ApprovalStageUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
863
+ approvalStageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
864
+ documentApprovals?: Prisma.DocumentApprovalUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
865
+ };
866
+ export type OrganizationTypeCreateWithoutApprovalStageProgressInput = {
867
+ id?: string;
868
+ code: string;
869
+ name: string;
870
+ description?: string | null;
871
+ isSystemType?: boolean;
872
+ createdAt?: Date | string;
873
+ updatedAt?: Date | string;
874
+ tenant: Prisma.TenantCreateNestedOneWithoutOrganizationTypesInput;
875
+ organizations?: Prisma.OrganizationTypeAssignmentCreateNestedManyWithoutOrgTypeInput;
876
+ applicationOrganizations?: Prisma.ApplicationOrganizationCreateNestedManyWithoutAssignedAsTypeInput;
877
+ approvalStages?: Prisma.ApprovalStageCreateNestedManyWithoutOrganizationTypeInput;
878
+ documentReviews?: Prisma.DocumentReviewCreateNestedManyWithoutOrganizationTypeInput;
879
+ documentApprovals?: Prisma.DocumentApprovalCreateNestedManyWithoutOrganizationTypeInput;
880
+ };
881
+ export type OrganizationTypeUncheckedCreateWithoutApprovalStageProgressInput = {
882
+ id?: string;
883
+ tenantId: string;
884
+ code: string;
885
+ name: string;
886
+ description?: string | null;
887
+ isSystemType?: boolean;
888
+ createdAt?: Date | string;
889
+ updatedAt?: Date | string;
890
+ organizations?: Prisma.OrganizationTypeAssignmentUncheckedCreateNestedManyWithoutOrgTypeInput;
891
+ applicationOrganizations?: Prisma.ApplicationOrganizationUncheckedCreateNestedManyWithoutAssignedAsTypeInput;
892
+ approvalStages?: Prisma.ApprovalStageUncheckedCreateNestedManyWithoutOrganizationTypeInput;
893
+ documentReviews?: Prisma.DocumentReviewUncheckedCreateNestedManyWithoutOrganizationTypeInput;
894
+ documentApprovals?: Prisma.DocumentApprovalUncheckedCreateNestedManyWithoutOrganizationTypeInput;
895
+ };
896
+ export type OrganizationTypeCreateOrConnectWithoutApprovalStageProgressInput = {
897
+ where: Prisma.OrganizationTypeWhereUniqueInput;
898
+ create: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutApprovalStageProgressInput, Prisma.OrganizationTypeUncheckedCreateWithoutApprovalStageProgressInput>;
899
+ };
900
+ export type OrganizationTypeUpsertWithoutApprovalStageProgressInput = {
901
+ update: Prisma.XOR<Prisma.OrganizationTypeUpdateWithoutApprovalStageProgressInput, Prisma.OrganizationTypeUncheckedUpdateWithoutApprovalStageProgressInput>;
902
+ create: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutApprovalStageProgressInput, Prisma.OrganizationTypeUncheckedCreateWithoutApprovalStageProgressInput>;
903
+ where?: Prisma.OrganizationTypeWhereInput;
904
+ };
905
+ export type OrganizationTypeUpdateToOneWithWhereWithoutApprovalStageProgressInput = {
906
+ where?: Prisma.OrganizationTypeWhereInput;
907
+ data: Prisma.XOR<Prisma.OrganizationTypeUpdateWithoutApprovalStageProgressInput, Prisma.OrganizationTypeUncheckedUpdateWithoutApprovalStageProgressInput>;
908
+ };
909
+ export type OrganizationTypeUpdateWithoutApprovalStageProgressInput = {
910
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
911
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
912
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
913
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
914
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
915
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
916
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
917
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutOrganizationTypesNestedInput;
918
+ organizations?: Prisma.OrganizationTypeAssignmentUpdateManyWithoutOrgTypeNestedInput;
919
+ applicationOrganizations?: Prisma.ApplicationOrganizationUpdateManyWithoutAssignedAsTypeNestedInput;
920
+ approvalStages?: Prisma.ApprovalStageUpdateManyWithoutOrganizationTypeNestedInput;
921
+ documentReviews?: Prisma.DocumentReviewUpdateManyWithoutOrganizationTypeNestedInput;
922
+ documentApprovals?: Prisma.DocumentApprovalUpdateManyWithoutOrganizationTypeNestedInput;
923
+ };
924
+ export type OrganizationTypeUncheckedUpdateWithoutApprovalStageProgressInput = {
925
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
926
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
927
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
928
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
929
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
930
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
931
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
932
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
933
+ organizations?: Prisma.OrganizationTypeAssignmentUncheckedUpdateManyWithoutOrgTypeNestedInput;
934
+ applicationOrganizations?: Prisma.ApplicationOrganizationUncheckedUpdateManyWithoutAssignedAsTypeNestedInput;
935
+ approvalStages?: Prisma.ApprovalStageUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
936
+ documentReviews?: Prisma.DocumentReviewUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
937
+ documentApprovals?: Prisma.DocumentApprovalUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
938
+ };
939
+ export type OrganizationTypeCreateWithoutDocumentApprovalsInput = {
940
+ id?: string;
941
+ code: string;
942
+ name: string;
943
+ description?: string | null;
944
+ isSystemType?: boolean;
945
+ createdAt?: Date | string;
946
+ updatedAt?: Date | string;
947
+ tenant: Prisma.TenantCreateNestedOneWithoutOrganizationTypesInput;
948
+ organizations?: Prisma.OrganizationTypeAssignmentCreateNestedManyWithoutOrgTypeInput;
949
+ applicationOrganizations?: Prisma.ApplicationOrganizationCreateNestedManyWithoutAssignedAsTypeInput;
950
+ approvalStages?: Prisma.ApprovalStageCreateNestedManyWithoutOrganizationTypeInput;
951
+ documentReviews?: Prisma.DocumentReviewCreateNestedManyWithoutOrganizationTypeInput;
952
+ approvalStageProgress?: Prisma.ApprovalStageProgressCreateNestedManyWithoutOrganizationTypeInput;
953
+ };
954
+ export type OrganizationTypeUncheckedCreateWithoutDocumentApprovalsInput = {
955
+ id?: string;
956
+ tenantId: string;
957
+ code: string;
958
+ name: string;
959
+ description?: string | null;
960
+ isSystemType?: boolean;
961
+ createdAt?: Date | string;
962
+ updatedAt?: Date | string;
963
+ organizations?: Prisma.OrganizationTypeAssignmentUncheckedCreateNestedManyWithoutOrgTypeInput;
964
+ applicationOrganizations?: Prisma.ApplicationOrganizationUncheckedCreateNestedManyWithoutAssignedAsTypeInput;
965
+ approvalStages?: Prisma.ApprovalStageUncheckedCreateNestedManyWithoutOrganizationTypeInput;
966
+ documentReviews?: Prisma.DocumentReviewUncheckedCreateNestedManyWithoutOrganizationTypeInput;
967
+ approvalStageProgress?: Prisma.ApprovalStageProgressUncheckedCreateNestedManyWithoutOrganizationTypeInput;
968
+ };
969
+ export type OrganizationTypeCreateOrConnectWithoutDocumentApprovalsInput = {
970
+ where: Prisma.OrganizationTypeWhereUniqueInput;
971
+ create: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutDocumentApprovalsInput, Prisma.OrganizationTypeUncheckedCreateWithoutDocumentApprovalsInput>;
972
+ };
973
+ export type OrganizationTypeUpsertWithoutDocumentApprovalsInput = {
974
+ update: Prisma.XOR<Prisma.OrganizationTypeUpdateWithoutDocumentApprovalsInput, Prisma.OrganizationTypeUncheckedUpdateWithoutDocumentApprovalsInput>;
975
+ create: Prisma.XOR<Prisma.OrganizationTypeCreateWithoutDocumentApprovalsInput, Prisma.OrganizationTypeUncheckedCreateWithoutDocumentApprovalsInput>;
976
+ where?: Prisma.OrganizationTypeWhereInput;
977
+ };
978
+ export type OrganizationTypeUpdateToOneWithWhereWithoutDocumentApprovalsInput = {
979
+ where?: Prisma.OrganizationTypeWhereInput;
980
+ data: Prisma.XOR<Prisma.OrganizationTypeUpdateWithoutDocumentApprovalsInput, Prisma.OrganizationTypeUncheckedUpdateWithoutDocumentApprovalsInput>;
981
+ };
982
+ export type OrganizationTypeUpdateWithoutDocumentApprovalsInput = {
983
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
984
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
985
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
986
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
987
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
988
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
989
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
990
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutOrganizationTypesNestedInput;
991
+ organizations?: Prisma.OrganizationTypeAssignmentUpdateManyWithoutOrgTypeNestedInput;
992
+ applicationOrganizations?: Prisma.ApplicationOrganizationUpdateManyWithoutAssignedAsTypeNestedInput;
993
+ approvalStages?: Prisma.ApprovalStageUpdateManyWithoutOrganizationTypeNestedInput;
994
+ documentReviews?: Prisma.DocumentReviewUpdateManyWithoutOrganizationTypeNestedInput;
995
+ approvalStageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutOrganizationTypeNestedInput;
996
+ };
997
+ export type OrganizationTypeUncheckedUpdateWithoutDocumentApprovalsInput = {
998
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
999
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
1000
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
1001
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1002
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1003
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1004
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1005
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1006
+ organizations?: Prisma.OrganizationTypeAssignmentUncheckedUpdateManyWithoutOrgTypeNestedInput;
1007
+ applicationOrganizations?: Prisma.ApplicationOrganizationUncheckedUpdateManyWithoutAssignedAsTypeNestedInput;
1008
+ approvalStages?: Prisma.ApprovalStageUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
1009
+ documentReviews?: Prisma.DocumentReviewUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
1010
+ approvalStageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
1011
+ };
1012
+ export type OrganizationTypeCreateManyTenantInput = {
1013
+ id?: string;
1014
+ code: string;
1015
+ name: string;
1016
+ description?: string | null;
1017
+ isSystemType?: boolean;
1018
+ createdAt?: Date | string;
1019
+ updatedAt?: Date | string;
1020
+ };
1021
+ export type OrganizationTypeUpdateWithoutTenantInput = {
1022
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1023
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
1024
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1025
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1026
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1027
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1028
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1029
+ organizations?: Prisma.OrganizationTypeAssignmentUpdateManyWithoutOrgTypeNestedInput;
1030
+ applicationOrganizations?: Prisma.ApplicationOrganizationUpdateManyWithoutAssignedAsTypeNestedInput;
1031
+ approvalStages?: Prisma.ApprovalStageUpdateManyWithoutOrganizationTypeNestedInput;
1032
+ documentReviews?: Prisma.DocumentReviewUpdateManyWithoutOrganizationTypeNestedInput;
1033
+ approvalStageProgress?: Prisma.ApprovalStageProgressUpdateManyWithoutOrganizationTypeNestedInput;
1034
+ documentApprovals?: Prisma.DocumentApprovalUpdateManyWithoutOrganizationTypeNestedInput;
1035
+ };
1036
+ export type OrganizationTypeUncheckedUpdateWithoutTenantInput = {
1037
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1038
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
1039
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1040
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1041
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1042
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1043
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1044
+ organizations?: Prisma.OrganizationTypeAssignmentUncheckedUpdateManyWithoutOrgTypeNestedInput;
1045
+ applicationOrganizations?: Prisma.ApplicationOrganizationUncheckedUpdateManyWithoutAssignedAsTypeNestedInput;
1046
+ approvalStages?: Prisma.ApprovalStageUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
1047
+ documentReviews?: Prisma.DocumentReviewUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
1048
+ approvalStageProgress?: Prisma.ApprovalStageProgressUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
1049
+ documentApprovals?: Prisma.DocumentApprovalUncheckedUpdateManyWithoutOrganizationTypeNestedInput;
1050
+ };
1051
+ export type OrganizationTypeUncheckedUpdateManyWithoutTenantInput = {
1052
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1053
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
1054
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1055
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1056
+ isSystemType?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1057
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1058
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1059
+ };
1060
+ /**
1061
+ * Count Type OrganizationTypeCountOutputType
1062
+ */
1063
+ export type OrganizationTypeCountOutputType = {
1064
+ organizations: number;
1065
+ applicationOrganizations: number;
1066
+ approvalStages: number;
1067
+ documentReviews: number;
1068
+ approvalStageProgress: number;
1069
+ documentApprovals: number;
1070
+ };
1071
+ export type OrganizationTypeCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1072
+ organizations?: boolean | OrganizationTypeCountOutputTypeCountOrganizationsArgs;
1073
+ applicationOrganizations?: boolean | OrganizationTypeCountOutputTypeCountApplicationOrganizationsArgs;
1074
+ approvalStages?: boolean | OrganizationTypeCountOutputTypeCountApprovalStagesArgs;
1075
+ documentReviews?: boolean | OrganizationTypeCountOutputTypeCountDocumentReviewsArgs;
1076
+ approvalStageProgress?: boolean | OrganizationTypeCountOutputTypeCountApprovalStageProgressArgs;
1077
+ documentApprovals?: boolean | OrganizationTypeCountOutputTypeCountDocumentApprovalsArgs;
1078
+ };
1079
+ /**
1080
+ * OrganizationTypeCountOutputType without action
1081
+ */
1082
+ export type OrganizationTypeCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1083
+ /**
1084
+ * Select specific fields to fetch from the OrganizationTypeCountOutputType
1085
+ */
1086
+ select?: Prisma.OrganizationTypeCountOutputTypeSelect<ExtArgs> | null;
1087
+ };
1088
+ /**
1089
+ * OrganizationTypeCountOutputType without action
1090
+ */
1091
+ export type OrganizationTypeCountOutputTypeCountOrganizationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1092
+ where?: Prisma.OrganizationTypeAssignmentWhereInput;
1093
+ };
1094
+ /**
1095
+ * OrganizationTypeCountOutputType without action
1096
+ */
1097
+ export type OrganizationTypeCountOutputTypeCountApplicationOrganizationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1098
+ where?: Prisma.ApplicationOrganizationWhereInput;
1099
+ };
1100
+ /**
1101
+ * OrganizationTypeCountOutputType without action
1102
+ */
1103
+ export type OrganizationTypeCountOutputTypeCountApprovalStagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1104
+ where?: Prisma.ApprovalStageWhereInput;
1105
+ };
1106
+ /**
1107
+ * OrganizationTypeCountOutputType without action
1108
+ */
1109
+ export type OrganizationTypeCountOutputTypeCountDocumentReviewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1110
+ where?: Prisma.DocumentReviewWhereInput;
1111
+ };
1112
+ /**
1113
+ * OrganizationTypeCountOutputType without action
1114
+ */
1115
+ export type OrganizationTypeCountOutputTypeCountApprovalStageProgressArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1116
+ where?: Prisma.ApprovalStageProgressWhereInput;
1117
+ };
1118
+ /**
1119
+ * OrganizationTypeCountOutputType without action
1120
+ */
1121
+ export type OrganizationTypeCountOutputTypeCountDocumentApprovalsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1122
+ where?: Prisma.DocumentApprovalWhereInput;
1123
+ };
1124
+ export type OrganizationTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1125
+ id?: boolean;
1126
+ tenantId?: boolean;
1127
+ code?: boolean;
1128
+ name?: boolean;
1129
+ description?: boolean;
1130
+ isSystemType?: boolean;
1131
+ createdAt?: boolean;
1132
+ updatedAt?: boolean;
1133
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1134
+ organizations?: boolean | Prisma.OrganizationType$organizationsArgs<ExtArgs>;
1135
+ applicationOrganizations?: boolean | Prisma.OrganizationType$applicationOrganizationsArgs<ExtArgs>;
1136
+ approvalStages?: boolean | Prisma.OrganizationType$approvalStagesArgs<ExtArgs>;
1137
+ documentReviews?: boolean | Prisma.OrganizationType$documentReviewsArgs<ExtArgs>;
1138
+ approvalStageProgress?: boolean | Prisma.OrganizationType$approvalStageProgressArgs<ExtArgs>;
1139
+ documentApprovals?: boolean | Prisma.OrganizationType$documentApprovalsArgs<ExtArgs>;
1140
+ _count?: boolean | Prisma.OrganizationTypeCountOutputTypeDefaultArgs<ExtArgs>;
1141
+ }, ExtArgs["result"]["organizationType"]>;
1142
+ export type OrganizationTypeSelectScalar = {
1143
+ id?: boolean;
1144
+ tenantId?: boolean;
1145
+ code?: boolean;
1146
+ name?: boolean;
1147
+ description?: boolean;
1148
+ isSystemType?: boolean;
1149
+ createdAt?: boolean;
1150
+ updatedAt?: boolean;
1151
+ };
1152
+ export type OrganizationTypeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "code" | "name" | "description" | "isSystemType" | "createdAt" | "updatedAt", ExtArgs["result"]["organizationType"]>;
1153
+ export type OrganizationTypeInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1154
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1155
+ organizations?: boolean | Prisma.OrganizationType$organizationsArgs<ExtArgs>;
1156
+ applicationOrganizations?: boolean | Prisma.OrganizationType$applicationOrganizationsArgs<ExtArgs>;
1157
+ approvalStages?: boolean | Prisma.OrganizationType$approvalStagesArgs<ExtArgs>;
1158
+ documentReviews?: boolean | Prisma.OrganizationType$documentReviewsArgs<ExtArgs>;
1159
+ approvalStageProgress?: boolean | Prisma.OrganizationType$approvalStageProgressArgs<ExtArgs>;
1160
+ documentApprovals?: boolean | Prisma.OrganizationType$documentApprovalsArgs<ExtArgs>;
1161
+ _count?: boolean | Prisma.OrganizationTypeCountOutputTypeDefaultArgs<ExtArgs>;
1162
+ };
1163
+ export type $OrganizationTypePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1164
+ name: "OrganizationType";
1165
+ objects: {
1166
+ tenant: Prisma.$TenantPayload<ExtArgs>;
1167
+ organizations: Prisma.$OrganizationTypeAssignmentPayload<ExtArgs>[];
1168
+ applicationOrganizations: Prisma.$ApplicationOrganizationPayload<ExtArgs>[];
1169
+ approvalStages: Prisma.$ApprovalStagePayload<ExtArgs>[];
1170
+ documentReviews: Prisma.$DocumentReviewPayload<ExtArgs>[];
1171
+ approvalStageProgress: Prisma.$ApprovalStageProgressPayload<ExtArgs>[];
1172
+ documentApprovals: Prisma.$DocumentApprovalPayload<ExtArgs>[];
1173
+ };
1174
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1175
+ id: string;
1176
+ tenantId: string;
1177
+ code: string;
1178
+ name: string;
1179
+ description: string | null;
1180
+ isSystemType: boolean;
1181
+ createdAt: Date;
1182
+ updatedAt: Date;
1183
+ }, ExtArgs["result"]["organizationType"]>;
1184
+ composites: {};
1185
+ };
1186
+ export type OrganizationTypeGetPayload<S extends boolean | null | undefined | OrganizationTypeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$OrganizationTypePayload, S>;
1187
+ export type OrganizationTypeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<OrganizationTypeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1188
+ select?: OrganizationTypeCountAggregateInputType | true;
1189
+ };
1190
+ export interface OrganizationTypeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1191
+ [K: symbol]: {
1192
+ types: Prisma.TypeMap<ExtArgs>['model']['OrganizationType'];
1193
+ meta: {
1194
+ name: 'OrganizationType';
1195
+ };
1196
+ };
1197
+ /**
1198
+ * Find zero or one OrganizationType that matches the filter.
1199
+ * @param {OrganizationTypeFindUniqueArgs} args - Arguments to find a OrganizationType
1200
+ * @example
1201
+ * // Get one OrganizationType
1202
+ * const organizationType = await prisma.organizationType.findUnique({
1203
+ * where: {
1204
+ * // ... provide filter here
1205
+ * }
1206
+ * })
1207
+ */
1208
+ findUnique<T extends OrganizationTypeFindUniqueArgs>(args: Prisma.SelectSubset<T, OrganizationTypeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__OrganizationTypeClient<runtime.Types.Result.GetResult<Prisma.$OrganizationTypePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1209
+ /**
1210
+ * Find one OrganizationType that matches the filter or throw an error with `error.code='P2025'`
1211
+ * if no matches were found.
1212
+ * @param {OrganizationTypeFindUniqueOrThrowArgs} args - Arguments to find a OrganizationType
1213
+ * @example
1214
+ * // Get one OrganizationType
1215
+ * const organizationType = await prisma.organizationType.findUniqueOrThrow({
1216
+ * where: {
1217
+ * // ... provide filter here
1218
+ * }
1219
+ * })
1220
+ */
1221
+ findUniqueOrThrow<T extends OrganizationTypeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, OrganizationTypeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__OrganizationTypeClient<runtime.Types.Result.GetResult<Prisma.$OrganizationTypePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1222
+ /**
1223
+ * Find the first OrganizationType that matches the filter.
1224
+ * Note, that providing `undefined` is treated as the value not being there.
1225
+ * Read more here: https://pris.ly/d/null-undefined
1226
+ * @param {OrganizationTypeFindFirstArgs} args - Arguments to find a OrganizationType
1227
+ * @example
1228
+ * // Get one OrganizationType
1229
+ * const organizationType = await prisma.organizationType.findFirst({
1230
+ * where: {
1231
+ * // ... provide filter here
1232
+ * }
1233
+ * })
1234
+ */
1235
+ findFirst<T extends OrganizationTypeFindFirstArgs>(args?: Prisma.SelectSubset<T, OrganizationTypeFindFirstArgs<ExtArgs>>): Prisma.Prisma__OrganizationTypeClient<runtime.Types.Result.GetResult<Prisma.$OrganizationTypePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1236
+ /**
1237
+ * Find the first OrganizationType that matches the filter or
1238
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1239
+ * Note, that providing `undefined` is treated as the value not being there.
1240
+ * Read more here: https://pris.ly/d/null-undefined
1241
+ * @param {OrganizationTypeFindFirstOrThrowArgs} args - Arguments to find a OrganizationType
1242
+ * @example
1243
+ * // Get one OrganizationType
1244
+ * const organizationType = await prisma.organizationType.findFirstOrThrow({
1245
+ * where: {
1246
+ * // ... provide filter here
1247
+ * }
1248
+ * })
1249
+ */
1250
+ findFirstOrThrow<T extends OrganizationTypeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, OrganizationTypeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__OrganizationTypeClient<runtime.Types.Result.GetResult<Prisma.$OrganizationTypePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1251
+ /**
1252
+ * Find zero or more OrganizationTypes that matches the filter.
1253
+ * Note, that providing `undefined` is treated as the value not being there.
1254
+ * Read more here: https://pris.ly/d/null-undefined
1255
+ * @param {OrganizationTypeFindManyArgs} args - Arguments to filter and select certain fields only.
1256
+ * @example
1257
+ * // Get all OrganizationTypes
1258
+ * const organizationTypes = await prisma.organizationType.findMany()
1259
+ *
1260
+ * // Get first 10 OrganizationTypes
1261
+ * const organizationTypes = await prisma.organizationType.findMany({ take: 10 })
1262
+ *
1263
+ * // Only select the `id`
1264
+ * const organizationTypeWithIdOnly = await prisma.organizationType.findMany({ select: { id: true } })
1265
+ *
1266
+ */
1267
+ findMany<T extends OrganizationTypeFindManyArgs>(args?: Prisma.SelectSubset<T, OrganizationTypeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrganizationTypePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1268
+ /**
1269
+ * Create a OrganizationType.
1270
+ * @param {OrganizationTypeCreateArgs} args - Arguments to create a OrganizationType.
1271
+ * @example
1272
+ * // Create one OrganizationType
1273
+ * const OrganizationType = await prisma.organizationType.create({
1274
+ * data: {
1275
+ * // ... data to create a OrganizationType
1276
+ * }
1277
+ * })
1278
+ *
1279
+ */
1280
+ create<T extends OrganizationTypeCreateArgs>(args: Prisma.SelectSubset<T, OrganizationTypeCreateArgs<ExtArgs>>): Prisma.Prisma__OrganizationTypeClient<runtime.Types.Result.GetResult<Prisma.$OrganizationTypePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1281
+ /**
1282
+ * Create many OrganizationTypes.
1283
+ * @param {OrganizationTypeCreateManyArgs} args - Arguments to create many OrganizationTypes.
1284
+ * @example
1285
+ * // Create many OrganizationTypes
1286
+ * const organizationType = await prisma.organizationType.createMany({
1287
+ * data: [
1288
+ * // ... provide data here
1289
+ * ]
1290
+ * })
1291
+ *
1292
+ */
1293
+ createMany<T extends OrganizationTypeCreateManyArgs>(args?: Prisma.SelectSubset<T, OrganizationTypeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1294
+ /**
1295
+ * Delete a OrganizationType.
1296
+ * @param {OrganizationTypeDeleteArgs} args - Arguments to delete one OrganizationType.
1297
+ * @example
1298
+ * // Delete one OrganizationType
1299
+ * const OrganizationType = await prisma.organizationType.delete({
1300
+ * where: {
1301
+ * // ... filter to delete one OrganizationType
1302
+ * }
1303
+ * })
1304
+ *
1305
+ */
1306
+ delete<T extends OrganizationTypeDeleteArgs>(args: Prisma.SelectSubset<T, OrganizationTypeDeleteArgs<ExtArgs>>): Prisma.Prisma__OrganizationTypeClient<runtime.Types.Result.GetResult<Prisma.$OrganizationTypePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1307
+ /**
1308
+ * Update one OrganizationType.
1309
+ * @param {OrganizationTypeUpdateArgs} args - Arguments to update one OrganizationType.
1310
+ * @example
1311
+ * // Update one OrganizationType
1312
+ * const organizationType = await prisma.organizationType.update({
1313
+ * where: {
1314
+ * // ... provide filter here
1315
+ * },
1316
+ * data: {
1317
+ * // ... provide data here
1318
+ * }
1319
+ * })
1320
+ *
1321
+ */
1322
+ update<T extends OrganizationTypeUpdateArgs>(args: Prisma.SelectSubset<T, OrganizationTypeUpdateArgs<ExtArgs>>): Prisma.Prisma__OrganizationTypeClient<runtime.Types.Result.GetResult<Prisma.$OrganizationTypePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1323
+ /**
1324
+ * Delete zero or more OrganizationTypes.
1325
+ * @param {OrganizationTypeDeleteManyArgs} args - Arguments to filter OrganizationTypes to delete.
1326
+ * @example
1327
+ * // Delete a few OrganizationTypes
1328
+ * const { count } = await prisma.organizationType.deleteMany({
1329
+ * where: {
1330
+ * // ... provide filter here
1331
+ * }
1332
+ * })
1333
+ *
1334
+ */
1335
+ deleteMany<T extends OrganizationTypeDeleteManyArgs>(args?: Prisma.SelectSubset<T, OrganizationTypeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1336
+ /**
1337
+ * Update zero or more OrganizationTypes.
1338
+ * Note, that providing `undefined` is treated as the value not being there.
1339
+ * Read more here: https://pris.ly/d/null-undefined
1340
+ * @param {OrganizationTypeUpdateManyArgs} args - Arguments to update one or more rows.
1341
+ * @example
1342
+ * // Update many OrganizationTypes
1343
+ * const organizationType = await prisma.organizationType.updateMany({
1344
+ * where: {
1345
+ * // ... provide filter here
1346
+ * },
1347
+ * data: {
1348
+ * // ... provide data here
1349
+ * }
1350
+ * })
1351
+ *
1352
+ */
1353
+ updateMany<T extends OrganizationTypeUpdateManyArgs>(args: Prisma.SelectSubset<T, OrganizationTypeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1354
+ /**
1355
+ * Create or update one OrganizationType.
1356
+ * @param {OrganizationTypeUpsertArgs} args - Arguments to update or create a OrganizationType.
1357
+ * @example
1358
+ * // Update or create a OrganizationType
1359
+ * const organizationType = await prisma.organizationType.upsert({
1360
+ * create: {
1361
+ * // ... data to create a OrganizationType
1362
+ * },
1363
+ * update: {
1364
+ * // ... in case it already exists, update
1365
+ * },
1366
+ * where: {
1367
+ * // ... the filter for the OrganizationType we want to update
1368
+ * }
1369
+ * })
1370
+ */
1371
+ upsert<T extends OrganizationTypeUpsertArgs>(args: Prisma.SelectSubset<T, OrganizationTypeUpsertArgs<ExtArgs>>): Prisma.Prisma__OrganizationTypeClient<runtime.Types.Result.GetResult<Prisma.$OrganizationTypePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1372
+ /**
1373
+ * Count the number of OrganizationTypes.
1374
+ * Note, that providing `undefined` is treated as the value not being there.
1375
+ * Read more here: https://pris.ly/d/null-undefined
1376
+ * @param {OrganizationTypeCountArgs} args - Arguments to filter OrganizationTypes to count.
1377
+ * @example
1378
+ * // Count the number of OrganizationTypes
1379
+ * const count = await prisma.organizationType.count({
1380
+ * where: {
1381
+ * // ... the filter for the OrganizationTypes we want to count
1382
+ * }
1383
+ * })
1384
+ **/
1385
+ count<T extends OrganizationTypeCountArgs>(args?: Prisma.Subset<T, OrganizationTypeCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], OrganizationTypeCountAggregateOutputType> : number>;
1386
+ /**
1387
+ * Allows you to perform aggregations operations on a OrganizationType.
1388
+ * Note, that providing `undefined` is treated as the value not being there.
1389
+ * Read more here: https://pris.ly/d/null-undefined
1390
+ * @param {OrganizationTypeAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1391
+ * @example
1392
+ * // Ordered by age ascending
1393
+ * // Where email contains prisma.io
1394
+ * // Limited to the 10 users
1395
+ * const aggregations = await prisma.user.aggregate({
1396
+ * _avg: {
1397
+ * age: true,
1398
+ * },
1399
+ * where: {
1400
+ * email: {
1401
+ * contains: "prisma.io",
1402
+ * },
1403
+ * },
1404
+ * orderBy: {
1405
+ * age: "asc",
1406
+ * },
1407
+ * take: 10,
1408
+ * })
1409
+ **/
1410
+ aggregate<T extends OrganizationTypeAggregateArgs>(args: Prisma.Subset<T, OrganizationTypeAggregateArgs>): Prisma.PrismaPromise<GetOrganizationTypeAggregateType<T>>;
1411
+ /**
1412
+ * Group by OrganizationType.
1413
+ * Note, that providing `undefined` is treated as the value not being there.
1414
+ * Read more here: https://pris.ly/d/null-undefined
1415
+ * @param {OrganizationTypeGroupByArgs} args - Group by arguments.
1416
+ * @example
1417
+ * // Group by city, order by createdAt, get count
1418
+ * const result = await prisma.user.groupBy({
1419
+ * by: ['city', 'createdAt'],
1420
+ * orderBy: {
1421
+ * createdAt: true
1422
+ * },
1423
+ * _count: {
1424
+ * _all: true
1425
+ * },
1426
+ * })
1427
+ *
1428
+ **/
1429
+ groupBy<T extends OrganizationTypeGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1430
+ orderBy: OrganizationTypeGroupByArgs['orderBy'];
1431
+ } : {
1432
+ orderBy?: OrganizationTypeGroupByArgs['orderBy'];
1433
+ }, 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 ? {
1434
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1435
+ Error,
1436
+ 'Field ',
1437
+ P,
1438
+ ` in "having" needs to be provided in "by"`
1439
+ ];
1440
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1441
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1442
+ }[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 ? {} : {
1443
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1444
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1445
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1446
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, OrganizationTypeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOrganizationTypeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1447
+ /**
1448
+ * Fields of the OrganizationType model
1449
+ */
1450
+ readonly fields: OrganizationTypeFieldRefs;
1451
+ }
1452
+ /**
1453
+ * The delegate class that acts as a "Promise-like" for OrganizationType.
1454
+ * Why is this prefixed with `Prisma__`?
1455
+ * Because we want to prevent naming conflicts as mentioned in
1456
+ * https://github.com/prisma/prisma-client-js/issues/707
1457
+ */
1458
+ export interface Prisma__OrganizationTypeClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1459
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1460
+ 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>;
1461
+ organizations<T extends Prisma.OrganizationType$organizationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationType$organizationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrganizationTypeAssignmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1462
+ applicationOrganizations<T extends Prisma.OrganizationType$applicationOrganizationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationType$applicationOrganizationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApplicationOrganizationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1463
+ approvalStages<T extends Prisma.OrganizationType$approvalStagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationType$approvalStagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApprovalStagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1464
+ documentReviews<T extends Prisma.OrganizationType$documentReviewsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationType$documentReviewsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentReviewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1465
+ approvalStageProgress<T extends Prisma.OrganizationType$approvalStageProgressArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationType$approvalStageProgressArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApprovalStageProgressPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1466
+ documentApprovals<T extends Prisma.OrganizationType$documentApprovalsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationType$documentApprovalsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentApprovalPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1467
+ /**
1468
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1469
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1470
+ * @param onrejected The callback to execute when the Promise is rejected.
1471
+ * @returns A Promise for the completion of which ever callback is executed.
1472
+ */
1473
+ 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>;
1474
+ /**
1475
+ * Attaches a callback for only the rejection of the Promise.
1476
+ * @param onrejected The callback to execute when the Promise is rejected.
1477
+ * @returns A Promise for the completion of the callback.
1478
+ */
1479
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1480
+ /**
1481
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1482
+ * resolved value cannot be modified from the callback.
1483
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1484
+ * @returns A Promise for the completion of the callback.
1485
+ */
1486
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1487
+ }
1488
+ /**
1489
+ * Fields of the OrganizationType model
1490
+ */
1491
+ export interface OrganizationTypeFieldRefs {
1492
+ readonly id: Prisma.FieldRef<"OrganizationType", 'String'>;
1493
+ readonly tenantId: Prisma.FieldRef<"OrganizationType", 'String'>;
1494
+ readonly code: Prisma.FieldRef<"OrganizationType", 'String'>;
1495
+ readonly name: Prisma.FieldRef<"OrganizationType", 'String'>;
1496
+ readonly description: Prisma.FieldRef<"OrganizationType", 'String'>;
1497
+ readonly isSystemType: Prisma.FieldRef<"OrganizationType", 'Boolean'>;
1498
+ readonly createdAt: Prisma.FieldRef<"OrganizationType", 'DateTime'>;
1499
+ readonly updatedAt: Prisma.FieldRef<"OrganizationType", 'DateTime'>;
1500
+ }
1501
+ /**
1502
+ * OrganizationType findUnique
1503
+ */
1504
+ export type OrganizationTypeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1505
+ /**
1506
+ * Select specific fields to fetch from the OrganizationType
1507
+ */
1508
+ select?: Prisma.OrganizationTypeSelect<ExtArgs> | null;
1509
+ /**
1510
+ * Omit specific fields from the OrganizationType
1511
+ */
1512
+ omit?: Prisma.OrganizationTypeOmit<ExtArgs> | null;
1513
+ /**
1514
+ * Choose, which related nodes to fetch as well
1515
+ */
1516
+ include?: Prisma.OrganizationTypeInclude<ExtArgs> | null;
1517
+ /**
1518
+ * Filter, which OrganizationType to fetch.
1519
+ */
1520
+ where: Prisma.OrganizationTypeWhereUniqueInput;
1521
+ };
1522
+ /**
1523
+ * OrganizationType findUniqueOrThrow
1524
+ */
1525
+ export type OrganizationTypeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1526
+ /**
1527
+ * Select specific fields to fetch from the OrganizationType
1528
+ */
1529
+ select?: Prisma.OrganizationTypeSelect<ExtArgs> | null;
1530
+ /**
1531
+ * Omit specific fields from the OrganizationType
1532
+ */
1533
+ omit?: Prisma.OrganizationTypeOmit<ExtArgs> | null;
1534
+ /**
1535
+ * Choose, which related nodes to fetch as well
1536
+ */
1537
+ include?: Prisma.OrganizationTypeInclude<ExtArgs> | null;
1538
+ /**
1539
+ * Filter, which OrganizationType to fetch.
1540
+ */
1541
+ where: Prisma.OrganizationTypeWhereUniqueInput;
1542
+ };
1543
+ /**
1544
+ * OrganizationType findFirst
1545
+ */
1546
+ export type OrganizationTypeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1547
+ /**
1548
+ * Select specific fields to fetch from the OrganizationType
1549
+ */
1550
+ select?: Prisma.OrganizationTypeSelect<ExtArgs> | null;
1551
+ /**
1552
+ * Omit specific fields from the OrganizationType
1553
+ */
1554
+ omit?: Prisma.OrganizationTypeOmit<ExtArgs> | null;
1555
+ /**
1556
+ * Choose, which related nodes to fetch as well
1557
+ */
1558
+ include?: Prisma.OrganizationTypeInclude<ExtArgs> | null;
1559
+ /**
1560
+ * Filter, which OrganizationType to fetch.
1561
+ */
1562
+ where?: Prisma.OrganizationTypeWhereInput;
1563
+ /**
1564
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1565
+ *
1566
+ * Determine the order of OrganizationTypes to fetch.
1567
+ */
1568
+ orderBy?: Prisma.OrganizationTypeOrderByWithRelationInput | Prisma.OrganizationTypeOrderByWithRelationInput[];
1569
+ /**
1570
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1571
+ *
1572
+ * Sets the position for searching for OrganizationTypes.
1573
+ */
1574
+ cursor?: Prisma.OrganizationTypeWhereUniqueInput;
1575
+ /**
1576
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1577
+ *
1578
+ * Take `±n` OrganizationTypes from the position of the cursor.
1579
+ */
1580
+ take?: number;
1581
+ /**
1582
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1583
+ *
1584
+ * Skip the first `n` OrganizationTypes.
1585
+ */
1586
+ skip?: number;
1587
+ /**
1588
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1589
+ *
1590
+ * Filter by unique combinations of OrganizationTypes.
1591
+ */
1592
+ distinct?: Prisma.OrganizationTypeScalarFieldEnum | Prisma.OrganizationTypeScalarFieldEnum[];
1593
+ };
1594
+ /**
1595
+ * OrganizationType findFirstOrThrow
1596
+ */
1597
+ export type OrganizationTypeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1598
+ /**
1599
+ * Select specific fields to fetch from the OrganizationType
1600
+ */
1601
+ select?: Prisma.OrganizationTypeSelect<ExtArgs> | null;
1602
+ /**
1603
+ * Omit specific fields from the OrganizationType
1604
+ */
1605
+ omit?: Prisma.OrganizationTypeOmit<ExtArgs> | null;
1606
+ /**
1607
+ * Choose, which related nodes to fetch as well
1608
+ */
1609
+ include?: Prisma.OrganizationTypeInclude<ExtArgs> | null;
1610
+ /**
1611
+ * Filter, which OrganizationType to fetch.
1612
+ */
1613
+ where?: Prisma.OrganizationTypeWhereInput;
1614
+ /**
1615
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1616
+ *
1617
+ * Determine the order of OrganizationTypes to fetch.
1618
+ */
1619
+ orderBy?: Prisma.OrganizationTypeOrderByWithRelationInput | Prisma.OrganizationTypeOrderByWithRelationInput[];
1620
+ /**
1621
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1622
+ *
1623
+ * Sets the position for searching for OrganizationTypes.
1624
+ */
1625
+ cursor?: Prisma.OrganizationTypeWhereUniqueInput;
1626
+ /**
1627
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1628
+ *
1629
+ * Take `±n` OrganizationTypes from the position of the cursor.
1630
+ */
1631
+ take?: number;
1632
+ /**
1633
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1634
+ *
1635
+ * Skip the first `n` OrganizationTypes.
1636
+ */
1637
+ skip?: number;
1638
+ /**
1639
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1640
+ *
1641
+ * Filter by unique combinations of OrganizationTypes.
1642
+ */
1643
+ distinct?: Prisma.OrganizationTypeScalarFieldEnum | Prisma.OrganizationTypeScalarFieldEnum[];
1644
+ };
1645
+ /**
1646
+ * OrganizationType findMany
1647
+ */
1648
+ export type OrganizationTypeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1649
+ /**
1650
+ * Select specific fields to fetch from the OrganizationType
1651
+ */
1652
+ select?: Prisma.OrganizationTypeSelect<ExtArgs> | null;
1653
+ /**
1654
+ * Omit specific fields from the OrganizationType
1655
+ */
1656
+ omit?: Prisma.OrganizationTypeOmit<ExtArgs> | null;
1657
+ /**
1658
+ * Choose, which related nodes to fetch as well
1659
+ */
1660
+ include?: Prisma.OrganizationTypeInclude<ExtArgs> | null;
1661
+ /**
1662
+ * Filter, which OrganizationTypes to fetch.
1663
+ */
1664
+ where?: Prisma.OrganizationTypeWhereInput;
1665
+ /**
1666
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1667
+ *
1668
+ * Determine the order of OrganizationTypes to fetch.
1669
+ */
1670
+ orderBy?: Prisma.OrganizationTypeOrderByWithRelationInput | Prisma.OrganizationTypeOrderByWithRelationInput[];
1671
+ /**
1672
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1673
+ *
1674
+ * Sets the position for listing OrganizationTypes.
1675
+ */
1676
+ cursor?: Prisma.OrganizationTypeWhereUniqueInput;
1677
+ /**
1678
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1679
+ *
1680
+ * Take `±n` OrganizationTypes from the position of the cursor.
1681
+ */
1682
+ take?: number;
1683
+ /**
1684
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1685
+ *
1686
+ * Skip the first `n` OrganizationTypes.
1687
+ */
1688
+ skip?: number;
1689
+ distinct?: Prisma.OrganizationTypeScalarFieldEnum | Prisma.OrganizationTypeScalarFieldEnum[];
1690
+ };
1691
+ /**
1692
+ * OrganizationType create
1693
+ */
1694
+ export type OrganizationTypeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1695
+ /**
1696
+ * Select specific fields to fetch from the OrganizationType
1697
+ */
1698
+ select?: Prisma.OrganizationTypeSelect<ExtArgs> | null;
1699
+ /**
1700
+ * Omit specific fields from the OrganizationType
1701
+ */
1702
+ omit?: Prisma.OrganizationTypeOmit<ExtArgs> | null;
1703
+ /**
1704
+ * Choose, which related nodes to fetch as well
1705
+ */
1706
+ include?: Prisma.OrganizationTypeInclude<ExtArgs> | null;
1707
+ /**
1708
+ * The data needed to create a OrganizationType.
1709
+ */
1710
+ data: Prisma.XOR<Prisma.OrganizationTypeCreateInput, Prisma.OrganizationTypeUncheckedCreateInput>;
1711
+ };
1712
+ /**
1713
+ * OrganizationType createMany
1714
+ */
1715
+ export type OrganizationTypeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1716
+ /**
1717
+ * The data used to create many OrganizationTypes.
1718
+ */
1719
+ data: Prisma.OrganizationTypeCreateManyInput | Prisma.OrganizationTypeCreateManyInput[];
1720
+ skipDuplicates?: boolean;
1721
+ };
1722
+ /**
1723
+ * OrganizationType update
1724
+ */
1725
+ export type OrganizationTypeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1726
+ /**
1727
+ * Select specific fields to fetch from the OrganizationType
1728
+ */
1729
+ select?: Prisma.OrganizationTypeSelect<ExtArgs> | null;
1730
+ /**
1731
+ * Omit specific fields from the OrganizationType
1732
+ */
1733
+ omit?: Prisma.OrganizationTypeOmit<ExtArgs> | null;
1734
+ /**
1735
+ * Choose, which related nodes to fetch as well
1736
+ */
1737
+ include?: Prisma.OrganizationTypeInclude<ExtArgs> | null;
1738
+ /**
1739
+ * The data needed to update a OrganizationType.
1740
+ */
1741
+ data: Prisma.XOR<Prisma.OrganizationTypeUpdateInput, Prisma.OrganizationTypeUncheckedUpdateInput>;
1742
+ /**
1743
+ * Choose, which OrganizationType to update.
1744
+ */
1745
+ where: Prisma.OrganizationTypeWhereUniqueInput;
1746
+ };
1747
+ /**
1748
+ * OrganizationType updateMany
1749
+ */
1750
+ export type OrganizationTypeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1751
+ /**
1752
+ * The data used to update OrganizationTypes.
1753
+ */
1754
+ data: Prisma.XOR<Prisma.OrganizationTypeUpdateManyMutationInput, Prisma.OrganizationTypeUncheckedUpdateManyInput>;
1755
+ /**
1756
+ * Filter which OrganizationTypes to update
1757
+ */
1758
+ where?: Prisma.OrganizationTypeWhereInput;
1759
+ /**
1760
+ * Limit how many OrganizationTypes to update.
1761
+ */
1762
+ limit?: number;
1763
+ };
1764
+ /**
1765
+ * OrganizationType upsert
1766
+ */
1767
+ export type OrganizationTypeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1768
+ /**
1769
+ * Select specific fields to fetch from the OrganizationType
1770
+ */
1771
+ select?: Prisma.OrganizationTypeSelect<ExtArgs> | null;
1772
+ /**
1773
+ * Omit specific fields from the OrganizationType
1774
+ */
1775
+ omit?: Prisma.OrganizationTypeOmit<ExtArgs> | null;
1776
+ /**
1777
+ * Choose, which related nodes to fetch as well
1778
+ */
1779
+ include?: Prisma.OrganizationTypeInclude<ExtArgs> | null;
1780
+ /**
1781
+ * The filter to search for the OrganizationType to update in case it exists.
1782
+ */
1783
+ where: Prisma.OrganizationTypeWhereUniqueInput;
1784
+ /**
1785
+ * In case the OrganizationType found by the `where` argument doesn't exist, create a new OrganizationType with this data.
1786
+ */
1787
+ create: Prisma.XOR<Prisma.OrganizationTypeCreateInput, Prisma.OrganizationTypeUncheckedCreateInput>;
1788
+ /**
1789
+ * In case the OrganizationType was found with the provided `where` argument, update it with this data.
1790
+ */
1791
+ update: Prisma.XOR<Prisma.OrganizationTypeUpdateInput, Prisma.OrganizationTypeUncheckedUpdateInput>;
1792
+ };
1793
+ /**
1794
+ * OrganizationType delete
1795
+ */
1796
+ export type OrganizationTypeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1797
+ /**
1798
+ * Select specific fields to fetch from the OrganizationType
1799
+ */
1800
+ select?: Prisma.OrganizationTypeSelect<ExtArgs> | null;
1801
+ /**
1802
+ * Omit specific fields from the OrganizationType
1803
+ */
1804
+ omit?: Prisma.OrganizationTypeOmit<ExtArgs> | null;
1805
+ /**
1806
+ * Choose, which related nodes to fetch as well
1807
+ */
1808
+ include?: Prisma.OrganizationTypeInclude<ExtArgs> | null;
1809
+ /**
1810
+ * Filter which OrganizationType to delete.
1811
+ */
1812
+ where: Prisma.OrganizationTypeWhereUniqueInput;
1813
+ };
1814
+ /**
1815
+ * OrganizationType deleteMany
1816
+ */
1817
+ export type OrganizationTypeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1818
+ /**
1819
+ * Filter which OrganizationTypes to delete
1820
+ */
1821
+ where?: Prisma.OrganizationTypeWhereInput;
1822
+ /**
1823
+ * Limit how many OrganizationTypes to delete.
1824
+ */
1825
+ limit?: number;
1826
+ };
1827
+ /**
1828
+ * OrganizationType.organizations
1829
+ */
1830
+ export type OrganizationType$organizationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1831
+ /**
1832
+ * Select specific fields to fetch from the OrganizationTypeAssignment
1833
+ */
1834
+ select?: Prisma.OrganizationTypeAssignmentSelect<ExtArgs> | null;
1835
+ /**
1836
+ * Omit specific fields from the OrganizationTypeAssignment
1837
+ */
1838
+ omit?: Prisma.OrganizationTypeAssignmentOmit<ExtArgs> | null;
1839
+ /**
1840
+ * Choose, which related nodes to fetch as well
1841
+ */
1842
+ include?: Prisma.OrganizationTypeAssignmentInclude<ExtArgs> | null;
1843
+ where?: Prisma.OrganizationTypeAssignmentWhereInput;
1844
+ orderBy?: Prisma.OrganizationTypeAssignmentOrderByWithRelationInput | Prisma.OrganizationTypeAssignmentOrderByWithRelationInput[];
1845
+ cursor?: Prisma.OrganizationTypeAssignmentWhereUniqueInput;
1846
+ take?: number;
1847
+ skip?: number;
1848
+ distinct?: Prisma.OrganizationTypeAssignmentScalarFieldEnum | Prisma.OrganizationTypeAssignmentScalarFieldEnum[];
1849
+ };
1850
+ /**
1851
+ * OrganizationType.applicationOrganizations
1852
+ */
1853
+ export type OrganizationType$applicationOrganizationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1854
+ /**
1855
+ * Select specific fields to fetch from the ApplicationOrganization
1856
+ */
1857
+ select?: Prisma.ApplicationOrganizationSelect<ExtArgs> | null;
1858
+ /**
1859
+ * Omit specific fields from the ApplicationOrganization
1860
+ */
1861
+ omit?: Prisma.ApplicationOrganizationOmit<ExtArgs> | null;
1862
+ /**
1863
+ * Choose, which related nodes to fetch as well
1864
+ */
1865
+ include?: Prisma.ApplicationOrganizationInclude<ExtArgs> | null;
1866
+ where?: Prisma.ApplicationOrganizationWhereInput;
1867
+ orderBy?: Prisma.ApplicationOrganizationOrderByWithRelationInput | Prisma.ApplicationOrganizationOrderByWithRelationInput[];
1868
+ cursor?: Prisma.ApplicationOrganizationWhereUniqueInput;
1869
+ take?: number;
1870
+ skip?: number;
1871
+ distinct?: Prisma.ApplicationOrganizationScalarFieldEnum | Prisma.ApplicationOrganizationScalarFieldEnum[];
1872
+ };
1873
+ /**
1874
+ * OrganizationType.approvalStages
1875
+ */
1876
+ export type OrganizationType$approvalStagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1877
+ /**
1878
+ * Select specific fields to fetch from the ApprovalStage
1879
+ */
1880
+ select?: Prisma.ApprovalStageSelect<ExtArgs> | null;
1881
+ /**
1882
+ * Omit specific fields from the ApprovalStage
1883
+ */
1884
+ omit?: Prisma.ApprovalStageOmit<ExtArgs> | null;
1885
+ /**
1886
+ * Choose, which related nodes to fetch as well
1887
+ */
1888
+ include?: Prisma.ApprovalStageInclude<ExtArgs> | null;
1889
+ where?: Prisma.ApprovalStageWhereInput;
1890
+ orderBy?: Prisma.ApprovalStageOrderByWithRelationInput | Prisma.ApprovalStageOrderByWithRelationInput[];
1891
+ cursor?: Prisma.ApprovalStageWhereUniqueInput;
1892
+ take?: number;
1893
+ skip?: number;
1894
+ distinct?: Prisma.ApprovalStageScalarFieldEnum | Prisma.ApprovalStageScalarFieldEnum[];
1895
+ };
1896
+ /**
1897
+ * OrganizationType.documentReviews
1898
+ */
1899
+ export type OrganizationType$documentReviewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1900
+ /**
1901
+ * Select specific fields to fetch from the DocumentReview
1902
+ */
1903
+ select?: Prisma.DocumentReviewSelect<ExtArgs> | null;
1904
+ /**
1905
+ * Omit specific fields from the DocumentReview
1906
+ */
1907
+ omit?: Prisma.DocumentReviewOmit<ExtArgs> | null;
1908
+ /**
1909
+ * Choose, which related nodes to fetch as well
1910
+ */
1911
+ include?: Prisma.DocumentReviewInclude<ExtArgs> | null;
1912
+ where?: Prisma.DocumentReviewWhereInput;
1913
+ orderBy?: Prisma.DocumentReviewOrderByWithRelationInput | Prisma.DocumentReviewOrderByWithRelationInput[];
1914
+ cursor?: Prisma.DocumentReviewWhereUniqueInput;
1915
+ take?: number;
1916
+ skip?: number;
1917
+ distinct?: Prisma.DocumentReviewScalarFieldEnum | Prisma.DocumentReviewScalarFieldEnum[];
1918
+ };
1919
+ /**
1920
+ * OrganizationType.approvalStageProgress
1921
+ */
1922
+ export type OrganizationType$approvalStageProgressArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1923
+ /**
1924
+ * Select specific fields to fetch from the ApprovalStageProgress
1925
+ */
1926
+ select?: Prisma.ApprovalStageProgressSelect<ExtArgs> | null;
1927
+ /**
1928
+ * Omit specific fields from the ApprovalStageProgress
1929
+ */
1930
+ omit?: Prisma.ApprovalStageProgressOmit<ExtArgs> | null;
1931
+ /**
1932
+ * Choose, which related nodes to fetch as well
1933
+ */
1934
+ include?: Prisma.ApprovalStageProgressInclude<ExtArgs> | null;
1935
+ where?: Prisma.ApprovalStageProgressWhereInput;
1936
+ orderBy?: Prisma.ApprovalStageProgressOrderByWithRelationInput | Prisma.ApprovalStageProgressOrderByWithRelationInput[];
1937
+ cursor?: Prisma.ApprovalStageProgressWhereUniqueInput;
1938
+ take?: number;
1939
+ skip?: number;
1940
+ distinct?: Prisma.ApprovalStageProgressScalarFieldEnum | Prisma.ApprovalStageProgressScalarFieldEnum[];
1941
+ };
1942
+ /**
1943
+ * OrganizationType.documentApprovals
1944
+ */
1945
+ export type OrganizationType$documentApprovalsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1946
+ /**
1947
+ * Select specific fields to fetch from the DocumentApproval
1948
+ */
1949
+ select?: Prisma.DocumentApprovalSelect<ExtArgs> | null;
1950
+ /**
1951
+ * Omit specific fields from the DocumentApproval
1952
+ */
1953
+ omit?: Prisma.DocumentApprovalOmit<ExtArgs> | null;
1954
+ /**
1955
+ * Choose, which related nodes to fetch as well
1956
+ */
1957
+ include?: Prisma.DocumentApprovalInclude<ExtArgs> | null;
1958
+ where?: Prisma.DocumentApprovalWhereInput;
1959
+ orderBy?: Prisma.DocumentApprovalOrderByWithRelationInput | Prisma.DocumentApprovalOrderByWithRelationInput[];
1960
+ cursor?: Prisma.DocumentApprovalWhereUniqueInput;
1961
+ take?: number;
1962
+ skip?: number;
1963
+ distinct?: Prisma.DocumentApprovalScalarFieldEnum | Prisma.DocumentApprovalScalarFieldEnum[];
1964
+ };
1965
+ /**
1966
+ * OrganizationType without action
1967
+ */
1968
+ export type OrganizationTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1969
+ /**
1970
+ * Select specific fields to fetch from the OrganizationType
1971
+ */
1972
+ select?: Prisma.OrganizationTypeSelect<ExtArgs> | null;
1973
+ /**
1974
+ * Omit specific fields from the OrganizationType
1975
+ */
1976
+ omit?: Prisma.OrganizationTypeOmit<ExtArgs> | null;
1977
+ /**
1978
+ * Choose, which related nodes to fetch as well
1979
+ */
1980
+ include?: Prisma.OrganizationTypeInclude<ExtArgs> | null;
1981
+ };
1982
+ export {};