@beabee/beabee-common 1.19.7 → 1.19.8

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/dist/cjs/data/callouts.js +2 -0
  2. package/dist/cjs/data/index.js +67 -0
  3. package/dist/cjs/error/InvalidRule.js +11 -0
  4. package/dist/cjs/error/index.js +8 -0
  5. package/dist/cjs/index.js +23 -0
  6. package/dist/cjs/search/api-keys.js +11 -0
  7. package/dist/cjs/search/callouts.js +101 -0
  8. package/dist/cjs/search/contacts.js +78 -0
  9. package/dist/cjs/search/index.js +81 -0
  10. package/dist/cjs/search/notices.js +37 -0
  11. package/dist/cjs/search/payments.js +27 -0
  12. package/dist/cjs/utils/callouts.js +118 -0
  13. package/dist/cjs/utils/date.js +77 -0
  14. package/dist/cjs/utils/payments.js +31 -0
  15. package/dist/cjs/utils/rules.js +69 -0
  16. package/dist/esm/data/callouts.js +1 -0
  17. package/dist/esm/data/index.js +50 -57
  18. package/dist/esm/error/InvalidRule.js +7 -10
  19. package/dist/esm/error/index.js +2 -1
  20. package/dist/esm/index.js +7 -4
  21. package/dist/esm/search/api-keys.js +7 -10
  22. package/dist/esm/search/callouts.js +94 -100
  23. package/dist/esm/search/contacts.js +74 -83
  24. package/dist/esm/search/index.js +64 -6
  25. package/dist/esm/search/notices.js +33 -36
  26. package/dist/esm/search/payments.js +23 -26
  27. package/dist/esm/utils/callouts.js +93 -91
  28. package/dist/esm/utils/date.js +56 -56
  29. package/dist/esm/utils/payments.js +23 -25
  30. package/dist/esm/utils/rules.js +58 -75
  31. package/dist/types/data/callouts.d.ts +74 -0
  32. package/dist/types/data/index.d.ts +4 -0
  33. package/dist/types/error/InvalidRule.d.ts +2 -2
  34. package/dist/types/error/index.d.ts +2 -1
  35. package/dist/types/index.d.ts +7 -5
  36. package/dist/types/search/api-keys.d.ts +1 -0
  37. package/dist/types/search/callouts.d.ts +5 -1
  38. package/dist/types/search/contacts.d.ts +1 -2
  39. package/dist/types/search/index.d.ts +194 -6
  40. package/dist/types/search/notices.d.ts +2 -1
  41. package/dist/types/search/payments.d.ts +2 -1
  42. package/dist/types/utils/callouts.d.ts +3 -1
  43. package/dist/types/utils/date.d.ts +3 -3
  44. package/dist/types/utils/payments.d.ts +7 -1
  45. package/dist/types/utils/rules.d.ts +1 -1
  46. package/package.json +12 -31
  47. package/README.md +0 -41
  48. package/dist/cjs/data/index.cjs +0 -87
  49. package/dist/cjs/error/InvalidRule.cjs +0 -35
  50. package/dist/cjs/error/index.cjs +0 -22
  51. package/dist/cjs/index.cjs +0 -28
  52. package/dist/cjs/search/api-keys.cjs +0 -35
  53. package/dist/cjs/search/callouts.cjs +0 -131
  54. package/dist/cjs/search/contacts.cjs +0 -105
  55. package/dist/cjs/search/index.cjs +0 -32
  56. package/dist/cjs/search/notices.cjs +0 -61
  57. package/dist/cjs/search/operators.cjs +0 -89
  58. package/dist/cjs/search/payments.cjs +0 -51
  59. package/dist/cjs/types/api-key-filter-name.cjs +0 -16
  60. package/dist/cjs/types/array-filter-args.cjs +0 -16
  61. package/dist/cjs/types/base-callout-component-schema.cjs +0 -16
  62. package/dist/cjs/types/base-filter-args.cjs +0 -16
  63. package/dist/cjs/types/base-validated-rule.cjs +0 -16
  64. package/dist/cjs/types/callout-component-schema.cjs +0 -16
  65. package/dist/cjs/types/callout-filter-name.cjs +0 -16
  66. package/dist/cjs/types/callout-form-schema.cjs +0 -16
  67. package/dist/cjs/types/callout-navigation-schema.cjs +0 -16
  68. package/dist/cjs/types/callout-response-answer-address.cjs +0 -16
  69. package/dist/cjs/types/callout-response-answer-file-upload.cjs +0 -16
  70. package/dist/cjs/types/callout-response-answer.cjs +0 -16
  71. package/dist/cjs/types/callout-response-answers.cjs +0 -16
  72. package/dist/cjs/types/callout-response-comment-filter-name.cjs +0 -16
  73. package/dist/cjs/types/callout-response-filter-name.cjs +0 -16
  74. package/dist/cjs/types/callout-slide-schema.cjs +0 -16
  75. package/dist/cjs/types/callout-tag-filter-name.cjs +0 -16
  76. package/dist/cjs/types/content-callout-component-schema.cjs +0 -16
  77. package/dist/cjs/types/date-unit.cjs +0 -16
  78. package/dist/cjs/types/duration.cjs +0 -16
  79. package/dist/cjs/types/enum-filter-args.cjs +0 -16
  80. package/dist/cjs/types/feeable.cjs +0 -16
  81. package/dist/cjs/types/filter-args.cjs +0 -16
  82. package/dist/cjs/types/filter-type.cjs +0 -16
  83. package/dist/cjs/types/filters.cjs +0 -16
  84. package/dist/cjs/types/index.cjs +0 -120
  85. package/dist/cjs/types/input-callout-component-schema.cjs +0 -16
  86. package/dist/cjs/types/input-file-callout-component-schema.cjs +0 -16
  87. package/dist/cjs/types/nestable-callout-component-schema.cjs +0 -16
  88. package/dist/cjs/types/notice-filter-name.cjs +0 -16
  89. package/dist/cjs/types/operators-by-type.cjs +0 -16
  90. package/dist/cjs/types/other-filter-args.cjs +0 -16
  91. package/dist/cjs/types/paginated-query.cjs +0 -16
  92. package/dist/cjs/types/paginated.cjs +0 -16
  93. package/dist/cjs/types/payment-filter-name.cjs +0 -16
  94. package/dist/cjs/types/radio-callout-component-schema.cjs +0 -16
  95. package/dist/cjs/types/role-type.cjs +0 -16
  96. package/dist/cjs/types/rule-group.cjs +0 -16
  97. package/dist/cjs/types/rule-operator.cjs +0 -16
  98. package/dist/cjs/types/rule-opperator-params.cjs +0 -16
  99. package/dist/cjs/types/rule-value.cjs +0 -16
  100. package/dist/cjs/types/rule.cjs +0 -16
  101. package/dist/cjs/types/select-callout-component-schema.cjs +0 -16
  102. package/dist/cjs/types/stripe-fee-country.cjs +0 -16
  103. package/dist/cjs/types/unit-matches.cjs +0 -16
  104. package/dist/cjs/types/validated-boolean-rule.cjs +0 -16
  105. package/dist/cjs/types/validated-number-rule.cjs +0 -16
  106. package/dist/cjs/types/validated-rule-group.cjs +0 -16
  107. package/dist/cjs/types/validated-rule-value.cjs +0 -16
  108. package/dist/cjs/types/validated-rule.cjs +0 -16
  109. package/dist/cjs/types/validated-string-rule.cjs +0 -16
  110. package/dist/cjs/utils/callouts.cjs +0 -137
  111. package/dist/cjs/utils/date.cjs +0 -87
  112. package/dist/cjs/utils/index.cjs +0 -28
  113. package/dist/cjs/utils/payments.cjs +0 -53
  114. package/dist/cjs/utils/rules.cjs +0 -109
  115. package/dist/esm/search/operators.js +0 -62
  116. package/dist/esm/types/api-key-filter-name.js +0 -0
  117. package/dist/esm/types/array-filter-args.js +0 -0
  118. package/dist/esm/types/base-callout-component-schema.js +0 -0
  119. package/dist/esm/types/base-filter-args.js +0 -0
  120. package/dist/esm/types/base-validated-rule.js +0 -0
  121. package/dist/esm/types/callout-component-schema.js +0 -0
  122. package/dist/esm/types/callout-filter-name.js +0 -0
  123. package/dist/esm/types/callout-form-schema.js +0 -0
  124. package/dist/esm/types/callout-navigation-schema.js +0 -0
  125. package/dist/esm/types/callout-response-answer-address.js +0 -0
  126. package/dist/esm/types/callout-response-answer-file-upload.js +0 -0
  127. package/dist/esm/types/callout-response-answer.js +0 -0
  128. package/dist/esm/types/callout-response-answers.js +0 -0
  129. package/dist/esm/types/callout-response-comment-filter-name.js +0 -0
  130. package/dist/esm/types/callout-response-filter-name.js +0 -0
  131. package/dist/esm/types/callout-slide-schema.js +0 -0
  132. package/dist/esm/types/callout-tag-filter-name.js +0 -0
  133. package/dist/esm/types/content-callout-component-schema.js +0 -0
  134. package/dist/esm/types/date-unit.js +0 -0
  135. package/dist/esm/types/duration.js +0 -0
  136. package/dist/esm/types/enum-filter-args.js +0 -0
  137. package/dist/esm/types/feeable.js +0 -0
  138. package/dist/esm/types/filter-args.js +0 -0
  139. package/dist/esm/types/filter-type.js +0 -0
  140. package/dist/esm/types/filters.js +0 -0
  141. package/dist/esm/types/index.js +0 -50
  142. package/dist/esm/types/input-callout-component-schema.js +0 -0
  143. package/dist/esm/types/input-file-callout-component-schema.js +0 -0
  144. package/dist/esm/types/nestable-callout-component-schema.js +0 -0
  145. package/dist/esm/types/notice-filter-name.js +0 -0
  146. package/dist/esm/types/operators-by-type.js +0 -0
  147. package/dist/esm/types/other-filter-args.js +0 -0
  148. package/dist/esm/types/paginated-query.js +0 -0
  149. package/dist/esm/types/paginated.js +0 -0
  150. package/dist/esm/types/payment-filter-name.js +0 -0
  151. package/dist/esm/types/radio-callout-component-schema.js +0 -0
  152. package/dist/esm/types/role-type.js +0 -0
  153. package/dist/esm/types/rule-group.js +0 -0
  154. package/dist/esm/types/rule-operator.js +0 -0
  155. package/dist/esm/types/rule-opperator-params.js +0 -0
  156. package/dist/esm/types/rule-value.js +0 -0
  157. package/dist/esm/types/rule.js +0 -0
  158. package/dist/esm/types/select-callout-component-schema.js +0 -0
  159. package/dist/esm/types/stripe-fee-country.js +0 -0
  160. package/dist/esm/types/unit-matches.js +0 -0
  161. package/dist/esm/types/validated-boolean-rule.js +0 -0
  162. package/dist/esm/types/validated-number-rule.js +0 -0
  163. package/dist/esm/types/validated-rule-group.js +0 -0
  164. package/dist/esm/types/validated-rule-value.js +0 -0
  165. package/dist/esm/types/validated-rule.js +0 -0
  166. package/dist/esm/types/validated-string-rule.js +0 -0
  167. package/dist/esm/utils/index.js +0 -4
  168. package/dist/types/search/operators.d.ts +0 -128
  169. package/dist/types/types/api-key-filter-name.d.ts +0 -2
  170. package/dist/types/types/array-filter-args.d.ts +0 -5
  171. package/dist/types/types/base-callout-component-schema.d.ts +0 -9
  172. package/dist/types/types/base-filter-args.d.ts +0 -5
  173. package/dist/types/types/base-validated-rule.d.ts +0 -9
  174. package/dist/types/types/callout-component-schema.d.ts +0 -2
  175. package/dist/types/types/callout-filter-name.d.ts +0 -2
  176. package/dist/types/types/callout-form-schema.d.ts +0 -4
  177. package/dist/types/types/callout-navigation-schema.d.ts +0 -6
  178. package/dist/types/types/callout-response-answer-address.d.ts +0 -9
  179. package/dist/types/types/callout-response-answer-file-upload.d.ts +0 -3
  180. package/dist/types/types/callout-response-answer.d.ts +0 -2
  181. package/dist/types/types/callout-response-answers.d.ts +0 -5
  182. package/dist/types/types/callout-response-comment-filter-name.d.ts +0 -2
  183. package/dist/types/types/callout-response-filter-name.d.ts +0 -2
  184. package/dist/types/types/callout-slide-schema.d.ts +0 -7
  185. package/dist/types/types/callout-tag-filter-name.d.ts +0 -2
  186. package/dist/types/types/content-callout-component-schema.d.ts +0 -5
  187. package/dist/types/types/date-unit.d.ts +0 -2
  188. package/dist/types/types/duration.d.ts +0 -1
  189. package/dist/types/types/enum-filter-args.d.ts +0 -5
  190. package/dist/types/types/feeable.d.ts +0 -6
  191. package/dist/types/types/filter-args.d.ts +0 -2
  192. package/dist/types/types/filter-type.d.ts +0 -1
  193. package/dist/types/types/filters.d.ts +0 -2
  194. package/dist/types/types/index.d.ts +0 -50
  195. package/dist/types/types/input-callout-component-schema.d.ts +0 -6
  196. package/dist/types/types/input-file-callout-component-schema.d.ts +0 -5
  197. package/dist/types/types/nestable-callout-component-schema.d.ts +0 -6
  198. package/dist/types/types/notice-filter-name.d.ts +0 -2
  199. package/dist/types/types/operators-by-type.d.ts +0 -2
  200. package/dist/types/types/other-filter-args.d.ts +0 -4
  201. package/dist/types/types/paginated-query.d.ts +0 -8
  202. package/dist/types/types/paginated.d.ts +0 -6
  203. package/dist/types/types/payment-filter-name.d.ts +0 -2
  204. package/dist/types/types/radio-callout-component-schema.d.ts +0 -10
  205. package/dist/types/types/role-type.d.ts +0 -2
  206. package/dist/types/types/rule-group.d.ts +0 -5
  207. package/dist/types/types/rule-operator.d.ts +0 -2
  208. package/dist/types/types/rule-opperator-params.d.ts +0 -3
  209. package/dist/types/types/rule-value.d.ts +0 -1
  210. package/dist/types/types/rule.d.ts +0 -6
  211. package/dist/types/types/select-callout-component-schema.d.ts +0 -11
  212. package/dist/types/types/stripe-fee-country.d.ts +0 -1
  213. package/dist/types/types/unit-matches.d.ts +0 -2
  214. package/dist/types/types/validated-boolean-rule.d.ts +0 -2
  215. package/dist/types/types/validated-number-rule.d.ts +0 -2
  216. package/dist/types/types/validated-rule-group.d.ts +0 -5
  217. package/dist/types/types/validated-rule-value.d.ts +0 -2
  218. package/dist/types/types/validated-rule.d.ts +0 -2
  219. package/dist/types/types/validated-string-rule.d.ts +0 -2
  220. package/dist/types/utils/index.d.ts +0 -4
@@ -1,62 +0,0 @@
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
- };
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
@@ -1,50 +0,0 @@
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
@@ -1,4 +0,0 @@
1
- export * from "./callouts.js";
2
- export * from "./date.js";
3
- export * from "./payments.js";
4
- export * from "./rules.js";
@@ -1,128 +0,0 @@
1
- import type { OperatorsByType } from "../types/index.ts";
2
- export declare const nullableOperators: {
3
- is_empty: {
4
- args: number;
5
- };
6
- is_not_empty: {
7
- args: number;
8
- };
9
- };
10
- export declare const operatorsByType: {
11
- readonly text: {
12
- readonly begins_with: {
13
- args: number;
14
- };
15
- readonly ends_with: {
16
- args: number;
17
- };
18
- readonly not_begins_with: {
19
- args: number;
20
- };
21
- readonly not_ends_with: {
22
- args: number;
23
- };
24
- readonly contains: {
25
- args: number;
26
- };
27
- readonly not_contains: {
28
- args: number;
29
- };
30
- readonly equal: {
31
- args: number;
32
- };
33
- readonly not_equal: {
34
- args: number;
35
- };
36
- };
37
- readonly blob: {
38
- contains: {
39
- args: number;
40
- };
41
- not_contains: {
42
- args: number;
43
- };
44
- };
45
- readonly date: {
46
- between: {
47
- args: number;
48
- };
49
- not_between: {
50
- args: number;
51
- };
52
- less: {
53
- args: number;
54
- };
55
- greater: {
56
- args: number;
57
- };
58
- less_or_equal: {
59
- args: number;
60
- };
61
- greater_or_equal: {
62
- args: number;
63
- };
64
- equal: {
65
- args: number;
66
- };
67
- not_equal: {
68
- args: number;
69
- };
70
- };
71
- readonly number: {
72
- between: {
73
- args: number;
74
- };
75
- not_between: {
76
- args: number;
77
- };
78
- less: {
79
- args: number;
80
- };
81
- greater: {
82
- args: number;
83
- };
84
- less_or_equal: {
85
- args: number;
86
- };
87
- greater_or_equal: {
88
- args: number;
89
- };
90
- equal: {
91
- args: number;
92
- };
93
- not_equal: {
94
- args: number;
95
- };
96
- };
97
- readonly boolean: {
98
- readonly equal: {
99
- args: number;
100
- };
101
- };
102
- readonly array: {
103
- contains: {
104
- args: number;
105
- };
106
- not_contains: {
107
- args: number;
108
- };
109
- };
110
- readonly enum: {
111
- equal: {
112
- args: number;
113
- };
114
- not_equal: {
115
- args: number;
116
- };
117
- };
118
- readonly contact: {
119
- equal: {
120
- args: number;
121
- };
122
- not_equal: {
123
- args: number;
124
- };
125
- };
126
- };
127
- export declare const operatorsByTypeMap: OperatorsByType;
128
- export declare const ruleOperators: readonly ["equal", "not_equal", "less", "less_or_equal", "greater", "greater_or_equal", "between", "not_between", "begins_with", "not_begins_with", "contains", "not_contains", "ends_with", "not_ends_with", "is_empty", "is_not_empty"];
@@ -1,2 +0,0 @@
1
- import type { apiKeyFilters } from "../search/api-keys.ts";
2
- export type ApiKeyFilterName = keyof typeof apiKeyFilters;
@@ -1,5 +0,0 @@
1
- import type { BaseFilterArgs } from "./index.ts";
2
- export interface ArrayFilterArgs<T extends readonly string[] | undefined> extends BaseFilterArgs {
3
- type: "array";
4
- options?: T;
5
- }
@@ -1,9 +0,0 @@
1
- export interface BaseCalloutComponentSchema {
2
- id: string;
3
- type: string;
4
- key: string;
5
- label?: string;
6
- input?: boolean;
7
- adminOnly?: boolean;
8
- [key: string]: unknown;
9
- }
@@ -1,5 +0,0 @@
1
- import type { FilterType } from "./index.ts";
2
- export interface BaseFilterArgs {
3
- type: FilterType;
4
- nullable?: boolean;
5
- }
@@ -1,9 +0,0 @@
1
- import type { FilterType, ValidatedRuleValue } from "./index.ts";
2
- import type { operatorsByType } from "../search/operators.ts";
3
- export interface BaseValidatedRule<T extends FilterType, F extends string> {
4
- type: T;
5
- field: F;
6
- nullable: boolean;
7
- operator: keyof (typeof operatorsByType)[T];
8
- value: ValidatedRuleValue<T>[];
9
- }
@@ -1,2 +0,0 @@
1
- import type { ContentCalloutComponentSchema, InputCalloutComponentSchema, NestableCalloutComponentSchema, RadioCalloutComponentSchema, SelectCalloutComponentSchema } from "./index.ts";
2
- export type CalloutComponentSchema = ContentCalloutComponentSchema | SelectCalloutComponentSchema | RadioCalloutComponentSchema | InputCalloutComponentSchema | NestableCalloutComponentSchema;
@@ -1,2 +0,0 @@
1
- import type { calloutFilters } from "../search/callouts.ts";
2
- export type CalloutFilterName = keyof typeof calloutFilters;
@@ -1,4 +0,0 @@
1
- import type { CalloutSlideSchema } from "./index.ts";
2
- export interface CalloutFormSchema {
3
- slides: CalloutSlideSchema[];
4
- }
@@ -1,6 +0,0 @@
1
- export interface CalloutNavigationSchema {
2
- prevText: string;
3
- nextText: string;
4
- nextSlideId: string;
5
- submitText: string;
6
- }
@@ -1,9 +0,0 @@
1
- export interface CalloutResponseAnswerAddress {
2
- formatted_address: string;
3
- geometry: {
4
- location: {
5
- lat: number;
6
- lng: number;
7
- };
8
- };
9
- }
@@ -1,3 +0,0 @@
1
- export interface CalloutResponseAnswerFileUpload {
2
- url: string;
3
- }
@@ -1,2 +0,0 @@
1
- import type { CalloutResponseAnswerAddress, CalloutResponseAnswerFileUpload } from "./index.ts";
2
- export type CalloutResponseAnswer = string | boolean | number | null | undefined | Record<string, boolean> | CalloutResponseAnswerAddress | CalloutResponseAnswerFileUpload;
@@ -1,5 +0,0 @@
1
- import type { CalloutResponseAnswer } from "./index.ts";
2
- /**
3
- * Answers are grouped by slide key: {[slideId]: {[componentKey]: answer | answer[]}}
4
- */
5
- export type CalloutResponseAnswers = Record<string, Record<string, CalloutResponseAnswer | CalloutResponseAnswer[]> | undefined>;
@@ -1,2 +0,0 @@
1
- import type { calloutResponseCommentFilters } from "../search/callouts.ts";
2
- export type CalloutResponseCommentFilterName = keyof typeof calloutResponseCommentFilters;
@@ -1,2 +0,0 @@
1
- import { calloutResponseFilters } from "../search/callouts.ts";
2
- export type CalloutResponseFilterName = keyof typeof calloutResponseFilters;
@@ -1,7 +0,0 @@
1
- import type { CalloutComponentSchema, CalloutNavigationSchema } from "./index.ts";
2
- export interface CalloutSlideSchema {
3
- id: string;
4
- title: string;
5
- components: CalloutComponentSchema[];
6
- navigation: CalloutNavigationSchema;
7
- }
@@ -1,2 +0,0 @@
1
- import type { calloutTagFilters } from "../search/callouts.ts";
2
- export type CalloutTagFilterName = keyof typeof calloutTagFilters;
@@ -1,5 +0,0 @@
1
- import { BaseCalloutComponentSchema } from "./index.ts";
2
- export interface ContentCalloutComponentSchema extends BaseCalloutComponentSchema {
3
- type: "content";
4
- input: false;
5
- }
@@ -1,2 +0,0 @@
1
- import type { dateUnits } from "../utils/date.ts";
2
- export type DateUnit = (typeof dateUnits)[number];
@@ -1 +0,0 @@
1
- export type { Duration } from "date-fns";
@@ -1,5 +0,0 @@
1
- import type { BaseFilterArgs } from "./index.ts";
2
- export interface EnumFilterArgs<T extends readonly string[]> extends BaseFilterArgs {
3
- type: "enum";
4
- options: T;
5
- }
@@ -1,6 +0,0 @@
1
- import type { ContributionPeriod, PaymentMethod } from "../data/index.ts";
2
- export interface Feeable {
3
- amount: number;
4
- period: ContributionPeriod;
5
- paymentMethod: PaymentMethod;
6
- }
@@ -1,2 +0,0 @@
1
- import type { ArrayFilterArgs, EnumFilterArgs, OtherFilterArgs } from "./index.ts";
2
- export type FilterArgs = ArrayFilterArgs<readonly string[] | undefined> | EnumFilterArgs<readonly string[]> | OtherFilterArgs;
@@ -1 +0,0 @@
1
- export type FilterType = "text" | "blob" | "date" | "number" | "boolean" | "array" | "enum" | "contact";
@@ -1,2 +0,0 @@
1
- import { FilterArgs } from "../types/index.ts";
2
- export type Filters<T extends string = string> = Record<T, FilterArgs>;
@@ -1,50 +0,0 @@
1
- export * from "./api-key-filter-name.ts";
2
- export * from "./array-filter-args.ts";
3
- export * from "./base-callout-component-schema.ts";
4
- export * from "./base-filter-args.ts";
5
- export * from "./base-validated-rule.ts";
6
- export * from "./callout-component-schema.ts";
7
- export * from "./callout-filter-name.ts";
8
- export * from "./callout-form-schema.ts";
9
- export * from "./callout-navigation-schema.ts";
10
- export * from "./callout-response-answer-address.ts";
11
- export * from "./callout-response-answer-file-upload.ts";
12
- export * from "./callout-response-answer.ts";
13
- export * from "./callout-response-answers.ts";
14
- export * from "./callout-response-comment-filter-name.ts";
15
- export * from "./callout-response-filter-name.ts";
16
- export * from "./callout-slide-schema.ts";
17
- export * from "./callout-tag-filter-name.ts";
18
- export * from "./content-callout-component-schema.ts";
19
- export * from "./date-unit.ts";
20
- export * from "./duration.ts";
21
- export * from "./enum-filter-args.ts";
22
- export * from "./feeable.ts";
23
- export * from "./filter-args.ts";
24
- export * from "./filter-type.ts";
25
- export * from "./filters.ts";
26
- export * from "./input-callout-component-schema.ts";
27
- export * from "./input-file-callout-component-schema.ts";
28
- export * from "./nestable-callout-component-schema.ts";
29
- export * from "./notice-filter-name.ts";
30
- export * from "./operators-by-type.ts";
31
- export * from "./other-filter-args.ts";
32
- export * from "./paginated-query.ts";
33
- export * from "./paginated.ts";
34
- export * from "./payment-filter-name.ts";
35
- export * from "./radio-callout-component-schema.ts";
36
- export * from "./role-type.ts";
37
- export * from "./rule-group.ts";
38
- export * from "./rule-operator.ts";
39
- export * from "./rule-opperator-params.ts";
40
- export * from "./rule-value.ts";
41
- export * from "./rule.ts";
42
- export * from "./select-callout-component-schema.ts";
43
- export * from "./stripe-fee-country.ts";
44
- export * from "./unit-matches.ts";
45
- export * from "./validated-boolean-rule.ts";
46
- export * from "./validated-number-rule.ts";
47
- export * from "./validated-rule-group.ts";
48
- export * from "./validated-rule-value.ts";
49
- export * from "./validated-rule.ts";
50
- export * from "./validated-string-rule.ts";
@@ -1,6 +0,0 @@
1
- import type { BaseCalloutComponentSchema } from "./index.ts";
2
- export interface InputCalloutComponentSchema extends BaseCalloutComponentSchema {
3
- type: "address" | "button" | "checkbox" | "email" | "file" | "number" | "password" | "textfield" | "textarea" | "content" | "phoneNumber" | "currency" | "datetime" | "time" | "url" | "signature";
4
- input: true;
5
- placeholder?: string;
6
- }
@@ -1,5 +0,0 @@
1
- import type { InputCalloutComponentSchema } from "./index.ts";
2
- export interface InputFileCalloutComponentSchema extends InputCalloutComponentSchema {
3
- type: "file";
4
- filePattern: string;
5
- }
@@ -1,6 +0,0 @@
1
- import type { BaseCalloutComponentSchema, CalloutComponentSchema } from "./index.ts";
2
- export interface NestableCalloutComponentSchema extends BaseCalloutComponentSchema {
3
- type: "panel" | "well" | "tabs";
4
- input: false;
5
- components: CalloutComponentSchema[];
6
- }
@@ -1,2 +0,0 @@
1
- import { noticeFilters } from "../search/notices.ts";
2
- export type NoticeFilterName = keyof typeof noticeFilters;
@@ -1,2 +0,0 @@
1
- import type { FilterType, RuleOperator, RuleOperatorParams } from "./index.ts";
2
- export type OperatorsByType = Record<FilterType, Partial<Record<RuleOperator, RuleOperatorParams>>>;
@@ -1,4 +0,0 @@
1
- import type { BaseFilterArgs, FilterType } from "./index.ts";
2
- export interface OtherFilterArgs extends BaseFilterArgs {
3
- type: Exclude<FilterType, "array" | "enum">;
4
- }
@@ -1,8 +0,0 @@
1
- import type { RuleGroup } from "./index.ts";
2
- export interface PaginatedQuery {
3
- limit?: number;
4
- offset?: number;
5
- sort?: string;
6
- order?: "ASC" | "DESC";
7
- rules?: RuleGroup;
8
- }
@@ -1,6 +0,0 @@
1
- export interface Paginated<T> {
2
- items: T[];
3
- offset: number;
4
- count: number;
5
- total: number;
6
- }
@@ -1,2 +0,0 @@
1
- import { paymentFilters } from "../search/payments.ts";
2
- export type PaymentFilterName = keyof typeof paymentFilters;