@se-uulm/snowballr-api-client 0.2.1-alpha.b4f1a96 → 0.2.1-alpha.b7a79bf

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
@@ -10,14 +10,24 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateProjectRequest, Project } from '../models/index';
13
+ import { type CreateProjectRequest } from '../models/CreateProjectRequest';
14
+ import { type ProjectResponse } from '../models/ProjectResponse';
14
15
  export interface CreateProjectOperationRequest {
16
+ /**
17
+ *
18
+ */
15
19
  createProjectRequest: CreateProjectRequest;
16
20
  }
17
21
  export interface DeleteProjectRequest {
22
+ /**
23
+ *
24
+ */
18
25
  id: string;
19
26
  }
20
27
  export interface GetProjectRequest {
28
+ /**
29
+ *
30
+ */
21
31
  id: string;
22
32
  }
23
33
  /**
@@ -27,6 +37,13 @@ export interface GetProjectRequest {
27
37
  * @interface ProjectsControllerApiInterface
28
38
  */
29
39
  export interface ProjectsControllerApiInterface {
40
+ /**
41
+ * Creates request options for createProject without sending the request
42
+ * @param {CreateProjectRequest} createProjectRequest
43
+ * @throws {RequiredError}
44
+ * @memberof ProjectsControllerApiInterface
45
+ */
46
+ createProjectRequestOpts(requestParameters: CreateProjectOperationRequest): Promise<runtime.RequestOpts>;
30
47
  /**
31
48
  *
32
49
  * @param {CreateProjectRequest} createProjectRequest
@@ -34,10 +51,17 @@ export interface ProjectsControllerApiInterface {
34
51
  * @throws {RequiredError}
35
52
  * @memberof ProjectsControllerApiInterface
36
53
  */
37
- createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
54
+ createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
38
55
  /**
39
56
  */
40
- createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
57
+ createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
58
+ /**
59
+ * Creates request options for deleteProject without sending the request
60
+ * @param {string} id
61
+ * @throws {RequiredError}
62
+ * @memberof ProjectsControllerApiInterface
63
+ */
64
+ deleteProjectRequestOpts(requestParameters: DeleteProjectRequest): Promise<runtime.RequestOpts>;
41
65
  /**
42
66
  *
43
67
  * @param {string} id
@@ -49,16 +73,29 @@ export interface ProjectsControllerApiInterface {
49
73
  /**
50
74
  */
51
75
  deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
76
+ /**
77
+ * Creates request options for getAllProjects without sending the request
78
+ * @throws {RequiredError}
79
+ * @memberof ProjectsControllerApiInterface
80
+ */
81
+ getAllProjectsRequestOpts(): Promise<runtime.RequestOpts>;
52
82
  /**
53
83
  *
54
84
  * @param {*} [options] Override http request option.
55
85
  * @throws {RequiredError}
56
86
  * @memberof ProjectsControllerApiInterface
57
87
  */
58
- getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>>;
88
+ getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectResponse>>>;
59
89
  /**
60
90
  */
61
- getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
91
+ getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectResponse>>;
92
+ /**
93
+ * Creates request options for getProject without sending the request
94
+ * @param {string} id
95
+ * @throws {RequiredError}
96
+ * @memberof ProjectsControllerApiInterface
97
+ */
98
+ getProjectRequestOpts(requestParameters: GetProjectRequest): Promise<runtime.RequestOpts>;
62
99
  /**
63
100
  *
64
101
  * @param {string} id
@@ -66,37 +103,53 @@ export interface ProjectsControllerApiInterface {
66
103
  * @throws {RequiredError}
67
104
  * @memberof ProjectsControllerApiInterface
68
105
  */
69
- getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
106
+ getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
70
107
  /**
71
108
  */
72
- getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
109
+ getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
73
110
  }
74
111
  /**
75
112
  *
76
113
  */
77
114
  export declare class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsControllerApiInterface {
115
+ /**
116
+ * Creates request options for createProject without sending the request
117
+ */
118
+ createProjectRequestOpts(requestParameters: CreateProjectOperationRequest): Promise<runtime.RequestOpts>;
119
+ /**
120
+ */
121
+ createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
78
122
  /**
79
123
  */
80
- createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
124
+ createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
81
125
  /**
126
+ * Creates request options for deleteProject without sending the request
82
127
  */
83
- createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
128
+ deleteProjectRequestOpts(requestParameters: DeleteProjectRequest): Promise<runtime.RequestOpts>;
84
129
  /**
85
130
  */
86
131
  deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
87
132
  /**
88
133
  */
89
134
  deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
135
+ /**
136
+ * Creates request options for getAllProjects without sending the request
137
+ */
138
+ getAllProjectsRequestOpts(): Promise<runtime.RequestOpts>;
139
+ /**
140
+ */
141
+ getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectResponse>>>;
90
142
  /**
91
143
  */
92
- getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>>;
144
+ getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectResponse>>;
93
145
  /**
146
+ * Creates request options for getProject without sending the request
94
147
  */
95
- getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
148
+ getProjectRequestOpts(requestParameters: GetProjectRequest): Promise<runtime.RequestOpts>;
96
149
  /**
97
150
  */
98
- getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
151
+ getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
99
152
  /**
100
153
  */
101
- getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
154
+ getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
102
155
  }
@@ -24,14 +24,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.ProjectsControllerApi = void 0;
26
26
  const runtime = require("../runtime");
27
- const index_1 = require("../models/index");
27
+ const CreateProjectRequest_1 = require("../models/CreateProjectRequest");
28
+ const ProjectResponse_1 = require("../models/ProjectResponse");
28
29
  /**
29
30
  *
30
31
  */
31
32
  class ProjectsControllerApi extends runtime.BaseAPI {
32
33
  /**
34
+ * Creates request options for createProject without sending the request
33
35
  */
34
- createProjectRaw(requestParameters, initOverrides) {
36
+ createProjectRequestOpts(requestParameters) {
35
37
  return __awaiter(this, void 0, void 0, function* () {
36
38
  if (requestParameters['createProjectRequest'] == null) {
37
39
  throw new runtime.RequiredError('createProjectRequest', 'Required parameter "createProjectRequest" was null or undefined when calling createProject().');
@@ -39,15 +41,23 @@ class ProjectsControllerApi extends runtime.BaseAPI {
39
41
  const queryParameters = {};
40
42
  const headerParameters = {};
41
43
  headerParameters['Content-Type'] = 'application/json';
42
- let urlPath = `/projects`;
43
- const response = yield this.request({
44
+ let urlPath = `/api/v1/projects`;
45
+ return {
44
46
  path: urlPath,
45
47
  method: 'POST',
46
48
  headers: headerParameters,
47
49
  query: queryParameters,
48
- body: (0, index_1.CreateProjectRequestToJSON)(requestParameters['createProjectRequest']),
49
- }, initOverrides);
50
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectFromJSON)(jsonValue));
50
+ body: (0, CreateProjectRequest_1.CreateProjectRequestToJSON)(requestParameters['createProjectRequest']),
51
+ };
52
+ });
53
+ }
54
+ /**
55
+ */
56
+ createProjectRaw(requestParameters, initOverrides) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ const requestOptions = yield this.createProjectRequestOpts(requestParameters);
59
+ const response = yield this.request(requestOptions, initOverrides);
60
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ProjectResponse_1.ProjectResponseFromJSON)(jsonValue));
51
61
  });
52
62
  }
53
63
  /**
@@ -59,22 +69,31 @@ class ProjectsControllerApi extends runtime.BaseAPI {
59
69
  });
60
70
  }
61
71
  /**
72
+ * Creates request options for deleteProject without sending the request
62
73
  */
63
- deleteProjectRaw(requestParameters, initOverrides) {
74
+ deleteProjectRequestOpts(requestParameters) {
64
75
  return __awaiter(this, void 0, void 0, function* () {
65
76
  if (requestParameters['id'] == null) {
66
77
  throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteProject().');
67
78
  }
68
79
  const queryParameters = {};
69
80
  const headerParameters = {};
70
- let urlPath = `/projects/{id}`;
71
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
72
- const response = yield this.request({
81
+ let urlPath = `/api/v1/projects/{id}`;
82
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
83
+ return {
73
84
  path: urlPath,
74
85
  method: 'DELETE',
75
86
  headers: headerParameters,
76
87
  query: queryParameters,
77
- }, initOverrides);
88
+ };
89
+ });
90
+ }
91
+ /**
92
+ */
93
+ deleteProjectRaw(requestParameters, initOverrides) {
94
+ return __awaiter(this, void 0, void 0, function* () {
95
+ const requestOptions = yield this.deleteProjectRequestOpts(requestParameters);
96
+ const response = yield this.request(requestOptions, initOverrides);
78
97
  return new runtime.VoidApiResponse(response);
79
98
  });
80
99
  }
@@ -86,19 +105,28 @@ class ProjectsControllerApi extends runtime.BaseAPI {
86
105
  });
87
106
  }
88
107
  /**
108
+ * Creates request options for getAllProjects without sending the request
89
109
  */
90
- getAllProjectsRaw(initOverrides) {
110
+ getAllProjectsRequestOpts() {
91
111
  return __awaiter(this, void 0, void 0, function* () {
92
112
  const queryParameters = {};
93
113
  const headerParameters = {};
94
- let urlPath = `/projects`;
95
- const response = yield this.request({
114
+ let urlPath = `/api/v1/projects`;
115
+ return {
96
116
  path: urlPath,
97
117
  method: 'GET',
98
118
  headers: headerParameters,
99
119
  query: queryParameters,
100
- }, initOverrides);
101
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ProjectFromJSON));
120
+ };
121
+ });
122
+ }
123
+ /**
124
+ */
125
+ getAllProjectsRaw(initOverrides) {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ const requestOptions = yield this.getAllProjectsRequestOpts();
128
+ const response = yield this.request(requestOptions, initOverrides);
129
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectResponse_1.ProjectResponseFromJSON));
102
130
  });
103
131
  }
104
132
  /**
@@ -110,23 +138,32 @@ class ProjectsControllerApi extends runtime.BaseAPI {
110
138
  });
111
139
  }
112
140
  /**
141
+ * Creates request options for getProject without sending the request
113
142
  */
114
- getProjectRaw(requestParameters, initOverrides) {
143
+ getProjectRequestOpts(requestParameters) {
115
144
  return __awaiter(this, void 0, void 0, function* () {
116
145
  if (requestParameters['id'] == null) {
117
146
  throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getProject().');
118
147
  }
119
148
  const queryParameters = {};
120
149
  const headerParameters = {};
121
- let urlPath = `/projects/{id}`;
122
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
123
- const response = yield this.request({
150
+ let urlPath = `/api/v1/projects/{id}`;
151
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
152
+ return {
124
153
  path: urlPath,
125
154
  method: 'GET',
126
155
  headers: headerParameters,
127
156
  query: queryParameters,
128
- }, initOverrides);
129
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectFromJSON)(jsonValue));
157
+ };
158
+ });
159
+ }
160
+ /**
161
+ */
162
+ getProjectRaw(requestParameters, initOverrides) {
163
+ return __awaiter(this, void 0, void 0, function* () {
164
+ const requestOptions = yield this.getProjectRequestOpts(requestParameters);
165
+ const response = yield this.request(requestOptions, initOverrides);
166
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ProjectResponse_1.ProjectResponseFromJSON)(jsonValue));
130
167
  });
131
168
  }
132
169
  /**
@@ -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 * as runtime from '../runtime';
13
+ import { type RegisterRequest } from '../models/RegisterRequest';
14
+ export interface RegisterOperationRequest {
15
+ /**
16
+ *
17
+ */
18
+ registerRequest: RegisterRequest;
19
+ }
20
+ /**
21
+ * UsersControllerApi - interface
22
+ *
23
+ * @export
24
+ * @interface UsersControllerApiInterface
25
+ */
26
+ export interface UsersControllerApiInterface {
27
+ /**
28
+ * Creates request options for register without sending the request
29
+ * @param {RegisterRequest} registerRequest
30
+ * @throws {RequiredError}
31
+ * @memberof UsersControllerApiInterface
32
+ */
33
+ registerRequestOpts(requestParameters: RegisterOperationRequest): Promise<runtime.RequestOpts>;
34
+ /**
35
+ *
36
+ * @param {RegisterRequest} registerRequest
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ * @memberof UsersControllerApiInterface
40
+ */
41
+ registerRaw(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
42
+ /**
43
+ */
44
+ register(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
45
+ }
46
+ /**
47
+ *
48
+ */
49
+ export declare class UsersControllerApi extends runtime.BaseAPI implements UsersControllerApiInterface {
50
+ /**
51
+ * Creates request options for register without sending the request
52
+ */
53
+ registerRequestOpts(requestParameters: RegisterOperationRequest): Promise<runtime.RequestOpts>;
54
+ /**
55
+ */
56
+ registerRaw(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
57
+ /**
58
+ */
59
+ register(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
60
+ }
@@ -0,0 +1,70 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.UsersControllerApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const RegisterRequest_1 = require("../models/RegisterRequest");
28
+ /**
29
+ *
30
+ */
31
+ class UsersControllerApi extends runtime.BaseAPI {
32
+ /**
33
+ * Creates request options for register without sending the request
34
+ */
35
+ registerRequestOpts(requestParameters) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters['registerRequest'] == null) {
38
+ throw new runtime.RequiredError('registerRequest', 'Required parameter "registerRequest" was null or undefined when calling register().');
39
+ }
40
+ const queryParameters = {};
41
+ const headerParameters = {};
42
+ headerParameters['Content-Type'] = 'application/json';
43
+ let urlPath = `/api/v1/users`;
44
+ return {
45
+ path: urlPath,
46
+ method: 'POST',
47
+ headers: headerParameters,
48
+ query: queryParameters,
49
+ body: (0, RegisterRequest_1.RegisterRequestToJSON)(requestParameters['registerRequest']),
50
+ };
51
+ });
52
+ }
53
+ /**
54
+ */
55
+ registerRaw(requestParameters, initOverrides) {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ const requestOptions = yield this.registerRequestOpts(requestParameters);
58
+ const response = yield this.request(requestOptions, initOverrides);
59
+ return new runtime.VoidApiResponse(response);
60
+ });
61
+ }
62
+ /**
63
+ */
64
+ register(requestParameters, initOverrides) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ yield this.registerRaw(requestParameters, initOverrides);
67
+ });
68
+ }
69
+ }
70
+ exports.UsersControllerApi = UsersControllerApi;
@@ -1 +1,3 @@
1
+ export * from './AuthControllerApi';
1
2
  export * from './ProjectsControllerApi';
3
+ export * from './UsersControllerApi';
@@ -16,4 +16,6 @@ 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("./AuthControllerApi"), exports);
19
20
  __exportStar(require("./ProjectsControllerApi"), exports);
21
+ __exportStar(require("./UsersControllerApi"), exports);
@@ -0,0 +1,181 @@
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 * as runtime from '../runtime';
13
+ import { type ChangePasswordRequest } from '../models/ChangePasswordRequest';
14
+ import { type LoginRequest } from '../models/LoginRequest';
15
+ export interface ChangePasswordOperationRequest {
16
+ /**
17
+ *
18
+ */
19
+ changePasswordRequest: ChangePasswordRequest;
20
+ }
21
+ export interface LoginOperationRequest {
22
+ /**
23
+ *
24
+ */
25
+ loginRequest: LoginRequest;
26
+ }
27
+ export interface VerifyEmailRequest {
28
+ /**
29
+ *
30
+ */
31
+ token: string;
32
+ }
33
+ /**
34
+ * AuthControllerApi - interface
35
+ *
36
+ * @export
37
+ * @interface AuthControllerApiInterface
38
+ */
39
+ export interface AuthControllerApiInterface {
40
+ /**
41
+ * Creates request options for changePassword without sending the request
42
+ * @param {ChangePasswordRequest} changePasswordRequest
43
+ * @throws {RequiredError}
44
+ * @memberof AuthControllerApiInterface
45
+ */
46
+ changePasswordRequestOpts(requestParameters: ChangePasswordOperationRequest): Promise<runtime.RequestOpts>;
47
+ /**
48
+ *
49
+ * @param {ChangePasswordRequest} changePasswordRequest
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ * @memberof AuthControllerApiInterface
53
+ */
54
+ changePasswordRaw(requestParameters: ChangePasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
55
+ /**
56
+ */
57
+ changePassword(requestParameters: ChangePasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
58
+ /**
59
+ * Creates request options for getAuthStatus without sending the request
60
+ * @throws {RequiredError}
61
+ * @memberof AuthControllerApiInterface
62
+ */
63
+ getAuthStatusRequestOpts(): Promise<runtime.RequestOpts>;
64
+ /**
65
+ *
66
+ * @param {*} [options] Override http request option.
67
+ * @throws {RequiredError}
68
+ * @memberof AuthControllerApiInterface
69
+ */
70
+ getAuthStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
71
+ /**
72
+ */
73
+ getAuthStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
74
+ /**
75
+ * Creates request options for login without sending the request
76
+ * @param {LoginRequest} loginRequest
77
+ * @throws {RequiredError}
78
+ * @memberof AuthControllerApiInterface
79
+ */
80
+ loginRequestOpts(requestParameters: LoginOperationRequest): Promise<runtime.RequestOpts>;
81
+ /**
82
+ *
83
+ * @param {LoginRequest} loginRequest
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ * @memberof AuthControllerApiInterface
87
+ */
88
+ loginRaw(requestParameters: LoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
89
+ /**
90
+ */
91
+ login(requestParameters: LoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
92
+ /**
93
+ * Creates request options for logout without sending the request
94
+ * @throws {RequiredError}
95
+ * @memberof AuthControllerApiInterface
96
+ */
97
+ logoutRequestOpts(): Promise<runtime.RequestOpts>;
98
+ /**
99
+ *
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ * @memberof AuthControllerApiInterface
103
+ */
104
+ logoutRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
105
+ /**
106
+ */
107
+ logout(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
108
+ /**
109
+ * Creates request options for verifyEmail without sending the request
110
+ * @param {string} token
111
+ * @throws {RequiredError}
112
+ * @memberof AuthControllerApiInterface
113
+ */
114
+ verifyEmailRequestOpts(requestParameters: VerifyEmailRequest): Promise<runtime.RequestOpts>;
115
+ /**
116
+ *
117
+ * @param {string} token
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ * @memberof AuthControllerApiInterface
121
+ */
122
+ verifyEmailRaw(requestParameters: VerifyEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
123
+ /**
124
+ */
125
+ verifyEmail(requestParameters: VerifyEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
126
+ }
127
+ /**
128
+ *
129
+ */
130
+ export declare class AuthControllerApi extends runtime.BaseAPI implements AuthControllerApiInterface {
131
+ /**
132
+ * Creates request options for changePassword without sending the request
133
+ */
134
+ changePasswordRequestOpts(requestParameters: ChangePasswordOperationRequest): Promise<runtime.RequestOpts>;
135
+ /**
136
+ */
137
+ changePasswordRaw(requestParameters: ChangePasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
138
+ /**
139
+ */
140
+ changePassword(requestParameters: ChangePasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
141
+ /**
142
+ * Creates request options for getAuthStatus without sending the request
143
+ */
144
+ getAuthStatusRequestOpts(): Promise<runtime.RequestOpts>;
145
+ /**
146
+ */
147
+ getAuthStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
148
+ /**
149
+ */
150
+ getAuthStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
151
+ /**
152
+ * Creates request options for login without sending the request
153
+ */
154
+ loginRequestOpts(requestParameters: LoginOperationRequest): Promise<runtime.RequestOpts>;
155
+ /**
156
+ */
157
+ loginRaw(requestParameters: LoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
158
+ /**
159
+ */
160
+ login(requestParameters: LoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
161
+ /**
162
+ * Creates request options for logout without sending the request
163
+ */
164
+ logoutRequestOpts(): Promise<runtime.RequestOpts>;
165
+ /**
166
+ */
167
+ logoutRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
168
+ /**
169
+ */
170
+ logout(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
171
+ /**
172
+ * Creates request options for verifyEmail without sending the request
173
+ */
174
+ verifyEmailRequestOpts(requestParameters: VerifyEmailRequest): Promise<runtime.RequestOpts>;
175
+ /**
176
+ */
177
+ verifyEmailRaw(requestParameters: VerifyEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
178
+ /**
179
+ */
180
+ verifyEmail(requestParameters: VerifyEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
181
+ }