@sfxcode/nuxt-mongocamp-server 1.9.0 → 1.9.1
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 +20 -0
- 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 +1 -1
- package/dist/runtime/api/apis/BucketApi.d.ts +1 -1
- package/dist/runtime/api/apis/CollectionApi.d.ts +78 -4
- package/dist/runtime/api/apis/CollectionApi.js +175 -2
- 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/JobsApi.d.ts +1 -1
- package/dist/runtime/api/apis/SystemApi.d.ts +46 -1
- package/dist/runtime/api/apis/SystemApi.js +141 -0
- package/dist/runtime/api/docs/Capabilities.md +42 -0
- package/dist/runtime/api/docs/CapabilityLimits.md +36 -0
- package/dist/runtime/api/docs/CollectionApi.md +249 -4
- package/dist/runtime/api/docs/CollectionCollation.md +40 -0
- package/dist/runtime/api/docs/CollectionOptions.md +46 -0
- package/dist/runtime/api/docs/ConnectionStats.md +38 -0
- package/dist/runtime/api/docs/CreateCollectionResponse.md +34 -0
- package/dist/runtime/api/docs/DocumentApi.md +1 -1
- package/dist/runtime/api/docs/OpCounters.md +44 -0
- package/dist/runtime/api/docs/ReplicaSetState.md +40 -0
- package/dist/runtime/api/docs/SystemApi.md +210 -0
- package/dist/runtime/api/docs/SystemInfo.md +36 -0
- package/dist/runtime/api/docs/SystemStats.md +42 -0
- package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
- package/dist/runtime/api/models/Capabilities.d.ts +47 -0
- package/dist/runtime/api/models/Capabilities.js +39 -0
- package/dist/runtime/api/models/CapabilityLimits.d.ts +34 -0
- package/dist/runtime/api/models/CapabilityLimits.js +29 -0
- package/dist/runtime/api/models/ClusterInformation.d.ts +1 -1
- package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -1
- package/dist/runtime/api/models/CollectionCollation.d.ts +42 -0
- package/dist/runtime/api/models/CollectionCollation.js +32 -0
- package/dist/runtime/api/models/CollectionOptions.d.ts +57 -0
- package/dist/runtime/api/models/CollectionOptions.js +41 -0
- package/dist/runtime/api/models/CollectionPermission.d.ts +1 -1
- package/dist/runtime/api/models/CollectionStatus.d.ts +1 -1
- package/dist/runtime/api/models/CollectionSummary.d.ts +1 -1
- package/dist/runtime/api/models/ConnectionStats.d.ts +38 -0
- package/dist/runtime/api/models/ConnectionStats.js +32 -0
- package/dist/runtime/api/models/CopyRequest.d.ts +1 -1
- package/dist/runtime/api/models/CopyResponse.d.ts +1 -1
- package/dist/runtime/api/models/CountResponse.d.ts +1 -1
- package/dist/runtime/api/models/CreateCollectionResponse.d.ts +30 -0
- package/dist/runtime/api/models/CreateCollectionResponse.js +26 -0
- package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
- package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
- package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
- package/dist/runtime/api/models/FieldInfo.d.ts +1 -1
- package/dist/runtime/api/models/FieldTypeCount.d.ts +1 -1
- package/dist/runtime/api/models/FileInformation.d.ts +1 -1
- package/dist/runtime/api/models/Grant.d.ts +1 -1
- package/dist/runtime/api/models/ImportResponse.d.ts +1 -1
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
- package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
- package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
- package/dist/runtime/api/models/IndexInfo.d.ts +1 -1
- package/dist/runtime/api/models/IndexKey.d.ts +1 -1
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +1 -1
- package/dist/runtime/api/models/IndexUsage.d.ts +1 -1
- package/dist/runtime/api/models/InsertError.d.ts +1 -1
- package/dist/runtime/api/models/InsertResponse.d.ts +1 -1
- package/dist/runtime/api/models/JobConfig.d.ts +1 -1
- package/dist/runtime/api/models/JobInformation.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
- package/dist/runtime/api/models/JsonValueAny.d.ts +1 -1
- package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
- package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
- package/dist/runtime/api/models/Login.d.ts +1 -1
- package/dist/runtime/api/models/LoginResult.d.ts +1 -1
- package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -1
- package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -1
- package/dist/runtime/api/models/MongoFindRequest.d.ts +1 -1
- package/dist/runtime/api/models/MongoIndex.d.ts +1 -1
- package/dist/runtime/api/models/OpCounters.d.ts +50 -0
- package/dist/runtime/api/models/OpCounters.js +41 -0
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
- package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
- package/dist/runtime/api/models/RenameRequest.d.ts +1 -1
- package/dist/runtime/api/models/RenameResponse.d.ts +1 -1
- package/dist/runtime/api/models/ReplicaSetState.d.ts +42 -0
- package/dist/runtime/api/models/ReplicaSetState.js +35 -0
- package/dist/runtime/api/models/Role.d.ts +1 -1
- package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -1
- package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -1
- package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
- package/dist/runtime/api/models/SearchRequest.d.ts +1 -1
- package/dist/runtime/api/models/SettingsResponse.d.ts +1 -1
- package/dist/runtime/api/models/SystemInfo.d.ts +34 -0
- package/dist/runtime/api/models/SystemInfo.js +28 -0
- package/dist/runtime/api/models/SystemStats.d.ts +49 -0
- package/dist/runtime/api/models/SystemStats.js +46 -0
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
- package/dist/runtime/api/models/UpdateRequest.d.ts +1 -1
- package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
- package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -1
- package/dist/runtime/api/models/UserInformation.d.ts +1 -1
- package/dist/runtime/api/models/UserProfile.d.ts +1 -1
- package/dist/runtime/api/models/Version.d.ts +1 -1
- package/dist/runtime/api/models/index.d.ts +10 -0
- package/dist/runtime/api/models/index.js +10 -0
- package/dist/runtime/api/runtime.d.ts +1 -1
- package/dist/runtime/composables/mongocampStorage.d.ts +7 -1
- package/dist/runtime/composables/mongocampStorage.js +12 -8
- package/package.json +2 -2
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export function instanceOfOpCounters(value) {
|
|
2
|
+
if (!("insert" in value) || value["insert"] === void 0) return false;
|
|
3
|
+
if (!("query" in value) || value["query"] === void 0) return false;
|
|
4
|
+
if (!("update" in value) || value["update"] === void 0) return false;
|
|
5
|
+
if (!("_delete" in value) && !("delete" in value) || value["_delete"] === void 0 && value["delete"] === void 0) return false;
|
|
6
|
+
if (!("getmore" in value) || value["getmore"] === void 0) return false;
|
|
7
|
+
if (!("command" in value) || value["command"] === void 0) return false;
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
export function OpCountersFromJSON(json) {
|
|
11
|
+
return OpCountersFromJSONTyped(json, false);
|
|
12
|
+
}
|
|
13
|
+
export function OpCountersFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if (json == null) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
"insert": json["insert"],
|
|
19
|
+
"query": json["query"],
|
|
20
|
+
"update": json["update"],
|
|
21
|
+
"_delete": json["delete"],
|
|
22
|
+
"getmore": json["getmore"],
|
|
23
|
+
"command": json["command"]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function OpCountersToJSON(json) {
|
|
27
|
+
return OpCountersToJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function OpCountersToJSONTyped(value, ignoreDiscriminator = false) {
|
|
30
|
+
if (value == null) {
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
"insert": value["insert"],
|
|
35
|
+
"query": value["query"],
|
|
36
|
+
"update": value["update"],
|
|
37
|
+
"delete": value["_delete"],
|
|
38
|
+
"getmore": value["getmore"],
|
|
39
|
+
"command": value["command"]
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -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.9.0
|
|
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.9.0
|
|
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.9.0
|
|
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.9.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* mongocamp-library
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.9.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ReplicaSetState
|
|
16
|
+
*/
|
|
17
|
+
export interface ReplicaSetState {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
name: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
state: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
memberCount: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
healthyMembers: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the ReplicaSetState interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfReplicaSetState(value: object): value is ReplicaSetState;
|
|
39
|
+
export declare function ReplicaSetStateFromJSON(json: any): ReplicaSetState;
|
|
40
|
+
export declare function ReplicaSetStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReplicaSetState;
|
|
41
|
+
export declare function ReplicaSetStateToJSON(json: any): ReplicaSetState;
|
|
42
|
+
export declare function ReplicaSetStateToJSONTyped(value?: ReplicaSetState | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export function instanceOfReplicaSetState(value) {
|
|
2
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
3
|
+
if (!("state" in value) || value["state"] === void 0) return false;
|
|
4
|
+
if (!("memberCount" in value) || value["memberCount"] === void 0) return false;
|
|
5
|
+
if (!("healthyMembers" in value) || value["healthyMembers"] === void 0) return false;
|
|
6
|
+
return true;
|
|
7
|
+
}
|
|
8
|
+
export function ReplicaSetStateFromJSON(json) {
|
|
9
|
+
return ReplicaSetStateFromJSONTyped(json, false);
|
|
10
|
+
}
|
|
11
|
+
export function ReplicaSetStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if (json == null) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
"name": json["name"],
|
|
17
|
+
"state": json["state"],
|
|
18
|
+
"memberCount": json["memberCount"],
|
|
19
|
+
"healthyMembers": json["healthyMembers"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export function ReplicaSetStateToJSON(json) {
|
|
23
|
+
return ReplicaSetStateToJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function ReplicaSetStateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
26
|
+
if (value == null) {
|
|
27
|
+
return value;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
"name": value["name"],
|
|
31
|
+
"state": value["state"],
|
|
32
|
+
"memberCount": value["memberCount"],
|
|
33
|
+
"healthyMembers": value["healthyMembers"]
|
|
34
|
+
};
|
|
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.9.0
|
|
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.9.0
|
|
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.9.0
|
|
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.9.0
|
|
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.9.0
|
|
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.9.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* mongocamp-library
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.9.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SystemInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface SystemInfo {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
mongoDbVersion: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
mongoDbVersionArray?: Array<number>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the SystemInfo interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfSystemInfo(value: object): value is SystemInfo;
|
|
31
|
+
export declare function SystemInfoFromJSON(json: any): SystemInfo;
|
|
32
|
+
export declare function SystemInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemInfo;
|
|
33
|
+
export declare function SystemInfoToJSON(json: any): SystemInfo;
|
|
34
|
+
export declare function SystemInfoToJSONTyped(value?: SystemInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export function instanceOfSystemInfo(value) {
|
|
2
|
+
if (!("mongoDbVersion" in value) || value["mongoDbVersion"] === void 0) return false;
|
|
3
|
+
return true;
|
|
4
|
+
}
|
|
5
|
+
export function SystemInfoFromJSON(json) {
|
|
6
|
+
return SystemInfoFromJSONTyped(json, false);
|
|
7
|
+
}
|
|
8
|
+
export function SystemInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if (json == null) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
"mongoDbVersion": json["mongoDbVersion"],
|
|
14
|
+
"mongoDbVersionArray": json["mongoDbVersionArray"] == null ? void 0 : json["mongoDbVersionArray"]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export function SystemInfoToJSON(json) {
|
|
18
|
+
return SystemInfoToJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
export function SystemInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
21
|
+
if (value == null) {
|
|
22
|
+
return value;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
"mongoDbVersion": value["mongoDbVersion"],
|
|
26
|
+
"mongoDbVersionArray": value["mongoDbVersionArray"]
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* mongocamp-library
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.9.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { OpCounters } from './OpCounters.js';
|
|
13
|
+
import type { ReplicaSetState } from './ReplicaSetState.js';
|
|
14
|
+
import type { ConnectionStats } from './ConnectionStats.js';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface SystemStats
|
|
19
|
+
*/
|
|
20
|
+
export interface SystemStats {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
uptimeSeconds?: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
connections?: ConnectionStats;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
opcounters?: OpCounters;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
replicaSet?: ReplicaSetState;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
partial: boolean;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the SystemStats interface.
|
|
44
|
+
*/
|
|
45
|
+
export declare function instanceOfSystemStats(value: object): value is SystemStats;
|
|
46
|
+
export declare function SystemStatsFromJSON(json: any): SystemStats;
|
|
47
|
+
export declare function SystemStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemStats;
|
|
48
|
+
export declare function SystemStatsToJSON(json: any): SystemStats;
|
|
49
|
+
export declare function SystemStatsToJSONTyped(value?: SystemStats | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OpCountersFromJSON,
|
|
3
|
+
OpCountersToJSON
|
|
4
|
+
} from "./OpCounters.js";
|
|
5
|
+
import {
|
|
6
|
+
ReplicaSetStateFromJSON,
|
|
7
|
+
ReplicaSetStateToJSON
|
|
8
|
+
} from "./ReplicaSetState.js";
|
|
9
|
+
import {
|
|
10
|
+
ConnectionStatsFromJSON,
|
|
11
|
+
ConnectionStatsToJSON
|
|
12
|
+
} from "./ConnectionStats.js";
|
|
13
|
+
export function instanceOfSystemStats(value) {
|
|
14
|
+
if (!("partial" in value) || value["partial"] === void 0) return false;
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
export function SystemStatsFromJSON(json) {
|
|
18
|
+
return SystemStatsFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
export function SystemStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if (json == null) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
"uptimeSeconds": json["uptimeSeconds"] == null ? void 0 : json["uptimeSeconds"],
|
|
26
|
+
"connections": json["connections"] == null ? void 0 : ConnectionStatsFromJSON(json["connections"]),
|
|
27
|
+
"opcounters": json["opcounters"] == null ? void 0 : OpCountersFromJSON(json["opcounters"]),
|
|
28
|
+
"replicaSet": json["replicaSet"] == null ? void 0 : ReplicaSetStateFromJSON(json["replicaSet"]),
|
|
29
|
+
"partial": json["partial"]
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function SystemStatsToJSON(json) {
|
|
33
|
+
return SystemStatsToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function SystemStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
"uptimeSeconds": value["uptimeSeconds"],
|
|
41
|
+
"connections": ConnectionStatsToJSON(value["connections"]),
|
|
42
|
+
"opcounters": OpCountersToJSON(value["opcounters"]),
|
|
43
|
+
"replicaSet": ReplicaSetStateToJSON(value["replicaSet"]),
|
|
44
|
+
"partial": value["partial"]
|
|
45
|
+
};
|
|
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
|
+
* The version of the OpenAPI document: 1.9.0
|
|
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.9.0
|
|
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.9.0
|
|
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.9.0
|
|
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.9.0
|
|
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.9.0
|
|
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.9.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
export * from './BucketInformation.js';
|
|
2
|
+
export * from './Capabilities.js';
|
|
3
|
+
export * from './CapabilityLimits.js';
|
|
2
4
|
export * from './ClusterInformation.js';
|
|
3
5
|
export * from './ClusterMemberInformation.js';
|
|
6
|
+
export * from './CollectionCollation.js';
|
|
7
|
+
export * from './CollectionOptions.js';
|
|
4
8
|
export * from './CollectionPermission.js';
|
|
5
9
|
export * from './CollectionStatus.js';
|
|
6
10
|
export * from './CollectionSummary.js';
|
|
11
|
+
export * from './ConnectionStats.js';
|
|
7
12
|
export * from './CopyRequest.js';
|
|
8
13
|
export * from './CopyResponse.js';
|
|
9
14
|
export * from './CountResponse.js';
|
|
15
|
+
export * from './CreateCollectionResponse.js';
|
|
10
16
|
export * from './DatabaseInfo.js';
|
|
11
17
|
export * from './DeleteResponse.js';
|
|
12
18
|
export * from './ErrorDescription.js';
|
|
@@ -37,16 +43,20 @@ export * from './MongoAggregateRequest.js';
|
|
|
37
43
|
export * from './MongoCampConfiguration.js';
|
|
38
44
|
export * from './MongoFindRequest.js';
|
|
39
45
|
export * from './MongoIndex.js';
|
|
46
|
+
export * from './OpCounters.js';
|
|
40
47
|
export * from './PasswordUpdateRequest.js';
|
|
41
48
|
export * from './PipelineStage.js';
|
|
42
49
|
export * from './RenameRequest.js';
|
|
43
50
|
export * from './RenameResponse.js';
|
|
51
|
+
export * from './ReplicaSetState.js';
|
|
44
52
|
export * from './Role.js';
|
|
45
53
|
export * from './SchemaAnalysis.js';
|
|
46
54
|
export * from './SchemaAnalysisField.js';
|
|
47
55
|
export * from './SchemaAnalysisFieldType.js';
|
|
48
56
|
export * from './SearchRequest.js';
|
|
49
57
|
export * from './SettingsResponse.js';
|
|
58
|
+
export * from './SystemInfo.js';
|
|
59
|
+
export * from './SystemStats.js';
|
|
50
60
|
export * from './UpdateFileInformationRequest.js';
|
|
51
61
|
export * from './UpdateRequest.js';
|
|
52
62
|
export * from './UpdateResponse.js';
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
export * from "./BucketInformation.js";
|
|
2
|
+
export * from "./Capabilities.js";
|
|
3
|
+
export * from "./CapabilityLimits.js";
|
|
2
4
|
export * from "./ClusterInformation.js";
|
|
3
5
|
export * from "./ClusterMemberInformation.js";
|
|
6
|
+
export * from "./CollectionCollation.js";
|
|
7
|
+
export * from "./CollectionOptions.js";
|
|
4
8
|
export * from "./CollectionPermission.js";
|
|
5
9
|
export * from "./CollectionStatus.js";
|
|
6
10
|
export * from "./CollectionSummary.js";
|
|
11
|
+
export * from "./ConnectionStats.js";
|
|
7
12
|
export * from "./CopyRequest.js";
|
|
8
13
|
export * from "./CopyResponse.js";
|
|
9
14
|
export * from "./CountResponse.js";
|
|
15
|
+
export * from "./CreateCollectionResponse.js";
|
|
10
16
|
export * from "./DatabaseInfo.js";
|
|
11
17
|
export * from "./DeleteResponse.js";
|
|
12
18
|
export * from "./ErrorDescription.js";
|
|
@@ -37,16 +43,20 @@ export * from "./MongoAggregateRequest.js";
|
|
|
37
43
|
export * from "./MongoCampConfiguration.js";
|
|
38
44
|
export * from "./MongoFindRequest.js";
|
|
39
45
|
export * from "./MongoIndex.js";
|
|
46
|
+
export * from "./OpCounters.js";
|
|
40
47
|
export * from "./PasswordUpdateRequest.js";
|
|
41
48
|
export * from "./PipelineStage.js";
|
|
42
49
|
export * from "./RenameRequest.js";
|
|
43
50
|
export * from "./RenameResponse.js";
|
|
51
|
+
export * from "./ReplicaSetState.js";
|
|
44
52
|
export * from "./Role.js";
|
|
45
53
|
export * from "./SchemaAnalysis.js";
|
|
46
54
|
export * from "./SchemaAnalysisField.js";
|
|
47
55
|
export * from "./SchemaAnalysisFieldType.js";
|
|
48
56
|
export * from "./SearchRequest.js";
|
|
49
57
|
export * from "./SettingsResponse.js";
|
|
58
|
+
export * from "./SystemInfo.js";
|
|
59
|
+
export * from "./SystemStats.js";
|
|
50
60
|
export * from "./UpdateFileInformationRequest.js";
|
|
51
61
|
export * from "./UpdateRequest.js";
|
|
52
62
|
export * from "./UpdateResponse.js";
|
|
@@ -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.9.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import type { CookieRef } from 'nuxt/app';
|
|
1
2
|
import type { UserProfile } from '../api/index.js';
|
|
2
3
|
export interface MongocampSession {
|
|
3
4
|
token: string;
|
|
4
5
|
profile: UserProfile;
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Returns the session cookie ref. Every caller (auth, API client, 401 handler, user) must
|
|
9
|
+
* see the same ref: separate `useCookie` refs for the same cookie are not synchronously kept
|
|
10
|
+
* in sync, so a token written by login would be invisible to an API client created earlier.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useMongocampStorage(): CookieRef<MongocampSession>;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { useCookie, useRuntimeConfig } from "#app";
|
|
1
|
+
import { useCookie, useNuxtApp, useRuntimeConfig } from "#app";
|
|
2
2
|
export function useMongocampStorage() {
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
const nuxtApp = useNuxtApp();
|
|
4
|
+
if (!nuxtApp._mongocampSession) {
|
|
5
|
+
const config = useRuntimeConfig();
|
|
6
|
+
nuxtApp._mongocampSession = useCookie("mongocamp-session", {
|
|
7
|
+
default: () => ({ token: "", profile: { user: "", isAdmin: false } }),
|
|
8
|
+
maxAge: config.public.mongocamp?.sessionMaxAge ?? 60 * 60 * 24 * 30,
|
|
9
|
+
sameSite: "lax",
|
|
10
|
+
secure: !import.meta.dev
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
return nuxtApp._mongocampSession;
|
|
10
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/nuxt-mongocamp-server",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dev": "nuxi dev playground",
|
|
33
33
|
"dev:build": "nuxi build playground",
|
|
34
34
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
35
|
-
"release": "npm run lint && npm run test && npm run prepack && changelogen --
|
|
35
|
+
"release": "npm run lint && npm run test && npm run prepack && changelogen --patch --release && npm publish --access public && git push --follow-tags",
|
|
36
36
|
"lint": "eslint .",
|
|
37
37
|
"lint:fix": "eslint --fix .",
|
|
38
38
|
"test": "vitest run",
|