@emilgroup/task-sdk 1.0.1-beta.9 → 1.1.1-beta.13
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 +3 -0
- package/README.md +2 -2
- package/api/assignees-api.ts +162 -0
- package/api/categories-api.ts +85 -59
- package/api/default-api.ts +1 -1
- package/api/hub-spot-api.ts +4 -4
- package/api/statuses-api.ts +45 -47
- package/api/tasks-api.ts +49 -51
- package/api.ts +2 -0
- package/dist/api/assignees-api.d.ts +96 -0
- package/dist/api/assignees-api.js +224 -0
- package/dist/api/categories-api.d.ts +65 -47
- package/dist/api/categories-api.js +59 -49
- package/dist/api/default-api.js +1 -1
- package/dist/api/hub-spot-api.d.ts +4 -4
- package/dist/api/hub-spot-api.js +4 -4
- package/dist/api/statuses-api.d.ts +42 -42
- package/dist/api/statuses-api.js +38 -40
- package/dist/api/tasks-api.d.ts +46 -46
- package/dist/api/tasks-api.js +41 -43
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/assignee-class.d.ts +24 -0
- package/dist/models/assignee-class.js +15 -0
- package/dist/models/create-status-request-dto.d.ts +6 -0
- package/dist/models/create-task-request-dto.d.ts +23 -4
- package/dist/models/create-task-request-dto.js +7 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/list-assignees-response-class.d.ts +43 -0
- package/dist/models/list-assignees-response-class.js +15 -0
- package/dist/models/patch-status-request-dto.d.ts +6 -0
- package/dist/models/patch-task-request-dto.d.ts +36 -5
- package/dist/models/patch-task-request-dto.js +7 -0
- package/dist/models/status-class.d.ts +6 -0
- package/dist/models/task-class.d.ts +34 -4
- package/models/assignee-class.ts +30 -0
- package/models/create-status-request-dto.ts +6 -0
- package/models/create-task-request-dto.ts +24 -4
- package/models/index.ts +2 -0
- package/models/list-assignees-response-class.ts +49 -0
- package/models/patch-status-request-dto.ts +6 -0
- package/models/patch-task-request-dto.ts +39 -5
- package/models/status-class.ts +6 -0
- package/models/task-class.ts +34 -4
- package/package.json +2 -1
package/api/statuses-api.ts
CHANGED
|
@@ -39,7 +39,7 @@ import { PatchStatusResponseClass } from '../models';
|
|
|
39
39
|
export const StatusesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
40
|
return {
|
|
41
41
|
/**
|
|
42
|
-
* This will create a status.
|
|
42
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
43
43
|
* @summary Create the status
|
|
44
44
|
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
45
45
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -86,7 +86,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
86
86
|
};
|
|
87
87
|
},
|
|
88
88
|
/**
|
|
89
|
-
* This will delete status.
|
|
89
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
90
90
|
* @summary Delete the status
|
|
91
91
|
* @param {string} code Unique identifier for the object.
|
|
92
92
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -131,19 +131,17 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
131
131
|
};
|
|
132
132
|
},
|
|
133
133
|
/**
|
|
134
|
-
* Get status by code.
|
|
134
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
135
135
|
* @summary Retrieve the status
|
|
136
136
|
* @param {string} code
|
|
137
|
-
* @param {string} expand
|
|
138
137
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
138
|
+
* @param {string} [expand] Expand to fetch additional information about the status.
|
|
139
139
|
* @param {*} [options] Override http request option.
|
|
140
140
|
* @throws {RequiredError}
|
|
141
141
|
*/
|
|
142
|
-
getStatus: async (code: string,
|
|
142
|
+
getStatus: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
143
143
|
// verify required parameter 'code' is not null or undefined
|
|
144
144
|
assertParamExists('getStatus', 'code', code)
|
|
145
|
-
// verify required parameter 'expand' is not null or undefined
|
|
146
|
-
assertParamExists('getStatus', 'expand', expand)
|
|
147
145
|
const localVarPath = `/taskservice/v1/statuses/{code}`
|
|
148
146
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
149
147
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -183,12 +181,12 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
183
181
|
};
|
|
184
182
|
},
|
|
185
183
|
/**
|
|
186
|
-
* Retrieves a list of statuses.
|
|
184
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
187
185
|
* @summary List statuses
|
|
188
186
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
190
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
191
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields:
|
|
187
|
+
* @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, slug, name, createdAt, updatedAt</i>
|
|
188
|
+
* @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, slug, name, createdAt, updatedAt</i>
|
|
189
|
+
* @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: code, name, slug</i>
|
|
192
190
|
* @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, name, slug</i>
|
|
193
191
|
* @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/>
|
|
194
192
|
* @param {*} [options] Override http request option.
|
|
@@ -249,7 +247,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
249
247
|
};
|
|
250
248
|
},
|
|
251
249
|
/**
|
|
252
|
-
* This will partially update a status by code with the provided fields.
|
|
250
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
253
251
|
* @summary Update the status
|
|
254
252
|
* @param {string} code
|
|
255
253
|
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
@@ -310,7 +308,7 @@ export const StatusesApiFp = function(configuration?: Configuration) {
|
|
|
310
308
|
const localVarAxiosParamCreator = StatusesApiAxiosParamCreator(configuration)
|
|
311
309
|
return {
|
|
312
310
|
/**
|
|
313
|
-
* This will create a status.
|
|
311
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
314
312
|
* @summary Create the status
|
|
315
313
|
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
316
314
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -322,7 +320,7 @@ export const StatusesApiFp = function(configuration?: Configuration) {
|
|
|
322
320
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
323
321
|
},
|
|
324
322
|
/**
|
|
325
|
-
* This will delete status.
|
|
323
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
326
324
|
* @summary Delete the status
|
|
327
325
|
* @param {string} code Unique identifier for the object.
|
|
328
326
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -334,25 +332,25 @@ export const StatusesApiFp = function(configuration?: Configuration) {
|
|
|
334
332
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
335
333
|
},
|
|
336
334
|
/**
|
|
337
|
-
* Get status by code.
|
|
335
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
338
336
|
* @summary Retrieve the status
|
|
339
337
|
* @param {string} code
|
|
340
|
-
* @param {string} expand
|
|
341
338
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
339
|
+
* @param {string} [expand] Expand to fetch additional information about the status.
|
|
342
340
|
* @param {*} [options] Override http request option.
|
|
343
341
|
* @throws {RequiredError}
|
|
344
342
|
*/
|
|
345
|
-
async getStatus(code: string,
|
|
346
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getStatus(code,
|
|
343
|
+
async getStatus(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStatusResponseClass>> {
|
|
344
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStatus(code, authorization, expand, options);
|
|
347
345
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
348
346
|
},
|
|
349
347
|
/**
|
|
350
|
-
* Retrieves a list of statuses.
|
|
348
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
351
349
|
* @summary List statuses
|
|
352
350
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
353
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
354
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
355
|
-
* @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:
|
|
351
|
+
* @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, slug, name, createdAt, updatedAt</i>
|
|
352
|
+
* @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, slug, name, createdAt, updatedAt</i>
|
|
353
|
+
* @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: code, name, slug</i>
|
|
356
354
|
* @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, name, slug</i>
|
|
357
355
|
* @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/>
|
|
358
356
|
* @param {*} [options] Override http request option.
|
|
@@ -363,7 +361,7 @@ export const StatusesApiFp = function(configuration?: Configuration) {
|
|
|
363
361
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
362
|
},
|
|
365
363
|
/**
|
|
366
|
-
* This will partially update a status by code with the provided fields.
|
|
364
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
367
365
|
* @summary Update the status
|
|
368
366
|
* @param {string} code
|
|
369
367
|
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
@@ -386,7 +384,7 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
|
|
|
386
384
|
const localVarFp = StatusesApiFp(configuration)
|
|
387
385
|
return {
|
|
388
386
|
/**
|
|
389
|
-
* This will create a status.
|
|
387
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
390
388
|
* @summary Create the status
|
|
391
389
|
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
392
390
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -397,7 +395,7 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
|
|
|
397
395
|
return localVarFp.createStatus(createStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
398
396
|
},
|
|
399
397
|
/**
|
|
400
|
-
* This will delete status.
|
|
398
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
401
399
|
* @summary Delete the status
|
|
402
400
|
* @param {string} code Unique identifier for the object.
|
|
403
401
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -408,24 +406,24 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
|
|
|
408
406
|
return localVarFp.deleteStatus(code, authorization, options).then((request) => request(axios, basePath));
|
|
409
407
|
},
|
|
410
408
|
/**
|
|
411
|
-
* Get status by code.
|
|
409
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
412
410
|
* @summary Retrieve the status
|
|
413
411
|
* @param {string} code
|
|
414
|
-
* @param {string} expand
|
|
415
412
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
413
|
+
* @param {string} [expand] Expand to fetch additional information about the status.
|
|
416
414
|
* @param {*} [options] Override http request option.
|
|
417
415
|
* @throws {RequiredError}
|
|
418
416
|
*/
|
|
419
|
-
getStatus(code: string,
|
|
420
|
-
return localVarFp.getStatus(code,
|
|
417
|
+
getStatus(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetStatusResponseClass> {
|
|
418
|
+
return localVarFp.getStatus(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
421
419
|
},
|
|
422
420
|
/**
|
|
423
|
-
* Retrieves a list of statuses.
|
|
421
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
424
422
|
* @summary List statuses
|
|
425
423
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
426
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
427
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
428
|
-
* @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:
|
|
424
|
+
* @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, slug, name, createdAt, updatedAt</i>
|
|
425
|
+
* @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, slug, name, createdAt, updatedAt</i>
|
|
426
|
+
* @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: code, name, slug</i>
|
|
429
427
|
* @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, name, slug</i>
|
|
430
428
|
* @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/>
|
|
431
429
|
* @param {*} [options] Override http request option.
|
|
@@ -435,7 +433,7 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
|
|
|
435
433
|
return localVarFp.listStatuses(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
436
434
|
},
|
|
437
435
|
/**
|
|
438
|
-
* This will partially update a status by code with the provided fields.
|
|
436
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
439
437
|
* @summary Update the status
|
|
440
438
|
* @param {string} code
|
|
441
439
|
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
@@ -505,18 +503,18 @@ export interface StatusesApiGetStatusRequest {
|
|
|
505
503
|
readonly code: string
|
|
506
504
|
|
|
507
505
|
/**
|
|
508
|
-
*
|
|
506
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
509
507
|
* @type {string}
|
|
510
508
|
* @memberof StatusesApiGetStatus
|
|
511
509
|
*/
|
|
512
|
-
readonly
|
|
510
|
+
readonly authorization?: string
|
|
513
511
|
|
|
514
512
|
/**
|
|
515
|
-
*
|
|
513
|
+
* Expand to fetch additional information about the status.
|
|
516
514
|
* @type {string}
|
|
517
515
|
* @memberof StatusesApiGetStatus
|
|
518
516
|
*/
|
|
519
|
-
readonly
|
|
517
|
+
readonly expand?: string
|
|
520
518
|
}
|
|
521
519
|
|
|
522
520
|
/**
|
|
@@ -533,21 +531,21 @@ export interface StatusesApiListStatusesRequest {
|
|
|
533
531
|
readonly authorization?: string
|
|
534
532
|
|
|
535
533
|
/**
|
|
536
|
-
* Filter the response by one or multiple fields.
|
|
534
|
+
* 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, slug, name, createdAt, updatedAt</i>
|
|
537
535
|
* @type {string}
|
|
538
536
|
* @memberof StatusesApiListStatuses
|
|
539
537
|
*/
|
|
540
538
|
readonly filter?: string
|
|
541
539
|
|
|
542
540
|
/**
|
|
543
|
-
* Filters the response by one or multiple fields.
|
|
541
|
+
* 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, slug, name, createdAt, updatedAt</i>
|
|
544
542
|
* @type {string}
|
|
545
543
|
* @memberof StatusesApiListStatuses
|
|
546
544
|
*/
|
|
547
545
|
readonly filters?: string
|
|
548
546
|
|
|
549
547
|
/**
|
|
550
|
-
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields:
|
|
548
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i>
|
|
551
549
|
* @type {string}
|
|
552
550
|
* @memberof StatusesApiListStatuses
|
|
553
551
|
*/
|
|
@@ -604,7 +602,7 @@ export interface StatusesApiPatchStatusRequest {
|
|
|
604
602
|
*/
|
|
605
603
|
export class StatusesApi extends BaseAPI {
|
|
606
604
|
/**
|
|
607
|
-
* This will create a status.
|
|
605
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
608
606
|
* @summary Create the status
|
|
609
607
|
* @param {StatusesApiCreateStatusRequest} requestParameters Request parameters.
|
|
610
608
|
* @param {*} [options] Override http request option.
|
|
@@ -616,7 +614,7 @@ export class StatusesApi extends BaseAPI {
|
|
|
616
614
|
}
|
|
617
615
|
|
|
618
616
|
/**
|
|
619
|
-
* This will delete status.
|
|
617
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
620
618
|
* @summary Delete the status
|
|
621
619
|
* @param {StatusesApiDeleteStatusRequest} requestParameters Request parameters.
|
|
622
620
|
* @param {*} [options] Override http request option.
|
|
@@ -628,7 +626,7 @@ export class StatusesApi extends BaseAPI {
|
|
|
628
626
|
}
|
|
629
627
|
|
|
630
628
|
/**
|
|
631
|
-
* Get status by code.
|
|
629
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
632
630
|
* @summary Retrieve the status
|
|
633
631
|
* @param {StatusesApiGetStatusRequest} requestParameters Request parameters.
|
|
634
632
|
* @param {*} [options] Override http request option.
|
|
@@ -636,11 +634,11 @@ export class StatusesApi extends BaseAPI {
|
|
|
636
634
|
* @memberof StatusesApi
|
|
637
635
|
*/
|
|
638
636
|
public getStatus(requestParameters: StatusesApiGetStatusRequest, options?: AxiosRequestConfig) {
|
|
639
|
-
return StatusesApiFp(this.configuration).getStatus(requestParameters.code, requestParameters.
|
|
637
|
+
return StatusesApiFp(this.configuration).getStatus(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
640
638
|
}
|
|
641
639
|
|
|
642
640
|
/**
|
|
643
|
-
* Retrieves a list of statuses.
|
|
641
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
644
642
|
* @summary List statuses
|
|
645
643
|
* @param {StatusesApiListStatusesRequest} requestParameters Request parameters.
|
|
646
644
|
* @param {*} [options] Override http request option.
|
|
@@ -652,7 +650,7 @@ export class StatusesApi extends BaseAPI {
|
|
|
652
650
|
}
|
|
653
651
|
|
|
654
652
|
/**
|
|
655
|
-
* This will partially update a status by code with the provided fields.
|
|
653
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
656
654
|
* @summary Update the status
|
|
657
655
|
* @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
|
|
658
656
|
* @param {*} [options] Override http request option.
|
package/api/tasks-api.ts
CHANGED
|
@@ -39,7 +39,7 @@ import { PatchTaskResponseClass } from '../models';
|
|
|
39
39
|
export const TasksApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
40
|
return {
|
|
41
41
|
/**
|
|
42
|
-
* This will create task.
|
|
42
|
+
* This will create a task. **Required Permissions** \"task-management.tasks.create\"
|
|
43
43
|
* @summary Create the task
|
|
44
44
|
* @param {CreateTaskRequestDto} createTaskRequestDto
|
|
45
45
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -86,7 +86,7 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
86
86
|
};
|
|
87
87
|
},
|
|
88
88
|
/**
|
|
89
|
-
* This will delete a task by code.
|
|
89
|
+
* This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\"
|
|
90
90
|
* @summary Delete the task
|
|
91
91
|
* @param {string} code Unique identifier for the object.
|
|
92
92
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -131,19 +131,17 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
131
131
|
};
|
|
132
132
|
},
|
|
133
133
|
/**
|
|
134
|
-
* This will get a task by code.
|
|
134
|
+
* This will get a task by code. **Required Permissions** \"task-management.tasks.view\"
|
|
135
135
|
* @summary Retrieve the task
|
|
136
136
|
* @param {string} code
|
|
137
|
-
* @param {string} expand
|
|
138
137
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
138
|
+
* @param {string} [expand] Expand to fetch additional information about the task.
|
|
139
139
|
* @param {*} [options] Override http request option.
|
|
140
140
|
* @throws {RequiredError}
|
|
141
141
|
*/
|
|
142
|
-
getTask: async (code: string,
|
|
142
|
+
getTask: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
143
143
|
// verify required parameter 'code' is not null or undefined
|
|
144
144
|
assertParamExists('getTask', 'code', code)
|
|
145
|
-
// verify required parameter 'expand' is not null or undefined
|
|
146
|
-
assertParamExists('getTask', 'expand', expand)
|
|
147
145
|
const localVarPath = `/taskservice/v1/tasks/{code}`
|
|
148
146
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
149
147
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -183,16 +181,16 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
183
181
|
};
|
|
184
182
|
},
|
|
185
183
|
/**
|
|
186
|
-
* Retrieves a list of tasks.
|
|
184
|
+
* Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\"
|
|
187
185
|
* @summary List tasks
|
|
188
186
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
187
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
190
188
|
* @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.
|
|
191
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
189
|
+
* @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, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
192
190
|
* @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>
|
|
193
|
-
* @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>
|
|
194
|
-
* @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:
|
|
195
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
191
|
+
* @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>
|
|
192
|
+
* @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>
|
|
193
|
+
* @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, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
196
194
|
* @param {*} [options] Override http request option.
|
|
197
195
|
* @throws {RequiredError}
|
|
198
196
|
*/
|
|
@@ -259,7 +257,7 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
259
257
|
};
|
|
260
258
|
},
|
|
261
259
|
/**
|
|
262
|
-
* This will partially update a task by code with the provided fields.
|
|
260
|
+
* This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
263
261
|
* @summary Update the task
|
|
264
262
|
* @param {string} code
|
|
265
263
|
* @param {PatchTaskRequestDto} patchTaskRequestDto
|
|
@@ -320,7 +318,7 @@ export const TasksApiFp = function(configuration?: Configuration) {
|
|
|
320
318
|
const localVarAxiosParamCreator = TasksApiAxiosParamCreator(configuration)
|
|
321
319
|
return {
|
|
322
320
|
/**
|
|
323
|
-
* This will create task.
|
|
321
|
+
* This will create a task. **Required Permissions** \"task-management.tasks.create\"
|
|
324
322
|
* @summary Create the task
|
|
325
323
|
* @param {CreateTaskRequestDto} createTaskRequestDto
|
|
326
324
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -332,7 +330,7 @@ export const TasksApiFp = function(configuration?: Configuration) {
|
|
|
332
330
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
333
331
|
},
|
|
334
332
|
/**
|
|
335
|
-
* This will delete a task by code.
|
|
333
|
+
* This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\"
|
|
336
334
|
* @summary Delete the task
|
|
337
335
|
* @param {string} code Unique identifier for the object.
|
|
338
336
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -344,29 +342,29 @@ export const TasksApiFp = function(configuration?: Configuration) {
|
|
|
344
342
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
345
343
|
},
|
|
346
344
|
/**
|
|
347
|
-
* This will get a task by code.
|
|
345
|
+
* This will get a task by code. **Required Permissions** \"task-management.tasks.view\"
|
|
348
346
|
* @summary Retrieve the task
|
|
349
347
|
* @param {string} code
|
|
350
|
-
* @param {string} expand
|
|
351
348
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
349
|
+
* @param {string} [expand] Expand to fetch additional information about the task.
|
|
352
350
|
* @param {*} [options] Override http request option.
|
|
353
351
|
* @throws {RequiredError}
|
|
354
352
|
*/
|
|
355
|
-
async getTask(code: string,
|
|
356
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getTask(code,
|
|
353
|
+
async getTask(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTaskResponseClass>> {
|
|
354
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTask(code, authorization, expand, options);
|
|
357
355
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
358
356
|
},
|
|
359
357
|
/**
|
|
360
|
-
* Retrieves a list of tasks.
|
|
358
|
+
* Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\"
|
|
361
359
|
* @summary List tasks
|
|
362
360
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
363
361
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
364
362
|
* @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.
|
|
365
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
363
|
+
* @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, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
366
364
|
* @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>
|
|
367
|
-
* @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>
|
|
368
|
-
* @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:
|
|
369
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
365
|
+
* @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>
|
|
366
|
+
* @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>
|
|
367
|
+
* @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, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
370
368
|
* @param {*} [options] Override http request option.
|
|
371
369
|
* @throws {RequiredError}
|
|
372
370
|
*/
|
|
@@ -375,7 +373,7 @@ export const TasksApiFp = function(configuration?: Configuration) {
|
|
|
375
373
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
376
374
|
},
|
|
377
375
|
/**
|
|
378
|
-
* This will partially update a task by code with the provided fields.
|
|
376
|
+
* This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
379
377
|
* @summary Update the task
|
|
380
378
|
* @param {string} code
|
|
381
379
|
* @param {PatchTaskRequestDto} patchTaskRequestDto
|
|
@@ -398,7 +396,7 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
|
|
|
398
396
|
const localVarFp = TasksApiFp(configuration)
|
|
399
397
|
return {
|
|
400
398
|
/**
|
|
401
|
-
* This will create task.
|
|
399
|
+
* This will create a task. **Required Permissions** \"task-management.tasks.create\"
|
|
402
400
|
* @summary Create the task
|
|
403
401
|
* @param {CreateTaskRequestDto} createTaskRequestDto
|
|
404
402
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -409,7 +407,7 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
|
|
|
409
407
|
return localVarFp.createTask(createTaskRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
410
408
|
},
|
|
411
409
|
/**
|
|
412
|
-
* This will delete a task by code.
|
|
410
|
+
* This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\"
|
|
413
411
|
* @summary Delete the task
|
|
414
412
|
* @param {string} code Unique identifier for the object.
|
|
415
413
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -420,28 +418,28 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
|
|
|
420
418
|
return localVarFp.deleteTask(code, authorization, options).then((request) => request(axios, basePath));
|
|
421
419
|
},
|
|
422
420
|
/**
|
|
423
|
-
* This will get a task by code.
|
|
421
|
+
* This will get a task by code. **Required Permissions** \"task-management.tasks.view\"
|
|
424
422
|
* @summary Retrieve the task
|
|
425
423
|
* @param {string} code
|
|
426
|
-
* @param {string} expand
|
|
427
424
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
425
|
+
* @param {string} [expand] Expand to fetch additional information about the task.
|
|
428
426
|
* @param {*} [options] Override http request option.
|
|
429
427
|
* @throws {RequiredError}
|
|
430
428
|
*/
|
|
431
|
-
getTask(code: string,
|
|
432
|
-
return localVarFp.getTask(code,
|
|
429
|
+
getTask(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetTaskResponseClass> {
|
|
430
|
+
return localVarFp.getTask(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
433
431
|
},
|
|
434
432
|
/**
|
|
435
|
-
* Retrieves a list of tasks.
|
|
433
|
+
* Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\"
|
|
436
434
|
* @summary List tasks
|
|
437
435
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
438
436
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
439
437
|
* @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.
|
|
440
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
438
|
+
* @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, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
441
439
|
* @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>
|
|
442
|
-
* @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>
|
|
443
|
-
* @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:
|
|
444
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
440
|
+
* @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>
|
|
441
|
+
* @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>
|
|
442
|
+
* @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, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
445
443
|
* @param {*} [options] Override http request option.
|
|
446
444
|
* @throws {RequiredError}
|
|
447
445
|
*/
|
|
@@ -449,7 +447,7 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
|
|
|
449
447
|
return localVarFp.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
450
448
|
},
|
|
451
449
|
/**
|
|
452
|
-
* This will partially update a task by code with the provided fields.
|
|
450
|
+
* This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
453
451
|
* @summary Update the task
|
|
454
452
|
* @param {string} code
|
|
455
453
|
* @param {PatchTaskRequestDto} patchTaskRequestDto
|
|
@@ -519,18 +517,18 @@ export interface TasksApiGetTaskRequest {
|
|
|
519
517
|
readonly code: string
|
|
520
518
|
|
|
521
519
|
/**
|
|
522
|
-
*
|
|
520
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
523
521
|
* @type {string}
|
|
524
522
|
* @memberof TasksApiGetTask
|
|
525
523
|
*/
|
|
526
|
-
readonly
|
|
524
|
+
readonly authorization?: string
|
|
527
525
|
|
|
528
526
|
/**
|
|
529
|
-
*
|
|
527
|
+
* Expand to fetch additional information about the task.
|
|
530
528
|
* @type {string}
|
|
531
529
|
* @memberof TasksApiGetTask
|
|
532
530
|
*/
|
|
533
|
-
readonly
|
|
531
|
+
readonly expand?: string
|
|
534
532
|
}
|
|
535
533
|
|
|
536
534
|
/**
|
|
@@ -561,7 +559,7 @@ export interface TasksApiListTasksRequest {
|
|
|
561
559
|
readonly pageToken?: string
|
|
562
560
|
|
|
563
561
|
/**
|
|
564
|
-
* Filter the response by one or multiple fields.
|
|
562
|
+
* 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, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
565
563
|
* @type {string}
|
|
566
564
|
* @memberof TasksApiListTasks
|
|
567
565
|
*/
|
|
@@ -575,21 +573,21 @@ export interface TasksApiListTasksRequest {
|
|
|
575
573
|
readonly search?: string
|
|
576
574
|
|
|
577
575
|
/**
|
|
578
|
-
* 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>
|
|
576
|
+
* 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>
|
|
579
577
|
* @type {string}
|
|
580
578
|
* @memberof TasksApiListTasks
|
|
581
579
|
*/
|
|
582
580
|
readonly order?: string
|
|
583
581
|
|
|
584
582
|
/**
|
|
585
|
-
* 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:
|
|
583
|
+
* 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>
|
|
586
584
|
* @type {string}
|
|
587
585
|
* @memberof TasksApiListTasks
|
|
588
586
|
*/
|
|
589
587
|
readonly expand?: string
|
|
590
588
|
|
|
591
589
|
/**
|
|
592
|
-
* Filters the response by one or multiple fields.
|
|
590
|
+
* 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, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
593
591
|
* @type {string}
|
|
594
592
|
* @memberof TasksApiListTasks
|
|
595
593
|
*/
|
|
@@ -632,7 +630,7 @@ export interface TasksApiPatchTaskRequest {
|
|
|
632
630
|
*/
|
|
633
631
|
export class TasksApi extends BaseAPI {
|
|
634
632
|
/**
|
|
635
|
-
* This will create task.
|
|
633
|
+
* This will create a task. **Required Permissions** \"task-management.tasks.create\"
|
|
636
634
|
* @summary Create the task
|
|
637
635
|
* @param {TasksApiCreateTaskRequest} requestParameters Request parameters.
|
|
638
636
|
* @param {*} [options] Override http request option.
|
|
@@ -644,7 +642,7 @@ export class TasksApi extends BaseAPI {
|
|
|
644
642
|
}
|
|
645
643
|
|
|
646
644
|
/**
|
|
647
|
-
* This will delete a task by code.
|
|
645
|
+
* This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\"
|
|
648
646
|
* @summary Delete the task
|
|
649
647
|
* @param {TasksApiDeleteTaskRequest} requestParameters Request parameters.
|
|
650
648
|
* @param {*} [options] Override http request option.
|
|
@@ -656,7 +654,7 @@ export class TasksApi extends BaseAPI {
|
|
|
656
654
|
}
|
|
657
655
|
|
|
658
656
|
/**
|
|
659
|
-
* This will get a task by code.
|
|
657
|
+
* This will get a task by code. **Required Permissions** \"task-management.tasks.view\"
|
|
660
658
|
* @summary Retrieve the task
|
|
661
659
|
* @param {TasksApiGetTaskRequest} requestParameters Request parameters.
|
|
662
660
|
* @param {*} [options] Override http request option.
|
|
@@ -664,11 +662,11 @@ export class TasksApi extends BaseAPI {
|
|
|
664
662
|
* @memberof TasksApi
|
|
665
663
|
*/
|
|
666
664
|
public getTask(requestParameters: TasksApiGetTaskRequest, options?: AxiosRequestConfig) {
|
|
667
|
-
return TasksApiFp(this.configuration).getTask(requestParameters.code, requestParameters.
|
|
665
|
+
return TasksApiFp(this.configuration).getTask(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
668
666
|
}
|
|
669
667
|
|
|
670
668
|
/**
|
|
671
|
-
* Retrieves a list of tasks.
|
|
669
|
+
* Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\"
|
|
672
670
|
* @summary List tasks
|
|
673
671
|
* @param {TasksApiListTasksRequest} requestParameters Request parameters.
|
|
674
672
|
* @param {*} [options] Override http request option.
|
|
@@ -680,7 +678,7 @@ export class TasksApi extends BaseAPI {
|
|
|
680
678
|
}
|
|
681
679
|
|
|
682
680
|
/**
|
|
683
|
-
* This will partially update a task by code with the provided fields.
|
|
681
|
+
* This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
684
682
|
* @summary Update the task
|
|
685
683
|
* @param {TasksApiPatchTaskRequest} requestParameters Request parameters.
|
|
686
684
|
* @param {*} [options] Override http request option.
|
package/api.ts
CHANGED
|
@@ -20,6 +20,7 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResp
|
|
|
20
20
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
|
+
import { AssigneesApi } from './api';
|
|
23
24
|
import { CategoriesApi } from './api';
|
|
24
25
|
import { DefaultApi } from './api';
|
|
25
26
|
import { HubSpotApi } from './api';
|
|
@@ -27,6 +28,7 @@ import { StatusesApi } from './api';
|
|
|
27
28
|
import { TasksApi } from './api';
|
|
28
29
|
|
|
29
30
|
|
|
31
|
+
export * from './api/assignees-api';
|
|
30
32
|
export * from './api/categories-api';
|
|
31
33
|
export * from './api/default-api';
|
|
32
34
|
export * from './api/hub-spot-api';
|