@wix/auto_sdk_forms_form-spam-submission-reports 1.0.7 → 1.0.9

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.
@@ -461,6 +461,9 @@ var ErrorType = /* @__PURE__ */ ((ErrorType2) => {
461
461
  ErrorType2["INVALID_PHONE_COUNTRY_CODE_ERROR"] = "INVALID_PHONE_COUNTRY_CODE_ERROR";
462
462
  ErrorType2["INVALID_STAFF_ID_ERROR"] = "INVALID_STAFF_ID_ERROR";
463
463
  ErrorType2["INVALID_LOCATION_ID_ERROR"] = "INVALID_LOCATION_ID_ERROR";
464
+ ErrorType2["MISSING_SERVICE_OPTION_ERROR"] = "MISSING_SERVICE_OPTION_ERROR";
465
+ ErrorType2["INVALID_SERVICE_OPTIONS_ERROR"] = "INVALID_SERVICE_OPTIONS_ERROR";
466
+ ErrorType2["NO_AVAILABLE_SERVICE_OPTIONS_ERROR"] = "NO_AVAILABLE_SERVICE_OPTIONS_ERROR";
464
467
  return ErrorType2;
465
468
  })(ErrorType || {});
466
469
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.ts","../../src/forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.ts","../../src/forms-v4-form-spam-submission-report-form-spam-submission-reports.http.ts","../../src/forms-v4-form-spam-submission-report-form-spam-submission-reports.public.ts","../../src/forms-v4-form-spam-submission-report-form-spam-submission-reports.context.ts"],"sourcesContent":["export * from './src/forms-v4-form-spam-submission-report-form-spam-submission-reports.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixFormsV4FormSpamSubmissionReport from './forms-v4-form-spam-submission-report-form-spam-submission-reports.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/**\n * FormSpamSubmissionReportReport stores a form submission spam report.\n * It contains submission details as well as report reason.\n */\nexport interface FormSpamSubmissionReport {\n /**\n * Form spam submission report id.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Id of a form to which the form spam submission report belongs.\n * @format GUID\n * @immutable\n */\n formId?: string;\n /**\n * Form namespace to which the form spam submission report belongs.\n * @minLength 10\n * @maxLength 50\n * @readonly\n */\n namespace?: string;\n /**\n * Form submission submitter id.\n * @immutable\n */\n submitter?: Submitter;\n /**\n * Submission values where key is a target of a form field and value is a submissions for the given field.\n * @immutable\n */\n submissions?: Record<string, any>;\n /**\n * Identifies the reason why the submission was reported as spam.\n * @immutable\n */\n reportReason?: ReportReasonWithLiterals;\n /**\n * Date of submission creation. If a submission was created in the past, pass the original submission creation date.\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * Date of form spam submission report creation.\n * @readonly\n */\n reportedDate?: Date | null;\n /**\n * Date of last update.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision.\n * @readonly\n */\n revision?: string | null;\n /** Data extensions ExtendedFields. */\n extendedFields?: ExtendedFields;\n /** Last status of the submission at the time of the report */\n submissionStatusAtReport?: SubmissionStatusWithLiterals;\n /** Order details. */\n orderDetails?: OrderDetails;\n /**\n * Contact ID. Member who created the submission, or a mapped contact.\n * @format GUID\n * @readonly\n */\n contactId?: string | null;\n /**\n * authorized viewer user id\n * @format GUID\n * @immutable\n */\n accessRestriction?: string | null;\n /**\n * Report reason description\n * @minLength 1\n * @maxLength 255\n */\n reportReasonDescription?: string | null;\n}\n\nexport interface Submitter extends SubmitterSubmitterOneOf {\n /**\n * Member ID.\n * @format GUID\n */\n memberId?: string | null;\n /**\n * Visitor ID.\n * @format GUID\n */\n visitorId?: string | null;\n /**\n * Application ID.\n * @maxLength 36\n */\n applicationId?: string | null;\n /**\n * User ID.\n * @format GUID\n */\n userId?: string | null;\n}\n\n/** @oneof */\nexport interface SubmitterSubmitterOneOf {\n /**\n * Member ID.\n * @format GUID\n */\n memberId?: string | null;\n /**\n * Visitor ID.\n * @format GUID\n */\n visitorId?: string | null;\n /**\n * Application ID.\n * @maxLength 36\n */\n applicationId?: string | null;\n /**\n * User ID.\n * @format GUID\n */\n userId?: string | null;\n}\n\nexport enum ReportReason {\n UNKNOWN_REASON = 'UNKNOWN_REASON',\n /** An email quota is reached. There were too many submissions in a short time period with the same email. */\n EMAIL_QUOTA_REACHED = 'EMAIL_QUOTA_REACHED',\n /** An IP address is is blocklisted. */\n IP_BLOCKLISTED = 'IP_BLOCKLISTED',\n /** An email is is blocklisted. */\n EMAIL_BLOCKLISTED = 'EMAIL_BLOCKLISTED',\n /** Reported spam by the AI spam detection model. It uses submission text as an input. */\n AI_REPORTED = 'AI_REPORTED',\n /** Reported as spam by a submission manager. */\n MANUALLY_REPORTED = 'MANUALLY_REPORTED',\n /** Reported as spam by an implementation of the FormSubmissionModerationSpi. */\n MODERATION_SPI = 'MODERATION_SPI',\n}\n\n/** @enumType */\nexport type ReportReasonWithLiterals =\n | ReportReason\n | 'UNKNOWN_REASON'\n | 'EMAIL_QUOTA_REACHED'\n | 'IP_BLOCKLISTED'\n | 'EMAIL_BLOCKLISTED'\n | 'AI_REPORTED'\n | 'MANUALLY_REPORTED'\n | 'MODERATION_SPI';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport enum SubmissionStatus {\n UNKNOWN_SUBMISSION_STATUS = 'UNKNOWN_SUBMISSION_STATUS',\n /** A submission is created, but has not yet been recorded in the Wix Forms collection. */\n PENDING = 'PENDING',\n /** A submission is recorded in the Wix Forms collection. */\n CONFIRMED = 'CONFIRMED',\n /** A form submission requiring payment is created. */\n PAYMENT_WAITING = 'PAYMENT_WAITING',\n /** An order of a form submission is canceled. */\n PAYMENT_CANCELED = 'PAYMENT_CANCELED',\n}\n\n/** @enumType */\nexport type SubmissionStatusWithLiterals =\n | SubmissionStatus\n | 'UNKNOWN_SUBMISSION_STATUS'\n | 'PENDING'\n | 'CONFIRMED'\n | 'PAYMENT_WAITING'\n | 'PAYMENT_CANCELED';\n\nexport interface OrderDetails {\n /**\n * ID of the checkout related to submission (applicable if form has payments added).\n * @format GUID\n * @readonly\n */\n checkoutId?: string;\n}\n\nexport interface CheckForSpamRequest {\n /** Form submission. */\n submission: FormSubmission;\n}\n\n/** Form submission that was created or retrieved. */\nexport interface FormSubmission {\n /**\n * Submission ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * ID of the form which the submission belongs to.\n * @format GUID\n * @immutable\n */\n formId?: string;\n /**\n * The app which the form submissions belong to. For example, the namespace for the Wix Forms app is `wix.form_app.form`. Call `Get Submission` to retrieve the namespace.\n * @minLength 10\n * @maxLength 50\n * @readonly\n */\n namespace?: string;\n /** Status of the submission. */\n status?: SubmissionStatusWithLiterals;\n /** Submission values where `key` is the form field and `value` is the data submitted for the given field. */\n submissions?: Record<string, any>;\n /**\n * Date and time the form submission was created.\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * Date and time the form submission was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Revision number, which increments by 1 each time the form submission is updated. To prevent conflicting changes, the existing revision must be used when updating a form submission.\n * @readonly\n */\n revision?: string | null;\n /**\n * ID of the visitor that submitted the form.\n * @readonly\n */\n submitter?: Submitter;\n /** Whether a site owner marked a submission as \"seen\". */\n seen?: boolean;\n /** Data extension object that holds users' and apps' fields. */\n extendedFields?: ExtendedFields;\n /**\n * Order details. <br>\n * <b>Note</b>: This object is only applicable when submitting a form in the Wix Payments app.\n */\n orderDetails?: FormSubmissionOrderDetails;\n /**\n * Contact ID of a site visitor who created the submission.\n * @format GUID\n * @immutable\n */\n contactId?: string | null;\n /**\n * Authorized viewer ID.\n * @format GUID\n * @immutable\n */\n accessRestriction?: string | null;\n /** Tag IDs collections associated with the current entity. */\n tags?: PublicTags;\n}\n\nexport interface FormSubmissionOrderDetails {\n /**\n * ID of the order related to submission (only applicable if a form has payments).\n * @format GUID\n * @readonly\n */\n orderId?: string | null;\n /**\n * Order number.\n * @readonly\n */\n number?: string | null;\n /**\n * Currency.\n * @format CURRENCY\n * @readonly\n */\n currency?: string | null;\n /**\n * Item subtotal.\n * @decimalValue options { gte:0.00, maxScale:2 }\n * @readonly\n */\n itemSubtotal?: string;\n /**\n * ID of the checkout related to submission (only applicable if a form has payments).\n * @format GUID\n * @readonly\n */\n checkoutId?: string;\n}\n\nexport interface PublicTags {\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n tags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\nexport interface CheckForSpamResponse {\n /** Is the submission a spam. */\n spam?: boolean;\n /** Spam report details. Filled when spam == true */\n spamReport?: SpamReport;\n}\n\nexport interface SpamReport {\n /** Identifies the reason why the submission was reported as spam. */\n reportReason?: ReportReasonWithLiterals;\n /**\n * Report reason description\n * @minLength 1\n * @maxLength 255\n */\n reportReasonDescription?: string | null;\n}\n\nexport interface CreateFormSpamSubmissionReportRequest {\n /** Form spam submission report to be created. */\n formSpamSubmissionReport: FormSpamSubmissionReport;\n}\n\nexport interface CreateFormSpamSubmissionReportResponse {\n /** The created form spam submission report. */\n formSpamSubmissionReport?: FormSpamSubmissionReport;\n}\n\nexport interface FormSpamSubmissionReportValidationErrorsDetails {\n /**\n * Submission validation errors details.\n * @maxSize 100\n */\n errors?: ValidationError[];\n}\n\nexport interface ValidationError {\n /**\n * Path indicating the source of the error, such as `submission.submissions.email``\n * @maxLength 1000\n */\n errorPath?: string;\n /** Error type. */\n errorType?: ErrorTypeWithLiterals;\n /**\n * Error message.\n * @maxLength 1000\n */\n errorMessage?: string;\n /** Additional error parameters, to help identify additional info. */\n params?: Record<string, any> | null;\n /**\n * Whether to use a custom error message.\n * If `false`, the API takes the message from the `errorType` field.\n * Default: `false`\n */\n useCustomErrorMessage?: boolean;\n}\n\nexport enum ErrorType {\n /** Error is unknown or not suitable for any of options bellow */\n UNKNOWN_ERROR = 'UNKNOWN_ERROR',\n /** Type of submitted value is incorrect */\n TYPE_ERROR = 'TYPE_ERROR',\n /** Value is required to be provided */\n REQUIRED_VALUE_ERROR = 'REQUIRED_VALUE_ERROR',\n /** Value contains additional properties not expected in schema */\n UNKNOWN_VALUE_ERROR = 'UNKNOWN_VALUE_ERROR',\n /** Text value exceeds max length */\n MAX_LENGTH_ERROR = 'MAX_LENGTH_ERROR',\n /** Text value not reaches min length */\n MIN_LENGTH_ERROR = 'MIN_LENGTH_ERROR',\n /** Text value not applicable for expected pattern */\n PATTERN_ERROR = 'PATTERN_ERROR',\n /** Text value not applicable for expected format */\n FORMAT_ERROR = 'FORMAT_ERROR',\n /** Number value is too big */\n MAX_VALUE_ERROR = 'MAX_VALUE_ERROR',\n /** Number value is too small */\n MIN_VALUE_ERROR = 'MIN_VALUE_ERROR',\n /** Number value is not multiple of expected number */\n MULTIPLE_OF_VALUE_ERROR = 'MULTIPLE_OF_VALUE_ERROR',\n /** Array value has too much items */\n MIN_ITEMS_ERROR = 'MIN_ITEMS_ERROR',\n /** Array value has not enough items */\n MAX_ITEMS_ERROR = 'MAX_ITEMS_ERROR',\n /** Value is not in list of allowed values */\n NOT_ALLOWED_VALUE_ERROR = 'NOT_ALLOWED_VALUE_ERROR',\n /** Form fields are incompatible */\n FIELDS_COMPATIBILITY_ERROR = 'FIELDS_COMPATIBILITY_ERROR',\n /** Submitted form is disabled */\n DISABLED_FORM_ERROR = 'DISABLED_FORM_ERROR',\n /** Too much forms */\n FORMS_COUNT_RESTRICTIONS_ERROR = 'FORMS_COUNT_RESTRICTIONS_ERROR',\n /** Too much fields on form */\n FIELDS_COUNT_RESTRICTIONS_ERROR = 'FIELDS_COUNT_RESTRICTIONS_ERROR',\n /** Too much steps on forms */\n STEPS_COUNT_RESTRICTIONS_ERROR = 'STEPS_COUNT_RESTRICTIONS_ERROR',\n /** Too much rules on forms */\n RULES_COUNT_RESTRICTIONS_ERROR = 'RULES_COUNT_RESTRICTIONS_ERROR',\n /** File upload is not allowed */\n FILE_UPLOAD_RESTRICTIONS_ERROR = 'FILE_UPLOAD_RESTRICTIONS_ERROR',\n /** Country code is not correct or missing from the phone number */\n INVALID_PHONE_COUNTRY_CODE_ERROR = 'INVALID_PHONE_COUNTRY_CODE_ERROR',\n /** Invalid staff member ID on appointment */\n INVALID_STAFF_ID_ERROR = 'INVALID_STAFF_ID_ERROR',\n /** Invalid business location ID on appointment */\n INVALID_LOCATION_ID_ERROR = 'INVALID_LOCATION_ID_ERROR',\n}\n\n/** @enumType */\nexport type ErrorTypeWithLiterals =\n | ErrorType\n | 'UNKNOWN_ERROR'\n | 'TYPE_ERROR'\n | 'REQUIRED_VALUE_ERROR'\n | 'UNKNOWN_VALUE_ERROR'\n | 'MAX_LENGTH_ERROR'\n | 'MIN_LENGTH_ERROR'\n | 'PATTERN_ERROR'\n | 'FORMAT_ERROR'\n | 'MAX_VALUE_ERROR'\n | 'MIN_VALUE_ERROR'\n | 'MULTIPLE_OF_VALUE_ERROR'\n | 'MIN_ITEMS_ERROR'\n | 'MAX_ITEMS_ERROR'\n | 'NOT_ALLOWED_VALUE_ERROR'\n | 'FIELDS_COMPATIBILITY_ERROR'\n | 'DISABLED_FORM_ERROR'\n | 'FORMS_COUNT_RESTRICTIONS_ERROR'\n | 'FIELDS_COUNT_RESTRICTIONS_ERROR'\n | 'STEPS_COUNT_RESTRICTIONS_ERROR'\n | 'RULES_COUNT_RESTRICTIONS_ERROR'\n | 'FILE_UPLOAD_RESTRICTIONS_ERROR'\n | 'INVALID_PHONE_COUNTRY_CODE_ERROR'\n | 'INVALID_STAFF_ID_ERROR'\n | 'INVALID_LOCATION_ID_ERROR';\n\nexport interface GetFormSpamSubmissionReportRequest {\n /**\n * Id of the form spam submission report to retrieve.\n * @format GUID\n */\n formSpamSubmissionReportId: string;\n}\n\nexport interface GetFormSpamSubmissionReportResponse {\n /** The retrieved form spam submission report. */\n formSpamSubmissionReport?: FormSpamSubmissionReport;\n}\n\nexport interface DeleteFormSpamSubmissionReportRequest {\n /**\n * Id of the form spam submission report to delete.\n * @format GUID\n */\n formSpamSubmissionReportId: string;\n}\n\nexport interface DeleteFormSpamSubmissionReportResponse {}\n\nexport interface BulkDeleteFormSpamSubmissionReportRequest {\n /**\n * Form ID.\n * @format GUID\n */\n formId: string;\n /**\n * Ids of the form spam submission reports to delete.\n * @maxSize 100\n * @format GUID\n */\n formSpamSubmissionReportIds?: string[];\n}\n\nexport interface BulkDeleteFormSpamSubmissionReportResponse {\n /**\n * Results of bulk report delete\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkDeleteFormSpamSubmissionReportResult[];\n /** Metadata of request */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteFormSpamSubmissionReportResult {\n /** Deleted item metadata */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\n * @format GUID\n */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface BulkDeleteFormSpamSubmissionReportByFilterRequest {\n /**\n * Filter object.\n *\n * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.\n */\n filter: Record<string, any> | null;\n}\n\nexport interface BulkDeleteFormSpamSubmissionReportByFilterResponse {\n /**\n * Job id of bulk delete form submission report by filter job\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface ReportNotSpamSubmissionRequest {\n /**\n * Id of the form spam submission report to report as not spam.\n * @format GUID\n */\n formSpamSubmissionReportId: string;\n}\n\nexport interface ReportNotSpamSubmissionResponse {\n /** Created form submission. */\n submission?: FormSubmission;\n}\n\nexport interface BulkReportNotSpamSubmissionRequest {\n /**\n * Id of the form to which belong reports\n * @format GUID\n */\n formId: string;\n /**\n * Ids of the form spam submission reports to report as not spam.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n formSpamSubmissionReportIds?: string[];\n}\n\nexport interface BulkReportNotSpamSubmissionResponse {\n /**\n * Info whatever report of specific items was successful\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkReportNotSpamSubmissionResult[];\n /** Metadata of request */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkReportNotSpamSubmissionResult {\n /** Metadata of submission, marked as not spam */\n itemMetadata?: ItemMetadata;\n /**\n * Id of related report, which was reported as not spam\n * @format GUID\n */\n formSpamSubmissionReportId?: string;\n}\n\nexport interface ReportSpamSubmissionRequest {\n /**\n * Id of the submission to report as spam.\n * @format GUID\n */\n submissionId: string;\n /** Identifies the reason why the submission was reported as spam. */\n reportReason: ReportReasonWithLiterals;\n /**\n * Report reason description\n * @minLength 1\n * @maxLength 255\n */\n reportReasonDescription?: string | null;\n}\n\nexport interface ReportSpamSubmissionResponse {\n /** Created form spam submission report. */\n formSpamSubmissionReport?: FormSpamSubmissionReport;\n}\n\nexport interface BulkReportSpamSubmissionRequest {\n /**\n * Id of the form to which belong submissions to report as spam.\n * @format GUID\n */\n formId: string;\n /**\n * Ids of the submissions to report as spam.\n * @maxSize 100\n * @format GUID\n */\n submissionIds: string[];\n /** Identifies the reason why the submission was reported as spam. */\n reportReason: ReportReasonWithLiterals;\n /** When set, items will be returned on successful report */\n returnEntity?: boolean;\n /**\n * Report reason description\n * @minLength 1\n * @maxLength 255\n */\n reportReasonDescription?: string | null;\n}\n\nexport interface BulkReportSpamSubmissionResponse {\n /**\n * Created reports with metadata\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkReportSpamSubmissionResult[];\n /** Metadata of request */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkReportSpamSubmissionResult {\n /** Created report metadata */\n itemMetadata?: ItemMetadata;\n /** Created report, exists if `returnEntity` was set to `true` in the request */\n item?: FormSpamSubmissionReport;\n}\n\nexport interface QueryFormSpamSubmissionReportsByNamespaceRequest {\n /** WQL expression. */\n query: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 3\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryFormSpamSubmissionReportsByNamespaceResponse {\n /** The retrieved FormSpamSubmissionReports. */\n formSpamSubmissionReports?: FormSpamSubmissionReport[];\n /** Details on the paged set of results returned. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor pointing to next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface CountFormSpamSubmissionReportsRequest {\n /**\n * Form IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n formIds: string[];\n /**\n * Identifies the app which the form submissions belong to. For example, the namespace for the Wix Forms App is `\"wix.form_app.form\"`. The namespace of a submission can be retrieved using the Get Submission endpoint.\n * @minLength 10\n * @maxLength 50\n */\n namespace: string;\n}\n\nexport interface CountFormSpamSubmissionReportsResponse {\n /** Forms submission count. */\n formsSpamSubmissionReportsCount?: FormSpamSubmissionReportsCount[];\n}\n\nexport interface FormSpamSubmissionReportsCount {\n /**\n * Form ID.\n * @format GUID\n */\n formId?: string;\n /** Total number of submissions. */\n totalCount?: number;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\nexport type CreateFormSpamSubmissionReportValidationErrors = {\n ruleName?: 'FORM_SPAM_SUBMISSION_REPORT_VALIDATION';\n};\n\n/**\n * Checks if submission is a spam.\n * @param submission - Form submission.\n * @public\n * @documentationMaturity preview\n * @requiredField submission\n * @requiredField submission.formId\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_CHECK_FOR_SPAM\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.CheckForSpam\n */\nexport async function checkForSpam(\n submission: NonNullablePaths<FormSubmission, `formId`, 2>\n): Promise<\n NonNullablePaths<CheckForSpamResponse, `spam` | `spamReport.reportReason`, 3>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n submission: submission,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.checkForSpam(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { submission: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['submission']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Creates a new spam submission.\n * To upload submission media, use the FormSubmissionService.getMediaUploadUrl endpoint.\n * @param formSpamSubmissionReport - Form spam submission report to be created.\n * @public\n * @documentationMaturity preview\n * @requiredField formSpamSubmissionReport\n * @requiredField formSpamSubmissionReport.formId\n * @requiredField formSpamSubmissionReport.reportReason\n * @requiredField formSpamSubmissionReport.submissions\n * @requiredField formSpamSubmissionReport.submitter\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_CREATE\n * @applicableIdentity APP\n * @returns The created form spam submission report.\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.CreateFormSpamSubmissionReport\n */\nexport async function createFormSpamSubmissionReport(\n formSpamSubmissionReport: NonNullablePaths<\n FormSpamSubmissionReport,\n `formId` | `reportReason` | `submissions` | `submitter`,\n 2\n >\n): Promise<\n NonNullablePaths<\n FormSpamSubmissionReport,\n | `formId`\n | `namespace`\n | `reportReason`\n | `submissionStatusAtReport`\n | `orderDetails.checkoutId`,\n 3\n > & {\n __validationErrorsType?: CreateFormSpamSubmissionReportValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n formSpamSubmissionReport: formSpamSubmissionReport,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.createFormSpamSubmissionReport(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.formSpamSubmissionReport!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { formSpamSubmissionReport: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['formSpamSubmissionReport']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Get a spam submission by id.\n * @param formSpamSubmissionReportId - Id of the form spam submission report to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField formSpamSubmissionReportId\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_READ\n * @applicableIdentity APP\n * @returns The retrieved form spam submission report.\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.GetFormSpamSubmissionReport\n */\nexport async function getFormSpamSubmissionReport(\n formSpamSubmissionReportId: string\n): Promise<\n NonNullablePaths<\n FormSpamSubmissionReport,\n | `formId`\n | `namespace`\n | `reportReason`\n | `submissionStatusAtReport`\n | `orderDetails.checkoutId`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n formSpamSubmissionReportId: formSpamSubmissionReportId,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.getFormSpamSubmissionReport(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.formSpamSubmissionReport!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { formSpamSubmissionReportId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['formSpamSubmissionReportId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Delete a spam submission report.\n * @param formSpamSubmissionReportId - Id of the form spam submission report to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField formSpamSubmissionReportId\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_DELETE\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.DeleteFormSpamSubmissionReport\n */\nexport async function deleteFormSpamSubmissionReport(\n formSpamSubmissionReportId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n formSpamSubmissionReportId: formSpamSubmissionReportId,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.deleteFormSpamSubmissionReport(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { formSpamSubmissionReportId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['formSpamSubmissionReportId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Deletes report by IDS or all for specific form.\n * @param formId - Form ID.\n * @public\n * @documentationMaturity preview\n * @requiredField formId\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_DELETE\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.BulkDeleteFormSpamSubmissionReport\n */\nexport async function bulkDeleteFormSpamSubmissionReport(\n formId: string,\n options?: BulkDeleteFormSpamSubmissionReportOptions\n): Promise<\n NonNullablePaths<\n BulkDeleteFormSpamSubmissionReportResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n formId: formId,\n formSpamSubmissionReportIds: options?.formSpamSubmissionReportIds,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.bulkDeleteFormSpamSubmissionReport(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n formId: '$[0]',\n formSpamSubmissionReportIds: '$[1].formSpamSubmissionReportIds',\n },\n singleArgumentUnchanged: false,\n },\n ['formId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkDeleteFormSpamSubmissionReportOptions {\n /**\n * Ids of the form spam submission reports to delete.\n * @maxSize 100\n * @format GUID\n */\n formSpamSubmissionReportIds?: string[];\n}\n\n/**\n * Deletes reports by filter for specific form.\n * @param filter - Filter object.\n *\n * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.\n * @public\n * @documentationMaturity preview\n * @requiredField filter\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_DELETE\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.BulkDeleteFormSpamSubmissionReportByFilter\n */\nexport async function bulkDeleteFormSpamSubmissionReportByFilter(\n filter: Record<string, any>\n): Promise<\n NonNullablePaths<\n BulkDeleteFormSpamSubmissionReportByFilterResponse,\n `jobId`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ filter: filter });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.bulkDeleteFormSpamSubmissionReportByFilter(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { filter: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['filter']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Report a spam submission as not spam. The submission is created, and the spam report is deleted.\n * Submission automations are triggered the same way as in standard submission creation flow.\n * @param formSpamSubmissionReportId - Id of the form spam submission report to report as not spam.\n * @public\n * @documentationMaturity preview\n * @requiredField formSpamSubmissionReportId\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_REPORT_NOT_SPAM\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.ReportNotSpamSubmission\n */\nexport async function reportNotSpamSubmission(\n formSpamSubmissionReportId: string\n): Promise<\n NonNullablePaths<\n ReportNotSpamSubmissionResponse,\n | `submission.formId`\n | `submission.namespace`\n | `submission.status`\n | `submission.seen`\n | `submission.orderDetails.itemSubtotal`\n | `submission.orderDetails.checkoutId`\n | `submission.tags.tags.tagIds`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n formSpamSubmissionReportId: formSpamSubmissionReportId,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.reportNotSpamSubmission(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { formSpamSubmissionReportId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['formSpamSubmissionReportId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Report a spam submissions as not spam. The submissions is created, and the spam reports is deleted.\n * Submissions automations are triggered the same way as in standard submission creation flow.\n * @param formId - Id of the form to which belong reports\n * @public\n * @documentationMaturity preview\n * @requiredField formId\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_REPORT_NOT_SPAM\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.BulkReportNotSpamSubmission\n */\nexport async function bulkReportNotSpamSubmission(\n formId: string,\n options?: BulkReportNotSpamSubmissionOptions\n): Promise<\n NonNullablePaths<\n BulkReportNotSpamSubmissionResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.formSpamSubmissionReportId`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n formId: formId,\n formSpamSubmissionReportIds: options?.formSpamSubmissionReportIds,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.bulkReportNotSpamSubmission(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n formId: '$[0]',\n formSpamSubmissionReportIds: '$[1].formSpamSubmissionReportIds',\n },\n singleArgumentUnchanged: false,\n },\n ['formId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkReportNotSpamSubmissionOptions {\n /**\n * Ids of the form spam submission reports to report as not spam.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n formSpamSubmissionReportIds?: string[];\n}\n\n/**\n * Report a submission as spam. The spam submission report is created, and the submission is deleted.\n * @param submissionId - Id of the submission to report as spam.\n * @param reportReason - Identifies the reason why the submission was reported as spam.\n * @public\n * @documentationMaturity preview\n * @requiredField reportReason\n * @requiredField submissionId\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_CREATE\n * @permissionId WIX_FORMS.SUBMISSION_READ_ANY\n * @permissionId WIX_FORMS.SUBMISSION_DELETE\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.ReportSpamSubmission\n */\nexport async function reportSpamSubmission(\n submissionId: string,\n reportReason: ReportReasonWithLiterals,\n options?: ReportSpamSubmissionOptions\n): Promise<\n NonNullablePaths<\n ReportSpamSubmissionResponse,\n | `formSpamSubmissionReport.formId`\n | `formSpamSubmissionReport.namespace`\n | `formSpamSubmissionReport.reportReason`\n | `formSpamSubmissionReport.submissionStatusAtReport`\n | `formSpamSubmissionReport.orderDetails.checkoutId`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n submissionId: submissionId,\n reportReason: reportReason,\n reportReasonDescription: options?.reportReasonDescription,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.reportSpamSubmission(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n submissionId: '$[0]',\n reportReason: '$[1]',\n reportReasonDescription: '$[2].reportReasonDescription',\n },\n singleArgumentUnchanged: false,\n },\n ['submissionId', 'reportReason', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ReportSpamSubmissionOptions {\n /**\n * Report reason description\n * @minLength 1\n * @maxLength 255\n */\n reportReasonDescription?: string | null;\n}\n\n/**\n * Report multiple submissions as spam. The spam submission reports is created, and the submissions is deleted.\n * @param formId - Id of the form to which belong submissions to report as spam.\n * @public\n * @documentationMaturity preview\n * @requiredField formId\n * @requiredField options.reportReason\n * @requiredField options.submissionIds\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_CREATE\n * @permissionId WIX_FORMS.SUBMISSION_READ_ANY\n * @permissionId WIX_FORMS.SUBMISSION_DELETE\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.BulkReportSpamSubmission\n */\nexport async function bulkReportSpamSubmission(\n formId: string,\n options?: NonNullablePaths<\n BulkReportSpamSubmissionOptions,\n `reportReason` | `submissionIds`,\n 2\n >\n): Promise<\n NonNullablePaths<\n BulkReportSpamSubmissionResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.formId`\n | `results.${number}.item.namespace`\n | `results.${number}.item.reportReason`\n | `results.${number}.item.submissionStatusAtReport`\n | `results.${number}.item.orderDetails.checkoutId`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n formId: formId,\n submissionIds: options?.submissionIds,\n reportReason: options?.reportReason,\n returnEntity: options?.returnEntity,\n reportReasonDescription: options?.reportReasonDescription,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.bulkReportSpamSubmission(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n formId: '$[0]',\n submissionIds: '$[1].submissionIds',\n reportReason: '$[1].reportReason',\n returnEntity: '$[1].returnEntity',\n reportReasonDescription: '$[1].reportReasonDescription',\n },\n singleArgumentUnchanged: false,\n },\n ['formId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkReportSpamSubmissionOptions {\n /**\n * Ids of the submissions to report as spam.\n * @maxSize 100\n * @format GUID\n */\n submissionIds: string[];\n /** Identifies the reason why the submission was reported as spam. */\n reportReason: ReportReasonWithLiterals;\n /** When set, items will be returned on successful report */\n returnEntity?: boolean;\n /**\n * Report reason description\n * @minLength 1\n * @maxLength 255\n */\n reportReasonDescription?: string | null;\n}\n\n/**\n * Query form spam submission reports using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).\n * @public\n * @documentationMaturity preview\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_READ\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.QueryFormSpamSubmissionReportsByNamespace\n */\nexport function queryFormSpamSubmissionReportsByNamespace(): FormSpamSubmissionReportsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n FormSpamSubmissionReport,\n 'CURSOR',\n QueryFormSpamSubmissionReportsByNamespaceRequest,\n QueryFormSpamSubmissionReportsByNamespaceResponse\n >({\n func: async (payload: QueryFormSpamSubmissionReportsByNamespaceRequest) => {\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.queryFormSpamSubmissionReportsByNamespace(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (\n query: QueryFormSpamSubmissionReportsByNamespaceRequest['query']\n ) => {\n const args = [query, {}] as [\n QueryFormSpamSubmissionReportsByNamespaceRequest['query'],\n {}\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryFormSpamSubmissionReportsByNamespaceResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.formSpamSubmissionReports,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface FormSpamSubmissionReportsQueryResult\n extends QueryCursorResult {\n items: FormSpamSubmissionReport[];\n query: FormSpamSubmissionReportsQueryBuilder;\n next: () => Promise<FormSpamSubmissionReportsQueryResult>;\n prev: () => Promise<FormSpamSubmissionReportsQueryResult>;\n}\n\nexport interface FormSpamSubmissionReportsQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (\n propertyName:\n | '_id'\n | 'formId'\n | 'namespace'\n | 'reportReason'\n | '_createdDate'\n | 'reportedDate',\n value: any\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (\n propertyName:\n | '_id'\n | 'formId'\n | 'reportReason'\n | '_createdDate'\n | 'reportedDate',\n value: any\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (\n propertyName: '_createdDate' | 'reportedDate',\n value: any\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (\n propertyName: '_createdDate' | 'reportedDate',\n value: any\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (\n propertyName: '_createdDate' | 'reportedDate',\n value: any\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (\n propertyName: '_createdDate' | 'reportedDate',\n value: any\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName:\n | '_id'\n | 'formId'\n | 'reportReason'\n | '_createdDate'\n | 'reportedDate',\n value: any\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (\n ...propertyNames: Array<\n '_id' | 'formId' | 'reportReason' | '_createdDate' | 'reportedDate'\n >\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (\n ...propertyNames: Array<\n '_id' | 'formId' | 'reportReason' | '_createdDate' | 'reportedDate'\n >\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => FormSpamSubmissionReportsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => FormSpamSubmissionReportsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<FormSpamSubmissionReportsQueryResult>;\n}\n\n/**\n * Counts the number of spam submission reports belonging to the specified forms.\n * @param formIds - Form IDs.\n * @param namespace - Identifies the app which the form submissions belong to. For example, the namespace for the Wix Forms App is `\"wix.form_app.form\"`. The namespace of a submission can be retrieved using the Get Submission endpoint.\n * @public\n * @documentationMaturity preview\n * @requiredField formIds\n * @requiredField namespace\n * @permissionId WIX_FORMS.SUBMISSION_READ_ANY\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.CountFormSpamSubmissionReports\n */\nexport async function countFormSpamSubmissionReports(\n formIds: string[],\n namespace: string\n): Promise<\n NonNullablePaths<\n CountFormSpamSubmissionReportsResponse,\n | `formsSpamSubmissionReportsCount`\n | `formsSpamSubmissionReportsCount.${number}.formId`\n | `formsSpamSubmissionReportsCount.${number}.totalCount`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n formIds: formIds,\n namespace: namespace,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.countFormSpamSubmissionReports(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { formIds: '$[0]', namespace: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['formIds', 'namespace']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixFormsV4FormSpamSubmissionReportServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n {\n srcPath: '/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_forms_form-spam-submission-reports';\n\n/** Checks if submission is a spam. */\nexport function checkForSpam(payload: object): RequestOptionsFactory<any> {\n function __checkForSpam({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'submission.createdDate' },\n { path: 'submission.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn: 'wix.forms.v4.FormSpamSubmissionReportService.CheckForSpam',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath: '/v4/form-spam-submission-reports/check-for-spam',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __checkForSpam;\n}\n\n/**\n * Creates a new spam submission.\n * To upload submission media, use the FormSubmissionService.getMediaUploadUrl endpoint.\n */\nexport function createFormSpamSubmissionReport(\n payload: object\n): RequestOptionsFactory<any> {\n function __createFormSpamSubmissionReport({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'formSpamSubmissionReport.createdDate' },\n { path: 'formSpamSubmissionReport.reportedDate' },\n { path: 'formSpamSubmissionReport.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.CreateFormSpamSubmissionReport',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath: '/v4/form-spam-submission-reports',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'formSpamSubmissionReport.createdDate' },\n { path: 'formSpamSubmissionReport.reportedDate' },\n { path: 'formSpamSubmissionReport.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createFormSpamSubmissionReport;\n}\n\n/** Get a spam submission by id. */\nexport function getFormSpamSubmissionReport(\n payload: object\n): RequestOptionsFactory<any> {\n function __getFormSpamSubmissionReport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'GET' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.GetFormSpamSubmissionReport',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath:\n '/v4/form-spam-submission-reports/{formSpamSubmissionReportId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'formSpamSubmissionReport.createdDate' },\n { path: 'formSpamSubmissionReport.reportedDate' },\n { path: 'formSpamSubmissionReport.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getFormSpamSubmissionReport;\n}\n\n/** Delete a spam submission report. */\nexport function deleteFormSpamSubmissionReport(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteFormSpamSubmissionReport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.DeleteFormSpamSubmissionReport',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath:\n '/v4/form-spam-submission-reports/{formSpamSubmissionReportId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteFormSpamSubmissionReport;\n}\n\n/** Deletes report by IDS or all for specific form. */\nexport function bulkDeleteFormSpamSubmissionReport(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteFormSpamSubmissionReport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.BulkDeleteFormSpamSubmissionReport',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath: '/v4/bulk/form-spam-submission-reports/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteFormSpamSubmissionReport;\n}\n\n/** Deletes reports by filter for specific form. */\nexport function bulkDeleteFormSpamSubmissionReportByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteFormSpamSubmissionReportByFilter({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.BulkDeleteFormSpamSubmissionReportByFilter',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath: '/v4/bulk/form-spam-submission-reports/delete-by-filter',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteFormSpamSubmissionReportByFilter;\n}\n\n/**\n * Report a spam submission as not spam. The submission is created, and the spam report is deleted.\n * Submission automations are triggered the same way as in standard submission creation flow.\n */\nexport function reportNotSpamSubmission(\n payload: object\n): RequestOptionsFactory<any> {\n function __reportNotSpamSubmission({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.ReportNotSpamSubmission',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath:\n '/v4/form-spam-submission-reports/{formSpamSubmissionReportId}/report-not-spam-submission',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'submission.createdDate' },\n { path: 'submission.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __reportNotSpamSubmission;\n}\n\n/**\n * Report a spam submissions as not spam. The submissions is created, and the spam reports is deleted.\n * Submissions automations are triggered the same way as in standard submission creation flow.\n */\nexport function bulkReportNotSpamSubmission(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkReportNotSpamSubmission({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.BulkReportNotSpamSubmission',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath:\n '/v4/bulk/form-spam-submission-reports/report-not-spam-submission',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkReportNotSpamSubmission;\n}\n\n/** Report a submission as spam. The spam submission report is created, and the submission is deleted. */\nexport function reportSpamSubmission(\n payload: object\n): RequestOptionsFactory<any> {\n function __reportSpamSubmission({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.ReportSpamSubmission',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath: '/v4/submissions/{submissionId}/report-spam-submission',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'formSpamSubmissionReport.createdDate' },\n { path: 'formSpamSubmissionReport.reportedDate' },\n { path: 'formSpamSubmissionReport.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __reportSpamSubmission;\n}\n\n/** Report multiple submissions as spam. The spam submission reports is created, and the submissions is deleted. */\nexport function bulkReportSpamSubmission(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkReportSpamSubmission({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.BulkReportSpamSubmission',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath: '/v4/bulk/submissions/report-spam-submission',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.reportedDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkReportSpamSubmission;\n}\n\n/** Query form spam submission reports using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language). */\nexport function queryFormSpamSubmissionReportsByNamespace(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryFormSpamSubmissionReportsByNamespace({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.QueryFormSpamSubmissionReportsByNamespace',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath: '/v4/form-spam-submission-reports/namespace/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'formSpamSubmissionReports.createdDate' },\n { path: 'formSpamSubmissionReports.reportedDate' },\n { path: 'formSpamSubmissionReports.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryFormSpamSubmissionReportsByNamespace;\n}\n\n/** Counts the number of spam submission reports belonging to the specified forms. */\nexport function countFormSpamSubmissionReports(\n payload: object\n): RequestOptionsFactory<any> {\n function __countFormSpamSubmissionReports({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.CountFormSpamSubmissionReports',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath: '/v4/form-spam-submission-reports/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countFormSpamSubmissionReports;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n BulkDeleteFormSpamSubmissionReportByFilterResponse,\n BulkDeleteFormSpamSubmissionReportOptions,\n BulkDeleteFormSpamSubmissionReportResponse,\n BulkReportNotSpamSubmissionOptions,\n BulkReportNotSpamSubmissionResponse,\n BulkReportSpamSubmissionOptions,\n BulkReportSpamSubmissionResponse,\n CheckForSpamResponse,\n CountFormSpamSubmissionReportsResponse,\n CreateFormSpamSubmissionReportValidationErrors,\n FormSpamSubmissionReport,\n FormSpamSubmissionReportsQueryBuilder,\n FormSubmission,\n ReportNotSpamSubmissionResponse,\n ReportReasonWithLiterals,\n ReportSpamSubmissionOptions,\n ReportSpamSubmissionResponse,\n bulkDeleteFormSpamSubmissionReport as universalBulkDeleteFormSpamSubmissionReport,\n bulkDeleteFormSpamSubmissionReportByFilter as universalBulkDeleteFormSpamSubmissionReportByFilter,\n bulkReportNotSpamSubmission as universalBulkReportNotSpamSubmission,\n bulkReportSpamSubmission as universalBulkReportSpamSubmission,\n checkForSpam as universalCheckForSpam,\n countFormSpamSubmissionReports as universalCountFormSpamSubmissionReports,\n createFormSpamSubmissionReport as universalCreateFormSpamSubmissionReport,\n deleteFormSpamSubmissionReport as universalDeleteFormSpamSubmissionReport,\n getFormSpamSubmissionReport as universalGetFormSpamSubmissionReport,\n queryFormSpamSubmissionReportsByNamespace as universalQueryFormSpamSubmissionReportsByNamespace,\n reportNotSpamSubmission as universalReportNotSpamSubmission,\n reportSpamSubmission as universalReportSpamSubmission,\n} from './forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/forms' };\n\nexport function checkForSpam(httpClient: HttpClient): CheckForSpamSignature {\n return (submission: NonNullablePaths<FormSubmission, `formId`, 2>) =>\n universalCheckForSpam(\n submission,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CheckForSpamSignature {\n /**\n * Checks if submission is a spam.\n * @param - Form submission.\n */\n (submission: NonNullablePaths<FormSubmission, `formId`, 2>): Promise<\n NonNullablePaths<\n CheckForSpamResponse,\n `spam` | `spamReport.reportReason`,\n 3\n >\n >;\n}\n\nexport function createFormSpamSubmissionReport(\n httpClient: HttpClient\n): CreateFormSpamSubmissionReportSignature {\n return (\n formSpamSubmissionReport: NonNullablePaths<\n FormSpamSubmissionReport,\n `formId` | `reportReason` | `submissions` | `submitter`,\n 2\n >\n ) =>\n universalCreateFormSpamSubmissionReport(\n formSpamSubmissionReport,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateFormSpamSubmissionReportSignature {\n /**\n * Creates a new spam submission.\n * To upload submission media, use the FormSubmissionService.getMediaUploadUrl endpoint.\n * @param - Form spam submission report to be created.\n * @returns The created form spam submission report.\n */\n (\n formSpamSubmissionReport: NonNullablePaths<\n FormSpamSubmissionReport,\n `formId` | `reportReason` | `submissions` | `submitter`,\n 2\n >\n ): Promise<\n NonNullablePaths<\n FormSpamSubmissionReport,\n | `formId`\n | `namespace`\n | `reportReason`\n | `submissionStatusAtReport`\n | `orderDetails.checkoutId`,\n 3\n > & {\n __validationErrorsType?: CreateFormSpamSubmissionReportValidationErrors;\n }\n >;\n}\n\nexport function getFormSpamSubmissionReport(\n httpClient: HttpClient\n): GetFormSpamSubmissionReportSignature {\n return (formSpamSubmissionReportId: string) =>\n universalGetFormSpamSubmissionReport(\n formSpamSubmissionReportId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetFormSpamSubmissionReportSignature {\n /**\n * Get a spam submission by id.\n * @param - Id of the form spam submission report to retrieve.\n * @returns The retrieved form spam submission report.\n */\n (formSpamSubmissionReportId: string): Promise<\n NonNullablePaths<\n FormSpamSubmissionReport,\n | `formId`\n | `namespace`\n | `reportReason`\n | `submissionStatusAtReport`\n | `orderDetails.checkoutId`,\n 3\n >\n >;\n}\n\nexport function deleteFormSpamSubmissionReport(\n httpClient: HttpClient\n): DeleteFormSpamSubmissionReportSignature {\n return (formSpamSubmissionReportId: string) =>\n universalDeleteFormSpamSubmissionReport(\n formSpamSubmissionReportId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteFormSpamSubmissionReportSignature {\n /**\n * Delete a spam submission report.\n * @param - Id of the form spam submission report to delete.\n */\n (formSpamSubmissionReportId: string): Promise<void>;\n}\n\nexport function bulkDeleteFormSpamSubmissionReport(\n httpClient: HttpClient\n): BulkDeleteFormSpamSubmissionReportSignature {\n return (\n formId: string,\n options?: BulkDeleteFormSpamSubmissionReportOptions\n ) =>\n universalBulkDeleteFormSpamSubmissionReport(\n formId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkDeleteFormSpamSubmissionReportSignature {\n /**\n * Deletes report by IDS or all for specific form.\n * @param - Form ID.\n */\n (\n formId: string,\n options?: BulkDeleteFormSpamSubmissionReportOptions\n ): Promise<\n NonNullablePaths<\n BulkDeleteFormSpamSubmissionReportResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function bulkDeleteFormSpamSubmissionReportByFilter(\n httpClient: HttpClient\n): BulkDeleteFormSpamSubmissionReportByFilterSignature {\n return (filter: Record<string, any>) =>\n universalBulkDeleteFormSpamSubmissionReportByFilter(\n filter,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkDeleteFormSpamSubmissionReportByFilterSignature {\n /**\n * Deletes reports by filter for specific form.\n * @param - Filter object.\n *\n * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.\n */\n (filter: Record<string, any>): Promise<\n NonNullablePaths<\n BulkDeleteFormSpamSubmissionReportByFilterResponse,\n `jobId`,\n 2\n >\n >;\n}\n\nexport function reportNotSpamSubmission(\n httpClient: HttpClient\n): ReportNotSpamSubmissionSignature {\n return (formSpamSubmissionReportId: string) =>\n universalReportNotSpamSubmission(\n formSpamSubmissionReportId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ReportNotSpamSubmissionSignature {\n /**\n * Report a spam submission as not spam. The submission is created, and the spam report is deleted.\n * Submission automations are triggered the same way as in standard submission creation flow.\n * @param - Id of the form spam submission report to report as not spam.\n */\n (formSpamSubmissionReportId: string): Promise<\n NonNullablePaths<\n ReportNotSpamSubmissionResponse,\n | `submission.formId`\n | `submission.namespace`\n | `submission.status`\n | `submission.seen`\n | `submission.orderDetails.itemSubtotal`\n | `submission.orderDetails.checkoutId`\n | `submission.tags.tags.tagIds`,\n 5\n >\n >;\n}\n\nexport function bulkReportNotSpamSubmission(\n httpClient: HttpClient\n): BulkReportNotSpamSubmissionSignature {\n return (formId: string, options?: BulkReportNotSpamSubmissionOptions) =>\n universalBulkReportNotSpamSubmission(\n formId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkReportNotSpamSubmissionSignature {\n /**\n * Report a spam submissions as not spam. The submissions is created, and the spam reports is deleted.\n * Submissions automations are triggered the same way as in standard submission creation flow.\n * @param - Id of the form to which belong reports\n */\n (formId: string, options?: BulkReportNotSpamSubmissionOptions): Promise<\n NonNullablePaths<\n BulkReportNotSpamSubmissionResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.formSpamSubmissionReportId`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function reportSpamSubmission(\n httpClient: HttpClient\n): ReportSpamSubmissionSignature {\n return (\n submissionId: string,\n reportReason: ReportReasonWithLiterals,\n options?: ReportSpamSubmissionOptions\n ) =>\n universalReportSpamSubmission(\n submissionId,\n reportReason,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ReportSpamSubmissionSignature {\n /**\n * Report a submission as spam. The spam submission report is created, and the submission is deleted.\n * @param - Id of the submission to report as spam.\n * @param - Identifies the reason why the submission was reported as spam.\n */\n (\n submissionId: string,\n reportReason: ReportReasonWithLiterals,\n options?: ReportSpamSubmissionOptions\n ): Promise<\n NonNullablePaths<\n ReportSpamSubmissionResponse,\n | `formSpamSubmissionReport.formId`\n | `formSpamSubmissionReport.namespace`\n | `formSpamSubmissionReport.reportReason`\n | `formSpamSubmissionReport.submissionStatusAtReport`\n | `formSpamSubmissionReport.orderDetails.checkoutId`,\n 4\n >\n >;\n}\n\nexport function bulkReportSpamSubmission(\n httpClient: HttpClient\n): BulkReportSpamSubmissionSignature {\n return (\n formId: string,\n options?: NonNullablePaths<\n BulkReportSpamSubmissionOptions,\n `reportReason` | `submissionIds`,\n 2\n >\n ) =>\n universalBulkReportSpamSubmission(\n formId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkReportSpamSubmissionSignature {\n /**\n * Report multiple submissions as spam. The spam submission reports is created, and the submissions is deleted.\n * @param - Id of the form to which belong submissions to report as spam.\n */\n (\n formId: string,\n options?: NonNullablePaths<\n BulkReportSpamSubmissionOptions,\n `reportReason` | `submissionIds`,\n 2\n >\n ): Promise<\n NonNullablePaths<\n BulkReportSpamSubmissionResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.formId`\n | `results.${number}.item.namespace`\n | `results.${number}.item.reportReason`\n | `results.${number}.item.submissionStatusAtReport`\n | `results.${number}.item.orderDetails.checkoutId`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function queryFormSpamSubmissionReportsByNamespace(\n httpClient: HttpClient\n): QueryFormSpamSubmissionReportsByNamespaceSignature {\n return () =>\n universalQueryFormSpamSubmissionReportsByNamespace(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryFormSpamSubmissionReportsByNamespaceSignature {\n /**\n * Query form spam submission reports using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).\n */\n (): FormSpamSubmissionReportsQueryBuilder;\n}\n\nexport function countFormSpamSubmissionReports(\n httpClient: HttpClient\n): CountFormSpamSubmissionReportsSignature {\n return (formIds: string[], namespace: string) =>\n universalCountFormSpamSubmissionReports(\n formIds,\n namespace,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CountFormSpamSubmissionReportsSignature {\n /**\n * Counts the number of spam submission reports belonging to the specified forms.\n * @param - Form IDs.\n * @param - Identifies the app which the form submissions belong to. For example, the namespace for the Wix Forms App is `\"wix.form_app.form\"`. The namespace of a submission can be retrieved using the Get Submission endpoint.\n */\n (formIds: string[], namespace: string): Promise<\n NonNullablePaths<\n CountFormSpamSubmissionReportsResponse,\n | `formsSpamSubmissionReportsCount`\n | `formsSpamSubmissionReportsCount.${number}.formId`\n | `formsSpamSubmissionReportsCount.${number}.totalCount`,\n 4\n >\n >;\n}\n\nexport {\n ActionEvent,\n ApplicationError,\n BulkActionMetadata,\n BulkDeleteFormSpamSubmissionReportByFilterRequest,\n BulkDeleteFormSpamSubmissionReportByFilterResponse,\n BulkDeleteFormSpamSubmissionReportOptions,\n BulkDeleteFormSpamSubmissionReportRequest,\n BulkDeleteFormSpamSubmissionReportResponse,\n BulkDeleteFormSpamSubmissionReportResult,\n BulkReportNotSpamSubmissionOptions,\n BulkReportNotSpamSubmissionRequest,\n BulkReportNotSpamSubmissionResponse,\n BulkReportNotSpamSubmissionResult,\n BulkReportSpamSubmissionOptions,\n BulkReportSpamSubmissionRequest,\n BulkReportSpamSubmissionResponse,\n BulkReportSpamSubmissionResult,\n CheckForSpamRequest,\n CheckForSpamResponse,\n CountFormSpamSubmissionReportsRequest,\n CountFormSpamSubmissionReportsResponse,\n CreateFormSpamSubmissionReportRequest,\n CreateFormSpamSubmissionReportResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DeleteFormSpamSubmissionReportRequest,\n DeleteFormSpamSubmissionReportResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n ErrorType,\n ExtendedFields,\n FormSpamSubmissionReport,\n FormSpamSubmissionReportValidationErrorsDetails,\n FormSpamSubmissionReportsCount,\n FormSpamSubmissionReportsQueryBuilder,\n FormSpamSubmissionReportsQueryResult,\n FormSubmission,\n FormSubmissionOrderDetails,\n GetFormSpamSubmissionReportRequest,\n GetFormSpamSubmissionReportResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ItemMetadata,\n MessageEnvelope,\n OrderDetails,\n PublicTags,\n QueryFormSpamSubmissionReportsByNamespaceRequest,\n QueryFormSpamSubmissionReportsByNamespaceResponse,\n ReportNotSpamSubmissionRequest,\n ReportNotSpamSubmissionResponse,\n ReportReason,\n ReportSpamSubmissionOptions,\n ReportSpamSubmissionRequest,\n ReportSpamSubmissionResponse,\n RestoreInfo,\n SortOrder,\n Sorting,\n SpamReport,\n SubmissionStatus,\n Submitter,\n SubmitterSubmitterOneOf,\n TagList,\n ValidationError,\n WebhookIdentityType,\n} from './forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js';\n","import {\n checkForSpam as publicCheckForSpam,\n createFormSpamSubmissionReport as publicCreateFormSpamSubmissionReport,\n getFormSpamSubmissionReport as publicGetFormSpamSubmissionReport,\n deleteFormSpamSubmissionReport as publicDeleteFormSpamSubmissionReport,\n bulkDeleteFormSpamSubmissionReport as publicBulkDeleteFormSpamSubmissionReport,\n bulkDeleteFormSpamSubmissionReportByFilter as publicBulkDeleteFormSpamSubmissionReportByFilter,\n reportNotSpamSubmission as publicReportNotSpamSubmission,\n bulkReportNotSpamSubmission as publicBulkReportNotSpamSubmission,\n reportSpamSubmission as publicReportSpamSubmission,\n bulkReportSpamSubmission as publicBulkReportSpamSubmission,\n queryFormSpamSubmissionReportsByNamespace as publicQueryFormSpamSubmissionReportsByNamespace,\n countFormSpamSubmissionReports as publicCountFormSpamSubmissionReports,\n} from './forms-v4-form-spam-submission-report-form-spam-submission-reports.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const checkForSpam: MaybeContext<\n BuildRESTFunction<typeof publicCheckForSpam> & typeof publicCheckForSpam\n> = /*#__PURE__*/ createRESTModule(publicCheckForSpam);\nexport const createFormSpamSubmissionReport: MaybeContext<\n BuildRESTFunction<typeof publicCreateFormSpamSubmissionReport> &\n typeof publicCreateFormSpamSubmissionReport\n> = /*#__PURE__*/ createRESTModule(publicCreateFormSpamSubmissionReport);\nexport const getFormSpamSubmissionReport: MaybeContext<\n BuildRESTFunction<typeof publicGetFormSpamSubmissionReport> &\n typeof publicGetFormSpamSubmissionReport\n> = /*#__PURE__*/ createRESTModule(publicGetFormSpamSubmissionReport);\nexport const deleteFormSpamSubmissionReport: MaybeContext<\n BuildRESTFunction<typeof publicDeleteFormSpamSubmissionReport> &\n typeof publicDeleteFormSpamSubmissionReport\n> = /*#__PURE__*/ createRESTModule(publicDeleteFormSpamSubmissionReport);\nexport const bulkDeleteFormSpamSubmissionReport: MaybeContext<\n BuildRESTFunction<typeof publicBulkDeleteFormSpamSubmissionReport> &\n typeof publicBulkDeleteFormSpamSubmissionReport\n> = /*#__PURE__*/ createRESTModule(publicBulkDeleteFormSpamSubmissionReport);\nexport const bulkDeleteFormSpamSubmissionReportByFilter: MaybeContext<\n BuildRESTFunction<typeof publicBulkDeleteFormSpamSubmissionReportByFilter> &\n typeof publicBulkDeleteFormSpamSubmissionReportByFilter\n> = /*#__PURE__*/ createRESTModule(\n publicBulkDeleteFormSpamSubmissionReportByFilter\n);\nexport const reportNotSpamSubmission: MaybeContext<\n BuildRESTFunction<typeof publicReportNotSpamSubmission> &\n typeof publicReportNotSpamSubmission\n> = /*#__PURE__*/ createRESTModule(publicReportNotSpamSubmission);\nexport const bulkReportNotSpamSubmission: MaybeContext<\n BuildRESTFunction<typeof publicBulkReportNotSpamSubmission> &\n typeof publicBulkReportNotSpamSubmission\n> = /*#__PURE__*/ createRESTModule(publicBulkReportNotSpamSubmission);\nexport const reportSpamSubmission: MaybeContext<\n BuildRESTFunction<typeof publicReportSpamSubmission> &\n typeof publicReportSpamSubmission\n> = /*#__PURE__*/ createRESTModule(publicReportSpamSubmission);\nexport const bulkReportSpamSubmission: MaybeContext<\n BuildRESTFunction<typeof publicBulkReportSpamSubmission> &\n typeof publicBulkReportSpamSubmission\n> = /*#__PURE__*/ createRESTModule(publicBulkReportSpamSubmission);\nexport const queryFormSpamSubmissionReportsByNamespace: MaybeContext<\n BuildRESTFunction<typeof publicQueryFormSpamSubmissionReportsByNamespace> &\n typeof publicQueryFormSpamSubmissionReportsByNamespace\n> = /*#__PURE__*/ createRESTModule(\n publicQueryFormSpamSubmissionReportsByNamespace\n);\nexport const countFormSpamSubmissionReports: MaybeContext<\n BuildRESTFunction<typeof publicCountFormSpamSubmissionReports> &\n typeof publicCountFormSpamSubmissionReports\n> = /*#__PURE__*/ createRESTModule(publicCountFormSpamSubmissionReports);\n\nexport {\n ReportReason,\n SubmissionStatus,\n ErrorType,\n SortOrder,\n WebhookIdentityType,\n} from './forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js';\nexport {\n FormSpamSubmissionReport,\n Submitter,\n SubmitterSubmitterOneOf,\n ExtendedFields,\n OrderDetails,\n CheckForSpamRequest,\n FormSubmission,\n FormSubmissionOrderDetails,\n PublicTags,\n TagList,\n CheckForSpamResponse,\n SpamReport,\n CreateFormSpamSubmissionReportRequest,\n CreateFormSpamSubmissionReportResponse,\n FormSpamSubmissionReportValidationErrorsDetails,\n ValidationError,\n GetFormSpamSubmissionReportRequest,\n GetFormSpamSubmissionReportResponse,\n DeleteFormSpamSubmissionReportRequest,\n DeleteFormSpamSubmissionReportResponse,\n BulkDeleteFormSpamSubmissionReportRequest,\n BulkDeleteFormSpamSubmissionReportResponse,\n BulkDeleteFormSpamSubmissionReportResult,\n ItemMetadata,\n ApplicationError,\n BulkActionMetadata,\n BulkDeleteFormSpamSubmissionReportByFilterRequest,\n BulkDeleteFormSpamSubmissionReportByFilterResponse,\n ReportNotSpamSubmissionRequest,\n ReportNotSpamSubmissionResponse,\n BulkReportNotSpamSubmissionRequest,\n BulkReportNotSpamSubmissionResponse,\n BulkReportNotSpamSubmissionResult,\n ReportSpamSubmissionRequest,\n ReportSpamSubmissionResponse,\n BulkReportSpamSubmissionRequest,\n BulkReportSpamSubmissionResponse,\n BulkReportSpamSubmissionResult,\n QueryFormSpamSubmissionReportsByNamespaceRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QueryFormSpamSubmissionReportsByNamespaceResponse,\n CursorPagingMetadata,\n Cursors,\n CountFormSpamSubmissionReportsRequest,\n CountFormSpamSubmissionReportsResponse,\n FormSpamSubmissionReportsCount,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n BulkDeleteFormSpamSubmissionReportOptions,\n BulkReportNotSpamSubmissionOptions,\n ReportSpamSubmissionOptions,\n BulkReportSpamSubmissionOptions,\n FormSpamSubmissionReportsQueryResult,\n FormSpamSubmissionReportsQueryBuilder,\n} from './forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js';\nexport {\n ReportReasonWithLiterals,\n SubmissionStatusWithLiterals,\n ErrorTypeWithLiterals,\n SortOrderWithLiterals,\n WebhookIdentityTypeWithLiterals,\n CreateFormSpamSubmissionReportValidationErrors,\n} from './forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4CAAAA;AAAA,EAAA,kDAAAC;AAAA,EAAA,mCAAAC;AAAA,EAAA,gCAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,sCAAAC;AAAA,EAAA,sCAAAC;AAAA,EAAA,sCAAAC;AAAA,EAAA,mCAAAC;AAAA,EAAA,iDAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,4BAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,oDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,s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C;AAChE,IAAMC,+BAGK,2DAAiBA,4BAAiC;AAC7D,IAAMC,kCAGK,2DAAiBA,+BAAoC;AAChE,IAAMC,sCAGK,2DAAiBA,mCAAwC;AACpE,IAAMC,8CAGK;AAAA,EAChBA;AACF;AACO,IAAMC,2BAGK,2DAAiBA,wBAA6B;AACzD,IAAMC,+BAGK,2DAAiBA,4BAAiC;AAC7D,IAAMC,wBAGK,2DAAiBA,qBAA0B;AACtD,IAAMC,4BAGK,2DAAiBA,yBAA8B;AAC1D,IAAMC,6CAGK;AAAA,EAChBA;AACF;AACO,IAAMC,kCAGK,2DAAiBA,+BAAoC;","names":["bulkDeleteFormSpamSubmissionReport","bulkDeleteFormSpamSubmissionReportByFilter","bulkReportNotSpamSubmission","bulkReportSpamSubmission","checkForSpam","countFormSpamSubmissionReports","createFormSpamSubmissionReport","deleteFormSpamSubmissionReport","getFormSpamSubmissionReport","queryFormSpamSubmissionReportsByNamespace","reportNotSpamSubmission","reportSpamSubmission","import_timestamp","import_rest_modules","payload","import_transform_paths","ReportReason","SubmissionStatus","ErrorType","SortOrder","WebhookIdentityType","checkForSpam","sdkTransformError","createFormSpamSubmissionReport","getFormSpamSubmissionReport","deleteFormSpamSubmissionReport","bulkDeleteFormSpamSubmissionReport","bulkDeleteFormSpamSubmissionReportByFilter","reportNotSpamSubmission","bulkReportNotSpamSubmission","reportSpamSubmission","bulkReportSpamSubmission","queryFormSpamSubmissionReportsByNamespace","countFormSpamSubmissionReports","checkForSpam","createFormSpamSubmissionReport","getFormSpamSubmissionReport","deleteFormSpamSubmissionReport","bulkDeleteFormSpamSubmissionReport","bulkDeleteFormSpamSubmissionReportByFilter","reportNotSpamSubmission","bulkReportNotSpamSubmission","reportSpamSubmission","bulkReportSpamSubmission","queryFormSpamSubmissionReportsByNamespace","countFormSpamSubmissionReports","import_rest_modules","checkForSpam","createFormSpamSubmissionReport","getFormSpamSubmissionReport","deleteFormSpamSubmissionReport","bulkDeleteFormSpamSubmissionReport","bulkDeleteFormSpamSubmissionReportByFilter","reportNotSpamSubmission","bulkReportNotSpamSubmission","reportSpamSubmission","bulkReportSpamSubmission","queryFormSpamSubmissionReportsByNamespace","countFormSpamSubmissionReports"]}
1
+ {"version":3,"sources":["../../index.ts","../../src/forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.ts","../../src/forms-v4-form-spam-submission-report-form-spam-submission-reports.http.ts","../../src/forms-v4-form-spam-submission-report-form-spam-submission-reports.public.ts","../../src/forms-v4-form-spam-submission-report-form-spam-submission-reports.context.ts"],"sourcesContent":["export * from './src/forms-v4-form-spam-submission-report-form-spam-submission-reports.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixFormsV4FormSpamSubmissionReport from './forms-v4-form-spam-submission-report-form-spam-submission-reports.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/**\n * FormSpamSubmissionReportReport stores a form submission spam report.\n * It contains submission details as well as report reason.\n */\nexport interface FormSpamSubmissionReport {\n /**\n * Form spam submission report id.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Id of a form to which the form spam submission report belongs.\n * @format GUID\n * @immutable\n */\n formId?: string;\n /**\n * Form namespace to which the form spam submission report belongs.\n * @minLength 10\n * @maxLength 50\n * @readonly\n */\n namespace?: string;\n /**\n * Form submission submitter id.\n * @immutable\n */\n submitter?: Submitter;\n /**\n * Submission values where key is a target of a form field and value is a submissions for the given field.\n * @immutable\n */\n submissions?: Record<string, any>;\n /**\n * Identifies the reason why the submission was reported as spam.\n * @immutable\n */\n reportReason?: ReportReasonWithLiterals;\n /**\n * Date of submission creation. If a submission was created in the past, pass the original submission creation date.\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * Date of form spam submission report creation.\n * @readonly\n */\n reportedDate?: Date | null;\n /**\n * Date of last update.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision.\n * @readonly\n */\n revision?: string | null;\n /** Data extensions ExtendedFields. */\n extendedFields?: ExtendedFields;\n /** Last status of the submission at the time of the report */\n submissionStatusAtReport?: SubmissionStatusWithLiterals;\n /** Order details. */\n orderDetails?: OrderDetails;\n /**\n * Contact ID. Member who created the submission, or a mapped contact.\n * @format GUID\n * @readonly\n */\n contactId?: string | null;\n /**\n * authorized viewer user id\n * @format GUID\n * @immutable\n */\n accessRestriction?: string | null;\n /**\n * Report reason description\n * @minLength 1\n * @maxLength 255\n */\n reportReasonDescription?: string | null;\n}\n\nexport interface Submitter extends SubmitterSubmitterOneOf {\n /**\n * Member ID.\n * @format GUID\n */\n memberId?: string | null;\n /**\n * Visitor ID.\n * @format GUID\n */\n visitorId?: string | null;\n /**\n * Application ID.\n * @maxLength 36\n */\n applicationId?: string | null;\n /**\n * User ID.\n * @format GUID\n */\n userId?: string | null;\n}\n\n/** @oneof */\nexport interface SubmitterSubmitterOneOf {\n /**\n * Member ID.\n * @format GUID\n */\n memberId?: string | null;\n /**\n * Visitor ID.\n * @format GUID\n */\n visitorId?: string | null;\n /**\n * Application ID.\n * @maxLength 36\n */\n applicationId?: string | null;\n /**\n * User ID.\n * @format GUID\n */\n userId?: string | null;\n}\n\nexport enum ReportReason {\n UNKNOWN_REASON = 'UNKNOWN_REASON',\n /** An email quota is reached. There were too many submissions in a short time period with the same email. */\n EMAIL_QUOTA_REACHED = 'EMAIL_QUOTA_REACHED',\n /** An IP address is is blocklisted. */\n IP_BLOCKLISTED = 'IP_BLOCKLISTED',\n /** An email is is blocklisted. */\n EMAIL_BLOCKLISTED = 'EMAIL_BLOCKLISTED',\n /** Reported spam by the AI spam detection model. It uses submission text as an input. */\n AI_REPORTED = 'AI_REPORTED',\n /** Reported as spam by a submission manager. */\n MANUALLY_REPORTED = 'MANUALLY_REPORTED',\n /** Reported as spam by an implementation of the FormSubmissionModerationSpi. */\n MODERATION_SPI = 'MODERATION_SPI',\n}\n\n/** @enumType */\nexport type ReportReasonWithLiterals =\n | ReportReason\n | 'UNKNOWN_REASON'\n | 'EMAIL_QUOTA_REACHED'\n | 'IP_BLOCKLISTED'\n | 'EMAIL_BLOCKLISTED'\n | 'AI_REPORTED'\n | 'MANUALLY_REPORTED'\n | 'MODERATION_SPI';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport enum SubmissionStatus {\n UNKNOWN_SUBMISSION_STATUS = 'UNKNOWN_SUBMISSION_STATUS',\n /** A submission is created, but has not yet been recorded in the Wix Forms collection. */\n PENDING = 'PENDING',\n /** A submission is recorded in the Wix Forms collection. */\n CONFIRMED = 'CONFIRMED',\n /** A form submission requiring payment is created. */\n PAYMENT_WAITING = 'PAYMENT_WAITING',\n /** An order of a form submission is canceled. */\n PAYMENT_CANCELED = 'PAYMENT_CANCELED',\n}\n\n/** @enumType */\nexport type SubmissionStatusWithLiterals =\n | SubmissionStatus\n | 'UNKNOWN_SUBMISSION_STATUS'\n | 'PENDING'\n | 'CONFIRMED'\n | 'PAYMENT_WAITING'\n | 'PAYMENT_CANCELED';\n\nexport interface OrderDetails {\n /**\n * ID of the checkout related to submission (applicable if form has payments added).\n * @format GUID\n * @readonly\n */\n checkoutId?: string;\n}\n\nexport interface CheckForSpamRequest {\n /** Form submission. */\n submission: FormSubmission;\n}\n\n/** Form submission that was created or retrieved. */\nexport interface FormSubmission {\n /**\n * Submission ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * ID of the form which the submission belongs to.\n * @format GUID\n * @immutable\n */\n formId?: string;\n /**\n * The app which the form submissions belong to. For example, the namespace for the Wix Forms app is `wix.form_app.form`. Call `Get Submission` to retrieve the namespace.\n * @minLength 10\n * @maxLength 50\n * @readonly\n */\n namespace?: string;\n /** Status of the submission. */\n status?: SubmissionStatusWithLiterals;\n /** Submission values where `key` is the form field and `value` is the data submitted for the given field. */\n submissions?: Record<string, any>;\n /**\n * Date and time the form submission was created.\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * Date and time the form submission was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Revision number, which increments by 1 each time the form submission is updated. To prevent conflicting changes, the existing revision must be used when updating a form submission.\n * @readonly\n */\n revision?: string | null;\n /**\n * ID of the visitor that submitted the form.\n * @readonly\n */\n submitter?: Submitter;\n /** Whether a site owner marked a submission as \"seen\". */\n seen?: boolean;\n /** Data extension object that holds users' and apps' fields. */\n extendedFields?: ExtendedFields;\n /**\n * Order details. <br>\n * <b>Note</b>: This object is only applicable when submitting a form in the Wix Payments app.\n */\n orderDetails?: FormSubmissionOrderDetails;\n /**\n * Contact ID of a site visitor who created the submission.\n * @format GUID\n * @immutable\n */\n contactId?: string | null;\n /**\n * Authorized viewer ID.\n * @format GUID\n * @immutable\n */\n accessRestriction?: string | null;\n /** Tag IDs collections associated with the current entity. */\n tags?: PublicTags;\n}\n\nexport interface FormSubmissionOrderDetails {\n /**\n * ID of the order related to submission (only applicable if a form has payments).\n * @format GUID\n * @readonly\n */\n orderId?: string | null;\n /**\n * Order number.\n * @readonly\n */\n number?: string | null;\n /**\n * Currency.\n * @format CURRENCY\n * @readonly\n */\n currency?: string | null;\n /**\n * Item subtotal.\n * @decimalValue options { gte:0.00, maxScale:2 }\n * @readonly\n */\n itemSubtotal?: string;\n /**\n * ID of the checkout related to submission (only applicable if a form has payments).\n * @format GUID\n * @readonly\n */\n checkoutId?: string;\n}\n\nexport interface PublicTags {\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n tags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\nexport interface CheckForSpamResponse {\n /** Is the submission a spam. */\n spam?: boolean;\n /** Spam report details. Filled when spam == true */\n spamReport?: SpamReport;\n}\n\nexport interface SpamReport {\n /** Identifies the reason why the submission was reported as spam. */\n reportReason?: ReportReasonWithLiterals;\n /**\n * Report reason description\n * @minLength 1\n * @maxLength 255\n */\n reportReasonDescription?: string | null;\n}\n\nexport interface CreateFormSpamSubmissionReportRequest {\n /** Form spam submission report to be created. */\n formSpamSubmissionReport: FormSpamSubmissionReport;\n}\n\nexport interface CreateFormSpamSubmissionReportResponse {\n /** The created form spam submission report. */\n formSpamSubmissionReport?: FormSpamSubmissionReport;\n}\n\nexport interface FormSpamSubmissionReportValidationErrorsDetails {\n /**\n * Submission validation errors details.\n * @maxSize 100\n */\n errors?: ValidationError[];\n}\n\nexport interface ValidationError {\n /**\n * Path indicating the source of the error, such as `submission.submissions.email``\n * @maxLength 1000\n */\n errorPath?: string;\n /** Error type. */\n errorType?: ErrorTypeWithLiterals;\n /**\n * Error message.\n * @maxLength 1000\n */\n errorMessage?: string;\n /** Additional error parameters, to help identify additional info. */\n params?: Record<string, any> | null;\n /**\n * Whether to use a custom error message.\n * If `false`, the API takes the message from the `errorType` field.\n * Default: `false`\n */\n useCustomErrorMessage?: boolean;\n}\n\nexport enum ErrorType {\n /** Error is unknown or not suitable for any of options bellow */\n UNKNOWN_ERROR = 'UNKNOWN_ERROR',\n /** Type of submitted value is incorrect */\n TYPE_ERROR = 'TYPE_ERROR',\n /** Value is required to be provided */\n REQUIRED_VALUE_ERROR = 'REQUIRED_VALUE_ERROR',\n /** Value contains additional properties not expected in schema */\n UNKNOWN_VALUE_ERROR = 'UNKNOWN_VALUE_ERROR',\n /** Text value exceeds max length */\n MAX_LENGTH_ERROR = 'MAX_LENGTH_ERROR',\n /** Text value not reaches min length */\n MIN_LENGTH_ERROR = 'MIN_LENGTH_ERROR',\n /** Text value not applicable for expected pattern */\n PATTERN_ERROR = 'PATTERN_ERROR',\n /** Text value not applicable for expected format */\n FORMAT_ERROR = 'FORMAT_ERROR',\n /** Number value is too big */\n MAX_VALUE_ERROR = 'MAX_VALUE_ERROR',\n /** Number value is too small */\n MIN_VALUE_ERROR = 'MIN_VALUE_ERROR',\n /** Number value is not multiple of expected number */\n MULTIPLE_OF_VALUE_ERROR = 'MULTIPLE_OF_VALUE_ERROR',\n /** Array value has too much items */\n MIN_ITEMS_ERROR = 'MIN_ITEMS_ERROR',\n /** Array value has not enough items */\n MAX_ITEMS_ERROR = 'MAX_ITEMS_ERROR',\n /** Value is not in list of allowed values */\n NOT_ALLOWED_VALUE_ERROR = 'NOT_ALLOWED_VALUE_ERROR',\n /** Form fields are incompatible */\n FIELDS_COMPATIBILITY_ERROR = 'FIELDS_COMPATIBILITY_ERROR',\n /** Submitted form is disabled */\n DISABLED_FORM_ERROR = 'DISABLED_FORM_ERROR',\n /** Too much forms */\n FORMS_COUNT_RESTRICTIONS_ERROR = 'FORMS_COUNT_RESTRICTIONS_ERROR',\n /** Too much fields on form */\n FIELDS_COUNT_RESTRICTIONS_ERROR = 'FIELDS_COUNT_RESTRICTIONS_ERROR',\n /** Too much steps on forms */\n STEPS_COUNT_RESTRICTIONS_ERROR = 'STEPS_COUNT_RESTRICTIONS_ERROR',\n /** Too much rules on forms */\n RULES_COUNT_RESTRICTIONS_ERROR = 'RULES_COUNT_RESTRICTIONS_ERROR',\n /** File upload is not allowed */\n FILE_UPLOAD_RESTRICTIONS_ERROR = 'FILE_UPLOAD_RESTRICTIONS_ERROR',\n /** Country code is not correct or missing from the phone number */\n INVALID_PHONE_COUNTRY_CODE_ERROR = 'INVALID_PHONE_COUNTRY_CODE_ERROR',\n /** Invalid staff member ID on appointment */\n INVALID_STAFF_ID_ERROR = 'INVALID_STAFF_ID_ERROR',\n /** Invalid business location ID on appointment */\n INVALID_LOCATION_ID_ERROR = 'INVALID_LOCATION_ID_ERROR',\n /** Missing service option on service picker field */\n MISSING_SERVICE_OPTION_ERROR = 'MISSING_SERVICE_OPTION_ERROR',\n /** Some of the service options on service picker field are deleted or unavailable */\n INVALID_SERVICE_OPTIONS_ERROR = 'INVALID_SERVICE_OPTIONS_ERROR',\n /** All of the service options on service picker field are deleted or unavailable */\n NO_AVAILABLE_SERVICE_OPTIONS_ERROR = 'NO_AVAILABLE_SERVICE_OPTIONS_ERROR',\n}\n\n/** @enumType */\nexport type ErrorTypeWithLiterals =\n | ErrorType\n | 'UNKNOWN_ERROR'\n | 'TYPE_ERROR'\n | 'REQUIRED_VALUE_ERROR'\n | 'UNKNOWN_VALUE_ERROR'\n | 'MAX_LENGTH_ERROR'\n | 'MIN_LENGTH_ERROR'\n | 'PATTERN_ERROR'\n | 'FORMAT_ERROR'\n | 'MAX_VALUE_ERROR'\n | 'MIN_VALUE_ERROR'\n | 'MULTIPLE_OF_VALUE_ERROR'\n | 'MIN_ITEMS_ERROR'\n | 'MAX_ITEMS_ERROR'\n | 'NOT_ALLOWED_VALUE_ERROR'\n | 'FIELDS_COMPATIBILITY_ERROR'\n | 'DISABLED_FORM_ERROR'\n | 'FORMS_COUNT_RESTRICTIONS_ERROR'\n | 'FIELDS_COUNT_RESTRICTIONS_ERROR'\n | 'STEPS_COUNT_RESTRICTIONS_ERROR'\n | 'RULES_COUNT_RESTRICTIONS_ERROR'\n | 'FILE_UPLOAD_RESTRICTIONS_ERROR'\n | 'INVALID_PHONE_COUNTRY_CODE_ERROR'\n | 'INVALID_STAFF_ID_ERROR'\n | 'INVALID_LOCATION_ID_ERROR'\n | 'MISSING_SERVICE_OPTION_ERROR'\n | 'INVALID_SERVICE_OPTIONS_ERROR'\n | 'NO_AVAILABLE_SERVICE_OPTIONS_ERROR';\n\nexport interface GetFormSpamSubmissionReportRequest {\n /**\n * Id of the form spam submission report to retrieve.\n * @format GUID\n */\n formSpamSubmissionReportId: string;\n}\n\nexport interface GetFormSpamSubmissionReportResponse {\n /** The retrieved form spam submission report. */\n formSpamSubmissionReport?: FormSpamSubmissionReport;\n}\n\nexport interface DeleteFormSpamSubmissionReportRequest {\n /**\n * Id of the form spam submission report to delete.\n * @format GUID\n */\n formSpamSubmissionReportId: string;\n}\n\nexport interface DeleteFormSpamSubmissionReportResponse {}\n\nexport interface BulkDeleteFormSpamSubmissionReportRequest {\n /**\n * Form ID.\n * @format GUID\n */\n formId: string;\n /**\n * Ids of the form spam submission reports to delete.\n * @maxSize 100\n * @format GUID\n */\n formSpamSubmissionReportIds?: string[];\n}\n\nexport interface BulkDeleteFormSpamSubmissionReportResponse {\n /**\n * Results of bulk report delete\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkDeleteFormSpamSubmissionReportResult[];\n /** Metadata of request */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteFormSpamSubmissionReportResult {\n /** Deleted item metadata */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\n * @format GUID\n */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface BulkDeleteFormSpamSubmissionReportByFilterRequest {\n /**\n * Filter object.\n *\n * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.\n */\n filter: Record<string, any> | null;\n}\n\nexport interface BulkDeleteFormSpamSubmissionReportByFilterResponse {\n /**\n * Job id of bulk delete form submission report by filter job\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface ReportNotSpamSubmissionRequest {\n /**\n * Id of the form spam submission report to report as not spam.\n * @format GUID\n */\n formSpamSubmissionReportId: string;\n}\n\nexport interface ReportNotSpamSubmissionResponse {\n /** Created form submission. */\n submission?: FormSubmission;\n}\n\nexport interface BulkReportNotSpamSubmissionRequest {\n /**\n * Id of the form to which belong reports\n * @format GUID\n */\n formId: string;\n /**\n * Ids of the form spam submission reports to report as not spam.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n formSpamSubmissionReportIds?: string[];\n}\n\nexport interface BulkReportNotSpamSubmissionResponse {\n /**\n * Info whatever report of specific items was successful\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkReportNotSpamSubmissionResult[];\n /** Metadata of request */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkReportNotSpamSubmissionResult {\n /** Metadata of submission, marked as not spam */\n itemMetadata?: ItemMetadata;\n /**\n * Id of related report, which was reported as not spam\n * @format GUID\n */\n formSpamSubmissionReportId?: string;\n}\n\nexport interface ReportSpamSubmissionRequest {\n /**\n * Id of the submission to report as spam.\n * @format GUID\n */\n submissionId: string;\n /** Identifies the reason why the submission was reported as spam. */\n reportReason: ReportReasonWithLiterals;\n /**\n * Report reason description\n * @minLength 1\n * @maxLength 255\n */\n reportReasonDescription?: string | null;\n}\n\nexport interface ReportSpamSubmissionResponse {\n /** Created form spam submission report. */\n formSpamSubmissionReport?: FormSpamSubmissionReport;\n}\n\nexport interface BulkReportSpamSubmissionRequest {\n /**\n * Id of the form to which belong submissions to report as spam.\n * @format GUID\n */\n formId: string;\n /**\n * Ids of the submissions to report as spam.\n * @maxSize 100\n * @format GUID\n */\n submissionIds: string[];\n /** Identifies the reason why the submission was reported as spam. */\n reportReason: ReportReasonWithLiterals;\n /** When set, items will be returned on successful report */\n returnEntity?: boolean;\n /**\n * Report reason description\n * @minLength 1\n * @maxLength 255\n */\n reportReasonDescription?: string | null;\n}\n\nexport interface BulkReportSpamSubmissionResponse {\n /**\n * Created reports with metadata\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkReportSpamSubmissionResult[];\n /** Metadata of request */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkReportSpamSubmissionResult {\n /** Created report metadata */\n itemMetadata?: ItemMetadata;\n /** Created report, exists if `returnEntity` was set to `true` in the request */\n item?: FormSpamSubmissionReport;\n}\n\nexport interface QueryFormSpamSubmissionReportsByNamespaceRequest {\n /** WQL expression. */\n query: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 3\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryFormSpamSubmissionReportsByNamespaceResponse {\n /** The retrieved FormSpamSubmissionReports. */\n formSpamSubmissionReports?: FormSpamSubmissionReport[];\n /** Details on the paged set of results returned. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor pointing to next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface CountFormSpamSubmissionReportsRequest {\n /**\n * Form IDs.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n formIds: string[];\n /**\n * Identifies the app which the form submissions belong to. For example, the namespace for the Wix Forms App is `\"wix.form_app.form\"`. The namespace of a submission can be retrieved using the Get Submission endpoint.\n * @minLength 10\n * @maxLength 50\n */\n namespace: string;\n}\n\nexport interface CountFormSpamSubmissionReportsResponse {\n /** Forms submission count. */\n formsSpamSubmissionReportsCount?: FormSpamSubmissionReportsCount[];\n}\n\nexport interface FormSpamSubmissionReportsCount {\n /**\n * Form ID.\n * @format GUID\n */\n formId?: string;\n /** Total number of submissions. */\n totalCount?: number;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n/** @docsIgnore */\nexport type CreateFormSpamSubmissionReportValidationErrors = {\n ruleName?: 'FORM_SPAM_SUBMISSION_REPORT_VALIDATION';\n};\n\n/**\n * Checks if submission is a spam.\n * @param submission - Form submission.\n * @public\n * @documentationMaturity preview\n * @requiredField submission\n * @requiredField submission.formId\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_CHECK_FOR_SPAM\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.CheckForSpam\n */\nexport async function checkForSpam(\n submission: NonNullablePaths<FormSubmission, `formId`, 2>\n): Promise<\n NonNullablePaths<CheckForSpamResponse, `spam` | `spamReport.reportReason`, 3>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n submission: submission,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.checkForSpam(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { submission: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['submission']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Creates a new spam submission.\n * To upload submission media, use the FormSubmissionService.getMediaUploadUrl endpoint.\n * @param formSpamSubmissionReport - Form spam submission report to be created.\n * @public\n * @documentationMaturity preview\n * @requiredField formSpamSubmissionReport\n * @requiredField formSpamSubmissionReport.formId\n * @requiredField formSpamSubmissionReport.reportReason\n * @requiredField formSpamSubmissionReport.submissions\n * @requiredField formSpamSubmissionReport.submitter\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_CREATE\n * @applicableIdentity APP\n * @returns The created form spam submission report.\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.CreateFormSpamSubmissionReport\n */\nexport async function createFormSpamSubmissionReport(\n formSpamSubmissionReport: NonNullablePaths<\n FormSpamSubmissionReport,\n `formId` | `reportReason` | `submissions` | `submitter`,\n 2\n >\n): Promise<\n NonNullablePaths<\n FormSpamSubmissionReport,\n | `formId`\n | `namespace`\n | `reportReason`\n | `submissionStatusAtReport`\n | `orderDetails.checkoutId`,\n 3\n > & {\n __validationErrorsType?: CreateFormSpamSubmissionReportValidationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n formSpamSubmissionReport: formSpamSubmissionReport,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.createFormSpamSubmissionReport(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.formSpamSubmissionReport!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { formSpamSubmissionReport: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['formSpamSubmissionReport']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Get a spam submission by id.\n * @param formSpamSubmissionReportId - Id of the form spam submission report to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField formSpamSubmissionReportId\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_READ\n * @applicableIdentity APP\n * @returns The retrieved form spam submission report.\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.GetFormSpamSubmissionReport\n */\nexport async function getFormSpamSubmissionReport(\n formSpamSubmissionReportId: string\n): Promise<\n NonNullablePaths<\n FormSpamSubmissionReport,\n | `formId`\n | `namespace`\n | `reportReason`\n | `submissionStatusAtReport`\n | `orderDetails.checkoutId`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n formSpamSubmissionReportId: formSpamSubmissionReportId,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.getFormSpamSubmissionReport(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.formSpamSubmissionReport!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { formSpamSubmissionReportId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['formSpamSubmissionReportId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Delete a spam submission report.\n * @param formSpamSubmissionReportId - Id of the form spam submission report to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField formSpamSubmissionReportId\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_DELETE\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.DeleteFormSpamSubmissionReport\n */\nexport async function deleteFormSpamSubmissionReport(\n formSpamSubmissionReportId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n formSpamSubmissionReportId: formSpamSubmissionReportId,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.deleteFormSpamSubmissionReport(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { formSpamSubmissionReportId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['formSpamSubmissionReportId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Deletes report by IDS or all for specific form.\n * @param formId - Form ID.\n * @public\n * @documentationMaturity preview\n * @requiredField formId\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_DELETE\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.BulkDeleteFormSpamSubmissionReport\n */\nexport async function bulkDeleteFormSpamSubmissionReport(\n formId: string,\n options?: BulkDeleteFormSpamSubmissionReportOptions\n): Promise<\n NonNullablePaths<\n BulkDeleteFormSpamSubmissionReportResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n formId: formId,\n formSpamSubmissionReportIds: options?.formSpamSubmissionReportIds,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.bulkDeleteFormSpamSubmissionReport(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n formId: '$[0]',\n formSpamSubmissionReportIds: '$[1].formSpamSubmissionReportIds',\n },\n singleArgumentUnchanged: false,\n },\n ['formId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkDeleteFormSpamSubmissionReportOptions {\n /**\n * Ids of the form spam submission reports to delete.\n * @maxSize 100\n * @format GUID\n */\n formSpamSubmissionReportIds?: string[];\n}\n\n/**\n * Deletes reports by filter for specific form.\n * @param filter - Filter object.\n *\n * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.\n * @public\n * @documentationMaturity preview\n * @requiredField filter\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_DELETE\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.BulkDeleteFormSpamSubmissionReportByFilter\n */\nexport async function bulkDeleteFormSpamSubmissionReportByFilter(\n filter: Record<string, any>\n): Promise<\n NonNullablePaths<\n BulkDeleteFormSpamSubmissionReportByFilterResponse,\n `jobId`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ filter: filter });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.bulkDeleteFormSpamSubmissionReportByFilter(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { filter: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['filter']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Report a spam submission as not spam. The submission is created, and the spam report is deleted.\n * Submission automations are triggered the same way as in standard submission creation flow.\n * @param formSpamSubmissionReportId - Id of the form spam submission report to report as not spam.\n * @public\n * @documentationMaturity preview\n * @requiredField formSpamSubmissionReportId\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_REPORT_NOT_SPAM\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.ReportNotSpamSubmission\n */\nexport async function reportNotSpamSubmission(\n formSpamSubmissionReportId: string\n): Promise<\n NonNullablePaths<\n ReportNotSpamSubmissionResponse,\n | `submission.formId`\n | `submission.namespace`\n | `submission.status`\n | `submission.seen`\n | `submission.orderDetails.itemSubtotal`\n | `submission.orderDetails.checkoutId`\n | `submission.tags.tags.tagIds`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n formSpamSubmissionReportId: formSpamSubmissionReportId,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.reportNotSpamSubmission(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { formSpamSubmissionReportId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['formSpamSubmissionReportId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Report a spam submissions as not spam. The submissions is created, and the spam reports is deleted.\n * Submissions automations are triggered the same way as in standard submission creation flow.\n * @param formId - Id of the form to which belong reports\n * @public\n * @documentationMaturity preview\n * @requiredField formId\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_REPORT_NOT_SPAM\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.BulkReportNotSpamSubmission\n */\nexport async function bulkReportNotSpamSubmission(\n formId: string,\n options?: BulkReportNotSpamSubmissionOptions\n): Promise<\n NonNullablePaths<\n BulkReportNotSpamSubmissionResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.formSpamSubmissionReportId`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n formId: formId,\n formSpamSubmissionReportIds: options?.formSpamSubmissionReportIds,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.bulkReportNotSpamSubmission(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n formId: '$[0]',\n formSpamSubmissionReportIds: '$[1].formSpamSubmissionReportIds',\n },\n singleArgumentUnchanged: false,\n },\n ['formId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkReportNotSpamSubmissionOptions {\n /**\n * Ids of the form spam submission reports to report as not spam.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n formSpamSubmissionReportIds?: string[];\n}\n\n/**\n * Report a submission as spam. The spam submission report is created, and the submission is deleted.\n * @param submissionId - Id of the submission to report as spam.\n * @param reportReason - Identifies the reason why the submission was reported as spam.\n * @public\n * @documentationMaturity preview\n * @requiredField reportReason\n * @requiredField submissionId\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_CREATE\n * @permissionId WIX_FORMS.SUBMISSION_READ_ANY\n * @permissionId WIX_FORMS.SUBMISSION_DELETE\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.ReportSpamSubmission\n */\nexport async function reportSpamSubmission(\n submissionId: string,\n reportReason: ReportReasonWithLiterals,\n options?: ReportSpamSubmissionOptions\n): Promise<\n NonNullablePaths<\n ReportSpamSubmissionResponse,\n | `formSpamSubmissionReport.formId`\n | `formSpamSubmissionReport.namespace`\n | `formSpamSubmissionReport.reportReason`\n | `formSpamSubmissionReport.submissionStatusAtReport`\n | `formSpamSubmissionReport.orderDetails.checkoutId`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n submissionId: submissionId,\n reportReason: reportReason,\n reportReasonDescription: options?.reportReasonDescription,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.reportSpamSubmission(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n submissionId: '$[0]',\n reportReason: '$[1]',\n reportReasonDescription: '$[2].reportReasonDescription',\n },\n singleArgumentUnchanged: false,\n },\n ['submissionId', 'reportReason', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ReportSpamSubmissionOptions {\n /**\n * Report reason description\n * @minLength 1\n * @maxLength 255\n */\n reportReasonDescription?: string | null;\n}\n\n/**\n * Report multiple submissions as spam. The spam submission reports is created, and the submissions is deleted.\n * @param formId - Id of the form to which belong submissions to report as spam.\n * @public\n * @documentationMaturity preview\n * @requiredField formId\n * @requiredField options.reportReason\n * @requiredField options.submissionIds\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_CREATE\n * @permissionId WIX_FORMS.SUBMISSION_READ_ANY\n * @permissionId WIX_FORMS.SUBMISSION_DELETE\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.BulkReportSpamSubmission\n */\nexport async function bulkReportSpamSubmission(\n formId: string,\n options?: NonNullablePaths<\n BulkReportSpamSubmissionOptions,\n `reportReason` | `submissionIds`,\n 2\n >\n): Promise<\n NonNullablePaths<\n BulkReportSpamSubmissionResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.formId`\n | `results.${number}.item.namespace`\n | `results.${number}.item.reportReason`\n | `results.${number}.item.submissionStatusAtReport`\n | `results.${number}.item.orderDetails.checkoutId`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n formId: formId,\n submissionIds: options?.submissionIds,\n reportReason: options?.reportReason,\n returnEntity: options?.returnEntity,\n reportReasonDescription: options?.reportReasonDescription,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.bulkReportSpamSubmission(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n formId: '$[0]',\n submissionIds: '$[1].submissionIds',\n reportReason: '$[1].reportReason',\n returnEntity: '$[1].returnEntity',\n reportReasonDescription: '$[1].reportReasonDescription',\n },\n singleArgumentUnchanged: false,\n },\n ['formId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkReportSpamSubmissionOptions {\n /**\n * Ids of the submissions to report as spam.\n * @maxSize 100\n * @format GUID\n */\n submissionIds: string[];\n /** Identifies the reason why the submission was reported as spam. */\n reportReason: ReportReasonWithLiterals;\n /** When set, items will be returned on successful report */\n returnEntity?: boolean;\n /**\n * Report reason description\n * @minLength 1\n * @maxLength 255\n */\n reportReasonDescription?: string | null;\n}\n\n/**\n * Query form spam submission reports using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).\n * @public\n * @documentationMaturity preview\n * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_READ\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.QueryFormSpamSubmissionReportsByNamespace\n */\nexport function queryFormSpamSubmissionReportsByNamespace(): FormSpamSubmissionReportsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n FormSpamSubmissionReport,\n 'CURSOR',\n QueryFormSpamSubmissionReportsByNamespaceRequest,\n QueryFormSpamSubmissionReportsByNamespaceResponse\n >({\n func: async (payload: QueryFormSpamSubmissionReportsByNamespaceRequest) => {\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.queryFormSpamSubmissionReportsByNamespace(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (\n query: QueryFormSpamSubmissionReportsByNamespaceRequest['query']\n ) => {\n const args = [query, {}] as [\n QueryFormSpamSubmissionReportsByNamespaceRequest['query'],\n {}\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryFormSpamSubmissionReportsByNamespaceResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.formSpamSubmissionReports,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface FormSpamSubmissionReportsQueryResult\n extends QueryCursorResult {\n items: FormSpamSubmissionReport[];\n query: FormSpamSubmissionReportsQueryBuilder;\n next: () => Promise<FormSpamSubmissionReportsQueryResult>;\n prev: () => Promise<FormSpamSubmissionReportsQueryResult>;\n}\n\nexport interface FormSpamSubmissionReportsQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (\n propertyName:\n | '_id'\n | 'formId'\n | 'namespace'\n | 'reportReason'\n | '_createdDate'\n | 'reportedDate',\n value: any\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (\n propertyName:\n | '_id'\n | 'formId'\n | 'reportReason'\n | '_createdDate'\n | 'reportedDate',\n value: any\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (\n propertyName: '_createdDate' | 'reportedDate',\n value: any\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (\n propertyName: '_createdDate' | 'reportedDate',\n value: any\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (\n propertyName: '_createdDate' | 'reportedDate',\n value: any\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (\n propertyName: '_createdDate' | 'reportedDate',\n value: any\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName:\n | '_id'\n | 'formId'\n | 'reportReason'\n | '_createdDate'\n | 'reportedDate',\n value: any\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (\n ...propertyNames: Array<\n '_id' | 'formId' | 'reportReason' | '_createdDate' | 'reportedDate'\n >\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (\n ...propertyNames: Array<\n '_id' | 'formId' | 'reportReason' | '_createdDate' | 'reportedDate'\n >\n ) => FormSpamSubmissionReportsQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => FormSpamSubmissionReportsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => FormSpamSubmissionReportsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<FormSpamSubmissionReportsQueryResult>;\n}\n\n/**\n * Counts the number of spam submission reports belonging to the specified forms.\n * @param formIds - Form IDs.\n * @param namespace - Identifies the app which the form submissions belong to. For example, the namespace for the Wix Forms App is `\"wix.form_app.form\"`. The namespace of a submission can be retrieved using the Get Submission endpoint.\n * @public\n * @documentationMaturity preview\n * @requiredField formIds\n * @requiredField namespace\n * @permissionId WIX_FORMS.SUBMISSION_READ_ANY\n * @applicableIdentity APP\n * @fqn wix.forms.v4.FormSpamSubmissionReportService.CountFormSpamSubmissionReports\n */\nexport async function countFormSpamSubmissionReports(\n formIds: string[],\n namespace: string\n): Promise<\n NonNullablePaths<\n CountFormSpamSubmissionReportsResponse,\n | `formsSpamSubmissionReportsCount`\n | `formsSpamSubmissionReportsCount.${number}.formId`\n | `formsSpamSubmissionReportsCount.${number}.totalCount`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n formIds: formIds,\n namespace: namespace,\n });\n\n const reqOpts =\n ambassadorWixFormsV4FormSpamSubmissionReport.countFormSpamSubmissionReports(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { formIds: '$[0]', namespace: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['formIds', 'namespace']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixFormsV4FormSpamSubmissionReportServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n {\n srcPath: '/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/form-spam-submission-report-service',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_forms_form-spam-submission-reports';\n\n/** Checks if submission is a spam. */\nexport function checkForSpam(payload: object): RequestOptionsFactory<any> {\n function __checkForSpam({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'submission.createdDate' },\n { path: 'submission.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn: 'wix.forms.v4.FormSpamSubmissionReportService.CheckForSpam',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath: '/v4/form-spam-submission-reports/check-for-spam',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __checkForSpam;\n}\n\n/**\n * Creates a new spam submission.\n * To upload submission media, use the FormSubmissionService.getMediaUploadUrl endpoint.\n */\nexport function createFormSpamSubmissionReport(\n payload: object\n): RequestOptionsFactory<any> {\n function __createFormSpamSubmissionReport({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'formSpamSubmissionReport.createdDate' },\n { path: 'formSpamSubmissionReport.reportedDate' },\n { path: 'formSpamSubmissionReport.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.CreateFormSpamSubmissionReport',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath: '/v4/form-spam-submission-reports',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'formSpamSubmissionReport.createdDate' },\n { path: 'formSpamSubmissionReport.reportedDate' },\n { path: 'formSpamSubmissionReport.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createFormSpamSubmissionReport;\n}\n\n/** Get a spam submission by id. */\nexport function getFormSpamSubmissionReport(\n payload: object\n): RequestOptionsFactory<any> {\n function __getFormSpamSubmissionReport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'GET' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.GetFormSpamSubmissionReport',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath:\n '/v4/form-spam-submission-reports/{formSpamSubmissionReportId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'formSpamSubmissionReport.createdDate' },\n { path: 'formSpamSubmissionReport.reportedDate' },\n { path: 'formSpamSubmissionReport.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getFormSpamSubmissionReport;\n}\n\n/** Delete a spam submission report. */\nexport function deleteFormSpamSubmissionReport(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteFormSpamSubmissionReport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.DeleteFormSpamSubmissionReport',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath:\n '/v4/form-spam-submission-reports/{formSpamSubmissionReportId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteFormSpamSubmissionReport;\n}\n\n/** Deletes report by IDS or all for specific form. */\nexport function bulkDeleteFormSpamSubmissionReport(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteFormSpamSubmissionReport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.BulkDeleteFormSpamSubmissionReport',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath: '/v4/bulk/form-spam-submission-reports/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteFormSpamSubmissionReport;\n}\n\n/** Deletes reports by filter for specific form. */\nexport function bulkDeleteFormSpamSubmissionReportByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteFormSpamSubmissionReportByFilter({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.BulkDeleteFormSpamSubmissionReportByFilter',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath: '/v4/bulk/form-spam-submission-reports/delete-by-filter',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteFormSpamSubmissionReportByFilter;\n}\n\n/**\n * Report a spam submission as not spam. The submission is created, and the spam report is deleted.\n * Submission automations are triggered the same way as in standard submission creation flow.\n */\nexport function reportNotSpamSubmission(\n payload: object\n): RequestOptionsFactory<any> {\n function __reportNotSpamSubmission({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.ReportNotSpamSubmission',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath:\n '/v4/form-spam-submission-reports/{formSpamSubmissionReportId}/report-not-spam-submission',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'submission.createdDate' },\n { path: 'submission.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __reportNotSpamSubmission;\n}\n\n/**\n * Report a spam submissions as not spam. The submissions is created, and the spam reports is deleted.\n * Submissions automations are triggered the same way as in standard submission creation flow.\n */\nexport function bulkReportNotSpamSubmission(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkReportNotSpamSubmission({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.BulkReportNotSpamSubmission',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath:\n '/v4/bulk/form-spam-submission-reports/report-not-spam-submission',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkReportNotSpamSubmission;\n}\n\n/** Report a submission as spam. The spam submission report is created, and the submission is deleted. */\nexport function reportSpamSubmission(\n payload: object\n): RequestOptionsFactory<any> {\n function __reportSpamSubmission({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.ReportSpamSubmission',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath: '/v4/submissions/{submissionId}/report-spam-submission',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'formSpamSubmissionReport.createdDate' },\n { path: 'formSpamSubmissionReport.reportedDate' },\n { path: 'formSpamSubmissionReport.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __reportSpamSubmission;\n}\n\n/** Report multiple submissions as spam. The spam submission reports is created, and the submissions is deleted. */\nexport function bulkReportSpamSubmission(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkReportSpamSubmission({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.BulkReportSpamSubmission',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath: '/v4/bulk/submissions/report-spam-submission',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.reportedDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkReportSpamSubmission;\n}\n\n/** Query form spam submission reports using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language). */\nexport function queryFormSpamSubmissionReportsByNamespace(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryFormSpamSubmissionReportsByNamespace({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.QueryFormSpamSubmissionReportsByNamespace',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath: '/v4/form-spam-submission-reports/namespace/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'formSpamSubmissionReports.createdDate' },\n { path: 'formSpamSubmissionReports.reportedDate' },\n { path: 'formSpamSubmissionReports.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryFormSpamSubmissionReportsByNamespace;\n}\n\n/** Counts the number of spam submission reports belonging to the specified forms. */\nexport function countFormSpamSubmissionReports(\n payload: object\n): RequestOptionsFactory<any> {\n function __countFormSpamSubmissionReports({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.forms.v4.form_spam_submission_report',\n method: 'POST' as any,\n methodFqn:\n 'wix.forms.v4.FormSpamSubmissionReportService.CountFormSpamSubmissionReports',\n packageName: PACKAGE_NAME,\n url: resolveWixFormsV4FormSpamSubmissionReportServiceUrl({\n protoPath: '/v4/form-spam-submission-reports/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countFormSpamSubmissionReports;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n BulkDeleteFormSpamSubmissionReportByFilterResponse,\n BulkDeleteFormSpamSubmissionReportOptions,\n BulkDeleteFormSpamSubmissionReportResponse,\n BulkReportNotSpamSubmissionOptions,\n BulkReportNotSpamSubmissionResponse,\n BulkReportSpamSubmissionOptions,\n BulkReportSpamSubmissionResponse,\n CheckForSpamResponse,\n CountFormSpamSubmissionReportsResponse,\n CreateFormSpamSubmissionReportValidationErrors,\n FormSpamSubmissionReport,\n FormSpamSubmissionReportsQueryBuilder,\n FormSubmission,\n ReportNotSpamSubmissionResponse,\n ReportReasonWithLiterals,\n ReportSpamSubmissionOptions,\n ReportSpamSubmissionResponse,\n bulkDeleteFormSpamSubmissionReport as universalBulkDeleteFormSpamSubmissionReport,\n bulkDeleteFormSpamSubmissionReportByFilter as universalBulkDeleteFormSpamSubmissionReportByFilter,\n bulkReportNotSpamSubmission as universalBulkReportNotSpamSubmission,\n bulkReportSpamSubmission as universalBulkReportSpamSubmission,\n checkForSpam as universalCheckForSpam,\n countFormSpamSubmissionReports as universalCountFormSpamSubmissionReports,\n createFormSpamSubmissionReport as universalCreateFormSpamSubmissionReport,\n deleteFormSpamSubmissionReport as universalDeleteFormSpamSubmissionReport,\n getFormSpamSubmissionReport as universalGetFormSpamSubmissionReport,\n queryFormSpamSubmissionReportsByNamespace as universalQueryFormSpamSubmissionReportsByNamespace,\n reportNotSpamSubmission as universalReportNotSpamSubmission,\n reportSpamSubmission as universalReportSpamSubmission,\n} from './forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/forms' };\n\nexport function checkForSpam(httpClient: HttpClient): CheckForSpamSignature {\n return (submission: NonNullablePaths<FormSubmission, `formId`, 2>) =>\n universalCheckForSpam(\n submission,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CheckForSpamSignature {\n /**\n * Checks if submission is a spam.\n * @param - Form submission.\n */\n (submission: NonNullablePaths<FormSubmission, `formId`, 2>): Promise<\n NonNullablePaths<\n CheckForSpamResponse,\n `spam` | `spamReport.reportReason`,\n 3\n >\n >;\n}\n\nexport function createFormSpamSubmissionReport(\n httpClient: HttpClient\n): CreateFormSpamSubmissionReportSignature {\n return (\n formSpamSubmissionReport: NonNullablePaths<\n FormSpamSubmissionReport,\n `formId` | `reportReason` | `submissions` | `submitter`,\n 2\n >\n ) =>\n universalCreateFormSpamSubmissionReport(\n formSpamSubmissionReport,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateFormSpamSubmissionReportSignature {\n /**\n * Creates a new spam submission.\n * To upload submission media, use the FormSubmissionService.getMediaUploadUrl endpoint.\n * @param - Form spam submission report to be created.\n * @returns The created form spam submission report.\n */\n (\n formSpamSubmissionReport: NonNullablePaths<\n FormSpamSubmissionReport,\n `formId` | `reportReason` | `submissions` | `submitter`,\n 2\n >\n ): Promise<\n NonNullablePaths<\n FormSpamSubmissionReport,\n | `formId`\n | `namespace`\n | `reportReason`\n | `submissionStatusAtReport`\n | `orderDetails.checkoutId`,\n 3\n > & {\n __validationErrorsType?: CreateFormSpamSubmissionReportValidationErrors;\n }\n >;\n}\n\nexport function getFormSpamSubmissionReport(\n httpClient: HttpClient\n): GetFormSpamSubmissionReportSignature {\n return (formSpamSubmissionReportId: string) =>\n universalGetFormSpamSubmissionReport(\n formSpamSubmissionReportId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetFormSpamSubmissionReportSignature {\n /**\n * Get a spam submission by id.\n * @param - Id of the form spam submission report to retrieve.\n * @returns The retrieved form spam submission report.\n */\n (formSpamSubmissionReportId: string): Promise<\n NonNullablePaths<\n FormSpamSubmissionReport,\n | `formId`\n | `namespace`\n | `reportReason`\n | `submissionStatusAtReport`\n | `orderDetails.checkoutId`,\n 3\n >\n >;\n}\n\nexport function deleteFormSpamSubmissionReport(\n httpClient: HttpClient\n): DeleteFormSpamSubmissionReportSignature {\n return (formSpamSubmissionReportId: string) =>\n universalDeleteFormSpamSubmissionReport(\n formSpamSubmissionReportId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteFormSpamSubmissionReportSignature {\n /**\n * Delete a spam submission report.\n * @param - Id of the form spam submission report to delete.\n */\n (formSpamSubmissionReportId: string): Promise<void>;\n}\n\nexport function bulkDeleteFormSpamSubmissionReport(\n httpClient: HttpClient\n): BulkDeleteFormSpamSubmissionReportSignature {\n return (\n formId: string,\n options?: BulkDeleteFormSpamSubmissionReportOptions\n ) =>\n universalBulkDeleteFormSpamSubmissionReport(\n formId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkDeleteFormSpamSubmissionReportSignature {\n /**\n * Deletes report by IDS or all for specific form.\n * @param - Form ID.\n */\n (\n formId: string,\n options?: BulkDeleteFormSpamSubmissionReportOptions\n ): Promise<\n NonNullablePaths<\n BulkDeleteFormSpamSubmissionReportResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function bulkDeleteFormSpamSubmissionReportByFilter(\n httpClient: HttpClient\n): BulkDeleteFormSpamSubmissionReportByFilterSignature {\n return (filter: Record<string, any>) =>\n universalBulkDeleteFormSpamSubmissionReportByFilter(\n filter,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkDeleteFormSpamSubmissionReportByFilterSignature {\n /**\n * Deletes reports by filter for specific form.\n * @param - Filter object.\n *\n * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.\n */\n (filter: Record<string, any>): Promise<\n NonNullablePaths<\n BulkDeleteFormSpamSubmissionReportByFilterResponse,\n `jobId`,\n 2\n >\n >;\n}\n\nexport function reportNotSpamSubmission(\n httpClient: HttpClient\n): ReportNotSpamSubmissionSignature {\n return (formSpamSubmissionReportId: string) =>\n universalReportNotSpamSubmission(\n formSpamSubmissionReportId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ReportNotSpamSubmissionSignature {\n /**\n * Report a spam submission as not spam. The submission is created, and the spam report is deleted.\n * Submission automations are triggered the same way as in standard submission creation flow.\n * @param - Id of the form spam submission report to report as not spam.\n */\n (formSpamSubmissionReportId: string): Promise<\n NonNullablePaths<\n ReportNotSpamSubmissionResponse,\n | `submission.formId`\n | `submission.namespace`\n | `submission.status`\n | `submission.seen`\n | `submission.orderDetails.itemSubtotal`\n | `submission.orderDetails.checkoutId`\n | `submission.tags.tags.tagIds`,\n 5\n >\n >;\n}\n\nexport function bulkReportNotSpamSubmission(\n httpClient: HttpClient\n): BulkReportNotSpamSubmissionSignature {\n return (formId: string, options?: BulkReportNotSpamSubmissionOptions) =>\n universalBulkReportNotSpamSubmission(\n formId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkReportNotSpamSubmissionSignature {\n /**\n * Report a spam submissions as not spam. The submissions is created, and the spam reports is deleted.\n * Submissions automations are triggered the same way as in standard submission creation flow.\n * @param - Id of the form to which belong reports\n */\n (formId: string, options?: BulkReportNotSpamSubmissionOptions): Promise<\n NonNullablePaths<\n BulkReportNotSpamSubmissionResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.formSpamSubmissionReportId`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function reportSpamSubmission(\n httpClient: HttpClient\n): ReportSpamSubmissionSignature {\n return (\n submissionId: string,\n reportReason: ReportReasonWithLiterals,\n options?: ReportSpamSubmissionOptions\n ) =>\n universalReportSpamSubmission(\n submissionId,\n reportReason,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ReportSpamSubmissionSignature {\n /**\n * Report a submission as spam. The spam submission report is created, and the submission is deleted.\n * @param - Id of the submission to report as spam.\n * @param - Identifies the reason why the submission was reported as spam.\n */\n (\n submissionId: string,\n reportReason: ReportReasonWithLiterals,\n options?: ReportSpamSubmissionOptions\n ): Promise<\n NonNullablePaths<\n ReportSpamSubmissionResponse,\n | `formSpamSubmissionReport.formId`\n | `formSpamSubmissionReport.namespace`\n | `formSpamSubmissionReport.reportReason`\n | `formSpamSubmissionReport.submissionStatusAtReport`\n | `formSpamSubmissionReport.orderDetails.checkoutId`,\n 4\n >\n >;\n}\n\nexport function bulkReportSpamSubmission(\n httpClient: HttpClient\n): BulkReportSpamSubmissionSignature {\n return (\n formId: string,\n options?: NonNullablePaths<\n BulkReportSpamSubmissionOptions,\n `reportReason` | `submissionIds`,\n 2\n >\n ) =>\n universalBulkReportSpamSubmission(\n formId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkReportSpamSubmissionSignature {\n /**\n * Report multiple submissions as spam. The spam submission reports is created, and the submissions is deleted.\n * @param - Id of the form to which belong submissions to report as spam.\n */\n (\n formId: string,\n options?: NonNullablePaths<\n BulkReportSpamSubmissionOptions,\n `reportReason` | `submissionIds`,\n 2\n >\n ): Promise<\n NonNullablePaths<\n BulkReportSpamSubmissionResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.formId`\n | `results.${number}.item.namespace`\n | `results.${number}.item.reportReason`\n | `results.${number}.item.submissionStatusAtReport`\n | `results.${number}.item.orderDetails.checkoutId`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function queryFormSpamSubmissionReportsByNamespace(\n httpClient: HttpClient\n): QueryFormSpamSubmissionReportsByNamespaceSignature {\n return () =>\n universalQueryFormSpamSubmissionReportsByNamespace(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryFormSpamSubmissionReportsByNamespaceSignature {\n /**\n * Query form spam submission reports using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).\n */\n (): FormSpamSubmissionReportsQueryBuilder;\n}\n\nexport function countFormSpamSubmissionReports(\n httpClient: HttpClient\n): CountFormSpamSubmissionReportsSignature {\n return (formIds: string[], namespace: string) =>\n universalCountFormSpamSubmissionReports(\n formIds,\n namespace,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CountFormSpamSubmissionReportsSignature {\n /**\n * Counts the number of spam submission reports belonging to the specified forms.\n * @param - Form IDs.\n * @param - Identifies the app which the form submissions belong to. For example, the namespace for the Wix Forms App is `\"wix.form_app.form\"`. The namespace of a submission can be retrieved using the Get Submission endpoint.\n */\n (formIds: string[], namespace: string): Promise<\n NonNullablePaths<\n CountFormSpamSubmissionReportsResponse,\n | `formsSpamSubmissionReportsCount`\n | `formsSpamSubmissionReportsCount.${number}.formId`\n | `formsSpamSubmissionReportsCount.${number}.totalCount`,\n 4\n >\n >;\n}\n\nexport {\n ActionEvent,\n ApplicationError,\n BulkActionMetadata,\n BulkDeleteFormSpamSubmissionReportByFilterRequest,\n BulkDeleteFormSpamSubmissionReportByFilterResponse,\n BulkDeleteFormSpamSubmissionReportOptions,\n BulkDeleteFormSpamSubmissionReportRequest,\n BulkDeleteFormSpamSubmissionReportResponse,\n BulkDeleteFormSpamSubmissionReportResult,\n BulkReportNotSpamSubmissionOptions,\n BulkReportNotSpamSubmissionRequest,\n BulkReportNotSpamSubmissionResponse,\n BulkReportNotSpamSubmissionResult,\n BulkReportSpamSubmissionOptions,\n BulkReportSpamSubmissionRequest,\n BulkReportSpamSubmissionResponse,\n BulkReportSpamSubmissionResult,\n CheckForSpamRequest,\n CheckForSpamResponse,\n CountFormSpamSubmissionReportsRequest,\n CountFormSpamSubmissionReportsResponse,\n CreateFormSpamSubmissionReportRequest,\n CreateFormSpamSubmissionReportResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n DeleteFormSpamSubmissionReportRequest,\n DeleteFormSpamSubmissionReportResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n ErrorType,\n ExtendedFields,\n FormSpamSubmissionReport,\n FormSpamSubmissionReportValidationErrorsDetails,\n FormSpamSubmissionReportsCount,\n FormSpamSubmissionReportsQueryBuilder,\n FormSpamSubmissionReportsQueryResult,\n FormSubmission,\n FormSubmissionOrderDetails,\n GetFormSpamSubmissionReportRequest,\n GetFormSpamSubmissionReportResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n ItemMetadata,\n MessageEnvelope,\n OrderDetails,\n PublicTags,\n QueryFormSpamSubmissionReportsByNamespaceRequest,\n QueryFormSpamSubmissionReportsByNamespaceResponse,\n ReportNotSpamSubmissionRequest,\n ReportNotSpamSubmissionResponse,\n ReportReason,\n ReportSpamSubmissionOptions,\n ReportSpamSubmissionRequest,\n ReportSpamSubmissionResponse,\n RestoreInfo,\n SortOrder,\n Sorting,\n SpamReport,\n SubmissionStatus,\n Submitter,\n SubmitterSubmitterOneOf,\n TagList,\n ValidationError,\n WebhookIdentityType,\n} from './forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js';\n","import {\n checkForSpam as publicCheckForSpam,\n createFormSpamSubmissionReport as publicCreateFormSpamSubmissionReport,\n getFormSpamSubmissionReport as publicGetFormSpamSubmissionReport,\n deleteFormSpamSubmissionReport as publicDeleteFormSpamSubmissionReport,\n bulkDeleteFormSpamSubmissionReport as publicBulkDeleteFormSpamSubmissionReport,\n bulkDeleteFormSpamSubmissionReportByFilter as publicBulkDeleteFormSpamSubmissionReportByFilter,\n reportNotSpamSubmission as publicReportNotSpamSubmission,\n bulkReportNotSpamSubmission as publicBulkReportNotSpamSubmission,\n reportSpamSubmission as publicReportSpamSubmission,\n bulkReportSpamSubmission as publicBulkReportSpamSubmission,\n queryFormSpamSubmissionReportsByNamespace as publicQueryFormSpamSubmissionReportsByNamespace,\n countFormSpamSubmissionReports as publicCountFormSpamSubmissionReports,\n} from './forms-v4-form-spam-submission-report-form-spam-submission-reports.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const checkForSpam: MaybeContext<\n BuildRESTFunction<typeof publicCheckForSpam> & typeof publicCheckForSpam\n> = /*#__PURE__*/ createRESTModule(publicCheckForSpam);\nexport const createFormSpamSubmissionReport: MaybeContext<\n BuildRESTFunction<typeof publicCreateFormSpamSubmissionReport> &\n typeof publicCreateFormSpamSubmissionReport\n> = /*#__PURE__*/ createRESTModule(publicCreateFormSpamSubmissionReport);\nexport const getFormSpamSubmissionReport: MaybeContext<\n BuildRESTFunction<typeof publicGetFormSpamSubmissionReport> &\n typeof publicGetFormSpamSubmissionReport\n> = /*#__PURE__*/ createRESTModule(publicGetFormSpamSubmissionReport);\nexport const deleteFormSpamSubmissionReport: MaybeContext<\n BuildRESTFunction<typeof publicDeleteFormSpamSubmissionReport> &\n typeof publicDeleteFormSpamSubmissionReport\n> = /*#__PURE__*/ createRESTModule(publicDeleteFormSpamSubmissionReport);\nexport const bulkDeleteFormSpamSubmissionReport: MaybeContext<\n BuildRESTFunction<typeof publicBulkDeleteFormSpamSubmissionReport> &\n typeof publicBulkDeleteFormSpamSubmissionReport\n> = /*#__PURE__*/ createRESTModule(publicBulkDeleteFormSpamSubmissionReport);\nexport const bulkDeleteFormSpamSubmissionReportByFilter: MaybeContext<\n BuildRESTFunction<typeof publicBulkDeleteFormSpamSubmissionReportByFilter> &\n typeof publicBulkDeleteFormSpamSubmissionReportByFilter\n> = /*#__PURE__*/ createRESTModule(\n publicBulkDeleteFormSpamSubmissionReportByFilter\n);\nexport const reportNotSpamSubmission: MaybeContext<\n BuildRESTFunction<typeof publicReportNotSpamSubmission> &\n typeof publicReportNotSpamSubmission\n> = /*#__PURE__*/ createRESTModule(publicReportNotSpamSubmission);\nexport const bulkReportNotSpamSubmission: MaybeContext<\n BuildRESTFunction<typeof publicBulkReportNotSpamSubmission> &\n typeof publicBulkReportNotSpamSubmission\n> = /*#__PURE__*/ createRESTModule(publicBulkReportNotSpamSubmission);\nexport const reportSpamSubmission: MaybeContext<\n BuildRESTFunction<typeof publicReportSpamSubmission> &\n typeof publicReportSpamSubmission\n> = /*#__PURE__*/ createRESTModule(publicReportSpamSubmission);\nexport const bulkReportSpamSubmission: MaybeContext<\n BuildRESTFunction<typeof publicBulkReportSpamSubmission> &\n typeof publicBulkReportSpamSubmission\n> = /*#__PURE__*/ createRESTModule(publicBulkReportSpamSubmission);\nexport const queryFormSpamSubmissionReportsByNamespace: MaybeContext<\n BuildRESTFunction<typeof publicQueryFormSpamSubmissionReportsByNamespace> &\n typeof publicQueryFormSpamSubmissionReportsByNamespace\n> = /*#__PURE__*/ createRESTModule(\n publicQueryFormSpamSubmissionReportsByNamespace\n);\nexport const countFormSpamSubmissionReports: MaybeContext<\n BuildRESTFunction<typeof publicCountFormSpamSubmissionReports> &\n typeof publicCountFormSpamSubmissionReports\n> = /*#__PURE__*/ createRESTModule(publicCountFormSpamSubmissionReports);\n\nexport {\n ReportReason,\n SubmissionStatus,\n ErrorType,\n SortOrder,\n WebhookIdentityType,\n} from './forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js';\nexport {\n FormSpamSubmissionReport,\n Submitter,\n SubmitterSubmitterOneOf,\n ExtendedFields,\n OrderDetails,\n CheckForSpamRequest,\n FormSubmission,\n FormSubmissionOrderDetails,\n PublicTags,\n TagList,\n CheckForSpamResponse,\n SpamReport,\n CreateFormSpamSubmissionReportRequest,\n CreateFormSpamSubmissionReportResponse,\n FormSpamSubmissionReportValidationErrorsDetails,\n ValidationError,\n GetFormSpamSubmissionReportRequest,\n GetFormSpamSubmissionReportResponse,\n DeleteFormSpamSubmissionReportRequest,\n DeleteFormSpamSubmissionReportResponse,\n BulkDeleteFormSpamSubmissionReportRequest,\n BulkDeleteFormSpamSubmissionReportResponse,\n BulkDeleteFormSpamSubmissionReportResult,\n ItemMetadata,\n ApplicationError,\n BulkActionMetadata,\n BulkDeleteFormSpamSubmissionReportByFilterRequest,\n BulkDeleteFormSpamSubmissionReportByFilterResponse,\n ReportNotSpamSubmissionRequest,\n ReportNotSpamSubmissionResponse,\n BulkReportNotSpamSubmissionRequest,\n BulkReportNotSpamSubmissionResponse,\n BulkReportNotSpamSubmissionResult,\n ReportSpamSubmissionRequest,\n ReportSpamSubmissionResponse,\n BulkReportSpamSubmissionRequest,\n BulkReportSpamSubmissionResponse,\n BulkReportSpamSubmissionResult,\n QueryFormSpamSubmissionReportsByNamespaceRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QueryFormSpamSubmissionReportsByNamespaceResponse,\n CursorPagingMetadata,\n Cursors,\n CountFormSpamSubmissionReportsRequest,\n CountFormSpamSubmissionReportsResponse,\n FormSpamSubmissionReportsCount,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n BulkDeleteFormSpamSubmissionReportOptions,\n BulkReportNotSpamSubmissionOptions,\n ReportSpamSubmissionOptions,\n BulkReportSpamSubmissionOptions,\n FormSpamSubmissionReportsQueryResult,\n FormSpamSubmissionReportsQueryBuilder,\n} from './forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js';\nexport {\n ReportReasonWithLiterals,\n SubmissionStatusWithLiterals,\n ErrorTypeWithLiterals,\n SortOrderWithLiterals,\n WebhookIdentityTypeWithLiterals,\n CreateFormSpamSubmissionReportValidationErrors,\n} from './forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4CAAAA;AAAA,EAAA,kDAAAC;AAAA,EAAA,mCAAAC;AAAA,EAAA,gCAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,sCAAAC;AAAA,EAAA,sCAAAC;AAAA,EAAA,sCAAAC;AAAA,EAAA,mCAAAC;AAAA,EAAA,iDAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,4BAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,oDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UA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CAGK;AAAA,EAChBA;AACF;AACO,IAAMC,2BAGK,2DAAiBA,wBAA6B;AACzD,IAAMC,+BAGK,2DAAiBA,4BAAiC;AAC7D,IAAMC,wBAGK,2DAAiBA,qBAA0B;AACtD,IAAMC,4BAGK,2DAAiBA,yBAA8B;AAC1D,IAAMC,6CAGK;AAAA,EAChBA;AACF;AACO,IAAMC,kCAGK,2DAAiBA,+BAAoC;","names":["bulkDeleteFormSpamSubmissionReport","bulkDeleteFormSpamSubmissionReportByFilter","bulkReportNotSpamSubmission","bulkReportSpamSubmission","checkForSpam","countFormSpamSubmissionReports","createFormSpamSubmissionReport","deleteFormSpamSubmissionReport","getFormSpamSubmissionReport","queryFormSpamSubmissionReportsByNamespace","reportNotSpamSubmission","reportSpamSubmission","import_timestamp","import_rest_modules","payload","import_transform_paths","ReportReason","SubmissionStatus","ErrorType","SortOrder","WebhookIdentityType","checkForSpam","sdkTransformError","createFormSpamSubmissionReport","getFormSpamSubmissionReport","deleteFormSpamSubmissionReport","bulkDeleteFormSpamSubmissionReport","bulkDeleteFormSpamSubmissionReportByFilter","reportNotSpamSubmission","bulkReportNotSpamSubmission","reportSpamSubmission","bulkReportSpamSubmission","queryFormSpamSubmissionReportsByNamespace","countFormSpamSubmissionReports","checkForSpam","createFormSpamSubmissionReport","getFormSpamSubmissionReport","deleteFormSpamSubmissionReport","bulkDeleteFormSpamSubmissionReport","bulkDeleteFormSpamSubmissionReportByFilter","reportNotSpamSubmission","bulkReportNotSpamSubmission","reportSpamSubmission","bulkReportSpamSubmission","queryFormSpamSubmissionReportsByNamespace","countFormSpamSubmissionReports","import_rest_modules","checkForSpam","createFormSpamSubmissionReport","getFormSpamSubmissionReport","deleteFormSpamSubmissionReport","bulkDeleteFormSpamSubmissionReport","bulkDeleteFormSpamSubmissionReportByFilter","reportNotSpamSubmission","bulkReportNotSpamSubmission","reportSpamSubmission","bulkReportSpamSubmission","queryFormSpamSubmissionReportsByNamespace","countFormSpamSubmissionReports"]}