@se-uulm/snowballr-api-client 0.2.1-alpha.81a413f → 0.2.1-alpha.86ae077
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 +111 -28
- package/dist/apis/AuthControllerApi.d.ts +181 -0
- package/dist/apis/AuthControllerApi.js +216 -0
- package/dist/apis/ProjectsControllerApi.d.ts +66 -13
- package/dist/apis/ProjectsControllerApi.js +60 -23
- package/dist/apis/UsersControllerApi.d.ts +60 -0
- package/dist/apis/UsersControllerApi.js +70 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/AuthControllerApi.d.ts +181 -0
- package/dist/esm/apis/AuthControllerApi.js +212 -0
- package/dist/esm/apis/ProjectsControllerApi.d.ts +66 -13
- package/dist/esm/apis/ProjectsControllerApi.js +59 -22
- package/dist/esm/apis/UsersControllerApi.d.ts +60 -0
- package/dist/esm/apis/UsersControllerApi.js +66 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/ChangePasswordRequest.d.ts +34 -0
- package/dist/esm/models/ChangePasswordRequest.js +43 -0
- package/dist/esm/models/CreateProjectRequest.d.ts +0 -2
- package/dist/esm/models/DecisionMatrixPattern.d.ts +0 -4
- package/dist/esm/models/DecisionMatrixPattern.js +1 -1
- package/dist/esm/models/DecisionMatrixPatternEntry.d.ts +0 -4
- package/dist/esm/models/DecisionMatrixPatternEntry.js +1 -1
- package/dist/esm/models/LoginRequest.d.ts +34 -0
- package/dist/esm/models/LoginRequest.js +43 -0
- package/dist/esm/models/ProjectResponse.d.ts +66 -0
- package/dist/esm/models/ProjectResponse.js +65 -0
- package/dist/esm/models/ProjectSettings.d.ts +60 -0
- package/dist/esm/models/{Project.js → ProjectSettings.js} +10 -32
- package/dist/esm/models/RegisterRequest.d.ts +42 -0
- package/dist/esm/models/RegisterRequest.js +47 -0
- package/dist/esm/models/ReviewDecisionMatrix.d.ts +0 -4
- package/dist/esm/models/index.d.ts +5 -1
- package/dist/esm/models/index.js +5 -1
- package/dist/esm/runtime.d.ts +34 -1
- package/dist/esm/runtime.js +130 -4
- package/dist/models/ChangePasswordRequest.d.ts +34 -0
- package/dist/models/ChangePasswordRequest.js +50 -0
- package/dist/models/CreateProjectRequest.d.ts +0 -2
- package/dist/models/DecisionMatrixPattern.d.ts +0 -4
- package/dist/models/DecisionMatrixPattern.js +1 -1
- package/dist/models/DecisionMatrixPatternEntry.d.ts +0 -4
- package/dist/models/DecisionMatrixPatternEntry.js +1 -1
- package/dist/models/LoginRequest.d.ts +34 -0
- package/dist/models/LoginRequest.js +50 -0
- package/dist/models/ProjectResponse.d.ts +66 -0
- package/dist/models/ProjectResponse.js +73 -0
- package/dist/models/ProjectSettings.d.ts +60 -0
- package/dist/models/ProjectSettings.js +66 -0
- package/dist/models/RegisterRequest.d.ts +42 -0
- package/dist/models/RegisterRequest.js +54 -0
- package/dist/models/ReviewDecisionMatrix.d.ts +0 -4
- package/dist/models/index.d.ts +5 -1
- package/dist/models/index.js +5 -1
- package/dist/runtime.d.ts +34 -1
- package/dist/runtime.js +136 -4
- package/package.json +11 -5
- package/.openapi-generator/FILES +0 -17
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
- package/dist/esm/models/Project.d.ts +0 -117
- package/dist/models/Project.d.ts +0 -117
- package/dist/models/Project.js +0 -88
- 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
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ChangePasswordRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ChangePasswordRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
oldPassword?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
newPassword?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the ChangePasswordRequest interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfChangePasswordRequest(value: object): value is ChangePasswordRequest;
|
|
31
|
+
export declare function ChangePasswordRequestFromJSON(json: any): ChangePasswordRequest;
|
|
32
|
+
export declare function ChangePasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangePasswordRequest;
|
|
33
|
+
export declare function ChangePasswordRequestToJSON(json: any): ChangePasswordRequest;
|
|
34
|
+
export declare function ChangePasswordRequestToJSONTyped(value?: ChangePasswordRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* Check if a given object implements the ChangePasswordRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfChangePasswordRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ChangePasswordRequestFromJSON(json) {
|
|
21
|
+
return ChangePasswordRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ChangePasswordRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'oldPassword': json['oldPassword'] == null ? undefined : json['oldPassword'],
|
|
29
|
+
'newPassword': json['newPassword'] == null ? undefined : json['newPassword'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function ChangePasswordRequestToJSON(json) {
|
|
33
|
+
return ChangePasswordRequestToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function ChangePasswordRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'oldPassword': value['oldPassword'],
|
|
41
|
+
'newPassword': value['newPassword'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -18,14 +18,10 @@ import type { DecisionMatrixPatternEntry } from './DecisionMatrixPatternEntry';
|
|
|
18
18
|
export interface DecisionMatrixPattern {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof DecisionMatrixPattern
|
|
23
21
|
*/
|
|
24
22
|
decision?: DecisionMatrixPatternDecisionEnum;
|
|
25
23
|
/**
|
|
26
24
|
*
|
|
27
|
-
* @type {Array<DecisionMatrixPatternEntry>}
|
|
28
|
-
* @memberof DecisionMatrixPattern
|
|
29
25
|
*/
|
|
30
26
|
entries?: Array<DecisionMatrixPatternEntry>;
|
|
31
27
|
}
|
|
@@ -19,7 +19,7 @@ export const DecisionMatrixPatternDecisionEnum = {
|
|
|
19
19
|
UNREVIEWED: 'UNREVIEWED',
|
|
20
20
|
IN_REVIEW: 'IN_REVIEW',
|
|
21
21
|
DECLINED: 'DECLINED',
|
|
22
|
-
ACCEPTED: 'ACCEPTED'
|
|
22
|
+
ACCEPTED: 'ACCEPTED',
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
25
|
* Check if a given object implements the DecisionMatrixPattern interface.
|
|
@@ -17,14 +17,10 @@
|
|
|
17
17
|
export interface DecisionMatrixPatternEntry {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof DecisionMatrixPatternEntry
|
|
22
20
|
*/
|
|
23
21
|
decision?: DecisionMatrixPatternEntryDecisionEnum;
|
|
24
22
|
/**
|
|
25
23
|
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof DecisionMatrixPatternEntry
|
|
28
24
|
*/
|
|
29
25
|
count?: number;
|
|
30
26
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LoginRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface LoginRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
email?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
password?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the LoginRequest interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfLoginRequest(value: object): value is LoginRequest;
|
|
31
|
+
export declare function LoginRequestFromJSON(json: any): LoginRequest;
|
|
32
|
+
export declare function LoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRequest;
|
|
33
|
+
export declare function LoginRequestToJSON(json: any): LoginRequest;
|
|
34
|
+
export declare function LoginRequestToJSONTyped(value?: LoginRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* Check if a given object implements the LoginRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfLoginRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function LoginRequestFromJSON(json) {
|
|
21
|
+
return LoginRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function LoginRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
29
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function LoginRequestToJSON(json) {
|
|
33
|
+
return LoginRequestToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function LoginRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'email': value['email'],
|
|
41
|
+
'password': value['password'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SnowballR API
|
|
3
|
+
* REST API for the SnowballR Application
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ProjectSettings } from './ProjectSettings';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProjectResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProjectResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
id?: string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
name?: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
status?: ProjectResponseStatusEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
currentStage?: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
maxStage?: number;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
settings?: ProjectSettings;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
currentStageStartedAt?: Date;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @export
|
|
50
|
+
*/
|
|
51
|
+
export declare const ProjectResponseStatusEnum: {
|
|
52
|
+
readonly ACTIVE: "ACTIVE";
|
|
53
|
+
readonly ACTIVE_LOCKED: "ACTIVE_LOCKED";
|
|
54
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
55
|
+
readonly DELETED: "DELETED";
|
|
56
|
+
readonly CLEARED: "CLEARED";
|
|
57
|
+
};
|
|
58
|
+
export type ProjectResponseStatusEnum = typeof ProjectResponseStatusEnum[keyof typeof ProjectResponseStatusEnum];
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the ProjectResponse interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfProjectResponse(value: object): value is ProjectResponse;
|
|
63
|
+
export declare function ProjectResponseFromJSON(json: any): ProjectResponse;
|
|
64
|
+
export declare function ProjectResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectResponse;
|
|
65
|
+
export declare function ProjectResponseToJSON(json: any): ProjectResponse;
|
|
66
|
+
export declare function ProjectResponseToJSONTyped(value?: ProjectResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SnowballR API
|
|
5
|
+
* REST API for the SnowballR Application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { parseDateTime, serializeDateTime } from '../runtime';
|
|
15
|
+
import { ProjectSettingsFromJSON, ProjectSettingsToJSON, } from './ProjectSettings';
|
|
16
|
+
/**
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const ProjectResponseStatusEnum = {
|
|
20
|
+
ACTIVE: 'ACTIVE',
|
|
21
|
+
ACTIVE_LOCKED: 'ACTIVE_LOCKED',
|
|
22
|
+
ARCHIVED: 'ARCHIVED',
|
|
23
|
+
DELETED: 'DELETED',
|
|
24
|
+
CLEARED: 'CLEARED',
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProjectResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export function instanceOfProjectResponse(value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function ProjectResponseFromJSON(json) {
|
|
33
|
+
return ProjectResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function ProjectResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
41
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
42
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
43
|
+
'currentStage': json['currentStage'] == null ? undefined : json['currentStage'],
|
|
44
|
+
'maxStage': json['maxStage'] == null ? undefined : json['maxStage'],
|
|
45
|
+
'settings': json['settings'] == null ? undefined : ProjectSettingsFromJSON(json['settings']),
|
|
46
|
+
'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (parseDateTime(json['currentStageStartedAt'])),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function ProjectResponseToJSON(json) {
|
|
50
|
+
return ProjectResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function ProjectResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'name': value['name'],
|
|
59
|
+
'status': value['status'],
|
|
60
|
+
'currentStage': value['currentStage'],
|
|
61
|
+
'maxStage': value['maxStage'],
|
|
62
|
+
'settings': ProjectSettingsToJSON(value['settings']),
|
|
63
|
+
'currentStageStartedAt': value['currentStageStartedAt'] == null ? value['currentStageStartedAt'] : serializeDateTime(value['currentStageStartedAt']),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SnowballR API
|
|
3
|
+
* REST API for the SnowballR Application
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ReviewDecisionMatrix } from './ReviewDecisionMatrix';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProjectSettings
|
|
17
|
+
*/
|
|
18
|
+
export interface ProjectSettings {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
similarityThreshold?: number;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
snowballingType?: ProjectSettingsSnowballingTypeEnum;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
reviewMaybeAllowed?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
reviewDecisionMatrix?: ReviewDecisionMatrix;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
fetchers?: {
|
|
39
|
+
[key: string]: {
|
|
40
|
+
[key: string]: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const ProjectSettingsSnowballingTypeEnum: {
|
|
48
|
+
readonly FORWARD: "FORWARD";
|
|
49
|
+
readonly BACKWARD: "BACKWARD";
|
|
50
|
+
readonly BOTH: "BOTH";
|
|
51
|
+
};
|
|
52
|
+
export type ProjectSettingsSnowballingTypeEnum = typeof ProjectSettingsSnowballingTypeEnum[keyof typeof ProjectSettingsSnowballingTypeEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the ProjectSettings interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfProjectSettings(value: object): value is ProjectSettings;
|
|
57
|
+
export declare function ProjectSettingsFromJSON(json: any): ProjectSettings;
|
|
58
|
+
export declare function ProjectSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectSettings;
|
|
59
|
+
export declare function ProjectSettingsToJSON(json: any): ProjectSettings;
|
|
60
|
+
export declare function ProjectSettingsToJSONTyped(value?: ProjectSettings | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -15,66 +15,44 @@ import { ReviewDecisionMatrixFromJSON, ReviewDecisionMatrixToJSON, } from './Rev
|
|
|
15
15
|
/**
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
18
|
-
export const
|
|
19
|
-
ACTIVE: 'ACTIVE',
|
|
20
|
-
ACTIVE_LOCKED: 'ACTIVE_LOCKED',
|
|
21
|
-
ARCHIVED: 'ARCHIVED',
|
|
22
|
-
DELETED: 'DELETED',
|
|
23
|
-
CLEARED: 'CLEARED'
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
|
-
export const ProjectSnowballingTypeEnum = {
|
|
18
|
+
export const ProjectSettingsSnowballingTypeEnum = {
|
|
29
19
|
FORWARD: 'FORWARD',
|
|
30
20
|
BACKWARD: 'BACKWARD',
|
|
31
|
-
BOTH: 'BOTH'
|
|
21
|
+
BOTH: 'BOTH',
|
|
32
22
|
};
|
|
33
23
|
/**
|
|
34
|
-
* Check if a given object implements the
|
|
24
|
+
* Check if a given object implements the ProjectSettings interface.
|
|
35
25
|
*/
|
|
36
|
-
export function
|
|
26
|
+
export function instanceOfProjectSettings(value) {
|
|
37
27
|
return true;
|
|
38
28
|
}
|
|
39
|
-
export function
|
|
40
|
-
return
|
|
29
|
+
export function ProjectSettingsFromJSON(json) {
|
|
30
|
+
return ProjectSettingsFromJSONTyped(json, false);
|
|
41
31
|
}
|
|
42
|
-
export function
|
|
32
|
+
export function ProjectSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
33
|
if (json == null) {
|
|
44
34
|
return json;
|
|
45
35
|
}
|
|
46
36
|
return {
|
|
47
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
48
|
-
'name': json['name'] == null ? undefined : json['name'],
|
|
49
|
-
'status': json['status'] == null ? undefined : json['status'],
|
|
50
|
-
'currentStage': json['currentStage'] == null ? undefined : json['currentStage'],
|
|
51
|
-
'maxStage': json['maxStage'] == null ? undefined : json['maxStage'],
|
|
52
37
|
'similarityThreshold': json['similarityThreshold'] == null ? undefined : json['similarityThreshold'],
|
|
53
38
|
'snowballingType': json['snowballingType'] == null ? undefined : json['snowballingType'],
|
|
54
39
|
'reviewMaybeAllowed': json['reviewMaybeAllowed'] == null ? undefined : json['reviewMaybeAllowed'],
|
|
55
40
|
'reviewDecisionMatrix': json['reviewDecisionMatrix'] == null ? undefined : ReviewDecisionMatrixFromJSON(json['reviewDecisionMatrix']),
|
|
56
41
|
'fetchers': json['fetchers'] == null ? undefined : json['fetchers'],
|
|
57
|
-
'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (new Date(json['currentStageStartedAt'])),
|
|
58
42
|
};
|
|
59
43
|
}
|
|
60
|
-
export function
|
|
61
|
-
return
|
|
44
|
+
export function ProjectSettingsToJSON(json) {
|
|
45
|
+
return ProjectSettingsToJSONTyped(json, false);
|
|
62
46
|
}
|
|
63
|
-
export function
|
|
47
|
+
export function ProjectSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
48
|
if (value == null) {
|
|
65
49
|
return value;
|
|
66
50
|
}
|
|
67
51
|
return {
|
|
68
|
-
'id': value['id'],
|
|
69
|
-
'name': value['name'],
|
|
70
|
-
'status': value['status'],
|
|
71
|
-
'currentStage': value['currentStage'],
|
|
72
|
-
'maxStage': value['maxStage'],
|
|
73
52
|
'similarityThreshold': value['similarityThreshold'],
|
|
74
53
|
'snowballingType': value['snowballingType'],
|
|
75
54
|
'reviewMaybeAllowed': value['reviewMaybeAllowed'],
|
|
76
55
|
'reviewDecisionMatrix': ReviewDecisionMatrixToJSON(value['reviewDecisionMatrix']),
|
|
77
56
|
'fetchers': value['fetchers'],
|
|
78
|
-
'currentStageStartedAt': value['currentStageStartedAt'] == null ? undefined : ((value['currentStageStartedAt']).toISOString()),
|
|
79
57
|
};
|
|
80
58
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RegisterRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface RegisterRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
firstName?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
lastName?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
email?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
password?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the RegisterRequest interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfRegisterRequest(value: object): value is RegisterRequest;
|
|
39
|
+
export declare function RegisterRequestFromJSON(json: any): RegisterRequest;
|
|
40
|
+
export declare function RegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterRequest;
|
|
41
|
+
export declare function RegisterRequestToJSON(json: any): RegisterRequest;
|
|
42
|
+
export declare function RegisterRequestToJSONTyped(value?: RegisterRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* Check if a given object implements the RegisterRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfRegisterRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function RegisterRequestFromJSON(json) {
|
|
21
|
+
return RegisterRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function RegisterRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
|
29
|
+
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
|
30
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
31
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function RegisterRequestToJSON(json) {
|
|
35
|
+
return RegisterRequestToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function RegisterRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'firstName': value['firstName'],
|
|
43
|
+
'lastName': value['lastName'],
|
|
44
|
+
'email': value['email'],
|
|
45
|
+
'password': value['password'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -18,14 +18,10 @@ import type { DecisionMatrixPattern } from './DecisionMatrixPattern';
|
|
|
18
18
|
export interface ReviewDecisionMatrix {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof ReviewDecisionMatrix
|
|
23
21
|
*/
|
|
24
22
|
numberOfReviewers?: number;
|
|
25
23
|
/**
|
|
26
24
|
*
|
|
27
|
-
* @type {Array<DecisionMatrixPattern>}
|
|
28
|
-
* @memberof ReviewDecisionMatrix
|
|
29
25
|
*/
|
|
30
26
|
patterns?: Array<DecisionMatrixPattern>;
|
|
31
27
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
export * from './ChangePasswordRequest';
|
|
1
2
|
export * from './CreateProjectRequest';
|
|
2
3
|
export * from './DecisionMatrixPattern';
|
|
3
4
|
export * from './DecisionMatrixPatternEntry';
|
|
4
|
-
export * from './
|
|
5
|
+
export * from './LoginRequest';
|
|
6
|
+
export * from './ProjectResponse';
|
|
7
|
+
export * from './ProjectSettings';
|
|
8
|
+
export * from './RegisterRequest';
|
|
5
9
|
export * from './ReviewDecisionMatrix';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './ChangePasswordRequest';
|
|
3
4
|
export * from './CreateProjectRequest';
|
|
4
5
|
export * from './DecisionMatrixPattern';
|
|
5
6
|
export * from './DecisionMatrixPatternEntry';
|
|
6
|
-
export * from './
|
|
7
|
+
export * from './LoginRequest';
|
|
8
|
+
export * from './ProjectResponse';
|
|
9
|
+
export * from './ProjectSettings';
|
|
10
|
+
export * from './RegisterRequest';
|
|
7
11
|
export * from './ReviewDecisionMatrix';
|
package/dist/esm/runtime.d.ts
CHANGED
|
@@ -124,9 +124,21 @@ export interface RequestOpts {
|
|
|
124
124
|
}
|
|
125
125
|
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
126
126
|
export declare function exists(json: any, key: string): boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Every generated date call site routes through these.
|
|
129
|
+
*
|
|
130
|
+
* `format: date` is a calendar date, with no time and no offset, so it is converted
|
|
131
|
+
* against the local calendar on both ends: they have to agree or the date shifts by
|
|
132
|
+
* a day. `format: date-time` is an instant and uses UTC.
|
|
133
|
+
*/
|
|
134
|
+
export declare function serializeDateTime(value: Date): string;
|
|
135
|
+
export declare function serializeDate(value: Date): string;
|
|
136
|
+
export declare function parseDate(value: Date | string): Date;
|
|
137
|
+
export declare function parseDateTime(value: any): Date;
|
|
127
138
|
export declare function mapValues(data: any, fn: (item: any) => any): {
|
|
128
139
|
[key: string]: any;
|
|
129
140
|
};
|
|
141
|
+
export declare function anyToJSON(value: any): any;
|
|
130
142
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
131
143
|
export interface Consume {
|
|
132
144
|
contentType: string;
|
|
@@ -172,11 +184,32 @@ export declare class VoidApiResponse {
|
|
|
172
184
|
constructor(raw: Response);
|
|
173
185
|
value(): Promise<void>;
|
|
174
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* A Blob carrying the file name the server advertised, empty when it did not send one. It is a File
|
|
189
|
+
* wherever one can be built, and the bare Blob given a name otherwise. Same name and shape as the
|
|
190
|
+
* `typescript` generator's browser HttpFile.
|
|
191
|
+
*/
|
|
192
|
+
export type HttpFile = Blob & {
|
|
193
|
+
readonly name: string;
|
|
194
|
+
};
|
|
175
195
|
export declare class BlobApiResponse {
|
|
176
196
|
raw: Response;
|
|
177
197
|
constructor(raw: Response);
|
|
178
|
-
|
|
198
|
+
/**
|
|
199
|
+
* The body named after the Content-Disposition header, so that a download keeps the name the
|
|
200
|
+
* server gave it. A File is built from a native Blob; the Blob itself is named where there is no
|
|
201
|
+
* global File (Node.js before 20), where File cannot be constructed, or where the Blob is not the
|
|
202
|
+
* native one, as returned by an injected fetch implementation such as node-fetch, which a File
|
|
203
|
+
* would stringify instead of wrapping.
|
|
204
|
+
*/
|
|
205
|
+
value(): Promise<HttpFile>;
|
|
179
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* The file name advertised by a Content-Disposition header (RFC 6266): the RFC 5987 encoded
|
|
209
|
+
* `filename*` parameter first, falling back to the plain `filename` when it is malformed, not UTF-8
|
|
210
|
+
* or has no usable name. Any directory part is dropped; undefined when no usable name is advertised.
|
|
211
|
+
*/
|
|
212
|
+
export declare function parseContentDispositionFilename(headers: Headers): string | undefined;
|
|
180
213
|
export declare class TextApiResponse {
|
|
181
214
|
raw: Response;
|
|
182
215
|
constructor(raw: Response);
|