freemium-survey-components 2.0.475 → 2.0.476
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/lib/types/types.d.ts +15 -6
- package/package.json +1 -1
package/lib/types/types.d.ts
CHANGED
|
@@ -164,6 +164,7 @@ export type SurveyQuestionTypeInfo = {
|
|
|
164
164
|
file_field?: FileFieldTypes | null;
|
|
165
165
|
text_field?: TextFieldType | null;
|
|
166
166
|
contact_form?: ContactFormQuestionType | null;
|
|
167
|
+
risk_settings?: QuestionRiskSettings | null;
|
|
167
168
|
};
|
|
168
169
|
export type ContactFormQuestionType = {
|
|
169
170
|
layout?: 'VERTICAL' | 'HORIZONTAL';
|
|
@@ -306,13 +307,21 @@ export type FooterAlignmentType = Extract<AlignmentType, 'left' | 'center' | 'ri
|
|
|
306
307
|
export type MobileContentLayoutType = Extract<ContentLayoutType, 'FULL' | 'TOP' | 'NO'>;
|
|
307
308
|
export type DesktopContentLayoutType = Extract<ContentLayoutType, 'FULL' | 'TOP' | 'LEFT' | 'RIGHT'>;
|
|
308
309
|
export type ContentAlignmentType = Extract<AlignmentType, 'left' | 'center' | 'right'>;
|
|
309
|
-
export
|
|
310
|
+
export interface SurveyRiskSettings {
|
|
310
311
|
associated_policy_ids?: string[];
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
weight_distribution?: {
|
|
313
|
+
is_enabled?: boolean;
|
|
314
|
+
max_total_weight?: number | null;
|
|
314
315
|
};
|
|
315
|
-
}
|
|
316
|
+
}
|
|
317
|
+
export interface RiskScoreRule {
|
|
318
|
+
choice_id: string | null;
|
|
319
|
+
score: number;
|
|
320
|
+
}
|
|
321
|
+
export interface QuestionRiskSettings {
|
|
322
|
+
weight?: number | null;
|
|
323
|
+
score_rules?: RiskScoreRule[];
|
|
324
|
+
}
|
|
316
325
|
export type SurveyMetaType = {
|
|
317
326
|
is_default?: boolean | null;
|
|
318
327
|
branch_separate_page?: boolean | null;
|
|
@@ -339,7 +348,6 @@ export type SurveyMetaType = {
|
|
|
339
348
|
};
|
|
340
349
|
is_reordered?: boolean;
|
|
341
350
|
unsupported_channels?: PreviewChannelType[];
|
|
342
|
-
risk_settings?: RiskSettings;
|
|
343
351
|
};
|
|
344
352
|
export type SurveyBlockCategoryType = {
|
|
345
353
|
id?: string | null;
|
|
@@ -497,6 +505,7 @@ export type SurveyType = {
|
|
|
497
505
|
survey_version_id?: string | null;
|
|
498
506
|
created_by?: string | null;
|
|
499
507
|
updated_by?: string | null;
|
|
508
|
+
risk_settings?: SurveyRiskSettings | null;
|
|
500
509
|
/**
|
|
501
510
|
* @deprecated
|
|
502
511
|
*/
|