@emilgroup/task-sdk-node 1.2.1-beta.0 → 1.2.1-beta.4

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