@valentine-efagene/qshelter-common 2.0.120 → 2.0.122

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 (35) hide show
  1. package/dist/generated/client/browser.d.ts +11 -0
  2. package/dist/generated/client/client.d.ts +11 -0
  3. package/dist/generated/client/commonInputTypes.d.ts +170 -0
  4. package/dist/generated/client/enums.d.ts +58 -0
  5. package/dist/generated/client/enums.js +52 -0
  6. package/dist/generated/client/internal/class.d.ts +22 -0
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +240 -2
  9. package/dist/generated/client/internal/prismaNamespace.js +82 -2
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +85 -1
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +82 -2
  12. package/dist/generated/client/models/DocumentationPhase.d.ts +243 -1
  13. package/dist/generated/client/models/DocumentationStep.d.ts +121 -1
  14. package/dist/generated/client/models/Organization.d.ts +1930 -0
  15. package/dist/generated/client/models/Organization.js +1 -0
  16. package/dist/generated/client/models/OrganizationMember.d.ts +1598 -0
  17. package/dist/generated/client/models/OrganizationMember.js +1 -0
  18. package/dist/generated/client/models/QuestionnairePhase.d.ts +165 -0
  19. package/dist/generated/client/models/QuestionnairePlanQuestion.d.ts +25 -22
  20. package/dist/generated/client/models/Tenant.d.ts +555 -0
  21. package/dist/generated/client/models/User.d.ts +391 -0
  22. package/dist/generated/client/models.d.ts +2 -0
  23. package/dist/src/middleware/auth-context.d.ts +30 -1
  24. package/dist/src/middleware/auth-context.js +34 -1
  25. package/dist/src/prisma/tenant.js +2 -0
  26. package/dist/src/utils/condition-operators.d.ts +5 -23
  27. package/dist/src/utils/condition-operators.js +6 -19
  28. package/dist/src/utils/documentation-enums.d.ts +6 -0
  29. package/dist/src/utils/documentation-enums.js +6 -0
  30. package/package.json +1 -1
  31. package/prisma/migrations/20260115123703_add_organizations/migration.sql +69 -0
  32. package/prisma/migrations/20260115125519_add_requires_manual_review_to_step/migration.sql +2 -0
  33. package/prisma/migrations/20260115134106_add_conditional_step_support/migration.sql +11 -0
  34. package/prisma/migrations/20260116090633_add_question_category_enum/migration.sql +8 -0
  35. package/prisma/schema.prisma +191 -1
@@ -35,6 +35,17 @@ export type UserRole = Prisma.UserRoleModel;
35
35
  * Enables federated users across multiple tenants with different roles per tenant
36
36
  */
37
37
  export type TenantMembership = Prisma.TenantMembershipModel;
38
+ /**
39
+ * Model Organization
40
+ * Organization: Banks, Developers, and other partner entities
41
+ */
42
+ export type Organization = Prisma.OrganizationModel;
43
+ /**
44
+ * Model OrganizationMember
45
+ * OrganizationMember: Links users to organizations with roles and permissions
46
+ * Supports maker-checker workflows via canApprove and approvalLimit
47
+ */
48
+ export type OrganizationMember = Prisma.OrganizationMemberModel;
38
49
  /**
39
50
  * Model Tenant
40
51
  *
@@ -52,6 +52,17 @@ export type UserRole = Prisma.UserRoleModel;
52
52
  * Enables federated users across multiple tenants with different roles per tenant
53
53
  */
54
54
  export type TenantMembership = Prisma.TenantMembershipModel;
55
+ /**
56
+ * Model Organization
57
+ * Organization: Banks, Developers, and other partner entities
58
+ */
59
+ export type Organization = Prisma.OrganizationModel;
60
+ /**
61
+ * Model OrganizationMember
62
+ * OrganizationMember: Links users to organizations with roles and permissions
63
+ * Supports maker-checker workflows via canApprove and approvalLimit
64
+ */
65
+ export type OrganizationMember = Prisma.OrganizationMemberModel;
55
66
  /**
56
67
  * Model Tenant
57
68
  *
@@ -176,6 +176,76 @@ 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
+ export type EnumOrganizationStatusFilter<$PrismaModel = never> = {
186
+ equals?: $Enums.OrganizationStatus | Prisma.EnumOrganizationStatusFieldRefInput<$PrismaModel>;
187
+ in?: $Enums.OrganizationStatus[];
188
+ notIn?: $Enums.OrganizationStatus[];
189
+ not?: Prisma.NestedEnumOrganizationStatusFilter<$PrismaModel> | $Enums.OrganizationStatus;
190
+ };
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
+ export type EnumOrganizationStatusWithAggregatesFilter<$PrismaModel = never> = {
201
+ equals?: $Enums.OrganizationStatus | Prisma.EnumOrganizationStatusFieldRefInput<$PrismaModel>;
202
+ in?: $Enums.OrganizationStatus[];
203
+ notIn?: $Enums.OrganizationStatus[];
204
+ not?: Prisma.NestedEnumOrganizationStatusWithAggregatesFilter<$PrismaModel> | $Enums.OrganizationStatus;
205
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
206
+ _min?: Prisma.NestedEnumOrganizationStatusFilter<$PrismaModel>;
207
+ _max?: Prisma.NestedEnumOrganizationStatusFilter<$PrismaModel>;
208
+ };
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
+ };
179
249
  export type FloatFilter<$PrismaModel = never> = {
180
250
  equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
181
251
  in?: number[];
@@ -409,6 +479,12 @@ export type EnumQuestionTypeFilter<$PrismaModel = never> = {
409
479
  notIn?: $Enums.QuestionType[];
410
480
  not?: Prisma.NestedEnumQuestionTypeFilter<$PrismaModel> | $Enums.QuestionType;
411
481
  };
482
+ export type EnumQuestionCategoryNullableFilter<$PrismaModel = never> = {
483
+ equals?: $Enums.QuestionCategory | Prisma.EnumQuestionCategoryFieldRefInput<$PrismaModel> | null;
484
+ in?: $Enums.QuestionCategory[] | null;
485
+ notIn?: $Enums.QuestionCategory[] | null;
486
+ not?: Prisma.NestedEnumQuestionCategoryNullableFilter<$PrismaModel> | $Enums.QuestionCategory | null;
487
+ };
412
488
  export type EnumQuestionTypeWithAggregatesFilter<$PrismaModel = never> = {
413
489
  equals?: $Enums.QuestionType | Prisma.EnumQuestionTypeFieldRefInput<$PrismaModel>;
414
490
  in?: $Enums.QuestionType[];
@@ -418,6 +494,15 @@ export type EnumQuestionTypeWithAggregatesFilter<$PrismaModel = never> = {
418
494
  _min?: Prisma.NestedEnumQuestionTypeFilter<$PrismaModel>;
419
495
  _max?: Prisma.NestedEnumQuestionTypeFilter<$PrismaModel>;
420
496
  };
497
+ export type EnumQuestionCategoryNullableWithAggregatesFilter<$PrismaModel = never> = {
498
+ equals?: $Enums.QuestionCategory | Prisma.EnumQuestionCategoryFieldRefInput<$PrismaModel> | null;
499
+ in?: $Enums.QuestionCategory[] | null;
500
+ notIn?: $Enums.QuestionCategory[] | null;
501
+ not?: Prisma.NestedEnumQuestionCategoryNullableWithAggregatesFilter<$PrismaModel> | $Enums.QuestionCategory | null;
502
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
503
+ _min?: Prisma.NestedEnumQuestionCategoryNullableFilter<$PrismaModel>;
504
+ _max?: Prisma.NestedEnumQuestionCategoryNullableFilter<$PrismaModel>;
505
+ };
421
506
  export type EnumPaymentFrequencyFilter<$PrismaModel = never> = {
422
507
  equals?: $Enums.PaymentFrequency | Prisma.EnumPaymentFrequencyFieldRefInput<$PrismaModel>;
423
508
  in?: $Enums.PaymentFrequency[];
@@ -1155,6 +1240,76 @@ export type NestedEnumPermissionEffectWithAggregatesFilter<$PrismaModel = never>
1155
1240
  _min?: Prisma.NestedEnumPermissionEffectFilter<$PrismaModel>;
1156
1241
  _max?: Prisma.NestedEnumPermissionEffectFilter<$PrismaModel>;
1157
1242
  };
1243
+ export type NestedEnumOrganizationTypeFilter<$PrismaModel = never> = {
1244
+ equals?: $Enums.OrganizationType | Prisma.EnumOrganizationTypeFieldRefInput<$PrismaModel>;
1245
+ in?: $Enums.OrganizationType[];
1246
+ notIn?: $Enums.OrganizationType[];
1247
+ not?: Prisma.NestedEnumOrganizationTypeFilter<$PrismaModel> | $Enums.OrganizationType;
1248
+ };
1249
+ export type NestedEnumOrganizationStatusFilter<$PrismaModel = never> = {
1250
+ equals?: $Enums.OrganizationStatus | Prisma.EnumOrganizationStatusFieldRefInput<$PrismaModel>;
1251
+ in?: $Enums.OrganizationStatus[];
1252
+ notIn?: $Enums.OrganizationStatus[];
1253
+ not?: Prisma.NestedEnumOrganizationStatusFilter<$PrismaModel> | $Enums.OrganizationStatus;
1254
+ };
1255
+ export type NestedEnumOrganizationTypeWithAggregatesFilter<$PrismaModel = never> = {
1256
+ equals?: $Enums.OrganizationType | Prisma.EnumOrganizationTypeFieldRefInput<$PrismaModel>;
1257
+ in?: $Enums.OrganizationType[];
1258
+ notIn?: $Enums.OrganizationType[];
1259
+ not?: Prisma.NestedEnumOrganizationTypeWithAggregatesFilter<$PrismaModel> | $Enums.OrganizationType;
1260
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
1261
+ _min?: Prisma.NestedEnumOrganizationTypeFilter<$PrismaModel>;
1262
+ _max?: Prisma.NestedEnumOrganizationTypeFilter<$PrismaModel>;
1263
+ };
1264
+ export type NestedEnumOrganizationStatusWithAggregatesFilter<$PrismaModel = never> = {
1265
+ equals?: $Enums.OrganizationStatus | Prisma.EnumOrganizationStatusFieldRefInput<$PrismaModel>;
1266
+ in?: $Enums.OrganizationStatus[];
1267
+ notIn?: $Enums.OrganizationStatus[];
1268
+ not?: Prisma.NestedEnumOrganizationStatusWithAggregatesFilter<$PrismaModel> | $Enums.OrganizationStatus;
1269
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
1270
+ _min?: Prisma.NestedEnumOrganizationStatusFilter<$PrismaModel>;
1271
+ _max?: Prisma.NestedEnumOrganizationStatusFilter<$PrismaModel>;
1272
+ };
1273
+ export type NestedEnumOrganizationRoleFilter<$PrismaModel = never> = {
1274
+ equals?: $Enums.OrganizationRole | Prisma.EnumOrganizationRoleFieldRefInput<$PrismaModel>;
1275
+ in?: $Enums.OrganizationRole[];
1276
+ notIn?: $Enums.OrganizationRole[];
1277
+ not?: Prisma.NestedEnumOrganizationRoleFilter<$PrismaModel> | $Enums.OrganizationRole;
1278
+ };
1279
+ export type NestedDecimalNullableFilter<$PrismaModel = never> = {
1280
+ equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null;
1281
+ in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null;
1282
+ notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null;
1283
+ lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1284
+ lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1285
+ gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1286
+ gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1287
+ not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
1288
+ };
1289
+ export type NestedEnumOrganizationRoleWithAggregatesFilter<$PrismaModel = never> = {
1290
+ equals?: $Enums.OrganizationRole | Prisma.EnumOrganizationRoleFieldRefInput<$PrismaModel>;
1291
+ in?: $Enums.OrganizationRole[];
1292
+ notIn?: $Enums.OrganizationRole[];
1293
+ not?: Prisma.NestedEnumOrganizationRoleWithAggregatesFilter<$PrismaModel> | $Enums.OrganizationRole;
1294
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
1295
+ _min?: Prisma.NestedEnumOrganizationRoleFilter<$PrismaModel>;
1296
+ _max?: Prisma.NestedEnumOrganizationRoleFilter<$PrismaModel>;
1297
+ };
1298
+ export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = {
1299
+ equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel> | null;
1300
+ in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null;
1301
+ notIn?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[] | null;
1302
+ lt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1303
+ lte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1304
+ gt?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1305
+ gte?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>;
1306
+ not?: Prisma.NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null;
1307
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
1308
+ _avg?: Prisma.NestedDecimalNullableFilter<$PrismaModel>;
1309
+ _sum?: Prisma.NestedDecimalNullableFilter<$PrismaModel>;
1310
+ _min?: Prisma.NestedDecimalNullableFilter<$PrismaModel>;
1311
+ _max?: Prisma.NestedDecimalNullableFilter<$PrismaModel>;
1312
+ };
1158
1313
  export type NestedFloatFilter<$PrismaModel = never> = {
1159
1314
  equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
1160
1315
  in?: number[];
@@ -1348,6 +1503,12 @@ export type NestedEnumQuestionTypeFilter<$PrismaModel = never> = {
1348
1503
  notIn?: $Enums.QuestionType[];
1349
1504
  not?: Prisma.NestedEnumQuestionTypeFilter<$PrismaModel> | $Enums.QuestionType;
1350
1505
  };
1506
+ export type NestedEnumQuestionCategoryNullableFilter<$PrismaModel = never> = {
1507
+ equals?: $Enums.QuestionCategory | Prisma.EnumQuestionCategoryFieldRefInput<$PrismaModel> | null;
1508
+ in?: $Enums.QuestionCategory[] | null;
1509
+ notIn?: $Enums.QuestionCategory[] | null;
1510
+ not?: Prisma.NestedEnumQuestionCategoryNullableFilter<$PrismaModel> | $Enums.QuestionCategory | null;
1511
+ };
1351
1512
  export type NestedEnumQuestionTypeWithAggregatesFilter<$PrismaModel = never> = {
1352
1513
  equals?: $Enums.QuestionType | Prisma.EnumQuestionTypeFieldRefInput<$PrismaModel>;
1353
1514
  in?: $Enums.QuestionType[];
@@ -1357,6 +1518,15 @@ export type NestedEnumQuestionTypeWithAggregatesFilter<$PrismaModel = never> = {
1357
1518
  _min?: Prisma.NestedEnumQuestionTypeFilter<$PrismaModel>;
1358
1519
  _max?: Prisma.NestedEnumQuestionTypeFilter<$PrismaModel>;
1359
1520
  };
1521
+ export type NestedEnumQuestionCategoryNullableWithAggregatesFilter<$PrismaModel = never> = {
1522
+ equals?: $Enums.QuestionCategory | Prisma.EnumQuestionCategoryFieldRefInput<$PrismaModel> | null;
1523
+ in?: $Enums.QuestionCategory[] | null;
1524
+ notIn?: $Enums.QuestionCategory[] | null;
1525
+ not?: Prisma.NestedEnumQuestionCategoryNullableWithAggregatesFilter<$PrismaModel> | $Enums.QuestionCategory | null;
1526
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
1527
+ _min?: Prisma.NestedEnumQuestionCategoryNullableFilter<$PrismaModel>;
1528
+ _max?: Prisma.NestedEnumQuestionCategoryNullableFilter<$PrismaModel>;
1529
+ };
1360
1530
  export type NestedEnumPaymentFrequencyFilter<$PrismaModel = never> = {
1361
1531
  equals?: $Enums.PaymentFrequency | Prisma.EnumPaymentFrequencyFieldRefInput<$PrismaModel>;
1362
1532
  in?: $Enums.PaymentFrequency[];
@@ -34,6 +34,17 @@ export declare const ApplicationStatus: {
34
34
  readonly SUPERSEDED: "SUPERSEDED";
35
35
  };
36
36
  export type ApplicationStatus = (typeof ApplicationStatus)[keyof typeof ApplicationStatus];
37
+ export declare const ApplicationTrigger: {
38
+ readonly SUBMIT: "SUBMIT";
39
+ readonly APPROVE: "APPROVE";
40
+ readonly REJECT: "REJECT";
41
+ readonly CANCEL: "CANCEL";
42
+ readonly COMPLETE: "COMPLETE";
43
+ readonly TERMINATE: "TERMINATE";
44
+ readonly TRANSFER: "TRANSFER";
45
+ readonly SUPERSEDE: "SUPERSEDE";
46
+ };
47
+ export type ApplicationTrigger = (typeof ApplicationTrigger)[keyof typeof ApplicationTrigger];
37
48
  export declare const TransferRequestStatus: {
38
49
  readonly PENDING: "PENDING";
39
50
  readonly APPROVED: "APPROVED";
@@ -98,6 +109,19 @@ export declare const StepStatus: {
98
109
  readonly AWAITING_REVIEW: "AWAITING_REVIEW";
99
110
  };
100
111
  export type StepStatus = (typeof StepStatus)[keyof typeof StepStatus];
112
+ export declare const ConditionOperator: {
113
+ readonly EQUALS: "EQUALS";
114
+ readonly NOT_EQUALS: "NOT_EQUALS";
115
+ readonly IN: "IN";
116
+ readonly NOT_IN: "NOT_IN";
117
+ readonly GREATER_THAN: "GREATER_THAN";
118
+ readonly LESS_THAN: "LESS_THAN";
119
+ readonly GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL";
120
+ readonly LESS_THAN_OR_EQUAL: "LESS_THAN_OR_EQUAL";
121
+ readonly EXISTS: "EXISTS";
122
+ readonly NOT_EXISTS: "NOT_EXISTS";
123
+ };
124
+ export type ConditionOperator = (typeof ConditionOperator)[keyof typeof ConditionOperator];
101
125
  export declare const StepTrigger: {
102
126
  readonly ON_COMPLETE: "ON_COMPLETE";
103
127
  readonly ON_REJECT: "ON_REJECT";
@@ -136,6 +160,25 @@ export declare const ApprovalDecision: {
136
160
  readonly REQUEST_CHANGES: "REQUEST_CHANGES";
137
161
  };
138
162
  export type ApprovalDecision = (typeof ApprovalDecision)[keyof typeof ApprovalDecision];
163
+ export declare const OrganizationType: {
164
+ readonly BANK: "BANK";
165
+ readonly DEVELOPER: "DEVELOPER";
166
+ };
167
+ export type OrganizationType = (typeof OrganizationType)[keyof typeof OrganizationType];
168
+ export declare const OrganizationStatus: {
169
+ readonly PENDING: "PENDING";
170
+ readonly ACTIVE: "ACTIVE";
171
+ readonly SUSPENDED: "SUSPENDED";
172
+ readonly INACTIVE: "INACTIVE";
173
+ };
174
+ export type OrganizationStatus = (typeof OrganizationStatus)[keyof typeof OrganizationStatus];
175
+ export declare const OrganizationRole: {
176
+ readonly ADMIN: "ADMIN";
177
+ readonly MANAGER: "MANAGER";
178
+ readonly OFFICER: "OFFICER";
179
+ readonly VIEWER: "VIEWER";
180
+ };
181
+ export type OrganizationRole = (typeof OrganizationRole)[keyof typeof OrganizationRole];
139
182
  export declare const TerminationType: {
140
183
  readonly BUYER_WITHDRAWAL: "BUYER_WITHDRAWAL";
141
184
  readonly SELLER_WITHDRAWAL: "SELLER_WITHDRAWAL";
@@ -335,6 +378,21 @@ export declare const QuestionnaireCategory: {
335
378
  readonly CUSTOM: "CUSTOM";
336
379
  };
337
380
  export type QuestionnaireCategory = (typeof QuestionnaireCategory)[keyof typeof QuestionnaireCategory];
381
+ export declare const QuestionCategory: {
382
+ readonly ELIGIBILITY: "ELIGIBILITY";
383
+ readonly EMPLOYMENT: "EMPLOYMENT";
384
+ readonly INCOME: "INCOME";
385
+ readonly AFFORDABILITY: "AFFORDABILITY";
386
+ readonly EXPENSES: "EXPENSES";
387
+ readonly APPLICATION_TYPE: "APPLICATION_TYPE";
388
+ readonly PERSONAL: "PERSONAL";
389
+ readonly PREFERENCES: "PREFERENCES";
390
+ readonly PROPERTY: "PROPERTY";
391
+ readonly CREDIT: "CREDIT";
392
+ readonly ASSETS: "ASSETS";
393
+ readonly CUSTOM: "CUSTOM";
394
+ };
395
+ export type QuestionCategory = (typeof QuestionCategory)[keyof typeof QuestionCategory];
338
396
  export declare const PaymentMethodChangeStatus: {
339
397
  readonly PENDING_DOCUMENTS: "PENDING_DOCUMENTS";
340
398
  readonly DOCUMENTS_SUBMITTED: "DOCUMENTS_SUBMITTED";
@@ -39,6 +39,16 @@ export const ApplicationStatus = {
39
39
  TRANSFERRED: 'TRANSFERRED',
40
40
  SUPERSEDED: 'SUPERSEDED'
41
41
  };
42
+ export const ApplicationTrigger = {
43
+ SUBMIT: 'SUBMIT',
44
+ APPROVE: 'APPROVE',
45
+ REJECT: 'REJECT',
46
+ CANCEL: 'CANCEL',
47
+ COMPLETE: 'COMPLETE',
48
+ TERMINATE: 'TERMINATE',
49
+ TRANSFER: 'TRANSFER',
50
+ SUPERSEDE: 'SUPERSEDE'
51
+ };
42
52
  export const TransferRequestStatus = {
43
53
  PENDING: 'PENDING',
44
54
  APPROVED: 'APPROVED',
@@ -96,6 +106,18 @@ export const StepStatus = {
96
106
  ACTION_REQUIRED: 'ACTION_REQUIRED',
97
107
  AWAITING_REVIEW: 'AWAITING_REVIEW'
98
108
  };
109
+ export const ConditionOperator = {
110
+ EQUALS: 'EQUALS',
111
+ NOT_EQUALS: 'NOT_EQUALS',
112
+ IN: 'IN',
113
+ NOT_IN: 'NOT_IN',
114
+ GREATER_THAN: 'GREATER_THAN',
115
+ LESS_THAN: 'LESS_THAN',
116
+ GREATER_THAN_OR_EQUAL: 'GREATER_THAN_OR_EQUAL',
117
+ LESS_THAN_OR_EQUAL: 'LESS_THAN_OR_EQUAL',
118
+ EXISTS: 'EXISTS',
119
+ NOT_EXISTS: 'NOT_EXISTS'
120
+ };
99
121
  export const StepTrigger = {
100
122
  ON_COMPLETE: 'ON_COMPLETE',
101
123
  ON_REJECT: 'ON_REJECT',
@@ -129,6 +151,22 @@ export const ApprovalDecision = {
129
151
  REJECTED: 'REJECTED',
130
152
  REQUEST_CHANGES: 'REQUEST_CHANGES'
131
153
  };
154
+ export const OrganizationType = {
155
+ BANK: 'BANK',
156
+ DEVELOPER: 'DEVELOPER'
157
+ };
158
+ export const OrganizationStatus = {
159
+ PENDING: 'PENDING',
160
+ ACTIVE: 'ACTIVE',
161
+ SUSPENDED: 'SUSPENDED',
162
+ INACTIVE: 'INACTIVE'
163
+ };
164
+ export const OrganizationRole = {
165
+ ADMIN: 'ADMIN',
166
+ MANAGER: 'MANAGER',
167
+ OFFICER: 'OFFICER',
168
+ VIEWER: 'VIEWER'
169
+ };
132
170
  export const TerminationType = {
133
171
  BUYER_WITHDRAWAL: 'BUYER_WITHDRAWAL',
134
172
  SELLER_WITHDRAWAL: 'SELLER_WITHDRAWAL',
@@ -308,6 +346,20 @@ export const QuestionnaireCategory = {
308
346
  COMPLIANCE: 'COMPLIANCE',
309
347
  CUSTOM: 'CUSTOM'
310
348
  };
349
+ export const QuestionCategory = {
350
+ ELIGIBILITY: 'ELIGIBILITY',
351
+ EMPLOYMENT: 'EMPLOYMENT',
352
+ INCOME: 'INCOME',
353
+ AFFORDABILITY: 'AFFORDABILITY',
354
+ EXPENSES: 'EXPENSES',
355
+ APPLICATION_TYPE: 'APPLICATION_TYPE',
356
+ PERSONAL: 'PERSONAL',
357
+ PREFERENCES: 'PREFERENCES',
358
+ PROPERTY: 'PROPERTY',
359
+ CREDIT: 'CREDIT',
360
+ ASSETS: 'ASSETS',
361
+ CUSTOM: 'CUSTOM'
362
+ };
311
363
  export const PaymentMethodChangeStatus = {
312
364
  PENDING_DOCUMENTS: 'PENDING_DOCUMENTS',
313
365
  DOCUMENTS_SUBMITTED: 'DOCUMENTS_SUBMITTED',
@@ -177,6 +177,28 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
177
177
  get tenantMembership(): Prisma.TenantMembershipDelegate<ExtArgs, {
178
178
  omit: OmitOpts;
179
179
  }>;
180
+ /**
181
+ * `prisma.organization`: Exposes CRUD operations for the **Organization** model.
182
+ * Example usage:
183
+ * ```ts
184
+ * // Fetch zero or more Organizations
185
+ * const organizations = await prisma.organization.findMany()
186
+ * ```
187
+ */
188
+ get organization(): Prisma.OrganizationDelegate<ExtArgs, {
189
+ omit: OmitOpts;
190
+ }>;
191
+ /**
192
+ * `prisma.organizationMember`: Exposes CRUD operations for the **OrganizationMember** model.
193
+ * Example usage:
194
+ * ```ts
195
+ * // Fetch zero or more OrganizationMembers
196
+ * const organizationMembers = await prisma.organizationMember.findMany()
197
+ * ```
198
+ */
199
+ get organizationMember(): Prisma.OrganizationMemberDelegate<ExtArgs, {
200
+ omit: OmitOpts;
201
+ }>;
180
202
  /**
181
203
  * `prisma.tenant`: Exposes CRUD operations for the **Tenant** model.
182
204
  * Example usage: