@beabee/beabee-common 1.18.1 → 1.19.0

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.calloutResponseCommentFilters = exports.calloutResponseFilters = exports.calloutFilters = void 0;
4
4
  const data_1 = require("../data");
5
5
  exports.calloutFilters = {
6
+ slug: {
7
+ type: "text",
8
+ },
6
9
  title: {
7
10
  type: "text",
8
11
  },
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.contactFilters = void 0;
4
4
  const data_1 = require("../data");
5
5
  exports.contactFilters = {
6
+ id: {
7
+ type: "text",
8
+ },
6
9
  firstname: {
7
10
  type: "text",
8
11
  },
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.noticeFilters = void 0;
4
4
  const data_1 = require("../data");
5
5
  exports.noticeFilters = {
6
+ id: {
7
+ type: "text",
8
+ },
6
9
  createdAt: {
7
10
  type: "date",
8
11
  },
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paymentFilters = void 0;
4
4
  const data_1 = require("../data");
5
5
  exports.paymentFilters = {
6
+ id: {
7
+ type: "text",
8
+ },
6
9
  contact: {
7
10
  type: "contact",
8
11
  },
@@ -96,7 +96,7 @@ function stringifyAnswer(component, answer) {
96
96
  return "";
97
97
  }
98
98
  else if (isAddressAnswer(answer)) {
99
- return answer.formatted_address;
99
+ return answer.geometry.location.lat + ", " + answer.geometry.location.lng;
100
100
  }
101
101
  else if (isFileUploadAnswer(answer)) {
102
102
  return answer.url;
@@ -1,5 +1,8 @@
1
1
  import { ItemStatus } from "../data";
2
2
  export const calloutFilters = {
3
+ slug: {
4
+ type: "text",
5
+ },
3
6
  title: {
4
7
  type: "text",
5
8
  },
@@ -1,5 +1,8 @@
1
1
  import { ContributionPeriod, ContributionType, NewsletterStatus, RoleTypes, } from "../data";
2
2
  export const contactFilters = {
3
+ id: {
4
+ type: "text",
5
+ },
3
6
  firstname: {
4
7
  type: "text",
5
8
  },
@@ -1,5 +1,8 @@
1
1
  import { ItemStatus } from "../data";
2
2
  export const noticeFilters = {
3
+ id: {
4
+ type: "text",
5
+ },
3
6
  createdAt: {
4
7
  type: "date",
5
8
  },
@@ -1,5 +1,8 @@
1
1
  import { PaymentStatus } from "../data";
2
2
  export const paymentFilters = {
3
+ id: {
4
+ type: "text",
5
+ },
3
6
  contact: {
4
7
  type: "contact",
5
8
  },
@@ -87,7 +87,7 @@ export function stringifyAnswer(component, answer) {
87
87
  return "";
88
88
  }
89
89
  else if (isAddressAnswer(answer)) {
90
- return answer.formatted_address;
90
+ return answer.geometry.location.lat + ", " + answer.geometry.location.lng;
91
91
  }
92
92
  else if (isFileUploadAnswer(answer)) {
93
93
  return answer.url;
@@ -1,5 +1,8 @@
1
1
  import { ItemStatus } from "../data";
2
2
  export declare const calloutFilters: {
3
+ readonly slug: {
4
+ readonly type: "text";
5
+ };
3
6
  readonly title: {
4
7
  readonly type: "text";
5
8
  };
@@ -1,5 +1,8 @@
1
1
  import { ContributionPeriod, ContributionType, NewsletterStatus } from "../data";
2
2
  export declare const contactFilters: {
3
+ readonly id: {
4
+ readonly type: "text";
5
+ };
3
6
  readonly firstname: {
4
7
  readonly type: "text";
5
8
  };
@@ -1,5 +1,8 @@
1
1
  import { ItemStatus } from "../data";
2
2
  export declare const noticeFilters: {
3
+ readonly id: {
4
+ readonly type: "text";
5
+ };
3
6
  readonly createdAt: {
4
7
  readonly type: "date";
5
8
  };
@@ -1,5 +1,8 @@
1
1
  import { PaymentStatus } from "../data";
2
2
  export declare const paymentFilters: {
3
+ readonly id: {
4
+ readonly type: "text";
5
+ };
3
6
  readonly contact: {
4
7
  readonly type: "contact";
5
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beabee/beabee-common",
3
- "version": "1.18.1",
3
+ "version": "1.19.0",
4
4
  "description": "",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",