@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.
Files changed (76) hide show
  1. package/README.md +111 -28
  2. package/dist/apis/AuthControllerApi.d.ts +181 -0
  3. package/dist/apis/AuthControllerApi.js +216 -0
  4. package/dist/apis/ProjectsControllerApi.d.ts +66 -13
  5. package/dist/apis/ProjectsControllerApi.js +60 -23
  6. package/dist/apis/UsersControllerApi.d.ts +60 -0
  7. package/dist/apis/UsersControllerApi.js +70 -0
  8. package/dist/apis/index.d.ts +2 -0
  9. package/dist/apis/index.js +2 -0
  10. package/dist/esm/apis/AuthControllerApi.d.ts +181 -0
  11. package/dist/esm/apis/AuthControllerApi.js +212 -0
  12. package/dist/esm/apis/ProjectsControllerApi.d.ts +66 -13
  13. package/dist/esm/apis/ProjectsControllerApi.js +59 -22
  14. package/dist/esm/apis/UsersControllerApi.d.ts +60 -0
  15. package/dist/esm/apis/UsersControllerApi.js +66 -0
  16. package/dist/esm/apis/index.d.ts +2 -0
  17. package/dist/esm/apis/index.js +2 -0
  18. package/dist/esm/models/ChangePasswordRequest.d.ts +34 -0
  19. package/dist/esm/models/ChangePasswordRequest.js +43 -0
  20. package/dist/esm/models/CreateProjectRequest.d.ts +0 -2
  21. package/dist/esm/models/DecisionMatrixPattern.d.ts +0 -4
  22. package/dist/esm/models/DecisionMatrixPattern.js +1 -1
  23. package/dist/esm/models/DecisionMatrixPatternEntry.d.ts +0 -4
  24. package/dist/esm/models/DecisionMatrixPatternEntry.js +1 -1
  25. package/dist/esm/models/LoginRequest.d.ts +34 -0
  26. package/dist/esm/models/LoginRequest.js +43 -0
  27. package/dist/esm/models/ProjectResponse.d.ts +66 -0
  28. package/dist/esm/models/ProjectResponse.js +65 -0
  29. package/dist/esm/models/ProjectSettings.d.ts +60 -0
  30. package/dist/esm/models/{Project.js → ProjectSettings.js} +10 -32
  31. package/dist/esm/models/RegisterRequest.d.ts +42 -0
  32. package/dist/esm/models/RegisterRequest.js +47 -0
  33. package/dist/esm/models/ReviewDecisionMatrix.d.ts +0 -4
  34. package/dist/esm/models/index.d.ts +5 -1
  35. package/dist/esm/models/index.js +5 -1
  36. package/dist/esm/runtime.d.ts +34 -1
  37. package/dist/esm/runtime.js +130 -4
  38. package/dist/models/ChangePasswordRequest.d.ts +34 -0
  39. package/dist/models/ChangePasswordRequest.js +50 -0
  40. package/dist/models/CreateProjectRequest.d.ts +0 -2
  41. package/dist/models/DecisionMatrixPattern.d.ts +0 -4
  42. package/dist/models/DecisionMatrixPattern.js +1 -1
  43. package/dist/models/DecisionMatrixPatternEntry.d.ts +0 -4
  44. package/dist/models/DecisionMatrixPatternEntry.js +1 -1
  45. package/dist/models/LoginRequest.d.ts +34 -0
  46. package/dist/models/LoginRequest.js +50 -0
  47. package/dist/models/ProjectResponse.d.ts +66 -0
  48. package/dist/models/ProjectResponse.js +73 -0
  49. package/dist/models/ProjectSettings.d.ts +60 -0
  50. package/dist/models/ProjectSettings.js +66 -0
  51. package/dist/models/RegisterRequest.d.ts +42 -0
  52. package/dist/models/RegisterRequest.js +54 -0
  53. package/dist/models/ReviewDecisionMatrix.d.ts +0 -4
  54. package/dist/models/index.d.ts +5 -1
  55. package/dist/models/index.js +5 -1
  56. package/dist/runtime.d.ts +34 -1
  57. package/dist/runtime.js +136 -4
  58. package/package.json +11 -5
  59. package/.openapi-generator/FILES +0 -17
  60. package/.openapi-generator/VERSION +0 -1
  61. package/.openapi-generator-ignore +0 -23
  62. package/dist/esm/models/Project.d.ts +0 -117
  63. package/dist/models/Project.d.ts +0 -117
  64. package/dist/models/Project.js +0 -88
  65. package/src/apis/ProjectsControllerApi.ts +0 -238
  66. package/src/apis/index.ts +0 -3
  67. package/src/index.ts +0 -5
  68. package/src/models/CreateProjectRequest.ts +0 -65
  69. package/src/models/DecisionMatrixPattern.ts +0 -94
  70. package/src/models/DecisionMatrixPatternEntry.ts +0 -85
  71. package/src/models/Project.ts +0 -177
  72. package/src/models/ReviewDecisionMatrix.ts +0 -81
  73. package/src/models/index.ts +0 -7
  74. package/src/runtime.ts +0 -432
  75. package/tsconfig.esm.json +0 -7
  76. 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
+ }
@@ -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.
@@ -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 ProjectStatusEnum = {
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 Project interface.
24
+ * Check if a given object implements the ProjectSettings interface.
35
25
  */
36
- export function instanceOfProject(value) {
26
+ export function instanceOfProjectSettings(value) {
37
27
  return true;
38
28
  }
39
- export function ProjectFromJSON(json) {
40
- return ProjectFromJSONTyped(json, false);
29
+ export function ProjectSettingsFromJSON(json) {
30
+ return ProjectSettingsFromJSONTyped(json, false);
41
31
  }
42
- export function ProjectFromJSONTyped(json, ignoreDiscriminator) {
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 ProjectToJSON(json) {
61
- return ProjectToJSONTyped(json, false);
44
+ export function ProjectSettingsToJSON(json) {
45
+ return ProjectSettingsToJSONTyped(json, false);
62
46
  }
63
- export function ProjectToJSONTyped(value, ignoreDiscriminator = false) {
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 './Project';
5
+ export * from './LoginRequest';
6
+ export * from './ProjectResponse';
7
+ export * from './ProjectSettings';
8
+ export * from './RegisterRequest';
5
9
  export * from './ReviewDecisionMatrix';
@@ -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 './Project';
7
+ export * from './LoginRequest';
8
+ export * from './ProjectResponse';
9
+ export * from './ProjectSettings';
10
+ export * from './RegisterRequest';
7
11
  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);