@sfxcode/nuxt-mongocamp-server 1.5.1 → 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/README.md +3 -3
- package/dist/module.d.mts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +5 -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/mongocampApi.js +16 -1
- package/dist/runtime/composables/mongocampApiCollection.d.ts +2 -2
- package/dist/runtime/composables/mongocampAuth.js +1 -6
- package/dist/runtime/composables/mongocampSearch.d.ts +3 -3
- package/dist/runtime/composables/mongocampStorage.d.ts +1 -1
- package/dist/runtime/composables/mongocampStorage.js +3 -1
- package/dist/runtime/composables/mongocampUser.d.ts +2 -2
- package/dist/runtime/composables/mongocampUser.js +4 -2
- 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).
|
|
@@ -23,11 +23,11 @@ export interface UpdateFileInformationRequest {
|
|
|
23
23
|
filename?: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {{ [key: string]:
|
|
26
|
+
* @type {{ [key: string]: any; }}
|
|
27
27
|
* @memberof UpdateFileInformationRequest
|
|
28
28
|
*/
|
|
29
29
|
metadata?: {
|
|
30
|
-
[key: string]:
|
|
30
|
+
[key: string]: any;
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
@@ -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).
|
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
export interface UpdateRequest {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
|
-
* @type {{ [key: string]:
|
|
20
|
+
* @type {{ [key: string]: any; }}
|
|
21
21
|
* @memberof UpdateRequest
|
|
22
22
|
*/
|
|
23
23
|
document: {
|
|
24
|
-
[key: string]:
|
|
24
|
+
[key: string]: any;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
|
-
* @type {{ [key: string]:
|
|
28
|
+
* @type {{ [key: string]: any; }}
|
|
29
29
|
* @memberof UpdateRequest
|
|
30
30
|
*/
|
|
31
31
|
filter: {
|
|
32
|
-
[key: string]:
|
|
32
|
+
[key: string]: any;
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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
|
};
|
|
@@ -5,6 +5,21 @@ import { useMongocampStorage } from "./mongocampStorage.js";
|
|
|
5
5
|
export function useMongocampApi() {
|
|
6
6
|
const url = useMongocampUrl();
|
|
7
7
|
const state = useMongocampStorage();
|
|
8
|
-
const configuration = new Configuration({
|
|
8
|
+
const configuration = new Configuration({
|
|
9
|
+
basePath: url,
|
|
10
|
+
accessToken: () => state.value.token,
|
|
11
|
+
middleware: [{
|
|
12
|
+
// a 401 means the token itself is invalid/expired, so clear it everywhere.
|
|
13
|
+
// a 403 is left alone here — it usually means "authenticated but missing a grant
|
|
14
|
+
// for this specific action", not "the session is dead".
|
|
15
|
+
post: async ({ response }) => {
|
|
16
|
+
if (response.status === 401 && state.value.token) {
|
|
17
|
+
state.value.token = "";
|
|
18
|
+
state.value.profile = { user: "", isAdmin: false };
|
|
19
|
+
}
|
|
20
|
+
return response;
|
|
21
|
+
}
|
|
22
|
+
}]
|
|
23
|
+
});
|
|
9
24
|
return createMongocampApis(configuration);
|
|
10
25
|
}
|
|
@@ -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
|
};
|
|
@@ -3,7 +3,6 @@ import { consola } from "consola";
|
|
|
3
3
|
import { toMongocampError } from "../utils/toMongocampError.js";
|
|
4
4
|
import { useMongocampApi } from "./mongocampApi.js";
|
|
5
5
|
import { useMongocampStorage } from "./mongocampStorage.js";
|
|
6
|
-
import { useMongocampUser } from "./mongocampUser.js";
|
|
7
6
|
import { useRuntimeConfig, useState } from "#app";
|
|
8
7
|
export function useMongocampAuth() {
|
|
9
8
|
const config = useRuntimeConfig();
|
|
@@ -11,7 +10,6 @@ export function useMongocampAuth() {
|
|
|
11
10
|
const tokenRefreshInterval = config.public.mongocamp?.tokenRefreshInterval;
|
|
12
11
|
const state = useMongocampStorage();
|
|
13
12
|
const { authApi } = useMongocampApi();
|
|
14
|
-
const user = useMongocampUser();
|
|
15
13
|
const updateTokenInterval = useState("mongocamp.tokenRefreshInterval", () => void 0);
|
|
16
14
|
function startTokenRefresh() {
|
|
17
15
|
if (import.meta.client && refreshToken && !updateTokenInterval.value)
|
|
@@ -40,7 +38,6 @@ export function useMongocampAuth() {
|
|
|
40
38
|
function updateUserState(result) {
|
|
41
39
|
state.value.token = result.authToken;
|
|
42
40
|
state.value.profile = result.userProfile;
|
|
43
|
-
user.value = result.userProfile;
|
|
44
41
|
}
|
|
45
42
|
const login = async (loginId, loginPassword) => {
|
|
46
43
|
logout();
|
|
@@ -53,9 +50,7 @@ export function useMongocampAuth() {
|
|
|
53
50
|
if (state.value.token)
|
|
54
51
|
authApi.logout().catch((e) => consola.error(e));
|
|
55
52
|
state.value.token = "";
|
|
56
|
-
|
|
57
|
-
state.value.profile = profile;
|
|
58
|
-
user.value = profile;
|
|
53
|
+
state.value.profile = { user: "", isAdmin: false };
|
|
59
54
|
};
|
|
60
55
|
const isLoggedIn = computed(() => (state.value.token?.length ?? 0) > 0);
|
|
61
56
|
if (import.meta.client) {
|
|
@@ -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 {
|
|
@@ -3,6 +3,8 @@ export function useMongocampStorage() {
|
|
|
3
3
|
const config = useRuntimeConfig();
|
|
4
4
|
return useCookie("mongocamp-session", {
|
|
5
5
|
default: () => ({ token: "", profile: { user: "", isAdmin: false } }),
|
|
6
|
-
maxAge: config.public.mongocamp?.sessionMaxAge ?? 60 * 60 * 24 * 30
|
|
6
|
+
maxAge: config.public.mongocamp?.sessionMaxAge ?? 60 * 60 * 24 * 30,
|
|
7
|
+
sameSite: "lax",
|
|
8
|
+
secure: !import.meta.dev
|
|
7
9
|
});
|
|
8
10
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComputedRef } from 'vue';
|
|
2
2
|
import type { UserProfile } from '../api/index.js';
|
|
3
|
-
export declare function useMongocampUser():
|
|
3
|
+
export declare function useMongocampUser(): ComputedRef<UserProfile>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed } from "vue";
|
|
2
|
+
import { useMongocampStorage } from "./mongocampStorage.js";
|
|
2
3
|
export function useMongocampUser() {
|
|
3
|
-
|
|
4
|
+
const state = useMongocampStorage();
|
|
5
|
+
return computed(() => state.value.profile);
|
|
4
6
|
}
|
|
@@ -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
|
-
}
|