@sfxcode/nuxt-mongocamp-server 1.2.0 → 1.2.2
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 +1 -1
- package/dist/module.json +5 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/api/apis/AdminApi.d.ts +2 -2
- package/dist/runtime/api/apis/{AdminApi.mjs → AdminApi.js} +101 -65
- package/dist/runtime/api/apis/ApplicationApi.d.ts +2 -2
- package/dist/runtime/api/apis/{ApplicationApi.mjs → ApplicationApi.js} +24 -15
- package/dist/runtime/api/apis/AuthApi.d.ts +2 -2
- package/dist/runtime/api/apis/{AuthApi.mjs → AuthApi.js} +21 -15
- package/dist/runtime/api/apis/BucketApi.d.ts +2 -2
- package/dist/runtime/api/apis/{BucketApi.mjs → BucketApi.js} +24 -15
- package/dist/runtime/api/apis/CollectionApi.d.ts +2 -2
- package/dist/runtime/api/apis/{CollectionApi.mjs → CollectionApi.js} +99 -66
- package/dist/runtime/api/apis/DatabaseApi.d.ts +2 -2
- package/dist/runtime/api/apis/{DatabaseApi.mjs → DatabaseApi.js} +25 -16
- package/dist/runtime/api/apis/DocumentApi.d.ts +6 -6
- package/dist/runtime/api/apis/{DocumentApi.mjs → DocumentApi.js} +153 -93
- package/dist/runtime/api/apis/FileApi.d.ts +2 -2
- package/dist/runtime/api/apis/{FileApi.mjs → FileApi.js} +121 -76
- package/dist/runtime/api/apis/IndexApi.d.ts +2 -2
- package/dist/runtime/api/apis/{IndexApi.mjs → IndexApi.js} +119 -71
- package/dist/runtime/api/apis/InformationApi.d.ts +2 -2
- package/dist/runtime/api/apis/{InformationApi.mjs → InformationApi.js} +2 -2
- package/dist/runtime/api/apis/JobsApi.d.ts +2 -2
- package/dist/runtime/api/apis/{JobsApi.mjs → JobsApi.js} +53 -29
- package/dist/runtime/api/apis/index.d.ts +11 -11
- package/dist/runtime/api/apis/index.js +11 -0
- package/dist/runtime/api/index.d.ts +3 -3
- package/dist/runtime/api/index.js +3 -0
- package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
- package/dist/runtime/api/models/BucketInformation.js +32 -0
- package/dist/runtime/api/models/CollectionStatus.d.ts +3 -3
- package/dist/runtime/api/models/CollectionStatus.js +59 -0
- package/dist/runtime/api/models/DatabaseInfo.d.ts +2 -2
- package/dist/runtime/api/models/DatabaseInfo.js +35 -0
- package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
- package/dist/runtime/api/models/{DeleteResponse.mjs → DeleteResponse.js} +8 -12
- package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
- package/dist/runtime/api/models/{ErrorDescription.mjs → ErrorDescription.js} +10 -14
- package/dist/runtime/api/models/FileInformation.d.ts +2 -2
- package/dist/runtime/api/models/FileInformation.js +38 -0
- package/dist/runtime/api/models/Grant.d.ts +1 -1
- package/dist/runtime/api/models/Grant.js +35 -0
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +3 -3
- package/dist/runtime/api/models/IndexCreateRequest.js +29 -0
- package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
- package/dist/runtime/api/models/{IndexCreateResponse.mjs → IndexCreateResponse.js} +6 -10
- package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
- package/dist/runtime/api/models/{IndexDropResponse.mjs → IndexDropResponse.js} +6 -10
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +1 -1
- package/dist/runtime/api/models/IndexOptionsRequest.js +36 -0
- package/dist/runtime/api/models/InsertResponse.d.ts +1 -1
- package/dist/runtime/api/models/InsertResponse.js +25 -0
- package/dist/runtime/api/models/JobConfig.d.ts +1 -1
- package/dist/runtime/api/models/JobConfig.js +38 -0
- package/dist/runtime/api/models/JobInformation.d.ts +1 -1
- package/dist/runtime/api/models/JobInformation.js +44 -0
- package/dist/runtime/api/models/JsonSchema.d.ts +3 -3
- package/dist/runtime/api/models/JsonSchema.js +34 -0
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +2 -2
- package/dist/runtime/api/models/JsonSchemaDefinition.js +34 -0
- package/dist/runtime/api/models/JsonValueAny.d.ts +1 -1
- package/dist/runtime/api/models/{JsonValueAny.mjs → JsonValueAny.js} +6 -10
- package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
- package/dist/runtime/api/models/{JsonValueBoolean.mjs → JsonValueBoolean.js} +6 -10
- package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
- package/dist/runtime/api/models/{JsonValueString.mjs → JsonValueString.js} +6 -10
- package/dist/runtime/api/models/Login.d.ts +1 -1
- package/dist/runtime/api/models/{Login.mjs → Login.js} +8 -12
- package/dist/runtime/api/models/LoginResult.d.ts +2 -2
- package/dist/runtime/api/models/{LoginResult.mjs → LoginResult.js} +11 -15
- package/dist/runtime/api/models/MongoAggregateRequest.d.ts +2 -2
- package/dist/runtime/api/models/MongoAggregateRequest.js +29 -0
- package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -1
- package/dist/runtime/api/models/MongoCampConfiguration.js +35 -0
- package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -4
- package/dist/runtime/api/models/{MongoFindRequest.mjs → MongoFindRequest.js} +10 -14
- package/dist/runtime/api/models/MongoIndex.d.ts +4 -4
- package/dist/runtime/api/models/MongoIndex.js +55 -0
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
- package/dist/runtime/api/models/{PasswordUpdateRequest.mjs → PasswordUpdateRequest.js} +6 -10
- package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
- package/dist/runtime/api/models/{PipelineStage.mjs → PipelineStage.js} +8 -12
- package/dist/runtime/api/models/Role.d.ts +2 -2
- package/dist/runtime/api/models/Role.js +32 -0
- package/dist/runtime/api/models/SchemaAnalysis.d.ts +2 -2
- package/dist/runtime/api/models/SchemaAnalysis.js +35 -0
- package/dist/runtime/api/models/SchemaAnalysisField.d.ts +2 -2
- package/dist/runtime/api/models/SchemaAnalysisField.js +40 -0
- package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
- package/dist/runtime/api/models/{SchemaAnalysisFieldType.mjs → SchemaAnalysisFieldType.js} +10 -14
- package/dist/runtime/api/models/SettingsResponse.d.ts +2 -2
- package/dist/runtime/api/models/SettingsResponse.js +29 -0
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +2 -2
- package/dist/runtime/api/models/UpdateFileInformationRequest.js +24 -0
- package/dist/runtime/api/models/UpdateRequest.d.ts +3 -3
- package/dist/runtime/api/models/{UpdateRequest.mjs → UpdateRequest.js} +8 -12
- package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
- package/dist/runtime/api/models/UpdateResponse.js +31 -0
- package/dist/runtime/api/models/UpdateRoleRequest.d.ts +2 -2
- package/dist/runtime/api/models/UpdateRoleRequest.js +29 -0
- package/dist/runtime/api/models/UserInformation.d.ts +1 -1
- package/dist/runtime/api/models/UserInformation.js +30 -0
- package/dist/runtime/api/models/UserProfile.d.ts +2 -2
- package/dist/runtime/api/models/UserProfile.js +36 -0
- package/dist/runtime/api/models/Version.d.ts +1 -1
- package/dist/runtime/api/models/Version.js +29 -0
- package/dist/runtime/api/models/index.d.ts +39 -39
- package/dist/runtime/api/models/index.js +39 -0
- package/dist/runtime/api/runtime.d.ts +2 -3
- package/dist/runtime/api/{runtime.mjs → runtime.js} +0 -4
- package/dist/runtime/composables/mongocampApi.d.ts +1 -1
- package/dist/runtime/composables/{mongocampApi.mjs → mongocampApi.js} +3 -3
- package/dist/runtime/composables/mongocampAuth.d.ts +1 -1
- package/dist/runtime/composables/{mongocampAuth.mjs → mongocampAuth.js} +3 -3
- package/dist/runtime/composables/mongocampSearch.d.ts +1 -1
- package/dist/runtime/composables/{mongocampSearch.mjs → mongocampSearch.js} +1 -1
- package/dist/runtime/composables/mongocampStorage.d.ts +5 -0
- package/dist/runtime/composables/mongocampUser.d.ts +1 -1
- package/dist/types.d.mts +1 -16
- package/dist/types.d.ts +1 -16
- package/package.json +18 -17
- package/dist/runtime/api/apis/index.mjs +0 -11
- package/dist/runtime/api/index.mjs +0 -3
- package/dist/runtime/api/models/BucketInformation.mjs +0 -36
- package/dist/runtime/api/models/CollectionStatus.mjs +0 -63
- package/dist/runtime/api/models/DatabaseInfo.mjs +0 -39
- package/dist/runtime/api/models/FileInformation.mjs +0 -42
- package/dist/runtime/api/models/Grant.mjs +0 -39
- package/dist/runtime/api/models/IndexCreateRequest.mjs +0 -34
- package/dist/runtime/api/models/IndexOptionsRequest.mjs +0 -41
- package/dist/runtime/api/models/InsertResponse.mjs +0 -30
- package/dist/runtime/api/models/JobConfig.mjs +0 -42
- package/dist/runtime/api/models/JobInformation.mjs +0 -49
- package/dist/runtime/api/models/JsonSchema.mjs +0 -38
- package/dist/runtime/api/models/JsonSchemaDefinition.mjs +0 -39
- package/dist/runtime/api/models/MongoAggregateRequest.mjs +0 -34
- package/dist/runtime/api/models/MongoCampConfiguration.mjs +0 -39
- package/dist/runtime/api/models/MongoIndex.mjs +0 -60
- package/dist/runtime/api/models/Role.mjs +0 -37
- package/dist/runtime/api/models/SchemaAnalysis.mjs +0 -40
- package/dist/runtime/api/models/SchemaAnalysisField.mjs +0 -45
- package/dist/runtime/api/models/SettingsResponse.mjs +0 -34
- package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +0 -29
- package/dist/runtime/api/models/UpdateResponse.mjs +0 -36
- package/dist/runtime/api/models/UpdateRoleRequest.mjs +0 -34
- package/dist/runtime/api/models/UserInformation.mjs +0 -35
- package/dist/runtime/api/models/UserProfile.mjs +0 -41
- package/dist/runtime/api/models/Version.mjs +0 -33
- package/dist/runtime/api/models/index.mjs +0 -39
- /package/dist/runtime/composables/{mongocampStorage.mjs → mongocampStorage.js} +0 -0
- /package/dist/runtime/composables/{mongocampUrl.mjs → mongocampUrl.js} +0 -0
- /package/dist/runtime/composables/{mongocampUser.mjs → mongocampUser.js} +0 -0
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { Grant } from './Grant';
|
|
12
|
+
import type { Grant } from './Grant.js';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -50,7 +50,7 @@ export interface UserProfile {
|
|
|
50
50
|
/**
|
|
51
51
|
* Check if a given object implements the UserProfile interface.
|
|
52
52
|
*/
|
|
53
|
-
export declare function instanceOfUserProfile(value: object):
|
|
53
|
+
export declare function instanceOfUserProfile(value: object): value is UserProfile;
|
|
54
54
|
export declare function UserProfileFromJSON(json: any): UserProfile;
|
|
55
55
|
export declare function UserProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserProfile;
|
|
56
56
|
export declare function UserProfileToJSON(value?: UserProfile | null): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GrantFromJSON,
|
|
3
|
+
GrantToJSON
|
|
4
|
+
} from "./Grant.js";
|
|
5
|
+
export function instanceOfUserProfile(value) {
|
|
6
|
+
if (!("user" in value) || value["user"] === void 0) return false;
|
|
7
|
+
if (!("isAdmin" in value) || value["isAdmin"] === void 0) return false;
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
export function UserProfileFromJSON(json) {
|
|
11
|
+
return UserProfileFromJSONTyped(json, false);
|
|
12
|
+
}
|
|
13
|
+
export function UserProfileFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if (json == null) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
"user": json["user"],
|
|
19
|
+
"isAdmin": json["isAdmin"],
|
|
20
|
+
"apiKey": json["apiKey"] == null ? void 0 : json["apiKey"],
|
|
21
|
+
"roles": json["roles"] == null ? void 0 : json["roles"],
|
|
22
|
+
"grants": json["grants"] == null ? void 0 : json["grants"].map(GrantFromJSON)
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export function UserProfileToJSON(value) {
|
|
26
|
+
if (value == null) {
|
|
27
|
+
return value;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
"user": value["user"],
|
|
31
|
+
"isAdmin": value["isAdmin"],
|
|
32
|
+
"apiKey": value["apiKey"],
|
|
33
|
+
"roles": value["roles"],
|
|
34
|
+
"grants": value["grants"] == null ? void 0 : value["grants"].map(GrantToJSON)
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -37,7 +37,7 @@ export interface Version {
|
|
|
37
37
|
/**
|
|
38
38
|
* Check if a given object implements the Version interface.
|
|
39
39
|
*/
|
|
40
|
-
export declare function instanceOfVersion(value: object):
|
|
40
|
+
export declare function instanceOfVersion(value: object): value is Version;
|
|
41
41
|
export declare function VersionFromJSON(json: any): Version;
|
|
42
42
|
export declare function VersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Version;
|
|
43
43
|
export declare function VersionToJSON(value?: Version | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export function instanceOfVersion(value) {
|
|
2
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
3
|
+
if (!("version" in value) || value["version"] === void 0) return false;
|
|
4
|
+
if (!("builtAt" in value) || value["builtAt"] === void 0) return false;
|
|
5
|
+
return true;
|
|
6
|
+
}
|
|
7
|
+
export function VersionFromJSON(json) {
|
|
8
|
+
return VersionFromJSONTyped(json, false);
|
|
9
|
+
}
|
|
10
|
+
export function VersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
11
|
+
if (json == null) {
|
|
12
|
+
return json;
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
"name": json["name"],
|
|
16
|
+
"version": json["version"],
|
|
17
|
+
"builtAt": new Date(json["builtAt"])
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function VersionToJSON(value) {
|
|
21
|
+
if (value == null) {
|
|
22
|
+
return value;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
"name": value["name"],
|
|
26
|
+
"version": value["version"],
|
|
27
|
+
"builtAt": value["builtAt"].toISOString()
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
export * from './BucketInformation';
|
|
2
|
-
export * from './CollectionStatus';
|
|
3
|
-
export * from './DatabaseInfo';
|
|
4
|
-
export * from './DeleteResponse';
|
|
5
|
-
export * from './ErrorDescription';
|
|
6
|
-
export * from './FileInformation';
|
|
7
|
-
export * from './Grant';
|
|
8
|
-
export * from './IndexCreateRequest';
|
|
9
|
-
export * from './IndexCreateResponse';
|
|
10
|
-
export * from './IndexDropResponse';
|
|
11
|
-
export * from './IndexOptionsRequest';
|
|
12
|
-
export * from './InsertResponse';
|
|
13
|
-
export * from './JobConfig';
|
|
14
|
-
export * from './JobInformation';
|
|
15
|
-
export * from './JsonSchema';
|
|
16
|
-
export * from './JsonSchemaDefinition';
|
|
17
|
-
export * from './JsonValueAny';
|
|
18
|
-
export * from './JsonValueBoolean';
|
|
19
|
-
export * from './JsonValueString';
|
|
20
|
-
export * from './Login';
|
|
21
|
-
export * from './LoginResult';
|
|
22
|
-
export * from './MongoAggregateRequest';
|
|
23
|
-
export * from './MongoCampConfiguration';
|
|
24
|
-
export * from './MongoFindRequest';
|
|
25
|
-
export * from './MongoIndex';
|
|
26
|
-
export * from './PasswordUpdateRequest';
|
|
27
|
-
export * from './PipelineStage';
|
|
28
|
-
export * from './Role';
|
|
29
|
-
export * from './SchemaAnalysis';
|
|
30
|
-
export * from './SchemaAnalysisField';
|
|
31
|
-
export * from './SchemaAnalysisFieldType';
|
|
32
|
-
export * from './SettingsResponse';
|
|
33
|
-
export * from './UpdateFileInformationRequest';
|
|
34
|
-
export * from './UpdateRequest';
|
|
35
|
-
export * from './UpdateResponse';
|
|
36
|
-
export * from './UpdateRoleRequest';
|
|
37
|
-
export * from './UserInformation';
|
|
38
|
-
export * from './UserProfile';
|
|
39
|
-
export * from './Version';
|
|
1
|
+
export * from './BucketInformation.js';
|
|
2
|
+
export * from './CollectionStatus.js';
|
|
3
|
+
export * from './DatabaseInfo.js';
|
|
4
|
+
export * from './DeleteResponse.js';
|
|
5
|
+
export * from './ErrorDescription.js';
|
|
6
|
+
export * from './FileInformation.js';
|
|
7
|
+
export * from './Grant.js';
|
|
8
|
+
export * from './IndexCreateRequest.js';
|
|
9
|
+
export * from './IndexCreateResponse.js';
|
|
10
|
+
export * from './IndexDropResponse.js';
|
|
11
|
+
export * from './IndexOptionsRequest.js';
|
|
12
|
+
export * from './InsertResponse.js';
|
|
13
|
+
export * from './JobConfig.js';
|
|
14
|
+
export * from './JobInformation.js';
|
|
15
|
+
export * from './JsonSchema.js';
|
|
16
|
+
export * from './JsonSchemaDefinition.js';
|
|
17
|
+
export * from './JsonValueAny.js';
|
|
18
|
+
export * from './JsonValueBoolean.js';
|
|
19
|
+
export * from './JsonValueString.js';
|
|
20
|
+
export * from './Login.js';
|
|
21
|
+
export * from './LoginResult.js';
|
|
22
|
+
export * from './MongoAggregateRequest.js';
|
|
23
|
+
export * from './MongoCampConfiguration.js';
|
|
24
|
+
export * from './MongoFindRequest.js';
|
|
25
|
+
export * from './MongoIndex.js';
|
|
26
|
+
export * from './PasswordUpdateRequest.js';
|
|
27
|
+
export * from './PipelineStage.js';
|
|
28
|
+
export * from './Role.js';
|
|
29
|
+
export * from './SchemaAnalysis.js';
|
|
30
|
+
export * from './SchemaAnalysisField.js';
|
|
31
|
+
export * from './SchemaAnalysisFieldType.js';
|
|
32
|
+
export * from './SettingsResponse.js';
|
|
33
|
+
export * from './UpdateFileInformationRequest.js';
|
|
34
|
+
export * from './UpdateRequest.js';
|
|
35
|
+
export * from './UpdateResponse.js';
|
|
36
|
+
export * from './UpdateRoleRequest.js';
|
|
37
|
+
export * from './UserInformation.js';
|
|
38
|
+
export * from './UserProfile.js';
|
|
39
|
+
export * from './Version.js';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export * from "./BucketInformation.js";
|
|
2
|
+
export * from "./CollectionStatus.js";
|
|
3
|
+
export * from "./DatabaseInfo.js";
|
|
4
|
+
export * from "./DeleteResponse.js";
|
|
5
|
+
export * from "./ErrorDescription.js";
|
|
6
|
+
export * from "./FileInformation.js";
|
|
7
|
+
export * from "./Grant.js";
|
|
8
|
+
export * from "./IndexCreateRequest.js";
|
|
9
|
+
export * from "./IndexCreateResponse.js";
|
|
10
|
+
export * from "./IndexDropResponse.js";
|
|
11
|
+
export * from "./IndexOptionsRequest.js";
|
|
12
|
+
export * from "./InsertResponse.js";
|
|
13
|
+
export * from "./JobConfig.js";
|
|
14
|
+
export * from "./JobInformation.js";
|
|
15
|
+
export * from "./JsonSchema.js";
|
|
16
|
+
export * from "./JsonSchemaDefinition.js";
|
|
17
|
+
export * from "./JsonValueAny.js";
|
|
18
|
+
export * from "./JsonValueBoolean.js";
|
|
19
|
+
export * from "./JsonValueString.js";
|
|
20
|
+
export * from "./Login.js";
|
|
21
|
+
export * from "./LoginResult.js";
|
|
22
|
+
export * from "./MongoAggregateRequest.js";
|
|
23
|
+
export * from "./MongoCampConfiguration.js";
|
|
24
|
+
export * from "./MongoFindRequest.js";
|
|
25
|
+
export * from "./MongoIndex.js";
|
|
26
|
+
export * from "./PasswordUpdateRequest.js";
|
|
27
|
+
export * from "./PipelineStage.js";
|
|
28
|
+
export * from "./Role.js";
|
|
29
|
+
export * from "./SchemaAnalysis.js";
|
|
30
|
+
export * from "./SchemaAnalysisField.js";
|
|
31
|
+
export * from "./SchemaAnalysisFieldType.js";
|
|
32
|
+
export * from "./SettingsResponse.js";
|
|
33
|
+
export * from "./UpdateFileInformationRequest.js";
|
|
34
|
+
export * from "./UpdateRequest.js";
|
|
35
|
+
export * from "./UpdateResponse.js";
|
|
36
|
+
export * from "./UpdateRoleRequest.js";
|
|
37
|
+
export * from "./UserInformation.js";
|
|
38
|
+
export * from "./UserProfile.js";
|
|
39
|
+
export * from "./Version.js";
|
|
@@ -17,7 +17,7 @@ export interface ConfigurationParameters {
|
|
|
17
17
|
queryParamsStringify?: (params: HTTPQuery) => string;
|
|
18
18
|
username?: string;
|
|
19
19
|
password?: string;
|
|
20
|
-
apiKey?: string | ((name: string) => string);
|
|
20
|
+
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
|
|
21
21
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
|
|
22
22
|
headers?: HTTPHeaders;
|
|
23
23
|
credentials?: RequestCredentials;
|
|
@@ -32,7 +32,7 @@ export declare class Configuration {
|
|
|
32
32
|
get queryParamsStringify(): (params: HTTPQuery) => string;
|
|
33
33
|
get username(): string | undefined;
|
|
34
34
|
get password(): string | undefined;
|
|
35
|
-
get apiKey(): ((name: string) => string) | undefined;
|
|
35
|
+
get apiKey(): ((name: string) => string | Promise<string>) | undefined;
|
|
36
36
|
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
|
|
37
37
|
get headers(): HTTPHeaders | undefined;
|
|
38
38
|
get credentials(): RequestCredentials | undefined;
|
|
@@ -122,7 +122,6 @@ export interface RequestOpts {
|
|
|
122
122
|
query?: HTTPQuery;
|
|
123
123
|
body?: HTTPBody;
|
|
124
124
|
}
|
|
125
|
-
export declare function exists(json: any, key: string): boolean;
|
|
126
125
|
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
127
126
|
export declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
128
127
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
@@ -215,10 +215,6 @@ export const COLLECTION_FORMATS = {
|
|
|
215
215
|
tsv: " ",
|
|
216
216
|
pipes: "|"
|
|
217
217
|
};
|
|
218
|
-
export function exists(json, key) {
|
|
219
|
-
const value = json[key];
|
|
220
|
-
return value !== null && value !== void 0;
|
|
221
|
-
}
|
|
222
218
|
export function querystring(params, prefix = "") {
|
|
223
219
|
return Object.keys(params).map((key) => querystringSingleKey(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
224
220
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdminApi, ApplicationApi, AuthApi, BucketApi, CollectionApi, DatabaseApi, DocumentApi, FileApi, IndexApi, InformationApi, JobsApi } from '../api';
|
|
1
|
+
import { AdminApi, ApplicationApi, AuthApi, BucketApi, CollectionApi, DatabaseApi, DocumentApi, FileApi, IndexApi, InformationApi, JobsApi } from '../api.js';
|
|
2
2
|
export declare function useMongocampApi(): {
|
|
3
3
|
adminApi: AdminApi;
|
|
4
4
|
applicationApi: ApplicationApi;
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
IndexApi,
|
|
12
12
|
InformationApi,
|
|
13
13
|
JobsApi
|
|
14
|
-
} from "../api/index.
|
|
15
|
-
import { useMongocampUrl } from "./mongocampUrl.
|
|
16
|
-
import { useMongocampStorage } from "./mongocampStorage.
|
|
14
|
+
} from "../api/index.js";
|
|
15
|
+
import { useMongocampUrl } from "./mongocampUrl.js";
|
|
16
|
+
import { useMongocampStorage } from "./mongocampStorage.js";
|
|
17
17
|
export function useMongocampApi() {
|
|
18
18
|
const url = useMongocampUrl();
|
|
19
19
|
const token = useMongocampStorage();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed } from "vue";
|
|
2
2
|
import { consola } from "consola";
|
|
3
|
-
import { useMongocampApi } from "./mongocampApi.
|
|
4
|
-
import { useMongocampStorage } from "./mongocampStorage.
|
|
5
|
-
import { useMongocampUser } from "./mongocampUser.
|
|
3
|
+
import { useMongocampApi } from "./mongocampApi.js";
|
|
4
|
+
import { useMongocampStorage } from "./mongocampStorage.js";
|
|
5
|
+
import { useMongocampUser } from "./mongocampUser.js";
|
|
6
6
|
import { useRuntimeConfig } from "#app";
|
|
7
7
|
export function useMongocampAuth() {
|
|
8
8
|
const config = useRuntimeConfig();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FindRequest, MongoFindRequest } from '../api';
|
|
1
|
+
import type { FindRequest, MongoFindRequest } from '../api.js';
|
|
2
2
|
export declare function useMongocampSearch(): {
|
|
3
3
|
mongoFindRequest: (filter?: object, sort?: object, projection?: object) => MongoFindRequest;
|
|
4
4
|
findRequest: (collection: string, searchParameter?: MongoFindRequest, rows?: number, actualPage?: number) => FindRequest;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { useMongocampApi } from "./mongocampApi.js";
|
|
1
2
|
import { useRuntimeConfig } from "#app";
|
|
2
|
-
import { useMongocampApi } from "./mongocampApi.mjs";
|
|
3
3
|
export function useMongocampSearch() {
|
|
4
4
|
const { documentApi } = useMongocampApi();
|
|
5
5
|
const config = useRuntimeConfig();
|
package/dist/types.d.mts
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ModuleOptions } from './module.js'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare module '@nuxt/schema' {
|
|
6
|
-
interface NuxtConfig { ['mongocamp']?: Partial<ModuleOptions> }
|
|
7
|
-
interface NuxtOptions { ['mongocamp']?: ModuleOptions }
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare module 'nuxt/schema' {
|
|
11
|
-
interface NuxtConfig { ['mongocamp']?: Partial<ModuleOptions> }
|
|
12
|
-
interface NuxtOptions { ['mongocamp']?: ModuleOptions }
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type { ModuleOptions, default } from './module.js'
|
|
1
|
+
export { type ModuleOptions, default } from './module.js'
|
package/dist/types.d.ts
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ModuleOptions } from './module'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare module '@nuxt/schema' {
|
|
6
|
-
interface NuxtConfig { ['mongocamp']?: Partial<ModuleOptions> }
|
|
7
|
-
interface NuxtOptions { ['mongocamp']?: ModuleOptions }
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare module 'nuxt/schema' {
|
|
11
|
-
interface NuxtConfig { ['mongocamp']?: Partial<ModuleOptions> }
|
|
12
|
-
interface NuxtOptions { ['mongocamp']?: ModuleOptions }
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type { ModuleOptions, default } from './module'
|
|
1
|
+
export { type ModuleOptions, default } from './module'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/nuxt-mongocamp-server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dev": "nuxi dev playground",
|
|
23
23
|
"dev:build": "nuxi build playground",
|
|
24
24
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
25
|
-
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish --access public && git push --follow-tags",
|
|
25
|
+
"release": "npm run lint && npm run test && npm run prepack && changelogen --release --patch && npm publish --access public && git push --follow-tags",
|
|
26
26
|
"lint": "eslint .",
|
|
27
27
|
"test": "vitest run",
|
|
28
28
|
"test:watch": "vitest watch",
|
|
@@ -32,23 +32,24 @@
|
|
|
32
32
|
"api-codegen": "openapi-generator-cli generate -i ./openapi/docs.yaml -g typescript-fetch -o src/runtime/api --additional-properties=typescriptThreePlus=true,supportsES6=true"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nuxt/kit": "^3.
|
|
36
|
-
"@vueuse/nuxt": "^10.
|
|
35
|
+
"@nuxt/kit": "^3.12.4",
|
|
36
|
+
"@vueuse/nuxt": "^10.11.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@iconify-json/bx": "^1.1.10",
|
|
40
|
-
"@nuxt/devtools": "^1.
|
|
41
|
-
"@nuxt/eslint-config": "^0.
|
|
42
|
-
"@nuxt/module-builder": "^0.
|
|
43
|
-
"@nuxt/schema": "^3.
|
|
44
|
-
"@nuxt/test-utils": "^3.
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
40
|
+
"@nuxt/devtools": "^1.3.9",
|
|
41
|
+
"@nuxt/eslint-config": "^0.4.0",
|
|
42
|
+
"@nuxt/module-builder": "^0.8.1",
|
|
43
|
+
"@nuxt/schema": "^3.12.4",
|
|
44
|
+
"@nuxt/test-utils": "^3.14.0",
|
|
45
|
+
"@openapitools/openapi-generator-cli": "^2.13.4",
|
|
46
|
+
"@types/node": "^22.1.0",
|
|
47
|
+
"@unocss/nuxt": "^0.61.9",
|
|
47
48
|
"changelogen": "^0.5.5",
|
|
48
|
-
"eslint": "^8.
|
|
49
|
-
"nuxt": "^3.
|
|
50
|
-
"nuxt-primevue": "^0.
|
|
51
|
-
"primeicons": "^
|
|
52
|
-
"vitest": "^
|
|
49
|
+
"eslint": "^9.8.0",
|
|
50
|
+
"nuxt": "^3.12.4",
|
|
51
|
+
"nuxt-primevue": "^3.0.0",
|
|
52
|
+
"primeicons": "^7.0.0",
|
|
53
|
+
"vitest": "^2.0.5"
|
|
53
54
|
}
|
|
54
|
-
}
|
|
55
|
+
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from "./AdminApi.mjs";
|
|
2
|
-
export * from "./ApplicationApi.mjs";
|
|
3
|
-
export * from "./AuthApi.mjs";
|
|
4
|
-
export * from "./BucketApi.mjs";
|
|
5
|
-
export * from "./CollectionApi.mjs";
|
|
6
|
-
export * from "./DatabaseApi.mjs";
|
|
7
|
-
export * from "./DocumentApi.mjs";
|
|
8
|
-
export * from "./FileApi.mjs";
|
|
9
|
-
export * from "./IndexApi.mjs";
|
|
10
|
-
export * from "./InformationApi.mjs";
|
|
11
|
-
export * from "./JobsApi.mjs";
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export function instanceOfBucketInformation(value) {
|
|
2
|
-
let isInstance = true;
|
|
3
|
-
isInstance = isInstance && "name" in value;
|
|
4
|
-
isInstance = isInstance && "files" in value;
|
|
5
|
-
isInstance = isInstance && "size" in value;
|
|
6
|
-
isInstance = isInstance && "avgObjectSize" in value;
|
|
7
|
-
return isInstance;
|
|
8
|
-
}
|
|
9
|
-
export function BucketInformationFromJSON(json) {
|
|
10
|
-
return BucketInformationFromJSONTyped(json, false);
|
|
11
|
-
}
|
|
12
|
-
export function BucketInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
-
if (json === void 0 || json === null) {
|
|
14
|
-
return json;
|
|
15
|
-
}
|
|
16
|
-
return {
|
|
17
|
-
"name": json["name"],
|
|
18
|
-
"files": json["files"],
|
|
19
|
-
"size": json["size"],
|
|
20
|
-
"avgObjectSize": json["avgObjectSize"]
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export function BucketInformationToJSON(value) {
|
|
24
|
-
if (value === void 0) {
|
|
25
|
-
return void 0;
|
|
26
|
-
}
|
|
27
|
-
if (value === null) {
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
"name": value.name,
|
|
32
|
-
"files": value.files,
|
|
33
|
-
"size": value.size,
|
|
34
|
-
"avgObjectSize": value.avgObjectSize
|
|
35
|
-
};
|
|
36
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
export function instanceOfCollectionStatus(value) {
|
|
2
|
-
let isInstance = true;
|
|
3
|
-
isInstance = isInstance && "ns" in value;
|
|
4
|
-
isInstance = isInstance && "collectionType" in value;
|
|
5
|
-
isInstance = isInstance && "scaleFactor" in value;
|
|
6
|
-
isInstance = isInstance && "size" in value;
|
|
7
|
-
isInstance = isInstance && "count" in value;
|
|
8
|
-
isInstance = isInstance && "storageSize" in value;
|
|
9
|
-
isInstance = isInstance && "avgObjSize" in value;
|
|
10
|
-
isInstance = isInstance && "nindexes" in value;
|
|
11
|
-
isInstance = isInstance && "indexSizes" in value;
|
|
12
|
-
isInstance = isInstance && "totalIndexSize" in value;
|
|
13
|
-
isInstance = isInstance && "ok" in value;
|
|
14
|
-
isInstance = isInstance && "fetched" in value;
|
|
15
|
-
isInstance = isInstance && "map" in value;
|
|
16
|
-
return isInstance;
|
|
17
|
-
}
|
|
18
|
-
export function CollectionStatusFromJSON(json) {
|
|
19
|
-
return CollectionStatusFromJSONTyped(json, false);
|
|
20
|
-
}
|
|
21
|
-
export function CollectionStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
-
if (json === void 0 || json === null) {
|
|
23
|
-
return json;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
"ns": json["ns"],
|
|
27
|
-
"collectionType": json["collectionType"],
|
|
28
|
-
"scaleFactor": json["scaleFactor"],
|
|
29
|
-
"size": json["size"],
|
|
30
|
-
"count": json["count"],
|
|
31
|
-
"storageSize": json["storageSize"],
|
|
32
|
-
"avgObjSize": json["avgObjSize"],
|
|
33
|
-
"nindexes": json["nindexes"],
|
|
34
|
-
"indexSizes": json["indexSizes"],
|
|
35
|
-
"totalIndexSize": json["totalIndexSize"],
|
|
36
|
-
"ok": json["ok"],
|
|
37
|
-
"fetched": new Date(json["fetched"]),
|
|
38
|
-
"map": json["map"]
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export function CollectionStatusToJSON(value) {
|
|
42
|
-
if (value === void 0) {
|
|
43
|
-
return void 0;
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
"ns": value.ns,
|
|
50
|
-
"collectionType": value.collectionType,
|
|
51
|
-
"scaleFactor": value.scaleFactor,
|
|
52
|
-
"size": value.size,
|
|
53
|
-
"count": value.count,
|
|
54
|
-
"storageSize": value.storageSize,
|
|
55
|
-
"avgObjSize": value.avgObjSize,
|
|
56
|
-
"nindexes": value.nindexes,
|
|
57
|
-
"indexSizes": value.indexSizes,
|
|
58
|
-
"totalIndexSize": value.totalIndexSize,
|
|
59
|
-
"ok": value.ok,
|
|
60
|
-
"fetched": value.fetched.toISOString(),
|
|
61
|
-
"map": value.map
|
|
62
|
-
};
|
|
63
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export function instanceOfDatabaseInfo(value) {
|
|
2
|
-
let isInstance = true;
|
|
3
|
-
isInstance = isInstance && "name" in value;
|
|
4
|
-
isInstance = isInstance && "sizeOnDisk" in value;
|
|
5
|
-
isInstance = isInstance && "empty" in value;
|
|
6
|
-
isInstance = isInstance && "fetched" in value;
|
|
7
|
-
isInstance = isInstance && "map" in value;
|
|
8
|
-
return isInstance;
|
|
9
|
-
}
|
|
10
|
-
export function DatabaseInfoFromJSON(json) {
|
|
11
|
-
return DatabaseInfoFromJSONTyped(json, false);
|
|
12
|
-
}
|
|
13
|
-
export function DatabaseInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
-
if (json === void 0 || json === null) {
|
|
15
|
-
return json;
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
"name": json["name"],
|
|
19
|
-
"sizeOnDisk": json["sizeOnDisk"],
|
|
20
|
-
"empty": json["empty"],
|
|
21
|
-
"fetched": new Date(json["fetched"]),
|
|
22
|
-
"map": json["map"]
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export function DatabaseInfoToJSON(value) {
|
|
26
|
-
if (value === void 0) {
|
|
27
|
-
return void 0;
|
|
28
|
-
}
|
|
29
|
-
if (value === null) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
"name": value.name,
|
|
34
|
-
"sizeOnDisk": value.sizeOnDisk,
|
|
35
|
-
"empty": value.empty,
|
|
36
|
-
"fetched": value.fetched.toISOString(),
|
|
37
|
-
"map": value.map
|
|
38
|
-
};
|
|
39
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export function instanceOfFileInformation(value) {
|
|
2
|
-
let isInstance = true;
|
|
3
|
-
isInstance = isInstance && "id" in value;
|
|
4
|
-
isInstance = isInstance && "filename" in value;
|
|
5
|
-
isInstance = isInstance && "length" in value;
|
|
6
|
-
isInstance = isInstance && "chunkSize" in value;
|
|
7
|
-
isInstance = isInstance && "uploadDate" in value;
|
|
8
|
-
isInstance = isInstance && "metadata" in value;
|
|
9
|
-
return isInstance;
|
|
10
|
-
}
|
|
11
|
-
export function FileInformationFromJSON(json) {
|
|
12
|
-
return FileInformationFromJSONTyped(json, false);
|
|
13
|
-
}
|
|
14
|
-
export function FileInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
15
|
-
if (json === void 0 || json === null) {
|
|
16
|
-
return json;
|
|
17
|
-
}
|
|
18
|
-
return {
|
|
19
|
-
"id": json["_id"],
|
|
20
|
-
"filename": json["filename"],
|
|
21
|
-
"length": json["length"],
|
|
22
|
-
"chunkSize": json["chunkSize"],
|
|
23
|
-
"uploadDate": new Date(json["uploadDate"]),
|
|
24
|
-
"metadata": json["metadata"]
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export function FileInformationToJSON(value) {
|
|
28
|
-
if (value === void 0) {
|
|
29
|
-
return void 0;
|
|
30
|
-
}
|
|
31
|
-
if (value === null) {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
"_id": value.id,
|
|
36
|
-
"filename": value.filename,
|
|
37
|
-
"length": value.length,
|
|
38
|
-
"chunkSize": value.chunkSize,
|
|
39
|
-
"uploadDate": value.uploadDate.toISOString(),
|
|
40
|
-
"metadata": value.metadata
|
|
41
|
-
};
|
|
42
|
-
}
|