@clxmedia/types 1.0.36 → 1.0.38
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/core/clxforms/index.d.ts +15 -10
- package/package.json +1 -1
|
@@ -224,17 +224,16 @@ export type CLXMultiSelectFormField = CLXSelectableFormField & {
|
|
|
224
224
|
options: CLXFormSelectOptions;
|
|
225
225
|
max_select?: number;
|
|
226
226
|
};
|
|
227
|
-
export type CLXCompoundableFormField = CLXTextFormField | CLXNumberFormField | CLXDateFormField | CLXFileFormField | CLXTextAreaFormField | CLXBooleanFormField | CLXSelectFormField | CLXMultiSelectFormField
|
|
227
|
+
export type CLXCompoundableFormField = (CLXTextFormField | CLXNumberFormField | CLXDateFormField | CLXFileFormField | CLXTextAreaFormField | CLXBooleanFormField | CLXSelectFormField | CLXMultiSelectFormField) & {
|
|
228
|
+
slug: string;
|
|
229
|
+
label: string;
|
|
230
|
+
is_required?: boolean;
|
|
231
|
+
};
|
|
228
232
|
export type CLXCompoundFormField = CLXSelectableFormField & {
|
|
229
233
|
type: 'multiselect';
|
|
230
234
|
response_type: 'COMPOUND';
|
|
231
235
|
options: CLXFormSelectOptions;
|
|
232
|
-
compound_fields:
|
|
233
|
-
[key: string]: CLXCompoundableFormField & {
|
|
234
|
-
is_required?: boolean;
|
|
235
|
-
label: string;
|
|
236
|
-
};
|
|
237
|
-
};
|
|
236
|
+
compound_fields: CLXCompoundableFormField[];
|
|
238
237
|
max_select?: number;
|
|
239
238
|
};
|
|
240
239
|
export type CLXFormQuestionResponseOptions = {
|
|
@@ -342,6 +341,14 @@ export type CLXFormStep = {
|
|
|
342
341
|
sections: CLXFormSection[];
|
|
343
342
|
conditions?: CLXFormRuleSet;
|
|
344
343
|
};
|
|
344
|
+
export type FormStatCount = {
|
|
345
|
+
complete: number;
|
|
346
|
+
total: number;
|
|
347
|
+
};
|
|
348
|
+
export type FormStats = {
|
|
349
|
+
optional: FormStatCount;
|
|
350
|
+
required: FormStatCount;
|
|
351
|
+
};
|
|
345
352
|
export type CLXFormLayout = {
|
|
346
353
|
form: {
|
|
347
354
|
slug: string;
|
|
@@ -349,7 +356,5 @@ export type CLXFormLayout = {
|
|
|
349
356
|
description?: string;
|
|
350
357
|
};
|
|
351
358
|
steps: CLXFormStep[];
|
|
352
|
-
|
|
353
|
-
totalCount?: number;
|
|
354
|
-
updated_at?: number;
|
|
359
|
+
stats?: FormStats;
|
|
355
360
|
};
|