@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.
@@ -201,7 +201,7 @@ export type CLXFormQuestion = {
201
201
  export type CLXFormQuestions = {
202
202
  [questionSlug: string]: CLXFormQuestion;
203
203
  };
204
- export type CLXRuleComparison = 'stringEquals' | 'stringLike' | 'stringInList' | 'stringListContains' | 'stringListLike' | 'booleanEquals' | 'fileExists' | 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
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 CLXFormRuleStringEqualsInstance = CLXFormRuleInstanceBase & {
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 CLXFormRuleStringListContainsInstance = CLXFormRuleInstanceBase & {
240
- subject: CLXFormResponseStringArrayValue;
241
- predicate: CLXFormResponseStringValue;
242
- comparisonType: 'stringListContains';
234
+ export type CLXFormRuleDateComparisonInstance = CLXFormRuleInstanceBase & {
235
+ subject: CLXFormResponseDateValue;
236
+ predicate: CLXFormResponseDateValue;
237
+ comparisonType: 'dateEquals' | 'dateBefore' | 'dateAfter';
243
238
  };
244
- export type CLXFormRuleStringListLikeInstance = CLXFormRuleInstanceBase & {
239
+ export type CLXFormRuleStringListComparisonInstance = CLXFormRuleInstanceBase & {
245
240
  subject: CLXFormResponseStringArrayValue;
246
241
  predicate: CLXFormResponseStringValue;
247
- comparisonType: 'stringListLike';
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 = CLXFormRuleStringEqualsInstance | CLXFormRuleStringLikeInstance | CLXFormRuleStringInListInstance | CLXFormRuleFileExistsInstance | CLXFormRuleStringListContainsInstance | CLXFormRuleStringListLikeInstance | CLXFormRuleBooleanEqualsInstance | CLXFormRuleNumberComparisonInstance;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",