@se-uulm/snowballr-api-client 0.2.1-alpha.267f00c → 0.2.1-alpha.2d2b6b0
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 +25 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +102 -28
- package/dist/apis/ProjectsControllerApi.d.ts +66 -13
- package/dist/apis/ProjectsControllerApi.js +60 -23
- package/dist/apis/index.d.ts +0 -2
- package/dist/apis/index.js +0 -2
- package/dist/esm/apis/ProjectsControllerApi.d.ts +66 -13
- package/dist/esm/apis/ProjectsControllerApi.js +59 -22
- package/dist/esm/apis/index.d.ts +0 -2
- package/dist/esm/apis/index.js +0 -2
- package/dist/esm/models/CreateProjectRequest.d.ts +0 -2
- package/dist/esm/models/DecisionMatrixPattern.d.ts +0 -4
- package/dist/esm/models/DecisionMatrixPattern.js +1 -1
- package/dist/esm/models/DecisionMatrixPatternEntry.d.ts +0 -4
- package/dist/esm/models/DecisionMatrixPatternEntry.js +1 -1
- package/dist/esm/models/Project.d.ts +66 -0
- package/dist/esm/models/Project.js +65 -0
- package/dist/esm/models/ProjectSettings.d.ts +60 -0
- package/dist/esm/models/{ProjectResponse.js → ProjectSettings.js} +10 -32
- package/dist/esm/models/ReviewDecisionMatrix.d.ts +0 -4
- package/dist/esm/models/index.d.ts +2 -4
- package/dist/esm/models/index.js +2 -4
- package/dist/esm/runtime.d.ts +34 -1
- package/dist/esm/runtime.js +130 -4
- package/dist/models/CreateProjectRequest.d.ts +0 -2
- package/dist/models/DecisionMatrixPattern.d.ts +0 -4
- package/dist/models/DecisionMatrixPattern.js +1 -1
- package/dist/models/DecisionMatrixPatternEntry.d.ts +0 -4
- package/dist/models/DecisionMatrixPatternEntry.js +1 -1
- package/dist/models/Project.d.ts +66 -0
- package/dist/models/Project.js +73 -0
- package/dist/models/ProjectSettings.d.ts +60 -0
- package/dist/models/ProjectSettings.js +66 -0
- package/dist/models/ReviewDecisionMatrix.d.ts +0 -4
- package/dist/models/index.d.ts +2 -4
- package/dist/models/index.js +2 -4
- package/dist/runtime.d.ts +34 -1
- package/dist/runtime.js +136 -4
- package/docs/CreateProjectRequest.md +34 -0
- package/docs/DecisionMatrixPattern.md +36 -0
- package/docs/DecisionMatrixPatternEntry.md +36 -0
- package/docs/Project.md +46 -0
- package/docs/ProjectSettings.md +42 -0
- package/docs/ProjectsControllerApi.md +264 -0
- package/docs/ReviewDecisionMatrix.md +36 -0
- package/package.json +5 -11
- package/src/apis/ProjectsControllerApi.ts +309 -0
- package/src/apis/index.ts +3 -0
- package/src/index.ts +5 -0
- package/src/models/CreateProjectRequest.ts +63 -0
- package/src/models/DecisionMatrixPattern.ts +90 -0
- package/src/models/DecisionMatrixPatternEntry.ts +81 -0
- package/src/models/Project.ts +121 -0
- package/src/models/ProjectSettings.ts +107 -0
- package/src/models/ReviewDecisionMatrix.ts +77 -0
- package/src/models/index.ts +8 -0
- package/src/runtime.ts +572 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
- 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/ProjectResponse.d.ts +0 -117
- 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/ProjectResponse.d.ts +0 -117
- package/dist/models/ProjectResponse.js +0 -88
- package/dist/models/RegisterRequest.d.ts +0 -50
- package/dist/models/RegisterRequest.js +0 -54
|
@@ -10,14 +10,24 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type CreateProjectRequest } from '../models/CreateProjectRequest';
|
|
14
|
+
import { type Project } from '../models/Project';
|
|
14
15
|
export interface CreateProjectOperationRequest {
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
15
19
|
createProjectRequest: CreateProjectRequest;
|
|
16
20
|
}
|
|
17
21
|
export interface DeleteProjectRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
18
25
|
id: string;
|
|
19
26
|
}
|
|
20
27
|
export interface GetProjectRequest {
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
21
31
|
id: string;
|
|
22
32
|
}
|
|
23
33
|
/**
|
|
@@ -27,6 +37,13 @@ export interface GetProjectRequest {
|
|
|
27
37
|
* @interface ProjectsControllerApiInterface
|
|
28
38
|
*/
|
|
29
39
|
export interface ProjectsControllerApiInterface {
|
|
40
|
+
/**
|
|
41
|
+
* Creates request options for createProject without sending the request
|
|
42
|
+
* @param {CreateProjectRequest} createProjectRequest
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
* @memberof ProjectsControllerApiInterface
|
|
45
|
+
*/
|
|
46
|
+
createProjectRequestOpts(requestParameters: CreateProjectOperationRequest): Promise<runtime.RequestOpts>;
|
|
30
47
|
/**
|
|
31
48
|
*
|
|
32
49
|
* @param {CreateProjectRequest} createProjectRequest
|
|
@@ -34,10 +51,17 @@ export interface ProjectsControllerApiInterface {
|
|
|
34
51
|
* @throws {RequiredError}
|
|
35
52
|
* @memberof ProjectsControllerApiInterface
|
|
36
53
|
*/
|
|
37
|
-
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
54
|
+
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
|
|
38
55
|
/**
|
|
39
56
|
*/
|
|
40
|
-
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
57
|
+
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
58
|
+
/**
|
|
59
|
+
* Creates request options for deleteProject without sending the request
|
|
60
|
+
* @param {string} id
|
|
61
|
+
* @throws {RequiredError}
|
|
62
|
+
* @memberof ProjectsControllerApiInterface
|
|
63
|
+
*/
|
|
64
|
+
deleteProjectRequestOpts(requestParameters: DeleteProjectRequest): Promise<runtime.RequestOpts>;
|
|
41
65
|
/**
|
|
42
66
|
*
|
|
43
67
|
* @param {string} id
|
|
@@ -49,16 +73,29 @@ export interface ProjectsControllerApiInterface {
|
|
|
49
73
|
/**
|
|
50
74
|
*/
|
|
51
75
|
deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Creates request options for getAllProjects without sending the request
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
* @memberof ProjectsControllerApiInterface
|
|
80
|
+
*/
|
|
81
|
+
getAllProjectsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
52
82
|
/**
|
|
53
83
|
*
|
|
54
84
|
* @param {*} [options] Override http request option.
|
|
55
85
|
* @throws {RequiredError}
|
|
56
86
|
* @memberof ProjectsControllerApiInterface
|
|
57
87
|
*/
|
|
58
|
-
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<
|
|
88
|
+
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>>;
|
|
59
89
|
/**
|
|
60
90
|
*/
|
|
61
|
-
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<
|
|
91
|
+
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
|
|
92
|
+
/**
|
|
93
|
+
* Creates request options for getProject without sending the request
|
|
94
|
+
* @param {string} id
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
* @memberof ProjectsControllerApiInterface
|
|
97
|
+
*/
|
|
98
|
+
getProjectRequestOpts(requestParameters: GetProjectRequest): Promise<runtime.RequestOpts>;
|
|
62
99
|
/**
|
|
63
100
|
*
|
|
64
101
|
* @param {string} id
|
|
@@ -66,37 +103,53 @@ export interface ProjectsControllerApiInterface {
|
|
|
66
103
|
* @throws {RequiredError}
|
|
67
104
|
* @memberof ProjectsControllerApiInterface
|
|
68
105
|
*/
|
|
69
|
-
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
106
|
+
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
|
|
70
107
|
/**
|
|
71
108
|
*/
|
|
72
|
-
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
109
|
+
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
73
110
|
}
|
|
74
111
|
/**
|
|
75
112
|
*
|
|
76
113
|
*/
|
|
77
114
|
export declare class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsControllerApiInterface {
|
|
115
|
+
/**
|
|
116
|
+
* Creates request options for createProject without sending the request
|
|
117
|
+
*/
|
|
118
|
+
createProjectRequestOpts(requestParameters: CreateProjectOperationRequest): Promise<runtime.RequestOpts>;
|
|
119
|
+
/**
|
|
120
|
+
*/
|
|
121
|
+
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
|
|
78
122
|
/**
|
|
79
123
|
*/
|
|
80
|
-
|
|
124
|
+
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
81
125
|
/**
|
|
126
|
+
* Creates request options for deleteProject without sending the request
|
|
82
127
|
*/
|
|
83
|
-
|
|
128
|
+
deleteProjectRequestOpts(requestParameters: DeleteProjectRequest): Promise<runtime.RequestOpts>;
|
|
84
129
|
/**
|
|
85
130
|
*/
|
|
86
131
|
deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
87
132
|
/**
|
|
88
133
|
*/
|
|
89
134
|
deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
135
|
+
/**
|
|
136
|
+
* Creates request options for getAllProjects without sending the request
|
|
137
|
+
*/
|
|
138
|
+
getAllProjectsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
139
|
+
/**
|
|
140
|
+
*/
|
|
141
|
+
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>>;
|
|
90
142
|
/**
|
|
91
143
|
*/
|
|
92
|
-
|
|
144
|
+
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
|
|
93
145
|
/**
|
|
146
|
+
* Creates request options for getProject without sending the request
|
|
94
147
|
*/
|
|
95
|
-
|
|
148
|
+
getProjectRequestOpts(requestParameters: GetProjectRequest): Promise<runtime.RequestOpts>;
|
|
96
149
|
/**
|
|
97
150
|
*/
|
|
98
|
-
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
151
|
+
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
|
|
99
152
|
/**
|
|
100
153
|
*/
|
|
101
|
-
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
154
|
+
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
102
155
|
}
|
|
@@ -21,14 +21,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { CreateProjectRequestToJSON,
|
|
24
|
+
import { CreateProjectRequestToJSON, } from '../models/CreateProjectRequest';
|
|
25
|
+
import { ProjectFromJSON, } from '../models/Project';
|
|
25
26
|
/**
|
|
26
27
|
*
|
|
27
28
|
*/
|
|
28
29
|
export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
29
30
|
/**
|
|
31
|
+
* Creates request options for createProject without sending the request
|
|
30
32
|
*/
|
|
31
|
-
|
|
33
|
+
createProjectRequestOpts(requestParameters) {
|
|
32
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
35
|
if (requestParameters['createProjectRequest'] == null) {
|
|
34
36
|
throw new runtime.RequiredError('createProjectRequest', 'Required parameter "createProjectRequest" was null or undefined when calling createProject().');
|
|
@@ -36,15 +38,23 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
36
38
|
const queryParameters = {};
|
|
37
39
|
const headerParameters = {};
|
|
38
40
|
headerParameters['Content-Type'] = 'application/json';
|
|
39
|
-
let urlPath = `/
|
|
40
|
-
|
|
41
|
+
let urlPath = `/projects`;
|
|
42
|
+
return {
|
|
41
43
|
path: urlPath,
|
|
42
44
|
method: 'POST',
|
|
43
45
|
headers: headerParameters,
|
|
44
46
|
query: queryParameters,
|
|
45
47
|
body: CreateProjectRequestToJSON(requestParameters['createProjectRequest']),
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
*/
|
|
53
|
+
createProjectRaw(requestParameters, initOverrides) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
const requestOptions = yield this.createProjectRequestOpts(requestParameters);
|
|
56
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
57
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
|
|
48
58
|
});
|
|
49
59
|
}
|
|
50
60
|
/**
|
|
@@ -56,22 +66,31 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
56
66
|
});
|
|
57
67
|
}
|
|
58
68
|
/**
|
|
69
|
+
* Creates request options for deleteProject without sending the request
|
|
59
70
|
*/
|
|
60
|
-
|
|
71
|
+
deleteProjectRequestOpts(requestParameters) {
|
|
61
72
|
return __awaiter(this, void 0, void 0, function* () {
|
|
62
73
|
if (requestParameters['id'] == null) {
|
|
63
74
|
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteProject().');
|
|
64
75
|
}
|
|
65
76
|
const queryParameters = {};
|
|
66
77
|
const headerParameters = {};
|
|
67
|
-
let urlPath = `/
|
|
68
|
-
urlPath = urlPath.replace(
|
|
69
|
-
|
|
78
|
+
let urlPath = `/projects/{id}`;
|
|
79
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
80
|
+
return {
|
|
70
81
|
path: urlPath,
|
|
71
82
|
method: 'DELETE',
|
|
72
83
|
headers: headerParameters,
|
|
73
84
|
query: queryParameters,
|
|
74
|
-
}
|
|
85
|
+
};
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
*/
|
|
90
|
+
deleteProjectRaw(requestParameters, initOverrides) {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
const requestOptions = yield this.deleteProjectRequestOpts(requestParameters);
|
|
93
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
75
94
|
return new runtime.VoidApiResponse(response);
|
|
76
95
|
});
|
|
77
96
|
}
|
|
@@ -83,19 +102,28 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
83
102
|
});
|
|
84
103
|
}
|
|
85
104
|
/**
|
|
105
|
+
* Creates request options for getAllProjects without sending the request
|
|
86
106
|
*/
|
|
87
|
-
|
|
107
|
+
getAllProjectsRequestOpts() {
|
|
88
108
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
109
|
const queryParameters = {};
|
|
90
110
|
const headerParameters = {};
|
|
91
|
-
let urlPath = `/
|
|
92
|
-
|
|
111
|
+
let urlPath = `/projects`;
|
|
112
|
+
return {
|
|
93
113
|
path: urlPath,
|
|
94
114
|
method: 'GET',
|
|
95
115
|
headers: headerParameters,
|
|
96
116
|
query: queryParameters,
|
|
97
|
-
}
|
|
98
|
-
|
|
117
|
+
};
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
*/
|
|
122
|
+
getAllProjectsRaw(initOverrides) {
|
|
123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
+
const requestOptions = yield this.getAllProjectsRequestOpts();
|
|
125
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
126
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectFromJSON));
|
|
99
127
|
});
|
|
100
128
|
}
|
|
101
129
|
/**
|
|
@@ -107,23 +135,32 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
107
135
|
});
|
|
108
136
|
}
|
|
109
137
|
/**
|
|
138
|
+
* Creates request options for getProject without sending the request
|
|
110
139
|
*/
|
|
111
|
-
|
|
140
|
+
getProjectRequestOpts(requestParameters) {
|
|
112
141
|
return __awaiter(this, void 0, void 0, function* () {
|
|
113
142
|
if (requestParameters['id'] == null) {
|
|
114
143
|
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getProject().');
|
|
115
144
|
}
|
|
116
145
|
const queryParameters = {};
|
|
117
146
|
const headerParameters = {};
|
|
118
|
-
let urlPath = `/
|
|
119
|
-
urlPath = urlPath.replace(
|
|
120
|
-
|
|
147
|
+
let urlPath = `/projects/{id}`;
|
|
148
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
149
|
+
return {
|
|
121
150
|
path: urlPath,
|
|
122
151
|
method: 'GET',
|
|
123
152
|
headers: headerParameters,
|
|
124
153
|
query: queryParameters,
|
|
125
|
-
}
|
|
126
|
-
|
|
154
|
+
};
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
*/
|
|
159
|
+
getProjectRaw(requestParameters, initOverrides) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
const requestOptions = yield this.getProjectRequestOpts(requestParameters);
|
|
162
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
163
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
|
|
127
164
|
});
|
|
128
165
|
}
|
|
129
166
|
/**
|
package/dist/esm/apis/index.d.ts
CHANGED
package/dist/esm/apis/index.js
CHANGED
|
@@ -18,14 +18,10 @@ import type { DecisionMatrixPatternEntry } from './DecisionMatrixPatternEntry';
|
|
|
18
18
|
export interface DecisionMatrixPattern {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof DecisionMatrixPattern
|
|
23
21
|
*/
|
|
24
22
|
decision?: DecisionMatrixPatternDecisionEnum;
|
|
25
23
|
/**
|
|
26
24
|
*
|
|
27
|
-
* @type {Array<DecisionMatrixPatternEntry>}
|
|
28
|
-
* @memberof DecisionMatrixPattern
|
|
29
25
|
*/
|
|
30
26
|
entries?: Array<DecisionMatrixPatternEntry>;
|
|
31
27
|
}
|
|
@@ -19,7 +19,7 @@ export const DecisionMatrixPatternDecisionEnum = {
|
|
|
19
19
|
UNREVIEWED: 'UNREVIEWED',
|
|
20
20
|
IN_REVIEW: 'IN_REVIEW',
|
|
21
21
|
DECLINED: 'DECLINED',
|
|
22
|
-
ACCEPTED: 'ACCEPTED'
|
|
22
|
+
ACCEPTED: 'ACCEPTED',
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
25
|
* Check if a given object implements the DecisionMatrixPattern interface.
|
|
@@ -17,14 +17,10 @@
|
|
|
17
17
|
export interface DecisionMatrixPatternEntry {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof DecisionMatrixPatternEntry
|
|
22
20
|
*/
|
|
23
21
|
decision?: DecisionMatrixPatternEntryDecisionEnum;
|
|
24
22
|
/**
|
|
25
23
|
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof DecisionMatrixPatternEntry
|
|
28
24
|
*/
|
|
29
25
|
count?: number;
|
|
30
26
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 type { ProjectSettings } from './ProjectSettings';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Project
|
|
17
|
+
*/
|
|
18
|
+
export interface Project {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
id?: string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
name?: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
status?: ProjectStatusEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
currentStage?: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
maxStage?: number;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
currentStageStartedAt?: Date;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
settings?: ProjectSettings;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @export
|
|
50
|
+
*/
|
|
51
|
+
export declare const ProjectStatusEnum: {
|
|
52
|
+
readonly ACTIVE: "ACTIVE";
|
|
53
|
+
readonly ACTIVE_LOCKED: "ACTIVE_LOCKED";
|
|
54
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
55
|
+
readonly DELETED: "DELETED";
|
|
56
|
+
readonly CLEARED: "CLEARED";
|
|
57
|
+
};
|
|
58
|
+
export type ProjectStatusEnum = typeof ProjectStatusEnum[keyof typeof ProjectStatusEnum];
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the Project interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfProject(value: object): value is Project;
|
|
63
|
+
export declare function ProjectFromJSON(json: any): Project;
|
|
64
|
+
export declare function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Project;
|
|
65
|
+
export declare function ProjectToJSON(json: any): Project;
|
|
66
|
+
export declare function ProjectToJSONTyped(value?: Project | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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
|
+
import { parseDateTime, serializeDateTime } from '../runtime';
|
|
15
|
+
import { ProjectSettingsFromJSON, ProjectSettingsToJSON, } from './ProjectSettings';
|
|
16
|
+
/**
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const ProjectStatusEnum = {
|
|
20
|
+
ACTIVE: 'ACTIVE',
|
|
21
|
+
ACTIVE_LOCKED: 'ACTIVE_LOCKED',
|
|
22
|
+
ARCHIVED: 'ARCHIVED',
|
|
23
|
+
DELETED: 'DELETED',
|
|
24
|
+
CLEARED: 'CLEARED',
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the Project interface.
|
|
28
|
+
*/
|
|
29
|
+
export function instanceOfProject(value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function ProjectFromJSON(json) {
|
|
33
|
+
return ProjectFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function ProjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
41
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
42
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
43
|
+
'currentStage': json['currentStage'] == null ? undefined : json['currentStage'],
|
|
44
|
+
'maxStage': json['maxStage'] == null ? undefined : json['maxStage'],
|
|
45
|
+
'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (parseDateTime(json['currentStageStartedAt'])),
|
|
46
|
+
'settings': json['settings'] == null ? undefined : ProjectSettingsFromJSON(json['settings']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function ProjectToJSON(json) {
|
|
50
|
+
return ProjectToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function ProjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'name': value['name'],
|
|
59
|
+
'status': value['status'],
|
|
60
|
+
'currentStage': value['currentStage'],
|
|
61
|
+
'maxStage': value['maxStage'],
|
|
62
|
+
'currentStageStartedAt': value['currentStageStartedAt'] == null ? value['currentStageStartedAt'] : serializeDateTime(value['currentStageStartedAt']),
|
|
63
|
+
'settings': ProjectSettingsToJSON(value['settings']),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -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 type { ReviewDecisionMatrix } from './ReviewDecisionMatrix';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProjectSettings
|
|
17
|
+
*/
|
|
18
|
+
export interface ProjectSettings {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
similarityThreshold?: number;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
snowballingType?: ProjectSettingsSnowballingTypeEnum;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
reviewMaybeAllowed?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
reviewDecisionMatrix?: ReviewDecisionMatrix;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
fetchers?: {
|
|
39
|
+
[key: string]: {
|
|
40
|
+
[key: string]: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const ProjectSettingsSnowballingTypeEnum: {
|
|
48
|
+
readonly FORWARD: "FORWARD";
|
|
49
|
+
readonly BACKWARD: "BACKWARD";
|
|
50
|
+
readonly BOTH: "BOTH";
|
|
51
|
+
};
|
|
52
|
+
export type ProjectSettingsSnowballingTypeEnum = typeof ProjectSettingsSnowballingTypeEnum[keyof typeof ProjectSettingsSnowballingTypeEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the ProjectSettings interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfProjectSettings(value: object): value is ProjectSettings;
|
|
57
|
+
export declare function ProjectSettingsFromJSON(json: any): ProjectSettings;
|
|
58
|
+
export declare function ProjectSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectSettings;
|
|
59
|
+
export declare function ProjectSettingsToJSON(json: any): ProjectSettings;
|
|
60
|
+
export declare function ProjectSettingsToJSONTyped(value?: ProjectSettings | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -15,66 +15,44 @@ import { ReviewDecisionMatrixFromJSON, ReviewDecisionMatrixToJSON, } from './Rev
|
|
|
15
15
|
/**
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
18
|
-
export const
|
|
19
|
-
ACTIVE: 'ACTIVE',
|
|
20
|
-
ACTIVE_LOCKED: 'ACTIVE_LOCKED',
|
|
21
|
-
ARCHIVED: 'ARCHIVED',
|
|
22
|
-
DELETED: 'DELETED',
|
|
23
|
-
CLEARED: 'CLEARED'
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
|
-
export const ProjectResponseSnowballingTypeEnum = {
|
|
18
|
+
export const ProjectSettingsSnowballingTypeEnum = {
|
|
29
19
|
FORWARD: 'FORWARD',
|
|
30
20
|
BACKWARD: 'BACKWARD',
|
|
31
|
-
BOTH: 'BOTH'
|
|
21
|
+
BOTH: 'BOTH',
|
|
32
22
|
};
|
|
33
23
|
/**
|
|
34
|
-
* Check if a given object implements the
|
|
24
|
+
* Check if a given object implements the ProjectSettings interface.
|
|
35
25
|
*/
|
|
36
|
-
export function
|
|
26
|
+
export function instanceOfProjectSettings(value) {
|
|
37
27
|
return true;
|
|
38
28
|
}
|
|
39
|
-
export function
|
|
40
|
-
return
|
|
29
|
+
export function ProjectSettingsFromJSON(json) {
|
|
30
|
+
return ProjectSettingsFromJSONTyped(json, false);
|
|
41
31
|
}
|
|
42
|
-
export function
|
|
32
|
+
export function ProjectSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
33
|
if (json == null) {
|
|
44
34
|
return json;
|
|
45
35
|
}
|
|
46
36
|
return {
|
|
47
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
48
|
-
'name': json['name'] == null ? undefined : json['name'],
|
|
49
|
-
'status': json['status'] == null ? undefined : json['status'],
|
|
50
|
-
'currentStage': json['currentStage'] == null ? undefined : json['currentStage'],
|
|
51
|
-
'maxStage': json['maxStage'] == null ? undefined : json['maxStage'],
|
|
52
37
|
'similarityThreshold': json['similarityThreshold'] == null ? undefined : json['similarityThreshold'],
|
|
53
38
|
'snowballingType': json['snowballingType'] == null ? undefined : json['snowballingType'],
|
|
54
39
|
'reviewMaybeAllowed': json['reviewMaybeAllowed'] == null ? undefined : json['reviewMaybeAllowed'],
|
|
55
40
|
'reviewDecisionMatrix': json['reviewDecisionMatrix'] == null ? undefined : ReviewDecisionMatrixFromJSON(json['reviewDecisionMatrix']),
|
|
56
41
|
'fetchers': json['fetchers'] == null ? undefined : json['fetchers'],
|
|
57
|
-
'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (new Date(json['currentStageStartedAt'])),
|
|
58
42
|
};
|
|
59
43
|
}
|
|
60
|
-
export function
|
|
61
|
-
return
|
|
44
|
+
export function ProjectSettingsToJSON(json) {
|
|
45
|
+
return ProjectSettingsToJSONTyped(json, false);
|
|
62
46
|
}
|
|
63
|
-
export function
|
|
47
|
+
export function ProjectSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
48
|
if (value == null) {
|
|
65
49
|
return value;
|
|
66
50
|
}
|
|
67
51
|
return {
|
|
68
|
-
'id': value['id'],
|
|
69
|
-
'name': value['name'],
|
|
70
|
-
'status': value['status'],
|
|
71
|
-
'currentStage': value['currentStage'],
|
|
72
|
-
'maxStage': value['maxStage'],
|
|
73
52
|
'similarityThreshold': value['similarityThreshold'],
|
|
74
53
|
'snowballingType': value['snowballingType'],
|
|
75
54
|
'reviewMaybeAllowed': value['reviewMaybeAllowed'],
|
|
76
55
|
'reviewDecisionMatrix': ReviewDecisionMatrixToJSON(value['reviewDecisionMatrix']),
|
|
77
56
|
'fetchers': value['fetchers'],
|
|
78
|
-
'currentStageStartedAt': value['currentStageStartedAt'] == null ? undefined : ((value['currentStageStartedAt']).toISOString()),
|
|
79
57
|
};
|
|
80
58
|
}
|
|
@@ -18,14 +18,10 @@ import type { DecisionMatrixPattern } from './DecisionMatrixPattern';
|
|
|
18
18
|
export interface ReviewDecisionMatrix {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof ReviewDecisionMatrix
|
|
23
21
|
*/
|
|
24
22
|
numberOfReviewers?: number;
|
|
25
23
|
/**
|
|
26
24
|
*
|
|
27
|
-
* @type {Array<DecisionMatrixPattern>}
|
|
28
|
-
* @memberof ReviewDecisionMatrix
|
|
29
25
|
*/
|
|
30
26
|
patterns?: Array<DecisionMatrixPattern>;
|
|
31
27
|
}
|