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