@clxmedia/types 1.0.25 → 1.0.27

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.
@@ -45,13 +45,17 @@ export type CLXFormTimeRange = boolean | {
45
45
  start: number;
46
46
  end: number;
47
47
  };
48
+ export type CLXFormDateTime = {
49
+ iso_date_time: string;
50
+ zone: string;
51
+ };
48
52
  export type CLXFormResponseStringValue = CLXFormResponseValueBase & {
49
53
  type: 'STRING';
50
54
  value: string;
51
55
  };
52
56
  export type CLXFormResponseDateValue = CLXFormResponseValueBase & {
53
57
  type: 'DATE';
54
- value: string;
58
+ value: CLXFormDateTime;
55
59
  };
56
60
  export type CLXFormResponseScheduleValue = CLXFormResponseValueBase & {
57
61
  type: 'SCHEDULE';
@@ -197,7 +201,7 @@ export type CLXFormQuestion = {
197
201
  export type CLXFormQuestions = {
198
202
  [questionSlug: string]: CLXFormQuestion;
199
203
  };
200
- export type CLXRuleComparison = 'stringEquals' | 'stringInList' | 'stringListContains' | 'booleanEquals' | 'fileExists' | 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
204
+ export type CLXRuleComparison = 'stringEquals' | 'stringLike' | 'stringInList' | 'stringListContains' | 'stringListLike' | 'booleanEquals' | 'fileExists' | 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
201
205
  export type CLXFormRuleDefinition = {
202
206
  subject: string;
203
207
  predicate: CLXFormResponseValue;
@@ -217,6 +221,11 @@ export type CLXFormRuleStringEqualsInstance = CLXFormRuleInstanceBase & {
217
221
  predicate: CLXFormResponseStringValue;
218
222
  comparisonType: 'stringEquals';
219
223
  };
224
+ export type CLXFormRuleStringLikeInstance = CLXFormRuleInstanceBase & {
225
+ subject: CLXFormResponseStringValue;
226
+ predicate: CLXFormResponseStringValue;
227
+ comparisonType: 'stringLike';
228
+ };
220
229
  export type CLXFormRuleStringInListInstance = CLXFormRuleInstanceBase & {
221
230
  subject: CLXFormResponseStringValue;
222
231
  predicate: CLXFormResponseStringArrayValue;
@@ -232,6 +241,11 @@ export type CLXFormRuleStringListContainsInstance = CLXFormRuleInstanceBase & {
232
241
  predicate: CLXFormResponseStringValue;
233
242
  comparisonType: 'stringListContains';
234
243
  };
244
+ export type CLXFormRuleStringListLikeInstance = CLXFormRuleInstanceBase & {
245
+ subject: CLXFormResponseStringArrayValue;
246
+ predicate: CLXFormResponseStringValue;
247
+ comparisonType: 'stringListLike';
248
+ };
235
249
  export type CLXFormRuleBooleanEqualsInstance = CLXFormRuleInstanceBase & {
236
250
  subject: CLXFormResponseBooleanValue;
237
251
  predicate: CLXFormResponseBooleanValue;
@@ -242,7 +256,7 @@ export type CLXFormRuleNumberComparisonInstance = CLXFormRuleInstanceBase & {
242
256
  predicate: CLXFormResponseNumberValue;
243
257
  comparisonType: 'numberEquals' | 'numberGreaterThan' | 'numberLessThan';
244
258
  };
245
- export type CLXFormRuleInstance = CLXFormRuleStringEqualsInstance | CLXFormRuleStringInListInstance | CLXFormRuleFileExistsInstance | CLXFormRuleStringListContainsInstance | CLXFormRuleBooleanEqualsInstance | CLXFormRuleNumberComparisonInstance;
259
+ export type CLXFormRuleInstance = CLXFormRuleStringEqualsInstance | CLXFormRuleStringLikeInstance | CLXFormRuleStringInListInstance | CLXFormRuleFileExistsInstance | CLXFormRuleStringListContainsInstance | CLXFormRuleStringListLikeInstance | CLXFormRuleBooleanEqualsInstance | CLXFormRuleNumberComparisonInstance;
246
260
  export type CLXFormQuestionLayout = {
247
261
  id: number;
248
262
  form_question_slug: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",