@valentine-efagene/qshelter-common 2.0.138 → 2.0.139

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 (33) hide show
  1. package/dist/generated/client/browser.d.ts +20 -0
  2. package/dist/generated/client/client.d.ts +20 -0
  3. package/dist/generated/client/commonInputTypes.d.ts +120 -30
  4. package/dist/generated/client/enums.d.ts +23 -0
  5. package/dist/generated/client/enums.js +21 -1
  6. package/dist/generated/client/internal/class.d.ts +44 -0
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +401 -5
  9. package/dist/generated/client/internal/prismaNamespace.js +108 -0
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +116 -0
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +108 -0
  12. package/dist/generated/client/models/ApplicationDocument.d.ts +290 -1
  13. package/dist/generated/client/models/ApprovalStage.d.ts +1605 -0
  14. package/dist/generated/client/models/ApprovalStage.js +1 -0
  15. package/dist/generated/client/models/ApprovalStageProgress.d.ts +2329 -0
  16. package/dist/generated/client/models/ApprovalStageProgress.js +1 -0
  17. package/dist/generated/client/models/DocumentApproval.d.ts +1611 -0
  18. package/dist/generated/client/models/DocumentApproval.js +1 -0
  19. package/dist/generated/client/models/DocumentDefinition.d.ts +1475 -0
  20. package/dist/generated/client/models/DocumentDefinition.js +1 -0
  21. package/dist/generated/client/models/DocumentReview.d.ts +0 -3
  22. package/dist/generated/client/models/DocumentationPhase.d.ts +167 -0
  23. package/dist/generated/client/models/DocumentationPlan.d.ts +270 -0
  24. package/dist/generated/client/models/Tenant.d.ts +1281 -131
  25. package/dist/generated/client/models/User.d.ts +824 -0
  26. package/dist/generated/client/models/index.d.ts +4 -0
  27. package/dist/generated/client/models/index.js +4 -0
  28. package/dist/generated/client/models.d.ts +4 -0
  29. package/dist/src/utils/documentation-enums.d.ts +10 -1
  30. package/dist/src/utils/documentation-enums.js +8 -0
  31. package/package.json +1 -1
  32. package/prisma/migrations/20260119190336_add_document_approval_workflow/migration.sql +134 -0
  33. package/prisma/schema.prisma +244 -5
@@ -156,6 +156,8 @@ export type DocumentationPlanWhereInput = {
156
156
  updatedAt?: Prisma.DateTimeFilter<"DocumentationPlan"> | Date | string;
157
157
  tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null;
158
158
  steps?: Prisma.DocumentationPlanStepListRelationFilter;
159
+ documentDefinitions?: Prisma.DocumentDefinitionListRelationFilter;
160
+ approvalStages?: Prisma.ApprovalStageListRelationFilter;
159
161
  methodPhases?: Prisma.PropertyPaymentMethodPhaseListRelationFilter;
160
162
  documentationPhases?: Prisma.DocumentationPhaseListRelationFilter;
161
163
  };
@@ -169,6 +171,8 @@ export type DocumentationPlanOrderByWithRelationInput = {
169
171
  updatedAt?: Prisma.SortOrder;
170
172
  tenant?: Prisma.TenantOrderByWithRelationInput;
171
173
  steps?: Prisma.DocumentationPlanStepOrderByRelationAggregateInput;
174
+ documentDefinitions?: Prisma.DocumentDefinitionOrderByRelationAggregateInput;
175
+ approvalStages?: Prisma.ApprovalStageOrderByRelationAggregateInput;
172
176
  methodPhases?: Prisma.PropertyPaymentMethodPhaseOrderByRelationAggregateInput;
173
177
  documentationPhases?: Prisma.DocumentationPhaseOrderByRelationAggregateInput;
174
178
  _relevance?: Prisma.DocumentationPlanOrderByRelevanceInput;
@@ -187,6 +191,8 @@ export type DocumentationPlanWhereUniqueInput = Prisma.AtLeast<{
187
191
  updatedAt?: Prisma.DateTimeFilter<"DocumentationPlan"> | Date | string;
188
192
  tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | null;
189
193
  steps?: Prisma.DocumentationPlanStepListRelationFilter;
194
+ documentDefinitions?: Prisma.DocumentDefinitionListRelationFilter;
195
+ approvalStages?: Prisma.ApprovalStageListRelationFilter;
190
196
  methodPhases?: Prisma.PropertyPaymentMethodPhaseListRelationFilter;
191
197
  documentationPhases?: Prisma.DocumentationPhaseListRelationFilter;
192
198
  }, "id" | "tenantId_name">;
@@ -223,6 +229,8 @@ export type DocumentationPlanCreateInput = {
223
229
  updatedAt?: Date | string;
224
230
  tenant?: Prisma.TenantCreateNestedOneWithoutDocumentationPlansInput;
225
231
  steps?: Prisma.DocumentationPlanStepCreateNestedManyWithoutPlanInput;
232
+ documentDefinitions?: Prisma.DocumentDefinitionCreateNestedManyWithoutPlanInput;
233
+ approvalStages?: Prisma.ApprovalStageCreateNestedManyWithoutPlanInput;
226
234
  methodPhases?: Prisma.PropertyPaymentMethodPhaseCreateNestedManyWithoutDocumentationPlanInput;
227
235
  documentationPhases?: Prisma.DocumentationPhaseCreateNestedManyWithoutDocumentationPlanInput;
228
236
  };
@@ -235,6 +243,8 @@ export type DocumentationPlanUncheckedCreateInput = {
235
243
  createdAt?: Date | string;
236
244
  updatedAt?: Date | string;
237
245
  steps?: Prisma.DocumentationPlanStepUncheckedCreateNestedManyWithoutPlanInput;
246
+ documentDefinitions?: Prisma.DocumentDefinitionUncheckedCreateNestedManyWithoutPlanInput;
247
+ approvalStages?: Prisma.ApprovalStageUncheckedCreateNestedManyWithoutPlanInput;
238
248
  methodPhases?: Prisma.PropertyPaymentMethodPhaseUncheckedCreateNestedManyWithoutDocumentationPlanInput;
239
249
  documentationPhases?: Prisma.DocumentationPhaseUncheckedCreateNestedManyWithoutDocumentationPlanInput;
240
250
  };
@@ -247,6 +257,8 @@ export type DocumentationPlanUpdateInput = {
247
257
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
248
258
  tenant?: Prisma.TenantUpdateOneWithoutDocumentationPlansNestedInput;
249
259
  steps?: Prisma.DocumentationPlanStepUpdateManyWithoutPlanNestedInput;
260
+ documentDefinitions?: Prisma.DocumentDefinitionUpdateManyWithoutPlanNestedInput;
261
+ approvalStages?: Prisma.ApprovalStageUpdateManyWithoutPlanNestedInput;
250
262
  methodPhases?: Prisma.PropertyPaymentMethodPhaseUpdateManyWithoutDocumentationPlanNestedInput;
251
263
  documentationPhases?: Prisma.DocumentationPhaseUpdateManyWithoutDocumentationPlanNestedInput;
252
264
  };
@@ -259,6 +271,8 @@ export type DocumentationPlanUncheckedUpdateInput = {
259
271
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
260
272
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
261
273
  steps?: Prisma.DocumentationPlanStepUncheckedUpdateManyWithoutPlanNestedInput;
274
+ documentDefinitions?: Prisma.DocumentDefinitionUncheckedUpdateManyWithoutPlanNestedInput;
275
+ approvalStages?: Prisma.ApprovalStageUncheckedUpdateManyWithoutPlanNestedInput;
262
276
  methodPhases?: Prisma.PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutDocumentationPlanNestedInput;
263
277
  documentationPhases?: Prisma.DocumentationPhaseUncheckedUpdateManyWithoutDocumentationPlanNestedInput;
264
278
  };
@@ -390,6 +404,30 @@ export type DocumentationPlanUpdateOneRequiredWithoutStepsNestedInput = {
390
404
  connect?: Prisma.DocumentationPlanWhereUniqueInput;
391
405
  update?: Prisma.XOR<Prisma.XOR<Prisma.DocumentationPlanUpdateToOneWithWhereWithoutStepsInput, Prisma.DocumentationPlanUpdateWithoutStepsInput>, Prisma.DocumentationPlanUncheckedUpdateWithoutStepsInput>;
392
406
  };
407
+ export type DocumentationPlanCreateNestedOneWithoutDocumentDefinitionsInput = {
408
+ create?: Prisma.XOR<Prisma.DocumentationPlanCreateWithoutDocumentDefinitionsInput, Prisma.DocumentationPlanUncheckedCreateWithoutDocumentDefinitionsInput>;
409
+ connectOrCreate?: Prisma.DocumentationPlanCreateOrConnectWithoutDocumentDefinitionsInput;
410
+ connect?: Prisma.DocumentationPlanWhereUniqueInput;
411
+ };
412
+ export type DocumentationPlanUpdateOneRequiredWithoutDocumentDefinitionsNestedInput = {
413
+ create?: Prisma.XOR<Prisma.DocumentationPlanCreateWithoutDocumentDefinitionsInput, Prisma.DocumentationPlanUncheckedCreateWithoutDocumentDefinitionsInput>;
414
+ connectOrCreate?: Prisma.DocumentationPlanCreateOrConnectWithoutDocumentDefinitionsInput;
415
+ upsert?: Prisma.DocumentationPlanUpsertWithoutDocumentDefinitionsInput;
416
+ connect?: Prisma.DocumentationPlanWhereUniqueInput;
417
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DocumentationPlanUpdateToOneWithWhereWithoutDocumentDefinitionsInput, Prisma.DocumentationPlanUpdateWithoutDocumentDefinitionsInput>, Prisma.DocumentationPlanUncheckedUpdateWithoutDocumentDefinitionsInput>;
418
+ };
419
+ export type DocumentationPlanCreateNestedOneWithoutApprovalStagesInput = {
420
+ create?: Prisma.XOR<Prisma.DocumentationPlanCreateWithoutApprovalStagesInput, Prisma.DocumentationPlanUncheckedCreateWithoutApprovalStagesInput>;
421
+ connectOrCreate?: Prisma.DocumentationPlanCreateOrConnectWithoutApprovalStagesInput;
422
+ connect?: Prisma.DocumentationPlanWhereUniqueInput;
423
+ };
424
+ export type DocumentationPlanUpdateOneRequiredWithoutApprovalStagesNestedInput = {
425
+ create?: Prisma.XOR<Prisma.DocumentationPlanCreateWithoutApprovalStagesInput, Prisma.DocumentationPlanUncheckedCreateWithoutApprovalStagesInput>;
426
+ connectOrCreate?: Prisma.DocumentationPlanCreateOrConnectWithoutApprovalStagesInput;
427
+ upsert?: Prisma.DocumentationPlanUpsertWithoutApprovalStagesInput;
428
+ connect?: Prisma.DocumentationPlanWhereUniqueInput;
429
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DocumentationPlanUpdateToOneWithWhereWithoutApprovalStagesInput, Prisma.DocumentationPlanUpdateWithoutApprovalStagesInput>, Prisma.DocumentationPlanUncheckedUpdateWithoutApprovalStagesInput>;
430
+ };
393
431
  export type DocumentationPlanCreateNestedOneWithoutMethodPhasesInput = {
394
432
  create?: Prisma.XOR<Prisma.DocumentationPlanCreateWithoutMethodPhasesInput, Prisma.DocumentationPlanUncheckedCreateWithoutMethodPhasesInput>;
395
433
  connectOrCreate?: Prisma.DocumentationPlanCreateOrConnectWithoutMethodPhasesInput;
@@ -426,6 +464,8 @@ export type DocumentationPlanCreateWithoutTenantInput = {
426
464
  createdAt?: Date | string;
427
465
  updatedAt?: Date | string;
428
466
  steps?: Prisma.DocumentationPlanStepCreateNestedManyWithoutPlanInput;
467
+ documentDefinitions?: Prisma.DocumentDefinitionCreateNestedManyWithoutPlanInput;
468
+ approvalStages?: Prisma.ApprovalStageCreateNestedManyWithoutPlanInput;
429
469
  methodPhases?: Prisma.PropertyPaymentMethodPhaseCreateNestedManyWithoutDocumentationPlanInput;
430
470
  documentationPhases?: Prisma.DocumentationPhaseCreateNestedManyWithoutDocumentationPlanInput;
431
471
  };
@@ -437,6 +477,8 @@ export type DocumentationPlanUncheckedCreateWithoutTenantInput = {
437
477
  createdAt?: Date | string;
438
478
  updatedAt?: Date | string;
439
479
  steps?: Prisma.DocumentationPlanStepUncheckedCreateNestedManyWithoutPlanInput;
480
+ documentDefinitions?: Prisma.DocumentDefinitionUncheckedCreateNestedManyWithoutPlanInput;
481
+ approvalStages?: Prisma.ApprovalStageUncheckedCreateNestedManyWithoutPlanInput;
440
482
  methodPhases?: Prisma.PropertyPaymentMethodPhaseUncheckedCreateNestedManyWithoutDocumentationPlanInput;
441
483
  documentationPhases?: Prisma.DocumentationPhaseUncheckedCreateNestedManyWithoutDocumentationPlanInput;
442
484
  };
@@ -481,6 +523,8 @@ export type DocumentationPlanCreateWithoutStepsInput = {
481
523
  createdAt?: Date | string;
482
524
  updatedAt?: Date | string;
483
525
  tenant?: Prisma.TenantCreateNestedOneWithoutDocumentationPlansInput;
526
+ documentDefinitions?: Prisma.DocumentDefinitionCreateNestedManyWithoutPlanInput;
527
+ approvalStages?: Prisma.ApprovalStageCreateNestedManyWithoutPlanInput;
484
528
  methodPhases?: Prisma.PropertyPaymentMethodPhaseCreateNestedManyWithoutDocumentationPlanInput;
485
529
  documentationPhases?: Prisma.DocumentationPhaseCreateNestedManyWithoutDocumentationPlanInput;
486
530
  };
@@ -492,6 +536,8 @@ export type DocumentationPlanUncheckedCreateWithoutStepsInput = {
492
536
  isActive?: boolean;
493
537
  createdAt?: Date | string;
494
538
  updatedAt?: Date | string;
539
+ documentDefinitions?: Prisma.DocumentDefinitionUncheckedCreateNestedManyWithoutPlanInput;
540
+ approvalStages?: Prisma.ApprovalStageUncheckedCreateNestedManyWithoutPlanInput;
495
541
  methodPhases?: Prisma.PropertyPaymentMethodPhaseUncheckedCreateNestedManyWithoutDocumentationPlanInput;
496
542
  documentationPhases?: Prisma.DocumentationPhaseUncheckedCreateNestedManyWithoutDocumentationPlanInput;
497
543
  };
@@ -516,6 +562,8 @@ export type DocumentationPlanUpdateWithoutStepsInput = {
516
562
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
517
563
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
518
564
  tenant?: Prisma.TenantUpdateOneWithoutDocumentationPlansNestedInput;
565
+ documentDefinitions?: Prisma.DocumentDefinitionUpdateManyWithoutPlanNestedInput;
566
+ approvalStages?: Prisma.ApprovalStageUpdateManyWithoutPlanNestedInput;
519
567
  methodPhases?: Prisma.PropertyPaymentMethodPhaseUpdateManyWithoutDocumentationPlanNestedInput;
520
568
  documentationPhases?: Prisma.DocumentationPhaseUpdateManyWithoutDocumentationPlanNestedInput;
521
569
  };
@@ -527,6 +575,138 @@ export type DocumentationPlanUncheckedUpdateWithoutStepsInput = {
527
575
  isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
528
576
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
529
577
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
578
+ documentDefinitions?: Prisma.DocumentDefinitionUncheckedUpdateManyWithoutPlanNestedInput;
579
+ approvalStages?: Prisma.ApprovalStageUncheckedUpdateManyWithoutPlanNestedInput;
580
+ methodPhases?: Prisma.PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutDocumentationPlanNestedInput;
581
+ documentationPhases?: Prisma.DocumentationPhaseUncheckedUpdateManyWithoutDocumentationPlanNestedInput;
582
+ };
583
+ export type DocumentationPlanCreateWithoutDocumentDefinitionsInput = {
584
+ id?: string;
585
+ name: string;
586
+ description?: string | null;
587
+ isActive?: boolean;
588
+ createdAt?: Date | string;
589
+ updatedAt?: Date | string;
590
+ tenant?: Prisma.TenantCreateNestedOneWithoutDocumentationPlansInput;
591
+ steps?: Prisma.DocumentationPlanStepCreateNestedManyWithoutPlanInput;
592
+ approvalStages?: Prisma.ApprovalStageCreateNestedManyWithoutPlanInput;
593
+ methodPhases?: Prisma.PropertyPaymentMethodPhaseCreateNestedManyWithoutDocumentationPlanInput;
594
+ documentationPhases?: Prisma.DocumentationPhaseCreateNestedManyWithoutDocumentationPlanInput;
595
+ };
596
+ export type DocumentationPlanUncheckedCreateWithoutDocumentDefinitionsInput = {
597
+ id?: string;
598
+ tenantId?: string | null;
599
+ name: string;
600
+ description?: string | null;
601
+ isActive?: boolean;
602
+ createdAt?: Date | string;
603
+ updatedAt?: Date | string;
604
+ steps?: Prisma.DocumentationPlanStepUncheckedCreateNestedManyWithoutPlanInput;
605
+ approvalStages?: Prisma.ApprovalStageUncheckedCreateNestedManyWithoutPlanInput;
606
+ methodPhases?: Prisma.PropertyPaymentMethodPhaseUncheckedCreateNestedManyWithoutDocumentationPlanInput;
607
+ documentationPhases?: Prisma.DocumentationPhaseUncheckedCreateNestedManyWithoutDocumentationPlanInput;
608
+ };
609
+ export type DocumentationPlanCreateOrConnectWithoutDocumentDefinitionsInput = {
610
+ where: Prisma.DocumentationPlanWhereUniqueInput;
611
+ create: Prisma.XOR<Prisma.DocumentationPlanCreateWithoutDocumentDefinitionsInput, Prisma.DocumentationPlanUncheckedCreateWithoutDocumentDefinitionsInput>;
612
+ };
613
+ export type DocumentationPlanUpsertWithoutDocumentDefinitionsInput = {
614
+ update: Prisma.XOR<Prisma.DocumentationPlanUpdateWithoutDocumentDefinitionsInput, Prisma.DocumentationPlanUncheckedUpdateWithoutDocumentDefinitionsInput>;
615
+ create: Prisma.XOR<Prisma.DocumentationPlanCreateWithoutDocumentDefinitionsInput, Prisma.DocumentationPlanUncheckedCreateWithoutDocumentDefinitionsInput>;
616
+ where?: Prisma.DocumentationPlanWhereInput;
617
+ };
618
+ export type DocumentationPlanUpdateToOneWithWhereWithoutDocumentDefinitionsInput = {
619
+ where?: Prisma.DocumentationPlanWhereInput;
620
+ data: Prisma.XOR<Prisma.DocumentationPlanUpdateWithoutDocumentDefinitionsInput, Prisma.DocumentationPlanUncheckedUpdateWithoutDocumentDefinitionsInput>;
621
+ };
622
+ export type DocumentationPlanUpdateWithoutDocumentDefinitionsInput = {
623
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
624
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
625
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
626
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
627
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
628
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
629
+ tenant?: Prisma.TenantUpdateOneWithoutDocumentationPlansNestedInput;
630
+ steps?: Prisma.DocumentationPlanStepUpdateManyWithoutPlanNestedInput;
631
+ approvalStages?: Prisma.ApprovalStageUpdateManyWithoutPlanNestedInput;
632
+ methodPhases?: Prisma.PropertyPaymentMethodPhaseUpdateManyWithoutDocumentationPlanNestedInput;
633
+ documentationPhases?: Prisma.DocumentationPhaseUpdateManyWithoutDocumentationPlanNestedInput;
634
+ };
635
+ export type DocumentationPlanUncheckedUpdateWithoutDocumentDefinitionsInput = {
636
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
637
+ tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
638
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
639
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
640
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
641
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
642
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
643
+ steps?: Prisma.DocumentationPlanStepUncheckedUpdateManyWithoutPlanNestedInput;
644
+ approvalStages?: Prisma.ApprovalStageUncheckedUpdateManyWithoutPlanNestedInput;
645
+ methodPhases?: Prisma.PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutDocumentationPlanNestedInput;
646
+ documentationPhases?: Prisma.DocumentationPhaseUncheckedUpdateManyWithoutDocumentationPlanNestedInput;
647
+ };
648
+ export type DocumentationPlanCreateWithoutApprovalStagesInput = {
649
+ id?: string;
650
+ name: string;
651
+ description?: string | null;
652
+ isActive?: boolean;
653
+ createdAt?: Date | string;
654
+ updatedAt?: Date | string;
655
+ tenant?: Prisma.TenantCreateNestedOneWithoutDocumentationPlansInput;
656
+ steps?: Prisma.DocumentationPlanStepCreateNestedManyWithoutPlanInput;
657
+ documentDefinitions?: Prisma.DocumentDefinitionCreateNestedManyWithoutPlanInput;
658
+ methodPhases?: Prisma.PropertyPaymentMethodPhaseCreateNestedManyWithoutDocumentationPlanInput;
659
+ documentationPhases?: Prisma.DocumentationPhaseCreateNestedManyWithoutDocumentationPlanInput;
660
+ };
661
+ export type DocumentationPlanUncheckedCreateWithoutApprovalStagesInput = {
662
+ id?: string;
663
+ tenantId?: string | null;
664
+ name: string;
665
+ description?: string | null;
666
+ isActive?: boolean;
667
+ createdAt?: Date | string;
668
+ updatedAt?: Date | string;
669
+ steps?: Prisma.DocumentationPlanStepUncheckedCreateNestedManyWithoutPlanInput;
670
+ documentDefinitions?: Prisma.DocumentDefinitionUncheckedCreateNestedManyWithoutPlanInput;
671
+ methodPhases?: Prisma.PropertyPaymentMethodPhaseUncheckedCreateNestedManyWithoutDocumentationPlanInput;
672
+ documentationPhases?: Prisma.DocumentationPhaseUncheckedCreateNestedManyWithoutDocumentationPlanInput;
673
+ };
674
+ export type DocumentationPlanCreateOrConnectWithoutApprovalStagesInput = {
675
+ where: Prisma.DocumentationPlanWhereUniqueInput;
676
+ create: Prisma.XOR<Prisma.DocumentationPlanCreateWithoutApprovalStagesInput, Prisma.DocumentationPlanUncheckedCreateWithoutApprovalStagesInput>;
677
+ };
678
+ export type DocumentationPlanUpsertWithoutApprovalStagesInput = {
679
+ update: Prisma.XOR<Prisma.DocumentationPlanUpdateWithoutApprovalStagesInput, Prisma.DocumentationPlanUncheckedUpdateWithoutApprovalStagesInput>;
680
+ create: Prisma.XOR<Prisma.DocumentationPlanCreateWithoutApprovalStagesInput, Prisma.DocumentationPlanUncheckedCreateWithoutApprovalStagesInput>;
681
+ where?: Prisma.DocumentationPlanWhereInput;
682
+ };
683
+ export type DocumentationPlanUpdateToOneWithWhereWithoutApprovalStagesInput = {
684
+ where?: Prisma.DocumentationPlanWhereInput;
685
+ data: Prisma.XOR<Prisma.DocumentationPlanUpdateWithoutApprovalStagesInput, Prisma.DocumentationPlanUncheckedUpdateWithoutApprovalStagesInput>;
686
+ };
687
+ export type DocumentationPlanUpdateWithoutApprovalStagesInput = {
688
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
689
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
690
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
691
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
692
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
693
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
694
+ tenant?: Prisma.TenantUpdateOneWithoutDocumentationPlansNestedInput;
695
+ steps?: Prisma.DocumentationPlanStepUpdateManyWithoutPlanNestedInput;
696
+ documentDefinitions?: Prisma.DocumentDefinitionUpdateManyWithoutPlanNestedInput;
697
+ methodPhases?: Prisma.PropertyPaymentMethodPhaseUpdateManyWithoutDocumentationPlanNestedInput;
698
+ documentationPhases?: Prisma.DocumentationPhaseUpdateManyWithoutDocumentationPlanNestedInput;
699
+ };
700
+ export type DocumentationPlanUncheckedUpdateWithoutApprovalStagesInput = {
701
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
702
+ tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
703
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
704
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
705
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
706
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
707
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
708
+ steps?: Prisma.DocumentationPlanStepUncheckedUpdateManyWithoutPlanNestedInput;
709
+ documentDefinitions?: Prisma.DocumentDefinitionUncheckedUpdateManyWithoutPlanNestedInput;
530
710
  methodPhases?: Prisma.PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutDocumentationPlanNestedInput;
531
711
  documentationPhases?: Prisma.DocumentationPhaseUncheckedUpdateManyWithoutDocumentationPlanNestedInput;
532
712
  };
@@ -539,6 +719,8 @@ export type DocumentationPlanCreateWithoutMethodPhasesInput = {
539
719
  updatedAt?: Date | string;
540
720
  tenant?: Prisma.TenantCreateNestedOneWithoutDocumentationPlansInput;
541
721
  steps?: Prisma.DocumentationPlanStepCreateNestedManyWithoutPlanInput;
722
+ documentDefinitions?: Prisma.DocumentDefinitionCreateNestedManyWithoutPlanInput;
723
+ approvalStages?: Prisma.ApprovalStageCreateNestedManyWithoutPlanInput;
542
724
  documentationPhases?: Prisma.DocumentationPhaseCreateNestedManyWithoutDocumentationPlanInput;
543
725
  };
544
726
  export type DocumentationPlanUncheckedCreateWithoutMethodPhasesInput = {
@@ -550,6 +732,8 @@ export type DocumentationPlanUncheckedCreateWithoutMethodPhasesInput = {
550
732
  createdAt?: Date | string;
551
733
  updatedAt?: Date | string;
552
734
  steps?: Prisma.DocumentationPlanStepUncheckedCreateNestedManyWithoutPlanInput;
735
+ documentDefinitions?: Prisma.DocumentDefinitionUncheckedCreateNestedManyWithoutPlanInput;
736
+ approvalStages?: Prisma.ApprovalStageUncheckedCreateNestedManyWithoutPlanInput;
553
737
  documentationPhases?: Prisma.DocumentationPhaseUncheckedCreateNestedManyWithoutDocumentationPlanInput;
554
738
  };
555
739
  export type DocumentationPlanCreateOrConnectWithoutMethodPhasesInput = {
@@ -574,6 +758,8 @@ export type DocumentationPlanUpdateWithoutMethodPhasesInput = {
574
758
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
575
759
  tenant?: Prisma.TenantUpdateOneWithoutDocumentationPlansNestedInput;
576
760
  steps?: Prisma.DocumentationPlanStepUpdateManyWithoutPlanNestedInput;
761
+ documentDefinitions?: Prisma.DocumentDefinitionUpdateManyWithoutPlanNestedInput;
762
+ approvalStages?: Prisma.ApprovalStageUpdateManyWithoutPlanNestedInput;
577
763
  documentationPhases?: Prisma.DocumentationPhaseUpdateManyWithoutDocumentationPlanNestedInput;
578
764
  };
579
765
  export type DocumentationPlanUncheckedUpdateWithoutMethodPhasesInput = {
@@ -585,6 +771,8 @@ export type DocumentationPlanUncheckedUpdateWithoutMethodPhasesInput = {
585
771
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
586
772
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
587
773
  steps?: Prisma.DocumentationPlanStepUncheckedUpdateManyWithoutPlanNestedInput;
774
+ documentDefinitions?: Prisma.DocumentDefinitionUncheckedUpdateManyWithoutPlanNestedInput;
775
+ approvalStages?: Prisma.ApprovalStageUncheckedUpdateManyWithoutPlanNestedInput;
588
776
  documentationPhases?: Prisma.DocumentationPhaseUncheckedUpdateManyWithoutDocumentationPlanNestedInput;
589
777
  };
590
778
  export type DocumentationPlanCreateWithoutDocumentationPhasesInput = {
@@ -596,6 +784,8 @@ export type DocumentationPlanCreateWithoutDocumentationPhasesInput = {
596
784
  updatedAt?: Date | string;
597
785
  tenant?: Prisma.TenantCreateNestedOneWithoutDocumentationPlansInput;
598
786
  steps?: Prisma.DocumentationPlanStepCreateNestedManyWithoutPlanInput;
787
+ documentDefinitions?: Prisma.DocumentDefinitionCreateNestedManyWithoutPlanInput;
788
+ approvalStages?: Prisma.ApprovalStageCreateNestedManyWithoutPlanInput;
599
789
  methodPhases?: Prisma.PropertyPaymentMethodPhaseCreateNestedManyWithoutDocumentationPlanInput;
600
790
  };
601
791
  export type DocumentationPlanUncheckedCreateWithoutDocumentationPhasesInput = {
@@ -607,6 +797,8 @@ export type DocumentationPlanUncheckedCreateWithoutDocumentationPhasesInput = {
607
797
  createdAt?: Date | string;
608
798
  updatedAt?: Date | string;
609
799
  steps?: Prisma.DocumentationPlanStepUncheckedCreateNestedManyWithoutPlanInput;
800
+ documentDefinitions?: Prisma.DocumentDefinitionUncheckedCreateNestedManyWithoutPlanInput;
801
+ approvalStages?: Prisma.ApprovalStageUncheckedCreateNestedManyWithoutPlanInput;
610
802
  methodPhases?: Prisma.PropertyPaymentMethodPhaseUncheckedCreateNestedManyWithoutDocumentationPlanInput;
611
803
  };
612
804
  export type DocumentationPlanCreateOrConnectWithoutDocumentationPhasesInput = {
@@ -631,6 +823,8 @@ export type DocumentationPlanUpdateWithoutDocumentationPhasesInput = {
631
823
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
632
824
  tenant?: Prisma.TenantUpdateOneWithoutDocumentationPlansNestedInput;
633
825
  steps?: Prisma.DocumentationPlanStepUpdateManyWithoutPlanNestedInput;
826
+ documentDefinitions?: Prisma.DocumentDefinitionUpdateManyWithoutPlanNestedInput;
827
+ approvalStages?: Prisma.ApprovalStageUpdateManyWithoutPlanNestedInput;
634
828
  methodPhases?: Prisma.PropertyPaymentMethodPhaseUpdateManyWithoutDocumentationPlanNestedInput;
635
829
  };
636
830
  export type DocumentationPlanUncheckedUpdateWithoutDocumentationPhasesInput = {
@@ -642,6 +836,8 @@ export type DocumentationPlanUncheckedUpdateWithoutDocumentationPhasesInput = {
642
836
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
643
837
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
644
838
  steps?: Prisma.DocumentationPlanStepUncheckedUpdateManyWithoutPlanNestedInput;
839
+ documentDefinitions?: Prisma.DocumentDefinitionUncheckedUpdateManyWithoutPlanNestedInput;
840
+ approvalStages?: Prisma.ApprovalStageUncheckedUpdateManyWithoutPlanNestedInput;
645
841
  methodPhases?: Prisma.PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutDocumentationPlanNestedInput;
646
842
  };
647
843
  export type DocumentationPlanCreateManyTenantInput = {
@@ -660,6 +856,8 @@ export type DocumentationPlanUpdateWithoutTenantInput = {
660
856
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
661
857
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
662
858
  steps?: Prisma.DocumentationPlanStepUpdateManyWithoutPlanNestedInput;
859
+ documentDefinitions?: Prisma.DocumentDefinitionUpdateManyWithoutPlanNestedInput;
860
+ approvalStages?: Prisma.ApprovalStageUpdateManyWithoutPlanNestedInput;
663
861
  methodPhases?: Prisma.PropertyPaymentMethodPhaseUpdateManyWithoutDocumentationPlanNestedInput;
664
862
  documentationPhases?: Prisma.DocumentationPhaseUpdateManyWithoutDocumentationPlanNestedInput;
665
863
  };
@@ -671,6 +869,8 @@ export type DocumentationPlanUncheckedUpdateWithoutTenantInput = {
671
869
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
672
870
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
673
871
  steps?: Prisma.DocumentationPlanStepUncheckedUpdateManyWithoutPlanNestedInput;
872
+ documentDefinitions?: Prisma.DocumentDefinitionUncheckedUpdateManyWithoutPlanNestedInput;
873
+ approvalStages?: Prisma.ApprovalStageUncheckedUpdateManyWithoutPlanNestedInput;
674
874
  methodPhases?: Prisma.PropertyPaymentMethodPhaseUncheckedUpdateManyWithoutDocumentationPlanNestedInput;
675
875
  documentationPhases?: Prisma.DocumentationPhaseUncheckedUpdateManyWithoutDocumentationPlanNestedInput;
676
876
  };
@@ -687,11 +887,15 @@ export type DocumentationPlanUncheckedUpdateManyWithoutTenantInput = {
687
887
  */
688
888
  export type DocumentationPlanCountOutputType = {
689
889
  steps: number;
890
+ documentDefinitions: number;
891
+ approvalStages: number;
690
892
  methodPhases: number;
691
893
  documentationPhases: number;
692
894
  };
693
895
  export type DocumentationPlanCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
694
896
  steps?: boolean | DocumentationPlanCountOutputTypeCountStepsArgs;
897
+ documentDefinitions?: boolean | DocumentationPlanCountOutputTypeCountDocumentDefinitionsArgs;
898
+ approvalStages?: boolean | DocumentationPlanCountOutputTypeCountApprovalStagesArgs;
695
899
  methodPhases?: boolean | DocumentationPlanCountOutputTypeCountMethodPhasesArgs;
696
900
  documentationPhases?: boolean | DocumentationPlanCountOutputTypeCountDocumentationPhasesArgs;
697
901
  };
@@ -710,6 +914,18 @@ export type DocumentationPlanCountOutputTypeDefaultArgs<ExtArgs extends runtime.
710
914
  export type DocumentationPlanCountOutputTypeCountStepsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
711
915
  where?: Prisma.DocumentationPlanStepWhereInput;
712
916
  };
917
+ /**
918
+ * DocumentationPlanCountOutputType without action
919
+ */
920
+ export type DocumentationPlanCountOutputTypeCountDocumentDefinitionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
921
+ where?: Prisma.DocumentDefinitionWhereInput;
922
+ };
923
+ /**
924
+ * DocumentationPlanCountOutputType without action
925
+ */
926
+ export type DocumentationPlanCountOutputTypeCountApprovalStagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
927
+ where?: Prisma.ApprovalStageWhereInput;
928
+ };
713
929
  /**
714
930
  * DocumentationPlanCountOutputType without action
715
931
  */
@@ -732,6 +948,8 @@ export type DocumentationPlanSelect<ExtArgs extends runtime.Types.Extensions.Int
732
948
  updatedAt?: boolean;
733
949
  tenant?: boolean | Prisma.DocumentationPlan$tenantArgs<ExtArgs>;
734
950
  steps?: boolean | Prisma.DocumentationPlan$stepsArgs<ExtArgs>;
951
+ documentDefinitions?: boolean | Prisma.DocumentationPlan$documentDefinitionsArgs<ExtArgs>;
952
+ approvalStages?: boolean | Prisma.DocumentationPlan$approvalStagesArgs<ExtArgs>;
735
953
  methodPhases?: boolean | Prisma.DocumentationPlan$methodPhasesArgs<ExtArgs>;
736
954
  documentationPhases?: boolean | Prisma.DocumentationPlan$documentationPhasesArgs<ExtArgs>;
737
955
  _count?: boolean | Prisma.DocumentationPlanCountOutputTypeDefaultArgs<ExtArgs>;
@@ -749,6 +967,8 @@ export type DocumentationPlanOmit<ExtArgs extends runtime.Types.Extensions.Inter
749
967
  export type DocumentationPlanInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
750
968
  tenant?: boolean | Prisma.DocumentationPlan$tenantArgs<ExtArgs>;
751
969
  steps?: boolean | Prisma.DocumentationPlan$stepsArgs<ExtArgs>;
970
+ documentDefinitions?: boolean | Prisma.DocumentationPlan$documentDefinitionsArgs<ExtArgs>;
971
+ approvalStages?: boolean | Prisma.DocumentationPlan$approvalStagesArgs<ExtArgs>;
752
972
  methodPhases?: boolean | Prisma.DocumentationPlan$methodPhasesArgs<ExtArgs>;
753
973
  documentationPhases?: boolean | Prisma.DocumentationPlan$documentationPhasesArgs<ExtArgs>;
754
974
  _count?: boolean | Prisma.DocumentationPlanCountOutputTypeDefaultArgs<ExtArgs>;
@@ -758,6 +978,8 @@ export type $DocumentationPlanPayload<ExtArgs extends runtime.Types.Extensions.I
758
978
  objects: {
759
979
  tenant: Prisma.$TenantPayload<ExtArgs> | null;
760
980
  steps: Prisma.$DocumentationPlanStepPayload<ExtArgs>[];
981
+ documentDefinitions: Prisma.$DocumentDefinitionPayload<ExtArgs>[];
982
+ approvalStages: Prisma.$ApprovalStagePayload<ExtArgs>[];
761
983
  methodPhases: Prisma.$PropertyPaymentMethodPhasePayload<ExtArgs>[];
762
984
  documentationPhases: Prisma.$DocumentationPhasePayload<ExtArgs>[];
763
985
  };
@@ -1048,6 +1270,8 @@ export interface Prisma__DocumentationPlanClient<T, Null = never, ExtArgs extend
1048
1270
  readonly [Symbol.toStringTag]: "PrismaPromise";
1049
1271
  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>;
1050
1272
  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>;
1273
+ documentDefinitions<T extends Prisma.DocumentationPlan$documentDefinitionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentationPlan$documentDefinitionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentDefinitionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1274
+ approvalStages<T extends Prisma.DocumentationPlan$approvalStagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentationPlan$approvalStagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApprovalStagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1051
1275
  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>;
1052
1276
  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>;
1053
1277
  /**
@@ -1450,6 +1674,52 @@ export type DocumentationPlan$stepsArgs<ExtArgs extends runtime.Types.Extensions
1450
1674
  skip?: number;
1451
1675
  distinct?: Prisma.DocumentationPlanStepScalarFieldEnum | Prisma.DocumentationPlanStepScalarFieldEnum[];
1452
1676
  };
1677
+ /**
1678
+ * DocumentationPlan.documentDefinitions
1679
+ */
1680
+ export type DocumentationPlan$documentDefinitionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1681
+ /**
1682
+ * Select specific fields to fetch from the DocumentDefinition
1683
+ */
1684
+ select?: Prisma.DocumentDefinitionSelect<ExtArgs> | null;
1685
+ /**
1686
+ * Omit specific fields from the DocumentDefinition
1687
+ */
1688
+ omit?: Prisma.DocumentDefinitionOmit<ExtArgs> | null;
1689
+ /**
1690
+ * Choose, which related nodes to fetch as well
1691
+ */
1692
+ include?: Prisma.DocumentDefinitionInclude<ExtArgs> | null;
1693
+ where?: Prisma.DocumentDefinitionWhereInput;
1694
+ orderBy?: Prisma.DocumentDefinitionOrderByWithRelationInput | Prisma.DocumentDefinitionOrderByWithRelationInput[];
1695
+ cursor?: Prisma.DocumentDefinitionWhereUniqueInput;
1696
+ take?: number;
1697
+ skip?: number;
1698
+ distinct?: Prisma.DocumentDefinitionScalarFieldEnum | Prisma.DocumentDefinitionScalarFieldEnum[];
1699
+ };
1700
+ /**
1701
+ * DocumentationPlan.approvalStages
1702
+ */
1703
+ export type DocumentationPlan$approvalStagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1704
+ /**
1705
+ * Select specific fields to fetch from the ApprovalStage
1706
+ */
1707
+ select?: Prisma.ApprovalStageSelect<ExtArgs> | null;
1708
+ /**
1709
+ * Omit specific fields from the ApprovalStage
1710
+ */
1711
+ omit?: Prisma.ApprovalStageOmit<ExtArgs> | null;
1712
+ /**
1713
+ * Choose, which related nodes to fetch as well
1714
+ */
1715
+ include?: Prisma.ApprovalStageInclude<ExtArgs> | null;
1716
+ where?: Prisma.ApprovalStageWhereInput;
1717
+ orderBy?: Prisma.ApprovalStageOrderByWithRelationInput | Prisma.ApprovalStageOrderByWithRelationInput[];
1718
+ cursor?: Prisma.ApprovalStageWhereUniqueInput;
1719
+ take?: number;
1720
+ skip?: number;
1721
+ distinct?: Prisma.ApprovalStageScalarFieldEnum | Prisma.ApprovalStageScalarFieldEnum[];
1722
+ };
1453
1723
  /**
1454
1724
  * DocumentationPlan.methodPhases
1455
1725
  */