@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
|
@@ -97,7 +97,7 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* This will create a category.
|
|
100
|
+
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
101
101
|
* @summary Create the category
|
|
102
102
|
* @param {CreateCategoryRequestDto} createCategoryRequestDto
|
|
103
103
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -146,7 +146,7 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
148
|
/**
|
|
149
|
-
* This will delete a task category by code.
|
|
149
|
+
* This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\"
|
|
150
150
|
* @summary Delete the category
|
|
151
151
|
* @param {string} code Unique identifier for the object.
|
|
152
152
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -194,15 +194,15 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
194
194
|
});
|
|
195
195
|
},
|
|
196
196
|
/**
|
|
197
|
-
* Get category by code.
|
|
197
|
+
* Get category by code. **Required Permissions** \"task-management.tasks.view\"
|
|
198
198
|
* @summary Retrieve the category
|
|
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 category.
|
|
202
202
|
* @param {*} [options] Override http request option.
|
|
203
203
|
* @throws {RequiredError}
|
|
204
204
|
*/
|
|
205
|
-
getCategory: function (code,
|
|
205
|
+
getCategory: 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 CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
211
211
|
case 0:
|
|
212
212
|
// verify required parameter 'code' is not null or undefined
|
|
213
213
|
(0, common_1.assertParamExists)('getCategory', 'code', code);
|
|
214
|
-
// verify required parameter 'expand' is not null or undefined
|
|
215
|
-
(0, common_1.assertParamExists)('getCategory', 'expand', expand);
|
|
216
214
|
localVarPath = "/taskservice/v1/categories/{code}"
|
|
217
215
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
218
216
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -248,18 +246,20 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
248
246
|
});
|
|
249
247
|
},
|
|
250
248
|
/**
|
|
251
|
-
* Retrieves a list of categories.
|
|
249
|
+
* Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\"
|
|
252
250
|
* @summary List categories
|
|
253
251
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
254
|
-
* @param {
|
|
255
|
-
* @param {string} [
|
|
256
|
-
* @param {string} [
|
|
252
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
253
|
+
* @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.
|
|
254
|
+
* @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>
|
|
255
|
+
* @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>
|
|
257
256
|
* @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>
|
|
258
257
|
* @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/>
|
|
258
|
+
* @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>
|
|
259
259
|
* @param {*} [options] Override http request option.
|
|
260
260
|
* @throws {RequiredError}
|
|
261
261
|
*/
|
|
262
|
-
listCategories: function (authorization,
|
|
262
|
+
listCategories: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
263
263
|
if (options === void 0) { options = {}; }
|
|
264
264
|
return __awaiter(_this, void 0, void 0, function () {
|
|
265
265
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -282,12 +282,15 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
282
282
|
// authentication bearer required
|
|
283
283
|
// http bearer authentication required
|
|
284
284
|
_a.sent();
|
|
285
|
+
if (pageSize !== undefined) {
|
|
286
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
287
|
+
}
|
|
288
|
+
if (pageToken !== undefined) {
|
|
289
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
290
|
+
}
|
|
285
291
|
if (filter !== undefined) {
|
|
286
292
|
localVarQueryParameter['filter'] = filter;
|
|
287
293
|
}
|
|
288
|
-
if (filters !== undefined) {
|
|
289
|
-
localVarQueryParameter['filters'] = filters;
|
|
290
|
-
}
|
|
291
294
|
if (search !== undefined) {
|
|
292
295
|
localVarQueryParameter['search'] = search;
|
|
293
296
|
}
|
|
@@ -297,6 +300,9 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
297
300
|
if (expand !== undefined) {
|
|
298
301
|
localVarQueryParameter['expand'] = expand;
|
|
299
302
|
}
|
|
303
|
+
if (filters !== undefined) {
|
|
304
|
+
localVarQueryParameter['filters'] = filters;
|
|
305
|
+
}
|
|
300
306
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
301
307
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
302
308
|
}
|
|
@@ -312,15 +318,15 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
312
318
|
});
|
|
313
319
|
},
|
|
314
320
|
/**
|
|
315
|
-
* This will update category.
|
|
321
|
+
* This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
316
322
|
* @summary Update the category
|
|
317
323
|
* @param {string} code
|
|
318
|
-
* @param {
|
|
324
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
319
325
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
320
326
|
* @param {*} [options] Override http request option.
|
|
321
327
|
* @throws {RequiredError}
|
|
322
328
|
*/
|
|
323
|
-
|
|
329
|
+
patchCategory: function (code, patchCategoryRequestDto, authorization, options) {
|
|
324
330
|
if (options === void 0) { options = {}; }
|
|
325
331
|
return __awaiter(_this, void 0, void 0, function () {
|
|
326
332
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -328,9 +334,9 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
328
334
|
switch (_a.label) {
|
|
329
335
|
case 0:
|
|
330
336
|
// verify required parameter 'code' is not null or undefined
|
|
331
|
-
(0, common_1.assertParamExists)('
|
|
332
|
-
// verify required parameter '
|
|
333
|
-
(0, common_1.assertParamExists)('
|
|
337
|
+
(0, common_1.assertParamExists)('patchCategory', 'code', code);
|
|
338
|
+
// verify required parameter 'patchCategoryRequestDto' is not null or undefined
|
|
339
|
+
(0, common_1.assertParamExists)('patchCategory', 'patchCategoryRequestDto', patchCategoryRequestDto);
|
|
334
340
|
localVarPath = "/taskservice/v1/categories/{code}"
|
|
335
341
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
336
342
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -338,7 +344,7 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
338
344
|
baseOptions = configuration.baseOptions;
|
|
339
345
|
baseAccessToken = configuration.accessToken;
|
|
340
346
|
}
|
|
341
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
347
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
342
348
|
localVarHeaderParameter = {};
|
|
343
349
|
localVarQueryParameter = {};
|
|
344
350
|
// authentication bearer required
|
|
@@ -355,7 +361,7 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
355
361
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
356
362
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
357
363
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
358
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
364
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchCategoryRequestDto, localVarRequestOptions, configuration);
|
|
359
365
|
return [2 /*return*/, {
|
|
360
366
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
361
367
|
options: localVarRequestOptions,
|
|
@@ -375,7 +381,7 @@ var CategoriesApiFp = function (configuration) {
|
|
|
375
381
|
var localVarAxiosParamCreator = (0, exports.CategoriesApiAxiosParamCreator)(configuration);
|
|
376
382
|
return {
|
|
377
383
|
/**
|
|
378
|
-
* This will create a category.
|
|
384
|
+
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
379
385
|
* @summary Create the category
|
|
380
386
|
* @param {CreateCategoryRequestDto} createCategoryRequestDto
|
|
381
387
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -396,7 +402,7 @@ var CategoriesApiFp = function (configuration) {
|
|
|
396
402
|
});
|
|
397
403
|
},
|
|
398
404
|
/**
|
|
399
|
-
* This will delete a task category by code.
|
|
405
|
+
* This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\"
|
|
400
406
|
* @summary Delete the category
|
|
401
407
|
* @param {string} code Unique identifier for the object.
|
|
402
408
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -417,20 +423,20 @@ var CategoriesApiFp = function (configuration) {
|
|
|
417
423
|
});
|
|
418
424
|
},
|
|
419
425
|
/**
|
|
420
|
-
* Get category by code.
|
|
426
|
+
* Get category by code. **Required Permissions** \"task-management.tasks.view\"
|
|
421
427
|
* @summary Retrieve the category
|
|
422
428
|
* @param {string} code
|
|
423
|
-
* @param {string} expand
|
|
424
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 category.
|
|
425
431
|
* @param {*} [options] Override http request option.
|
|
426
432
|
* @throws {RequiredError}
|
|
427
433
|
*/
|
|
428
|
-
getCategory: function (code,
|
|
434
|
+
getCategory: function (code, authorization, expand, options) {
|
|
429
435
|
return __awaiter(this, void 0, void 0, function () {
|
|
430
436
|
var localVarAxiosArgs;
|
|
431
437
|
return __generator(this, function (_a) {
|
|
432
438
|
switch (_a.label) {
|
|
433
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCategory(code,
|
|
439
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCategory(code, authorization, expand, options)];
|
|
434
440
|
case 1:
|
|
435
441
|
localVarAxiosArgs = _a.sent();
|
|
436
442
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -439,23 +445,25 @@ var CategoriesApiFp = function (configuration) {
|
|
|
439
445
|
});
|
|
440
446
|
},
|
|
441
447
|
/**
|
|
442
|
-
* Retrieves a list of categories.
|
|
448
|
+
* Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\"
|
|
443
449
|
* @summary List categories
|
|
444
450
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
445
|
-
* @param {
|
|
446
|
-
* @param {string} [
|
|
447
|
-
* @param {string} [
|
|
451
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
452
|
+
* @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.
|
|
453
|
+
* @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>
|
|
454
|
+
* @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>
|
|
448
455
|
* @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>
|
|
449
456
|
* @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/>
|
|
457
|
+
* @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>
|
|
450
458
|
* @param {*} [options] Override http request option.
|
|
451
459
|
* @throws {RequiredError}
|
|
452
460
|
*/
|
|
453
|
-
listCategories: function (authorization,
|
|
461
|
+
listCategories: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
454
462
|
return __awaiter(this, void 0, void 0, function () {
|
|
455
463
|
var localVarAxiosArgs;
|
|
456
464
|
return __generator(this, function (_a) {
|
|
457
465
|
switch (_a.label) {
|
|
458
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCategories(authorization,
|
|
466
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCategories(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
459
467
|
case 1:
|
|
460
468
|
localVarAxiosArgs = _a.sent();
|
|
461
469
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -464,20 +472,20 @@ var CategoriesApiFp = function (configuration) {
|
|
|
464
472
|
});
|
|
465
473
|
},
|
|
466
474
|
/**
|
|
467
|
-
* This will update category.
|
|
475
|
+
* This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
468
476
|
* @summary Update the category
|
|
469
477
|
* @param {string} code
|
|
470
|
-
* @param {
|
|
478
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
471
479
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
472
480
|
* @param {*} [options] Override http request option.
|
|
473
481
|
* @throws {RequiredError}
|
|
474
482
|
*/
|
|
475
|
-
|
|
483
|
+
patchCategory: function (code, patchCategoryRequestDto, authorization, options) {
|
|
476
484
|
return __awaiter(this, void 0, void 0, function () {
|
|
477
485
|
var localVarAxiosArgs;
|
|
478
486
|
return __generator(this, function (_a) {
|
|
479
487
|
switch (_a.label) {
|
|
480
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
488
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchCategory(code, patchCategoryRequestDto, authorization, options)];
|
|
481
489
|
case 1:
|
|
482
490
|
localVarAxiosArgs = _a.sent();
|
|
483
491
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -496,7 +504,7 @@ var CategoriesApiFactory = function (configuration, basePath, axios) {
|
|
|
496
504
|
var localVarFp = (0, exports.CategoriesApiFp)(configuration);
|
|
497
505
|
return {
|
|
498
506
|
/**
|
|
499
|
-
* This will create a category.
|
|
507
|
+
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
500
508
|
* @summary Create the category
|
|
501
509
|
* @param {CreateCategoryRequestDto} createCategoryRequestDto
|
|
502
510
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -507,7 +515,7 @@ var CategoriesApiFactory = function (configuration, basePath, axios) {
|
|
|
507
515
|
return localVarFp.createCategory(createCategoryRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
508
516
|
},
|
|
509
517
|
/**
|
|
510
|
-
* This will delete a task category by code.
|
|
518
|
+
* This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\"
|
|
511
519
|
* @summary Delete the category
|
|
512
520
|
* @param {string} code Unique identifier for the object.
|
|
513
521
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -518,43 +526,45 @@ var CategoriesApiFactory = function (configuration, basePath, axios) {
|
|
|
518
526
|
return localVarFp.deleteCategory(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
519
527
|
},
|
|
520
528
|
/**
|
|
521
|
-
* Get category by code.
|
|
529
|
+
* Get category by code. **Required Permissions** \"task-management.tasks.view\"
|
|
522
530
|
* @summary Retrieve the category
|
|
523
531
|
* @param {string} code
|
|
524
|
-
* @param {string} expand
|
|
525
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 category.
|
|
526
534
|
* @param {*} [options] Override http request option.
|
|
527
535
|
* @throws {RequiredError}
|
|
528
536
|
*/
|
|
529
|
-
getCategory: function (code,
|
|
530
|
-
return localVarFp.getCategory(code,
|
|
537
|
+
getCategory: function (code, authorization, expand, options) {
|
|
538
|
+
return localVarFp.getCategory(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
531
539
|
},
|
|
532
540
|
/**
|
|
533
|
-
* Retrieves a list of categories.
|
|
541
|
+
* Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\"
|
|
534
542
|
* @summary List categories
|
|
535
543
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
536
|
-
* @param {
|
|
537
|
-
* @param {string} [
|
|
538
|
-
* @param {string} [
|
|
544
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
545
|
+
* @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.
|
|
546
|
+
* @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>
|
|
547
|
+
* @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>
|
|
539
548
|
* @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>
|
|
540
549
|
* @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/>
|
|
550
|
+
* @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>
|
|
541
551
|
* @param {*} [options] Override http request option.
|
|
542
552
|
* @throws {RequiredError}
|
|
543
553
|
*/
|
|
544
|
-
listCategories: function (authorization,
|
|
545
|
-
return localVarFp.listCategories(authorization,
|
|
554
|
+
listCategories: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
555
|
+
return localVarFp.listCategories(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
546
556
|
},
|
|
547
557
|
/**
|
|
548
|
-
* This will update category.
|
|
558
|
+
* This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
549
559
|
* @summary Update the category
|
|
550
560
|
* @param {string} code
|
|
551
|
-
* @param {
|
|
561
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
552
562
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
553
563
|
* @param {*} [options] Override http request option.
|
|
554
564
|
* @throws {RequiredError}
|
|
555
565
|
*/
|
|
556
|
-
|
|
557
|
-
return localVarFp.
|
|
566
|
+
patchCategory: function (code, patchCategoryRequestDto, authorization, options) {
|
|
567
|
+
return localVarFp.patchCategory(code, patchCategoryRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
558
568
|
},
|
|
559
569
|
};
|
|
560
570
|
};
|
|
@@ -571,7 +581,7 @@ var CategoriesApi = /** @class */ (function (_super) {
|
|
|
571
581
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
572
582
|
}
|
|
573
583
|
/**
|
|
574
|
-
* This will create a category.
|
|
584
|
+
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
575
585
|
* @summary Create the category
|
|
576
586
|
* @param {CategoriesApiCreateCategoryRequest} requestParameters Request parameters.
|
|
577
587
|
* @param {*} [options] Override http request option.
|
|
@@ -583,7 +593,7 @@ var CategoriesApi = /** @class */ (function (_super) {
|
|
|
583
593
|
return (0, exports.CategoriesApiFp)(this.configuration).createCategory(requestParameters.createCategoryRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
584
594
|
};
|
|
585
595
|
/**
|
|
586
|
-
* This will delete a task category by code.
|
|
596
|
+
* This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\"
|
|
587
597
|
* @summary Delete the category
|
|
588
598
|
* @param {CategoriesApiDeleteCategoryRequest} requestParameters Request parameters.
|
|
589
599
|
* @param {*} [options] Override http request option.
|
|
@@ -595,7 +605,7 @@ var CategoriesApi = /** @class */ (function (_super) {
|
|
|
595
605
|
return (0, exports.CategoriesApiFp)(this.configuration).deleteCategory(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
596
606
|
};
|
|
597
607
|
/**
|
|
598
|
-
* Get category by code.
|
|
608
|
+
* Get category by code. **Required Permissions** \"task-management.tasks.view\"
|
|
599
609
|
* @summary Retrieve the category
|
|
600
610
|
* @param {CategoriesApiGetCategoryRequest} requestParameters Request parameters.
|
|
601
611
|
* @param {*} [options] Override http request option.
|
|
@@ -604,10 +614,10 @@ var CategoriesApi = /** @class */ (function (_super) {
|
|
|
604
614
|
*/
|
|
605
615
|
CategoriesApi.prototype.getCategory = function (requestParameters, options) {
|
|
606
616
|
var _this = this;
|
|
607
|
-
return (0, exports.CategoriesApiFp)(this.configuration).getCategory(requestParameters.code, requestParameters.
|
|
617
|
+
return (0, exports.CategoriesApiFp)(this.configuration).getCategory(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
608
618
|
};
|
|
609
619
|
/**
|
|
610
|
-
* Retrieves a list of categories.
|
|
620
|
+
* Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\"
|
|
611
621
|
* @summary List categories
|
|
612
622
|
* @param {CategoriesApiListCategoriesRequest} requestParameters Request parameters.
|
|
613
623
|
* @param {*} [options] Override http request option.
|
|
@@ -617,19 +627,19 @@ var CategoriesApi = /** @class */ (function (_super) {
|
|
|
617
627
|
CategoriesApi.prototype.listCategories = function (requestParameters, options) {
|
|
618
628
|
var _this = this;
|
|
619
629
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
620
|
-
return (0, exports.CategoriesApiFp)(this.configuration).listCategories(requestParameters.authorization, requestParameters.
|
|
630
|
+
return (0, exports.CategoriesApiFp)(this.configuration).listCategories(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
621
631
|
};
|
|
622
632
|
/**
|
|
623
|
-
* This will update category.
|
|
633
|
+
* This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
624
634
|
* @summary Update the category
|
|
625
|
-
* @param {
|
|
635
|
+
* @param {CategoriesApiPatchCategoryRequest} requestParameters Request parameters.
|
|
626
636
|
* @param {*} [options] Override http request option.
|
|
627
637
|
* @throws {RequiredError}
|
|
628
638
|
* @memberof CategoriesApi
|
|
629
639
|
*/
|
|
630
|
-
CategoriesApi.prototype.
|
|
640
|
+
CategoriesApi.prototype.patchCategory = function (requestParameters, options) {
|
|
631
641
|
var _this = this;
|
|
632
|
-
return (0, exports.CategoriesApiFp)(this.configuration).
|
|
642
|
+
return (0, exports.CategoriesApiFp)(this.configuration).patchCategory(requestParameters.code, requestParameters.patchCategoryRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
633
643
|
};
|
|
634
644
|
return CategoriesApi;
|
|
635
645
|
}(base_1.BaseAPI));
|
package/dist/api/default-api.js
CHANGED
|
@@ -107,7 +107,7 @@ var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
return __awaiter(_this, void 0, void 0, function () {
|
|
108
108
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
109
109
|
return __generator(this, function (_a) {
|
|
110
|
-
localVarPath = "/
|
|
110
|
+
localVarPath = "/taskservice/health";
|
|
111
111
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
112
112
|
if (configuration) {
|
|
113
113
|
baseOptions = configuration.baseOptions;
|
|
@@ -20,7 +20,7 @@ import { CreateHubSpotTicketResponseClass } from '../models';
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const HubSpotApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
22
|
/**
|
|
23
|
-
* This will create hub spot ticket.
|
|
23
|
+
* This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\"
|
|
24
24
|
* @summary Create the hub spot ticket
|
|
25
25
|
* @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
|
|
26
26
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -35,7 +35,7 @@ export declare const HubSpotApiAxiosParamCreator: (configuration?: Configuration
|
|
|
35
35
|
*/
|
|
36
36
|
export declare const HubSpotApiFp: (configuration?: Configuration) => {
|
|
37
37
|
/**
|
|
38
|
-
* This will create hub spot ticket.
|
|
38
|
+
* This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\"
|
|
39
39
|
* @summary Create the hub spot ticket
|
|
40
40
|
* @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
|
|
41
41
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -50,7 +50,7 @@ export declare const HubSpotApiFp: (configuration?: Configuration) => {
|
|
|
50
50
|
*/
|
|
51
51
|
export declare const HubSpotApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
52
52
|
/**
|
|
53
|
-
* This will create hub spot ticket.
|
|
53
|
+
* This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\"
|
|
54
54
|
* @summary Create the hub spot ticket
|
|
55
55
|
* @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
|
|
56
56
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -86,7 +86,7 @@ export interface HubSpotApiCreateHubSpotTicketRequest {
|
|
|
86
86
|
*/
|
|
87
87
|
export declare class HubSpotApi extends BaseAPI {
|
|
88
88
|
/**
|
|
89
|
-
* This will create hub spot ticket.
|
|
89
|
+
* This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\"
|
|
90
90
|
* @summary Create the hub spot ticket
|
|
91
91
|
* @param {HubSpotApiCreateHubSpotTicketRequest} requestParameters Request parameters.
|
|
92
92
|
* @param {*} [options] Override http request option.
|
package/dist/api/hub-spot-api.js
CHANGED
|
@@ -97,7 +97,7 @@ var HubSpotApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* This will create hub spot ticket.
|
|
100
|
+
* This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\"
|
|
101
101
|
* @summary Create the hub spot ticket
|
|
102
102
|
* @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
|
|
103
103
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -156,7 +156,7 @@ var HubSpotApiFp = function (configuration) {
|
|
|
156
156
|
var localVarAxiosParamCreator = (0, exports.HubSpotApiAxiosParamCreator)(configuration);
|
|
157
157
|
return {
|
|
158
158
|
/**
|
|
159
|
-
* This will create hub spot ticket.
|
|
159
|
+
* This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\"
|
|
160
160
|
* @summary Create the hub spot ticket
|
|
161
161
|
* @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
|
|
162
162
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -187,7 +187,7 @@ var HubSpotApiFactory = function (configuration, basePath, axios) {
|
|
|
187
187
|
var localVarFp = (0, exports.HubSpotApiFp)(configuration);
|
|
188
188
|
return {
|
|
189
189
|
/**
|
|
190
|
-
* This will create hub spot ticket.
|
|
190
|
+
* This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\"
|
|
191
191
|
* @summary Create the hub spot ticket
|
|
192
192
|
* @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
|
|
193
193
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -212,7 +212,7 @@ var HubSpotApi = /** @class */ (function (_super) {
|
|
|
212
212
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
213
213
|
}
|
|
214
214
|
/**
|
|
215
|
-
* This will create hub spot ticket.
|
|
215
|
+
* This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\"
|
|
216
216
|
* @summary Create the hub spot ticket
|
|
217
217
|
* @param {HubSpotApiCreateHubSpotTicketRequest} requestParameters Request parameters.
|
|
218
218
|
* @param {*} [options] Override http request option.
|