@sfxcode/nuxt-mongocamp-server 1.0.3 → 1.0.5

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 (134) hide show
  1. package/dist/module.cjs +5 -0
  2. package/dist/module.d.ts +9 -0
  3. package/dist/module.json +8 -0
  4. package/dist/module.mjs +555 -0
  5. package/dist/runtime/api/apis/AdminApi.d.ts +181 -0
  6. package/dist/runtime/api/apis/AdminApi.mjs +509 -0
  7. package/dist/runtime/api/apis/ApplicationApi.d.ts +65 -0
  8. package/dist/runtime/api/apis/ApplicationApi.mjs +164 -0
  9. package/dist/runtime/api/apis/AuthApi.d.ts +104 -0
  10. package/dist/runtime/api/apis/AuthApi.mjs +296 -0
  11. package/dist/runtime/api/apis/BucketApi.d.ts +67 -0
  12. package/dist/runtime/api/apis/BucketApi.mjs +160 -0
  13. package/dist/runtime/api/apis/CollectionApi.d.ts +161 -0
  14. package/dist/runtime/api/apis/CollectionApi.mjs +435 -0
  15. package/dist/runtime/api/apis/DatabaseApi.d.ts +77 -0
  16. package/dist/runtime/api/apis/DatabaseApi.mjs +196 -0
  17. package/dist/runtime/api/apis/DocumentApi.d.ts +188 -0
  18. package/dist/runtime/api/apis/DocumentApi.mjs +465 -0
  19. package/dist/runtime/api/apis/FileApi.d.ts +125 -0
  20. package/dist/runtime/api/apis/FileApi.mjs +355 -0
  21. package/dist/runtime/api/apis/IndexApi.d.ts +137 -0
  22. package/dist/runtime/api/apis/IndexApi.mjs +367 -0
  23. package/dist/runtime/api/apis/InformationApi.d.ts +28 -0
  24. package/dist/runtime/api/apis/InformationApi.mjs +29 -0
  25. package/dist/runtime/api/apis/JobsApi.d.ts +94 -0
  26. package/dist/runtime/api/apis/JobsApi.mjs +252 -0
  27. package/dist/runtime/api/apis/index.d.ts +11 -0
  28. package/dist/runtime/api/apis/index.mjs +11 -0
  29. package/dist/runtime/api/index.d.ts +3 -0
  30. package/dist/runtime/api/index.mjs +3 -0
  31. package/dist/runtime/api/models/BucketInformation.d.ts +49 -0
  32. package/dist/runtime/api/models/BucketInformation.mjs +36 -0
  33. package/dist/runtime/api/models/CollectionStatus.d.ts +107 -0
  34. package/dist/runtime/api/models/CollectionStatus.mjs +63 -0
  35. package/dist/runtime/api/models/DatabaseInfo.d.ts +57 -0
  36. package/dist/runtime/api/models/DatabaseInfo.mjs +39 -0
  37. package/dist/runtime/api/models/DeleteResponse.d.ts +37 -0
  38. package/dist/runtime/api/models/DeleteResponse.mjs +30 -0
  39. package/dist/runtime/api/models/ErrorDescription.d.ts +43 -0
  40. package/dist/runtime/api/models/ErrorDescription.mjs +33 -0
  41. package/dist/runtime/api/models/FileInformation.d.ts +63 -0
  42. package/dist/runtime/api/models/FileInformation.mjs +42 -0
  43. package/dist/runtime/api/models/Grant.d.ts +55 -0
  44. package/dist/runtime/api/models/Grant.mjs +39 -0
  45. package/dist/runtime/api/models/IndexCreateRequest.d.ts +40 -0
  46. package/dist/runtime/api/models/IndexCreateRequest.mjs +34 -0
  47. package/dist/runtime/api/models/IndexCreateResponse.d.ts +31 -0
  48. package/dist/runtime/api/models/IndexCreateResponse.mjs +27 -0
  49. package/dist/runtime/api/models/IndexDropResponse.d.ts +31 -0
  50. package/dist/runtime/api/models/IndexDropResponse.mjs +27 -0
  51. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +73 -0
  52. package/dist/runtime/api/models/IndexOptionsRequest.mjs +41 -0
  53. package/dist/runtime/api/models/InsertResponse.d.ts +37 -0
  54. package/dist/runtime/api/models/InsertResponse.mjs +30 -0
  55. package/dist/runtime/api/models/JobConfig.d.ts +61 -0
  56. package/dist/runtime/api/models/JobConfig.mjs +42 -0
  57. package/dist/runtime/api/models/JobInformation.d.ts +79 -0
  58. package/dist/runtime/api/models/JobInformation.mjs +49 -0
  59. package/dist/runtime/api/models/JsonResultBoolean.d.ts +27 -0
  60. package/dist/runtime/api/models/JsonResultBoolean.mjs +22 -0
  61. package/dist/runtime/api/models/JsonResultString.d.ts +27 -0
  62. package/dist/runtime/api/models/JsonResultString.mjs +22 -0
  63. package/dist/runtime/api/models/JsonSchema.d.ts +46 -0
  64. package/dist/runtime/api/models/JsonSchema.mjs +38 -0
  65. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +59 -0
  66. package/dist/runtime/api/models/JsonSchemaDefinition.mjs +39 -0
  67. package/dist/runtime/api/models/JsonValueAny.d.ts +31 -0
  68. package/dist/runtime/api/models/JsonValueAny.mjs +27 -0
  69. package/dist/runtime/api/models/JsonValueBoolean.d.ts +31 -0
  70. package/dist/runtime/api/models/JsonValueBoolean.mjs +27 -0
  71. package/dist/runtime/api/models/JsonValueString.d.ts +31 -0
  72. package/dist/runtime/api/models/JsonValueString.mjs +27 -0
  73. package/dist/runtime/api/models/Login.d.ts +37 -0
  74. package/dist/runtime/api/models/Login.mjs +30 -0
  75. package/dist/runtime/api/models/LoginResult.d.ts +44 -0
  76. package/dist/runtime/api/models/LoginResult.mjs +37 -0
  77. package/dist/runtime/api/models/Measurement.d.ts +33 -0
  78. package/dist/runtime/api/models/Measurement.mjs +24 -0
  79. package/dist/runtime/api/models/Metric.d.ts +52 -0
  80. package/dist/runtime/api/models/Metric.mjs +35 -0
  81. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +38 -0
  82. package/dist/runtime/api/models/MongoAggregateRequest.mjs +34 -0
  83. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +55 -0
  84. package/dist/runtime/api/models/MongoCampConfiguration.mjs +39 -0
  85. package/dist/runtime/api/models/MongoFindRequest.d.ts +49 -0
  86. package/dist/runtime/api/models/MongoFindRequest.mjs +33 -0
  87. package/dist/runtime/api/models/MongoIndex.d.ts +103 -0
  88. package/dist/runtime/api/models/MongoIndex.mjs +60 -0
  89. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +31 -0
  90. package/dist/runtime/api/models/PasswordUpdateRequest.mjs +27 -0
  91. package/dist/runtime/api/models/PipelineStage.d.ts +37 -0
  92. package/dist/runtime/api/models/PipelineStage.mjs +30 -0
  93. package/dist/runtime/api/models/Role.d.ts +44 -0
  94. package/dist/runtime/api/models/Role.mjs +37 -0
  95. package/dist/runtime/api/models/SchemaAnalysis.d.ts +50 -0
  96. package/dist/runtime/api/models/SchemaAnalysis.mjs +40 -0
  97. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +62 -0
  98. package/dist/runtime/api/models/SchemaAnalysisField.mjs +45 -0
  99. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +43 -0
  100. package/dist/runtime/api/models/SchemaAnalysisFieldType.mjs +33 -0
  101. package/dist/runtime/api/models/SettingsResponse.d.ts +51 -0
  102. package/dist/runtime/api/models/SettingsResponse.mjs +34 -0
  103. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +39 -0
  104. package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +29 -0
  105. package/dist/runtime/api/models/UpdateRequest.d.ts +41 -0
  106. package/dist/runtime/api/models/UpdateRequest.mjs +30 -0
  107. package/dist/runtime/api/models/UpdateResponse.d.ts +49 -0
  108. package/dist/runtime/api/models/UpdateResponse.mjs +36 -0
  109. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +38 -0
  110. package/dist/runtime/api/models/UpdateRoleRequest.mjs +34 -0
  111. package/dist/runtime/api/models/UserInformation.d.ts +49 -0
  112. package/dist/runtime/api/models/UserInformation.mjs +35 -0
  113. package/dist/runtime/api/models/UserProfile.d.ts +56 -0
  114. package/dist/runtime/api/models/UserProfile.mjs +41 -0
  115. package/dist/runtime/api/models/Version.d.ts +43 -0
  116. package/dist/runtime/api/models/Version.mjs +33 -0
  117. package/dist/runtime/api/models/index.d.ts +39 -0
  118. package/dist/runtime/api/models/index.mjs +39 -0
  119. package/dist/runtime/api/runtime.d.ts +182 -0
  120. package/dist/runtime/api/runtime.mjs +281 -0
  121. package/dist/runtime/composables/mongocampApi.d.ts +14 -0
  122. package/dist/runtime/composables/mongocampApi.mjs +45 -0
  123. package/dist/runtime/composables/mongocampAuth.d.ts +8 -0
  124. package/dist/runtime/composables/mongocampAuth.mjs +28 -0
  125. package/dist/runtime/composables/mongocampSearch.d.ts +11 -0
  126. package/dist/runtime/composables/mongocampSearch.mjs +20 -0
  127. package/dist/runtime/composables/mongocampStorage.d.ts +0 -0
  128. package/dist/runtime/composables/mongocampStorage.mjs +5 -0
  129. package/dist/runtime/composables/mongocampUrl.d.ts +1 -0
  130. package/dist/runtime/composables/mongocampUrl.mjs +5 -0
  131. package/dist/runtime/composables/mongocampUser.d.ts +3 -0
  132. package/dist/runtime/composables/mongocampUser.mjs +4 -0
  133. package/dist/types.d.ts +15 -0
  134. package/package.json +5 -4
@@ -0,0 +1,252 @@
1
+ import * as runtime from "../runtime.mjs";
2
+ import {
3
+ JobConfigToJSON,
4
+ JobInformationFromJSON,
5
+ JsonValueBooleanFromJSON
6
+ } from "../models/index.mjs";
7
+ export class JobsApi extends runtime.BaseAPI {
8
+ /**
9
+ * Delete Job and reload all Job Information
10
+ * Delete Job
11
+ */
12
+ async deleteJobRaw(requestParameters, initOverrides) {
13
+ if (requestParameters.jobGroup === null || requestParameters.jobGroup === void 0) {
14
+ throw new runtime.RequiredError("jobGroup", "Required parameter requestParameters.jobGroup was null or undefined when calling deleteJob.");
15
+ }
16
+ if (requestParameters.jobName === null || requestParameters.jobName === void 0) {
17
+ throw new runtime.RequiredError("jobName", "Required parameter requestParameters.jobName was null or undefined when calling deleteJob.");
18
+ }
19
+ const queryParameters = {};
20
+ const headerParameters = {};
21
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
22
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
23
+ }
24
+ if (this.configuration && this.configuration.accessToken) {
25
+ const token = this.configuration.accessToken;
26
+ const tokenString = await token("httpAuth", []);
27
+ if (tokenString) {
28
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
29
+ }
30
+ }
31
+ if (this.configuration && this.configuration.apiKey) {
32
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
33
+ }
34
+ const response = await this.request({
35
+ path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters.jobGroup))).replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters.jobName))),
36
+ method: "DELETE",
37
+ headers: headerParameters,
38
+ query: queryParameters
39
+ }, initOverrides);
40
+ return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
41
+ }
42
+ /**
43
+ * Delete Job and reload all Job Information
44
+ * Delete Job
45
+ */
46
+ async deleteJob(requestParameters, initOverrides) {
47
+ const response = await this.deleteJobRaw(requestParameters, initOverrides);
48
+ return await response.value();
49
+ }
50
+ /**
51
+ * Execute scheduled Job manually
52
+ * Execute Job
53
+ */
54
+ async executeJobRaw(requestParameters, initOverrides) {
55
+ if (requestParameters.jobGroup === null || requestParameters.jobGroup === void 0) {
56
+ throw new runtime.RequiredError("jobGroup", "Required parameter requestParameters.jobGroup was null or undefined when calling executeJob.");
57
+ }
58
+ if (requestParameters.jobName === null || requestParameters.jobName === void 0) {
59
+ throw new runtime.RequiredError("jobName", "Required parameter requestParameters.jobName was null or undefined when calling executeJob.");
60
+ }
61
+ const queryParameters = {};
62
+ const headerParameters = {};
63
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
64
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
65
+ }
66
+ if (this.configuration && this.configuration.accessToken) {
67
+ const token = this.configuration.accessToken;
68
+ const tokenString = await token("httpAuth", []);
69
+ if (tokenString) {
70
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
71
+ }
72
+ }
73
+ if (this.configuration && this.configuration.apiKey) {
74
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
75
+ }
76
+ const response = await this.request({
77
+ path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters.jobGroup))).replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters.jobName))),
78
+ method: "POST",
79
+ headers: headerParameters,
80
+ query: queryParameters
81
+ }, initOverrides);
82
+ return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
83
+ }
84
+ /**
85
+ * Execute scheduled Job manually
86
+ * Execute Job
87
+ */
88
+ async executeJob(requestParameters, initOverrides) {
89
+ const response = await this.executeJobRaw(requestParameters, initOverrides);
90
+ return await response.value();
91
+ }
92
+ /**
93
+ * Returns the List of all registered Jobs with full information
94
+ * Registered Jobs
95
+ */
96
+ async jobsListRaw(initOverrides) {
97
+ const queryParameters = {};
98
+ const headerParameters = {};
99
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
100
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
101
+ }
102
+ if (this.configuration && this.configuration.accessToken) {
103
+ const token = this.configuration.accessToken;
104
+ const tokenString = await token("httpAuth", []);
105
+ if (tokenString) {
106
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
107
+ }
108
+ }
109
+ if (this.configuration && this.configuration.apiKey) {
110
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
111
+ }
112
+ const response = await this.request({
113
+ path: `/system/jobs`,
114
+ method: "GET",
115
+ headers: headerParameters,
116
+ query: queryParameters
117
+ }, initOverrides);
118
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(JobInformationFromJSON));
119
+ }
120
+ /**
121
+ * Returns the List of all registered Jobs with full information
122
+ * Registered Jobs
123
+ */
124
+ async jobsList(initOverrides) {
125
+ const response = await this.jobsListRaw(initOverrides);
126
+ return await response.value();
127
+ }
128
+ /**
129
+ * Returns the List of possible job classes
130
+ * Possible Jobs
131
+ */
132
+ async possibleJobsListRaw(initOverrides) {
133
+ const queryParameters = {};
134
+ const headerParameters = {};
135
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
136
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
137
+ }
138
+ if (this.configuration && this.configuration.accessToken) {
139
+ const token = this.configuration.accessToken;
140
+ const tokenString = await token("httpAuth", []);
141
+ if (tokenString) {
142
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
143
+ }
144
+ }
145
+ if (this.configuration && this.configuration.apiKey) {
146
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
147
+ }
148
+ const response = await this.request({
149
+ path: `/system/jobs/classes`,
150
+ method: "GET",
151
+ headers: headerParameters,
152
+ query: queryParameters
153
+ }, initOverrides);
154
+ return new runtime.JSONApiResponse(response);
155
+ }
156
+ /**
157
+ * Returns the List of possible job classes
158
+ * Possible Jobs
159
+ */
160
+ async possibleJobsList(initOverrides) {
161
+ const response = await this.possibleJobsListRaw(initOverrides);
162
+ return await response.value();
163
+ }
164
+ /**
165
+ * Register an Job and return the JobInformation with next schedule information
166
+ * Register Job
167
+ */
168
+ async registerJobRaw(requestParameters, initOverrides) {
169
+ if (requestParameters.jobConfig === null || requestParameters.jobConfig === void 0) {
170
+ throw new runtime.RequiredError("jobConfig", "Required parameter requestParameters.jobConfig was null or undefined when calling registerJob.");
171
+ }
172
+ const queryParameters = {};
173
+ const headerParameters = {};
174
+ headerParameters["Content-Type"] = "application/json";
175
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
176
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
177
+ }
178
+ if (this.configuration && this.configuration.accessToken) {
179
+ const token = this.configuration.accessToken;
180
+ const tokenString = await token("httpAuth", []);
181
+ if (tokenString) {
182
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
183
+ }
184
+ }
185
+ if (this.configuration && this.configuration.apiKey) {
186
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
187
+ }
188
+ const response = await this.request({
189
+ path: `/system/jobs`,
190
+ method: "PUT",
191
+ headers: headerParameters,
192
+ query: queryParameters,
193
+ body: JobConfigToJSON(requestParameters.jobConfig)
194
+ }, initOverrides);
195
+ return new runtime.JSONApiResponse(response, (jsonValue) => JobInformationFromJSON(jsonValue));
196
+ }
197
+ /**
198
+ * Register an Job and return the JobInformation with next schedule information
199
+ * Register Job
200
+ */
201
+ async registerJob(requestParameters, initOverrides) {
202
+ const response = await this.registerJobRaw(requestParameters, initOverrides);
203
+ return await response.value();
204
+ }
205
+ /**
206
+ * Add Job and get JobInformation back
207
+ * Update Job
208
+ */
209
+ async updateJobRaw(requestParameters, initOverrides) {
210
+ if (requestParameters.jobGroup === null || requestParameters.jobGroup === void 0) {
211
+ throw new runtime.RequiredError("jobGroup", "Required parameter requestParameters.jobGroup was null or undefined when calling updateJob.");
212
+ }
213
+ if (requestParameters.jobName === null || requestParameters.jobName === void 0) {
214
+ throw new runtime.RequiredError("jobName", "Required parameter requestParameters.jobName was null or undefined when calling updateJob.");
215
+ }
216
+ if (requestParameters.jobConfig === null || requestParameters.jobConfig === void 0) {
217
+ throw new runtime.RequiredError("jobConfig", "Required parameter requestParameters.jobConfig was null or undefined when calling updateJob.");
218
+ }
219
+ const queryParameters = {};
220
+ const headerParameters = {};
221
+ headerParameters["Content-Type"] = "application/json";
222
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
223
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
224
+ }
225
+ if (this.configuration && this.configuration.accessToken) {
226
+ const token = this.configuration.accessToken;
227
+ const tokenString = await token("httpAuth", []);
228
+ if (tokenString) {
229
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
230
+ }
231
+ }
232
+ if (this.configuration && this.configuration.apiKey) {
233
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
234
+ }
235
+ const response = await this.request({
236
+ path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters.jobGroup))).replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters.jobName))),
237
+ method: "PATCH",
238
+ headers: headerParameters,
239
+ query: queryParameters,
240
+ body: JobConfigToJSON(requestParameters.jobConfig)
241
+ }, initOverrides);
242
+ return new runtime.JSONApiResponse(response, (jsonValue) => JobInformationFromJSON(jsonValue));
243
+ }
244
+ /**
245
+ * Add Job and get JobInformation back
246
+ * Update Job
247
+ */
248
+ async updateJob(requestParameters, initOverrides) {
249
+ const response = await this.updateJobRaw(requestParameters, initOverrides);
250
+ return await response.value();
251
+ }
252
+ }
@@ -0,0 +1,11 @@
1
+ export * from './AdminApi';
2
+ export * from './ApplicationApi';
3
+ export * from './AuthApi';
4
+ export * from './BucketApi';
5
+ export * from './CollectionApi';
6
+ export * from './DatabaseApi';
7
+ export * from './DocumentApi';
8
+ export * from './FileApi';
9
+ export * from './IndexApi';
10
+ export * from './InformationApi';
11
+ export * from './JobsApi';
@@ -0,0 +1,11 @@
1
+ export * from "./AdminApi.mjs";
2
+ export * from "./ApplicationApi.mjs";
3
+ export * from "./AuthApi.mjs";
4
+ export * from "./BucketApi.mjs";
5
+ export * from "./CollectionApi.mjs";
6
+ export * from "./DatabaseApi.mjs";
7
+ export * from "./DocumentApi.mjs";
8
+ export * from "./FileApi.mjs";
9
+ export * from "./IndexApi.mjs";
10
+ export * from "./InformationApi.mjs";
11
+ export * from "./JobsApi.mjs";
@@ -0,0 +1,3 @@
1
+ export * from './runtime';
2
+ export * from './apis';
3
+ export * from './models';
@@ -0,0 +1,3 @@
1
+ export * from "./runtime.mjs";
2
+ export * from "./apis/index.mjs";
3
+ export * from "./models/index.mjs";
@@ -0,0 +1,49 @@
1
+ /**
2
+ * mongocamp-server
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.4.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 BucketInformation
16
+ */
17
+ export interface BucketInformation {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BucketInformation
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof BucketInformation
28
+ */
29
+ files: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof BucketInformation
34
+ */
35
+ size: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof BucketInformation
40
+ */
41
+ avgObjectSize: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the BucketInformation interface.
45
+ */
46
+ export declare function instanceOfBucketInformation(value: object): boolean;
47
+ export declare function BucketInformationFromJSON(json: any): BucketInformation;
48
+ export declare function BucketInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): BucketInformation;
49
+ export declare function BucketInformationToJSON(value?: BucketInformation | null): any;
@@ -0,0 +1,36 @@
1
+ export function instanceOfBucketInformation(value) {
2
+ let isInstance = true;
3
+ isInstance = isInstance && "name" in value;
4
+ isInstance = isInstance && "files" in value;
5
+ isInstance = isInstance && "size" in value;
6
+ isInstance = isInstance && "avgObjectSize" in value;
7
+ return isInstance;
8
+ }
9
+ export function BucketInformationFromJSON(json) {
10
+ return BucketInformationFromJSONTyped(json, false);
11
+ }
12
+ export function BucketInformationFromJSONTyped(json, ignoreDiscriminator) {
13
+ if (json === void 0 || json === null) {
14
+ return json;
15
+ }
16
+ return {
17
+ "name": json["name"],
18
+ "files": json["files"],
19
+ "size": json["size"],
20
+ "avgObjectSize": json["avgObjectSize"]
21
+ };
22
+ }
23
+ export function BucketInformationToJSON(value) {
24
+ if (value === void 0) {
25
+ return void 0;
26
+ }
27
+ if (value === null) {
28
+ return null;
29
+ }
30
+ return {
31
+ "name": value.name,
32
+ "files": value.files,
33
+ "size": value.size,
34
+ "avgObjectSize": value.avgObjectSize
35
+ };
36
+ }
@@ -0,0 +1,107 @@
1
+ /**
2
+ * mongocamp-server
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.4.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 CollectionStatus
16
+ */
17
+ export interface CollectionStatus {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CollectionStatus
22
+ */
23
+ ns: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CollectionStatus
28
+ */
29
+ collectionType: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof CollectionStatus
34
+ */
35
+ scaleFactor: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof CollectionStatus
40
+ */
41
+ size: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof CollectionStatus
46
+ */
47
+ count: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof CollectionStatus
52
+ */
53
+ storageSize: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof CollectionStatus
58
+ */
59
+ avgObjSize: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof CollectionStatus
64
+ */
65
+ nindexes: number;
66
+ /**
67
+ *
68
+ * @type {{ [key: string]: number; }}
69
+ * @memberof CollectionStatus
70
+ */
71
+ indexSizes: {
72
+ [key: string]: number;
73
+ };
74
+ /**
75
+ *
76
+ * @type {number}
77
+ * @memberof CollectionStatus
78
+ */
79
+ totalIndexSize: number;
80
+ /**
81
+ *
82
+ * @type {number}
83
+ * @memberof CollectionStatus
84
+ */
85
+ ok: number;
86
+ /**
87
+ *
88
+ * @type {Date}
89
+ * @memberof CollectionStatus
90
+ */
91
+ fetched: Date;
92
+ /**
93
+ *
94
+ * @type {{ [key: string]: string; }}
95
+ * @memberof CollectionStatus
96
+ */
97
+ map: {
98
+ [key: string]: string;
99
+ };
100
+ }
101
+ /**
102
+ * Check if a given object implements the CollectionStatus interface.
103
+ */
104
+ export declare function instanceOfCollectionStatus(value: object): boolean;
105
+ export declare function CollectionStatusFromJSON(json: any): CollectionStatus;
106
+ export declare function CollectionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionStatus;
107
+ export declare function CollectionStatusToJSON(value?: CollectionStatus | null): any;
@@ -0,0 +1,63 @@
1
+ export function instanceOfCollectionStatus(value) {
2
+ let isInstance = true;
3
+ isInstance = isInstance && "ns" in value;
4
+ isInstance = isInstance && "collectionType" in value;
5
+ isInstance = isInstance && "scaleFactor" in value;
6
+ isInstance = isInstance && "size" in value;
7
+ isInstance = isInstance && "count" in value;
8
+ isInstance = isInstance && "storageSize" in value;
9
+ isInstance = isInstance && "avgObjSize" in value;
10
+ isInstance = isInstance && "nindexes" in value;
11
+ isInstance = isInstance && "indexSizes" in value;
12
+ isInstance = isInstance && "totalIndexSize" in value;
13
+ isInstance = isInstance && "ok" in value;
14
+ isInstance = isInstance && "fetched" in value;
15
+ isInstance = isInstance && "map" in value;
16
+ return isInstance;
17
+ }
18
+ export function CollectionStatusFromJSON(json) {
19
+ return CollectionStatusFromJSONTyped(json, false);
20
+ }
21
+ export function CollectionStatusFromJSONTyped(json, ignoreDiscriminator) {
22
+ if (json === void 0 || json === null) {
23
+ return json;
24
+ }
25
+ return {
26
+ "ns": json["ns"],
27
+ "collectionType": json["collectionType"],
28
+ "scaleFactor": json["scaleFactor"],
29
+ "size": json["size"],
30
+ "count": json["count"],
31
+ "storageSize": json["storageSize"],
32
+ "avgObjSize": json["avgObjSize"],
33
+ "nindexes": json["nindexes"],
34
+ "indexSizes": json["indexSizes"],
35
+ "totalIndexSize": json["totalIndexSize"],
36
+ "ok": json["ok"],
37
+ "fetched": new Date(json["fetched"]),
38
+ "map": json["map"]
39
+ };
40
+ }
41
+ export function CollectionStatusToJSON(value) {
42
+ if (value === void 0) {
43
+ return void 0;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ "ns": value.ns,
50
+ "collectionType": value.collectionType,
51
+ "scaleFactor": value.scaleFactor,
52
+ "size": value.size,
53
+ "count": value.count,
54
+ "storageSize": value.storageSize,
55
+ "avgObjSize": value.avgObjSize,
56
+ "nindexes": value.nindexes,
57
+ "indexSizes": value.indexSizes,
58
+ "totalIndexSize": value.totalIndexSize,
59
+ "ok": value.ok,
60
+ "fetched": value.fetched.toISOString(),
61
+ "map": value.map
62
+ };
63
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * mongocamp-server
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.4.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 DatabaseInfo
16
+ */
17
+ export interface DatabaseInfo {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof DatabaseInfo
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof DatabaseInfo
28
+ */
29
+ sizeOnDisk: number;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof DatabaseInfo
34
+ */
35
+ empty: boolean;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof DatabaseInfo
40
+ */
41
+ fetched: Date;
42
+ /**
43
+ *
44
+ * @type {{ [key: string]: string; }}
45
+ * @memberof DatabaseInfo
46
+ */
47
+ map: {
48
+ [key: string]: string;
49
+ };
50
+ }
51
+ /**
52
+ * Check if a given object implements the DatabaseInfo interface.
53
+ */
54
+ export declare function instanceOfDatabaseInfo(value: object): boolean;
55
+ export declare function DatabaseInfoFromJSON(json: any): DatabaseInfo;
56
+ export declare function DatabaseInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatabaseInfo;
57
+ export declare function DatabaseInfoToJSON(value?: DatabaseInfo | null): any;
@@ -0,0 +1,39 @@
1
+ export function instanceOfDatabaseInfo(value) {
2
+ let isInstance = true;
3
+ isInstance = isInstance && "name" in value;
4
+ isInstance = isInstance && "sizeOnDisk" in value;
5
+ isInstance = isInstance && "empty" in value;
6
+ isInstance = isInstance && "fetched" in value;
7
+ isInstance = isInstance && "map" in value;
8
+ return isInstance;
9
+ }
10
+ export function DatabaseInfoFromJSON(json) {
11
+ return DatabaseInfoFromJSONTyped(json, false);
12
+ }
13
+ export function DatabaseInfoFromJSONTyped(json, ignoreDiscriminator) {
14
+ if (json === void 0 || json === null) {
15
+ return json;
16
+ }
17
+ return {
18
+ "name": json["name"],
19
+ "sizeOnDisk": json["sizeOnDisk"],
20
+ "empty": json["empty"],
21
+ "fetched": new Date(json["fetched"]),
22
+ "map": json["map"]
23
+ };
24
+ }
25
+ export function DatabaseInfoToJSON(value) {
26
+ if (value === void 0) {
27
+ return void 0;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ "name": value.name,
34
+ "sizeOnDisk": value.sizeOnDisk,
35
+ "empty": value.empty,
36
+ "fetched": value.fetched.toISOString(),
37
+ "map": value.map
38
+ };
39
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * mongocamp-server
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.4.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 DeleteResponse
16
+ */
17
+ export interface DeleteResponse {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof DeleteResponse
22
+ */
23
+ wasAcknowledged: boolean;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof DeleteResponse
28
+ */
29
+ deletedCount: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the DeleteResponse interface.
33
+ */
34
+ export declare function instanceOfDeleteResponse(value: object): boolean;
35
+ export declare function DeleteResponseFromJSON(json: any): DeleteResponse;
36
+ export declare function DeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteResponse;
37
+ export declare function DeleteResponseToJSON(value?: DeleteResponse | null): any;