@se-uulm/snowballr-api-client 0.1.1-alpha.ddb669e → 0.1.1-alpha.ff0ab99
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 +6 -1
- 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/esm/models/{Project.d.ts → 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/models/{Project.d.ts → 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 +1 -1
- package/src/apis/AuthControllerApi.ts +283 -0
- package/src/apis/ProjectsControllerApi.ts +22 -22
- package/src/apis/UsersControllerApi.ts +92 -0
- package/src/apis/index.ts +2 -0
- package/src/models/ChangePasswordRequest.ts +73 -0
- package/src/models/LoginRequest.ts +73 -0
- package/src/models/{Project.ts → ProjectResponse.ts} +27 -27
- package/src/models/RegisterRequest.ts +89 -0
- package/src/models/index.ts +4 -1
|
@@ -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/apis/index.ts
CHANGED
|
@@ -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,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 LoginRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface LoginRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LoginRequest
|
|
26
|
+
*/
|
|
27
|
+
email?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LoginRequest
|
|
32
|
+
*/
|
|
33
|
+
password?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the LoginRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfLoginRequest(value: object): value is LoginRequest {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function LoginRequestFromJSON(json: any): LoginRequest {
|
|
44
|
+
return LoginRequestFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function LoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRequest {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
54
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function LoginRequestToJSON(json: any): LoginRequest {
|
|
59
|
+
return LoginRequestToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function LoginRequestToJSONTyped(value?: LoginRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'email': value['email'],
|
|
70
|
+
'password': value['password'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -24,73 +24,73 @@ import {
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @export
|
|
27
|
-
* @interface
|
|
27
|
+
* @interface ProjectResponse
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface ProjectResponse {
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof ProjectResponse
|
|
34
34
|
*/
|
|
35
35
|
id?: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof ProjectResponse
|
|
40
40
|
*/
|
|
41
41
|
name?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
|
-
* @memberof
|
|
45
|
+
* @memberof ProjectResponse
|
|
46
46
|
*/
|
|
47
|
-
status?:
|
|
47
|
+
status?: ProjectResponseStatusEnum;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {number}
|
|
51
|
-
* @memberof
|
|
51
|
+
* @memberof ProjectResponse
|
|
52
52
|
*/
|
|
53
53
|
currentStage?: number;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {number}
|
|
57
|
-
* @memberof
|
|
57
|
+
* @memberof ProjectResponse
|
|
58
58
|
*/
|
|
59
59
|
maxStage?: number;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {number}
|
|
63
|
-
* @memberof
|
|
63
|
+
* @memberof ProjectResponse
|
|
64
64
|
*/
|
|
65
65
|
similarityThreshold?: number;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|
|
69
|
-
* @memberof
|
|
69
|
+
* @memberof ProjectResponse
|
|
70
70
|
*/
|
|
71
|
-
snowballingType?:
|
|
71
|
+
snowballingType?: ProjectResponseSnowballingTypeEnum;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {boolean}
|
|
75
|
-
* @memberof
|
|
75
|
+
* @memberof ProjectResponse
|
|
76
76
|
*/
|
|
77
77
|
reviewMaybeAllowed?: boolean;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {ReviewDecisionMatrix}
|
|
81
|
-
* @memberof
|
|
81
|
+
* @memberof ProjectResponse
|
|
82
82
|
*/
|
|
83
83
|
reviewDecisionMatrix?: ReviewDecisionMatrix;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
87
|
-
* @memberof
|
|
87
|
+
* @memberof ProjectResponse
|
|
88
88
|
*/
|
|
89
89
|
fetchers?: { [key: string]: { [key: string]: string; }; };
|
|
90
90
|
/**
|
|
91
91
|
*
|
|
92
92
|
* @type {Date}
|
|
93
|
-
* @memberof
|
|
93
|
+
* @memberof ProjectResponse
|
|
94
94
|
*/
|
|
95
95
|
currentStageStartedAt?: Date;
|
|
96
96
|
}
|
|
@@ -99,38 +99,38 @@ export interface Project {
|
|
|
99
99
|
/**
|
|
100
100
|
* @export
|
|
101
101
|
*/
|
|
102
|
-
export const
|
|
102
|
+
export const ProjectResponseStatusEnum = {
|
|
103
103
|
ACTIVE: 'ACTIVE',
|
|
104
104
|
ACTIVE_LOCKED: 'ACTIVE_LOCKED',
|
|
105
105
|
ARCHIVED: 'ARCHIVED',
|
|
106
106
|
DELETED: 'DELETED',
|
|
107
107
|
CLEARED: 'CLEARED'
|
|
108
108
|
} as const;
|
|
109
|
-
export type
|
|
109
|
+
export type ProjectResponseStatusEnum = typeof ProjectResponseStatusEnum[keyof typeof ProjectResponseStatusEnum];
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
112
|
* @export
|
|
113
113
|
*/
|
|
114
|
-
export const
|
|
114
|
+
export const ProjectResponseSnowballingTypeEnum = {
|
|
115
115
|
FORWARD: 'FORWARD',
|
|
116
116
|
BACKWARD: 'BACKWARD',
|
|
117
117
|
BOTH: 'BOTH'
|
|
118
118
|
} as const;
|
|
119
|
-
export type
|
|
119
|
+
export type ProjectResponseSnowballingTypeEnum = typeof ProjectResponseSnowballingTypeEnum[keyof typeof ProjectResponseSnowballingTypeEnum];
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
|
-
* Check if a given object implements the
|
|
123
|
+
* Check if a given object implements the ProjectResponse interface.
|
|
124
124
|
*/
|
|
125
|
-
export function
|
|
125
|
+
export function instanceOfProjectResponse(value: object): value is ProjectResponse {
|
|
126
126
|
return true;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
export function
|
|
130
|
-
return
|
|
129
|
+
export function ProjectResponseFromJSON(json: any): ProjectResponse {
|
|
130
|
+
return ProjectResponseFromJSONTyped(json, false);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
export function
|
|
133
|
+
export function ProjectResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectResponse {
|
|
134
134
|
if (json == null) {
|
|
135
135
|
return json;
|
|
136
136
|
}
|
|
@@ -150,11 +150,11 @@ export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
export function
|
|
154
|
-
return
|
|
153
|
+
export function ProjectResponseToJSON(json: any): ProjectResponse {
|
|
154
|
+
return ProjectResponseToJSONTyped(json, false);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
export function
|
|
157
|
+
export function ProjectResponseToJSONTyped(value?: ProjectResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
158
158
|
if (value == null) {
|
|
159
159
|
return value;
|
|
160
160
|
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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 RegisterRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface RegisterRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RegisterRequest
|
|
26
|
+
*/
|
|
27
|
+
firstName?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RegisterRequest
|
|
32
|
+
*/
|
|
33
|
+
lastName?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof RegisterRequest
|
|
38
|
+
*/
|
|
39
|
+
email?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof RegisterRequest
|
|
44
|
+
*/
|
|
45
|
+
password?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the RegisterRequest interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfRegisterRequest(value: object): value is RegisterRequest {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function RegisterRequestFromJSON(json: any): RegisterRequest {
|
|
56
|
+
return RegisterRequestFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function RegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterRequest {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
|
66
|
+
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
|
67
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
68
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function RegisterRequestToJSON(json: any): RegisterRequest {
|
|
73
|
+
return RegisterRequestToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function RegisterRequestToJSONTyped(value?: RegisterRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'firstName': value['firstName'],
|
|
84
|
+
'lastName': value['lastName'],
|
|
85
|
+
'email': value['email'],
|
|
86
|
+
'password': value['password'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
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';
|
|
9
|
+
export * from './RegisterRequest';
|
|
7
10
|
export * from './ReviewDecisionMatrix';
|