@sfxcode/nuxt-mongocamp-server 1.8.0 → 1.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 +2 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/api/.openapi-generator/FILES +20 -0
- 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 +183 -6
- package/dist/runtime/api/apis/CollectionApi.js +233 -40
- 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 +48 -2
- package/dist/runtime/api/apis/SystemApi.js +146 -3
- package/dist/runtime/api/docs/Capabilities.md +42 -0
- package/dist/runtime/api/docs/CapabilityLimits.md +36 -0
- package/dist/runtime/api/docs/CollectionApi.md +251 -6
- package/dist/runtime/api/docs/CollectionCollation.md +40 -0
- package/dist/runtime/api/docs/CollectionOptions.md +46 -0
- package/dist/runtime/api/docs/CollectionStatus.md +1 -1
- package/dist/runtime/api/docs/ConnectionStats.md +38 -0
- package/dist/runtime/api/docs/CreateCollectionResponse.md +34 -0
- 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/OpCounters.md +44 -0
- package/dist/runtime/api/docs/ReplicaSetState.md +40 -0
- package/dist/runtime/api/docs/SettingsResponse.md +1 -1
- package/dist/runtime/api/docs/SystemApi.md +210 -0
- package/dist/runtime/api/docs/SystemInfo.md +36 -0
- package/dist/runtime/api/docs/SystemStats.md +42 -0
- 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/Capabilities.d.ts +47 -0
- package/dist/runtime/api/models/Capabilities.js +39 -0
- package/dist/runtime/api/models/CapabilityLimits.d.ts +34 -0
- package/dist/runtime/api/models/CapabilityLimits.js +29 -0
- 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/CollectionCollation.d.ts +42 -0
- package/dist/runtime/api/models/CollectionCollation.js +32 -0
- package/dist/runtime/api/models/CollectionOptions.d.ts +57 -0
- package/dist/runtime/api/models/CollectionOptions.js +41 -0
- 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/ConnectionStats.d.ts +38 -0
- package/dist/runtime/api/models/ConnectionStats.js +32 -0
- 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/CreateCollectionResponse.d.ts +30 -0
- package/dist/runtime/api/models/CreateCollectionResponse.js +26 -0
- 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/OpCounters.d.ts +50 -0
- package/dist/runtime/api/models/OpCounters.js +41 -0
- 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/ReplicaSetState.d.ts +42 -0
- package/dist/runtime/api/models/ReplicaSetState.js +35 -0
- 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/SystemInfo.d.ts +34 -0
- package/dist/runtime/api/models/SystemInfo.js +28 -0
- package/dist/runtime/api/models/SystemStats.d.ts +49 -0
- package/dist/runtime/api/models/SystemStats.js +46 -0
- 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/models/index.d.ts +10 -0
- package/dist/runtime/api/models/index.js +10 -0
- 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 +7 -1
- package/dist/runtime/composables/mongocampStorage.js +12 -8
- package/package.json +4 -4
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 1.9.0
|
|
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
|
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
import * as runtime from "../runtime.js";
|
|
2
2
|
import {
|
|
3
|
-
CountResponseFromJSON
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
CountResponseFromJSON
|
|
4
|
+
} from "../models/CountResponse.js";
|
|
5
|
+
import {
|
|
6
|
+
DeleteResponseFromJSON
|
|
7
|
+
} from "../models/DeleteResponse.js";
|
|
8
|
+
import {
|
|
9
|
+
ImportResponseFromJSON
|
|
10
|
+
} from "../models/ImportResponse.js";
|
|
11
|
+
import {
|
|
12
|
+
InsertResponseFromJSON
|
|
13
|
+
} from "../models/InsertResponse.js";
|
|
14
|
+
import {
|
|
15
|
+
MongoFindRequestToJSON
|
|
16
|
+
} from "../models/MongoFindRequest.js";
|
|
17
|
+
import {
|
|
18
|
+
SearchRequestToJSON
|
|
19
|
+
} from "../models/SearchRequest.js";
|
|
20
|
+
import {
|
|
21
|
+
UpdateRequestToJSON
|
|
22
|
+
} from "../models/UpdateRequest.js";
|
|
23
|
+
import {
|
|
10
24
|
UpdateResponseFromJSON
|
|
11
|
-
} from "../models/
|
|
25
|
+
} from "../models/UpdateResponse.js";
|
|
12
26
|
export class DocumentApi extends runtime.BaseAPI {
|
|
13
27
|
/**
|
|
14
28
|
* Creates request options for _delete without sending the request
|
|
@@ -29,7 +43,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
29
43
|
const queryParameters = {};
|
|
30
44
|
const headerParameters = {};
|
|
31
45
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
32
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
46
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
33
47
|
}
|
|
34
48
|
if (this.configuration && this.configuration.accessToken) {
|
|
35
49
|
const token = this.configuration.accessToken;
|
|
@@ -42,8 +56,8 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
42
56
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
43
57
|
}
|
|
44
58
|
let urlPath = `/mongodb/collections/{collectionName}/documents/{documentId}`;
|
|
45
|
-
urlPath = urlPath.replace(
|
|
46
|
-
urlPath = urlPath.replace(
|
|
59
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
60
|
+
urlPath = urlPath.replace("{documentId}", encodeURIComponent(String(requestParameters["documentId"])));
|
|
47
61
|
return {
|
|
48
62
|
path: urlPath,
|
|
49
63
|
method: "DELETE",
|
|
@@ -84,7 +98,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
84
98
|
}
|
|
85
99
|
const headerParameters = {};
|
|
86
100
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
87
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
101
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
88
102
|
}
|
|
89
103
|
if (this.configuration && this.configuration.accessToken) {
|
|
90
104
|
const token = this.configuration.accessToken;
|
|
@@ -97,7 +111,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
97
111
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
98
112
|
}
|
|
99
113
|
let urlPath = `/mongodb/collections/{collectionName}/documents/count`;
|
|
100
|
-
urlPath = urlPath.replace(
|
|
114
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
101
115
|
return {
|
|
102
116
|
path: urlPath,
|
|
103
117
|
method: "GET",
|
|
@@ -148,7 +162,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
148
162
|
const headerParameters = {};
|
|
149
163
|
headerParameters["Content-Type"] = "application/json";
|
|
150
164
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
151
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
165
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
152
166
|
}
|
|
153
167
|
if (this.configuration && this.configuration.accessToken) {
|
|
154
168
|
const token = this.configuration.accessToken;
|
|
@@ -161,7 +175,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
161
175
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
162
176
|
}
|
|
163
177
|
let urlPath = `/mongodb/collections/{collectionName}/documents/many/delete`;
|
|
164
|
-
urlPath = urlPath.replace(
|
|
178
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
165
179
|
return {
|
|
166
180
|
path: urlPath,
|
|
167
181
|
method: "DELETE",
|
|
@@ -218,7 +232,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
218
232
|
}
|
|
219
233
|
const headerParameters = {};
|
|
220
234
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
221
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
235
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
222
236
|
}
|
|
223
237
|
if (this.configuration && this.configuration.accessToken) {
|
|
224
238
|
const token = this.configuration.accessToken;
|
|
@@ -231,7 +245,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
231
245
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
232
246
|
}
|
|
233
247
|
let urlPath = `/mongodb/collections/{collectionName}/documents/export`;
|
|
234
|
-
urlPath = urlPath.replace(
|
|
248
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
235
249
|
return {
|
|
236
250
|
path: urlPath,
|
|
237
251
|
method: "GET",
|
|
@@ -289,7 +303,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
289
303
|
const headerParameters = {};
|
|
290
304
|
headerParameters["Content-Type"] = "application/json";
|
|
291
305
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
292
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
306
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
293
307
|
}
|
|
294
308
|
if (this.configuration && this.configuration.accessToken) {
|
|
295
309
|
const token = this.configuration.accessToken;
|
|
@@ -302,7 +316,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
302
316
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
303
317
|
}
|
|
304
318
|
let urlPath = `/mongodb/collections/{collectionName}/documents`;
|
|
305
|
-
urlPath = urlPath.replace(
|
|
319
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
306
320
|
return {
|
|
307
321
|
path: urlPath,
|
|
308
322
|
method: "POST",
|
|
@@ -350,7 +364,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
350
364
|
}
|
|
351
365
|
const headerParameters = {};
|
|
352
366
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
353
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
367
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
354
368
|
}
|
|
355
369
|
if (this.configuration && this.configuration.accessToken) {
|
|
356
370
|
const token = this.configuration.accessToken;
|
|
@@ -363,8 +377,8 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
363
377
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
364
378
|
}
|
|
365
379
|
let urlPath = `/mongodb/collections/{collectionName}/documents/{documentId}`;
|
|
366
|
-
urlPath = urlPath.replace(
|
|
367
|
-
urlPath = urlPath.replace(
|
|
380
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
381
|
+
urlPath = urlPath.replace("{documentId}", encodeURIComponent(String(requestParameters["documentId"])));
|
|
368
382
|
return {
|
|
369
383
|
path: urlPath,
|
|
370
384
|
method: "GET",
|
|
@@ -409,7 +423,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
409
423
|
const headerParameters = {};
|
|
410
424
|
headerParameters["Content-Type"] = "text/plain";
|
|
411
425
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
412
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
426
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
413
427
|
}
|
|
414
428
|
if (this.configuration && this.configuration.accessToken) {
|
|
415
429
|
const token = this.configuration.accessToken;
|
|
@@ -422,7 +436,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
422
436
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
423
437
|
}
|
|
424
438
|
let urlPath = `/mongodb/collections/{collectionName}/documents/import`;
|
|
425
|
-
urlPath = urlPath.replace(
|
|
439
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
426
440
|
return {
|
|
427
441
|
path: urlPath,
|
|
428
442
|
method: "POST",
|
|
@@ -468,7 +482,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
468
482
|
const headerParameters = {};
|
|
469
483
|
headerParameters["Content-Type"] = "application/json";
|
|
470
484
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
471
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
485
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
472
486
|
}
|
|
473
487
|
if (this.configuration && this.configuration.accessToken) {
|
|
474
488
|
const token = this.configuration.accessToken;
|
|
@@ -481,7 +495,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
481
495
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
482
496
|
}
|
|
483
497
|
let urlPath = `/mongodb/collections/{collectionName}/documents`;
|
|
484
|
-
urlPath = urlPath.replace(
|
|
498
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
485
499
|
return {
|
|
486
500
|
path: urlPath,
|
|
487
501
|
method: "PUT",
|
|
@@ -524,7 +538,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
524
538
|
const headerParameters = {};
|
|
525
539
|
headerParameters["Content-Type"] = "application/json";
|
|
526
540
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
527
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
541
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
528
542
|
}
|
|
529
543
|
if (this.configuration && this.configuration.accessToken) {
|
|
530
544
|
const token = this.configuration.accessToken;
|
|
@@ -537,7 +551,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
537
551
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
538
552
|
}
|
|
539
553
|
let urlPath = `/mongodb/collections/{collectionName}/documents/many/insert`;
|
|
540
|
-
urlPath = urlPath.replace(
|
|
554
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
541
555
|
return {
|
|
542
556
|
path: urlPath,
|
|
543
557
|
method: "PUT",
|
|
@@ -594,7 +608,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
594
608
|
}
|
|
595
609
|
const headerParameters = {};
|
|
596
610
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
597
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
611
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
598
612
|
}
|
|
599
613
|
if (this.configuration && this.configuration.accessToken) {
|
|
600
614
|
const token = this.configuration.accessToken;
|
|
@@ -607,7 +621,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
607
621
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
608
622
|
}
|
|
609
623
|
let urlPath = `/mongodb/collections/{collectionName}/documents`;
|
|
610
|
-
urlPath = urlPath.replace(
|
|
624
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
611
625
|
return {
|
|
612
626
|
path: urlPath,
|
|
613
627
|
method: "GET",
|
|
@@ -661,7 +675,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
661
675
|
const headerParameters = {};
|
|
662
676
|
headerParameters["Content-Type"] = "application/json";
|
|
663
677
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
664
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
678
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
665
679
|
}
|
|
666
680
|
if (this.configuration && this.configuration.accessToken) {
|
|
667
681
|
const token = this.configuration.accessToken;
|
|
@@ -674,7 +688,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
674
688
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
675
689
|
}
|
|
676
690
|
let urlPath = `/mongodb/collections/{collectionName}/documents/search`;
|
|
677
|
-
urlPath = urlPath.replace(
|
|
691
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
678
692
|
return {
|
|
679
693
|
path: urlPath,
|
|
680
694
|
method: "POST",
|
|
@@ -726,7 +740,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
726
740
|
const headerParameters = {};
|
|
727
741
|
headerParameters["Content-Type"] = "application/json";
|
|
728
742
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
729
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
743
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
730
744
|
}
|
|
731
745
|
if (this.configuration && this.configuration.accessToken) {
|
|
732
746
|
const token = this.configuration.accessToken;
|
|
@@ -739,8 +753,8 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
739
753
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
740
754
|
}
|
|
741
755
|
let urlPath = `/mongodb/collections/{collectionName}/documents/{documentId}`;
|
|
742
|
-
urlPath = urlPath.replace(
|
|
743
|
-
urlPath = urlPath.replace(
|
|
756
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
757
|
+
urlPath = urlPath.replace("{documentId}", encodeURIComponent(String(requestParameters["documentId"])));
|
|
744
758
|
return {
|
|
745
759
|
path: urlPath,
|
|
746
760
|
method: "PATCH",
|
|
@@ -792,7 +806,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
792
806
|
const headerParameters = {};
|
|
793
807
|
headerParameters["Content-Type"] = "application/json";
|
|
794
808
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
795
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
809
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
796
810
|
}
|
|
797
811
|
if (this.configuration && this.configuration.accessToken) {
|
|
798
812
|
const token = this.configuration.accessToken;
|
|
@@ -805,8 +819,8 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
805
819
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
806
820
|
}
|
|
807
821
|
let urlPath = `/mongodb/collections/{collectionName}/documents/{documentId}/partial`;
|
|
808
|
-
urlPath = urlPath.replace(
|
|
809
|
-
urlPath = urlPath.replace(
|
|
822
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
823
|
+
urlPath = urlPath.replace("{documentId}", encodeURIComponent(String(requestParameters["documentId"])));
|
|
810
824
|
return {
|
|
811
825
|
path: urlPath,
|
|
812
826
|
method: "PATCH",
|
|
@@ -858,7 +872,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
858
872
|
const headerParameters = {};
|
|
859
873
|
headerParameters["Content-Type"] = "application/json";
|
|
860
874
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
861
|
-
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
875
|
+
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
862
876
|
}
|
|
863
877
|
if (this.configuration && this.configuration.accessToken) {
|
|
864
878
|
const token = this.configuration.accessToken;
|
|
@@ -871,7 +885,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
871
885
|
headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
|
|
872
886
|
}
|
|
873
887
|
let urlPath = `/mongodb/collections/{collectionName}/documents/many/update`;
|
|
874
|
-
urlPath = urlPath.replace(
|
|
888
|
+
urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
|
|
875
889
|
return {
|
|
876
890
|
path: urlPath,
|
|
877
891
|
method: "PATCH",
|