@sfxcode/nuxt-mongocamp-server 1.7.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.
Files changed (133) hide show
  1. package/README.md +8 -0
  2. package/dist/module.json +2 -2
  3. package/dist/module.mjs +1 -1
  4. package/dist/runtime/api/.openapi-generator/FILES +18 -0
  5. package/dist/runtime/api/.openapi-generator/VERSION +1 -1
  6. package/dist/runtime/api/apis/AdminApi.d.ts +65 -2
  7. package/dist/runtime/api/apis/AdminApi.js +39 -27
  8. package/dist/runtime/api/apis/ApplicationApi.d.ts +17 -2
  9. package/dist/runtime/api/apis/ApplicationApi.js +17 -11
  10. package/dist/runtime/api/apis/AuthApi.d.ts +17 -2
  11. package/dist/runtime/api/apis/AuthApi.js +27 -15
  12. package/dist/runtime/api/apis/BucketApi.d.ts +12 -2
  13. package/dist/runtime/api/apis/BucketApi.js +11 -9
  14. package/dist/runtime/api/apis/CollectionApi.d.ts +163 -4
  15. package/dist/runtime/api/apis/CollectionApi.js +230 -27
  16. package/dist/runtime/api/apis/DatabaseApi.d.ts +12 -2
  17. package/dist/runtime/api/apis/DatabaseApi.js +12 -10
  18. package/dist/runtime/api/apis/DocumentApi.d.ts +223 -15
  19. package/dist/runtime/api/apis/DocumentApi.js +194 -35
  20. package/dist/runtime/api/apis/FileApi.d.ts +78 -4
  21. package/dist/runtime/api/apis/FileApi.js +34 -24
  22. package/dist/runtime/api/apis/IndexApi.d.ts +100 -2
  23. package/dist/runtime/api/apis/IndexApi.js +95 -31
  24. package/dist/runtime/api/apis/JobsApi.d.ts +28 -2
  25. package/dist/runtime/api/apis/JobsApi.js +19 -15
  26. package/dist/runtime/api/apis/SystemApi.d.ts +3 -2
  27. package/dist/runtime/api/apis/SystemApi.js +5 -3
  28. package/dist/runtime/api/docs/CollectionApi.md +254 -2
  29. package/dist/runtime/api/docs/CollectionStatus.md +1 -1
  30. package/dist/runtime/api/docs/CopyRequest.md +40 -0
  31. package/dist/runtime/api/docs/CopyResponse.md +38 -0
  32. package/dist/runtime/api/docs/DatabaseInfo.md +1 -1
  33. package/dist/runtime/api/docs/DocumentApi.md +210 -19
  34. package/dist/runtime/api/docs/FieldInfo.md +36 -0
  35. package/dist/runtime/api/docs/FieldTypeCount.md +36 -0
  36. package/dist/runtime/api/docs/FileInformation.md +1 -1
  37. package/dist/runtime/api/docs/ImportResponse.md +42 -0
  38. package/dist/runtime/api/docs/IndexApi.md +78 -0
  39. package/dist/runtime/api/docs/IndexCreateRequest.md +2 -0
  40. package/dist/runtime/api/docs/IndexInfo.md +54 -0
  41. package/dist/runtime/api/docs/IndexKey.md +36 -0
  42. package/dist/runtime/api/docs/IndexOptionsRequest.md +10 -0
  43. package/dist/runtime/api/docs/IndexUsage.md +1 -1
  44. package/dist/runtime/api/docs/JsonSchemaDefinition.md +1 -1
  45. package/dist/runtime/api/docs/MongoFindRequest.md +3 -3
  46. package/dist/runtime/api/docs/MongoIndex.md +3 -3
  47. package/dist/runtime/api/docs/RenameRequest.md +36 -0
  48. package/dist/runtime/api/docs/RenameResponse.md +34 -0
  49. package/dist/runtime/api/docs/SettingsResponse.md +1 -1
  50. package/dist/runtime/api/docs/UpdateFileInformationRequest.md +1 -1
  51. package/dist/runtime/api/docs/UpdateRequest.md +2 -2
  52. package/dist/runtime/api/models/BucketInformation.d.ts +1 -9
  53. package/dist/runtime/api/models/ClusterInformation.d.ts +1 -5
  54. package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -11
  55. package/dist/runtime/api/models/CollectionPermission.d.ts +1 -9
  56. package/dist/runtime/api/models/CollectionStatus.d.ts +2 -28
  57. package/dist/runtime/api/models/CollectionStatus.js +3 -2
  58. package/dist/runtime/api/models/CollectionSummary.d.ts +1 -19
  59. package/dist/runtime/api/models/CopyRequest.d.ts +42 -0
  60. package/dist/runtime/api/models/CopyRequest.js +32 -0
  61. package/dist/runtime/api/models/CopyResponse.d.ts +38 -0
  62. package/dist/runtime/api/models/CopyResponse.js +32 -0
  63. package/dist/runtime/api/models/CountResponse.d.ts +1 -3
  64. package/dist/runtime/api/models/DatabaseInfo.d.ts +2 -12
  65. package/dist/runtime/api/models/DatabaseInfo.js +3 -2
  66. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -5
  67. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -7
  68. package/dist/runtime/api/models/FieldInfo.d.ts +35 -0
  69. package/dist/runtime/api/models/FieldInfo.js +32 -0
  70. package/dist/runtime/api/models/FieldTypeCount.d.ts +34 -0
  71. package/dist/runtime/api/models/FieldTypeCount.js +29 -0
  72. package/dist/runtime/api/models/FileInformation.d.ts +2 -14
  73. package/dist/runtime/api/models/FileInformation.js +4 -3
  74. package/dist/runtime/api/models/Grant.d.ts +1 -11
  75. package/dist/runtime/api/models/ImportResponse.d.ts +47 -0
  76. package/dist/runtime/api/models/ImportResponse.js +41 -0
  77. package/dist/runtime/api/models/IndexCreateRequest.d.ts +7 -6
  78. package/dist/runtime/api/models/IndexCreateRequest.js +9 -4
  79. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -3
  80. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -3
  81. package/dist/runtime/api/models/IndexInfo.d.ts +77 -0
  82. package/dist/runtime/api/models/IndexInfo.js +54 -0
  83. package/dist/runtime/api/models/IndexKey.d.ts +34 -0
  84. package/dist/runtime/api/models/IndexKey.js +29 -0
  85. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +27 -17
  86. package/dist/runtime/api/models/IndexOptionsRequest.js +12 -2
  87. package/dist/runtime/api/models/IndexUsage.d.ts +2 -10
  88. package/dist/runtime/api/models/IndexUsage.js +3 -2
  89. package/dist/runtime/api/models/InsertError.d.ts +1 -7
  90. package/dist/runtime/api/models/InsertResponse.d.ts +1 -9
  91. package/dist/runtime/api/models/JobConfig.d.ts +1 -13
  92. package/dist/runtime/api/models/JobInformation.d.ts +1 -19
  93. package/dist/runtime/api/models/JobInformation.js +5 -4
  94. package/dist/runtime/api/models/JsonSchema.d.ts +1 -7
  95. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +2 -12
  96. package/dist/runtime/api/models/JsonValueAny.d.ts +1 -3
  97. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -3
  98. package/dist/runtime/api/models/JsonValueString.d.ts +1 -3
  99. package/dist/runtime/api/models/Login.d.ts +1 -5
  100. package/dist/runtime/api/models/LoginResult.d.ts +1 -7
  101. package/dist/runtime/api/models/LoginResult.js +3 -2
  102. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -5
  103. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -11
  104. package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -10
  105. package/dist/runtime/api/models/MongoIndex.d.ts +4 -28
  106. package/dist/runtime/api/models/MongoIndex.js +3 -2
  107. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -3
  108. package/dist/runtime/api/models/PipelineStage.d.ts +1 -5
  109. package/dist/runtime/api/models/RenameRequest.d.ts +34 -0
  110. package/dist/runtime/api/models/RenameRequest.js +28 -0
  111. package/dist/runtime/api/models/RenameResponse.d.ts +30 -0
  112. package/dist/runtime/api/models/RenameResponse.js +26 -0
  113. package/dist/runtime/api/models/Role.d.ts +1 -7
  114. package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -9
  115. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -13
  116. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -7
  117. package/dist/runtime/api/models/SearchRequest.d.ts +1 -7
  118. package/dist/runtime/api/models/SettingsResponse.d.ts +2 -10
  119. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +2 -6
  120. package/dist/runtime/api/models/UpdateRequest.d.ts +3 -7
  121. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -9
  122. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -5
  123. package/dist/runtime/api/models/UserInformation.d.ts +1 -9
  124. package/dist/runtime/api/models/UserProfile.d.ts +1 -11
  125. package/dist/runtime/api/models/Version.d.ts +1 -7
  126. package/dist/runtime/api/models/Version.js +3 -2
  127. package/dist/runtime/api/models/index.d.ts +9 -0
  128. package/dist/runtime/api/models/index.js +9 -0
  129. package/dist/runtime/api/runtime.d.ts +35 -2
  130. package/dist/runtime/api/runtime.js +84 -4
  131. package/dist/runtime/composables/mongocampApiFiles.d.ts +1 -1
  132. package/dist/runtime/composables/mongocampStorage.d.ts +1 -1
  133. package/package.json +4 -4
package/README.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  Nuxt module wrapping a generated OpenAPI client for [MongoCamp](https://mongocamp.io), with composables for browser-session auth and server-side API-key/bearer auth.
4
4
 
5
+ ## MongoCamp Server
6
+
7
+ This module is a client for [MongoCamp Server](https://github.com/MongoCamp/mongocamp-server), a REST API server for MongoDB that provides authentication, user/role management, and collection, document and index APIs. The OpenAPI client in this module is generated from the server's OpenAPI spec, so the module version should match a compatible server version. See the [server repository](https://github.com/MongoCamp/mongocamp-server) for installation, configuration and API documentation.
8
+
9
+ ## Nuxt UI MongoCamp
10
+
11
+ [nuxt-ui-mongocamp](https://github.com/sfxcode/nuxt-ui-mongocamp) is a companion project built on [Nuxt UI](https://ui.nuxt.com) that provides a user interface for MongoCamp. See its repository for setup and usage.
12
+
5
13
  ## Setup
6
14
 
7
15
  ```bash
package/dist/module.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sfxcode/nuxt-mongocamp-server",
3
- "version": "1.7.0",
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.3",
9
+ "@nuxt/module-builder": "1.0.4",
10
10
  "unbuild": "3.6.1"
11
11
  }
12
12
  }
package/dist/module.mjs CHANGED
@@ -4,7 +4,7 @@ import { consola } from 'consola';
4
4
  export * from '../dist/runtime/api/index.js';
5
5
 
6
6
  const name = "@sfxcode/nuxt-mongocamp-server";
7
- const version = "1.7.0";
7
+ const version = "1.9.0";
8
8
 
9
9
  const module$1 = defineNuxtModule({
10
10
  meta: {
@@ -21,19 +21,26 @@ docs/CollectionApi.md
21
21
  docs/CollectionPermission.md
22
22
  docs/CollectionStatus.md
23
23
  docs/CollectionSummary.md
24
+ docs/CopyRequest.md
25
+ docs/CopyResponse.md
24
26
  docs/CountResponse.md
25
27
  docs/DatabaseApi.md
26
28
  docs/DatabaseInfo.md
27
29
  docs/DeleteResponse.md
28
30
  docs/DocumentApi.md
29
31
  docs/ErrorDescription.md
32
+ docs/FieldInfo.md
33
+ docs/FieldTypeCount.md
30
34
  docs/FileApi.md
31
35
  docs/FileInformation.md
32
36
  docs/Grant.md
37
+ docs/ImportResponse.md
33
38
  docs/IndexApi.md
34
39
  docs/IndexCreateRequest.md
35
40
  docs/IndexCreateResponse.md
36
41
  docs/IndexDropResponse.md
42
+ docs/IndexInfo.md
43
+ docs/IndexKey.md
37
44
  docs/IndexOptionsRequest.md
38
45
  docs/IndexUsage.md
39
46
  docs/InsertError.md
@@ -54,6 +61,8 @@ docs/MongoFindRequest.md
54
61
  docs/MongoIndex.md
55
62
  docs/PasswordUpdateRequest.md
56
63
  docs/PipelineStage.md
64
+ docs/RenameRequest.md
65
+ docs/RenameResponse.md
57
66
  docs/Role.md
58
67
  docs/SchemaAnalysis.md
59
68
  docs/SchemaAnalysisField.md
@@ -75,15 +84,22 @@ models/ClusterMemberInformation.ts
75
84
  models/CollectionPermission.ts
76
85
  models/CollectionStatus.ts
77
86
  models/CollectionSummary.ts
87
+ models/CopyRequest.ts
88
+ models/CopyResponse.ts
78
89
  models/CountResponse.ts
79
90
  models/DatabaseInfo.ts
80
91
  models/DeleteResponse.ts
81
92
  models/ErrorDescription.ts
93
+ models/FieldInfo.ts
94
+ models/FieldTypeCount.ts
82
95
  models/FileInformation.ts
83
96
  models/Grant.ts
97
+ models/ImportResponse.ts
84
98
  models/IndexCreateRequest.ts
85
99
  models/IndexCreateResponse.ts
86
100
  models/IndexDropResponse.ts
101
+ models/IndexInfo.ts
102
+ models/IndexKey.ts
87
103
  models/IndexOptionsRequest.ts
88
104
  models/IndexUsage.ts
89
105
  models/InsertError.ts
@@ -103,6 +119,8 @@ models/MongoFindRequest.ts
103
119
  models/MongoIndex.ts
104
120
  models/PasswordUpdateRequest.ts
105
121
  models/PipelineStage.ts
122
+ models/RenameRequest.ts
123
+ models/RenameResponse.ts
106
124
  models/Role.ts
107
125
  models/SchemaAnalysis.ts
108
126
  models/SchemaAnalysisField.ts
@@ -1 +1 @@
1
- 7.21.0
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.7.1
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 { JsonValueBoolean, JsonValueString, PasswordUpdateRequest, Role, UpdateRoleRequest, UserInformation, UserProfile } from '../models/index.js';
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
- JsonValueStringFromJSON,
5
- PasswordUpdateRequestToJSON,
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
- UpdateRoleRequestToJSON,
9
- UserInformationToJSON,
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/index.js";
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(`{${"roleName"}}`, encodeURIComponent(String(requestParameters["roleName"])));
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(`{${"userId"}}`, encodeURIComponent(String(requestParameters["userId"])));
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(`{${"roleName"}}`, encodeURIComponent(String(requestParameters["roleName"])));
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(`{${"userId"}}`, encodeURIComponent(String(requestParameters["userId"])));
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(`{${"userId"}}`, encodeURIComponent(String(requestParameters["userId"])));
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(`{${"userId"}}`, encodeURIComponent(String(requestParameters["userId"])));
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(`{${"roleName"}}`, encodeURIComponent(String(requestParameters["roleName"])));
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(`{${"userId"}}`, encodeURIComponent(String(requestParameters["userId"])));
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.7.1
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 { JsonValueAny, JsonValueBoolean, MongoCampConfiguration, SettingsResponse } from '../models/index.js';
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
- JsonValueBooleanFromJSON,
5
- MongoCampConfigurationFromJSON,
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/index.js";
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(`{${"configurationKey"}}`, encodeURIComponent(String(requestParameters["configurationKey"])));
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(`{${"configurationKey"}}`, encodeURIComponent(String(requestParameters["configurationKey"])));
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.7.1
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 { CollectionPermission, JsonValueBoolean, JsonValueString, Login, LoginResult, PasswordUpdateRequest, UserProfile } from '../models/index.js';
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
  /**