@emilgroup/task-sdk-node 1.7.1-beta.29 → 1.7.1-beta.30
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 +5 -0
- package/README.md +2 -2
- package/api/task-client-api.ts +257 -8
- package/api/tasks-api.ts +257 -8
- package/dist/api/task-client-api.d.ts +148 -8
- package/dist/api/task-client-api.js +209 -6
- package/dist/api/tasks-api.d.ts +148 -8
- package/dist/api/tasks-api.js +209 -6
- 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 +7 -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 +5 -0
- package/dist/models/index.js +5 -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 +7 -0
- package/models/entity-ref-class.ts +43 -0
- package/models/entity-ref-dto.ts +43 -0
- package/models/index.ts +5 -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 +1 -1
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { AddSecondaryLinkResponseClass } from '../models';
|
|
15
16
|
import { CreateCategoryRequestDto } from '../models';
|
|
16
17
|
import { CreateCategoryResponseClass } from '../models';
|
|
17
18
|
import { CreateHubSpotTicketRequestDto } from '../models';
|
|
@@ -20,6 +21,7 @@ import { CreateStatusRequestDto } from '../models';
|
|
|
20
21
|
import { CreateStatusResponseClass } from '../models';
|
|
21
22
|
import { CreateTaskRequestDto } from '../models';
|
|
22
23
|
import { CreateTaskResponseClass } from '../models';
|
|
24
|
+
import { EntityRefDto } from '../models';
|
|
23
25
|
import { GetCategoryResponseClass } from '../models';
|
|
24
26
|
import { GetStatusResponseClass } from '../models';
|
|
25
27
|
import { GetTaskResponseClass } from '../models';
|
|
@@ -33,11 +35,22 @@ import { PatchStatusRequestDto } from '../models';
|
|
|
33
35
|
import { PatchStatusResponseClass } from '../models';
|
|
34
36
|
import { PatchTaskRequestDto } from '../models';
|
|
35
37
|
import { PatchTaskResponseClass } from '../models';
|
|
38
|
+
import { RemoveSecondaryLinkResponseClass } from '../models';
|
|
36
39
|
/**
|
|
37
40
|
* TaskClientApi - axios parameter creator
|
|
38
41
|
* @export
|
|
39
42
|
*/
|
|
40
43
|
export declare const TaskClientApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
44
|
+
/**
|
|
45
|
+
* 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\"
|
|
46
|
+
* @summary Create the task secondary link
|
|
47
|
+
* @param {string} code
|
|
48
|
+
* @param {EntityRefDto} entityRefDto
|
|
49
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
addSecondaryLink: (code: string, entityRefDto: EntityRefDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
54
|
/**
|
|
42
55
|
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
43
56
|
* @summary Create the category
|
|
@@ -174,11 +187,11 @@ export declare const TaskClientApiAxiosParamCreator: (configuration?: Configurat
|
|
|
174
187
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
175
188
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
176
189
|
* @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.
|
|
177
|
-
* @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>
|
|
190
|
+
* @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>
|
|
178
191
|
* @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>
|
|
179
192
|
* @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>
|
|
180
193
|
* @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>
|
|
181
|
-
* @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>
|
|
194
|
+
* @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>
|
|
182
195
|
* @param {*} [options] Override http request option.
|
|
183
196
|
* @throws {RequiredError}
|
|
184
197
|
*/
|
|
@@ -213,12 +226,33 @@ export declare const TaskClientApiAxiosParamCreator: (configuration?: Configurat
|
|
|
213
226
|
* @throws {RequiredError}
|
|
214
227
|
*/
|
|
215
228
|
patchTask: (code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
229
|
+
/**
|
|
230
|
+
* 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\"
|
|
231
|
+
* @summary Delete the task secondary link
|
|
232
|
+
* @param {string} code
|
|
233
|
+
* @param {string} linkType
|
|
234
|
+
* @param {string} linkCode
|
|
235
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
236
|
+
* @param {*} [options] Override http request option.
|
|
237
|
+
* @throws {RequiredError}
|
|
238
|
+
*/
|
|
239
|
+
removeSecondaryLink: (code: string, linkType: string, linkCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
216
240
|
};
|
|
217
241
|
/**
|
|
218
242
|
* TaskClientApi - functional programming interface
|
|
219
243
|
* @export
|
|
220
244
|
*/
|
|
221
245
|
export declare const TaskClientApiFp: (configuration?: Configuration) => {
|
|
246
|
+
/**
|
|
247
|
+
* 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\"
|
|
248
|
+
* @summary Create the task secondary link
|
|
249
|
+
* @param {string} code
|
|
250
|
+
* @param {EntityRefDto} entityRefDto
|
|
251
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
252
|
+
* @param {*} [options] Override http request option.
|
|
253
|
+
* @throws {RequiredError}
|
|
254
|
+
*/
|
|
255
|
+
addSecondaryLink(code: string, entityRefDto: EntityRefDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddSecondaryLinkResponseClass>>;
|
|
222
256
|
/**
|
|
223
257
|
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
224
258
|
* @summary Create the category
|
|
@@ -355,11 +389,11 @@ export declare const TaskClientApiFp: (configuration?: Configuration) => {
|
|
|
355
389
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
356
390
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
357
391
|
* @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.
|
|
358
|
-
* @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>
|
|
392
|
+
* @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>
|
|
359
393
|
* @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>
|
|
360
394
|
* @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>
|
|
361
395
|
* @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>
|
|
362
|
-
* @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>
|
|
396
|
+
* @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>
|
|
363
397
|
* @param {*} [options] Override http request option.
|
|
364
398
|
* @throws {RequiredError}
|
|
365
399
|
*/
|
|
@@ -394,12 +428,33 @@ export declare const TaskClientApiFp: (configuration?: Configuration) => {
|
|
|
394
428
|
* @throws {RequiredError}
|
|
395
429
|
*/
|
|
396
430
|
patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchTaskResponseClass>>;
|
|
431
|
+
/**
|
|
432
|
+
* 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\"
|
|
433
|
+
* @summary Delete the task secondary link
|
|
434
|
+
* @param {string} code
|
|
435
|
+
* @param {string} linkType
|
|
436
|
+
* @param {string} linkCode
|
|
437
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
removeSecondaryLink(code: string, linkType: string, linkCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RemoveSecondaryLinkResponseClass>>;
|
|
397
442
|
};
|
|
398
443
|
/**
|
|
399
444
|
* TaskClientApi - factory interface
|
|
400
445
|
* @export
|
|
401
446
|
*/
|
|
402
447
|
export declare const TaskClientApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
448
|
+
/**
|
|
449
|
+
* 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\"
|
|
450
|
+
* @summary Create the task secondary link
|
|
451
|
+
* @param {string} code
|
|
452
|
+
* @param {EntityRefDto} entityRefDto
|
|
453
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
454
|
+
* @param {*} [options] Override http request option.
|
|
455
|
+
* @throws {RequiredError}
|
|
456
|
+
*/
|
|
457
|
+
addSecondaryLink(code: string, entityRefDto: EntityRefDto, authorization?: string, options?: any): AxiosPromise<AddSecondaryLinkResponseClass>;
|
|
403
458
|
/**
|
|
404
459
|
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
405
460
|
* @summary Create the category
|
|
@@ -536,11 +591,11 @@ export declare const TaskClientApiFactory: (configuration?: Configuration, baseP
|
|
|
536
591
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
537
592
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
538
593
|
* @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.
|
|
539
|
-
* @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>
|
|
594
|
+
* @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>
|
|
540
595
|
* @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>
|
|
541
596
|
* @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>
|
|
542
597
|
* @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>
|
|
543
|
-
* @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>
|
|
598
|
+
* @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>
|
|
544
599
|
* @param {*} [options] Override http request option.
|
|
545
600
|
* @throws {RequiredError}
|
|
546
601
|
*/
|
|
@@ -575,7 +630,43 @@ export declare const TaskClientApiFactory: (configuration?: Configuration, baseP
|
|
|
575
630
|
* @throws {RequiredError}
|
|
576
631
|
*/
|
|
577
632
|
patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: any): AxiosPromise<PatchTaskResponseClass>;
|
|
633
|
+
/**
|
|
634
|
+
* 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\"
|
|
635
|
+
* @summary Delete the task secondary link
|
|
636
|
+
* @param {string} code
|
|
637
|
+
* @param {string} linkType
|
|
638
|
+
* @param {string} linkCode
|
|
639
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
640
|
+
* @param {*} [options] Override http request option.
|
|
641
|
+
* @throws {RequiredError}
|
|
642
|
+
*/
|
|
643
|
+
removeSecondaryLink(code: string, linkType: string, linkCode: string, authorization?: string, options?: any): AxiosPromise<RemoveSecondaryLinkResponseClass>;
|
|
578
644
|
};
|
|
645
|
+
/**
|
|
646
|
+
* Request parameters for addSecondaryLink operation in TaskClientApi.
|
|
647
|
+
* @export
|
|
648
|
+
* @interface TaskClientApiAddSecondaryLinkRequest
|
|
649
|
+
*/
|
|
650
|
+
export interface TaskClientApiAddSecondaryLinkRequest {
|
|
651
|
+
/**
|
|
652
|
+
*
|
|
653
|
+
* @type {string}
|
|
654
|
+
* @memberof TaskClientApiAddSecondaryLink
|
|
655
|
+
*/
|
|
656
|
+
readonly code: string;
|
|
657
|
+
/**
|
|
658
|
+
*
|
|
659
|
+
* @type {EntityRefDto}
|
|
660
|
+
* @memberof TaskClientApiAddSecondaryLink
|
|
661
|
+
*/
|
|
662
|
+
readonly entityRefDto: EntityRefDto;
|
|
663
|
+
/**
|
|
664
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
665
|
+
* @type {string}
|
|
666
|
+
* @memberof TaskClientApiAddSecondaryLink
|
|
667
|
+
*/
|
|
668
|
+
readonly authorization?: string;
|
|
669
|
+
}
|
|
579
670
|
/**
|
|
580
671
|
* Request parameters for createCategory operation in TaskClientApi.
|
|
581
672
|
* @export
|
|
@@ -926,7 +1017,7 @@ export interface TaskClientApiListTasksRequest {
|
|
|
926
1017
|
*/
|
|
927
1018
|
readonly pageToken?: string;
|
|
928
1019
|
/**
|
|
929
|
-
* 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>
|
|
1020
|
+
* 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>
|
|
930
1021
|
* @type {string}
|
|
931
1022
|
* @memberof TaskClientApiListTasks
|
|
932
1023
|
*/
|
|
@@ -950,7 +1041,7 @@ export interface TaskClientApiListTasksRequest {
|
|
|
950
1041
|
*/
|
|
951
1042
|
readonly expand?: string;
|
|
952
1043
|
/**
|
|
953
|
-
* 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>
|
|
1044
|
+
* 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>
|
|
954
1045
|
* @type {string}
|
|
955
1046
|
* @memberof TaskClientApiListTasks
|
|
956
1047
|
*/
|
|
@@ -1031,6 +1122,37 @@ export interface TaskClientApiPatchTaskRequest {
|
|
|
1031
1122
|
*/
|
|
1032
1123
|
readonly authorization?: string;
|
|
1033
1124
|
}
|
|
1125
|
+
/**
|
|
1126
|
+
* Request parameters for removeSecondaryLink operation in TaskClientApi.
|
|
1127
|
+
* @export
|
|
1128
|
+
* @interface TaskClientApiRemoveSecondaryLinkRequest
|
|
1129
|
+
*/
|
|
1130
|
+
export interface TaskClientApiRemoveSecondaryLinkRequest {
|
|
1131
|
+
/**
|
|
1132
|
+
*
|
|
1133
|
+
* @type {string}
|
|
1134
|
+
* @memberof TaskClientApiRemoveSecondaryLink
|
|
1135
|
+
*/
|
|
1136
|
+
readonly code: string;
|
|
1137
|
+
/**
|
|
1138
|
+
*
|
|
1139
|
+
* @type {string}
|
|
1140
|
+
* @memberof TaskClientApiRemoveSecondaryLink
|
|
1141
|
+
*/
|
|
1142
|
+
readonly linkType: string;
|
|
1143
|
+
/**
|
|
1144
|
+
*
|
|
1145
|
+
* @type {string}
|
|
1146
|
+
* @memberof TaskClientApiRemoveSecondaryLink
|
|
1147
|
+
*/
|
|
1148
|
+
readonly linkCode: string;
|
|
1149
|
+
/**
|
|
1150
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1151
|
+
* @type {string}
|
|
1152
|
+
* @memberof TaskClientApiRemoveSecondaryLink
|
|
1153
|
+
*/
|
|
1154
|
+
readonly authorization?: string;
|
|
1155
|
+
}
|
|
1034
1156
|
/**
|
|
1035
1157
|
* TaskClientApi - object-oriented interface
|
|
1036
1158
|
* @export
|
|
@@ -1038,6 +1160,15 @@ export interface TaskClientApiPatchTaskRequest {
|
|
|
1038
1160
|
* @extends {BaseAPI}
|
|
1039
1161
|
*/
|
|
1040
1162
|
export declare class TaskClientApi extends BaseAPI {
|
|
1163
|
+
/**
|
|
1164
|
+
* 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\"
|
|
1165
|
+
* @summary Create the task secondary link
|
|
1166
|
+
* @param {TaskClientApiAddSecondaryLinkRequest} requestParameters Request parameters.
|
|
1167
|
+
* @param {*} [options] Override http request option.
|
|
1168
|
+
* @throws {RequiredError}
|
|
1169
|
+
* @memberof TaskClientApi
|
|
1170
|
+
*/
|
|
1171
|
+
addSecondaryLink(requestParameters: TaskClientApiAddSecondaryLinkRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AddSecondaryLinkResponseClass, any, {}>>;
|
|
1041
1172
|
/**
|
|
1042
1173
|
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
1043
1174
|
* @summary Create the category
|
|
@@ -1191,4 +1322,13 @@ export declare class TaskClientApi extends BaseAPI {
|
|
|
1191
1322
|
* @memberof TaskClientApi
|
|
1192
1323
|
*/
|
|
1193
1324
|
patchTask(requestParameters: TaskClientApiPatchTaskRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchTaskResponseClass, any, {}>>;
|
|
1325
|
+
/**
|
|
1326
|
+
* 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\"
|
|
1327
|
+
* @summary Delete the task secondary link
|
|
1328
|
+
* @param {TaskClientApiRemoveSecondaryLinkRequest} requestParameters Request parameters.
|
|
1329
|
+
* @param {*} [options] Override http request option.
|
|
1330
|
+
* @throws {RequiredError}
|
|
1331
|
+
* @memberof TaskClientApi
|
|
1332
|
+
*/
|
|
1333
|
+
removeSecondaryLink(requestParameters: TaskClientApiRemoveSecondaryLinkRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RemoveSecondaryLinkResponseClass, any, {}>>;
|
|
1194
1334
|
}
|
|
@@ -96,6 +96,59 @@ var FormData = require('form-data');
|
|
|
96
96
|
var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
|
+
/**
|
|
100
|
+
* 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\"
|
|
101
|
+
* @summary Create the task secondary link
|
|
102
|
+
* @param {string} code
|
|
103
|
+
* @param {EntityRefDto} entityRefDto
|
|
104
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
addSecondaryLink: function (code, entityRefDto, authorization, options) {
|
|
109
|
+
if (options === void 0) { options = {}; }
|
|
110
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
switch (_a.label) {
|
|
114
|
+
case 0:
|
|
115
|
+
// verify required parameter 'code' is not null or undefined
|
|
116
|
+
(0, common_1.assertParamExists)('addSecondaryLink', 'code', code);
|
|
117
|
+
// verify required parameter 'entityRefDto' is not null or undefined
|
|
118
|
+
(0, common_1.assertParamExists)('addSecondaryLink', 'entityRefDto', entityRefDto);
|
|
119
|
+
localVarPath = "/taskservice/v1/tasks/{code}/secondary-links"
|
|
120
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
121
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
122
|
+
if (configuration) {
|
|
123
|
+
baseOptions = configuration.baseOptions;
|
|
124
|
+
baseAccessToken = configuration.accessToken;
|
|
125
|
+
}
|
|
126
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
127
|
+
localVarHeaderParameter = {};
|
|
128
|
+
localVarQueryParameter = {};
|
|
129
|
+
// authentication bearer required
|
|
130
|
+
// http bearer authentication required
|
|
131
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
132
|
+
case 1:
|
|
133
|
+
// authentication bearer required
|
|
134
|
+
// http bearer authentication required
|
|
135
|
+
_a.sent();
|
|
136
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
137
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
138
|
+
}
|
|
139
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
140
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
141
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
142
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
143
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(entityRefDto, localVarRequestOptions, configuration);
|
|
144
|
+
return [2 /*return*/, {
|
|
145
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
146
|
+
options: localVarRequestOptions,
|
|
147
|
+
}];
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
},
|
|
99
152
|
/**
|
|
100
153
|
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
101
154
|
* @summary Create the category
|
|
@@ -782,11 +835,11 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
782
835
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
783
836
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
784
837
|
* @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.
|
|
785
|
-
* @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>
|
|
838
|
+
* @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>
|
|
786
839
|
* @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>
|
|
787
840
|
* @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>
|
|
788
841
|
* @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>
|
|
789
|
-
* @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>
|
|
842
|
+
* @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>
|
|
790
843
|
* @param {*} [options] Override http request option.
|
|
791
844
|
* @throws {RequiredError}
|
|
792
845
|
*/
|
|
@@ -1007,6 +1060,62 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
1007
1060
|
});
|
|
1008
1061
|
});
|
|
1009
1062
|
},
|
|
1063
|
+
/**
|
|
1064
|
+
* 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\"
|
|
1065
|
+
* @summary Delete the task secondary link
|
|
1066
|
+
* @param {string} code
|
|
1067
|
+
* @param {string} linkType
|
|
1068
|
+
* @param {string} linkCode
|
|
1069
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1070
|
+
* @param {*} [options] Override http request option.
|
|
1071
|
+
* @throws {RequiredError}
|
|
1072
|
+
*/
|
|
1073
|
+
removeSecondaryLink: function (code, linkType, linkCode, authorization, options) {
|
|
1074
|
+
if (options === void 0) { options = {}; }
|
|
1075
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1076
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1077
|
+
return __generator(this, function (_a) {
|
|
1078
|
+
switch (_a.label) {
|
|
1079
|
+
case 0:
|
|
1080
|
+
// verify required parameter 'code' is not null or undefined
|
|
1081
|
+
(0, common_1.assertParamExists)('removeSecondaryLink', 'code', code);
|
|
1082
|
+
// verify required parameter 'linkType' is not null or undefined
|
|
1083
|
+
(0, common_1.assertParamExists)('removeSecondaryLink', 'linkType', linkType);
|
|
1084
|
+
// verify required parameter 'linkCode' is not null or undefined
|
|
1085
|
+
(0, common_1.assertParamExists)('removeSecondaryLink', 'linkCode', linkCode);
|
|
1086
|
+
localVarPath = "/taskservice/v1/tasks/{code}/secondary-links/{linkType}/{linkCode}"
|
|
1087
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)))
|
|
1088
|
+
.replace("{".concat("linkType", "}"), encodeURIComponent(String(linkType)))
|
|
1089
|
+
.replace("{".concat("linkCode", "}"), encodeURIComponent(String(linkCode)));
|
|
1090
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1091
|
+
if (configuration) {
|
|
1092
|
+
baseOptions = configuration.baseOptions;
|
|
1093
|
+
baseAccessToken = configuration.accessToken;
|
|
1094
|
+
}
|
|
1095
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
1096
|
+
localVarHeaderParameter = {};
|
|
1097
|
+
localVarQueryParameter = {};
|
|
1098
|
+
// authentication bearer required
|
|
1099
|
+
// http bearer authentication required
|
|
1100
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
1101
|
+
case 1:
|
|
1102
|
+
// authentication bearer required
|
|
1103
|
+
// http bearer authentication required
|
|
1104
|
+
_a.sent();
|
|
1105
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1106
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1107
|
+
}
|
|
1108
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1109
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1110
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1111
|
+
return [2 /*return*/, {
|
|
1112
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1113
|
+
options: localVarRequestOptions,
|
|
1114
|
+
}];
|
|
1115
|
+
}
|
|
1116
|
+
});
|
|
1117
|
+
});
|
|
1118
|
+
},
|
|
1010
1119
|
};
|
|
1011
1120
|
};
|
|
1012
1121
|
exports.TaskClientApiAxiosParamCreator = TaskClientApiAxiosParamCreator;
|
|
@@ -1017,6 +1126,28 @@ exports.TaskClientApiAxiosParamCreator = TaskClientApiAxiosParamCreator;
|
|
|
1017
1126
|
var TaskClientApiFp = function (configuration) {
|
|
1018
1127
|
var localVarAxiosParamCreator = (0, exports.TaskClientApiAxiosParamCreator)(configuration);
|
|
1019
1128
|
return {
|
|
1129
|
+
/**
|
|
1130
|
+
* 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\"
|
|
1131
|
+
* @summary Create the task secondary link
|
|
1132
|
+
* @param {string} code
|
|
1133
|
+
* @param {EntityRefDto} entityRefDto
|
|
1134
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1135
|
+
* @param {*} [options] Override http request option.
|
|
1136
|
+
* @throws {RequiredError}
|
|
1137
|
+
*/
|
|
1138
|
+
addSecondaryLink: function (code, entityRefDto, authorization, options) {
|
|
1139
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1140
|
+
var localVarAxiosArgs;
|
|
1141
|
+
return __generator(this, function (_a) {
|
|
1142
|
+
switch (_a.label) {
|
|
1143
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.addSecondaryLink(code, entityRefDto, authorization, options)];
|
|
1144
|
+
case 1:
|
|
1145
|
+
localVarAxiosArgs = _a.sent();
|
|
1146
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1147
|
+
}
|
|
1148
|
+
});
|
|
1149
|
+
});
|
|
1150
|
+
},
|
|
1020
1151
|
/**
|
|
1021
1152
|
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
1022
1153
|
* @summary Create the category
|
|
@@ -1309,11 +1440,11 @@ var TaskClientApiFp = function (configuration) {
|
|
|
1309
1440
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1310
1441
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1311
1442
|
* @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.
|
|
1312
|
-
* @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>
|
|
1443
|
+
* @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>
|
|
1313
1444
|
* @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>
|
|
1314
1445
|
* @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>
|
|
1315
1446
|
* @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>
|
|
1316
|
-
* @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>
|
|
1447
|
+
* @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>
|
|
1317
1448
|
* @param {*} [options] Override http request option.
|
|
1318
1449
|
* @throws {RequiredError}
|
|
1319
1450
|
*/
|
|
@@ -1396,6 +1527,29 @@ var TaskClientApiFp = function (configuration) {
|
|
|
1396
1527
|
});
|
|
1397
1528
|
});
|
|
1398
1529
|
},
|
|
1530
|
+
/**
|
|
1531
|
+
* 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\"
|
|
1532
|
+
* @summary Delete the task secondary link
|
|
1533
|
+
* @param {string} code
|
|
1534
|
+
* @param {string} linkType
|
|
1535
|
+
* @param {string} linkCode
|
|
1536
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1537
|
+
* @param {*} [options] Override http request option.
|
|
1538
|
+
* @throws {RequiredError}
|
|
1539
|
+
*/
|
|
1540
|
+
removeSecondaryLink: function (code, linkType, linkCode, authorization, options) {
|
|
1541
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1542
|
+
var localVarAxiosArgs;
|
|
1543
|
+
return __generator(this, function (_a) {
|
|
1544
|
+
switch (_a.label) {
|
|
1545
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeSecondaryLink(code, linkType, linkCode, authorization, options)];
|
|
1546
|
+
case 1:
|
|
1547
|
+
localVarAxiosArgs = _a.sent();
|
|
1548
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1549
|
+
}
|
|
1550
|
+
});
|
|
1551
|
+
});
|
|
1552
|
+
},
|
|
1399
1553
|
};
|
|
1400
1554
|
};
|
|
1401
1555
|
exports.TaskClientApiFp = TaskClientApiFp;
|
|
@@ -1406,6 +1560,18 @@ exports.TaskClientApiFp = TaskClientApiFp;
|
|
|
1406
1560
|
var TaskClientApiFactory = function (configuration, basePath, axios) {
|
|
1407
1561
|
var localVarFp = (0, exports.TaskClientApiFp)(configuration);
|
|
1408
1562
|
return {
|
|
1563
|
+
/**
|
|
1564
|
+
* 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\"
|
|
1565
|
+
* @summary Create the task secondary link
|
|
1566
|
+
* @param {string} code
|
|
1567
|
+
* @param {EntityRefDto} entityRefDto
|
|
1568
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1569
|
+
* @param {*} [options] Override http request option.
|
|
1570
|
+
* @throws {RequiredError}
|
|
1571
|
+
*/
|
|
1572
|
+
addSecondaryLink: function (code, entityRefDto, authorization, options) {
|
|
1573
|
+
return localVarFp.addSecondaryLink(code, entityRefDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1574
|
+
},
|
|
1409
1575
|
/**
|
|
1410
1576
|
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
1411
1577
|
* @summary Create the category
|
|
@@ -1568,11 +1734,11 @@ var TaskClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1568
1734
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1569
1735
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1570
1736
|
* @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.
|
|
1571
|
-
* @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>
|
|
1737
|
+
* @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>
|
|
1572
1738
|
* @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>
|
|
1573
1739
|
* @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>
|
|
1574
1740
|
* @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>
|
|
1575
|
-
* @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>
|
|
1741
|
+
* @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>
|
|
1576
1742
|
* @param {*} [options] Override http request option.
|
|
1577
1743
|
* @throws {RequiredError}
|
|
1578
1744
|
*/
|
|
@@ -1615,6 +1781,19 @@ var TaskClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1615
1781
|
patchTask: function (code, patchTaskRequestDto, authorization, options) {
|
|
1616
1782
|
return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1617
1783
|
},
|
|
1784
|
+
/**
|
|
1785
|
+
* 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\"
|
|
1786
|
+
* @summary Delete the task secondary link
|
|
1787
|
+
* @param {string} code
|
|
1788
|
+
* @param {string} linkType
|
|
1789
|
+
* @param {string} linkCode
|
|
1790
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1791
|
+
* @param {*} [options] Override http request option.
|
|
1792
|
+
* @throws {RequiredError}
|
|
1793
|
+
*/
|
|
1794
|
+
removeSecondaryLink: function (code, linkType, linkCode, authorization, options) {
|
|
1795
|
+
return localVarFp.removeSecondaryLink(code, linkType, linkCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1796
|
+
},
|
|
1618
1797
|
};
|
|
1619
1798
|
};
|
|
1620
1799
|
exports.TaskClientApiFactory = TaskClientApiFactory;
|
|
@@ -1629,6 +1808,18 @@ var TaskClientApi = /** @class */ (function (_super) {
|
|
|
1629
1808
|
function TaskClientApi() {
|
|
1630
1809
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1631
1810
|
}
|
|
1811
|
+
/**
|
|
1812
|
+
* 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\"
|
|
1813
|
+
* @summary Create the task secondary link
|
|
1814
|
+
* @param {TaskClientApiAddSecondaryLinkRequest} requestParameters Request parameters.
|
|
1815
|
+
* @param {*} [options] Override http request option.
|
|
1816
|
+
* @throws {RequiredError}
|
|
1817
|
+
* @memberof TaskClientApi
|
|
1818
|
+
*/
|
|
1819
|
+
TaskClientApi.prototype.addSecondaryLink = function (requestParameters, options) {
|
|
1820
|
+
var _this = this;
|
|
1821
|
+
return (0, exports.TaskClientApiFp)(this.configuration).addSecondaryLink(requestParameters.code, requestParameters.entityRefDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1822
|
+
};
|
|
1632
1823
|
/**
|
|
1633
1824
|
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
1634
1825
|
* @summary Create the category
|
|
@@ -1837,6 +2028,18 @@ var TaskClientApi = /** @class */ (function (_super) {
|
|
|
1837
2028
|
var _this = this;
|
|
1838
2029
|
return (0, exports.TaskClientApiFp)(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1839
2030
|
};
|
|
2031
|
+
/**
|
|
2032
|
+
* 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\"
|
|
2033
|
+
* @summary Delete the task secondary link
|
|
2034
|
+
* @param {TaskClientApiRemoveSecondaryLinkRequest} requestParameters Request parameters.
|
|
2035
|
+
* @param {*} [options] Override http request option.
|
|
2036
|
+
* @throws {RequiredError}
|
|
2037
|
+
* @memberof TaskClientApi
|
|
2038
|
+
*/
|
|
2039
|
+
TaskClientApi.prototype.removeSecondaryLink = function (requestParameters, options) {
|
|
2040
|
+
var _this = this;
|
|
2041
|
+
return (0, exports.TaskClientApiFp)(this.configuration).removeSecondaryLink(requestParameters.code, requestParameters.linkType, requestParameters.linkCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2042
|
+
};
|
|
1840
2043
|
return TaskClientApi;
|
|
1841
2044
|
}(base_1.BaseAPI));
|
|
1842
2045
|
exports.TaskClientApi = TaskClientApi;
|