@se-uulm/snowballr-api-client 0.1.1-alpha.16a25a3
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/.openapi-generator/FILES +22 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/CHANGELOG.md +9 -0
- package/LICENSE +674 -0
- package/README.md +46 -0
- package/dist/apis/AuthControllerApi.d.ts +118 -0
- package/dist/apis/AuthControllerApi.js +170 -0
- package/dist/apis/ProjectsControllerApi.d.ts +102 -0
- package/dist/apis/ProjectsControllerApi.js +141 -0
- package/dist/apis/UsersControllerApi.d.ts +46 -0
- package/dist/apis/UsersControllerApi.js +61 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +21 -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 +102 -0
- package/dist/esm/apis/ProjectsControllerApi.js +137 -0
- package/dist/esm/apis/UsersControllerApi.d.ts +46 -0
- package/dist/esm/apis/UsersControllerApi.js +57 -0
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +5 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/ChangePasswordRequest.d.ts +38 -0
- package/dist/esm/models/ChangePasswordRequest.js +43 -0
- package/dist/esm/models/CreateProjectRequest.d.ts +32 -0
- package/dist/esm/models/CreateProjectRequest.js +41 -0
- package/dist/esm/models/DecisionMatrixPattern.d.ts +49 -0
- package/dist/esm/models/DecisionMatrixPattern.js +53 -0
- package/dist/esm/models/DecisionMatrixPatternEntry.d.ts +47 -0
- package/dist/esm/models/DecisionMatrixPatternEntry.js +51 -0
- package/dist/esm/models/LoginRequest.d.ts +38 -0
- package/dist/esm/models/LoginRequest.js +43 -0
- package/dist/esm/models/ProjectResponse.d.ts +117 -0
- package/dist/esm/models/ProjectResponse.js +80 -0
- package/dist/esm/models/RegisterRequest.d.ts +50 -0
- package/dist/esm/models/RegisterRequest.js +47 -0
- package/dist/esm/models/ReviewDecisionMatrix.d.ts +39 -0
- package/dist/esm/models/ReviewDecisionMatrix.js +44 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/ChangePasswordRequest.d.ts +38 -0
- package/dist/models/ChangePasswordRequest.js +50 -0
- package/dist/models/CreateProjectRequest.d.ts +32 -0
- package/dist/models/CreateProjectRequest.js +48 -0
- package/dist/models/DecisionMatrixPattern.d.ts +49 -0
- package/dist/models/DecisionMatrixPattern.js +61 -0
- package/dist/models/DecisionMatrixPatternEntry.d.ts +47 -0
- package/dist/models/DecisionMatrixPatternEntry.js +59 -0
- package/dist/models/LoginRequest.d.ts +38 -0
- package/dist/models/LoginRequest.js +50 -0
- package/dist/models/ProjectResponse.d.ts +117 -0
- package/dist/models/ProjectResponse.js +88 -0
- package/dist/models/RegisterRequest.d.ts +50 -0
- package/dist/models/RegisterRequest.js +54 -0
- package/dist/models/ReviewDecisionMatrix.d.ts +39 -0
- package/dist/models/ReviewDecisionMatrix.js +51 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +26 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +350 -0
- package/package.json +22 -0
- package/src/apis/AuthControllerApi.ts +283 -0
- package/src/apis/ProjectsControllerApi.ts +238 -0
- package/src/apis/UsersControllerApi.ts +92 -0
- package/src/apis/index.ts +5 -0
- package/src/index.ts +5 -0
- package/src/models/ChangePasswordRequest.ts +73 -0
- package/src/models/CreateProjectRequest.ts +65 -0
- package/src/models/DecisionMatrixPattern.ts +94 -0
- package/src/models/DecisionMatrixPatternEntry.ts +85 -0
- package/src/models/LoginRequest.ts +73 -0
- package/src/models/ProjectResponse.ts +177 -0
- package/src/models/RegisterRequest.ts +89 -0
- package/src/models/ReviewDecisionMatrix.ts +81 -0
- package/src/models/index.ts +10 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,238 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
CreateProjectRequest,
|
|
19
|
+
ProjectResponse,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
CreateProjectRequestFromJSON,
|
|
23
|
+
CreateProjectRequestToJSON,
|
|
24
|
+
ProjectResponseFromJSON,
|
|
25
|
+
ProjectResponseToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface CreateProjectOperationRequest {
|
|
29
|
+
createProjectRequest: CreateProjectRequest;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface DeleteProjectRequest {
|
|
33
|
+
id: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface GetProjectRequest {
|
|
37
|
+
id: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* ProjectsControllerApi - interface
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
* @interface ProjectsControllerApiInterface
|
|
45
|
+
*/
|
|
46
|
+
export interface ProjectsControllerApiInterface {
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @param {CreateProjectRequest} createProjectRequest
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
* @memberof ProjectsControllerApiInterface
|
|
53
|
+
*/
|
|
54
|
+
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
*/
|
|
58
|
+
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @param {string} id
|
|
63
|
+
* @param {*} [options] Override http request option.
|
|
64
|
+
* @throws {RequiredError}
|
|
65
|
+
* @memberof ProjectsControllerApiInterface
|
|
66
|
+
*/
|
|
67
|
+
deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
*/
|
|
71
|
+
deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
* @memberof ProjectsControllerApiInterface
|
|
78
|
+
*/
|
|
79
|
+
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectResponse>>>;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
*/
|
|
83
|
+
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectResponse>>;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @param {string} id
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
* @memberof ProjectsControllerApiInterface
|
|
91
|
+
*/
|
|
92
|
+
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
*/
|
|
96
|
+
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
|
|
97
|
+
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
103
|
+
export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsControllerApiInterface {
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
*/
|
|
107
|
+
async createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>> {
|
|
108
|
+
if (requestParameters['createProjectRequest'] == null) {
|
|
109
|
+
throw new runtime.RequiredError(
|
|
110
|
+
'createProjectRequest',
|
|
111
|
+
'Required parameter "createProjectRequest" was null or undefined when calling createProject().'
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const queryParameters: any = {};
|
|
116
|
+
|
|
117
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
118
|
+
|
|
119
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
let urlPath = `/api/v1/projects`;
|
|
123
|
+
|
|
124
|
+
const response = await this.request({
|
|
125
|
+
path: urlPath,
|
|
126
|
+
method: 'POST',
|
|
127
|
+
headers: headerParameters,
|
|
128
|
+
query: queryParameters,
|
|
129
|
+
body: CreateProjectRequestToJSON(requestParameters['createProjectRequest']),
|
|
130
|
+
}, initOverrides);
|
|
131
|
+
|
|
132
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectResponseFromJSON(jsonValue));
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
*/
|
|
137
|
+
async createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse> {
|
|
138
|
+
const response = await this.createProjectRaw(requestParameters, initOverrides);
|
|
139
|
+
return await response.value();
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
*/
|
|
144
|
+
async deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
145
|
+
if (requestParameters['id'] == null) {
|
|
146
|
+
throw new runtime.RequiredError(
|
|
147
|
+
'id',
|
|
148
|
+
'Required parameter "id" was null or undefined when calling deleteProject().'
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
const queryParameters: any = {};
|
|
153
|
+
|
|
154
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
let urlPath = `/api/v1/projects/{id}`;
|
|
158
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
159
|
+
|
|
160
|
+
const response = await this.request({
|
|
161
|
+
path: urlPath,
|
|
162
|
+
method: 'DELETE',
|
|
163
|
+
headers: headerParameters,
|
|
164
|
+
query: queryParameters,
|
|
165
|
+
}, initOverrides);
|
|
166
|
+
|
|
167
|
+
return new runtime.VoidApiResponse(response);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
*/
|
|
172
|
+
async deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
173
|
+
await this.deleteProjectRaw(requestParameters, initOverrides);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
*/
|
|
178
|
+
async getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectResponse>>> {
|
|
179
|
+
const queryParameters: any = {};
|
|
180
|
+
|
|
181
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
let urlPath = `/api/v1/projects`;
|
|
185
|
+
|
|
186
|
+
const response = await this.request({
|
|
187
|
+
path: urlPath,
|
|
188
|
+
method: 'GET',
|
|
189
|
+
headers: headerParameters,
|
|
190
|
+
query: queryParameters,
|
|
191
|
+
}, initOverrides);
|
|
192
|
+
|
|
193
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectResponseFromJSON));
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
*/
|
|
198
|
+
async getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectResponse>> {
|
|
199
|
+
const response = await this.getAllProjectsRaw(initOverrides);
|
|
200
|
+
return await response.value();
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
*/
|
|
205
|
+
async getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>> {
|
|
206
|
+
if (requestParameters['id'] == null) {
|
|
207
|
+
throw new runtime.RequiredError(
|
|
208
|
+
'id',
|
|
209
|
+
'Required parameter "id" was null or undefined when calling getProject().'
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
const queryParameters: any = {};
|
|
214
|
+
|
|
215
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
let urlPath = `/api/v1/projects/{id}`;
|
|
219
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
220
|
+
|
|
221
|
+
const response = await this.request({
|
|
222
|
+
path: urlPath,
|
|
223
|
+
method: 'GET',
|
|
224
|
+
headers: headerParameters,
|
|
225
|
+
query: queryParameters,
|
|
226
|
+
}, initOverrides);
|
|
227
|
+
|
|
228
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectResponseFromJSON(jsonValue));
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
*/
|
|
233
|
+
async getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse> {
|
|
234
|
+
const response = await this.getProjectRaw(requestParameters, initOverrides);
|
|
235
|
+
return await response.value();
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
RegisterRequest,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
RegisterRequestFromJSON,
|
|
22
|
+
RegisterRequestToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
export interface RegisterOperationRequest {
|
|
26
|
+
registerRequest: RegisterRequest;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* UsersControllerApi - interface
|
|
31
|
+
*
|
|
32
|
+
* @export
|
|
33
|
+
* @interface UsersControllerApiInterface
|
|
34
|
+
*/
|
|
35
|
+
export interface UsersControllerApiInterface {
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @param {RegisterRequest} registerRequest
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
* @memberof UsersControllerApiInterface
|
|
42
|
+
*/
|
|
43
|
+
registerRaw(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*/
|
|
47
|
+
register(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
export class UsersControllerApi extends runtime.BaseAPI implements UsersControllerApiInterface {
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
*/
|
|
58
|
+
async registerRaw(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
59
|
+
if (requestParameters['registerRequest'] == null) {
|
|
60
|
+
throw new runtime.RequiredError(
|
|
61
|
+
'registerRequest',
|
|
62
|
+
'Required parameter "registerRequest" was null or undefined when calling register().'
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const queryParameters: any = {};
|
|
67
|
+
|
|
68
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
69
|
+
|
|
70
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
let urlPath = `/api/v1/users`;
|
|
74
|
+
|
|
75
|
+
const response = await this.request({
|
|
76
|
+
path: urlPath,
|
|
77
|
+
method: 'POST',
|
|
78
|
+
headers: headerParameters,
|
|
79
|
+
query: queryParameters,
|
|
80
|
+
body: RegisterRequestToJSON(requestParameters['registerRequest']),
|
|
81
|
+
}, initOverrides);
|
|
82
|
+
|
|
83
|
+
return new runtime.VoidApiResponse(response);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
*/
|
|
88
|
+
async register(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
89
|
+
await this.registerRaw(requestParameters, initOverrides);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
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 ChangePasswordRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ChangePasswordRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ChangePasswordRequest
|
|
26
|
+
*/
|
|
27
|
+
oldPassword?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ChangePasswordRequest
|
|
32
|
+
*/
|
|
33
|
+
newPassword?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ChangePasswordRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfChangePasswordRequest(value: object): value is ChangePasswordRequest {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ChangePasswordRequestFromJSON(json: any): ChangePasswordRequest {
|
|
44
|
+
return ChangePasswordRequestFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ChangePasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangePasswordRequest {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'oldPassword': json['oldPassword'] == null ? undefined : json['oldPassword'],
|
|
54
|
+
'newPassword': json['newPassword'] == null ? undefined : json['newPassword'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ChangePasswordRequestToJSON(json: any): ChangePasswordRequest {
|
|
59
|
+
return ChangePasswordRequestToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ChangePasswordRequestToJSONTyped(value?: ChangePasswordRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'oldPassword': value['oldPassword'],
|
|
70
|
+
'newPassword': value['newPassword'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateProjectRequest
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the CreateProjectRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfCreateProjectRequest(value: object): value is CreateProjectRequest {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function CreateProjectRequestFromJSON(json: any): CreateProjectRequest {
|
|
38
|
+
return CreateProjectRequestFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function CreateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProjectRequest {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function CreateProjectRequestToJSON(json: any): CreateProjectRequest {
|
|
52
|
+
return CreateProjectRequestToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function CreateProjectRequestToJSONTyped(value?: CreateProjectRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'name': value['name'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
import type { DecisionMatrixPatternEntry } from './DecisionMatrixPatternEntry';
|
|
17
|
+
import {
|
|
18
|
+
DecisionMatrixPatternEntryFromJSON,
|
|
19
|
+
DecisionMatrixPatternEntryFromJSONTyped,
|
|
20
|
+
DecisionMatrixPatternEntryToJSON,
|
|
21
|
+
DecisionMatrixPatternEntryToJSONTyped,
|
|
22
|
+
} from './DecisionMatrixPatternEntry';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DecisionMatrixPattern
|
|
28
|
+
*/
|
|
29
|
+
export interface DecisionMatrixPattern {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DecisionMatrixPattern
|
|
34
|
+
*/
|
|
35
|
+
decision?: DecisionMatrixPatternDecisionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<DecisionMatrixPatternEntry>}
|
|
39
|
+
* @memberof DecisionMatrixPattern
|
|
40
|
+
*/
|
|
41
|
+
entries?: Array<DecisionMatrixPatternEntry>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export const DecisionMatrixPatternDecisionEnum = {
|
|
49
|
+
UNREVIEWED: 'UNREVIEWED',
|
|
50
|
+
IN_REVIEW: 'IN_REVIEW',
|
|
51
|
+
DECLINED: 'DECLINED',
|
|
52
|
+
ACCEPTED: 'ACCEPTED'
|
|
53
|
+
} as const;
|
|
54
|
+
export type DecisionMatrixPatternDecisionEnum = typeof DecisionMatrixPatternDecisionEnum[keyof typeof DecisionMatrixPatternDecisionEnum];
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the DecisionMatrixPattern interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfDecisionMatrixPattern(value: object): value is DecisionMatrixPattern {
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function DecisionMatrixPatternFromJSON(json: any): DecisionMatrixPattern {
|
|
65
|
+
return DecisionMatrixPatternFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function DecisionMatrixPatternFromJSONTyped(json: any, ignoreDiscriminator: boolean): DecisionMatrixPattern {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'decision': json['decision'] == null ? undefined : json['decision'],
|
|
75
|
+
'entries': json['entries'] == null ? undefined : ((json['entries'] as Array<any>).map(DecisionMatrixPatternEntryFromJSON)),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function DecisionMatrixPatternToJSON(json: any): DecisionMatrixPattern {
|
|
80
|
+
return DecisionMatrixPatternToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function DecisionMatrixPatternToJSONTyped(value?: DecisionMatrixPattern | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'decision': value['decision'],
|
|
91
|
+
'entries': value['entries'] == null ? undefined : ((value['entries'] as Array<any>).map(DecisionMatrixPatternEntryToJSON)),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
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 DecisionMatrixPatternEntry
|
|
20
|
+
*/
|
|
21
|
+
export interface DecisionMatrixPatternEntry {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DecisionMatrixPatternEntry
|
|
26
|
+
*/
|
|
27
|
+
decision?: DecisionMatrixPatternEntryDecisionEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof DecisionMatrixPatternEntry
|
|
32
|
+
*/
|
|
33
|
+
count?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const DecisionMatrixPatternEntryDecisionEnum = {
|
|
41
|
+
DECLINED: 'DECLINED',
|
|
42
|
+
MAYBE: 'MAYBE',
|
|
43
|
+
ACCEPTED: 'ACCEPTED'
|
|
44
|
+
} as const;
|
|
45
|
+
export type DecisionMatrixPatternEntryDecisionEnum = typeof DecisionMatrixPatternEntryDecisionEnum[keyof typeof DecisionMatrixPatternEntryDecisionEnum];
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the DecisionMatrixPatternEntry interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfDecisionMatrixPatternEntry(value: object): value is DecisionMatrixPatternEntry {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function DecisionMatrixPatternEntryFromJSON(json: any): DecisionMatrixPatternEntry {
|
|
56
|
+
return DecisionMatrixPatternEntryFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function DecisionMatrixPatternEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): DecisionMatrixPatternEntry {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'decision': json['decision'] == null ? undefined : json['decision'],
|
|
66
|
+
'count': json['count'] == null ? undefined : json['count'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function DecisionMatrixPatternEntryToJSON(json: any): DecisionMatrixPatternEntry {
|
|
71
|
+
return DecisionMatrixPatternEntryToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function DecisionMatrixPatternEntryToJSONTyped(value?: DecisionMatrixPatternEntry | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'decision': value['decision'],
|
|
82
|
+
'count': value['count'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|