@se-uulm/snowballr-api-client 0.2.1-alpha.ccb4642 → 0.2.1-alpha.cf8bc3c
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/README.md +2 -2
- package/dist/esm/models/Project.d.ts +5 -42
- package/dist/esm/models/Project.js +3 -19
- package/dist/esm/models/ProjectSettings.d.ts +70 -0
- package/dist/esm/models/ProjectSettings.js +58 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/Project.d.ts +5 -42
- package/dist/models/Project.js +4 -20
- package/dist/models/ProjectSettings.d.ts +70 -0
- package/dist/models/ProjectSettings.js +66 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +10 -4
- package/.openapi-generator/FILES +0 -17
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
- package/src/apis/ProjectsControllerApi.ts +0 -238
- package/src/apis/index.ts +0 -3
- package/src/index.ts +0 -5
- package/src/models/CreateProjectRequest.ts +0 -65
- package/src/models/DecisionMatrixPattern.ts +0 -94
- package/src/models/DecisionMatrixPatternEntry.ts +0 -85
- package/src/models/Project.ts +0 -177
- package/src/models/ReviewDecisionMatrix.ts +0 -81
- package/src/models/index.ts +0 -7
- package/src/runtime.ts +0 -432
- package/tsconfig.esm.json +0 -7
- package/tsconfig.json +0 -16
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.cf8bc3c
|
|
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.cf8bc3c --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { ProjectSettings } from './ProjectSettings';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -48,44 +48,16 @@ export interface Project {
|
|
|
48
48
|
maxStage?: number;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {
|
|
52
|
-
* @memberof Project
|
|
53
|
-
*/
|
|
54
|
-
similarityThreshold?: number;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof Project
|
|
59
|
-
*/
|
|
60
|
-
snowballingType?: ProjectSnowballingTypeEnum;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {boolean}
|
|
64
|
-
* @memberof Project
|
|
65
|
-
*/
|
|
66
|
-
reviewMaybeAllowed?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {ReviewDecisionMatrix}
|
|
51
|
+
* @type {Date}
|
|
70
52
|
* @memberof Project
|
|
71
53
|
*/
|
|
72
|
-
|
|
54
|
+
currentStageStartedAt?: Date;
|
|
73
55
|
/**
|
|
74
56
|
*
|
|
75
|
-
* @type {
|
|
57
|
+
* @type {ProjectSettings}
|
|
76
58
|
* @memberof Project
|
|
77
59
|
*/
|
|
78
|
-
|
|
79
|
-
[key: string]: {
|
|
80
|
-
[key: string]: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {Date}
|
|
86
|
-
* @memberof Project
|
|
87
|
-
*/
|
|
88
|
-
currentStageStartedAt?: Date;
|
|
60
|
+
settings?: ProjectSettings;
|
|
89
61
|
}
|
|
90
62
|
/**
|
|
91
63
|
* @export
|
|
@@ -98,15 +70,6 @@ export declare const ProjectStatusEnum: {
|
|
|
98
70
|
readonly CLEARED: "CLEARED";
|
|
99
71
|
};
|
|
100
72
|
export type ProjectStatusEnum = typeof ProjectStatusEnum[keyof typeof ProjectStatusEnum];
|
|
101
|
-
/**
|
|
102
|
-
* @export
|
|
103
|
-
*/
|
|
104
|
-
export declare const ProjectSnowballingTypeEnum: {
|
|
105
|
-
readonly FORWARD: "FORWARD";
|
|
106
|
-
readonly BACKWARD: "BACKWARD";
|
|
107
|
-
readonly BOTH: "BOTH";
|
|
108
|
-
};
|
|
109
|
-
export type ProjectSnowballingTypeEnum = typeof ProjectSnowballingTypeEnum[keyof typeof ProjectSnowballingTypeEnum];
|
|
110
73
|
/**
|
|
111
74
|
* Check if a given object implements the Project interface.
|
|
112
75
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { ProjectSettingsFromJSON, ProjectSettingsToJSON, } from './ProjectSettings';
|
|
15
15
|
/**
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
@@ -22,14 +22,6 @@ export const ProjectStatusEnum = {
|
|
|
22
22
|
DELETED: 'DELETED',
|
|
23
23
|
CLEARED: 'CLEARED'
|
|
24
24
|
};
|
|
25
|
-
/**
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
|
-
export const ProjectSnowballingTypeEnum = {
|
|
29
|
-
FORWARD: 'FORWARD',
|
|
30
|
-
BACKWARD: 'BACKWARD',
|
|
31
|
-
BOTH: 'BOTH'
|
|
32
|
-
};
|
|
33
25
|
/**
|
|
34
26
|
* Check if a given object implements the Project interface.
|
|
35
27
|
*/
|
|
@@ -49,12 +41,8 @@ export function ProjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
41
|
'status': json['status'] == null ? undefined : json['status'],
|
|
50
42
|
'currentStage': json['currentStage'] == null ? undefined : json['currentStage'],
|
|
51
43
|
'maxStage': json['maxStage'] == null ? undefined : json['maxStage'],
|
|
52
|
-
'similarityThreshold': json['similarityThreshold'] == null ? undefined : json['similarityThreshold'],
|
|
53
|
-
'snowballingType': json['snowballingType'] == null ? undefined : json['snowballingType'],
|
|
54
|
-
'reviewMaybeAllowed': json['reviewMaybeAllowed'] == null ? undefined : json['reviewMaybeAllowed'],
|
|
55
|
-
'reviewDecisionMatrix': json['reviewDecisionMatrix'] == null ? undefined : ReviewDecisionMatrixFromJSON(json['reviewDecisionMatrix']),
|
|
56
|
-
'fetchers': json['fetchers'] == null ? undefined : json['fetchers'],
|
|
57
44
|
'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (new Date(json['currentStageStartedAt'])),
|
|
45
|
+
'settings': json['settings'] == null ? undefined : ProjectSettingsFromJSON(json['settings']),
|
|
58
46
|
};
|
|
59
47
|
}
|
|
60
48
|
export function ProjectToJSON(json) {
|
|
@@ -70,11 +58,7 @@ export function ProjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
58
|
'status': value['status'],
|
|
71
59
|
'currentStage': value['currentStage'],
|
|
72
60
|
'maxStage': value['maxStage'],
|
|
73
|
-
'similarityThreshold': value['similarityThreshold'],
|
|
74
|
-
'snowballingType': value['snowballingType'],
|
|
75
|
-
'reviewMaybeAllowed': value['reviewMaybeAllowed'],
|
|
76
|
-
'reviewDecisionMatrix': ReviewDecisionMatrixToJSON(value['reviewDecisionMatrix']),
|
|
77
|
-
'fetchers': value['fetchers'],
|
|
78
61
|
'currentStageStartedAt': value['currentStageStartedAt'] == null ? undefined : ((value['currentStageStartedAt']).toISOString()),
|
|
62
|
+
'settings': ProjectSettingsToJSON(value['settings']),
|
|
79
63
|
};
|
|
80
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;
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { ReviewDecisionMatrixFromJSON, ReviewDecisionMatrixToJSON, } from './ReviewDecisionMatrix';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ProjectSettingsSnowballingTypeEnum = {
|
|
19
|
+
FORWARD: 'FORWARD',
|
|
20
|
+
BACKWARD: 'BACKWARD',
|
|
21
|
+
BOTH: 'BOTH'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ProjectSettings interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfProjectSettings(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function ProjectSettingsFromJSON(json) {
|
|
30
|
+
return ProjectSettingsFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function ProjectSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'similarityThreshold': json['similarityThreshold'] == null ? undefined : json['similarityThreshold'],
|
|
38
|
+
'snowballingType': json['snowballingType'] == null ? undefined : json['snowballingType'],
|
|
39
|
+
'reviewMaybeAllowed': json['reviewMaybeAllowed'] == null ? undefined : json['reviewMaybeAllowed'],
|
|
40
|
+
'reviewDecisionMatrix': json['reviewDecisionMatrix'] == null ? undefined : ReviewDecisionMatrixFromJSON(json['reviewDecisionMatrix']),
|
|
41
|
+
'fetchers': json['fetchers'] == null ? undefined : json['fetchers'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function ProjectSettingsToJSON(json) {
|
|
45
|
+
return ProjectSettingsToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function ProjectSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'similarityThreshold': value['similarityThreshold'],
|
|
53
|
+
'snowballingType': value['snowballingType'],
|
|
54
|
+
'reviewMaybeAllowed': value['reviewMaybeAllowed'],
|
|
55
|
+
'reviewDecisionMatrix': ReviewDecisionMatrixToJSON(value['reviewDecisionMatrix']),
|
|
56
|
+
'fetchers': value['fetchers'],
|
|
57
|
+
};
|
|
58
|
+
}
|
package/dist/esm/models/index.js
CHANGED
package/dist/models/Project.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { ProjectSettings } from './ProjectSettings';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -48,44 +48,16 @@ export interface Project {
|
|
|
48
48
|
maxStage?: number;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {
|
|
52
|
-
* @memberof Project
|
|
53
|
-
*/
|
|
54
|
-
similarityThreshold?: number;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof Project
|
|
59
|
-
*/
|
|
60
|
-
snowballingType?: ProjectSnowballingTypeEnum;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {boolean}
|
|
64
|
-
* @memberof Project
|
|
65
|
-
*/
|
|
66
|
-
reviewMaybeAllowed?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {ReviewDecisionMatrix}
|
|
51
|
+
* @type {Date}
|
|
70
52
|
* @memberof Project
|
|
71
53
|
*/
|
|
72
|
-
|
|
54
|
+
currentStageStartedAt?: Date;
|
|
73
55
|
/**
|
|
74
56
|
*
|
|
75
|
-
* @type {
|
|
57
|
+
* @type {ProjectSettings}
|
|
76
58
|
* @memberof Project
|
|
77
59
|
*/
|
|
78
|
-
|
|
79
|
-
[key: string]: {
|
|
80
|
-
[key: string]: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {Date}
|
|
86
|
-
* @memberof Project
|
|
87
|
-
*/
|
|
88
|
-
currentStageStartedAt?: Date;
|
|
60
|
+
settings?: ProjectSettings;
|
|
89
61
|
}
|
|
90
62
|
/**
|
|
91
63
|
* @export
|
|
@@ -98,15 +70,6 @@ export declare const ProjectStatusEnum: {
|
|
|
98
70
|
readonly CLEARED: "CLEARED";
|
|
99
71
|
};
|
|
100
72
|
export type ProjectStatusEnum = typeof ProjectStatusEnum[keyof typeof ProjectStatusEnum];
|
|
101
|
-
/**
|
|
102
|
-
* @export
|
|
103
|
-
*/
|
|
104
|
-
export declare const ProjectSnowballingTypeEnum: {
|
|
105
|
-
readonly FORWARD: "FORWARD";
|
|
106
|
-
readonly BACKWARD: "BACKWARD";
|
|
107
|
-
readonly BOTH: "BOTH";
|
|
108
|
-
};
|
|
109
|
-
export type ProjectSnowballingTypeEnum = typeof ProjectSnowballingTypeEnum[keyof typeof ProjectSnowballingTypeEnum];
|
|
110
73
|
/**
|
|
111
74
|
* Check if a given object implements the Project interface.
|
|
112
75
|
*/
|
package/dist/models/Project.js
CHANGED
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.ProjectStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfProject = instanceOfProject;
|
|
18
18
|
exports.ProjectFromJSON = ProjectFromJSON;
|
|
19
19
|
exports.ProjectFromJSONTyped = ProjectFromJSONTyped;
|
|
20
20
|
exports.ProjectToJSON = ProjectToJSON;
|
|
21
21
|
exports.ProjectToJSONTyped = ProjectToJSONTyped;
|
|
22
|
-
const
|
|
22
|
+
const ProjectSettings_1 = require("./ProjectSettings");
|
|
23
23
|
/**
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
@@ -30,14 +30,6 @@ exports.ProjectStatusEnum = {
|
|
|
30
30
|
DELETED: 'DELETED',
|
|
31
31
|
CLEARED: 'CLEARED'
|
|
32
32
|
};
|
|
33
|
-
/**
|
|
34
|
-
* @export
|
|
35
|
-
*/
|
|
36
|
-
exports.ProjectSnowballingTypeEnum = {
|
|
37
|
-
FORWARD: 'FORWARD',
|
|
38
|
-
BACKWARD: 'BACKWARD',
|
|
39
|
-
BOTH: 'BOTH'
|
|
40
|
-
};
|
|
41
33
|
/**
|
|
42
34
|
* Check if a given object implements the Project interface.
|
|
43
35
|
*/
|
|
@@ -57,12 +49,8 @@ function ProjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
49
|
'status': json['status'] == null ? undefined : json['status'],
|
|
58
50
|
'currentStage': json['currentStage'] == null ? undefined : json['currentStage'],
|
|
59
51
|
'maxStage': json['maxStage'] == null ? undefined : json['maxStage'],
|
|
60
|
-
'similarityThreshold': json['similarityThreshold'] == null ? undefined : json['similarityThreshold'],
|
|
61
|
-
'snowballingType': json['snowballingType'] == null ? undefined : json['snowballingType'],
|
|
62
|
-
'reviewMaybeAllowed': json['reviewMaybeAllowed'] == null ? undefined : json['reviewMaybeAllowed'],
|
|
63
|
-
'reviewDecisionMatrix': json['reviewDecisionMatrix'] == null ? undefined : (0, ReviewDecisionMatrix_1.ReviewDecisionMatrixFromJSON)(json['reviewDecisionMatrix']),
|
|
64
|
-
'fetchers': json['fetchers'] == null ? undefined : json['fetchers'],
|
|
65
52
|
'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (new Date(json['currentStageStartedAt'])),
|
|
53
|
+
'settings': json['settings'] == null ? undefined : (0, ProjectSettings_1.ProjectSettingsFromJSON)(json['settings']),
|
|
66
54
|
};
|
|
67
55
|
}
|
|
68
56
|
function ProjectToJSON(json) {
|
|
@@ -78,11 +66,7 @@ function ProjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
66
|
'status': value['status'],
|
|
79
67
|
'currentStage': value['currentStage'],
|
|
80
68
|
'maxStage': value['maxStage'],
|
|
81
|
-
'similarityThreshold': value['similarityThreshold'],
|
|
82
|
-
'snowballingType': value['snowballingType'],
|
|
83
|
-
'reviewMaybeAllowed': value['reviewMaybeAllowed'],
|
|
84
|
-
'reviewDecisionMatrix': (0, ReviewDecisionMatrix_1.ReviewDecisionMatrixToJSON)(value['reviewDecisionMatrix']),
|
|
85
|
-
'fetchers': value['fetchers'],
|
|
86
69
|
'currentStageStartedAt': value['currentStageStartedAt'] == null ? undefined : ((value['currentStageStartedAt']).toISOString()),
|
|
70
|
+
'settings': (0, ProjectSettings_1.ProjectSettingsToJSON)(value['settings']),
|
|
87
71
|
};
|
|
88
72
|
}
|
|
@@ -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;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* SnowballR API
|
|
6
|
+
* REST API for the SnowballR Application
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ProjectSettingsSnowballingTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfProjectSettings = instanceOfProjectSettings;
|
|
18
|
+
exports.ProjectSettingsFromJSON = ProjectSettingsFromJSON;
|
|
19
|
+
exports.ProjectSettingsFromJSONTyped = ProjectSettingsFromJSONTyped;
|
|
20
|
+
exports.ProjectSettingsToJSON = ProjectSettingsToJSON;
|
|
21
|
+
exports.ProjectSettingsToJSONTyped = ProjectSettingsToJSONTyped;
|
|
22
|
+
const ReviewDecisionMatrix_1 = require("./ReviewDecisionMatrix");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ProjectSettingsSnowballingTypeEnum = {
|
|
27
|
+
FORWARD: 'FORWARD',
|
|
28
|
+
BACKWARD: 'BACKWARD',
|
|
29
|
+
BOTH: 'BOTH'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ProjectSettings interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfProjectSettings(value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function ProjectSettingsFromJSON(json) {
|
|
38
|
+
return ProjectSettingsFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function ProjectSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'similarityThreshold': json['similarityThreshold'] == null ? undefined : json['similarityThreshold'],
|
|
46
|
+
'snowballingType': json['snowballingType'] == null ? undefined : json['snowballingType'],
|
|
47
|
+
'reviewMaybeAllowed': json['reviewMaybeAllowed'] == null ? undefined : json['reviewMaybeAllowed'],
|
|
48
|
+
'reviewDecisionMatrix': json['reviewDecisionMatrix'] == null ? undefined : (0, ReviewDecisionMatrix_1.ReviewDecisionMatrixFromJSON)(json['reviewDecisionMatrix']),
|
|
49
|
+
'fetchers': json['fetchers'] == null ? undefined : json['fetchers'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function ProjectSettingsToJSON(json) {
|
|
53
|
+
return ProjectSettingsToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function ProjectSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'similarityThreshold': value['similarityThreshold'],
|
|
61
|
+
'snowballingType': value['snowballingType'],
|
|
62
|
+
'reviewMaybeAllowed': value['reviewMaybeAllowed'],
|
|
63
|
+
'reviewDecisionMatrix': (0, ReviewDecisionMatrix_1.ReviewDecisionMatrixToJSON)(value['reviewDecisionMatrix']),
|
|
64
|
+
'fetchers': value['fetchers'],
|
|
65
|
+
};
|
|
66
|
+
}
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
|
@@ -20,4 +20,5 @@ __exportStar(require("./CreateProjectRequest"), exports);
|
|
|
20
20
|
__exportStar(require("./DecisionMatrixPattern"), exports);
|
|
21
21
|
__exportStar(require("./DecisionMatrixPatternEntry"), exports);
|
|
22
22
|
__exportStar(require("./Project"), exports);
|
|
23
|
+
__exportStar(require("./ProjectSettings"), exports);
|
|
23
24
|
__exportStar(require("./ReviewDecisionMatrix"), exports);
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@se-uulm/snowballr-api-client",
|
|
3
|
-
"version": "0.2.1-alpha.
|
|
4
|
-
"description": "
|
|
5
|
-
"author": "
|
|
3
|
+
"version": "0.2.1-alpha.cf8bc3c",
|
|
4
|
+
"description": "API client for the SnowballR Web Application",
|
|
5
|
+
"author": "SnowballR",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/SE-UUlm/snowballr-backend.git"
|
|
@@ -18,5 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"typescript": "^4.0 || ^5.0"
|
|
21
|
-
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"README.md",
|
|
25
|
+
"LICENSE",
|
|
26
|
+
"CHANGELOG.md"
|
|
27
|
+
]
|
|
22
28
|
}
|
package/.openapi-generator/FILES
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
7.14.0
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|