@sfxcode/nuxt-mongocamp-server 1.2.2 → 1.2.4
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.d.mts +1 -1
- package/dist/module.d.ts +1 -1
- package/dist/module.json +2 -2
- package/dist/module.mjs +118 -12
- package/dist/runtime/api/apis/AdminApi.d.ts +1 -1
- package/dist/runtime/api/apis/ApplicationApi.d.ts +14 -1
- package/dist/runtime/api/apis/ApplicationApi.js +39 -0
- package/dist/runtime/api/apis/AuthApi.d.ts +1 -1
- package/dist/runtime/api/apis/BucketApi.d.ts +1 -1
- package/dist/runtime/api/apis/CollectionApi.d.ts +4 -4
- package/dist/runtime/api/apis/DatabaseApi.d.ts +1 -1
- package/dist/runtime/api/apis/DocumentApi.d.ts +1 -1
- package/dist/runtime/api/apis/FileApi.d.ts +1 -1
- package/dist/runtime/api/apis/IndexApi.d.ts +1 -1
- package/dist/runtime/api/apis/InformationApi.d.ts +1 -1
- package/dist/runtime/api/apis/JobsApi.d.ts +1 -1
- package/dist/runtime/api/models/BucketInformation.d.ts +3 -2
- package/dist/runtime/api/models/BucketInformation.js +4 -1
- package/dist/runtime/api/models/CollectionStatus.d.ts +3 -2
- package/dist/runtime/api/models/CollectionStatus.js +4 -1
- package/dist/runtime/api/models/DatabaseInfo.d.ts +3 -2
- package/dist/runtime/api/models/DatabaseInfo.js +4 -1
- package/dist/runtime/api/models/DeleteResponse.d.ts +3 -2
- package/dist/runtime/api/models/DeleteResponse.js +4 -1
- package/dist/runtime/api/models/ErrorDescription.d.ts +3 -2
- package/dist/runtime/api/models/ErrorDescription.js +4 -1
- package/dist/runtime/api/models/FileInformation.d.ts +3 -2
- package/dist/runtime/api/models/FileInformation.js +4 -1
- package/dist/runtime/api/models/Grant.d.ts +3 -2
- package/dist/runtime/api/models/Grant.js +4 -1
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +3 -2
- package/dist/runtime/api/models/IndexCreateRequest.js +4 -1
- package/dist/runtime/api/models/IndexCreateResponse.d.ts +3 -2
- package/dist/runtime/api/models/IndexCreateResponse.js +4 -1
- package/dist/runtime/api/models/IndexDropResponse.d.ts +3 -2
- package/dist/runtime/api/models/IndexDropResponse.js +4 -1
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +3 -2
- package/dist/runtime/api/models/IndexOptionsRequest.js +4 -1
- package/dist/runtime/api/models/InsertResponse.d.ts +3 -2
- package/dist/runtime/api/models/InsertResponse.js +4 -1
- package/dist/runtime/api/models/JobConfig.d.ts +3 -2
- package/dist/runtime/api/models/JobConfig.js +4 -1
- package/dist/runtime/api/models/JobInformation.d.ts +3 -2
- package/dist/runtime/api/models/JobInformation.js +4 -1
- package/dist/runtime/api/models/JsonSchema.d.ts +3 -2
- package/dist/runtime/api/models/JsonSchema.js +4 -1
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +3 -2
- package/dist/runtime/api/models/JsonSchemaDefinition.js +4 -1
- package/dist/runtime/api/models/JsonValueAny.d.ts +3 -2
- package/dist/runtime/api/models/JsonValueAny.js +4 -1
- package/dist/runtime/api/models/JsonValueBoolean.d.ts +3 -2
- package/dist/runtime/api/models/JsonValueBoolean.js +4 -1
- package/dist/runtime/api/models/JsonValueString.d.ts +3 -2
- package/dist/runtime/api/models/JsonValueString.js +4 -1
- package/dist/runtime/api/models/Login.d.ts +3 -2
- package/dist/runtime/api/models/Login.js +4 -1
- package/dist/runtime/api/models/LoginResult.d.ts +3 -2
- package/dist/runtime/api/models/LoginResult.js +4 -1
- package/dist/runtime/api/models/MongoAggregateRequest.d.ts +3 -2
- package/dist/runtime/api/models/MongoAggregateRequest.js +4 -1
- package/dist/runtime/api/models/MongoCampConfiguration.d.ts +3 -2
- package/dist/runtime/api/models/MongoCampConfiguration.js +4 -1
- package/dist/runtime/api/models/MongoFindRequest.d.ts +3 -2
- package/dist/runtime/api/models/MongoFindRequest.js +4 -1
- package/dist/runtime/api/models/MongoIndex.d.ts +3 -2
- package/dist/runtime/api/models/MongoIndex.js +4 -1
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +3 -2
- package/dist/runtime/api/models/PasswordUpdateRequest.js +4 -1
- package/dist/runtime/api/models/PipelineStage.d.ts +3 -2
- package/dist/runtime/api/models/PipelineStage.js +4 -1
- package/dist/runtime/api/models/Role.d.ts +3 -2
- package/dist/runtime/api/models/Role.js +4 -1
- package/dist/runtime/api/models/SchemaAnalysis.d.ts +3 -2
- package/dist/runtime/api/models/SchemaAnalysis.js +4 -1
- package/dist/runtime/api/models/SchemaAnalysisField.d.ts +3 -2
- package/dist/runtime/api/models/SchemaAnalysisField.js +4 -1
- package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +3 -2
- package/dist/runtime/api/models/SchemaAnalysisFieldType.js +4 -1
- package/dist/runtime/api/models/SettingsResponse.d.ts +3 -2
- package/dist/runtime/api/models/SettingsResponse.js +4 -1
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +3 -2
- package/dist/runtime/api/models/UpdateFileInformationRequest.js +4 -1
- package/dist/runtime/api/models/UpdateRequest.d.ts +3 -2
- package/dist/runtime/api/models/UpdateRequest.js +4 -1
- package/dist/runtime/api/models/UpdateResponse.d.ts +3 -2
- package/dist/runtime/api/models/UpdateResponse.js +4 -1
- package/dist/runtime/api/models/UpdateRoleRequest.d.ts +3 -2
- package/dist/runtime/api/models/UpdateRoleRequest.js +4 -1
- package/dist/runtime/api/models/UserInformation.d.ts +3 -2
- package/dist/runtime/api/models/UserInformation.js +4 -1
- package/dist/runtime/api/models/UserProfile.d.ts +3 -2
- package/dist/runtime/api/models/UserProfile.js +4 -1
- package/dist/runtime/api/models/Version.d.ts +3 -2
- package/dist/runtime/api/models/Version.js +4 -1
- package/dist/runtime/api/runtime.d.ts +1 -1
- package/dist/runtime/composables/mongocampApi.d.ts +1 -1
- package/dist/runtime/composables/mongocampAuth.d.ts +1 -1
- package/dist/runtime/composables/mongocampSearch.d.ts +1 -1
- package/dist/runtime/composables/mongocampStorage.d.ts +1 -1
- package/dist/runtime/composables/mongocampUser.d.ts +1 -1
- package/dist/runtime/server/composables/mongocampServerApi.d.ts +14 -0
- package/dist/runtime/server/composables/mongocampServerApi.js +46 -0
- package/package.json +18 -19
package/dist/module.d.mts
CHANGED
|
@@ -6,6 +6,6 @@ interface ModuleOptions {
|
|
|
6
6
|
refreshToken: boolean;
|
|
7
7
|
tokenRefreshIntervall: number;
|
|
8
8
|
}
|
|
9
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
9
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
10
10
|
|
|
11
11
|
export { type ModuleOptions, _default as default };
|
package/dist/module.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ interface ModuleOptions {
|
|
|
6
6
|
refreshToken: boolean;
|
|
7
7
|
tokenRefreshIntervall: number;
|
|
8
8
|
}
|
|
9
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
9
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
10
10
|
|
|
11
11
|
export { type ModuleOptions, _default as default };
|
package/dist/module.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/nuxt-mongocamp-server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"configKey": "mongocamp",
|
|
5
5
|
"compatibility": {
|
|
6
6
|
"nuxt": "^3.0.0"
|
|
7
7
|
},
|
|
8
8
|
"builder": {
|
|
9
|
-
"@nuxt/module-builder": "0.8.
|
|
9
|
+
"@nuxt/module-builder": "0.8.4",
|
|
10
10
|
"unbuild": "2.0.0"
|
|
11
11
|
}
|
|
12
12
|
}
|
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineNuxtModule, createResolver, addImportsDir } from '@nuxt/kit';
|
|
2
2
|
|
|
3
|
-
function isPlainObject$
|
|
3
|
+
function isPlainObject$2(value) {
|
|
4
4
|
if (value === null || typeof value !== "object") {
|
|
5
5
|
return false;
|
|
6
6
|
}
|
|
@@ -18,7 +18,7 @@ function isPlainObject$1(value) {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
function _defu$1(baseObject, defaults, namespace = ".", merger) {
|
|
21
|
-
if (!isPlainObject$
|
|
21
|
+
if (!isPlainObject$2(defaults)) {
|
|
22
22
|
return _defu$1(baseObject, {}, namespace, merger);
|
|
23
23
|
}
|
|
24
24
|
const object = Object.assign({}, defaults);
|
|
@@ -35,7 +35,7 @@ function _defu$1(baseObject, defaults, namespace = ".", merger) {
|
|
|
35
35
|
}
|
|
36
36
|
if (Array.isArray(value) && Array.isArray(object[key])) {
|
|
37
37
|
object[key] = [...value, ...object[key]];
|
|
38
|
-
} else if (isPlainObject$
|
|
38
|
+
} else if (isPlainObject$2(value) && isPlainObject$2(object[key])) {
|
|
39
39
|
object[key] = _defu$1(
|
|
40
40
|
value,
|
|
41
41
|
object[key],
|
|
@@ -125,11 +125,25 @@ const LogTypes = {
|
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
function
|
|
129
|
-
|
|
128
|
+
function isPlainObject$1(value) {
|
|
129
|
+
if (value === null || typeof value !== "object") {
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
132
|
+
const prototype = Object.getPrototypeOf(value);
|
|
133
|
+
if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
|
|
134
|
+
return false;
|
|
135
|
+
}
|
|
136
|
+
if (Symbol.iterator in value) {
|
|
137
|
+
return false;
|
|
138
|
+
}
|
|
139
|
+
if (Symbol.toStringTag in value) {
|
|
140
|
+
return Object.prototype.toString.call(value) === "[object Module]";
|
|
141
|
+
}
|
|
142
|
+
return true;
|
|
130
143
|
}
|
|
144
|
+
|
|
131
145
|
function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
132
|
-
if (!
|
|
146
|
+
if (!isPlainObject$1(defaults)) {
|
|
133
147
|
return _defu(baseObject, {}, namespace, merger);
|
|
134
148
|
}
|
|
135
149
|
const object = Object.assign({}, defaults);
|
|
@@ -138,7 +152,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
|
138
152
|
continue;
|
|
139
153
|
}
|
|
140
154
|
const value = baseObject[key];
|
|
141
|
-
if (value === null || value ===
|
|
155
|
+
if (value === null || value === undefined) {
|
|
142
156
|
continue;
|
|
143
157
|
}
|
|
144
158
|
if (merger && merger(object, key, value, namespace)) {
|
|
@@ -146,7 +160,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
|
146
160
|
}
|
|
147
161
|
if (Array.isArray(value) && Array.isArray(object[key])) {
|
|
148
162
|
object[key] = [...value, ...object[key]];
|
|
149
|
-
} else if (
|
|
163
|
+
} else if (isPlainObject$1(value) && isPlainObject$1(object[key])) {
|
|
150
164
|
object[key] = _defu(
|
|
151
165
|
value,
|
|
152
166
|
object[key],
|
|
@@ -186,6 +200,14 @@ function isLogObj(arg) {
|
|
|
186
200
|
let paused = false;
|
|
187
201
|
const queue = [];
|
|
188
202
|
class Consola {
|
|
203
|
+
options;
|
|
204
|
+
_lastLog;
|
|
205
|
+
_mockFn;
|
|
206
|
+
/**
|
|
207
|
+
* Creates an instance of Consola with specified options or defaults.
|
|
208
|
+
*
|
|
209
|
+
* @param {Partial<ConsolaOptions>} [options={}] - Configuration options for the Consola instance.
|
|
210
|
+
*/
|
|
189
211
|
constructor(options = {}) {
|
|
190
212
|
const types = options.types || LogTypes;
|
|
191
213
|
this.options = defu(
|
|
@@ -223,9 +245,19 @@ class Consola {
|
|
|
223
245
|
}
|
|
224
246
|
this._lastLog = {};
|
|
225
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* Gets the current log level of the Consola instance.
|
|
250
|
+
*
|
|
251
|
+
* @returns {number} The current log level.
|
|
252
|
+
*/
|
|
226
253
|
get level() {
|
|
227
254
|
return this.options.level;
|
|
228
255
|
}
|
|
256
|
+
/**
|
|
257
|
+
* Sets the minimum log level that will be output by the instance.
|
|
258
|
+
*
|
|
259
|
+
* @param {number} level - The new log level to set.
|
|
260
|
+
*/
|
|
229
261
|
set level(level) {
|
|
230
262
|
this.options.level = _normalizeLogLevel(
|
|
231
263
|
level,
|
|
@@ -233,12 +265,27 @@ class Consola {
|
|
|
233
265
|
this.options.level
|
|
234
266
|
);
|
|
235
267
|
}
|
|
268
|
+
/**
|
|
269
|
+
* Displays a prompt to the user and returns the response.
|
|
270
|
+
* Throw an error if `prompt` is not supported by the current configuration.
|
|
271
|
+
*
|
|
272
|
+
* @template T
|
|
273
|
+
* @param {string} message - The message to display in the prompt.
|
|
274
|
+
* @param {T} [opts] - Optional options for the prompt. See {@link PromptOptions}.
|
|
275
|
+
* @returns {promise<T>} A promise that infer with the prompt options. See {@link PromptOptions}.
|
|
276
|
+
*/
|
|
236
277
|
prompt(message, opts) {
|
|
237
278
|
if (!this.options.prompt) {
|
|
238
279
|
throw new Error("prompt is not supported!");
|
|
239
280
|
}
|
|
240
281
|
return this.options.prompt(message, opts);
|
|
241
282
|
}
|
|
283
|
+
/**
|
|
284
|
+
* Creates a new instance of Consola, inheriting options from the current instance, with possible overrides.
|
|
285
|
+
*
|
|
286
|
+
* @param {Partial<ConsolaOptions>} options - Optional overrides for the new instance. See {@link ConsolaOptions}.
|
|
287
|
+
* @returns {ConsolaInstance} A new Consola instance. See {@link ConsolaInstance}.
|
|
288
|
+
*/
|
|
242
289
|
create(options) {
|
|
243
290
|
const instance = new Consola({
|
|
244
291
|
...this.options,
|
|
@@ -249,6 +296,12 @@ class Consola {
|
|
|
249
296
|
}
|
|
250
297
|
return instance;
|
|
251
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* Creates a new Consola instance with the specified default log object properties.
|
|
301
|
+
*
|
|
302
|
+
* @param {InputLogObject} defaults - Default properties to include in any log from the new instance. See {@link InputLogObject}.
|
|
303
|
+
* @returns {ConsolaInstance} A new Consola instance. See {@link ConsolaInstance}.
|
|
304
|
+
*/
|
|
252
305
|
withDefaults(defaults) {
|
|
253
306
|
return this.create({
|
|
254
307
|
...this.options,
|
|
@@ -258,19 +311,39 @@ class Consola {
|
|
|
258
311
|
}
|
|
259
312
|
});
|
|
260
313
|
}
|
|
314
|
+
/**
|
|
315
|
+
* Creates a new Consola instance with a specified tag, which will be included in every log.
|
|
316
|
+
*
|
|
317
|
+
* @param {string} tag - The tag to include in each log of the new instance.
|
|
318
|
+
* @returns {ConsolaInstance} A new Consola instance. See {@link ConsolaInstance}.
|
|
319
|
+
*/
|
|
261
320
|
withTag(tag) {
|
|
262
321
|
return this.withDefaults({
|
|
263
322
|
tag: this.options.defaults.tag ? this.options.defaults.tag + ":" + tag : tag
|
|
264
323
|
});
|
|
265
324
|
}
|
|
325
|
+
/**
|
|
326
|
+
* Adds a custom reporter to the Consola instance.
|
|
327
|
+
* Reporters will be called for each log message, depending on their implementation and log level.
|
|
328
|
+
*
|
|
329
|
+
* @param {ConsolaReporter} reporter - The reporter to add. See {@link ConsolaReporter}.
|
|
330
|
+
* @returns {Consola} The current Consola instance.
|
|
331
|
+
*/
|
|
266
332
|
addReporter(reporter) {
|
|
267
333
|
this.options.reporters.push(reporter);
|
|
268
334
|
return this;
|
|
269
335
|
}
|
|
336
|
+
/**
|
|
337
|
+
* Removes a custom reporter from the Consola instance.
|
|
338
|
+
* If no reporter is specified, all reporters will be removed.
|
|
339
|
+
*
|
|
340
|
+
* @param {ConsolaReporter} reporter - The reporter to remove. See {@link ConsolaReporter}.
|
|
341
|
+
* @returns {Consola} The current Consola instance.
|
|
342
|
+
*/
|
|
270
343
|
removeReporter(reporter) {
|
|
271
344
|
if (reporter) {
|
|
272
345
|
const i = this.options.reporters.indexOf(reporter);
|
|
273
|
-
if (i
|
|
346
|
+
if (i !== -1) {
|
|
274
347
|
return this.options.reporters.splice(i, 1);
|
|
275
348
|
}
|
|
276
349
|
} else {
|
|
@@ -278,6 +351,12 @@ class Consola {
|
|
|
278
351
|
}
|
|
279
352
|
return this;
|
|
280
353
|
}
|
|
354
|
+
/**
|
|
355
|
+
* Replaces all reporters of the Consola instance with the specified array of reporters.
|
|
356
|
+
*
|
|
357
|
+
* @param {ConsolaReporter[]} reporters - The new reporters to set. See {@link ConsolaReporter}.
|
|
358
|
+
* @returns {Consola} The current Consola instance.
|
|
359
|
+
*/
|
|
281
360
|
setReporters(reporters) {
|
|
282
361
|
this.options.reporters = Array.isArray(reporters) ? reporters : [reporters];
|
|
283
362
|
return this;
|
|
@@ -290,6 +369,9 @@ class Consola {
|
|
|
290
369
|
this.restoreConsole();
|
|
291
370
|
this.restoreStd();
|
|
292
371
|
}
|
|
372
|
+
/**
|
|
373
|
+
* Overrides console methods with Consola logging methods for consistent logging.
|
|
374
|
+
*/
|
|
293
375
|
wrapConsole() {
|
|
294
376
|
for (const type in this.options.types) {
|
|
295
377
|
if (!console["__" + type]) {
|
|
@@ -298,6 +380,9 @@ class Consola {
|
|
|
298
380
|
console[type] = this[type].raw;
|
|
299
381
|
}
|
|
300
382
|
}
|
|
383
|
+
/**
|
|
384
|
+
* Restores the original console methods, removing Consola overrides.
|
|
385
|
+
*/
|
|
301
386
|
restoreConsole() {
|
|
302
387
|
for (const type in this.options.types) {
|
|
303
388
|
if (console["__" + type]) {
|
|
@@ -306,6 +391,9 @@ class Consola {
|
|
|
306
391
|
}
|
|
307
392
|
}
|
|
308
393
|
}
|
|
394
|
+
/**
|
|
395
|
+
* Overrides standard output and error streams to redirect them through Consola.
|
|
396
|
+
*/
|
|
309
397
|
wrapStd() {
|
|
310
398
|
this._wrapStream(this.options.stdout, "log");
|
|
311
399
|
this._wrapStream(this.options.stderr, "log");
|
|
@@ -321,6 +409,9 @@ class Consola {
|
|
|
321
409
|
this[type].raw(String(data).trim());
|
|
322
410
|
};
|
|
323
411
|
}
|
|
412
|
+
/**
|
|
413
|
+
* Restores the original standard output and error streams, removing the Consola redirection.
|
|
414
|
+
*/
|
|
324
415
|
restoreStd() {
|
|
325
416
|
this._restoreStream(this.options.stdout);
|
|
326
417
|
this._restoreStream(this.options.stderr);
|
|
@@ -334,9 +425,15 @@ class Consola {
|
|
|
334
425
|
delete stream.__write;
|
|
335
426
|
}
|
|
336
427
|
}
|
|
428
|
+
/**
|
|
429
|
+
* Pauses logging, queues incoming logs until resumed.
|
|
430
|
+
*/
|
|
337
431
|
pauseLogs() {
|
|
338
432
|
paused = true;
|
|
339
433
|
}
|
|
434
|
+
/**
|
|
435
|
+
* Resumes logging, processing any queued logs.
|
|
436
|
+
*/
|
|
340
437
|
resumeLogs() {
|
|
341
438
|
paused = false;
|
|
342
439
|
const _queue = queue.splice(0);
|
|
@@ -344,6 +441,11 @@ class Consola {
|
|
|
344
441
|
item[0]._logFn(item[1], item[2]);
|
|
345
442
|
}
|
|
346
443
|
}
|
|
444
|
+
/**
|
|
445
|
+
* Replaces logging methods with mocks if a mock function is provided.
|
|
446
|
+
*
|
|
447
|
+
* @param {ConsolaOptions["mockFn"]} mockFn - The function to use for mocking logging methods. See {@link ConsolaOptions["mockFn"]}.
|
|
448
|
+
*/
|
|
347
449
|
mockTypes(mockFn) {
|
|
348
450
|
const _mockFn = mockFn || this.options.mockFn;
|
|
349
451
|
this._mockFn = _mockFn;
|
|
@@ -443,13 +545,13 @@ class Consola {
|
|
|
443
545
|
}
|
|
444
546
|
}
|
|
445
547
|
function _normalizeLogLevel(input, types = {}, defaultLevel = 3) {
|
|
446
|
-
if (input ===
|
|
548
|
+
if (input === undefined) {
|
|
447
549
|
return defaultLevel;
|
|
448
550
|
}
|
|
449
551
|
if (typeof input === "number") {
|
|
450
552
|
return input;
|
|
451
553
|
}
|
|
452
|
-
if (types[input] && types[input].level !==
|
|
554
|
+
if (types[input] && types[input].level !== undefined) {
|
|
453
555
|
return types[input].level;
|
|
454
556
|
}
|
|
455
557
|
return defaultLevel;
|
|
@@ -466,6 +568,10 @@ function createConsola$1(options = {}) {
|
|
|
466
568
|
}
|
|
467
569
|
|
|
468
570
|
class BrowserReporter {
|
|
571
|
+
options;
|
|
572
|
+
defaultColor;
|
|
573
|
+
levelColorMap;
|
|
574
|
+
typeColorMap;
|
|
469
575
|
constructor(options) {
|
|
470
576
|
this.options = { ...options };
|
|
471
577
|
this.defaultColor = "#7f8c8d";
|
|
@@ -534,7 +640,7 @@ function createConsola(options = {}) {
|
|
|
534
640
|
const consola = createConsola();
|
|
535
641
|
|
|
536
642
|
const name = "@sfxcode/nuxt-mongocamp-server";
|
|
537
|
-
const version = "1.2.
|
|
643
|
+
const version = "1.2.4";
|
|
538
644
|
|
|
539
645
|
const module = defineNuxtModule({
|
|
540
646
|
meta: {
|
|
@@ -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.5.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.10
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.5.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.10
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,6 +14,9 @@ import type { JsonValueAny, JsonValueBoolean, MongoCampConfiguration, SettingsRe
|
|
|
14
14
|
export interface GetConfigRequest {
|
|
15
15
|
configurationKey: string;
|
|
16
16
|
}
|
|
17
|
+
export interface ShutdownRequest {
|
|
18
|
+
force?: boolean;
|
|
19
|
+
}
|
|
17
20
|
export interface UpdateConfigurationRequest {
|
|
18
21
|
configurationKey: string;
|
|
19
22
|
jsonValueAny: JsonValueAny;
|
|
@@ -52,6 +55,16 @@ export declare class ApplicationApi extends runtime.BaseAPI {
|
|
|
52
55
|
* System Settings
|
|
53
56
|
*/
|
|
54
57
|
settings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SettingsResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Shutdown the running MongoCamp Application. CLI Mode will automatically restart the Application.
|
|
60
|
+
* Shutdown MongoCamp
|
|
61
|
+
*/
|
|
62
|
+
shutdownRaw(requestParameters: ShutdownRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
|
|
63
|
+
/**
|
|
64
|
+
* Shutdown the running MongoCamp Application. CLI Mode will automatically restart the Application.
|
|
65
|
+
* Shutdown MongoCamp
|
|
66
|
+
*/
|
|
67
|
+
shutdown(requestParameters?: ShutdownRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
55
68
|
/**
|
|
56
69
|
* Update Configuration with the value
|
|
57
70
|
* Update Configuration
|
|
@@ -120,6 +120,45 @@ export class ApplicationApi extends runtime.BaseAPI {
|
|
|
120
120
|
const response = await this.settingsRaw(initOverrides);
|
|
121
121
|
return await response.value();
|
|
122
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* Shutdown the running MongoCamp Application. CLI Mode will automatically restart the Application.
|
|
125
|
+
* Shutdown MongoCamp
|
|
126
|
+
*/
|
|
127
|
+
async shutdownRaw(requestParameters, initOverrides) {
|
|
128
|
+
const queryParameters = {};
|
|
129
|
+
if (requestParameters["force"] != null) {
|
|
130
|
+
queryParameters["force"] = requestParameters["force"];
|
|
131
|
+
}
|
|
132
|
+
const headerParameters = {};
|
|
133
|
+
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
134
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
135
|
+
}
|
|
136
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
137
|
+
const token = this.configuration.accessToken;
|
|
138
|
+
const tokenString = await token("httpAuth", []);
|
|
139
|
+
if (tokenString) {
|
|
140
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
144
|
+
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
145
|
+
}
|
|
146
|
+
const response = await this.request({
|
|
147
|
+
path: `/system`,
|
|
148
|
+
method: "DELETE",
|
|
149
|
+
headers: headerParameters,
|
|
150
|
+
query: queryParameters
|
|
151
|
+
}, initOverrides);
|
|
152
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Shutdown the running MongoCamp Application. CLI Mode will automatically restart the Application.
|
|
156
|
+
* Shutdown MongoCamp
|
|
157
|
+
*/
|
|
158
|
+
async shutdown(requestParameters = {}, initOverrides) {
|
|
159
|
+
const response = await this.shutdownRaw(requestParameters, initOverrides);
|
|
160
|
+
return await response.value();
|
|
161
|
+
}
|
|
123
162
|
/**
|
|
124
163
|
* Update Configuration with the value
|
|
125
164
|
* Update Configuration
|
|
@@ -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.5.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.10
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.5.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.10
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.5.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.10
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -47,7 +47,7 @@ export interface GetSchemaAnalysisRequest {
|
|
|
47
47
|
sampleSize?: number;
|
|
48
48
|
deepth?: number;
|
|
49
49
|
}
|
|
50
|
-
export interface
|
|
50
|
+
export interface ListCollectionsByDatabase0Request {
|
|
51
51
|
databaseName: string;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
@@ -152,10 +152,10 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
152
152
|
* List of all Collections of the given database
|
|
153
153
|
* List of Collections
|
|
154
154
|
*/
|
|
155
|
-
listCollectionsByDatabaseRaw(requestParameters:
|
|
155
|
+
listCollectionsByDatabaseRaw(requestParameters: ListCollectionsByDatabase0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>>;
|
|
156
156
|
/**
|
|
157
157
|
* List of all Collections of the given database
|
|
158
158
|
* List of Collections
|
|
159
159
|
*/
|
|
160
|
-
listCollectionsByDatabase(requestParameters:
|
|
160
|
+
listCollectionsByDatabase(requestParameters: ListCollectionsByDatabase0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
161
161
|
}
|
|
@@ -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.5.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.10
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.5.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.10
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.5.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.10
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.5.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.10
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.5.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.10
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.5.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.10
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.5.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.10
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -46,4 +46,5 @@ export interface BucketInformation {
|
|
|
46
46
|
export declare function instanceOfBucketInformation(value: object): value is BucketInformation;
|
|
47
47
|
export declare function BucketInformationFromJSON(json: any): BucketInformation;
|
|
48
48
|
export declare function BucketInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): BucketInformation;
|
|
49
|
-
export declare function BucketInformationToJSON(
|
|
49
|
+
export declare function BucketInformationToJSON(json: any): BucketInformation;
|
|
50
|
+
export declare function BucketInformationToJSONTyped(value?: BucketInformation | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -19,7 +19,10 @@ export function BucketInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
19
|
"avgObjectSize": json["avgObjectSize"]
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
export function BucketInformationToJSON(
|
|
22
|
+
export function BucketInformationToJSON(json) {
|
|
23
|
+
return BucketInformationToJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function BucketInformationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
23
26
|
if (value == null) {
|
|
24
27
|
return value;
|
|
25
28
|
}
|
|
@@ -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.5.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.10
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -104,4 +104,5 @@ export interface CollectionStatus {
|
|
|
104
104
|
export declare function instanceOfCollectionStatus(value: object): value is CollectionStatus;
|
|
105
105
|
export declare function CollectionStatusFromJSON(json: any): CollectionStatus;
|
|
106
106
|
export declare function CollectionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionStatus;
|
|
107
|
-
export declare function CollectionStatusToJSON(
|
|
107
|
+
export declare function CollectionStatusToJSON(json: any): CollectionStatus;
|
|
108
|
+
export declare function CollectionStatusToJSONTyped(value?: CollectionStatus | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -37,7 +37,10 @@ export function CollectionStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
"map": json["map"]
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
export function CollectionStatusToJSON(
|
|
40
|
+
export function CollectionStatusToJSON(json) {
|
|
41
|
+
return CollectionStatusToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function CollectionStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
44
|
if (value == null) {
|
|
42
45
|
return value;
|
|
43
46
|
}
|
|
@@ -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.5.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.10
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -54,4 +54,5 @@ export interface DatabaseInfo {
|
|
|
54
54
|
export declare function instanceOfDatabaseInfo(value: object): value is DatabaseInfo;
|
|
55
55
|
export declare function DatabaseInfoFromJSON(json: any): DatabaseInfo;
|
|
56
56
|
export declare function DatabaseInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatabaseInfo;
|
|
57
|
-
export declare function DatabaseInfoToJSON(
|
|
57
|
+
export declare function DatabaseInfoToJSON(json: any): DatabaseInfo;
|
|
58
|
+
export declare function DatabaseInfoToJSONTyped(value?: DatabaseInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -21,7 +21,10 @@ export function DatabaseInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21
21
|
"map": json["map"]
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
export function DatabaseInfoToJSON(
|
|
24
|
+
export function DatabaseInfoToJSON(json) {
|
|
25
|
+
return DatabaseInfoToJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function DatabaseInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
25
28
|
if (value == null) {
|
|
26
29
|
return value;
|
|
27
30
|
}
|
|
@@ -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.5.
|
|
5
|
+
* The version of the OpenAPI document: 1.5.10
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,4 +34,5 @@ export interface DeleteResponse {
|
|
|
34
34
|
export declare function instanceOfDeleteResponse(value: object): value is DeleteResponse;
|
|
35
35
|
export declare function DeleteResponseFromJSON(json: any): DeleteResponse;
|
|
36
36
|
export declare function DeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteResponse;
|
|
37
|
-
export declare function DeleteResponseToJSON(
|
|
37
|
+
export declare function DeleteResponseToJSON(json: any): DeleteResponse;
|
|
38
|
+
export declare function DeleteResponseToJSONTyped(value?: DeleteResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -15,7 +15,10 @@ export function DeleteResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
15
|
"deletedCount": json["deletedCount"]
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
export function DeleteResponseToJSON(
|
|
18
|
+
export function DeleteResponseToJSON(json) {
|
|
19
|
+
return DeleteResponseToJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
export function DeleteResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
19
22
|
if (value == null) {
|
|
20
23
|
return value;
|
|
21
24
|
}
|