@clxmedia/types 1.12.2 → 1.13.0

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.
@@ -341,61 +341,72 @@ export type CLXFormPortableResponse = {
341
341
  export type CLXFormPortableResponses = {
342
342
  [questionSlug: string]: CLXFormPortableResponse;
343
343
  };
344
- 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";
344
+ export type CLXRuleComparison = "isAnswered" | "stringEquals" | "stringExists" | "stringContains" | "stringStartsWith" | "stringEndsWith" | "stringInList" | "stringNotInList" | "stringListContainsAll" | "stringListContainsAny" | "stringListContainsNone" | "stringListEntryEquals" | "stringListEntryContains" | "stringListEntryStartsWith" | "stringListEntryEndsWith" | "dateEquals" | "dateBefore" | "dateAfter" | "booleanEquals" | "fileExists" | "numberEquals" | "numberGreaterThan" | "numberLessThan";
345
345
  export type CLXFormRuleDefinition = {
346
346
  subject: string;
347
347
  target: CLXFormResponseValue;
348
348
  comparison: CLXRuleComparison;
349
+ negate?: boolean;
349
350
  };
350
351
  export type CLXFormRuleInstanceBase = {
351
352
  subject: CLXFormResponseValue;
352
353
  target: CLXFormResponseValue;
353
354
  comparisonType: CLXRuleComparison;
355
+ negate?: boolean;
354
356
  };
355
357
  export type CLXFormRuleStringComparisonInstance = CLXFormRuleInstanceBase & {
356
358
  subject: CLXFormResponseStringValue;
357
359
  target: CLXFormResponseStringValue;
358
- comparisonType: "stringEquals" | "stringContains" | "stringStartsWith" | "stringEndsWith";
360
+ comparisonType: "isAnswered" | "stringEquals" | "stringContains" | "stringStartsWith" | "stringEndsWith";
361
+ negate?: boolean;
359
362
  };
360
363
  export type CLXFormRuleStringExistsComparisonInstance = CLXFormRuleInstanceBase & {
361
364
  subject: CLXFormResponseStringValue;
362
365
  target: CLXFormResponseBooleanValue;
363
- comparisonType: "stringExists";
366
+ comparisonType: "stringExists" | "isAnswered";
367
+ negate?: boolean;
364
368
  };
365
369
  export type CLXFormRuleStringListToStringListInstance = CLXFormRuleInstanceBase & {
366
370
  subject: CLXFormResponseStringArrayValue;
367
371
  target: CLXFormResponseStringArrayValue;
368
- comparisonType: "stringListContainsAll" | "stringListContainsAny" | "stringListContainsNone";
372
+ comparisonType: "isAnswered" | "stringListContainsAll" | "stringListContainsAny" | "stringListContainsNone";
373
+ negate?: boolean;
369
374
  };
370
375
  export type CLXFormRuleStringInListInstance = CLXFormRuleInstanceBase & {
371
376
  subject: CLXFormResponseStringValue;
372
377
  target: CLXFormResponseStringArrayValue;
373
- comparisonType: "stringInList" | "stringNotInList";
378
+ comparisonType: "stringInList" | "stringNotInList" | "isAnswered";
379
+ negate?: boolean;
374
380
  };
375
381
  export type CLXFormRuleFileExistsInstance = CLXFormRuleInstanceBase & {
376
382
  subject: CLXFormResponseFileValue;
377
383
  target: CLXFormResponseBooleanValue;
378
- comparisonType: "fileExists";
384
+ comparisonType: "fileExists" | "isAnswered";
385
+ negate?: boolean;
379
386
  };
380
387
  export type CLXFormRuleDateComparisonInstance = CLXFormRuleInstanceBase & {
381
388
  subject: CLXFormResponseDateValue;
382
389
  target: CLXFormResponseDateValue;
383
- comparisonType: "dateEquals" | "dateBefore" | "dateAfter";
390
+ comparisonType: "dateEquals" | "dateBefore" | "dateAfter" | "isAnswered";
391
+ negate?: boolean;
384
392
  };
385
393
  export type CLXFormRuleStringListComparisonInstance = CLXFormRuleInstanceBase & {
386
394
  subject: CLXFormResponseStringArrayValue;
387
395
  target: CLXFormResponseStringValue;
388
- comparisonType: "stringListEntryEquals" | "stringListEntryContains" | "stringListEntryStartsWith" | "stringListEntryEndsWith";
396
+ comparisonType: "stringListEntryEquals" | "stringListEntryContains" | "stringListEntryStartsWith" | "stringListEntryEndsWith" | "isAnswered";
397
+ negate?: boolean;
389
398
  };
390
399
  export type CLXFormRuleBooleanEqualsInstance = CLXFormRuleInstanceBase & {
391
400
  subject: CLXFormResponseBooleanValue;
392
401
  target: CLXFormResponseBooleanValue;
393
- comparisonType: "booleanEquals";
402
+ comparisonType: "booleanEquals" | "isAnswered";
403
+ negate?: boolean;
394
404
  };
395
405
  export type CLXFormRuleNumberComparisonInstance = CLXFormRuleInstanceBase & {
396
406
  subject: CLXFormResponseNumberValue;
397
407
  target: CLXFormResponseNumberValue;
398
- comparisonType: "numberEquals" | "numberGreaterThan" | "numberLessThan";
408
+ comparisonType: "numberEquals" | "numberGreaterThan" | "numberLessThan" | "isAnswered";
409
+ negate?: boolean;
399
410
  };
400
411
  export type CLXFormRuleInstance = CLXFormRuleStringComparisonInstance | CLXFormRuleStringExistsComparisonInstance | CLXFormRuleStringInListInstance | CLXFormRuleFileExistsInstance | CLXFormRuleDateComparisonInstance | CLXFormRuleStringListToStringListInstance | CLXFormRuleStringListComparisonInstance | CLXFormRuleBooleanEqualsInstance | CLXFormRuleNumberComparisonInstance;
401
412
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.12.2",
3
+ "version": "1.13.0",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",