@emilgroup/task-sdk-node 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.
@@ -45,12 +45,12 @@ export declare const TasksApiAxiosParamCreator: (configuration?: Configuration)
45
45
  * This will get a task by code.
46
46
  * @summary Retrieve the task
47
47
  * @param {string} code
48
- * @param {string} expand
49
48
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
49
+ * @param {string} [expand] Expand to fetch additional information about the task.
50
50
  * @param {*} [options] Override http request option.
51
51
  * @throws {RequiredError}
52
52
  */
53
- getTask: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
53
+ getTask: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
54
54
  /**
55
55
  * Retrieves a list of tasks.
56
56
  * @summary List tasks
@@ -104,12 +104,12 @@ export declare const TasksApiFp: (configuration?: Configuration) => {
104
104
  * This will get a task by code.
105
105
  * @summary Retrieve the task
106
106
  * @param {string} code
107
- * @param {string} expand
108
107
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
108
+ * @param {string} [expand] Expand to fetch additional information about the task.
109
109
  * @param {*} [options] Override http request option.
110
110
  * @throws {RequiredError}
111
111
  */
112
- getTask(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTaskResponseClass>>;
112
+ getTask(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTaskResponseClass>>;
113
113
  /**
114
114
  * Retrieves a list of tasks.
115
115
  * @summary List tasks
@@ -163,12 +163,12 @@ export declare const TasksApiFactory: (configuration?: Configuration, basePath?:
163
163
  * This will get a task by code.
164
164
  * @summary Retrieve the task
165
165
  * @param {string} code
166
- * @param {string} expand
167
166
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
167
+ * @param {string} [expand] Expand to fetch additional information about the task.
168
168
  * @param {*} [options] Override http request option.
169
169
  * @throws {RequiredError}
170
170
  */
171
- getTask(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetTaskResponseClass>;
171
+ getTask(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetTaskResponseClass>;
172
172
  /**
173
173
  * Retrieves a list of tasks.
174
174
  * @summary List tasks
@@ -246,17 +246,17 @@ export interface TasksApiGetTaskRequest {
246
246
  */
247
247
  readonly code: string;
248
248
  /**
249
- *
249
+ * Bearer Token: provided by the login endpoint under the name accessToken.
250
250
  * @type {string}
251
251
  * @memberof TasksApiGetTask
252
252
  */
253
- readonly expand: string;
253
+ readonly authorization?: string;
254
254
  /**
255
- * Bearer Token: provided by the login endpoint under the name accessToken.
255
+ * Expand to fetch additional information about the task.
256
256
  * @type {string}
257
257
  * @memberof TasksApiGetTask
258
258
  */
259
- readonly authorization?: string;
259
+ readonly expand?: string;
260
260
  }
261
261
  /**
262
262
  * Request parameters for listTasks operation in TasksApi.
@@ -197,12 +197,12 @@ var TasksApiAxiosParamCreator = function (configuration) {
197
197
  * This will get a task by code.
198
198
  * @summary Retrieve the task
199
199
  * @param {string} code
200
- * @param {string} expand
201
200
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
201
+ * @param {string} [expand] Expand to fetch additional information about the task.
202
202
  * @param {*} [options] Override http request option.
203
203
  * @throws {RequiredError}
204
204
  */
205
- getTask: function (code, expand, authorization, options) {
205
+ getTask: function (code, authorization, expand, options) {
206
206
  if (options === void 0) { options = {}; }
207
207
  return __awaiter(_this, void 0, void 0, function () {
208
208
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -211,8 +211,6 @@ var TasksApiAxiosParamCreator = function (configuration) {
211
211
  case 0:
212
212
  // verify required parameter 'code' is not null or undefined
213
213
  (0, common_1.assertParamExists)('getTask', 'code', code);
214
- // verify required parameter 'expand' is not null or undefined
215
- (0, common_1.assertParamExists)('getTask', 'expand', expand);
216
214
  localVarPath = "/taskservice/v1/tasks/{code}"
217
215
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
218
216
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -428,17 +426,17 @@ var TasksApiFp = function (configuration) {
428
426
  * This will get a task by code.
429
427
  * @summary Retrieve the task
430
428
  * @param {string} code
431
- * @param {string} expand
432
429
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
430
+ * @param {string} [expand] Expand to fetch additional information about the task.
433
431
  * @param {*} [options] Override http request option.
434
432
  * @throws {RequiredError}
435
433
  */
436
- getTask: function (code, expand, authorization, options) {
434
+ getTask: function (code, authorization, expand, options) {
437
435
  return __awaiter(this, void 0, void 0, function () {
438
436
  var localVarAxiosArgs;
439
437
  return __generator(this, function (_a) {
440
438
  switch (_a.label) {
441
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTask(code, expand, authorization, options)];
439
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTask(code, authorization, expand, options)];
442
440
  case 1:
443
441
  localVarAxiosArgs = _a.sent();
444
442
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -531,13 +529,13 @@ var TasksApiFactory = function (configuration, basePath, axios) {
531
529
  * This will get a task by code.
532
530
  * @summary Retrieve the task
533
531
  * @param {string} code
534
- * @param {string} expand
535
532
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
533
+ * @param {string} [expand] Expand to fetch additional information about the task.
536
534
  * @param {*} [options] Override http request option.
537
535
  * @throws {RequiredError}
538
536
  */
539
- getTask: function (code, expand, authorization, options) {
540
- return localVarFp.getTask(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
537
+ getTask: function (code, authorization, expand, options) {
538
+ return localVarFp.getTask(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
541
539
  },
542
540
  /**
543
541
  * Retrieves a list of tasks.
@@ -616,7 +614,7 @@ var TasksApi = /** @class */ (function (_super) {
616
614
  */
617
615
  TasksApi.prototype.getTask = function (requestParameters, options) {
618
616
  var _this = this;
619
- return (0, exports.TasksApiFp)(this.configuration).getTask(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
617
+ return (0, exports.TasksApiFp)(this.configuration).getTask(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
620
618
  };
621
619
  /**
622
620
  * Retrieves a list of tasks.
@@ -38,13 +38,13 @@ export interface CreateTaskRequestDto {
38
38
  * @type {Array<string>}
39
39
  * @memberof CreateTaskRequestDto
40
40
  */
41
- 'categorySlugs': Array<string>;
41
+ 'categorySlugs'?: Array<string>;
42
42
  /**
43
43
  * Task status slug
44
44
  * @type {string}
45
45
  * @memberof CreateTaskRequestDto
46
46
  */
47
- 'statusSlug'?: string;
47
+ 'statusSlug': string;
48
48
  /**
49
49
  * Task priority
50
50
  * @type {string}
@@ -48,13 +48,25 @@ export interface TaskClass {
48
48
  */
49
49
  'assignee'?: string;
50
50
  /**
51
- * categories
51
+ * Category slugs
52
+ * @type {Array<string>}
53
+ * @memberof TaskClass
54
+ */
55
+ 'categorySlugs'?: Array<string>;
56
+ /**
57
+ * Status slug (always returned)
58
+ * @type {string}
59
+ * @memberof TaskClass
60
+ */
61
+ 'statusSlug': string;
62
+ /**
63
+ * categories (only populated when expand=categories)
52
64
  * @type {Array<CategoryClass>}
53
65
  * @memberof TaskClass
54
66
  */
55
- 'categories': Array<CategoryClass>;
67
+ 'categories'?: Array<CategoryClass>;
56
68
  /**
57
- * status
69
+ * status (only populated when expand=status)
58
70
  * @type {StatusClass}
59
71
  * @memberof TaskClass
60
72
  */
@@ -43,13 +43,13 @@ export interface CreateTaskRequestDto {
43
43
  * @type {Array<string>}
44
44
  * @memberof CreateTaskRequestDto
45
45
  */
46
- 'categorySlugs': Array<string>;
46
+ 'categorySlugs'?: Array<string>;
47
47
  /**
48
48
  * Task status slug
49
49
  * @type {string}
50
50
  * @memberof CreateTaskRequestDto
51
51
  */
52
- 'statusSlug'?: string;
52
+ 'statusSlug': string;
53
53
  /**
54
54
  * Task priority
55
55
  * @type {string}
@@ -53,13 +53,25 @@ export interface TaskClass {
53
53
  */
54
54
  'assignee'?: string;
55
55
  /**
56
- * categories
56
+ * Category slugs
57
+ * @type {Array<string>}
58
+ * @memberof TaskClass
59
+ */
60
+ 'categorySlugs'?: Array<string>;
61
+ /**
62
+ * Status slug (always returned)
63
+ * @type {string}
64
+ * @memberof TaskClass
65
+ */
66
+ 'statusSlug': string;
67
+ /**
68
+ * categories (only populated when expand=categories)
57
69
  * @type {Array<CategoryClass>}
58
70
  * @memberof TaskClass
59
71
  */
60
- 'categories': Array<CategoryClass>;
72
+ 'categories'?: Array<CategoryClass>;
61
73
  /**
62
- * status
74
+ * status (only populated when expand=status)
63
75
  * @type {StatusClass}
64
76
  * @memberof TaskClass
65
77
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/task-sdk-node",
3
- "version": "1.0.1-beta.12",
3
+ "version": "1.0.1-beta.14",
4
4
  "description": "OpenAPI client for @emilgroup/task-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [