@beabee/beabee-common 1.10.14 → 1.10.16

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.
@@ -29,6 +29,9 @@ exports.calloutFilters = {
29
29
  },
30
30
  };
31
31
  exports.calloutResponseFilters = {
32
+ id: {
33
+ type: "text",
34
+ },
32
35
  contact: {
33
36
  type: "contact",
34
37
  nullable: true,
@@ -44,6 +47,6 @@ exports.calloutResponseFilters = {
44
47
  },
45
48
  bucket: {
46
49
  type: "text",
47
- nullable: true
48
- }
50
+ nullable: true,
51
+ },
49
52
  };
@@ -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
  };
@@ -26,6 +26,9 @@ export const calloutFilters = {
26
26
  },
27
27
  };
28
28
  export const calloutResponseFilters = {
29
+ id: {
30
+ type: "text",
31
+ },
29
32
  contact: {
30
33
  type: "contact",
31
34
  nullable: true,
@@ -41,6 +44,6 @@ export const calloutResponseFilters = {
41
44
  },
42
45
  bucket: {
43
46
  type: "text",
44
- nullable: true
45
- }
47
+ nullable: true,
48
+ },
46
49
  };
@@ -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
  };
@@ -22,6 +22,9 @@ export declare const calloutFilters: {
22
22
  };
23
23
  export type CalloutFilterName = keyof typeof calloutFilters;
24
24
  export declare const calloutResponseFilters: {
25
+ readonly id: {
26
+ readonly type: "text";
27
+ };
25
28
  readonly contact: {
26
29
  readonly type: "contact";
27
30
  readonly nullable: true;
@@ -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.14",
3
+ "version": "1.10.16",
4
4
  "description": "",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",