@beabee/beabee-common 1.17.0 → 1.17.1

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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paymentFilters = void 0;
4
+ const data_1 = require("../data");
4
5
  exports.paymentFilters = {
5
6
  contact: {
6
7
  type: "contact",
@@ -8,4 +9,16 @@ exports.paymentFilters = {
8
9
  chargeDate: {
9
10
  type: "date",
10
11
  },
12
+ amount: {
13
+ type: "number",
14
+ },
15
+ status: {
16
+ type: "enum",
17
+ options: [
18
+ data_1.PaymentStatus.Successful,
19
+ data_1.PaymentStatus.Pending,
20
+ data_1.PaymentStatus.Failed,
21
+ data_1.PaymentStatus.Cancelled,
22
+ ],
23
+ },
11
24
  };
@@ -1,3 +1,4 @@
1
+ import { PaymentStatus } from "../data";
1
2
  export const paymentFilters = {
2
3
  contact: {
3
4
  type: "contact",
@@ -5,4 +6,16 @@ export const paymentFilters = {
5
6
  chargeDate: {
6
7
  type: "date",
7
8
  },
9
+ amount: {
10
+ type: "number",
11
+ },
12
+ status: {
13
+ type: "enum",
14
+ options: [
15
+ PaymentStatus.Successful,
16
+ PaymentStatus.Pending,
17
+ PaymentStatus.Failed,
18
+ PaymentStatus.Cancelled,
19
+ ],
20
+ },
8
21
  };
@@ -1,3 +1,4 @@
1
+ import { PaymentStatus } from "../data";
1
2
  export declare const paymentFilters: {
2
3
  readonly contact: {
3
4
  readonly type: "contact";
@@ -5,5 +6,12 @@ export declare const paymentFilters: {
5
6
  readonly chargeDate: {
6
7
  readonly type: "date";
7
8
  };
9
+ readonly amount: {
10
+ readonly type: "number";
11
+ };
12
+ readonly status: {
13
+ readonly type: "enum";
14
+ readonly options: readonly [PaymentStatus.Successful, PaymentStatus.Pending, PaymentStatus.Failed, PaymentStatus.Cancelled];
15
+ };
8
16
  };
9
17
  export type PaymentFilterName = keyof typeof paymentFilters;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beabee/beabee-common",
3
- "version": "1.17.0",
3
+ "version": "1.17.1",
4
4
  "description": "",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",