@sfxcode/nuxt-mongocamp-server 1.9.2 → 2.0.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.
Files changed (119) hide show
  1. package/README.md +97 -7
  2. package/dist/module.d.mts +31 -1
  3. package/dist/module.json +2 -2
  4. package/dist/module.mjs +42 -4
  5. package/dist/runtime/api/apis/AdminApi.d.ts +9 -9
  6. package/dist/runtime/api/apis/AdminApi.js +6 -6
  7. package/dist/runtime/api/apis/ApplicationApi.d.ts +6 -6
  8. package/dist/runtime/api/apis/ApplicationApi.js +4 -4
  9. package/dist/runtime/api/apis/AuthApi.d.ts +7 -7
  10. package/dist/runtime/api/apis/AuthApi.js +6 -6
  11. package/dist/runtime/api/apis/BucketApi.d.ts +7 -7
  12. package/dist/runtime/api/apis/BucketApi.js +6 -6
  13. package/dist/runtime/api/apis/CollectionApi.d.ts +69 -28
  14. package/dist/runtime/api/apis/CollectionApi.js +46 -21
  15. package/dist/runtime/api/apis/DatabaseApi.d.ts +5 -5
  16. package/dist/runtime/api/apis/DatabaseApi.js +4 -4
  17. package/dist/runtime/api/apis/DocumentApi.d.ts +141 -24
  18. package/dist/runtime/api/apis/DocumentApi.js +85 -12
  19. package/dist/runtime/api/apis/FileApi.d.ts +38 -6
  20. package/dist/runtime/api/apis/FileApi.js +24 -4
  21. package/dist/runtime/api/apis/IndexApi.d.ts +6 -6
  22. package/dist/runtime/api/apis/IndexApi.js +4 -4
  23. package/dist/runtime/api/apis/JobsApi.d.ts +5 -5
  24. package/dist/runtime/api/apis/JobsApi.js +4 -4
  25. package/dist/runtime/api/apis/SystemApi.d.ts +1 -1
  26. package/dist/runtime/api/docs/AdminApi.md +7 -7
  27. package/dist/runtime/api/docs/ApplicationApi.md +4 -4
  28. package/dist/runtime/api/docs/AuthApi.md +3 -3
  29. package/dist/runtime/api/docs/BucketApi.md +3 -3
  30. package/dist/runtime/api/docs/CollectionApi.md +48 -36
  31. package/dist/runtime/api/docs/DatabaseApi.md +2 -2
  32. package/dist/runtime/api/docs/DocumentApi.md +64 -28
  33. package/dist/runtime/api/docs/FileApi.md +20 -8
  34. package/dist/runtime/api/docs/IndexApi.md +4 -4
  35. package/dist/runtime/api/docs/JobsApi.md +2 -2
  36. package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
  37. package/dist/runtime/api/models/Capabilities.d.ts +1 -1
  38. package/dist/runtime/api/models/CapabilityLimits.d.ts +1 -1
  39. package/dist/runtime/api/models/ClusterInformation.d.ts +1 -1
  40. package/dist/runtime/api/models/ClusterMemberInformation.d.ts +7 -4
  41. package/dist/runtime/api/models/CollectionCollation.d.ts +1 -1
  42. package/dist/runtime/api/models/CollectionOptions.d.ts +1 -1
  43. package/dist/runtime/api/models/CollectionPermission.d.ts +1 -1
  44. package/dist/runtime/api/models/CollectionStatus.d.ts +1 -1
  45. package/dist/runtime/api/models/CollectionSummary.d.ts +1 -1
  46. package/dist/runtime/api/models/ConnectionStats.d.ts +1 -1
  47. package/dist/runtime/api/models/CopyRequest.d.ts +1 -1
  48. package/dist/runtime/api/models/CopyResponse.d.ts +1 -1
  49. package/dist/runtime/api/models/CountResponse.d.ts +1 -1
  50. package/dist/runtime/api/models/CreateCollectionResponse.d.ts +1 -1
  51. package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
  52. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
  53. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
  54. package/dist/runtime/api/models/FieldInfo.d.ts +1 -1
  55. package/dist/runtime/api/models/FieldTypeCount.d.ts +1 -1
  56. package/dist/runtime/api/models/FileInformation.d.ts +1 -1
  57. package/dist/runtime/api/models/Grant.d.ts +1 -1
  58. package/dist/runtime/api/models/ImportResponse.d.ts +1 -1
  59. package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
  60. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
  61. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
  62. package/dist/runtime/api/models/IndexInfo.d.ts +1 -1
  63. package/dist/runtime/api/models/IndexKey.d.ts +1 -1
  64. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +3 -2
  65. package/dist/runtime/api/models/IndexUsage.d.ts +1 -1
  66. package/dist/runtime/api/models/InsertError.d.ts +1 -1
  67. package/dist/runtime/api/models/InsertResponse.d.ts +1 -1
  68. package/dist/runtime/api/models/JobConfig.d.ts +1 -1
  69. package/dist/runtime/api/models/JobInformation.d.ts +1 -1
  70. package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
  71. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
  72. package/dist/runtime/api/models/JsonValueAny.d.ts +1 -1
  73. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
  74. package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
  75. package/dist/runtime/api/models/Login.d.ts +1 -1
  76. package/dist/runtime/api/models/LoginResult.d.ts +1 -1
  77. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -1
  78. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -1
  79. package/dist/runtime/api/models/MongoFindRequest.d.ts +1 -1
  80. package/dist/runtime/api/models/MongoIndex.d.ts +1 -1
  81. package/dist/runtime/api/models/OpCounters.d.ts +1 -1
  82. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
  83. package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
  84. package/dist/runtime/api/models/RenameRequest.d.ts +1 -1
  85. package/dist/runtime/api/models/RenameResponse.d.ts +1 -1
  86. package/dist/runtime/api/models/ReplicaSetState.d.ts +1 -1
  87. package/dist/runtime/api/models/Role.d.ts +1 -1
  88. package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -1
  89. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -1
  90. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
  91. package/dist/runtime/api/models/SearchRequest.d.ts +1 -1
  92. package/dist/runtime/api/models/SettingsResponse.d.ts +5 -3
  93. package/dist/runtime/api/models/SystemInfo.d.ts +1 -1
  94. package/dist/runtime/api/models/SystemStats.d.ts +1 -1
  95. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
  96. package/dist/runtime/api/models/UpdateRequest.d.ts +1 -1
  97. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
  98. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -1
  99. package/dist/runtime/api/models/UserInformation.d.ts +1 -1
  100. package/dist/runtime/api/models/UserProfile.d.ts +1 -1
  101. package/dist/runtime/api/models/Version.d.ts +1 -1
  102. package/dist/runtime/api/runtime.d.ts +1 -1
  103. package/dist/runtime/composables/mongocampApi.js +7 -0
  104. package/dist/runtime/composables/mongocampSearch.d.ts +3 -1
  105. package/dist/runtime/composables/mongocampSearch.js +3 -3
  106. package/dist/runtime/server/composables/mongocampApi.d.ts +2 -1
  107. package/dist/runtime/server/composables/mongocampApi.js +11 -5
  108. package/dist/runtime/server/composables/mongocampServerApi.d.ts +2 -1
  109. package/dist/runtime/server/composables/mongocampServerApi.js +3 -7
  110. package/dist/runtime/server/mongocamp/core.d.ts +22 -0
  111. package/dist/runtime/server/mongocamp/core.js +32 -0
  112. package/dist/runtime/server/mongocamp/handler.d.ts +3 -0
  113. package/dist/runtime/server/mongocamp/handler.js +8 -0
  114. package/dist/runtime/server/mongocamp/plugin.d.ts +3 -0
  115. package/dist/runtime/server/mongocamp/plugin.js +7 -0
  116. package/dist/runtime/utils/extendedJson.d.ts +12 -0
  117. package/dist/runtime/utils/extendedJson.js +60 -0
  118. package/dist/types.d.mts +1 -1
  119. package/package.json +40 -27
@@ -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.9.1
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).
@@ -37,6 +37,10 @@ export interface CountDocumentsRequest {
37
37
  * Filter Query like on the list of documents, by default all documents are counted
38
38
  */
39
39
  filter?: string;
40
+ /**
41
+ * 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*
42
+ */
43
+ filterCaseInsensitive?: boolean;
40
44
  }
41
45
  export interface DeleteManyRequest {
42
46
  /**
@@ -57,6 +61,10 @@ export interface DeleteManyRequest {
57
61
  * Filter Query like on the list of documents, as an alternative to the filter of the request body. Use only one of both.
58
62
  */
59
63
  filter?: string;
64
+ /**
65
+ * 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*
66
+ */
67
+ filterCaseInsensitive?: boolean;
60
68
  }
61
69
  export interface ExportDocumentsRequest {
62
70
  /**
@@ -84,9 +92,13 @@ export interface ExportDocumentsRequest {
84
92
  */
85
93
  limit?: number;
86
94
  /**
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.
95
+ * 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). The default of a csv export is plain.
96
+ */
97
+ extendedJson?: ExportDocumentsExtendedJsonEnum;
98
+ /**
99
+ * 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*
88
100
  */
89
- extendedJson?: string;
101
+ filterCaseInsensitive?: boolean;
90
102
  }
91
103
  export interface FindRequest {
92
104
  /**
@@ -106,9 +118,17 @@ export interface FindRequest {
106
118
  */
107
119
  page?: number;
108
120
  /**
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.
121
+ * How the result is counted: exact (default) or none (no count headers, no count query)
122
+ */
123
+ count?: FindCountEnum;
124
+ /**
125
+ * Cursor paging: the x-pagination-next value of the previous page, empty for the first page. The sort always ends with _id; cannot be combined with page
126
+ */
127
+ after?: string;
128
+ /**
129
+ * 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).
110
130
  */
111
- extendedJson?: string;
131
+ extendedJson?: FindExtendedJsonEnum;
112
132
  }
113
133
  export interface GetDocumentRequest {
114
134
  /**
@@ -120,9 +140,9 @@ export interface GetDocumentRequest {
120
140
  */
121
141
  documentId: string;
122
142
  /**
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.
143
+ * 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).
124
144
  */
125
- extendedJson?: string;
145
+ extendedJson?: GetDocumentExtendedJsonEnum;
126
146
  }
127
147
  export interface ImportDocumentsRequest {
128
148
  /**
@@ -168,7 +188,7 @@ export interface ListDocumentsRequest {
168
188
  */
169
189
  collectionName: string;
170
190
  /**
171
- * MongoDB Filter Query by Default all filter
191
+ * MongoDB filter query, all documents by default
172
192
  */
173
193
  filter?: string;
174
194
  /**
@@ -188,9 +208,21 @@ export interface ListDocumentsRequest {
188
208
  */
189
209
  page?: number;
190
210
  /**
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.
211
+ * How the result is counted: exact (default) or none (no count headers, no count query)
192
212
  */
193
- extendedJson?: string;
213
+ count?: ListDocumentsCountEnum;
214
+ /**
215
+ * Cursor paging: the x-pagination-next value of the previous page, empty for the first page. The sort always ends with _id; cannot be combined with page
216
+ */
217
+ after?: string;
218
+ /**
219
+ * 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).
220
+ */
221
+ extendedJson?: ListDocumentsExtendedJsonEnum;
222
+ /**
223
+ * 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*
224
+ */
225
+ filterCaseInsensitive?: boolean;
194
226
  }
195
227
  export interface SearchDocumentsRequest {
196
228
  /**
@@ -210,9 +242,21 @@ export interface SearchDocumentsRequest {
210
242
  */
211
243
  page?: number;
212
244
  /**
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.
245
+ * How the result is counted: exact (default) or none (no count headers, no count query)
246
+ */
247
+ count?: SearchDocumentsCountEnum;
248
+ /**
249
+ * Cursor paging: the x-pagination-next value of the previous page, empty for the first page. The sort always ends with _id; cannot be combined with page
250
+ */
251
+ after?: string;
252
+ /**
253
+ * 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).
214
254
  */
215
- extendedJson?: string;
255
+ extendedJson?: SearchDocumentsExtendedJsonEnum;
256
+ /**
257
+ * 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*
258
+ */
259
+ filterCaseInsensitive?: boolean;
216
260
  }
217
261
  export interface UpdateRequest {
218
262
  /**
@@ -263,6 +307,10 @@ export interface UpdateManyRequest {
263
307
  * Filter Query like on the list of documents, as an alternative to the filter of the request body. Use only one of both.
264
308
  */
265
309
  filter?: string;
310
+ /**
311
+ * 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*
312
+ */
313
+ filterCaseInsensitive?: boolean;
266
314
  }
267
315
  /**
268
316
  *
@@ -273,12 +321,12 @@ export declare class DocumentApi extends runtime.BaseAPI {
273
321
  */
274
322
  _deleteRequestOpts(requestParameters: DeleteRequest): Promise<runtime.RequestOpts>;
275
323
  /**
276
- * Delete one Document from given Collection
324
+ * Delete one Document from given Collection. 404 for a document that does not exist (2.0.0).
277
325
  * Delete Document from Collection
278
326
  */
279
327
  _deleteRaw(requestParameters: DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteResponse>>;
280
328
  /**
281
- * Delete one Document from given Collection
329
+ * Delete one Document from given Collection. 404 for a document that does not exist (2.0.0).
282
330
  * Delete Document from Collection
283
331
  */
284
332
  _delete(requestParameters: DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteResponse>;
@@ -301,12 +349,12 @@ export declare class DocumentApi extends runtime.BaseAPI {
301
349
  */
302
350
  deleteManyRequestOpts(requestParameters: DeleteManyRequest): Promise<runtime.RequestOpts>;
303
351
  /**
304
- * Delete many Document in given Collection
352
+ * Delete many Documents in given Collection
305
353
  * Delete Many in Collection
306
354
  */
307
355
  deleteManyRaw(requestParameters: DeleteManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteResponse>>;
308
356
  /**
309
- * Delete many Document in given Collection
357
+ * Delete many Documents in given Collection
310
358
  * Delete Many in Collection
311
359
  */
312
360
  deleteMany(requestParameters: DeleteManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteResponse>;
@@ -365,12 +413,12 @@ export declare class DocumentApi extends runtime.BaseAPI {
365
413
  */
366
414
  importDocumentsRequestOpts(requestParameters: ImportDocumentsRequest): Promise<runtime.RequestOpts>;
367
415
  /**
368
- * Store the documents of the request body: one JSON document per line (NDJSON, as written by the export). A line is read like a document in the body of an insert (Extended JSON wrappers, dates). The body is read as a stream and the documents are stored in batches without ordering, a line that cannot be stored does not stop the others: the answer counts what was read, stored and failed and names the first failed lines (`errors`, `index` is the number of the line). The size of the body is limited by IMPORT_MAX_BYTES (413 above), there is no time limit.
416
+ * Store the documents of the request body: one JSON document per line (NDJSON, as written by the export). A line is read like a document in the body of an insert (Extended JSON wrappers, dates). The body is read as a stream and the documents are stored in batches without ordering, a line that cannot be stored does not stop the others: the answer counts what was read, stored and failed and names the first failed lines (`errors`, `index` is the number of the line). The size of the body is limited by IMPORT_MAX_BYTES (413 above), there is no time limit. Since 2.0.0 an import that is aborted (413, a line that is too long, a database or connection error) stores nothing: the documents stored before the abort are deleted again, x-error-additional-info says so.
369
417
  * Import Documents into a Collection
370
418
  */
371
419
  importDocumentsRaw(requestParameters: ImportDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImportResponse>>;
372
420
  /**
373
- * Store the documents of the request body: one JSON document per line (NDJSON, as written by the export). A line is read like a document in the body of an insert (Extended JSON wrappers, dates). The body is read as a stream and the documents are stored in batches without ordering, a line that cannot be stored does not stop the others: the answer counts what was read, stored and failed and names the first failed lines (`errors`, `index` is the number of the line). The size of the body is limited by IMPORT_MAX_BYTES (413 above), there is no time limit.
421
+ * Store the documents of the request body: one JSON document per line (NDJSON, as written by the export). A line is read like a document in the body of an insert (Extended JSON wrappers, dates). The body is read as a stream and the documents are stored in batches without ordering, a line that cannot be stored does not stop the others: the answer counts what was read, stored and failed and names the first failed lines (`errors`, `index` is the number of the line). The size of the body is limited by IMPORT_MAX_BYTES (413 above), there is no time limit. Since 2.0.0 an import that is aborted (413, a line that is too long, a database or connection error) stores nothing: the documents stored before the abort are deleted again, x-error-additional-info says so.
374
422
  * Import Documents into a Collection
375
423
  */
376
424
  importDocuments(requestParameters: ImportDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImportResponse>;
@@ -443,12 +491,12 @@ export declare class DocumentApi extends runtime.BaseAPI {
443
491
  */
444
492
  updateRequestOpts(requestParameters: UpdateRequest): Promise<runtime.RequestOpts>;
445
493
  /**
446
- * \'Replace\' one Document with the new document from Request in Collection
494
+ * \'Replace\' one Document with the new document from Request in Collection. 404 for a document that does not exist (2.0.0).
447
495
  * Update Document in Collection
448
496
  */
449
497
  updateRaw(requestParameters: UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateResponse>>;
450
498
  /**
451
- * \'Replace\' one Document with the new document from Request in Collection
499
+ * \'Replace\' one Document with the new document from Request in Collection. 404 for a document that does not exist (2.0.0).
452
500
  * Update Document in Collection
453
501
  */
454
502
  update(requestParameters: UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateResponse>;
@@ -457,12 +505,12 @@ export declare class DocumentApi extends runtime.BaseAPI {
457
505
  */
458
506
  updateDocumentPartialRequestOpts(requestParameters: UpdateDocumentPartialRequest): Promise<runtime.RequestOpts>;
459
507
  /**
460
- * Update the document Parts with the values from the Request
508
+ * Update the document Parts with the values from the Request. 404 for a document that does not exist (2.0.0).
461
509
  * Update Document Parts in Collection
462
510
  */
463
511
  updateDocumentPartialRaw(requestParameters: UpdateDocumentPartialRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateResponse>>;
464
512
  /**
465
- * Update the document Parts with the values from the Request
513
+ * Update the document Parts with the values from the Request. 404 for a document that does not exist (2.0.0).
466
514
  * Update Document Parts in Collection
467
515
  */
468
516
  updateDocumentPartial(requestParameters: UpdateDocumentPartialRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateResponse>;
@@ -471,13 +519,82 @@ export declare class DocumentApi extends runtime.BaseAPI {
471
519
  */
472
520
  updateManyRequestOpts(requestParameters: UpdateManyRequest): Promise<runtime.RequestOpts>;
473
521
  /**
474
- * Update many Document in given Collection
522
+ * Update many Documents in given Collection
475
523
  * Update many in Collection
476
524
  */
477
525
  updateManyRaw(requestParameters: UpdateManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateResponse>>;
478
526
  /**
479
- * Update many Document in given Collection
527
+ * Update many Documents in given Collection
480
528
  * Update many in Collection
481
529
  */
482
530
  updateMany(requestParameters: UpdateManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateResponse>;
483
531
  }
532
+ /**
533
+ * @export
534
+ */
535
+ export declare const ExportDocumentsExtendedJsonEnum: {
536
+ readonly Relaxed: "relaxed";
537
+ readonly Canonical: "canonical";
538
+ readonly Plain: "plain";
539
+ };
540
+ export type ExportDocumentsExtendedJsonEnum = typeof ExportDocumentsExtendedJsonEnum[keyof typeof ExportDocumentsExtendedJsonEnum];
541
+ /**
542
+ * @export
543
+ */
544
+ export declare const FindCountEnum: {
545
+ readonly Exact: "exact";
546
+ readonly None: "none";
547
+ };
548
+ export type FindCountEnum = typeof FindCountEnum[keyof typeof FindCountEnum];
549
+ /**
550
+ * @export
551
+ */
552
+ export declare const FindExtendedJsonEnum: {
553
+ readonly Relaxed: "relaxed";
554
+ readonly Canonical: "canonical";
555
+ readonly Plain: "plain";
556
+ };
557
+ export type FindExtendedJsonEnum = typeof FindExtendedJsonEnum[keyof typeof FindExtendedJsonEnum];
558
+ /**
559
+ * @export
560
+ */
561
+ export declare const GetDocumentExtendedJsonEnum: {
562
+ readonly Relaxed: "relaxed";
563
+ readonly Canonical: "canonical";
564
+ readonly Plain: "plain";
565
+ };
566
+ export type GetDocumentExtendedJsonEnum = typeof GetDocumentExtendedJsonEnum[keyof typeof GetDocumentExtendedJsonEnum];
567
+ /**
568
+ * @export
569
+ */
570
+ export declare const ListDocumentsCountEnum: {
571
+ readonly Exact: "exact";
572
+ readonly None: "none";
573
+ };
574
+ export type ListDocumentsCountEnum = typeof ListDocumentsCountEnum[keyof typeof ListDocumentsCountEnum];
575
+ /**
576
+ * @export
577
+ */
578
+ export declare const ListDocumentsExtendedJsonEnum: {
579
+ readonly Relaxed: "relaxed";
580
+ readonly Canonical: "canonical";
581
+ readonly Plain: "plain";
582
+ };
583
+ export type ListDocumentsExtendedJsonEnum = typeof ListDocumentsExtendedJsonEnum[keyof typeof ListDocumentsExtendedJsonEnum];
584
+ /**
585
+ * @export
586
+ */
587
+ export declare const SearchDocumentsCountEnum: {
588
+ readonly Exact: "exact";
589
+ readonly None: "none";
590
+ };
591
+ export type SearchDocumentsCountEnum = typeof SearchDocumentsCountEnum[keyof typeof SearchDocumentsCountEnum];
592
+ /**
593
+ * @export
594
+ */
595
+ export declare const SearchDocumentsExtendedJsonEnum: {
596
+ readonly Relaxed: "relaxed";
597
+ readonly Canonical: "canonical";
598
+ readonly Plain: "plain";
599
+ };
600
+ export type SearchDocumentsExtendedJsonEnum = typeof SearchDocumentsExtendedJsonEnum[keyof typeof SearchDocumentsExtendedJsonEnum];
@@ -66,7 +66,7 @@ export class DocumentApi extends runtime.BaseAPI {
66
66
  };
67
67
  }
68
68
  /**
69
- * Delete one Document from given Collection
69
+ * Delete one Document from given Collection. 404 for a document that does not exist (2.0.0).
70
70
  * Delete Document from Collection
71
71
  */
72
72
  async _deleteRaw(requestParameters, initOverrides) {
@@ -75,7 +75,7 @@ export class DocumentApi extends runtime.BaseAPI {
75
75
  return new runtime.JSONApiResponse(response, (jsonValue) => DeleteResponseFromJSON(jsonValue));
76
76
  }
77
77
  /**
78
- * Delete one Document from given Collection
78
+ * Delete one Document from given Collection. 404 for a document that does not exist (2.0.0).
79
79
  * Delete Document from Collection
80
80
  */
81
81
  async _delete(requestParameters, initOverrides) {
@@ -96,6 +96,9 @@ export class DocumentApi extends runtime.BaseAPI {
96
96
  if (requestParameters["filter"] != null) {
97
97
  queryParameters["filter"] = requestParameters["filter"];
98
98
  }
99
+ if (requestParameters["filterCaseInsensitive"] != null) {
100
+ queryParameters["filterCaseInsensitive"] = requestParameters["filterCaseInsensitive"];
101
+ }
99
102
  const headerParameters = {};
100
103
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
101
104
  headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
@@ -159,6 +162,9 @@ export class DocumentApi extends runtime.BaseAPI {
159
162
  if (requestParameters["filter"] != null) {
160
163
  queryParameters["filter"] = requestParameters["filter"];
161
164
  }
165
+ if (requestParameters["filterCaseInsensitive"] != null) {
166
+ queryParameters["filterCaseInsensitive"] = requestParameters["filterCaseInsensitive"];
167
+ }
162
168
  const headerParameters = {};
163
169
  headerParameters["Content-Type"] = "application/json";
164
170
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
@@ -185,7 +191,7 @@ export class DocumentApi extends runtime.BaseAPI {
185
191
  };
186
192
  }
187
193
  /**
188
- * Delete many Document in given Collection
194
+ * Delete many Documents in given Collection
189
195
  * Delete Many in Collection
190
196
  */
191
197
  async deleteManyRaw(requestParameters, initOverrides) {
@@ -194,7 +200,7 @@ export class DocumentApi extends runtime.BaseAPI {
194
200
  return new runtime.JSONApiResponse(response, (jsonValue) => DeleteResponseFromJSON(jsonValue));
195
201
  }
196
202
  /**
197
- * Delete many Document in given Collection
203
+ * Delete many Documents in given Collection
198
204
  * Delete Many in Collection
199
205
  */
200
206
  async deleteMany(requestParameters, initOverrides) {
@@ -230,6 +236,9 @@ export class DocumentApi extends runtime.BaseAPI {
230
236
  if (requestParameters["extendedJson"] != null) {
231
237
  queryParameters["extendedJson"] = requestParameters["extendedJson"];
232
238
  }
239
+ if (requestParameters["filterCaseInsensitive"] != null) {
240
+ queryParameters["filterCaseInsensitive"] = requestParameters["filterCaseInsensitive"];
241
+ }
233
242
  const headerParameters = {};
234
243
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
235
244
  headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
@@ -297,6 +306,12 @@ export class DocumentApi extends runtime.BaseAPI {
297
306
  if (requestParameters["page"] != null) {
298
307
  queryParameters["page"] = requestParameters["page"];
299
308
  }
309
+ if (requestParameters["count"] != null) {
310
+ queryParameters["count"] = requestParameters["count"];
311
+ }
312
+ if (requestParameters["after"] != null) {
313
+ queryParameters["after"] = requestParameters["after"];
314
+ }
300
315
  if (requestParameters["extendedJson"] != null) {
301
316
  queryParameters["extendedJson"] = requestParameters["extendedJson"];
302
317
  }
@@ -446,7 +461,7 @@ export class DocumentApi extends runtime.BaseAPI {
446
461
  };
447
462
  }
448
463
  /**
449
- * Store the documents of the request body: one JSON document per line (NDJSON, as written by the export). A line is read like a document in the body of an insert (Extended JSON wrappers, dates). The body is read as a stream and the documents are stored in batches without ordering, a line that cannot be stored does not stop the others: the answer counts what was read, stored and failed and names the first failed lines (`errors`, `index` is the number of the line). The size of the body is limited by IMPORT_MAX_BYTES (413 above), there is no time limit.
464
+ * Store the documents of the request body: one JSON document per line (NDJSON, as written by the export). A line is read like a document in the body of an insert (Extended JSON wrappers, dates). The body is read as a stream and the documents are stored in batches without ordering, a line that cannot be stored does not stop the others: the answer counts what was read, stored and failed and names the first failed lines (`errors`, `index` is the number of the line). The size of the body is limited by IMPORT_MAX_BYTES (413 above), there is no time limit. Since 2.0.0 an import that is aborted (413, a line that is too long, a database or connection error) stores nothing: the documents stored before the abort are deleted again, x-error-additional-info says so.
450
465
  * Import Documents into a Collection
451
466
  */
452
467
  async importDocumentsRaw(requestParameters, initOverrides) {
@@ -455,7 +470,7 @@ export class DocumentApi extends runtime.BaseAPI {
455
470
  return new runtime.JSONApiResponse(response, (jsonValue) => ImportResponseFromJSON(jsonValue));
456
471
  }
457
472
  /**
458
- * Store the documents of the request body: one JSON document per line (NDJSON, as written by the export). A line is read like a document in the body of an insert (Extended JSON wrappers, dates). The body is read as a stream and the documents are stored in batches without ordering, a line that cannot be stored does not stop the others: the answer counts what was read, stored and failed and names the first failed lines (`errors`, `index` is the number of the line). The size of the body is limited by IMPORT_MAX_BYTES (413 above), there is no time limit.
473
+ * Store the documents of the request body: one JSON document per line (NDJSON, as written by the export). A line is read like a document in the body of an insert (Extended JSON wrappers, dates). The body is read as a stream and the documents are stored in batches without ordering, a line that cannot be stored does not stop the others: the answer counts what was read, stored and failed and names the first failed lines (`errors`, `index` is the number of the line). The size of the body is limited by IMPORT_MAX_BYTES (413 above), there is no time limit. Since 2.0.0 an import that is aborted (413, a line that is too long, a database or connection error) stores nothing: the documents stored before the abort are deleted again, x-error-additional-info says so.
459
474
  * Import Documents into a Collection
460
475
  */
461
476
  async importDocuments(requestParameters, initOverrides) {
@@ -603,9 +618,18 @@ export class DocumentApi extends runtime.BaseAPI {
603
618
  if (requestParameters["page"] != null) {
604
619
  queryParameters["page"] = requestParameters["page"];
605
620
  }
621
+ if (requestParameters["count"] != null) {
622
+ queryParameters["count"] = requestParameters["count"];
623
+ }
624
+ if (requestParameters["after"] != null) {
625
+ queryParameters["after"] = requestParameters["after"];
626
+ }
606
627
  if (requestParameters["extendedJson"] != null) {
607
628
  queryParameters["extendedJson"] = requestParameters["extendedJson"];
608
629
  }
630
+ if (requestParameters["filterCaseInsensitive"] != null) {
631
+ queryParameters["filterCaseInsensitive"] = requestParameters["filterCaseInsensitive"];
632
+ }
609
633
  const headerParameters = {};
610
634
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
611
635
  headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
@@ -669,9 +693,18 @@ export class DocumentApi extends runtime.BaseAPI {
669
693
  if (requestParameters["page"] != null) {
670
694
  queryParameters["page"] = requestParameters["page"];
671
695
  }
696
+ if (requestParameters["count"] != null) {
697
+ queryParameters["count"] = requestParameters["count"];
698
+ }
699
+ if (requestParameters["after"] != null) {
700
+ queryParameters["after"] = requestParameters["after"];
701
+ }
672
702
  if (requestParameters["extendedJson"] != null) {
673
703
  queryParameters["extendedJson"] = requestParameters["extendedJson"];
674
704
  }
705
+ if (requestParameters["filterCaseInsensitive"] != null) {
706
+ queryParameters["filterCaseInsensitive"] = requestParameters["filterCaseInsensitive"];
707
+ }
675
708
  const headerParameters = {};
676
709
  headerParameters["Content-Type"] = "application/json";
677
710
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
@@ -764,7 +797,7 @@ export class DocumentApi extends runtime.BaseAPI {
764
797
  };
765
798
  }
766
799
  /**
767
- * \'Replace\' one Document with the new document from Request in Collection
800
+ * \'Replace\' one Document with the new document from Request in Collection. 404 for a document that does not exist (2.0.0).
768
801
  * Update Document in Collection
769
802
  */
770
803
  async updateRaw(requestParameters, initOverrides) {
@@ -773,7 +806,7 @@ export class DocumentApi extends runtime.BaseAPI {
773
806
  return new runtime.JSONApiResponse(response, (jsonValue) => UpdateResponseFromJSON(jsonValue));
774
807
  }
775
808
  /**
776
- * \'Replace\' one Document with the new document from Request in Collection
809
+ * \'Replace\' one Document with the new document from Request in Collection. 404 for a document that does not exist (2.0.0).
777
810
  * Update Document in Collection
778
811
  */
779
812
  async update(requestParameters, initOverrides) {
@@ -830,7 +863,7 @@ export class DocumentApi extends runtime.BaseAPI {
830
863
  };
831
864
  }
832
865
  /**
833
- * Update the document Parts with the values from the Request
866
+ * Update the document Parts with the values from the Request. 404 for a document that does not exist (2.0.0).
834
867
  * Update Document Parts in Collection
835
868
  */
836
869
  async updateDocumentPartialRaw(requestParameters, initOverrides) {
@@ -839,7 +872,7 @@ export class DocumentApi extends runtime.BaseAPI {
839
872
  return new runtime.JSONApiResponse(response, (jsonValue) => UpdateResponseFromJSON(jsonValue));
840
873
  }
841
874
  /**
842
- * Update the document Parts with the values from the Request
875
+ * Update the document Parts with the values from the Request. 404 for a document that does not exist (2.0.0).
843
876
  * Update Document Parts in Collection
844
877
  */
845
878
  async updateDocumentPartial(requestParameters, initOverrides) {
@@ -869,6 +902,9 @@ export class DocumentApi extends runtime.BaseAPI {
869
902
  if (requestParameters["filter"] != null) {
870
903
  queryParameters["filter"] = requestParameters["filter"];
871
904
  }
905
+ if (requestParameters["filterCaseInsensitive"] != null) {
906
+ queryParameters["filterCaseInsensitive"] = requestParameters["filterCaseInsensitive"];
907
+ }
872
908
  const headerParameters = {};
873
909
  headerParameters["Content-Type"] = "application/json";
874
910
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
@@ -895,7 +931,7 @@ export class DocumentApi extends runtime.BaseAPI {
895
931
  };
896
932
  }
897
933
  /**
898
- * Update many Document in given Collection
934
+ * Update many Documents in given Collection
899
935
  * Update many in Collection
900
936
  */
901
937
  async updateManyRaw(requestParameters, initOverrides) {
@@ -904,7 +940,7 @@ export class DocumentApi extends runtime.BaseAPI {
904
940
  return new runtime.JSONApiResponse(response, (jsonValue) => UpdateResponseFromJSON(jsonValue));
905
941
  }
906
942
  /**
907
- * Update many Document in given Collection
943
+ * Update many Documents in given Collection
908
944
  * Update many in Collection
909
945
  */
910
946
  async updateMany(requestParameters, initOverrides) {
@@ -912,3 +948,40 @@ export class DocumentApi extends runtime.BaseAPI {
912
948
  return await response.value();
913
949
  }
914
950
  }
951
+ export const ExportDocumentsExtendedJsonEnum = {
952
+ Relaxed: "relaxed",
953
+ Canonical: "canonical",
954
+ Plain: "plain"
955
+ };
956
+ export const FindCountEnum = {
957
+ Exact: "exact",
958
+ None: "none"
959
+ };
960
+ export const FindExtendedJsonEnum = {
961
+ Relaxed: "relaxed",
962
+ Canonical: "canonical",
963
+ Plain: "plain"
964
+ };
965
+ export const GetDocumentExtendedJsonEnum = {
966
+ Relaxed: "relaxed",
967
+ Canonical: "canonical",
968
+ Plain: "plain"
969
+ };
970
+ export const ListDocumentsCountEnum = {
971
+ Exact: "exact",
972
+ None: "none"
973
+ };
974
+ export const ListDocumentsExtendedJsonEnum = {
975
+ Relaxed: "relaxed",
976
+ Canonical: "canonical",
977
+ Plain: "plain"
978
+ };
979
+ export const SearchDocumentsCountEnum = {
980
+ Exact: "exact",
981
+ None: "none"
982
+ };
983
+ export const SearchDocumentsExtendedJsonEnum = {
984
+ Relaxed: "relaxed",
985
+ Canonical: "canonical",
986
+ Plain: "plain"
987
+ };
@@ -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.9.1
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).
@@ -43,6 +43,14 @@ export interface FindFilesRequest {
43
43
  * Requested page of the ResultSets
44
44
  */
45
45
  page?: number;
46
+ /**
47
+ * How the result is counted: exact (default) or none (no count headers, no count query)
48
+ */
49
+ count?: FindFilesCountEnum;
50
+ /**
51
+ * Cursor paging: the x-pagination-next value of the previous page, empty for the first page. The sort always ends with _id; cannot be combined with page
52
+ */
53
+ after?: string;
46
54
  }
47
55
  export interface GetFileRequest {
48
56
  /**
@@ -88,7 +96,7 @@ export interface ListFilesRequest {
88
96
  */
89
97
  bucketName: string;
90
98
  /**
91
- * MongoDB Filter Query by Default all filter
99
+ * MongoDB filter query, all documents by default
92
100
  */
93
101
  filter?: string;
94
102
  /**
@@ -107,6 +115,14 @@ export interface ListFilesRequest {
107
115
  * Requested page of the ResultSets
108
116
  */
109
117
  page?: number;
118
+ /**
119
+ * How the result is counted: exact (default) or none (no count headers, no count query)
120
+ */
121
+ count?: ListFilesCountEnum;
122
+ /**
123
+ * Cursor paging: the x-pagination-next value of the previous page, empty for the first page. The sort always ends with _id; cannot be combined with page
124
+ */
125
+ after?: string;
110
126
  }
111
127
  export interface UpdateFileInformationOperationRequest {
112
128
  /**
@@ -131,12 +147,12 @@ export declare class FileApi extends runtime.BaseAPI {
131
147
  */
132
148
  deleteFileRequestOpts(requestParameters: DeleteFileRequest): Promise<runtime.RequestOpts>;
133
149
  /**
134
- * Delete one File from given Bucket
150
+ * Delete one File from given Bucket. 404 for a file that does not exist (2.0.0).
135
151
  * Delete File from Bucket
136
152
  */
137
153
  deleteFileRaw(requestParameters: DeleteFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteResponse>>;
138
154
  /**
139
- * Delete one File from given Bucket
155
+ * Delete one File from given Bucket. 404 for a file that does not exist (2.0.0).
140
156
  * Delete File from Bucket
141
157
  */
142
158
  deleteFile(requestParameters: DeleteFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteResponse>;
@@ -215,13 +231,29 @@ export declare class FileApi extends runtime.BaseAPI {
215
231
  */
216
232
  updateFileInformationRequestOpts(requestParameters: UpdateFileInformationOperationRequest): Promise<runtime.RequestOpts>;
217
233
  /**
218
- * Replace MetaData and potential update FileName
234
+ * Replace the metadata and optionally the file name
219
235
  * Update FileInformation in Bucket
220
236
  */
221
237
  updateFileInformationRaw(requestParameters: UpdateFileInformationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateResponse>>;
222
238
  /**
223
- * Replace MetaData and potential update FileName
239
+ * Replace the metadata and optionally the file name
224
240
  * Update FileInformation in Bucket
225
241
  */
226
242
  updateFileInformation(requestParameters: UpdateFileInformationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateResponse>;
227
243
  }
244
+ /**
245
+ * @export
246
+ */
247
+ export declare const FindFilesCountEnum: {
248
+ readonly Exact: "exact";
249
+ readonly None: "none";
250
+ };
251
+ export type FindFilesCountEnum = typeof FindFilesCountEnum[keyof typeof FindFilesCountEnum];
252
+ /**
253
+ * @export
254
+ */
255
+ export declare const ListFilesCountEnum: {
256
+ readonly Exact: "exact";
257
+ readonly None: "none";
258
+ };
259
+ export type ListFilesCountEnum = typeof ListFilesCountEnum[keyof typeof ListFilesCountEnum];