@se-uulm/snowballr-api-client 0.2.1-alpha.267f00c → 0.2.1-alpha.2d2b6b0

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 (84) hide show
  1. package/.openapi-generator/FILES +25 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +102 -28
  5. package/dist/apis/ProjectsControllerApi.d.ts +66 -13
  6. package/dist/apis/ProjectsControllerApi.js +60 -23
  7. package/dist/apis/index.d.ts +0 -2
  8. package/dist/apis/index.js +0 -2
  9. package/dist/esm/apis/ProjectsControllerApi.d.ts +66 -13
  10. package/dist/esm/apis/ProjectsControllerApi.js +59 -22
  11. package/dist/esm/apis/index.d.ts +0 -2
  12. package/dist/esm/apis/index.js +0 -2
  13. package/dist/esm/models/CreateProjectRequest.d.ts +0 -2
  14. package/dist/esm/models/DecisionMatrixPattern.d.ts +0 -4
  15. package/dist/esm/models/DecisionMatrixPattern.js +1 -1
  16. package/dist/esm/models/DecisionMatrixPatternEntry.d.ts +0 -4
  17. package/dist/esm/models/DecisionMatrixPatternEntry.js +1 -1
  18. package/dist/esm/models/Project.d.ts +66 -0
  19. package/dist/esm/models/Project.js +65 -0
  20. package/dist/esm/models/ProjectSettings.d.ts +60 -0
  21. package/dist/esm/models/{ProjectResponse.js → ProjectSettings.js} +10 -32
  22. package/dist/esm/models/ReviewDecisionMatrix.d.ts +0 -4
  23. package/dist/esm/models/index.d.ts +2 -4
  24. package/dist/esm/models/index.js +2 -4
  25. package/dist/esm/runtime.d.ts +34 -1
  26. package/dist/esm/runtime.js +130 -4
  27. package/dist/models/CreateProjectRequest.d.ts +0 -2
  28. package/dist/models/DecisionMatrixPattern.d.ts +0 -4
  29. package/dist/models/DecisionMatrixPattern.js +1 -1
  30. package/dist/models/DecisionMatrixPatternEntry.d.ts +0 -4
  31. package/dist/models/DecisionMatrixPatternEntry.js +1 -1
  32. package/dist/models/Project.d.ts +66 -0
  33. package/dist/models/Project.js +73 -0
  34. package/dist/models/ProjectSettings.d.ts +60 -0
  35. package/dist/models/ProjectSettings.js +66 -0
  36. package/dist/models/ReviewDecisionMatrix.d.ts +0 -4
  37. package/dist/models/index.d.ts +2 -4
  38. package/dist/models/index.js +2 -4
  39. package/dist/runtime.d.ts +34 -1
  40. package/dist/runtime.js +136 -4
  41. package/docs/CreateProjectRequest.md +34 -0
  42. package/docs/DecisionMatrixPattern.md +36 -0
  43. package/docs/DecisionMatrixPatternEntry.md +36 -0
  44. package/docs/Project.md +46 -0
  45. package/docs/ProjectSettings.md +42 -0
  46. package/docs/ProjectsControllerApi.md +264 -0
  47. package/docs/ReviewDecisionMatrix.md +36 -0
  48. package/package.json +5 -11
  49. package/src/apis/ProjectsControllerApi.ts +309 -0
  50. package/src/apis/index.ts +3 -0
  51. package/src/index.ts +5 -0
  52. package/src/models/CreateProjectRequest.ts +63 -0
  53. package/src/models/DecisionMatrixPattern.ts +90 -0
  54. package/src/models/DecisionMatrixPatternEntry.ts +81 -0
  55. package/src/models/Project.ts +121 -0
  56. package/src/models/ProjectSettings.ts +107 -0
  57. package/src/models/ReviewDecisionMatrix.ts +77 -0
  58. package/src/models/index.ts +8 -0
  59. package/src/runtime.ts +572 -0
  60. package/tsconfig.esm.json +7 -0
  61. package/tsconfig.json +16 -0
  62. package/dist/apis/AuthControllerApi.d.ts +0 -118
  63. package/dist/apis/AuthControllerApi.js +0 -170
  64. package/dist/apis/UsersControllerApi.d.ts +0 -46
  65. package/dist/apis/UsersControllerApi.js +0 -61
  66. package/dist/esm/apis/AuthControllerApi.d.ts +0 -118
  67. package/dist/esm/apis/AuthControllerApi.js +0 -166
  68. package/dist/esm/apis/UsersControllerApi.d.ts +0 -46
  69. package/dist/esm/apis/UsersControllerApi.js +0 -57
  70. package/dist/esm/models/ChangePasswordRequest.d.ts +0 -38
  71. package/dist/esm/models/ChangePasswordRequest.js +0 -43
  72. package/dist/esm/models/LoginRequest.d.ts +0 -38
  73. package/dist/esm/models/LoginRequest.js +0 -43
  74. package/dist/esm/models/ProjectResponse.d.ts +0 -117
  75. package/dist/esm/models/RegisterRequest.d.ts +0 -50
  76. package/dist/esm/models/RegisterRequest.js +0 -47
  77. package/dist/models/ChangePasswordRequest.d.ts +0 -38
  78. package/dist/models/ChangePasswordRequest.js +0 -50
  79. package/dist/models/LoginRequest.d.ts +0 -38
  80. package/dist/models/LoginRequest.js +0 -50
  81. package/dist/models/ProjectResponse.d.ts +0 -117
  82. package/dist/models/ProjectResponse.js +0 -88
  83. package/dist/models/RegisterRequest.d.ts +0 -50
  84. package/dist/models/RegisterRequest.js +0 -54
@@ -0,0 +1,264 @@
1
+ # ProjectsControllerApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**createProject**](ProjectsControllerApi.md#createprojectoperation) | **POST** /projects | |
8
+ | [**deleteProject**](ProjectsControllerApi.md#deleteproject) | **DELETE** /projects/{id} | |
9
+ | [**getAllProjects**](ProjectsControllerApi.md#getallprojects) | **GET** /projects | |
10
+ | [**getProject**](ProjectsControllerApi.md#getproject) | **GET** /projects/{id} | |
11
+
12
+
13
+
14
+ ## createProject
15
+
16
+ > Project createProject(createProjectRequest)
17
+
18
+
19
+
20
+ ### Example
21
+
22
+ ```ts
23
+ import {
24
+ Configuration,
25
+ ProjectsControllerApi,
26
+ } from '@se-uulm/snowballr-api-client';
27
+ import type { CreateProjectOperationRequest } from '@se-uulm/snowballr-api-client';
28
+
29
+ async function example() {
30
+ console.log("🚀 Testing @se-uulm/snowballr-api-client SDK...");
31
+ const api = new ProjectsControllerApi();
32
+
33
+ const body = {
34
+ // CreateProjectRequest
35
+ createProjectRequest: ...,
36
+ } satisfies CreateProjectOperationRequest;
37
+
38
+ try {
39
+ const data = await api.createProject(body);
40
+ console.log(data);
41
+ } catch (error) {
42
+ console.error(error);
43
+ }
44
+ }
45
+
46
+ // Run the test
47
+ example().catch(console.error);
48
+ ```
49
+
50
+ ### Parameters
51
+
52
+
53
+ | Name | Type | Description | Notes |
54
+ |------------- | ------------- | ------------- | -------------|
55
+ | **createProjectRequest** | [CreateProjectRequest](CreateProjectRequest.md) | | |
56
+
57
+ ### Return type
58
+
59
+ [**Project**](Project.md)
60
+
61
+ ### Authorization
62
+
63
+ No authorization required
64
+
65
+ ### HTTP request headers
66
+
67
+ - **Content-Type**: `application/json`
68
+ - **Accept**: `*/*`
69
+
70
+
71
+ ### HTTP response details
72
+ | Status code | Description | Response headers |
73
+ |-------------|-------------|------------------|
74
+ | **200** | OK | - |
75
+
76
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
77
+
78
+
79
+ ## deleteProject
80
+
81
+ > deleteProject(id)
82
+
83
+
84
+
85
+ ### Example
86
+
87
+ ```ts
88
+ import {
89
+ Configuration,
90
+ ProjectsControllerApi,
91
+ } from '@se-uulm/snowballr-api-client';
92
+ import type { DeleteProjectRequest } from '@se-uulm/snowballr-api-client';
93
+
94
+ async function example() {
95
+ console.log("🚀 Testing @se-uulm/snowballr-api-client SDK...");
96
+ const api = new ProjectsControllerApi();
97
+
98
+ const body = {
99
+ // string
100
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
101
+ } satisfies DeleteProjectRequest;
102
+
103
+ try {
104
+ const data = await api.deleteProject(body);
105
+ console.log(data);
106
+ } catch (error) {
107
+ console.error(error);
108
+ }
109
+ }
110
+
111
+ // Run the test
112
+ example().catch(console.error);
113
+ ```
114
+
115
+ ### Parameters
116
+
117
+
118
+ | Name | Type | Description | Notes |
119
+ |------------- | ------------- | ------------- | -------------|
120
+ | **id** | `string` | | [Defaults to `undefined`] |
121
+
122
+ ### Return type
123
+
124
+ `void` (Empty response body)
125
+
126
+ ### Authorization
127
+
128
+ No authorization required
129
+
130
+ ### HTTP request headers
131
+
132
+ - **Content-Type**: Not defined
133
+ - **Accept**: Not defined
134
+
135
+
136
+ ### HTTP response details
137
+ | Status code | Description | Response headers |
138
+ |-------------|-------------|------------------|
139
+ | **200** | OK | - |
140
+
141
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
142
+
143
+
144
+ ## getAllProjects
145
+
146
+ > Array<Project> getAllProjects()
147
+
148
+
149
+
150
+ ### Example
151
+
152
+ ```ts
153
+ import {
154
+ Configuration,
155
+ ProjectsControllerApi,
156
+ } from '@se-uulm/snowballr-api-client';
157
+ import type { GetAllProjectsRequest } from '@se-uulm/snowballr-api-client';
158
+
159
+ async function example() {
160
+ console.log("🚀 Testing @se-uulm/snowballr-api-client SDK...");
161
+ const api = new ProjectsControllerApi();
162
+
163
+ try {
164
+ const data = await api.getAllProjects();
165
+ console.log(data);
166
+ } catch (error) {
167
+ console.error(error);
168
+ }
169
+ }
170
+
171
+ // Run the test
172
+ example().catch(console.error);
173
+ ```
174
+
175
+ ### Parameters
176
+
177
+ This endpoint does not need any parameter.
178
+
179
+ ### Return type
180
+
181
+ [**Array<Project>**](Project.md)
182
+
183
+ ### Authorization
184
+
185
+ No authorization required
186
+
187
+ ### HTTP request headers
188
+
189
+ - **Content-Type**: Not defined
190
+ - **Accept**: `*/*`
191
+
192
+
193
+ ### HTTP response details
194
+ | Status code | Description | Response headers |
195
+ |-------------|-------------|------------------|
196
+ | **200** | OK | - |
197
+
198
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
199
+
200
+
201
+ ## getProject
202
+
203
+ > Project getProject(id)
204
+
205
+
206
+
207
+ ### Example
208
+
209
+ ```ts
210
+ import {
211
+ Configuration,
212
+ ProjectsControllerApi,
213
+ } from '@se-uulm/snowballr-api-client';
214
+ import type { GetProjectRequest } from '@se-uulm/snowballr-api-client';
215
+
216
+ async function example() {
217
+ console.log("🚀 Testing @se-uulm/snowballr-api-client SDK...");
218
+ const api = new ProjectsControllerApi();
219
+
220
+ const body = {
221
+ // string
222
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
223
+ } satisfies GetProjectRequest;
224
+
225
+ try {
226
+ const data = await api.getProject(body);
227
+ console.log(data);
228
+ } catch (error) {
229
+ console.error(error);
230
+ }
231
+ }
232
+
233
+ // Run the test
234
+ example().catch(console.error);
235
+ ```
236
+
237
+ ### Parameters
238
+
239
+
240
+ | Name | Type | Description | Notes |
241
+ |------------- | ------------- | ------------- | -------------|
242
+ | **id** | `string` | | [Defaults to `undefined`] |
243
+
244
+ ### Return type
245
+
246
+ [**Project**](Project.md)
247
+
248
+ ### Authorization
249
+
250
+ No authorization required
251
+
252
+ ### HTTP request headers
253
+
254
+ - **Content-Type**: Not defined
255
+ - **Accept**: `*/*`
256
+
257
+
258
+ ### HTTP response details
259
+ | Status code | Description | Response headers |
260
+ |-------------|-------------|------------------|
261
+ | **200** | OK | - |
262
+
263
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
264
+
@@ -0,0 +1,36 @@
1
+
2
+ # ReviewDecisionMatrix
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `numberOfReviewers` | number
10
+ `patterns` | [Array<DecisionMatrixPattern>](DecisionMatrixPattern.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ReviewDecisionMatrix } from '@se-uulm/snowballr-api-client'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "numberOfReviewers": null,
20
+ "patterns": null,
21
+ } satisfies ReviewDecisionMatrix
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as ReviewDecisionMatrix
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@se-uulm/snowballr-api-client",
3
- "version": "0.2.1-alpha.267f00c",
4
- "description": "API client for the SnowballR Web Application",
5
- "author": "SnowballR",
3
+ "version": "0.2.1-alpha.2d2b6b0",
4
+ "description": "OpenAPI client for @se-uulm/snowballr-api-client",
5
+ "author": "OpenAPI-Generator",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/SE-UUlm/snowballr-backend.git"
9
9
  },
10
10
  "license": "GPL-3.0-or-later",
11
11
  "main": "./dist/index.js",
12
- "typings": "./dist/index.d.ts",
12
+ "types": "./dist/index.d.ts",
13
13
  "module": "./dist/esm/index.js",
14
14
  "sideEffects": false,
15
15
  "scripts": {
@@ -18,11 +18,5 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "typescript": "^4.0 || ^5.0"
21
- },
22
- "files": [
23
- "dist",
24
- "README.md",
25
- "LICENSE",
26
- "CHANGELOG.md"
27
- ]
21
+ }
28
22
  }
@@ -0,0 +1,309 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * SnowballR API
5
+ * REST API for the SnowballR Application
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
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
+ import * as runtime from '../runtime';
16
+ import {
17
+ type CreateProjectRequest,
18
+ CreateProjectRequestFromJSON,
19
+ CreateProjectRequestToJSON,
20
+ } from '../models/CreateProjectRequest';
21
+ import {
22
+ type Project,
23
+ ProjectFromJSON,
24
+ ProjectToJSON,
25
+ } from '../models/Project';
26
+
27
+ export interface CreateProjectOperationRequest {
28
+ /**
29
+ *
30
+ */
31
+ createProjectRequest: CreateProjectRequest;
32
+ }
33
+
34
+ export interface DeleteProjectRequest {
35
+ /**
36
+ *
37
+ */
38
+ id: string;
39
+ }
40
+
41
+ export interface GetProjectRequest {
42
+ /**
43
+ *
44
+ */
45
+ id: string;
46
+ }
47
+
48
+ /**
49
+ * ProjectsControllerApi - interface
50
+ *
51
+ * @export
52
+ * @interface ProjectsControllerApiInterface
53
+ */
54
+ export interface ProjectsControllerApiInterface {
55
+ /**
56
+ * Creates request options for createProject without sending the request
57
+ * @param {CreateProjectRequest} createProjectRequest
58
+ * @throws {RequiredError}
59
+ * @memberof ProjectsControllerApiInterface
60
+ */
61
+ createProjectRequestOpts(requestParameters: CreateProjectOperationRequest): Promise<runtime.RequestOpts>;
62
+
63
+ /**
64
+ *
65
+ * @param {CreateProjectRequest} createProjectRequest
66
+ * @param {*} [options] Override http request option.
67
+ * @throws {RequiredError}
68
+ * @memberof ProjectsControllerApiInterface
69
+ */
70
+ createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
71
+
72
+ /**
73
+ */
74
+ createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
75
+
76
+ /**
77
+ * Creates request options for deleteProject without sending the request
78
+ * @param {string} id
79
+ * @throws {RequiredError}
80
+ * @memberof ProjectsControllerApiInterface
81
+ */
82
+ deleteProjectRequestOpts(requestParameters: DeleteProjectRequest): Promise<runtime.RequestOpts>;
83
+
84
+ /**
85
+ *
86
+ * @param {string} id
87
+ * @param {*} [options] Override http request option.
88
+ * @throws {RequiredError}
89
+ * @memberof ProjectsControllerApiInterface
90
+ */
91
+ deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
92
+
93
+ /**
94
+ */
95
+ deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
96
+
97
+ /**
98
+ * Creates request options for getAllProjects without sending the request
99
+ * @throws {RequiredError}
100
+ * @memberof ProjectsControllerApiInterface
101
+ */
102
+ getAllProjectsRequestOpts(): Promise<runtime.RequestOpts>;
103
+
104
+ /**
105
+ *
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ * @memberof ProjectsControllerApiInterface
109
+ */
110
+ getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>>;
111
+
112
+ /**
113
+ */
114
+ getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
115
+
116
+ /**
117
+ * Creates request options for getProject without sending the request
118
+ * @param {string} id
119
+ * @throws {RequiredError}
120
+ * @memberof ProjectsControllerApiInterface
121
+ */
122
+ getProjectRequestOpts(requestParameters: GetProjectRequest): Promise<runtime.RequestOpts>;
123
+
124
+ /**
125
+ *
126
+ * @param {string} id
127
+ * @param {*} [options] Override http request option.
128
+ * @throws {RequiredError}
129
+ * @memberof ProjectsControllerApiInterface
130
+ */
131
+ getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
132
+
133
+ /**
134
+ */
135
+ getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
136
+
137
+ }
138
+
139
+ /**
140
+ *
141
+ */
142
+ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsControllerApiInterface {
143
+
144
+ /**
145
+ * Creates request options for createProject without sending the request
146
+ */
147
+ async createProjectRequestOpts(requestParameters: CreateProjectOperationRequest): Promise<runtime.RequestOpts> {
148
+ if (requestParameters['createProjectRequest'] == null) {
149
+ throw new runtime.RequiredError(
150
+ 'createProjectRequest',
151
+ 'Required parameter "createProjectRequest" was null or undefined when calling createProject().'
152
+ );
153
+ }
154
+
155
+ const queryParameters: any = {};
156
+
157
+ const headerParameters: runtime.HTTPHeaders = {};
158
+
159
+ headerParameters['Content-Type'] = 'application/json';
160
+
161
+
162
+ let urlPath = `/projects`;
163
+
164
+ return {
165
+ path: urlPath,
166
+ method: 'POST',
167
+ headers: headerParameters,
168
+ query: queryParameters,
169
+ body: CreateProjectRequestToJSON(requestParameters['createProjectRequest']),
170
+ };
171
+ }
172
+
173
+ /**
174
+ */
175
+ async createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
176
+ const requestOptions = await this.createProjectRequestOpts(requestParameters);
177
+ const response = await this.request(requestOptions, initOverrides);
178
+
179
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
180
+ }
181
+
182
+ /**
183
+ */
184
+ async createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
185
+ const response = await this.createProjectRaw(requestParameters, initOverrides);
186
+ return await response.value();
187
+ }
188
+
189
+ /**
190
+ * Creates request options for deleteProject without sending the request
191
+ */
192
+ async deleteProjectRequestOpts(requestParameters: DeleteProjectRequest): Promise<runtime.RequestOpts> {
193
+ if (requestParameters['id'] == null) {
194
+ throw new runtime.RequiredError(
195
+ 'id',
196
+ 'Required parameter "id" was null or undefined when calling deleteProject().'
197
+ );
198
+ }
199
+
200
+ const queryParameters: any = {};
201
+
202
+ const headerParameters: runtime.HTTPHeaders = {};
203
+
204
+
205
+ let urlPath = `/projects/{id}`;
206
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
207
+
208
+ return {
209
+ path: urlPath,
210
+ method: 'DELETE',
211
+ headers: headerParameters,
212
+ query: queryParameters,
213
+ };
214
+ }
215
+
216
+ /**
217
+ */
218
+ async deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
219
+ const requestOptions = await this.deleteProjectRequestOpts(requestParameters);
220
+ const response = await this.request(requestOptions, initOverrides);
221
+
222
+ return new runtime.VoidApiResponse(response);
223
+ }
224
+
225
+ /**
226
+ */
227
+ async deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
228
+ await this.deleteProjectRaw(requestParameters, initOverrides);
229
+ }
230
+
231
+ /**
232
+ * Creates request options for getAllProjects without sending the request
233
+ */
234
+ async getAllProjectsRequestOpts(): Promise<runtime.RequestOpts> {
235
+ const queryParameters: any = {};
236
+
237
+ const headerParameters: runtime.HTTPHeaders = {};
238
+
239
+
240
+ let urlPath = `/projects`;
241
+
242
+ return {
243
+ path: urlPath,
244
+ method: 'GET',
245
+ headers: headerParameters,
246
+ query: queryParameters,
247
+ };
248
+ }
249
+
250
+ /**
251
+ */
252
+ async getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>> {
253
+ const requestOptions = await this.getAllProjectsRequestOpts();
254
+ const response = await this.request(requestOptions, initOverrides);
255
+
256
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectFromJSON));
257
+ }
258
+
259
+ /**
260
+ */
261
+ async getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>> {
262
+ const response = await this.getAllProjectsRaw(initOverrides);
263
+ return await response.value();
264
+ }
265
+
266
+ /**
267
+ * Creates request options for getProject without sending the request
268
+ */
269
+ async getProjectRequestOpts(requestParameters: GetProjectRequest): Promise<runtime.RequestOpts> {
270
+ if (requestParameters['id'] == null) {
271
+ throw new runtime.RequiredError(
272
+ 'id',
273
+ 'Required parameter "id" was null or undefined when calling getProject().'
274
+ );
275
+ }
276
+
277
+ const queryParameters: any = {};
278
+
279
+ const headerParameters: runtime.HTTPHeaders = {};
280
+
281
+
282
+ let urlPath = `/projects/{id}`;
283
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
284
+
285
+ return {
286
+ path: urlPath,
287
+ method: 'GET',
288
+ headers: headerParameters,
289
+ query: queryParameters,
290
+ };
291
+ }
292
+
293
+ /**
294
+ */
295
+ async getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
296
+ const requestOptions = await this.getProjectRequestOpts(requestParameters);
297
+ const response = await this.request(requestOptions, initOverrides);
298
+
299
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
300
+ }
301
+
302
+ /**
303
+ */
304
+ async getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
305
+ const response = await this.getProjectRaw(requestParameters, initOverrides);
306
+ return await response.value();
307
+ }
308
+
309
+ }
@@ -0,0 +1,3 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './ProjectsControllerApi';
package/src/index.ts ADDED
@@ -0,0 +1,5 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './runtime';
4
+ export * from './apis/index';
5
+ export * from './models/index';