@beabee/beabee-common 1.9.3 → 1.10.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.
- package/dist/cjs/data/index.js +2 -3
- package/dist/cjs/search/callouts.js +1 -1
- package/dist/cjs/search/contacts.js +1 -1
- package/dist/cjs/search/payments.js +1 -1
- package/dist/esm/data/index.js +1 -2
- package/dist/esm/search/callouts.js +1 -1
- package/dist/esm/search/contacts.js +2 -2
- package/dist/esm/search/payments.js +1 -1
- package/dist/types/data/index.d.ts +2 -3
- package/dist/types/search/callouts.d.ts +1 -1
- package/dist/types/search/payments.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/data/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.RoleTypes = exports.PaymentStatus = exports.PaymentMethod = exports.NewsletterStatus = exports.MembershipStatus = exports.ItemStatus = exports.ContributionType = exports.ContributionPeriod = void 0;
|
|
4
4
|
var ContributionPeriod;
|
|
5
5
|
(function (ContributionPeriod) {
|
|
6
6
|
ContributionPeriod["Monthly"] = "monthly";
|
|
@@ -15,7 +15,6 @@ var ContributionType;
|
|
|
15
15
|
})(ContributionType = exports.ContributionType || (exports.ContributionType = {}));
|
|
16
16
|
var ItemStatus;
|
|
17
17
|
(function (ItemStatus) {
|
|
18
|
-
ItemStatus["New"] = "new";
|
|
19
18
|
ItemStatus["Draft"] = "draft";
|
|
20
19
|
ItemStatus["Scheduled"] = "scheduled";
|
|
21
20
|
ItemStatus["Open"] = "open";
|
|
@@ -50,4 +49,4 @@ var PaymentStatus;
|
|
|
50
49
|
PaymentStatus["Failed"] = "failed";
|
|
51
50
|
PaymentStatus["Cancelled"] = "cancelled";
|
|
52
51
|
})(PaymentStatus = exports.PaymentStatus || (exports.PaymentStatus = {}));
|
|
53
|
-
exports.
|
|
52
|
+
exports.RoleTypes = ["member", "admin", "superadmin"];
|
package/dist/esm/data/index.js
CHANGED
|
@@ -12,7 +12,6 @@ export var ContributionType;
|
|
|
12
12
|
})(ContributionType || (ContributionType = {}));
|
|
13
13
|
export var ItemStatus;
|
|
14
14
|
(function (ItemStatus) {
|
|
15
|
-
ItemStatus["New"] = "new";
|
|
16
15
|
ItemStatus["Draft"] = "draft";
|
|
17
16
|
ItemStatus["Scheduled"] = "scheduled";
|
|
18
17
|
ItemStatus["Open"] = "open";
|
|
@@ -47,4 +46,4 @@ export var PaymentStatus;
|
|
|
47
46
|
PaymentStatus["Failed"] = "failed";
|
|
48
47
|
PaymentStatus["Cancelled"] = "cancelled";
|
|
49
48
|
})(PaymentStatus || (PaymentStatus = {}));
|
|
50
|
-
export const
|
|
49
|
+
export const RoleTypes = ["member", "admin", "superadmin"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContributionPeriod, ContributionType, NewsletterStatus,
|
|
1
|
+
import { ContributionPeriod, ContributionType, NewsletterStatus, RoleTypes, } from "../data";
|
|
2
2
|
export const contactFilters = {
|
|
3
3
|
firstname: {
|
|
4
4
|
type: "text",
|
|
@@ -48,7 +48,7 @@ export const contactFilters = {
|
|
|
48
48
|
},
|
|
49
49
|
activePermission: {
|
|
50
50
|
type: "enum",
|
|
51
|
-
options:
|
|
51
|
+
options: RoleTypes,
|
|
52
52
|
},
|
|
53
53
|
activeMembership: {
|
|
54
54
|
type: "boolean",
|
|
@@ -9,7 +9,6 @@ export declare enum ContributionType {
|
|
|
9
9
|
None = "None"
|
|
10
10
|
}
|
|
11
11
|
export declare enum ItemStatus {
|
|
12
|
-
New = "new",
|
|
13
12
|
Draft = "draft",
|
|
14
13
|
Scheduled = "scheduled",
|
|
15
14
|
Open = "open",
|
|
@@ -40,5 +39,5 @@ export declare enum PaymentStatus {
|
|
|
40
39
|
Failed = "failed",
|
|
41
40
|
Cancelled = "cancelled"
|
|
42
41
|
}
|
|
43
|
-
export declare const
|
|
44
|
-
export declare type
|
|
42
|
+
export declare const RoleTypes: readonly ["member", "admin", "superadmin"];
|
|
43
|
+
export declare type RoleType = typeof RoleTypes[number];
|
|
@@ -22,7 +22,7 @@ export declare const calloutFilters: {
|
|
|
22
22
|
};
|
|
23
23
|
export declare type CalloutFilterName = keyof typeof calloutFilters;
|
|
24
24
|
export declare const calloutResponseFilters: {
|
|
25
|
-
readonly
|
|
25
|
+
readonly contact: {
|
|
26
26
|
readonly type: "contact";
|
|
27
27
|
};
|
|
28
28
|
readonly poll: {
|