@valentine-efagene/qshelter-common 2.0.103 → 2.0.105
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.
- package/dist/generated/client/browser.d.ts +10 -0
- package/dist/generated/client/client.d.ts +10 -0
- package/dist/generated/client/commonInputTypes.d.ts +90 -0
- package/dist/generated/client/enums.d.ts +34 -0
- package/dist/generated/client/enums.js +31 -0
- package/dist/generated/client/internal/class.d.ts +22 -0
- package/dist/generated/client/internal/class.js +2 -2
- package/dist/generated/client/internal/prismaNamespace.d.ts +208 -1
- package/dist/generated/client/internal/prismaNamespace.js +57 -0
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +61 -0
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +57 -0
- package/dist/generated/client/models/PropertyPaymentMethodPhase.d.ts +299 -1
- package/dist/generated/client/models/QuestionnairePhase.d.ts +413 -1
- package/dist/generated/client/models/QuestionnairePlan.d.ts +1844 -0
- package/dist/generated/client/models/QuestionnairePlan.js +1 -0
- package/dist/generated/client/models/QuestionnairePlanQuestion.d.ts +1444 -0
- package/dist/generated/client/models/QuestionnairePlanQuestion.js +1 -0
- package/dist/generated/client/models/Tenant.d.ts +549 -0
- package/dist/generated/client/models/index.d.ts +2 -0
- package/dist/generated/client/models/index.js +2 -0
- package/dist/generated/client/models.d.ts +2 -0
- package/dist/src/prisma/tenant.js +2 -0
- package/package.json +1 -1
- package/prisma/migrations/20260114053042_add_questionnaire_plan/migration.sql +73 -0
- package/prisma/schema.prisma +138 -0
|
@@ -150,6 +150,16 @@ export type DocumentationPlan = Prisma.DocumentationPlanModel;
|
|
|
150
150
|
*
|
|
151
151
|
*/
|
|
152
152
|
export type DocumentationPlanStep = Prisma.DocumentationPlanStepModel;
|
|
153
|
+
/**
|
|
154
|
+
* Model QuestionnairePlan
|
|
155
|
+
*
|
|
156
|
+
*/
|
|
157
|
+
export type QuestionnairePlan = Prisma.QuestionnairePlanModel;
|
|
158
|
+
/**
|
|
159
|
+
* Model QuestionnairePlanQuestion
|
|
160
|
+
*
|
|
161
|
+
*/
|
|
162
|
+
export type QuestionnairePlanQuestion = Prisma.QuestionnairePlanQuestionModel;
|
|
153
163
|
/**
|
|
154
164
|
* Model PaymentPlan
|
|
155
165
|
*
|
|
@@ -167,6 +167,16 @@ export type DocumentationPlan = Prisma.DocumentationPlanModel;
|
|
|
167
167
|
*
|
|
168
168
|
*/
|
|
169
169
|
export type DocumentationPlanStep = Prisma.DocumentationPlanStepModel;
|
|
170
|
+
/**
|
|
171
|
+
* Model QuestionnairePlan
|
|
172
|
+
*
|
|
173
|
+
*/
|
|
174
|
+
export type QuestionnairePlan = Prisma.QuestionnairePlanModel;
|
|
175
|
+
/**
|
|
176
|
+
* Model QuestionnairePlanQuestion
|
|
177
|
+
*
|
|
178
|
+
*/
|
|
179
|
+
export type QuestionnairePlanQuestion = Prisma.QuestionnairePlanQuestionModel;
|
|
170
180
|
/**
|
|
171
181
|
* Model PaymentPlan
|
|
172
182
|
*
|
|
@@ -328,6 +328,51 @@ export type EnumStepTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
328
328
|
_min?: Prisma.NestedEnumStepTypeFilter<$PrismaModel>;
|
|
329
329
|
_max?: Prisma.NestedEnumStepTypeFilter<$PrismaModel>;
|
|
330
330
|
};
|
|
331
|
+
export type EnumScoringStrategyFilter<$PrismaModel = never> = {
|
|
332
|
+
equals?: $Enums.ScoringStrategy | Prisma.EnumScoringStrategyFieldRefInput<$PrismaModel>;
|
|
333
|
+
in?: $Enums.ScoringStrategy[];
|
|
334
|
+
notIn?: $Enums.ScoringStrategy[];
|
|
335
|
+
not?: Prisma.NestedEnumScoringStrategyFilter<$PrismaModel> | $Enums.ScoringStrategy;
|
|
336
|
+
};
|
|
337
|
+
export type EnumQuestionnaireCategoryFilter<$PrismaModel = never> = {
|
|
338
|
+
equals?: $Enums.QuestionnaireCategory | Prisma.EnumQuestionnaireCategoryFieldRefInput<$PrismaModel>;
|
|
339
|
+
in?: $Enums.QuestionnaireCategory[];
|
|
340
|
+
notIn?: $Enums.QuestionnaireCategory[];
|
|
341
|
+
not?: Prisma.NestedEnumQuestionnaireCategoryFilter<$PrismaModel> | $Enums.QuestionnaireCategory;
|
|
342
|
+
};
|
|
343
|
+
export type EnumScoringStrategyWithAggregatesFilter<$PrismaModel = never> = {
|
|
344
|
+
equals?: $Enums.ScoringStrategy | Prisma.EnumScoringStrategyFieldRefInput<$PrismaModel>;
|
|
345
|
+
in?: $Enums.ScoringStrategy[];
|
|
346
|
+
notIn?: $Enums.ScoringStrategy[];
|
|
347
|
+
not?: Prisma.NestedEnumScoringStrategyWithAggregatesFilter<$PrismaModel> | $Enums.ScoringStrategy;
|
|
348
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
349
|
+
_min?: Prisma.NestedEnumScoringStrategyFilter<$PrismaModel>;
|
|
350
|
+
_max?: Prisma.NestedEnumScoringStrategyFilter<$PrismaModel>;
|
|
351
|
+
};
|
|
352
|
+
export type EnumQuestionnaireCategoryWithAggregatesFilter<$PrismaModel = never> = {
|
|
353
|
+
equals?: $Enums.QuestionnaireCategory | Prisma.EnumQuestionnaireCategoryFieldRefInput<$PrismaModel>;
|
|
354
|
+
in?: $Enums.QuestionnaireCategory[];
|
|
355
|
+
notIn?: $Enums.QuestionnaireCategory[];
|
|
356
|
+
not?: Prisma.NestedEnumQuestionnaireCategoryWithAggregatesFilter<$PrismaModel> | $Enums.QuestionnaireCategory;
|
|
357
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
358
|
+
_min?: Prisma.NestedEnumQuestionnaireCategoryFilter<$PrismaModel>;
|
|
359
|
+
_max?: Prisma.NestedEnumQuestionnaireCategoryFilter<$PrismaModel>;
|
|
360
|
+
};
|
|
361
|
+
export type EnumQuestionTypeFilter<$PrismaModel = never> = {
|
|
362
|
+
equals?: $Enums.QuestionType | Prisma.EnumQuestionTypeFieldRefInput<$PrismaModel>;
|
|
363
|
+
in?: $Enums.QuestionType[];
|
|
364
|
+
notIn?: $Enums.QuestionType[];
|
|
365
|
+
not?: Prisma.NestedEnumQuestionTypeFilter<$PrismaModel> | $Enums.QuestionType;
|
|
366
|
+
};
|
|
367
|
+
export type EnumQuestionTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
368
|
+
equals?: $Enums.QuestionType | Prisma.EnumQuestionTypeFieldRefInput<$PrismaModel>;
|
|
369
|
+
in?: $Enums.QuestionType[];
|
|
370
|
+
notIn?: $Enums.QuestionType[];
|
|
371
|
+
not?: Prisma.NestedEnumQuestionTypeWithAggregatesFilter<$PrismaModel> | $Enums.QuestionType;
|
|
372
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
373
|
+
_min?: Prisma.NestedEnumQuestionTypeFilter<$PrismaModel>;
|
|
374
|
+
_max?: Prisma.NestedEnumQuestionTypeFilter<$PrismaModel>;
|
|
375
|
+
};
|
|
331
376
|
export type EnumPaymentFrequencyFilter<$PrismaModel = never> = {
|
|
332
377
|
equals?: $Enums.PaymentFrequency | Prisma.EnumPaymentFrequencyFieldRefInput<$PrismaModel>;
|
|
333
378
|
in?: $Enums.PaymentFrequency[];
|
|
@@ -1177,6 +1222,51 @@ export type NestedEnumStepTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
1177
1222
|
_min?: Prisma.NestedEnumStepTypeFilter<$PrismaModel>;
|
|
1178
1223
|
_max?: Prisma.NestedEnumStepTypeFilter<$PrismaModel>;
|
|
1179
1224
|
};
|
|
1225
|
+
export type NestedEnumScoringStrategyFilter<$PrismaModel = never> = {
|
|
1226
|
+
equals?: $Enums.ScoringStrategy | Prisma.EnumScoringStrategyFieldRefInput<$PrismaModel>;
|
|
1227
|
+
in?: $Enums.ScoringStrategy[];
|
|
1228
|
+
notIn?: $Enums.ScoringStrategy[];
|
|
1229
|
+
not?: Prisma.NestedEnumScoringStrategyFilter<$PrismaModel> | $Enums.ScoringStrategy;
|
|
1230
|
+
};
|
|
1231
|
+
export type NestedEnumQuestionnaireCategoryFilter<$PrismaModel = never> = {
|
|
1232
|
+
equals?: $Enums.QuestionnaireCategory | Prisma.EnumQuestionnaireCategoryFieldRefInput<$PrismaModel>;
|
|
1233
|
+
in?: $Enums.QuestionnaireCategory[];
|
|
1234
|
+
notIn?: $Enums.QuestionnaireCategory[];
|
|
1235
|
+
not?: Prisma.NestedEnumQuestionnaireCategoryFilter<$PrismaModel> | $Enums.QuestionnaireCategory;
|
|
1236
|
+
};
|
|
1237
|
+
export type NestedEnumScoringStrategyWithAggregatesFilter<$PrismaModel = never> = {
|
|
1238
|
+
equals?: $Enums.ScoringStrategy | Prisma.EnumScoringStrategyFieldRefInput<$PrismaModel>;
|
|
1239
|
+
in?: $Enums.ScoringStrategy[];
|
|
1240
|
+
notIn?: $Enums.ScoringStrategy[];
|
|
1241
|
+
not?: Prisma.NestedEnumScoringStrategyWithAggregatesFilter<$PrismaModel> | $Enums.ScoringStrategy;
|
|
1242
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
1243
|
+
_min?: Prisma.NestedEnumScoringStrategyFilter<$PrismaModel>;
|
|
1244
|
+
_max?: Prisma.NestedEnumScoringStrategyFilter<$PrismaModel>;
|
|
1245
|
+
};
|
|
1246
|
+
export type NestedEnumQuestionnaireCategoryWithAggregatesFilter<$PrismaModel = never> = {
|
|
1247
|
+
equals?: $Enums.QuestionnaireCategory | Prisma.EnumQuestionnaireCategoryFieldRefInput<$PrismaModel>;
|
|
1248
|
+
in?: $Enums.QuestionnaireCategory[];
|
|
1249
|
+
notIn?: $Enums.QuestionnaireCategory[];
|
|
1250
|
+
not?: Prisma.NestedEnumQuestionnaireCategoryWithAggregatesFilter<$PrismaModel> | $Enums.QuestionnaireCategory;
|
|
1251
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
1252
|
+
_min?: Prisma.NestedEnumQuestionnaireCategoryFilter<$PrismaModel>;
|
|
1253
|
+
_max?: Prisma.NestedEnumQuestionnaireCategoryFilter<$PrismaModel>;
|
|
1254
|
+
};
|
|
1255
|
+
export type NestedEnumQuestionTypeFilter<$PrismaModel = never> = {
|
|
1256
|
+
equals?: $Enums.QuestionType | Prisma.EnumQuestionTypeFieldRefInput<$PrismaModel>;
|
|
1257
|
+
in?: $Enums.QuestionType[];
|
|
1258
|
+
notIn?: $Enums.QuestionType[];
|
|
1259
|
+
not?: Prisma.NestedEnumQuestionTypeFilter<$PrismaModel> | $Enums.QuestionType;
|
|
1260
|
+
};
|
|
1261
|
+
export type NestedEnumQuestionTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
1262
|
+
equals?: $Enums.QuestionType | Prisma.EnumQuestionTypeFieldRefInput<$PrismaModel>;
|
|
1263
|
+
in?: $Enums.QuestionType[];
|
|
1264
|
+
notIn?: $Enums.QuestionType[];
|
|
1265
|
+
not?: Prisma.NestedEnumQuestionTypeWithAggregatesFilter<$PrismaModel> | $Enums.QuestionType;
|
|
1266
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
1267
|
+
_min?: Prisma.NestedEnumQuestionTypeFilter<$PrismaModel>;
|
|
1268
|
+
_max?: Prisma.NestedEnumQuestionTypeFilter<$PrismaModel>;
|
|
1269
|
+
};
|
|
1180
1270
|
export type NestedEnumPaymentFrequencyFilter<$PrismaModel = never> = {
|
|
1181
1271
|
equals?: $Enums.PaymentFrequency | Prisma.EnumPaymentFrequencyFieldRefInput<$PrismaModel>;
|
|
1182
1272
|
in?: $Enums.PaymentFrequency[];
|
|
@@ -278,6 +278,40 @@ export declare const FieldType: {
|
|
|
278
278
|
readonly FILE: "FILE";
|
|
279
279
|
};
|
|
280
280
|
export type FieldType = (typeof FieldType)[keyof typeof FieldType];
|
|
281
|
+
export declare const QuestionType: {
|
|
282
|
+
readonly TEXT: "TEXT";
|
|
283
|
+
readonly NUMBER: "NUMBER";
|
|
284
|
+
readonly CURRENCY: "CURRENCY";
|
|
285
|
+
readonly DATE: "DATE";
|
|
286
|
+
readonly SELECT: "SELECT";
|
|
287
|
+
readonly MULTI_SELECT: "MULTI_SELECT";
|
|
288
|
+
readonly RADIO: "RADIO";
|
|
289
|
+
readonly CHECKBOX: "CHECKBOX";
|
|
290
|
+
readonly FILE_UPLOAD: "FILE_UPLOAD";
|
|
291
|
+
readonly PHONE: "PHONE";
|
|
292
|
+
readonly EMAIL: "EMAIL";
|
|
293
|
+
readonly ADDRESS: "ADDRESS";
|
|
294
|
+
readonly PERCENTAGE: "PERCENTAGE";
|
|
295
|
+
readonly YEARS_MONTHS: "YEARS_MONTHS";
|
|
296
|
+
};
|
|
297
|
+
export type QuestionType = (typeof QuestionType)[keyof typeof QuestionType];
|
|
298
|
+
export declare const ScoringStrategy: {
|
|
299
|
+
readonly SUM: "SUM";
|
|
300
|
+
readonly AVERAGE: "AVERAGE";
|
|
301
|
+
readonly WEIGHTED_SUM: "WEIGHTED_SUM";
|
|
302
|
+
readonly MIN_ALL: "MIN_ALL";
|
|
303
|
+
readonly CUSTOM: "CUSTOM";
|
|
304
|
+
};
|
|
305
|
+
export type ScoringStrategy = (typeof ScoringStrategy)[keyof typeof ScoringStrategy];
|
|
306
|
+
export declare const QuestionnaireCategory: {
|
|
307
|
+
readonly PREQUALIFICATION: "PREQUALIFICATION";
|
|
308
|
+
readonly AFFORDABILITY: "AFFORDABILITY";
|
|
309
|
+
readonly PROPERTY_INTENT: "PROPERTY_INTENT";
|
|
310
|
+
readonly RISK_ASSESSMENT: "RISK_ASSESSMENT";
|
|
311
|
+
readonly COMPLIANCE: "COMPLIANCE";
|
|
312
|
+
readonly CUSTOM: "CUSTOM";
|
|
313
|
+
};
|
|
314
|
+
export type QuestionnaireCategory = (typeof QuestionnaireCategory)[keyof typeof QuestionnaireCategory];
|
|
281
315
|
export declare const PaymentMethodChangeStatus: {
|
|
282
316
|
readonly PENDING_DOCUMENTS: "PENDING_DOCUMENTS";
|
|
283
317
|
readonly DOCUMENTS_SUBMITTED: "DOCUMENTS_SUBMITTED";
|
|
@@ -257,6 +257,37 @@ export const FieldType = {
|
|
|
257
257
|
RADIO: 'RADIO',
|
|
258
258
|
FILE: 'FILE'
|
|
259
259
|
};
|
|
260
|
+
export const QuestionType = {
|
|
261
|
+
TEXT: 'TEXT',
|
|
262
|
+
NUMBER: 'NUMBER',
|
|
263
|
+
CURRENCY: 'CURRENCY',
|
|
264
|
+
DATE: 'DATE',
|
|
265
|
+
SELECT: 'SELECT',
|
|
266
|
+
MULTI_SELECT: 'MULTI_SELECT',
|
|
267
|
+
RADIO: 'RADIO',
|
|
268
|
+
CHECKBOX: 'CHECKBOX',
|
|
269
|
+
FILE_UPLOAD: 'FILE_UPLOAD',
|
|
270
|
+
PHONE: 'PHONE',
|
|
271
|
+
EMAIL: 'EMAIL',
|
|
272
|
+
ADDRESS: 'ADDRESS',
|
|
273
|
+
PERCENTAGE: 'PERCENTAGE',
|
|
274
|
+
YEARS_MONTHS: 'YEARS_MONTHS'
|
|
275
|
+
};
|
|
276
|
+
export const ScoringStrategy = {
|
|
277
|
+
SUM: 'SUM',
|
|
278
|
+
AVERAGE: 'AVERAGE',
|
|
279
|
+
WEIGHTED_SUM: 'WEIGHTED_SUM',
|
|
280
|
+
MIN_ALL: 'MIN_ALL',
|
|
281
|
+
CUSTOM: 'CUSTOM'
|
|
282
|
+
};
|
|
283
|
+
export const QuestionnaireCategory = {
|
|
284
|
+
PREQUALIFICATION: 'PREQUALIFICATION',
|
|
285
|
+
AFFORDABILITY: 'AFFORDABILITY',
|
|
286
|
+
PROPERTY_INTENT: 'PROPERTY_INTENT',
|
|
287
|
+
RISK_ASSESSMENT: 'RISK_ASSESSMENT',
|
|
288
|
+
COMPLIANCE: 'COMPLIANCE',
|
|
289
|
+
CUSTOM: 'CUSTOM'
|
|
290
|
+
};
|
|
260
291
|
export const PaymentMethodChangeStatus = {
|
|
261
292
|
PENDING_DOCUMENTS: 'PENDING_DOCUMENTS',
|
|
262
293
|
DOCUMENTS_SUBMITTED: 'DOCUMENTS_SUBMITTED',
|
|
@@ -430,6 +430,28 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
|
|
|
430
430
|
get documentationPlanStep(): Prisma.DocumentationPlanStepDelegate<ExtArgs, {
|
|
431
431
|
omit: OmitOpts;
|
|
432
432
|
}>;
|
|
433
|
+
/**
|
|
434
|
+
* `prisma.questionnairePlan`: Exposes CRUD operations for the **QuestionnairePlan** model.
|
|
435
|
+
* Example usage:
|
|
436
|
+
* ```ts
|
|
437
|
+
* // Fetch zero or more QuestionnairePlans
|
|
438
|
+
* const questionnairePlans = await prisma.questionnairePlan.findMany()
|
|
439
|
+
* ```
|
|
440
|
+
*/
|
|
441
|
+
get questionnairePlan(): Prisma.QuestionnairePlanDelegate<ExtArgs, {
|
|
442
|
+
omit: OmitOpts;
|
|
443
|
+
}>;
|
|
444
|
+
/**
|
|
445
|
+
* `prisma.questionnairePlanQuestion`: Exposes CRUD operations for the **QuestionnairePlanQuestion** model.
|
|
446
|
+
* Example usage:
|
|
447
|
+
* ```ts
|
|
448
|
+
* // Fetch zero or more QuestionnairePlanQuestions
|
|
449
|
+
* const questionnairePlanQuestions = await prisma.questionnairePlanQuestion.findMany()
|
|
450
|
+
* ```
|
|
451
|
+
*/
|
|
452
|
+
get questionnairePlanQuestion(): Prisma.QuestionnairePlanQuestionDelegate<ExtArgs, {
|
|
453
|
+
omit: OmitOpts;
|
|
454
|
+
}>;
|
|
433
455
|
/**
|
|
434
456
|
* `prisma.paymentPlan`: Exposes CRUD operations for the **PaymentPlan** model.
|
|
435
457
|
* Example usage:
|