@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
package/dist/api/tasks-api.d.ts
CHANGED
|
@@ -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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
73
|
+
* @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>
|
|
61
74
|
* @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>
|
|
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.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, entityType, entityCode, status, priority</i>
|
|
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.<br/> <br/> <i>Allowed values: categories, status<i>
|
|
64
|
-
* @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>
|
|
77
|
+
* @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>
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
153
|
+
* @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>
|
|
120
154
|
* @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>
|
|
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.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, entityType, entityCode, status, priority</i>
|
|
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.<br/> <br/> <i>Allowed values: categories, status<i>
|
|
123
|
-
* @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>
|
|
157
|
+
* @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>
|
|
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=1, your subsequent call can include pageToken=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.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
233
|
+
* @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>
|
|
179
234
|
* @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>
|
|
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.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, entityType, entityCode, status, priority</i>
|
|
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.<br/> <br/> <i>Allowed values: categories, status<i>
|
|
182
|
-
* @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>
|
|
237
|
+
* @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>
|
|
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.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
377
|
+
* 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>
|
|
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.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
401
|
+
* 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>
|
|
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, {}>>;
|
|
348
479
|
/**
|
|
349
480
|
* This will create a task. **Required Permissions** \"task-management.tasks.create\"
|
|
350
481
|
* @summary Create the task
|
|
@@ -390,4 +521,13 @@ export declare class TasksApi extends BaseAPI {
|
|
|
390
521
|
* @memberof TasksApi
|
|
391
522
|
*/
|
|
392
523
|
patchTask(requestParameters: TasksApiPatchTaskRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchTaskResponseClass, 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, {}>>;
|
|
393
533
|
}
|
package/dist/api/tasks-api.js
CHANGED
|
@@ -96,6 +96,59 @@ var FormData = require('form-data');
|
|
|
96
96
|
var TasksApiAxiosParamCreator = 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 task. **Required Permissions** \"task-management.tasks.create\"
|
|
101
154
|
* @summary Create the task
|
|
@@ -251,11 +304,11 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
251
304
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
252
305
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
253
306
|
* @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.
|
|
254
|
-
* @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>
|
|
307
|
+
* @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>
|
|
255
308
|
* @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>
|
|
256
309
|
* @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>
|
|
257
310
|
* @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>
|
|
258
|
-
* @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>
|
|
311
|
+
* @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>
|
|
259
312
|
* @param {*} [options] Override http request option.
|
|
260
313
|
* @throws {RequiredError}
|
|
261
314
|
*/
|
|
@@ -370,6 +423,62 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
370
423
|
});
|
|
371
424
|
});
|
|
372
425
|
},
|
|
426
|
+
/**
|
|
427
|
+
* 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\"
|
|
428
|
+
* @summary Delete the task secondary link
|
|
429
|
+
* @param {string} code
|
|
430
|
+
* @param {string} linkType
|
|
431
|
+
* @param {string} linkCode
|
|
432
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
433
|
+
* @param {*} [options] Override http request option.
|
|
434
|
+
* @throws {RequiredError}
|
|
435
|
+
*/
|
|
436
|
+
removeSecondaryLink: function (code, linkType, linkCode, authorization, options) {
|
|
437
|
+
if (options === void 0) { options = {}; }
|
|
438
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
439
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
440
|
+
return __generator(this, function (_a) {
|
|
441
|
+
switch (_a.label) {
|
|
442
|
+
case 0:
|
|
443
|
+
// verify required parameter 'code' is not null or undefined
|
|
444
|
+
(0, common_1.assertParamExists)('removeSecondaryLink', 'code', code);
|
|
445
|
+
// verify required parameter 'linkType' is not null or undefined
|
|
446
|
+
(0, common_1.assertParamExists)('removeSecondaryLink', 'linkType', linkType);
|
|
447
|
+
// verify required parameter 'linkCode' is not null or undefined
|
|
448
|
+
(0, common_1.assertParamExists)('removeSecondaryLink', 'linkCode', linkCode);
|
|
449
|
+
localVarPath = "/taskservice/v1/tasks/{code}/secondary-links/{linkType}/{linkCode}"
|
|
450
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)))
|
|
451
|
+
.replace("{".concat("linkType", "}"), encodeURIComponent(String(linkType)))
|
|
452
|
+
.replace("{".concat("linkCode", "}"), encodeURIComponent(String(linkCode)));
|
|
453
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
454
|
+
if (configuration) {
|
|
455
|
+
baseOptions = configuration.baseOptions;
|
|
456
|
+
baseAccessToken = configuration.accessToken;
|
|
457
|
+
}
|
|
458
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
459
|
+
localVarHeaderParameter = {};
|
|
460
|
+
localVarQueryParameter = {};
|
|
461
|
+
// authentication bearer required
|
|
462
|
+
// http bearer authentication required
|
|
463
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
464
|
+
case 1:
|
|
465
|
+
// authentication bearer required
|
|
466
|
+
// http bearer authentication required
|
|
467
|
+
_a.sent();
|
|
468
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
469
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
470
|
+
}
|
|
471
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
472
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
473
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
474
|
+
return [2 /*return*/, {
|
|
475
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
476
|
+
options: localVarRequestOptions,
|
|
477
|
+
}];
|
|
478
|
+
}
|
|
479
|
+
});
|
|
480
|
+
});
|
|
481
|
+
},
|
|
373
482
|
};
|
|
374
483
|
};
|
|
375
484
|
exports.TasksApiAxiosParamCreator = TasksApiAxiosParamCreator;
|
|
@@ -380,6 +489,28 @@ exports.TasksApiAxiosParamCreator = TasksApiAxiosParamCreator;
|
|
|
380
489
|
var TasksApiFp = function (configuration) {
|
|
381
490
|
var localVarAxiosParamCreator = (0, exports.TasksApiAxiosParamCreator)(configuration);
|
|
382
491
|
return {
|
|
492
|
+
/**
|
|
493
|
+
* 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\"
|
|
494
|
+
* @summary Create the task secondary link
|
|
495
|
+
* @param {string} code
|
|
496
|
+
* @param {EntityRefDto} entityRefDto
|
|
497
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
498
|
+
* @param {*} [options] Override http request option.
|
|
499
|
+
* @throws {RequiredError}
|
|
500
|
+
*/
|
|
501
|
+
addSecondaryLink: function (code, entityRefDto, authorization, options) {
|
|
502
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
503
|
+
var localVarAxiosArgs;
|
|
504
|
+
return __generator(this, function (_a) {
|
|
505
|
+
switch (_a.label) {
|
|
506
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.addSecondaryLink(code, entityRefDto, authorization, options)];
|
|
507
|
+
case 1:
|
|
508
|
+
localVarAxiosArgs = _a.sent();
|
|
509
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
510
|
+
}
|
|
511
|
+
});
|
|
512
|
+
});
|
|
513
|
+
},
|
|
383
514
|
/**
|
|
384
515
|
* This will create a task. **Required Permissions** \"task-management.tasks.create\"
|
|
385
516
|
* @summary Create the task
|
|
@@ -450,11 +581,11 @@ var TasksApiFp = function (configuration) {
|
|
|
450
581
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
451
582
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
452
583
|
* @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.
|
|
453
|
-
* @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>
|
|
584
|
+
* @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>
|
|
454
585
|
* @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>
|
|
455
586
|
* @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>
|
|
456
587
|
* @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>
|
|
457
|
-
* @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>
|
|
588
|
+
* @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>
|
|
458
589
|
* @param {*} [options] Override http request option.
|
|
459
590
|
* @throws {RequiredError}
|
|
460
591
|
*/
|
|
@@ -493,6 +624,29 @@ var TasksApiFp = function (configuration) {
|
|
|
493
624
|
});
|
|
494
625
|
});
|
|
495
626
|
},
|
|
627
|
+
/**
|
|
628
|
+
* 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\"
|
|
629
|
+
* @summary Delete the task secondary link
|
|
630
|
+
* @param {string} code
|
|
631
|
+
* @param {string} linkType
|
|
632
|
+
* @param {string} linkCode
|
|
633
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
634
|
+
* @param {*} [options] Override http request option.
|
|
635
|
+
* @throws {RequiredError}
|
|
636
|
+
*/
|
|
637
|
+
removeSecondaryLink: function (code, linkType, linkCode, authorization, options) {
|
|
638
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
639
|
+
var localVarAxiosArgs;
|
|
640
|
+
return __generator(this, function (_a) {
|
|
641
|
+
switch (_a.label) {
|
|
642
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeSecondaryLink(code, linkType, linkCode, authorization, options)];
|
|
643
|
+
case 1:
|
|
644
|
+
localVarAxiosArgs = _a.sent();
|
|
645
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
646
|
+
}
|
|
647
|
+
});
|
|
648
|
+
});
|
|
649
|
+
},
|
|
496
650
|
};
|
|
497
651
|
};
|
|
498
652
|
exports.TasksApiFp = TasksApiFp;
|
|
@@ -503,6 +657,18 @@ exports.TasksApiFp = TasksApiFp;
|
|
|
503
657
|
var TasksApiFactory = function (configuration, basePath, axios) {
|
|
504
658
|
var localVarFp = (0, exports.TasksApiFp)(configuration);
|
|
505
659
|
return {
|
|
660
|
+
/**
|
|
661
|
+
* 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\"
|
|
662
|
+
* @summary Create the task secondary link
|
|
663
|
+
* @param {string} code
|
|
664
|
+
* @param {EntityRefDto} entityRefDto
|
|
665
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
666
|
+
* @param {*} [options] Override http request option.
|
|
667
|
+
* @throws {RequiredError}
|
|
668
|
+
*/
|
|
669
|
+
addSecondaryLink: function (code, entityRefDto, authorization, options) {
|
|
670
|
+
return localVarFp.addSecondaryLink(code, entityRefDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
671
|
+
},
|
|
506
672
|
/**
|
|
507
673
|
* This will create a task. **Required Permissions** \"task-management.tasks.create\"
|
|
508
674
|
* @summary Create the task
|
|
@@ -543,11 +709,11 @@ var TasksApiFactory = function (configuration, basePath, axios) {
|
|
|
543
709
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
544
710
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
545
711
|
* @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.
|
|
546
|
-
* @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>
|
|
712
|
+
* @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>
|
|
547
713
|
* @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>
|
|
548
714
|
* @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>
|
|
549
715
|
* @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>
|
|
550
|
-
* @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>
|
|
716
|
+
* @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>
|
|
551
717
|
* @param {*} [options] Override http request option.
|
|
552
718
|
* @throws {RequiredError}
|
|
553
719
|
*/
|
|
@@ -566,6 +732,19 @@ var TasksApiFactory = function (configuration, basePath, axios) {
|
|
|
566
732
|
patchTask: function (code, patchTaskRequestDto, authorization, options) {
|
|
567
733
|
return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
568
734
|
},
|
|
735
|
+
/**
|
|
736
|
+
* 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\"
|
|
737
|
+
* @summary Delete the task secondary link
|
|
738
|
+
* @param {string} code
|
|
739
|
+
* @param {string} linkType
|
|
740
|
+
* @param {string} linkCode
|
|
741
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
742
|
+
* @param {*} [options] Override http request option.
|
|
743
|
+
* @throws {RequiredError}
|
|
744
|
+
*/
|
|
745
|
+
removeSecondaryLink: function (code, linkType, linkCode, authorization, options) {
|
|
746
|
+
return localVarFp.removeSecondaryLink(code, linkType, linkCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
747
|
+
},
|
|
569
748
|
};
|
|
570
749
|
};
|
|
571
750
|
exports.TasksApiFactory = TasksApiFactory;
|
|
@@ -580,6 +759,18 @@ var TasksApi = /** @class */ (function (_super) {
|
|
|
580
759
|
function TasksApi() {
|
|
581
760
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
582
761
|
}
|
|
762
|
+
/**
|
|
763
|
+
* 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\"
|
|
764
|
+
* @summary Create the task secondary link
|
|
765
|
+
* @param {TasksApiAddSecondaryLinkRequest} requestParameters Request parameters.
|
|
766
|
+
* @param {*} [options] Override http request option.
|
|
767
|
+
* @throws {RequiredError}
|
|
768
|
+
* @memberof TasksApi
|
|
769
|
+
*/
|
|
770
|
+
TasksApi.prototype.addSecondaryLink = function (requestParameters, options) {
|
|
771
|
+
var _this = this;
|
|
772
|
+
return (0, exports.TasksApiFp)(this.configuration).addSecondaryLink(requestParameters.code, requestParameters.entityRefDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
773
|
+
};
|
|
583
774
|
/**
|
|
584
775
|
* This will create a task. **Required Permissions** \"task-management.tasks.create\"
|
|
585
776
|
* @summary Create the task
|
|
@@ -641,6 +832,18 @@ var TasksApi = /** @class */ (function (_super) {
|
|
|
641
832
|
var _this = this;
|
|
642
833
|
return (0, exports.TasksApiFp)(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
643
834
|
};
|
|
835
|
+
/**
|
|
836
|
+
* 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\"
|
|
837
|
+
* @summary Delete the task secondary link
|
|
838
|
+
* @param {TasksApiRemoveSecondaryLinkRequest} requestParameters Request parameters.
|
|
839
|
+
* @param {*} [options] Override http request option.
|
|
840
|
+
* @throws {RequiredError}
|
|
841
|
+
* @memberof TasksApi
|
|
842
|
+
*/
|
|
843
|
+
TasksApi.prototype.removeSecondaryLink = function (requestParameters, options) {
|
|
844
|
+
var _this = this;
|
|
845
|
+
return (0, exports.TasksApiFp)(this.configuration).removeSecondaryLink(requestParameters.code, requestParameters.linkType, requestParameters.linkCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
846
|
+
};
|
|
644
847
|
return TasksApi;
|
|
645
848
|
}(base_1.BaseAPI));
|
|
646
849
|
exports.TasksApi = TasksApi;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL TaskService
|
|
3
|
+
* The EMIL Task API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { TaskClass } from './task-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AddSecondaryLinkResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface AddSecondaryLinkResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* task
|
|
21
|
+
* @type {TaskClass}
|
|
22
|
+
* @memberof AddSecondaryLinkResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'task'?: TaskClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL TaskService
|
|
6
|
+
* The EMIL Task API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|