@sfxcode/nuxt-mongocamp-server 0.8.8 → 0.9.1
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 +7 -7
|
@@ -2,13 +2,17 @@ import * as runtime from "../runtime.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
DatabaseInfoFromJSON,
|
|
4
4
|
JsonValueBooleanFromJSON
|
|
5
|
-
} from "../models";
|
|
5
|
+
} from "../models/index.mjs";
|
|
6
6
|
export class DatabaseApi extends runtime.BaseAPI {
|
|
7
|
+
/**
|
|
8
|
+
* List of all Databases Infos
|
|
9
|
+
* List of Database Infos
|
|
10
|
+
*/
|
|
7
11
|
async databaseInfosRaw(initOverrides) {
|
|
8
12
|
const queryParameters = {};
|
|
9
13
|
const headerParameters = {};
|
|
10
|
-
if (this.configuration && this.configuration.
|
|
11
|
-
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);
|
|
12
16
|
}
|
|
13
17
|
if (this.configuration && this.configuration.accessToken) {
|
|
14
18
|
const token = this.configuration.accessToken;
|
|
@@ -17,8 +21,8 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
17
21
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
|
-
if (this.configuration &&
|
|
21
|
-
headerParameters["
|
|
24
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
25
|
+
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
22
26
|
}
|
|
23
27
|
const response = await this.request({
|
|
24
28
|
path: `/mongodb/databases/infos`,
|
|
@@ -28,18 +32,26 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
28
32
|
}, initOverrides);
|
|
29
33
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DatabaseInfoFromJSON));
|
|
30
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* List of all Databases Infos
|
|
37
|
+
* List of Database Infos
|
|
38
|
+
*/
|
|
31
39
|
async databaseInfos(initOverrides) {
|
|
32
40
|
const response = await this.databaseInfosRaw(initOverrides);
|
|
33
41
|
return await response.value();
|
|
34
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Delete given Database
|
|
45
|
+
* Delete Database
|
|
46
|
+
*/
|
|
35
47
|
async deleteDatabaseRaw(requestParameters, initOverrides) {
|
|
36
48
|
if (requestParameters.databaseName === null || requestParameters.databaseName === void 0) {
|
|
37
49
|
throw new runtime.RequiredError("databaseName", "Required parameter requestParameters.databaseName was null or undefined when calling deleteDatabase.");
|
|
38
50
|
}
|
|
39
51
|
const queryParameters = {};
|
|
40
52
|
const headerParameters = {};
|
|
41
|
-
if (this.configuration && this.configuration.
|
|
42
|
-
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);
|
|
43
55
|
}
|
|
44
56
|
if (this.configuration && this.configuration.accessToken) {
|
|
45
57
|
const token = this.configuration.accessToken;
|
|
@@ -48,8 +60,8 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
48
60
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
49
61
|
}
|
|
50
62
|
}
|
|
51
|
-
if (this.configuration &&
|
|
52
|
-
headerParameters["
|
|
63
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
64
|
+
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
53
65
|
}
|
|
54
66
|
const response = await this.request({
|
|
55
67
|
path: `/mongodb/databases/{databaseName}`.replace(`{${"databaseName"}}`, encodeURIComponent(String(requestParameters.databaseName))),
|
|
@@ -59,18 +71,26 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
59
71
|
}, initOverrides);
|
|
60
72
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
61
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Delete given Database
|
|
76
|
+
* Delete Database
|
|
77
|
+
*/
|
|
62
78
|
async deleteDatabase(requestParameters, initOverrides) {
|
|
63
79
|
const response = await this.deleteDatabaseRaw(requestParameters, initOverrides);
|
|
64
80
|
return await response.value();
|
|
65
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* All Information about given Database
|
|
84
|
+
* Database Infos of selected Database
|
|
85
|
+
*/
|
|
66
86
|
async getDatabaseInfoRaw(requestParameters, initOverrides) {
|
|
67
87
|
if (requestParameters.databaseName === null || requestParameters.databaseName === void 0) {
|
|
68
88
|
throw new runtime.RequiredError("databaseName", "Required parameter requestParameters.databaseName was null or undefined when calling getDatabaseInfo.");
|
|
69
89
|
}
|
|
70
90
|
const queryParameters = {};
|
|
71
91
|
const headerParameters = {};
|
|
72
|
-
if (this.configuration && this.configuration.
|
|
73
|
-
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);
|
|
74
94
|
}
|
|
75
95
|
if (this.configuration && this.configuration.accessToken) {
|
|
76
96
|
const token = this.configuration.accessToken;
|
|
@@ -79,8 +99,8 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
79
99
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
80
100
|
}
|
|
81
101
|
}
|
|
82
|
-
if (this.configuration &&
|
|
83
|
-
headerParameters["
|
|
102
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
103
|
+
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
84
104
|
}
|
|
85
105
|
const response = await this.request({
|
|
86
106
|
path: `/mongodb/databases/{databaseName}`.replace(`{${"databaseName"}}`, encodeURIComponent(String(requestParameters.databaseName))),
|
|
@@ -90,18 +110,26 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
90
110
|
}, initOverrides);
|
|
91
111
|
return new runtime.JSONApiResponse(response, (jsonValue) => DatabaseInfoFromJSON(jsonValue));
|
|
92
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* All Information about given Database
|
|
115
|
+
* Database Infos of selected Database
|
|
116
|
+
*/
|
|
93
117
|
async getDatabaseInfo(requestParameters, initOverrides) {
|
|
94
118
|
const response = await this.getDatabaseInfoRaw(requestParameters, initOverrides);
|
|
95
119
|
return await response.value();
|
|
96
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* List of all Collections of the given database
|
|
123
|
+
* List of Collections
|
|
124
|
+
*/
|
|
97
125
|
async listCollectionsByDatabaseRaw(requestParameters, initOverrides) {
|
|
98
126
|
if (requestParameters.databaseName === null || requestParameters.databaseName === void 0) {
|
|
99
127
|
throw new runtime.RequiredError("databaseName", "Required parameter requestParameters.databaseName was null or undefined when calling listCollectionsByDatabase.");
|
|
100
128
|
}
|
|
101
129
|
const queryParameters = {};
|
|
102
130
|
const headerParameters = {};
|
|
103
|
-
if (this.configuration && this.configuration.
|
|
104
|
-
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);
|
|
105
133
|
}
|
|
106
134
|
if (this.configuration && this.configuration.accessToken) {
|
|
107
135
|
const token = this.configuration.accessToken;
|
|
@@ -110,8 +138,8 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
110
138
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
111
139
|
}
|
|
112
140
|
}
|
|
113
|
-
if (this.configuration &&
|
|
114
|
-
headerParameters["
|
|
141
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
142
|
+
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
115
143
|
}
|
|
116
144
|
const response = await this.request({
|
|
117
145
|
path: `/mongodb/databases/{databaseName}/collections`.replace(`{${"databaseName"}}`, encodeURIComponent(String(requestParameters.databaseName))),
|
|
@@ -121,15 +149,23 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
121
149
|
}, initOverrides);
|
|
122
150
|
return new runtime.JSONApiResponse(response);
|
|
123
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* List of all Collections of the given database
|
|
154
|
+
* List of Collections
|
|
155
|
+
*/
|
|
124
156
|
async listCollectionsByDatabase(requestParameters, initOverrides) {
|
|
125
157
|
const response = await this.listCollectionsByDatabaseRaw(requestParameters, initOverrides);
|
|
126
158
|
return await response.value();
|
|
127
159
|
}
|
|
160
|
+
/**
|
|
161
|
+
* List of all Databases
|
|
162
|
+
* List of Databases
|
|
163
|
+
*/
|
|
128
164
|
async listDatabasesRaw(initOverrides) {
|
|
129
165
|
const queryParameters = {};
|
|
130
166
|
const headerParameters = {};
|
|
131
|
-
if (this.configuration && this.configuration.
|
|
132
|
-
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);
|
|
133
169
|
}
|
|
134
170
|
if (this.configuration && this.configuration.accessToken) {
|
|
135
171
|
const token = this.configuration.accessToken;
|
|
@@ -138,8 +174,8 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
138
174
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
139
175
|
}
|
|
140
176
|
}
|
|
141
|
-
if (this.configuration &&
|
|
142
|
-
headerParameters["
|
|
177
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
178
|
+
headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
|
|
143
179
|
}
|
|
144
180
|
const response = await this.request({
|
|
145
181
|
path: `/mongodb/databases`,
|
|
@@ -149,6 +185,10 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
149
185
|
}, initOverrides);
|
|
150
186
|
return new runtime.JSONApiResponse(response);
|
|
151
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* List of all Databases
|
|
190
|
+
* List of Databases
|
|
191
|
+
*/
|
|
152
192
|
async listDatabases(initOverrides) {
|
|
153
193
|
const response = await this.listDatabasesRaw(initOverrides);
|
|
154
194
|
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).
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { DeleteResponse, InsertResponse, MongoFindRequest, UpdateRequest, UpdateResponse } from '../models';
|
|
13
|
+
import type { DeleteResponse, InsertResponse, MongoFindRequest, UpdateRequest, UpdateResponse } from '../models';
|
|
14
14
|
export interface DeleteRequest {
|
|
15
15
|
collectionName: string;
|
|
16
16
|
documentId: string;
|
|
@@ -77,112 +77,112 @@ export declare class DocumentApi extends runtime.BaseAPI {
|
|
|
77
77
|
* Delete one Document from given Collection
|
|
78
78
|
* Delete Document from Collection
|
|
79
79
|
*/
|
|
80
|
-
_deleteRaw(requestParameters: DeleteRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<DeleteResponse>>;
|
|
80
|
+
_deleteRaw(requestParameters: DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteResponse>>;
|
|
81
81
|
/**
|
|
82
82
|
* Delete one Document from given Collection
|
|
83
83
|
* Delete Document from Collection
|
|
84
84
|
*/
|
|
85
|
-
_delete(requestParameters: DeleteRequest, initOverrides?: RequestInit): Promise<DeleteResponse>;
|
|
85
|
+
_delete(requestParameters: DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteResponse>;
|
|
86
86
|
/**
|
|
87
87
|
* Delete many Document in given Collection
|
|
88
88
|
* Delete Many in Collection
|
|
89
89
|
*/
|
|
90
|
-
deleteManyRaw(requestParameters: DeleteManyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<DeleteResponse>>;
|
|
90
|
+
deleteManyRaw(requestParameters: DeleteManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteResponse>>;
|
|
91
91
|
/**
|
|
92
92
|
* Delete many Document in given Collection
|
|
93
93
|
* Delete Many in Collection
|
|
94
94
|
*/
|
|
95
|
-
deleteMany(requestParameters: DeleteManyRequest, initOverrides?: RequestInit): Promise<DeleteResponse>;
|
|
95
|
+
deleteMany(requestParameters: DeleteManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteResponse>;
|
|
96
96
|
/**
|
|
97
97
|
* Alternative to GET Route for more complex queries and URL max. Length
|
|
98
98
|
* Documents in Collection
|
|
99
99
|
*/
|
|
100
|
-
findRaw(requestParameters: FindRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<{
|
|
100
|
+
findRaw(requestParameters: FindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
|
|
101
101
|
[key: string]: string;
|
|
102
102
|
}>>>;
|
|
103
103
|
/**
|
|
104
104
|
* Alternative to GET Route for more complex queries and URL max. Length
|
|
105
105
|
* Documents in Collection
|
|
106
106
|
*/
|
|
107
|
-
find(requestParameters: FindRequest, initOverrides?: RequestInit): Promise<Array<{
|
|
107
|
+
find(requestParameters: FindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
|
|
108
108
|
[key: string]: string;
|
|
109
109
|
}>>;
|
|
110
110
|
/**
|
|
111
111
|
* Get one Document from given Collection
|
|
112
112
|
* Document from Collection
|
|
113
113
|
*/
|
|
114
|
-
getDocumentRaw(requestParameters: GetDocumentRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<{
|
|
114
|
+
getDocumentRaw(requestParameters: GetDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
115
115
|
[key: string]: string;
|
|
116
116
|
}>>;
|
|
117
117
|
/**
|
|
118
118
|
* Get one Document from given Collection
|
|
119
119
|
* Document from Collection
|
|
120
120
|
*/
|
|
121
|
-
getDocument(requestParameters: GetDocumentRequest, initOverrides?: RequestInit): Promise<{
|
|
121
|
+
getDocument(requestParameters: GetDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
122
122
|
[key: string]: string;
|
|
123
123
|
}>;
|
|
124
124
|
/**
|
|
125
125
|
* Insert one Document in given Collection
|
|
126
126
|
* Insert Document
|
|
127
127
|
*/
|
|
128
|
-
insertRaw(requestParameters: InsertRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InsertResponse>>;
|
|
128
|
+
insertRaw(requestParameters: InsertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InsertResponse>>;
|
|
129
129
|
/**
|
|
130
130
|
* Insert one Document in given Collection
|
|
131
131
|
* Insert Document
|
|
132
132
|
*/
|
|
133
|
-
insert(requestParameters: InsertRequest, initOverrides?: RequestInit): Promise<InsertResponse>;
|
|
133
|
+
insert(requestParameters: InsertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InsertResponse>;
|
|
134
134
|
/**
|
|
135
135
|
* Insert many documents in given Collection
|
|
136
136
|
* Insert many Documents
|
|
137
137
|
*/
|
|
138
|
-
insertManyRaw(requestParameters: InsertManyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InsertResponse>>;
|
|
138
|
+
insertManyRaw(requestParameters: InsertManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InsertResponse>>;
|
|
139
139
|
/**
|
|
140
140
|
* Insert many documents in given Collection
|
|
141
141
|
* Insert many Documents
|
|
142
142
|
*/
|
|
143
|
-
insertMany(requestParameters: InsertManyRequest, initOverrides?: RequestInit): Promise<InsertResponse>;
|
|
143
|
+
insertMany(requestParameters: InsertManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InsertResponse>;
|
|
144
144
|
/**
|
|
145
145
|
* Get Documents paginated from given Collection
|
|
146
146
|
* Documents in Collection
|
|
147
147
|
*/
|
|
148
|
-
listDocumentsRaw(requestParameters: ListDocumentsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<{
|
|
148
|
+
listDocumentsRaw(requestParameters: ListDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
|
|
149
149
|
[key: string]: string;
|
|
150
150
|
}>>>;
|
|
151
151
|
/**
|
|
152
152
|
* Get Documents paginated from given Collection
|
|
153
153
|
* Documents in Collection
|
|
154
154
|
*/
|
|
155
|
-
listDocuments(requestParameters: ListDocumentsRequest, initOverrides?: RequestInit): Promise<Array<{
|
|
155
|
+
listDocuments(requestParameters: ListDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
|
|
156
156
|
[key: string]: string;
|
|
157
157
|
}>>;
|
|
158
158
|
/**
|
|
159
159
|
* \'Replace\' one Document with the new document from Request in Collection
|
|
160
160
|
* Update Document in Collection
|
|
161
161
|
*/
|
|
162
|
-
updateRaw(requestParameters: UpdateRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<UpdateResponse>>;
|
|
162
|
+
updateRaw(requestParameters: UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateResponse>>;
|
|
163
163
|
/**
|
|
164
164
|
* \'Replace\' one Document with the new document from Request in Collection
|
|
165
165
|
* Update Document in Collection
|
|
166
166
|
*/
|
|
167
|
-
update(requestParameters: UpdateRequest, initOverrides?: RequestInit): Promise<UpdateResponse>;
|
|
167
|
+
update(requestParameters: UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateResponse>;
|
|
168
168
|
/**
|
|
169
169
|
* Update the document Parts with the values from the Request
|
|
170
170
|
* Update Document Parts in Collection
|
|
171
171
|
*/
|
|
172
|
-
updateDocumentPartialRaw(requestParameters: UpdateDocumentPartialRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<UpdateResponse>>;
|
|
172
|
+
updateDocumentPartialRaw(requestParameters: UpdateDocumentPartialRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateResponse>>;
|
|
173
173
|
/**
|
|
174
174
|
* Update the document Parts with the values from the Request
|
|
175
175
|
* Update Document Parts in Collection
|
|
176
176
|
*/
|
|
177
|
-
updateDocumentPartial(requestParameters: UpdateDocumentPartialRequest, initOverrides?: RequestInit): Promise<UpdateResponse>;
|
|
177
|
+
updateDocumentPartial(requestParameters: UpdateDocumentPartialRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateResponse>;
|
|
178
178
|
/**
|
|
179
179
|
* Update many Document in given Collection
|
|
180
180
|
* Update many in Collection
|
|
181
181
|
*/
|
|
182
|
-
updateManyRaw(requestParameters: UpdateManyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<UpdateResponse>>;
|
|
182
|
+
updateManyRaw(requestParameters: UpdateManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateResponse>>;
|
|
183
183
|
/**
|
|
184
184
|
* Update many Document in given Collection
|
|
185
185
|
* Update many in Collection
|
|
186
186
|
*/
|
|
187
|
-
updateMany(requestParameters: UpdateManyRequest, initOverrides?: RequestInit): Promise<UpdateResponse>;
|
|
187
|
+
updateMany(requestParameters: UpdateManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateResponse>;
|
|
188
188
|
}
|