@sfxcode/nuxt-mongocamp-server 1.6.3 → 1.8.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 +8 -0
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +1 -1
  4. package/dist/runtime/api/.openapi-generator/FILES +30 -0
  5. package/dist/runtime/api/apis/AdminApi.d.ts +1 -1
  6. package/dist/runtime/api/apis/ApplicationApi.d.ts +1 -1
  7. package/dist/runtime/api/apis/AuthApi.d.ts +19 -2
  8. package/dist/runtime/api/apis/AuthApi.js +48 -0
  9. package/dist/runtime/api/apis/BucketApi.d.ts +1 -1
  10. package/dist/runtime/api/apis/CollectionApi.d.ts +78 -4
  11. package/dist/runtime/api/apis/CollectionApi.js +236 -2
  12. package/dist/runtime/api/apis/DatabaseApi.d.ts +1 -1
  13. package/dist/runtime/api/apis/DocumentApi.d.ts +92 -2
  14. package/dist/runtime/api/apis/DocumentApi.js +275 -0
  15. package/dist/runtime/api/apis/FileApi.d.ts +1 -1
  16. package/dist/runtime/api/apis/IndexApi.d.ts +36 -2
  17. package/dist/runtime/api/apis/IndexApi.js +104 -0
  18. package/dist/runtime/api/apis/JobsApi.d.ts +1 -1
  19. package/dist/runtime/api/apis/SystemApi.d.ts +1 -1
  20. package/dist/runtime/api/docs/AuthApi.md +78 -0
  21. package/dist/runtime/api/docs/CollectionApi.md +335 -2
  22. package/dist/runtime/api/docs/CollectionPermission.md +40 -0
  23. package/dist/runtime/api/docs/CollectionSummary.md +50 -0
  24. package/dist/runtime/api/docs/CopyRequest.md +40 -0
  25. package/dist/runtime/api/docs/CopyResponse.md +38 -0
  26. package/dist/runtime/api/docs/CountResponse.md +34 -0
  27. package/dist/runtime/api/docs/DocumentApi.md +377 -8
  28. package/dist/runtime/api/docs/FieldInfo.md +36 -0
  29. package/dist/runtime/api/docs/FieldTypeCount.md +36 -0
  30. package/dist/runtime/api/docs/ImportResponse.md +42 -0
  31. package/dist/runtime/api/docs/IndexApi.md +156 -0
  32. package/dist/runtime/api/docs/IndexCreateRequest.md +2 -0
  33. package/dist/runtime/api/docs/IndexInfo.md +54 -0
  34. package/dist/runtime/api/docs/IndexKey.md +36 -0
  35. package/dist/runtime/api/docs/IndexOptionsRequest.md +10 -0
  36. package/dist/runtime/api/docs/IndexUsage.md +40 -0
  37. package/dist/runtime/api/docs/InsertError.md +38 -0
  38. package/dist/runtime/api/docs/InsertResponse.md +4 -0
  39. package/dist/runtime/api/docs/RenameRequest.md +36 -0
  40. package/dist/runtime/api/docs/RenameResponse.md +34 -0
  41. package/dist/runtime/api/docs/SearchRequest.md +38 -0
  42. package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
  43. package/dist/runtime/api/models/ClusterInformation.d.ts +1 -1
  44. package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -1
  45. package/dist/runtime/api/models/CollectionPermission.d.ts +50 -0
  46. package/dist/runtime/api/models/CollectionPermission.js +35 -0
  47. package/dist/runtime/api/models/CollectionStatus.d.ts +1 -1
  48. package/dist/runtime/api/models/CollectionSummary.d.ts +80 -0
  49. package/dist/runtime/api/models/CollectionSummary.js +50 -0
  50. package/dist/runtime/api/models/CopyRequest.d.ts +50 -0
  51. package/dist/runtime/api/models/CopyRequest.js +32 -0
  52. package/dist/runtime/api/models/CopyResponse.d.ts +44 -0
  53. package/dist/runtime/api/models/CopyResponse.js +32 -0
  54. package/dist/runtime/api/models/CountResponse.d.ts +32 -0
  55. package/dist/runtime/api/models/CountResponse.js +26 -0
  56. package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
  57. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
  58. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
  59. package/dist/runtime/api/models/FieldInfo.d.ts +39 -0
  60. package/dist/runtime/api/models/FieldInfo.js +32 -0
  61. package/dist/runtime/api/models/FieldTypeCount.d.ts +38 -0
  62. package/dist/runtime/api/models/FieldTypeCount.js +29 -0
  63. package/dist/runtime/api/models/FileInformation.d.ts +1 -1
  64. package/dist/runtime/api/models/Grant.d.ts +1 -1
  65. package/dist/runtime/api/models/ImportResponse.d.ts +57 -0
  66. package/dist/runtime/api/models/ImportResponse.js +41 -0
  67. package/dist/runtime/api/models/IndexCreateRequest.d.ts +9 -2
  68. package/dist/runtime/api/models/IndexCreateRequest.js +9 -4
  69. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
  70. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
  71. package/dist/runtime/api/models/IndexInfo.d.ts +99 -0
  72. package/dist/runtime/api/models/IndexInfo.js +54 -0
  73. package/dist/runtime/api/models/IndexKey.d.ts +38 -0
  74. package/dist/runtime/api/models/IndexKey.js +29 -0
  75. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +37 -1
  76. package/dist/runtime/api/models/IndexOptionsRequest.js +12 -2
  77. package/dist/runtime/api/models/IndexUsage.d.ts +52 -0
  78. package/dist/runtime/api/models/IndexUsage.js +35 -0
  79. package/dist/runtime/api/models/InsertError.d.ts +44 -0
  80. package/dist/runtime/api/models/InsertError.js +32 -0
  81. package/dist/runtime/api/models/InsertResponse.d.ts +14 -1
  82. package/dist/runtime/api/models/InsertResponse.js +10 -2
  83. package/dist/runtime/api/models/JobConfig.d.ts +1 -1
  84. package/dist/runtime/api/models/JobInformation.d.ts +1 -1
  85. package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
  86. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
  87. package/dist/runtime/api/models/JsonValueAny.d.ts +1 -1
  88. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
  89. package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
  90. package/dist/runtime/api/models/Login.d.ts +1 -1
  91. package/dist/runtime/api/models/LoginResult.d.ts +1 -1
  92. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -1
  93. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -1
  94. package/dist/runtime/api/models/MongoFindRequest.d.ts +1 -1
  95. package/dist/runtime/api/models/MongoIndex.d.ts +1 -1
  96. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
  97. package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
  98. package/dist/runtime/api/models/RenameRequest.d.ts +38 -0
  99. package/dist/runtime/api/models/RenameRequest.js +28 -0
  100. package/dist/runtime/api/models/RenameResponse.d.ts +32 -0
  101. package/dist/runtime/api/models/RenameResponse.js +26 -0
  102. package/dist/runtime/api/models/Role.d.ts +1 -1
  103. package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -1
  104. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -1
  105. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
  106. package/dist/runtime/api/models/SearchRequest.d.ts +44 -0
  107. package/dist/runtime/api/models/SearchRequest.js +29 -0
  108. package/dist/runtime/api/models/SettingsResponse.d.ts +1 -1
  109. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
  110. package/dist/runtime/api/models/UpdateRequest.d.ts +1 -1
  111. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
  112. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -1
  113. package/dist/runtime/api/models/UserInformation.d.ts +1 -1
  114. package/dist/runtime/api/models/UserProfile.d.ts +1 -1
  115. package/dist/runtime/api/models/Version.d.ts +1 -1
  116. package/dist/runtime/api/models/index.d.ts +15 -0
  117. package/dist/runtime/api/models/index.js +15 -0
  118. package/dist/runtime/api/runtime.d.ts +1 -1
  119. package/package.json +8 -8
@@ -11,6 +11,8 @@ All URIs are relative to *http://localhost*
11
11
  | [**createUniqueIndex**](IndexApi.md#createuniqueindex) | **PUT** /mongodb/collections/{collectionName}/index/field/{fieldName}/unique | Create Unique Index |
12
12
  | [**deleteIndex**](IndexApi.md#deleteindex) | **DELETE** /mongodb/collections/{collectionName}/index/{indexName} | Delete Index |
13
13
  | [**index**](IndexApi.md#index) | **GET** /mongodb/collections/{collectionName}/index/{indexName} | Index for Collection |
14
+ | [**indexDetails**](IndexApi.md#indexdetails) | **GET** /mongodb/collections/{collectionName}/index/details | Indices with details for Collection |
15
+ | [**indexStats**](IndexApi.md#indexstats) | **GET** /mongodb/collections/{collectionName}/index/stats | Index usage for Collection |
14
16
  | [**listIndices**](IndexApi.md#listindices) | **GET** /mongodb/collections/{collectionName}/index | List Indices for Collection |
15
17
 
16
18
 
@@ -604,6 +606,160 @@ example().catch(console.error);
604
606
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
605
607
 
606
608
 
609
+ ## indexDetails
610
+
611
+ > Array<IndexInfo> indexDetails(collectionName)
612
+
613
+ Indices with details for Collection
614
+
615
+ All Indices of the given Collection as the database reports them: the keys in the order of the index (`direction` is 1, -1 or the type of the key, a text index lists its fields), unique, sparse, hidden, partial filter, collation, weights, default language and expiration.
616
+
617
+ ### Example
618
+
619
+ ```ts
620
+ import {
621
+ Configuration,
622
+ IndexApi,
623
+ } from '';
624
+ import type { IndexDetailsRequest } from '';
625
+
626
+ async function example() {
627
+ console.log("🚀 Testing SDK...");
628
+ const config = new Configuration({
629
+ // To configure HTTP basic authorization: httpAuth1
630
+ username: "YOUR USERNAME",
631
+ password: "YOUR PASSWORD",
632
+ // Configure HTTP bearer authorization: httpAuth
633
+ accessToken: "YOUR BEARER TOKEN",
634
+ // To configure API key authorization: apiKeyAuth
635
+ apiKey: "YOUR API KEY",
636
+ });
637
+ const api = new IndexApi(config);
638
+
639
+ const body = {
640
+ // string | The name of your MongoDb Collection
641
+ collectionName: collectionName_example,
642
+ } satisfies IndexDetailsRequest;
643
+
644
+ try {
645
+ const data = await api.indexDetails(body);
646
+ console.log(data);
647
+ } catch (error) {
648
+ console.error(error);
649
+ }
650
+ }
651
+
652
+ // Run the test
653
+ example().catch(console.error);
654
+ ```
655
+
656
+ ### Parameters
657
+
658
+
659
+ | Name | Type | Description | Notes |
660
+ |------------- | ------------- | ------------- | -------------|
661
+ | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
662
+
663
+ ### Return type
664
+
665
+ [**Array<IndexInfo>**](IndexInfo.md)
666
+
667
+ ### Authorization
668
+
669
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
670
+
671
+ ### HTTP request headers
672
+
673
+ - **Content-Type**: Not defined
674
+ - **Accept**: `application/json`
675
+
676
+
677
+ ### HTTP response details
678
+ | Status code | Description | Response headers |
679
+ |-------------|-------------|------------------|
680
+ | **200** | | - |
681
+ | **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> |
682
+
683
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
684
+
685
+
686
+ ## indexStats
687
+
688
+ > Array&lt;IndexUsage&gt; indexStats(collectionName)
689
+
690
+ Index usage for Collection
691
+
692
+ 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.
693
+
694
+ ### Example
695
+
696
+ ```ts
697
+ import {
698
+ Configuration,
699
+ IndexApi,
700
+ } from '';
701
+ import type { IndexStatsRequest } from '';
702
+
703
+ async function example() {
704
+ console.log("🚀 Testing SDK...");
705
+ const config = new Configuration({
706
+ // To configure HTTP basic authorization: httpAuth1
707
+ username: "YOUR USERNAME",
708
+ password: "YOUR PASSWORD",
709
+ // Configure HTTP bearer authorization: httpAuth
710
+ accessToken: "YOUR BEARER TOKEN",
711
+ // To configure API key authorization: apiKeyAuth
712
+ apiKey: "YOUR API KEY",
713
+ });
714
+ const api = new IndexApi(config);
715
+
716
+ const body = {
717
+ // string | The name of your MongoDb Collection
718
+ collectionName: collectionName_example,
719
+ } satisfies IndexStatsRequest;
720
+
721
+ try {
722
+ const data = await api.indexStats(body);
723
+ console.log(data);
724
+ } catch (error) {
725
+ console.error(error);
726
+ }
727
+ }
728
+
729
+ // Run the test
730
+ example().catch(console.error);
731
+ ```
732
+
733
+ ### Parameters
734
+
735
+
736
+ | Name | Type | Description | Notes |
737
+ |------------- | ------------- | ------------- | -------------|
738
+ | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
739
+
740
+ ### Return type
741
+
742
+ [**Array&lt;IndexUsage&gt;**](IndexUsage.md)
743
+
744
+ ### Authorization
745
+
746
+ [httpAuth1](../README.md#httpAuth1), [httpAuth](../README.md#httpAuth), [apiKeyAuth](../README.md#apiKeyAuth)
747
+
748
+ ### HTTP request headers
749
+
750
+ - **Content-Type**: Not defined
751
+ - **Accept**: `application/json`
752
+
753
+
754
+ ### HTTP response details
755
+ | Status code | Description | Response headers |
756
+ |-------------|-------------|------------------|
757
+ | **200** | | - |
758
+ | **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> |
759
+
760
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
761
+
762
+
607
763
  ## listIndices
608
764
 
609
765
  > Array&lt;MongoIndex&gt; listIndices(collectionName)
@@ -8,6 +8,7 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `keys` | { [key: string]: number; }
10
10
  `indexOptionsRequest` | [IndexOptionsRequest](IndexOptionsRequest.md)
11
+ `orderedKeys` | [Array&lt;IndexKey&gt;](IndexKey.md)
11
12
 
12
13
  ## Example
13
14
 
@@ -18,6 +19,7 @@ import type { IndexCreateRequest } from ''
18
19
  const example = {
19
20
  "keys": null,
20
21
  "indexOptionsRequest": null,
22
+ "orderedKeys": null,
21
23
  } satisfies IndexCreateRequest
22
24
 
23
25
  console.log(example)
@@ -0,0 +1,54 @@
1
+
2
+ # IndexInfo
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `keys` | [Array&lt;IndexKey&gt;](IndexKey.md)
11
+ `unique` | boolean
12
+ `sparse` | boolean
13
+ `hidden` | boolean
14
+ `partialFilterExpression` | { [key: string]: any; }
15
+ `collation` | { [key: string]: any; }
16
+ `weights` | { [key: string]: any; }
17
+ `defaultLanguage` | string
18
+ `expireAfterSeconds` | number
19
+ `version` | number
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import type { IndexInfo } from ''
25
+
26
+ // TODO: Update the object below with actual values
27
+ const example = {
28
+ "name": null,
29
+ "keys": null,
30
+ "unique": null,
31
+ "sparse": null,
32
+ "hidden": null,
33
+ "partialFilterExpression": null,
34
+ "collation": null,
35
+ "weights": null,
36
+ "defaultLanguage": null,
37
+ "expireAfterSeconds": null,
38
+ "version": null,
39
+ } satisfies IndexInfo
40
+
41
+ console.log(example)
42
+
43
+ // Convert the instance to a JSON string
44
+ const exampleJSON: string = JSON.stringify(example)
45
+ console.log(exampleJSON)
46
+
47
+ // Parse the JSON string back to an object
48
+ const exampleParsed = JSON.parse(exampleJSON) as IndexInfo
49
+ console.log(exampleParsed)
50
+ ```
51
+
52
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
53
+
54
+
@@ -0,0 +1,36 @@
1
+
2
+ # IndexKey
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `field` | string
10
+ `direction` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { IndexKey } from ''
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "field": null,
20
+ "direction": null,
21
+ } satisfies IndexKey
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as IndexKey
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -14,6 +14,11 @@ Name | Type
14
14
  `unique` | boolean
15
15
  `max` | number
16
16
  `min` | number
17
+ `sparse` | boolean
18
+ `hidden` | boolean
19
+ `partialFilterExpression` | { [key: string]: any; }
20
+ `weights` | { [key: string]: number; }
21
+ `collation` | { [key: string]: any; }
17
22
 
18
23
  ## Example
19
24
 
@@ -30,6 +35,11 @@ const example = {
30
35
  "unique": null,
31
36
  "max": null,
32
37
  "min": null,
38
+ "sparse": null,
39
+ "hidden": null,
40
+ "partialFilterExpression": null,
41
+ "weights": null,
42
+ "collation": null,
33
43
  } satisfies IndexOptionsRequest
34
44
 
35
45
  console.log(example)
@@ -0,0 +1,40 @@
1
+
2
+ # IndexUsage
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `key` | { [key: string]: any; }
11
+ `ops` | number
12
+ `since` | Date
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { IndexUsage } from ''
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "name": null,
22
+ "key": null,
23
+ "ops": null,
24
+ "since": null,
25
+ } satisfies IndexUsage
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 IndexUsage
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,38 @@
1
+
2
+ # InsertError
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `index` | number
10
+ `code` | number
11
+ `message` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { InsertError } from ''
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "index": null,
21
+ "code": null,
22
+ "message": null,
23
+ } satisfies InsertError
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as InsertError
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -8,6 +8,8 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `wasAcknowledged` | boolean
10
10
  `insertedIds` | Array&lt;string&gt;
11
+ `insertedCount` | number
12
+ `errors` | [Array&lt;InsertError&gt;](InsertError.md)
11
13
 
12
14
  ## Example
13
15
 
@@ -18,6 +20,8 @@ import type { InsertResponse } from ''
18
20
  const example = {
19
21
  "wasAcknowledged": null,
20
22
  "insertedIds": null,
23
+ "insertedCount": null,
24
+ "errors": null,
21
25
  } satisfies InsertResponse
22
26
 
23
27
  console.log(example)
@@ -0,0 +1,36 @@
1
+
2
+ # RenameRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `target` | string
10
+ `dropTarget` | boolean
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { RenameRequest } from ''
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "target": null,
20
+ "dropTarget": null,
21
+ } satisfies RenameRequest
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as RenameRequest
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,34 @@
1
+
2
+ # RenameResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { RenameResponse } from ''
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "name": null,
19
+ } satisfies RenameResponse
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 RenameResponse
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
+
@@ -0,0 +1,38 @@
1
+
2
+ # SearchRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `filter` | string
10
+ `sort` | Array&lt;string&gt;
11
+ `projection` | Array&lt;string&gt;
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { SearchRequest } from ''
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "filter": null,
21
+ "sort": null,
22
+ "projection": null,
23
+ } satisfies SearchRequest
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as SearchRequest
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -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.8.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.8.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.8.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,50 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.8.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CollectionPermission
16
+ */
17
+ export interface CollectionPermission {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CollectionPermission
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof CollectionPermission
28
+ */
29
+ read: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof CollectionPermission
34
+ */
35
+ write: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof CollectionPermission
40
+ */
41
+ administrate: boolean;
42
+ }
43
+ /**
44
+ * Check if a given object implements the CollectionPermission interface.
45
+ */
46
+ export declare function instanceOfCollectionPermission(value: object): value is CollectionPermission;
47
+ export declare function CollectionPermissionFromJSON(json: any): CollectionPermission;
48
+ export declare function CollectionPermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionPermission;
49
+ export declare function CollectionPermissionToJSON(json: any): CollectionPermission;
50
+ export declare function CollectionPermissionToJSONTyped(value?: CollectionPermission | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,35 @@
1
+ export function instanceOfCollectionPermission(value) {
2
+ if (!("name" in value) || value["name"] === void 0) return false;
3
+ if (!("read" in value) || value["read"] === void 0) return false;
4
+ if (!("write" in value) || value["write"] === void 0) return false;
5
+ if (!("administrate" in value) || value["administrate"] === void 0) return false;
6
+ return true;
7
+ }
8
+ export function CollectionPermissionFromJSON(json) {
9
+ return CollectionPermissionFromJSONTyped(json, false);
10
+ }
11
+ export function CollectionPermissionFromJSONTyped(json, ignoreDiscriminator) {
12
+ if (json == null) {
13
+ return json;
14
+ }
15
+ return {
16
+ "name": json["name"],
17
+ "read": json["read"],
18
+ "write": json["write"],
19
+ "administrate": json["administrate"]
20
+ };
21
+ }
22
+ export function CollectionPermissionToJSON(json) {
23
+ return CollectionPermissionToJSONTyped(json, false);
24
+ }
25
+ export function CollectionPermissionToJSONTyped(value, ignoreDiscriminator = false) {
26
+ if (value == null) {
27
+ return value;
28
+ }
29
+ return {
30
+ "name": value["name"],
31
+ "read": value["read"],
32
+ "write": value["write"],
33
+ "administrate": value["administrate"]
34
+ };
35
+ }
@@ -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.8.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).