@sfxcode/nuxt-mongocamp-server 1.7.0 → 1.9.0

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