@sfxcode/nuxt-mongocamp-server 1.6.3 → 1.8.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 +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/api/.openapi-generator/FILES +30 -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 +19 -2
- package/dist/runtime/api/apis/AuthApi.js +48 -0
- 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 +236 -2
- package/dist/runtime/api/apis/DatabaseApi.d.ts +1 -1
- package/dist/runtime/api/apis/DocumentApi.d.ts +92 -2
- package/dist/runtime/api/apis/DocumentApi.js +275 -0
- package/dist/runtime/api/apis/FileApi.d.ts +1 -1
- package/dist/runtime/api/apis/IndexApi.d.ts +36 -2
- package/dist/runtime/api/apis/IndexApi.js +104 -0
- package/dist/runtime/api/apis/JobsApi.d.ts +1 -1
- package/dist/runtime/api/apis/SystemApi.d.ts +1 -1
- package/dist/runtime/api/docs/AuthApi.md +78 -0
- package/dist/runtime/api/docs/CollectionApi.md +335 -2
- package/dist/runtime/api/docs/CollectionPermission.md +40 -0
- package/dist/runtime/api/docs/CollectionSummary.md +50 -0
- package/dist/runtime/api/docs/CopyRequest.md +40 -0
- package/dist/runtime/api/docs/CopyResponse.md +38 -0
- package/dist/runtime/api/docs/CountResponse.md +34 -0
- package/dist/runtime/api/docs/DocumentApi.md +377 -8
- package/dist/runtime/api/docs/FieldInfo.md +36 -0
- package/dist/runtime/api/docs/FieldTypeCount.md +36 -0
- package/dist/runtime/api/docs/ImportResponse.md +42 -0
- package/dist/runtime/api/docs/IndexApi.md +156 -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 +40 -0
- package/dist/runtime/api/docs/InsertError.md +38 -0
- package/dist/runtime/api/docs/InsertResponse.md +4 -0
- package/dist/runtime/api/docs/RenameRequest.md +36 -0
- package/dist/runtime/api/docs/RenameResponse.md +34 -0
- package/dist/runtime/api/docs/SearchRequest.md +38 -0
- package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
- 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/CollectionPermission.d.ts +50 -0
- package/dist/runtime/api/models/CollectionPermission.js +35 -0
- package/dist/runtime/api/models/CollectionStatus.d.ts +1 -1
- package/dist/runtime/api/models/CollectionSummary.d.ts +80 -0
- package/dist/runtime/api/models/CollectionSummary.js +50 -0
- package/dist/runtime/api/models/CopyRequest.d.ts +50 -0
- package/dist/runtime/api/models/CopyRequest.js +32 -0
- package/dist/runtime/api/models/CopyResponse.d.ts +44 -0
- package/dist/runtime/api/models/CopyResponse.js +32 -0
- package/dist/runtime/api/models/CountResponse.d.ts +32 -0
- package/dist/runtime/api/models/CountResponse.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 +39 -0
- package/dist/runtime/api/models/FieldInfo.js +32 -0
- package/dist/runtime/api/models/FieldTypeCount.d.ts +38 -0
- package/dist/runtime/api/models/FieldTypeCount.js +29 -0
- 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 +57 -0
- package/dist/runtime/api/models/ImportResponse.js +41 -0
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +9 -2
- package/dist/runtime/api/models/IndexCreateRequest.js +9 -4
- 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 +99 -0
- package/dist/runtime/api/models/IndexInfo.js +54 -0
- package/dist/runtime/api/models/IndexKey.d.ts +38 -0
- package/dist/runtime/api/models/IndexKey.js +29 -0
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +37 -1
- package/dist/runtime/api/models/IndexOptionsRequest.js +12 -2
- package/dist/runtime/api/models/IndexUsage.d.ts +52 -0
- package/dist/runtime/api/models/IndexUsage.js +35 -0
- package/dist/runtime/api/models/InsertError.d.ts +44 -0
- package/dist/runtime/api/models/InsertError.js +32 -0
- package/dist/runtime/api/models/InsertResponse.d.ts +14 -1
- package/dist/runtime/api/models/InsertResponse.js +10 -2
- 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/PasswordUpdateRequest.d.ts +1 -1
- package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
- package/dist/runtime/api/models/RenameRequest.d.ts +38 -0
- package/dist/runtime/api/models/RenameRequest.js +28 -0
- package/dist/runtime/api/models/RenameResponse.d.ts +32 -0
- package/dist/runtime/api/models/RenameResponse.js +26 -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 +44 -0
- package/dist/runtime/api/models/SearchRequest.js +29 -0
- package/dist/runtime/api/models/SettingsResponse.d.ts +1 -1
- 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 +15 -0
- package/dist/runtime/api/models/index.js +15 -0
- package/dist/runtime/api/runtime.d.ts +1 -1
- package/package.json +8 -8
|
@@ -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.1
|
|
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.8.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,99 @@
|
|
|
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.1
|
|
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 { IndexKey } from './IndexKey.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IndexInfo
|
|
17
|
+
*/
|
|
18
|
+
export interface IndexInfo {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof IndexInfo
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<IndexKey>}
|
|
28
|
+
* @memberof IndexInfo
|
|
29
|
+
*/
|
|
30
|
+
keys?: Array<IndexKey>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof IndexInfo
|
|
35
|
+
*/
|
|
36
|
+
unique: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof IndexInfo
|
|
41
|
+
*/
|
|
42
|
+
sparse: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof IndexInfo
|
|
47
|
+
*/
|
|
48
|
+
hidden: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {{ [key: string]: any; }}
|
|
52
|
+
* @memberof IndexInfo
|
|
53
|
+
*/
|
|
54
|
+
partialFilterExpression?: {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {{ [key: string]: any; }}
|
|
60
|
+
* @memberof IndexInfo
|
|
61
|
+
*/
|
|
62
|
+
collation?: {
|
|
63
|
+
[key: string]: any;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {{ [key: string]: any; }}
|
|
68
|
+
* @memberof IndexInfo
|
|
69
|
+
*/
|
|
70
|
+
weights?: {
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof IndexInfo
|
|
77
|
+
*/
|
|
78
|
+
defaultLanguage?: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof IndexInfo
|
|
83
|
+
*/
|
|
84
|
+
expireAfterSeconds?: number;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof IndexInfo
|
|
89
|
+
*/
|
|
90
|
+
version: number;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Check if a given object implements the IndexInfo interface.
|
|
94
|
+
*/
|
|
95
|
+
export declare function instanceOfIndexInfo(value: object): value is IndexInfo;
|
|
96
|
+
export declare function IndexInfoFromJSON(json: any): IndexInfo;
|
|
97
|
+
export declare function IndexInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexInfo;
|
|
98
|
+
export declare function IndexInfoToJSON(json: any): IndexInfo;
|
|
99
|
+
export declare function IndexInfoToJSONTyped(value?: IndexInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IndexKeyFromJSON,
|
|
3
|
+
IndexKeyToJSON
|
|
4
|
+
} from "./IndexKey.js";
|
|
5
|
+
export function instanceOfIndexInfo(value) {
|
|
6
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
7
|
+
if (!("unique" in value) || value["unique"] === void 0) return false;
|
|
8
|
+
if (!("sparse" in value) || value["sparse"] === void 0) return false;
|
|
9
|
+
if (!("hidden" in value) || value["hidden"] === void 0) return false;
|
|
10
|
+
if (!("version" in value) || value["version"] === void 0) return false;
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
export function IndexInfoFromJSON(json) {
|
|
14
|
+
return IndexInfoFromJSONTyped(json, false);
|
|
15
|
+
}
|
|
16
|
+
export function IndexInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
17
|
+
if (json == null) {
|
|
18
|
+
return json;
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
"name": json["name"],
|
|
22
|
+
"keys": json["keys"] == null ? void 0 : json["keys"].map(IndexKeyFromJSON),
|
|
23
|
+
"unique": json["unique"],
|
|
24
|
+
"sparse": json["sparse"],
|
|
25
|
+
"hidden": json["hidden"],
|
|
26
|
+
"partialFilterExpression": json["partialFilterExpression"] == null ? void 0 : json["partialFilterExpression"],
|
|
27
|
+
"collation": json["collation"] == null ? void 0 : json["collation"],
|
|
28
|
+
"weights": json["weights"] == null ? void 0 : json["weights"],
|
|
29
|
+
"defaultLanguage": json["defaultLanguage"] == null ? void 0 : json["defaultLanguage"],
|
|
30
|
+
"expireAfterSeconds": json["expireAfterSeconds"] == null ? void 0 : json["expireAfterSeconds"],
|
|
31
|
+
"version": json["version"]
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function IndexInfoToJSON(json) {
|
|
35
|
+
return IndexInfoToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function IndexInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
"name": value["name"],
|
|
43
|
+
"keys": value["keys"] == null ? void 0 : value["keys"].map(IndexKeyToJSON),
|
|
44
|
+
"unique": value["unique"],
|
|
45
|
+
"sparse": value["sparse"],
|
|
46
|
+
"hidden": value["hidden"],
|
|
47
|
+
"partialFilterExpression": value["partialFilterExpression"],
|
|
48
|
+
"collation": value["collation"],
|
|
49
|
+
"weights": value["weights"],
|
|
50
|
+
"defaultLanguage": value["defaultLanguage"],
|
|
51
|
+
"expireAfterSeconds": value["expireAfterSeconds"],
|
|
52
|
+
"version": value["version"]
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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.1
|
|
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 IndexKey
|
|
16
|
+
*/
|
|
17
|
+
export interface IndexKey {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IndexKey
|
|
22
|
+
*/
|
|
23
|
+
field: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof IndexKey
|
|
28
|
+
*/
|
|
29
|
+
direction: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the IndexKey interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfIndexKey(value: object): value is IndexKey;
|
|
35
|
+
export declare function IndexKeyFromJSON(json: any): IndexKey;
|
|
36
|
+
export declare function IndexKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexKey;
|
|
37
|
+
export declare function IndexKeyToJSON(json: any): IndexKey;
|
|
38
|
+
export declare function IndexKeyToJSONTyped(value?: IndexKey | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export function instanceOfIndexKey(value) {
|
|
2
|
+
if (!("field" in value) || value["field"] === void 0) return false;
|
|
3
|
+
if (!("direction" in value) || value["direction"] === void 0) return false;
|
|
4
|
+
return true;
|
|
5
|
+
}
|
|
6
|
+
export function IndexKeyFromJSON(json) {
|
|
7
|
+
return IndexKeyFromJSONTyped(json, false);
|
|
8
|
+
}
|
|
9
|
+
export function IndexKeyFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
+
if (json == null) {
|
|
11
|
+
return json;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
"field": json["field"],
|
|
15
|
+
"direction": json["direction"]
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export function IndexKeyToJSON(json) {
|
|
19
|
+
return IndexKeyToJSONTyped(json, false);
|
|
20
|
+
}
|
|
21
|
+
export function IndexKeyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
22
|
+
if (value == null) {
|
|
23
|
+
return value;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
"field": value["field"],
|
|
27
|
+
"direction": value["direction"]
|
|
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.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -63,6 +63,42 @@ export interface IndexOptionsRequest {
|
|
|
63
63
|
* @memberof IndexOptionsRequest
|
|
64
64
|
*/
|
|
65
65
|
min?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof IndexOptionsRequest
|
|
70
|
+
*/
|
|
71
|
+
sparse?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof IndexOptionsRequest
|
|
76
|
+
*/
|
|
77
|
+
hidden?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {{ [key: string]: any; }}
|
|
81
|
+
* @memberof IndexOptionsRequest
|
|
82
|
+
*/
|
|
83
|
+
partialFilterExpression?: {
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {{ [key: string]: number; }}
|
|
89
|
+
* @memberof IndexOptionsRequest
|
|
90
|
+
*/
|
|
91
|
+
weights?: {
|
|
92
|
+
[key: string]: number;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {{ [key: string]: any; }}
|
|
97
|
+
* @memberof IndexOptionsRequest
|
|
98
|
+
*/
|
|
99
|
+
collation?: {
|
|
100
|
+
[key: string]: any;
|
|
101
|
+
};
|
|
66
102
|
}
|
|
67
103
|
/**
|
|
68
104
|
* Check if a given object implements the IndexOptionsRequest interface.
|
|
@@ -16,7 +16,12 @@ export function IndexOptionsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
16
16
|
"expireAfter": json["expireAfter"] == null ? void 0 : json["expireAfter"],
|
|
17
17
|
"unique": json["unique"] == null ? void 0 : json["unique"],
|
|
18
18
|
"max": json["max"] == null ? void 0 : json["max"],
|
|
19
|
-
"min": json["min"] == null ? void 0 : json["min"]
|
|
19
|
+
"min": json["min"] == null ? void 0 : json["min"],
|
|
20
|
+
"sparse": json["sparse"] == null ? void 0 : json["sparse"],
|
|
21
|
+
"hidden": json["hidden"] == null ? void 0 : json["hidden"],
|
|
22
|
+
"partialFilterExpression": json["partialFilterExpression"] == null ? void 0 : json["partialFilterExpression"],
|
|
23
|
+
"weights": json["weights"] == null ? void 0 : json["weights"],
|
|
24
|
+
"collation": json["collation"] == null ? void 0 : json["collation"]
|
|
20
25
|
};
|
|
21
26
|
}
|
|
22
27
|
export function IndexOptionsRequestToJSON(json) {
|
|
@@ -34,6 +39,11 @@ export function IndexOptionsRequestToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
34
39
|
"expireAfter": value["expireAfter"],
|
|
35
40
|
"unique": value["unique"],
|
|
36
41
|
"max": value["max"],
|
|
37
|
-
"min": value["min"]
|
|
42
|
+
"min": value["min"],
|
|
43
|
+
"sparse": value["sparse"],
|
|
44
|
+
"hidden": value["hidden"],
|
|
45
|
+
"partialFilterExpression": value["partialFilterExpression"],
|
|
46
|
+
"weights": value["weights"],
|
|
47
|
+
"collation": value["collation"]
|
|
38
48
|
};
|
|
39
49
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.1
|
|
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 IndexUsage
|
|
16
|
+
*/
|
|
17
|
+
export interface IndexUsage {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IndexUsage
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{ [key: string]: any; }}
|
|
27
|
+
* @memberof IndexUsage
|
|
28
|
+
*/
|
|
29
|
+
key: {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof IndexUsage
|
|
36
|
+
*/
|
|
37
|
+
ops: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Date}
|
|
41
|
+
* @memberof IndexUsage
|
|
42
|
+
*/
|
|
43
|
+
since: Date;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the IndexUsage interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfIndexUsage(value: object): value is IndexUsage;
|
|
49
|
+
export declare function IndexUsageFromJSON(json: any): IndexUsage;
|
|
50
|
+
export declare function IndexUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexUsage;
|
|
51
|
+
export declare function IndexUsageToJSON(json: any): IndexUsage;
|
|
52
|
+
export declare function IndexUsageToJSONTyped(value?: IndexUsage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export function instanceOfIndexUsage(value) {
|
|
2
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
3
|
+
if (!("key" in value) || value["key"] === void 0) return false;
|
|
4
|
+
if (!("ops" in value) || value["ops"] === void 0) return false;
|
|
5
|
+
if (!("since" in value) || value["since"] === void 0) return false;
|
|
6
|
+
return true;
|
|
7
|
+
}
|
|
8
|
+
export function IndexUsageFromJSON(json) {
|
|
9
|
+
return IndexUsageFromJSONTyped(json, false);
|
|
10
|
+
}
|
|
11
|
+
export function IndexUsageFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if (json == null) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
"name": json["name"],
|
|
17
|
+
"key": json["key"],
|
|
18
|
+
"ops": json["ops"],
|
|
19
|
+
"since": new Date(json["since"])
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export function IndexUsageToJSON(json) {
|
|
23
|
+
return IndexUsageToJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function IndexUsageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
26
|
+
if (value == null) {
|
|
27
|
+
return value;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
"name": value["name"],
|
|
31
|
+
"key": value["key"],
|
|
32
|
+
"ops": value["ops"],
|
|
33
|
+
"since": value["since"].toISOString()
|
|
34
|
+
};
|
|
35
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.1
|
|
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 InsertError
|
|
16
|
+
*/
|
|
17
|
+
export interface InsertError {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof InsertError
|
|
22
|
+
*/
|
|
23
|
+
index: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof InsertError
|
|
28
|
+
*/
|
|
29
|
+
code: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InsertError
|
|
34
|
+
*/
|
|
35
|
+
message: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the InsertError interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfInsertError(value: object): value is InsertError;
|
|
41
|
+
export declare function InsertErrorFromJSON(json: any): InsertError;
|
|
42
|
+
export declare function InsertErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): InsertError;
|
|
43
|
+
export declare function InsertErrorToJSON(json: any): InsertError;
|
|
44
|
+
export declare function InsertErrorToJSONTyped(value?: InsertError | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export function instanceOfInsertError(value) {
|
|
2
|
+
if (!("index" in value) || value["index"] === void 0) return false;
|
|
3
|
+
if (!("code" in value) || value["code"] === void 0) return false;
|
|
4
|
+
if (!("message" in value) || value["message"] === void 0) return false;
|
|
5
|
+
return true;
|
|
6
|
+
}
|
|
7
|
+
export function InsertErrorFromJSON(json) {
|
|
8
|
+
return InsertErrorFromJSONTyped(json, false);
|
|
9
|
+
}
|
|
10
|
+
export function InsertErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
11
|
+
if (json == null) {
|
|
12
|
+
return json;
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
"index": json["index"],
|
|
16
|
+
"code": json["code"],
|
|
17
|
+
"message": json["message"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function InsertErrorToJSON(json) {
|
|
21
|
+
return InsertErrorToJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function InsertErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
24
|
+
if (value == null) {
|
|
25
|
+
return value;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
"index": value["index"],
|
|
29
|
+
"code": value["code"],
|
|
30
|
+
"message": value["message"]
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -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.1
|
|
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 { InsertError } from './InsertError.js';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -27,6 +28,18 @@ export interface InsertResponse {
|
|
|
27
28
|
* @memberof InsertResponse
|
|
28
29
|
*/
|
|
29
30
|
insertedIds?: Array<string>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof InsertResponse
|
|
35
|
+
*/
|
|
36
|
+
insertedCount?: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<InsertError>}
|
|
40
|
+
* @memberof InsertResponse
|
|
41
|
+
*/
|
|
42
|
+
errors?: Array<InsertError>;
|
|
30
43
|
}
|
|
31
44
|
/**
|
|
32
45
|
* Check if a given object implements the InsertResponse interface.
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
InsertErrorFromJSON,
|
|
3
|
+
InsertErrorToJSON
|
|
4
|
+
} from "./InsertError.js";
|
|
1
5
|
export function instanceOfInsertResponse(value) {
|
|
2
6
|
if (!("wasAcknowledged" in value) || value["wasAcknowledged"] === void 0) return false;
|
|
3
7
|
return true;
|
|
@@ -11,7 +15,9 @@ export function InsertResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11
15
|
}
|
|
12
16
|
return {
|
|
13
17
|
"wasAcknowledged": json["wasAcknowledged"],
|
|
14
|
-
"insertedIds": json["insertedIds"] == null ? void 0 : json["insertedIds"]
|
|
18
|
+
"insertedIds": json["insertedIds"] == null ? void 0 : json["insertedIds"],
|
|
19
|
+
"insertedCount": json["insertedCount"] == null ? void 0 : json["insertedCount"],
|
|
20
|
+
"errors": json["errors"] == null ? void 0 : json["errors"].map(InsertErrorFromJSON)
|
|
15
21
|
};
|
|
16
22
|
}
|
|
17
23
|
export function InsertResponseToJSON(json) {
|
|
@@ -23,6 +29,8 @@ export function InsertResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
23
29
|
}
|
|
24
30
|
return {
|
|
25
31
|
"wasAcknowledged": value["wasAcknowledged"],
|
|
26
|
-
"insertedIds": value["insertedIds"]
|
|
32
|
+
"insertedIds": value["insertedIds"],
|
|
33
|
+
"insertedCount": value["insertedCount"],
|
|
34
|
+
"errors": value["errors"] == null ? void 0 : value["errors"].map(InsertErrorToJSON)
|
|
27
35
|
};
|
|
28
36
|
}
|
|
@@ -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.1
|
|
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.8.1
|
|
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.8.1
|
|
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.8.1
|
|
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.8.1
|
|
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.8.1
|
|
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.8.1
|
|
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.8.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|