@se-uulm/snowballr-api-client 0.2.1-alpha.5e7aba4 → 0.2.1-alpha.63fc963
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.
- package/README.md +23 -14
- package/dist/apis/AuthControllerApi.d.ts +181 -0
- package/dist/apis/AuthControllerApi.js +216 -0
- package/dist/apis/ProjectsControllerApi.d.ts +13 -13
- package/dist/apis/ProjectsControllerApi.js +8 -8
- package/dist/apis/UsersControllerApi.d.ts +60 -0
- package/dist/apis/UsersControllerApi.js +70 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/AuthControllerApi.d.ts +181 -0
- package/dist/esm/apis/AuthControllerApi.js +212 -0
- package/dist/esm/apis/ProjectsControllerApi.d.ts +13 -13
- package/dist/esm/apis/ProjectsControllerApi.js +8 -8
- package/dist/esm/apis/UsersControllerApi.d.ts +60 -0
- package/dist/esm/apis/UsersControllerApi.js +66 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/ChangePasswordRequest.d.ts +34 -0
- package/dist/esm/models/ChangePasswordRequest.js +43 -0
- package/dist/esm/models/LoginRequest.d.ts +34 -0
- package/dist/esm/models/LoginRequest.js +43 -0
- package/dist/{models/Project.d.ts → esm/models/ProjectResponse.d.ts} +13 -13
- package/dist/esm/models/{Project.js → ProjectResponse.js} +11 -11
- package/dist/esm/models/RegisterRequest.d.ts +42 -0
- package/dist/esm/models/RegisterRequest.js +47 -0
- package/dist/esm/models/index.d.ts +4 -1
- package/dist/esm/models/index.js +4 -1
- package/dist/models/ChangePasswordRequest.d.ts +34 -0
- package/dist/models/ChangePasswordRequest.js +50 -0
- package/dist/models/LoginRequest.d.ts +34 -0
- package/dist/models/LoginRequest.js +50 -0
- package/dist/{esm/models/Project.d.ts → models/ProjectResponse.d.ts} +13 -13
- package/dist/models/{Project.js → ProjectResponse.js} +17 -17
- package/dist/models/RegisterRequest.d.ts +42 -0
- package/dist/models/RegisterRequest.js +54 -0
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +4 -1
- package/package.json +10 -4
- package/.openapi-generator/FILES +0 -25
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
- package/docs/CreateProjectRequest.md +0 -34
- package/docs/DecisionMatrixPattern.md +0 -36
- package/docs/DecisionMatrixPatternEntry.md +0 -36
- package/docs/Project.md +0 -46
- package/docs/ProjectSettings.md +0 -42
- package/docs/ProjectsControllerApi.md +0 -264
- package/docs/ReviewDecisionMatrix.md +0 -36
- package/src/apis/ProjectsControllerApi.ts +0 -309
- package/src/apis/index.ts +0 -3
- package/src/index.ts +0 -5
- package/src/models/CreateProjectRequest.ts +0 -63
- package/src/models/DecisionMatrixPattern.ts +0 -90
- package/src/models/DecisionMatrixPatternEntry.ts +0 -81
- package/src/models/Project.ts +0 -121
- package/src/models/ProjectSettings.ts +0 -107
- package/src/models/ReviewDecisionMatrix.ts +0 -77
- package/src/models/index.ts +0 -8
- package/src/runtime.ts +0 -572
- package/tsconfig.esm.json +0 -7
- package/tsconfig.json +0 -16
|
@@ -1,264 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,309 +0,0 @@
|
|
|
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
|
-
}
|
package/src/apis/index.ts
DELETED
package/src/index.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
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 { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface CreateProjectRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface CreateProjectRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
name?: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Check if a given object implements the CreateProjectRequest interface.
|
|
30
|
-
*/
|
|
31
|
-
export function instanceOfCreateProjectRequest(value: object): value is CreateProjectRequest {
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export function CreateProjectRequestFromJSON(json: any): CreateProjectRequest {
|
|
36
|
-
return CreateProjectRequestFromJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function CreateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProjectRequest {
|
|
40
|
-
if (json == null) {
|
|
41
|
-
return json;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
|
|
45
|
-
'name': json['name'] == null ? undefined : json['name'],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function CreateProjectRequestToJSON(json: any): CreateProjectRequest {
|
|
50
|
-
return CreateProjectRequestToJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function CreateProjectRequestToJSONTyped(value?: CreateProjectRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
54
|
-
if (value == null) {
|
|
55
|
-
return value;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return {
|
|
59
|
-
|
|
60
|
-
'name': value['name'],
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
|