@sfxcode/nuxt-mongocamp-server 1.8.0 → 1.9.0
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 +2 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/api/.openapi-generator/VERSION +1 -1
- package/dist/runtime/api/apis/AdminApi.d.ts +65 -2
- package/dist/runtime/api/apis/AdminApi.js +39 -27
- package/dist/runtime/api/apis/ApplicationApi.d.ts +17 -2
- package/dist/runtime/api/apis/ApplicationApi.js +17 -11
- package/dist/runtime/api/apis/AuthApi.d.ts +17 -2
- package/dist/runtime/api/apis/AuthApi.js +27 -15
- package/dist/runtime/api/apis/BucketApi.d.ts +12 -2
- package/dist/runtime/api/apis/BucketApi.js +11 -9
- package/dist/runtime/api/apis/CollectionApi.d.ts +107 -4
- package/dist/runtime/api/apis/CollectionApi.js +58 -38
- package/dist/runtime/api/apis/DatabaseApi.d.ts +12 -2
- package/dist/runtime/api/apis/DatabaseApi.js +12 -10
- package/dist/runtime/api/apis/DocumentApi.d.ts +178 -15
- package/dist/runtime/api/apis/DocumentApi.js +54 -40
- package/dist/runtime/api/apis/FileApi.d.ts +78 -4
- package/dist/runtime/api/apis/FileApi.js +34 -24
- package/dist/runtime/api/apis/IndexApi.d.ts +83 -2
- package/dist/runtime/api/apis/IndexApi.js +46 -34
- package/dist/runtime/api/apis/JobsApi.d.ts +28 -2
- package/dist/runtime/api/apis/JobsApi.js +19 -15
- package/dist/runtime/api/apis/SystemApi.d.ts +3 -2
- package/dist/runtime/api/apis/SystemApi.js +5 -3
- package/dist/runtime/api/docs/CollectionApi.md +2 -2
- package/dist/runtime/api/docs/CollectionStatus.md +1 -1
- package/dist/runtime/api/docs/DatabaseInfo.md +1 -1
- package/dist/runtime/api/docs/DocumentApi.md +19 -19
- package/dist/runtime/api/docs/FileInformation.md +1 -1
- package/dist/runtime/api/docs/IndexInfo.md +3 -3
- package/dist/runtime/api/docs/IndexOptionsRequest.md +2 -2
- package/dist/runtime/api/docs/IndexUsage.md +1 -1
- package/dist/runtime/api/docs/JsonSchemaDefinition.md +1 -1
- package/dist/runtime/api/docs/MongoFindRequest.md +3 -3
- package/dist/runtime/api/docs/MongoIndex.md +3 -3
- package/dist/runtime/api/docs/SettingsResponse.md +1 -1
- package/dist/runtime/api/docs/UpdateFileInformationRequest.md +1 -1
- package/dist/runtime/api/docs/UpdateRequest.md +2 -2
- package/dist/runtime/api/models/BucketInformation.d.ts +1 -9
- package/dist/runtime/api/models/ClusterInformation.d.ts +1 -5
- package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -11
- package/dist/runtime/api/models/CollectionPermission.d.ts +1 -9
- package/dist/runtime/api/models/CollectionStatus.d.ts +2 -28
- package/dist/runtime/api/models/CollectionStatus.js +3 -2
- package/dist/runtime/api/models/CollectionSummary.d.ts +1 -19
- package/dist/runtime/api/models/CopyRequest.d.ts +1 -9
- package/dist/runtime/api/models/CopyResponse.d.ts +1 -7
- package/dist/runtime/api/models/CountResponse.d.ts +1 -3
- package/dist/runtime/api/models/DatabaseInfo.d.ts +2 -12
- package/dist/runtime/api/models/DatabaseInfo.js +3 -2
- package/dist/runtime/api/models/DeleteResponse.d.ts +1 -5
- package/dist/runtime/api/models/ErrorDescription.d.ts +1 -7
- package/dist/runtime/api/models/FieldInfo.d.ts +1 -5
- package/dist/runtime/api/models/FieldTypeCount.d.ts +1 -5
- package/dist/runtime/api/models/FileInformation.d.ts +2 -14
- package/dist/runtime/api/models/FileInformation.js +4 -3
- package/dist/runtime/api/models/Grant.d.ts +1 -11
- package/dist/runtime/api/models/ImportResponse.d.ts +1 -11
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -7
- package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -3
- package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -3
- package/dist/runtime/api/models/IndexInfo.d.ts +4 -26
- package/dist/runtime/api/models/IndexKey.d.ts +1 -5
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +3 -29
- package/dist/runtime/api/models/IndexUsage.d.ts +2 -10
- package/dist/runtime/api/models/IndexUsage.js +3 -2
- package/dist/runtime/api/models/InsertError.d.ts +1 -7
- package/dist/runtime/api/models/InsertResponse.d.ts +1 -9
- package/dist/runtime/api/models/JobConfig.d.ts +1 -13
- package/dist/runtime/api/models/JobInformation.d.ts +1 -19
- package/dist/runtime/api/models/JobInformation.js +5 -4
- package/dist/runtime/api/models/JsonSchema.d.ts +1 -7
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +2 -12
- package/dist/runtime/api/models/JsonValueAny.d.ts +1 -3
- package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -3
- package/dist/runtime/api/models/JsonValueString.d.ts +1 -3
- package/dist/runtime/api/models/Login.d.ts +1 -5
- package/dist/runtime/api/models/LoginResult.d.ts +1 -7
- package/dist/runtime/api/models/LoginResult.js +3 -2
- package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -5
- package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -11
- package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -10
- package/dist/runtime/api/models/MongoIndex.d.ts +4 -28
- package/dist/runtime/api/models/MongoIndex.js +3 -2
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -3
- package/dist/runtime/api/models/PipelineStage.d.ts +1 -5
- package/dist/runtime/api/models/RenameRequest.d.ts +1 -5
- package/dist/runtime/api/models/RenameResponse.d.ts +1 -3
- package/dist/runtime/api/models/Role.d.ts +1 -7
- package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -9
- package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -13
- package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -7
- package/dist/runtime/api/models/SearchRequest.d.ts +1 -7
- package/dist/runtime/api/models/SettingsResponse.d.ts +2 -10
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +2 -6
- package/dist/runtime/api/models/UpdateRequest.d.ts +3 -7
- package/dist/runtime/api/models/UpdateResponse.d.ts +1 -9
- package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -5
- package/dist/runtime/api/models/UserInformation.d.ts +1 -9
- package/dist/runtime/api/models/UserProfile.d.ts +1 -11
- package/dist/runtime/api/models/Version.d.ts +1 -7
- package/dist/runtime/api/models/Version.js +3 -2
- package/dist/runtime/api/runtime.d.ts +35 -2
- package/dist/runtime/api/runtime.js +84 -4
- package/dist/runtime/composables/mongocampApiFiles.d.ts +1 -1
- package/dist/runtime/composables/mongocampStorage.d.ts +1 -1
- package/package.json +3 -3
package/dist/module.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/nuxt-mongocamp-server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"configKey": "mongocamp",
|
|
5
5
|
"compatibility": {
|
|
6
6
|
"nuxt": ">=3.16.0"
|
|
7
7
|
},
|
|
8
8
|
"builder": {
|
|
9
|
-
"@nuxt/module-builder": "1.0.
|
|
9
|
+
"@nuxt/module-builder": "1.0.4",
|
|
10
10
|
"unbuild": "3.6.1"
|
|
11
11
|
}
|
|
12
12
|
}
|
package/dist/module.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.27.0
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-library
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.8.
|
|
5
|
+
* The version of the OpenAPI document: 1.8.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,48 +10,111 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type
|
|
13
|
+
import { type JsonValueBoolean } from '../models/JsonValueBoolean.js';
|
|
14
|
+
import { type JsonValueString } from '../models/JsonValueString.js';
|
|
15
|
+
import { type PasswordUpdateRequest } from '../models/PasswordUpdateRequest.js';
|
|
16
|
+
import { type Role } from '../models/Role.js';
|
|
17
|
+
import { type UpdateRoleRequest } from '../models/UpdateRoleRequest.js';
|
|
18
|
+
import { type UserInformation } from '../models/UserInformation.js';
|
|
19
|
+
import { type UserProfile } from '../models/UserProfile.js';
|
|
14
20
|
export interface AddRoleRequest {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
15
24
|
role: Role;
|
|
16
25
|
}
|
|
17
26
|
export interface AddUserRequest {
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
18
30
|
userInformation: UserInformation;
|
|
19
31
|
}
|
|
20
32
|
export interface DeleteRoleRequest {
|
|
33
|
+
/**
|
|
34
|
+
* RoleKey
|
|
35
|
+
*/
|
|
21
36
|
roleName: string;
|
|
22
37
|
}
|
|
23
38
|
export interface DeleteUserRequest {
|
|
39
|
+
/**
|
|
40
|
+
* UserId to Delete
|
|
41
|
+
*/
|
|
24
42
|
userId: string;
|
|
25
43
|
}
|
|
26
44
|
export interface GetRoleRequest {
|
|
45
|
+
/**
|
|
46
|
+
* RoleKey to search
|
|
47
|
+
*/
|
|
27
48
|
roleName: string;
|
|
28
49
|
}
|
|
29
50
|
export interface GetUserRequest {
|
|
51
|
+
/**
|
|
52
|
+
* UserId to search
|
|
53
|
+
*/
|
|
30
54
|
userId: string;
|
|
31
55
|
}
|
|
32
56
|
export interface GnerateNewApiKeyForUserRequest {
|
|
57
|
+
/**
|
|
58
|
+
* UserId to Update
|
|
59
|
+
*/
|
|
33
60
|
userId: string;
|
|
34
61
|
}
|
|
35
62
|
export interface ListRolesRequest {
|
|
63
|
+
/**
|
|
64
|
+
* filter after userId by contains
|
|
65
|
+
*/
|
|
36
66
|
filter?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Count elements per page
|
|
69
|
+
*/
|
|
37
70
|
rowsPerPage?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Requested page of the ResultSets
|
|
73
|
+
*/
|
|
38
74
|
page?: number;
|
|
39
75
|
}
|
|
40
76
|
export interface ListUsersRequest {
|
|
77
|
+
/**
|
|
78
|
+
* filter after userId by contains
|
|
79
|
+
*/
|
|
41
80
|
filter?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Count elements per page
|
|
83
|
+
*/
|
|
42
84
|
rowsPerPage?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Requested page of the ResultSets
|
|
87
|
+
*/
|
|
43
88
|
page?: number;
|
|
44
89
|
}
|
|
45
90
|
export interface UpdatePasswordForUserRequest {
|
|
91
|
+
/**
|
|
92
|
+
* UserId to Update
|
|
93
|
+
*/
|
|
46
94
|
userId: string;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
47
98
|
passwordUpdateRequest: PasswordUpdateRequest;
|
|
48
99
|
}
|
|
49
100
|
export interface UpdateRoleOperationRequest {
|
|
101
|
+
/**
|
|
102
|
+
* RoleKey
|
|
103
|
+
*/
|
|
50
104
|
roleName: string;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
*/
|
|
51
108
|
updateRoleRequest: UpdateRoleRequest;
|
|
52
109
|
}
|
|
53
110
|
export interface UpdateRolesForUserRequest {
|
|
111
|
+
/**
|
|
112
|
+
* UserId to Update
|
|
113
|
+
*/
|
|
54
114
|
userId: string;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
55
118
|
requestBody?: Array<string>;
|
|
56
119
|
}
|
|
57
120
|
/**
|
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
import * as runtime from "../runtime.js";
|
|
2
2
|
import {
|
|
3
|
-
JsonValueBooleanFromJSON
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
JsonValueBooleanFromJSON
|
|
4
|
+
} from "../models/JsonValueBoolean.js";
|
|
5
|
+
import {
|
|
6
|
+
JsonValueStringFromJSON
|
|
7
|
+
} from "../models/JsonValueString.js";
|
|
8
|
+
import {
|
|
9
|
+
PasswordUpdateRequestToJSON
|
|
10
|
+
} from "../models/PasswordUpdateRequest.js";
|
|
11
|
+
import {
|
|
6
12
|
RoleFromJSON,
|
|
7
|
-
RoleToJSON
|
|
8
|
-
|
|
9
|
-
|
|
13
|
+
RoleToJSON
|
|
14
|
+
} from "../models/Role.js";
|
|
15
|
+
import {
|
|
16
|
+
UpdateRoleRequestToJSON
|
|
17
|
+
} from "../models/UpdateRoleRequest.js";
|
|
18
|
+
import {
|
|
19
|
+
UserInformationToJSON
|
|
20
|
+
} from "../models/UserInformation.js";
|
|
21
|
+
import {
|
|
10
22
|
UserProfileFromJSON
|
|
11
|
-
} from "../models/
|
|
23
|
+
} from "../models/UserProfile.js";
|
|
12
24
|
export class AdminApi extends runtime.BaseAPI {
|
|
13
25
|
/**
|
|
14
26
|
* Creates request options for addRole without sending the request
|
|
@@ -24,7 +36,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
24
36
|
const headerParameters = {};
|
|
25
37
|
headerParameters["Content-Type"] = "application/json";
|
|
26
38
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
27
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
39
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
28
40
|
}
|
|
29
41
|
if (this.configuration && this.configuration.accessToken) {
|
|
30
42
|
const token = this.configuration.accessToken;
|
|
@@ -76,7 +88,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
76
88
|
const headerParameters = {};
|
|
77
89
|
headerParameters["Content-Type"] = "application/json";
|
|
78
90
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
79
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
91
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
80
92
|
}
|
|
81
93
|
if (this.configuration && this.configuration.accessToken) {
|
|
82
94
|
const token = this.configuration.accessToken;
|
|
@@ -127,7 +139,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
127
139
|
const queryParameters = {};
|
|
128
140
|
const headerParameters = {};
|
|
129
141
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
130
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
142
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
131
143
|
}
|
|
132
144
|
if (this.configuration && this.configuration.accessToken) {
|
|
133
145
|
const token = this.configuration.accessToken;
|
|
@@ -140,7 +152,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
140
152
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
141
153
|
}
|
|
142
154
|
let urlPath = `/admin/roles/{roleName}`;
|
|
143
|
-
urlPath = urlPath.replace(
|
|
155
|
+
urlPath = urlPath.replace("{roleName}", encodeURIComponent(String(requestParameters["roleName"])));
|
|
144
156
|
return {
|
|
145
157
|
path: urlPath,
|
|
146
158
|
method: "DELETE",
|
|
@@ -178,7 +190,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
178
190
|
const queryParameters = {};
|
|
179
191
|
const headerParameters = {};
|
|
180
192
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
181
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
193
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
182
194
|
}
|
|
183
195
|
if (this.configuration && this.configuration.accessToken) {
|
|
184
196
|
const token = this.configuration.accessToken;
|
|
@@ -191,7 +203,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
191
203
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
192
204
|
}
|
|
193
205
|
let urlPath = `/admin/users/{userId}`;
|
|
194
|
-
urlPath = urlPath.replace(
|
|
206
|
+
urlPath = urlPath.replace("{userId}", encodeURIComponent(String(requestParameters["userId"])));
|
|
195
207
|
return {
|
|
196
208
|
path: urlPath,
|
|
197
209
|
method: "DELETE",
|
|
@@ -229,7 +241,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
229
241
|
const queryParameters = {};
|
|
230
242
|
const headerParameters = {};
|
|
231
243
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
232
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
244
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
233
245
|
}
|
|
234
246
|
if (this.configuration && this.configuration.accessToken) {
|
|
235
247
|
const token = this.configuration.accessToken;
|
|
@@ -242,7 +254,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
242
254
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
243
255
|
}
|
|
244
256
|
let urlPath = `/admin/roles/{roleName}`;
|
|
245
|
-
urlPath = urlPath.replace(
|
|
257
|
+
urlPath = urlPath.replace("{roleName}", encodeURIComponent(String(requestParameters["roleName"])));
|
|
246
258
|
return {
|
|
247
259
|
path: urlPath,
|
|
248
260
|
method: "GET",
|
|
@@ -280,7 +292,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
280
292
|
const queryParameters = {};
|
|
281
293
|
const headerParameters = {};
|
|
282
294
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
283
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
295
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
284
296
|
}
|
|
285
297
|
if (this.configuration && this.configuration.accessToken) {
|
|
286
298
|
const token = this.configuration.accessToken;
|
|
@@ -293,7 +305,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
293
305
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
294
306
|
}
|
|
295
307
|
let urlPath = `/admin/users/{userId}`;
|
|
296
|
-
urlPath = urlPath.replace(
|
|
308
|
+
urlPath = urlPath.replace("{userId}", encodeURIComponent(String(requestParameters["userId"])));
|
|
297
309
|
return {
|
|
298
310
|
path: urlPath,
|
|
299
311
|
method: "GET",
|
|
@@ -331,7 +343,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
331
343
|
const queryParameters = {};
|
|
332
344
|
const headerParameters = {};
|
|
333
345
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
334
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
346
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
335
347
|
}
|
|
336
348
|
if (this.configuration && this.configuration.accessToken) {
|
|
337
349
|
const token = this.configuration.accessToken;
|
|
@@ -344,7 +356,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
344
356
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
345
357
|
}
|
|
346
358
|
let urlPath = `/admin/users/{userId}/apikey`;
|
|
347
|
-
urlPath = urlPath.replace(
|
|
359
|
+
urlPath = urlPath.replace("{userId}", encodeURIComponent(String(requestParameters["userId"])));
|
|
348
360
|
return {
|
|
349
361
|
path: urlPath,
|
|
350
362
|
method: "PATCH",
|
|
@@ -385,7 +397,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
385
397
|
}
|
|
386
398
|
const headerParameters = {};
|
|
387
399
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
388
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
400
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
389
401
|
}
|
|
390
402
|
if (this.configuration && this.configuration.accessToken) {
|
|
391
403
|
const token = this.configuration.accessToken;
|
|
@@ -438,7 +450,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
438
450
|
}
|
|
439
451
|
const headerParameters = {};
|
|
440
452
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
441
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
453
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
442
454
|
}
|
|
443
455
|
if (this.configuration && this.configuration.accessToken) {
|
|
444
456
|
const token = this.configuration.accessToken;
|
|
@@ -495,7 +507,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
495
507
|
const headerParameters = {};
|
|
496
508
|
headerParameters["Content-Type"] = "application/json";
|
|
497
509
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
498
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
510
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
499
511
|
}
|
|
500
512
|
if (this.configuration && this.configuration.accessToken) {
|
|
501
513
|
const token = this.configuration.accessToken;
|
|
@@ -508,7 +520,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
508
520
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
509
521
|
}
|
|
510
522
|
let urlPath = `/admin/users/{userId}/password`;
|
|
511
|
-
urlPath = urlPath.replace(
|
|
523
|
+
urlPath = urlPath.replace("{userId}", encodeURIComponent(String(requestParameters["userId"])));
|
|
512
524
|
return {
|
|
513
525
|
path: urlPath,
|
|
514
526
|
method: "PATCH",
|
|
@@ -554,7 +566,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
554
566
|
const headerParameters = {};
|
|
555
567
|
headerParameters["Content-Type"] = "application/json";
|
|
556
568
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
557
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
569
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
558
570
|
}
|
|
559
571
|
if (this.configuration && this.configuration.accessToken) {
|
|
560
572
|
const token = this.configuration.accessToken;
|
|
@@ -567,7 +579,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
567
579
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
568
580
|
}
|
|
569
581
|
let urlPath = `/admin/roles/{roleName}`;
|
|
570
|
-
urlPath = urlPath.replace(
|
|
582
|
+
urlPath = urlPath.replace("{roleName}", encodeURIComponent(String(requestParameters["roleName"])));
|
|
571
583
|
return {
|
|
572
584
|
path: urlPath,
|
|
573
585
|
method: "PATCH",
|
|
@@ -607,7 +619,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
607
619
|
const headerParameters = {};
|
|
608
620
|
headerParameters["Content-Type"] = "application/json";
|
|
609
621
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
610
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
622
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
611
623
|
}
|
|
612
624
|
if (this.configuration && this.configuration.accessToken) {
|
|
613
625
|
const token = this.configuration.accessToken;
|
|
@@ -620,7 +632,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
620
632
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
621
633
|
}
|
|
622
634
|
let urlPath = `/admin/users/{userId}/roles`;
|
|
623
|
-
urlPath = urlPath.replace(
|
|
635
|
+
urlPath = urlPath.replace("{userId}", encodeURIComponent(String(requestParameters["userId"])));
|
|
624
636
|
return {
|
|
625
637
|
path: urlPath,
|
|
626
638
|
method: "PATCH",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-library
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.8.
|
|
5
|
+
* The version of the OpenAPI document: 1.8.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,15 +10,30 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type
|
|
13
|
+
import { type JsonValueAny } from '../models/JsonValueAny.js';
|
|
14
|
+
import { type JsonValueBoolean } from '../models/JsonValueBoolean.js';
|
|
15
|
+
import { type MongoCampConfiguration } from '../models/MongoCampConfiguration.js';
|
|
16
|
+
import { type SettingsResponse } from '../models/SettingsResponse.js';
|
|
14
17
|
export interface GetConfigRequest {
|
|
18
|
+
/**
|
|
19
|
+
* configurationKey to get
|
|
20
|
+
*/
|
|
15
21
|
configurationKey: string;
|
|
16
22
|
}
|
|
17
23
|
export interface ShutdownRequest {
|
|
24
|
+
/**
|
|
25
|
+
* Shutdown Server and don`t send reboot event.
|
|
26
|
+
*/
|
|
18
27
|
force?: boolean;
|
|
19
28
|
}
|
|
20
29
|
export interface UpdateConfigurationRequest {
|
|
30
|
+
/**
|
|
31
|
+
* configurationKey to edit
|
|
32
|
+
*/
|
|
21
33
|
configurationKey: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
22
37
|
jsonValueAny: JsonValueAny;
|
|
23
38
|
}
|
|
24
39
|
/**
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import * as runtime from "../runtime.js";
|
|
2
2
|
import {
|
|
3
|
-
JsonValueAnyToJSON
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
JsonValueAnyToJSON
|
|
4
|
+
} from "../models/JsonValueAny.js";
|
|
5
|
+
import {
|
|
6
|
+
JsonValueBooleanFromJSON
|
|
7
|
+
} from "../models/JsonValueBoolean.js";
|
|
8
|
+
import {
|
|
9
|
+
MongoCampConfigurationFromJSON
|
|
10
|
+
} from "../models/MongoCampConfiguration.js";
|
|
11
|
+
import {
|
|
6
12
|
SettingsResponseFromJSON
|
|
7
|
-
} from "../models/
|
|
13
|
+
} from "../models/SettingsResponse.js";
|
|
8
14
|
export class ApplicationApi extends runtime.BaseAPI {
|
|
9
15
|
/**
|
|
10
16
|
* Creates request options for getConfig without sending the request
|
|
@@ -19,7 +25,7 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
19
25
|
const queryParameters = {};
|
|
20
26
|
const headerParameters = {};
|
|
21
27
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
22
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
28
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
23
29
|
}
|
|
24
30
|
if (this.configuration && this.configuration.accessToken) {
|
|
25
31
|
const token = this.configuration.accessToken;
|
|
@@ -32,7 +38,7 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
32
38
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
33
39
|
}
|
|
34
40
|
let urlPath = `/system/configurations/{configurationKey}`;
|
|
35
|
-
urlPath = urlPath.replace(
|
|
41
|
+
urlPath = urlPath.replace("{configurationKey}", encodeURIComponent(String(requestParameters["configurationKey"])));
|
|
36
42
|
return {
|
|
37
43
|
path: urlPath,
|
|
38
44
|
method: "GET",
|
|
@@ -64,7 +70,7 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
64
70
|
const queryParameters = {};
|
|
65
71
|
const headerParameters = {};
|
|
66
72
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
67
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
73
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
68
74
|
}
|
|
69
75
|
if (this.configuration && this.configuration.accessToken) {
|
|
70
76
|
const token = this.configuration.accessToken;
|
|
@@ -108,7 +114,7 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
108
114
|
const queryParameters = {};
|
|
109
115
|
const headerParameters = {};
|
|
110
116
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
111
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
117
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
112
118
|
}
|
|
113
119
|
if (this.configuration && this.configuration.accessToken) {
|
|
114
120
|
const token = this.configuration.accessToken;
|
|
@@ -155,7 +161,7 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
155
161
|
}
|
|
156
162
|
const headerParameters = {};
|
|
157
163
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
158
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
164
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
159
165
|
}
|
|
160
166
|
if (this.configuration && this.configuration.accessToken) {
|
|
161
167
|
const token = this.configuration.accessToken;
|
|
@@ -212,7 +218,7 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
212
218
|
const headerParameters = {};
|
|
213
219
|
headerParameters["Content-Type"] = "application/json";
|
|
214
220
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
215
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
221
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
216
222
|
}
|
|
217
223
|
if (this.configuration && this.configuration.accessToken) {
|
|
218
224
|
const token = this.configuration.accessToken;
|
|
@@ -225,7 +231,7 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
225
231
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
226
232
|
}
|
|
227
233
|
let urlPath = `/system/configurations/{configurationKey}`;
|
|
228
|
-
urlPath = urlPath.replace(
|
|
234
|
+
urlPath = urlPath.replace("{configurationKey}", encodeURIComponent(String(requestParameters["configurationKey"])));
|
|
229
235
|
return {
|
|
230
236
|
path: urlPath,
|
|
231
237
|
method: "PATCH",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-library
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.8.
|
|
5
|
+
* The version of the OpenAPI document: 1.8.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,14 +10,29 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type
|
|
13
|
+
import { type CollectionPermission } from '../models/CollectionPermission.js';
|
|
14
|
+
import { type JsonValueBoolean } from '../models/JsonValueBoolean.js';
|
|
15
|
+
import { type JsonValueString } from '../models/JsonValueString.js';
|
|
16
|
+
import { type Login } from '../models/Login.js';
|
|
17
|
+
import { type LoginResult } from '../models/LoginResult.js';
|
|
18
|
+
import { type PasswordUpdateRequest } from '../models/PasswordUpdateRequest.js';
|
|
19
|
+
import { type UserProfile } from '../models/UserProfile.js';
|
|
14
20
|
export interface LoginRequest {
|
|
21
|
+
/**
|
|
22
|
+
* Login Information for your Users
|
|
23
|
+
*/
|
|
15
24
|
login: Login;
|
|
16
25
|
}
|
|
17
26
|
export interface UpdatePasswordRequest {
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
18
30
|
passwordUpdateRequest: PasswordUpdateRequest;
|
|
19
31
|
}
|
|
20
32
|
export interface UserPermissionsRequest {
|
|
33
|
+
/**
|
|
34
|
+
* Resolve the rights for this collection only (also if the user has none)
|
|
35
|
+
*/
|
|
21
36
|
collection?: string;
|
|
22
37
|
}
|
|
23
38
|
/**
|
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
import * as runtime from "../runtime.js";
|
|
2
2
|
import {
|
|
3
|
-
CollectionPermissionFromJSON
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
CollectionPermissionFromJSON
|
|
4
|
+
} from "../models/CollectionPermission.js";
|
|
5
|
+
import {
|
|
6
|
+
JsonValueBooleanFromJSON
|
|
7
|
+
} from "../models/JsonValueBoolean.js";
|
|
8
|
+
import {
|
|
9
|
+
JsonValueStringFromJSON
|
|
10
|
+
} from "../models/JsonValueString.js";
|
|
11
|
+
import {
|
|
12
|
+
LoginToJSON
|
|
13
|
+
} from "../models/Login.js";
|
|
14
|
+
import {
|
|
15
|
+
LoginResultFromJSON
|
|
16
|
+
} from "../models/LoginResult.js";
|
|
17
|
+
import {
|
|
18
|
+
PasswordUpdateRequestToJSON
|
|
19
|
+
} from "../models/PasswordUpdateRequest.js";
|
|
20
|
+
import {
|
|
9
21
|
UserProfileFromJSON
|
|
10
|
-
} from "../models/
|
|
22
|
+
} from "../models/UserProfile.js";
|
|
11
23
|
export class AuthApi extends runtime.BaseAPI {
|
|
12
24
|
/**
|
|
13
25
|
* Creates request options for generateNewApiKey without sending the request
|
|
@@ -16,7 +28,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
16
28
|
const queryParameters = {};
|
|
17
29
|
const headerParameters = {};
|
|
18
30
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
19
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
31
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
20
32
|
}
|
|
21
33
|
if (this.configuration && this.configuration.accessToken) {
|
|
22
34
|
const token = this.configuration.accessToken;
|
|
@@ -60,7 +72,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
60
72
|
const queryParameters = {};
|
|
61
73
|
const headerParameters = {};
|
|
62
74
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
63
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
75
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
64
76
|
}
|
|
65
77
|
if (this.configuration && this.configuration.accessToken) {
|
|
66
78
|
const token = this.configuration.accessToken;
|
|
@@ -143,7 +155,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
143
155
|
const queryParameters = {};
|
|
144
156
|
const headerParameters = {};
|
|
145
157
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
146
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
158
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
147
159
|
}
|
|
148
160
|
if (this.configuration && this.configuration.accessToken) {
|
|
149
161
|
const token = this.configuration.accessToken;
|
|
@@ -187,7 +199,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
187
199
|
const queryParameters = {};
|
|
188
200
|
const headerParameters = {};
|
|
189
201
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
190
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
202
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
191
203
|
}
|
|
192
204
|
if (this.configuration && this.configuration.accessToken) {
|
|
193
205
|
const token = this.configuration.accessToken;
|
|
@@ -231,7 +243,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
231
243
|
const queryParameters = {};
|
|
232
244
|
const headerParameters = {};
|
|
233
245
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
234
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
246
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
235
247
|
}
|
|
236
248
|
if (this.configuration && this.configuration.accessToken) {
|
|
237
249
|
const token = this.configuration.accessToken;
|
|
@@ -282,7 +294,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
282
294
|
const headerParameters = {};
|
|
283
295
|
headerParameters["Content-Type"] = "application/json";
|
|
284
296
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
285
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
297
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
286
298
|
}
|
|
287
299
|
if (this.configuration && this.configuration.accessToken) {
|
|
288
300
|
const token = this.configuration.accessToken;
|
|
@@ -330,7 +342,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
330
342
|
}
|
|
331
343
|
const headerParameters = {};
|
|
332
344
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
333
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
345
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
334
346
|
}
|
|
335
347
|
if (this.configuration && this.configuration.accessToken) {
|
|
336
348
|
const token = this.configuration.accessToken;
|
|
@@ -374,7 +386,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
374
386
|
const queryParameters = {};
|
|
375
387
|
const headerParameters = {};
|
|
376
388
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
377
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
389
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
378
390
|
}
|
|
379
391
|
if (this.configuration && this.configuration.accessToken) {
|
|
380
392
|
const token = this.configuration.accessToken;
|