@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,29 +1,38 @@
1
- import { exists } from "../runtime.mjs";
2
1
  export function instanceOfMongoIndex(value) {
3
- let isInstance = true;
4
- isInstance = isInstance && "name" in value;
5
- isInstance = isInstance && "unique" in value;
6
- isInstance = isInstance && "version" in value;
7
- isInstance = isInstance && "namespace" in value;
8
- isInstance = isInstance && "keys" in value;
9
- isInstance = isInstance && "weights" in value;
10
- isInstance = isInstance && "expire" in value;
11
- isInstance = isInstance && "expireAfterSeconds" in value;
12
- isInstance = isInstance && "text" in value;
13
- isInstance = isInstance && "fetched" in value;
14
- isInstance = isInstance && "map" in value;
15
- return isInstance;
2
+ if (!("name" in value))
3
+ return false;
4
+ if (!("unique" in value))
5
+ return false;
6
+ if (!("version" in value))
7
+ return false;
8
+ if (!("namespace" in value))
9
+ return false;
10
+ if (!("keys" in value))
11
+ return false;
12
+ if (!("weights" in value))
13
+ return false;
14
+ if (!("expire" in value))
15
+ return false;
16
+ if (!("expireAfterSeconds" in value))
17
+ return false;
18
+ if (!("text" in value))
19
+ return false;
20
+ if (!("fetched" in value))
21
+ return false;
22
+ if (!("map" in value))
23
+ return false;
24
+ return true;
16
25
  }
17
26
  export function MongoIndexFromJSON(json) {
18
27
  return MongoIndexFromJSONTyped(json, false);
19
28
  }
20
29
  export function MongoIndexFromJSONTyped(json, ignoreDiscriminator) {
21
- if (json === void 0 || json === null) {
30
+ if (json == null) {
22
31
  return json;
23
32
  }
24
33
  return {
25
34
  "name": json["name"],
26
- "fields": !exists(json, "fields") ? void 0 : json["fields"],
35
+ "fields": json["fields"] == null ? void 0 : json["fields"],
27
36
  "unique": json["unique"],
28
37
  "version": json["version"],
29
38
  "namespace": json["namespace"],
@@ -37,24 +46,21 @@ export function MongoIndexFromJSONTyped(json, ignoreDiscriminator) {
37
46
  };
38
47
  }
39
48
  export function MongoIndexToJSON(value) {
40
- if (value === void 0) {
41
- return void 0;
42
- }
43
- if (value === null) {
44
- return null;
49
+ if (value == null) {
50
+ return value;
45
51
  }
46
52
  return {
47
- "name": value.name,
48
- "fields": value.fields,
49
- "unique": value.unique,
50
- "version": value.version,
51
- "namespace": value.namespace,
52
- "keys": value.keys,
53
- "weights": value.weights,
54
- "expire": value.expire,
55
- "expireAfterSeconds": value.expireAfterSeconds,
56
- "text": value.text,
57
- "fetched": value.fetched.toISOString(),
58
- "map": value.map
53
+ "name": value["name"],
54
+ "fields": value["fields"],
55
+ "unique": value["unique"],
56
+ "version": value["version"],
57
+ "namespace": value["namespace"],
58
+ "keys": value["keys"],
59
+ "weights": value["weights"],
60
+ "expire": value["expire"],
61
+ "expireAfterSeconds": value["expireAfterSeconds"],
62
+ "text": value["text"],
63
+ "fetched": value["fetched"].toISOString(),
64
+ "map": value["map"]
59
65
  };
60
66
  }
@@ -1,13 +1,13 @@
1
1
  export function instanceOfPasswordUpdateRequest(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "password" in value;
4
- return isInstance;
2
+ if (!("password" in value))
3
+ return false;
4
+ return true;
5
5
  }
6
6
  export function PasswordUpdateRequestFromJSON(json) {
7
7
  return PasswordUpdateRequestFromJSONTyped(json, false);
8
8
  }
9
9
  export function PasswordUpdateRequestFromJSONTyped(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 PasswordUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
15
15
  };
16
16
  }
17
17
  export function PasswordUpdateRequestToJSON(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
- "password": value.password
22
+ "password": value["password"]
26
23
  };
27
24
  }
@@ -1,14 +1,15 @@
1
1
  export function instanceOfPipelineStage(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "stage" in value;
4
- isInstance = isInstance && "value" in value;
5
- return isInstance;
2
+ if (!("stage" in value))
3
+ return false;
4
+ if (!("value" in value))
5
+ return false;
6
+ return true;
6
7
  }
7
8
  export function PipelineStageFromJSON(json) {
8
9
  return PipelineStageFromJSONTyped(json, false);
9
10
  }
10
11
  export function PipelineStageFromJSONTyped(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 PipelineStageFromJSONTyped(json, ignoreDiscriminator) {
17
18
  };
18
19
  }
19
20
  export function PipelineStageToJSON(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
- "stage": value.stage,
28
- "value": value.value
25
+ "stage": value["stage"],
26
+ "value": value["value"]
29
27
  };
30
28
  }
@@ -1,37 +1,34 @@
1
- import { exists } from "../runtime.mjs";
2
1
  import {
3
2
  GrantFromJSON,
4
3
  GrantToJSON
5
4
  } from "./Grant.mjs";
6
5
  export function instanceOfRole(value) {
7
- let isInstance = true;
8
- isInstance = isInstance && "name" in value;
9
- isInstance = isInstance && "isAdmin" in value;
10
- return isInstance;
6
+ if (!("name" in value))
7
+ return false;
8
+ if (!("isAdmin" in value))
9
+ return false;
10
+ return true;
11
11
  }
12
12
  export function RoleFromJSON(json) {
13
13
  return RoleFromJSONTyped(json, false);
14
14
  }
15
15
  export function RoleFromJSONTyped(json, ignoreDiscriminator) {
16
- if (json === void 0 || json === null) {
16
+ if (json == null) {
17
17
  return json;
18
18
  }
19
19
  return {
20
20
  "name": json["name"],
21
21
  "isAdmin": json["isAdmin"],
22
- "collectionGrants": !exists(json, "collectionGrants") ? void 0 : json["collectionGrants"].map(GrantFromJSON)
22
+ "collectionGrants": json["collectionGrants"] == null ? void 0 : json["collectionGrants"].map(GrantFromJSON)
23
23
  };
24
24
  }
25
25
  export function RoleToJSON(value) {
26
- if (value === void 0) {
27
- return void 0;
28
- }
29
- if (value === null) {
30
- return null;
26
+ if (value == null) {
27
+ return value;
31
28
  }
32
29
  return {
33
- "name": value.name,
34
- "isAdmin": value.isAdmin,
35
- "collectionGrants": value.collectionGrants === void 0 ? void 0 : value.collectionGrants.map(GrantToJSON)
30
+ "name": value["name"],
31
+ "isAdmin": value["isAdmin"],
32
+ "collectionGrants": value["collectionGrants"] == null ? void 0 : value["collectionGrants"].map(GrantToJSON)
36
33
  };
37
34
  }
@@ -1,40 +1,38 @@
1
- import { exists } from "../runtime.mjs";
2
1
  import {
3
2
  SchemaAnalysisFieldFromJSON,
4
3
  SchemaAnalysisFieldToJSON
5
4
  } from "./SchemaAnalysisField.mjs";
6
5
  export function instanceOfSchemaAnalysis(value) {
7
- let isInstance = true;
8
- isInstance = isInstance && "count" in value;
9
- isInstance = isInstance && "sample" in value;
10
- isInstance = isInstance && "percentageOfAnalysed" in value;
11
- return isInstance;
6
+ if (!("count" in value))
7
+ return false;
8
+ if (!("sample" in value))
9
+ return false;
10
+ if (!("percentageOfAnalysed" in value))
11
+ return false;
12
+ return true;
12
13
  }
13
14
  export function SchemaAnalysisFromJSON(json) {
14
15
  return SchemaAnalysisFromJSONTyped(json, false);
15
16
  }
16
17
  export function SchemaAnalysisFromJSONTyped(json, ignoreDiscriminator) {
17
- if (json === void 0 || json === null) {
18
+ if (json == null) {
18
19
  return json;
19
20
  }
20
21
  return {
21
22
  "count": json["count"],
22
23
  "sample": json["sample"],
23
24
  "percentageOfAnalysed": json["percentageOfAnalysed"],
24
- "fields": !exists(json, "fields") ? void 0 : json["fields"].map(SchemaAnalysisFieldFromJSON)
25
+ "fields": json["fields"] == null ? void 0 : json["fields"].map(SchemaAnalysisFieldFromJSON)
25
26
  };
26
27
  }
27
28
  export function SchemaAnalysisToJSON(value) {
28
- if (value === void 0) {
29
- return void 0;
30
- }
31
- if (value === null) {
32
- return null;
29
+ if (value == null) {
30
+ return value;
33
31
  }
34
32
  return {
35
- "count": value.count,
36
- "sample": value.sample,
37
- "percentageOfAnalysed": value.percentageOfAnalysed,
38
- "fields": value.fields === void 0 ? void 0 : value.fields.map(SchemaAnalysisFieldToJSON)
33
+ "count": value["count"],
34
+ "sample": value["sample"],
35
+ "percentageOfAnalysed": value["percentageOfAnalysed"],
36
+ "fields": value["fields"] == null ? void 0 : value["fields"].map(SchemaAnalysisFieldToJSON)
39
37
  };
40
38
  }
@@ -1,45 +1,44 @@
1
- import { exists } from "../runtime.mjs";
2
1
  import {
3
2
  SchemaAnalysisFieldTypeFromJSON,
4
3
  SchemaAnalysisFieldTypeToJSON
5
4
  } from "./SchemaAnalysisFieldType.mjs";
6
5
  export function instanceOfSchemaAnalysisField(value) {
7
- let isInstance = true;
8
- isInstance = isInstance && "name" in value;
9
- isInstance = isInstance && "fullName" in value;
10
- isInstance = isInstance && "count" in value;
11
- isInstance = isInstance && "percentageOfParent" in value;
12
- return isInstance;
6
+ if (!("name" in value))
7
+ return false;
8
+ if (!("fullName" in value))
9
+ return false;
10
+ if (!("count" in value))
11
+ return false;
12
+ if (!("percentageOfParent" in value))
13
+ return false;
14
+ return true;
13
15
  }
14
16
  export function SchemaAnalysisFieldFromJSON(json) {
15
17
  return SchemaAnalysisFieldFromJSONTyped(json, false);
16
18
  }
17
19
  export function SchemaAnalysisFieldFromJSONTyped(json, ignoreDiscriminator) {
18
- if (json === void 0 || json === null) {
20
+ if (json == null) {
19
21
  return json;
20
22
  }
21
23
  return {
22
24
  "name": json["name"],
23
25
  "fullName": json["fullName"],
24
- "fieldTypes": !exists(json, "fieldTypes") ? void 0 : json["fieldTypes"].map(SchemaAnalysisFieldTypeFromJSON),
26
+ "fieldTypes": json["fieldTypes"] == null ? void 0 : json["fieldTypes"].map(SchemaAnalysisFieldTypeFromJSON),
25
27
  "count": json["count"],
26
28
  "percentageOfParent": json["percentageOfParent"],
27
- "subFields": !exists(json, "subFields") ? void 0 : json["subFields"].map(SchemaAnalysisFieldFromJSON)
29
+ "subFields": json["subFields"] == null ? void 0 : json["subFields"].map(SchemaAnalysisFieldFromJSON)
28
30
  };
29
31
  }
30
32
  export function SchemaAnalysisFieldToJSON(value) {
31
- if (value === void 0) {
32
- return void 0;
33
- }
34
- if (value === null) {
35
- return null;
33
+ if (value == null) {
34
+ return value;
36
35
  }
37
36
  return {
38
- "name": value.name,
39
- "fullName": value.fullName,
40
- "fieldTypes": value.fieldTypes === void 0 ? void 0 : value.fieldTypes.map(SchemaAnalysisFieldTypeToJSON),
41
- "count": value.count,
42
- "percentageOfParent": value.percentageOfParent,
43
- "subFields": value.subFields === void 0 ? void 0 : value.subFields.map(SchemaAnalysisFieldToJSON)
37
+ "name": value["name"],
38
+ "fullName": value["fullName"],
39
+ "fieldTypes": value["fieldTypes"] == null ? void 0 : value["fieldTypes"].map(SchemaAnalysisFieldTypeToJSON),
40
+ "count": value["count"],
41
+ "percentageOfParent": value["percentageOfParent"],
42
+ "subFields": value["subFields"] == null ? void 0 : value["subFields"].map(SchemaAnalysisFieldToJSON)
44
43
  };
45
44
  }
@@ -1,15 +1,17 @@
1
1
  export function instanceOfSchemaAnalysisFieldType(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "fieldType" in value;
4
- isInstance = isInstance && "count" in value;
5
- isInstance = isInstance && "percentageOfParent" in value;
6
- return isInstance;
2
+ if (!("fieldType" in value))
3
+ return false;
4
+ if (!("count" in value))
5
+ return false;
6
+ if (!("percentageOfParent" in value))
7
+ return false;
8
+ return true;
7
9
  }
8
10
  export function SchemaAnalysisFieldTypeFromJSON(json) {
9
11
  return SchemaAnalysisFieldTypeFromJSONTyped(json, false);
10
12
  }
11
13
  export function SchemaAnalysisFieldTypeFromJSONTyped(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 SchemaAnalysisFieldTypeFromJSONTyped(json, ignoreDiscriminator)
19
21
  };
20
22
  }
21
23
  export function SchemaAnalysisFieldTypeToJSON(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
- "fieldType": value.fieldType,
30
- "count": value.count,
31
- "percentageOfParent": value.percentageOfParent
28
+ "fieldType": value["fieldType"],
29
+ "count": value["count"],
30
+ "percentageOfParent": value["percentageOfParent"]
32
31
  };
33
32
  }
@@ -40,7 +40,7 @@ export interface SettingsResponse {
40
40
  */
41
41
  configurations: {
42
42
  [key: string]: string;
43
- } | null;
43
+ };
44
44
  }
45
45
  /**
46
46
  * Check if a given object implements the SettingsResponse interface.
@@ -1,34 +1,30 @@
1
- import { exists } from "../runtime.mjs";
2
1
  export function instanceOfSettingsResponse(value) {
3
- let isInstance = true;
4
- isInstance = isInstance && "configurations" in value;
5
- return isInstance;
2
+ if (!("configurations" in value))
3
+ return false;
4
+ return true;
6
5
  }
7
6
  export function SettingsResponseFromJSON(json) {
8
7
  return SettingsResponseFromJSONTyped(json, false);
9
8
  }
10
9
  export function SettingsResponseFromJSONTyped(json, ignoreDiscriminator) {
11
- if (json === void 0 || json === null) {
10
+ if (json == null) {
12
11
  return json;
13
12
  }
14
13
  return {
15
- "routesPlugins": !exists(json, "routesPlugins") ? void 0 : json["routesPlugins"],
16
- "filePlugins": !exists(json, "filePlugins") ? void 0 : json["filePlugins"],
17
- "ignoredPlugins": !exists(json, "ignoredPlugins") ? void 0 : json["ignoredPlugins"],
14
+ "routesPlugins": json["routesPlugins"] == null ? void 0 : json["routesPlugins"],
15
+ "filePlugins": json["filePlugins"] == null ? void 0 : json["filePlugins"],
16
+ "ignoredPlugins": json["ignoredPlugins"] == null ? void 0 : json["ignoredPlugins"],
18
17
  "configurations": json["configurations"]
19
18
  };
20
19
  }
21
20
  export function SettingsResponseToJSON(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
- "routesPlugins": value.routesPlugins,
30
- "filePlugins": value.filePlugins,
31
- "ignoredPlugins": value.ignoredPlugins,
32
- "configurations": value.configurations
25
+ "routesPlugins": value["routesPlugins"],
26
+ "filePlugins": value["filePlugins"],
27
+ "ignoredPlugins": value["ignoredPlugins"],
28
+ "configurations": value["configurations"]
33
29
  };
34
30
  }
@@ -28,7 +28,7 @@ export interface UpdateFileInformationRequest {
28
28
  */
29
29
  metadata?: {
30
30
  [key: string]: string;
31
- } | null;
31
+ };
32
32
  }
33
33
  /**
34
34
  * Check if a given object implements the UpdateFileInformationRequest interface.
@@ -1,29 +1,24 @@
1
- import { exists } from "../runtime.mjs";
2
1
  export function instanceOfUpdateFileInformationRequest(value) {
3
- let isInstance = true;
4
- return isInstance;
2
+ return true;
5
3
  }
6
4
  export function UpdateFileInformationRequestFromJSON(json) {
7
5
  return UpdateFileInformationRequestFromJSONTyped(json, false);
8
6
  }
9
7
  export function UpdateFileInformationRequestFromJSONTyped(json, ignoreDiscriminator) {
10
- if (json === void 0 || json === null) {
8
+ if (json == null) {
11
9
  return json;
12
10
  }
13
11
  return {
14
- "filename": !exists(json, "filename") ? void 0 : json["filename"],
15
- "metadata": !exists(json, "metadata") ? void 0 : json["metadata"]
12
+ "filename": json["filename"] == null ? void 0 : json["filename"],
13
+ "metadata": json["metadata"] == null ? void 0 : json["metadata"]
16
14
  };
17
15
  }
18
16
  export function UpdateFileInformationRequestToJSON(value) {
19
- if (value === void 0) {
20
- return void 0;
21
- }
22
- if (value === null) {
23
- return null;
17
+ if (value == null) {
18
+ return value;
24
19
  }
25
20
  return {
26
- "filename": value.filename,
27
- "metadata": value.metadata
21
+ "filename": value["filename"],
22
+ "metadata": value["metadata"]
28
23
  };
29
24
  }
@@ -22,7 +22,7 @@ export interface UpdateRequest {
22
22
  */
23
23
  document: {
24
24
  [key: string]: string;
25
- } | null;
25
+ };
26
26
  /**
27
27
  *
28
28
  * @type {{ [key: string]: string; }}
@@ -30,7 +30,7 @@ export interface UpdateRequest {
30
30
  */
31
31
  filter: {
32
32
  [key: string]: string;
33
- } | null;
33
+ };
34
34
  }
35
35
  /**
36
36
  * Check if a given object implements the UpdateRequest interface.
@@ -1,14 +1,15 @@
1
1
  export function instanceOfUpdateRequest(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "document" in value;
4
- isInstance = isInstance && "filter" in value;
5
- return isInstance;
2
+ if (!("document" in value))
3
+ return false;
4
+ if (!("filter" in value))
5
+ return false;
6
+ return true;
6
7
  }
7
8
  export function UpdateRequestFromJSON(json) {
8
9
  return UpdateRequestFromJSONTyped(json, false);
9
10
  }
10
11
  export function UpdateRequestFromJSONTyped(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 UpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
17
18
  };
18
19
  }
19
20
  export function UpdateRequestToJSON(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
- "document": value.document,
28
- "filter": value.filter
25
+ "document": value["document"],
26
+ "filter": value["filter"]
29
27
  };
30
28
  }
@@ -1,36 +1,34 @@
1
- import { exists } from "../runtime.mjs";
2
1
  export function instanceOfUpdateResponse(value) {
3
- let isInstance = true;
4
- isInstance = isInstance && "wasAcknowledged" in value;
5
- isInstance = isInstance && "modifiedCount" in value;
6
- isInstance = isInstance && "matchedCount" in value;
7
- return isInstance;
2
+ if (!("wasAcknowledged" in value))
3
+ return false;
4
+ if (!("modifiedCount" in value))
5
+ return false;
6
+ if (!("matchedCount" in value))
7
+ return false;
8
+ return true;
8
9
  }
9
10
  export function UpdateResponseFromJSON(json) {
10
11
  return UpdateResponseFromJSONTyped(json, false);
11
12
  }
12
13
  export function UpdateResponseFromJSONTyped(json, ignoreDiscriminator) {
13
- if (json === void 0 || json === null) {
14
+ if (json == null) {
14
15
  return json;
15
16
  }
16
17
  return {
17
18
  "wasAcknowledged": json["wasAcknowledged"],
18
- "upsertedIds": !exists(json, "upsertedIds") ? void 0 : json["upsertedIds"],
19
+ "upsertedIds": json["upsertedIds"] == null ? void 0 : json["upsertedIds"],
19
20
  "modifiedCount": json["modifiedCount"],
20
21
  "matchedCount": json["matchedCount"]
21
22
  };
22
23
  }
23
24
  export function UpdateResponseToJSON(value) {
24
- if (value === void 0) {
25
- return void 0;
26
- }
27
- if (value === null) {
28
- return null;
25
+ if (value == null) {
26
+ return value;
29
27
  }
30
28
  return {
31
- "wasAcknowledged": value.wasAcknowledged,
32
- "upsertedIds": value.upsertedIds,
33
- "modifiedCount": value.modifiedCount,
34
- "matchedCount": value.matchedCount
29
+ "wasAcknowledged": value["wasAcknowledged"],
30
+ "upsertedIds": value["upsertedIds"],
31
+ "modifiedCount": value["modifiedCount"],
32
+ "matchedCount": value["matchedCount"]
35
33
  };
36
34
  }
@@ -1,34 +1,30 @@
1
- import { exists } from "../runtime.mjs";
2
1
  import {
3
2
  GrantFromJSON,
4
3
  GrantToJSON
5
4
  } from "./Grant.mjs";
6
5
  export function instanceOfUpdateRoleRequest(value) {
7
- let isInstance = true;
8
- isInstance = isInstance && "isAdmin" in value;
9
- return isInstance;
6
+ if (!("isAdmin" in value))
7
+ return false;
8
+ return true;
10
9
  }
11
10
  export function UpdateRoleRequestFromJSON(json) {
12
11
  return UpdateRoleRequestFromJSONTyped(json, false);
13
12
  }
14
13
  export function UpdateRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
15
- if (json === void 0 || json === null) {
14
+ if (json == null) {
16
15
  return json;
17
16
  }
18
17
  return {
19
18
  "isAdmin": json["isAdmin"],
20
- "collectionGrants": !exists(json, "collectionGrants") ? void 0 : json["collectionGrants"].map(GrantFromJSON)
19
+ "collectionGrants": json["collectionGrants"] == null ? void 0 : json["collectionGrants"].map(GrantFromJSON)
21
20
  };
22
21
  }
23
22
  export function UpdateRoleRequestToJSON(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
- "isAdmin": value.isAdmin,
32
- "collectionGrants": value.collectionGrants === void 0 ? void 0 : value.collectionGrants.map(GrantToJSON)
27
+ "isAdmin": value["isAdmin"],
28
+ "collectionGrants": value["collectionGrants"] == null ? void 0 : value["collectionGrants"].map(GrantToJSON)
33
29
  };
34
30
  }