@beabee/beabee-common 1.13.0 → 1.13.2
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
|
};
|
|
@@ -34,6 +34,8 @@ function convertComponentToFilter(component) {
|
|
|
34
34
|
type: component.type === "radio" ? "enum" : "array",
|
|
35
35
|
options: convertValuesToOptions(component.values),
|
|
36
36
|
};
|
|
37
|
+
case "textarea":
|
|
38
|
+
return { ...baseItem, type: "blob" };
|
|
37
39
|
default:
|
|
38
40
|
return { ...baseItem, type: "text" };
|
|
39
41
|
}
|
|
@@ -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
|
};
|
|
@@ -30,6 +30,8 @@ function convertComponentToFilter(component) {
|
|
|
30
30
|
type: component.type === "radio" ? "enum" : "array",
|
|
31
31
|
options: convertValuesToOptions(component.values),
|
|
32
32
|
};
|
|
33
|
+
case "textarea":
|
|
34
|
+
return { ...baseItem, type: "blob" };
|
|
33
35
|
default:
|
|
34
36
|
return { ...baseItem, type: "text" };
|
|
35
37
|
}
|
|
@@ -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;
|