@valentine-efagene/qshelter-common 2.0.98 → 2.0.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/generated/client/browser.d.ts +5 -0
  2. package/dist/generated/client/client.d.ts +5 -0
  3. package/dist/generated/client/commonInputTypes.d.ts +90 -0
  4. package/dist/generated/client/enums.d.ts +26 -0
  5. package/dist/generated/client/enums.js +23 -0
  6. package/dist/generated/client/internal/class.d.ts +11 -0
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +176 -1
  9. package/dist/generated/client/internal/prismaNamespace.js +95 -1
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +96 -0
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +95 -1
  12. package/dist/generated/client/models/Amenity.d.ts +183 -3
  13. package/dist/generated/client/models/ApplicationDocument.d.ts +183 -1
  14. package/dist/generated/client/models/ApplicationEvent.d.ts +190 -14
  15. package/dist/generated/client/models/ApplicationPayment.d.ts +225 -1
  16. package/dist/generated/client/models/ApplicationPhase.d.ts +272 -26
  17. package/dist/generated/client/models/DocumentationPhase.d.ts +224 -24
  18. package/dist/generated/client/models/DocumentationStep.d.ts +237 -1
  19. package/dist/generated/client/models/DocumentationStepApproval.d.ts +159 -1
  20. package/dist/generated/client/models/DocumentationStepDocument.d.ts +150 -10
  21. package/dist/generated/client/models/EventHandlerExecution.d.ts +208 -14
  22. package/dist/generated/client/models/PaymentInstallment.d.ts +228 -14
  23. package/dist/generated/client/models/PaymentMethodPhaseDocument.d.ts +178 -14
  24. package/dist/generated/client/models/PaymentMethodPhaseField.d.ts +208 -14
  25. package/dist/generated/client/models/PaymentMethodPhaseStep.d.ts +180 -14
  26. package/dist/generated/client/models/PaymentPhase.d.ts +214 -14
  27. package/dist/generated/client/models/PhaseEventAttachment.d.ts +178 -14
  28. package/dist/generated/client/models/PropertyAmenity.d.ts +145 -11
  29. package/dist/generated/client/models/PropertyDocument.d.ts +164 -12
  30. package/dist/generated/client/models/PropertyMedia.d.ts +183 -17
  31. package/dist/generated/client/models/PropertyPaymentMethodLink.d.ts +159 -13
  32. package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +270 -14
  33. package/dist/generated/client/models/PropertyUnit.d.ts +230 -14
  34. package/dist/generated/client/models/PropertyVariant.d.ts +256 -14
  35. package/dist/generated/client/models/PropertyVariantAmenity.d.ts +145 -11
  36. package/dist/generated/client/models/PropertyVariantMedia.d.ts +171 -13
  37. package/dist/generated/client/models/QuestionnaireField.d.ts +232 -14
  38. package/dist/generated/client/models/QuestionnairePhase.d.ts +207 -1
  39. package/dist/generated/client/models/StepEventAttachment.d.ts +178 -14
  40. package/dist/generated/client/models/Tenant.d.ts +11653 -1153
  41. package/dist/generated/client/models/WorkflowBlocker.d.ts +1432 -0
  42. package/dist/generated/client/models/WorkflowBlocker.js +1 -0
  43. package/dist/generated/client/models/index.d.ts +1 -0
  44. package/dist/generated/client/models/index.js +1 -0
  45. package/dist/generated/client/models.d.ts +1 -0
  46. package/dist/src/index.d.ts +1 -0
  47. package/dist/src/index.js +1 -0
  48. package/dist/src/middleware/auth-context.d.ts +63 -6
  49. package/dist/src/middleware/auth-context.js +132 -13
  50. package/dist/src/prisma/tenant.js +26 -32
  51. package/dist/src/types/action-status.d.ts +137 -0
  52. package/dist/src/types/action-status.js +402 -0
  53. package/package.json +1 -1
  54. package/prisma/migrations/20260113000000_remove_workflow_analytics_summary/migration.sql +5 -0
  55. package/prisma/migrations/20260113110450_add_tenant_id_to_child_models/migration.sql +334 -0
  56. package/prisma/schema.prisma +273 -60
@@ -22,6 +22,7 @@ export type StepEventAttachmentSumAggregateOutputType = {
22
22
  };
23
23
  export type StepEventAttachmentMinAggregateOutputType = {
24
24
  id: string | null;
25
+ tenantId: string | null;
25
26
  stepId: string | null;
26
27
  trigger: $Enums.StepTrigger | null;
27
28
  handlerId: string | null;
@@ -32,6 +33,7 @@ export type StepEventAttachmentMinAggregateOutputType = {
32
33
  };
33
34
  export type StepEventAttachmentMaxAggregateOutputType = {
34
35
  id: string | null;
36
+ tenantId: string | null;
35
37
  stepId: string | null;
36
38
  trigger: $Enums.StepTrigger | null;
37
39
  handlerId: string | null;
@@ -42,6 +44,7 @@ export type StepEventAttachmentMaxAggregateOutputType = {
42
44
  };
43
45
  export type StepEventAttachmentCountAggregateOutputType = {
44
46
  id: number;
47
+ tenantId: number;
45
48
  stepId: number;
46
49
  trigger: number;
47
50
  handlerId: number;
@@ -59,6 +62,7 @@ export type StepEventAttachmentSumAggregateInputType = {
59
62
  };
60
63
  export type StepEventAttachmentMinAggregateInputType = {
61
64
  id?: true;
65
+ tenantId?: true;
62
66
  stepId?: true;
63
67
  trigger?: true;
64
68
  handlerId?: true;
@@ -69,6 +73,7 @@ export type StepEventAttachmentMinAggregateInputType = {
69
73
  };
70
74
  export type StepEventAttachmentMaxAggregateInputType = {
71
75
  id?: true;
76
+ tenantId?: true;
72
77
  stepId?: true;
73
78
  trigger?: true;
74
79
  handlerId?: true;
@@ -79,6 +84,7 @@ export type StepEventAttachmentMaxAggregateInputType = {
79
84
  };
80
85
  export type StepEventAttachmentCountAggregateInputType = {
81
86
  id?: true;
87
+ tenantId?: true;
82
88
  stepId?: true;
83
89
  trigger?: true;
84
90
  handlerId?: true;
@@ -166,6 +172,7 @@ export type StepEventAttachmentGroupByArgs<ExtArgs extends runtime.Types.Extensi
166
172
  };
167
173
  export type StepEventAttachmentGroupByOutputType = {
168
174
  id: string;
175
+ tenantId: string;
169
176
  stepId: string;
170
177
  trigger: $Enums.StepTrigger;
171
178
  handlerId: string;
@@ -187,6 +194,7 @@ export type StepEventAttachmentWhereInput = {
187
194
  OR?: Prisma.StepEventAttachmentWhereInput[];
188
195
  NOT?: Prisma.StepEventAttachmentWhereInput | Prisma.StepEventAttachmentWhereInput[];
189
196
  id?: Prisma.StringFilter<"StepEventAttachment"> | string;
197
+ tenantId?: Prisma.StringFilter<"StepEventAttachment"> | string;
190
198
  stepId?: Prisma.StringFilter<"StepEventAttachment"> | string;
191
199
  trigger?: Prisma.EnumStepTriggerFilter<"StepEventAttachment"> | $Enums.StepTrigger;
192
200
  handlerId?: Prisma.StringFilter<"StepEventAttachment"> | string;
@@ -194,11 +202,13 @@ export type StepEventAttachmentWhereInput = {
194
202
  enabled?: Prisma.BoolFilter<"StepEventAttachment"> | boolean;
195
203
  createdAt?: Prisma.DateTimeFilter<"StepEventAttachment"> | Date | string;
196
204
  updatedAt?: Prisma.DateTimeFilter<"StepEventAttachment"> | Date | string;
205
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
197
206
  step?: Prisma.XOR<Prisma.PaymentMethodPhaseStepScalarRelationFilter, Prisma.PaymentMethodPhaseStepWhereInput>;
198
207
  handler?: Prisma.XOR<Prisma.EventHandlerScalarRelationFilter, Prisma.EventHandlerWhereInput>;
199
208
  };
200
209
  export type StepEventAttachmentOrderByWithRelationInput = {
201
210
  id?: Prisma.SortOrder;
211
+ tenantId?: Prisma.SortOrder;
202
212
  stepId?: Prisma.SortOrder;
203
213
  trigger?: Prisma.SortOrder;
204
214
  handlerId?: Prisma.SortOrder;
@@ -206,6 +216,7 @@ export type StepEventAttachmentOrderByWithRelationInput = {
206
216
  enabled?: Prisma.SortOrder;
207
217
  createdAt?: Prisma.SortOrder;
208
218
  updatedAt?: Prisma.SortOrder;
219
+ tenant?: Prisma.TenantOrderByWithRelationInput;
209
220
  step?: Prisma.PaymentMethodPhaseStepOrderByWithRelationInput;
210
221
  handler?: Prisma.EventHandlerOrderByWithRelationInput;
211
222
  _relevance?: Prisma.StepEventAttachmentOrderByRelevanceInput;
@@ -216,6 +227,7 @@ export type StepEventAttachmentWhereUniqueInput = Prisma.AtLeast<{
216
227
  AND?: Prisma.StepEventAttachmentWhereInput | Prisma.StepEventAttachmentWhereInput[];
217
228
  OR?: Prisma.StepEventAttachmentWhereInput[];
218
229
  NOT?: Prisma.StepEventAttachmentWhereInput | Prisma.StepEventAttachmentWhereInput[];
230
+ tenantId?: Prisma.StringFilter<"StepEventAttachment"> | string;
219
231
  stepId?: Prisma.StringFilter<"StepEventAttachment"> | string;
220
232
  trigger?: Prisma.EnumStepTriggerFilter<"StepEventAttachment"> | $Enums.StepTrigger;
221
233
  handlerId?: Prisma.StringFilter<"StepEventAttachment"> | string;
@@ -223,11 +235,13 @@ export type StepEventAttachmentWhereUniqueInput = Prisma.AtLeast<{
223
235
  enabled?: Prisma.BoolFilter<"StepEventAttachment"> | boolean;
224
236
  createdAt?: Prisma.DateTimeFilter<"StepEventAttachment"> | Date | string;
225
237
  updatedAt?: Prisma.DateTimeFilter<"StepEventAttachment"> | Date | string;
238
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
226
239
  step?: Prisma.XOR<Prisma.PaymentMethodPhaseStepScalarRelationFilter, Prisma.PaymentMethodPhaseStepWhereInput>;
227
240
  handler?: Prisma.XOR<Prisma.EventHandlerScalarRelationFilter, Prisma.EventHandlerWhereInput>;
228
241
  }, "id" | "stepId_handlerId_trigger">;
229
242
  export type StepEventAttachmentOrderByWithAggregationInput = {
230
243
  id?: Prisma.SortOrder;
244
+ tenantId?: Prisma.SortOrder;
231
245
  stepId?: Prisma.SortOrder;
232
246
  trigger?: Prisma.SortOrder;
233
247
  handlerId?: Prisma.SortOrder;
@@ -246,6 +260,7 @@ export type StepEventAttachmentScalarWhereWithAggregatesInput = {
246
260
  OR?: Prisma.StepEventAttachmentScalarWhereWithAggregatesInput[];
247
261
  NOT?: Prisma.StepEventAttachmentScalarWhereWithAggregatesInput | Prisma.StepEventAttachmentScalarWhereWithAggregatesInput[];
248
262
  id?: Prisma.StringWithAggregatesFilter<"StepEventAttachment"> | string;
263
+ tenantId?: Prisma.StringWithAggregatesFilter<"StepEventAttachment"> | string;
249
264
  stepId?: Prisma.StringWithAggregatesFilter<"StepEventAttachment"> | string;
250
265
  trigger?: Prisma.EnumStepTriggerWithAggregatesFilter<"StepEventAttachment"> | $Enums.StepTrigger;
251
266
  handlerId?: Prisma.StringWithAggregatesFilter<"StepEventAttachment"> | string;
@@ -261,11 +276,13 @@ export type StepEventAttachmentCreateInput = {
261
276
  enabled?: boolean;
262
277
  createdAt?: Date | string;
263
278
  updatedAt?: Date | string;
279
+ tenant: Prisma.TenantCreateNestedOneWithoutStepEventAttachmentsInput;
264
280
  step: Prisma.PaymentMethodPhaseStepCreateNestedOneWithoutEventAttachmentsInput;
265
281
  handler: Prisma.EventHandlerCreateNestedOneWithoutStepAttachmentsInput;
266
282
  };
267
283
  export type StepEventAttachmentUncheckedCreateInput = {
268
284
  id?: string;
285
+ tenantId: string;
269
286
  stepId: string;
270
287
  trigger: $Enums.StepTrigger;
271
288
  handlerId: string;
@@ -281,11 +298,13 @@ export type StepEventAttachmentUpdateInput = {
281
298
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
282
299
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
283
300
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
301
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutStepEventAttachmentsNestedInput;
284
302
  step?: Prisma.PaymentMethodPhaseStepUpdateOneRequiredWithoutEventAttachmentsNestedInput;
285
303
  handler?: Prisma.EventHandlerUpdateOneRequiredWithoutStepAttachmentsNestedInput;
286
304
  };
287
305
  export type StepEventAttachmentUncheckedUpdateInput = {
288
306
  id?: Prisma.StringFieldUpdateOperationsInput | string;
307
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
289
308
  stepId?: Prisma.StringFieldUpdateOperationsInput | string;
290
309
  trigger?: Prisma.EnumStepTriggerFieldUpdateOperationsInput | $Enums.StepTrigger;
291
310
  handlerId?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -296,6 +315,7 @@ export type StepEventAttachmentUncheckedUpdateInput = {
296
315
  };
297
316
  export type StepEventAttachmentCreateManyInput = {
298
317
  id?: string;
318
+ tenantId: string;
299
319
  stepId: string;
300
320
  trigger: $Enums.StepTrigger;
301
321
  handlerId: string;
@@ -314,6 +334,7 @@ export type StepEventAttachmentUpdateManyMutationInput = {
314
334
  };
315
335
  export type StepEventAttachmentUncheckedUpdateManyInput = {
316
336
  id?: Prisma.StringFieldUpdateOperationsInput | string;
337
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
317
338
  stepId?: Prisma.StringFieldUpdateOperationsInput | string;
318
339
  trigger?: Prisma.EnumStepTriggerFieldUpdateOperationsInput | $Enums.StepTrigger;
319
340
  handlerId?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -342,6 +363,7 @@ export type StepEventAttachmentStepIdHandlerIdTriggerCompoundUniqueInput = {
342
363
  };
343
364
  export type StepEventAttachmentCountOrderByAggregateInput = {
344
365
  id?: Prisma.SortOrder;
366
+ tenantId?: Prisma.SortOrder;
345
367
  stepId?: Prisma.SortOrder;
346
368
  trigger?: Prisma.SortOrder;
347
369
  handlerId?: Prisma.SortOrder;
@@ -355,6 +377,7 @@ export type StepEventAttachmentAvgOrderByAggregateInput = {
355
377
  };
356
378
  export type StepEventAttachmentMaxOrderByAggregateInput = {
357
379
  id?: Prisma.SortOrder;
380
+ tenantId?: Prisma.SortOrder;
358
381
  stepId?: Prisma.SortOrder;
359
382
  trigger?: Prisma.SortOrder;
360
383
  handlerId?: Prisma.SortOrder;
@@ -365,6 +388,7 @@ export type StepEventAttachmentMaxOrderByAggregateInput = {
365
388
  };
366
389
  export type StepEventAttachmentMinOrderByAggregateInput = {
367
390
  id?: Prisma.SortOrder;
391
+ tenantId?: Prisma.SortOrder;
368
392
  stepId?: Prisma.SortOrder;
369
393
  trigger?: Prisma.SortOrder;
370
394
  handlerId?: Prisma.SortOrder;
@@ -376,6 +400,44 @@ export type StepEventAttachmentMinOrderByAggregateInput = {
376
400
  export type StepEventAttachmentSumOrderByAggregateInput = {
377
401
  priority?: Prisma.SortOrder;
378
402
  };
403
+ export type StepEventAttachmentCreateNestedManyWithoutTenantInput = {
404
+ create?: Prisma.XOR<Prisma.StepEventAttachmentCreateWithoutTenantInput, Prisma.StepEventAttachmentUncheckedCreateWithoutTenantInput> | Prisma.StepEventAttachmentCreateWithoutTenantInput[] | Prisma.StepEventAttachmentUncheckedCreateWithoutTenantInput[];
405
+ connectOrCreate?: Prisma.StepEventAttachmentCreateOrConnectWithoutTenantInput | Prisma.StepEventAttachmentCreateOrConnectWithoutTenantInput[];
406
+ createMany?: Prisma.StepEventAttachmentCreateManyTenantInputEnvelope;
407
+ connect?: Prisma.StepEventAttachmentWhereUniqueInput | Prisma.StepEventAttachmentWhereUniqueInput[];
408
+ };
409
+ export type StepEventAttachmentUncheckedCreateNestedManyWithoutTenantInput = {
410
+ create?: Prisma.XOR<Prisma.StepEventAttachmentCreateWithoutTenantInput, Prisma.StepEventAttachmentUncheckedCreateWithoutTenantInput> | Prisma.StepEventAttachmentCreateWithoutTenantInput[] | Prisma.StepEventAttachmentUncheckedCreateWithoutTenantInput[];
411
+ connectOrCreate?: Prisma.StepEventAttachmentCreateOrConnectWithoutTenantInput | Prisma.StepEventAttachmentCreateOrConnectWithoutTenantInput[];
412
+ createMany?: Prisma.StepEventAttachmentCreateManyTenantInputEnvelope;
413
+ connect?: Prisma.StepEventAttachmentWhereUniqueInput | Prisma.StepEventAttachmentWhereUniqueInput[];
414
+ };
415
+ export type StepEventAttachmentUpdateManyWithoutTenantNestedInput = {
416
+ create?: Prisma.XOR<Prisma.StepEventAttachmentCreateWithoutTenantInput, Prisma.StepEventAttachmentUncheckedCreateWithoutTenantInput> | Prisma.StepEventAttachmentCreateWithoutTenantInput[] | Prisma.StepEventAttachmentUncheckedCreateWithoutTenantInput[];
417
+ connectOrCreate?: Prisma.StepEventAttachmentCreateOrConnectWithoutTenantInput | Prisma.StepEventAttachmentCreateOrConnectWithoutTenantInput[];
418
+ upsert?: Prisma.StepEventAttachmentUpsertWithWhereUniqueWithoutTenantInput | Prisma.StepEventAttachmentUpsertWithWhereUniqueWithoutTenantInput[];
419
+ createMany?: Prisma.StepEventAttachmentCreateManyTenantInputEnvelope;
420
+ set?: Prisma.StepEventAttachmentWhereUniqueInput | Prisma.StepEventAttachmentWhereUniqueInput[];
421
+ disconnect?: Prisma.StepEventAttachmentWhereUniqueInput | Prisma.StepEventAttachmentWhereUniqueInput[];
422
+ delete?: Prisma.StepEventAttachmentWhereUniqueInput | Prisma.StepEventAttachmentWhereUniqueInput[];
423
+ connect?: Prisma.StepEventAttachmentWhereUniqueInput | Prisma.StepEventAttachmentWhereUniqueInput[];
424
+ update?: Prisma.StepEventAttachmentUpdateWithWhereUniqueWithoutTenantInput | Prisma.StepEventAttachmentUpdateWithWhereUniqueWithoutTenantInput[];
425
+ updateMany?: Prisma.StepEventAttachmentUpdateManyWithWhereWithoutTenantInput | Prisma.StepEventAttachmentUpdateManyWithWhereWithoutTenantInput[];
426
+ deleteMany?: Prisma.StepEventAttachmentScalarWhereInput | Prisma.StepEventAttachmentScalarWhereInput[];
427
+ };
428
+ export type StepEventAttachmentUncheckedUpdateManyWithoutTenantNestedInput = {
429
+ create?: Prisma.XOR<Prisma.StepEventAttachmentCreateWithoutTenantInput, Prisma.StepEventAttachmentUncheckedCreateWithoutTenantInput> | Prisma.StepEventAttachmentCreateWithoutTenantInput[] | Prisma.StepEventAttachmentUncheckedCreateWithoutTenantInput[];
430
+ connectOrCreate?: Prisma.StepEventAttachmentCreateOrConnectWithoutTenantInput | Prisma.StepEventAttachmentCreateOrConnectWithoutTenantInput[];
431
+ upsert?: Prisma.StepEventAttachmentUpsertWithWhereUniqueWithoutTenantInput | Prisma.StepEventAttachmentUpsertWithWhereUniqueWithoutTenantInput[];
432
+ createMany?: Prisma.StepEventAttachmentCreateManyTenantInputEnvelope;
433
+ set?: Prisma.StepEventAttachmentWhereUniqueInput | Prisma.StepEventAttachmentWhereUniqueInput[];
434
+ disconnect?: Prisma.StepEventAttachmentWhereUniqueInput | Prisma.StepEventAttachmentWhereUniqueInput[];
435
+ delete?: Prisma.StepEventAttachmentWhereUniqueInput | Prisma.StepEventAttachmentWhereUniqueInput[];
436
+ connect?: Prisma.StepEventAttachmentWhereUniqueInput | Prisma.StepEventAttachmentWhereUniqueInput[];
437
+ update?: Prisma.StepEventAttachmentUpdateWithWhereUniqueWithoutTenantInput | Prisma.StepEventAttachmentUpdateWithWhereUniqueWithoutTenantInput[];
438
+ updateMany?: Prisma.StepEventAttachmentUpdateManyWithWhereWithoutTenantInput | Prisma.StepEventAttachmentUpdateManyWithWhereWithoutTenantInput[];
439
+ deleteMany?: Prisma.StepEventAttachmentScalarWhereInput | Prisma.StepEventAttachmentScalarWhereInput[];
440
+ };
379
441
  export type StepEventAttachmentCreateNestedManyWithoutStepInput = {
380
442
  create?: Prisma.XOR<Prisma.StepEventAttachmentCreateWithoutStepInput, Prisma.StepEventAttachmentUncheckedCreateWithoutStepInput> | Prisma.StepEventAttachmentCreateWithoutStepInput[] | Prisma.StepEventAttachmentUncheckedCreateWithoutStepInput[];
381
443
  connectOrCreate?: Prisma.StepEventAttachmentCreateOrConnectWithoutStepInput | Prisma.StepEventAttachmentCreateOrConnectWithoutStepInput[];
@@ -455,17 +517,19 @@ export type StepEventAttachmentUncheckedUpdateManyWithoutHandlerNestedInput = {
455
517
  updateMany?: Prisma.StepEventAttachmentUpdateManyWithWhereWithoutHandlerInput | Prisma.StepEventAttachmentUpdateManyWithWhereWithoutHandlerInput[];
456
518
  deleteMany?: Prisma.StepEventAttachmentScalarWhereInput | Prisma.StepEventAttachmentScalarWhereInput[];
457
519
  };
458
- export type StepEventAttachmentCreateWithoutStepInput = {
520
+ export type StepEventAttachmentCreateWithoutTenantInput = {
459
521
  id?: string;
460
522
  trigger: $Enums.StepTrigger;
461
523
  priority?: number;
462
524
  enabled?: boolean;
463
525
  createdAt?: Date | string;
464
526
  updatedAt?: Date | string;
527
+ step: Prisma.PaymentMethodPhaseStepCreateNestedOneWithoutEventAttachmentsInput;
465
528
  handler: Prisma.EventHandlerCreateNestedOneWithoutStepAttachmentsInput;
466
529
  };
467
- export type StepEventAttachmentUncheckedCreateWithoutStepInput = {
530
+ export type StepEventAttachmentUncheckedCreateWithoutTenantInput = {
468
531
  id?: string;
532
+ stepId: string;
469
533
  trigger: $Enums.StepTrigger;
470
534
  handlerId: string;
471
535
  priority?: number;
@@ -473,32 +537,33 @@ export type StepEventAttachmentUncheckedCreateWithoutStepInput = {
473
537
  createdAt?: Date | string;
474
538
  updatedAt?: Date | string;
475
539
  };
476
- export type StepEventAttachmentCreateOrConnectWithoutStepInput = {
540
+ export type StepEventAttachmentCreateOrConnectWithoutTenantInput = {
477
541
  where: Prisma.StepEventAttachmentWhereUniqueInput;
478
- create: Prisma.XOR<Prisma.StepEventAttachmentCreateWithoutStepInput, Prisma.StepEventAttachmentUncheckedCreateWithoutStepInput>;
542
+ create: Prisma.XOR<Prisma.StepEventAttachmentCreateWithoutTenantInput, Prisma.StepEventAttachmentUncheckedCreateWithoutTenantInput>;
479
543
  };
480
- export type StepEventAttachmentCreateManyStepInputEnvelope = {
481
- data: Prisma.StepEventAttachmentCreateManyStepInput | Prisma.StepEventAttachmentCreateManyStepInput[];
544
+ export type StepEventAttachmentCreateManyTenantInputEnvelope = {
545
+ data: Prisma.StepEventAttachmentCreateManyTenantInput | Prisma.StepEventAttachmentCreateManyTenantInput[];
482
546
  skipDuplicates?: boolean;
483
547
  };
484
- export type StepEventAttachmentUpsertWithWhereUniqueWithoutStepInput = {
548
+ export type StepEventAttachmentUpsertWithWhereUniqueWithoutTenantInput = {
485
549
  where: Prisma.StepEventAttachmentWhereUniqueInput;
486
- update: Prisma.XOR<Prisma.StepEventAttachmentUpdateWithoutStepInput, Prisma.StepEventAttachmentUncheckedUpdateWithoutStepInput>;
487
- create: Prisma.XOR<Prisma.StepEventAttachmentCreateWithoutStepInput, Prisma.StepEventAttachmentUncheckedCreateWithoutStepInput>;
550
+ update: Prisma.XOR<Prisma.StepEventAttachmentUpdateWithoutTenantInput, Prisma.StepEventAttachmentUncheckedUpdateWithoutTenantInput>;
551
+ create: Prisma.XOR<Prisma.StepEventAttachmentCreateWithoutTenantInput, Prisma.StepEventAttachmentUncheckedCreateWithoutTenantInput>;
488
552
  };
489
- export type StepEventAttachmentUpdateWithWhereUniqueWithoutStepInput = {
553
+ export type StepEventAttachmentUpdateWithWhereUniqueWithoutTenantInput = {
490
554
  where: Prisma.StepEventAttachmentWhereUniqueInput;
491
- data: Prisma.XOR<Prisma.StepEventAttachmentUpdateWithoutStepInput, Prisma.StepEventAttachmentUncheckedUpdateWithoutStepInput>;
555
+ data: Prisma.XOR<Prisma.StepEventAttachmentUpdateWithoutTenantInput, Prisma.StepEventAttachmentUncheckedUpdateWithoutTenantInput>;
492
556
  };
493
- export type StepEventAttachmentUpdateManyWithWhereWithoutStepInput = {
557
+ export type StepEventAttachmentUpdateManyWithWhereWithoutTenantInput = {
494
558
  where: Prisma.StepEventAttachmentScalarWhereInput;
495
- data: Prisma.XOR<Prisma.StepEventAttachmentUpdateManyMutationInput, Prisma.StepEventAttachmentUncheckedUpdateManyWithoutStepInput>;
559
+ data: Prisma.XOR<Prisma.StepEventAttachmentUpdateManyMutationInput, Prisma.StepEventAttachmentUncheckedUpdateManyWithoutTenantInput>;
496
560
  };
497
561
  export type StepEventAttachmentScalarWhereInput = {
498
562
  AND?: Prisma.StepEventAttachmentScalarWhereInput | Prisma.StepEventAttachmentScalarWhereInput[];
499
563
  OR?: Prisma.StepEventAttachmentScalarWhereInput[];
500
564
  NOT?: Prisma.StepEventAttachmentScalarWhereInput | Prisma.StepEventAttachmentScalarWhereInput[];
501
565
  id?: Prisma.StringFilter<"StepEventAttachment"> | string;
566
+ tenantId?: Prisma.StringFilter<"StepEventAttachment"> | string;
502
567
  stepId?: Prisma.StringFilter<"StepEventAttachment"> | string;
503
568
  trigger?: Prisma.EnumStepTriggerFilter<"StepEventAttachment"> | $Enums.StepTrigger;
504
569
  handlerId?: Prisma.StringFilter<"StepEventAttachment"> | string;
@@ -507,6 +572,47 @@ export type StepEventAttachmentScalarWhereInput = {
507
572
  createdAt?: Prisma.DateTimeFilter<"StepEventAttachment"> | Date | string;
508
573
  updatedAt?: Prisma.DateTimeFilter<"StepEventAttachment"> | Date | string;
509
574
  };
575
+ export type StepEventAttachmentCreateWithoutStepInput = {
576
+ id?: string;
577
+ trigger: $Enums.StepTrigger;
578
+ priority?: number;
579
+ enabled?: boolean;
580
+ createdAt?: Date | string;
581
+ updatedAt?: Date | string;
582
+ tenant: Prisma.TenantCreateNestedOneWithoutStepEventAttachmentsInput;
583
+ handler: Prisma.EventHandlerCreateNestedOneWithoutStepAttachmentsInput;
584
+ };
585
+ export type StepEventAttachmentUncheckedCreateWithoutStepInput = {
586
+ id?: string;
587
+ tenantId: string;
588
+ trigger: $Enums.StepTrigger;
589
+ handlerId: string;
590
+ priority?: number;
591
+ enabled?: boolean;
592
+ createdAt?: Date | string;
593
+ updatedAt?: Date | string;
594
+ };
595
+ export type StepEventAttachmentCreateOrConnectWithoutStepInput = {
596
+ where: Prisma.StepEventAttachmentWhereUniqueInput;
597
+ create: Prisma.XOR<Prisma.StepEventAttachmentCreateWithoutStepInput, Prisma.StepEventAttachmentUncheckedCreateWithoutStepInput>;
598
+ };
599
+ export type StepEventAttachmentCreateManyStepInputEnvelope = {
600
+ data: Prisma.StepEventAttachmentCreateManyStepInput | Prisma.StepEventAttachmentCreateManyStepInput[];
601
+ skipDuplicates?: boolean;
602
+ };
603
+ export type StepEventAttachmentUpsertWithWhereUniqueWithoutStepInput = {
604
+ where: Prisma.StepEventAttachmentWhereUniqueInput;
605
+ update: Prisma.XOR<Prisma.StepEventAttachmentUpdateWithoutStepInput, Prisma.StepEventAttachmentUncheckedUpdateWithoutStepInput>;
606
+ create: Prisma.XOR<Prisma.StepEventAttachmentCreateWithoutStepInput, Prisma.StepEventAttachmentUncheckedCreateWithoutStepInput>;
607
+ };
608
+ export type StepEventAttachmentUpdateWithWhereUniqueWithoutStepInput = {
609
+ where: Prisma.StepEventAttachmentWhereUniqueInput;
610
+ data: Prisma.XOR<Prisma.StepEventAttachmentUpdateWithoutStepInput, Prisma.StepEventAttachmentUncheckedUpdateWithoutStepInput>;
611
+ };
612
+ export type StepEventAttachmentUpdateManyWithWhereWithoutStepInput = {
613
+ where: Prisma.StepEventAttachmentScalarWhereInput;
614
+ data: Prisma.XOR<Prisma.StepEventAttachmentUpdateManyMutationInput, Prisma.StepEventAttachmentUncheckedUpdateManyWithoutStepInput>;
615
+ };
510
616
  export type StepEventAttachmentCreateWithoutHandlerInput = {
511
617
  id?: string;
512
618
  trigger: $Enums.StepTrigger;
@@ -514,10 +620,12 @@ export type StepEventAttachmentCreateWithoutHandlerInput = {
514
620
  enabled?: boolean;
515
621
  createdAt?: Date | string;
516
622
  updatedAt?: Date | string;
623
+ tenant: Prisma.TenantCreateNestedOneWithoutStepEventAttachmentsInput;
517
624
  step: Prisma.PaymentMethodPhaseStepCreateNestedOneWithoutEventAttachmentsInput;
518
625
  };
519
626
  export type StepEventAttachmentUncheckedCreateWithoutHandlerInput = {
520
627
  id?: string;
628
+ tenantId: string;
521
629
  stepId: string;
522
630
  trigger: $Enums.StepTrigger;
523
631
  priority?: number;
@@ -546,8 +654,49 @@ export type StepEventAttachmentUpdateManyWithWhereWithoutHandlerInput = {
546
654
  where: Prisma.StepEventAttachmentScalarWhereInput;
547
655
  data: Prisma.XOR<Prisma.StepEventAttachmentUpdateManyMutationInput, Prisma.StepEventAttachmentUncheckedUpdateManyWithoutHandlerInput>;
548
656
  };
657
+ export type StepEventAttachmentCreateManyTenantInput = {
658
+ id?: string;
659
+ stepId: string;
660
+ trigger: $Enums.StepTrigger;
661
+ handlerId: string;
662
+ priority?: number;
663
+ enabled?: boolean;
664
+ createdAt?: Date | string;
665
+ updatedAt?: Date | string;
666
+ };
667
+ export type StepEventAttachmentUpdateWithoutTenantInput = {
668
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
669
+ trigger?: Prisma.EnumStepTriggerFieldUpdateOperationsInput | $Enums.StepTrigger;
670
+ priority?: Prisma.IntFieldUpdateOperationsInput | number;
671
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
672
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
673
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
674
+ step?: Prisma.PaymentMethodPhaseStepUpdateOneRequiredWithoutEventAttachmentsNestedInput;
675
+ handler?: Prisma.EventHandlerUpdateOneRequiredWithoutStepAttachmentsNestedInput;
676
+ };
677
+ export type StepEventAttachmentUncheckedUpdateWithoutTenantInput = {
678
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
679
+ stepId?: Prisma.StringFieldUpdateOperationsInput | string;
680
+ trigger?: Prisma.EnumStepTriggerFieldUpdateOperationsInput | $Enums.StepTrigger;
681
+ handlerId?: Prisma.StringFieldUpdateOperationsInput | string;
682
+ priority?: Prisma.IntFieldUpdateOperationsInput | number;
683
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
684
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
685
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
686
+ };
687
+ export type StepEventAttachmentUncheckedUpdateManyWithoutTenantInput = {
688
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
689
+ stepId?: Prisma.StringFieldUpdateOperationsInput | string;
690
+ trigger?: Prisma.EnumStepTriggerFieldUpdateOperationsInput | $Enums.StepTrigger;
691
+ handlerId?: Prisma.StringFieldUpdateOperationsInput | string;
692
+ priority?: Prisma.IntFieldUpdateOperationsInput | number;
693
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
694
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
695
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
696
+ };
549
697
  export type StepEventAttachmentCreateManyStepInput = {
550
698
  id?: string;
699
+ tenantId: string;
551
700
  trigger: $Enums.StepTrigger;
552
701
  handlerId: string;
553
702
  priority?: number;
@@ -562,10 +711,12 @@ export type StepEventAttachmentUpdateWithoutStepInput = {
562
711
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
563
712
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
564
713
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
714
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutStepEventAttachmentsNestedInput;
565
715
  handler?: Prisma.EventHandlerUpdateOneRequiredWithoutStepAttachmentsNestedInput;
566
716
  };
567
717
  export type StepEventAttachmentUncheckedUpdateWithoutStepInput = {
568
718
  id?: Prisma.StringFieldUpdateOperationsInput | string;
719
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
569
720
  trigger?: Prisma.EnumStepTriggerFieldUpdateOperationsInput | $Enums.StepTrigger;
570
721
  handlerId?: Prisma.StringFieldUpdateOperationsInput | string;
571
722
  priority?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -575,6 +726,7 @@ export type StepEventAttachmentUncheckedUpdateWithoutStepInput = {
575
726
  };
576
727
  export type StepEventAttachmentUncheckedUpdateManyWithoutStepInput = {
577
728
  id?: Prisma.StringFieldUpdateOperationsInput | string;
729
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
578
730
  trigger?: Prisma.EnumStepTriggerFieldUpdateOperationsInput | $Enums.StepTrigger;
579
731
  handlerId?: Prisma.StringFieldUpdateOperationsInput | string;
580
732
  priority?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -584,6 +736,7 @@ export type StepEventAttachmentUncheckedUpdateManyWithoutStepInput = {
584
736
  };
585
737
  export type StepEventAttachmentCreateManyHandlerInput = {
586
738
  id?: string;
739
+ tenantId: string;
587
740
  stepId: string;
588
741
  trigger: $Enums.StepTrigger;
589
742
  priority?: number;
@@ -598,10 +751,12 @@ export type StepEventAttachmentUpdateWithoutHandlerInput = {
598
751
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
599
752
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
600
753
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
754
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutStepEventAttachmentsNestedInput;
601
755
  step?: Prisma.PaymentMethodPhaseStepUpdateOneRequiredWithoutEventAttachmentsNestedInput;
602
756
  };
603
757
  export type StepEventAttachmentUncheckedUpdateWithoutHandlerInput = {
604
758
  id?: Prisma.StringFieldUpdateOperationsInput | string;
759
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
605
760
  stepId?: Prisma.StringFieldUpdateOperationsInput | string;
606
761
  trigger?: Prisma.EnumStepTriggerFieldUpdateOperationsInput | $Enums.StepTrigger;
607
762
  priority?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -611,6 +766,7 @@ export type StepEventAttachmentUncheckedUpdateWithoutHandlerInput = {
611
766
  };
612
767
  export type StepEventAttachmentUncheckedUpdateManyWithoutHandlerInput = {
613
768
  id?: Prisma.StringFieldUpdateOperationsInput | string;
769
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
614
770
  stepId?: Prisma.StringFieldUpdateOperationsInput | string;
615
771
  trigger?: Prisma.EnumStepTriggerFieldUpdateOperationsInput | $Enums.StepTrigger;
616
772
  priority?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -620,6 +776,7 @@ export type StepEventAttachmentUncheckedUpdateManyWithoutHandlerInput = {
620
776
  };
621
777
  export type StepEventAttachmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
622
778
  id?: boolean;
779
+ tenantId?: boolean;
623
780
  stepId?: boolean;
624
781
  trigger?: boolean;
625
782
  handlerId?: boolean;
@@ -627,11 +784,13 @@ export type StepEventAttachmentSelect<ExtArgs extends runtime.Types.Extensions.I
627
784
  enabled?: boolean;
628
785
  createdAt?: boolean;
629
786
  updatedAt?: boolean;
787
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
630
788
  step?: boolean | Prisma.PaymentMethodPhaseStepDefaultArgs<ExtArgs>;
631
789
  handler?: boolean | Prisma.EventHandlerDefaultArgs<ExtArgs>;
632
790
  }, ExtArgs["result"]["stepEventAttachment"]>;
633
791
  export type StepEventAttachmentSelectScalar = {
634
792
  id?: boolean;
793
+ tenantId?: boolean;
635
794
  stepId?: boolean;
636
795
  trigger?: boolean;
637
796
  handlerId?: boolean;
@@ -640,19 +799,22 @@ export type StepEventAttachmentSelectScalar = {
640
799
  createdAt?: boolean;
641
800
  updatedAt?: boolean;
642
801
  };
643
- export type StepEventAttachmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "stepId" | "trigger" | "handlerId" | "priority" | "enabled" | "createdAt" | "updatedAt", ExtArgs["result"]["stepEventAttachment"]>;
802
+ export type StepEventAttachmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "stepId" | "trigger" | "handlerId" | "priority" | "enabled" | "createdAt" | "updatedAt", ExtArgs["result"]["stepEventAttachment"]>;
644
803
  export type StepEventAttachmentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
804
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
645
805
  step?: boolean | Prisma.PaymentMethodPhaseStepDefaultArgs<ExtArgs>;
646
806
  handler?: boolean | Prisma.EventHandlerDefaultArgs<ExtArgs>;
647
807
  };
648
808
  export type $StepEventAttachmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
649
809
  name: "StepEventAttachment";
650
810
  objects: {
811
+ tenant: Prisma.$TenantPayload<ExtArgs>;
651
812
  step: Prisma.$PaymentMethodPhaseStepPayload<ExtArgs>;
652
813
  handler: Prisma.$EventHandlerPayload<ExtArgs>;
653
814
  };
654
815
  scalars: runtime.Types.Extensions.GetPayloadResult<{
655
816
  id: string;
817
+ tenantId: string;
656
818
  stepId: string;
657
819
  /**
658
820
  * When this handler should fire
@@ -949,6 +1111,7 @@ export interface StepEventAttachmentDelegate<ExtArgs extends runtime.Types.Exten
949
1111
  */
950
1112
  export interface Prisma__StepEventAttachmentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
951
1113
  readonly [Symbol.toStringTag]: "PrismaPromise";
1114
+ 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>;
952
1115
  step<T extends Prisma.PaymentMethodPhaseStepDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PaymentMethodPhaseStepDefaultArgs<ExtArgs>>): Prisma.Prisma__PaymentMethodPhaseStepClient<runtime.Types.Result.GetResult<Prisma.$PaymentMethodPhaseStepPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
953
1116
  handler<T extends Prisma.EventHandlerDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EventHandlerDefaultArgs<ExtArgs>>): Prisma.Prisma__EventHandlerClient<runtime.Types.Result.GetResult<Prisma.$EventHandlerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
954
1117
  /**
@@ -977,6 +1140,7 @@ export interface Prisma__StepEventAttachmentClient<T, Null = never, ExtArgs exte
977
1140
  */
978
1141
  export interface StepEventAttachmentFieldRefs {
979
1142
  readonly id: Prisma.FieldRef<"StepEventAttachment", 'String'>;
1143
+ readonly tenantId: Prisma.FieldRef<"StepEventAttachment", 'String'>;
980
1144
  readonly stepId: Prisma.FieldRef<"StepEventAttachment", 'String'>;
981
1145
  readonly trigger: Prisma.FieldRef<"StepEventAttachment", 'StepTrigger'>;
982
1146
  readonly handlerId: Prisma.FieldRef<"StepEventAttachment", 'String'>;