@clxmedia/types 1.0.27 → 1.0.29
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 +18 -23
- package/package.json +1 -1
|
@@ -201,10 +201,10 @@ 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
|
+
target: CLXFormResponseValue;
|
|
208
208
|
comparison: CLXRuleComparison;
|
|
209
209
|
};
|
|
210
210
|
export type CLXConditionalOverride = {
|
|
@@ -213,50 +213,45 @@ export type CLXConditionalOverride = {
|
|
|
213
213
|
};
|
|
214
214
|
export type CLXFormRuleInstanceBase = {
|
|
215
215
|
subject: CLXFormResponseValue;
|
|
216
|
-
|
|
216
|
+
target: CLXFormResponseValue;
|
|
217
217
|
comparisonType: CLXRuleComparison;
|
|
218
218
|
};
|
|
219
|
-
export type
|
|
219
|
+
export type CLXFormRuleStringComparisonInstance = CLXFormRuleInstanceBase & {
|
|
220
220
|
subject: CLXFormResponseStringValue;
|
|
221
|
-
|
|
222
|
-
comparisonType: 'stringEquals';
|
|
223
|
-
};
|
|
224
|
-
export type CLXFormRuleStringLikeInstance = CLXFormRuleInstanceBase & {
|
|
225
|
-
subject: CLXFormResponseStringValue;
|
|
226
|
-
predicate: CLXFormResponseStringValue;
|
|
227
|
-
comparisonType: 'stringLike';
|
|
221
|
+
target: CLXFormResponseStringValue;
|
|
222
|
+
comparisonType: 'stringEquals' | 'stringContains' | 'stringStartsWith' | 'stringEndsWith';
|
|
228
223
|
};
|
|
229
224
|
export type CLXFormRuleStringInListInstance = CLXFormRuleInstanceBase & {
|
|
230
225
|
subject: CLXFormResponseStringValue;
|
|
231
|
-
|
|
226
|
+
target: CLXFormResponseStringArrayValue;
|
|
232
227
|
comparisonType: 'stringInList';
|
|
233
228
|
};
|
|
234
229
|
export type CLXFormRuleFileExistsInstance = CLXFormRuleInstanceBase & {
|
|
235
230
|
subject: CLXFormResponseFileValue;
|
|
236
|
-
|
|
231
|
+
target: CLXFormResponseBooleanValue;
|
|
237
232
|
comparisonType: 'fileExists';
|
|
238
233
|
};
|
|
239
|
-
export type
|
|
240
|
-
subject:
|
|
241
|
-
|
|
242
|
-
comparisonType: '
|
|
234
|
+
export type CLXFormRuleDateComparisonInstance = CLXFormRuleInstanceBase & {
|
|
235
|
+
subject: CLXFormResponseDateValue;
|
|
236
|
+
target: CLXFormResponseDateValue;
|
|
237
|
+
comparisonType: 'dateEquals' | 'dateBefore' | 'dateAfter';
|
|
243
238
|
};
|
|
244
|
-
export type
|
|
239
|
+
export type CLXFormRuleStringListComparisonInstance = CLXFormRuleInstanceBase & {
|
|
245
240
|
subject: CLXFormResponseStringArrayValue;
|
|
246
|
-
|
|
247
|
-
comparisonType: '
|
|
241
|
+
target: CLXFormResponseStringValue;
|
|
242
|
+
comparisonType: 'stringListEntryEquals' | 'stringListEntryContains' | 'stringListEntryStartsWith' | 'stringListEntryEndsWith';
|
|
248
243
|
};
|
|
249
244
|
export type CLXFormRuleBooleanEqualsInstance = CLXFormRuleInstanceBase & {
|
|
250
245
|
subject: CLXFormResponseBooleanValue;
|
|
251
|
-
|
|
246
|
+
target: CLXFormResponseBooleanValue;
|
|
252
247
|
comparisonType: 'booleanEquals';
|
|
253
248
|
};
|
|
254
249
|
export type CLXFormRuleNumberComparisonInstance = CLXFormRuleInstanceBase & {
|
|
255
250
|
subject: CLXFormResponseNumberValue;
|
|
256
|
-
|
|
251
|
+
target: 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;
|