@emilgroup/task-sdk-node 1.0.1-beta.1

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