@emilgroup/task-sdk 1.3.1-beta.1 → 1.3.1-beta.11

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.
@@ -0,0 +1,1838 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL TaskService
6
+ * The EMIL Task API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.TaskClientApi = exports.TaskClientApiFactory = exports.TaskClientApiFp = exports.TaskClientApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * TaskClientApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var TaskClientApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * This will create a category. **Required Permissions** \"task-management.tasks.create\"
97
+ * @summary Create the category
98
+ * @param {CreateCategoryRequestDto} createCategoryRequestDto
99
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ createCategory: function (createCategoryRequestDto, authorization, options) {
104
+ if (options === void 0) { options = {}; }
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0:
110
+ // verify required parameter 'createCategoryRequestDto' is not null or undefined
111
+ (0, common_1.assertParamExists)('createCategory', 'createCategoryRequestDto', createCategoryRequestDto);
112
+ localVarPath = "/taskservice/v1/categories";
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ baseAccessToken = configuration.accessToken;
117
+ }
118
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
119
+ localVarHeaderParameter = {};
120
+ localVarQueryParameter = {};
121
+ // authentication bearer required
122
+ // http bearer authentication required
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ case 1:
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ _a.sent();
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+ localVarHeaderParameter['Content-Type'] = 'application/json';
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCategoryRequestDto, localVarRequestOptions, configuration);
136
+ return [2 /*return*/, {
137
+ url: (0, common_1.toPathString)(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ }];
140
+ }
141
+ });
142
+ });
143
+ },
144
+ /**
145
+ * This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\"
146
+ * @summary Create the hub spot ticket
147
+ * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
148
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ createHubSpotTicket: function (createHubSpotTicketRequestDto, authorization, options) {
153
+ if (options === void 0) { options = {}; }
154
+ return __awaiter(_this, void 0, void 0, function () {
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
+ return __generator(this, function (_a) {
157
+ switch (_a.label) {
158
+ case 0:
159
+ // verify required parameter 'createHubSpotTicketRequestDto' is not null or undefined
160
+ (0, common_1.assertParamExists)('createHubSpotTicket', 'createHubSpotTicketRequestDto', createHubSpotTicketRequestDto);
161
+ localVarPath = "/taskservice/v1/hub-spot-tickets";
162
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
163
+ if (configuration) {
164
+ baseOptions = configuration.baseOptions;
165
+ baseAccessToken = configuration.accessToken;
166
+ }
167
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
168
+ localVarHeaderParameter = {};
169
+ localVarQueryParameter = {};
170
+ // authentication bearer required
171
+ // http bearer authentication required
172
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
173
+ case 1:
174
+ // authentication bearer required
175
+ // http bearer authentication required
176
+ _a.sent();
177
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
178
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
179
+ }
180
+ localVarHeaderParameter['Content-Type'] = 'application/json';
181
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createHubSpotTicketRequestDto, localVarRequestOptions, configuration);
185
+ return [2 /*return*/, {
186
+ url: (0, common_1.toPathString)(localVarUrlObj),
187
+ options: localVarRequestOptions,
188
+ }];
189
+ }
190
+ });
191
+ });
192
+ },
193
+ /**
194
+ * This will create a status. **Required Permissions** \"task-management.tasks.create\"
195
+ * @summary Create the status
196
+ * @param {CreateStatusRequestDto} createStatusRequestDto
197
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ createStatus: function (createStatusRequestDto, authorization, options) {
202
+ if (options === void 0) { options = {}; }
203
+ return __awaiter(_this, void 0, void 0, function () {
204
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
205
+ return __generator(this, function (_a) {
206
+ switch (_a.label) {
207
+ case 0:
208
+ // verify required parameter 'createStatusRequestDto' is not null or undefined
209
+ (0, common_1.assertParamExists)('createStatus', 'createStatusRequestDto', createStatusRequestDto);
210
+ localVarPath = "/taskservice/v1/statuses";
211
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
+ if (configuration) {
213
+ baseOptions = configuration.baseOptions;
214
+ baseAccessToken = configuration.accessToken;
215
+ }
216
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
217
+ localVarHeaderParameter = {};
218
+ localVarQueryParameter = {};
219
+ // authentication bearer required
220
+ // http bearer authentication required
221
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
222
+ case 1:
223
+ // authentication bearer required
224
+ // http bearer authentication required
225
+ _a.sent();
226
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
228
+ }
229
+ localVarHeaderParameter['Content-Type'] = 'application/json';
230
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
231
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
232
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
233
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createStatusRequestDto, localVarRequestOptions, configuration);
234
+ return [2 /*return*/, {
235
+ url: (0, common_1.toPathString)(localVarUrlObj),
236
+ options: localVarRequestOptions,
237
+ }];
238
+ }
239
+ });
240
+ });
241
+ },
242
+ /**
243
+ * This will create a task. **Required Permissions** \"task-management.tasks.create\"
244
+ * @summary Create the task
245
+ * @param {CreateTaskRequestDto} createTaskRequestDto
246
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ */
250
+ createTask: function (createTaskRequestDto, authorization, options) {
251
+ if (options === void 0) { options = {}; }
252
+ return __awaiter(_this, void 0, void 0, function () {
253
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
254
+ return __generator(this, function (_a) {
255
+ switch (_a.label) {
256
+ case 0:
257
+ // verify required parameter 'createTaskRequestDto' is not null or undefined
258
+ (0, common_1.assertParamExists)('createTask', 'createTaskRequestDto', createTaskRequestDto);
259
+ localVarPath = "/taskservice/v1/tasks";
260
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
261
+ if (configuration) {
262
+ baseOptions = configuration.baseOptions;
263
+ baseAccessToken = configuration.accessToken;
264
+ }
265
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
266
+ localVarHeaderParameter = {};
267
+ localVarQueryParameter = {};
268
+ // authentication bearer required
269
+ // http bearer authentication required
270
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
271
+ case 1:
272
+ // authentication bearer required
273
+ // http bearer authentication required
274
+ _a.sent();
275
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
276
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
277
+ }
278
+ localVarHeaderParameter['Content-Type'] = 'application/json';
279
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
280
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
281
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
282
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTaskRequestDto, localVarRequestOptions, configuration);
283
+ return [2 /*return*/, {
284
+ url: (0, common_1.toPathString)(localVarUrlObj),
285
+ options: localVarRequestOptions,
286
+ }];
287
+ }
288
+ });
289
+ });
290
+ },
291
+ /**
292
+ * This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\"
293
+ * @summary Delete the category
294
+ * @param {string} code Unique identifier for the object.
295
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
296
+ * @param {*} [options] Override http request option.
297
+ * @throws {RequiredError}
298
+ */
299
+ deleteCategory: function (code, authorization, options) {
300
+ if (options === void 0) { options = {}; }
301
+ return __awaiter(_this, void 0, void 0, function () {
302
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
303
+ return __generator(this, function (_a) {
304
+ switch (_a.label) {
305
+ case 0:
306
+ // verify required parameter 'code' is not null or undefined
307
+ (0, common_1.assertParamExists)('deleteCategory', 'code', code);
308
+ localVarPath = "/taskservice/v1/categories/{code}"
309
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
310
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
311
+ if (configuration) {
312
+ baseOptions = configuration.baseOptions;
313
+ baseAccessToken = configuration.accessToken;
314
+ }
315
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
316
+ localVarHeaderParameter = {};
317
+ localVarQueryParameter = {};
318
+ // authentication bearer required
319
+ // http bearer authentication required
320
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
321
+ case 1:
322
+ // authentication bearer required
323
+ // http bearer authentication required
324
+ _a.sent();
325
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
326
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
327
+ }
328
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
329
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
330
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
331
+ return [2 /*return*/, {
332
+ url: (0, common_1.toPathString)(localVarUrlObj),
333
+ options: localVarRequestOptions,
334
+ }];
335
+ }
336
+ });
337
+ });
338
+ },
339
+ /**
340
+ * This will delete status. **Required Permissions** \"task-management.tasks.delete\"
341
+ * @summary Delete the status
342
+ * @param {string} code Unique identifier for the object.
343
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ deleteStatus: function (code, authorization, options) {
348
+ if (options === void 0) { options = {}; }
349
+ return __awaiter(_this, void 0, void 0, function () {
350
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
351
+ return __generator(this, function (_a) {
352
+ switch (_a.label) {
353
+ case 0:
354
+ // verify required parameter 'code' is not null or undefined
355
+ (0, common_1.assertParamExists)('deleteStatus', 'code', code);
356
+ localVarPath = "/taskservice/v1/statuses/{code}"
357
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
358
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
359
+ if (configuration) {
360
+ baseOptions = configuration.baseOptions;
361
+ baseAccessToken = configuration.accessToken;
362
+ }
363
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
364
+ localVarHeaderParameter = {};
365
+ localVarQueryParameter = {};
366
+ // authentication bearer required
367
+ // http bearer authentication required
368
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
369
+ case 1:
370
+ // authentication bearer required
371
+ // http bearer authentication required
372
+ _a.sent();
373
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
374
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
375
+ }
376
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
377
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
378
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
379
+ return [2 /*return*/, {
380
+ url: (0, common_1.toPathString)(localVarUrlObj),
381
+ options: localVarRequestOptions,
382
+ }];
383
+ }
384
+ });
385
+ });
386
+ },
387
+ /**
388
+ * This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\"
389
+ * @summary Delete the task
390
+ * @param {string} code Unique identifier for the object.
391
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ */
395
+ deleteTask: function (code, authorization, options) {
396
+ if (options === void 0) { options = {}; }
397
+ return __awaiter(_this, void 0, void 0, function () {
398
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
399
+ return __generator(this, function (_a) {
400
+ switch (_a.label) {
401
+ case 0:
402
+ // verify required parameter 'code' is not null or undefined
403
+ (0, common_1.assertParamExists)('deleteTask', 'code', code);
404
+ localVarPath = "/taskservice/v1/tasks/{code}"
405
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
406
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
407
+ if (configuration) {
408
+ baseOptions = configuration.baseOptions;
409
+ baseAccessToken = configuration.accessToken;
410
+ }
411
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
412
+ localVarHeaderParameter = {};
413
+ localVarQueryParameter = {};
414
+ // authentication bearer required
415
+ // http bearer authentication required
416
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
417
+ case 1:
418
+ // authentication bearer required
419
+ // http bearer authentication required
420
+ _a.sent();
421
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
422
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
423
+ }
424
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
425
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
426
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
427
+ return [2 /*return*/, {
428
+ url: (0, common_1.toPathString)(localVarUrlObj),
429
+ options: localVarRequestOptions,
430
+ }];
431
+ }
432
+ });
433
+ });
434
+ },
435
+ /**
436
+ * Get category by code. **Required Permissions** \"task-management.tasks.view\"
437
+ * @summary Retrieve the category
438
+ * @param {string} code
439
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
440
+ * @param {string} [expand] Expand to fetch additional information about the category.
441
+ * @param {*} [options] Override http request option.
442
+ * @throws {RequiredError}
443
+ */
444
+ getCategory: function (code, authorization, expand, options) {
445
+ if (options === void 0) { options = {}; }
446
+ return __awaiter(_this, void 0, void 0, function () {
447
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
448
+ return __generator(this, function (_a) {
449
+ switch (_a.label) {
450
+ case 0:
451
+ // verify required parameter 'code' is not null or undefined
452
+ (0, common_1.assertParamExists)('getCategory', 'code', code);
453
+ localVarPath = "/taskservice/v1/categories/{code}"
454
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
455
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
456
+ if (configuration) {
457
+ baseOptions = configuration.baseOptions;
458
+ baseAccessToken = configuration.accessToken;
459
+ }
460
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
461
+ localVarHeaderParameter = {};
462
+ localVarQueryParameter = {};
463
+ // authentication bearer required
464
+ // http bearer authentication required
465
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
466
+ case 1:
467
+ // authentication bearer required
468
+ // http bearer authentication required
469
+ _a.sent();
470
+ if (expand !== undefined) {
471
+ localVarQueryParameter['expand'] = expand;
472
+ }
473
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
474
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
475
+ }
476
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
477
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
478
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
479
+ return [2 /*return*/, {
480
+ url: (0, common_1.toPathString)(localVarUrlObj),
481
+ options: localVarRequestOptions,
482
+ }];
483
+ }
484
+ });
485
+ });
486
+ },
487
+ /**
488
+ * Get status by code. **Required Permissions** \"task-management.tasks.view\"
489
+ * @summary Retrieve the status
490
+ * @param {string} code
491
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
492
+ * @param {string} [expand] Expand to fetch additional information about the status.
493
+ * @param {*} [options] Override http request option.
494
+ * @throws {RequiredError}
495
+ */
496
+ getStatus: function (code, authorization, expand, options) {
497
+ if (options === void 0) { options = {}; }
498
+ return __awaiter(_this, void 0, void 0, function () {
499
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
500
+ return __generator(this, function (_a) {
501
+ switch (_a.label) {
502
+ case 0:
503
+ // verify required parameter 'code' is not null or undefined
504
+ (0, common_1.assertParamExists)('getStatus', 'code', code);
505
+ localVarPath = "/taskservice/v1/statuses/{code}"
506
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
507
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
508
+ if (configuration) {
509
+ baseOptions = configuration.baseOptions;
510
+ baseAccessToken = configuration.accessToken;
511
+ }
512
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
513
+ localVarHeaderParameter = {};
514
+ localVarQueryParameter = {};
515
+ // authentication bearer required
516
+ // http bearer authentication required
517
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
518
+ case 1:
519
+ // authentication bearer required
520
+ // http bearer authentication required
521
+ _a.sent();
522
+ if (expand !== undefined) {
523
+ localVarQueryParameter['expand'] = expand;
524
+ }
525
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
526
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
527
+ }
528
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
529
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
530
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
531
+ return [2 /*return*/, {
532
+ url: (0, common_1.toPathString)(localVarUrlObj),
533
+ options: localVarRequestOptions,
534
+ }];
535
+ }
536
+ });
537
+ });
538
+ },
539
+ /**
540
+ * This will get a task by code. **Required Permissions** \"task-management.tasks.view\"
541
+ * @summary Retrieve the task
542
+ * @param {string} code
543
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
544
+ * @param {string} [expand] Expand to fetch additional information about the task.
545
+ * @param {*} [options] Override http request option.
546
+ * @throws {RequiredError}
547
+ */
548
+ getTask: function (code, authorization, expand, options) {
549
+ if (options === void 0) { options = {}; }
550
+ return __awaiter(_this, void 0, void 0, function () {
551
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
552
+ return __generator(this, function (_a) {
553
+ switch (_a.label) {
554
+ case 0:
555
+ // verify required parameter 'code' is not null or undefined
556
+ (0, common_1.assertParamExists)('getTask', 'code', code);
557
+ localVarPath = "/taskservice/v1/tasks/{code}"
558
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
559
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
560
+ if (configuration) {
561
+ baseOptions = configuration.baseOptions;
562
+ baseAccessToken = configuration.accessToken;
563
+ }
564
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
565
+ localVarHeaderParameter = {};
566
+ localVarQueryParameter = {};
567
+ // authentication bearer required
568
+ // http bearer authentication required
569
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
570
+ case 1:
571
+ // authentication bearer required
572
+ // http bearer authentication required
573
+ _a.sent();
574
+ if (expand !== undefined) {
575
+ localVarQueryParameter['expand'] = expand;
576
+ }
577
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
578
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
579
+ }
580
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
581
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
582
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
583
+ return [2 /*return*/, {
584
+ url: (0, common_1.toPathString)(localVarUrlObj),
585
+ options: localVarRequestOptions,
586
+ }];
587
+ }
588
+ });
589
+ });
590
+ },
591
+ /**
592
+ * Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\"
593
+ * @summary List assignees
594
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
595
+ * @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;
596
+ * @param {*} [options] Override http request option.
597
+ * @throws {RequiredError}
598
+ */
599
+ listAssignees: function (authorization, expand, options) {
600
+ if (options === void 0) { options = {}; }
601
+ return __awaiter(_this, void 0, void 0, function () {
602
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
603
+ return __generator(this, function (_a) {
604
+ switch (_a.label) {
605
+ case 0:
606
+ localVarPath = "/taskservice/v1/assignees";
607
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
608
+ if (configuration) {
609
+ baseOptions = configuration.baseOptions;
610
+ baseAccessToken = configuration.accessToken;
611
+ }
612
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
613
+ localVarHeaderParameter = {};
614
+ localVarQueryParameter = {};
615
+ // authentication bearer required
616
+ // http bearer authentication required
617
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
618
+ case 1:
619
+ // authentication bearer required
620
+ // http bearer authentication required
621
+ _a.sent();
622
+ if (expand !== undefined) {
623
+ localVarQueryParameter['expand'] = expand;
624
+ }
625
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
626
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
627
+ }
628
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
629
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
630
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
631
+ return [2 /*return*/, {
632
+ url: (0, common_1.toPathString)(localVarUrlObj),
633
+ options: localVarRequestOptions,
634
+ }];
635
+ }
636
+ });
637
+ });
638
+ },
639
+ /**
640
+ * Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\"
641
+ * @summary List categories
642
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
643
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
644
+ * @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.
645
+ * @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;
646
+ * @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;
647
+ * @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;
648
+ * @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;
649
+ * @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;
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ */
653
+ listCategories: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
654
+ if (options === void 0) { options = {}; }
655
+ return __awaiter(_this, void 0, void 0, function () {
656
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
657
+ return __generator(this, function (_a) {
658
+ switch (_a.label) {
659
+ case 0:
660
+ localVarPath = "/taskservice/v1/categories";
661
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
662
+ if (configuration) {
663
+ baseOptions = configuration.baseOptions;
664
+ baseAccessToken = configuration.accessToken;
665
+ }
666
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
667
+ localVarHeaderParameter = {};
668
+ localVarQueryParameter = {};
669
+ // authentication bearer required
670
+ // http bearer authentication required
671
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
672
+ case 1:
673
+ // authentication bearer required
674
+ // http bearer authentication required
675
+ _a.sent();
676
+ if (pageSize !== undefined) {
677
+ localVarQueryParameter['pageSize'] = pageSize;
678
+ }
679
+ if (pageToken !== undefined) {
680
+ localVarQueryParameter['pageToken'] = pageToken;
681
+ }
682
+ if (filter !== undefined) {
683
+ localVarQueryParameter['filter'] = filter;
684
+ }
685
+ if (search !== undefined) {
686
+ localVarQueryParameter['search'] = search;
687
+ }
688
+ if (order !== undefined) {
689
+ localVarQueryParameter['order'] = order;
690
+ }
691
+ if (expand !== undefined) {
692
+ localVarQueryParameter['expand'] = expand;
693
+ }
694
+ if (filters !== undefined) {
695
+ localVarQueryParameter['filters'] = filters;
696
+ }
697
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
698
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
699
+ }
700
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
701
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
702
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
703
+ return [2 /*return*/, {
704
+ url: (0, common_1.toPathString)(localVarUrlObj),
705
+ options: localVarRequestOptions,
706
+ }];
707
+ }
708
+ });
709
+ });
710
+ },
711
+ /**
712
+ * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
713
+ * @summary List statuses
714
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
715
+ * @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;
716
+ * @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;
717
+ * @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;
718
+ * @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;
719
+ * @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;
720
+ * @param {*} [options] Override http request option.
721
+ * @throws {RequiredError}
722
+ */
723
+ listStatuses: function (authorization, filter, filters, search, order, expand, options) {
724
+ if (options === void 0) { options = {}; }
725
+ return __awaiter(_this, void 0, void 0, function () {
726
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
727
+ return __generator(this, function (_a) {
728
+ switch (_a.label) {
729
+ case 0:
730
+ localVarPath = "/taskservice/v1/statuses";
731
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
732
+ if (configuration) {
733
+ baseOptions = configuration.baseOptions;
734
+ baseAccessToken = configuration.accessToken;
735
+ }
736
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
737
+ localVarHeaderParameter = {};
738
+ localVarQueryParameter = {};
739
+ // authentication bearer required
740
+ // http bearer authentication required
741
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
742
+ case 1:
743
+ // authentication bearer required
744
+ // http bearer authentication required
745
+ _a.sent();
746
+ if (filter !== undefined) {
747
+ localVarQueryParameter['filter'] = filter;
748
+ }
749
+ if (filters !== undefined) {
750
+ localVarQueryParameter['filters'] = filters;
751
+ }
752
+ if (search !== undefined) {
753
+ localVarQueryParameter['search'] = search;
754
+ }
755
+ if (order !== undefined) {
756
+ localVarQueryParameter['order'] = order;
757
+ }
758
+ if (expand !== undefined) {
759
+ localVarQueryParameter['expand'] = expand;
760
+ }
761
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
762
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
763
+ }
764
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
765
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
766
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
767
+ return [2 /*return*/, {
768
+ url: (0, common_1.toPathString)(localVarUrlObj),
769
+ options: localVarRequestOptions,
770
+ }];
771
+ }
772
+ });
773
+ });
774
+ },
775
+ /**
776
+ * Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\"
777
+ * @summary List tasks
778
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
779
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
780
+ * @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.
781
+ * @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, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
782
+ * @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: subject, description&lt;/i&gt;
783
+ * @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, assignee, reporter, dueDate, entityType, entityCode, status, priority&lt;/i&gt;
784
+ * @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; &lt;i&gt;Allowed values: categories, status&lt;i&gt;
785
+ * @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, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
786
+ * @param {*} [options] Override http request option.
787
+ * @throws {RequiredError}
788
+ */
789
+ listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
790
+ if (options === void 0) { options = {}; }
791
+ return __awaiter(_this, void 0, void 0, function () {
792
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
793
+ return __generator(this, function (_a) {
794
+ switch (_a.label) {
795
+ case 0:
796
+ localVarPath = "/taskservice/v1/tasks";
797
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
798
+ if (configuration) {
799
+ baseOptions = configuration.baseOptions;
800
+ baseAccessToken = configuration.accessToken;
801
+ }
802
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
803
+ localVarHeaderParameter = {};
804
+ localVarQueryParameter = {};
805
+ // authentication bearer required
806
+ // http bearer authentication required
807
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
808
+ case 1:
809
+ // authentication bearer required
810
+ // http bearer authentication required
811
+ _a.sent();
812
+ if (pageSize !== undefined) {
813
+ localVarQueryParameter['pageSize'] = pageSize;
814
+ }
815
+ if (pageToken !== undefined) {
816
+ localVarQueryParameter['pageToken'] = pageToken;
817
+ }
818
+ if (filter !== undefined) {
819
+ localVarQueryParameter['filter'] = filter;
820
+ }
821
+ if (search !== undefined) {
822
+ localVarQueryParameter['search'] = search;
823
+ }
824
+ if (order !== undefined) {
825
+ localVarQueryParameter['order'] = order;
826
+ }
827
+ if (expand !== undefined) {
828
+ localVarQueryParameter['expand'] = expand;
829
+ }
830
+ if (filters !== undefined) {
831
+ localVarQueryParameter['filters'] = filters;
832
+ }
833
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
834
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
835
+ }
836
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
837
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
838
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
839
+ return [2 /*return*/, {
840
+ url: (0, common_1.toPathString)(localVarUrlObj),
841
+ options: localVarRequestOptions,
842
+ }];
843
+ }
844
+ });
845
+ });
846
+ },
847
+ /**
848
+ * This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
849
+ * @summary Update the category
850
+ * @param {string} code
851
+ * @param {PatchCategoryRequestDto} patchCategoryRequestDto
852
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
853
+ * @param {*} [options] Override http request option.
854
+ * @throws {RequiredError}
855
+ */
856
+ patchCategory: function (code, patchCategoryRequestDto, authorization, options) {
857
+ if (options === void 0) { options = {}; }
858
+ return __awaiter(_this, void 0, void 0, function () {
859
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
860
+ return __generator(this, function (_a) {
861
+ switch (_a.label) {
862
+ case 0:
863
+ // verify required parameter 'code' is not null or undefined
864
+ (0, common_1.assertParamExists)('patchCategory', 'code', code);
865
+ // verify required parameter 'patchCategoryRequestDto' is not null or undefined
866
+ (0, common_1.assertParamExists)('patchCategory', 'patchCategoryRequestDto', patchCategoryRequestDto);
867
+ localVarPath = "/taskservice/v1/categories/{code}"
868
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
869
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
870
+ if (configuration) {
871
+ baseOptions = configuration.baseOptions;
872
+ baseAccessToken = configuration.accessToken;
873
+ }
874
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
875
+ localVarHeaderParameter = {};
876
+ localVarQueryParameter = {};
877
+ // authentication bearer required
878
+ // http bearer authentication required
879
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
880
+ case 1:
881
+ // authentication bearer required
882
+ // http bearer authentication required
883
+ _a.sent();
884
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
885
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
886
+ }
887
+ localVarHeaderParameter['Content-Type'] = 'application/json';
888
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
889
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
890
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
891
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchCategoryRequestDto, localVarRequestOptions, configuration);
892
+ return [2 /*return*/, {
893
+ url: (0, common_1.toPathString)(localVarUrlObj),
894
+ options: localVarRequestOptions,
895
+ }];
896
+ }
897
+ });
898
+ });
899
+ },
900
+ /**
901
+ * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
902
+ * @summary Update the status
903
+ * @param {string} code
904
+ * @param {PatchStatusRequestDto} patchStatusRequestDto
905
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
906
+ * @param {*} [options] Override http request option.
907
+ * @throws {RequiredError}
908
+ */
909
+ patchStatus: function (code, patchStatusRequestDto, authorization, options) {
910
+ if (options === void 0) { options = {}; }
911
+ return __awaiter(_this, void 0, void 0, function () {
912
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
913
+ return __generator(this, function (_a) {
914
+ switch (_a.label) {
915
+ case 0:
916
+ // verify required parameter 'code' is not null or undefined
917
+ (0, common_1.assertParamExists)('patchStatus', 'code', code);
918
+ // verify required parameter 'patchStatusRequestDto' is not null or undefined
919
+ (0, common_1.assertParamExists)('patchStatus', 'patchStatusRequestDto', patchStatusRequestDto);
920
+ localVarPath = "/taskservice/v1/statuses/{code}"
921
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
922
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
923
+ if (configuration) {
924
+ baseOptions = configuration.baseOptions;
925
+ baseAccessToken = configuration.accessToken;
926
+ }
927
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
928
+ localVarHeaderParameter = {};
929
+ localVarQueryParameter = {};
930
+ // authentication bearer required
931
+ // http bearer authentication required
932
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
933
+ case 1:
934
+ // authentication bearer required
935
+ // http bearer authentication required
936
+ _a.sent();
937
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
938
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
939
+ }
940
+ localVarHeaderParameter['Content-Type'] = 'application/json';
941
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
942
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
943
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
944
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchStatusRequestDto, localVarRequestOptions, configuration);
945
+ return [2 /*return*/, {
946
+ url: (0, common_1.toPathString)(localVarUrlObj),
947
+ options: localVarRequestOptions,
948
+ }];
949
+ }
950
+ });
951
+ });
952
+ },
953
+ /**
954
+ * This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
955
+ * @summary Update the task
956
+ * @param {string} code
957
+ * @param {PatchTaskRequestDto} patchTaskRequestDto
958
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
959
+ * @param {*} [options] Override http request option.
960
+ * @throws {RequiredError}
961
+ */
962
+ patchTask: function (code, patchTaskRequestDto, authorization, options) {
963
+ if (options === void 0) { options = {}; }
964
+ return __awaiter(_this, void 0, void 0, function () {
965
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
966
+ return __generator(this, function (_a) {
967
+ switch (_a.label) {
968
+ case 0:
969
+ // verify required parameter 'code' is not null or undefined
970
+ (0, common_1.assertParamExists)('patchTask', 'code', code);
971
+ // verify required parameter 'patchTaskRequestDto' is not null or undefined
972
+ (0, common_1.assertParamExists)('patchTask', 'patchTaskRequestDto', patchTaskRequestDto);
973
+ localVarPath = "/taskservice/v1/tasks/{code}"
974
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
975
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
976
+ if (configuration) {
977
+ baseOptions = configuration.baseOptions;
978
+ baseAccessToken = configuration.accessToken;
979
+ }
980
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
981
+ localVarHeaderParameter = {};
982
+ localVarQueryParameter = {};
983
+ // authentication bearer required
984
+ // http bearer authentication required
985
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
986
+ case 1:
987
+ // authentication bearer required
988
+ // http bearer authentication required
989
+ _a.sent();
990
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
991
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
992
+ }
993
+ localVarHeaderParameter['Content-Type'] = 'application/json';
994
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
995
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
996
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
997
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchTaskRequestDto, localVarRequestOptions, configuration);
998
+ return [2 /*return*/, {
999
+ url: (0, common_1.toPathString)(localVarUrlObj),
1000
+ options: localVarRequestOptions,
1001
+ }];
1002
+ }
1003
+ });
1004
+ });
1005
+ },
1006
+ };
1007
+ };
1008
+ exports.TaskClientApiAxiosParamCreator = TaskClientApiAxiosParamCreator;
1009
+ /**
1010
+ * TaskClientApi - functional programming interface
1011
+ * @export
1012
+ */
1013
+ var TaskClientApiFp = function (configuration) {
1014
+ var localVarAxiosParamCreator = (0, exports.TaskClientApiAxiosParamCreator)(configuration);
1015
+ return {
1016
+ /**
1017
+ * This will create a category. **Required Permissions** \"task-management.tasks.create\"
1018
+ * @summary Create the category
1019
+ * @param {CreateCategoryRequestDto} createCategoryRequestDto
1020
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1021
+ * @param {*} [options] Override http request option.
1022
+ * @throws {RequiredError}
1023
+ */
1024
+ createCategory: function (createCategoryRequestDto, authorization, options) {
1025
+ return __awaiter(this, void 0, void 0, function () {
1026
+ var localVarAxiosArgs;
1027
+ return __generator(this, function (_a) {
1028
+ switch (_a.label) {
1029
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCategory(createCategoryRequestDto, authorization, options)];
1030
+ case 1:
1031
+ localVarAxiosArgs = _a.sent();
1032
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1033
+ }
1034
+ });
1035
+ });
1036
+ },
1037
+ /**
1038
+ * This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\"
1039
+ * @summary Create the hub spot ticket
1040
+ * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
1041
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1042
+ * @param {*} [options] Override http request option.
1043
+ * @throws {RequiredError}
1044
+ */
1045
+ createHubSpotTicket: function (createHubSpotTicketRequestDto, authorization, options) {
1046
+ return __awaiter(this, void 0, void 0, function () {
1047
+ var localVarAxiosArgs;
1048
+ return __generator(this, function (_a) {
1049
+ switch (_a.label) {
1050
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createHubSpotTicket(createHubSpotTicketRequestDto, authorization, options)];
1051
+ case 1:
1052
+ localVarAxiosArgs = _a.sent();
1053
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1054
+ }
1055
+ });
1056
+ });
1057
+ },
1058
+ /**
1059
+ * This will create a status. **Required Permissions** \"task-management.tasks.create\"
1060
+ * @summary Create the status
1061
+ * @param {CreateStatusRequestDto} createStatusRequestDto
1062
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1063
+ * @param {*} [options] Override http request option.
1064
+ * @throws {RequiredError}
1065
+ */
1066
+ createStatus: function (createStatusRequestDto, authorization, options) {
1067
+ return __awaiter(this, void 0, void 0, function () {
1068
+ var localVarAxiosArgs;
1069
+ return __generator(this, function (_a) {
1070
+ switch (_a.label) {
1071
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createStatus(createStatusRequestDto, authorization, options)];
1072
+ case 1:
1073
+ localVarAxiosArgs = _a.sent();
1074
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1075
+ }
1076
+ });
1077
+ });
1078
+ },
1079
+ /**
1080
+ * This will create a task. **Required Permissions** \"task-management.tasks.create\"
1081
+ * @summary Create the task
1082
+ * @param {CreateTaskRequestDto} createTaskRequestDto
1083
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1084
+ * @param {*} [options] Override http request option.
1085
+ * @throws {RequiredError}
1086
+ */
1087
+ createTask: function (createTaskRequestDto, authorization, options) {
1088
+ return __awaiter(this, void 0, void 0, function () {
1089
+ var localVarAxiosArgs;
1090
+ return __generator(this, function (_a) {
1091
+ switch (_a.label) {
1092
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createTask(createTaskRequestDto, authorization, options)];
1093
+ case 1:
1094
+ localVarAxiosArgs = _a.sent();
1095
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1096
+ }
1097
+ });
1098
+ });
1099
+ },
1100
+ /**
1101
+ * This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\"
1102
+ * @summary Delete the category
1103
+ * @param {string} code Unique identifier for the object.
1104
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1105
+ * @param {*} [options] Override http request option.
1106
+ * @throws {RequiredError}
1107
+ */
1108
+ deleteCategory: function (code, authorization, options) {
1109
+ return __awaiter(this, void 0, void 0, function () {
1110
+ var localVarAxiosArgs;
1111
+ return __generator(this, function (_a) {
1112
+ switch (_a.label) {
1113
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteCategory(code, authorization, options)];
1114
+ case 1:
1115
+ localVarAxiosArgs = _a.sent();
1116
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1117
+ }
1118
+ });
1119
+ });
1120
+ },
1121
+ /**
1122
+ * This will delete status. **Required Permissions** \"task-management.tasks.delete\"
1123
+ * @summary Delete the status
1124
+ * @param {string} code Unique identifier for the object.
1125
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1126
+ * @param {*} [options] Override http request option.
1127
+ * @throws {RequiredError}
1128
+ */
1129
+ deleteStatus: function (code, authorization, options) {
1130
+ return __awaiter(this, void 0, void 0, function () {
1131
+ var localVarAxiosArgs;
1132
+ return __generator(this, function (_a) {
1133
+ switch (_a.label) {
1134
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteStatus(code, authorization, options)];
1135
+ case 1:
1136
+ localVarAxiosArgs = _a.sent();
1137
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1138
+ }
1139
+ });
1140
+ });
1141
+ },
1142
+ /**
1143
+ * This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\"
1144
+ * @summary Delete the task
1145
+ * @param {string} code Unique identifier for the object.
1146
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1147
+ * @param {*} [options] Override http request option.
1148
+ * @throws {RequiredError}
1149
+ */
1150
+ deleteTask: function (code, authorization, options) {
1151
+ return __awaiter(this, void 0, void 0, function () {
1152
+ var localVarAxiosArgs;
1153
+ return __generator(this, function (_a) {
1154
+ switch (_a.label) {
1155
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteTask(code, authorization, options)];
1156
+ case 1:
1157
+ localVarAxiosArgs = _a.sent();
1158
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1159
+ }
1160
+ });
1161
+ });
1162
+ },
1163
+ /**
1164
+ * Get category by code. **Required Permissions** \"task-management.tasks.view\"
1165
+ * @summary Retrieve the category
1166
+ * @param {string} code
1167
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1168
+ * @param {string} [expand] Expand to fetch additional information about the category.
1169
+ * @param {*} [options] Override http request option.
1170
+ * @throws {RequiredError}
1171
+ */
1172
+ getCategory: function (code, authorization, expand, options) {
1173
+ return __awaiter(this, void 0, void 0, function () {
1174
+ var localVarAxiosArgs;
1175
+ return __generator(this, function (_a) {
1176
+ switch (_a.label) {
1177
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCategory(code, authorization, expand, options)];
1178
+ case 1:
1179
+ localVarAxiosArgs = _a.sent();
1180
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1181
+ }
1182
+ });
1183
+ });
1184
+ },
1185
+ /**
1186
+ * Get status by code. **Required Permissions** \"task-management.tasks.view\"
1187
+ * @summary Retrieve the status
1188
+ * @param {string} code
1189
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1190
+ * @param {string} [expand] Expand to fetch additional information about the status.
1191
+ * @param {*} [options] Override http request option.
1192
+ * @throws {RequiredError}
1193
+ */
1194
+ getStatus: function (code, authorization, expand, options) {
1195
+ return __awaiter(this, void 0, void 0, function () {
1196
+ var localVarAxiosArgs;
1197
+ return __generator(this, function (_a) {
1198
+ switch (_a.label) {
1199
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getStatus(code, authorization, expand, options)];
1200
+ case 1:
1201
+ localVarAxiosArgs = _a.sent();
1202
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1203
+ }
1204
+ });
1205
+ });
1206
+ },
1207
+ /**
1208
+ * This will get a task by code. **Required Permissions** \"task-management.tasks.view\"
1209
+ * @summary Retrieve the task
1210
+ * @param {string} code
1211
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1212
+ * @param {string} [expand] Expand to fetch additional information about the task.
1213
+ * @param {*} [options] Override http request option.
1214
+ * @throws {RequiredError}
1215
+ */
1216
+ getTask: function (code, authorization, expand, options) {
1217
+ return __awaiter(this, void 0, void 0, function () {
1218
+ var localVarAxiosArgs;
1219
+ return __generator(this, function (_a) {
1220
+ switch (_a.label) {
1221
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTask(code, authorization, expand, options)];
1222
+ case 1:
1223
+ localVarAxiosArgs = _a.sent();
1224
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1225
+ }
1226
+ });
1227
+ });
1228
+ },
1229
+ /**
1230
+ * Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\"
1231
+ * @summary List assignees
1232
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1233
+ * @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;
1234
+ * @param {*} [options] Override http request option.
1235
+ * @throws {RequiredError}
1236
+ */
1237
+ listAssignees: function (authorization, expand, options) {
1238
+ return __awaiter(this, void 0, void 0, function () {
1239
+ var localVarAxiosArgs;
1240
+ return __generator(this, function (_a) {
1241
+ switch (_a.label) {
1242
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAssignees(authorization, expand, options)];
1243
+ case 1:
1244
+ localVarAxiosArgs = _a.sent();
1245
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1246
+ }
1247
+ });
1248
+ });
1249
+ },
1250
+ /**
1251
+ * Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\"
1252
+ * @summary List categories
1253
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1254
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1255
+ * @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.
1256
+ * @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;
1257
+ * @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;
1258
+ * @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;
1259
+ * @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;
1260
+ * @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;
1261
+ * @param {*} [options] Override http request option.
1262
+ * @throws {RequiredError}
1263
+ */
1264
+ listCategories: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1265
+ return __awaiter(this, void 0, void 0, function () {
1266
+ var localVarAxiosArgs;
1267
+ return __generator(this, function (_a) {
1268
+ switch (_a.label) {
1269
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCategories(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
1270
+ case 1:
1271
+ localVarAxiosArgs = _a.sent();
1272
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1273
+ }
1274
+ });
1275
+ });
1276
+ },
1277
+ /**
1278
+ * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
1279
+ * @summary List statuses
1280
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1281
+ * @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;
1282
+ * @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;
1283
+ * @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;
1284
+ * @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;
1285
+ * @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;
1286
+ * @param {*} [options] Override http request option.
1287
+ * @throws {RequiredError}
1288
+ */
1289
+ listStatuses: function (authorization, filter, filters, search, order, expand, options) {
1290
+ return __awaiter(this, void 0, void 0, function () {
1291
+ var localVarAxiosArgs;
1292
+ return __generator(this, function (_a) {
1293
+ switch (_a.label) {
1294
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listStatuses(authorization, filter, filters, search, order, expand, options)];
1295
+ case 1:
1296
+ localVarAxiosArgs = _a.sent();
1297
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1298
+ }
1299
+ });
1300
+ });
1301
+ },
1302
+ /**
1303
+ * Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\"
1304
+ * @summary List tasks
1305
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1306
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1307
+ * @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.
1308
+ * @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, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
1309
+ * @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: subject, description&lt;/i&gt;
1310
+ * @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, assignee, reporter, dueDate, entityType, entityCode, status, priority&lt;/i&gt;
1311
+ * @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; &lt;i&gt;Allowed values: categories, status&lt;i&gt;
1312
+ * @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, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
1313
+ * @param {*} [options] Override http request option.
1314
+ * @throws {RequiredError}
1315
+ */
1316
+ listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1317
+ return __awaiter(this, void 0, void 0, function () {
1318
+ var localVarAxiosArgs;
1319
+ return __generator(this, function (_a) {
1320
+ switch (_a.label) {
1321
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
1322
+ case 1:
1323
+ localVarAxiosArgs = _a.sent();
1324
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1325
+ }
1326
+ });
1327
+ });
1328
+ },
1329
+ /**
1330
+ * This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
1331
+ * @summary Update the category
1332
+ * @param {string} code
1333
+ * @param {PatchCategoryRequestDto} patchCategoryRequestDto
1334
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1335
+ * @param {*} [options] Override http request option.
1336
+ * @throws {RequiredError}
1337
+ */
1338
+ patchCategory: function (code, patchCategoryRequestDto, authorization, options) {
1339
+ return __awaiter(this, void 0, void 0, function () {
1340
+ var localVarAxiosArgs;
1341
+ return __generator(this, function (_a) {
1342
+ switch (_a.label) {
1343
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchCategory(code, patchCategoryRequestDto, authorization, options)];
1344
+ case 1:
1345
+ localVarAxiosArgs = _a.sent();
1346
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1347
+ }
1348
+ });
1349
+ });
1350
+ },
1351
+ /**
1352
+ * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
1353
+ * @summary Update the status
1354
+ * @param {string} code
1355
+ * @param {PatchStatusRequestDto} patchStatusRequestDto
1356
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1357
+ * @param {*} [options] Override http request option.
1358
+ * @throws {RequiredError}
1359
+ */
1360
+ patchStatus: function (code, patchStatusRequestDto, authorization, options) {
1361
+ return __awaiter(this, void 0, void 0, function () {
1362
+ var localVarAxiosArgs;
1363
+ return __generator(this, function (_a) {
1364
+ switch (_a.label) {
1365
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchStatus(code, patchStatusRequestDto, authorization, options)];
1366
+ case 1:
1367
+ localVarAxiosArgs = _a.sent();
1368
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1369
+ }
1370
+ });
1371
+ });
1372
+ },
1373
+ /**
1374
+ * This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
1375
+ * @summary Update the task
1376
+ * @param {string} code
1377
+ * @param {PatchTaskRequestDto} patchTaskRequestDto
1378
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1379
+ * @param {*} [options] Override http request option.
1380
+ * @throws {RequiredError}
1381
+ */
1382
+ patchTask: function (code, patchTaskRequestDto, authorization, options) {
1383
+ return __awaiter(this, void 0, void 0, function () {
1384
+ var localVarAxiosArgs;
1385
+ return __generator(this, function (_a) {
1386
+ switch (_a.label) {
1387
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchTask(code, patchTaskRequestDto, authorization, options)];
1388
+ case 1:
1389
+ localVarAxiosArgs = _a.sent();
1390
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1391
+ }
1392
+ });
1393
+ });
1394
+ },
1395
+ };
1396
+ };
1397
+ exports.TaskClientApiFp = TaskClientApiFp;
1398
+ /**
1399
+ * TaskClientApi - factory interface
1400
+ * @export
1401
+ */
1402
+ var TaskClientApiFactory = function (configuration, basePath, axios) {
1403
+ var localVarFp = (0, exports.TaskClientApiFp)(configuration);
1404
+ return {
1405
+ /**
1406
+ * This will create a category. **Required Permissions** \"task-management.tasks.create\"
1407
+ * @summary Create the category
1408
+ * @param {CreateCategoryRequestDto} createCategoryRequestDto
1409
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1410
+ * @param {*} [options] Override http request option.
1411
+ * @throws {RequiredError}
1412
+ */
1413
+ createCategory: function (createCategoryRequestDto, authorization, options) {
1414
+ return localVarFp.createCategory(createCategoryRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1415
+ },
1416
+ /**
1417
+ * This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\"
1418
+ * @summary Create the hub spot ticket
1419
+ * @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
1420
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1421
+ * @param {*} [options] Override http request option.
1422
+ * @throws {RequiredError}
1423
+ */
1424
+ createHubSpotTicket: function (createHubSpotTicketRequestDto, authorization, options) {
1425
+ return localVarFp.createHubSpotTicket(createHubSpotTicketRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1426
+ },
1427
+ /**
1428
+ * This will create a status. **Required Permissions** \"task-management.tasks.create\"
1429
+ * @summary Create the status
1430
+ * @param {CreateStatusRequestDto} createStatusRequestDto
1431
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1432
+ * @param {*} [options] Override http request option.
1433
+ * @throws {RequiredError}
1434
+ */
1435
+ createStatus: function (createStatusRequestDto, authorization, options) {
1436
+ return localVarFp.createStatus(createStatusRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1437
+ },
1438
+ /**
1439
+ * This will create a task. **Required Permissions** \"task-management.tasks.create\"
1440
+ * @summary Create the task
1441
+ * @param {CreateTaskRequestDto} createTaskRequestDto
1442
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1443
+ * @param {*} [options] Override http request option.
1444
+ * @throws {RequiredError}
1445
+ */
1446
+ createTask: function (createTaskRequestDto, authorization, options) {
1447
+ return localVarFp.createTask(createTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1448
+ },
1449
+ /**
1450
+ * This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\"
1451
+ * @summary Delete the category
1452
+ * @param {string} code Unique identifier for the object.
1453
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1454
+ * @param {*} [options] Override http request option.
1455
+ * @throws {RequiredError}
1456
+ */
1457
+ deleteCategory: function (code, authorization, options) {
1458
+ return localVarFp.deleteCategory(code, authorization, options).then(function (request) { return request(axios, basePath); });
1459
+ },
1460
+ /**
1461
+ * This will delete status. **Required Permissions** \"task-management.tasks.delete\"
1462
+ * @summary Delete the status
1463
+ * @param {string} code Unique identifier for the object.
1464
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1465
+ * @param {*} [options] Override http request option.
1466
+ * @throws {RequiredError}
1467
+ */
1468
+ deleteStatus: function (code, authorization, options) {
1469
+ return localVarFp.deleteStatus(code, authorization, options).then(function (request) { return request(axios, basePath); });
1470
+ },
1471
+ /**
1472
+ * This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\"
1473
+ * @summary Delete the task
1474
+ * @param {string} code Unique identifier for the object.
1475
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1476
+ * @param {*} [options] Override http request option.
1477
+ * @throws {RequiredError}
1478
+ */
1479
+ deleteTask: function (code, authorization, options) {
1480
+ return localVarFp.deleteTask(code, authorization, options).then(function (request) { return request(axios, basePath); });
1481
+ },
1482
+ /**
1483
+ * Get category by code. **Required Permissions** \"task-management.tasks.view\"
1484
+ * @summary Retrieve the category
1485
+ * @param {string} code
1486
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1487
+ * @param {string} [expand] Expand to fetch additional information about the category.
1488
+ * @param {*} [options] Override http request option.
1489
+ * @throws {RequiredError}
1490
+ */
1491
+ getCategory: function (code, authorization, expand, options) {
1492
+ return localVarFp.getCategory(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
1493
+ },
1494
+ /**
1495
+ * Get status by code. **Required Permissions** \"task-management.tasks.view\"
1496
+ * @summary Retrieve the status
1497
+ * @param {string} code
1498
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1499
+ * @param {string} [expand] Expand to fetch additional information about the status.
1500
+ * @param {*} [options] Override http request option.
1501
+ * @throws {RequiredError}
1502
+ */
1503
+ getStatus: function (code, authorization, expand, options) {
1504
+ return localVarFp.getStatus(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
1505
+ },
1506
+ /**
1507
+ * This will get a task by code. **Required Permissions** \"task-management.tasks.view\"
1508
+ * @summary Retrieve the task
1509
+ * @param {string} code
1510
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1511
+ * @param {string} [expand] Expand to fetch additional information about the task.
1512
+ * @param {*} [options] Override http request option.
1513
+ * @throws {RequiredError}
1514
+ */
1515
+ getTask: function (code, authorization, expand, options) {
1516
+ return localVarFp.getTask(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
1517
+ },
1518
+ /**
1519
+ * Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\"
1520
+ * @summary List assignees
1521
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1522
+ * @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;
1523
+ * @param {*} [options] Override http request option.
1524
+ * @throws {RequiredError}
1525
+ */
1526
+ listAssignees: function (authorization, expand, options) {
1527
+ return localVarFp.listAssignees(authorization, expand, options).then(function (request) { return request(axios, basePath); });
1528
+ },
1529
+ /**
1530
+ * Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\"
1531
+ * @summary List categories
1532
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1533
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1534
+ * @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.
1535
+ * @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;
1536
+ * @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;
1537
+ * @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;
1538
+ * @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;
1539
+ * @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;
1540
+ * @param {*} [options] Override http request option.
1541
+ * @throws {RequiredError}
1542
+ */
1543
+ listCategories: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1544
+ return localVarFp.listCategories(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1545
+ },
1546
+ /**
1547
+ * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
1548
+ * @summary List statuses
1549
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1550
+ * @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;
1551
+ * @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;
1552
+ * @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;
1553
+ * @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;
1554
+ * @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;
1555
+ * @param {*} [options] Override http request option.
1556
+ * @throws {RequiredError}
1557
+ */
1558
+ listStatuses: function (authorization, filter, filters, search, order, expand, options) {
1559
+ return localVarFp.listStatuses(authorization, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); });
1560
+ },
1561
+ /**
1562
+ * Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\"
1563
+ * @summary List tasks
1564
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1565
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1566
+ * @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.
1567
+ * @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, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
1568
+ * @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: subject, description&lt;/i&gt;
1569
+ * @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, assignee, reporter, dueDate, entityType, entityCode, status, priority&lt;/i&gt;
1570
+ * @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; &lt;i&gt;Allowed values: categories, status&lt;i&gt;
1571
+ * @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, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, dueDate, createdAt, updatedAt, status.slug, categories.slug&lt;/i&gt;
1572
+ * @param {*} [options] Override http request option.
1573
+ * @throws {RequiredError}
1574
+ */
1575
+ listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1576
+ return localVarFp.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1577
+ },
1578
+ /**
1579
+ * This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
1580
+ * @summary Update the category
1581
+ * @param {string} code
1582
+ * @param {PatchCategoryRequestDto} patchCategoryRequestDto
1583
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1584
+ * @param {*} [options] Override http request option.
1585
+ * @throws {RequiredError}
1586
+ */
1587
+ patchCategory: function (code, patchCategoryRequestDto, authorization, options) {
1588
+ return localVarFp.patchCategory(code, patchCategoryRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1589
+ },
1590
+ /**
1591
+ * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
1592
+ * @summary Update the status
1593
+ * @param {string} code
1594
+ * @param {PatchStatusRequestDto} patchStatusRequestDto
1595
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1596
+ * @param {*} [options] Override http request option.
1597
+ * @throws {RequiredError}
1598
+ */
1599
+ patchStatus: function (code, patchStatusRequestDto, authorization, options) {
1600
+ return localVarFp.patchStatus(code, patchStatusRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1601
+ },
1602
+ /**
1603
+ * This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
1604
+ * @summary Update the task
1605
+ * @param {string} code
1606
+ * @param {PatchTaskRequestDto} patchTaskRequestDto
1607
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1608
+ * @param {*} [options] Override http request option.
1609
+ * @throws {RequiredError}
1610
+ */
1611
+ patchTask: function (code, patchTaskRequestDto, authorization, options) {
1612
+ return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1613
+ },
1614
+ };
1615
+ };
1616
+ exports.TaskClientApiFactory = TaskClientApiFactory;
1617
+ /**
1618
+ * TaskClientApi - object-oriented interface
1619
+ * @export
1620
+ * @class TaskClientApi
1621
+ * @extends {BaseAPI}
1622
+ */
1623
+ var TaskClientApi = /** @class */ (function (_super) {
1624
+ __extends(TaskClientApi, _super);
1625
+ function TaskClientApi() {
1626
+ return _super !== null && _super.apply(this, arguments) || this;
1627
+ }
1628
+ /**
1629
+ * This will create a category. **Required Permissions** \"task-management.tasks.create\"
1630
+ * @summary Create the category
1631
+ * @param {TaskClientApiCreateCategoryRequest} requestParameters Request parameters.
1632
+ * @param {*} [options] Override http request option.
1633
+ * @throws {RequiredError}
1634
+ * @memberof TaskClientApi
1635
+ */
1636
+ TaskClientApi.prototype.createCategory = function (requestParameters, options) {
1637
+ var _this = this;
1638
+ return (0, exports.TaskClientApiFp)(this.configuration).createCategory(requestParameters.createCategoryRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1639
+ };
1640
+ /**
1641
+ * This will create hub spot ticket. **Required Permissions** \"task-management.tasks.create\"
1642
+ * @summary Create the hub spot ticket
1643
+ * @param {TaskClientApiCreateHubSpotTicketRequest} requestParameters Request parameters.
1644
+ * @param {*} [options] Override http request option.
1645
+ * @throws {RequiredError}
1646
+ * @memberof TaskClientApi
1647
+ */
1648
+ TaskClientApi.prototype.createHubSpotTicket = function (requestParameters, options) {
1649
+ var _this = this;
1650
+ return (0, exports.TaskClientApiFp)(this.configuration).createHubSpotTicket(requestParameters.createHubSpotTicketRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1651
+ };
1652
+ /**
1653
+ * This will create a status. **Required Permissions** \"task-management.tasks.create\"
1654
+ * @summary Create the status
1655
+ * @param {TaskClientApiCreateStatusRequest} requestParameters Request parameters.
1656
+ * @param {*} [options] Override http request option.
1657
+ * @throws {RequiredError}
1658
+ * @memberof TaskClientApi
1659
+ */
1660
+ TaskClientApi.prototype.createStatus = function (requestParameters, options) {
1661
+ var _this = this;
1662
+ return (0, exports.TaskClientApiFp)(this.configuration).createStatus(requestParameters.createStatusRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1663
+ };
1664
+ /**
1665
+ * This will create a task. **Required Permissions** \"task-management.tasks.create\"
1666
+ * @summary Create the task
1667
+ * @param {TaskClientApiCreateTaskRequest} requestParameters Request parameters.
1668
+ * @param {*} [options] Override http request option.
1669
+ * @throws {RequiredError}
1670
+ * @memberof TaskClientApi
1671
+ */
1672
+ TaskClientApi.prototype.createTask = function (requestParameters, options) {
1673
+ var _this = this;
1674
+ return (0, exports.TaskClientApiFp)(this.configuration).createTask(requestParameters.createTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1675
+ };
1676
+ /**
1677
+ * This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\"
1678
+ * @summary Delete the category
1679
+ * @param {TaskClientApiDeleteCategoryRequest} requestParameters Request parameters.
1680
+ * @param {*} [options] Override http request option.
1681
+ * @throws {RequiredError}
1682
+ * @memberof TaskClientApi
1683
+ */
1684
+ TaskClientApi.prototype.deleteCategory = function (requestParameters, options) {
1685
+ var _this = this;
1686
+ return (0, exports.TaskClientApiFp)(this.configuration).deleteCategory(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1687
+ };
1688
+ /**
1689
+ * This will delete status. **Required Permissions** \"task-management.tasks.delete\"
1690
+ * @summary Delete the status
1691
+ * @param {TaskClientApiDeleteStatusRequest} requestParameters Request parameters.
1692
+ * @param {*} [options] Override http request option.
1693
+ * @throws {RequiredError}
1694
+ * @memberof TaskClientApi
1695
+ */
1696
+ TaskClientApi.prototype.deleteStatus = function (requestParameters, options) {
1697
+ var _this = this;
1698
+ return (0, exports.TaskClientApiFp)(this.configuration).deleteStatus(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1699
+ };
1700
+ /**
1701
+ * This will delete a task by code. **Required Permissions** \"task-management.tasks.delete\"
1702
+ * @summary Delete the task
1703
+ * @param {TaskClientApiDeleteTaskRequest} requestParameters Request parameters.
1704
+ * @param {*} [options] Override http request option.
1705
+ * @throws {RequiredError}
1706
+ * @memberof TaskClientApi
1707
+ */
1708
+ TaskClientApi.prototype.deleteTask = function (requestParameters, options) {
1709
+ var _this = this;
1710
+ return (0, exports.TaskClientApiFp)(this.configuration).deleteTask(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1711
+ };
1712
+ /**
1713
+ * Get category by code. **Required Permissions** \"task-management.tasks.view\"
1714
+ * @summary Retrieve the category
1715
+ * @param {TaskClientApiGetCategoryRequest} requestParameters Request parameters.
1716
+ * @param {*} [options] Override http request option.
1717
+ * @throws {RequiredError}
1718
+ * @memberof TaskClientApi
1719
+ */
1720
+ TaskClientApi.prototype.getCategory = function (requestParameters, options) {
1721
+ var _this = this;
1722
+ return (0, exports.TaskClientApiFp)(this.configuration).getCategory(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1723
+ };
1724
+ /**
1725
+ * Get status by code. **Required Permissions** \"task-management.tasks.view\"
1726
+ * @summary Retrieve the status
1727
+ * @param {TaskClientApiGetStatusRequest} requestParameters Request parameters.
1728
+ * @param {*} [options] Override http request option.
1729
+ * @throws {RequiredError}
1730
+ * @memberof TaskClientApi
1731
+ */
1732
+ TaskClientApi.prototype.getStatus = function (requestParameters, options) {
1733
+ var _this = this;
1734
+ return (0, exports.TaskClientApiFp)(this.configuration).getStatus(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1735
+ };
1736
+ /**
1737
+ * This will get a task by code. **Required Permissions** \"task-management.tasks.view\"
1738
+ * @summary Retrieve the task
1739
+ * @param {TaskClientApiGetTaskRequest} requestParameters Request parameters.
1740
+ * @param {*} [options] Override http request option.
1741
+ * @throws {RequiredError}
1742
+ * @memberof TaskClientApi
1743
+ */
1744
+ TaskClientApi.prototype.getTask = function (requestParameters, options) {
1745
+ var _this = this;
1746
+ return (0, exports.TaskClientApiFp)(this.configuration).getTask(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1747
+ };
1748
+ /**
1749
+ * Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\"
1750
+ * @summary List assignees
1751
+ * @param {TaskClientApiListAssigneesRequest} requestParameters Request parameters.
1752
+ * @param {*} [options] Override http request option.
1753
+ * @throws {RequiredError}
1754
+ * @memberof TaskClientApi
1755
+ */
1756
+ TaskClientApi.prototype.listAssignees = function (requestParameters, options) {
1757
+ var _this = this;
1758
+ if (requestParameters === void 0) { requestParameters = {}; }
1759
+ return (0, exports.TaskClientApiFp)(this.configuration).listAssignees(requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1760
+ };
1761
+ /**
1762
+ * Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\"
1763
+ * @summary List categories
1764
+ * @param {TaskClientApiListCategoriesRequest} requestParameters Request parameters.
1765
+ * @param {*} [options] Override http request option.
1766
+ * @throws {RequiredError}
1767
+ * @memberof TaskClientApi
1768
+ */
1769
+ TaskClientApi.prototype.listCategories = function (requestParameters, options) {
1770
+ var _this = this;
1771
+ if (requestParameters === void 0) { requestParameters = {}; }
1772
+ return (0, exports.TaskClientApiFp)(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); });
1773
+ };
1774
+ /**
1775
+ * Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
1776
+ * @summary List statuses
1777
+ * @param {TaskClientApiListStatusesRequest} requestParameters Request parameters.
1778
+ * @param {*} [options] Override http request option.
1779
+ * @throws {RequiredError}
1780
+ * @memberof TaskClientApi
1781
+ */
1782
+ TaskClientApi.prototype.listStatuses = function (requestParameters, options) {
1783
+ var _this = this;
1784
+ if (requestParameters === void 0) { requestParameters = {}; }
1785
+ return (0, exports.TaskClientApiFp)(this.configuration).listStatuses(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1786
+ };
1787
+ /**
1788
+ * Retrieves a list of tasks. **Required Permissions** \"task-management.tasks.view\"
1789
+ * @summary List tasks
1790
+ * @param {TaskClientApiListTasksRequest} requestParameters Request parameters.
1791
+ * @param {*} [options] Override http request option.
1792
+ * @throws {RequiredError}
1793
+ * @memberof TaskClientApi
1794
+ */
1795
+ TaskClientApi.prototype.listTasks = function (requestParameters, options) {
1796
+ var _this = this;
1797
+ if (requestParameters === void 0) { requestParameters = {}; }
1798
+ return (0, exports.TaskClientApiFp)(this.configuration).listTasks(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); });
1799
+ };
1800
+ /**
1801
+ * This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
1802
+ * @summary Update the category
1803
+ * @param {TaskClientApiPatchCategoryRequest} requestParameters Request parameters.
1804
+ * @param {*} [options] Override http request option.
1805
+ * @throws {RequiredError}
1806
+ * @memberof TaskClientApi
1807
+ */
1808
+ TaskClientApi.prototype.patchCategory = function (requestParameters, options) {
1809
+ var _this = this;
1810
+ return (0, exports.TaskClientApiFp)(this.configuration).patchCategory(requestParameters.code, requestParameters.patchCategoryRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1811
+ };
1812
+ /**
1813
+ * This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
1814
+ * @summary Update the status
1815
+ * @param {TaskClientApiPatchStatusRequest} requestParameters Request parameters.
1816
+ * @param {*} [options] Override http request option.
1817
+ * @throws {RequiredError}
1818
+ * @memberof TaskClientApi
1819
+ */
1820
+ TaskClientApi.prototype.patchStatus = function (requestParameters, options) {
1821
+ var _this = this;
1822
+ return (0, exports.TaskClientApiFp)(this.configuration).patchStatus(requestParameters.code, requestParameters.patchStatusRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1823
+ };
1824
+ /**
1825
+ * This will partially update a task by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
1826
+ * @summary Update the task
1827
+ * @param {TaskClientApiPatchTaskRequest} requestParameters Request parameters.
1828
+ * @param {*} [options] Override http request option.
1829
+ * @throws {RequiredError}
1830
+ * @memberof TaskClientApi
1831
+ */
1832
+ TaskClientApi.prototype.patchTask = function (requestParameters, options) {
1833
+ var _this = this;
1834
+ return (0, exports.TaskClientApiFp)(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1835
+ };
1836
+ return TaskClientApi;
1837
+ }(base_1.BaseAPI));
1838
+ exports.TaskClientApi = TaskClientApi;