@wix/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.
- package/build/cjs/context.d.ts +1 -0
- package/build/cjs/context.js +28 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.d.ts +2 -0
- package/build/cjs/index.js +29 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +28 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/context.d.ts +1 -0
- package/build/es/context.js +2 -0
- package/build/es/context.js.map +1 -0
- package/build/es/index.d.ts +2 -0
- package/build/es/index.js +3 -0
- package/build/es/index.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/context/package.json +7 -0
- package/meta/package.json +7 -0
- package/package.json +50 -0
- package/type-bundles/context.bundle.d.ts +1221 -0
- package/type-bundles/index.bundle.d.ts +1221 -0
- package/type-bundles/meta.bundle.d.ts +594 -0
|
@@ -0,0 +1,594 @@
|
|
|
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
|
+
interface Report$1 {
|
|
6
|
+
/**
|
|
7
|
+
* Report ID.
|
|
8
|
+
* @readonly
|
|
9
|
+
*/
|
|
10
|
+
id?: string | null;
|
|
11
|
+
/** Reported entity name */
|
|
12
|
+
entityName?: string;
|
|
13
|
+
/** Reported entity ID */
|
|
14
|
+
entityId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Identity of who made a report
|
|
17
|
+
* @readonly
|
|
18
|
+
*/
|
|
19
|
+
identity?: CommonIdentificationData$1;
|
|
20
|
+
/** Reason for the report */
|
|
21
|
+
reason?: Reason$1;
|
|
22
|
+
/**
|
|
23
|
+
* Revision number, which increments by 1 each time the Report is updated.
|
|
24
|
+
* @readonly
|
|
25
|
+
*/
|
|
26
|
+
revision?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Date and time the Report was created.
|
|
29
|
+
* @readonly
|
|
30
|
+
*/
|
|
31
|
+
createdDate?: Date | null;
|
|
32
|
+
/**
|
|
33
|
+
* Date and time the Report was last updated.
|
|
34
|
+
* @readonly
|
|
35
|
+
*/
|
|
36
|
+
updatedDate?: Date | null;
|
|
37
|
+
/** Data Extensions */
|
|
38
|
+
extendedFields?: ExtendedFields$1;
|
|
39
|
+
}
|
|
40
|
+
interface CommonIdentificationData$1 extends CommonIdentificationDataIdOneOf$1 {
|
|
41
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
42
|
+
anonymousVisitorId?: string;
|
|
43
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
44
|
+
memberId?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Identity type
|
|
47
|
+
* @readonly
|
|
48
|
+
*/
|
|
49
|
+
identityType?: IdentityType$1;
|
|
50
|
+
}
|
|
51
|
+
/** @oneof */
|
|
52
|
+
interface CommonIdentificationDataIdOneOf$1 {
|
|
53
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
54
|
+
anonymousVisitorId?: string;
|
|
55
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
56
|
+
memberId?: string;
|
|
57
|
+
}
|
|
58
|
+
declare enum IdentityType$1 {
|
|
59
|
+
UNKNOWN = "UNKNOWN",
|
|
60
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
61
|
+
MEMBER = "MEMBER",
|
|
62
|
+
WIX_USER = "WIX_USER",
|
|
63
|
+
APP = "APP"
|
|
64
|
+
}
|
|
65
|
+
interface Reason$1 {
|
|
66
|
+
/** Type of reason selected for the report */
|
|
67
|
+
reasonType?: Type$1;
|
|
68
|
+
/** Optional details provided alongside the report */
|
|
69
|
+
details?: string | null;
|
|
70
|
+
}
|
|
71
|
+
declare enum Type$1 {
|
|
72
|
+
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
73
|
+
OTHER = "OTHER",
|
|
74
|
+
SPAM = "SPAM",
|
|
75
|
+
NUDITY_OR_SEXUAL_HARASSMENT = "NUDITY_OR_SEXUAL_HARASSMENT",
|
|
76
|
+
HATE_SPEECH_OR_SYMBOLS = "HATE_SPEECH_OR_SYMBOLS",
|
|
77
|
+
FALSE_INFORMATION = "FALSE_INFORMATION",
|
|
78
|
+
COMMUNITY_GUIDELINES_VIOLATION = "COMMUNITY_GUIDELINES_VIOLATION",
|
|
79
|
+
VIOLENCE = "VIOLENCE",
|
|
80
|
+
SUICIDE_OR_SELF_INJURY = "SUICIDE_OR_SELF_INJURY",
|
|
81
|
+
UNAUTHORIZED_SALES = "UNAUTHORIZED_SALES",
|
|
82
|
+
EATING_DISORDER = "EATING_DISORDER",
|
|
83
|
+
INVOLVES_A_CHILD = "INVOLVES_A_CHILD",
|
|
84
|
+
TERRORISM = "TERRORISM",
|
|
85
|
+
DRUGS = "DRUGS",
|
|
86
|
+
UNLAWFUL = "UNLAWFUL",
|
|
87
|
+
EXPOSING_IDENTIFYING_INFO = "EXPOSING_IDENTIFYING_INFO"
|
|
88
|
+
}
|
|
89
|
+
interface ExtendedFields$1 {
|
|
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
|
+
interface CreateReportRequest$1 {
|
|
101
|
+
/** Report to be created. */
|
|
102
|
+
report: Report$1;
|
|
103
|
+
}
|
|
104
|
+
interface CreateReportResponse$1 {
|
|
105
|
+
/** The created Report. */
|
|
106
|
+
report?: Report$1;
|
|
107
|
+
}
|
|
108
|
+
interface GetReportRequest$1 {
|
|
109
|
+
/** ID of the Report to retrieve. */
|
|
110
|
+
reportId: string;
|
|
111
|
+
}
|
|
112
|
+
interface GetReportResponse$1 {
|
|
113
|
+
/** The requested Report. */
|
|
114
|
+
report?: Report$1;
|
|
115
|
+
}
|
|
116
|
+
interface UpdateReportRequest$1 {
|
|
117
|
+
/** Report to be updated, may be partial. */
|
|
118
|
+
report: Report$1;
|
|
119
|
+
}
|
|
120
|
+
interface UpdateReportResponse$1 {
|
|
121
|
+
/** Updated Report. */
|
|
122
|
+
report?: Report$1;
|
|
123
|
+
}
|
|
124
|
+
interface DeleteReportRequest$1 {
|
|
125
|
+
/** Id of the Report to delete. */
|
|
126
|
+
reportId: string;
|
|
127
|
+
}
|
|
128
|
+
interface DeleteReportResponse$1 {
|
|
129
|
+
}
|
|
130
|
+
interface UpsertReportRequest$1 {
|
|
131
|
+
/** Report to be upserted. */
|
|
132
|
+
report?: Report$1;
|
|
133
|
+
}
|
|
134
|
+
interface UpsertReportResponse$1 {
|
|
135
|
+
/** Updated or created Report. */
|
|
136
|
+
report?: Report$1;
|
|
137
|
+
}
|
|
138
|
+
interface BulkDeleteReportsByFilterRequest$1 {
|
|
139
|
+
/** Filter for which reports to delete */
|
|
140
|
+
filter: Record<string, any> | null;
|
|
141
|
+
}
|
|
142
|
+
interface BulkDeleteReportsByFilterResponse$1 {
|
|
143
|
+
/** Reference to async job ID */
|
|
144
|
+
jobId?: string;
|
|
145
|
+
}
|
|
146
|
+
interface CountReportsByReasonTypesRequest$1 {
|
|
147
|
+
/** Entity name */
|
|
148
|
+
entityName: string;
|
|
149
|
+
/** ID of the entity. */
|
|
150
|
+
entityId: string;
|
|
151
|
+
}
|
|
152
|
+
interface CountReportsByReasonTypesResponse$1 {
|
|
153
|
+
/** The list of entity reports grouped by report reason. */
|
|
154
|
+
reasonTypeCount?: ReasonTypeCount$1[];
|
|
155
|
+
}
|
|
156
|
+
interface ReasonTypeCount$1 {
|
|
157
|
+
/** Type of reason selected for the report */
|
|
158
|
+
reasonType?: Type$1;
|
|
159
|
+
/** Report count */
|
|
160
|
+
count?: number;
|
|
161
|
+
}
|
|
162
|
+
interface QueryReportsRequest$1 {
|
|
163
|
+
/** WQL expression. */
|
|
164
|
+
query?: CursorQuery$1;
|
|
165
|
+
}
|
|
166
|
+
interface CursorQuery$1 extends CursorQueryPagingMethodOneOf$1 {
|
|
167
|
+
/** Cursor paging options */
|
|
168
|
+
cursorPaging?: CursorPaging$1;
|
|
169
|
+
/** Filter object. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information. */
|
|
170
|
+
filter?: Record<string, any> | null;
|
|
171
|
+
/** Sorting options */
|
|
172
|
+
sort?: Sorting$1[];
|
|
173
|
+
}
|
|
174
|
+
/** @oneof */
|
|
175
|
+
interface CursorQueryPagingMethodOneOf$1 {
|
|
176
|
+
/** Cursor paging options */
|
|
177
|
+
cursorPaging?: CursorPaging$1;
|
|
178
|
+
}
|
|
179
|
+
interface Sorting$1 {
|
|
180
|
+
/** Name of the field to sort by. */
|
|
181
|
+
fieldName?: string;
|
|
182
|
+
/** Sort order. */
|
|
183
|
+
order?: SortOrder$1;
|
|
184
|
+
}
|
|
185
|
+
declare enum SortOrder$1 {
|
|
186
|
+
ASC = "ASC",
|
|
187
|
+
DESC = "DESC"
|
|
188
|
+
}
|
|
189
|
+
interface CursorPaging$1 {
|
|
190
|
+
/** Maximum number of items to return in the results. */
|
|
191
|
+
limit?: number | null;
|
|
192
|
+
/**
|
|
193
|
+
* Pointer to the next or previous page in the list of results.
|
|
194
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
195
|
+
*/
|
|
196
|
+
cursor?: string | null;
|
|
197
|
+
}
|
|
198
|
+
interface QueryReportsResponse$1 {
|
|
199
|
+
/** List of Reports. */
|
|
200
|
+
reports?: Report$1[];
|
|
201
|
+
/** Paging metadata */
|
|
202
|
+
pagingMetadata?: CursorPagingMetadata$1;
|
|
203
|
+
}
|
|
204
|
+
interface CursorPagingMetadata$1 {
|
|
205
|
+
/** Number of items returned in the response. */
|
|
206
|
+
count?: number | null;
|
|
207
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
208
|
+
cursors?: Cursors$1;
|
|
209
|
+
/** Whether there are more pages to retrieve following the current page. */
|
|
210
|
+
hasNext?: boolean | null;
|
|
211
|
+
}
|
|
212
|
+
interface Cursors$1 {
|
|
213
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
214
|
+
next?: string | null;
|
|
215
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
216
|
+
prev?: string | null;
|
|
217
|
+
}
|
|
218
|
+
interface UpdateExtendedFieldsRequest$1 {
|
|
219
|
+
/** ID of the entity to update. */
|
|
220
|
+
id: string;
|
|
221
|
+
/** Identifier for the app whose extended fields are being updated. */
|
|
222
|
+
namespace: string;
|
|
223
|
+
/** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
|
|
224
|
+
namespaceData: Record<string, any> | null;
|
|
225
|
+
}
|
|
226
|
+
interface UpdateExtendedFieldsResponse$1 {
|
|
227
|
+
/** Updated Report. */
|
|
228
|
+
report?: Report$1;
|
|
229
|
+
}
|
|
230
|
+
interface CommonIdentificationDataNonNullableFields$1 {
|
|
231
|
+
anonymousVisitorId: string;
|
|
232
|
+
memberId: string;
|
|
233
|
+
wixUserId: string;
|
|
234
|
+
appId: string;
|
|
235
|
+
identityType: IdentityType$1;
|
|
236
|
+
}
|
|
237
|
+
interface ReasonNonNullableFields$1 {
|
|
238
|
+
reasonType: Type$1;
|
|
239
|
+
}
|
|
240
|
+
interface ReportNonNullableFields$1 {
|
|
241
|
+
entityName: string;
|
|
242
|
+
entityId: string;
|
|
243
|
+
identity?: CommonIdentificationDataNonNullableFields$1;
|
|
244
|
+
reason?: ReasonNonNullableFields$1;
|
|
245
|
+
}
|
|
246
|
+
interface CreateReportResponseNonNullableFields$1 {
|
|
247
|
+
report?: ReportNonNullableFields$1;
|
|
248
|
+
}
|
|
249
|
+
interface GetReportResponseNonNullableFields$1 {
|
|
250
|
+
report?: ReportNonNullableFields$1;
|
|
251
|
+
}
|
|
252
|
+
interface UpdateReportResponseNonNullableFields$1 {
|
|
253
|
+
report?: ReportNonNullableFields$1;
|
|
254
|
+
}
|
|
255
|
+
interface UpsertReportResponseNonNullableFields$1 {
|
|
256
|
+
report?: ReportNonNullableFields$1;
|
|
257
|
+
}
|
|
258
|
+
interface BulkDeleteReportsByFilterResponseNonNullableFields$1 {
|
|
259
|
+
jobId: string;
|
|
260
|
+
}
|
|
261
|
+
interface ReasonTypeCountNonNullableFields$1 {
|
|
262
|
+
reasonType: Type$1;
|
|
263
|
+
count: number;
|
|
264
|
+
}
|
|
265
|
+
interface CountReportsByReasonTypesResponseNonNullableFields$1 {
|
|
266
|
+
reasonTypeCount: ReasonTypeCountNonNullableFields$1[];
|
|
267
|
+
}
|
|
268
|
+
interface QueryReportsResponseNonNullableFields$1 {
|
|
269
|
+
reports: ReportNonNullableFields$1[];
|
|
270
|
+
}
|
|
271
|
+
interface UpdateExtendedFieldsResponseNonNullableFields$1 {
|
|
272
|
+
report?: ReportNonNullableFields$1;
|
|
273
|
+
}
|
|
274
|
+
|
|
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
|
+
interface Report {
|
|
280
|
+
/**
|
|
281
|
+
* Report ID.
|
|
282
|
+
* @readonly
|
|
283
|
+
*/
|
|
284
|
+
_id?: string | null;
|
|
285
|
+
/** Reported entity name */
|
|
286
|
+
entityName?: string;
|
|
287
|
+
/** Reported entity ID */
|
|
288
|
+
entityId?: string;
|
|
289
|
+
/**
|
|
290
|
+
* Identity of who made a report
|
|
291
|
+
* @readonly
|
|
292
|
+
*/
|
|
293
|
+
identity?: CommonIdentificationData;
|
|
294
|
+
/** Reason for the report */
|
|
295
|
+
reason?: Reason;
|
|
296
|
+
/**
|
|
297
|
+
* Revision number, which increments by 1 each time the Report is updated.
|
|
298
|
+
* @readonly
|
|
299
|
+
*/
|
|
300
|
+
revision?: string | null;
|
|
301
|
+
/**
|
|
302
|
+
* Date and time the Report was created.
|
|
303
|
+
* @readonly
|
|
304
|
+
*/
|
|
305
|
+
_createdDate?: Date | null;
|
|
306
|
+
/**
|
|
307
|
+
* Date and time the Report was last updated.
|
|
308
|
+
* @readonly
|
|
309
|
+
*/
|
|
310
|
+
_updatedDate?: Date | null;
|
|
311
|
+
/** Data Extensions */
|
|
312
|
+
extendedFields?: ExtendedFields;
|
|
313
|
+
}
|
|
314
|
+
interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
315
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
316
|
+
anonymousVisitorId?: string;
|
|
317
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
318
|
+
memberId?: string;
|
|
319
|
+
/**
|
|
320
|
+
* Identity type
|
|
321
|
+
* @readonly
|
|
322
|
+
*/
|
|
323
|
+
identityType?: IdentityType;
|
|
324
|
+
}
|
|
325
|
+
/** @oneof */
|
|
326
|
+
interface CommonIdentificationDataIdOneOf {
|
|
327
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
328
|
+
anonymousVisitorId?: string;
|
|
329
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
330
|
+
memberId?: string;
|
|
331
|
+
}
|
|
332
|
+
declare enum IdentityType {
|
|
333
|
+
UNKNOWN = "UNKNOWN",
|
|
334
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
335
|
+
MEMBER = "MEMBER",
|
|
336
|
+
WIX_USER = "WIX_USER",
|
|
337
|
+
APP = "APP"
|
|
338
|
+
}
|
|
339
|
+
interface Reason {
|
|
340
|
+
/** Type of reason selected for the report */
|
|
341
|
+
reasonType?: Type;
|
|
342
|
+
/** Optional details provided alongside the report */
|
|
343
|
+
details?: string | null;
|
|
344
|
+
}
|
|
345
|
+
declare enum Type {
|
|
346
|
+
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
347
|
+
OTHER = "OTHER",
|
|
348
|
+
SPAM = "SPAM",
|
|
349
|
+
NUDITY_OR_SEXUAL_HARASSMENT = "NUDITY_OR_SEXUAL_HARASSMENT",
|
|
350
|
+
HATE_SPEECH_OR_SYMBOLS = "HATE_SPEECH_OR_SYMBOLS",
|
|
351
|
+
FALSE_INFORMATION = "FALSE_INFORMATION",
|
|
352
|
+
COMMUNITY_GUIDELINES_VIOLATION = "COMMUNITY_GUIDELINES_VIOLATION",
|
|
353
|
+
VIOLENCE = "VIOLENCE",
|
|
354
|
+
SUICIDE_OR_SELF_INJURY = "SUICIDE_OR_SELF_INJURY",
|
|
355
|
+
UNAUTHORIZED_SALES = "UNAUTHORIZED_SALES",
|
|
356
|
+
EATING_DISORDER = "EATING_DISORDER",
|
|
357
|
+
INVOLVES_A_CHILD = "INVOLVES_A_CHILD",
|
|
358
|
+
TERRORISM = "TERRORISM",
|
|
359
|
+
DRUGS = "DRUGS",
|
|
360
|
+
UNLAWFUL = "UNLAWFUL",
|
|
361
|
+
EXPOSING_IDENTIFYING_INFO = "EXPOSING_IDENTIFYING_INFO"
|
|
362
|
+
}
|
|
363
|
+
interface ExtendedFields {
|
|
364
|
+
/**
|
|
365
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
366
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
367
|
+
*
|
|
368
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
369
|
+
*
|
|
370
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
371
|
+
*/
|
|
372
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
373
|
+
}
|
|
374
|
+
interface CreateReportRequest {
|
|
375
|
+
/** Report to be created. */
|
|
376
|
+
report: Report;
|
|
377
|
+
}
|
|
378
|
+
interface CreateReportResponse {
|
|
379
|
+
/** The created Report. */
|
|
380
|
+
report?: Report;
|
|
381
|
+
}
|
|
382
|
+
interface GetReportRequest {
|
|
383
|
+
/** ID of the Report to retrieve. */
|
|
384
|
+
reportId: string;
|
|
385
|
+
}
|
|
386
|
+
interface GetReportResponse {
|
|
387
|
+
/** The requested Report. */
|
|
388
|
+
report?: Report;
|
|
389
|
+
}
|
|
390
|
+
interface UpdateReportRequest {
|
|
391
|
+
/** Report to be updated, may be partial. */
|
|
392
|
+
report: Report;
|
|
393
|
+
}
|
|
394
|
+
interface UpdateReportResponse {
|
|
395
|
+
/** Updated Report. */
|
|
396
|
+
report?: Report;
|
|
397
|
+
}
|
|
398
|
+
interface DeleteReportRequest {
|
|
399
|
+
/** Id of the Report to delete. */
|
|
400
|
+
reportId: string;
|
|
401
|
+
}
|
|
402
|
+
interface DeleteReportResponse {
|
|
403
|
+
}
|
|
404
|
+
interface UpsertReportRequest {
|
|
405
|
+
/** Report to be upserted. */
|
|
406
|
+
report?: Report;
|
|
407
|
+
}
|
|
408
|
+
interface UpsertReportResponse {
|
|
409
|
+
/** Updated or created Report. */
|
|
410
|
+
report?: Report;
|
|
411
|
+
}
|
|
412
|
+
interface BulkDeleteReportsByFilterRequest {
|
|
413
|
+
/** Filter for which reports to delete */
|
|
414
|
+
filter: Record<string, any> | null;
|
|
415
|
+
}
|
|
416
|
+
interface BulkDeleteReportsByFilterResponse {
|
|
417
|
+
/** Reference to async job ID */
|
|
418
|
+
jobId?: string;
|
|
419
|
+
}
|
|
420
|
+
interface CountReportsByReasonTypesRequest {
|
|
421
|
+
/** Entity name */
|
|
422
|
+
entityName: string;
|
|
423
|
+
/** ID of the entity. */
|
|
424
|
+
entityId: string;
|
|
425
|
+
}
|
|
426
|
+
interface CountReportsByReasonTypesResponse {
|
|
427
|
+
/** The list of entity reports grouped by report reason. */
|
|
428
|
+
reasonTypeCount?: ReasonTypeCount[];
|
|
429
|
+
}
|
|
430
|
+
interface ReasonTypeCount {
|
|
431
|
+
/** Type of reason selected for the report */
|
|
432
|
+
reasonType?: Type;
|
|
433
|
+
/** Report count */
|
|
434
|
+
count?: number;
|
|
435
|
+
}
|
|
436
|
+
interface QueryReportsRequest {
|
|
437
|
+
/** WQL expression. */
|
|
438
|
+
query?: CursorQuery;
|
|
439
|
+
}
|
|
440
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
441
|
+
/** Cursor paging options */
|
|
442
|
+
cursorPaging?: CursorPaging;
|
|
443
|
+
/** Filter object. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information. */
|
|
444
|
+
filter?: Record<string, any> | null;
|
|
445
|
+
/** Sorting options */
|
|
446
|
+
sort?: Sorting[];
|
|
447
|
+
}
|
|
448
|
+
/** @oneof */
|
|
449
|
+
interface CursorQueryPagingMethodOneOf {
|
|
450
|
+
/** Cursor paging options */
|
|
451
|
+
cursorPaging?: CursorPaging;
|
|
452
|
+
}
|
|
453
|
+
interface Sorting {
|
|
454
|
+
/** Name of the field to sort by. */
|
|
455
|
+
fieldName?: string;
|
|
456
|
+
/** Sort order. */
|
|
457
|
+
order?: SortOrder;
|
|
458
|
+
}
|
|
459
|
+
declare enum SortOrder {
|
|
460
|
+
ASC = "ASC",
|
|
461
|
+
DESC = "DESC"
|
|
462
|
+
}
|
|
463
|
+
interface CursorPaging {
|
|
464
|
+
/** Maximum number of items to return in the results. */
|
|
465
|
+
limit?: number | null;
|
|
466
|
+
/**
|
|
467
|
+
* Pointer to the next or previous page in the list of results.
|
|
468
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
469
|
+
*/
|
|
470
|
+
cursor?: string | null;
|
|
471
|
+
}
|
|
472
|
+
interface QueryReportsResponse {
|
|
473
|
+
/** List of Reports. */
|
|
474
|
+
reports?: Report[];
|
|
475
|
+
/** Paging metadata */
|
|
476
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
477
|
+
}
|
|
478
|
+
interface CursorPagingMetadata {
|
|
479
|
+
/** Number of items returned in the response. */
|
|
480
|
+
count?: number | null;
|
|
481
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
482
|
+
cursors?: Cursors;
|
|
483
|
+
/** Whether there are more pages to retrieve following the current page. */
|
|
484
|
+
hasNext?: boolean | null;
|
|
485
|
+
}
|
|
486
|
+
interface Cursors {
|
|
487
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
488
|
+
next?: string | null;
|
|
489
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
490
|
+
prev?: string | null;
|
|
491
|
+
}
|
|
492
|
+
interface UpdateExtendedFieldsRequest {
|
|
493
|
+
/** ID of the entity to update. */
|
|
494
|
+
_id: string;
|
|
495
|
+
/** Identifier for the app whose extended fields are being updated. */
|
|
496
|
+
namespace: string;
|
|
497
|
+
/** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
|
|
498
|
+
namespaceData: Record<string, any> | null;
|
|
499
|
+
}
|
|
500
|
+
interface UpdateExtendedFieldsResponse {
|
|
501
|
+
/** Updated Report. */
|
|
502
|
+
report?: Report;
|
|
503
|
+
}
|
|
504
|
+
interface CommonIdentificationDataNonNullableFields {
|
|
505
|
+
anonymousVisitorId: string;
|
|
506
|
+
memberId: string;
|
|
507
|
+
wixUserId: string;
|
|
508
|
+
appId: string;
|
|
509
|
+
identityType: IdentityType;
|
|
510
|
+
}
|
|
511
|
+
interface ReasonNonNullableFields {
|
|
512
|
+
reasonType: Type;
|
|
513
|
+
}
|
|
514
|
+
interface ReportNonNullableFields {
|
|
515
|
+
entityName: string;
|
|
516
|
+
entityId: string;
|
|
517
|
+
identity?: CommonIdentificationDataNonNullableFields;
|
|
518
|
+
reason?: ReasonNonNullableFields;
|
|
519
|
+
}
|
|
520
|
+
interface CreateReportResponseNonNullableFields {
|
|
521
|
+
report?: ReportNonNullableFields;
|
|
522
|
+
}
|
|
523
|
+
interface GetReportResponseNonNullableFields {
|
|
524
|
+
report?: ReportNonNullableFields;
|
|
525
|
+
}
|
|
526
|
+
interface UpdateReportResponseNonNullableFields {
|
|
527
|
+
report?: ReportNonNullableFields;
|
|
528
|
+
}
|
|
529
|
+
interface UpsertReportResponseNonNullableFields {
|
|
530
|
+
report?: ReportNonNullableFields;
|
|
531
|
+
}
|
|
532
|
+
interface BulkDeleteReportsByFilterResponseNonNullableFields {
|
|
533
|
+
jobId: string;
|
|
534
|
+
}
|
|
535
|
+
interface ReasonTypeCountNonNullableFields {
|
|
536
|
+
reasonType: Type;
|
|
537
|
+
count: number;
|
|
538
|
+
}
|
|
539
|
+
interface CountReportsByReasonTypesResponseNonNullableFields {
|
|
540
|
+
reasonTypeCount: ReasonTypeCountNonNullableFields[];
|
|
541
|
+
}
|
|
542
|
+
interface QueryReportsResponseNonNullableFields {
|
|
543
|
+
reports: ReportNonNullableFields[];
|
|
544
|
+
}
|
|
545
|
+
interface UpdateExtendedFieldsResponseNonNullableFields {
|
|
546
|
+
report?: ReportNonNullableFields;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
550
|
+
getUrl: (context: any) => string;
|
|
551
|
+
httpMethod: K;
|
|
552
|
+
path: string;
|
|
553
|
+
pathParams: M;
|
|
554
|
+
__requestType: T;
|
|
555
|
+
__originalRequestType: S;
|
|
556
|
+
__responseType: Q;
|
|
557
|
+
__originalResponseType: R;
|
|
558
|
+
};
|
|
559
|
+
declare function createReport(): __PublicMethodMetaInfo<'POST', {}, CreateReportRequest, CreateReportRequest$1, CreateReportResponse & CreateReportResponseNonNullableFields, CreateReportResponse$1 & CreateReportResponseNonNullableFields$1>;
|
|
560
|
+
declare function getReport(): __PublicMethodMetaInfo<'GET', {
|
|
561
|
+
reportId: string;
|
|
562
|
+
}, GetReportRequest, GetReportRequest$1, GetReportResponse & GetReportResponseNonNullableFields, GetReportResponse$1 & GetReportResponseNonNullableFields$1>;
|
|
563
|
+
declare function updateReport(): __PublicMethodMetaInfo<'PATCH', {
|
|
564
|
+
reportId: string;
|
|
565
|
+
}, UpdateReportRequest, UpdateReportRequest$1, UpdateReportResponse & UpdateReportResponseNonNullableFields, UpdateReportResponse$1 & UpdateReportResponseNonNullableFields$1>;
|
|
566
|
+
declare function deleteReport(): __PublicMethodMetaInfo<'DELETE', {
|
|
567
|
+
reportId: string;
|
|
568
|
+
}, DeleteReportRequest, DeleteReportRequest$1, DeleteReportResponse, DeleteReportResponse$1>;
|
|
569
|
+
declare function upsertReport(): __PublicMethodMetaInfo<'POST', {
|
|
570
|
+
reportEntityName: string;
|
|
571
|
+
reportEntityId: string;
|
|
572
|
+
}, UpsertReportRequest, UpsertReportRequest$1, UpsertReportResponse & UpsertReportResponseNonNullableFields, UpsertReportResponse$1 & UpsertReportResponseNonNullableFields$1>;
|
|
573
|
+
declare function bulkDeleteReportsByFilter(): __PublicMethodMetaInfo<'POST', {}, BulkDeleteReportsByFilterRequest, BulkDeleteReportsByFilterRequest$1, BulkDeleteReportsByFilterResponse & BulkDeleteReportsByFilterResponseNonNullableFields, BulkDeleteReportsByFilterResponse$1 & BulkDeleteReportsByFilterResponseNonNullableFields$1>;
|
|
574
|
+
declare function countReportsByReasonTypes(): __PublicMethodMetaInfo<'POST', {}, CountReportsByReasonTypesRequest, CountReportsByReasonTypesRequest$1, CountReportsByReasonTypesResponse & CountReportsByReasonTypesResponseNonNullableFields, CountReportsByReasonTypesResponse$1 & CountReportsByReasonTypesResponseNonNullableFields$1>;
|
|
575
|
+
declare function queryReports(): __PublicMethodMetaInfo<'GET', {}, QueryReportsRequest, QueryReportsRequest$1, QueryReportsResponse & QueryReportsResponseNonNullableFields, QueryReportsResponse$1 & QueryReportsResponseNonNullableFields$1>;
|
|
576
|
+
declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
|
|
577
|
+
id: string;
|
|
578
|
+
}, UpdateExtendedFieldsRequest, UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsResponse & UpdateExtendedFieldsResponseNonNullableFields, UpdateExtendedFieldsResponse$1 & UpdateExtendedFieldsResponseNonNullableFields$1>;
|
|
579
|
+
|
|
580
|
+
type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
|
|
581
|
+
declare const meta_bulkDeleteReportsByFilter: typeof bulkDeleteReportsByFilter;
|
|
582
|
+
declare const meta_countReportsByReasonTypes: typeof countReportsByReasonTypes;
|
|
583
|
+
declare const meta_createReport: typeof createReport;
|
|
584
|
+
declare const meta_deleteReport: typeof deleteReport;
|
|
585
|
+
declare const meta_getReport: typeof getReport;
|
|
586
|
+
declare const meta_queryReports: typeof queryReports;
|
|
587
|
+
declare const meta_updateExtendedFields: typeof updateExtendedFields;
|
|
588
|
+
declare const meta_updateReport: typeof updateReport;
|
|
589
|
+
declare const meta_upsertReport: typeof upsertReport;
|
|
590
|
+
declare namespace meta {
|
|
591
|
+
export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_bulkDeleteReportsByFilter as bulkDeleteReportsByFilter, meta_countReportsByReasonTypes as countReportsByReasonTypes, meta_createReport as createReport, meta_deleteReport as deleteReport, meta_getReport as getReport, meta_queryReports as queryReports, meta_updateExtendedFields as updateExtendedFields, meta_updateReport as updateReport, meta_upsertReport as upsertReport };
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export { meta as reports };
|