@sfxcode/nuxt-mongocamp-server 1.5.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/api/.openapi-generator/FILES +6 -2
- package/dist/runtime/api/apis/AdminApi.d.ts +1 -1
- package/dist/runtime/api/apis/ApplicationApi.d.ts +1 -1
- package/dist/runtime/api/apis/AuthApi.d.ts +3 -3
- package/dist/runtime/api/apis/AuthApi.js +2 -2
- package/dist/runtime/api/apis/BucketApi.d.ts +1 -1
- package/dist/runtime/api/apis/CollectionApi.d.ts +7 -7
- package/dist/runtime/api/apis/CollectionApi.js +2 -2
- package/dist/runtime/api/apis/DatabaseApi.d.ts +1 -1
- package/dist/runtime/api/apis/DocumentApi.d.ts +14 -12
- package/dist/runtime/api/apis/DocumentApi.js +6 -0
- 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/JobsApi.d.ts +1 -1
- package/dist/runtime/api/apis/{InformationApi.d.ts → SystemApi.d.ts} +17 -3
- package/dist/runtime/api/apis/SystemApi.js +82 -0
- package/dist/runtime/api/apis/index.d.ts +1 -1
- package/dist/runtime/api/apis/index.js +1 -1
- package/dist/runtime/api/docs/AdminApi.md +2 -2
- package/dist/runtime/api/docs/AuthApi.md +1 -1
- package/dist/runtime/api/docs/ClusterInformation.md +36 -0
- package/dist/runtime/api/docs/ClusterMemberInformation.md +42 -0
- package/dist/runtime/api/docs/CollectionApi.md +5 -5
- package/dist/runtime/api/docs/CollectionStatus.md +1 -1
- package/dist/runtime/api/docs/DatabaseInfo.md +1 -1
- package/dist/runtime/api/docs/DocumentApi.md +28 -22
- package/dist/runtime/api/docs/FileApi.md +2 -2
- package/dist/runtime/api/docs/FileInformation.md +1 -1
- package/dist/runtime/api/docs/IndexApi.md +2 -2
- package/dist/runtime/api/docs/JsonSchemaDefinition.md +1 -1
- package/dist/runtime/api/docs/JsonValueAny.md +1 -1
- package/dist/runtime/api/docs/MongoCampConfiguration.md +1 -1
- package/dist/runtime/api/docs/MongoFindRequest.md +3 -3
- package/dist/runtime/api/docs/MongoIndex.md +3 -3
- package/dist/runtime/api/docs/PipelineStage.md +1 -1
- package/dist/runtime/api/docs/SettingsResponse.md +1 -1
- package/dist/runtime/api/docs/SystemApi.md +139 -0
- package/dist/runtime/api/docs/UpdateFileInformationRequest.md +1 -1
- package/dist/runtime/api/docs/UpdateRequest.md +2 -2
- package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
- package/dist/runtime/api/models/ClusterInformation.d.ts +39 -0
- package/dist/runtime/api/models/ClusterInformation.js +32 -0
- package/dist/runtime/api/models/ClusterMemberInformation.d.ts +56 -0
- package/dist/runtime/api/models/ClusterMemberInformation.js +38 -0
- package/dist/runtime/api/models/CollectionStatus.d.ts +3 -3
- package/dist/runtime/api/models/DatabaseInfo.d.ts +3 -3
- 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/FileInformation.d.ts +3 -3
- package/dist/runtime/api/models/Grant.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/IndexOptionsRequest.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 +2 -2
- package/dist/runtime/api/models/JobInformation.js +1 -2
- package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +3 -3
- package/dist/runtime/api/models/JsonValueAny.d.ts +3 -3
- 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 +3 -3
- package/dist/runtime/api/models/MongoFindRequest.d.ts +7 -7
- package/dist/runtime/api/models/MongoIndex.d.ts +7 -7
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
- package/dist/runtime/api/models/PipelineStage.d.ts +3 -3
- 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/SettingsResponse.d.ts +3 -3
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +3 -3
- package/dist/runtime/api/models/UpdateRequest.d.ts +5 -5
- 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/models/index.d.ts +2 -0
- package/dist/runtime/api/models/index.js +2 -0
- package/dist/runtime/api/runtime.d.ts +1 -1
- package/dist/runtime/composables/mongocampApi.d.ts +1 -1
- package/dist/runtime/composables/mongocampApiCollection.d.ts +2 -2
- package/dist/runtime/composables/mongocampSearch.d.ts +3 -3
- package/dist/runtime/composables/mongocampStorage.d.ts +1 -1
- package/dist/runtime/server/composables/mongocampApi.d.ts +1 -1
- package/dist/runtime/server/composables/mongocampServerApi.d.ts +1 -1
- package/dist/runtime/utils/createMongocampApis.d.ts +2 -2
- package/dist/runtime/utils/createMongocampApis.js +2 -2
- package/package.json +13 -13
- package/dist/runtime/api/apis/InformationApi.js +0 -37
|
@@ -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
|
+
* The version of the OpenAPI document: 1.6.3
|
|
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
|
+
* The version of the OpenAPI document: 1.6.3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -8,6 +8,6 @@ export declare function useMongocampApi(): {
|
|
|
8
8
|
documentApi: import("../api/index.js").DocumentApi;
|
|
9
9
|
fileApi: import("../api/index.js").FileApi;
|
|
10
10
|
indexApi: import("../api/index.js").IndexApi;
|
|
11
|
-
|
|
11
|
+
systemApi: import("../api/index.js").SystemApi;
|
|
12
12
|
jobApi: import("../api/index.js").JobsApi;
|
|
13
13
|
};
|
|
@@ -17,10 +17,10 @@ export declare function useMongocampApiCollection(collectionName: string): {
|
|
|
17
17
|
[key: string]: string;
|
|
18
18
|
}) => Promise<import("../api/index.js").DeleteResponse>;
|
|
19
19
|
aggregate: (mongoAggregateRequest: MongoAggregateRequest, rowsPerPage?: number, page?: number) => Promise<{
|
|
20
|
-
[key: string]:
|
|
20
|
+
[key: string]: any;
|
|
21
21
|
}[]>;
|
|
22
22
|
information: (includeDetails?: boolean) => Promise<import("../api/index.js").CollectionStatus>;
|
|
23
23
|
schemaAnalysis: () => Promise<import("../api/index.js").SchemaAnalysis>;
|
|
24
|
-
distinct: (field: string) => Promise<
|
|
24
|
+
distinct: (field: string) => Promise<any[]>;
|
|
25
25
|
clear: () => Promise<import("../api/index.js").JsonValueBoolean>;
|
|
26
26
|
};
|
|
@@ -4,13 +4,13 @@ export declare function useMongocampSearch(): {
|
|
|
4
4
|
mongoFindRequest: (filter?: object, sort?: object, projection?: object) => MongoFindRequest;
|
|
5
5
|
findRequest: (collection: string, searchParameter?: MongoFindRequest, rows?: number, actualPage?: number) => FindRequest;
|
|
6
6
|
find: (collectionName: string, filter: string | undefined, page?: number, sort?: string[] | undefined, projection?: string[] | undefined, rowsPerPage?: number) => Promise<{
|
|
7
|
-
[key: string]:
|
|
7
|
+
[key: string]: any;
|
|
8
8
|
}[]>;
|
|
9
9
|
findAll: (collectionName: string, page?: number, sort?: string[] | undefined, projection?: string[] | undefined, rowsPerPage?: number) => Promise<{
|
|
10
|
-
[key: string]:
|
|
10
|
+
[key: string]: any;
|
|
11
11
|
}[]>;
|
|
12
12
|
findByField: (collectionName: string, field: string, value: FilterFieldValue, page?: number, sort?: string[] | undefined, projection?: string[] | undefined, rowsPerPage?: number) => Promise<{
|
|
13
|
-
[key: string]:
|
|
13
|
+
[key: string]: any;
|
|
14
14
|
}[]>;
|
|
15
15
|
};
|
|
16
16
|
export interface PaginatedFindOptions {
|
|
@@ -9,6 +9,6 @@ export declare function useMongocampApi(event: H3Event, token?: string): {
|
|
|
9
9
|
documentApi: import("../../api/index.js").DocumentApi;
|
|
10
10
|
fileApi: import("../../api/index.js").FileApi;
|
|
11
11
|
indexApi: import("../../api/index.js").IndexApi;
|
|
12
|
-
|
|
12
|
+
systemApi: import("../../api/index.js").SystemApi;
|
|
13
13
|
jobApi: import("../../api/index.js").JobsApi;
|
|
14
14
|
};
|
|
@@ -8,6 +8,6 @@ export declare function useMongocampServerApi(url: string, key?: string, token?:
|
|
|
8
8
|
documentApi: import("../../api/index.js").DocumentApi;
|
|
9
9
|
fileApi: import("../../api/index.js").FileApi;
|
|
10
10
|
indexApi: import("../../api/index.js").IndexApi;
|
|
11
|
-
|
|
11
|
+
systemApi: import("../../api/index.js").SystemApi;
|
|
12
12
|
jobApi: import("../../api/index.js").JobsApi;
|
|
13
13
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Configuration } from '../api/index.js';
|
|
2
|
-
import { AdminApi, ApplicationApi, AuthApi, BucketApi, CollectionApi, DatabaseApi, DocumentApi, FileApi, IndexApi,
|
|
2
|
+
import { AdminApi, ApplicationApi, AuthApi, BucketApi, CollectionApi, DatabaseApi, DocumentApi, FileApi, IndexApi, SystemApi, JobsApi } from '../api/index.js';
|
|
3
3
|
export declare function createMongocampApis(configuration: Configuration): {
|
|
4
4
|
adminApi: AdminApi;
|
|
5
5
|
applicationApi: ApplicationApi;
|
|
@@ -10,6 +10,6 @@ export declare function createMongocampApis(configuration: Configuration): {
|
|
|
10
10
|
documentApi: DocumentApi;
|
|
11
11
|
fileApi: FileApi;
|
|
12
12
|
indexApi: IndexApi;
|
|
13
|
-
|
|
13
|
+
systemApi: SystemApi;
|
|
14
14
|
jobApi: JobsApi;
|
|
15
15
|
};
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
DocumentApi,
|
|
9
9
|
FileApi,
|
|
10
10
|
IndexApi,
|
|
11
|
-
|
|
11
|
+
SystemApi,
|
|
12
12
|
JobsApi
|
|
13
13
|
} from "../api/index.js";
|
|
14
14
|
export function createMongocampApis(configuration) {
|
|
@@ -22,7 +22,7 @@ export function createMongocampApis(configuration) {
|
|
|
22
22
|
documentApi: new DocumentApi(configuration),
|
|
23
23
|
fileApi: new FileApi(configuration),
|
|
24
24
|
indexApi: new IndexApi(configuration),
|
|
25
|
-
|
|
25
|
+
systemApi: new SystemApi(configuration),
|
|
26
26
|
jobApi: new JobsApi(configuration)
|
|
27
27
|
};
|
|
28
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/nuxt-mongocamp-server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -43,24 +43,24 @@
|
|
|
43
43
|
"api-codegen": "openapi-generator-cli generate -i ./openapi/docs.yaml -g typescript-fetch -o src/runtime/api --additional-properties=typescriptThreePlus=true,supportsES6=true"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@nuxt/kit": "^4.
|
|
47
|
-
"@vueuse/nuxt": "^
|
|
46
|
+
"@nuxt/kit": "^4.6.3",
|
|
47
|
+
"@vueuse/nuxt": "^15.0.0",
|
|
48
48
|
"consola": "^3.4.2",
|
|
49
49
|
"defu": "^6.1.7"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@nuxt/devtools": "4.0.0
|
|
53
|
-
"@nuxt/eslint-config": "^1.
|
|
52
|
+
"@nuxt/devtools": "^4.0.0",
|
|
53
|
+
"@nuxt/eslint-config": "^1.17.0",
|
|
54
54
|
"@nuxt/module-builder": "^1.0.3",
|
|
55
|
-
"@nuxt/schema": "^4.
|
|
56
|
-
"@nuxt/test-utils": "^4.
|
|
57
|
-
"@openapitools/openapi-generator-cli": "^2.
|
|
58
|
-
"@types/node": "^26.
|
|
59
|
-
"@unocss/nuxt": "66.
|
|
55
|
+
"@nuxt/schema": "^4.6.3",
|
|
56
|
+
"@nuxt/test-utils": "^4.3.4",
|
|
57
|
+
"@openapitools/openapi-generator-cli": "^2.42.0",
|
|
58
|
+
"@types/node": "^26.6.6",
|
|
59
|
+
"@unocss/nuxt": "^66.12.0",
|
|
60
60
|
"changelogen": "^0.6.2",
|
|
61
|
-
"eslint": "^10.
|
|
62
|
-
"nuxt": "^4.
|
|
63
|
-
"vitest": "^
|
|
61
|
+
"eslint": "^10.14.0",
|
|
62
|
+
"nuxt": "^4.6.3",
|
|
63
|
+
"vitest": "^5.0.5"
|
|
64
64
|
},
|
|
65
65
|
"packageManager": "pnpm@10.30.0+sha512.2b5753de015d480eeb88f5b5b61e0051f05b4301808a82ec8b840c9d2adf7748eb352c83f5c1593ca703ff1017295bc3fdd3119abb9686efc96b9fcb18200937"
|
|
66
66
|
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import * as runtime from "../runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
VersionFromJSON
|
|
4
|
-
} from "../models/index.js";
|
|
5
|
-
export class InformationApi extends runtime.BaseAPI {
|
|
6
|
-
/**
|
|
7
|
-
* Creates request options for version without sending the request
|
|
8
|
-
*/
|
|
9
|
-
async versionRequestOpts() {
|
|
10
|
-
const queryParameters = {};
|
|
11
|
-
const headerParameters = {};
|
|
12
|
-
let urlPath = `/version`;
|
|
13
|
-
return {
|
|
14
|
-
path: urlPath,
|
|
15
|
-
method: "GET",
|
|
16
|
-
headers: headerParameters,
|
|
17
|
-
query: queryParameters
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Version Info of the MongoCamp API
|
|
22
|
-
* Version Information
|
|
23
|
-
*/
|
|
24
|
-
async versionRaw(initOverrides) {
|
|
25
|
-
const requestOptions = await this.versionRequestOpts();
|
|
26
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
27
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => VersionFromJSON(jsonValue));
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Version Info of the MongoCamp API
|
|
31
|
-
* Version Information
|
|
32
|
-
*/
|
|
33
|
-
async version(initOverrides) {
|
|
34
|
-
const response = await this.versionRaw(initOverrides);
|
|
35
|
-
return await response.value();
|
|
36
|
-
}
|
|
37
|
-
}
|