@sfxcode/nuxt-mongocamp-server 1.0.2 → 1.0.3
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/package.json +9 -9
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -9
- package/dist/module.json +0 -8
- package/dist/module.mjs +0 -555
- package/dist/runtime/api/apis/AdminApi.d.ts +0 -181
- package/dist/runtime/api/apis/AdminApi.mjs +0 -509
- package/dist/runtime/api/apis/ApplicationApi.d.ts +0 -65
- package/dist/runtime/api/apis/ApplicationApi.mjs +0 -164
- package/dist/runtime/api/apis/AuthApi.d.ts +0 -104
- package/dist/runtime/api/apis/AuthApi.mjs +0 -296
- package/dist/runtime/api/apis/BucketApi.d.ts +0 -67
- package/dist/runtime/api/apis/BucketApi.mjs +0 -160
- package/dist/runtime/api/apis/CollectionApi.d.ts +0 -161
- package/dist/runtime/api/apis/CollectionApi.mjs +0 -435
- package/dist/runtime/api/apis/DatabaseApi.d.ts +0 -77
- package/dist/runtime/api/apis/DatabaseApi.mjs +0 -196
- package/dist/runtime/api/apis/DocumentApi.d.ts +0 -188
- package/dist/runtime/api/apis/DocumentApi.mjs +0 -465
- package/dist/runtime/api/apis/FileApi.d.ts +0 -125
- package/dist/runtime/api/apis/FileApi.mjs +0 -355
- package/dist/runtime/api/apis/IndexApi.d.ts +0 -137
- package/dist/runtime/api/apis/IndexApi.mjs +0 -367
- package/dist/runtime/api/apis/InformationApi.d.ts +0 -28
- package/dist/runtime/api/apis/InformationApi.mjs +0 -29
- package/dist/runtime/api/apis/JobsApi.d.ts +0 -94
- package/dist/runtime/api/apis/JobsApi.mjs +0 -252
- package/dist/runtime/api/apis/index.d.ts +0 -11
- package/dist/runtime/api/apis/index.mjs +0 -11
- package/dist/runtime/api/index.d.ts +0 -3
- package/dist/runtime/api/index.mjs +0 -3
- package/dist/runtime/api/models/BucketInformation.d.ts +0 -49
- package/dist/runtime/api/models/BucketInformation.mjs +0 -36
- package/dist/runtime/api/models/CollectionStatus.d.ts +0 -107
- package/dist/runtime/api/models/CollectionStatus.mjs +0 -63
- package/dist/runtime/api/models/DatabaseInfo.d.ts +0 -57
- package/dist/runtime/api/models/DatabaseInfo.mjs +0 -39
- package/dist/runtime/api/models/DeleteResponse.d.ts +0 -37
- package/dist/runtime/api/models/DeleteResponse.mjs +0 -30
- package/dist/runtime/api/models/ErrorDescription.d.ts +0 -43
- package/dist/runtime/api/models/ErrorDescription.mjs +0 -33
- package/dist/runtime/api/models/FileInformation.d.ts +0 -63
- package/dist/runtime/api/models/FileInformation.mjs +0 -42
- package/dist/runtime/api/models/Grant.d.ts +0 -55
- package/dist/runtime/api/models/Grant.mjs +0 -39
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +0 -40
- package/dist/runtime/api/models/IndexCreateRequest.mjs +0 -34
- package/dist/runtime/api/models/IndexCreateResponse.d.ts +0 -31
- package/dist/runtime/api/models/IndexCreateResponse.mjs +0 -27
- package/dist/runtime/api/models/IndexDropResponse.d.ts +0 -31
- package/dist/runtime/api/models/IndexDropResponse.mjs +0 -27
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +0 -73
- package/dist/runtime/api/models/IndexOptionsRequest.mjs +0 -41
- package/dist/runtime/api/models/InsertResponse.d.ts +0 -37
- package/dist/runtime/api/models/InsertResponse.mjs +0 -30
- package/dist/runtime/api/models/JobConfig.d.ts +0 -61
- package/dist/runtime/api/models/JobConfig.mjs +0 -42
- package/dist/runtime/api/models/JobInformation.d.ts +0 -79
- package/dist/runtime/api/models/JobInformation.mjs +0 -49
- package/dist/runtime/api/models/JsonResultBoolean.d.ts +0 -27
- package/dist/runtime/api/models/JsonResultBoolean.mjs +0 -22
- package/dist/runtime/api/models/JsonResultString.d.ts +0 -27
- package/dist/runtime/api/models/JsonResultString.mjs +0 -22
- package/dist/runtime/api/models/JsonSchema.d.ts +0 -46
- package/dist/runtime/api/models/JsonSchema.mjs +0 -38
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +0 -59
- package/dist/runtime/api/models/JsonSchemaDefinition.mjs +0 -39
- package/dist/runtime/api/models/JsonValueAny.d.ts +0 -31
- package/dist/runtime/api/models/JsonValueAny.mjs +0 -27
- package/dist/runtime/api/models/JsonValueBoolean.d.ts +0 -31
- package/dist/runtime/api/models/JsonValueBoolean.mjs +0 -27
- package/dist/runtime/api/models/JsonValueString.d.ts +0 -31
- package/dist/runtime/api/models/JsonValueString.mjs +0 -27
- package/dist/runtime/api/models/Login.d.ts +0 -37
- package/dist/runtime/api/models/Login.mjs +0 -30
- package/dist/runtime/api/models/LoginResult.d.ts +0 -44
- package/dist/runtime/api/models/LoginResult.mjs +0 -37
- package/dist/runtime/api/models/Measurement.d.ts +0 -33
- package/dist/runtime/api/models/Measurement.mjs +0 -24
- package/dist/runtime/api/models/Metric.d.ts +0 -52
- package/dist/runtime/api/models/Metric.mjs +0 -35
- package/dist/runtime/api/models/MongoAggregateRequest.d.ts +0 -38
- package/dist/runtime/api/models/MongoAggregateRequest.mjs +0 -34
- package/dist/runtime/api/models/MongoCampConfiguration.d.ts +0 -55
- package/dist/runtime/api/models/MongoCampConfiguration.mjs +0 -39
- package/dist/runtime/api/models/MongoFindRequest.d.ts +0 -49
- package/dist/runtime/api/models/MongoFindRequest.mjs +0 -33
- package/dist/runtime/api/models/MongoIndex.d.ts +0 -103
- package/dist/runtime/api/models/MongoIndex.mjs +0 -60
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +0 -31
- package/dist/runtime/api/models/PasswordUpdateRequest.mjs +0 -27
- package/dist/runtime/api/models/PipelineStage.d.ts +0 -37
- package/dist/runtime/api/models/PipelineStage.mjs +0 -30
- package/dist/runtime/api/models/Role.d.ts +0 -44
- package/dist/runtime/api/models/Role.mjs +0 -37
- package/dist/runtime/api/models/SchemaAnalysis.d.ts +0 -50
- package/dist/runtime/api/models/SchemaAnalysis.mjs +0 -40
- package/dist/runtime/api/models/SchemaAnalysisField.d.ts +0 -62
- package/dist/runtime/api/models/SchemaAnalysisField.mjs +0 -45
- package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +0 -43
- package/dist/runtime/api/models/SchemaAnalysisFieldType.mjs +0 -33
- package/dist/runtime/api/models/SettingsResponse.d.ts +0 -51
- package/dist/runtime/api/models/SettingsResponse.mjs +0 -34
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +0 -39
- package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +0 -29
- package/dist/runtime/api/models/UpdateRequest.d.ts +0 -41
- package/dist/runtime/api/models/UpdateRequest.mjs +0 -30
- package/dist/runtime/api/models/UpdateResponse.d.ts +0 -49
- package/dist/runtime/api/models/UpdateResponse.mjs +0 -36
- package/dist/runtime/api/models/UpdateRoleRequest.d.ts +0 -38
- package/dist/runtime/api/models/UpdateRoleRequest.mjs +0 -34
- package/dist/runtime/api/models/UserInformation.d.ts +0 -49
- package/dist/runtime/api/models/UserInformation.mjs +0 -35
- package/dist/runtime/api/models/UserProfile.d.ts +0 -56
- package/dist/runtime/api/models/UserProfile.mjs +0 -41
- package/dist/runtime/api/models/Version.d.ts +0 -43
- package/dist/runtime/api/models/Version.mjs +0 -33
- package/dist/runtime/api/models/index.d.ts +0 -39
- package/dist/runtime/api/models/index.mjs +0 -39
- package/dist/runtime/api/runtime.d.ts +0 -182
- package/dist/runtime/api/runtime.mjs +0 -281
- package/dist/runtime/composables/mongocampApi.d.ts +0 -14
- package/dist/runtime/composables/mongocampApi.mjs +0 -45
- package/dist/runtime/composables/mongocampAuth.d.ts +0 -8
- package/dist/runtime/composables/mongocampAuth.mjs +0 -28
- package/dist/runtime/composables/mongocampSearch.d.ts +0 -11
- package/dist/runtime/composables/mongocampSearch.mjs +0 -20
- package/dist/runtime/composables/mongocampStorage.d.ts +0 -0
- package/dist/runtime/composables/mongocampStorage.mjs +0 -5
- package/dist/runtime/composables/mongocampUrl.d.ts +0 -1
- package/dist/runtime/composables/mongocampUrl.mjs +0 -5
- package/dist/runtime/composables/mongocampUser.d.ts +0 -3
- package/dist/runtime/composables/mongocampUser.mjs +0 -4
- package/dist/types.d.ts +0 -15
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import * as runtime from "../runtime.mjs";
|
|
2
|
-
import {
|
|
3
|
-
DatabaseInfoFromJSON,
|
|
4
|
-
JsonValueBooleanFromJSON
|
|
5
|
-
} from "../models/index.mjs";
|
|
6
|
-
export class DatabaseApi extends runtime.BaseAPI {
|
|
7
|
-
/**
|
|
8
|
-
* List of all Databases Infos
|
|
9
|
-
* List of Database Infos
|
|
10
|
-
*/
|
|
11
|
-
async databaseInfosRaw(initOverrides) {
|
|
12
|
-
const queryParameters = {};
|
|
13
|
-
const headerParameters = {};
|
|
14
|
-
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
15
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
16
|
-
}
|
|
17
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
18
|
-
const token = this.configuration.accessToken;
|
|
19
|
-
const tokenString = await token("httpAuth", []);
|
|
20
|
-
if (tokenString) {
|
|
21
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
25
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
26
|
-
}
|
|
27
|
-
const response = await this.request({
|
|
28
|
-
path: `/mongodb/databases/infos`,
|
|
29
|
-
method: "GET",
|
|
30
|
-
headers: headerParameters,
|
|
31
|
-
query: queryParameters
|
|
32
|
-
}, initOverrides);
|
|
33
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DatabaseInfoFromJSON));
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* List of all Databases Infos
|
|
37
|
-
* List of Database Infos
|
|
38
|
-
*/
|
|
39
|
-
async databaseInfos(initOverrides) {
|
|
40
|
-
const response = await this.databaseInfosRaw(initOverrides);
|
|
41
|
-
return await response.value();
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Delete given Database
|
|
45
|
-
* Delete Database
|
|
46
|
-
*/
|
|
47
|
-
async deleteDatabaseRaw(requestParameters, initOverrides) {
|
|
48
|
-
if (requestParameters.databaseName === null || requestParameters.databaseName === void 0) {
|
|
49
|
-
throw new runtime.RequiredError("databaseName", "Required parameter requestParameters.databaseName was null or undefined when calling deleteDatabase.");
|
|
50
|
-
}
|
|
51
|
-
const queryParameters = {};
|
|
52
|
-
const headerParameters = {};
|
|
53
|
-
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
54
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
55
|
-
}
|
|
56
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
57
|
-
const token = this.configuration.accessToken;
|
|
58
|
-
const tokenString = await token("httpAuth", []);
|
|
59
|
-
if (tokenString) {
|
|
60
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
64
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
65
|
-
}
|
|
66
|
-
const response = await this.request({
|
|
67
|
-
path: `/mongodb/databases/{databaseName}`.replace(`{${"databaseName"}}`, encodeURIComponent(String(requestParameters.databaseName))),
|
|
68
|
-
method: "DELETE",
|
|
69
|
-
headers: headerParameters,
|
|
70
|
-
query: queryParameters
|
|
71
|
-
}, initOverrides);
|
|
72
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Delete given Database
|
|
76
|
-
* Delete Database
|
|
77
|
-
*/
|
|
78
|
-
async deleteDatabase(requestParameters, initOverrides) {
|
|
79
|
-
const response = await this.deleteDatabaseRaw(requestParameters, initOverrides);
|
|
80
|
-
return await response.value();
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* All Information about given Database
|
|
84
|
-
* Database Infos of selected Database
|
|
85
|
-
*/
|
|
86
|
-
async getDatabaseInfoRaw(requestParameters, initOverrides) {
|
|
87
|
-
if (requestParameters.databaseName === null || requestParameters.databaseName === void 0) {
|
|
88
|
-
throw new runtime.RequiredError("databaseName", "Required parameter requestParameters.databaseName was null or undefined when calling getDatabaseInfo.");
|
|
89
|
-
}
|
|
90
|
-
const queryParameters = {};
|
|
91
|
-
const headerParameters = {};
|
|
92
|
-
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
93
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
94
|
-
}
|
|
95
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
96
|
-
const token = this.configuration.accessToken;
|
|
97
|
-
const tokenString = await token("httpAuth", []);
|
|
98
|
-
if (tokenString) {
|
|
99
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
103
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
104
|
-
}
|
|
105
|
-
const response = await this.request({
|
|
106
|
-
path: `/mongodb/databases/{databaseName}`.replace(`{${"databaseName"}}`, encodeURIComponent(String(requestParameters.databaseName))),
|
|
107
|
-
method: "GET",
|
|
108
|
-
headers: headerParameters,
|
|
109
|
-
query: queryParameters
|
|
110
|
-
}, initOverrides);
|
|
111
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => DatabaseInfoFromJSON(jsonValue));
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* All Information about given Database
|
|
115
|
-
* Database Infos of selected Database
|
|
116
|
-
*/
|
|
117
|
-
async getDatabaseInfo(requestParameters, initOverrides) {
|
|
118
|
-
const response = await this.getDatabaseInfoRaw(requestParameters, initOverrides);
|
|
119
|
-
return await response.value();
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* List of all Collections of the given database
|
|
123
|
-
* List of Collections
|
|
124
|
-
*/
|
|
125
|
-
async listCollectionsByDatabaseRaw(requestParameters, initOverrides) {
|
|
126
|
-
if (requestParameters.databaseName === null || requestParameters.databaseName === void 0) {
|
|
127
|
-
throw new runtime.RequiredError("databaseName", "Required parameter requestParameters.databaseName was null or undefined when calling listCollectionsByDatabase.");
|
|
128
|
-
}
|
|
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/databases/{databaseName}/collections`.replace(`{${"databaseName"}}`, encodeURIComponent(String(requestParameters.databaseName))),
|
|
146
|
-
method: "GET",
|
|
147
|
-
headers: headerParameters,
|
|
148
|
-
query: queryParameters
|
|
149
|
-
}, initOverrides);
|
|
150
|
-
return new runtime.JSONApiResponse(response);
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* List of all Collections of the given database
|
|
154
|
-
* List of Collections
|
|
155
|
-
*/
|
|
156
|
-
async listCollectionsByDatabase(requestParameters, initOverrides) {
|
|
157
|
-
const response = await this.listCollectionsByDatabaseRaw(requestParameters, initOverrides);
|
|
158
|
-
return await response.value();
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* List of all Databases
|
|
162
|
-
* List of Databases
|
|
163
|
-
*/
|
|
164
|
-
async listDatabasesRaw(initOverrides) {
|
|
165
|
-
const queryParameters = {};
|
|
166
|
-
const headerParameters = {};
|
|
167
|
-
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
168
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
169
|
-
}
|
|
170
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
171
|
-
const token = this.configuration.accessToken;
|
|
172
|
-
const tokenString = await token("httpAuth", []);
|
|
173
|
-
if (tokenString) {
|
|
174
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
178
|
-
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
179
|
-
}
|
|
180
|
-
const response = await this.request({
|
|
181
|
-
path: `/mongodb/databases`,
|
|
182
|
-
method: "GET",
|
|
183
|
-
headers: headerParameters,
|
|
184
|
-
query: queryParameters
|
|
185
|
-
}, initOverrides);
|
|
186
|
-
return new runtime.JSONApiResponse(response);
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* List of all Databases
|
|
190
|
-
* List of Databases
|
|
191
|
-
*/
|
|
192
|
-
async listDatabases(initOverrides) {
|
|
193
|
-
const response = await this.listDatabasesRaw(initOverrides);
|
|
194
|
-
return await response.value();
|
|
195
|
-
}
|
|
196
|
-
}
|
|
@@ -1,188 +0,0 @@
|
|
|
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 { DeleteResponse, InsertResponse, MongoFindRequest, UpdateRequest, UpdateResponse } from '../models';
|
|
14
|
-
export interface DeleteRequest {
|
|
15
|
-
collectionName: string;
|
|
16
|
-
documentId: string;
|
|
17
|
-
}
|
|
18
|
-
export interface DeleteManyRequest {
|
|
19
|
-
collectionName: string;
|
|
20
|
-
requestBody: {
|
|
21
|
-
[key: string]: string;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export interface FindRequest {
|
|
25
|
-
collectionName: string;
|
|
26
|
-
mongoFindRequest: MongoFindRequest;
|
|
27
|
-
rowsPerPage?: number;
|
|
28
|
-
page?: number;
|
|
29
|
-
}
|
|
30
|
-
export interface GetDocumentRequest {
|
|
31
|
-
collectionName: string;
|
|
32
|
-
documentId: string;
|
|
33
|
-
}
|
|
34
|
-
export interface InsertRequest {
|
|
35
|
-
collectionName: string;
|
|
36
|
-
requestBody: {
|
|
37
|
-
[key: string]: string;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export interface InsertManyRequest {
|
|
41
|
-
collectionName: string;
|
|
42
|
-
requestBody?: Array<{
|
|
43
|
-
[key: string]: string;
|
|
44
|
-
}>;
|
|
45
|
-
}
|
|
46
|
-
export interface ListDocumentsRequest {
|
|
47
|
-
collectionName: string;
|
|
48
|
-
filter?: string;
|
|
49
|
-
sort?: Array<string>;
|
|
50
|
-
projection?: Array<string>;
|
|
51
|
-
rowsPerPage?: number;
|
|
52
|
-
page?: number;
|
|
53
|
-
}
|
|
54
|
-
export interface UpdateRequest {
|
|
55
|
-
collectionName: string;
|
|
56
|
-
documentId: string;
|
|
57
|
-
requestBody: {
|
|
58
|
-
[key: string]: string;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
export interface UpdateDocumentPartialRequest {
|
|
62
|
-
collectionName: string;
|
|
63
|
-
documentId: string;
|
|
64
|
-
requestBody: {
|
|
65
|
-
[key: string]: string;
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
export interface UpdateManyRequest {
|
|
69
|
-
collectionName: string;
|
|
70
|
-
updateRequest: UpdateRequest;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
*/
|
|
75
|
-
export declare class DocumentApi extends runtime.BaseAPI {
|
|
76
|
-
/**
|
|
77
|
-
* Delete one Document from given Collection
|
|
78
|
-
* Delete Document from Collection
|
|
79
|
-
*/
|
|
80
|
-
_deleteRaw(requestParameters: DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteResponse>>;
|
|
81
|
-
/**
|
|
82
|
-
* Delete one Document from given Collection
|
|
83
|
-
* Delete Document from Collection
|
|
84
|
-
*/
|
|
85
|
-
_delete(requestParameters: DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteResponse>;
|
|
86
|
-
/**
|
|
87
|
-
* Delete many Document in given Collection
|
|
88
|
-
* Delete Many in Collection
|
|
89
|
-
*/
|
|
90
|
-
deleteManyRaw(requestParameters: DeleteManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteResponse>>;
|
|
91
|
-
/**
|
|
92
|
-
* Delete many Document in given Collection
|
|
93
|
-
* Delete Many in Collection
|
|
94
|
-
*/
|
|
95
|
-
deleteMany(requestParameters: DeleteManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteResponse>;
|
|
96
|
-
/**
|
|
97
|
-
* Alternative to GET Route for more complex queries and URL max. Length
|
|
98
|
-
* Documents in Collection
|
|
99
|
-
*/
|
|
100
|
-
findRaw(requestParameters: FindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
|
|
101
|
-
[key: string]: string;
|
|
102
|
-
}>>>;
|
|
103
|
-
/**
|
|
104
|
-
* Alternative to GET Route for more complex queries and URL max. Length
|
|
105
|
-
* Documents in Collection
|
|
106
|
-
*/
|
|
107
|
-
find(requestParameters: FindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
|
|
108
|
-
[key: string]: string;
|
|
109
|
-
}>>;
|
|
110
|
-
/**
|
|
111
|
-
* Get one Document from given Collection
|
|
112
|
-
* Document from Collection
|
|
113
|
-
*/
|
|
114
|
-
getDocumentRaw(requestParameters: GetDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
115
|
-
[key: string]: string;
|
|
116
|
-
}>>;
|
|
117
|
-
/**
|
|
118
|
-
* Get one Document from given Collection
|
|
119
|
-
* Document from Collection
|
|
120
|
-
*/
|
|
121
|
-
getDocument(requestParameters: GetDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
122
|
-
[key: string]: string;
|
|
123
|
-
}>;
|
|
124
|
-
/**
|
|
125
|
-
* Insert one Document in given Collection
|
|
126
|
-
* Insert Document
|
|
127
|
-
*/
|
|
128
|
-
insertRaw(requestParameters: InsertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InsertResponse>>;
|
|
129
|
-
/**
|
|
130
|
-
* Insert one Document in given Collection
|
|
131
|
-
* Insert Document
|
|
132
|
-
*/
|
|
133
|
-
insert(requestParameters: InsertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InsertResponse>;
|
|
134
|
-
/**
|
|
135
|
-
* Insert many documents in given Collection
|
|
136
|
-
* Insert many Documents
|
|
137
|
-
*/
|
|
138
|
-
insertManyRaw(requestParameters: InsertManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InsertResponse>>;
|
|
139
|
-
/**
|
|
140
|
-
* Insert many documents in given Collection
|
|
141
|
-
* Insert many Documents
|
|
142
|
-
*/
|
|
143
|
-
insertMany(requestParameters: InsertManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InsertResponse>;
|
|
144
|
-
/**
|
|
145
|
-
* Get Documents paginated from given Collection
|
|
146
|
-
* Documents in Collection
|
|
147
|
-
*/
|
|
148
|
-
listDocumentsRaw(requestParameters: ListDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
|
|
149
|
-
[key: string]: string;
|
|
150
|
-
}>>>;
|
|
151
|
-
/**
|
|
152
|
-
* Get Documents paginated from given Collection
|
|
153
|
-
* Documents in Collection
|
|
154
|
-
*/
|
|
155
|
-
listDocuments(requestParameters: ListDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
|
|
156
|
-
[key: string]: string;
|
|
157
|
-
}>>;
|
|
158
|
-
/**
|
|
159
|
-
* \'Replace\' one Document with the new document from Request in Collection
|
|
160
|
-
* Update Document in Collection
|
|
161
|
-
*/
|
|
162
|
-
updateRaw(requestParameters: UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateResponse>>;
|
|
163
|
-
/**
|
|
164
|
-
* \'Replace\' one Document with the new document from Request in Collection
|
|
165
|
-
* Update Document in Collection
|
|
166
|
-
*/
|
|
167
|
-
update(requestParameters: UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateResponse>;
|
|
168
|
-
/**
|
|
169
|
-
* Update the document Parts with the values from the Request
|
|
170
|
-
* Update Document Parts in Collection
|
|
171
|
-
*/
|
|
172
|
-
updateDocumentPartialRaw(requestParameters: UpdateDocumentPartialRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateResponse>>;
|
|
173
|
-
/**
|
|
174
|
-
* Update the document Parts with the values from the Request
|
|
175
|
-
* Update Document Parts in Collection
|
|
176
|
-
*/
|
|
177
|
-
updateDocumentPartial(requestParameters: UpdateDocumentPartialRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateResponse>;
|
|
178
|
-
/**
|
|
179
|
-
* Update many Document in given Collection
|
|
180
|
-
* Update many in Collection
|
|
181
|
-
*/
|
|
182
|
-
updateManyRaw(requestParameters: UpdateManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateResponse>>;
|
|
183
|
-
/**
|
|
184
|
-
* Update many Document in given Collection
|
|
185
|
-
* Update many in Collection
|
|
186
|
-
*/
|
|
187
|
-
updateMany(requestParameters: UpdateManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateResponse>;
|
|
188
|
-
}
|