@clxmedia/types 1.0.21 → 1.0.23
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.
|
@@ -84,8 +84,8 @@ export declare enum CLXFormFieldFileTypes {
|
|
|
84
84
|
'doc' = "doc",
|
|
85
85
|
'docx' = "docx",
|
|
86
86
|
'gif' = "gif",
|
|
87
|
-
'jpeg' = "jpeg",
|
|
88
87
|
'jpg' = "jpg",
|
|
88
|
+
'json' = "json",
|
|
89
89
|
'mp4' = "mp4",
|
|
90
90
|
'pdf' = "pdf",
|
|
91
91
|
'png' = "png",
|
|
@@ -94,12 +94,12 @@ export declare enum CLXFormFieldFileTypes {
|
|
|
94
94
|
'rtf' = "rtf",
|
|
95
95
|
'svg' = "svg",
|
|
96
96
|
'tif' = "tif",
|
|
97
|
-
'tiff' = "tiff",
|
|
98
97
|
'txt' = "txt",
|
|
99
98
|
'webm' = "webm",
|
|
100
99
|
'webp' = "webp",
|
|
101
100
|
'xls' = "xls",
|
|
102
|
-
'xlsx' = "xlsx"
|
|
101
|
+
'xlsx' = "xlsx",
|
|
102
|
+
'zip' = "zip"
|
|
103
103
|
}
|
|
104
104
|
export type CLXFileFormField = CLXFormField & {
|
|
105
105
|
type: 'file';
|
|
@@ -165,7 +165,7 @@ export type CLXFormQuestion = {
|
|
|
165
165
|
export type CLXFormQuestions = {
|
|
166
166
|
[questionSlug: string]: CLXFormQuestion;
|
|
167
167
|
};
|
|
168
|
-
export type CLXRuleComparison = 'stringEquals' | 'stringInList' | 'stringListContains' | 'booleanEquals' | 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
|
|
168
|
+
export type CLXRuleComparison = 'stringEquals' | 'stringInList' | 'stringListContains' | 'booleanEquals' | 'fileExists' | 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
|
|
169
169
|
export type CLXFormRuleDefinition = {
|
|
170
170
|
subject: string;
|
|
171
171
|
predicate: CLXFormResponseValue;
|
|
@@ -185,6 +185,11 @@ export type CLXFormRuleStringEqualsInstance = CLXFormRuleInstanceBase & {
|
|
|
185
185
|
predicate: CLXFormResponseStringValue;
|
|
186
186
|
comparisonType: 'stringEquals';
|
|
187
187
|
};
|
|
188
|
+
export type CLXFormRuleFileExistsInstance = CLXFormRuleInstanceBase & {
|
|
189
|
+
subject: CLXFormResponseFileValue;
|
|
190
|
+
predicate: CLXFormResponseBooleanValue;
|
|
191
|
+
comparisonType: 'fileExists';
|
|
192
|
+
};
|
|
188
193
|
export type CLXFormRuleStringInListInstance = CLXFormRuleInstanceBase & {
|
|
189
194
|
subject: CLXFormResponseStringValue;
|
|
190
195
|
predicate: CLXFormResponseStringArrayValue;
|
|
@@ -205,7 +210,7 @@ export type CLXFormRuleNumberComparisonInstance = CLXFormRuleInstanceBase & {
|
|
|
205
210
|
predicate: CLXFormResponseNumberValue;
|
|
206
211
|
comparisonType: 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
|
|
207
212
|
};
|
|
208
|
-
export type CLXFormRuleInstance = CLXFormRuleStringEqualsInstance | CLXFormRuleStringInListInstance | CLXFormRuleStringListContainsInstance | CLXFormRuleBooleanEqualsInstance | CLXFormRuleNumberComparisonInstance;
|
|
213
|
+
export type CLXFormRuleInstance = CLXFormRuleStringEqualsInstance | CLXFormRuleStringInListInstance | CLXFormRuleFileExistsInstance | CLXFormRuleStringListContainsInstance | CLXFormRuleBooleanEqualsInstance | CLXFormRuleNumberComparisonInstance;
|
|
209
214
|
export type CLXFormQuestionLayout = {
|
|
210
215
|
id: number;
|
|
211
216
|
form_question_slug: string;
|
|
@@ -8,8 +8,8 @@ var CLXFormFieldFileTypes;
|
|
|
8
8
|
CLXFormFieldFileTypes["doc"] = "doc";
|
|
9
9
|
CLXFormFieldFileTypes["docx"] = "docx";
|
|
10
10
|
CLXFormFieldFileTypes["gif"] = "gif";
|
|
11
|
-
CLXFormFieldFileTypes["jpeg"] = "jpeg";
|
|
12
11
|
CLXFormFieldFileTypes["jpg"] = "jpg";
|
|
12
|
+
CLXFormFieldFileTypes["json"] = "json";
|
|
13
13
|
CLXFormFieldFileTypes["mp4"] = "mp4";
|
|
14
14
|
CLXFormFieldFileTypes["pdf"] = "pdf";
|
|
15
15
|
CLXFormFieldFileTypes["png"] = "png";
|
|
@@ -18,10 +18,10 @@ var CLXFormFieldFileTypes;
|
|
|
18
18
|
CLXFormFieldFileTypes["rtf"] = "rtf";
|
|
19
19
|
CLXFormFieldFileTypes["svg"] = "svg";
|
|
20
20
|
CLXFormFieldFileTypes["tif"] = "tif";
|
|
21
|
-
CLXFormFieldFileTypes["tiff"] = "tiff";
|
|
22
21
|
CLXFormFieldFileTypes["txt"] = "txt";
|
|
23
22
|
CLXFormFieldFileTypes["webm"] = "webm";
|
|
24
23
|
CLXFormFieldFileTypes["webp"] = "webp";
|
|
25
24
|
CLXFormFieldFileTypes["xls"] = "xls";
|
|
26
25
|
CLXFormFieldFileTypes["xlsx"] = "xlsx";
|
|
26
|
+
CLXFormFieldFileTypes["zip"] = "zip";
|
|
27
27
|
})(CLXFormFieldFileTypes || (exports.CLXFormFieldFileTypes = CLXFormFieldFileTypes = {}));
|