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

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