@sfxcode/nuxt-mongocamp-server 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/api/.openapi-generator/VERSION +1 -1
- package/dist/runtime/api/apis/AdminApi.d.ts +65 -2
- package/dist/runtime/api/apis/AdminApi.js +39 -27
- package/dist/runtime/api/apis/ApplicationApi.d.ts +17 -2
- package/dist/runtime/api/apis/ApplicationApi.js +17 -11
- package/dist/runtime/api/apis/AuthApi.d.ts +17 -2
- package/dist/runtime/api/apis/AuthApi.js +27 -15
- package/dist/runtime/api/apis/BucketApi.d.ts +12 -2
- package/dist/runtime/api/apis/BucketApi.js +11 -9
- package/dist/runtime/api/apis/CollectionApi.d.ts +107 -4
- package/dist/runtime/api/apis/CollectionApi.js +58 -38
- package/dist/runtime/api/apis/DatabaseApi.d.ts +12 -2
- package/dist/runtime/api/apis/DatabaseApi.js +12 -10
- package/dist/runtime/api/apis/DocumentApi.d.ts +178 -15
- package/dist/runtime/api/apis/DocumentApi.js +54 -40
- package/dist/runtime/api/apis/FileApi.d.ts +78 -4
- package/dist/runtime/api/apis/FileApi.js +34 -24
- package/dist/runtime/api/apis/IndexApi.d.ts +83 -2
- package/dist/runtime/api/apis/IndexApi.js +46 -34
- package/dist/runtime/api/apis/JobsApi.d.ts +28 -2
- package/dist/runtime/api/apis/JobsApi.js +19 -15
- package/dist/runtime/api/apis/SystemApi.d.ts +3 -2
- package/dist/runtime/api/apis/SystemApi.js +5 -3
- package/dist/runtime/api/docs/CollectionApi.md +2 -2
- package/dist/runtime/api/docs/CollectionStatus.md +1 -1
- package/dist/runtime/api/docs/DatabaseInfo.md +1 -1
- package/dist/runtime/api/docs/DocumentApi.md +19 -19
- package/dist/runtime/api/docs/FileInformation.md +1 -1
- package/dist/runtime/api/docs/IndexInfo.md +3 -3
- package/dist/runtime/api/docs/IndexOptionsRequest.md +2 -2
- package/dist/runtime/api/docs/IndexUsage.md +1 -1
- package/dist/runtime/api/docs/JsonSchemaDefinition.md +1 -1
- package/dist/runtime/api/docs/MongoFindRequest.md +3 -3
- package/dist/runtime/api/docs/MongoIndex.md +3 -3
- package/dist/runtime/api/docs/SettingsResponse.md +1 -1
- package/dist/runtime/api/docs/UpdateFileInformationRequest.md +1 -1
- package/dist/runtime/api/docs/UpdateRequest.md +2 -2
- package/dist/runtime/api/models/BucketInformation.d.ts +1 -9
- package/dist/runtime/api/models/ClusterInformation.d.ts +1 -5
- package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -11
- package/dist/runtime/api/models/CollectionPermission.d.ts +1 -9
- package/dist/runtime/api/models/CollectionStatus.d.ts +2 -28
- package/dist/runtime/api/models/CollectionStatus.js +3 -2
- package/dist/runtime/api/models/CollectionSummary.d.ts +1 -19
- package/dist/runtime/api/models/CopyRequest.d.ts +1 -9
- package/dist/runtime/api/models/CopyResponse.d.ts +1 -7
- package/dist/runtime/api/models/CountResponse.d.ts +1 -3
- package/dist/runtime/api/models/DatabaseInfo.d.ts +2 -12
- package/dist/runtime/api/models/DatabaseInfo.js +3 -2
- package/dist/runtime/api/models/DeleteResponse.d.ts +1 -5
- package/dist/runtime/api/models/ErrorDescription.d.ts +1 -7
- package/dist/runtime/api/models/FieldInfo.d.ts +1 -5
- package/dist/runtime/api/models/FieldTypeCount.d.ts +1 -5
- package/dist/runtime/api/models/FileInformation.d.ts +2 -14
- package/dist/runtime/api/models/FileInformation.js +4 -3
- package/dist/runtime/api/models/Grant.d.ts +1 -11
- package/dist/runtime/api/models/ImportResponse.d.ts +1 -11
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -7
- package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -3
- package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -3
- package/dist/runtime/api/models/IndexInfo.d.ts +4 -26
- package/dist/runtime/api/models/IndexKey.d.ts +1 -5
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +3 -29
- package/dist/runtime/api/models/IndexUsage.d.ts +2 -10
- package/dist/runtime/api/models/IndexUsage.js +3 -2
- package/dist/runtime/api/models/InsertError.d.ts +1 -7
- package/dist/runtime/api/models/InsertResponse.d.ts +1 -9
- package/dist/runtime/api/models/JobConfig.d.ts +1 -13
- package/dist/runtime/api/models/JobInformation.d.ts +1 -19
- package/dist/runtime/api/models/JobInformation.js +5 -4
- package/dist/runtime/api/models/JsonSchema.d.ts +1 -7
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +2 -12
- package/dist/runtime/api/models/JsonValueAny.d.ts +1 -3
- package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -3
- package/dist/runtime/api/models/JsonValueString.d.ts +1 -3
- package/dist/runtime/api/models/Login.d.ts +1 -5
- package/dist/runtime/api/models/LoginResult.d.ts +1 -7
- package/dist/runtime/api/models/LoginResult.js +3 -2
- package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -5
- package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -11
- package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -10
- package/dist/runtime/api/models/MongoIndex.d.ts +4 -28
- package/dist/runtime/api/models/MongoIndex.js +3 -2
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -3
- package/dist/runtime/api/models/PipelineStage.d.ts +1 -5
- package/dist/runtime/api/models/RenameRequest.d.ts +1 -5
- package/dist/runtime/api/models/RenameResponse.d.ts +1 -3
- package/dist/runtime/api/models/Role.d.ts +1 -7
- package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -9
- package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -13
- package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -7
- package/dist/runtime/api/models/SearchRequest.d.ts +1 -7
- package/dist/runtime/api/models/SettingsResponse.d.ts +2 -10
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +2 -6
- package/dist/runtime/api/models/UpdateRequest.d.ts +3 -7
- package/dist/runtime/api/models/UpdateResponse.d.ts +1 -9
- package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -5
- package/dist/runtime/api/models/UserInformation.d.ts +1 -9
- package/dist/runtime/api/models/UserProfile.d.ts +1 -11
- package/dist/runtime/api/models/Version.d.ts +1 -7
- package/dist/runtime/api/models/Version.js +3 -2
- package/dist/runtime/api/runtime.d.ts +35 -2
- package/dist/runtime/api/runtime.js +84 -4
- package/dist/runtime/composables/mongocampApiFiles.d.ts +1 -1
- package/dist/runtime/composables/mongocampStorage.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as runtime from "../runtime.js";
|
|
2
2
|
import {
|
|
3
|
-
DatabaseInfoFromJSON
|
|
3
|
+
DatabaseInfoFromJSON
|
|
4
|
+
} from "../models/DatabaseInfo.js";
|
|
5
|
+
import {
|
|
4
6
|
JsonValueBooleanFromJSON
|
|
5
|
-
} from "../models/
|
|
7
|
+
} from "../models/JsonValueBoolean.js";
|
|
6
8
|
export class DatabaseApi extends runtime.BaseAPI {
|
|
7
9
|
/**
|
|
8
10
|
* Creates request options for databaseInfos without sending the request
|
|
@@ -11,7 +13,7 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
11
13
|
const queryParameters = {};
|
|
12
14
|
const headerParameters = {};
|
|
13
15
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
14
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
16
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
15
17
|
}
|
|
16
18
|
if (this.configuration && this.configuration.accessToken) {
|
|
17
19
|
const token = this.configuration.accessToken;
|
|
@@ -61,7 +63,7 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
61
63
|
const queryParameters = {};
|
|
62
64
|
const headerParameters = {};
|
|
63
65
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
64
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
66
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
65
67
|
}
|
|
66
68
|
if (this.configuration && this.configuration.accessToken) {
|
|
67
69
|
const token = this.configuration.accessToken;
|
|
@@ -74,7 +76,7 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
74
76
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
75
77
|
}
|
|
76
78
|
let urlPath = `/mongodb/databases/{databaseName}`;
|
|
77
|
-
urlPath = urlPath.replace(
|
|
79
|
+
urlPath = urlPath.replace("{databaseName}", encodeURIComponent(String(requestParameters["databaseName"])));
|
|
78
80
|
return {
|
|
79
81
|
path: urlPath,
|
|
80
82
|
method: "DELETE",
|
|
@@ -112,7 +114,7 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
112
114
|
const queryParameters = {};
|
|
113
115
|
const headerParameters = {};
|
|
114
116
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
115
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
117
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
116
118
|
}
|
|
117
119
|
if (this.configuration && this.configuration.accessToken) {
|
|
118
120
|
const token = this.configuration.accessToken;
|
|
@@ -125,7 +127,7 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
125
127
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
126
128
|
}
|
|
127
129
|
let urlPath = `/mongodb/databases/{databaseName}`;
|
|
128
|
-
urlPath = urlPath.replace(
|
|
130
|
+
urlPath = urlPath.replace("{databaseName}", encodeURIComponent(String(requestParameters["databaseName"])));
|
|
129
131
|
return {
|
|
130
132
|
path: urlPath,
|
|
131
133
|
method: "GET",
|
|
@@ -163,7 +165,7 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
163
165
|
const queryParameters = {};
|
|
164
166
|
const headerParameters = {};
|
|
165
167
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
166
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
168
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
167
169
|
}
|
|
168
170
|
if (this.configuration && this.configuration.accessToken) {
|
|
169
171
|
const token = this.configuration.accessToken;
|
|
@@ -176,7 +178,7 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
176
178
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
177
179
|
}
|
|
178
180
|
let urlPath = `/mongodb/databases/{databaseName}/collections`;
|
|
179
|
-
urlPath = urlPath.replace(
|
|
181
|
+
urlPath = urlPath.replace("{databaseName}", encodeURIComponent(String(requestParameters["databaseName"])));
|
|
180
182
|
return {
|
|
181
183
|
path: urlPath,
|
|
182
184
|
method: "GET",
|
|
@@ -208,7 +210,7 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
208
210
|
const queryParameters = {};
|
|
209
211
|
const headerParameters = {};
|
|
210
212
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
211
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
213
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
212
214
|
}
|
|
213
215
|
if (this.configuration && this.configuration.accessToken) {
|
|
214
216
|
const token = this.configuration.accessToken;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* mongocamp-library
|
|
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.8.
|
|
5
|
+
* The version of the OpenAPI document: 1.8.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,95 +10,258 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type
|
|
13
|
+
import { type CountResponse } from '../models/CountResponse.js';
|
|
14
|
+
import { type DeleteResponse } from '../models/DeleteResponse.js';
|
|
15
|
+
import { type ImportResponse } from '../models/ImportResponse.js';
|
|
16
|
+
import { type InsertResponse } from '../models/InsertResponse.js';
|
|
17
|
+
import { type MongoFindRequest } from '../models/MongoFindRequest.js';
|
|
18
|
+
import { type SearchRequest } from '../models/SearchRequest.js';
|
|
19
|
+
import { type UpdateRequest } from '../models/UpdateRequest.js';
|
|
20
|
+
import { type UpdateResponse } from '../models/UpdateResponse.js';
|
|
14
21
|
export interface DeleteRequest {
|
|
22
|
+
/**
|
|
23
|
+
* The name of your MongoDb Collection
|
|
24
|
+
*/
|
|
15
25
|
collectionName: string;
|
|
26
|
+
/**
|
|
27
|
+
* DocumentId to delete
|
|
28
|
+
*/
|
|
16
29
|
documentId: string;
|
|
17
30
|
}
|
|
18
31
|
export interface CountDocumentsRequest {
|
|
32
|
+
/**
|
|
33
|
+
* The name of your MongoDb Collection
|
|
34
|
+
*/
|
|
19
35
|
collectionName: string;
|
|
36
|
+
/**
|
|
37
|
+
* Filter Query like on the list of documents, by default all documents are counted
|
|
38
|
+
*/
|
|
20
39
|
filter?: string;
|
|
21
40
|
}
|
|
22
41
|
export interface DeleteManyRequest {
|
|
42
|
+
/**
|
|
43
|
+
* The name of your MongoDb Collection
|
|
44
|
+
*/
|
|
23
45
|
collectionName: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
24
49
|
requestBody: {
|
|
25
|
-
[key: string]: any;
|
|
50
|
+
[key: string]: any | null;
|
|
26
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* Allow an empty filter, that matches all documents of the collection
|
|
54
|
+
*/
|
|
27
55
|
matchAll?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Filter Query like on the list of documents, as an alternative to the filter of the request body. Use only one of both.
|
|
58
|
+
*/
|
|
28
59
|
filter?: string;
|
|
29
60
|
}
|
|
30
61
|
export interface ExportDocumentsRequest {
|
|
62
|
+
/**
|
|
63
|
+
* The name of your MongoDb Collection
|
|
64
|
+
*/
|
|
31
65
|
collectionName: string;
|
|
66
|
+
/**
|
|
67
|
+
* ndjson (one JSON document per line), json (one array) or csv
|
|
68
|
+
*/
|
|
32
69
|
format?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Filter Query like on the list of documents, by default all documents are exported
|
|
72
|
+
*/
|
|
33
73
|
filter?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Sorting like on the list of documents, a leading - sorts descending
|
|
76
|
+
*/
|
|
34
77
|
sort?: Array<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The fields to export, for csv they are the columns in this order
|
|
80
|
+
*/
|
|
35
81
|
projection?: Array<string>;
|
|
82
|
+
/**
|
|
83
|
+
* The greatest number of documents, by default all
|
|
84
|
+
*/
|
|
36
85
|
limit?: number;
|
|
86
|
+
/**
|
|
87
|
+
* relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({"$oid": ...}, {"$date": ...}, {"$numberDecimal": ...}, canonical also {"$numberInt": ...}, {"$numberLong": ...} and {"$numberDouble": ...}). Without the parameter the documents are returned as before.
|
|
88
|
+
*/
|
|
37
89
|
extendedJson?: string;
|
|
38
90
|
}
|
|
39
91
|
export interface FindRequest {
|
|
92
|
+
/**
|
|
93
|
+
* The name of your MongoDb Collection
|
|
94
|
+
*/
|
|
40
95
|
collectionName: string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
41
99
|
mongoFindRequest: MongoFindRequest;
|
|
100
|
+
/**
|
|
101
|
+
* Count elements per page
|
|
102
|
+
*/
|
|
42
103
|
rowsPerPage?: number;
|
|
104
|
+
/**
|
|
105
|
+
* Requested page of the ResultSets
|
|
106
|
+
*/
|
|
43
107
|
page?: number;
|
|
108
|
+
/**
|
|
109
|
+
* relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({"$oid": ...}, {"$date": ...}, {"$numberDecimal": ...}, canonical also {"$numberInt": ...}, {"$numberLong": ...} and {"$numberDouble": ...}). Without the parameter the documents are returned as before.
|
|
110
|
+
*/
|
|
44
111
|
extendedJson?: string;
|
|
45
112
|
}
|
|
46
113
|
export interface GetDocumentRequest {
|
|
114
|
+
/**
|
|
115
|
+
* The name of your MongoDb Collection
|
|
116
|
+
*/
|
|
47
117
|
collectionName: string;
|
|
118
|
+
/**
|
|
119
|
+
* DocumentId to read
|
|
120
|
+
*/
|
|
48
121
|
documentId: string;
|
|
122
|
+
/**
|
|
123
|
+
* relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({"$oid": ...}, {"$date": ...}, {"$numberDecimal": ...}, canonical also {"$numberInt": ...}, {"$numberLong": ...} and {"$numberDouble": ...}). Without the parameter the documents are returned as before.
|
|
124
|
+
*/
|
|
49
125
|
extendedJson?: string;
|
|
50
126
|
}
|
|
51
127
|
export interface ImportDocumentsRequest {
|
|
128
|
+
/**
|
|
129
|
+
* The name of your MongoDb Collection
|
|
130
|
+
*/
|
|
52
131
|
collectionName: string;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
*/
|
|
53
135
|
body: string;
|
|
54
136
|
}
|
|
55
137
|
export interface InsertRequest {
|
|
138
|
+
/**
|
|
139
|
+
* The name of your MongoDb Collection
|
|
140
|
+
*/
|
|
56
141
|
collectionName: string;
|
|
142
|
+
/**
|
|
143
|
+
* JSON Representation for your Document.
|
|
144
|
+
*/
|
|
57
145
|
requestBody: {
|
|
58
|
-
[key: string]: any;
|
|
146
|
+
[key: string]: any | null;
|
|
59
147
|
};
|
|
60
148
|
}
|
|
61
149
|
export interface InsertManyRequest {
|
|
150
|
+
/**
|
|
151
|
+
* The name of your MongoDb Collection
|
|
152
|
+
*/
|
|
62
153
|
collectionName: string;
|
|
154
|
+
/**
|
|
155
|
+
* true (default): the insert stops at the first document that fails (answer 409 for a duplicate key). false: all documents that can be stored are stored, the others are listed in `errors` of the answer.
|
|
156
|
+
*/
|
|
63
157
|
ordered?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
*/
|
|
64
161
|
requestBody?: Array<{
|
|
65
|
-
[key: string]: any;
|
|
162
|
+
[key: string]: any | null;
|
|
66
163
|
}>;
|
|
67
164
|
}
|
|
68
165
|
export interface ListDocumentsRequest {
|
|
166
|
+
/**
|
|
167
|
+
* The name of your MongoDb Collection
|
|
168
|
+
*/
|
|
69
169
|
collectionName: string;
|
|
170
|
+
/**
|
|
171
|
+
* MongoDB Filter Query by Default all filter
|
|
172
|
+
*/
|
|
70
173
|
filter?: string;
|
|
174
|
+
/**
|
|
175
|
+
* MongoDB sorting
|
|
176
|
+
*/
|
|
71
177
|
sort?: Array<string>;
|
|
178
|
+
/**
|
|
179
|
+
* MongoDB projection
|
|
180
|
+
*/
|
|
72
181
|
projection?: Array<string>;
|
|
182
|
+
/**
|
|
183
|
+
* Count elements per page
|
|
184
|
+
*/
|
|
73
185
|
rowsPerPage?: number;
|
|
186
|
+
/**
|
|
187
|
+
* Requested page of the ResultSets
|
|
188
|
+
*/
|
|
74
189
|
page?: number;
|
|
190
|
+
/**
|
|
191
|
+
* relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({"$oid": ...}, {"$date": ...}, {"$numberDecimal": ...}, canonical also {"$numberInt": ...}, {"$numberLong": ...} and {"$numberDouble": ...}). Without the parameter the documents are returned as before.
|
|
192
|
+
*/
|
|
75
193
|
extendedJson?: string;
|
|
76
194
|
}
|
|
77
195
|
export interface SearchDocumentsRequest {
|
|
196
|
+
/**
|
|
197
|
+
* The name of your MongoDb Collection
|
|
198
|
+
*/
|
|
78
199
|
collectionName: string;
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
*/
|
|
79
203
|
searchRequest: SearchRequest;
|
|
204
|
+
/**
|
|
205
|
+
* Count elements per page
|
|
206
|
+
*/
|
|
80
207
|
rowsPerPage?: number;
|
|
208
|
+
/**
|
|
209
|
+
* Requested page of the ResultSets
|
|
210
|
+
*/
|
|
81
211
|
page?: number;
|
|
212
|
+
/**
|
|
213
|
+
* relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({"$oid": ...}, {"$date": ...}, {"$numberDecimal": ...}, canonical also {"$numberInt": ...}, {"$numberLong": ...} and {"$numberDouble": ...}). Without the parameter the documents are returned as before.
|
|
214
|
+
*/
|
|
82
215
|
extendedJson?: string;
|
|
83
216
|
}
|
|
84
217
|
export interface UpdateRequest {
|
|
218
|
+
/**
|
|
219
|
+
* The name of your MongoDb Collection
|
|
220
|
+
*/
|
|
85
221
|
collectionName: string;
|
|
222
|
+
/**
|
|
223
|
+
* DocumentId to update
|
|
224
|
+
*/
|
|
86
225
|
documentId: string;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
*/
|
|
87
229
|
requestBody: {
|
|
88
|
-
[key: string]: any;
|
|
230
|
+
[key: string]: any | null;
|
|
89
231
|
};
|
|
90
232
|
}
|
|
91
233
|
export interface UpdateDocumentPartialRequest {
|
|
234
|
+
/**
|
|
235
|
+
* The name of your MongoDb Collection
|
|
236
|
+
*/
|
|
92
237
|
collectionName: string;
|
|
238
|
+
/**
|
|
239
|
+
* DocumentId to update
|
|
240
|
+
*/
|
|
93
241
|
documentId: string;
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
*/
|
|
94
245
|
requestBody: {
|
|
95
|
-
[key: string]: any;
|
|
246
|
+
[key: string]: any | null;
|
|
96
247
|
};
|
|
97
248
|
}
|
|
98
249
|
export interface UpdateManyRequest {
|
|
250
|
+
/**
|
|
251
|
+
* The name of your MongoDb Collection
|
|
252
|
+
*/
|
|
99
253
|
collectionName: string;
|
|
254
|
+
/**
|
|
255
|
+
*
|
|
256
|
+
*/
|
|
100
257
|
updateRequest: UpdateRequest;
|
|
258
|
+
/**
|
|
259
|
+
* Allow an empty filter, that matches all documents of the collection
|
|
260
|
+
*/
|
|
101
261
|
matchAll?: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Filter Query like on the list of documents, as an alternative to the filter of the request body. Use only one of both.
|
|
264
|
+
*/
|
|
102
265
|
filter?: string;
|
|
103
266
|
}
|
|
104
267
|
/**
|
|
@@ -170,14 +333,14 @@ export declare class DocumentApi extends runtime.BaseAPI {
|
|
|
170
333
|
* Documents in Collection
|
|
171
334
|
*/
|
|
172
335
|
findRaw(requestParameters: FindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
|
|
173
|
-
[key: string]: any;
|
|
336
|
+
[key: string]: any | null;
|
|
174
337
|
}>>>;
|
|
175
338
|
/**
|
|
176
339
|
* Alternative to GET Route for more complex queries and URL max. Length
|
|
177
340
|
* Documents in Collection
|
|
178
341
|
*/
|
|
179
342
|
find(requestParameters: FindRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
|
|
180
|
-
[key: string]: any;
|
|
343
|
+
[key: string]: any | null;
|
|
181
344
|
}>>;
|
|
182
345
|
/**
|
|
183
346
|
* Creates request options for getDocument without sending the request
|
|
@@ -188,14 +351,14 @@ export declare class DocumentApi extends runtime.BaseAPI {
|
|
|
188
351
|
* Document from Collection
|
|
189
352
|
*/
|
|
190
353
|
getDocumentRaw(requestParameters: GetDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
191
|
-
[key: string]: any;
|
|
354
|
+
[key: string]: any | null;
|
|
192
355
|
}>>;
|
|
193
356
|
/**
|
|
194
357
|
* Get one Document from given Collection
|
|
195
358
|
* Document from Collection
|
|
196
359
|
*/
|
|
197
360
|
getDocument(requestParameters: GetDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
198
|
-
[key: string]: any;
|
|
361
|
+
[key: string]: any | null;
|
|
199
362
|
}>;
|
|
200
363
|
/**
|
|
201
364
|
* Creates request options for importDocuments without sending the request
|
|
@@ -248,14 +411,14 @@ export declare class DocumentApi extends runtime.BaseAPI {
|
|
|
248
411
|
* Documents in Collection
|
|
249
412
|
*/
|
|
250
413
|
listDocumentsRaw(requestParameters: ListDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
|
|
251
|
-
[key: string]: any;
|
|
414
|
+
[key: string]: any | null;
|
|
252
415
|
}>>>;
|
|
253
416
|
/**
|
|
254
417
|
* Get Documents paginated from given Collection
|
|
255
418
|
* Documents in Collection
|
|
256
419
|
*/
|
|
257
420
|
listDocuments(requestParameters: ListDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
|
|
258
|
-
[key: string]: any;
|
|
421
|
+
[key: string]: any | null;
|
|
259
422
|
}>>;
|
|
260
423
|
/**
|
|
261
424
|
* Creates request options for searchDocuments without sending the request
|
|
@@ -266,14 +429,14 @@ export declare class DocumentApi extends runtime.BaseAPI {
|
|
|
266
429
|
* Search Documents in Collection
|
|
267
430
|
*/
|
|
268
431
|
searchDocumentsRaw(requestParameters: SearchDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
|
|
269
|
-
[key: string]: any;
|
|
432
|
+
[key: string]: any | null;
|
|
270
433
|
}>>>;
|
|
271
434
|
/**
|
|
272
435
|
* The list of documents with the parameters in the request body: for filters that are too long for the URL (a URL of more than 2048 characters is refused by the server before the request is handled, without CORS headers). The filter is a Lucene query like in the list, the answer and the pagination headers are the same.
|
|
273
436
|
* Search Documents in Collection
|
|
274
437
|
*/
|
|
275
438
|
searchDocuments(requestParameters: SearchDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
|
|
276
|
-
[key: string]: any;
|
|
439
|
+
[key: string]: any | null;
|
|
277
440
|
}>>;
|
|
278
441
|
/**
|
|
279
442
|
* Creates request options for update without sending the request
|