@sfxcode/nuxt-mongocamp-server 1.1.2 → 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 (67) 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/dist/runtime/composables/mongocampAuth.mjs +2 -0
  67. package/package.json +29 -18
@@ -1,25 +1,37 @@
1
1
  export function instanceOfCollectionStatus(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "ns" in value;
4
- isInstance = isInstance && "collectionType" in value;
5
- isInstance = isInstance && "scaleFactor" in value;
6
- isInstance = isInstance && "size" in value;
7
- isInstance = isInstance && "count" in value;
8
- isInstance = isInstance && "storageSize" in value;
9
- isInstance = isInstance && "avgObjSize" in value;
10
- isInstance = isInstance && "nindexes" in value;
11
- isInstance = isInstance && "indexSizes" in value;
12
- isInstance = isInstance && "totalIndexSize" in value;
13
- isInstance = isInstance && "ok" in value;
14
- isInstance = isInstance && "fetched" in value;
15
- isInstance = isInstance && "map" in value;
16
- return isInstance;
2
+ if (!("ns" in value))
3
+ return false;
4
+ if (!("collectionType" in value))
5
+ return false;
6
+ if (!("scaleFactor" in value))
7
+ return false;
8
+ if (!("size" in value))
9
+ return false;
10
+ if (!("count" in value))
11
+ return false;
12
+ if (!("storageSize" in value))
13
+ return false;
14
+ if (!("avgObjSize" in value))
15
+ return false;
16
+ if (!("nindexes" in value))
17
+ return false;
18
+ if (!("indexSizes" in value))
19
+ return false;
20
+ if (!("totalIndexSize" in value))
21
+ return false;
22
+ if (!("ok" in value))
23
+ return false;
24
+ if (!("fetched" in value))
25
+ return false;
26
+ if (!("map" in value))
27
+ return false;
28
+ return true;
17
29
  }
18
30
  export function CollectionStatusFromJSON(json) {
19
31
  return CollectionStatusFromJSONTyped(json, false);
20
32
  }
21
33
  export function CollectionStatusFromJSONTyped(json, ignoreDiscriminator) {
22
- if (json === void 0 || json === null) {
34
+ if (json == null) {
23
35
  return json;
24
36
  }
25
37
  return {
@@ -39,25 +51,22 @@ export function CollectionStatusFromJSONTyped(json, ignoreDiscriminator) {
39
51
  };
40
52
  }
41
53
  export function CollectionStatusToJSON(value) {
42
- if (value === void 0) {
43
- return void 0;
44
- }
45
- if (value === null) {
46
- return null;
54
+ if (value == null) {
55
+ return value;
47
56
  }
48
57
  return {
49
- "ns": value.ns,
50
- "collectionType": value.collectionType,
51
- "scaleFactor": value.scaleFactor,
52
- "size": value.size,
53
- "count": value.count,
54
- "storageSize": value.storageSize,
55
- "avgObjSize": value.avgObjSize,
56
- "nindexes": value.nindexes,
57
- "indexSizes": value.indexSizes,
58
- "totalIndexSize": value.totalIndexSize,
59
- "ok": value.ok,
60
- "fetched": value.fetched.toISOString(),
61
- "map": value.map
58
+ "ns": value["ns"],
59
+ "collectionType": value["collectionType"],
60
+ "scaleFactor": value["scaleFactor"],
61
+ "size": value["size"],
62
+ "count": value["count"],
63
+ "storageSize": value["storageSize"],
64
+ "avgObjSize": value["avgObjSize"],
65
+ "nindexes": value["nindexes"],
66
+ "indexSizes": value["indexSizes"],
67
+ "totalIndexSize": value["totalIndexSize"],
68
+ "ok": value["ok"],
69
+ "fetched": value["fetched"].toISOString(),
70
+ "map": value["map"]
62
71
  };
63
72
  }
@@ -46,7 +46,7 @@ export interface DatabaseInfo {
46
46
  */
47
47
  map: {
48
48
  [key: string]: string;
49
- } | null;
49
+ };
50
50
  }
51
51
  /**
52
52
  * Check if a given object implements the DatabaseInfo interface.
@@ -1,17 +1,21 @@
1
1
  export function instanceOfDatabaseInfo(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "name" in value;
4
- isInstance = isInstance && "sizeOnDisk" in value;
5
- isInstance = isInstance && "empty" in value;
6
- isInstance = isInstance && "fetched" in value;
7
- isInstance = isInstance && "map" in value;
8
- return isInstance;
2
+ if (!("name" in value))
3
+ return false;
4
+ if (!("sizeOnDisk" in value))
5
+ return false;
6
+ if (!("empty" in value))
7
+ return false;
8
+ if (!("fetched" in value))
9
+ return false;
10
+ if (!("map" in value))
11
+ return false;
12
+ return true;
9
13
  }
10
14
  export function DatabaseInfoFromJSON(json) {
11
15
  return DatabaseInfoFromJSONTyped(json, false);
12
16
  }
13
17
  export function DatabaseInfoFromJSONTyped(json, ignoreDiscriminator) {
14
- if (json === void 0 || json === null) {
18
+ if (json == null) {
15
19
  return json;
16
20
  }
17
21
  return {
@@ -23,17 +27,14 @@ export function DatabaseInfoFromJSONTyped(json, ignoreDiscriminator) {
23
27
  };
24
28
  }
25
29
  export function DatabaseInfoToJSON(value) {
26
- if (value === 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
- "name": value.name,
34
- "sizeOnDisk": value.sizeOnDisk,
35
- "empty": value.empty,
36
- "fetched": value.fetched.toISOString(),
37
- "map": value.map
34
+ "name": value["name"],
35
+ "sizeOnDisk": value["sizeOnDisk"],
36
+ "empty": value["empty"],
37
+ "fetched": value["fetched"].toISOString(),
38
+ "map": value["map"]
38
39
  };
39
40
  }
@@ -1,14 +1,15 @@
1
1
  export function instanceOfDeleteResponse(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "wasAcknowledged" in value;
4
- isInstance = isInstance && "deletedCount" in value;
5
- return isInstance;
2
+ if (!("wasAcknowledged" in value))
3
+ return false;
4
+ if (!("deletedCount" in value))
5
+ return false;
6
+ return true;
6
7
  }
7
8
  export function DeleteResponseFromJSON(json) {
8
9
  return DeleteResponseFromJSONTyped(json, false);
9
10
  }
10
11
  export function DeleteResponseFromJSONTyped(json, ignoreDiscriminator) {
11
- if (json === void 0 || json === null) {
12
+ if (json == null) {
12
13
  return json;
13
14
  }
14
15
  return {
@@ -17,14 +18,11 @@ export function DeleteResponseFromJSONTyped(json, ignoreDiscriminator) {
17
18
  };
18
19
  }
19
20
  export function DeleteResponseToJSON(value) {
20
- if (value === 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
- "wasAcknowledged": value.wasAcknowledged,
28
- "deletedCount": value.deletedCount
25
+ "wasAcknowledged": value["wasAcknowledged"],
26
+ "deletedCount": value["deletedCount"]
29
27
  };
30
28
  }
@@ -1,15 +1,17 @@
1
1
  export function instanceOfErrorDescription(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "code" in value;
4
- isInstance = isInstance && "msg" in value;
5
- isInstance = isInstance && "additionalInfo" in value;
6
- return isInstance;
2
+ if (!("code" in value))
3
+ return false;
4
+ if (!("msg" in value))
5
+ return false;
6
+ if (!("additionalInfo" in value))
7
+ return false;
8
+ return true;
7
9
  }
8
10
  export function ErrorDescriptionFromJSON(json) {
9
11
  return ErrorDescriptionFromJSONTyped(json, false);
10
12
  }
11
13
  export function ErrorDescriptionFromJSONTyped(json, ignoreDiscriminator) {
12
- if (json === void 0 || json === null) {
14
+ if (json == null) {
13
15
  return json;
14
16
  }
15
17
  return {
@@ -19,15 +21,12 @@ export function ErrorDescriptionFromJSONTyped(json, ignoreDiscriminator) {
19
21
  };
20
22
  }
21
23
  export function ErrorDescriptionToJSON(value) {
22
- if (value === 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
- "code": value.code,
30
- "msg": value.msg,
31
- "additionalInfo": value.additionalInfo
28
+ "code": value["code"],
29
+ "msg": value["msg"],
30
+ "additionalInfo": value["additionalInfo"]
32
31
  };
33
32
  }
@@ -52,7 +52,7 @@ export interface FileInformation {
52
52
  */
53
53
  metadata: {
54
54
  [key: string]: string;
55
- } | null;
55
+ };
56
56
  }
57
57
  /**
58
58
  * Check if a given object implements the FileInformation interface.
@@ -1,18 +1,23 @@
1
1
  export function instanceOfFileInformation(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "id" in value;
4
- isInstance = isInstance && "filename" in value;
5
- isInstance = isInstance && "length" in value;
6
- isInstance = isInstance && "chunkSize" in value;
7
- isInstance = isInstance && "uploadDate" in value;
8
- isInstance = isInstance && "metadata" in value;
9
- return isInstance;
2
+ if (!("id" in value))
3
+ return false;
4
+ if (!("filename" in value))
5
+ return false;
6
+ if (!("length" in value))
7
+ return false;
8
+ if (!("chunkSize" in value))
9
+ return false;
10
+ if (!("uploadDate" in value))
11
+ return false;
12
+ if (!("metadata" in value))
13
+ return false;
14
+ return true;
10
15
  }
11
16
  export function FileInformationFromJSON(json) {
12
17
  return FileInformationFromJSONTyped(json, false);
13
18
  }
14
19
  export function FileInformationFromJSONTyped(json, ignoreDiscriminator) {
15
- if (json === void 0 || json === null) {
20
+ if (json == null) {
16
21
  return json;
17
22
  }
18
23
  return {
@@ -25,18 +30,15 @@ export function FileInformationFromJSONTyped(json, ignoreDiscriminator) {
25
30
  };
26
31
  }
27
32
  export function FileInformationToJSON(value) {
28
- if (value === 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
- "_id": value.id,
36
- "filename": value.filename,
37
- "length": value.length,
38
- "chunkSize": value.chunkSize,
39
- "uploadDate": value.uploadDate.toISOString(),
40
- "metadata": value.metadata
37
+ "_id": value["id"],
38
+ "filename": value["filename"],
39
+ "length": value["length"],
40
+ "chunkSize": value["chunkSize"],
41
+ "uploadDate": value["uploadDate"].toISOString(),
42
+ "metadata": value["metadata"]
41
43
  };
42
44
  }
@@ -1,17 +1,21 @@
1
1
  export function instanceOfGrant(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "name" in value;
4
- isInstance = isInstance && "read" in value;
5
- isInstance = isInstance && "write" in value;
6
- isInstance = isInstance && "administrate" in value;
7
- isInstance = isInstance && "grantType" in value;
8
- return isInstance;
2
+ if (!("name" in value))
3
+ return false;
4
+ if (!("read" in value))
5
+ return false;
6
+ if (!("write" in value))
7
+ return false;
8
+ if (!("administrate" in value))
9
+ return false;
10
+ if (!("grantType" in value))
11
+ return false;
12
+ return true;
9
13
  }
10
14
  export function GrantFromJSON(json) {
11
15
  return GrantFromJSONTyped(json, false);
12
16
  }
13
17
  export function GrantFromJSONTyped(json, ignoreDiscriminator) {
14
- if (json === void 0 || json === null) {
18
+ if (json == null) {
15
19
  return json;
16
20
  }
17
21
  return {
@@ -23,17 +27,14 @@ export function GrantFromJSONTyped(json, ignoreDiscriminator) {
23
27
  };
24
28
  }
25
29
  export function GrantToJSON(value) {
26
- if (value === 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
- "name": value.name,
34
- "read": value.read,
35
- "write": value.write,
36
- "administrate": value.administrate,
37
- "grantType": value.grantType
34
+ "name": value["name"],
35
+ "read": value["read"],
36
+ "write": value["write"],
37
+ "administrate": value["administrate"],
38
+ "grantType": value["grantType"]
38
39
  };
39
40
  }
@@ -23,7 +23,7 @@ export interface IndexCreateRequest {
23
23
  */
24
24
  keys: {
25
25
  [key: string]: number;
26
- } | null;
26
+ };
27
27
  /**
28
28
  *
29
29
  * @type {IndexOptionsRequest}
@@ -1,34 +1,30 @@
1
- import { exists } from "../runtime.mjs";
2
1
  import {
3
2
  IndexOptionsRequestFromJSON,
4
3
  IndexOptionsRequestToJSON
5
4
  } from "./IndexOptionsRequest.mjs";
6
5
  export function instanceOfIndexCreateRequest(value) {
7
- let isInstance = true;
8
- isInstance = isInstance && "keys" in value;
9
- return isInstance;
6
+ if (!("keys" in value))
7
+ return false;
8
+ return true;
10
9
  }
11
10
  export function IndexCreateRequestFromJSON(json) {
12
11
  return IndexCreateRequestFromJSONTyped(json, false);
13
12
  }
14
13
  export function IndexCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
15
- if (json === void 0 || json === null) {
14
+ if (json == null) {
16
15
  return json;
17
16
  }
18
17
  return {
19
18
  "keys": json["keys"],
20
- "indexOptionsRequest": !exists(json, "indexOptionsRequest") ? void 0 : IndexOptionsRequestFromJSON(json["indexOptionsRequest"])
19
+ "indexOptionsRequest": json["indexOptionsRequest"] == null ? void 0 : IndexOptionsRequestFromJSON(json["indexOptionsRequest"])
21
20
  };
22
21
  }
23
22
  export function IndexCreateRequestToJSON(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
- "keys": value.keys,
32
- "indexOptionsRequest": IndexOptionsRequestToJSON(value.indexOptionsRequest)
27
+ "keys": value["keys"],
28
+ "indexOptionsRequest": IndexOptionsRequestToJSON(value["indexOptionsRequest"])
33
29
  };
34
30
  }
@@ -1,13 +1,13 @@
1
1
  export function instanceOfIndexCreateResponse(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "name" in value;
4
- return isInstance;
2
+ if (!("name" in value))
3
+ return false;
4
+ return true;
5
5
  }
6
6
  export function IndexCreateResponseFromJSON(json) {
7
7
  return IndexCreateResponseFromJSONTyped(json, false);
8
8
  }
9
9
  export function IndexCreateResponseFromJSONTyped(json, ignoreDiscriminator) {
10
- if (json === void 0 || json === null) {
10
+ if (json == null) {
11
11
  return json;
12
12
  }
13
13
  return {
@@ -15,13 +15,10 @@ export function IndexCreateResponseFromJSONTyped(json, ignoreDiscriminator) {
15
15
  };
16
16
  }
17
17
  export function IndexCreateResponseToJSON(value) {
18
- if (value === 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
- "name": value.name
22
+ "name": value["name"]
26
23
  };
27
24
  }
@@ -1,13 +1,13 @@
1
1
  export function instanceOfIndexDropResponse(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "dropped" in value;
4
- return isInstance;
2
+ if (!("dropped" in value))
3
+ return false;
4
+ return true;
5
5
  }
6
6
  export function IndexDropResponseFromJSON(json) {
7
7
  return IndexDropResponseFromJSONTyped(json, false);
8
8
  }
9
9
  export function IndexDropResponseFromJSONTyped(json, ignoreDiscriminator) {
10
- if (json === void 0 || json === null) {
10
+ if (json == null) {
11
11
  return json;
12
12
  }
13
13
  return {
@@ -15,13 +15,10 @@ export function IndexDropResponseFromJSONTyped(json, ignoreDiscriminator) {
15
15
  };
16
16
  }
17
17
  export function IndexDropResponseToJSON(value) {
18
- if (value === 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
- "dropped": value.dropped
22
+ "dropped": value["dropped"]
26
23
  };
27
24
  }
@@ -1,41 +1,36 @@
1
- import { exists } from "../runtime.mjs";
2
1
  export function instanceOfIndexOptionsRequest(value) {
3
- let isInstance = true;
4
- return isInstance;
2
+ return true;
5
3
  }
6
4
  export function IndexOptionsRequestFromJSON(json) {
7
5
  return IndexOptionsRequestFromJSONTyped(json, false);
8
6
  }
9
7
  export function IndexOptionsRequestFromJSONTyped(json, ignoreDiscriminator) {
10
- if (json === void 0 || json === null) {
8
+ if (json == null) {
11
9
  return json;
12
10
  }
13
11
  return {
14
- "name": !exists(json, "name") ? void 0 : json["name"],
15
- "background": !exists(json, "background") ? void 0 : json["background"],
16
- "defaultLanguage": !exists(json, "defaultLanguage") ? void 0 : json["defaultLanguage"],
17
- "textVersion": !exists(json, "textVersion") ? void 0 : json["textVersion"],
18
- "expireAfter": !exists(json, "expireAfter") ? void 0 : json["expireAfter"],
19
- "unique": !exists(json, "unique") ? void 0 : json["unique"],
20
- "max": !exists(json, "max") ? void 0 : json["max"],
21
- "min": !exists(json, "min") ? void 0 : json["min"]
12
+ "name": json["name"] == null ? void 0 : json["name"],
13
+ "background": json["background"] == null ? void 0 : json["background"],
14
+ "defaultLanguage": json["defaultLanguage"] == null ? void 0 : json["defaultLanguage"],
15
+ "textVersion": json["textVersion"] == null ? void 0 : json["textVersion"],
16
+ "expireAfter": json["expireAfter"] == null ? void 0 : json["expireAfter"],
17
+ "unique": json["unique"] == null ? void 0 : json["unique"],
18
+ "max": json["max"] == null ? void 0 : json["max"],
19
+ "min": json["min"] == null ? void 0 : json["min"]
22
20
  };
23
21
  }
24
22
  export function IndexOptionsRequestToJSON(value) {
25
- if (value === void 0) {
26
- return void 0;
27
- }
28
- if (value === null) {
29
- return null;
23
+ if (value == null) {
24
+ return value;
30
25
  }
31
26
  return {
32
- "name": value.name,
33
- "background": value.background,
34
- "defaultLanguage": value.defaultLanguage,
35
- "textVersion": value.textVersion,
36
- "expireAfter": value.expireAfter,
37
- "unique": value.unique,
38
- "max": value.max,
39
- "min": value.min
27
+ "name": value["name"],
28
+ "background": value["background"],
29
+ "defaultLanguage": value["defaultLanguage"],
30
+ "textVersion": value["textVersion"],
31
+ "expireAfter": value["expireAfter"],
32
+ "unique": value["unique"],
33
+ "max": value["max"],
34
+ "min": value["min"]
40
35
  };
41
36
  }
@@ -1,30 +1,26 @@
1
- import { exists } from "../runtime.mjs";
2
1
  export function instanceOfInsertResponse(value) {
3
- let isInstance = true;
4
- isInstance = isInstance && "wasAcknowledged" in value;
5
- return isInstance;
2
+ if (!("wasAcknowledged" in value))
3
+ return false;
4
+ return true;
6
5
  }
7
6
  export function InsertResponseFromJSON(json) {
8
7
  return InsertResponseFromJSONTyped(json, false);
9
8
  }
10
9
  export function InsertResponseFromJSONTyped(json, ignoreDiscriminator) {
11
- if (json === void 0 || json === null) {
10
+ if (json == null) {
12
11
  return json;
13
12
  }
14
13
  return {
15
14
  "wasAcknowledged": json["wasAcknowledged"],
16
- "insertedIds": !exists(json, "insertedIds") ? void 0 : json["insertedIds"]
15
+ "insertedIds": json["insertedIds"] == null ? void 0 : json["insertedIds"]
17
16
  };
18
17
  }
19
18
  export function InsertResponseToJSON(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
- "wasAcknowledged": value.wasAcknowledged,
28
- "insertedIds": value.insertedIds
23
+ "wasAcknowledged": value["wasAcknowledged"],
24
+ "insertedIds": value["insertedIds"]
29
25
  };
30
26
  }