@valentine-efagene/qshelter-common 2.0.66 → 2.0.67

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 (36) hide show
  1. package/dist/generated/client/browser.d.ts +29 -0
  2. package/dist/generated/client/client.d.ts +29 -0
  3. package/dist/generated/client/commonInputTypes.d.ts +120 -0
  4. package/dist/generated/client/enums.d.ts +32 -0
  5. package/dist/generated/client/enums.js +28 -0
  6. package/dist/generated/client/internal/class.d.ts +55 -0
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +475 -1
  9. package/dist/generated/client/internal/prismaNamespace.js +113 -0
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +123 -0
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +113 -0
  12. package/dist/generated/client/models/EventChannel.d.ts +1305 -0
  13. package/dist/generated/client/models/EventChannel.js +1 -0
  14. package/dist/generated/client/models/EventHandler.d.ts +1749 -0
  15. package/dist/generated/client/models/EventHandler.js +1 -0
  16. package/dist/generated/client/models/EventHandlerExecution.d.ts +1525 -0
  17. package/dist/generated/client/models/EventHandlerExecution.js +1 -0
  18. package/dist/generated/client/models/EventType.d.ts +1653 -0
  19. package/dist/generated/client/models/EventType.js +1 -0
  20. package/dist/generated/client/models/Tenant.d.ts +796 -0
  21. package/dist/generated/client/models/WorkflowEvent.d.ts +1654 -0
  22. package/dist/generated/client/models/WorkflowEvent.js +1 -0
  23. package/dist/generated/client/models/index.d.ts +5 -0
  24. package/dist/generated/client/models/index.js +5 -0
  25. package/dist/generated/client/models.d.ts +5 -0
  26. package/dist/src/events/event-config.service.d.ts +123 -0
  27. package/dist/src/events/event-config.service.js +416 -0
  28. package/dist/src/events/index.d.ts +3 -0
  29. package/dist/src/events/index.js +5 -0
  30. package/dist/src/events/workflow-event.service.d.ts +189 -0
  31. package/dist/src/events/workflow-event.service.js +588 -0
  32. package/dist/src/events/workflow-types.d.ts +288 -0
  33. package/dist/src/events/workflow-types.js +14 -0
  34. package/package.json +1 -1
  35. package/prisma/migrations/20260105151535_add_event_workflow_system/migration.sql +132 -0
  36. package/prisma/schema.prisma +271 -0
@@ -157,6 +157,10 @@ export type TenantWhereInput = {
157
157
  documentTemplates?: Prisma.DocumentTemplateListRelationFilter;
158
158
  offerLetters?: Prisma.OfferLetterListRelationFilter;
159
159
  apiKeys?: Prisma.ApiKeyListRelationFilter;
160
+ eventChannels?: Prisma.EventChannelListRelationFilter;
161
+ eventTypes?: Prisma.EventTypeListRelationFilter;
162
+ eventHandlers?: Prisma.EventHandlerListRelationFilter;
163
+ workflowEvents?: Prisma.WorkflowEventListRelationFilter;
160
164
  };
161
165
  export type TenantOrderByWithRelationInput = {
162
166
  id?: Prisma.SortOrder;
@@ -176,6 +180,10 @@ export type TenantOrderByWithRelationInput = {
176
180
  documentTemplates?: Prisma.DocumentTemplateOrderByRelationAggregateInput;
177
181
  offerLetters?: Prisma.OfferLetterOrderByRelationAggregateInput;
178
182
  apiKeys?: Prisma.ApiKeyOrderByRelationAggregateInput;
183
+ eventChannels?: Prisma.EventChannelOrderByRelationAggregateInput;
184
+ eventTypes?: Prisma.EventTypeOrderByRelationAggregateInput;
185
+ eventHandlers?: Prisma.EventHandlerOrderByRelationAggregateInput;
186
+ workflowEvents?: Prisma.WorkflowEventOrderByRelationAggregateInput;
179
187
  _relevance?: Prisma.TenantOrderByRelevanceInput;
180
188
  };
181
189
  export type TenantWhereUniqueInput = Prisma.AtLeast<{
@@ -199,6 +207,10 @@ export type TenantWhereUniqueInput = Prisma.AtLeast<{
199
207
  documentTemplates?: Prisma.DocumentTemplateListRelationFilter;
200
208
  offerLetters?: Prisma.OfferLetterListRelationFilter;
201
209
  apiKeys?: Prisma.ApiKeyListRelationFilter;
210
+ eventChannels?: Prisma.EventChannelListRelationFilter;
211
+ eventTypes?: Prisma.EventTypeListRelationFilter;
212
+ eventHandlers?: Prisma.EventHandlerListRelationFilter;
213
+ workflowEvents?: Prisma.WorkflowEventListRelationFilter;
202
214
  }, "id" | "subdomain">;
203
215
  export type TenantOrderByWithAggregationInput = {
204
216
  id?: Prisma.SortOrder;
@@ -240,6 +252,10 @@ export type TenantCreateInput = {
240
252
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
241
253
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
242
254
  apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
255
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
256
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
257
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
258
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
243
259
  };
244
260
  export type TenantUncheckedCreateInput = {
245
261
  id?: string;
@@ -259,6 +275,10 @@ export type TenantUncheckedCreateInput = {
259
275
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
260
276
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
261
277
  apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
278
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
279
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
280
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
281
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
262
282
  };
263
283
  export type TenantUpdateInput = {
264
284
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -278,6 +298,10 @@ export type TenantUpdateInput = {
278
298
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
279
299
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
280
300
  apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
301
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
302
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
303
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
304
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
281
305
  };
282
306
  export type TenantUncheckedUpdateInput = {
283
307
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -297,6 +321,10 @@ export type TenantUncheckedUpdateInput = {
297
321
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
298
322
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
299
323
  apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
324
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
325
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
326
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
327
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
300
328
  };
301
329
  export type TenantCreateManyInput = {
302
330
  id?: string;
@@ -495,6 +523,54 @@ export type TenantUpdateOneRequiredWithoutDocumentRequirementRulesNestedInput =
495
523
  connect?: Prisma.TenantWhereUniqueInput;
496
524
  update?: Prisma.XOR<Prisma.XOR<Prisma.TenantUpdateToOneWithWhereWithoutDocumentRequirementRulesInput, Prisma.TenantUpdateWithoutDocumentRequirementRulesInput>, Prisma.TenantUncheckedUpdateWithoutDocumentRequirementRulesInput>;
497
525
  };
526
+ export type TenantCreateNestedOneWithoutEventChannelsInput = {
527
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutEventChannelsInput, Prisma.TenantUncheckedCreateWithoutEventChannelsInput>;
528
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutEventChannelsInput;
529
+ connect?: Prisma.TenantWhereUniqueInput;
530
+ };
531
+ export type TenantUpdateOneRequiredWithoutEventChannelsNestedInput = {
532
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutEventChannelsInput, Prisma.TenantUncheckedCreateWithoutEventChannelsInput>;
533
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutEventChannelsInput;
534
+ upsert?: Prisma.TenantUpsertWithoutEventChannelsInput;
535
+ connect?: Prisma.TenantWhereUniqueInput;
536
+ update?: Prisma.XOR<Prisma.XOR<Prisma.TenantUpdateToOneWithWhereWithoutEventChannelsInput, Prisma.TenantUpdateWithoutEventChannelsInput>, Prisma.TenantUncheckedUpdateWithoutEventChannelsInput>;
537
+ };
538
+ export type TenantCreateNestedOneWithoutEventTypesInput = {
539
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutEventTypesInput, Prisma.TenantUncheckedCreateWithoutEventTypesInput>;
540
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutEventTypesInput;
541
+ connect?: Prisma.TenantWhereUniqueInput;
542
+ };
543
+ export type TenantUpdateOneRequiredWithoutEventTypesNestedInput = {
544
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutEventTypesInput, Prisma.TenantUncheckedCreateWithoutEventTypesInput>;
545
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutEventTypesInput;
546
+ upsert?: Prisma.TenantUpsertWithoutEventTypesInput;
547
+ connect?: Prisma.TenantWhereUniqueInput;
548
+ update?: Prisma.XOR<Prisma.XOR<Prisma.TenantUpdateToOneWithWhereWithoutEventTypesInput, Prisma.TenantUpdateWithoutEventTypesInput>, Prisma.TenantUncheckedUpdateWithoutEventTypesInput>;
549
+ };
550
+ export type TenantCreateNestedOneWithoutEventHandlersInput = {
551
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutEventHandlersInput, Prisma.TenantUncheckedCreateWithoutEventHandlersInput>;
552
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutEventHandlersInput;
553
+ connect?: Prisma.TenantWhereUniqueInput;
554
+ };
555
+ export type TenantUpdateOneRequiredWithoutEventHandlersNestedInput = {
556
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutEventHandlersInput, Prisma.TenantUncheckedCreateWithoutEventHandlersInput>;
557
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutEventHandlersInput;
558
+ upsert?: Prisma.TenantUpsertWithoutEventHandlersInput;
559
+ connect?: Prisma.TenantWhereUniqueInput;
560
+ update?: Prisma.XOR<Prisma.XOR<Prisma.TenantUpdateToOneWithWhereWithoutEventHandlersInput, Prisma.TenantUpdateWithoutEventHandlersInput>, Prisma.TenantUncheckedUpdateWithoutEventHandlersInput>;
561
+ };
562
+ export type TenantCreateNestedOneWithoutWorkflowEventsInput = {
563
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutWorkflowEventsInput, Prisma.TenantUncheckedCreateWithoutWorkflowEventsInput>;
564
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutWorkflowEventsInput;
565
+ connect?: Prisma.TenantWhereUniqueInput;
566
+ };
567
+ export type TenantUpdateOneRequiredWithoutWorkflowEventsNestedInput = {
568
+ create?: Prisma.XOR<Prisma.TenantCreateWithoutWorkflowEventsInput, Prisma.TenantUncheckedCreateWithoutWorkflowEventsInput>;
569
+ connectOrCreate?: Prisma.TenantCreateOrConnectWithoutWorkflowEventsInput;
570
+ upsert?: Prisma.TenantUpsertWithoutWorkflowEventsInput;
571
+ connect?: Prisma.TenantWhereUniqueInput;
572
+ update?: Prisma.XOR<Prisma.XOR<Prisma.TenantUpdateToOneWithWhereWithoutWorkflowEventsInput, Prisma.TenantUpdateWithoutWorkflowEventsInput>, Prisma.TenantUncheckedUpdateWithoutWorkflowEventsInput>;
573
+ };
498
574
  export type TenantCreateWithoutUsersInput = {
499
575
  id?: string;
500
576
  name: string;
@@ -512,6 +588,10 @@ export type TenantCreateWithoutUsersInput = {
512
588
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
513
589
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
514
590
  apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
591
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
592
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
593
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
594
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
515
595
  };
516
596
  export type TenantUncheckedCreateWithoutUsersInput = {
517
597
  id?: string;
@@ -530,6 +610,10 @@ export type TenantUncheckedCreateWithoutUsersInput = {
530
610
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
531
611
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
532
612
  apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
613
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
614
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
615
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
616
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
533
617
  };
534
618
  export type TenantCreateOrConnectWithoutUsersInput = {
535
619
  where: Prisma.TenantWhereUniqueInput;
@@ -561,6 +645,10 @@ export type TenantUpdateWithoutUsersInput = {
561
645
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
562
646
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
563
647
  apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
648
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
649
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
650
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
651
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
564
652
  };
565
653
  export type TenantUncheckedUpdateWithoutUsersInput = {
566
654
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -579,6 +667,10 @@ export type TenantUncheckedUpdateWithoutUsersInput = {
579
667
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
580
668
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
581
669
  apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
670
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
671
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
672
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
673
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
582
674
  };
583
675
  export type TenantCreateWithoutApiKeysInput = {
584
676
  id?: string;
@@ -597,6 +689,10 @@ export type TenantCreateWithoutApiKeysInput = {
597
689
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
598
690
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
599
691
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
692
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
693
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
694
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
695
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
600
696
  };
601
697
  export type TenantUncheckedCreateWithoutApiKeysInput = {
602
698
  id?: string;
@@ -615,6 +711,10 @@ export type TenantUncheckedCreateWithoutApiKeysInput = {
615
711
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
616
712
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
617
713
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
714
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
715
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
716
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
717
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
618
718
  };
619
719
  export type TenantCreateOrConnectWithoutApiKeysInput = {
620
720
  where: Prisma.TenantWhereUniqueInput;
@@ -646,6 +746,10 @@ export type TenantUpdateWithoutApiKeysInput = {
646
746
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
647
747
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
648
748
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
749
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
750
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
751
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
752
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
649
753
  };
650
754
  export type TenantUncheckedUpdateWithoutApiKeysInput = {
651
755
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -664,6 +768,10 @@ export type TenantUncheckedUpdateWithoutApiKeysInput = {
664
768
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
665
769
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
666
770
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
771
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
772
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
773
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
774
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
667
775
  };
668
776
  export type TenantCreateWithoutPropertiesInput = {
669
777
  id?: string;
@@ -682,6 +790,10 @@ export type TenantCreateWithoutPropertiesInput = {
682
790
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
683
791
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
684
792
  apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
793
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
794
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
795
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
796
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
685
797
  };
686
798
  export type TenantUncheckedCreateWithoutPropertiesInput = {
687
799
  id?: string;
@@ -700,6 +812,10 @@ export type TenantUncheckedCreateWithoutPropertiesInput = {
700
812
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
701
813
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
702
814
  apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
815
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
816
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
817
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
818
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
703
819
  };
704
820
  export type TenantCreateOrConnectWithoutPropertiesInput = {
705
821
  where: Prisma.TenantWhereUniqueInput;
@@ -731,6 +847,10 @@ export type TenantUpdateWithoutPropertiesInput = {
731
847
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
732
848
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
733
849
  apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
850
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
851
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
852
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
853
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
734
854
  };
735
855
  export type TenantUncheckedUpdateWithoutPropertiesInput = {
736
856
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -749,6 +869,10 @@ export type TenantUncheckedUpdateWithoutPropertiesInput = {
749
869
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
750
870
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
751
871
  apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
872
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
873
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
874
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
875
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
752
876
  };
753
877
  export type TenantCreateWithoutPaymentPlansInput = {
754
878
  id?: string;
@@ -767,6 +891,10 @@ export type TenantCreateWithoutPaymentPlansInput = {
767
891
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
768
892
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
769
893
  apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
894
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
895
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
896
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
897
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
770
898
  };
771
899
  export type TenantUncheckedCreateWithoutPaymentPlansInput = {
772
900
  id?: string;
@@ -785,6 +913,10 @@ export type TenantUncheckedCreateWithoutPaymentPlansInput = {
785
913
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
786
914
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
787
915
  apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
916
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
917
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
918
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
919
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
788
920
  };
789
921
  export type TenantCreateOrConnectWithoutPaymentPlansInput = {
790
922
  where: Prisma.TenantWhereUniqueInput;
@@ -816,6 +948,10 @@ export type TenantUpdateWithoutPaymentPlansInput = {
816
948
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
817
949
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
818
950
  apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
951
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
952
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
953
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
954
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
819
955
  };
820
956
  export type TenantUncheckedUpdateWithoutPaymentPlansInput = {
821
957
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -834,6 +970,10 @@ export type TenantUncheckedUpdateWithoutPaymentPlansInput = {
834
970
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
835
971
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
836
972
  apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
973
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
974
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
975
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
976
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
837
977
  };
838
978
  export type TenantCreateWithoutPaymentMethodsInput = {
839
979
  id?: string;
@@ -852,6 +992,10 @@ export type TenantCreateWithoutPaymentMethodsInput = {
852
992
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
853
993
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
854
994
  apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
995
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
996
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
997
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
998
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
855
999
  };
856
1000
  export type TenantUncheckedCreateWithoutPaymentMethodsInput = {
857
1001
  id?: string;
@@ -870,6 +1014,10 @@ export type TenantUncheckedCreateWithoutPaymentMethodsInput = {
870
1014
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
871
1015
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
872
1016
  apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
1017
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
1018
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
1019
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1020
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
873
1021
  };
874
1022
  export type TenantCreateOrConnectWithoutPaymentMethodsInput = {
875
1023
  where: Prisma.TenantWhereUniqueInput;
@@ -901,6 +1049,10 @@ export type TenantUpdateWithoutPaymentMethodsInput = {
901
1049
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
902
1050
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
903
1051
  apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
1052
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
1053
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
1054
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1055
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
904
1056
  };
905
1057
  export type TenantUncheckedUpdateWithoutPaymentMethodsInput = {
906
1058
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -919,6 +1071,10 @@ export type TenantUncheckedUpdateWithoutPaymentMethodsInput = {
919
1071
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
920
1072
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
921
1073
  apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
1074
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
1075
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
1076
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1077
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
922
1078
  };
923
1079
  export type TenantCreateWithoutContractsInput = {
924
1080
  id?: string;
@@ -937,6 +1093,10 @@ export type TenantCreateWithoutContractsInput = {
937
1093
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
938
1094
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
939
1095
  apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
1096
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
1097
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
1098
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1099
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
940
1100
  };
941
1101
  export type TenantUncheckedCreateWithoutContractsInput = {
942
1102
  id?: string;
@@ -955,6 +1115,10 @@ export type TenantUncheckedCreateWithoutContractsInput = {
955
1115
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
956
1116
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
957
1117
  apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
1118
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
1119
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
1120
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1121
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
958
1122
  };
959
1123
  export type TenantCreateOrConnectWithoutContractsInput = {
960
1124
  where: Prisma.TenantWhereUniqueInput;
@@ -986,6 +1150,10 @@ export type TenantUpdateWithoutContractsInput = {
986
1150
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
987
1151
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
988
1152
  apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
1153
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
1154
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
1155
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1156
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
989
1157
  };
990
1158
  export type TenantUncheckedUpdateWithoutContractsInput = {
991
1159
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1004,6 +1172,10 @@ export type TenantUncheckedUpdateWithoutContractsInput = {
1004
1172
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
1005
1173
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
1006
1174
  apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
1175
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
1176
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
1177
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1178
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1007
1179
  };
1008
1180
  export type TenantCreateWithoutDocumentTemplatesInput = {
1009
1181
  id?: string;
@@ -1022,6 +1194,10 @@ export type TenantCreateWithoutDocumentTemplatesInput = {
1022
1194
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
1023
1195
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
1024
1196
  apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
1197
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
1198
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
1199
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1200
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1025
1201
  };
1026
1202
  export type TenantUncheckedCreateWithoutDocumentTemplatesInput = {
1027
1203
  id?: string;
@@ -1040,6 +1216,10 @@ export type TenantUncheckedCreateWithoutDocumentTemplatesInput = {
1040
1216
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
1041
1217
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
1042
1218
  apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
1219
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
1220
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
1221
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1222
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1043
1223
  };
1044
1224
  export type TenantCreateOrConnectWithoutDocumentTemplatesInput = {
1045
1225
  where: Prisma.TenantWhereUniqueInput;
@@ -1071,6 +1251,10 @@ export type TenantUpdateWithoutDocumentTemplatesInput = {
1071
1251
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
1072
1252
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
1073
1253
  apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
1254
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
1255
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
1256
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1257
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1074
1258
  };
1075
1259
  export type TenantUncheckedUpdateWithoutDocumentTemplatesInput = {
1076
1260
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1089,6 +1273,10 @@ export type TenantUncheckedUpdateWithoutDocumentTemplatesInput = {
1089
1273
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
1090
1274
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
1091
1275
  apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
1276
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
1277
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
1278
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1279
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1092
1280
  };
1093
1281
  export type TenantCreateWithoutOfferLettersInput = {
1094
1282
  id?: string;
@@ -1107,6 +1295,10 @@ export type TenantCreateWithoutOfferLettersInput = {
1107
1295
  contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
1108
1296
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
1109
1297
  apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
1298
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
1299
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
1300
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1301
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1110
1302
  };
1111
1303
  export type TenantUncheckedCreateWithoutOfferLettersInput = {
1112
1304
  id?: string;
@@ -1125,6 +1317,10 @@ export type TenantUncheckedCreateWithoutOfferLettersInput = {
1125
1317
  contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
1126
1318
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
1127
1319
  apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
1320
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
1321
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
1322
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1323
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1128
1324
  };
1129
1325
  export type TenantCreateOrConnectWithoutOfferLettersInput = {
1130
1326
  where: Prisma.TenantWhereUniqueInput;
@@ -1156,6 +1352,10 @@ export type TenantUpdateWithoutOfferLettersInput = {
1156
1352
  contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
1157
1353
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
1158
1354
  apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
1355
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
1356
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
1357
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1358
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1159
1359
  };
1160
1360
  export type TenantUncheckedUpdateWithoutOfferLettersInput = {
1161
1361
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1174,6 +1374,10 @@ export type TenantUncheckedUpdateWithoutOfferLettersInput = {
1174
1374
  contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
1175
1375
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
1176
1376
  apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
1377
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
1378
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
1379
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1380
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1177
1381
  };
1178
1382
  export type TenantCreateWithoutContractTerminationsInput = {
1179
1383
  id?: string;
@@ -1192,6 +1396,10 @@ export type TenantCreateWithoutContractTerminationsInput = {
1192
1396
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
1193
1397
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
1194
1398
  apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
1399
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
1400
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
1401
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1402
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1195
1403
  };
1196
1404
  export type TenantUncheckedCreateWithoutContractTerminationsInput = {
1197
1405
  id?: string;
@@ -1210,6 +1418,10 @@ export type TenantUncheckedCreateWithoutContractTerminationsInput = {
1210
1418
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
1211
1419
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
1212
1420
  apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
1421
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
1422
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
1423
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1424
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1213
1425
  };
1214
1426
  export type TenantCreateOrConnectWithoutContractTerminationsInput = {
1215
1427
  where: Prisma.TenantWhereUniqueInput;
@@ -1241,6 +1453,10 @@ export type TenantUpdateWithoutContractTerminationsInput = {
1241
1453
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
1242
1454
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
1243
1455
  apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
1456
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
1457
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
1458
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1459
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1244
1460
  };
1245
1461
  export type TenantUncheckedUpdateWithoutContractTerminationsInput = {
1246
1462
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1259,6 +1475,10 @@ export type TenantUncheckedUpdateWithoutContractTerminationsInput = {
1259
1475
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
1260
1476
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
1261
1477
  apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
1478
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
1479
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
1480
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1481
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1262
1482
  };
1263
1483
  export type TenantCreateWithoutPaymentMethodChangeRequestsInput = {
1264
1484
  id?: string;
@@ -1277,6 +1497,10 @@ export type TenantCreateWithoutPaymentMethodChangeRequestsInput = {
1277
1497
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
1278
1498
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
1279
1499
  apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
1500
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
1501
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
1502
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1503
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1280
1504
  };
1281
1505
  export type TenantUncheckedCreateWithoutPaymentMethodChangeRequestsInput = {
1282
1506
  id?: string;
@@ -1295,6 +1519,10 @@ export type TenantUncheckedCreateWithoutPaymentMethodChangeRequestsInput = {
1295
1519
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
1296
1520
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
1297
1521
  apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
1522
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
1523
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
1524
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1525
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1298
1526
  };
1299
1527
  export type TenantCreateOrConnectWithoutPaymentMethodChangeRequestsInput = {
1300
1528
  where: Prisma.TenantWhereUniqueInput;
@@ -1326,6 +1554,10 @@ export type TenantUpdateWithoutPaymentMethodChangeRequestsInput = {
1326
1554
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
1327
1555
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
1328
1556
  apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
1557
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
1558
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
1559
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1560
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1329
1561
  };
1330
1562
  export type TenantUncheckedUpdateWithoutPaymentMethodChangeRequestsInput = {
1331
1563
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1344,6 +1576,10 @@ export type TenantUncheckedUpdateWithoutPaymentMethodChangeRequestsInput = {
1344
1576
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
1345
1577
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
1346
1578
  apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
1579
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
1580
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
1581
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1582
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1347
1583
  };
1348
1584
  export type TenantCreateWithoutDocumentRequirementRulesInput = {
1349
1585
  id?: string;
@@ -1362,6 +1598,10 @@ export type TenantCreateWithoutDocumentRequirementRulesInput = {
1362
1598
  documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
1363
1599
  offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
1364
1600
  apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
1601
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
1602
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
1603
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1604
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1365
1605
  };
1366
1606
  export type TenantUncheckedCreateWithoutDocumentRequirementRulesInput = {
1367
1607
  id?: string;
@@ -1380,6 +1620,10 @@ export type TenantUncheckedCreateWithoutDocumentRequirementRulesInput = {
1380
1620
  documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
1381
1621
  offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
1382
1622
  apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
1623
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
1624
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
1625
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1626
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1383
1627
  };
1384
1628
  export type TenantCreateOrConnectWithoutDocumentRequirementRulesInput = {
1385
1629
  where: Prisma.TenantWhereUniqueInput;
@@ -1411,6 +1655,10 @@ export type TenantUpdateWithoutDocumentRequirementRulesInput = {
1411
1655
  documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
1412
1656
  offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
1413
1657
  apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
1658
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
1659
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
1660
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1661
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1414
1662
  };
1415
1663
  export type TenantUncheckedUpdateWithoutDocumentRequirementRulesInput = {
1416
1664
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -1429,6 +1677,414 @@ export type TenantUncheckedUpdateWithoutDocumentRequirementRulesInput = {
1429
1677
  documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
1430
1678
  offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
1431
1679
  apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
1680
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
1681
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
1682
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1683
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1684
+ };
1685
+ export type TenantCreateWithoutEventChannelsInput = {
1686
+ id?: string;
1687
+ name: string;
1688
+ subdomain: string;
1689
+ isActive?: boolean;
1690
+ createdAt?: Date | string;
1691
+ updatedAt?: Date | string;
1692
+ users?: Prisma.UserCreateNestedManyWithoutTenantInput;
1693
+ properties?: Prisma.PropertyCreateNestedManyWithoutTenantInput;
1694
+ paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
1695
+ paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
1696
+ contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
1697
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
1698
+ documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
1699
+ contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
1700
+ documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
1701
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
1702
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
1703
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
1704
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1705
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1706
+ };
1707
+ export type TenantUncheckedCreateWithoutEventChannelsInput = {
1708
+ id?: string;
1709
+ name: string;
1710
+ subdomain: string;
1711
+ isActive?: boolean;
1712
+ createdAt?: Date | string;
1713
+ updatedAt?: Date | string;
1714
+ users?: Prisma.UserUncheckedCreateNestedManyWithoutTenantInput;
1715
+ properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutTenantInput;
1716
+ paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
1717
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
1718
+ contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
1719
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
1720
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
1721
+ contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
1722
+ documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
1723
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
1724
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
1725
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
1726
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1727
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1728
+ };
1729
+ export type TenantCreateOrConnectWithoutEventChannelsInput = {
1730
+ where: Prisma.TenantWhereUniqueInput;
1731
+ create: Prisma.XOR<Prisma.TenantCreateWithoutEventChannelsInput, Prisma.TenantUncheckedCreateWithoutEventChannelsInput>;
1732
+ };
1733
+ export type TenantUpsertWithoutEventChannelsInput = {
1734
+ update: Prisma.XOR<Prisma.TenantUpdateWithoutEventChannelsInput, Prisma.TenantUncheckedUpdateWithoutEventChannelsInput>;
1735
+ create: Prisma.XOR<Prisma.TenantCreateWithoutEventChannelsInput, Prisma.TenantUncheckedCreateWithoutEventChannelsInput>;
1736
+ where?: Prisma.TenantWhereInput;
1737
+ };
1738
+ export type TenantUpdateToOneWithWhereWithoutEventChannelsInput = {
1739
+ where?: Prisma.TenantWhereInput;
1740
+ data: Prisma.XOR<Prisma.TenantUpdateWithoutEventChannelsInput, Prisma.TenantUncheckedUpdateWithoutEventChannelsInput>;
1741
+ };
1742
+ export type TenantUpdateWithoutEventChannelsInput = {
1743
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1744
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1745
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
1746
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1747
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1748
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1749
+ users?: Prisma.UserUpdateManyWithoutTenantNestedInput;
1750
+ properties?: Prisma.PropertyUpdateManyWithoutTenantNestedInput;
1751
+ paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
1752
+ paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
1753
+ contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
1754
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
1755
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
1756
+ contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
1757
+ documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
1758
+ offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
1759
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
1760
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
1761
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1762
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1763
+ };
1764
+ export type TenantUncheckedUpdateWithoutEventChannelsInput = {
1765
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1766
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1767
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
1768
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1769
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1770
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1771
+ users?: Prisma.UserUncheckedUpdateManyWithoutTenantNestedInput;
1772
+ properties?: Prisma.PropertyUncheckedUpdateManyWithoutTenantNestedInput;
1773
+ paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
1774
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
1775
+ contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
1776
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
1777
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
1778
+ contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
1779
+ documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
1780
+ offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
1781
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
1782
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
1783
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1784
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1785
+ };
1786
+ export type TenantCreateWithoutEventTypesInput = {
1787
+ id?: string;
1788
+ name: string;
1789
+ subdomain: string;
1790
+ isActive?: boolean;
1791
+ createdAt?: Date | string;
1792
+ updatedAt?: Date | string;
1793
+ users?: Prisma.UserCreateNestedManyWithoutTenantInput;
1794
+ properties?: Prisma.PropertyCreateNestedManyWithoutTenantInput;
1795
+ paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
1796
+ paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
1797
+ contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
1798
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
1799
+ documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
1800
+ contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
1801
+ documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
1802
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
1803
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
1804
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
1805
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
1806
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1807
+ };
1808
+ export type TenantUncheckedCreateWithoutEventTypesInput = {
1809
+ id?: string;
1810
+ name: string;
1811
+ subdomain: string;
1812
+ isActive?: boolean;
1813
+ createdAt?: Date | string;
1814
+ updatedAt?: Date | string;
1815
+ users?: Prisma.UserUncheckedCreateNestedManyWithoutTenantInput;
1816
+ properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutTenantInput;
1817
+ paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
1818
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
1819
+ contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
1820
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
1821
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
1822
+ contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
1823
+ documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
1824
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
1825
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
1826
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
1827
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
1828
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1829
+ };
1830
+ export type TenantCreateOrConnectWithoutEventTypesInput = {
1831
+ where: Prisma.TenantWhereUniqueInput;
1832
+ create: Prisma.XOR<Prisma.TenantCreateWithoutEventTypesInput, Prisma.TenantUncheckedCreateWithoutEventTypesInput>;
1833
+ };
1834
+ export type TenantUpsertWithoutEventTypesInput = {
1835
+ update: Prisma.XOR<Prisma.TenantUpdateWithoutEventTypesInput, Prisma.TenantUncheckedUpdateWithoutEventTypesInput>;
1836
+ create: Prisma.XOR<Prisma.TenantCreateWithoutEventTypesInput, Prisma.TenantUncheckedCreateWithoutEventTypesInput>;
1837
+ where?: Prisma.TenantWhereInput;
1838
+ };
1839
+ export type TenantUpdateToOneWithWhereWithoutEventTypesInput = {
1840
+ where?: Prisma.TenantWhereInput;
1841
+ data: Prisma.XOR<Prisma.TenantUpdateWithoutEventTypesInput, Prisma.TenantUncheckedUpdateWithoutEventTypesInput>;
1842
+ };
1843
+ export type TenantUpdateWithoutEventTypesInput = {
1844
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1845
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1846
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
1847
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1848
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1849
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1850
+ users?: Prisma.UserUpdateManyWithoutTenantNestedInput;
1851
+ properties?: Prisma.PropertyUpdateManyWithoutTenantNestedInput;
1852
+ paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
1853
+ paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
1854
+ contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
1855
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
1856
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
1857
+ contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
1858
+ documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
1859
+ offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
1860
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
1861
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
1862
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
1863
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1864
+ };
1865
+ export type TenantUncheckedUpdateWithoutEventTypesInput = {
1866
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1867
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1868
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
1869
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1870
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1871
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1872
+ users?: Prisma.UserUncheckedUpdateManyWithoutTenantNestedInput;
1873
+ properties?: Prisma.PropertyUncheckedUpdateManyWithoutTenantNestedInput;
1874
+ paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
1875
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
1876
+ contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
1877
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
1878
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
1879
+ contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
1880
+ documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
1881
+ offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
1882
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
1883
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
1884
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1885
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1886
+ };
1887
+ export type TenantCreateWithoutEventHandlersInput = {
1888
+ id?: string;
1889
+ name: string;
1890
+ subdomain: string;
1891
+ isActive?: boolean;
1892
+ createdAt?: Date | string;
1893
+ updatedAt?: Date | string;
1894
+ users?: Prisma.UserCreateNestedManyWithoutTenantInput;
1895
+ properties?: Prisma.PropertyCreateNestedManyWithoutTenantInput;
1896
+ paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
1897
+ paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
1898
+ contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
1899
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
1900
+ documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
1901
+ contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
1902
+ documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
1903
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
1904
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
1905
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
1906
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
1907
+ workflowEvents?: Prisma.WorkflowEventCreateNestedManyWithoutTenantInput;
1908
+ };
1909
+ export type TenantUncheckedCreateWithoutEventHandlersInput = {
1910
+ id?: string;
1911
+ name: string;
1912
+ subdomain: string;
1913
+ isActive?: boolean;
1914
+ createdAt?: Date | string;
1915
+ updatedAt?: Date | string;
1916
+ users?: Prisma.UserUncheckedCreateNestedManyWithoutTenantInput;
1917
+ properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutTenantInput;
1918
+ paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
1919
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
1920
+ contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
1921
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
1922
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
1923
+ contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
1924
+ documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
1925
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
1926
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
1927
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
1928
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
1929
+ workflowEvents?: Prisma.WorkflowEventUncheckedCreateNestedManyWithoutTenantInput;
1930
+ };
1931
+ export type TenantCreateOrConnectWithoutEventHandlersInput = {
1932
+ where: Prisma.TenantWhereUniqueInput;
1933
+ create: Prisma.XOR<Prisma.TenantCreateWithoutEventHandlersInput, Prisma.TenantUncheckedCreateWithoutEventHandlersInput>;
1934
+ };
1935
+ export type TenantUpsertWithoutEventHandlersInput = {
1936
+ update: Prisma.XOR<Prisma.TenantUpdateWithoutEventHandlersInput, Prisma.TenantUncheckedUpdateWithoutEventHandlersInput>;
1937
+ create: Prisma.XOR<Prisma.TenantCreateWithoutEventHandlersInput, Prisma.TenantUncheckedCreateWithoutEventHandlersInput>;
1938
+ where?: Prisma.TenantWhereInput;
1939
+ };
1940
+ export type TenantUpdateToOneWithWhereWithoutEventHandlersInput = {
1941
+ where?: Prisma.TenantWhereInput;
1942
+ data: Prisma.XOR<Prisma.TenantUpdateWithoutEventHandlersInput, Prisma.TenantUncheckedUpdateWithoutEventHandlersInput>;
1943
+ };
1944
+ export type TenantUpdateWithoutEventHandlersInput = {
1945
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1946
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1947
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
1948
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1949
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1950
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1951
+ users?: Prisma.UserUpdateManyWithoutTenantNestedInput;
1952
+ properties?: Prisma.PropertyUpdateManyWithoutTenantNestedInput;
1953
+ paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
1954
+ paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
1955
+ contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
1956
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
1957
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
1958
+ contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
1959
+ documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
1960
+ offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
1961
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
1962
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
1963
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
1964
+ workflowEvents?: Prisma.WorkflowEventUpdateManyWithoutTenantNestedInput;
1965
+ };
1966
+ export type TenantUncheckedUpdateWithoutEventHandlersInput = {
1967
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1968
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1969
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
1970
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1971
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1972
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1973
+ users?: Prisma.UserUncheckedUpdateManyWithoutTenantNestedInput;
1974
+ properties?: Prisma.PropertyUncheckedUpdateManyWithoutTenantNestedInput;
1975
+ paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
1976
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
1977
+ contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
1978
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
1979
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
1980
+ contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
1981
+ documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
1982
+ offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
1983
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
1984
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
1985
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
1986
+ workflowEvents?: Prisma.WorkflowEventUncheckedUpdateManyWithoutTenantNestedInput;
1987
+ };
1988
+ export type TenantCreateWithoutWorkflowEventsInput = {
1989
+ id?: string;
1990
+ name: string;
1991
+ subdomain: string;
1992
+ isActive?: boolean;
1993
+ createdAt?: Date | string;
1994
+ updatedAt?: Date | string;
1995
+ users?: Prisma.UserCreateNestedManyWithoutTenantInput;
1996
+ properties?: Prisma.PropertyCreateNestedManyWithoutTenantInput;
1997
+ paymentPlans?: Prisma.PaymentPlanCreateNestedManyWithoutTenantInput;
1998
+ paymentMethods?: Prisma.PropertyPaymentMethodCreateNestedManyWithoutTenantInput;
1999
+ contracts?: Prisma.ContractCreateNestedManyWithoutTenantInput;
2000
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestCreateNestedManyWithoutTenantInput;
2001
+ documentRequirementRules?: Prisma.DocumentRequirementRuleCreateNestedManyWithoutTenantInput;
2002
+ contractTerminations?: Prisma.ContractTerminationCreateNestedManyWithoutTenantInput;
2003
+ documentTemplates?: Prisma.DocumentTemplateCreateNestedManyWithoutTenantInput;
2004
+ offerLetters?: Prisma.OfferLetterCreateNestedManyWithoutTenantInput;
2005
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutTenantInput;
2006
+ eventChannels?: Prisma.EventChannelCreateNestedManyWithoutTenantInput;
2007
+ eventTypes?: Prisma.EventTypeCreateNestedManyWithoutTenantInput;
2008
+ eventHandlers?: Prisma.EventHandlerCreateNestedManyWithoutTenantInput;
2009
+ };
2010
+ export type TenantUncheckedCreateWithoutWorkflowEventsInput = {
2011
+ id?: string;
2012
+ name: string;
2013
+ subdomain: string;
2014
+ isActive?: boolean;
2015
+ createdAt?: Date | string;
2016
+ updatedAt?: Date | string;
2017
+ users?: Prisma.UserUncheckedCreateNestedManyWithoutTenantInput;
2018
+ properties?: Prisma.PropertyUncheckedCreateNestedManyWithoutTenantInput;
2019
+ paymentPlans?: Prisma.PaymentPlanUncheckedCreateNestedManyWithoutTenantInput;
2020
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedCreateNestedManyWithoutTenantInput;
2021
+ contracts?: Prisma.ContractUncheckedCreateNestedManyWithoutTenantInput;
2022
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedCreateNestedManyWithoutTenantInput;
2023
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedCreateNestedManyWithoutTenantInput;
2024
+ contractTerminations?: Prisma.ContractTerminationUncheckedCreateNestedManyWithoutTenantInput;
2025
+ documentTemplates?: Prisma.DocumentTemplateUncheckedCreateNestedManyWithoutTenantInput;
2026
+ offerLetters?: Prisma.OfferLetterUncheckedCreateNestedManyWithoutTenantInput;
2027
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutTenantInput;
2028
+ eventChannels?: Prisma.EventChannelUncheckedCreateNestedManyWithoutTenantInput;
2029
+ eventTypes?: Prisma.EventTypeUncheckedCreateNestedManyWithoutTenantInput;
2030
+ eventHandlers?: Prisma.EventHandlerUncheckedCreateNestedManyWithoutTenantInput;
2031
+ };
2032
+ export type TenantCreateOrConnectWithoutWorkflowEventsInput = {
2033
+ where: Prisma.TenantWhereUniqueInput;
2034
+ create: Prisma.XOR<Prisma.TenantCreateWithoutWorkflowEventsInput, Prisma.TenantUncheckedCreateWithoutWorkflowEventsInput>;
2035
+ };
2036
+ export type TenantUpsertWithoutWorkflowEventsInput = {
2037
+ update: Prisma.XOR<Prisma.TenantUpdateWithoutWorkflowEventsInput, Prisma.TenantUncheckedUpdateWithoutWorkflowEventsInput>;
2038
+ create: Prisma.XOR<Prisma.TenantCreateWithoutWorkflowEventsInput, Prisma.TenantUncheckedCreateWithoutWorkflowEventsInput>;
2039
+ where?: Prisma.TenantWhereInput;
2040
+ };
2041
+ export type TenantUpdateToOneWithWhereWithoutWorkflowEventsInput = {
2042
+ where?: Prisma.TenantWhereInput;
2043
+ data: Prisma.XOR<Prisma.TenantUpdateWithoutWorkflowEventsInput, Prisma.TenantUncheckedUpdateWithoutWorkflowEventsInput>;
2044
+ };
2045
+ export type TenantUpdateWithoutWorkflowEventsInput = {
2046
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2047
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2048
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
2049
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2050
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2051
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2052
+ users?: Prisma.UserUpdateManyWithoutTenantNestedInput;
2053
+ properties?: Prisma.PropertyUpdateManyWithoutTenantNestedInput;
2054
+ paymentPlans?: Prisma.PaymentPlanUpdateManyWithoutTenantNestedInput;
2055
+ paymentMethods?: Prisma.PropertyPaymentMethodUpdateManyWithoutTenantNestedInput;
2056
+ contracts?: Prisma.ContractUpdateManyWithoutTenantNestedInput;
2057
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUpdateManyWithoutTenantNestedInput;
2058
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUpdateManyWithoutTenantNestedInput;
2059
+ contractTerminations?: Prisma.ContractTerminationUpdateManyWithoutTenantNestedInput;
2060
+ documentTemplates?: Prisma.DocumentTemplateUpdateManyWithoutTenantNestedInput;
2061
+ offerLetters?: Prisma.OfferLetterUpdateManyWithoutTenantNestedInput;
2062
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutTenantNestedInput;
2063
+ eventChannels?: Prisma.EventChannelUpdateManyWithoutTenantNestedInput;
2064
+ eventTypes?: Prisma.EventTypeUpdateManyWithoutTenantNestedInput;
2065
+ eventHandlers?: Prisma.EventHandlerUpdateManyWithoutTenantNestedInput;
2066
+ };
2067
+ export type TenantUncheckedUpdateWithoutWorkflowEventsInput = {
2068
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2069
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2070
+ subdomain?: Prisma.StringFieldUpdateOperationsInput | string;
2071
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2072
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2073
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2074
+ users?: Prisma.UserUncheckedUpdateManyWithoutTenantNestedInput;
2075
+ properties?: Prisma.PropertyUncheckedUpdateManyWithoutTenantNestedInput;
2076
+ paymentPlans?: Prisma.PaymentPlanUncheckedUpdateManyWithoutTenantNestedInput;
2077
+ paymentMethods?: Prisma.PropertyPaymentMethodUncheckedUpdateManyWithoutTenantNestedInput;
2078
+ contracts?: Prisma.ContractUncheckedUpdateManyWithoutTenantNestedInput;
2079
+ paymentMethodChangeRequests?: Prisma.PaymentMethodChangeRequestUncheckedUpdateManyWithoutTenantNestedInput;
2080
+ documentRequirementRules?: Prisma.DocumentRequirementRuleUncheckedUpdateManyWithoutTenantNestedInput;
2081
+ contractTerminations?: Prisma.ContractTerminationUncheckedUpdateManyWithoutTenantNestedInput;
2082
+ documentTemplates?: Prisma.DocumentTemplateUncheckedUpdateManyWithoutTenantNestedInput;
2083
+ offerLetters?: Prisma.OfferLetterUncheckedUpdateManyWithoutTenantNestedInput;
2084
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutTenantNestedInput;
2085
+ eventChannels?: Prisma.EventChannelUncheckedUpdateManyWithoutTenantNestedInput;
2086
+ eventTypes?: Prisma.EventTypeUncheckedUpdateManyWithoutTenantNestedInput;
2087
+ eventHandlers?: Prisma.EventHandlerUncheckedUpdateManyWithoutTenantNestedInput;
1432
2088
  };
1433
2089
  /**
1434
2090
  * Count Type TenantCountOutputType
@@ -1445,6 +2101,10 @@ export type TenantCountOutputType = {
1445
2101
  documentTemplates: number;
1446
2102
  offerLetters: number;
1447
2103
  apiKeys: number;
2104
+ eventChannels: number;
2105
+ eventTypes: number;
2106
+ eventHandlers: number;
2107
+ workflowEvents: number;
1448
2108
  };
1449
2109
  export type TenantCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1450
2110
  users?: boolean | TenantCountOutputTypeCountUsersArgs;
@@ -1458,6 +2118,10 @@ export type TenantCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions
1458
2118
  documentTemplates?: boolean | TenantCountOutputTypeCountDocumentTemplatesArgs;
1459
2119
  offerLetters?: boolean | TenantCountOutputTypeCountOfferLettersArgs;
1460
2120
  apiKeys?: boolean | TenantCountOutputTypeCountApiKeysArgs;
2121
+ eventChannels?: boolean | TenantCountOutputTypeCountEventChannelsArgs;
2122
+ eventTypes?: boolean | TenantCountOutputTypeCountEventTypesArgs;
2123
+ eventHandlers?: boolean | TenantCountOutputTypeCountEventHandlersArgs;
2124
+ workflowEvents?: boolean | TenantCountOutputTypeCountWorkflowEventsArgs;
1461
2125
  };
1462
2126
  /**
1463
2127
  * TenantCountOutputType without action
@@ -1534,6 +2198,30 @@ export type TenantCountOutputTypeCountOfferLettersArgs<ExtArgs extends runtime.T
1534
2198
  export type TenantCountOutputTypeCountApiKeysArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1535
2199
  where?: Prisma.ApiKeyWhereInput;
1536
2200
  };
2201
+ /**
2202
+ * TenantCountOutputType without action
2203
+ */
2204
+ export type TenantCountOutputTypeCountEventChannelsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2205
+ where?: Prisma.EventChannelWhereInput;
2206
+ };
2207
+ /**
2208
+ * TenantCountOutputType without action
2209
+ */
2210
+ export type TenantCountOutputTypeCountEventTypesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2211
+ where?: Prisma.EventTypeWhereInput;
2212
+ };
2213
+ /**
2214
+ * TenantCountOutputType without action
2215
+ */
2216
+ export type TenantCountOutputTypeCountEventHandlersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2217
+ where?: Prisma.EventHandlerWhereInput;
2218
+ };
2219
+ /**
2220
+ * TenantCountOutputType without action
2221
+ */
2222
+ export type TenantCountOutputTypeCountWorkflowEventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2223
+ where?: Prisma.WorkflowEventWhereInput;
2224
+ };
1537
2225
  export type TenantSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1538
2226
  id?: boolean;
1539
2227
  name?: boolean;
@@ -1552,6 +2240,10 @@ export type TenantSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
1552
2240
  documentTemplates?: boolean | Prisma.Tenant$documentTemplatesArgs<ExtArgs>;
1553
2241
  offerLetters?: boolean | Prisma.Tenant$offerLettersArgs<ExtArgs>;
1554
2242
  apiKeys?: boolean | Prisma.Tenant$apiKeysArgs<ExtArgs>;
2243
+ eventChannels?: boolean | Prisma.Tenant$eventChannelsArgs<ExtArgs>;
2244
+ eventTypes?: boolean | Prisma.Tenant$eventTypesArgs<ExtArgs>;
2245
+ eventHandlers?: boolean | Prisma.Tenant$eventHandlersArgs<ExtArgs>;
2246
+ workflowEvents?: boolean | Prisma.Tenant$workflowEventsArgs<ExtArgs>;
1555
2247
  _count?: boolean | Prisma.TenantCountOutputTypeDefaultArgs<ExtArgs>;
1556
2248
  }, ExtArgs["result"]["tenant"]>;
1557
2249
  export type TenantSelectScalar = {
@@ -1575,6 +2267,10 @@ export type TenantInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs
1575
2267
  documentTemplates?: boolean | Prisma.Tenant$documentTemplatesArgs<ExtArgs>;
1576
2268
  offerLetters?: boolean | Prisma.Tenant$offerLettersArgs<ExtArgs>;
1577
2269
  apiKeys?: boolean | Prisma.Tenant$apiKeysArgs<ExtArgs>;
2270
+ eventChannels?: boolean | Prisma.Tenant$eventChannelsArgs<ExtArgs>;
2271
+ eventTypes?: boolean | Prisma.Tenant$eventTypesArgs<ExtArgs>;
2272
+ eventHandlers?: boolean | Prisma.Tenant$eventHandlersArgs<ExtArgs>;
2273
+ workflowEvents?: boolean | Prisma.Tenant$workflowEventsArgs<ExtArgs>;
1578
2274
  _count?: boolean | Prisma.TenantCountOutputTypeDefaultArgs<ExtArgs>;
1579
2275
  };
1580
2276
  export type $TenantPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -1591,6 +2287,10 @@ export type $TenantPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
1591
2287
  documentTemplates: Prisma.$DocumentTemplatePayload<ExtArgs>[];
1592
2288
  offerLetters: Prisma.$OfferLetterPayload<ExtArgs>[];
1593
2289
  apiKeys: Prisma.$ApiKeyPayload<ExtArgs>[];
2290
+ eventChannels: Prisma.$EventChannelPayload<ExtArgs>[];
2291
+ eventTypes: Prisma.$EventTypePayload<ExtArgs>[];
2292
+ eventHandlers: Prisma.$EventHandlerPayload<ExtArgs>[];
2293
+ workflowEvents: Prisma.$WorkflowEventPayload<ExtArgs>[];
1594
2294
  };
1595
2295
  scalars: runtime.Types.Extensions.GetPayloadResult<{
1596
2296
  id: string;
@@ -1887,6 +2587,10 @@ export interface Prisma__TenantClient<T, Null = never, ExtArgs extends runtime.T
1887
2587
  documentTemplates<T extends Prisma.Tenant$documentTemplatesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$documentTemplatesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentTemplatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1888
2588
  offerLetters<T extends Prisma.Tenant$offerLettersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$offerLettersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OfferLetterPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1889
2589
  apiKeys<T extends Prisma.Tenant$apiKeysArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$apiKeysArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2590
+ eventChannels<T extends Prisma.Tenant$eventChannelsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$eventChannelsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EventChannelPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2591
+ eventTypes<T extends Prisma.Tenant$eventTypesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$eventTypesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EventTypePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2592
+ eventHandlers<T extends Prisma.Tenant$eventHandlersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$eventHandlersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EventHandlerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2593
+ workflowEvents<T extends Prisma.Tenant$workflowEventsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tenant$workflowEventsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkflowEventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1890
2594
  /**
1891
2595
  * Attaches callbacks for the resolution and/or rejection of the Promise.
1892
2596
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -2498,6 +3202,98 @@ export type Tenant$apiKeysArgs<ExtArgs extends runtime.Types.Extensions.Internal
2498
3202
  skip?: number;
2499
3203
  distinct?: Prisma.ApiKeyScalarFieldEnum | Prisma.ApiKeyScalarFieldEnum[];
2500
3204
  };
3205
+ /**
3206
+ * Tenant.eventChannels
3207
+ */
3208
+ export type Tenant$eventChannelsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3209
+ /**
3210
+ * Select specific fields to fetch from the EventChannel
3211
+ */
3212
+ select?: Prisma.EventChannelSelect<ExtArgs> | null;
3213
+ /**
3214
+ * Omit specific fields from the EventChannel
3215
+ */
3216
+ omit?: Prisma.EventChannelOmit<ExtArgs> | null;
3217
+ /**
3218
+ * Choose, which related nodes to fetch as well
3219
+ */
3220
+ include?: Prisma.EventChannelInclude<ExtArgs> | null;
3221
+ where?: Prisma.EventChannelWhereInput;
3222
+ orderBy?: Prisma.EventChannelOrderByWithRelationInput | Prisma.EventChannelOrderByWithRelationInput[];
3223
+ cursor?: Prisma.EventChannelWhereUniqueInput;
3224
+ take?: number;
3225
+ skip?: number;
3226
+ distinct?: Prisma.EventChannelScalarFieldEnum | Prisma.EventChannelScalarFieldEnum[];
3227
+ };
3228
+ /**
3229
+ * Tenant.eventTypes
3230
+ */
3231
+ export type Tenant$eventTypesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3232
+ /**
3233
+ * Select specific fields to fetch from the EventType
3234
+ */
3235
+ select?: Prisma.EventTypeSelect<ExtArgs> | null;
3236
+ /**
3237
+ * Omit specific fields from the EventType
3238
+ */
3239
+ omit?: Prisma.EventTypeOmit<ExtArgs> | null;
3240
+ /**
3241
+ * Choose, which related nodes to fetch as well
3242
+ */
3243
+ include?: Prisma.EventTypeInclude<ExtArgs> | null;
3244
+ where?: Prisma.EventTypeWhereInput;
3245
+ orderBy?: Prisma.EventTypeOrderByWithRelationInput | Prisma.EventTypeOrderByWithRelationInput[];
3246
+ cursor?: Prisma.EventTypeWhereUniqueInput;
3247
+ take?: number;
3248
+ skip?: number;
3249
+ distinct?: Prisma.EventTypeScalarFieldEnum | Prisma.EventTypeScalarFieldEnum[];
3250
+ };
3251
+ /**
3252
+ * Tenant.eventHandlers
3253
+ */
3254
+ export type Tenant$eventHandlersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3255
+ /**
3256
+ * Select specific fields to fetch from the EventHandler
3257
+ */
3258
+ select?: Prisma.EventHandlerSelect<ExtArgs> | null;
3259
+ /**
3260
+ * Omit specific fields from the EventHandler
3261
+ */
3262
+ omit?: Prisma.EventHandlerOmit<ExtArgs> | null;
3263
+ /**
3264
+ * Choose, which related nodes to fetch as well
3265
+ */
3266
+ include?: Prisma.EventHandlerInclude<ExtArgs> | null;
3267
+ where?: Prisma.EventHandlerWhereInput;
3268
+ orderBy?: Prisma.EventHandlerOrderByWithRelationInput | Prisma.EventHandlerOrderByWithRelationInput[];
3269
+ cursor?: Prisma.EventHandlerWhereUniqueInput;
3270
+ take?: number;
3271
+ skip?: number;
3272
+ distinct?: Prisma.EventHandlerScalarFieldEnum | Prisma.EventHandlerScalarFieldEnum[];
3273
+ };
3274
+ /**
3275
+ * Tenant.workflowEvents
3276
+ */
3277
+ export type Tenant$workflowEventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3278
+ /**
3279
+ * Select specific fields to fetch from the WorkflowEvent
3280
+ */
3281
+ select?: Prisma.WorkflowEventSelect<ExtArgs> | null;
3282
+ /**
3283
+ * Omit specific fields from the WorkflowEvent
3284
+ */
3285
+ omit?: Prisma.WorkflowEventOmit<ExtArgs> | null;
3286
+ /**
3287
+ * Choose, which related nodes to fetch as well
3288
+ */
3289
+ include?: Prisma.WorkflowEventInclude<ExtArgs> | null;
3290
+ where?: Prisma.WorkflowEventWhereInput;
3291
+ orderBy?: Prisma.WorkflowEventOrderByWithRelationInput | Prisma.WorkflowEventOrderByWithRelationInput[];
3292
+ cursor?: Prisma.WorkflowEventWhereUniqueInput;
3293
+ take?: number;
3294
+ skip?: number;
3295
+ distinct?: Prisma.WorkflowEventScalarFieldEnum | Prisma.WorkflowEventScalarFieldEnum[];
3296
+ };
2501
3297
  /**
2502
3298
  * Tenant without action
2503
3299
  */