@sfxcode/nuxt-mongocamp-server 1.10.0 → 2.1.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/README.md +22 -5
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -2
- package/dist/runtime/api/apis/AdminApi.d.ts +9 -9
- package/dist/runtime/api/apis/AdminApi.js +6 -6
- package/dist/runtime/api/apis/ApplicationApi.d.ts +6 -6
- package/dist/runtime/api/apis/ApplicationApi.js +4 -4
- package/dist/runtime/api/apis/AuthApi.d.ts +7 -7
- package/dist/runtime/api/apis/AuthApi.js +6 -6
- package/dist/runtime/api/apis/BucketApi.d.ts +7 -7
- package/dist/runtime/api/apis/BucketApi.js +6 -6
- package/dist/runtime/api/apis/CollectionApi.d.ts +69 -28
- package/dist/runtime/api/apis/CollectionApi.js +46 -21
- package/dist/runtime/api/apis/DatabaseApi.d.ts +5 -5
- package/dist/runtime/api/apis/DatabaseApi.js +4 -4
- package/dist/runtime/api/apis/DocumentApi.d.ts +141 -24
- package/dist/runtime/api/apis/DocumentApi.js +85 -12
- package/dist/runtime/api/apis/FileApi.d.ts +38 -6
- package/dist/runtime/api/apis/FileApi.js +24 -4
- package/dist/runtime/api/apis/IndexApi.d.ts +6 -6
- package/dist/runtime/api/apis/IndexApi.js +4 -4
- package/dist/runtime/api/apis/JobsApi.d.ts +5 -5
- package/dist/runtime/api/apis/JobsApi.js +4 -4
- package/dist/runtime/api/apis/SystemApi.d.ts +1 -1
- package/dist/runtime/api/docs/AdminApi.md +7 -7
- package/dist/runtime/api/docs/ApplicationApi.md +4 -4
- package/dist/runtime/api/docs/AuthApi.md +3 -3
- package/dist/runtime/api/docs/BucketApi.md +3 -3
- package/dist/runtime/api/docs/CollectionApi.md +48 -36
- package/dist/runtime/api/docs/DatabaseApi.md +2 -2
- package/dist/runtime/api/docs/DocumentApi.md +64 -28
- package/dist/runtime/api/docs/FileApi.md +20 -8
- package/dist/runtime/api/docs/IndexApi.md +4 -4
- package/dist/runtime/api/docs/JobsApi.md +2 -2
- package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
- package/dist/runtime/api/models/Capabilities.d.ts +1 -1
- package/dist/runtime/api/models/CapabilityLimits.d.ts +1 -1
- package/dist/runtime/api/models/ClusterInformation.d.ts +1 -1
- package/dist/runtime/api/models/ClusterMemberInformation.d.ts +7 -4
- package/dist/runtime/api/models/CollectionCollation.d.ts +1 -1
- package/dist/runtime/api/models/CollectionOptions.d.ts +1 -1
- package/dist/runtime/api/models/CollectionPermission.d.ts +1 -1
- package/dist/runtime/api/models/CollectionStatus.d.ts +1 -1
- package/dist/runtime/api/models/CollectionSummary.d.ts +1 -1
- package/dist/runtime/api/models/ConnectionStats.d.ts +1 -1
- package/dist/runtime/api/models/CopyRequest.d.ts +1 -1
- package/dist/runtime/api/models/CopyResponse.d.ts +1 -1
- package/dist/runtime/api/models/CountResponse.d.ts +1 -1
- package/dist/runtime/api/models/CreateCollectionResponse.d.ts +1 -1
- package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
- package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
- package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
- package/dist/runtime/api/models/FieldInfo.d.ts +1 -1
- package/dist/runtime/api/models/FieldTypeCount.d.ts +1 -1
- package/dist/runtime/api/models/FileInformation.d.ts +1 -1
- package/dist/runtime/api/models/Grant.d.ts +1 -1
- package/dist/runtime/api/models/ImportResponse.d.ts +1 -1
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
- package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
- package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
- package/dist/runtime/api/models/IndexInfo.d.ts +1 -1
- package/dist/runtime/api/models/IndexKey.d.ts +1 -1
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +3 -2
- package/dist/runtime/api/models/IndexUsage.d.ts +1 -1
- package/dist/runtime/api/models/InsertError.d.ts +1 -1
- package/dist/runtime/api/models/InsertResponse.d.ts +1 -1
- package/dist/runtime/api/models/JobConfig.d.ts +1 -1
- package/dist/runtime/api/models/JobInformation.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
- package/dist/runtime/api/models/JsonValueAny.d.ts +1 -1
- package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
- package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
- package/dist/runtime/api/models/Login.d.ts +1 -1
- package/dist/runtime/api/models/LoginResult.d.ts +1 -1
- package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -1
- package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -1
- package/dist/runtime/api/models/MongoFindRequest.d.ts +1 -1
- package/dist/runtime/api/models/MongoIndex.d.ts +1 -1
- package/dist/runtime/api/models/OpCounters.d.ts +1 -1
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
- package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
- package/dist/runtime/api/models/RenameRequest.d.ts +1 -1
- package/dist/runtime/api/models/RenameResponse.d.ts +1 -1
- package/dist/runtime/api/models/ReplicaSetState.d.ts +1 -1
- package/dist/runtime/api/models/Role.d.ts +1 -1
- package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -1
- package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -1
- package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
- package/dist/runtime/api/models/SearchRequest.d.ts +1 -1
- package/dist/runtime/api/models/SettingsResponse.d.ts +5 -3
- package/dist/runtime/api/models/SystemInfo.d.ts +1 -1
- package/dist/runtime/api/models/SystemStats.d.ts +1 -1
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
- package/dist/runtime/api/models/UpdateRequest.d.ts +1 -1
- package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
- package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -1
- package/dist/runtime/api/models/UserInformation.d.ts +1 -1
- package/dist/runtime/api/models/UserProfile.d.ts +1 -1
- package/dist/runtime/api/models/Version.d.ts +1 -1
- package/dist/runtime/api/runtime.d.ts +1 -1
- package/dist/runtime/composables/mongocampSearch.d.ts +3 -1
- package/dist/runtime/composables/mongocampSearch.js +3 -3
- package/dist/runtime/server/mongocamp/handler.js +9 -1
- package/dist/runtime/utils/extendedJson.d.ts +12 -0
- package/dist/runtime/utils/extendedJson.js +60 -0
- package/package.json +9 -3
|
@@ -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:
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -40,14 +40,22 @@ export interface AggregateRequest {
|
|
|
40
40
|
* Requested page of the ResultSets
|
|
41
41
|
*/
|
|
42
42
|
page?: number;
|
|
43
|
+
/**
|
|
44
|
+
* How the result is counted: exact (default) or none (no count headers, no count query)
|
|
45
|
+
*/
|
|
46
|
+
count?: AggregateCountEnum;
|
|
43
47
|
/**
|
|
44
48
|
* Filter Query like on the list of documents, applied as the first stage of the pipeline. Not possible for a pipeline that starts with $geoNear, $search or $vectorSearch.
|
|
45
49
|
*/
|
|
46
50
|
filter?: string;
|
|
47
51
|
/**
|
|
48
|
-
* relaxed or canonical: the documents with the types of their values
|
|
52
|
+
* relaxed (default since 2.0.0) or canonical: the documents as MongoDB Extended JSON with the types of their values ({"$oid": ...}, {"$date": ...}, {"$numberDecimal": ...}; canonical also {"$numberInt": ...}, {"$numberLong": ...} and {"$numberDouble": ...}); a text that looks like a date is {"$string": ...}. plain: the format of 1.x (ids and dates as strings, every number as JSON number, no types).
|
|
53
|
+
*/
|
|
54
|
+
extendedJson?: AggregateExtendedJsonEnum;
|
|
55
|
+
/**
|
|
56
|
+
* true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc*
|
|
49
57
|
*/
|
|
50
|
-
|
|
58
|
+
filterCaseInsensitive?: boolean;
|
|
51
59
|
}
|
|
52
60
|
export interface ClearCollectionRequest {
|
|
53
61
|
/**
|
|
@@ -64,6 +72,10 @@ export interface CopyCollectionRequest {
|
|
|
64
72
|
*
|
|
65
73
|
*/
|
|
66
74
|
copyRequest: CopyRequest;
|
|
75
|
+
/**
|
|
76
|
+
* true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc*
|
|
77
|
+
*/
|
|
78
|
+
filterCaseInsensitive?: boolean;
|
|
67
79
|
}
|
|
68
80
|
export interface CreateCollectionRequest {
|
|
69
81
|
/**
|
|
@@ -98,6 +110,10 @@ export interface DistinctRequest {
|
|
|
98
110
|
* Requested page of the ResultSets
|
|
99
111
|
*/
|
|
100
112
|
page?: number;
|
|
113
|
+
/**
|
|
114
|
+
* How the result is counted: exact (default) or none (no count headers, no count query)
|
|
115
|
+
*/
|
|
116
|
+
count?: DistinctCountEnum;
|
|
101
117
|
}
|
|
102
118
|
export interface GetCollectionFieldsRequest {
|
|
103
119
|
/**
|
|
@@ -105,7 +121,7 @@ export interface GetCollectionFieldsRequest {
|
|
|
105
121
|
*/
|
|
106
122
|
collectionName: string;
|
|
107
123
|
/**
|
|
108
|
-
*
|
|
124
|
+
* Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates.
|
|
109
125
|
*/
|
|
110
126
|
sampleSize?: number;
|
|
111
127
|
}
|
|
@@ -131,11 +147,11 @@ export interface GetFieldDetailsRequest {
|
|
|
131
147
|
*/
|
|
132
148
|
collectionName: string;
|
|
133
149
|
/**
|
|
134
|
-
* Number of documents that are analysed, 1000 by default.
|
|
150
|
+
* Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates.
|
|
135
151
|
*/
|
|
136
152
|
sampleSize?: number;
|
|
137
153
|
/**
|
|
138
|
-
* How deep
|
|
154
|
+
* How deep nested objects are analysed
|
|
139
155
|
*/
|
|
140
156
|
depth?: number;
|
|
141
157
|
}
|
|
@@ -145,13 +161,13 @@ export interface GetJsonSchemaRequest {
|
|
|
145
161
|
*/
|
|
146
162
|
collectionName: string;
|
|
147
163
|
/**
|
|
148
|
-
*
|
|
164
|
+
* Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates.
|
|
149
165
|
*/
|
|
150
166
|
sampleSize?: number;
|
|
151
167
|
/**
|
|
152
|
-
* How deep
|
|
168
|
+
* How deep nested objects are analysed
|
|
153
169
|
*/
|
|
154
|
-
|
|
170
|
+
depth?: number;
|
|
155
171
|
}
|
|
156
172
|
export interface GetSchemaAnalysisRequest {
|
|
157
173
|
/**
|
|
@@ -159,13 +175,13 @@ export interface GetSchemaAnalysisRequest {
|
|
|
159
175
|
*/
|
|
160
176
|
collectionName: string;
|
|
161
177
|
/**
|
|
162
|
-
*
|
|
178
|
+
* Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates.
|
|
163
179
|
*/
|
|
164
180
|
sampleSize?: number;
|
|
165
181
|
/**
|
|
166
|
-
* How deep
|
|
182
|
+
* How deep nested objects are analysed
|
|
167
183
|
*/
|
|
168
|
-
|
|
184
|
+
depth?: number;
|
|
169
185
|
}
|
|
170
186
|
export interface ListCollectionInformationRequest {
|
|
171
187
|
/**
|
|
@@ -230,12 +246,12 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
230
246
|
*/
|
|
231
247
|
clearCollectionRequestOpts(requestParameters: ClearCollectionRequest): Promise<runtime.RequestOpts>;
|
|
232
248
|
/**
|
|
233
|
-
* Delete all
|
|
249
|
+
* Delete all Documents in Collection. 404 for a collection that does not exist (2.0.0).
|
|
234
250
|
* Clear Collection
|
|
235
251
|
*/
|
|
236
252
|
clearCollectionRaw(requestParameters: ClearCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
|
|
237
253
|
/**
|
|
238
|
-
* Delete all
|
|
254
|
+
* Delete all Documents in Collection. 404 for a collection that does not exist (2.0.0).
|
|
239
255
|
* Clear Collection
|
|
240
256
|
*/
|
|
241
257
|
clearCollection(requestParameters: ClearCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
@@ -272,12 +288,12 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
272
288
|
*/
|
|
273
289
|
deleteCollectionRequestOpts(requestParameters: DeleteCollectionRequest): Promise<runtime.RequestOpts>;
|
|
274
290
|
/**
|
|
275
|
-
* Delete a given Collection
|
|
291
|
+
* Delete a given Collection. 404 for a collection that does not exist (2.0.0).
|
|
276
292
|
* Delete Collection
|
|
277
293
|
*/
|
|
278
294
|
deleteCollectionRaw(requestParameters: DeleteCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
|
|
279
295
|
/**
|
|
280
|
-
* Delete a given Collection
|
|
296
|
+
* Delete a given Collection. 404 for a collection that does not exist (2.0.0).
|
|
281
297
|
* Delete Collection
|
|
282
298
|
*/
|
|
283
299
|
deleteCollection(requestParameters: DeleteCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
@@ -300,12 +316,12 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
300
316
|
*/
|
|
301
317
|
getCollectionFieldsRequestOpts(requestParameters: GetCollectionFieldsRequest): Promise<runtime.RequestOpts>;
|
|
302
318
|
/**
|
|
303
|
-
* List the Fields in a given collection
|
|
319
|
+
* List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).
|
|
304
320
|
* Collection Fields
|
|
305
321
|
*/
|
|
306
322
|
getCollectionFieldsRaw(requestParameters: GetCollectionFieldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>>;
|
|
307
323
|
/**
|
|
308
|
-
* List the Fields in a given collection
|
|
324
|
+
* List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).
|
|
309
325
|
* Collection Fields
|
|
310
326
|
*/
|
|
311
327
|
getCollectionFields(requestParameters: GetCollectionFieldsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
@@ -314,12 +330,12 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
314
330
|
*/
|
|
315
331
|
getCollectionInformationRequestOpts(requestParameters: GetCollectionInformationRequest): Promise<runtime.RequestOpts>;
|
|
316
332
|
/**
|
|
317
|
-
* All Information about a single Collection
|
|
333
|
+
* All Information about a single Collection. 404 for a collection that does not exist (2.0.0).
|
|
318
334
|
* Collection Information
|
|
319
335
|
*/
|
|
320
336
|
getCollectionInformationRaw(requestParameters: GetCollectionInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectionStatus>>;
|
|
321
337
|
/**
|
|
322
|
-
* All Information about a single Collection
|
|
338
|
+
* All Information about a single Collection. 404 for a collection that does not exist (2.0.0).
|
|
323
339
|
* Collection Information
|
|
324
340
|
*/
|
|
325
341
|
getCollectionInformation(requestParameters: GetCollectionInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectionStatus>;
|
|
@@ -342,12 +358,12 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
342
358
|
*/
|
|
343
359
|
getFieldDetailsRequestOpts(requestParameters: GetFieldDetailsRequest): Promise<runtime.RequestOpts>;
|
|
344
360
|
/**
|
|
345
|
-
* All fields of a collection as a flat list, one entry per path (`address.city`, `tags[]` for the elements of an array) with the types of the values and how often every type was found in the analysed documents.
|
|
361
|
+
* All fields of a collection as a flat list, one entry per path (`address.city`, `tags[]` for the elements of an array) with the types of the values and how often every type was found in the analysed documents. 404 for a collection that does not exist (2.0.0).
|
|
346
362
|
* Fields of a Collection with types
|
|
347
363
|
*/
|
|
348
364
|
getFieldDetailsRaw(requestParameters: GetFieldDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<FieldInfo>>>;
|
|
349
365
|
/**
|
|
350
|
-
* All fields of a collection as a flat list, one entry per path (`address.city`, `tags[]` for the elements of an array) with the types of the values and how often every type was found in the analysed documents.
|
|
366
|
+
* All fields of a collection as a flat list, one entry per path (`address.city`, `tags[]` for the elements of an array) with the types of the values and how often every type was found in the analysed documents. 404 for a collection that does not exist (2.0.0).
|
|
351
367
|
* Fields of a Collection with types
|
|
352
368
|
*/
|
|
353
369
|
getFieldDetails(requestParameters: GetFieldDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<FieldInfo>>;
|
|
@@ -356,12 +372,12 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
356
372
|
*/
|
|
357
373
|
getJsonSchemaRequestOpts(requestParameters: GetJsonSchemaRequest): Promise<runtime.RequestOpts>;
|
|
358
374
|
/**
|
|
359
|
-
* List the Fields in a given collection
|
|
375
|
+
* List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).
|
|
360
376
|
* Collection Fields
|
|
361
377
|
*/
|
|
362
378
|
getJsonSchemaRaw(requestParameters: GetJsonSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonSchema>>;
|
|
363
379
|
/**
|
|
364
|
-
* List the Fields in a given collection
|
|
380
|
+
* List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).
|
|
365
381
|
* Collection Fields
|
|
366
382
|
*/
|
|
367
383
|
getJsonSchema(requestParameters: GetJsonSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonSchema>;
|
|
@@ -370,12 +386,12 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
370
386
|
*/
|
|
371
387
|
getSchemaAnalysisRequestOpts(requestParameters: GetSchemaAnalysisRequest): Promise<runtime.RequestOpts>;
|
|
372
388
|
/**
|
|
373
|
-
* List the Fields in a given collection
|
|
389
|
+
* List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).
|
|
374
390
|
* Collection Fields
|
|
375
391
|
*/
|
|
376
392
|
getSchemaAnalysisRaw(requestParameters: GetSchemaAnalysisRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SchemaAnalysis>>;
|
|
377
393
|
/**
|
|
378
|
-
* List the Fields in a given collection
|
|
394
|
+
* List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).
|
|
379
395
|
* Collection Fields
|
|
380
396
|
*/
|
|
381
397
|
getSchemaAnalysis(requestParameters: GetSchemaAnalysisRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SchemaAnalysis>;
|
|
@@ -412,12 +428,12 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
412
428
|
*/
|
|
413
429
|
listCollectionsByDatabaseRequestOpts(requestParameters: ListCollectionsByDatabaseRequest): Promise<runtime.RequestOpts>;
|
|
414
430
|
/**
|
|
415
|
-
* List of all Collections of the given database
|
|
431
|
+
* List of all Collections of the given database. 404 for a database (for administrators; every other user gets an empty list) that does not exist (2.0.0).
|
|
416
432
|
* List of Collections
|
|
417
433
|
*/
|
|
418
434
|
listCollectionsByDatabaseRaw(requestParameters: ListCollectionsByDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>>;
|
|
419
435
|
/**
|
|
420
|
-
* List of all Collections of the given database
|
|
436
|
+
* List of all Collections of the given database. 404 for a database (for administrators; every other user gets an empty list) that does not exist (2.0.0).
|
|
421
437
|
* List of Collections
|
|
422
438
|
*/
|
|
423
439
|
listCollectionsByDatabase(requestParameters: ListCollectionsByDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
@@ -450,3 +466,28 @@ export declare class CollectionApi extends runtime.BaseAPI {
|
|
|
450
466
|
*/
|
|
451
467
|
renameCollection(requestParameters: RenameCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RenameResponse>;
|
|
452
468
|
}
|
|
469
|
+
/**
|
|
470
|
+
* @export
|
|
471
|
+
*/
|
|
472
|
+
export declare const AggregateCountEnum: {
|
|
473
|
+
readonly Exact: "exact";
|
|
474
|
+
readonly None: "none";
|
|
475
|
+
};
|
|
476
|
+
export type AggregateCountEnum = typeof AggregateCountEnum[keyof typeof AggregateCountEnum];
|
|
477
|
+
/**
|
|
478
|
+
* @export
|
|
479
|
+
*/
|
|
480
|
+
export declare const AggregateExtendedJsonEnum: {
|
|
481
|
+
readonly Relaxed: "relaxed";
|
|
482
|
+
readonly Canonical: "canonical";
|
|
483
|
+
readonly Plain: "plain";
|
|
484
|
+
};
|
|
485
|
+
export type AggregateExtendedJsonEnum = typeof AggregateExtendedJsonEnum[keyof typeof AggregateExtendedJsonEnum];
|
|
486
|
+
/**
|
|
487
|
+
* @export
|
|
488
|
+
*/
|
|
489
|
+
export declare const DistinctCountEnum: {
|
|
490
|
+
readonly Exact: "exact";
|
|
491
|
+
readonly None: "none";
|
|
492
|
+
};
|
|
493
|
+
export type DistinctCountEnum = typeof DistinctCountEnum[keyof typeof DistinctCountEnum];
|
|
@@ -63,12 +63,18 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
63
63
|
if (requestParameters["page"] != null) {
|
|
64
64
|
queryParameters["page"] = requestParameters["page"];
|
|
65
65
|
}
|
|
66
|
+
if (requestParameters["count"] != null) {
|
|
67
|
+
queryParameters["count"] = requestParameters["count"];
|
|
68
|
+
}
|
|
66
69
|
if (requestParameters["filter"] != null) {
|
|
67
70
|
queryParameters["filter"] = requestParameters["filter"];
|
|
68
71
|
}
|
|
69
72
|
if (requestParameters["extendedJson"] != null) {
|
|
70
73
|
queryParameters["extendedJson"] = requestParameters["extendedJson"];
|
|
71
74
|
}
|
|
75
|
+
if (requestParameters["filterCaseInsensitive"] != null) {
|
|
76
|
+
queryParameters["filterCaseInsensitive"] = requestParameters["filterCaseInsensitive"];
|
|
77
|
+
}
|
|
72
78
|
const headerParameters = {};
|
|
73
79
|
headerParameters["Content-Type"] = "application/json";
|
|
74
80
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -146,7 +152,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
146
152
|
};
|
|
147
153
|
}
|
|
148
154
|
/**
|
|
149
|
-
* Delete all
|
|
155
|
+
* Delete all Documents in Collection. 404 for a collection that does not exist (2.0.0).
|
|
150
156
|
* Clear Collection
|
|
151
157
|
*/
|
|
152
158
|
async clearCollectionRaw(requestParameters, initOverrides) {
|
|
@@ -155,7 +161,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
155
161
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
156
162
|
}
|
|
157
163
|
/**
|
|
158
|
-
* Delete all
|
|
164
|
+
* Delete all Documents in Collection. 404 for a collection that does not exist (2.0.0).
|
|
159
165
|
* Clear Collection
|
|
160
166
|
*/
|
|
161
167
|
async clearCollection(requestParameters, initOverrides) {
|
|
@@ -179,6 +185,9 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
179
185
|
);
|
|
180
186
|
}
|
|
181
187
|
const queryParameters = {};
|
|
188
|
+
if (requestParameters["filterCaseInsensitive"] != null) {
|
|
189
|
+
queryParameters["filterCaseInsensitive"] = requestParameters["filterCaseInsensitive"];
|
|
190
|
+
}
|
|
182
191
|
const headerParameters = {};
|
|
183
192
|
headerParameters["Content-Type"] = "application/json";
|
|
184
193
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -309,7 +318,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
309
318
|
};
|
|
310
319
|
}
|
|
311
320
|
/**
|
|
312
|
-
* Delete a given Collection
|
|
321
|
+
* Delete a given Collection. 404 for a collection that does not exist (2.0.0).
|
|
313
322
|
* Delete Collection
|
|
314
323
|
*/
|
|
315
324
|
async deleteCollectionRaw(requestParameters, initOverrides) {
|
|
@@ -318,7 +327,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
318
327
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
319
328
|
}
|
|
320
329
|
/**
|
|
321
|
-
* Delete a given Collection
|
|
330
|
+
* Delete a given Collection. 404 for a collection that does not exist (2.0.0).
|
|
322
331
|
* Delete Collection
|
|
323
332
|
*/
|
|
324
333
|
async deleteCollection(requestParameters, initOverrides) {
|
|
@@ -348,6 +357,9 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
348
357
|
if (requestParameters["page"] != null) {
|
|
349
358
|
queryParameters["page"] = requestParameters["page"];
|
|
350
359
|
}
|
|
360
|
+
if (requestParameters["count"] != null) {
|
|
361
|
+
queryParameters["count"] = requestParameters["count"];
|
|
362
|
+
}
|
|
351
363
|
const headerParameters = {};
|
|
352
364
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
353
365
|
headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
|
|
@@ -401,7 +413,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
401
413
|
}
|
|
402
414
|
const queryParameters = {};
|
|
403
415
|
if (requestParameters["sampleSize"] != null) {
|
|
404
|
-
queryParameters["
|
|
416
|
+
queryParameters["sampleSize"] = requestParameters["sampleSize"];
|
|
405
417
|
}
|
|
406
418
|
const headerParameters = {};
|
|
407
419
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -427,7 +439,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
427
439
|
};
|
|
428
440
|
}
|
|
429
441
|
/**
|
|
430
|
-
* List the Fields in a given collection
|
|
442
|
+
* List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).
|
|
431
443
|
* Collection Fields
|
|
432
444
|
*/
|
|
433
445
|
async getCollectionFieldsRaw(requestParameters, initOverrides) {
|
|
@@ -436,7 +448,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
436
448
|
return new runtime.JSONApiResponse(response);
|
|
437
449
|
}
|
|
438
450
|
/**
|
|
439
|
-
* List the Fields in a given collection
|
|
451
|
+
* List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).
|
|
440
452
|
* Collection Fields
|
|
441
453
|
*/
|
|
442
454
|
async getCollectionFields(requestParameters, initOverrides) {
|
|
@@ -481,7 +493,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
481
493
|
};
|
|
482
494
|
}
|
|
483
495
|
/**
|
|
484
|
-
* All Information about a single Collection
|
|
496
|
+
* All Information about a single Collection. 404 for a collection that does not exist (2.0.0).
|
|
485
497
|
* Collection Information
|
|
486
498
|
*/
|
|
487
499
|
async getCollectionInformationRaw(requestParameters, initOverrides) {
|
|
@@ -490,7 +502,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
490
502
|
return new runtime.JSONApiResponse(response, (jsonValue) => CollectionStatusFromJSON(jsonValue));
|
|
491
503
|
}
|
|
492
504
|
/**
|
|
493
|
-
* All Information about a single Collection
|
|
505
|
+
* All Information about a single Collection. 404 for a collection that does not exist (2.0.0).
|
|
494
506
|
* Collection Information
|
|
495
507
|
*/
|
|
496
508
|
async getCollectionInformation(requestParameters, initOverrides) {
|
|
@@ -589,7 +601,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
589
601
|
};
|
|
590
602
|
}
|
|
591
603
|
/**
|
|
592
|
-
* All fields of a collection as a flat list, one entry per path (`address.city`, `tags[]` for the elements of an array) with the types of the values and how often every type was found in the analysed documents.
|
|
604
|
+
* All fields of a collection as a flat list, one entry per path (`address.city`, `tags[]` for the elements of an array) with the types of the values and how often every type was found in the analysed documents. 404 for a collection that does not exist (2.0.0).
|
|
593
605
|
* Fields of a Collection with types
|
|
594
606
|
*/
|
|
595
607
|
async getFieldDetailsRaw(requestParameters, initOverrides) {
|
|
@@ -598,7 +610,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
598
610
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(FieldInfoFromJSON));
|
|
599
611
|
}
|
|
600
612
|
/**
|
|
601
|
-
* All fields of a collection as a flat list, one entry per path (`address.city`, `tags[]` for the elements of an array) with the types of the values and how often every type was found in the analysed documents.
|
|
613
|
+
* All fields of a collection as a flat list, one entry per path (`address.city`, `tags[]` for the elements of an array) with the types of the values and how often every type was found in the analysed documents. 404 for a collection that does not exist (2.0.0).
|
|
602
614
|
* Fields of a Collection with types
|
|
603
615
|
*/
|
|
604
616
|
async getFieldDetails(requestParameters, initOverrides) {
|
|
@@ -619,8 +631,8 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
619
631
|
if (requestParameters["sampleSize"] != null) {
|
|
620
632
|
queryParameters["sampleSize"] = requestParameters["sampleSize"];
|
|
621
633
|
}
|
|
622
|
-
if (requestParameters["
|
|
623
|
-
queryParameters["
|
|
634
|
+
if (requestParameters["depth"] != null) {
|
|
635
|
+
queryParameters["depth"] = requestParameters["depth"];
|
|
624
636
|
}
|
|
625
637
|
const headerParameters = {};
|
|
626
638
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -646,7 +658,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
646
658
|
};
|
|
647
659
|
}
|
|
648
660
|
/**
|
|
649
|
-
* List the Fields in a given collection
|
|
661
|
+
* List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).
|
|
650
662
|
* Collection Fields
|
|
651
663
|
*/
|
|
652
664
|
async getJsonSchemaRaw(requestParameters, initOverrides) {
|
|
@@ -655,7 +667,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
655
667
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonSchemaFromJSON(jsonValue));
|
|
656
668
|
}
|
|
657
669
|
/**
|
|
658
|
-
* List the Fields in a given collection
|
|
670
|
+
* List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).
|
|
659
671
|
* Collection Fields
|
|
660
672
|
*/
|
|
661
673
|
async getJsonSchema(requestParameters, initOverrides) {
|
|
@@ -676,8 +688,8 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
676
688
|
if (requestParameters["sampleSize"] != null) {
|
|
677
689
|
queryParameters["sampleSize"] = requestParameters["sampleSize"];
|
|
678
690
|
}
|
|
679
|
-
if (requestParameters["
|
|
680
|
-
queryParameters["
|
|
691
|
+
if (requestParameters["depth"] != null) {
|
|
692
|
+
queryParameters["depth"] = requestParameters["depth"];
|
|
681
693
|
}
|
|
682
694
|
const headerParameters = {};
|
|
683
695
|
if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
|
|
@@ -703,7 +715,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
703
715
|
};
|
|
704
716
|
}
|
|
705
717
|
/**
|
|
706
|
-
* List the Fields in a given collection
|
|
718
|
+
* List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).
|
|
707
719
|
* Collection Fields
|
|
708
720
|
*/
|
|
709
721
|
async getSchemaAnalysisRaw(requestParameters, initOverrides) {
|
|
@@ -712,7 +724,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
712
724
|
return new runtime.JSONApiResponse(response, (jsonValue) => SchemaAnalysisFromJSON(jsonValue));
|
|
713
725
|
}
|
|
714
726
|
/**
|
|
715
|
-
* List the Fields in a given collection
|
|
727
|
+
* List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).
|
|
716
728
|
* Collection Fields
|
|
717
729
|
*/
|
|
718
730
|
async getSchemaAnalysis(requestParameters, initOverrides) {
|
|
@@ -848,7 +860,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
848
860
|
};
|
|
849
861
|
}
|
|
850
862
|
/**
|
|
851
|
-
* List of all Collections of the given database
|
|
863
|
+
* List of all Collections of the given database. 404 for a database (for administrators; every other user gets an empty list) that does not exist (2.0.0).
|
|
852
864
|
* List of Collections
|
|
853
865
|
*/
|
|
854
866
|
async listCollectionsByDatabaseRaw(requestParameters, initOverrides) {
|
|
@@ -857,7 +869,7 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
857
869
|
return new runtime.JSONApiResponse(response);
|
|
858
870
|
}
|
|
859
871
|
/**
|
|
860
|
-
* List of all Collections of the given database
|
|
872
|
+
* List of all Collections of the given database. 404 for a database (for administrators; every other user gets an empty list) that does not exist (2.0.0).
|
|
861
873
|
* List of Collections
|
|
862
874
|
*/
|
|
863
875
|
async listCollectionsByDatabase(requestParameters, initOverrides) {
|
|
@@ -983,3 +995,16 @@ export class CollectionApi extends runtime.BaseAPI {
|
|
|
983
995
|
return await response.value();
|
|
984
996
|
}
|
|
985
997
|
}
|
|
998
|
+
export const AggregateCountEnum = {
|
|
999
|
+
Exact: "exact",
|
|
1000
|
+
None: "none"
|
|
1001
|
+
};
|
|
1002
|
+
export const AggregateExtendedJsonEnum = {
|
|
1003
|
+
Relaxed: "relaxed",
|
|
1004
|
+
Canonical: "canonical",
|
|
1005
|
+
Plain: "plain"
|
|
1006
|
+
};
|
|
1007
|
+
export const DistinctCountEnum = {
|
|
1008
|
+
Exact: "exact",
|
|
1009
|
+
None: "none"
|
|
1010
|
+
};
|
|
@@ -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:
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -53,12 +53,12 @@ export declare class DatabaseApi extends runtime.BaseAPI {
|
|
|
53
53
|
*/
|
|
54
54
|
deleteDatabaseRequestOpts(requestParameters: DeleteDatabaseRequest): Promise<runtime.RequestOpts>;
|
|
55
55
|
/**
|
|
56
|
-
* Delete given Database
|
|
56
|
+
* Delete given Database. 404 for a database that does not exist (2.0.0).
|
|
57
57
|
* Delete Database
|
|
58
58
|
*/
|
|
59
59
|
deleteDatabaseRaw(requestParameters: DeleteDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
|
|
60
60
|
/**
|
|
61
|
-
* Delete given Database
|
|
61
|
+
* Delete given Database. 404 for a database that does not exist (2.0.0).
|
|
62
62
|
* Delete Database
|
|
63
63
|
*/
|
|
64
64
|
deleteDatabase(requestParameters: DeleteDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
|
|
@@ -81,12 +81,12 @@ export declare class DatabaseApi extends runtime.BaseAPI {
|
|
|
81
81
|
*/
|
|
82
82
|
listCollectionsByDatabaseRequestOpts(requestParameters: ListCollectionsByDatabaseRequest): Promise<runtime.RequestOpts>;
|
|
83
83
|
/**
|
|
84
|
-
* List of all Collections of the given database
|
|
84
|
+
* List of all Collections of the given database. 404 for a database (for administrators; every other user gets an empty list) that does not exist (2.0.0).
|
|
85
85
|
* List of Collections
|
|
86
86
|
*/
|
|
87
87
|
listCollectionsByDatabaseRaw(requestParameters: ListCollectionsByDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>>;
|
|
88
88
|
/**
|
|
89
|
-
* List of all Collections of the given database
|
|
89
|
+
* List of all Collections of the given database. 404 for a database (for administrators; every other user gets an empty list) that does not exist (2.0.0).
|
|
90
90
|
* List of Collections
|
|
91
91
|
*/
|
|
92
92
|
listCollectionsByDatabase(requestParameters: ListCollectionsByDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
@@ -85,7 +85,7 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
|
-
* Delete given Database
|
|
88
|
+
* Delete given Database. 404 for a database that does not exist (2.0.0).
|
|
89
89
|
* Delete Database
|
|
90
90
|
*/
|
|
91
91
|
async deleteDatabaseRaw(requestParameters, initOverrides) {
|
|
@@ -94,7 +94,7 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
94
94
|
return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
|
-
* Delete given Database
|
|
97
|
+
* Delete given Database. 404 for a database that does not exist (2.0.0).
|
|
98
98
|
* Delete Database
|
|
99
99
|
*/
|
|
100
100
|
async deleteDatabase(requestParameters, initOverrides) {
|
|
@@ -187,7 +187,7 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
189
|
/**
|
|
190
|
-
* List of all Collections of the given database
|
|
190
|
+
* List of all Collections of the given database. 404 for a database (for administrators; every other user gets an empty list) that does not exist (2.0.0).
|
|
191
191
|
* List of Collections
|
|
192
192
|
*/
|
|
193
193
|
async listCollectionsByDatabaseRaw(requestParameters, initOverrides) {
|
|
@@ -196,7 +196,7 @@ export class DatabaseApi extends runtime.BaseAPI {
|
|
|
196
196
|
return new runtime.JSONApiResponse(response);
|
|
197
197
|
}
|
|
198
198
|
/**
|
|
199
|
-
* List of all Collections of the given database
|
|
199
|
+
* List of all Collections of the given database. 404 for a database (for administrators; every other user gets an empty list) that does not exist (2.0.0).
|
|
200
200
|
* List of Collections
|
|
201
201
|
*/
|
|
202
202
|
async listCollectionsByDatabase(requestParameters, initOverrides) {
|