@sfxcode/nuxt-mongocamp-server 1.4.0 → 1.4.2
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.mts +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -3
- package/dist/runtime/api/.openapi-generator/VERSION +1 -1
- package/dist/runtime/api/apis/AdminApi.d.ts +48 -0
- package/dist/runtime/api/apis/AdminApi.js +144 -60
- package/dist/runtime/api/apis/ApplicationApi.d.ts +20 -0
- package/dist/runtime/api/apis/ApplicationApi.js +60 -25
- package/dist/runtime/api/apis/AuthApi.d.ts +32 -0
- package/dist/runtime/api/apis/AuthApi.js +96 -40
- package/dist/runtime/api/apis/BucketApi.d.ts +16 -0
- package/dist/runtime/api/apis/BucketApi.js +48 -20
- package/dist/runtime/api/apis/CollectionApi.d.ts +40 -0
- package/dist/runtime/api/apis/CollectionApi.js +120 -50
- package/dist/runtime/api/apis/DatabaseApi.d.ts +20 -0
- package/dist/runtime/api/apis/DatabaseApi.js +60 -25
- package/dist/runtime/api/apis/DocumentApi.d.ts +40 -0
- package/dist/runtime/api/apis/DocumentApi.js +120 -50
- package/dist/runtime/api/apis/FileApi.d.ts +28 -0
- package/dist/runtime/api/apis/FileApi.js +84 -35
- package/dist/runtime/api/apis/IndexApi.d.ts +32 -0
- package/dist/runtime/api/apis/IndexApi.js +96 -40
- package/dist/runtime/api/apis/InformationApi.d.ts +4 -0
- package/dist/runtime/api/apis/InformationApi.js +12 -5
- package/dist/runtime/api/apis/JobsApi.d.ts +24 -0
- package/dist/runtime/api/apis/JobsApi.js +72 -30
- package/dist/runtime/api/runtime.js +12 -0
- package/dist/runtime/server/composables/mongocampServerApi.js +0 -1
- package/package.json +13 -13
|
@@ -5,10 +5,9 @@ import {
|
|
|
5
5
|
} from "../models/index.js";
|
|
6
6
|
export class BucketApi extends runtime.BaseAPI {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
* Clear Bucket
|
|
8
|
+
* Creates request options for clearBucket without sending the request
|
|
10
9
|
*/
|
|
11
|
-
async
|
|
10
|
+
async clearBucketRequestOpts(requestParameters) {
|
|
12
11
|
if (requestParameters["bucketName"] == null) {
|
|
13
12
|
throw new runtime.RequiredError(
|
|
14
13
|
"bucketName",
|
|
@@ -32,12 +31,20 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
32
31
|
}
|
|
33
32
|
let urlPath = `/mongodb/buckets/{bucketName}/clear`;
|
|
34
33
|
urlPath = urlPath.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters["bucketName"])));
|
|
35
|
-
|
|
34
|
+
return {
|
|
36
35
|
path: urlPath,
|
|
37
36
|
method: "DELETE",
|
|
38
37
|
headers: headerParameters,
|
|
39
38
|
query: queryParameters
|
|
40
|
-
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Delete all Files in Bucket
|
|
43
|
+
* Clear Bucket
|
|
44
|
+
*/
|
|
45
|
+
async clearBucketRaw(requestParameters, initOverrides) {
|
|
46
|
+
const requestOptions = await this.clearBucketRequestOpts(requestParameters);
|
|
47
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
41
48
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
42
49
|
}
|
|
43
50
|
/**
|
|
@@ -49,10 +56,9 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
49
56
|
return await response.value();
|
|
50
57
|
}
|
|
51
58
|
/**
|
|
52
|
-
*
|
|
53
|
-
* Delete Bucket
|
|
59
|
+
* Creates request options for deleteBucket without sending the request
|
|
54
60
|
*/
|
|
55
|
-
async
|
|
61
|
+
async deleteBucketRequestOpts(requestParameters) {
|
|
56
62
|
if (requestParameters["bucketName"] == null) {
|
|
57
63
|
throw new runtime.RequiredError(
|
|
58
64
|
"bucketName",
|
|
@@ -76,12 +82,20 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
76
82
|
}
|
|
77
83
|
let urlPath = `/mongodb/buckets/{bucketName}`;
|
|
78
84
|
urlPath = urlPath.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters["bucketName"])));
|
|
79
|
-
|
|
85
|
+
return {
|
|
80
86
|
path: urlPath,
|
|
81
87
|
method: "DELETE",
|
|
82
88
|
headers: headerParameters,
|
|
83
89
|
query: queryParameters
|
|
84
|
-
}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Delete a given Bucket
|
|
94
|
+
* Delete Bucket
|
|
95
|
+
*/
|
|
96
|
+
async deleteBucketRaw(requestParameters, initOverrides) {
|
|
97
|
+
const requestOptions = await this.deleteBucketRequestOpts(requestParameters);
|
|
98
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
85
99
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
86
100
|
}
|
|
87
101
|
/**
|
|
@@ -93,10 +107,9 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
93
107
|
return await response.value();
|
|
94
108
|
}
|
|
95
109
|
/**
|
|
96
|
-
*
|
|
97
|
-
* Bucket Information
|
|
110
|
+
* Creates request options for getBucket without sending the request
|
|
98
111
|
*/
|
|
99
|
-
async
|
|
112
|
+
async getBucketRequestOpts(requestParameters) {
|
|
100
113
|
if (requestParameters["bucketName"] == null) {
|
|
101
114
|
throw new runtime.RequiredError(
|
|
102
115
|
"bucketName",
|
|
@@ -120,12 +133,20 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
120
133
|
}
|
|
121
134
|
let urlPath = `/mongodb/buckets/{bucketName}`;
|
|
122
135
|
urlPath = urlPath.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters["bucketName"])));
|
|
123
|
-
|
|
136
|
+
return {
|
|
124
137
|
path: urlPath,
|
|
125
138
|
method: "GET",
|
|
126
139
|
headers: headerParameters,
|
|
127
140
|
query: queryParameters
|
|
128
|
-
}
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* All Information about a single Bucket
|
|
145
|
+
* Bucket Information
|
|
146
|
+
*/
|
|
147
|
+
async getBucketRaw(requestParameters, initOverrides) {
|
|
148
|
+
const requestOptions = await this.getBucketRequestOpts(requestParameters);
|
|
149
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
129
150
|
return new runtime.JSONApiResponse(response, (jsonValue) => BucketInformationFromJSON(jsonValue));
|
|
130
151
|
}
|
|
131
152
|
/**
|
|
@@ -137,10 +158,9 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
137
158
|
return await response.value();
|
|
138
159
|
}
|
|
139
160
|
/**
|
|
140
|
-
*
|
|
141
|
-
* List of Buckets
|
|
161
|
+
* Creates request options for listBuckets without sending the request
|
|
142
162
|
*/
|
|
143
|
-
async
|
|
163
|
+
async listBucketsRequestOpts() {
|
|
144
164
|
const queryParameters = {};
|
|
145
165
|
const headerParameters = {};
|
|
146
166
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -157,12 +177,20 @@ export class BucketApi extends runtime.BaseAPI {
|
|
|
157
177
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
158
178
|
}
|
|
159
179
|
let urlPath = `/mongodb/buckets`;
|
|
160
|
-
|
|
180
|
+
return {
|
|
161
181
|
path: urlPath,
|
|
162
182
|
method: "GET",
|
|
163
183
|
headers: headerParameters,
|
|
164
184
|
query: queryParameters
|
|
165
|
-
}
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* List of all Buckets of the default database
|
|
189
|
+
* List of Buckets
|
|
190
|
+
*/
|
|
191
|
+
async listBucketsRaw(initOverrides) {
|
|
192
|
+
const requestOptions = await this.listBucketsRequestOpts();
|
|
193
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
166
194
|
return new runtime.JSONApiResponse(response);
|
|
167
195
|
}
|
|
168
196
|
/**
|
|
@@ -54,6 +54,10 @@ export interface ListCollectionsByDatabaseRequest {
|
|
|
54
54
|
*
|
|
55
55
|
*/
|
|
56
56
|
export declare class CollectionApi extends runtime.BaseAPI {
|
|
57
|
+
/**
|
|
58
|
+
* Creates request options for aggregate without sending the request
|
|
59
|
+
*/
|
|
60
|
+
aggregateRequestOpts(requestParameters: AggregateRequest): Promise<runtime.RequestOpts>;
|
|
57
61
|
/**
|
|
58
62
|
* Aggregate in a given Collection
|
|
59
63
|
* Aggregate in Collection
|
|
@@ -68,6 +72,10 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
68
72
|
aggregate(requestParameters: AggregateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
|
|
69
73
|
[key: string]: string;
|
|
70
74
|
}>>;
|
|
75
|
+
/**
|
|
76
|
+
* Creates request options for clearCollection without sending the request
|
|
77
|
+
*/
|
|
78
|
+
clearCollectionRequestOpts(requestParameters: ClearCollectionRequest): Promise<runtime.RequestOpts>;
|
|
71
79
|
/**
|
|
72
80
|
* Delete all Document in Collection
|
|
73
81
|
* Clear Collection
|
|
@@ -78,6 +86,10 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
78
86
|
* Clear Collection
|
|
79
87
|
*/
|
|
80
88
|
clearCollection(requestParameters: ClearCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
89
|
+
/**
|
|
90
|
+
* Creates request options for deleteCollection without sending the request
|
|
91
|
+
*/
|
|
92
|
+
deleteCollectionRequestOpts(requestParameters: DeleteCollectionRequest): Promise<runtime.RequestOpts>;
|
|
81
93
|
/**
|
|
82
94
|
* Delete a given Collection
|
|
83
95
|
* Delete Collection
|
|
@@ -88,6 +100,10 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
88
100
|
* Delete Collection
|
|
89
101
|
*/
|
|
90
102
|
deleteCollection(requestParameters: DeleteCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
103
|
+
/**
|
|
104
|
+
* Creates request options for distinct without sending the request
|
|
105
|
+
*/
|
|
106
|
+
distinctRequestOpts(requestParameters: DistinctRequest): Promise<runtime.RequestOpts>;
|
|
91
107
|
/**
|
|
92
108
|
* Distinct for Field in a given Collection
|
|
93
109
|
* Distinct in Collection
|
|
@@ -98,6 +114,10 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
98
114
|
* Distinct in Collection
|
|
99
115
|
*/
|
|
100
116
|
distinct(requestParameters: DistinctRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
117
|
+
/**
|
|
118
|
+
* Creates request options for getCollectionFields without sending the request
|
|
119
|
+
*/
|
|
120
|
+
getCollectionFieldsRequestOpts(requestParameters: GetCollectionFieldsRequest): Promise<runtime.RequestOpts>;
|
|
101
121
|
/**
|
|
102
122
|
* List the Fields in a given collection
|
|
103
123
|
* Collection Fields
|
|
@@ -108,6 +128,10 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
108
128
|
* Collection Fields
|
|
109
129
|
*/
|
|
110
130
|
getCollectionFields(requestParameters: GetCollectionFieldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
131
|
+
/**
|
|
132
|
+
* Creates request options for getCollectionInformation without sending the request
|
|
133
|
+
*/
|
|
134
|
+
getCollectionInformationRequestOpts(requestParameters: GetCollectionInformationRequest): Promise<runtime.RequestOpts>;
|
|
111
135
|
/**
|
|
112
136
|
* All Information about a single Collection
|
|
113
137
|
* Collection Information
|
|
@@ -118,6 +142,10 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
118
142
|
* Collection Information
|
|
119
143
|
*/
|
|
120
144
|
getCollectionInformation(requestParameters: GetCollectionInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectionStatus>;
|
|
145
|
+
/**
|
|
146
|
+
* Creates request options for getJsonSchema without sending the request
|
|
147
|
+
*/
|
|
148
|
+
getJsonSchemaRequestOpts(requestParameters: GetJsonSchemaRequest): Promise<runtime.RequestOpts>;
|
|
121
149
|
/**
|
|
122
150
|
* List the Fields in a given collection
|
|
123
151
|
* Collection Fields
|
|
@@ -128,6 +156,10 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
128
156
|
* Collection Fields
|
|
129
157
|
*/
|
|
130
158
|
getJsonSchema(requestParameters: GetJsonSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonSchema>;
|
|
159
|
+
/**
|
|
160
|
+
* Creates request options for getSchemaAnalysis without sending the request
|
|
161
|
+
*/
|
|
162
|
+
getSchemaAnalysisRequestOpts(requestParameters: GetSchemaAnalysisRequest): Promise<runtime.RequestOpts>;
|
|
131
163
|
/**
|
|
132
164
|
* List the Fields in a given collection
|
|
133
165
|
* Collection Fields
|
|
@@ -138,6 +170,10 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
138
170
|
* Collection Fields
|
|
139
171
|
*/
|
|
140
172
|
getSchemaAnalysis(requestParameters: GetSchemaAnalysisRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SchemaAnalysis>;
|
|
173
|
+
/**
|
|
174
|
+
* Creates request options for listCollections without sending the request
|
|
175
|
+
*/
|
|
176
|
+
listCollectionsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
141
177
|
/**
|
|
142
178
|
* List of all Collections of the default database
|
|
143
179
|
* List of Collections
|
|
@@ -148,6 +184,10 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
148
184
|
* List of Collections
|
|
149
185
|
*/
|
|
150
186
|
listCollections(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
187
|
+
/**
|
|
188
|
+
* Creates request options for listCollectionsByDatabase without sending the request
|
|
189
|
+
*/
|
|
190
|
+
listCollectionsByDatabaseRequestOpts(requestParameters: ListCollectionsByDatabaseRequest): Promise<runtime.RequestOpts>;
|
|
151
191
|
/**
|
|
152
192
|
* List of all Collections of the given database
|
|
153
193
|
* List of Collections
|
|
@@ -8,10 +8,9 @@ import {
|
|
|
8
8
|
} from "../models/index.js";
|
|
9
9
|
export class CollectionApi extends runtime.BaseAPI {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* Aggregate in Collection
|
|
11
|
+
* Creates request options for aggregate without sending the request
|
|
13
12
|
*/
|
|
14
|
-
async
|
|
13
|
+
async aggregateRequestOpts(requestParameters) {
|
|
15
14
|
if (requestParameters["collectionName"] == null) {
|
|
16
15
|
throw new runtime.RequiredError(
|
|
17
16
|
"collectionName",
|
|
@@ -48,13 +47,21 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
48
47
|
}
|
|
49
48
|
let urlPath = `/mongodb/collections/{collectionName}/aggregate`;
|
|
50
49
|
urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
|
|
51
|
-
|
|
50
|
+
return {
|
|
52
51
|
path: urlPath,
|
|
53
52
|
method: "POST",
|
|
54
53
|
headers: headerParameters,
|
|
55
54
|
query: queryParameters,
|
|
56
55
|
body: MongoAggregateRequestToJSON(requestParameters["mongoAggregateRequest"])
|
|
57
|
-
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Aggregate in a given Collection
|
|
60
|
+
* Aggregate in Collection
|
|
61
|
+
*/
|
|
62
|
+
async aggregateRaw(requestParameters, initOverrides) {
|
|
63
|
+
const requestOptions = await this.aggregateRequestOpts(requestParameters);
|
|
64
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
58
65
|
return new runtime.JSONApiResponse(response);
|
|
59
66
|
}
|
|
60
67
|
/**
|
|
@@ -66,10 +73,9 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
66
73
|
return await response.value();
|
|
67
74
|
}
|
|
68
75
|
/**
|
|
69
|
-
*
|
|
70
|
-
* Clear Collection
|
|
76
|
+
* Creates request options for clearCollection without sending the request
|
|
71
77
|
*/
|
|
72
|
-
async
|
|
78
|
+
async clearCollectionRequestOpts(requestParameters) {
|
|
73
79
|
if (requestParameters["collectionName"] == null) {
|
|
74
80
|
throw new runtime.RequiredError(
|
|
75
81
|
"collectionName",
|
|
@@ -93,12 +99,20 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
93
99
|
}
|
|
94
100
|
let urlPath = `/mongodb/collections/{collectionName}/clear`;
|
|
95
101
|
urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
|
|
96
|
-
|
|
102
|
+
return {
|
|
97
103
|
path: urlPath,
|
|
98
104
|
method: "DELETE",
|
|
99
105
|
headers: headerParameters,
|
|
100
106
|
query: queryParameters
|
|
101
|
-
}
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Delete all Document in Collection
|
|
111
|
+
* Clear Collection
|
|
112
|
+
*/
|
|
113
|
+
async clearCollectionRaw(requestParameters, initOverrides) {
|
|
114
|
+
const requestOptions = await this.clearCollectionRequestOpts(requestParameters);
|
|
115
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
102
116
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
103
117
|
}
|
|
104
118
|
/**
|
|
@@ -110,10 +124,9 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
110
124
|
return await response.value();
|
|
111
125
|
}
|
|
112
126
|
/**
|
|
113
|
-
*
|
|
114
|
-
* Delete Collection
|
|
127
|
+
* Creates request options for deleteCollection without sending the request
|
|
115
128
|
*/
|
|
116
|
-
async
|
|
129
|
+
async deleteCollectionRequestOpts(requestParameters) {
|
|
117
130
|
if (requestParameters["collectionName"] == null) {
|
|
118
131
|
throw new runtime.RequiredError(
|
|
119
132
|
"collectionName",
|
|
@@ -137,12 +150,20 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
137
150
|
}
|
|
138
151
|
let urlPath = `/mongodb/collections/{collectionName}`;
|
|
139
152
|
urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
|
|
140
|
-
|
|
153
|
+
return {
|
|
141
154
|
path: urlPath,
|
|
142
155
|
method: "DELETE",
|
|
143
156
|
headers: headerParameters,
|
|
144
157
|
query: queryParameters
|
|
145
|
-
}
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Delete a given Collection
|
|
162
|
+
* Delete Collection
|
|
163
|
+
*/
|
|
164
|
+
async deleteCollectionRaw(requestParameters, initOverrides) {
|
|
165
|
+
const requestOptions = await this.deleteCollectionRequestOpts(requestParameters);
|
|
166
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
146
167
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
147
168
|
}
|
|
148
169
|
/**
|
|
@@ -154,10 +175,9 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
154
175
|
return await response.value();
|
|
155
176
|
}
|
|
156
177
|
/**
|
|
157
|
-
*
|
|
158
|
-
* Distinct in Collection
|
|
178
|
+
* Creates request options for distinct without sending the request
|
|
159
179
|
*/
|
|
160
|
-
async
|
|
180
|
+
async distinctRequestOpts(requestParameters) {
|
|
161
181
|
if (requestParameters["collectionName"] == null) {
|
|
162
182
|
throw new runtime.RequiredError(
|
|
163
183
|
"collectionName",
|
|
@@ -194,12 +214,20 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
194
214
|
let urlPath = `/mongodb/collections/{collectionName}/distinct/{field}`;
|
|
195
215
|
urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
|
|
196
216
|
urlPath = urlPath.replace(`{${"field"}}`, encodeURIComponent(String(requestParameters["field"])));
|
|
197
|
-
|
|
217
|
+
return {
|
|
198
218
|
path: urlPath,
|
|
199
219
|
method: "POST",
|
|
200
220
|
headers: headerParameters,
|
|
201
221
|
query: queryParameters
|
|
202
|
-
}
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Distinct for Field in a given Collection
|
|
226
|
+
* Distinct in Collection
|
|
227
|
+
*/
|
|
228
|
+
async distinctRaw(requestParameters, initOverrides) {
|
|
229
|
+
const requestOptions = await this.distinctRequestOpts(requestParameters);
|
|
230
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
203
231
|
return new runtime.JSONApiResponse(response);
|
|
204
232
|
}
|
|
205
233
|
/**
|
|
@@ -211,10 +239,9 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
211
239
|
return await response.value();
|
|
212
240
|
}
|
|
213
241
|
/**
|
|
214
|
-
*
|
|
215
|
-
* Collection Fields
|
|
242
|
+
* Creates request options for getCollectionFields without sending the request
|
|
216
243
|
*/
|
|
217
|
-
async
|
|
244
|
+
async getCollectionFieldsRequestOpts(requestParameters) {
|
|
218
245
|
if (requestParameters["collectionName"] == null) {
|
|
219
246
|
throw new runtime.RequiredError(
|
|
220
247
|
"collectionName",
|
|
@@ -241,12 +268,20 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
241
268
|
}
|
|
242
269
|
let urlPath = `/mongodb/collections/{collectionName}/fields`;
|
|
243
270
|
urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
|
|
244
|
-
|
|
271
|
+
return {
|
|
245
272
|
path: urlPath,
|
|
246
273
|
method: "GET",
|
|
247
274
|
headers: headerParameters,
|
|
248
275
|
query: queryParameters
|
|
249
|
-
}
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* List the Fields in a given collection
|
|
280
|
+
* Collection Fields
|
|
281
|
+
*/
|
|
282
|
+
async getCollectionFieldsRaw(requestParameters, initOverrides) {
|
|
283
|
+
const requestOptions = await this.getCollectionFieldsRequestOpts(requestParameters);
|
|
284
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
250
285
|
return new runtime.JSONApiResponse(response);
|
|
251
286
|
}
|
|
252
287
|
/**
|
|
@@ -258,10 +293,9 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
258
293
|
return await response.value();
|
|
259
294
|
}
|
|
260
295
|
/**
|
|
261
|
-
*
|
|
262
|
-
* Collection Information
|
|
296
|
+
* Creates request options for getCollectionInformation without sending the request
|
|
263
297
|
*/
|
|
264
|
-
async
|
|
298
|
+
async getCollectionInformationRequestOpts(requestParameters) {
|
|
265
299
|
if (requestParameters["collectionName"] == null) {
|
|
266
300
|
throw new runtime.RequiredError(
|
|
267
301
|
"collectionName",
|
|
@@ -288,12 +322,20 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
288
322
|
}
|
|
289
323
|
let urlPath = `/mongodb/collections/{collectionName}`;
|
|
290
324
|
urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
|
|
291
|
-
|
|
325
|
+
return {
|
|
292
326
|
path: urlPath,
|
|
293
327
|
method: "GET",
|
|
294
328
|
headers: headerParameters,
|
|
295
329
|
query: queryParameters
|
|
296
|
-
}
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* All Information about a single Collection
|
|
334
|
+
* Collection Information
|
|
335
|
+
*/
|
|
336
|
+
async getCollectionInformationRaw(requestParameters, initOverrides) {
|
|
337
|
+
const requestOptions = await this.getCollectionInformationRequestOpts(requestParameters);
|
|
338
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
297
339
|
return new runtime.JSONApiResponse(response, (jsonValue) => CollectionStatusFromJSON(jsonValue));
|
|
298
340
|
}
|
|
299
341
|
/**
|
|
@@ -305,10 +347,9 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
305
347
|
return await response.value();
|
|
306
348
|
}
|
|
307
349
|
/**
|
|
308
|
-
*
|
|
309
|
-
* Collection Fields
|
|
350
|
+
* Creates request options for getJsonSchema without sending the request
|
|
310
351
|
*/
|
|
311
|
-
async
|
|
352
|
+
async getJsonSchemaRequestOpts(requestParameters) {
|
|
312
353
|
if (requestParameters["collectionName"] == null) {
|
|
313
354
|
throw new runtime.RequiredError(
|
|
314
355
|
"collectionName",
|
|
@@ -338,12 +379,20 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
338
379
|
}
|
|
339
380
|
let urlPath = `/mongodb/collections/{collectionName}/schema`;
|
|
340
381
|
urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
|
|
341
|
-
|
|
382
|
+
return {
|
|
342
383
|
path: urlPath,
|
|
343
384
|
method: "GET",
|
|
344
385
|
headers: headerParameters,
|
|
345
386
|
query: queryParameters
|
|
346
|
-
}
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* List the Fields in a given collection
|
|
391
|
+
* Collection Fields
|
|
392
|
+
*/
|
|
393
|
+
async getJsonSchemaRaw(requestParameters, initOverrides) {
|
|
394
|
+
const requestOptions = await this.getJsonSchemaRequestOpts(requestParameters);
|
|
395
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
347
396
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonSchemaFromJSON(jsonValue));
|
|
348
397
|
}
|
|
349
398
|
/**
|
|
@@ -355,10 +404,9 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
355
404
|
return await response.value();
|
|
356
405
|
}
|
|
357
406
|
/**
|
|
358
|
-
*
|
|
359
|
-
* Collection Fields
|
|
407
|
+
* Creates request options for getSchemaAnalysis without sending the request
|
|
360
408
|
*/
|
|
361
|
-
async
|
|
409
|
+
async getSchemaAnalysisRequestOpts(requestParameters) {
|
|
362
410
|
if (requestParameters["collectionName"] == null) {
|
|
363
411
|
throw new runtime.RequiredError(
|
|
364
412
|
"collectionName",
|
|
@@ -388,12 +436,20 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
388
436
|
}
|
|
389
437
|
let urlPath = `/mongodb/collections/{collectionName}/schema/analysis`;
|
|
390
438
|
urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
|
|
391
|
-
|
|
439
|
+
return {
|
|
392
440
|
path: urlPath,
|
|
393
441
|
method: "GET",
|
|
394
442
|
headers: headerParameters,
|
|
395
443
|
query: queryParameters
|
|
396
|
-
}
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* List the Fields in a given collection
|
|
448
|
+
* Collection Fields
|
|
449
|
+
*/
|
|
450
|
+
async getSchemaAnalysisRaw(requestParameters, initOverrides) {
|
|
451
|
+
const requestOptions = await this.getSchemaAnalysisRequestOpts(requestParameters);
|
|
452
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
397
453
|
return new runtime.JSONApiResponse(response, (jsonValue) => SchemaAnalysisFromJSON(jsonValue));
|
|
398
454
|
}
|
|
399
455
|
/**
|
|
@@ -405,10 +461,9 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
405
461
|
return await response.value();
|
|
406
462
|
}
|
|
407
463
|
/**
|
|
408
|
-
*
|
|
409
|
-
* List of Collections
|
|
464
|
+
* Creates request options for listCollections without sending the request
|
|
410
465
|
*/
|
|
411
|
-
async
|
|
466
|
+
async listCollectionsRequestOpts() {
|
|
412
467
|
const queryParameters = {};
|
|
413
468
|
const headerParameters = {};
|
|
414
469
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -425,12 +480,20 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
425
480
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
426
481
|
}
|
|
427
482
|
let urlPath = `/mongodb/collections`;
|
|
428
|
-
|
|
483
|
+
return {
|
|
429
484
|
path: urlPath,
|
|
430
485
|
method: "GET",
|
|
431
486
|
headers: headerParameters,
|
|
432
487
|
query: queryParameters
|
|
433
|
-
}
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* List of all Collections of the default database
|
|
492
|
+
* List of Collections
|
|
493
|
+
*/
|
|
494
|
+
async listCollectionsRaw(initOverrides) {
|
|
495
|
+
const requestOptions = await this.listCollectionsRequestOpts();
|
|
496
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
434
497
|
return new runtime.JSONApiResponse(response);
|
|
435
498
|
}
|
|
436
499
|
/**
|
|
@@ -442,10 +505,9 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
442
505
|
return await response.value();
|
|
443
506
|
}
|
|
444
507
|
/**
|
|
445
|
-
*
|
|
446
|
-
* List of Collections
|
|
508
|
+
* Creates request options for listCollectionsByDatabase without sending the request
|
|
447
509
|
*/
|
|
448
|
-
async
|
|
510
|
+
async listCollectionsByDatabaseRequestOpts(requestParameters) {
|
|
449
511
|
if (requestParameters["databaseName"] == null) {
|
|
450
512
|
throw new runtime.RequiredError(
|
|
451
513
|
"databaseName",
|
|
@@ -469,12 +531,20 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
469
531
|
}
|
|
470
532
|
let urlPath = `/mongodb/databases/{databaseName}/collections`;
|
|
471
533
|
urlPath = urlPath.replace(`{${"databaseName"}}`, encodeURIComponent(String(requestParameters["databaseName"])));
|
|
472
|
-
|
|
534
|
+
return {
|
|
473
535
|
path: urlPath,
|
|
474
536
|
method: "GET",
|
|
475
537
|
headers: headerParameters,
|
|
476
538
|
query: queryParameters
|
|
477
|
-
}
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* List of all Collections of the given database
|
|
543
|
+
* List of Collections
|
|
544
|
+
*/
|
|
545
|
+
async listCollectionsByDatabaseRaw(requestParameters, initOverrides) {
|
|
546
|
+
const requestOptions = await this.listCollectionsByDatabaseRequestOpts(requestParameters);
|
|
547
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
478
548
|
return new runtime.JSONApiResponse(response);
|
|
479
549
|
}
|
|
480
550
|
/**
|
|
@@ -24,6 +24,10 @@ export interface ListCollectionsByDatabaseRequest {
|
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class DatabaseApi extends runtime.BaseAPI {
|
|
27
|
+
/**
|
|
28
|
+
* Creates request options for databaseInfos without sending the request
|
|
29
|
+
*/
|
|
30
|
+
databaseInfosRequestOpts(): Promise<runtime.RequestOpts>;
|
|
27
31
|
/**
|
|
28
32
|
* List of all Databases Infos
|
|
29
33
|
* List of Database Infos
|
|
@@ -34,6 +38,10 @@ export declare class DatabaseApi extends runtime.BaseAPI {
|
|
|
34
38
|
* List of Database Infos
|
|
35
39
|
*/
|
|
36
40
|
databaseInfos(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DatabaseInfo>>;
|
|
41
|
+
/**
|
|
42
|
+
* Creates request options for deleteDatabase without sending the request
|
|
43
|
+
*/
|
|
44
|
+
deleteDatabaseRequestOpts(requestParameters: DeleteDatabaseRequest): Promise<runtime.RequestOpts>;
|
|
37
45
|
/**
|
|
38
46
|
* Delete given Database
|
|
39
47
|
* Delete Database
|
|
@@ -44,6 +52,10 @@ export declare class DatabaseApi extends runtime.BaseAPI {
|
|
|
44
52
|
* Delete Database
|
|
45
53
|
*/
|
|
46
54
|
deleteDatabase(requestParameters: DeleteDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
55
|
+
/**
|
|
56
|
+
* Creates request options for getDatabaseInfo without sending the request
|
|
57
|
+
*/
|
|
58
|
+
getDatabaseInfoRequestOpts(requestParameters: GetDatabaseInfoRequest): Promise<runtime.RequestOpts>;
|
|
47
59
|
/**
|
|
48
60
|
* All Information about given Database
|
|
49
61
|
* Database Infos of selected Database
|
|
@@ -54,6 +66,10 @@ export declare class DatabaseApi extends runtime.BaseAPI {
|
|
|
54
66
|
* Database Infos of selected Database
|
|
55
67
|
*/
|
|
56
68
|
getDatabaseInfo(requestParameters: GetDatabaseInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DatabaseInfo>;
|
|
69
|
+
/**
|
|
70
|
+
* Creates request options for listCollectionsByDatabase without sending the request
|
|
71
|
+
*/
|
|
72
|
+
listCollectionsByDatabaseRequestOpts(requestParameters: ListCollectionsByDatabaseRequest): Promise<runtime.RequestOpts>;
|
|
57
73
|
/**
|
|
58
74
|
* List of all Collections of the given database
|
|
59
75
|
* List of Collections
|
|
@@ -64,6 +80,10 @@ export declare class DatabaseApi extends runtime.BaseAPI {
|
|
|
64
80
|
* List of Collections
|
|
65
81
|
*/
|
|
66
82
|
listCollectionsByDatabase(requestParameters: ListCollectionsByDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
83
|
+
/**
|
|
84
|
+
* Creates request options for listDatabases without sending the request
|
|
85
|
+
*/
|
|
86
|
+
listDatabasesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
67
87
|
/**
|
|
68
88
|
* List of all Databases
|
|
69
89
|
* List of Databases
|