@clxmedia/types 1.0.171 → 1.0.172
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.
|
@@ -49,7 +49,7 @@ export type CLXForm = {
|
|
|
49
49
|
settings?: CLXFormSettings;
|
|
50
50
|
};
|
|
51
51
|
export type CLXFormResponseType = 'STRING' | 'NUMBER' | 'STRING_ARRAY' | 'CONTACT' | 'CONTACT_ARRAY' | 'BOOLEAN' | 'FILE' | 'DATE' | 'SCHEDULE' | 'COMPOUND' | 'MULTI_COMPOUND' | 'ANY';
|
|
52
|
-
export type CLXFormFieldType = 'text' | 'textarea' | 'boolean' | 'select' | 'multiselect' | 'file' | 'contact' | 'date' | 'schedule' | 'compound';
|
|
52
|
+
export type CLXFormFieldType = 'text' | 'textarea' | 'credential' | 'boolean' | 'select' | 'multiselect' | 'file' | 'contact' | 'date' | 'schedule' | 'compound';
|
|
53
53
|
export type CLXFormSelectType = 'select' | 'radio' | 'checkbox' | 'freeform';
|
|
54
54
|
export type CLXFormConditionSubjectEntry = {
|
|
55
55
|
value: string;
|
|
@@ -191,6 +191,10 @@ export type CLXFileFormField = CLXFormField & {
|
|
|
191
191
|
max_files?: number;
|
|
192
192
|
allowed_file_types?: CLXFormFieldFileTypes[];
|
|
193
193
|
};
|
|
194
|
+
export type CLXCredentialFormField = CLXFormField & {
|
|
195
|
+
type: 'credential';
|
|
196
|
+
response_type: 'STRING';
|
|
197
|
+
};
|
|
194
198
|
export type CLXContactFormFieldBase = CLXFormField & {
|
|
195
199
|
type: 'contact';
|
|
196
200
|
response_type: 'CONTACT' | 'CONTACT_ARRAY';
|
|
@@ -278,7 +282,7 @@ export type CLXSingleCompoundFormField = CLXFormField & {
|
|
|
278
282
|
compound_fields: CLXCompoundableFormField[];
|
|
279
283
|
};
|
|
280
284
|
export type CLXFormQuestionResponseOptions = {
|
|
281
|
-
field: CLXTextFormField | CLXNumberFormField | CLXDateFormField | CLXScheduleFormField | CLXContactFormField | CLXMultipleContactFormField | CLXSingleCompoundFormField | CLXFileFormField | CLXCompoundFormField | CLXTextAreaFormField | CLXBooleanFormField | CLXSelectFormField | CLXMultiSelectFormField | CLXMultipleTextFormField;
|
|
285
|
+
field: CLXTextFormField | CLXNumberFormField | CLXDateFormField | CLXScheduleFormField | CLXCredentialFormField | CLXContactFormField | CLXMultipleContactFormField | CLXSingleCompoundFormField | CLXFileFormField | CLXCompoundFormField | CLXTextAreaFormField | CLXBooleanFormField | CLXSelectFormField | CLXMultiSelectFormField | CLXMultipleTextFormField;
|
|
282
286
|
has_parent?: boolean;
|
|
283
287
|
allow_reset?: boolean;
|
|
284
288
|
tags?: string[];
|