@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.
Files changed (66) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/api/apis/AdminApi.mjs +99 -63
  4. package/dist/runtime/api/apis/ApplicationApi.mjs +22 -13
  5. package/dist/runtime/api/apis/AuthApi.mjs +19 -13
  6. package/dist/runtime/api/apis/BucketApi.mjs +22 -13
  7. package/dist/runtime/api/apis/CollectionApi.mjs +97 -64
  8. package/dist/runtime/api/apis/DatabaseApi.mjs +23 -14
  9. package/dist/runtime/api/apis/DocumentApi.d.ts +5 -5
  10. package/dist/runtime/api/apis/DocumentApi.mjs +151 -91
  11. package/dist/runtime/api/apis/FileApi.mjs +119 -74
  12. package/dist/runtime/api/apis/IndexApi.mjs +117 -69
  13. package/dist/runtime/api/apis/JobsApi.mjs +51 -27
  14. package/dist/runtime/api/models/BucketInformation.mjs +16 -16
  15. package/dist/runtime/api/models/CollectionStatus.d.ts +2 -2
  16. package/dist/runtime/api/models/CollectionStatus.mjs +43 -34
  17. package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
  18. package/dist/runtime/api/models/DatabaseInfo.mjs +19 -18
  19. package/dist/runtime/api/models/DeleteResponse.mjs +10 -12
  20. package/dist/runtime/api/models/ErrorDescription.mjs +13 -14
  21. package/dist/runtime/api/models/FileInformation.d.ts +1 -1
  22. package/dist/runtime/api/models/FileInformation.mjs +22 -20
  23. package/dist/runtime/api/models/Grant.mjs +19 -18
  24. package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
  25. package/dist/runtime/api/models/IndexCreateRequest.mjs +9 -13
  26. package/dist/runtime/api/models/IndexCreateResponse.mjs +7 -10
  27. package/dist/runtime/api/models/IndexDropResponse.mjs +7 -10
  28. package/dist/runtime/api/models/IndexOptionsRequest.mjs +20 -25
  29. package/dist/runtime/api/models/InsertResponse.mjs +9 -13
  30. package/dist/runtime/api/models/JobConfig.mjs +22 -20
  31. package/dist/runtime/api/models/JobInformation.mjs +28 -27
  32. package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
  33. package/dist/runtime/api/models/JsonSchema.mjs +14 -20
  34. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
  35. package/dist/runtime/api/models/JsonSchemaDefinition.mjs +18 -19
  36. package/dist/runtime/api/models/JsonValueAny.mjs +7 -10
  37. package/dist/runtime/api/models/JsonValueBoolean.mjs +7 -10
  38. package/dist/runtime/api/models/JsonValueString.mjs +7 -10
  39. package/dist/runtime/api/models/Login.mjs +10 -12
  40. package/dist/runtime/api/models/LoginResult.mjs +13 -14
  41. package/dist/runtime/api/models/MongoAggregateRequest.mjs +9 -13
  42. package/dist/runtime/api/models/MongoCampConfiguration.mjs +19 -18
  43. package/dist/runtime/api/models/MongoFindRequest.d.ts +3 -3
  44. package/dist/runtime/api/models/MongoFindRequest.mjs +13 -14
  45. package/dist/runtime/api/models/MongoIndex.d.ts +3 -3
  46. package/dist/runtime/api/models/MongoIndex.mjs +39 -33
  47. package/dist/runtime/api/models/PasswordUpdateRequest.mjs +7 -10
  48. package/dist/runtime/api/models/PipelineStage.mjs +10 -12
  49. package/dist/runtime/api/models/Role.mjs +12 -15
  50. package/dist/runtime/api/models/SchemaAnalysis.mjs +15 -17
  51. package/dist/runtime/api/models/SchemaAnalysisField.mjs +20 -21
  52. package/dist/runtime/api/models/SchemaAnalysisFieldType.mjs +13 -14
  53. package/dist/runtime/api/models/SettingsResponse.d.ts +1 -1
  54. package/dist/runtime/api/models/SettingsResponse.mjs +13 -17
  55. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
  56. package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +8 -13
  57. package/dist/runtime/api/models/UpdateRequest.d.ts +2 -2
  58. package/dist/runtime/api/models/UpdateRequest.mjs +10 -12
  59. package/dist/runtime/api/models/UpdateResponse.mjs +15 -17
  60. package/dist/runtime/api/models/UpdateRoleRequest.mjs +9 -13
  61. package/dist/runtime/api/models/UserInformation.mjs +14 -17
  62. package/dist/runtime/api/models/UserProfile.mjs +16 -19
  63. package/dist/runtime/api/models/Version.mjs +13 -14
  64. package/dist/runtime/api/runtime.d.ts +2 -3
  65. package/dist/runtime/api/runtime.mjs +0 -4
  66. package/package.json +3 -2
@@ -1,18 +1,23 @@
1
1
  export function instanceOfJobConfig(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "name" in value;
4
- isInstance = isInstance && "className" in value;
5
- isInstance = isInstance && "description" in value;
6
- isInstance = isInstance && "cronExpression" in value;
7
- isInstance = isInstance && "group" in value;
8
- isInstance = isInstance && "priority" in value;
9
- return isInstance;
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 === void 0 || json === null) {
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 === void 0) {
29
- return void 0;
30
- }
31
- if (value === null) {
32
- return null;
33
+ if (value == null) {
34
+ return value;
33
35
  }
34
36
  return {
35
- "name": value.name,
36
- "className": value.className,
37
- "description": value.description,
38
- "cronExpression": value.cronExpression,
39
- "group": value.group,
40
- "priority": value.priority
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
- let isInstance = true;
4
- isInstance = isInstance && "name" in value;
5
- isInstance = isInstance && "group" in value;
6
- isInstance = isInstance && "jobClassName" in value;
7
- isInstance = isInstance && "description" in value;
8
- isInstance = isInstance && "cronExpression" in value;
9
- isInstance = isInstance && "priority" in value;
10
- return isInstance;
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 === void 0 || json === null) {
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": !exists(json, "lastScheduledFireTime") ? void 0 : new Date(json["lastScheduledFireTime"]),
27
- "nextScheduledFireTime": !exists(json, "nextScheduledFireTime") ? void 0 : new Date(json["nextScheduledFireTime"]),
28
- "scheduleInformation": !exists(json, "scheduleInformation") ? void 0 : json["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 === void 0) {
33
- return void 0;
34
- }
35
- if (value === null) {
36
- return null;
36
+ if (value == null) {
37
+ return value;
37
38
  }
38
39
  return {
39
- "name": value.name,
40
- "group": value.group,
41
- "jobClassName": value.jobClassName,
42
- "description": value.description,
43
- "cronExpression": value.cronExpression,
44
- "priority": value.priority,
45
- "lastScheduledFireTime": value.lastScheduledFireTime === void 0 ? void 0 : value.lastScheduledFireTime.toISOString(),
46
- "nextScheduledFireTime": value.nextScheduledFireTime === void 0 ? void 0 : value.nextScheduledFireTime.toISOString(),
47
- "scheduleInformation": value.scheduleInformation
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
  }
@@ -35,7 +35,7 @@ export interface JsonSchema {
35
35
  */
36
36
  definitions: {
37
37
  [key: string]: JsonSchemaDefinition;
38
- } | null;
38
+ };
39
39
  }
40
40
  /**
41
41
  * Check if a given object implements the JsonSchema interface.
@@ -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
- let isInstance = true;
8
- isInstance = isInstance && "$schema" in value;
9
- isInstance = isInstance && "$ref" in value;
10
- isInstance = isInstance && "definitions" in value;
11
- return isInstance;
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 === void 0 || json === null) {
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": mapValues(json["definitions"], JsonSchemaDefinitionFromJSON)
20
+ "definitions": json["definitions"]
24
21
  };
25
22
  }
26
23
  export function JsonSchemaToJSON(value) {
27
- if (value === void 0) {
28
- return void 0;
29
- }
30
- if (value === null) {
31
- return null;
24
+ if (value == null) {
25
+ return value;
32
26
  }
33
27
  return {
34
- "$schema": value.$schema,
35
- "$ref": value.$ref,
36
- "definitions": mapValues(value.definitions, JsonSchemaDefinitionToJSON)
28
+ "$schema": value["$schema"],
29
+ "$ref": value["$ref"],
30
+ "definitions": value["definitions"]
37
31
  };
38
32
  }
@@ -48,7 +48,7 @@ export interface JsonSchemaDefinition {
48
48
  [key: string]: {
49
49
  [key: string]: string;
50
50
  };
51
- } | null;
51
+ };
52
52
  }
53
53
  /**
54
54
  * Check if a given object implements the JsonSchemaDefinition interface.
@@ -1,39 +1,38 @@
1
- import { exists } from "../runtime.mjs";
2
1
  export function instanceOfJsonSchemaDefinition(value) {
3
- let isInstance = true;
4
- isInstance = isInstance && "type" in value;
5
- isInstance = isInstance && "title" in value;
6
- isInstance = isInstance && "additionalProperties" in value;
7
- isInstance = isInstance && "properties" in value;
8
- return isInstance;
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 === void 0 || json === null) {
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": !exists(json, "required") ? void 0 : json["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 === void 0) {
27
- return void 0;
28
- }
29
- if (value === null) {
30
- return null;
28
+ if (value == null) {
29
+ return value;
31
30
  }
32
31
  return {
33
- "type": value.type,
34
- "title": value.title,
35
- "additionalProperties": value.additionalProperties,
36
- "required": value.required,
37
- "properties": value.properties
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
- let isInstance = true;
3
- isInstance = isInstance && "value" in value;
4
- return isInstance;
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 === void 0 || json === null) {
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 === void 0) {
19
- return void 0;
20
- }
21
- if (value === null) {
22
- return null;
18
+ if (value == null) {
19
+ return value;
23
20
  }
24
21
  return {
25
- "value": value.value
22
+ "value": value["value"]
26
23
  };
27
24
  }
@@ -1,13 +1,13 @@
1
1
  export function instanceOfJsonValueBoolean(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "value" in value;
4
- return isInstance;
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 === void 0 || json === null) {
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 === void 0) {
19
- return void 0;
20
- }
21
- if (value === null) {
22
- return null;
18
+ if (value == null) {
19
+ return value;
23
20
  }
24
21
  return {
25
- "value": value.value
22
+ "value": value["value"]
26
23
  };
27
24
  }
@@ -1,13 +1,13 @@
1
1
  export function instanceOfJsonValueString(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "value" in value;
4
- return isInstance;
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 === void 0 || json === null) {
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 === void 0) {
19
- return void 0;
20
- }
21
- if (value === null) {
22
- return null;
18
+ if (value == null) {
19
+ return value;
23
20
  }
24
21
  return {
25
- "value": value.value
22
+ "value": value["value"]
26
23
  };
27
24
  }
@@ -1,14 +1,15 @@
1
1
  export function instanceOfLogin(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "userId" in value;
4
- isInstance = isInstance && "password" in value;
5
- return isInstance;
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 === void 0 || json === null) {
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 === void 0) {
21
- return void 0;
22
- }
23
- if (value === null) {
24
- return null;
21
+ if (value == null) {
22
+ return value;
25
23
  }
26
24
  return {
27
- "userId": value.userId,
28
- "password": value.password
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
- let isInstance = true;
7
- isInstance = isInstance && "authToken" in value;
8
- isInstance = isInstance && "userProfile" in value;
9
- isInstance = isInstance && "expirationDate" in value;
10
- return isInstance;
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 === void 0 || json === null) {
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 === void 0) {
27
- return void 0;
28
- }
29
- if (value === null) {
30
- return null;
28
+ if (value == null) {
29
+ return value;
31
30
  }
32
31
  return {
33
- "authToken": value.authToken,
34
- "userProfile": UserProfileToJSON(value.userProfile),
35
- "expirationDate": value.expirationDate.toISOString()
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
- let isInstance = true;
8
- isInstance = isInstance && "allowDiskUse" in value;
9
- return isInstance;
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 === void 0 || json === null) {
14
+ if (json == null) {
16
15
  return json;
17
16
  }
18
17
  return {
19
- "pipeline": !exists(json, "pipeline") ? void 0 : json["pipeline"].map(PipelineStageFromJSON),
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 === void 0) {
25
- return void 0;
26
- }
27
- if (value === null) {
28
- return null;
23
+ if (value == null) {
24
+ return value;
29
25
  }
30
26
  return {
31
- "pipeline": value.pipeline === void 0 ? void 0 : value.pipeline.map(PipelineStageToJSON),
32
- "allowDiskUse": value.allowDiskUse
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
- let isInstance = true;
3
- isInstance = isInstance && "key" in value;
4
- isInstance = isInstance && "value" in value;
5
- isInstance = isInstance && "configType" in value;
6
- isInstance = isInstance && "comment" in value;
7
- isInstance = isInstance && "needsRestartForActivation" in value;
8
- return isInstance;
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 === void 0 || json === null) {
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 === void 0) {
27
- return void 0;
28
- }
29
- if (value === null) {
30
- return null;
30
+ if (value == null) {
31
+ return value;
31
32
  }
32
33
  return {
33
- "key": value.key,
34
- "value": value.value,
35
- "configType": value.configType,
36
- "comment": value.comment,
37
- "needsRestartForActivation": value.needsRestartForActivation
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
- } | null;
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
- } | null;
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
- } | null;
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
- let isInstance = true;
3
- isInstance = isInstance && "filter" in value;
4
- isInstance = isInstance && "sort" in value;
5
- isInstance = isInstance && "projection" in value;
6
- return isInstance;
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 === void 0 || json === null) {
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 === void 0) {
23
- return void 0;
24
- }
25
- if (value === null) {
26
- return null;
24
+ if (value == null) {
25
+ return value;
27
26
  }
28
27
  return {
29
- "filter": value.filter,
30
- "sort": value.sort,
31
- "projection": value.projection
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
- } | null;
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
- } | null;
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
- } | null;
95
+ };
96
96
  }
97
97
  /**
98
98
  * Check if a given object implements the MongoIndex interface.