@se-uulm/snowballr-api-client 0.2.1-alpha.5864cf1 → 0.2.1-alpha.5b91c23

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.
Files changed (48) hide show
  1. package/README.md +111 -28
  2. package/dist/apis/AuthControllerApi.d.ts +64 -1
  3. package/dist/apis/AuthControllerApi.js +64 -18
  4. package/dist/apis/ProjectsControllerApi.d.ts +54 -1
  5. package/dist/apis/ProjectsControllerApi.js +56 -19
  6. package/dist/apis/UsersControllerApi.d.ts +15 -1
  7. package/dist/apis/UsersControllerApi.js +14 -5
  8. package/dist/esm/apis/AuthControllerApi.d.ts +64 -1
  9. package/dist/esm/apis/AuthControllerApi.js +62 -16
  10. package/dist/esm/apis/ProjectsControllerApi.d.ts +54 -1
  11. package/dist/esm/apis/ProjectsControllerApi.js +52 -15
  12. package/dist/esm/apis/UsersControllerApi.d.ts +15 -1
  13. package/dist/esm/apis/UsersControllerApi.js +13 -4
  14. package/dist/esm/models/ChangePasswordRequest.d.ts +0 -4
  15. package/dist/esm/models/CreateProjectRequest.d.ts +0 -2
  16. package/dist/esm/models/DecisionMatrixPattern.d.ts +0 -4
  17. package/dist/esm/models/DecisionMatrixPattern.js +1 -1
  18. package/dist/esm/models/DecisionMatrixPatternEntry.d.ts +0 -4
  19. package/dist/esm/models/DecisionMatrixPatternEntry.js +1 -1
  20. package/dist/esm/models/LoginRequest.d.ts +0 -4
  21. package/dist/esm/models/ProjectResponse.d.ts +2 -53
  22. package/dist/esm/models/ProjectResponse.js +7 -22
  23. package/dist/esm/models/ProjectSettings.d.ts +60 -0
  24. package/dist/esm/models/ProjectSettings.js +58 -0
  25. package/dist/esm/models/RegisterRequest.d.ts +0 -8
  26. package/dist/esm/models/ReviewDecisionMatrix.d.ts +0 -4
  27. package/dist/esm/models/index.d.ts +1 -0
  28. package/dist/esm/models/index.js +1 -0
  29. package/dist/esm/runtime.d.ts +34 -1
  30. package/dist/esm/runtime.js +130 -4
  31. package/dist/models/ChangePasswordRequest.d.ts +0 -4
  32. package/dist/models/CreateProjectRequest.d.ts +0 -2
  33. package/dist/models/DecisionMatrixPattern.d.ts +0 -4
  34. package/dist/models/DecisionMatrixPattern.js +1 -1
  35. package/dist/models/DecisionMatrixPatternEntry.d.ts +0 -4
  36. package/dist/models/DecisionMatrixPatternEntry.js +1 -1
  37. package/dist/models/LoginRequest.d.ts +0 -4
  38. package/dist/models/ProjectResponse.d.ts +2 -53
  39. package/dist/models/ProjectResponse.js +8 -23
  40. package/dist/models/ProjectSettings.d.ts +60 -0
  41. package/dist/models/ProjectSettings.js +66 -0
  42. package/dist/models/RegisterRequest.d.ts +0 -8
  43. package/dist/models/ReviewDecisionMatrix.d.ts +0 -4
  44. package/dist/models/index.d.ts +1 -0
  45. package/dist/models/index.js +1 -0
  46. package/dist/runtime.d.ts +34 -1
  47. package/dist/runtime.js +136 -4
  48. package/package.json +2 -2
@@ -21,14 +21,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { CreateProjectRequestToJSON, ProjectResponseFromJSON, } from '../models/index';
24
+ import { CreateProjectRequestToJSON, } from '../models/CreateProjectRequest';
25
+ import { ProjectResponseFromJSON, } from '../models/ProjectResponse';
25
26
  /**
26
27
  *
27
28
  */
28
29
  export class ProjectsControllerApi extends runtime.BaseAPI {
29
30
  /**
31
+ * Creates request options for createProject without sending the request
30
32
  */
31
- createProjectRaw(requestParameters, initOverrides) {
33
+ createProjectRequestOpts(requestParameters) {
32
34
  return __awaiter(this, void 0, void 0, function* () {
33
35
  if (requestParameters['createProjectRequest'] == null) {
34
36
  throw new runtime.RequiredError('createProjectRequest', 'Required parameter "createProjectRequest" was null or undefined when calling createProject().');
@@ -37,13 +39,21 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
37
39
  const headerParameters = {};
38
40
  headerParameters['Content-Type'] = 'application/json';
39
41
  let urlPath = `/api/v1/projects`;
40
- const response = yield this.request({
42
+ return {
41
43
  path: urlPath,
42
44
  method: 'POST',
43
45
  headers: headerParameters,
44
46
  query: queryParameters,
45
47
  body: CreateProjectRequestToJSON(requestParameters['createProjectRequest']),
46
- }, initOverrides);
48
+ };
49
+ });
50
+ }
51
+ /**
52
+ */
53
+ createProjectRaw(requestParameters, initOverrides) {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ const requestOptions = yield this.createProjectRequestOpts(requestParameters);
56
+ const response = yield this.request(requestOptions, initOverrides);
47
57
  return new runtime.JSONApiResponse(response, (jsonValue) => ProjectResponseFromJSON(jsonValue));
48
58
  });
49
59
  }
@@ -56,8 +66,9 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
56
66
  });
57
67
  }
58
68
  /**
69
+ * Creates request options for deleteProject without sending the request
59
70
  */
60
- deleteProjectRaw(requestParameters, initOverrides) {
71
+ deleteProjectRequestOpts(requestParameters) {
61
72
  return __awaiter(this, void 0, void 0, function* () {
62
73
  if (requestParameters['id'] == null) {
63
74
  throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteProject().');
@@ -65,13 +76,21 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
65
76
  const queryParameters = {};
66
77
  const headerParameters = {};
67
78
  let urlPath = `/api/v1/projects/{id}`;
68
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
69
- const response = yield this.request({
79
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
80
+ return {
70
81
  path: urlPath,
71
82
  method: 'DELETE',
72
83
  headers: headerParameters,
73
84
  query: queryParameters,
74
- }, initOverrides);
85
+ };
86
+ });
87
+ }
88
+ /**
89
+ */
90
+ deleteProjectRaw(requestParameters, initOverrides) {
91
+ return __awaiter(this, void 0, void 0, function* () {
92
+ const requestOptions = yield this.deleteProjectRequestOpts(requestParameters);
93
+ const response = yield this.request(requestOptions, initOverrides);
75
94
  return new runtime.VoidApiResponse(response);
76
95
  });
77
96
  }
@@ -83,18 +102,27 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
83
102
  });
84
103
  }
85
104
  /**
105
+ * Creates request options for getAllProjects without sending the request
86
106
  */
87
- getAllProjectsRaw(initOverrides) {
107
+ getAllProjectsRequestOpts() {
88
108
  return __awaiter(this, void 0, void 0, function* () {
89
109
  const queryParameters = {};
90
110
  const headerParameters = {};
91
111
  let urlPath = `/api/v1/projects`;
92
- const response = yield this.request({
112
+ return {
93
113
  path: urlPath,
94
114
  method: 'GET',
95
115
  headers: headerParameters,
96
116
  query: queryParameters,
97
- }, initOverrides);
117
+ };
118
+ });
119
+ }
120
+ /**
121
+ */
122
+ getAllProjectsRaw(initOverrides) {
123
+ return __awaiter(this, void 0, void 0, function* () {
124
+ const requestOptions = yield this.getAllProjectsRequestOpts();
125
+ const response = yield this.request(requestOptions, initOverrides);
98
126
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectResponseFromJSON));
99
127
  });
100
128
  }
@@ -107,8 +135,9 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
107
135
  });
108
136
  }
109
137
  /**
138
+ * Creates request options for getProject without sending the request
110
139
  */
111
- getProjectRaw(requestParameters, initOverrides) {
140
+ getProjectRequestOpts(requestParameters) {
112
141
  return __awaiter(this, void 0, void 0, function* () {
113
142
  if (requestParameters['id'] == null) {
114
143
  throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getProject().');
@@ -116,13 +145,21 @@ export class ProjectsControllerApi extends runtime.BaseAPI {
116
145
  const queryParameters = {};
117
146
  const headerParameters = {};
118
147
  let urlPath = `/api/v1/projects/{id}`;
119
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
120
- const response = yield this.request({
148
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
149
+ return {
121
150
  path: urlPath,
122
151
  method: 'GET',
123
152
  headers: headerParameters,
124
153
  query: queryParameters,
125
- }, initOverrides);
154
+ };
155
+ });
156
+ }
157
+ /**
158
+ */
159
+ getProjectRaw(requestParameters, initOverrides) {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ const requestOptions = yield this.getProjectRequestOpts(requestParameters);
162
+ const response = yield this.request(requestOptions, initOverrides);
126
163
  return new runtime.JSONApiResponse(response, (jsonValue) => ProjectResponseFromJSON(jsonValue));
127
164
  });
128
165
  }
@@ -10,8 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { RegisterRequest } from '../models/index';
13
+ import { type RegisterRequest } from '../models/RegisterRequest';
14
14
  export interface RegisterOperationRequest {
15
+ /**
16
+ *
17
+ */
15
18
  registerRequest: RegisterRequest;
16
19
  }
17
20
  /**
@@ -21,6 +24,13 @@ export interface RegisterOperationRequest {
21
24
  * @interface UsersControllerApiInterface
22
25
  */
23
26
  export interface UsersControllerApiInterface {
27
+ /**
28
+ * Creates request options for register without sending the request
29
+ * @param {RegisterRequest} registerRequest
30
+ * @throws {RequiredError}
31
+ * @memberof UsersControllerApiInterface
32
+ */
33
+ registerRequestOpts(requestParameters: RegisterOperationRequest): Promise<runtime.RequestOpts>;
24
34
  /**
25
35
  *
26
36
  * @param {RegisterRequest} registerRequest
@@ -37,6 +47,10 @@ export interface UsersControllerApiInterface {
37
47
  *
38
48
  */
39
49
  export declare class UsersControllerApi extends runtime.BaseAPI implements UsersControllerApiInterface {
50
+ /**
51
+ * Creates request options for register without sending the request
52
+ */
53
+ registerRequestOpts(requestParameters: RegisterOperationRequest): Promise<runtime.RequestOpts>;
40
54
  /**
41
55
  */
42
56
  registerRaw(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
@@ -21,14 +21,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { RegisterRequestToJSON, } from '../models/index';
24
+ import { RegisterRequestToJSON, } from '../models/RegisterRequest';
25
25
  /**
26
26
  *
27
27
  */
28
28
  export class UsersControllerApi extends runtime.BaseAPI {
29
29
  /**
30
+ * Creates request options for register without sending the request
30
31
  */
31
- registerRaw(requestParameters, initOverrides) {
32
+ registerRequestOpts(requestParameters) {
32
33
  return __awaiter(this, void 0, void 0, function* () {
33
34
  if (requestParameters['registerRequest'] == null) {
34
35
  throw new runtime.RequiredError('registerRequest', 'Required parameter "registerRequest" was null or undefined when calling register().');
@@ -37,13 +38,21 @@ export class UsersControllerApi extends runtime.BaseAPI {
37
38
  const headerParameters = {};
38
39
  headerParameters['Content-Type'] = 'application/json';
39
40
  let urlPath = `/api/v1/users`;
40
- const response = yield this.request({
41
+ return {
41
42
  path: urlPath,
42
43
  method: 'POST',
43
44
  headers: headerParameters,
44
45
  query: queryParameters,
45
46
  body: RegisterRequestToJSON(requestParameters['registerRequest']),
46
- }, initOverrides);
47
+ };
48
+ });
49
+ }
50
+ /**
51
+ */
52
+ registerRaw(requestParameters, initOverrides) {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ const requestOptions = yield this.registerRequestOpts(requestParameters);
55
+ const response = yield this.request(requestOptions, initOverrides);
47
56
  return new runtime.VoidApiResponse(response);
48
57
  });
49
58
  }
@@ -17,14 +17,10 @@
17
17
  export interface ChangePasswordRequest {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof ChangePasswordRequest
22
20
  */
23
21
  oldPassword?: string;
24
22
  /**
25
23
  *
26
- * @type {string}
27
- * @memberof ChangePasswordRequest
28
24
  */
29
25
  newPassword?: string;
30
26
  }
@@ -17,8 +17,6 @@
17
17
  export interface CreateProjectRequest {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof CreateProjectRequest
22
20
  */
23
21
  name?: string;
24
22
  }
@@ -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
  }
@@ -17,7 +17,7 @@
17
17
  export const DecisionMatrixPatternEntryDecisionEnum = {
18
18
  DECLINED: 'DECLINED',
19
19
  MAYBE: 'MAYBE',
20
- ACCEPTED: 'ACCEPTED'
20
+ ACCEPTED: 'ACCEPTED',
21
21
  };
22
22
  /**
23
23
  * Check if a given object implements the DecisionMatrixPatternEntry interface.
@@ -17,14 +17,10 @@
17
17
  export interface LoginRequest {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof LoginRequest
22
20
  */
23
21
  email?: string;
24
22
  /**
25
23
  *
26
- * @type {string}
27
- * @memberof LoginRequest
28
24
  */
29
25
  password?: string;
30
26
  }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ReviewDecisionMatrix } from './ReviewDecisionMatrix';
12
+ import type { ProjectSettings } from './ProjectSettings';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -18,72 +18,30 @@ import type { ReviewDecisionMatrix } from './ReviewDecisionMatrix';
18
18
  export interface ProjectResponse {
19
19
  /**
20
20
  *
21
- * @type {string}
22
- * @memberof ProjectResponse
23
21
  */
24
22
  id?: string;
25
23
  /**
26
24
  *
27
- * @type {string}
28
- * @memberof ProjectResponse
29
25
  */
30
26
  name?: string;
31
27
  /**
32
28
  *
33
- * @type {string}
34
- * @memberof ProjectResponse
35
29
  */
36
30
  status?: ProjectResponseStatusEnum;
37
31
  /**
38
32
  *
39
- * @type {number}
40
- * @memberof ProjectResponse
41
33
  */
42
34
  currentStage?: number;
43
35
  /**
44
36
  *
45
- * @type {number}
46
- * @memberof ProjectResponse
47
37
  */
48
38
  maxStage?: number;
49
39
  /**
50
40
  *
51
- * @type {number}
52
- * @memberof ProjectResponse
53
41
  */
54
- similarityThreshold?: number;
42
+ settings?: ProjectSettings;
55
43
  /**
56
44
  *
57
- * @type {string}
58
- * @memberof ProjectResponse
59
- */
60
- snowballingType?: ProjectResponseSnowballingTypeEnum;
61
- /**
62
- *
63
- * @type {boolean}
64
- * @memberof ProjectResponse
65
- */
66
- reviewMaybeAllowed?: boolean;
67
- /**
68
- *
69
- * @type {ReviewDecisionMatrix}
70
- * @memberof ProjectResponse
71
- */
72
- reviewDecisionMatrix?: ReviewDecisionMatrix;
73
- /**
74
- *
75
- * @type {{ [key: string]: { [key: string]: string; }; }}
76
- * @memberof ProjectResponse
77
- */
78
- fetchers?: {
79
- [key: string]: {
80
- [key: string]: string;
81
- };
82
- };
83
- /**
84
- *
85
- * @type {Date}
86
- * @memberof ProjectResponse
87
45
  */
88
46
  currentStageStartedAt?: Date;
89
47
  }
@@ -98,15 +56,6 @@ export declare const ProjectResponseStatusEnum: {
98
56
  readonly CLEARED: "CLEARED";
99
57
  };
100
58
  export type ProjectResponseStatusEnum = typeof ProjectResponseStatusEnum[keyof typeof ProjectResponseStatusEnum];
101
- /**
102
- * @export
103
- */
104
- export declare const ProjectResponseSnowballingTypeEnum: {
105
- readonly FORWARD: "FORWARD";
106
- readonly BACKWARD: "BACKWARD";
107
- readonly BOTH: "BOTH";
108
- };
109
- export type ProjectResponseSnowballingTypeEnum = typeof ProjectResponseSnowballingTypeEnum[keyof typeof ProjectResponseSnowballingTypeEnum];
110
59
  /**
111
60
  * Check if a given object implements the ProjectResponse interface.
112
61
  */
@@ -11,7 +11,8 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { ReviewDecisionMatrixFromJSON, ReviewDecisionMatrixToJSON, } from './ReviewDecisionMatrix';
14
+ import { parseDateTime, serializeDateTime } from '../runtime';
15
+ import { ProjectSettingsFromJSON, ProjectSettingsToJSON, } from './ProjectSettings';
15
16
  /**
16
17
  * @export
17
18
  */
@@ -20,15 +21,7 @@ export const ProjectResponseStatusEnum = {
20
21
  ACTIVE_LOCKED: 'ACTIVE_LOCKED',
21
22
  ARCHIVED: 'ARCHIVED',
22
23
  DELETED: 'DELETED',
23
- CLEARED: 'CLEARED'
24
- };
25
- /**
26
- * @export
27
- */
28
- export const ProjectResponseSnowballingTypeEnum = {
29
- FORWARD: 'FORWARD',
30
- BACKWARD: 'BACKWARD',
31
- BOTH: 'BOTH'
24
+ CLEARED: 'CLEARED',
32
25
  };
33
26
  /**
34
27
  * Check if a given object implements the ProjectResponse interface.
@@ -49,12 +42,8 @@ export function ProjectResponseFromJSONTyped(json, ignoreDiscriminator) {
49
42
  'status': json['status'] == null ? undefined : json['status'],
50
43
  'currentStage': json['currentStage'] == null ? undefined : json['currentStage'],
51
44
  '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
- 'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (new Date(json['currentStageStartedAt'])),
45
+ 'settings': json['settings'] == null ? undefined : ProjectSettingsFromJSON(json['settings']),
46
+ 'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (parseDateTime(json['currentStageStartedAt'])),
58
47
  };
59
48
  }
60
49
  export function ProjectResponseToJSON(json) {
@@ -70,11 +59,7 @@ export function ProjectResponseToJSONTyped(value, ignoreDiscriminator = false) {
70
59
  'status': value['status'],
71
60
  'currentStage': value['currentStage'],
72
61
  '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
- 'currentStageStartedAt': value['currentStageStartedAt'] == null ? undefined : ((value['currentStageStartedAt']).toISOString()),
62
+ 'settings': ProjectSettingsToJSON(value['settings']),
63
+ 'currentStageStartedAt': value['currentStageStartedAt'] == null ? value['currentStageStartedAt'] : serializeDateTime(value['currentStageStartedAt']),
79
64
  };
80
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;
@@ -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
+ }
@@ -17,26 +17,18 @@
17
17
  export interface RegisterRequest {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof RegisterRequest
22
20
  */
23
21
  firstName?: string;
24
22
  /**
25
23
  *
26
- * @type {string}
27
- * @memberof RegisterRequest
28
24
  */
29
25
  lastName?: string;
30
26
  /**
31
27
  *
32
- * @type {string}
33
- * @memberof RegisterRequest
34
28
  */
35
29
  email?: string;
36
30
  /**
37
31
  *
38
- * @type {string}
39
- * @memberof RegisterRequest
40
32
  */
41
33
  password?: string;
42
34
  }
@@ -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
  }
@@ -4,5 +4,6 @@ export * from './DecisionMatrixPattern';
4
4
  export * from './DecisionMatrixPatternEntry';
5
5
  export * from './LoginRequest';
6
6
  export * from './ProjectResponse';
7
+ export * from './ProjectSettings';
7
8
  export * from './RegisterRequest';
8
9
  export * from './ReviewDecisionMatrix';
@@ -6,5 +6,6 @@ export * from './DecisionMatrixPattern';
6
6
  export * from './DecisionMatrixPatternEntry';
7
7
  export * from './LoginRequest';
8
8
  export * from './ProjectResponse';
9
+ export * from './ProjectSettings';
9
10
  export * from './RegisterRequest';
10
11
  export * from './ReviewDecisionMatrix';