@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.
@@ -201,10 +201,10 @@ 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
- predicate: CLXFormResponseValue;
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
- predicate: CLXFormResponseValue;
216
+ target: CLXFormResponseValue;
217
217
  comparisonType: CLXRuleComparison;
218
218
  };
219
- export type CLXFormRuleStringEqualsInstance = CLXFormRuleInstanceBase & {
219
+ export type CLXFormRuleStringComparisonInstance = CLXFormRuleInstanceBase & {
220
220
  subject: CLXFormResponseStringValue;
221
- predicate: CLXFormResponseStringValue;
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
- predicate: CLXFormResponseStringArrayValue;
226
+ target: CLXFormResponseStringArrayValue;
232
227
  comparisonType: 'stringInList';
233
228
  };
234
229
  export type CLXFormRuleFileExistsInstance = CLXFormRuleInstanceBase & {
235
230
  subject: CLXFormResponseFileValue;
236
- predicate: CLXFormResponseBooleanValue;
231
+ target: 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
+ target: CLXFormResponseDateValue;
237
+ comparisonType: 'dateEquals' | 'dateBefore' | 'dateAfter';
243
238
  };
244
- export type CLXFormRuleStringListLikeInstance = CLXFormRuleInstanceBase & {
239
+ export type CLXFormRuleStringListComparisonInstance = CLXFormRuleInstanceBase & {
245
240
  subject: CLXFormResponseStringArrayValue;
246
- predicate: CLXFormResponseStringValue;
247
- comparisonType: 'stringListLike';
241
+ target: CLXFormResponseStringValue;
242
+ comparisonType: 'stringListEntryEquals' | 'stringListEntryContains' | 'stringListEntryStartsWith' | 'stringListEntryEndsWith';
248
243
  };
249
244
  export type CLXFormRuleBooleanEqualsInstance = CLXFormRuleInstanceBase & {
250
245
  subject: CLXFormResponseBooleanValue;
251
- predicate: CLXFormResponseBooleanValue;
246
+ target: CLXFormResponseBooleanValue;
252
247
  comparisonType: 'booleanEquals';
253
248
  };
254
249
  export type CLXFormRuleNumberComparisonInstance = CLXFormRuleInstanceBase & {
255
250
  subject: CLXFormResponseNumberValue;
256
- predicate: CLXFormResponseNumberValue;
251
+ target: 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.29",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",