@sfxcode/nuxt-mongocamp-server 1.7.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 (133) hide show
  1. package/README.md +8 -0
  2. package/dist/module.json +2 -2
  3. package/dist/module.mjs +1 -1
  4. package/dist/runtime/api/.openapi-generator/FILES +18 -0
  5. package/dist/runtime/api/.openapi-generator/VERSION +1 -1
  6. package/dist/runtime/api/apis/AdminApi.d.ts +65 -2
  7. package/dist/runtime/api/apis/AdminApi.js +39 -27
  8. package/dist/runtime/api/apis/ApplicationApi.d.ts +17 -2
  9. package/dist/runtime/api/apis/ApplicationApi.js +17 -11
  10. package/dist/runtime/api/apis/AuthApi.d.ts +17 -2
  11. package/dist/runtime/api/apis/AuthApi.js +27 -15
  12. package/dist/runtime/api/apis/BucketApi.d.ts +12 -2
  13. package/dist/runtime/api/apis/BucketApi.js +11 -9
  14. package/dist/runtime/api/apis/CollectionApi.d.ts +163 -4
  15. package/dist/runtime/api/apis/CollectionApi.js +230 -27
  16. package/dist/runtime/api/apis/DatabaseApi.d.ts +12 -2
  17. package/dist/runtime/api/apis/DatabaseApi.js +12 -10
  18. package/dist/runtime/api/apis/DocumentApi.d.ts +223 -15
  19. package/dist/runtime/api/apis/DocumentApi.js +194 -35
  20. package/dist/runtime/api/apis/FileApi.d.ts +78 -4
  21. package/dist/runtime/api/apis/FileApi.js +34 -24
  22. package/dist/runtime/api/apis/IndexApi.d.ts +100 -2
  23. package/dist/runtime/api/apis/IndexApi.js +95 -31
  24. package/dist/runtime/api/apis/JobsApi.d.ts +28 -2
  25. package/dist/runtime/api/apis/JobsApi.js +19 -15
  26. package/dist/runtime/api/apis/SystemApi.d.ts +3 -2
  27. package/dist/runtime/api/apis/SystemApi.js +5 -3
  28. package/dist/runtime/api/docs/CollectionApi.md +254 -2
  29. package/dist/runtime/api/docs/CollectionStatus.md +1 -1
  30. package/dist/runtime/api/docs/CopyRequest.md +40 -0
  31. package/dist/runtime/api/docs/CopyResponse.md +38 -0
  32. package/dist/runtime/api/docs/DatabaseInfo.md +1 -1
  33. package/dist/runtime/api/docs/DocumentApi.md +210 -19
  34. package/dist/runtime/api/docs/FieldInfo.md +36 -0
  35. package/dist/runtime/api/docs/FieldTypeCount.md +36 -0
  36. package/dist/runtime/api/docs/FileInformation.md +1 -1
  37. package/dist/runtime/api/docs/ImportResponse.md +42 -0
  38. package/dist/runtime/api/docs/IndexApi.md +78 -0
  39. package/dist/runtime/api/docs/IndexCreateRequest.md +2 -0
  40. package/dist/runtime/api/docs/IndexInfo.md +54 -0
  41. package/dist/runtime/api/docs/IndexKey.md +36 -0
  42. package/dist/runtime/api/docs/IndexOptionsRequest.md +10 -0
  43. package/dist/runtime/api/docs/IndexUsage.md +1 -1
  44. package/dist/runtime/api/docs/JsonSchemaDefinition.md +1 -1
  45. package/dist/runtime/api/docs/MongoFindRequest.md +3 -3
  46. package/dist/runtime/api/docs/MongoIndex.md +3 -3
  47. package/dist/runtime/api/docs/RenameRequest.md +36 -0
  48. package/dist/runtime/api/docs/RenameResponse.md +34 -0
  49. package/dist/runtime/api/docs/SettingsResponse.md +1 -1
  50. package/dist/runtime/api/docs/UpdateFileInformationRequest.md +1 -1
  51. package/dist/runtime/api/docs/UpdateRequest.md +2 -2
  52. package/dist/runtime/api/models/BucketInformation.d.ts +1 -9
  53. package/dist/runtime/api/models/ClusterInformation.d.ts +1 -5
  54. package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -11
  55. package/dist/runtime/api/models/CollectionPermission.d.ts +1 -9
  56. package/dist/runtime/api/models/CollectionStatus.d.ts +2 -28
  57. package/dist/runtime/api/models/CollectionStatus.js +3 -2
  58. package/dist/runtime/api/models/CollectionSummary.d.ts +1 -19
  59. package/dist/runtime/api/models/CopyRequest.d.ts +42 -0
  60. package/dist/runtime/api/models/CopyRequest.js +32 -0
  61. package/dist/runtime/api/models/CopyResponse.d.ts +38 -0
  62. package/dist/runtime/api/models/CopyResponse.js +32 -0
  63. package/dist/runtime/api/models/CountResponse.d.ts +1 -3
  64. package/dist/runtime/api/models/DatabaseInfo.d.ts +2 -12
  65. package/dist/runtime/api/models/DatabaseInfo.js +3 -2
  66. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -5
  67. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -7
  68. package/dist/runtime/api/models/FieldInfo.d.ts +35 -0
  69. package/dist/runtime/api/models/FieldInfo.js +32 -0
  70. package/dist/runtime/api/models/FieldTypeCount.d.ts +34 -0
  71. package/dist/runtime/api/models/FieldTypeCount.js +29 -0
  72. package/dist/runtime/api/models/FileInformation.d.ts +2 -14
  73. package/dist/runtime/api/models/FileInformation.js +4 -3
  74. package/dist/runtime/api/models/Grant.d.ts +1 -11
  75. package/dist/runtime/api/models/ImportResponse.d.ts +47 -0
  76. package/dist/runtime/api/models/ImportResponse.js +41 -0
  77. package/dist/runtime/api/models/IndexCreateRequest.d.ts +7 -6
  78. package/dist/runtime/api/models/IndexCreateRequest.js +9 -4
  79. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -3
  80. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -3
  81. package/dist/runtime/api/models/IndexInfo.d.ts +77 -0
  82. package/dist/runtime/api/models/IndexInfo.js +54 -0
  83. package/dist/runtime/api/models/IndexKey.d.ts +34 -0
  84. package/dist/runtime/api/models/IndexKey.js +29 -0
  85. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +27 -17
  86. package/dist/runtime/api/models/IndexOptionsRequest.js +12 -2
  87. package/dist/runtime/api/models/IndexUsage.d.ts +2 -10
  88. package/dist/runtime/api/models/IndexUsage.js +3 -2
  89. package/dist/runtime/api/models/InsertError.d.ts +1 -7
  90. package/dist/runtime/api/models/InsertResponse.d.ts +1 -9
  91. package/dist/runtime/api/models/JobConfig.d.ts +1 -13
  92. package/dist/runtime/api/models/JobInformation.d.ts +1 -19
  93. package/dist/runtime/api/models/JobInformation.js +5 -4
  94. package/dist/runtime/api/models/JsonSchema.d.ts +1 -7
  95. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +2 -12
  96. package/dist/runtime/api/models/JsonValueAny.d.ts +1 -3
  97. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -3
  98. package/dist/runtime/api/models/JsonValueString.d.ts +1 -3
  99. package/dist/runtime/api/models/Login.d.ts +1 -5
  100. package/dist/runtime/api/models/LoginResult.d.ts +1 -7
  101. package/dist/runtime/api/models/LoginResult.js +3 -2
  102. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -5
  103. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -11
  104. package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -10
  105. package/dist/runtime/api/models/MongoIndex.d.ts +4 -28
  106. package/dist/runtime/api/models/MongoIndex.js +3 -2
  107. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -3
  108. package/dist/runtime/api/models/PipelineStage.d.ts +1 -5
  109. package/dist/runtime/api/models/RenameRequest.d.ts +34 -0
  110. package/dist/runtime/api/models/RenameRequest.js +28 -0
  111. package/dist/runtime/api/models/RenameResponse.d.ts +30 -0
  112. package/dist/runtime/api/models/RenameResponse.js +26 -0
  113. package/dist/runtime/api/models/Role.d.ts +1 -7
  114. package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -9
  115. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -13
  116. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -7
  117. package/dist/runtime/api/models/SearchRequest.d.ts +1 -7
  118. package/dist/runtime/api/models/SettingsResponse.d.ts +2 -10
  119. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +2 -6
  120. package/dist/runtime/api/models/UpdateRequest.d.ts +3 -7
  121. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -9
  122. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -5
  123. package/dist/runtime/api/models/UserInformation.d.ts +1 -9
  124. package/dist/runtime/api/models/UserProfile.d.ts +1 -11
  125. package/dist/runtime/api/models/Version.d.ts +1 -7
  126. package/dist/runtime/api/models/Version.js +3 -2
  127. package/dist/runtime/api/models/index.d.ts +9 -0
  128. package/dist/runtime/api/models/index.js +9 -0
  129. package/dist/runtime/api/runtime.d.ts +35 -2
  130. package/dist/runtime/api/runtime.js +84 -4
  131. package/dist/runtime/composables/mongocampApiFiles.d.ts +1 -1
  132. package/dist/runtime/composables/mongocampStorage.d.ts +1 -1
  133. package/package.json +4 -4
@@ -0,0 +1,38 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.8.2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CopyResponse
16
+ */
17
+ export interface CopyResponse {
18
+ /**
19
+ *
20
+ */
21
+ name: string;
22
+ /**
23
+ *
24
+ */
25
+ count: number;
26
+ /**
27
+ *
28
+ */
29
+ indexes: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CopyResponse interface.
33
+ */
34
+ export declare function instanceOfCopyResponse(value: object): value is CopyResponse;
35
+ export declare function CopyResponseFromJSON(json: any): CopyResponse;
36
+ export declare function CopyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CopyResponse;
37
+ export declare function CopyResponseToJSON(json: any): CopyResponse;
38
+ export declare function CopyResponseToJSONTyped(value?: CopyResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,32 @@
1
+ export function instanceOfCopyResponse(value) {
2
+ if (!("name" in value) || value["name"] === void 0) return false;
3
+ if (!("count" in value) || value["count"] === void 0) return false;
4
+ if (!("indexes" in value) || value["indexes"] === void 0) return false;
5
+ return true;
6
+ }
7
+ export function CopyResponseFromJSON(json) {
8
+ return CopyResponseFromJSONTyped(json, false);
9
+ }
10
+ export function CopyResponseFromJSONTyped(json, ignoreDiscriminator) {
11
+ if (json == null) {
12
+ return json;
13
+ }
14
+ return {
15
+ "name": json["name"],
16
+ "count": json["count"],
17
+ "indexes": json["indexes"]
18
+ };
19
+ }
20
+ export function CopyResponseToJSON(json) {
21
+ return CopyResponseToJSONTyped(json, false);
22
+ }
23
+ export function CopyResponseToJSONTyped(value, ignoreDiscriminator = false) {
24
+ if (value == null) {
25
+ return value;
26
+ }
27
+ return {
28
+ "name": value["name"],
29
+ "count": value["count"],
30
+ "indexes": value["indexes"]
31
+ };
32
+ }
@@ -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.7.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.7.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.7.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.7.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
  }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.8.2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FieldTypeCount } from './FieldTypeCount.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface FieldInfo
17
+ */
18
+ export interface FieldInfo {
19
+ /**
20
+ *
21
+ */
22
+ path: string;
23
+ /**
24
+ *
25
+ */
26
+ types?: Array<FieldTypeCount>;
27
+ }
28
+ /**
29
+ * Check if a given object implements the FieldInfo interface.
30
+ */
31
+ export declare function instanceOfFieldInfo(value: object): value is FieldInfo;
32
+ export declare function FieldInfoFromJSON(json: any): FieldInfo;
33
+ export declare function FieldInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldInfo;
34
+ export declare function FieldInfoToJSON(json: any): FieldInfo;
35
+ export declare function FieldInfoToJSONTyped(value?: FieldInfo | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,32 @@
1
+ import {
2
+ FieldTypeCountFromJSON,
3
+ FieldTypeCountToJSON
4
+ } from "./FieldTypeCount.js";
5
+ export function instanceOfFieldInfo(value) {
6
+ if (!("path" in value) || value["path"] === void 0) return false;
7
+ return true;
8
+ }
9
+ export function FieldInfoFromJSON(json) {
10
+ return FieldInfoFromJSONTyped(json, false);
11
+ }
12
+ export function FieldInfoFromJSONTyped(json, ignoreDiscriminator) {
13
+ if (json == null) {
14
+ return json;
15
+ }
16
+ return {
17
+ "path": json["path"],
18
+ "types": json["types"] == null ? void 0 : json["types"].map(FieldTypeCountFromJSON)
19
+ };
20
+ }
21
+ export function FieldInfoToJSON(json) {
22
+ return FieldInfoToJSONTyped(json, false);
23
+ }
24
+ export function FieldInfoToJSONTyped(value, ignoreDiscriminator = false) {
25
+ if (value == null) {
26
+ return value;
27
+ }
28
+ return {
29
+ "path": value["path"],
30
+ "types": value["types"] == null ? void 0 : value["types"].map(FieldTypeCountToJSON)
31
+ };
32
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.8.2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface FieldTypeCount
16
+ */
17
+ export interface FieldTypeCount {
18
+ /**
19
+ *
20
+ */
21
+ type: string;
22
+ /**
23
+ *
24
+ */
25
+ count: number;
26
+ }
27
+ /**
28
+ * Check if a given object implements the FieldTypeCount interface.
29
+ */
30
+ export declare function instanceOfFieldTypeCount(value: object): value is FieldTypeCount;
31
+ export declare function FieldTypeCountFromJSON(json: any): FieldTypeCount;
32
+ export declare function FieldTypeCountFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldTypeCount;
33
+ export declare function FieldTypeCountToJSON(json: any): FieldTypeCount;
34
+ export declare function FieldTypeCountToJSONTyped(value?: FieldTypeCount | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,29 @@
1
+ export function instanceOfFieldTypeCount(value) {
2
+ if (!("type" in value) || value["type"] === void 0) return false;
3
+ if (!("count" in value) || value["count"] === void 0) return false;
4
+ return true;
5
+ }
6
+ export function FieldTypeCountFromJSON(json) {
7
+ return FieldTypeCountFromJSONTyped(json, false);
8
+ }
9
+ export function FieldTypeCountFromJSONTyped(json, ignoreDiscriminator) {
10
+ if (json == null) {
11
+ return json;
12
+ }
13
+ return {
14
+ "type": json["type"],
15
+ "count": json["count"]
16
+ };
17
+ }
18
+ export function FieldTypeCountToJSON(json) {
19
+ return FieldTypeCountToJSONTyped(json, false);
20
+ }
21
+ export function FieldTypeCountToJSONTyped(value, ignoreDiscriminator = false) {
22
+ if (value == null) {
23
+ return value;
24
+ }
25
+ return {
26
+ "type": value["type"],
27
+ "count": value["count"]
28
+ };
29
+ }
@@ -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.7.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.7.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
  }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.8.2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { InsertError } from './InsertError.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ImportResponse
17
+ */
18
+ export interface ImportResponse {
19
+ /**
20
+ *
21
+ */
22
+ read: number;
23
+ /**
24
+ *
25
+ */
26
+ inserted: number;
27
+ /**
28
+ *
29
+ */
30
+ failed: number;
31
+ /**
32
+ *
33
+ */
34
+ errors?: Array<InsertError>;
35
+ /**
36
+ *
37
+ */
38
+ errorsTruncated: boolean;
39
+ }
40
+ /**
41
+ * Check if a given object implements the ImportResponse interface.
42
+ */
43
+ export declare function instanceOfImportResponse(value: object): value is ImportResponse;
44
+ export declare function ImportResponseFromJSON(json: any): ImportResponse;
45
+ export declare function ImportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportResponse;
46
+ export declare function ImportResponseToJSON(json: any): ImportResponse;
47
+ export declare function ImportResponseToJSONTyped(value?: ImportResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,41 @@
1
+ import {
2
+ InsertErrorFromJSON,
3
+ InsertErrorToJSON
4
+ } from "./InsertError.js";
5
+ export function instanceOfImportResponse(value) {
6
+ if (!("read" in value) || value["read"] === void 0) return false;
7
+ if (!("inserted" in value) || value["inserted"] === void 0) return false;
8
+ if (!("failed" in value) || value["failed"] === void 0) return false;
9
+ if (!("errorsTruncated" in value) || value["errorsTruncated"] === void 0) return false;
10
+ return true;
11
+ }
12
+ export function ImportResponseFromJSON(json) {
13
+ return ImportResponseFromJSONTyped(json, false);
14
+ }
15
+ export function ImportResponseFromJSONTyped(json, ignoreDiscriminator) {
16
+ if (json == null) {
17
+ return json;
18
+ }
19
+ return {
20
+ "read": json["read"],
21
+ "inserted": json["inserted"],
22
+ "failed": json["failed"],
23
+ "errors": json["errors"] == null ? void 0 : json["errors"].map(InsertErrorFromJSON),
24
+ "errorsTruncated": json["errorsTruncated"]
25
+ };
26
+ }
27
+ export function ImportResponseToJSON(json) {
28
+ return ImportResponseToJSONTyped(json, false);
29
+ }
30
+ export function ImportResponseToJSONTyped(value, ignoreDiscriminator = false) {
31
+ if (value == null) {
32
+ return value;
33
+ }
34
+ return {
35
+ "read": value["read"],
36
+ "inserted": value["inserted"],
37
+ "failed": value["failed"],
38
+ "errors": value["errors"] == null ? void 0 : value["errors"].map(InsertErrorToJSON),
39
+ "errorsTruncated": value["errorsTruncated"]
40
+ };
41
+ }
@@ -2,13 +2,14 @@
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.7.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).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { IndexKey } from './IndexKey.js';
12
13
  import type { IndexOptionsRequest } from './IndexOptionsRequest.js';
13
14
  /**
14
15
  *
@@ -18,18 +19,18 @@ import type { IndexOptionsRequest } from './IndexOptionsRequest.js';
18
19
  export interface IndexCreateRequest {
19
20
  /**
20
21
  *
21
- * @type {{ [key: string]: number; }}
22
- * @memberof IndexCreateRequest
23
22
  */
24
- keys: {
23
+ keys?: {
25
24
  [key: string]: number;
26
25
  };
27
26
  /**
28
27
  *
29
- * @type {IndexOptionsRequest}
30
- * @memberof IndexCreateRequest
31
28
  */
32
29
  indexOptionsRequest?: IndexOptionsRequest;
30
+ /**
31
+ *
32
+ */
33
+ orderedKeys?: Array<IndexKey>;
33
34
  }
34
35
  /**
35
36
  * Check if a given object implements the IndexCreateRequest interface.
@@ -1,9 +1,12 @@
1
+ import {
2
+ IndexKeyFromJSON,
3
+ IndexKeyToJSON
4
+ } from "./IndexKey.js";
1
5
  import {
2
6
  IndexOptionsRequestFromJSON,
3
7
  IndexOptionsRequestToJSON
4
8
  } from "./IndexOptionsRequest.js";
5
9
  export function instanceOfIndexCreateRequest(value) {
6
- if (!("keys" in value) || value["keys"] === void 0) return false;
7
10
  return true;
8
11
  }
9
12
  export function IndexCreateRequestFromJSON(json) {
@@ -14,8 +17,9 @@ export function IndexCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
14
17
  return json;
15
18
  }
16
19
  return {
17
- "keys": json["keys"],
18
- "indexOptionsRequest": json["indexOptionsRequest"] == null ? void 0 : IndexOptionsRequestFromJSON(json["indexOptionsRequest"])
20
+ "keys": json["keys"] == null ? void 0 : json["keys"],
21
+ "indexOptionsRequest": json["indexOptionsRequest"] == null ? void 0 : IndexOptionsRequestFromJSON(json["indexOptionsRequest"]),
22
+ "orderedKeys": json["orderedKeys"] == null ? void 0 : json["orderedKeys"].map(IndexKeyFromJSON)
19
23
  };
20
24
  }
21
25
  export function IndexCreateRequestToJSON(json) {
@@ -27,6 +31,7 @@ export function IndexCreateRequestToJSONTyped(value, ignoreDiscriminator = false
27
31
  }
28
32
  return {
29
33
  "keys": value["keys"],
30
- "indexOptionsRequest": IndexOptionsRequestToJSON(value["indexOptionsRequest"])
34
+ "indexOptionsRequest": IndexOptionsRequestToJSON(value["indexOptionsRequest"]),
35
+ "orderedKeys": value["orderedKeys"] == null ? void 0 : value["orderedKeys"].map(IndexKeyToJSON)
31
36
  };
32
37
  }
@@ -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.7.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.7.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
  }