@valentine-efagene/qshelter-common 2.0.101 → 2.0.103

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