@sfxcode/nuxt-mongocamp-server 1.4.0 → 1.4.1
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.
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -3
- package/dist/runtime/api/.openapi-generator/VERSION +1 -1
- package/dist/runtime/api/apis/AdminApi.d.ts +48 -0
- package/dist/runtime/api/apis/AdminApi.js +144 -60
- package/dist/runtime/api/apis/ApplicationApi.d.ts +20 -0
- package/dist/runtime/api/apis/ApplicationApi.js +60 -25
- package/dist/runtime/api/apis/AuthApi.d.ts +32 -0
- package/dist/runtime/api/apis/AuthApi.js +96 -40
- package/dist/runtime/api/apis/BucketApi.d.ts +16 -0
- package/dist/runtime/api/apis/BucketApi.js +48 -20
- package/dist/runtime/api/apis/CollectionApi.d.ts +40 -0
- package/dist/runtime/api/apis/CollectionApi.js +120 -50
- package/dist/runtime/api/apis/DatabaseApi.d.ts +20 -0
- package/dist/runtime/api/apis/DatabaseApi.js +60 -25
- package/dist/runtime/api/apis/DocumentApi.d.ts +40 -0
- package/dist/runtime/api/apis/DocumentApi.js +120 -50
- package/dist/runtime/api/apis/FileApi.d.ts +28 -0
- package/dist/runtime/api/apis/FileApi.js +84 -35
- package/dist/runtime/api/apis/IndexApi.d.ts +32 -0
- package/dist/runtime/api/apis/IndexApi.js +96 -40
- package/dist/runtime/api/apis/InformationApi.d.ts +4 -0
- package/dist/runtime/api/apis/InformationApi.js +12 -5
- package/dist/runtime/api/apis/JobsApi.d.ts +24 -0
- package/dist/runtime/api/apis/JobsApi.js +72 -30
- package/dist/runtime/api/runtime.js +12 -0
- package/package.json +13 -13
|
@@ -7,10 +7,9 @@ import {
|
|
|
7
7
|
} from "../models/index.js";
|
|
8
8
|
export class ApplicationApi extends runtime.BaseAPI {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* Configuration for configurationKey
|
|
10
|
+
* Creates request options for getConfig without sending the request
|
|
12
11
|
*/
|
|
13
|
-
async
|
|
12
|
+
async getConfigRequestOpts(requestParameters) {
|
|
14
13
|
if (requestParameters["configurationKey"] == null) {
|
|
15
14
|
throw new runtime.RequiredError(
|
|
16
15
|
"configurationKey",
|
|
@@ -34,12 +33,20 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
34
33
|
}
|
|
35
34
|
let urlPath = `/system/configurations/{configurationKey}`;
|
|
36
35
|
urlPath = urlPath.replace(`{${"configurationKey"}}`, encodeURIComponent(String(requestParameters["configurationKey"])));
|
|
37
|
-
|
|
36
|
+
return {
|
|
38
37
|
path: urlPath,
|
|
39
38
|
method: "GET",
|
|
40
39
|
headers: headerParameters,
|
|
41
40
|
query: queryParameters
|
|
42
|
-
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get Configuration for key
|
|
45
|
+
* Configuration for configurationKey
|
|
46
|
+
*/
|
|
47
|
+
async getConfigRaw(requestParameters, initOverrides) {
|
|
48
|
+
const requestOptions = await this.getConfigRequestOpts(requestParameters);
|
|
49
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
43
50
|
return new runtime.JSONApiResponse(response, (jsonValue) => MongoCampConfigurationFromJSON(jsonValue));
|
|
44
51
|
}
|
|
45
52
|
/**
|
|
@@ -51,10 +58,9 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
51
58
|
return await response.value();
|
|
52
59
|
}
|
|
53
60
|
/**
|
|
54
|
-
*
|
|
55
|
-
* List Configurations
|
|
61
|
+
* Creates request options for listConfigurations without sending the request
|
|
56
62
|
*/
|
|
57
|
-
async
|
|
63
|
+
async listConfigurationsRequestOpts() {
|
|
58
64
|
const queryParameters = {};
|
|
59
65
|
const headerParameters = {};
|
|
60
66
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -71,12 +77,20 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
71
77
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
72
78
|
}
|
|
73
79
|
let urlPath = `/system/configurations`;
|
|
74
|
-
|
|
80
|
+
return {
|
|
75
81
|
path: urlPath,
|
|
76
82
|
method: "GET",
|
|
77
83
|
headers: headerParameters,
|
|
78
84
|
query: queryParameters
|
|
79
|
-
}
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* List all Configurations or filtered
|
|
89
|
+
* List Configurations
|
|
90
|
+
*/
|
|
91
|
+
async listConfigurationsRaw(initOverrides) {
|
|
92
|
+
const requestOptions = await this.listConfigurationsRequestOpts();
|
|
93
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
80
94
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MongoCampConfigurationFromJSON));
|
|
81
95
|
}
|
|
82
96
|
/**
|
|
@@ -88,10 +102,9 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
88
102
|
return await response.value();
|
|
89
103
|
}
|
|
90
104
|
/**
|
|
91
|
-
*
|
|
92
|
-
* System Settings
|
|
105
|
+
* Creates request options for settings without sending the request
|
|
93
106
|
*/
|
|
94
|
-
async
|
|
107
|
+
async settingsRequestOpts() {
|
|
95
108
|
const queryParameters = {};
|
|
96
109
|
const headerParameters = {};
|
|
97
110
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -108,12 +121,20 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
108
121
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
109
122
|
}
|
|
110
123
|
let urlPath = `/system/settings`;
|
|
111
|
-
|
|
124
|
+
return {
|
|
112
125
|
path: urlPath,
|
|
113
126
|
method: "GET",
|
|
114
127
|
headers: headerParameters,
|
|
115
128
|
query: queryParameters
|
|
116
|
-
}
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Returns the Settings of the running MongoCamp Application.
|
|
133
|
+
* System Settings
|
|
134
|
+
*/
|
|
135
|
+
async settingsRaw(initOverrides) {
|
|
136
|
+
const requestOptions = await this.settingsRequestOpts();
|
|
137
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
117
138
|
return new runtime.JSONApiResponse(response, (jsonValue) => SettingsResponseFromJSON(jsonValue));
|
|
118
139
|
}
|
|
119
140
|
/**
|
|
@@ -125,10 +146,9 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
125
146
|
return await response.value();
|
|
126
147
|
}
|
|
127
148
|
/**
|
|
128
|
-
*
|
|
129
|
-
* Shutdown MongoCamp
|
|
149
|
+
* Creates request options for shutdown without sending the request
|
|
130
150
|
*/
|
|
131
|
-
async
|
|
151
|
+
async shutdownRequestOpts(requestParameters) {
|
|
132
152
|
const queryParameters = {};
|
|
133
153
|
if (requestParameters["force"] != null) {
|
|
134
154
|
queryParameters["force"] = requestParameters["force"];
|
|
@@ -148,12 +168,20 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
148
168
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
149
169
|
}
|
|
150
170
|
let urlPath = `/system`;
|
|
151
|
-
|
|
171
|
+
return {
|
|
152
172
|
path: urlPath,
|
|
153
173
|
method: "DELETE",
|
|
154
174
|
headers: headerParameters,
|
|
155
175
|
query: queryParameters
|
|
156
|
-
}
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Shutdown the running MongoCamp Application. CLI Mode will automatically restart the Application.
|
|
180
|
+
* Shutdown MongoCamp
|
|
181
|
+
*/
|
|
182
|
+
async shutdownRaw(requestParameters, initOverrides) {
|
|
183
|
+
const requestOptions = await this.shutdownRequestOpts(requestParameters);
|
|
184
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
157
185
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
158
186
|
}
|
|
159
187
|
/**
|
|
@@ -165,10 +193,9 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
165
193
|
return await response.value();
|
|
166
194
|
}
|
|
167
195
|
/**
|
|
168
|
-
*
|
|
169
|
-
* Update Configuration
|
|
196
|
+
* Creates request options for updateConfiguration without sending the request
|
|
170
197
|
*/
|
|
171
|
-
async
|
|
198
|
+
async updateConfigurationRequestOpts(requestParameters) {
|
|
172
199
|
if (requestParameters["configurationKey"] == null) {
|
|
173
200
|
throw new runtime.RequiredError(
|
|
174
201
|
"configurationKey",
|
|
@@ -199,13 +226,21 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
199
226
|
}
|
|
200
227
|
let urlPath = `/system/configurations/{configurationKey}`;
|
|
201
228
|
urlPath = urlPath.replace(`{${"configurationKey"}}`, encodeURIComponent(String(requestParameters["configurationKey"])));
|
|
202
|
-
|
|
229
|
+
return {
|
|
203
230
|
path: urlPath,
|
|
204
231
|
method: "PATCH",
|
|
205
232
|
headers: headerParameters,
|
|
206
233
|
query: queryParameters,
|
|
207
234
|
body: JsonValueAnyToJSON(requestParameters["jsonValueAny"])
|
|
208
|
-
}
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Update Configuration with the value
|
|
239
|
+
* Update Configuration
|
|
240
|
+
*/
|
|
241
|
+
async updateConfigurationRaw(requestParameters, initOverrides) {
|
|
242
|
+
const requestOptions = await this.updateConfigurationRequestOpts(requestParameters);
|
|
243
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
209
244
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
210
245
|
}
|
|
211
246
|
/**
|
|
@@ -21,6 +21,10 @@ export interface UpdatePasswordRequest {
|
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
23
|
export declare class AuthApi extends runtime.BaseAPI {
|
|
24
|
+
/**
|
|
25
|
+
* Creates request options for generateNewApiKey without sending the request
|
|
26
|
+
*/
|
|
27
|
+
generateNewApiKeyRequestOpts(): Promise<runtime.RequestOpts>;
|
|
24
28
|
/**
|
|
25
29
|
* Generate new ApiKey of logged in User
|
|
26
30
|
* Update ApiKey
|
|
@@ -31,6 +35,10 @@ export declare class AuthApi extends runtime.BaseAPI {
|
|
|
31
35
|
* Update ApiKey
|
|
32
36
|
*/
|
|
33
37
|
generateNewApiKey(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueString>;
|
|
38
|
+
/**
|
|
39
|
+
* Creates request options for isAuthenticated without sending the request
|
|
40
|
+
*/
|
|
41
|
+
isAuthenticatedRequestOpts(): Promise<runtime.RequestOpts>;
|
|
34
42
|
/**
|
|
35
43
|
* Check a given Login for is authenticated
|
|
36
44
|
* Check Authentication
|
|
@@ -41,6 +49,10 @@ export declare class AuthApi extends runtime.BaseAPI {
|
|
|
41
49
|
* Check Authentication
|
|
42
50
|
*/
|
|
43
51
|
isAuthenticated(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
52
|
+
/**
|
|
53
|
+
* Creates request options for login without sending the request
|
|
54
|
+
*/
|
|
55
|
+
loginRequestOpts(requestParameters: LoginRequest): Promise<runtime.RequestOpts>;
|
|
44
56
|
/**
|
|
45
57
|
* Login for one user and return Login Information
|
|
46
58
|
* Login User
|
|
@@ -51,6 +63,10 @@ export declare class AuthApi extends runtime.BaseAPI {
|
|
|
51
63
|
* Login User
|
|
52
64
|
*/
|
|
53
65
|
login(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginResult>;
|
|
66
|
+
/**
|
|
67
|
+
* Creates request options for logout without sending the request
|
|
68
|
+
*/
|
|
69
|
+
logoutRequestOpts(): Promise<runtime.RequestOpts>;
|
|
54
70
|
/**
|
|
55
71
|
* Logout by bearer Token
|
|
56
72
|
* Logout User
|
|
@@ -61,6 +77,10 @@ export declare class AuthApi extends runtime.BaseAPI {
|
|
|
61
77
|
* Logout User
|
|
62
78
|
*/
|
|
63
79
|
logout(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
80
|
+
/**
|
|
81
|
+
* Creates request options for logoutByDelete without sending the request
|
|
82
|
+
*/
|
|
83
|
+
logoutByDeleteRequestOpts(): Promise<runtime.RequestOpts>;
|
|
64
84
|
/**
|
|
65
85
|
* Logout by bearer Token
|
|
66
86
|
* Logout User
|
|
@@ -71,6 +91,10 @@ export declare class AuthApi extends runtime.BaseAPI {
|
|
|
71
91
|
* Logout User
|
|
72
92
|
*/
|
|
73
93
|
logoutByDelete(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
94
|
+
/**
|
|
95
|
+
* Creates request options for refreshToken without sending the request
|
|
96
|
+
*/
|
|
97
|
+
refreshTokenRequestOpts(): Promise<runtime.RequestOpts>;
|
|
74
98
|
/**
|
|
75
99
|
* Refresh Token and return Login Information
|
|
76
100
|
* Refresh User
|
|
@@ -81,6 +105,10 @@ export declare class AuthApi extends runtime.BaseAPI {
|
|
|
81
105
|
* Refresh User
|
|
82
106
|
*/
|
|
83
107
|
refreshToken(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginResult>;
|
|
108
|
+
/**
|
|
109
|
+
* Creates request options for updatePassword without sending the request
|
|
110
|
+
*/
|
|
111
|
+
updatePasswordRequestOpts(requestParameters: UpdatePasswordRequest): Promise<runtime.RequestOpts>;
|
|
84
112
|
/**
|
|
85
113
|
* Change Password of logged in User
|
|
86
114
|
* Update Password
|
|
@@ -91,6 +119,10 @@ export declare class AuthApi extends runtime.BaseAPI {
|
|
|
91
119
|
* Update Password
|
|
92
120
|
*/
|
|
93
121
|
updatePassword(requestParameters: UpdatePasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
122
|
+
/**
|
|
123
|
+
* Creates request options for userProfile without sending the request
|
|
124
|
+
*/
|
|
125
|
+
userProfileRequestOpts(): Promise<runtime.RequestOpts>;
|
|
94
126
|
/**
|
|
95
127
|
* Return the User Profile of loggedin user
|
|
96
128
|
* User Profile
|
|
@@ -9,10 +9,9 @@ import {
|
|
|
9
9
|
} from "../models/index.js";
|
|
10
10
|
export class AuthApi extends runtime.BaseAPI {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
* Update ApiKey
|
|
12
|
+
* Creates request options for generateNewApiKey without sending the request
|
|
14
13
|
*/
|
|
15
|
-
async
|
|
14
|
+
async generateNewApiKeyRequestOpts() {
|
|
16
15
|
const queryParameters = {};
|
|
17
16
|
const headerParameters = {};
|
|
18
17
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -29,12 +28,20 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
29
28
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
30
29
|
}
|
|
31
30
|
let urlPath = `/auth/profile/apikey`;
|
|
32
|
-
|
|
31
|
+
return {
|
|
33
32
|
path: urlPath,
|
|
34
33
|
method: "PATCH",
|
|
35
34
|
headers: headerParameters,
|
|
36
35
|
query: queryParameters
|
|
37
|
-
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Generate new ApiKey of logged in User
|
|
40
|
+
* Update ApiKey
|
|
41
|
+
*/
|
|
42
|
+
async generateNewApiKeyRaw(initOverrides) {
|
|
43
|
+
const requestOptions = await this.generateNewApiKeyRequestOpts();
|
|
44
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
38
45
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueStringFromJSON(jsonValue));
|
|
39
46
|
}
|
|
40
47
|
/**
|
|
@@ -46,10 +53,9 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
46
53
|
return await response.value();
|
|
47
54
|
}
|
|
48
55
|
/**
|
|
49
|
-
*
|
|
50
|
-
* Check Authentication
|
|
56
|
+
* Creates request options for isAuthenticated without sending the request
|
|
51
57
|
*/
|
|
52
|
-
async
|
|
58
|
+
async isAuthenticatedRequestOpts() {
|
|
53
59
|
const queryParameters = {};
|
|
54
60
|
const headerParameters = {};
|
|
55
61
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -66,12 +72,20 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
66
72
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
67
73
|
}
|
|
68
74
|
let urlPath = `/auth/authenticated`;
|
|
69
|
-
|
|
75
|
+
return {
|
|
70
76
|
path: urlPath,
|
|
71
77
|
method: "GET",
|
|
72
78
|
headers: headerParameters,
|
|
73
79
|
query: queryParameters
|
|
74
|
-
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Check a given Login for is authenticated
|
|
84
|
+
* Check Authentication
|
|
85
|
+
*/
|
|
86
|
+
async isAuthenticatedRaw(initOverrides) {
|
|
87
|
+
const requestOptions = await this.isAuthenticatedRequestOpts();
|
|
88
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
75
89
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
76
90
|
}
|
|
77
91
|
/**
|
|
@@ -83,10 +97,9 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
83
97
|
return await response.value();
|
|
84
98
|
}
|
|
85
99
|
/**
|
|
86
|
-
*
|
|
87
|
-
* Login User
|
|
100
|
+
* Creates request options for login without sending the request
|
|
88
101
|
*/
|
|
89
|
-
async
|
|
102
|
+
async loginRequestOpts(requestParameters) {
|
|
90
103
|
if (requestParameters["login"] == null) {
|
|
91
104
|
throw new runtime.RequiredError(
|
|
92
105
|
"login",
|
|
@@ -97,13 +110,21 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
97
110
|
const headerParameters = {};
|
|
98
111
|
headerParameters["Content-Type"] = "application/json";
|
|
99
112
|
let urlPath = `/auth/login`;
|
|
100
|
-
|
|
113
|
+
return {
|
|
101
114
|
path: urlPath,
|
|
102
115
|
method: "POST",
|
|
103
116
|
headers: headerParameters,
|
|
104
117
|
query: queryParameters,
|
|
105
118
|
body: LoginToJSON(requestParameters["login"])
|
|
106
|
-
}
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Login for one user and return Login Information
|
|
123
|
+
* Login User
|
|
124
|
+
*/
|
|
125
|
+
async loginRaw(requestParameters, initOverrides) {
|
|
126
|
+
const requestOptions = await this.loginRequestOpts(requestParameters);
|
|
127
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
107
128
|
return new runtime.JSONApiResponse(response, (jsonValue) => LoginResultFromJSON(jsonValue));
|
|
108
129
|
}
|
|
109
130
|
/**
|
|
@@ -115,10 +136,9 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
115
136
|
return await response.value();
|
|
116
137
|
}
|
|
117
138
|
/**
|
|
118
|
-
*
|
|
119
|
-
* Logout User
|
|
139
|
+
* Creates request options for logout without sending the request
|
|
120
140
|
*/
|
|
121
|
-
async
|
|
141
|
+
async logoutRequestOpts() {
|
|
122
142
|
const queryParameters = {};
|
|
123
143
|
const headerParameters = {};
|
|
124
144
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -135,12 +155,20 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
135
155
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
136
156
|
}
|
|
137
157
|
let urlPath = `/auth/logout`;
|
|
138
|
-
|
|
158
|
+
return {
|
|
139
159
|
path: urlPath,
|
|
140
160
|
method: "POST",
|
|
141
161
|
headers: headerParameters,
|
|
142
162
|
query: queryParameters
|
|
143
|
-
}
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Logout by bearer Token
|
|
167
|
+
* Logout User
|
|
168
|
+
*/
|
|
169
|
+
async logoutRaw(initOverrides) {
|
|
170
|
+
const requestOptions = await this.logoutRequestOpts();
|
|
171
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
144
172
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
145
173
|
}
|
|
146
174
|
/**
|
|
@@ -152,10 +180,9 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
152
180
|
return await response.value();
|
|
153
181
|
}
|
|
154
182
|
/**
|
|
155
|
-
*
|
|
156
|
-
* Logout User
|
|
183
|
+
* Creates request options for logoutByDelete without sending the request
|
|
157
184
|
*/
|
|
158
|
-
async
|
|
185
|
+
async logoutByDeleteRequestOpts() {
|
|
159
186
|
const queryParameters = {};
|
|
160
187
|
const headerParameters = {};
|
|
161
188
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -172,12 +199,20 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
172
199
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
173
200
|
}
|
|
174
201
|
let urlPath = `/auth/logout`;
|
|
175
|
-
|
|
202
|
+
return {
|
|
176
203
|
path: urlPath,
|
|
177
204
|
method: "DELETE",
|
|
178
205
|
headers: headerParameters,
|
|
179
206
|
query: queryParameters
|
|
180
|
-
}
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Logout by bearer Token
|
|
211
|
+
* Logout User
|
|
212
|
+
*/
|
|
213
|
+
async logoutByDeleteRaw(initOverrides) {
|
|
214
|
+
const requestOptions = await this.logoutByDeleteRequestOpts();
|
|
215
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
181
216
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
182
217
|
}
|
|
183
218
|
/**
|
|
@@ -189,10 +224,9 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
189
224
|
return await response.value();
|
|
190
225
|
}
|
|
191
226
|
/**
|
|
192
|
-
*
|
|
193
|
-
* Refresh User
|
|
227
|
+
* Creates request options for refreshToken without sending the request
|
|
194
228
|
*/
|
|
195
|
-
async
|
|
229
|
+
async refreshTokenRequestOpts() {
|
|
196
230
|
const queryParameters = {};
|
|
197
231
|
const headerParameters = {};
|
|
198
232
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -209,12 +243,20 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
209
243
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
210
244
|
}
|
|
211
245
|
let urlPath = `/auth/token/refresh`;
|
|
212
|
-
|
|
246
|
+
return {
|
|
213
247
|
path: urlPath,
|
|
214
248
|
method: "GET",
|
|
215
249
|
headers: headerParameters,
|
|
216
250
|
query: queryParameters
|
|
217
|
-
}
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Refresh Token and return Login Information
|
|
255
|
+
* Refresh User
|
|
256
|
+
*/
|
|
257
|
+
async refreshTokenRaw(initOverrides) {
|
|
258
|
+
const requestOptions = await this.refreshTokenRequestOpts();
|
|
259
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
218
260
|
return new runtime.JSONApiResponse(response, (jsonValue) => LoginResultFromJSON(jsonValue));
|
|
219
261
|
}
|
|
220
262
|
/**
|
|
@@ -226,10 +268,9 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
226
268
|
return await response.value();
|
|
227
269
|
}
|
|
228
270
|
/**
|
|
229
|
-
*
|
|
230
|
-
* Update Password
|
|
271
|
+
* Creates request options for updatePassword without sending the request
|
|
231
272
|
*/
|
|
232
|
-
async
|
|
273
|
+
async updatePasswordRequestOpts(requestParameters) {
|
|
233
274
|
if (requestParameters["passwordUpdateRequest"] == null) {
|
|
234
275
|
throw new runtime.RequiredError(
|
|
235
276
|
"passwordUpdateRequest",
|
|
@@ -253,13 +294,21 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
253
294
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
254
295
|
}
|
|
255
296
|
let urlPath = `/auth/profile/password`;
|
|
256
|
-
|
|
297
|
+
return {
|
|
257
298
|
path: urlPath,
|
|
258
299
|
method: "PATCH",
|
|
259
300
|
headers: headerParameters,
|
|
260
301
|
query: queryParameters,
|
|
261
302
|
body: PasswordUpdateRequestToJSON(requestParameters["passwordUpdateRequest"])
|
|
262
|
-
}
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Change Password of logged in User
|
|
307
|
+
* Update Password
|
|
308
|
+
*/
|
|
309
|
+
async updatePasswordRaw(requestParameters, initOverrides) {
|
|
310
|
+
const requestOptions = await this.updatePasswordRequestOpts(requestParameters);
|
|
311
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
263
312
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
264
313
|
}
|
|
265
314
|
/**
|
|
@@ -271,10 +320,9 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
271
320
|
return await response.value();
|
|
272
321
|
}
|
|
273
322
|
/**
|
|
274
|
-
*
|
|
275
|
-
* User Profile
|
|
323
|
+
* Creates request options for userProfile without sending the request
|
|
276
324
|
*/
|
|
277
|
-
async
|
|
325
|
+
async userProfileRequestOpts() {
|
|
278
326
|
const queryParameters = {};
|
|
279
327
|
const headerParameters = {};
|
|
280
328
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -291,12 +339,20 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
291
339
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
292
340
|
}
|
|
293
341
|
let urlPath = `/auth/profile`;
|
|
294
|
-
|
|
342
|
+
return {
|
|
295
343
|
path: urlPath,
|
|
296
344
|
method: "GET",
|
|
297
345
|
headers: headerParameters,
|
|
298
346
|
query: queryParameters
|
|
299
|
-
}
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Return the User Profile of loggedin user
|
|
351
|
+
* User Profile
|
|
352
|
+
*/
|
|
353
|
+
async userProfileRaw(initOverrides) {
|
|
354
|
+
const requestOptions = await this.userProfileRequestOpts();
|
|
355
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
300
356
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserProfileFromJSON(jsonValue));
|
|
301
357
|
}
|
|
302
358
|
/**
|
|
@@ -24,6 +24,10 @@ export interface GetBucketRequest {
|
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class BucketApi extends runtime.BaseAPI {
|
|
27
|
+
/**
|
|
28
|
+
* Creates request options for clearBucket without sending the request
|
|
29
|
+
*/
|
|
30
|
+
clearBucketRequestOpts(requestParameters: ClearBucketRequest): Promise<runtime.RequestOpts>;
|
|
27
31
|
/**
|
|
28
32
|
* Delete all Files in Bucket
|
|
29
33
|
* Clear Bucket
|
|
@@ -34,6 +38,10 @@ export declare class BucketApi extends runtime.BaseAPI {
|
|
|
34
38
|
* Clear Bucket
|
|
35
39
|
*/
|
|
36
40
|
clearBucket(requestParameters: ClearBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
41
|
+
/**
|
|
42
|
+
* Creates request options for deleteBucket without sending the request
|
|
43
|
+
*/
|
|
44
|
+
deleteBucketRequestOpts(requestParameters: DeleteBucketRequest): Promise<runtime.RequestOpts>;
|
|
37
45
|
/**
|
|
38
46
|
* Delete a given Bucket
|
|
39
47
|
* Delete Bucket
|
|
@@ -44,6 +52,10 @@ export declare class BucketApi extends runtime.BaseAPI {
|
|
|
44
52
|
* Delete Bucket
|
|
45
53
|
*/
|
|
46
54
|
deleteBucket(requestParameters: DeleteBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
55
|
+
/**
|
|
56
|
+
* Creates request options for getBucket without sending the request
|
|
57
|
+
*/
|
|
58
|
+
getBucketRequestOpts(requestParameters: GetBucketRequest): Promise<runtime.RequestOpts>;
|
|
47
59
|
/**
|
|
48
60
|
* All Information about a single Bucket
|
|
49
61
|
* Bucket Information
|
|
@@ -54,6 +66,10 @@ export declare class BucketApi extends runtime.BaseAPI {
|
|
|
54
66
|
* Bucket Information
|
|
55
67
|
*/
|
|
56
68
|
getBucket(requestParameters: GetBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BucketInformation>;
|
|
69
|
+
/**
|
|
70
|
+
* Creates request options for listBuckets without sending the request
|
|
71
|
+
*/
|
|
72
|
+
listBucketsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
57
73
|
/**
|
|
58
74
|
* List of all Buckets of the default database
|
|
59
75
|
* List of Buckets
|