@se-uulm/snowballr-api-client 0.2.1-alpha.ec77462 → 0.2.1-alpha.f647c3c

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/README.md +23 -14
  2. package/dist/apis/AuthControllerApi.d.ts +181 -0
  3. package/dist/apis/AuthControllerApi.js +216 -0
  4. package/dist/apis/ProjectsControllerApi.d.ts +13 -13
  5. package/dist/apis/ProjectsControllerApi.js +8 -8
  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 +13 -13
  13. package/dist/esm/apis/ProjectsControllerApi.js +8 -8
  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/LoginRequest.d.ts +34 -0
  21. package/dist/esm/models/LoginRequest.js +43 -0
  22. package/dist/{models/Project.d.ts → esm/models/ProjectResponse.d.ts} +13 -13
  23. package/dist/esm/models/{Project.js → ProjectResponse.js} +11 -11
  24. package/dist/esm/models/RegisterRequest.d.ts +42 -0
  25. package/dist/esm/models/RegisterRequest.js +47 -0
  26. package/dist/esm/models/index.d.ts +4 -1
  27. package/dist/esm/models/index.js +4 -1
  28. package/dist/models/ChangePasswordRequest.d.ts +34 -0
  29. package/dist/models/ChangePasswordRequest.js +50 -0
  30. package/dist/models/LoginRequest.d.ts +34 -0
  31. package/dist/models/LoginRequest.js +50 -0
  32. package/dist/{esm/models/Project.d.ts → models/ProjectResponse.d.ts} +13 -13
  33. package/dist/models/{Project.js → ProjectResponse.js} +17 -17
  34. package/dist/models/RegisterRequest.d.ts +42 -0
  35. package/dist/models/RegisterRequest.js +54 -0
  36. package/dist/models/index.d.ts +4 -1
  37. package/dist/models/index.js +4 -1
  38. package/package.json +10 -4
  39. package/.openapi-generator/FILES +0 -25
  40. package/.openapi-generator/VERSION +0 -1
  41. package/.openapi-generator-ignore +0 -23
  42. package/docs/CreateProjectRequest.md +0 -34
  43. package/docs/DecisionMatrixPattern.md +0 -36
  44. package/docs/DecisionMatrixPatternEntry.md +0 -36
  45. package/docs/Project.md +0 -46
  46. package/docs/ProjectSettings.md +0 -42
  47. package/docs/ProjectsControllerApi.md +0 -264
  48. package/docs/ReviewDecisionMatrix.md +0 -36
  49. package/src/apis/ProjectsControllerApi.ts +0 -309
  50. package/src/apis/index.ts +0 -3
  51. package/src/index.ts +0 -5
  52. package/src/models/CreateProjectRequest.ts +0 -63
  53. package/src/models/DecisionMatrixPattern.ts +0 -90
  54. package/src/models/DecisionMatrixPatternEntry.ts +0 -81
  55. package/src/models/Project.ts +0 -121
  56. package/src/models/ProjectSettings.ts +0 -107
  57. package/src/models/ReviewDecisionMatrix.ts +0 -77
  58. package/src/models/index.ts +0 -8
  59. package/src/runtime.ts +0 -572
  60. package/tsconfig.esm.json +0 -7
  61. package/tsconfig.json +0 -16
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @se-uulm/snowballr-api-client@0.2.1-alpha.ec77462
1
+ # @se-uulm/snowballr-api-client@0.2.1-alpha.f647c3c
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -16,21 +16,21 @@ Next, try it out.
16
16
  ```ts
17
17
  import {
18
18
  Configuration,
19
- ProjectsControllerApi,
19
+ AuthControllerApi,
20
20
  } from '@se-uulm/snowballr-api-client';
21
- import type { CreateProjectOperationRequest } from '@se-uulm/snowballr-api-client';
21
+ import type { ChangePasswordOperationRequest } from '@se-uulm/snowballr-api-client';
22
22
 
23
23
  async function example() {
24
24
  console.log("🚀 Testing @se-uulm/snowballr-api-client SDK...");
25
- const api = new ProjectsControllerApi();
25
+ const api = new AuthControllerApi();
26
26
 
27
27
  const body = {
28
- // CreateProjectRequest
29
- createProjectRequest: ...,
30
- } satisfies CreateProjectOperationRequest;
28
+ // ChangePasswordRequest
29
+ changePasswordRequest: ...,
30
+ } satisfies ChangePasswordOperationRequest;
31
31
 
32
32
  try {
33
- const data = await api.createProject(body);
33
+ const data = await api.changePassword(body);
34
34
  console.log(data);
35
35
  } catch (error) {
36
36
  console.error(error);
@@ -50,19 +50,28 @@ All URIs are relative to *http://localhost*
50
50
 
51
51
  | Class | Method | HTTP request | Description
52
52
  | ----- | ------ | ------------ | -------------
53
- *ProjectsControllerApi* | [**createProject**](docs/ProjectsControllerApi.md#createprojectoperation) | **POST** /projects |
54
- *ProjectsControllerApi* | [**deleteProject**](docs/ProjectsControllerApi.md#deleteproject) | **DELETE** /projects/{id} |
55
- *ProjectsControllerApi* | [**getAllProjects**](docs/ProjectsControllerApi.md#getallprojects) | **GET** /projects |
56
- *ProjectsControllerApi* | [**getProject**](docs/ProjectsControllerApi.md#getproject) | **GET** /projects/{id} |
53
+ *AuthControllerApi* | [**changePassword**](docs/AuthControllerApi.md#changepasswordoperation) | **POST** /api/v1/auth/change-password |
54
+ *AuthControllerApi* | [**getAuthStatus**](docs/AuthControllerApi.md#getauthstatus) | **GET** /api/v1/auth/status |
55
+ *AuthControllerApi* | [**login**](docs/AuthControllerApi.md#loginoperation) | **POST** /api/v1/auth/login |
56
+ *AuthControllerApi* | [**logout**](docs/AuthControllerApi.md#logout) | **POST** /api/v1/auth/logout |
57
+ *AuthControllerApi* | [**verifyEmail**](docs/AuthControllerApi.md#verifyemail) | **POST** /api/v1/auth/verify-email |
58
+ *ProjectsControllerApi* | [**createProject**](docs/ProjectsControllerApi.md#createprojectoperation) | **POST** /api/v1/projects |
59
+ *ProjectsControllerApi* | [**deleteProject**](docs/ProjectsControllerApi.md#deleteproject) | **DELETE** /api/v1/projects/{id} |
60
+ *ProjectsControllerApi* | [**getAllProjects**](docs/ProjectsControllerApi.md#getallprojects) | **GET** /api/v1/projects |
61
+ *ProjectsControllerApi* | [**getProject**](docs/ProjectsControllerApi.md#getproject) | **GET** /api/v1/projects/{id} |
62
+ *UsersControllerApi* | [**register**](docs/UsersControllerApi.md#registeroperation) | **POST** /api/v1/users |
57
63
 
58
64
 
59
65
  ### Models
60
66
 
67
+ - [ChangePasswordRequest](docs/ChangePasswordRequest.md)
61
68
  - [CreateProjectRequest](docs/CreateProjectRequest.md)
62
69
  - [DecisionMatrixPattern](docs/DecisionMatrixPattern.md)
63
70
  - [DecisionMatrixPatternEntry](docs/DecisionMatrixPatternEntry.md)
64
- - [Project](docs/Project.md)
71
+ - [LoginRequest](docs/LoginRequest.md)
72
+ - [ProjectResponse](docs/ProjectResponse.md)
65
73
  - [ProjectSettings](docs/ProjectSettings.md)
74
+ - [RegisterRequest](docs/RegisterRequest.md)
66
75
  - [ReviewDecisionMatrix](docs/ReviewDecisionMatrix.md)
67
76
 
68
77
  ### Authorization
@@ -77,7 +86,7 @@ and is automatically generated by the
77
86
  [OpenAPI Generator](https://openapi-generator.tech) project:
78
87
 
79
88
  - API version: `v1`
80
- - Package version: `0.2.1-alpha.ec77462`
89
+ - Package version: `0.2.1-alpha.f647c3c`
81
90
  - Generator version: `7.26.0`
82
91
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
83
92
 
@@ -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
+ }
@@ -0,0 +1,216 @@
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.AuthControllerApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const ChangePasswordRequest_1 = require("../models/ChangePasswordRequest");
28
+ const LoginRequest_1 = require("../models/LoginRequest");
29
+ /**
30
+ *
31
+ */
32
+ class AuthControllerApi extends runtime.BaseAPI {
33
+ /**
34
+ * Creates request options for changePassword without sending the request
35
+ */
36
+ changePasswordRequestOpts(requestParameters) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ if (requestParameters['changePasswordRequest'] == null) {
39
+ throw new runtime.RequiredError('changePasswordRequest', 'Required parameter "changePasswordRequest" was null or undefined when calling changePassword().');
40
+ }
41
+ const queryParameters = {};
42
+ const headerParameters = {};
43
+ headerParameters['Content-Type'] = 'application/json';
44
+ let urlPath = `/api/v1/auth/change-password`;
45
+ return {
46
+ path: urlPath,
47
+ method: 'POST',
48
+ headers: headerParameters,
49
+ query: queryParameters,
50
+ body: (0, ChangePasswordRequest_1.ChangePasswordRequestToJSON)(requestParameters['changePasswordRequest']),
51
+ };
52
+ });
53
+ }
54
+ /**
55
+ */
56
+ changePasswordRaw(requestParameters, initOverrides) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ const requestOptions = yield this.changePasswordRequestOpts(requestParameters);
59
+ const response = yield this.request(requestOptions, initOverrides);
60
+ return new runtime.VoidApiResponse(response);
61
+ });
62
+ }
63
+ /**
64
+ */
65
+ changePassword(requestParameters, initOverrides) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ yield this.changePasswordRaw(requestParameters, initOverrides);
68
+ });
69
+ }
70
+ /**
71
+ * Creates request options for getAuthStatus without sending the request
72
+ */
73
+ getAuthStatusRequestOpts() {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ const queryParameters = {};
76
+ const headerParameters = {};
77
+ let urlPath = `/api/v1/auth/status`;
78
+ return {
79
+ path: urlPath,
80
+ method: 'GET',
81
+ headers: headerParameters,
82
+ query: queryParameters,
83
+ };
84
+ });
85
+ }
86
+ /**
87
+ */
88
+ getAuthStatusRaw(initOverrides) {
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ const requestOptions = yield this.getAuthStatusRequestOpts();
91
+ const response = yield this.request(requestOptions, initOverrides);
92
+ if (this.isJsonMime(response.headers.get('content-type'))) {
93
+ return new runtime.JSONApiResponse(response);
94
+ }
95
+ else {
96
+ return new runtime.TextApiResponse(response);
97
+ }
98
+ });
99
+ }
100
+ /**
101
+ */
102
+ getAuthStatus(initOverrides) {
103
+ return __awaiter(this, void 0, void 0, function* () {
104
+ const response = yield this.getAuthStatusRaw(initOverrides);
105
+ return yield response.value();
106
+ });
107
+ }
108
+ /**
109
+ * Creates request options for login without sending the request
110
+ */
111
+ loginRequestOpts(requestParameters) {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ if (requestParameters['loginRequest'] == null) {
114
+ throw new runtime.RequiredError('loginRequest', 'Required parameter "loginRequest" was null or undefined when calling login().');
115
+ }
116
+ const queryParameters = {};
117
+ const headerParameters = {};
118
+ headerParameters['Content-Type'] = 'application/json';
119
+ let urlPath = `/api/v1/auth/login`;
120
+ return {
121
+ path: urlPath,
122
+ method: 'POST',
123
+ headers: headerParameters,
124
+ query: queryParameters,
125
+ body: (0, LoginRequest_1.LoginRequestToJSON)(requestParameters['loginRequest']),
126
+ };
127
+ });
128
+ }
129
+ /**
130
+ */
131
+ loginRaw(requestParameters, initOverrides) {
132
+ return __awaiter(this, void 0, void 0, function* () {
133
+ const requestOptions = yield this.loginRequestOpts(requestParameters);
134
+ const response = yield this.request(requestOptions, initOverrides);
135
+ return new runtime.VoidApiResponse(response);
136
+ });
137
+ }
138
+ /**
139
+ */
140
+ login(requestParameters, initOverrides) {
141
+ return __awaiter(this, void 0, void 0, function* () {
142
+ yield this.loginRaw(requestParameters, initOverrides);
143
+ });
144
+ }
145
+ /**
146
+ * Creates request options for logout without sending the request
147
+ */
148
+ logoutRequestOpts() {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ const queryParameters = {};
151
+ const headerParameters = {};
152
+ let urlPath = `/api/v1/auth/logout`;
153
+ return {
154
+ path: urlPath,
155
+ method: 'POST',
156
+ headers: headerParameters,
157
+ query: queryParameters,
158
+ };
159
+ });
160
+ }
161
+ /**
162
+ */
163
+ logoutRaw(initOverrides) {
164
+ return __awaiter(this, void 0, void 0, function* () {
165
+ const requestOptions = yield this.logoutRequestOpts();
166
+ const response = yield this.request(requestOptions, initOverrides);
167
+ return new runtime.VoidApiResponse(response);
168
+ });
169
+ }
170
+ /**
171
+ */
172
+ logout(initOverrides) {
173
+ return __awaiter(this, void 0, void 0, function* () {
174
+ yield this.logoutRaw(initOverrides);
175
+ });
176
+ }
177
+ /**
178
+ * Creates request options for verifyEmail without sending the request
179
+ */
180
+ verifyEmailRequestOpts(requestParameters) {
181
+ return __awaiter(this, void 0, void 0, function* () {
182
+ if (requestParameters['token'] == null) {
183
+ throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling verifyEmail().');
184
+ }
185
+ const queryParameters = {};
186
+ if (requestParameters['token'] != null) {
187
+ queryParameters['token'] = requestParameters['token'];
188
+ }
189
+ const headerParameters = {};
190
+ let urlPath = `/api/v1/auth/verify-email`;
191
+ return {
192
+ path: urlPath,
193
+ method: 'POST',
194
+ headers: headerParameters,
195
+ query: queryParameters,
196
+ };
197
+ });
198
+ }
199
+ /**
200
+ */
201
+ verifyEmailRaw(requestParameters, initOverrides) {
202
+ return __awaiter(this, void 0, void 0, function* () {
203
+ const requestOptions = yield this.verifyEmailRequestOpts(requestParameters);
204
+ const response = yield this.request(requestOptions, initOverrides);
205
+ return new runtime.VoidApiResponse(response);
206
+ });
207
+ }
208
+ /**
209
+ */
210
+ verifyEmail(requestParameters, initOverrides) {
211
+ return __awaiter(this, void 0, void 0, function* () {
212
+ yield this.verifyEmailRaw(requestParameters, initOverrides);
213
+ });
214
+ }
215
+ }
216
+ exports.AuthControllerApi = AuthControllerApi;
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import { type CreateProjectRequest } from '../models/CreateProjectRequest';
14
- import { type Project } from '../models/Project';
14
+ import { type ProjectResponse } from '../models/ProjectResponse';
15
15
  export interface CreateProjectOperationRequest {
16
16
  /**
17
17
  *
@@ -51,10 +51,10 @@ export interface ProjectsControllerApiInterface {
51
51
  * @throws {RequiredError}
52
52
  * @memberof ProjectsControllerApiInterface
53
53
  */
54
- createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
54
+ createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
55
55
  /**
56
56
  */
57
- createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
57
+ createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
58
58
  /**
59
59
  * Creates request options for deleteProject without sending the request
60
60
  * @param {string} id
@@ -85,10 +85,10 @@ export interface ProjectsControllerApiInterface {
85
85
  * @throws {RequiredError}
86
86
  * @memberof ProjectsControllerApiInterface
87
87
  */
88
- getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>>;
88
+ getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectResponse>>>;
89
89
  /**
90
90
  */
91
- getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
91
+ getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectResponse>>;
92
92
  /**
93
93
  * Creates request options for getProject without sending the request
94
94
  * @param {string} id
@@ -103,10 +103,10 @@ export interface ProjectsControllerApiInterface {
103
103
  * @throws {RequiredError}
104
104
  * @memberof ProjectsControllerApiInterface
105
105
  */
106
- getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
106
+ getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
107
107
  /**
108
108
  */
109
- getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
109
+ getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
110
110
  }
111
111
  /**
112
112
  *
@@ -118,10 +118,10 @@ export declare class ProjectsControllerApi extends runtime.BaseAPI implements Pr
118
118
  createProjectRequestOpts(requestParameters: CreateProjectOperationRequest): Promise<runtime.RequestOpts>;
119
119
  /**
120
120
  */
121
- createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
121
+ createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
122
122
  /**
123
123
  */
124
- createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
124
+ createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
125
125
  /**
126
126
  * Creates request options for deleteProject without sending the request
127
127
  */
@@ -138,18 +138,18 @@ export declare class ProjectsControllerApi extends runtime.BaseAPI implements Pr
138
138
  getAllProjectsRequestOpts(): Promise<runtime.RequestOpts>;
139
139
  /**
140
140
  */
141
- getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Project>>>;
141
+ getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectResponse>>>;
142
142
  /**
143
143
  */
144
- getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
144
+ getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectResponse>>;
145
145
  /**
146
146
  * Creates request options for getProject without sending the request
147
147
  */
148
148
  getProjectRequestOpts(requestParameters: GetProjectRequest): Promise<runtime.RequestOpts>;
149
149
  /**
150
150
  */
151
- getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
151
+ getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
152
152
  /**
153
153
  */
154
- getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
154
+ getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
155
155
  }
@@ -25,7 +25,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.ProjectsControllerApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const CreateProjectRequest_1 = require("../models/CreateProjectRequest");
28
- const Project_1 = require("../models/Project");
28
+ const ProjectResponse_1 = require("../models/ProjectResponse");
29
29
  /**
30
30
  *
31
31
  */
@@ -41,7 +41,7 @@ class ProjectsControllerApi extends runtime.BaseAPI {
41
41
  const queryParameters = {};
42
42
  const headerParameters = {};
43
43
  headerParameters['Content-Type'] = 'application/json';
44
- let urlPath = `/projects`;
44
+ let urlPath = `/api/v1/projects`;
45
45
  return {
46
46
  path: urlPath,
47
47
  method: 'POST',
@@ -57,7 +57,7 @@ class ProjectsControllerApi extends runtime.BaseAPI {
57
57
  return __awaiter(this, void 0, void 0, function* () {
58
58
  const requestOptions = yield this.createProjectRequestOpts(requestParameters);
59
59
  const response = yield this.request(requestOptions, initOverrides);
60
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, Project_1.ProjectFromJSON)(jsonValue));
60
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ProjectResponse_1.ProjectResponseFromJSON)(jsonValue));
61
61
  });
62
62
  }
63
63
  /**
@@ -78,7 +78,7 @@ class ProjectsControllerApi extends runtime.BaseAPI {
78
78
  }
79
79
  const queryParameters = {};
80
80
  const headerParameters = {};
81
- let urlPath = `/projects/{id}`;
81
+ let urlPath = `/api/v1/projects/{id}`;
82
82
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
83
83
  return {
84
84
  path: urlPath,
@@ -111,7 +111,7 @@ class ProjectsControllerApi extends runtime.BaseAPI {
111
111
  return __awaiter(this, void 0, void 0, function* () {
112
112
  const queryParameters = {};
113
113
  const headerParameters = {};
114
- let urlPath = `/projects`;
114
+ let urlPath = `/api/v1/projects`;
115
115
  return {
116
116
  path: urlPath,
117
117
  method: 'GET',
@@ -126,7 +126,7 @@ class ProjectsControllerApi extends runtime.BaseAPI {
126
126
  return __awaiter(this, void 0, void 0, function* () {
127
127
  const requestOptions = yield this.getAllProjectsRequestOpts();
128
128
  const response = yield this.request(requestOptions, initOverrides);
129
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(Project_1.ProjectFromJSON));
129
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectResponse_1.ProjectResponseFromJSON));
130
130
  });
131
131
  }
132
132
  /**
@@ -147,7 +147,7 @@ class ProjectsControllerApi extends runtime.BaseAPI {
147
147
  }
148
148
  const queryParameters = {};
149
149
  const headerParameters = {};
150
- let urlPath = `/projects/{id}`;
150
+ let urlPath = `/api/v1/projects/{id}`;
151
151
  urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
152
152
  return {
153
153
  path: urlPath,
@@ -163,7 +163,7 @@ class ProjectsControllerApi extends runtime.BaseAPI {
163
163
  return __awaiter(this, void 0, void 0, function* () {
164
164
  const requestOptions = yield this.getProjectRequestOpts(requestParameters);
165
165
  const response = yield this.request(requestOptions, initOverrides);
166
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, Project_1.ProjectFromJSON)(jsonValue));
166
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ProjectResponse_1.ProjectResponseFromJSON)(jsonValue));
167
167
  });
168
168
  }
169
169
  /**