@valentine-efagene/qshelter-common 2.0.150 → 2.0.152

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 (34) hide show
  1. package/dist/generated/client/browser.d.ts +13 -2
  2. package/dist/generated/client/client.d.ts +15 -4
  3. package/dist/generated/client/client.js +2 -2
  4. package/dist/generated/client/commonInputTypes.d.ts +50 -190
  5. package/dist/generated/client/enums.d.ts +7 -34
  6. package/dist/generated/client/enums.js +6 -30
  7. package/dist/generated/client/internal/class.d.ts +29 -7
  8. package/dist/generated/client/internal/class.js +2 -2
  9. package/dist/generated/client/internal/prismaNamespace.d.ts +185 -34
  10. package/dist/generated/client/internal/prismaNamespace.js +42 -13
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +46 -13
  12. package/dist/generated/client/internal/prismaNamespaceBrowser.js +42 -13
  13. package/dist/generated/client/models/ApplicationOrganization.d.ts +308 -67
  14. package/dist/generated/client/models/ApprovalStage.d.ts +210 -91
  15. package/dist/generated/client/models/ApprovalStageProgress.d.ts +258 -69
  16. package/dist/generated/client/models/DocumentApproval.d.ts +196 -65
  17. package/dist/generated/client/models/DocumentReview.d.ts +475 -86
  18. package/dist/generated/client/models/Organization.d.ts +424 -52
  19. package/dist/generated/client/models/OrganizationMember.d.ts +42 -169
  20. package/dist/generated/client/models/OrganizationType.d.ts +1982 -0
  21. package/dist/generated/client/models/OrganizationType.js +1 -0
  22. package/dist/generated/client/models/OrganizationTypeAssignment.d.ts +1159 -0
  23. package/dist/generated/client/models/OrganizationTypeAssignment.js +1 -0
  24. package/dist/generated/client/models/Property.d.ts +59 -120
  25. package/dist/generated/client/models/Tenant.d.ts +575 -4
  26. package/dist/generated/client/models/User.d.ts +0 -12
  27. package/dist/generated/client/models/index.d.ts +2 -0
  28. package/dist/generated/client/models/index.js +2 -0
  29. package/dist/generated/client/models.d.ts +2 -0
  30. package/package.json +1 -1
  31. package/prisma/migrations/20260125090213_remove_is_published_use_status_enum/migration.sql +10 -0
  32. package/prisma/migrations/20260125102448_org_types_many_to_many/migration.sql +153 -0
  33. package/prisma/migrations/20260125103700_20260125102448_org_types_many_to_many_fix/migration.sql +5 -0
  34. package/prisma/schema.prisma +121 -81
@@ -2,6 +2,17 @@ import * as Prisma from './internal/prismaNamespaceBrowser.js';
2
2
  export { Prisma };
3
3
  export * as $Enums from './enums.js';
4
4
  export * from './enums.js';
5
+ /**
6
+ * Model OrganizationType
7
+ *
8
+ */
9
+ export type OrganizationType = Prisma.OrganizationTypeModel;
10
+ /**
11
+ * Model OrganizationTypeAssignment
12
+ * Links organizations to their types (many-to-many)
13
+ * An organization can have multiple types (e.g., QShelter is PLATFORM + DEVELOPER)
14
+ */
15
+ export type OrganizationTypeAssignment = Prisma.OrganizationTypeAssignmentModel;
5
16
  /**
6
17
  * Model User
7
18
  *
@@ -42,8 +53,8 @@ export type TenantMembership = Prisma.TenantMembershipModel;
42
53
  export type Organization = Prisma.OrganizationModel;
43
54
  /**
44
55
  * Model OrganizationMember
45
- * OrganizationMember: Links users to organizations with roles and permissions
46
- * Supports maker-checker workflows via canApprove and approvalLimit
56
+ * OrganizationMember: Links users to organizations
57
+ * User's own roles (via UserRole) determine their abilities within the org
47
58
  */
48
59
  export type OrganizationMember = Prisma.OrganizationMemberModel;
49
60
  /**
@@ -10,8 +10,8 @@ export * from "./enums.js";
10
10
  * @example
11
11
  * ```
12
12
  * const prisma = new PrismaClient()
13
- * // Fetch zero or more Users
14
- * const users = await prisma.user.findMany()
13
+ * // Fetch zero or more OrganizationTypes
14
+ * const organizationTypes = await prisma.organizationType.findMany()
15
15
  * ```
16
16
  *
17
17
  * Read more in our [docs](https://pris.ly/d/client).
@@ -19,6 +19,17 @@ export * from "./enums.js";
19
19
  export declare const PrismaClient: $Class.PrismaClientConstructor;
20
20
  export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>;
21
21
  export { Prisma };
22
+ /**
23
+ * Model OrganizationType
24
+ *
25
+ */
26
+ export type OrganizationType = Prisma.OrganizationTypeModel;
27
+ /**
28
+ * Model OrganizationTypeAssignment
29
+ * Links organizations to their types (many-to-many)
30
+ * An organization can have multiple types (e.g., QShelter is PLATFORM + DEVELOPER)
31
+ */
32
+ export type OrganizationTypeAssignment = Prisma.OrganizationTypeAssignmentModel;
22
33
  /**
23
34
  * Model User
24
35
  *
@@ -59,8 +70,8 @@ export type TenantMembership = Prisma.TenantMembershipModel;
59
70
  export type Organization = Prisma.OrganizationModel;
60
71
  /**
61
72
  * Model OrganizationMember
62
- * OrganizationMember: Links users to organizations with roles and permissions
63
- * Supports maker-checker workflows via canApprove and approvalLimit
73
+ * OrganizationMember: Links users to organizations
74
+ * User's own roles (via UserRole) determine their abilities within the org
64
75
  */
65
76
  export type OrganizationMember = Prisma.OrganizationMemberModel;
66
77
  /**
@@ -22,8 +22,8 @@ export * from "./enums.js";
22
22
  * @example
23
23
  * ```
24
24
  * const prisma = new PrismaClient()
25
- * // Fetch zero or more Users
26
- * const users = await prisma.user.findMany()
25
+ * // Fetch zero or more OrganizationTypes
26
+ * const organizationTypes = await prisma.organizationType.findMany()
27
27
  * ```
28
28
  *
29
29
  * Read more in our [docs](https://pris.ly/d/client).
@@ -43,16 +43,6 @@ export type DateTimeFilter<$PrismaModel = never> = {
43
43
  gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
44
44
  not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
45
45
  };
46
- export type DateTimeNullableFilter<$PrismaModel = never> = {
47
- equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
48
- in?: Date[] | string[] | null;
49
- notIn?: Date[] | string[] | null;
50
- lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
51
- lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
52
- gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
53
- gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
54
- not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
55
- };
56
46
  export type SortOrderInput = {
57
47
  sort: Prisma.SortOrder;
58
48
  nulls?: Prisma.NullsOrder;
@@ -111,6 +101,16 @@ export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
111
101
  _min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
112
102
  _max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
113
103
  };
104
+ export type DateTimeNullableFilter<$PrismaModel = never> = {
105
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
106
+ in?: Date[] | string[] | null;
107
+ notIn?: Date[] | string[] | null;
108
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
109
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
110
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
111
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
112
+ not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
113
+ };
114
114
  export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
115
115
  equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
116
116
  in?: Date[] | string[] | null;
@@ -176,27 +176,12 @@ export type EnumPermissionEffectWithAggregatesFilter<$PrismaModel = never> = {
176
176
  _min?: Prisma.NestedEnumPermissionEffectFilter<$PrismaModel>;
177
177
  _max?: Prisma.NestedEnumPermissionEffectFilter<$PrismaModel>;
178
178
  };
179
- export type EnumOrganizationTypeFilter<$PrismaModel = never> = {
180
- equals?: $Enums.OrganizationType | Prisma.EnumOrganizationTypeFieldRefInput<$PrismaModel>;
181
- in?: $Enums.OrganizationType[];
182
- notIn?: $Enums.OrganizationType[];
183
- not?: Prisma.NestedEnumOrganizationTypeFilter<$PrismaModel> | $Enums.OrganizationType;
184
- };
185
179
  export type EnumOrganizationStatusFilter<$PrismaModel = never> = {
186
180
  equals?: $Enums.OrganizationStatus | Prisma.EnumOrganizationStatusFieldRefInput<$PrismaModel>;
187
181
  in?: $Enums.OrganizationStatus[];
188
182
  notIn?: $Enums.OrganizationStatus[];
189
183
  not?: Prisma.NestedEnumOrganizationStatusFilter<$PrismaModel> | $Enums.OrganizationStatus;
190
184
  };
191
- export type EnumOrganizationTypeWithAggregatesFilter<$PrismaModel = never> = {
192
- equals?: $Enums.OrganizationType | Prisma.EnumOrganizationTypeFieldRefInput<$PrismaModel>;
193
- in?: $Enums.OrganizationType[];
194
- notIn?: $Enums.OrganizationType[];
195
- not?: Prisma.NestedEnumOrganizationTypeWithAggregatesFilter<$PrismaModel> | $Enums.OrganizationType;
196
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
197
- _min?: Prisma.NestedEnumOrganizationTypeFilter<$PrismaModel>;
198
- _max?: Prisma.NestedEnumOrganizationTypeFilter<$PrismaModel>;
199
- };
200
185
  export type EnumOrganizationStatusWithAggregatesFilter<$PrismaModel = never> = {
201
186
  equals?: $Enums.OrganizationStatus | Prisma.EnumOrganizationStatusFieldRefInput<$PrismaModel>;
202
187
  in?: $Enums.OrganizationStatus[];
@@ -206,46 +191,6 @@ export type EnumOrganizationStatusWithAggregatesFilter<$PrismaModel = never> = {
206
191
  _min?: Prisma.NestedEnumOrganizationStatusFilter<$PrismaModel>;
207
192
  _max?: Prisma.NestedEnumOrganizationStatusFilter<$PrismaModel>;
208
193
  };
209
- export type EnumOrganizationRoleFilter<$PrismaModel = never> = {
210
- equals?: $Enums.OrganizationRole | Prisma.EnumOrganizationRoleFieldRefInput<$PrismaModel>;
211
- in?: $Enums.OrganizationRole[];
212
- notIn?: $Enums.OrganizationRole[];
213
- not?: Prisma.NestedEnumOrganizationRoleFilter<$PrismaModel> | $Enums.OrganizationRole;
214
- };
215
- export type DecimalNullableFilter<$PrismaModel = never> = {
216
- equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null;
217
- in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null;
218
- notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null;
219
- lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
220
- lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
221
- gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
222
- gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
223
- not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
224
- };
225
- export type EnumOrganizationRoleWithAggregatesFilter<$PrismaModel = never> = {
226
- equals?: $Enums.OrganizationRole | Prisma.EnumOrganizationRoleFieldRefInput<$PrismaModel>;
227
- in?: $Enums.OrganizationRole[];
228
- notIn?: $Enums.OrganizationRole[];
229
- not?: Prisma.NestedEnumOrganizationRoleWithAggregatesFilter<$PrismaModel> | $Enums.OrganizationRole;
230
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
231
- _min?: Prisma.NestedEnumOrganizationRoleFilter<$PrismaModel>;
232
- _max?: Prisma.NestedEnumOrganizationRoleFilter<$PrismaModel>;
233
- };
234
- export type DecimalNullableWithAggregatesFilter<$PrismaModel = never> = {
235
- equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null;
236
- in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null;
237
- notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null;
238
- lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
239
- lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
240
- gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
241
- gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
242
- not?: Prisma.NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
243
- _count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
244
- _avg?: Prisma.NestedDecimalNullableFilter<$PrismaModel>;
245
- _sum?: Prisma.NestedDecimalNullableFilter<$PrismaModel>;
246
- _min?: Prisma.NestedDecimalNullableFilter<$PrismaModel>;
247
- _max?: Prisma.NestedDecimalNullableFilter<$PrismaModel>;
248
- };
249
194
  export type EnumBankDocumentModifierFilter<$PrismaModel = never> = {
250
195
  equals?: $Enums.BankDocumentModifier | Prisma.EnumBankDocumentModifierFieldRefInput<$PrismaModel>;
251
196
  in?: $Enums.BankDocumentModifier[];
@@ -383,6 +328,12 @@ export type FloatNullableFilter<$PrismaModel = never> = {
383
328
  gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
384
329
  not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null;
385
330
  };
331
+ export type EnumPropertyStatusFilter<$PrismaModel = never> = {
332
+ equals?: $Enums.PropertyStatus | Prisma.EnumPropertyStatusFieldRefInput<$PrismaModel>;
333
+ in?: $Enums.PropertyStatus[];
334
+ notIn?: $Enums.PropertyStatus[];
335
+ not?: Prisma.NestedEnumPropertyStatusFilter<$PrismaModel> | $Enums.PropertyStatus;
336
+ };
386
337
  export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = {
387
338
  equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null;
388
339
  in?: number[] | null;
@@ -398,6 +349,15 @@ export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = {
398
349
  _min?: Prisma.NestedFloatNullableFilter<$PrismaModel>;
399
350
  _max?: Prisma.NestedFloatNullableFilter<$PrismaModel>;
400
351
  };
352
+ export type EnumPropertyStatusWithAggregatesFilter<$PrismaModel = never> = {
353
+ equals?: $Enums.PropertyStatus | Prisma.EnumPropertyStatusFieldRefInput<$PrismaModel>;
354
+ in?: $Enums.PropertyStatus[];
355
+ notIn?: $Enums.PropertyStatus[];
356
+ not?: Prisma.NestedEnumPropertyStatusWithAggregatesFilter<$PrismaModel> | $Enums.PropertyStatus;
357
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
358
+ _min?: Prisma.NestedEnumPropertyStatusFilter<$PrismaModel>;
359
+ _max?: Prisma.NestedEnumPropertyStatusFilter<$PrismaModel>;
360
+ };
401
361
  export type EnumUploadedByFilter<$PrismaModel = never> = {
402
362
  equals?: $Enums.UploadedBy | Prisma.EnumUploadedByFieldRefInput<$PrismaModel>;
403
363
  in?: $Enums.UploadedBy[];
@@ -413,27 +373,12 @@ export type EnumUploadedByWithAggregatesFilter<$PrismaModel = never> = {
413
373
  _min?: Prisma.NestedEnumUploadedByFilter<$PrismaModel>;
414
374
  _max?: Prisma.NestedEnumUploadedByFilter<$PrismaModel>;
415
375
  };
416
- export type EnumReviewPartyFilter<$PrismaModel = never> = {
417
- equals?: $Enums.ReviewParty | Prisma.EnumReviewPartyFieldRefInput<$PrismaModel>;
418
- in?: $Enums.ReviewParty[];
419
- notIn?: $Enums.ReviewParty[];
420
- not?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel> | $Enums.ReviewParty;
421
- };
422
376
  export type EnumRejectionBehaviorFilter<$PrismaModel = never> = {
423
377
  equals?: $Enums.RejectionBehavior | Prisma.EnumRejectionBehaviorFieldRefInput<$PrismaModel>;
424
378
  in?: $Enums.RejectionBehavior[];
425
379
  notIn?: $Enums.RejectionBehavior[];
426
380
  not?: Prisma.NestedEnumRejectionBehaviorFilter<$PrismaModel> | $Enums.RejectionBehavior;
427
381
  };
428
- export type EnumReviewPartyWithAggregatesFilter<$PrismaModel = never> = {
429
- equals?: $Enums.ReviewParty | Prisma.EnumReviewPartyFieldRefInput<$PrismaModel>;
430
- in?: $Enums.ReviewParty[];
431
- notIn?: $Enums.ReviewParty[];
432
- not?: Prisma.NestedEnumReviewPartyWithAggregatesFilter<$PrismaModel> | $Enums.ReviewParty;
433
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
434
- _min?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel>;
435
- _max?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel>;
436
- };
437
382
  export type EnumRejectionBehaviorWithAggregatesFilter<$PrismaModel = never> = {
438
383
  equals?: $Enums.RejectionBehavior | Prisma.EnumRejectionBehaviorFieldRefInput<$PrismaModel>;
439
384
  in?: $Enums.RejectionBehavior[];
@@ -649,27 +594,12 @@ export type EnumApplicationStatusWithAggregatesFilter<$PrismaModel = never> = {
649
594
  _min?: Prisma.NestedEnumApplicationStatusFilter<$PrismaModel>;
650
595
  _max?: Prisma.NestedEnumApplicationStatusFilter<$PrismaModel>;
651
596
  };
652
- export type EnumApplicationOrganizationRoleFilter<$PrismaModel = never> = {
653
- equals?: $Enums.ApplicationOrganizationRole | Prisma.EnumApplicationOrganizationRoleFieldRefInput<$PrismaModel>;
654
- in?: $Enums.ApplicationOrganizationRole[];
655
- notIn?: $Enums.ApplicationOrganizationRole[];
656
- not?: Prisma.NestedEnumApplicationOrganizationRoleFilter<$PrismaModel> | $Enums.ApplicationOrganizationRole;
657
- };
658
597
  export type EnumApplicationOrganizationStatusFilter<$PrismaModel = never> = {
659
598
  equals?: $Enums.ApplicationOrganizationStatus | Prisma.EnumApplicationOrganizationStatusFieldRefInput<$PrismaModel>;
660
599
  in?: $Enums.ApplicationOrganizationStatus[];
661
600
  notIn?: $Enums.ApplicationOrganizationStatus[];
662
601
  not?: Prisma.NestedEnumApplicationOrganizationStatusFilter<$PrismaModel> | $Enums.ApplicationOrganizationStatus;
663
602
  };
664
- export type EnumApplicationOrganizationRoleWithAggregatesFilter<$PrismaModel = never> = {
665
- equals?: $Enums.ApplicationOrganizationRole | Prisma.EnumApplicationOrganizationRoleFieldRefInput<$PrismaModel>;
666
- in?: $Enums.ApplicationOrganizationRole[];
667
- notIn?: $Enums.ApplicationOrganizationRole[];
668
- not?: Prisma.NestedEnumApplicationOrganizationRoleWithAggregatesFilter<$PrismaModel> | $Enums.ApplicationOrganizationRole;
669
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
670
- _min?: Prisma.NestedEnumApplicationOrganizationRoleFilter<$PrismaModel>;
671
- _max?: Prisma.NestedEnumApplicationOrganizationRoleFilter<$PrismaModel>;
672
- };
673
603
  export type EnumApplicationOrganizationStatusWithAggregatesFilter<$PrismaModel = never> = {
674
604
  equals?: $Enums.ApplicationOrganizationStatus | Prisma.EnumApplicationOrganizationStatusFieldRefInput<$PrismaModel>;
675
605
  in?: $Enums.ApplicationOrganizationStatus[];
@@ -1156,16 +1086,6 @@ export type NestedDateTimeFilter<$PrismaModel = never> = {
1156
1086
  gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
1157
1087
  not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
1158
1088
  };
1159
- export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
1160
- equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
1161
- in?: Date[] | string[] | null;
1162
- notIn?: Date[] | string[] | null;
1163
- lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
1164
- lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
1165
- gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
1166
- gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
1167
- not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
1168
- };
1169
1089
  export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
1170
1090
  equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
1171
1091
  in?: string[];
@@ -1240,6 +1160,16 @@ export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
1240
1160
  _min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
1241
1161
  _max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
1242
1162
  };
1163
+ export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
1164
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
1165
+ in?: Date[] | string[] | null;
1166
+ notIn?: Date[] | string[] | null;
1167
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
1168
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
1169
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
1170
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
1171
+ not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
1172
+ };
1243
1173
  export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
1244
1174
  equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
1245
1175
  in?: Date[] | string[] | null;
@@ -1285,27 +1215,12 @@ export type NestedEnumPermissionEffectWithAggregatesFilter<$PrismaModel = never>
1285
1215
  _min?: Prisma.NestedEnumPermissionEffectFilter<$PrismaModel>;
1286
1216
  _max?: Prisma.NestedEnumPermissionEffectFilter<$PrismaModel>;
1287
1217
  };
1288
- export type NestedEnumOrganizationTypeFilter<$PrismaModel = never> = {
1289
- equals?: $Enums.OrganizationType | Prisma.EnumOrganizationTypeFieldRefInput<$PrismaModel>;
1290
- in?: $Enums.OrganizationType[];
1291
- notIn?: $Enums.OrganizationType[];
1292
- not?: Prisma.NestedEnumOrganizationTypeFilter<$PrismaModel> | $Enums.OrganizationType;
1293
- };
1294
1218
  export type NestedEnumOrganizationStatusFilter<$PrismaModel = never> = {
1295
1219
  equals?: $Enums.OrganizationStatus | Prisma.EnumOrganizationStatusFieldRefInput<$PrismaModel>;
1296
1220
  in?: $Enums.OrganizationStatus[];
1297
1221
  notIn?: $Enums.OrganizationStatus[];
1298
1222
  not?: Prisma.NestedEnumOrganizationStatusFilter<$PrismaModel> | $Enums.OrganizationStatus;
1299
1223
  };
1300
- export type NestedEnumOrganizationTypeWithAggregatesFilter<$PrismaModel = never> = {
1301
- equals?: $Enums.OrganizationType | Prisma.EnumOrganizationTypeFieldRefInput<$PrismaModel>;
1302
- in?: $Enums.OrganizationType[];
1303
- notIn?: $Enums.OrganizationType[];
1304
- not?: Prisma.NestedEnumOrganizationTypeWithAggregatesFilter<$PrismaModel> | $Enums.OrganizationType;
1305
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
1306
- _min?: Prisma.NestedEnumOrganizationTypeFilter<$PrismaModel>;
1307
- _max?: Prisma.NestedEnumOrganizationTypeFilter<$PrismaModel>;
1308
- };
1309
1224
  export type NestedEnumOrganizationStatusWithAggregatesFilter<$PrismaModel = never> = {
1310
1225
  equals?: $Enums.OrganizationStatus | Prisma.EnumOrganizationStatusFieldRefInput<$PrismaModel>;
1311
1226
  in?: $Enums.OrganizationStatus[];
@@ -1315,46 +1230,6 @@ export type NestedEnumOrganizationStatusWithAggregatesFilter<$PrismaModel = neve
1315
1230
  _min?: Prisma.NestedEnumOrganizationStatusFilter<$PrismaModel>;
1316
1231
  _max?: Prisma.NestedEnumOrganizationStatusFilter<$PrismaModel>;
1317
1232
  };
1318
- export type NestedEnumOrganizationRoleFilter<$PrismaModel = never> = {
1319
- equals?: $Enums.OrganizationRole | Prisma.EnumOrganizationRoleFieldRefInput<$PrismaModel>;
1320
- in?: $Enums.OrganizationRole[];
1321
- notIn?: $Enums.OrganizationRole[];
1322
- not?: Prisma.NestedEnumOrganizationRoleFilter<$PrismaModel> | $Enums.OrganizationRole;
1323
- };
1324
- export type NestedDecimalNullableFilter<$PrismaModel = never> = {
1325
- equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null;
1326
- in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null;
1327
- notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null;
1328
- lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1329
- lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1330
- gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1331
- gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1332
- not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
1333
- };
1334
- export type NestedEnumOrganizationRoleWithAggregatesFilter<$PrismaModel = never> = {
1335
- equals?: $Enums.OrganizationRole | Prisma.EnumOrganizationRoleFieldRefInput<$PrismaModel>;
1336
- in?: $Enums.OrganizationRole[];
1337
- notIn?: $Enums.OrganizationRole[];
1338
- not?: Prisma.NestedEnumOrganizationRoleWithAggregatesFilter<$PrismaModel> | $Enums.OrganizationRole;
1339
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
1340
- _min?: Prisma.NestedEnumOrganizationRoleFilter<$PrismaModel>;
1341
- _max?: Prisma.NestedEnumOrganizationRoleFilter<$PrismaModel>;
1342
- };
1343
- export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = {
1344
- equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null;
1345
- in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null;
1346
- notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null;
1347
- lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1348
- lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1349
- gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1350
- gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1351
- not?: Prisma.NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
1352
- _count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
1353
- _avg?: Prisma.NestedDecimalNullableFilter<$PrismaModel>;
1354
- _sum?: Prisma.NestedDecimalNullableFilter<$PrismaModel>;
1355
- _min?: Prisma.NestedDecimalNullableFilter<$PrismaModel>;
1356
- _max?: Prisma.NestedDecimalNullableFilter<$PrismaModel>;
1357
- };
1358
1233
  export type NestedEnumBankDocumentModifierFilter<$PrismaModel = never> = {
1359
1234
  equals?: $Enums.BankDocumentModifier | Prisma.EnumBankDocumentModifierFieldRefInput<$PrismaModel>;
1360
1235
  in?: $Enums.BankDocumentModifier[];
@@ -1452,6 +1327,12 @@ export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = {
1452
1327
  _min?: Prisma.NestedFloatFilter<$PrismaModel>;
1453
1328
  _max?: Prisma.NestedFloatFilter<$PrismaModel>;
1454
1329
  };
1330
+ export type NestedEnumPropertyStatusFilter<$PrismaModel = never> = {
1331
+ equals?: $Enums.PropertyStatus | Prisma.EnumPropertyStatusFieldRefInput<$PrismaModel>;
1332
+ in?: $Enums.PropertyStatus[];
1333
+ notIn?: $Enums.PropertyStatus[];
1334
+ not?: Prisma.NestedEnumPropertyStatusFilter<$PrismaModel> | $Enums.PropertyStatus;
1335
+ };
1455
1336
  export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = {
1456
1337
  equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null;
1457
1338
  in?: number[] | null;
@@ -1467,6 +1348,15 @@ export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = {
1467
1348
  _min?: Prisma.NestedFloatNullableFilter<$PrismaModel>;
1468
1349
  _max?: Prisma.NestedFloatNullableFilter<$PrismaModel>;
1469
1350
  };
1351
+ export type NestedEnumPropertyStatusWithAggregatesFilter<$PrismaModel = never> = {
1352
+ equals?: $Enums.PropertyStatus | Prisma.EnumPropertyStatusFieldRefInput<$PrismaModel>;
1353
+ in?: $Enums.PropertyStatus[];
1354
+ notIn?: $Enums.PropertyStatus[];
1355
+ not?: Prisma.NestedEnumPropertyStatusWithAggregatesFilter<$PrismaModel> | $Enums.PropertyStatus;
1356
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
1357
+ _min?: Prisma.NestedEnumPropertyStatusFilter<$PrismaModel>;
1358
+ _max?: Prisma.NestedEnumPropertyStatusFilter<$PrismaModel>;
1359
+ };
1470
1360
  export type NestedEnumUploadedByFilter<$PrismaModel = never> = {
1471
1361
  equals?: $Enums.UploadedBy | Prisma.EnumUploadedByFieldRefInput<$PrismaModel>;
1472
1362
  in?: $Enums.UploadedBy[];
@@ -1482,27 +1372,12 @@ export type NestedEnumUploadedByWithAggregatesFilter<$PrismaModel = never> = {
1482
1372
  _min?: Prisma.NestedEnumUploadedByFilter<$PrismaModel>;
1483
1373
  _max?: Prisma.NestedEnumUploadedByFilter<$PrismaModel>;
1484
1374
  };
1485
- export type NestedEnumReviewPartyFilter<$PrismaModel = never> = {
1486
- equals?: $Enums.ReviewParty | Prisma.EnumReviewPartyFieldRefInput<$PrismaModel>;
1487
- in?: $Enums.ReviewParty[];
1488
- notIn?: $Enums.ReviewParty[];
1489
- not?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel> | $Enums.ReviewParty;
1490
- };
1491
1375
  export type NestedEnumRejectionBehaviorFilter<$PrismaModel = never> = {
1492
1376
  equals?: $Enums.RejectionBehavior | Prisma.EnumRejectionBehaviorFieldRefInput<$PrismaModel>;
1493
1377
  in?: $Enums.RejectionBehavior[];
1494
1378
  notIn?: $Enums.RejectionBehavior[];
1495
1379
  not?: Prisma.NestedEnumRejectionBehaviorFilter<$PrismaModel> | $Enums.RejectionBehavior;
1496
1380
  };
1497
- export type NestedEnumReviewPartyWithAggregatesFilter<$PrismaModel = never> = {
1498
- equals?: $Enums.ReviewParty | Prisma.EnumReviewPartyFieldRefInput<$PrismaModel>;
1499
- in?: $Enums.ReviewParty[];
1500
- notIn?: $Enums.ReviewParty[];
1501
- not?: Prisma.NestedEnumReviewPartyWithAggregatesFilter<$PrismaModel> | $Enums.ReviewParty;
1502
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
1503
- _min?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel>;
1504
- _max?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel>;
1505
- };
1506
1381
  export type NestedEnumRejectionBehaviorWithAggregatesFilter<$PrismaModel = never> = {
1507
1382
  equals?: $Enums.RejectionBehavior | Prisma.EnumRejectionBehaviorFieldRefInput<$PrismaModel>;
1508
1383
  in?: $Enums.RejectionBehavior[];
@@ -1718,27 +1593,12 @@ export type NestedEnumApplicationStatusWithAggregatesFilter<$PrismaModel = never
1718
1593
  _min?: Prisma.NestedEnumApplicationStatusFilter<$PrismaModel>;
1719
1594
  _max?: Prisma.NestedEnumApplicationStatusFilter<$PrismaModel>;
1720
1595
  };
1721
- export type NestedEnumApplicationOrganizationRoleFilter<$PrismaModel = never> = {
1722
- equals?: $Enums.ApplicationOrganizationRole | Prisma.EnumApplicationOrganizationRoleFieldRefInput<$PrismaModel>;
1723
- in?: $Enums.ApplicationOrganizationRole[];
1724
- notIn?: $Enums.ApplicationOrganizationRole[];
1725
- not?: Prisma.NestedEnumApplicationOrganizationRoleFilter<$PrismaModel> | $Enums.ApplicationOrganizationRole;
1726
- };
1727
1596
  export type NestedEnumApplicationOrganizationStatusFilter<$PrismaModel = never> = {
1728
1597
  equals?: $Enums.ApplicationOrganizationStatus | Prisma.EnumApplicationOrganizationStatusFieldRefInput<$PrismaModel>;
1729
1598
  in?: $Enums.ApplicationOrganizationStatus[];
1730
1599
  notIn?: $Enums.ApplicationOrganizationStatus[];
1731
1600
  not?: Prisma.NestedEnumApplicationOrganizationStatusFilter<$PrismaModel> | $Enums.ApplicationOrganizationStatus;
1732
1601
  };
1733
- export type NestedEnumApplicationOrganizationRoleWithAggregatesFilter<$PrismaModel = never> = {
1734
- equals?: $Enums.ApplicationOrganizationRole | Prisma.EnumApplicationOrganizationRoleFieldRefInput<$PrismaModel>;
1735
- in?: $Enums.ApplicationOrganizationRole[];
1736
- notIn?: $Enums.ApplicationOrganizationRole[];
1737
- not?: Prisma.NestedEnumApplicationOrganizationRoleWithAggregatesFilter<$PrismaModel> | $Enums.ApplicationOrganizationRole;
1738
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
1739
- _min?: Prisma.NestedEnumApplicationOrganizationRoleFilter<$PrismaModel>;
1740
- _max?: Prisma.NestedEnumApplicationOrganizationRoleFilter<$PrismaModel>;
1741
- };
1742
1602
  export type NestedEnumApplicationOrganizationStatusWithAggregatesFilter<$PrismaModel = never> = {
1743
1603
  equals?: $Enums.ApplicationOrganizationStatus | Prisma.EnumApplicationOrganizationStatusFieldRefInput<$PrismaModel>;
1744
1604
  in?: $Enums.ApplicationOrganizationStatus[];
@@ -23,6 +23,13 @@ export declare const PaymentFrequency: {
23
23
  readonly CUSTOM: "CUSTOM";
24
24
  };
25
25
  export type PaymentFrequency = (typeof PaymentFrequency)[keyof typeof PaymentFrequency];
26
+ export declare const PropertyStatus: {
27
+ readonly DRAFT: "DRAFT";
28
+ readonly PUBLISHED: "PUBLISHED";
29
+ readonly SOLD_OUT: "SOLD_OUT";
30
+ readonly ARCHIVED: "ARCHIVED";
31
+ };
32
+ export type PropertyStatus = (typeof PropertyStatus)[keyof typeof PropertyStatus];
26
33
  export declare const ApplicationStatus: {
27
34
  readonly DRAFT: "DRAFT";
28
35
  readonly PENDING: "PENDING";
@@ -160,15 +167,6 @@ export declare const ApprovalDecision: {
160
167
  readonly REQUEST_CHANGES: "REQUEST_CHANGES";
161
168
  };
162
169
  export type ApprovalDecision = (typeof ApprovalDecision)[keyof typeof ApprovalDecision];
163
- export declare const OrganizationType: {
164
- readonly PLATFORM: "PLATFORM";
165
- readonly BANK: "BANK";
166
- readonly DEVELOPER: "DEVELOPER";
167
- readonly LEGAL: "LEGAL";
168
- readonly INSURER: "INSURER";
169
- readonly GOVERNMENT: "GOVERNMENT";
170
- };
171
- export type OrganizationType = (typeof OrganizationType)[keyof typeof OrganizationType];
172
170
  export declare const OrganizationStatus: {
173
171
  readonly PENDING: "PENDING";
174
172
  readonly ACTIVE: "ACTIVE";
@@ -176,13 +174,6 @@ export declare const OrganizationStatus: {
176
174
  readonly INACTIVE: "INACTIVE";
177
175
  };
178
176
  export type OrganizationStatus = (typeof OrganizationStatus)[keyof typeof OrganizationStatus];
179
- export declare const OrganizationRole: {
180
- readonly ADMIN: "ADMIN";
181
- readonly MANAGER: "MANAGER";
182
- readonly OFFICER: "OFFICER";
183
- readonly VIEWER: "VIEWER";
184
- };
185
- export type OrganizationRole = (typeof OrganizationRole)[keyof typeof OrganizationRole];
186
177
  export declare const TerminationType: {
187
178
  readonly BUYER_WITHDRAWAL: "BUYER_WITHDRAWAL";
188
179
  readonly SELLER_WITHDRAWAL: "SELLER_WITHDRAWAL";
@@ -220,16 +211,6 @@ export declare const CompletionCriterion: {
220
211
  readonly STEPS_COMPLETED: "STEPS_COMPLETED";
221
212
  };
222
213
  export type CompletionCriterion = (typeof CompletionCriterion)[keyof typeof CompletionCriterion];
223
- export declare const ReviewParty: {
224
- readonly INTERNAL: "INTERNAL";
225
- readonly BANK: "BANK";
226
- readonly DEVELOPER: "DEVELOPER";
227
- readonly LEGAL: "LEGAL";
228
- readonly GOVERNMENT: "GOVERNMENT";
229
- readonly INSURER: "INSURER";
230
- readonly CUSTOMER: "CUSTOMER";
231
- };
232
- export type ReviewParty = (typeof ReviewParty)[keyof typeof ReviewParty];
233
214
  export declare const ReviewDecision: {
234
215
  readonly PENDING: "PENDING";
235
216
  readonly APPROVED: "APPROVED";
@@ -423,14 +404,6 @@ export declare const QuestionCategory: {
423
404
  readonly CUSTOM: "CUSTOM";
424
405
  };
425
406
  export type QuestionCategory = (typeof QuestionCategory)[keyof typeof QuestionCategory];
426
- export declare const ApplicationOrganizationRole: {
427
- readonly DEVELOPER: "DEVELOPER";
428
- readonly LENDER: "LENDER";
429
- readonly LEGAL: "LEGAL";
430
- readonly INSURER: "INSURER";
431
- readonly GOVERNMENT: "GOVERNMENT";
432
- };
433
- export type ApplicationOrganizationRole = (typeof ApplicationOrganizationRole)[keyof typeof ApplicationOrganizationRole];
434
407
  export declare const ApplicationOrganizationStatus: {
435
408
  readonly PENDING: "PENDING";
436
409
  readonly ACTIVE: "ACTIVE";
@@ -29,6 +29,12 @@ export const PaymentFrequency = {
29
29
  ONE_TIME: 'ONE_TIME',
30
30
  CUSTOM: 'CUSTOM'
31
31
  };
32
+ export const PropertyStatus = {
33
+ DRAFT: 'DRAFT',
34
+ PUBLISHED: 'PUBLISHED',
35
+ SOLD_OUT: 'SOLD_OUT',
36
+ ARCHIVED: 'ARCHIVED'
37
+ };
32
38
  export const ApplicationStatus = {
33
39
  DRAFT: 'DRAFT',
34
40
  PENDING: 'PENDING',
@@ -151,26 +157,12 @@ export const ApprovalDecision = {
151
157
  REJECTED: 'REJECTED',
152
158
  REQUEST_CHANGES: 'REQUEST_CHANGES'
153
159
  };
154
- export const OrganizationType = {
155
- PLATFORM: 'PLATFORM',
156
- BANK: 'BANK',
157
- DEVELOPER: 'DEVELOPER',
158
- LEGAL: 'LEGAL',
159
- INSURER: 'INSURER',
160
- GOVERNMENT: 'GOVERNMENT'
161
- };
162
160
  export const OrganizationStatus = {
163
161
  PENDING: 'PENDING',
164
162
  ACTIVE: 'ACTIVE',
165
163
  SUSPENDED: 'SUSPENDED',
166
164
  INACTIVE: 'INACTIVE'
167
165
  };
168
- export const OrganizationRole = {
169
- ADMIN: 'ADMIN',
170
- MANAGER: 'MANAGER',
171
- OFFICER: 'OFFICER',
172
- VIEWER: 'VIEWER'
173
- };
174
166
  export const TerminationType = {
175
167
  BUYER_WITHDRAWAL: 'BUYER_WITHDRAWAL',
176
168
  SELLER_WITHDRAWAL: 'SELLER_WITHDRAWAL',
@@ -204,15 +196,6 @@ export const CompletionCriterion = {
204
196
  PAYMENT_AMOUNT: 'PAYMENT_AMOUNT',
205
197
  STEPS_COMPLETED: 'STEPS_COMPLETED'
206
198
  };
207
- export const ReviewParty = {
208
- INTERNAL: 'INTERNAL',
209
- BANK: 'BANK',
210
- DEVELOPER: 'DEVELOPER',
211
- LEGAL: 'LEGAL',
212
- GOVERNMENT: 'GOVERNMENT',
213
- INSURER: 'INSURER',
214
- CUSTOMER: 'CUSTOMER'
215
- };
216
199
  export const ReviewDecision = {
217
200
  PENDING: 'PENDING',
218
201
  APPROVED: 'APPROVED',
@@ -387,13 +370,6 @@ export const QuestionCategory = {
387
370
  ASSETS: 'ASSETS',
388
371
  CUSTOM: 'CUSTOM'
389
372
  };
390
- export const ApplicationOrganizationRole = {
391
- DEVELOPER: 'DEVELOPER',
392
- LENDER: 'LENDER',
393
- LEGAL: 'LEGAL',
394
- INSURER: 'INSURER',
395
- GOVERNMENT: 'GOVERNMENT'
396
- };
397
373
  export const ApplicationOrganizationStatus = {
398
374
  PENDING: 'PENDING',
399
375
  ACTIVE: 'ACTIVE',