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

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