@se-uulm/snowballr-api-client 0.2.0 → 0.2.1-alpha.267f00c
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 +2 -2
- package/dist/apis/AuthControllerApi.d.ts +118 -0
- package/dist/apis/AuthControllerApi.js +170 -0
- package/dist/apis/ProjectsControllerApi.d.ts +13 -13
- package/dist/apis/ProjectsControllerApi.js +7 -7
- package/dist/apis/UsersControllerApi.d.ts +46 -0
- package/dist/apis/UsersControllerApi.js +61 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/AuthControllerApi.d.ts +118 -0
- package/dist/esm/apis/AuthControllerApi.js +166 -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 +46 -0
- package/dist/esm/apis/UsersControllerApi.js +57 -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 +38 -0
- package/dist/esm/models/ChangePasswordRequest.js +43 -0
- package/dist/esm/models/LoginRequest.d.ts +38 -0
- package/dist/esm/models/LoginRequest.js +43 -0
- package/dist/{models/Project.d.ts → esm/models/ProjectResponse.d.ts} +25 -25
- package/dist/esm/models/{Project.js → ProjectResponse.js} +10 -10
- package/dist/esm/models/RegisterRequest.d.ts +50 -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 +38 -0
- package/dist/models/ChangePasswordRequest.js +50 -0
- package/dist/models/LoginRequest.d.ts +38 -0
- package/dist/models/LoginRequest.js +50 -0
- package/dist/{esm/models/Project.d.ts → models/ProjectResponse.d.ts} +25 -25
- package/dist/models/{Project.js → ProjectResponse.js} +16 -16
- package/dist/models/RegisterRequest.d.ts +50 -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 -17
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
- 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 -177
- package/src/models/ReviewDecisionMatrix.ts +0 -81
- package/src/models/index.ts +0 -7
- package/src/runtime.ts +0 -432
- package/tsconfig.esm.json +0 -7
- package/tsconfig.json +0 -16
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @se-uulm/snowballr-api-client@0.2.
|
|
1
|
+
## @se-uulm/snowballr-api-client@0.2.1-alpha.267f00c
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @se-uulm/snowballr-api-client@0.2.
|
|
39
|
+
npm install @se-uulm/snowballr-api-client@0.2.1-alpha.267f00c --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -0,0 +1,118 @@
|
|
|
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 { ChangePasswordRequest, LoginRequest } from '../models/index';
|
|
14
|
+
export interface ChangePasswordOperationRequest {
|
|
15
|
+
changePasswordRequest: ChangePasswordRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface LoginOperationRequest {
|
|
18
|
+
loginRequest: LoginRequest;
|
|
19
|
+
}
|
|
20
|
+
export interface VerifyEmailRequest {
|
|
21
|
+
token: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* AuthControllerApi - interface
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AuthControllerApiInterface
|
|
28
|
+
*/
|
|
29
|
+
export interface AuthControllerApiInterface {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @param {ChangePasswordRequest} changePasswordRequest
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
* @memberof AuthControllerApiInterface
|
|
36
|
+
*/
|
|
37
|
+
changePasswordRaw(requestParameters: ChangePasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
38
|
+
/**
|
|
39
|
+
*/
|
|
40
|
+
changePassword(requestParameters: ChangePasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
* @memberof AuthControllerApiInterface
|
|
46
|
+
*/
|
|
47
|
+
getAuthStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
48
|
+
/**
|
|
49
|
+
*/
|
|
50
|
+
getAuthStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @param {LoginRequest} loginRequest
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
* @memberof AuthControllerApiInterface
|
|
57
|
+
*/
|
|
58
|
+
loginRaw(requestParameters: LoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
59
|
+
/**
|
|
60
|
+
*/
|
|
61
|
+
login(requestParameters: LoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
* @memberof AuthControllerApiInterface
|
|
67
|
+
*/
|
|
68
|
+
logoutRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
69
|
+
/**
|
|
70
|
+
*/
|
|
71
|
+
logout(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @param {string} token
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
* @memberof AuthControllerApiInterface
|
|
78
|
+
*/
|
|
79
|
+
verifyEmailRaw(requestParameters: VerifyEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
80
|
+
/**
|
|
81
|
+
*/
|
|
82
|
+
verifyEmail(requestParameters: VerifyEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
export declare class AuthControllerApi extends runtime.BaseAPI implements AuthControllerApiInterface {
|
|
88
|
+
/**
|
|
89
|
+
*/
|
|
90
|
+
changePasswordRaw(requestParameters: ChangePasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
91
|
+
/**
|
|
92
|
+
*/
|
|
93
|
+
changePassword(requestParameters: ChangePasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
*/
|
|
96
|
+
getAuthStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
97
|
+
/**
|
|
98
|
+
*/
|
|
99
|
+
getAuthStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
100
|
+
/**
|
|
101
|
+
*/
|
|
102
|
+
loginRaw(requestParameters: LoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
103
|
+
/**
|
|
104
|
+
*/
|
|
105
|
+
login(requestParameters: LoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
106
|
+
/**
|
|
107
|
+
*/
|
|
108
|
+
logoutRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
109
|
+
/**
|
|
110
|
+
*/
|
|
111
|
+
logout(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
112
|
+
/**
|
|
113
|
+
*/
|
|
114
|
+
verifyEmailRaw(requestParameters: VerifyEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
115
|
+
/**
|
|
116
|
+
*/
|
|
117
|
+
verifyEmail(requestParameters: VerifyEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
118
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* SnowballR API
|
|
6
|
+
* REST API for the SnowballR Application
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.AuthControllerApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class AuthControllerApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
*/
|
|
34
|
+
changePasswordRaw(requestParameters, initOverrides) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
if (requestParameters['changePasswordRequest'] == null) {
|
|
37
|
+
throw new runtime.RequiredError('changePasswordRequest', 'Required parameter "changePasswordRequest" was null or undefined when calling changePassword().');
|
|
38
|
+
}
|
|
39
|
+
const queryParameters = {};
|
|
40
|
+
const headerParameters = {};
|
|
41
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
42
|
+
let urlPath = `/api/v1/auth/change-password`;
|
|
43
|
+
const response = yield this.request({
|
|
44
|
+
path: urlPath,
|
|
45
|
+
method: 'POST',
|
|
46
|
+
headers: headerParameters,
|
|
47
|
+
query: queryParameters,
|
|
48
|
+
body: (0, index_1.ChangePasswordRequestToJSON)(requestParameters['changePasswordRequest']),
|
|
49
|
+
}, initOverrides);
|
|
50
|
+
return new runtime.VoidApiResponse(response);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
*/
|
|
55
|
+
changePassword(requestParameters, initOverrides) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
yield this.changePasswordRaw(requestParameters, initOverrides);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
*/
|
|
62
|
+
getAuthStatusRaw(initOverrides) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const queryParameters = {};
|
|
65
|
+
const headerParameters = {};
|
|
66
|
+
let urlPath = `/api/v1/auth/status`;
|
|
67
|
+
const response = yield this.request({
|
|
68
|
+
path: urlPath,
|
|
69
|
+
method: 'GET',
|
|
70
|
+
headers: headerParameters,
|
|
71
|
+
query: queryParameters,
|
|
72
|
+
}, initOverrides);
|
|
73
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
74
|
+
return new runtime.JSONApiResponse(response);
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
return new runtime.TextApiResponse(response);
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
*/
|
|
83
|
+
getAuthStatus(initOverrides) {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
const response = yield this.getAuthStatusRaw(initOverrides);
|
|
86
|
+
return yield response.value();
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
*/
|
|
91
|
+
loginRaw(requestParameters, initOverrides) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
if (requestParameters['loginRequest'] == null) {
|
|
94
|
+
throw new runtime.RequiredError('loginRequest', 'Required parameter "loginRequest" was null or undefined when calling login().');
|
|
95
|
+
}
|
|
96
|
+
const queryParameters = {};
|
|
97
|
+
const headerParameters = {};
|
|
98
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
99
|
+
let urlPath = `/api/v1/auth/login`;
|
|
100
|
+
const response = yield this.request({
|
|
101
|
+
path: urlPath,
|
|
102
|
+
method: 'POST',
|
|
103
|
+
headers: headerParameters,
|
|
104
|
+
query: queryParameters,
|
|
105
|
+
body: (0, index_1.LoginRequestToJSON)(requestParameters['loginRequest']),
|
|
106
|
+
}, initOverrides);
|
|
107
|
+
return new runtime.VoidApiResponse(response);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
*/
|
|
112
|
+
login(requestParameters, initOverrides) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
yield this.loginRaw(requestParameters, initOverrides);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
*/
|
|
119
|
+
logoutRaw(initOverrides) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
const queryParameters = {};
|
|
122
|
+
const headerParameters = {};
|
|
123
|
+
let urlPath = `/api/v1/auth/logout`;
|
|
124
|
+
const response = yield this.request({
|
|
125
|
+
path: urlPath,
|
|
126
|
+
method: 'POST',
|
|
127
|
+
headers: headerParameters,
|
|
128
|
+
query: queryParameters,
|
|
129
|
+
}, initOverrides);
|
|
130
|
+
return new runtime.VoidApiResponse(response);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
*/
|
|
135
|
+
logout(initOverrides) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
yield this.logoutRaw(initOverrides);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
*/
|
|
142
|
+
verifyEmailRaw(requestParameters, initOverrides) {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
if (requestParameters['token'] == null) {
|
|
145
|
+
throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling verifyEmail().');
|
|
146
|
+
}
|
|
147
|
+
const queryParameters = {};
|
|
148
|
+
if (requestParameters['token'] != null) {
|
|
149
|
+
queryParameters['token'] = requestParameters['token'];
|
|
150
|
+
}
|
|
151
|
+
const headerParameters = {};
|
|
152
|
+
let urlPath = `/api/v1/auth/verify-email`;
|
|
153
|
+
const response = yield this.request({
|
|
154
|
+
path: urlPath,
|
|
155
|
+
method: 'POST',
|
|
156
|
+
headers: headerParameters,
|
|
157
|
+
query: queryParameters,
|
|
158
|
+
}, initOverrides);
|
|
159
|
+
return new runtime.VoidApiResponse(response);
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
*/
|
|
164
|
+
verifyEmail(requestParameters, initOverrides) {
|
|
165
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
166
|
+
yield this.verifyEmailRaw(requestParameters, initOverrides);
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
exports.AuthControllerApi = AuthControllerApi;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateProjectRequest,
|
|
13
|
+
import type { CreateProjectRequest, ProjectResponse } from '../models/index';
|
|
14
14
|
export interface CreateProjectOperationRequest {
|
|
15
15
|
createProjectRequest: CreateProjectRequest;
|
|
16
16
|
}
|
|
@@ -34,10 +34,10 @@ export interface ProjectsControllerApiInterface {
|
|
|
34
34
|
* @throws {RequiredError}
|
|
35
35
|
* @memberof ProjectsControllerApiInterface
|
|
36
36
|
*/
|
|
37
|
-
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
37
|
+
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
|
|
38
38
|
/**
|
|
39
39
|
*/
|
|
40
|
-
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
40
|
+
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @param {string} id
|
|
@@ -55,10 +55,10 @@ export interface ProjectsControllerApiInterface {
|
|
|
55
55
|
* @throws {RequiredError}
|
|
56
56
|
* @memberof ProjectsControllerApiInterface
|
|
57
57
|
*/
|
|
58
|
-
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<
|
|
58
|
+
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectResponse>>>;
|
|
59
59
|
/**
|
|
60
60
|
*/
|
|
61
|
-
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<
|
|
61
|
+
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectResponse>>;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
64
|
* @param {string} id
|
|
@@ -66,10 +66,10 @@ export interface ProjectsControllerApiInterface {
|
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
* @memberof ProjectsControllerApiInterface
|
|
68
68
|
*/
|
|
69
|
-
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
69
|
+
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
|
|
70
70
|
/**
|
|
71
71
|
*/
|
|
72
|
-
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
72
|
+
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
@@ -77,10 +77,10 @@ export interface ProjectsControllerApiInterface {
|
|
|
77
77
|
export declare class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsControllerApiInterface {
|
|
78
78
|
/**
|
|
79
79
|
*/
|
|
80
|
-
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
80
|
+
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
|
|
81
81
|
/**
|
|
82
82
|
*/
|
|
83
|
-
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
83
|
+
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
|
|
84
84
|
/**
|
|
85
85
|
*/
|
|
86
86
|
deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
@@ -89,14 +89,14 @@ export declare class ProjectsControllerApi extends runtime.BaseAPI implements Pr
|
|
|
89
89
|
deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
90
90
|
/**
|
|
91
91
|
*/
|
|
92
|
-
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<
|
|
92
|
+
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectResponse>>>;
|
|
93
93
|
/**
|
|
94
94
|
*/
|
|
95
|
-
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<
|
|
95
|
+
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectResponse>>;
|
|
96
96
|
/**
|
|
97
97
|
*/
|
|
98
|
-
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
98
|
+
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
|
|
99
99
|
/**
|
|
100
100
|
*/
|
|
101
|
-
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
101
|
+
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
|
|
102
102
|
}
|
|
@@ -39,7 +39,7 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
39
39
|
const queryParameters = {};
|
|
40
40
|
const headerParameters = {};
|
|
41
41
|
headerParameters['Content-Type'] = 'application/json';
|
|
42
|
-
let urlPath = `/projects`;
|
|
42
|
+
let urlPath = `/api/v1/projects`;
|
|
43
43
|
const response = yield this.request({
|
|
44
44
|
path: urlPath,
|
|
45
45
|
method: 'POST',
|
|
@@ -47,7 +47,7 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
47
47
|
query: queryParameters,
|
|
48
48
|
body: (0, index_1.CreateProjectRequestToJSON)(requestParameters['createProjectRequest']),
|
|
49
49
|
}, initOverrides);
|
|
50
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
50
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectResponseFromJSON)(jsonValue));
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
@@ -67,7 +67,7 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
67
67
|
}
|
|
68
68
|
const queryParameters = {};
|
|
69
69
|
const headerParameters = {};
|
|
70
|
-
let urlPath = `/projects/{id}`;
|
|
70
|
+
let urlPath = `/api/v1/projects/{id}`;
|
|
71
71
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
72
72
|
const response = yield this.request({
|
|
73
73
|
path: urlPath,
|
|
@@ -91,14 +91,14 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
91
91
|
return __awaiter(this, void 0, void 0, function* () {
|
|
92
92
|
const queryParameters = {};
|
|
93
93
|
const headerParameters = {};
|
|
94
|
-
let urlPath = `/projects`;
|
|
94
|
+
let urlPath = `/api/v1/projects`;
|
|
95
95
|
const response = yield this.request({
|
|
96
96
|
path: urlPath,
|
|
97
97
|
method: 'GET',
|
|
98
98
|
headers: headerParameters,
|
|
99
99
|
query: queryParameters,
|
|
100
100
|
}, initOverrides);
|
|
101
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.
|
|
101
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ProjectResponseFromJSON));
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
@@ -118,7 +118,7 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
118
118
|
}
|
|
119
119
|
const queryParameters = {};
|
|
120
120
|
const headerParameters = {};
|
|
121
|
-
let urlPath = `/projects/{id}`;
|
|
121
|
+
let urlPath = `/api/v1/projects/{id}`;
|
|
122
122
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
123
123
|
const response = yield this.request({
|
|
124
124
|
path: urlPath,
|
|
@@ -126,7 +126,7 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
126
126
|
headers: headerParameters,
|
|
127
127
|
query: queryParameters,
|
|
128
128
|
}, initOverrides);
|
|
129
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
129
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectResponseFromJSON)(jsonValue));
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
@@ -0,0 +1,46 @@
|
|
|
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/index';
|
|
14
|
+
export interface RegisterOperationRequest {
|
|
15
|
+
registerRequest: RegisterRequest;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* UsersControllerApi - interface
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface UsersControllerApiInterface
|
|
22
|
+
*/
|
|
23
|
+
export interface UsersControllerApiInterface {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @param {RegisterRequest} registerRequest
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
* @memberof UsersControllerApiInterface
|
|
30
|
+
*/
|
|
31
|
+
registerRaw(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
32
|
+
/**
|
|
33
|
+
*/
|
|
34
|
+
register(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
export declare class UsersControllerApi extends runtime.BaseAPI implements UsersControllerApiInterface {
|
|
40
|
+
/**
|
|
41
|
+
*/
|
|
42
|
+
registerRaw(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
43
|
+
/**
|
|
44
|
+
*/
|
|
45
|
+
register(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* SnowballR API
|
|
6
|
+
* REST API for the SnowballR Application
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.UsersControllerApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class UsersControllerApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
*/
|
|
34
|
+
registerRaw(requestParameters, initOverrides) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
if (requestParameters['registerRequest'] == null) {
|
|
37
|
+
throw new runtime.RequiredError('registerRequest', 'Required parameter "registerRequest" was null or undefined when calling register().');
|
|
38
|
+
}
|
|
39
|
+
const queryParameters = {};
|
|
40
|
+
const headerParameters = {};
|
|
41
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
42
|
+
let urlPath = `/api/v1/users`;
|
|
43
|
+
const response = yield this.request({
|
|
44
|
+
path: urlPath,
|
|
45
|
+
method: 'POST',
|
|
46
|
+
headers: headerParameters,
|
|
47
|
+
query: queryParameters,
|
|
48
|
+
body: (0, index_1.RegisterRequestToJSON)(requestParameters['registerRequest']),
|
|
49
|
+
}, initOverrides);
|
|
50
|
+
return new runtime.VoidApiResponse(response);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
*/
|
|
55
|
+
register(requestParameters, initOverrides) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
yield this.registerRaw(requestParameters, initOverrides);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.UsersControllerApi = UsersControllerApi;
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -16,4 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./AuthControllerApi"), exports);
|
|
19
20
|
__exportStar(require("./ProjectsControllerApi"), exports);
|
|
21
|
+
__exportStar(require("./UsersControllerApi"), exports);
|