@se-uulm/snowballr-api-client 0.2.1-alpha.267f00c → 0.2.1-alpha.2ef3e63

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 (61) hide show
  1. package/.openapi-generator/FILES +18 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +2 -2
  5. package/dist/apis/ProjectsControllerApi.d.ts +13 -13
  6. package/dist/apis/ProjectsControllerApi.js +7 -7
  7. package/dist/apis/index.d.ts +0 -2
  8. package/dist/apis/index.js +0 -2
  9. package/dist/esm/apis/ProjectsControllerApi.d.ts +13 -13
  10. package/dist/esm/apis/ProjectsControllerApi.js +8 -8
  11. package/dist/esm/apis/index.d.ts +0 -2
  12. package/dist/esm/apis/index.js +0 -2
  13. package/dist/esm/models/Project.d.ts +80 -0
  14. package/dist/esm/models/Project.js +64 -0
  15. package/dist/esm/models/ProjectSettings.d.ts +70 -0
  16. package/dist/esm/models/{ProjectResponse.js → ProjectSettings.js} +9 -31
  17. package/dist/esm/models/index.d.ts +2 -4
  18. package/dist/esm/models/index.js +2 -4
  19. package/dist/models/Project.d.ts +80 -0
  20. package/dist/models/Project.js +72 -0
  21. package/dist/models/ProjectSettings.d.ts +70 -0
  22. package/dist/models/ProjectSettings.js +66 -0
  23. package/dist/models/index.d.ts +2 -4
  24. package/dist/models/index.js +2 -4
  25. package/package.json +4 -10
  26. package/src/apis/ProjectsControllerApi.ts +238 -0
  27. package/src/apis/index.ts +3 -0
  28. package/src/index.ts +5 -0
  29. package/src/models/CreateProjectRequest.ts +65 -0
  30. package/src/models/DecisionMatrixPattern.ts +94 -0
  31. package/src/models/DecisionMatrixPatternEntry.ts +85 -0
  32. package/src/models/Project.ts +135 -0
  33. package/src/models/ProjectSettings.ts +117 -0
  34. package/src/models/ReviewDecisionMatrix.ts +81 -0
  35. package/src/models/index.ts +8 -0
  36. package/src/runtime.ts +432 -0
  37. package/tsconfig.esm.json +7 -0
  38. package/tsconfig.json +16 -0
  39. package/dist/apis/AuthControllerApi.d.ts +0 -118
  40. package/dist/apis/AuthControllerApi.js +0 -170
  41. package/dist/apis/UsersControllerApi.d.ts +0 -46
  42. package/dist/apis/UsersControllerApi.js +0 -61
  43. package/dist/esm/apis/AuthControllerApi.d.ts +0 -118
  44. package/dist/esm/apis/AuthControllerApi.js +0 -166
  45. package/dist/esm/apis/UsersControllerApi.d.ts +0 -46
  46. package/dist/esm/apis/UsersControllerApi.js +0 -57
  47. package/dist/esm/models/ChangePasswordRequest.d.ts +0 -38
  48. package/dist/esm/models/ChangePasswordRequest.js +0 -43
  49. package/dist/esm/models/LoginRequest.d.ts +0 -38
  50. package/dist/esm/models/LoginRequest.js +0 -43
  51. package/dist/esm/models/ProjectResponse.d.ts +0 -117
  52. package/dist/esm/models/RegisterRequest.d.ts +0 -50
  53. package/dist/esm/models/RegisterRequest.js +0 -47
  54. package/dist/models/ChangePasswordRequest.d.ts +0 -38
  55. package/dist/models/ChangePasswordRequest.js +0 -50
  56. package/dist/models/LoginRequest.d.ts +0 -38
  57. package/dist/models/LoginRequest.js +0 -50
  58. package/dist/models/ProjectResponse.d.ts +0 -117
  59. package/dist/models/ProjectResponse.js +0 -88
  60. package/dist/models/RegisterRequest.d.ts +0 -50
  61. package/dist/models/RegisterRequest.js +0 -54
@@ -15,66 +15,44 @@ import { ReviewDecisionMatrixFromJSON, ReviewDecisionMatrixToJSON, } from './Rev
15
15
  /**
16
16
  * @export
17
17
  */
18
- export const ProjectResponseStatusEnum = {
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 ProjectResponseSnowballingTypeEnum = {
18
+ export const ProjectSettingsSnowballingTypeEnum = {
29
19
  FORWARD: 'FORWARD',
30
20
  BACKWARD: 'BACKWARD',
31
21
  BOTH: 'BOTH'
32
22
  };
33
23
  /**
34
- * Check if a given object implements the ProjectResponse interface.
24
+ * Check if a given object implements the ProjectSettings interface.
35
25
  */
36
- export function instanceOfProjectResponse(value) {
26
+ export function instanceOfProjectSettings(value) {
37
27
  return true;
38
28
  }
39
- export function ProjectResponseFromJSON(json) {
40
- return ProjectResponseFromJSONTyped(json, false);
29
+ export function ProjectSettingsFromJSON(json) {
30
+ return ProjectSettingsFromJSONTyped(json, false);
41
31
  }
42
- export function ProjectResponseFromJSONTyped(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 ProjectResponseToJSON(json) {
61
- return ProjectResponseToJSONTyped(json, false);
44
+ export function ProjectSettingsToJSON(json) {
45
+ return ProjectSettingsToJSONTyped(json, false);
62
46
  }
63
- export function ProjectResponseToJSONTyped(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
  }
@@ -1,8 +1,6 @@
1
- export * from './ChangePasswordRequest';
2
1
  export * from './CreateProjectRequest';
3
2
  export * from './DecisionMatrixPattern';
4
3
  export * from './DecisionMatrixPatternEntry';
5
- export * from './LoginRequest';
6
- export * from './ProjectResponse';
7
- export * from './RegisterRequest';
4
+ export * from './Project';
5
+ export * from './ProjectSettings';
8
6
  export * from './ReviewDecisionMatrix';
@@ -1,10 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export * from './ChangePasswordRequest';
4
3
  export * from './CreateProjectRequest';
5
4
  export * from './DecisionMatrixPattern';
6
5
  export * from './DecisionMatrixPatternEntry';
7
- export * from './LoginRequest';
8
- export * from './ProjectResponse';
9
- export * from './RegisterRequest';
6
+ export * from './Project';
7
+ export * from './ProjectSettings';
10
8
  export * from './ReviewDecisionMatrix';
@@ -0,0 +1,80 @@
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 Project
17
+ */
18
+ export interface Project {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof Project
23
+ */
24
+ id?: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof Project
29
+ */
30
+ name?: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof Project
35
+ */
36
+ status?: ProjectStatusEnum;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof Project
41
+ */
42
+ currentStage?: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof Project
47
+ */
48
+ maxStage?: number;
49
+ /**
50
+ *
51
+ * @type {Date}
52
+ * @memberof Project
53
+ */
54
+ currentStageStartedAt?: Date;
55
+ /**
56
+ *
57
+ * @type {ProjectSettings}
58
+ * @memberof Project
59
+ */
60
+ settings?: ProjectSettings;
61
+ }
62
+ /**
63
+ * @export
64
+ */
65
+ export declare const ProjectStatusEnum: {
66
+ readonly ACTIVE: "ACTIVE";
67
+ readonly ACTIVE_LOCKED: "ACTIVE_LOCKED";
68
+ readonly ARCHIVED: "ARCHIVED";
69
+ readonly DELETED: "DELETED";
70
+ readonly CLEARED: "CLEARED";
71
+ };
72
+ export type ProjectStatusEnum = typeof ProjectStatusEnum[keyof typeof ProjectStatusEnum];
73
+ /**
74
+ * Check if a given object implements the Project interface.
75
+ */
76
+ export declare function instanceOfProject(value: object): value is Project;
77
+ export declare function ProjectFromJSON(json: any): Project;
78
+ export declare function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Project;
79
+ export declare function ProjectToJSON(json: any): Project;
80
+ export declare function ProjectToJSONTyped(value?: Project | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * SnowballR API
6
+ * REST API for the SnowballR Application
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ProjectStatusEnum = void 0;
17
+ exports.instanceOfProject = instanceOfProject;
18
+ exports.ProjectFromJSON = ProjectFromJSON;
19
+ exports.ProjectFromJSONTyped = ProjectFromJSONTyped;
20
+ exports.ProjectToJSON = ProjectToJSON;
21
+ exports.ProjectToJSONTyped = ProjectToJSONTyped;
22
+ const ProjectSettings_1 = require("./ProjectSettings");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.ProjectStatusEnum = {
27
+ ACTIVE: 'ACTIVE',
28
+ ACTIVE_LOCKED: 'ACTIVE_LOCKED',
29
+ ARCHIVED: 'ARCHIVED',
30
+ DELETED: 'DELETED',
31
+ CLEARED: 'CLEARED'
32
+ };
33
+ /**
34
+ * Check if a given object implements the Project interface.
35
+ */
36
+ function instanceOfProject(value) {
37
+ return true;
38
+ }
39
+ function ProjectFromJSON(json) {
40
+ return ProjectFromJSONTyped(json, false);
41
+ }
42
+ function ProjectFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ 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
+ 'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (new Date(json['currentStageStartedAt'])),
53
+ 'settings': json['settings'] == null ? undefined : (0, ProjectSettings_1.ProjectSettingsFromJSON)(json['settings']),
54
+ };
55
+ }
56
+ function ProjectToJSON(json) {
57
+ return ProjectToJSONTyped(json, false);
58
+ }
59
+ function ProjectToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'id': value['id'],
65
+ 'name': value['name'],
66
+ 'status': value['status'],
67
+ 'currentStage': value['currentStage'],
68
+ 'maxStage': value['maxStage'],
69
+ 'currentStageStartedAt': value['currentStageStartedAt'] == null ? undefined : ((value['currentStageStartedAt']).toISOString()),
70
+ 'settings': (0, ProjectSettings_1.ProjectSettingsToJSON)(value['settings']),
71
+ };
72
+ }
@@ -0,0 +1,70 @@
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
+ * @type {number}
22
+ * @memberof ProjectSettings
23
+ */
24
+ similarityThreshold?: number;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ProjectSettings
29
+ */
30
+ snowballingType?: ProjectSettingsSnowballingTypeEnum;
31
+ /**
32
+ *
33
+ * @type {boolean}
34
+ * @memberof ProjectSettings
35
+ */
36
+ reviewMaybeAllowed?: boolean;
37
+ /**
38
+ *
39
+ * @type {ReviewDecisionMatrix}
40
+ * @memberof ProjectSettings
41
+ */
42
+ reviewDecisionMatrix?: ReviewDecisionMatrix;
43
+ /**
44
+ *
45
+ * @type {{ [key: string]: { [key: string]: string; }; }}
46
+ * @memberof ProjectSettings
47
+ */
48
+ fetchers?: {
49
+ [key: string]: {
50
+ [key: string]: string;
51
+ };
52
+ };
53
+ }
54
+ /**
55
+ * @export
56
+ */
57
+ export declare const ProjectSettingsSnowballingTypeEnum: {
58
+ readonly FORWARD: "FORWARD";
59
+ readonly BACKWARD: "BACKWARD";
60
+ readonly BOTH: "BOTH";
61
+ };
62
+ export type ProjectSettingsSnowballingTypeEnum = typeof ProjectSettingsSnowballingTypeEnum[keyof typeof ProjectSettingsSnowballingTypeEnum];
63
+ /**
64
+ * Check if a given object implements the ProjectSettings interface.
65
+ */
66
+ export declare function instanceOfProjectSettings(value: object): value is ProjectSettings;
67
+ export declare function ProjectSettingsFromJSON(json: any): ProjectSettings;
68
+ export declare function ProjectSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectSettings;
69
+ export declare function ProjectSettingsToJSON(json: any): ProjectSettings;
70
+ export declare function ProjectSettingsToJSONTyped(value?: ProjectSettings | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * SnowballR API
6
+ * REST API for the SnowballR Application
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ProjectSettingsSnowballingTypeEnum = void 0;
17
+ exports.instanceOfProjectSettings = instanceOfProjectSettings;
18
+ exports.ProjectSettingsFromJSON = ProjectSettingsFromJSON;
19
+ exports.ProjectSettingsFromJSONTyped = ProjectSettingsFromJSONTyped;
20
+ exports.ProjectSettingsToJSON = ProjectSettingsToJSON;
21
+ exports.ProjectSettingsToJSONTyped = ProjectSettingsToJSONTyped;
22
+ const ReviewDecisionMatrix_1 = require("./ReviewDecisionMatrix");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.ProjectSettingsSnowballingTypeEnum = {
27
+ FORWARD: 'FORWARD',
28
+ BACKWARD: 'BACKWARD',
29
+ BOTH: 'BOTH'
30
+ };
31
+ /**
32
+ * Check if a given object implements the ProjectSettings interface.
33
+ */
34
+ function instanceOfProjectSettings(value) {
35
+ return true;
36
+ }
37
+ function ProjectSettingsFromJSON(json) {
38
+ return ProjectSettingsFromJSONTyped(json, false);
39
+ }
40
+ function ProjectSettingsFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'similarityThreshold': json['similarityThreshold'] == null ? undefined : json['similarityThreshold'],
46
+ 'snowballingType': json['snowballingType'] == null ? undefined : json['snowballingType'],
47
+ 'reviewMaybeAllowed': json['reviewMaybeAllowed'] == null ? undefined : json['reviewMaybeAllowed'],
48
+ 'reviewDecisionMatrix': json['reviewDecisionMatrix'] == null ? undefined : (0, ReviewDecisionMatrix_1.ReviewDecisionMatrixFromJSON)(json['reviewDecisionMatrix']),
49
+ 'fetchers': json['fetchers'] == null ? undefined : json['fetchers'],
50
+ };
51
+ }
52
+ function ProjectSettingsToJSON(json) {
53
+ return ProjectSettingsToJSONTyped(json, false);
54
+ }
55
+ function ProjectSettingsToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'similarityThreshold': value['similarityThreshold'],
61
+ 'snowballingType': value['snowballingType'],
62
+ 'reviewMaybeAllowed': value['reviewMaybeAllowed'],
63
+ 'reviewDecisionMatrix': (0, ReviewDecisionMatrix_1.ReviewDecisionMatrixToJSON)(value['reviewDecisionMatrix']),
64
+ 'fetchers': value['fetchers'],
65
+ };
66
+ }
@@ -1,8 +1,6 @@
1
- export * from './ChangePasswordRequest';
2
1
  export * from './CreateProjectRequest';
3
2
  export * from './DecisionMatrixPattern';
4
3
  export * from './DecisionMatrixPatternEntry';
5
- export * from './LoginRequest';
6
- export * from './ProjectResponse';
7
- export * from './RegisterRequest';
4
+ export * from './Project';
5
+ export * from './ProjectSettings';
8
6
  export * from './ReviewDecisionMatrix';
@@ -16,11 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
- __exportStar(require("./ChangePasswordRequest"), exports);
20
19
  __exportStar(require("./CreateProjectRequest"), exports);
21
20
  __exportStar(require("./DecisionMatrixPattern"), exports);
22
21
  __exportStar(require("./DecisionMatrixPatternEntry"), exports);
23
- __exportStar(require("./LoginRequest"), exports);
24
- __exportStar(require("./ProjectResponse"), exports);
25
- __exportStar(require("./RegisterRequest"), exports);
22
+ __exportStar(require("./Project"), exports);
23
+ __exportStar(require("./ProjectSettings"), exports);
26
24
  __exportStar(require("./ReviewDecisionMatrix"), exports);
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@se-uulm/snowballr-api-client",
3
- "version": "0.2.1-alpha.267f00c",
4
- "description": "API client for the SnowballR Web Application",
5
- "author": "SnowballR",
3
+ "version": "0.2.1-alpha.2ef3e63",
4
+ "description": "OpenAPI client for @se-uulm/snowballr-api-client",
5
+ "author": "OpenAPI-Generator",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/SE-UUlm/snowballr-backend.git"
@@ -18,11 +18,5 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "typescript": "^4.0 || ^5.0"
21
- },
22
- "files": [
23
- "dist",
24
- "README.md",
25
- "LICENSE",
26
- "CHANGELOG.md"
27
- ]
21
+ }
28
22
  }
@@ -0,0 +1,238 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ CreateProjectRequest,
19
+ Project,
20
+ } from '../models/index';
21
+ import {
22
+ CreateProjectRequestFromJSON,
23
+ CreateProjectRequestToJSON,
24
+ ProjectFromJSON,
25
+ ProjectToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface CreateProjectOperationRequest {
29
+ createProjectRequest: CreateProjectRequest;
30
+ }
31
+
32
+ export interface DeleteProjectRequest {
33
+ id: string;
34
+ }
35
+
36
+ export interface GetProjectRequest {
37
+ id: string;
38
+ }
39
+
40
+ /**
41
+ * ProjectsControllerApi - interface
42
+ *
43
+ * @export
44
+ * @interface ProjectsControllerApiInterface
45
+ */
46
+ export interface ProjectsControllerApiInterface {
47
+ /**
48
+ *
49
+ * @param {CreateProjectRequest} createProjectRequest
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ * @memberof ProjectsControllerApiInterface
53
+ */
54
+ createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
55
+
56
+ /**
57
+ */
58
+ createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
59
+
60
+ /**
61
+ *
62
+ * @param {string} id
63
+ * @param {*} [options] Override http request option.
64
+ * @throws {RequiredError}
65
+ * @memberof ProjectsControllerApiInterface
66
+ */
67
+ deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
68
+
69
+ /**
70
+ */
71
+ deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
72
+
73
+ /**
74
+ *
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ * @memberof ProjectsControllerApiInterface
78
+ */
79
+ getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>>;
80
+
81
+ /**
82
+ */
83
+ getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
84
+
85
+ /**
86
+ *
87
+ * @param {string} id
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ * @memberof ProjectsControllerApiInterface
91
+ */
92
+ getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
93
+
94
+ /**
95
+ */
96
+ getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
97
+
98
+ }
99
+
100
+ /**
101
+ *
102
+ */
103
+ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsControllerApiInterface {
104
+
105
+ /**
106
+ */
107
+ async createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
108
+ if (requestParameters['createProjectRequest'] == null) {
109
+ throw new runtime.RequiredError(
110
+ 'createProjectRequest',
111
+ 'Required parameter "createProjectRequest" was null or undefined when calling createProject().'
112
+ );
113
+ }
114
+
115
+ const queryParameters: any = {};
116
+
117
+ const headerParameters: runtime.HTTPHeaders = {};
118
+
119
+ headerParameters['Content-Type'] = 'application/json';
120
+
121
+
122
+ let urlPath = `/projects`;
123
+
124
+ const response = await this.request({
125
+ path: urlPath,
126
+ method: 'POST',
127
+ headers: headerParameters,
128
+ query: queryParameters,
129
+ body: CreateProjectRequestToJSON(requestParameters['createProjectRequest']),
130
+ }, initOverrides);
131
+
132
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
133
+ }
134
+
135
+ /**
136
+ */
137
+ async createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
138
+ const response = await this.createProjectRaw(requestParameters, initOverrides);
139
+ return await response.value();
140
+ }
141
+
142
+ /**
143
+ */
144
+ async deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
145
+ if (requestParameters['id'] == null) {
146
+ throw new runtime.RequiredError(
147
+ 'id',
148
+ 'Required parameter "id" was null or undefined when calling deleteProject().'
149
+ );
150
+ }
151
+
152
+ const queryParameters: any = {};
153
+
154
+ const headerParameters: runtime.HTTPHeaders = {};
155
+
156
+
157
+ let urlPath = `/projects/{id}`;
158
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
159
+
160
+ const response = await this.request({
161
+ path: urlPath,
162
+ method: 'DELETE',
163
+ headers: headerParameters,
164
+ query: queryParameters,
165
+ }, initOverrides);
166
+
167
+ return new runtime.VoidApiResponse(response);
168
+ }
169
+
170
+ /**
171
+ */
172
+ async deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
173
+ await this.deleteProjectRaw(requestParameters, initOverrides);
174
+ }
175
+
176
+ /**
177
+ */
178
+ async getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>> {
179
+ const queryParameters: any = {};
180
+
181
+ const headerParameters: runtime.HTTPHeaders = {};
182
+
183
+
184
+ let urlPath = `/projects`;
185
+
186
+ const response = await this.request({
187
+ path: urlPath,
188
+ method: 'GET',
189
+ headers: headerParameters,
190
+ query: queryParameters,
191
+ }, initOverrides);
192
+
193
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectFromJSON));
194
+ }
195
+
196
+ /**
197
+ */
198
+ async getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>> {
199
+ const response = await this.getAllProjectsRaw(initOverrides);
200
+ return await response.value();
201
+ }
202
+
203
+ /**
204
+ */
205
+ async getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
206
+ if (requestParameters['id'] == null) {
207
+ throw new runtime.RequiredError(
208
+ 'id',
209
+ 'Required parameter "id" was null or undefined when calling getProject().'
210
+ );
211
+ }
212
+
213
+ const queryParameters: any = {};
214
+
215
+ const headerParameters: runtime.HTTPHeaders = {};
216
+
217
+
218
+ let urlPath = `/projects/{id}`;
219
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
220
+
221
+ const response = await this.request({
222
+ path: urlPath,
223
+ method: 'GET',
224
+ headers: headerParameters,
225
+ query: queryParameters,
226
+ }, initOverrides);
227
+
228
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
229
+ }
230
+
231
+ /**
232
+ */
233
+ async getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
234
+ const response = await this.getProjectRaw(requestParameters, initOverrides);
235
+ return await response.value();
236
+ }
237
+
238
+ }
@@ -0,0 +1,3 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './ProjectsControllerApi';