@valentine-efagene/qshelter-common 2.0.99 → 2.0.100

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 (39) hide show
  1. package/dist/generated/client/internal/class.js +2 -2
  2. package/dist/generated/client/internal/prismaNamespace.d.ts +56 -0
  3. package/dist/generated/client/internal/prismaNamespace.js +56 -0
  4. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +56 -0
  5. package/dist/generated/client/internal/prismaNamespaceBrowser.js +56 -0
  6. package/dist/generated/client/models/Amenity.d.ts +183 -3
  7. package/dist/generated/client/models/ApplicationDocument.d.ts +183 -1
  8. package/dist/generated/client/models/ApplicationEvent.d.ts +190 -14
  9. package/dist/generated/client/models/ApplicationPayment.d.ts +225 -1
  10. package/dist/generated/client/models/ApplicationPhase.d.ts +272 -26
  11. package/dist/generated/client/models/DocumentationPhase.d.ts +224 -24
  12. package/dist/generated/client/models/DocumentationStep.d.ts +237 -1
  13. package/dist/generated/client/models/DocumentationStepApproval.d.ts +159 -1
  14. package/dist/generated/client/models/DocumentationStepDocument.d.ts +150 -10
  15. package/dist/generated/client/models/EventHandlerExecution.d.ts +208 -14
  16. package/dist/generated/client/models/PaymentInstallment.d.ts +228 -14
  17. package/dist/generated/client/models/PaymentMethodPhaseDocument.d.ts +178 -14
  18. package/dist/generated/client/models/PaymentMethodPhaseField.d.ts +208 -14
  19. package/dist/generated/client/models/PaymentMethodPhaseStep.d.ts +180 -14
  20. package/dist/generated/client/models/PaymentPhase.d.ts +214 -14
  21. package/dist/generated/client/models/PhaseEventAttachment.d.ts +178 -14
  22. package/dist/generated/client/models/PropertyAmenity.d.ts +145 -11
  23. package/dist/generated/client/models/PropertyDocument.d.ts +164 -12
  24. package/dist/generated/client/models/PropertyMedia.d.ts +183 -17
  25. package/dist/generated/client/models/PropertyPaymentMethodLink.d.ts +159 -13
  26. package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +270 -14
  27. package/dist/generated/client/models/PropertyUnit.d.ts +230 -14
  28. package/dist/generated/client/models/PropertyVariant.d.ts +256 -14
  29. package/dist/generated/client/models/PropertyVariantAmenity.d.ts +145 -11
  30. package/dist/generated/client/models/PropertyVariantMedia.d.ts +171 -13
  31. package/dist/generated/client/models/QuestionnaireField.d.ts +232 -14
  32. package/dist/generated/client/models/QuestionnairePhase.d.ts +207 -1
  33. package/dist/generated/client/models/StepEventAttachment.d.ts +178 -14
  34. package/dist/generated/client/models/Tenant.d.ts +11653 -1153
  35. package/dist/src/prisma/tenant.js +26 -32
  36. package/package.json +1 -1
  37. package/prisma/migrations/20260113000000_remove_workflow_analytics_summary/migration.sql +5 -0
  38. package/prisma/migrations/20260113110450_add_tenant_id_to_child_models/migration.sql +334 -0
  39. package/prisma/schema.prisma +143 -30
@@ -13,6 +13,7 @@ export type AggregateDocumentationStepApproval = {
13
13
  };
14
14
  export type DocumentationStepApprovalMinAggregateOutputType = {
15
15
  id: string | null;
16
+ tenantId: string | null;
16
17
  stepId: string | null;
17
18
  approverId: string | null;
18
19
  decision: $Enums.ApprovalDecision | null;
@@ -22,6 +23,7 @@ export type DocumentationStepApprovalMinAggregateOutputType = {
22
23
  };
23
24
  export type DocumentationStepApprovalMaxAggregateOutputType = {
24
25
  id: string | null;
26
+ tenantId: string | null;
25
27
  stepId: string | null;
26
28
  approverId: string | null;
27
29
  decision: $Enums.ApprovalDecision | null;
@@ -31,6 +33,7 @@ export type DocumentationStepApprovalMaxAggregateOutputType = {
31
33
  };
32
34
  export type DocumentationStepApprovalCountAggregateOutputType = {
33
35
  id: number;
36
+ tenantId: number;
34
37
  stepId: number;
35
38
  approverId: number;
36
39
  decision: number;
@@ -41,6 +44,7 @@ export type DocumentationStepApprovalCountAggregateOutputType = {
41
44
  };
42
45
  export type DocumentationStepApprovalMinAggregateInputType = {
43
46
  id?: true;
47
+ tenantId?: true;
44
48
  stepId?: true;
45
49
  approverId?: true;
46
50
  decision?: true;
@@ -50,6 +54,7 @@ export type DocumentationStepApprovalMinAggregateInputType = {
50
54
  };
51
55
  export type DocumentationStepApprovalMaxAggregateInputType = {
52
56
  id?: true;
57
+ tenantId?: true;
53
58
  stepId?: true;
54
59
  approverId?: true;
55
60
  decision?: true;
@@ -59,6 +64,7 @@ export type DocumentationStepApprovalMaxAggregateInputType = {
59
64
  };
60
65
  export type DocumentationStepApprovalCountAggregateInputType = {
61
66
  id?: true;
67
+ tenantId?: true;
62
68
  stepId?: true;
63
69
  approverId?: true;
64
70
  decision?: true;
@@ -131,6 +137,7 @@ export type DocumentationStepApprovalGroupByArgs<ExtArgs extends runtime.Types.E
131
137
  };
132
138
  export type DocumentationStepApprovalGroupByOutputType = {
133
139
  id: string;
140
+ tenantId: string;
134
141
  stepId: string;
135
142
  approverId: string | null;
136
143
  decision: $Enums.ApprovalDecision;
@@ -149,23 +156,27 @@ export type DocumentationStepApprovalWhereInput = {
149
156
  OR?: Prisma.DocumentationStepApprovalWhereInput[];
150
157
  NOT?: Prisma.DocumentationStepApprovalWhereInput | Prisma.DocumentationStepApprovalWhereInput[];
151
158
  id?: Prisma.StringFilter<"DocumentationStepApproval"> | string;
159
+ tenantId?: Prisma.StringFilter<"DocumentationStepApproval"> | string;
152
160
  stepId?: Prisma.StringFilter<"DocumentationStepApproval"> | string;
153
161
  approverId?: Prisma.StringNullableFilter<"DocumentationStepApproval"> | string | null;
154
162
  decision?: Prisma.EnumApprovalDecisionFilter<"DocumentationStepApproval"> | $Enums.ApprovalDecision;
155
163
  comment?: Prisma.StringNullableFilter<"DocumentationStepApproval"> | string | null;
156
164
  decidedAt?: Prisma.DateTimeFilter<"DocumentationStepApproval"> | Date | string;
157
165
  createdAt?: Prisma.DateTimeFilter<"DocumentationStepApproval"> | Date | string;
166
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
158
167
  step?: Prisma.XOR<Prisma.DocumentationStepScalarRelationFilter, Prisma.DocumentationStepWhereInput>;
159
168
  approver?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
160
169
  };
161
170
  export type DocumentationStepApprovalOrderByWithRelationInput = {
162
171
  id?: Prisma.SortOrder;
172
+ tenantId?: Prisma.SortOrder;
163
173
  stepId?: Prisma.SortOrder;
164
174
  approverId?: Prisma.SortOrderInput | Prisma.SortOrder;
165
175
  decision?: Prisma.SortOrder;
166
176
  comment?: Prisma.SortOrderInput | Prisma.SortOrder;
167
177
  decidedAt?: Prisma.SortOrder;
168
178
  createdAt?: Prisma.SortOrder;
179
+ tenant?: Prisma.TenantOrderByWithRelationInput;
169
180
  step?: Prisma.DocumentationStepOrderByWithRelationInput;
170
181
  approver?: Prisma.UserOrderByWithRelationInput;
171
182
  _relevance?: Prisma.DocumentationStepApprovalOrderByRelevanceInput;
@@ -175,17 +186,20 @@ export type DocumentationStepApprovalWhereUniqueInput = Prisma.AtLeast<{
175
186
  AND?: Prisma.DocumentationStepApprovalWhereInput | Prisma.DocumentationStepApprovalWhereInput[];
176
187
  OR?: Prisma.DocumentationStepApprovalWhereInput[];
177
188
  NOT?: Prisma.DocumentationStepApprovalWhereInput | Prisma.DocumentationStepApprovalWhereInput[];
189
+ tenantId?: Prisma.StringFilter<"DocumentationStepApproval"> | string;
178
190
  stepId?: Prisma.StringFilter<"DocumentationStepApproval"> | string;
179
191
  approverId?: Prisma.StringNullableFilter<"DocumentationStepApproval"> | string | null;
180
192
  decision?: Prisma.EnumApprovalDecisionFilter<"DocumentationStepApproval"> | $Enums.ApprovalDecision;
181
193
  comment?: Prisma.StringNullableFilter<"DocumentationStepApproval"> | string | null;
182
194
  decidedAt?: Prisma.DateTimeFilter<"DocumentationStepApproval"> | Date | string;
183
195
  createdAt?: Prisma.DateTimeFilter<"DocumentationStepApproval"> | Date | string;
196
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
184
197
  step?: Prisma.XOR<Prisma.DocumentationStepScalarRelationFilter, Prisma.DocumentationStepWhereInput>;
185
198
  approver?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
186
199
  }, "id">;
187
200
  export type DocumentationStepApprovalOrderByWithAggregationInput = {
188
201
  id?: Prisma.SortOrder;
202
+ tenantId?: Prisma.SortOrder;
189
203
  stepId?: Prisma.SortOrder;
190
204
  approverId?: Prisma.SortOrderInput | Prisma.SortOrder;
191
205
  decision?: Prisma.SortOrder;
@@ -201,6 +215,7 @@ export type DocumentationStepApprovalScalarWhereWithAggregatesInput = {
201
215
  OR?: Prisma.DocumentationStepApprovalScalarWhereWithAggregatesInput[];
202
216
  NOT?: Prisma.DocumentationStepApprovalScalarWhereWithAggregatesInput | Prisma.DocumentationStepApprovalScalarWhereWithAggregatesInput[];
203
217
  id?: Prisma.StringWithAggregatesFilter<"DocumentationStepApproval"> | string;
218
+ tenantId?: Prisma.StringWithAggregatesFilter<"DocumentationStepApproval"> | string;
204
219
  stepId?: Prisma.StringWithAggregatesFilter<"DocumentationStepApproval"> | string;
205
220
  approverId?: Prisma.StringNullableWithAggregatesFilter<"DocumentationStepApproval"> | string | null;
206
221
  decision?: Prisma.EnumApprovalDecisionWithAggregatesFilter<"DocumentationStepApproval"> | $Enums.ApprovalDecision;
@@ -214,11 +229,13 @@ export type DocumentationStepApprovalCreateInput = {
214
229
  comment?: string | null;
215
230
  decidedAt?: Date | string;
216
231
  createdAt?: Date | string;
232
+ tenant: Prisma.TenantCreateNestedOneWithoutDocumentationStepApprovalsInput;
217
233
  step: Prisma.DocumentationStepCreateNestedOneWithoutApprovalsInput;
218
234
  approver?: Prisma.UserCreateNestedOneWithoutStepApprovalsInput;
219
235
  };
220
236
  export type DocumentationStepApprovalUncheckedCreateInput = {
221
237
  id?: string;
238
+ tenantId: string;
222
239
  stepId: string;
223
240
  approverId?: string | null;
224
241
  decision: $Enums.ApprovalDecision;
@@ -232,11 +249,13 @@ export type DocumentationStepApprovalUpdateInput = {
232
249
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
233
250
  decidedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
234
251
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
252
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationStepApprovalsNestedInput;
235
253
  step?: Prisma.DocumentationStepUpdateOneRequiredWithoutApprovalsNestedInput;
236
254
  approver?: Prisma.UserUpdateOneWithoutStepApprovalsNestedInput;
237
255
  };
238
256
  export type DocumentationStepApprovalUncheckedUpdateInput = {
239
257
  id?: Prisma.StringFieldUpdateOperationsInput | string;
258
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
240
259
  stepId?: Prisma.StringFieldUpdateOperationsInput | string;
241
260
  approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
242
261
  decision?: Prisma.EnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision;
@@ -246,6 +265,7 @@ export type DocumentationStepApprovalUncheckedUpdateInput = {
246
265
  };
247
266
  export type DocumentationStepApprovalCreateManyInput = {
248
267
  id?: string;
268
+ tenantId: string;
249
269
  stepId: string;
250
270
  approverId?: string | null;
251
271
  decision: $Enums.ApprovalDecision;
@@ -262,6 +282,7 @@ export type DocumentationStepApprovalUpdateManyMutationInput = {
262
282
  };
263
283
  export type DocumentationStepApprovalUncheckedUpdateManyInput = {
264
284
  id?: Prisma.StringFieldUpdateOperationsInput | string;
285
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
265
286
  stepId?: Prisma.StringFieldUpdateOperationsInput | string;
266
287
  approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
267
288
  decision?: Prisma.EnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision;
@@ -284,6 +305,7 @@ export type DocumentationStepApprovalOrderByRelevanceInput = {
284
305
  };
285
306
  export type DocumentationStepApprovalCountOrderByAggregateInput = {
286
307
  id?: Prisma.SortOrder;
308
+ tenantId?: Prisma.SortOrder;
287
309
  stepId?: Prisma.SortOrder;
288
310
  approverId?: Prisma.SortOrder;
289
311
  decision?: Prisma.SortOrder;
@@ -293,6 +315,7 @@ export type DocumentationStepApprovalCountOrderByAggregateInput = {
293
315
  };
294
316
  export type DocumentationStepApprovalMaxOrderByAggregateInput = {
295
317
  id?: Prisma.SortOrder;
318
+ tenantId?: Prisma.SortOrder;
296
319
  stepId?: Prisma.SortOrder;
297
320
  approverId?: Prisma.SortOrder;
298
321
  decision?: Prisma.SortOrder;
@@ -302,6 +325,7 @@ export type DocumentationStepApprovalMaxOrderByAggregateInput = {
302
325
  };
303
326
  export type DocumentationStepApprovalMinOrderByAggregateInput = {
304
327
  id?: Prisma.SortOrder;
328
+ tenantId?: Prisma.SortOrder;
305
329
  stepId?: Prisma.SortOrder;
306
330
  approverId?: Prisma.SortOrder;
307
331
  decision?: Prisma.SortOrder;
@@ -347,6 +371,44 @@ export type DocumentationStepApprovalUncheckedUpdateManyWithoutApproverNestedInp
347
371
  updateMany?: Prisma.DocumentationStepApprovalUpdateManyWithWhereWithoutApproverInput | Prisma.DocumentationStepApprovalUpdateManyWithWhereWithoutApproverInput[];
348
372
  deleteMany?: Prisma.DocumentationStepApprovalScalarWhereInput | Prisma.DocumentationStepApprovalScalarWhereInput[];
349
373
  };
374
+ export type DocumentationStepApprovalCreateNestedManyWithoutTenantInput = {
375
+ create?: Prisma.XOR<Prisma.DocumentationStepApprovalCreateWithoutTenantInput, Prisma.DocumentationStepApprovalUncheckedCreateWithoutTenantInput> | Prisma.DocumentationStepApprovalCreateWithoutTenantInput[] | Prisma.DocumentationStepApprovalUncheckedCreateWithoutTenantInput[];
376
+ connectOrCreate?: Prisma.DocumentationStepApprovalCreateOrConnectWithoutTenantInput | Prisma.DocumentationStepApprovalCreateOrConnectWithoutTenantInput[];
377
+ createMany?: Prisma.DocumentationStepApprovalCreateManyTenantInputEnvelope;
378
+ connect?: Prisma.DocumentationStepApprovalWhereUniqueInput | Prisma.DocumentationStepApprovalWhereUniqueInput[];
379
+ };
380
+ export type DocumentationStepApprovalUncheckedCreateNestedManyWithoutTenantInput = {
381
+ create?: Prisma.XOR<Prisma.DocumentationStepApprovalCreateWithoutTenantInput, Prisma.DocumentationStepApprovalUncheckedCreateWithoutTenantInput> | Prisma.DocumentationStepApprovalCreateWithoutTenantInput[] | Prisma.DocumentationStepApprovalUncheckedCreateWithoutTenantInput[];
382
+ connectOrCreate?: Prisma.DocumentationStepApprovalCreateOrConnectWithoutTenantInput | Prisma.DocumentationStepApprovalCreateOrConnectWithoutTenantInput[];
383
+ createMany?: Prisma.DocumentationStepApprovalCreateManyTenantInputEnvelope;
384
+ connect?: Prisma.DocumentationStepApprovalWhereUniqueInput | Prisma.DocumentationStepApprovalWhereUniqueInput[];
385
+ };
386
+ export type DocumentationStepApprovalUpdateManyWithoutTenantNestedInput = {
387
+ create?: Prisma.XOR<Prisma.DocumentationStepApprovalCreateWithoutTenantInput, Prisma.DocumentationStepApprovalUncheckedCreateWithoutTenantInput> | Prisma.DocumentationStepApprovalCreateWithoutTenantInput[] | Prisma.DocumentationStepApprovalUncheckedCreateWithoutTenantInput[];
388
+ connectOrCreate?: Prisma.DocumentationStepApprovalCreateOrConnectWithoutTenantInput | Prisma.DocumentationStepApprovalCreateOrConnectWithoutTenantInput[];
389
+ upsert?: Prisma.DocumentationStepApprovalUpsertWithWhereUniqueWithoutTenantInput | Prisma.DocumentationStepApprovalUpsertWithWhereUniqueWithoutTenantInput[];
390
+ createMany?: Prisma.DocumentationStepApprovalCreateManyTenantInputEnvelope;
391
+ set?: Prisma.DocumentationStepApprovalWhereUniqueInput | Prisma.DocumentationStepApprovalWhereUniqueInput[];
392
+ disconnect?: Prisma.DocumentationStepApprovalWhereUniqueInput | Prisma.DocumentationStepApprovalWhereUniqueInput[];
393
+ delete?: Prisma.DocumentationStepApprovalWhereUniqueInput | Prisma.DocumentationStepApprovalWhereUniqueInput[];
394
+ connect?: Prisma.DocumentationStepApprovalWhereUniqueInput | Prisma.DocumentationStepApprovalWhereUniqueInput[];
395
+ update?: Prisma.DocumentationStepApprovalUpdateWithWhereUniqueWithoutTenantInput | Prisma.DocumentationStepApprovalUpdateWithWhereUniqueWithoutTenantInput[];
396
+ updateMany?: Prisma.DocumentationStepApprovalUpdateManyWithWhereWithoutTenantInput | Prisma.DocumentationStepApprovalUpdateManyWithWhereWithoutTenantInput[];
397
+ deleteMany?: Prisma.DocumentationStepApprovalScalarWhereInput | Prisma.DocumentationStepApprovalScalarWhereInput[];
398
+ };
399
+ export type DocumentationStepApprovalUncheckedUpdateManyWithoutTenantNestedInput = {
400
+ create?: Prisma.XOR<Prisma.DocumentationStepApprovalCreateWithoutTenantInput, Prisma.DocumentationStepApprovalUncheckedCreateWithoutTenantInput> | Prisma.DocumentationStepApprovalCreateWithoutTenantInput[] | Prisma.DocumentationStepApprovalUncheckedCreateWithoutTenantInput[];
401
+ connectOrCreate?: Prisma.DocumentationStepApprovalCreateOrConnectWithoutTenantInput | Prisma.DocumentationStepApprovalCreateOrConnectWithoutTenantInput[];
402
+ upsert?: Prisma.DocumentationStepApprovalUpsertWithWhereUniqueWithoutTenantInput | Prisma.DocumentationStepApprovalUpsertWithWhereUniqueWithoutTenantInput[];
403
+ createMany?: Prisma.DocumentationStepApprovalCreateManyTenantInputEnvelope;
404
+ set?: Prisma.DocumentationStepApprovalWhereUniqueInput | Prisma.DocumentationStepApprovalWhereUniqueInput[];
405
+ disconnect?: Prisma.DocumentationStepApprovalWhereUniqueInput | Prisma.DocumentationStepApprovalWhereUniqueInput[];
406
+ delete?: Prisma.DocumentationStepApprovalWhereUniqueInput | Prisma.DocumentationStepApprovalWhereUniqueInput[];
407
+ connect?: Prisma.DocumentationStepApprovalWhereUniqueInput | Prisma.DocumentationStepApprovalWhereUniqueInput[];
408
+ update?: Prisma.DocumentationStepApprovalUpdateWithWhereUniqueWithoutTenantInput | Prisma.DocumentationStepApprovalUpdateWithWhereUniqueWithoutTenantInput[];
409
+ updateMany?: Prisma.DocumentationStepApprovalUpdateManyWithWhereWithoutTenantInput | Prisma.DocumentationStepApprovalUpdateManyWithWhereWithoutTenantInput[];
410
+ deleteMany?: Prisma.DocumentationStepApprovalScalarWhereInput | Prisma.DocumentationStepApprovalScalarWhereInput[];
411
+ };
350
412
  export type DocumentationStepApprovalCreateNestedManyWithoutStepInput = {
351
413
  create?: Prisma.XOR<Prisma.DocumentationStepApprovalCreateWithoutStepInput, Prisma.DocumentationStepApprovalUncheckedCreateWithoutStepInput> | Prisma.DocumentationStepApprovalCreateWithoutStepInput[] | Prisma.DocumentationStepApprovalUncheckedCreateWithoutStepInput[];
352
414
  connectOrCreate?: Prisma.DocumentationStepApprovalCreateOrConnectWithoutStepInput | Prisma.DocumentationStepApprovalCreateOrConnectWithoutStepInput[];
@@ -394,10 +456,12 @@ export type DocumentationStepApprovalCreateWithoutApproverInput = {
394
456
  comment?: string | null;
395
457
  decidedAt?: Date | string;
396
458
  createdAt?: Date | string;
459
+ tenant: Prisma.TenantCreateNestedOneWithoutDocumentationStepApprovalsInput;
397
460
  step: Prisma.DocumentationStepCreateNestedOneWithoutApprovalsInput;
398
461
  };
399
462
  export type DocumentationStepApprovalUncheckedCreateWithoutApproverInput = {
400
463
  id?: string;
464
+ tenantId: string;
401
465
  stepId: string;
402
466
  decision: $Enums.ApprovalDecision;
403
467
  comment?: string | null;
@@ -430,6 +494,7 @@ export type DocumentationStepApprovalScalarWhereInput = {
430
494
  OR?: Prisma.DocumentationStepApprovalScalarWhereInput[];
431
495
  NOT?: Prisma.DocumentationStepApprovalScalarWhereInput | Prisma.DocumentationStepApprovalScalarWhereInput[];
432
496
  id?: Prisma.StringFilter<"DocumentationStepApproval"> | string;
497
+ tenantId?: Prisma.StringFilter<"DocumentationStepApproval"> | string;
433
498
  stepId?: Prisma.StringFilter<"DocumentationStepApproval"> | string;
434
499
  approverId?: Prisma.StringNullableFilter<"DocumentationStepApproval"> | string | null;
435
500
  decision?: Prisma.EnumApprovalDecisionFilter<"DocumentationStepApproval"> | $Enums.ApprovalDecision;
@@ -437,16 +502,57 @@ export type DocumentationStepApprovalScalarWhereInput = {
437
502
  decidedAt?: Prisma.DateTimeFilter<"DocumentationStepApproval"> | Date | string;
438
503
  createdAt?: Prisma.DateTimeFilter<"DocumentationStepApproval"> | Date | string;
439
504
  };
505
+ export type DocumentationStepApprovalCreateWithoutTenantInput = {
506
+ id?: string;
507
+ decision: $Enums.ApprovalDecision;
508
+ comment?: string | null;
509
+ decidedAt?: Date | string;
510
+ createdAt?: Date | string;
511
+ step: Prisma.DocumentationStepCreateNestedOneWithoutApprovalsInput;
512
+ approver?: Prisma.UserCreateNestedOneWithoutStepApprovalsInput;
513
+ };
514
+ export type DocumentationStepApprovalUncheckedCreateWithoutTenantInput = {
515
+ id?: string;
516
+ stepId: string;
517
+ approverId?: string | null;
518
+ decision: $Enums.ApprovalDecision;
519
+ comment?: string | null;
520
+ decidedAt?: Date | string;
521
+ createdAt?: Date | string;
522
+ };
523
+ export type DocumentationStepApprovalCreateOrConnectWithoutTenantInput = {
524
+ where: Prisma.DocumentationStepApprovalWhereUniqueInput;
525
+ create: Prisma.XOR<Prisma.DocumentationStepApprovalCreateWithoutTenantInput, Prisma.DocumentationStepApprovalUncheckedCreateWithoutTenantInput>;
526
+ };
527
+ export type DocumentationStepApprovalCreateManyTenantInputEnvelope = {
528
+ data: Prisma.DocumentationStepApprovalCreateManyTenantInput | Prisma.DocumentationStepApprovalCreateManyTenantInput[];
529
+ skipDuplicates?: boolean;
530
+ };
531
+ export type DocumentationStepApprovalUpsertWithWhereUniqueWithoutTenantInput = {
532
+ where: Prisma.DocumentationStepApprovalWhereUniqueInput;
533
+ update: Prisma.XOR<Prisma.DocumentationStepApprovalUpdateWithoutTenantInput, Prisma.DocumentationStepApprovalUncheckedUpdateWithoutTenantInput>;
534
+ create: Prisma.XOR<Prisma.DocumentationStepApprovalCreateWithoutTenantInput, Prisma.DocumentationStepApprovalUncheckedCreateWithoutTenantInput>;
535
+ };
536
+ export type DocumentationStepApprovalUpdateWithWhereUniqueWithoutTenantInput = {
537
+ where: Prisma.DocumentationStepApprovalWhereUniqueInput;
538
+ data: Prisma.XOR<Prisma.DocumentationStepApprovalUpdateWithoutTenantInput, Prisma.DocumentationStepApprovalUncheckedUpdateWithoutTenantInput>;
539
+ };
540
+ export type DocumentationStepApprovalUpdateManyWithWhereWithoutTenantInput = {
541
+ where: Prisma.DocumentationStepApprovalScalarWhereInput;
542
+ data: Prisma.XOR<Prisma.DocumentationStepApprovalUpdateManyMutationInput, Prisma.DocumentationStepApprovalUncheckedUpdateManyWithoutTenantInput>;
543
+ };
440
544
  export type DocumentationStepApprovalCreateWithoutStepInput = {
441
545
  id?: string;
442
546
  decision: $Enums.ApprovalDecision;
443
547
  comment?: string | null;
444
548
  decidedAt?: Date | string;
445
549
  createdAt?: Date | string;
550
+ tenant: Prisma.TenantCreateNestedOneWithoutDocumentationStepApprovalsInput;
446
551
  approver?: Prisma.UserCreateNestedOneWithoutStepApprovalsInput;
447
552
  };
448
553
  export type DocumentationStepApprovalUncheckedCreateWithoutStepInput = {
449
554
  id?: string;
555
+ tenantId: string;
450
556
  approverId?: string | null;
451
557
  decision: $Enums.ApprovalDecision;
452
558
  comment?: string | null;
@@ -476,6 +582,7 @@ export type DocumentationStepApprovalUpdateManyWithWhereWithoutStepInput = {
476
582
  };
477
583
  export type DocumentationStepApprovalCreateManyApproverInput = {
478
584
  id?: string;
585
+ tenantId: string;
479
586
  stepId: string;
480
587
  decision: $Enums.ApprovalDecision;
481
588
  comment?: string | null;
@@ -488,10 +595,12 @@ export type DocumentationStepApprovalUpdateWithoutApproverInput = {
488
595
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
489
596
  decidedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
490
597
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
598
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationStepApprovalsNestedInput;
491
599
  step?: Prisma.DocumentationStepUpdateOneRequiredWithoutApprovalsNestedInput;
492
600
  };
493
601
  export type DocumentationStepApprovalUncheckedUpdateWithoutApproverInput = {
494
602
  id?: Prisma.StringFieldUpdateOperationsInput | string;
603
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
495
604
  stepId?: Prisma.StringFieldUpdateOperationsInput | string;
496
605
  decision?: Prisma.EnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision;
497
606
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -500,14 +609,52 @@ export type DocumentationStepApprovalUncheckedUpdateWithoutApproverInput = {
500
609
  };
501
610
  export type DocumentationStepApprovalUncheckedUpdateManyWithoutApproverInput = {
502
611
  id?: Prisma.StringFieldUpdateOperationsInput | string;
612
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
503
613
  stepId?: Prisma.StringFieldUpdateOperationsInput | string;
504
614
  decision?: Prisma.EnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision;
505
615
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
506
616
  decidedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
507
617
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
508
618
  };
619
+ export type DocumentationStepApprovalCreateManyTenantInput = {
620
+ id?: string;
621
+ stepId: string;
622
+ approverId?: string | null;
623
+ decision: $Enums.ApprovalDecision;
624
+ comment?: string | null;
625
+ decidedAt?: Date | string;
626
+ createdAt?: Date | string;
627
+ };
628
+ export type DocumentationStepApprovalUpdateWithoutTenantInput = {
629
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
630
+ decision?: Prisma.EnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision;
631
+ comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
632
+ decidedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
633
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
634
+ step?: Prisma.DocumentationStepUpdateOneRequiredWithoutApprovalsNestedInput;
635
+ approver?: Prisma.UserUpdateOneWithoutStepApprovalsNestedInput;
636
+ };
637
+ export type DocumentationStepApprovalUncheckedUpdateWithoutTenantInput = {
638
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
639
+ stepId?: Prisma.StringFieldUpdateOperationsInput | string;
640
+ approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
641
+ decision?: Prisma.EnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision;
642
+ comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
643
+ decidedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
644
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
645
+ };
646
+ export type DocumentationStepApprovalUncheckedUpdateManyWithoutTenantInput = {
647
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
648
+ stepId?: Prisma.StringFieldUpdateOperationsInput | string;
649
+ approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
650
+ decision?: Prisma.EnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision;
651
+ comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
652
+ decidedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
653
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
654
+ };
509
655
  export type DocumentationStepApprovalCreateManyStepInput = {
510
656
  id?: string;
657
+ tenantId: string;
511
658
  approverId?: string | null;
512
659
  decision: $Enums.ApprovalDecision;
513
660
  comment?: string | null;
@@ -520,10 +667,12 @@ export type DocumentationStepApprovalUpdateWithoutStepInput = {
520
667
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
521
668
  decidedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
522
669
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
670
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutDocumentationStepApprovalsNestedInput;
523
671
  approver?: Prisma.UserUpdateOneWithoutStepApprovalsNestedInput;
524
672
  };
525
673
  export type DocumentationStepApprovalUncheckedUpdateWithoutStepInput = {
526
674
  id?: Prisma.StringFieldUpdateOperationsInput | string;
675
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
527
676
  approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
528
677
  decision?: Prisma.EnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision;
529
678
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -532,6 +681,7 @@ export type DocumentationStepApprovalUncheckedUpdateWithoutStepInput = {
532
681
  };
533
682
  export type DocumentationStepApprovalUncheckedUpdateManyWithoutStepInput = {
534
683
  id?: Prisma.StringFieldUpdateOperationsInput | string;
684
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
535
685
  approverId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
536
686
  decision?: Prisma.EnumApprovalDecisionFieldUpdateOperationsInput | $Enums.ApprovalDecision;
537
687
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -540,17 +690,20 @@ export type DocumentationStepApprovalUncheckedUpdateManyWithoutStepInput = {
540
690
  };
541
691
  export type DocumentationStepApprovalSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
542
692
  id?: boolean;
693
+ tenantId?: boolean;
543
694
  stepId?: boolean;
544
695
  approverId?: boolean;
545
696
  decision?: boolean;
546
697
  comment?: boolean;
547
698
  decidedAt?: boolean;
548
699
  createdAt?: boolean;
700
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
549
701
  step?: boolean | Prisma.DocumentationStepDefaultArgs<ExtArgs>;
550
702
  approver?: boolean | Prisma.DocumentationStepApproval$approverArgs<ExtArgs>;
551
703
  }, ExtArgs["result"]["documentationStepApproval"]>;
552
704
  export type DocumentationStepApprovalSelectScalar = {
553
705
  id?: boolean;
706
+ tenantId?: boolean;
554
707
  stepId?: boolean;
555
708
  approverId?: boolean;
556
709
  decision?: boolean;
@@ -558,19 +711,22 @@ export type DocumentationStepApprovalSelectScalar = {
558
711
  decidedAt?: boolean;
559
712
  createdAt?: boolean;
560
713
  };
561
- export type DocumentationStepApprovalOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "stepId" | "approverId" | "decision" | "comment" | "decidedAt" | "createdAt", ExtArgs["result"]["documentationStepApproval"]>;
714
+ export type DocumentationStepApprovalOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "stepId" | "approverId" | "decision" | "comment" | "decidedAt" | "createdAt", ExtArgs["result"]["documentationStepApproval"]>;
562
715
  export type DocumentationStepApprovalInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
716
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
563
717
  step?: boolean | Prisma.DocumentationStepDefaultArgs<ExtArgs>;
564
718
  approver?: boolean | Prisma.DocumentationStepApproval$approverArgs<ExtArgs>;
565
719
  };
566
720
  export type $DocumentationStepApprovalPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
567
721
  name: "DocumentationStepApproval";
568
722
  objects: {
723
+ tenant: Prisma.$TenantPayload<ExtArgs>;
569
724
  step: Prisma.$DocumentationStepPayload<ExtArgs>;
570
725
  approver: Prisma.$UserPayload<ExtArgs> | null;
571
726
  };
572
727
  scalars: runtime.Types.Extensions.GetPayloadResult<{
573
728
  id: string;
729
+ tenantId: string;
574
730
  stepId: string;
575
731
  approverId: string | null;
576
732
  decision: $Enums.ApprovalDecision;
@@ -854,6 +1010,7 @@ export interface DocumentationStepApprovalDelegate<ExtArgs extends runtime.Types
854
1010
  */
855
1011
  export interface Prisma__DocumentationStepApprovalClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
856
1012
  readonly [Symbol.toStringTag]: "PrismaPromise";
1013
+ 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>;
857
1014
  step<T extends Prisma.DocumentationStepDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentationStepDefaultArgs<ExtArgs>>): Prisma.Prisma__DocumentationStepClient<runtime.Types.Result.GetResult<Prisma.$DocumentationStepPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
858
1015
  approver<T extends Prisma.DocumentationStepApproval$approverArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentationStepApproval$approverArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
859
1016
  /**
@@ -882,6 +1039,7 @@ export interface Prisma__DocumentationStepApprovalClient<T, Null = never, ExtArg
882
1039
  */
883
1040
  export interface DocumentationStepApprovalFieldRefs {
884
1041
  readonly id: Prisma.FieldRef<"DocumentationStepApproval", 'String'>;
1042
+ readonly tenantId: Prisma.FieldRef<"DocumentationStepApproval", 'String'>;
885
1043
  readonly stepId: Prisma.FieldRef<"DocumentationStepApproval", 'String'>;
886
1044
  readonly approverId: Prisma.FieldRef<"DocumentationStepApproval", 'String'>;
887
1045
  readonly decision: Prisma.FieldRef<"DocumentationStepApproval", 'ApprovalDecision'>;