@emilgroup/task-sdk-node 1.0.1-beta.3 → 1.0.1-beta.34
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 -6
- package/README.md +2 -2
- package/api/assignees-api.ts +166 -0
- package/api/categories-api.ts +111 -85
- package/api/default-api.ts +1 -1
- package/api/hub-spot-api.ts +4 -4
- package/api/statuses-api.ts +71 -73
- package/api/tasks-api.ts +119 -93
- package/api.ts +2 -0
- package/dist/api/assignees-api.d.ts +96 -0
- package/dist/api/assignees-api.js +228 -0
- package/dist/api/categories-api.d.ts +83 -65
- package/dist/api/categories-api.js +75 -65
- 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 +60 -60
- package/dist/api/statuses-api.js +54 -56
- package/dist/api/tasks-api.d.ts +91 -73
- package/dist/api/tasks-api.js +81 -71
- 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/create-status-request-dto.d.ts +6 -0
- package/dist/models/create-task-request-dto.d.ts +4 -4
- package/dist/models/index.d.ts +8 -6
- package/dist/models/index.js +8 -6
- package/dist/models/list-assignees-response-class.d.ts +43 -0
- package/dist/models/{update-category-request-dto.d.ts → patch-category-request-dto.d.ts} +7 -7
- 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 +114 -0
- package/dist/models/patch-task-request-dto.js +15 -0
- package/dist/models/{update-task-response-class.d.ts → patch-task-response-class.d.ts} +3 -3
- package/dist/models/patch-task-response-class.js +15 -0
- package/dist/models/status-class.d.ts +6 -0
- package/dist/models/task-class.d.ts +16 -4
- package/models/assignee-class.ts +30 -0
- package/models/create-status-request-dto.ts +6 -0
- package/models/create-task-request-dto.ts +4 -4
- package/models/index.ts +8 -6
- package/models/list-assignees-response-class.ts +49 -0
- package/models/{update-category-request-dto.ts → patch-category-request-dto.ts} +7 -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 +120 -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 +16 -4
- package/package.json +2 -2
- package/dist/models/update-task-request-dto.d.ts +0 -72
- package/models/update-task-request-dto.ts +0 -78
- /package/dist/models/{update-category-request-dto.js → assignee-class.js} +0 -0
- /package/dist/models/{update-category-response-class.js → list-assignees-response-class.js} +0 -0
- /package/dist/models/{update-status-request-dto.js → patch-category-request-dto.js} +0 -0
- /package/dist/models/{update-status-response-class.js → patch-category-response-class.js} +0 -0
- /package/dist/models/{update-task-request-dto.js → patch-status-request-dto.js} +0 -0
- /package/dist/models/{update-task-response-class.js → patch-status-response-class.js} +0 -0
package/api/statuses-api.ts
CHANGED
|
@@ -29,9 +29,9 @@ import { GetStatusResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListStatusesResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
-
import {
|
|
32
|
+
import { PatchStatusRequestDto } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
|
-
import {
|
|
34
|
+
import { PatchStatusResponseClass } from '../models';
|
|
35
35
|
// URLSearchParams not necessarily used
|
|
36
36
|
// @ts-ignore
|
|
37
37
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -43,7 +43,7 @@ const FormData = require('form-data');
|
|
|
43
43
|
export const StatusesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
44
|
return {
|
|
45
45
|
/**
|
|
46
|
-
* This will create a status.
|
|
46
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
47
47
|
* @summary Create the status
|
|
48
48
|
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
49
49
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -90,7 +90,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
90
90
|
};
|
|
91
91
|
},
|
|
92
92
|
/**
|
|
93
|
-
* This will delete status.
|
|
93
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
94
94
|
* @summary Delete the status
|
|
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,19 +135,17 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
135
135
|
};
|
|
136
136
|
},
|
|
137
137
|
/**
|
|
138
|
-
* Get status by code.
|
|
138
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
139
139
|
* @summary Retrieve the status
|
|
140
140
|
* @param {string} code
|
|
141
|
-
* @param {string} expand
|
|
142
141
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
142
|
+
* @param {string} [expand] Expand to fetch additional information about the status.
|
|
143
143
|
* @param {*} [options] Override http request option.
|
|
144
144
|
* @throws {RequiredError}
|
|
145
145
|
*/
|
|
146
|
-
getStatus: async (code: string,
|
|
146
|
+
getStatus: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147
147
|
// verify required parameter 'code' is not null or undefined
|
|
148
148
|
assertParamExists('getStatus', 'code', code)
|
|
149
|
-
// verify required parameter 'expand' is not null or undefined
|
|
150
|
-
assertParamExists('getStatus', 'expand', expand)
|
|
151
149
|
const localVarPath = `/taskservice/v1/statuses/{code}`
|
|
152
150
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
153
151
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -187,12 +185,12 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
187
185
|
};
|
|
188
186
|
},
|
|
189
187
|
/**
|
|
190
|
-
* Retrieves a list of statuses.
|
|
188
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
191
189
|
* @summary List statuses
|
|
192
190
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
193
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
194
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
195
|
-
* @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:
|
|
191
|
+
* @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>
|
|
192
|
+
* @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>
|
|
193
|
+
* @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>
|
|
196
194
|
* @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>
|
|
197
195
|
* @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/>
|
|
198
196
|
* @param {*} [options] Override http request option.
|
|
@@ -253,19 +251,19 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
253
251
|
};
|
|
254
252
|
},
|
|
255
253
|
/**
|
|
256
|
-
* This will update status.
|
|
254
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
257
255
|
* @summary Update the status
|
|
258
256
|
* @param {string} code
|
|
259
|
-
* @param {
|
|
257
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
260
258
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
261
259
|
* @param {*} [options] Override http request option.
|
|
262
260
|
* @throws {RequiredError}
|
|
263
261
|
*/
|
|
264
|
-
|
|
262
|
+
patchStatus: async (code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
265
263
|
// verify required parameter 'code' is not null or undefined
|
|
266
|
-
assertParamExists('
|
|
267
|
-
// verify required parameter '
|
|
268
|
-
assertParamExists('
|
|
264
|
+
assertParamExists('patchStatus', 'code', code)
|
|
265
|
+
// verify required parameter 'patchStatusRequestDto' is not null or undefined
|
|
266
|
+
assertParamExists('patchStatus', 'patchStatusRequestDto', patchStatusRequestDto)
|
|
269
267
|
const localVarPath = `/taskservice/v1/statuses/{code}`
|
|
270
268
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
271
269
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -277,7 +275,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
277
275
|
baseAccessToken = configuration.accessToken;
|
|
278
276
|
}
|
|
279
277
|
|
|
280
|
-
const localVarRequestOptions = { method: '
|
|
278
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
281
279
|
const localVarHeaderParameter = {} as any;
|
|
282
280
|
const localVarQueryParameter = {} as any;
|
|
283
281
|
|
|
@@ -296,7 +294,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
296
294
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
297
295
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
296
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
299
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
297
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchStatusRequestDto, localVarRequestOptions, configuration)
|
|
300
298
|
|
|
301
299
|
return {
|
|
302
300
|
url: toPathString(localVarUrlObj),
|
|
@@ -314,7 +312,7 @@ export const StatusesApiFp = function(configuration?: Configuration) {
|
|
|
314
312
|
const localVarAxiosParamCreator = StatusesApiAxiosParamCreator(configuration)
|
|
315
313
|
return {
|
|
316
314
|
/**
|
|
317
|
-
* This will create a status.
|
|
315
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
318
316
|
* @summary Create the status
|
|
319
317
|
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
320
318
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -326,7 +324,7 @@ export const StatusesApiFp = function(configuration?: Configuration) {
|
|
|
326
324
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
327
325
|
},
|
|
328
326
|
/**
|
|
329
|
-
* This will delete status.
|
|
327
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
330
328
|
* @summary Delete the status
|
|
331
329
|
* @param {string} code Unique identifier for the object.
|
|
332
330
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -338,25 +336,25 @@ export const StatusesApiFp = function(configuration?: Configuration) {
|
|
|
338
336
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
339
337
|
},
|
|
340
338
|
/**
|
|
341
|
-
* Get status by code.
|
|
339
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
342
340
|
* @summary Retrieve the status
|
|
343
341
|
* @param {string} code
|
|
344
|
-
* @param {string} expand
|
|
345
342
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
343
|
+
* @param {string} [expand] Expand to fetch additional information about the status.
|
|
346
344
|
* @param {*} [options] Override http request option.
|
|
347
345
|
* @throws {RequiredError}
|
|
348
346
|
*/
|
|
349
|
-
async getStatus(code: string,
|
|
350
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getStatus(code,
|
|
347
|
+
async getStatus(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStatusResponseClass>> {
|
|
348
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getStatus(code, authorization, expand, options);
|
|
351
349
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
352
350
|
},
|
|
353
351
|
/**
|
|
354
|
-
* Retrieves a list of statuses.
|
|
352
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
355
353
|
* @summary List statuses
|
|
356
354
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
357
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
358
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
359
|
-
* @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:
|
|
355
|
+
* @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>
|
|
356
|
+
* @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>
|
|
357
|
+
* @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>
|
|
360
358
|
* @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>
|
|
361
359
|
* @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/>
|
|
362
360
|
* @param {*} [options] Override http request option.
|
|
@@ -367,16 +365,16 @@ export const StatusesApiFp = function(configuration?: Configuration) {
|
|
|
367
365
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
368
366
|
},
|
|
369
367
|
/**
|
|
370
|
-
* This will update status.
|
|
368
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
371
369
|
* @summary Update the status
|
|
372
370
|
* @param {string} code
|
|
373
|
-
* @param {
|
|
371
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
374
372
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
375
373
|
* @param {*} [options] Override http request option.
|
|
376
374
|
* @throws {RequiredError}
|
|
377
375
|
*/
|
|
378
|
-
async
|
|
379
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
376
|
+
async patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchStatusResponseClass>> {
|
|
377
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchStatus(code, patchStatusRequestDto, authorization, options);
|
|
380
378
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
381
379
|
},
|
|
382
380
|
}
|
|
@@ -390,7 +388,7 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
|
|
|
390
388
|
const localVarFp = StatusesApiFp(configuration)
|
|
391
389
|
return {
|
|
392
390
|
/**
|
|
393
|
-
* This will create a status.
|
|
391
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
394
392
|
* @summary Create the status
|
|
395
393
|
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
396
394
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -401,7 +399,7 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
|
|
|
401
399
|
return localVarFp.createStatus(createStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
402
400
|
},
|
|
403
401
|
/**
|
|
404
|
-
* This will delete status.
|
|
402
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
405
403
|
* @summary Delete the status
|
|
406
404
|
* @param {string} code Unique identifier for the object.
|
|
407
405
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -412,24 +410,24 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
|
|
|
412
410
|
return localVarFp.deleteStatus(code, authorization, options).then((request) => request(axios, basePath));
|
|
413
411
|
},
|
|
414
412
|
/**
|
|
415
|
-
* Get status by code.
|
|
413
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
416
414
|
* @summary Retrieve the status
|
|
417
415
|
* @param {string} code
|
|
418
|
-
* @param {string} expand
|
|
419
416
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
417
|
+
* @param {string} [expand] Expand to fetch additional information about the status.
|
|
420
418
|
* @param {*} [options] Override http request option.
|
|
421
419
|
* @throws {RequiredError}
|
|
422
420
|
*/
|
|
423
|
-
getStatus(code: string,
|
|
424
|
-
return localVarFp.getStatus(code,
|
|
421
|
+
getStatus(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetStatusResponseClass> {
|
|
422
|
+
return localVarFp.getStatus(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
425
423
|
},
|
|
426
424
|
/**
|
|
427
|
-
* Retrieves a list of statuses.
|
|
425
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
428
426
|
* @summary List statuses
|
|
429
427
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
430
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
431
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
432
|
-
* @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:
|
|
428
|
+
* @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>
|
|
429
|
+
* @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>
|
|
430
|
+
* @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>
|
|
433
431
|
* @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>
|
|
434
432
|
* @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/>
|
|
435
433
|
* @param {*} [options] Override http request option.
|
|
@@ -439,16 +437,16 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
|
|
|
439
437
|
return localVarFp.listStatuses(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
440
438
|
},
|
|
441
439
|
/**
|
|
442
|
-
* This will update status.
|
|
440
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
443
441
|
* @summary Update the status
|
|
444
442
|
* @param {string} code
|
|
445
|
-
* @param {
|
|
443
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
446
444
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
447
445
|
* @param {*} [options] Override http request option.
|
|
448
446
|
* @throws {RequiredError}
|
|
449
447
|
*/
|
|
450
|
-
|
|
451
|
-
return localVarFp.
|
|
448
|
+
patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchStatusResponseClass> {
|
|
449
|
+
return localVarFp.patchStatus(code, patchStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
452
450
|
},
|
|
453
451
|
};
|
|
454
452
|
};
|
|
@@ -509,18 +507,18 @@ export interface StatusesApiGetStatusRequest {
|
|
|
509
507
|
readonly code: string
|
|
510
508
|
|
|
511
509
|
/**
|
|
512
|
-
*
|
|
510
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
513
511
|
* @type {string}
|
|
514
512
|
* @memberof StatusesApiGetStatus
|
|
515
513
|
*/
|
|
516
|
-
readonly
|
|
514
|
+
readonly authorization?: string
|
|
517
515
|
|
|
518
516
|
/**
|
|
519
|
-
*
|
|
517
|
+
* Expand to fetch additional information about the status.
|
|
520
518
|
* @type {string}
|
|
521
519
|
* @memberof StatusesApiGetStatus
|
|
522
520
|
*/
|
|
523
|
-
readonly
|
|
521
|
+
readonly expand?: string
|
|
524
522
|
}
|
|
525
523
|
|
|
526
524
|
/**
|
|
@@ -537,21 +535,21 @@ export interface StatusesApiListStatusesRequest {
|
|
|
537
535
|
readonly authorization?: string
|
|
538
536
|
|
|
539
537
|
/**
|
|
540
|
-
* Filter the response by one or multiple fields.
|
|
538
|
+
* 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>
|
|
541
539
|
* @type {string}
|
|
542
540
|
* @memberof StatusesApiListStatuses
|
|
543
541
|
*/
|
|
544
542
|
readonly filter?: string
|
|
545
543
|
|
|
546
544
|
/**
|
|
547
|
-
* Filters the response by one or multiple fields.
|
|
545
|
+
* 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>
|
|
548
546
|
* @type {string}
|
|
549
547
|
* @memberof StatusesApiListStatuses
|
|
550
548
|
*/
|
|
551
549
|
readonly filters?: string
|
|
552
550
|
|
|
553
551
|
/**
|
|
554
|
-
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields:
|
|
552
|
+
* 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>
|
|
555
553
|
* @type {string}
|
|
556
554
|
* @memberof StatusesApiListStatuses
|
|
557
555
|
*/
|
|
@@ -573,29 +571,29 @@ export interface StatusesApiListStatusesRequest {
|
|
|
573
571
|
}
|
|
574
572
|
|
|
575
573
|
/**
|
|
576
|
-
* Request parameters for
|
|
574
|
+
* Request parameters for patchStatus operation in StatusesApi.
|
|
577
575
|
* @export
|
|
578
|
-
* @interface
|
|
576
|
+
* @interface StatusesApiPatchStatusRequest
|
|
579
577
|
*/
|
|
580
|
-
export interface
|
|
578
|
+
export interface StatusesApiPatchStatusRequest {
|
|
581
579
|
/**
|
|
582
580
|
*
|
|
583
581
|
* @type {string}
|
|
584
|
-
* @memberof
|
|
582
|
+
* @memberof StatusesApiPatchStatus
|
|
585
583
|
*/
|
|
586
584
|
readonly code: string
|
|
587
585
|
|
|
588
586
|
/**
|
|
589
587
|
*
|
|
590
|
-
* @type {
|
|
591
|
-
* @memberof
|
|
588
|
+
* @type {PatchStatusRequestDto}
|
|
589
|
+
* @memberof StatusesApiPatchStatus
|
|
592
590
|
*/
|
|
593
|
-
readonly
|
|
591
|
+
readonly patchStatusRequestDto: PatchStatusRequestDto
|
|
594
592
|
|
|
595
593
|
/**
|
|
596
594
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
597
595
|
* @type {string}
|
|
598
|
-
* @memberof
|
|
596
|
+
* @memberof StatusesApiPatchStatus
|
|
599
597
|
*/
|
|
600
598
|
readonly authorization?: string
|
|
601
599
|
}
|
|
@@ -608,7 +606,7 @@ export interface StatusesApiUpdateStatusRequest {
|
|
|
608
606
|
*/
|
|
609
607
|
export class StatusesApi extends BaseAPI {
|
|
610
608
|
/**
|
|
611
|
-
* This will create a status.
|
|
609
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
612
610
|
* @summary Create the status
|
|
613
611
|
* @param {StatusesApiCreateStatusRequest} requestParameters Request parameters.
|
|
614
612
|
* @param {*} [options] Override http request option.
|
|
@@ -620,7 +618,7 @@ export class StatusesApi extends BaseAPI {
|
|
|
620
618
|
}
|
|
621
619
|
|
|
622
620
|
/**
|
|
623
|
-
* This will delete status.
|
|
621
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
624
622
|
* @summary Delete the status
|
|
625
623
|
* @param {StatusesApiDeleteStatusRequest} requestParameters Request parameters.
|
|
626
624
|
* @param {*} [options] Override http request option.
|
|
@@ -632,7 +630,7 @@ export class StatusesApi extends BaseAPI {
|
|
|
632
630
|
}
|
|
633
631
|
|
|
634
632
|
/**
|
|
635
|
-
* Get status by code.
|
|
633
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
636
634
|
* @summary Retrieve the status
|
|
637
635
|
* @param {StatusesApiGetStatusRequest} requestParameters Request parameters.
|
|
638
636
|
* @param {*} [options] Override http request option.
|
|
@@ -640,11 +638,11 @@ export class StatusesApi extends BaseAPI {
|
|
|
640
638
|
* @memberof StatusesApi
|
|
641
639
|
*/
|
|
642
640
|
public getStatus(requestParameters: StatusesApiGetStatusRequest, options?: AxiosRequestConfig) {
|
|
643
|
-
return StatusesApiFp(this.configuration).getStatus(requestParameters.code, requestParameters.
|
|
641
|
+
return StatusesApiFp(this.configuration).getStatus(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
644
642
|
}
|
|
645
643
|
|
|
646
644
|
/**
|
|
647
|
-
* Retrieves a list of statuses.
|
|
645
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
648
646
|
* @summary List statuses
|
|
649
647
|
* @param {StatusesApiListStatusesRequest} requestParameters Request parameters.
|
|
650
648
|
* @param {*} [options] Override http request option.
|
|
@@ -656,14 +654,14 @@ export class StatusesApi extends BaseAPI {
|
|
|
656
654
|
}
|
|
657
655
|
|
|
658
656
|
/**
|
|
659
|
-
* This will update status.
|
|
657
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
660
658
|
* @summary Update the status
|
|
661
|
-
* @param {
|
|
659
|
+
* @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
|
|
662
660
|
* @param {*} [options] Override http request option.
|
|
663
661
|
* @throws {RequiredError}
|
|
664
662
|
* @memberof StatusesApi
|
|
665
663
|
*/
|
|
666
|
-
public
|
|
667
|
-
return StatusesApiFp(this.configuration).
|
|
664
|
+
public patchStatus(requestParameters: StatusesApiPatchStatusRequest, options?: AxiosRequestConfig) {
|
|
665
|
+
return StatusesApiFp(this.configuration).patchStatus(requestParameters.code, requestParameters.patchStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
668
666
|
}
|
|
669
667
|
}
|