@valentine-efagene/qshelter-common 2.0.71 → 2.0.72

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.
@@ -262,6 +262,7 @@ export declare const ModelName: {
262
262
  readonly PropertyPaymentMethodLink: "PropertyPaymentMethodLink";
263
263
  readonly PropertyPaymentMethodPhase: "PropertyPaymentMethodPhase";
264
264
  readonly PaymentMethodPhaseStep: "PaymentMethodPhaseStep";
265
+ readonly StepEventAttachment: "StepEventAttachment";
265
266
  readonly PaymentMethodPhaseDocument: "PaymentMethodPhaseDocument";
266
267
  readonly Contract: "Contract";
267
268
  readonly ContractPhase: "ContractPhase";
@@ -295,7 +296,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
295
296
  omit: GlobalOmitOptions;
296
297
  };
297
298
  meta: {
298
- modelProps: "user" | "role" | "permission" | "rolePermission" | "userRole" | "tenant" | "apiKey" | "refreshToken" | "passwordReset" | "userSuspension" | "emailPreference" | "deviceEndpoint" | "social" | "oAuthState" | "wallet" | "transaction" | "settings" | "property" | "propertyMedia" | "propertyDocument" | "amenity" | "propertyVariant" | "propertyVariantAmenity" | "propertyVariantMedia" | "propertyUnit" | "propertyAmenity" | "paymentPlan" | "propertyPaymentMethod" | "propertyPaymentMethodLink" | "propertyPaymentMethodPhase" | "paymentMethodPhaseStep" | "paymentMethodPhaseDocument" | "contract" | "contractPhase" | "documentationStep" | "documentationStepDocument" | "documentationStepApproval" | "contractInstallment" | "contractPayment" | "contractDocument" | "contractEvent" | "documentTemplate" | "offerLetter" | "contractTermination" | "paymentMethodChangeRequest" | "documentRequirementRule" | "eventChannel" | "eventType" | "eventHandler" | "workflowEvent" | "eventHandlerExecution" | "domainEvent";
299
+ modelProps: "user" | "role" | "permission" | "rolePermission" | "userRole" | "tenant" | "apiKey" | "refreshToken" | "passwordReset" | "userSuspension" | "emailPreference" | "deviceEndpoint" | "social" | "oAuthState" | "wallet" | "transaction" | "settings" | "property" | "propertyMedia" | "propertyDocument" | "amenity" | "propertyVariant" | "propertyVariantAmenity" | "propertyVariantMedia" | "propertyUnit" | "propertyAmenity" | "paymentPlan" | "propertyPaymentMethod" | "propertyPaymentMethodLink" | "propertyPaymentMethodPhase" | "paymentMethodPhaseStep" | "stepEventAttachment" | "paymentMethodPhaseDocument" | "contract" | "contractPhase" | "documentationStep" | "documentationStepDocument" | "documentationStepApproval" | "contractInstallment" | "contractPayment" | "contractDocument" | "contractEvent" | "documentTemplate" | "offerLetter" | "contractTermination" | "paymentMethodChangeRequest" | "documentRequirementRule" | "eventChannel" | "eventType" | "eventHandler" | "workflowEvent" | "eventHandlerExecution" | "domainEvent";
299
300
  txIsolationLevel: TransactionIsolationLevel;
300
301
  };
301
302
  model: {
@@ -2345,6 +2346,72 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
2345
2346
  };
2346
2347
  };
2347
2348
  };
2349
+ StepEventAttachment: {
2350
+ payload: Prisma.$StepEventAttachmentPayload<ExtArgs>;
2351
+ fields: Prisma.StepEventAttachmentFieldRefs;
2352
+ operations: {
2353
+ findUnique: {
2354
+ args: Prisma.StepEventAttachmentFindUniqueArgs<ExtArgs>;
2355
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$StepEventAttachmentPayload> | null;
2356
+ };
2357
+ findUniqueOrThrow: {
2358
+ args: Prisma.StepEventAttachmentFindUniqueOrThrowArgs<ExtArgs>;
2359
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$StepEventAttachmentPayload>;
2360
+ };
2361
+ findFirst: {
2362
+ args: Prisma.StepEventAttachmentFindFirstArgs<ExtArgs>;
2363
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$StepEventAttachmentPayload> | null;
2364
+ };
2365
+ findFirstOrThrow: {
2366
+ args: Prisma.StepEventAttachmentFindFirstOrThrowArgs<ExtArgs>;
2367
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$StepEventAttachmentPayload>;
2368
+ };
2369
+ findMany: {
2370
+ args: Prisma.StepEventAttachmentFindManyArgs<ExtArgs>;
2371
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$StepEventAttachmentPayload>[];
2372
+ };
2373
+ create: {
2374
+ args: Prisma.StepEventAttachmentCreateArgs<ExtArgs>;
2375
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$StepEventAttachmentPayload>;
2376
+ };
2377
+ createMany: {
2378
+ args: Prisma.StepEventAttachmentCreateManyArgs<ExtArgs>;
2379
+ result: BatchPayload;
2380
+ };
2381
+ delete: {
2382
+ args: Prisma.StepEventAttachmentDeleteArgs<ExtArgs>;
2383
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$StepEventAttachmentPayload>;
2384
+ };
2385
+ update: {
2386
+ args: Prisma.StepEventAttachmentUpdateArgs<ExtArgs>;
2387
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$StepEventAttachmentPayload>;
2388
+ };
2389
+ deleteMany: {
2390
+ args: Prisma.StepEventAttachmentDeleteManyArgs<ExtArgs>;
2391
+ result: BatchPayload;
2392
+ };
2393
+ updateMany: {
2394
+ args: Prisma.StepEventAttachmentUpdateManyArgs<ExtArgs>;
2395
+ result: BatchPayload;
2396
+ };
2397
+ upsert: {
2398
+ args: Prisma.StepEventAttachmentUpsertArgs<ExtArgs>;
2399
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$StepEventAttachmentPayload>;
2400
+ };
2401
+ aggregate: {
2402
+ args: Prisma.StepEventAttachmentAggregateArgs<ExtArgs>;
2403
+ result: runtime.Types.Utils.Optional<Prisma.AggregateStepEventAttachment>;
2404
+ };
2405
+ groupBy: {
2406
+ args: Prisma.StepEventAttachmentGroupByArgs<ExtArgs>;
2407
+ result: runtime.Types.Utils.Optional<Prisma.StepEventAttachmentGroupByOutputType>[];
2408
+ };
2409
+ count: {
2410
+ args: Prisma.StepEventAttachmentCountArgs<ExtArgs>;
2411
+ result: runtime.Types.Utils.Optional<Prisma.StepEventAttachmentCountAggregateOutputType> | number;
2412
+ };
2413
+ };
2414
+ };
2348
2415
  PaymentMethodPhaseDocument: {
2349
2416
  payload: Prisma.$PaymentMethodPhaseDocumentPayload<ExtArgs>;
2350
2417
  fields: Prisma.PaymentMethodPhaseDocumentFieldRefs;
@@ -4121,6 +4188,17 @@ export declare const PaymentMethodPhaseStepScalarFieldEnum: {
4121
4188
  readonly updatedAt: "updatedAt";
4122
4189
  };
4123
4190
  export type PaymentMethodPhaseStepScalarFieldEnum = (typeof PaymentMethodPhaseStepScalarFieldEnum)[keyof typeof PaymentMethodPhaseStepScalarFieldEnum];
4191
+ export declare const StepEventAttachmentScalarFieldEnum: {
4192
+ readonly id: "id";
4193
+ readonly stepId: "stepId";
4194
+ readonly trigger: "trigger";
4195
+ readonly handlerId: "handlerId";
4196
+ readonly priority: "priority";
4197
+ readonly enabled: "enabled";
4198
+ readonly createdAt: "createdAt";
4199
+ readonly updatedAt: "updatedAt";
4200
+ };
4201
+ export type StepEventAttachmentScalarFieldEnum = (typeof StepEventAttachmentScalarFieldEnum)[keyof typeof StepEventAttachmentScalarFieldEnum];
4124
4202
  export declare const PaymentMethodPhaseDocumentScalarFieldEnum: {
4125
4203
  readonly id: "id";
4126
4204
  readonly phaseId: "phaseId";
@@ -4804,6 +4882,12 @@ export declare const PaymentMethodPhaseStepOrderByRelevanceFieldEnum: {
4804
4882
  readonly name: "name";
4805
4883
  };
4806
4884
  export type PaymentMethodPhaseStepOrderByRelevanceFieldEnum = (typeof PaymentMethodPhaseStepOrderByRelevanceFieldEnum)[keyof typeof PaymentMethodPhaseStepOrderByRelevanceFieldEnum];
4885
+ export declare const StepEventAttachmentOrderByRelevanceFieldEnum: {
4886
+ readonly id: "id";
4887
+ readonly stepId: "stepId";
4888
+ readonly handlerId: "handlerId";
4889
+ };
4890
+ export type StepEventAttachmentOrderByRelevanceFieldEnum = (typeof StepEventAttachmentOrderByRelevanceFieldEnum)[keyof typeof StepEventAttachmentOrderByRelevanceFieldEnum];
4807
4891
  export declare const PaymentMethodPhaseDocumentOrderByRelevanceFieldEnum: {
4808
4892
  readonly id: "id";
4809
4893
  readonly phaseId: "phaseId";
@@ -5076,6 +5160,10 @@ export type EnumCompletionCriterionFieldRefInput<$PrismaModel> = FieldRefInputTy
5076
5160
  * Reference to a field of type 'StepType'
5077
5161
  */
5078
5162
  export type EnumStepTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'StepType'>;
5163
+ /**
5164
+ * Reference to a field of type 'StepTrigger'
5165
+ */
5166
+ export type EnumStepTriggerFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'StepTrigger'>;
5079
5167
  /**
5080
5168
  * Reference to a field of type 'ContractStatus'
5081
5169
  */
@@ -5277,6 +5365,7 @@ export type GlobalOmitConfig = {
5277
5365
  propertyPaymentMethodLink?: Prisma.PropertyPaymentMethodLinkOmit;
5278
5366
  propertyPaymentMethodPhase?: Prisma.PropertyPaymentMethodPhaseOmit;
5279
5367
  paymentMethodPhaseStep?: Prisma.PaymentMethodPhaseStepOmit;
5368
+ stepEventAttachment?: Prisma.StepEventAttachmentOmit;
5280
5369
  paymentMethodPhaseDocument?: Prisma.PaymentMethodPhaseDocumentOmit;
5281
5370
  contract?: Prisma.ContractOmit;
5282
5371
  contractPhase?: Prisma.ContractPhaseOmit;
@@ -98,6 +98,7 @@ export const ModelName = {
98
98
  PropertyPaymentMethodLink: 'PropertyPaymentMethodLink',
99
99
  PropertyPaymentMethodPhase: 'PropertyPaymentMethodPhase',
100
100
  PaymentMethodPhaseStep: 'PaymentMethodPhaseStep',
101
+ StepEventAttachment: 'StepEventAttachment',
101
102
  PaymentMethodPhaseDocument: 'PaymentMethodPhaseDocument',
102
103
  Contract: 'Contract',
103
104
  ContractPhase: 'ContractPhase',
@@ -454,6 +455,16 @@ export const PaymentMethodPhaseStepScalarFieldEnum = {
454
455
  createdAt: 'createdAt',
455
456
  updatedAt: 'updatedAt'
456
457
  };
458
+ export const StepEventAttachmentScalarFieldEnum = {
459
+ id: 'id',
460
+ stepId: 'stepId',
461
+ trigger: 'trigger',
462
+ handlerId: 'handlerId',
463
+ priority: 'priority',
464
+ enabled: 'enabled',
465
+ createdAt: 'createdAt',
466
+ updatedAt: 'updatedAt'
467
+ };
457
468
  export const PaymentMethodPhaseDocumentScalarFieldEnum = {
458
469
  id: 'id',
459
470
  phaseId: 'phaseId',
@@ -1079,6 +1090,11 @@ export const PaymentMethodPhaseStepOrderByRelevanceFieldEnum = {
1079
1090
  phaseId: 'phaseId',
1080
1091
  name: 'name'
1081
1092
  };
1093
+ export const StepEventAttachmentOrderByRelevanceFieldEnum = {
1094
+ id: 'id',
1095
+ stepId: 'stepId',
1096
+ handlerId: 'handlerId'
1097
+ };
1082
1098
  export const PaymentMethodPhaseDocumentOrderByRelevanceFieldEnum = {
1083
1099
  id: 'id',
1084
1100
  phaseId: 'phaseId',
@@ -57,6 +57,7 @@ export declare const ModelName: {
57
57
  readonly PropertyPaymentMethodLink: "PropertyPaymentMethodLink";
58
58
  readonly PropertyPaymentMethodPhase: "PropertyPaymentMethodPhase";
59
59
  readonly PaymentMethodPhaseStep: "PaymentMethodPhaseStep";
60
+ readonly StepEventAttachment: "StepEventAttachment";
60
61
  readonly PaymentMethodPhaseDocument: "PaymentMethodPhaseDocument";
61
62
  readonly Contract: "Contract";
62
63
  readonly ContractPhase: "ContractPhase";
@@ -443,6 +444,17 @@ export declare const PaymentMethodPhaseStepScalarFieldEnum: {
443
444
  readonly updatedAt: "updatedAt";
444
445
  };
445
446
  export type PaymentMethodPhaseStepScalarFieldEnum = (typeof PaymentMethodPhaseStepScalarFieldEnum)[keyof typeof PaymentMethodPhaseStepScalarFieldEnum];
447
+ export declare const StepEventAttachmentScalarFieldEnum: {
448
+ readonly id: "id";
449
+ readonly stepId: "stepId";
450
+ readonly trigger: "trigger";
451
+ readonly handlerId: "handlerId";
452
+ readonly priority: "priority";
453
+ readonly enabled: "enabled";
454
+ readonly createdAt: "createdAt";
455
+ readonly updatedAt: "updatedAt";
456
+ };
457
+ export type StepEventAttachmentScalarFieldEnum = (typeof StepEventAttachmentScalarFieldEnum)[keyof typeof StepEventAttachmentScalarFieldEnum];
446
458
  export declare const PaymentMethodPhaseDocumentScalarFieldEnum: {
447
459
  readonly id: "id";
448
460
  readonly phaseId: "phaseId";
@@ -1126,6 +1138,12 @@ export declare const PaymentMethodPhaseStepOrderByRelevanceFieldEnum: {
1126
1138
  readonly name: "name";
1127
1139
  };
1128
1140
  export type PaymentMethodPhaseStepOrderByRelevanceFieldEnum = (typeof PaymentMethodPhaseStepOrderByRelevanceFieldEnum)[keyof typeof PaymentMethodPhaseStepOrderByRelevanceFieldEnum];
1141
+ export declare const StepEventAttachmentOrderByRelevanceFieldEnum: {
1142
+ readonly id: "id";
1143
+ readonly stepId: "stepId";
1144
+ readonly handlerId: "handlerId";
1145
+ };
1146
+ export type StepEventAttachmentOrderByRelevanceFieldEnum = (typeof StepEventAttachmentOrderByRelevanceFieldEnum)[keyof typeof StepEventAttachmentOrderByRelevanceFieldEnum];
1129
1147
  export declare const PaymentMethodPhaseDocumentOrderByRelevanceFieldEnum: {
1130
1148
  readonly id: "id";
1131
1149
  readonly phaseId: "phaseId";
@@ -70,6 +70,7 @@ export const ModelName = {
70
70
  PropertyPaymentMethodLink: 'PropertyPaymentMethodLink',
71
71
  PropertyPaymentMethodPhase: 'PropertyPaymentMethodPhase',
72
72
  PaymentMethodPhaseStep: 'PaymentMethodPhaseStep',
73
+ StepEventAttachment: 'StepEventAttachment',
73
74
  PaymentMethodPhaseDocument: 'PaymentMethodPhaseDocument',
74
75
  Contract: 'Contract',
75
76
  ContractPhase: 'ContractPhase',
@@ -426,6 +427,16 @@ export const PaymentMethodPhaseStepScalarFieldEnum = {
426
427
  createdAt: 'createdAt',
427
428
  updatedAt: 'updatedAt'
428
429
  };
430
+ export const StepEventAttachmentScalarFieldEnum = {
431
+ id: 'id',
432
+ stepId: 'stepId',
433
+ trigger: 'trigger',
434
+ handlerId: 'handlerId',
435
+ priority: 'priority',
436
+ enabled: 'enabled',
437
+ createdAt: 'createdAt',
438
+ updatedAt: 'updatedAt'
439
+ };
429
440
  export const PaymentMethodPhaseDocumentScalarFieldEnum = {
430
441
  id: 'id',
431
442
  phaseId: 'phaseId',
@@ -1051,6 +1062,11 @@ export const PaymentMethodPhaseStepOrderByRelevanceFieldEnum = {
1051
1062
  phaseId: 'phaseId',
1052
1063
  name: 'name'
1053
1064
  };
1065
+ export const StepEventAttachmentOrderByRelevanceFieldEnum = {
1066
+ id: 'id',
1067
+ stepId: 'stepId',
1068
+ handlerId: 'handlerId'
1069
+ };
1054
1070
  export const PaymentMethodPhaseDocumentOrderByRelevanceFieldEnum = {
1055
1071
  id: 'id',
1056
1072
  phaseId: 'phaseId',
@@ -249,6 +249,7 @@ export type EventHandlerWhereInput = {
249
249
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
250
250
  eventType?: Prisma.XOR<Prisma.EventTypeScalarRelationFilter, Prisma.EventTypeWhereInput>;
251
251
  executions?: Prisma.EventHandlerExecutionListRelationFilter;
252
+ stepAttachments?: Prisma.StepEventAttachmentListRelationFilter;
252
253
  };
253
254
  export type EventHandlerOrderByWithRelationInput = {
254
255
  id?: Prisma.SortOrder;
@@ -268,6 +269,7 @@ export type EventHandlerOrderByWithRelationInput = {
268
269
  tenant?: Prisma.TenantOrderByWithRelationInput;
269
270
  eventType?: Prisma.EventTypeOrderByWithRelationInput;
270
271
  executions?: Prisma.EventHandlerExecutionOrderByRelationAggregateInput;
272
+ stepAttachments?: Prisma.StepEventAttachmentOrderByRelationAggregateInput;
271
273
  _relevance?: Prisma.EventHandlerOrderByRelevanceInput;
272
274
  };
273
275
  export type EventHandlerWhereUniqueInput = Prisma.AtLeast<{
@@ -291,6 +293,7 @@ export type EventHandlerWhereUniqueInput = Prisma.AtLeast<{
291
293
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
292
294
  eventType?: Prisma.XOR<Prisma.EventTypeScalarRelationFilter, Prisma.EventTypeWhereInput>;
293
295
  executions?: Prisma.EventHandlerExecutionListRelationFilter;
296
+ stepAttachments?: Prisma.StepEventAttachmentListRelationFilter;
294
297
  }, "id">;
295
298
  export type EventHandlerOrderByWithAggregationInput = {
296
299
  id?: Prisma.SortOrder;
@@ -348,6 +351,7 @@ export type EventHandlerCreateInput = {
348
351
  tenant: Prisma.TenantCreateNestedOneWithoutEventHandlersInput;
349
352
  eventType: Prisma.EventTypeCreateNestedOneWithoutHandlersInput;
350
353
  executions?: Prisma.EventHandlerExecutionCreateNestedManyWithoutHandlerInput;
354
+ stepAttachments?: Prisma.StepEventAttachmentCreateNestedManyWithoutHandlerInput;
351
355
  };
352
356
  export type EventHandlerUncheckedCreateInput = {
353
357
  id?: string;
@@ -365,6 +369,7 @@ export type EventHandlerUncheckedCreateInput = {
365
369
  createdAt?: Date | string;
366
370
  updatedAt?: Date | string;
367
371
  executions?: Prisma.EventHandlerExecutionUncheckedCreateNestedManyWithoutHandlerInput;
372
+ stepAttachments?: Prisma.StepEventAttachmentUncheckedCreateNestedManyWithoutHandlerInput;
368
373
  };
369
374
  export type EventHandlerUpdateInput = {
370
375
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -382,6 +387,7 @@ export type EventHandlerUpdateInput = {
382
387
  tenant?: Prisma.TenantUpdateOneRequiredWithoutEventHandlersNestedInput;
383
388
  eventType?: Prisma.EventTypeUpdateOneRequiredWithoutHandlersNestedInput;
384
389
  executions?: Prisma.EventHandlerExecutionUpdateManyWithoutHandlerNestedInput;
390
+ stepAttachments?: Prisma.StepEventAttachmentUpdateManyWithoutHandlerNestedInput;
385
391
  };
386
392
  export type EventHandlerUncheckedUpdateInput = {
387
393
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -399,6 +405,7 @@ export type EventHandlerUncheckedUpdateInput = {
399
405
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
400
406
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
401
407
  executions?: Prisma.EventHandlerExecutionUncheckedUpdateManyWithoutHandlerNestedInput;
408
+ stepAttachments?: Prisma.StepEventAttachmentUncheckedUpdateManyWithoutHandlerNestedInput;
402
409
  };
403
410
  export type EventHandlerCreateManyInput = {
404
411
  id?: string;
@@ -454,6 +461,10 @@ export type EventHandlerListRelationFilter = {
454
461
  export type EventHandlerOrderByRelationAggregateInput = {
455
462
  _count?: Prisma.SortOrder;
456
463
  };
464
+ export type EventHandlerScalarRelationFilter = {
465
+ is?: Prisma.EventHandlerWhereInput;
466
+ isNot?: Prisma.EventHandlerWhereInput;
467
+ };
457
468
  export type EventHandlerOrderByRelevanceInput = {
458
469
  fields: Prisma.EventHandlerOrderByRelevanceFieldEnum | Prisma.EventHandlerOrderByRelevanceFieldEnum[];
459
470
  sort: Prisma.SortOrder;
@@ -515,10 +526,6 @@ export type EventHandlerSumOrderByAggregateInput = {
515
526
  maxRetries?: Prisma.SortOrder;
516
527
  retryDelayMs?: Prisma.SortOrder;
517
528
  };
518
- export type EventHandlerScalarRelationFilter = {
519
- is?: Prisma.EventHandlerWhereInput;
520
- isNot?: Prisma.EventHandlerWhereInput;
521
- };
522
529
  export type EventHandlerCreateNestedManyWithoutTenantInput = {
523
530
  create?: Prisma.XOR<Prisma.EventHandlerCreateWithoutTenantInput, Prisma.EventHandlerUncheckedCreateWithoutTenantInput> | Prisma.EventHandlerCreateWithoutTenantInput[] | Prisma.EventHandlerUncheckedCreateWithoutTenantInput[];
524
531
  connectOrCreate?: Prisma.EventHandlerCreateOrConnectWithoutTenantInput | Prisma.EventHandlerCreateOrConnectWithoutTenantInput[];
@@ -557,6 +564,18 @@ export type EventHandlerUncheckedUpdateManyWithoutTenantNestedInput = {
557
564
  updateMany?: Prisma.EventHandlerUpdateManyWithWhereWithoutTenantInput | Prisma.EventHandlerUpdateManyWithWhereWithoutTenantInput[];
558
565
  deleteMany?: Prisma.EventHandlerScalarWhereInput | Prisma.EventHandlerScalarWhereInput[];
559
566
  };
567
+ export type EventHandlerCreateNestedOneWithoutStepAttachmentsInput = {
568
+ create?: Prisma.XOR<Prisma.EventHandlerCreateWithoutStepAttachmentsInput, Prisma.EventHandlerUncheckedCreateWithoutStepAttachmentsInput>;
569
+ connectOrCreate?: Prisma.EventHandlerCreateOrConnectWithoutStepAttachmentsInput;
570
+ connect?: Prisma.EventHandlerWhereUniqueInput;
571
+ };
572
+ export type EventHandlerUpdateOneRequiredWithoutStepAttachmentsNestedInput = {
573
+ create?: Prisma.XOR<Prisma.EventHandlerCreateWithoutStepAttachmentsInput, Prisma.EventHandlerUncheckedCreateWithoutStepAttachmentsInput>;
574
+ connectOrCreate?: Prisma.EventHandlerCreateOrConnectWithoutStepAttachmentsInput;
575
+ upsert?: Prisma.EventHandlerUpsertWithoutStepAttachmentsInput;
576
+ connect?: Prisma.EventHandlerWhereUniqueInput;
577
+ update?: Prisma.XOR<Prisma.XOR<Prisma.EventHandlerUpdateToOneWithWhereWithoutStepAttachmentsInput, Prisma.EventHandlerUpdateWithoutStepAttachmentsInput>, Prisma.EventHandlerUncheckedUpdateWithoutStepAttachmentsInput>;
578
+ };
560
579
  export type EventHandlerCreateNestedManyWithoutEventTypeInput = {
561
580
  create?: Prisma.XOR<Prisma.EventHandlerCreateWithoutEventTypeInput, Prisma.EventHandlerUncheckedCreateWithoutEventTypeInput> | Prisma.EventHandlerCreateWithoutEventTypeInput[] | Prisma.EventHandlerUncheckedCreateWithoutEventTypeInput[];
562
581
  connectOrCreate?: Prisma.EventHandlerCreateOrConnectWithoutEventTypeInput | Prisma.EventHandlerCreateOrConnectWithoutEventTypeInput[];
@@ -625,6 +644,7 @@ export type EventHandlerCreateWithoutTenantInput = {
625
644
  updatedAt?: Date | string;
626
645
  eventType: Prisma.EventTypeCreateNestedOneWithoutHandlersInput;
627
646
  executions?: Prisma.EventHandlerExecutionCreateNestedManyWithoutHandlerInput;
647
+ stepAttachments?: Prisma.StepEventAttachmentCreateNestedManyWithoutHandlerInput;
628
648
  };
629
649
  export type EventHandlerUncheckedCreateWithoutTenantInput = {
630
650
  id?: string;
@@ -641,6 +661,7 @@ export type EventHandlerUncheckedCreateWithoutTenantInput = {
641
661
  createdAt?: Date | string;
642
662
  updatedAt?: Date | string;
643
663
  executions?: Prisma.EventHandlerExecutionUncheckedCreateNestedManyWithoutHandlerInput;
664
+ stepAttachments?: Prisma.StepEventAttachmentUncheckedCreateNestedManyWithoutHandlerInput;
644
665
  };
645
666
  export type EventHandlerCreateOrConnectWithoutTenantInput = {
646
667
  where: Prisma.EventHandlerWhereUniqueInput;
@@ -682,6 +703,87 @@ export type EventHandlerScalarWhereInput = {
682
703
  createdAt?: Prisma.DateTimeFilter<"EventHandler"> | Date | string;
683
704
  updatedAt?: Prisma.DateTimeFilter<"EventHandler"> | Date | string;
684
705
  };
706
+ export type EventHandlerCreateWithoutStepAttachmentsInput = {
707
+ id?: string;
708
+ name: string;
709
+ description?: string | null;
710
+ handlerType: $Enums.EventHandlerType;
711
+ config: Prisma.JsonNullValueInput | runtime.InputJsonValue;
712
+ priority?: number;
713
+ enabled?: boolean;
714
+ maxRetries?: number;
715
+ retryDelayMs?: number;
716
+ filterCondition?: string | null;
717
+ createdAt?: Date | string;
718
+ updatedAt?: Date | string;
719
+ tenant: Prisma.TenantCreateNestedOneWithoutEventHandlersInput;
720
+ eventType: Prisma.EventTypeCreateNestedOneWithoutHandlersInput;
721
+ executions?: Prisma.EventHandlerExecutionCreateNestedManyWithoutHandlerInput;
722
+ };
723
+ export type EventHandlerUncheckedCreateWithoutStepAttachmentsInput = {
724
+ id?: string;
725
+ tenantId: string;
726
+ eventTypeId: string;
727
+ name: string;
728
+ description?: string | null;
729
+ handlerType: $Enums.EventHandlerType;
730
+ config: Prisma.JsonNullValueInput | runtime.InputJsonValue;
731
+ priority?: number;
732
+ enabled?: boolean;
733
+ maxRetries?: number;
734
+ retryDelayMs?: number;
735
+ filterCondition?: string | null;
736
+ createdAt?: Date | string;
737
+ updatedAt?: Date | string;
738
+ executions?: Prisma.EventHandlerExecutionUncheckedCreateNestedManyWithoutHandlerInput;
739
+ };
740
+ export type EventHandlerCreateOrConnectWithoutStepAttachmentsInput = {
741
+ where: Prisma.EventHandlerWhereUniqueInput;
742
+ create: Prisma.XOR<Prisma.EventHandlerCreateWithoutStepAttachmentsInput, Prisma.EventHandlerUncheckedCreateWithoutStepAttachmentsInput>;
743
+ };
744
+ export type EventHandlerUpsertWithoutStepAttachmentsInput = {
745
+ update: Prisma.XOR<Prisma.EventHandlerUpdateWithoutStepAttachmentsInput, Prisma.EventHandlerUncheckedUpdateWithoutStepAttachmentsInput>;
746
+ create: Prisma.XOR<Prisma.EventHandlerCreateWithoutStepAttachmentsInput, Prisma.EventHandlerUncheckedCreateWithoutStepAttachmentsInput>;
747
+ where?: Prisma.EventHandlerWhereInput;
748
+ };
749
+ export type EventHandlerUpdateToOneWithWhereWithoutStepAttachmentsInput = {
750
+ where?: Prisma.EventHandlerWhereInput;
751
+ data: Prisma.XOR<Prisma.EventHandlerUpdateWithoutStepAttachmentsInput, Prisma.EventHandlerUncheckedUpdateWithoutStepAttachmentsInput>;
752
+ };
753
+ export type EventHandlerUpdateWithoutStepAttachmentsInput = {
754
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
755
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
756
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
757
+ handlerType?: Prisma.EnumEventHandlerTypeFieldUpdateOperationsInput | $Enums.EventHandlerType;
758
+ config?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
759
+ priority?: Prisma.IntFieldUpdateOperationsInput | number;
760
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
761
+ maxRetries?: Prisma.IntFieldUpdateOperationsInput | number;
762
+ retryDelayMs?: Prisma.IntFieldUpdateOperationsInput | number;
763
+ filterCondition?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
764
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
765
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
766
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutEventHandlersNestedInput;
767
+ eventType?: Prisma.EventTypeUpdateOneRequiredWithoutHandlersNestedInput;
768
+ executions?: Prisma.EventHandlerExecutionUpdateManyWithoutHandlerNestedInput;
769
+ };
770
+ export type EventHandlerUncheckedUpdateWithoutStepAttachmentsInput = {
771
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
772
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
773
+ eventTypeId?: Prisma.StringFieldUpdateOperationsInput | string;
774
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
775
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
776
+ handlerType?: Prisma.EnumEventHandlerTypeFieldUpdateOperationsInput | $Enums.EventHandlerType;
777
+ config?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
778
+ priority?: Prisma.IntFieldUpdateOperationsInput | number;
779
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
780
+ maxRetries?: Prisma.IntFieldUpdateOperationsInput | number;
781
+ retryDelayMs?: Prisma.IntFieldUpdateOperationsInput | number;
782
+ filterCondition?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
783
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
784
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
785
+ executions?: Prisma.EventHandlerExecutionUncheckedUpdateManyWithoutHandlerNestedInput;
786
+ };
685
787
  export type EventHandlerCreateWithoutEventTypeInput = {
686
788
  id?: string;
687
789
  name: string;
@@ -697,6 +799,7 @@ export type EventHandlerCreateWithoutEventTypeInput = {
697
799
  updatedAt?: Date | string;
698
800
  tenant: Prisma.TenantCreateNestedOneWithoutEventHandlersInput;
699
801
  executions?: Prisma.EventHandlerExecutionCreateNestedManyWithoutHandlerInput;
802
+ stepAttachments?: Prisma.StepEventAttachmentCreateNestedManyWithoutHandlerInput;
700
803
  };
701
804
  export type EventHandlerUncheckedCreateWithoutEventTypeInput = {
702
805
  id?: string;
@@ -713,6 +816,7 @@ export type EventHandlerUncheckedCreateWithoutEventTypeInput = {
713
816
  createdAt?: Date | string;
714
817
  updatedAt?: Date | string;
715
818
  executions?: Prisma.EventHandlerExecutionUncheckedCreateNestedManyWithoutHandlerInput;
819
+ stepAttachments?: Prisma.StepEventAttachmentUncheckedCreateNestedManyWithoutHandlerInput;
716
820
  };
717
821
  export type EventHandlerCreateOrConnectWithoutEventTypeInput = {
718
822
  where: Prisma.EventHandlerWhereUniqueInput;
@@ -750,6 +854,7 @@ export type EventHandlerCreateWithoutExecutionsInput = {
750
854
  updatedAt?: Date | string;
751
855
  tenant: Prisma.TenantCreateNestedOneWithoutEventHandlersInput;
752
856
  eventType: Prisma.EventTypeCreateNestedOneWithoutHandlersInput;
857
+ stepAttachments?: Prisma.StepEventAttachmentCreateNestedManyWithoutHandlerInput;
753
858
  };
754
859
  export type EventHandlerUncheckedCreateWithoutExecutionsInput = {
755
860
  id?: string;
@@ -766,6 +871,7 @@ export type EventHandlerUncheckedCreateWithoutExecutionsInput = {
766
871
  filterCondition?: string | null;
767
872
  createdAt?: Date | string;
768
873
  updatedAt?: Date | string;
874
+ stepAttachments?: Prisma.StepEventAttachmentUncheckedCreateNestedManyWithoutHandlerInput;
769
875
  };
770
876
  export type EventHandlerCreateOrConnectWithoutExecutionsInput = {
771
877
  where: Prisma.EventHandlerWhereUniqueInput;
@@ -795,6 +901,7 @@ export type EventHandlerUpdateWithoutExecutionsInput = {
795
901
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
796
902
  tenant?: Prisma.TenantUpdateOneRequiredWithoutEventHandlersNestedInput;
797
903
  eventType?: Prisma.EventTypeUpdateOneRequiredWithoutHandlersNestedInput;
904
+ stepAttachments?: Prisma.StepEventAttachmentUpdateManyWithoutHandlerNestedInput;
798
905
  };
799
906
  export type EventHandlerUncheckedUpdateWithoutExecutionsInput = {
800
907
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -811,6 +918,7 @@ export type EventHandlerUncheckedUpdateWithoutExecutionsInput = {
811
918
  filterCondition?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
812
919
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
813
920
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
921
+ stepAttachments?: Prisma.StepEventAttachmentUncheckedUpdateManyWithoutHandlerNestedInput;
814
922
  };
815
923
  export type EventHandlerCreateManyTenantInput = {
816
924
  id?: string;
@@ -842,6 +950,7 @@ export type EventHandlerUpdateWithoutTenantInput = {
842
950
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
843
951
  eventType?: Prisma.EventTypeUpdateOneRequiredWithoutHandlersNestedInput;
844
952
  executions?: Prisma.EventHandlerExecutionUpdateManyWithoutHandlerNestedInput;
953
+ stepAttachments?: Prisma.StepEventAttachmentUpdateManyWithoutHandlerNestedInput;
845
954
  };
846
955
  export type EventHandlerUncheckedUpdateWithoutTenantInput = {
847
956
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -858,6 +967,7 @@ export type EventHandlerUncheckedUpdateWithoutTenantInput = {
858
967
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
859
968
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
860
969
  executions?: Prisma.EventHandlerExecutionUncheckedUpdateManyWithoutHandlerNestedInput;
970
+ stepAttachments?: Prisma.StepEventAttachmentUncheckedUpdateManyWithoutHandlerNestedInput;
861
971
  };
862
972
  export type EventHandlerUncheckedUpdateManyWithoutTenantInput = {
863
973
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -904,6 +1014,7 @@ export type EventHandlerUpdateWithoutEventTypeInput = {
904
1014
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
905
1015
  tenant?: Prisma.TenantUpdateOneRequiredWithoutEventHandlersNestedInput;
906
1016
  executions?: Prisma.EventHandlerExecutionUpdateManyWithoutHandlerNestedInput;
1017
+ stepAttachments?: Prisma.StepEventAttachmentUpdateManyWithoutHandlerNestedInput;
907
1018
  };
908
1019
  export type EventHandlerUncheckedUpdateWithoutEventTypeInput = {
909
1020
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -920,6 +1031,7 @@ export type EventHandlerUncheckedUpdateWithoutEventTypeInput = {
920
1031
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
921
1032
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
922
1033
  executions?: Prisma.EventHandlerExecutionUncheckedUpdateManyWithoutHandlerNestedInput;
1034
+ stepAttachments?: Prisma.StepEventAttachmentUncheckedUpdateManyWithoutHandlerNestedInput;
923
1035
  };
924
1036
  export type EventHandlerUncheckedUpdateManyWithoutEventTypeInput = {
925
1037
  id?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -941,9 +1053,11 @@ export type EventHandlerUncheckedUpdateManyWithoutEventTypeInput = {
941
1053
  */
942
1054
  export type EventHandlerCountOutputType = {
943
1055
  executions: number;
1056
+ stepAttachments: number;
944
1057
  };
945
1058
  export type EventHandlerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
946
1059
  executions?: boolean | EventHandlerCountOutputTypeCountExecutionsArgs;
1060
+ stepAttachments?: boolean | EventHandlerCountOutputTypeCountStepAttachmentsArgs;
947
1061
  };
948
1062
  /**
949
1063
  * EventHandlerCountOutputType without action
@@ -960,6 +1074,12 @@ export type EventHandlerCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types
960
1074
  export type EventHandlerCountOutputTypeCountExecutionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
961
1075
  where?: Prisma.EventHandlerExecutionWhereInput;
962
1076
  };
1077
+ /**
1078
+ * EventHandlerCountOutputType without action
1079
+ */
1080
+ export type EventHandlerCountOutputTypeCountStepAttachmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1081
+ where?: Prisma.StepEventAttachmentWhereInput;
1082
+ };
963
1083
  export type EventHandlerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
964
1084
  id?: boolean;
965
1085
  tenantId?: boolean;
@@ -978,6 +1098,7 @@ export type EventHandlerSelect<ExtArgs extends runtime.Types.Extensions.Internal
978
1098
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
979
1099
  eventType?: boolean | Prisma.EventTypeDefaultArgs<ExtArgs>;
980
1100
  executions?: boolean | Prisma.EventHandler$executionsArgs<ExtArgs>;
1101
+ stepAttachments?: boolean | Prisma.EventHandler$stepAttachmentsArgs<ExtArgs>;
981
1102
  _count?: boolean | Prisma.EventHandlerCountOutputTypeDefaultArgs<ExtArgs>;
982
1103
  }, ExtArgs["result"]["eventHandler"]>;
983
1104
  export type EventHandlerSelectScalar = {
@@ -1001,6 +1122,7 @@ export type EventHandlerInclude<ExtArgs extends runtime.Types.Extensions.Interna
1001
1122
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
1002
1123
  eventType?: boolean | Prisma.EventTypeDefaultArgs<ExtArgs>;
1003
1124
  executions?: boolean | Prisma.EventHandler$executionsArgs<ExtArgs>;
1125
+ stepAttachments?: boolean | Prisma.EventHandler$stepAttachmentsArgs<ExtArgs>;
1004
1126
  _count?: boolean | Prisma.EventHandlerCountOutputTypeDefaultArgs<ExtArgs>;
1005
1127
  };
1006
1128
  export type $EventHandlerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -1012,6 +1134,10 @@ export type $EventHandlerPayload<ExtArgs extends runtime.Types.Extensions.Intern
1012
1134
  * Handler execution logs
1013
1135
  */
1014
1136
  executions: Prisma.$EventHandlerExecutionPayload<ExtArgs>[];
1137
+ /**
1138
+ * Step attachments - steps that have attached this handler
1139
+ */
1140
+ stepAttachments: Prisma.$StepEventAttachmentPayload<ExtArgs>[];
1015
1141
  };
1016
1142
  scalars: runtime.Types.Extensions.GetPayloadResult<{
1017
1143
  id: string;
@@ -1340,6 +1466,7 @@ export interface Prisma__EventHandlerClient<T, Null = never, ExtArgs extends run
1340
1466
  tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1341
1467
  eventType<T extends Prisma.EventTypeDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EventTypeDefaultArgs<ExtArgs>>): Prisma.Prisma__EventTypeClient<runtime.Types.Result.GetResult<Prisma.$EventTypePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1342
1468
  executions<T extends Prisma.EventHandler$executionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EventHandler$executionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EventHandlerExecutionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1469
+ stepAttachments<T extends Prisma.EventHandler$stepAttachmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EventHandler$stepAttachmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StepEventAttachmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1343
1470
  /**
1344
1471
  * Attaches callbacks for the resolution and/or rejection of the Promise.
1345
1472
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -1729,6 +1856,29 @@ export type EventHandler$executionsArgs<ExtArgs extends runtime.Types.Extensions
1729
1856
  skip?: number;
1730
1857
  distinct?: Prisma.EventHandlerExecutionScalarFieldEnum | Prisma.EventHandlerExecutionScalarFieldEnum[];
1731
1858
  };
1859
+ /**
1860
+ * EventHandler.stepAttachments
1861
+ */
1862
+ export type EventHandler$stepAttachmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1863
+ /**
1864
+ * Select specific fields to fetch from the StepEventAttachment
1865
+ */
1866
+ select?: Prisma.StepEventAttachmentSelect<ExtArgs> | null;
1867
+ /**
1868
+ * Omit specific fields from the StepEventAttachment
1869
+ */
1870
+ omit?: Prisma.StepEventAttachmentOmit<ExtArgs> | null;
1871
+ /**
1872
+ * Choose, which related nodes to fetch as well
1873
+ */
1874
+ include?: Prisma.StepEventAttachmentInclude<ExtArgs> | null;
1875
+ where?: Prisma.StepEventAttachmentWhereInput;
1876
+ orderBy?: Prisma.StepEventAttachmentOrderByWithRelationInput | Prisma.StepEventAttachmentOrderByWithRelationInput[];
1877
+ cursor?: Prisma.StepEventAttachmentWhereUniqueInput;
1878
+ take?: number;
1879
+ skip?: number;
1880
+ distinct?: Prisma.StepEventAttachmentScalarFieldEnum | Prisma.StepEventAttachmentScalarFieldEnum[];
1881
+ };
1732
1882
  /**
1733
1883
  * EventHandler without action
1734
1884
  */