@wix/reports 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/type-bundles/context.bundle.d.ts +217 -91
- package/type-bundles/index.bundle.d.ts +217 -91
- package/type-bundles/meta.bundle.d.ts +102 -70
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A Report is an entity defining a UoU complaint with a reason on the site
|
|
3
|
-
* You can report an entity from a select number of reasons, also providing details for the report
|
|
4
|
-
*/
|
|
5
1
|
interface Report$1 {
|
|
6
2
|
/**
|
|
7
3
|
* Report ID.
|
|
8
4
|
* @readonly
|
|
9
5
|
*/
|
|
10
6
|
id?: string | null;
|
|
11
|
-
/** Reported entity name */
|
|
7
|
+
/** Reported entity name. For example, `comment`. */
|
|
12
8
|
entityName?: string;
|
|
13
|
-
/** Reported entity ID */
|
|
9
|
+
/** Reported entity ID. */
|
|
14
10
|
entityId?: string;
|
|
15
11
|
/**
|
|
16
|
-
* Identity of who
|
|
12
|
+
* Identity of who created a report.
|
|
17
13
|
* @readonly
|
|
18
14
|
*/
|
|
19
15
|
identity?: CommonIdentificationData$1;
|
|
20
|
-
/** Reason for
|
|
16
|
+
/** Reason for report. */
|
|
21
17
|
reason?: Reason$1;
|
|
22
18
|
/**
|
|
23
|
-
* Revision number, which increments by 1 each time the
|
|
19
|
+
* Revision number, which increments by 1 each time the rule is updated. To prevent conflicting changes, the existing revision must be used when updating a rule.
|
|
24
20
|
* @readonly
|
|
25
21
|
*/
|
|
26
22
|
revision?: string | null;
|
|
27
23
|
/**
|
|
28
|
-
* Date and time the
|
|
24
|
+
* Date and time when the report was created.
|
|
29
25
|
* @readonly
|
|
30
26
|
*/
|
|
31
27
|
createdDate?: Date | null;
|
|
32
28
|
/**
|
|
33
|
-
* Date and time the
|
|
29
|
+
* Date and time when the report was updated.
|
|
34
30
|
* @readonly
|
|
35
31
|
*/
|
|
36
32
|
updatedDate?: Date | null;
|
|
37
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Custom field data for the rule object.
|
|
35
|
+
*
|
|
36
|
+
* **Note:** You must configure extended fields using schema plugin extensions in your app's dashboard before you can access the extended fields with API calls.
|
|
37
|
+
*/
|
|
38
38
|
extendedFields?: ExtendedFields$1;
|
|
39
39
|
}
|
|
40
40
|
interface CommonIdentificationData$1 extends CommonIdentificationDataIdOneOf$1 {
|
|
@@ -63,27 +63,43 @@ declare enum IdentityType$1 {
|
|
|
63
63
|
APP = "APP"
|
|
64
64
|
}
|
|
65
65
|
interface Reason$1 {
|
|
66
|
-
/**
|
|
66
|
+
/** Report reason type. */
|
|
67
67
|
reasonType?: Type$1;
|
|
68
|
-
/**
|
|
68
|
+
/** Details of why the entity is reported. */
|
|
69
69
|
details?: string | null;
|
|
70
70
|
}
|
|
71
71
|
declare enum Type$1 {
|
|
72
|
+
/** Unknown type. This value is not used. */
|
|
72
73
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
74
|
+
/** Entity is reported for other reasons, specify in `details`. */
|
|
73
75
|
OTHER = "OTHER",
|
|
76
|
+
/** Entity is reported for spam. */
|
|
74
77
|
SPAM = "SPAM",
|
|
78
|
+
/** Entity is reported for nudity. */
|
|
75
79
|
NUDITY_OR_SEXUAL_HARASSMENT = "NUDITY_OR_SEXUAL_HARASSMENT",
|
|
80
|
+
/** Entity is reported for hate speech. */
|
|
76
81
|
HATE_SPEECH_OR_SYMBOLS = "HATE_SPEECH_OR_SYMBOLS",
|
|
82
|
+
/** Entity is reported for false information. */
|
|
77
83
|
FALSE_INFORMATION = "FALSE_INFORMATION",
|
|
84
|
+
/** Entity is reported for community guidelines violation. */
|
|
78
85
|
COMMUNITY_GUIDELINES_VIOLATION = "COMMUNITY_GUIDELINES_VIOLATION",
|
|
86
|
+
/** Entity is reported for violence. */
|
|
79
87
|
VIOLENCE = "VIOLENCE",
|
|
88
|
+
/** Entity is reported for mentioning suicide. */
|
|
80
89
|
SUICIDE_OR_SELF_INJURY = "SUICIDE_OR_SELF_INJURY",
|
|
90
|
+
/** Entity is reported for unuathorized sales. */
|
|
81
91
|
UNAUTHORIZED_SALES = "UNAUTHORIZED_SALES",
|
|
92
|
+
/** Entity is reported for mentioning an eating disorder. */
|
|
82
93
|
EATING_DISORDER = "EATING_DISORDER",
|
|
94
|
+
/** Entity is reported for involving a minor. */
|
|
83
95
|
INVOLVES_A_CHILD = "INVOLVES_A_CHILD",
|
|
96
|
+
/** Entity is reported for mentioning terrorism. */
|
|
84
97
|
TERRORISM = "TERRORISM",
|
|
98
|
+
/** Entity is reported for mentioning drugs. */
|
|
85
99
|
DRUGS = "DRUGS",
|
|
100
|
+
/** Entity is reported for unlawful actions. */
|
|
86
101
|
UNLAWFUL = "UNLAWFUL",
|
|
102
|
+
/** Entity is reported for exposing identifying info. */
|
|
87
103
|
EXPOSING_IDENTIFYING_INFO = "EXPOSING_IDENTIFYING_INFO"
|
|
88
104
|
}
|
|
89
105
|
interface ExtendedFields$1 {
|
|
@@ -98,69 +114,69 @@ interface ExtendedFields$1 {
|
|
|
98
114
|
namespaces?: Record<string, Record<string, any>>;
|
|
99
115
|
}
|
|
100
116
|
interface CreateReportRequest$1 {
|
|
101
|
-
/** Report
|
|
117
|
+
/** Report details. */
|
|
102
118
|
report: Report$1;
|
|
103
119
|
}
|
|
104
120
|
interface CreateReportResponse$1 {
|
|
105
|
-
/**
|
|
121
|
+
/** Created report. */
|
|
106
122
|
report?: Report$1;
|
|
107
123
|
}
|
|
108
124
|
interface GetReportRequest$1 {
|
|
109
|
-
/** ID of the
|
|
125
|
+
/** ID of the report to retrieve. */
|
|
110
126
|
reportId: string;
|
|
111
127
|
}
|
|
112
128
|
interface GetReportResponse$1 {
|
|
113
|
-
/**
|
|
129
|
+
/** Retrieved report. */
|
|
114
130
|
report?: Report$1;
|
|
115
131
|
}
|
|
116
132
|
interface UpdateReportRequest$1 {
|
|
117
|
-
/** Report to
|
|
133
|
+
/** Report to update. */
|
|
118
134
|
report: Report$1;
|
|
119
135
|
}
|
|
120
136
|
interface UpdateReportResponse$1 {
|
|
121
|
-
/** Updated
|
|
137
|
+
/** Updated report. */
|
|
122
138
|
report?: Report$1;
|
|
123
139
|
}
|
|
124
140
|
interface DeleteReportRequest$1 {
|
|
125
|
-
/**
|
|
141
|
+
/** ID of the report to delete. */
|
|
126
142
|
reportId: string;
|
|
127
143
|
}
|
|
128
144
|
interface DeleteReportResponse$1 {
|
|
129
145
|
}
|
|
130
146
|
interface UpsertReportRequest$1 {
|
|
131
|
-
/** Report to
|
|
147
|
+
/** Report to create or update. */
|
|
132
148
|
report?: Report$1;
|
|
133
149
|
}
|
|
134
150
|
interface UpsertReportResponse$1 {
|
|
135
|
-
/** Updated or created
|
|
151
|
+
/** Updated or created report. */
|
|
136
152
|
report?: Report$1;
|
|
137
153
|
}
|
|
138
154
|
interface BulkDeleteReportsByFilterRequest$1 {
|
|
139
|
-
/**
|
|
155
|
+
/** Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more details. */
|
|
140
156
|
filter: Record<string, any> | null;
|
|
141
157
|
}
|
|
142
158
|
interface BulkDeleteReportsByFilterResponse$1 {
|
|
143
|
-
/**
|
|
159
|
+
/** Job ID. Pass this ID to [Get Async Job](https://dev.wix.com/docs/rest/business-management/async-job/introduction) to retrieve job details and metadata. */
|
|
144
160
|
jobId?: string;
|
|
145
161
|
}
|
|
146
162
|
interface CountReportsByReasonTypesRequest$1 {
|
|
147
|
-
/**
|
|
163
|
+
/** Reported entity name. For example, `comment`. */
|
|
148
164
|
entityName: string;
|
|
149
|
-
/** ID of the entity. */
|
|
165
|
+
/** ID of the reported entity. */
|
|
150
166
|
entityId: string;
|
|
151
167
|
}
|
|
152
168
|
interface CountReportsByReasonTypesResponse$1 {
|
|
153
|
-
/**
|
|
169
|
+
/** List of reports grouped by the reason type. */
|
|
154
170
|
reasonTypeCount?: ReasonTypeCount$1[];
|
|
155
171
|
}
|
|
156
172
|
interface ReasonTypeCount$1 {
|
|
157
|
-
/**
|
|
173
|
+
/** Reason for report. */
|
|
158
174
|
reasonType?: Type$1;
|
|
159
|
-
/**
|
|
175
|
+
/** Number of reports by reason type. */
|
|
160
176
|
count?: number;
|
|
161
177
|
}
|
|
162
178
|
interface QueryReportsRequest$1 {
|
|
163
|
-
/**
|
|
179
|
+
/** Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more details. */
|
|
164
180
|
query?: CursorQuery$1;
|
|
165
181
|
}
|
|
166
182
|
interface CursorQuery$1 extends CursorQueryPagingMethodOneOf$1 {
|
|
@@ -196,9 +212,9 @@ interface CursorPaging$1 {
|
|
|
196
212
|
cursor?: string | null;
|
|
197
213
|
}
|
|
198
214
|
interface QueryReportsResponse$1 {
|
|
199
|
-
/** List of
|
|
215
|
+
/** List of reports. */
|
|
200
216
|
reports?: Report$1[];
|
|
201
|
-
/** Paging metadata */
|
|
217
|
+
/** Paging metadata. */
|
|
202
218
|
pagingMetadata?: CursorPagingMetadata$1;
|
|
203
219
|
}
|
|
204
220
|
interface CursorPagingMetadata$1 {
|
|
@@ -216,7 +232,7 @@ interface Cursors$1 {
|
|
|
216
232
|
prev?: string | null;
|
|
217
233
|
}
|
|
218
234
|
interface UpdateExtendedFieldsRequest$1 {
|
|
219
|
-
/** ID of the
|
|
235
|
+
/** ID of the report to update. */
|
|
220
236
|
id: string;
|
|
221
237
|
/** Identifier for the app whose extended fields are being updated. */
|
|
222
238
|
namespace: string;
|
|
@@ -224,7 +240,7 @@ interface UpdateExtendedFieldsRequest$1 {
|
|
|
224
240
|
namespaceData: Record<string, any> | null;
|
|
225
241
|
}
|
|
226
242
|
interface UpdateExtendedFieldsResponse$1 {
|
|
227
|
-
/** Updated
|
|
243
|
+
/** Updated report. */
|
|
228
244
|
report?: Report$1;
|
|
229
245
|
}
|
|
230
246
|
interface CommonIdentificationDataNonNullableFields$1 {
|
|
@@ -272,43 +288,43 @@ interface UpdateExtendedFieldsResponseNonNullableFields$1 {
|
|
|
272
288
|
report?: ReportNonNullableFields$1;
|
|
273
289
|
}
|
|
274
290
|
|
|
275
|
-
/**
|
|
276
|
-
* A Report is an entity defining a UoU complaint with a reason on the site
|
|
277
|
-
* You can report an entity from a select number of reasons, also providing details for the report
|
|
278
|
-
*/
|
|
279
291
|
interface Report {
|
|
280
292
|
/**
|
|
281
293
|
* Report ID.
|
|
282
294
|
* @readonly
|
|
283
295
|
*/
|
|
284
296
|
_id?: string | null;
|
|
285
|
-
/** Reported entity name */
|
|
297
|
+
/** Reported entity name. For example, `comment`. */
|
|
286
298
|
entityName?: string;
|
|
287
|
-
/** Reported entity ID */
|
|
299
|
+
/** Reported entity ID. */
|
|
288
300
|
entityId?: string;
|
|
289
301
|
/**
|
|
290
|
-
* Identity of who
|
|
302
|
+
* Identity of who created a report.
|
|
291
303
|
* @readonly
|
|
292
304
|
*/
|
|
293
305
|
identity?: CommonIdentificationData;
|
|
294
|
-
/** Reason for
|
|
306
|
+
/** Reason for report. */
|
|
295
307
|
reason?: Reason;
|
|
296
308
|
/**
|
|
297
|
-
* Revision number, which increments by 1 each time the
|
|
309
|
+
* Revision number, which increments by 1 each time the rule is updated. To prevent conflicting changes, the existing revision must be used when updating a rule.
|
|
298
310
|
* @readonly
|
|
299
311
|
*/
|
|
300
312
|
revision?: string | null;
|
|
301
313
|
/**
|
|
302
|
-
* Date and time the
|
|
314
|
+
* Date and time when the report was created.
|
|
303
315
|
* @readonly
|
|
304
316
|
*/
|
|
305
317
|
_createdDate?: Date | null;
|
|
306
318
|
/**
|
|
307
|
-
* Date and time the
|
|
319
|
+
* Date and time when the report was updated.
|
|
308
320
|
* @readonly
|
|
309
321
|
*/
|
|
310
322
|
_updatedDate?: Date | null;
|
|
311
|
-
/**
|
|
323
|
+
/**
|
|
324
|
+
* Custom field data for the rule object.
|
|
325
|
+
*
|
|
326
|
+
* **Note:** You must configure extended fields using schema plugin extensions in your app's dashboard before you can access the extended fields with API calls.
|
|
327
|
+
*/
|
|
312
328
|
extendedFields?: ExtendedFields;
|
|
313
329
|
}
|
|
314
330
|
interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
@@ -337,27 +353,43 @@ declare enum IdentityType {
|
|
|
337
353
|
APP = "APP"
|
|
338
354
|
}
|
|
339
355
|
interface Reason {
|
|
340
|
-
/**
|
|
356
|
+
/** Report reason type. */
|
|
341
357
|
reasonType?: Type;
|
|
342
|
-
/**
|
|
358
|
+
/** Details of why the entity is reported. */
|
|
343
359
|
details?: string | null;
|
|
344
360
|
}
|
|
345
361
|
declare enum Type {
|
|
362
|
+
/** Unknown type. This value is not used. */
|
|
346
363
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
364
|
+
/** Entity is reported for other reasons, specify in `details`. */
|
|
347
365
|
OTHER = "OTHER",
|
|
366
|
+
/** Entity is reported for spam. */
|
|
348
367
|
SPAM = "SPAM",
|
|
368
|
+
/** Entity is reported for nudity. */
|
|
349
369
|
NUDITY_OR_SEXUAL_HARASSMENT = "NUDITY_OR_SEXUAL_HARASSMENT",
|
|
370
|
+
/** Entity is reported for hate speech. */
|
|
350
371
|
HATE_SPEECH_OR_SYMBOLS = "HATE_SPEECH_OR_SYMBOLS",
|
|
372
|
+
/** Entity is reported for false information. */
|
|
351
373
|
FALSE_INFORMATION = "FALSE_INFORMATION",
|
|
374
|
+
/** Entity is reported for community guidelines violation. */
|
|
352
375
|
COMMUNITY_GUIDELINES_VIOLATION = "COMMUNITY_GUIDELINES_VIOLATION",
|
|
376
|
+
/** Entity is reported for violence. */
|
|
353
377
|
VIOLENCE = "VIOLENCE",
|
|
378
|
+
/** Entity is reported for mentioning suicide. */
|
|
354
379
|
SUICIDE_OR_SELF_INJURY = "SUICIDE_OR_SELF_INJURY",
|
|
380
|
+
/** Entity is reported for unuathorized sales. */
|
|
355
381
|
UNAUTHORIZED_SALES = "UNAUTHORIZED_SALES",
|
|
382
|
+
/** Entity is reported for mentioning an eating disorder. */
|
|
356
383
|
EATING_DISORDER = "EATING_DISORDER",
|
|
384
|
+
/** Entity is reported for involving a minor. */
|
|
357
385
|
INVOLVES_A_CHILD = "INVOLVES_A_CHILD",
|
|
386
|
+
/** Entity is reported for mentioning terrorism. */
|
|
358
387
|
TERRORISM = "TERRORISM",
|
|
388
|
+
/** Entity is reported for mentioning drugs. */
|
|
359
389
|
DRUGS = "DRUGS",
|
|
390
|
+
/** Entity is reported for unlawful actions. */
|
|
360
391
|
UNLAWFUL = "UNLAWFUL",
|
|
392
|
+
/** Entity is reported for exposing identifying info. */
|
|
361
393
|
EXPOSING_IDENTIFYING_INFO = "EXPOSING_IDENTIFYING_INFO"
|
|
362
394
|
}
|
|
363
395
|
interface ExtendedFields {
|
|
@@ -372,69 +404,69 @@ interface ExtendedFields {
|
|
|
372
404
|
namespaces?: Record<string, Record<string, any>>;
|
|
373
405
|
}
|
|
374
406
|
interface CreateReportRequest {
|
|
375
|
-
/** Report
|
|
407
|
+
/** Report details. */
|
|
376
408
|
report: Report;
|
|
377
409
|
}
|
|
378
410
|
interface CreateReportResponse {
|
|
379
|
-
/**
|
|
411
|
+
/** Created report. */
|
|
380
412
|
report?: Report;
|
|
381
413
|
}
|
|
382
414
|
interface GetReportRequest {
|
|
383
|
-
/** ID of the
|
|
415
|
+
/** ID of the report to retrieve. */
|
|
384
416
|
reportId: string;
|
|
385
417
|
}
|
|
386
418
|
interface GetReportResponse {
|
|
387
|
-
/**
|
|
419
|
+
/** Retrieved report. */
|
|
388
420
|
report?: Report;
|
|
389
421
|
}
|
|
390
422
|
interface UpdateReportRequest {
|
|
391
|
-
/** Report to
|
|
423
|
+
/** Report to update. */
|
|
392
424
|
report: Report;
|
|
393
425
|
}
|
|
394
426
|
interface UpdateReportResponse {
|
|
395
|
-
/** Updated
|
|
427
|
+
/** Updated report. */
|
|
396
428
|
report?: Report;
|
|
397
429
|
}
|
|
398
430
|
interface DeleteReportRequest {
|
|
399
|
-
/**
|
|
431
|
+
/** ID of the report to delete. */
|
|
400
432
|
reportId: string;
|
|
401
433
|
}
|
|
402
434
|
interface DeleteReportResponse {
|
|
403
435
|
}
|
|
404
436
|
interface UpsertReportRequest {
|
|
405
|
-
/** Report to
|
|
437
|
+
/** Report to create or update. */
|
|
406
438
|
report?: Report;
|
|
407
439
|
}
|
|
408
440
|
interface UpsertReportResponse {
|
|
409
|
-
/** Updated or created
|
|
441
|
+
/** Updated or created report. */
|
|
410
442
|
report?: Report;
|
|
411
443
|
}
|
|
412
444
|
interface BulkDeleteReportsByFilterRequest {
|
|
413
|
-
/**
|
|
445
|
+
/** Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more details. */
|
|
414
446
|
filter: Record<string, any> | null;
|
|
415
447
|
}
|
|
416
448
|
interface BulkDeleteReportsByFilterResponse {
|
|
417
|
-
/**
|
|
449
|
+
/** Job ID. Pass this ID to [Get Async Job](https://dev.wix.com/docs/rest/business-management/async-job/introduction) to retrieve job details and metadata. */
|
|
418
450
|
jobId?: string;
|
|
419
451
|
}
|
|
420
452
|
interface CountReportsByReasonTypesRequest {
|
|
421
|
-
/**
|
|
453
|
+
/** Reported entity name. For example, `comment`. */
|
|
422
454
|
entityName: string;
|
|
423
|
-
/** ID of the entity. */
|
|
455
|
+
/** ID of the reported entity. */
|
|
424
456
|
entityId: string;
|
|
425
457
|
}
|
|
426
458
|
interface CountReportsByReasonTypesResponse {
|
|
427
|
-
/**
|
|
459
|
+
/** List of reports grouped by the reason type. */
|
|
428
460
|
reasonTypeCount?: ReasonTypeCount[];
|
|
429
461
|
}
|
|
430
462
|
interface ReasonTypeCount {
|
|
431
|
-
/**
|
|
463
|
+
/** Reason for report. */
|
|
432
464
|
reasonType?: Type;
|
|
433
|
-
/**
|
|
465
|
+
/** Number of reports by reason type. */
|
|
434
466
|
count?: number;
|
|
435
467
|
}
|
|
436
468
|
interface QueryReportsRequest {
|
|
437
|
-
/**
|
|
469
|
+
/** Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more details. */
|
|
438
470
|
query?: CursorQuery;
|
|
439
471
|
}
|
|
440
472
|
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
@@ -470,9 +502,9 @@ interface CursorPaging {
|
|
|
470
502
|
cursor?: string | null;
|
|
471
503
|
}
|
|
472
504
|
interface QueryReportsResponse {
|
|
473
|
-
/** List of
|
|
505
|
+
/** List of reports. */
|
|
474
506
|
reports?: Report[];
|
|
475
|
-
/** Paging metadata */
|
|
507
|
+
/** Paging metadata. */
|
|
476
508
|
pagingMetadata?: CursorPagingMetadata;
|
|
477
509
|
}
|
|
478
510
|
interface CursorPagingMetadata {
|
|
@@ -490,7 +522,7 @@ interface Cursors {
|
|
|
490
522
|
prev?: string | null;
|
|
491
523
|
}
|
|
492
524
|
interface UpdateExtendedFieldsRequest {
|
|
493
|
-
/** ID of the
|
|
525
|
+
/** ID of the report to update. */
|
|
494
526
|
_id: string;
|
|
495
527
|
/** Identifier for the app whose extended fields are being updated. */
|
|
496
528
|
namespace: string;
|
|
@@ -498,7 +530,7 @@ interface UpdateExtendedFieldsRequest {
|
|
|
498
530
|
namespaceData: Record<string, any> | null;
|
|
499
531
|
}
|
|
500
532
|
interface UpdateExtendedFieldsResponse {
|
|
501
|
-
/** Updated
|
|
533
|
+
/** Updated report. */
|
|
502
534
|
report?: Report;
|
|
503
535
|
}
|
|
504
536
|
interface CommonIdentificationDataNonNullableFields {
|