@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
package/.openapi-generator/FILES
CHANGED
|
@@ -3,18 +3,13 @@
|
|
|
3
3
|
.openapi-generator-ignore
|
|
4
4
|
README.md
|
|
5
5
|
package.json
|
|
6
|
-
src/apis/AuthControllerApi.ts
|
|
7
6
|
src/apis/ProjectsControllerApi.ts
|
|
8
|
-
src/apis/UsersControllerApi.ts
|
|
9
7
|
src/apis/index.ts
|
|
10
8
|
src/index.ts
|
|
11
|
-
src/models/ChangePasswordRequest.ts
|
|
12
9
|
src/models/CreateProjectRequest.ts
|
|
13
10
|
src/models/DecisionMatrixPattern.ts
|
|
14
11
|
src/models/DecisionMatrixPatternEntry.ts
|
|
15
|
-
src/models/
|
|
16
|
-
src/models/ProjectResponse.ts
|
|
17
|
-
src/models/RegisterRequest.ts
|
|
12
|
+
src/models/Project.ts
|
|
18
13
|
src/models/ReviewDecisionMatrix.ts
|
|
19
14
|
src/models/index.ts
|
|
20
15
|
src/runtime.ts
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,58 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.0] - 2026-08-16
|
|
4
|
+
|
|
5
|
+
This version uses API version [v0.16.0](https://github.com/SE-UUlm/snowballr-api/releases/tag/v0.16.0).
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Change external ID format from a string to a list of type-value pairs ([#514](https://github.com/SE-UUlm/snowballr-backend/issues/514)) (Felix Schlegel)
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Add paper comparison and merging functionality ([#499](https://github.com/SE-UUlm/snowballr-backend/issues/499)) (Felix Schlegel)
|
|
14
|
+
- Start REST migration
|
|
15
|
+
- add initial endpoints ([#573](https://github.com/SE-UUlm/snowballr-backend/issues/573)) (Felix Schlegel)
|
|
16
|
+
- publish TS client on npm as `@se-uulm/snowballr-api-client` ([#581](https://github.com/SE-UUlm/snowballr-backend/issues/581)) (Felix Schlegel)
|
|
17
|
+
- Add implementation of `SearchLocalProjectPaperCandidates` call ([#504](https://github.com/SE-UUlm/snowballr-backend/issues/504)) (Felix Schlegel)
|
|
18
|
+
- Add implementation of `SearchFetcherProjectPaperCandidates` call ([#440](https://github.com/SE-UUlm/snowballr-backend/issues/440)) (Felix Schlegel)
|
|
19
|
+
- Add fetcher orchestrator ([#493](https://github.com/SE-UUlm/snowballr-backend/issues/493), [#441](https://github.com/SE-UUlm/snowballr-backend/issues/441)) (Felix Schlegel)
|
|
20
|
+
- Add implementation of `ChangePassword` call ([#93](https://github.com/SE-UUlm/snowballr-backend/issues/93)) (Moritz Wieland)
|
|
21
|
+
- Add fetcher plugin system ([#123](https://github.com/SE-UUlm/snowballr-backend/issues/123), [#152](https://github.com/SE-UUlm/snowballr-backend/issues/152), [#154](https://github.com/SE-UUlm/snowballr-backend/issues/154), [#155](https://github.com/SE-UUlm/snowballr-backend/issues/155), [#468](https://github.com/SE-UUlm/snowballr-backend/issues/468), [#451](https://github.com/SE-UUlm/snowballr-backend/issues/451), [#437](https://github.com/SE-UUlm/snowballr-backend/issues/437), [#497](https://github.com/SE-UUlm/snowballr-backend/issues/497), [#529](https://github.com/SE-UUlm/snowballr-backend/issues/529)) (Luca Schlecker, Moritz Wieland, Felix Schlegel)
|
|
22
|
+
- IEEE Xplore fetcher ([#152](https://github.com/SE-UUlm/snowballr-backend/issues/152)) (Luca Schlecker)
|
|
23
|
+
- Semantic Scholar fetcher ([#513](https://github.com/SE-UUlm/snowballr-backend/issues/513)) (Felix Schlegel)
|
|
24
|
+
- Enable update of number of reviewers and decision matrix in project settings (`UpdateProject`) ([#433](https://github.com/SE-UUlm/snowballr-backend/issues/433)) (Felix Schlegel)
|
|
25
|
+
- Add more details to project invitation and account verification emails ([#364](https://github.com/SE-UUlm/snowballr-backend/issues/364)) (Felix Schlegel)
|
|
26
|
+
- project invitation: inviter name, project name, and invitation expiration time
|
|
27
|
+
- account verification: verification expiration time
|
|
28
|
+
- Make token lifetimes configurable via `INVITATION_TOKEN_LIFETIME_IN_DAYS` and `VERIFICATION_TOKEN_LIFETIME_IN_DAYS` ([#364](https://github.com/SE-UUlm/snowballr-backend/issues/364)) (Felix Schlegel)
|
|
29
|
+
- Determine the final paper decision based on the decision matrix (`CreateReview`) ([#345](https://github.com/SE-UUlm/snowballr-backend/issues/345)) (Leonhard Alkewitz)
|
|
30
|
+
- Add project export functionality via `GetAvailableExportFormats` and `ExportProject` ([#363](https://github.com/SE-UUlm/snowballr-backend/issues/363), [#187](https://github.com/SE-UUlm/snowballr-backend/issues/187)) (Felix Schlegel)
|
|
31
|
+
- Add Cron jobs ([#317](https://github.com/SE-UUlm/snowballr-backend/issues/317)) (Moritz Wieland)
|
|
32
|
+
- every day at 12:00 AM
|
|
33
|
+
- remove expired verification or invitation tokens
|
|
34
|
+
- clear information of soft-deleted users and projects after X days (configured by `SENSITIVE_INFORMATION_RETENTION_DAYS`)
|
|
35
|
+
- first day of every month at 12:00 AM
|
|
36
|
+
- remove soft-deleted users and projects that have been cleared
|
|
37
|
+
|
|
38
|
+
### Fixed
|
|
39
|
+
|
|
40
|
+
- Set project status to `ACTIVE_LOCKED` after first review (`CreateReview`) ([#525](https://github.com/SE-UUlm/snowballr-backend/issues/525)) (Felix Schlegel)
|
|
41
|
+
- Fix privilege escalation via field-mask key mismatch (`UpdateUser`) ([#527](https://github.com/SE-UUlm/snowballr-backend/issues/527)) (Moritz Wieland)
|
|
42
|
+
- Return `FORBIDDEN` status when deleted project is requested by non-admin user (`GetProjectById`) ([#420](https://github.com/SE-UUlm/snowballr-backend/issues/420)) (Felix Schlegel)
|
|
43
|
+
- Enable update of project fetcher settings (`UpdateProject`) ([#421](https://github.com/SE-UUlm/snowballr-backend/issues/421)) (Felix Schlegel)
|
|
44
|
+
- Delete invitations when the related project is deleted (`SoftDeleteProject`) ([#391](https://github.com/SE-UUlm/snowballr-backend/issues/391)) (Felix Schlegel)
|
|
45
|
+
- Enable removal of registered non-member users (`RemoveProjectMember`) ([#417](https://github.com/SE-UUlm/snowballr-backend/issues/417)) (Felix Schlegel)
|
|
46
|
+
- Ignore invitations for already existent project members (`InviteUserToProject`) ([#408](https://github.com/SE-UUlm/snowballr-backend/issues/408)) (Felix Schlegel)
|
|
47
|
+
- Enable removal of pending invitations for not registered users (`RemoveProjectMember`) ([#361](https://github.com/SE-UUlm/snowballr-backend/issues/361)) (Felix Schlegel)
|
|
48
|
+
- Remove already invited users from invite candidates (`GetInviteCandidates`) ([#357](https://github.com/SE-UUlm/snowballr-backend/issues/357)) (Leonhard Alkewitz)
|
|
49
|
+
|
|
3
50
|
## [0.1.0] - 2025-10-31
|
|
4
51
|
|
|
5
52
|
_:seedling: Initial release._
|
|
6
53
|
|
|
7
54
|
This version uses API version [v0.9.0](https://github.com/SE-UUlm/snowballr-api/releases/tag/v0.9.0).
|
|
8
55
|
|
|
56
|
+
[0.2.0]: https://github.com/SE-UUlm/snowballr-backend/releases/tag/v0.2.0
|
|
57
|
+
|
|
9
58
|
[0.1.0]: https://github.com/SE-UUlm/snowballr-backend/releases/tag/v0.1.0
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @se-uulm/snowballr-api-client@0.1.1-alpha.
|
|
1
|
+
## @se-uulm/snowballr-api-client@0.1.1-alpha.ffc778d
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @se-uulm/snowballr-api-client@0.1.1-alpha.
|
|
39
|
+
npm install @se-uulm/snowballr-api-client@0.1.1-alpha.ffc778d --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateProjectRequest,
|
|
13
|
+
import type { CreateProjectRequest, Project } from '../models/index';
|
|
14
14
|
export interface CreateProjectOperationRequest {
|
|
15
15
|
createProjectRequest: CreateProjectRequest;
|
|
16
16
|
}
|
|
@@ -34,10 +34,10 @@ export interface ProjectsControllerApiInterface {
|
|
|
34
34
|
* @throws {RequiredError}
|
|
35
35
|
* @memberof ProjectsControllerApiInterface
|
|
36
36
|
*/
|
|
37
|
-
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
37
|
+
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
|
|
38
38
|
/**
|
|
39
39
|
*/
|
|
40
|
-
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
40
|
+
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @param {string} id
|
|
@@ -55,10 +55,10 @@ export interface ProjectsControllerApiInterface {
|
|
|
55
55
|
* @throws {RequiredError}
|
|
56
56
|
* @memberof ProjectsControllerApiInterface
|
|
57
57
|
*/
|
|
58
|
-
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<
|
|
58
|
+
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>>;
|
|
59
59
|
/**
|
|
60
60
|
*/
|
|
61
|
-
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<
|
|
61
|
+
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
64
|
* @param {string} id
|
|
@@ -66,10 +66,10 @@ export interface ProjectsControllerApiInterface {
|
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
* @memberof ProjectsControllerApiInterface
|
|
68
68
|
*/
|
|
69
|
-
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
69
|
+
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
|
|
70
70
|
/**
|
|
71
71
|
*/
|
|
72
|
-
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
72
|
+
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
@@ -77,10 +77,10 @@ export interface ProjectsControllerApiInterface {
|
|
|
77
77
|
export declare class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsControllerApiInterface {
|
|
78
78
|
/**
|
|
79
79
|
*/
|
|
80
|
-
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
80
|
+
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
|
|
81
81
|
/**
|
|
82
82
|
*/
|
|
83
|
-
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
83
|
+
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
84
84
|
/**
|
|
85
85
|
*/
|
|
86
86
|
deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
@@ -89,14 +89,14 @@ export declare class ProjectsControllerApi extends runtime.BaseAPI implements Pr
|
|
|
89
89
|
deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
90
90
|
/**
|
|
91
91
|
*/
|
|
92
|
-
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<
|
|
92
|
+
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>>;
|
|
93
93
|
/**
|
|
94
94
|
*/
|
|
95
|
-
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<
|
|
95
|
+
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
|
|
96
96
|
/**
|
|
97
97
|
*/
|
|
98
|
-
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
98
|
+
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
|
|
99
99
|
/**
|
|
100
100
|
*/
|
|
101
|
-
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
101
|
+
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
102
102
|
}
|
|
@@ -39,7 +39,7 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
39
39
|
const queryParameters = {};
|
|
40
40
|
const headerParameters = {};
|
|
41
41
|
headerParameters['Content-Type'] = 'application/json';
|
|
42
|
-
let urlPath = `/
|
|
42
|
+
let urlPath = `/projects`;
|
|
43
43
|
const response = yield this.request({
|
|
44
44
|
path: urlPath,
|
|
45
45
|
method: 'POST',
|
|
@@ -47,7 +47,7 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
47
47
|
query: queryParameters,
|
|
48
48
|
body: (0, index_1.CreateProjectRequestToJSON)(requestParameters['createProjectRequest']),
|
|
49
49
|
}, initOverrides);
|
|
50
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
50
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectFromJSON)(jsonValue));
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
@@ -67,7 +67,7 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
67
67
|
}
|
|
68
68
|
const queryParameters = {};
|
|
69
69
|
const headerParameters = {};
|
|
70
|
-
let urlPath = `/
|
|
70
|
+
let urlPath = `/projects/{id}`;
|
|
71
71
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
72
72
|
const response = yield this.request({
|
|
73
73
|
path: urlPath,
|
|
@@ -91,14 +91,14 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
91
91
|
return __awaiter(this, void 0, void 0, function* () {
|
|
92
92
|
const queryParameters = {};
|
|
93
93
|
const headerParameters = {};
|
|
94
|
-
let urlPath = `/
|
|
94
|
+
let urlPath = `/projects`;
|
|
95
95
|
const response = yield this.request({
|
|
96
96
|
path: urlPath,
|
|
97
97
|
method: 'GET',
|
|
98
98
|
headers: headerParameters,
|
|
99
99
|
query: queryParameters,
|
|
100
100
|
}, initOverrides);
|
|
101
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.
|
|
101
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ProjectFromJSON));
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
@@ -118,7 +118,7 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
118
118
|
}
|
|
119
119
|
const queryParameters = {};
|
|
120
120
|
const headerParameters = {};
|
|
121
|
-
let urlPath = `/
|
|
121
|
+
let urlPath = `/projects/{id}`;
|
|
122
122
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
123
123
|
const response = yield this.request({
|
|
124
124
|
path: urlPath,
|
|
@@ -126,7 +126,7 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
126
126
|
headers: headerParameters,
|
|
127
127
|
query: queryParameters,
|
|
128
128
|
}, initOverrides);
|
|
129
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
129
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectFromJSON)(jsonValue));
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
/**
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -16,6 +16,4 @@ 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("./AuthControllerApi"), exports);
|
|
20
19
|
__exportStar(require("./ProjectsControllerApi"), exports);
|
|
21
|
-
__exportStar(require("./UsersControllerApi"), exports);
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateProjectRequest,
|
|
13
|
+
import type { CreateProjectRequest, Project } from '../models/index';
|
|
14
14
|
export interface CreateProjectOperationRequest {
|
|
15
15
|
createProjectRequest: CreateProjectRequest;
|
|
16
16
|
}
|
|
@@ -34,10 +34,10 @@ export interface ProjectsControllerApiInterface {
|
|
|
34
34
|
* @throws {RequiredError}
|
|
35
35
|
* @memberof ProjectsControllerApiInterface
|
|
36
36
|
*/
|
|
37
|
-
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
37
|
+
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
|
|
38
38
|
/**
|
|
39
39
|
*/
|
|
40
|
-
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
40
|
+
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @param {string} id
|
|
@@ -55,10 +55,10 @@ export interface ProjectsControllerApiInterface {
|
|
|
55
55
|
* @throws {RequiredError}
|
|
56
56
|
* @memberof ProjectsControllerApiInterface
|
|
57
57
|
*/
|
|
58
|
-
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<
|
|
58
|
+
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>>;
|
|
59
59
|
/**
|
|
60
60
|
*/
|
|
61
|
-
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<
|
|
61
|
+
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
64
|
* @param {string} id
|
|
@@ -66,10 +66,10 @@ export interface ProjectsControllerApiInterface {
|
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
* @memberof ProjectsControllerApiInterface
|
|
68
68
|
*/
|
|
69
|
-
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
69
|
+
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
|
|
70
70
|
/**
|
|
71
71
|
*/
|
|
72
|
-
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
72
|
+
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
@@ -77,10 +77,10 @@ export interface ProjectsControllerApiInterface {
|
|
|
77
77
|
export declare class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsControllerApiInterface {
|
|
78
78
|
/**
|
|
79
79
|
*/
|
|
80
|
-
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
80
|
+
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
|
|
81
81
|
/**
|
|
82
82
|
*/
|
|
83
|
-
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
83
|
+
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
84
84
|
/**
|
|
85
85
|
*/
|
|
86
86
|
deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
@@ -89,14 +89,14 @@ export declare class ProjectsControllerApi extends runtime.BaseAPI implements Pr
|
|
|
89
89
|
deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
90
90
|
/**
|
|
91
91
|
*/
|
|
92
|
-
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<
|
|
92
|
+
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>>;
|
|
93
93
|
/**
|
|
94
94
|
*/
|
|
95
|
-
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<
|
|
95
|
+
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
|
|
96
96
|
/**
|
|
97
97
|
*/
|
|
98
|
-
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
98
|
+
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
|
|
99
99
|
/**
|
|
100
100
|
*/
|
|
101
|
-
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
101
|
+
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
|
|
102
102
|
}
|
|
@@ -21,7 +21,7 @@ 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, ProjectFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -36,7 +36,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
36
36
|
const queryParameters = {};
|
|
37
37
|
const headerParameters = {};
|
|
38
38
|
headerParameters['Content-Type'] = 'application/json';
|
|
39
|
-
let urlPath = `/
|
|
39
|
+
let urlPath = `/projects`;
|
|
40
40
|
const response = yield this.request({
|
|
41
41
|
path: urlPath,
|
|
42
42
|
method: 'POST',
|
|
@@ -44,7 +44,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
44
44
|
query: queryParameters,
|
|
45
45
|
body: CreateProjectRequestToJSON(requestParameters['createProjectRequest']),
|
|
46
46
|
}, initOverrides);
|
|
47
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
47
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
@@ -64,7 +64,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
64
64
|
}
|
|
65
65
|
const queryParameters = {};
|
|
66
66
|
const headerParameters = {};
|
|
67
|
-
let urlPath = `/
|
|
67
|
+
let urlPath = `/projects/{id}`;
|
|
68
68
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
69
69
|
const response = yield this.request({
|
|
70
70
|
path: urlPath,
|
|
@@ -88,14 +88,14 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
88
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
89
|
const queryParameters = {};
|
|
90
90
|
const headerParameters = {};
|
|
91
|
-
let urlPath = `/
|
|
91
|
+
let urlPath = `/projects`;
|
|
92
92
|
const response = yield this.request({
|
|
93
93
|
path: urlPath,
|
|
94
94
|
method: 'GET',
|
|
95
95
|
headers: headerParameters,
|
|
96
96
|
query: queryParameters,
|
|
97
97
|
}, initOverrides);
|
|
98
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
98
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectFromJSON));
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
@@ -115,7 +115,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
115
115
|
}
|
|
116
116
|
const queryParameters = {};
|
|
117
117
|
const headerParameters = {};
|
|
118
|
-
let urlPath = `/
|
|
118
|
+
let urlPath = `/projects/{id}`;
|
|
119
119
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
120
120
|
const response = yield this.request({
|
|
121
121
|
path: urlPath,
|
|
@@ -123,7 +123,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
123
123
|
headers: headerParameters,
|
|
124
124
|
query: queryParameters,
|
|
125
125
|
}, initOverrides);
|
|
126
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
126
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
/**
|
package/dist/esm/apis/index.d.ts
CHANGED
package/dist/esm/apis/index.js
CHANGED
|
@@ -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;
|
|
@@ -15,7 +15,7 @@ import { ReviewDecisionMatrixFromJSON, ReviewDecisionMatrixToJSON, } from './Rev
|
|
|
15
15
|
/**
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
18
|
-
export const
|
|
18
|
+
export const ProjectStatusEnum = {
|
|
19
19
|
ACTIVE: 'ACTIVE',
|
|
20
20
|
ACTIVE_LOCKED: 'ACTIVE_LOCKED',
|
|
21
21
|
ARCHIVED: 'ARCHIVED',
|
|
@@ -25,21 +25,21 @@ export const ProjectResponseStatusEnum = {
|
|
|
25
25
|
/**
|
|
26
26
|
* @export
|
|
27
27
|
*/
|
|
28
|
-
export const
|
|
28
|
+
export const ProjectSnowballingTypeEnum = {
|
|
29
29
|
FORWARD: 'FORWARD',
|
|
30
30
|
BACKWARD: 'BACKWARD',
|
|
31
31
|
BOTH: 'BOTH'
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
|
-
* Check if a given object implements the
|
|
34
|
+
* Check if a given object implements the Project interface.
|
|
35
35
|
*/
|
|
36
|
-
export function
|
|
36
|
+
export function instanceOfProject(value) {
|
|
37
37
|
return true;
|
|
38
38
|
}
|
|
39
|
-
export function
|
|
40
|
-
return
|
|
39
|
+
export function ProjectFromJSON(json) {
|
|
40
|
+
return ProjectFromJSONTyped(json, false);
|
|
41
41
|
}
|
|
42
|
-
export function
|
|
42
|
+
export function ProjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
43
|
if (json == null) {
|
|
44
44
|
return json;
|
|
45
45
|
}
|
|
@@ -57,10 +57,10 @@ export function ProjectResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (new Date(json['currentStageStartedAt'])),
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
export function
|
|
61
|
-
return
|
|
60
|
+
export function ProjectToJSON(json) {
|
|
61
|
+
return ProjectToJSONTyped(json, false);
|
|
62
62
|
}
|
|
63
|
-
export function
|
|
63
|
+
export function ProjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
64
|
if (value == null) {
|
|
65
65
|
return value;
|
|
66
66
|
}
|
|
@@ -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/esm/models/index.js
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';
|