@se-uulm/snowballr-api-client 0.2.1-beta.885cd6b → 0.2.1-beta.b53578d

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 (53) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +102 -28
  4. package/dist/apis/ProjectsControllerApi.d.ts +54 -1
  5. package/dist/apis/ProjectsControllerApi.js +56 -19
  6. package/dist/esm/apis/ProjectsControllerApi.d.ts +54 -1
  7. package/dist/esm/apis/ProjectsControllerApi.js +52 -15
  8. package/dist/esm/models/CreateProjectRequest.d.ts +0 -2
  9. package/dist/esm/models/DecisionMatrixPattern.d.ts +0 -4
  10. package/dist/esm/models/DecisionMatrixPattern.js +1 -1
  11. package/dist/esm/models/DecisionMatrixPatternEntry.d.ts +0 -4
  12. package/dist/esm/models/DecisionMatrixPatternEntry.js +1 -1
  13. package/dist/esm/models/Project.d.ts +3 -54
  14. package/dist/esm/models/Project.js +7 -22
  15. package/dist/esm/models/ProjectSettings.d.ts +60 -0
  16. package/dist/esm/models/ProjectSettings.js +58 -0
  17. package/dist/esm/models/ReviewDecisionMatrix.d.ts +0 -4
  18. package/dist/esm/models/index.d.ts +1 -0
  19. package/dist/esm/models/index.js +1 -0
  20. package/dist/esm/runtime.d.ts +34 -1
  21. package/dist/esm/runtime.js +130 -4
  22. package/dist/models/CreateProjectRequest.d.ts +0 -2
  23. package/dist/models/DecisionMatrixPattern.d.ts +0 -4
  24. package/dist/models/DecisionMatrixPattern.js +1 -1
  25. package/dist/models/DecisionMatrixPatternEntry.d.ts +0 -4
  26. package/dist/models/DecisionMatrixPatternEntry.js +1 -1
  27. package/dist/models/Project.d.ts +3 -54
  28. package/dist/models/Project.js +8 -23
  29. package/dist/models/ProjectSettings.d.ts +60 -0
  30. package/dist/models/ProjectSettings.js +66 -0
  31. package/dist/models/ReviewDecisionMatrix.d.ts +0 -4
  32. package/dist/models/index.d.ts +1 -0
  33. package/dist/models/index.js +1 -0
  34. package/dist/runtime.d.ts +34 -1
  35. package/dist/runtime.js +136 -4
  36. package/docs/CreateProjectRequest.md +34 -0
  37. package/docs/DecisionMatrixPattern.md +36 -0
  38. package/docs/DecisionMatrixPatternEntry.md +36 -0
  39. package/docs/Project.md +46 -0
  40. package/docs/ProjectSettings.md +42 -0
  41. package/docs/ProjectsControllerApi.md +264 -0
  42. package/docs/ReviewDecisionMatrix.md +36 -0
  43. package/package.json +2 -2
  44. package/src/apis/ProjectsControllerApi.ts +91 -20
  45. package/src/models/CreateProjectRequest.ts +0 -2
  46. package/src/models/DecisionMatrixPattern.ts +1 -5
  47. package/src/models/DecisionMatrixPatternEntry.ts +1 -5
  48. package/src/models/Project.ts +14 -70
  49. package/src/models/ProjectSettings.ts +107 -0
  50. package/src/models/ReviewDecisionMatrix.ts +0 -4
  51. package/src/models/index.ts +1 -0
  52. package/src/runtime.ts +146 -6
  53. package/tsconfig.json +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@se-uulm/snowballr-api-client",
3
- "version": "0.2.1-beta.885cd6b",
3
+ "version": "0.2.1-beta.b53578d",
4
4
  "description": "OpenAPI client for @se-uulm/snowballr-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "license": "GPL-3.0-or-later",
11
11
  "main": "./dist/index.js",
12
- "typings": "./dist/index.d.ts",
12
+ "types": "./dist/index.d.ts",
13
13
  "module": "./dist/esm/index.js",
14
14
  "sideEffects": false,
15
15
  "scripts": {
@@ -12,28 +12,36 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime';
17
- import type {
18
- CreateProjectRequest,
19
- Project,
20
- } from '../models/index';
21
16
  import {
17
+ type CreateProjectRequest,
22
18
  CreateProjectRequestFromJSON,
23
19
  CreateProjectRequestToJSON,
20
+ } from '../models/CreateProjectRequest';
21
+ import {
22
+ type Project,
24
23
  ProjectFromJSON,
25
24
  ProjectToJSON,
26
- } from '../models/index';
25
+ } from '../models/Project';
27
26
 
28
27
  export interface CreateProjectOperationRequest {
28
+ /**
29
+ *
30
+ */
29
31
  createProjectRequest: CreateProjectRequest;
30
32
  }
31
33
 
32
34
  export interface DeleteProjectRequest {
35
+ /**
36
+ *
37
+ */
33
38
  id: string;
34
39
  }
35
40
 
36
41
  export interface GetProjectRequest {
42
+ /**
43
+ *
44
+ */
37
45
  id: string;
38
46
  }
39
47
 
@@ -44,6 +52,14 @@ export interface GetProjectRequest {
44
52
  * @interface ProjectsControllerApiInterface
45
53
  */
46
54
  export interface ProjectsControllerApiInterface {
55
+ /**
56
+ * Creates request options for createProject without sending the request
57
+ * @param {CreateProjectRequest} createProjectRequest
58
+ * @throws {RequiredError}
59
+ * @memberof ProjectsControllerApiInterface
60
+ */
61
+ createProjectRequestOpts(requestParameters: CreateProjectOperationRequest): Promise<runtime.RequestOpts>;
62
+
47
63
  /**
48
64
  *
49
65
  * @param {CreateProjectRequest} createProjectRequest
@@ -57,6 +73,14 @@ export interface ProjectsControllerApiInterface {
57
73
  */
58
74
  createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
59
75
 
76
+ /**
77
+ * Creates request options for deleteProject without sending the request
78
+ * @param {string} id
79
+ * @throws {RequiredError}
80
+ * @memberof ProjectsControllerApiInterface
81
+ */
82
+ deleteProjectRequestOpts(requestParameters: DeleteProjectRequest): Promise<runtime.RequestOpts>;
83
+
60
84
  /**
61
85
  *
62
86
  * @param {string} id
@@ -70,6 +94,13 @@ export interface ProjectsControllerApiInterface {
70
94
  */
71
95
  deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
72
96
 
97
+ /**
98
+ * Creates request options for getAllProjects without sending the request
99
+ * @throws {RequiredError}
100
+ * @memberof ProjectsControllerApiInterface
101
+ */
102
+ getAllProjectsRequestOpts(): Promise<runtime.RequestOpts>;
103
+
73
104
  /**
74
105
  *
75
106
  * @param {*} [options] Override http request option.
@@ -82,6 +113,14 @@ export interface ProjectsControllerApiInterface {
82
113
  */
83
114
  getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
84
115
 
116
+ /**
117
+ * Creates request options for getProject without sending the request
118
+ * @param {string} id
119
+ * @throws {RequiredError}
120
+ * @memberof ProjectsControllerApiInterface
121
+ */
122
+ getProjectRequestOpts(requestParameters: GetProjectRequest): Promise<runtime.RequestOpts>;
123
+
85
124
  /**
86
125
  *
87
126
  * @param {string} id
@@ -103,8 +142,9 @@ export interface ProjectsControllerApiInterface {
103
142
  export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsControllerApiInterface {
104
143
 
105
144
  /**
145
+ * Creates request options for createProject without sending the request
106
146
  */
107
- async createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
147
+ async createProjectRequestOpts(requestParameters: CreateProjectOperationRequest): Promise<runtime.RequestOpts> {
108
148
  if (requestParameters['createProjectRequest'] == null) {
109
149
  throw new runtime.RequiredError(
110
150
  'createProjectRequest',
@@ -121,13 +161,20 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
121
161
 
122
162
  let urlPath = `/projects`;
123
163
 
124
- const response = await this.request({
164
+ return {
125
165
  path: urlPath,
126
166
  method: 'POST',
127
167
  headers: headerParameters,
128
168
  query: queryParameters,
129
169
  body: CreateProjectRequestToJSON(requestParameters['createProjectRequest']),
130
- }, initOverrides);
170
+ };
171
+ }
172
+
173
+ /**
174
+ */
175
+ async createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
176
+ const requestOptions = await this.createProjectRequestOpts(requestParameters);
177
+ const response = await this.request(requestOptions, initOverrides);
131
178
 
132
179
  return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
133
180
  }
@@ -140,8 +187,9 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
140
187
  }
141
188
 
142
189
  /**
190
+ * Creates request options for deleteProject without sending the request
143
191
  */
144
- async deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
192
+ async deleteProjectRequestOpts(requestParameters: DeleteProjectRequest): Promise<runtime.RequestOpts> {
145
193
  if (requestParameters['id'] == null) {
146
194
  throw new runtime.RequiredError(
147
195
  'id',
@@ -155,14 +203,21 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
155
203
 
156
204
 
157
205
  let urlPath = `/projects/{id}`;
158
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
206
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
159
207
 
160
- const response = await this.request({
208
+ return {
161
209
  path: urlPath,
162
210
  method: 'DELETE',
163
211
  headers: headerParameters,
164
212
  query: queryParameters,
165
- }, initOverrides);
213
+ };
214
+ }
215
+
216
+ /**
217
+ */
218
+ async deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
219
+ const requestOptions = await this.deleteProjectRequestOpts(requestParameters);
220
+ const response = await this.request(requestOptions, initOverrides);
166
221
 
167
222
  return new runtime.VoidApiResponse(response);
168
223
  }
@@ -174,8 +229,9 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
174
229
  }
175
230
 
176
231
  /**
232
+ * Creates request options for getAllProjects without sending the request
177
233
  */
178
- async getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>> {
234
+ async getAllProjectsRequestOpts(): Promise<runtime.RequestOpts> {
179
235
  const queryParameters: any = {};
180
236
 
181
237
  const headerParameters: runtime.HTTPHeaders = {};
@@ -183,12 +239,19 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
183
239
 
184
240
  let urlPath = `/projects`;
185
241
 
186
- const response = await this.request({
242
+ return {
187
243
  path: urlPath,
188
244
  method: 'GET',
189
245
  headers: headerParameters,
190
246
  query: queryParameters,
191
- }, initOverrides);
247
+ };
248
+ }
249
+
250
+ /**
251
+ */
252
+ async getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>> {
253
+ const requestOptions = await this.getAllProjectsRequestOpts();
254
+ const response = await this.request(requestOptions, initOverrides);
192
255
 
193
256
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectFromJSON));
194
257
  }
@@ -201,8 +264,9 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
201
264
  }
202
265
 
203
266
  /**
267
+ * Creates request options for getProject without sending the request
204
268
  */
205
- async getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
269
+ async getProjectRequestOpts(requestParameters: GetProjectRequest): Promise<runtime.RequestOpts> {
206
270
  if (requestParameters['id'] == null) {
207
271
  throw new runtime.RequiredError(
208
272
  'id',
@@ -216,14 +280,21 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
216
280
 
217
281
 
218
282
  let urlPath = `/projects/{id}`;
219
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
283
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
220
284
 
221
- const response = await this.request({
285
+ return {
222
286
  path: urlPath,
223
287
  method: 'GET',
224
288
  headers: headerParameters,
225
289
  query: queryParameters,
226
- }, initOverrides);
290
+ };
291
+ }
292
+
293
+ /**
294
+ */
295
+ async getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
296
+ const requestOptions = await this.getProjectRequestOpts(requestParameters);
297
+ const response = await this.request(requestOptions, initOverrides);
227
298
 
228
299
  return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
229
300
  }
@@ -21,8 +21,6 @@ import { mapValues } from '../runtime';
21
21
  export interface CreateProjectRequest {
22
22
  /**
23
23
  *
24
- * @type {string}
25
- * @memberof CreateProjectRequest
26
24
  */
27
25
  name?: string;
28
26
  }
@@ -29,14 +29,10 @@ import {
29
29
  export interface DecisionMatrixPattern {
30
30
  /**
31
31
  *
32
- * @type {string}
33
- * @memberof DecisionMatrixPattern
34
32
  */
35
33
  decision?: DecisionMatrixPatternDecisionEnum;
36
34
  /**
37
35
  *
38
- * @type {Array<DecisionMatrixPatternEntry>}
39
- * @memberof DecisionMatrixPattern
40
36
  */
41
37
  entries?: Array<DecisionMatrixPatternEntry>;
42
38
  }
@@ -49,7 +45,7 @@ export const DecisionMatrixPatternDecisionEnum = {
49
45
  UNREVIEWED: 'UNREVIEWED',
50
46
  IN_REVIEW: 'IN_REVIEW',
51
47
  DECLINED: 'DECLINED',
52
- ACCEPTED: 'ACCEPTED'
48
+ ACCEPTED: 'ACCEPTED',
53
49
  } as const;
54
50
  export type DecisionMatrixPatternDecisionEnum = typeof DecisionMatrixPatternDecisionEnum[keyof typeof DecisionMatrixPatternDecisionEnum];
55
51
 
@@ -21,14 +21,10 @@ import { mapValues } from '../runtime';
21
21
  export interface DecisionMatrixPatternEntry {
22
22
  /**
23
23
  *
24
- * @type {string}
25
- * @memberof DecisionMatrixPatternEntry
26
24
  */
27
25
  decision?: DecisionMatrixPatternEntryDecisionEnum;
28
26
  /**
29
27
  *
30
- * @type {number}
31
- * @memberof DecisionMatrixPatternEntry
32
28
  */
33
29
  count?: number;
34
30
  }
@@ -40,7 +36,7 @@ export interface DecisionMatrixPatternEntry {
40
36
  export const DecisionMatrixPatternEntryDecisionEnum = {
41
37
  DECLINED: 'DECLINED',
42
38
  MAYBE: 'MAYBE',
43
- ACCEPTED: 'ACCEPTED'
39
+ ACCEPTED: 'ACCEPTED',
44
40
  } as const;
45
41
  export type DecisionMatrixPatternEntryDecisionEnum = typeof DecisionMatrixPatternEntryDecisionEnum[keyof typeof DecisionMatrixPatternEntryDecisionEnum];
46
42
 
@@ -12,14 +12,14 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { mapValues } from '../runtime';
16
- import type { ReviewDecisionMatrix } from './ReviewDecisionMatrix';
15
+ import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime';
16
+ import type { ProjectSettings } from './ProjectSettings';
17
17
  import {
18
- ReviewDecisionMatrixFromJSON,
19
- ReviewDecisionMatrixFromJSONTyped,
20
- ReviewDecisionMatrixToJSON,
21
- ReviewDecisionMatrixToJSONTyped,
22
- } from './ReviewDecisionMatrix';
18
+ ProjectSettingsFromJSON,
19
+ ProjectSettingsFromJSONTyped,
20
+ ProjectSettingsToJSON,
21
+ ProjectSettingsToJSONTyped,
22
+ } from './ProjectSettings';
23
23
 
24
24
  /**
25
25
  *
@@ -29,70 +29,32 @@ import {
29
29
  export interface Project {
30
30
  /**
31
31
  *
32
- * @type {string}
33
- * @memberof Project
34
32
  */
35
33
  id?: string;
36
34
  /**
37
35
  *
38
- * @type {string}
39
- * @memberof Project
40
36
  */
41
37
  name?: string;
42
38
  /**
43
39
  *
44
- * @type {string}
45
- * @memberof Project
46
40
  */
47
41
  status?: ProjectStatusEnum;
48
42
  /**
49
43
  *
50
- * @type {number}
51
- * @memberof Project
52
44
  */
53
45
  currentStage?: number;
54
46
  /**
55
47
  *
56
- * @type {number}
57
- * @memberof Project
58
48
  */
59
49
  maxStage?: number;
60
50
  /**
61
51
  *
62
- * @type {number}
63
- * @memberof Project
64
52
  */
65
- similarityThreshold?: number;
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof Project
70
- */
71
- snowballingType?: ProjectSnowballingTypeEnum;
72
- /**
73
- *
74
- * @type {boolean}
75
- * @memberof Project
76
- */
77
- reviewMaybeAllowed?: boolean;
78
- /**
79
- *
80
- * @type {ReviewDecisionMatrix}
81
- * @memberof Project
82
- */
83
- reviewDecisionMatrix?: ReviewDecisionMatrix;
84
- /**
85
- *
86
- * @type {{ [key: string]: { [key: string]: string; }; }}
87
- * @memberof Project
88
- */
89
- fetchers?: { [key: string]: { [key: string]: string; }; };
53
+ currentStageStartedAt?: Date;
90
54
  /**
91
55
  *
92
- * @type {Date}
93
- * @memberof Project
94
56
  */
95
- currentStageStartedAt?: Date;
57
+ settings?: ProjectSettings;
96
58
  }
97
59
 
98
60
 
@@ -104,20 +66,10 @@ export const ProjectStatusEnum = {
104
66
  ACTIVE_LOCKED: 'ACTIVE_LOCKED',
105
67
  ARCHIVED: 'ARCHIVED',
106
68
  DELETED: 'DELETED',
107
- CLEARED: 'CLEARED'
69
+ CLEARED: 'CLEARED',
108
70
  } as const;
109
71
  export type ProjectStatusEnum = typeof ProjectStatusEnum[keyof typeof ProjectStatusEnum];
110
72
 
111
- /**
112
- * @export
113
- */
114
- export const ProjectSnowballingTypeEnum = {
115
- FORWARD: 'FORWARD',
116
- BACKWARD: 'BACKWARD',
117
- BOTH: 'BOTH'
118
- } as const;
119
- export type ProjectSnowballingTypeEnum = typeof ProjectSnowballingTypeEnum[keyof typeof ProjectSnowballingTypeEnum];
120
-
121
73
 
122
74
  /**
123
75
  * Check if a given object implements the Project interface.
@@ -141,12 +93,8 @@ export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
141
93
  'status': json['status'] == null ? undefined : json['status'],
142
94
  'currentStage': json['currentStage'] == null ? undefined : json['currentStage'],
143
95
  'maxStage': json['maxStage'] == null ? undefined : json['maxStage'],
144
- 'similarityThreshold': json['similarityThreshold'] == null ? undefined : json['similarityThreshold'],
145
- 'snowballingType': json['snowballingType'] == null ? undefined : json['snowballingType'],
146
- 'reviewMaybeAllowed': json['reviewMaybeAllowed'] == null ? undefined : json['reviewMaybeAllowed'],
147
- 'reviewDecisionMatrix': json['reviewDecisionMatrix'] == null ? undefined : ReviewDecisionMatrixFromJSON(json['reviewDecisionMatrix']),
148
- 'fetchers': json['fetchers'] == null ? undefined : json['fetchers'],
149
- 'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (new Date(json['currentStageStartedAt'])),
96
+ 'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (parseDateTime(json['currentStageStartedAt'])),
97
+ 'settings': json['settings'] == null ? undefined : ProjectSettingsFromJSON(json['settings']),
150
98
  };
151
99
  }
152
100
 
@@ -166,12 +114,8 @@ export function ProjectToJSONTyped(value?: Project | null, ignoreDiscriminator:
166
114
  'status': value['status'],
167
115
  'currentStage': value['currentStage'],
168
116
  'maxStage': value['maxStage'],
169
- 'similarityThreshold': value['similarityThreshold'],
170
- 'snowballingType': value['snowballingType'],
171
- 'reviewMaybeAllowed': value['reviewMaybeAllowed'],
172
- 'reviewDecisionMatrix': ReviewDecisionMatrixToJSON(value['reviewDecisionMatrix']),
173
- 'fetchers': value['fetchers'],
174
- 'currentStageStartedAt': value['currentStageStartedAt'] == null ? undefined : ((value['currentStageStartedAt']).toISOString()),
117
+ 'currentStageStartedAt': value['currentStageStartedAt'] == null ? value['currentStageStartedAt'] : serializeDateTime(value['currentStageStartedAt']),
118
+ 'settings': ProjectSettingsToJSON(value['settings']),
175
119
  };
176
120
  }
177
121
 
@@ -0,0 +1,107 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { ReviewDecisionMatrix } from './ReviewDecisionMatrix';
17
+ import {
18
+ ReviewDecisionMatrixFromJSON,
19
+ ReviewDecisionMatrixFromJSONTyped,
20
+ ReviewDecisionMatrixToJSON,
21
+ ReviewDecisionMatrixToJSONTyped,
22
+ } from './ReviewDecisionMatrix';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProjectSettings
28
+ */
29
+ export interface ProjectSettings {
30
+ /**
31
+ *
32
+ */
33
+ similarityThreshold?: number;
34
+ /**
35
+ *
36
+ */
37
+ snowballingType?: ProjectSettingsSnowballingTypeEnum;
38
+ /**
39
+ *
40
+ */
41
+ reviewMaybeAllowed?: boolean;
42
+ /**
43
+ *
44
+ */
45
+ reviewDecisionMatrix?: ReviewDecisionMatrix;
46
+ /**
47
+ *
48
+ */
49
+ fetchers?: { [key: string]: { [key: string]: string; }; };
50
+ }
51
+
52
+
53
+ /**
54
+ * @export
55
+ */
56
+ export const ProjectSettingsSnowballingTypeEnum = {
57
+ FORWARD: 'FORWARD',
58
+ BACKWARD: 'BACKWARD',
59
+ BOTH: 'BOTH',
60
+ } as const;
61
+ export type ProjectSettingsSnowballingTypeEnum = typeof ProjectSettingsSnowballingTypeEnum[keyof typeof ProjectSettingsSnowballingTypeEnum];
62
+
63
+
64
+ /**
65
+ * Check if a given object implements the ProjectSettings interface.
66
+ */
67
+ export function instanceOfProjectSettings(value: object): value is ProjectSettings {
68
+ return true;
69
+ }
70
+
71
+ export function ProjectSettingsFromJSON(json: any): ProjectSettings {
72
+ return ProjectSettingsFromJSONTyped(json, false);
73
+ }
74
+
75
+ export function ProjectSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectSettings {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+
81
+ 'similarityThreshold': json['similarityThreshold'] == null ? undefined : json['similarityThreshold'],
82
+ 'snowballingType': json['snowballingType'] == null ? undefined : json['snowballingType'],
83
+ 'reviewMaybeAllowed': json['reviewMaybeAllowed'] == null ? undefined : json['reviewMaybeAllowed'],
84
+ 'reviewDecisionMatrix': json['reviewDecisionMatrix'] == null ? undefined : ReviewDecisionMatrixFromJSON(json['reviewDecisionMatrix']),
85
+ 'fetchers': json['fetchers'] == null ? undefined : json['fetchers'],
86
+ };
87
+ }
88
+
89
+ export function ProjectSettingsToJSON(json: any): ProjectSettings {
90
+ return ProjectSettingsToJSONTyped(json, false);
91
+ }
92
+
93
+ export function ProjectSettingsToJSONTyped(value?: ProjectSettings | null, ignoreDiscriminator: boolean = false): any {
94
+ if (value == null) {
95
+ return value;
96
+ }
97
+
98
+ return {
99
+
100
+ 'similarityThreshold': value['similarityThreshold'],
101
+ 'snowballingType': value['snowballingType'],
102
+ 'reviewMaybeAllowed': value['reviewMaybeAllowed'],
103
+ 'reviewDecisionMatrix': ReviewDecisionMatrixToJSON(value['reviewDecisionMatrix']),
104
+ 'fetchers': value['fetchers'],
105
+ };
106
+ }
107
+
@@ -29,14 +29,10 @@ import {
29
29
  export interface ReviewDecisionMatrix {
30
30
  /**
31
31
  *
32
- * @type {number}
33
- * @memberof ReviewDecisionMatrix
34
32
  */
35
33
  numberOfReviewers?: number;
36
34
  /**
37
35
  *
38
- * @type {Array<DecisionMatrixPattern>}
39
- * @memberof ReviewDecisionMatrix
40
36
  */
41
37
  patterns?: Array<DecisionMatrixPattern>;
42
38
  }
@@ -4,4 +4,5 @@ export * from './CreateProjectRequest';
4
4
  export * from './DecisionMatrixPattern';
5
5
  export * from './DecisionMatrixPatternEntry';
6
6
  export * from './Project';
7
+ export * from './ProjectSettings';
7
8
  export * from './ReviewDecisionMatrix';