@sfxcode/nuxt-mongocamp-server 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/api/apis/AdminApi.mjs +99 -63
- package/dist/runtime/api/apis/ApplicationApi.mjs +22 -13
- package/dist/runtime/api/apis/AuthApi.mjs +19 -13
- package/dist/runtime/api/apis/BucketApi.mjs +22 -13
- package/dist/runtime/api/apis/CollectionApi.mjs +97 -64
- package/dist/runtime/api/apis/DatabaseApi.mjs +23 -14
- package/dist/runtime/api/apis/DocumentApi.d.ts +5 -5
- package/dist/runtime/api/apis/DocumentApi.mjs +151 -91
- package/dist/runtime/api/apis/FileApi.mjs +119 -74
- package/dist/runtime/api/apis/IndexApi.mjs +117 -69
- package/dist/runtime/api/apis/JobsApi.mjs +51 -27
- package/dist/runtime/api/models/BucketInformation.mjs +16 -16
- package/dist/runtime/api/models/CollectionStatus.d.ts +2 -2
- package/dist/runtime/api/models/CollectionStatus.mjs +43 -34
- package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
- package/dist/runtime/api/models/DatabaseInfo.mjs +19 -18
- package/dist/runtime/api/models/DeleteResponse.mjs +10 -12
- package/dist/runtime/api/models/ErrorDescription.mjs +13 -14
- package/dist/runtime/api/models/FileInformation.d.ts +1 -1
- package/dist/runtime/api/models/FileInformation.mjs +22 -20
- package/dist/runtime/api/models/Grant.mjs +19 -18
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
- package/dist/runtime/api/models/IndexCreateRequest.mjs +9 -13
- package/dist/runtime/api/models/IndexCreateResponse.mjs +7 -10
- package/dist/runtime/api/models/IndexDropResponse.mjs +7 -10
- package/dist/runtime/api/models/IndexOptionsRequest.mjs +20 -25
- package/dist/runtime/api/models/InsertResponse.mjs +9 -13
- package/dist/runtime/api/models/JobConfig.mjs +22 -20
- package/dist/runtime/api/models/JobInformation.mjs +28 -27
- package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchema.mjs +14 -20
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchemaDefinition.mjs +18 -19
- package/dist/runtime/api/models/JsonValueAny.mjs +7 -10
- package/dist/runtime/api/models/JsonValueBoolean.mjs +7 -10
- package/dist/runtime/api/models/JsonValueString.mjs +7 -10
- package/dist/runtime/api/models/Login.mjs +10 -12
- package/dist/runtime/api/models/LoginResult.mjs +13 -14
- package/dist/runtime/api/models/MongoAggregateRequest.mjs +9 -13
- package/dist/runtime/api/models/MongoCampConfiguration.mjs +19 -18
- package/dist/runtime/api/models/MongoFindRequest.d.ts +3 -3
- package/dist/runtime/api/models/MongoFindRequest.mjs +13 -14
- package/dist/runtime/api/models/MongoIndex.d.ts +3 -3
- package/dist/runtime/api/models/MongoIndex.mjs +39 -33
- package/dist/runtime/api/models/PasswordUpdateRequest.mjs +7 -10
- package/dist/runtime/api/models/PipelineStage.mjs +10 -12
- package/dist/runtime/api/models/Role.mjs +12 -15
- package/dist/runtime/api/models/SchemaAnalysis.mjs +15 -17
- package/dist/runtime/api/models/SchemaAnalysisField.mjs +20 -21
- package/dist/runtime/api/models/SchemaAnalysisFieldType.mjs +13 -14
- package/dist/runtime/api/models/SettingsResponse.d.ts +1 -1
- package/dist/runtime/api/models/SettingsResponse.mjs +13 -17
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
- package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +8 -13
- package/dist/runtime/api/models/UpdateRequest.d.ts +2 -2
- package/dist/runtime/api/models/UpdateRequest.mjs +10 -12
- package/dist/runtime/api/models/UpdateResponse.mjs +15 -17
- package/dist/runtime/api/models/UpdateRoleRequest.mjs +9 -13
- package/dist/runtime/api/models/UserInformation.mjs +14 -17
- package/dist/runtime/api/models/UserProfile.mjs +16 -19
- package/dist/runtime/api/models/Version.mjs +13 -14
- package/dist/runtime/api/runtime.d.ts +2 -3
- package/dist/runtime/api/runtime.mjs +0 -4
- package/package.json +3 -2
|
@@ -1,25 +1,37 @@
|
|
|
1
1
|
export function instanceOfCollectionStatus(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
if (!("ns" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("collectionType" in value))
|
|
5
|
+
return false;
|
|
6
|
+
if (!("scaleFactor" in value))
|
|
7
|
+
return false;
|
|
8
|
+
if (!("size" in value))
|
|
9
|
+
return false;
|
|
10
|
+
if (!("count" in value))
|
|
11
|
+
return false;
|
|
12
|
+
if (!("storageSize" in value))
|
|
13
|
+
return false;
|
|
14
|
+
if (!("avgObjSize" in value))
|
|
15
|
+
return false;
|
|
16
|
+
if (!("nindexes" in value))
|
|
17
|
+
return false;
|
|
18
|
+
if (!("indexSizes" in value))
|
|
19
|
+
return false;
|
|
20
|
+
if (!("totalIndexSize" in value))
|
|
21
|
+
return false;
|
|
22
|
+
if (!("ok" in value))
|
|
23
|
+
return false;
|
|
24
|
+
if (!("fetched" in value))
|
|
25
|
+
return false;
|
|
26
|
+
if (!("map" in value))
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
17
29
|
}
|
|
18
30
|
export function CollectionStatusFromJSON(json) {
|
|
19
31
|
return CollectionStatusFromJSONTyped(json, false);
|
|
20
32
|
}
|
|
21
33
|
export function CollectionStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
-
if (json
|
|
34
|
+
if (json == null) {
|
|
23
35
|
return json;
|
|
24
36
|
}
|
|
25
37
|
return {
|
|
@@ -39,25 +51,22 @@ export function CollectionStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
51
|
};
|
|
40
52
|
}
|
|
41
53
|
export function CollectionStatusToJSON(value) {
|
|
42
|
-
if (value
|
|
43
|
-
return
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
47
56
|
}
|
|
48
57
|
return {
|
|
49
|
-
"ns": value
|
|
50
|
-
"collectionType": value
|
|
51
|
-
"scaleFactor": value
|
|
52
|
-
"size": value
|
|
53
|
-
"count": value
|
|
54
|
-
"storageSize": value
|
|
55
|
-
"avgObjSize": value
|
|
56
|
-
"nindexes": value
|
|
57
|
-
"indexSizes": value
|
|
58
|
-
"totalIndexSize": value
|
|
59
|
-
"ok": value
|
|
60
|
-
"fetched": value
|
|
61
|
-
"map": value
|
|
58
|
+
"ns": value["ns"],
|
|
59
|
+
"collectionType": value["collectionType"],
|
|
60
|
+
"scaleFactor": value["scaleFactor"],
|
|
61
|
+
"size": value["size"],
|
|
62
|
+
"count": value["count"],
|
|
63
|
+
"storageSize": value["storageSize"],
|
|
64
|
+
"avgObjSize": value["avgObjSize"],
|
|
65
|
+
"nindexes": value["nindexes"],
|
|
66
|
+
"indexSizes": value["indexSizes"],
|
|
67
|
+
"totalIndexSize": value["totalIndexSize"],
|
|
68
|
+
"ok": value["ok"],
|
|
69
|
+
"fetched": value["fetched"].toISOString(),
|
|
70
|
+
"map": value["map"]
|
|
62
71
|
};
|
|
63
72
|
}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
export function instanceOfDatabaseInfo(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
if (!("name" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("sizeOnDisk" in value))
|
|
5
|
+
return false;
|
|
6
|
+
if (!("empty" in value))
|
|
7
|
+
return false;
|
|
8
|
+
if (!("fetched" in value))
|
|
9
|
+
return false;
|
|
10
|
+
if (!("map" in value))
|
|
11
|
+
return false;
|
|
12
|
+
return true;
|
|
9
13
|
}
|
|
10
14
|
export function DatabaseInfoFromJSON(json) {
|
|
11
15
|
return DatabaseInfoFromJSONTyped(json, false);
|
|
12
16
|
}
|
|
13
17
|
export function DatabaseInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
-
if (json
|
|
18
|
+
if (json == null) {
|
|
15
19
|
return json;
|
|
16
20
|
}
|
|
17
21
|
return {
|
|
@@ -23,17 +27,14 @@ export function DatabaseInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
27
|
};
|
|
24
28
|
}
|
|
25
29
|
export function DatabaseInfoToJSON(value) {
|
|
26
|
-
if (value
|
|
27
|
-
return
|
|
28
|
-
}
|
|
29
|
-
if (value === null) {
|
|
30
|
-
return null;
|
|
30
|
+
if (value == null) {
|
|
31
|
+
return value;
|
|
31
32
|
}
|
|
32
33
|
return {
|
|
33
|
-
"name": value
|
|
34
|
-
"sizeOnDisk": value
|
|
35
|
-
"empty": value
|
|
36
|
-
"fetched": value
|
|
37
|
-
"map": value
|
|
34
|
+
"name": value["name"],
|
|
35
|
+
"sizeOnDisk": value["sizeOnDisk"],
|
|
36
|
+
"empty": value["empty"],
|
|
37
|
+
"fetched": value["fetched"].toISOString(),
|
|
38
|
+
"map": value["map"]
|
|
38
39
|
};
|
|
39
40
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export function instanceOfDeleteResponse(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
if (!("wasAcknowledged" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("deletedCount" in value))
|
|
5
|
+
return false;
|
|
6
|
+
return true;
|
|
6
7
|
}
|
|
7
8
|
export function DeleteResponseFromJSON(json) {
|
|
8
9
|
return DeleteResponseFromJSONTyped(json, false);
|
|
9
10
|
}
|
|
10
11
|
export function DeleteResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
11
|
-
if (json
|
|
12
|
+
if (json == null) {
|
|
12
13
|
return json;
|
|
13
14
|
}
|
|
14
15
|
return {
|
|
@@ -17,14 +18,11 @@ export function DeleteResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
export function DeleteResponseToJSON(value) {
|
|
20
|
-
if (value
|
|
21
|
-
return
|
|
22
|
-
}
|
|
23
|
-
if (value === null) {
|
|
24
|
-
return null;
|
|
21
|
+
if (value == null) {
|
|
22
|
+
return value;
|
|
25
23
|
}
|
|
26
24
|
return {
|
|
27
|
-
"wasAcknowledged": value
|
|
28
|
-
"deletedCount": value
|
|
25
|
+
"wasAcknowledged": value["wasAcknowledged"],
|
|
26
|
+
"deletedCount": value["deletedCount"]
|
|
29
27
|
};
|
|
30
28
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
export function instanceOfErrorDescription(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
if (!("code" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("msg" in value))
|
|
5
|
+
return false;
|
|
6
|
+
if (!("additionalInfo" in value))
|
|
7
|
+
return false;
|
|
8
|
+
return true;
|
|
7
9
|
}
|
|
8
10
|
export function ErrorDescriptionFromJSON(json) {
|
|
9
11
|
return ErrorDescriptionFromJSONTyped(json, false);
|
|
10
12
|
}
|
|
11
13
|
export function ErrorDescriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
-
if (json
|
|
14
|
+
if (json == null) {
|
|
13
15
|
return json;
|
|
14
16
|
}
|
|
15
17
|
return {
|
|
@@ -19,15 +21,12 @@ export function ErrorDescriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
export function ErrorDescriptionToJSON(value) {
|
|
22
|
-
if (value
|
|
23
|
-
return
|
|
24
|
-
}
|
|
25
|
-
if (value === null) {
|
|
26
|
-
return null;
|
|
24
|
+
if (value == null) {
|
|
25
|
+
return value;
|
|
27
26
|
}
|
|
28
27
|
return {
|
|
29
|
-
"code": value
|
|
30
|
-
"msg": value
|
|
31
|
-
"additionalInfo": value
|
|
28
|
+
"code": value["code"],
|
|
29
|
+
"msg": value["msg"],
|
|
30
|
+
"additionalInfo": value["additionalInfo"]
|
|
32
31
|
};
|
|
33
32
|
}
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
export function instanceOfFileInformation(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
if (!("id" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("filename" in value))
|
|
5
|
+
return false;
|
|
6
|
+
if (!("length" in value))
|
|
7
|
+
return false;
|
|
8
|
+
if (!("chunkSize" in value))
|
|
9
|
+
return false;
|
|
10
|
+
if (!("uploadDate" in value))
|
|
11
|
+
return false;
|
|
12
|
+
if (!("metadata" in value))
|
|
13
|
+
return false;
|
|
14
|
+
return true;
|
|
10
15
|
}
|
|
11
16
|
export function FileInformationFromJSON(json) {
|
|
12
17
|
return FileInformationFromJSONTyped(json, false);
|
|
13
18
|
}
|
|
14
19
|
export function FileInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
15
|
-
if (json
|
|
20
|
+
if (json == null) {
|
|
16
21
|
return json;
|
|
17
22
|
}
|
|
18
23
|
return {
|
|
@@ -25,18 +30,15 @@ export function FileInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
30
|
};
|
|
26
31
|
}
|
|
27
32
|
export function FileInformationToJSON(value) {
|
|
28
|
-
if (value
|
|
29
|
-
return
|
|
30
|
-
}
|
|
31
|
-
if (value === null) {
|
|
32
|
-
return null;
|
|
33
|
+
if (value == null) {
|
|
34
|
+
return value;
|
|
33
35
|
}
|
|
34
36
|
return {
|
|
35
|
-
"_id": value
|
|
36
|
-
"filename": value
|
|
37
|
-
"length": value
|
|
38
|
-
"chunkSize": value
|
|
39
|
-
"uploadDate": value
|
|
40
|
-
"metadata": value
|
|
37
|
+
"_id": value["id"],
|
|
38
|
+
"filename": value["filename"],
|
|
39
|
+
"length": value["length"],
|
|
40
|
+
"chunkSize": value["chunkSize"],
|
|
41
|
+
"uploadDate": value["uploadDate"].toISOString(),
|
|
42
|
+
"metadata": value["metadata"]
|
|
41
43
|
};
|
|
42
44
|
}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
export function instanceOfGrant(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
if (!("name" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("read" in value))
|
|
5
|
+
return false;
|
|
6
|
+
if (!("write" in value))
|
|
7
|
+
return false;
|
|
8
|
+
if (!("administrate" in value))
|
|
9
|
+
return false;
|
|
10
|
+
if (!("grantType" in value))
|
|
11
|
+
return false;
|
|
12
|
+
return true;
|
|
9
13
|
}
|
|
10
14
|
export function GrantFromJSON(json) {
|
|
11
15
|
return GrantFromJSONTyped(json, false);
|
|
12
16
|
}
|
|
13
17
|
export function GrantFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
-
if (json
|
|
18
|
+
if (json == null) {
|
|
15
19
|
return json;
|
|
16
20
|
}
|
|
17
21
|
return {
|
|
@@ -23,17 +27,14 @@ export function GrantFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
27
|
};
|
|
24
28
|
}
|
|
25
29
|
export function GrantToJSON(value) {
|
|
26
|
-
if (value
|
|
27
|
-
return
|
|
28
|
-
}
|
|
29
|
-
if (value === null) {
|
|
30
|
-
return null;
|
|
30
|
+
if (value == null) {
|
|
31
|
+
return value;
|
|
31
32
|
}
|
|
32
33
|
return {
|
|
33
|
-
"name": value
|
|
34
|
-
"read": value
|
|
35
|
-
"write": value
|
|
36
|
-
"administrate": value
|
|
37
|
-
"grantType": value
|
|
34
|
+
"name": value["name"],
|
|
35
|
+
"read": value["read"],
|
|
36
|
+
"write": value["write"],
|
|
37
|
+
"administrate": value["administrate"],
|
|
38
|
+
"grantType": value["grantType"]
|
|
38
39
|
};
|
|
39
40
|
}
|
|
@@ -1,34 +1,30 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
1
|
import {
|
|
3
2
|
IndexOptionsRequestFromJSON,
|
|
4
3
|
IndexOptionsRequestToJSON
|
|
5
4
|
} from "./IndexOptionsRequest.mjs";
|
|
6
5
|
export function instanceOfIndexCreateRequest(value) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return
|
|
6
|
+
if (!("keys" in value))
|
|
7
|
+
return false;
|
|
8
|
+
return true;
|
|
10
9
|
}
|
|
11
10
|
export function IndexCreateRequestFromJSON(json) {
|
|
12
11
|
return IndexCreateRequestFromJSONTyped(json, false);
|
|
13
12
|
}
|
|
14
13
|
export function IndexCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
15
|
-
if (json
|
|
14
|
+
if (json == null) {
|
|
16
15
|
return json;
|
|
17
16
|
}
|
|
18
17
|
return {
|
|
19
18
|
"keys": json["keys"],
|
|
20
|
-
"indexOptionsRequest":
|
|
19
|
+
"indexOptionsRequest": json["indexOptionsRequest"] == null ? void 0 : IndexOptionsRequestFromJSON(json["indexOptionsRequest"])
|
|
21
20
|
};
|
|
22
21
|
}
|
|
23
22
|
export function IndexCreateRequestToJSON(value) {
|
|
24
|
-
if (value
|
|
25
|
-
return
|
|
26
|
-
}
|
|
27
|
-
if (value === null) {
|
|
28
|
-
return null;
|
|
23
|
+
if (value == null) {
|
|
24
|
+
return value;
|
|
29
25
|
}
|
|
30
26
|
return {
|
|
31
|
-
"keys": value
|
|
32
|
-
"indexOptionsRequest": IndexOptionsRequestToJSON(value
|
|
27
|
+
"keys": value["keys"],
|
|
28
|
+
"indexOptionsRequest": IndexOptionsRequestToJSON(value["indexOptionsRequest"])
|
|
33
29
|
};
|
|
34
30
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export function instanceOfIndexCreateResponse(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return
|
|
2
|
+
if (!("name" in value))
|
|
3
|
+
return false;
|
|
4
|
+
return true;
|
|
5
5
|
}
|
|
6
6
|
export function IndexCreateResponseFromJSON(json) {
|
|
7
7
|
return IndexCreateResponseFromJSONTyped(json, false);
|
|
8
8
|
}
|
|
9
9
|
export function IndexCreateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
-
if (json
|
|
10
|
+
if (json == null) {
|
|
11
11
|
return json;
|
|
12
12
|
}
|
|
13
13
|
return {
|
|
@@ -15,13 +15,10 @@ export function IndexCreateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
export function IndexCreateResponseToJSON(value) {
|
|
18
|
-
if (value
|
|
19
|
-
return
|
|
20
|
-
}
|
|
21
|
-
if (value === null) {
|
|
22
|
-
return null;
|
|
18
|
+
if (value == null) {
|
|
19
|
+
return value;
|
|
23
20
|
}
|
|
24
21
|
return {
|
|
25
|
-
"name": value
|
|
22
|
+
"name": value["name"]
|
|
26
23
|
};
|
|
27
24
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export function instanceOfIndexDropResponse(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return
|
|
2
|
+
if (!("dropped" in value))
|
|
3
|
+
return false;
|
|
4
|
+
return true;
|
|
5
5
|
}
|
|
6
6
|
export function IndexDropResponseFromJSON(json) {
|
|
7
7
|
return IndexDropResponseFromJSONTyped(json, false);
|
|
8
8
|
}
|
|
9
9
|
export function IndexDropResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
-
if (json
|
|
10
|
+
if (json == null) {
|
|
11
11
|
return json;
|
|
12
12
|
}
|
|
13
13
|
return {
|
|
@@ -15,13 +15,10 @@ export function IndexDropResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
export function IndexDropResponseToJSON(value) {
|
|
18
|
-
if (value
|
|
19
|
-
return
|
|
20
|
-
}
|
|
21
|
-
if (value === null) {
|
|
22
|
-
return null;
|
|
18
|
+
if (value == null) {
|
|
19
|
+
return value;
|
|
23
20
|
}
|
|
24
21
|
return {
|
|
25
|
-
"dropped": value
|
|
22
|
+
"dropped": value["dropped"]
|
|
26
23
|
};
|
|
27
24
|
}
|
|
@@ -1,41 +1,36 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
1
|
export function instanceOfIndexOptionsRequest(value) {
|
|
3
|
-
|
|
4
|
-
return isInstance;
|
|
2
|
+
return true;
|
|
5
3
|
}
|
|
6
4
|
export function IndexOptionsRequestFromJSON(json) {
|
|
7
5
|
return IndexOptionsRequestFromJSONTyped(json, false);
|
|
8
6
|
}
|
|
9
7
|
export function IndexOptionsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
-
if (json
|
|
8
|
+
if (json == null) {
|
|
11
9
|
return json;
|
|
12
10
|
}
|
|
13
11
|
return {
|
|
14
|
-
"name":
|
|
15
|
-
"background":
|
|
16
|
-
"defaultLanguage":
|
|
17
|
-
"textVersion":
|
|
18
|
-
"expireAfter":
|
|
19
|
-
"unique":
|
|
20
|
-
"max":
|
|
21
|
-
"min":
|
|
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"]
|
|
22
20
|
};
|
|
23
21
|
}
|
|
24
22
|
export function IndexOptionsRequestToJSON(value) {
|
|
25
|
-
if (value
|
|
26
|
-
return
|
|
27
|
-
}
|
|
28
|
-
if (value === null) {
|
|
29
|
-
return null;
|
|
23
|
+
if (value == null) {
|
|
24
|
+
return value;
|
|
30
25
|
}
|
|
31
26
|
return {
|
|
32
|
-
"name": value
|
|
33
|
-
"background": value
|
|
34
|
-
"defaultLanguage": value
|
|
35
|
-
"textVersion": value
|
|
36
|
-
"expireAfter": value
|
|
37
|
-
"unique": value
|
|
38
|
-
"max": value
|
|
39
|
-
"min": value
|
|
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"]
|
|
40
35
|
};
|
|
41
36
|
}
|
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
1
|
export function instanceOfInsertResponse(value) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return
|
|
2
|
+
if (!("wasAcknowledged" in value))
|
|
3
|
+
return false;
|
|
4
|
+
return true;
|
|
6
5
|
}
|
|
7
6
|
export function InsertResponseFromJSON(json) {
|
|
8
7
|
return InsertResponseFromJSONTyped(json, false);
|
|
9
8
|
}
|
|
10
9
|
export function InsertResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
11
|
-
if (json
|
|
10
|
+
if (json == null) {
|
|
12
11
|
return json;
|
|
13
12
|
}
|
|
14
13
|
return {
|
|
15
14
|
"wasAcknowledged": json["wasAcknowledged"],
|
|
16
|
-
"insertedIds":
|
|
15
|
+
"insertedIds": json["insertedIds"] == null ? void 0 : json["insertedIds"]
|
|
17
16
|
};
|
|
18
17
|
}
|
|
19
18
|
export function InsertResponseToJSON(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
|
-
"insertedIds": value
|
|
23
|
+
"wasAcknowledged": value["wasAcknowledged"],
|
|
24
|
+
"insertedIds": value["insertedIds"]
|
|
29
25
|
};
|
|
30
26
|
}
|