@clxmedia/types 1.0.26 → 1.0.28
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.
|
@@ -201,7 +201,7 @@ export type CLXFormQuestion = {
|
|
|
201
201
|
export type CLXFormQuestions = {
|
|
202
202
|
[questionSlug: string]: CLXFormQuestion;
|
|
203
203
|
};
|
|
204
|
-
export type CLXRuleComparison = 'stringEquals' | 'stringInList' | '
|
|
204
|
+
export type CLXRuleComparison = 'stringEquals' | 'stringContains' | 'stringStartsWith' | 'stringEndsWith' | 'stringInList' | 'stringListEntryEquals' | 'stringListEntryContains' | 'stringListEntryStartsWith' | 'stringListEntryEndsWith' | 'dateEquals' | 'dateBefore' | 'dateAfter' | 'booleanEquals' | 'fileExists' | 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
|
|
205
205
|
export type CLXFormRuleDefinition = {
|
|
206
206
|
subject: string;
|
|
207
207
|
predicate: CLXFormResponseValue;
|
|
@@ -216,10 +216,10 @@ export type CLXFormRuleInstanceBase = {
|
|
|
216
216
|
predicate: CLXFormResponseValue;
|
|
217
217
|
comparisonType: CLXRuleComparison;
|
|
218
218
|
};
|
|
219
|
-
export type
|
|
219
|
+
export type CLXFormRuleStringComparisonInstance = CLXFormRuleInstanceBase & {
|
|
220
220
|
subject: CLXFormResponseStringValue;
|
|
221
221
|
predicate: CLXFormResponseStringValue;
|
|
222
|
-
comparisonType: 'stringEquals';
|
|
222
|
+
comparisonType: 'stringEquals' | 'stringContains' | 'stringStartsWith' | 'stringEndsWith';
|
|
223
223
|
};
|
|
224
224
|
export type CLXFormRuleStringInListInstance = CLXFormRuleInstanceBase & {
|
|
225
225
|
subject: CLXFormResponseStringValue;
|
|
@@ -231,10 +231,15 @@ export type CLXFormRuleFileExistsInstance = CLXFormRuleInstanceBase & {
|
|
|
231
231
|
predicate: CLXFormResponseBooleanValue;
|
|
232
232
|
comparisonType: 'fileExists';
|
|
233
233
|
};
|
|
234
|
-
export type
|
|
234
|
+
export type CLXFormRuleDateComparisonInstance = CLXFormRuleInstanceBase & {
|
|
235
|
+
subject: CLXFormResponseDateValue;
|
|
236
|
+
predicate: CLXFormResponseDateValue;
|
|
237
|
+
comparisonType: 'dateEquals' | 'dateBefore' | 'dateAfter';
|
|
238
|
+
};
|
|
239
|
+
export type CLXFormRuleStringListComparisonInstance = CLXFormRuleInstanceBase & {
|
|
235
240
|
subject: CLXFormResponseStringArrayValue;
|
|
236
241
|
predicate: CLXFormResponseStringValue;
|
|
237
|
-
comparisonType: '
|
|
242
|
+
comparisonType: 'stringListEntryEquals' | 'stringListEntryContains' | 'stringListEntryStartsWith' | 'stringListEntryEndsWith';
|
|
238
243
|
};
|
|
239
244
|
export type CLXFormRuleBooleanEqualsInstance = CLXFormRuleInstanceBase & {
|
|
240
245
|
subject: CLXFormResponseBooleanValue;
|
|
@@ -246,7 +251,7 @@ export type CLXFormRuleNumberComparisonInstance = CLXFormRuleInstanceBase & {
|
|
|
246
251
|
predicate: CLXFormResponseNumberValue;
|
|
247
252
|
comparisonType: 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
|
|
248
253
|
};
|
|
249
|
-
export type CLXFormRuleInstance =
|
|
254
|
+
export type CLXFormRuleInstance = CLXFormRuleStringComparisonInstance | CLXFormRuleStringInListInstance | CLXFormRuleFileExistsInstance | CLXFormRuleDateComparisonInstance | CLXFormRuleStringListComparisonInstance | CLXFormRuleBooleanEqualsInstance | CLXFormRuleNumberComparisonInstance;
|
|
250
255
|
export type CLXFormQuestionLayout = {
|
|
251
256
|
id: number;
|
|
252
257
|
form_question_slug: string;
|