@clxmedia/types 1.0.162 → 1.0.164
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.
|
@@ -300,7 +300,7 @@ export type CLXFormPortableResponse = {
|
|
|
300
300
|
export type CLXFormPortableResponses = {
|
|
301
301
|
[questionSlug: string]: CLXFormPortableResponse;
|
|
302
302
|
};
|
|
303
|
-
export type CLXRuleComparison = 'stringEquals' | 'stringContains' | 'stringStartsWith' | 'stringEndsWith' | 'stringInList' | 'stringNotInList' | 'stringListContainsAll' | 'stringListContainsAny' | 'stringListContainsNone' | 'stringListEntryEquals' | 'stringListEntryContains' | 'stringListEntryStartsWith' | 'stringListEntryEndsWith' | 'dateEquals' | 'dateBefore' | 'dateAfter' | 'booleanEquals' | 'fileExists' | 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
|
|
303
|
+
export type CLXRuleComparison = 'stringEquals' | 'stringExists' | 'stringContains' | 'stringStartsWith' | 'stringEndsWith' | 'stringInList' | 'stringNotInList' | 'stringListContainsAll' | 'stringListContainsAny' | 'stringListContainsNone' | 'stringListEntryEquals' | 'stringListEntryContains' | 'stringListEntryStartsWith' | 'stringListEntryEndsWith' | 'dateEquals' | 'dateBefore' | 'dateAfter' | 'booleanEquals' | 'fileExists' | 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
|
|
304
304
|
export type CLXFormRuleDefinition = {
|
|
305
305
|
subject: string;
|
|
306
306
|
target: CLXFormResponseValue;
|
|
@@ -316,6 +316,11 @@ export type CLXFormRuleStringComparisonInstance = CLXFormRuleInstanceBase & {
|
|
|
316
316
|
target: CLXFormResponseStringValue;
|
|
317
317
|
comparisonType: 'stringEquals' | 'stringContains' | 'stringStartsWith' | 'stringEndsWith';
|
|
318
318
|
};
|
|
319
|
+
export type CLXFormRuleStringExistsComparisonInstance = CLXFormRuleInstanceBase & {
|
|
320
|
+
subject: CLXFormResponseStringValue;
|
|
321
|
+
target: CLXFormResponseBooleanValue;
|
|
322
|
+
comparisonType: 'stringExists';
|
|
323
|
+
};
|
|
319
324
|
export type CLXFormRuleStringListToStringListInstance = CLXFormRuleInstanceBase & {
|
|
320
325
|
subject: CLXFormResponseStringArrayValue;
|
|
321
326
|
target: CLXFormResponseStringArrayValue;
|
|
@@ -351,7 +356,7 @@ export type CLXFormRuleNumberComparisonInstance = CLXFormRuleInstanceBase & {
|
|
|
351
356
|
target: CLXFormResponseNumberValue;
|
|
352
357
|
comparisonType: 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
|
|
353
358
|
};
|
|
354
|
-
export type CLXFormRuleInstance = CLXFormRuleStringComparisonInstance | CLXFormRuleStringInListInstance | CLXFormRuleFileExistsInstance | CLXFormRuleDateComparisonInstance | CLXFormRuleStringListToStringListInstance | CLXFormRuleStringListComparisonInstance | CLXFormRuleBooleanEqualsInstance | CLXFormRuleNumberComparisonInstance;
|
|
359
|
+
export type CLXFormRuleInstance = CLXFormRuleStringComparisonInstance | CLXFormRuleStringExistsComparisonInstance | CLXFormRuleStringInListInstance | CLXFormRuleFileExistsInstance | CLXFormRuleDateComparisonInstance | CLXFormRuleStringListToStringListInstance | CLXFormRuleStringListComparisonInstance | CLXFormRuleBooleanEqualsInstance | CLXFormRuleNumberComparisonInstance;
|
|
355
360
|
export type CLXFormRuleSet = {
|
|
356
361
|
rules: (CLXFormRuleDefinition | CLXFormRuleSet)[];
|
|
357
362
|
combinator?: 'and' | 'or';
|
|
@@ -209,18 +209,13 @@ export type CLXTaskTriggerConfig = {
|
|
|
209
209
|
};
|
|
210
210
|
export type CLXTaskTriggerAction = 'activate' | 'start' | 'complete' | 'close' | 'require' | 'optional' | 'delete';
|
|
211
211
|
export type CLXTaskTrigger = {
|
|
212
|
-
id: number;
|
|
213
212
|
trigger_slug: EnterpriseEventSlugs;
|
|
214
213
|
action_type: CLXTaskTriggerAction;
|
|
215
214
|
config?: CLXTaskTriggerConfig;
|
|
216
|
-
created_at: Date;
|
|
217
|
-
fired_at: Date | null;
|
|
218
215
|
};
|
|
219
216
|
export type CLXTaskRuleTrigger = {
|
|
220
|
-
id: number;
|
|
221
217
|
action_type: CLXTaskTriggerAction;
|
|
222
218
|
conditions: CLXFormRuleSet;
|
|
223
|
-
created_at: Date;
|
|
224
219
|
};
|
|
225
220
|
export type CLXTaskBase = {
|
|
226
221
|
id: number;
|
|
@@ -272,7 +267,6 @@ export type CLXTaskWithStatus = CLXTask & {
|
|
|
272
267
|
};
|
|
273
268
|
export type CLXTaskWithHistory = CLXTaskWithStatus & {
|
|
274
269
|
history: CLXTaskHistoryEntry[];
|
|
275
|
-
triggers: CLXTaskTrigger[];
|
|
276
270
|
};
|
|
277
271
|
export type TaskHistoryArchive = {
|
|
278
272
|
id: number;
|