@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.
Files changed (64) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/api/assignees-api.ts +4 -2
  4. package/api/categories-api.ts +20 -10
  5. package/api/filters-api.ts +153 -34
  6. package/api/hub-spot-api.ts +4 -2
  7. package/api/reminders-api.ts +28 -14
  8. package/api/statuses-api.ts +20 -10
  9. package/api/task-client-api.ts +329 -42
  10. package/api/tasks-api.ts +281 -18
  11. package/common.ts +3 -2
  12. package/dist/api/assignees-api.d.ts +1 -1
  13. package/dist/api/assignees-api.js +4 -3
  14. package/dist/api/categories-api.d.ts +5 -5
  15. package/dist/api/categories-api.js +29 -18
  16. package/dist/api/filters-api.d.ts +86 -29
  17. package/dist/api/filters-api.js +147 -38
  18. package/dist/api/health-api.d.ts +1 -1
  19. package/dist/api/hub-spot-api.d.ts +1 -1
  20. package/dist/api/hub-spot-api.js +7 -4
  21. package/dist/api/reminders-api.d.ts +7 -7
  22. package/dist/api/reminders-api.js +40 -25
  23. package/dist/api/statuses-api.d.ts +5 -5
  24. package/dist/api/statuses-api.js +29 -18
  25. package/dist/api/task-client-api.d.ts +165 -25
  26. package/dist/api/task-client-api.js +313 -67
  27. package/dist/api/tasks-api.d.ts +153 -13
  28. package/dist/api/tasks-api.js +244 -24
  29. package/dist/common.d.ts +1 -1
  30. package/dist/common.js +1 -0
  31. package/dist/models/add-secondary-link-response-class.d.ts +25 -0
  32. package/dist/models/add-secondary-link-response-class.js +15 -0
  33. package/dist/models/create-task-request-dto.d.ts +13 -0
  34. package/dist/models/dry-run-filter-clause-class.d.ts +42 -0
  35. package/dist/models/dry-run-filter-clause-class.js +15 -0
  36. package/dist/models/dry-run-filter-request-dto.d.ts +30 -0
  37. package/dist/models/dry-run-filter-request-dto.js +15 -0
  38. package/dist/models/dry-run-filter-response-class.d.ts +37 -0
  39. package/dist/models/dry-run-filter-response-class.js +15 -0
  40. package/dist/models/entity-ref-class.d.ts +34 -0
  41. package/dist/models/entity-ref-class.js +19 -0
  42. package/dist/models/entity-ref-dto.d.ts +34 -0
  43. package/dist/models/entity-ref-dto.js +19 -0
  44. package/dist/models/index.d.ts +8 -0
  45. package/dist/models/index.js +8 -0
  46. package/dist/models/patch-task-request-dto.d.ts +12 -0
  47. package/dist/models/remove-secondary-link-response-class.d.ts +25 -0
  48. package/dist/models/remove-secondary-link-response-class.js +15 -0
  49. package/dist/models/secondary-link-class.d.ts +31 -0
  50. package/dist/models/secondary-link-class.js +15 -0
  51. package/dist/models/task-class.d.ts +7 -0
  52. package/models/add-secondary-link-response-class.ts +31 -0
  53. package/models/create-task-request-dto.ts +13 -0
  54. package/models/dry-run-filter-clause-class.ts +48 -0
  55. package/models/dry-run-filter-request-dto.ts +36 -0
  56. package/models/dry-run-filter-response-class.ts +43 -0
  57. package/models/entity-ref-class.ts +43 -0
  58. package/models/entity-ref-dto.ts +43 -0
  59. package/models/index.ts +8 -0
  60. package/models/patch-task-request-dto.ts +12 -0
  61. package/models/remove-secondary-link-response-class.ts +31 -0
  62. package/models/secondary-link-class.ts +37 -0
  63. package/models/task-class.ts +7 -0
  64. package/package.json +2 -2
@@ -12,17 +12,30 @@
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 { CreateTaskRequestDto } from '../models';
16
17
  import { CreateTaskResponseClass } from '../models';
18
+ import { EntityRefDto } from '../models';
17
19
  import { GetTaskResponseClass } from '../models';
18
20
  import { ListTasksResponseClass } from '../models';
19
21
  import { PatchTaskRequestDto } from '../models';
20
22
  import { PatchTaskResponseClass } from '../models';
23
+ import { RemoveSecondaryLinkResponseClass } from '../models';
21
24
  /**
22
25
  * TasksApi - axios parameter creator
23
26
  * @export
24
27
  */
25
28
  export declare const TasksApiAxiosParamCreator: (configuration?: Configuration) => {
29
+ /**
30
+ * 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\"
31
+ * @summary Create the task secondary link
32
+ * @param {string} code
33
+ * @param {EntityRefDto} entityRefDto
34
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ addSecondaryLink: (code: string, entityRefDto: EntityRefDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
26
39
  /**
27
40
  * This will create a task. **Required Permissions** \"task-management.tasks.create\"
28
41
  * @summary Create the task
@@ -57,11 +70,11 @@ export declare const TasksApiAxiosParamCreator: (configuration?: Configuration)
57
70
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
58
71
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
59
72
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
60
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
73
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code&lt;/i&gt;
61
74
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: subject, description&lt;/i&gt;
62
75
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, entityType, entityCode, status, priority&lt;/i&gt;
63
76
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: categories, status&lt;i&gt;
64
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
77
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code&lt;/i&gt;
65
78
  * @param {*} [options] Override http request option.
66
79
  * @throws {RequiredError}
67
80
  */
@@ -76,12 +89,33 @@ export declare const TasksApiAxiosParamCreator: (configuration?: Configuration)
76
89
  * @throws {RequiredError}
77
90
  */
78
91
  patchTask: (code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
92
+ /**
93
+ * 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\"
94
+ * @summary Delete the task secondary link
95
+ * @param {string} code
96
+ * @param {string} linkType
97
+ * @param {string} linkCode
98
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ removeSecondaryLink: (code: string, linkType: string, linkCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
79
103
  };
80
104
  /**
81
105
  * TasksApi - functional programming interface
82
106
  * @export
83
107
  */
84
108
  export declare const TasksApiFp: (configuration?: Configuration) => {
109
+ /**
110
+ * 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\"
111
+ * @summary Create the task secondary link
112
+ * @param {string} code
113
+ * @param {EntityRefDto} entityRefDto
114
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ addSecondaryLink(code: string, entityRefDto: EntityRefDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AddSecondaryLinkResponseClass>>;
85
119
  /**
86
120
  * This will create a task. **Required Permissions** \"task-management.tasks.create\"
87
121
  * @summary Create the task
@@ -116,11 +150,11 @@ export declare const TasksApiFp: (configuration?: Configuration) => {
116
150
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
117
151
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
118
152
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
119
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
153
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code&lt;/i&gt;
120
154
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: subject, description&lt;/i&gt;
121
155
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, entityType, entityCode, status, priority&lt;/i&gt;
122
156
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: categories, status&lt;i&gt;
123
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
157
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code&lt;/i&gt;
124
158
  * @param {*} [options] Override http request option.
125
159
  * @throws {RequiredError}
126
160
  */
@@ -135,12 +169,33 @@ export declare const TasksApiFp: (configuration?: Configuration) => {
135
169
  * @throws {RequiredError}
136
170
  */
137
171
  patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchTaskResponseClass>>;
172
+ /**
173
+ * 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\"
174
+ * @summary Delete the task secondary link
175
+ * @param {string} code
176
+ * @param {string} linkType
177
+ * @param {string} linkCode
178
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ removeSecondaryLink(code: string, linkType: string, linkCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RemoveSecondaryLinkResponseClass>>;
138
183
  };
139
184
  /**
140
185
  * TasksApi - factory interface
141
186
  * @export
142
187
  */
143
188
  export declare const TasksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
189
+ /**
190
+ * 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\"
191
+ * @summary Create the task secondary link
192
+ * @param {string} code
193
+ * @param {EntityRefDto} entityRefDto
194
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ addSecondaryLink(code: string, entityRefDto: EntityRefDto, authorization?: string, options?: any): AxiosPromise<AddSecondaryLinkResponseClass>;
144
199
  /**
145
200
  * This will create a task. **Required Permissions** \"task-management.tasks.create\"
146
201
  * @summary Create the task
@@ -175,11 +230,11 @@ export declare const TasksApiFactory: (configuration?: Configuration, basePath?:
175
230
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
176
231
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
177
232
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
178
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
233
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code&lt;/i&gt;
179
234
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: subject, description&lt;/i&gt;
180
235
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, entityType, entityCode, status, priority&lt;/i&gt;
181
236
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: categories, status&lt;i&gt;
182
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
237
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code&lt;/i&gt;
183
238
  * @param {*} [options] Override http request option.
184
239
  * @throws {RequiredError}
185
240
  */
@@ -194,7 +249,43 @@ export declare const TasksApiFactory: (configuration?: Configuration, basePath?:
194
249
  * @throws {RequiredError}
195
250
  */
196
251
  patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: any): AxiosPromise<PatchTaskResponseClass>;
252
+ /**
253
+ * 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\"
254
+ * @summary Delete the task secondary link
255
+ * @param {string} code
256
+ * @param {string} linkType
257
+ * @param {string} linkCode
258
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ removeSecondaryLink(code: string, linkType: string, linkCode: string, authorization?: string, options?: any): AxiosPromise<RemoveSecondaryLinkResponseClass>;
197
263
  };
264
+ /**
265
+ * Request parameters for addSecondaryLink operation in TasksApi.
266
+ * @export
267
+ * @interface TasksApiAddSecondaryLinkRequest
268
+ */
269
+ export interface TasksApiAddSecondaryLinkRequest {
270
+ /**
271
+ *
272
+ * @type {string}
273
+ * @memberof TasksApiAddSecondaryLink
274
+ */
275
+ readonly code: string;
276
+ /**
277
+ *
278
+ * @type {EntityRefDto}
279
+ * @memberof TasksApiAddSecondaryLink
280
+ */
281
+ readonly entityRefDto: EntityRefDto;
282
+ /**
283
+ * Bearer Token: provided by the login endpoint under the name accessToken.
284
+ * @type {string}
285
+ * @memberof TasksApiAddSecondaryLink
286
+ */
287
+ readonly authorization?: string;
288
+ }
198
289
  /**
199
290
  * Request parameters for createTask operation in TasksApi.
200
291
  * @export
@@ -283,7 +374,7 @@ export interface TasksApiListTasksRequest {
283
374
  */
284
375
  readonly pageToken?: string;
285
376
  /**
286
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
377
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code&lt;/i&gt;
287
378
  * @type {string}
288
379
  * @memberof TasksApiListTasks
289
380
  */
@@ -307,7 +398,7 @@ export interface TasksApiListTasksRequest {
307
398
  */
308
399
  readonly expand?: string;
309
400
  /**
310
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
401
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code&lt;/i&gt;
311
402
  * @type {string}
312
403
  * @memberof TasksApiListTasks
313
404
  */
@@ -338,6 +429,37 @@ export interface TasksApiPatchTaskRequest {
338
429
  */
339
430
  readonly authorization?: string;
340
431
  }
432
+ /**
433
+ * Request parameters for removeSecondaryLink operation in TasksApi.
434
+ * @export
435
+ * @interface TasksApiRemoveSecondaryLinkRequest
436
+ */
437
+ export interface TasksApiRemoveSecondaryLinkRequest {
438
+ /**
439
+ *
440
+ * @type {string}
441
+ * @memberof TasksApiRemoveSecondaryLink
442
+ */
443
+ readonly code: string;
444
+ /**
445
+ *
446
+ * @type {string}
447
+ * @memberof TasksApiRemoveSecondaryLink
448
+ */
449
+ readonly linkType: string;
450
+ /**
451
+ *
452
+ * @type {string}
453
+ * @memberof TasksApiRemoveSecondaryLink
454
+ */
455
+ readonly linkCode: string;
456
+ /**
457
+ * Bearer Token: provided by the login endpoint under the name accessToken.
458
+ * @type {string}
459
+ * @memberof TasksApiRemoveSecondaryLink
460
+ */
461
+ readonly authorization?: string;
462
+ }
341
463
  /**
342
464
  * TasksApi - object-oriented interface
343
465
  * @export
@@ -345,6 +467,15 @@ export interface TasksApiPatchTaskRequest {
345
467
  * @extends {BaseAPI}
346
468
  */
347
469
  export declare class TasksApi extends BaseAPI {
470
+ /**
471
+ * 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\"
472
+ * @summary Create the task secondary link
473
+ * @param {TasksApiAddSecondaryLinkRequest} requestParameters Request parameters.
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ * @memberof TasksApi
477
+ */
478
+ addSecondaryLink(requestParameters: TasksApiAddSecondaryLinkRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AddSecondaryLinkResponseClass, any, {}, any>>;
348
479
  /**
349
480
  * This will create a task. **Required Permissions** \"task-management.tasks.create\"
350
481
  * @summary Create the task
@@ -353,7 +484,7 @@ export declare class TasksApi extends BaseAPI {
353
484
  * @throws {RequiredError}
354
485
  * @memberof TasksApi
355
486
  */
356
- createTask(requestParameters: TasksApiCreateTaskRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateTaskResponseClass, any, {}>>;
487
+ createTask(requestParameters: TasksApiCreateTaskRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateTaskResponseClass, any, {}, any>>;
357
488
  /**
358
489
  * This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\"
359
490
  * @summary Delete the task
@@ -362,7 +493,7 @@ export declare class TasksApi extends BaseAPI {
362
493
  * @throws {RequiredError}
363
494
  * @memberof TasksApi
364
495
  */
365
- deleteTask(requestParameters: TasksApiDeleteTaskRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
496
+ deleteTask(requestParameters: TasksApiDeleteTaskRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
366
497
  /**
367
498
  * This will get a task by code. **Required Permissions** \"task-management.tasks.view\"
368
499
  * @summary Retrieve the task
@@ -371,7 +502,7 @@ export declare class TasksApi extends BaseAPI {
371
502
  * @throws {RequiredError}
372
503
  * @memberof TasksApi
373
504
  */
374
- getTask(requestParameters: TasksApiGetTaskRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetTaskResponseClass, any, {}>>;
505
+ getTask(requestParameters: TasksApiGetTaskRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetTaskResponseClass, any, {}, any>>;
375
506
  /**
376
507
  * Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\"
377
508
  * @summary List tasks
@@ -380,7 +511,7 @@ export declare class TasksApi extends BaseAPI {
380
511
  * @throws {RequiredError}
381
512
  * @memberof TasksApi
382
513
  */
383
- listTasks(requestParameters?: TasksApiListTasksRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTasksResponseClass, any, {}>>;
514
+ listTasks(requestParameters?: TasksApiListTasksRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTasksResponseClass, any, {}, any>>;
384
515
  /**
385
516
  * This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
386
517
  * @summary Update the task
@@ -389,5 +520,14 @@ export declare class TasksApi extends BaseAPI {
389
520
  * @throws {RequiredError}
390
521
  * @memberof TasksApi
391
522
  */
392
- patchTask(requestParameters: TasksApiPatchTaskRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchTaskResponseClass, any, {}>>;
523
+ patchTask(requestParameters: TasksApiPatchTaskRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchTaskResponseClass, any, {}, any>>;
524
+ /**
525
+ * 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\"
526
+ * @summary Delete the task secondary link
527
+ * @param {TasksApiRemoveSecondaryLinkRequest} requestParameters Request parameters.
528
+ * @param {*} [options] Override http request option.
529
+ * @throws {RequiredError}
530
+ * @memberof TasksApi
531
+ */
532
+ removeSecondaryLink(requestParameters: TasksApiRemoveSecondaryLinkRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RemoveSecondaryLinkResponseClass, any, {}, any>>;
393
533
  }