@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
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
24
|
import { CreateProjectRequestToJSON, } from '../models/CreateProjectRequest';
|
|
25
|
-
import {
|
|
25
|
+
import { ProjectResponseFromJSON, } from '../models/ProjectResponse';
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
@@ -38,7 +38,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
38
38
|
const queryParameters = {};
|
|
39
39
|
const headerParameters = {};
|
|
40
40
|
headerParameters['Content-Type'] = 'application/json';
|
|
41
|
-
let urlPath = `/projects`;
|
|
41
|
+
let urlPath = `/api/v1/projects`;
|
|
42
42
|
return {
|
|
43
43
|
path: urlPath,
|
|
44
44
|
method: 'POST',
|
|
@@ -54,7 +54,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
55
|
const requestOptions = yield this.createProjectRequestOpts(requestParameters);
|
|
56
56
|
const response = yield this.request(requestOptions, initOverrides);
|
|
57
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
57
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectResponseFromJSON(jsonValue));
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
@@ -75,7 +75,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
75
75
|
}
|
|
76
76
|
const queryParameters = {};
|
|
77
77
|
const headerParameters = {};
|
|
78
|
-
let urlPath = `/projects/{id}`;
|
|
78
|
+
let urlPath = `/api/v1/projects/{id}`;
|
|
79
79
|
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
80
80
|
return {
|
|
81
81
|
path: urlPath,
|
|
@@ -108,7 +108,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
108
108
|
return __awaiter(this, void 0, void 0, function* () {
|
|
109
109
|
const queryParameters = {};
|
|
110
110
|
const headerParameters = {};
|
|
111
|
-
let urlPath = `/projects`;
|
|
111
|
+
let urlPath = `/api/v1/projects`;
|
|
112
112
|
return {
|
|
113
113
|
path: urlPath,
|
|
114
114
|
method: 'GET',
|
|
@@ -123,7 +123,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
123
123
|
return __awaiter(this, void 0, void 0, function* () {
|
|
124
124
|
const requestOptions = yield this.getAllProjectsRequestOpts();
|
|
125
125
|
const response = yield this.request(requestOptions, initOverrides);
|
|
126
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
126
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectResponseFromJSON));
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
/**
|
|
@@ -144,7 +144,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
144
144
|
}
|
|
145
145
|
const queryParameters = {};
|
|
146
146
|
const headerParameters = {};
|
|
147
|
-
let urlPath = `/projects/{id}`;
|
|
147
|
+
let urlPath = `/api/v1/projects/{id}`;
|
|
148
148
|
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
149
149
|
return {
|
|
150
150
|
path: urlPath,
|
|
@@ -160,7 +160,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
160
160
|
return __awaiter(this, void 0, void 0, function* () {
|
|
161
161
|
const requestOptions = yield this.getProjectRequestOpts(requestParameters);
|
|
162
162
|
const response = yield this.request(requestOptions, initOverrides);
|
|
163
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
163
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectResponseFromJSON(jsonValue));
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
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
package/dist/esm/apis/index.js
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ChangePasswordRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ChangePasswordRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
oldPassword?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
newPassword?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the ChangePasswordRequest interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfChangePasswordRequest(value: object): value is ChangePasswordRequest;
|
|
31
|
+
export declare function ChangePasswordRequestFromJSON(json: any): ChangePasswordRequest;
|
|
32
|
+
export declare function ChangePasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangePasswordRequest;
|
|
33
|
+
export declare function ChangePasswordRequestToJSON(json: any): ChangePasswordRequest;
|
|
34
|
+
export declare function ChangePasswordRequestToJSONTyped(value?: ChangePasswordRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Check if a given object implements the ChangePasswordRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfChangePasswordRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ChangePasswordRequestFromJSON(json) {
|
|
21
|
+
return ChangePasswordRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ChangePasswordRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'oldPassword': json['oldPassword'] == null ? undefined : json['oldPassword'],
|
|
29
|
+
'newPassword': json['newPassword'] == null ? undefined : json['newPassword'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function ChangePasswordRequestToJSON(json) {
|
|
33
|
+
return ChangePasswordRequestToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function ChangePasswordRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'oldPassword': value['oldPassword'],
|
|
41
|
+
'newPassword': value['newPassword'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LoginRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface LoginRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
email?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
password?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the LoginRequest interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfLoginRequest(value: object): value is LoginRequest;
|
|
31
|
+
export declare function LoginRequestFromJSON(json: any): LoginRequest;
|
|
32
|
+
export declare function LoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRequest;
|
|
33
|
+
export declare function LoginRequestToJSON(json: any): LoginRequest;
|
|
34
|
+
export declare function LoginRequestToJSONTyped(value?: LoginRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Check if a given object implements the LoginRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfLoginRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function LoginRequestFromJSON(json) {
|
|
21
|
+
return LoginRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function LoginRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
29
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function LoginRequestToJSON(json) {
|
|
33
|
+
return LoginRequestToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function LoginRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'email': value['email'],
|
|
41
|
+
'password': value['password'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -13,9 +13,9 @@ import type { ProjectSettings } from './ProjectSettings';
|
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
16
|
-
* @interface
|
|
16
|
+
* @interface ProjectResponse
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface ProjectResponse {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
@@ -27,7 +27,7 @@ export interface Project {
|
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
|
-
status?:
|
|
30
|
+
status?: ProjectResponseStatusEnum;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
*/
|
|
@@ -39,28 +39,28 @@ export interface Project {
|
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
settings?: ProjectSettings;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
currentStageStartedAt?: Date;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
* @export
|
|
50
50
|
*/
|
|
51
|
-
export declare const
|
|
51
|
+
export declare const ProjectResponseStatusEnum: {
|
|
52
52
|
readonly ACTIVE: "ACTIVE";
|
|
53
53
|
readonly ACTIVE_LOCKED: "ACTIVE_LOCKED";
|
|
54
54
|
readonly ARCHIVED: "ARCHIVED";
|
|
55
55
|
readonly DELETED: "DELETED";
|
|
56
56
|
readonly CLEARED: "CLEARED";
|
|
57
57
|
};
|
|
58
|
-
export type
|
|
58
|
+
export type ProjectResponseStatusEnum = typeof ProjectResponseStatusEnum[keyof typeof ProjectResponseStatusEnum];
|
|
59
59
|
/**
|
|
60
|
-
* Check if a given object implements the
|
|
60
|
+
* Check if a given object implements the ProjectResponse interface.
|
|
61
61
|
*/
|
|
62
|
-
export declare function
|
|
63
|
-
export declare function
|
|
64
|
-
export declare function
|
|
65
|
-
export declare function
|
|
66
|
-
export declare function
|
|
62
|
+
export declare function instanceOfProjectResponse(value: object): value is ProjectResponse;
|
|
63
|
+
export declare function ProjectResponseFromJSON(json: any): ProjectResponse;
|
|
64
|
+
export declare function ProjectResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectResponse;
|
|
65
|
+
export declare function ProjectResponseToJSON(json: any): ProjectResponse;
|
|
66
|
+
export declare function ProjectResponseToJSONTyped(value?: ProjectResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -16,7 +16,7 @@ import { ProjectSettingsFromJSON, ProjectSettingsToJSON, } from './ProjectSettin
|
|
|
16
16
|
/**
|
|
17
17
|
* @export
|
|
18
18
|
*/
|
|
19
|
-
export const
|
|
19
|
+
export const ProjectResponseStatusEnum = {
|
|
20
20
|
ACTIVE: 'ACTIVE',
|
|
21
21
|
ACTIVE_LOCKED: 'ACTIVE_LOCKED',
|
|
22
22
|
ARCHIVED: 'ARCHIVED',
|
|
@@ -24,15 +24,15 @@ export const ProjectStatusEnum = {
|
|
|
24
24
|
CLEARED: 'CLEARED',
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* Check if a given object implements the
|
|
27
|
+
* Check if a given object implements the ProjectResponse interface.
|
|
28
28
|
*/
|
|
29
|
-
export function
|
|
29
|
+
export function instanceOfProjectResponse(value) {
|
|
30
30
|
return true;
|
|
31
31
|
}
|
|
32
|
-
export function
|
|
33
|
-
return
|
|
32
|
+
export function ProjectResponseFromJSON(json) {
|
|
33
|
+
return ProjectResponseFromJSONTyped(json, false);
|
|
34
34
|
}
|
|
35
|
-
export function
|
|
35
|
+
export function ProjectResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
36
|
if (json == null) {
|
|
37
37
|
return json;
|
|
38
38
|
}
|
|
@@ -42,14 +42,14 @@ export function ProjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'status': json['status'] == null ? undefined : json['status'],
|
|
43
43
|
'currentStage': json['currentStage'] == null ? undefined : json['currentStage'],
|
|
44
44
|
'maxStage': json['maxStage'] == null ? undefined : json['maxStage'],
|
|
45
|
-
'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (parseDateTime(json['currentStageStartedAt'])),
|
|
46
45
|
'settings': json['settings'] == null ? undefined : ProjectSettingsFromJSON(json['settings']),
|
|
46
|
+
'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (parseDateTime(json['currentStageStartedAt'])),
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
export function
|
|
50
|
-
return
|
|
49
|
+
export function ProjectResponseToJSON(json) {
|
|
50
|
+
return ProjectResponseToJSONTyped(json, false);
|
|
51
51
|
}
|
|
52
|
-
export function
|
|
52
|
+
export function ProjectResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
53
|
if (value == null) {
|
|
54
54
|
return value;
|
|
55
55
|
}
|
|
@@ -59,7 +59,7 @@ export function ProjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
59
59
|
'status': value['status'],
|
|
60
60
|
'currentStage': value['currentStage'],
|
|
61
61
|
'maxStage': value['maxStage'],
|
|
62
|
-
'currentStageStartedAt': value['currentStageStartedAt'] == null ? value['currentStageStartedAt'] : serializeDateTime(value['currentStageStartedAt']),
|
|
63
62
|
'settings': ProjectSettingsToJSON(value['settings']),
|
|
63
|
+
'currentStageStartedAt': value['currentStageStartedAt'] == null ? value['currentStageStartedAt'] : serializeDateTime(value['currentStageStartedAt']),
|
|
64
64
|
};
|
|
65
65
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RegisterRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface RegisterRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
firstName?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
lastName?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
email?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
password?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the RegisterRequest interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfRegisterRequest(value: object): value is RegisterRequest;
|
|
39
|
+
export declare function RegisterRequestFromJSON(json: any): RegisterRequest;
|
|
40
|
+
export declare function RegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterRequest;
|
|
41
|
+
export declare function RegisterRequestToJSON(json: any): RegisterRequest;
|
|
42
|
+
export declare function RegisterRequestToJSONTyped(value?: RegisterRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
* Check if a given object implements the RegisterRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfRegisterRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function RegisterRequestFromJSON(json) {
|
|
21
|
+
return RegisterRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function RegisterRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
|
29
|
+
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
|
30
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
31
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function RegisterRequestToJSON(json) {
|
|
35
|
+
return RegisterRequestToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function RegisterRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'firstName': value['firstName'],
|
|
43
|
+
'lastName': value['lastName'],
|
|
44
|
+
'email': value['email'],
|
|
45
|
+
'password': value['password'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
export * from './ChangePasswordRequest';
|
|
1
2
|
export * from './CreateProjectRequest';
|
|
2
3
|
export * from './DecisionMatrixPattern';
|
|
3
4
|
export * from './DecisionMatrixPatternEntry';
|
|
4
|
-
export * from './
|
|
5
|
+
export * from './LoginRequest';
|
|
6
|
+
export * from './ProjectResponse';
|
|
5
7
|
export * from './ProjectSettings';
|
|
8
|
+
export * from './RegisterRequest';
|
|
6
9
|
export * from './ReviewDecisionMatrix';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './ChangePasswordRequest';
|
|
3
4
|
export * from './CreateProjectRequest';
|
|
4
5
|
export * from './DecisionMatrixPattern';
|
|
5
6
|
export * from './DecisionMatrixPatternEntry';
|
|
6
|
-
export * from './
|
|
7
|
+
export * from './LoginRequest';
|
|
8
|
+
export * from './ProjectResponse';
|
|
7
9
|
export * from './ProjectSettings';
|
|
10
|
+
export * from './RegisterRequest';
|
|
8
11
|
export * from './ReviewDecisionMatrix';
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ChangePasswordRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ChangePasswordRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
oldPassword?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
newPassword?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the ChangePasswordRequest interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfChangePasswordRequest(value: object): value is ChangePasswordRequest;
|
|
31
|
+
export declare function ChangePasswordRequestFromJSON(json: any): ChangePasswordRequest;
|
|
32
|
+
export declare function ChangePasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangePasswordRequest;
|
|
33
|
+
export declare function ChangePasswordRequestToJSON(json: any): ChangePasswordRequest;
|
|
34
|
+
export declare function ChangePasswordRequestToJSONTyped(value?: ChangePasswordRequest | null, ignoreDiscriminator?: boolean): any;
|