@beabee/beabee-common 1.19.11 → 1.19.13

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.
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.calloutTagFilters = exports.calloutResponseCommentFilters = exports.calloutResponseFilters = exports.calloutFilters = void 0;
4
4
  const data_1 = require("../data");
5
5
  exports.calloutFilters = {
6
+ id: {
7
+ type: "text",
8
+ },
6
9
  slug: {
7
10
  type: "text",
8
11
  },
@@ -41,7 +44,7 @@ exports.calloutResponseFilters = {
41
44
  type: "contact",
42
45
  nullable: true,
43
46
  },
44
- callout: {
47
+ calloutId: {
45
48
  type: "text",
46
49
  },
47
50
  createdAt: {
@@ -95,7 +98,7 @@ exports.calloutTagFilters = {
95
98
  description: {
96
99
  type: "text",
97
100
  },
98
- calloutSlug: {
101
+ calloutId: {
99
102
  type: "text",
100
103
  },
101
104
  };
@@ -1,5 +1,8 @@
1
1
  import { ItemStatus } from "../data";
2
2
  export const calloutFilters = {
3
+ id: {
4
+ type: "text",
5
+ },
3
6
  slug: {
4
7
  type: "text",
5
8
  },
@@ -38,7 +41,7 @@ export const calloutResponseFilters = {
38
41
  type: "contact",
39
42
  nullable: true,
40
43
  },
41
- callout: {
44
+ calloutId: {
42
45
  type: "text",
43
46
  },
44
47
  createdAt: {
@@ -92,7 +95,7 @@ export const calloutTagFilters = {
92
95
  description: {
93
96
  type: "text",
94
97
  },
95
- calloutSlug: {
98
+ calloutId: {
96
99
  type: "text",
97
100
  },
98
101
  };
@@ -1,5 +1,8 @@
1
1
  import { ItemStatus } from "../data";
2
2
  export declare const calloutFilters: {
3
+ readonly id: {
4
+ readonly type: "text";
5
+ };
3
6
  readonly slug: {
4
7
  readonly type: "text";
5
8
  };
@@ -34,7 +37,7 @@ export declare const calloutResponseFilters: {
34
37
  readonly type: "contact";
35
38
  readonly nullable: true;
36
39
  };
37
- readonly callout: {
40
+ readonly calloutId: {
38
41
  readonly type: "text";
39
42
  };
40
43
  readonly createdAt: {
@@ -90,7 +93,7 @@ export declare const calloutTagFilters: {
90
93
  readonly description: {
91
94
  readonly type: "text";
92
95
  };
93
- readonly calloutSlug: {
96
+ readonly calloutId: {
94
97
  readonly type: "text";
95
98
  };
96
99
  };
@@ -1,15 +1,22 @@
1
- import { CalloutComponentSchema, CalloutFormSchema, CalloutResponseAnswer } from "../data/callouts";
1
+ import { CalloutComponentSchema, CalloutResponseAnswer } from "../data/callouts";
2
2
  import { FilterArgs } from "../search";
3
3
  import { CalloutResponseAnswerAddress, CalloutResponseAnswerFileUpload } from "../data/callouts";
4
4
  export declare function flattenComponents(components: CalloutComponentSchema[]): CalloutComponentSchema[];
5
5
  export declare function filterComponents(components: CalloutComponentSchema[], filterFn: (component: CalloutComponentSchema) => boolean): CalloutComponentSchema[];
6
- export declare function getCalloutComponents(formSchema: CalloutFormSchema): (CalloutComponentSchema & {
6
+ interface SimpleCalloutFormSchema {
7
+ slides: {
8
+ id: string;
9
+ components: CalloutComponentSchema[];
10
+ }[];
11
+ }
12
+ export declare function getCalloutComponents(formSchema: SimpleCalloutFormSchema): (CalloutComponentSchema & {
7
13
  slideId: string;
8
14
  fullKey: string;
9
15
  })[];
10
- export declare function getCalloutFilters(formSchema: CalloutFormSchema): Record<string, FilterArgs & {
16
+ export declare function getCalloutFilters(formSchema: SimpleCalloutFormSchema): Record<string, FilterArgs & {
11
17
  label: string;
12
18
  }>;
13
19
  export declare function isAddressAnswer(answer: CalloutResponseAnswer): answer is CalloutResponseAnswerAddress;
14
20
  export declare function isFileUploadAnswer(answer: CalloutResponseAnswer): answer is CalloutResponseAnswerFileUpload;
15
21
  export declare function stringifyAnswer(component: CalloutComponentSchema, answer: CalloutResponseAnswer | CalloutResponseAnswer[]): string;
22
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beabee/beabee-common",
3
- "version": "1.19.11",
3
+ "version": "1.19.13",
4
4
  "description": "",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",