@se-uulm/snowballr-api-client 0.2.1-alpha.fba5056 → 0.2.1-beta.00af41f
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 +17 -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/{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 +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 +177 -0
- package/src/models/ReviewDecisionMatrix.ts +81 -0
- package/src/models/index.ts +7 -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/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
|
@@ -0,0 +1,17 @@
|
|
|
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/ReviewDecisionMatrix.ts
|
|
14
|
+
src/models/index.ts
|
|
15
|
+
src/runtime.ts
|
|
16
|
+
tsconfig.esm.json
|
|
17
|
+
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-
|
|
1
|
+
## @se-uulm/snowballr-api-client@0.2.1-beta.00af41f
|
|
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-
|
|
39
|
+
npm install @se-uulm/snowballr-api-client@0.2.1-beta.00af41f --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';
|