useresponse 0.0.2 → 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.
|
@@ -23,22 +23,22 @@ export interface Avatar {
|
|
|
23
23
|
}
|
|
24
24
|
export interface BanUserParams {
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Duration of the ban in days (ignored if permanent)
|
|
27
27
|
* @example 30
|
|
28
28
|
*/
|
|
29
29
|
ban_duration_days?: number;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Reason for banning the user
|
|
32
32
|
* @example Fraudulent activity detected
|
|
33
33
|
*/
|
|
34
34
|
ban_reason?: string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Whether to delete user's related objects (tickets, comments, etc.)
|
|
37
37
|
* @example true
|
|
38
38
|
*/
|
|
39
39
|
delete_related_objects?: boolean;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* If true, the ban is permanent
|
|
42
42
|
* @example false
|
|
43
43
|
*/
|
|
44
44
|
permanent?: boolean;
|
|
@@ -77,7 +77,7 @@ export interface ChangelogAction {
|
|
|
77
77
|
}
|
|
78
78
|
export interface ChangePasswordParams {
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* New valid password value
|
|
81
81
|
* @example securestring12345
|
|
82
82
|
*/
|
|
83
83
|
password: string;
|
|
@@ -136,30 +136,30 @@ export interface CommentActionResponse {
|
|
|
136
136
|
}
|
|
137
137
|
export interface CommentAddParams {
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
139
|
+
* The content of a new object.
|
|
140
140
|
* Supports BBcode, but HTML tags are not allowed
|
|
141
141
|
* ##### Max content length: 12000 chars
|
|
142
142
|
* @example My first comment
|
|
143
143
|
*/
|
|
144
144
|
content: string;
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* If 1 specified, comment will be saved as private note. To add private note you should have agent’s or admin’s privileges
|
|
147
147
|
* ##### Valid values: 0, 1
|
|
148
148
|
* @example 0
|
|
149
149
|
*/
|
|
150
150
|
is_private?: number;
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
152
|
+
* Valid object(ticket/topic) id
|
|
153
153
|
* @example 38
|
|
154
154
|
*/
|
|
155
155
|
object_id?: number;
|
|
156
156
|
/**
|
|
157
|
-
*
|
|
157
|
+
* Valid comment id to make reply to comment
|
|
158
158
|
* @example 10
|
|
159
159
|
*/
|
|
160
160
|
reply_to?: number;
|
|
161
161
|
/**
|
|
162
|
-
*
|
|
162
|
+
* API would accept “content” parameter in HTML format. Overrides “Accept HTML Content” global setting for one request
|
|
163
163
|
* ##### Valid values: 0, 1
|
|
164
164
|
* @example 0
|
|
165
165
|
*/
|
|
@@ -167,14 +167,14 @@ export interface CommentAddParams {
|
|
|
167
167
|
}
|
|
168
168
|
export interface CommentEditParams {
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* The content of a new object.
|
|
171
171
|
* Supports BBcode, but HTML tags are not allowed
|
|
172
172
|
* ##### Max content length: 12000 chars
|
|
173
173
|
* @example My first comment
|
|
174
174
|
*/
|
|
175
175
|
content?: string;
|
|
176
176
|
/**
|
|
177
|
-
*
|
|
177
|
+
* API would accept “content” parameter in HTML format. Overrides “Accept HTML Content” global setting for one request
|
|
178
178
|
* ##### Valid values: 0, 1
|
|
179
179
|
* @example 0
|
|
180
180
|
*/
|
|
@@ -191,28 +191,28 @@ export interface CreateObjectResponse {
|
|
|
191
191
|
}
|
|
192
192
|
export interface CreateUserParams {
|
|
193
193
|
/**
|
|
194
|
-
*
|
|
194
|
+
* New valid “email” value
|
|
195
195
|
* @example test@test.com
|
|
196
196
|
*/
|
|
197
197
|
email: string;
|
|
198
198
|
/**
|
|
199
|
-
*
|
|
199
|
+
* Not empty string containing user’s name
|
|
200
200
|
* @example John Edwards
|
|
201
201
|
*/
|
|
202
202
|
full_name: string;
|
|
203
203
|
/**
|
|
204
|
-
*
|
|
204
|
+
* User’s password
|
|
205
205
|
* @example securestring12345
|
|
206
206
|
*/
|
|
207
207
|
password?: string;
|
|
208
208
|
/**
|
|
209
|
-
*
|
|
209
|
+
* Specify the name for the custom field
|
|
210
210
|
* @example Support
|
|
211
211
|
*/
|
|
212
212
|
property_1?: string;
|
|
213
213
|
tags?: string;
|
|
214
214
|
/**
|
|
215
|
-
*
|
|
215
|
+
* Valid team numeric identifier
|
|
216
216
|
* @example 1
|
|
217
217
|
*/
|
|
218
218
|
team_id?: number;
|
|
@@ -239,7 +239,7 @@ export interface CustomFieldValue {
|
|
|
239
239
|
}
|
|
240
240
|
export interface DeclineParams {
|
|
241
241
|
/**
|
|
242
|
-
*
|
|
242
|
+
* In case a comment or topic is declined you can specify decline reason
|
|
243
243
|
* @example Too little information provided
|
|
244
244
|
*/
|
|
245
245
|
reason?: string;
|
|
@@ -249,28 +249,28 @@ export interface EditObjectResponse {
|
|
|
249
249
|
}
|
|
250
250
|
export interface EditUserParams {
|
|
251
251
|
/**
|
|
252
|
-
*
|
|
252
|
+
* New valid “email” value.
|
|
253
253
|
* @example test@test.com
|
|
254
254
|
*/
|
|
255
255
|
email?: string;
|
|
256
256
|
/**
|
|
257
|
-
*
|
|
257
|
+
* Not empty string containing user’s name.
|
|
258
258
|
* @example John Edwards
|
|
259
259
|
*/
|
|
260
260
|
full_name?: string;
|
|
261
261
|
/**
|
|
262
|
-
*
|
|
262
|
+
* User phone number.
|
|
263
263
|
* @example +447777444445
|
|
264
264
|
*/
|
|
265
265
|
phone?: string;
|
|
266
266
|
/**
|
|
267
|
-
*
|
|
267
|
+
* Specify the name for the custom field
|
|
268
268
|
* @example Support
|
|
269
269
|
*/
|
|
270
270
|
property_1?: string;
|
|
271
271
|
tags?: string;
|
|
272
272
|
/**
|
|
273
|
-
*
|
|
273
|
+
* Valid team numeric identifier
|
|
274
274
|
* @example 1
|
|
275
275
|
*/
|
|
276
276
|
team_id?: number;
|
|
@@ -320,14 +320,14 @@ export interface LoginParams {
|
|
|
320
320
|
}
|
|
321
321
|
export interface ManageUserNoteParams {
|
|
322
322
|
/**
|
|
323
|
-
*
|
|
323
|
+
* The content of a new comment.
|
|
324
324
|
* Supports BBcode, but HTML tags are not allowed
|
|
325
325
|
* ##### Max content length: 12000 chars
|
|
326
326
|
* @example My first note
|
|
327
327
|
*/
|
|
328
328
|
content: string;
|
|
329
329
|
/**
|
|
330
|
-
*
|
|
330
|
+
* Not empty string containing user’s name
|
|
331
331
|
* @example 2017-10-13 18:29:00
|
|
332
332
|
*/
|
|
333
333
|
remind_at?: string;
|
|
@@ -387,16 +387,16 @@ export interface Object {
|
|
|
387
387
|
votes?: Votes;
|
|
388
388
|
}
|
|
389
389
|
export interface ObjectAddParams {
|
|
390
|
-
/**
|
|
390
|
+
/** Array of attachments */
|
|
391
391
|
attachments?: NewAttachment[];
|
|
392
392
|
/**
|
|
393
|
-
*
|
|
393
|
+
* Valid category id to assign new object to
|
|
394
394
|
* Value 0 means no category
|
|
395
395
|
* @example 0
|
|
396
396
|
*/
|
|
397
397
|
category_id?: number;
|
|
398
398
|
/**
|
|
399
|
-
*
|
|
399
|
+
* The content of a new object.
|
|
400
400
|
* Supports BBcode, but HTML tags are not allowed
|
|
401
401
|
* ##### Max content length: 12000 chars
|
|
402
402
|
* ##### Required for feedback, announcements
|
|
@@ -404,80 +404,80 @@ export interface ObjectAddParams {
|
|
|
404
404
|
*/
|
|
405
405
|
content?: string;
|
|
406
406
|
/**
|
|
407
|
-
*
|
|
407
|
+
* Allows to use object expiration date
|
|
408
408
|
* Value never means that announcement has no expiration date
|
|
409
409
|
* ##### Valid only for announcements. Valid values: never, on_date
|
|
410
410
|
* @example never
|
|
411
411
|
*/
|
|
412
412
|
expire_select?: string;
|
|
413
413
|
/**
|
|
414
|
-
*
|
|
414
|
+
* Valid only for announcements and date should be in format dd.mm.yyyy
|
|
415
415
|
* ##### required when expire_select parameter value is set to on_date
|
|
416
416
|
* @example 15.06.2020
|
|
417
417
|
*/
|
|
418
418
|
expires_at?: string;
|
|
419
419
|
/**
|
|
420
|
-
*
|
|
420
|
+
* Allows to set object author manually
|
|
421
421
|
* Requires appropriate privilege
|
|
422
422
|
* Valid user id or any email address
|
|
423
423
|
* @example support@useresponse.com
|
|
424
424
|
*/
|
|
425
425
|
force_author?: string;
|
|
426
426
|
/**
|
|
427
|
-
*
|
|
427
|
+
* Allows to define object privacy
|
|
428
428
|
* ##### Only for feedback and announcements
|
|
429
429
|
* ##### Valid values: 0, 1
|
|
430
430
|
* @example 0
|
|
431
431
|
*/
|
|
432
432
|
is_private?: number;
|
|
433
433
|
/**
|
|
434
|
-
*
|
|
434
|
+
* Valid object type
|
|
435
435
|
* @example ticket
|
|
436
436
|
* @enum {string}
|
|
437
437
|
*/
|
|
438
438
|
object_type: 'idea' | 'problem' | 'question' | 'ticket';
|
|
439
439
|
/**
|
|
440
|
-
*
|
|
440
|
+
* Object belongs to a logical group
|
|
441
441
|
* @example helpdesk
|
|
442
442
|
* @enum {string}
|
|
443
443
|
*/
|
|
444
444
|
ownership: 'feedback' | 'helpdesk';
|
|
445
445
|
/**
|
|
446
|
-
*
|
|
446
|
+
* Specify the name for the custom field
|
|
447
447
|
* @example Support
|
|
448
448
|
*/
|
|
449
449
|
property_1?: string;
|
|
450
450
|
/**
|
|
451
|
-
*
|
|
451
|
+
* Valid agent or administrator user id
|
|
452
452
|
* Value 0 means nobody
|
|
453
453
|
* @example 10
|
|
454
454
|
*/
|
|
455
455
|
responsible_id?: number;
|
|
456
|
-
/**
|
|
456
|
+
/** Array of tags */
|
|
457
457
|
tags?: string[];
|
|
458
458
|
/**
|
|
459
|
-
*
|
|
459
|
+
* Valid team numeric identifier
|
|
460
460
|
* @example 5
|
|
461
461
|
*/
|
|
462
462
|
team_id?: number;
|
|
463
463
|
/**
|
|
464
|
-
*
|
|
464
|
+
* The title of a new object
|
|
465
465
|
* ##### Max title length: 100 chars
|
|
466
466
|
* @example My first helpdesk record
|
|
467
467
|
*/
|
|
468
468
|
title: string;
|
|
469
469
|
}
|
|
470
470
|
export interface ObjectEditParams {
|
|
471
|
-
/**
|
|
471
|
+
/** Array of attachments */
|
|
472
472
|
attachments?: NewAttachment[];
|
|
473
473
|
/**
|
|
474
|
-
*
|
|
474
|
+
* Valid category id to assign new object to
|
|
475
475
|
* Value 0 means no category
|
|
476
476
|
* @example 0
|
|
477
477
|
*/
|
|
478
478
|
category_id?: number;
|
|
479
479
|
/**
|
|
480
|
-
*
|
|
480
|
+
* The content of a new object.
|
|
481
481
|
* Supports BBcode, but HTML tags are not allowed
|
|
482
482
|
* ##### Max content length: 12000 chars
|
|
483
483
|
* ##### Required for feedback, announcements
|
|
@@ -485,62 +485,62 @@ export interface ObjectEditParams {
|
|
|
485
485
|
*/
|
|
486
486
|
content?: string;
|
|
487
487
|
/**
|
|
488
|
-
*
|
|
488
|
+
* Allows to use object expiration date
|
|
489
489
|
* Value never means that announcement has no expiration date
|
|
490
490
|
* ##### Valid only for announcements. Valid values: never, on_date
|
|
491
491
|
* @example never
|
|
492
492
|
*/
|
|
493
493
|
expire_select?: string;
|
|
494
494
|
/**
|
|
495
|
-
*
|
|
495
|
+
* Valid only for announcements and date should be in format dd.mm.yyyy
|
|
496
496
|
* ##### required when expire_select parameter value is set to on_date
|
|
497
497
|
* @example 15.06.2020
|
|
498
498
|
*/
|
|
499
499
|
expires_at?: string;
|
|
500
500
|
/**
|
|
501
|
-
*
|
|
501
|
+
* Allows to set object author manually
|
|
502
502
|
* Requires appropriate privilege
|
|
503
503
|
* Valid user id or any email address
|
|
504
504
|
* @example support@useresponse.com
|
|
505
505
|
*/
|
|
506
506
|
force_author?: string;
|
|
507
507
|
/**
|
|
508
|
-
*
|
|
508
|
+
* Allows to define object privacy
|
|
509
509
|
* ##### Only for feedback and announcements
|
|
510
510
|
* ##### Valid values: 0, 1
|
|
511
511
|
* @example 0
|
|
512
512
|
*/
|
|
513
513
|
is_private?: number;
|
|
514
514
|
/**
|
|
515
|
-
*
|
|
515
|
+
* Valid object type
|
|
516
516
|
* @example ticket
|
|
517
517
|
*/
|
|
518
518
|
object_type?: string;
|
|
519
519
|
/**
|
|
520
|
-
*
|
|
520
|
+
* Specify the name for the custom field
|
|
521
521
|
* @example Support
|
|
522
522
|
*/
|
|
523
523
|
property_1?: string;
|
|
524
524
|
/**
|
|
525
|
-
*
|
|
525
|
+
* Valid agent or administrator user id
|
|
526
526
|
* Value 0 means nobody
|
|
527
527
|
* @example 10
|
|
528
528
|
*/
|
|
529
529
|
responsible_id?: number;
|
|
530
530
|
/**
|
|
531
|
-
*
|
|
531
|
+
* Valid status id. Id can be taken from statuses.json
|
|
532
532
|
* @example 1
|
|
533
533
|
*/
|
|
534
534
|
status_id?: number;
|
|
535
|
-
/**
|
|
535
|
+
/** Array of tags */
|
|
536
536
|
tags?: string[];
|
|
537
537
|
/**
|
|
538
|
-
*
|
|
538
|
+
* Valid team numeric identifier
|
|
539
539
|
* @example 5
|
|
540
540
|
*/
|
|
541
541
|
team_id?: number;
|
|
542
542
|
/**
|
|
543
|
-
*
|
|
543
|
+
* The title of a new object
|
|
544
544
|
* ##### Max title length: 100 chars
|
|
545
545
|
* @example My first helpdesk record
|
|
546
546
|
*/
|
|
@@ -701,7 +701,7 @@ interface Link {
|
|
|
701
701
|
}
|
|
702
702
|
interface NewAttachment {
|
|
703
703
|
/**
|
|
704
|
-
*
|
|
704
|
+
* Should be in base64 format
|
|
705
705
|
* @example iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAA.....==
|
|
706
706
|
*/
|
|
707
707
|
body?: string;
|
package/package.json
CHANGED