@sfxcode/nuxt-mongocamp-server 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/module.json +2 -2
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/api/.openapi-generator/VERSION +1 -1
  4. package/dist/runtime/api/apis/AdminApi.d.ts +65 -2
  5. package/dist/runtime/api/apis/AdminApi.js +39 -27
  6. package/dist/runtime/api/apis/ApplicationApi.d.ts +17 -2
  7. package/dist/runtime/api/apis/ApplicationApi.js +17 -11
  8. package/dist/runtime/api/apis/AuthApi.d.ts +17 -2
  9. package/dist/runtime/api/apis/AuthApi.js +27 -15
  10. package/dist/runtime/api/apis/BucketApi.d.ts +12 -2
  11. package/dist/runtime/api/apis/BucketApi.js +11 -9
  12. package/dist/runtime/api/apis/CollectionApi.d.ts +107 -4
  13. package/dist/runtime/api/apis/CollectionApi.js +58 -38
  14. package/dist/runtime/api/apis/DatabaseApi.d.ts +12 -2
  15. package/dist/runtime/api/apis/DatabaseApi.js +12 -10
  16. package/dist/runtime/api/apis/DocumentApi.d.ts +178 -15
  17. package/dist/runtime/api/apis/DocumentApi.js +54 -40
  18. package/dist/runtime/api/apis/FileApi.d.ts +78 -4
  19. package/dist/runtime/api/apis/FileApi.js +34 -24
  20. package/dist/runtime/api/apis/IndexApi.d.ts +83 -2
  21. package/dist/runtime/api/apis/IndexApi.js +46 -34
  22. package/dist/runtime/api/apis/JobsApi.d.ts +28 -2
  23. package/dist/runtime/api/apis/JobsApi.js +19 -15
  24. package/dist/runtime/api/apis/SystemApi.d.ts +3 -2
  25. package/dist/runtime/api/apis/SystemApi.js +5 -3
  26. package/dist/runtime/api/docs/CollectionApi.md +2 -2
  27. package/dist/runtime/api/docs/CollectionStatus.md +1 -1
  28. package/dist/runtime/api/docs/DatabaseInfo.md +1 -1
  29. package/dist/runtime/api/docs/DocumentApi.md +19 -19
  30. package/dist/runtime/api/docs/FileInformation.md +1 -1
  31. package/dist/runtime/api/docs/IndexInfo.md +3 -3
  32. package/dist/runtime/api/docs/IndexOptionsRequest.md +2 -2
  33. package/dist/runtime/api/docs/IndexUsage.md +1 -1
  34. package/dist/runtime/api/docs/JsonSchemaDefinition.md +1 -1
  35. package/dist/runtime/api/docs/MongoFindRequest.md +3 -3
  36. package/dist/runtime/api/docs/MongoIndex.md +3 -3
  37. package/dist/runtime/api/docs/SettingsResponse.md +1 -1
  38. package/dist/runtime/api/docs/UpdateFileInformationRequest.md +1 -1
  39. package/dist/runtime/api/docs/UpdateRequest.md +2 -2
  40. package/dist/runtime/api/models/BucketInformation.d.ts +1 -9
  41. package/dist/runtime/api/models/ClusterInformation.d.ts +1 -5
  42. package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -11
  43. package/dist/runtime/api/models/CollectionPermission.d.ts +1 -9
  44. package/dist/runtime/api/models/CollectionStatus.d.ts +2 -28
  45. package/dist/runtime/api/models/CollectionStatus.js +3 -2
  46. package/dist/runtime/api/models/CollectionSummary.d.ts +1 -19
  47. package/dist/runtime/api/models/CopyRequest.d.ts +1 -9
  48. package/dist/runtime/api/models/CopyResponse.d.ts +1 -7
  49. package/dist/runtime/api/models/CountResponse.d.ts +1 -3
  50. package/dist/runtime/api/models/DatabaseInfo.d.ts +2 -12
  51. package/dist/runtime/api/models/DatabaseInfo.js +3 -2
  52. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -5
  53. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -7
  54. package/dist/runtime/api/models/FieldInfo.d.ts +1 -5
  55. package/dist/runtime/api/models/FieldTypeCount.d.ts +1 -5
  56. package/dist/runtime/api/models/FileInformation.d.ts +2 -14
  57. package/dist/runtime/api/models/FileInformation.js +4 -3
  58. package/dist/runtime/api/models/Grant.d.ts +1 -11
  59. package/dist/runtime/api/models/ImportResponse.d.ts +1 -11
  60. package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -7
  61. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -3
  62. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -3
  63. package/dist/runtime/api/models/IndexInfo.d.ts +4 -26
  64. package/dist/runtime/api/models/IndexKey.d.ts +1 -5
  65. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +3 -29
  66. package/dist/runtime/api/models/IndexUsage.d.ts +2 -10
  67. package/dist/runtime/api/models/IndexUsage.js +3 -2
  68. package/dist/runtime/api/models/InsertError.d.ts +1 -7
  69. package/dist/runtime/api/models/InsertResponse.d.ts +1 -9
  70. package/dist/runtime/api/models/JobConfig.d.ts +1 -13
  71. package/dist/runtime/api/models/JobInformation.d.ts +1 -19
  72. package/dist/runtime/api/models/JobInformation.js +5 -4
  73. package/dist/runtime/api/models/JsonSchema.d.ts +1 -7
  74. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +2 -12
  75. package/dist/runtime/api/models/JsonValueAny.d.ts +1 -3
  76. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -3
  77. package/dist/runtime/api/models/JsonValueString.d.ts +1 -3
  78. package/dist/runtime/api/models/Login.d.ts +1 -5
  79. package/dist/runtime/api/models/LoginResult.d.ts +1 -7
  80. package/dist/runtime/api/models/LoginResult.js +3 -2
  81. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -5
  82. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -11
  83. package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -10
  84. package/dist/runtime/api/models/MongoIndex.d.ts +4 -28
  85. package/dist/runtime/api/models/MongoIndex.js +3 -2
  86. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -3
  87. package/dist/runtime/api/models/PipelineStage.d.ts +1 -5
  88. package/dist/runtime/api/models/RenameRequest.d.ts +1 -5
  89. package/dist/runtime/api/models/RenameResponse.d.ts +1 -3
  90. package/dist/runtime/api/models/Role.d.ts +1 -7
  91. package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -9
  92. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -13
  93. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -7
  94. package/dist/runtime/api/models/SearchRequest.d.ts +1 -7
  95. package/dist/runtime/api/models/SettingsResponse.d.ts +2 -10
  96. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +2 -6
  97. package/dist/runtime/api/models/UpdateRequest.d.ts +3 -7
  98. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -9
  99. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -5
  100. package/dist/runtime/api/models/UserInformation.d.ts +1 -9
  101. package/dist/runtime/api/models/UserProfile.d.ts +1 -11
  102. package/dist/runtime/api/models/Version.d.ts +1 -7
  103. package/dist/runtime/api/models/Version.js +3 -2
  104. package/dist/runtime/api/runtime.d.ts +35 -2
  105. package/dist/runtime/api/runtime.js +84 -4
  106. package/dist/runtime/composables/mongocampApiFiles.d.ts +1 -1
  107. package/dist/runtime/composables/mongocampStorage.d.ts +1 -1
  108. package/package.json +3 -3
@@ -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.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,14 +10,24 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { BucketInformation, JsonValueBoolean } from '../models/index.js';
13
+ import { type BucketInformation } from '../models/BucketInformation.js';
14
+ import { type JsonValueBoolean } from '../models/JsonValueBoolean.js';
14
15
  export interface ClearBucketRequest {
16
+ /**
17
+ * The name of your MongoDb Collection
18
+ */
15
19
  bucketName: string;
16
20
  }
17
21
  export interface DeleteBucketRequest {
22
+ /**
23
+ * The name of your MongoDb Collection
24
+ */
18
25
  bucketName: string;
19
26
  }
20
27
  export interface GetBucketRequest {
28
+ /**
29
+ * The name of your MongoDb Collection
30
+ */
21
31
  bucketName: string;
22
32
  }
23
33
  /**
@@ -1,8 +1,10 @@
1
1
  import * as runtime from "../runtime.js";
2
2
  import {
3
- BucketInformationFromJSON,
3
+ BucketInformationFromJSON
4
+ } from "../models/BucketInformation.js";
5
+ import {
4
6
  JsonValueBooleanFromJSON
5
- } from "../models/index.js";
7
+ } from "../models/JsonValueBoolean.js";
6
8
  export class BucketApi extends runtime.BaseAPI {
7
9
  /**
8
10
  * Creates request options for clearBucket without sending the request
@@ -17,7 +19,7 @@ export class BucketApi extends runtime.BaseAPI {
17
19
  const queryParameters = {};
18
20
  const headerParameters = {};
19
21
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
20
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
22
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
21
23
  }
22
24
  if (this.configuration && this.configuration.accessToken) {
23
25
  const token = this.configuration.accessToken;
@@ -30,7 +32,7 @@ export class BucketApi extends runtime.BaseAPI {
30
32
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
31
33
  }
32
34
  let urlPath = `/mongodb/buckets/{bucketName}/clear`;
33
- urlPath = urlPath.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters["bucketName"])));
35
+ urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
34
36
  return {
35
37
  path: urlPath,
36
38
  method: "DELETE",
@@ -68,7 +70,7 @@ export class BucketApi extends runtime.BaseAPI {
68
70
  const queryParameters = {};
69
71
  const headerParameters = {};
70
72
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
71
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
73
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
72
74
  }
73
75
  if (this.configuration && this.configuration.accessToken) {
74
76
  const token = this.configuration.accessToken;
@@ -81,7 +83,7 @@ export class BucketApi extends runtime.BaseAPI {
81
83
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
82
84
  }
83
85
  let urlPath = `/mongodb/buckets/{bucketName}`;
84
- urlPath = urlPath.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters["bucketName"])));
86
+ urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
85
87
  return {
86
88
  path: urlPath,
87
89
  method: "DELETE",
@@ -119,7 +121,7 @@ export class BucketApi extends runtime.BaseAPI {
119
121
  const queryParameters = {};
120
122
  const headerParameters = {};
121
123
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
122
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
124
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
123
125
  }
124
126
  if (this.configuration && this.configuration.accessToken) {
125
127
  const token = this.configuration.accessToken;
@@ -132,7 +134,7 @@ export class BucketApi extends runtime.BaseAPI {
132
134
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
133
135
  }
134
136
  let urlPath = `/mongodb/buckets/{bucketName}`;
135
- urlPath = urlPath.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters["bucketName"])));
137
+ urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
136
138
  return {
137
139
  path: urlPath,
138
140
  method: "GET",
@@ -164,7 +166,7 @@ export class BucketApi extends runtime.BaseAPI {
164
166
  const queryParameters = {};
165
167
  const headerParameters = {};
166
168
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
167
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
169
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
168
170
  }
169
171
  if (this.configuration && this.configuration.accessToken) {
170
172
  const token = this.configuration.accessToken;
@@ -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.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,62 +10,165 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { CollectionStatus, CollectionSummary, CopyRequest, CopyResponse, FieldInfo, JsonSchema, JsonValueBoolean, MongoAggregateRequest, RenameRequest, RenameResponse, SchemaAnalysis } from '../models/index.js';
13
+ import { type CollectionStatus } from '../models/CollectionStatus.js';
14
+ import { type CollectionSummary } from '../models/CollectionSummary.js';
15
+ import { type CopyRequest } from '../models/CopyRequest.js';
16
+ import { type CopyResponse } from '../models/CopyResponse.js';
17
+ import { type FieldInfo } from '../models/FieldInfo.js';
18
+ import { type JsonSchema } from '../models/JsonSchema.js';
19
+ import { type JsonValueBoolean } from '../models/JsonValueBoolean.js';
20
+ import { type MongoAggregateRequest } from '../models/MongoAggregateRequest.js';
21
+ import { type RenameRequest } from '../models/RenameRequest.js';
22
+ import { type RenameResponse } from '../models/RenameResponse.js';
23
+ import { type SchemaAnalysis } from '../models/SchemaAnalysis.js';
14
24
  export interface AggregateRequest {
25
+ /**
26
+ * The name of your MongoDb Collection
27
+ */
15
28
  collectionName: string;
29
+ /**
30
+ *
31
+ */
16
32
  mongoAggregateRequest: MongoAggregateRequest;
33
+ /**
34
+ * Count elements per page
35
+ */
17
36
  rowsPerPage?: number;
37
+ /**
38
+ * Requested page of the ResultSets
39
+ */
18
40
  page?: number;
41
+ /**
42
+ * 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.
43
+ */
19
44
  filter?: string;
45
+ /**
46
+ * 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.
47
+ */
20
48
  extendedJson?: string;
21
49
  }
22
50
  export interface ClearCollectionRequest {
51
+ /**
52
+ * The name of your MongoDb Collection
53
+ */
23
54
  collectionName: string;
24
55
  }
25
56
  export interface CopyCollectionRequest {
57
+ /**
58
+ * The name of your MongoDb Collection
59
+ */
26
60
  collectionName: string;
61
+ /**
62
+ *
63
+ */
27
64
  copyRequest: CopyRequest;
28
65
  }
29
66
  export interface DeleteCollectionRequest {
67
+ /**
68
+ * The name of your MongoDb Collection
69
+ */
30
70
  collectionName: string;
31
71
  }
32
72
  export interface DistinctRequest {
73
+ /**
74
+ * The name of your MongoDb Collection
75
+ */
33
76
  collectionName: string;
77
+ /**
78
+ * The field for your distinct Request.
79
+ */
34
80
  field: string;
81
+ /**
82
+ * Count elements per page
83
+ */
35
84
  rowsPerPage?: number;
85
+ /**
86
+ * Requested page of the ResultSets
87
+ */
36
88
  page?: number;
37
89
  }
38
90
  export interface GetCollectionFieldsRequest {
91
+ /**
92
+ * The name of your MongoDb Collection
93
+ */
39
94
  collectionName: string;
95
+ /**
96
+ * Use sample size greater 0 (e.g. 1000) for better performance on big collections
97
+ */
40
98
  sampleSize?: number;
41
99
  }
42
100
  export interface GetCollectionInformationRequest {
101
+ /**
102
+ * The name of your MongoDb Collection
103
+ */
43
104
  collectionName: string;
105
+ /**
106
+ * Include all details for the Collection
107
+ */
44
108
  includeDetails?: boolean;
45
109
  }
46
110
  export interface GetFieldDetailsRequest {
111
+ /**
112
+ * The name of your MongoDb Collection
113
+ */
47
114
  collectionName: string;
115
+ /**
116
+ * Number of documents that are analysed, 1000 by default. A greater sample is more exact and slower on big collections.
117
+ */
48
118
  sampleSize?: number;
119
+ /**
120
+ * How deep should the objects extracted
121
+ */
49
122
  depth?: number;
50
123
  }
51
124
  export interface GetJsonSchemaRequest {
125
+ /**
126
+ * The name of your MongoDb Collection
127
+ */
52
128
  collectionName: string;
129
+ /**
130
+ * Use sample size greater 0 (e.g. 5000) for better performance on big collections
131
+ */
53
132
  sampleSize?: number;
133
+ /**
134
+ * How deep should the objects extracted
135
+ */
54
136
  deepth?: number;
55
137
  }
56
138
  export interface GetSchemaAnalysisRequest {
139
+ /**
140
+ * The name of your MongoDb Collection
141
+ */
57
142
  collectionName: string;
143
+ /**
144
+ * Use sample size greater 0 (e.g. 5000) for better performance on big collections
145
+ */
58
146
  sampleSize?: number;
147
+ /**
148
+ * How deep should the objects extracted
149
+ */
59
150
  deepth?: number;
60
151
  }
61
152
  export interface ListCollectionInformationRequest {
153
+ /**
154
+ * Only the Collections with these names, by default all Collections that the user may read
155
+ */
62
156
  name?: Array<string>;
63
157
  }
64
158
  export interface ListCollectionsByDatabaseRequest {
159
+ /**
160
+ * Name of your Database
161
+ */
65
162
  databaseName: string;
66
163
  }
67
164
  export interface RenameCollectionRequest {
165
+ /**
166
+ * The name of your MongoDb Collection
167
+ */
68
168
  collectionName: string;
169
+ /**
170
+ *
171
+ */
69
172
  renameRequest: RenameRequest;
70
173
  }
71
174
  /**
@@ -81,14 +184,14 @@ export declare class CollectionApi extends runtime.BaseAPI {
81
184
  * Aggregate in Collection
82
185
  */
83
186
  aggregateRaw(requestParameters: AggregateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
84
- [key: string]: any;
187
+ [key: string]: any | null;
85
188
  }>>>;
86
189
  /**
87
190
  * 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 (`$function`, `$accumulator`, `$where`, `$out`, `$merge`, `$currentOp`, `$listSessions`, `$collStats`, `$indexStats` by default, configured with AGGREGATION_STAGES_DENIED) are refused with 403.
88
191
  * Aggregate in Collection
89
192
  */
90
193
  aggregate(requestParameters: AggregateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
91
- [key: string]: any;
194
+ [key: string]: any | null;
92
195
  }>>;
93
196
  /**
94
197
  * Creates request options for clearCollection without sending the request
@@ -1,17 +1,37 @@
1
1
  import * as runtime from "../runtime.js";
2
2
  import {
3
- CollectionStatusFromJSON,
4
- CollectionSummaryFromJSON,
5
- CopyRequestToJSON,
6
- CopyResponseFromJSON,
7
- FieldInfoFromJSON,
8
- JsonSchemaFromJSON,
9
- JsonValueBooleanFromJSON,
10
- MongoAggregateRequestToJSON,
11
- RenameRequestToJSON,
12
- RenameResponseFromJSON,
3
+ CollectionStatusFromJSON
4
+ } from "../models/CollectionStatus.js";
5
+ import {
6
+ CollectionSummaryFromJSON
7
+ } from "../models/CollectionSummary.js";
8
+ import {
9
+ CopyRequestToJSON
10
+ } from "../models/CopyRequest.js";
11
+ import {
12
+ CopyResponseFromJSON
13
+ } from "../models/CopyResponse.js";
14
+ import {
15
+ FieldInfoFromJSON
16
+ } from "../models/FieldInfo.js";
17
+ import {
18
+ JsonSchemaFromJSON
19
+ } from "../models/JsonSchema.js";
20
+ import {
21
+ JsonValueBooleanFromJSON
22
+ } from "../models/JsonValueBoolean.js";
23
+ import {
24
+ MongoAggregateRequestToJSON
25
+ } from "../models/MongoAggregateRequest.js";
26
+ import {
27
+ RenameRequestToJSON
28
+ } from "../models/RenameRequest.js";
29
+ import {
30
+ RenameResponseFromJSON
31
+ } from "../models/RenameResponse.js";
32
+ import {
13
33
  SchemaAnalysisFromJSON
14
- } from "../models/index.js";
34
+ } from "../models/SchemaAnalysis.js";
15
35
  export class CollectionApi extends runtime.BaseAPI {
16
36
  /**
17
37
  * Creates request options for aggregate without sending the request
@@ -45,7 +65,7 @@ export class CollectionApi extends runtime.BaseAPI {
45
65
  const headerParameters = {};
46
66
  headerParameters["Content-Type"] = "application/json";
47
67
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
48
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
68
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
49
69
  }
50
70
  if (this.configuration && this.configuration.accessToken) {
51
71
  const token = this.configuration.accessToken;
@@ -58,7 +78,7 @@ export class CollectionApi extends runtime.BaseAPI {
58
78
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
59
79
  }
60
80
  let urlPath = `/mongodb/collections/{collectionName}/aggregate`;
61
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
81
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
62
82
  return {
63
83
  path: urlPath,
64
84
  method: "POST",
@@ -97,7 +117,7 @@ export class CollectionApi extends runtime.BaseAPI {
97
117
  const queryParameters = {};
98
118
  const headerParameters = {};
99
119
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
100
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
120
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
101
121
  }
102
122
  if (this.configuration && this.configuration.accessToken) {
103
123
  const token = this.configuration.accessToken;
@@ -110,7 +130,7 @@ export class CollectionApi extends runtime.BaseAPI {
110
130
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
111
131
  }
112
132
  let urlPath = `/mongodb/collections/{collectionName}/clear`;
113
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
133
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
114
134
  return {
115
135
  path: urlPath,
116
136
  method: "DELETE",
@@ -155,7 +175,7 @@ export class CollectionApi extends runtime.BaseAPI {
155
175
  const headerParameters = {};
156
176
  headerParameters["Content-Type"] = "application/json";
157
177
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
158
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
178
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
159
179
  }
160
180
  if (this.configuration && this.configuration.accessToken) {
161
181
  const token = this.configuration.accessToken;
@@ -168,7 +188,7 @@ export class CollectionApi extends runtime.BaseAPI {
168
188
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
169
189
  }
170
190
  let urlPath = `/mongodb/collections/{collectionName}/copy`;
171
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
191
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
172
192
  return {
173
193
  path: urlPath,
174
194
  method: "POST",
@@ -207,7 +227,7 @@ export class CollectionApi extends runtime.BaseAPI {
207
227
  const queryParameters = {};
208
228
  const headerParameters = {};
209
229
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
210
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
230
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
211
231
  }
212
232
  if (this.configuration && this.configuration.accessToken) {
213
233
  const token = this.configuration.accessToken;
@@ -220,7 +240,7 @@ export class CollectionApi extends runtime.BaseAPI {
220
240
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
221
241
  }
222
242
  let urlPath = `/mongodb/collections/{collectionName}`;
223
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
243
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
224
244
  return {
225
245
  path: urlPath,
226
246
  method: "DELETE",
@@ -270,7 +290,7 @@ export class CollectionApi extends runtime.BaseAPI {
270
290
  }
271
291
  const headerParameters = {};
272
292
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
273
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
293
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
274
294
  }
275
295
  if (this.configuration && this.configuration.accessToken) {
276
296
  const token = this.configuration.accessToken;
@@ -283,8 +303,8 @@ export class CollectionApi extends runtime.BaseAPI {
283
303
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
284
304
  }
285
305
  let urlPath = `/mongodb/collections/{collectionName}/distinct/{field}`;
286
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
287
- urlPath = urlPath.replace(`{${"field"}}`, encodeURIComponent(String(requestParameters["field"])));
306
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
307
+ urlPath = urlPath.replace("{field}", encodeURIComponent(String(requestParameters["field"])));
288
308
  return {
289
309
  path: urlPath,
290
310
  method: "POST",
@@ -325,7 +345,7 @@ export class CollectionApi extends runtime.BaseAPI {
325
345
  }
326
346
  const headerParameters = {};
327
347
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
328
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
348
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
329
349
  }
330
350
  if (this.configuration && this.configuration.accessToken) {
331
351
  const token = this.configuration.accessToken;
@@ -338,7 +358,7 @@ export class CollectionApi extends runtime.BaseAPI {
338
358
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
339
359
  }
340
360
  let urlPath = `/mongodb/collections/{collectionName}/fields`;
341
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
361
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
342
362
  return {
343
363
  path: urlPath,
344
364
  method: "GET",
@@ -379,7 +399,7 @@ export class CollectionApi extends runtime.BaseAPI {
379
399
  }
380
400
  const headerParameters = {};
381
401
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
382
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
402
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
383
403
  }
384
404
  if (this.configuration && this.configuration.accessToken) {
385
405
  const token = this.configuration.accessToken;
@@ -392,7 +412,7 @@ export class CollectionApi extends runtime.BaseAPI {
392
412
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
393
413
  }
394
414
  let urlPath = `/mongodb/collections/{collectionName}`;
395
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
415
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
396
416
  return {
397
417
  path: urlPath,
398
418
  method: "GET",
@@ -436,7 +456,7 @@ export class CollectionApi extends runtime.BaseAPI {
436
456
  }
437
457
  const headerParameters = {};
438
458
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
439
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
459
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
440
460
  }
441
461
  if (this.configuration && this.configuration.accessToken) {
442
462
  const token = this.configuration.accessToken;
@@ -449,7 +469,7 @@ export class CollectionApi extends runtime.BaseAPI {
449
469
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
450
470
  }
451
471
  let urlPath = `/mongodb/collections/{collectionName}/fields/detail`;
452
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
472
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
453
473
  return {
454
474
  path: urlPath,
455
475
  method: "GET",
@@ -493,7 +513,7 @@ export class CollectionApi extends runtime.BaseAPI {
493
513
  }
494
514
  const headerParameters = {};
495
515
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
496
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
516
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
497
517
  }
498
518
  if (this.configuration && this.configuration.accessToken) {
499
519
  const token = this.configuration.accessToken;
@@ -506,7 +526,7 @@ export class CollectionApi extends runtime.BaseAPI {
506
526
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
507
527
  }
508
528
  let urlPath = `/mongodb/collections/{collectionName}/schema`;
509
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
529
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
510
530
  return {
511
531
  path: urlPath,
512
532
  method: "GET",
@@ -550,7 +570,7 @@ export class CollectionApi extends runtime.BaseAPI {
550
570
  }
551
571
  const headerParameters = {};
552
572
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
553
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
573
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
554
574
  }
555
575
  if (this.configuration && this.configuration.accessToken) {
556
576
  const token = this.configuration.accessToken;
@@ -563,7 +583,7 @@ export class CollectionApi extends runtime.BaseAPI {
563
583
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
564
584
  }
565
585
  let urlPath = `/mongodb/collections/{collectionName}/schema/analysis`;
566
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
586
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
567
587
  return {
568
588
  path: urlPath,
569
589
  method: "GET",
@@ -598,7 +618,7 @@ export class CollectionApi extends runtime.BaseAPI {
598
618
  }
599
619
  const headerParameters = {};
600
620
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
601
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
621
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
602
622
  }
603
623
  if (this.configuration && this.configuration.accessToken) {
604
624
  const token = this.configuration.accessToken;
@@ -642,7 +662,7 @@ export class CollectionApi extends runtime.BaseAPI {
642
662
  const queryParameters = {};
643
663
  const headerParameters = {};
644
664
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
645
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
665
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
646
666
  }
647
667
  if (this.configuration && this.configuration.accessToken) {
648
668
  const token = this.configuration.accessToken;
@@ -692,7 +712,7 @@ export class CollectionApi extends runtime.BaseAPI {
692
712
  const queryParameters = {};
693
713
  const headerParameters = {};
694
714
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
695
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
715
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
696
716
  }
697
717
  if (this.configuration && this.configuration.accessToken) {
698
718
  const token = this.configuration.accessToken;
@@ -705,7 +725,7 @@ export class CollectionApi extends runtime.BaseAPI {
705
725
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
706
726
  }
707
727
  let urlPath = `/mongodb/databases/{databaseName}/collections`;
708
- urlPath = urlPath.replace(`{${"databaseName"}}`, encodeURIComponent(String(requestParameters["databaseName"])));
728
+ urlPath = urlPath.replace("{databaseName}", encodeURIComponent(String(requestParameters["databaseName"])));
709
729
  return {
710
730
  path: urlPath,
711
731
  method: "GET",
@@ -750,7 +770,7 @@ export class CollectionApi extends runtime.BaseAPI {
750
770
  const headerParameters = {};
751
771
  headerParameters["Content-Type"] = "application/json";
752
772
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
753
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
773
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
754
774
  }
755
775
  if (this.configuration && this.configuration.accessToken) {
756
776
  const token = this.configuration.accessToken;
@@ -763,7 +783,7 @@ export class CollectionApi extends runtime.BaseAPI {
763
783
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
764
784
  }
765
785
  let urlPath = `/mongodb/collections/{collectionName}/rename`;
766
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
786
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
767
787
  return {
768
788
  path: urlPath,
769
789
  method: "POST",
@@ -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.8.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,14 +10,24 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { DatabaseInfo, JsonValueBoolean } from '../models/index.js';
13
+ import { type DatabaseInfo } from '../models/DatabaseInfo.js';
14
+ import { type JsonValueBoolean } from '../models/JsonValueBoolean.js';
14
15
  export interface DeleteDatabaseRequest {
16
+ /**
17
+ * Name of your Database
18
+ */
15
19
  databaseName: string;
16
20
  }
17
21
  export interface GetDatabaseInfoRequest {
22
+ /**
23
+ * Name of your Database
24
+ */
18
25
  databaseName: string;
19
26
  }
20
27
  export interface ListCollectionsByDatabaseRequest {
28
+ /**
29
+ * Name of your Database
30
+ */
21
31
  databaseName: string;
22
32
  }
23
33
  /**