@wix/reports 1.0.2 → 1.0.4
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.4",
|
|
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.4"
|
|
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": "a03a3f2f6582fc2e454594efe3fdaadeab17e75c8b82ddc3a14a3aad"
|
|
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
|
*/
|
|
@@ -534,32 +534,37 @@ interface CommonIdentificationDataIdOneOf {
|
|
|
534
534
|
memberId?: string;
|
|
535
535
|
}
|
|
536
536
|
declare enum IdentityType {
|
|
537
|
+
/** Unknown type. This value is not used. */
|
|
537
538
|
UNKNOWN = "UNKNOWN",
|
|
539
|
+
/** A site visitor who has not logged in. */
|
|
538
540
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
541
|
+
/** A logged-in site member. */
|
|
539
542
|
MEMBER = "MEMBER",
|
|
543
|
+
/** A Wix account holder, such as a site owner or contributor. This value is not used. */
|
|
540
544
|
WIX_USER = "WIX_USER",
|
|
545
|
+
/** An application integrated with the Wix platform. This value is not used. */
|
|
541
546
|
APP = "APP"
|
|
542
547
|
}
|
|
543
548
|
interface Reason {
|
|
544
549
|
/** Report reason type. */
|
|
545
550
|
reasonType?: Type;
|
|
546
|
-
/**
|
|
551
|
+
/** Why the entity is reported. */
|
|
547
552
|
details?: string | null;
|
|
548
553
|
}
|
|
549
554
|
declare enum Type {
|
|
550
555
|
/** Unknown type. This value is not used. */
|
|
551
556
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
552
|
-
/** Entity is reported for other reasons
|
|
557
|
+
/** Entity is reported for other reasons. Specify in `details`. */
|
|
553
558
|
OTHER = "OTHER",
|
|
554
559
|
/** Entity is reported for spam. */
|
|
555
560
|
SPAM = "SPAM",
|
|
556
|
-
/** Entity is reported for nudity. */
|
|
561
|
+
/** Entity is reported for nudity or sexual harassment. */
|
|
557
562
|
NUDITY_OR_SEXUAL_HARASSMENT = "NUDITY_OR_SEXUAL_HARASSMENT",
|
|
558
563
|
/** Entity is reported for hate speech. */
|
|
559
564
|
HATE_SPEECH_OR_SYMBOLS = "HATE_SPEECH_OR_SYMBOLS",
|
|
560
565
|
/** Entity is reported for false information. */
|
|
561
566
|
FALSE_INFORMATION = "FALSE_INFORMATION",
|
|
562
|
-
/** Entity is reported for community
|
|
567
|
+
/** Entity is reported for a community guideline violation. */
|
|
563
568
|
COMMUNITY_GUIDELINES_VIOLATION = "COMMUNITY_GUIDELINES_VIOLATION",
|
|
564
569
|
/** Entity is reported for violence. */
|
|
565
570
|
VIOLENCE = "VIOLENCE",
|
|
@@ -577,7 +582,7 @@ declare enum Type {
|
|
|
577
582
|
DRUGS = "DRUGS",
|
|
578
583
|
/** Entity is reported for unlawful actions. */
|
|
579
584
|
UNLAWFUL = "UNLAWFUL",
|
|
580
|
-
/** Entity is reported for exposing identifying
|
|
585
|
+
/** Entity is reported for exposing identifying details. */
|
|
581
586
|
EXPOSING_IDENTIFYING_INFO = "EXPOSING_IDENTIFYING_INFO"
|
|
582
587
|
}
|
|
583
588
|
interface ExtendedFields {
|
|
@@ -961,7 +966,7 @@ interface UpdateReport {
|
|
|
961
966
|
* @readonly
|
|
962
967
|
*/
|
|
963
968
|
_id?: string | null;
|
|
964
|
-
/** Reported entity name
|
|
969
|
+
/** Reported entity name, such as `comment`. */
|
|
965
970
|
entityName?: string;
|
|
966
971
|
/** Reported entity ID. */
|
|
967
972
|
entityId?: string;
|
|
@@ -970,7 +975,7 @@ interface UpdateReport {
|
|
|
970
975
|
* @readonly
|
|
971
976
|
*/
|
|
972
977
|
identity?: CommonIdentificationData;
|
|
973
|
-
/** Reason for report. */
|
|
978
|
+
/** Reason for the report. */
|
|
974
979
|
reason?: Reason;
|
|
975
980
|
/**
|
|
976
981
|
* 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 +983,17 @@ interface UpdateReport {
|
|
|
978
983
|
*/
|
|
979
984
|
revision?: string | null;
|
|
980
985
|
/**
|
|
981
|
-
* Date and time when the report
|
|
986
|
+
* Date and time when the report created.
|
|
982
987
|
* @readonly
|
|
983
988
|
*/
|
|
984
989
|
_createdDate?: Date | null;
|
|
985
990
|
/**
|
|
986
|
-
* Date and time when the report
|
|
991
|
+
* Date and time when the report updated.
|
|
987
992
|
* @readonly
|
|
988
993
|
*/
|
|
989
994
|
_updatedDate?: Date | null;
|
|
990
995
|
/**
|
|
991
|
-
* Custom field data for the
|
|
996
|
+
* Custom field data for the report object.
|
|
992
997
|
*
|
|
993
998
|
* **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
999
|
*/
|
|
@@ -1006,7 +1011,7 @@ interface UpsertReportOptions {
|
|
|
1006
1011
|
* @readonly
|
|
1007
1012
|
*/
|
|
1008
1013
|
identity?: CommonIdentificationData;
|
|
1009
|
-
/** Reason for report. */
|
|
1014
|
+
/** Reason for the report. */
|
|
1010
1015
|
reason?: Reason;
|
|
1011
1016
|
/**
|
|
1012
1017
|
* 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 +1019,17 @@ interface UpsertReportOptions {
|
|
|
1014
1019
|
*/
|
|
1015
1020
|
revision?: string | null;
|
|
1016
1021
|
/**
|
|
1017
|
-
* Date and time when the report
|
|
1022
|
+
* Date and time when the report created.
|
|
1018
1023
|
* @readonly
|
|
1019
1024
|
*/
|
|
1020
1025
|
_createdDate?: Date | null;
|
|
1021
1026
|
/**
|
|
1022
|
-
* Date and time when the report
|
|
1027
|
+
* Date and time when the report updated.
|
|
1023
1028
|
* @readonly
|
|
1024
1029
|
*/
|
|
1025
1030
|
_updatedDate?: Date | null;
|
|
1026
1031
|
/**
|
|
1027
|
-
* Custom field data for the
|
|
1032
|
+
* Custom field data for the report object.
|
|
1028
1033
|
*
|
|
1029
1034
|
* **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
1035
|
*/
|
|
@@ -1032,7 +1037,7 @@ interface UpsertReportOptions {
|
|
|
1032
1037
|
};
|
|
1033
1038
|
}
|
|
1034
1039
|
interface UpsertReportIdentifiers {
|
|
1035
|
-
/** Reported entity name
|
|
1040
|
+
/** Reported entity name, such as `comment`. */
|
|
1036
1041
|
reportEntityName?: string;
|
|
1037
1042
|
/** Reported entity ID. */
|
|
1038
1043
|
reportEntityId?: string;
|
|
@@ -1157,7 +1162,7 @@ interface UpdateReportSignature {
|
|
|
1157
1162
|
declare function deleteReport$1(httpClient: HttpClient): DeleteReportSignature;
|
|
1158
1163
|
interface DeleteReportSignature {
|
|
1159
1164
|
/**
|
|
1160
|
-
* Deletes a report
|
|
1165
|
+
* Deletes a report and removes it from the report list in the dashboard.
|
|
1161
1166
|
*
|
|
1162
1167
|
* Site members and visitors can only delete their own reports.
|
|
1163
1168
|
* @param - ID of the report to delete.
|
|
@@ -1168,7 +1173,7 @@ declare function upsertReport$1(httpClient: HttpClient): UpsertReportSignature;
|
|
|
1168
1173
|
interface UpsertReportSignature {
|
|
1169
1174
|
/**
|
|
1170
1175
|
* Creates or updates a report.
|
|
1171
|
-
* If the report for the requested entity already exists,
|
|
1176
|
+
* If the report for the requested entity already exists, updates the report with the provided `reason` value. Otherwise, creates the report.
|
|
1172
1177
|
*/
|
|
1173
1178
|
(identifiers: UpsertReportIdentifiers, options?: UpsertReportOptions | undefined): Promise<UpsertReportResponse & UpsertReportResponseNonNullableFields>;
|
|
1174
1179
|
}
|
|
@@ -1183,7 +1188,7 @@ interface BulkDeleteReportsByFilterSignature {
|
|
|
1183
1188
|
declare function countReportsByReasonTypes$1(httpClient: HttpClient): CountReportsByReasonTypesSignature;
|
|
1184
1189
|
interface CountReportsByReasonTypesSignature {
|
|
1185
1190
|
/**
|
|
1186
|
-
* Counts reports by
|
|
1191
|
+
* Counts reports by reason types.
|
|
1187
1192
|
* @param - Reported entity name. For example, `comment`.
|
|
1188
1193
|
*/
|
|
1189
1194
|
(entityName: string, options: CountReportsByReasonTypesOptions): Promise<CountReportsByReasonTypesResponse & CountReportsByReasonTypesResponseNonNullableFields>;
|
|
@@ -1196,6 +1201,7 @@ interface QueryReportsSignature {
|
|
|
1196
1201
|
* - `createdDate` is sorted in `ASC` order
|
|
1197
1202
|
* - `paging.limit` is `100`
|
|
1198
1203
|
* - `paging.offset` is `0`
|
|
1204
|
+
*
|
|
1199
1205
|
* For field support for filters and sorting, see [Reports: Supported Filters and Sorting]().
|
|
1200
1206
|
* To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
1201
1207
|
*/
|
|
@@ -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
|
*/
|
|
@@ -534,32 +534,37 @@ interface CommonIdentificationDataIdOneOf {
|
|
|
534
534
|
memberId?: string;
|
|
535
535
|
}
|
|
536
536
|
declare enum IdentityType {
|
|
537
|
+
/** Unknown type. This value is not used. */
|
|
537
538
|
UNKNOWN = "UNKNOWN",
|
|
539
|
+
/** A site visitor who has not logged in. */
|
|
538
540
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
541
|
+
/** A logged-in site member. */
|
|
539
542
|
MEMBER = "MEMBER",
|
|
543
|
+
/** A Wix account holder, such as a site owner or contributor. This value is not used. */
|
|
540
544
|
WIX_USER = "WIX_USER",
|
|
545
|
+
/** An application integrated with the Wix platform. This value is not used. */
|
|
541
546
|
APP = "APP"
|
|
542
547
|
}
|
|
543
548
|
interface Reason {
|
|
544
549
|
/** Report reason type. */
|
|
545
550
|
reasonType?: Type;
|
|
546
|
-
/**
|
|
551
|
+
/** Why the entity is reported. */
|
|
547
552
|
details?: string | null;
|
|
548
553
|
}
|
|
549
554
|
declare enum Type {
|
|
550
555
|
/** Unknown type. This value is not used. */
|
|
551
556
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
552
|
-
/** Entity is reported for other reasons
|
|
557
|
+
/** Entity is reported for other reasons. Specify in `details`. */
|
|
553
558
|
OTHER = "OTHER",
|
|
554
559
|
/** Entity is reported for spam. */
|
|
555
560
|
SPAM = "SPAM",
|
|
556
|
-
/** Entity is reported for nudity. */
|
|
561
|
+
/** Entity is reported for nudity or sexual harassment. */
|
|
557
562
|
NUDITY_OR_SEXUAL_HARASSMENT = "NUDITY_OR_SEXUAL_HARASSMENT",
|
|
558
563
|
/** Entity is reported for hate speech. */
|
|
559
564
|
HATE_SPEECH_OR_SYMBOLS = "HATE_SPEECH_OR_SYMBOLS",
|
|
560
565
|
/** Entity is reported for false information. */
|
|
561
566
|
FALSE_INFORMATION = "FALSE_INFORMATION",
|
|
562
|
-
/** Entity is reported for community
|
|
567
|
+
/** Entity is reported for a community guideline violation. */
|
|
563
568
|
COMMUNITY_GUIDELINES_VIOLATION = "COMMUNITY_GUIDELINES_VIOLATION",
|
|
564
569
|
/** Entity is reported for violence. */
|
|
565
570
|
VIOLENCE = "VIOLENCE",
|
|
@@ -577,7 +582,7 @@ declare enum Type {
|
|
|
577
582
|
DRUGS = "DRUGS",
|
|
578
583
|
/** Entity is reported for unlawful actions. */
|
|
579
584
|
UNLAWFUL = "UNLAWFUL",
|
|
580
|
-
/** Entity is reported for exposing identifying
|
|
585
|
+
/** Entity is reported for exposing identifying details. */
|
|
581
586
|
EXPOSING_IDENTIFYING_INFO = "EXPOSING_IDENTIFYING_INFO"
|
|
582
587
|
}
|
|
583
588
|
interface ExtendedFields {
|
|
@@ -961,7 +966,7 @@ interface UpdateReport {
|
|
|
961
966
|
* @readonly
|
|
962
967
|
*/
|
|
963
968
|
_id?: string | null;
|
|
964
|
-
/** Reported entity name
|
|
969
|
+
/** Reported entity name, such as `comment`. */
|
|
965
970
|
entityName?: string;
|
|
966
971
|
/** Reported entity ID. */
|
|
967
972
|
entityId?: string;
|
|
@@ -970,7 +975,7 @@ interface UpdateReport {
|
|
|
970
975
|
* @readonly
|
|
971
976
|
*/
|
|
972
977
|
identity?: CommonIdentificationData;
|
|
973
|
-
/** Reason for report. */
|
|
978
|
+
/** Reason for the report. */
|
|
974
979
|
reason?: Reason;
|
|
975
980
|
/**
|
|
976
981
|
* 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 +983,17 @@ interface UpdateReport {
|
|
|
978
983
|
*/
|
|
979
984
|
revision?: string | null;
|
|
980
985
|
/**
|
|
981
|
-
* Date and time when the report
|
|
986
|
+
* Date and time when the report created.
|
|
982
987
|
* @readonly
|
|
983
988
|
*/
|
|
984
989
|
_createdDate?: Date | null;
|
|
985
990
|
/**
|
|
986
|
-
* Date and time when the report
|
|
991
|
+
* Date and time when the report updated.
|
|
987
992
|
* @readonly
|
|
988
993
|
*/
|
|
989
994
|
_updatedDate?: Date | null;
|
|
990
995
|
/**
|
|
991
|
-
* Custom field data for the
|
|
996
|
+
* Custom field data for the report object.
|
|
992
997
|
*
|
|
993
998
|
* **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
999
|
*/
|
|
@@ -1006,7 +1011,7 @@ interface UpsertReportOptions {
|
|
|
1006
1011
|
* @readonly
|
|
1007
1012
|
*/
|
|
1008
1013
|
identity?: CommonIdentificationData;
|
|
1009
|
-
/** Reason for report. */
|
|
1014
|
+
/** Reason for the report. */
|
|
1010
1015
|
reason?: Reason;
|
|
1011
1016
|
/**
|
|
1012
1017
|
* 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 +1019,17 @@ interface UpsertReportOptions {
|
|
|
1014
1019
|
*/
|
|
1015
1020
|
revision?: string | null;
|
|
1016
1021
|
/**
|
|
1017
|
-
* Date and time when the report
|
|
1022
|
+
* Date and time when the report created.
|
|
1018
1023
|
* @readonly
|
|
1019
1024
|
*/
|
|
1020
1025
|
_createdDate?: Date | null;
|
|
1021
1026
|
/**
|
|
1022
|
-
* Date and time when the report
|
|
1027
|
+
* Date and time when the report updated.
|
|
1023
1028
|
* @readonly
|
|
1024
1029
|
*/
|
|
1025
1030
|
_updatedDate?: Date | null;
|
|
1026
1031
|
/**
|
|
1027
|
-
* Custom field data for the
|
|
1032
|
+
* Custom field data for the report object.
|
|
1028
1033
|
*
|
|
1029
1034
|
* **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
1035
|
*/
|
|
@@ -1032,7 +1037,7 @@ interface UpsertReportOptions {
|
|
|
1032
1037
|
};
|
|
1033
1038
|
}
|
|
1034
1039
|
interface UpsertReportIdentifiers {
|
|
1035
|
-
/** Reported entity name
|
|
1040
|
+
/** Reported entity name, such as `comment`. */
|
|
1036
1041
|
reportEntityName?: string;
|
|
1037
1042
|
/** Reported entity ID. */
|
|
1038
1043
|
reportEntityId?: string;
|
|
@@ -1157,7 +1162,7 @@ interface UpdateReportSignature {
|
|
|
1157
1162
|
declare function deleteReport$1(httpClient: HttpClient): DeleteReportSignature;
|
|
1158
1163
|
interface DeleteReportSignature {
|
|
1159
1164
|
/**
|
|
1160
|
-
* Deletes a report
|
|
1165
|
+
* Deletes a report and removes it from the report list in the dashboard.
|
|
1161
1166
|
*
|
|
1162
1167
|
* Site members and visitors can only delete their own reports.
|
|
1163
1168
|
* @param - ID of the report to delete.
|
|
@@ -1168,7 +1173,7 @@ declare function upsertReport$1(httpClient: HttpClient): UpsertReportSignature;
|
|
|
1168
1173
|
interface UpsertReportSignature {
|
|
1169
1174
|
/**
|
|
1170
1175
|
* Creates or updates a report.
|
|
1171
|
-
* If the report for the requested entity already exists,
|
|
1176
|
+
* If the report for the requested entity already exists, updates the report with the provided `reason` value. Otherwise, creates the report.
|
|
1172
1177
|
*/
|
|
1173
1178
|
(identifiers: UpsertReportIdentifiers, options?: UpsertReportOptions | undefined): Promise<UpsertReportResponse & UpsertReportResponseNonNullableFields>;
|
|
1174
1179
|
}
|
|
@@ -1183,7 +1188,7 @@ interface BulkDeleteReportsByFilterSignature {
|
|
|
1183
1188
|
declare function countReportsByReasonTypes$1(httpClient: HttpClient): CountReportsByReasonTypesSignature;
|
|
1184
1189
|
interface CountReportsByReasonTypesSignature {
|
|
1185
1190
|
/**
|
|
1186
|
-
* Counts reports by
|
|
1191
|
+
* Counts reports by reason types.
|
|
1187
1192
|
* @param - Reported entity name. For example, `comment`.
|
|
1188
1193
|
*/
|
|
1189
1194
|
(entityName: string, options: CountReportsByReasonTypesOptions): Promise<CountReportsByReasonTypesResponse & CountReportsByReasonTypesResponseNonNullableFields>;
|
|
@@ -1196,6 +1201,7 @@ interface QueryReportsSignature {
|
|
|
1196
1201
|
* - `createdDate` is sorted in `ASC` order
|
|
1197
1202
|
* - `paging.limit` is `100`
|
|
1198
1203
|
* - `paging.offset` is `0`
|
|
1204
|
+
*
|
|
1199
1205
|
* For field support for filters and sorting, see [Reports: Supported Filters and Sorting]().
|
|
1200
1206
|
* To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
1201
1207
|
*/
|
|
@@ -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
|
*/
|
|
@@ -56,32 +56,37 @@ interface CommonIdentificationDataIdOneOf$1 {
|
|
|
56
56
|
memberId?: string;
|
|
57
57
|
}
|
|
58
58
|
declare enum IdentityType$1 {
|
|
59
|
+
/** Unknown type. This value is not used. */
|
|
59
60
|
UNKNOWN = "UNKNOWN",
|
|
61
|
+
/** A site visitor who has not logged in. */
|
|
60
62
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
63
|
+
/** A logged-in site member. */
|
|
61
64
|
MEMBER = "MEMBER",
|
|
65
|
+
/** A Wix account holder, such as a site owner or contributor. This value is not used. */
|
|
62
66
|
WIX_USER = "WIX_USER",
|
|
67
|
+
/** An application integrated with the Wix platform. This value is not used. */
|
|
63
68
|
APP = "APP"
|
|
64
69
|
}
|
|
65
70
|
interface Reason$1 {
|
|
66
71
|
/** Report reason type. */
|
|
67
72
|
reasonType?: Type$1;
|
|
68
|
-
/**
|
|
73
|
+
/** Why the entity is reported. */
|
|
69
74
|
details?: string | null;
|
|
70
75
|
}
|
|
71
76
|
declare enum Type$1 {
|
|
72
77
|
/** Unknown type. This value is not used. */
|
|
73
78
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
74
|
-
/** Entity is reported for other reasons
|
|
79
|
+
/** Entity is reported for other reasons. Specify in `details`. */
|
|
75
80
|
OTHER = "OTHER",
|
|
76
81
|
/** Entity is reported for spam. */
|
|
77
82
|
SPAM = "SPAM",
|
|
78
|
-
/** Entity is reported for nudity. */
|
|
83
|
+
/** Entity is reported for nudity or sexual harassment. */
|
|
79
84
|
NUDITY_OR_SEXUAL_HARASSMENT = "NUDITY_OR_SEXUAL_HARASSMENT",
|
|
80
85
|
/** Entity is reported for hate speech. */
|
|
81
86
|
HATE_SPEECH_OR_SYMBOLS = "HATE_SPEECH_OR_SYMBOLS",
|
|
82
87
|
/** Entity is reported for false information. */
|
|
83
88
|
FALSE_INFORMATION = "FALSE_INFORMATION",
|
|
84
|
-
/** Entity is reported for community
|
|
89
|
+
/** Entity is reported for a community guideline violation. */
|
|
85
90
|
COMMUNITY_GUIDELINES_VIOLATION = "COMMUNITY_GUIDELINES_VIOLATION",
|
|
86
91
|
/** Entity is reported for violence. */
|
|
87
92
|
VIOLENCE = "VIOLENCE",
|
|
@@ -99,7 +104,7 @@ declare enum Type$1 {
|
|
|
99
104
|
DRUGS = "DRUGS",
|
|
100
105
|
/** Entity is reported for unlawful actions. */
|
|
101
106
|
UNLAWFUL = "UNLAWFUL",
|
|
102
|
-
/** Entity is reported for exposing identifying
|
|
107
|
+
/** Entity is reported for exposing identifying details. */
|
|
103
108
|
EXPOSING_IDENTIFYING_INFO = "EXPOSING_IDENTIFYING_INFO"
|
|
104
109
|
}
|
|
105
110
|
interface ExtendedFields$1 {
|
|
@@ -294,7 +299,7 @@ interface Report {
|
|
|
294
299
|
* @readonly
|
|
295
300
|
*/
|
|
296
301
|
_id?: string | null;
|
|
297
|
-
/** Reported entity name
|
|
302
|
+
/** Reported entity name, such as `comment`. */
|
|
298
303
|
entityName?: string;
|
|
299
304
|
/** Reported entity ID. */
|
|
300
305
|
entityId?: string;
|
|
@@ -303,7 +308,7 @@ interface Report {
|
|
|
303
308
|
* @readonly
|
|
304
309
|
*/
|
|
305
310
|
identity?: CommonIdentificationData;
|
|
306
|
-
/** Reason for report. */
|
|
311
|
+
/** Reason for the report. */
|
|
307
312
|
reason?: Reason;
|
|
308
313
|
/**
|
|
309
314
|
* 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 +316,17 @@ interface Report {
|
|
|
311
316
|
*/
|
|
312
317
|
revision?: string | null;
|
|
313
318
|
/**
|
|
314
|
-
* Date and time when the report
|
|
319
|
+
* Date and time when the report created.
|
|
315
320
|
* @readonly
|
|
316
321
|
*/
|
|
317
322
|
_createdDate?: Date | null;
|
|
318
323
|
/**
|
|
319
|
-
* Date and time when the report
|
|
324
|
+
* Date and time when the report updated.
|
|
320
325
|
* @readonly
|
|
321
326
|
*/
|
|
322
327
|
_updatedDate?: Date | null;
|
|
323
328
|
/**
|
|
324
|
-
* Custom field data for the
|
|
329
|
+
* Custom field data for the report object.
|
|
325
330
|
*
|
|
326
331
|
* **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
332
|
*/
|
|
@@ -346,32 +351,37 @@ interface CommonIdentificationDataIdOneOf {
|
|
|
346
351
|
memberId?: string;
|
|
347
352
|
}
|
|
348
353
|
declare enum IdentityType {
|
|
354
|
+
/** Unknown type. This value is not used. */
|
|
349
355
|
UNKNOWN = "UNKNOWN",
|
|
356
|
+
/** A site visitor who has not logged in. */
|
|
350
357
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
358
|
+
/** A logged-in site member. */
|
|
351
359
|
MEMBER = "MEMBER",
|
|
360
|
+
/** A Wix account holder, such as a site owner or contributor. This value is not used. */
|
|
352
361
|
WIX_USER = "WIX_USER",
|
|
362
|
+
/** An application integrated with the Wix platform. This value is not used. */
|
|
353
363
|
APP = "APP"
|
|
354
364
|
}
|
|
355
365
|
interface Reason {
|
|
356
366
|
/** Report reason type. */
|
|
357
367
|
reasonType?: Type;
|
|
358
|
-
/**
|
|
368
|
+
/** Why the entity is reported. */
|
|
359
369
|
details?: string | null;
|
|
360
370
|
}
|
|
361
371
|
declare enum Type {
|
|
362
372
|
/** Unknown type. This value is not used. */
|
|
363
373
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
364
|
-
/** Entity is reported for other reasons
|
|
374
|
+
/** Entity is reported for other reasons. Specify in `details`. */
|
|
365
375
|
OTHER = "OTHER",
|
|
366
376
|
/** Entity is reported for spam. */
|
|
367
377
|
SPAM = "SPAM",
|
|
368
|
-
/** Entity is reported for nudity. */
|
|
378
|
+
/** Entity is reported for nudity or sexual harassment. */
|
|
369
379
|
NUDITY_OR_SEXUAL_HARASSMENT = "NUDITY_OR_SEXUAL_HARASSMENT",
|
|
370
380
|
/** Entity is reported for hate speech. */
|
|
371
381
|
HATE_SPEECH_OR_SYMBOLS = "HATE_SPEECH_OR_SYMBOLS",
|
|
372
382
|
/** Entity is reported for false information. */
|
|
373
383
|
FALSE_INFORMATION = "FALSE_INFORMATION",
|
|
374
|
-
/** Entity is reported for community
|
|
384
|
+
/** Entity is reported for a community guideline violation. */
|
|
375
385
|
COMMUNITY_GUIDELINES_VIOLATION = "COMMUNITY_GUIDELINES_VIOLATION",
|
|
376
386
|
/** Entity is reported for violence. */
|
|
377
387
|
VIOLENCE = "VIOLENCE",
|
|
@@ -389,7 +399,7 @@ declare enum Type {
|
|
|
389
399
|
DRUGS = "DRUGS",
|
|
390
400
|
/** Entity is reported for unlawful actions. */
|
|
391
401
|
UNLAWFUL = "UNLAWFUL",
|
|
392
|
-
/** Entity is reported for exposing identifying
|
|
402
|
+
/** Entity is reported for exposing identifying details. */
|
|
393
403
|
EXPOSING_IDENTIFYING_INFO = "EXPOSING_IDENTIFYING_INFO"
|
|
394
404
|
}
|
|
395
405
|
interface ExtendedFields {
|