@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
@@ -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, ProjectFromJSON, } from '../models/index';
24
+ import { CreateProjectRequestToJSON, } from '../models/CreateProjectRequest';
25
+ import { ProjectFromJSON, } from '../models/Project';
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 = `/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) => ProjectFromJSON(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 = `/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 = `/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(ProjectFromJSON));
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 = `/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) => ProjectFromJSON(jsonValue));
127
164
  });
128
165
  }
@@ -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.
@@ -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,74 +18,32 @@ import type { ReviewDecisionMatrix } from './ReviewDecisionMatrix';
18
18
  export interface Project {
19
19
  /**
20
20
  *
21
- * @type {string}
22
- * @memberof Project
23
21
  */
24
22
  id?: string;
25
23
  /**
26
24
  *
27
- * @type {string}
28
- * @memberof Project
29
25
  */
30
26
  name?: string;
31
27
  /**
32
28
  *
33
- * @type {string}
34
- * @memberof Project
35
29
  */
36
30
  status?: ProjectStatusEnum;
37
31
  /**
38
32
  *
39
- * @type {number}
40
- * @memberof Project
41
33
  */
42
34
  currentStage?: number;
43
35
  /**
44
36
  *
45
- * @type {number}
46
- * @memberof Project
47
37
  */
48
38
  maxStage?: number;
49
39
  /**
50
40
  *
51
- * @type {number}
52
- * @memberof Project
53
41
  */
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}
70
- * @memberof Project
71
- */
72
- reviewDecisionMatrix?: ReviewDecisionMatrix;
73
- /**
74
- *
75
- * @type {{ [key: string]: { [key: string]: string; }; }}
76
- * @memberof Project
77
- */
78
- fetchers?: {
79
- [key: string]: {
80
- [key: string]: string;
81
- };
82
- };
42
+ currentStageStartedAt?: Date;
83
43
  /**
84
44
  *
85
- * @type {Date}
86
- * @memberof Project
87
45
  */
88
- currentStageStartedAt?: Date;
46
+ settings?: ProjectSettings;
89
47
  }
90
48
  /**
91
49
  * @export
@@ -98,15 +56,6 @@ export declare const ProjectStatusEnum: {
98
56
  readonly CLEARED: "CLEARED";
99
57
  };
100
58
  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
59
  /**
111
60
  * Check if a given object implements the Project 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 ProjectStatusEnum = {
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 ProjectSnowballingTypeEnum = {
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 Project interface.
@@ -49,12 +42,8 @@ export function ProjectFromJSONTyped(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
+ 'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (parseDateTime(json['currentStageStartedAt'])),
46
+ 'settings': json['settings'] == null ? undefined : ProjectSettingsFromJSON(json['settings']),
58
47
  };
59
48
  }
60
49
  export function ProjectToJSON(json) {
@@ -70,11 +59,7 @@ export function ProjectToJSONTyped(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
+ 'currentStageStartedAt': value['currentStageStartedAt'] == null ? value['currentStageStartedAt'] : serializeDateTime(value['currentStageStartedAt']),
63
+ 'settings': ProjectSettingsToJSON(value['settings']),
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
+ }
@@ -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
  }
@@ -2,4 +2,5 @@ export * from './CreateProjectRequest';
2
2
  export * from './DecisionMatrixPattern';
3
3
  export * from './DecisionMatrixPatternEntry';
4
4
  export * from './Project';
5
+ export * from './ProjectSettings';
5
6
  export * from './ReviewDecisionMatrix';
@@ -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';
@@ -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
- value(): Promise<Blob>;
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);