@sfxcode/nuxt-mongocamp-server 1.10.0 → 2.0.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/README.md +14 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -2
- package/dist/runtime/api/apis/AdminApi.d.ts +9 -9
- package/dist/runtime/api/apis/AdminApi.js +6 -6
- package/dist/runtime/api/apis/ApplicationApi.d.ts +6 -6
- package/dist/runtime/api/apis/ApplicationApi.js +4 -4
- package/dist/runtime/api/apis/AuthApi.d.ts +7 -7
- package/dist/runtime/api/apis/AuthApi.js +6 -6
- package/dist/runtime/api/apis/BucketApi.d.ts +7 -7
- package/dist/runtime/api/apis/BucketApi.js +6 -6
- package/dist/runtime/api/apis/CollectionApi.d.ts +69 -28
- package/dist/runtime/api/apis/CollectionApi.js +46 -21
- package/dist/runtime/api/apis/DatabaseApi.d.ts +5 -5
- package/dist/runtime/api/apis/DatabaseApi.js +4 -4
- package/dist/runtime/api/apis/DocumentApi.d.ts +141 -24
- package/dist/runtime/api/apis/DocumentApi.js +85 -12
- package/dist/runtime/api/apis/FileApi.d.ts +38 -6
- package/dist/runtime/api/apis/FileApi.js +24 -4
- package/dist/runtime/api/apis/IndexApi.d.ts +6 -6
- package/dist/runtime/api/apis/IndexApi.js +4 -4
- package/dist/runtime/api/apis/JobsApi.d.ts +5 -5
- package/dist/runtime/api/apis/JobsApi.js +4 -4
- package/dist/runtime/api/apis/SystemApi.d.ts +1 -1
- package/dist/runtime/api/docs/AdminApi.md +7 -7
- package/dist/runtime/api/docs/ApplicationApi.md +4 -4
- package/dist/runtime/api/docs/AuthApi.md +3 -3
- package/dist/runtime/api/docs/BucketApi.md +3 -3
- package/dist/runtime/api/docs/CollectionApi.md +48 -36
- package/dist/runtime/api/docs/DatabaseApi.md +2 -2
- package/dist/runtime/api/docs/DocumentApi.md +64 -28
- package/dist/runtime/api/docs/FileApi.md +20 -8
- package/dist/runtime/api/docs/IndexApi.md +4 -4
- package/dist/runtime/api/docs/JobsApi.md +2 -2
- package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
- package/dist/runtime/api/models/Capabilities.d.ts +1 -1
- package/dist/runtime/api/models/CapabilityLimits.d.ts +1 -1
- package/dist/runtime/api/models/ClusterInformation.d.ts +1 -1
- package/dist/runtime/api/models/ClusterMemberInformation.d.ts +7 -4
- package/dist/runtime/api/models/CollectionCollation.d.ts +1 -1
- package/dist/runtime/api/models/CollectionOptions.d.ts +1 -1
- package/dist/runtime/api/models/CollectionPermission.d.ts +1 -1
- package/dist/runtime/api/models/CollectionStatus.d.ts +1 -1
- package/dist/runtime/api/models/CollectionSummary.d.ts +1 -1
- package/dist/runtime/api/models/ConnectionStats.d.ts +1 -1
- package/dist/runtime/api/models/CopyRequest.d.ts +1 -1
- package/dist/runtime/api/models/CopyResponse.d.ts +1 -1
- package/dist/runtime/api/models/CountResponse.d.ts +1 -1
- package/dist/runtime/api/models/CreateCollectionResponse.d.ts +1 -1
- package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
- package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
- package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
- package/dist/runtime/api/models/FieldInfo.d.ts +1 -1
- package/dist/runtime/api/models/FieldTypeCount.d.ts +1 -1
- package/dist/runtime/api/models/FileInformation.d.ts +1 -1
- package/dist/runtime/api/models/Grant.d.ts +1 -1
- package/dist/runtime/api/models/ImportResponse.d.ts +1 -1
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
- package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
- package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
- package/dist/runtime/api/models/IndexInfo.d.ts +1 -1
- package/dist/runtime/api/models/IndexKey.d.ts +1 -1
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +3 -2
- package/dist/runtime/api/models/IndexUsage.d.ts +1 -1
- package/dist/runtime/api/models/InsertError.d.ts +1 -1
- package/dist/runtime/api/models/InsertResponse.d.ts +1 -1
- package/dist/runtime/api/models/JobConfig.d.ts +1 -1
- package/dist/runtime/api/models/JobInformation.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
- package/dist/runtime/api/models/JsonValueAny.d.ts +1 -1
- package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
- package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
- package/dist/runtime/api/models/Login.d.ts +1 -1
- package/dist/runtime/api/models/LoginResult.d.ts +1 -1
- package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -1
- package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -1
- package/dist/runtime/api/models/MongoFindRequest.d.ts +1 -1
- package/dist/runtime/api/models/MongoIndex.d.ts +1 -1
- package/dist/runtime/api/models/OpCounters.d.ts +1 -1
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
- package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
- package/dist/runtime/api/models/RenameRequest.d.ts +1 -1
- package/dist/runtime/api/models/RenameResponse.d.ts +1 -1
- package/dist/runtime/api/models/ReplicaSetState.d.ts +1 -1
- package/dist/runtime/api/models/Role.d.ts +1 -1
- package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -1
- package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -1
- package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
- package/dist/runtime/api/models/SearchRequest.d.ts +1 -1
- package/dist/runtime/api/models/SettingsResponse.d.ts +5 -3
- package/dist/runtime/api/models/SystemInfo.d.ts +1 -1
- package/dist/runtime/api/models/SystemStats.d.ts +1 -1
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
- package/dist/runtime/api/models/UpdateRequest.d.ts +1 -1
- package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
- package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -1
- package/dist/runtime/api/models/UserInformation.d.ts +1 -1
- package/dist/runtime/api/models/UserProfile.d.ts +1 -1
- package/dist/runtime/api/models/Version.d.ts +1 -1
- package/dist/runtime/api/runtime.d.ts +1 -1
- package/dist/runtime/composables/mongocampSearch.d.ts +3 -1
- package/dist/runtime/composables/mongocampSearch.js +3 -3
- package/dist/runtime/utils/extendedJson.d.ts +12 -0
- package/dist/runtime/utils/extendedJson.js +60 -0
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -66,6 +66,8 @@ export default definePlugin(async () => {
|
|
|
66
66
|
})
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
+
**Migration to 2.0** (from 1.x or from the Scala server): every change and the checklist are in [`docs/migration-2.0.md`](docs/migration-2.0.md) — documents as Extended JSON, Lucene rules, 404 for missing resources, salted passwords, one start with `MIGRATION_DROP_SCALA_LEFTOVERS=true` on a database of the Scala server.
|
|
70
|
+
|
|
69
71
|
**Migration from the Scala server** (details and all differences: [`docs/migration-from-scala.md`](docs/migration-from-scala.md)): point the embedded server at the same database (the same `CONNECTION_*` and `AUTH_PREFIX`); users,
|
|
70
72
|
roles, tokens, the token secret and the stored configurations keep working. Jobs are read from `mc_jobs` with cron expressions in the
|
|
71
73
|
syntax of [croner](https://croner.56k.guru) (`*/5` instead of `0/5`); the Quartz tables `mc_jobs_*` are not read.
|
|
@@ -126,14 +128,24 @@ A missing `url` throws during `nuxi dev`/`nuxi build`/`nuxi generate` (not durin
|
|
|
126
128
|
| `useMongocampStorage()` | The session cookie (`{ token, profile }`) backing auth state; SSR-safe. |
|
|
127
129
|
| `useMongocampUser()` | Reactive current user profile, derived from `useMongocampStorage()` (read-only). |
|
|
128
130
|
| `useMongocampUrl()` | The configured base URL. |
|
|
129
|
-
| `useMongocampSearch()` | `find`/`findAll`/`findByField` document search helpers.
|
|
130
|
-
| `usePaginatedFind(collection, opts)`| Reactive pagination wrapper (`page`, `documents`, `pending`, `error`, `nextPage`/`previousPage`/`goToPage`). |
|
|
131
|
+
| `useMongocampSearch()` | `find`/`findAll`/`findByField` document search helpers. `find(..., filterCaseInsensitive)` makes wildcards of the filter ignore the case (case-sensitive by default since 2.0.0). |
|
|
132
|
+
| `usePaginatedFind(collection, opts)`| Reactive pagination wrapper (`page`, `documents`, `pending`, `error`, `nextPage`/`previousPage`/`goToPage`); `opts.filterCaseInsensitive` as for `find`. |
|
|
131
133
|
| `useMongocampApiCollection(name)` | Per-collection insert/update/delete/aggregate/schema helpers. |
|
|
132
134
|
| `useMongocampApiCollections()` | List collections/databases, database info. |
|
|
133
135
|
| `useMongocampApiFiles()` | Bucket and file upload/download/list helpers. |
|
|
134
136
|
| `useMongocampApiJobs()` | List/register/update/execute/delete scheduled jobs. |
|
|
135
137
|
| `useMongocampApiAdmin()` | User and role management. |
|
|
136
138
|
|
|
139
|
+
### Documents as Extended JSON
|
|
140
|
+
|
|
141
|
+
Since 2.0.0 the server returns documents as relaxed MongoDB Extended JSON: `{"_id": {"$oid": "…"}, "when": {"$date": "…"}}`. Send `extendedJson: 'plain'` for the 1.x format (ids and dates as strings). Auto-imported helpers:
|
|
142
|
+
|
|
143
|
+
| Helper | Purpose |
|
|
144
|
+
| ---------------------------| --------------------------------------------------------------------------------------------------------|
|
|
145
|
+
| `documentId(docOrId)` | The id as text (hex string of an ObjectId, the value of any other id). |
|
|
146
|
+
| `fromExtendedJson(doc)` | Typed values: `ObjectId`, `Date`, `Decimal128`, …; integers beyond 2^53 as `bigint`. |
|
|
147
|
+
| `toExtendedJson(doc)` | Typed values back for an insert/update body; keeps texts that look like dates as texts. |
|
|
148
|
+
|
|
137
149
|
### Server composables (`src/runtime/server/composables`)
|
|
138
150
|
|
|
139
151
|
| Composable | Purpose |
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver, addImportsDir, addServerImportsDir, addServerHandler, addServerPlugin, addServerImports } from '@nuxt/kit';
|
|
1
|
+
import { defineNuxtModule, createResolver, addImportsDir, addImports, addServerImportsDir, addServerHandler, addServerPlugin, addServerImports } from '@nuxt/kit';
|
|
2
2
|
import { defu } from 'defu';
|
|
3
3
|
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 = "
|
|
7
|
+
const version = "2.0.0";
|
|
8
8
|
|
|
9
9
|
const DefaultServerPrefix = "/api/mongocamp-server";
|
|
10
10
|
function normalizePrefix(prefix) {
|
|
@@ -80,6 +80,7 @@ const module$1 = defineNuxtModule({
|
|
|
80
80
|
const { resolve } = createResolver(import.meta.url);
|
|
81
81
|
const runtimeDir = resolve("./runtime");
|
|
82
82
|
addImportsDir(resolve(runtimeDir, "composables"));
|
|
83
|
+
addImports(["fromExtendedJson", "toExtendedJson", "documentId"].map((name2) => ({ name: name2, from: resolve(runtimeDir, "utils/extendedJson") })));
|
|
83
84
|
addServerImportsDir(resolve(runtimeDir, "server/composables"));
|
|
84
85
|
nuxt.options.runtimeConfig.mongocampServer = defu(nuxt.options.runtimeConfig.mongocampServer, { ...server, version: { name: "mongocamp-nitro-server", version } });
|
|
85
86
|
if (server.enabled) {
|
|
@@ -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:
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -61,7 +61,7 @@ export interface GnerateNewApiKeyForUserRequest {
|
|
|
61
61
|
}
|
|
62
62
|
export interface ListRolesRequest {
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* Filter by a part of the userId
|
|
65
65
|
*/
|
|
66
66
|
filter?: string;
|
|
67
67
|
/**
|
|
@@ -75,7 +75,7 @@ export interface ListRolesRequest {
|
|
|
75
75
|
}
|
|
76
76
|
export interface ListUsersRequest {
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Filter by a part of the userId
|
|
79
79
|
*/
|
|
80
80
|
filter?: string;
|
|
81
81
|
/**
|
|
@@ -154,12 +154,12 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
154
154
|
*/
|
|
155
155
|
deleteRoleRequestOpts(requestParameters: DeleteRoleRequest): Promise<runtime.RequestOpts>;
|
|
156
156
|
/**
|
|
157
|
-
* Delete Role
|
|
157
|
+
* Delete Role. 404 for a role that does not exist (2.0.0).
|
|
158
158
|
* Delete Role
|
|
159
159
|
*/
|
|
160
160
|
deleteRoleRaw(requestParameters: DeleteRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
|
|
161
161
|
/**
|
|
162
|
-
* Delete Role
|
|
162
|
+
* Delete Role. 404 for a role that does not exist (2.0.0).
|
|
163
163
|
* Delete Role
|
|
164
164
|
*/
|
|
165
165
|
deleteRole(requestParameters: DeleteRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
@@ -168,12 +168,12 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
168
168
|
*/
|
|
169
169
|
deleteUserRequestOpts(requestParameters: DeleteUserRequest): Promise<runtime.RequestOpts>;
|
|
170
170
|
/**
|
|
171
|
-
* Delete User. All tokens of the user are revoked.
|
|
171
|
+
* Delete User. All tokens of the user are revoked. 404 for a user that does not exist (2.0.0).
|
|
172
172
|
* Delete User
|
|
173
173
|
*/
|
|
174
174
|
deleteUserRaw(requestParameters: DeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
|
|
175
175
|
/**
|
|
176
|
-
* Delete User. All tokens of the user are revoked.
|
|
176
|
+
* Delete User. All tokens of the user are revoked. 404 for a user that does not exist (2.0.0).
|
|
177
177
|
* Delete User
|
|
178
178
|
*/
|
|
179
179
|
deleteUser(requestParameters: DeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
@@ -210,12 +210,12 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
210
210
|
*/
|
|
211
211
|
gnerateNewApiKeyForUserRequestOpts(requestParameters: GnerateNewApiKeyForUserRequest): Promise<runtime.RequestOpts>;
|
|
212
212
|
/**
|
|
213
|
-
* Generate
|
|
213
|
+
* Generate a new API key for the user
|
|
214
214
|
* Update ApiKey
|
|
215
215
|
*/
|
|
216
216
|
gnerateNewApiKeyForUserRaw(requestParameters: GnerateNewApiKeyForUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueString>>;
|
|
217
217
|
/**
|
|
218
|
-
* Generate
|
|
218
|
+
* Generate a new API key for the user
|
|
219
219
|
* Update ApiKey
|
|
220
220
|
*/
|
|
221
221
|
gnerateNewApiKeyForUser(requestParameters: GnerateNewApiKeyForUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueString>;
|
|
@@ -161,7 +161,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
163
|
/**
|
|
164
|
-
* Delete Role
|
|
164
|
+
* Delete Role. 404 for a role that does not exist (2.0.0).
|
|
165
165
|
* Delete Role
|
|
166
166
|
*/
|
|
167
167
|
async deleteRoleRaw(requestParameters, initOverrides) {
|
|
@@ -170,7 +170,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
170
170
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
|
-
* Delete Role
|
|
173
|
+
* Delete Role. 404 for a role that does not exist (2.0.0).
|
|
174
174
|
* Delete Role
|
|
175
175
|
*/
|
|
176
176
|
async deleteRole(requestParameters, initOverrides) {
|
|
@@ -212,7 +212,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
/**
|
|
215
|
-
* Delete User. All tokens of the user are revoked.
|
|
215
|
+
* Delete User. All tokens of the user are revoked. 404 for a user that does not exist (2.0.0).
|
|
216
216
|
* Delete User
|
|
217
217
|
*/
|
|
218
218
|
async deleteUserRaw(requestParameters, initOverrides) {
|
|
@@ -221,7 +221,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
221
221
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
222
222
|
}
|
|
223
223
|
/**
|
|
224
|
-
* Delete User. All tokens of the user are revoked.
|
|
224
|
+
* Delete User. All tokens of the user are revoked. 404 for a user that does not exist (2.0.0).
|
|
225
225
|
* Delete User
|
|
226
226
|
*/
|
|
227
227
|
async deleteUser(requestParameters, initOverrides) {
|
|
@@ -365,7 +365,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
367
|
/**
|
|
368
|
-
* Generate
|
|
368
|
+
* Generate a new API key for the user
|
|
369
369
|
* Update ApiKey
|
|
370
370
|
*/
|
|
371
371
|
async gnerateNewApiKeyForUserRaw(requestParameters, initOverrides) {
|
|
@@ -374,7 +374,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
374
374
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueStringFromJSON(jsonValue));
|
|
375
375
|
}
|
|
376
376
|
/**
|
|
377
|
-
* Generate
|
|
377
|
+
* Generate a new API key for the user
|
|
378
378
|
* Update ApiKey
|
|
379
379
|
*/
|
|
380
380
|
async gnerateNewApiKeyForUser(requestParameters, initOverrides) {
|
|
@@ -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:
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ export interface GetConfigRequest {
|
|
|
22
22
|
}
|
|
23
23
|
export interface ShutdownRequest {
|
|
24
24
|
/**
|
|
25
|
-
* Shutdown Server and don
|
|
25
|
+
* Shutdown Server and don't send reboot event.
|
|
26
26
|
*/
|
|
27
27
|
force?: boolean;
|
|
28
28
|
}
|
|
@@ -45,12 +45,12 @@ export declare class ApplicationApi extends runtime.BaseAPI {
|
|
|
45
45
|
*/
|
|
46
46
|
getConfigRequestOpts(requestParameters: GetConfigRequest): Promise<runtime.RequestOpts>;
|
|
47
47
|
/**
|
|
48
|
-
* Get Configuration for key
|
|
48
|
+
* Get Configuration for key. 404 for a configuration key that does not exist (2.0.0).
|
|
49
49
|
* Configuration for configurationKey
|
|
50
50
|
*/
|
|
51
51
|
getConfigRaw(requestParameters: GetConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MongoCampConfiguration>>;
|
|
52
52
|
/**
|
|
53
|
-
* Get Configuration for key
|
|
53
|
+
* Get Configuration for key. 404 for a configuration key that does not exist (2.0.0).
|
|
54
54
|
* Configuration for configurationKey
|
|
55
55
|
*/
|
|
56
56
|
getConfig(requestParameters: GetConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MongoCampConfiguration>;
|
|
@@ -101,12 +101,12 @@ export declare class ApplicationApi extends runtime.BaseAPI {
|
|
|
101
101
|
*/
|
|
102
102
|
updateConfigurationRequestOpts(requestParameters: UpdateConfigurationRequest): Promise<runtime.RequestOpts>;
|
|
103
103
|
/**
|
|
104
|
-
* Update Configuration with the value
|
|
104
|
+
* Update Configuration with the value. 404 for an unknown key, 400 for a key that is read at the start only or set by the environment (2.0.0).
|
|
105
105
|
* Update Configuration
|
|
106
106
|
*/
|
|
107
107
|
updateConfigurationRaw(requestParameters: UpdateConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
|
|
108
108
|
/**
|
|
109
|
-
* Update Configuration with the value
|
|
109
|
+
* Update Configuration with the value. 404 for an unknown key, 400 for a key that is read at the start only or set by the environment (2.0.0).
|
|
110
110
|
* Update Configuration
|
|
111
111
|
*/
|
|
112
112
|
updateConfiguration(requestParameters: UpdateConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
@@ -47,7 +47,7 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
* Get Configuration for key
|
|
50
|
+
* Get Configuration for key. 404 for a configuration key that does not exist (2.0.0).
|
|
51
51
|
* Configuration for configurationKey
|
|
52
52
|
*/
|
|
53
53
|
async getConfigRaw(requestParameters, initOverrides) {
|
|
@@ -56,7 +56,7 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
56
56
|
return new runtime.JSONApiResponse(response, (jsonValue) => MongoCampConfigurationFromJSON(jsonValue));
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Get Configuration for key
|
|
59
|
+
* Get Configuration for key. 404 for a configuration key that does not exist (2.0.0).
|
|
60
60
|
* Configuration for configurationKey
|
|
61
61
|
*/
|
|
62
62
|
async getConfig(requestParameters, initOverrides) {
|
|
@@ -241,7 +241,7 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
243
|
/**
|
|
244
|
-
* Update Configuration with the value
|
|
244
|
+
* Update Configuration with the value. 404 for an unknown key, 400 for a key that is read at the start only or set by the environment (2.0.0).
|
|
245
245
|
* Update Configuration
|
|
246
246
|
*/
|
|
247
247
|
async updateConfigurationRaw(requestParameters, initOverrides) {
|
|
@@ -250,7 +250,7 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
250
250
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
251
251
|
}
|
|
252
252
|
/**
|
|
253
|
-
* Update Configuration with the value
|
|
253
|
+
* Update Configuration with the value. 404 for an unknown key, 400 for a key that is read at the start only or set by the environment (2.0.0).
|
|
254
254
|
* Update Configuration
|
|
255
255
|
*/
|
|
256
256
|
async updateConfiguration(requestParameters, initOverrides) {
|
|
@@ -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:
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -58,12 +58,12 @@ export declare class AuthApi extends runtime.BaseAPI {
|
|
|
58
58
|
*/
|
|
59
59
|
isAuthenticatedRequestOpts(): Promise<runtime.RequestOpts>;
|
|
60
60
|
/**
|
|
61
|
-
* Check
|
|
61
|
+
* Check whether the request is authenticated
|
|
62
62
|
* Check Authentication
|
|
63
63
|
*/
|
|
64
64
|
isAuthenticatedRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
|
|
65
65
|
/**
|
|
66
|
-
* Check
|
|
66
|
+
* Check whether the request is authenticated
|
|
67
67
|
* Check Authentication
|
|
68
68
|
*/
|
|
69
69
|
isAuthenticated(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
@@ -142,12 +142,12 @@ export declare class AuthApi extends runtime.BaseAPI {
|
|
|
142
142
|
*/
|
|
143
143
|
userPermissionsRequestOpts(requestParameters: UserPermissionsRequest): Promise<runtime.RequestOpts>;
|
|
144
144
|
/**
|
|
145
|
-
* Return the resolved rights (read, write, administrate) of the
|
|
145
|
+
* Return the resolved rights (read, write, administrate) of the logged in user for the collections of the default database
|
|
146
146
|
* Collection permissions
|
|
147
147
|
*/
|
|
148
148
|
userPermissionsRaw(requestParameters: UserPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CollectionPermission>>>;
|
|
149
149
|
/**
|
|
150
|
-
* Return the resolved rights (read, write, administrate) of the
|
|
150
|
+
* Return the resolved rights (read, write, administrate) of the logged in user for the collections of the default database
|
|
151
151
|
* Collection permissions
|
|
152
152
|
*/
|
|
153
153
|
userPermissions(requestParameters?: UserPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CollectionPermission>>;
|
|
@@ -156,12 +156,12 @@ export declare class AuthApi extends runtime.BaseAPI {
|
|
|
156
156
|
*/
|
|
157
157
|
userProfileRequestOpts(): Promise<runtime.RequestOpts>;
|
|
158
158
|
/**
|
|
159
|
-
* Return the User Profile of
|
|
159
|
+
* Return the User Profile of the logged in user
|
|
160
160
|
* User Profile
|
|
161
161
|
*/
|
|
162
162
|
userProfileRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserProfile>>;
|
|
163
163
|
/**
|
|
164
|
-
* Return the User Profile of
|
|
164
|
+
* Return the User Profile of the logged in user
|
|
165
165
|
* User Profile
|
|
166
166
|
*/
|
|
167
167
|
userProfile(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserProfile>;
|
|
@@ -93,7 +93,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
|
-
* Check
|
|
96
|
+
* Check whether the request is authenticated
|
|
97
97
|
* Check Authentication
|
|
98
98
|
*/
|
|
99
99
|
async isAuthenticatedRaw(initOverrides) {
|
|
@@ -102,7 +102,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
102
102
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
|
-
* Check
|
|
105
|
+
* Check whether the request is authenticated
|
|
106
106
|
* Check Authentication
|
|
107
107
|
*/
|
|
108
108
|
async isAuthenticated(initOverrides) {
|
|
@@ -363,7 +363,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
365
|
/**
|
|
366
|
-
* Return the resolved rights (read, write, administrate) of the
|
|
366
|
+
* Return the resolved rights (read, write, administrate) of the logged in user for the collections of the default database
|
|
367
367
|
* Collection permissions
|
|
368
368
|
*/
|
|
369
369
|
async userPermissionsRaw(requestParameters, initOverrides) {
|
|
@@ -372,7 +372,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
372
372
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CollectionPermissionFromJSON));
|
|
373
373
|
}
|
|
374
374
|
/**
|
|
375
|
-
* Return the resolved rights (read, write, administrate) of the
|
|
375
|
+
* Return the resolved rights (read, write, administrate) of the logged in user for the collections of the default database
|
|
376
376
|
* Collection permissions
|
|
377
377
|
*/
|
|
378
378
|
async userPermissions(requestParameters = {}, initOverrides) {
|
|
@@ -407,7 +407,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
409
|
/**
|
|
410
|
-
* Return the User Profile of
|
|
410
|
+
* Return the User Profile of the logged in user
|
|
411
411
|
* User Profile
|
|
412
412
|
*/
|
|
413
413
|
async userProfileRaw(initOverrides) {
|
|
@@ -416,7 +416,7 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
416
416
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserProfileFromJSON(jsonValue));
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
419
|
-
* Return the User Profile of
|
|
419
|
+
* Return the User Profile of the logged in user
|
|
420
420
|
* User Profile
|
|
421
421
|
*/
|
|
422
422
|
async userProfile(initOverrides) {
|
|
@@ -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:
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -39,12 +39,12 @@ export declare class BucketApi extends runtime.BaseAPI {
|
|
|
39
39
|
*/
|
|
40
40
|
clearBucketRequestOpts(requestParameters: ClearBucketRequest): Promise<runtime.RequestOpts>;
|
|
41
41
|
/**
|
|
42
|
-
* Delete all Files in Bucket
|
|
42
|
+
* Delete all Files in Bucket. 404 for a bucket that does not exist (2.0.0).
|
|
43
43
|
* Clear Bucket
|
|
44
44
|
*/
|
|
45
45
|
clearBucketRaw(requestParameters: ClearBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
|
|
46
46
|
/**
|
|
47
|
-
* Delete all Files in Bucket
|
|
47
|
+
* Delete all Files in Bucket. 404 for a bucket that does not exist (2.0.0).
|
|
48
48
|
* Clear Bucket
|
|
49
49
|
*/
|
|
50
50
|
clearBucket(requestParameters: ClearBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
@@ -53,12 +53,12 @@ export declare class BucketApi extends runtime.BaseAPI {
|
|
|
53
53
|
*/
|
|
54
54
|
deleteBucketRequestOpts(requestParameters: DeleteBucketRequest): Promise<runtime.RequestOpts>;
|
|
55
55
|
/**
|
|
56
|
-
* Delete a given Bucket
|
|
56
|
+
* Delete a given Bucket. 404 for a bucket that does not exist (2.0.0).
|
|
57
57
|
* Delete Bucket
|
|
58
58
|
*/
|
|
59
59
|
deleteBucketRaw(requestParameters: DeleteBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
|
|
60
60
|
/**
|
|
61
|
-
* Delete a given Bucket
|
|
61
|
+
* Delete a given Bucket. 404 for a bucket that does not exist (2.0.0).
|
|
62
62
|
* Delete Bucket
|
|
63
63
|
*/
|
|
64
64
|
deleteBucket(requestParameters: DeleteBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
@@ -67,12 +67,12 @@ export declare class BucketApi extends runtime.BaseAPI {
|
|
|
67
67
|
*/
|
|
68
68
|
getBucketRequestOpts(requestParameters: GetBucketRequest): Promise<runtime.RequestOpts>;
|
|
69
69
|
/**
|
|
70
|
-
* All Information about a single Bucket
|
|
70
|
+
* All Information about a single Bucket. 404 for a bucket that does not exist (2.0.0).
|
|
71
71
|
* Bucket Information
|
|
72
72
|
*/
|
|
73
73
|
getBucketRaw(requestParameters: GetBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BucketInformation>>;
|
|
74
74
|
/**
|
|
75
|
-
* All Information about a single Bucket
|
|
75
|
+
* All Information about a single Bucket. 404 for a bucket that does not exist (2.0.0).
|
|
76
76
|
* Bucket Information
|
|
77
77
|
*/
|
|
78
78
|
getBucket(requestParameters: GetBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BucketInformation>;
|
|
@@ -41,7 +41,7 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* Delete all Files in Bucket
|
|
44
|
+
* Delete all Files in Bucket. 404 for a bucket that does not exist (2.0.0).
|
|
45
45
|
* Clear Bucket
|
|
46
46
|
*/
|
|
47
47
|
async clearBucketRaw(requestParameters, initOverrides) {
|
|
@@ -50,7 +50,7 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
50
50
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* Delete all Files in Bucket
|
|
53
|
+
* Delete all Files in Bucket. 404 for a bucket that does not exist (2.0.0).
|
|
54
54
|
* Clear Bucket
|
|
55
55
|
*/
|
|
56
56
|
async clearBucket(requestParameters, initOverrides) {
|
|
@@ -92,7 +92,7 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
/**
|
|
95
|
-
* Delete a given Bucket
|
|
95
|
+
* Delete a given Bucket. 404 for a bucket that does not exist (2.0.0).
|
|
96
96
|
* Delete Bucket
|
|
97
97
|
*/
|
|
98
98
|
async deleteBucketRaw(requestParameters, initOverrides) {
|
|
@@ -101,7 +101,7 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
101
101
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
-
* Delete a given Bucket
|
|
104
|
+
* Delete a given Bucket. 404 for a bucket that does not exist (2.0.0).
|
|
105
105
|
* Delete Bucket
|
|
106
106
|
*/
|
|
107
107
|
async deleteBucket(requestParameters, initOverrides) {
|
|
@@ -143,7 +143,7 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
|
-
* All Information about a single Bucket
|
|
146
|
+
* All Information about a single Bucket. 404 for a bucket that does not exist (2.0.0).
|
|
147
147
|
* Bucket Information
|
|
148
148
|
*/
|
|
149
149
|
async getBucketRaw(requestParameters, initOverrides) {
|
|
@@ -152,7 +152,7 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
152
152
|
return new runtime.JSONApiResponse(response, (jsonValue) => BucketInformationFromJSON(jsonValue));
|
|
153
153
|
}
|
|
154
154
|
/**
|
|
155
|
-
* All Information about a single Bucket
|
|
155
|
+
* All Information about a single Bucket. 404 for a bucket that does not exist (2.0.0).
|
|
156
156
|
* Bucket Information
|
|
157
157
|
*/
|
|
158
158
|
async getBucket(requestParameters, initOverrides) {
|