@beabee/beabee-common 1.19.6 → 1.19.7
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/README.md +41 -0
- package/dist/cjs/data/index.cjs +87 -0
- package/dist/cjs/error/InvalidRule.cjs +35 -0
- package/dist/cjs/error/index.cjs +22 -0
- package/dist/cjs/index.cjs +28 -0
- package/dist/cjs/search/api-keys.cjs +35 -0
- package/dist/cjs/search/callouts.cjs +131 -0
- package/dist/cjs/search/contacts.cjs +105 -0
- package/dist/cjs/search/index.cjs +32 -0
- package/dist/cjs/search/notices.cjs +61 -0
- package/dist/cjs/search/operators.cjs +89 -0
- package/dist/cjs/search/payments.cjs +51 -0
- package/dist/cjs/types/api-key-filter-name.cjs +16 -0
- package/dist/cjs/types/array-filter-args.cjs +16 -0
- package/dist/cjs/types/base-callout-component-schema.cjs +16 -0
- package/dist/cjs/types/base-filter-args.cjs +16 -0
- package/dist/cjs/types/base-validated-rule.cjs +16 -0
- package/dist/cjs/types/callout-component-schema.cjs +16 -0
- package/dist/cjs/types/callout-filter-name.cjs +16 -0
- package/dist/cjs/types/callout-form-schema.cjs +16 -0
- package/dist/cjs/types/callout-navigation-schema.cjs +16 -0
- package/dist/cjs/types/callout-response-answer-address.cjs +16 -0
- package/dist/cjs/types/callout-response-answer-file-upload.cjs +16 -0
- package/dist/cjs/types/callout-response-answer.cjs +16 -0
- package/dist/cjs/types/callout-response-answers.cjs +16 -0
- package/dist/cjs/types/callout-response-comment-filter-name.cjs +16 -0
- package/dist/cjs/types/callout-response-filter-name.cjs +16 -0
- package/dist/cjs/types/callout-slide-schema.cjs +16 -0
- package/dist/cjs/types/callout-tag-filter-name.cjs +16 -0
- package/dist/cjs/types/content-callout-component-schema.cjs +16 -0
- package/dist/cjs/types/date-unit.cjs +16 -0
- package/dist/cjs/types/duration.cjs +16 -0
- package/dist/cjs/types/enum-filter-args.cjs +16 -0
- package/dist/cjs/types/feeable.cjs +16 -0
- package/dist/cjs/types/filter-args.cjs +16 -0
- package/dist/cjs/types/filter-type.cjs +16 -0
- package/dist/cjs/types/filters.cjs +16 -0
- package/dist/cjs/types/index.cjs +120 -0
- package/dist/cjs/types/input-callout-component-schema.cjs +16 -0
- package/dist/cjs/types/input-file-callout-component-schema.cjs +16 -0
- package/dist/cjs/types/nestable-callout-component-schema.cjs +16 -0
- package/dist/cjs/types/notice-filter-name.cjs +16 -0
- package/dist/cjs/types/operators-by-type.cjs +16 -0
- package/dist/cjs/types/other-filter-args.cjs +16 -0
- package/dist/cjs/types/paginated-query.cjs +16 -0
- package/dist/cjs/types/paginated.cjs +16 -0
- package/dist/cjs/types/payment-filter-name.cjs +16 -0
- package/dist/cjs/types/radio-callout-component-schema.cjs +16 -0
- package/dist/cjs/types/role-type.cjs +16 -0
- package/dist/cjs/types/rule-group.cjs +16 -0
- package/dist/cjs/types/rule-operator.cjs +16 -0
- package/dist/cjs/types/rule-opperator-params.cjs +16 -0
- package/dist/cjs/types/rule-value.cjs +16 -0
- package/dist/cjs/types/rule.cjs +16 -0
- package/dist/cjs/types/select-callout-component-schema.cjs +16 -0
- package/dist/cjs/types/stripe-fee-country.cjs +16 -0
- package/dist/cjs/types/unit-matches.cjs +16 -0
- package/dist/cjs/types/validated-boolean-rule.cjs +16 -0
- package/dist/cjs/types/validated-number-rule.cjs +16 -0
- package/dist/cjs/types/validated-rule-group.cjs +16 -0
- package/dist/cjs/types/validated-rule-value.cjs +16 -0
- package/dist/cjs/types/validated-rule.cjs +16 -0
- package/dist/cjs/types/validated-string-rule.cjs +16 -0
- package/dist/cjs/utils/callouts.cjs +137 -0
- package/dist/cjs/utils/date.cjs +87 -0
- package/dist/cjs/utils/index.cjs +28 -0
- package/dist/cjs/utils/payments.cjs +53 -0
- package/dist/cjs/utils/rules.cjs +109 -0
- package/dist/esm/data/index.js +57 -50
- package/dist/esm/error/InvalidRule.js +10 -7
- package/dist/esm/error/index.js +1 -2
- package/dist/esm/index.js +4 -7
- package/dist/esm/search/api-keys.js +10 -7
- package/dist/esm/search/callouts.js +100 -94
- package/dist/esm/search/contacts.js +83 -74
- package/dist/esm/search/index.js +6 -64
- package/dist/esm/search/notices.js +36 -33
- package/dist/esm/search/operators.js +62 -0
- package/dist/esm/search/payments.js +26 -23
- package/dist/esm/types/api-key-filter-name.js +0 -0
- package/dist/esm/types/array-filter-args.js +0 -0
- package/dist/esm/types/base-callout-component-schema.js +0 -0
- package/dist/esm/types/base-filter-args.js +0 -0
- package/dist/esm/types/base-validated-rule.js +0 -0
- package/dist/esm/types/callout-component-schema.js +0 -0
- package/dist/esm/types/callout-filter-name.js +0 -0
- package/dist/esm/types/callout-form-schema.js +0 -0
- package/dist/esm/types/callout-navigation-schema.js +0 -0
- package/dist/esm/types/callout-response-answer-address.js +0 -0
- package/dist/esm/types/callout-response-answer-file-upload.js +0 -0
- package/dist/esm/types/callout-response-answer.js +0 -0
- package/dist/esm/types/callout-response-answers.js +0 -0
- package/dist/esm/types/callout-response-comment-filter-name.js +0 -0
- package/dist/esm/types/callout-response-filter-name.js +0 -0
- package/dist/esm/types/callout-slide-schema.js +0 -0
- package/dist/esm/types/callout-tag-filter-name.js +0 -0
- package/dist/esm/types/content-callout-component-schema.js +0 -0
- package/dist/esm/types/date-unit.js +0 -0
- package/dist/esm/types/duration.js +0 -0
- package/dist/esm/types/enum-filter-args.js +0 -0
- package/dist/esm/types/feeable.js +0 -0
- package/dist/esm/types/filter-args.js +0 -0
- package/dist/esm/types/filter-type.js +0 -0
- package/dist/esm/types/filters.js +0 -0
- package/dist/esm/types/index.js +50 -0
- package/dist/esm/types/input-callout-component-schema.js +0 -0
- package/dist/esm/types/input-file-callout-component-schema.js +0 -0
- package/dist/esm/types/nestable-callout-component-schema.js +0 -0
- package/dist/esm/types/notice-filter-name.js +0 -0
- package/dist/esm/types/operators-by-type.js +0 -0
- package/dist/esm/types/other-filter-args.js +0 -0
- package/dist/esm/types/paginated-query.js +0 -0
- package/dist/esm/types/paginated.js +0 -0
- package/dist/esm/types/payment-filter-name.js +0 -0
- package/dist/esm/types/radio-callout-component-schema.js +0 -0
- package/dist/esm/types/role-type.js +0 -0
- package/dist/esm/types/rule-group.js +0 -0
- package/dist/esm/types/rule-operator.js +0 -0
- package/dist/esm/types/rule-opperator-params.js +0 -0
- package/dist/esm/types/rule-value.js +0 -0
- package/dist/esm/types/rule.js +0 -0
- package/dist/esm/types/select-callout-component-schema.js +0 -0
- package/dist/esm/types/stripe-fee-country.js +0 -0
- package/dist/esm/types/unit-matches.js +0 -0
- package/dist/esm/types/validated-boolean-rule.js +0 -0
- package/dist/esm/types/validated-number-rule.js +0 -0
- package/dist/esm/types/validated-rule-group.js +0 -0
- package/dist/esm/types/validated-rule-value.js +0 -0
- package/dist/esm/types/validated-rule.js +0 -0
- package/dist/esm/types/validated-string-rule.js +0 -0
- package/dist/esm/utils/callouts.js +91 -93
- package/dist/esm/utils/date.js +56 -56
- package/dist/esm/utils/index.js +4 -0
- package/dist/esm/utils/payments.js +25 -23
- package/dist/esm/utils/rules.js +75 -58
- package/dist/types/data/index.d.ts +0 -4
- package/dist/types/error/InvalidRule.d.ts +2 -2
- package/dist/types/error/index.d.ts +1 -2
- package/dist/types/index.d.ts +5 -7
- package/dist/types/search/api-keys.d.ts +0 -1
- package/dist/types/search/callouts.d.ts +1 -5
- package/dist/types/search/contacts.d.ts +2 -1
- package/dist/types/search/index.d.ts +6 -194
- package/dist/types/search/notices.d.ts +1 -2
- package/dist/types/search/operators.d.ts +128 -0
- package/dist/types/search/payments.d.ts +1 -2
- package/dist/types/types/api-key-filter-name.d.ts +2 -0
- package/dist/types/types/array-filter-args.d.ts +5 -0
- package/dist/types/types/base-callout-component-schema.d.ts +9 -0
- package/dist/types/types/base-filter-args.d.ts +5 -0
- package/dist/types/types/base-validated-rule.d.ts +9 -0
- package/dist/types/types/callout-component-schema.d.ts +2 -0
- package/dist/types/types/callout-filter-name.d.ts +2 -0
- package/dist/types/types/callout-form-schema.d.ts +4 -0
- package/dist/types/types/callout-navigation-schema.d.ts +6 -0
- package/dist/types/types/callout-response-answer-address.d.ts +9 -0
- package/dist/types/types/callout-response-answer-file-upload.d.ts +3 -0
- package/dist/types/types/callout-response-answer.d.ts +2 -0
- package/dist/types/types/callout-response-answers.d.ts +5 -0
- package/dist/types/types/callout-response-comment-filter-name.d.ts +2 -0
- package/dist/types/types/callout-response-filter-name.d.ts +2 -0
- package/dist/types/types/callout-slide-schema.d.ts +7 -0
- package/dist/types/types/callout-tag-filter-name.d.ts +2 -0
- package/dist/types/types/content-callout-component-schema.d.ts +5 -0
- package/dist/types/types/date-unit.d.ts +2 -0
- package/dist/types/types/duration.d.ts +1 -0
- package/dist/types/types/enum-filter-args.d.ts +5 -0
- package/dist/types/types/feeable.d.ts +6 -0
- package/dist/types/types/filter-args.d.ts +2 -0
- package/dist/types/types/filter-type.d.ts +1 -0
- package/dist/types/types/filters.d.ts +2 -0
- package/dist/types/types/index.d.ts +50 -0
- package/dist/types/types/input-callout-component-schema.d.ts +6 -0
- package/dist/types/types/input-file-callout-component-schema.d.ts +5 -0
- package/dist/types/types/nestable-callout-component-schema.d.ts +6 -0
- package/dist/types/types/notice-filter-name.d.ts +2 -0
- package/dist/types/types/operators-by-type.d.ts +2 -0
- package/dist/types/types/other-filter-args.d.ts +4 -0
- package/dist/types/types/paginated-query.d.ts +8 -0
- package/dist/types/types/paginated.d.ts +6 -0
- package/dist/types/types/payment-filter-name.d.ts +2 -0
- package/dist/types/types/radio-callout-component-schema.d.ts +10 -0
- package/dist/types/types/role-type.d.ts +2 -0
- package/dist/types/types/rule-group.d.ts +5 -0
- package/dist/types/types/rule-operator.d.ts +2 -0
- package/dist/types/types/rule-opperator-params.d.ts +3 -0
- package/dist/types/types/rule-value.d.ts +1 -0
- package/dist/types/types/rule.d.ts +6 -0
- package/dist/types/types/select-callout-component-schema.d.ts +11 -0
- package/dist/types/types/stripe-fee-country.d.ts +1 -0
- package/dist/types/types/unit-matches.d.ts +2 -0
- package/dist/types/types/validated-boolean-rule.d.ts +2 -0
- package/dist/types/types/validated-number-rule.d.ts +2 -0
- package/dist/types/types/validated-rule-group.d.ts +5 -0
- package/dist/types/types/validated-rule-value.d.ts +2 -0
- package/dist/types/types/validated-rule.d.ts +2 -0
- package/dist/types/types/validated-string-rule.d.ts +2 -0
- package/dist/types/utils/callouts.d.ts +1 -3
- package/dist/types/utils/date.d.ts +3 -3
- package/dist/types/utils/index.d.ts +4 -0
- package/dist/types/utils/payments.d.ts +1 -7
- package/dist/types/utils/rules.d.ts +1 -1
- package/package.json +31 -12
- package/dist/cjs/data/callouts.js +0 -2
- package/dist/cjs/data/index.js +0 -67
- package/dist/cjs/error/InvalidRule.js +0 -11
- package/dist/cjs/error/index.js +0 -8
- package/dist/cjs/index.js +0 -23
- package/dist/cjs/search/api-keys.js +0 -11
- package/dist/cjs/search/callouts.js +0 -101
- package/dist/cjs/search/contacts.js +0 -78
- package/dist/cjs/search/index.js +0 -81
- package/dist/cjs/search/notices.js +0 -37
- package/dist/cjs/search/payments.js +0 -27
- package/dist/cjs/utils/callouts.js +0 -118
- package/dist/cjs/utils/date.js +0 -77
- package/dist/cjs/utils/payments.js +0 -31
- package/dist/cjs/utils/rules.js +0 -69
- package/dist/esm/data/callouts.js +0 -1
- package/dist/types/data/callouts.d.ts +0 -70
|
@@ -1,75 +1,84 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
1
|
+
import {
|
|
2
|
+
ContributionPeriod,
|
|
3
|
+
ContributionType,
|
|
4
|
+
NewsletterStatus
|
|
5
|
+
} from "../data/index.js";
|
|
6
|
+
const RoleTypes = ["member", "admin", "superadmin"];
|
|
7
|
+
const contactFilters = {
|
|
8
|
+
id: {
|
|
9
|
+
type: "contact"
|
|
10
|
+
},
|
|
11
|
+
firstname: {
|
|
12
|
+
type: "text"
|
|
13
|
+
},
|
|
14
|
+
lastname: {
|
|
15
|
+
type: "text"
|
|
16
|
+
},
|
|
17
|
+
email: {
|
|
18
|
+
type: "text"
|
|
19
|
+
},
|
|
20
|
+
joined: {
|
|
21
|
+
type: "date"
|
|
22
|
+
},
|
|
23
|
+
lastSeen: {
|
|
24
|
+
type: "date"
|
|
25
|
+
},
|
|
26
|
+
contributionCancelled: {
|
|
27
|
+
type: "date",
|
|
28
|
+
nullable: true
|
|
29
|
+
},
|
|
30
|
+
contributionType: {
|
|
31
|
+
type: "enum",
|
|
32
|
+
options: [
|
|
33
|
+
ContributionType.Automatic,
|
|
34
|
+
ContributionType.Gift,
|
|
35
|
+
ContributionType.Manual,
|
|
36
|
+
ContributionType.None
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
contributionMonthlyAmount: {
|
|
40
|
+
type: "number"
|
|
41
|
+
},
|
|
42
|
+
contributionPeriod: {
|
|
43
|
+
type: "enum",
|
|
44
|
+
options: [ContributionPeriod.Monthly, ContributionPeriod.Annually]
|
|
45
|
+
},
|
|
46
|
+
deliveryOptIn: {
|
|
47
|
+
type: "boolean"
|
|
48
|
+
},
|
|
49
|
+
newsletterStatus: {
|
|
50
|
+
type: "enum",
|
|
51
|
+
options: [
|
|
52
|
+
NewsletterStatus.Subscribed,
|
|
53
|
+
NewsletterStatus.Unsubscribed,
|
|
54
|
+
NewsletterStatus.Cleaned,
|
|
55
|
+
NewsletterStatus.Pending,
|
|
56
|
+
NewsletterStatus.None
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
activePermission: {
|
|
60
|
+
type: "enum",
|
|
61
|
+
options: RoleTypes
|
|
62
|
+
},
|
|
63
|
+
activeMembership: {
|
|
64
|
+
type: "boolean"
|
|
65
|
+
},
|
|
66
|
+
membershipStarts: {
|
|
67
|
+
type: "date"
|
|
68
|
+
},
|
|
69
|
+
membershipExpires: {
|
|
70
|
+
type: "date"
|
|
71
|
+
},
|
|
72
|
+
manualPaymentSource: {
|
|
73
|
+
type: "text",
|
|
74
|
+
nullable: true
|
|
75
|
+
},
|
|
76
|
+
tags: {
|
|
77
|
+
type: "array",
|
|
78
|
+
nullable: true
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
RoleTypes,
|
|
83
|
+
contactFilters
|
|
75
84
|
};
|
package/dist/esm/search/index.js
CHANGED
|
@@ -1,64 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"greater",
|
|
8
|
-
"greater_or_equal",
|
|
9
|
-
"between",
|
|
10
|
-
"not_between",
|
|
11
|
-
"begins_with",
|
|
12
|
-
"not_begins_with",
|
|
13
|
-
"contains",
|
|
14
|
-
"not_contains",
|
|
15
|
-
"ends_with",
|
|
16
|
-
"not_ends_with",
|
|
17
|
-
"is_empty",
|
|
18
|
-
"is_not_empty",
|
|
19
|
-
];
|
|
20
|
-
const equalityOperators = {
|
|
21
|
-
equal: { args: 1 },
|
|
22
|
-
not_equal: { args: 1 },
|
|
23
|
-
};
|
|
24
|
-
const stringOperators = {
|
|
25
|
-
begins_with: { args: 1 },
|
|
26
|
-
ends_with: { args: 1 },
|
|
27
|
-
not_begins_with: { args: 1 },
|
|
28
|
-
not_ends_with: { args: 1 },
|
|
29
|
-
};
|
|
30
|
-
const numericOperators = {
|
|
31
|
-
...equalityOperators,
|
|
32
|
-
between: { args: 2 },
|
|
33
|
-
not_between: { args: 2 },
|
|
34
|
-
less: { args: 1 },
|
|
35
|
-
greater: { args: 1 },
|
|
36
|
-
less_or_equal: { args: 1 },
|
|
37
|
-
greater_or_equal: { args: 1 },
|
|
38
|
-
};
|
|
39
|
-
const arrayOperators = {
|
|
40
|
-
contains: { args: 1 },
|
|
41
|
-
not_contains: { args: 1 },
|
|
42
|
-
};
|
|
43
|
-
// Special operator can be applied across all fields if they are nullable
|
|
44
|
-
export const nullableOperators = {
|
|
45
|
-
is_empty: { args: 0 },
|
|
46
|
-
is_not_empty: { args: 0 },
|
|
47
|
-
};
|
|
48
|
-
export const operatorsByType = {
|
|
49
|
-
text: { ...equalityOperators, ...arrayOperators, ...stringOperators },
|
|
50
|
-
blob: arrayOperators,
|
|
51
|
-
date: numericOperators,
|
|
52
|
-
number: numericOperators,
|
|
53
|
-
boolean: { equal: equalityOperators.equal },
|
|
54
|
-
array: arrayOperators,
|
|
55
|
-
enum: equalityOperators,
|
|
56
|
-
contact: equalityOperators,
|
|
57
|
-
};
|
|
58
|
-
// More general type to allow mapping while maintaining full type above
|
|
59
|
-
export const operatorsByTypeMap = operatorsByType;
|
|
60
|
-
export * from "./api-keys";
|
|
61
|
-
export * from "./callouts";
|
|
62
|
-
export * from "./contacts";
|
|
63
|
-
export * from "./notices";
|
|
64
|
-
export * from "./payments";
|
|
1
|
+
export * from "./api-keys.js";
|
|
2
|
+
export * from "./callouts.js";
|
|
3
|
+
export * from "./contacts.js";
|
|
4
|
+
export * from "./notices.js";
|
|
5
|
+
export * from "./operators.js";
|
|
6
|
+
export * from "./payments.js";
|
|
@@ -1,34 +1,37 @@
|
|
|
1
|
-
import { ItemStatus } from "../data";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
import { ItemStatus } from "../data/index.js";
|
|
2
|
+
const noticeFilters = {
|
|
3
|
+
id: {
|
|
4
|
+
type: "text"
|
|
5
|
+
},
|
|
6
|
+
createdAt: {
|
|
7
|
+
type: "date"
|
|
8
|
+
},
|
|
9
|
+
updatedAt: {
|
|
10
|
+
type: "date"
|
|
11
|
+
},
|
|
12
|
+
name: {
|
|
13
|
+
type: "text"
|
|
14
|
+
},
|
|
15
|
+
expires: {
|
|
16
|
+
type: "date",
|
|
17
|
+
nullable: true
|
|
18
|
+
},
|
|
19
|
+
enabled: {
|
|
20
|
+
type: "boolean"
|
|
21
|
+
},
|
|
22
|
+
text: {
|
|
23
|
+
type: "text"
|
|
24
|
+
},
|
|
25
|
+
status: {
|
|
26
|
+
type: "enum",
|
|
27
|
+
options: [
|
|
28
|
+
ItemStatus.Draft,
|
|
29
|
+
ItemStatus.Scheduled,
|
|
30
|
+
ItemStatus.Open,
|
|
31
|
+
ItemStatus.Ended
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
noticeFilters
|
|
34
37
|
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const equalityOperators = {
|
|
2
|
+
equal: { args: 1 },
|
|
3
|
+
not_equal: { args: 1 }
|
|
4
|
+
};
|
|
5
|
+
const stringOperators = {
|
|
6
|
+
begins_with: { args: 1 },
|
|
7
|
+
ends_with: { args: 1 },
|
|
8
|
+
not_begins_with: { args: 1 },
|
|
9
|
+
not_ends_with: { args: 1 }
|
|
10
|
+
};
|
|
11
|
+
const numericOperators = {
|
|
12
|
+
...equalityOperators,
|
|
13
|
+
between: { args: 2 },
|
|
14
|
+
not_between: { args: 2 },
|
|
15
|
+
less: { args: 1 },
|
|
16
|
+
greater: { args: 1 },
|
|
17
|
+
less_or_equal: { args: 1 },
|
|
18
|
+
greater_or_equal: { args: 1 }
|
|
19
|
+
};
|
|
20
|
+
const arrayOperators = {
|
|
21
|
+
contains: { args: 1 },
|
|
22
|
+
not_contains: { args: 1 }
|
|
23
|
+
};
|
|
24
|
+
const nullableOperators = {
|
|
25
|
+
is_empty: { args: 0 },
|
|
26
|
+
is_not_empty: { args: 0 }
|
|
27
|
+
};
|
|
28
|
+
const operatorsByType = {
|
|
29
|
+
text: { ...equalityOperators, ...arrayOperators, ...stringOperators },
|
|
30
|
+
blob: arrayOperators,
|
|
31
|
+
date: numericOperators,
|
|
32
|
+
number: numericOperators,
|
|
33
|
+
boolean: { equal: equalityOperators.equal },
|
|
34
|
+
array: arrayOperators,
|
|
35
|
+
enum: equalityOperators,
|
|
36
|
+
contact: equalityOperators
|
|
37
|
+
};
|
|
38
|
+
const operatorsByTypeMap = operatorsByType;
|
|
39
|
+
const ruleOperators = [
|
|
40
|
+
"equal",
|
|
41
|
+
"not_equal",
|
|
42
|
+
"less",
|
|
43
|
+
"less_or_equal",
|
|
44
|
+
"greater",
|
|
45
|
+
"greater_or_equal",
|
|
46
|
+
"between",
|
|
47
|
+
"not_between",
|
|
48
|
+
"begins_with",
|
|
49
|
+
"not_begins_with",
|
|
50
|
+
"contains",
|
|
51
|
+
"not_contains",
|
|
52
|
+
"ends_with",
|
|
53
|
+
"not_ends_with",
|
|
54
|
+
"is_empty",
|
|
55
|
+
"is_not_empty"
|
|
56
|
+
];
|
|
57
|
+
export {
|
|
58
|
+
nullableOperators,
|
|
59
|
+
operatorsByType,
|
|
60
|
+
operatorsByTypeMap,
|
|
61
|
+
ruleOperators
|
|
62
|
+
};
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
import { PaymentStatus } from "../data";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { PaymentStatus } from "../data/index.js";
|
|
2
|
+
const paymentFilters = {
|
|
3
|
+
id: {
|
|
4
|
+
type: "text"
|
|
5
|
+
},
|
|
6
|
+
contact: {
|
|
7
|
+
type: "contact"
|
|
8
|
+
},
|
|
9
|
+
chargeDate: {
|
|
10
|
+
type: "date"
|
|
11
|
+
},
|
|
12
|
+
amount: {
|
|
13
|
+
type: "number"
|
|
14
|
+
},
|
|
15
|
+
status: {
|
|
16
|
+
type: "enum",
|
|
17
|
+
options: [
|
|
18
|
+
PaymentStatus.Successful,
|
|
19
|
+
PaymentStatus.Pending,
|
|
20
|
+
PaymentStatus.Failed,
|
|
21
|
+
PaymentStatus.Cancelled
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
paymentFilters
|
|
24
27
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export * from "./api-key-filter-name.js";
|
|
2
|
+
export * from "./array-filter-args.js";
|
|
3
|
+
export * from "./base-callout-component-schema.js";
|
|
4
|
+
export * from "./base-filter-args.js";
|
|
5
|
+
export * from "./base-validated-rule.js";
|
|
6
|
+
export * from "./callout-component-schema.js";
|
|
7
|
+
export * from "./callout-filter-name.js";
|
|
8
|
+
export * from "./callout-form-schema.js";
|
|
9
|
+
export * from "./callout-navigation-schema.js";
|
|
10
|
+
export * from "./callout-response-answer-address.js";
|
|
11
|
+
export * from "./callout-response-answer-file-upload.js";
|
|
12
|
+
export * from "./callout-response-answer.js";
|
|
13
|
+
export * from "./callout-response-answers.js";
|
|
14
|
+
export * from "./callout-response-comment-filter-name.js";
|
|
15
|
+
export * from "./callout-response-filter-name.js";
|
|
16
|
+
export * from "./callout-slide-schema.js";
|
|
17
|
+
export * from "./callout-tag-filter-name.js";
|
|
18
|
+
export * from "./content-callout-component-schema.js";
|
|
19
|
+
export * from "./date-unit.js";
|
|
20
|
+
export * from "./duration.js";
|
|
21
|
+
export * from "./enum-filter-args.js";
|
|
22
|
+
export * from "./feeable.js";
|
|
23
|
+
export * from "./filter-args.js";
|
|
24
|
+
export * from "./filter-type.js";
|
|
25
|
+
export * from "./filters.js";
|
|
26
|
+
export * from "./input-callout-component-schema.js";
|
|
27
|
+
export * from "./input-file-callout-component-schema.js";
|
|
28
|
+
export * from "./nestable-callout-component-schema.js";
|
|
29
|
+
export * from "./notice-filter-name.js";
|
|
30
|
+
export * from "./operators-by-type.js";
|
|
31
|
+
export * from "./other-filter-args.js";
|
|
32
|
+
export * from "./paginated-query.js";
|
|
33
|
+
export * from "./paginated.js";
|
|
34
|
+
export * from "./payment-filter-name.js";
|
|
35
|
+
export * from "./radio-callout-component-schema.js";
|
|
36
|
+
export * from "./role-type.js";
|
|
37
|
+
export * from "./rule-group.js";
|
|
38
|
+
export * from "./rule-operator.js";
|
|
39
|
+
export * from "./rule-opperator-params.js";
|
|
40
|
+
export * from "./rule-value.js";
|
|
41
|
+
export * from "./rule.js";
|
|
42
|
+
export * from "./select-callout-component-schema.js";
|
|
43
|
+
export * from "./stripe-fee-country.js";
|
|
44
|
+
export * from "./unit-matches.js";
|
|
45
|
+
export * from "./validated-boolean-rule.js";
|
|
46
|
+
export * from "./validated-number-rule.js";
|
|
47
|
+
export * from "./validated-rule-group.js";
|
|
48
|
+
export * from "./validated-rule-value.js";
|
|
49
|
+
export * from "./validated-rule.js";
|
|
50
|
+
export * from "./validated-string-rule.js";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|