@sfxcode/nuxt-mongocamp-server 0.8.8 → 0.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.
- package/dist/module.json +1 -1
- package/dist/module.mjs +466 -11
- package/dist/runtime/api/apis/AdminApi.d.ts +26 -26
- package/dist/runtime/api/apis/AdminApi.mjs +145 -49
- package/dist/runtime/api/apis/ApplicationApi.d.ts +10 -50
- package/dist/runtime/api/apis/ApplicationApi.mjs +47 -128
- package/dist/runtime/api/apis/AuthApi.d.ts +18 -18
- package/dist/runtime/api/apis/AuthApi.mjs +93 -29
- package/dist/runtime/api/apis/BucketApi.d.ts +10 -10
- package/dist/runtime/api/apis/BucketApi.mjs +49 -17
- package/dist/runtime/api/apis/CollectionApi.d.ts +22 -22
- package/dist/runtime/api/apis/CollectionApi.mjs +121 -41
- package/dist/runtime/api/apis/DatabaseApi.d.ts +12 -12
- package/dist/runtime/api/apis/DatabaseApi.mjs +61 -21
- package/dist/runtime/api/apis/DocumentApi.d.ts +22 -22
- package/dist/runtime/api/apis/DocumentApi.mjs +121 -41
- package/dist/runtime/api/apis/FileApi.d.ts +16 -16
- package/dist/runtime/api/apis/FileApi.mjs +85 -29
- package/dist/runtime/api/apis/IndexApi.d.ts +18 -18
- package/dist/runtime/api/apis/IndexApi.mjs +97 -33
- package/dist/runtime/api/apis/InformationApi.d.ts +4 -4
- package/dist/runtime/api/apis/InformationApi.mjs +9 -1
- package/dist/runtime/api/apis/JobsApi.d.ts +14 -14
- package/dist/runtime/api/apis/JobsApi.mjs +73 -25
- package/dist/runtime/api/models/BucketInformation.d.ts +5 -1
- package/dist/runtime/api/models/BucketInformation.mjs +8 -0
- package/dist/runtime/api/models/CollectionStatus.d.ts +5 -1
- package/dist/runtime/api/models/CollectionStatus.mjs +17 -0
- package/dist/runtime/api/models/DatabaseInfo.d.ts +5 -1
- package/dist/runtime/api/models/DatabaseInfo.mjs +9 -0
- package/dist/runtime/api/models/DeleteResponse.d.ts +5 -1
- package/dist/runtime/api/models/DeleteResponse.mjs +6 -0
- package/dist/runtime/api/models/ErrorDescription.d.ts +5 -1
- package/dist/runtime/api/models/ErrorDescription.mjs +7 -0
- package/dist/runtime/api/models/FileInformation.d.ts +5 -1
- package/dist/runtime/api/models/FileInformation.mjs +10 -0
- package/dist/runtime/api/models/Grant.d.ts +5 -1
- package/dist/runtime/api/models/Grant.mjs +9 -0
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +6 -2
- package/dist/runtime/api/models/IndexCreateRequest.mjs +6 -1
- package/dist/runtime/api/models/IndexCreateResponse.d.ts +5 -1
- package/dist/runtime/api/models/IndexCreateResponse.mjs +5 -0
- package/dist/runtime/api/models/IndexDropResponse.d.ts +5 -1
- package/dist/runtime/api/models/IndexDropResponse.mjs +5 -0
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +5 -1
- package/dist/runtime/api/models/IndexOptionsRequest.mjs +4 -0
- package/dist/runtime/api/models/InsertResponse.d.ts +5 -1
- package/dist/runtime/api/models/InsertResponse.mjs +5 -0
- package/dist/runtime/api/models/JobConfig.d.ts +5 -1
- package/dist/runtime/api/models/JobConfig.mjs +10 -0
- package/dist/runtime/api/models/JobInformation.d.ts +5 -1
- package/dist/runtime/api/models/JobInformation.mjs +10 -0
- package/dist/runtime/api/models/JsonSchema.d.ts +6 -2
- package/dist/runtime/api/models/JsonSchema.mjs +8 -1
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +5 -1
- package/dist/runtime/api/models/JsonSchemaDefinition.mjs +8 -0
- package/dist/runtime/api/models/JsonValueAny.d.ts +5 -1
- package/dist/runtime/api/models/JsonValueAny.mjs +5 -0
- package/dist/runtime/api/models/JsonValueBoolean.d.ts +5 -1
- package/dist/runtime/api/models/JsonValueBoolean.mjs +5 -0
- package/dist/runtime/api/models/JsonValueString.d.ts +5 -1
- package/dist/runtime/api/models/JsonValueString.mjs +5 -0
- package/dist/runtime/api/models/Login.d.ts +5 -1
- package/dist/runtime/api/models/Login.mjs +6 -0
- package/dist/runtime/api/models/LoginResult.d.ts +6 -2
- package/dist/runtime/api/models/LoginResult.mjs +8 -1
- package/dist/runtime/api/models/Metric.mjs +1 -1
- package/dist/runtime/api/models/MongoAggregateRequest.d.ts +6 -2
- package/dist/runtime/api/models/MongoAggregateRequest.mjs +6 -1
- package/dist/runtime/api/models/MongoCampConfiguration.d.ts +5 -1
- package/dist/runtime/api/models/MongoCampConfiguration.mjs +9 -0
- package/dist/runtime/api/models/MongoFindRequest.d.ts +5 -1
- package/dist/runtime/api/models/MongoFindRequest.mjs +7 -0
- package/dist/runtime/api/models/MongoIndex.d.ts +5 -1
- package/dist/runtime/api/models/MongoIndex.mjs +15 -0
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +5 -1
- package/dist/runtime/api/models/PasswordUpdateRequest.mjs +5 -0
- package/dist/runtime/api/models/PipelineStage.d.ts +5 -1
- package/dist/runtime/api/models/PipelineStage.mjs +6 -0
- package/dist/runtime/api/models/Role.d.ts +6 -2
- package/dist/runtime/api/models/Role.mjs +7 -1
- package/dist/runtime/api/models/SchemaAnalysis.d.ts +6 -2
- package/dist/runtime/api/models/SchemaAnalysis.mjs +8 -1
- package/dist/runtime/api/models/SchemaAnalysisField.d.ts +6 -2
- package/dist/runtime/api/models/SchemaAnalysisField.mjs +9 -1
- package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +5 -1
- package/dist/runtime/api/models/SchemaAnalysisFieldType.mjs +7 -0
- package/dist/runtime/api/models/SettingsResponse.d.ts +5 -1
- package/dist/runtime/api/models/SettingsResponse.mjs +5 -0
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +5 -1
- package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +4 -0
- package/dist/runtime/api/models/UpdateRequest.d.ts +5 -1
- package/dist/runtime/api/models/UpdateRequest.mjs +6 -0
- package/dist/runtime/api/models/UpdateResponse.d.ts +5 -1
- package/dist/runtime/api/models/UpdateResponse.mjs +7 -0
- package/dist/runtime/api/models/UpdateRoleRequest.d.ts +6 -2
- package/dist/runtime/api/models/UpdateRoleRequest.mjs +6 -1
- package/dist/runtime/api/models/UserInformation.d.ts +5 -1
- package/dist/runtime/api/models/UserInformation.mjs +6 -0
- package/dist/runtime/api/models/UserProfile.d.ts +6 -2
- package/dist/runtime/api/models/UserProfile.mjs +7 -1
- package/dist/runtime/api/models/Version.d.ts +5 -1
- package/dist/runtime/api/models/Version.mjs +7 -0
- package/dist/runtime/api/models/index.d.ts +0 -2
- package/dist/runtime/api/models/index.mjs +0 -2
- package/dist/runtime/api/runtime.d.ts +71 -29
- package/dist/runtime/api/runtime.mjs +154 -72
- package/dist/runtime/composables/mongocampApi.mjs +1 -1
- package/package.json +6 -6
|
@@ -3,8 +3,12 @@ import {
|
|
|
3
3
|
JobConfigToJSON,
|
|
4
4
|
JobInformationFromJSON,
|
|
5
5
|
JsonValueBooleanFromJSON
|
|
6
|
-
} from "../models";
|
|
6
|
+
} from "../models/index.mjs";
|
|
7
7
|
export class JobsApi extends runtime.BaseAPI {
|
|
8
|
+
/**
|
|
9
|
+
* Delete Job and reload all Job Information
|
|
10
|
+
* Delete Job
|
|
11
|
+
*/
|
|
8
12
|
async deleteJobRaw(requestParameters, initOverrides) {
|
|
9
13
|
if (requestParameters.jobGroup === null || requestParameters.jobGroup === void 0) {
|
|
10
14
|
throw new runtime.RequiredError("jobGroup", "Required parameter requestParameters.jobGroup was null or undefined when calling deleteJob.");
|
|
@@ -14,8 +18,8 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
14
18
|
}
|
|
15
19
|
const queryParameters = {};
|
|
16
20
|
const headerParameters = {};
|
|
17
|
-
if (this.configuration && this.configuration.
|
|
18
|
-
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);
|
|
19
23
|
}
|
|
20
24
|
if (this.configuration && this.configuration.accessToken) {
|
|
21
25
|
const token = this.configuration.accessToken;
|
|
@@ -24,8 +28,8 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
24
28
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
25
29
|
}
|
|
26
30
|
}
|
|
27
|
-
if (this.configuration &&
|
|
28
|
-
headerParameters["
|
|
31
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
32
|
+
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
29
33
|
}
|
|
30
34
|
const response = await this.request({
|
|
31
35
|
path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters.jobGroup))).replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters.jobName))),
|
|
@@ -35,10 +39,18 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
35
39
|
}, initOverrides);
|
|
36
40
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
37
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Delete Job and reload all Job Information
|
|
44
|
+
* Delete Job
|
|
45
|
+
*/
|
|
38
46
|
async deleteJob(requestParameters, initOverrides) {
|
|
39
47
|
const response = await this.deleteJobRaw(requestParameters, initOverrides);
|
|
40
48
|
return await response.value();
|
|
41
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Execute scheduled Job manually
|
|
52
|
+
* Execute Job
|
|
53
|
+
*/
|
|
42
54
|
async executeJobRaw(requestParameters, initOverrides) {
|
|
43
55
|
if (requestParameters.jobGroup === null || requestParameters.jobGroup === void 0) {
|
|
44
56
|
throw new runtime.RequiredError("jobGroup", "Required parameter requestParameters.jobGroup was null or undefined when calling executeJob.");
|
|
@@ -48,8 +60,8 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
48
60
|
}
|
|
49
61
|
const queryParameters = {};
|
|
50
62
|
const headerParameters = {};
|
|
51
|
-
if (this.configuration && this.configuration.
|
|
52
|
-
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);
|
|
53
65
|
}
|
|
54
66
|
if (this.configuration && this.configuration.accessToken) {
|
|
55
67
|
const token = this.configuration.accessToken;
|
|
@@ -58,8 +70,8 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
58
70
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
59
71
|
}
|
|
60
72
|
}
|
|
61
|
-
if (this.configuration &&
|
|
62
|
-
headerParameters["
|
|
73
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
74
|
+
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
63
75
|
}
|
|
64
76
|
const response = await this.request({
|
|
65
77
|
path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters.jobGroup))).replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters.jobName))),
|
|
@@ -69,15 +81,23 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
69
81
|
}, initOverrides);
|
|
70
82
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
71
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Execute scheduled Job manually
|
|
86
|
+
* Execute Job
|
|
87
|
+
*/
|
|
72
88
|
async executeJob(requestParameters, initOverrides) {
|
|
73
89
|
const response = await this.executeJobRaw(requestParameters, initOverrides);
|
|
74
90
|
return await response.value();
|
|
75
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Returns the List of all registered Jobs with full information
|
|
94
|
+
* Registered Jobs
|
|
95
|
+
*/
|
|
76
96
|
async jobsListRaw(initOverrides) {
|
|
77
97
|
const queryParameters = {};
|
|
78
98
|
const headerParameters = {};
|
|
79
|
-
if (this.configuration && this.configuration.
|
|
80
|
-
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);
|
|
81
101
|
}
|
|
82
102
|
if (this.configuration && this.configuration.accessToken) {
|
|
83
103
|
const token = this.configuration.accessToken;
|
|
@@ -86,8 +106,8 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
86
106
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
87
107
|
}
|
|
88
108
|
}
|
|
89
|
-
if (this.configuration &&
|
|
90
|
-
headerParameters["
|
|
109
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
110
|
+
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
91
111
|
}
|
|
92
112
|
const response = await this.request({
|
|
93
113
|
path: `/system/jobs`,
|
|
@@ -97,15 +117,23 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
97
117
|
}, initOverrides);
|
|
98
118
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(JobInformationFromJSON));
|
|
99
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* Returns the List of all registered Jobs with full information
|
|
122
|
+
* Registered Jobs
|
|
123
|
+
*/
|
|
100
124
|
async jobsList(initOverrides) {
|
|
101
125
|
const response = await this.jobsListRaw(initOverrides);
|
|
102
126
|
return await response.value();
|
|
103
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* Returns the List of possible job classes
|
|
130
|
+
* Possible Jobs
|
|
131
|
+
*/
|
|
104
132
|
async possibleJobsListRaw(initOverrides) {
|
|
105
133
|
const queryParameters = {};
|
|
106
134
|
const headerParameters = {};
|
|
107
|
-
if (this.configuration && this.configuration.
|
|
108
|
-
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);
|
|
109
137
|
}
|
|
110
138
|
if (this.configuration && this.configuration.accessToken) {
|
|
111
139
|
const token = this.configuration.accessToken;
|
|
@@ -114,8 +142,8 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
114
142
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
115
143
|
}
|
|
116
144
|
}
|
|
117
|
-
if (this.configuration &&
|
|
118
|
-
headerParameters["
|
|
145
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
146
|
+
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
119
147
|
}
|
|
120
148
|
const response = await this.request({
|
|
121
149
|
path: `/system/jobs/classes`,
|
|
@@ -125,10 +153,18 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
125
153
|
}, initOverrides);
|
|
126
154
|
return new runtime.JSONApiResponse(response);
|
|
127
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
* Returns the List of possible job classes
|
|
158
|
+
* Possible Jobs
|
|
159
|
+
*/
|
|
128
160
|
async possibleJobsList(initOverrides) {
|
|
129
161
|
const response = await this.possibleJobsListRaw(initOverrides);
|
|
130
162
|
return await response.value();
|
|
131
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Register an Job and return the JobInformation with next schedule information
|
|
166
|
+
* Register Job
|
|
167
|
+
*/
|
|
132
168
|
async registerJobRaw(requestParameters, initOverrides) {
|
|
133
169
|
if (requestParameters.jobConfig === null || requestParameters.jobConfig === void 0) {
|
|
134
170
|
throw new runtime.RequiredError("jobConfig", "Required parameter requestParameters.jobConfig was null or undefined when calling registerJob.");
|
|
@@ -136,8 +172,8 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
136
172
|
const queryParameters = {};
|
|
137
173
|
const headerParameters = {};
|
|
138
174
|
headerParameters["Content-Type"] = "application/json";
|
|
139
|
-
if (this.configuration && this.configuration.
|
|
140
|
-
headerParameters["
|
|
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);
|
|
141
177
|
}
|
|
142
178
|
if (this.configuration && this.configuration.accessToken) {
|
|
143
179
|
const token = this.configuration.accessToken;
|
|
@@ -146,8 +182,8 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
146
182
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
147
183
|
}
|
|
148
184
|
}
|
|
149
|
-
if (this.configuration &&
|
|
150
|
-
headerParameters["
|
|
185
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
186
|
+
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
151
187
|
}
|
|
152
188
|
const response = await this.request({
|
|
153
189
|
path: `/system/jobs`,
|
|
@@ -158,10 +194,18 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
158
194
|
}, initOverrides);
|
|
159
195
|
return new runtime.JSONApiResponse(response, (jsonValue) => JobInformationFromJSON(jsonValue));
|
|
160
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* Register an Job and return the JobInformation with next schedule information
|
|
199
|
+
* Register Job
|
|
200
|
+
*/
|
|
161
201
|
async registerJob(requestParameters, initOverrides) {
|
|
162
202
|
const response = await this.registerJobRaw(requestParameters, initOverrides);
|
|
163
203
|
return await response.value();
|
|
164
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* Add Job and get JobInformation back
|
|
207
|
+
* Update Job
|
|
208
|
+
*/
|
|
165
209
|
async updateJobRaw(requestParameters, initOverrides) {
|
|
166
210
|
if (requestParameters.jobGroup === null || requestParameters.jobGroup === void 0) {
|
|
167
211
|
throw new runtime.RequiredError("jobGroup", "Required parameter requestParameters.jobGroup was null or undefined when calling updateJob.");
|
|
@@ -175,8 +219,8 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
175
219
|
const queryParameters = {};
|
|
176
220
|
const headerParameters = {};
|
|
177
221
|
headerParameters["Content-Type"] = "application/json";
|
|
178
|
-
if (this.configuration && this.configuration.
|
|
179
|
-
headerParameters["
|
|
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);
|
|
180
224
|
}
|
|
181
225
|
if (this.configuration && this.configuration.accessToken) {
|
|
182
226
|
const token = this.configuration.accessToken;
|
|
@@ -185,8 +229,8 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
185
229
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
186
230
|
}
|
|
187
231
|
}
|
|
188
|
-
if (this.configuration &&
|
|
189
|
-
headerParameters["
|
|
232
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
233
|
+
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
190
234
|
}
|
|
191
235
|
const response = await this.request({
|
|
192
236
|
path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters.jobGroup))).replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters.jobName))),
|
|
@@ -197,6 +241,10 @@ export class JobsApi extends runtime.BaseAPI {
|
|
|
197
241
|
}, initOverrides);
|
|
198
242
|
return new runtime.JSONApiResponse(response, (jsonValue) => JobInformationFromJSON(jsonValue));
|
|
199
243
|
}
|
|
244
|
+
/**
|
|
245
|
+
* Add Job and get JobInformation back
|
|
246
|
+
* Update Job
|
|
247
|
+
*/
|
|
200
248
|
async updateJob(requestParameters, initOverrides) {
|
|
201
249
|
const response = await this.updateJobRaw(requestParameters, initOverrides);
|
|
202
250
|
return await response.value();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-server
|
|
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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -40,6 +40,10 @@ export interface BucketInformation {
|
|
|
40
40
|
*/
|
|
41
41
|
avgObjectSize: number;
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the BucketInformation interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfBucketInformation(value: object): boolean;
|
|
43
47
|
export declare function BucketInformationFromJSON(json: any): BucketInformation;
|
|
44
48
|
export declare function BucketInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): BucketInformation;
|
|
45
49
|
export declare function BucketInformationToJSON(value?: BucketInformation | null): any;
|
|
@@ -1,3 +1,11 @@
|
|
|
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
|
+
}
|
|
1
9
|
export function BucketInformationFromJSON(json) {
|
|
2
10
|
return BucketInformationFromJSONTyped(json, false);
|
|
3
11
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-server
|
|
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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -98,6 +98,10 @@ export interface CollectionStatus {
|
|
|
98
98
|
[key: string]: string;
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* Check if a given object implements the CollectionStatus interface.
|
|
103
|
+
*/
|
|
104
|
+
export declare function instanceOfCollectionStatus(value: object): boolean;
|
|
101
105
|
export declare function CollectionStatusFromJSON(json: any): CollectionStatus;
|
|
102
106
|
export declare function CollectionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionStatus;
|
|
103
107
|
export declare function CollectionStatusToJSON(value?: CollectionStatus | null): any;
|
|
@@ -1,3 +1,20 @@
|
|
|
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
|
+
}
|
|
1
18
|
export function CollectionStatusFromJSON(json) {
|
|
2
19
|
return CollectionStatusFromJSONTyped(json, false);
|
|
3
20
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-server
|
|
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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -48,6 +48,10 @@ export interface DatabaseInfo {
|
|
|
48
48
|
[key: string]: string;
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the DatabaseInfo interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfDatabaseInfo(value: object): boolean;
|
|
51
55
|
export declare function DatabaseInfoFromJSON(json: any): DatabaseInfo;
|
|
52
56
|
export declare function DatabaseInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatabaseInfo;
|
|
53
57
|
export declare function DatabaseInfoToJSON(value?: DatabaseInfo | null): any;
|
|
@@ -1,3 +1,12 @@
|
|
|
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
|
+
}
|
|
1
10
|
export function DatabaseInfoFromJSON(json) {
|
|
2
11
|
return DatabaseInfoFromJSONTyped(json, false);
|
|
3
12
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-server
|
|
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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -28,6 +28,10 @@ export interface DeleteResponse {
|
|
|
28
28
|
*/
|
|
29
29
|
deletedCount: number;
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the DeleteResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfDeleteResponse(value: object): boolean;
|
|
31
35
|
export declare function DeleteResponseFromJSON(json: any): DeleteResponse;
|
|
32
36
|
export declare function DeleteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteResponse;
|
|
33
37
|
export declare function DeleteResponseToJSON(value?: DeleteResponse | null): any;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export function instanceOfDeleteResponse(value) {
|
|
2
|
+
let isInstance = true;
|
|
3
|
+
isInstance = isInstance && "wasAcknowledged" in value;
|
|
4
|
+
isInstance = isInstance && "deletedCount" in value;
|
|
5
|
+
return isInstance;
|
|
6
|
+
}
|
|
1
7
|
export function DeleteResponseFromJSON(json) {
|
|
2
8
|
return DeleteResponseFromJSONTyped(json, false);
|
|
3
9
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-server
|
|
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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,6 +34,10 @@ export interface ErrorDescription {
|
|
|
34
34
|
*/
|
|
35
35
|
additionalInfo: string;
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ErrorDescription interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfErrorDescription(value: object): boolean;
|
|
37
41
|
export declare function ErrorDescriptionFromJSON(json: any): ErrorDescription;
|
|
38
42
|
export declare function ErrorDescriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorDescription;
|
|
39
43
|
export declare function ErrorDescriptionToJSON(value?: ErrorDescription | null): any;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
export function instanceOfErrorDescription(value) {
|
|
2
|
+
let isInstance = true;
|
|
3
|
+
isInstance = isInstance && "code" in value;
|
|
4
|
+
isInstance = isInstance && "msg" in value;
|
|
5
|
+
isInstance = isInstance && "additionalInfo" in value;
|
|
6
|
+
return isInstance;
|
|
7
|
+
}
|
|
1
8
|
export function ErrorDescriptionFromJSON(json) {
|
|
2
9
|
return ErrorDescriptionFromJSONTyped(json, false);
|
|
3
10
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-server
|
|
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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -54,6 +54,10 @@ export interface FileInformation {
|
|
|
54
54
|
[key: string]: string;
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the FileInformation interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfFileInformation(value: object): boolean;
|
|
57
61
|
export declare function FileInformationFromJSON(json: any): FileInformation;
|
|
58
62
|
export declare function FileInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileInformation;
|
|
59
63
|
export declare function FileInformationToJSON(value?: FileInformation | null): any;
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
export function instanceOfFileInformation(value) {
|
|
2
|
+
let isInstance = true;
|
|
3
|
+
isInstance = isInstance && "id" in value;
|
|
4
|
+
isInstance = isInstance && "filename" in value;
|
|
5
|
+
isInstance = isInstance && "length" in value;
|
|
6
|
+
isInstance = isInstance && "chunkSize" in value;
|
|
7
|
+
isInstance = isInstance && "uploadDate" in value;
|
|
8
|
+
isInstance = isInstance && "metadata" in value;
|
|
9
|
+
return isInstance;
|
|
10
|
+
}
|
|
1
11
|
export function FileInformationFromJSON(json) {
|
|
2
12
|
return FileInformationFromJSONTyped(json, false);
|
|
3
13
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-server
|
|
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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -46,6 +46,10 @@ export interface Grant {
|
|
|
46
46
|
*/
|
|
47
47
|
grantType: string;
|
|
48
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the Grant interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfGrant(value: object): boolean;
|
|
49
53
|
export declare function GrantFromJSON(json: any): Grant;
|
|
50
54
|
export declare function GrantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Grant;
|
|
51
55
|
export declare function GrantToJSON(value?: Grant | null): any;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
export function instanceOfGrant(value) {
|
|
2
|
+
let isInstance = true;
|
|
3
|
+
isInstance = isInstance && "name" in value;
|
|
4
|
+
isInstance = isInstance && "read" in value;
|
|
5
|
+
isInstance = isInstance && "write" in value;
|
|
6
|
+
isInstance = isInstance && "administrate" in value;
|
|
7
|
+
isInstance = isInstance && "grantType" in value;
|
|
8
|
+
return isInstance;
|
|
9
|
+
}
|
|
1
10
|
export function GrantFromJSON(json) {
|
|
2
11
|
return GrantFromJSONTyped(json, false);
|
|
3
12
|
}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* mongocamp-server
|
|
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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
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 { IndexOptionsRequest } from './IndexOptionsRequest';
|
|
12
|
+
import type { IndexOptionsRequest } from './IndexOptionsRequest';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -31,6 +31,10 @@ export interface IndexCreateRequest {
|
|
|
31
31
|
*/
|
|
32
32
|
indexOptionsRequest?: IndexOptionsRequest;
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the IndexCreateRequest interface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function instanceOfIndexCreateRequest(value: object): boolean;
|
|
34
38
|
export declare function IndexCreateRequestFromJSON(json: any): IndexCreateRequest;
|
|
35
39
|
export declare function IndexCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexCreateRequest;
|
|
36
40
|
export declare function IndexCreateRequestToJSON(value?: IndexCreateRequest | null): any;
|
|
@@ -2,7 +2,12 @@ import { exists } from "../runtime.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
IndexOptionsRequestFromJSON,
|
|
4
4
|
IndexOptionsRequestToJSON
|
|
5
|
-
} from "./IndexOptionsRequest";
|
|
5
|
+
} from "./IndexOptionsRequest.mjs";
|
|
6
|
+
export function instanceOfIndexCreateRequest(value) {
|
|
7
|
+
let isInstance = true;
|
|
8
|
+
isInstance = isInstance && "keys" in value;
|
|
9
|
+
return isInstance;
|
|
10
|
+
}
|
|
6
11
|
export function IndexCreateRequestFromJSON(json) {
|
|
7
12
|
return IndexCreateRequestFromJSONTyped(json, false);
|
|
8
13
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-server
|
|
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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,6 +22,10 @@ export interface IndexCreateResponse {
|
|
|
22
22
|
*/
|
|
23
23
|
name: string;
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the IndexCreateResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfIndexCreateResponse(value: object): boolean;
|
|
25
29
|
export declare function IndexCreateResponseFromJSON(json: any): IndexCreateResponse;
|
|
26
30
|
export declare function IndexCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexCreateResponse;
|
|
27
31
|
export declare function IndexCreateResponseToJSON(value?: IndexCreateResponse | null): any;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-server
|
|
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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,6 +22,10 @@ export interface IndexDropResponse {
|
|
|
22
22
|
*/
|
|
23
23
|
dropped: boolean;
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the IndexDropResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfIndexDropResponse(value: object): boolean;
|
|
25
29
|
export declare function IndexDropResponseFromJSON(json: any): IndexDropResponse;
|
|
26
30
|
export declare function IndexDropResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexDropResponse;
|
|
27
31
|
export declare function IndexDropResponseToJSON(value?: IndexDropResponse | null): any;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-server
|
|
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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -64,6 +64,10 @@ export interface IndexOptionsRequest {
|
|
|
64
64
|
*/
|
|
65
65
|
min?: number;
|
|
66
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the IndexOptionsRequest interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfIndexOptionsRequest(value: object): boolean;
|
|
67
71
|
export declare function IndexOptionsRequestFromJSON(json: any): IndexOptionsRequest;
|
|
68
72
|
export declare function IndexOptionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexOptionsRequest;
|
|
69
73
|
export declare function IndexOptionsRequestToJSON(value?: IndexOptionsRequest | null): any;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-server
|
|
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.4.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -28,6 +28,10 @@ export interface InsertResponse {
|
|
|
28
28
|
*/
|
|
29
29
|
insertedIds?: Array<string>;
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the InsertResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfInsertResponse(value: object): boolean;
|
|
31
35
|
export declare function InsertResponseFromJSON(json: any): InsertResponse;
|
|
32
36
|
export declare function InsertResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): InsertResponse;
|
|
33
37
|
export declare function InsertResponseToJSON(value?: InsertResponse | null): any;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { exists } from "../runtime.mjs";
|
|
2
|
+
export function instanceOfInsertResponse(value) {
|
|
3
|
+
let isInstance = true;
|
|
4
|
+
isInstance = isInstance && "wasAcknowledged" in value;
|
|
5
|
+
return isInstance;
|
|
6
|
+
}
|
|
2
7
|
export function InsertResponseFromJSON(json) {
|
|
3
8
|
return InsertResponseFromJSONTyped(json, false);
|
|
4
9
|
}
|