@emilgroup/task-sdk 1.0.1-beta.12 → 1.0.1-beta.14
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/README.md +2 -2
- package/api/categories-api.ts +62 -36
- package/api/default-api.ts +1 -1
- package/api/statuses-api.ts +17 -19
- package/api/tasks-api.ts +13 -15
- package/dist/api/categories-api.d.ts +42 -24
- package/dist/api/categories-api.js +36 -26
- package/dist/api/default-api.js +1 -1
- package/dist/api/statuses-api.d.ts +14 -14
- package/dist/api/statuses-api.js +12 -14
- package/dist/api/tasks-api.d.ts +10 -10
- package/dist/api/tasks-api.js +9 -11
- package/dist/models/create-task-request-dto.d.ts +2 -2
- package/dist/models/task-class.d.ts +15 -3
- package/models/create-task-request-dto.ts +2 -2
- package/models/task-class.ts +15 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/task-sdk@1.0.1-beta.
|
|
20
|
+
npm install @emilgroup/task-sdk@1.0.1-beta.14 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/task-sdk@1.0.1-beta.
|
|
24
|
+
yarn add @emilgroup/task-sdk@1.0.1-beta.14
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `TasksApi`.
|
package/api/categories-api.ts
CHANGED
|
@@ -134,16 +134,14 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
134
134
|
* Get category by code.
|
|
135
135
|
* @summary Retrieve the category
|
|
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 category.
|
|
139
139
|
* @param {*} [options] Override http request option.
|
|
140
140
|
* @throws {RequiredError}
|
|
141
141
|
*/
|
|
142
|
-
getCategory: async (code: string,
|
|
142
|
+
getCategory: 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('getCategory', 'code', code)
|
|
145
|
-
// verify required parameter 'expand' is not null or undefined
|
|
146
|
-
assertParamExists('getCategory', 'expand', expand)
|
|
147
145
|
const localVarPath = `/taskservice/v1/categories/{code}`
|
|
148
146
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
149
147
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -186,15 +184,17 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
186
184
|
* Retrieves a list of categories.
|
|
187
185
|
* @summary List categories
|
|
188
186
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
187
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
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.
|
|
189
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, slug, name, createdAt, updatedAt</i>
|
|
190
|
-
* @param {string} [
|
|
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: id, code, name, slug</i>
|
|
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: name, slug</i>
|
|
192
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, name, slug</i>
|
|
193
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/>
|
|
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, slug, name, createdAt, updatedAt</i>
|
|
194
194
|
* @param {*} [options] Override http request option.
|
|
195
195
|
* @throws {RequiredError}
|
|
196
196
|
*/
|
|
197
|
-
listCategories: async (authorization?: string,
|
|
197
|
+
listCategories: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
198
198
|
const localVarPath = `/taskservice/v1/categories`;
|
|
199
199
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
200
200
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -213,12 +213,16 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
213
213
|
// http bearer authentication required
|
|
214
214
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
215
215
|
|
|
216
|
-
if (
|
|
217
|
-
localVarQueryParameter['
|
|
216
|
+
if (pageSize !== undefined) {
|
|
217
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
if (
|
|
221
|
-
localVarQueryParameter['
|
|
220
|
+
if (pageToken !== undefined) {
|
|
221
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
if (filter !== undefined) {
|
|
225
|
+
localVarQueryParameter['filter'] = filter;
|
|
222
226
|
}
|
|
223
227
|
|
|
224
228
|
if (search !== undefined) {
|
|
@@ -233,6 +237,10 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
233
237
|
localVarQueryParameter['expand'] = expand;
|
|
234
238
|
}
|
|
235
239
|
|
|
240
|
+
if (filters !== undefined) {
|
|
241
|
+
localVarQueryParameter['filters'] = filters;
|
|
242
|
+
}
|
|
243
|
+
|
|
236
244
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
237
245
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
238
246
|
}
|
|
@@ -337,29 +345,31 @@ export const CategoriesApiFp = function(configuration?: Configuration) {
|
|
|
337
345
|
* Get category by code.
|
|
338
346
|
* @summary Retrieve the category
|
|
339
347
|
* @param {string} code
|
|
340
|
-
* @param {string} expand
|
|
341
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 category.
|
|
342
350
|
* @param {*} [options] Override http request option.
|
|
343
351
|
* @throws {RequiredError}
|
|
344
352
|
*/
|
|
345
|
-
async getCategory(code: string,
|
|
346
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCategory(code,
|
|
353
|
+
async getCategory(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCategoryResponseClass>> {
|
|
354
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCategory(code, authorization, expand, options);
|
|
347
355
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
348
356
|
},
|
|
349
357
|
/**
|
|
350
358
|
* Retrieves a list of categories.
|
|
351
359
|
* @summary List categories
|
|
352
360
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
361
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
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.
|
|
353
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, slug, name, createdAt, updatedAt</i>
|
|
354
|
-
* @param {string} [
|
|
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: id, code, name, slug</i>
|
|
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: name, slug</i>
|
|
356
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, name, slug</i>
|
|
357
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/>
|
|
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, slug, name, createdAt, updatedAt</i>
|
|
358
368
|
* @param {*} [options] Override http request option.
|
|
359
369
|
* @throws {RequiredError}
|
|
360
370
|
*/
|
|
361
|
-
async listCategories(authorization?: string,
|
|
362
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCategories(authorization,
|
|
371
|
+
async listCategories(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCategoriesResponseClass>> {
|
|
372
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCategories(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
363
373
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
374
|
},
|
|
365
375
|
/**
|
|
@@ -411,28 +421,30 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas
|
|
|
411
421
|
* Get category by code.
|
|
412
422
|
* @summary Retrieve the category
|
|
413
423
|
* @param {string} code
|
|
414
|
-
* @param {string} expand
|
|
415
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 category.
|
|
416
426
|
* @param {*} [options] Override http request option.
|
|
417
427
|
* @throws {RequiredError}
|
|
418
428
|
*/
|
|
419
|
-
getCategory(code: string,
|
|
420
|
-
return localVarFp.getCategory(code,
|
|
429
|
+
getCategory(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetCategoryResponseClass> {
|
|
430
|
+
return localVarFp.getCategory(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
421
431
|
},
|
|
422
432
|
/**
|
|
423
433
|
* Retrieves a list of categories.
|
|
424
434
|
* @summary List categories
|
|
425
435
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
436
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
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.
|
|
426
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, slug, name, createdAt, updatedAt</i>
|
|
427
|
-
* @param {string} [
|
|
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: id, code, name, slug</i>
|
|
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: name, slug</i>
|
|
429
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, name, slug</i>
|
|
430
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/>
|
|
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, slug, name, createdAt, updatedAt</i>
|
|
431
443
|
* @param {*} [options] Override http request option.
|
|
432
444
|
* @throws {RequiredError}
|
|
433
445
|
*/
|
|
434
|
-
listCategories(authorization?: string,
|
|
435
|
-
return localVarFp.listCategories(authorization,
|
|
446
|
+
listCategories(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCategoriesResponseClass> {
|
|
447
|
+
return localVarFp.listCategories(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
436
448
|
},
|
|
437
449
|
/**
|
|
438
450
|
* This will partially update a category by code with the provided fields.
|
|
@@ -505,18 +517,18 @@ export interface CategoriesApiGetCategoryRequest {
|
|
|
505
517
|
readonly code: string
|
|
506
518
|
|
|
507
519
|
/**
|
|
508
|
-
*
|
|
520
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
509
521
|
* @type {string}
|
|
510
522
|
* @memberof CategoriesApiGetCategory
|
|
511
523
|
*/
|
|
512
|
-
readonly
|
|
524
|
+
readonly authorization?: string
|
|
513
525
|
|
|
514
526
|
/**
|
|
515
|
-
*
|
|
527
|
+
* Expand to fetch additional information about the category.
|
|
516
528
|
* @type {string}
|
|
517
529
|
* @memberof CategoriesApiGetCategory
|
|
518
530
|
*/
|
|
519
|
-
readonly
|
|
531
|
+
readonly expand?: string
|
|
520
532
|
}
|
|
521
533
|
|
|
522
534
|
/**
|
|
@@ -533,21 +545,28 @@ export interface CategoriesApiListCategoriesRequest {
|
|
|
533
545
|
readonly authorization?: string
|
|
534
546
|
|
|
535
547
|
/**
|
|
536
|
-
*
|
|
548
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
549
|
+
* @type {number}
|
|
550
|
+
* @memberof CategoriesApiListCategories
|
|
551
|
+
*/
|
|
552
|
+
readonly pageSize?: number
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* 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.
|
|
537
556
|
* @type {string}
|
|
538
557
|
* @memberof CategoriesApiListCategories
|
|
539
558
|
*/
|
|
540
|
-
readonly
|
|
559
|
+
readonly pageToken?: string
|
|
541
560
|
|
|
542
561
|
/**
|
|
543
|
-
*
|
|
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, slug, name, createdAt, updatedAt</i>
|
|
544
563
|
* @type {string}
|
|
545
564
|
* @memberof CategoriesApiListCategories
|
|
546
565
|
*/
|
|
547
|
-
readonly
|
|
566
|
+
readonly filter?: string
|
|
548
567
|
|
|
549
568
|
/**
|
|
550
|
-
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields:
|
|
569
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, slug</i>
|
|
551
570
|
* @type {string}
|
|
552
571
|
* @memberof CategoriesApiListCategories
|
|
553
572
|
*/
|
|
@@ -566,6 +585,13 @@ export interface CategoriesApiListCategoriesRequest {
|
|
|
566
585
|
* @memberof CategoriesApiListCategories
|
|
567
586
|
*/
|
|
568
587
|
readonly expand?: string
|
|
588
|
+
|
|
589
|
+
/**
|
|
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, slug, name, createdAt, updatedAt</i>
|
|
591
|
+
* @type {string}
|
|
592
|
+
* @memberof CategoriesApiListCategories
|
|
593
|
+
*/
|
|
594
|
+
readonly filters?: string
|
|
569
595
|
}
|
|
570
596
|
|
|
571
597
|
/**
|
|
@@ -636,7 +662,7 @@ export class CategoriesApi extends BaseAPI {
|
|
|
636
662
|
* @memberof CategoriesApi
|
|
637
663
|
*/
|
|
638
664
|
public getCategory(requestParameters: CategoriesApiGetCategoryRequest, options?: AxiosRequestConfig) {
|
|
639
|
-
return CategoriesApiFp(this.configuration).getCategory(requestParameters.code, requestParameters.
|
|
665
|
+
return CategoriesApiFp(this.configuration).getCategory(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
640
666
|
}
|
|
641
667
|
|
|
642
668
|
/**
|
|
@@ -648,7 +674,7 @@ export class CategoriesApi extends BaseAPI {
|
|
|
648
674
|
* @memberof CategoriesApi
|
|
649
675
|
*/
|
|
650
676
|
public listCategories(requestParameters: CategoriesApiListCategoriesRequest = {}, options?: AxiosRequestConfig) {
|
|
651
|
-
return CategoriesApiFp(this.configuration).listCategories(requestParameters.authorization, requestParameters.
|
|
677
|
+
return CategoriesApiFp(this.configuration).listCategories(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
652
678
|
}
|
|
653
679
|
|
|
654
680
|
/**
|
package/api/default-api.ts
CHANGED
|
@@ -37,7 +37,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
37
37
|
* @throws {RequiredError}
|
|
38
38
|
*/
|
|
39
39
|
check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40
|
-
const localVarPath = `/
|
|
40
|
+
const localVarPath = `/taskservice/health`;
|
|
41
41
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42
42
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43
43
|
let baseOptions;
|
package/api/statuses-api.ts
CHANGED
|
@@ -134,16 +134,14 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
134
134
|
* Get status by code.
|
|
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.
|
|
@@ -188,7 +186,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
188
186
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
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>
|
|
190
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>
|
|
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:
|
|
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.
|
|
@@ -337,13 +335,13 @@ export const StatusesApiFp = function(configuration?: Configuration) {
|
|
|
337
335
|
* Get status by code.
|
|
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
|
/**
|
|
@@ -352,7 +350,7 @@ export const StatusesApiFp = function(configuration?: Configuration) {
|
|
|
352
350
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
353
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>
|
|
354
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>
|
|
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:
|
|
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.
|
|
@@ -411,13 +409,13 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
|
|
|
411
409
|
* Get status by code.
|
|
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
421
|
* Retrieves a list of statuses.
|
|
@@ -425,7 +423,7 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
|
|
|
425
423
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
426
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>
|
|
427
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>
|
|
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:
|
|
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.
|
|
@@ -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
|
/**
|
|
@@ -547,7 +545,7 @@ export interface StatusesApiListStatusesRequest {
|
|
|
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
|
*/
|
|
@@ -636,7 +634,7 @@ 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
|
/**
|
package/api/tasks-api.ts
CHANGED
|
@@ -134,16 +134,14 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
134
134
|
* This will get a task by code.
|
|
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.
|
|
@@ -347,13 +345,13 @@ export const TasksApiFp = function(configuration?: Configuration) {
|
|
|
347
345
|
* This will get a task by code.
|
|
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
|
/**
|
|
@@ -423,13 +421,13 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
|
|
|
423
421
|
* This will get a task by code.
|
|
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
433
|
* Retrieves a list of tasks.
|
|
@@ -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
|
/**
|
|
@@ -664,7 +662,7 @@ 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
|
/**
|