useresponse 0.0.2 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,22 +23,22 @@ export interface Avatar {
23
23
  }
24
24
  export interface BanUserParams {
25
25
  /**
26
- * @description Duration of the ban in days (ignored if permanent)
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
- * @description Reason for banning the user
31
+ * Reason for banning the user
32
32
  * @example Fraudulent activity detected
33
33
  */
34
34
  ban_reason?: string;
35
35
  /**
36
- * @description Whether to delete user's related objects (tickets, comments, etc.)
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
- * @description If true, the ban is permanent
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
- * @description New valid password value
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
- * @description The content of a new object.
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
- * @description If 1 specified, comment will be saved as private note. To add private note you should have agent’s or admin’s privileges
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
- * @description Valid object(ticket/topic) id
152
+ * Valid object(ticket/topic) id
153
153
  * @example 38
154
154
  */
155
155
  object_id?: number;
156
156
  /**
157
- * @description Valid comment id to make reply to comment
157
+ * Valid comment id to make reply to comment
158
158
  * @example 10
159
159
  */
160
160
  reply_to?: number;
161
161
  /**
162
- * @description API would accept “content” parameter in HTML format. Overrides “Accept HTML Content” global setting for one request
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
- * @description The content of a new object.
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
- * @description API would accept “content” parameter in HTML format. Overrides “Accept HTML Content” global setting for one request
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
- * @description New valid “email” value
194
+ * New valid “email” value
195
195
  * @example test@test.com
196
196
  */
197
197
  email: string;
198
198
  /**
199
- * @description Not empty string containing user’s name
199
+ * Not empty string containing user’s name
200
200
  * @example John Edwards
201
201
  */
202
202
  full_name: string;
203
203
  /**
204
- * @description User’s password
204
+ * User’s password
205
205
  * @example securestring12345
206
206
  */
207
207
  password?: string;
208
208
  /**
209
- * @description Specify the name for the custom field
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
- * @description Valid team numeric identifier
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
- * @description In case a comment or topic is declined you can specify decline reason
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
- * @description New valid “email” value.
252
+ * New valid “email” value.
253
253
  * @example test@test.com
254
254
  */
255
255
  email?: string;
256
256
  /**
257
- * @description Not empty string containing user’s name.
257
+ * Not empty string containing user’s name.
258
258
  * @example John Edwards
259
259
  */
260
260
  full_name?: string;
261
261
  /**
262
- * @description User phone number.
262
+ * User phone number.
263
263
  * @example +447777444445
264
264
  */
265
265
  phone?: string;
266
266
  /**
267
- * @description Specify the name for the custom field
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
- * @description Valid team numeric identifier
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
- * @description The content of a new comment.
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
- * @description Not empty string containing user’s name
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
- /** @description Array of attachments */
390
+ /** Array of attachments */
391
391
  attachments?: NewAttachment[];
392
392
  /**
393
- * @description Valid category id to assign new object to
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
- * @description The content of a new object.
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
- * @description Allows to use object expiration date
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
- * @description Valid only for announcements and date should be in format dd.mm.yyyy
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
- * @description Allows to set object author manually
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
- * @description Allows to define object privacy
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
- * @description Valid object type
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
- * @description Object belongs to a logical group
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
- * @description Specify the name for the custom field
446
+ * Specify the name for the custom field
447
447
  * @example Support
448
448
  */
449
449
  property_1?: string;
450
450
  /**
451
- * @description Valid agent or administrator user id
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
- /** @description Array of tags */
456
+ /** Array of tags */
457
457
  tags?: string[];
458
458
  /**
459
- * @description Valid team numeric identifier
459
+ * Valid team numeric identifier
460
460
  * @example 5
461
461
  */
462
462
  team_id?: number;
463
463
  /**
464
- * @description The title of a new object
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
- /** @description Array of attachments */
471
+ /** Array of attachments */
472
472
  attachments?: NewAttachment[];
473
473
  /**
474
- * @description Valid category id to assign new object to
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
- * @description The content of a new object.
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
- * @description Allows to use object expiration date
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
- * @description Valid only for announcements and date should be in format dd.mm.yyyy
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
- * @description Allows to set object author manually
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
- * @description Allows to define object privacy
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
- * @description Valid object type
515
+ * Valid object type
516
516
  * @example ticket
517
517
  */
518
518
  object_type?: string;
519
519
  /**
520
- * @description Specify the name for the custom field
520
+ * Specify the name for the custom field
521
521
  * @example Support
522
522
  */
523
523
  property_1?: string;
524
524
  /**
525
- * @description Valid agent or administrator user id
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
- * @description Valid status id. Id can be taken from statuses.json
531
+ * Valid status id. Id can be taken from statuses.json
532
532
  * @example 1
533
533
  */
534
534
  status_id?: number;
535
- /** @description Array of tags */
535
+ /** Array of tags */
536
536
  tags?: string[];
537
537
  /**
538
- * @description Valid team numeric identifier
538
+ * Valid team numeric identifier
539
539
  * @example 5
540
540
  */
541
541
  team_id?: number;
542
542
  /**
543
- * @description The title of a new object
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
- * @description Should be in base64 format
704
+ * Should be in base64 format
705
705
  * @example iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAA.....==
706
706
  */
707
707
  body?: string;
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "author": "Florian Imdahl <git@ffflorian.de>",
3
3
  "dependencies": {
4
- "@ffflorian/api-client": "2.5.1"
4
+ "@ffflorian/api-client": "2.5.3"
5
5
  },
6
6
  "description": "A useresponse API client",
7
7
  "devDependencies": {
8
- "@types/node": "~24",
8
+ "@types/node": "~26",
9
9
  "rimraf": "6.1.3",
10
- "typedoc": "0.28.19",
11
- "typescript": "6.0.3",
12
- "vitest": "4.1.5"
10
+ "typedoc": "0.28.20",
11
+ "typescript": "7.0.2",
12
+ "vite": "8.2.2",
13
+ "vitest": "5.0.0"
13
14
  },
14
15
  "engines": {
15
16
  "node": ">= 21"
@@ -38,5 +39,5 @@
38
39
  "dist": "yarn clean && yarn build",
39
40
  "test": "vitest"
40
41
  },
41
- "version": "0.0.2"
42
+ "version": "1.0.1"
42
43
  }