@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.
Files changed (220) hide show
  1. package/README.md +41 -0
  2. package/dist/cjs/data/index.cjs +87 -0
  3. package/dist/cjs/error/InvalidRule.cjs +35 -0
  4. package/dist/cjs/error/index.cjs +22 -0
  5. package/dist/cjs/index.cjs +28 -0
  6. package/dist/cjs/search/api-keys.cjs +35 -0
  7. package/dist/cjs/search/callouts.cjs +131 -0
  8. package/dist/cjs/search/contacts.cjs +105 -0
  9. package/dist/cjs/search/index.cjs +32 -0
  10. package/dist/cjs/search/notices.cjs +61 -0
  11. package/dist/cjs/search/operators.cjs +89 -0
  12. package/dist/cjs/search/payments.cjs +51 -0
  13. package/dist/cjs/types/api-key-filter-name.cjs +16 -0
  14. package/dist/cjs/types/array-filter-args.cjs +16 -0
  15. package/dist/cjs/types/base-callout-component-schema.cjs +16 -0
  16. package/dist/cjs/types/base-filter-args.cjs +16 -0
  17. package/dist/cjs/types/base-validated-rule.cjs +16 -0
  18. package/dist/cjs/types/callout-component-schema.cjs +16 -0
  19. package/dist/cjs/types/callout-filter-name.cjs +16 -0
  20. package/dist/cjs/types/callout-form-schema.cjs +16 -0
  21. package/dist/cjs/types/callout-navigation-schema.cjs +16 -0
  22. package/dist/cjs/types/callout-response-answer-address.cjs +16 -0
  23. package/dist/cjs/types/callout-response-answer-file-upload.cjs +16 -0
  24. package/dist/cjs/types/callout-response-answer.cjs +16 -0
  25. package/dist/cjs/types/callout-response-answers.cjs +16 -0
  26. package/dist/cjs/types/callout-response-comment-filter-name.cjs +16 -0
  27. package/dist/cjs/types/callout-response-filter-name.cjs +16 -0
  28. package/dist/cjs/types/callout-slide-schema.cjs +16 -0
  29. package/dist/cjs/types/callout-tag-filter-name.cjs +16 -0
  30. package/dist/cjs/types/content-callout-component-schema.cjs +16 -0
  31. package/dist/cjs/types/date-unit.cjs +16 -0
  32. package/dist/cjs/types/duration.cjs +16 -0
  33. package/dist/cjs/types/enum-filter-args.cjs +16 -0
  34. package/dist/cjs/types/feeable.cjs +16 -0
  35. package/dist/cjs/types/filter-args.cjs +16 -0
  36. package/dist/cjs/types/filter-type.cjs +16 -0
  37. package/dist/cjs/types/filters.cjs +16 -0
  38. package/dist/cjs/types/index.cjs +120 -0
  39. package/dist/cjs/types/input-callout-component-schema.cjs +16 -0
  40. package/dist/cjs/types/input-file-callout-component-schema.cjs +16 -0
  41. package/dist/cjs/types/nestable-callout-component-schema.cjs +16 -0
  42. package/dist/cjs/types/notice-filter-name.cjs +16 -0
  43. package/dist/cjs/types/operators-by-type.cjs +16 -0
  44. package/dist/cjs/types/other-filter-args.cjs +16 -0
  45. package/dist/cjs/types/paginated-query.cjs +16 -0
  46. package/dist/cjs/types/paginated.cjs +16 -0
  47. package/dist/cjs/types/payment-filter-name.cjs +16 -0
  48. package/dist/cjs/types/radio-callout-component-schema.cjs +16 -0
  49. package/dist/cjs/types/role-type.cjs +16 -0
  50. package/dist/cjs/types/rule-group.cjs +16 -0
  51. package/dist/cjs/types/rule-operator.cjs +16 -0
  52. package/dist/cjs/types/rule-opperator-params.cjs +16 -0
  53. package/dist/cjs/types/rule-value.cjs +16 -0
  54. package/dist/cjs/types/rule.cjs +16 -0
  55. package/dist/cjs/types/select-callout-component-schema.cjs +16 -0
  56. package/dist/cjs/types/stripe-fee-country.cjs +16 -0
  57. package/dist/cjs/types/unit-matches.cjs +16 -0
  58. package/dist/cjs/types/validated-boolean-rule.cjs +16 -0
  59. package/dist/cjs/types/validated-number-rule.cjs +16 -0
  60. package/dist/cjs/types/validated-rule-group.cjs +16 -0
  61. package/dist/cjs/types/validated-rule-value.cjs +16 -0
  62. package/dist/cjs/types/validated-rule.cjs +16 -0
  63. package/dist/cjs/types/validated-string-rule.cjs +16 -0
  64. package/dist/cjs/utils/callouts.cjs +137 -0
  65. package/dist/cjs/utils/date.cjs +87 -0
  66. package/dist/cjs/utils/index.cjs +28 -0
  67. package/dist/cjs/utils/payments.cjs +53 -0
  68. package/dist/cjs/utils/rules.cjs +109 -0
  69. package/dist/esm/data/index.js +57 -50
  70. package/dist/esm/error/InvalidRule.js +10 -7
  71. package/dist/esm/error/index.js +1 -2
  72. package/dist/esm/index.js +4 -7
  73. package/dist/esm/search/api-keys.js +10 -7
  74. package/dist/esm/search/callouts.js +100 -94
  75. package/dist/esm/search/contacts.js +83 -74
  76. package/dist/esm/search/index.js +6 -64
  77. package/dist/esm/search/notices.js +36 -33
  78. package/dist/esm/search/operators.js +62 -0
  79. package/dist/esm/search/payments.js +26 -23
  80. package/dist/esm/types/api-key-filter-name.js +0 -0
  81. package/dist/esm/types/array-filter-args.js +0 -0
  82. package/dist/esm/types/base-callout-component-schema.js +0 -0
  83. package/dist/esm/types/base-filter-args.js +0 -0
  84. package/dist/esm/types/base-validated-rule.js +0 -0
  85. package/dist/esm/types/callout-component-schema.js +0 -0
  86. package/dist/esm/types/callout-filter-name.js +0 -0
  87. package/dist/esm/types/callout-form-schema.js +0 -0
  88. package/dist/esm/types/callout-navigation-schema.js +0 -0
  89. package/dist/esm/types/callout-response-answer-address.js +0 -0
  90. package/dist/esm/types/callout-response-answer-file-upload.js +0 -0
  91. package/dist/esm/types/callout-response-answer.js +0 -0
  92. package/dist/esm/types/callout-response-answers.js +0 -0
  93. package/dist/esm/types/callout-response-comment-filter-name.js +0 -0
  94. package/dist/esm/types/callout-response-filter-name.js +0 -0
  95. package/dist/esm/types/callout-slide-schema.js +0 -0
  96. package/dist/esm/types/callout-tag-filter-name.js +0 -0
  97. package/dist/esm/types/content-callout-component-schema.js +0 -0
  98. package/dist/esm/types/date-unit.js +0 -0
  99. package/dist/esm/types/duration.js +0 -0
  100. package/dist/esm/types/enum-filter-args.js +0 -0
  101. package/dist/esm/types/feeable.js +0 -0
  102. package/dist/esm/types/filter-args.js +0 -0
  103. package/dist/esm/types/filter-type.js +0 -0
  104. package/dist/esm/types/filters.js +0 -0
  105. package/dist/esm/types/index.js +50 -0
  106. package/dist/esm/types/input-callout-component-schema.js +0 -0
  107. package/dist/esm/types/input-file-callout-component-schema.js +0 -0
  108. package/dist/esm/types/nestable-callout-component-schema.js +0 -0
  109. package/dist/esm/types/notice-filter-name.js +0 -0
  110. package/dist/esm/types/operators-by-type.js +0 -0
  111. package/dist/esm/types/other-filter-args.js +0 -0
  112. package/dist/esm/types/paginated-query.js +0 -0
  113. package/dist/esm/types/paginated.js +0 -0
  114. package/dist/esm/types/payment-filter-name.js +0 -0
  115. package/dist/esm/types/radio-callout-component-schema.js +0 -0
  116. package/dist/esm/types/role-type.js +0 -0
  117. package/dist/esm/types/rule-group.js +0 -0
  118. package/dist/esm/types/rule-operator.js +0 -0
  119. package/dist/esm/types/rule-opperator-params.js +0 -0
  120. package/dist/esm/types/rule-value.js +0 -0
  121. package/dist/esm/types/rule.js +0 -0
  122. package/dist/esm/types/select-callout-component-schema.js +0 -0
  123. package/dist/esm/types/stripe-fee-country.js +0 -0
  124. package/dist/esm/types/unit-matches.js +0 -0
  125. package/dist/esm/types/validated-boolean-rule.js +0 -0
  126. package/dist/esm/types/validated-number-rule.js +0 -0
  127. package/dist/esm/types/validated-rule-group.js +0 -0
  128. package/dist/esm/types/validated-rule-value.js +0 -0
  129. package/dist/esm/types/validated-rule.js +0 -0
  130. package/dist/esm/types/validated-string-rule.js +0 -0
  131. package/dist/esm/utils/callouts.js +91 -93
  132. package/dist/esm/utils/date.js +56 -56
  133. package/dist/esm/utils/index.js +4 -0
  134. package/dist/esm/utils/payments.js +25 -23
  135. package/dist/esm/utils/rules.js +75 -58
  136. package/dist/types/data/index.d.ts +0 -4
  137. package/dist/types/error/InvalidRule.d.ts +2 -2
  138. package/dist/types/error/index.d.ts +1 -2
  139. package/dist/types/index.d.ts +5 -7
  140. package/dist/types/search/api-keys.d.ts +0 -1
  141. package/dist/types/search/callouts.d.ts +1 -5
  142. package/dist/types/search/contacts.d.ts +2 -1
  143. package/dist/types/search/index.d.ts +6 -194
  144. package/dist/types/search/notices.d.ts +1 -2
  145. package/dist/types/search/operators.d.ts +128 -0
  146. package/dist/types/search/payments.d.ts +1 -2
  147. package/dist/types/types/api-key-filter-name.d.ts +2 -0
  148. package/dist/types/types/array-filter-args.d.ts +5 -0
  149. package/dist/types/types/base-callout-component-schema.d.ts +9 -0
  150. package/dist/types/types/base-filter-args.d.ts +5 -0
  151. package/dist/types/types/base-validated-rule.d.ts +9 -0
  152. package/dist/types/types/callout-component-schema.d.ts +2 -0
  153. package/dist/types/types/callout-filter-name.d.ts +2 -0
  154. package/dist/types/types/callout-form-schema.d.ts +4 -0
  155. package/dist/types/types/callout-navigation-schema.d.ts +6 -0
  156. package/dist/types/types/callout-response-answer-address.d.ts +9 -0
  157. package/dist/types/types/callout-response-answer-file-upload.d.ts +3 -0
  158. package/dist/types/types/callout-response-answer.d.ts +2 -0
  159. package/dist/types/types/callout-response-answers.d.ts +5 -0
  160. package/dist/types/types/callout-response-comment-filter-name.d.ts +2 -0
  161. package/dist/types/types/callout-response-filter-name.d.ts +2 -0
  162. package/dist/types/types/callout-slide-schema.d.ts +7 -0
  163. package/dist/types/types/callout-tag-filter-name.d.ts +2 -0
  164. package/dist/types/types/content-callout-component-schema.d.ts +5 -0
  165. package/dist/types/types/date-unit.d.ts +2 -0
  166. package/dist/types/types/duration.d.ts +1 -0
  167. package/dist/types/types/enum-filter-args.d.ts +5 -0
  168. package/dist/types/types/feeable.d.ts +6 -0
  169. package/dist/types/types/filter-args.d.ts +2 -0
  170. package/dist/types/types/filter-type.d.ts +1 -0
  171. package/dist/types/types/filters.d.ts +2 -0
  172. package/dist/types/types/index.d.ts +50 -0
  173. package/dist/types/types/input-callout-component-schema.d.ts +6 -0
  174. package/dist/types/types/input-file-callout-component-schema.d.ts +5 -0
  175. package/dist/types/types/nestable-callout-component-schema.d.ts +6 -0
  176. package/dist/types/types/notice-filter-name.d.ts +2 -0
  177. package/dist/types/types/operators-by-type.d.ts +2 -0
  178. package/dist/types/types/other-filter-args.d.ts +4 -0
  179. package/dist/types/types/paginated-query.d.ts +8 -0
  180. package/dist/types/types/paginated.d.ts +6 -0
  181. package/dist/types/types/payment-filter-name.d.ts +2 -0
  182. package/dist/types/types/radio-callout-component-schema.d.ts +10 -0
  183. package/dist/types/types/role-type.d.ts +2 -0
  184. package/dist/types/types/rule-group.d.ts +5 -0
  185. package/dist/types/types/rule-operator.d.ts +2 -0
  186. package/dist/types/types/rule-opperator-params.d.ts +3 -0
  187. package/dist/types/types/rule-value.d.ts +1 -0
  188. package/dist/types/types/rule.d.ts +6 -0
  189. package/dist/types/types/select-callout-component-schema.d.ts +11 -0
  190. package/dist/types/types/stripe-fee-country.d.ts +1 -0
  191. package/dist/types/types/unit-matches.d.ts +2 -0
  192. package/dist/types/types/validated-boolean-rule.d.ts +2 -0
  193. package/dist/types/types/validated-number-rule.d.ts +2 -0
  194. package/dist/types/types/validated-rule-group.d.ts +5 -0
  195. package/dist/types/types/validated-rule-value.d.ts +2 -0
  196. package/dist/types/types/validated-rule.d.ts +2 -0
  197. package/dist/types/types/validated-string-rule.d.ts +2 -0
  198. package/dist/types/utils/callouts.d.ts +1 -3
  199. package/dist/types/utils/date.d.ts +3 -3
  200. package/dist/types/utils/index.d.ts +4 -0
  201. package/dist/types/utils/payments.d.ts +1 -7
  202. package/dist/types/utils/rules.d.ts +1 -1
  203. package/package.json +31 -12
  204. package/dist/cjs/data/callouts.js +0 -2
  205. package/dist/cjs/data/index.js +0 -67
  206. package/dist/cjs/error/InvalidRule.js +0 -11
  207. package/dist/cjs/error/index.js +0 -8
  208. package/dist/cjs/index.js +0 -23
  209. package/dist/cjs/search/api-keys.js +0 -11
  210. package/dist/cjs/search/callouts.js +0 -101
  211. package/dist/cjs/search/contacts.js +0 -78
  212. package/dist/cjs/search/index.js +0 -81
  213. package/dist/cjs/search/notices.js +0 -37
  214. package/dist/cjs/search/payments.js +0 -27
  215. package/dist/cjs/utils/callouts.js +0 -118
  216. package/dist/cjs/utils/date.js +0 -77
  217. package/dist/cjs/utils/payments.js +0 -31
  218. package/dist/cjs/utils/rules.js +0 -69
  219. package/dist/esm/data/callouts.js +0 -1
  220. package/dist/types/data/callouts.d.ts +0 -70
@@ -1,75 +1,84 @@
1
- import { ContributionPeriod, ContributionType, NewsletterStatus, RoleTypes, } from "../data";
2
- export const contactFilters = {
3
- id: {
4
- type: "contact",
5
- },
6
- firstname: {
7
- type: "text",
8
- },
9
- lastname: {
10
- type: "text",
11
- },
12
- email: {
13
- type: "text",
14
- },
15
- joined: {
16
- type: "date",
17
- },
18
- lastSeen: {
19
- type: "date",
20
- },
21
- contributionCancelled: {
22
- type: "date",
23
- nullable: true,
24
- },
25
- contributionType: {
26
- type: "enum",
27
- options: [
28
- ContributionType.Automatic,
29
- ContributionType.Gift,
30
- ContributionType.Manual,
31
- ContributionType.None,
32
- ],
33
- },
34
- contributionMonthlyAmount: {
35
- type: "number",
36
- },
37
- contributionPeriod: {
38
- type: "enum",
39
- options: [ContributionPeriod.Monthly, ContributionPeriod.Annually],
40
- },
41
- deliveryOptIn: {
42
- type: "boolean",
43
- },
44
- newsletterStatus: {
45
- type: "enum",
46
- options: [
47
- NewsletterStatus.Subscribed,
48
- NewsletterStatus.Unsubscribed,
49
- NewsletterStatus.Cleaned,
50
- NewsletterStatus.Pending,
51
- NewsletterStatus.None,
52
- ],
53
- },
54
- activePermission: {
55
- type: "enum",
56
- options: RoleTypes,
57
- },
58
- activeMembership: {
59
- type: "boolean",
60
- },
61
- membershipStarts: {
62
- type: "date",
63
- },
64
- membershipExpires: {
65
- type: "date",
66
- },
67
- manualPaymentSource: {
68
- type: "text",
69
- nullable: true,
70
- },
71
- tags: {
72
- type: "array",
73
- nullable: true,
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
  };
@@ -1,64 +1,6 @@
1
- // *** Definitions for rules ***
2
- export const ruleOperators = [
3
- "equal",
4
- "not_equal",
5
- "less",
6
- "less_or_equal",
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
- export 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
- },
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
- export 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
- },
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
@@ -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