@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,54 @@
1
+
2
+ # IndexInfo
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `keys` | [Array<IndexKey>](IndexKey.md)
11
+ `unique` | boolean
12
+ `sparse` | boolean
13
+ `hidden` | boolean
14
+ `partialFilterExpression` | { [key: string]: any | null; }
15
+ `collation` | { [key: string]: any | null; }
16
+ `weights` | { [key: string]: any | null; }
17
+ `defaultLanguage` | string
18
+ `expireAfterSeconds` | number
19
+ `version` | number
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import type { IndexInfo } from ''
25
+
26
+ // TODO: Update the object below with actual values
27
+ const example = {
28
+ "name": null,
29
+ "keys": null,
30
+ "unique": null,
31
+ "sparse": null,
32
+ "hidden": null,
33
+ "partialFilterExpression": null,
34
+ "collation": null,
35
+ "weights": null,
36
+ "defaultLanguage": null,
37
+ "expireAfterSeconds": null,
38
+ "version": null,
39
+ } satisfies IndexInfo
40
+
41
+ console.log(example)
42
+
43
+ // Convert the instance to a JSON string
44
+ const exampleJSON: string = JSON.stringify(example)
45
+ console.log(exampleJSON)
46
+
47
+ // Parse the JSON string back to an object
48
+ const exampleParsed = JSON.parse(exampleJSON) as IndexInfo
49
+ console.log(exampleParsed)
50
+ ```
51
+
52
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
53
+
54
+
@@ -0,0 +1,36 @@
1
+
2
+ # IndexKey
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `field` | string
10
+ `direction` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { IndexKey } from ''
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "field": null,
20
+ "direction": null,
21
+ } satisfies IndexKey
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as IndexKey
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -14,6 +14,11 @@ Name | Type
14
14
  `unique` | boolean
15
15
  `max` | number
16
16
  `min` | number
17
+ `sparse` | boolean
18
+ `hidden` | boolean
19
+ `partialFilterExpression` | { [key: string]: any | null; }
20
+ `weights` | { [key: string]: number; }
21
+ `collation` | { [key: string]: any | null; }
17
22
 
18
23
  ## Example
19
24
 
@@ -30,6 +35,11 @@ const example = {
30
35
  "unique": null,
31
36
  "max": null,
32
37
  "min": null,
38
+ "sparse": null,
39
+ "hidden": null,
40
+ "partialFilterExpression": null,
41
+ "weights": null,
42
+ "collation": null,
33
43
  } satisfies IndexOptionsRequest
34
44
 
35
45
  console.log(example)
@@ -7,7 +7,7 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `name` | string
10
- `key` | { [key: string]: any; }
10
+ `key` | { [key: string]: any | null; }
11
11
  `ops` | number
12
12
  `since` | Date
13
13
 
@@ -10,7 +10,7 @@ Name | Type
10
10
  `title` | string
11
11
  `additionalProperties` | boolean
12
12
  `required` | Array<string>
13
- `properties` | { [key: string]: { [key: string]: any; }; }
13
+ `properties` | { [key: string]: { [key: string]: any | null; }; }
14
14
 
15
15
  ## Example
16
16
 
@@ -6,9 +6,9 @@
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `filter` | { [key: string]: any; }
10
- `sort` | { [key: string]: any; }
11
- `projection` | { [key: string]: any; }
9
+ `filter` | { [key: string]: any | null; }
10
+ `sort` | { [key: string]: any | null; }
11
+ `projection` | { [key: string]: any | null; }
12
12
 
13
13
  ## Example
14
14
 
@@ -11,13 +11,13 @@ Name | Type
11
11
  `unique` | boolean
12
12
  `version` | number
13
13
  `namespace` | string
14
- `keys` | { [key: string]: any; }
15
- `weights` | { [key: string]: any; }
14
+ `keys` | { [key: string]: any | null; }
15
+ `weights` | { [key: string]: any | null; }
16
16
  `expire` | boolean
17
17
  `expireAfterSeconds` | number
18
18
  `text` | boolean
19
19
  `fetched` | Date
20
- `map` | { [key: string]: any; }
20
+ `map` | { [key: string]: any | null; }
21
21
 
22
22
  ## Example
23
23
 
@@ -0,0 +1,36 @@
1
+
2
+ # RenameRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `target` | string
10
+ `dropTarget` | boolean
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { RenameRequest } from ''
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "target": null,
20
+ "dropTarget": null,
21
+ } satisfies RenameRequest
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as RenameRequest
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,34 @@
1
+
2
+ # RenameResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { RenameResponse } from ''
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "name": null,
19
+ } satisfies RenameResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as RenameResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -9,7 +9,7 @@ Name | Type
9
9
  `routesPlugins` | Array<string>
10
10
  `filePlugins` | Array<string>
11
11
  `ignoredPlugins` | Array<string>
12
- `configurations` | { [key: string]: any; }
12
+ `configurations` | { [key: string]: any | null; }
13
13
 
14
14
  ## Example
15
15
 
@@ -7,7 +7,7 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `filename` | string
10
- `metadata` | { [key: string]: any; }
10
+ `metadata` | { [key: string]: any | null; }
11
11
 
12
12
  ## Example
13
13
 
@@ -6,8 +6,8 @@
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `document` | { [key: string]: any; }
10
- `filter` | { [key: string]: any; }
9
+ `document` | { [key: string]: any | null; }
10
+ `filter` | { [key: string]: any | null; }
11
11
 
12
12
  ## Example
13
13
 
@@ -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,26 +17,18 @@
17
17
  export interface BucketInformation {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof BucketInformation
22
20
  */
23
21
  name: string;
24
22
  /**
25
23
  *
26
- * @type {number}
27
- * @memberof BucketInformation
28
24
  */
29
25
  files: number;
30
26
  /**
31
27
  *
32
- * @type {number}
33
- * @memberof BucketInformation
34
28
  */
35
29
  size: number;
36
30
  /**
37
31
  *
38
- * @type {number}
39
- * @memberof BucketInformation
40
32
  */
41
33
  avgObjectSize: number;
42
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.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).
@@ -18,14 +18,10 @@ import type { ClusterMemberInformation } from './ClusterMemberInformation.js';
18
18
  export interface ClusterInformation {
19
19
  /**
20
20
  *
21
- * @type {Array<ClusterMemberInformation>}
22
- * @memberof ClusterInformation
23
21
  */
24
22
  members?: Array<ClusterMemberInformation>;
25
23
  /**
26
24
  *
27
- * @type {ClusterMemberInformation}
28
- * @memberof ClusterInformation
29
25
  */
30
26
  coordinator: ClusterMemberInformation;
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.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 ClusterMemberInformation {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof ClusterMemberInformation
22
20
  */
23
21
  name: string;
24
22
  /**
25
23
  *
26
- * @type {boolean}
27
- * @memberof ClusterMemberInformation
28
24
  */
29
25
  siteMaster: boolean;
30
26
  /**
31
27
  *
32
- * @type {boolean}
33
- * @memberof ClusterMemberInformation
34
28
  */
35
29
  siteAddress: boolean;
36
30
  /**
37
31
  *
38
- * @type {boolean}
39
- * @memberof ClusterMemberInformation
40
32
  */
41
33
  multicast: boolean;
42
34
  /**
43
35
  *
44
- * @type {boolean}
45
- * @memberof ClusterMemberInformation
46
36
  */
47
37
  coordinator: boolean;
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.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,26 +17,18 @@
17
17
  export interface CollectionPermission {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof CollectionPermission
22
20
  */
23
21
  name: string;
24
22
  /**
25
23
  *
26
- * @type {boolean}
27
- * @memberof CollectionPermission
28
24
  */
29
25
  read: boolean;
30
26
  /**
31
27
  *
32
- * @type {boolean}
33
- * @memberof CollectionPermission
34
28
  */
35
29
  write: boolean;
36
30
  /**
37
31
  *
38
- * @type {boolean}
39
- * @memberof CollectionPermission
40
32
  */
41
33
  administrate: boolean;
42
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.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,85 +17,59 @@
17
17
  export interface CollectionStatus {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof CollectionStatus
22
20
  */
23
21
  ns: string;
24
22
  /**
25
23
  *
26
- * @type {string}
27
- * @memberof CollectionStatus
28
24
  */
29
25
  collectionType: string;
30
26
  /**
31
27
  *
32
- * @type {number}
33
- * @memberof CollectionStatus
34
28
  */
35
29
  scaleFactor: number;
36
30
  /**
37
31
  *
38
- * @type {number}
39
- * @memberof CollectionStatus
40
32
  */
41
33
  size: number;
42
34
  /**
43
35
  *
44
- * @type {number}
45
- * @memberof CollectionStatus
46
36
  */
47
37
  count: number;
48
38
  /**
49
39
  *
50
- * @type {number}
51
- * @memberof CollectionStatus
52
40
  */
53
41
  storageSize: number;
54
42
  /**
55
43
  *
56
- * @type {number}
57
- * @memberof CollectionStatus
58
44
  */
59
45
  avgObjSize: number;
60
46
  /**
61
47
  *
62
- * @type {number}
63
- * @memberof CollectionStatus
64
48
  */
65
49
  nindexes: number;
66
50
  /**
67
51
  *
68
- * @type {{ [key: string]: number; }}
69
- * @memberof CollectionStatus
70
52
  */
71
53
  indexSizes: {
72
54
  [key: string]: number;
73
55
  };
74
56
  /**
75
57
  *
76
- * @type {number}
77
- * @memberof CollectionStatus
78
58
  */
79
59
  totalIndexSize: number;
80
60
  /**
81
61
  *
82
- * @type {number}
83
- * @memberof CollectionStatus
84
62
  */
85
63
  ok: number;
86
64
  /**
87
65
  *
88
- * @type {Date}
89
- * @memberof CollectionStatus
90
66
  */
91
67
  fetched: Date;
92
68
  /**
93
69
  *
94
- * @type {{ [key: string]: any; }}
95
- * @memberof CollectionStatus
96
70
  */
97
71
  map: {
98
- [key: string]: any;
72
+ [key: string]: any | null;
99
73
  };
100
74
  }
101
75
  /**
@@ -1,3 +1,4 @@
1
+ import { parseDateTime, serializeDateTime } from "../runtime.js";
1
2
  export function instanceOfCollectionStatus(value) {
2
3
  if (!("ns" in value) || value["ns"] === void 0) return false;
3
4
  if (!("collectionType" in value) || value["collectionType"] === void 0) return false;
@@ -33,7 +34,7 @@ export function CollectionStatusFromJSONTyped(json, ignoreDiscriminator) {
33
34
  "indexSizes": json["indexSizes"],
34
35
  "totalIndexSize": json["totalIndexSize"],
35
36
  "ok": json["ok"],
36
- "fetched": new Date(json["fetched"]),
37
+ "fetched": json["fetched"] == null ? json["fetched"] : parseDateTime(json["fetched"]),
37
38
  "map": json["map"]
38
39
  };
39
40
  }
@@ -56,7 +57,7 @@ export function CollectionStatusToJSONTyped(value, ignoreDiscriminator = false)
56
57
  "indexSizes": value["indexSizes"],
57
58
  "totalIndexSize": value["totalIndexSize"],
58
59
  "ok": value["ok"],
59
- "fetched": value["fetched"].toISOString(),
60
+ "fetched": value["fetched"] == null ? value["fetched"] : serializeDateTime(value["fetched"]),
60
61
  "map": value["map"]
61
62
  };
62
63
  }
@@ -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,56 +17,38 @@
17
17
  export interface CollectionSummary {
18
18
  /**
19
19
  *
20
- * @type {string}
21
- * @memberof CollectionSummary
22
20
  */
23
21
  name: string;
24
22
  /**
25
23
  *
26
- * @type {string}
27
- * @memberof CollectionSummary
28
24
  */
29
25
  collectionType: string;
30
26
  /**
31
27
  *
32
- * @type {number}
33
- * @memberof CollectionSummary
34
28
  */
35
29
  count: number;
36
30
  /**
37
31
  *
38
- * @type {number}
39
- * @memberof CollectionSummary
40
32
  */
41
33
  size: number;
42
34
  /**
43
35
  *
44
- * @type {number}
45
- * @memberof CollectionSummary
46
36
  */
47
37
  storageSize: number;
48
38
  /**
49
39
  *
50
- * @type {number}
51
- * @memberof CollectionSummary
52
40
  */
53
41
  avgObjSize: number;
54
42
  /**
55
43
  *
56
- * @type {number}
57
- * @memberof CollectionSummary
58
44
  */
59
45
  nindexes: number;
60
46
  /**
61
47
  *
62
- * @type {number}
63
- * @memberof CollectionSummary
64
48
  */
65
49
  totalIndexSize: number;
66
50
  /**
67
51
  *
68
- * @type {boolean}
69
- * @memberof CollectionSummary
70
52
  */
71
53
  available: boolean;
72
54
  }
@@ -0,0 +1,42 @@
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 CopyRequest
16
+ */
17
+ export interface CopyRequest {
18
+ /**
19
+ *
20
+ */
21
+ target: string;
22
+ /**
23
+ *
24
+ */
25
+ filter?: string;
26
+ /**
27
+ *
28
+ */
29
+ withIndexes?: boolean;
30
+ /**
31
+ *
32
+ */
33
+ dropTarget?: boolean;
34
+ }
35
+ /**
36
+ * Check if a given object implements the CopyRequest interface.
37
+ */
38
+ export declare function instanceOfCopyRequest(value: object): value is CopyRequest;
39
+ export declare function CopyRequestFromJSON(json: any): CopyRequest;
40
+ export declare function CopyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CopyRequest;
41
+ export declare function CopyRequestToJSON(json: any): CopyRequest;
42
+ export declare function CopyRequestToJSONTyped(value?: CopyRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,32 @@
1
+ export function instanceOfCopyRequest(value) {
2
+ if (!("target" in value) || value["target"] === void 0) return false;
3
+ return true;
4
+ }
5
+ export function CopyRequestFromJSON(json) {
6
+ return CopyRequestFromJSONTyped(json, false);
7
+ }
8
+ export function CopyRequestFromJSONTyped(json, ignoreDiscriminator) {
9
+ if (json == null) {
10
+ return json;
11
+ }
12
+ return {
13
+ "target": json["target"],
14
+ "filter": json["filter"] == null ? void 0 : json["filter"],
15
+ "withIndexes": json["withIndexes"] == null ? void 0 : json["withIndexes"],
16
+ "dropTarget": json["dropTarget"] == null ? void 0 : json["dropTarget"]
17
+ };
18
+ }
19
+ export function CopyRequestToJSON(json) {
20
+ return CopyRequestToJSONTyped(json, false);
21
+ }
22
+ export function CopyRequestToJSONTyped(value, ignoreDiscriminator = false) {
23
+ if (value == null) {
24
+ return value;
25
+ }
26
+ return {
27
+ "target": value["target"],
28
+ "filter": value["filter"],
29
+ "withIndexes": value["withIndexes"],
30
+ "dropTarget": value["dropTarget"]
31
+ };
32
+ }