@clxmedia/types 1.0.30 → 1.0.32
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.
|
@@ -150,6 +150,8 @@ export type CLXFileFormField = CLXFormField & {
|
|
|
150
150
|
export type CLXContactFormFieldBase = CLXFormField & {
|
|
151
151
|
type: 'contact';
|
|
152
152
|
response_type: 'CONTACT' | 'CONTACT_ARRAY';
|
|
153
|
+
email_required?: boolean;
|
|
154
|
+
phone_required?: boolean;
|
|
153
155
|
allow_multiple: boolean;
|
|
154
156
|
};
|
|
155
157
|
export type CLXContactFormField = CLXContactFormFieldBase & {
|
|
@@ -278,16 +280,20 @@ export type CLXFormRuleNumberComparisonInstance = CLXFormRuleInstanceBase & {
|
|
|
278
280
|
comparisonType: 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
|
|
279
281
|
};
|
|
280
282
|
export type CLXFormRuleInstance = CLXFormRuleStringComparisonInstance | CLXFormRuleStringInListInstance | CLXFormRuleFileExistsInstance | CLXFormRuleDateComparisonInstance | CLXFormRuleStringListComparisonInstance | CLXFormRuleBooleanEqualsInstance | CLXFormRuleNumberComparisonInstance;
|
|
283
|
+
export type CLXFormRuleSet = {
|
|
284
|
+
rules: (CLXFormRuleDefinition | CLXFormRuleSet)[];
|
|
285
|
+
combinator: 'and' | 'or';
|
|
286
|
+
};
|
|
287
|
+
export type CLXFormRuleConditions = {
|
|
288
|
+
max_select_override?: CLXConditionalOverride[];
|
|
289
|
+
ruleset: CLXFormRuleSet;
|
|
290
|
+
};
|
|
281
291
|
export type CLXFormQuestionLayout = {
|
|
282
292
|
id: number;
|
|
283
293
|
form_question_slug: string;
|
|
284
294
|
is_required: boolean;
|
|
285
295
|
is_enabled: boolean;
|
|
286
|
-
conditions:
|
|
287
|
-
max_select_override?: CLXConditionalOverride[];
|
|
288
|
-
rules: CLXFormRuleDefinition[];
|
|
289
|
-
combinator: 'and' | 'or';
|
|
290
|
-
};
|
|
296
|
+
conditions: CLXFormRuleConditions;
|
|
291
297
|
is_complete?: boolean;
|
|
292
298
|
};
|
|
293
299
|
export type CLXFormSection = {
|