@sfxcode/nuxt-mongocamp-server 1.5.2 → 1.7.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 (119) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/api/.openapi-generator/FILES +18 -2
  4. package/dist/runtime/api/apis/AdminApi.d.ts +1 -1
  5. package/dist/runtime/api/apis/ApplicationApi.d.ts +1 -1
  6. package/dist/runtime/api/apis/AuthApi.d.ts +21 -4
  7. package/dist/runtime/api/apis/AuthApi.js +50 -2
  8. package/dist/runtime/api/apis/BucketApi.d.ts +1 -1
  9. package/dist/runtime/api/apis/CollectionApi.d.ts +26 -8
  10. package/dist/runtime/api/apis/CollectionApi.js +53 -2
  11. package/dist/runtime/api/apis/DatabaseApi.d.ts +1 -1
  12. package/dist/runtime/api/apis/DocumentApi.d.ts +60 -13
  13. package/dist/runtime/api/apis/DocumentApi.js +136 -0
  14. package/dist/runtime/api/apis/FileApi.d.ts +1 -1
  15. package/dist/runtime/api/apis/IndexApi.d.ts +19 -2
  16. package/dist/runtime/api/apis/IndexApi.js +52 -0
  17. package/dist/runtime/api/apis/JobsApi.d.ts +1 -1
  18. package/dist/runtime/api/apis/{InformationApi.d.ts → SystemApi.d.ts} +17 -3
  19. package/dist/runtime/api/apis/SystemApi.js +82 -0
  20. package/dist/runtime/api/apis/index.d.ts +1 -1
  21. package/dist/runtime/api/apis/index.js +1 -1
  22. package/dist/runtime/api/docs/AdminApi.md +2 -2
  23. package/dist/runtime/api/docs/AuthApi.md +79 -1
  24. package/dist/runtime/api/docs/ClusterInformation.md +36 -0
  25. package/dist/runtime/api/docs/ClusterMemberInformation.md +42 -0
  26. package/dist/runtime/api/docs/CollectionApi.md +86 -5
  27. package/dist/runtime/api/docs/CollectionPermission.md +40 -0
  28. package/dist/runtime/api/docs/CollectionStatus.md +1 -1
  29. package/dist/runtime/api/docs/CollectionSummary.md +50 -0
  30. package/dist/runtime/api/docs/CountResponse.md +34 -0
  31. package/dist/runtime/api/docs/DatabaseInfo.md +1 -1
  32. package/dist/runtime/api/docs/DocumentApi.md +208 -24
  33. package/dist/runtime/api/docs/FileApi.md +2 -2
  34. package/dist/runtime/api/docs/FileInformation.md +1 -1
  35. package/dist/runtime/api/docs/IndexApi.md +80 -2
  36. package/dist/runtime/api/docs/IndexUsage.md +40 -0
  37. package/dist/runtime/api/docs/InsertError.md +38 -0
  38. package/dist/runtime/api/docs/InsertResponse.md +4 -0
  39. package/dist/runtime/api/docs/JsonSchemaDefinition.md +1 -1
  40. package/dist/runtime/api/docs/JsonValueAny.md +1 -1
  41. package/dist/runtime/api/docs/MongoCampConfiguration.md +1 -1
  42. package/dist/runtime/api/docs/MongoFindRequest.md +3 -3
  43. package/dist/runtime/api/docs/MongoIndex.md +3 -3
  44. package/dist/runtime/api/docs/PipelineStage.md +1 -1
  45. package/dist/runtime/api/docs/SearchRequest.md +38 -0
  46. package/dist/runtime/api/docs/SettingsResponse.md +1 -1
  47. package/dist/runtime/api/docs/SystemApi.md +139 -0
  48. package/dist/runtime/api/docs/UpdateFileInformationRequest.md +1 -1
  49. package/dist/runtime/api/docs/UpdateRequest.md +2 -2
  50. package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
  51. package/dist/runtime/api/models/ClusterInformation.d.ts +39 -0
  52. package/dist/runtime/api/models/ClusterInformation.js +32 -0
  53. package/dist/runtime/api/models/ClusterMemberInformation.d.ts +56 -0
  54. package/dist/runtime/api/models/ClusterMemberInformation.js +38 -0
  55. package/dist/runtime/api/models/CollectionPermission.d.ts +50 -0
  56. package/dist/runtime/api/models/CollectionPermission.js +35 -0
  57. package/dist/runtime/api/models/CollectionStatus.d.ts +3 -3
  58. package/dist/runtime/api/models/CollectionSummary.d.ts +80 -0
  59. package/dist/runtime/api/models/CollectionSummary.js +50 -0
  60. package/dist/runtime/api/models/CountResponse.d.ts +32 -0
  61. package/dist/runtime/api/models/CountResponse.js +26 -0
  62. package/dist/runtime/api/models/DatabaseInfo.d.ts +3 -3
  63. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
  64. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
  65. package/dist/runtime/api/models/FileInformation.d.ts +3 -3
  66. package/dist/runtime/api/models/Grant.d.ts +1 -1
  67. package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
  68. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
  69. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
  70. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +1 -1
  71. package/dist/runtime/api/models/IndexUsage.d.ts +52 -0
  72. package/dist/runtime/api/models/IndexUsage.js +35 -0
  73. package/dist/runtime/api/models/InsertError.d.ts +44 -0
  74. package/dist/runtime/api/models/InsertError.js +32 -0
  75. package/dist/runtime/api/models/InsertResponse.d.ts +14 -1
  76. package/dist/runtime/api/models/InsertResponse.js +10 -2
  77. package/dist/runtime/api/models/JobConfig.d.ts +1 -1
  78. package/dist/runtime/api/models/JobInformation.d.ts +2 -2
  79. package/dist/runtime/api/models/JobInformation.js +1 -2
  80. package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
  81. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +3 -3
  82. package/dist/runtime/api/models/JsonValueAny.d.ts +3 -3
  83. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
  84. package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
  85. package/dist/runtime/api/models/Login.d.ts +1 -1
  86. package/dist/runtime/api/models/LoginResult.d.ts +1 -1
  87. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -1
  88. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +3 -3
  89. package/dist/runtime/api/models/MongoFindRequest.d.ts +7 -7
  90. package/dist/runtime/api/models/MongoIndex.d.ts +7 -7
  91. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
  92. package/dist/runtime/api/models/PipelineStage.d.ts +3 -3
  93. package/dist/runtime/api/models/Role.d.ts +1 -1
  94. package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -1
  95. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -1
  96. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
  97. package/dist/runtime/api/models/SearchRequest.d.ts +44 -0
  98. package/dist/runtime/api/models/SearchRequest.js +29 -0
  99. package/dist/runtime/api/models/SettingsResponse.d.ts +3 -3
  100. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +3 -3
  101. package/dist/runtime/api/models/UpdateRequest.d.ts +5 -5
  102. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
  103. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -1
  104. package/dist/runtime/api/models/UserInformation.d.ts +1 -1
  105. package/dist/runtime/api/models/UserProfile.d.ts +1 -1
  106. package/dist/runtime/api/models/Version.d.ts +1 -1
  107. package/dist/runtime/api/models/index.d.ts +8 -0
  108. package/dist/runtime/api/models/index.js +8 -0
  109. package/dist/runtime/api/runtime.d.ts +1 -1
  110. package/dist/runtime/composables/mongocampApi.d.ts +1 -1
  111. package/dist/runtime/composables/mongocampApiCollection.d.ts +2 -2
  112. package/dist/runtime/composables/mongocampSearch.d.ts +3 -3
  113. package/dist/runtime/composables/mongocampStorage.d.ts +1 -1
  114. package/dist/runtime/server/composables/mongocampApi.d.ts +1 -1
  115. package/dist/runtime/server/composables/mongocampServerApi.d.ts +1 -1
  116. package/dist/runtime/utils/createMongocampApis.d.ts +2 -2
  117. package/dist/runtime/utils/createMongocampApis.js +2 -2
  118. package/package.json +14 -14
  119. package/dist/runtime/api/apis/InformationApi.js +0 -37
@@ -6,9 +6,9 @@
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `filter` | { [key: string]: string; }
10
- `sort` | { [key: string]: string; }
11
- `projection` | { [key: string]: string; }
9
+ `filter` | { [key: string]: any; }
10
+ `sort` | { [key: string]: any; }
11
+ `projection` | { [key: string]: any; }
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]: string; }
15
- `weights` | { [key: string]: string; }
14
+ `keys` | { [key: string]: any; }
15
+ `weights` | { [key: string]: any; }
16
16
  `expire` | boolean
17
17
  `expireAfterSeconds` | number
18
18
  `text` | boolean
19
19
  `fetched` | Date
20
- `map` | { [key: string]: string; }
20
+ `map` | { [key: string]: any; }
21
21
 
22
22
  ## Example
23
23
 
@@ -7,7 +7,7 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `stage` | string
10
- `value` | string
10
+ `value` | any
11
11
 
12
12
  ## Example
13
13
 
@@ -0,0 +1,38 @@
1
+
2
+ # SearchRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `filter` | string
10
+ `sort` | Array<string>
11
+ `projection` | Array<string>
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { SearchRequest } from ''
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "filter": null,
21
+ "sort": null,
22
+ "projection": null,
23
+ } satisfies SearchRequest
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as SearchRequest
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -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]: string; }
12
+ `configurations` | { [key: string]: any; }
13
13
 
14
14
  ## Example
15
15
 
@@ -0,0 +1,139 @@
1
+ # SystemApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**version**](SystemApi.md#version) | **GET** /version | Version Information |
8
+ | [**viewCluster**](SystemApi.md#viewcluster) | **GET** /system/cluster | Registered Jobs |
9
+
10
+
11
+
12
+ ## version
13
+
14
+ > Version version()
15
+
16
+ Version Information
17
+
18
+ Version Info of the MongoCamp API
19
+
20
+ ### Example
21
+
22
+ ```ts
23
+ import {
24
+ Configuration,
25
+ SystemApi,
26
+ } from '';
27
+ import type { VersionRequest } from '';
28
+
29
+ async function example() {
30
+ console.log("🚀 Testing SDK...");
31
+ const api = new SystemApi();
32
+
33
+ try {
34
+ const data = await api.version();
35
+ console.log(data);
36
+ } catch (error) {
37
+ console.error(error);
38
+ }
39
+ }
40
+
41
+ // Run the test
42
+ example().catch(console.error);
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+ This endpoint does not need any parameter.
48
+
49
+ ### Return type
50
+
51
+ [**Version**](Version.md)
52
+
53
+ ### Authorization
54
+
55
+ No authorization required
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: Not defined
60
+ - **Accept**: `application/json`
61
+
62
+
63
+ ### HTTP response details
64
+ | Status code | Description | Response headers |
65
+ |-------------|-------------|------------------|
66
+ | **200** | | - |
67
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
68
+
69
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
70
+
71
+
72
+ ## viewCluster
73
+
74
+ > ClusterInformation viewCluster()
75
+
76
+ Registered Jobs
77
+
78
+ Returns the List of all registered Jobs with full information
79
+
80
+ ### Example
81
+
82
+ ```ts
83
+ import {
84
+ Configuration,
85
+ SystemApi,
86
+ } from '';
87
+ import type { ViewClusterRequest } from '';
88
+
89
+ async function example() {
90
+ console.log("🚀 Testing SDK...");
91
+ const config = new Configuration({
92
+ // To configure HTTP basic authorization: httpAuth1
93
+ username: "YOUR USERNAME",
94
+ password: "YOUR PASSWORD",
95
+ // Configure HTTP bearer authorization: httpAuth
96
+ accessToken: "YOUR BEARER TOKEN",
97
+ // To configure API key authorization: apiKeyAuth
98
+ apiKey: "YOUR API KEY",
99
+ });
100
+ const api = new SystemApi(config);
101
+
102
+ try {
103
+ const data = await api.viewCluster();
104
+ console.log(data);
105
+ } catch (error) {
106
+ console.error(error);
107
+ }
108
+ }
109
+
110
+ // Run the test
111
+ example().catch(console.error);
112
+ ```
113
+
114
+ ### Parameters
115
+
116
+ This endpoint does not need any parameter.
117
+
118
+ ### Return type
119
+
120
+ [**ClusterInformation**](ClusterInformation.md)
121
+
122
+ ### Authorization
123
+
124
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
125
+
126
+ ### HTTP request headers
127
+
128
+ - **Content-Type**: Not defined
129
+ - **Accept**: `application/json`
130
+
131
+
132
+ ### HTTP response details
133
+ | Status code | Description | Response headers |
134
+ |-------------|-------------|------------------|
135
+ | **200** | | - |
136
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
137
+
138
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
139
+
@@ -7,7 +7,7 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `filename` | string
10
- `metadata` | { [key: string]: string; }
10
+ `metadata` | { [key: string]: any; }
11
11
 
12
12
  ## Example
13
13
 
@@ -6,8 +6,8 @@
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `document` | { [key: string]: string; }
10
- `filter` | { [key: string]: string; }
9
+ `document` | { [key: string]: any; }
10
+ `filter` | { [key: string]: any; }
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.5.10
5
+ * The version of the OpenAPI document: 1.7.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,39 @@
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.7.1
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 { ClusterMemberInformation } from './ClusterMemberInformation.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ClusterInformation
17
+ */
18
+ export interface ClusterInformation {
19
+ /**
20
+ *
21
+ * @type {Array<ClusterMemberInformation>}
22
+ * @memberof ClusterInformation
23
+ */
24
+ members?: Array<ClusterMemberInformation>;
25
+ /**
26
+ *
27
+ * @type {ClusterMemberInformation}
28
+ * @memberof ClusterInformation
29
+ */
30
+ coordinator: ClusterMemberInformation;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ClusterInformation interface.
34
+ */
35
+ export declare function instanceOfClusterInformation(value: object): value is ClusterInformation;
36
+ export declare function ClusterInformationFromJSON(json: any): ClusterInformation;
37
+ export declare function ClusterInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterInformation;
38
+ export declare function ClusterInformationToJSON(json: any): ClusterInformation;
39
+ export declare function ClusterInformationToJSONTyped(value?: ClusterInformation | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,32 @@
1
+ import {
2
+ ClusterMemberInformationFromJSON,
3
+ ClusterMemberInformationToJSON
4
+ } from "./ClusterMemberInformation.js";
5
+ export function instanceOfClusterInformation(value) {
6
+ if (!("coordinator" in value) || value["coordinator"] === void 0) return false;
7
+ return true;
8
+ }
9
+ export function ClusterInformationFromJSON(json) {
10
+ return ClusterInformationFromJSONTyped(json, false);
11
+ }
12
+ export function ClusterInformationFromJSONTyped(json, ignoreDiscriminator) {
13
+ if (json == null) {
14
+ return json;
15
+ }
16
+ return {
17
+ "members": json["members"] == null ? void 0 : json["members"].map(ClusterMemberInformationFromJSON),
18
+ "coordinator": ClusterMemberInformationFromJSON(json["coordinator"])
19
+ };
20
+ }
21
+ export function ClusterInformationToJSON(json) {
22
+ return ClusterInformationToJSONTyped(json, false);
23
+ }
24
+ export function ClusterInformationToJSONTyped(value, ignoreDiscriminator = false) {
25
+ if (value == null) {
26
+ return value;
27
+ }
28
+ return {
29
+ "members": value["members"] == null ? void 0 : value["members"].map(ClusterMemberInformationToJSON),
30
+ "coordinator": ClusterMemberInformationToJSON(value["coordinator"])
31
+ };
32
+ }
@@ -0,0 +1,56 @@
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.7.1
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 ClusterMemberInformation
16
+ */
17
+ export interface ClusterMemberInformation {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ClusterMemberInformation
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof ClusterMemberInformation
28
+ */
29
+ siteMaster: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ClusterMemberInformation
34
+ */
35
+ siteAddress: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof ClusterMemberInformation
40
+ */
41
+ multicast: boolean;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof ClusterMemberInformation
46
+ */
47
+ coordinator: boolean;
48
+ }
49
+ /**
50
+ * Check if a given object implements the ClusterMemberInformation interface.
51
+ */
52
+ export declare function instanceOfClusterMemberInformation(value: object): value is ClusterMemberInformation;
53
+ export declare function ClusterMemberInformationFromJSON(json: any): ClusterMemberInformation;
54
+ export declare function ClusterMemberInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterMemberInformation;
55
+ export declare function ClusterMemberInformationToJSON(json: any): ClusterMemberInformation;
56
+ export declare function ClusterMemberInformationToJSONTyped(value?: ClusterMemberInformation | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,38 @@
1
+ export function instanceOfClusterMemberInformation(value) {
2
+ if (!("name" in value) || value["name"] === void 0) return false;
3
+ if (!("siteMaster" in value) || value["siteMaster"] === void 0) return false;
4
+ if (!("siteAddress" in value) || value["siteAddress"] === void 0) return false;
5
+ if (!("multicast" in value) || value["multicast"] === void 0) return false;
6
+ if (!("coordinator" in value) || value["coordinator"] === void 0) return false;
7
+ return true;
8
+ }
9
+ export function ClusterMemberInformationFromJSON(json) {
10
+ return ClusterMemberInformationFromJSONTyped(json, false);
11
+ }
12
+ export function ClusterMemberInformationFromJSONTyped(json, ignoreDiscriminator) {
13
+ if (json == null) {
14
+ return json;
15
+ }
16
+ return {
17
+ "name": json["name"],
18
+ "siteMaster": json["siteMaster"],
19
+ "siteAddress": json["siteAddress"],
20
+ "multicast": json["multicast"],
21
+ "coordinator": json["coordinator"]
22
+ };
23
+ }
24
+ export function ClusterMemberInformationToJSON(json) {
25
+ return ClusterMemberInformationToJSONTyped(json, false);
26
+ }
27
+ export function ClusterMemberInformationToJSONTyped(value, ignoreDiscriminator = false) {
28
+ if (value == null) {
29
+ return value;
30
+ }
31
+ return {
32
+ "name": value["name"],
33
+ "siteMaster": value["siteMaster"],
34
+ "siteAddress": value["siteAddress"],
35
+ "multicast": value["multicast"],
36
+ "coordinator": value["coordinator"]
37
+ };
38
+ }
@@ -0,0 +1,50 @@
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.7.1
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 CollectionPermission
16
+ */
17
+ export interface CollectionPermission {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CollectionPermission
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof CollectionPermission
28
+ */
29
+ read: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof CollectionPermission
34
+ */
35
+ write: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof CollectionPermission
40
+ */
41
+ administrate: boolean;
42
+ }
43
+ /**
44
+ * Check if a given object implements the CollectionPermission interface.
45
+ */
46
+ export declare function instanceOfCollectionPermission(value: object): value is CollectionPermission;
47
+ export declare function CollectionPermissionFromJSON(json: any): CollectionPermission;
48
+ export declare function CollectionPermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionPermission;
49
+ export declare function CollectionPermissionToJSON(json: any): CollectionPermission;
50
+ export declare function CollectionPermissionToJSONTyped(value?: CollectionPermission | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,35 @@
1
+ export function instanceOfCollectionPermission(value) {
2
+ if (!("name" in value) || value["name"] === void 0) return false;
3
+ if (!("read" in value) || value["read"] === void 0) return false;
4
+ if (!("write" in value) || value["write"] === void 0) return false;
5
+ if (!("administrate" in value) || value["administrate"] === void 0) return false;
6
+ return true;
7
+ }
8
+ export function CollectionPermissionFromJSON(json) {
9
+ return CollectionPermissionFromJSONTyped(json, false);
10
+ }
11
+ export function CollectionPermissionFromJSONTyped(json, ignoreDiscriminator) {
12
+ if (json == null) {
13
+ return json;
14
+ }
15
+ return {
16
+ "name": json["name"],
17
+ "read": json["read"],
18
+ "write": json["write"],
19
+ "administrate": json["administrate"]
20
+ };
21
+ }
22
+ export function CollectionPermissionToJSON(json) {
23
+ return CollectionPermissionToJSONTyped(json, false);
24
+ }
25
+ export function CollectionPermissionToJSONTyped(value, ignoreDiscriminator = false) {
26
+ if (value == null) {
27
+ return value;
28
+ }
29
+ return {
30
+ "name": value["name"],
31
+ "read": value["read"],
32
+ "write": value["write"],
33
+ "administrate": value["administrate"]
34
+ };
35
+ }
@@ -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.5.10
5
+ * The version of the OpenAPI document: 1.7.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -91,11 +91,11 @@ export interface CollectionStatus {
91
91
  fetched: Date;
92
92
  /**
93
93
  *
94
- * @type {{ [key: string]: string; }}
94
+ * @type {{ [key: string]: any; }}
95
95
  * @memberof CollectionStatus
96
96
  */
97
97
  map: {
98
- [key: string]: string;
98
+ [key: string]: any;
99
99
  };
100
100
  }
101
101
  /**
@@ -0,0 +1,80 @@
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.7.1
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 CollectionSummary
16
+ */
17
+ export interface CollectionSummary {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CollectionSummary
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CollectionSummary
28
+ */
29
+ collectionType: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof CollectionSummary
34
+ */
35
+ count: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof CollectionSummary
40
+ */
41
+ size: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof CollectionSummary
46
+ */
47
+ storageSize: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof CollectionSummary
52
+ */
53
+ avgObjSize: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof CollectionSummary
58
+ */
59
+ nindexes: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof CollectionSummary
64
+ */
65
+ totalIndexSize: number;
66
+ /**
67
+ *
68
+ * @type {boolean}
69
+ * @memberof CollectionSummary
70
+ */
71
+ available: boolean;
72
+ }
73
+ /**
74
+ * Check if a given object implements the CollectionSummary interface.
75
+ */
76
+ export declare function instanceOfCollectionSummary(value: object): value is CollectionSummary;
77
+ export declare function CollectionSummaryFromJSON(json: any): CollectionSummary;
78
+ export declare function CollectionSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionSummary;
79
+ export declare function CollectionSummaryToJSON(json: any): CollectionSummary;
80
+ export declare function CollectionSummaryToJSONTyped(value?: CollectionSummary | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ export function instanceOfCollectionSummary(value) {
2
+ if (!("name" in value) || value["name"] === void 0) return false;
3
+ if (!("collectionType" in value) || value["collectionType"] === void 0) return false;
4
+ if (!("count" in value) || value["count"] === void 0) return false;
5
+ if (!("size" in value) || value["size"] === void 0) return false;
6
+ if (!("storageSize" in value) || value["storageSize"] === void 0) return false;
7
+ if (!("avgObjSize" in value) || value["avgObjSize"] === void 0) return false;
8
+ if (!("nindexes" in value) || value["nindexes"] === void 0) return false;
9
+ if (!("totalIndexSize" in value) || value["totalIndexSize"] === void 0) return false;
10
+ if (!("available" in value) || value["available"] === void 0) return false;
11
+ return true;
12
+ }
13
+ export function CollectionSummaryFromJSON(json) {
14
+ return CollectionSummaryFromJSONTyped(json, false);
15
+ }
16
+ export function CollectionSummaryFromJSONTyped(json, ignoreDiscriminator) {
17
+ if (json == null) {
18
+ return json;
19
+ }
20
+ return {
21
+ "name": json["name"],
22
+ "collectionType": json["collectionType"],
23
+ "count": json["count"],
24
+ "size": json["size"],
25
+ "storageSize": json["storageSize"],
26
+ "avgObjSize": json["avgObjSize"],
27
+ "nindexes": json["nindexes"],
28
+ "totalIndexSize": json["totalIndexSize"],
29
+ "available": json["available"]
30
+ };
31
+ }
32
+ export function CollectionSummaryToJSON(json) {
33
+ return CollectionSummaryToJSONTyped(json, false);
34
+ }
35
+ export function CollectionSummaryToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ "name": value["name"],
41
+ "collectionType": value["collectionType"],
42
+ "count": value["count"],
43
+ "size": value["size"],
44
+ "storageSize": value["storageSize"],
45
+ "avgObjSize": value["avgObjSize"],
46
+ "nindexes": value["nindexes"],
47
+ "totalIndexSize": value["totalIndexSize"],
48
+ "available": value["available"]
49
+ };
50
+ }