@clxmedia/types 1.0.26 → 1.0.27
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' | 'stringListContains' | 'booleanEquals' | 'fileExists' | 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
|
|
204
|
+
export type CLXRuleComparison = 'stringEquals' | 'stringLike' | 'stringInList' | 'stringListContains' | 'stringListLike' | 'booleanEquals' | 'fileExists' | 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
|
|
205
205
|
export type CLXFormRuleDefinition = {
|
|
206
206
|
subject: string;
|
|
207
207
|
predicate: CLXFormResponseValue;
|
|
@@ -221,6 +221,11 @@ export type CLXFormRuleStringEqualsInstance = CLXFormRuleInstanceBase & {
|
|
|
221
221
|
predicate: CLXFormResponseStringValue;
|
|
222
222
|
comparisonType: 'stringEquals';
|
|
223
223
|
};
|
|
224
|
+
export type CLXFormRuleStringLikeInstance = CLXFormRuleInstanceBase & {
|
|
225
|
+
subject: CLXFormResponseStringValue;
|
|
226
|
+
predicate: CLXFormResponseStringValue;
|
|
227
|
+
comparisonType: 'stringLike';
|
|
228
|
+
};
|
|
224
229
|
export type CLXFormRuleStringInListInstance = CLXFormRuleInstanceBase & {
|
|
225
230
|
subject: CLXFormResponseStringValue;
|
|
226
231
|
predicate: CLXFormResponseStringArrayValue;
|
|
@@ -236,6 +241,11 @@ export type CLXFormRuleStringListContainsInstance = CLXFormRuleInstanceBase & {
|
|
|
236
241
|
predicate: CLXFormResponseStringValue;
|
|
237
242
|
comparisonType: 'stringListContains';
|
|
238
243
|
};
|
|
244
|
+
export type CLXFormRuleStringListLikeInstance = CLXFormRuleInstanceBase & {
|
|
245
|
+
subject: CLXFormResponseStringArrayValue;
|
|
246
|
+
predicate: CLXFormResponseStringValue;
|
|
247
|
+
comparisonType: 'stringListLike';
|
|
248
|
+
};
|
|
239
249
|
export type CLXFormRuleBooleanEqualsInstance = CLXFormRuleInstanceBase & {
|
|
240
250
|
subject: CLXFormResponseBooleanValue;
|
|
241
251
|
predicate: CLXFormResponseBooleanValue;
|
|
@@ -246,7 +256,7 @@ export type CLXFormRuleNumberComparisonInstance = CLXFormRuleInstanceBase & {
|
|
|
246
256
|
predicate: CLXFormResponseNumberValue;
|
|
247
257
|
comparisonType: 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
|
|
248
258
|
};
|
|
249
|
-
export type CLXFormRuleInstance = CLXFormRuleStringEqualsInstance | CLXFormRuleStringInListInstance | CLXFormRuleFileExistsInstance | CLXFormRuleStringListContainsInstance | CLXFormRuleBooleanEqualsInstance | CLXFormRuleNumberComparisonInstance;
|
|
259
|
+
export type CLXFormRuleInstance = CLXFormRuleStringEqualsInstance | CLXFormRuleStringLikeInstance | CLXFormRuleStringInListInstance | CLXFormRuleFileExistsInstance | CLXFormRuleStringListContainsInstance | CLXFormRuleStringListLikeInstance | CLXFormRuleBooleanEqualsInstance | CLXFormRuleNumberComparisonInstance;
|
|
250
260
|
export type CLXFormQuestionLayout = {
|
|
251
261
|
id: number;
|
|
252
262
|
form_question_slug: string;
|