@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,52 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var conversions_exports = {};
19
- __export(conversions_exports, {
20
- toBytes: () => toBytes,
21
- toPhoneNumber: () => toPhoneNumber
22
- });
23
- module.exports = __toCommonJS(conversions_exports);
24
- var import_validations = require("./validations.cjs");
25
- const toPhoneNumber = (value) => {
26
- if (typeof value !== "string" || !value.length) {
27
- return false;
28
- }
29
- const result = value.replace(/(?!^\+)\D/g, "");
30
- if (!(0, import_validations.isPhoneNumber)(result)) {
31
- return false;
32
- }
33
- return result;
34
- };
35
- const toBytes = (value) => {
36
- if (typeof value !== "string" || !value.length) {
37
- return null;
38
- }
39
- const lowerCase = value.toLowerCase();
40
- const units = ["b", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"];
41
- const [, num, unit] = lowerCase.match(/(\d+)(\w+)/);
42
- const unitIndex = units.indexOf(unit.toLowerCase());
43
- if (unitIndex === -1) {
44
- return null;
45
- }
46
- return Number(num) * Math.pow(1024, unitIndex);
47
- };
48
- // Annotate the CommonJS export names for ESM import in node:
49
- 0 && (module.exports = {
50
- toBytes,
51
- toPhoneNumber
52
- });
@@ -1,103 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var date_exports = {};
19
- __export(date_exports, {
20
- dateUnitMap: () => dateUnitMap,
21
- dateUnits: () => dateUnits,
22
- getMinDateUnit: () => getMinDateUnit,
23
- isDateBetween: () => isDateBetween,
24
- isValidDate: () => isValidDate,
25
- parseDate: () => parseDate
26
- });
27
- module.exports = __toCommonJS(date_exports);
28
- var import_date_fns = require("date-fns");
29
- const dateUnits = ["s", "m", "h", "d", "M", "y"];
30
- const dateUnitMap = {
31
- y: "years",
32
- M: "months",
33
- d: "days",
34
- h: "hours",
35
- m: "minutes",
36
- s: "seconds"
37
- };
38
- const startOf = {
39
- y: import_date_fns.startOfYear,
40
- M: import_date_fns.startOfMonth,
41
- d: import_date_fns.startOfDay,
42
- h: import_date_fns.startOfHour,
43
- m: import_date_fns.startOfMinute,
44
- s: import_date_fns.startOfSecond
45
- };
46
- const relativeDate = /^\$now(?<units>\(((y|M|d|h|m|s):(-?\d+),?)+\))?$/;
47
- const relativeUnit = /(y|M|d|h|m|s):(-?\d+)/g;
48
- const absoluteDate = /^(?<y>\d{4,})(-(?<M>\d\d)(-(?<d>\d\d)([T ](?<h>\d\d)(:(?<m>\d\d)(:(?<s>\d\d))?)?)?)?)?/;
49
- function parseDate(value, now = /* @__PURE__ */ new Date()) {
50
- var _a, _b;
51
- let date;
52
- let units;
53
- const relativeMatch = relativeDate.exec(value);
54
- if (relativeMatch) {
55
- date = now;
56
- const unitsGroup = (_a = relativeMatch.groups) == null ? void 0 : _a.units;
57
- if (unitsGroup) {
58
- const unitMatches = unitsGroup.matchAll(relativeUnit);
59
- units = [];
60
- for (const [_, unit, delta] of unitMatches) {
61
- date = (0, import_date_fns.add)(date, { [dateUnitMap[unit]]: Number(delta) });
62
- units.push(unit);
63
- }
64
- } else {
65
- units = ["d"];
66
- }
67
- } else {
68
- date = (0, import_date_fns.parseISO)(value);
69
- units = Object.entries(((_b = absoluteDate.exec(value)) == null ? void 0 : _b.groups) || {}).filter(([_, n]) => !!n).map(([unit]) => unit);
70
- }
71
- const minUnit = getMinDateUnit(units) || "s";
72
- return [startOf[minUnit](date), minUnit];
73
- }
74
- function getMinDateUnit(units) {
75
- return dateUnits.find((unit) => units.includes(unit));
76
- }
77
- function isValidDate(s) {
78
- if (typeof s === "string") {
79
- return relativeDate.test(s) || (0, import_date_fns.isValid)((0, import_date_fns.parseISO)(s));
80
- }
81
- return (0, import_date_fns.isValid)(s);
82
- }
83
- function isDateBetween(date, start, end) {
84
- let valid = isValidDate(date);
85
- if (start) {
86
- start = typeof start === "string" ? (0, import_date_fns.parseISO)(start) : start;
87
- valid = valid && date >= start;
88
- }
89
- if (end) {
90
- end = typeof end === "string" ? (0, import_date_fns.parseISO)(end) : end;
91
- valid = valid && date <= end;
92
- }
93
- return valid;
94
- }
95
- // Annotate the CommonJS export names for ESM import in node:
96
- 0 && (module.exports = {
97
- dateUnitMap,
98
- dateUnits,
99
- getMinDateUnit,
100
- isDateBetween,
101
- isValidDate,
102
- parseDate
103
- });
@@ -1,73 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var debounce_exports = {};
19
- __export(debounce_exports, {
20
- debounce: () => debounce,
21
- throttle: () => throttle
22
- });
23
- module.exports = __toCommonJS(debounce_exports);
24
- function debounce(fn, wait) {
25
- let timeoutId = null;
26
- const debounced = function(...args) {
27
- if (timeoutId !== null) {
28
- clearTimeout(timeoutId);
29
- }
30
- timeoutId = setTimeout(() => {
31
- fn(...args);
32
- }, wait);
33
- };
34
- debounced.cancel = () => {
35
- if (timeoutId !== null) {
36
- clearTimeout(timeoutId);
37
- timeoutId = null;
38
- }
39
- };
40
- return debounced;
41
- }
42
- function throttle(fn, wait) {
43
- let lastCallTime = 0;
44
- let timeoutId = null;
45
- const throttled = function(...args) {
46
- const now = Date.now();
47
- const timeSinceLastCall = now - lastCallTime;
48
- if (timeSinceLastCall >= wait) {
49
- lastCallTime = now;
50
- fn(...args);
51
- } else {
52
- if (timeoutId !== null) {
53
- clearTimeout(timeoutId);
54
- }
55
- timeoutId = setTimeout(() => {
56
- lastCallTime = Date.now();
57
- fn(...args);
58
- }, wait - timeSinceLastCall);
59
- }
60
- };
61
- throttled.cancel = () => {
62
- if (timeoutId !== null) {
63
- clearTimeout(timeoutId);
64
- timeoutId = null;
65
- }
66
- };
67
- return throttled;
68
- }
69
- // Annotate the CommonJS export names for ESM import in node:
70
- 0 && (module.exports = {
71
- debounce,
72
- throttle
73
- });
@@ -1,61 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var file_exports = {};
19
- __export(file_exports, {
20
- bytesToHumanReadable: () => bytesToHumanReadable,
21
- isSupportedDocumentExtension: () => isSupportedDocumentExtension,
22
- isSupportedDocumentType: () => isSupportedDocumentType,
23
- isSupportedImageExtension: () => isSupportedImageExtension,
24
- isSupportedImageType: () => isSupportedImageType
25
- });
26
- module.exports = __toCommonJS(file_exports);
27
- var import_constants = require("../constants.cjs");
28
- const isSupportedDocumentType = (mimetype) => {
29
- if (!mimetype) return false;
30
- return import_constants.ALLOWED_DOCUMENT_MIME_TYPES.includes(mimetype.toLowerCase().trim());
31
- };
32
- const isSupportedDocumentExtension = (extension) => {
33
- if (!extension) return false;
34
- return import_constants.ALLOWED_DOCUMENT_EXTENSIONS.includes(extension.toLowerCase().trim());
35
- };
36
- const isSupportedImageType = (mimetype) => {
37
- if (!mimetype) return false;
38
- return import_constants.ALLOWED_IMAGE_MIME_TYPES.includes(mimetype.toLowerCase().trim());
39
- };
40
- const isSupportedImageExtension = (extension) => {
41
- if (!extension) return false;
42
- return import_constants.ALLOWED_IMAGE_EXTENSIONS.includes(extension.toLowerCase().trim());
43
- };
44
- const bytesToHumanReadable = (bytes) => {
45
- const units = ["B", "KB", "MB", "GB", "TB"];
46
- let index = 0;
47
- let value = bytes;
48
- while (value >= 1024 && index < units.length - 1) {
49
- value /= 1024;
50
- index++;
51
- }
52
- return `${value.toFixed(2)} ${units[index]}`;
53
- };
54
- // Annotate the CommonJS export names for ESM import in node:
55
- 0 && (module.exports = {
56
- bytesToHumanReadable,
57
- isSupportedDocumentExtension,
58
- isSupportedDocumentType,
59
- isSupportedImageExtension,
60
- isSupportedImageType
61
- });
@@ -1,39 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from))
8
- if (!__hasOwnProp.call(to, key) && key !== except)
9
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
- }
11
- return to;
12
- };
13
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
- var utils_exports = {};
16
- module.exports = __toCommonJS(utils_exports);
17
- __reExport(utils_exports, require("./callouts.cjs"), module.exports);
18
- __reExport(utils_exports, require("./conversions.cjs"), module.exports);
19
- __reExport(utils_exports, require("./date.cjs"), module.exports);
20
- __reExport(utils_exports, require("./debounce.cjs"), module.exports);
21
- __reExport(utils_exports, require("./file.cjs"), module.exports);
22
- __reExport(utils_exports, require("./payments.cjs"), module.exports);
23
- __reExport(utils_exports, require("./rules.cjs"), module.exports);
24
- __reExport(utils_exports, require("./slug.cjs"), module.exports);
25
- __reExport(utils_exports, require("./url.cjs"), module.exports);
26
- __reExport(utils_exports, require("./validations.cjs"), module.exports);
27
- // Annotate the CommonJS export names for ESM import in node:
28
- 0 && (module.exports = {
29
- ...require("./callouts.cjs"),
30
- ...require("./conversions.cjs"),
31
- ...require("./date.cjs"),
32
- ...require("./debounce.cjs"),
33
- ...require("./file.cjs"),
34
- ...require("./payments.cjs"),
35
- ...require("./rules.cjs"),
36
- ...require("./slug.cjs"),
37
- ...require("./url.cjs"),
38
- ...require("./validations.cjs")
39
- });
@@ -1,69 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var payments_exports = {};
19
- __export(payments_exports, {
20
- calcPaymentFee: () => calcPaymentFee
21
- });
22
- module.exports = __toCommonJS(payments_exports);
23
- var import_data = require("../data/index.cjs");
24
- const stripeFees = {
25
- gb: {
26
- [import_data.PaymentMethod.StripeCard]: (amount) => 0.2 + 0.015 * amount,
27
- [import_data.PaymentMethod.StripeSEPA]: () => 0.3,
28
- [import_data.PaymentMethod.StripeBACS]: (amount) => Math.min(2, Math.max(0.2, 0.01 * amount)),
29
- [import_data.PaymentMethod.StripePayPal]: (amount) => 0.1 + 0.02 * amount,
30
- [import_data.PaymentMethod.StripeIdeal]: () => 0.3
31
- // Becomes a SEPA so same fee
32
- },
33
- eu: {
34
- [import_data.PaymentMethod.StripeCard]: (amount) => 0.25 + 0.015 * amount,
35
- [import_data.PaymentMethod.StripeSEPA]: () => 0.35,
36
- [import_data.PaymentMethod.StripeBACS]: () => 0,
37
- // Not available
38
- [import_data.PaymentMethod.StripePayPal]: (amount) => 0.1 + 0.02 * amount,
39
- [import_data.PaymentMethod.StripeIdeal]: () => 0.35
40
- // Becomes a SEPA so same fee
41
- },
42
- ca: {
43
- [import_data.PaymentMethod.StripeCard]: (amount) => 0.3 + 0.029 * amount,
44
- [import_data.PaymentMethod.StripeSEPA]: () => 0,
45
- // Not available
46
- [import_data.PaymentMethod.StripeBACS]: () => 0,
47
- // Not available
48
- [import_data.PaymentMethod.StripePayPal]: () => 0,
49
- // Not available
50
- [import_data.PaymentMethod.StripeIdeal]: () => 0
51
- // Not available
52
- }
53
- };
54
- const gcFee = (amount) => 0.2 + amount * 0.01;
55
- function calcPaymentFee(feeable, country) {
56
- const feeFn = feeable.paymentMethod === import_data.PaymentMethod.GoCardlessDirectDebit ? gcFee : stripeFees[country][feeable.paymentMethod];
57
- if (!feeFn) {
58
- const error = new Error(
59
- `No fee function found for "${feeable.paymentMethod}" in "${country}". Please check that the payment methods have been configured correctly.`
60
- );
61
- console.error(error);
62
- return 0;
63
- }
64
- return feeable.period === import_data.ContributionPeriod.Annually ? 0 : feeFn(feeable.amount);
65
- }
66
- // Annotate the CommonJS export names for ESM import in node:
67
- 0 && (module.exports = {
68
- calcPaymentFee
69
- });
@@ -1,115 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var rules_exports = {};
19
- __export(rules_exports, {
20
- flattenRules: () => flattenRules,
21
- isRuleGroup: () => isRuleGroup,
22
- validateRule: () => validateRule,
23
- validateRuleGroup: () => validateRuleGroup
24
- });
25
- module.exports = __toCommonJS(rules_exports);
26
- var import_error = require("../error/index.cjs");
27
- var import_search = require("../search/index.cjs");
28
- var import_date = require("./date.cjs");
29
- function isRuleGroup(ruleOrGroup) {
30
- return "condition" in ruleOrGroup;
31
- }
32
- function validateRule(filters, rule) {
33
- const filter = filters[rule.field];
34
- if (!filter) {
35
- throw new import_error.InvalidRule(rule, `Invalid field: ${rule.field}`);
36
- }
37
- let expectedArgs = 0;
38
- if (rule.operator in import_search.nullableOperators) {
39
- if (!filter.nullable && filter.type !== "text" && filter.type !== "array") {
40
- throw new import_error.InvalidRule(
41
- rule,
42
- `Invalid nullable operator: field is not nullable`
43
- );
44
- }
45
- } else {
46
- const operator = import_search.operatorsByTypeMap[filter.type][rule.operator];
47
- if (!operator) {
48
- throw new import_error.InvalidRule(
49
- rule,
50
- `Invalid operator for type: ${filter.type} type doesn't define ${rule.operator}`
51
- );
52
- }
53
- expectedArgs = operator.args;
54
- }
55
- if (expectedArgs !== rule.value.length) {
56
- throw new import_error.InvalidRule(
57
- rule,
58
- `Invalid operator argument count: ${rule.operator} needs ${expectedArgs}, ${rule.value.length} given`
59
- );
60
- }
61
- const expectedType = filter.type === "boolean" || filter.type === "number" ? filter.type : "string";
62
- if (rule.value.some((v) => typeof v !== expectedType)) {
63
- throw new import_error.InvalidRule(
64
- rule,
65
- `Invalid operator argument type: ${rule.operator} needs ${expectedType}, ${rule.value.map(
66
- (v) => typeof v
67
- )} given`
68
- );
69
- }
70
- if (filter.type === "date" && rule.value.some((v) => !(0, import_date.isValidDate)(v))) {
71
- throw new import_error.InvalidRule(
72
- rule,
73
- `Invalid operator argument: date type needs valid absolute or relative date, ${rule.value} given`
74
- );
75
- }
76
- if ((filter.type === "enum" || filter.type === "array") && rule.value.some((v) => {
77
- var _a;
78
- return ((_a = filter.options) == null ? void 0 : _a.indexOf(v)) === -1;
79
- })) {
80
- throw new import_error.InvalidRule(
81
- rule,
82
- `Invalid operator argument: ${filter.type} type expected ${filter.options}, ${rule.value} given`
83
- );
84
- }
85
- return {
86
- field: rule.field,
87
- type: filter.type,
88
- nullable: !!filter.nullable,
89
- operator: rule.operator,
90
- value: rule.value
91
- };
92
- }
93
- function validateRuleGroup(filters, ruleGroup) {
94
- const validatedRuleGroup = {
95
- condition: ruleGroup.condition,
96
- rules: []
97
- };
98
- for (const rule of ruleGroup.rules) {
99
- const valid = isRuleGroup(rule) ? validateRuleGroup(filters, rule) : validateRule(filters, rule);
100
- validatedRuleGroup.rules.push(valid);
101
- }
102
- return validatedRuleGroup;
103
- }
104
- function flattenRules(ruleGroup) {
105
- return ruleGroup.rules.flatMap(
106
- (rule) => isRuleGroup(rule) ? flattenRules(rule) : rule
107
- );
108
- }
109
- // Annotate the CommonJS export names for ESM import in node:
110
- 0 && (module.exports = {
111
- flattenRules,
112
- isRuleGroup,
113
- validateRule,
114
- validateRuleGroup
115
- });