@sfxcode/nuxt-mongocamp-server 1.0.4 → 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.
- package/dist/module.d.ts +9 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +553 -4
- package/dist/runtime/api/apis/AdminApi.d.ts +181 -0
- package/dist/runtime/api/apis/AdminApi.mjs +509 -0
- package/dist/runtime/api/apis/ApplicationApi.d.ts +65 -0
- package/dist/runtime/api/apis/ApplicationApi.mjs +164 -0
- package/dist/runtime/api/apis/AuthApi.d.ts +104 -0
- package/dist/runtime/api/apis/AuthApi.mjs +296 -0
- package/dist/runtime/api/apis/BucketApi.d.ts +67 -0
- package/dist/runtime/api/apis/BucketApi.mjs +160 -0
- package/dist/runtime/api/apis/CollectionApi.d.ts +161 -0
- package/dist/runtime/api/apis/CollectionApi.mjs +435 -0
- package/dist/runtime/api/apis/DatabaseApi.d.ts +77 -0
- package/dist/runtime/api/apis/DatabaseApi.mjs +196 -0
- package/dist/runtime/api/apis/DocumentApi.d.ts +188 -0
- package/dist/runtime/api/apis/DocumentApi.mjs +465 -0
- package/dist/runtime/api/apis/FileApi.d.ts +125 -0
- package/dist/runtime/api/apis/FileApi.mjs +355 -0
- package/dist/runtime/api/apis/IndexApi.d.ts +137 -0
- package/dist/runtime/api/apis/IndexApi.mjs +367 -0
- package/dist/runtime/api/apis/InformationApi.d.ts +28 -0
- package/dist/runtime/api/apis/InformationApi.mjs +29 -0
- package/dist/runtime/api/apis/JobsApi.d.ts +94 -0
- package/dist/runtime/api/apis/JobsApi.mjs +252 -0
- package/dist/runtime/api/apis/index.d.ts +11 -0
- package/dist/runtime/api/apis/index.mjs +11 -0
- package/dist/runtime/api/index.d.ts +3 -0
- package/dist/runtime/api/index.mjs +3 -0
- package/dist/runtime/api/models/BucketInformation.d.ts +49 -0
- package/dist/runtime/api/models/BucketInformation.mjs +36 -0
- package/dist/runtime/api/models/CollectionStatus.d.ts +107 -0
- package/dist/runtime/api/models/CollectionStatus.mjs +63 -0
- package/dist/runtime/api/models/DatabaseInfo.d.ts +57 -0
- package/dist/runtime/api/models/DatabaseInfo.mjs +39 -0
- package/dist/runtime/api/models/DeleteResponse.d.ts +37 -0
- package/dist/runtime/api/models/DeleteResponse.mjs +30 -0
- package/dist/runtime/api/models/ErrorDescription.d.ts +43 -0
- package/dist/runtime/api/models/ErrorDescription.mjs +33 -0
- package/dist/runtime/api/models/FileInformation.d.ts +63 -0
- package/dist/runtime/api/models/FileInformation.mjs +42 -0
- package/dist/runtime/api/models/Grant.d.ts +55 -0
- package/dist/runtime/api/models/Grant.mjs +39 -0
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +40 -0
- package/dist/runtime/api/models/IndexCreateRequest.mjs +34 -0
- package/dist/runtime/api/models/IndexCreateResponse.d.ts +31 -0
- package/dist/runtime/api/models/IndexCreateResponse.mjs +27 -0
- package/dist/runtime/api/models/IndexDropResponse.d.ts +31 -0
- package/dist/runtime/api/models/IndexDropResponse.mjs +27 -0
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +73 -0
- package/dist/runtime/api/models/IndexOptionsRequest.mjs +41 -0
- package/dist/runtime/api/models/InsertResponse.d.ts +37 -0
- package/dist/runtime/api/models/InsertResponse.mjs +30 -0
- package/dist/runtime/api/models/JobConfig.d.ts +61 -0
- package/dist/runtime/api/models/JobConfig.mjs +42 -0
- package/dist/runtime/api/models/JobInformation.d.ts +79 -0
- package/dist/runtime/api/models/JobInformation.mjs +49 -0
- package/dist/runtime/api/models/JsonResultBoolean.d.ts +27 -0
- package/dist/runtime/api/models/JsonResultBoolean.mjs +22 -0
- package/dist/runtime/api/models/JsonResultString.d.ts +27 -0
- package/dist/runtime/api/models/JsonResultString.mjs +22 -0
- package/dist/runtime/api/models/JsonSchema.d.ts +46 -0
- package/dist/runtime/api/models/JsonSchema.mjs +38 -0
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +59 -0
- package/dist/runtime/api/models/JsonSchemaDefinition.mjs +39 -0
- package/dist/runtime/api/models/JsonValueAny.d.ts +31 -0
- package/dist/runtime/api/models/JsonValueAny.mjs +27 -0
- package/dist/runtime/api/models/JsonValueBoolean.d.ts +31 -0
- package/dist/runtime/api/models/JsonValueBoolean.mjs +27 -0
- package/dist/runtime/api/models/JsonValueString.d.ts +31 -0
- package/dist/runtime/api/models/JsonValueString.mjs +27 -0
- package/dist/runtime/api/models/Login.d.ts +37 -0
- package/dist/runtime/api/models/Login.mjs +30 -0
- package/dist/runtime/api/models/LoginResult.d.ts +44 -0
- package/dist/runtime/api/models/LoginResult.mjs +37 -0
- package/dist/runtime/api/models/Measurement.d.ts +33 -0
- package/dist/runtime/api/models/Measurement.mjs +24 -0
- package/dist/runtime/api/models/Metric.d.ts +52 -0
- package/dist/runtime/api/models/Metric.mjs +35 -0
- package/dist/runtime/api/models/MongoAggregateRequest.d.ts +38 -0
- package/dist/runtime/api/models/MongoAggregateRequest.mjs +34 -0
- package/dist/runtime/api/models/MongoCampConfiguration.d.ts +55 -0
- package/dist/runtime/api/models/MongoCampConfiguration.mjs +39 -0
- package/dist/runtime/api/models/MongoFindRequest.d.ts +49 -0
- package/dist/runtime/api/models/MongoFindRequest.mjs +33 -0
- package/dist/runtime/api/models/MongoIndex.d.ts +103 -0
- package/dist/runtime/api/models/MongoIndex.mjs +60 -0
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +31 -0
- package/dist/runtime/api/models/PasswordUpdateRequest.mjs +27 -0
- package/dist/runtime/api/models/PipelineStage.d.ts +37 -0
- package/dist/runtime/api/models/PipelineStage.mjs +30 -0
- package/dist/runtime/api/models/Role.d.ts +44 -0
- package/dist/runtime/api/models/Role.mjs +37 -0
- package/dist/runtime/api/models/SchemaAnalysis.d.ts +50 -0
- package/dist/runtime/api/models/SchemaAnalysis.mjs +40 -0
- package/dist/runtime/api/models/SchemaAnalysisField.d.ts +62 -0
- package/dist/runtime/api/models/SchemaAnalysisField.mjs +45 -0
- package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +43 -0
- package/dist/runtime/api/models/SchemaAnalysisFieldType.mjs +33 -0
- package/dist/runtime/api/models/SettingsResponse.d.ts +51 -0
- package/dist/runtime/api/models/SettingsResponse.mjs +34 -0
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +39 -0
- package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +29 -0
- package/dist/runtime/api/models/UpdateRequest.d.ts +41 -0
- package/dist/runtime/api/models/UpdateRequest.mjs +30 -0
- package/dist/runtime/api/models/UpdateResponse.d.ts +49 -0
- package/dist/runtime/api/models/UpdateResponse.mjs +36 -0
- package/dist/runtime/api/models/UpdateRoleRequest.d.ts +38 -0
- package/dist/runtime/api/models/UpdateRoleRequest.mjs +34 -0
- package/dist/runtime/api/models/UserInformation.d.ts +49 -0
- package/dist/runtime/api/models/UserInformation.mjs +35 -0
- package/dist/runtime/api/models/UserProfile.d.ts +56 -0
- package/dist/runtime/api/models/UserProfile.mjs +41 -0
- package/dist/runtime/api/models/Version.d.ts +43 -0
- package/dist/runtime/api/models/Version.mjs +33 -0
- package/dist/runtime/api/models/index.d.ts +39 -0
- package/dist/runtime/api/models/index.mjs +39 -0
- package/dist/runtime/api/runtime.d.ts +182 -0
- package/dist/runtime/api/runtime.mjs +281 -0
- package/dist/runtime/composables/mongocampApi.d.ts +14 -0
- package/dist/runtime/composables/mongocampApi.mjs +45 -0
- package/dist/runtime/composables/mongocampAuth.d.ts +8 -0
- package/dist/runtime/composables/mongocampAuth.mjs +28 -0
- package/dist/runtime/composables/mongocampSearch.d.ts +11 -0
- package/dist/runtime/composables/mongocampSearch.mjs +20 -0
- package/dist/runtime/composables/mongocampStorage.d.ts +0 -0
- package/dist/runtime/composables/mongocampStorage.mjs +5 -0
- package/dist/runtime/composables/mongocampUrl.d.ts +1 -0
- package/dist/runtime/composables/mongocampUrl.mjs +5 -0
- package/dist/runtime/composables/mongocampUser.d.ts +3 -0
- package/dist/runtime/composables/mongocampUser.mjs +4 -0
- package/dist/types.d.ts +2 -8
- package/package.json +4 -3
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { BucketInformation, JsonValueBoolean } from '../models';
|
|
14
|
+
export interface ClearBucketRequest {
|
|
15
|
+
bucketName: string;
|
|
16
|
+
}
|
|
17
|
+
export interface DeleteBucketRequest {
|
|
18
|
+
bucketName: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GetBucketRequest {
|
|
21
|
+
bucketName: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class BucketApi extends runtime.BaseAPI {
|
|
27
|
+
/**
|
|
28
|
+
* Delete all Files in Bucket
|
|
29
|
+
* Clear Bucket
|
|
30
|
+
*/
|
|
31
|
+
clearBucketRaw(requestParameters: ClearBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
|
|
32
|
+
/**
|
|
33
|
+
* Delete all Files in Bucket
|
|
34
|
+
* Clear Bucket
|
|
35
|
+
*/
|
|
36
|
+
clearBucket(requestParameters: ClearBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
37
|
+
/**
|
|
38
|
+
* Delete a given Bucket
|
|
39
|
+
* Delete Bucket
|
|
40
|
+
*/
|
|
41
|
+
deleteBucketRaw(requestParameters: DeleteBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
|
|
42
|
+
/**
|
|
43
|
+
* Delete a given Bucket
|
|
44
|
+
* Delete Bucket
|
|
45
|
+
*/
|
|
46
|
+
deleteBucket(requestParameters: DeleteBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
47
|
+
/**
|
|
48
|
+
* All Information about a single Bucket
|
|
49
|
+
* Bucket Information
|
|
50
|
+
*/
|
|
51
|
+
getBucketRaw(requestParameters: GetBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BucketInformation>>;
|
|
52
|
+
/**
|
|
53
|
+
* All Information about a single Bucket
|
|
54
|
+
* Bucket Information
|
|
55
|
+
*/
|
|
56
|
+
getBucket(requestParameters: GetBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BucketInformation>;
|
|
57
|
+
/**
|
|
58
|
+
* List of all Buckets of the default database
|
|
59
|
+
* List of Buckets
|
|
60
|
+
*/
|
|
61
|
+
listBucketsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>>;
|
|
62
|
+
/**
|
|
63
|
+
* List of all Buckets of the default database
|
|
64
|
+
* List of Buckets
|
|
65
|
+
*/
|
|
66
|
+
listBuckets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
67
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import * as runtime from "../runtime.mjs";
|
|
2
|
+
import {
|
|
3
|
+
BucketInformationFromJSON,
|
|
4
|
+
JsonValueBooleanFromJSON
|
|
5
|
+
} from "../models/index.mjs";
|
|
6
|
+
export class BucketApi extends runtime.BaseAPI {
|
|
7
|
+
/**
|
|
8
|
+
* Delete all Files in Bucket
|
|
9
|
+
* Clear Bucket
|
|
10
|
+
*/
|
|
11
|
+
async clearBucketRaw(requestParameters, initOverrides) {
|
|
12
|
+
if (requestParameters.bucketName === null || requestParameters.bucketName === void 0) {
|
|
13
|
+
throw new runtime.RequiredError("bucketName", "Required parameter requestParameters.bucketName was null or undefined when calling clearBucket.");
|
|
14
|
+
}
|
|
15
|
+
const queryParameters = {};
|
|
16
|
+
const headerParameters = {};
|
|
17
|
+
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
18
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
19
|
+
}
|
|
20
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
21
|
+
const token = this.configuration.accessToken;
|
|
22
|
+
const tokenString = await token("httpAuth", []);
|
|
23
|
+
if (tokenString) {
|
|
24
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
28
|
+
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
29
|
+
}
|
|
30
|
+
const response = await this.request({
|
|
31
|
+
path: `/mongodb/buckets/{bucketName}/clear`.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters.bucketName))),
|
|
32
|
+
method: "DELETE",
|
|
33
|
+
headers: headerParameters,
|
|
34
|
+
query: queryParameters
|
|
35
|
+
}, initOverrides);
|
|
36
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Delete all Files in Bucket
|
|
40
|
+
* Clear Bucket
|
|
41
|
+
*/
|
|
42
|
+
async clearBucket(requestParameters, initOverrides) {
|
|
43
|
+
const response = await this.clearBucketRaw(requestParameters, initOverrides);
|
|
44
|
+
return await response.value();
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Delete a given Bucket
|
|
48
|
+
* Delete Bucket
|
|
49
|
+
*/
|
|
50
|
+
async deleteBucketRaw(requestParameters, initOverrides) {
|
|
51
|
+
if (requestParameters.bucketName === null || requestParameters.bucketName === void 0) {
|
|
52
|
+
throw new runtime.RequiredError("bucketName", "Required parameter requestParameters.bucketName was null or undefined when calling deleteBucket.");
|
|
53
|
+
}
|
|
54
|
+
const queryParameters = {};
|
|
55
|
+
const headerParameters = {};
|
|
56
|
+
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
57
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
58
|
+
}
|
|
59
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
60
|
+
const token = this.configuration.accessToken;
|
|
61
|
+
const tokenString = await token("httpAuth", []);
|
|
62
|
+
if (tokenString) {
|
|
63
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
67
|
+
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
68
|
+
}
|
|
69
|
+
const response = await this.request({
|
|
70
|
+
path: `/mongodb/buckets/{bucketName}`.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters.bucketName))),
|
|
71
|
+
method: "DELETE",
|
|
72
|
+
headers: headerParameters,
|
|
73
|
+
query: queryParameters
|
|
74
|
+
}, initOverrides);
|
|
75
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Delete a given Bucket
|
|
79
|
+
* Delete Bucket
|
|
80
|
+
*/
|
|
81
|
+
async deleteBucket(requestParameters, initOverrides) {
|
|
82
|
+
const response = await this.deleteBucketRaw(requestParameters, initOverrides);
|
|
83
|
+
return await response.value();
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* All Information about a single Bucket
|
|
87
|
+
* Bucket Information
|
|
88
|
+
*/
|
|
89
|
+
async getBucketRaw(requestParameters, initOverrides) {
|
|
90
|
+
if (requestParameters.bucketName === null || requestParameters.bucketName === void 0) {
|
|
91
|
+
throw new runtime.RequiredError("bucketName", "Required parameter requestParameters.bucketName was null or undefined when calling getBucket.");
|
|
92
|
+
}
|
|
93
|
+
const queryParameters = {};
|
|
94
|
+
const headerParameters = {};
|
|
95
|
+
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
96
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
97
|
+
}
|
|
98
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
99
|
+
const token = this.configuration.accessToken;
|
|
100
|
+
const tokenString = await token("httpAuth", []);
|
|
101
|
+
if (tokenString) {
|
|
102
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
106
|
+
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
107
|
+
}
|
|
108
|
+
const response = await this.request({
|
|
109
|
+
path: `/mongodb/buckets/{bucketName}`.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters.bucketName))),
|
|
110
|
+
method: "GET",
|
|
111
|
+
headers: headerParameters,
|
|
112
|
+
query: queryParameters
|
|
113
|
+
}, initOverrides);
|
|
114
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BucketInformationFromJSON(jsonValue));
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* All Information about a single Bucket
|
|
118
|
+
* Bucket Information
|
|
119
|
+
*/
|
|
120
|
+
async getBucket(requestParameters, initOverrides) {
|
|
121
|
+
const response = await this.getBucketRaw(requestParameters, initOverrides);
|
|
122
|
+
return await response.value();
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* List of all Buckets of the default database
|
|
126
|
+
* List of Buckets
|
|
127
|
+
*/
|
|
128
|
+
async listBucketsRaw(initOverrides) {
|
|
129
|
+
const queryParameters = {};
|
|
130
|
+
const headerParameters = {};
|
|
131
|
+
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
132
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
133
|
+
}
|
|
134
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
135
|
+
const token = this.configuration.accessToken;
|
|
136
|
+
const tokenString = await token("httpAuth", []);
|
|
137
|
+
if (tokenString) {
|
|
138
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
142
|
+
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
143
|
+
}
|
|
144
|
+
const response = await this.request({
|
|
145
|
+
path: `/mongodb/buckets`,
|
|
146
|
+
method: "GET",
|
|
147
|
+
headers: headerParameters,
|
|
148
|
+
query: queryParameters
|
|
149
|
+
}, initOverrides);
|
|
150
|
+
return new runtime.JSONApiResponse(response);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* List of all Buckets of the default database
|
|
154
|
+
* List of Buckets
|
|
155
|
+
*/
|
|
156
|
+
async listBuckets(initOverrides) {
|
|
157
|
+
const response = await this.listBucketsRaw(initOverrides);
|
|
158
|
+
return await response.value();
|
|
159
|
+
}
|
|
160
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { CollectionStatus, JsonSchema, JsonValueBoolean, MongoAggregateRequest, SchemaAnalysis } from '../models';
|
|
14
|
+
export interface AggregateRequest {
|
|
15
|
+
collectionName: string;
|
|
16
|
+
mongoAggregateRequest: MongoAggregateRequest;
|
|
17
|
+
rowsPerPage?: number;
|
|
18
|
+
page?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface ClearCollectionRequest {
|
|
21
|
+
collectionName: string;
|
|
22
|
+
}
|
|
23
|
+
export interface DeleteCollectionRequest {
|
|
24
|
+
collectionName: string;
|
|
25
|
+
}
|
|
26
|
+
export interface DistinctRequest {
|
|
27
|
+
collectionName: string;
|
|
28
|
+
field: string;
|
|
29
|
+
rowsPerPage?: number;
|
|
30
|
+
page?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface GetCollectionFieldsRequest {
|
|
33
|
+
collectionName: string;
|
|
34
|
+
sampleSize?: number;
|
|
35
|
+
}
|
|
36
|
+
export interface GetCollectionInformationRequest {
|
|
37
|
+
collectionName: string;
|
|
38
|
+
includeDetails?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface GetJsonSchemaRequest {
|
|
41
|
+
collectionName: string;
|
|
42
|
+
sampleSize?: number;
|
|
43
|
+
deepth?: number;
|
|
44
|
+
}
|
|
45
|
+
export interface GetSchemaAnalysisRequest {
|
|
46
|
+
collectionName: string;
|
|
47
|
+
sampleSize?: number;
|
|
48
|
+
deepth?: number;
|
|
49
|
+
}
|
|
50
|
+
export interface ListCollectionsByDatabaseRequest {
|
|
51
|
+
databaseName: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
export declare class CollectionApi extends runtime.BaseAPI {
|
|
57
|
+
/**
|
|
58
|
+
* Aggregate in a given Collection
|
|
59
|
+
* Aggregate in Collection
|
|
60
|
+
*/
|
|
61
|
+
aggregateRaw(requestParameters: AggregateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
|
|
62
|
+
[key: string]: string;
|
|
63
|
+
}>>>;
|
|
64
|
+
/**
|
|
65
|
+
* Aggregate in a given Collection
|
|
66
|
+
* Aggregate in Collection
|
|
67
|
+
*/
|
|
68
|
+
aggregate(requestParameters: AggregateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
|
|
69
|
+
[key: string]: string;
|
|
70
|
+
}>>;
|
|
71
|
+
/**
|
|
72
|
+
* Delete all Document in Collection
|
|
73
|
+
* Clear Collection
|
|
74
|
+
*/
|
|
75
|
+
clearCollectionRaw(requestParameters: ClearCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
|
|
76
|
+
/**
|
|
77
|
+
* Delete all Document in Collection
|
|
78
|
+
* Clear Collection
|
|
79
|
+
*/
|
|
80
|
+
clearCollection(requestParameters: ClearCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
81
|
+
/**
|
|
82
|
+
* Delete a given Collection
|
|
83
|
+
* Delete Collection
|
|
84
|
+
*/
|
|
85
|
+
deleteCollectionRaw(requestParameters: DeleteCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
|
|
86
|
+
/**
|
|
87
|
+
* Delete a given Collection
|
|
88
|
+
* Delete Collection
|
|
89
|
+
*/
|
|
90
|
+
deleteCollection(requestParameters: DeleteCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
91
|
+
/**
|
|
92
|
+
* Distinct for Field in a given Collection
|
|
93
|
+
* Distinct in Collection
|
|
94
|
+
*/
|
|
95
|
+
distinctRaw(requestParameters: DistinctRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>>;
|
|
96
|
+
/**
|
|
97
|
+
* Distinct for Field in a given Collection
|
|
98
|
+
* Distinct in Collection
|
|
99
|
+
*/
|
|
100
|
+
distinct(requestParameters: DistinctRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
101
|
+
/**
|
|
102
|
+
* List the Fields in a given collection
|
|
103
|
+
* Collection Fields
|
|
104
|
+
*/
|
|
105
|
+
getCollectionFieldsRaw(requestParameters: GetCollectionFieldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>>;
|
|
106
|
+
/**
|
|
107
|
+
* List the Fields in a given collection
|
|
108
|
+
* Collection Fields
|
|
109
|
+
*/
|
|
110
|
+
getCollectionFields(requestParameters: GetCollectionFieldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
111
|
+
/**
|
|
112
|
+
* All Information about a single Collection
|
|
113
|
+
* Collection Information
|
|
114
|
+
*/
|
|
115
|
+
getCollectionInformationRaw(requestParameters: GetCollectionInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectionStatus>>;
|
|
116
|
+
/**
|
|
117
|
+
* All Information about a single Collection
|
|
118
|
+
* Collection Information
|
|
119
|
+
*/
|
|
120
|
+
getCollectionInformation(requestParameters: GetCollectionInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectionStatus>;
|
|
121
|
+
/**
|
|
122
|
+
* List the Fields in a given collection
|
|
123
|
+
* Collection Fields
|
|
124
|
+
*/
|
|
125
|
+
getJsonSchemaRaw(requestParameters: GetJsonSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonSchema>>;
|
|
126
|
+
/**
|
|
127
|
+
* List the Fields in a given collection
|
|
128
|
+
* Collection Fields
|
|
129
|
+
*/
|
|
130
|
+
getJsonSchema(requestParameters: GetJsonSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonSchema>;
|
|
131
|
+
/**
|
|
132
|
+
* List the Fields in a given collection
|
|
133
|
+
* Collection Fields
|
|
134
|
+
*/
|
|
135
|
+
getSchemaAnalysisRaw(requestParameters: GetSchemaAnalysisRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SchemaAnalysis>>;
|
|
136
|
+
/**
|
|
137
|
+
* List the Fields in a given collection
|
|
138
|
+
* Collection Fields
|
|
139
|
+
*/
|
|
140
|
+
getSchemaAnalysis(requestParameters: GetSchemaAnalysisRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SchemaAnalysis>;
|
|
141
|
+
/**
|
|
142
|
+
* List of all Collections of the default database
|
|
143
|
+
* List of Collections
|
|
144
|
+
*/
|
|
145
|
+
listCollectionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>>;
|
|
146
|
+
/**
|
|
147
|
+
* List of all Collections of the default database
|
|
148
|
+
* List of Collections
|
|
149
|
+
*/
|
|
150
|
+
listCollections(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
151
|
+
/**
|
|
152
|
+
* List of all Collections of the given database
|
|
153
|
+
* List of Collections
|
|
154
|
+
*/
|
|
155
|
+
listCollectionsByDatabaseRaw(requestParameters: ListCollectionsByDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>>;
|
|
156
|
+
/**
|
|
157
|
+
* List of all Collections of the given database
|
|
158
|
+
* List of Collections
|
|
159
|
+
*/
|
|
160
|
+
listCollectionsByDatabase(requestParameters: ListCollectionsByDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
161
|
+
}
|