@sfxcode/nuxt-mongocamp-server 1.6.3 → 1.7.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 (87) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/api/.openapi-generator/FILES +12 -0
  4. package/dist/runtime/api/apis/AdminApi.d.ts +1 -1
  5. package/dist/runtime/api/apis/ApplicationApi.d.ts +1 -1
  6. package/dist/runtime/api/apis/AuthApi.d.ts +19 -2
  7. package/dist/runtime/api/apis/AuthApi.js +48 -0
  8. package/dist/runtime/api/apis/BucketApi.d.ts +1 -1
  9. package/dist/runtime/api/apis/CollectionApi.d.ts +22 -4
  10. package/dist/runtime/api/apis/CollectionApi.js +53 -2
  11. package/dist/runtime/api/apis/DatabaseApi.d.ts +1 -1
  12. package/dist/runtime/api/apis/DocumentApi.d.ts +47 -2
  13. package/dist/runtime/api/apis/DocumentApi.js +130 -0
  14. package/dist/runtime/api/apis/FileApi.d.ts +1 -1
  15. package/dist/runtime/api/apis/IndexApi.d.ts +19 -2
  16. package/dist/runtime/api/apis/IndexApi.js +52 -0
  17. package/dist/runtime/api/apis/JobsApi.d.ts +1 -1
  18. package/dist/runtime/api/apis/SystemApi.d.ts +1 -1
  19. package/dist/runtime/api/docs/AuthApi.md +78 -0
  20. package/dist/runtime/api/docs/CollectionApi.md +83 -2
  21. package/dist/runtime/api/docs/CollectionPermission.md +40 -0
  22. package/dist/runtime/api/docs/CollectionSummary.md +50 -0
  23. package/dist/runtime/api/docs/CountResponse.md +34 -0
  24. package/dist/runtime/api/docs/DocumentApi.md +183 -5
  25. package/dist/runtime/api/docs/IndexApi.md +78 -0
  26. package/dist/runtime/api/docs/IndexUsage.md +40 -0
  27. package/dist/runtime/api/docs/InsertError.md +38 -0
  28. package/dist/runtime/api/docs/InsertResponse.md +4 -0
  29. package/dist/runtime/api/docs/SearchRequest.md +38 -0
  30. package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
  31. package/dist/runtime/api/models/ClusterInformation.d.ts +1 -1
  32. package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -1
  33. package/dist/runtime/api/models/CollectionPermission.d.ts +50 -0
  34. package/dist/runtime/api/models/CollectionPermission.js +35 -0
  35. package/dist/runtime/api/models/CollectionStatus.d.ts +1 -1
  36. package/dist/runtime/api/models/CollectionSummary.d.ts +80 -0
  37. package/dist/runtime/api/models/CollectionSummary.js +50 -0
  38. package/dist/runtime/api/models/CountResponse.d.ts +32 -0
  39. package/dist/runtime/api/models/CountResponse.js +26 -0
  40. package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
  41. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
  42. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
  43. package/dist/runtime/api/models/FileInformation.d.ts +1 -1
  44. package/dist/runtime/api/models/Grant.d.ts +1 -1
  45. package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
  46. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
  47. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
  48. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +1 -1
  49. package/dist/runtime/api/models/IndexUsage.d.ts +52 -0
  50. package/dist/runtime/api/models/IndexUsage.js +35 -0
  51. package/dist/runtime/api/models/InsertError.d.ts +44 -0
  52. package/dist/runtime/api/models/InsertError.js +32 -0
  53. package/dist/runtime/api/models/InsertResponse.d.ts +14 -1
  54. package/dist/runtime/api/models/InsertResponse.js +10 -2
  55. package/dist/runtime/api/models/JobConfig.d.ts +1 -1
  56. package/dist/runtime/api/models/JobInformation.d.ts +1 -1
  57. package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
  58. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
  59. package/dist/runtime/api/models/JsonValueAny.d.ts +1 -1
  60. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
  61. package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
  62. package/dist/runtime/api/models/Login.d.ts +1 -1
  63. package/dist/runtime/api/models/LoginResult.d.ts +1 -1
  64. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -1
  65. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -1
  66. package/dist/runtime/api/models/MongoFindRequest.d.ts +1 -1
  67. package/dist/runtime/api/models/MongoIndex.d.ts +1 -1
  68. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
  69. package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
  70. package/dist/runtime/api/models/Role.d.ts +1 -1
  71. package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -1
  72. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -1
  73. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
  74. package/dist/runtime/api/models/SearchRequest.d.ts +44 -0
  75. package/dist/runtime/api/models/SearchRequest.js +29 -0
  76. package/dist/runtime/api/models/SettingsResponse.d.ts +1 -1
  77. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
  78. package/dist/runtime/api/models/UpdateRequest.d.ts +1 -1
  79. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
  80. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -1
  81. package/dist/runtime/api/models/UserInformation.d.ts +1 -1
  82. package/dist/runtime/api/models/UserProfile.d.ts +1 -1
  83. package/dist/runtime/api/models/Version.d.ts +1 -1
  84. package/dist/runtime/api/models/index.d.ts +6 -0
  85. package/dist/runtime/api/models/index.js +6 -0
  86. package/dist/runtime/api/runtime.d.ts +1 -1
  87. package/package.json +7 -7
@@ -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.6.3
5
+ * The version of the OpenAPI document: 1.7.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.6.3
5
+ * The version of the OpenAPI document: 1.7.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { IndexCreateRequest, IndexCreateResponse, IndexDropResponse, IndexOptionsRequest, MongoIndex } from '../models/index.js';
13
+ import type { IndexCreateRequest, IndexCreateResponse, IndexDropResponse, IndexOptionsRequest, IndexUsage, MongoIndex } from '../models/index.js';
14
14
  export interface CreateExpiringIndexRequest {
15
15
  collectionName: string;
16
16
  fieldName: string;
@@ -47,6 +47,9 @@ export interface IndexRequest {
47
47
  collectionName: string;
48
48
  indexName: string;
49
49
  }
50
+ export interface IndexStatsRequest {
51
+ collectionName: string;
52
+ }
50
53
  export interface ListIndicesRequest {
51
54
  collectionName: string;
52
55
  }
@@ -152,6 +155,20 @@ export declare class IndexApi extends runtime.BaseAPI {
152
155
  * Index for Collection
153
156
  */
154
157
  index(requestParameters: IndexRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MongoIndex>;
158
+ /**
159
+ * Creates request options for indexStats without sending the request
160
+ */
161
+ indexStatsRequestOpts(requestParameters: IndexStatsRequest): Promise<runtime.RequestOpts>;
162
+ /**
163
+ * How often every Index of the given Collection was used since the counting started. Replaces the aggregation stage $indexStats, which is denied by default because its result contains the address of the database server.
164
+ * Index usage for Collection
165
+ */
166
+ indexStatsRaw(requestParameters: IndexStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IndexUsage>>>;
167
+ /**
168
+ * How often every Index of the given Collection was used since the counting started. Replaces the aggregation stage $indexStats, which is denied by default because its result contains the address of the database server.
169
+ * Index usage for Collection
170
+ */
171
+ indexStats(requestParameters: IndexStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IndexUsage>>;
155
172
  /**
156
173
  * Creates request options for listIndices without sending the request
157
174
  */
@@ -4,6 +4,7 @@ import {
4
4
  IndexCreateResponseFromJSON,
5
5
  IndexDropResponseFromJSON,
6
6
  IndexOptionsRequestToJSON,
7
+ IndexUsageFromJSON,
7
8
  MongoIndexFromJSON
8
9
  } from "../models/index.js";
9
10
  export class IndexApi extends runtime.BaseAPI {
@@ -440,6 +441,57 @@ export class IndexApi extends runtime.BaseAPI {
440
441
  const response = await this.indexRaw(requestParameters, initOverrides);
441
442
  return await response.value();
442
443
  }
444
+ /**
445
+ * Creates request options for indexStats without sending the request
446
+ */
447
+ async indexStatsRequestOpts(requestParameters) {
448
+ if (requestParameters["collectionName"] == null) {
449
+ throw new runtime.RequiredError(
450
+ "collectionName",
451
+ 'Required parameter "collectionName" was null or undefined when calling indexStats().'
452
+ );
453
+ }
454
+ const queryParameters = {};
455
+ const headerParameters = {};
456
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
457
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
458
+ }
459
+ if (this.configuration && this.configuration.accessToken) {
460
+ const token = this.configuration.accessToken;
461
+ const tokenString = await token("httpAuth", []);
462
+ if (tokenString) {
463
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
464
+ }
465
+ }
466
+ if (this.configuration && this.configuration.apiKey) {
467
+ headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
468
+ }
469
+ let urlPath = `/mongodb/collections/{collectionName}/index/stats`;
470
+ urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
471
+ return {
472
+ path: urlPath,
473
+ method: "GET",
474
+ headers: headerParameters,
475
+ query: queryParameters
476
+ };
477
+ }
478
+ /**
479
+ * How often every Index of the given Collection was used since the counting started. Replaces the aggregation stage $indexStats, which is denied by default because its result contains the address of the database server.
480
+ * Index usage for Collection
481
+ */
482
+ async indexStatsRaw(requestParameters, initOverrides) {
483
+ const requestOptions = await this.indexStatsRequestOpts(requestParameters);
484
+ const response = await this.request(requestOptions, initOverrides);
485
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IndexUsageFromJSON));
486
+ }
487
+ /**
488
+ * How often every Index of the given Collection was used since the counting started. Replaces the aggregation stage $indexStats, which is denied by default because its result contains the address of the database server.
489
+ * Index usage for Collection
490
+ */
491
+ async indexStats(requestParameters, initOverrides) {
492
+ const response = await this.indexStatsRaw(requestParameters, initOverrides);
493
+ return await response.value();
494
+ }
443
495
  /**
444
496
  * Creates request options for listIndices without sending the request
445
497
  */
@@ -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.6.3
5
+ * The version of the OpenAPI document: 1.7.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.6.3
5
+ * The version of the OpenAPI document: 1.7.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -11,6 +11,7 @@ All URIs are relative to *http://localhost*
11
11
  | [**logoutByDelete**](AuthApi.md#logoutbydelete) | **DELETE** /auth/logout | Logout User |
12
12
  | [**refreshToken**](AuthApi.md#refreshtoken) | **GET** /auth/token/refresh | Refresh User |
13
13
  | [**updatePassword**](AuthApi.md#updatepassword) | **PATCH** /auth/profile/password | Update Password |
14
+ | [**userPermissions**](AuthApi.md#userpermissions) | **GET** /auth/permissions | Collection permissions |
14
15
  | [**userProfile**](AuthApi.md#userprofile) | **GET** /auth/profile | User Profile |
15
16
 
16
17
 
@@ -507,6 +508,83 @@ example().catch(console.error);
507
508
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
508
509
 
509
510
 
511
+ ## userPermissions
512
+
513
+ > Array&lt;CollectionPermission&gt; userPermissions(collection)
514
+
515
+ Collection permissions
516
+
517
+ Return the resolved rights (read, write, administrate) of the loggedin user for the collections of the default database
518
+
519
+ ### Example
520
+
521
+ ```ts
522
+ import {
523
+ Configuration,
524
+ AuthApi,
525
+ } from '';
526
+ import type { UserPermissionsRequest } from '';
527
+
528
+ async function example() {
529
+ console.log("🚀 Testing SDK...");
530
+ const config = new Configuration({
531
+ // To configure HTTP basic authorization: httpAuth1
532
+ username: "YOUR USERNAME",
533
+ password: "YOUR PASSWORD",
534
+ // Configure HTTP bearer authorization: httpAuth
535
+ accessToken: "YOUR BEARER TOKEN",
536
+ // To configure API key authorization: apiKeyAuth
537
+ apiKey: "YOUR API KEY",
538
+ });
539
+ const api = new AuthApi(config);
540
+
541
+ const body = {
542
+ // string | Resolve the rights for this collection only (also if the user has none) (optional)
543
+ collection: collection_example,
544
+ } satisfies UserPermissionsRequest;
545
+
546
+ try {
547
+ const data = await api.userPermissions(body);
548
+ console.log(data);
549
+ } catch (error) {
550
+ console.error(error);
551
+ }
552
+ }
553
+
554
+ // Run the test
555
+ example().catch(console.error);
556
+ ```
557
+
558
+ ### Parameters
559
+
560
+
561
+ | Name | Type | Description | Notes |
562
+ |------------- | ------------- | ------------- | -------------|
563
+ | **collection** | `string` | Resolve the rights for this collection only (also if the user has none) | [Optional] [Defaults to `undefined`] |
564
+
565
+ ### Return type
566
+
567
+ [**Array&lt;CollectionPermission&gt;**](CollectionPermission.md)
568
+
569
+ ### Authorization
570
+
571
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
572
+
573
+ ### HTTP request headers
574
+
575
+ - **Content-Type**: Not defined
576
+ - **Accept**: `application/json`
577
+
578
+
579
+ ### HTTP response details
580
+ | Status code | Description | Response headers |
581
+ |-------------|-------------|------------------|
582
+ | **200** | | - |
583
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
584
+
585
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
586
+
587
+
510
588
  ## userProfile
511
589
 
512
590
  > UserProfile userProfile()
@@ -12,6 +12,7 @@ All URIs are relative to *http://localhost*
12
12
  | [**getCollectionInformation**](CollectionApi.md#getcollectioninformation) | **GET** /mongodb/collections/{collectionName} | Collection Information |
13
13
  | [**getJsonSchema**](CollectionApi.md#getjsonschema) | **GET** /mongodb/collections/{collectionName}/schema | Collection Fields |
14
14
  | [**getSchemaAnalysis**](CollectionApi.md#getschemaanalysis) | **GET** /mongodb/collections/{collectionName}/schema/analysis | Collection Fields |
15
+ | [**listCollectionInformation**](CollectionApi.md#listcollectioninformation) | **GET** /mongodb/collections/info | Information of all Collections |
15
16
  | [**listCollections**](CollectionApi.md#listcollections) | **GET** /mongodb/collections | List of Collections |
16
17
  | [**listCollectionsByDatabase**](CollectionApi.md#listcollectionsbydatabase) | **GET** /mongodb/databases/{databaseName}/collections | List of Collections |
17
18
 
@@ -19,11 +20,11 @@ All URIs are relative to *http://localhost*
19
20
 
20
21
  ## aggregate
21
22
 
22
- > Array&lt;{ [key: string]: any; }&gt; aggregate(collectionName, mongoAggregateRequest, rowsPerPage, page)
23
+ > Array&lt;{ [key: string]: any; }&gt; aggregate(collectionName, mongoAggregateRequest, rowsPerPage, page, filter)
23
24
 
24
25
  Aggregate in Collection
25
26
 
26
- Aggregate in a given Collection. The value of a stage is any JSON value. Operators that run JavaScript on the database server or write to collections (&#x60;$function&#x60;, &#x60;$accumulator&#x60;, &#x60;$where&#x60;, &#x60;$out&#x60;, &#x60;$merge&#x60;, &#x60;$currentOp&#x60;, &#x60;$listSessions&#x60; by default, configured with AGGREGATION_STAGES_DENIED) are refused with 403.
27
+ Aggregate in a given Collection. The value of a stage is any JSON value. Operators that run JavaScript on the database server or write to collections (&#x60;$function&#x60;, &#x60;$accumulator&#x60;, &#x60;$where&#x60;, &#x60;$out&#x60;, &#x60;$merge&#x60;, &#x60;$currentOp&#x60;, &#x60;$listSessions&#x60;, &#x60;$collStats&#x60;, &#x60;$indexStats&#x60; by default, configured with AGGREGATION_STAGES_DENIED) are refused with 403.
27
28
 
28
29
  ### Example
29
30
 
@@ -56,6 +57,8 @@ async function example() {
56
57
  rowsPerPage: 100,
57
58
  // number | Requested page of the ResultSets (optional)
58
59
  page: 1,
60
+ // string | 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. (optional)
61
+ filter: filter_example,
59
62
  } satisfies AggregateRequest;
60
63
 
61
64
  try {
@@ -79,6 +82,7 @@ example().catch(console.error);
79
82
  | **mongoAggregateRequest** | [MongoAggregateRequest](MongoAggregateRequest.md) | | |
80
83
  | **rowsPerPage** | `number` | Count elements per page | [Optional] [Defaults to `undefined`] |
81
84
  | **page** | `number` | Requested page of the ResultSets | [Optional] [Defaults to `undefined`] |
85
+ | **filter** | `string` | 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. | [Optional] [Defaults to `undefined`] |
82
86
 
83
87
  ### Return type
84
88
 
@@ -675,6 +679,83 @@ example().catch(console.error);
675
679
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
676
680
 
677
681
 
682
+ ## listCollectionInformation
683
+
684
+ > Array&lt;CollectionSummary&gt; listCollectionInformation(name)
685
+
686
+ Information of all Collections
687
+
688
+ The numbers of all Collections of the default database that the user may read in one request (count, size, storage size, average size of a document, number and size of the indices). A Collection without statistics, for example a view, is listed with available false.
689
+
690
+ ### Example
691
+
692
+ ```ts
693
+ import {
694
+ Configuration,
695
+ CollectionApi,
696
+ } from '';
697
+ import type { ListCollectionInformationRequest } from '';
698
+
699
+ async function example() {
700
+ console.log("🚀 Testing SDK...");
701
+ const config = new Configuration({
702
+ // To configure HTTP basic authorization: httpAuth1
703
+ username: "YOUR USERNAME",
704
+ password: "YOUR PASSWORD",
705
+ // Configure HTTP bearer authorization: httpAuth
706
+ accessToken: "YOUR BEARER TOKEN",
707
+ // To configure API key authorization: apiKeyAuth
708
+ apiKey: "YOUR API KEY",
709
+ });
710
+ const api = new CollectionApi(config);
711
+
712
+ const body = {
713
+ // Array<string> | Only the Collections with these names, by default all Collections that the user may read (optional)
714
+ name: ...,
715
+ } satisfies ListCollectionInformationRequest;
716
+
717
+ try {
718
+ const data = await api.listCollectionInformation(body);
719
+ console.log(data);
720
+ } catch (error) {
721
+ console.error(error);
722
+ }
723
+ }
724
+
725
+ // Run the test
726
+ example().catch(console.error);
727
+ ```
728
+
729
+ ### Parameters
730
+
731
+
732
+ | Name | Type | Description | Notes |
733
+ |------------- | ------------- | ------------- | -------------|
734
+ | **name** | `Array<string>` | Only the Collections with these names, by default all Collections that the user may read | [Optional] |
735
+
736
+ ### Return type
737
+
738
+ [**Array&lt;CollectionSummary&gt;**](CollectionSummary.md)
739
+
740
+ ### Authorization
741
+
742
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
743
+
744
+ ### HTTP request headers
745
+
746
+ - **Content-Type**: Not defined
747
+ - **Accept**: `application/json`
748
+
749
+
750
+ ### HTTP response details
751
+ | Status code | Description | Response headers |
752
+ |-------------|-------------|------------------|
753
+ | **200** | | - |
754
+ | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
755
+
756
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
757
+
758
+
678
759
  ## listCollections
679
760
 
680
761
  > Array&lt;string&gt; listCollections()
@@ -0,0 +1,40 @@
1
+
2
+ # CollectionPermission
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `read` | boolean
11
+ `write` | boolean
12
+ `administrate` | boolean
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { CollectionPermission } from ''
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "name": null,
22
+ "read": null,
23
+ "write": null,
24
+ "administrate": null,
25
+ } satisfies CollectionPermission
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as CollectionPermission
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,50 @@
1
+
2
+ # CollectionSummary
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `collectionType` | string
11
+ `count` | number
12
+ `size` | number
13
+ `storageSize` | number
14
+ `avgObjSize` | number
15
+ `nindexes` | number
16
+ `totalIndexSize` | number
17
+ `available` | boolean
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { CollectionSummary } from ''
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "name": null,
27
+ "collectionType": null,
28
+ "count": null,
29
+ "size": null,
30
+ "storageSize": null,
31
+ "avgObjSize": null,
32
+ "nindexes": null,
33
+ "totalIndexSize": null,
34
+ "available": null,
35
+ } satisfies CollectionSummary
36
+
37
+ console.log(example)
38
+
39
+ // Convert the instance to a JSON string
40
+ const exampleJSON: string = JSON.stringify(example)
41
+ console.log(exampleJSON)
42
+
43
+ // Parse the JSON string back to an object
44
+ const exampleParsed = JSON.parse(exampleJSON) as CollectionSummary
45
+ console.log(exampleParsed)
46
+ ```
47
+
48
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
49
+
50
+
@@ -0,0 +1,34 @@
1
+
2
+ # CountResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `count` | number
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { CountResponse } from ''
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "count": null,
19
+ } satisfies CountResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as CountResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+