@beabee/beabee-common 0.21.1-alpha.2 → 0.44.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -93
- package/dist/cjs/constants.cjs +96 -0
- package/dist/cjs/data/api-error-code.cjs +49 -0
- package/dist/cjs/data/callout-access.cjs +0 -1
- package/dist/cjs/data/callout-captcha.cjs +0 -1
- package/dist/cjs/data/callout-channel.cjs +0 -1
- package/dist/cjs/data/callout-component-base-type.cjs +0 -1
- package/dist/cjs/data/callout-component-input-selectable-types.cjs +0 -1
- package/dist/cjs/data/callout-component-input-text-types.cjs +0 -1
- package/dist/cjs/data/callout-component-input-types.cjs +1 -2
- package/dist/cjs/data/callout-component-nestable-types.cjs +0 -1
- package/dist/cjs/data/callout-component-type.cjs +0 -1
- package/dist/cjs/data/callout-component-types.cjs +1 -2
- package/dist/cjs/data/contact-mfa-type.cjs +30 -0
- package/dist/cjs/data/content-ids.cjs +1 -1
- package/dist/cjs/data/contribution-period.cjs +0 -1
- package/dist/cjs/data/contribution-type.cjs +0 -1
- package/dist/cjs/data/get-callout-response-with.cjs +35 -0
- package/dist/cjs/data/get-contact-with.cjs +34 -0
- package/dist/cjs/data/index.cjs +19 -2
- package/dist/cjs/data/item-status.cjs +0 -1
- package/dist/cjs/data/login-codes.cjs +37 -0
- package/dist/cjs/data/membership-status.cjs +0 -1
- package/dist/cjs/data/newsletter-status.cjs +0 -1
- package/dist/cjs/data/payment-method.cjs +1 -3
- package/dist/cjs/data/payment-status.cjs +0 -1
- package/dist/cjs/data/payment-type.cjs +33 -0
- package/dist/cjs/data/reset-security-flow-error-code.cjs +32 -0
- package/dist/cjs/data/reset-security-flow-type.cjs +31 -0
- package/dist/cjs/data/role-type-data.cjs +32 -0
- package/dist/cjs/error/InvalidRule.cjs +0 -1
- package/dist/cjs/error/index.cjs +0 -1
- package/dist/cjs/index.cjs +10 -8
- package/dist/cjs/search/api-keys.cjs +1 -1
- package/dist/cjs/search/callouts.cjs +43 -5
- package/dist/cjs/search/contacts.cjs +41 -6
- package/dist/cjs/search/emails.cjs +56 -0
- package/dist/cjs/search/index.cjs +5 -2
- package/dist/cjs/search/notices.cjs +1 -1
- package/dist/cjs/search/operators.cjs +15 -9
- package/dist/cjs/search/payments.cjs +11 -1
- package/dist/cjs/search/segments.cjs +1 -1
- package/dist/cjs/search/tags.cjs +38 -0
- package/dist/cjs/types/address.cjs +0 -1
- package/dist/cjs/types/allow-null.cjs +0 -1
- package/dist/cjs/types/{get-contact-with.cjs → api-error-data.cjs} +2 -3
- package/dist/cjs/types/api-key-filter-name.cjs +0 -1
- package/dist/cjs/types/array-filter-args.cjs +0 -1
- package/dist/cjs/types/{get-callout-tag-data.cjs → auth-info-data.cjs} +2 -3
- package/dist/cjs/types/base-filter-args.cjs +0 -1
- package/dist/cjs/types/base-validated-rule.cjs +0 -1
- package/dist/cjs/types/callout-channel-filter-name.cjs +0 -1
- package/dist/cjs/types/callout-component-base-input-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-base-input-selectable-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-base-input-text-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-base-map.cjs +0 -1
- package/dist/cjs/types/callout-component-base-nestable-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-base-rules.cjs +0 -1
- package/dist/cjs/types/callout-component-base-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-content-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-address-rules.cjs +0 -1
- package/dist/cjs/types/callout-component-input-address-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-checkbox-rules.cjs +0 -1
- package/dist/cjs/types/callout-component-input-checkbox-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-currency-rules.cjs +0 -1
- package/dist/cjs/types/callout-component-input-currency-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-date-time-rules.cjs +0 -1
- package/dist/cjs/types/callout-component-input-date-time-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-email-rules.cjs +0 -1
- package/dist/cjs/types/callout-component-input-email-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-file-rules.cjs +0 -1
- package/dist/cjs/types/callout-component-input-file-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-number-rules.cjs +0 -1
- package/dist/cjs/types/callout-component-input-number-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-phone-number-rules.cjs +0 -1
- package/dist/cjs/types/callout-component-input-phone-number-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-select-rules.cjs +0 -1
- package/dist/cjs/types/callout-component-input-select-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-selectable-radio-rules.cjs +0 -1
- package/dist/cjs/types/callout-component-input-selectable-radio-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-selectable-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-selectable-selectboxes-rules.cjs +0 -1
- package/dist/cjs/types/callout-component-input-selectable-selectboxes-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-signature-rules.cjs +0 -1
- package/dist/cjs/types/callout-component-input-signature-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-text-area-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-text-field-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-text-rules.cjs +0 -1
- package/dist/cjs/types/callout-component-input-text-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-time-rules.cjs +0 -1
- package/dist/cjs/types/callout-component-input-time-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-input-url-rules.cjs +0 -1
- package/dist/cjs/types/callout-component-input-url-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-map.cjs +0 -1
- package/dist/cjs/types/callout-component-nestable-panel-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-nestable-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-nestable-tabs-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-nestable-well-schema.cjs +0 -1
- package/dist/cjs/types/callout-component-schema.cjs +0 -1
- package/dist/cjs/types/callout-data.cjs +0 -1
- package/dist/cjs/types/callout-filter-name.cjs +0 -1
- package/dist/cjs/types/callout-map-schema-icon-styling-answer-icon-definition.cjs +15 -0
- package/dist/cjs/types/callout-map-schema-icon-styling-answer-icon.cjs +15 -0
- package/dist/cjs/types/callout-map-schema-icon-styling-answer.cjs +15 -0
- package/dist/cjs/types/callout-map-schema-icon-styling.cjs +15 -0
- package/dist/cjs/types/callout-map-schema.cjs +0 -1
- package/dist/cjs/types/{get-upload-flow-data.cjs → callout-newsletter-schema.cjs} +2 -3
- package/dist/cjs/types/callout-response-answer-address.cjs +0 -1
- package/dist/cjs/types/callout-response-answer-file-upload.cjs +0 -1
- package/dist/cjs/types/callout-response-answer.cjs +0 -1
- package/dist/cjs/types/callout-response-answers-slide.cjs +0 -1
- package/dist/cjs/types/callout-response-answers.cjs +0 -1
- package/dist/cjs/types/callout-response-comment-data.cjs +0 -1
- package/dist/cjs/types/callout-response-comment-filter-name.cjs +0 -1
- package/dist/cjs/types/callout-response-filter-name.cjs +0 -1
- package/dist/cjs/types/{client-api-error-data.cjs → callout-response-guest-data.cjs} +2 -3
- package/dist/cjs/types/{get-callout-response-with.cjs → callout-response-newsletter-data.cjs} +2 -3
- package/dist/cjs/types/callout-response-view-schema.cjs +0 -1
- package/dist/cjs/types/callout-reviewer-filter-name.cjs +15 -0
- package/dist/cjs/types/callout-tag-filter-name.cjs +0 -1
- package/dist/cjs/types/callout-variant-data.cjs +0 -1
- package/dist/cjs/types/callout-variant-navigation-data.cjs +0 -1
- package/dist/cjs/types/complete-signup-data.cjs +15 -0
- package/dist/cjs/types/contact-data.cjs +0 -1
- package/dist/cjs/types/contact-mfa-data.cjs +15 -0
- package/dist/cjs/types/contact-profile-data.cjs +0 -1
- package/dist/cjs/types/contact-role-data.cjs +0 -1
- package/dist/cjs/types/contact-tag-filter-name.cjs +15 -0
- package/dist/cjs/types/content-contacts-data.cjs +0 -1
- package/dist/cjs/types/content-data.cjs +0 -1
- package/dist/cjs/types/content-email-data.cjs +0 -1
- package/dist/cjs/types/content-general-data.cjs +0 -1
- package/dist/cjs/types/content-id.cjs +0 -1
- package/dist/cjs/types/content-join-data.cjs +0 -1
- package/dist/cjs/types/content-join-period-data.cjs +0 -1
- package/dist/cjs/types/content-join-setup-data.cjs +0 -1
- package/dist/cjs/types/content-payment-data.cjs +0 -1
- package/dist/cjs/types/content-profile-data.cjs +0 -1
- package/dist/cjs/types/content-share-data.cjs +0 -1
- package/dist/cjs/types/content-telegram-data.cjs +0 -1
- package/dist/cjs/types/contribution-info.cjs +0 -1
- package/dist/cjs/types/create-api-key-data.cjs +0 -1
- package/dist/cjs/types/create-callout-data.cjs +0 -1
- package/dist/cjs/types/create-callout-response-comment-data.cjs +0 -1
- package/dist/cjs/types/create-callout-response-data.cjs +0 -1
- package/dist/cjs/types/create-callout-response-segment-data.cjs +15 -0
- package/dist/cjs/types/create-callout-reviewer-data.cjs +15 -0
- package/dist/cjs/types/create-callout-variant-data.cjs +15 -0
- package/dist/cjs/types/create-contact-data.cjs +0 -1
- package/dist/cjs/types/create-contact-mfa-data.cjs +15 -0
- package/dist/cjs/types/create-email-data.cjs +15 -0
- package/dist/cjs/types/create-notice-data.cjs +0 -1
- package/dist/cjs/types/create-payment-data.cjs +15 -0
- package/dist/cjs/types/create-reset-device-data.cjs +15 -0
- package/dist/cjs/types/create-reset-password-data.cjs +15 -0
- package/dist/cjs/types/create-segment-data.cjs +0 -1
- package/dist/cjs/types/date-unit.cjs +0 -1
- package/dist/cjs/types/delete-contact-mfa-data.cjs +15 -0
- package/dist/cjs/types/duration.cjs +0 -1
- package/dist/cjs/types/email-filter-name.cjs +15 -0
- package/dist/cjs/types/email-preview-data.cjs +15 -0
- package/dist/cjs/types/email-template-type.cjs +15 -0
- package/dist/cjs/types/enum-filter-args.cjs +0 -1
- package/dist/cjs/types/feeable.cjs +0 -1
- package/dist/cjs/types/filter-args.cjs +0 -1
- package/dist/cjs/types/filter-type.cjs +0 -1
- package/dist/cjs/types/filters.cjs +0 -1
- package/dist/cjs/types/footer-link.cjs +0 -1
- package/dist/cjs/types/force-update-contribution-data.cjs +0 -1
- package/dist/cjs/types/formio-file.cjs +15 -0
- package/dist/cjs/types/get-api-key-data.cjs +0 -1
- package/dist/cjs/types/get-api-keys-query.cjs +0 -1
- package/dist/cjs/types/get-callout-data-with.cjs +0 -1
- package/dist/cjs/types/get-callout-data.cjs +0 -1
- package/dist/cjs/types/get-callout-form-data.cjs +0 -1
- package/dist/cjs/types/get-callout-form-schema.cjs +0 -1
- package/dist/cjs/types/get-callout-navigation-schema.cjs +0 -1
- package/dist/cjs/types/get-callout-response-comment-data.cjs +0 -1
- package/dist/cjs/types/get-callout-response-comments-query.cjs +0 -1
- package/dist/cjs/types/get-callout-response-data-with.cjs +0 -1
- package/dist/cjs/types/get-callout-response-data.cjs +0 -1
- package/dist/cjs/types/get-callout-response-map-data.cjs +0 -1
- package/dist/cjs/types/get-callout-responses-query.cjs +0 -1
- package/dist/cjs/types/get-callout-reviewer-data.cjs +15 -0
- package/dist/cjs/types/get-callout-slide-schema.cjs +0 -1
- package/dist/cjs/types/get-callout-with.cjs +0 -1
- package/dist/cjs/types/get-callouts-query.cjs +0 -1
- package/dist/cjs/types/get-contact-data-with.cjs +0 -1
- package/dist/cjs/types/get-contact-data.cjs +0 -1
- package/dist/cjs/types/get-contact-mfa-data.cjs +15 -0
- package/dist/cjs/types/get-contacts-query.cjs +0 -1
- package/dist/cjs/types/get-email-data.cjs +0 -1
- package/dist/cjs/types/get-email-template-info-data.cjs +15 -0
- package/dist/cjs/types/get-notice-data.cjs +0 -1
- package/dist/cjs/types/get-notices-query.cjs +0 -1
- package/dist/cjs/types/get-payment-aggregation-data.cjs +15 -0
- package/dist/cjs/types/get-payment-data-with.cjs +0 -1
- package/dist/cjs/types/get-payment-data.cjs +0 -1
- package/dist/cjs/types/get-payment-with.cjs +0 -1
- package/dist/cjs/types/{create-callout-tag-data.cjs → get-payments-aggregation-query.cjs} +2 -3
- package/dist/cjs/types/get-payments-query.cjs +0 -1
- package/dist/cjs/types/get-segment-data-with.cjs +0 -1
- package/dist/cjs/types/get-segment-data.cjs +0 -1
- package/dist/cjs/types/get-segment-with.cjs +0 -1
- package/dist/cjs/types/get-segments-query.cjs +15 -0
- package/dist/cjs/types/get-stats-data.cjs +0 -1
- package/dist/cjs/types/get-stats-query.cjs +0 -1
- package/dist/cjs/types/health-check-data.cjs +15 -0
- package/dist/cjs/types/index.cjs +0 -387
- package/dist/cjs/types/list-emails-query.cjs +15 -0
- package/dist/cjs/types/login-data.cjs +15 -0
- package/dist/cjs/types/newsletter-group-data.cjs +15 -0
- package/dist/cjs/types/noop.cjs +0 -1
- package/dist/cjs/types/notice-data.cjs +0 -1
- package/dist/cjs/types/notice-filter-name.cjs +0 -1
- package/dist/cjs/types/ongoing-email-fields.cjs +15 -0
- package/dist/cjs/types/operators-by-type.cjs +0 -1
- package/dist/cjs/types/other-filter-args.cjs +0 -1
- package/dist/cjs/types/paginated-query.cjs +0 -1
- package/dist/cjs/types/paginated.cjs +0 -1
- package/dist/cjs/types/parse-iso-options.cjs +0 -1
- package/dist/cjs/types/payment-filter-name.cjs +0 -1
- package/dist/cjs/types/payment-flow-params.cjs +0 -1
- package/dist/cjs/types/payment-flow-result.cjs +15 -0
- package/dist/cjs/types/payment-period.cjs +15 -0
- package/dist/cjs/types/payment-source-base.cjs +0 -1
- package/dist/cjs/types/payment-source-go-cardless-direct-debit.cjs +0 -1
- package/dist/cjs/types/payment-source-manual.cjs +0 -1
- package/dist/cjs/types/payment-source-stripe-bacs.cjs +0 -1
- package/dist/cjs/types/payment-source-stripe-card.cjs +0 -1
- package/dist/cjs/types/payment-source-stripe-paypal.cjs +0 -1
- package/dist/cjs/types/payment-source-stripe-sepa.cjs +0 -1
- package/dist/cjs/types/payment-source.cjs +0 -1
- package/dist/cjs/types/role-type.cjs +0 -1
- package/dist/cjs/types/rule-group.cjs +0 -1
- package/dist/cjs/types/rule-operator.cjs +0 -1
- package/dist/cjs/types/rule-opperator-params.cjs +0 -1
- package/dist/cjs/types/rule-value.cjs +0 -1
- package/dist/cjs/types/rule.cjs +0 -1
- package/dist/cjs/types/s3-metadata.cjs +15 -0
- package/dist/cjs/types/segment-filter-name.cjs +0 -1
- package/dist/cjs/types/segment-ongoing-email-trigger.cjs +15 -0
- package/dist/cjs/types/serial.cjs +0 -1
- package/dist/cjs/types/set-callout-form-schema.cjs +0 -1
- package/dist/cjs/types/set-callout-navigation-schema.cjs +0 -1
- package/dist/cjs/types/set-callout-slide-schema.cjs +0 -1
- package/dist/cjs/types/set-contribution-data.cjs +0 -1
- package/dist/cjs/types/signup-data.cjs +15 -0
- package/dist/cjs/types/start-contribution-data.cjs +0 -1
- package/dist/cjs/types/stripe-fee-country.cjs +0 -1
- package/dist/cjs/types/tag-create-data.cjs +15 -0
- package/dist/cjs/types/tag-data.cjs +15 -0
- package/dist/cjs/types/tag-get-data.cjs +15 -0
- package/dist/cjs/types/tag-update-data.cjs +15 -0
- package/dist/cjs/types/text-case.cjs +0 -1
- package/dist/cjs/types/unit-matches.cjs +0 -1
- package/dist/cjs/types/update-callout-data.cjs +0 -1
- package/dist/cjs/types/update-callout-response-comment-data.cjs +0 -1
- package/dist/cjs/types/update-callout-response-data.cjs +0 -1
- package/dist/cjs/types/update-callout-response-segment-data.cjs +15 -0
- package/dist/cjs/types/update-callout-reviewer-data.cjs +15 -0
- package/dist/cjs/types/update-contact-data.cjs +0 -1
- package/dist/cjs/types/update-contact-profile-data.cjs +0 -1
- package/dist/cjs/types/update-contact-role-data.cjs +0 -1
- package/dist/cjs/types/update-email-data.cjs +0 -1
- package/dist/cjs/types/update-notice-data.cjs +15 -0
- package/dist/cjs/types/update-reset-device-data.cjs +15 -0
- package/dist/cjs/types/update-reset-password-data.cjs +0 -1
- package/dist/cjs/types/update-segment-data.cjs +0 -1
- package/dist/cjs/types/upload-file-response.cjs +15 -0
- package/dist/cjs/types/validated-boolean-rule.cjs +0 -1
- package/dist/cjs/types/validated-number-rule.cjs +0 -1
- package/dist/cjs/types/validated-rule-group.cjs +0 -1
- package/dist/cjs/types/validated-rule-value.cjs +0 -1
- package/dist/cjs/types/validated-rule.cjs +0 -1
- package/dist/cjs/types/validated-string-rule.cjs +0 -1
- package/dist/cjs/types/validator-callout-component.cjs +0 -1
- package/dist/cjs/types/validator.cjs +0 -1
- package/dist/cjs/utils/callouts.cjs +25 -16
- package/dist/cjs/utils/conversions.cjs +0 -1
- package/dist/cjs/utils/date.cjs +1 -4
- package/dist/cjs/utils/debounce.cjs +73 -0
- package/dist/cjs/utils/file.cjs +61 -0
- package/dist/cjs/utils/index.cjs +6 -1
- package/dist/cjs/utils/payments.cjs +16 -14
- package/dist/cjs/utils/rules.cjs +8 -2
- package/dist/cjs/utils/slug.cjs +0 -1
- package/dist/cjs/utils/url.cjs +53 -0
- package/dist/cjs/utils/validations.cjs +1 -2
- package/dist/cjs/validators/callout-component-content.validator.cjs +0 -1
- package/dist/cjs/validators/callout-component-input-address.validator.cjs +0 -1
- package/dist/cjs/validators/callout-component-input-checkbox.validator.cjs +0 -1
- package/dist/cjs/validators/callout-component-input-currency.validator.cjs +0 -1
- package/dist/cjs/validators/callout-component-input-date-time.validator.cjs +0 -1
- package/dist/cjs/validators/callout-component-input-email.validator.cjs +0 -1
- package/dist/cjs/validators/callout-component-input-file.validator.cjs +1 -2
- package/dist/cjs/validators/callout-component-input-number.validator.cjs +0 -1
- package/dist/cjs/validators/callout-component-input-phone-number.validator.cjs +0 -1
- package/dist/cjs/validators/callout-component-input-select.validator.cjs +0 -1
- package/dist/cjs/validators/callout-component-input-selectable.validator.cjs +0 -1
- package/dist/cjs/validators/callout-component-input-signature.validator.cjs +0 -1
- package/dist/cjs/validators/callout-component-input-text.validator.cjs +0 -1
- package/dist/cjs/validators/callout-component-input-time.validator.cjs +1 -4
- package/dist/cjs/validators/callout-component-input-url.validator.cjs +0 -1
- package/dist/cjs/validators/callout-component.validator.cjs +4 -8
- package/dist/cjs/validators/index.cjs +0 -1
- package/dist/constants.d.ts +79 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +104 -0
- package/dist/constants.js.map +1 -0
- package/dist/data/api-error-code.d.ts +23 -0
- package/dist/data/api-error-code.d.ts.map +1 -0
- package/dist/data/api-error-code.js +24 -0
- package/dist/data/api-error-code.js.map +1 -0
- package/dist/data/callout-access.d.ts +7 -0
- package/dist/data/callout-access.d.ts.map +1 -0
- package/dist/data/callout-access.js +8 -0
- package/dist/data/callout-access.js.map +1 -0
- package/dist/data/callout-captcha.d.ts +6 -0
- package/dist/data/callout-captcha.d.ts.map +1 -0
- package/dist/data/callout-captcha.js +7 -0
- package/dist/data/callout-captcha.js.map +1 -0
- package/dist/data/callout-channel.d.ts +4 -0
- package/dist/data/callout-channel.d.ts.map +1 -0
- package/dist/data/callout-channel.js +6 -0
- package/dist/data/callout-channel.js.map +1 -0
- package/dist/data/callout-component-base-type.d.ts +9 -0
- package/dist/data/callout-component-base-type.d.ts.map +1 -0
- package/dist/data/callout-component-base-type.js +10 -0
- package/dist/data/callout-component-base-type.js.map +1 -0
- package/dist/data/callout-component-input-selectable-types.d.ts +4 -0
- package/dist/data/callout-component-input-selectable-types.d.ts.map +1 -0
- package/dist/data/callout-component-input-selectable-types.js +7 -0
- package/dist/data/callout-component-input-selectable-types.js.map +1 -0
- package/dist/data/callout-component-input-text-types.d.ts +4 -0
- package/dist/data/callout-component-input-text-types.d.ts.map +1 -0
- package/dist/data/callout-component-input-text-types.js +7 -0
- package/dist/data/callout-component-input-text-types.js.map +1 -0
- package/dist/data/callout-component-input-types.d.ts +4 -0
- package/dist/data/callout-component-input-types.d.ts.map +1 -0
- package/dist/data/callout-component-input-types.js +21 -0
- package/dist/data/callout-component-input-types.js.map +1 -0
- package/dist/data/callout-component-nestable-types.d.ts +4 -0
- package/dist/data/callout-component-nestable-types.d.ts.map +1 -0
- package/dist/data/callout-component-nestable-types.js +8 -0
- package/dist/data/callout-component-nestable-types.js.map +1 -0
- package/dist/data/callout-component-type.d.ts +24 -0
- package/dist/data/callout-component-type.d.ts.map +1 -0
- package/dist/data/callout-component-type.js +25 -0
- package/dist/data/callout-component-type.js.map +1 -0
- package/dist/data/callout-component-types.d.ts +4 -0
- package/dist/data/callout-component-types.d.ts.map +1 -0
- package/dist/data/callout-component-types.js +10 -0
- package/dist/data/callout-component-types.js.map +1 -0
- package/dist/data/contact-mfa-type.d.ts +7 -0
- package/dist/data/contact-mfa-type.d.ts.map +1 -0
- package/dist/data/contact-mfa-type.js +9 -0
- package/dist/data/contact-mfa-type.js.map +1 -0
- package/dist/data/content-ids.d.ts +3 -0
- package/dist/data/content-ids.d.ts.map +1 -0
- package/dist/data/content-ids.js +14 -0
- package/dist/data/content-ids.js.map +1 -0
- package/dist/data/contribution-period.d.ts +5 -0
- package/dist/data/contribution-period.d.ts.map +1 -0
- package/dist/data/contribution-period.js +6 -0
- package/dist/data/contribution-period.js.map +1 -0
- package/dist/data/contribution-type.d.ts +7 -0
- package/dist/data/contribution-type.d.ts.map +1 -0
- package/dist/data/contribution-type.js +8 -0
- package/dist/data/contribution-type.js.map +1 -0
- package/dist/data/get-callout-response-with.d.ts +9 -0
- package/dist/data/get-callout-response-with.d.ts.map +1 -0
- package/dist/data/get-callout-response-with.js +10 -0
- package/dist/data/get-callout-response-with.js.map +1 -0
- package/dist/data/get-contact-with.d.ts +8 -0
- package/dist/data/get-contact-with.d.ts.map +1 -0
- package/dist/data/get-contact-with.js +9 -0
- package/dist/data/get-contact-with.js.map +1 -0
- package/dist/data/index.d.ts +28 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/index.js +29 -0
- package/dist/data/index.js.map +1 -0
- package/dist/data/item-status.d.ts +7 -0
- package/dist/data/item-status.d.ts.map +1 -0
- package/dist/data/item-status.js +8 -0
- package/dist/data/item-status.js.map +1 -0
- package/dist/data/login-codes.d.ts +14 -0
- package/dist/data/login-codes.d.ts.map +1 -0
- package/dist/data/login-codes.js +15 -0
- package/dist/data/login-codes.js.map +1 -0
- package/dist/data/membership-status.d.ts +7 -0
- package/dist/data/membership-status.d.ts.map +1 -0
- package/dist/data/membership-status.js +8 -0
- package/dist/data/membership-status.js.map +1 -0
- package/dist/data/newsletter-status.d.ts +8 -0
- package/dist/data/newsletter-status.d.ts.map +1 -0
- package/dist/data/newsletter-status.js +9 -0
- package/dist/data/newsletter-status.js.map +1 -0
- package/dist/data/payment-method.d.ts +9 -0
- package/dist/data/payment-method.d.ts.map +1 -0
- package/dist/data/payment-method.js +10 -0
- package/dist/data/payment-method.js.map +1 -0
- package/dist/data/payment-status.d.ts +8 -0
- package/dist/data/payment-status.d.ts.map +1 -0
- package/dist/data/payment-status.js +9 -0
- package/dist/data/payment-status.js.map +1 -0
- package/dist/data/payment-type.d.ts +7 -0
- package/dist/data/payment-type.d.ts.map +1 -0
- package/dist/data/payment-type.js +8 -0
- package/dist/data/payment-type.js.map +1 -0
- package/dist/data/reset-security-flow-error-code.d.ts +9 -0
- package/dist/data/reset-security-flow-error-code.d.ts.map +1 -0
- package/dist/data/reset-security-flow-error-code.js +10 -0
- package/dist/data/reset-security-flow-error-code.js.map +1 -0
- package/dist/data/reset-security-flow-type.d.ts +8 -0
- package/dist/data/reset-security-flow-type.d.ts.map +1 -0
- package/dist/data/reset-security-flow-type.js +9 -0
- package/dist/data/reset-security-flow-type.js.map +1 -0
- package/dist/data/role-type-data.d.ts +6 -0
- package/dist/data/role-type-data.d.ts.map +1 -0
- package/dist/data/role-type-data.js +7 -0
- package/dist/data/role-type-data.js.map +1 -0
- package/dist/error/InvalidRule.d.ts +7 -0
- package/dist/error/InvalidRule.d.ts.map +1 -0
- package/dist/error/InvalidRule.js +11 -0
- package/dist/error/InvalidRule.js.map +1 -0
- package/dist/error/index.d.ts +2 -0
- package/dist/error/index.d.ts.map +1 -0
- package/dist/error/index.js +3 -0
- package/dist/error/index.js.map +1 -0
- package/dist/esm/constants.js +66 -0
- package/dist/esm/data/api-error-code.js +26 -0
- package/dist/esm/data/callout-component-input-types.js +1 -1
- package/dist/esm/data/callout-component-types.js +1 -1
- package/dist/esm/data/contact-mfa-type.js +7 -0
- package/dist/esm/data/content-ids.js +1 -0
- package/dist/esm/data/get-callout-response-with.js +12 -0
- package/dist/esm/data/get-contact-with.js +11 -0
- package/dist/esm/data/index.js +9 -0
- package/dist/esm/data/login-codes.js +14 -0
- package/dist/esm/data/payment-method.js +1 -2
- package/dist/esm/data/payment-type.js +10 -0
- package/dist/esm/data/reset-security-flow-error-code.js +9 -0
- package/dist/esm/data/reset-security-flow-type.js +8 -0
- package/dist/esm/data/role-type-data.js +9 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/search/api-keys.js +1 -0
- package/dist/esm/search/callouts.js +40 -3
- package/dist/esm/search/contacts.js +39 -4
- package/dist/esm/search/emails.js +33 -0
- package/dist/esm/search/index.js +2 -0
- package/dist/esm/search/notices.js +1 -0
- package/dist/esm/search/operators.js +15 -8
- package/dist/esm/search/payments.js +11 -0
- package/dist/esm/search/segments.js +1 -0
- package/dist/esm/search/tags.js +15 -0
- package/dist/esm/types/callout-response-guest-data.js +0 -0
- package/dist/esm/types/callout-response-newsletter-data.js +0 -0
- package/dist/esm/types/callout-reviewer-filter-name.js +0 -0
- package/dist/esm/types/complete-signup-data.js +0 -0
- package/dist/esm/types/contact-mfa-data.js +0 -0
- package/dist/esm/types/contact-tag-filter-name.js +0 -0
- package/dist/esm/types/create-callout-response-segment-data.js +0 -0
- package/dist/esm/types/create-callout-reviewer-data.js +0 -0
- package/dist/esm/types/create-callout-variant-data.js +0 -0
- package/dist/esm/types/create-contact-mfa-data.js +0 -0
- package/dist/esm/types/create-email-data.js +0 -0
- package/dist/esm/types/create-payment-data.js +0 -0
- package/dist/esm/types/create-reset-device-data.js +0 -0
- package/dist/esm/types/create-reset-password-data.js +0 -0
- package/dist/esm/types/delete-contact-mfa-data.js +0 -0
- package/dist/esm/types/email-filter-name.js +0 -0
- package/dist/esm/types/email-preview-data.js +0 -0
- package/dist/esm/types/email-template-type.js +0 -0
- package/dist/esm/types/formio-file.js +0 -0
- package/dist/esm/types/get-callout-reviewer-data.js +0 -0
- package/dist/esm/types/get-contact-mfa-data.js +0 -0
- package/dist/esm/types/get-email-template-info-data.js +0 -0
- package/dist/esm/types/get-payment-aggregation-data.js +0 -0
- package/dist/esm/types/get-payments-aggregation-query.js +0 -0
- package/dist/esm/types/get-segments-query.js +0 -0
- package/dist/esm/types/health-check-data.js +0 -0
- package/dist/esm/types/index.js +0 -191
- package/dist/esm/types/list-emails-query.js +0 -0
- package/dist/esm/types/login-data.js +0 -0
- package/dist/esm/types/newsletter-group-data.js +0 -0
- package/dist/esm/types/ongoing-email-fields.js +0 -0
- package/dist/esm/types/payment-flow-result.js +0 -0
- package/dist/esm/types/payment-period.js +0 -0
- package/dist/esm/types/s3-metadata.js +0 -0
- package/dist/esm/types/segment-ongoing-email-trigger.js +0 -0
- package/dist/esm/types/signup-data.js +0 -0
- package/dist/esm/types/tag-create-data.js +0 -0
- package/dist/esm/types/tag-data.js +0 -0
- package/dist/esm/types/tag-get-data.js +0 -0
- package/dist/esm/types/tag-update-data.js +0 -0
- package/dist/esm/types/update-callout-response-segment-data.js +0 -0
- package/dist/esm/types/update-callout-reviewer-data.js +0 -0
- package/dist/esm/types/update-notice-data.js +0 -0
- package/dist/esm/types/update-reset-device-data.js +0 -0
- package/dist/esm/types/upload-file-response.js +0 -0
- package/dist/esm/utils/callouts.js +25 -17
- package/dist/esm/utils/date.js +1 -3
- package/dist/esm/utils/debounce.js +49 -0
- package/dist/esm/utils/file.js +39 -0
- package/dist/esm/utils/index.js +3 -0
- package/dist/esm/utils/payments.js +16 -13
- package/dist/esm/utils/rules.js +7 -1
- package/dist/esm/utils/url.js +28 -0
- package/dist/esm/utils/validations.js +1 -1
- package/dist/esm/validators/callout-component-input-file.validator.js +1 -1
- package/dist/esm/validators/callout-component-input-time.validator.js +1 -3
- package/dist/esm/validators/callout-component.validator.js +7 -10
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/search/api-keys.d.ts +9 -0
- package/dist/search/api-keys.d.ts.map +1 -0
- package/dist/search/api-keys.js +10 -0
- package/dist/search/api-keys.js.map +1 -0
- package/dist/search/callouts.d.ts +142 -0
- package/dist/search/callouts.d.ts.map +1 -0
- package/dist/search/callouts.js +155 -0
- package/dist/search/callouts.js.map +1 -0
- package/dist/search/contacts.d.ts +104 -0
- package/dist/search/contacts.d.ts.map +1 -0
- package/dist/search/contacts.js +116 -0
- package/dist/search/contacts.js.map +1 -0
- package/dist/search/emails.d.ts +30 -0
- package/dist/search/emails.d.ts.map +1 -0
- package/dist/search/emails.js +31 -0
- package/dist/search/emails.js.map +1 -0
- package/dist/search/index.d.ts +10 -0
- package/dist/search/index.d.ts.map +1 -0
- package/dist/search/index.js +11 -0
- package/dist/search/index.js.map +1 -0
- package/dist/search/notices.d.ts +30 -0
- package/dist/search/notices.d.ts.map +1 -0
- package/dist/search/notices.js +36 -0
- package/dist/search/notices.js.map +1 -0
- package/dist/search/operators.d.ts +76 -0
- package/dist/search/operators.d.ts.map +1 -0
- package/dist/search/operators.js +66 -0
- package/dist/search/operators.js.map +1 -0
- package/dist/search/payments.d.ts +25 -0
- package/dist/search/payments.d.ts.map +1 -0
- package/dist/search/payments.js +37 -0
- package/dist/search/payments.js.map +1 -0
- package/dist/search/segments.d.ts +12 -0
- package/dist/search/segments.d.ts.map +1 -0
- package/dist/search/segments.js +13 -0
- package/dist/search/segments.js.map +1 -0
- package/dist/search/tags.d.ts +13 -0
- package/dist/search/tags.d.ts.map +1 -0
- package/dist/search/tags.js +13 -0
- package/dist/search/tags.js.map +1 -0
- package/dist/types/address.d.ts +7 -0
- package/dist/types/address.d.ts.map +1 -0
- package/dist/types/address.js +2 -0
- package/dist/types/address.js.map +1 -0
- package/dist/types/allow-null.d.ts +8 -0
- package/dist/types/allow-null.d.ts.map +1 -0
- package/dist/types/allow-null.js +2 -0
- package/dist/types/allow-null.js.map +1 -0
- package/dist/types/api-error-data.d.ts +112 -0
- package/dist/types/api-error-data.d.ts.map +1 -0
- package/dist/types/api-error-data.js +2 -0
- package/dist/types/api-error-data.js.map +1 -0
- package/dist/types/api-key-filter-name.d.ts +3 -0
- package/dist/types/api-key-filter-name.d.ts.map +1 -0
- package/dist/types/api-key-filter-name.js +2 -0
- package/dist/types/api-key-filter-name.js.map +1 -0
- package/dist/types/array-filter-args.d.ts +6 -0
- package/dist/types/array-filter-args.d.ts.map +1 -0
- package/dist/types/array-filter-args.js +2 -0
- package/dist/types/array-filter-args.js.map +1 -0
- package/dist/types/auth-info-data.d.ts +25 -0
- package/dist/types/auth-info-data.d.ts.map +1 -0
- package/dist/types/auth-info-data.js +2 -0
- package/dist/types/auth-info-data.js.map +1 -0
- package/dist/types/base-filter-args.d.ts +6 -0
- package/dist/types/base-filter-args.d.ts.map +1 -0
- package/dist/types/base-filter-args.js +2 -0
- package/dist/types/base-filter-args.js.map +1 -0
- package/dist/types/base-validated-rule.d.ts +10 -0
- package/dist/types/base-validated-rule.d.ts.map +1 -0
- package/dist/types/base-validated-rule.js +2 -0
- package/dist/types/base-validated-rule.js.map +1 -0
- package/dist/types/callout-channel-filter-name.d.ts +3 -0
- package/dist/types/callout-channel-filter-name.d.ts.map +1 -0
- package/dist/types/callout-channel-filter-name.js +2 -0
- package/dist/types/callout-channel-filter-name.js.map +1 -0
- package/dist/types/callout-component-base-input-schema.d.ts +12 -0
- package/dist/types/callout-component-base-input-schema.d.ts.map +1 -0
- package/dist/types/callout-component-base-input-schema.js +2 -0
- package/dist/types/callout-component-base-input-schema.js.map +1 -0
- package/dist/types/callout-component-base-input-selectable-schema.d.ts +12 -0
- package/dist/types/callout-component-base-input-selectable-schema.d.ts.map +1 -0
- package/dist/types/callout-component-base-input-selectable-schema.js +2 -0
- package/dist/types/callout-component-base-input-selectable-schema.js.map +1 -0
- package/dist/types/callout-component-base-input-text-schema.d.ts +13 -0
- package/dist/types/callout-component-base-input-text-schema.d.ts.map +1 -0
- package/dist/types/callout-component-base-input-text-schema.js +2 -0
- package/dist/types/callout-component-base-input-text-schema.js.map +1 -0
- package/dist/types/callout-component-base-map.d.ts +17 -0
- package/dist/types/callout-component-base-map.d.ts.map +1 -0
- package/dist/types/callout-component-base-map.js +2 -0
- package/dist/types/callout-component-base-map.js.map +1 -0
- package/dist/types/callout-component-base-nestable-schema.d.ts +8 -0
- package/dist/types/callout-component-base-nestable-schema.d.ts.map +1 -0
- package/dist/types/callout-component-base-nestable-schema.js +2 -0
- package/dist/types/callout-component-base-nestable-schema.js.map +1 -0
- package/dist/types/callout-component-base-rules.d.ts +7 -0
- package/dist/types/callout-component-base-rules.d.ts.map +1 -0
- package/dist/types/callout-component-base-rules.js +2 -0
- package/dist/types/callout-component-base-rules.js.map +1 -0
- package/dist/types/callout-component-base-schema.d.ts +23 -0
- package/dist/types/callout-component-base-schema.d.ts.map +1 -0
- package/dist/types/callout-component-base-schema.js +2 -0
- package/dist/types/callout-component-base-schema.js.map +1 -0
- package/dist/types/callout-component-content-schema.d.ts +13 -0
- package/dist/types/callout-component-content-schema.d.ts.map +1 -0
- package/dist/types/callout-component-content-schema.js +2 -0
- package/dist/types/callout-component-content-schema.js.map +1 -0
- package/dist/types/callout-component-input-address-rules.d.ts +3 -0
- package/dist/types/callout-component-input-address-rules.d.ts.map +1 -0
- package/dist/types/callout-component-input-address-rules.js +2 -0
- package/dist/types/callout-component-input-address-rules.js.map +1 -0
- package/dist/types/callout-component-input-address-schema.d.ts +10 -0
- package/dist/types/callout-component-input-address-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-address-schema.js +2 -0
- package/dist/types/callout-component-input-address-schema.js.map +1 -0
- package/dist/types/callout-component-input-checkbox-rules.d.ts +3 -0
- package/dist/types/callout-component-input-checkbox-rules.d.ts.map +1 -0
- package/dist/types/callout-component-input-checkbox-rules.js +2 -0
- package/dist/types/callout-component-input-checkbox-rules.js.map +1 -0
- package/dist/types/callout-component-input-checkbox-schema.d.ts +12 -0
- package/dist/types/callout-component-input-checkbox-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-checkbox-schema.js +2 -0
- package/dist/types/callout-component-input-checkbox-schema.js.map +1 -0
- package/dist/types/callout-component-input-currency-rules.d.ts +3 -0
- package/dist/types/callout-component-input-currency-rules.d.ts.map +1 -0
- package/dist/types/callout-component-input-currency-rules.js +2 -0
- package/dist/types/callout-component-input-currency-rules.js.map +1 -0
- package/dist/types/callout-component-input-currency-schema.d.ts +18 -0
- package/dist/types/callout-component-input-currency-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-currency-schema.js +2 -0
- package/dist/types/callout-component-input-currency-schema.js.map +1 -0
- package/dist/types/callout-component-input-date-time-rules.d.ts +3 -0
- package/dist/types/callout-component-input-date-time-rules.d.ts.map +1 -0
- package/dist/types/callout-component-input-date-time-rules.js +2 -0
- package/dist/types/callout-component-input-date-time-rules.js.map +1 -0
- package/dist/types/callout-component-input-date-time-schema.d.ts +40 -0
- package/dist/types/callout-component-input-date-time-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-date-time-schema.js +2 -0
- package/dist/types/callout-component-input-date-time-schema.js.map +1 -0
- package/dist/types/callout-component-input-email-rules.d.ts +10 -0
- package/dist/types/callout-component-input-email-rules.d.ts.map +1 -0
- package/dist/types/callout-component-input-email-rules.js +2 -0
- package/dist/types/callout-component-input-email-rules.js.map +1 -0
- package/dist/types/callout-component-input-email-schema.d.ts +12 -0
- package/dist/types/callout-component-input-email-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-email-schema.js +2 -0
- package/dist/types/callout-component-input-email-schema.js.map +1 -0
- package/dist/types/callout-component-input-file-rules.d.ts +3 -0
- package/dist/types/callout-component-input-file-rules.d.ts.map +1 -0
- package/dist/types/callout-component-input-file-rules.js +2 -0
- package/dist/types/callout-component-input-file-rules.js.map +1 -0
- package/dist/types/callout-component-input-file-schema.d.ts +20 -0
- package/dist/types/callout-component-input-file-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-file-schema.js +2 -0
- package/dist/types/callout-component-input-file-schema.js.map +1 -0
- package/dist/types/callout-component-input-number-rules.d.ts +10 -0
- package/dist/types/callout-component-input-number-rules.d.ts.map +1 -0
- package/dist/types/callout-component-input-number-rules.js +2 -0
- package/dist/types/callout-component-input-number-rules.js.map +1 -0
- package/dist/types/callout-component-input-number-schema.d.ts +18 -0
- package/dist/types/callout-component-input-number-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-number-schema.js +2 -0
- package/dist/types/callout-component-input-number-schema.js.map +1 -0
- package/dist/types/callout-component-input-phone-number-rules.d.ts +3 -0
- package/dist/types/callout-component-input-phone-number-rules.d.ts.map +1 -0
- package/dist/types/callout-component-input-phone-number-rules.js +2 -0
- package/dist/types/callout-component-input-phone-number-rules.js.map +1 -0
- package/dist/types/callout-component-input-phone-number-schema.d.ts +10 -0
- package/dist/types/callout-component-input-phone-number-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-phone-number-schema.js +2 -0
- package/dist/types/callout-component-input-phone-number-schema.js.map +1 -0
- package/dist/types/callout-component-input-schema.d.ts +4 -0
- package/dist/types/callout-component-input-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-schema.js +2 -0
- package/dist/types/callout-component-input-schema.js.map +1 -0
- package/dist/types/callout-component-input-select-rules.d.ts +3 -0
- package/dist/types/callout-component-input-select-rules.d.ts.map +1 -0
- package/dist/types/callout-component-input-select-rules.js +2 -0
- package/dist/types/callout-component-input-select-rules.js.map +1 -0
- package/dist/types/callout-component-input-select-schema.d.ts +18 -0
- package/dist/types/callout-component-input-select-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-select-schema.js +2 -0
- package/dist/types/callout-component-input-select-schema.js.map +1 -0
- package/dist/types/callout-component-input-selectable-radio-rules.d.ts +3 -0
- package/dist/types/callout-component-input-selectable-radio-rules.d.ts.map +1 -0
- package/dist/types/callout-component-input-selectable-radio-rules.js +2 -0
- package/dist/types/callout-component-input-selectable-radio-rules.js.map +1 -0
- package/dist/types/callout-component-input-selectable-radio-schema.d.ts +7 -0
- package/dist/types/callout-component-input-selectable-radio-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-selectable-radio-schema.js +2 -0
- package/dist/types/callout-component-input-selectable-radio-schema.js.map +1 -0
- package/dist/types/callout-component-input-selectable-schema.d.ts +4 -0
- package/dist/types/callout-component-input-selectable-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-selectable-schema.js +2 -0
- package/dist/types/callout-component-input-selectable-schema.js.map +1 -0
- package/dist/types/callout-component-input-selectable-selectboxes-rules.d.ts +3 -0
- package/dist/types/callout-component-input-selectable-selectboxes-rules.d.ts.map +1 -0
- package/dist/types/callout-component-input-selectable-selectboxes-rules.js +2 -0
- package/dist/types/callout-component-input-selectable-selectboxes-rules.js.map +1 -0
- package/dist/types/callout-component-input-selectable-selectboxes-schema.d.ts +7 -0
- package/dist/types/callout-component-input-selectable-selectboxes-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-selectable-selectboxes-schema.js +2 -0
- package/dist/types/callout-component-input-selectable-selectboxes-schema.js.map +1 -0
- package/dist/types/callout-component-input-signature-rules.d.ts +3 -0
- package/dist/types/callout-component-input-signature-rules.d.ts.map +1 -0
- package/dist/types/callout-component-input-signature-rules.js +2 -0
- package/dist/types/callout-component-input-signature-rules.js.map +1 -0
- package/dist/types/callout-component-input-signature-schema.d.ts +8 -0
- package/dist/types/callout-component-input-signature-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-signature-schema.js +2 -0
- package/dist/types/callout-component-input-signature-schema.js.map +1 -0
- package/dist/types/callout-component-input-text-area-schema.d.ts +6 -0
- package/dist/types/callout-component-input-text-area-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-text-area-schema.js +2 -0
- package/dist/types/callout-component-input-text-area-schema.js.map +1 -0
- package/dist/types/callout-component-input-text-field-schema.d.ts +6 -0
- package/dist/types/callout-component-input-text-field-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-text-field-schema.js +2 -0
- package/dist/types/callout-component-input-text-field-schema.js.map +1 -0
- package/dist/types/callout-component-input-text-rules.d.ts +14 -0
- package/dist/types/callout-component-input-text-rules.d.ts.map +1 -0
- package/dist/types/callout-component-input-text-rules.js +2 -0
- package/dist/types/callout-component-input-text-rules.js.map +1 -0
- package/dist/types/callout-component-input-text-schema.d.ts +4 -0
- package/dist/types/callout-component-input-text-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-text-schema.js +2 -0
- package/dist/types/callout-component-input-text-schema.js.map +1 -0
- package/dist/types/callout-component-input-time-rules.d.ts +3 -0
- package/dist/types/callout-component-input-time-rules.d.ts.map +1 -0
- package/dist/types/callout-component-input-time-rules.js +2 -0
- package/dist/types/callout-component-input-time-rules.js.map +1 -0
- package/dist/types/callout-component-input-time-schema.d.ts +10 -0
- package/dist/types/callout-component-input-time-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-time-schema.js +2 -0
- package/dist/types/callout-component-input-time-schema.js.map +1 -0
- package/dist/types/callout-component-input-url-rules.d.ts +10 -0
- package/dist/types/callout-component-input-url-rules.d.ts.map +1 -0
- package/dist/types/callout-component-input-url-rules.js +2 -0
- package/dist/types/callout-component-input-url-rules.js.map +1 -0
- package/dist/types/callout-component-input-url-schema.d.ts +12 -0
- package/dist/types/callout-component-input-url-schema.d.ts.map +1 -0
- package/dist/types/callout-component-input-url-schema.js +2 -0
- package/dist/types/callout-component-input-url-schema.js.map +1 -0
- package/dist/types/callout-component-map.d.ts +32 -0
- package/dist/types/callout-component-map.d.ts.map +1 -0
- package/dist/types/callout-component-map.js +2 -0
- package/dist/types/callout-component-map.js.map +1 -0
- package/dist/types/callout-component-nestable-panel-schema.d.ts +6 -0
- package/dist/types/callout-component-nestable-panel-schema.d.ts.map +1 -0
- package/dist/types/callout-component-nestable-panel-schema.js +2 -0
- package/dist/types/callout-component-nestable-panel-schema.js.map +1 -0
- package/dist/types/callout-component-nestable-schema.d.ts +3 -0
- package/dist/types/callout-component-nestable-schema.d.ts.map +1 -0
- package/dist/types/callout-component-nestable-schema.js +2 -0
- package/dist/types/callout-component-nestable-schema.js.map +1 -0
- package/dist/types/callout-component-nestable-tabs-schema.d.ts +6 -0
- package/dist/types/callout-component-nestable-tabs-schema.d.ts.map +1 -0
- package/dist/types/callout-component-nestable-tabs-schema.js +2 -0
- package/dist/types/callout-component-nestable-tabs-schema.js.map +1 -0
- package/dist/types/callout-component-nestable-well-schema.d.ts +6 -0
- package/dist/types/callout-component-nestable-well-schema.d.ts.map +1 -0
- package/dist/types/callout-component-nestable-well-schema.js +2 -0
- package/dist/types/callout-component-nestable-well-schema.js.map +1 -0
- package/dist/types/callout-component-schema.d.ts +4 -0
- package/dist/types/callout-component-schema.d.ts.map +1 -0
- package/dist/types/callout-component-schema.js +2 -0
- package/dist/types/callout-component-schema.js.map +1 -0
- package/dist/types/callout-data.d.ts +18 -0
- package/dist/types/callout-data.d.ts.map +1 -0
- package/dist/types/callout-data.js +2 -0
- package/dist/types/callout-data.js.map +1 -0
- package/dist/types/callout-filter-name.d.ts +3 -0
- package/dist/types/callout-filter-name.d.ts.map +1 -0
- package/dist/types/callout-filter-name.js +2 -0
- package/dist/types/callout-filter-name.js.map +1 -0
- package/dist/types/callout-map-schema-icon-styling-answer-icon-definition.d.ts +5 -0
- package/dist/types/callout-map-schema-icon-styling-answer-icon-definition.d.ts.map +1 -0
- package/dist/types/callout-map-schema-icon-styling-answer-icon-definition.js +2 -0
- package/dist/types/callout-map-schema-icon-styling-answer-icon-definition.js.map +1 -0
- package/dist/types/callout-map-schema-icon-styling-answer-icon.d.ts +6 -0
- package/dist/types/callout-map-schema-icon-styling-answer-icon.d.ts.map +1 -0
- package/dist/types/callout-map-schema-icon-styling-answer-icon.js +2 -0
- package/dist/types/callout-map-schema-icon-styling-answer-icon.js.map +1 -0
- package/dist/types/callout-map-schema-icon-styling-answer.d.ts +3 -0
- package/dist/types/callout-map-schema-icon-styling-answer.d.ts.map +1 -0
- package/dist/types/callout-map-schema-icon-styling-answer.js +2 -0
- package/dist/types/callout-map-schema-icon-styling-answer.js.map +1 -0
- package/dist/types/callout-map-schema-icon-styling.d.ts +3 -0
- package/dist/types/callout-map-schema-icon-styling.d.ts.map +1 -0
- package/dist/types/callout-map-schema-icon-styling.js +2 -0
- package/dist/types/callout-map-schema-icon-styling.js.map +1 -0
- package/dist/types/callout-map-schema.d.ts +21 -0
- package/dist/types/callout-map-schema.d.ts.map +1 -0
- package/dist/types/callout-map-schema.js +2 -0
- package/dist/types/callout-map-schema.js.map +1 -0
- package/dist/types/callout-newsletter-schema.d.ts +8 -0
- package/dist/types/callout-newsletter-schema.d.ts.map +1 -0
- package/dist/types/callout-newsletter-schema.js +2 -0
- package/dist/types/callout-newsletter-schema.js.map +1 -0
- package/dist/types/callout-response-answer-address.d.ts +18 -0
- package/dist/types/callout-response-answer-address.d.ts.map +1 -0
- package/dist/types/callout-response-answer-address.js +2 -0
- package/dist/types/callout-response-answer-address.js.map +1 -0
- package/dist/types/callout-response-answer-file-upload.d.ts +9 -0
- package/dist/types/callout-response-answer-file-upload.d.ts.map +1 -0
- package/dist/types/callout-response-answer-file-upload.js +2 -0
- package/dist/types/callout-response-answer-file-upload.js.map +1 -0
- package/dist/types/callout-response-answer.d.ts +3 -0
- package/dist/types/callout-response-answer.d.ts.map +1 -0
- package/dist/types/callout-response-answer.js +2 -0
- package/dist/types/callout-response-answer.js.map +1 -0
- package/dist/types/callout-response-answers-slide.d.ts +6 -0
- package/dist/types/callout-response-answers-slide.d.ts.map +1 -0
- package/dist/types/callout-response-answers-slide.js +2 -0
- package/dist/types/callout-response-answers-slide.js.map +1 -0
- package/dist/types/callout-response-answers.d.ts +6 -0
- package/dist/types/callout-response-answers.d.ts.map +1 -0
- package/dist/types/callout-response-answers.js +2 -0
- package/dist/types/callout-response-answers.js.map +1 -0
- package/dist/types/callout-response-comment-data.d.ts +5 -0
- package/dist/types/callout-response-comment-data.d.ts.map +1 -0
- package/dist/types/callout-response-comment-data.js +2 -0
- package/dist/types/callout-response-comment-data.js.map +1 -0
- package/dist/types/callout-response-comment-filter-name.d.ts +3 -0
- package/dist/types/callout-response-comment-filter-name.d.ts.map +1 -0
- package/dist/types/callout-response-comment-filter-name.js +2 -0
- package/dist/types/callout-response-comment-filter-name.js.map +1 -0
- package/dist/types/callout-response-filter-name.d.ts +3 -0
- package/dist/types/callout-response-filter-name.d.ts.map +1 -0
- package/dist/types/callout-response-filter-name.js +2 -0
- package/dist/types/callout-response-filter-name.js.map +1 -0
- package/dist/types/callout-response-guest-data.d.ts +6 -0
- package/dist/types/callout-response-guest-data.d.ts.map +1 -0
- package/dist/types/callout-response-guest-data.js +2 -0
- package/dist/types/callout-response-guest-data.js.map +1 -0
- package/dist/types/callout-response-newsletter-data.d.ts +5 -0
- package/dist/types/callout-response-newsletter-data.d.ts.map +1 -0
- package/dist/types/callout-response-newsletter-data.js +2 -0
- package/dist/types/callout-response-newsletter-data.js.map +1 -0
- package/dist/types/callout-response-view-schema.d.ts +14 -0
- package/dist/types/callout-response-view-schema.d.ts.map +1 -0
- package/dist/types/callout-response-view-schema.js +2 -0
- package/dist/types/callout-response-view-schema.js.map +1 -0
- package/dist/types/callout-reviewer-filter-name.d.ts +3 -0
- package/dist/types/callout-reviewer-filter-name.d.ts.map +1 -0
- package/dist/types/callout-reviewer-filter-name.js +2 -0
- package/dist/types/callout-reviewer-filter-name.js.map +1 -0
- package/dist/types/callout-tag-filter-name.d.ts +3 -0
- package/dist/types/callout-tag-filter-name.d.ts.map +1 -0
- package/dist/types/callout-tag-filter-name.js +2 -0
- package/dist/types/callout-tag-filter-name.js.map +1 -0
- package/dist/types/callout-variant-data.d.ts +20 -0
- package/dist/types/callout-variant-data.d.ts.map +1 -0
- package/dist/types/callout-variant-data.js +2 -0
- package/dist/types/callout-variant-data.js.map +1 -0
- package/dist/types/callout-variant-navigation-data.d.ts +6 -0
- package/dist/types/callout-variant-navigation-data.d.ts.map +1 -0
- package/dist/types/callout-variant-navigation-data.js +2 -0
- package/dist/types/callout-variant-navigation-data.js.map +1 -0
- package/dist/types/complete-signup-data.d.ts +7 -0
- package/dist/types/complete-signup-data.d.ts.map +1 -0
- package/dist/types/complete-signup-data.js +2 -0
- package/dist/types/complete-signup-data.js.map +1 -0
- package/dist/types/constants.d.ts +78 -0
- package/dist/types/contact-data.d.ts +7 -0
- package/dist/types/contact-data.d.ts.map +1 -0
- package/dist/types/contact-data.js +2 -0
- package/dist/types/contact-data.js.map +1 -0
- package/dist/types/contact-mfa-data.d.ts +9 -0
- package/dist/types/contact-mfa-data.d.ts.map +1 -0
- package/dist/types/contact-mfa-data.js +2 -0
- package/dist/types/contact-mfa-data.js.map +1 -0
- package/dist/types/contact-profile-data.d.ts +14 -0
- package/dist/types/contact-profile-data.d.ts.map +1 -0
- package/dist/types/contact-profile-data.js +2 -0
- package/dist/types/contact-profile-data.js.map +1 -0
- package/dist/types/contact-role-data.d.ts +6 -0
- package/dist/types/contact-role-data.d.ts.map +1 -0
- package/dist/types/contact-role-data.js +2 -0
- package/dist/types/contact-role-data.js.map +1 -0
- package/dist/types/contact-tag-filter-name.d.ts +3 -0
- package/dist/types/contact-tag-filter-name.d.ts.map +1 -0
- package/dist/types/contact-tag-filter-name.js +2 -0
- package/dist/types/contact-tag-filter-name.js.map +1 -0
- package/dist/types/content-contacts-data.d.ts +5 -0
- package/dist/types/content-contacts-data.d.ts.map +1 -0
- package/dist/types/content-contacts-data.js +2 -0
- package/dist/types/content-contacts-data.js.map +1 -0
- package/dist/types/content-data.d.ts +3 -0
- package/dist/types/content-data.d.ts.map +1 -0
- package/dist/types/content-data.js +2 -0
- package/dist/types/content-data.js.map +1 -0
- package/dist/types/content-email-data.d.ts +6 -0
- package/dist/types/content-email-data.d.ts.map +1 -0
- package/dist/types/content-email-data.js +2 -0
- package/dist/types/content-email-data.js.map +1 -0
- package/dist/types/content-general-data.d.ts +36 -0
- package/dist/types/content-general-data.d.ts.map +1 -0
- package/dist/types/content-general-data.js +2 -0
- package/dist/types/content-general-data.js.map +1 -0
- package/dist/types/content-id.d.ts +2 -0
- package/dist/types/content-id.d.ts.map +1 -0
- package/dist/types/content-id.js +2 -0
- package/dist/types/content-id.js.map +1 -0
- package/dist/types/content-join-data.d.ts +19 -0
- package/dist/types/content-join-data.d.ts.map +1 -0
- package/dist/types/content-join-data.js +2 -0
- package/dist/types/content-join-data.js.map +1 -0
- package/dist/types/content-join-period-data.d.ts +6 -0
- package/dist/types/content-join-period-data.d.ts.map +1 -0
- package/dist/types/content-join-period-data.js +2 -0
- package/dist/types/content-join-period-data.js.map +1 -0
- package/dist/types/content-join-setup-data.d.ts +17 -0
- package/dist/types/content-join-setup-data.d.ts.map +1 -0
- package/dist/types/content-join-setup-data.js +2 -0
- package/dist/types/content-join-setup-data.js.map +1 -0
- package/dist/types/content-payment-data.d.ts +10 -0
- package/dist/types/content-payment-data.d.ts.map +1 -0
- package/dist/types/content-payment-data.js +2 -0
- package/dist/types/content-payment-data.js.map +1 -0
- package/dist/types/content-profile-data.d.ts +4 -0
- package/dist/types/content-profile-data.d.ts.map +1 -0
- package/dist/types/content-profile-data.js +2 -0
- package/dist/types/content-profile-data.js.map +1 -0
- package/dist/types/content-share-data.d.ts +7 -0
- package/dist/types/content-share-data.d.ts.map +1 -0
- package/dist/types/content-share-data.js +2 -0
- package/dist/types/content-share-data.js.map +1 -0
- package/dist/types/content-telegram-data.d.ts +5 -0
- package/dist/types/content-telegram-data.d.ts.map +1 -0
- package/dist/types/content-telegram-data.js +2 -0
- package/dist/types/content-telegram-data.js.map +1 -0
- package/dist/types/contribution-info.d.ts +16 -0
- package/dist/types/contribution-info.d.ts.map +1 -0
- package/dist/types/contribution-info.js +2 -0
- package/dist/types/contribution-info.js.map +1 -0
- package/dist/types/create-api-key-data.d.ts +5 -0
- package/dist/types/create-api-key-data.d.ts.map +1 -0
- package/dist/types/create-api-key-data.js +2 -0
- package/dist/types/create-api-key-data.js.map +1 -0
- package/dist/types/create-callout-data.d.ts +6 -0
- package/dist/types/create-callout-data.d.ts.map +1 -0
- package/dist/types/create-callout-data.js +2 -0
- package/dist/types/create-callout-data.js.map +1 -0
- package/dist/types/create-callout-response-comment-data.d.ts +3 -0
- package/dist/types/create-callout-response-comment-data.d.ts.map +1 -0
- package/dist/types/create-callout-response-comment-data.js +2 -0
- package/dist/types/create-callout-response-comment-data.js.map +1 -0
- package/dist/types/create-callout-response-data.d.ts +11 -0
- package/dist/types/create-callout-response-data.d.ts.map +1 -0
- package/dist/types/create-callout-response-data.js +2 -0
- package/dist/types/create-callout-response-data.js.map +1 -0
- package/dist/types/create-callout-response-segment-data.d.ts +8 -0
- package/dist/types/create-callout-response-segment-data.d.ts.map +1 -0
- package/dist/types/create-callout-response-segment-data.js +2 -0
- package/dist/types/create-callout-response-segment-data.js.map +1 -0
- package/dist/types/create-callout-reviewer-data.d.ts +5 -0
- package/dist/types/create-callout-reviewer-data.d.ts.map +1 -0
- package/dist/types/create-callout-reviewer-data.js +2 -0
- package/dist/types/create-callout-reviewer-data.js.map +1 -0
- package/dist/types/create-callout-variant-data.d.ts +6 -0
- package/dist/types/create-callout-variant-data.d.ts.map +1 -0
- package/dist/types/create-callout-variant-data.js +2 -0
- package/dist/types/create-callout-variant-data.js.map +1 -0
- package/dist/types/create-contact-data.d.ts +9 -0
- package/dist/types/create-contact-data.d.ts.map +1 -0
- package/dist/types/create-contact-data.js +2 -0
- package/dist/types/create-contact-data.js.map +1 -0
- package/dist/types/create-contact-mfa-data.d.ts +7 -0
- package/dist/types/create-contact-mfa-data.d.ts.map +1 -0
- package/dist/types/create-contact-mfa-data.js +2 -0
- package/dist/types/create-contact-mfa-data.js.map +1 -0
- package/dist/types/create-email-data.d.ts +10 -0
- package/dist/types/create-email-data.d.ts.map +1 -0
- package/dist/types/create-email-data.js +2 -0
- package/dist/types/create-email-data.js.map +1 -0
- package/dist/types/create-notice-data.d.ts +3 -0
- package/dist/types/create-notice-data.d.ts.map +1 -0
- package/dist/types/create-notice-data.js +2 -0
- package/dist/types/create-notice-data.js.map +1 -0
- package/dist/types/create-payment-data.d.ts +8 -0
- package/dist/types/create-payment-data.d.ts.map +1 -0
- package/dist/types/create-payment-data.js +2 -0
- package/dist/types/create-payment-data.js.map +1 -0
- package/dist/types/create-reset-device-data.d.ts +8 -0
- package/dist/types/create-reset-device-data.d.ts.map +1 -0
- package/dist/types/create-reset-device-data.js +2 -0
- package/dist/types/create-reset-device-data.js.map +1 -0
- package/dist/types/create-reset-password-data.d.ts +5 -0
- package/dist/types/create-reset-password-data.d.ts.map +1 -0
- package/dist/types/create-reset-password-data.js +2 -0
- package/dist/types/create-reset-password-data.js.map +1 -0
- package/dist/types/create-segment-data.d.ts +7 -0
- package/dist/types/create-segment-data.d.ts.map +1 -0
- package/dist/types/create-segment-data.js +2 -0
- package/dist/types/create-segment-data.js.map +1 -0
- package/dist/types/data/api-error-code.d.ts +22 -0
- package/dist/types/data/callout-component-input-selectable-types.d.ts +2 -2
- package/dist/types/data/callout-component-input-text-types.d.ts +2 -2
- package/dist/types/data/callout-component-input-types.d.ts +2 -2
- package/dist/types/data/callout-component-nestable-types.d.ts +2 -2
- package/dist/types/data/callout-component-types.d.ts +1 -1
- package/dist/types/data/contact-mfa-type.d.ts +6 -0
- package/dist/types/data/content-ids.d.ts +1 -1
- package/dist/types/data/get-callout-response-with.d.ts +8 -0
- package/dist/types/data/get-contact-with.d.ts +7 -0
- package/dist/types/data/index.d.ts +27 -18
- package/dist/types/data/login-codes.d.ts +13 -0
- package/dist/types/data/payment-method.d.ts +1 -2
- package/dist/types/data/payment-type.d.ts +6 -0
- package/dist/types/data/reset-security-flow-error-code.d.ts +8 -0
- package/dist/types/data/reset-security-flow-type.d.ts +7 -0
- package/dist/types/data/role-type-data.d.ts +5 -0
- package/dist/types/date-unit.d.ts +3 -0
- package/dist/types/date-unit.d.ts.map +1 -0
- package/dist/types/date-unit.js +2 -0
- package/dist/types/date-unit.js.map +1 -0
- package/dist/types/delete-contact-mfa-data.d.ts +6 -0
- package/dist/types/delete-contact-mfa-data.d.ts.map +1 -0
- package/dist/types/delete-contact-mfa-data.js +2 -0
- package/dist/types/delete-contact-mfa-data.js.map +1 -0
- package/dist/types/duration.d.ts +2 -0
- package/dist/types/duration.d.ts.map +1 -0
- package/dist/types/duration.js +2 -0
- package/dist/types/duration.js.map +1 -0
- package/dist/types/email-filter-name.d.ts +3 -0
- package/dist/types/email-filter-name.d.ts.map +1 -0
- package/dist/types/email-filter-name.js +2 -0
- package/dist/types/email-filter-name.js.map +1 -0
- package/dist/types/email-preview-data.d.ts +9 -0
- package/dist/types/email-preview-data.d.ts.map +1 -0
- package/dist/types/email-preview-data.js +2 -0
- package/dist/types/email-preview-data.js.map +1 -0
- package/dist/types/email-template-type.d.ts +2 -0
- package/dist/types/email-template-type.d.ts.map +1 -0
- package/dist/types/email-template-type.js +2 -0
- package/dist/types/email-template-type.js.map +1 -0
- package/dist/types/enum-filter-args.d.ts +6 -0
- package/dist/types/enum-filter-args.d.ts.map +1 -0
- package/dist/types/enum-filter-args.js +2 -0
- package/dist/types/enum-filter-args.js.map +1 -0
- package/dist/types/error/InvalidRule.d.ts +1 -1
- package/dist/types/error/index.d.ts +1 -1
- package/dist/types/feeable.d.ts +8 -0
- package/dist/types/feeable.d.ts.map +1 -0
- package/dist/types/feeable.js +2 -0
- package/dist/types/feeable.js.map +1 -0
- package/dist/types/filter-args.d.ts +3 -0
- package/dist/types/filter-args.d.ts.map +1 -0
- package/dist/types/filter-args.js +2 -0
- package/dist/types/filter-args.js.map +1 -0
- package/dist/types/filter-type.d.ts +2 -0
- package/dist/types/filter-type.d.ts.map +1 -0
- package/dist/types/filter-type.js +2 -0
- package/dist/types/filter-type.js.map +1 -0
- package/dist/types/filters.d.ts +3 -0
- package/dist/types/filters.d.ts.map +1 -0
- package/dist/types/filters.js +2 -0
- package/dist/types/filters.js.map +1 -0
- package/dist/types/footer-link.d.ts +5 -0
- package/dist/types/footer-link.d.ts.map +1 -0
- package/dist/types/footer-link.js +2 -0
- package/dist/types/footer-link.js.map +1 -0
- package/dist/types/force-update-contribution-data.d.ts +9 -0
- package/dist/types/force-update-contribution-data.d.ts.map +1 -0
- package/dist/types/force-update-contribution-data.js +2 -0
- package/dist/types/force-update-contribution-data.js.map +1 -0
- package/dist/types/formio-file.d.ts +14 -0
- package/dist/types/formio-file.d.ts.map +1 -0
- package/dist/types/formio-file.js +2 -0
- package/dist/types/formio-file.js.map +1 -0
- package/dist/types/get-api-key-data.d.ts +9 -0
- package/dist/types/get-api-key-data.d.ts.map +1 -0
- package/dist/types/get-api-key-data.js +2 -0
- package/dist/types/get-api-key-data.js.map +1 -0
- package/dist/types/get-api-keys-query.d.ts +3 -0
- package/dist/types/get-api-keys-query.d.ts.map +1 -0
- package/dist/types/get-api-keys-query.js +2 -0
- package/dist/types/get-api-keys-query.js.map +1 -0
- package/dist/types/get-callout-data-with.d.ts +13 -0
- package/dist/types/get-callout-data-with.d.ts.map +1 -0
- package/dist/types/get-callout-data-with.js +2 -0
- package/dist/types/get-callout-data-with.js.map +1 -0
- package/dist/types/get-callout-data.d.ts +10 -0
- package/dist/types/get-callout-data.d.ts.map +1 -0
- package/dist/types/get-callout-data.js +2 -0
- package/dist/types/get-callout-data.js.map +1 -0
- package/dist/types/get-callout-form-data.d.ts +11 -0
- package/dist/types/get-callout-form-data.d.ts.map +1 -0
- package/dist/types/get-callout-form-data.js +2 -0
- package/dist/types/get-callout-form-data.js.map +1 -0
- package/dist/types/get-callout-form-schema.d.ts +6 -0
- package/dist/types/get-callout-form-schema.d.ts.map +1 -0
- package/dist/types/get-callout-form-schema.js +2 -0
- package/dist/types/get-callout-form-schema.js.map +1 -0
- package/dist/types/get-callout-navigation-schema.d.ts +7 -0
- package/dist/types/get-callout-navigation-schema.d.ts.map +1 -0
- package/dist/types/get-callout-navigation-schema.js +2 -0
- package/dist/types/get-callout-navigation-schema.js.map +1 -0
- package/dist/types/get-callout-response-comment-data.d.ts +8 -0
- package/dist/types/get-callout-response-comment-data.d.ts.map +1 -0
- package/dist/types/get-callout-response-comment-data.js +2 -0
- package/dist/types/get-callout-response-comment-data.js.map +1 -0
- package/dist/types/get-callout-response-comments-query.d.ts +3 -0
- package/dist/types/get-callout-response-comments-query.d.ts.map +1 -0
- package/dist/types/get-callout-response-comments-query.js +2 -0
- package/dist/types/get-callout-response-comments-query.js.map +1 -0
- package/dist/types/get-callout-response-data-with.d.ts +19 -0
- package/dist/types/get-callout-response-data-with.d.ts.map +1 -0
- package/dist/types/get-callout-response-data-with.js +2 -0
- package/dist/types/get-callout-response-data-with.js.map +1 -0
- package/dist/types/get-callout-response-data.d.ts +10 -0
- package/dist/types/get-callout-response-data.d.ts.map +1 -0
- package/dist/types/get-callout-response-data.js +2 -0
- package/dist/types/get-callout-response-data.js.map +1 -0
- package/dist/types/get-callout-response-map-data.d.ts +9 -0
- package/dist/types/get-callout-response-map-data.d.ts.map +1 -0
- package/dist/types/get-callout-response-map-data.js +2 -0
- package/dist/types/get-callout-response-map-data.js.map +1 -0
- package/dist/types/get-callout-responses-query.d.ts +3 -0
- package/dist/types/get-callout-responses-query.d.ts.map +1 -0
- package/dist/types/get-callout-responses-query.js +2 -0
- package/dist/types/get-callout-responses-query.js.map +1 -0
- package/dist/types/get-callout-reviewer-data.d.ts +7 -0
- package/dist/types/get-callout-reviewer-data.d.ts.map +1 -0
- package/dist/types/get-callout-reviewer-data.js +2 -0
- package/dist/types/get-callout-reviewer-data.js.map +1 -0
- package/dist/types/get-callout-slide-schema.d.ts +5 -0
- package/dist/types/get-callout-slide-schema.d.ts.map +1 -0
- package/dist/types/get-callout-slide-schema.js +2 -0
- package/dist/types/get-callout-slide-schema.js.map +1 -0
- package/dist/types/get-callout-with.d.ts +2 -0
- package/dist/types/get-callout-with.d.ts.map +1 -0
- package/dist/types/get-callout-with.js +2 -0
- package/dist/types/get-callout-with.js.map +1 -0
- package/dist/types/get-callouts-query.d.ts +3 -0
- package/dist/types/get-callouts-query.d.ts.map +1 -0
- package/dist/types/get-callouts-query.js +2 -0
- package/dist/types/get-callouts-query.js.map +1 -0
- package/dist/types/get-contact-data-with.d.ts +17 -0
- package/dist/types/get-contact-data-with.d.ts.map +1 -0
- package/dist/types/get-contact-data-with.js +2 -0
- package/dist/types/get-contact-data-with.js.map +1 -0
- package/dist/types/get-contact-data.d.ts +11 -0
- package/dist/types/get-contact-data.d.ts.map +1 -0
- package/dist/types/get-contact-data.js +2 -0
- package/dist/types/get-contact-data.js.map +1 -0
- package/dist/types/get-contact-mfa-data.d.ts +3 -0
- package/dist/types/get-contact-mfa-data.d.ts.map +1 -0
- package/dist/types/get-contact-mfa-data.js +2 -0
- package/dist/types/get-contact-mfa-data.js.map +1 -0
- package/dist/types/get-contacts-query.d.ts +3 -0
- package/dist/types/get-contacts-query.d.ts.map +1 -0
- package/dist/types/get-contacts-query.js +2 -0
- package/dist/types/get-contacts-query.js.map +1 -0
- package/dist/types/get-email-data.d.ts +28 -0
- package/dist/types/get-email-data.d.ts.map +1 -0
- package/dist/types/get-email-data.js +2 -0
- package/dist/types/get-email-data.js.map +1 -0
- package/dist/types/get-email-template-info-data.d.ts +16 -0
- package/dist/types/get-email-template-info-data.d.ts.map +1 -0
- package/dist/types/get-email-template-info-data.js +2 -0
- package/dist/types/get-email-template-info-data.js.map +1 -0
- package/dist/types/get-notice-data.d.ts +9 -0
- package/dist/types/get-notice-data.d.ts.map +1 -0
- package/dist/types/get-notice-data.js +2 -0
- package/dist/types/get-notice-data.js.map +1 -0
- package/dist/types/get-notices-query.d.ts +3 -0
- package/dist/types/get-notices-query.d.ts.map +1 -0
- package/dist/types/get-notices-query.js +2 -0
- package/dist/types/get-notices-query.js.map +1 -0
- package/dist/types/get-payment-aggregation-data.d.ts +5 -0
- package/dist/types/get-payment-aggregation-data.d.ts.map +1 -0
- package/dist/types/get-payment-aggregation-data.js +2 -0
- package/dist/types/get-payment-aggregation-data.js.map +1 -0
- package/dist/types/get-payment-data-with.d.ts +5 -0
- package/dist/types/get-payment-data-with.d.ts.map +1 -0
- package/dist/types/get-payment-data-with.js +2 -0
- package/dist/types/get-payment-data-with.js.map +1 -0
- package/dist/types/get-payment-data.d.ts +9 -0
- package/dist/types/get-payment-data.d.ts.map +1 -0
- package/dist/types/get-payment-data.js +2 -0
- package/dist/types/get-payment-data.js.map +1 -0
- package/dist/types/get-payment-with.d.ts +2 -0
- package/dist/types/get-payment-with.d.ts.map +1 -0
- package/dist/types/get-payment-with.js +2 -0
- package/dist/types/get-payment-with.js.map +1 -0
- package/dist/types/get-payments-aggregation-query.d.ts +5 -0
- package/dist/types/get-payments-aggregation-query.d.ts.map +1 -0
- package/dist/types/get-payments-aggregation-query.js +2 -0
- package/dist/types/get-payments-aggregation-query.js.map +1 -0
- package/dist/types/get-payments-query.d.ts +3 -0
- package/dist/types/get-payments-query.d.ts.map +1 -0
- package/dist/types/get-payments-query.js +2 -0
- package/dist/types/get-payments-query.js.map +1 -0
- package/dist/types/get-segment-data-with.d.ts +5 -0
- package/dist/types/get-segment-data-with.d.ts.map +1 -0
- package/dist/types/get-segment-data-with.js +2 -0
- package/dist/types/get-segment-data-with.js.map +1 -0
- package/dist/types/get-segment-data.d.ts +8 -0
- package/dist/types/get-segment-data.d.ts.map +1 -0
- package/dist/types/get-segment-data.js +2 -0
- package/dist/types/get-segment-data.js.map +1 -0
- package/dist/types/get-segment-with.d.ts +2 -0
- package/dist/types/get-segment-with.d.ts.map +1 -0
- package/dist/types/get-segment-with.js +2 -0
- package/dist/types/get-segment-with.js.map +1 -0
- package/dist/types/get-segments-query.d.ts +3 -0
- package/dist/types/get-segments-query.d.ts.map +1 -0
- package/dist/types/get-segments-query.js +2 -0
- package/dist/types/get-segments-query.js.map +1 -0
- package/dist/types/get-stats-data.d.ts +6 -0
- package/dist/types/get-stats-data.d.ts.map +1 -0
- package/dist/types/get-stats-data.js +2 -0
- package/dist/types/get-stats-data.js.map +1 -0
- package/dist/types/get-stats-query.d.ts +5 -0
- package/dist/types/get-stats-query.d.ts.map +1 -0
- package/dist/types/get-stats-query.js +2 -0
- package/dist/types/get-stats-query.js.map +1 -0
- package/dist/types/health-check-data.d.ts +11 -0
- package/dist/types/health-check-data.d.ts.map +1 -0
- package/dist/types/health-check-data.js +2 -0
- package/dist/types/health-check-data.js.map +1 -0
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +236 -6
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/list-emails-query.d.ts +3 -0
- package/dist/types/list-emails-query.d.ts.map +1 -0
- package/dist/types/list-emails-query.js +2 -0
- package/dist/types/list-emails-query.js.map +1 -0
- package/dist/types/login-data.d.ts +7 -0
- package/dist/types/login-data.d.ts.map +1 -0
- package/dist/types/login-data.js +2 -0
- package/dist/types/login-data.js.map +1 -0
- package/dist/types/newsletter-group-data.d.ts +6 -0
- package/dist/types/newsletter-group-data.d.ts.map +1 -0
- package/dist/types/newsletter-group-data.js +2 -0
- package/dist/types/newsletter-group-data.js.map +1 -0
- package/dist/types/noop.d.ts +6 -0
- package/dist/types/noop.d.ts.map +1 -0
- package/dist/types/noop.js +2 -0
- package/dist/types/noop.js.map +1 -0
- package/dist/types/notice-data.d.ts +9 -0
- package/dist/types/notice-data.d.ts.map +1 -0
- package/dist/types/notice-data.js +2 -0
- package/dist/types/notice-data.js.map +1 -0
- package/dist/types/notice-filter-name.d.ts +3 -0
- package/dist/types/notice-filter-name.d.ts.map +1 -0
- package/dist/types/notice-filter-name.js +2 -0
- package/dist/types/notice-filter-name.js.map +1 -0
- package/dist/types/ongoing-email-fields.d.ts +11 -0
- package/dist/types/ongoing-email-fields.d.ts.map +1 -0
- package/dist/types/ongoing-email-fields.js +2 -0
- package/dist/types/ongoing-email-fields.js.map +1 -0
- package/dist/types/operators-by-type.d.ts +3 -0
- package/dist/types/operators-by-type.d.ts.map +1 -0
- package/dist/types/operators-by-type.js +2 -0
- package/dist/types/operators-by-type.js.map +1 -0
- package/dist/types/other-filter-args.d.ts +5 -0
- package/dist/types/other-filter-args.d.ts.map +1 -0
- package/dist/types/other-filter-args.js +2 -0
- package/dist/types/other-filter-args.js.map +1 -0
- package/dist/types/paginated-query.d.ts +9 -0
- package/dist/types/paginated-query.d.ts.map +1 -0
- package/dist/types/paginated-query.js +2 -0
- package/dist/types/paginated-query.js.map +1 -0
- package/dist/types/paginated.d.ts +7 -0
- package/dist/types/paginated.d.ts.map +1 -0
- package/dist/types/paginated.js +2 -0
- package/dist/types/paginated.js.map +1 -0
- package/dist/types/parse-iso-options.d.ts +8 -0
- package/dist/types/parse-iso-options.d.ts.map +1 -0
- package/dist/types/parse-iso-options.js +2 -0
- package/dist/types/parse-iso-options.js.map +1 -0
- package/dist/types/payment-filter-name.d.ts +3 -0
- package/dist/types/payment-filter-name.d.ts.map +1 -0
- package/dist/types/payment-filter-name.js +2 -0
- package/dist/types/payment-filter-name.js.map +1 -0
- package/dist/types/payment-flow-params.d.ts +14 -0
- package/dist/types/payment-flow-params.d.ts.map +1 -0
- package/dist/types/payment-flow-params.js +2 -0
- package/dist/types/payment-flow-params.js.map +1 -0
- package/dist/types/payment-flow-result.d.ts +5 -0
- package/dist/types/payment-flow-result.d.ts.map +1 -0
- package/dist/types/payment-flow-result.js +2 -0
- package/dist/types/payment-flow-result.js.map +1 -0
- package/dist/types/payment-period.d.ts +3 -0
- package/dist/types/payment-period.d.ts.map +1 -0
- package/dist/types/payment-period.js +2 -0
- package/dist/types/payment-period.js.map +1 -0
- package/dist/types/payment-source-base.d.ts +5 -0
- package/dist/types/payment-source-base.d.ts.map +1 -0
- package/dist/types/payment-source-base.js +2 -0
- package/dist/types/payment-source-base.js.map +1 -0
- package/dist/types/payment-source-go-cardless-direct-debit.d.ts +9 -0
- package/dist/types/payment-source-go-cardless-direct-debit.d.ts.map +1 -0
- package/dist/types/payment-source-go-cardless-direct-debit.js +2 -0
- package/dist/types/payment-source-go-cardless-direct-debit.js.map +1 -0
- package/dist/types/payment-source-manual.d.ts +7 -0
- package/dist/types/payment-source-manual.d.ts.map +1 -0
- package/dist/types/payment-source-manual.js +2 -0
- package/dist/types/payment-source-manual.js.map +1 -0
- package/dist/types/payment-source-stripe-bacs.d.ts +8 -0
- package/dist/types/payment-source-stripe-bacs.d.ts.map +1 -0
- package/dist/types/payment-source-stripe-bacs.js +2 -0
- package/dist/types/payment-source-stripe-bacs.js.map +1 -0
- package/dist/types/payment-source-stripe-card.d.ts +16 -0
- package/dist/types/payment-source-stripe-card.d.ts.map +1 -0
- package/dist/types/payment-source-stripe-card.js +2 -0
- package/dist/types/payment-source-stripe-card.js.map +1 -0
- package/dist/types/payment-source-stripe-paypal.d.ts +8 -0
- package/dist/types/payment-source-stripe-paypal.d.ts.map +1 -0
- package/dist/types/payment-source-stripe-paypal.js +2 -0
- package/dist/types/payment-source-stripe-paypal.js.map +1 -0
- package/dist/types/payment-source-stripe-sepa.d.ts +10 -0
- package/dist/types/payment-source-stripe-sepa.d.ts.map +1 -0
- package/dist/types/payment-source-stripe-sepa.js +2 -0
- package/dist/types/payment-source-stripe-sepa.js.map +1 -0
- package/dist/types/payment-source.d.ts +3 -0
- package/dist/types/payment-source.d.ts.map +1 -0
- package/dist/types/payment-source.js +2 -0
- package/dist/types/payment-source.js.map +1 -0
- package/dist/types/role-type.d.ts +3 -0
- package/dist/types/role-type.d.ts.map +1 -0
- package/dist/types/role-type.js +2 -0
- package/dist/types/role-type.js.map +1 -0
- package/dist/types/rule-group.d.ts +6 -0
- package/dist/types/rule-group.d.ts.map +1 -0
- package/dist/types/rule-group.js +2 -0
- package/dist/types/rule-group.js.map +1 -0
- package/dist/types/rule-operator.d.ts +3 -0
- package/dist/types/rule-operator.d.ts.map +1 -0
- package/dist/types/rule-operator.js +2 -0
- package/dist/types/rule-operator.js.map +1 -0
- package/dist/types/rule-opperator-params.d.ts +4 -0
- package/dist/types/rule-opperator-params.d.ts.map +1 -0
- package/dist/types/rule-opperator-params.js +2 -0
- package/dist/types/rule-opperator-params.js.map +1 -0
- package/dist/types/rule-value.d.ts +2 -0
- package/dist/types/rule-value.d.ts.map +1 -0
- package/dist/types/rule-value.js +2 -0
- package/dist/types/rule-value.js.map +1 -0
- package/dist/types/rule.d.ts +7 -0
- package/dist/types/rule.d.ts.map +1 -0
- package/dist/types/rule.js +2 -0
- package/dist/types/rule.js.map +1 -0
- package/dist/types/s3-metadata.d.ts +15 -0
- package/dist/types/s3-metadata.d.ts.map +1 -0
- package/dist/types/s3-metadata.js +2 -0
- package/dist/types/s3-metadata.js.map +1 -0
- package/dist/types/search/callouts.d.ts +30 -3
- package/dist/types/search/contacts.d.ts +37 -6
- package/dist/types/search/emails.d.ts +29 -0
- package/dist/types/search/index.d.ts +9 -7
- package/dist/types/search/notices.d.ts +2 -2
- package/dist/types/search/operators.d.ts +65 -118
- package/dist/types/search/payments.d.ts +7 -2
- package/dist/types/search/tags.d.ts +12 -0
- package/dist/types/segment-filter-name.d.ts +3 -0
- package/dist/types/segment-filter-name.d.ts.map +1 -0
- package/dist/types/segment-filter-name.js +2 -0
- package/dist/types/segment-filter-name.js.map +1 -0
- package/dist/types/segment-ongoing-email-trigger.d.ts +7 -0
- package/dist/types/segment-ongoing-email-trigger.d.ts.map +1 -0
- package/dist/types/segment-ongoing-email-trigger.js +2 -0
- package/dist/types/segment-ongoing-email-trigger.js.map +1 -0
- package/dist/types/serial.d.ts +4 -0
- package/dist/types/serial.d.ts.map +1 -0
- package/dist/types/serial.js +2 -0
- package/dist/types/serial.js.map +1 -0
- package/dist/types/set-callout-form-schema.d.ts +5 -0
- package/dist/types/set-callout-form-schema.d.ts.map +1 -0
- package/dist/types/set-callout-form-schema.js +2 -0
- package/dist/types/set-callout-form-schema.js.map +1 -0
- package/dist/types/set-callout-navigation-schema.d.ts +4 -0
- package/dist/types/set-callout-navigation-schema.d.ts.map +1 -0
- package/dist/types/set-callout-navigation-schema.js +2 -0
- package/dist/types/set-callout-navigation-schema.js.map +1 -0
- package/dist/types/set-callout-slide-schema.d.ts +8 -0
- package/dist/types/set-callout-slide-schema.d.ts.map +1 -0
- package/dist/types/set-callout-slide-schema.js +2 -0
- package/dist/types/set-callout-slide-schema.js.map +1 -0
- package/dist/types/set-contribution-data.d.ts +8 -0
- package/dist/types/set-contribution-data.d.ts.map +1 -0
- package/dist/types/set-contribution-data.js +2 -0
- package/dist/types/set-contribution-data.js.map +1 -0
- package/dist/types/signup-data.d.ts +7 -0
- package/dist/types/signup-data.d.ts.map +1 -0
- package/dist/types/signup-data.js +2 -0
- package/dist/types/signup-data.js.map +1 -0
- package/dist/types/start-contribution-data.d.ts +7 -0
- package/dist/types/start-contribution-data.d.ts.map +1 -0
- package/dist/types/start-contribution-data.js +2 -0
- package/dist/types/start-contribution-data.js.map +1 -0
- package/dist/types/stripe-fee-country.d.ts +2 -0
- package/dist/types/stripe-fee-country.d.ts.map +1 -0
- package/dist/types/stripe-fee-country.js +2 -0
- package/dist/types/stripe-fee-country.js.map +1 -0
- package/dist/types/tag-create-data.d.ts +3 -0
- package/dist/types/tag-create-data.d.ts.map +1 -0
- package/dist/types/tag-create-data.js +2 -0
- package/dist/types/tag-create-data.js.map +1 -0
- package/dist/types/tag-data.d.ts +6 -0
- package/dist/types/tag-data.d.ts.map +1 -0
- package/dist/types/tag-data.js +2 -0
- package/dist/types/tag-data.js.map +1 -0
- package/dist/types/tag-get-data.d.ts +3 -0
- package/dist/types/tag-get-data.d.ts.map +1 -0
- package/dist/types/tag-get-data.js +2 -0
- package/dist/types/tag-get-data.js.map +1 -0
- package/dist/types/tag-update-data.d.ts +3 -0
- package/dist/types/tag-update-data.d.ts.map +1 -0
- package/dist/types/tag-update-data.js +2 -0
- package/dist/types/tag-update-data.js.map +1 -0
- package/dist/types/text-case.d.ts +2 -0
- package/dist/types/text-case.d.ts.map +1 -0
- package/dist/types/text-case.js +2 -0
- package/dist/types/text-case.js.map +1 -0
- package/dist/types/types/api-error-data.d.ts +111 -0
- package/dist/types/types/api-key-filter-name.d.ts +1 -1
- package/dist/types/types/array-filter-args.d.ts +2 -2
- package/dist/types/types/auth-info-data.d.ts +24 -0
- package/dist/types/types/base-filter-args.d.ts +1 -1
- package/dist/types/types/base-validated-rule.d.ts +2 -2
- package/dist/types/types/callout-channel-filter-name.d.ts +1 -1
- package/dist/types/types/callout-component-base-input-schema.d.ts +2 -2
- package/dist/types/types/callout-component-base-input-selectable-schema.d.ts +2 -2
- package/dist/types/types/callout-component-base-input-text-schema.d.ts +2 -2
- package/dist/types/types/callout-component-base-map.d.ts +2 -2
- package/dist/types/types/callout-component-base-nestable-schema.d.ts +2 -2
- package/dist/types/types/callout-component-base-schema.d.ts +2 -2
- package/dist/types/types/callout-component-content-schema.d.ts +2 -2
- package/dist/types/types/callout-component-input-address-rules.d.ts +1 -1
- package/dist/types/types/callout-component-input-address-schema.d.ts +2 -2
- package/dist/types/types/callout-component-input-checkbox-rules.d.ts +1 -1
- package/dist/types/types/callout-component-input-checkbox-schema.d.ts +2 -2
- package/dist/types/types/callout-component-input-currency-rules.d.ts +1 -1
- package/dist/types/types/callout-component-input-currency-schema.d.ts +2 -2
- package/dist/types/types/callout-component-input-date-time-rules.d.ts +1 -1
- package/dist/types/types/callout-component-input-date-time-schema.d.ts +3 -3
- package/dist/types/types/callout-component-input-email-rules.d.ts +1 -1
- package/dist/types/types/callout-component-input-email-schema.d.ts +2 -2
- package/dist/types/types/callout-component-input-file-rules.d.ts +1 -1
- package/dist/types/types/callout-component-input-file-schema.d.ts +2 -2
- package/dist/types/types/callout-component-input-number-rules.d.ts +2 -2
- package/dist/types/types/callout-component-input-number-schema.d.ts +2 -2
- package/dist/types/types/callout-component-input-phone-number-rules.d.ts +1 -1
- package/dist/types/types/callout-component-input-phone-number-schema.d.ts +2 -2
- package/dist/types/types/callout-component-input-schema.d.ts +1 -1
- package/dist/types/types/callout-component-input-select-rules.d.ts +1 -1
- package/dist/types/types/callout-component-input-select-schema.d.ts +2 -2
- package/dist/types/types/callout-component-input-selectable-radio-rules.d.ts +1 -1
- package/dist/types/types/callout-component-input-selectable-radio-schema.d.ts +2 -2
- package/dist/types/types/callout-component-input-selectable-schema.d.ts +1 -1
- package/dist/types/types/callout-component-input-selectable-selectboxes-rules.d.ts +1 -1
- package/dist/types/types/callout-component-input-selectable-selectboxes-schema.d.ts +2 -2
- package/dist/types/types/callout-component-input-signature-rules.d.ts +1 -1
- package/dist/types/types/callout-component-input-signature-schema.d.ts +2 -2
- package/dist/types/types/callout-component-input-text-area-schema.d.ts +2 -2
- package/dist/types/types/callout-component-input-text-field-schema.d.ts +2 -2
- package/dist/types/types/callout-component-input-text-rules.d.ts +1 -1
- package/dist/types/types/callout-component-input-text-schema.d.ts +1 -1
- package/dist/types/types/callout-component-input-time-rules.d.ts +1 -1
- package/dist/types/types/callout-component-input-time-schema.d.ts +2 -2
- package/dist/types/types/callout-component-input-url-rules.d.ts +1 -1
- package/dist/types/types/callout-component-input-url-schema.d.ts +2 -2
- package/dist/types/types/callout-component-map.d.ts +2 -2
- package/dist/types/types/callout-component-nestable-panel-schema.d.ts +2 -2
- package/dist/types/types/callout-component-nestable-schema.d.ts +1 -1
- package/dist/types/types/callout-component-nestable-tabs-schema.d.ts +2 -2
- package/dist/types/types/callout-component-nestable-well-schema.d.ts +2 -2
- package/dist/types/types/callout-component-schema.d.ts +1 -1
- package/dist/types/types/callout-data.d.ts +4 -2
- package/dist/types/types/callout-filter-name.d.ts +1 -1
- package/dist/types/types/callout-map-schema-icon-styling-answer-icon-definition.d.ts +4 -0
- package/dist/types/types/callout-map-schema-icon-styling-answer-icon.d.ts +5 -0
- package/dist/types/types/callout-map-schema-icon-styling-answer.d.ts +2 -0
- package/dist/types/types/callout-map-schema-icon-styling.d.ts +2 -0
- package/dist/types/types/callout-map-schema.d.ts +9 -0
- package/dist/types/types/callout-newsletter-schema.d.ts +7 -0
- package/dist/types/types/callout-response-answer-address.d.ts +8 -0
- package/dist/types/types/callout-response-answer-file-upload.d.ts +5 -0
- package/dist/types/types/callout-response-answer.d.ts +1 -1
- package/dist/types/types/callout-response-answers-slide.d.ts +1 -1
- package/dist/types/types/callout-response-answers.d.ts +1 -1
- package/dist/types/types/callout-response-comment-data.d.ts +1 -1
- package/dist/types/types/callout-response-comment-filter-name.d.ts +1 -1
- package/dist/types/types/callout-response-filter-name.d.ts +1 -1
- package/dist/types/types/callout-response-guest-data.d.ts +5 -0
- package/dist/types/types/callout-response-newsletter-data.d.ts +4 -0
- package/dist/types/types/callout-response-view-schema.d.ts +1 -1
- package/dist/types/types/callout-reviewer-filter-name.d.ts +2 -0
- package/dist/types/types/callout-tag-filter-name.d.ts +1 -1
- package/dist/types/types/callout-variant-data.d.ts +7 -1
- package/dist/types/types/complete-signup-data.d.ts +6 -0
- package/dist/types/types/contact-mfa-data.d.ts +8 -0
- package/dist/types/types/contact-profile-data.d.ts +2 -3
- package/dist/types/types/contact-role-data.d.ts +2 -1
- package/dist/types/types/contact-tag-filter-name.d.ts +2 -0
- package/dist/types/types/content-data.d.ts +2 -2
- package/dist/types/types/content-general-data.d.ts +19 -2
- package/dist/types/types/content-id.d.ts +1 -1
- package/dist/types/types/content-join-data.d.ts +3 -3
- package/dist/types/types/content-join-period-data.d.ts +2 -2
- package/dist/types/types/content-join-setup-data.d.ts +2 -0
- package/dist/types/types/content-payment-data.d.ts +5 -3
- package/dist/types/types/contribution-info.d.ts +2 -2
- package/dist/types/types/create-callout-data.d.ts +2 -2
- package/dist/types/types/create-callout-response-comment-data.d.ts +1 -1
- package/dist/types/types/create-callout-response-data.d.ts +4 -3
- package/dist/types/types/create-callout-response-segment-data.d.ts +7 -0
- package/dist/types/types/create-callout-reviewer-data.d.ts +4 -0
- package/dist/types/types/create-callout-variant-data.d.ts +5 -0
- package/dist/types/types/create-contact-data.d.ts +1 -1
- package/dist/types/types/create-contact-mfa-data.d.ts +6 -0
- package/dist/types/types/create-email-data.d.ts +9 -0
- package/dist/types/types/create-notice-data.d.ts +1 -1
- package/dist/types/types/create-payment-data.d.ts +7 -0
- package/dist/types/types/create-reset-device-data.d.ts +7 -0
- package/dist/types/types/create-reset-password-data.d.ts +4 -0
- package/dist/types/types/create-segment-data.d.ts +1 -1
- package/dist/types/types/date-unit.d.ts +1 -1
- package/dist/types/types/delete-contact-mfa-data.d.ts +5 -0
- package/dist/types/types/duration.d.ts +1 -1
- package/dist/types/types/email-filter-name.d.ts +2 -0
- package/dist/types/types/email-preview-data.d.ts +8 -0
- package/dist/types/types/email-template-type.d.ts +1 -0
- package/dist/types/types/enum-filter-args.d.ts +2 -2
- package/dist/types/types/feeable.d.ts +3 -2
- package/dist/types/types/filter-args.d.ts +1 -1
- package/dist/types/types/filter-type.d.ts +1 -1
- package/dist/types/types/filters.d.ts +1 -1
- package/dist/types/types/force-update-contribution-data.d.ts +1 -1
- package/dist/types/types/formio-file.d.ts +13 -0
- package/dist/types/types/get-api-key-data.d.ts +1 -1
- package/dist/types/types/get-api-keys-query.d.ts +1 -1
- package/dist/types/types/get-callout-data-with.d.ts +9 -5
- package/dist/types/types/get-callout-data.d.ts +2 -2
- package/dist/types/types/get-callout-form-data.d.ts +1 -1
- package/dist/types/types/get-callout-form-schema.d.ts +1 -1
- package/dist/types/types/get-callout-navigation-schema.d.ts +1 -1
- package/dist/types/types/get-callout-response-comment-data.d.ts +1 -1
- package/dist/types/types/get-callout-response-comments-query.d.ts +1 -1
- package/dist/types/types/get-callout-response-data-with.d.ts +9 -8
- package/dist/types/types/get-callout-response-map-data.d.ts +2 -2
- package/dist/types/types/get-callout-responses-query.d.ts +1 -1
- package/dist/types/types/get-callout-reviewer-data.d.ts +6 -0
- package/dist/types/types/get-callout-slide-schema.d.ts +1 -1
- package/dist/types/types/get-callout-with.d.ts +1 -1
- package/dist/types/types/get-callouts-query.d.ts +1 -1
- package/dist/types/types/get-contact-data-with.d.ts +12 -4
- package/dist/types/types/get-contact-data.d.ts +2 -2
- package/dist/types/types/get-contact-mfa-data.d.ts +2 -0
- package/dist/types/types/get-contacts-query.d.ts +1 -1
- package/dist/types/types/get-email-data.d.ts +23 -0
- package/dist/types/types/get-email-template-info-data.d.ts +15 -0
- package/dist/types/types/get-notice-data.d.ts +2 -2
- package/dist/types/types/get-notices-query.d.ts +1 -1
- package/dist/types/types/get-payment-aggregation-data.d.ts +4 -0
- package/dist/types/types/get-payment-data-with.d.ts +2 -2
- package/dist/types/types/get-payment-data.d.ts +3 -1
- package/dist/types/types/get-payment-with.d.ts +1 -1
- package/dist/types/types/get-payments-aggregation-query.d.ts +4 -0
- package/dist/types/types/get-payments-query.d.ts +1 -1
- package/dist/types/types/get-segment-data-with.d.ts +3 -3
- package/dist/types/types/get-segment-data.d.ts +1 -1
- package/dist/types/types/get-segment-with.d.ts +1 -1
- package/dist/types/types/get-segments-query.d.ts +2 -0
- package/dist/types/types/health-check-data.d.ts +10 -0
- package/dist/types/types/index.d.ts +235 -191
- package/dist/types/types/list-emails-query.d.ts +2 -0
- package/dist/types/types/login-data.d.ts +6 -0
- package/dist/types/types/newsletter-group-data.d.ts +5 -0
- package/dist/types/types/notice-filter-name.d.ts +1 -1
- package/dist/types/types/ongoing-email-fields.d.ts +10 -0
- package/dist/types/types/operators-by-type.d.ts +1 -1
- package/dist/types/types/other-filter-args.d.ts +2 -2
- package/dist/types/types/paginated-query.d.ts +2 -2
- package/dist/types/types/payment-filter-name.d.ts +1 -1
- package/dist/types/types/payment-flow-params.d.ts +12 -3
- package/dist/types/types/payment-flow-result.d.ts +4 -0
- package/dist/types/types/payment-period.d.ts +2 -0
- package/dist/types/types/payment-source-base.d.ts +1 -1
- package/dist/types/types/payment-source-go-cardless-direct-debit.d.ts +2 -2
- package/dist/types/types/payment-source-manual.d.ts +1 -1
- package/dist/types/types/payment-source-stripe-bacs.d.ts +2 -2
- package/dist/types/types/payment-source-stripe-card.d.ts +2 -2
- package/dist/types/types/payment-source-stripe-paypal.d.ts +2 -2
- package/dist/types/types/payment-source-stripe-sepa.d.ts +2 -2
- package/dist/types/types/payment-source.d.ts +1 -1
- package/dist/types/types/role-type.d.ts +1 -1
- package/dist/types/types/rule-group.d.ts +2 -2
- package/dist/types/types/rule-operator.d.ts +1 -1
- package/dist/types/types/rule.d.ts +1 -1
- package/dist/types/types/s3-metadata.d.ts +14 -0
- package/dist/types/types/segment-filter-name.d.ts +1 -1
- package/dist/types/types/segment-ongoing-email-trigger.d.ts +6 -0
- package/dist/types/types/set-callout-form-schema.d.ts +1 -1
- package/dist/types/types/set-callout-slide-schema.d.ts +1 -1
- package/dist/types/types/set-contribution-data.d.ts +1 -1
- package/dist/types/types/signup-data.d.ts +6 -0
- package/dist/types/types/start-contribution-data.d.ts +3 -2
- package/dist/types/types/stripe-fee-country.d.ts +1 -1
- package/dist/types/types/tag-create-data.d.ts +2 -0
- package/dist/types/types/{create-callout-tag-data.d.ts → tag-data.d.ts} +2 -1
- package/dist/types/types/tag-get-data.d.ts +2 -0
- package/dist/types/types/tag-update-data.d.ts +2 -0
- package/dist/types/types/text-case.d.ts +1 -1
- package/dist/types/types/unit-matches.d.ts +1 -1
- package/dist/types/types/update-callout-data.d.ts +4 -2
- package/dist/types/types/update-callout-response-data.d.ts +1 -1
- package/dist/types/types/update-callout-response-segment-data.d.ts +2 -0
- package/dist/types/types/update-callout-reviewer-data.d.ts +3 -0
- package/dist/types/types/update-contact-data.d.ts +3 -1
- package/dist/types/types/update-contact-profile-data.d.ts +1 -1
- package/dist/types/types/update-contact-role-data.d.ts +12 -2
- package/dist/types/types/update-email-data.d.ts +13 -2
- package/dist/types/types/update-notice-data.d.ts +2 -0
- package/dist/types/types/update-reset-device-data.d.ts +6 -0
- package/dist/types/types/update-segment-data.d.ts +1 -1
- package/dist/types/types/upload-file-response.d.ts +18 -0
- package/dist/types/types/validated-boolean-rule.d.ts +2 -2
- package/dist/types/types/validated-number-rule.d.ts +2 -2
- package/dist/types/types/validated-rule-group.d.ts +2 -2
- package/dist/types/types/validated-rule-value.d.ts +2 -2
- package/dist/types/types/validated-rule.d.ts +1 -1
- package/dist/types/types/validated-string-rule.d.ts +2 -2
- package/dist/types/types/validator-callout-component.d.ts +1 -1
- package/dist/types/unit-matches.d.ts +7 -0
- package/dist/types/unit-matches.d.ts.map +1 -0
- package/dist/types/unit-matches.js +2 -0
- package/dist/types/unit-matches.js.map +1 -0
- package/dist/types/update-callout-data.d.ts +5 -0
- package/dist/types/update-callout-data.d.ts.map +1 -0
- package/dist/types/update-callout-data.js +2 -0
- package/dist/types/update-callout-data.js.map +1 -0
- package/dist/types/update-callout-response-comment-data.d.ts +4 -0
- package/dist/types/update-callout-response-comment-data.d.ts.map +1 -0
- package/dist/types/update-callout-response-comment-data.js +2 -0
- package/dist/types/update-callout-response-comment-data.js.map +1 -0
- package/dist/types/update-callout-response-data.d.ts +3 -0
- package/dist/types/update-callout-response-data.d.ts.map +1 -0
- package/dist/types/update-callout-response-data.js +2 -0
- package/dist/types/update-callout-response-data.js.map +1 -0
- package/dist/types/update-callout-response-segment-data.d.ts +3 -0
- package/dist/types/update-callout-response-segment-data.d.ts.map +1 -0
- package/dist/types/update-callout-response-segment-data.js +2 -0
- package/dist/types/update-callout-response-segment-data.js.map +1 -0
- package/dist/types/update-callout-reviewer-data.d.ts +4 -0
- package/dist/types/update-callout-reviewer-data.d.ts.map +1 -0
- package/dist/types/update-callout-reviewer-data.js +2 -0
- package/dist/types/update-callout-reviewer-data.js.map +1 -0
- package/dist/types/update-contact-data.d.ts +8 -0
- package/dist/types/update-contact-data.d.ts.map +1 -0
- package/dist/types/update-contact-data.js +2 -0
- package/dist/types/update-contact-data.js.map +1 -0
- package/dist/types/update-contact-profile-data.d.ts +3 -0
- package/dist/types/update-contact-profile-data.d.ts.map +1 -0
- package/dist/types/update-contact-profile-data.js +2 -0
- package/dist/types/update-contact-profile-data.js.map +1 -0
- package/dist/types/update-contact-role-data.d.ts +15 -0
- package/dist/types/update-contact-role-data.d.ts.map +1 -0
- package/dist/types/update-contact-role-data.js +2 -0
- package/dist/types/update-contact-role-data.js.map +1 -0
- package/dist/types/update-email-data.d.ts +14 -0
- package/dist/types/update-email-data.d.ts.map +1 -0
- package/dist/types/update-email-data.js +2 -0
- package/dist/types/update-email-data.js.map +1 -0
- package/dist/types/update-notice-data.d.ts +3 -0
- package/dist/types/update-notice-data.d.ts.map +1 -0
- package/dist/types/update-notice-data.js +2 -0
- package/dist/types/update-notice-data.js.map +1 -0
- package/dist/types/update-reset-device-data.d.ts +7 -0
- package/dist/types/update-reset-device-data.d.ts.map +1 -0
- package/dist/types/update-reset-device-data.js +2 -0
- package/dist/types/update-reset-device-data.js.map +1 -0
- package/dist/types/update-reset-password-data.d.ts +6 -0
- package/dist/types/update-reset-password-data.d.ts.map +1 -0
- package/dist/types/update-reset-password-data.js +2 -0
- package/dist/types/update-reset-password-data.js.map +1 -0
- package/dist/types/update-segment-data.d.ts +3 -0
- package/dist/types/update-segment-data.d.ts.map +1 -0
- package/dist/types/update-segment-data.js +2 -0
- package/dist/types/update-segment-data.js.map +1 -0
- package/dist/types/upload-file-response.d.ts +19 -0
- package/dist/types/upload-file-response.d.ts.map +1 -0
- package/dist/types/upload-file-response.js +2 -0
- package/dist/types/upload-file-response.js.map +1 -0
- package/dist/types/utils/callouts.d.ts +27 -2
- package/dist/types/utils/date.d.ts +1 -1
- package/dist/types/utils/debounce.d.ts +22 -0
- package/dist/types/utils/file.d.ts +45 -0
- package/dist/types/utils/index.d.ts +10 -7
- package/dist/types/utils/payments.d.ts +1 -1
- package/dist/types/utils/rules.d.ts +29 -1
- package/dist/types/utils/slug.d.ts +1 -1
- package/dist/types/utils/url.d.ts +15 -0
- package/dist/types/utils/validations.d.ts +2 -2
- package/dist/types/validated-boolean-rule.d.ts +3 -0
- package/dist/types/validated-boolean-rule.d.ts.map +1 -0
- package/dist/types/validated-boolean-rule.js +2 -0
- package/dist/types/validated-boolean-rule.js.map +1 -0
- package/dist/types/validated-number-rule.d.ts +3 -0
- package/dist/types/validated-number-rule.d.ts.map +1 -0
- package/dist/types/validated-number-rule.js +2 -0
- package/dist/types/validated-number-rule.js.map +1 -0
- package/dist/types/validated-rule-group.d.ts +6 -0
- package/dist/types/validated-rule-group.d.ts.map +1 -0
- package/dist/types/validated-rule-group.js +2 -0
- package/dist/types/validated-rule-group.js.map +1 -0
- package/dist/types/validated-rule-value.d.ts +3 -0
- package/dist/types/validated-rule-value.d.ts.map +1 -0
- package/dist/types/validated-rule-value.js +2 -0
- package/dist/types/validated-rule-value.js.map +1 -0
- package/dist/types/validated-rule.d.ts +3 -0
- package/dist/types/validated-rule.d.ts.map +1 -0
- package/dist/types/validated-rule.js +2 -0
- package/dist/types/validated-rule.js.map +1 -0
- package/dist/types/validated-string-rule.d.ts +3 -0
- package/dist/types/validated-string-rule.d.ts.map +1 -0
- package/dist/types/validated-string-rule.js +2 -0
- package/dist/types/validated-string-rule.js.map +1 -0
- package/dist/types/validator-callout-component.d.ts +3 -0
- package/dist/types/validator-callout-component.d.ts.map +1 -0
- package/dist/types/validator-callout-component.js +2 -0
- package/dist/types/validator-callout-component.js.map +1 -0
- package/dist/types/validator.d.ts +2 -0
- package/dist/types/validator.d.ts.map +1 -0
- package/dist/types/validator.js +2 -0
- package/dist/types/validator.js.map +1 -0
- package/dist/types/validators/callout-component-content.validator.d.ts +1 -1
- package/dist/types/validators/callout-component-input-address.validator.d.ts +1 -1
- package/dist/types/validators/callout-component-input-checkbox.validator.d.ts +1 -1
- package/dist/types/validators/callout-component-input-currency.validator.d.ts +1 -1
- package/dist/types/validators/callout-component-input-date-time.validator.d.ts +1 -1
- package/dist/types/validators/callout-component-input-email.validator.d.ts +1 -1
- package/dist/types/validators/callout-component-input-file.validator.d.ts +1 -1
- package/dist/types/validators/callout-component-input-number.validator.d.ts +1 -1
- package/dist/types/validators/callout-component-input-phone-number.validator.d.ts +1 -1
- package/dist/types/validators/callout-component-input-select.validator.d.ts +1 -1
- package/dist/types/validators/callout-component-input-selectable.validator.d.ts +1 -1
- package/dist/types/validators/callout-component-input-signature.validator.d.ts +1 -1
- package/dist/types/validators/callout-component-input-text.validator.d.ts +1 -1
- package/dist/types/validators/callout-component-input-time.validator.d.ts +1 -1
- package/dist/types/validators/callout-component-input-url.validator.d.ts +1 -1
- package/dist/types/validators/callout-component.validator.d.ts +1 -1
- package/dist/types/validators/index.d.ts +16 -16
- package/dist/utils/callouts.d.ts +56 -0
- package/dist/utils/callouts.d.ts.map +1 -0
- package/dist/utils/callouts.js +186 -0
- package/dist/utils/callouts.js.map +1 -0
- package/dist/utils/conversions.d.ts +15 -0
- package/dist/utils/conversions.d.ts.map +1 -0
- package/dist/utils/conversions.js +37 -0
- package/dist/utils/conversions.js.map +1 -0
- package/dist/utils/date.d.ts +9 -0
- package/dist/utils/date.d.ts.map +1 -0
- package/dist/utils/date.js +76 -0
- package/dist/utils/date.js.map +1 -0
- package/dist/utils/debounce.d.ts +23 -0
- package/dist/utils/debounce.d.ts.map +1 -0
- package/dist/utils/debounce.js +63 -0
- package/dist/utils/debounce.js.map +1 -0
- package/dist/utils/file.d.ts +46 -0
- package/dist/utils/file.d.ts.map +1 -0
- package/dist/utils/file.js +72 -0
- package/dist/utils/file.js.map +1 -0
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +12 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/payments.d.ts +3 -0
- package/dist/utils/payments.d.ts.map +1 -0
- package/dist/utils/payments.js +39 -0
- package/dist/utils/payments.js.map +1 -0
- package/dist/utils/rules.d.ts +33 -0
- package/dist/utils/rules.d.ts.map +1 -0
- package/dist/utils/rules.js +94 -0
- package/dist/utils/rules.js.map +1 -0
- package/dist/utils/slug.d.ts +17 -0
- package/dist/utils/slug.d.ts.map +1 -0
- package/dist/utils/slug.js +835 -0
- package/dist/utils/slug.js.map +1 -0
- package/dist/utils/url.d.ts +16 -0
- package/dist/utils/url.d.ts.map +1 -0
- package/dist/utils/url.js +43 -0
- package/dist/utils/url.js.map +1 -0
- package/dist/utils/validations.d.ts +91 -0
- package/dist/utils/validations.d.ts.map +1 -0
- package/dist/utils/validations.js +205 -0
- package/dist/utils/validations.js.map +1 -0
- package/dist/validators/callout-component-content.validator.d.ts +3 -0
- package/dist/validators/callout-component-content.validator.d.ts.map +1 -0
- package/dist/validators/callout-component-content.validator.js +5 -0
- package/dist/validators/callout-component-content.validator.js.map +1 -0
- package/dist/validators/callout-component-input-address.validator.d.ts +3 -0
- package/dist/validators/callout-component-input-address.validator.d.ts.map +1 -0
- package/dist/validators/callout-component-input-address.validator.js +4 -0
- package/dist/validators/callout-component-input-address.validator.js.map +1 -0
- package/dist/validators/callout-component-input-checkbox.validator.d.ts +3 -0
- package/dist/validators/callout-component-input-checkbox.validator.d.ts.map +1 -0
- package/dist/validators/callout-component-input-checkbox.validator.js +4 -0
- package/dist/validators/callout-component-input-checkbox.validator.js.map +1 -0
- package/dist/validators/callout-component-input-currency.validator.d.ts +3 -0
- package/dist/validators/callout-component-input-currency.validator.d.ts.map +1 -0
- package/dist/validators/callout-component-input-currency.validator.js +5 -0
- package/dist/validators/callout-component-input-currency.validator.js.map +1 -0
- package/dist/validators/callout-component-input-date-time.validator.d.ts +3 -0
- package/dist/validators/callout-component-input-date-time.validator.d.ts.map +1 -0
- package/dist/validators/callout-component-input-date-time.validator.js +8 -0
- package/dist/validators/callout-component-input-date-time.validator.js.map +1 -0
- package/dist/validators/callout-component-input-email.validator.d.ts +3 -0
- package/dist/validators/callout-component-input-email.validator.d.ts.map +1 -0
- package/dist/validators/callout-component-input-email.validator.js +5 -0
- package/dist/validators/callout-component-input-email.validator.js.map +1 -0
- package/dist/validators/callout-component-input-file.validator.d.ts +3 -0
- package/dist/validators/callout-component-input-file.validator.d.ts.map +1 -0
- package/dist/validators/callout-component-input-file.validator.js +10 -0
- package/dist/validators/callout-component-input-file.validator.js.map +1 -0
- package/dist/validators/callout-component-input-number.validator.d.ts +3 -0
- package/dist/validators/callout-component-input-number.validator.d.ts.map +1 -0
- package/dist/validators/callout-component-input-number.validator.js +9 -0
- package/dist/validators/callout-component-input-number.validator.js.map +1 -0
- package/dist/validators/callout-component-input-phone-number.validator.d.ts +3 -0
- package/dist/validators/callout-component-input-phone-number.validator.d.ts.map +1 -0
- package/dist/validators/callout-component-input-phone-number.validator.js +5 -0
- package/dist/validators/callout-component-input-phone-number.validator.js.map +1 -0
- package/dist/validators/callout-component-input-select.validator.d.ts +3 -0
- package/dist/validators/callout-component-input-select.validator.d.ts.map +1 -0
- package/dist/validators/callout-component-input-select.validator.js +5 -0
- package/dist/validators/callout-component-input-select.validator.js.map +1 -0
- package/dist/validators/callout-component-input-selectable.validator.d.ts +3 -0
- package/dist/validators/callout-component-input-selectable.validator.d.ts.map +1 -0
- package/dist/validators/callout-component-input-selectable.validator.js +5 -0
- package/dist/validators/callout-component-input-selectable.validator.js.map +1 -0
- package/dist/validators/callout-component-input-signature.validator.d.ts +3 -0
- package/dist/validators/callout-component-input-signature.validator.d.ts.map +1 -0
- package/dist/validators/callout-component-input-signature.validator.js +4 -0
- package/dist/validators/callout-component-input-signature.validator.js.map +1 -0
- package/dist/validators/callout-component-input-text.validator.d.ts +3 -0
- package/dist/validators/callout-component-input-text.validator.d.ts.map +1 -0
- package/dist/validators/callout-component-input-text.validator.js +33 -0
- package/dist/validators/callout-component-input-text.validator.js.map +1 -0
- package/dist/validators/callout-component-input-time.validator.d.ts +3 -0
- package/dist/validators/callout-component-input-time.validator.d.ts.map +1 -0
- package/dist/validators/callout-component-input-time.validator.js +4 -0
- package/dist/validators/callout-component-input-time.validator.js.map +1 -0
- package/dist/validators/callout-component-input-url.validator.d.ts +3 -0
- package/dist/validators/callout-component-input-url.validator.d.ts.map +1 -0
- package/dist/validators/callout-component-input-url.validator.js +5 -0
- package/dist/validators/callout-component-input-url.validator.js.map +1 -0
- package/dist/validators/callout-component.validator.d.ts +6 -0
- package/dist/validators/callout-component.validator.d.ts.map +1 -0
- package/dist/validators/callout-component.validator.js +81 -0
- package/dist/validators/callout-component.validator.js.map +1 -0
- package/dist/validators/index.d.ts +17 -0
- package/dist/validators/index.d.ts.map +1 -0
- package/dist/validators/index.js +18 -0
- package/dist/validators/index.js.map +1 -0
- package/package.json +33 -53
- package/src/constants.ts +109 -0
- package/src/data/api-error-code.ts +22 -0
- package/src/data/callout-access.ts +6 -0
- package/src/data/callout-captcha.ts +5 -0
- package/src/data/callout-channel.ts +4 -0
- package/src/data/callout-component-base-type.ts +8 -0
- package/src/data/callout-component-input-selectable-types.ts +10 -0
- package/src/data/callout-component-input-text-types.ts +10 -0
- package/src/data/callout-component-input-types.ts +24 -0
- package/src/data/callout-component-nestable-types.ts +11 -0
- package/src/data/callout-component-type.ts +23 -0
- package/src/data/callout-component-types.ts +10 -0
- package/src/data/contact-mfa-type.ts +7 -0
- package/src/data/content-ids.ts +15 -0
- package/src/data/contribution-period.ts +4 -0
- package/src/data/contribution-type.ts +6 -0
- package/src/data/get-callout-response-with.ts +8 -0
- package/src/data/get-contact-with.ts +7 -0
- package/src/data/index.ts +28 -0
- package/src/data/item-status.ts +6 -0
- package/src/data/login-codes.ts +13 -0
- package/src/data/membership-status.ts +6 -0
- package/src/data/newsletter-status.ts +7 -0
- package/src/data/payment-method.ts +8 -0
- package/src/data/payment-status.ts +7 -0
- package/src/data/payment-type.ts +6 -0
- package/src/data/reset-security-flow-error-code.ts +8 -0
- package/src/data/reset-security-flow-type.ts +7 -0
- package/src/data/role-type-data.ts +5 -0
- package/src/error/InvalidRule.ts +11 -0
- package/src/error/index.ts +2 -0
- package/src/index.ts +8 -0
- package/src/search/api-keys.ts +12 -0
- package/src/search/callouts.ts +163 -0
- package/src/search/contacts.ts +129 -0
- package/src/search/emails.ts +32 -0
- package/src/search/index.ts +10 -0
- package/src/search/notices.ts +37 -0
- package/src/search/operators.ts +78 -0
- package/src/search/payments.ts +38 -0
- package/src/search/segments.ts +14 -0
- package/src/search/tags.ts +16 -0
- package/src/types/address.ts +6 -0
- package/src/types/allow-null.ts +7 -0
- package/src/types/api-error-data.ts +166 -0
- package/src/types/api-key-filter-name.ts +3 -0
- package/src/types/array-filter-args.ts +8 -0
- package/src/types/auth-info-data.ts +33 -0
- package/src/types/base-filter-args.ts +6 -0
- package/src/types/base-validated-rule.ts +10 -0
- package/src/types/callout-channel-filter-name.ts +3 -0
- package/src/types/callout-component-base-input-schema.ts +31 -0
- package/src/types/callout-component-base-input-selectable-schema.ts +13 -0
- package/src/types/callout-component-base-input-text-schema.ts +19 -0
- package/src/types/callout-component-base-map.ts +24 -0
- package/src/types/callout-component-base-nestable-schema.ts +14 -0
- package/src/types/callout-component-base-rules.ts +6 -0
- package/src/types/callout-component-base-schema.ts +26 -0
- package/src/types/callout-component-content-schema.ts +13 -0
- package/src/types/callout-component-input-address-rules.ts +3 -0
- package/src/types/callout-component-input-address-schema.ts +13 -0
- package/src/types/callout-component-input-checkbox-rules.ts +3 -0
- package/src/types/callout-component-input-checkbox-schema.ts +18 -0
- package/src/types/callout-component-input-currency-rules.ts +3 -0
- package/src/types/callout-component-input-currency-schema.ts +22 -0
- package/src/types/callout-component-input-date-time-rules.ts +3 -0
- package/src/types/callout-component-input-date-time-schema.ts +44 -0
- package/src/types/callout-component-input-email-rules.ts +10 -0
- package/src/types/callout-component-input-email-schema.ts +16 -0
- package/src/types/callout-component-input-file-rules.ts +3 -0
- package/src/types/callout-component-input-file-schema.ts +23 -0
- package/src/types/callout-component-input-number-rules.ts +10 -0
- package/src/types/callout-component-input-number-schema.ts +21 -0
- package/src/types/callout-component-input-phone-number-rules.ts +3 -0
- package/src/types/callout-component-input-phone-number-schema.ts +13 -0
- package/src/types/callout-component-input-schema.ts +33 -0
- package/src/types/callout-component-input-select-rules.ts +3 -0
- package/src/types/callout-component-input-select-schema.ts +18 -0
- package/src/types/callout-component-input-selectable-radio-rules.ts +4 -0
- package/src/types/callout-component-input-selectable-radio-schema.ts +10 -0
- package/src/types/callout-component-input-selectable-schema.ts +9 -0
- package/src/types/callout-component-input-selectable-selectboxes-rules.ts +3 -0
- package/src/types/callout-component-input-selectable-selectboxes-schema.ts +10 -0
- package/src/types/callout-component-input-signature-rules.ts +3 -0
- package/src/types/callout-component-input-signature-schema.ts +11 -0
- package/src/types/callout-component-input-text-area-schema.ts +6 -0
- package/src/types/callout-component-input-text-field-schema.ts +6 -0
- package/src/types/callout-component-input-text-rules.ts +14 -0
- package/src/types/callout-component-input-text-schema.ts +9 -0
- package/src/types/callout-component-input-time-rules.ts +3 -0
- package/src/types/callout-component-input-time-schema.ts +13 -0
- package/src/types/callout-component-input-url-rules.ts +10 -0
- package/src/types/callout-component-input-url-schema.ts +15 -0
- package/src/types/callout-component-map.ts +55 -0
- package/src/types/callout-component-nestable-panel-schema.ts +6 -0
- package/src/types/callout-component-nestable-schema.ts +10 -0
- package/src/types/callout-component-nestable-tabs-schema.ts +6 -0
- package/src/types/callout-component-nestable-well-schema.ts +6 -0
- package/src/types/callout-component-schema.ts +11 -0
- package/src/types/callout-data.ts +25 -0
- package/src/types/callout-filter-name.ts +3 -0
- package/src/types/callout-map-schema-icon-styling-answer-icon-definition.ts +4 -0
- package/src/types/callout-map-schema-icon-styling-answer-icon.ts +6 -0
- package/src/types/callout-map-schema-icon-styling-answer.ts +6 -0
- package/src/types/callout-map-schema-icon-styling.ts +6 -0
- package/src/types/callout-map-schema.ts +21 -0
- package/src/types/callout-newsletter-schema.ts +8 -0
- package/src/types/callout-response-answer-address.ts +19 -0
- package/src/types/callout-response-answer-file-upload.ts +8 -0
- package/src/types/callout-response-answer.ts +12 -0
- package/src/types/callout-response-answers-slide.ts +9 -0
- package/src/types/callout-response-answers.ts +9 -0
- package/src/types/callout-response-comment-data.ts +5 -0
- package/src/types/callout-response-comment-filter-name.ts +4 -0
- package/src/types/callout-response-filter-name.ts +3 -0
- package/src/types/callout-response-guest-data.ts +5 -0
- package/src/types/callout-response-newsletter-data.ts +4 -0
- package/src/types/callout-response-view-schema.ts +11 -0
- package/src/types/callout-reviewer-filter-name.ts +3 -0
- package/src/types/callout-tag-filter-name.ts +3 -0
- package/src/types/callout-variant-data.ts +20 -0
- package/src/types/callout-variant-navigation-data.ts +5 -0
- package/src/types/complete-signup-data.ts +6 -0
- package/src/types/contact-data.ts +7 -0
- package/src/types/contact-mfa-data.ts +9 -0
- package/src/types/contact-profile-data.ts +16 -0
- package/src/types/contact-role-data.ts +6 -0
- package/src/types/contact-tag-filter-name.ts +3 -0
- package/src/types/content-contacts-data.ts +4 -0
- package/src/types/content-data.ts +33 -0
- package/src/types/content-email-data.ts +5 -0
- package/src/types/content-general-data.ts +36 -0
- package/src/types/content-id.ts +10 -0
- package/src/types/content-join-data.ts +23 -0
- package/src/types/content-join-period-data.ts +6 -0
- package/src/types/content-join-setup-data.ts +17 -0
- package/src/types/content-payment-data.ts +10 -0
- package/src/types/content-profile-data.ts +3 -0
- package/src/types/content-share-data.ts +6 -0
- package/src/types/content-telegram-data.ts +4 -0
- package/src/types/contribution-info.ts +20 -0
- package/src/types/create-api-key-data.ts +4 -0
- package/src/types/create-callout-data.ts +10 -0
- package/src/types/create-callout-response-comment-data.ts +3 -0
- package/src/types/create-callout-response-data.ts +15 -0
- package/src/types/create-callout-response-segment-data.ts +8 -0
- package/src/types/create-callout-reviewer-data.ts +4 -0
- package/src/types/create-callout-variant-data.ts +6 -0
- package/src/types/create-contact-data.ts +13 -0
- package/src/types/create-contact-mfa-data.ts +7 -0
- package/src/types/create-email-data.ts +10 -0
- package/src/types/create-notice-data.ts +3 -0
- package/src/types/create-payment-data.ts +8 -0
- package/src/types/create-reset-device-data.ts +8 -0
- package/src/types/create-reset-password-data.ts +4 -0
- package/src/types/create-segment-data.ts +7 -0
- package/src/types/date-unit.ts +3 -0
- package/src/types/delete-contact-mfa-data.ts +6 -0
- package/src/types/duration.ts +1 -0
- package/src/types/email-filter-name.ts +3 -0
- package/src/types/email-preview-data.ts +8 -0
- package/src/types/email-template-type.ts +1 -0
- package/src/types/enum-filter-args.ts +8 -0
- package/src/types/feeable.ts +8 -0
- package/src/types/filter-args.ts +10 -0
- package/src/types/filter-type.ts +9 -0
- package/src/types/filters.ts +3 -0
- package/src/types/footer-link.ts +4 -0
- package/src/types/force-update-contribution-data.ts +9 -0
- package/src/types/formio-file.ts +13 -0
- package/src/types/get-api-key-data.ts +9 -0
- package/src/types/get-api-keys-query.ts +3 -0
- package/src/types/get-callout-data-with.ts +20 -0
- package/src/types/get-callout-data.ts +10 -0
- package/src/types/get-callout-form-data.ts +11 -0
- package/src/types/get-callout-form-schema.ts +6 -0
- package/src/types/get-callout-navigation-schema.ts +7 -0
- package/src/types/get-callout-response-comment-data.ts +8 -0
- package/src/types/get-callout-response-comments-query.ts +3 -0
- package/src/types/get-callout-response-data-with.ts +33 -0
- package/src/types/get-callout-response-data.ts +9 -0
- package/src/types/get-callout-response-map-data.ts +13 -0
- package/src/types/get-callout-responses-query.ts +3 -0
- package/src/types/get-callout-reviewer-data.ts +7 -0
- package/src/types/get-callout-slide-schema.ts +8 -0
- package/src/types/get-callout-with.ts +8 -0
- package/src/types/get-callouts-query.ts +3 -0
- package/src/types/get-contact-data-with.ts +22 -0
- package/src/types/get-contact-data.ts +11 -0
- package/src/types/get-contact-mfa-data.ts +3 -0
- package/src/types/get-contacts-query.ts +3 -0
- package/src/types/get-email-data.ts +28 -0
- package/src/types/get-email-template-info-data.ts +16 -0
- package/src/types/get-notice-data.ts +9 -0
- package/src/types/get-notices-query.ts +3 -0
- package/src/types/get-payment-aggregation-data.ts +4 -0
- package/src/types/get-payment-data-with.ts +9 -0
- package/src/types/get-payment-data.ts +9 -0
- package/src/types/get-payment-with.ts +1 -0
- package/src/types/get-payments-aggregation-query.ts +7 -0
- package/src/types/get-payments-query.ts +3 -0
- package/src/types/get-segment-data-with.ts +4 -0
- package/src/types/get-segment-data.ts +8 -0
- package/src/types/get-segment-with.ts +1 -0
- package/src/types/get-segments-query.ts +3 -0
- package/src/types/get-stats-data.ts +5 -0
- package/src/types/get-stats-query.ts +4 -0
- package/src/types/health-check-data.ts +10 -0
- package/src/types/index.ts +236 -0
- package/src/types/list-emails-query.ts +3 -0
- package/src/types/login-data.ts +6 -0
- package/src/types/newsletter-group-data.ts +5 -0
- package/src/types/noop.ts +5 -0
- package/src/types/notice-data.ts +8 -0
- package/src/types/notice-filter-name.ts +3 -0
- package/src/types/ongoing-email-fields.ts +11 -0
- package/src/types/operators-by-type.ts +6 -0
- package/src/types/other-filter-args.ts +5 -0
- package/src/types/paginated-query.ts +9 -0
- package/src/types/paginated.ts +6 -0
- package/src/types/parse-iso-options.ts +7 -0
- package/src/types/payment-filter-name.ts +3 -0
- package/src/types/payment-flow-params.ts +23 -0
- package/src/types/payment-flow-result.ts +4 -0
- package/src/types/payment-period.ts +3 -0
- package/src/types/payment-source-base.ts +5 -0
- package/src/types/payment-source-go-cardless-direct-debit.ts +9 -0
- package/src/types/payment-source-manual.ts +7 -0
- package/src/types/payment-source-stripe-bacs.ts +8 -0
- package/src/types/payment-source-stripe-card.ts +20 -0
- package/src/types/payment-source-stripe-paypal.ts +8 -0
- package/src/types/payment-source-stripe-sepa.ts +10 -0
- package/src/types/payment-source.ts +16 -0
- package/src/types/role-type.ts +3 -0
- package/src/types/rule-group.ts +6 -0
- package/src/types/rule-operator.ts +3 -0
- package/src/types/rule-opperator-params.ts +3 -0
- package/src/types/rule-value.ts +1 -0
- package/src/types/rule.ts +7 -0
- package/src/types/s3-metadata.ts +15 -0
- package/src/types/segment-filter-name.ts +3 -0
- package/src/types/segment-ongoing-email-trigger.ts +6 -0
- package/src/types/serial.ts +10 -0
- package/src/types/set-callout-form-schema.ts +5 -0
- package/src/types/set-callout-navigation-schema.ts +3 -0
- package/src/types/set-callout-slide-schema.ts +11 -0
- package/src/types/set-contribution-data.ts +9 -0
- package/src/types/signup-data.ts +10 -0
- package/src/types/start-contribution-data.ts +7 -0
- package/src/types/stripe-fee-country.ts +1 -0
- package/src/types/tag-create-data.ts +3 -0
- package/src/types/tag-data.ts +5 -0
- package/src/types/tag-get-data.ts +3 -0
- package/src/types/tag-update-data.ts +5 -0
- package/src/types/text-case.ts +1 -0
- package/src/types/unit-matches.ts +5 -0
- package/src/types/update-callout-data.ts +7 -0
- package/src/types/update-callout-response-comment-data.ts +3 -0
- package/src/types/update-callout-response-data.ts +3 -0
- package/src/types/update-callout-response-segment-data.ts +4 -0
- package/src/types/update-callout-reviewer-data.ts +3 -0
- package/src/types/update-contact-data.ts +8 -0
- package/src/types/update-contact-profile-data.ts +3 -0
- package/src/types/update-contact-role-data.ts +14 -0
- package/src/types/update-email-data.ts +14 -0
- package/src/types/update-notice-data.ts +3 -0
- package/src/types/update-reset-device-data.ts +7 -0
- package/src/types/update-reset-password-data.ts +5 -0
- package/src/types/update-segment-data.ts +3 -0
- package/src/types/upload-file-response.ts +18 -0
- package/src/types/validated-boolean-rule.ts +6 -0
- package/src/types/validated-number-rule.ts +6 -0
- package/src/types/validated-rule-group.ts +6 -0
- package/src/types/validated-rule-value.ts +7 -0
- package/src/types/validated-rule.ts +10 -0
- package/src/types/validated-string-rule.ts +6 -0
- package/src/types/validator-callout-component.ts +9 -0
- package/src/types/validator.ts +1 -0
- package/src/utils/callouts.ts +291 -0
- package/src/utils/conversions.ts +40 -0
- package/src/utils/date.ts +106 -0
- package/src/utils/debounce.ts +77 -0
- package/src/utils/file.ts +79 -0
- package/src/utils/index.ts +11 -0
- package/src/utils/payments.ts +51 -0
- package/src/utils/rules.ts +145 -0
- package/src/utils/slug.ts +876 -0
- package/src/utils/url.ts +52 -0
- package/src/utils/validations.ts +273 -0
- package/src/validators/callout-component-content.validator.ts +12 -0
- package/src/validators/callout-component-input-address.validator.ts +16 -0
- package/src/validators/callout-component-input-checkbox.validator.ts +14 -0
- package/src/validators/callout-component-input-currency.validator.ts +15 -0
- package/src/validators/callout-component-input-date-time.validator.ts +19 -0
- package/src/validators/callout-component-input-email.validator.ts +15 -0
- package/src/validators/callout-component-input-file.validator.ts +22 -0
- package/src/validators/callout-component-input-number.validator.ts +22 -0
- package/src/validators/callout-component-input-phone-number.validator.ts +15 -0
- package/src/validators/callout-component-input-select.validator.ts +15 -0
- package/src/validators/callout-component-input-selectable.validator.ts +15 -0
- package/src/validators/callout-component-input-signature.validator.ts +16 -0
- package/src/validators/callout-component-input-text.validator.ts +56 -0
- package/src/validators/callout-component-input-time.validator.ts +14 -0
- package/src/validators/callout-component-input-url.validator.ts +15 -0
- package/src/validators/callout-component.validator.ts +139 -0
- package/src/validators/index.ts +17 -0
- package/dist/browser/beabee-common.js +0 -2433
- package/dist/browser/beabee-common.js.map +0 -7
- package/dist/browser/beabee-common.min.js +0 -1
- package/dist/browser/index.js +0 -2417
- package/dist/cjs/index.browser.cjs +0 -26
- package/dist/cjs/types/update-callout-tag-data.cjs +0 -16
- package/dist/esm/index.browser.js +0 -3
- package/dist/types/index.browser.d.ts +0 -1
- package/dist/types/types/client-api-error-data.d.ts +0 -7
- package/dist/types/types/get-callout-response-with.d.ts +0 -1
- package/dist/types/types/get-callout-tag-data.d.ts +0 -4
- package/dist/types/types/get-contact-with.d.ts +0 -1
- package/dist/types/types/get-upload-flow-data.d.ts +0 -3
- package/dist/types/types/update-callout-tag-data.d.ts +0 -2
- /package/dist/esm/types/{client-api-error-data.js → api-error-data.js} +0 -0
- /package/dist/esm/types/{create-callout-tag-data.js → auth-info-data.js} +0 -0
- /package/dist/esm/types/{get-callout-response-with.js → callout-map-schema-icon-styling-answer-icon-definition.js} +0 -0
- /package/dist/esm/types/{get-callout-tag-data.js → callout-map-schema-icon-styling-answer-icon.js} +0 -0
- /package/dist/esm/types/{get-contact-with.js → callout-map-schema-icon-styling-answer.js} +0 -0
- /package/dist/esm/types/{get-upload-flow-data.js → callout-map-schema-icon-styling.js} +0 -0
- /package/dist/esm/types/{update-callout-tag-data.js → callout-newsletter-schema.js} +0 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { CalloutComponentBaseType, CalloutComponentType, calloutComponentInputSelectableTypes, calloutComponentInputTextTypes, calloutComponentInputTypes, calloutComponentNestableTypes, } from '../data/index.js';
|
|
2
|
+
function convertValuesToOptions(values) {
|
|
3
|
+
return values.map(({ value }) => value);
|
|
4
|
+
}
|
|
5
|
+
function convertComponentToFilter(component) {
|
|
6
|
+
const baseItem = {
|
|
7
|
+
label: component.label || component.fullKey,
|
|
8
|
+
nullable: true,
|
|
9
|
+
};
|
|
10
|
+
if (isCalloutComponentOfType(component, CalloutComponentType.INPUT_CHECKBOX)) {
|
|
11
|
+
return { ...baseItem, type: 'boolean', nullable: false };
|
|
12
|
+
}
|
|
13
|
+
if (isCalloutComponentOfType(component, CalloutComponentType.INPUT_NUMBER)) {
|
|
14
|
+
return { ...baseItem, type: 'number' };
|
|
15
|
+
}
|
|
16
|
+
if (isCalloutComponentOfType(component, CalloutComponentType.INPUT_SELECT)) {
|
|
17
|
+
return {
|
|
18
|
+
...baseItem,
|
|
19
|
+
type: 'enum',
|
|
20
|
+
options: convertValuesToOptions(component.data.values),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
if (isCalloutComponentOfBaseType(component, CalloutComponentBaseType.INPUT_SELECTABLE)) {
|
|
24
|
+
return {
|
|
25
|
+
...baseItem,
|
|
26
|
+
type: component.type === CalloutComponentType.INPUT_SELECTABLE_RADIO
|
|
27
|
+
? 'enum'
|
|
28
|
+
: 'array',
|
|
29
|
+
options: convertValuesToOptions(component.values),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
if (isCalloutComponentOfType(component, CalloutComponentType.INPUT_TEXT_AREA)) {
|
|
33
|
+
return { ...baseItem, type: 'blob' };
|
|
34
|
+
}
|
|
35
|
+
return { ...baseItem, type: 'text' };
|
|
36
|
+
}
|
|
37
|
+
function getSelectableLabelFromValue(component, value) {
|
|
38
|
+
if (isCalloutComponentOfBaseType(component, CalloutComponentBaseType.INPUT_SELECTABLE)) {
|
|
39
|
+
return component.values.find((v) => v.value === value)?.label || value;
|
|
40
|
+
}
|
|
41
|
+
if (isCalloutComponentOfType(component, CalloutComponentType.INPUT_SELECT)) {
|
|
42
|
+
return component.data.values.find((v) => v.value === value)?.label || value;
|
|
43
|
+
}
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a component is a specific component type
|
|
48
|
+
*
|
|
49
|
+
* @param component The component to check
|
|
50
|
+
* @param type The type of component to check
|
|
51
|
+
* @returns Ensure that the component is of the specific type
|
|
52
|
+
*/
|
|
53
|
+
export function isCalloutComponentOfType(component, type) {
|
|
54
|
+
return 'type' in component && component.type === type;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a component is a specific base component type
|
|
58
|
+
*
|
|
59
|
+
* @param component The component to check
|
|
60
|
+
* @param type The type of component to check
|
|
61
|
+
* @returns Ensure that the component is of the specific base type
|
|
62
|
+
*/
|
|
63
|
+
export function isCalloutComponentOfBaseType(component, type) {
|
|
64
|
+
if (!('type' in component)) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
// `content` has only one schema
|
|
68
|
+
if (type === CalloutComponentBaseType.CONTENT) {
|
|
69
|
+
return isCalloutComponentOfType(component, CalloutComponentType.CONTENT);
|
|
70
|
+
}
|
|
71
|
+
if (type === CalloutComponentBaseType.INPUT) {
|
|
72
|
+
return calloutComponentInputTypes.includes(component.type);
|
|
73
|
+
}
|
|
74
|
+
if (type === CalloutComponentBaseType.INPUT_TEXT) {
|
|
75
|
+
return calloutComponentInputTextTypes.includes(component.type);
|
|
76
|
+
}
|
|
77
|
+
if (type === CalloutComponentBaseType.INPUT_SELECTABLE) {
|
|
78
|
+
return calloutComponentInputSelectableTypes.includes(component.type);
|
|
79
|
+
}
|
|
80
|
+
if (type === CalloutComponentBaseType.NESTABLE) {
|
|
81
|
+
return calloutComponentNestableTypes.includes(component.type);
|
|
82
|
+
}
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
export function flattenComponents(components) {
|
|
86
|
+
return components.flatMap((component) => isCalloutComponentOfBaseType(component, CalloutComponentBaseType.NESTABLE)
|
|
87
|
+
? [component, ...flattenComponents(component.components)]
|
|
88
|
+
: [component]);
|
|
89
|
+
}
|
|
90
|
+
export function filterComponents(components, filterFn) {
|
|
91
|
+
return components.filter(filterFn).map((component) => {
|
|
92
|
+
return {
|
|
93
|
+
...component,
|
|
94
|
+
...(isCalloutComponentOfBaseType(component, CalloutComponentBaseType.NESTABLE) && {
|
|
95
|
+
components: filterComponents(component.components, filterFn),
|
|
96
|
+
}),
|
|
97
|
+
};
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
export function getCalloutComponents(formSchema) {
|
|
101
|
+
return formSchema.slides.flatMap((slide) => flattenComponents(slide.components).map((component) => ({
|
|
102
|
+
...component,
|
|
103
|
+
slideId: slide.id,
|
|
104
|
+
fullKey: `${slide.id}.${component.key}`,
|
|
105
|
+
})));
|
|
106
|
+
}
|
|
107
|
+
export function getCalloutFilters(formSchema) {
|
|
108
|
+
const items = getCalloutComponents(formSchema)
|
|
109
|
+
.filter((c) => c.input)
|
|
110
|
+
.map((c) => [`answers.${c.fullKey}`, convertComponentToFilter(c)]);
|
|
111
|
+
return Object.fromEntries(items);
|
|
112
|
+
}
|
|
113
|
+
export function isAddressAnswer(answer) {
|
|
114
|
+
return !!answer && typeof answer === 'object' && 'geometry' in answer;
|
|
115
|
+
}
|
|
116
|
+
export function isFileUploadAnswer(answer) {
|
|
117
|
+
return !!answer && typeof answer === 'object' && 'url' in answer;
|
|
118
|
+
}
|
|
119
|
+
export function isFormioFileAnswer(answer) {
|
|
120
|
+
return (!!answer &&
|
|
121
|
+
typeof answer === 'object' &&
|
|
122
|
+
'url' in answer &&
|
|
123
|
+
'storage' in answer &&
|
|
124
|
+
'name' in answer &&
|
|
125
|
+
'size' in answer
|
|
126
|
+
// Not defined on old files
|
|
127
|
+
// "hash" in answer &&
|
|
128
|
+
// "originalName" in answer
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
export function stringifyAnswer(component, answer) {
|
|
132
|
+
if (Array.isArray(answer)) {
|
|
133
|
+
return answer.map((a) => stringifyAnswer(component, a)).join(', ');
|
|
134
|
+
}
|
|
135
|
+
else if (!answer) {
|
|
136
|
+
return '';
|
|
137
|
+
}
|
|
138
|
+
else if (isAddressAnswer(answer)) {
|
|
139
|
+
return JSON.stringify(answer);
|
|
140
|
+
}
|
|
141
|
+
else if (isFileUploadAnswer(answer)) {
|
|
142
|
+
return answer.url;
|
|
143
|
+
}
|
|
144
|
+
else if (typeof answer === 'object') {
|
|
145
|
+
// Checkboxes
|
|
146
|
+
return Object.entries(answer)
|
|
147
|
+
.filter(([, selected]) => selected)
|
|
148
|
+
.map(([value]) => getSelectableLabelFromValue(component, value))
|
|
149
|
+
.join(', ');
|
|
150
|
+
}
|
|
151
|
+
else if (typeof answer === 'string') {
|
|
152
|
+
return getSelectableLabelFromValue(component, answer);
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
return answer.toString();
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Retrieves the value at a given path of a nested object, similar to lodash's `get` function.
|
|
160
|
+
*
|
|
161
|
+
* @param {object} obj - The object to query.
|
|
162
|
+
* @param {string} path - The path of the property to get, using dot notation (e.g., "a.b.c").
|
|
163
|
+
* @returns {unknown} - Returns the resolved value, or `undefined` if the path does not exist.
|
|
164
|
+
*
|
|
165
|
+
* @example
|
|
166
|
+
* // Example with a generic object:
|
|
167
|
+
* const data = { a: { b: { c: 42 } } };
|
|
168
|
+
* const value = getByPath(data, 'a.b.c');
|
|
169
|
+
* // value === 42
|
|
170
|
+
*
|
|
171
|
+
* // Example with a callout response object:
|
|
172
|
+
* const calloutResponse = {
|
|
173
|
+
* answers: {
|
|
174
|
+
* 'slide1.input1': 'some answer',
|
|
175
|
+
* 'slide2.input2': 123
|
|
176
|
+
* }
|
|
177
|
+
* };
|
|
178
|
+
* const answer = getByPath(calloutResponse, 'answers.slide1.input1');
|
|
179
|
+
* // answer === 'some answer'
|
|
180
|
+
*/
|
|
181
|
+
export function getByPath(obj, path) {
|
|
182
|
+
return path
|
|
183
|
+
.split('.')
|
|
184
|
+
.reduce((acc, key) => (acc && key in acc ? acc[key] : undefined), obj);
|
|
185
|
+
}
|
|
186
|
+
//# sourceMappingURL=callouts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callouts.js","sourceRoot":"","sources":["../../src/utils/callouts.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert the value to a valid phone number
|
|
3
|
+
* @param value The value to convert
|
|
4
|
+
* @returns The valid phone number or null if the value is not a valid phone number
|
|
5
|
+
*/
|
|
6
|
+
export declare const toPhoneNumber: (value: unknown) => string | false;
|
|
7
|
+
/**
|
|
8
|
+
* Convert the value to a valid bytes number.
|
|
9
|
+
* Note: This method ignores the text case of the unit, so b is always the same as B which means Byte and makes no different between Bytes and bits.
|
|
10
|
+
* This method can be used to convert `fileMinSize` and `fileMaxSize` of a callout file component to bytes.
|
|
11
|
+
* @param value E.g. "0KB", "1GB"
|
|
12
|
+
* @returns The valid bytes number or null if the value is not a valid bytes number.
|
|
13
|
+
*/
|
|
14
|
+
export declare const toBytes: (value: unknown) => number | null;
|
|
15
|
+
//# sourceMappingURL=conversions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversions.d.ts","sourceRoot":"","sources":["../../src/utils/conversions.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,KASvD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,IAcjD,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { isPhoneNumber } from './validations.js';
|
|
2
|
+
/**
|
|
3
|
+
* Convert the value to a valid phone number
|
|
4
|
+
* @param value The value to convert
|
|
5
|
+
* @returns The valid phone number or null if the value is not a valid phone number
|
|
6
|
+
*/
|
|
7
|
+
export const toPhoneNumber = (value) => {
|
|
8
|
+
if (typeof value !== 'string' || !value.length) {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
const result = value.replace(/(?!^\+)\D/g, '');
|
|
12
|
+
if (!isPhoneNumber(result)) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
return result;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Convert the value to a valid bytes number.
|
|
19
|
+
* Note: This method ignores the text case of the unit, so b is always the same as B which means Byte and makes no different between Bytes and bits.
|
|
20
|
+
* This method can be used to convert `fileMinSize` and `fileMaxSize` of a callout file component to bytes.
|
|
21
|
+
* @param value E.g. "0KB", "1GB"
|
|
22
|
+
* @returns The valid bytes number or null if the value is not a valid bytes number.
|
|
23
|
+
*/
|
|
24
|
+
export const toBytes = (value) => {
|
|
25
|
+
if (typeof value !== 'string' || !value.length) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
const lowerCase = value.toLowerCase();
|
|
29
|
+
const units = ['b', 'kb', 'mb', 'gb', 'tb', 'pb', 'eb', 'zb', 'yb'];
|
|
30
|
+
const [, num, unit] = lowerCase.match(/(\d+)(\w+)/);
|
|
31
|
+
const unitIndex = units.indexOf(unit.toLowerCase());
|
|
32
|
+
if (unitIndex === -1) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return Number(num) * Math.pow(1024, unitIndex);
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=conversions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversions.js","sourceRoot":"","sources":["../../src/utils/conversions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAc,EAAkB,EAAE;IAC9D,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QAC/C,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAC/C,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAc,EAAiB,EAAE;IACvD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QAC/C,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,SAAS,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC;IACtC,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACpE,MAAM,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,YAAY,CAAE,CAAC;IACrD,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IAEpD,IAAI,SAAS,KAAK,CAAC,CAAC,EAAE,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AACjD,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DateUnit, Duration } from '../types/index.js';
|
|
2
|
+
export declare const dateUnits: readonly ["s", "m", "h", "d", "M", "y"];
|
|
3
|
+
export declare const dateUnitMap: Record<DateUnit, keyof Duration>;
|
|
4
|
+
export declare function parseDate(value: string, now?: Date): [Date, DateUnit];
|
|
5
|
+
export declare function getMinDateUnit(units: [DateUnit, ...DateUnit[]]): DateUnit;
|
|
6
|
+
export declare function getMinDateUnit(units: DateUnit[]): DateUnit | undefined;
|
|
7
|
+
export declare function isValidDate(s: string | Date): boolean;
|
|
8
|
+
export declare function isDateBetween(date: string | Date, start?: string | Date | null, end?: string | Date | null): boolean;
|
|
9
|
+
//# sourceMappingURL=date.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAe,MAAM,mBAAmB,CAAC;AAGzE,eAAO,MAAM,SAAS,yCAA0C,CAAC;AAEjE,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,QAAQ,CAOxD,CAAC;AAqBF,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,EACb,GAAG,GAAE,IAAiB,GACrB,CAAC,IAAI,EAAE,QAAQ,CAAC,CA2BlB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC,GAAG,QAAQ,CAAC;AAC3E,wBAAgB,cAAc,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,QAAQ,GAAG,SAAS,CAAC;AAKxE,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAKrD;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,EAC5B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GACzB,OAAO,CAWT"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { add, isValid, parseISO, startOfDay, startOfHour, startOfMinute, startOfMonth, startOfSecond, startOfYear, } from 'date-fns';
|
|
2
|
+
// Must be ordered from highest resolution to lowest (seconds to years)
|
|
3
|
+
export const dateUnits = ['s', 'm', 'h', 'd', 'M', 'y'];
|
|
4
|
+
export const dateUnitMap = {
|
|
5
|
+
y: 'years',
|
|
6
|
+
M: 'months',
|
|
7
|
+
d: 'days',
|
|
8
|
+
h: 'hours',
|
|
9
|
+
m: 'minutes',
|
|
10
|
+
s: 'seconds',
|
|
11
|
+
};
|
|
12
|
+
const startOf = {
|
|
13
|
+
y: startOfYear,
|
|
14
|
+
M: startOfMonth,
|
|
15
|
+
d: startOfDay,
|
|
16
|
+
h: startOfHour,
|
|
17
|
+
m: startOfMinute,
|
|
18
|
+
s: startOfSecond,
|
|
19
|
+
};
|
|
20
|
+
const relativeDate = /^\$now(?<units>\(((y|M|d|h|m|s):(-?\d+),?)+\))?$/;
|
|
21
|
+
const relativeUnit = /(y|M|d|h|m|s):(-?\d+)/g;
|
|
22
|
+
// Matches the different parts of an ISO 8601 date. Note we don't validate the
|
|
23
|
+
// pattern properly as that is handled by parseISO, we just want to know which
|
|
24
|
+
// parts of the date were specified
|
|
25
|
+
const absoluteDate = /^(?<y>\d{4,})(-(?<M>\d\d)(-(?<d>\d\d)([T ](?<h>\d\d)(:(?<m>\d\d)(:(?<s>\d\d))?)?)?)?)?/;
|
|
26
|
+
// Convert relative dates and returns the minimum date unit specified
|
|
27
|
+
export function parseDate(value, now = new Date()) {
|
|
28
|
+
let date;
|
|
29
|
+
let units;
|
|
30
|
+
const relativeMatch = relativeDate.exec(value);
|
|
31
|
+
if (relativeMatch) {
|
|
32
|
+
date = now;
|
|
33
|
+
const unitsGroup = relativeMatch.groups?.units;
|
|
34
|
+
if (unitsGroup) {
|
|
35
|
+
const unitMatches = unitsGroup.matchAll(relativeUnit);
|
|
36
|
+
units = [];
|
|
37
|
+
for (const [_, unit, delta] of unitMatches) {
|
|
38
|
+
date = add(date, { [dateUnitMap[unit]]: Number(delta) });
|
|
39
|
+
units.push(unit);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
units = ['d'];
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
date = parseISO(value);
|
|
48
|
+
units = Object.entries(absoluteDate.exec(value)?.groups || {})
|
|
49
|
+
.filter(([_, n]) => !!n)
|
|
50
|
+
.map(([unit]) => unit);
|
|
51
|
+
}
|
|
52
|
+
const minUnit = getMinDateUnit(units) || 's';
|
|
53
|
+
return [startOf[minUnit](date), minUnit];
|
|
54
|
+
}
|
|
55
|
+
export function getMinDateUnit(units) {
|
|
56
|
+
return dateUnits.find((unit) => units.includes(unit));
|
|
57
|
+
}
|
|
58
|
+
export function isValidDate(s) {
|
|
59
|
+
if (typeof s === 'string') {
|
|
60
|
+
return relativeDate.test(s) || isValid(parseISO(s));
|
|
61
|
+
}
|
|
62
|
+
return isValid(s);
|
|
63
|
+
}
|
|
64
|
+
export function isDateBetween(date, start, end) {
|
|
65
|
+
let valid = isValidDate(date);
|
|
66
|
+
if (start) {
|
|
67
|
+
start = typeof start === 'string' ? parseISO(start) : start;
|
|
68
|
+
valid = valid && date >= start;
|
|
69
|
+
}
|
|
70
|
+
if (end) {
|
|
71
|
+
end = typeof end === 'string' ? parseISO(end) : end;
|
|
72
|
+
valid = valid && date <= end;
|
|
73
|
+
}
|
|
74
|
+
return valid;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=date.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a debounced function that delays invoking the provided function
|
|
3
|
+
* until after the specified wait time has elapsed since the last time it was invoked.
|
|
4
|
+
*
|
|
5
|
+
* @param fn - The function to debounce
|
|
6
|
+
* @param wait - The number of milliseconds to delay
|
|
7
|
+
* @returns A debounced version of the function with a cancel method
|
|
8
|
+
*/
|
|
9
|
+
export declare function debounce<T extends (...args: any[]) => any>(fn: T, wait: number): ((...args: Parameters<T>) => void) & {
|
|
10
|
+
cancel: () => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Creates a throttled function that invokes the provided function at most once
|
|
14
|
+
* per specified wait time period.
|
|
15
|
+
*
|
|
16
|
+
* @param fn - The function to throttle
|
|
17
|
+
* @param wait - The number of milliseconds to wait between invocations
|
|
18
|
+
* @returns A throttled version of the function with a cancel method
|
|
19
|
+
*/
|
|
20
|
+
export declare function throttle<T extends (...args: any[]) => any>(fn: T, wait: number): ((...args: Parameters<T>) => void) & {
|
|
21
|
+
cancel: () => void;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=debounce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../src/utils/debounce.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACxD,EAAE,EAAE,CAAC,EACL,IAAI,EAAE,MAAM,GACX,CAAC,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,CAqB7D;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACxD,EAAE,EAAE,CAAC,EACL,IAAI,EAAE,MAAM,GACX,CAAC,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,CA+B7D"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a debounced function that delays invoking the provided function
|
|
3
|
+
* until after the specified wait time has elapsed since the last time it was invoked.
|
|
4
|
+
*
|
|
5
|
+
* @param fn - The function to debounce
|
|
6
|
+
* @param wait - The number of milliseconds to delay
|
|
7
|
+
* @returns A debounced version of the function with a cancel method
|
|
8
|
+
*/
|
|
9
|
+
export function debounce(fn, wait) {
|
|
10
|
+
let timeoutId = null;
|
|
11
|
+
const debounced = function (...args) {
|
|
12
|
+
if (timeoutId !== null) {
|
|
13
|
+
clearTimeout(timeoutId);
|
|
14
|
+
}
|
|
15
|
+
timeoutId = setTimeout(() => {
|
|
16
|
+
fn(...args);
|
|
17
|
+
}, wait);
|
|
18
|
+
};
|
|
19
|
+
debounced.cancel = () => {
|
|
20
|
+
if (timeoutId !== null) {
|
|
21
|
+
clearTimeout(timeoutId);
|
|
22
|
+
timeoutId = null;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return debounced;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Creates a throttled function that invokes the provided function at most once
|
|
29
|
+
* per specified wait time period.
|
|
30
|
+
*
|
|
31
|
+
* @param fn - The function to throttle
|
|
32
|
+
* @param wait - The number of milliseconds to wait between invocations
|
|
33
|
+
* @returns A throttled version of the function with a cancel method
|
|
34
|
+
*/
|
|
35
|
+
export function throttle(fn, wait) {
|
|
36
|
+
let lastCallTime = 0;
|
|
37
|
+
let timeoutId = null;
|
|
38
|
+
const throttled = function (...args) {
|
|
39
|
+
const now = Date.now();
|
|
40
|
+
const timeSinceLastCall = now - lastCallTime;
|
|
41
|
+
if (timeSinceLastCall >= wait) {
|
|
42
|
+
lastCallTime = now;
|
|
43
|
+
fn(...args);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
if (timeoutId !== null) {
|
|
47
|
+
clearTimeout(timeoutId);
|
|
48
|
+
}
|
|
49
|
+
timeoutId = setTimeout(() => {
|
|
50
|
+
lastCallTime = Date.now();
|
|
51
|
+
fn(...args);
|
|
52
|
+
}, wait - timeSinceLastCall);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
throttled.cancel = () => {
|
|
56
|
+
if (timeoutId !== null) {
|
|
57
|
+
clearTimeout(timeoutId);
|
|
58
|
+
timeoutId = null;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
return throttled;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=debounce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounce.js","sourceRoot":"","sources":["../../src/utils/debounce.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,UAAU,QAAQ,CACtB,EAAK,EACL,IAAY;IAEZ,IAAI,SAAS,GAAyC,IAAI,CAAC;IAE3D,MAAM,SAAS,GAAG,UAAU,GAAG,IAAmB;QAChD,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;YACvB,YAAY,CAAC,SAAS,CAAC,CAAC;QAC1B,CAAC;QAED,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE;YAC1B,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,CAAC,EAAE,IAAI,CAAC,CAAC;IACX,CAAC,CAAC;IAEF,SAAS,CAAC,MAAM,GAAG,GAAG,EAAE;QACtB,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;YACvB,YAAY,CAAC,SAAS,CAAC,CAAC;YACxB,SAAS,GAAG,IAAI,CAAC;QACnB,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,QAAQ,CACtB,EAAK,EACL,IAAY;IAEZ,IAAI,YAAY,GAAG,CAAC,CAAC;IACrB,IAAI,SAAS,GAAyC,IAAI,CAAC;IAE3D,MAAM,SAAS,GAAG,UAAU,GAAG,IAAmB;QAChD,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACvB,MAAM,iBAAiB,GAAG,GAAG,GAAG,YAAY,CAAC;QAE7C,IAAI,iBAAiB,IAAI,IAAI,EAAE,CAAC;YAC9B,YAAY,GAAG,GAAG,CAAC;YACnB,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,CAAC;aAAM,CAAC;YACN,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;gBACvB,YAAY,CAAC,SAAS,CAAC,CAAC;YAC1B,CAAC;YAED,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE;gBAC1B,YAAY,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;gBAC1B,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;YACd,CAAC,EAAE,IAAI,GAAG,iBAAiB,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC,CAAC;IAEF,SAAS,CAAC,MAAM,GAAG,GAAG,EAAE;QACtB,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;YACvB,YAAY,CAAC,SAAS,CAAC,CAAC;YACxB,SAAS,GAAG,IAAI,CAAC;QACnB,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if a MIME type is a supported document type.
|
|
3
|
+
* Example: "application/pdf"
|
|
4
|
+
* @param mimetype MIME type to check
|
|
5
|
+
* @returns True if it's a supported document type
|
|
6
|
+
*/
|
|
7
|
+
export declare const isSupportedDocumentType: (mimetype?: string) => boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Check if an extension is a supported document extension.
|
|
10
|
+
* Example: "pdf"
|
|
11
|
+
* @param extension Extension to check
|
|
12
|
+
* @returns True if it's a supported document extension
|
|
13
|
+
*/
|
|
14
|
+
export declare const isSupportedDocumentExtension: (extension?: string) => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Check if a MIME type is a supported image type.
|
|
17
|
+
* Example: "image/jpeg", "image/png", "image/webp", "image/avif"
|
|
18
|
+
* @param mimetype MIME type to check
|
|
19
|
+
* @returns True if it's a supported image type
|
|
20
|
+
*/
|
|
21
|
+
export declare const isSupportedImageType: (mimetype?: string) => boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Check if an extension is a supported image extension.
|
|
24
|
+
* Example: "jpg", "png", "webp", "avif"
|
|
25
|
+
* @param extension Extension to check
|
|
26
|
+
* @returns True if it's a supported image extension
|
|
27
|
+
*/
|
|
28
|
+
export declare const isSupportedImageExtension: (extension?: string) => boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Converts byte size to a human-readable string representation
|
|
31
|
+
*
|
|
32
|
+
* This function takes a size in bytes and converts it to a human-readable
|
|
33
|
+
* format with appropriate units (B, KB, MB, GB, TB). The result is formatted
|
|
34
|
+
* with two decimal places.
|
|
35
|
+
*
|
|
36
|
+
* @param bytes - The file size in bytes to convert
|
|
37
|
+
* @returns A formatted string with size and unit (e.g., "15.50 MB")
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* bytesToHumanReadable(1500000); // "1.43 MB"
|
|
42
|
+
* bytesToHumanReadable(1024); // "1.00 KB"
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare const bytesToHumanReadable: (bytes: number) => string;
|
|
46
|
+
//# sourceMappingURL=file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/utils/file.ts"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAAI,WAAW,MAAM,KAAG,OAG3D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,GAAI,YAAY,MAAM,KAAG,OAGjE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,WAAW,MAAM,KAAG,OAGxD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,GAAI,YAAY,MAAM,KAAG,OAG9D,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,MAAM,KAAG,MAWpD,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ALLOWED_DOCUMENT_EXTENSIONS, ALLOWED_DOCUMENT_MIME_TYPES, ALLOWED_IMAGE_EXTENSIONS, ALLOWED_IMAGE_MIME_TYPES, } from '../constants.js';
|
|
2
|
+
/**
|
|
3
|
+
* Check if a MIME type is a supported document type.
|
|
4
|
+
* Example: "application/pdf"
|
|
5
|
+
* @param mimetype MIME type to check
|
|
6
|
+
* @returns True if it's a supported document type
|
|
7
|
+
*/
|
|
8
|
+
export const isSupportedDocumentType = (mimetype) => {
|
|
9
|
+
if (!mimetype)
|
|
10
|
+
return false;
|
|
11
|
+
return ALLOWED_DOCUMENT_MIME_TYPES.includes(mimetype.toLowerCase().trim());
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Check if an extension is a supported document extension.
|
|
15
|
+
* Example: "pdf"
|
|
16
|
+
* @param extension Extension to check
|
|
17
|
+
* @returns True if it's a supported document extension
|
|
18
|
+
*/
|
|
19
|
+
export const isSupportedDocumentExtension = (extension) => {
|
|
20
|
+
if (!extension)
|
|
21
|
+
return false;
|
|
22
|
+
return ALLOWED_DOCUMENT_EXTENSIONS.includes(extension.toLowerCase().trim());
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a MIME type is a supported image type.
|
|
26
|
+
* Example: "image/jpeg", "image/png", "image/webp", "image/avif"
|
|
27
|
+
* @param mimetype MIME type to check
|
|
28
|
+
* @returns True if it's a supported image type
|
|
29
|
+
*/
|
|
30
|
+
export const isSupportedImageType = (mimetype) => {
|
|
31
|
+
if (!mimetype)
|
|
32
|
+
return false;
|
|
33
|
+
return ALLOWED_IMAGE_MIME_TYPES.includes(mimetype.toLowerCase().trim());
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Check if an extension is a supported image extension.
|
|
37
|
+
* Example: "jpg", "png", "webp", "avif"
|
|
38
|
+
* @param extension Extension to check
|
|
39
|
+
* @returns True if it's a supported image extension
|
|
40
|
+
*/
|
|
41
|
+
export const isSupportedImageExtension = (extension) => {
|
|
42
|
+
if (!extension)
|
|
43
|
+
return false;
|
|
44
|
+
return ALLOWED_IMAGE_EXTENSIONS.includes(extension.toLowerCase().trim());
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Converts byte size to a human-readable string representation
|
|
48
|
+
*
|
|
49
|
+
* This function takes a size in bytes and converts it to a human-readable
|
|
50
|
+
* format with appropriate units (B, KB, MB, GB, TB). The result is formatted
|
|
51
|
+
* with two decimal places.
|
|
52
|
+
*
|
|
53
|
+
* @param bytes - The file size in bytes to convert
|
|
54
|
+
* @returns A formatted string with size and unit (e.g., "15.50 MB")
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* bytesToHumanReadable(1500000); // "1.43 MB"
|
|
59
|
+
* bytesToHumanReadable(1024); // "1.00 KB"
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export const bytesToHumanReadable = (bytes) => {
|
|
63
|
+
const units = ['B', 'KB', 'MB', 'GB', 'TB'];
|
|
64
|
+
let index = 0;
|
|
65
|
+
let value = bytes;
|
|
66
|
+
while (value >= 1024 && index < units.length - 1) {
|
|
67
|
+
value /= 1024;
|
|
68
|
+
index++;
|
|
69
|
+
}
|
|
70
|
+
return `${value.toFixed(2)} ${units[index]}`;
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../src/utils/file.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AAEzB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,QAAiB,EAAW,EAAE;IACpE,IAAI,CAAC,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5B,OAAO,2BAA2B,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;AAC7E,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,SAAkB,EAAW,EAAE;IAC1E,IAAI,CAAC,SAAS;QAAE,OAAO,KAAK,CAAC;IAC7B,OAAO,2BAA2B,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;AAC9E,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,QAAiB,EAAW,EAAE;IACjE,IAAI,CAAC,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5B,OAAO,wBAAwB,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;AAC1E,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,SAAkB,EAAW,EAAE;IACvE,IAAI,CAAC,SAAS;QAAE,OAAO,KAAK,CAAC;IAC7B,OAAO,wBAAwB,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;AAC3E,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAa,EAAU,EAAE;IAC5D,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5C,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,KAAK,GAAG,KAAK,CAAC;IAElB,OAAO,KAAK,IAAI,IAAI,IAAI,KAAK,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACjD,KAAK,IAAI,IAAI,CAAC;QACd,KAAK,EAAE,CAAC;IACV,CAAC;IAED,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;AAC/C,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './callouts.js';
|
|
2
|
+
export * from './conversions.js';
|
|
3
|
+
export * from './date.js';
|
|
4
|
+
export * from './debounce.js';
|
|
5
|
+
export * from './file.js';
|
|
6
|
+
export * from './payments.js';
|
|
7
|
+
export * from './rules.js';
|
|
8
|
+
export * from './slug.js';
|
|
9
|
+
export * from './url.js';
|
|
10
|
+
export * from './validations.js';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Auto-generated by `@beabee/dev-cli generate-index`. Do not edit by hand.
|
|
2
|
+
export * from './callouts.js';
|
|
3
|
+
export * from './conversions.js';
|
|
4
|
+
export * from './date.js';
|
|
5
|
+
export * from './debounce.js';
|
|
6
|
+
export * from './file.js';
|
|
7
|
+
export * from './payments.js';
|
|
8
|
+
export * from './rules.js';
|
|
9
|
+
export * from './slug.js';
|
|
10
|
+
export * from './url.js';
|
|
11
|
+
export * from './validations.js';
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../src/utils/payments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AA6BnE,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,gBAAgB,GACxB,MAAM,CAiBR"}
|