@sfxcode/nuxt-mongocamp-server 1.8.0 → 1.9.0

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 (108) hide show
  1. package/dist/module.json +2 -2
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/api/.openapi-generator/VERSION +1 -1
  4. package/dist/runtime/api/apis/AdminApi.d.ts +65 -2
  5. package/dist/runtime/api/apis/AdminApi.js +39 -27
  6. package/dist/runtime/api/apis/ApplicationApi.d.ts +17 -2
  7. package/dist/runtime/api/apis/ApplicationApi.js +17 -11
  8. package/dist/runtime/api/apis/AuthApi.d.ts +17 -2
  9. package/dist/runtime/api/apis/AuthApi.js +27 -15
  10. package/dist/runtime/api/apis/BucketApi.d.ts +12 -2
  11. package/dist/runtime/api/apis/BucketApi.js +11 -9
  12. package/dist/runtime/api/apis/CollectionApi.d.ts +107 -4
  13. package/dist/runtime/api/apis/CollectionApi.js +58 -38
  14. package/dist/runtime/api/apis/DatabaseApi.d.ts +12 -2
  15. package/dist/runtime/api/apis/DatabaseApi.js +12 -10
  16. package/dist/runtime/api/apis/DocumentApi.d.ts +178 -15
  17. package/dist/runtime/api/apis/DocumentApi.js +54 -40
  18. package/dist/runtime/api/apis/FileApi.d.ts +78 -4
  19. package/dist/runtime/api/apis/FileApi.js +34 -24
  20. package/dist/runtime/api/apis/IndexApi.d.ts +83 -2
  21. package/dist/runtime/api/apis/IndexApi.js +46 -34
  22. package/dist/runtime/api/apis/JobsApi.d.ts +28 -2
  23. package/dist/runtime/api/apis/JobsApi.js +19 -15
  24. package/dist/runtime/api/apis/SystemApi.d.ts +3 -2
  25. package/dist/runtime/api/apis/SystemApi.js +5 -3
  26. package/dist/runtime/api/docs/CollectionApi.md +2 -2
  27. package/dist/runtime/api/docs/CollectionStatus.md +1 -1
  28. package/dist/runtime/api/docs/DatabaseInfo.md +1 -1
  29. package/dist/runtime/api/docs/DocumentApi.md +19 -19
  30. package/dist/runtime/api/docs/FileInformation.md +1 -1
  31. package/dist/runtime/api/docs/IndexInfo.md +3 -3
  32. package/dist/runtime/api/docs/IndexOptionsRequest.md +2 -2
  33. package/dist/runtime/api/docs/IndexUsage.md +1 -1
  34. package/dist/runtime/api/docs/JsonSchemaDefinition.md +1 -1
  35. package/dist/runtime/api/docs/MongoFindRequest.md +3 -3
  36. package/dist/runtime/api/docs/MongoIndex.md +3 -3
  37. package/dist/runtime/api/docs/SettingsResponse.md +1 -1
  38. package/dist/runtime/api/docs/UpdateFileInformationRequest.md +1 -1
  39. package/dist/runtime/api/docs/UpdateRequest.md +2 -2
  40. package/dist/runtime/api/models/BucketInformation.d.ts +1 -9
  41. package/dist/runtime/api/models/ClusterInformation.d.ts +1 -5
  42. package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -11
  43. package/dist/runtime/api/models/CollectionPermission.d.ts +1 -9
  44. package/dist/runtime/api/models/CollectionStatus.d.ts +2 -28
  45. package/dist/runtime/api/models/CollectionStatus.js +3 -2
  46. package/dist/runtime/api/models/CollectionSummary.d.ts +1 -19
  47. package/dist/runtime/api/models/CopyRequest.d.ts +1 -9
  48. package/dist/runtime/api/models/CopyResponse.d.ts +1 -7
  49. package/dist/runtime/api/models/CountResponse.d.ts +1 -3
  50. package/dist/runtime/api/models/DatabaseInfo.d.ts +2 -12
  51. package/dist/runtime/api/models/DatabaseInfo.js +3 -2
  52. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -5
  53. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -7
  54. package/dist/runtime/api/models/FieldInfo.d.ts +1 -5
  55. package/dist/runtime/api/models/FieldTypeCount.d.ts +1 -5
  56. package/dist/runtime/api/models/FileInformation.d.ts +2 -14
  57. package/dist/runtime/api/models/FileInformation.js +4 -3
  58. package/dist/runtime/api/models/Grant.d.ts +1 -11
  59. package/dist/runtime/api/models/ImportResponse.d.ts +1 -11
  60. package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -7
  61. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -3
  62. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -3
  63. package/dist/runtime/api/models/IndexInfo.d.ts +4 -26
  64. package/dist/runtime/api/models/IndexKey.d.ts +1 -5
  65. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +3 -29
  66. package/dist/runtime/api/models/IndexUsage.d.ts +2 -10
  67. package/dist/runtime/api/models/IndexUsage.js +3 -2
  68. package/dist/runtime/api/models/InsertError.d.ts +1 -7
  69. package/dist/runtime/api/models/InsertResponse.d.ts +1 -9
  70. package/dist/runtime/api/models/JobConfig.d.ts +1 -13
  71. package/dist/runtime/api/models/JobInformation.d.ts +1 -19
  72. package/dist/runtime/api/models/JobInformation.js +5 -4
  73. package/dist/runtime/api/models/JsonSchema.d.ts +1 -7
  74. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +2 -12
  75. package/dist/runtime/api/models/JsonValueAny.d.ts +1 -3
  76. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -3
  77. package/dist/runtime/api/models/JsonValueString.d.ts +1 -3
  78. package/dist/runtime/api/models/Login.d.ts +1 -5
  79. package/dist/runtime/api/models/LoginResult.d.ts +1 -7
  80. package/dist/runtime/api/models/LoginResult.js +3 -2
  81. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -5
  82. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -11
  83. package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -10
  84. package/dist/runtime/api/models/MongoIndex.d.ts +4 -28
  85. package/dist/runtime/api/models/MongoIndex.js +3 -2
  86. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -3
  87. package/dist/runtime/api/models/PipelineStage.d.ts +1 -5
  88. package/dist/runtime/api/models/RenameRequest.d.ts +1 -5
  89. package/dist/runtime/api/models/RenameResponse.d.ts +1 -3
  90. package/dist/runtime/api/models/Role.d.ts +1 -7
  91. package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -9
  92. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -13
  93. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -7
  94. package/dist/runtime/api/models/SearchRequest.d.ts +1 -7
  95. package/dist/runtime/api/models/SettingsResponse.d.ts +2 -10
  96. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +2 -6
  97. package/dist/runtime/api/models/UpdateRequest.d.ts +3 -7
  98. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -9
  99. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -5
  100. package/dist/runtime/api/models/UserInformation.d.ts +1 -9
  101. package/dist/runtime/api/models/UserProfile.d.ts +1 -11
  102. package/dist/runtime/api/models/Version.d.ts +1 -7
  103. package/dist/runtime/api/models/Version.js +3 -2
  104. package/dist/runtime/api/runtime.d.ts +35 -2
  105. package/dist/runtime/api/runtime.js +84 -4
  106. package/dist/runtime/composables/mongocampApiFiles.d.ts +1 -1
  107. package/dist/runtime/composables/mongocampStorage.d.ts +1 -1
  108. package/package.json +3 -3
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,8 +17,6 @@
17
17
  export interface CountResponse {
18
18
  /**
19
19
  *
20
- * @type {number}
21
- * @memberof CountResponse
22
20
  */
23
21
  count: number;
24
22
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,35 +17,25 @@
17
17
  export interface DatabaseInfo {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof DatabaseInfo
22
20
  */
23
21
  name: string;
24
22
  /**
25
23
  *
26
- * @type {number}
27
- * @memberof DatabaseInfo
28
24
  */
29
25
  sizeOnDisk: number;
30
26
  /**
31
27
  *
32
- * @type {boolean}
33
- * @memberof DatabaseInfo
34
28
  */
35
29
  empty: boolean;
36
30
  /**
37
31
  *
38
- * @type {Date}
39
- * @memberof DatabaseInfo
40
32
  */
41
33
  fetched: Date;
42
34
  /**
43
35
  *
44
- * @type {{ [key: string]: any; }}
45
- * @memberof DatabaseInfo
46
36
  */
47
37
  map: {
48
- [key: string]: any;
38
+ [key: string]: any | null;
49
39
  };
50
40
  }
51
41
  /**
@@ -1,3 +1,4 @@
1
+ import { parseDateTime, serializeDateTime } from "../runtime.js";
1
2
  export function instanceOfDatabaseInfo(value) {
2
3
  if (!("name" in value) || value["name"] === void 0) return false;
3
4
  if (!("sizeOnDisk" in value) || value["sizeOnDisk"] === void 0) return false;
@@ -17,7 +18,7 @@ export function DatabaseInfoFromJSONTyped(json, ignoreDiscriminator) {
17
18
  "name": json["name"],
18
19
  "sizeOnDisk": json["sizeOnDisk"],
19
20
  "empty": json["empty"],
20
- "fetched": new Date(json["fetched"]),
21
+ "fetched": json["fetched"] == null ? json["fetched"] : parseDateTime(json["fetched"]),
21
22
  "map": json["map"]
22
23
  };
23
24
  }
@@ -32,7 +33,7 @@ export function DatabaseInfoToJSONTyped(value, ignoreDiscriminator = false) {
32
33
  "name": value["name"],
33
34
  "sizeOnDisk": value["sizeOnDisk"],
34
35
  "empty": value["empty"],
35
- "fetched": value["fetched"].toISOString(),
36
+ "fetched": value["fetched"] == null ? value["fetched"] : serializeDateTime(value["fetched"]),
36
37
  "map": value["map"]
37
38
  };
38
39
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,14 +17,10 @@
17
17
  export interface DeleteResponse {
18
18
  /**
19
19
  *
20
- * @type {boolean}
21
- * @memberof DeleteResponse
22
20
  */
23
21
  wasAcknowledged: boolean;
24
22
  /**
25
23
  *
26
- * @type {number}
27
- * @memberof DeleteResponse
28
24
  */
29
25
  deletedCount: number;
30
26
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,20 +17,14 @@
17
17
  export interface ErrorDescription {
18
18
  /**
19
19
  *
20
- * @type {number}
21
- * @memberof ErrorDescription
22
20
  */
23
21
  code: number;
24
22
  /**
25
23
  *
26
- * @type {string}
27
- * @memberof ErrorDescription
28
24
  */
29
25
  msg: string;
30
26
  /**
31
27
  *
32
- * @type {string}
33
- * @memberof ErrorDescription
34
28
  */
35
29
  additionalInfo: string;
36
30
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,14 +18,10 @@ import type { FieldTypeCount } from './FieldTypeCount.js';
18
18
  export interface FieldInfo {
19
19
  /**
20
20
  *
21
- * @type {string}
22
- * @memberof FieldInfo
23
21
  */
24
22
  path: string;
25
23
  /**
26
24
  *
27
- * @type {Array<FieldTypeCount>}
28
- * @memberof FieldInfo
29
25
  */
30
26
  types?: Array<FieldTypeCount>;
31
27
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,14 +17,10 @@
17
17
  export interface FieldTypeCount {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof FieldTypeCount
22
20
  */
23
21
  type: string;
24
22
  /**
25
23
  *
26
- * @type {number}
27
- * @memberof FieldTypeCount
28
24
  */
29
25
  count: number;
30
26
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,41 +17,29 @@
17
17
  export interface FileInformation {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof FileInformation
22
20
  */
23
21
  id: string;
24
22
  /**
25
23
  *
26
- * @type {string}
27
- * @memberof FileInformation
28
24
  */
29
25
  filename: string;
30
26
  /**
31
27
  *
32
- * @type {number}
33
- * @memberof FileInformation
34
28
  */
35
29
  length: number;
36
30
  /**
37
31
  *
38
- * @type {number}
39
- * @memberof FileInformation
40
32
  */
41
33
  chunkSize: number;
42
34
  /**
43
35
  *
44
- * @type {Date}
45
- * @memberof FileInformation
46
36
  */
47
37
  uploadDate: Date;
48
38
  /**
49
39
  *
50
- * @type {{ [key: string]: any; }}
51
- * @memberof FileInformation
52
40
  */
53
41
  metadata: {
54
- [key: string]: any;
42
+ [key: string]: any | null;
55
43
  };
56
44
  }
57
45
  /**
@@ -1,5 +1,6 @@
1
+ import { parseDateTime, serializeDateTime } from "../runtime.js";
1
2
  export function instanceOfFileInformation(value) {
2
- if (!("id" in value) || value["id"] === void 0) return false;
3
+ if (!("id" in value) && !("_id" in value) || value["id"] === void 0 && value["_id"] === void 0) return false;
3
4
  if (!("filename" in value) || value["filename"] === void 0) return false;
4
5
  if (!("length" in value) || value["length"] === void 0) return false;
5
6
  if (!("chunkSize" in value) || value["chunkSize"] === void 0) return false;
@@ -19,7 +20,7 @@ export function FileInformationFromJSONTyped(json, ignoreDiscriminator) {
19
20
  "filename": json["filename"],
20
21
  "length": json["length"],
21
22
  "chunkSize": json["chunkSize"],
22
- "uploadDate": new Date(json["uploadDate"]),
23
+ "uploadDate": json["uploadDate"] == null ? json["uploadDate"] : parseDateTime(json["uploadDate"]),
23
24
  "metadata": json["metadata"]
24
25
  };
25
26
  }
@@ -35,7 +36,7 @@ export function FileInformationToJSONTyped(value, ignoreDiscriminator = false) {
35
36
  "filename": value["filename"],
36
37
  "length": value["length"],
37
38
  "chunkSize": value["chunkSize"],
38
- "uploadDate": value["uploadDate"].toISOString(),
39
+ "uploadDate": value["uploadDate"] == null ? value["uploadDate"] : serializeDateTime(value["uploadDate"]),
39
40
  "metadata": value["metadata"]
40
41
  };
41
42
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,32 +17,22 @@
17
17
  export interface Grant {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof Grant
22
20
  */
23
21
  name: string;
24
22
  /**
25
23
  *
26
- * @type {boolean}
27
- * @memberof Grant
28
24
  */
29
25
  read: boolean;
30
26
  /**
31
27
  *
32
- * @type {boolean}
33
- * @memberof Grant
34
28
  */
35
29
  write: boolean;
36
30
  /**
37
31
  *
38
- * @type {boolean}
39
- * @memberof Grant
40
32
  */
41
33
  administrate: boolean;
42
34
  /**
43
35
  *
44
- * @type {string}
45
- * @memberof Grant
46
36
  */
47
37
  grantType: string;
48
38
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,32 +18,22 @@ import type { InsertError } from './InsertError.js';
18
18
  export interface ImportResponse {
19
19
  /**
20
20
  *
21
- * @type {number}
22
- * @memberof ImportResponse
23
21
  */
24
22
  read: number;
25
23
  /**
26
24
  *
27
- * @type {number}
28
- * @memberof ImportResponse
29
25
  */
30
26
  inserted: number;
31
27
  /**
32
28
  *
33
- * @type {number}
34
- * @memberof ImportResponse
35
29
  */
36
30
  failed: number;
37
31
  /**
38
32
  *
39
- * @type {Array<InsertError>}
40
- * @memberof ImportResponse
41
33
  */
42
34
  errors?: Array<InsertError>;
43
35
  /**
44
36
  *
45
- * @type {boolean}
46
- * @memberof ImportResponse
47
37
  */
48
38
  errorsTruncated: boolean;
49
39
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,22 +19,16 @@ import type { IndexOptionsRequest } from './IndexOptionsRequest.js';
19
19
  export interface IndexCreateRequest {
20
20
  /**
21
21
  *
22
- * @type {{ [key: string]: number; }}
23
- * @memberof IndexCreateRequest
24
22
  */
25
23
  keys?: {
26
24
  [key: string]: number;
27
25
  };
28
26
  /**
29
27
  *
30
- * @type {IndexOptionsRequest}
31
- * @memberof IndexCreateRequest
32
28
  */
33
29
  indexOptionsRequest?: IndexOptionsRequest;
34
30
  /**
35
31
  *
36
- * @type {Array<IndexKey>}
37
- * @memberof IndexCreateRequest
38
32
  */
39
33
  orderedKeys?: Array<IndexKey>;
40
34
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,8 +17,6 @@
17
17
  export interface IndexCreateResponse {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof IndexCreateResponse
22
20
  */
23
21
  name: string;
24
22
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,8 +17,6 @@
17
17
  export interface IndexDropResponse {
18
18
  /**
19
19
  *
20
- * @type {boolean}
21
- * @memberof IndexDropResponse
22
20
  */
23
21
  dropped: boolean;
24
22
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,74 +18,52 @@ import type { IndexKey } from './IndexKey.js';
18
18
  export interface IndexInfo {
19
19
  /**
20
20
  *
21
- * @type {string}
22
- * @memberof IndexInfo
23
21
  */
24
22
  name: string;
25
23
  /**
26
24
  *
27
- * @type {Array<IndexKey>}
28
- * @memberof IndexInfo
29
25
  */
30
26
  keys?: Array<IndexKey>;
31
27
  /**
32
28
  *
33
- * @type {boolean}
34
- * @memberof IndexInfo
35
29
  */
36
30
  unique: boolean;
37
31
  /**
38
32
  *
39
- * @type {boolean}
40
- * @memberof IndexInfo
41
33
  */
42
34
  sparse: boolean;
43
35
  /**
44
36
  *
45
- * @type {boolean}
46
- * @memberof IndexInfo
47
37
  */
48
38
  hidden: boolean;
49
39
  /**
50
40
  *
51
- * @type {{ [key: string]: any; }}
52
- * @memberof IndexInfo
53
41
  */
54
42
  partialFilterExpression?: {
55
- [key: string]: any;
43
+ [key: string]: any | null;
56
44
  };
57
45
  /**
58
46
  *
59
- * @type {{ [key: string]: any; }}
60
- * @memberof IndexInfo
61
47
  */
62
48
  collation?: {
63
- [key: string]: any;
49
+ [key: string]: any | null;
64
50
  };
65
51
  /**
66
52
  *
67
- * @type {{ [key: string]: any; }}
68
- * @memberof IndexInfo
69
53
  */
70
54
  weights?: {
71
- [key: string]: any;
55
+ [key: string]: any | null;
72
56
  };
73
57
  /**
74
58
  *
75
- * @type {string}
76
- * @memberof IndexInfo
77
59
  */
78
60
  defaultLanguage?: string;
79
61
  /**
80
62
  *
81
- * @type {number}
82
- * @memberof IndexInfo
83
63
  */
84
64
  expireAfterSeconds?: number;
85
65
  /**
86
66
  *
87
- * @type {number}
88
- * @memberof IndexInfo
89
67
  */
90
68
  version: number;
91
69
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,14 +17,10 @@
17
17
  export interface IndexKey {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof IndexKey
22
20
  */
23
21
  field: string;
24
22
  /**
25
23
  *
26
- * @type {string}
27
- * @memberof IndexKey
28
24
  */
29
25
  direction: string;
30
26
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,87 +17,61 @@
17
17
  export interface IndexOptionsRequest {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof IndexOptionsRequest
22
20
  */
23
21
  name?: string;
24
22
  /**
25
23
  *
26
- * @type {boolean}
27
- * @memberof IndexOptionsRequest
28
24
  */
29
25
  background?: boolean;
30
26
  /**
31
27
  *
32
- * @type {string}
33
- * @memberof IndexOptionsRequest
34
28
  */
35
29
  defaultLanguage?: string;
36
30
  /**
37
31
  *
38
- * @type {number}
39
- * @memberof IndexOptionsRequest
40
32
  */
41
33
  textVersion?: number;
42
34
  /**
43
35
  *
44
- * @type {string}
45
- * @memberof IndexOptionsRequest
46
36
  */
47
37
  expireAfter?: string;
48
38
  /**
49
39
  *
50
- * @type {boolean}
51
- * @memberof IndexOptionsRequest
52
40
  */
53
41
  unique?: boolean;
54
42
  /**
55
43
  *
56
- * @type {number}
57
- * @memberof IndexOptionsRequest
58
44
  */
59
45
  max?: number;
60
46
  /**
61
47
  *
62
- * @type {number}
63
- * @memberof IndexOptionsRequest
64
48
  */
65
49
  min?: number;
66
50
  /**
67
51
  *
68
- * @type {boolean}
69
- * @memberof IndexOptionsRequest
70
52
  */
71
53
  sparse?: boolean;
72
54
  /**
73
55
  *
74
- * @type {boolean}
75
- * @memberof IndexOptionsRequest
76
56
  */
77
57
  hidden?: boolean;
78
58
  /**
79
59
  *
80
- * @type {{ [key: string]: any; }}
81
- * @memberof IndexOptionsRequest
82
60
  */
83
61
  partialFilterExpression?: {
84
- [key: string]: any;
62
+ [key: string]: any | null;
85
63
  };
86
64
  /**
87
65
  *
88
- * @type {{ [key: string]: number; }}
89
- * @memberof IndexOptionsRequest
90
66
  */
91
67
  weights?: {
92
68
  [key: string]: number;
93
69
  };
94
70
  /**
95
71
  *
96
- * @type {{ [key: string]: any; }}
97
- * @memberof IndexOptionsRequest
98
72
  */
99
73
  collation?: {
100
- [key: string]: any;
74
+ [key: string]: any | null;
101
75
  };
102
76
  }
103
77
  /**
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,28 +17,20 @@
17
17
  export interface IndexUsage {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof IndexUsage
22
20
  */
23
21
  name: string;
24
22
  /**
25
23
  *
26
- * @type {{ [key: string]: any; }}
27
- * @memberof IndexUsage
28
24
  */
29
25
  key: {
30
- [key: string]: any;
26
+ [key: string]: any | null;
31
27
  };
32
28
  /**
33
29
  *
34
- * @type {number}
35
- * @memberof IndexUsage
36
30
  */
37
31
  ops: number;
38
32
  /**
39
33
  *
40
- * @type {Date}
41
- * @memberof IndexUsage
42
34
  */
43
35
  since: Date;
44
36
  }
@@ -1,3 +1,4 @@
1
+ import { parseDateTime, serializeDateTime } from "../runtime.js";
1
2
  export function instanceOfIndexUsage(value) {
2
3
  if (!("name" in value) || value["name"] === void 0) return false;
3
4
  if (!("key" in value) || value["key"] === void 0) return false;
@@ -16,7 +17,7 @@ export function IndexUsageFromJSONTyped(json, ignoreDiscriminator) {
16
17
  "name": json["name"],
17
18
  "key": json["key"],
18
19
  "ops": json["ops"],
19
- "since": new Date(json["since"])
20
+ "since": json["since"] == null ? json["since"] : parseDateTime(json["since"])
20
21
  };
21
22
  }
22
23
  export function IndexUsageToJSON(json) {
@@ -30,6 +31,6 @@ export function IndexUsageToJSONTyped(value, ignoreDiscriminator = false) {
30
31
  "name": value["name"],
31
32
  "key": value["key"],
32
33
  "ops": value["ops"],
33
- "since": value["since"].toISOString()
34
+ "since": value["since"] == null ? value["since"] : serializeDateTime(value["since"])
34
35
  };
35
36
  }