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

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 (53) hide show
  1. package/.openapi-generator/FILES +0 -5
  2. package/README.md +2 -2
  3. package/api/categories-api.ts +44 -30
  4. package/api/statuses-api.ts +40 -26
  5. package/api/tasks-api.ts +48 -34
  6. package/api.ts +0 -2
  7. package/dist/api/categories-api.d.ts +36 -27
  8. package/dist/api/categories-api.js +33 -27
  9. package/dist/api/statuses-api.d.ts +32 -23
  10. package/dist/api/statuses-api.js +29 -23
  11. package/dist/api/tasks-api.d.ts +40 -31
  12. package/dist/api/tasks-api.js +36 -30
  13. package/dist/api.d.ts +0 -1
  14. package/dist/api.js +0 -1
  15. package/dist/models/category-class.d.ts +6 -0
  16. package/dist/models/create-category-request-dto.d.ts +7 -1
  17. package/dist/models/create-status-request-dto.d.ts +7 -1
  18. package/dist/models/create-task-request-dto.d.ts +31 -13
  19. package/dist/models/create-task-request-dto.js +6 -0
  20. package/dist/models/index.d.ts +0 -4
  21. package/dist/models/index.js +0 -4
  22. package/dist/models/status-class.d.ts +6 -0
  23. package/dist/models/task-class.d.ts +22 -5
  24. package/dist/models/task-class.js +6 -0
  25. package/dist/models/update-category-request-dto.d.ts +8 -2
  26. package/dist/models/update-status-request-dto.d.ts +8 -2
  27. package/dist/models/update-task-request-dto.d.ts +26 -14
  28. package/models/category-class.ts +6 -0
  29. package/models/create-category-request-dto.ts +7 -1
  30. package/models/create-status-request-dto.ts +7 -1
  31. package/models/create-task-request-dto.ts +34 -13
  32. package/models/index.ts +0 -4
  33. package/models/status-class.ts +6 -0
  34. package/models/task-class.ts +25 -5
  35. package/models/update-category-request-dto.ts +8 -2
  36. package/models/update-status-request-dto.ts +8 -2
  37. package/models/update-task-request-dto.ts +26 -14
  38. package/package.json +1 -1
  39. package/api/priorities-api.ts +0 -288
  40. package/dist/api/priorities-api.d.ts +0 -162
  41. package/dist/api/priorities-api.js +0 -328
  42. package/dist/models/create-priority-request-dto.d.ts +0 -24
  43. package/dist/models/create-priority-request-dto.js +0 -15
  44. package/dist/models/create-priority-response-class.d.ts +0 -25
  45. package/dist/models/create-priority-response-class.js +0 -15
  46. package/dist/models/get-priority-response-class.d.ts +0 -25
  47. package/dist/models/get-priority-response-class.js +0 -15
  48. package/dist/models/priority-class.d.ts +0 -60
  49. package/dist/models/priority-class.js +0 -15
  50. package/models/create-priority-request-dto.ts +0 -30
  51. package/models/create-priority-response-class.ts +0 -31
  52. package/models/get-priority-response-class.ts +0 -31
  53. package/models/priority-class.ts +0 -66
@@ -1,288 +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 { CreatePriorityRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreatePriorityResponseClass } from '../models';
27
- // @ts-ignore
28
- import { GetPriorityResponseClass } from '../models';
29
- // URLSearchParams not necessarily used
30
- // @ts-ignore
31
- import { URL, URLSearchParams } from 'url';
32
- const FormData = require('form-data');
33
- /**
34
- * PrioritiesApi - axios parameter creator
35
- * @export
36
- */
37
- export const PrioritiesApiAxiosParamCreator = function (configuration?: Configuration) {
38
- return {
39
- /**
40
- * This will create priority.
41
- * @summary Create the priority
42
- * @param {CreatePriorityRequestDto} createPriorityRequestDto
43
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
44
- * @param {*} [options] Override http request option.
45
- * @throws {RequiredError}
46
- */
47
- createPriority: async (createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
48
- // verify required parameter 'createPriorityRequestDto' is not null or undefined
49
- assertParamExists('createPriority', 'createPriorityRequestDto', createPriorityRequestDto)
50
- const localVarPath = `/taskservice/v1/priorities`;
51
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
53
- let baseOptions;
54
- let baseAccessToken;
55
- if (configuration) {
56
- baseOptions = configuration.baseOptions;
57
- baseAccessToken = configuration.accessToken;
58
- }
59
-
60
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
61
- const localVarHeaderParameter = {} as any;
62
- const localVarQueryParameter = {} as any;
63
-
64
- // authentication bearer required
65
- // http bearer authentication required
66
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
67
-
68
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
69
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
70
- }
71
-
72
-
73
-
74
- localVarHeaderParameter['Content-Type'] = 'application/json';
75
-
76
- setSearchParams(localVarUrlObj, localVarQueryParameter);
77
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
78
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
79
- localVarRequestOptions.data = serializeDataIfNeeded(createPriorityRequestDto, localVarRequestOptions, configuration)
80
-
81
- return {
82
- url: toPathString(localVarUrlObj),
83
- options: localVarRequestOptions,
84
- };
85
- },
86
- /**
87
- * This will get priority.
88
- * @summary Retrieve the priority
89
- * @param {string} code
90
- * @param {string} expand
91
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
92
- * @param {*} [options] Override http request option.
93
- * @throws {RequiredError}
94
- */
95
- getPriority: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
96
- // verify required parameter 'code' is not null or undefined
97
- assertParamExists('getPriority', 'code', code)
98
- // verify required parameter 'expand' is not null or undefined
99
- assertParamExists('getPriority', 'expand', expand)
100
- const localVarPath = `/taskservice/v1/priorities/{code}`
101
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
102
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
104
- let baseOptions;
105
- let baseAccessToken;
106
- if (configuration) {
107
- baseOptions = configuration.baseOptions;
108
- baseAccessToken = configuration.accessToken;
109
- }
110
-
111
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
112
- const localVarHeaderParameter = {} as any;
113
- const localVarQueryParameter = {} as any;
114
-
115
- // authentication bearer required
116
- // http bearer authentication required
117
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
118
-
119
- if (expand !== undefined) {
120
- localVarQueryParameter['expand'] = expand;
121
- }
122
-
123
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
124
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
125
- }
126
-
127
-
128
-
129
- setSearchParams(localVarUrlObj, localVarQueryParameter);
130
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
131
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
132
-
133
- return {
134
- url: toPathString(localVarUrlObj),
135
- options: localVarRequestOptions,
136
- };
137
- },
138
- }
139
- };
140
-
141
- /**
142
- * PrioritiesApi - functional programming interface
143
- * @export
144
- */
145
- export const PrioritiesApiFp = function(configuration?: Configuration) {
146
- const localVarAxiosParamCreator = PrioritiesApiAxiosParamCreator(configuration)
147
- return {
148
- /**
149
- * This will create priority.
150
- * @summary Create the priority
151
- * @param {CreatePriorityRequestDto} createPriorityRequestDto
152
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
- * @param {*} [options] Override http request option.
154
- * @throws {RequiredError}
155
- */
156
- async createPriority(createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePriorityResponseClass>> {
157
- const localVarAxiosArgs = await localVarAxiosParamCreator.createPriority(createPriorityRequestDto, authorization, options);
158
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
159
- },
160
- /**
161
- * This will get priority.
162
- * @summary Retrieve the priority
163
- * @param {string} code
164
- * @param {string} expand
165
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
166
- * @param {*} [options] Override http request option.
167
- * @throws {RequiredError}
168
- */
169
- async getPriority(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPriorityResponseClass>> {
170
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPriority(code, expand, authorization, options);
171
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
172
- },
173
- }
174
- };
175
-
176
- /**
177
- * PrioritiesApi - factory interface
178
- * @export
179
- */
180
- export const PrioritiesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
181
- const localVarFp = PrioritiesApiFp(configuration)
182
- return {
183
- /**
184
- * This will create priority.
185
- * @summary Create the priority
186
- * @param {CreatePriorityRequestDto} createPriorityRequestDto
187
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
188
- * @param {*} [options] Override http request option.
189
- * @throws {RequiredError}
190
- */
191
- createPriority(createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePriorityResponseClass> {
192
- return localVarFp.createPriority(createPriorityRequestDto, authorization, options).then((request) => request(axios, basePath));
193
- },
194
- /**
195
- * This will get priority.
196
- * @summary Retrieve the priority
197
- * @param {string} code
198
- * @param {string} expand
199
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
200
- * @param {*} [options] Override http request option.
201
- * @throws {RequiredError}
202
- */
203
- getPriority(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetPriorityResponseClass> {
204
- return localVarFp.getPriority(code, expand, authorization, options).then((request) => request(axios, basePath));
205
- },
206
- };
207
- };
208
-
209
- /**
210
- * Request parameters for createPriority operation in PrioritiesApi.
211
- * @export
212
- * @interface PrioritiesApiCreatePriorityRequest
213
- */
214
- export interface PrioritiesApiCreatePriorityRequest {
215
- /**
216
- *
217
- * @type {CreatePriorityRequestDto}
218
- * @memberof PrioritiesApiCreatePriority
219
- */
220
- readonly createPriorityRequestDto: CreatePriorityRequestDto
221
-
222
- /**
223
- * Bearer Token: provided by the login endpoint under the name accessToken.
224
- * @type {string}
225
- * @memberof PrioritiesApiCreatePriority
226
- */
227
- readonly authorization?: string
228
- }
229
-
230
- /**
231
- * Request parameters for getPriority operation in PrioritiesApi.
232
- * @export
233
- * @interface PrioritiesApiGetPriorityRequest
234
- */
235
- export interface PrioritiesApiGetPriorityRequest {
236
- /**
237
- *
238
- * @type {string}
239
- * @memberof PrioritiesApiGetPriority
240
- */
241
- readonly code: string
242
-
243
- /**
244
- *
245
- * @type {string}
246
- * @memberof PrioritiesApiGetPriority
247
- */
248
- readonly expand: string
249
-
250
- /**
251
- * Bearer Token: provided by the login endpoint under the name accessToken.
252
- * @type {string}
253
- * @memberof PrioritiesApiGetPriority
254
- */
255
- readonly authorization?: string
256
- }
257
-
258
- /**
259
- * PrioritiesApi - object-oriented interface
260
- * @export
261
- * @class PrioritiesApi
262
- * @extends {BaseAPI}
263
- */
264
- export class PrioritiesApi extends BaseAPI {
265
- /**
266
- * This will create priority.
267
- * @summary Create the priority
268
- * @param {PrioritiesApiCreatePriorityRequest} requestParameters Request parameters.
269
- * @param {*} [options] Override http request option.
270
- * @throws {RequiredError}
271
- * @memberof PrioritiesApi
272
- */
273
- public createPriority(requestParameters: PrioritiesApiCreatePriorityRequest, options?: AxiosRequestConfig) {
274
- return PrioritiesApiFp(this.configuration).createPriority(requestParameters.createPriorityRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
275
- }
276
-
277
- /**
278
- * This will get priority.
279
- * @summary Retrieve the priority
280
- * @param {PrioritiesApiGetPriorityRequest} requestParameters Request parameters.
281
- * @param {*} [options] Override http request option.
282
- * @throws {RequiredError}
283
- * @memberof PrioritiesApi
284
- */
285
- public getPriority(requestParameters: PrioritiesApiGetPriorityRequest, options?: AxiosRequestConfig) {
286
- return PrioritiesApiFp(this.configuration).getPriority(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
287
- }
288
- }
@@ -1,162 +0,0 @@
1
- /**
2
- * EMIL TaskService
3
- * The EMIL Task API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
- import { Configuration } from '../configuration';
14
- import { RequestArgs, BaseAPI } from '../base';
15
- import { CreatePriorityRequestDto } from '../models';
16
- import { CreatePriorityResponseClass } from '../models';
17
- import { GetPriorityResponseClass } from '../models';
18
- /**
19
- * PrioritiesApi - axios parameter creator
20
- * @export
21
- */
22
- export declare const PrioritiesApiAxiosParamCreator: (configuration?: Configuration) => {
23
- /**
24
- * This will create priority.
25
- * @summary Create the priority
26
- * @param {CreatePriorityRequestDto} createPriorityRequestDto
27
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
28
- * @param {*} [options] Override http request option.
29
- * @throws {RequiredError}
30
- */
31
- createPriority: (createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
- /**
33
- * This will get priority.
34
- * @summary Retrieve the priority
35
- * @param {string} code
36
- * @param {string} expand
37
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
38
- * @param {*} [options] Override http request option.
39
- * @throws {RequiredError}
40
- */
41
- getPriority: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
- };
43
- /**
44
- * PrioritiesApi - functional programming interface
45
- * @export
46
- */
47
- export declare const PrioritiesApiFp: (configuration?: Configuration) => {
48
- /**
49
- * This will create priority.
50
- * @summary Create the priority
51
- * @param {CreatePriorityRequestDto} createPriorityRequestDto
52
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
53
- * @param {*} [options] Override http request option.
54
- * @throws {RequiredError}
55
- */
56
- createPriority(createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePriorityResponseClass>>;
57
- /**
58
- * This will get priority.
59
- * @summary Retrieve the priority
60
- * @param {string} code
61
- * @param {string} expand
62
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
63
- * @param {*} [options] Override http request option.
64
- * @throws {RequiredError}
65
- */
66
- getPriority(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPriorityResponseClass>>;
67
- };
68
- /**
69
- * PrioritiesApi - factory interface
70
- * @export
71
- */
72
- export declare const PrioritiesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
73
- /**
74
- * This will create priority.
75
- * @summary Create the priority
76
- * @param {CreatePriorityRequestDto} createPriorityRequestDto
77
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
78
- * @param {*} [options] Override http request option.
79
- * @throws {RequiredError}
80
- */
81
- createPriority(createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePriorityResponseClass>;
82
- /**
83
- * This will get priority.
84
- * @summary Retrieve the priority
85
- * @param {string} code
86
- * @param {string} expand
87
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
88
- * @param {*} [options] Override http request option.
89
- * @throws {RequiredError}
90
- */
91
- getPriority(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetPriorityResponseClass>;
92
- };
93
- /**
94
- * Request parameters for createPriority operation in PrioritiesApi.
95
- * @export
96
- * @interface PrioritiesApiCreatePriorityRequest
97
- */
98
- export interface PrioritiesApiCreatePriorityRequest {
99
- /**
100
- *
101
- * @type {CreatePriorityRequestDto}
102
- * @memberof PrioritiesApiCreatePriority
103
- */
104
- readonly createPriorityRequestDto: CreatePriorityRequestDto;
105
- /**
106
- * Bearer Token: provided by the login endpoint under the name accessToken.
107
- * @type {string}
108
- * @memberof PrioritiesApiCreatePriority
109
- */
110
- readonly authorization?: string;
111
- }
112
- /**
113
- * Request parameters for getPriority operation in PrioritiesApi.
114
- * @export
115
- * @interface PrioritiesApiGetPriorityRequest
116
- */
117
- export interface PrioritiesApiGetPriorityRequest {
118
- /**
119
- *
120
- * @type {string}
121
- * @memberof PrioritiesApiGetPriority
122
- */
123
- readonly code: string;
124
- /**
125
- *
126
- * @type {string}
127
- * @memberof PrioritiesApiGetPriority
128
- */
129
- readonly expand: string;
130
- /**
131
- * Bearer Token: provided by the login endpoint under the name accessToken.
132
- * @type {string}
133
- * @memberof PrioritiesApiGetPriority
134
- */
135
- readonly authorization?: string;
136
- }
137
- /**
138
- * PrioritiesApi - object-oriented interface
139
- * @export
140
- * @class PrioritiesApi
141
- * @extends {BaseAPI}
142
- */
143
- export declare class PrioritiesApi extends BaseAPI {
144
- /**
145
- * This will create priority.
146
- * @summary Create the priority
147
- * @param {PrioritiesApiCreatePriorityRequest} requestParameters Request parameters.
148
- * @param {*} [options] Override http request option.
149
- * @throws {RequiredError}
150
- * @memberof PrioritiesApi
151
- */
152
- createPriority(requestParameters: PrioritiesApiCreatePriorityRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePriorityResponseClass, any, {}>>;
153
- /**
154
- * This will get priority.
155
- * @summary Retrieve the priority
156
- * @param {PrioritiesApiGetPriorityRequest} requestParameters Request parameters.
157
- * @param {*} [options] Override http request option.
158
- * @throws {RequiredError}
159
- * @memberof PrioritiesApi
160
- */
161
- getPriority(requestParameters: PrioritiesApiGetPriorityRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPriorityResponseClass, any, {}>>;
162
- }