@sfxcode/nuxt-mongocamp-server 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/module.json +5 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/api/apis/AdminApi.d.ts +2 -2
- package/dist/runtime/api/apis/{AdminApi.mjs → AdminApi.js} +101 -65
- package/dist/runtime/api/apis/ApplicationApi.d.ts +2 -2
- package/dist/runtime/api/apis/{ApplicationApi.mjs → ApplicationApi.js} +24 -15
- package/dist/runtime/api/apis/AuthApi.d.ts +2 -2
- package/dist/runtime/api/apis/{AuthApi.mjs → AuthApi.js} +21 -15
- package/dist/runtime/api/apis/BucketApi.d.ts +2 -2
- package/dist/runtime/api/apis/{BucketApi.mjs → BucketApi.js} +24 -15
- package/dist/runtime/api/apis/CollectionApi.d.ts +2 -2
- package/dist/runtime/api/apis/{CollectionApi.mjs → CollectionApi.js} +99 -66
- package/dist/runtime/api/apis/DatabaseApi.d.ts +2 -2
- package/dist/runtime/api/apis/{DatabaseApi.mjs → DatabaseApi.js} +25 -16
- package/dist/runtime/api/apis/DocumentApi.d.ts +6 -6
- package/dist/runtime/api/apis/{DocumentApi.mjs → DocumentApi.js} +153 -93
- package/dist/runtime/api/apis/FileApi.d.ts +2 -2
- package/dist/runtime/api/apis/{FileApi.mjs → FileApi.js} +121 -76
- package/dist/runtime/api/apis/IndexApi.d.ts +2 -2
- package/dist/runtime/api/apis/{IndexApi.mjs → IndexApi.js} +119 -71
- package/dist/runtime/api/apis/InformationApi.d.ts +2 -2
- package/dist/runtime/api/apis/{InformationApi.mjs → InformationApi.js} +2 -2
- package/dist/runtime/api/apis/JobsApi.d.ts +2 -2
- package/dist/runtime/api/apis/{JobsApi.mjs → JobsApi.js} +53 -29
- package/dist/runtime/api/apis/index.d.ts +11 -11
- package/dist/runtime/api/apis/index.js +11 -0
- package/dist/runtime/api/index.d.ts +3 -3
- package/dist/runtime/api/index.js +3 -0
- package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
- package/dist/runtime/api/models/BucketInformation.js +32 -0
- package/dist/runtime/api/models/CollectionStatus.d.ts +3 -3
- package/dist/runtime/api/models/CollectionStatus.js +59 -0
- package/dist/runtime/api/models/DatabaseInfo.d.ts +2 -2
- package/dist/runtime/api/models/DatabaseInfo.js +35 -0
- package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
- package/dist/runtime/api/models/{DeleteResponse.mjs → DeleteResponse.js} +8 -12
- package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
- package/dist/runtime/api/models/{ErrorDescription.mjs → ErrorDescription.js} +10 -14
- package/dist/runtime/api/models/FileInformation.d.ts +2 -2
- package/dist/runtime/api/models/FileInformation.js +38 -0
- package/dist/runtime/api/models/Grant.d.ts +1 -1
- package/dist/runtime/api/models/Grant.js +35 -0
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +3 -3
- package/dist/runtime/api/models/IndexCreateRequest.js +29 -0
- package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
- package/dist/runtime/api/models/{IndexCreateResponse.mjs → IndexCreateResponse.js} +6 -10
- package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
- package/dist/runtime/api/models/{IndexDropResponse.mjs → IndexDropResponse.js} +6 -10
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +1 -1
- package/dist/runtime/api/models/IndexOptionsRequest.js +36 -0
- package/dist/runtime/api/models/InsertResponse.d.ts +1 -1
- package/dist/runtime/api/models/InsertResponse.js +25 -0
- package/dist/runtime/api/models/JobConfig.d.ts +1 -1
- package/dist/runtime/api/models/JobConfig.js +38 -0
- package/dist/runtime/api/models/JobInformation.d.ts +1 -1
- package/dist/runtime/api/models/JobInformation.js +44 -0
- package/dist/runtime/api/models/JsonSchema.d.ts +3 -3
- package/dist/runtime/api/models/JsonSchema.js +34 -0
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +2 -2
- package/dist/runtime/api/models/JsonSchemaDefinition.js +34 -0
- package/dist/runtime/api/models/JsonValueAny.d.ts +1 -1
- package/dist/runtime/api/models/{JsonValueAny.mjs → JsonValueAny.js} +6 -10
- package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
- package/dist/runtime/api/models/{JsonValueBoolean.mjs → JsonValueBoolean.js} +6 -10
- package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
- package/dist/runtime/api/models/{JsonValueString.mjs → JsonValueString.js} +6 -10
- package/dist/runtime/api/models/Login.d.ts +1 -1
- package/dist/runtime/api/models/{Login.mjs → Login.js} +8 -12
- package/dist/runtime/api/models/LoginResult.d.ts +2 -2
- package/dist/runtime/api/models/{LoginResult.mjs → LoginResult.js} +11 -15
- package/dist/runtime/api/models/MongoAggregateRequest.d.ts +2 -2
- package/dist/runtime/api/models/MongoAggregateRequest.js +29 -0
- package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -1
- package/dist/runtime/api/models/MongoCampConfiguration.js +35 -0
- package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -4
- package/dist/runtime/api/models/{MongoFindRequest.mjs → MongoFindRequest.js} +10 -14
- package/dist/runtime/api/models/MongoIndex.d.ts +4 -4
- package/dist/runtime/api/models/MongoIndex.js +55 -0
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
- package/dist/runtime/api/models/{PasswordUpdateRequest.mjs → PasswordUpdateRequest.js} +6 -10
- package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
- package/dist/runtime/api/models/{PipelineStage.mjs → PipelineStage.js} +8 -12
- package/dist/runtime/api/models/Role.d.ts +2 -2
- package/dist/runtime/api/models/Role.js +32 -0
- package/dist/runtime/api/models/SchemaAnalysis.d.ts +2 -2
- package/dist/runtime/api/models/SchemaAnalysis.js +35 -0
- package/dist/runtime/api/models/SchemaAnalysisField.d.ts +2 -2
- package/dist/runtime/api/models/SchemaAnalysisField.js +40 -0
- package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
- package/dist/runtime/api/models/{SchemaAnalysisFieldType.mjs → SchemaAnalysisFieldType.js} +10 -14
- package/dist/runtime/api/models/SettingsResponse.d.ts +2 -2
- package/dist/runtime/api/models/SettingsResponse.js +29 -0
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +2 -2
- package/dist/runtime/api/models/UpdateFileInformationRequest.js +24 -0
- package/dist/runtime/api/models/UpdateRequest.d.ts +3 -3
- package/dist/runtime/api/models/{UpdateRequest.mjs → UpdateRequest.js} +8 -12
- package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
- package/dist/runtime/api/models/UpdateResponse.js +31 -0
- package/dist/runtime/api/models/UpdateRoleRequest.d.ts +2 -2
- package/dist/runtime/api/models/UpdateRoleRequest.js +29 -0
- package/dist/runtime/api/models/UserInformation.d.ts +1 -1
- package/dist/runtime/api/models/UserInformation.js +30 -0
- package/dist/runtime/api/models/UserProfile.d.ts +2 -2
- package/dist/runtime/api/models/UserProfile.js +36 -0
- package/dist/runtime/api/models/Version.d.ts +1 -1
- package/dist/runtime/api/models/Version.js +29 -0
- package/dist/runtime/api/models/index.d.ts +39 -39
- package/dist/runtime/api/models/index.js +39 -0
- package/dist/runtime/api/runtime.d.ts +2 -3
- package/dist/runtime/api/{runtime.mjs → runtime.js} +0 -4
- package/dist/runtime/composables/mongocampApi.d.ts +1 -1
- package/dist/runtime/composables/{mongocampApi.mjs → mongocampApi.js} +3 -3
- package/dist/runtime/composables/mongocampAuth.d.ts +1 -1
- package/dist/runtime/composables/{mongocampAuth.mjs → mongocampAuth.js} +3 -3
- package/dist/runtime/composables/mongocampSearch.d.ts +1 -1
- package/dist/runtime/composables/{mongocampSearch.mjs → mongocampSearch.js} +1 -1
- package/dist/runtime/composables/mongocampStorage.d.ts +5 -0
- package/dist/runtime/composables/mongocampUser.d.ts +1 -1
- package/dist/types.d.mts +1 -16
- package/dist/types.d.ts +1 -16
- package/package.json +18 -17
- package/dist/runtime/api/apis/index.mjs +0 -11
- package/dist/runtime/api/index.mjs +0 -3
- package/dist/runtime/api/models/BucketInformation.mjs +0 -36
- package/dist/runtime/api/models/CollectionStatus.mjs +0 -63
- package/dist/runtime/api/models/DatabaseInfo.mjs +0 -39
- package/dist/runtime/api/models/FileInformation.mjs +0 -42
- package/dist/runtime/api/models/Grant.mjs +0 -39
- package/dist/runtime/api/models/IndexCreateRequest.mjs +0 -34
- package/dist/runtime/api/models/IndexOptionsRequest.mjs +0 -41
- package/dist/runtime/api/models/InsertResponse.mjs +0 -30
- package/dist/runtime/api/models/JobConfig.mjs +0 -42
- package/dist/runtime/api/models/JobInformation.mjs +0 -49
- package/dist/runtime/api/models/JsonSchema.mjs +0 -38
- package/dist/runtime/api/models/JsonSchemaDefinition.mjs +0 -39
- package/dist/runtime/api/models/MongoAggregateRequest.mjs +0 -34
- package/dist/runtime/api/models/MongoCampConfiguration.mjs +0 -39
- package/dist/runtime/api/models/MongoIndex.mjs +0 -60
- package/dist/runtime/api/models/Role.mjs +0 -37
- package/dist/runtime/api/models/SchemaAnalysis.mjs +0 -40
- package/dist/runtime/api/models/SchemaAnalysisField.mjs +0 -45
- package/dist/runtime/api/models/SettingsResponse.mjs +0 -34
- package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +0 -29
- package/dist/runtime/api/models/UpdateResponse.mjs +0 -36
- package/dist/runtime/api/models/UpdateRoleRequest.mjs +0 -34
- package/dist/runtime/api/models/UserInformation.mjs +0 -35
- package/dist/runtime/api/models/UserProfile.mjs +0 -41
- package/dist/runtime/api/models/Version.mjs +0 -33
- package/dist/runtime/api/models/index.mjs +0 -39
- /package/dist/runtime/composables/{mongocampStorage.mjs → mongocampStorage.js} +0 -0
- /package/dist/runtime/composables/{mongocampUrl.mjs → mongocampUrl.js} +0 -0
- /package/dist/runtime/composables/{mongocampUser.mjs → mongocampUser.js} +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export function instanceOfBucketInformation(value) {
|
|
2
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
3
|
+
if (!("files" in value) || value["files"] === void 0) return false;
|
|
4
|
+
if (!("size" in value) || value["size"] === void 0) return false;
|
|
5
|
+
if (!("avgObjectSize" in value) || value["avgObjectSize"] === void 0) return false;
|
|
6
|
+
return true;
|
|
7
|
+
}
|
|
8
|
+
export function BucketInformationFromJSON(json) {
|
|
9
|
+
return BucketInformationFromJSONTyped(json, false);
|
|
10
|
+
}
|
|
11
|
+
export function BucketInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if (json == null) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
"name": json["name"],
|
|
17
|
+
"files": json["files"],
|
|
18
|
+
"size": json["size"],
|
|
19
|
+
"avgObjectSize": json["avgObjectSize"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export function BucketInformationToJSON(value) {
|
|
23
|
+
if (value == null) {
|
|
24
|
+
return value;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
"name": value["name"],
|
|
28
|
+
"files": value["files"],
|
|
29
|
+
"size": value["size"],
|
|
30
|
+
"avgObjectSize": value["avgObjectSize"]
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -70,7 +70,7 @@ export interface CollectionStatus {
|
|
|
70
70
|
*/
|
|
71
71
|
indexSizes: {
|
|
72
72
|
[key: string]: number;
|
|
73
|
-
}
|
|
73
|
+
};
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {number}
|
|
@@ -96,12 +96,12 @@ export interface CollectionStatus {
|
|
|
96
96
|
*/
|
|
97
97
|
map: {
|
|
98
98
|
[key: string]: string;
|
|
99
|
-
}
|
|
99
|
+
};
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
102
|
* Check if a given object implements the CollectionStatus interface.
|
|
103
103
|
*/
|
|
104
|
-
export declare function instanceOfCollectionStatus(value: object):
|
|
104
|
+
export declare function instanceOfCollectionStatus(value: object): value is CollectionStatus;
|
|
105
105
|
export declare function CollectionStatusFromJSON(json: any): CollectionStatus;
|
|
106
106
|
export declare function CollectionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionStatus;
|
|
107
107
|
export declare function CollectionStatusToJSON(value?: CollectionStatus | null): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export function instanceOfCollectionStatus(value) {
|
|
2
|
+
if (!("ns" in value) || value["ns"] === void 0) return false;
|
|
3
|
+
if (!("collectionType" in value) || value["collectionType"] === void 0) return false;
|
|
4
|
+
if (!("scaleFactor" in value) || value["scaleFactor"] === void 0) return false;
|
|
5
|
+
if (!("size" in value) || value["size"] === void 0) return false;
|
|
6
|
+
if (!("count" in value) || value["count"] === void 0) return false;
|
|
7
|
+
if (!("storageSize" in value) || value["storageSize"] === void 0) return false;
|
|
8
|
+
if (!("avgObjSize" in value) || value["avgObjSize"] === void 0) return false;
|
|
9
|
+
if (!("nindexes" in value) || value["nindexes"] === void 0) return false;
|
|
10
|
+
if (!("indexSizes" in value) || value["indexSizes"] === void 0) return false;
|
|
11
|
+
if (!("totalIndexSize" in value) || value["totalIndexSize"] === void 0) return false;
|
|
12
|
+
if (!("ok" in value) || value["ok"] === void 0) return false;
|
|
13
|
+
if (!("fetched" in value) || value["fetched"] === void 0) return false;
|
|
14
|
+
if (!("map" in value) || value["map"] === void 0) return false;
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
export function CollectionStatusFromJSON(json) {
|
|
18
|
+
return CollectionStatusFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
export function CollectionStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if (json == null) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
"ns": json["ns"],
|
|
26
|
+
"collectionType": json["collectionType"],
|
|
27
|
+
"scaleFactor": json["scaleFactor"],
|
|
28
|
+
"size": json["size"],
|
|
29
|
+
"count": json["count"],
|
|
30
|
+
"storageSize": json["storageSize"],
|
|
31
|
+
"avgObjSize": json["avgObjSize"],
|
|
32
|
+
"nindexes": json["nindexes"],
|
|
33
|
+
"indexSizes": json["indexSizes"],
|
|
34
|
+
"totalIndexSize": json["totalIndexSize"],
|
|
35
|
+
"ok": json["ok"],
|
|
36
|
+
"fetched": new Date(json["fetched"]),
|
|
37
|
+
"map": json["map"]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function CollectionStatusToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
"ns": value["ns"],
|
|
46
|
+
"collectionType": value["collectionType"],
|
|
47
|
+
"scaleFactor": value["scaleFactor"],
|
|
48
|
+
"size": value["size"],
|
|
49
|
+
"count": value["count"],
|
|
50
|
+
"storageSize": value["storageSize"],
|
|
51
|
+
"avgObjSize": value["avgObjSize"],
|
|
52
|
+
"nindexes": value["nindexes"],
|
|
53
|
+
"indexSizes": value["indexSizes"],
|
|
54
|
+
"totalIndexSize": value["totalIndexSize"],
|
|
55
|
+
"ok": value["ok"],
|
|
56
|
+
"fetched": value["fetched"].toISOString(),
|
|
57
|
+
"map": value["map"]
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -46,12 +46,12 @@ export interface DatabaseInfo {
|
|
|
46
46
|
*/
|
|
47
47
|
map: {
|
|
48
48
|
[key: string]: string;
|
|
49
|
-
}
|
|
49
|
+
};
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Check if a given object implements the DatabaseInfo interface.
|
|
53
53
|
*/
|
|
54
|
-
export declare function instanceOfDatabaseInfo(value: object):
|
|
54
|
+
export declare function instanceOfDatabaseInfo(value: object): value is DatabaseInfo;
|
|
55
55
|
export declare function DatabaseInfoFromJSON(json: any): DatabaseInfo;
|
|
56
56
|
export declare function DatabaseInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatabaseInfo;
|
|
57
57
|
export declare function DatabaseInfoToJSON(value?: DatabaseInfo | null): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export function instanceOfDatabaseInfo(value) {
|
|
2
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
3
|
+
if (!("sizeOnDisk" in value) || value["sizeOnDisk"] === void 0) return false;
|
|
4
|
+
if (!("empty" in value) || value["empty"] === void 0) return false;
|
|
5
|
+
if (!("fetched" in value) || value["fetched"] === void 0) return false;
|
|
6
|
+
if (!("map" in value) || value["map"] === void 0) return false;
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
export function DatabaseInfoFromJSON(json) {
|
|
10
|
+
return DatabaseInfoFromJSONTyped(json, false);
|
|
11
|
+
}
|
|
12
|
+
export function DatabaseInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if (json == null) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
"name": json["name"],
|
|
18
|
+
"sizeOnDisk": json["sizeOnDisk"],
|
|
19
|
+
"empty": json["empty"],
|
|
20
|
+
"fetched": new Date(json["fetched"]),
|
|
21
|
+
"map": json["map"]
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export function DatabaseInfoToJSON(value) {
|
|
25
|
+
if (value == null) {
|
|
26
|
+
return value;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
"name": value["name"],
|
|
30
|
+
"sizeOnDisk": value["sizeOnDisk"],
|
|
31
|
+
"empty": value["empty"],
|
|
32
|
+
"fetched": value["fetched"].toISOString(),
|
|
33
|
+
"map": value["map"]
|
|
34
|
+
};
|
|
35
|
+
}
|
|
@@ -31,7 +31,7 @@ export interface DeleteResponse {
|
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the DeleteResponse interface.
|
|
33
33
|
*/
|
|
34
|
-
export declare function instanceOfDeleteResponse(value: object):
|
|
34
|
+
export declare function instanceOfDeleteResponse(value: object): value is DeleteResponse;
|
|
35
35
|
export declare function DeleteResponseFromJSON(json: any): DeleteResponse;
|
|
36
36
|
export declare function DeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteResponse;
|
|
37
37
|
export declare function DeleteResponseToJSON(value?: DeleteResponse | null): any;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
export function instanceOfDeleteResponse(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return isInstance;
|
|
2
|
+
if (!("wasAcknowledged" in value) || value["wasAcknowledged"] === void 0) return false;
|
|
3
|
+
if (!("deletedCount" in value) || value["deletedCount"] === void 0) return false;
|
|
4
|
+
return true;
|
|
6
5
|
}
|
|
7
6
|
export function DeleteResponseFromJSON(json) {
|
|
8
7
|
return DeleteResponseFromJSONTyped(json, false);
|
|
9
8
|
}
|
|
10
9
|
export function DeleteResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
11
|
-
if (json
|
|
10
|
+
if (json == null) {
|
|
12
11
|
return json;
|
|
13
12
|
}
|
|
14
13
|
return {
|
|
@@ -17,14 +16,11 @@ export function DeleteResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
16
|
};
|
|
18
17
|
}
|
|
19
18
|
export function DeleteResponseToJSON(value) {
|
|
20
|
-
if (value
|
|
21
|
-
return
|
|
22
|
-
}
|
|
23
|
-
if (value === null) {
|
|
24
|
-
return null;
|
|
19
|
+
if (value == null) {
|
|
20
|
+
return value;
|
|
25
21
|
}
|
|
26
22
|
return {
|
|
27
|
-
"wasAcknowledged": value
|
|
28
|
-
"deletedCount": value
|
|
23
|
+
"wasAcknowledged": value["wasAcknowledged"],
|
|
24
|
+
"deletedCount": value["deletedCount"]
|
|
29
25
|
};
|
|
30
26
|
}
|
|
@@ -37,7 +37,7 @@ export interface ErrorDescription {
|
|
|
37
37
|
/**
|
|
38
38
|
* Check if a given object implements the ErrorDescription interface.
|
|
39
39
|
*/
|
|
40
|
-
export declare function instanceOfErrorDescription(value: object):
|
|
40
|
+
export declare function instanceOfErrorDescription(value: object): value is ErrorDescription;
|
|
41
41
|
export declare function ErrorDescriptionFromJSON(json: any): ErrorDescription;
|
|
42
42
|
export declare function ErrorDescriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorDescription;
|
|
43
43
|
export declare function ErrorDescriptionToJSON(value?: ErrorDescription | null): any;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
export function instanceOfErrorDescription(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return isInstance;
|
|
2
|
+
if (!("code" in value) || value["code"] === void 0) return false;
|
|
3
|
+
if (!("msg" in value) || value["msg"] === void 0) return false;
|
|
4
|
+
if (!("additionalInfo" in value) || value["additionalInfo"] === void 0) return false;
|
|
5
|
+
return true;
|
|
7
6
|
}
|
|
8
7
|
export function ErrorDescriptionFromJSON(json) {
|
|
9
8
|
return ErrorDescriptionFromJSONTyped(json, false);
|
|
10
9
|
}
|
|
11
10
|
export function ErrorDescriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
-
if (json
|
|
11
|
+
if (json == null) {
|
|
13
12
|
return json;
|
|
14
13
|
}
|
|
15
14
|
return {
|
|
@@ -19,15 +18,12 @@ export function ErrorDescriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
18
|
};
|
|
20
19
|
}
|
|
21
20
|
export function ErrorDescriptionToJSON(value) {
|
|
22
|
-
if (value
|
|
23
|
-
return
|
|
24
|
-
}
|
|
25
|
-
if (value === null) {
|
|
26
|
-
return null;
|
|
21
|
+
if (value == null) {
|
|
22
|
+
return value;
|
|
27
23
|
}
|
|
28
24
|
return {
|
|
29
|
-
"code": value
|
|
30
|
-
"msg": value
|
|
31
|
-
"additionalInfo": value
|
|
25
|
+
"code": value["code"],
|
|
26
|
+
"msg": value["msg"],
|
|
27
|
+
"additionalInfo": value["additionalInfo"]
|
|
32
28
|
};
|
|
33
29
|
}
|
|
@@ -52,12 +52,12 @@ export interface FileInformation {
|
|
|
52
52
|
*/
|
|
53
53
|
metadata: {
|
|
54
54
|
[key: string]: string;
|
|
55
|
-
}
|
|
55
|
+
};
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
58
|
* Check if a given object implements the FileInformation interface.
|
|
59
59
|
*/
|
|
60
|
-
export declare function instanceOfFileInformation(value: object):
|
|
60
|
+
export declare function instanceOfFileInformation(value: object): value is FileInformation;
|
|
61
61
|
export declare function FileInformationFromJSON(json: any): FileInformation;
|
|
62
62
|
export declare function FileInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileInformation;
|
|
63
63
|
export declare function FileInformationToJSON(value?: FileInformation | null): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export function instanceOfFileInformation(value) {
|
|
2
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
3
|
+
if (!("filename" in value) || value["filename"] === void 0) return false;
|
|
4
|
+
if (!("length" in value) || value["length"] === void 0) return false;
|
|
5
|
+
if (!("chunkSize" in value) || value["chunkSize"] === void 0) return false;
|
|
6
|
+
if (!("uploadDate" in value) || value["uploadDate"] === void 0) return false;
|
|
7
|
+
if (!("metadata" in value) || value["metadata"] === void 0) return false;
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
export function FileInformationFromJSON(json) {
|
|
11
|
+
return FileInformationFromJSONTyped(json, false);
|
|
12
|
+
}
|
|
13
|
+
export function FileInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if (json == null) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
"id": json["_id"],
|
|
19
|
+
"filename": json["filename"],
|
|
20
|
+
"length": json["length"],
|
|
21
|
+
"chunkSize": json["chunkSize"],
|
|
22
|
+
"uploadDate": new Date(json["uploadDate"]),
|
|
23
|
+
"metadata": json["metadata"]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function FileInformationToJSON(value) {
|
|
27
|
+
if (value == null) {
|
|
28
|
+
return value;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
"_id": value["id"],
|
|
32
|
+
"filename": value["filename"],
|
|
33
|
+
"length": value["length"],
|
|
34
|
+
"chunkSize": value["chunkSize"],
|
|
35
|
+
"uploadDate": value["uploadDate"].toISOString(),
|
|
36
|
+
"metadata": value["metadata"]
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -49,7 +49,7 @@ export interface Grant {
|
|
|
49
49
|
/**
|
|
50
50
|
* Check if a given object implements the Grant interface.
|
|
51
51
|
*/
|
|
52
|
-
export declare function instanceOfGrant(value: object):
|
|
52
|
+
export declare function instanceOfGrant(value: object): value is Grant;
|
|
53
53
|
export declare function GrantFromJSON(json: any): Grant;
|
|
54
54
|
export declare function GrantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Grant;
|
|
55
55
|
export declare function GrantToJSON(value?: Grant | null): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export function instanceOfGrant(value) {
|
|
2
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
3
|
+
if (!("read" in value) || value["read"] === void 0) return false;
|
|
4
|
+
if (!("write" in value) || value["write"] === void 0) return false;
|
|
5
|
+
if (!("administrate" in value) || value["administrate"] === void 0) return false;
|
|
6
|
+
if (!("grantType" in value) || value["grantType"] === void 0) return false;
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
export function GrantFromJSON(json) {
|
|
10
|
+
return GrantFromJSONTyped(json, false);
|
|
11
|
+
}
|
|
12
|
+
export function GrantFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if (json == null) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
"name": json["name"],
|
|
18
|
+
"read": json["read"],
|
|
19
|
+
"write": json["write"],
|
|
20
|
+
"administrate": json["administrate"],
|
|
21
|
+
"grantType": json["grantType"]
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export function GrantToJSON(value) {
|
|
25
|
+
if (value == null) {
|
|
26
|
+
return value;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
"name": value["name"],
|
|
30
|
+
"read": value["read"],
|
|
31
|
+
"write": value["write"],
|
|
32
|
+
"administrate": value["administrate"],
|
|
33
|
+
"grantType": value["grantType"]
|
|
34
|
+
};
|
|
35
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { IndexOptionsRequest } from './IndexOptionsRequest';
|
|
12
|
+
import type { IndexOptionsRequest } from './IndexOptionsRequest.js';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -23,7 +23,7 @@ export interface IndexCreateRequest {
|
|
|
23
23
|
*/
|
|
24
24
|
keys: {
|
|
25
25
|
[key: string]: number;
|
|
26
|
-
}
|
|
26
|
+
};
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* @type {IndexOptionsRequest}
|
|
@@ -34,7 +34,7 @@ export interface IndexCreateRequest {
|
|
|
34
34
|
/**
|
|
35
35
|
* Check if a given object implements the IndexCreateRequest interface.
|
|
36
36
|
*/
|
|
37
|
-
export declare function instanceOfIndexCreateRequest(value: object):
|
|
37
|
+
export declare function instanceOfIndexCreateRequest(value: object): value is IndexCreateRequest;
|
|
38
38
|
export declare function IndexCreateRequestFromJSON(json: any): IndexCreateRequest;
|
|
39
39
|
export declare function IndexCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexCreateRequest;
|
|
40
40
|
export declare function IndexCreateRequestToJSON(value?: IndexCreateRequest | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IndexOptionsRequestFromJSON,
|
|
3
|
+
IndexOptionsRequestToJSON
|
|
4
|
+
} from "./IndexOptionsRequest.js";
|
|
5
|
+
export function instanceOfIndexCreateRequest(value) {
|
|
6
|
+
if (!("keys" in value) || value["keys"] === void 0) return false;
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
export function IndexCreateRequestFromJSON(json) {
|
|
10
|
+
return IndexCreateRequestFromJSONTyped(json, false);
|
|
11
|
+
}
|
|
12
|
+
export function IndexCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if (json == null) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
"keys": json["keys"],
|
|
18
|
+
"indexOptionsRequest": json["indexOptionsRequest"] == null ? void 0 : IndexOptionsRequestFromJSON(json["indexOptionsRequest"])
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export function IndexCreateRequestToJSON(value) {
|
|
22
|
+
if (value == null) {
|
|
23
|
+
return value;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
"keys": value["keys"],
|
|
27
|
+
"indexOptionsRequest": IndexOptionsRequestToJSON(value["indexOptionsRequest"])
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -25,7 +25,7 @@ export interface IndexCreateResponse {
|
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the IndexCreateResponse interface.
|
|
27
27
|
*/
|
|
28
|
-
export declare function instanceOfIndexCreateResponse(value: object):
|
|
28
|
+
export declare function instanceOfIndexCreateResponse(value: object): value is IndexCreateResponse;
|
|
29
29
|
export declare function IndexCreateResponseFromJSON(json: any): IndexCreateResponse;
|
|
30
30
|
export declare function IndexCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexCreateResponse;
|
|
31
31
|
export declare function IndexCreateResponseToJSON(value?: IndexCreateResponse | null): any;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
export function instanceOfIndexCreateResponse(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return isInstance;
|
|
2
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
3
|
+
return true;
|
|
5
4
|
}
|
|
6
5
|
export function IndexCreateResponseFromJSON(json) {
|
|
7
6
|
return IndexCreateResponseFromJSONTyped(json, false);
|
|
8
7
|
}
|
|
9
8
|
export function IndexCreateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
-
if (json
|
|
9
|
+
if (json == null) {
|
|
11
10
|
return json;
|
|
12
11
|
}
|
|
13
12
|
return {
|
|
@@ -15,13 +14,10 @@ export function IndexCreateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
14
|
};
|
|
16
15
|
}
|
|
17
16
|
export function IndexCreateResponseToJSON(value) {
|
|
18
|
-
if (value
|
|
19
|
-
return
|
|
20
|
-
}
|
|
21
|
-
if (value === null) {
|
|
22
|
-
return null;
|
|
17
|
+
if (value == null) {
|
|
18
|
+
return value;
|
|
23
19
|
}
|
|
24
20
|
return {
|
|
25
|
-
"name": value
|
|
21
|
+
"name": value["name"]
|
|
26
22
|
};
|
|
27
23
|
}
|
|
@@ -25,7 +25,7 @@ export interface IndexDropResponse {
|
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the IndexDropResponse interface.
|
|
27
27
|
*/
|
|
28
|
-
export declare function instanceOfIndexDropResponse(value: object):
|
|
28
|
+
export declare function instanceOfIndexDropResponse(value: object): value is IndexDropResponse;
|
|
29
29
|
export declare function IndexDropResponseFromJSON(json: any): IndexDropResponse;
|
|
30
30
|
export declare function IndexDropResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexDropResponse;
|
|
31
31
|
export declare function IndexDropResponseToJSON(value?: IndexDropResponse | null): any;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
export function instanceOfIndexDropResponse(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return isInstance;
|
|
2
|
+
if (!("dropped" in value) || value["dropped"] === void 0) return false;
|
|
3
|
+
return true;
|
|
5
4
|
}
|
|
6
5
|
export function IndexDropResponseFromJSON(json) {
|
|
7
6
|
return IndexDropResponseFromJSONTyped(json, false);
|
|
8
7
|
}
|
|
9
8
|
export function IndexDropResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
-
if (json
|
|
9
|
+
if (json == null) {
|
|
11
10
|
return json;
|
|
12
11
|
}
|
|
13
12
|
return {
|
|
@@ -15,13 +14,10 @@ export function IndexDropResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
14
|
};
|
|
16
15
|
}
|
|
17
16
|
export function IndexDropResponseToJSON(value) {
|
|
18
|
-
if (value
|
|
19
|
-
return
|
|
20
|
-
}
|
|
21
|
-
if (value === null) {
|
|
22
|
-
return null;
|
|
17
|
+
if (value == null) {
|
|
18
|
+
return value;
|
|
23
19
|
}
|
|
24
20
|
return {
|
|
25
|
-
"dropped": value
|
|
21
|
+
"dropped": value["dropped"]
|
|
26
22
|
};
|
|
27
23
|
}
|
|
@@ -67,7 +67,7 @@ export interface IndexOptionsRequest {
|
|
|
67
67
|
/**
|
|
68
68
|
* Check if a given object implements the IndexOptionsRequest interface.
|
|
69
69
|
*/
|
|
70
|
-
export declare function instanceOfIndexOptionsRequest(value: object):
|
|
70
|
+
export declare function instanceOfIndexOptionsRequest(value: object): value is IndexOptionsRequest;
|
|
71
71
|
export declare function IndexOptionsRequestFromJSON(json: any): IndexOptionsRequest;
|
|
72
72
|
export declare function IndexOptionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexOptionsRequest;
|
|
73
73
|
export declare function IndexOptionsRequestToJSON(value?: IndexOptionsRequest | null): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export function instanceOfIndexOptionsRequest(value) {
|
|
2
|
+
return true;
|
|
3
|
+
}
|
|
4
|
+
export function IndexOptionsRequestFromJSON(json) {
|
|
5
|
+
return IndexOptionsRequestFromJSONTyped(json, false);
|
|
6
|
+
}
|
|
7
|
+
export function IndexOptionsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if (json == null) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
"name": json["name"] == null ? void 0 : json["name"],
|
|
13
|
+
"background": json["background"] == null ? void 0 : json["background"],
|
|
14
|
+
"defaultLanguage": json["defaultLanguage"] == null ? void 0 : json["defaultLanguage"],
|
|
15
|
+
"textVersion": json["textVersion"] == null ? void 0 : json["textVersion"],
|
|
16
|
+
"expireAfter": json["expireAfter"] == null ? void 0 : json["expireAfter"],
|
|
17
|
+
"unique": json["unique"] == null ? void 0 : json["unique"],
|
|
18
|
+
"max": json["max"] == null ? void 0 : json["max"],
|
|
19
|
+
"min": json["min"] == null ? void 0 : json["min"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export function IndexOptionsRequestToJSON(value) {
|
|
23
|
+
if (value == null) {
|
|
24
|
+
return value;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
"name": value["name"],
|
|
28
|
+
"background": value["background"],
|
|
29
|
+
"defaultLanguage": value["defaultLanguage"],
|
|
30
|
+
"textVersion": value["textVersion"],
|
|
31
|
+
"expireAfter": value["expireAfter"],
|
|
32
|
+
"unique": value["unique"],
|
|
33
|
+
"max": value["max"],
|
|
34
|
+
"min": value["min"]
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -31,7 +31,7 @@ export interface InsertResponse {
|
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the InsertResponse interface.
|
|
33
33
|
*/
|
|
34
|
-
export declare function instanceOfInsertResponse(value: object):
|
|
34
|
+
export declare function instanceOfInsertResponse(value: object): value is InsertResponse;
|
|
35
35
|
export declare function InsertResponseFromJSON(json: any): InsertResponse;
|
|
36
36
|
export declare function InsertResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): InsertResponse;
|
|
37
37
|
export declare function InsertResponseToJSON(value?: InsertResponse | null): any;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export function instanceOfInsertResponse(value) {
|
|
2
|
+
if (!("wasAcknowledged" in value) || value["wasAcknowledged"] === void 0) return false;
|
|
3
|
+
return true;
|
|
4
|
+
}
|
|
5
|
+
export function InsertResponseFromJSON(json) {
|
|
6
|
+
return InsertResponseFromJSONTyped(json, false);
|
|
7
|
+
}
|
|
8
|
+
export function InsertResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if (json == null) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
"wasAcknowledged": json["wasAcknowledged"],
|
|
14
|
+
"insertedIds": json["insertedIds"] == null ? void 0 : json["insertedIds"]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export function InsertResponseToJSON(value) {
|
|
18
|
+
if (value == null) {
|
|
19
|
+
return value;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
"wasAcknowledged": value["wasAcknowledged"],
|
|
23
|
+
"insertedIds": value["insertedIds"]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -55,7 +55,7 @@ export interface JobConfig {
|
|
|
55
55
|
/**
|
|
56
56
|
* Check if a given object implements the JobConfig interface.
|
|
57
57
|
*/
|
|
58
|
-
export declare function instanceOfJobConfig(value: object):
|
|
58
|
+
export declare function instanceOfJobConfig(value: object): value is JobConfig;
|
|
59
59
|
export declare function JobConfigFromJSON(json: any): JobConfig;
|
|
60
60
|
export declare function JobConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobConfig;
|
|
61
61
|
export declare function JobConfigToJSON(value?: JobConfig | null): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export function instanceOfJobConfig(value) {
|
|
2
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
3
|
+
if (!("className" in value) || value["className"] === void 0) return false;
|
|
4
|
+
if (!("description" in value) || value["description"] === void 0) return false;
|
|
5
|
+
if (!("cronExpression" in value) || value["cronExpression"] === void 0) return false;
|
|
6
|
+
if (!("group" in value) || value["group"] === void 0) return false;
|
|
7
|
+
if (!("priority" in value) || value["priority"] === void 0) return false;
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
export function JobConfigFromJSON(json) {
|
|
11
|
+
return JobConfigFromJSONTyped(json, false);
|
|
12
|
+
}
|
|
13
|
+
export function JobConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if (json == null) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
"name": json["name"],
|
|
19
|
+
"className": json["className"],
|
|
20
|
+
"description": json["description"],
|
|
21
|
+
"cronExpression": json["cronExpression"],
|
|
22
|
+
"group": json["group"],
|
|
23
|
+
"priority": json["priority"]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function JobConfigToJSON(value) {
|
|
27
|
+
if (value == null) {
|
|
28
|
+
return value;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
"name": value["name"],
|
|
32
|
+
"className": value["className"],
|
|
33
|
+
"description": value["description"],
|
|
34
|
+
"cronExpression": value["cronExpression"],
|
|
35
|
+
"group": value["group"],
|
|
36
|
+
"priority": value["priority"]
|
|
37
|
+
};
|
|
38
|
+
}
|