@emilgroup/task-sdk-node 1.0.1-beta.1 → 1.0.1-beta.11
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 +9 -11
- package/README.md +2 -2
- package/api/assignees-api.ts +166 -0
- package/api/categories-api.ts +74 -60
- package/api/statuses-api.ts +70 -56
- package/api/tasks-api.ts +105 -63
- package/api.ts +2 -2
- package/dist/api/assignees-api.d.ts +96 -0
- package/dist/api/{priorities-api.js → assignees-api.js} +41 -141
- package/dist/api/categories-api.d.ts +58 -49
- package/dist/api/categories-api.js +53 -47
- package/dist/api/statuses-api.d.ts +54 -45
- package/dist/api/statuses-api.js +49 -43
- package/dist/api/tasks-api.d.ts +77 -50
- package/dist/api/tasks-api.js +66 -48
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/models/{create-priority-request-dto.d.ts → assignee-class.d.ts} +5 -5
- package/dist/models/category-class.d.ts +6 -0
- package/dist/models/create-category-request-dto.d.ts +7 -1
- package/dist/models/create-status-request-dto.d.ts +7 -1
- package/dist/models/create-task-request-dto.d.ts +31 -13
- package/dist/models/create-task-request-dto.js +6 -0
- package/dist/models/index.d.ts +8 -10
- package/dist/models/index.js +8 -10
- package/dist/models/list-assignees-response-class.d.ts +43 -0
- package/dist/models/patch-category-request-dto.d.ts +36 -0
- package/dist/models/{update-category-response-class.d.ts → patch-category-response-class.d.ts} +3 -3
- package/dist/models/{update-status-request-dto.d.ts → patch-status-request-dto.d.ts} +13 -7
- package/dist/models/{update-status-response-class.d.ts → patch-status-response-class.d.ts} +3 -3
- package/dist/models/patch-task-request-dto.d.ts +108 -0
- package/dist/models/{update-task-response-class.d.ts → patch-task-response-class.d.ts} +3 -3
- package/dist/models/status-class.d.ts +6 -0
- package/dist/models/task-class.d.ts +25 -8
- package/dist/models/task-class.js +6 -0
- package/models/{create-priority-request-dto.ts → assignee-class.ts} +5 -5
- package/models/category-class.ts +6 -0
- package/models/create-category-request-dto.ts +7 -1
- package/models/create-status-request-dto.ts +7 -1
- package/models/create-task-request-dto.ts +34 -13
- package/models/index.ts +8 -10
- package/models/list-assignees-response-class.ts +49 -0
- package/models/{update-category-request-dto.ts → patch-category-request-dto.ts} +13 -7
- package/models/{update-category-response-class.ts → patch-category-response-class.ts} +3 -3
- package/models/{update-status-request-dto.ts → patch-status-request-dto.ts} +13 -7
- package/models/{update-status-response-class.ts → patch-status-response-class.ts} +3 -3
- package/models/patch-task-request-dto.ts +114 -0
- package/models/{update-task-response-class.ts → patch-task-response-class.ts} +3 -3
- package/models/status-class.ts +6 -0
- package/models/task-class.ts +28 -8
- package/package.json +1 -1
- package/api/priorities-api.ts +0 -288
- package/dist/api/priorities-api.d.ts +0 -162
- package/dist/models/create-priority-response-class.d.ts +0 -25
- package/dist/models/get-priority-response-class.d.ts +0 -25
- package/dist/models/priority-class.d.ts +0 -60
- package/dist/models/update-category-request-dto.d.ts +0 -30
- package/dist/models/update-task-request-dto.d.ts +0 -60
- package/dist/models/update-task-request-dto.js +0 -15
- package/dist/models/update-task-response-class.js +0 -15
- package/models/create-priority-response-class.ts +0 -31
- package/models/get-priority-response-class.ts +0 -31
- package/models/priority-class.ts +0 -66
- package/models/update-task-request-dto.ts +0 -66
- /package/dist/models/{create-priority-request-dto.js → assignee-class.js} +0 -0
- /package/dist/models/{create-priority-response-class.js → list-assignees-response-class.js} +0 -0
- /package/dist/models/{get-priority-response-class.js → patch-category-request-dto.js} +0 -0
- /package/dist/models/{priority-class.js → patch-category-response-class.js} +0 -0
- /package/dist/models/{update-category-request-dto.js → patch-status-request-dto.js} +0 -0
- /package/dist/models/{update-category-response-class.js → patch-status-response-class.js} +0 -0
- /package/dist/models/{update-status-request-dto.js → patch-task-request-dto.js} +0 -0
- /package/dist/models/{update-status-response-class.js → patch-task-response-class.js} +0 -0
package/api/tasks-api.ts
CHANGED
|
@@ -29,9 +29,9 @@ import { GetTaskResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListTasksResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
-
import {
|
|
32
|
+
import { PatchTaskRequestDto } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
|
-
import {
|
|
34
|
+
import { PatchTaskResponseClass } from '../models';
|
|
35
35
|
// URLSearchParams not necessarily used
|
|
36
36
|
// @ts-ignore
|
|
37
37
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -90,7 +90,7 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
90
90
|
};
|
|
91
91
|
},
|
|
92
92
|
/**
|
|
93
|
-
* This will delete task.
|
|
93
|
+
* This will delete a task by code.
|
|
94
94
|
* @summary Delete the task
|
|
95
95
|
* @param {string} code Unique identifier for the object.
|
|
96
96
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -135,7 +135,7 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
135
135
|
};
|
|
136
136
|
},
|
|
137
137
|
/**
|
|
138
|
-
* This will get task.
|
|
138
|
+
* This will get a task by code.
|
|
139
139
|
* @summary Retrieve the task
|
|
140
140
|
* @param {string} code
|
|
141
141
|
* @param {string} expand
|
|
@@ -190,14 +190,17 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
190
190
|
* Retrieves a list of tasks.
|
|
191
191
|
* @summary List tasks
|
|
192
192
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
193
|
-
* @param {
|
|
194
|
-
* @param {string} [
|
|
195
|
-
* @param {string} [
|
|
196
|
-
* @param {string} [
|
|
193
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
194
|
+
* @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.
|
|
195
|
+
* @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, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
196
|
+
* @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>
|
|
197
|
+
* @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</i>
|
|
198
|
+
* @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>
|
|
199
|
+
* @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, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
197
200
|
* @param {*} [options] Override http request option.
|
|
198
201
|
* @throws {RequiredError}
|
|
199
202
|
*/
|
|
200
|
-
listTasks: async (authorization?: string, filter?: string,
|
|
203
|
+
listTasks: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
201
204
|
const localVarPath = `/taskservice/v1/tasks`;
|
|
202
205
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
203
206
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -216,12 +219,20 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
216
219
|
// http bearer authentication required
|
|
217
220
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
218
221
|
|
|
222
|
+
if (pageSize !== undefined) {
|
|
223
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if (pageToken !== undefined) {
|
|
227
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
228
|
+
}
|
|
229
|
+
|
|
219
230
|
if (filter !== undefined) {
|
|
220
231
|
localVarQueryParameter['filter'] = filter;
|
|
221
232
|
}
|
|
222
233
|
|
|
223
|
-
if (
|
|
224
|
-
localVarQueryParameter['
|
|
234
|
+
if (search !== undefined) {
|
|
235
|
+
localVarQueryParameter['search'] = search;
|
|
225
236
|
}
|
|
226
237
|
|
|
227
238
|
if (order !== undefined) {
|
|
@@ -232,6 +243,10 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
232
243
|
localVarQueryParameter['expand'] = expand;
|
|
233
244
|
}
|
|
234
245
|
|
|
246
|
+
if (filters !== undefined) {
|
|
247
|
+
localVarQueryParameter['filters'] = filters;
|
|
248
|
+
}
|
|
249
|
+
|
|
235
250
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
236
251
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
237
252
|
}
|
|
@@ -248,19 +263,19 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
248
263
|
};
|
|
249
264
|
},
|
|
250
265
|
/**
|
|
251
|
-
* This will update task.
|
|
266
|
+
* This will partially update a task by code with the provided fields.
|
|
252
267
|
* @summary Update the task
|
|
253
268
|
* @param {string} code
|
|
254
|
-
* @param {
|
|
269
|
+
* @param {PatchTaskRequestDto} patchTaskRequestDto
|
|
255
270
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
256
271
|
* @param {*} [options] Override http request option.
|
|
257
272
|
* @throws {RequiredError}
|
|
258
273
|
*/
|
|
259
|
-
|
|
274
|
+
patchTask: async (code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
260
275
|
// verify required parameter 'code' is not null or undefined
|
|
261
|
-
assertParamExists('
|
|
262
|
-
// verify required parameter '
|
|
263
|
-
assertParamExists('
|
|
276
|
+
assertParamExists('patchTask', 'code', code)
|
|
277
|
+
// verify required parameter 'patchTaskRequestDto' is not null or undefined
|
|
278
|
+
assertParamExists('patchTask', 'patchTaskRequestDto', patchTaskRequestDto)
|
|
264
279
|
const localVarPath = `/taskservice/v1/tasks/{code}`
|
|
265
280
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
266
281
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -272,7 +287,7 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
272
287
|
baseAccessToken = configuration.accessToken;
|
|
273
288
|
}
|
|
274
289
|
|
|
275
|
-
const localVarRequestOptions = { method: '
|
|
290
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
276
291
|
const localVarHeaderParameter = {} as any;
|
|
277
292
|
const localVarQueryParameter = {} as any;
|
|
278
293
|
|
|
@@ -291,7 +306,7 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
291
306
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
292
307
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
293
308
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
294
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
309
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchTaskRequestDto, localVarRequestOptions, configuration)
|
|
295
310
|
|
|
296
311
|
return {
|
|
297
312
|
url: toPathString(localVarUrlObj),
|
|
@@ -321,7 +336,7 @@ export const TasksApiFp = function(configuration?: Configuration) {
|
|
|
321
336
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
322
337
|
},
|
|
323
338
|
/**
|
|
324
|
-
* This will delete task.
|
|
339
|
+
* This will delete a task by code.
|
|
325
340
|
* @summary Delete the task
|
|
326
341
|
* @param {string} code Unique identifier for the object.
|
|
327
342
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -333,7 +348,7 @@ export const TasksApiFp = function(configuration?: Configuration) {
|
|
|
333
348
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
334
349
|
},
|
|
335
350
|
/**
|
|
336
|
-
* This will get task.
|
|
351
|
+
* This will get a task by code.
|
|
337
352
|
* @summary Retrieve the task
|
|
338
353
|
* @param {string} code
|
|
339
354
|
* @param {string} expand
|
|
@@ -349,28 +364,31 @@ export const TasksApiFp = function(configuration?: Configuration) {
|
|
|
349
364
|
* Retrieves a list of tasks.
|
|
350
365
|
* @summary List tasks
|
|
351
366
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
352
|
-
* @param {
|
|
353
|
-
* @param {string} [
|
|
354
|
-
* @param {string} [
|
|
355
|
-
* @param {string} [
|
|
367
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
368
|
+
* @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.
|
|
369
|
+
* @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, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
370
|
+
* @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>
|
|
371
|
+
* @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</i>
|
|
372
|
+
* @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>
|
|
373
|
+
* @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, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
356
374
|
* @param {*} [options] Override http request option.
|
|
357
375
|
* @throws {RequiredError}
|
|
358
376
|
*/
|
|
359
|
-
async listTasks(authorization?: string, filter?: string,
|
|
360
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listTasks(authorization, filter,
|
|
377
|
+
async listTasks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTasksResponseClass>> {
|
|
378
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
361
379
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
362
380
|
},
|
|
363
381
|
/**
|
|
364
|
-
* This will update task.
|
|
382
|
+
* This will partially update a task by code with the provided fields.
|
|
365
383
|
* @summary Update the task
|
|
366
384
|
* @param {string} code
|
|
367
|
-
* @param {
|
|
385
|
+
* @param {PatchTaskRequestDto} patchTaskRequestDto
|
|
368
386
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
369
387
|
* @param {*} [options] Override http request option.
|
|
370
388
|
* @throws {RequiredError}
|
|
371
389
|
*/
|
|
372
|
-
async
|
|
373
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
390
|
+
async patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchTaskResponseClass>> {
|
|
391
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchTask(code, patchTaskRequestDto, authorization, options);
|
|
374
392
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
375
393
|
},
|
|
376
394
|
}
|
|
@@ -395,7 +413,7 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
|
|
|
395
413
|
return localVarFp.createTask(createTaskRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
396
414
|
},
|
|
397
415
|
/**
|
|
398
|
-
* This will delete task.
|
|
416
|
+
* This will delete a task by code.
|
|
399
417
|
* @summary Delete the task
|
|
400
418
|
* @param {string} code Unique identifier for the object.
|
|
401
419
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -406,7 +424,7 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
|
|
|
406
424
|
return localVarFp.deleteTask(code, authorization, options).then((request) => request(axios, basePath));
|
|
407
425
|
},
|
|
408
426
|
/**
|
|
409
|
-
* This will get task.
|
|
427
|
+
* This will get a task by code.
|
|
410
428
|
* @summary Retrieve the task
|
|
411
429
|
* @param {string} code
|
|
412
430
|
* @param {string} expand
|
|
@@ -421,27 +439,30 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
|
|
|
421
439
|
* Retrieves a list of tasks.
|
|
422
440
|
* @summary List tasks
|
|
423
441
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
424
|
-
* @param {
|
|
425
|
-
* @param {string} [
|
|
426
|
-
* @param {string} [
|
|
427
|
-
* @param {string} [
|
|
442
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
443
|
+
* @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.
|
|
444
|
+
* @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, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
445
|
+
* @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>
|
|
446
|
+
* @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</i>
|
|
447
|
+
* @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>
|
|
448
|
+
* @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, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
428
449
|
* @param {*} [options] Override http request option.
|
|
429
450
|
* @throws {RequiredError}
|
|
430
451
|
*/
|
|
431
|
-
listTasks(authorization?: string, filter?: string,
|
|
432
|
-
return localVarFp.listTasks(authorization, filter,
|
|
452
|
+
listTasks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListTasksResponseClass> {
|
|
453
|
+
return localVarFp.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
433
454
|
},
|
|
434
455
|
/**
|
|
435
|
-
* This will update task.
|
|
456
|
+
* This will partially update a task by code with the provided fields.
|
|
436
457
|
* @summary Update the task
|
|
437
458
|
* @param {string} code
|
|
438
|
-
* @param {
|
|
459
|
+
* @param {PatchTaskRequestDto} patchTaskRequestDto
|
|
439
460
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
440
461
|
* @param {*} [options] Override http request option.
|
|
441
462
|
* @throws {RequiredError}
|
|
442
463
|
*/
|
|
443
|
-
|
|
444
|
-
return localVarFp.
|
|
464
|
+
patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: any): AxiosPromise<PatchTaskResponseClass> {
|
|
465
|
+
return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
445
466
|
},
|
|
446
467
|
};
|
|
447
468
|
};
|
|
@@ -530,58 +551,79 @@ export interface TasksApiListTasksRequest {
|
|
|
530
551
|
readonly authorization?: string
|
|
531
552
|
|
|
532
553
|
/**
|
|
533
|
-
*
|
|
554
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
555
|
+
* @type {number}
|
|
556
|
+
* @memberof TasksApiListTasks
|
|
557
|
+
*/
|
|
558
|
+
readonly pageSize?: number
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* 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.
|
|
562
|
+
* @type {string}
|
|
563
|
+
* @memberof TasksApiListTasks
|
|
564
|
+
*/
|
|
565
|
+
readonly pageToken?: string
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* 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, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
534
569
|
* @type {string}
|
|
535
570
|
* @memberof TasksApiListTasks
|
|
536
571
|
*/
|
|
537
572
|
readonly filter?: string
|
|
538
573
|
|
|
539
574
|
/**
|
|
540
|
-
*
|
|
575
|
+
* 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
576
|
* @type {string}
|
|
542
577
|
* @memberof TasksApiListTasks
|
|
543
578
|
*/
|
|
544
|
-
readonly
|
|
579
|
+
readonly search?: string
|
|
545
580
|
|
|
546
581
|
/**
|
|
547
|
-
* 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</i>
|
|
582
|
+
* 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</i>
|
|
548
583
|
* @type {string}
|
|
549
584
|
* @memberof TasksApiListTasks
|
|
550
585
|
*/
|
|
551
586
|
readonly order?: string
|
|
552
587
|
|
|
553
588
|
/**
|
|
554
|
-
* 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:
|
|
589
|
+
* 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>
|
|
555
590
|
* @type {string}
|
|
556
591
|
* @memberof TasksApiListTasks
|
|
557
592
|
*/
|
|
558
593
|
readonly expand?: string
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* 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, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
597
|
+
* @type {string}
|
|
598
|
+
* @memberof TasksApiListTasks
|
|
599
|
+
*/
|
|
600
|
+
readonly filters?: string
|
|
559
601
|
}
|
|
560
602
|
|
|
561
603
|
/**
|
|
562
|
-
* Request parameters for
|
|
604
|
+
* Request parameters for patchTask operation in TasksApi.
|
|
563
605
|
* @export
|
|
564
|
-
* @interface
|
|
606
|
+
* @interface TasksApiPatchTaskRequest
|
|
565
607
|
*/
|
|
566
|
-
export interface
|
|
608
|
+
export interface TasksApiPatchTaskRequest {
|
|
567
609
|
/**
|
|
568
610
|
*
|
|
569
611
|
* @type {string}
|
|
570
|
-
* @memberof
|
|
612
|
+
* @memberof TasksApiPatchTask
|
|
571
613
|
*/
|
|
572
614
|
readonly code: string
|
|
573
615
|
|
|
574
616
|
/**
|
|
575
617
|
*
|
|
576
|
-
* @type {
|
|
577
|
-
* @memberof
|
|
618
|
+
* @type {PatchTaskRequestDto}
|
|
619
|
+
* @memberof TasksApiPatchTask
|
|
578
620
|
*/
|
|
579
|
-
readonly
|
|
621
|
+
readonly patchTaskRequestDto: PatchTaskRequestDto
|
|
580
622
|
|
|
581
623
|
/**
|
|
582
624
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
583
625
|
* @type {string}
|
|
584
|
-
* @memberof
|
|
626
|
+
* @memberof TasksApiPatchTask
|
|
585
627
|
*/
|
|
586
628
|
readonly authorization?: string
|
|
587
629
|
}
|
|
@@ -606,7 +648,7 @@ export class TasksApi extends BaseAPI {
|
|
|
606
648
|
}
|
|
607
649
|
|
|
608
650
|
/**
|
|
609
|
-
* This will delete task.
|
|
651
|
+
* This will delete a task by code.
|
|
610
652
|
* @summary Delete the task
|
|
611
653
|
* @param {TasksApiDeleteTaskRequest} requestParameters Request parameters.
|
|
612
654
|
* @param {*} [options] Override http request option.
|
|
@@ -618,7 +660,7 @@ export class TasksApi extends BaseAPI {
|
|
|
618
660
|
}
|
|
619
661
|
|
|
620
662
|
/**
|
|
621
|
-
* This will get task.
|
|
663
|
+
* This will get a task by code.
|
|
622
664
|
* @summary Retrieve the task
|
|
623
665
|
* @param {TasksApiGetTaskRequest} requestParameters Request parameters.
|
|
624
666
|
* @param {*} [options] Override http request option.
|
|
@@ -638,18 +680,18 @@ export class TasksApi extends BaseAPI {
|
|
|
638
680
|
* @memberof TasksApi
|
|
639
681
|
*/
|
|
640
682
|
public listTasks(requestParameters: TasksApiListTasksRequest = {}, options?: AxiosRequestConfig) {
|
|
641
|
-
return TasksApiFp(this.configuration).listTasks(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
683
|
+
return TasksApiFp(this.configuration).listTasks(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
642
684
|
}
|
|
643
685
|
|
|
644
686
|
/**
|
|
645
|
-
* This will update task.
|
|
687
|
+
* This will partially update a task by code with the provided fields.
|
|
646
688
|
* @summary Update the task
|
|
647
|
-
* @param {
|
|
689
|
+
* @param {TasksApiPatchTaskRequest} requestParameters Request parameters.
|
|
648
690
|
* @param {*} [options] Override http request option.
|
|
649
691
|
* @throws {RequiredError}
|
|
650
692
|
* @memberof TasksApi
|
|
651
693
|
*/
|
|
652
|
-
public
|
|
653
|
-
return TasksApiFp(this.configuration).
|
|
694
|
+
public patchTask(requestParameters: TasksApiPatchTaskRequest, options?: AxiosRequestConfig) {
|
|
695
|
+
return TasksApiFp(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
654
696
|
}
|
|
655
697
|
}
|
package/api.ts
CHANGED
|
@@ -24,18 +24,18 @@ import FormData from 'form-data'
|
|
|
24
24
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
|
+
import { AssigneesApi } from './api';
|
|
27
28
|
import { CategoriesApi } from './api';
|
|
28
29
|
import { DefaultApi } from './api';
|
|
29
30
|
import { HubSpotApi } from './api';
|
|
30
|
-
import { PrioritiesApi } from './api';
|
|
31
31
|
import { StatusesApi } from './api';
|
|
32
32
|
import { TasksApi } from './api';
|
|
33
33
|
|
|
34
34
|
|
|
35
|
+
export * from './api/assignees-api';
|
|
35
36
|
export * from './api/categories-api';
|
|
36
37
|
export * from './api/default-api';
|
|
37
38
|
export * from './api/hub-spot-api';
|
|
38
|
-
export * from './api/priorities-api';
|
|
39
39
|
export * from './api/statuses-api';
|
|
40
40
|
export * from './api/tasks-api';
|
|
41
41
|
|
|
@@ -0,0 +1,96 @@
|
|
|
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 { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { ListAssigneesResponseClass } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* AssigneesApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const AssigneesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves a list of distinct assignees from tasks.
|
|
23
|
+
* @summary List assignees
|
|
24
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
25
|
+
* @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/>
|
|
26
|
+
* @param {*} [options] Override http request option.
|
|
27
|
+
* @throws {RequiredError}
|
|
28
|
+
*/
|
|
29
|
+
listAssignees: (authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* AssigneesApi - functional programming interface
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const AssigneesApiFp: (configuration?: Configuration) => {
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves a list of distinct assignees from tasks.
|
|
38
|
+
* @summary List assignees
|
|
39
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
40
|
+
* @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/>
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
listAssignees(authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAssigneesResponseClass>>;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* AssigneesApi - factory interface
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const AssigneesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
51
|
+
/**
|
|
52
|
+
* Retrieves a list of distinct assignees from tasks.
|
|
53
|
+
* @summary List assignees
|
|
54
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
55
|
+
* @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/>
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
listAssignees(authorization?: string, expand?: string, options?: any): AxiosPromise<ListAssigneesResponseClass>;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Request parameters for listAssignees operation in AssigneesApi.
|
|
63
|
+
* @export
|
|
64
|
+
* @interface AssigneesApiListAssigneesRequest
|
|
65
|
+
*/
|
|
66
|
+
export interface AssigneesApiListAssigneesRequest {
|
|
67
|
+
/**
|
|
68
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof AssigneesApiListAssignees
|
|
71
|
+
*/
|
|
72
|
+
readonly authorization?: string;
|
|
73
|
+
/**
|
|
74
|
+
* 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/>
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof AssigneesApiListAssignees
|
|
77
|
+
*/
|
|
78
|
+
readonly expand?: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* AssigneesApi - object-oriented interface
|
|
82
|
+
* @export
|
|
83
|
+
* @class AssigneesApi
|
|
84
|
+
* @extends {BaseAPI}
|
|
85
|
+
*/
|
|
86
|
+
export declare class AssigneesApi extends BaseAPI {
|
|
87
|
+
/**
|
|
88
|
+
* Retrieves a list of distinct assignees from tasks.
|
|
89
|
+
* @summary List assignees
|
|
90
|
+
* @param {AssigneesApiListAssigneesRequest} requestParameters Request parameters.
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
* @memberof AssigneesApi
|
|
94
|
+
*/
|
|
95
|
+
listAssignees(requestParameters?: AssigneesApiListAssigneesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListAssigneesResponseClass, any, {}>>;
|
|
96
|
+
}
|