@valentine-efagene/qshelter-common 2.0.151 → 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 (32) 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 +20 -190
  5. package/dist/generated/client/enums.d.ts +0 -34
  6. package/dist/generated/client/enums.js +0 -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 +181 -32
  10. package/dist/generated/client/internal/prismaNamespace.js +42 -11
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +46 -11
  12. package/dist/generated/client/internal/prismaNamespaceBrowser.js +42 -11
  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/Tenant.d.ts +575 -4
  25. package/dist/generated/client/models/User.d.ts +0 -12
  26. package/dist/generated/client/models/index.d.ts +2 -0
  27. package/dist/generated/client/models/index.js +2 -0
  28. package/dist/generated/client/models.d.ts +2 -0
  29. package/package.json +1 -1
  30. package/prisma/migrations/20260125102448_org_types_many_to_many/migration.sql +153 -0
  31. package/prisma/migrations/20260125103700_20260125102448_org_types_many_to_many_fix/migration.sql +5 -0
  32. package/prisma/schema.prisma +113 -79
@@ -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[];
@@ -428,27 +373,12 @@ export type EnumUploadedByWithAggregatesFilter<$PrismaModel = never> = {
428
373
  _min?: Prisma.NestedEnumUploadedByFilter<$PrismaModel>;
429
374
  _max?: Prisma.NestedEnumUploadedByFilter<$PrismaModel>;
430
375
  };
431
- export type EnumReviewPartyFilter<$PrismaModel = never> = {
432
- equals?: $Enums.ReviewParty | Prisma.EnumReviewPartyFieldRefInput<$PrismaModel>;
433
- in?: $Enums.ReviewParty[];
434
- notIn?: $Enums.ReviewParty[];
435
- not?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel> | $Enums.ReviewParty;
436
- };
437
376
  export type EnumRejectionBehaviorFilter<$PrismaModel = never> = {
438
377
  equals?: $Enums.RejectionBehavior | Prisma.EnumRejectionBehaviorFieldRefInput<$PrismaModel>;
439
378
  in?: $Enums.RejectionBehavior[];
440
379
  notIn?: $Enums.RejectionBehavior[];
441
380
  not?: Prisma.NestedEnumRejectionBehaviorFilter<$PrismaModel> | $Enums.RejectionBehavior;
442
381
  };
443
- export type EnumReviewPartyWithAggregatesFilter<$PrismaModel = never> = {
444
- equals?: $Enums.ReviewParty | Prisma.EnumReviewPartyFieldRefInput<$PrismaModel>;
445
- in?: $Enums.ReviewParty[];
446
- notIn?: $Enums.ReviewParty[];
447
- not?: Prisma.NestedEnumReviewPartyWithAggregatesFilter<$PrismaModel> | $Enums.ReviewParty;
448
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
449
- _min?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel>;
450
- _max?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel>;
451
- };
452
382
  export type EnumRejectionBehaviorWithAggregatesFilter<$PrismaModel = never> = {
453
383
  equals?: $Enums.RejectionBehavior | Prisma.EnumRejectionBehaviorFieldRefInput<$PrismaModel>;
454
384
  in?: $Enums.RejectionBehavior[];
@@ -664,27 +594,12 @@ export type EnumApplicationStatusWithAggregatesFilter<$PrismaModel = never> = {
664
594
  _min?: Prisma.NestedEnumApplicationStatusFilter<$PrismaModel>;
665
595
  _max?: Prisma.NestedEnumApplicationStatusFilter<$PrismaModel>;
666
596
  };
667
- export type EnumApplicationOrganizationRoleFilter<$PrismaModel = never> = {
668
- equals?: $Enums.ApplicationOrganizationRole | Prisma.EnumApplicationOrganizationRoleFieldRefInput<$PrismaModel>;
669
- in?: $Enums.ApplicationOrganizationRole[];
670
- notIn?: $Enums.ApplicationOrganizationRole[];
671
- not?: Prisma.NestedEnumApplicationOrganizationRoleFilter<$PrismaModel> | $Enums.ApplicationOrganizationRole;
672
- };
673
597
  export type EnumApplicationOrganizationStatusFilter<$PrismaModel = never> = {
674
598
  equals?: $Enums.ApplicationOrganizationStatus | Prisma.EnumApplicationOrganizationStatusFieldRefInput<$PrismaModel>;
675
599
  in?: $Enums.ApplicationOrganizationStatus[];
676
600
  notIn?: $Enums.ApplicationOrganizationStatus[];
677
601
  not?: Prisma.NestedEnumApplicationOrganizationStatusFilter<$PrismaModel> | $Enums.ApplicationOrganizationStatus;
678
602
  };
679
- export type EnumApplicationOrganizationRoleWithAggregatesFilter<$PrismaModel = never> = {
680
- equals?: $Enums.ApplicationOrganizationRole | Prisma.EnumApplicationOrganizationRoleFieldRefInput<$PrismaModel>;
681
- in?: $Enums.ApplicationOrganizationRole[];
682
- notIn?: $Enums.ApplicationOrganizationRole[];
683
- not?: Prisma.NestedEnumApplicationOrganizationRoleWithAggregatesFilter<$PrismaModel> | $Enums.ApplicationOrganizationRole;
684
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
685
- _min?: Prisma.NestedEnumApplicationOrganizationRoleFilter<$PrismaModel>;
686
- _max?: Prisma.NestedEnumApplicationOrganizationRoleFilter<$PrismaModel>;
687
- };
688
603
  export type EnumApplicationOrganizationStatusWithAggregatesFilter<$PrismaModel = never> = {
689
604
  equals?: $Enums.ApplicationOrganizationStatus | Prisma.EnumApplicationOrganizationStatusFieldRefInput<$PrismaModel>;
690
605
  in?: $Enums.ApplicationOrganizationStatus[];
@@ -1171,16 +1086,6 @@ export type NestedDateTimeFilter<$PrismaModel = never> = {
1171
1086
  gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
1172
1087
  not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
1173
1088
  };
1174
- export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
1175
- equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
1176
- in?: Date[] | string[] | null;
1177
- notIn?: Date[] | string[] | null;
1178
- lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
1179
- lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
1180
- gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
1181
- gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
1182
- not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
1183
- };
1184
1089
  export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
1185
1090
  equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
1186
1091
  in?: string[];
@@ -1255,6 +1160,16 @@ export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
1255
1160
  _min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
1256
1161
  _max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
1257
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
+ };
1258
1173
  export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
1259
1174
  equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
1260
1175
  in?: Date[] | string[] | null;
@@ -1300,27 +1215,12 @@ export type NestedEnumPermissionEffectWithAggregatesFilter<$PrismaModel = never>
1300
1215
  _min?: Prisma.NestedEnumPermissionEffectFilter<$PrismaModel>;
1301
1216
  _max?: Prisma.NestedEnumPermissionEffectFilter<$PrismaModel>;
1302
1217
  };
1303
- export type NestedEnumOrganizationTypeFilter<$PrismaModel = never> = {
1304
- equals?: $Enums.OrganizationType | Prisma.EnumOrganizationTypeFieldRefInput<$PrismaModel>;
1305
- in?: $Enums.OrganizationType[];
1306
- notIn?: $Enums.OrganizationType[];
1307
- not?: Prisma.NestedEnumOrganizationTypeFilter<$PrismaModel> | $Enums.OrganizationType;
1308
- };
1309
1218
  export type NestedEnumOrganizationStatusFilter<$PrismaModel = never> = {
1310
1219
  equals?: $Enums.OrganizationStatus | Prisma.EnumOrganizationStatusFieldRefInput<$PrismaModel>;
1311
1220
  in?: $Enums.OrganizationStatus[];
1312
1221
  notIn?: $Enums.OrganizationStatus[];
1313
1222
  not?: Prisma.NestedEnumOrganizationStatusFilter<$PrismaModel> | $Enums.OrganizationStatus;
1314
1223
  };
1315
- export type NestedEnumOrganizationTypeWithAggregatesFilter<$PrismaModel = never> = {
1316
- equals?: $Enums.OrganizationType | Prisma.EnumOrganizationTypeFieldRefInput<$PrismaModel>;
1317
- in?: $Enums.OrganizationType[];
1318
- notIn?: $Enums.OrganizationType[];
1319
- not?: Prisma.NestedEnumOrganizationTypeWithAggregatesFilter<$PrismaModel> | $Enums.OrganizationType;
1320
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
1321
- _min?: Prisma.NestedEnumOrganizationTypeFilter<$PrismaModel>;
1322
- _max?: Prisma.NestedEnumOrganizationTypeFilter<$PrismaModel>;
1323
- };
1324
1224
  export type NestedEnumOrganizationStatusWithAggregatesFilter<$PrismaModel = never> = {
1325
1225
  equals?: $Enums.OrganizationStatus | Prisma.EnumOrganizationStatusFieldRefInput<$PrismaModel>;
1326
1226
  in?: $Enums.OrganizationStatus[];
@@ -1330,46 +1230,6 @@ export type NestedEnumOrganizationStatusWithAggregatesFilter<$PrismaModel = neve
1330
1230
  _min?: Prisma.NestedEnumOrganizationStatusFilter<$PrismaModel>;
1331
1231
  _max?: Prisma.NestedEnumOrganizationStatusFilter<$PrismaModel>;
1332
1232
  };
1333
- export type NestedEnumOrganizationRoleFilter<$PrismaModel = never> = {
1334
- equals?: $Enums.OrganizationRole | Prisma.EnumOrganizationRoleFieldRefInput<$PrismaModel>;
1335
- in?: $Enums.OrganizationRole[];
1336
- notIn?: $Enums.OrganizationRole[];
1337
- not?: Prisma.NestedEnumOrganizationRoleFilter<$PrismaModel> | $Enums.OrganizationRole;
1338
- };
1339
- export type NestedDecimalNullableFilter<$PrismaModel = never> = {
1340
- equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null;
1341
- in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null;
1342
- notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null;
1343
- lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1344
- lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1345
- gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1346
- gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1347
- not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
1348
- };
1349
- export type NestedEnumOrganizationRoleWithAggregatesFilter<$PrismaModel = never> = {
1350
- equals?: $Enums.OrganizationRole | Prisma.EnumOrganizationRoleFieldRefInput<$PrismaModel>;
1351
- in?: $Enums.OrganizationRole[];
1352
- notIn?: $Enums.OrganizationRole[];
1353
- not?: Prisma.NestedEnumOrganizationRoleWithAggregatesFilter<$PrismaModel> | $Enums.OrganizationRole;
1354
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
1355
- _min?: Prisma.NestedEnumOrganizationRoleFilter<$PrismaModel>;
1356
- _max?: Prisma.NestedEnumOrganizationRoleFilter<$PrismaModel>;
1357
- };
1358
- export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = {
1359
- equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null;
1360
- in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null;
1361
- notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null;
1362
- lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1363
- lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1364
- gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1365
- gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1366
- not?: Prisma.NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
1367
- _count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
1368
- _avg?: Prisma.NestedDecimalNullableFilter<$PrismaModel>;
1369
- _sum?: Prisma.NestedDecimalNullableFilter<$PrismaModel>;
1370
- _min?: Prisma.NestedDecimalNullableFilter<$PrismaModel>;
1371
- _max?: Prisma.NestedDecimalNullableFilter<$PrismaModel>;
1372
- };
1373
1233
  export type NestedEnumBankDocumentModifierFilter<$PrismaModel = never> = {
1374
1234
  equals?: $Enums.BankDocumentModifier | Prisma.EnumBankDocumentModifierFieldRefInput<$PrismaModel>;
1375
1235
  in?: $Enums.BankDocumentModifier[];
@@ -1512,27 +1372,12 @@ export type NestedEnumUploadedByWithAggregatesFilter<$PrismaModel = never> = {
1512
1372
  _min?: Prisma.NestedEnumUploadedByFilter<$PrismaModel>;
1513
1373
  _max?: Prisma.NestedEnumUploadedByFilter<$PrismaModel>;
1514
1374
  };
1515
- export type NestedEnumReviewPartyFilter<$PrismaModel = never> = {
1516
- equals?: $Enums.ReviewParty | Prisma.EnumReviewPartyFieldRefInput<$PrismaModel>;
1517
- in?: $Enums.ReviewParty[];
1518
- notIn?: $Enums.ReviewParty[];
1519
- not?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel> | $Enums.ReviewParty;
1520
- };
1521
1375
  export type NestedEnumRejectionBehaviorFilter<$PrismaModel = never> = {
1522
1376
  equals?: $Enums.RejectionBehavior | Prisma.EnumRejectionBehaviorFieldRefInput<$PrismaModel>;
1523
1377
  in?: $Enums.RejectionBehavior[];
1524
1378
  notIn?: $Enums.RejectionBehavior[];
1525
1379
  not?: Prisma.NestedEnumRejectionBehaviorFilter<$PrismaModel> | $Enums.RejectionBehavior;
1526
1380
  };
1527
- export type NestedEnumReviewPartyWithAggregatesFilter<$PrismaModel = never> = {
1528
- equals?: $Enums.ReviewParty | Prisma.EnumReviewPartyFieldRefInput<$PrismaModel>;
1529
- in?: $Enums.ReviewParty[];
1530
- notIn?: $Enums.ReviewParty[];
1531
- not?: Prisma.NestedEnumReviewPartyWithAggregatesFilter<$PrismaModel> | $Enums.ReviewParty;
1532
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
1533
- _min?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel>;
1534
- _max?: Prisma.NestedEnumReviewPartyFilter<$PrismaModel>;
1535
- };
1536
1381
  export type NestedEnumRejectionBehaviorWithAggregatesFilter<$PrismaModel = never> = {
1537
1382
  equals?: $Enums.RejectionBehavior | Prisma.EnumRejectionBehaviorFieldRefInput<$PrismaModel>;
1538
1383
  in?: $Enums.RejectionBehavior[];
@@ -1748,27 +1593,12 @@ export type NestedEnumApplicationStatusWithAggregatesFilter<$PrismaModel = never
1748
1593
  _min?: Prisma.NestedEnumApplicationStatusFilter<$PrismaModel>;
1749
1594
  _max?: Prisma.NestedEnumApplicationStatusFilter<$PrismaModel>;
1750
1595
  };
1751
- export type NestedEnumApplicationOrganizationRoleFilter<$PrismaModel = never> = {
1752
- equals?: $Enums.ApplicationOrganizationRole | Prisma.EnumApplicationOrganizationRoleFieldRefInput<$PrismaModel>;
1753
- in?: $Enums.ApplicationOrganizationRole[];
1754
- notIn?: $Enums.ApplicationOrganizationRole[];
1755
- not?: Prisma.NestedEnumApplicationOrganizationRoleFilter<$PrismaModel> | $Enums.ApplicationOrganizationRole;
1756
- };
1757
1596
  export type NestedEnumApplicationOrganizationStatusFilter<$PrismaModel = never> = {
1758
1597
  equals?: $Enums.ApplicationOrganizationStatus | Prisma.EnumApplicationOrganizationStatusFieldRefInput<$PrismaModel>;
1759
1598
  in?: $Enums.ApplicationOrganizationStatus[];
1760
1599
  notIn?: $Enums.ApplicationOrganizationStatus[];
1761
1600
  not?: Prisma.NestedEnumApplicationOrganizationStatusFilter<$PrismaModel> | $Enums.ApplicationOrganizationStatus;
1762
1601
  };
1763
- export type NestedEnumApplicationOrganizationRoleWithAggregatesFilter<$PrismaModel = never> = {
1764
- equals?: $Enums.ApplicationOrganizationRole | Prisma.EnumApplicationOrganizationRoleFieldRefInput<$PrismaModel>;
1765
- in?: $Enums.ApplicationOrganizationRole[];
1766
- notIn?: $Enums.ApplicationOrganizationRole[];
1767
- not?: Prisma.NestedEnumApplicationOrganizationRoleWithAggregatesFilter<$PrismaModel> | $Enums.ApplicationOrganizationRole;
1768
- _count?: Prisma.NestedIntFilter<$PrismaModel>;
1769
- _min?: Prisma.NestedEnumApplicationOrganizationRoleFilter<$PrismaModel>;
1770
- _max?: Prisma.NestedEnumApplicationOrganizationRoleFilter<$PrismaModel>;
1771
- };
1772
1602
  export type NestedEnumApplicationOrganizationStatusWithAggregatesFilter<$PrismaModel = never> = {
1773
1603
  equals?: $Enums.ApplicationOrganizationStatus | Prisma.EnumApplicationOrganizationStatusFieldRefInput<$PrismaModel>;
1774
1604
  in?: $Enums.ApplicationOrganizationStatus[];
@@ -167,15 +167,6 @@ export declare const ApprovalDecision: {
167
167
  readonly REQUEST_CHANGES: "REQUEST_CHANGES";
168
168
  };
169
169
  export type ApprovalDecision = (typeof ApprovalDecision)[keyof typeof ApprovalDecision];
170
- export declare const OrganizationType: {
171
- readonly PLATFORM: "PLATFORM";
172
- readonly BANK: "BANK";
173
- readonly DEVELOPER: "DEVELOPER";
174
- readonly LEGAL: "LEGAL";
175
- readonly INSURER: "INSURER";
176
- readonly GOVERNMENT: "GOVERNMENT";
177
- };
178
- export type OrganizationType = (typeof OrganizationType)[keyof typeof OrganizationType];
179
170
  export declare const OrganizationStatus: {
180
171
  readonly PENDING: "PENDING";
181
172
  readonly ACTIVE: "ACTIVE";
@@ -183,13 +174,6 @@ export declare const OrganizationStatus: {
183
174
  readonly INACTIVE: "INACTIVE";
184
175
  };
185
176
  export type OrganizationStatus = (typeof OrganizationStatus)[keyof typeof OrganizationStatus];
186
- export declare const OrganizationRole: {
187
- readonly ADMIN: "ADMIN";
188
- readonly MANAGER: "MANAGER";
189
- readonly OFFICER: "OFFICER";
190
- readonly VIEWER: "VIEWER";
191
- };
192
- export type OrganizationRole = (typeof OrganizationRole)[keyof typeof OrganizationRole];
193
177
  export declare const TerminationType: {
194
178
  readonly BUYER_WITHDRAWAL: "BUYER_WITHDRAWAL";
195
179
  readonly SELLER_WITHDRAWAL: "SELLER_WITHDRAWAL";
@@ -227,16 +211,6 @@ export declare const CompletionCriterion: {
227
211
  readonly STEPS_COMPLETED: "STEPS_COMPLETED";
228
212
  };
229
213
  export type CompletionCriterion = (typeof CompletionCriterion)[keyof typeof CompletionCriterion];
230
- export declare const ReviewParty: {
231
- readonly INTERNAL: "INTERNAL";
232
- readonly BANK: "BANK";
233
- readonly DEVELOPER: "DEVELOPER";
234
- readonly LEGAL: "LEGAL";
235
- readonly GOVERNMENT: "GOVERNMENT";
236
- readonly INSURER: "INSURER";
237
- readonly CUSTOMER: "CUSTOMER";
238
- };
239
- export type ReviewParty = (typeof ReviewParty)[keyof typeof ReviewParty];
240
214
  export declare const ReviewDecision: {
241
215
  readonly PENDING: "PENDING";
242
216
  readonly APPROVED: "APPROVED";
@@ -430,14 +404,6 @@ export declare const QuestionCategory: {
430
404
  readonly CUSTOM: "CUSTOM";
431
405
  };
432
406
  export type QuestionCategory = (typeof QuestionCategory)[keyof typeof QuestionCategory];
433
- export declare const ApplicationOrganizationRole: {
434
- readonly DEVELOPER: "DEVELOPER";
435
- readonly LENDER: "LENDER";
436
- readonly LEGAL: "LEGAL";
437
- readonly INSURER: "INSURER";
438
- readonly GOVERNMENT: "GOVERNMENT";
439
- };
440
- export type ApplicationOrganizationRole = (typeof ApplicationOrganizationRole)[keyof typeof ApplicationOrganizationRole];
441
407
  export declare const ApplicationOrganizationStatus: {
442
408
  readonly PENDING: "PENDING";
443
409
  readonly ACTIVE: "ACTIVE";
@@ -157,26 +157,12 @@ export const ApprovalDecision = {
157
157
  REJECTED: 'REJECTED',
158
158
  REQUEST_CHANGES: 'REQUEST_CHANGES'
159
159
  };
160
- export const OrganizationType = {
161
- PLATFORM: 'PLATFORM',
162
- BANK: 'BANK',
163
- DEVELOPER: 'DEVELOPER',
164
- LEGAL: 'LEGAL',
165
- INSURER: 'INSURER',
166
- GOVERNMENT: 'GOVERNMENT'
167
- };
168
160
  export const OrganizationStatus = {
169
161
  PENDING: 'PENDING',
170
162
  ACTIVE: 'ACTIVE',
171
163
  SUSPENDED: 'SUSPENDED',
172
164
  INACTIVE: 'INACTIVE'
173
165
  };
174
- export const OrganizationRole = {
175
- ADMIN: 'ADMIN',
176
- MANAGER: 'MANAGER',
177
- OFFICER: 'OFFICER',
178
- VIEWER: 'VIEWER'
179
- };
180
166
  export const TerminationType = {
181
167
  BUYER_WITHDRAWAL: 'BUYER_WITHDRAWAL',
182
168
  SELLER_WITHDRAWAL: 'SELLER_WITHDRAWAL',
@@ -210,15 +196,6 @@ export const CompletionCriterion = {
210
196
  PAYMENT_AMOUNT: 'PAYMENT_AMOUNT',
211
197
  STEPS_COMPLETED: 'STEPS_COMPLETED'
212
198
  };
213
- export const ReviewParty = {
214
- INTERNAL: 'INTERNAL',
215
- BANK: 'BANK',
216
- DEVELOPER: 'DEVELOPER',
217
- LEGAL: 'LEGAL',
218
- GOVERNMENT: 'GOVERNMENT',
219
- INSURER: 'INSURER',
220
- CUSTOMER: 'CUSTOMER'
221
- };
222
199
  export const ReviewDecision = {
223
200
  PENDING: 'PENDING',
224
201
  APPROVED: 'APPROVED',
@@ -393,13 +370,6 @@ export const QuestionCategory = {
393
370
  ASSETS: 'ASSETS',
394
371
  CUSTOM: 'CUSTOM'
395
372
  };
396
- export const ApplicationOrganizationRole = {
397
- DEVELOPER: 'DEVELOPER',
398
- LENDER: 'LENDER',
399
- LEGAL: 'LEGAL',
400
- INSURER: 'INSURER',
401
- GOVERNMENT: 'GOVERNMENT'
402
- };
403
373
  export const ApplicationOrganizationStatus = {
404
374
  PENDING: 'PENDING',
405
375
  ACTIVE: 'ACTIVE',
@@ -9,8 +9,8 @@ export interface PrismaClientConstructor {
9
9
  * @example
10
10
  * ```
11
11
  * const prisma = new PrismaClient()
12
- * // Fetch zero or more Users
13
- * const users = await prisma.user.findMany()
12
+ * // Fetch zero or more OrganizationTypes
13
+ * const organizationTypes = await prisma.organizationType.findMany()
14
14
  * ```
15
15
  *
16
16
  * Read more in our [docs](https://pris.ly/d/client).
@@ -26,8 +26,8 @@ export interface PrismaClientConstructor {
26
26
  * @example
27
27
  * ```
28
28
  * const prisma = new PrismaClient()
29
- * // Fetch zero or more Users
30
- * const users = await prisma.user.findMany()
29
+ * // Fetch zero or more OrganizationTypes
30
+ * const organizationTypes = await prisma.organizationType.findMany()
31
31
  * ```
32
32
  *
33
33
  * Read more in our [docs](https://pris.ly/d/client).
@@ -112,13 +112,35 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
112
112
  extArgs: ExtArgs;
113
113
  }>>;
114
114
  /**
115
- * `prisma.user`: Exposes CRUD operations for the **User** model.
115
+ * `prisma.organizationType`: Exposes CRUD operations for the **OrganizationType** model.
116
116
  * Example usage:
117
117
  * ```ts
118
- * // Fetch zero or more Users
119
- * const users = await prisma.user.findMany()
118
+ * // Fetch zero or more OrganizationTypes
119
+ * const organizationTypes = await prisma.organizationType.findMany()
120
120
  * ```
121
121
  */
122
+ get organizationType(): Prisma.OrganizationTypeDelegate<ExtArgs, {
123
+ omit: OmitOpts;
124
+ }>;
125
+ /**
126
+ * `prisma.organizationTypeAssignment`: Exposes CRUD operations for the **OrganizationTypeAssignment** model.
127
+ * Example usage:
128
+ * ```ts
129
+ * // Fetch zero or more OrganizationTypeAssignments
130
+ * const organizationTypeAssignments = await prisma.organizationTypeAssignment.findMany()
131
+ * ```
132
+ */
133
+ get organizationTypeAssignment(): Prisma.OrganizationTypeAssignmentDelegate<ExtArgs, {
134
+ omit: OmitOpts;
135
+ }>;
136
+ /**
137
+ * `prisma.user`: Exposes CRUD operations for the **User** model.
138
+ * Example usage:
139
+ * ```ts
140
+ * // Fetch zero or more Users
141
+ * const users = await prisma.user.findMany()
142
+ * ```
143
+ */
122
144
  get user(): Prisma.UserDelegate<ExtArgs, {
123
145
  omit: OmitOpts;
124
146
  }>;