@se-uulm/snowballr-api-client 0.2.1-alpha.a708b37 → 0.2.1-alpha.ac8f100
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 +111 -28
- package/dist/apis/AuthControllerApi.d.ts +181 -0
- package/dist/apis/AuthControllerApi.js +216 -0
- package/dist/apis/ProjectsControllerApi.d.ts +66 -13
- package/dist/apis/ProjectsControllerApi.js +60 -23
- 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 +66 -13
- package/dist/esm/apis/ProjectsControllerApi.js +59 -22
- 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/CreateProjectRequest.d.ts +0 -2
- package/dist/esm/models/DecisionMatrixPattern.d.ts +0 -4
- package/dist/esm/models/DecisionMatrixPattern.js +1 -1
- package/dist/esm/models/DecisionMatrixPatternEntry.d.ts +0 -4
- package/dist/esm/models/DecisionMatrixPatternEntry.js +1 -1
- package/dist/esm/models/LoginRequest.d.ts +34 -0
- package/dist/esm/models/LoginRequest.js +43 -0
- package/dist/esm/models/ProjectResponse.d.ts +66 -0
- package/dist/esm/models/{Project.js → ProjectResponse.js} +13 -12
- package/dist/esm/models/ProjectSettings.d.ts +0 -10
- package/dist/esm/models/ProjectSettings.js +1 -1
- package/dist/esm/models/RegisterRequest.d.ts +42 -0
- package/dist/esm/models/RegisterRequest.js +47 -0
- package/dist/esm/models/ReviewDecisionMatrix.d.ts +0 -4
- package/dist/esm/models/index.d.ts +4 -1
- package/dist/esm/models/index.js +4 -1
- package/dist/esm/runtime.d.ts +34 -1
- package/dist/esm/runtime.js +130 -4
- package/dist/models/ChangePasswordRequest.d.ts +34 -0
- package/dist/models/ChangePasswordRequest.js +50 -0
- package/dist/models/CreateProjectRequest.d.ts +0 -2
- package/dist/models/DecisionMatrixPattern.d.ts +0 -4
- package/dist/models/DecisionMatrixPattern.js +1 -1
- package/dist/models/DecisionMatrixPatternEntry.d.ts +0 -4
- package/dist/models/DecisionMatrixPatternEntry.js +1 -1
- package/dist/models/LoginRequest.d.ts +34 -0
- package/dist/models/LoginRequest.js +50 -0
- package/dist/models/ProjectResponse.d.ts +66 -0
- package/dist/models/{Project.js → ProjectResponse.js} +19 -18
- package/dist/models/ProjectSettings.d.ts +0 -10
- package/dist/models/ProjectSettings.js +1 -1
- package/dist/models/RegisterRequest.d.ts +42 -0
- package/dist/models/RegisterRequest.js +54 -0
- package/dist/models/ReviewDecisionMatrix.d.ts +0 -4
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +4 -1
- package/dist/runtime.d.ts +34 -1
- package/dist/runtime.js +136 -4
- package/package.json +11 -5
- package/.openapi-generator/FILES +0 -18
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
- package/dist/esm/models/Project.d.ts +0 -80
- package/dist/models/Project.d.ts +0 -80
- package/src/apis/ProjectsControllerApi.ts +0 -238
- package/src/apis/index.ts +0 -3
- package/src/index.ts +0 -5
- package/src/models/CreateProjectRequest.ts +0 -65
- package/src/models/DecisionMatrixPattern.ts +0 -94
- package/src/models/DecisionMatrixPatternEntry.ts +0 -85
- package/src/models/Project.ts +0 -135
- package/src/models/ProjectSettings.ts +0 -117
- package/src/models/ReviewDecisionMatrix.ts +0 -81
- package/src/models/index.ts +0 -8
- package/src/runtime.ts +0 -432
- package/tsconfig.esm.json +0 -7
- package/tsconfig.json +0 -16
|
@@ -0,0 +1,212 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { ChangePasswordRequestToJSON, } from '../models/ChangePasswordRequest';
|
|
25
|
+
import { LoginRequestToJSON, } from '../models/LoginRequest';
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export class AuthControllerApi extends runtime.BaseAPI {
|
|
30
|
+
/**
|
|
31
|
+
* Creates request options for changePassword without sending the request
|
|
32
|
+
*/
|
|
33
|
+
changePasswordRequestOpts(requestParameters) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (requestParameters['changePasswordRequest'] == null) {
|
|
36
|
+
throw new runtime.RequiredError('changePasswordRequest', 'Required parameter "changePasswordRequest" was null or undefined when calling changePassword().');
|
|
37
|
+
}
|
|
38
|
+
const queryParameters = {};
|
|
39
|
+
const headerParameters = {};
|
|
40
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
41
|
+
let urlPath = `/api/v1/auth/change-password`;
|
|
42
|
+
return {
|
|
43
|
+
path: urlPath,
|
|
44
|
+
method: 'POST',
|
|
45
|
+
headers: headerParameters,
|
|
46
|
+
query: queryParameters,
|
|
47
|
+
body: ChangePasswordRequestToJSON(requestParameters['changePasswordRequest']),
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
*/
|
|
53
|
+
changePasswordRaw(requestParameters, initOverrides) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
const requestOptions = yield this.changePasswordRequestOpts(requestParameters);
|
|
56
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
57
|
+
return new runtime.VoidApiResponse(response);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
*/
|
|
62
|
+
changePassword(requestParameters, initOverrides) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
yield this.changePasswordRaw(requestParameters, initOverrides);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Creates request options for getAuthStatus without sending the request
|
|
69
|
+
*/
|
|
70
|
+
getAuthStatusRequestOpts() {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
const queryParameters = {};
|
|
73
|
+
const headerParameters = {};
|
|
74
|
+
let urlPath = `/api/v1/auth/status`;
|
|
75
|
+
return {
|
|
76
|
+
path: urlPath,
|
|
77
|
+
method: 'GET',
|
|
78
|
+
headers: headerParameters,
|
|
79
|
+
query: queryParameters,
|
|
80
|
+
};
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
*/
|
|
85
|
+
getAuthStatusRaw(initOverrides) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
const requestOptions = yield this.getAuthStatusRequestOpts();
|
|
88
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
89
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
90
|
+
return new runtime.JSONApiResponse(response);
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
return new runtime.TextApiResponse(response);
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
*/
|
|
99
|
+
getAuthStatus(initOverrides) {
|
|
100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
+
const response = yield this.getAuthStatusRaw(initOverrides);
|
|
102
|
+
return yield response.value();
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Creates request options for login without sending the request
|
|
107
|
+
*/
|
|
108
|
+
loginRequestOpts(requestParameters) {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
if (requestParameters['loginRequest'] == null) {
|
|
111
|
+
throw new runtime.RequiredError('loginRequest', 'Required parameter "loginRequest" was null or undefined when calling login().');
|
|
112
|
+
}
|
|
113
|
+
const queryParameters = {};
|
|
114
|
+
const headerParameters = {};
|
|
115
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
116
|
+
let urlPath = `/api/v1/auth/login`;
|
|
117
|
+
return {
|
|
118
|
+
path: urlPath,
|
|
119
|
+
method: 'POST',
|
|
120
|
+
headers: headerParameters,
|
|
121
|
+
query: queryParameters,
|
|
122
|
+
body: LoginRequestToJSON(requestParameters['loginRequest']),
|
|
123
|
+
};
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
*/
|
|
128
|
+
loginRaw(requestParameters, initOverrides) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
const requestOptions = yield this.loginRequestOpts(requestParameters);
|
|
131
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
132
|
+
return new runtime.VoidApiResponse(response);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
*/
|
|
137
|
+
login(requestParameters, initOverrides) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
yield this.loginRaw(requestParameters, initOverrides);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Creates request options for logout without sending the request
|
|
144
|
+
*/
|
|
145
|
+
logoutRequestOpts() {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
const queryParameters = {};
|
|
148
|
+
const headerParameters = {};
|
|
149
|
+
let urlPath = `/api/v1/auth/logout`;
|
|
150
|
+
return {
|
|
151
|
+
path: urlPath,
|
|
152
|
+
method: 'POST',
|
|
153
|
+
headers: headerParameters,
|
|
154
|
+
query: queryParameters,
|
|
155
|
+
};
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
*/
|
|
160
|
+
logoutRaw(initOverrides) {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
const requestOptions = yield this.logoutRequestOpts();
|
|
163
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
164
|
+
return new runtime.VoidApiResponse(response);
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
*/
|
|
169
|
+
logout(initOverrides) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
yield this.logoutRaw(initOverrides);
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Creates request options for verifyEmail without sending the request
|
|
176
|
+
*/
|
|
177
|
+
verifyEmailRequestOpts(requestParameters) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
+
if (requestParameters['token'] == null) {
|
|
180
|
+
throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling verifyEmail().');
|
|
181
|
+
}
|
|
182
|
+
const queryParameters = {};
|
|
183
|
+
if (requestParameters['token'] != null) {
|
|
184
|
+
queryParameters['token'] = requestParameters['token'];
|
|
185
|
+
}
|
|
186
|
+
const headerParameters = {};
|
|
187
|
+
let urlPath = `/api/v1/auth/verify-email`;
|
|
188
|
+
return {
|
|
189
|
+
path: urlPath,
|
|
190
|
+
method: 'POST',
|
|
191
|
+
headers: headerParameters,
|
|
192
|
+
query: queryParameters,
|
|
193
|
+
};
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
*/
|
|
198
|
+
verifyEmailRaw(requestParameters, initOverrides) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
+
const requestOptions = yield this.verifyEmailRequestOpts(requestParameters);
|
|
201
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
202
|
+
return new runtime.VoidApiResponse(response);
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
*/
|
|
207
|
+
verifyEmail(requestParameters, initOverrides) {
|
|
208
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
209
|
+
yield this.verifyEmailRaw(requestParameters, initOverrides);
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
}
|
|
@@ -10,14 +10,24 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type CreateProjectRequest } from '../models/CreateProjectRequest';
|
|
14
|
+
import { type ProjectResponse } from '../models/ProjectResponse';
|
|
14
15
|
export interface CreateProjectOperationRequest {
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
15
19
|
createProjectRequest: CreateProjectRequest;
|
|
16
20
|
}
|
|
17
21
|
export interface DeleteProjectRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
18
25
|
id: string;
|
|
19
26
|
}
|
|
20
27
|
export interface GetProjectRequest {
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
21
31
|
id: string;
|
|
22
32
|
}
|
|
23
33
|
/**
|
|
@@ -27,6 +37,13 @@ export interface GetProjectRequest {
|
|
|
27
37
|
* @interface ProjectsControllerApiInterface
|
|
28
38
|
*/
|
|
29
39
|
export interface ProjectsControllerApiInterface {
|
|
40
|
+
/**
|
|
41
|
+
* Creates request options for createProject without sending the request
|
|
42
|
+
* @param {CreateProjectRequest} createProjectRequest
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
* @memberof ProjectsControllerApiInterface
|
|
45
|
+
*/
|
|
46
|
+
createProjectRequestOpts(requestParameters: CreateProjectOperationRequest): Promise<runtime.RequestOpts>;
|
|
30
47
|
/**
|
|
31
48
|
*
|
|
32
49
|
* @param {CreateProjectRequest} createProjectRequest
|
|
@@ -34,10 +51,17 @@ export interface ProjectsControllerApiInterface {
|
|
|
34
51
|
* @throws {RequiredError}
|
|
35
52
|
* @memberof ProjectsControllerApiInterface
|
|
36
53
|
*/
|
|
37
|
-
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
54
|
+
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
|
|
38
55
|
/**
|
|
39
56
|
*/
|
|
40
|
-
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
57
|
+
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Creates request options for deleteProject without sending the request
|
|
60
|
+
* @param {string} id
|
|
61
|
+
* @throws {RequiredError}
|
|
62
|
+
* @memberof ProjectsControllerApiInterface
|
|
63
|
+
*/
|
|
64
|
+
deleteProjectRequestOpts(requestParameters: DeleteProjectRequest): Promise<runtime.RequestOpts>;
|
|
41
65
|
/**
|
|
42
66
|
*
|
|
43
67
|
* @param {string} id
|
|
@@ -49,16 +73,29 @@ export interface ProjectsControllerApiInterface {
|
|
|
49
73
|
/**
|
|
50
74
|
*/
|
|
51
75
|
deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Creates request options for getAllProjects without sending the request
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
* @memberof ProjectsControllerApiInterface
|
|
80
|
+
*/
|
|
81
|
+
getAllProjectsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
52
82
|
/**
|
|
53
83
|
*
|
|
54
84
|
* @param {*} [options] Override http request option.
|
|
55
85
|
* @throws {RequiredError}
|
|
56
86
|
* @memberof ProjectsControllerApiInterface
|
|
57
87
|
*/
|
|
58
|
-
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<
|
|
88
|
+
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectResponse>>>;
|
|
59
89
|
/**
|
|
60
90
|
*/
|
|
61
|
-
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<
|
|
91
|
+
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectResponse>>;
|
|
92
|
+
/**
|
|
93
|
+
* Creates request options for getProject without sending the request
|
|
94
|
+
* @param {string} id
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
* @memberof ProjectsControllerApiInterface
|
|
97
|
+
*/
|
|
98
|
+
getProjectRequestOpts(requestParameters: GetProjectRequest): Promise<runtime.RequestOpts>;
|
|
62
99
|
/**
|
|
63
100
|
*
|
|
64
101
|
* @param {string} id
|
|
@@ -66,37 +103,53 @@ export interface ProjectsControllerApiInterface {
|
|
|
66
103
|
* @throws {RequiredError}
|
|
67
104
|
* @memberof ProjectsControllerApiInterface
|
|
68
105
|
*/
|
|
69
|
-
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
106
|
+
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
|
|
70
107
|
/**
|
|
71
108
|
*/
|
|
72
|
-
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
109
|
+
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
|
|
73
110
|
}
|
|
74
111
|
/**
|
|
75
112
|
*
|
|
76
113
|
*/
|
|
77
114
|
export declare class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsControllerApiInterface {
|
|
115
|
+
/**
|
|
116
|
+
* Creates request options for createProject without sending the request
|
|
117
|
+
*/
|
|
118
|
+
createProjectRequestOpts(requestParameters: CreateProjectOperationRequest): Promise<runtime.RequestOpts>;
|
|
119
|
+
/**
|
|
120
|
+
*/
|
|
121
|
+
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
|
|
78
122
|
/**
|
|
79
123
|
*/
|
|
80
|
-
|
|
124
|
+
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
|
|
81
125
|
/**
|
|
126
|
+
* Creates request options for deleteProject without sending the request
|
|
82
127
|
*/
|
|
83
|
-
|
|
128
|
+
deleteProjectRequestOpts(requestParameters: DeleteProjectRequest): Promise<runtime.RequestOpts>;
|
|
84
129
|
/**
|
|
85
130
|
*/
|
|
86
131
|
deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
87
132
|
/**
|
|
88
133
|
*/
|
|
89
134
|
deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
135
|
+
/**
|
|
136
|
+
* Creates request options for getAllProjects without sending the request
|
|
137
|
+
*/
|
|
138
|
+
getAllProjectsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
139
|
+
/**
|
|
140
|
+
*/
|
|
141
|
+
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectResponse>>>;
|
|
90
142
|
/**
|
|
91
143
|
*/
|
|
92
|
-
|
|
144
|
+
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectResponse>>;
|
|
93
145
|
/**
|
|
146
|
+
* Creates request options for getProject without sending the request
|
|
94
147
|
*/
|
|
95
|
-
|
|
148
|
+
getProjectRequestOpts(requestParameters: GetProjectRequest): Promise<runtime.RequestOpts>;
|
|
96
149
|
/**
|
|
97
150
|
*/
|
|
98
|
-
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
151
|
+
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
|
|
99
152
|
/**
|
|
100
153
|
*/
|
|
101
|
-
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
154
|
+
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
|
|
102
155
|
}
|
|
@@ -21,14 +21,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { CreateProjectRequestToJSON,
|
|
24
|
+
import { CreateProjectRequestToJSON, } from '../models/CreateProjectRequest';
|
|
25
|
+
import { ProjectResponseFromJSON, } from '../models/ProjectResponse';
|
|
25
26
|
/**
|
|
26
27
|
*
|
|
27
28
|
*/
|
|
28
29
|
export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
29
30
|
/**
|
|
31
|
+
* Creates request options for createProject without sending the request
|
|
30
32
|
*/
|
|
31
|
-
|
|
33
|
+
createProjectRequestOpts(requestParameters) {
|
|
32
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
35
|
if (requestParameters['createProjectRequest'] == null) {
|
|
34
36
|
throw new runtime.RequiredError('createProjectRequest', 'Required parameter "createProjectRequest" was null or undefined when calling createProject().');
|
|
@@ -36,15 +38,23 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
36
38
|
const queryParameters = {};
|
|
37
39
|
const headerParameters = {};
|
|
38
40
|
headerParameters['Content-Type'] = 'application/json';
|
|
39
|
-
let urlPath = `/projects`;
|
|
40
|
-
|
|
41
|
+
let urlPath = `/api/v1/projects`;
|
|
42
|
+
return {
|
|
41
43
|
path: urlPath,
|
|
42
44
|
method: 'POST',
|
|
43
45
|
headers: headerParameters,
|
|
44
46
|
query: queryParameters,
|
|
45
47
|
body: CreateProjectRequestToJSON(requestParameters['createProjectRequest']),
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
*/
|
|
53
|
+
createProjectRaw(requestParameters, initOverrides) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
const requestOptions = yield this.createProjectRequestOpts(requestParameters);
|
|
56
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
57
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectResponseFromJSON(jsonValue));
|
|
48
58
|
});
|
|
49
59
|
}
|
|
50
60
|
/**
|
|
@@ -56,22 +66,31 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
56
66
|
});
|
|
57
67
|
}
|
|
58
68
|
/**
|
|
69
|
+
* Creates request options for deleteProject without sending the request
|
|
59
70
|
*/
|
|
60
|
-
|
|
71
|
+
deleteProjectRequestOpts(requestParameters) {
|
|
61
72
|
return __awaiter(this, void 0, void 0, function* () {
|
|
62
73
|
if (requestParameters['id'] == null) {
|
|
63
74
|
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteProject().');
|
|
64
75
|
}
|
|
65
76
|
const queryParameters = {};
|
|
66
77
|
const headerParameters = {};
|
|
67
|
-
let urlPath = `/projects/{id}`;
|
|
68
|
-
urlPath = urlPath.replace(
|
|
69
|
-
|
|
78
|
+
let urlPath = `/api/v1/projects/{id}`;
|
|
79
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
80
|
+
return {
|
|
70
81
|
path: urlPath,
|
|
71
82
|
method: 'DELETE',
|
|
72
83
|
headers: headerParameters,
|
|
73
84
|
query: queryParameters,
|
|
74
|
-
}
|
|
85
|
+
};
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
*/
|
|
90
|
+
deleteProjectRaw(requestParameters, initOverrides) {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
const requestOptions = yield this.deleteProjectRequestOpts(requestParameters);
|
|
93
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
75
94
|
return new runtime.VoidApiResponse(response);
|
|
76
95
|
});
|
|
77
96
|
}
|
|
@@ -83,19 +102,28 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
83
102
|
});
|
|
84
103
|
}
|
|
85
104
|
/**
|
|
105
|
+
* Creates request options for getAllProjects without sending the request
|
|
86
106
|
*/
|
|
87
|
-
|
|
107
|
+
getAllProjectsRequestOpts() {
|
|
88
108
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
109
|
const queryParameters = {};
|
|
90
110
|
const headerParameters = {};
|
|
91
|
-
let urlPath = `/projects`;
|
|
92
|
-
|
|
111
|
+
let urlPath = `/api/v1/projects`;
|
|
112
|
+
return {
|
|
93
113
|
path: urlPath,
|
|
94
114
|
method: 'GET',
|
|
95
115
|
headers: headerParameters,
|
|
96
116
|
query: queryParameters,
|
|
97
|
-
}
|
|
98
|
-
|
|
117
|
+
};
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
*/
|
|
122
|
+
getAllProjectsRaw(initOverrides) {
|
|
123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
+
const requestOptions = yield this.getAllProjectsRequestOpts();
|
|
125
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
126
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectResponseFromJSON));
|
|
99
127
|
});
|
|
100
128
|
}
|
|
101
129
|
/**
|
|
@@ -107,23 +135,32 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
107
135
|
});
|
|
108
136
|
}
|
|
109
137
|
/**
|
|
138
|
+
* Creates request options for getProject without sending the request
|
|
110
139
|
*/
|
|
111
|
-
|
|
140
|
+
getProjectRequestOpts(requestParameters) {
|
|
112
141
|
return __awaiter(this, void 0, void 0, function* () {
|
|
113
142
|
if (requestParameters['id'] == null) {
|
|
114
143
|
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getProject().');
|
|
115
144
|
}
|
|
116
145
|
const queryParameters = {};
|
|
117
146
|
const headerParameters = {};
|
|
118
|
-
let urlPath = `/projects/{id}`;
|
|
119
|
-
urlPath = urlPath.replace(
|
|
120
|
-
|
|
147
|
+
let urlPath = `/api/v1/projects/{id}`;
|
|
148
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
149
|
+
return {
|
|
121
150
|
path: urlPath,
|
|
122
151
|
method: 'GET',
|
|
123
152
|
headers: headerParameters,
|
|
124
153
|
query: queryParameters,
|
|
125
|
-
}
|
|
126
|
-
|
|
154
|
+
};
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
*/
|
|
159
|
+
getProjectRaw(requestParameters, initOverrides) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
const requestOptions = yield this.getProjectRequestOpts(requestParameters);
|
|
162
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
163
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectResponseFromJSON(jsonValue));
|
|
127
164
|
});
|
|
128
165
|
}
|
|
129
166
|
/**
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SnowballR API
|
|
3
|
+
* REST API for the SnowballR Application
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import { type RegisterRequest } from '../models/RegisterRequest';
|
|
14
|
+
export interface RegisterOperationRequest {
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
registerRequest: RegisterRequest;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* UsersControllerApi - interface
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
* @interface UsersControllerApiInterface
|
|
25
|
+
*/
|
|
26
|
+
export interface UsersControllerApiInterface {
|
|
27
|
+
/**
|
|
28
|
+
* Creates request options for register without sending the request
|
|
29
|
+
* @param {RegisterRequest} registerRequest
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
* @memberof UsersControllerApiInterface
|
|
32
|
+
*/
|
|
33
|
+
registerRequestOpts(requestParameters: RegisterOperationRequest): Promise<runtime.RequestOpts>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @param {RegisterRequest} registerRequest
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
* @memberof UsersControllerApiInterface
|
|
40
|
+
*/
|
|
41
|
+
registerRaw(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
42
|
+
/**
|
|
43
|
+
*/
|
|
44
|
+
register(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
export declare class UsersControllerApi extends runtime.BaseAPI implements UsersControllerApiInterface {
|
|
50
|
+
/**
|
|
51
|
+
* Creates request options for register without sending the request
|
|
52
|
+
*/
|
|
53
|
+
registerRequestOpts(requestParameters: RegisterOperationRequest): Promise<runtime.RequestOpts>;
|
|
54
|
+
/**
|
|
55
|
+
*/
|
|
56
|
+
registerRaw(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
57
|
+
/**
|
|
58
|
+
*/
|
|
59
|
+
register(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { RegisterRequestToJSON, } from '../models/RegisterRequest';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class UsersControllerApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates request options for register without sending the request
|
|
31
|
+
*/
|
|
32
|
+
registerRequestOpts(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['registerRequest'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('registerRequest', 'Required parameter "registerRequest" was null or undefined when calling register().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
40
|
+
let urlPath = `/api/v1/users`;
|
|
41
|
+
return {
|
|
42
|
+
path: urlPath,
|
|
43
|
+
method: 'POST',
|
|
44
|
+
headers: headerParameters,
|
|
45
|
+
query: queryParameters,
|
|
46
|
+
body: RegisterRequestToJSON(requestParameters['registerRequest']),
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
*/
|
|
52
|
+
registerRaw(requestParameters, initOverrides) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const requestOptions = yield this.registerRequestOpts(requestParameters);
|
|
55
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
56
|
+
return new runtime.VoidApiResponse(response);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
*/
|
|
61
|
+
register(requestParameters, initOverrides) {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
yield this.registerRaw(requestParameters, initOverrides);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
package/dist/esm/apis/index.d.ts
CHANGED