@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,18 +1,23 @@
|
|
|
1
1
|
export function instanceOfJobConfig(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
if (!("name" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("className" in value))
|
|
5
|
+
return false;
|
|
6
|
+
if (!("description" in value))
|
|
7
|
+
return false;
|
|
8
|
+
if (!("cronExpression" in value))
|
|
9
|
+
return false;
|
|
10
|
+
if (!("group" in value))
|
|
11
|
+
return false;
|
|
12
|
+
if (!("priority" in value))
|
|
13
|
+
return false;
|
|
14
|
+
return true;
|
|
10
15
|
}
|
|
11
16
|
export function JobConfigFromJSON(json) {
|
|
12
17
|
return JobConfigFromJSONTyped(json, false);
|
|
13
18
|
}
|
|
14
19
|
export function JobConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
15
|
-
if (json
|
|
20
|
+
if (json == null) {
|
|
16
21
|
return json;
|
|
17
22
|
}
|
|
18
23
|
return {
|
|
@@ -25,18 +30,15 @@ export function JobConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
30
|
};
|
|
26
31
|
}
|
|
27
32
|
export function JobConfigToJSON(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
|
-
"name": value
|
|
36
|
-
"className": value
|
|
37
|
-
"description": value
|
|
38
|
-
"cronExpression": value
|
|
39
|
-
"group": value
|
|
40
|
-
"priority": value
|
|
37
|
+
"name": value["name"],
|
|
38
|
+
"className": value["className"],
|
|
39
|
+
"description": value["description"],
|
|
40
|
+
"cronExpression": value["cronExpression"],
|
|
41
|
+
"group": value["group"],
|
|
42
|
+
"priority": value["priority"]
|
|
41
43
|
};
|
|
42
44
|
}
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
1
|
export function instanceOfJobInformation(value) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
if (!("name" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("group" in value))
|
|
5
|
+
return false;
|
|
6
|
+
if (!("jobClassName" in value))
|
|
7
|
+
return false;
|
|
8
|
+
if (!("description" in value))
|
|
9
|
+
return false;
|
|
10
|
+
if (!("cronExpression" in value))
|
|
11
|
+
return false;
|
|
12
|
+
if (!("priority" in value))
|
|
13
|
+
return false;
|
|
14
|
+
return true;
|
|
11
15
|
}
|
|
12
16
|
export function JobInformationFromJSON(json) {
|
|
13
17
|
return JobInformationFromJSONTyped(json, false);
|
|
14
18
|
}
|
|
15
19
|
export function JobInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
16
|
-
if (json
|
|
20
|
+
if (json == null) {
|
|
17
21
|
return json;
|
|
18
22
|
}
|
|
19
23
|
return {
|
|
@@ -23,27 +27,24 @@ export function JobInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
27
|
"description": json["description"],
|
|
24
28
|
"cronExpression": json["cronExpression"],
|
|
25
29
|
"priority": json["priority"],
|
|
26
|
-
"lastScheduledFireTime":
|
|
27
|
-
"nextScheduledFireTime":
|
|
28
|
-
"scheduleInformation":
|
|
30
|
+
"lastScheduledFireTime": json["lastScheduledFireTime"] == null ? void 0 : new Date(json["lastScheduledFireTime"]),
|
|
31
|
+
"nextScheduledFireTime": json["nextScheduledFireTime"] == null ? void 0 : new Date(json["nextScheduledFireTime"]),
|
|
32
|
+
"scheduleInformation": json["scheduleInformation"] == null ? void 0 : json["scheduleInformation"]
|
|
29
33
|
};
|
|
30
34
|
}
|
|
31
35
|
export function JobInformationToJSON(value) {
|
|
32
|
-
if (value
|
|
33
|
-
return
|
|
34
|
-
}
|
|
35
|
-
if (value === null) {
|
|
36
|
-
return null;
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
37
38
|
}
|
|
38
39
|
return {
|
|
39
|
-
"name": value
|
|
40
|
-
"group": value
|
|
41
|
-
"jobClassName": value
|
|
42
|
-
"description": value
|
|
43
|
-
"cronExpression": value
|
|
44
|
-
"priority": value
|
|
45
|
-
"lastScheduledFireTime": value
|
|
46
|
-
"nextScheduledFireTime": value
|
|
47
|
-
"scheduleInformation": value
|
|
40
|
+
"name": value["name"],
|
|
41
|
+
"group": value["group"],
|
|
42
|
+
"jobClassName": value["jobClassName"],
|
|
43
|
+
"description": value["description"],
|
|
44
|
+
"cronExpression": value["cronExpression"],
|
|
45
|
+
"priority": value["priority"],
|
|
46
|
+
"lastScheduledFireTime": value["lastScheduledFireTime"] == null ? void 0 : value["lastScheduledFireTime"].toISOString(),
|
|
47
|
+
"nextScheduledFireTime": value["nextScheduledFireTime"] == null ? void 0 : value["nextScheduledFireTime"].toISOString(),
|
|
48
|
+
"scheduleInformation": value["scheduleInformation"]
|
|
48
49
|
};
|
|
49
50
|
}
|
|
@@ -1,38 +1,32 @@
|
|
|
1
|
-
import { mapValues } from "../runtime.mjs";
|
|
2
|
-
import {
|
|
3
|
-
JsonSchemaDefinitionFromJSON,
|
|
4
|
-
JsonSchemaDefinitionToJSON
|
|
5
|
-
} from "./JsonSchemaDefinition.mjs";
|
|
6
1
|
export function instanceOfJsonSchema(value) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
if (!("$schema" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("$ref" in value))
|
|
5
|
+
return false;
|
|
6
|
+
if (!("definitions" in value))
|
|
7
|
+
return false;
|
|
8
|
+
return true;
|
|
12
9
|
}
|
|
13
10
|
export function JsonSchemaFromJSON(json) {
|
|
14
11
|
return JsonSchemaFromJSONTyped(json, false);
|
|
15
12
|
}
|
|
16
13
|
export function JsonSchemaFromJSONTyped(json, ignoreDiscriminator) {
|
|
17
|
-
if (json
|
|
14
|
+
if (json == null) {
|
|
18
15
|
return json;
|
|
19
16
|
}
|
|
20
17
|
return {
|
|
21
18
|
"$schema": json["$schema"],
|
|
22
19
|
"$ref": json["$ref"],
|
|
23
|
-
"definitions":
|
|
20
|
+
"definitions": json["definitions"]
|
|
24
21
|
};
|
|
25
22
|
}
|
|
26
23
|
export function JsonSchemaToJSON(value) {
|
|
27
|
-
if (value
|
|
28
|
-
return
|
|
29
|
-
}
|
|
30
|
-
if (value === null) {
|
|
31
|
-
return null;
|
|
24
|
+
if (value == null) {
|
|
25
|
+
return value;
|
|
32
26
|
}
|
|
33
27
|
return {
|
|
34
|
-
"$schema": value
|
|
35
|
-
"$ref": value
|
|
36
|
-
"definitions":
|
|
28
|
+
"$schema": value["$schema"],
|
|
29
|
+
"$ref": value["$ref"],
|
|
30
|
+
"definitions": value["definitions"]
|
|
37
31
|
};
|
|
38
32
|
}
|
|
@@ -1,39 +1,38 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
1
|
export function instanceOfJsonSchemaDefinition(value) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
if (!("type" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("title" in value))
|
|
5
|
+
return false;
|
|
6
|
+
if (!("additionalProperties" in value))
|
|
7
|
+
return false;
|
|
8
|
+
if (!("properties" in value))
|
|
9
|
+
return false;
|
|
10
|
+
return true;
|
|
9
11
|
}
|
|
10
12
|
export function JsonSchemaDefinitionFromJSON(json) {
|
|
11
13
|
return JsonSchemaDefinitionFromJSONTyped(json, false);
|
|
12
14
|
}
|
|
13
15
|
export function JsonSchemaDefinitionFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
-
if (json
|
|
16
|
+
if (json == null) {
|
|
15
17
|
return json;
|
|
16
18
|
}
|
|
17
19
|
return {
|
|
18
20
|
"type": json["type"],
|
|
19
21
|
"title": json["title"],
|
|
20
22
|
"additionalProperties": json["additionalProperties"],
|
|
21
|
-
"required":
|
|
23
|
+
"required": json["required"] == null ? void 0 : json["required"],
|
|
22
24
|
"properties": json["properties"]
|
|
23
25
|
};
|
|
24
26
|
}
|
|
25
27
|
export function JsonSchemaDefinitionToJSON(value) {
|
|
26
|
-
if (value
|
|
27
|
-
return
|
|
28
|
-
}
|
|
29
|
-
if (value === null) {
|
|
30
|
-
return null;
|
|
28
|
+
if (value == null) {
|
|
29
|
+
return value;
|
|
31
30
|
}
|
|
32
31
|
return {
|
|
33
|
-
"type": value
|
|
34
|
-
"title": value
|
|
35
|
-
"additionalProperties": value
|
|
36
|
-
"required": value
|
|
37
|
-
"properties": value
|
|
32
|
+
"type": value["type"],
|
|
33
|
+
"title": value["title"],
|
|
34
|
+
"additionalProperties": value["additionalProperties"],
|
|
35
|
+
"required": value["required"],
|
|
36
|
+
"properties": value["properties"]
|
|
38
37
|
};
|
|
39
38
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export function instanceOfJsonValueAny(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return
|
|
2
|
+
if (!("value" in value))
|
|
3
|
+
return false;
|
|
4
|
+
return true;
|
|
5
5
|
}
|
|
6
6
|
export function JsonValueAnyFromJSON(json) {
|
|
7
7
|
return JsonValueAnyFromJSONTyped(json, false);
|
|
8
8
|
}
|
|
9
9
|
export function JsonValueAnyFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
-
if (json
|
|
10
|
+
if (json == null) {
|
|
11
11
|
return json;
|
|
12
12
|
}
|
|
13
13
|
return {
|
|
@@ -15,13 +15,10 @@ export function JsonValueAnyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
export function JsonValueAnyToJSON(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
|
-
"value": value
|
|
22
|
+
"value": value["value"]
|
|
26
23
|
};
|
|
27
24
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export function instanceOfJsonValueBoolean(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return
|
|
2
|
+
if (!("value" in value))
|
|
3
|
+
return false;
|
|
4
|
+
return true;
|
|
5
5
|
}
|
|
6
6
|
export function JsonValueBooleanFromJSON(json) {
|
|
7
7
|
return JsonValueBooleanFromJSONTyped(json, false);
|
|
8
8
|
}
|
|
9
9
|
export function JsonValueBooleanFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
-
if (json
|
|
10
|
+
if (json == null) {
|
|
11
11
|
return json;
|
|
12
12
|
}
|
|
13
13
|
return {
|
|
@@ -15,13 +15,10 @@ export function JsonValueBooleanFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
export function JsonValueBooleanToJSON(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
|
-
"value": value
|
|
22
|
+
"value": value["value"]
|
|
26
23
|
};
|
|
27
24
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export function instanceOfJsonValueString(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return
|
|
2
|
+
if (!("value" in value))
|
|
3
|
+
return false;
|
|
4
|
+
return true;
|
|
5
5
|
}
|
|
6
6
|
export function JsonValueStringFromJSON(json) {
|
|
7
7
|
return JsonValueStringFromJSONTyped(json, false);
|
|
8
8
|
}
|
|
9
9
|
export function JsonValueStringFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
-
if (json
|
|
10
|
+
if (json == null) {
|
|
11
11
|
return json;
|
|
12
12
|
}
|
|
13
13
|
return {
|
|
@@ -15,13 +15,10 @@ export function JsonValueStringFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
export function JsonValueStringToJSON(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
|
-
"value": value
|
|
22
|
+
"value": value["value"]
|
|
26
23
|
};
|
|
27
24
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export function instanceOfLogin(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
if (!("userId" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("password" in value))
|
|
5
|
+
return false;
|
|
6
|
+
return true;
|
|
6
7
|
}
|
|
7
8
|
export function LoginFromJSON(json) {
|
|
8
9
|
return LoginFromJSONTyped(json, false);
|
|
9
10
|
}
|
|
10
11
|
export function LoginFromJSONTyped(json, ignoreDiscriminator) {
|
|
11
|
-
if (json
|
|
12
|
+
if (json == null) {
|
|
12
13
|
return json;
|
|
13
14
|
}
|
|
14
15
|
return {
|
|
@@ -17,14 +18,11 @@ export function LoginFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
export function LoginToJSON(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
|
-
"userId": value
|
|
28
|
-
"password": value
|
|
25
|
+
"userId": value["userId"],
|
|
26
|
+
"password": value["password"]
|
|
29
27
|
};
|
|
30
28
|
}
|
|
@@ -3,17 +3,19 @@ import {
|
|
|
3
3
|
UserProfileToJSON
|
|
4
4
|
} from "./UserProfile.mjs";
|
|
5
5
|
export function instanceOfLoginResult(value) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
if (!("authToken" in value))
|
|
7
|
+
return false;
|
|
8
|
+
if (!("userProfile" in value))
|
|
9
|
+
return false;
|
|
10
|
+
if (!("expirationDate" in value))
|
|
11
|
+
return false;
|
|
12
|
+
return true;
|
|
11
13
|
}
|
|
12
14
|
export function LoginResultFromJSON(json) {
|
|
13
15
|
return LoginResultFromJSONTyped(json, false);
|
|
14
16
|
}
|
|
15
17
|
export function LoginResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
16
|
-
if (json
|
|
18
|
+
if (json == null) {
|
|
17
19
|
return json;
|
|
18
20
|
}
|
|
19
21
|
return {
|
|
@@ -23,15 +25,12 @@ export function LoginResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
25
|
};
|
|
24
26
|
}
|
|
25
27
|
export function LoginResultToJSON(value) {
|
|
26
|
-
if (value
|
|
27
|
-
return
|
|
28
|
-
}
|
|
29
|
-
if (value === null) {
|
|
30
|
-
return null;
|
|
28
|
+
if (value == null) {
|
|
29
|
+
return value;
|
|
31
30
|
}
|
|
32
31
|
return {
|
|
33
|
-
"authToken": value
|
|
34
|
-
"userProfile": UserProfileToJSON(value
|
|
35
|
-
"expirationDate": value
|
|
32
|
+
"authToken": value["authToken"],
|
|
33
|
+
"userProfile": UserProfileToJSON(value["userProfile"]),
|
|
34
|
+
"expirationDate": value["expirationDate"].toISOString()
|
|
36
35
|
};
|
|
37
36
|
}
|
|
@@ -1,34 +1,30 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
1
|
import {
|
|
3
2
|
PipelineStageFromJSON,
|
|
4
3
|
PipelineStageToJSON
|
|
5
4
|
} from "./PipelineStage.mjs";
|
|
6
5
|
export function instanceOfMongoAggregateRequest(value) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return
|
|
6
|
+
if (!("allowDiskUse" in value))
|
|
7
|
+
return false;
|
|
8
|
+
return true;
|
|
10
9
|
}
|
|
11
10
|
export function MongoAggregateRequestFromJSON(json) {
|
|
12
11
|
return MongoAggregateRequestFromJSONTyped(json, false);
|
|
13
12
|
}
|
|
14
13
|
export function MongoAggregateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
15
|
-
if (json
|
|
14
|
+
if (json == null) {
|
|
16
15
|
return json;
|
|
17
16
|
}
|
|
18
17
|
return {
|
|
19
|
-
"pipeline":
|
|
18
|
+
"pipeline": json["pipeline"] == null ? void 0 : json["pipeline"].map(PipelineStageFromJSON),
|
|
20
19
|
"allowDiskUse": json["allowDiskUse"]
|
|
21
20
|
};
|
|
22
21
|
}
|
|
23
22
|
export function MongoAggregateRequestToJSON(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
|
-
"pipeline": value
|
|
32
|
-
"allowDiskUse": value
|
|
27
|
+
"pipeline": value["pipeline"] == null ? void 0 : value["pipeline"].map(PipelineStageToJSON),
|
|
28
|
+
"allowDiskUse": value["allowDiskUse"]
|
|
33
29
|
};
|
|
34
30
|
}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
export function instanceOfMongoCampConfiguration(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
if (!("key" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("value" in value))
|
|
5
|
+
return false;
|
|
6
|
+
if (!("configType" in value))
|
|
7
|
+
return false;
|
|
8
|
+
if (!("comment" in value))
|
|
9
|
+
return false;
|
|
10
|
+
if (!("needsRestartForActivation" in value))
|
|
11
|
+
return false;
|
|
12
|
+
return true;
|
|
9
13
|
}
|
|
10
14
|
export function MongoCampConfigurationFromJSON(json) {
|
|
11
15
|
return MongoCampConfigurationFromJSONTyped(json, false);
|
|
12
16
|
}
|
|
13
17
|
export function MongoCampConfigurationFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
-
if (json
|
|
18
|
+
if (json == null) {
|
|
15
19
|
return json;
|
|
16
20
|
}
|
|
17
21
|
return {
|
|
@@ -23,17 +27,14 @@ export function MongoCampConfigurationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
27
|
};
|
|
24
28
|
}
|
|
25
29
|
export function MongoCampConfigurationToJSON(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
|
-
"key": value
|
|
34
|
-
"value": value
|
|
35
|
-
"configType": value
|
|
36
|
-
"comment": value
|
|
37
|
-
"needsRestartForActivation": value
|
|
34
|
+
"key": value["key"],
|
|
35
|
+
"value": value["value"],
|
|
36
|
+
"configType": value["configType"],
|
|
37
|
+
"comment": value["comment"],
|
|
38
|
+
"needsRestartForActivation": value["needsRestartForActivation"]
|
|
38
39
|
};
|
|
39
40
|
}
|
|
@@ -22,7 +22,7 @@ export interface MongoFindRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
filter: {
|
|
24
24
|
[key: string]: string;
|
|
25
|
-
}
|
|
25
|
+
};
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {{ [key: string]: string; }}
|
|
@@ -30,7 +30,7 @@ export interface MongoFindRequest {
|
|
|
30
30
|
*/
|
|
31
31
|
sort: {
|
|
32
32
|
[key: string]: string;
|
|
33
|
-
}
|
|
33
|
+
};
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {{ [key: string]: string; }}
|
|
@@ -38,7 +38,7 @@ export interface MongoFindRequest {
|
|
|
38
38
|
*/
|
|
39
39
|
projection: {
|
|
40
40
|
[key: string]: string;
|
|
41
|
-
}
|
|
41
|
+
};
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Check if a given object implements the MongoFindRequest interface.
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
export function instanceOfMongoFindRequest(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
if (!("filter" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("sort" in value))
|
|
5
|
+
return false;
|
|
6
|
+
if (!("projection" in value))
|
|
7
|
+
return false;
|
|
8
|
+
return true;
|
|
7
9
|
}
|
|
8
10
|
export function MongoFindRequestFromJSON(json) {
|
|
9
11
|
return MongoFindRequestFromJSONTyped(json, false);
|
|
10
12
|
}
|
|
11
13
|
export function MongoFindRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
-
if (json
|
|
14
|
+
if (json == null) {
|
|
13
15
|
return json;
|
|
14
16
|
}
|
|
15
17
|
return {
|
|
@@ -19,15 +21,12 @@ export function MongoFindRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
export function MongoFindRequestToJSON(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
|
-
"filter": value
|
|
30
|
-
"sort": value
|
|
31
|
-
"projection": value
|
|
28
|
+
"filter": value["filter"],
|
|
29
|
+
"sort": value["sort"],
|
|
30
|
+
"projection": value["projection"]
|
|
32
31
|
};
|
|
33
32
|
}
|
|
@@ -52,7 +52,7 @@ export interface MongoIndex {
|
|
|
52
52
|
*/
|
|
53
53
|
keys: {
|
|
54
54
|
[key: string]: string;
|
|
55
|
-
}
|
|
55
|
+
};
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {{ [key: string]: string; }}
|
|
@@ -60,7 +60,7 @@ export interface MongoIndex {
|
|
|
60
60
|
*/
|
|
61
61
|
weights: {
|
|
62
62
|
[key: string]: string;
|
|
63
|
-
}
|
|
63
|
+
};
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {boolean}
|
|
@@ -92,7 +92,7 @@ export interface MongoIndex {
|
|
|
92
92
|
*/
|
|
93
93
|
map: {
|
|
94
94
|
[key: string]: string;
|
|
95
|
-
}
|
|
95
|
+
};
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
98
|
* Check if a given object implements the MongoIndex interface.
|