@wix/reports 1.0.1 → 1.0.3
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/reports",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"type-bundles"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@wix/reports_reports": "1.0.
|
|
24
|
+
"@wix/reports_reports": "1.0.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"glob": "^10.4.1",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"fqdn": ""
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
"falconPackageHash": "
|
|
49
|
+
"falconPackageHash": "e3527ead6204e0bd72b9d247f2a4d80aa6e61c1471fe709ac305dc11"
|
|
50
50
|
}
|
|
@@ -482,7 +482,7 @@ interface Report {
|
|
|
482
482
|
* @readonly
|
|
483
483
|
*/
|
|
484
484
|
_id?: string | null;
|
|
485
|
-
/** Reported entity name
|
|
485
|
+
/** Reported entity name, such as `comment`. */
|
|
486
486
|
entityName?: string;
|
|
487
487
|
/** Reported entity ID. */
|
|
488
488
|
entityId?: string;
|
|
@@ -491,7 +491,7 @@ interface Report {
|
|
|
491
491
|
* @readonly
|
|
492
492
|
*/
|
|
493
493
|
identity?: CommonIdentificationData;
|
|
494
|
-
/** Reason for report. */
|
|
494
|
+
/** Reason for the report. */
|
|
495
495
|
reason?: Reason;
|
|
496
496
|
/**
|
|
497
497
|
* 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.
|
|
@@ -499,17 +499,17 @@ interface Report {
|
|
|
499
499
|
*/
|
|
500
500
|
revision?: string | null;
|
|
501
501
|
/**
|
|
502
|
-
* Date and time when the report
|
|
502
|
+
* Date and time when the report created.
|
|
503
503
|
* @readonly
|
|
504
504
|
*/
|
|
505
505
|
_createdDate?: Date | null;
|
|
506
506
|
/**
|
|
507
|
-
* Date and time when the report
|
|
507
|
+
* Date and time when the report updated.
|
|
508
508
|
* @readonly
|
|
509
509
|
*/
|
|
510
510
|
_updatedDate?: Date | null;
|
|
511
511
|
/**
|
|
512
|
-
* Custom field data for the
|
|
512
|
+
* Custom field data for the report object.
|
|
513
513
|
*
|
|
514
514
|
* **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.
|
|
515
515
|
*/
|
|
@@ -543,23 +543,23 @@ declare enum IdentityType {
|
|
|
543
543
|
interface Reason {
|
|
544
544
|
/** Report reason type. */
|
|
545
545
|
reasonType?: Type;
|
|
546
|
-
/**
|
|
546
|
+
/** Why the entity is reported. */
|
|
547
547
|
details?: string | null;
|
|
548
548
|
}
|
|
549
549
|
declare enum Type {
|
|
550
550
|
/** Unknown type. This value is not used. */
|
|
551
551
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
552
|
-
/** Entity is reported for other reasons
|
|
552
|
+
/** Entity is reported for other reasons. Specify in `details`. */
|
|
553
553
|
OTHER = "OTHER",
|
|
554
554
|
/** Entity is reported for spam. */
|
|
555
555
|
SPAM = "SPAM",
|
|
556
|
-
/** Entity is reported for nudity. */
|
|
556
|
+
/** Entity is reported for nudity or sexual harassment. */
|
|
557
557
|
NUDITY_OR_SEXUAL_HARASSMENT = "NUDITY_OR_SEXUAL_HARASSMENT",
|
|
558
558
|
/** Entity is reported for hate speech. */
|
|
559
559
|
HATE_SPEECH_OR_SYMBOLS = "HATE_SPEECH_OR_SYMBOLS",
|
|
560
560
|
/** Entity is reported for false information. */
|
|
561
561
|
FALSE_INFORMATION = "FALSE_INFORMATION",
|
|
562
|
-
/** Entity is reported for community
|
|
562
|
+
/** Entity is reported for a community guideline violation. */
|
|
563
563
|
COMMUNITY_GUIDELINES_VIOLATION = "COMMUNITY_GUIDELINES_VIOLATION",
|
|
564
564
|
/** Entity is reported for violence. */
|
|
565
565
|
VIOLENCE = "VIOLENCE",
|
|
@@ -577,7 +577,7 @@ declare enum Type {
|
|
|
577
577
|
DRUGS = "DRUGS",
|
|
578
578
|
/** Entity is reported for unlawful actions. */
|
|
579
579
|
UNLAWFUL = "UNLAWFUL",
|
|
580
|
-
/** Entity is reported for exposing identifying
|
|
580
|
+
/** Entity is reported for exposing identifying details. */
|
|
581
581
|
EXPOSING_IDENTIFYING_INFO = "EXPOSING_IDENTIFYING_INFO"
|
|
582
582
|
}
|
|
583
583
|
interface ExtendedFields {
|
|
@@ -961,7 +961,7 @@ interface UpdateReport {
|
|
|
961
961
|
* @readonly
|
|
962
962
|
*/
|
|
963
963
|
_id?: string | null;
|
|
964
|
-
/** Reported entity name
|
|
964
|
+
/** Reported entity name, such as `comment`. */
|
|
965
965
|
entityName?: string;
|
|
966
966
|
/** Reported entity ID. */
|
|
967
967
|
entityId?: string;
|
|
@@ -970,7 +970,7 @@ interface UpdateReport {
|
|
|
970
970
|
* @readonly
|
|
971
971
|
*/
|
|
972
972
|
identity?: CommonIdentificationData;
|
|
973
|
-
/** Reason for report. */
|
|
973
|
+
/** Reason for the report. */
|
|
974
974
|
reason?: Reason;
|
|
975
975
|
/**
|
|
976
976
|
* 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.
|
|
@@ -978,17 +978,17 @@ interface UpdateReport {
|
|
|
978
978
|
*/
|
|
979
979
|
revision?: string | null;
|
|
980
980
|
/**
|
|
981
|
-
* Date and time when the report
|
|
981
|
+
* Date and time when the report created.
|
|
982
982
|
* @readonly
|
|
983
983
|
*/
|
|
984
984
|
_createdDate?: Date | null;
|
|
985
985
|
/**
|
|
986
|
-
* Date and time when the report
|
|
986
|
+
* Date and time when the report updated.
|
|
987
987
|
* @readonly
|
|
988
988
|
*/
|
|
989
989
|
_updatedDate?: Date | null;
|
|
990
990
|
/**
|
|
991
|
-
* Custom field data for the
|
|
991
|
+
* Custom field data for the report object.
|
|
992
992
|
*
|
|
993
993
|
* **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.
|
|
994
994
|
*/
|
|
@@ -1006,7 +1006,7 @@ interface UpsertReportOptions {
|
|
|
1006
1006
|
* @readonly
|
|
1007
1007
|
*/
|
|
1008
1008
|
identity?: CommonIdentificationData;
|
|
1009
|
-
/** Reason for report. */
|
|
1009
|
+
/** Reason for the report. */
|
|
1010
1010
|
reason?: Reason;
|
|
1011
1011
|
/**
|
|
1012
1012
|
* 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.
|
|
@@ -1014,17 +1014,17 @@ interface UpsertReportOptions {
|
|
|
1014
1014
|
*/
|
|
1015
1015
|
revision?: string | null;
|
|
1016
1016
|
/**
|
|
1017
|
-
* Date and time when the report
|
|
1017
|
+
* Date and time when the report created.
|
|
1018
1018
|
* @readonly
|
|
1019
1019
|
*/
|
|
1020
1020
|
_createdDate?: Date | null;
|
|
1021
1021
|
/**
|
|
1022
|
-
* Date and time when the report
|
|
1022
|
+
* Date and time when the report updated.
|
|
1023
1023
|
* @readonly
|
|
1024
1024
|
*/
|
|
1025
1025
|
_updatedDate?: Date | null;
|
|
1026
1026
|
/**
|
|
1027
|
-
* Custom field data for the
|
|
1027
|
+
* Custom field data for the report object.
|
|
1028
1028
|
*
|
|
1029
1029
|
* **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.
|
|
1030
1030
|
*/
|
|
@@ -1032,7 +1032,7 @@ interface UpsertReportOptions {
|
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
1034
|
interface UpsertReportIdentifiers {
|
|
1035
|
-
/** Reported entity name
|
|
1035
|
+
/** Reported entity name, such as `comment`. */
|
|
1036
1036
|
reportEntityName?: string;
|
|
1037
1037
|
/** Reported entity ID. */
|
|
1038
1038
|
reportEntityId?: string;
|
|
@@ -1157,7 +1157,7 @@ interface UpdateReportSignature {
|
|
|
1157
1157
|
declare function deleteReport$1(httpClient: HttpClient): DeleteReportSignature;
|
|
1158
1158
|
interface DeleteReportSignature {
|
|
1159
1159
|
/**
|
|
1160
|
-
* Deletes a report
|
|
1160
|
+
* Deletes a report and removes it from the report list in the dashboard.
|
|
1161
1161
|
*
|
|
1162
1162
|
* Site members and visitors can only delete their own reports.
|
|
1163
1163
|
* @param - ID of the report to delete.
|
|
@@ -1168,7 +1168,7 @@ declare function upsertReport$1(httpClient: HttpClient): UpsertReportSignature;
|
|
|
1168
1168
|
interface UpsertReportSignature {
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Creates or updates a report.
|
|
1171
|
-
* If the report for the requested entity already exists,
|
|
1171
|
+
* If the report for the requested entity already exists, updates the report with the provided `reason` value. Otherwise, creates the report.
|
|
1172
1172
|
*/
|
|
1173
1173
|
(identifiers: UpsertReportIdentifiers, options?: UpsertReportOptions | undefined): Promise<UpsertReportResponse & UpsertReportResponseNonNullableFields>;
|
|
1174
1174
|
}
|
|
@@ -1183,7 +1183,7 @@ interface BulkDeleteReportsByFilterSignature {
|
|
|
1183
1183
|
declare function countReportsByReasonTypes$1(httpClient: HttpClient): CountReportsByReasonTypesSignature;
|
|
1184
1184
|
interface CountReportsByReasonTypesSignature {
|
|
1185
1185
|
/**
|
|
1186
|
-
* Counts reports by
|
|
1186
|
+
* Counts reports by reason types.
|
|
1187
1187
|
* @param - Reported entity name. For example, `comment`.
|
|
1188
1188
|
*/
|
|
1189
1189
|
(entityName: string, options: CountReportsByReasonTypesOptions): Promise<CountReportsByReasonTypesResponse & CountReportsByReasonTypesResponseNonNullableFields>;
|
|
@@ -1196,6 +1196,7 @@ interface QueryReportsSignature {
|
|
|
1196
1196
|
* - `createdDate` is sorted in `ASC` order
|
|
1197
1197
|
* - `paging.limit` is `100`
|
|
1198
1198
|
* - `paging.offset` is `0`
|
|
1199
|
+
*
|
|
1199
1200
|
* For field support for filters and sorting, see [Reports: Supported Filters and Sorting]().
|
|
1200
1201
|
* To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
1201
1202
|
*/
|
|
@@ -1241,7 +1242,9 @@ type _publicOnReportDeletedType = typeof onReportDeleted$1;
|
|
|
1241
1242
|
declare const onReportDeleted: ReturnType<typeof createEventModule<_publicOnReportDeletedType>>;
|
|
1242
1243
|
|
|
1243
1244
|
type _publicOnReportEntityReportSummaryChangedType = typeof onReportEntityReportSummaryChanged$1;
|
|
1244
|
-
/**
|
|
1245
|
+
/**
|
|
1246
|
+
* Triggered when count of reports by reason is updated.
|
|
1247
|
+
*/
|
|
1245
1248
|
declare const onReportEntityReportSummaryChanged: ReturnType<typeof createEventModule<_publicOnReportEntityReportSummaryChangedType>>;
|
|
1246
1249
|
|
|
1247
1250
|
type _publicOnReportUpdatedType = typeof onReportUpdated$1;
|
|
@@ -482,7 +482,7 @@ interface Report {
|
|
|
482
482
|
* @readonly
|
|
483
483
|
*/
|
|
484
484
|
_id?: string | null;
|
|
485
|
-
/** Reported entity name
|
|
485
|
+
/** Reported entity name, such as `comment`. */
|
|
486
486
|
entityName?: string;
|
|
487
487
|
/** Reported entity ID. */
|
|
488
488
|
entityId?: string;
|
|
@@ -491,7 +491,7 @@ interface Report {
|
|
|
491
491
|
* @readonly
|
|
492
492
|
*/
|
|
493
493
|
identity?: CommonIdentificationData;
|
|
494
|
-
/** Reason for report. */
|
|
494
|
+
/** Reason for the report. */
|
|
495
495
|
reason?: Reason;
|
|
496
496
|
/**
|
|
497
497
|
* 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.
|
|
@@ -499,17 +499,17 @@ interface Report {
|
|
|
499
499
|
*/
|
|
500
500
|
revision?: string | null;
|
|
501
501
|
/**
|
|
502
|
-
* Date and time when the report
|
|
502
|
+
* Date and time when the report created.
|
|
503
503
|
* @readonly
|
|
504
504
|
*/
|
|
505
505
|
_createdDate?: Date | null;
|
|
506
506
|
/**
|
|
507
|
-
* Date and time when the report
|
|
507
|
+
* Date and time when the report updated.
|
|
508
508
|
* @readonly
|
|
509
509
|
*/
|
|
510
510
|
_updatedDate?: Date | null;
|
|
511
511
|
/**
|
|
512
|
-
* Custom field data for the
|
|
512
|
+
* Custom field data for the report object.
|
|
513
513
|
*
|
|
514
514
|
* **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.
|
|
515
515
|
*/
|
|
@@ -543,23 +543,23 @@ declare enum IdentityType {
|
|
|
543
543
|
interface Reason {
|
|
544
544
|
/** Report reason type. */
|
|
545
545
|
reasonType?: Type;
|
|
546
|
-
/**
|
|
546
|
+
/** Why the entity is reported. */
|
|
547
547
|
details?: string | null;
|
|
548
548
|
}
|
|
549
549
|
declare enum Type {
|
|
550
550
|
/** Unknown type. This value is not used. */
|
|
551
551
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
552
|
-
/** Entity is reported for other reasons
|
|
552
|
+
/** Entity is reported for other reasons. Specify in `details`. */
|
|
553
553
|
OTHER = "OTHER",
|
|
554
554
|
/** Entity is reported for spam. */
|
|
555
555
|
SPAM = "SPAM",
|
|
556
|
-
/** Entity is reported for nudity. */
|
|
556
|
+
/** Entity is reported for nudity or sexual harassment. */
|
|
557
557
|
NUDITY_OR_SEXUAL_HARASSMENT = "NUDITY_OR_SEXUAL_HARASSMENT",
|
|
558
558
|
/** Entity is reported for hate speech. */
|
|
559
559
|
HATE_SPEECH_OR_SYMBOLS = "HATE_SPEECH_OR_SYMBOLS",
|
|
560
560
|
/** Entity is reported for false information. */
|
|
561
561
|
FALSE_INFORMATION = "FALSE_INFORMATION",
|
|
562
|
-
/** Entity is reported for community
|
|
562
|
+
/** Entity is reported for a community guideline violation. */
|
|
563
563
|
COMMUNITY_GUIDELINES_VIOLATION = "COMMUNITY_GUIDELINES_VIOLATION",
|
|
564
564
|
/** Entity is reported for violence. */
|
|
565
565
|
VIOLENCE = "VIOLENCE",
|
|
@@ -577,7 +577,7 @@ declare enum Type {
|
|
|
577
577
|
DRUGS = "DRUGS",
|
|
578
578
|
/** Entity is reported for unlawful actions. */
|
|
579
579
|
UNLAWFUL = "UNLAWFUL",
|
|
580
|
-
/** Entity is reported for exposing identifying
|
|
580
|
+
/** Entity is reported for exposing identifying details. */
|
|
581
581
|
EXPOSING_IDENTIFYING_INFO = "EXPOSING_IDENTIFYING_INFO"
|
|
582
582
|
}
|
|
583
583
|
interface ExtendedFields {
|
|
@@ -961,7 +961,7 @@ interface UpdateReport {
|
|
|
961
961
|
* @readonly
|
|
962
962
|
*/
|
|
963
963
|
_id?: string | null;
|
|
964
|
-
/** Reported entity name
|
|
964
|
+
/** Reported entity name, such as `comment`. */
|
|
965
965
|
entityName?: string;
|
|
966
966
|
/** Reported entity ID. */
|
|
967
967
|
entityId?: string;
|
|
@@ -970,7 +970,7 @@ interface UpdateReport {
|
|
|
970
970
|
* @readonly
|
|
971
971
|
*/
|
|
972
972
|
identity?: CommonIdentificationData;
|
|
973
|
-
/** Reason for report. */
|
|
973
|
+
/** Reason for the report. */
|
|
974
974
|
reason?: Reason;
|
|
975
975
|
/**
|
|
976
976
|
* 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.
|
|
@@ -978,17 +978,17 @@ interface UpdateReport {
|
|
|
978
978
|
*/
|
|
979
979
|
revision?: string | null;
|
|
980
980
|
/**
|
|
981
|
-
* Date and time when the report
|
|
981
|
+
* Date and time when the report created.
|
|
982
982
|
* @readonly
|
|
983
983
|
*/
|
|
984
984
|
_createdDate?: Date | null;
|
|
985
985
|
/**
|
|
986
|
-
* Date and time when the report
|
|
986
|
+
* Date and time when the report updated.
|
|
987
987
|
* @readonly
|
|
988
988
|
*/
|
|
989
989
|
_updatedDate?: Date | null;
|
|
990
990
|
/**
|
|
991
|
-
* Custom field data for the
|
|
991
|
+
* Custom field data for the report object.
|
|
992
992
|
*
|
|
993
993
|
* **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.
|
|
994
994
|
*/
|
|
@@ -1006,7 +1006,7 @@ interface UpsertReportOptions {
|
|
|
1006
1006
|
* @readonly
|
|
1007
1007
|
*/
|
|
1008
1008
|
identity?: CommonIdentificationData;
|
|
1009
|
-
/** Reason for report. */
|
|
1009
|
+
/** Reason for the report. */
|
|
1010
1010
|
reason?: Reason;
|
|
1011
1011
|
/**
|
|
1012
1012
|
* 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.
|
|
@@ -1014,17 +1014,17 @@ interface UpsertReportOptions {
|
|
|
1014
1014
|
*/
|
|
1015
1015
|
revision?: string | null;
|
|
1016
1016
|
/**
|
|
1017
|
-
* Date and time when the report
|
|
1017
|
+
* Date and time when the report created.
|
|
1018
1018
|
* @readonly
|
|
1019
1019
|
*/
|
|
1020
1020
|
_createdDate?: Date | null;
|
|
1021
1021
|
/**
|
|
1022
|
-
* Date and time when the report
|
|
1022
|
+
* Date and time when the report updated.
|
|
1023
1023
|
* @readonly
|
|
1024
1024
|
*/
|
|
1025
1025
|
_updatedDate?: Date | null;
|
|
1026
1026
|
/**
|
|
1027
|
-
* Custom field data for the
|
|
1027
|
+
* Custom field data for the report object.
|
|
1028
1028
|
*
|
|
1029
1029
|
* **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.
|
|
1030
1030
|
*/
|
|
@@ -1032,7 +1032,7 @@ interface UpsertReportOptions {
|
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
1034
|
interface UpsertReportIdentifiers {
|
|
1035
|
-
/** Reported entity name
|
|
1035
|
+
/** Reported entity name, such as `comment`. */
|
|
1036
1036
|
reportEntityName?: string;
|
|
1037
1037
|
/** Reported entity ID. */
|
|
1038
1038
|
reportEntityId?: string;
|
|
@@ -1157,7 +1157,7 @@ interface UpdateReportSignature {
|
|
|
1157
1157
|
declare function deleteReport$1(httpClient: HttpClient): DeleteReportSignature;
|
|
1158
1158
|
interface DeleteReportSignature {
|
|
1159
1159
|
/**
|
|
1160
|
-
* Deletes a report
|
|
1160
|
+
* Deletes a report and removes it from the report list in the dashboard.
|
|
1161
1161
|
*
|
|
1162
1162
|
* Site members and visitors can only delete their own reports.
|
|
1163
1163
|
* @param - ID of the report to delete.
|
|
@@ -1168,7 +1168,7 @@ declare function upsertReport$1(httpClient: HttpClient): UpsertReportSignature;
|
|
|
1168
1168
|
interface UpsertReportSignature {
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Creates or updates a report.
|
|
1171
|
-
* If the report for the requested entity already exists,
|
|
1171
|
+
* If the report for the requested entity already exists, updates the report with the provided `reason` value. Otherwise, creates the report.
|
|
1172
1172
|
*/
|
|
1173
1173
|
(identifiers: UpsertReportIdentifiers, options?: UpsertReportOptions | undefined): Promise<UpsertReportResponse & UpsertReportResponseNonNullableFields>;
|
|
1174
1174
|
}
|
|
@@ -1183,7 +1183,7 @@ interface BulkDeleteReportsByFilterSignature {
|
|
|
1183
1183
|
declare function countReportsByReasonTypes$1(httpClient: HttpClient): CountReportsByReasonTypesSignature;
|
|
1184
1184
|
interface CountReportsByReasonTypesSignature {
|
|
1185
1185
|
/**
|
|
1186
|
-
* Counts reports by
|
|
1186
|
+
* Counts reports by reason types.
|
|
1187
1187
|
* @param - Reported entity name. For example, `comment`.
|
|
1188
1188
|
*/
|
|
1189
1189
|
(entityName: string, options: CountReportsByReasonTypesOptions): Promise<CountReportsByReasonTypesResponse & CountReportsByReasonTypesResponseNonNullableFields>;
|
|
@@ -1196,6 +1196,7 @@ interface QueryReportsSignature {
|
|
|
1196
1196
|
* - `createdDate` is sorted in `ASC` order
|
|
1197
1197
|
* - `paging.limit` is `100`
|
|
1198
1198
|
* - `paging.offset` is `0`
|
|
1199
|
+
*
|
|
1199
1200
|
* For field support for filters and sorting, see [Reports: Supported Filters and Sorting]().
|
|
1200
1201
|
* To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
1201
1202
|
*/
|
|
@@ -1241,7 +1242,9 @@ type _publicOnReportDeletedType = typeof onReportDeleted$1;
|
|
|
1241
1242
|
declare const onReportDeleted: ReturnType<typeof createEventModule<_publicOnReportDeletedType>>;
|
|
1242
1243
|
|
|
1243
1244
|
type _publicOnReportEntityReportSummaryChangedType = typeof onReportEntityReportSummaryChanged$1;
|
|
1244
|
-
/**
|
|
1245
|
+
/**
|
|
1246
|
+
* Triggered when count of reports by reason is updated.
|
|
1247
|
+
*/
|
|
1245
1248
|
declare const onReportEntityReportSummaryChanged: ReturnType<typeof createEventModule<_publicOnReportEntityReportSummaryChangedType>>;
|
|
1246
1249
|
|
|
1247
1250
|
type _publicOnReportUpdatedType = typeof onReportUpdated$1;
|
|
@@ -4,7 +4,7 @@ interface Report$1 {
|
|
|
4
4
|
* @readonly
|
|
5
5
|
*/
|
|
6
6
|
id?: string | null;
|
|
7
|
-
/** Reported entity name
|
|
7
|
+
/** Reported entity name, such as `comment`. */
|
|
8
8
|
entityName?: string;
|
|
9
9
|
/** Reported entity ID. */
|
|
10
10
|
entityId?: string;
|
|
@@ -13,7 +13,7 @@ interface Report$1 {
|
|
|
13
13
|
* @readonly
|
|
14
14
|
*/
|
|
15
15
|
identity?: CommonIdentificationData$1;
|
|
16
|
-
/** Reason for report. */
|
|
16
|
+
/** Reason for the report. */
|
|
17
17
|
reason?: Reason$1;
|
|
18
18
|
/**
|
|
19
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.
|
|
@@ -21,17 +21,17 @@ interface Report$1 {
|
|
|
21
21
|
*/
|
|
22
22
|
revision?: string | null;
|
|
23
23
|
/**
|
|
24
|
-
* Date and time when the report
|
|
24
|
+
* Date and time when the report created.
|
|
25
25
|
* @readonly
|
|
26
26
|
*/
|
|
27
27
|
createdDate?: Date | null;
|
|
28
28
|
/**
|
|
29
|
-
* Date and time when the report
|
|
29
|
+
* Date and time when the report updated.
|
|
30
30
|
* @readonly
|
|
31
31
|
*/
|
|
32
32
|
updatedDate?: Date | null;
|
|
33
33
|
/**
|
|
34
|
-
* Custom field data for the
|
|
34
|
+
* Custom field data for the report object.
|
|
35
35
|
*
|
|
36
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
37
|
*/
|
|
@@ -65,23 +65,23 @@ declare enum IdentityType$1 {
|
|
|
65
65
|
interface Reason$1 {
|
|
66
66
|
/** Report reason type. */
|
|
67
67
|
reasonType?: Type$1;
|
|
68
|
-
/**
|
|
68
|
+
/** Why the entity is reported. */
|
|
69
69
|
details?: string | null;
|
|
70
70
|
}
|
|
71
71
|
declare enum Type$1 {
|
|
72
72
|
/** Unknown type. This value is not used. */
|
|
73
73
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
74
|
-
/** Entity is reported for other reasons
|
|
74
|
+
/** Entity is reported for other reasons. Specify in `details`. */
|
|
75
75
|
OTHER = "OTHER",
|
|
76
76
|
/** Entity is reported for spam. */
|
|
77
77
|
SPAM = "SPAM",
|
|
78
|
-
/** Entity is reported for nudity. */
|
|
78
|
+
/** Entity is reported for nudity or sexual harassment. */
|
|
79
79
|
NUDITY_OR_SEXUAL_HARASSMENT = "NUDITY_OR_SEXUAL_HARASSMENT",
|
|
80
80
|
/** Entity is reported for hate speech. */
|
|
81
81
|
HATE_SPEECH_OR_SYMBOLS = "HATE_SPEECH_OR_SYMBOLS",
|
|
82
82
|
/** Entity is reported for false information. */
|
|
83
83
|
FALSE_INFORMATION = "FALSE_INFORMATION",
|
|
84
|
-
/** Entity is reported for community
|
|
84
|
+
/** Entity is reported for a community guideline violation. */
|
|
85
85
|
COMMUNITY_GUIDELINES_VIOLATION = "COMMUNITY_GUIDELINES_VIOLATION",
|
|
86
86
|
/** Entity is reported for violence. */
|
|
87
87
|
VIOLENCE = "VIOLENCE",
|
|
@@ -99,7 +99,7 @@ declare enum Type$1 {
|
|
|
99
99
|
DRUGS = "DRUGS",
|
|
100
100
|
/** Entity is reported for unlawful actions. */
|
|
101
101
|
UNLAWFUL = "UNLAWFUL",
|
|
102
|
-
/** Entity is reported for exposing identifying
|
|
102
|
+
/** Entity is reported for exposing identifying details. */
|
|
103
103
|
EXPOSING_IDENTIFYING_INFO = "EXPOSING_IDENTIFYING_INFO"
|
|
104
104
|
}
|
|
105
105
|
interface ExtendedFields$1 {
|
|
@@ -294,7 +294,7 @@ interface Report {
|
|
|
294
294
|
* @readonly
|
|
295
295
|
*/
|
|
296
296
|
_id?: string | null;
|
|
297
|
-
/** Reported entity name
|
|
297
|
+
/** Reported entity name, such as `comment`. */
|
|
298
298
|
entityName?: string;
|
|
299
299
|
/** Reported entity ID. */
|
|
300
300
|
entityId?: string;
|
|
@@ -303,7 +303,7 @@ interface Report {
|
|
|
303
303
|
* @readonly
|
|
304
304
|
*/
|
|
305
305
|
identity?: CommonIdentificationData;
|
|
306
|
-
/** Reason for report. */
|
|
306
|
+
/** Reason for the report. */
|
|
307
307
|
reason?: Reason;
|
|
308
308
|
/**
|
|
309
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.
|
|
@@ -311,17 +311,17 @@ interface Report {
|
|
|
311
311
|
*/
|
|
312
312
|
revision?: string | null;
|
|
313
313
|
/**
|
|
314
|
-
* Date and time when the report
|
|
314
|
+
* Date and time when the report created.
|
|
315
315
|
* @readonly
|
|
316
316
|
*/
|
|
317
317
|
_createdDate?: Date | null;
|
|
318
318
|
/**
|
|
319
|
-
* Date and time when the report
|
|
319
|
+
* Date and time when the report updated.
|
|
320
320
|
* @readonly
|
|
321
321
|
*/
|
|
322
322
|
_updatedDate?: Date | null;
|
|
323
323
|
/**
|
|
324
|
-
* Custom field data for the
|
|
324
|
+
* Custom field data for the report object.
|
|
325
325
|
*
|
|
326
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
327
|
*/
|
|
@@ -355,23 +355,23 @@ declare enum IdentityType {
|
|
|
355
355
|
interface Reason {
|
|
356
356
|
/** Report reason type. */
|
|
357
357
|
reasonType?: Type;
|
|
358
|
-
/**
|
|
358
|
+
/** Why the entity is reported. */
|
|
359
359
|
details?: string | null;
|
|
360
360
|
}
|
|
361
361
|
declare enum Type {
|
|
362
362
|
/** Unknown type. This value is not used. */
|
|
363
363
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
364
|
-
/** Entity is reported for other reasons
|
|
364
|
+
/** Entity is reported for other reasons. Specify in `details`. */
|
|
365
365
|
OTHER = "OTHER",
|
|
366
366
|
/** Entity is reported for spam. */
|
|
367
367
|
SPAM = "SPAM",
|
|
368
|
-
/** Entity is reported for nudity. */
|
|
368
|
+
/** Entity is reported for nudity or sexual harassment. */
|
|
369
369
|
NUDITY_OR_SEXUAL_HARASSMENT = "NUDITY_OR_SEXUAL_HARASSMENT",
|
|
370
370
|
/** Entity is reported for hate speech. */
|
|
371
371
|
HATE_SPEECH_OR_SYMBOLS = "HATE_SPEECH_OR_SYMBOLS",
|
|
372
372
|
/** Entity is reported for false information. */
|
|
373
373
|
FALSE_INFORMATION = "FALSE_INFORMATION",
|
|
374
|
-
/** Entity is reported for community
|
|
374
|
+
/** Entity is reported for a community guideline violation. */
|
|
375
375
|
COMMUNITY_GUIDELINES_VIOLATION = "COMMUNITY_GUIDELINES_VIOLATION",
|
|
376
376
|
/** Entity is reported for violence. */
|
|
377
377
|
VIOLENCE = "VIOLENCE",
|
|
@@ -389,7 +389,7 @@ declare enum Type {
|
|
|
389
389
|
DRUGS = "DRUGS",
|
|
390
390
|
/** Entity is reported for unlawful actions. */
|
|
391
391
|
UNLAWFUL = "UNLAWFUL",
|
|
392
|
-
/** Entity is reported for exposing identifying
|
|
392
|
+
/** Entity is reported for exposing identifying details. */
|
|
393
393
|
EXPOSING_IDENTIFYING_INFO = "EXPOSING_IDENTIFYING_INFO"
|
|
394
394
|
}
|
|
395
395
|
interface ExtendedFields {
|