@emilgroup/task-sdk-node 1.7.1-beta.4 → 1.7.1-beta.41
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/.openapi-generator/FILES +8 -0
- package/README.md +2 -2
- package/api/assignees-api.ts +4 -2
- package/api/categories-api.ts +20 -10
- package/api/filters-api.ts +153 -34
- package/api/hub-spot-api.ts +4 -2
- package/api/reminders-api.ts +28 -14
- package/api/statuses-api.ts +20 -10
- package/api/task-client-api.ts +329 -42
- package/api/tasks-api.ts +281 -18
- package/common.ts +3 -2
- package/dist/api/assignees-api.d.ts +1 -1
- package/dist/api/assignees-api.js +4 -3
- package/dist/api/categories-api.d.ts +5 -5
- package/dist/api/categories-api.js +29 -18
- package/dist/api/filters-api.d.ts +86 -29
- package/dist/api/filters-api.js +147 -38
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/hub-spot-api.d.ts +1 -1
- package/dist/api/hub-spot-api.js +7 -4
- package/dist/api/reminders-api.d.ts +7 -7
- package/dist/api/reminders-api.js +40 -25
- package/dist/api/statuses-api.d.ts +5 -5
- package/dist/api/statuses-api.js +29 -18
- package/dist/api/task-client-api.d.ts +165 -25
- package/dist/api/task-client-api.js +313 -67
- package/dist/api/tasks-api.d.ts +153 -13
- package/dist/api/tasks-api.js +244 -24
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/models/add-secondary-link-response-class.d.ts +25 -0
- package/dist/models/add-secondary-link-response-class.js +15 -0
- package/dist/models/create-task-request-dto.d.ts +13 -0
- package/dist/models/dry-run-filter-clause-class.d.ts +42 -0
- package/dist/models/dry-run-filter-clause-class.js +15 -0
- package/dist/models/dry-run-filter-request-dto.d.ts +30 -0
- package/dist/models/dry-run-filter-request-dto.js +15 -0
- package/dist/models/dry-run-filter-response-class.d.ts +37 -0
- package/dist/models/dry-run-filter-response-class.js +15 -0
- package/dist/models/entity-ref-class.d.ts +34 -0
- package/dist/models/entity-ref-class.js +19 -0
- package/dist/models/entity-ref-dto.d.ts +34 -0
- package/dist/models/entity-ref-dto.js +19 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/models/patch-task-request-dto.d.ts +12 -0
- package/dist/models/remove-secondary-link-response-class.d.ts +25 -0
- package/dist/models/remove-secondary-link-response-class.js +15 -0
- package/dist/models/secondary-link-class.d.ts +31 -0
- package/dist/models/secondary-link-class.js +15 -0
- package/dist/models/task-class.d.ts +7 -0
- package/models/add-secondary-link-response-class.ts +31 -0
- package/models/create-task-request-dto.ts +13 -0
- package/models/dry-run-filter-clause-class.ts +48 -0
- package/models/dry-run-filter-request-dto.ts +36 -0
- package/models/dry-run-filter-response-class.ts +43 -0
- package/models/entity-ref-class.ts +43 -0
- package/models/entity-ref-dto.ts +43 -0
- package/models/index.ts +8 -0
- package/models/patch-task-request-dto.ts +12 -0
- package/models/remove-secondary-link-response-class.ts +31 -0
- package/models/secondary-link-class.ts +37 -0
- package/models/task-class.ts +7 -0
- package/package.json +2 -2
package/api/task-client-api.ts
CHANGED
|
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { AddSecondaryLinkResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
24
26
|
import { CreateCategoryRequestDto } from '../models';
|
|
25
27
|
// @ts-ignore
|
|
26
28
|
import { CreateCategoryResponseClass } from '../models';
|
|
@@ -37,6 +39,8 @@ import { CreateTaskRequestDto } from '../models';
|
|
|
37
39
|
// @ts-ignore
|
|
38
40
|
import { CreateTaskResponseClass } from '../models';
|
|
39
41
|
// @ts-ignore
|
|
42
|
+
import { EntityRefDto } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
40
44
|
import { GetCategoryResponseClass } from '../models';
|
|
41
45
|
// @ts-ignore
|
|
42
46
|
import { GetStatusResponseClass } from '../models';
|
|
@@ -62,6 +66,8 @@ import { PatchStatusResponseClass } from '../models';
|
|
|
62
66
|
import { PatchTaskRequestDto } from '../models';
|
|
63
67
|
// @ts-ignore
|
|
64
68
|
import { PatchTaskResponseClass } from '../models';
|
|
69
|
+
// @ts-ignore
|
|
70
|
+
import { RemoveSecondaryLinkResponseClass } from '../models';
|
|
65
71
|
// URLSearchParams not necessarily used
|
|
66
72
|
// @ts-ignore
|
|
67
73
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -72,6 +78,59 @@ const FormData = require('form-data');
|
|
|
72
78
|
*/
|
|
73
79
|
export const TaskClientApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
74
80
|
return {
|
|
81
|
+
/**
|
|
82
|
+
* Adds a secondary link from a task to a record in another service, for example an email thread. The record must exist. Adding a record that is already linked returns the task unchanged. **Required Permissions** \"task-management.tasks.update\"
|
|
83
|
+
* @summary Create the task secondary link
|
|
84
|
+
* @param {string} code
|
|
85
|
+
* @param {EntityRefDto} entityRefDto
|
|
86
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
addSecondaryLink: async (code: string, entityRefDto: EntityRefDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
91
|
+
// verify required parameter 'code' is not null or undefined
|
|
92
|
+
assertParamExists('addSecondaryLink', 'code', code)
|
|
93
|
+
// verify required parameter 'entityRefDto' is not null or undefined
|
|
94
|
+
assertParamExists('addSecondaryLink', 'entityRefDto', entityRefDto)
|
|
95
|
+
const localVarPath = `/taskservice/v1/tasks/{code}/secondary-links`
|
|
96
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
97
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
98
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
99
|
+
let baseOptions;
|
|
100
|
+
let baseAccessToken;
|
|
101
|
+
if (configuration) {
|
|
102
|
+
baseOptions = configuration.baseOptions;
|
|
103
|
+
baseAccessToken = configuration.accessToken;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
107
|
+
const localVarHeaderParameter = {} as any;
|
|
108
|
+
const localVarQueryParameter = {} as any;
|
|
109
|
+
|
|
110
|
+
// authentication bearer required
|
|
111
|
+
// http bearer authentication required
|
|
112
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
113
|
+
|
|
114
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
115
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
116
|
+
if (authorizationValue) {
|
|
117
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
123
|
+
|
|
124
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
125
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
127
|
+
localVarRequestOptions.data = serializeDataIfNeeded(entityRefDto, localVarRequestOptions, configuration)
|
|
128
|
+
|
|
129
|
+
return {
|
|
130
|
+
url: toPathString(localVarUrlObj),
|
|
131
|
+
options: localVarRequestOptions,
|
|
132
|
+
};
|
|
133
|
+
},
|
|
75
134
|
/**
|
|
76
135
|
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
77
136
|
* @summary Create the category
|
|
@@ -101,8 +160,10 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
101
160
|
// http bearer authentication required
|
|
102
161
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
103
162
|
|
|
104
|
-
|
|
105
|
-
|
|
163
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
164
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
165
|
+
if (authorizationValue) {
|
|
166
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
106
167
|
}
|
|
107
168
|
|
|
108
169
|
|
|
@@ -148,8 +209,10 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
148
209
|
// http bearer authentication required
|
|
149
210
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
150
211
|
|
|
151
|
-
|
|
152
|
-
|
|
212
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
213
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
214
|
+
if (authorizationValue) {
|
|
215
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
153
216
|
}
|
|
154
217
|
|
|
155
218
|
|
|
@@ -195,8 +258,10 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
195
258
|
// http bearer authentication required
|
|
196
259
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
197
260
|
|
|
198
|
-
|
|
199
|
-
|
|
261
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
262
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
263
|
+
if (authorizationValue) {
|
|
264
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
200
265
|
}
|
|
201
266
|
|
|
202
267
|
|
|
@@ -242,8 +307,10 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
242
307
|
// http bearer authentication required
|
|
243
308
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
244
309
|
|
|
245
|
-
|
|
246
|
-
|
|
310
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
311
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
312
|
+
if (authorizationValue) {
|
|
313
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
247
314
|
}
|
|
248
315
|
|
|
249
316
|
|
|
@@ -290,8 +357,10 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
290
357
|
// http bearer authentication required
|
|
291
358
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
292
359
|
|
|
293
|
-
|
|
294
|
-
|
|
360
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
361
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
362
|
+
if (authorizationValue) {
|
|
363
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
295
364
|
}
|
|
296
365
|
|
|
297
366
|
|
|
@@ -335,8 +404,10 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
335
404
|
// http bearer authentication required
|
|
336
405
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
337
406
|
|
|
338
|
-
|
|
339
|
-
|
|
407
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
408
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
409
|
+
if (authorizationValue) {
|
|
410
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
340
411
|
}
|
|
341
412
|
|
|
342
413
|
|
|
@@ -380,8 +451,10 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
380
451
|
// http bearer authentication required
|
|
381
452
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
382
453
|
|
|
383
|
-
|
|
384
|
-
|
|
454
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
455
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
456
|
+
if (authorizationValue) {
|
|
457
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
385
458
|
}
|
|
386
459
|
|
|
387
460
|
|
|
@@ -430,8 +503,10 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
430
503
|
localVarQueryParameter['expand'] = expand;
|
|
431
504
|
}
|
|
432
505
|
|
|
433
|
-
|
|
434
|
-
|
|
506
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
507
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
508
|
+
if (authorizationValue) {
|
|
509
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
435
510
|
}
|
|
436
511
|
|
|
437
512
|
|
|
@@ -480,8 +555,10 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
480
555
|
localVarQueryParameter['expand'] = expand;
|
|
481
556
|
}
|
|
482
557
|
|
|
483
|
-
|
|
484
|
-
|
|
558
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
559
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
560
|
+
if (authorizationValue) {
|
|
561
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
485
562
|
}
|
|
486
563
|
|
|
487
564
|
|
|
@@ -530,8 +607,10 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
530
607
|
localVarQueryParameter['expand'] = expand;
|
|
531
608
|
}
|
|
532
609
|
|
|
533
|
-
|
|
534
|
-
|
|
610
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
611
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
612
|
+
if (authorizationValue) {
|
|
613
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
535
614
|
}
|
|
536
615
|
|
|
537
616
|
|
|
@@ -576,8 +655,10 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
576
655
|
localVarQueryParameter['expand'] = expand;
|
|
577
656
|
}
|
|
578
657
|
|
|
579
|
-
|
|
580
|
-
|
|
658
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
659
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
660
|
+
if (authorizationValue) {
|
|
661
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
581
662
|
}
|
|
582
663
|
|
|
583
664
|
|
|
@@ -652,8 +733,10 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
652
733
|
localVarQueryParameter['filters'] = filters;
|
|
653
734
|
}
|
|
654
735
|
|
|
655
|
-
|
|
656
|
-
|
|
736
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
737
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
738
|
+
if (authorizationValue) {
|
|
739
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
657
740
|
}
|
|
658
741
|
|
|
659
742
|
|
|
@@ -718,8 +801,10 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
718
801
|
localVarQueryParameter['expand'] = expand;
|
|
719
802
|
}
|
|
720
803
|
|
|
721
|
-
|
|
722
|
-
|
|
804
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
805
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
806
|
+
if (authorizationValue) {
|
|
807
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
723
808
|
}
|
|
724
809
|
|
|
725
810
|
|
|
@@ -739,11 +824,11 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
739
824
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
740
825
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
741
826
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
742
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
827
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code</i>
|
|
743
828
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: subject, description</i>
|
|
744
829
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, entityType, entityCode, status, priority</i>
|
|
745
830
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: categories, status<i>
|
|
746
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
831
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code</i>
|
|
747
832
|
* @param {*} [options] Override http request option.
|
|
748
833
|
* @throws {RequiredError}
|
|
749
834
|
*/
|
|
@@ -794,8 +879,10 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
794
879
|
localVarQueryParameter['filters'] = filters;
|
|
795
880
|
}
|
|
796
881
|
|
|
797
|
-
|
|
798
|
-
|
|
882
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
883
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
884
|
+
if (authorizationValue) {
|
|
885
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
799
886
|
}
|
|
800
887
|
|
|
801
888
|
|
|
@@ -842,8 +929,10 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
842
929
|
// http bearer authentication required
|
|
843
930
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
844
931
|
|
|
845
|
-
|
|
846
|
-
|
|
932
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
933
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
934
|
+
if (authorizationValue) {
|
|
935
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
847
936
|
}
|
|
848
937
|
|
|
849
938
|
|
|
@@ -893,8 +982,10 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
893
982
|
// http bearer authentication required
|
|
894
983
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
895
984
|
|
|
896
|
-
|
|
897
|
-
|
|
985
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
986
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
987
|
+
if (authorizationValue) {
|
|
988
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
898
989
|
}
|
|
899
990
|
|
|
900
991
|
|
|
@@ -944,8 +1035,10 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
944
1035
|
// http bearer authentication required
|
|
945
1036
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
946
1037
|
|
|
947
|
-
|
|
948
|
-
|
|
1038
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
1039
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
1040
|
+
if (authorizationValue) {
|
|
1041
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
949
1042
|
}
|
|
950
1043
|
|
|
951
1044
|
|
|
@@ -957,6 +1050,61 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
957
1050
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
958
1051
|
localVarRequestOptions.data = serializeDataIfNeeded(patchTaskRequestDto, localVarRequestOptions, configuration)
|
|
959
1052
|
|
|
1053
|
+
return {
|
|
1054
|
+
url: toPathString(localVarUrlObj),
|
|
1055
|
+
options: localVarRequestOptions,
|
|
1056
|
+
};
|
|
1057
|
+
},
|
|
1058
|
+
/**
|
|
1059
|
+
* Removes a secondary link between a task and a record in another service. The task and the record are kept. Removing a link that does not exist returns the task unchanged. **Required Permissions** \"task-management.tasks.update\"
|
|
1060
|
+
* @summary Delete the task secondary link
|
|
1061
|
+
* @param {string} code
|
|
1062
|
+
* @param {string} linkType
|
|
1063
|
+
* @param {string} linkCode
|
|
1064
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1065
|
+
* @param {*} [options] Override http request option.
|
|
1066
|
+
* @throws {RequiredError}
|
|
1067
|
+
*/
|
|
1068
|
+
removeSecondaryLink: async (code: string, linkType: string, linkCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1069
|
+
// verify required parameter 'code' is not null or undefined
|
|
1070
|
+
assertParamExists('removeSecondaryLink', 'code', code)
|
|
1071
|
+
// verify required parameter 'linkType' is not null or undefined
|
|
1072
|
+
assertParamExists('removeSecondaryLink', 'linkType', linkType)
|
|
1073
|
+
// verify required parameter 'linkCode' is not null or undefined
|
|
1074
|
+
assertParamExists('removeSecondaryLink', 'linkCode', linkCode)
|
|
1075
|
+
const localVarPath = `/taskservice/v1/tasks/{code}/secondary-links/{linkType}/{linkCode}`
|
|
1076
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)))
|
|
1077
|
+
.replace(`{${"linkType"}}`, encodeURIComponent(String(linkType)))
|
|
1078
|
+
.replace(`{${"linkCode"}}`, encodeURIComponent(String(linkCode)));
|
|
1079
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1080
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1081
|
+
let baseOptions;
|
|
1082
|
+
let baseAccessToken;
|
|
1083
|
+
if (configuration) {
|
|
1084
|
+
baseOptions = configuration.baseOptions;
|
|
1085
|
+
baseAccessToken = configuration.accessToken;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
1089
|
+
const localVarHeaderParameter = {} as any;
|
|
1090
|
+
const localVarQueryParameter = {} as any;
|
|
1091
|
+
|
|
1092
|
+
// authentication bearer required
|
|
1093
|
+
// http bearer authentication required
|
|
1094
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1095
|
+
|
|
1096
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
1097
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
1098
|
+
if (authorizationValue) {
|
|
1099
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1105
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1106
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1107
|
+
|
|
960
1108
|
return {
|
|
961
1109
|
url: toPathString(localVarUrlObj),
|
|
962
1110
|
options: localVarRequestOptions,
|
|
@@ -972,6 +1120,19 @@ export const TaskClientApiAxiosParamCreator = function (configuration?: Configur
|
|
|
972
1120
|
export const TaskClientApiFp = function(configuration?: Configuration) {
|
|
973
1121
|
const localVarAxiosParamCreator = TaskClientApiAxiosParamCreator(configuration)
|
|
974
1122
|
return {
|
|
1123
|
+
/**
|
|
1124
|
+
* Adds a secondary link from a task to a record in another service, for example an email thread. The record must exist. Adding a record that is already linked returns the task unchanged. **Required Permissions** \"task-management.tasks.update\"
|
|
1125
|
+
* @summary Create the task secondary link
|
|
1126
|
+
* @param {string} code
|
|
1127
|
+
* @param {EntityRefDto} entityRefDto
|
|
1128
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1129
|
+
* @param {*} [options] Override http request option.
|
|
1130
|
+
* @throws {RequiredError}
|
|
1131
|
+
*/
|
|
1132
|
+
async addSecondaryLink(code: string, entityRefDto: EntityRefDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddSecondaryLinkResponseClass>> {
|
|
1133
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addSecondaryLink(code, entityRefDto, authorization, options);
|
|
1134
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1135
|
+
},
|
|
975
1136
|
/**
|
|
976
1137
|
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
977
1138
|
* @summary Create the category
|
|
@@ -1147,11 +1308,11 @@ export const TaskClientApiFp = function(configuration?: Configuration) {
|
|
|
1147
1308
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1148
1309
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1149
1310
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1150
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
1311
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code</i>
|
|
1151
1312
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: subject, description</i>
|
|
1152
1313
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, entityType, entityCode, status, priority</i>
|
|
1153
1314
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: categories, status<i>
|
|
1154
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
1315
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code</i>
|
|
1155
1316
|
* @param {*} [options] Override http request option.
|
|
1156
1317
|
* @throws {RequiredError}
|
|
1157
1318
|
*/
|
|
@@ -1198,6 +1359,20 @@ export const TaskClientApiFp = function(configuration?: Configuration) {
|
|
|
1198
1359
|
const localVarAxiosArgs = await localVarAxiosParamCreator.patchTask(code, patchTaskRequestDto, authorization, options);
|
|
1199
1360
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1200
1361
|
},
|
|
1362
|
+
/**
|
|
1363
|
+
* Removes a secondary link between a task and a record in another service. The task and the record are kept. Removing a link that does not exist returns the task unchanged. **Required Permissions** \"task-management.tasks.update\"
|
|
1364
|
+
* @summary Delete the task secondary link
|
|
1365
|
+
* @param {string} code
|
|
1366
|
+
* @param {string} linkType
|
|
1367
|
+
* @param {string} linkCode
|
|
1368
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1369
|
+
* @param {*} [options] Override http request option.
|
|
1370
|
+
* @throws {RequiredError}
|
|
1371
|
+
*/
|
|
1372
|
+
async removeSecondaryLink(code: string, linkType: string, linkCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RemoveSecondaryLinkResponseClass>> {
|
|
1373
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeSecondaryLink(code, linkType, linkCode, authorization, options);
|
|
1374
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1375
|
+
},
|
|
1201
1376
|
}
|
|
1202
1377
|
};
|
|
1203
1378
|
|
|
@@ -1208,6 +1383,18 @@ export const TaskClientApiFp = function(configuration?: Configuration) {
|
|
|
1208
1383
|
export const TaskClientApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1209
1384
|
const localVarFp = TaskClientApiFp(configuration)
|
|
1210
1385
|
return {
|
|
1386
|
+
/**
|
|
1387
|
+
* Adds a secondary link from a task to a record in another service, for example an email thread. The record must exist. Adding a record that is already linked returns the task unchanged. **Required Permissions** \"task-management.tasks.update\"
|
|
1388
|
+
* @summary Create the task secondary link
|
|
1389
|
+
* @param {string} code
|
|
1390
|
+
* @param {EntityRefDto} entityRefDto
|
|
1391
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1392
|
+
* @param {*} [options] Override http request option.
|
|
1393
|
+
* @throws {RequiredError}
|
|
1394
|
+
*/
|
|
1395
|
+
addSecondaryLink(code: string, entityRefDto: EntityRefDto, authorization?: string, options?: any): AxiosPromise<AddSecondaryLinkResponseClass> {
|
|
1396
|
+
return localVarFp.addSecondaryLink(code, entityRefDto, authorization, options).then((request) => request(axios, basePath));
|
|
1397
|
+
},
|
|
1211
1398
|
/**
|
|
1212
1399
|
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
1213
1400
|
* @summary Create the category
|
|
@@ -1370,11 +1557,11 @@ export const TaskClientApiFactory = function (configuration?: Configuration, bas
|
|
|
1370
1557
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1371
1558
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1372
1559
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1373
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
1560
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code</i>
|
|
1374
1561
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: subject, description</i>
|
|
1375
1562
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, entityType, entityCode, status, priority</i>
|
|
1376
1563
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: categories, status<i>
|
|
1377
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
1564
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code</i>
|
|
1378
1565
|
* @param {*} [options] Override http request option.
|
|
1379
1566
|
* @throws {RequiredError}
|
|
1380
1567
|
*/
|
|
@@ -1417,9 +1604,50 @@ export const TaskClientApiFactory = function (configuration?: Configuration, bas
|
|
|
1417
1604
|
patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: any): AxiosPromise<PatchTaskResponseClass> {
|
|
1418
1605
|
return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1419
1606
|
},
|
|
1607
|
+
/**
|
|
1608
|
+
* Removes a secondary link between a task and a record in another service. The task and the record are kept. Removing a link that does not exist returns the task unchanged. **Required Permissions** \"task-management.tasks.update\"
|
|
1609
|
+
* @summary Delete the task secondary link
|
|
1610
|
+
* @param {string} code
|
|
1611
|
+
* @param {string} linkType
|
|
1612
|
+
* @param {string} linkCode
|
|
1613
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1614
|
+
* @param {*} [options] Override http request option.
|
|
1615
|
+
* @throws {RequiredError}
|
|
1616
|
+
*/
|
|
1617
|
+
removeSecondaryLink(code: string, linkType: string, linkCode: string, authorization?: string, options?: any): AxiosPromise<RemoveSecondaryLinkResponseClass> {
|
|
1618
|
+
return localVarFp.removeSecondaryLink(code, linkType, linkCode, authorization, options).then((request) => request(axios, basePath));
|
|
1619
|
+
},
|
|
1420
1620
|
};
|
|
1421
1621
|
};
|
|
1422
1622
|
|
|
1623
|
+
/**
|
|
1624
|
+
* Request parameters for addSecondaryLink operation in TaskClientApi.
|
|
1625
|
+
* @export
|
|
1626
|
+
* @interface TaskClientApiAddSecondaryLinkRequest
|
|
1627
|
+
*/
|
|
1628
|
+
export interface TaskClientApiAddSecondaryLinkRequest {
|
|
1629
|
+
/**
|
|
1630
|
+
*
|
|
1631
|
+
* @type {string}
|
|
1632
|
+
* @memberof TaskClientApiAddSecondaryLink
|
|
1633
|
+
*/
|
|
1634
|
+
readonly code: string
|
|
1635
|
+
|
|
1636
|
+
/**
|
|
1637
|
+
*
|
|
1638
|
+
* @type {EntityRefDto}
|
|
1639
|
+
* @memberof TaskClientApiAddSecondaryLink
|
|
1640
|
+
*/
|
|
1641
|
+
readonly entityRefDto: EntityRefDto
|
|
1642
|
+
|
|
1643
|
+
/**
|
|
1644
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1645
|
+
* @type {string}
|
|
1646
|
+
* @memberof TaskClientApiAddSecondaryLink
|
|
1647
|
+
*/
|
|
1648
|
+
readonly authorization?: string
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1423
1651
|
/**
|
|
1424
1652
|
* Request parameters for createCategory operation in TaskClientApi.
|
|
1425
1653
|
* @export
|
|
@@ -1812,7 +2040,7 @@ export interface TaskClientApiListTasksRequest {
|
|
|
1812
2040
|
readonly pageToken?: string
|
|
1813
2041
|
|
|
1814
2042
|
/**
|
|
1815
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
2043
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code</i>
|
|
1816
2044
|
* @type {string}
|
|
1817
2045
|
* @memberof TaskClientApiListTasks
|
|
1818
2046
|
*/
|
|
@@ -1840,7 +2068,7 @@ export interface TaskClientApiListTasksRequest {
|
|
|
1840
2068
|
readonly expand?: string
|
|
1841
2069
|
|
|
1842
2070
|
/**
|
|
1843
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
2071
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code</i>
|
|
1844
2072
|
* @type {string}
|
|
1845
2073
|
* @memberof TaskClientApiListTasks
|
|
1846
2074
|
*/
|
|
@@ -1931,6 +2159,41 @@ export interface TaskClientApiPatchTaskRequest {
|
|
|
1931
2159
|
readonly authorization?: string
|
|
1932
2160
|
}
|
|
1933
2161
|
|
|
2162
|
+
/**
|
|
2163
|
+
* Request parameters for removeSecondaryLink operation in TaskClientApi.
|
|
2164
|
+
* @export
|
|
2165
|
+
* @interface TaskClientApiRemoveSecondaryLinkRequest
|
|
2166
|
+
*/
|
|
2167
|
+
export interface TaskClientApiRemoveSecondaryLinkRequest {
|
|
2168
|
+
/**
|
|
2169
|
+
*
|
|
2170
|
+
* @type {string}
|
|
2171
|
+
* @memberof TaskClientApiRemoveSecondaryLink
|
|
2172
|
+
*/
|
|
2173
|
+
readonly code: string
|
|
2174
|
+
|
|
2175
|
+
/**
|
|
2176
|
+
*
|
|
2177
|
+
* @type {string}
|
|
2178
|
+
* @memberof TaskClientApiRemoveSecondaryLink
|
|
2179
|
+
*/
|
|
2180
|
+
readonly linkType: string
|
|
2181
|
+
|
|
2182
|
+
/**
|
|
2183
|
+
*
|
|
2184
|
+
* @type {string}
|
|
2185
|
+
* @memberof TaskClientApiRemoveSecondaryLink
|
|
2186
|
+
*/
|
|
2187
|
+
readonly linkCode: string
|
|
2188
|
+
|
|
2189
|
+
/**
|
|
2190
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
2191
|
+
* @type {string}
|
|
2192
|
+
* @memberof TaskClientApiRemoveSecondaryLink
|
|
2193
|
+
*/
|
|
2194
|
+
readonly authorization?: string
|
|
2195
|
+
}
|
|
2196
|
+
|
|
1934
2197
|
/**
|
|
1935
2198
|
* TaskClientApi - object-oriented interface
|
|
1936
2199
|
* @export
|
|
@@ -1938,6 +2201,18 @@ export interface TaskClientApiPatchTaskRequest {
|
|
|
1938
2201
|
* @extends {BaseAPI}
|
|
1939
2202
|
*/
|
|
1940
2203
|
export class TaskClientApi extends BaseAPI {
|
|
2204
|
+
/**
|
|
2205
|
+
* Adds a secondary link from a task to a record in another service, for example an email thread. The record must exist. Adding a record that is already linked returns the task unchanged. **Required Permissions** \"task-management.tasks.update\"
|
|
2206
|
+
* @summary Create the task secondary link
|
|
2207
|
+
* @param {TaskClientApiAddSecondaryLinkRequest} requestParameters Request parameters.
|
|
2208
|
+
* @param {*} [options] Override http request option.
|
|
2209
|
+
* @throws {RequiredError}
|
|
2210
|
+
* @memberof TaskClientApi
|
|
2211
|
+
*/
|
|
2212
|
+
public addSecondaryLink(requestParameters: TaskClientApiAddSecondaryLinkRequest, options?: AxiosRequestConfig) {
|
|
2213
|
+
return TaskClientApiFp(this.configuration).addSecondaryLink(requestParameters.code, requestParameters.entityRefDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2214
|
+
}
|
|
2215
|
+
|
|
1941
2216
|
/**
|
|
1942
2217
|
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
1943
2218
|
* @summary Create the category
|
|
@@ -2141,4 +2416,16 @@ export class TaskClientApi extends BaseAPI {
|
|
|
2141
2416
|
public patchTask(requestParameters: TaskClientApiPatchTaskRequest, options?: AxiosRequestConfig) {
|
|
2142
2417
|
return TaskClientApiFp(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2143
2418
|
}
|
|
2419
|
+
|
|
2420
|
+
/**
|
|
2421
|
+
* Removes a secondary link between a task and a record in another service. The task and the record are kept. Removing a link that does not exist returns the task unchanged. **Required Permissions** \"task-management.tasks.update\"
|
|
2422
|
+
* @summary Delete the task secondary link
|
|
2423
|
+
* @param {TaskClientApiRemoveSecondaryLinkRequest} requestParameters Request parameters.
|
|
2424
|
+
* @param {*} [options] Override http request option.
|
|
2425
|
+
* @throws {RequiredError}
|
|
2426
|
+
* @memberof TaskClientApi
|
|
2427
|
+
*/
|
|
2428
|
+
public removeSecondaryLink(requestParameters: TaskClientApiRemoveSecondaryLinkRequest, options?: AxiosRequestConfig) {
|
|
2429
|
+
return TaskClientApiFp(this.configuration).removeSecondaryLink(requestParameters.code, requestParameters.linkType, requestParameters.linkCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2430
|
+
}
|
|
2144
2431
|
}
|