@clxmedia/types 1.0.27 → 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.
- package/dist/core/clxforms/index.d.ts +10 -15
- package/package.json +1 -1
|
@@ -201,7 +201,7 @@ export type CLXFormQuestion = {
|
|
|
201
201
|
export type CLXFormQuestions = {
|
|
202
202
|
[questionSlug: string]: CLXFormQuestion;
|
|
203
203
|
};
|
|
204
|
-
export type CLXRuleComparison = 'stringEquals' | '
|
|
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,15 +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';
|
|
223
|
-
};
|
|
224
|
-
export type CLXFormRuleStringLikeInstance = CLXFormRuleInstanceBase & {
|
|
225
|
-
subject: CLXFormResponseStringValue;
|
|
226
|
-
predicate: CLXFormResponseStringValue;
|
|
227
|
-
comparisonType: 'stringLike';
|
|
222
|
+
comparisonType: 'stringEquals' | 'stringContains' | 'stringStartsWith' | 'stringEndsWith';
|
|
228
223
|
};
|
|
229
224
|
export type CLXFormRuleStringInListInstance = CLXFormRuleInstanceBase & {
|
|
230
225
|
subject: CLXFormResponseStringValue;
|
|
@@ -236,15 +231,15 @@ export type CLXFormRuleFileExistsInstance = CLXFormRuleInstanceBase & {
|
|
|
236
231
|
predicate: CLXFormResponseBooleanValue;
|
|
237
232
|
comparisonType: 'fileExists';
|
|
238
233
|
};
|
|
239
|
-
export type
|
|
240
|
-
subject:
|
|
241
|
-
predicate:
|
|
242
|
-
comparisonType: '
|
|
234
|
+
export type CLXFormRuleDateComparisonInstance = CLXFormRuleInstanceBase & {
|
|
235
|
+
subject: CLXFormResponseDateValue;
|
|
236
|
+
predicate: CLXFormResponseDateValue;
|
|
237
|
+
comparisonType: 'dateEquals' | 'dateBefore' | 'dateAfter';
|
|
243
238
|
};
|
|
244
|
-
export type
|
|
239
|
+
export type CLXFormRuleStringListComparisonInstance = CLXFormRuleInstanceBase & {
|
|
245
240
|
subject: CLXFormResponseStringArrayValue;
|
|
246
241
|
predicate: CLXFormResponseStringValue;
|
|
247
|
-
comparisonType: '
|
|
242
|
+
comparisonType: 'stringListEntryEquals' | 'stringListEntryContains' | 'stringListEntryStartsWith' | 'stringListEntryEndsWith';
|
|
248
243
|
};
|
|
249
244
|
export type CLXFormRuleBooleanEqualsInstance = CLXFormRuleInstanceBase & {
|
|
250
245
|
subject: CLXFormResponseBooleanValue;
|
|
@@ -256,7 +251,7 @@ export type CLXFormRuleNumberComparisonInstance = CLXFormRuleInstanceBase & {
|
|
|
256
251
|
predicate: CLXFormResponseNumberValue;
|
|
257
252
|
comparisonType: 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
|
|
258
253
|
};
|
|
259
|
-
export type CLXFormRuleInstance =
|
|
254
|
+
export type CLXFormRuleInstance = CLXFormRuleStringComparisonInstance | CLXFormRuleStringInListInstance | CLXFormRuleFileExistsInstance | CLXFormRuleDateComparisonInstance | CLXFormRuleStringListComparisonInstance | CLXFormRuleBooleanEqualsInstance | CLXFormRuleNumberComparisonInstance;
|
|
260
255
|
export type CLXFormQuestionLayout = {
|
|
261
256
|
id: number;
|
|
262
257
|
form_question_slug: string;
|