@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
@@ -20,6 +20,7 @@ export type PaymentMethodPhaseDocumentSumAggregateOutputType = {
20
20
  };
21
21
  export type PaymentMethodPhaseDocumentMinAggregateOutputType = {
22
22
  id: string | null;
23
+ tenantId: string | null;
23
24
  phaseId: string | null;
24
25
  documentType: string | null;
25
26
  isRequired: boolean | null;
@@ -30,6 +31,7 @@ export type PaymentMethodPhaseDocumentMinAggregateOutputType = {
30
31
  };
31
32
  export type PaymentMethodPhaseDocumentMaxAggregateOutputType = {
32
33
  id: string | null;
34
+ tenantId: string | null;
33
35
  phaseId: string | null;
34
36
  documentType: string | null;
35
37
  isRequired: boolean | null;
@@ -40,6 +42,7 @@ export type PaymentMethodPhaseDocumentMaxAggregateOutputType = {
40
42
  };
41
43
  export type PaymentMethodPhaseDocumentCountAggregateOutputType = {
42
44
  id: number;
45
+ tenantId: number;
43
46
  phaseId: number;
44
47
  documentType: number;
45
48
  isRequired: number;
@@ -58,6 +61,7 @@ export type PaymentMethodPhaseDocumentSumAggregateInputType = {
58
61
  };
59
62
  export type PaymentMethodPhaseDocumentMinAggregateInputType = {
60
63
  id?: true;
64
+ tenantId?: true;
61
65
  phaseId?: true;
62
66
  documentType?: true;
63
67
  isRequired?: true;
@@ -68,6 +72,7 @@ export type PaymentMethodPhaseDocumentMinAggregateInputType = {
68
72
  };
69
73
  export type PaymentMethodPhaseDocumentMaxAggregateInputType = {
70
74
  id?: true;
75
+ tenantId?: true;
71
76
  phaseId?: true;
72
77
  documentType?: true;
73
78
  isRequired?: true;
@@ -78,6 +83,7 @@ export type PaymentMethodPhaseDocumentMaxAggregateInputType = {
78
83
  };
79
84
  export type PaymentMethodPhaseDocumentCountAggregateInputType = {
80
85
  id?: true;
86
+ tenantId?: true;
81
87
  phaseId?: true;
82
88
  documentType?: true;
83
89
  isRequired?: true;
@@ -166,6 +172,7 @@ export type PaymentMethodPhaseDocumentGroupByArgs<ExtArgs extends runtime.Types.
166
172
  };
167
173
  export type PaymentMethodPhaseDocumentGroupByOutputType = {
168
174
  id: string;
175
+ tenantId: string;
169
176
  phaseId: string;
170
177
  documentType: string;
171
178
  isRequired: boolean;
@@ -188,6 +195,7 @@ export type PaymentMethodPhaseDocumentWhereInput = {
188
195
  OR?: Prisma.PaymentMethodPhaseDocumentWhereInput[];
189
196
  NOT?: Prisma.PaymentMethodPhaseDocumentWhereInput | Prisma.PaymentMethodPhaseDocumentWhereInput[];
190
197
  id?: Prisma.StringFilter<"PaymentMethodPhaseDocument"> | string;
198
+ tenantId?: Prisma.StringFilter<"PaymentMethodPhaseDocument"> | string;
191
199
  phaseId?: Prisma.StringFilter<"PaymentMethodPhaseDocument"> | string;
192
200
  documentType?: Prisma.StringFilter<"PaymentMethodPhaseDocument"> | string;
193
201
  isRequired?: Prisma.BoolFilter<"PaymentMethodPhaseDocument"> | boolean;
@@ -196,10 +204,12 @@ export type PaymentMethodPhaseDocumentWhereInput = {
196
204
  maxSizeBytes?: Prisma.IntNullableFilter<"PaymentMethodPhaseDocument"> | number | null;
197
205
  metadata?: Prisma.JsonNullableFilter<"PaymentMethodPhaseDocument">;
198
206
  createdAt?: Prisma.DateTimeFilter<"PaymentMethodPhaseDocument"> | Date | string;
207
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
199
208
  phase?: Prisma.XOR<Prisma.PropertyPaymentMethodPhaseScalarRelationFilter, Prisma.PropertyPaymentMethodPhaseWhereInput>;
200
209
  };
201
210
  export type PaymentMethodPhaseDocumentOrderByWithRelationInput = {
202
211
  id?: Prisma.SortOrder;
212
+ tenantId?: Prisma.SortOrder;
203
213
  phaseId?: Prisma.SortOrder;
204
214
  documentType?: Prisma.SortOrder;
205
215
  isRequired?: Prisma.SortOrder;
@@ -208,6 +218,7 @@ export type PaymentMethodPhaseDocumentOrderByWithRelationInput = {
208
218
  maxSizeBytes?: Prisma.SortOrderInput | Prisma.SortOrder;
209
219
  metadata?: Prisma.SortOrderInput | Prisma.SortOrder;
210
220
  createdAt?: Prisma.SortOrder;
221
+ tenant?: Prisma.TenantOrderByWithRelationInput;
211
222
  phase?: Prisma.PropertyPaymentMethodPhaseOrderByWithRelationInput;
212
223
  _relevance?: Prisma.PaymentMethodPhaseDocumentOrderByRelevanceInput;
213
224
  };
@@ -216,6 +227,7 @@ export type PaymentMethodPhaseDocumentWhereUniqueInput = Prisma.AtLeast<{
216
227
  AND?: Prisma.PaymentMethodPhaseDocumentWhereInput | Prisma.PaymentMethodPhaseDocumentWhereInput[];
217
228
  OR?: Prisma.PaymentMethodPhaseDocumentWhereInput[];
218
229
  NOT?: Prisma.PaymentMethodPhaseDocumentWhereInput | Prisma.PaymentMethodPhaseDocumentWhereInput[];
230
+ tenantId?: Prisma.StringFilter<"PaymentMethodPhaseDocument"> | string;
219
231
  phaseId?: Prisma.StringFilter<"PaymentMethodPhaseDocument"> | string;
220
232
  documentType?: Prisma.StringFilter<"PaymentMethodPhaseDocument"> | string;
221
233
  isRequired?: Prisma.BoolFilter<"PaymentMethodPhaseDocument"> | boolean;
@@ -224,10 +236,12 @@ export type PaymentMethodPhaseDocumentWhereUniqueInput = Prisma.AtLeast<{
224
236
  maxSizeBytes?: Prisma.IntNullableFilter<"PaymentMethodPhaseDocument"> | number | null;
225
237
  metadata?: Prisma.JsonNullableFilter<"PaymentMethodPhaseDocument">;
226
238
  createdAt?: Prisma.DateTimeFilter<"PaymentMethodPhaseDocument"> | Date | string;
239
+ tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>;
227
240
  phase?: Prisma.XOR<Prisma.PropertyPaymentMethodPhaseScalarRelationFilter, Prisma.PropertyPaymentMethodPhaseWhereInput>;
228
241
  }, "id">;
229
242
  export type PaymentMethodPhaseDocumentOrderByWithAggregationInput = {
230
243
  id?: Prisma.SortOrder;
244
+ tenantId?: Prisma.SortOrder;
231
245
  phaseId?: Prisma.SortOrder;
232
246
  documentType?: Prisma.SortOrder;
233
247
  isRequired?: Prisma.SortOrder;
@@ -247,6 +261,7 @@ export type PaymentMethodPhaseDocumentScalarWhereWithAggregatesInput = {
247
261
  OR?: Prisma.PaymentMethodPhaseDocumentScalarWhereWithAggregatesInput[];
248
262
  NOT?: Prisma.PaymentMethodPhaseDocumentScalarWhereWithAggregatesInput | Prisma.PaymentMethodPhaseDocumentScalarWhereWithAggregatesInput[];
249
263
  id?: Prisma.StringWithAggregatesFilter<"PaymentMethodPhaseDocument"> | string;
264
+ tenantId?: Prisma.StringWithAggregatesFilter<"PaymentMethodPhaseDocument"> | string;
250
265
  phaseId?: Prisma.StringWithAggregatesFilter<"PaymentMethodPhaseDocument"> | string;
251
266
  documentType?: Prisma.StringWithAggregatesFilter<"PaymentMethodPhaseDocument"> | string;
252
267
  isRequired?: Prisma.BoolWithAggregatesFilter<"PaymentMethodPhaseDocument"> | boolean;
@@ -265,10 +280,12 @@ export type PaymentMethodPhaseDocumentCreateInput = {
265
280
  maxSizeBytes?: number | null;
266
281
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
267
282
  createdAt?: Date | string;
283
+ tenant: Prisma.TenantCreateNestedOneWithoutPaymentMethodPhaseDocumentsInput;
268
284
  phase: Prisma.PropertyPaymentMethodPhaseCreateNestedOneWithoutRequiredDocumentsInput;
269
285
  };
270
286
  export type PaymentMethodPhaseDocumentUncheckedCreateInput = {
271
287
  id?: string;
288
+ tenantId: string;
272
289
  phaseId: string;
273
290
  documentType: string;
274
291
  isRequired?: boolean;
@@ -287,10 +304,12 @@ export type PaymentMethodPhaseDocumentUpdateInput = {
287
304
  maxSizeBytes?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
288
305
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
289
306
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
307
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutPaymentMethodPhaseDocumentsNestedInput;
290
308
  phase?: Prisma.PropertyPaymentMethodPhaseUpdateOneRequiredWithoutRequiredDocumentsNestedInput;
291
309
  };
292
310
  export type PaymentMethodPhaseDocumentUncheckedUpdateInput = {
293
311
  id?: Prisma.StringFieldUpdateOperationsInput | string;
312
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
294
313
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
295
314
  documentType?: Prisma.StringFieldUpdateOperationsInput | string;
296
315
  isRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -302,6 +321,7 @@ export type PaymentMethodPhaseDocumentUncheckedUpdateInput = {
302
321
  };
303
322
  export type PaymentMethodPhaseDocumentCreateManyInput = {
304
323
  id?: string;
324
+ tenantId: string;
305
325
  phaseId: string;
306
326
  documentType: string;
307
327
  isRequired?: boolean;
@@ -323,6 +343,7 @@ export type PaymentMethodPhaseDocumentUpdateManyMutationInput = {
323
343
  };
324
344
  export type PaymentMethodPhaseDocumentUncheckedUpdateManyInput = {
325
345
  id?: Prisma.StringFieldUpdateOperationsInput | string;
346
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
326
347
  phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
327
348
  documentType?: Prisma.StringFieldUpdateOperationsInput | string;
328
349
  isRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
@@ -347,6 +368,7 @@ export type PaymentMethodPhaseDocumentOrderByRelevanceInput = {
347
368
  };
348
369
  export type PaymentMethodPhaseDocumentCountOrderByAggregateInput = {
349
370
  id?: Prisma.SortOrder;
371
+ tenantId?: Prisma.SortOrder;
350
372
  phaseId?: Prisma.SortOrder;
351
373
  documentType?: Prisma.SortOrder;
352
374
  isRequired?: Prisma.SortOrder;
@@ -361,6 +383,7 @@ export type PaymentMethodPhaseDocumentAvgOrderByAggregateInput = {
361
383
  };
362
384
  export type PaymentMethodPhaseDocumentMaxOrderByAggregateInput = {
363
385
  id?: Prisma.SortOrder;
386
+ tenantId?: Prisma.SortOrder;
364
387
  phaseId?: Prisma.SortOrder;
365
388
  documentType?: Prisma.SortOrder;
366
389
  isRequired?: Prisma.SortOrder;
@@ -371,6 +394,7 @@ export type PaymentMethodPhaseDocumentMaxOrderByAggregateInput = {
371
394
  };
372
395
  export type PaymentMethodPhaseDocumentMinOrderByAggregateInput = {
373
396
  id?: Prisma.SortOrder;
397
+ tenantId?: Prisma.SortOrder;
374
398
  phaseId?: Prisma.SortOrder;
375
399
  documentType?: Prisma.SortOrder;
376
400
  isRequired?: Prisma.SortOrder;
@@ -382,6 +406,44 @@ export type PaymentMethodPhaseDocumentMinOrderByAggregateInput = {
382
406
  export type PaymentMethodPhaseDocumentSumOrderByAggregateInput = {
383
407
  maxSizeBytes?: Prisma.SortOrder;
384
408
  };
409
+ export type PaymentMethodPhaseDocumentCreateNestedManyWithoutTenantInput = {
410
+ create?: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentCreateWithoutTenantInput, Prisma.PaymentMethodPhaseDocumentUncheckedCreateWithoutTenantInput> | Prisma.PaymentMethodPhaseDocumentCreateWithoutTenantInput[] | Prisma.PaymentMethodPhaseDocumentUncheckedCreateWithoutTenantInput[];
411
+ connectOrCreate?: Prisma.PaymentMethodPhaseDocumentCreateOrConnectWithoutTenantInput | Prisma.PaymentMethodPhaseDocumentCreateOrConnectWithoutTenantInput[];
412
+ createMany?: Prisma.PaymentMethodPhaseDocumentCreateManyTenantInputEnvelope;
413
+ connect?: Prisma.PaymentMethodPhaseDocumentWhereUniqueInput | Prisma.PaymentMethodPhaseDocumentWhereUniqueInput[];
414
+ };
415
+ export type PaymentMethodPhaseDocumentUncheckedCreateNestedManyWithoutTenantInput = {
416
+ create?: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentCreateWithoutTenantInput, Prisma.PaymentMethodPhaseDocumentUncheckedCreateWithoutTenantInput> | Prisma.PaymentMethodPhaseDocumentCreateWithoutTenantInput[] | Prisma.PaymentMethodPhaseDocumentUncheckedCreateWithoutTenantInput[];
417
+ connectOrCreate?: Prisma.PaymentMethodPhaseDocumentCreateOrConnectWithoutTenantInput | Prisma.PaymentMethodPhaseDocumentCreateOrConnectWithoutTenantInput[];
418
+ createMany?: Prisma.PaymentMethodPhaseDocumentCreateManyTenantInputEnvelope;
419
+ connect?: Prisma.PaymentMethodPhaseDocumentWhereUniqueInput | Prisma.PaymentMethodPhaseDocumentWhereUniqueInput[];
420
+ };
421
+ export type PaymentMethodPhaseDocumentUpdateManyWithoutTenantNestedInput = {
422
+ create?: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentCreateWithoutTenantInput, Prisma.PaymentMethodPhaseDocumentUncheckedCreateWithoutTenantInput> | Prisma.PaymentMethodPhaseDocumentCreateWithoutTenantInput[] | Prisma.PaymentMethodPhaseDocumentUncheckedCreateWithoutTenantInput[];
423
+ connectOrCreate?: Prisma.PaymentMethodPhaseDocumentCreateOrConnectWithoutTenantInput | Prisma.PaymentMethodPhaseDocumentCreateOrConnectWithoutTenantInput[];
424
+ upsert?: Prisma.PaymentMethodPhaseDocumentUpsertWithWhereUniqueWithoutTenantInput | Prisma.PaymentMethodPhaseDocumentUpsertWithWhereUniqueWithoutTenantInput[];
425
+ createMany?: Prisma.PaymentMethodPhaseDocumentCreateManyTenantInputEnvelope;
426
+ set?: Prisma.PaymentMethodPhaseDocumentWhereUniqueInput | Prisma.PaymentMethodPhaseDocumentWhereUniqueInput[];
427
+ disconnect?: Prisma.PaymentMethodPhaseDocumentWhereUniqueInput | Prisma.PaymentMethodPhaseDocumentWhereUniqueInput[];
428
+ delete?: Prisma.PaymentMethodPhaseDocumentWhereUniqueInput | Prisma.PaymentMethodPhaseDocumentWhereUniqueInput[];
429
+ connect?: Prisma.PaymentMethodPhaseDocumentWhereUniqueInput | Prisma.PaymentMethodPhaseDocumentWhereUniqueInput[];
430
+ update?: Prisma.PaymentMethodPhaseDocumentUpdateWithWhereUniqueWithoutTenantInput | Prisma.PaymentMethodPhaseDocumentUpdateWithWhereUniqueWithoutTenantInput[];
431
+ updateMany?: Prisma.PaymentMethodPhaseDocumentUpdateManyWithWhereWithoutTenantInput | Prisma.PaymentMethodPhaseDocumentUpdateManyWithWhereWithoutTenantInput[];
432
+ deleteMany?: Prisma.PaymentMethodPhaseDocumentScalarWhereInput | Prisma.PaymentMethodPhaseDocumentScalarWhereInput[];
433
+ };
434
+ export type PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutTenantNestedInput = {
435
+ create?: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentCreateWithoutTenantInput, Prisma.PaymentMethodPhaseDocumentUncheckedCreateWithoutTenantInput> | Prisma.PaymentMethodPhaseDocumentCreateWithoutTenantInput[] | Prisma.PaymentMethodPhaseDocumentUncheckedCreateWithoutTenantInput[];
436
+ connectOrCreate?: Prisma.PaymentMethodPhaseDocumentCreateOrConnectWithoutTenantInput | Prisma.PaymentMethodPhaseDocumentCreateOrConnectWithoutTenantInput[];
437
+ upsert?: Prisma.PaymentMethodPhaseDocumentUpsertWithWhereUniqueWithoutTenantInput | Prisma.PaymentMethodPhaseDocumentUpsertWithWhereUniqueWithoutTenantInput[];
438
+ createMany?: Prisma.PaymentMethodPhaseDocumentCreateManyTenantInputEnvelope;
439
+ set?: Prisma.PaymentMethodPhaseDocumentWhereUniqueInput | Prisma.PaymentMethodPhaseDocumentWhereUniqueInput[];
440
+ disconnect?: Prisma.PaymentMethodPhaseDocumentWhereUniqueInput | Prisma.PaymentMethodPhaseDocumentWhereUniqueInput[];
441
+ delete?: Prisma.PaymentMethodPhaseDocumentWhereUniqueInput | Prisma.PaymentMethodPhaseDocumentWhereUniqueInput[];
442
+ connect?: Prisma.PaymentMethodPhaseDocumentWhereUniqueInput | Prisma.PaymentMethodPhaseDocumentWhereUniqueInput[];
443
+ update?: Prisma.PaymentMethodPhaseDocumentUpdateWithWhereUniqueWithoutTenantInput | Prisma.PaymentMethodPhaseDocumentUpdateWithWhereUniqueWithoutTenantInput[];
444
+ updateMany?: Prisma.PaymentMethodPhaseDocumentUpdateManyWithWhereWithoutTenantInput | Prisma.PaymentMethodPhaseDocumentUpdateManyWithWhereWithoutTenantInput[];
445
+ deleteMany?: Prisma.PaymentMethodPhaseDocumentScalarWhereInput | Prisma.PaymentMethodPhaseDocumentScalarWhereInput[];
446
+ };
385
447
  export type PaymentMethodPhaseDocumentCreateNestedManyWithoutPhaseInput = {
386
448
  create?: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentCreateWithoutPhaseInput, Prisma.PaymentMethodPhaseDocumentUncheckedCreateWithoutPhaseInput> | Prisma.PaymentMethodPhaseDocumentCreateWithoutPhaseInput[] | Prisma.PaymentMethodPhaseDocumentUncheckedCreateWithoutPhaseInput[];
387
449
  connectOrCreate?: Prisma.PaymentMethodPhaseDocumentCreateOrConnectWithoutPhaseInput | Prisma.PaymentMethodPhaseDocumentCreateOrConnectWithoutPhaseInput[];
@@ -420,7 +482,7 @@ export type PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutPhaseNestedInput
420
482
  updateMany?: Prisma.PaymentMethodPhaseDocumentUpdateManyWithWhereWithoutPhaseInput | Prisma.PaymentMethodPhaseDocumentUpdateManyWithWhereWithoutPhaseInput[];
421
483
  deleteMany?: Prisma.PaymentMethodPhaseDocumentScalarWhereInput | Prisma.PaymentMethodPhaseDocumentScalarWhereInput[];
422
484
  };
423
- export type PaymentMethodPhaseDocumentCreateWithoutPhaseInput = {
485
+ export type PaymentMethodPhaseDocumentCreateWithoutTenantInput = {
424
486
  id?: string;
425
487
  documentType: string;
426
488
  isRequired?: boolean;
@@ -429,9 +491,11 @@ export type PaymentMethodPhaseDocumentCreateWithoutPhaseInput = {
429
491
  maxSizeBytes?: number | null;
430
492
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
431
493
  createdAt?: Date | string;
494
+ phase: Prisma.PropertyPaymentMethodPhaseCreateNestedOneWithoutRequiredDocumentsInput;
432
495
  };
433
- export type PaymentMethodPhaseDocumentUncheckedCreateWithoutPhaseInput = {
496
+ export type PaymentMethodPhaseDocumentUncheckedCreateWithoutTenantInput = {
434
497
  id?: string;
498
+ phaseId: string;
435
499
  documentType: string;
436
500
  isRequired?: boolean;
437
501
  description?: string | null;
@@ -440,32 +504,33 @@ export type PaymentMethodPhaseDocumentUncheckedCreateWithoutPhaseInput = {
440
504
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
441
505
  createdAt?: Date | string;
442
506
  };
443
- export type PaymentMethodPhaseDocumentCreateOrConnectWithoutPhaseInput = {
507
+ export type PaymentMethodPhaseDocumentCreateOrConnectWithoutTenantInput = {
444
508
  where: Prisma.PaymentMethodPhaseDocumentWhereUniqueInput;
445
- create: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentCreateWithoutPhaseInput, Prisma.PaymentMethodPhaseDocumentUncheckedCreateWithoutPhaseInput>;
509
+ create: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentCreateWithoutTenantInput, Prisma.PaymentMethodPhaseDocumentUncheckedCreateWithoutTenantInput>;
446
510
  };
447
- export type PaymentMethodPhaseDocumentCreateManyPhaseInputEnvelope = {
448
- data: Prisma.PaymentMethodPhaseDocumentCreateManyPhaseInput | Prisma.PaymentMethodPhaseDocumentCreateManyPhaseInput[];
511
+ export type PaymentMethodPhaseDocumentCreateManyTenantInputEnvelope = {
512
+ data: Prisma.PaymentMethodPhaseDocumentCreateManyTenantInput | Prisma.PaymentMethodPhaseDocumentCreateManyTenantInput[];
449
513
  skipDuplicates?: boolean;
450
514
  };
451
- export type PaymentMethodPhaseDocumentUpsertWithWhereUniqueWithoutPhaseInput = {
515
+ export type PaymentMethodPhaseDocumentUpsertWithWhereUniqueWithoutTenantInput = {
452
516
  where: Prisma.PaymentMethodPhaseDocumentWhereUniqueInput;
453
- update: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentUpdateWithoutPhaseInput, Prisma.PaymentMethodPhaseDocumentUncheckedUpdateWithoutPhaseInput>;
454
- create: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentCreateWithoutPhaseInput, Prisma.PaymentMethodPhaseDocumentUncheckedCreateWithoutPhaseInput>;
517
+ update: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentUpdateWithoutTenantInput, Prisma.PaymentMethodPhaseDocumentUncheckedUpdateWithoutTenantInput>;
518
+ create: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentCreateWithoutTenantInput, Prisma.PaymentMethodPhaseDocumentUncheckedCreateWithoutTenantInput>;
455
519
  };
456
- export type PaymentMethodPhaseDocumentUpdateWithWhereUniqueWithoutPhaseInput = {
520
+ export type PaymentMethodPhaseDocumentUpdateWithWhereUniqueWithoutTenantInput = {
457
521
  where: Prisma.PaymentMethodPhaseDocumentWhereUniqueInput;
458
- data: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentUpdateWithoutPhaseInput, Prisma.PaymentMethodPhaseDocumentUncheckedUpdateWithoutPhaseInput>;
522
+ data: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentUpdateWithoutTenantInput, Prisma.PaymentMethodPhaseDocumentUncheckedUpdateWithoutTenantInput>;
459
523
  };
460
- export type PaymentMethodPhaseDocumentUpdateManyWithWhereWithoutPhaseInput = {
524
+ export type PaymentMethodPhaseDocumentUpdateManyWithWhereWithoutTenantInput = {
461
525
  where: Prisma.PaymentMethodPhaseDocumentScalarWhereInput;
462
- data: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentUpdateManyMutationInput, Prisma.PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutPhaseInput>;
526
+ data: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentUpdateManyMutationInput, Prisma.PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutTenantInput>;
463
527
  };
464
528
  export type PaymentMethodPhaseDocumentScalarWhereInput = {
465
529
  AND?: Prisma.PaymentMethodPhaseDocumentScalarWhereInput | Prisma.PaymentMethodPhaseDocumentScalarWhereInput[];
466
530
  OR?: Prisma.PaymentMethodPhaseDocumentScalarWhereInput[];
467
531
  NOT?: Prisma.PaymentMethodPhaseDocumentScalarWhereInput | Prisma.PaymentMethodPhaseDocumentScalarWhereInput[];
468
532
  id?: Prisma.StringFilter<"PaymentMethodPhaseDocument"> | string;
533
+ tenantId?: Prisma.StringFilter<"PaymentMethodPhaseDocument"> | string;
469
534
  phaseId?: Prisma.StringFilter<"PaymentMethodPhaseDocument"> | string;
470
535
  documentType?: Prisma.StringFilter<"PaymentMethodPhaseDocument"> | string;
471
536
  isRequired?: Prisma.BoolFilter<"PaymentMethodPhaseDocument"> | boolean;
@@ -475,8 +540,96 @@ export type PaymentMethodPhaseDocumentScalarWhereInput = {
475
540
  metadata?: Prisma.JsonNullableFilter<"PaymentMethodPhaseDocument">;
476
541
  createdAt?: Prisma.DateTimeFilter<"PaymentMethodPhaseDocument"> | Date | string;
477
542
  };
543
+ export type PaymentMethodPhaseDocumentCreateWithoutPhaseInput = {
544
+ id?: string;
545
+ documentType: string;
546
+ isRequired?: boolean;
547
+ description?: string | null;
548
+ allowedMimeTypes?: string | null;
549
+ maxSizeBytes?: number | null;
550
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
551
+ createdAt?: Date | string;
552
+ tenant: Prisma.TenantCreateNestedOneWithoutPaymentMethodPhaseDocumentsInput;
553
+ };
554
+ export type PaymentMethodPhaseDocumentUncheckedCreateWithoutPhaseInput = {
555
+ id?: string;
556
+ tenantId: string;
557
+ documentType: string;
558
+ isRequired?: boolean;
559
+ description?: string | null;
560
+ allowedMimeTypes?: string | null;
561
+ maxSizeBytes?: number | null;
562
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
563
+ createdAt?: Date | string;
564
+ };
565
+ export type PaymentMethodPhaseDocumentCreateOrConnectWithoutPhaseInput = {
566
+ where: Prisma.PaymentMethodPhaseDocumentWhereUniqueInput;
567
+ create: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentCreateWithoutPhaseInput, Prisma.PaymentMethodPhaseDocumentUncheckedCreateWithoutPhaseInput>;
568
+ };
569
+ export type PaymentMethodPhaseDocumentCreateManyPhaseInputEnvelope = {
570
+ data: Prisma.PaymentMethodPhaseDocumentCreateManyPhaseInput | Prisma.PaymentMethodPhaseDocumentCreateManyPhaseInput[];
571
+ skipDuplicates?: boolean;
572
+ };
573
+ export type PaymentMethodPhaseDocumentUpsertWithWhereUniqueWithoutPhaseInput = {
574
+ where: Prisma.PaymentMethodPhaseDocumentWhereUniqueInput;
575
+ update: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentUpdateWithoutPhaseInput, Prisma.PaymentMethodPhaseDocumentUncheckedUpdateWithoutPhaseInput>;
576
+ create: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentCreateWithoutPhaseInput, Prisma.PaymentMethodPhaseDocumentUncheckedCreateWithoutPhaseInput>;
577
+ };
578
+ export type PaymentMethodPhaseDocumentUpdateWithWhereUniqueWithoutPhaseInput = {
579
+ where: Prisma.PaymentMethodPhaseDocumentWhereUniqueInput;
580
+ data: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentUpdateWithoutPhaseInput, Prisma.PaymentMethodPhaseDocumentUncheckedUpdateWithoutPhaseInput>;
581
+ };
582
+ export type PaymentMethodPhaseDocumentUpdateManyWithWhereWithoutPhaseInput = {
583
+ where: Prisma.PaymentMethodPhaseDocumentScalarWhereInput;
584
+ data: Prisma.XOR<Prisma.PaymentMethodPhaseDocumentUpdateManyMutationInput, Prisma.PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutPhaseInput>;
585
+ };
586
+ export type PaymentMethodPhaseDocumentCreateManyTenantInput = {
587
+ id?: string;
588
+ phaseId: string;
589
+ documentType: string;
590
+ isRequired?: boolean;
591
+ description?: string | null;
592
+ allowedMimeTypes?: string | null;
593
+ maxSizeBytes?: number | null;
594
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
595
+ createdAt?: Date | string;
596
+ };
597
+ export type PaymentMethodPhaseDocumentUpdateWithoutTenantInput = {
598
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
599
+ documentType?: Prisma.StringFieldUpdateOperationsInput | string;
600
+ isRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
601
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
602
+ allowedMimeTypes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
603
+ maxSizeBytes?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
604
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
605
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
606
+ phase?: Prisma.PropertyPaymentMethodPhaseUpdateOneRequiredWithoutRequiredDocumentsNestedInput;
607
+ };
608
+ export type PaymentMethodPhaseDocumentUncheckedUpdateWithoutTenantInput = {
609
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
610
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
611
+ documentType?: Prisma.StringFieldUpdateOperationsInput | string;
612
+ isRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
613
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
614
+ allowedMimeTypes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
615
+ maxSizeBytes?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
616
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
617
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
618
+ };
619
+ export type PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutTenantInput = {
620
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
621
+ phaseId?: Prisma.StringFieldUpdateOperationsInput | string;
622
+ documentType?: Prisma.StringFieldUpdateOperationsInput | string;
623
+ isRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
624
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
625
+ allowedMimeTypes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
626
+ maxSizeBytes?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
627
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
628
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
629
+ };
478
630
  export type PaymentMethodPhaseDocumentCreateManyPhaseInput = {
479
631
  id?: string;
632
+ tenantId: string;
480
633
  documentType: string;
481
634
  isRequired?: boolean;
482
635
  description?: string | null;
@@ -494,9 +647,11 @@ export type PaymentMethodPhaseDocumentUpdateWithoutPhaseInput = {
494
647
  maxSizeBytes?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
495
648
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
496
649
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
650
+ tenant?: Prisma.TenantUpdateOneRequiredWithoutPaymentMethodPhaseDocumentsNestedInput;
497
651
  };
498
652
  export type PaymentMethodPhaseDocumentUncheckedUpdateWithoutPhaseInput = {
499
653
  id?: Prisma.StringFieldUpdateOperationsInput | string;
654
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
500
655
  documentType?: Prisma.StringFieldUpdateOperationsInput | string;
501
656
  isRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
502
657
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -507,6 +662,7 @@ export type PaymentMethodPhaseDocumentUncheckedUpdateWithoutPhaseInput = {
507
662
  };
508
663
  export type PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutPhaseInput = {
509
664
  id?: Prisma.StringFieldUpdateOperationsInput | string;
665
+ tenantId?: Prisma.StringFieldUpdateOperationsInput | string;
510
666
  documentType?: Prisma.StringFieldUpdateOperationsInput | string;
511
667
  isRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
512
668
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
@@ -517,6 +673,7 @@ export type PaymentMethodPhaseDocumentUncheckedUpdateManyWithoutPhaseInput = {
517
673
  };
518
674
  export type PaymentMethodPhaseDocumentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
519
675
  id?: boolean;
676
+ tenantId?: boolean;
520
677
  phaseId?: boolean;
521
678
  documentType?: boolean;
522
679
  isRequired?: boolean;
@@ -525,10 +682,12 @@ export type PaymentMethodPhaseDocumentSelect<ExtArgs extends runtime.Types.Exten
525
682
  maxSizeBytes?: boolean;
526
683
  metadata?: boolean;
527
684
  createdAt?: boolean;
685
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
528
686
  phase?: boolean | Prisma.PropertyPaymentMethodPhaseDefaultArgs<ExtArgs>;
529
687
  }, ExtArgs["result"]["paymentMethodPhaseDocument"]>;
530
688
  export type PaymentMethodPhaseDocumentSelectScalar = {
531
689
  id?: boolean;
690
+ tenantId?: boolean;
532
691
  phaseId?: boolean;
533
692
  documentType?: boolean;
534
693
  isRequired?: boolean;
@@ -538,17 +697,20 @@ export type PaymentMethodPhaseDocumentSelectScalar = {
538
697
  metadata?: boolean;
539
698
  createdAt?: boolean;
540
699
  };
541
- export type PaymentMethodPhaseDocumentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "phaseId" | "documentType" | "isRequired" | "description" | "allowedMimeTypes" | "maxSizeBytes" | "metadata" | "createdAt", ExtArgs["result"]["paymentMethodPhaseDocument"]>;
700
+ export type PaymentMethodPhaseDocumentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "phaseId" | "documentType" | "isRequired" | "description" | "allowedMimeTypes" | "maxSizeBytes" | "metadata" | "createdAt", ExtArgs["result"]["paymentMethodPhaseDocument"]>;
542
701
  export type PaymentMethodPhaseDocumentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
702
+ tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>;
543
703
  phase?: boolean | Prisma.PropertyPaymentMethodPhaseDefaultArgs<ExtArgs>;
544
704
  };
545
705
  export type $PaymentMethodPhaseDocumentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
546
706
  name: "PaymentMethodPhaseDocument";
547
707
  objects: {
708
+ tenant: Prisma.$TenantPayload<ExtArgs>;
548
709
  phase: Prisma.$PropertyPaymentMethodPhasePayload<ExtArgs>;
549
710
  };
550
711
  scalars: runtime.Types.Extensions.GetPayloadResult<{
551
712
  id: string;
713
+ tenantId: string;
552
714
  phaseId: string;
553
715
  documentType: string;
554
716
  isRequired: boolean;
@@ -834,6 +996,7 @@ export interface PaymentMethodPhaseDocumentDelegate<ExtArgs extends runtime.Type
834
996
  */
835
997
  export interface Prisma__PaymentMethodPhaseDocumentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
836
998
  readonly [Symbol.toStringTag]: "PrismaPromise";
999
+ 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>;
837
1000
  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>;
838
1001
  /**
839
1002
  * Attaches callbacks for the resolution and/or rejection of the Promise.
@@ -861,6 +1024,7 @@ export interface Prisma__PaymentMethodPhaseDocumentClient<T, Null = never, ExtAr
861
1024
  */
862
1025
  export interface PaymentMethodPhaseDocumentFieldRefs {
863
1026
  readonly id: Prisma.FieldRef<"PaymentMethodPhaseDocument", 'String'>;
1027
+ readonly tenantId: Prisma.FieldRef<"PaymentMethodPhaseDocument", 'String'>;
864
1028
  readonly phaseId: Prisma.FieldRef<"PaymentMethodPhaseDocument", 'String'>;
865
1029
  readonly documentType: Prisma.FieldRef<"PaymentMethodPhaseDocument", 'String'>;
866
1030
  readonly isRequired: Prisma.FieldRef<"PaymentMethodPhaseDocument", 'Boolean'>;