@wix/auto_sdk_forms_form-spam-submission-reports 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.context.d.ts +16 -0
  11. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.context.js +24 -0
  12. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.context.js.map +1 -0
  13. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.http.d.ts +34 -0
  14. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.http.js +406 -0
  15. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.http.js.map +1 -0
  16. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.meta.d.ts +32 -0
  17. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.meta.js +262 -0
  18. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.meta.js.map +1 -0
  19. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.public.d.ts +110 -0
  20. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.public.js +84 -0
  21. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.public.js.map +1 -0
  22. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.types.d.ts +722 -0
  23. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.types.js +94 -0
  24. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.types.js.map +1 -0
  25. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.d.ts +973 -0
  26. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js +609 -0
  27. package/build/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.context.d.ts +16 -0
  39. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.context.js +16 -0
  40. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.context.js.map +1 -0
  41. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.http.d.ts +34 -0
  42. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.http.js +391 -0
  43. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.http.js.map +1 -0
  44. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.meta.d.ts +32 -0
  45. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.meta.js +224 -0
  46. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.meta.js.map +1 -0
  47. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.public.d.ts +110 -0
  48. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.public.js +64 -0
  49. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.public.js.map +1 -0
  50. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.types.d.ts +722 -0
  51. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.types.js +91 -0
  52. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.types.js.map +1 -0
  53. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.d.ts +973 -0
  54. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js +571 -0
  55. package/build/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.context.d.ts +16 -0
  66. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.context.js +24 -0
  67. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.context.js.map +1 -0
  68. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.http.d.ts +34 -0
  69. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.http.js +406 -0
  70. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.http.js.map +1 -0
  71. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.meta.d.ts +32 -0
  72. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.meta.js +262 -0
  73. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.meta.js.map +1 -0
  74. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.public.d.ts +110 -0
  75. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.public.js +84 -0
  76. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.public.js.map +1 -0
  77. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.types.d.ts +722 -0
  78. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.types.js +94 -0
  79. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.types.js.map +1 -0
  80. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.d.ts +973 -0
  81. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js +609 -0
  82. package/build/internal/cjs/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.context.d.ts +16 -0
  93. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.context.js +16 -0
  94. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.context.js.map +1 -0
  95. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.http.d.ts +34 -0
  96. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.http.js +391 -0
  97. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.http.js.map +1 -0
  98. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.meta.d.ts +32 -0
  99. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.meta.js +224 -0
  100. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.meta.js.map +1 -0
  101. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.public.d.ts +110 -0
  102. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.public.js +64 -0
  103. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.public.js.map +1 -0
  104. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.types.d.ts +722 -0
  105. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.types.js +91 -0
  106. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.types.js.map +1 -0
  107. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.d.ts +973 -0
  108. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js +571 -0
  109. package/build/internal/es/src/forms-v4-form-spam-submission-report-form-spam-submission-reports.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,973 @@
1
+ /**
2
+ * FormSpamSubmissionReportReport stores a form submission spam report.
3
+ * It contains submission details as well as report reason.
4
+ */
5
+ export interface FormSpamSubmissionReport {
6
+ /**
7
+ * Form spam submission report id.
8
+ * @readonly
9
+ */
10
+ _id?: string | null;
11
+ /** Id of a form to which the form spam submission report belongs. */
12
+ formId?: string;
13
+ /**
14
+ * Form namespace to which the form spam submission report belongs.
15
+ * @readonly
16
+ */
17
+ namespace?: string;
18
+ /** Form submission submitter id. */
19
+ submitter?: Submitter;
20
+ /** Submission values where key is a target of a form field and value is a submissions for the given field. */
21
+ submissions?: Record<string, any>;
22
+ /** Identifies the reason why the submission was reported as spam. */
23
+ reportReason?: ReportReason;
24
+ /** Date of submission creation. If a submission was created in the past, pass the original submission creation date. */
25
+ _createdDate?: Date | null;
26
+ /**
27
+ * Date of form spam submission report creation.
28
+ * @readonly
29
+ */
30
+ reportedDate?: Date | null;
31
+ /**
32
+ * Date of last update.
33
+ * @readonly
34
+ */
35
+ _updatedDate?: Date | null;
36
+ /**
37
+ * 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.
38
+ * @readonly
39
+ */
40
+ revision?: string | null;
41
+ /** Data extensions ExtendedFields. */
42
+ extendedFields?: ExtendedFields;
43
+ /** Last status of the submission at the time of the report */
44
+ submissionStatusAtReport?: SubmissionStatus;
45
+ /** Order details. */
46
+ orderDetails?: OrderDetails;
47
+ /**
48
+ * Contact ID. Member who created the submission, or a mapped contact.
49
+ * @readonly
50
+ */
51
+ contactId?: string | null;
52
+ /** authorized viewer user id */
53
+ accessRestriction?: string | null;
54
+ }
55
+ export interface Submitter extends SubmitterSubmitterOneOf {
56
+ /** Member ID. */
57
+ memberId?: string | null;
58
+ /** Visitor ID. */
59
+ visitorId?: string | null;
60
+ /** Application ID. */
61
+ applicationId?: string | null;
62
+ /** User ID. */
63
+ userId?: string | null;
64
+ }
65
+ /** @oneof */
66
+ export interface SubmitterSubmitterOneOf {
67
+ /** Member ID. */
68
+ memberId?: string | null;
69
+ /** Visitor ID. */
70
+ visitorId?: string | null;
71
+ /** Application ID. */
72
+ applicationId?: string | null;
73
+ /** User ID. */
74
+ userId?: string | null;
75
+ }
76
+ export declare enum ReportReason {
77
+ UNKNOWN_REASON = "UNKNOWN_REASON",
78
+ /** An email quota is reached. There were too many submissions in a short time period with the same email. */
79
+ EMAIL_QUOTA_REACHED = "EMAIL_QUOTA_REACHED",
80
+ /** An IP address is is blocklisted. */
81
+ IP_BLOCKLISTED = "IP_BLOCKLISTED",
82
+ /** An email is is blocklisted. */
83
+ EMAIL_BLOCKLISTED = "EMAIL_BLOCKLISTED",
84
+ /** Reported spam by the AI spam detection model. It uses submission text as an input. */
85
+ AI_REPORTED = "AI_REPORTED",
86
+ /** Reported as spam by a submission manager. */
87
+ MANUALLY_REPORTED = "MANUALLY_REPORTED"
88
+ }
89
+ export interface ExtendedFields {
90
+ /**
91
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
92
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
93
+ *
94
+ * You can only access fields for which you have the appropriate permissions.
95
+ *
96
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
97
+ */
98
+ namespaces?: Record<string, Record<string, any>>;
99
+ }
100
+ export declare enum SubmissionStatus {
101
+ UNKNOWN_SUBMISSION_STATUS = "UNKNOWN_SUBMISSION_STATUS",
102
+ /** A submission is created, but has not yet been recorded in the Wix Forms collection. */
103
+ PENDING = "PENDING",
104
+ /** A submission is recorded in the Wix Forms collection. */
105
+ CONFIRMED = "CONFIRMED",
106
+ /** A form submission requiring payment is created. */
107
+ PAYMENT_WAITING = "PAYMENT_WAITING",
108
+ /** An order of a form submission is canceled. */
109
+ PAYMENT_CANCELED = "PAYMENT_CANCELED"
110
+ }
111
+ export interface OrderDetails {
112
+ /**
113
+ * ID of the checkout related to submission (applicable if form has payments added).
114
+ * @readonly
115
+ */
116
+ checkoutId?: string;
117
+ }
118
+ export interface CheckForSpamRequest {
119
+ /** Form submission. */
120
+ submission: FormSubmission;
121
+ }
122
+ /** Form submission that was created or retrieved. */
123
+ export interface FormSubmission {
124
+ /**
125
+ * Submission ID.
126
+ * @readonly
127
+ */
128
+ _id?: string | null;
129
+ /** ID of the form which the submission belongs to. */
130
+ formId?: string;
131
+ /**
132
+ * 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.
133
+ * @readonly
134
+ */
135
+ namespace?: string;
136
+ /** Status of the submission. */
137
+ status?: SubmissionStatus;
138
+ /** Submission values where `key` is the form field and `value` is the data submitted for the given field. */
139
+ submissions?: Record<string, any>;
140
+ /** Date and time the form submission was created. */
141
+ _createdDate?: Date | null;
142
+ /**
143
+ * Date and time the form submission was updated.
144
+ * @readonly
145
+ */
146
+ _updatedDate?: Date | null;
147
+ /**
148
+ * 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.
149
+ * @readonly
150
+ */
151
+ revision?: string | null;
152
+ /**
153
+ * ID of the visitor that submitted the form.
154
+ * @readonly
155
+ */
156
+ submitter?: Submitter;
157
+ /** Whether a site owner marked a submission as "seen". */
158
+ seen?: boolean;
159
+ /** Data extension object that holds users' and apps' fields. */
160
+ extendedFields?: ExtendedFields;
161
+ /**
162
+ * Order details. <br>
163
+ * <b>Note</b>: This object is only applicable when submittng a form in the Wix Payments app.
164
+ */
165
+ orderDetails?: FormSubmissionOrderDetails;
166
+ /** Contact ID of a site visitor who created the submission. */
167
+ contactId?: string | null;
168
+ /** authorized viewer user id */
169
+ accessRestriction?: string | null;
170
+ /** Tag ids collections associated with current entity. */
171
+ tags?: PublicTags;
172
+ }
173
+ export interface FormSubmissionOrderDetails {
174
+ /**
175
+ * ID of the order related to submission (only applicable if a form has payments).
176
+ * @readonly
177
+ */
178
+ orderId?: string | null;
179
+ /**
180
+ * Order number.
181
+ * @readonly
182
+ */
183
+ number?: string | null;
184
+ /**
185
+ * Currency.
186
+ * @readonly
187
+ */
188
+ currency?: string | null;
189
+ /**
190
+ * Item subtotal.
191
+ * @readonly
192
+ */
193
+ itemSubtotal?: string;
194
+ /**
195
+ * ID of the checkout related to submission (only applicable if a form has payments).
196
+ * @readonly
197
+ */
198
+ checkoutId?: string;
199
+ }
200
+ export interface PublicTags {
201
+ /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
202
+ tags?: TagList;
203
+ }
204
+ export interface TagList {
205
+ /** List of tag IDs */
206
+ tagIds?: string[];
207
+ }
208
+ export interface CheckForSpamResponse {
209
+ /** Is the submission a spam. */
210
+ spam?: boolean;
211
+ /** Spam report details. Filled when spam == true */
212
+ spamReport?: SpamReport;
213
+ }
214
+ export interface SpamReport {
215
+ /** Identifies the reason why the submission was reported as spam. */
216
+ reportReason?: ReportReason;
217
+ }
218
+ export interface CreateFormSpamSubmissionReportRequest {
219
+ /** Form spam submission report to be created. */
220
+ formSpamSubmissionReport: FormSpamSubmissionReport;
221
+ }
222
+ export interface CreateFormSpamSubmissionReportResponse {
223
+ /** The created form spam submission report. */
224
+ formSpamSubmissionReport?: FormSpamSubmissionReport;
225
+ }
226
+ export interface FormSpamSubmissionReportValidationErrorsDetails {
227
+ /** Submission validation errors details. */
228
+ errors?: ValidationError[];
229
+ }
230
+ export interface ValidationError {
231
+ /** Path indicating the source of the error, such as `submission.submissions.email`` */
232
+ errorPath?: string;
233
+ /** Error type. */
234
+ errorType?: ErrorType;
235
+ /** Error message. */
236
+ errorMessage?: string;
237
+ /** Additional error parameters, to help identify additional info. */
238
+ params?: Record<string, any> | null;
239
+ /**
240
+ * Whether to use a custom error message.
241
+ * If `false`, the API takes the message from the `errorType` field.
242
+ * Default: `false`
243
+ */
244
+ useCustomErrorMessage?: boolean;
245
+ }
246
+ export declare enum ErrorType {
247
+ /** Error is unknown or not suitable for any of options bellow */
248
+ UNKNOWN_ERROR = "UNKNOWN_ERROR",
249
+ /** Type of submitted value is incorrect */
250
+ TYPE_ERROR = "TYPE_ERROR",
251
+ /** Value is required to be provided */
252
+ REQUIRED_VALUE_ERROR = "REQUIRED_VALUE_ERROR",
253
+ /** Value contains additional properties not expected in schema */
254
+ UNKNOWN_VALUE_ERROR = "UNKNOWN_VALUE_ERROR",
255
+ /** Text value exceeds max length */
256
+ MAX_LENGTH_ERROR = "MAX_LENGTH_ERROR",
257
+ /** Text value not reaches min length */
258
+ MIN_LENGTH_ERROR = "MIN_LENGTH_ERROR",
259
+ /** Text value not applicable for expected pattern */
260
+ PATTERN_ERROR = "PATTERN_ERROR",
261
+ /** Text value not applicable for expected format */
262
+ FORMAT_ERROR = "FORMAT_ERROR",
263
+ /** Number value is too big */
264
+ MAX_VALUE_ERROR = "MAX_VALUE_ERROR",
265
+ /** Number value is too small */
266
+ MIN_VALUE_ERROR = "MIN_VALUE_ERROR",
267
+ /** Number value is not multiple of expected number */
268
+ MULTIPLE_OF_VALUE_ERROR = "MULTIPLE_OF_VALUE_ERROR",
269
+ /** Array value has too much items */
270
+ MIN_ITEMS_ERROR = "MIN_ITEMS_ERROR",
271
+ /** Array value has not enough items */
272
+ MAX_ITEMS_ERROR = "MAX_ITEMS_ERROR",
273
+ /** Value is not in list of allowed values */
274
+ NOT_ALLOWED_VALUE_ERROR = "NOT_ALLOWED_VALUE_ERROR",
275
+ /** Form fields are incompatible */
276
+ FIELDS_COMPATIBILITY_ERROR = "FIELDS_COMPATIBILITY_ERROR",
277
+ /** Submitted form is disabled */
278
+ DISABLED_FORM_ERROR = "DISABLED_FORM_ERROR",
279
+ /** Too much forms */
280
+ FORMS_COUNT_RESTRICTIONS_ERROR = "FORMS_COUNT_RESTRICTIONS_ERROR",
281
+ /** Too much fields on form */
282
+ FIELDS_COUNT_RESTRICTIONS_ERROR = "FIELDS_COUNT_RESTRICTIONS_ERROR",
283
+ /** Too much steps on forms */
284
+ STEPS_COUNT_RESTRICTIONS_ERROR = "STEPS_COUNT_RESTRICTIONS_ERROR",
285
+ /** Too much rules on forms */
286
+ RULES_COUNT_RESTRICTIONS_ERROR = "RULES_COUNT_RESTRICTIONS_ERROR",
287
+ /** File upload is not allowed */
288
+ FILE_UPLOAD_RESTRICTIONS_ERROR = "FILE_UPLOAD_RESTRICTIONS_ERROR",
289
+ /** Country code is not correct or missing from the phone number */
290
+ INVALID_PHONE_COUNTRY_CODE_ERROR = "INVALID_PHONE_COUNTRY_CODE_ERROR",
291
+ /** Invalid staff member ID on appointment */
292
+ INVALID_STAFF_ID_ERROR = "INVALID_STAFF_ID_ERROR",
293
+ /** Invalid business location ID on appointment */
294
+ INVALID_LOCATION_ID_ERROR = "INVALID_LOCATION_ID_ERROR"
295
+ }
296
+ export interface GetFormSpamSubmissionReportRequest {
297
+ /** Id of the form spam submission report to retrieve. */
298
+ formSpamSubmissionReportId: string;
299
+ }
300
+ export interface GetFormSpamSubmissionReportResponse {
301
+ /** The retrieved form spam submission report. */
302
+ formSpamSubmissionReport?: FormSpamSubmissionReport;
303
+ }
304
+ export interface DeleteFormSpamSubmissionReportRequest {
305
+ /** Id of the form spam submission report to delete. */
306
+ formSpamSubmissionReportId: string;
307
+ }
308
+ export interface DeleteFormSpamSubmissionReportResponse {
309
+ }
310
+ export interface BulkDeleteFormSpamSubmissionReportRequest {
311
+ /** Form ID. */
312
+ formId: string;
313
+ /** Ids of the form spam submission reports to delete. */
314
+ formSpamSubmissionReportIds?: string[];
315
+ }
316
+ export interface BulkDeleteFormSpamSubmissionReportResponse {
317
+ /** Results of bulk report delete */
318
+ results?: BulkDeleteFormSpamSubmissionReportResult[];
319
+ /** Metadata of request */
320
+ bulkActionMetadata?: BulkActionMetadata;
321
+ }
322
+ export interface BulkDeleteFormSpamSubmissionReportResult {
323
+ /** Deleted item metadata */
324
+ itemMetadata?: ItemMetadata;
325
+ }
326
+ export interface ItemMetadata {
327
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
328
+ _id?: string | null;
329
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
330
+ originalIndex?: number;
331
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
332
+ success?: boolean;
333
+ /** Details about the error in case of failure. */
334
+ error?: ApplicationError;
335
+ }
336
+ export interface ApplicationError {
337
+ /** Error code. */
338
+ code?: string;
339
+ /** Description of the error. */
340
+ description?: string;
341
+ /** Data related to the error. */
342
+ data?: Record<string, any> | null;
343
+ }
344
+ export interface BulkActionMetadata {
345
+ /** Number of items that were successfully processed. */
346
+ totalSuccesses?: number;
347
+ /** Number of items that couldn't be processed. */
348
+ totalFailures?: number;
349
+ /** Number of failures without details because detailed failure threshold was exceeded. */
350
+ undetailedFailures?: number;
351
+ }
352
+ export interface BulkDeleteFormSpamSubmissionReportByFilterRequest {
353
+ /**
354
+ * Filter object.
355
+ *
356
+ * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.
357
+ */
358
+ filter: Record<string, any> | null;
359
+ }
360
+ export interface BulkDeleteFormSpamSubmissionReportByFilterResponse {
361
+ /** Job id of bulk delete form submission report by filter job */
362
+ jobId?: string;
363
+ }
364
+ export interface ReportNotSpamSubmissionRequest {
365
+ /** Id of the form spam submission report to report as not spam. */
366
+ formSpamSubmissionReportId: string;
367
+ }
368
+ export interface ReportNotSpamSubmissionResponse {
369
+ /** Created form submission. */
370
+ submission?: FormSubmission;
371
+ }
372
+ export interface BulkReportNotSpamSubmissionRequest {
373
+ /** Id of the form to which belong reports */
374
+ formId: string;
375
+ /** Ids of the form spam submission reports to report as not spam. */
376
+ formSpamSubmissionReportIds?: string[];
377
+ }
378
+ export interface BulkReportNotSpamSubmissionResponse {
379
+ /** Info whatever report of specific items was successful */
380
+ results?: BulkReportNotSpamSubmissionResult[];
381
+ /** Metadata of request */
382
+ bulkActionMetadata?: BulkActionMetadata;
383
+ }
384
+ export interface BulkReportNotSpamSubmissionResult {
385
+ /** Metadata of submission, marked as not spam */
386
+ itemMetadata?: ItemMetadata;
387
+ /** Id of related report, which was reported as not spam */
388
+ formSpamSubmissionReportId?: string;
389
+ }
390
+ export interface ReportSpamSubmissionRequest {
391
+ /** Id of the submission to report as spam. */
392
+ submissionId: string;
393
+ /** Identifies the reason why the submission was reported as spam. */
394
+ reportReason: ReportReason;
395
+ }
396
+ export interface ReportSpamSubmissionResponse {
397
+ /** Created form spam submission report. */
398
+ formSpamSubmissionReport?: FormSpamSubmissionReport;
399
+ }
400
+ export interface BulkReportSpamSubmissionRequest {
401
+ /** Id of the form to which belong submissions to report as spam. */
402
+ formId: string;
403
+ /** Ids of the submissions to report as spam. */
404
+ submissionIds: string[];
405
+ /** Identifies the reason why the submission was reported as spam. */
406
+ reportReason: ReportReason;
407
+ /** When set, items will be returned on successful report */
408
+ returnEntity?: boolean;
409
+ }
410
+ export interface BulkReportSpamSubmissionResponse {
411
+ /** Created reports with metadata */
412
+ results?: BulkReportSpamSubmissionResult[];
413
+ /** Metadata of request */
414
+ bulkActionMetadata?: BulkActionMetadata;
415
+ }
416
+ export interface BulkReportSpamSubmissionResult {
417
+ /** Created report metadata */
418
+ itemMetadata?: ItemMetadata;
419
+ /** Created report, exists if `returnEntity` was set to `true` in the request */
420
+ item?: FormSpamSubmissionReport;
421
+ }
422
+ export interface QueryFormSpamSubmissionReportsByNamespaceRequest {
423
+ /** WQL expression. */
424
+ query: CursorQuery;
425
+ }
426
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
427
+ /** 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`. */
428
+ cursorPaging?: CursorPaging;
429
+ /**
430
+ * Filter object in the following format:
431
+ * `"filter" : {
432
+ * "fieldName1": "value1",
433
+ * "fieldName2":{"$operator":"value2"}
434
+ * }`
435
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
436
+ */
437
+ filter?: Record<string, any> | null;
438
+ /**
439
+ * Sort object in the following format:
440
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
441
+ */
442
+ sort?: Sorting[];
443
+ }
444
+ /** @oneof */
445
+ export interface CursorQueryPagingMethodOneOf {
446
+ /** 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`. */
447
+ cursorPaging?: CursorPaging;
448
+ }
449
+ export interface Sorting {
450
+ /** Name of the field to sort by. */
451
+ fieldName?: string;
452
+ /** Sort order. */
453
+ order?: SortOrder;
454
+ }
455
+ export declare enum SortOrder {
456
+ ASC = "ASC",
457
+ DESC = "DESC"
458
+ }
459
+ export interface CursorPaging {
460
+ /** Number of items to load. */
461
+ limit?: number | null;
462
+ /**
463
+ * Pointer to the next or previous page in the list of results.
464
+ *
465
+ * You can get the relevant cursor token
466
+ * from the `pagingMetadata` object in the previous call's response.
467
+ * Not relevant for the first request.
468
+ */
469
+ cursor?: string | null;
470
+ }
471
+ export interface QueryFormSpamSubmissionReportsByNamespaceResponse {
472
+ /** The retrieved FormSpamSubmissionReports. */
473
+ formSpamSubmissionReports?: FormSpamSubmissionReport[];
474
+ /** Details on the paged set of results returned. */
475
+ pagingMetadata?: CursorPagingMetadata;
476
+ }
477
+ export interface CursorPagingMetadata {
478
+ /** Number of items returned in the response. */
479
+ count?: number | null;
480
+ /** Offset that was requested. */
481
+ cursors?: Cursors;
482
+ /**
483
+ * Indicates if there are more results after the current page.
484
+ * If `true`, another page of results can be retrieved.
485
+ * If `false`, this is the last page.
486
+ */
487
+ hasNext?: boolean | null;
488
+ }
489
+ export interface Cursors {
490
+ /** Cursor pointing to next page in the list of results. */
491
+ next?: string | null;
492
+ /** Cursor pointing to previous page in the list of results. */
493
+ prev?: string | null;
494
+ }
495
+ export interface CountFormSpamSubmissionReportsRequest {
496
+ /** Form IDs. */
497
+ formIds: string[];
498
+ /** 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. */
499
+ namespace: string;
500
+ }
501
+ export interface CountFormSpamSubmissionReportsResponse {
502
+ /** Forms submission count. */
503
+ formsSpamSubmissionReportsCount?: FormSpamSubmissionReportsCount[];
504
+ }
505
+ export interface FormSpamSubmissionReportsCount {
506
+ /** Form ID. */
507
+ formId?: string;
508
+ /** Total number of submissions. */
509
+ totalCount?: number;
510
+ }
511
+ export interface DomainEvent extends DomainEventBodyOneOf {
512
+ createdEvent?: EntityCreatedEvent;
513
+ updatedEvent?: EntityUpdatedEvent;
514
+ deletedEvent?: EntityDeletedEvent;
515
+ actionEvent?: ActionEvent;
516
+ /**
517
+ * Unique event ID.
518
+ * Allows clients to ignore duplicate webhooks.
519
+ */
520
+ _id?: string;
521
+ /**
522
+ * Assumes actions are also always typed to an entity_type
523
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
524
+ */
525
+ entityFqdn?: string;
526
+ /**
527
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
528
+ * This is although the created/updated/deleted notion is duplication of the oneof types
529
+ * Example: created/updated/deleted/started/completed/email_opened
530
+ */
531
+ slug?: string;
532
+ /** ID of the entity associated with the event. */
533
+ entityId?: string;
534
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
535
+ eventTime?: Date | null;
536
+ /**
537
+ * Whether the event was triggered as a result of a privacy regulation application
538
+ * (for example, GDPR).
539
+ */
540
+ triggeredByAnonymizeRequest?: boolean | null;
541
+ /** If present, indicates the action that triggered the event. */
542
+ originatedFrom?: string | null;
543
+ /**
544
+ * A sequence number defining the order of updates to the underlying entity.
545
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
546
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
547
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
548
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
549
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
550
+ */
551
+ entityEventSequence?: string | null;
552
+ }
553
+ /** @oneof */
554
+ export interface DomainEventBodyOneOf {
555
+ createdEvent?: EntityCreatedEvent;
556
+ updatedEvent?: EntityUpdatedEvent;
557
+ deletedEvent?: EntityDeletedEvent;
558
+ actionEvent?: ActionEvent;
559
+ }
560
+ export interface EntityCreatedEvent {
561
+ entity?: string;
562
+ }
563
+ export interface RestoreInfo {
564
+ deletedDate?: Date | null;
565
+ }
566
+ export interface EntityUpdatedEvent {
567
+ /**
568
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
569
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
570
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
571
+ */
572
+ currentEntity?: string;
573
+ }
574
+ export interface EntityDeletedEvent {
575
+ /** Entity that was deleted */
576
+ deletedEntity?: string | null;
577
+ }
578
+ export interface ActionEvent {
579
+ body?: string;
580
+ }
581
+ export interface Empty {
582
+ }
583
+ export interface MessageEnvelope {
584
+ /** App instance ID. */
585
+ instanceId?: string | null;
586
+ /** Event type. */
587
+ eventType?: string;
588
+ /** The identification type and identity data. */
589
+ identity?: IdentificationData;
590
+ /** Stringify payload. */
591
+ data?: string;
592
+ }
593
+ export interface IdentificationData extends IdentificationDataIdOneOf {
594
+ /** ID of a site visitor that has not logged in to the site. */
595
+ anonymousVisitorId?: string;
596
+ /** ID of a site visitor that has logged in to the site. */
597
+ memberId?: string;
598
+ /** ID of a Wix user (site owner, contributor, etc.). */
599
+ wixUserId?: string;
600
+ /** ID of an app. */
601
+ appId?: string;
602
+ /** @readonly */
603
+ identityType?: WebhookIdentityType;
604
+ }
605
+ /** @oneof */
606
+ export interface IdentificationDataIdOneOf {
607
+ /** ID of a site visitor that has not logged in to the site. */
608
+ anonymousVisitorId?: string;
609
+ /** ID of a site visitor that has logged in to the site. */
610
+ memberId?: string;
611
+ /** ID of a Wix user (site owner, contributor, etc.). */
612
+ wixUserId?: string;
613
+ /** ID of an app. */
614
+ appId?: string;
615
+ }
616
+ export declare enum WebhookIdentityType {
617
+ UNKNOWN = "UNKNOWN",
618
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
619
+ MEMBER = "MEMBER",
620
+ WIX_USER = "WIX_USER",
621
+ APP = "APP"
622
+ }
623
+ interface SpamReportNonNullableFields {
624
+ reportReason: ReportReason;
625
+ }
626
+ export interface CheckForSpamResponseNonNullableFields {
627
+ spam: boolean;
628
+ spamReport?: SpamReportNonNullableFields;
629
+ }
630
+ interface OrderDetailsNonNullableFields {
631
+ checkoutId: string;
632
+ }
633
+ export interface FormSpamSubmissionReportNonNullableFields {
634
+ formId: string;
635
+ namespace: string;
636
+ reportReason: ReportReason;
637
+ submissionStatusAtReport: SubmissionStatus;
638
+ orderDetails?: OrderDetailsNonNullableFields;
639
+ }
640
+ export interface CreateFormSpamSubmissionReportResponseNonNullableFields {
641
+ formSpamSubmissionReport?: FormSpamSubmissionReportNonNullableFields;
642
+ }
643
+ export interface GetFormSpamSubmissionReportResponseNonNullableFields {
644
+ formSpamSubmissionReport?: FormSpamSubmissionReportNonNullableFields;
645
+ }
646
+ interface ApplicationErrorNonNullableFields {
647
+ code: string;
648
+ description: string;
649
+ }
650
+ interface ItemMetadataNonNullableFields {
651
+ originalIndex: number;
652
+ success: boolean;
653
+ error?: ApplicationErrorNonNullableFields;
654
+ }
655
+ interface BulkDeleteFormSpamSubmissionReportResultNonNullableFields {
656
+ itemMetadata?: ItemMetadataNonNullableFields;
657
+ }
658
+ interface BulkActionMetadataNonNullableFields {
659
+ totalSuccesses: number;
660
+ totalFailures: number;
661
+ undetailedFailures: number;
662
+ }
663
+ export interface BulkDeleteFormSpamSubmissionReportResponseNonNullableFields {
664
+ results: BulkDeleteFormSpamSubmissionReportResultNonNullableFields[];
665
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
666
+ }
667
+ export interface BulkDeleteFormSpamSubmissionReportByFilterResponseNonNullableFields {
668
+ jobId: string;
669
+ }
670
+ interface FormSubmissionOrderDetailsNonNullableFields {
671
+ itemSubtotal: string;
672
+ checkoutId: string;
673
+ }
674
+ interface TagListNonNullableFields {
675
+ tagIds: string[];
676
+ }
677
+ interface PublicTagsNonNullableFields {
678
+ tags?: TagListNonNullableFields;
679
+ }
680
+ interface FormSubmissionNonNullableFields {
681
+ formId: string;
682
+ namespace: string;
683
+ status: SubmissionStatus;
684
+ seen: boolean;
685
+ orderDetails?: FormSubmissionOrderDetailsNonNullableFields;
686
+ tags?: PublicTagsNonNullableFields;
687
+ }
688
+ export interface ReportNotSpamSubmissionResponseNonNullableFields {
689
+ submission?: FormSubmissionNonNullableFields;
690
+ }
691
+ interface BulkReportNotSpamSubmissionResultNonNullableFields {
692
+ itemMetadata?: ItemMetadataNonNullableFields;
693
+ formSpamSubmissionReportId: string;
694
+ }
695
+ export interface BulkReportNotSpamSubmissionResponseNonNullableFields {
696
+ results: BulkReportNotSpamSubmissionResultNonNullableFields[];
697
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
698
+ }
699
+ export interface ReportSpamSubmissionResponseNonNullableFields {
700
+ formSpamSubmissionReport?: FormSpamSubmissionReportNonNullableFields;
701
+ }
702
+ interface BulkReportSpamSubmissionResultNonNullableFields {
703
+ itemMetadata?: ItemMetadataNonNullableFields;
704
+ item?: FormSpamSubmissionReportNonNullableFields;
705
+ }
706
+ export interface BulkReportSpamSubmissionResponseNonNullableFields {
707
+ results: BulkReportSpamSubmissionResultNonNullableFields[];
708
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
709
+ }
710
+ export interface QueryFormSpamSubmissionReportsByNamespaceResponseNonNullableFields {
711
+ formSpamSubmissionReports: FormSpamSubmissionReportNonNullableFields[];
712
+ }
713
+ interface FormSpamSubmissionReportsCountNonNullableFields {
714
+ formId: string;
715
+ totalCount: number;
716
+ }
717
+ export interface CountFormSpamSubmissionReportsResponseNonNullableFields {
718
+ formsSpamSubmissionReportsCount: FormSpamSubmissionReportsCountNonNullableFields[];
719
+ }
720
+ /**
721
+ * Checks if submission is a spam.
722
+ * @param submission - Form submission.
723
+ * @public
724
+ * @documentationMaturity preview
725
+ * @requiredField submission
726
+ * @requiredField submission.formId
727
+ * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_CHECK_FOR_SPAM
728
+ * @applicableIdentity VISITOR
729
+ * @fqn wix.forms.v4.FormSpamSubmissionReportService.CheckForSpam
730
+ */
731
+ export declare function checkForSpam(submission: FormSubmission): Promise<CheckForSpamResponse & CheckForSpamResponseNonNullableFields>;
732
+ /**
733
+ * Creates a new spam submission.
734
+ * To upload submission media, use the FormSubmissionService.getMediaUploadUrl endpoint.
735
+ * @param formSpamSubmissionReport - Form spam submission report to be created.
736
+ * @public
737
+ * @documentationMaturity preview
738
+ * @requiredField formSpamSubmissionReport
739
+ * @requiredField formSpamSubmissionReport.formId
740
+ * @requiredField formSpamSubmissionReport.reportReason
741
+ * @requiredField formSpamSubmissionReport.submissions
742
+ * @requiredField formSpamSubmissionReport.submitter
743
+ * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_CREATE
744
+ * @returns The created form spam submission report.
745
+ * @fqn wix.forms.v4.FormSpamSubmissionReportService.CreateFormSpamSubmissionReport
746
+ */
747
+ export declare function createFormSpamSubmissionReport(formSpamSubmissionReport: FormSpamSubmissionReport): Promise<FormSpamSubmissionReport & FormSpamSubmissionReportNonNullableFields>;
748
+ /**
749
+ * Get a spam submission by id.
750
+ * @param formSpamSubmissionReportId - Id of the form spam submission report to retrieve.
751
+ * @public
752
+ * @documentationMaturity preview
753
+ * @requiredField formSpamSubmissionReportId
754
+ * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_READ
755
+ * @returns The retrieved form spam submission report.
756
+ * @fqn wix.forms.v4.FormSpamSubmissionReportService.GetFormSpamSubmissionReport
757
+ */
758
+ export declare function getFormSpamSubmissionReport(formSpamSubmissionReportId: string): Promise<FormSpamSubmissionReport & FormSpamSubmissionReportNonNullableFields>;
759
+ /**
760
+ * Delete a spam submission report.
761
+ * @param formSpamSubmissionReportId - Id of the form spam submission report to delete.
762
+ * @public
763
+ * @documentationMaturity preview
764
+ * @requiredField formSpamSubmissionReportId
765
+ * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_DELETE
766
+ * @fqn wix.forms.v4.FormSpamSubmissionReportService.DeleteFormSpamSubmissionReport
767
+ */
768
+ export declare function deleteFormSpamSubmissionReport(formSpamSubmissionReportId: string): Promise<void>;
769
+ /**
770
+ * Deletes report by IDS or all for specific form.
771
+ * @param formId - Form ID.
772
+ * @public
773
+ * @documentationMaturity preview
774
+ * @requiredField formId
775
+ * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_DELETE
776
+ * @fqn wix.forms.v4.FormSpamSubmissionReportService.BulkDeleteFormSpamSubmissionReport
777
+ */
778
+ export declare function bulkDeleteFormSpamSubmissionReport(formId: string, options?: BulkDeleteFormSpamSubmissionReportOptions): Promise<BulkDeleteFormSpamSubmissionReportResponse & BulkDeleteFormSpamSubmissionReportResponseNonNullableFields>;
779
+ export interface BulkDeleteFormSpamSubmissionReportOptions {
780
+ /** Ids of the form spam submission reports to delete. */
781
+ formSpamSubmissionReportIds?: string[];
782
+ }
783
+ /**
784
+ * Deletes reports by filter for specific form.
785
+ * @param filter - Filter object.
786
+ *
787
+ * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.
788
+ * @public
789
+ * @documentationMaturity preview
790
+ * @requiredField filter
791
+ * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_DELETE
792
+ * @fqn wix.forms.v4.FormSpamSubmissionReportService.BulkDeleteFormSpamSubmissionReportByFilter
793
+ */
794
+ export declare function bulkDeleteFormSpamSubmissionReportByFilter(filter: Record<string, any> | null): Promise<BulkDeleteFormSpamSubmissionReportByFilterResponse & BulkDeleteFormSpamSubmissionReportByFilterResponseNonNullableFields>;
795
+ /**
796
+ * Report a spam submission as not spam. The submission is created, and the spam report is deleted.
797
+ * Submission automations are triggered the same way as in standard submission creation flow.
798
+ * @param formSpamSubmissionReportId - Id of the form spam submission report to report as not spam.
799
+ * @public
800
+ * @documentationMaturity preview
801
+ * @requiredField formSpamSubmissionReportId
802
+ * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_REPORT_NOT_SPAM
803
+ * @fqn wix.forms.v4.FormSpamSubmissionReportService.ReportNotSpamSubmission
804
+ */
805
+ export declare function reportNotSpamSubmission(formSpamSubmissionReportId: string): Promise<ReportNotSpamSubmissionResponse & ReportNotSpamSubmissionResponseNonNullableFields>;
806
+ /**
807
+ * Report a spam submissions as not spam. The submissions is created, and the spam reports is deleted.
808
+ * Submissions automations are triggered the same way as in standard submission creation flow.
809
+ * @param formId - Id of the form to which belong reports
810
+ * @public
811
+ * @documentationMaturity preview
812
+ * @requiredField formId
813
+ * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_REPORT_NOT_SPAM
814
+ * @fqn wix.forms.v4.FormSpamSubmissionReportService.BulkReportNotSpamSubmission
815
+ */
816
+ export declare function bulkReportNotSpamSubmission(formId: string, options?: BulkReportNotSpamSubmissionOptions): Promise<BulkReportNotSpamSubmissionResponse & BulkReportNotSpamSubmissionResponseNonNullableFields>;
817
+ export interface BulkReportNotSpamSubmissionOptions {
818
+ /** Ids of the form spam submission reports to report as not spam. */
819
+ formSpamSubmissionReportIds?: string[];
820
+ }
821
+ /**
822
+ * Report a submission as spam. The spam submission report is created, and the submission is deleted.
823
+ * @param submissionId - Id of the submission to report as spam.
824
+ * @param reportReason - Identifies the reason why the submission was reported as spam.
825
+ * @public
826
+ * @documentationMaturity preview
827
+ * @requiredField reportReason
828
+ * @requiredField submissionId
829
+ * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_CREATE
830
+ * @permissionId WIX_FORMS.SUBMISSION_READ_ANY
831
+ * @permissionId WIX_FORMS.SUBMISSION_DELETE
832
+ * @permissionScope Manage Submissions
833
+ * @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
834
+ * @permissionScope Manage Orders
835
+ * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
836
+ * @permissionScope Read Orders
837
+ * @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
838
+ * @permissionScope Read Submissions
839
+ * @permissionScopeId SCOPE.DC-FORMS.READ-SUBMISSIONS
840
+ * @permissionScope Manage Submissions
841
+ * @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
842
+ * @applicableIdentity APP
843
+ * @fqn wix.forms.v4.FormSpamSubmissionReportService.ReportSpamSubmission
844
+ */
845
+ export declare function reportSpamSubmission(submissionId: string, reportReason: ReportReason): Promise<ReportSpamSubmissionResponse & ReportSpamSubmissionResponseNonNullableFields>;
846
+ /**
847
+ * Report multiple submissions as spam. The spam submission reports is created, and the submissions is deleted.
848
+ * @param formId - Id of the form to which belong submissions to report as spam.
849
+ * @public
850
+ * @documentationMaturity preview
851
+ * @requiredField formId
852
+ * @requiredField options.reportReason
853
+ * @requiredField options.submissionIds
854
+ * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_CREATE
855
+ * @permissionId WIX_FORMS.SUBMISSION_READ_ANY
856
+ * @permissionId WIX_FORMS.SUBMISSION_DELETE
857
+ * @permissionScope Manage Submissions
858
+ * @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
859
+ * @permissionScope Manage Orders
860
+ * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
861
+ * @permissionScope Read Orders
862
+ * @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
863
+ * @permissionScope Read Submissions
864
+ * @permissionScopeId SCOPE.DC-FORMS.READ-SUBMISSIONS
865
+ * @permissionScope Manage Submissions
866
+ * @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
867
+ * @applicableIdentity APP
868
+ * @fqn wix.forms.v4.FormSpamSubmissionReportService.BulkReportSpamSubmission
869
+ */
870
+ export declare function bulkReportSpamSubmission(formId: string, options?: BulkReportSpamSubmissionOptions): Promise<BulkReportSpamSubmissionResponse & BulkReportSpamSubmissionResponseNonNullableFields>;
871
+ export interface BulkReportSpamSubmissionOptions {
872
+ /** Ids of the submissions to report as spam. */
873
+ submissionIds: string[];
874
+ /** Identifies the reason why the submission was reported as spam. */
875
+ reportReason: ReportReason;
876
+ /** When set, items will be returned on successful report */
877
+ returnEntity?: boolean;
878
+ }
879
+ /**
880
+ * Query form spam submission reports using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
881
+ * @public
882
+ * @documentationMaturity preview
883
+ * @permissionId WIX_FORMS.FORM_SPAM_SUBMISSION_REPORT_READ
884
+ * @fqn wix.forms.v4.FormSpamSubmissionReportService.QueryFormSpamSubmissionReportsByNamespace
885
+ */
886
+ export declare function queryFormSpamSubmissionReportsByNamespace(): FormSpamSubmissionReportsQueryBuilder;
887
+ interface QueryCursorResult {
888
+ cursors: Cursors;
889
+ hasNext: () => boolean;
890
+ hasPrev: () => boolean;
891
+ length: number;
892
+ pageSize: number;
893
+ }
894
+ export interface FormSpamSubmissionReportsQueryResult extends QueryCursorResult {
895
+ items: FormSpamSubmissionReport[];
896
+ query: FormSpamSubmissionReportsQueryBuilder;
897
+ next: () => Promise<FormSpamSubmissionReportsQueryResult>;
898
+ prev: () => Promise<FormSpamSubmissionReportsQueryResult>;
899
+ }
900
+ export interface FormSpamSubmissionReportsQueryBuilder {
901
+ /** @param propertyName - Property whose value is compared with `value`.
902
+ * @param value - Value to compare against.
903
+ * @documentationMaturity preview
904
+ */
905
+ eq: (propertyName: '_id' | 'formId' | 'namespace' | 'reportReason' | '_createdDate' | 'reportedDate', value: any) => FormSpamSubmissionReportsQueryBuilder;
906
+ /** @param propertyName - Property whose value is compared with `value`.
907
+ * @param value - Value to compare against.
908
+ * @documentationMaturity preview
909
+ */
910
+ ne: (propertyName: '_id' | 'formId' | 'reportReason' | '_createdDate' | 'reportedDate', value: any) => FormSpamSubmissionReportsQueryBuilder;
911
+ /** @param propertyName - Property whose value is compared with `value`.
912
+ * @param value - Value to compare against.
913
+ * @documentationMaturity preview
914
+ */
915
+ ge: (propertyName: '_createdDate' | 'reportedDate', value: any) => FormSpamSubmissionReportsQueryBuilder;
916
+ /** @param propertyName - Property whose value is compared with `value`.
917
+ * @param value - Value to compare against.
918
+ * @documentationMaturity preview
919
+ */
920
+ gt: (propertyName: '_createdDate' | 'reportedDate', value: any) => FormSpamSubmissionReportsQueryBuilder;
921
+ /** @param propertyName - Property whose value is compared with `value`.
922
+ * @param value - Value to compare against.
923
+ * @documentationMaturity preview
924
+ */
925
+ le: (propertyName: '_createdDate' | 'reportedDate', value: any) => FormSpamSubmissionReportsQueryBuilder;
926
+ /** @param propertyName - Property whose value is compared with `value`.
927
+ * @param value - Value to compare against.
928
+ * @documentationMaturity preview
929
+ */
930
+ lt: (propertyName: '_createdDate' | 'reportedDate', value: any) => FormSpamSubmissionReportsQueryBuilder;
931
+ /** @documentationMaturity preview */
932
+ in: (propertyName: '_id' | 'formId' | 'reportReason' | '_createdDate' | 'reportedDate', value: any) => FormSpamSubmissionReportsQueryBuilder;
933
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
934
+ * @documentationMaturity preview
935
+ */
936
+ ascending: (...propertyNames: Array<'_id' | 'formId' | 'reportReason' | '_createdDate' | 'reportedDate'>) => FormSpamSubmissionReportsQueryBuilder;
937
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
938
+ * @documentationMaturity preview
939
+ */
940
+ descending: (...propertyNames: Array<'_id' | 'formId' | 'reportReason' | '_createdDate' | 'reportedDate'>) => FormSpamSubmissionReportsQueryBuilder;
941
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
942
+ * @documentationMaturity preview
943
+ */
944
+ limit: (limit: number) => FormSpamSubmissionReportsQueryBuilder;
945
+ /** @param cursor - A pointer to specific record
946
+ * @documentationMaturity preview
947
+ */
948
+ skipTo: (cursor: string) => FormSpamSubmissionReportsQueryBuilder;
949
+ /** @documentationMaturity preview */
950
+ find: () => Promise<FormSpamSubmissionReportsQueryResult>;
951
+ }
952
+ /**
953
+ * Counts the number of spam submission reports belonging to the specified forms.
954
+ * @param formIds - Form IDs.
955
+ * @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.
956
+ * @public
957
+ * @documentationMaturity preview
958
+ * @requiredField formIds
959
+ * @requiredField namespace
960
+ * @permissionId WIX_FORMS.SUBMISSION_READ_ANY
961
+ * @permissionScope Manage Submissions
962
+ * @permissionScopeId SCOPE.DC-FORMS.MANAGE-SUBMISSIONS
963
+ * @permissionScope Manage Orders
964
+ * @permissionScopeId SCOPE.DC-PAIDPLANS.MANAGE-ORDERS
965
+ * @permissionScope Read Orders
966
+ * @permissionScopeId SCOPE.DC-PAIDPLANS.READ-ORDERS
967
+ * @permissionScope Read Submissions
968
+ * @permissionScopeId SCOPE.DC-FORMS.READ-SUBMISSIONS
969
+ * @applicableIdentity APP
970
+ * @fqn wix.forms.v4.FormSpamSubmissionReportService.CountFormSpamSubmissionReports
971
+ */
972
+ export declare function countFormSpamSubmissionReports(formIds: string[], namespace: string): Promise<CountFormSpamSubmissionReportsResponse & CountFormSpamSubmissionReportsResponseNonNullableFields>;
973
+ export {};