@sfxcode/nuxt-mongocamp-server 1.7.0 → 1.9.0
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 +8 -0
- package/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/api/.openapi-generator/FILES +18 -0
- package/dist/runtime/api/.openapi-generator/VERSION +1 -1
- package/dist/runtime/api/apis/AdminApi.d.ts +65 -2
- package/dist/runtime/api/apis/AdminApi.js +39 -27
- package/dist/runtime/api/apis/ApplicationApi.d.ts +17 -2
- package/dist/runtime/api/apis/ApplicationApi.js +17 -11
- package/dist/runtime/api/apis/AuthApi.d.ts +17 -2
- package/dist/runtime/api/apis/AuthApi.js +27 -15
- package/dist/runtime/api/apis/BucketApi.d.ts +12 -2
- package/dist/runtime/api/apis/BucketApi.js +11 -9
- package/dist/runtime/api/apis/CollectionApi.d.ts +163 -4
- package/dist/runtime/api/apis/CollectionApi.js +230 -27
- package/dist/runtime/api/apis/DatabaseApi.d.ts +12 -2
- package/dist/runtime/api/apis/DatabaseApi.js +12 -10
- package/dist/runtime/api/apis/DocumentApi.d.ts +223 -15
- package/dist/runtime/api/apis/DocumentApi.js +194 -35
- package/dist/runtime/api/apis/FileApi.d.ts +78 -4
- package/dist/runtime/api/apis/FileApi.js +34 -24
- package/dist/runtime/api/apis/IndexApi.d.ts +100 -2
- package/dist/runtime/api/apis/IndexApi.js +95 -31
- package/dist/runtime/api/apis/JobsApi.d.ts +28 -2
- package/dist/runtime/api/apis/JobsApi.js +19 -15
- package/dist/runtime/api/apis/SystemApi.d.ts +3 -2
- package/dist/runtime/api/apis/SystemApi.js +5 -3
- package/dist/runtime/api/docs/CollectionApi.md +254 -2
- package/dist/runtime/api/docs/CollectionStatus.md +1 -1
- package/dist/runtime/api/docs/CopyRequest.md +40 -0
- package/dist/runtime/api/docs/CopyResponse.md +38 -0
- package/dist/runtime/api/docs/DatabaseInfo.md +1 -1
- package/dist/runtime/api/docs/DocumentApi.md +210 -19
- package/dist/runtime/api/docs/FieldInfo.md +36 -0
- package/dist/runtime/api/docs/FieldTypeCount.md +36 -0
- package/dist/runtime/api/docs/FileInformation.md +1 -1
- package/dist/runtime/api/docs/ImportResponse.md +42 -0
- package/dist/runtime/api/docs/IndexApi.md +78 -0
- package/dist/runtime/api/docs/IndexCreateRequest.md +2 -0
- package/dist/runtime/api/docs/IndexInfo.md +54 -0
- package/dist/runtime/api/docs/IndexKey.md +36 -0
- package/dist/runtime/api/docs/IndexOptionsRequest.md +10 -0
- package/dist/runtime/api/docs/IndexUsage.md +1 -1
- package/dist/runtime/api/docs/JsonSchemaDefinition.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/RenameRequest.md +36 -0
- package/dist/runtime/api/docs/RenameResponse.md +34 -0
- package/dist/runtime/api/docs/SettingsResponse.md +1 -1
- 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 -9
- package/dist/runtime/api/models/ClusterInformation.d.ts +1 -5
- package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -11
- package/dist/runtime/api/models/CollectionPermission.d.ts +1 -9
- package/dist/runtime/api/models/CollectionStatus.d.ts +2 -28
- package/dist/runtime/api/models/CollectionStatus.js +3 -2
- package/dist/runtime/api/models/CollectionSummary.d.ts +1 -19
- package/dist/runtime/api/models/CopyRequest.d.ts +42 -0
- package/dist/runtime/api/models/CopyRequest.js +32 -0
- package/dist/runtime/api/models/CopyResponse.d.ts +38 -0
- package/dist/runtime/api/models/CopyResponse.js +32 -0
- package/dist/runtime/api/models/CountResponse.d.ts +1 -3
- package/dist/runtime/api/models/DatabaseInfo.d.ts +2 -12
- package/dist/runtime/api/models/DatabaseInfo.js +3 -2
- package/dist/runtime/api/models/DeleteResponse.d.ts +1 -5
- package/dist/runtime/api/models/ErrorDescription.d.ts +1 -7
- package/dist/runtime/api/models/FieldInfo.d.ts +35 -0
- package/dist/runtime/api/models/FieldInfo.js +32 -0
- package/dist/runtime/api/models/FieldTypeCount.d.ts +34 -0
- package/dist/runtime/api/models/FieldTypeCount.js +29 -0
- package/dist/runtime/api/models/FileInformation.d.ts +2 -14
- package/dist/runtime/api/models/FileInformation.js +4 -3
- package/dist/runtime/api/models/Grant.d.ts +1 -11
- package/dist/runtime/api/models/ImportResponse.d.ts +47 -0
- package/dist/runtime/api/models/ImportResponse.js +41 -0
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +7 -6
- package/dist/runtime/api/models/IndexCreateRequest.js +9 -4
- package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -3
- package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -3
- package/dist/runtime/api/models/IndexInfo.d.ts +77 -0
- package/dist/runtime/api/models/IndexInfo.js +54 -0
- package/dist/runtime/api/models/IndexKey.d.ts +34 -0
- package/dist/runtime/api/models/IndexKey.js +29 -0
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +27 -17
- package/dist/runtime/api/models/IndexOptionsRequest.js +12 -2
- package/dist/runtime/api/models/IndexUsage.d.ts +2 -10
- package/dist/runtime/api/models/IndexUsage.js +3 -2
- package/dist/runtime/api/models/InsertError.d.ts +1 -7
- package/dist/runtime/api/models/InsertResponse.d.ts +1 -9
- package/dist/runtime/api/models/JobConfig.d.ts +1 -13
- package/dist/runtime/api/models/JobInformation.d.ts +1 -19
- package/dist/runtime/api/models/JobInformation.js +5 -4
- package/dist/runtime/api/models/JsonSchema.d.ts +1 -7
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +2 -12
- package/dist/runtime/api/models/JsonValueAny.d.ts +1 -3
- package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -3
- package/dist/runtime/api/models/JsonValueString.d.ts +1 -3
- package/dist/runtime/api/models/Login.d.ts +1 -5
- package/dist/runtime/api/models/LoginResult.d.ts +1 -7
- package/dist/runtime/api/models/LoginResult.js +3 -2
- package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -5
- package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -11
- package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -10
- package/dist/runtime/api/models/MongoIndex.d.ts +4 -28
- package/dist/runtime/api/models/MongoIndex.js +3 -2
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -3
- package/dist/runtime/api/models/PipelineStage.d.ts +1 -5
- package/dist/runtime/api/models/RenameRequest.d.ts +34 -0
- package/dist/runtime/api/models/RenameRequest.js +28 -0
- package/dist/runtime/api/models/RenameResponse.d.ts +30 -0
- package/dist/runtime/api/models/RenameResponse.js +26 -0
- package/dist/runtime/api/models/Role.d.ts +1 -7
- package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -9
- package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -13
- package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -7
- package/dist/runtime/api/models/SearchRequest.d.ts +1 -7
- package/dist/runtime/api/models/SettingsResponse.d.ts +2 -10
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +2 -6
- package/dist/runtime/api/models/UpdateRequest.d.ts +3 -7
- package/dist/runtime/api/models/UpdateResponse.d.ts +1 -9
- package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -5
- package/dist/runtime/api/models/UserInformation.d.ts +1 -9
- package/dist/runtime/api/models/UserProfile.d.ts +1 -11
- package/dist/runtime/api/models/Version.d.ts +1 -7
- package/dist/runtime/api/models/Version.js +3 -2
- package/dist/runtime/api/models/index.d.ts +9 -0
- package/dist/runtime/api/models/index.js +9 -0
- package/dist/runtime/api/runtime.d.ts +35 -2
- package/dist/runtime/api/runtime.js +84 -4
- package/dist/runtime/composables/mongocampApiFiles.d.ts +1 -1
- package/dist/runtime/composables/mongocampStorage.d.ts +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,38 @@
|
|
|
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.8.2
|
|
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 CopyResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface CopyResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
name: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
count: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
indexes: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CopyResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCopyResponse(value: object): value is CopyResponse;
|
|
35
|
+
export declare function CopyResponseFromJSON(json: any): CopyResponse;
|
|
36
|
+
export declare function CopyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CopyResponse;
|
|
37
|
+
export declare function CopyResponseToJSON(json: any): CopyResponse;
|
|
38
|
+
export declare function CopyResponseToJSONTyped(value?: CopyResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export function instanceOfCopyResponse(value) {
|
|
2
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
3
|
+
if (!("count" in value) || value["count"] === void 0) return false;
|
|
4
|
+
if (!("indexes" in value) || value["indexes"] === void 0) return false;
|
|
5
|
+
return true;
|
|
6
|
+
}
|
|
7
|
+
export function CopyResponseFromJSON(json) {
|
|
8
|
+
return CopyResponseFromJSONTyped(json, false);
|
|
9
|
+
}
|
|
10
|
+
export function CopyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
11
|
+
if (json == null) {
|
|
12
|
+
return json;
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
"name": json["name"],
|
|
16
|
+
"count": json["count"],
|
|
17
|
+
"indexes": json["indexes"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function CopyResponseToJSON(json) {
|
|
21
|
+
return CopyResponseToJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function CopyResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
24
|
+
if (value == null) {
|
|
25
|
+
return value;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
"name": value["name"],
|
|
29
|
+
"count": value["count"],
|
|
30
|
+
"indexes": value["indexes"]
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -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.8.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,8 +17,6 @@
|
|
|
17
17
|
export interface CountResponse {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof CountResponse
|
|
22
20
|
*/
|
|
23
21
|
count: number;
|
|
24
22
|
}
|
|
@@ -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.8.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,35 +17,25 @@
|
|
|
17
17
|
export interface DatabaseInfo {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof DatabaseInfo
|
|
22
20
|
*/
|
|
23
21
|
name: string;
|
|
24
22
|
/**
|
|
25
23
|
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof DatabaseInfo
|
|
28
24
|
*/
|
|
29
25
|
sizeOnDisk: number;
|
|
30
26
|
/**
|
|
31
27
|
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof DatabaseInfo
|
|
34
28
|
*/
|
|
35
29
|
empty: boolean;
|
|
36
30
|
/**
|
|
37
31
|
*
|
|
38
|
-
* @type {Date}
|
|
39
|
-
* @memberof DatabaseInfo
|
|
40
32
|
*/
|
|
41
33
|
fetched: Date;
|
|
42
34
|
/**
|
|
43
35
|
*
|
|
44
|
-
* @type {{ [key: string]: any; }}
|
|
45
|
-
* @memberof DatabaseInfo
|
|
46
36
|
*/
|
|
47
37
|
map: {
|
|
48
|
-
[key: string]: any;
|
|
38
|
+
[key: string]: any | null;
|
|
49
39
|
};
|
|
50
40
|
}
|
|
51
41
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { parseDateTime, serializeDateTime } from "../runtime.js";
|
|
1
2
|
export function instanceOfDatabaseInfo(value) {
|
|
2
3
|
if (!("name" in value) || value["name"] === void 0) return false;
|
|
3
4
|
if (!("sizeOnDisk" in value) || value["sizeOnDisk"] === void 0) return false;
|
|
@@ -17,7 +18,7 @@ export function DatabaseInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
18
|
"name": json["name"],
|
|
18
19
|
"sizeOnDisk": json["sizeOnDisk"],
|
|
19
20
|
"empty": json["empty"],
|
|
20
|
-
"fetched":
|
|
21
|
+
"fetched": json["fetched"] == null ? json["fetched"] : parseDateTime(json["fetched"]),
|
|
21
22
|
"map": json["map"]
|
|
22
23
|
};
|
|
23
24
|
}
|
|
@@ -32,7 +33,7 @@ export function DatabaseInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
32
33
|
"name": value["name"],
|
|
33
34
|
"sizeOnDisk": value["sizeOnDisk"],
|
|
34
35
|
"empty": value["empty"],
|
|
35
|
-
"fetched": value["fetched"]
|
|
36
|
+
"fetched": value["fetched"] == null ? value["fetched"] : serializeDateTime(value["fetched"]),
|
|
36
37
|
"map": value["map"]
|
|
37
38
|
};
|
|
38
39
|
}
|
|
@@ -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.8.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,14 +17,10 @@
|
|
|
17
17
|
export interface DeleteResponse {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
|
-
* @type {boolean}
|
|
21
|
-
* @memberof DeleteResponse
|
|
22
20
|
*/
|
|
23
21
|
wasAcknowledged: boolean;
|
|
24
22
|
/**
|
|
25
23
|
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof DeleteResponse
|
|
28
24
|
*/
|
|
29
25
|
deletedCount: number;
|
|
30
26
|
}
|
|
@@ -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.8.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,20 +17,14 @@
|
|
|
17
17
|
export interface ErrorDescription {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof ErrorDescription
|
|
22
20
|
*/
|
|
23
21
|
code: number;
|
|
24
22
|
/**
|
|
25
23
|
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ErrorDescription
|
|
28
24
|
*/
|
|
29
25
|
msg: string;
|
|
30
26
|
/**
|
|
31
27
|
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ErrorDescription
|
|
34
28
|
*/
|
|
35
29
|
additionalInfo: string;
|
|
36
30
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.8.2
|
|
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 { FieldTypeCount } from './FieldTypeCount.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FieldInfo
|
|
17
|
+
*/
|
|
18
|
+
export interface FieldInfo {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
path: string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
types?: Array<FieldTypeCount>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the FieldInfo interface.
|
|
30
|
+
*/
|
|
31
|
+
export declare function instanceOfFieldInfo(value: object): value is FieldInfo;
|
|
32
|
+
export declare function FieldInfoFromJSON(json: any): FieldInfo;
|
|
33
|
+
export declare function FieldInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldInfo;
|
|
34
|
+
export declare function FieldInfoToJSON(json: any): FieldInfo;
|
|
35
|
+
export declare function FieldInfoToJSONTyped(value?: FieldInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FieldTypeCountFromJSON,
|
|
3
|
+
FieldTypeCountToJSON
|
|
4
|
+
} from "./FieldTypeCount.js";
|
|
5
|
+
export function instanceOfFieldInfo(value) {
|
|
6
|
+
if (!("path" in value) || value["path"] === void 0) return false;
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
export function FieldInfoFromJSON(json) {
|
|
10
|
+
return FieldInfoFromJSONTyped(json, false);
|
|
11
|
+
}
|
|
12
|
+
export function FieldInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if (json == null) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
"path": json["path"],
|
|
18
|
+
"types": json["types"] == null ? void 0 : json["types"].map(FieldTypeCountFromJSON)
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export function FieldInfoToJSON(json) {
|
|
22
|
+
return FieldInfoToJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function FieldInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
25
|
+
if (value == null) {
|
|
26
|
+
return value;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
"path": value["path"],
|
|
30
|
+
"types": value["types"] == null ? void 0 : value["types"].map(FieldTypeCountToJSON)
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -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.8.2
|
|
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 FieldTypeCount
|
|
16
|
+
*/
|
|
17
|
+
export interface FieldTypeCount {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
type: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
count: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the FieldTypeCount interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfFieldTypeCount(value: object): value is FieldTypeCount;
|
|
31
|
+
export declare function FieldTypeCountFromJSON(json: any): FieldTypeCount;
|
|
32
|
+
export declare function FieldTypeCountFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldTypeCount;
|
|
33
|
+
export declare function FieldTypeCountToJSON(json: any): FieldTypeCount;
|
|
34
|
+
export declare function FieldTypeCountToJSONTyped(value?: FieldTypeCount | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export function instanceOfFieldTypeCount(value) {
|
|
2
|
+
if (!("type" in value) || value["type"] === void 0) return false;
|
|
3
|
+
if (!("count" in value) || value["count"] === void 0) return false;
|
|
4
|
+
return true;
|
|
5
|
+
}
|
|
6
|
+
export function FieldTypeCountFromJSON(json) {
|
|
7
|
+
return FieldTypeCountFromJSONTyped(json, false);
|
|
8
|
+
}
|
|
9
|
+
export function FieldTypeCountFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
+
if (json == null) {
|
|
11
|
+
return json;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
"type": json["type"],
|
|
15
|
+
"count": json["count"]
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export function FieldTypeCountToJSON(json) {
|
|
19
|
+
return FieldTypeCountToJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
export function FieldTypeCountToJSONTyped(value, ignoreDiscriminator = false) {
|
|
22
|
+
if (value == null) {
|
|
23
|
+
return value;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
"type": value["type"],
|
|
27
|
+
"count": value["count"]
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -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.8.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,41 +17,29 @@
|
|
|
17
17
|
export interface FileInformation {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof FileInformation
|
|
22
20
|
*/
|
|
23
21
|
id: string;
|
|
24
22
|
/**
|
|
25
23
|
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof FileInformation
|
|
28
24
|
*/
|
|
29
25
|
filename: string;
|
|
30
26
|
/**
|
|
31
27
|
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof FileInformation
|
|
34
28
|
*/
|
|
35
29
|
length: number;
|
|
36
30
|
/**
|
|
37
31
|
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof FileInformation
|
|
40
32
|
*/
|
|
41
33
|
chunkSize: number;
|
|
42
34
|
/**
|
|
43
35
|
*
|
|
44
|
-
* @type {Date}
|
|
45
|
-
* @memberof FileInformation
|
|
46
36
|
*/
|
|
47
37
|
uploadDate: Date;
|
|
48
38
|
/**
|
|
49
39
|
*
|
|
50
|
-
* @type {{ [key: string]: any; }}
|
|
51
|
-
* @memberof FileInformation
|
|
52
40
|
*/
|
|
53
41
|
metadata: {
|
|
54
|
-
[key: string]: any;
|
|
42
|
+
[key: string]: any | null;
|
|
55
43
|
};
|
|
56
44
|
}
|
|
57
45
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { parseDateTime, serializeDateTime } from "../runtime.js";
|
|
1
2
|
export function instanceOfFileInformation(value) {
|
|
2
|
-
if (!("id" in value) || value["id"] === void 0) return false;
|
|
3
|
+
if (!("id" in value) && !("_id" in value) || value["id"] === void 0 && value["_id"] === void 0) return false;
|
|
3
4
|
if (!("filename" in value) || value["filename"] === void 0) return false;
|
|
4
5
|
if (!("length" in value) || value["length"] === void 0) return false;
|
|
5
6
|
if (!("chunkSize" in value) || value["chunkSize"] === void 0) return false;
|
|
@@ -19,7 +20,7 @@ export function FileInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
20
|
"filename": json["filename"],
|
|
20
21
|
"length": json["length"],
|
|
21
22
|
"chunkSize": json["chunkSize"],
|
|
22
|
-
"uploadDate":
|
|
23
|
+
"uploadDate": json["uploadDate"] == null ? json["uploadDate"] : parseDateTime(json["uploadDate"]),
|
|
23
24
|
"metadata": json["metadata"]
|
|
24
25
|
};
|
|
25
26
|
}
|
|
@@ -35,7 +36,7 @@ export function FileInformationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
35
36
|
"filename": value["filename"],
|
|
36
37
|
"length": value["length"],
|
|
37
38
|
"chunkSize": value["chunkSize"],
|
|
38
|
-
"uploadDate": value["uploadDate"]
|
|
39
|
+
"uploadDate": value["uploadDate"] == null ? value["uploadDate"] : serializeDateTime(value["uploadDate"]),
|
|
39
40
|
"metadata": value["metadata"]
|
|
40
41
|
};
|
|
41
42
|
}
|
|
@@ -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.8.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,32 +17,22 @@
|
|
|
17
17
|
export interface Grant {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Grant
|
|
22
20
|
*/
|
|
23
21
|
name: string;
|
|
24
22
|
/**
|
|
25
23
|
*
|
|
26
|
-
* @type {boolean}
|
|
27
|
-
* @memberof Grant
|
|
28
24
|
*/
|
|
29
25
|
read: boolean;
|
|
30
26
|
/**
|
|
31
27
|
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof Grant
|
|
34
28
|
*/
|
|
35
29
|
write: boolean;
|
|
36
30
|
/**
|
|
37
31
|
*
|
|
38
|
-
* @type {boolean}
|
|
39
|
-
* @memberof Grant
|
|
40
32
|
*/
|
|
41
33
|
administrate: boolean;
|
|
42
34
|
/**
|
|
43
35
|
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof Grant
|
|
46
36
|
*/
|
|
47
37
|
grantType: string;
|
|
48
38
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.8.2
|
|
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 { InsertError } from './InsertError.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ImportResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ImportResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
read: number;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
inserted: number;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
failed: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
errors?: Array<InsertError>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
errorsTruncated: boolean;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ImportResponse interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfImportResponse(value: object): value is ImportResponse;
|
|
44
|
+
export declare function ImportResponseFromJSON(json: any): ImportResponse;
|
|
45
|
+
export declare function ImportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportResponse;
|
|
46
|
+
export declare function ImportResponseToJSON(json: any): ImportResponse;
|
|
47
|
+
export declare function ImportResponseToJSONTyped(value?: ImportResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
InsertErrorFromJSON,
|
|
3
|
+
InsertErrorToJSON
|
|
4
|
+
} from "./InsertError.js";
|
|
5
|
+
export function instanceOfImportResponse(value) {
|
|
6
|
+
if (!("read" in value) || value["read"] === void 0) return false;
|
|
7
|
+
if (!("inserted" in value) || value["inserted"] === void 0) return false;
|
|
8
|
+
if (!("failed" in value) || value["failed"] === void 0) return false;
|
|
9
|
+
if (!("errorsTruncated" in value) || value["errorsTruncated"] === void 0) return false;
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
export function ImportResponseFromJSON(json) {
|
|
13
|
+
return ImportResponseFromJSONTyped(json, false);
|
|
14
|
+
}
|
|
15
|
+
export function ImportResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
16
|
+
if (json == null) {
|
|
17
|
+
return json;
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
"read": json["read"],
|
|
21
|
+
"inserted": json["inserted"],
|
|
22
|
+
"failed": json["failed"],
|
|
23
|
+
"errors": json["errors"] == null ? void 0 : json["errors"].map(InsertErrorFromJSON),
|
|
24
|
+
"errorsTruncated": json["errorsTruncated"]
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export function ImportResponseToJSON(json) {
|
|
28
|
+
return ImportResponseToJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ImportResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
31
|
+
if (value == null) {
|
|
32
|
+
return value;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
"read": value["read"],
|
|
36
|
+
"inserted": value["inserted"],
|
|
37
|
+
"failed": value["failed"],
|
|
38
|
+
"errors": value["errors"] == null ? void 0 : value["errors"].map(InsertErrorToJSON),
|
|
39
|
+
"errorsTruncated": value["errorsTruncated"]
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -2,13 +2,14 @@
|
|
|
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.8.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { IndexKey } from './IndexKey.js';
|
|
12
13
|
import type { IndexOptionsRequest } from './IndexOptionsRequest.js';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -18,18 +19,18 @@ import type { IndexOptionsRequest } from './IndexOptionsRequest.js';
|
|
|
18
19
|
export interface IndexCreateRequest {
|
|
19
20
|
/**
|
|
20
21
|
*
|
|
21
|
-
* @type {{ [key: string]: number; }}
|
|
22
|
-
* @memberof IndexCreateRequest
|
|
23
22
|
*/
|
|
24
|
-
keys
|
|
23
|
+
keys?: {
|
|
25
24
|
[key: string]: number;
|
|
26
25
|
};
|
|
27
26
|
/**
|
|
28
27
|
*
|
|
29
|
-
* @type {IndexOptionsRequest}
|
|
30
|
-
* @memberof IndexCreateRequest
|
|
31
28
|
*/
|
|
32
29
|
indexOptionsRequest?: IndexOptionsRequest;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
orderedKeys?: Array<IndexKey>;
|
|
33
34
|
}
|
|
34
35
|
/**
|
|
35
36
|
* Check if a given object implements the IndexCreateRequest interface.
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IndexKeyFromJSON,
|
|
3
|
+
IndexKeyToJSON
|
|
4
|
+
} from "./IndexKey.js";
|
|
1
5
|
import {
|
|
2
6
|
IndexOptionsRequestFromJSON,
|
|
3
7
|
IndexOptionsRequestToJSON
|
|
4
8
|
} from "./IndexOptionsRequest.js";
|
|
5
9
|
export function instanceOfIndexCreateRequest(value) {
|
|
6
|
-
if (!("keys" in value) || value["keys"] === void 0) return false;
|
|
7
10
|
return true;
|
|
8
11
|
}
|
|
9
12
|
export function IndexCreateRequestFromJSON(json) {
|
|
@@ -14,8 +17,9 @@ export function IndexCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
17
|
return json;
|
|
15
18
|
}
|
|
16
19
|
return {
|
|
17
|
-
"keys": json["keys"],
|
|
18
|
-
"indexOptionsRequest": json["indexOptionsRequest"] == null ? void 0 : IndexOptionsRequestFromJSON(json["indexOptionsRequest"])
|
|
20
|
+
"keys": json["keys"] == null ? void 0 : json["keys"],
|
|
21
|
+
"indexOptionsRequest": json["indexOptionsRequest"] == null ? void 0 : IndexOptionsRequestFromJSON(json["indexOptionsRequest"]),
|
|
22
|
+
"orderedKeys": json["orderedKeys"] == null ? void 0 : json["orderedKeys"].map(IndexKeyFromJSON)
|
|
19
23
|
};
|
|
20
24
|
}
|
|
21
25
|
export function IndexCreateRequestToJSON(json) {
|
|
@@ -27,6 +31,7 @@ export function IndexCreateRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
27
31
|
}
|
|
28
32
|
return {
|
|
29
33
|
"keys": value["keys"],
|
|
30
|
-
"indexOptionsRequest": IndexOptionsRequestToJSON(value["indexOptionsRequest"])
|
|
34
|
+
"indexOptionsRequest": IndexOptionsRequestToJSON(value["indexOptionsRequest"]),
|
|
35
|
+
"orderedKeys": value["orderedKeys"] == null ? void 0 : value["orderedKeys"].map(IndexKeyToJSON)
|
|
31
36
|
};
|
|
32
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.8.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,8 +17,6 @@
|
|
|
17
17
|
export interface IndexCreateResponse {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof IndexCreateResponse
|
|
22
20
|
*/
|
|
23
21
|
name: string;
|
|
24
22
|
}
|
|
@@ -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.8.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,8 +17,6 @@
|
|
|
17
17
|
export interface IndexDropResponse {
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
|
-
* @type {boolean}
|
|
21
|
-
* @memberof IndexDropResponse
|
|
22
20
|
*/
|
|
23
21
|
dropped: boolean;
|
|
24
22
|
}
|