@sfxcode/nuxt-mongocamp-server 2.1.0 → 2.3.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 (80) hide show
  1. package/README.md +71 -19
  2. package/dist/module.d.mts +16 -0
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +103 -11
  5. package/dist/runtime/api/.openapi-generator/FILES +24 -2
  6. package/dist/runtime/api/apis/CollectionApi.d.ts +137 -0
  7. package/dist/runtime/api/apis/CollectionApi.js +213 -0
  8. package/dist/runtime/api/apis/DocumentApi.d.ts +225 -8
  9. package/dist/runtime/api/apis/DocumentApi.js +364 -5
  10. package/dist/runtime/api/docs/AuditEntry.md +52 -0
  11. package/dist/runtime/api/docs/CollectionApi.md +272 -2
  12. package/dist/runtime/api/docs/CollectionDeclaration.md +52 -0
  13. package/dist/runtime/api/docs/CollectionDeclarationAudit.md +34 -0
  14. package/dist/runtime/api/docs/CollectionDeclarationOwner.md +36 -0
  15. package/dist/runtime/api/docs/CollectionDeclarationSoftDelete.md +36 -0
  16. package/dist/runtime/api/docs/CollectionDeclarationTimestamps.md +40 -0
  17. package/dist/runtime/api/docs/CollectionDeclarationVersioned.md +38 -0
  18. package/dist/runtime/api/docs/CountRequest.md +34 -0
  19. package/dist/runtime/api/docs/DocumentApi.md +467 -12
  20. package/dist/runtime/api/docs/ErrorDescription.md +4 -0
  21. package/dist/runtime/api/docs/ExportRequest.md +40 -0
  22. package/dist/runtime/api/docs/MongoAggregateRequest.md +2 -0
  23. package/dist/runtime/api/docs/SettingsResponse.md +0 -6
  24. package/dist/runtime/api/docs/SuggestedValidator.md +40 -0
  25. package/dist/runtime/api/docs/{UpdateRequest.md → UpdateManyRequest.md} +4 -4
  26. package/dist/runtime/api/docs/ValidationIssue.md +36 -0
  27. package/dist/runtime/api/models/AuditEntry.d.ts +88 -0
  28. package/dist/runtime/api/models/AuditEntry.js +56 -0
  29. package/dist/runtime/api/models/CollectionDeclaration.d.ts +80 -0
  30. package/dist/runtime/api/models/CollectionDeclaration.js +73 -0
  31. package/dist/runtime/api/models/CollectionDeclarationAudit.d.ts +30 -0
  32. package/dist/runtime/api/models/CollectionDeclarationAudit.js +26 -0
  33. package/dist/runtime/api/models/CollectionDeclarationOwner.d.ts +43 -0
  34. package/dist/runtime/api/models/CollectionDeclarationOwner.js +34 -0
  35. package/dist/runtime/api/models/CollectionDeclarationSoftDelete.d.ts +34 -0
  36. package/dist/runtime/api/models/CollectionDeclarationSoftDelete.js +28 -0
  37. package/dist/runtime/api/models/CollectionDeclarationTimestamps.d.ts +42 -0
  38. package/dist/runtime/api/models/CollectionDeclarationTimestamps.js +33 -0
  39. package/dist/runtime/api/models/CollectionDeclarationVersioned.d.ts +46 -0
  40. package/dist/runtime/api/models/CollectionDeclarationVersioned.js +36 -0
  41. package/dist/runtime/api/models/CountRequest.d.ts +30 -0
  42. package/dist/runtime/api/models/CountRequest.js +25 -0
  43. package/dist/runtime/api/models/ErrorDescription.d.ts +11 -0
  44. package/dist/runtime/api/models/ErrorDescription.js +10 -2
  45. package/dist/runtime/api/models/ExportRequest.d.ts +42 -0
  46. package/dist/runtime/api/models/ExportRequest.js +31 -0
  47. package/dist/runtime/api/models/Grant.d.ts +10 -1
  48. package/dist/runtime/api/models/Grant.js +5 -0
  49. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +4 -0
  50. package/dist/runtime/api/models/MongoAggregateRequest.js +4 -2
  51. package/dist/runtime/api/models/SettingsResponse.d.ts +0 -14
  52. package/dist/runtime/api/models/SettingsResponse.js +0 -6
  53. package/dist/runtime/api/models/SuggestedValidator.d.ts +44 -0
  54. package/dist/runtime/api/models/SuggestedValidator.js +35 -0
  55. package/dist/runtime/api/models/UpdateManyRequest.d.ts +38 -0
  56. package/dist/runtime/api/models/{UpdateRequest.js → UpdateManyRequest.js} +7 -7
  57. package/dist/runtime/api/models/ValidationIssue.d.ts +34 -0
  58. package/dist/runtime/api/models/ValidationIssue.js +29 -0
  59. package/dist/runtime/api/models/index.d.ts +12 -1
  60. package/dist/runtime/api/models/index.js +12 -1
  61. package/dist/runtime/composables/mongocampApiCollection.d.ts +14 -15
  62. package/dist/runtime/composables/mongocampApiCollection.js +4 -1
  63. package/dist/runtime/composables/mongocampCollection.d.ts +106 -0
  64. package/dist/runtime/composables/mongocampCollection.js +200 -0
  65. package/dist/runtime/composables/mongocampLive.d.ts +33 -0
  66. package/dist/runtime/composables/mongocampLive.js +152 -0
  67. package/dist/runtime/composables/mongocampSearch.d.ts +12 -9
  68. package/dist/runtime/server/mongocamp/core.d.ts +2 -0
  69. package/dist/runtime/server/mongocamp/core.js +8 -1
  70. package/dist/runtime/server/mongocamp/plugin.d.ts +5 -1
  71. package/dist/runtime/server/mongocamp/plugin.js +21 -1
  72. package/dist/runtime/types/collections.d.ts +20 -0
  73. package/dist/runtime/types/collections.js +0 -0
  74. package/dist/runtime/utils/sse.d.ts +10 -0
  75. package/dist/runtime/utils/sse.js +33 -0
  76. package/dist/runtime/utils/toMongocampError.d.ts +7 -0
  77. package/dist/runtime/utils/toMongocampError.js +18 -1
  78. package/dist/types.d.mts +6 -0
  79. package/package.json +4 -3
  80. package/dist/runtime/api/models/UpdateRequest.d.ts +0 -38
@@ -10,13 +10,16 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
+ import { type AuditEntry } from '../models/AuditEntry.js';
14
+ import { type CountRequest } from '../models/CountRequest.js';
13
15
  import { type CountResponse } from '../models/CountResponse.js';
14
16
  import { type DeleteResponse } from '../models/DeleteResponse.js';
17
+ import { type ExportRequest } from '../models/ExportRequest.js';
15
18
  import { type ImportResponse } from '../models/ImportResponse.js';
16
19
  import { type InsertResponse } from '../models/InsertResponse.js';
17
20
  import { type MongoFindRequest } from '../models/MongoFindRequest.js';
18
21
  import { type SearchRequest } from '../models/SearchRequest.js';
19
- import { type UpdateRequest } from '../models/UpdateRequest.js';
22
+ import { type UpdateManyRequest } from '../models/UpdateManyRequest.js';
20
23
  import { type UpdateResponse } from '../models/UpdateResponse.js';
21
24
  export interface DeleteRequest {
22
25
  /**
@@ -33,6 +36,10 @@ export interface CountDocumentsRequest {
33
36
  * The name of your MongoDb Collection
34
37
  */
35
38
  collectionName: string;
39
+ /**
40
+ * Soft-deleted documents too (collections declared with softDelete, 2.4.0); needs the administrate grant of the collection, 403 otherwise.
41
+ */
42
+ withDeleted?: boolean;
36
43
  /**
37
44
  * Filter Query like on the list of documents, by default all documents are counted
38
45
  */
@@ -42,6 +49,24 @@ export interface CountDocumentsRequest {
42
49
  */
43
50
  filterCaseInsensitive?: boolean;
44
51
  }
52
+ export interface CountDocumentsByBodyRequest {
53
+ /**
54
+ * The name of your MongoDb Collection
55
+ */
56
+ collectionName: string;
57
+ /**
58
+ *
59
+ */
60
+ countRequest: CountRequest;
61
+ /**
62
+ * Soft-deleted documents too (collections declared with softDelete, 2.4.0); needs the administrate grant of the collection, 403 otherwise.
63
+ */
64
+ withDeleted?: boolean;
65
+ /**
66
+ * 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*
67
+ */
68
+ filterCaseInsensitive?: boolean;
69
+ }
45
70
  export interface DeleteManyRequest {
46
71
  /**
47
72
  * The name of your MongoDb Collection
@@ -71,6 +96,10 @@ export interface ExportDocumentsRequest {
71
96
  * The name of your MongoDb Collection
72
97
  */
73
98
  collectionName: string;
99
+ /**
100
+ * Soft-deleted documents too (collections declared with softDelete, 2.4.0); needs the administrate grant of the collection, 403 otherwise.
101
+ */
102
+ withDeleted?: boolean;
74
103
  /**
75
104
  * ndjson (one JSON document per line), json (one array) or csv
76
105
  */
@@ -99,6 +128,40 @@ export interface ExportDocumentsRequest {
99
128
  * 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*
100
129
  */
101
130
  filterCaseInsensitive?: boolean;
131
+ /**
132
+ * true (2.1.0): the export ends with a marker, so a cut-off stream can be told from a complete one. ndjson: a last line {"$end":true,"count":n}, or {"$error":"..."} when the stream fails; json: the array is followed by nothing on success and the stream ends without "]" on failure (the marker is the closing bracket); csv: a last line "# end n" or "# error ...". Default false
133
+ */
134
+ trailer?: boolean;
135
+ }
136
+ export interface ExportDocumentsByBodyRequest {
137
+ /**
138
+ * The name of your MongoDb Collection
139
+ */
140
+ collectionName: string;
141
+ /**
142
+ *
143
+ */
144
+ exportRequest: ExportRequest;
145
+ /**
146
+ * Soft-deleted documents too (collections declared with softDelete, 2.4.0); needs the administrate grant of the collection, 403 otherwise.
147
+ */
148
+ withDeleted?: boolean;
149
+ /**
150
+ * ndjson (one JSON document per line), json (one array) or csv
151
+ */
152
+ format?: string;
153
+ /**
154
+ * 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.
155
+ */
156
+ extendedJson?: ExportDocumentsByBodyExtendedJsonEnum;
157
+ /**
158
+ * 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*
159
+ */
160
+ filterCaseInsensitive?: boolean;
161
+ /**
162
+ * true (2.1.0): the export ends with a marker, so a cut-off stream can be told from a complete one. ndjson: a last line {"$end":true,"count":n}, or {"$error":"..."} when the stream fails; json: the array is followed by nothing on success and the stream ends without "]" on failure (the marker is the closing bracket); csv: a last line "# end n" or "# error ...". Default false
163
+ */
164
+ trailer?: boolean;
102
165
  }
103
166
  export interface FindRequest {
104
167
  /**
@@ -109,6 +172,10 @@ export interface FindRequest {
109
172
  *
110
173
  */
111
174
  mongoFindRequest: MongoFindRequest;
175
+ /**
176
+ * Soft-deleted documents too (collections declared with softDelete, 2.4.0); needs the administrate grant of the collection, 403 otherwise.
177
+ */
178
+ withDeleted?: boolean;
112
179
  /**
113
180
  * Count elements per page
114
181
  */
@@ -139,11 +206,37 @@ export interface GetDocumentRequest {
139
206
  * DocumentId to read
140
207
  */
141
208
  documentId: string;
209
+ /**
210
+ * Soft-deleted documents too (collections declared with softDelete, 2.4.0); needs the administrate grant of the collection, 403 otherwise.
211
+ */
212
+ withDeleted?: boolean;
142
213
  /**
143
214
  * 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).
144
215
  */
145
216
  extendedJson?: GetDocumentExtendedJsonEnum;
146
217
  }
218
+ export interface GetDocumentHistoryRequest {
219
+ /**
220
+ * The name of your MongoDb Collection
221
+ */
222
+ collectionName: string;
223
+ /**
224
+ * DocumentId of the history
225
+ */
226
+ documentId: string;
227
+ /**
228
+ *
229
+ */
230
+ rowsPerPage?: number;
231
+ /**
232
+ *
233
+ */
234
+ page?: number;
235
+ /**
236
+ * relaxed (default), canonical or plain, as for the documents.
237
+ */
238
+ extendedJson?: GetDocumentHistoryExtendedJsonEnum;
239
+ }
147
240
  export interface ImportDocumentsRequest {
148
241
  /**
149
242
  * The name of your MongoDb Collection
@@ -187,6 +280,10 @@ export interface ListDocumentsRequest {
187
280
  * The name of your MongoDb Collection
188
281
  */
189
282
  collectionName: string;
283
+ /**
284
+ * Soft-deleted documents too (collections declared with softDelete, 2.4.0); needs the administrate grant of the collection, 403 otherwise.
285
+ */
286
+ withDeleted?: boolean;
190
287
  /**
191
288
  * MongoDB filter query, all documents by default
192
289
  */
@@ -224,6 +321,16 @@ export interface ListDocumentsRequest {
224
321
  */
225
322
  filterCaseInsensitive?: boolean;
226
323
  }
324
+ export interface RestoreDocumentRequest {
325
+ /**
326
+ * The name of your MongoDb Collection
327
+ */
328
+ collectionName: string;
329
+ /**
330
+ * DocumentId to restore
331
+ */
332
+ documentId: string;
333
+ }
227
334
  export interface SearchDocumentsRequest {
228
335
  /**
229
336
  * The name of your MongoDb Collection
@@ -233,6 +340,10 @@ export interface SearchDocumentsRequest {
233
340
  *
234
341
  */
235
342
  searchRequest: SearchRequest;
343
+ /**
344
+ * Soft-deleted documents too (collections declared with softDelete, 2.4.0); needs the administrate grant of the collection, 403 otherwise.
345
+ */
346
+ withDeleted?: boolean;
236
347
  /**
237
348
  * Count elements per page
238
349
  */
@@ -290,7 +401,7 @@ export interface UpdateDocumentPartialRequest {
290
401
  [key: string]: any | null;
291
402
  };
292
403
  }
293
- export interface UpdateManyRequest {
404
+ export interface UpdateManyOperationRequest {
294
405
  /**
295
406
  * The name of your MongoDb Collection
296
407
  */
@@ -298,7 +409,7 @@ export interface UpdateManyRequest {
298
409
  /**
299
410
  *
300
411
  */
301
- updateRequest: UpdateRequest;
412
+ updateRequest: UpdateManyRequest;
302
413
  /**
303
414
  * Allow an empty filter, that matches all documents of the collection
304
415
  */
@@ -312,6 +423,24 @@ export interface UpdateManyRequest {
312
423
  */
313
424
  filterCaseInsensitive?: boolean;
314
425
  }
426
+ export interface WatchDocumentsRequest {
427
+ /**
428
+ * The name of your MongoDb Collection
429
+ */
430
+ collectionName: string;
431
+ /**
432
+ * Lucene filter of the documents to watch.
433
+ */
434
+ filter?: string;
435
+ /**
436
+ *
437
+ */
438
+ filterCaseInsensitive?: boolean;
439
+ /**
440
+ * The id of the last event the client got, to resume after it.
441
+ */
442
+ lastEventID?: string;
443
+ }
315
444
  /**
316
445
  *
317
446
  */
@@ -344,6 +473,20 @@ export declare class DocumentApi extends runtime.BaseAPI {
344
473
  * Count Documents in Collection
345
474
  */
346
475
  countDocuments(requestParameters: CountDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CountResponse>;
476
+ /**
477
+ * Creates request options for countDocumentsByBody without sending the request
478
+ */
479
+ countDocumentsByBodyRequestOpts(requestParameters: CountDocumentsByBodyRequest): Promise<runtime.RequestOpts>;
480
+ /**
481
+ * Count the Documents of the given Collection that match the filter without loading them
482
+ * Count Documents in Collection (filter in the body)
483
+ */
484
+ countDocumentsByBodyRaw(requestParameters: CountDocumentsByBodyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CountResponse>>;
485
+ /**
486
+ * Count the Documents of the given Collection that match the filter without loading them
487
+ * Count Documents in Collection (filter in the body)
488
+ */
489
+ countDocumentsByBody(requestParameters: CountDocumentsByBodyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CountResponse>;
347
490
  /**
348
491
  * Creates request options for deleteMany without sending the request
349
492
  */
@@ -363,15 +506,29 @@ export declare class DocumentApi extends runtime.BaseAPI {
363
506
  */
364
507
  exportDocumentsRequestOpts(requestParameters: ExportDocumentsRequest): Promise<runtime.RequestOpts>;
365
508
  /**
366
- * Download the documents of a Collection as a stream: ndjson (one JSON document per line), json (one array) or csv (a header line, nested values as JSON, a text with a comma, a quote or a line break in quotes). The documents are written while the database delivers them, the memory of the server does not depend on the size of the Collection. The columns of a csv export are the fields of `projection`, by default the fields of the first 1000 documents. With extendedJson the types of the values are explicit. A failure while the stream is running ends the stream, the status is 200 by then.
509
+ * Download the documents of a Collection as a stream: ndjson (one JSON document per line), json (one array) or csv (a header line, nested values as JSON, a text with a comma, a quote or a line break in quotes). The documents are written while the database delivers them, the memory of the server does not depend on the size of the Collection. The columns of a csv export are the fields of `projection`, by default the fields of the first 1000 documents. With extendedJson the types of the values are explicit. A failure while the stream is running ends the stream, the status is 200 by then; send trailer=true for an end marker. POST takes the filter in the body (no URL limit).
367
510
  * Export Documents of a Collection
368
511
  */
369
512
  exportDocumentsRaw(requestParameters: ExportDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
370
513
  /**
371
- * Download the documents of a Collection as a stream: ndjson (one JSON document per line), json (one array) or csv (a header line, nested values as JSON, a text with a comma, a quote or a line break in quotes). The documents are written while the database delivers them, the memory of the server does not depend on the size of the Collection. The columns of a csv export are the fields of `projection`, by default the fields of the first 1000 documents. With extendedJson the types of the values are explicit. A failure while the stream is running ends the stream, the status is 200 by then.
514
+ * Download the documents of a Collection as a stream: ndjson (one JSON document per line), json (one array) or csv (a header line, nested values as JSON, a text with a comma, a quote or a line break in quotes). The documents are written while the database delivers them, the memory of the server does not depend on the size of the Collection. The columns of a csv export are the fields of `projection`, by default the fields of the first 1000 documents. With extendedJson the types of the values are explicit. A failure while the stream is running ends the stream, the status is 200 by then; send trailer=true for an end marker. POST takes the filter in the body (no URL limit).
372
515
  * Export Documents of a Collection
373
516
  */
374
517
  exportDocuments(requestParameters: ExportDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
518
+ /**
519
+ * Creates request options for exportDocumentsByBody without sending the request
520
+ */
521
+ exportDocumentsByBodyRequestOpts(requestParameters: ExportDocumentsByBodyRequest): Promise<runtime.RequestOpts>;
522
+ /**
523
+ * Download the documents of a Collection as a stream: ndjson (one JSON document per line), json (one array) or csv (a header line, nested values as JSON, a text with a comma, a quote or a line break in quotes). The documents are written while the database delivers them, the memory of the server does not depend on the size of the Collection. The columns of a csv export are the fields of `projection`, by default the fields of the first 1000 documents. With extendedJson the types of the values are explicit. A failure while the stream is running ends the stream, the status is 200 by then; send trailer=true for an end marker. POST takes the filter in the body (no URL limit).
524
+ * Export Documents of a Collection (filter in the body)
525
+ */
526
+ exportDocumentsByBodyRaw(requestParameters: ExportDocumentsByBodyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
527
+ /**
528
+ * Download the documents of a Collection as a stream: ndjson (one JSON document per line), json (one array) or csv (a header line, nested values as JSON, a text with a comma, a quote or a line break in quotes). The documents are written while the database delivers them, the memory of the server does not depend on the size of the Collection. The columns of a csv export are the fields of `projection`, by default the fields of the first 1000 documents. With extendedJson the types of the values are explicit. A failure while the stream is running ends the stream, the status is 200 by then; send trailer=true for an end marker. POST takes the filter in the body (no URL limit).
529
+ * Export Documents of a Collection (filter in the body)
530
+ */
531
+ exportDocumentsByBody(requestParameters: ExportDocumentsByBodyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
375
532
  /**
376
533
  * Creates request options for find without sending the request
377
534
  */
@@ -408,6 +565,20 @@ export declare class DocumentApi extends runtime.BaseAPI {
408
565
  getDocument(requestParameters: GetDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
409
566
  [key: string]: any | null;
410
567
  }>;
568
+ /**
569
+ * Creates request options for getDocumentHistory without sending the request
570
+ */
571
+ getDocumentHistoryRequestOpts(requestParameters: GetDocumentHistoryRequest): Promise<runtime.RequestOpts>;
572
+ /**
573
+ * The audit records of a document of a collection declared with audit, newest first (2.4.0). For users who can read the document; administrators of the collection also get the history of deleted documents. 404 for a collection without audit.
574
+ * History of a Document
575
+ */
576
+ getDocumentHistoryRaw(requestParameters: GetDocumentHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AuditEntry>>>;
577
+ /**
578
+ * The audit records of a document of a collection declared with audit, newest first (2.4.0). For users who can read the document; administrators of the collection also get the history of deleted documents. 404 for a collection without audit.
579
+ * History of a Document
580
+ */
581
+ getDocumentHistory(requestParameters: GetDocumentHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AuditEntry>>;
411
582
  /**
412
583
  * Creates request options for importDocuments without sending the request
413
584
  */
@@ -468,6 +639,20 @@ export declare class DocumentApi extends runtime.BaseAPI {
468
639
  listDocuments(requestParameters: ListDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
469
640
  [key: string]: any | null;
470
641
  }>>;
642
+ /**
643
+ * Creates request options for restoreDocument without sending the request
644
+ */
645
+ restoreDocumentRequestOpts(requestParameters: RestoreDocumentRequest): Promise<runtime.RequestOpts>;
646
+ /**
647
+ * Removes the deleted mark of a document of a collection declared with softDelete (2.4.0). 404 for a collection without soft delete and for a document that is missing or not deleted.
648
+ * Restore a soft-deleted Document
649
+ */
650
+ restoreDocumentRaw(requestParameters: RestoreDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateResponse>>;
651
+ /**
652
+ * Removes the deleted mark of a document of a collection declared with softDelete (2.4.0). 404 for a collection without soft delete and for a document that is missing or not deleted.
653
+ * Restore a soft-deleted Document
654
+ */
655
+ restoreDocument(requestParameters: RestoreDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateResponse>;
471
656
  /**
472
657
  * Creates request options for searchDocuments without sending the request
473
658
  */
@@ -517,17 +702,31 @@ export declare class DocumentApi extends runtime.BaseAPI {
517
702
  /**
518
703
  * Creates request options for updateMany without sending the request
519
704
  */
520
- updateManyRequestOpts(requestParameters: UpdateManyRequest): Promise<runtime.RequestOpts>;
705
+ updateManyRequestOpts(requestParameters: UpdateManyOperationRequest): Promise<runtime.RequestOpts>;
521
706
  /**
522
707
  * Update many Documents in given Collection
523
708
  * Update many in Collection
524
709
  */
525
- updateManyRaw(requestParameters: UpdateManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateResponse>>;
710
+ updateManyRaw(requestParameters: UpdateManyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateResponse>>;
526
711
  /**
527
712
  * Update many Documents in given Collection
528
713
  * Update many in Collection
529
714
  */
530
- updateMany(requestParameters: UpdateManyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateResponse>;
715
+ updateMany(requestParameters: UpdateManyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateResponse>;
716
+ /**
717
+ * Creates request options for watchDocuments without sending the request
718
+ */
719
+ watchDocumentsRequestOpts(requestParameters: WatchDocumentsRequest): Promise<runtime.RequestOpts>;
720
+ /**
721
+ * The changes of the documents as Server-Sent Events (2.4.0), scoped like every read and by `filter`. Events: `upsert` (data `{ id, document }`, a document that is in the scope), `remove` (data `{ id }`, deleted or left the scope), `reset` (the client loads again). The `id` of an event is the resume token: send it as `Last-Event-ID` to resume. A comment every 25 seconds. Needs a replica set or a sharded cluster: 501 (code 5011) otherwise; at most `WATCH_MAX_STREAMS` streams per instance (503).
722
+ * Live Updates of a Collection
723
+ */
724
+ watchDocumentsRaw(requestParameters: WatchDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
725
+ /**
726
+ * The changes of the documents as Server-Sent Events (2.4.0), scoped like every read and by `filter`. Events: `upsert` (data `{ id, document }`, a document that is in the scope), `remove` (data `{ id }`, deleted or left the scope), `reset` (the client loads again). The `id` of an event is the resume token: send it as `Last-Event-ID` to resume. A comment every 25 seconds. Needs a replica set or a sharded cluster: 501 (code 5011) otherwise; at most `WATCH_MAX_STREAMS` streams per instance (503).
727
+ * Live Updates of a Collection
728
+ */
729
+ watchDocuments(requestParameters: WatchDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
531
730
  }
532
731
  /**
533
732
  * @export
@@ -538,6 +737,15 @@ export declare const ExportDocumentsExtendedJsonEnum: {
538
737
  readonly Plain: "plain";
539
738
  };
540
739
  export type ExportDocumentsExtendedJsonEnum = typeof ExportDocumentsExtendedJsonEnum[keyof typeof ExportDocumentsExtendedJsonEnum];
740
+ /**
741
+ * @export
742
+ */
743
+ export declare const ExportDocumentsByBodyExtendedJsonEnum: {
744
+ readonly Relaxed: "relaxed";
745
+ readonly Canonical: "canonical";
746
+ readonly Plain: "plain";
747
+ };
748
+ export type ExportDocumentsByBodyExtendedJsonEnum = typeof ExportDocumentsByBodyExtendedJsonEnum[keyof typeof ExportDocumentsByBodyExtendedJsonEnum];
541
749
  /**
542
750
  * @export
543
751
  */
@@ -564,6 +772,15 @@ export declare const GetDocumentExtendedJsonEnum: {
564
772
  readonly Plain: "plain";
565
773
  };
566
774
  export type GetDocumentExtendedJsonEnum = typeof GetDocumentExtendedJsonEnum[keyof typeof GetDocumentExtendedJsonEnum];
775
+ /**
776
+ * @export
777
+ */
778
+ export declare const GetDocumentHistoryExtendedJsonEnum: {
779
+ readonly Relaxed: "relaxed";
780
+ readonly Canonical: "canonical";
781
+ readonly Plain: "plain";
782
+ };
783
+ export type GetDocumentHistoryExtendedJsonEnum = typeof GetDocumentHistoryExtendedJsonEnum[keyof typeof GetDocumentHistoryExtendedJsonEnum];
567
784
  /**
568
785
  * @export
569
786
  */