@beabee/beabee-common 1.10.15 → 1.10.17

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.
@@ -49,4 +49,7 @@ exports.calloutResponseFilters = {
49
49
  type: "text",
50
50
  nullable: true,
51
51
  },
52
+ tags: {
53
+ type: "array",
54
+ },
52
55
  };
@@ -46,8 +46,8 @@ function validateRule(filters, rule) {
46
46
  }
47
47
  return {
48
48
  field: rule.field,
49
- // param: fieldParam,
50
49
  type: filter.type,
50
+ nullable: !!filter.nullable,
51
51
  operator: rule.operator,
52
52
  value: rule.value,
53
53
  };
@@ -46,4 +46,7 @@ export const calloutResponseFilters = {
46
46
  type: "text",
47
47
  nullable: true,
48
48
  },
49
+ tags: {
50
+ type: "array",
51
+ },
49
52
  };
@@ -42,8 +42,8 @@ export function validateRule(filters, rule) {
42
42
  }
43
43
  return {
44
44
  field: rule.field,
45
- // param: fieldParam,
46
45
  type: filter.type,
46
+ nullable: !!filter.nullable,
47
47
  operator: rule.operator,
48
48
  value: rule.value,
49
49
  };
@@ -42,5 +42,8 @@ export declare const calloutResponseFilters: {
42
42
  readonly type: "text";
43
43
  readonly nullable: true;
44
44
  };
45
+ readonly tags: {
46
+ readonly type: "array";
47
+ };
45
48
  };
46
49
  export type CalloutResponseFilterName = keyof typeof calloutResponseFilters;
@@ -14,6 +14,7 @@ export type ValidatedRuleValue<T extends FilterType> = T extends "number" ? numb
14
14
  interface BaseValidatedRule<T extends FilterType, F extends string> {
15
15
  type: T;
16
16
  field: F;
17
+ nullable: boolean;
17
18
  operator: keyof (typeof operatorsByType)[T];
18
19
  value: ValidatedRuleValue<T>[];
19
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beabee/beabee-common",
3
- "version": "1.10.15",
3
+ "version": "1.10.17",
4
4
  "description": "",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",