import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { FormSubmission, CheckForSpamResponse, FormSpamSubmissionReport, CreateFormSpamSubmissionReportValidationErrors, BulkDeleteFormSpamSubmissionReportOptions, BulkDeleteFormSpamSubmissionReportResponse, BulkDeleteFormSpamSubmissionReportByFilterResponse, ReportNotSpamSubmissionResponse, BulkReportNotSpamSubmissionOptions, BulkReportNotSpamSubmissionResponse, ReportReasonWithLiterals, ReportSpamSubmissionOptions, ReportSpamSubmissionResponse, BulkReportSpamSubmissionOptions, BulkReportSpamSubmissionResponse, CountFormSpamSubmissionReportsResponse, FormSpamSubmissionReportsQueryBuilder, FormSpamSubmissionReportQuery, typedQueryFormSpamSubmissionReportsByNamespace } from './index.typings.js'; export { AccountInfo, ActionEvent, ApplicationError, AppointmentDetails, BulkActionMetadata, BulkDeleteFormSpamSubmissionReportByFilterRequest, BulkDeleteFormSpamSubmissionReportRequest, BulkDeleteFormSpamSubmissionReportResult, BulkReportNotSpamSubmissionRequest, BulkReportNotSpamSubmissionResult, BulkReportSpamSubmissionRequest, BulkReportSpamSubmissionResult, CheckForSpamRequest, CommonQueryWithEntityContext, CountFormSpamSubmissionReportsRequest, CreateFormSpamSubmissionReportRequest, CreateFormSpamSubmissionReportResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteFormSpamSubmissionReportRequest, DeleteFormSpamSubmissionReportResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorType, ErrorTypeWithLiterals, ExtendedFields, FormSpamSubmissionReportQuerySpec, FormSpamSubmissionReportValidationErrorsDetails, FormSpamSubmissionReportsCount, FormSpamSubmissionReportsQueryResult, FormSubmissionOrderDetails, GetFormSpamSubmissionReportRequest, GetFormSpamSubmissionReportResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, OrderDetails, PublicTags, QueryFormSpamSubmissionReportsByNamespaceRequest, QueryFormSpamSubmissionReportsByNamespaceResponse, ReportNotSpamSubmissionRequest, ReportReason, ReportSpamSubmissionRequest, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, SpamReport, SubmissionStatus, SubmissionStatusWithLiterals, Submitter, SubmitterSubmitterOneOf, TagList, ValidationError, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js'; declare function checkForSpam$1(httpClient: HttpClient): CheckForSpamSignature; interface CheckForSpamSignature { /** * Checks whether a submission is spam. * * Which checks run depends on the form's `spamFilterProtectionLevel` in the [Form Schemas API](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/introduction). * * This method returns the result only. It doesn't store a form spam submission report. To move a saved submission to spam, call [Report Spam Submission](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/report-spam-submission). To store a spam submission that wasn't saved, call [Create Form Spam Submission Report](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/create-form-spam-submission-report). * * Supported only for forms in the Wix Forms namespace, `wix.form_app.form`. Calls for forms in other namespaces fail with a permission error. * @param - Submission to check. */ (submission: NonNullablePaths): Promise>; } declare function createFormSpamSubmissionReport$1(httpClient: HttpClient): CreateFormSpamSubmissionReportSignature; interface CreateFormSpamSubmissionReportSignature { /** * Creates a form spam submission report. * * Use this method to store a spam submission that wasn't saved as a regular submission. To move a saved submission to spam, call [Report Spam Submission](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/report-spam-submission) instead. It creates the report and deletes the submission. * * The submitted values are validated against the form's fields. To upload files for the submission, call [Get Media Upload URL](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/get-media-upload-url) in the Form Submissions API. * @param - Form spam submission report to create. * @returns Created form spam submission report. */ (formSpamSubmissionReport: NonNullablePaths): Promise & { __validationErrorsType?: CreateFormSpamSubmissionReportValidationErrors; }>; } declare function getFormSpamSubmissionReport$1(httpClient: HttpClient): GetFormSpamSubmissionReportSignature; interface GetFormSpamSubmissionReportSignature { /** * Retrieves a form spam submission report. * @param - ID of the form spam submission report to retrieve. * @returns Retrieved form spam submission report. */ (formSpamSubmissionReportId: string): Promise>; } declare function deleteFormSpamSubmissionReport$1(httpClient: HttpClient): DeleteFormSpamSubmissionReportSignature; interface DeleteFormSpamSubmissionReportSignature { /** * Permanently deletes a form spam submission report. * * The report's uploaded files are also deleted. To restore the submission instead, call [Report Not Spam Submission](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/report-not-spam-submission). * * To delete multiple reports in a single API call, call [Bulk Delete Form Spam Submission Report](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/bulk-delete-form-spam-submission-report). * @param - ID of the form spam submission report to delete. */ (formSpamSubmissionReportId: string): Promise; } declare function bulkDeleteFormSpamSubmissionReport$1(httpClient: HttpClient): BulkDeleteFormSpamSubmissionReportSignature; interface BulkDeleteFormSpamSubmissionReportSignature { /** * Permanently deletes multiple form spam submission reports of a form. * * The reports' uploaded files are also deleted. Report IDs that don't exist or that belong to another form are skipped. * * To delete all reports that match a filter, call [Bulk Delete Form Spam Submission Report By Filter](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/bulk-delete-form-spam-submission-report-by-filter). * * To delete a single report, call [Delete Form Spam Submission Report](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/delete-form-spam-submission-report). * @param - ID of the form that the reports belong to. */ (formId: string, options?: BulkDeleteFormSpamSubmissionReportOptions): Promise>; } declare function bulkDeleteFormSpamSubmissionReportByFilter$1(httpClient: HttpClient): BulkDeleteFormSpamSubmissionReportByFilterSignature; interface BulkDeleteFormSpamSubmissionReportByFilterSignature { /** * Asynchronously deletes the form spam submission reports that match a filter. * * The filter must include `namespace` and `formId`. If no reports match the filter, the call fails with a `NOT_FOUND` error. The reports' uploaded files are also deleted. * * To check the status of the deletion, pass the returned `jobId` to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job). * * To delete specific reports by ID, call [Bulk Delete Form Spam Submission Report](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/bulk-delete-form-spam-submission-report). * @param - Filter object. See [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language) for more information. * * Must include `namespace` and `formId`. */ (filter: Record): Promise>; } declare function reportNotSpamSubmission$1(httpClient: HttpClient): ReportNotSpamSubmissionSignature; interface ReportNotSpamSubmissionSignature { /** * Restores a spam submission as a regular submission. * * A new submission is created from the report's data, with a new submission ID, and the report is deleted shortly after. A submission that was `PENDING` when reported is restored as `CONFIRMED`. Any other status is kept. Submission automations run as they do for any new submission, and uploaded files are kept. * * Supported only for forms in the Wix Forms namespace, `wix.form_app.form`. * * To restore multiple submissions in a single API call, call [Bulk Report Not Spam Submission](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/bulk-report-not-spam-submission). * @param - ID of the form spam submission report to restore. */ (formSpamSubmissionReportId: string): Promise>; } declare function bulkReportNotSpamSubmission$1(httpClient: HttpClient): BulkReportNotSpamSubmissionSignature; interface BulkReportNotSpamSubmissionSignature { /** * Restores multiple spam submissions of a form as regular submissions. * * For each report, a new submission is created from the report's data, with a new submission ID, and the report is deleted shortly after. A submission that was `PENDING` when reported is restored as `CONFIRMED`. Any other status is kept. Submission automations run as they do for any new submission. * * In the results, `itemMetadata.id` is the ID of the new submission. Report IDs that don't exist or that belong to another form are skipped. * * To restore a single submission, call [Report Not Spam Submission](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/report-not-spam-submission). * @param - ID of the form that the reports belong to. */ (formId: string, options?: BulkReportNotSpamSubmissionOptions): Promise>; } declare function reportSpamSubmission$1(httpClient: HttpClient): ReportSpamSubmissionSignature; interface ReportSpamSubmissionSignature { /** * Reports a submission as spam. * * A form spam submission report is created from the submission, and the submission is deleted shortly after. * * Supported only for forms in the Wix Forms namespace, `wix.form_app.form`. * * To store a spam submission that wasn't saved as a regular submission, call [Create Form Spam Submission Report](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/create-form-spam-submission-report). To report multiple submissions in a single API call, call [Bulk Report Spam Submission](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/bulk-report-spam-submission). * @param - ID of the submission to report as spam. * @param - Reason the submission is reported as spam. */ (submissionId: string, reportReason: ReportReasonWithLiterals, options?: ReportSpamSubmissionOptions): Promise>; } declare function bulkReportSpamSubmission$1(httpClient: HttpClient): BulkReportSpamSubmissionSignature; interface BulkReportSpamSubmissionSignature { /** * Reports multiple submissions of a form as spam. * * For each submission, a form spam submission report is created, and the submission is deleted shortly after. Submission IDs that don't exist or that belong to another form are skipped. * * To report a single submission, call [Report Spam Submission](https://dev.wix.com/docs/api-reference/crm/forms/spam-submissions/report-spam-submission). * @param - ID of the form that the submissions belong to. */ (formId: string, options?: NonNullablePaths): Promise>; } declare function countFormSpamSubmissionReports$1(httpClient: HttpClient): CountFormSpamSubmissionReportsSignature; interface CountFormSpamSubmissionReportsSignature { /** * Counts the form spam submission reports of the specified forms. * * Forms with no reports aren't included in the response. * @param - IDs of the forms to count reports for. * @param - Namespace of the app that the forms belong to. * * Currently supports `wix.form_app.form`, the namespace of the Wix Forms app. */ (formIds: string[], namespace: string): Promise>; } declare function customQueryFormSpamSubmissionReportsByNamespace(httpClient: HttpClient): { (): FormSpamSubmissionReportsQueryBuilder; (query: FormSpamSubmissionReportQuery): ReturnType; }; declare const checkForSpam: MaybeContext & typeof checkForSpam$1>; declare const createFormSpamSubmissionReport: MaybeContext & typeof createFormSpamSubmissionReport$1>; declare const getFormSpamSubmissionReport: MaybeContext & typeof getFormSpamSubmissionReport$1>; declare const deleteFormSpamSubmissionReport: MaybeContext & typeof deleteFormSpamSubmissionReport$1>; declare const bulkDeleteFormSpamSubmissionReport: MaybeContext & typeof bulkDeleteFormSpamSubmissionReport$1>; declare const bulkDeleteFormSpamSubmissionReportByFilter: MaybeContext & typeof bulkDeleteFormSpamSubmissionReportByFilter$1>; declare const reportNotSpamSubmission: MaybeContext & typeof reportNotSpamSubmission$1>; declare const bulkReportNotSpamSubmission: MaybeContext & typeof bulkReportNotSpamSubmission$1>; declare const reportSpamSubmission: MaybeContext & typeof reportSpamSubmission$1>; declare const bulkReportSpamSubmission: MaybeContext & typeof bulkReportSpamSubmission$1>; declare const countFormSpamSubmissionReports: MaybeContext & typeof countFormSpamSubmissionReports$1>; declare const queryFormSpamSubmissionReportsByNamespace: MaybeContext & typeof customQueryFormSpamSubmissionReportsByNamespace>; export { BulkDeleteFormSpamSubmissionReportByFilterResponse, BulkDeleteFormSpamSubmissionReportOptions, BulkDeleteFormSpamSubmissionReportResponse, BulkReportNotSpamSubmissionOptions, BulkReportNotSpamSubmissionResponse, BulkReportSpamSubmissionOptions, BulkReportSpamSubmissionResponse, CheckForSpamResponse, CountFormSpamSubmissionReportsResponse, CreateFormSpamSubmissionReportValidationErrors, FormSpamSubmissionReport, FormSpamSubmissionReportQuery, FormSpamSubmissionReportsQueryBuilder, FormSubmission, ReportNotSpamSubmissionResponse, ReportReasonWithLiterals, ReportSpamSubmissionOptions, ReportSpamSubmissionResponse, bulkDeleteFormSpamSubmissionReport, bulkDeleteFormSpamSubmissionReportByFilter, bulkReportNotSpamSubmission, bulkReportSpamSubmission, checkForSpam, countFormSpamSubmissionReports, createFormSpamSubmissionReport, deleteFormSpamSubmissionReport, getFormSpamSubmissionReport, queryFormSpamSubmissionReportsByNamespace, reportNotSpamSubmission, reportSpamSubmission };