@se-uulm/snowballr-api-client 0.1.1-alpha.ff0ab99 → 0.1.1-alpha.ffc778d
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 +1 -6
- package/CHANGELOG.md +49 -0
- package/README.md +2 -2
- package/dist/apis/ProjectsControllerApi.d.ts +13 -13
- package/dist/apis/ProjectsControllerApi.js +7 -7
- package/dist/apis/index.d.ts +0 -2
- package/dist/apis/index.js +0 -2
- package/dist/esm/apis/ProjectsControllerApi.d.ts +13 -13
- package/dist/esm/apis/ProjectsControllerApi.js +8 -8
- package/dist/esm/apis/index.d.ts +0 -2
- package/dist/esm/apis/index.js +0 -2
- package/dist/esm/models/{ProjectResponse.d.ts → Project.d.ts} +25 -25
- package/dist/esm/models/{ProjectResponse.js → Project.js} +10 -10
- package/dist/esm/models/index.d.ts +1 -4
- package/dist/esm/models/index.js +1 -4
- package/dist/models/{ProjectResponse.d.ts → Project.d.ts} +25 -25
- package/dist/models/{ProjectResponse.js → Project.js} +16 -16
- package/dist/models/index.d.ts +1 -4
- package/dist/models/index.js +1 -4
- package/package.json +1 -1
- package/src/apis/ProjectsControllerApi.ts +22 -22
- package/src/apis/index.ts +0 -2
- package/src/models/{ProjectResponse.ts → Project.ts} +27 -27
- package/src/models/index.ts +1 -4
- package/dist/apis/AuthControllerApi.d.ts +0 -118
- package/dist/apis/AuthControllerApi.js +0 -170
- package/dist/apis/UsersControllerApi.d.ts +0 -46
- package/dist/apis/UsersControllerApi.js +0 -61
- package/dist/esm/apis/AuthControllerApi.d.ts +0 -118
- package/dist/esm/apis/AuthControllerApi.js +0 -166
- package/dist/esm/apis/UsersControllerApi.d.ts +0 -46
- package/dist/esm/apis/UsersControllerApi.js +0 -57
- package/dist/esm/models/ChangePasswordRequest.d.ts +0 -38
- package/dist/esm/models/ChangePasswordRequest.js +0 -43
- package/dist/esm/models/LoginRequest.d.ts +0 -38
- package/dist/esm/models/LoginRequest.js +0 -43
- package/dist/esm/models/RegisterRequest.d.ts +0 -50
- package/dist/esm/models/RegisterRequest.js +0 -47
- package/dist/models/ChangePasswordRequest.d.ts +0 -38
- package/dist/models/ChangePasswordRequest.js +0 -50
- package/dist/models/LoginRequest.d.ts +0 -38
- package/dist/models/LoginRequest.js +0 -50
- package/dist/models/RegisterRequest.d.ts +0 -50
- package/dist/models/RegisterRequest.js +0 -54
- package/src/apis/AuthControllerApi.ts +0 -283
- package/src/apis/UsersControllerApi.ts +0 -92
- package/src/models/ChangePasswordRequest.ts +0 -73
- package/src/models/LoginRequest.ts +0 -73
- package/src/models/RegisterRequest.ts +0 -89
|
@@ -13,67 +13,67 @@ import type { ReviewDecisionMatrix } from './ReviewDecisionMatrix';
|
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
16
|
-
* @interface
|
|
16
|
+
* @interface Project
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface Project {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
21
|
* @type {string}
|
|
22
|
-
* @memberof
|
|
22
|
+
* @memberof Project
|
|
23
23
|
*/
|
|
24
24
|
id?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
28
|
-
* @memberof
|
|
28
|
+
* @memberof Project
|
|
29
29
|
*/
|
|
30
30
|
name?: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {string}
|
|
34
|
-
* @memberof
|
|
34
|
+
* @memberof Project
|
|
35
35
|
*/
|
|
36
|
-
status?:
|
|
36
|
+
status?: ProjectStatusEnum;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {number}
|
|
40
|
-
* @memberof
|
|
40
|
+
* @memberof Project
|
|
41
41
|
*/
|
|
42
42
|
currentStage?: number;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {number}
|
|
46
|
-
* @memberof
|
|
46
|
+
* @memberof Project
|
|
47
47
|
*/
|
|
48
48
|
maxStage?: number;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {number}
|
|
52
|
-
* @memberof
|
|
52
|
+
* @memberof Project
|
|
53
53
|
*/
|
|
54
54
|
similarityThreshold?: number;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {string}
|
|
58
|
-
* @memberof
|
|
58
|
+
* @memberof Project
|
|
59
59
|
*/
|
|
60
|
-
snowballingType?:
|
|
60
|
+
snowballingType?: ProjectSnowballingTypeEnum;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {boolean}
|
|
64
|
-
* @memberof
|
|
64
|
+
* @memberof Project
|
|
65
65
|
*/
|
|
66
66
|
reviewMaybeAllowed?: boolean;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {ReviewDecisionMatrix}
|
|
70
|
-
* @memberof
|
|
70
|
+
* @memberof Project
|
|
71
71
|
*/
|
|
72
72
|
reviewDecisionMatrix?: ReviewDecisionMatrix;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
76
|
-
* @memberof
|
|
76
|
+
* @memberof Project
|
|
77
77
|
*/
|
|
78
78
|
fetchers?: {
|
|
79
79
|
[key: string]: {
|
|
@@ -83,35 +83,35 @@ export interface ProjectResponse {
|
|
|
83
83
|
/**
|
|
84
84
|
*
|
|
85
85
|
* @type {Date}
|
|
86
|
-
* @memberof
|
|
86
|
+
* @memberof Project
|
|
87
87
|
*/
|
|
88
88
|
currentStageStartedAt?: Date;
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
91
|
* @export
|
|
92
92
|
*/
|
|
93
|
-
export declare const
|
|
93
|
+
export declare const ProjectStatusEnum: {
|
|
94
94
|
readonly ACTIVE: "ACTIVE";
|
|
95
95
|
readonly ACTIVE_LOCKED: "ACTIVE_LOCKED";
|
|
96
96
|
readonly ARCHIVED: "ARCHIVED";
|
|
97
97
|
readonly DELETED: "DELETED";
|
|
98
98
|
readonly CLEARED: "CLEARED";
|
|
99
99
|
};
|
|
100
|
-
export type
|
|
100
|
+
export type ProjectStatusEnum = typeof ProjectStatusEnum[keyof typeof ProjectStatusEnum];
|
|
101
101
|
/**
|
|
102
102
|
* @export
|
|
103
103
|
*/
|
|
104
|
-
export declare const
|
|
104
|
+
export declare const ProjectSnowballingTypeEnum: {
|
|
105
105
|
readonly FORWARD: "FORWARD";
|
|
106
106
|
readonly BACKWARD: "BACKWARD";
|
|
107
107
|
readonly BOTH: "BOTH";
|
|
108
108
|
};
|
|
109
|
-
export type
|
|
109
|
+
export type ProjectSnowballingTypeEnum = typeof ProjectSnowballingTypeEnum[keyof typeof ProjectSnowballingTypeEnum];
|
|
110
110
|
/**
|
|
111
|
-
* Check if a given object implements the
|
|
111
|
+
* Check if a given object implements the Project interface.
|
|
112
112
|
*/
|
|
113
|
-
export declare function
|
|
114
|
-
export declare function
|
|
115
|
-
export declare function
|
|
116
|
-
export declare function
|
|
117
|
-
export declare function
|
|
113
|
+
export declare function instanceOfProject(value: object): value is Project;
|
|
114
|
+
export declare function ProjectFromJSON(json: any): Project;
|
|
115
|
+
export declare function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Project;
|
|
116
|
+
export declare function ProjectToJSON(json: any): Project;
|
|
117
|
+
export declare function ProjectToJSONTyped(value?: Project | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
16
|
+
exports.ProjectSnowballingTypeEnum = exports.ProjectStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfProject = instanceOfProject;
|
|
18
|
+
exports.ProjectFromJSON = ProjectFromJSON;
|
|
19
|
+
exports.ProjectFromJSONTyped = ProjectFromJSONTyped;
|
|
20
|
+
exports.ProjectToJSON = ProjectToJSON;
|
|
21
|
+
exports.ProjectToJSONTyped = ProjectToJSONTyped;
|
|
22
22
|
const ReviewDecisionMatrix_1 = require("./ReviewDecisionMatrix");
|
|
23
23
|
/**
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
26
|
-
exports.
|
|
26
|
+
exports.ProjectStatusEnum = {
|
|
27
27
|
ACTIVE: 'ACTIVE',
|
|
28
28
|
ACTIVE_LOCKED: 'ACTIVE_LOCKED',
|
|
29
29
|
ARCHIVED: 'ARCHIVED',
|
|
@@ -33,21 +33,21 @@ exports.ProjectResponseStatusEnum = {
|
|
|
33
33
|
/**
|
|
34
34
|
* @export
|
|
35
35
|
*/
|
|
36
|
-
exports.
|
|
36
|
+
exports.ProjectSnowballingTypeEnum = {
|
|
37
37
|
FORWARD: 'FORWARD',
|
|
38
38
|
BACKWARD: 'BACKWARD',
|
|
39
39
|
BOTH: 'BOTH'
|
|
40
40
|
};
|
|
41
41
|
/**
|
|
42
|
-
* Check if a given object implements the
|
|
42
|
+
* Check if a given object implements the Project interface.
|
|
43
43
|
*/
|
|
44
|
-
function
|
|
44
|
+
function instanceOfProject(value) {
|
|
45
45
|
return true;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return
|
|
47
|
+
function ProjectFromJSON(json) {
|
|
48
|
+
return ProjectFromJSONTyped(json, false);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function ProjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
51
|
if (json == null) {
|
|
52
52
|
return json;
|
|
53
53
|
}
|
|
@@ -65,10 +65,10 @@ function ProjectResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
65
|
'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (new Date(json['currentStageStartedAt'])),
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return
|
|
68
|
+
function ProjectToJSON(json) {
|
|
69
|
+
return ProjectToJSONTyped(json, false);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function ProjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
72
72
|
if (value == null) {
|
|
73
73
|
return value;
|
|
74
74
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
export * from './ChangePasswordRequest';
|
|
2
1
|
export * from './CreateProjectRequest';
|
|
3
2
|
export * from './DecisionMatrixPattern';
|
|
4
3
|
export * from './DecisionMatrixPatternEntry';
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './ProjectResponse';
|
|
7
|
-
export * from './RegisterRequest';
|
|
4
|
+
export * from './Project';
|
|
8
5
|
export * from './ReviewDecisionMatrix';
|
package/dist/models/index.js
CHANGED
|
@@ -16,11 +16,8 @@ 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("./ChangePasswordRequest"), exports);
|
|
20
19
|
__exportStar(require("./CreateProjectRequest"), exports);
|
|
21
20
|
__exportStar(require("./DecisionMatrixPattern"), exports);
|
|
22
21
|
__exportStar(require("./DecisionMatrixPatternEntry"), exports);
|
|
23
|
-
__exportStar(require("./
|
|
24
|
-
__exportStar(require("./ProjectResponse"), exports);
|
|
25
|
-
__exportStar(require("./RegisterRequest"), exports);
|
|
22
|
+
__exportStar(require("./Project"), exports);
|
|
26
23
|
__exportStar(require("./ReviewDecisionMatrix"), exports);
|
package/package.json
CHANGED
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
CreateProjectRequest,
|
|
19
|
-
|
|
19
|
+
Project,
|
|
20
20
|
} from '../models/index';
|
|
21
21
|
import {
|
|
22
22
|
CreateProjectRequestFromJSON,
|
|
23
23
|
CreateProjectRequestToJSON,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
ProjectFromJSON,
|
|
25
|
+
ProjectToJSON,
|
|
26
26
|
} from '../models/index';
|
|
27
27
|
|
|
28
28
|
export interface CreateProjectOperationRequest {
|
|
@@ -51,11 +51,11 @@ export interface ProjectsControllerApiInterface {
|
|
|
51
51
|
* @throws {RequiredError}
|
|
52
52
|
* @memberof ProjectsControllerApiInterface
|
|
53
53
|
*/
|
|
54
|
-
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
54
|
+
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
*/
|
|
58
|
-
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
58
|
+
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
@@ -76,11 +76,11 @@ export interface ProjectsControllerApiInterface {
|
|
|
76
76
|
* @throws {RequiredError}
|
|
77
77
|
* @memberof ProjectsControllerApiInterface
|
|
78
78
|
*/
|
|
79
|
-
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<
|
|
79
|
+
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>>;
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
*/
|
|
83
|
-
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<
|
|
83
|
+
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
@@ -89,11 +89,11 @@ export interface ProjectsControllerApiInterface {
|
|
|
89
89
|
* @throws {RequiredError}
|
|
90
90
|
* @memberof ProjectsControllerApiInterface
|
|
91
91
|
*/
|
|
92
|
-
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
92
|
+
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
*/
|
|
96
|
-
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
96
|
+
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
97
97
|
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -104,7 +104,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
|
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
106
|
*/
|
|
107
|
-
async createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
107
|
+
async createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
|
|
108
108
|
if (requestParameters['createProjectRequest'] == null) {
|
|
109
109
|
throw new runtime.RequiredError(
|
|
110
110
|
'createProjectRequest',
|
|
@@ -119,7 +119,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
|
|
|
119
119
|
headerParameters['Content-Type'] = 'application/json';
|
|
120
120
|
|
|
121
121
|
|
|
122
|
-
let urlPath = `/
|
|
122
|
+
let urlPath = `/projects`;
|
|
123
123
|
|
|
124
124
|
const response = await this.request({
|
|
125
125
|
path: urlPath,
|
|
@@ -129,12 +129,12 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
|
|
|
129
129
|
body: CreateProjectRequestToJSON(requestParameters['createProjectRequest']),
|
|
130
130
|
}, initOverrides);
|
|
131
131
|
|
|
132
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
132
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
136
|
*/
|
|
137
|
-
async createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
137
|
+
async createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
|
|
138
138
|
const response = await this.createProjectRaw(requestParameters, initOverrides);
|
|
139
139
|
return await response.value();
|
|
140
140
|
}
|
|
@@ -154,7 +154,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
|
|
|
154
154
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
155
155
|
|
|
156
156
|
|
|
157
|
-
let urlPath = `/
|
|
157
|
+
let urlPath = `/projects/{id}`;
|
|
158
158
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
159
159
|
|
|
160
160
|
const response = await this.request({
|
|
@@ -175,13 +175,13 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
|
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
177
|
*/
|
|
178
|
-
async getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<
|
|
178
|
+
async getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>> {
|
|
179
179
|
const queryParameters: any = {};
|
|
180
180
|
|
|
181
181
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
182
182
|
|
|
183
183
|
|
|
184
|
-
let urlPath = `/
|
|
184
|
+
let urlPath = `/projects`;
|
|
185
185
|
|
|
186
186
|
const response = await this.request({
|
|
187
187
|
path: urlPath,
|
|
@@ -190,19 +190,19 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
|
|
|
190
190
|
query: queryParameters,
|
|
191
191
|
}, initOverrides);
|
|
192
192
|
|
|
193
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
193
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectFromJSON));
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
197
|
*/
|
|
198
|
-
async getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<
|
|
198
|
+
async getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>> {
|
|
199
199
|
const response = await this.getAllProjectsRaw(initOverrides);
|
|
200
200
|
return await response.value();
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
/**
|
|
204
204
|
*/
|
|
205
|
-
async getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
205
|
+
async getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
|
|
206
206
|
if (requestParameters['id'] == null) {
|
|
207
207
|
throw new runtime.RequiredError(
|
|
208
208
|
'id',
|
|
@@ -215,7 +215,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
|
|
|
215
215
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
216
216
|
|
|
217
217
|
|
|
218
|
-
let urlPath = `/
|
|
218
|
+
let urlPath = `/projects/{id}`;
|
|
219
219
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
220
220
|
|
|
221
221
|
const response = await this.request({
|
|
@@ -225,12 +225,12 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
|
|
|
225
225
|
query: queryParameters,
|
|
226
226
|
}, initOverrides);
|
|
227
227
|
|
|
228
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
228
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
/**
|
|
232
232
|
*/
|
|
233
|
-
async getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
233
|
+
async getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
|
|
234
234
|
const response = await this.getProjectRaw(requestParameters, initOverrides);
|
|
235
235
|
return await response.value();
|
|
236
236
|
}
|
package/src/apis/index.ts
CHANGED
|
@@ -24,73 +24,73 @@ import {
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @export
|
|
27
|
-
* @interface
|
|
27
|
+
* @interface Project
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface Project {
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof Project
|
|
34
34
|
*/
|
|
35
35
|
id?: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof Project
|
|
40
40
|
*/
|
|
41
41
|
name?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
|
-
* @memberof
|
|
45
|
+
* @memberof Project
|
|
46
46
|
*/
|
|
47
|
-
status?:
|
|
47
|
+
status?: ProjectStatusEnum;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {number}
|
|
51
|
-
* @memberof
|
|
51
|
+
* @memberof Project
|
|
52
52
|
*/
|
|
53
53
|
currentStage?: number;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {number}
|
|
57
|
-
* @memberof
|
|
57
|
+
* @memberof Project
|
|
58
58
|
*/
|
|
59
59
|
maxStage?: number;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {number}
|
|
63
|
-
* @memberof
|
|
63
|
+
* @memberof Project
|
|
64
64
|
*/
|
|
65
65
|
similarityThreshold?: number;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|
|
69
|
-
* @memberof
|
|
69
|
+
* @memberof Project
|
|
70
70
|
*/
|
|
71
|
-
snowballingType?:
|
|
71
|
+
snowballingType?: ProjectSnowballingTypeEnum;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {boolean}
|
|
75
|
-
* @memberof
|
|
75
|
+
* @memberof Project
|
|
76
76
|
*/
|
|
77
77
|
reviewMaybeAllowed?: boolean;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {ReviewDecisionMatrix}
|
|
81
|
-
* @memberof
|
|
81
|
+
* @memberof Project
|
|
82
82
|
*/
|
|
83
83
|
reviewDecisionMatrix?: ReviewDecisionMatrix;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
87
|
-
* @memberof
|
|
87
|
+
* @memberof Project
|
|
88
88
|
*/
|
|
89
89
|
fetchers?: { [key: string]: { [key: string]: string; }; };
|
|
90
90
|
/**
|
|
91
91
|
*
|
|
92
92
|
* @type {Date}
|
|
93
|
-
* @memberof
|
|
93
|
+
* @memberof Project
|
|
94
94
|
*/
|
|
95
95
|
currentStageStartedAt?: Date;
|
|
96
96
|
}
|
|
@@ -99,38 +99,38 @@ export interface ProjectResponse {
|
|
|
99
99
|
/**
|
|
100
100
|
* @export
|
|
101
101
|
*/
|
|
102
|
-
export const
|
|
102
|
+
export const ProjectStatusEnum = {
|
|
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 ProjectStatusEnum = typeof ProjectStatusEnum[keyof typeof ProjectStatusEnum];
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
112
|
* @export
|
|
113
113
|
*/
|
|
114
|
-
export const
|
|
114
|
+
export const ProjectSnowballingTypeEnum = {
|
|
115
115
|
FORWARD: 'FORWARD',
|
|
116
116
|
BACKWARD: 'BACKWARD',
|
|
117
117
|
BOTH: 'BOTH'
|
|
118
118
|
} as const;
|
|
119
|
-
export type
|
|
119
|
+
export type ProjectSnowballingTypeEnum = typeof ProjectSnowballingTypeEnum[keyof typeof ProjectSnowballingTypeEnum];
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
|
-
* Check if a given object implements the
|
|
123
|
+
* Check if a given object implements the Project interface.
|
|
124
124
|
*/
|
|
125
|
-
export function
|
|
125
|
+
export function instanceOfProject(value: object): value is Project {
|
|
126
126
|
return true;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
export function
|
|
130
|
-
return
|
|
129
|
+
export function ProjectFromJSON(json: any): Project {
|
|
130
|
+
return ProjectFromJSONTyped(json, false);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
export function
|
|
133
|
+
export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Project {
|
|
134
134
|
if (json == null) {
|
|
135
135
|
return json;
|
|
136
136
|
}
|
|
@@ -150,11 +150,11 @@ export function ProjectResponseFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
export function
|
|
154
|
-
return
|
|
153
|
+
export function ProjectToJSON(json: any): Project {
|
|
154
|
+
return ProjectToJSONTyped(json, false);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
export function
|
|
157
|
+
export function ProjectToJSONTyped(value?: Project | null, ignoreDiscriminator: boolean = false): any {
|
|
158
158
|
if (value == null) {
|
|
159
159
|
return value;
|
|
160
160
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export * from './ChangePasswordRequest';
|
|
4
3
|
export * from './CreateProjectRequest';
|
|
5
4
|
export * from './DecisionMatrixPattern';
|
|
6
5
|
export * from './DecisionMatrixPatternEntry';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './ProjectResponse';
|
|
9
|
-
export * from './RegisterRequest';
|
|
6
|
+
export * from './Project';
|
|
10
7
|
export * from './ReviewDecisionMatrix';
|