@emilgroup/task-sdk-node 1.0.1-beta.9 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/README.md +1 -84
  2. package/index.js +99 -0
  3. package/package.json +8 -24
  4. package/scripts/deploy.js +230 -0
  5. package/.openapi-generator/FILES +0 -46
  6. package/.openapi-generator/VERSION +0 -1
  7. package/.openapi-generator-ignore +0 -23
  8. package/api/categories-api.ts +0 -669
  9. package/api/default-api.ts +0 -128
  10. package/api/hub-spot-api.ts +0 -169
  11. package/api/statuses-api.ts +0 -669
  12. package/api/tasks-api.ts +0 -697
  13. package/api.ts +0 -39
  14. package/base.ts +0 -327
  15. package/common.ts +0 -199
  16. package/configuration.ts +0 -118
  17. package/dist/api/categories-api.d.ts +0 -375
  18. package/dist/api/categories-api.js +0 -636
  19. package/dist/api/default-api.d.ts +0 -70
  20. package/dist/api/default-api.js +0 -204
  21. package/dist/api/hub-spot-api.d.ts +0 -97
  22. package/dist/api/hub-spot-api.js +0 -228
  23. package/dist/api/statuses-api.d.ts +0 -375
  24. package/dist/api/statuses-api.js +0 -636
  25. package/dist/api/tasks-api.d.ts +0 -393
  26. package/dist/api/tasks-api.js +0 -648
  27. package/dist/api.d.ts +0 -16
  28. package/dist/api.js +0 -34
  29. package/dist/base.d.ts +0 -88
  30. package/dist/base.js +0 -434
  31. package/dist/common.d.ts +0 -92
  32. package/dist/common.js +0 -277
  33. package/dist/configuration.d.ts +0 -96
  34. package/dist/configuration.js +0 -52
  35. package/dist/index.d.ts +0 -15
  36. package/dist/index.js +0 -36
  37. package/dist/models/category-class.d.ts +0 -66
  38. package/dist/models/category-class.js +0 -15
  39. package/dist/models/create-category-request-dto.d.ts +0 -30
  40. package/dist/models/create-category-request-dto.js +0 -15
  41. package/dist/models/create-category-response-class.d.ts +0 -25
  42. package/dist/models/create-category-response-class.js +0 -15
  43. package/dist/models/create-hub-spot-ticket-request-dto.d.ts +0 -31
  44. package/dist/models/create-hub-spot-ticket-request-dto.js +0 -15
  45. package/dist/models/create-hub-spot-ticket-response-class.d.ts +0 -25
  46. package/dist/models/create-hub-spot-ticket-response-class.js +0 -15
  47. package/dist/models/create-status-request-dto.d.ts +0 -30
  48. package/dist/models/create-status-request-dto.js +0 -15
  49. package/dist/models/create-status-response-class.d.ts +0 -25
  50. package/dist/models/create-status-response-class.js +0 -15
  51. package/dist/models/create-task-request-dto.d.ts +0 -72
  52. package/dist/models/create-task-request-dto.js +0 -21
  53. package/dist/models/create-task-response-class.d.ts +0 -25
  54. package/dist/models/create-task-response-class.js +0 -15
  55. package/dist/models/get-category-response-class.d.ts +0 -25
  56. package/dist/models/get-category-response-class.js +0 -15
  57. package/dist/models/get-status-response-class.d.ts +0 -25
  58. package/dist/models/get-status-response-class.js +0 -15
  59. package/dist/models/get-task-response-class.d.ts +0 -25
  60. package/dist/models/get-task-response-class.js +0 -15
  61. package/dist/models/hub-spot-ticket-class.d.ts +0 -49
  62. package/dist/models/hub-spot-ticket-class.js +0 -15
  63. package/dist/models/hub-spot-ticket-error-class.d.ts +0 -30
  64. package/dist/models/hub-spot-ticket-error-class.js +0 -15
  65. package/dist/models/hub-spot-ticket-name-value-dto.d.ts +0 -30
  66. package/dist/models/hub-spot-ticket-name-value-dto.js +0 -15
  67. package/dist/models/index.d.ts +0 -28
  68. package/dist/models/index.js +0 -44
  69. package/dist/models/inline-response200.d.ts +0 -54
  70. package/dist/models/inline-response200.js +0 -15
  71. package/dist/models/inline-response503.d.ts +0 -54
  72. package/dist/models/inline-response503.js +0 -15
  73. package/dist/models/list-categories-response-class.d.ts +0 -43
  74. package/dist/models/list-categories-response-class.js +0 -15
  75. package/dist/models/list-statuses-response-class.d.ts +0 -43
  76. package/dist/models/list-statuses-response-class.js +0 -15
  77. package/dist/models/list-tasks-response-class.d.ts +0 -43
  78. package/dist/models/list-tasks-response-class.js +0 -15
  79. package/dist/models/patch-category-request-dto.d.ts +0 -36
  80. package/dist/models/patch-category-request-dto.js +0 -15
  81. package/dist/models/patch-category-response-class.d.ts +0 -25
  82. package/dist/models/patch-category-response-class.js +0 -15
  83. package/dist/models/patch-status-request-dto.d.ts +0 -36
  84. package/dist/models/patch-status-request-dto.js +0 -15
  85. package/dist/models/patch-status-response-class.d.ts +0 -25
  86. package/dist/models/patch-status-response-class.js +0 -15
  87. package/dist/models/patch-task-request-dto.d.ts +0 -108
  88. package/dist/models/patch-task-request-dto.js +0 -15
  89. package/dist/models/patch-task-response-class.d.ts +0 -25
  90. package/dist/models/patch-task-response-class.js +0 -15
  91. package/dist/models/status-class.d.ts +0 -66
  92. package/dist/models/status-class.js +0 -15
  93. package/dist/models/task-class.d.ts +0 -116
  94. package/dist/models/task-class.js +0 -21
  95. package/git_push.sh +0 -57
  96. package/index.ts +0 -19
  97. package/models/category-class.ts +0 -72
  98. package/models/create-category-request-dto.ts +0 -36
  99. package/models/create-category-response-class.ts +0 -31
  100. package/models/create-hub-spot-ticket-request-dto.ts +0 -37
  101. package/models/create-hub-spot-ticket-response-class.ts +0 -31
  102. package/models/create-status-request-dto.ts +0 -36
  103. package/models/create-status-response-class.ts +0 -31
  104. package/models/create-task-request-dto.ts +0 -81
  105. package/models/create-task-response-class.ts +0 -31
  106. package/models/get-category-response-class.ts +0 -31
  107. package/models/get-status-response-class.ts +0 -31
  108. package/models/get-task-response-class.ts +0 -31
  109. package/models/hub-spot-ticket-class.ts +0 -55
  110. package/models/hub-spot-ticket-error-class.ts +0 -36
  111. package/models/hub-spot-ticket-name-value-dto.ts +0 -36
  112. package/models/index.ts +0 -28
  113. package/models/inline-response200.ts +0 -48
  114. package/models/inline-response503.ts +0 -48
  115. package/models/list-categories-response-class.ts +0 -49
  116. package/models/list-statuses-response-class.ts +0 -49
  117. package/models/list-tasks-response-class.ts +0 -49
  118. package/models/patch-category-request-dto.ts +0 -42
  119. package/models/patch-category-response-class.ts +0 -31
  120. package/models/patch-status-request-dto.ts +0 -42
  121. package/models/patch-status-response-class.ts +0 -31
  122. package/models/patch-task-request-dto.ts +0 -114
  123. package/models/patch-task-response-class.ts +0 -31
  124. package/models/status-class.ts +0 -72
  125. package/models/task-class.ts +0 -125
  126. package/tsconfig.json +0 -23
package/api/tasks-api.ts DELETED
@@ -1,697 +0,0 @@
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 { CreateTaskRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateTaskResponseClass } from '../models';
27
- // @ts-ignore
28
- import { GetTaskResponseClass } from '../models';
29
- // @ts-ignore
30
- import { ListTasksResponseClass } from '../models';
31
- // @ts-ignore
32
- import { PatchTaskRequestDto } from '../models';
33
- // @ts-ignore
34
- import { PatchTaskResponseClass } from '../models';
35
- // URLSearchParams not necessarily used
36
- // @ts-ignore
37
- import { URL, URLSearchParams } from 'url';
38
- const FormData = require('form-data');
39
- /**
40
- * TasksApi - axios parameter creator
41
- * @export
42
- */
43
- export const TasksApiAxiosParamCreator = function (configuration?: Configuration) {
44
- return {
45
- /**
46
- * This will create task.
47
- * @summary Create the task
48
- * @param {CreateTaskRequestDto} createTaskRequestDto
49
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
50
- * @param {*} [options] Override http request option.
51
- * @throws {RequiredError}
52
- */
53
- createTask: async (createTaskRequestDto: CreateTaskRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54
- // verify required parameter 'createTaskRequestDto' is not null or undefined
55
- assertParamExists('createTask', 'createTaskRequestDto', createTaskRequestDto)
56
- const localVarPath = `/taskservice/v1/tasks`;
57
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
58
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
59
- let baseOptions;
60
- let baseAccessToken;
61
- if (configuration) {
62
- baseOptions = configuration.baseOptions;
63
- baseAccessToken = configuration.accessToken;
64
- }
65
-
66
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
67
- const localVarHeaderParameter = {} as any;
68
- const localVarQueryParameter = {} as any;
69
-
70
- // authentication bearer required
71
- // http bearer authentication required
72
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
73
-
74
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
75
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
- }
77
-
78
-
79
-
80
- localVarHeaderParameter['Content-Type'] = 'application/json';
81
-
82
- setSearchParams(localVarUrlObj, localVarQueryParameter);
83
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
85
- localVarRequestOptions.data = serializeDataIfNeeded(createTaskRequestDto, localVarRequestOptions, configuration)
86
-
87
- return {
88
- url: toPathString(localVarUrlObj),
89
- options: localVarRequestOptions,
90
- };
91
- },
92
- /**
93
- * This will delete a task by code.
94
- * @summary Delete the task
95
- * @param {string} code Unique identifier for the object.
96
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
97
- * @param {*} [options] Override http request option.
98
- * @throws {RequiredError}
99
- */
100
- deleteTask: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
- // verify required parameter 'code' is not null or undefined
102
- assertParamExists('deleteTask', 'code', code)
103
- const localVarPath = `/taskservice/v1/tasks/{code}`
104
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
105
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
107
- let baseOptions;
108
- let baseAccessToken;
109
- if (configuration) {
110
- baseOptions = configuration.baseOptions;
111
- baseAccessToken = configuration.accessToken;
112
- }
113
-
114
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
115
- const localVarHeaderParameter = {} as any;
116
- const localVarQueryParameter = {} as any;
117
-
118
- // authentication bearer required
119
- // http bearer authentication required
120
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
121
-
122
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
123
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
124
- }
125
-
126
-
127
-
128
- setSearchParams(localVarUrlObj, localVarQueryParameter);
129
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
131
-
132
- return {
133
- url: toPathString(localVarUrlObj),
134
- options: localVarRequestOptions,
135
- };
136
- },
137
- /**
138
- * This will get a task by code.
139
- * @summary Retrieve the task
140
- * @param {string} code
141
- * @param {string} expand
142
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
143
- * @param {*} [options] Override http request option.
144
- * @throws {RequiredError}
145
- */
146
- getTask: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
147
- // verify required parameter 'code' is not null or undefined
148
- assertParamExists('getTask', 'code', code)
149
- // verify required parameter 'expand' is not null or undefined
150
- assertParamExists('getTask', 'expand', expand)
151
- const localVarPath = `/taskservice/v1/tasks/{code}`
152
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
153
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
154
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
155
- let baseOptions;
156
- let baseAccessToken;
157
- if (configuration) {
158
- baseOptions = configuration.baseOptions;
159
- baseAccessToken = configuration.accessToken;
160
- }
161
-
162
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
163
- const localVarHeaderParameter = {} as any;
164
- const localVarQueryParameter = {} as any;
165
-
166
- // authentication bearer required
167
- // http bearer authentication required
168
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
169
-
170
- if (expand !== undefined) {
171
- localVarQueryParameter['expand'] = expand;
172
- }
173
-
174
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
175
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
176
- }
177
-
178
-
179
-
180
- setSearchParams(localVarUrlObj, localVarQueryParameter);
181
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
182
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
183
-
184
- return {
185
- url: toPathString(localVarUrlObj),
186
- options: localVarRequestOptions,
187
- };
188
- },
189
- /**
190
- * Retrieves a list of tasks.
191
- * @summary List tasks
192
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
194
- * @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.
195
- * @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, categoryId, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug&lt;/i&gt;
196
- * @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;
197
- * @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&lt;/i&gt;
198
- * @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: category, status&lt;i&gt;
199
- * @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, categoryId, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug&lt;/i&gt;
200
- * @param {*} [options] Override http request option.
201
- * @throws {RequiredError}
202
- */
203
- listTasks: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
204
- const localVarPath = `/taskservice/v1/tasks`;
205
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
206
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
207
- let baseOptions;
208
- let baseAccessToken;
209
- if (configuration) {
210
- baseOptions = configuration.baseOptions;
211
- baseAccessToken = configuration.accessToken;
212
- }
213
-
214
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
215
- const localVarHeaderParameter = {} as any;
216
- const localVarQueryParameter = {} as any;
217
-
218
- // authentication bearer required
219
- // http bearer authentication required
220
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
221
-
222
- if (pageSize !== undefined) {
223
- localVarQueryParameter['pageSize'] = pageSize;
224
- }
225
-
226
- if (pageToken !== undefined) {
227
- localVarQueryParameter['pageToken'] = pageToken;
228
- }
229
-
230
- if (filter !== undefined) {
231
- localVarQueryParameter['filter'] = filter;
232
- }
233
-
234
- if (search !== undefined) {
235
- localVarQueryParameter['search'] = search;
236
- }
237
-
238
- if (order !== undefined) {
239
- localVarQueryParameter['order'] = order;
240
- }
241
-
242
- if (expand !== undefined) {
243
- localVarQueryParameter['expand'] = expand;
244
- }
245
-
246
- if (filters !== undefined) {
247
- localVarQueryParameter['filters'] = filters;
248
- }
249
-
250
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
251
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
- }
253
-
254
-
255
-
256
- setSearchParams(localVarUrlObj, localVarQueryParameter);
257
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
258
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
259
-
260
- return {
261
- url: toPathString(localVarUrlObj),
262
- options: localVarRequestOptions,
263
- };
264
- },
265
- /**
266
- * This will partially update a task by code with the provided fields.
267
- * @summary Update the task
268
- * @param {string} code
269
- * @param {PatchTaskRequestDto} patchTaskRequestDto
270
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
271
- * @param {*} [options] Override http request option.
272
- * @throws {RequiredError}
273
- */
274
- patchTask: async (code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
275
- // verify required parameter 'code' is not null or undefined
276
- assertParamExists('patchTask', 'code', code)
277
- // verify required parameter 'patchTaskRequestDto' is not null or undefined
278
- assertParamExists('patchTask', 'patchTaskRequestDto', patchTaskRequestDto)
279
- const localVarPath = `/taskservice/v1/tasks/{code}`
280
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
281
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
282
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
283
- let baseOptions;
284
- let baseAccessToken;
285
- if (configuration) {
286
- baseOptions = configuration.baseOptions;
287
- baseAccessToken = configuration.accessToken;
288
- }
289
-
290
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
291
- const localVarHeaderParameter = {} as any;
292
- const localVarQueryParameter = {} as any;
293
-
294
- // authentication bearer required
295
- // http bearer authentication required
296
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
297
-
298
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
300
- }
301
-
302
-
303
-
304
- localVarHeaderParameter['Content-Type'] = 'application/json';
305
-
306
- setSearchParams(localVarUrlObj, localVarQueryParameter);
307
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
308
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
309
- localVarRequestOptions.data = serializeDataIfNeeded(patchTaskRequestDto, localVarRequestOptions, configuration)
310
-
311
- return {
312
- url: toPathString(localVarUrlObj),
313
- options: localVarRequestOptions,
314
- };
315
- },
316
- }
317
- };
318
-
319
- /**
320
- * TasksApi - functional programming interface
321
- * @export
322
- */
323
- export const TasksApiFp = function(configuration?: Configuration) {
324
- const localVarAxiosParamCreator = TasksApiAxiosParamCreator(configuration)
325
- return {
326
- /**
327
- * This will create task.
328
- * @summary Create the task
329
- * @param {CreateTaskRequestDto} createTaskRequestDto
330
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
331
- * @param {*} [options] Override http request option.
332
- * @throws {RequiredError}
333
- */
334
- async createTask(createTaskRequestDto: CreateTaskRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateTaskResponseClass>> {
335
- const localVarAxiosArgs = await localVarAxiosParamCreator.createTask(createTaskRequestDto, authorization, options);
336
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
337
- },
338
- /**
339
- * This will delete a task by code.
340
- * @summary Delete the task
341
- * @param {string} code Unique identifier for the object.
342
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
343
- * @param {*} [options] Override http request option.
344
- * @throws {RequiredError}
345
- */
346
- async deleteTask(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
347
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTask(code, authorization, options);
348
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
349
- },
350
- /**
351
- * This will get a task by code.
352
- * @summary Retrieve the task
353
- * @param {string} code
354
- * @param {string} expand
355
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
356
- * @param {*} [options] Override http request option.
357
- * @throws {RequiredError}
358
- */
359
- async getTask(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTaskResponseClass>> {
360
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTask(code, expand, authorization, options);
361
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
362
- },
363
- /**
364
- * Retrieves a list of tasks.
365
- * @summary List tasks
366
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
367
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
368
- * @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.
369
- * @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, categoryId, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug&lt;/i&gt;
370
- * @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;
371
- * @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&lt;/i&gt;
372
- * @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: category, status&lt;i&gt;
373
- * @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, categoryId, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug&lt;/i&gt;
374
- * @param {*} [options] Override http request option.
375
- * @throws {RequiredError}
376
- */
377
- 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>> {
378
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
379
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
380
- },
381
- /**
382
- * This will partially update a task by code with the provided fields.
383
- * @summary Update the task
384
- * @param {string} code
385
- * @param {PatchTaskRequestDto} patchTaskRequestDto
386
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
387
- * @param {*} [options] Override http request option.
388
- * @throws {RequiredError}
389
- */
390
- async patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchTaskResponseClass>> {
391
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchTask(code, patchTaskRequestDto, authorization, options);
392
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
393
- },
394
- }
395
- };
396
-
397
- /**
398
- * TasksApi - factory interface
399
- * @export
400
- */
401
- export const TasksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
402
- const localVarFp = TasksApiFp(configuration)
403
- return {
404
- /**
405
- * This will create task.
406
- * @summary Create the task
407
- * @param {CreateTaskRequestDto} createTaskRequestDto
408
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
409
- * @param {*} [options] Override http request option.
410
- * @throws {RequiredError}
411
- */
412
- createTask(createTaskRequestDto: CreateTaskRequestDto, authorization?: string, options?: any): AxiosPromise<CreateTaskResponseClass> {
413
- return localVarFp.createTask(createTaskRequestDto, authorization, options).then((request) => request(axios, basePath));
414
- },
415
- /**
416
- * This will delete a task by code.
417
- * @summary Delete the task
418
- * @param {string} code Unique identifier for the object.
419
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
420
- * @param {*} [options] Override http request option.
421
- * @throws {RequiredError}
422
- */
423
- deleteTask(code: string, authorization?: string, options?: any): AxiosPromise<void> {
424
- return localVarFp.deleteTask(code, authorization, options).then((request) => request(axios, basePath));
425
- },
426
- /**
427
- * This will get a task by code.
428
- * @summary Retrieve the task
429
- * @param {string} code
430
- * @param {string} expand
431
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
432
- * @param {*} [options] Override http request option.
433
- * @throws {RequiredError}
434
- */
435
- getTask(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetTaskResponseClass> {
436
- return localVarFp.getTask(code, expand, authorization, options).then((request) => request(axios, basePath));
437
- },
438
- /**
439
- * Retrieves a list of tasks.
440
- * @summary List tasks
441
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
442
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
443
- * @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.
444
- * @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, categoryId, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug&lt;/i&gt;
445
- * @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;
446
- * @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&lt;/i&gt;
447
- * @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: category, status&lt;i&gt;
448
- * @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, categoryId, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug&lt;/i&gt;
449
- * @param {*} [options] Override http request option.
450
- * @throws {RequiredError}
451
- */
452
- listTasks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListTasksResponseClass> {
453
- return localVarFp.listTasks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
454
- },
455
- /**
456
- * This will partially update a task by code with the provided fields.
457
- * @summary Update the task
458
- * @param {string} code
459
- * @param {PatchTaskRequestDto} patchTaskRequestDto
460
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
461
- * @param {*} [options] Override http request option.
462
- * @throws {RequiredError}
463
- */
464
- patchTask(code: string, patchTaskRequestDto: PatchTaskRequestDto, authorization?: string, options?: any): AxiosPromise<PatchTaskResponseClass> {
465
- return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then((request) => request(axios, basePath));
466
- },
467
- };
468
- };
469
-
470
- /**
471
- * Request parameters for createTask operation in TasksApi.
472
- * @export
473
- * @interface TasksApiCreateTaskRequest
474
- */
475
- export interface TasksApiCreateTaskRequest {
476
- /**
477
- *
478
- * @type {CreateTaskRequestDto}
479
- * @memberof TasksApiCreateTask
480
- */
481
- readonly createTaskRequestDto: CreateTaskRequestDto
482
-
483
- /**
484
- * Bearer Token: provided by the login endpoint under the name accessToken.
485
- * @type {string}
486
- * @memberof TasksApiCreateTask
487
- */
488
- readonly authorization?: string
489
- }
490
-
491
- /**
492
- * Request parameters for deleteTask operation in TasksApi.
493
- * @export
494
- * @interface TasksApiDeleteTaskRequest
495
- */
496
- export interface TasksApiDeleteTaskRequest {
497
- /**
498
- * Unique identifier for the object.
499
- * @type {string}
500
- * @memberof TasksApiDeleteTask
501
- */
502
- readonly code: string
503
-
504
- /**
505
- * Bearer Token: provided by the login endpoint under the name accessToken.
506
- * @type {string}
507
- * @memberof TasksApiDeleteTask
508
- */
509
- readonly authorization?: string
510
- }
511
-
512
- /**
513
- * Request parameters for getTask operation in TasksApi.
514
- * @export
515
- * @interface TasksApiGetTaskRequest
516
- */
517
- export interface TasksApiGetTaskRequest {
518
- /**
519
- *
520
- * @type {string}
521
- * @memberof TasksApiGetTask
522
- */
523
- readonly code: string
524
-
525
- /**
526
- *
527
- * @type {string}
528
- * @memberof TasksApiGetTask
529
- */
530
- readonly expand: string
531
-
532
- /**
533
- * Bearer Token: provided by the login endpoint under the name accessToken.
534
- * @type {string}
535
- * @memberof TasksApiGetTask
536
- */
537
- readonly authorization?: string
538
- }
539
-
540
- /**
541
- * Request parameters for listTasks operation in TasksApi.
542
- * @export
543
- * @interface TasksApiListTasksRequest
544
- */
545
- export interface TasksApiListTasksRequest {
546
- /**
547
- * Bearer Token: provided by the login endpoint under the name accessToken.
548
- * @type {string}
549
- * @memberof TasksApiListTasks
550
- */
551
- readonly authorization?: string
552
-
553
- /**
554
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
555
- * @type {number}
556
- * @memberof TasksApiListTasks
557
- */
558
- readonly pageSize?: number
559
-
560
- /**
561
- * 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.
562
- * @type {string}
563
- * @memberof TasksApiListTasks
564
- */
565
- readonly pageToken?: string
566
-
567
- /**
568
- * 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, categoryId, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug&lt;/i&gt;
569
- * @type {string}
570
- * @memberof TasksApiListTasks
571
- */
572
- readonly filter?: string
573
-
574
- /**
575
- * 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;
576
- * @type {string}
577
- * @memberof TasksApiListTasks
578
- */
579
- readonly search?: string
580
-
581
- /**
582
- * 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&lt;/i&gt;
583
- * @type {string}
584
- * @memberof TasksApiListTasks
585
- */
586
- readonly order?: string
587
-
588
- /**
589
- * 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: category, status&lt;i&gt;
590
- * @type {string}
591
- * @memberof TasksApiListTasks
592
- */
593
- readonly expand?: string
594
-
595
- /**
596
- * 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, categoryId, statusId, priority, assignee, reporter, dueDate, createdAt, updatedAt, status.slug, category.slug&lt;/i&gt;
597
- * @type {string}
598
- * @memberof TasksApiListTasks
599
- */
600
- readonly filters?: string
601
- }
602
-
603
- /**
604
- * Request parameters for patchTask operation in TasksApi.
605
- * @export
606
- * @interface TasksApiPatchTaskRequest
607
- */
608
- export interface TasksApiPatchTaskRequest {
609
- /**
610
- *
611
- * @type {string}
612
- * @memberof TasksApiPatchTask
613
- */
614
- readonly code: string
615
-
616
- /**
617
- *
618
- * @type {PatchTaskRequestDto}
619
- * @memberof TasksApiPatchTask
620
- */
621
- readonly patchTaskRequestDto: PatchTaskRequestDto
622
-
623
- /**
624
- * Bearer Token: provided by the login endpoint under the name accessToken.
625
- * @type {string}
626
- * @memberof TasksApiPatchTask
627
- */
628
- readonly authorization?: string
629
- }
630
-
631
- /**
632
- * TasksApi - object-oriented interface
633
- * @export
634
- * @class TasksApi
635
- * @extends {BaseAPI}
636
- */
637
- export class TasksApi extends BaseAPI {
638
- /**
639
- * This will create task.
640
- * @summary Create the task
641
- * @param {TasksApiCreateTaskRequest} requestParameters Request parameters.
642
- * @param {*} [options] Override http request option.
643
- * @throws {RequiredError}
644
- * @memberof TasksApi
645
- */
646
- public createTask(requestParameters: TasksApiCreateTaskRequest, options?: AxiosRequestConfig) {
647
- return TasksApiFp(this.configuration).createTask(requestParameters.createTaskRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
648
- }
649
-
650
- /**
651
- * This will delete a task by code.
652
- * @summary Delete the task
653
- * @param {TasksApiDeleteTaskRequest} requestParameters Request parameters.
654
- * @param {*} [options] Override http request option.
655
- * @throws {RequiredError}
656
- * @memberof TasksApi
657
- */
658
- public deleteTask(requestParameters: TasksApiDeleteTaskRequest, options?: AxiosRequestConfig) {
659
- return TasksApiFp(this.configuration).deleteTask(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
660
- }
661
-
662
- /**
663
- * This will get a task by code.
664
- * @summary Retrieve the task
665
- * @param {TasksApiGetTaskRequest} requestParameters Request parameters.
666
- * @param {*} [options] Override http request option.
667
- * @throws {RequiredError}
668
- * @memberof TasksApi
669
- */
670
- public getTask(requestParameters: TasksApiGetTaskRequest, options?: AxiosRequestConfig) {
671
- return TasksApiFp(this.configuration).getTask(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
672
- }
673
-
674
- /**
675
- * Retrieves a list of tasks.
676
- * @summary List tasks
677
- * @param {TasksApiListTasksRequest} requestParameters Request parameters.
678
- * @param {*} [options] Override http request option.
679
- * @throws {RequiredError}
680
- * @memberof TasksApi
681
- */
682
- public listTasks(requestParameters: TasksApiListTasksRequest = {}, options?: AxiosRequestConfig) {
683
- return TasksApiFp(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));
684
- }
685
-
686
- /**
687
- * This will partially update a task by code with the provided fields.
688
- * @summary Update the task
689
- * @param {TasksApiPatchTaskRequest} requestParameters Request parameters.
690
- * @param {*} [options] Override http request option.
691
- * @throws {RequiredError}
692
- * @memberof TasksApi
693
- */
694
- public patchTask(requestParameters: TasksApiPatchTaskRequest, options?: AxiosRequestConfig) {
695
- return TasksApiFp(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
696
- }
697
- }