@emilgroup/task-sdk-node 1.0.3 → 1.1.0

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