@valentine-efagene/qshelter-common 2.0.99 → 2.0.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/generated/client/internal/class.js +2 -2
  2. package/dist/generated/client/internal/prismaNamespace.d.ts +56 -0
  3. package/dist/generated/client/internal/prismaNamespace.js +56 -0
  4. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +56 -0
  5. package/dist/generated/client/internal/prismaNamespaceBrowser.js +56 -0
  6. package/dist/generated/client/models/Amenity.d.ts +183 -3
  7. package/dist/generated/client/models/ApplicationDocument.d.ts +183 -1
  8. package/dist/generated/client/models/ApplicationEvent.d.ts +190 -14
  9. package/dist/generated/client/models/ApplicationPayment.d.ts +225 -1
  10. package/dist/generated/client/models/ApplicationPhase.d.ts +272 -26
  11. package/dist/generated/client/models/DocumentationPhase.d.ts +224 -24
  12. package/dist/generated/client/models/DocumentationStep.d.ts +237 -1
  13. package/dist/generated/client/models/DocumentationStepApproval.d.ts +159 -1
  14. package/dist/generated/client/models/DocumentationStepDocument.d.ts +150 -10
  15. package/dist/generated/client/models/EventHandlerExecution.d.ts +208 -14
  16. package/dist/generated/client/models/PaymentInstallment.d.ts +228 -14
  17. package/dist/generated/client/models/PaymentMethodPhaseDocument.d.ts +178 -14
  18. package/dist/generated/client/models/PaymentMethodPhaseField.d.ts +208 -14
  19. package/dist/generated/client/models/PaymentMethodPhaseStep.d.ts +180 -14
  20. package/dist/generated/client/models/PaymentPhase.d.ts +214 -14
  21. package/dist/generated/client/models/PhaseEventAttachment.d.ts +178 -14
  22. package/dist/generated/client/models/PropertyAmenity.d.ts +145 -11
  23. package/dist/generated/client/models/PropertyDocument.d.ts +164 -12
  24. package/dist/generated/client/models/PropertyMedia.d.ts +183 -17
  25. package/dist/generated/client/models/PropertyPaymentMethodLink.d.ts +159 -13
  26. package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +270 -14
  27. package/dist/generated/client/models/PropertyUnit.d.ts +230 -14
  28. package/dist/generated/client/models/PropertyVariant.d.ts +256 -14
  29. package/dist/generated/client/models/PropertyVariantAmenity.d.ts +145 -11
  30. package/dist/generated/client/models/PropertyVariantMedia.d.ts +171 -13
  31. package/dist/generated/client/models/QuestionnaireField.d.ts +232 -14
  32. package/dist/generated/client/models/QuestionnairePhase.d.ts +207 -1
  33. package/dist/generated/client/models/StepEventAttachment.d.ts +178 -14
  34. package/dist/generated/client/models/Tenant.d.ts +11653 -1153
  35. package/dist/src/prisma/tenant.js +26 -32
  36. package/package.json +1 -1
  37. package/prisma/migrations/20260113000000_remove_workflow_analytics_summary/migration.sql +5 -0
  38. package/prisma/migrations/20260113110450_add_tenant_id_to_child_models/migration.sql +334 -0
  39. package/prisma/schema.prisma +143 -30
@@ -22,6 +22,7 @@ export type PhaseEventAttachmentSumAggregateOutputType = {
22
22
  };
23
23
  export type PhaseEventAttachmentMinAggregateOutputType = {
24
24
  id: string | null;
25
+ tenantId: string | null;
25
26
  phaseId: string | null;
26
27
  trigger: $Enums.PhaseTrigger | null;
27
28
  handlerId: string | null;
@@ -32,6 +33,7 @@ export type PhaseEventAttachmentMinAggregateOutputType = {
32
33
  };
33
34
  export type PhaseEventAttachmentMaxAggregateOutputType = {
34
35
  id: string | null;
36
+ tenantId: string | null;
35
37
  phaseId: string | null;
36
38
  trigger: $Enums.PhaseTrigger | null;
37
39
  handlerId: string | null;
@@ -42,6 +44,7 @@ export type PhaseEventAttachmentMaxAggregateOutputType = {
42
44
  };
43
45
  export type PhaseEventAttachmentCountAggregateOutputType = {
44
46
  id: number;
47
+ tenantId: number;
45
48
  phaseId: number;
46
49
  trigger: number;
47
50
  handlerId: number;
@@ -59,6 +62,7 @@ export type PhaseEventAttachmentSumAggregateInputType = {
59
62
  };
60
63
  export type PhaseEventAttachmentMinAggregateInputType = {
61
64
  id?: true;
65
+ tenantId?: true;
62
66
  phaseId?: true;
63
67
  trigger?: true;
64
68
  handlerId?: true;
@@ -69,6 +73,7 @@ export type PhaseEventAttachmentMinAggregateInputType = {
69
73
  };
70
74
  export type PhaseEventAttachmentMaxAggregateInputType = {
71
75
  id?: true;
76
+ tenantId?: true;
72
77
  phaseId?: true;
73
78
  trigger?: true;
74
79
  handlerId?: true;
@@ -79,6 +84,7 @@ export type PhaseEventAttachmentMaxAggregateInputType = {
79
84
  };
80
85
  export type PhaseEventAttachmentCountAggregateInputType = {
81
86
  id?: true;
87
+ tenantId?: true;
82
88
  phaseId?: true;
83
89
  trigger?: true;
84
90
  handlerId?: true;
@@ -166,6 +172,7 @@ export type PhaseEventAttachmentGroupByArgs<ExtArgs extends runtime.Types.Extens
166
172
  };
167
173
  export type PhaseEventAttachmentGroupByOutputType = {
168
174
  id: string;
175
+ tenantId: string;
169
176
  phaseId: string;
170
177
  trigger: $Enums.PhaseTrigger;
171
178
  handlerId: string;
@@ -187,6 +194,7 @@ export type PhaseEventAttachmentWhereInput = {
187
194
  OR?: Prisma.PhaseEventAttachmentWhereInput[];
188
195
  NOT?: Prisma.PhaseEventAttachmentWhereInput | Prisma.PhaseEventAttachmentWhereInput[];
189
196
  id?: Prisma.StringFilter<"PhaseEventAttachment"> | string;
197
+ tenantId?: Prisma.StringFilter<"PhaseEventAttachment"> | string;
190
198
  phaseId?: Prisma.StringFilter<"PhaseEventAttachment"> | string;
191
199
  trigger?: Prisma.EnumPhaseTriggerFilter<"PhaseEventAttachment"> | $Enums.PhaseTrigger;
192
200
  handlerId?: Prisma.StringFilter<"PhaseEventAttachment"> | string;
@@ -194,11 +202,13 @@ export type PhaseEventAttachmentWhereInput = {
194
202
  enabled?: Prisma.BoolFilter<"PhaseEventAttachment"> | boolean;
195
203
  createdAt?: Prisma.DateTimeFilter<"PhaseEventAttachment"> | Date | string;
196
204
  updatedAt?: Prisma.DateTimeFilter<"PhaseEventAttachment"> | Date | string;
205
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
197
206
  phase?: Prisma.XOR<Prisma.PropertyPaymentMethodPhaseScalarRelationFilter, Prisma.PropertyPaymentMethodPhaseWhereInput>;
198
207
  handler?: Prisma.XOR<Prisma.EventHandlerScalarRelationFilter, Prisma.EventHandlerWhereInput>;
199
208
  };
200
209
  export type PhaseEventAttachmentOrderByWithRelationInput = {
201
210
  id?: Prisma.SortOrder;
211
+ tenantId?: Prisma.SortOrder;
202
212
  phaseId?: Prisma.SortOrder;
203
213
  trigger?: Prisma.SortOrder;
204
214
  handlerId?: Prisma.SortOrder;
@@ -206,6 +216,7 @@ export type PhaseEventAttachmentOrderByWithRelationInput = {
206
216
  enabled?: Prisma.SortOrder;
207
217
  createdAt?: Prisma.SortOrder;
208
218
  updatedAt?: Prisma.SortOrder;
219
+ tenant?: Prisma.TenantOrderByWithRelationInput;
209
220
  phase?: Prisma.PropertyPaymentMethodPhaseOrderByWithRelationInput;
210
221
  handler?: Prisma.EventHandlerOrderByWithRelationInput;
211
222
  _relevance?: Prisma.PhaseEventAttachmentOrderByRelevanceInput;
@@ -216,6 +227,7 @@ export type PhaseEventAttachmentWhereUniqueInput = Prisma.AtLeast<{
216
227
  AND?: Prisma.PhaseEventAttachmentWhereInput | Prisma.PhaseEventAttachmentWhereInput[];
217
228
  OR?: Prisma.PhaseEventAttachmentWhereInput[];
218
229
  NOT?: Prisma.PhaseEventAttachmentWhereInput | Prisma.PhaseEventAttachmentWhereInput[];
230
+ tenantId?: Prisma.StringFilter<"PhaseEventAttachment"> | string;
219
231
  phaseId?: Prisma.StringFilter<"PhaseEventAttachment"> | string;
220
232
  trigger?: Prisma.EnumPhaseTriggerFilter<"PhaseEventAttachment"> | $Enums.PhaseTrigger;
221
233
  handlerId?: Prisma.StringFilter<"PhaseEventAttachment"> | string;
@@ -223,11 +235,13 @@ export type PhaseEventAttachmentWhereUniqueInput = Prisma.AtLeast<{
223
235
  enabled?: Prisma.BoolFilter<"PhaseEventAttachment"> | boolean;
224
236
  createdAt?: Prisma.DateTimeFilter<"PhaseEventAttachment"> | Date | string;
225
237
  updatedAt?: Prisma.DateTimeFilter<"PhaseEventAttachment"> | Date | string;
238
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
226
239
  phase?: Prisma.XOR<Prisma.PropertyPaymentMethodPhaseScalarRelationFilter, Prisma.PropertyPaymentMethodPhaseWhereInput>;
227
240
  handler?: Prisma.XOR<Prisma.EventHandlerScalarRelationFilter, Prisma.EventHandlerWhereInput>;
228
241
  }, "id" | "phaseId_handlerId_trigger">;
229
242
  export type PhaseEventAttachmentOrderByWithAggregationInput = {
230
243
  id?: Prisma.SortOrder;
244
+ tenantId?: Prisma.SortOrder;
231
245
  phaseId?: Prisma.SortOrder;
232
246
  trigger?: Prisma.SortOrder;
233
247
  handlerId?: Prisma.SortOrder;
@@ -246,6 +260,7 @@ export type PhaseEventAttachmentScalarWhereWithAggregatesInput = {
246
260
  OR?: Prisma.PhaseEventAttachmentScalarWhereWithAggregatesInput[];
247
261
  NOT?: Prisma.PhaseEventAttachmentScalarWhereWithAggregatesInput | Prisma.PhaseEventAttachmentScalarWhereWithAggregatesInput[];
248
262
  id?: Prisma.StringWithAggregatesFilter<"PhaseEventAttachment"> | string;
263
+ tenantId?: Prisma.StringWithAggregatesFilter<"PhaseEventAttachment"> | string;
249
264
  phaseId?: Prisma.StringWithAggregatesFilter<"PhaseEventAttachment"> | string;
250
265
  trigger?: Prisma.EnumPhaseTriggerWithAggregatesFilter<"PhaseEventAttachment"> | $Enums.PhaseTrigger;
251
266
  handlerId?: Prisma.StringWithAggregatesFilter<"PhaseEventAttachment"> | string;
@@ -261,11 +276,13 @@ export type PhaseEventAttachmentCreateInput = {
261
276
  enabled?: boolean;
262
277
  createdAt?: Date | string;
263
278
  updatedAt?: Date | string;
279
+ tenant: Prisma.TenantCreateNestedOneWithoutPhaseEventAttachmentsInput;
264
280
  phase: Prisma.PropertyPaymentMethodPhaseCreateNestedOneWithoutEventAttachmentsInput;
265
281
  handler: Prisma.EventHandlerCreateNestedOneWithoutPhaseAttachmentsInput;
266
282
  };
267
283
  export type PhaseEventAttachmentUncheckedCreateInput = {
268
284
  id?: string;
285
+ tenantId: string;
269
286
  phaseId: string;
270
287
  trigger: $Enums.PhaseTrigger;
271
288
  handlerId: string;
@@ -281,11 +298,13 @@ export type PhaseEventAttachmentUpdateInput = {
281
298
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
282
299
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
283
300
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
301
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutPhaseEventAttachmentsNestedInput;
284
302
  phase?: Prisma.PropertyPaymentMethodPhaseUpdateOneRequiredWithoutEventAttachmentsNestedInput;
285
303
  handler?: Prisma.EventHandlerUpdateOneRequiredWithoutPhaseAttachmentsNestedInput;
286
304
  };
287
305
  export type PhaseEventAttachmentUncheckedUpdateInput = {
288
306
  id?: Prisma.StringFieldUpdateOperationsInput | string;
307
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
289
308
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
290
309
  trigger?: Prisma.EnumPhaseTriggerFieldUpdateOperationsInput | $Enums.PhaseTrigger;
291
310
  handlerId?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -296,6 +315,7 @@ export type PhaseEventAttachmentUncheckedUpdateInput = {
296
315
  };
297
316
  export type PhaseEventAttachmentCreateManyInput = {
298
317
  id?: string;
318
+ tenantId: string;
299
319
  phaseId: string;
300
320
  trigger: $Enums.PhaseTrigger;
301
321
  handlerId: string;
@@ -314,6 +334,7 @@ export type PhaseEventAttachmentUpdateManyMutationInput = {
314
334
  };
315
335
  export type PhaseEventAttachmentUncheckedUpdateManyInput = {
316
336
  id?: Prisma.StringFieldUpdateOperationsInput | string;
337
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
317
338
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
318
339
  trigger?: Prisma.EnumPhaseTriggerFieldUpdateOperationsInput | $Enums.PhaseTrigger;
319
340
  handlerId?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -342,6 +363,7 @@ export type PhaseEventAttachmentPhaseIdHandlerIdTriggerCompoundUniqueInput = {
342
363
  };
343
364
  export type PhaseEventAttachmentCountOrderByAggregateInput = {
344
365
  id?: Prisma.SortOrder;
366
+ tenantId?: Prisma.SortOrder;
345
367
  phaseId?: Prisma.SortOrder;
346
368
  trigger?: Prisma.SortOrder;
347
369
  handlerId?: Prisma.SortOrder;
@@ -355,6 +377,7 @@ export type PhaseEventAttachmentAvgOrderByAggregateInput = {
355
377
  };
356
378
  export type PhaseEventAttachmentMaxOrderByAggregateInput = {
357
379
  id?: Prisma.SortOrder;
380
+ tenantId?: Prisma.SortOrder;
358
381
  phaseId?: Prisma.SortOrder;
359
382
  trigger?: Prisma.SortOrder;
360
383
  handlerId?: Prisma.SortOrder;
@@ -365,6 +388,7 @@ export type PhaseEventAttachmentMaxOrderByAggregateInput = {
365
388
  };
366
389
  export type PhaseEventAttachmentMinOrderByAggregateInput = {
367
390
  id?: Prisma.SortOrder;
391
+ tenantId?: Prisma.SortOrder;
368
392
  phaseId?: Prisma.SortOrder;
369
393
  trigger?: Prisma.SortOrder;
370
394
  handlerId?: Prisma.SortOrder;
@@ -376,6 +400,44 @@ export type PhaseEventAttachmentMinOrderByAggregateInput = {
376
400
  export type PhaseEventAttachmentSumOrderByAggregateInput = {
377
401
  priority?: Prisma.SortOrder;
378
402
  };
403
+ export type PhaseEventAttachmentCreateNestedManyWithoutTenantInput = {
404
+ create?: Prisma.XOR<Prisma.PhaseEventAttachmentCreateWithoutTenantInput, Prisma.PhaseEventAttachmentUncheckedCreateWithoutTenantInput> | Prisma.PhaseEventAttachmentCreateWithoutTenantInput[] | Prisma.PhaseEventAttachmentUncheckedCreateWithoutTenantInput[];
405
+ connectOrCreate?: Prisma.PhaseEventAttachmentCreateOrConnectWithoutTenantInput | Prisma.PhaseEventAttachmentCreateOrConnectWithoutTenantInput[];
406
+ createMany?: Prisma.PhaseEventAttachmentCreateManyTenantInputEnvelope;
407
+ connect?: Prisma.PhaseEventAttachmentWhereUniqueInput | Prisma.PhaseEventAttachmentWhereUniqueInput[];
408
+ };
409
+ export type PhaseEventAttachmentUncheckedCreateNestedManyWithoutTenantInput = {
410
+ create?: Prisma.XOR<Prisma.PhaseEventAttachmentCreateWithoutTenantInput, Prisma.PhaseEventAttachmentUncheckedCreateWithoutTenantInput> | Prisma.PhaseEventAttachmentCreateWithoutTenantInput[] | Prisma.PhaseEventAttachmentUncheckedCreateWithoutTenantInput[];
411
+ connectOrCreate?: Prisma.PhaseEventAttachmentCreateOrConnectWithoutTenantInput | Prisma.PhaseEventAttachmentCreateOrConnectWithoutTenantInput[];
412
+ createMany?: Prisma.PhaseEventAttachmentCreateManyTenantInputEnvelope;
413
+ connect?: Prisma.PhaseEventAttachmentWhereUniqueInput | Prisma.PhaseEventAttachmentWhereUniqueInput[];
414
+ };
415
+ export type PhaseEventAttachmentUpdateManyWithoutTenantNestedInput = {
416
+ create?: Prisma.XOR<Prisma.PhaseEventAttachmentCreateWithoutTenantInput, Prisma.PhaseEventAttachmentUncheckedCreateWithoutTenantInput> | Prisma.PhaseEventAttachmentCreateWithoutTenantInput[] | Prisma.PhaseEventAttachmentUncheckedCreateWithoutTenantInput[];
417
+ connectOrCreate?: Prisma.PhaseEventAttachmentCreateOrConnectWithoutTenantInput | Prisma.PhaseEventAttachmentCreateOrConnectWithoutTenantInput[];
418
+ upsert?: Prisma.PhaseEventAttachmentUpsertWithWhereUniqueWithoutTenantInput | Prisma.PhaseEventAttachmentUpsertWithWhereUniqueWithoutTenantInput[];
419
+ createMany?: Prisma.PhaseEventAttachmentCreateManyTenantInputEnvelope;
420
+ set?: Prisma.PhaseEventAttachmentWhereUniqueInput | Prisma.PhaseEventAttachmentWhereUniqueInput[];
421
+ disconnect?: Prisma.PhaseEventAttachmentWhereUniqueInput | Prisma.PhaseEventAttachmentWhereUniqueInput[];
422
+ delete?: Prisma.PhaseEventAttachmentWhereUniqueInput | Prisma.PhaseEventAttachmentWhereUniqueInput[];
423
+ connect?: Prisma.PhaseEventAttachmentWhereUniqueInput | Prisma.PhaseEventAttachmentWhereUniqueInput[];
424
+ update?: Prisma.PhaseEventAttachmentUpdateWithWhereUniqueWithoutTenantInput | Prisma.PhaseEventAttachmentUpdateWithWhereUniqueWithoutTenantInput[];
425
+ updateMany?: Prisma.PhaseEventAttachmentUpdateManyWithWhereWithoutTenantInput | Prisma.PhaseEventAttachmentUpdateManyWithWhereWithoutTenantInput[];
426
+ deleteMany?: Prisma.PhaseEventAttachmentScalarWhereInput | Prisma.PhaseEventAttachmentScalarWhereInput[];
427
+ };
428
+ export type PhaseEventAttachmentUncheckedUpdateManyWithoutTenantNestedInput = {
429
+ create?: Prisma.XOR<Prisma.PhaseEventAttachmentCreateWithoutTenantInput, Prisma.PhaseEventAttachmentUncheckedCreateWithoutTenantInput> | Prisma.PhaseEventAttachmentCreateWithoutTenantInput[] | Prisma.PhaseEventAttachmentUncheckedCreateWithoutTenantInput[];
430
+ connectOrCreate?: Prisma.PhaseEventAttachmentCreateOrConnectWithoutTenantInput | Prisma.PhaseEventAttachmentCreateOrConnectWithoutTenantInput[];
431
+ upsert?: Prisma.PhaseEventAttachmentUpsertWithWhereUniqueWithoutTenantInput | Prisma.PhaseEventAttachmentUpsertWithWhereUniqueWithoutTenantInput[];
432
+ createMany?: Prisma.PhaseEventAttachmentCreateManyTenantInputEnvelope;
433
+ set?: Prisma.PhaseEventAttachmentWhereUniqueInput | Prisma.PhaseEventAttachmentWhereUniqueInput[];
434
+ disconnect?: Prisma.PhaseEventAttachmentWhereUniqueInput | Prisma.PhaseEventAttachmentWhereUniqueInput[];
435
+ delete?: Prisma.PhaseEventAttachmentWhereUniqueInput | Prisma.PhaseEventAttachmentWhereUniqueInput[];
436
+ connect?: Prisma.PhaseEventAttachmentWhereUniqueInput | Prisma.PhaseEventAttachmentWhereUniqueInput[];
437
+ update?: Prisma.PhaseEventAttachmentUpdateWithWhereUniqueWithoutTenantInput | Prisma.PhaseEventAttachmentUpdateWithWhereUniqueWithoutTenantInput[];
438
+ updateMany?: Prisma.PhaseEventAttachmentUpdateManyWithWhereWithoutTenantInput | Prisma.PhaseEventAttachmentUpdateManyWithWhereWithoutTenantInput[];
439
+ deleteMany?: Prisma.PhaseEventAttachmentScalarWhereInput | Prisma.PhaseEventAttachmentScalarWhereInput[];
440
+ };
379
441
  export type PhaseEventAttachmentCreateNestedManyWithoutPhaseInput = {
380
442
  create?: Prisma.XOR<Prisma.PhaseEventAttachmentCreateWithoutPhaseInput, Prisma.PhaseEventAttachmentUncheckedCreateWithoutPhaseInput> | Prisma.PhaseEventAttachmentCreateWithoutPhaseInput[] | Prisma.PhaseEventAttachmentUncheckedCreateWithoutPhaseInput[];
381
443
  connectOrCreate?: Prisma.PhaseEventAttachmentCreateOrConnectWithoutPhaseInput | Prisma.PhaseEventAttachmentCreateOrConnectWithoutPhaseInput[];
@@ -455,17 +517,19 @@ export type PhaseEventAttachmentUncheckedUpdateManyWithoutHandlerNestedInput = {
455
517
  updateMany?: Prisma.PhaseEventAttachmentUpdateManyWithWhereWithoutHandlerInput | Prisma.PhaseEventAttachmentUpdateManyWithWhereWithoutHandlerInput[];
456
518
  deleteMany?: Prisma.PhaseEventAttachmentScalarWhereInput | Prisma.PhaseEventAttachmentScalarWhereInput[];
457
519
  };
458
- export type PhaseEventAttachmentCreateWithoutPhaseInput = {
520
+ export type PhaseEventAttachmentCreateWithoutTenantInput = {
459
521
  id?: string;
460
522
  trigger: $Enums.PhaseTrigger;
461
523
  priority?: number;
462
524
  enabled?: boolean;
463
525
  createdAt?: Date | string;
464
526
  updatedAt?: Date | string;
527
+ phase: Prisma.PropertyPaymentMethodPhaseCreateNestedOneWithoutEventAttachmentsInput;
465
528
  handler: Prisma.EventHandlerCreateNestedOneWithoutPhaseAttachmentsInput;
466
529
  };
467
- export type PhaseEventAttachmentUncheckedCreateWithoutPhaseInput = {
530
+ export type PhaseEventAttachmentUncheckedCreateWithoutTenantInput = {
468
531
  id?: string;
532
+ phaseId: string;
469
533
  trigger: $Enums.PhaseTrigger;
470
534
  handlerId: string;
471
535
  priority?: number;
@@ -473,32 +537,33 @@ export type PhaseEventAttachmentUncheckedCreateWithoutPhaseInput = {
473
537
  createdAt?: Date | string;
474
538
  updatedAt?: Date | string;
475
539
  };
476
- export type PhaseEventAttachmentCreateOrConnectWithoutPhaseInput = {
540
+ export type PhaseEventAttachmentCreateOrConnectWithoutTenantInput = {
477
541
  where: Prisma.PhaseEventAttachmentWhereUniqueInput;
478
- create: Prisma.XOR<Prisma.PhaseEventAttachmentCreateWithoutPhaseInput, Prisma.PhaseEventAttachmentUncheckedCreateWithoutPhaseInput>;
542
+ create: Prisma.XOR<Prisma.PhaseEventAttachmentCreateWithoutTenantInput, Prisma.PhaseEventAttachmentUncheckedCreateWithoutTenantInput>;
479
543
  };
480
- export type PhaseEventAttachmentCreateManyPhaseInputEnvelope = {
481
- data: Prisma.PhaseEventAttachmentCreateManyPhaseInput | Prisma.PhaseEventAttachmentCreateManyPhaseInput[];
544
+ export type PhaseEventAttachmentCreateManyTenantInputEnvelope = {
545
+ data: Prisma.PhaseEventAttachmentCreateManyTenantInput | Prisma.PhaseEventAttachmentCreateManyTenantInput[];
482
546
  skipDuplicates?: boolean;
483
547
  };
484
- export type PhaseEventAttachmentUpsertWithWhereUniqueWithoutPhaseInput = {
548
+ export type PhaseEventAttachmentUpsertWithWhereUniqueWithoutTenantInput = {
485
549
  where: Prisma.PhaseEventAttachmentWhereUniqueInput;
486
- update: Prisma.XOR<Prisma.PhaseEventAttachmentUpdateWithoutPhaseInput, Prisma.PhaseEventAttachmentUncheckedUpdateWithoutPhaseInput>;
487
- create: Prisma.XOR<Prisma.PhaseEventAttachmentCreateWithoutPhaseInput, Prisma.PhaseEventAttachmentUncheckedCreateWithoutPhaseInput>;
550
+ update: Prisma.XOR<Prisma.PhaseEventAttachmentUpdateWithoutTenantInput, Prisma.PhaseEventAttachmentUncheckedUpdateWithoutTenantInput>;
551
+ create: Prisma.XOR<Prisma.PhaseEventAttachmentCreateWithoutTenantInput, Prisma.PhaseEventAttachmentUncheckedCreateWithoutTenantInput>;
488
552
  };
489
- export type PhaseEventAttachmentUpdateWithWhereUniqueWithoutPhaseInput = {
553
+ export type PhaseEventAttachmentUpdateWithWhereUniqueWithoutTenantInput = {
490
554
  where: Prisma.PhaseEventAttachmentWhereUniqueInput;
491
- data: Prisma.XOR<Prisma.PhaseEventAttachmentUpdateWithoutPhaseInput, Prisma.PhaseEventAttachmentUncheckedUpdateWithoutPhaseInput>;
555
+ data: Prisma.XOR<Prisma.PhaseEventAttachmentUpdateWithoutTenantInput, Prisma.PhaseEventAttachmentUncheckedUpdateWithoutTenantInput>;
492
556
  };
493
- export type PhaseEventAttachmentUpdateManyWithWhereWithoutPhaseInput = {
557
+ export type PhaseEventAttachmentUpdateManyWithWhereWithoutTenantInput = {
494
558
  where: Prisma.PhaseEventAttachmentScalarWhereInput;
495
- data: Prisma.XOR<Prisma.PhaseEventAttachmentUpdateManyMutationInput, Prisma.PhaseEventAttachmentUncheckedUpdateManyWithoutPhaseInput>;
559
+ data: Prisma.XOR<Prisma.PhaseEventAttachmentUpdateManyMutationInput, Prisma.PhaseEventAttachmentUncheckedUpdateManyWithoutTenantInput>;
496
560
  };
497
561
  export type PhaseEventAttachmentScalarWhereInput = {
498
562
  AND?: Prisma.PhaseEventAttachmentScalarWhereInput | Prisma.PhaseEventAttachmentScalarWhereInput[];
499
563
  OR?: Prisma.PhaseEventAttachmentScalarWhereInput[];
500
564
  NOT?: Prisma.PhaseEventAttachmentScalarWhereInput | Prisma.PhaseEventAttachmentScalarWhereInput[];
501
565
  id?: Prisma.StringFilter<"PhaseEventAttachment"> | string;
566
+ tenantId?: Prisma.StringFilter<"PhaseEventAttachment"> | string;
502
567
  phaseId?: Prisma.StringFilter<"PhaseEventAttachment"> | string;
503
568
  trigger?: Prisma.EnumPhaseTriggerFilter<"PhaseEventAttachment"> | $Enums.PhaseTrigger;
504
569
  handlerId?: Prisma.StringFilter<"PhaseEventAttachment"> | string;
@@ -507,6 +572,47 @@ export type PhaseEventAttachmentScalarWhereInput = {
507
572
  createdAt?: Prisma.DateTimeFilter<"PhaseEventAttachment"> | Date | string;
508
573
  updatedAt?: Prisma.DateTimeFilter<"PhaseEventAttachment"> | Date | string;
509
574
  };
575
+ export type PhaseEventAttachmentCreateWithoutPhaseInput = {
576
+ id?: string;
577
+ trigger: $Enums.PhaseTrigger;
578
+ priority?: number;
579
+ enabled?: boolean;
580
+ createdAt?: Date | string;
581
+ updatedAt?: Date | string;
582
+ tenant: Prisma.TenantCreateNestedOneWithoutPhaseEventAttachmentsInput;
583
+ handler: Prisma.EventHandlerCreateNestedOneWithoutPhaseAttachmentsInput;
584
+ };
585
+ export type PhaseEventAttachmentUncheckedCreateWithoutPhaseInput = {
586
+ id?: string;
587
+ tenantId: string;
588
+ trigger: $Enums.PhaseTrigger;
589
+ handlerId: string;
590
+ priority?: number;
591
+ enabled?: boolean;
592
+ createdAt?: Date | string;
593
+ updatedAt?: Date | string;
594
+ };
595
+ export type PhaseEventAttachmentCreateOrConnectWithoutPhaseInput = {
596
+ where: Prisma.PhaseEventAttachmentWhereUniqueInput;
597
+ create: Prisma.XOR<Prisma.PhaseEventAttachmentCreateWithoutPhaseInput, Prisma.PhaseEventAttachmentUncheckedCreateWithoutPhaseInput>;
598
+ };
599
+ export type PhaseEventAttachmentCreateManyPhaseInputEnvelope = {
600
+ data: Prisma.PhaseEventAttachmentCreateManyPhaseInput | Prisma.PhaseEventAttachmentCreateManyPhaseInput[];
601
+ skipDuplicates?: boolean;
602
+ };
603
+ export type PhaseEventAttachmentUpsertWithWhereUniqueWithoutPhaseInput = {
604
+ where: Prisma.PhaseEventAttachmentWhereUniqueInput;
605
+ update: Prisma.XOR<Prisma.PhaseEventAttachmentUpdateWithoutPhaseInput, Prisma.PhaseEventAttachmentUncheckedUpdateWithoutPhaseInput>;
606
+ create: Prisma.XOR<Prisma.PhaseEventAttachmentCreateWithoutPhaseInput, Prisma.PhaseEventAttachmentUncheckedCreateWithoutPhaseInput>;
607
+ };
608
+ export type PhaseEventAttachmentUpdateWithWhereUniqueWithoutPhaseInput = {
609
+ where: Prisma.PhaseEventAttachmentWhereUniqueInput;
610
+ data: Prisma.XOR<Prisma.PhaseEventAttachmentUpdateWithoutPhaseInput, Prisma.PhaseEventAttachmentUncheckedUpdateWithoutPhaseInput>;
611
+ };
612
+ export type PhaseEventAttachmentUpdateManyWithWhereWithoutPhaseInput = {
613
+ where: Prisma.PhaseEventAttachmentScalarWhereInput;
614
+ data: Prisma.XOR<Prisma.PhaseEventAttachmentUpdateManyMutationInput, Prisma.PhaseEventAttachmentUncheckedUpdateManyWithoutPhaseInput>;
615
+ };
510
616
  export type PhaseEventAttachmentCreateWithoutHandlerInput = {
511
617
  id?: string;
512
618
  trigger: $Enums.PhaseTrigger;
@@ -514,10 +620,12 @@ export type PhaseEventAttachmentCreateWithoutHandlerInput = {
514
620
  enabled?: boolean;
515
621
  createdAt?: Date | string;
516
622
  updatedAt?: Date | string;
623
+ tenant: Prisma.TenantCreateNestedOneWithoutPhaseEventAttachmentsInput;
517
624
  phase: Prisma.PropertyPaymentMethodPhaseCreateNestedOneWithoutEventAttachmentsInput;
518
625
  };
519
626
  export type PhaseEventAttachmentUncheckedCreateWithoutHandlerInput = {
520
627
  id?: string;
628
+ tenantId: string;
521
629
  phaseId: string;
522
630
  trigger: $Enums.PhaseTrigger;
523
631
  priority?: number;
@@ -546,8 +654,49 @@ export type PhaseEventAttachmentUpdateManyWithWhereWithoutHandlerInput = {
546
654
  where: Prisma.PhaseEventAttachmentScalarWhereInput;
547
655
  data: Prisma.XOR<Prisma.PhaseEventAttachmentUpdateManyMutationInput, Prisma.PhaseEventAttachmentUncheckedUpdateManyWithoutHandlerInput>;
548
656
  };
657
+ export type PhaseEventAttachmentCreateManyTenantInput = {
658
+ id?: string;
659
+ phaseId: string;
660
+ trigger: $Enums.PhaseTrigger;
661
+ handlerId: string;
662
+ priority?: number;
663
+ enabled?: boolean;
664
+ createdAt?: Date | string;
665
+ updatedAt?: Date | string;
666
+ };
667
+ export type PhaseEventAttachmentUpdateWithoutTenantInput = {
668
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
669
+ trigger?: Prisma.EnumPhaseTriggerFieldUpdateOperationsInput | $Enums.PhaseTrigger;
670
+ priority?: Prisma.IntFieldUpdateOperationsInput | number;
671
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
672
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
673
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
674
+ phase?: Prisma.PropertyPaymentMethodPhaseUpdateOneRequiredWithoutEventAttachmentsNestedInput;
675
+ handler?: Prisma.EventHandlerUpdateOneRequiredWithoutPhaseAttachmentsNestedInput;
676
+ };
677
+ export type PhaseEventAttachmentUncheckedUpdateWithoutTenantInput = {
678
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
679
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
680
+ trigger?: Prisma.EnumPhaseTriggerFieldUpdateOperationsInput | $Enums.PhaseTrigger;
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 PhaseEventAttachmentUncheckedUpdateManyWithoutTenantInput = {
688
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
689
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
690
+ trigger?: Prisma.EnumPhaseTriggerFieldUpdateOperationsInput | $Enums.PhaseTrigger;
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 PhaseEventAttachmentCreateManyPhaseInput = {
550
698
  id?: string;
699
+ tenantId: string;
551
700
  trigger: $Enums.PhaseTrigger;
552
701
  handlerId: string;
553
702
  priority?: number;
@@ -562,10 +711,12 @@ export type PhaseEventAttachmentUpdateWithoutPhaseInput = {
562
711
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
563
712
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
564
713
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
714
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutPhaseEventAttachmentsNestedInput;
565
715
  handler?: Prisma.EventHandlerUpdateOneRequiredWithoutPhaseAttachmentsNestedInput;
566
716
  };
567
717
  export type PhaseEventAttachmentUncheckedUpdateWithoutPhaseInput = {
568
718
  id?: Prisma.StringFieldUpdateOperationsInput | string;
719
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
569
720
  trigger?: Prisma.EnumPhaseTriggerFieldUpdateOperationsInput | $Enums.PhaseTrigger;
570
721
  handlerId?: Prisma.StringFieldUpdateOperationsInput | string;
571
722
  priority?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -575,6 +726,7 @@ export type PhaseEventAttachmentUncheckedUpdateWithoutPhaseInput = {
575
726
  };
576
727
  export type PhaseEventAttachmentUncheckedUpdateManyWithoutPhaseInput = {
577
728
  id?: Prisma.StringFieldUpdateOperationsInput | string;
729
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
578
730
  trigger?: Prisma.EnumPhaseTriggerFieldUpdateOperationsInput | $Enums.PhaseTrigger;
579
731
  handlerId?: Prisma.StringFieldUpdateOperationsInput | string;
580
732
  priority?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -584,6 +736,7 @@ export type PhaseEventAttachmentUncheckedUpdateManyWithoutPhaseInput = {
584
736
  };
585
737
  export type PhaseEventAttachmentCreateManyHandlerInput = {
586
738
  id?: string;
739
+ tenantId: string;
587
740
  phaseId: string;
588
741
  trigger: $Enums.PhaseTrigger;
589
742
  priority?: number;
@@ -598,10 +751,12 @@ export type PhaseEventAttachmentUpdateWithoutHandlerInput = {
598
751
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
599
752
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
600
753
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
754
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutPhaseEventAttachmentsNestedInput;
601
755
  phase?: Prisma.PropertyPaymentMethodPhaseUpdateOneRequiredWithoutEventAttachmentsNestedInput;
602
756
  };
603
757
  export type PhaseEventAttachmentUncheckedUpdateWithoutHandlerInput = {
604
758
  id?: Prisma.StringFieldUpdateOperationsInput | string;
759
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
605
760
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
606
761
  trigger?: Prisma.EnumPhaseTriggerFieldUpdateOperationsInput | $Enums.PhaseTrigger;
607
762
  priority?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -611,6 +766,7 @@ export type PhaseEventAttachmentUncheckedUpdateWithoutHandlerInput = {
611
766
  };
612
767
  export type PhaseEventAttachmentUncheckedUpdateManyWithoutHandlerInput = {
613
768
  id?: Prisma.StringFieldUpdateOperationsInput | string;
769
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
614
770
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
615
771
  trigger?: Prisma.EnumPhaseTriggerFieldUpdateOperationsInput | $Enums.PhaseTrigger;
616
772
  priority?: Prisma.IntFieldUpdateOperationsInput | number;
@@ -620,6 +776,7 @@ export type PhaseEventAttachmentUncheckedUpdateManyWithoutHandlerInput = {
620
776
  };
621
777
  export type PhaseEventAttachmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
622
778
  id?: boolean;
779
+ tenantId?: boolean;
623
780
  phaseId?: boolean;
624
781
  trigger?: boolean;
625
782
  handlerId?: boolean;
@@ -627,11 +784,13 @@ export type PhaseEventAttachmentSelect<ExtArgs extends runtime.Types.Extensions.
627
784
  enabled?: boolean;
628
785
  createdAt?: boolean;
629
786
  updatedAt?: boolean;
787
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
630
788
  phase?: boolean | Prisma.PropertyPaymentMethodPhaseDefaultArgs<ExtArgs>;
631
789
  handler?: boolean | Prisma.EventHandlerDefaultArgs<ExtArgs>;
632
790
  }, ExtArgs["result"]["phaseEventAttachment"]>;
633
791
  export type PhaseEventAttachmentSelectScalar = {
634
792
  id?: boolean;
793
+ tenantId?: boolean;
635
794
  phaseId?: boolean;
636
795
  trigger?: boolean;
637
796
  handlerId?: boolean;
@@ -640,19 +799,22 @@ export type PhaseEventAttachmentSelectScalar = {
640
799
  createdAt?: boolean;
641
800
  updatedAt?: boolean;
642
801
  };
643
- export type PhaseEventAttachmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "phaseId" | "trigger" | "handlerId" | "priority" | "enabled" | "createdAt" | "updatedAt", ExtArgs["result"]["phaseEventAttachment"]>;
802
+ export type PhaseEventAttachmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "phaseId" | "trigger" | "handlerId" | "priority" | "enabled" | "createdAt" | "updatedAt", ExtArgs["result"]["phaseEventAttachment"]>;
644
803
  export type PhaseEventAttachmentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
804
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
645
805
  phase?: boolean | Prisma.PropertyPaymentMethodPhaseDefaultArgs<ExtArgs>;
646
806
  handler?: boolean | Prisma.EventHandlerDefaultArgs<ExtArgs>;
647
807
  };
648
808
  export type $PhaseEventAttachmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
649
809
  name: "PhaseEventAttachment";
650
810
  objects: {
811
+ tenant: Prisma.$TenantPayload<ExtArgs>;
651
812
  phase: Prisma.$PropertyPaymentMethodPhasePayload<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
  phaseId: string;
657
819
  /**
658
820
  * When this handler should fire
@@ -949,6 +1111,7 @@ export interface PhaseEventAttachmentDelegate<ExtArgs extends runtime.Types.Exte
949
1111
  */
950
1112
  export interface Prisma__PhaseEventAttachmentClient<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
  phase<T extends Prisma.PropertyPaymentMethodPhaseDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PropertyPaymentMethodPhaseDefaultArgs<ExtArgs>>): Prisma.Prisma__PropertyPaymentMethodPhaseClient<runtime.Types.Result.GetResult<Prisma.$PropertyPaymentMethodPhasePayload<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__PhaseEventAttachmentClient<T, Null = never, ExtArgs ext
977
1140
  */
978
1141
  export interface PhaseEventAttachmentFieldRefs {
979
1142
  readonly id: Prisma.FieldRef<"PhaseEventAttachment", 'String'>;
1143
+ readonly tenantId: Prisma.FieldRef<"PhaseEventAttachment", 'String'>;
980
1144
  readonly phaseId: Prisma.FieldRef<"PhaseEventAttachment", 'String'>;
981
1145
  readonly trigger: Prisma.FieldRef<"PhaseEventAttachment", 'PhaseTrigger'>;
982
1146
  readonly handlerId: Prisma.FieldRef<"PhaseEventAttachment", 'String'>;