@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 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.12 --save
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.12
24
+ yarn add @emilgroup/task-sdk@1.0.1-beta.14
25
25
  ```
26
26
 
27
27
  And then you can import `TasksApi`.
@@ -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, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
190
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
191
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, code, name, slug&lt;/i&gt;
190
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: name, slug&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, name, slug&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
193
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
194
194
  * @param {*} [options] Override http request option.
195
195
  * @throws {RequiredError}
196
196
  */
197
- listCategories: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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 (filter !== undefined) {
217
- localVarQueryParameter['filter'] = filter;
216
+ if (pageSize !== undefined) {
217
+ localVarQueryParameter['pageSize'] = pageSize;
218
218
  }
219
219
 
220
- if (filters !== undefined) {
221
- localVarQueryParameter['filters'] = filters;
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, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCategoryResponseClass>> {
346
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCategory(code, expand, authorization, options);
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
354
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
355
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, code, name, slug&lt;/i&gt;
364
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: name, slug&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, name, slug&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
367
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
358
368
  * @param {*} [options] Override http request option.
359
369
  * @throws {RequiredError}
360
370
  */
361
- async listCategories(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCategoriesResponseClass>> {
362
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCategories(authorization, filter, filters, search, order, expand, options);
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, expand: string, authorization?: string, options?: any): AxiosPromise<GetCategoryResponseClass> {
420
- return localVarFp.getCategory(code, expand, authorization, options).then((request) => request(axios, basePath));
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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
427
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
428
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, code, name, slug&lt;/i&gt;
439
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: name, slug&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, name, slug&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
442
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
431
443
  * @param {*} [options] Override http request option.
432
444
  * @throws {RequiredError}
433
445
  */
434
- listCategories(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCategoriesResponseClass> {
435
- return localVarFp.listCategories(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
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 expand: string
524
+ readonly authorization?: string
513
525
 
514
526
  /**
515
- * Bearer Token: provided by the login endpoint under the name accessToken.
527
+ * Expand to fetch additional information about the category.
516
528
  * @type {string}
517
529
  * @memberof CategoriesApiGetCategory
518
530
  */
519
- readonly authorization?: string
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
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
537
556
  * @type {string}
538
557
  * @memberof CategoriesApiListCategories
539
558
  */
540
- readonly filter?: string
559
+ readonly pageToken?: string
541
560
 
542
561
  /**
543
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
562
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
544
563
  * @type {string}
545
564
  * @memberof CategoriesApiListCategories
546
565
  */
547
- readonly filters?: string
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, code, name, slug&lt;/i&gt;
569
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: name, slug&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
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.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
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.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
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
  /**
@@ -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 = `/taskserviceervice/health`;
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;
@@ -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, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
190
188
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
191
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, code, name, slug&lt;/i&gt;
189
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, name, slug&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, name, slug&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
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, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStatusResponseClass>> {
346
- const localVarAxiosArgs = await localVarAxiosParamCreator.getStatus(code, expand, authorization, options);
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
354
352
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
355
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, code, name, slug&lt;/i&gt;
353
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, name, slug&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, name, slug&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
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, expand: string, authorization?: string, options?: any): AxiosPromise<GetStatusResponseClass> {
420
- return localVarFp.getStatus(code, expand, authorization, options).then((request) => request(axios, basePath));
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
427
425
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, slug, name, createdAt, updatedAt&lt;/i&gt;
428
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, code, name, slug&lt;/i&gt;
426
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, name, slug&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, name, slug&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
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 expand: string
510
+ readonly authorization?: string
513
511
 
514
512
  /**
515
- * Bearer Token: provided by the login endpoint under the name accessToken.
513
+ * Expand to fetch additional information about the status.
516
514
  * @type {string}
517
515
  * @memberof StatusesApiGetStatus
518
516
  */
519
- readonly authorization?: string
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, code, name, slug&lt;/i&gt;
548
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, name, slug&lt;/i&gt;
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.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
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, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTaskResponseClass>> {
356
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTask(code, expand, authorization, options);
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, expand: string, authorization?: string, options?: any): AxiosPromise<GetTaskResponseClass> {
432
- return localVarFp.getTask(code, expand, authorization, options).then((request) => request(axios, basePath));
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 expand: string
524
+ readonly authorization?: string
527
525
 
528
526
  /**
529
- * Bearer Token: provided by the login endpoint under the name accessToken.
527
+ * Expand to fetch additional information about the task.
530
528
  * @type {string}
531
529
  * @memberof TasksApiGetTask
532
530
  */
533
- readonly authorization?: string
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.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
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
  /**