@beabee/beabee-common 0.44.2 → 0.45.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.
Files changed (952) hide show
  1. package/dist/data/api-health-status.d.ts +6 -0
  2. package/dist/data/api-health-status.d.ts.map +1 -0
  3. package/dist/data/api-health-status.js +7 -0
  4. package/dist/data/api-health-status.js.map +1 -0
  5. package/dist/data/index.d.ts +1 -0
  6. package/dist/data/index.d.ts.map +1 -1
  7. package/dist/data/index.js +1 -0
  8. package/dist/data/index.js.map +1 -1
  9. package/dist/types/get-newsletter-integration-data-with.d.ts +9 -0
  10. package/dist/types/get-newsletter-integration-data-with.d.ts.map +1 -0
  11. package/dist/types/get-newsletter-integration-data-with.js +2 -0
  12. package/dist/types/get-newsletter-integration-data-with.js.map +1 -0
  13. package/dist/types/get-newsletter-with.d.ts +2 -0
  14. package/dist/types/get-newsletter-with.d.ts.map +1 -0
  15. package/dist/types/get-newsletter-with.js +2 -0
  16. package/dist/types/get-newsletter-with.js.map +1 -0
  17. package/dist/types/index.d.ts +4 -0
  18. package/dist/types/index.d.ts.map +1 -1
  19. package/dist/types/newsletter-diff-data.d.ts +11 -0
  20. package/dist/types/newsletter-diff-data.d.ts.map +1 -0
  21. package/dist/types/newsletter-diff-data.js +2 -0
  22. package/dist/types/newsletter-diff-data.js.map +1 -0
  23. package/dist/types/newsletter-integration-data.d.ts +14 -0
  24. package/dist/types/newsletter-integration-data.d.ts.map +1 -0
  25. package/dist/types/newsletter-integration-data.js +2 -0
  26. package/dist/types/newsletter-integration-data.js.map +1 -0
  27. package/package.json +4 -3
  28. package/src/data/api-health-status.ts +5 -0
  29. package/src/data/index.ts +1 -0
  30. package/src/types/get-newsletter-integration-data-with.ts +16 -0
  31. package/src/types/get-newsletter-with.ts +1 -0
  32. package/src/types/index.ts +4 -0
  33. package/src/types/newsletter-diff-data.ts +12 -0
  34. package/src/types/newsletter-integration-data.ts +18 -0
  35. package/dist/cjs/constants.cjs +0 -96
  36. package/dist/cjs/data/api-error-code.cjs +0 -49
  37. package/dist/cjs/data/callout-access.cjs +0 -33
  38. package/dist/cjs/data/callout-captcha.cjs +0 -32
  39. package/dist/cjs/data/callout-channel.cjs +0 -30
  40. package/dist/cjs/data/callout-component-base-type.cjs +0 -34
  41. package/dist/cjs/data/callout-component-input-selectable-types.cjs +0 -31
  42. package/dist/cjs/data/callout-component-input-text-types.cjs +0 -31
  43. package/dist/cjs/data/callout-component-input-types.cjs +0 -45
  44. package/dist/cjs/data/callout-component-nestable-types.cjs +0 -32
  45. package/dist/cjs/data/callout-component-type.cjs +0 -49
  46. package/dist/cjs/data/callout-component-types.cjs +0 -34
  47. package/dist/cjs/data/contact-mfa-type.cjs +0 -30
  48. package/dist/cjs/data/content-ids.cjs +0 -38
  49. package/dist/cjs/data/contribution-period.cjs +0 -31
  50. package/dist/cjs/data/contribution-type.cjs +0 -33
  51. package/dist/cjs/data/get-callout-response-with.cjs +0 -35
  52. package/dist/cjs/data/get-contact-with.cjs +0 -34
  53. package/dist/cjs/data/index.cjs +0 -73
  54. package/dist/cjs/data/item-status.cjs +0 -33
  55. package/dist/cjs/data/login-codes.cjs +0 -37
  56. package/dist/cjs/data/membership-status.cjs +0 -33
  57. package/dist/cjs/data/newsletter-status.cjs +0 -34
  58. package/dist/cjs/data/payment-method.cjs +0 -35
  59. package/dist/cjs/data/payment-status.cjs +0 -34
  60. package/dist/cjs/data/payment-type.cjs +0 -33
  61. package/dist/cjs/data/reset-security-flow-error-code.cjs +0 -32
  62. package/dist/cjs/data/reset-security-flow-type.cjs +0 -31
  63. package/dist/cjs/data/role-type-data.cjs +0 -32
  64. package/dist/cjs/error/InvalidRule.cjs +0 -34
  65. package/dist/cjs/error/index.cjs +0 -21
  66. package/dist/cjs/index.cjs +0 -31
  67. package/dist/cjs/search/api-keys.cjs +0 -35
  68. package/dist/cjs/search/callouts.cjs +0 -192
  69. package/dist/cjs/search/contacts.cjs +0 -147
  70. package/dist/cjs/search/emails.cjs +0 -56
  71. package/dist/cjs/search/index.cjs +0 -37
  72. package/dist/cjs/search/notices.cjs +0 -61
  73. package/dist/cjs/search/operators.cjs +0 -95
  74. package/dist/cjs/search/payments.cjs +0 -62
  75. package/dist/cjs/search/segments.cjs +0 -38
  76. package/dist/cjs/search/tags.cjs +0 -38
  77. package/dist/cjs/types/address.cjs +0 -15
  78. package/dist/cjs/types/allow-null.cjs +0 -15
  79. package/dist/cjs/types/api-error-data.cjs +0 -15
  80. package/dist/cjs/types/api-key-filter-name.cjs +0 -15
  81. package/dist/cjs/types/array-filter-args.cjs +0 -15
  82. package/dist/cjs/types/auth-info-data.cjs +0 -15
  83. package/dist/cjs/types/base-filter-args.cjs +0 -15
  84. package/dist/cjs/types/base-validated-rule.cjs +0 -15
  85. package/dist/cjs/types/callout-channel-filter-name.cjs +0 -15
  86. package/dist/cjs/types/callout-component-base-input-schema.cjs +0 -15
  87. package/dist/cjs/types/callout-component-base-input-selectable-schema.cjs +0 -15
  88. package/dist/cjs/types/callout-component-base-input-text-schema.cjs +0 -15
  89. package/dist/cjs/types/callout-component-base-map.cjs +0 -15
  90. package/dist/cjs/types/callout-component-base-nestable-schema.cjs +0 -15
  91. package/dist/cjs/types/callout-component-base-rules.cjs +0 -15
  92. package/dist/cjs/types/callout-component-base-schema.cjs +0 -15
  93. package/dist/cjs/types/callout-component-content-schema.cjs +0 -15
  94. package/dist/cjs/types/callout-component-input-address-rules.cjs +0 -15
  95. package/dist/cjs/types/callout-component-input-address-schema.cjs +0 -15
  96. package/dist/cjs/types/callout-component-input-checkbox-rules.cjs +0 -15
  97. package/dist/cjs/types/callout-component-input-checkbox-schema.cjs +0 -15
  98. package/dist/cjs/types/callout-component-input-currency-rules.cjs +0 -15
  99. package/dist/cjs/types/callout-component-input-currency-schema.cjs +0 -15
  100. package/dist/cjs/types/callout-component-input-date-time-rules.cjs +0 -15
  101. package/dist/cjs/types/callout-component-input-date-time-schema.cjs +0 -15
  102. package/dist/cjs/types/callout-component-input-email-rules.cjs +0 -15
  103. package/dist/cjs/types/callout-component-input-email-schema.cjs +0 -15
  104. package/dist/cjs/types/callout-component-input-file-rules.cjs +0 -15
  105. package/dist/cjs/types/callout-component-input-file-schema.cjs +0 -15
  106. package/dist/cjs/types/callout-component-input-number-rules.cjs +0 -15
  107. package/dist/cjs/types/callout-component-input-number-schema.cjs +0 -15
  108. package/dist/cjs/types/callout-component-input-phone-number-rules.cjs +0 -15
  109. package/dist/cjs/types/callout-component-input-phone-number-schema.cjs +0 -15
  110. package/dist/cjs/types/callout-component-input-schema.cjs +0 -15
  111. package/dist/cjs/types/callout-component-input-select-rules.cjs +0 -15
  112. package/dist/cjs/types/callout-component-input-select-schema.cjs +0 -15
  113. package/dist/cjs/types/callout-component-input-selectable-radio-rules.cjs +0 -15
  114. package/dist/cjs/types/callout-component-input-selectable-radio-schema.cjs +0 -15
  115. package/dist/cjs/types/callout-component-input-selectable-schema.cjs +0 -15
  116. package/dist/cjs/types/callout-component-input-selectable-selectboxes-rules.cjs +0 -15
  117. package/dist/cjs/types/callout-component-input-selectable-selectboxes-schema.cjs +0 -15
  118. package/dist/cjs/types/callout-component-input-signature-rules.cjs +0 -15
  119. package/dist/cjs/types/callout-component-input-signature-schema.cjs +0 -15
  120. package/dist/cjs/types/callout-component-input-text-area-schema.cjs +0 -15
  121. package/dist/cjs/types/callout-component-input-text-field-schema.cjs +0 -15
  122. package/dist/cjs/types/callout-component-input-text-rules.cjs +0 -15
  123. package/dist/cjs/types/callout-component-input-text-schema.cjs +0 -15
  124. package/dist/cjs/types/callout-component-input-time-rules.cjs +0 -15
  125. package/dist/cjs/types/callout-component-input-time-schema.cjs +0 -15
  126. package/dist/cjs/types/callout-component-input-url-rules.cjs +0 -15
  127. package/dist/cjs/types/callout-component-input-url-schema.cjs +0 -15
  128. package/dist/cjs/types/callout-component-map.cjs +0 -15
  129. package/dist/cjs/types/callout-component-nestable-panel-schema.cjs +0 -15
  130. package/dist/cjs/types/callout-component-nestable-schema.cjs +0 -15
  131. package/dist/cjs/types/callout-component-nestable-tabs-schema.cjs +0 -15
  132. package/dist/cjs/types/callout-component-nestable-well-schema.cjs +0 -15
  133. package/dist/cjs/types/callout-component-schema.cjs +0 -15
  134. package/dist/cjs/types/callout-data.cjs +0 -15
  135. package/dist/cjs/types/callout-filter-name.cjs +0 -15
  136. package/dist/cjs/types/callout-map-schema-icon-styling-answer-icon-definition.cjs +0 -15
  137. package/dist/cjs/types/callout-map-schema-icon-styling-answer-icon.cjs +0 -15
  138. package/dist/cjs/types/callout-map-schema-icon-styling-answer.cjs +0 -15
  139. package/dist/cjs/types/callout-map-schema-icon-styling.cjs +0 -15
  140. package/dist/cjs/types/callout-map-schema.cjs +0 -15
  141. package/dist/cjs/types/callout-newsletter-schema.cjs +0 -15
  142. package/dist/cjs/types/callout-response-answer-address.cjs +0 -15
  143. package/dist/cjs/types/callout-response-answer-file-upload.cjs +0 -15
  144. package/dist/cjs/types/callout-response-answer.cjs +0 -15
  145. package/dist/cjs/types/callout-response-answers-slide.cjs +0 -15
  146. package/dist/cjs/types/callout-response-answers.cjs +0 -15
  147. package/dist/cjs/types/callout-response-comment-data.cjs +0 -15
  148. package/dist/cjs/types/callout-response-comment-filter-name.cjs +0 -15
  149. package/dist/cjs/types/callout-response-filter-name.cjs +0 -15
  150. package/dist/cjs/types/callout-response-guest-data.cjs +0 -15
  151. package/dist/cjs/types/callout-response-newsletter-data.cjs +0 -15
  152. package/dist/cjs/types/callout-response-view-schema.cjs +0 -15
  153. package/dist/cjs/types/callout-reviewer-filter-name.cjs +0 -15
  154. package/dist/cjs/types/callout-tag-filter-name.cjs +0 -15
  155. package/dist/cjs/types/callout-variant-data.cjs +0 -15
  156. package/dist/cjs/types/callout-variant-navigation-data.cjs +0 -15
  157. package/dist/cjs/types/complete-signup-data.cjs +0 -15
  158. package/dist/cjs/types/contact-data.cjs +0 -15
  159. package/dist/cjs/types/contact-mfa-data.cjs +0 -15
  160. package/dist/cjs/types/contact-profile-data.cjs +0 -15
  161. package/dist/cjs/types/contact-role-data.cjs +0 -15
  162. package/dist/cjs/types/contact-tag-filter-name.cjs +0 -15
  163. package/dist/cjs/types/content-contacts-data.cjs +0 -15
  164. package/dist/cjs/types/content-data.cjs +0 -15
  165. package/dist/cjs/types/content-email-data.cjs +0 -15
  166. package/dist/cjs/types/content-general-data.cjs +0 -15
  167. package/dist/cjs/types/content-id.cjs +0 -15
  168. package/dist/cjs/types/content-join-data.cjs +0 -15
  169. package/dist/cjs/types/content-join-period-data.cjs +0 -15
  170. package/dist/cjs/types/content-join-setup-data.cjs +0 -15
  171. package/dist/cjs/types/content-payment-data.cjs +0 -15
  172. package/dist/cjs/types/content-profile-data.cjs +0 -15
  173. package/dist/cjs/types/content-share-data.cjs +0 -15
  174. package/dist/cjs/types/content-telegram-data.cjs +0 -15
  175. package/dist/cjs/types/contribution-info.cjs +0 -15
  176. package/dist/cjs/types/create-api-key-data.cjs +0 -15
  177. package/dist/cjs/types/create-callout-data.cjs +0 -15
  178. package/dist/cjs/types/create-callout-response-comment-data.cjs +0 -15
  179. package/dist/cjs/types/create-callout-response-data.cjs +0 -15
  180. package/dist/cjs/types/create-callout-response-segment-data.cjs +0 -15
  181. package/dist/cjs/types/create-callout-reviewer-data.cjs +0 -15
  182. package/dist/cjs/types/create-callout-variant-data.cjs +0 -15
  183. package/dist/cjs/types/create-contact-data.cjs +0 -15
  184. package/dist/cjs/types/create-contact-mfa-data.cjs +0 -15
  185. package/dist/cjs/types/create-email-data.cjs +0 -15
  186. package/dist/cjs/types/create-notice-data.cjs +0 -15
  187. package/dist/cjs/types/create-payment-data.cjs +0 -15
  188. package/dist/cjs/types/create-reset-device-data.cjs +0 -15
  189. package/dist/cjs/types/create-reset-password-data.cjs +0 -15
  190. package/dist/cjs/types/create-segment-data.cjs +0 -15
  191. package/dist/cjs/types/date-unit.cjs +0 -15
  192. package/dist/cjs/types/delete-contact-mfa-data.cjs +0 -15
  193. package/dist/cjs/types/duration.cjs +0 -15
  194. package/dist/cjs/types/email-filter-name.cjs +0 -15
  195. package/dist/cjs/types/email-preview-data.cjs +0 -15
  196. package/dist/cjs/types/email-template-type.cjs +0 -15
  197. package/dist/cjs/types/enum-filter-args.cjs +0 -15
  198. package/dist/cjs/types/feeable.cjs +0 -15
  199. package/dist/cjs/types/filter-args.cjs +0 -15
  200. package/dist/cjs/types/filter-type.cjs +0 -15
  201. package/dist/cjs/types/filters.cjs +0 -15
  202. package/dist/cjs/types/footer-link.cjs +0 -15
  203. package/dist/cjs/types/force-update-contribution-data.cjs +0 -15
  204. package/dist/cjs/types/formio-file.cjs +0 -15
  205. package/dist/cjs/types/get-api-key-data.cjs +0 -15
  206. package/dist/cjs/types/get-api-keys-query.cjs +0 -15
  207. package/dist/cjs/types/get-callout-data-with.cjs +0 -15
  208. package/dist/cjs/types/get-callout-data.cjs +0 -15
  209. package/dist/cjs/types/get-callout-form-data.cjs +0 -15
  210. package/dist/cjs/types/get-callout-form-schema.cjs +0 -15
  211. package/dist/cjs/types/get-callout-navigation-schema.cjs +0 -15
  212. package/dist/cjs/types/get-callout-response-comment-data.cjs +0 -15
  213. package/dist/cjs/types/get-callout-response-comments-query.cjs +0 -15
  214. package/dist/cjs/types/get-callout-response-data-with.cjs +0 -15
  215. package/dist/cjs/types/get-callout-response-data.cjs +0 -15
  216. package/dist/cjs/types/get-callout-response-map-data.cjs +0 -15
  217. package/dist/cjs/types/get-callout-responses-query.cjs +0 -15
  218. package/dist/cjs/types/get-callout-reviewer-data.cjs +0 -15
  219. package/dist/cjs/types/get-callout-slide-schema.cjs +0 -15
  220. package/dist/cjs/types/get-callout-with.cjs +0 -15
  221. package/dist/cjs/types/get-callouts-query.cjs +0 -15
  222. package/dist/cjs/types/get-contact-data-with.cjs +0 -15
  223. package/dist/cjs/types/get-contact-data.cjs +0 -15
  224. package/dist/cjs/types/get-contact-mfa-data.cjs +0 -15
  225. package/dist/cjs/types/get-contacts-query.cjs +0 -15
  226. package/dist/cjs/types/get-email-data.cjs +0 -15
  227. package/dist/cjs/types/get-email-template-info-data.cjs +0 -15
  228. package/dist/cjs/types/get-notice-data.cjs +0 -15
  229. package/dist/cjs/types/get-notices-query.cjs +0 -15
  230. package/dist/cjs/types/get-payment-aggregation-data.cjs +0 -15
  231. package/dist/cjs/types/get-payment-data-with.cjs +0 -15
  232. package/dist/cjs/types/get-payment-data.cjs +0 -15
  233. package/dist/cjs/types/get-payment-with.cjs +0 -15
  234. package/dist/cjs/types/get-payments-aggregation-query.cjs +0 -15
  235. package/dist/cjs/types/get-payments-query.cjs +0 -15
  236. package/dist/cjs/types/get-segment-data-with.cjs +0 -15
  237. package/dist/cjs/types/get-segment-data.cjs +0 -15
  238. package/dist/cjs/types/get-segment-with.cjs +0 -15
  239. package/dist/cjs/types/get-segments-query.cjs +0 -15
  240. package/dist/cjs/types/get-stats-data.cjs +0 -15
  241. package/dist/cjs/types/get-stats-query.cjs +0 -15
  242. package/dist/cjs/types/health-check-data.cjs +0 -15
  243. package/dist/cjs/types/index.cjs +0 -15
  244. package/dist/cjs/types/list-emails-query.cjs +0 -15
  245. package/dist/cjs/types/login-data.cjs +0 -15
  246. package/dist/cjs/types/newsletter-group-data.cjs +0 -15
  247. package/dist/cjs/types/noop.cjs +0 -15
  248. package/dist/cjs/types/notice-data.cjs +0 -15
  249. package/dist/cjs/types/notice-filter-name.cjs +0 -15
  250. package/dist/cjs/types/ongoing-email-fields.cjs +0 -15
  251. package/dist/cjs/types/operators-by-type.cjs +0 -15
  252. package/dist/cjs/types/other-filter-args.cjs +0 -15
  253. package/dist/cjs/types/paginated-query.cjs +0 -15
  254. package/dist/cjs/types/paginated.cjs +0 -15
  255. package/dist/cjs/types/parse-iso-options.cjs +0 -15
  256. package/dist/cjs/types/payment-filter-name.cjs +0 -15
  257. package/dist/cjs/types/payment-flow-params.cjs +0 -15
  258. package/dist/cjs/types/payment-flow-result.cjs +0 -15
  259. package/dist/cjs/types/payment-period.cjs +0 -15
  260. package/dist/cjs/types/payment-source-base.cjs +0 -15
  261. package/dist/cjs/types/payment-source-go-cardless-direct-debit.cjs +0 -15
  262. package/dist/cjs/types/payment-source-manual.cjs +0 -15
  263. package/dist/cjs/types/payment-source-stripe-bacs.cjs +0 -15
  264. package/dist/cjs/types/payment-source-stripe-card.cjs +0 -15
  265. package/dist/cjs/types/payment-source-stripe-paypal.cjs +0 -15
  266. package/dist/cjs/types/payment-source-stripe-sepa.cjs +0 -15
  267. package/dist/cjs/types/payment-source.cjs +0 -15
  268. package/dist/cjs/types/role-type.cjs +0 -15
  269. package/dist/cjs/types/rule-group.cjs +0 -15
  270. package/dist/cjs/types/rule-operator.cjs +0 -15
  271. package/dist/cjs/types/rule-opperator-params.cjs +0 -15
  272. package/dist/cjs/types/rule-value.cjs +0 -15
  273. package/dist/cjs/types/rule.cjs +0 -15
  274. package/dist/cjs/types/s3-metadata.cjs +0 -15
  275. package/dist/cjs/types/segment-filter-name.cjs +0 -15
  276. package/dist/cjs/types/segment-ongoing-email-trigger.cjs +0 -15
  277. package/dist/cjs/types/serial.cjs +0 -15
  278. package/dist/cjs/types/set-callout-form-schema.cjs +0 -15
  279. package/dist/cjs/types/set-callout-navigation-schema.cjs +0 -15
  280. package/dist/cjs/types/set-callout-slide-schema.cjs +0 -15
  281. package/dist/cjs/types/set-contribution-data.cjs +0 -15
  282. package/dist/cjs/types/signup-data.cjs +0 -15
  283. package/dist/cjs/types/start-contribution-data.cjs +0 -15
  284. package/dist/cjs/types/stripe-fee-country.cjs +0 -15
  285. package/dist/cjs/types/tag-create-data.cjs +0 -15
  286. package/dist/cjs/types/tag-data.cjs +0 -15
  287. package/dist/cjs/types/tag-get-data.cjs +0 -15
  288. package/dist/cjs/types/tag-update-data.cjs +0 -15
  289. package/dist/cjs/types/text-case.cjs +0 -15
  290. package/dist/cjs/types/unit-matches.cjs +0 -15
  291. package/dist/cjs/types/update-callout-data.cjs +0 -15
  292. package/dist/cjs/types/update-callout-response-comment-data.cjs +0 -15
  293. package/dist/cjs/types/update-callout-response-data.cjs +0 -15
  294. package/dist/cjs/types/update-callout-response-segment-data.cjs +0 -15
  295. package/dist/cjs/types/update-callout-reviewer-data.cjs +0 -15
  296. package/dist/cjs/types/update-contact-data.cjs +0 -15
  297. package/dist/cjs/types/update-contact-profile-data.cjs +0 -15
  298. package/dist/cjs/types/update-contact-role-data.cjs +0 -15
  299. package/dist/cjs/types/update-email-data.cjs +0 -15
  300. package/dist/cjs/types/update-notice-data.cjs +0 -15
  301. package/dist/cjs/types/update-reset-device-data.cjs +0 -15
  302. package/dist/cjs/types/update-reset-password-data.cjs +0 -15
  303. package/dist/cjs/types/update-segment-data.cjs +0 -15
  304. package/dist/cjs/types/upload-file-response.cjs +0 -15
  305. package/dist/cjs/types/validated-boolean-rule.cjs +0 -15
  306. package/dist/cjs/types/validated-number-rule.cjs +0 -15
  307. package/dist/cjs/types/validated-rule-group.cjs +0 -15
  308. package/dist/cjs/types/validated-rule-value.cjs +0 -15
  309. package/dist/cjs/types/validated-rule.cjs +0 -15
  310. package/dist/cjs/types/validated-string-rule.cjs +0 -15
  311. package/dist/cjs/types/validator-callout-component.cjs +0 -15
  312. package/dist/cjs/types/validator.cjs +0 -15
  313. package/dist/cjs/utils/callouts.cjs +0 -184
  314. package/dist/cjs/utils/conversions.cjs +0 -52
  315. package/dist/cjs/utils/date.cjs +0 -103
  316. package/dist/cjs/utils/debounce.cjs +0 -73
  317. package/dist/cjs/utils/file.cjs +0 -61
  318. package/dist/cjs/utils/index.cjs +0 -39
  319. package/dist/cjs/utils/payments.cjs +0 -69
  320. package/dist/cjs/utils/rules.cjs +0 -115
  321. package/dist/cjs/utils/slug.cjs +0 -833
  322. package/dist/cjs/utils/url.cjs +0 -53
  323. package/dist/cjs/utils/validations.cjs +0 -176
  324. package/dist/cjs/validators/callout-component-content.validator.cjs +0 -29
  325. package/dist/cjs/validators/callout-component-input-address.validator.cjs +0 -31
  326. package/dist/cjs/validators/callout-component-input-checkbox.validator.cjs +0 -29
  327. package/dist/cjs/validators/callout-component-input-currency.validator.cjs +0 -30
  328. package/dist/cjs/validators/callout-component-input-date-time.validator.cjs +0 -33
  329. package/dist/cjs/validators/callout-component-input-email.validator.cjs +0 -30
  330. package/dist/cjs/validators/callout-component-input-file.validator.cjs +0 -34
  331. package/dist/cjs/validators/callout-component-input-number.validator.cjs +0 -33
  332. package/dist/cjs/validators/callout-component-input-phone-number.validator.cjs +0 -30
  333. package/dist/cjs/validators/callout-component-input-select.validator.cjs +0 -30
  334. package/dist/cjs/validators/callout-component-input-selectable.validator.cjs +0 -30
  335. package/dist/cjs/validators/callout-component-input-signature.validator.cjs +0 -31
  336. package/dist/cjs/validators/callout-component-input-text.validator.cjs +0 -51
  337. package/dist/cjs/validators/callout-component-input-time.validator.cjs +0 -29
  338. package/dist/cjs/validators/callout-component-input-url.validator.cjs +0 -30
  339. package/dist/cjs/validators/callout-component.validator.cjs +0 -114
  340. package/dist/cjs/validators/index.cjs +0 -51
  341. package/dist/esm/constants.js +0 -66
  342. package/dist/esm/data/api-error-code.js +0 -26
  343. package/dist/esm/data/callout-access.js +0 -10
  344. package/dist/esm/data/callout-captcha.js +0 -9
  345. package/dist/esm/data/callout-channel.js +0 -7
  346. package/dist/esm/data/callout-component-base-type.js +0 -11
  347. package/dist/esm/data/callout-component-input-selectable-types.js +0 -8
  348. package/dist/esm/data/callout-component-input-text-types.js +0 -8
  349. package/dist/esm/data/callout-component-input-types.js +0 -22
  350. package/dist/esm/data/callout-component-nestable-types.js +0 -9
  351. package/dist/esm/data/callout-component-type.js +0 -26
  352. package/dist/esm/data/callout-component-types.js +0 -11
  353. package/dist/esm/data/contact-mfa-type.js +0 -7
  354. package/dist/esm/data/content-ids.js +0 -15
  355. package/dist/esm/data/contribution-period.js +0 -8
  356. package/dist/esm/data/contribution-type.js +0 -10
  357. package/dist/esm/data/get-callout-response-with.js +0 -12
  358. package/dist/esm/data/get-contact-with.js +0 -11
  359. package/dist/esm/data/index.js +0 -27
  360. package/dist/esm/data/item-status.js +0 -10
  361. package/dist/esm/data/login-codes.js +0 -14
  362. package/dist/esm/data/membership-status.js +0 -10
  363. package/dist/esm/data/newsletter-status.js +0 -11
  364. package/dist/esm/data/payment-method.js +0 -12
  365. package/dist/esm/data/payment-status.js +0 -11
  366. package/dist/esm/data/payment-type.js +0 -10
  367. package/dist/esm/data/reset-security-flow-error-code.js +0 -9
  368. package/dist/esm/data/reset-security-flow-type.js +0 -8
  369. package/dist/esm/data/role-type-data.js +0 -9
  370. package/dist/esm/error/InvalidRule.js +0 -11
  371. package/dist/esm/error/index.js +0 -1
  372. package/dist/esm/index.js +0 -6
  373. package/dist/esm/search/api-keys.js +0 -12
  374. package/dist/esm/search/callouts.js +0 -163
  375. package/dist/esm/search/contacts.js +0 -125
  376. package/dist/esm/search/emails.js +0 -33
  377. package/dist/esm/search/index.js +0 -9
  378. package/dist/esm/search/notices.js +0 -38
  379. package/dist/esm/search/operators.js +0 -69
  380. package/dist/esm/search/payments.js +0 -39
  381. package/dist/esm/search/segments.js +0 -15
  382. package/dist/esm/search/tags.js +0 -15
  383. package/dist/esm/types/address.js +0 -0
  384. package/dist/esm/types/allow-null.js +0 -0
  385. package/dist/esm/types/api-error-data.js +0 -0
  386. package/dist/esm/types/api-key-filter-name.js +0 -0
  387. package/dist/esm/types/array-filter-args.js +0 -0
  388. package/dist/esm/types/auth-info-data.js +0 -0
  389. package/dist/esm/types/base-filter-args.js +0 -0
  390. package/dist/esm/types/base-validated-rule.js +0 -0
  391. package/dist/esm/types/callout-channel-filter-name.js +0 -0
  392. package/dist/esm/types/callout-component-base-input-schema.js +0 -0
  393. package/dist/esm/types/callout-component-base-input-selectable-schema.js +0 -0
  394. package/dist/esm/types/callout-component-base-input-text-schema.js +0 -0
  395. package/dist/esm/types/callout-component-base-map.js +0 -0
  396. package/dist/esm/types/callout-component-base-nestable-schema.js +0 -0
  397. package/dist/esm/types/callout-component-base-rules.js +0 -0
  398. package/dist/esm/types/callout-component-base-schema.js +0 -0
  399. package/dist/esm/types/callout-component-content-schema.js +0 -0
  400. package/dist/esm/types/callout-component-input-address-rules.js +0 -0
  401. package/dist/esm/types/callout-component-input-address-schema.js +0 -0
  402. package/dist/esm/types/callout-component-input-checkbox-rules.js +0 -0
  403. package/dist/esm/types/callout-component-input-checkbox-schema.js +0 -0
  404. package/dist/esm/types/callout-component-input-currency-rules.js +0 -0
  405. package/dist/esm/types/callout-component-input-currency-schema.js +0 -0
  406. package/dist/esm/types/callout-component-input-date-time-rules.js +0 -0
  407. package/dist/esm/types/callout-component-input-date-time-schema.js +0 -0
  408. package/dist/esm/types/callout-component-input-email-rules.js +0 -0
  409. package/dist/esm/types/callout-component-input-email-schema.js +0 -0
  410. package/dist/esm/types/callout-component-input-file-rules.js +0 -0
  411. package/dist/esm/types/callout-component-input-file-schema.js +0 -0
  412. package/dist/esm/types/callout-component-input-number-rules.js +0 -0
  413. package/dist/esm/types/callout-component-input-number-schema.js +0 -0
  414. package/dist/esm/types/callout-component-input-phone-number-rules.js +0 -0
  415. package/dist/esm/types/callout-component-input-phone-number-schema.js +0 -0
  416. package/dist/esm/types/callout-component-input-schema.js +0 -0
  417. package/dist/esm/types/callout-component-input-select-rules.js +0 -0
  418. package/dist/esm/types/callout-component-input-select-schema.js +0 -0
  419. package/dist/esm/types/callout-component-input-selectable-radio-rules.js +0 -0
  420. package/dist/esm/types/callout-component-input-selectable-radio-schema.js +0 -0
  421. package/dist/esm/types/callout-component-input-selectable-schema.js +0 -0
  422. package/dist/esm/types/callout-component-input-selectable-selectboxes-rules.js +0 -0
  423. package/dist/esm/types/callout-component-input-selectable-selectboxes-schema.js +0 -0
  424. package/dist/esm/types/callout-component-input-signature-rules.js +0 -0
  425. package/dist/esm/types/callout-component-input-signature-schema.js +0 -0
  426. package/dist/esm/types/callout-component-input-text-area-schema.js +0 -0
  427. package/dist/esm/types/callout-component-input-text-field-schema.js +0 -0
  428. package/dist/esm/types/callout-component-input-text-rules.js +0 -0
  429. package/dist/esm/types/callout-component-input-text-schema.js +0 -0
  430. package/dist/esm/types/callout-component-input-time-rules.js +0 -0
  431. package/dist/esm/types/callout-component-input-time-schema.js +0 -0
  432. package/dist/esm/types/callout-component-input-url-rules.js +0 -0
  433. package/dist/esm/types/callout-component-input-url-schema.js +0 -0
  434. package/dist/esm/types/callout-component-map.js +0 -0
  435. package/dist/esm/types/callout-component-nestable-panel-schema.js +0 -0
  436. package/dist/esm/types/callout-component-nestable-schema.js +0 -0
  437. package/dist/esm/types/callout-component-nestable-tabs-schema.js +0 -0
  438. package/dist/esm/types/callout-component-nestable-well-schema.js +0 -0
  439. package/dist/esm/types/callout-component-schema.js +0 -0
  440. package/dist/esm/types/callout-data.js +0 -0
  441. package/dist/esm/types/callout-filter-name.js +0 -0
  442. package/dist/esm/types/callout-map-schema-icon-styling-answer-icon-definition.js +0 -0
  443. package/dist/esm/types/callout-map-schema-icon-styling-answer-icon.js +0 -0
  444. package/dist/esm/types/callout-map-schema-icon-styling-answer.js +0 -0
  445. package/dist/esm/types/callout-map-schema-icon-styling.js +0 -0
  446. package/dist/esm/types/callout-map-schema.js +0 -0
  447. package/dist/esm/types/callout-newsletter-schema.js +0 -0
  448. package/dist/esm/types/callout-response-answer-address.js +0 -0
  449. package/dist/esm/types/callout-response-answer-file-upload.js +0 -0
  450. package/dist/esm/types/callout-response-answer.js +0 -0
  451. package/dist/esm/types/callout-response-answers-slide.js +0 -0
  452. package/dist/esm/types/callout-response-answers.js +0 -0
  453. package/dist/esm/types/callout-response-comment-data.js +0 -0
  454. package/dist/esm/types/callout-response-comment-filter-name.js +0 -0
  455. package/dist/esm/types/callout-response-filter-name.js +0 -0
  456. package/dist/esm/types/callout-response-guest-data.js +0 -0
  457. package/dist/esm/types/callout-response-newsletter-data.js +0 -0
  458. package/dist/esm/types/callout-response-view-schema.js +0 -0
  459. package/dist/esm/types/callout-reviewer-filter-name.js +0 -0
  460. package/dist/esm/types/callout-tag-filter-name.js +0 -0
  461. package/dist/esm/types/callout-variant-data.js +0 -0
  462. package/dist/esm/types/callout-variant-navigation-data.js +0 -0
  463. package/dist/esm/types/complete-signup-data.js +0 -0
  464. package/dist/esm/types/contact-data.js +0 -0
  465. package/dist/esm/types/contact-mfa-data.js +0 -0
  466. package/dist/esm/types/contact-profile-data.js +0 -0
  467. package/dist/esm/types/contact-role-data.js +0 -0
  468. package/dist/esm/types/contact-tag-filter-name.js +0 -0
  469. package/dist/esm/types/content-contacts-data.js +0 -0
  470. package/dist/esm/types/content-data.js +0 -0
  471. package/dist/esm/types/content-email-data.js +0 -0
  472. package/dist/esm/types/content-general-data.js +0 -0
  473. package/dist/esm/types/content-id.js +0 -0
  474. package/dist/esm/types/content-join-data.js +0 -0
  475. package/dist/esm/types/content-join-period-data.js +0 -0
  476. package/dist/esm/types/content-join-setup-data.js +0 -0
  477. package/dist/esm/types/content-payment-data.js +0 -0
  478. package/dist/esm/types/content-profile-data.js +0 -0
  479. package/dist/esm/types/content-share-data.js +0 -0
  480. package/dist/esm/types/content-telegram-data.js +0 -0
  481. package/dist/esm/types/contribution-info.js +0 -0
  482. package/dist/esm/types/create-api-key-data.js +0 -0
  483. package/dist/esm/types/create-callout-data.js +0 -0
  484. package/dist/esm/types/create-callout-response-comment-data.js +0 -0
  485. package/dist/esm/types/create-callout-response-data.js +0 -0
  486. package/dist/esm/types/create-callout-response-segment-data.js +0 -0
  487. package/dist/esm/types/create-callout-reviewer-data.js +0 -0
  488. package/dist/esm/types/create-callout-variant-data.js +0 -0
  489. package/dist/esm/types/create-contact-data.js +0 -0
  490. package/dist/esm/types/create-contact-mfa-data.js +0 -0
  491. package/dist/esm/types/create-email-data.js +0 -0
  492. package/dist/esm/types/create-notice-data.js +0 -0
  493. package/dist/esm/types/create-payment-data.js +0 -0
  494. package/dist/esm/types/create-reset-device-data.js +0 -0
  495. package/dist/esm/types/create-reset-password-data.js +0 -0
  496. package/dist/esm/types/create-segment-data.js +0 -0
  497. package/dist/esm/types/date-unit.js +0 -0
  498. package/dist/esm/types/delete-contact-mfa-data.js +0 -0
  499. package/dist/esm/types/duration.js +0 -0
  500. package/dist/esm/types/email-filter-name.js +0 -0
  501. package/dist/esm/types/email-preview-data.js +0 -0
  502. package/dist/esm/types/email-template-type.js +0 -0
  503. package/dist/esm/types/enum-filter-args.js +0 -0
  504. package/dist/esm/types/feeable.js +0 -0
  505. package/dist/esm/types/filter-args.js +0 -0
  506. package/dist/esm/types/filter-type.js +0 -0
  507. package/dist/esm/types/filters.js +0 -0
  508. package/dist/esm/types/footer-link.js +0 -0
  509. package/dist/esm/types/force-update-contribution-data.js +0 -0
  510. package/dist/esm/types/formio-file.js +0 -0
  511. package/dist/esm/types/get-api-key-data.js +0 -0
  512. package/dist/esm/types/get-api-keys-query.js +0 -0
  513. package/dist/esm/types/get-callout-data-with.js +0 -0
  514. package/dist/esm/types/get-callout-data.js +0 -0
  515. package/dist/esm/types/get-callout-form-data.js +0 -0
  516. package/dist/esm/types/get-callout-form-schema.js +0 -0
  517. package/dist/esm/types/get-callout-navigation-schema.js +0 -0
  518. package/dist/esm/types/get-callout-response-comment-data.js +0 -0
  519. package/dist/esm/types/get-callout-response-comments-query.js +0 -0
  520. package/dist/esm/types/get-callout-response-data-with.js +0 -0
  521. package/dist/esm/types/get-callout-response-data.js +0 -0
  522. package/dist/esm/types/get-callout-response-map-data.js +0 -0
  523. package/dist/esm/types/get-callout-responses-query.js +0 -0
  524. package/dist/esm/types/get-callout-reviewer-data.js +0 -0
  525. package/dist/esm/types/get-callout-slide-schema.js +0 -0
  526. package/dist/esm/types/get-callout-with.js +0 -0
  527. package/dist/esm/types/get-callouts-query.js +0 -0
  528. package/dist/esm/types/get-contact-data-with.js +0 -0
  529. package/dist/esm/types/get-contact-data.js +0 -0
  530. package/dist/esm/types/get-contact-mfa-data.js +0 -0
  531. package/dist/esm/types/get-contacts-query.js +0 -0
  532. package/dist/esm/types/get-email-data.js +0 -0
  533. package/dist/esm/types/get-email-template-info-data.js +0 -0
  534. package/dist/esm/types/get-notice-data.js +0 -0
  535. package/dist/esm/types/get-notices-query.js +0 -0
  536. package/dist/esm/types/get-payment-aggregation-data.js +0 -0
  537. package/dist/esm/types/get-payment-data-with.js +0 -0
  538. package/dist/esm/types/get-payment-data.js +0 -0
  539. package/dist/esm/types/get-payment-with.js +0 -0
  540. package/dist/esm/types/get-payments-aggregation-query.js +0 -0
  541. package/dist/esm/types/get-payments-query.js +0 -0
  542. package/dist/esm/types/get-segment-data-with.js +0 -0
  543. package/dist/esm/types/get-segment-data.js +0 -0
  544. package/dist/esm/types/get-segment-with.js +0 -0
  545. package/dist/esm/types/get-segments-query.js +0 -0
  546. package/dist/esm/types/get-stats-data.js +0 -0
  547. package/dist/esm/types/get-stats-query.js +0 -0
  548. package/dist/esm/types/health-check-data.js +0 -0
  549. package/dist/esm/types/index.js +0 -0
  550. package/dist/esm/types/list-emails-query.js +0 -0
  551. package/dist/esm/types/login-data.js +0 -0
  552. package/dist/esm/types/newsletter-group-data.js +0 -0
  553. package/dist/esm/types/noop.js +0 -0
  554. package/dist/esm/types/notice-data.js +0 -0
  555. package/dist/esm/types/notice-filter-name.js +0 -0
  556. package/dist/esm/types/ongoing-email-fields.js +0 -0
  557. package/dist/esm/types/operators-by-type.js +0 -0
  558. package/dist/esm/types/other-filter-args.js +0 -0
  559. package/dist/esm/types/paginated-query.js +0 -0
  560. package/dist/esm/types/paginated.js +0 -0
  561. package/dist/esm/types/parse-iso-options.js +0 -0
  562. package/dist/esm/types/payment-filter-name.js +0 -0
  563. package/dist/esm/types/payment-flow-params.js +0 -0
  564. package/dist/esm/types/payment-flow-result.js +0 -0
  565. package/dist/esm/types/payment-period.js +0 -0
  566. package/dist/esm/types/payment-source-base.js +0 -0
  567. package/dist/esm/types/payment-source-go-cardless-direct-debit.js +0 -0
  568. package/dist/esm/types/payment-source-manual.js +0 -0
  569. package/dist/esm/types/payment-source-stripe-bacs.js +0 -0
  570. package/dist/esm/types/payment-source-stripe-card.js +0 -0
  571. package/dist/esm/types/payment-source-stripe-paypal.js +0 -0
  572. package/dist/esm/types/payment-source-stripe-sepa.js +0 -0
  573. package/dist/esm/types/payment-source.js +0 -0
  574. package/dist/esm/types/role-type.js +0 -0
  575. package/dist/esm/types/rule-group.js +0 -0
  576. package/dist/esm/types/rule-operator.js +0 -0
  577. package/dist/esm/types/rule-opperator-params.js +0 -0
  578. package/dist/esm/types/rule-value.js +0 -0
  579. package/dist/esm/types/rule.js +0 -0
  580. package/dist/esm/types/s3-metadata.js +0 -0
  581. package/dist/esm/types/segment-filter-name.js +0 -0
  582. package/dist/esm/types/segment-ongoing-email-trigger.js +0 -0
  583. package/dist/esm/types/serial.js +0 -0
  584. package/dist/esm/types/set-callout-form-schema.js +0 -0
  585. package/dist/esm/types/set-callout-navigation-schema.js +0 -0
  586. package/dist/esm/types/set-callout-slide-schema.js +0 -0
  587. package/dist/esm/types/set-contribution-data.js +0 -0
  588. package/dist/esm/types/signup-data.js +0 -0
  589. package/dist/esm/types/start-contribution-data.js +0 -0
  590. package/dist/esm/types/stripe-fee-country.js +0 -0
  591. package/dist/esm/types/tag-create-data.js +0 -0
  592. package/dist/esm/types/tag-data.js +0 -0
  593. package/dist/esm/types/tag-get-data.js +0 -0
  594. package/dist/esm/types/tag-update-data.js +0 -0
  595. package/dist/esm/types/text-case.js +0 -0
  596. package/dist/esm/types/unit-matches.js +0 -0
  597. package/dist/esm/types/update-callout-data.js +0 -0
  598. package/dist/esm/types/update-callout-response-comment-data.js +0 -0
  599. package/dist/esm/types/update-callout-response-data.js +0 -0
  600. package/dist/esm/types/update-callout-response-segment-data.js +0 -0
  601. package/dist/esm/types/update-callout-reviewer-data.js +0 -0
  602. package/dist/esm/types/update-contact-data.js +0 -0
  603. package/dist/esm/types/update-contact-profile-data.js +0 -0
  604. package/dist/esm/types/update-contact-role-data.js +0 -0
  605. package/dist/esm/types/update-email-data.js +0 -0
  606. package/dist/esm/types/update-notice-data.js +0 -0
  607. package/dist/esm/types/update-reset-device-data.js +0 -0
  608. package/dist/esm/types/update-reset-password-data.js +0 -0
  609. package/dist/esm/types/update-segment-data.js +0 -0
  610. package/dist/esm/types/upload-file-response.js +0 -0
  611. package/dist/esm/types/validated-boolean-rule.js +0 -0
  612. package/dist/esm/types/validated-number-rule.js +0 -0
  613. package/dist/esm/types/validated-rule-group.js +0 -0
  614. package/dist/esm/types/validated-rule-value.js +0 -0
  615. package/dist/esm/types/validated-rule.js +0 -0
  616. package/dist/esm/types/validated-string-rule.js +0 -0
  617. package/dist/esm/types/validator-callout-component.js +0 -0
  618. package/dist/esm/types/validator.js +0 -0
  619. package/dist/esm/utils/callouts.js +0 -157
  620. package/dist/esm/utils/conversions.js +0 -28
  621. package/dist/esm/utils/date.js +0 -84
  622. package/dist/esm/utils/debounce.js +0 -49
  623. package/dist/esm/utils/file.js +0 -39
  624. package/dist/esm/utils/index.js +0 -10
  625. package/dist/esm/utils/payments.js +0 -46
  626. package/dist/esm/utils/rules.js +0 -86
  627. package/dist/esm/utils/slug.js +0 -810
  628. package/dist/esm/utils/url.js +0 -28
  629. package/dist/esm/utils/validations.js +0 -138
  630. package/dist/esm/validators/callout-component-content.validator.js +0 -6
  631. package/dist/esm/validators/callout-component-input-address.validator.js +0 -8
  632. package/dist/esm/validators/callout-component-input-checkbox.validator.js +0 -6
  633. package/dist/esm/validators/callout-component-input-currency.validator.js +0 -7
  634. package/dist/esm/validators/callout-component-input-date-time.validator.js +0 -10
  635. package/dist/esm/validators/callout-component-input-email.validator.js +0 -7
  636. package/dist/esm/validators/callout-component-input-file.validator.js +0 -11
  637. package/dist/esm/validators/callout-component-input-number.validator.js +0 -10
  638. package/dist/esm/validators/callout-component-input-phone-number.validator.js +0 -7
  639. package/dist/esm/validators/callout-component-input-select.validator.js +0 -7
  640. package/dist/esm/validators/callout-component-input-selectable.validator.js +0 -7
  641. package/dist/esm/validators/callout-component-input-signature.validator.js +0 -8
  642. package/dist/esm/validators/callout-component-input-text.validator.js +0 -28
  643. package/dist/esm/validators/callout-component-input-time.validator.js +0 -6
  644. package/dist/esm/validators/callout-component-input-url.validator.js +0 -7
  645. package/dist/esm/validators/callout-component.validator.js +0 -91
  646. package/dist/esm/validators/index.js +0 -16
  647. package/dist/types/constants.d.ts +0 -78
  648. package/dist/types/data/api-error-code.d.ts +0 -22
  649. package/dist/types/data/callout-access.d.ts +0 -6
  650. package/dist/types/data/callout-captcha.d.ts +0 -5
  651. package/dist/types/data/callout-channel.d.ts +0 -3
  652. package/dist/types/data/callout-component-base-type.d.ts +0 -8
  653. package/dist/types/data/callout-component-input-selectable-types.d.ts +0 -3
  654. package/dist/types/data/callout-component-input-text-types.d.ts +0 -3
  655. package/dist/types/data/callout-component-input-types.d.ts +0 -3
  656. package/dist/types/data/callout-component-nestable-types.d.ts +0 -3
  657. package/dist/types/data/callout-component-type.d.ts +0 -23
  658. package/dist/types/data/callout-component-types.d.ts +0 -3
  659. package/dist/types/data/contact-mfa-type.d.ts +0 -6
  660. package/dist/types/data/content-ids.d.ts +0 -2
  661. package/dist/types/data/contribution-period.d.ts +0 -4
  662. package/dist/types/data/contribution-type.d.ts +0 -6
  663. package/dist/types/data/get-callout-response-with.d.ts +0 -8
  664. package/dist/types/data/get-contact-with.d.ts +0 -7
  665. package/dist/types/data/index.d.ts +0 -27
  666. package/dist/types/data/item-status.d.ts +0 -6
  667. package/dist/types/data/login-codes.d.ts +0 -13
  668. package/dist/types/data/membership-status.d.ts +0 -6
  669. package/dist/types/data/newsletter-status.d.ts +0 -7
  670. package/dist/types/data/payment-method.d.ts +0 -8
  671. package/dist/types/data/payment-status.d.ts +0 -7
  672. package/dist/types/data/payment-type.d.ts +0 -6
  673. package/dist/types/data/reset-security-flow-error-code.d.ts +0 -8
  674. package/dist/types/data/reset-security-flow-type.d.ts +0 -7
  675. package/dist/types/data/role-type-data.d.ts +0 -5
  676. package/dist/types/error/InvalidRule.d.ts +0 -6
  677. package/dist/types/error/index.d.ts +0 -1
  678. package/dist/types/index.d.cts +0 -1
  679. package/dist/types/search/api-keys.d.ts +0 -8
  680. package/dist/types/search/callouts.d.ts +0 -141
  681. package/dist/types/search/contacts.d.ts +0 -103
  682. package/dist/types/search/emails.d.ts +0 -29
  683. package/dist/types/search/index.d.ts +0 -9
  684. package/dist/types/search/notices.d.ts +0 -29
  685. package/dist/types/search/operators.d.ts +0 -75
  686. package/dist/types/search/payments.d.ts +0 -24
  687. package/dist/types/search/segments.d.ts +0 -11
  688. package/dist/types/search/tags.d.ts +0 -12
  689. package/dist/types/types/address.d.ts +0 -6
  690. package/dist/types/types/allow-null.d.ts +0 -7
  691. package/dist/types/types/api-error-data.d.ts +0 -111
  692. package/dist/types/types/api-key-filter-name.d.ts +0 -2
  693. package/dist/types/types/array-filter-args.d.ts +0 -5
  694. package/dist/types/types/auth-info-data.d.ts +0 -24
  695. package/dist/types/types/base-filter-args.d.ts +0 -5
  696. package/dist/types/types/base-validated-rule.d.ts +0 -9
  697. package/dist/types/types/callout-channel-filter-name.d.ts +0 -2
  698. package/dist/types/types/callout-component-base-input-schema.d.ts +0 -11
  699. package/dist/types/types/callout-component-base-input-selectable-schema.d.ts +0 -11
  700. package/dist/types/types/callout-component-base-input-text-schema.d.ts +0 -12
  701. package/dist/types/types/callout-component-base-map.d.ts +0 -16
  702. package/dist/types/types/callout-component-base-nestable-schema.d.ts +0 -7
  703. package/dist/types/types/callout-component-base-rules.d.ts +0 -6
  704. package/dist/types/types/callout-component-base-schema.d.ts +0 -22
  705. package/dist/types/types/callout-component-content-schema.d.ts +0 -12
  706. package/dist/types/types/callout-component-input-address-rules.d.ts +0 -2
  707. package/dist/types/types/callout-component-input-address-schema.d.ts +0 -9
  708. package/dist/types/types/callout-component-input-checkbox-rules.d.ts +0 -2
  709. package/dist/types/types/callout-component-input-checkbox-schema.d.ts +0 -11
  710. package/dist/types/types/callout-component-input-currency-rules.d.ts +0 -2
  711. package/dist/types/types/callout-component-input-currency-schema.d.ts +0 -17
  712. package/dist/types/types/callout-component-input-date-time-rules.d.ts +0 -2
  713. package/dist/types/types/callout-component-input-date-time-schema.d.ts +0 -39
  714. package/dist/types/types/callout-component-input-email-rules.d.ts +0 -9
  715. package/dist/types/types/callout-component-input-email-schema.d.ts +0 -11
  716. package/dist/types/types/callout-component-input-file-rules.d.ts +0 -2
  717. package/dist/types/types/callout-component-input-file-schema.d.ts +0 -19
  718. package/dist/types/types/callout-component-input-number-rules.d.ts +0 -9
  719. package/dist/types/types/callout-component-input-number-schema.d.ts +0 -17
  720. package/dist/types/types/callout-component-input-phone-number-rules.d.ts +0 -2
  721. package/dist/types/types/callout-component-input-phone-number-schema.d.ts +0 -9
  722. package/dist/types/types/callout-component-input-schema.d.ts +0 -3
  723. package/dist/types/types/callout-component-input-select-rules.d.ts +0 -2
  724. package/dist/types/types/callout-component-input-select-schema.d.ts +0 -17
  725. package/dist/types/types/callout-component-input-selectable-radio-rules.d.ts +0 -2
  726. package/dist/types/types/callout-component-input-selectable-radio-schema.d.ts +0 -6
  727. package/dist/types/types/callout-component-input-selectable-schema.d.ts +0 -3
  728. package/dist/types/types/callout-component-input-selectable-selectboxes-rules.d.ts +0 -2
  729. package/dist/types/types/callout-component-input-selectable-selectboxes-schema.d.ts +0 -6
  730. package/dist/types/types/callout-component-input-signature-rules.d.ts +0 -2
  731. package/dist/types/types/callout-component-input-signature-schema.d.ts +0 -7
  732. package/dist/types/types/callout-component-input-text-area-schema.d.ts +0 -5
  733. package/dist/types/types/callout-component-input-text-field-schema.d.ts +0 -5
  734. package/dist/types/types/callout-component-input-text-rules.d.ts +0 -13
  735. package/dist/types/types/callout-component-input-text-schema.d.ts +0 -3
  736. package/dist/types/types/callout-component-input-time-rules.d.ts +0 -2
  737. package/dist/types/types/callout-component-input-time-schema.d.ts +0 -9
  738. package/dist/types/types/callout-component-input-url-rules.d.ts +0 -9
  739. package/dist/types/types/callout-component-input-url-schema.d.ts +0 -11
  740. package/dist/types/types/callout-component-map.d.ts +0 -31
  741. package/dist/types/types/callout-component-nestable-panel-schema.d.ts +0 -5
  742. package/dist/types/types/callout-component-nestable-schema.d.ts +0 -2
  743. package/dist/types/types/callout-component-nestable-tabs-schema.d.ts +0 -5
  744. package/dist/types/types/callout-component-nestable-well-schema.d.ts +0 -5
  745. package/dist/types/types/callout-component-schema.d.ts +0 -3
  746. package/dist/types/types/callout-data.d.ts +0 -17
  747. package/dist/types/types/callout-filter-name.d.ts +0 -2
  748. package/dist/types/types/callout-map-schema-icon-styling-answer-icon-definition.d.ts +0 -4
  749. package/dist/types/types/callout-map-schema-icon-styling-answer-icon.d.ts +0 -5
  750. package/dist/types/types/callout-map-schema-icon-styling-answer.d.ts +0 -2
  751. package/dist/types/types/callout-map-schema-icon-styling.d.ts +0 -2
  752. package/dist/types/types/callout-map-schema.d.ts +0 -20
  753. package/dist/types/types/callout-newsletter-schema.d.ts +0 -7
  754. package/dist/types/types/callout-response-answer-address.d.ts +0 -17
  755. package/dist/types/types/callout-response-answer-file-upload.d.ts +0 -8
  756. package/dist/types/types/callout-response-answer.d.ts +0 -2
  757. package/dist/types/types/callout-response-answers-slide.d.ts +0 -5
  758. package/dist/types/types/callout-response-answers.d.ts +0 -5
  759. package/dist/types/types/callout-response-comment-data.d.ts +0 -4
  760. package/dist/types/types/callout-response-comment-filter-name.d.ts +0 -2
  761. package/dist/types/types/callout-response-filter-name.d.ts +0 -2
  762. package/dist/types/types/callout-response-guest-data.d.ts +0 -5
  763. package/dist/types/types/callout-response-newsletter-data.d.ts +0 -4
  764. package/dist/types/types/callout-response-view-schema.d.ts +0 -13
  765. package/dist/types/types/callout-reviewer-filter-name.d.ts +0 -2
  766. package/dist/types/types/callout-tag-filter-name.d.ts +0 -2
  767. package/dist/types/types/callout-variant-data.d.ts +0 -19
  768. package/dist/types/types/callout-variant-navigation-data.d.ts +0 -5
  769. package/dist/types/types/complete-signup-data.d.ts +0 -6
  770. package/dist/types/types/contact-data.d.ts +0 -6
  771. package/dist/types/types/contact-mfa-data.d.ts +0 -8
  772. package/dist/types/types/contact-profile-data.d.ts +0 -13
  773. package/dist/types/types/contact-role-data.d.ts +0 -5
  774. package/dist/types/types/contact-tag-filter-name.d.ts +0 -2
  775. package/dist/types/types/content-contacts-data.d.ts +0 -4
  776. package/dist/types/types/content-data.d.ts +0 -2
  777. package/dist/types/types/content-email-data.d.ts +0 -5
  778. package/dist/types/types/content-general-data.d.ts +0 -35
  779. package/dist/types/types/content-id.d.ts +0 -1
  780. package/dist/types/types/content-join-data.d.ts +0 -17
  781. package/dist/types/types/content-join-period-data.d.ts +0 -5
  782. package/dist/types/types/content-join-setup-data.d.ts +0 -16
  783. package/dist/types/types/content-payment-data.d.ts +0 -9
  784. package/dist/types/types/content-profile-data.d.ts +0 -3
  785. package/dist/types/types/content-share-data.d.ts +0 -6
  786. package/dist/types/types/content-telegram-data.d.ts +0 -4
  787. package/dist/types/types/contribution-info.d.ts +0 -15
  788. package/dist/types/types/create-api-key-data.d.ts +0 -4
  789. package/dist/types/types/create-callout-data.d.ts +0 -5
  790. package/dist/types/types/create-callout-response-comment-data.d.ts +0 -2
  791. package/dist/types/types/create-callout-response-data.d.ts +0 -10
  792. package/dist/types/types/create-callout-response-segment-data.d.ts +0 -7
  793. package/dist/types/types/create-callout-reviewer-data.d.ts +0 -4
  794. package/dist/types/types/create-callout-variant-data.d.ts +0 -5
  795. package/dist/types/types/create-contact-data.d.ts +0 -8
  796. package/dist/types/types/create-contact-mfa-data.d.ts +0 -6
  797. package/dist/types/types/create-email-data.d.ts +0 -9
  798. package/dist/types/types/create-notice-data.d.ts +0 -2
  799. package/dist/types/types/create-payment-data.d.ts +0 -7
  800. package/dist/types/types/create-reset-device-data.d.ts +0 -7
  801. package/dist/types/types/create-reset-password-data.d.ts +0 -4
  802. package/dist/types/types/create-segment-data.d.ts +0 -6
  803. package/dist/types/types/date-unit.d.ts +0 -2
  804. package/dist/types/types/delete-contact-mfa-data.d.ts +0 -5
  805. package/dist/types/types/duration.d.ts +0 -1
  806. package/dist/types/types/email-filter-name.d.ts +0 -2
  807. package/dist/types/types/email-preview-data.d.ts +0 -8
  808. package/dist/types/types/email-template-type.d.ts +0 -1
  809. package/dist/types/types/enum-filter-args.d.ts +0 -5
  810. package/dist/types/types/feeable.d.ts +0 -7
  811. package/dist/types/types/filter-args.d.ts +0 -2
  812. package/dist/types/types/filter-type.d.ts +0 -1
  813. package/dist/types/types/filters.d.ts +0 -2
  814. package/dist/types/types/footer-link.d.ts +0 -4
  815. package/dist/types/types/force-update-contribution-data.d.ts +0 -8
  816. package/dist/types/types/formio-file.d.ts +0 -13
  817. package/dist/types/types/get-api-key-data.d.ts +0 -8
  818. package/dist/types/types/get-api-keys-query.d.ts +0 -2
  819. package/dist/types/types/get-callout-data-with.d.ts +0 -12
  820. package/dist/types/types/get-callout-data.d.ts +0 -9
  821. package/dist/types/types/get-callout-form-data.d.ts +0 -10
  822. package/dist/types/types/get-callout-form-schema.d.ts +0 -5
  823. package/dist/types/types/get-callout-navigation-schema.d.ts +0 -6
  824. package/dist/types/types/get-callout-response-comment-data.d.ts +0 -7
  825. package/dist/types/types/get-callout-response-comments-query.d.ts +0 -2
  826. package/dist/types/types/get-callout-response-data-with.d.ts +0 -18
  827. package/dist/types/types/get-callout-response-data.d.ts +0 -9
  828. package/dist/types/types/get-callout-response-map-data.d.ts +0 -8
  829. package/dist/types/types/get-callout-responses-query.d.ts +0 -2
  830. package/dist/types/types/get-callout-reviewer-data.d.ts +0 -6
  831. package/dist/types/types/get-callout-slide-schema.d.ts +0 -4
  832. package/dist/types/types/get-callout-with.d.ts +0 -1
  833. package/dist/types/types/get-callouts-query.d.ts +0 -2
  834. package/dist/types/types/get-contact-data-with.d.ts +0 -16
  835. package/dist/types/types/get-contact-data.d.ts +0 -10
  836. package/dist/types/types/get-contact-mfa-data.d.ts +0 -2
  837. package/dist/types/types/get-contacts-query.d.ts +0 -2
  838. package/dist/types/types/get-email-data.d.ts +0 -27
  839. package/dist/types/types/get-email-template-info-data.d.ts +0 -15
  840. package/dist/types/types/get-notice-data.d.ts +0 -8
  841. package/dist/types/types/get-notices-query.d.ts +0 -2
  842. package/dist/types/types/get-payment-aggregation-data.d.ts +0 -4
  843. package/dist/types/types/get-payment-data-with.d.ts +0 -4
  844. package/dist/types/types/get-payment-data.d.ts +0 -8
  845. package/dist/types/types/get-payment-with.d.ts +0 -1
  846. package/dist/types/types/get-payments-aggregation-query.d.ts +0 -4
  847. package/dist/types/types/get-payments-query.d.ts +0 -2
  848. package/dist/types/types/get-segment-data-with.d.ts +0 -4
  849. package/dist/types/types/get-segment-data.d.ts +0 -7
  850. package/dist/types/types/get-segment-with.d.ts +0 -1
  851. package/dist/types/types/get-segments-query.d.ts +0 -2
  852. package/dist/types/types/get-stats-data.d.ts +0 -5
  853. package/dist/types/types/get-stats-query.d.ts +0 -4
  854. package/dist/types/types/health-check-data.d.ts +0 -10
  855. package/dist/types/types/index.d.ts +0 -235
  856. package/dist/types/types/list-emails-query.d.ts +0 -2
  857. package/dist/types/types/login-data.d.ts +0 -6
  858. package/dist/types/types/newsletter-group-data.d.ts +0 -5
  859. package/dist/types/types/noop.d.ts +0 -5
  860. package/dist/types/types/notice-data.d.ts +0 -8
  861. package/dist/types/types/notice-filter-name.d.ts +0 -2
  862. package/dist/types/types/ongoing-email-fields.d.ts +0 -10
  863. package/dist/types/types/operators-by-type.d.ts +0 -2
  864. package/dist/types/types/other-filter-args.d.ts +0 -4
  865. package/dist/types/types/paginated-query.d.ts +0 -8
  866. package/dist/types/types/paginated.d.ts +0 -6
  867. package/dist/types/types/parse-iso-options.d.ts +0 -7
  868. package/dist/types/types/payment-filter-name.d.ts +0 -2
  869. package/dist/types/types/payment-flow-params.d.ts +0 -13
  870. package/dist/types/types/payment-flow-result.d.ts +0 -4
  871. package/dist/types/types/payment-period.d.ts +0 -2
  872. package/dist/types/types/payment-source-base.d.ts +0 -4
  873. package/dist/types/types/payment-source-go-cardless-direct-debit.d.ts +0 -8
  874. package/dist/types/types/payment-source-manual.d.ts +0 -6
  875. package/dist/types/types/payment-source-stripe-bacs.d.ts +0 -7
  876. package/dist/types/types/payment-source-stripe-card.d.ts +0 -15
  877. package/dist/types/types/payment-source-stripe-paypal.d.ts +0 -7
  878. package/dist/types/types/payment-source-stripe-sepa.d.ts +0 -9
  879. package/dist/types/types/payment-source.d.ts +0 -2
  880. package/dist/types/types/role-type.d.ts +0 -2
  881. package/dist/types/types/rule-group.d.ts +0 -5
  882. package/dist/types/types/rule-operator.d.ts +0 -2
  883. package/dist/types/types/rule-opperator-params.d.ts +0 -3
  884. package/dist/types/types/rule-value.d.ts +0 -1
  885. package/dist/types/types/rule.d.ts +0 -6
  886. package/dist/types/types/s3-metadata.d.ts +0 -14
  887. package/dist/types/types/segment-filter-name.d.ts +0 -2
  888. package/dist/types/types/segment-ongoing-email-trigger.d.ts +0 -6
  889. package/dist/types/types/serial.d.ts +0 -3
  890. package/dist/types/types/set-callout-form-schema.d.ts +0 -4
  891. package/dist/types/types/set-callout-navigation-schema.d.ts +0 -3
  892. package/dist/types/types/set-callout-slide-schema.d.ts +0 -7
  893. package/dist/types/types/set-contribution-data.d.ts +0 -7
  894. package/dist/types/types/signup-data.d.ts +0 -6
  895. package/dist/types/types/start-contribution-data.d.ts +0 -6
  896. package/dist/types/types/stripe-fee-country.d.ts +0 -1
  897. package/dist/types/types/tag-create-data.d.ts +0 -2
  898. package/dist/types/types/tag-data.d.ts +0 -5
  899. package/dist/types/types/tag-get-data.d.ts +0 -2
  900. package/dist/types/types/tag-update-data.d.ts +0 -2
  901. package/dist/types/types/text-case.d.ts +0 -1
  902. package/dist/types/types/unit-matches.d.ts +0 -6
  903. package/dist/types/types/update-callout-data.d.ts +0 -4
  904. package/dist/types/types/update-callout-response-comment-data.d.ts +0 -3
  905. package/dist/types/types/update-callout-response-data.d.ts +0 -2
  906. package/dist/types/types/update-callout-response-segment-data.d.ts +0 -2
  907. package/dist/types/types/update-callout-reviewer-data.d.ts +0 -3
  908. package/dist/types/types/update-contact-data.d.ts +0 -7
  909. package/dist/types/types/update-contact-profile-data.d.ts +0 -2
  910. package/dist/types/types/update-contact-role-data.d.ts +0 -14
  911. package/dist/types/types/update-email-data.d.ts +0 -13
  912. package/dist/types/types/update-notice-data.d.ts +0 -2
  913. package/dist/types/types/update-reset-device-data.d.ts +0 -6
  914. package/dist/types/types/update-reset-password-data.d.ts +0 -5
  915. package/dist/types/types/update-segment-data.d.ts +0 -2
  916. package/dist/types/types/upload-file-response.d.ts +0 -18
  917. package/dist/types/types/validated-boolean-rule.d.ts +0 -2
  918. package/dist/types/types/validated-number-rule.d.ts +0 -2
  919. package/dist/types/types/validated-rule-group.d.ts +0 -5
  920. package/dist/types/types/validated-rule-value.d.ts +0 -2
  921. package/dist/types/types/validated-rule.d.ts +0 -2
  922. package/dist/types/types/validated-string-rule.d.ts +0 -2
  923. package/dist/types/types/validator-callout-component.d.ts +0 -2
  924. package/dist/types/types/validator.d.ts +0 -1
  925. package/dist/types/utils/callouts.d.ts +0 -55
  926. package/dist/types/utils/conversions.d.ts +0 -14
  927. package/dist/types/utils/date.d.ts +0 -8
  928. package/dist/types/utils/debounce.d.ts +0 -22
  929. package/dist/types/utils/file.d.ts +0 -45
  930. package/dist/types/utils/index.d.ts +0 -10
  931. package/dist/types/utils/payments.d.ts +0 -2
  932. package/dist/types/utils/rules.d.ts +0 -32
  933. package/dist/types/utils/slug.d.ts +0 -16
  934. package/dist/types/utils/url.d.ts +0 -15
  935. package/dist/types/utils/validations.d.ts +0 -90
  936. package/dist/types/validators/callout-component-content.validator.d.ts +0 -2
  937. package/dist/types/validators/callout-component-input-address.validator.d.ts +0 -2
  938. package/dist/types/validators/callout-component-input-checkbox.validator.d.ts +0 -2
  939. package/dist/types/validators/callout-component-input-currency.validator.d.ts +0 -2
  940. package/dist/types/validators/callout-component-input-date-time.validator.d.ts +0 -2
  941. package/dist/types/validators/callout-component-input-email.validator.d.ts +0 -2
  942. package/dist/types/validators/callout-component-input-file.validator.d.ts +0 -2
  943. package/dist/types/validators/callout-component-input-number.validator.d.ts +0 -2
  944. package/dist/types/validators/callout-component-input-phone-number.validator.d.ts +0 -2
  945. package/dist/types/validators/callout-component-input-select.validator.d.ts +0 -2
  946. package/dist/types/validators/callout-component-input-selectable.validator.d.ts +0 -2
  947. package/dist/types/validators/callout-component-input-signature.validator.d.ts +0 -2
  948. package/dist/types/validators/callout-component-input-text.validator.d.ts +0 -2
  949. package/dist/types/validators/callout-component-input-time.validator.d.ts +0 -2
  950. package/dist/types/validators/callout-component-input-url.validator.d.ts +0 -2
  951. package/dist/types/validators/callout-component.validator.d.ts +0 -5
  952. package/dist/types/validators/index.d.ts +0 -16
@@ -1,28 +0,0 @@
1
- const isAbsoluteUrl = (url) => url && (isBlobUrl(url) || /^https?:\/\//i.test(url));
2
- const isBlobUrl = (url) => url && url.startsWith("blob:");
3
- function resolveImageUrl(url, apiBaseUrl, appBaseUrl, width) {
4
- if (!url || typeof url !== "string") {
5
- return "";
6
- }
7
- let urlObj;
8
- if (isAbsoluteUrl(url)) {
9
- urlObj = new URL(url);
10
- } else if (url.startsWith("blob:")) {
11
- return url;
12
- } else if (url.startsWith(apiBaseUrl)) {
13
- urlObj = new URL(url, appBaseUrl);
14
- } else {
15
- const cleanUrl = url.startsWith("/") ? url.slice(1) : url;
16
- const cleanApiBaseUrl = apiBaseUrl.endsWith("/") ? apiBaseUrl.slice(0, -1) : apiBaseUrl;
17
- urlObj = new URL(`${cleanApiBaseUrl}/${cleanUrl}`, appBaseUrl);
18
- }
19
- if (width) {
20
- urlObj.searchParams.set("w", width.toString());
21
- }
22
- return urlObj.toString();
23
- }
24
- export {
25
- isAbsoluteUrl,
26
- isBlobUrl,
27
- resolveImageUrl
28
- };
@@ -1,138 +0,0 @@
1
- import { ContributionPeriod } from "../data/index.js";
2
- import { slug } from "./slug.js";
3
- const isAngle = (value, span = 180) => {
4
- return typeof value === "number" && value >= span * -1 && value <= span;
5
- };
6
- const isEmail = (value) => {
7
- if (typeof value !== "string" || value.length === 0) {
8
- return false;
9
- }
10
- const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
11
- return emailRegex.test(value);
12
- };
13
- const isLngLat = (value) => {
14
- if (!Array.isArray(value) || value.length !== 2) {
15
- return false;
16
- }
17
- const [longitude, latitude] = value;
18
- if (!isAngle(longitude, 180) || !isAngle(latitude, 90)) {
19
- return false;
20
- }
21
- return true;
22
- };
23
- const isMapBounds = (value) => {
24
- return Array.isArray(value) && value.length === 2 && value.every(isLngLat);
25
- };
26
- const isPassword = (value) => {
27
- return typeof value === "string" && value.length >= 8 && /[a-z]/.test(value) && /[A-Z]/.test(value) && /[0-9]/.test(value);
28
- };
29
- const isPeriod = (value) => {
30
- return value === ContributionPeriod.Monthly || value === ContributionPeriod.Annually;
31
- };
32
- const isSlug = (value) => {
33
- return typeof value === "string" && value === slug(value);
34
- };
35
- function isType(types, value) {
36
- return types.includes(typeof value);
37
- }
38
- const isURL = (value) => {
39
- if (typeof value !== "string" || !value.length) {
40
- return false;
41
- }
42
- const urlRegex = /^(https?:\/\/)([\da-z\-]+\.)+[a-z]{2,6}(:[0-9]{1,5})?([\/\w \.-]*)*\/?(\?[a-zA-Z0-9=&]*)?$/;
43
- return urlRegex.test(value);
44
- };
45
- const isNumber = (value) => {
46
- return typeof value === "number" && !isNaN(value);
47
- };
48
- const isAmountOfMoney = (value) => {
49
- if (!isNumber(value) || value < 0) {
50
- return false;
51
- }
52
- const decimalPart = value.toString().split(".")[1];
53
- if (decimalPart && decimalPart.length > 2) {
54
- return false;
55
- }
56
- return true;
57
- };
58
- const isPhoneNumber = (value) => {
59
- if (typeof value !== "string" || !value.length) {
60
- return false;
61
- }
62
- if (value.length > 15 || value.length < 5) {
63
- return false;
64
- }
65
- const phoneRegex = /^(\+?[0-9])\d*$/;
66
- return phoneRegex.test(value);
67
- };
68
- const isValidPayFee = (value, amount, period) => {
69
- if (typeof value !== "boolean" || typeof amount !== "number" || !isPeriod(period)) {
70
- return false;
71
- }
72
- if (value && period === ContributionPeriod.Annually) {
73
- return false;
74
- }
75
- if (!value && period === ContributionPeriod.Monthly && amount === 1) {
76
- return false;
77
- }
78
- return true;
79
- };
80
- const isNumberInRange = (value, min, max) => {
81
- if (!isNumber(value)) {
82
- return false;
83
- }
84
- if (typeof min === "number") {
85
- if (value < min) {
86
- return false;
87
- }
88
- }
89
- if (typeof max === "number") {
90
- if (value > max) {
91
- return false;
92
- }
93
- }
94
- return true;
95
- };
96
- const isTextInRange = (value, minLength = 0, maxLength) => {
97
- if (typeof value !== "string") {
98
- return false;
99
- }
100
- if (typeof minLength === "number" && value.length < minLength) {
101
- return false;
102
- }
103
- if (typeof maxLength === "number" && value.length > maxLength) {
104
- return false;
105
- }
106
- return true;
107
- };
108
- const isTextInWordRange = (value, minWordLength = 0, maxWordLength) => {
109
- if (typeof value !== "string") {
110
- return false;
111
- }
112
- const words = value.length > 0 ? value.split(" ") : [];
113
- if (typeof minWordLength === "number" && words.length < minWordLength) {
114
- return false;
115
- }
116
- if (typeof maxWordLength === "number" && words.length > maxWordLength) {
117
- return false;
118
- }
119
- return true;
120
- };
121
- export {
122
- isAmountOfMoney,
123
- isAngle,
124
- isEmail,
125
- isLngLat,
126
- isMapBounds,
127
- isNumber,
128
- isNumberInRange,
129
- isPassword,
130
- isPeriod,
131
- isPhoneNumber,
132
- isSlug,
133
- isTextInRange,
134
- isTextInWordRange,
135
- isType,
136
- isURL,
137
- isValidPayFee
138
- };
@@ -1,6 +0,0 @@
1
- const calloutComponentContentValidator = (_, answer) => {
2
- return !answer;
3
- };
4
- export {
5
- calloutComponentContentValidator
6
- };
@@ -1,8 +0,0 @@
1
- const calloutComponentInputAddressValidator = (_schema, _answer) => {
2
- throw new Error(
3
- `[calloutComponentInputAddressValidator] Not implemented yet`
4
- );
5
- };
6
- export {
7
- calloutComponentInputAddressValidator
8
- };
@@ -1,6 +0,0 @@
1
- const calloutComponentInputCheckboxValidator = (_schema, answer) => {
2
- return typeof answer === "boolean";
3
- };
4
- export {
5
- calloutComponentInputCheckboxValidator
6
- };
@@ -1,7 +0,0 @@
1
- import { isAmountOfMoney } from "../utils/index.js";
2
- const calloutComponentInputCurrencyValidator = (_schema, answer) => {
3
- return isAmountOfMoney(answer);
4
- };
5
- export {
6
- calloutComponentInputCurrencyValidator
7
- };
@@ -1,10 +0,0 @@
1
- import { isDateBetween } from "../utils/index.js";
2
- const calloutComponentInputDateTimeValidator = (schema, answer) => {
3
- if (typeof answer !== "string") {
4
- return false;
5
- }
6
- return isDateBetween(answer, schema.widget.minDate, schema.widget.maxDate);
7
- };
8
- export {
9
- calloutComponentInputDateTimeValidator
10
- };
@@ -1,7 +0,0 @@
1
- import { isEmail } from "../utils/index.js";
2
- const calloutComponentInputEmailValidator = (_schema, answer) => {
3
- return isEmail(answer);
4
- };
5
- export {
6
- calloutComponentInputEmailValidator
7
- };
@@ -1,11 +0,0 @@
1
- import { isFileUploadAnswer } from "../utils/callouts.js";
2
- import { isURL } from "../utils/index.js";
3
- const calloutComponentInputFileValidator = (_schema, answer) => {
4
- if (isFileUploadAnswer(answer)) {
5
- return isURL(answer.url);
6
- }
7
- return false;
8
- };
9
- export {
10
- calloutComponentInputFileValidator
11
- };
@@ -1,10 +0,0 @@
1
- import { isNumber, isNumberInRange } from "../utils/index.js";
2
- const calloutComponentInputNumberValidator = (schema, answer) => {
3
- if (schema.validate && !isNumberInRange(answer, schema.validate.min, schema.validate.max)) {
4
- return false;
5
- }
6
- return isNumber(answer);
7
- };
8
- export {
9
- calloutComponentInputNumberValidator
10
- };
@@ -1,7 +0,0 @@
1
- import { isPhoneNumber } from "../utils/index.js";
2
- const calloutComponentInputPhoneNumberValidator = (_schema, answer) => {
3
- return isPhoneNumber(answer);
4
- };
5
- export {
6
- calloutComponentInputPhoneNumberValidator
7
- };
@@ -1,7 +0,0 @@
1
- const calloutComponentInputSelectValidator = (schema, answer) => {
2
- const optionValue = schema.data.values.find((v) => v.value === answer);
3
- return !!optionValue;
4
- };
5
- export {
6
- calloutComponentInputSelectValidator
7
- };
@@ -1,7 +0,0 @@
1
- const calloutComponentInputSelectableValidator = (schema, answer) => {
2
- const optionValue = schema.values.find((v) => v.value === answer);
3
- return !!optionValue;
4
- };
5
- export {
6
- calloutComponentInputSelectableValidator
7
- };
@@ -1,8 +0,0 @@
1
- const calloutComponentInputSignatureValidator = (_, _answer) => {
2
- throw new Error(
3
- `[calloutComponentInputSignatureValidator] Not implemented yet`
4
- );
5
- };
6
- export {
7
- calloutComponentInputSignatureValidator
8
- };
@@ -1,28 +0,0 @@
1
- import { isTextInRange, isTextInWordRange } from "../utils/index.js";
2
- const validateRules = (rules, answer) => {
3
- if (!rules) {
4
- return true;
5
- }
6
- if (!answer && rules.required) {
7
- return false;
8
- }
9
- if (typeof rules.pattern === "string" && rules.pattern.length && !new RegExp(rules.pattern).test(answer || "")) {
10
- return false;
11
- }
12
- if (!isTextInWordRange(answer, rules.minWords, rules.maxWords)) {
13
- return false;
14
- }
15
- if (!isTextInRange(answer, rules.minLength, rules.maxLength)) {
16
- return false;
17
- }
18
- return true;
19
- };
20
- const calloutComponentInputTextValidator = (schema, answer) => {
21
- if (typeof answer !== "string") {
22
- return false;
23
- }
24
- return validateRules(schema?.validate, answer);
25
- };
26
- export {
27
- calloutComponentInputTextValidator
28
- };
@@ -1,6 +0,0 @@
1
- const calloutComponentInputTimeValidator = (_schema, _answer) => {
2
- throw new Error(`[calloutComponentInputTimeValidator] Not implemented yet`);
3
- };
4
- export {
5
- calloutComponentInputTimeValidator
6
- };
@@ -1,7 +0,0 @@
1
- import { isURL } from "../utils/index.js";
2
- const calloutComponentInputUrlValidator = (_schema, answer) => {
3
- return isURL(answer);
4
- };
5
- export {
6
- calloutComponentInputUrlValidator
7
- };
@@ -1,91 +0,0 @@
1
- import {
2
- CalloutComponentBaseType,
3
- CalloutComponentType
4
- } from "../data/index.js";
5
- import { isCalloutComponentOfBaseType } from "../utils/callouts.js";
6
- import { calloutComponentContentValidator } from "./callout-component-content.validator.js";
7
- import { calloutComponentInputAddressValidator } from "./callout-component-input-address.validator.js";
8
- import { calloutComponentInputCheckboxValidator } from "./callout-component-input-checkbox.validator.js";
9
- import { calloutComponentInputCurrencyValidator } from "./callout-component-input-currency.validator.js";
10
- import { calloutComponentInputDateTimeValidator } from "./callout-component-input-date-time.validator.js";
11
- import { calloutComponentInputEmailValidator } from "./callout-component-input-email.validator.js";
12
- import { calloutComponentInputFileValidator } from "./callout-component-input-file.validator.js";
13
- import { calloutComponentInputNumberValidator } from "./callout-component-input-number.validator.js";
14
- import { calloutComponentInputPhoneNumberValidator } from "./callout-component-input-phone-number.validator.js";
15
- import { calloutComponentInputSelectValidator } from "./callout-component-input-select.validator.js";
16
- import { calloutComponentInputSelectableValidator } from "./callout-component-input-selectable.validator.js";
17
- import { calloutComponentInputSignatureValidator } from "./callout-component-input-signature.validator.js";
18
- import { calloutComponentInputTextValidator } from "./callout-component-input-text.validator.js";
19
- import { calloutComponentInputTimeValidator } from "./callout-component-input-time.validator.js";
20
- import { calloutComponentInputUrlValidator } from "./callout-component-input-url.validator.js";
21
- const calloutComponentNestableValidator = (schema, answers) => {
22
- for (const component of schema.components) {
23
- const valid = calloutComponentValidator(component, answers[component.key]);
24
- if (!valid) {
25
- return false;
26
- }
27
- }
28
- return true;
29
- };
30
- const calloutInputValidatorsMap = {
31
- // Input
32
- [CalloutComponentType.INPUT_EMAIL]: calloutComponentInputEmailValidator,
33
- [CalloutComponentType.INPUT_ADDRESS]: calloutComponentInputAddressValidator,
34
- [CalloutComponentType.INPUT_CHECKBOX]: calloutComponentInputCheckboxValidator,
35
- [CalloutComponentType.INPUT_CURRENCY]: calloutComponentInputCurrencyValidator,
36
- [CalloutComponentType.INPUT_DATE_TIME]: calloutComponentInputDateTimeValidator,
37
- [CalloutComponentType.INPUT_NUMBER]: calloutComponentInputNumberValidator,
38
- [CalloutComponentType.INPUT_PHONE_NUMBER]: calloutComponentInputPhoneNumberValidator,
39
- [CalloutComponentType.INPUT_SIGNATURE]: calloutComponentInputSignatureValidator,
40
- [CalloutComponentType.INPUT_TIME]: calloutComponentInputTimeValidator,
41
- [CalloutComponentType.INPUT_URL]: calloutComponentInputUrlValidator,
42
- [CalloutComponentType.INPUT_FILE]: calloutComponentInputFileValidator,
43
- [CalloutComponentType.INPUT_SELECT]: calloutComponentInputSelectValidator,
44
- // Text
45
- [CalloutComponentType.INPUT_TEXT_FIELD]: calloutComponentInputTextValidator,
46
- [CalloutComponentType.INPUT_TEXT_AREA]: calloutComponentInputTextValidator,
47
- // Selectable
48
- [CalloutComponentType.INPUT_SELECTABLE_RADIO]: calloutComponentInputSelectableValidator,
49
- [CalloutComponentType.INPUT_SELECTABLE_SELECTBOXES]: calloutComponentInputSelectableValidator
50
- };
51
- function calloutComponentInputValidator(schema, answer) {
52
- const validator = calloutInputValidatorsMap[schema.type];
53
- if (!validator) {
54
- console.error(`No validator found for ${schema.type}`);
55
- return false;
56
- }
57
- if (answer === void 0) {
58
- return schema.validate?.required ? false : true;
59
- }
60
- const values = Array.isArray(answer) ? answer : [answer];
61
- for (const value of values) {
62
- const valid = validator(schema, value);
63
- if (!valid) {
64
- return false;
65
- }
66
- }
67
- return true;
68
- }
69
- function calloutComponentValidator(schema, answer) {
70
- if (isCalloutComponentOfBaseType(schema, CalloutComponentBaseType.NESTABLE)) {
71
- return calloutComponentNestableValidator(
72
- schema,
73
- answer
74
- );
75
- }
76
- if (isCalloutComponentOfBaseType(schema, CalloutComponentBaseType.INPUT)) {
77
- return calloutComponentInputValidator(
78
- schema,
79
- answer
80
- );
81
- }
82
- if (isCalloutComponentOfBaseType(schema, CalloutComponentBaseType.CONTENT)) {
83
- return calloutComponentContentValidator(schema, answer);
84
- }
85
- throw new Error("Invalid schema type");
86
- }
87
- export {
88
- calloutComponentInputValidator,
89
- calloutComponentNestableValidator,
90
- calloutComponentValidator
91
- };
@@ -1,16 +0,0 @@
1
- export * from "./callout-component-content.validator.js";
2
- export * from "./callout-component-input-address.validator.js";
3
- export * from "./callout-component-input-checkbox.validator.js";
4
- export * from "./callout-component-input-currency.validator.js";
5
- export * from "./callout-component-input-date-time.validator.js";
6
- export * from "./callout-component-input-email.validator.js";
7
- export * from "./callout-component-input-file.validator.js";
8
- export * from "./callout-component-input-number.validator.js";
9
- export * from "./callout-component-input-phone-number.validator.js";
10
- export * from "./callout-component-input-select.validator.js";
11
- export * from "./callout-component-input-selectable.validator.js";
12
- export * from "./callout-component-input-signature.validator.js";
13
- export * from "./callout-component-input-text.validator.js";
14
- export * from "./callout-component-input-time.validator.js";
15
- export * from "./callout-component-input-url.validator.js";
16
- export * from "./callout-component.validator.js";
@@ -1,78 +0,0 @@
1
- /**
2
- * @constant
3
- * @name MILLISECONDS_IN_HOUR
4
- * @summary Milliseconds in 1 hour
5
- */
6
- export declare const MILLISECONDS_IN_HOUR: number;
7
- /**
8
- * @constant
9
- * @name MILLISECONDS_IN_MINUTE
10
- * @summary Milliseconds in 1 minute
11
- */
12
- export declare const MILLISECONDS_IN_MINUTE: number;
13
- /**
14
- * @constant
15
- * @name MAX_FILE_SIZE_IN_BYTES
16
- * @summary Maximum file size in bytes
17
- */
18
- export declare const MAX_FILE_SIZE_IN_BYTES: number;
19
- /**
20
- * A list of all image formats that are supported by the sharp-module and our ImageService
21
- * @constant
22
- * @name ALLOWED_IMAGE_EXTENSIONS
23
- * @summary Allowed image formats for upload (input formats)
24
- */
25
- export declare const ALLOWED_IMAGE_EXTENSIONS: string[];
26
- /**
27
- * A list of all MIME types that are supported by the sharp-module and our ImageService
28
- * @constant
29
- * @name ALLOWED_IMAGE_MIME_TYPES
30
- * @summary Allowed MIME types
31
- */
32
- export declare const ALLOWED_IMAGE_MIME_TYPES: string[];
33
- /**
34
- * A list of all document formats that are supported by our DocumentService
35
- * @constant
36
- * @name ALLOWED_DOCUMENT_EXTENSIONS
37
- * @summary Allowed document formats for upload (input formats)
38
- */
39
- export declare const ALLOWED_DOCUMENT_EXTENSIONS: string[];
40
- /**
41
- * A list of all MIME types that are supported by our DocumentService
42
- * @constant
43
- * @name ALLOWED_DOCUMENT_MIME_TYPES
44
- * @summary Allowed MIME types
45
- */
46
- export declare const ALLOWED_DOCUMENT_MIME_TYPES: string[];
47
- /**
48
- * Address component types for standardized parsing and placeholder replacement / formatting
49
- * Based on the MapTiler types, check `GeocodingPlaceType` in `@maptiler/client` for more possible types
50
- */
51
- export declare enum ADDRESS_COMPONENT_TYPE {
52
- /** Street number, e.g. "90" */
53
- STREET_NUMBER = "street_number",
54
- /** Street name, e.g. "Hermannstraße" */
55
- ADDRESS = "address",
56
- /** Municipality, e.g. "Berlin" */
57
- MUNICIPALITY = "municipality",
58
- /** Locality, e.g. "Mitte" in Berlin */
59
- LOCALITY = "locality",
60
- /** Region, e.g. "Berlin" */
61
- REGION = "region",
62
- /** Postal code, e.g. "12051" */
63
- POSTAL_CODE = "postal_code",
64
- /** Country, e.g. "Germany" */
65
- COUNTRY = "country",
66
- /** Subregion, e.g. "Nordrhein" in Nordrhein-Westfalen */
67
- SUBREGION = "subregion",
68
- /** County, e.g. "Cuxhaven" */
69
- COUNTY = "county",
70
- /** Joint municipality, e.g. "Samtgemeinde" */
71
- JOINT_MUNICIPALITY = "joint_municipality",
72
- /** Municipal district, e.g. "Mitte" in Berlin */
73
- MUNICIPAL_DISTRICT = "municipal_district",
74
- /** Neighbourhood, e.g. "Kreuzberg" in Berlin */
75
- NEIGHBOURHOOD = "neighbourhood",
76
- /** Named place, e.g. "Brandenburger Tor" */
77
- PLACE = "place"
78
- }
@@ -1,22 +0,0 @@
1
- export declare enum ApiErrorCode {
2
- BAD_REQUEST = "bad-request",
3
- NOT_FOUND = "not-found",
4
- PAYMENT_FAILED = "payment-failed",
5
- PAYMENT_REQUIRES_ACTION = "payment-requires-action",
6
- TOO_MANY_REQUESTS = "too-many-requests",
7
- FILE_TOO_LARGE = "file-too-large",
8
- FILE_UPLOAD_ERROR = "file-upload-error",
9
- UNSUPPORTED_FILE_TYPE = "unsupported-file-type",
10
- RESET_SECURITY_FLOW_ERROR = "reset-security-flow-error",
11
- INVALID_CALLOUT_RESPONSE = "invalid-callout-response",
12
- INVALID_RULE = "invalid-rule",
13
- NO_PAYMENT_METHOD = "no-payment-method",
14
- DUPLICATE_ID = "duplicate-id",
15
- DUPLICATE_EMAIL = "duplicate-email",
16
- DUPLICATE_TAG_NAME = "duplicate-tag-name",
17
- INTERNAL_SERVER_ERROR = "internal-server-error",
18
- CANT_UPDATE_CONTRIBUTION = "cant-update-contribution",
19
- CANT_UPDATE_NEWSLETTER_CONTACT = "cant-update-newsletter-contact",
20
- CAPTCHA_FAILED = "captcha-failed",
21
- CAPTCHA_REQUIRED = "captcha-required"
22
- }
@@ -1,6 +0,0 @@
1
- export declare enum CalloutAccess {
2
- Member = "member",
3
- Guest = "guest",
4
- Anonymous = "anonymous",
5
- OnlyAnonymous = "only-anonymous"
6
- }
@@ -1,5 +0,0 @@
1
- export declare enum CalloutCaptcha {
2
- None = "none",
3
- Guest = "guest",
4
- All = "all"
5
- }
@@ -1,3 +0,0 @@
1
- export declare enum CalloutChannel {
2
- TELEGRAM = "telegram"
3
- }
@@ -1,8 +0,0 @@
1
- /** Enumeration of base callout component types */
2
- export declare enum CalloutComponentBaseType {
3
- CONTENT = 0,
4
- INPUT = 1,
5
- INPUT_TEXT = 2,
6
- INPUT_SELECTABLE = 3,
7
- NESTABLE = 4
8
- }
@@ -1,3 +0,0 @@
1
- import type { CalloutComponentBaseInputSelectableSchema } from '../types/index.js';
2
- /** Array of all possible callout nestable component types */
3
- export declare const calloutComponentInputSelectableTypes: Array<CalloutComponentBaseInputSelectableSchema['type']>;
@@ -1,3 +0,0 @@
1
- import type { CalloutComponentBaseInputTextSchema } from '../types/index.js';
2
- /** Array of all possible callout input component types */
3
- export declare const calloutComponentInputTextTypes: Array<CalloutComponentBaseInputTextSchema['type']>;
@@ -1,3 +0,0 @@
1
- import type { CalloutComponentBaseInputSchema } from '../types/index.js';
2
- /** Array of all possible callout input component types */
3
- export declare const calloutComponentInputTypes: Array<CalloutComponentBaseInputSchema['type']>;
@@ -1,3 +0,0 @@
1
- import type { CalloutComponentBaseNestableSchema } from '../types/index.js';
2
- /** Array of all possible callout nestable component types */
3
- export declare const calloutComponentNestableTypes: Array<CalloutComponentBaseNestableSchema['type']>;
@@ -1,23 +0,0 @@
1
- /** Enumeration of all possible callout component types */
2
- export declare enum CalloutComponentType {
3
- CONTENT = "content",
4
- INPUT_ADDRESS = "address",
5
- INPUT_CHECKBOX = "checkbox",
6
- INPUT_CURRENCY = "currency",
7
- INPUT_DATE_TIME = "datetime",
8
- INPUT_EMAIL = "email",
9
- INPUT_FILE = "file",
10
- INPUT_NUMBER = "number",
11
- INPUT_PHONE_NUMBER = "phoneNumber",
12
- INPUT_SELECT = "select",
13
- INPUT_SELECTABLE_RADIO = "radio",
14
- INPUT_SELECTABLE_SELECTBOXES = "selectboxes",
15
- INPUT_SIGNATURE = "signature",
16
- INPUT_TEXT_AREA = "textarea",
17
- INPUT_TEXT_FIELD = "textfield",
18
- INPUT_TIME = "time",
19
- INPUT_URL = "url",
20
- NESTABLE_PANEL = "panel",
21
- NESTABLE_TABS = "tabs",
22
- NESTABLE_WELL = "well"
23
- }
@@ -1,3 +0,0 @@
1
- import { CalloutComponentType } from './callout-component-type.js';
2
- /** Array of all possible callout component types */
3
- export declare const calloutComponentTypes: CalloutComponentType[];
@@ -1,6 +0,0 @@
1
- /**
2
- * Contact multi factor authentication type
3
- */
4
- export declare enum CONTACT_MFA_TYPE {
5
- TOTP = "totp"
6
- }
@@ -1,2 +0,0 @@
1
- /** All possible strings that can be passed to the content get controller to retrieve Beabee content data */
2
- export declare const contentIds: readonly ["contacts", "email", "general", "join", "join/setup", "profile", "share", "payment", "telegram"];
@@ -1,4 +0,0 @@
1
- export declare enum ContributionPeriod {
2
- Monthly = "monthly",
3
- Annually = "annually"
4
- }
@@ -1,6 +0,0 @@
1
- export declare enum ContributionType {
2
- Automatic = "Automatic",
3
- Manual = "Manual",
4
- Gift = "Gift",
5
- None = "None"
6
- }
@@ -1,8 +0,0 @@
1
- export declare enum GetCalloutResponseWith {
2
- Answers = "answers",
3
- Assignee = "assignee",
4
- Callout = "callout",
5
- Contact = "contact",
6
- LatestComment = "latestComment",
7
- Tags = "tags"
8
- }