@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.
Files changed (153) hide show
  1. package/README.md +1 -1
  2. package/dist/module.json +5 -1
  3. package/dist/module.mjs +1 -1
  4. package/dist/runtime/api/apis/AdminApi.d.ts +2 -2
  5. package/dist/runtime/api/apis/{AdminApi.mjs → AdminApi.js} +101 -65
  6. package/dist/runtime/api/apis/ApplicationApi.d.ts +2 -2
  7. package/dist/runtime/api/apis/{ApplicationApi.mjs → ApplicationApi.js} +24 -15
  8. package/dist/runtime/api/apis/AuthApi.d.ts +2 -2
  9. package/dist/runtime/api/apis/{AuthApi.mjs → AuthApi.js} +21 -15
  10. package/dist/runtime/api/apis/BucketApi.d.ts +2 -2
  11. package/dist/runtime/api/apis/{BucketApi.mjs → BucketApi.js} +24 -15
  12. package/dist/runtime/api/apis/CollectionApi.d.ts +2 -2
  13. package/dist/runtime/api/apis/{CollectionApi.mjs → CollectionApi.js} +99 -66
  14. package/dist/runtime/api/apis/DatabaseApi.d.ts +2 -2
  15. package/dist/runtime/api/apis/{DatabaseApi.mjs → DatabaseApi.js} +25 -16
  16. package/dist/runtime/api/apis/DocumentApi.d.ts +6 -6
  17. package/dist/runtime/api/apis/{DocumentApi.mjs → DocumentApi.js} +153 -93
  18. package/dist/runtime/api/apis/FileApi.d.ts +2 -2
  19. package/dist/runtime/api/apis/{FileApi.mjs → FileApi.js} +121 -76
  20. package/dist/runtime/api/apis/IndexApi.d.ts +2 -2
  21. package/dist/runtime/api/apis/{IndexApi.mjs → IndexApi.js} +119 -71
  22. package/dist/runtime/api/apis/InformationApi.d.ts +2 -2
  23. package/dist/runtime/api/apis/{InformationApi.mjs → InformationApi.js} +2 -2
  24. package/dist/runtime/api/apis/JobsApi.d.ts +2 -2
  25. package/dist/runtime/api/apis/{JobsApi.mjs → JobsApi.js} +53 -29
  26. package/dist/runtime/api/apis/index.d.ts +11 -11
  27. package/dist/runtime/api/apis/index.js +11 -0
  28. package/dist/runtime/api/index.d.ts +3 -3
  29. package/dist/runtime/api/index.js +3 -0
  30. package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
  31. package/dist/runtime/api/models/BucketInformation.js +32 -0
  32. package/dist/runtime/api/models/CollectionStatus.d.ts +3 -3
  33. package/dist/runtime/api/models/CollectionStatus.js +59 -0
  34. package/dist/runtime/api/models/DatabaseInfo.d.ts +2 -2
  35. package/dist/runtime/api/models/DatabaseInfo.js +35 -0
  36. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
  37. package/dist/runtime/api/models/{DeleteResponse.mjs → DeleteResponse.js} +8 -12
  38. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
  39. package/dist/runtime/api/models/{ErrorDescription.mjs → ErrorDescription.js} +10 -14
  40. package/dist/runtime/api/models/FileInformation.d.ts +2 -2
  41. package/dist/runtime/api/models/FileInformation.js +38 -0
  42. package/dist/runtime/api/models/Grant.d.ts +1 -1
  43. package/dist/runtime/api/models/Grant.js +35 -0
  44. package/dist/runtime/api/models/IndexCreateRequest.d.ts +3 -3
  45. package/dist/runtime/api/models/IndexCreateRequest.js +29 -0
  46. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
  47. package/dist/runtime/api/models/{IndexCreateResponse.mjs → IndexCreateResponse.js} +6 -10
  48. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
  49. package/dist/runtime/api/models/{IndexDropResponse.mjs → IndexDropResponse.js} +6 -10
  50. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +1 -1
  51. package/dist/runtime/api/models/IndexOptionsRequest.js +36 -0
  52. package/dist/runtime/api/models/InsertResponse.d.ts +1 -1
  53. package/dist/runtime/api/models/InsertResponse.js +25 -0
  54. package/dist/runtime/api/models/JobConfig.d.ts +1 -1
  55. package/dist/runtime/api/models/JobConfig.js +38 -0
  56. package/dist/runtime/api/models/JobInformation.d.ts +1 -1
  57. package/dist/runtime/api/models/JobInformation.js +44 -0
  58. package/dist/runtime/api/models/JsonSchema.d.ts +3 -3
  59. package/dist/runtime/api/models/JsonSchema.js +34 -0
  60. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +2 -2
  61. package/dist/runtime/api/models/JsonSchemaDefinition.js +34 -0
  62. package/dist/runtime/api/models/JsonValueAny.d.ts +1 -1
  63. package/dist/runtime/api/models/{JsonValueAny.mjs → JsonValueAny.js} +6 -10
  64. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
  65. package/dist/runtime/api/models/{JsonValueBoolean.mjs → JsonValueBoolean.js} +6 -10
  66. package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
  67. package/dist/runtime/api/models/{JsonValueString.mjs → JsonValueString.js} +6 -10
  68. package/dist/runtime/api/models/Login.d.ts +1 -1
  69. package/dist/runtime/api/models/{Login.mjs → Login.js} +8 -12
  70. package/dist/runtime/api/models/LoginResult.d.ts +2 -2
  71. package/dist/runtime/api/models/{LoginResult.mjs → LoginResult.js} +11 -15
  72. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +2 -2
  73. package/dist/runtime/api/models/MongoAggregateRequest.js +29 -0
  74. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -1
  75. package/dist/runtime/api/models/MongoCampConfiguration.js +35 -0
  76. package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -4
  77. package/dist/runtime/api/models/{MongoFindRequest.mjs → MongoFindRequest.js} +10 -14
  78. package/dist/runtime/api/models/MongoIndex.d.ts +4 -4
  79. package/dist/runtime/api/models/MongoIndex.js +55 -0
  80. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
  81. package/dist/runtime/api/models/{PasswordUpdateRequest.mjs → PasswordUpdateRequest.js} +6 -10
  82. package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
  83. package/dist/runtime/api/models/{PipelineStage.mjs → PipelineStage.js} +8 -12
  84. package/dist/runtime/api/models/Role.d.ts +2 -2
  85. package/dist/runtime/api/models/Role.js +32 -0
  86. package/dist/runtime/api/models/SchemaAnalysis.d.ts +2 -2
  87. package/dist/runtime/api/models/SchemaAnalysis.js +35 -0
  88. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +2 -2
  89. package/dist/runtime/api/models/SchemaAnalysisField.js +40 -0
  90. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
  91. package/dist/runtime/api/models/{SchemaAnalysisFieldType.mjs → SchemaAnalysisFieldType.js} +10 -14
  92. package/dist/runtime/api/models/SettingsResponse.d.ts +2 -2
  93. package/dist/runtime/api/models/SettingsResponse.js +29 -0
  94. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +2 -2
  95. package/dist/runtime/api/models/UpdateFileInformationRequest.js +24 -0
  96. package/dist/runtime/api/models/UpdateRequest.d.ts +3 -3
  97. package/dist/runtime/api/models/{UpdateRequest.mjs → UpdateRequest.js} +8 -12
  98. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
  99. package/dist/runtime/api/models/UpdateResponse.js +31 -0
  100. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +2 -2
  101. package/dist/runtime/api/models/UpdateRoleRequest.js +29 -0
  102. package/dist/runtime/api/models/UserInformation.d.ts +1 -1
  103. package/dist/runtime/api/models/UserInformation.js +30 -0
  104. package/dist/runtime/api/models/UserProfile.d.ts +2 -2
  105. package/dist/runtime/api/models/UserProfile.js +36 -0
  106. package/dist/runtime/api/models/Version.d.ts +1 -1
  107. package/dist/runtime/api/models/Version.js +29 -0
  108. package/dist/runtime/api/models/index.d.ts +39 -39
  109. package/dist/runtime/api/models/index.js +39 -0
  110. package/dist/runtime/api/runtime.d.ts +2 -3
  111. package/dist/runtime/api/{runtime.mjs → runtime.js} +0 -4
  112. package/dist/runtime/composables/mongocampApi.d.ts +1 -1
  113. package/dist/runtime/composables/{mongocampApi.mjs → mongocampApi.js} +3 -3
  114. package/dist/runtime/composables/mongocampAuth.d.ts +1 -1
  115. package/dist/runtime/composables/{mongocampAuth.mjs → mongocampAuth.js} +3 -3
  116. package/dist/runtime/composables/mongocampSearch.d.ts +1 -1
  117. package/dist/runtime/composables/{mongocampSearch.mjs → mongocampSearch.js} +1 -1
  118. package/dist/runtime/composables/mongocampStorage.d.ts +5 -0
  119. package/dist/runtime/composables/mongocampUser.d.ts +1 -1
  120. package/dist/types.d.mts +1 -16
  121. package/dist/types.d.ts +1 -16
  122. package/package.json +18 -17
  123. package/dist/runtime/api/apis/index.mjs +0 -11
  124. package/dist/runtime/api/index.mjs +0 -3
  125. package/dist/runtime/api/models/BucketInformation.mjs +0 -36
  126. package/dist/runtime/api/models/CollectionStatus.mjs +0 -63
  127. package/dist/runtime/api/models/DatabaseInfo.mjs +0 -39
  128. package/dist/runtime/api/models/FileInformation.mjs +0 -42
  129. package/dist/runtime/api/models/Grant.mjs +0 -39
  130. package/dist/runtime/api/models/IndexCreateRequest.mjs +0 -34
  131. package/dist/runtime/api/models/IndexOptionsRequest.mjs +0 -41
  132. package/dist/runtime/api/models/InsertResponse.mjs +0 -30
  133. package/dist/runtime/api/models/JobConfig.mjs +0 -42
  134. package/dist/runtime/api/models/JobInformation.mjs +0 -49
  135. package/dist/runtime/api/models/JsonSchema.mjs +0 -38
  136. package/dist/runtime/api/models/JsonSchemaDefinition.mjs +0 -39
  137. package/dist/runtime/api/models/MongoAggregateRequest.mjs +0 -34
  138. package/dist/runtime/api/models/MongoCampConfiguration.mjs +0 -39
  139. package/dist/runtime/api/models/MongoIndex.mjs +0 -60
  140. package/dist/runtime/api/models/Role.mjs +0 -37
  141. package/dist/runtime/api/models/SchemaAnalysis.mjs +0 -40
  142. package/dist/runtime/api/models/SchemaAnalysisField.mjs +0 -45
  143. package/dist/runtime/api/models/SettingsResponse.mjs +0 -34
  144. package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +0 -29
  145. package/dist/runtime/api/models/UpdateResponse.mjs +0 -36
  146. package/dist/runtime/api/models/UpdateRoleRequest.mjs +0 -34
  147. package/dist/runtime/api/models/UserInformation.mjs +0 -35
  148. package/dist/runtime/api/models/UserProfile.mjs +0 -41
  149. package/dist/runtime/api/models/Version.mjs +0 -33
  150. package/dist/runtime/api/models/index.mjs +0 -39
  151. /package/dist/runtime/composables/{mongocampStorage.mjs → mongocampStorage.js} +0 -0
  152. /package/dist/runtime/composables/{mongocampUrl.mjs → mongocampUrl.js} +0 -0
  153. /package/dist/runtime/composables/{mongocampUser.mjs → mongocampUser.js} +0 -0
@@ -73,7 +73,7 @@ export interface JobInformation {
73
73
  /**
74
74
  * Check if a given object implements the JobInformation interface.
75
75
  */
76
- export declare function instanceOfJobInformation(value: object): boolean;
76
+ export declare function instanceOfJobInformation(value: object): value is JobInformation;
77
77
  export declare function JobInformationFromJSON(json: any): JobInformation;
78
78
  export declare function JobInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobInformation;
79
79
  export declare function JobInformationToJSON(value?: JobInformation | null): any;
@@ -0,0 +1,44 @@
1
+ export function instanceOfJobInformation(value) {
2
+ if (!("name" in value) || value["name"] === void 0) return false;
3
+ if (!("group" in value) || value["group"] === void 0) return false;
4
+ if (!("jobClassName" in value) || value["jobClassName"] === void 0) return false;
5
+ if (!("description" in value) || value["description"] === void 0) return false;
6
+ if (!("cronExpression" in value) || value["cronExpression"] === void 0) return false;
7
+ if (!("priority" in value) || value["priority"] === void 0) return false;
8
+ return true;
9
+ }
10
+ export function JobInformationFromJSON(json) {
11
+ return JobInformationFromJSONTyped(json, false);
12
+ }
13
+ export function JobInformationFromJSONTyped(json, ignoreDiscriminator) {
14
+ if (json == null) {
15
+ return json;
16
+ }
17
+ return {
18
+ "name": json["name"],
19
+ "group": json["group"],
20
+ "jobClassName": json["jobClassName"],
21
+ "description": json["description"],
22
+ "cronExpression": json["cronExpression"],
23
+ "priority": json["priority"],
24
+ "lastScheduledFireTime": json["lastScheduledFireTime"] == null ? void 0 : new Date(json["lastScheduledFireTime"]),
25
+ "nextScheduledFireTime": json["nextScheduledFireTime"] == null ? void 0 : new Date(json["nextScheduledFireTime"]),
26
+ "scheduleInformation": json["scheduleInformation"] == null ? void 0 : json["scheduleInformation"]
27
+ };
28
+ }
29
+ export function JobInformationToJSON(value) {
30
+ if (value == null) {
31
+ return value;
32
+ }
33
+ return {
34
+ "name": value["name"],
35
+ "group": value["group"],
36
+ "jobClassName": value["jobClassName"],
37
+ "description": value["description"],
38
+ "cronExpression": value["cronExpression"],
39
+ "priority": value["priority"],
40
+ "lastScheduledFireTime": value["lastScheduledFireTime"] == null ? void 0 : value["lastScheduledFireTime"].toISOString(),
41
+ "nextScheduledFireTime": value["nextScheduledFireTime"] == null ? void 0 : value["nextScheduledFireTime"].toISOString(),
42
+ "scheduleInformation": value["scheduleInformation"]
43
+ };
44
+ }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { JsonSchemaDefinition } from './JsonSchemaDefinition';
12
+ import type { JsonSchemaDefinition } from './JsonSchemaDefinition.js';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -35,12 +35,12 @@ 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.
42
42
  */
43
- export declare function instanceOfJsonSchema(value: object): boolean;
43
+ export declare function instanceOfJsonSchema(value: object): value is JsonSchema;
44
44
  export declare function JsonSchemaFromJSON(json: any): JsonSchema;
45
45
  export declare function JsonSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): JsonSchema;
46
46
  export declare function JsonSchemaToJSON(value?: JsonSchema | null): any;
@@ -0,0 +1,34 @@
1
+ import { mapValues } from "../runtime.js";
2
+ import {
3
+ JsonSchemaDefinitionFromJSON,
4
+ JsonSchemaDefinitionToJSON
5
+ } from "./JsonSchemaDefinition.js";
6
+ export function instanceOfJsonSchema(value) {
7
+ if (!("$schema" in value) || value["$schema"] === void 0) return false;
8
+ if (!("$ref" in value) || value["$ref"] === void 0) return false;
9
+ if (!("definitions" in value) || value["definitions"] === void 0) return false;
10
+ return true;
11
+ }
12
+ export function JsonSchemaFromJSON(json) {
13
+ return JsonSchemaFromJSONTyped(json, false);
14
+ }
15
+ export function JsonSchemaFromJSONTyped(json, ignoreDiscriminator) {
16
+ if (json == null) {
17
+ return json;
18
+ }
19
+ return {
20
+ "$schema": json["$schema"],
21
+ "$ref": json["$ref"],
22
+ "definitions": mapValues(json["definitions"], JsonSchemaDefinitionFromJSON)
23
+ };
24
+ }
25
+ export function JsonSchemaToJSON(value) {
26
+ if (value == null) {
27
+ return value;
28
+ }
29
+ return {
30
+ "$schema": value["$schema"],
31
+ "$ref": value["$ref"],
32
+ "definitions": mapValues(value["definitions"], JsonSchemaDefinitionToJSON)
33
+ };
34
+ }
@@ -48,12 +48,12 @@ 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.
55
55
  */
56
- export declare function instanceOfJsonSchemaDefinition(value: object): boolean;
56
+ export declare function instanceOfJsonSchemaDefinition(value: object): value is JsonSchemaDefinition;
57
57
  export declare function JsonSchemaDefinitionFromJSON(json: any): JsonSchemaDefinition;
58
58
  export declare function JsonSchemaDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): JsonSchemaDefinition;
59
59
  export declare function JsonSchemaDefinitionToJSON(value?: JsonSchemaDefinition | null): any;
@@ -0,0 +1,34 @@
1
+ export function instanceOfJsonSchemaDefinition(value) {
2
+ if (!("type" in value) || value["type"] === void 0) return false;
3
+ if (!("title" in value) || value["title"] === void 0) return false;
4
+ if (!("additionalProperties" in value) || value["additionalProperties"] === void 0) return false;
5
+ if (!("properties" in value) || value["properties"] === void 0) return false;
6
+ return true;
7
+ }
8
+ export function JsonSchemaDefinitionFromJSON(json) {
9
+ return JsonSchemaDefinitionFromJSONTyped(json, false);
10
+ }
11
+ export function JsonSchemaDefinitionFromJSONTyped(json, ignoreDiscriminator) {
12
+ if (json == null) {
13
+ return json;
14
+ }
15
+ return {
16
+ "type": json["type"],
17
+ "title": json["title"],
18
+ "additionalProperties": json["additionalProperties"],
19
+ "required": json["required"] == null ? void 0 : json["required"],
20
+ "properties": json["properties"]
21
+ };
22
+ }
23
+ export function JsonSchemaDefinitionToJSON(value) {
24
+ if (value == null) {
25
+ return value;
26
+ }
27
+ return {
28
+ "type": value["type"],
29
+ "title": value["title"],
30
+ "additionalProperties": value["additionalProperties"],
31
+ "required": value["required"],
32
+ "properties": value["properties"]
33
+ };
34
+ }
@@ -25,7 +25,7 @@ export interface JsonValueAny {
25
25
  /**
26
26
  * Check if a given object implements the JsonValueAny interface.
27
27
  */
28
- export declare function instanceOfJsonValueAny(value: object): boolean;
28
+ export declare function instanceOfJsonValueAny(value: object): value is JsonValueAny;
29
29
  export declare function JsonValueAnyFromJSON(json: any): JsonValueAny;
30
30
  export declare function JsonValueAnyFromJSONTyped(json: any, ignoreDiscriminator: boolean): JsonValueAny;
31
31
  export declare function JsonValueAnyToJSON(value?: JsonValueAny | null): any;
@@ -1,13 +1,12 @@
1
1
  export function instanceOfJsonValueAny(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "value" in value;
4
- return isInstance;
2
+ if (!("value" in value) || value["value"] === void 0) return false;
3
+ return true;
5
4
  }
6
5
  export function JsonValueAnyFromJSON(json) {
7
6
  return JsonValueAnyFromJSONTyped(json, false);
8
7
  }
9
8
  export function JsonValueAnyFromJSONTyped(json, ignoreDiscriminator) {
10
- if (json === void 0 || json === null) {
9
+ if (json == null) {
11
10
  return json;
12
11
  }
13
12
  return {
@@ -15,13 +14,10 @@ export function JsonValueAnyFromJSONTyped(json, ignoreDiscriminator) {
15
14
  };
16
15
  }
17
16
  export function JsonValueAnyToJSON(value) {
18
- if (value === void 0) {
19
- return void 0;
20
- }
21
- if (value === null) {
22
- return null;
17
+ if (value == null) {
18
+ return value;
23
19
  }
24
20
  return {
25
- "value": value.value
21
+ "value": value["value"]
26
22
  };
27
23
  }
@@ -25,7 +25,7 @@ export interface JsonValueBoolean {
25
25
  /**
26
26
  * Check if a given object implements the JsonValueBoolean interface.
27
27
  */
28
- export declare function instanceOfJsonValueBoolean(value: object): boolean;
28
+ export declare function instanceOfJsonValueBoolean(value: object): value is JsonValueBoolean;
29
29
  export declare function JsonValueBooleanFromJSON(json: any): JsonValueBoolean;
30
30
  export declare function JsonValueBooleanFromJSONTyped(json: any, ignoreDiscriminator: boolean): JsonValueBoolean;
31
31
  export declare function JsonValueBooleanToJSON(value?: JsonValueBoolean | null): any;
@@ -1,13 +1,12 @@
1
1
  export function instanceOfJsonValueBoolean(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "value" in value;
4
- return isInstance;
2
+ if (!("value" in value) || value["value"] === void 0) return false;
3
+ return true;
5
4
  }
6
5
  export function JsonValueBooleanFromJSON(json) {
7
6
  return JsonValueBooleanFromJSONTyped(json, false);
8
7
  }
9
8
  export function JsonValueBooleanFromJSONTyped(json, ignoreDiscriminator) {
10
- if (json === void 0 || json === null) {
9
+ if (json == null) {
11
10
  return json;
12
11
  }
13
12
  return {
@@ -15,13 +14,10 @@ export function JsonValueBooleanFromJSONTyped(json, ignoreDiscriminator) {
15
14
  };
16
15
  }
17
16
  export function JsonValueBooleanToJSON(value) {
18
- if (value === void 0) {
19
- return void 0;
20
- }
21
- if (value === null) {
22
- return null;
17
+ if (value == null) {
18
+ return value;
23
19
  }
24
20
  return {
25
- "value": value.value
21
+ "value": value["value"]
26
22
  };
27
23
  }
@@ -25,7 +25,7 @@ export interface JsonValueString {
25
25
  /**
26
26
  * Check if a given object implements the JsonValueString interface.
27
27
  */
28
- export declare function instanceOfJsonValueString(value: object): boolean;
28
+ export declare function instanceOfJsonValueString(value: object): value is JsonValueString;
29
29
  export declare function JsonValueStringFromJSON(json: any): JsonValueString;
30
30
  export declare function JsonValueStringFromJSONTyped(json: any, ignoreDiscriminator: boolean): JsonValueString;
31
31
  export declare function JsonValueStringToJSON(value?: JsonValueString | null): any;
@@ -1,13 +1,12 @@
1
1
  export function instanceOfJsonValueString(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "value" in value;
4
- return isInstance;
2
+ if (!("value" in value) || value["value"] === void 0) return false;
3
+ return true;
5
4
  }
6
5
  export function JsonValueStringFromJSON(json) {
7
6
  return JsonValueStringFromJSONTyped(json, false);
8
7
  }
9
8
  export function JsonValueStringFromJSONTyped(json, ignoreDiscriminator) {
10
- if (json === void 0 || json === null) {
9
+ if (json == null) {
11
10
  return json;
12
11
  }
13
12
  return {
@@ -15,13 +14,10 @@ export function JsonValueStringFromJSONTyped(json, ignoreDiscriminator) {
15
14
  };
16
15
  }
17
16
  export function JsonValueStringToJSON(value) {
18
- if (value === void 0) {
19
- return void 0;
20
- }
21
- if (value === null) {
22
- return null;
17
+ if (value == null) {
18
+ return value;
23
19
  }
24
20
  return {
25
- "value": value.value
21
+ "value": value["value"]
26
22
  };
27
23
  }
@@ -31,7 +31,7 @@ export interface Login {
31
31
  /**
32
32
  * Check if a given object implements the Login interface.
33
33
  */
34
- export declare function instanceOfLogin(value: object): boolean;
34
+ export declare function instanceOfLogin(value: object): value is Login;
35
35
  export declare function LoginFromJSON(json: any): Login;
36
36
  export declare function LoginFromJSONTyped(json: any, ignoreDiscriminator: boolean): Login;
37
37
  export declare function LoginToJSON(value?: Login | null): any;
@@ -1,14 +1,13 @@
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) || value["userId"] === void 0) return false;
3
+ if (!("password" in value) || value["password"] === void 0) return false;
4
+ return true;
6
5
  }
7
6
  export function LoginFromJSON(json) {
8
7
  return LoginFromJSONTyped(json, false);
9
8
  }
10
9
  export function LoginFromJSONTyped(json, ignoreDiscriminator) {
11
- if (json === void 0 || json === null) {
10
+ if (json == null) {
12
11
  return json;
13
12
  }
14
13
  return {
@@ -17,14 +16,11 @@ export function LoginFromJSONTyped(json, ignoreDiscriminator) {
17
16
  };
18
17
  }
19
18
  export function LoginToJSON(value) {
20
- if (value === void 0) {
21
- return void 0;
22
- }
23
- if (value === null) {
24
- return null;
19
+ if (value == null) {
20
+ return value;
25
21
  }
26
22
  return {
27
- "userId": value.userId,
28
- "password": value.password
23
+ "userId": value["userId"],
24
+ "password": value["password"]
29
25
  };
30
26
  }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { UserProfile } from './UserProfile';
12
+ import type { UserProfile } from './UserProfile.js';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -38,7 +38,7 @@ export interface LoginResult {
38
38
  /**
39
39
  * Check if a given object implements the LoginResult interface.
40
40
  */
41
- export declare function instanceOfLoginResult(value: object): boolean;
41
+ export declare function instanceOfLoginResult(value: object): value is LoginResult;
42
42
  export declare function LoginResultFromJSON(json: any): LoginResult;
43
43
  export declare function LoginResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginResult;
44
44
  export declare function LoginResultToJSON(value?: LoginResult | null): any;
@@ -1,19 +1,18 @@
1
1
  import {
2
2
  UserProfileFromJSON,
3
3
  UserProfileToJSON
4
- } from "./UserProfile.mjs";
4
+ } from "./UserProfile.js";
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) || value["authToken"] === void 0) return false;
7
+ if (!("userProfile" in value) || value["userProfile"] === void 0) return false;
8
+ if (!("expirationDate" in value) || value["expirationDate"] === void 0) return false;
9
+ return true;
11
10
  }
12
11
  export function LoginResultFromJSON(json) {
13
12
  return LoginResultFromJSONTyped(json, false);
14
13
  }
15
14
  export function LoginResultFromJSONTyped(json, ignoreDiscriminator) {
16
- if (json === void 0 || json === null) {
15
+ if (json == null) {
17
16
  return json;
18
17
  }
19
18
  return {
@@ -23,15 +22,12 @@ export function LoginResultFromJSONTyped(json, ignoreDiscriminator) {
23
22
  };
24
23
  }
25
24
  export function LoginResultToJSON(value) {
26
- if (value === void 0) {
27
- return void 0;
28
- }
29
- if (value === null) {
30
- return null;
25
+ if (value == null) {
26
+ return value;
31
27
  }
32
28
  return {
33
- "authToken": value.authToken,
34
- "userProfile": UserProfileToJSON(value.userProfile),
35
- "expirationDate": value.expirationDate.toISOString()
29
+ "authToken": value["authToken"],
30
+ "userProfile": UserProfileToJSON(value["userProfile"]),
31
+ "expirationDate": value["expirationDate"].toISOString()
36
32
  };
37
33
  }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { PipelineStage } from './PipelineStage';
12
+ import type { PipelineStage } from './PipelineStage.js';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -32,7 +32,7 @@ export interface MongoAggregateRequest {
32
32
  /**
33
33
  * Check if a given object implements the MongoAggregateRequest interface.
34
34
  */
35
- export declare function instanceOfMongoAggregateRequest(value: object): boolean;
35
+ export declare function instanceOfMongoAggregateRequest(value: object): value is MongoAggregateRequest;
36
36
  export declare function MongoAggregateRequestFromJSON(json: any): MongoAggregateRequest;
37
37
  export declare function MongoAggregateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MongoAggregateRequest;
38
38
  export declare function MongoAggregateRequestToJSON(value?: MongoAggregateRequest | null): any;
@@ -0,0 +1,29 @@
1
+ import {
2
+ PipelineStageFromJSON,
3
+ PipelineStageToJSON
4
+ } from "./PipelineStage.js";
5
+ export function instanceOfMongoAggregateRequest(value) {
6
+ if (!("allowDiskUse" in value) || value["allowDiskUse"] === void 0) return false;
7
+ return true;
8
+ }
9
+ export function MongoAggregateRequestFromJSON(json) {
10
+ return MongoAggregateRequestFromJSONTyped(json, false);
11
+ }
12
+ export function MongoAggregateRequestFromJSONTyped(json, ignoreDiscriminator) {
13
+ if (json == null) {
14
+ return json;
15
+ }
16
+ return {
17
+ "pipeline": json["pipeline"] == null ? void 0 : json["pipeline"].map(PipelineStageFromJSON),
18
+ "allowDiskUse": json["allowDiskUse"]
19
+ };
20
+ }
21
+ export function MongoAggregateRequestToJSON(value) {
22
+ if (value == null) {
23
+ return value;
24
+ }
25
+ return {
26
+ "pipeline": value["pipeline"] == null ? void 0 : value["pipeline"].map(PipelineStageToJSON),
27
+ "allowDiskUse": value["allowDiskUse"]
28
+ };
29
+ }
@@ -49,7 +49,7 @@ export interface MongoCampConfiguration {
49
49
  /**
50
50
  * Check if a given object implements the MongoCampConfiguration interface.
51
51
  */
52
- export declare function instanceOfMongoCampConfiguration(value: object): boolean;
52
+ export declare function instanceOfMongoCampConfiguration(value: object): value is MongoCampConfiguration;
53
53
  export declare function MongoCampConfigurationFromJSON(json: any): MongoCampConfiguration;
54
54
  export declare function MongoCampConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MongoCampConfiguration;
55
55
  export declare function MongoCampConfigurationToJSON(value?: MongoCampConfiguration | null): any;
@@ -0,0 +1,35 @@
1
+ export function instanceOfMongoCampConfiguration(value) {
2
+ if (!("key" in value) || value["key"] === void 0) return false;
3
+ if (!("value" in value) || value["value"] === void 0) return false;
4
+ if (!("configType" in value) || value["configType"] === void 0) return false;
5
+ if (!("comment" in value) || value["comment"] === void 0) return false;
6
+ if (!("needsRestartForActivation" in value) || value["needsRestartForActivation"] === void 0) return false;
7
+ return true;
8
+ }
9
+ export function MongoCampConfigurationFromJSON(json) {
10
+ return MongoCampConfigurationFromJSONTyped(json, false);
11
+ }
12
+ export function MongoCampConfigurationFromJSONTyped(json, ignoreDiscriminator) {
13
+ if (json == null) {
14
+ return json;
15
+ }
16
+ return {
17
+ "key": json["key"],
18
+ "value": json["value"],
19
+ "configType": json["configType"],
20
+ "comment": json["comment"],
21
+ "needsRestartForActivation": json["needsRestartForActivation"]
22
+ };
23
+ }
24
+ export function MongoCampConfigurationToJSON(value) {
25
+ if (value == null) {
26
+ return value;
27
+ }
28
+ return {
29
+ "key": value["key"],
30
+ "value": value["value"],
31
+ "configType": value["configType"],
32
+ "comment": value["comment"],
33
+ "needsRestartForActivation": value["needsRestartForActivation"]
34
+ };
35
+ }
@@ -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,12 +38,12 @@ 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.
45
45
  */
46
- export declare function instanceOfMongoFindRequest(value: object): boolean;
46
+ export declare function instanceOfMongoFindRequest(value: object): value is MongoFindRequest;
47
47
  export declare function MongoFindRequestFromJSON(json: any): MongoFindRequest;
48
48
  export declare function MongoFindRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MongoFindRequest;
49
49
  export declare function MongoFindRequestToJSON(value?: MongoFindRequest | null): any;
@@ -1,15 +1,14 @@
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) || value["filter"] === void 0) return false;
3
+ if (!("sort" in value) || value["sort"] === void 0) return false;
4
+ if (!("projection" in value) || value["projection"] === void 0) return false;
5
+ return true;
7
6
  }
8
7
  export function MongoFindRequestFromJSON(json) {
9
8
  return MongoFindRequestFromJSONTyped(json, false);
10
9
  }
11
10
  export function MongoFindRequestFromJSONTyped(json, ignoreDiscriminator) {
12
- if (json === void 0 || json === null) {
11
+ if (json == null) {
13
12
  return json;
14
13
  }
15
14
  return {
@@ -19,15 +18,12 @@ export function MongoFindRequestFromJSONTyped(json, ignoreDiscriminator) {
19
18
  };
20
19
  }
21
20
  export function MongoFindRequestToJSON(value) {
22
- if (value === void 0) {
23
- return void 0;
24
- }
25
- if (value === null) {
26
- return null;
21
+ if (value == null) {
22
+ return value;
27
23
  }
28
24
  return {
29
- "filter": value.filter,
30
- "sort": value.sort,
31
- "projection": value.projection
25
+ "filter": value["filter"],
26
+ "sort": value["sort"],
27
+ "projection": value["projection"]
32
28
  };
33
29
  }
@@ -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,12 +92,12 @@ 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.
99
99
  */
100
- export declare function instanceOfMongoIndex(value: object): boolean;
100
+ export declare function instanceOfMongoIndex(value: object): value is MongoIndex;
101
101
  export declare function MongoIndexFromJSON(json: any): MongoIndex;
102
102
  export declare function MongoIndexFromJSONTyped(json: any, ignoreDiscriminator: boolean): MongoIndex;
103
103
  export declare function MongoIndexToJSON(value?: MongoIndex | null): any;