@se-uulm/snowballr-api-client 0.2.1-alpha.2f519b7 → 0.2.1-alpha.39ed3fd

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/{Project.js → ProjectResponse.js} +13 -12
  29. package/dist/esm/models/ProjectSettings.d.ts +0 -10
  30. package/dist/esm/models/ProjectSettings.js +1 -1
  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 +4 -1
  35. package/dist/esm/models/index.js +4 -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/{Project.js → ProjectResponse.js} +19 -18
  49. package/dist/models/ProjectSettings.d.ts +0 -10
  50. package/dist/models/ProjectSettings.js +1 -1
  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 +4 -1
  55. package/dist/models/index.js +4 -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 -18
  60. package/.openapi-generator/VERSION +0 -1
  61. package/.openapi-generator-ignore +0 -23
  62. package/dist/esm/models/Project.d.ts +0 -80
  63. package/dist/models/Project.d.ts +0 -80
  64. package/src/apis/ProjectsControllerApi.ts +0 -238
  65. package/src/apis/index.ts +0 -3
  66. package/src/index.ts +0 -5
  67. package/src/models/CreateProjectRequest.ts +0 -65
  68. package/src/models/DecisionMatrixPattern.ts +0 -94
  69. package/src/models/DecisionMatrixPatternEntry.ts +0 -85
  70. package/src/models/Project.ts +0 -135
  71. package/src/models/ProjectSettings.ts +0 -117
  72. package/src/models/ReviewDecisionMatrix.ts +0 -81
  73. package/src/models/index.ts +0 -8
  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;
@@ -11,27 +11,28 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { parseDateTime, serializeDateTime } from '../runtime';
14
15
  import { ProjectSettingsFromJSON, ProjectSettingsToJSON, } from './ProjectSettings';
15
16
  /**
16
17
  * @export
17
18
  */
18
- export const ProjectStatusEnum = {
19
+ export const ProjectResponseStatusEnum = {
19
20
  ACTIVE: 'ACTIVE',
20
21
  ACTIVE_LOCKED: 'ACTIVE_LOCKED',
21
22
  ARCHIVED: 'ARCHIVED',
22
23
  DELETED: 'DELETED',
23
- CLEARED: 'CLEARED'
24
+ CLEARED: 'CLEARED',
24
25
  };
25
26
  /**
26
- * Check if a given object implements the Project interface.
27
+ * Check if a given object implements the ProjectResponse interface.
27
28
  */
28
- export function instanceOfProject(value) {
29
+ export function instanceOfProjectResponse(value) {
29
30
  return true;
30
31
  }
31
- export function ProjectFromJSON(json) {
32
- return ProjectFromJSONTyped(json, false);
32
+ export function ProjectResponseFromJSON(json) {
33
+ return ProjectResponseFromJSONTyped(json, false);
33
34
  }
34
- export function ProjectFromJSONTyped(json, ignoreDiscriminator) {
35
+ export function ProjectResponseFromJSONTyped(json, ignoreDiscriminator) {
35
36
  if (json == null) {
36
37
  return json;
37
38
  }
@@ -41,14 +42,14 @@ export function ProjectFromJSONTyped(json, ignoreDiscriminator) {
41
42
  'status': json['status'] == null ? undefined : json['status'],
42
43
  'currentStage': json['currentStage'] == null ? undefined : json['currentStage'],
43
44
  'maxStage': json['maxStage'] == null ? undefined : json['maxStage'],
44
- 'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (new Date(json['currentStageStartedAt'])),
45
45
  'settings': json['settings'] == null ? undefined : ProjectSettingsFromJSON(json['settings']),
46
+ 'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (parseDateTime(json['currentStageStartedAt'])),
46
47
  };
47
48
  }
48
- export function ProjectToJSON(json) {
49
- return ProjectToJSONTyped(json, false);
49
+ export function ProjectResponseToJSON(json) {
50
+ return ProjectResponseToJSONTyped(json, false);
50
51
  }
51
- export function ProjectToJSONTyped(value, ignoreDiscriminator = false) {
52
+ export function ProjectResponseToJSONTyped(value, ignoreDiscriminator = false) {
52
53
  if (value == null) {
53
54
  return value;
54
55
  }
@@ -58,7 +59,7 @@ export function ProjectToJSONTyped(value, ignoreDiscriminator = false) {
58
59
  'status': value['status'],
59
60
  'currentStage': value['currentStage'],
60
61
  'maxStage': value['maxStage'],
61
- 'currentStageStartedAt': value['currentStageStartedAt'] == null ? undefined : ((value['currentStageStartedAt']).toISOString()),
62
62
  'settings': ProjectSettingsToJSON(value['settings']),
63
+ 'currentStageStartedAt': value['currentStageStartedAt'] == null ? value['currentStageStartedAt'] : serializeDateTime(value['currentStageStartedAt']),
63
64
  };
64
65
  }
@@ -18,32 +18,22 @@ import type { ReviewDecisionMatrix } from './ReviewDecisionMatrix';
18
18
  export interface ProjectSettings {
19
19
  /**
20
20
  *
21
- * @type {number}
22
- * @memberof ProjectSettings
23
21
  */
24
22
  similarityThreshold?: number;
25
23
  /**
26
24
  *
27
- * @type {string}
28
- * @memberof ProjectSettings
29
25
  */
30
26
  snowballingType?: ProjectSettingsSnowballingTypeEnum;
31
27
  /**
32
28
  *
33
- * @type {boolean}
34
- * @memberof ProjectSettings
35
29
  */
36
30
  reviewMaybeAllowed?: boolean;
37
31
  /**
38
32
  *
39
- * @type {ReviewDecisionMatrix}
40
- * @memberof ProjectSettings
41
33
  */
42
34
  reviewDecisionMatrix?: ReviewDecisionMatrix;
43
35
  /**
44
36
  *
45
- * @type {{ [key: string]: { [key: string]: string; }; }}
46
- * @memberof ProjectSettings
47
37
  */
48
38
  fetchers?: {
49
39
  [key: string]: {
@@ -18,7 +18,7 @@ import { ReviewDecisionMatrixFromJSON, ReviewDecisionMatrixToJSON, } from './Rev
18
18
  export const ProjectSettingsSnowballingTypeEnum = {
19
19
  FORWARD: 'FORWARD',
20
20
  BACKWARD: 'BACKWARD',
21
- BOTH: 'BOTH'
21
+ BOTH: 'BOTH',
22
22
  };
23
23
  /**
24
24
  * Check if a given object implements the ProjectSettings interface.
@@ -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,6 +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';
5
7
  export * from './ProjectSettings';
8
+ export * from './RegisterRequest';
6
9
  export * from './ReviewDecisionMatrix';
@@ -1,8 +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';
7
9
  export * from './ProjectSettings';
10
+ export * from './RegisterRequest';
8
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);