@se-uulm/snowballr-api-client 0.2.1-alpha.fba5056 → 0.2.1-alpha.ff694c3
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 +18 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -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/Project.d.ts +80 -0
- package/dist/esm/models/Project.js +64 -0
- package/dist/esm/models/ProjectSettings.d.ts +70 -0
- package/dist/esm/models/{ProjectResponse.js → ProjectSettings.js} +9 -31
- package/dist/esm/models/index.d.ts +2 -4
- package/dist/esm/models/index.js +2 -4
- package/dist/models/Project.d.ts +80 -0
- package/dist/models/Project.js +72 -0
- package/dist/models/ProjectSettings.d.ts +70 -0
- package/dist/models/ProjectSettings.js +66 -0
- package/dist/models/index.d.ts +2 -4
- package/dist/models/index.js +2 -4
- package/package.json +4 -10
- package/src/apis/ProjectsControllerApi.ts +238 -0
- package/src/apis/index.ts +3 -0
- package/src/index.ts +5 -0
- package/src/models/CreateProjectRequest.ts +65 -0
- package/src/models/DecisionMatrixPattern.ts +94 -0
- package/src/models/DecisionMatrixPatternEntry.ts +85 -0
- package/src/models/Project.ts +135 -0
- package/src/models/ProjectSettings.ts +117 -0
- package/src/models/ReviewDecisionMatrix.ts +81 -0
- package/src/models/index.ts +8 -0
- package/src/runtime.ts +432 -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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.gitignore
|
|
2
|
+
.npmignore
|
|
3
|
+
.openapi-generator-ignore
|
|
4
|
+
README.md
|
|
5
|
+
package.json
|
|
6
|
+
src/apis/ProjectsControllerApi.ts
|
|
7
|
+
src/apis/index.ts
|
|
8
|
+
src/index.ts
|
|
9
|
+
src/models/CreateProjectRequest.ts
|
|
10
|
+
src/models/DecisionMatrixPattern.ts
|
|
11
|
+
src/models/DecisionMatrixPatternEntry.ts
|
|
12
|
+
src/models/Project.ts
|
|
13
|
+
src/models/ProjectSettings.ts
|
|
14
|
+
src/models/ReviewDecisionMatrix.ts
|
|
15
|
+
src/models/index.ts
|
|
16
|
+
src/runtime.ts
|
|
17
|
+
tsconfig.esm.json
|
|
18
|
+
tsconfig.json
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7.14.0
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# OpenAPI Generator Ignore
|
|
2
|
+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
3
|
+
|
|
4
|
+
# Use this file to prevent files from being overwritten by the generator.
|
|
5
|
+
# The patterns follow closely to .gitignore or .dockerignore.
|
|
6
|
+
|
|
7
|
+
# As an example, the C# client generator defines ApiClient.cs.
|
|
8
|
+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
9
|
+
#ApiClient.cs
|
|
10
|
+
|
|
11
|
+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
12
|
+
#foo/*/qux
|
|
13
|
+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
14
|
+
|
|
15
|
+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
16
|
+
#foo/**/qux
|
|
17
|
+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
18
|
+
|
|
19
|
+
# You can also negate patterns with an exclamation (!).
|
|
20
|
+
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
21
|
+
#docs/*.md
|
|
22
|
+
# Then explicitly reverse the ignore rule for a single file:
|
|
23
|
+
#!docs/README.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @se-uulm/snowballr-api-client@0.2.1-alpha.
|
|
1
|
+
## @se-uulm/snowballr-api-client@0.2.1-alpha.ff694c3
|
|
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.2.1-alpha.
|
|
39
|
+
npm install @se-uulm/snowballr-api-client@0.2.1-alpha.ff694c3 --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
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
* @type {string}
|
|
22
|
+
* @memberof Project
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Project
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Project
|
|
35
|
+
*/
|
|
36
|
+
status?: ProjectStatusEnum;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof Project
|
|
41
|
+
*/
|
|
42
|
+
currentStage?: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof Project
|
|
47
|
+
*/
|
|
48
|
+
maxStage?: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof Project
|
|
53
|
+
*/
|
|
54
|
+
currentStageStartedAt?: Date;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {ProjectSettings}
|
|
58
|
+
* @memberof Project
|
|
59
|
+
*/
|
|
60
|
+
settings?: ProjectSettings;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const ProjectStatusEnum: {
|
|
66
|
+
readonly ACTIVE: "ACTIVE";
|
|
67
|
+
readonly ACTIVE_LOCKED: "ACTIVE_LOCKED";
|
|
68
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
69
|
+
readonly DELETED: "DELETED";
|
|
70
|
+
readonly CLEARED: "CLEARED";
|
|
71
|
+
};
|
|
72
|
+
export type ProjectStatusEnum = typeof ProjectStatusEnum[keyof typeof ProjectStatusEnum];
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the Project interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfProject(value: object): value is Project;
|
|
77
|
+
export declare function ProjectFromJSON(json: any): Project;
|
|
78
|
+
export declare function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Project;
|
|
79
|
+
export declare function ProjectToJSON(json: any): Project;
|
|
80
|
+
export declare function ProjectToJSONTyped(value?: Project | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { ProjectSettingsFromJSON, ProjectSettingsToJSON, } from './ProjectSettings';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ProjectStatusEnum = {
|
|
19
|
+
ACTIVE: 'ACTIVE',
|
|
20
|
+
ACTIVE_LOCKED: 'ACTIVE_LOCKED',
|
|
21
|
+
ARCHIVED: 'ARCHIVED',
|
|
22
|
+
DELETED: 'DELETED',
|
|
23
|
+
CLEARED: 'CLEARED'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the Project interface.
|
|
27
|
+
*/
|
|
28
|
+
export function instanceOfProject(value) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function ProjectFromJSON(json) {
|
|
32
|
+
return ProjectFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function ProjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
40
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
41
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
42
|
+
'currentStage': json['currentStage'] == null ? undefined : json['currentStage'],
|
|
43
|
+
'maxStage': json['maxStage'] == null ? undefined : json['maxStage'],
|
|
44
|
+
'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (new Date(json['currentStageStartedAt'])),
|
|
45
|
+
'settings': json['settings'] == null ? undefined : ProjectSettingsFromJSON(json['settings']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function ProjectToJSON(json) {
|
|
49
|
+
return ProjectToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function ProjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'id': value['id'],
|
|
57
|
+
'name': value['name'],
|
|
58
|
+
'status': value['status'],
|
|
59
|
+
'currentStage': value['currentStage'],
|
|
60
|
+
'maxStage': value['maxStage'],
|
|
61
|
+
'currentStageStartedAt': value['currentStageStartedAt'] == null ? undefined : ((value['currentStageStartedAt']).toISOString()),
|
|
62
|
+
'settings': ProjectSettingsToJSON(value['settings']),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
* @type {number}
|
|
22
|
+
* @memberof ProjectSettings
|
|
23
|
+
*/
|
|
24
|
+
similarityThreshold?: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ProjectSettings
|
|
29
|
+
*/
|
|
30
|
+
snowballingType?: ProjectSettingsSnowballingTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof ProjectSettings
|
|
35
|
+
*/
|
|
36
|
+
reviewMaybeAllowed?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ReviewDecisionMatrix}
|
|
40
|
+
* @memberof ProjectSettings
|
|
41
|
+
*/
|
|
42
|
+
reviewDecisionMatrix?: ReviewDecisionMatrix;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
46
|
+
* @memberof ProjectSettings
|
|
47
|
+
*/
|
|
48
|
+
fetchers?: {
|
|
49
|
+
[key: string]: {
|
|
50
|
+
[key: string]: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @export
|
|
56
|
+
*/
|
|
57
|
+
export declare const ProjectSettingsSnowballingTypeEnum: {
|
|
58
|
+
readonly FORWARD: "FORWARD";
|
|
59
|
+
readonly BACKWARD: "BACKWARD";
|
|
60
|
+
readonly BOTH: "BOTH";
|
|
61
|
+
};
|
|
62
|
+
export type ProjectSettingsSnowballingTypeEnum = typeof ProjectSettingsSnowballingTypeEnum[keyof typeof ProjectSettingsSnowballingTypeEnum];
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the ProjectSettings interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfProjectSettings(value: object): value is ProjectSettings;
|
|
67
|
+
export declare function ProjectSettingsFromJSON(json: any): ProjectSettings;
|
|
68
|
+
export declare function ProjectSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectSettings;
|
|
69
|
+
export declare function ProjectSettingsToJSON(json: any): ProjectSettings;
|
|
70
|
+
export declare function ProjectSettingsToJSONTyped(value?: ProjectSettings | null, ignoreDiscriminator?: boolean): any;
|