@sfxcode/nuxt-mongocamp-server 1.7.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/README.md +8 -0
  2. package/dist/module.json +2 -2
  3. package/dist/module.mjs +1 -1
  4. package/dist/runtime/api/.openapi-generator/FILES +18 -0
  5. package/dist/runtime/api/.openapi-generator/VERSION +1 -1
  6. package/dist/runtime/api/apis/AdminApi.d.ts +65 -2
  7. package/dist/runtime/api/apis/AdminApi.js +39 -27
  8. package/dist/runtime/api/apis/ApplicationApi.d.ts +17 -2
  9. package/dist/runtime/api/apis/ApplicationApi.js +17 -11
  10. package/dist/runtime/api/apis/AuthApi.d.ts +17 -2
  11. package/dist/runtime/api/apis/AuthApi.js +27 -15
  12. package/dist/runtime/api/apis/BucketApi.d.ts +12 -2
  13. package/dist/runtime/api/apis/BucketApi.js +11 -9
  14. package/dist/runtime/api/apis/CollectionApi.d.ts +163 -4
  15. package/dist/runtime/api/apis/CollectionApi.js +230 -27
  16. package/dist/runtime/api/apis/DatabaseApi.d.ts +12 -2
  17. package/dist/runtime/api/apis/DatabaseApi.js +12 -10
  18. package/dist/runtime/api/apis/DocumentApi.d.ts +223 -15
  19. package/dist/runtime/api/apis/DocumentApi.js +194 -35
  20. package/dist/runtime/api/apis/FileApi.d.ts +78 -4
  21. package/dist/runtime/api/apis/FileApi.js +34 -24
  22. package/dist/runtime/api/apis/IndexApi.d.ts +100 -2
  23. package/dist/runtime/api/apis/IndexApi.js +95 -31
  24. package/dist/runtime/api/apis/JobsApi.d.ts +28 -2
  25. package/dist/runtime/api/apis/JobsApi.js +19 -15
  26. package/dist/runtime/api/apis/SystemApi.d.ts +3 -2
  27. package/dist/runtime/api/apis/SystemApi.js +5 -3
  28. package/dist/runtime/api/docs/CollectionApi.md +254 -2
  29. package/dist/runtime/api/docs/CollectionStatus.md +1 -1
  30. package/dist/runtime/api/docs/CopyRequest.md +40 -0
  31. package/dist/runtime/api/docs/CopyResponse.md +38 -0
  32. package/dist/runtime/api/docs/DatabaseInfo.md +1 -1
  33. package/dist/runtime/api/docs/DocumentApi.md +210 -19
  34. package/dist/runtime/api/docs/FieldInfo.md +36 -0
  35. package/dist/runtime/api/docs/FieldTypeCount.md +36 -0
  36. package/dist/runtime/api/docs/FileInformation.md +1 -1
  37. package/dist/runtime/api/docs/ImportResponse.md +42 -0
  38. package/dist/runtime/api/docs/IndexApi.md +78 -0
  39. package/dist/runtime/api/docs/IndexCreateRequest.md +2 -0
  40. package/dist/runtime/api/docs/IndexInfo.md +54 -0
  41. package/dist/runtime/api/docs/IndexKey.md +36 -0
  42. package/dist/runtime/api/docs/IndexOptionsRequest.md +10 -0
  43. package/dist/runtime/api/docs/IndexUsage.md +1 -1
  44. package/dist/runtime/api/docs/JsonSchemaDefinition.md +1 -1
  45. package/dist/runtime/api/docs/MongoFindRequest.md +3 -3
  46. package/dist/runtime/api/docs/MongoIndex.md +3 -3
  47. package/dist/runtime/api/docs/RenameRequest.md +36 -0
  48. package/dist/runtime/api/docs/RenameResponse.md +34 -0
  49. package/dist/runtime/api/docs/SettingsResponse.md +1 -1
  50. package/dist/runtime/api/docs/UpdateFileInformationRequest.md +1 -1
  51. package/dist/runtime/api/docs/UpdateRequest.md +2 -2
  52. package/dist/runtime/api/models/BucketInformation.d.ts +1 -9
  53. package/dist/runtime/api/models/ClusterInformation.d.ts +1 -5
  54. package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -11
  55. package/dist/runtime/api/models/CollectionPermission.d.ts +1 -9
  56. package/dist/runtime/api/models/CollectionStatus.d.ts +2 -28
  57. package/dist/runtime/api/models/CollectionStatus.js +3 -2
  58. package/dist/runtime/api/models/CollectionSummary.d.ts +1 -19
  59. package/dist/runtime/api/models/CopyRequest.d.ts +42 -0
  60. package/dist/runtime/api/models/CopyRequest.js +32 -0
  61. package/dist/runtime/api/models/CopyResponse.d.ts +38 -0
  62. package/dist/runtime/api/models/CopyResponse.js +32 -0
  63. package/dist/runtime/api/models/CountResponse.d.ts +1 -3
  64. package/dist/runtime/api/models/DatabaseInfo.d.ts +2 -12
  65. package/dist/runtime/api/models/DatabaseInfo.js +3 -2
  66. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -5
  67. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -7
  68. package/dist/runtime/api/models/FieldInfo.d.ts +35 -0
  69. package/dist/runtime/api/models/FieldInfo.js +32 -0
  70. package/dist/runtime/api/models/FieldTypeCount.d.ts +34 -0
  71. package/dist/runtime/api/models/FieldTypeCount.js +29 -0
  72. package/dist/runtime/api/models/FileInformation.d.ts +2 -14
  73. package/dist/runtime/api/models/FileInformation.js +4 -3
  74. package/dist/runtime/api/models/Grant.d.ts +1 -11
  75. package/dist/runtime/api/models/ImportResponse.d.ts +47 -0
  76. package/dist/runtime/api/models/ImportResponse.js +41 -0
  77. package/dist/runtime/api/models/IndexCreateRequest.d.ts +7 -6
  78. package/dist/runtime/api/models/IndexCreateRequest.js +9 -4
  79. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -3
  80. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -3
  81. package/dist/runtime/api/models/IndexInfo.d.ts +77 -0
  82. package/dist/runtime/api/models/IndexInfo.js +54 -0
  83. package/dist/runtime/api/models/IndexKey.d.ts +34 -0
  84. package/dist/runtime/api/models/IndexKey.js +29 -0
  85. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +27 -17
  86. package/dist/runtime/api/models/IndexOptionsRequest.js +12 -2
  87. package/dist/runtime/api/models/IndexUsage.d.ts +2 -10
  88. package/dist/runtime/api/models/IndexUsage.js +3 -2
  89. package/dist/runtime/api/models/InsertError.d.ts +1 -7
  90. package/dist/runtime/api/models/InsertResponse.d.ts +1 -9
  91. package/dist/runtime/api/models/JobConfig.d.ts +1 -13
  92. package/dist/runtime/api/models/JobInformation.d.ts +1 -19
  93. package/dist/runtime/api/models/JobInformation.js +5 -4
  94. package/dist/runtime/api/models/JsonSchema.d.ts +1 -7
  95. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +2 -12
  96. package/dist/runtime/api/models/JsonValueAny.d.ts +1 -3
  97. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -3
  98. package/dist/runtime/api/models/JsonValueString.d.ts +1 -3
  99. package/dist/runtime/api/models/Login.d.ts +1 -5
  100. package/dist/runtime/api/models/LoginResult.d.ts +1 -7
  101. package/dist/runtime/api/models/LoginResult.js +3 -2
  102. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -5
  103. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -11
  104. package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -10
  105. package/dist/runtime/api/models/MongoIndex.d.ts +4 -28
  106. package/dist/runtime/api/models/MongoIndex.js +3 -2
  107. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -3
  108. package/dist/runtime/api/models/PipelineStage.d.ts +1 -5
  109. package/dist/runtime/api/models/RenameRequest.d.ts +34 -0
  110. package/dist/runtime/api/models/RenameRequest.js +28 -0
  111. package/dist/runtime/api/models/RenameResponse.d.ts +30 -0
  112. package/dist/runtime/api/models/RenameResponse.js +26 -0
  113. package/dist/runtime/api/models/Role.d.ts +1 -7
  114. package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -9
  115. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -13
  116. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -7
  117. package/dist/runtime/api/models/SearchRequest.d.ts +1 -7
  118. package/dist/runtime/api/models/SettingsResponse.d.ts +2 -10
  119. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +2 -6
  120. package/dist/runtime/api/models/UpdateRequest.d.ts +3 -7
  121. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -9
  122. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -5
  123. package/dist/runtime/api/models/UserInformation.d.ts +1 -9
  124. package/dist/runtime/api/models/UserProfile.d.ts +1 -11
  125. package/dist/runtime/api/models/Version.d.ts +1 -7
  126. package/dist/runtime/api/models/Version.js +3 -2
  127. package/dist/runtime/api/models/index.d.ts +9 -0
  128. package/dist/runtime/api/models/index.js +9 -0
  129. package/dist/runtime/api/runtime.d.ts +35 -2
  130. package/dist/runtime/api/runtime.js +84 -4
  131. package/dist/runtime/composables/mongocampApiFiles.d.ts +1 -1
  132. package/dist/runtime/composables/mongocampStorage.d.ts +1 -1
  133. package/package.json +4 -4
@@ -1,12 +1,22 @@
1
1
  import * as runtime from "../runtime.js";
2
2
  import {
3
- DeleteResponseFromJSON,
4
- FileInformationFromJSON,
5
- InsertResponseFromJSON,
6
- MongoFindRequestToJSON,
7
- UpdateFileInformationRequestToJSON,
3
+ DeleteResponseFromJSON
4
+ } from "../models/DeleteResponse.js";
5
+ import {
6
+ FileInformationFromJSON
7
+ } from "../models/FileInformation.js";
8
+ import {
9
+ InsertResponseFromJSON
10
+ } from "../models/InsertResponse.js";
11
+ import {
12
+ MongoFindRequestToJSON
13
+ } from "../models/MongoFindRequest.js";
14
+ import {
15
+ UpdateFileInformationRequestToJSON
16
+ } from "../models/UpdateFileInformationRequest.js";
17
+ import {
8
18
  UpdateResponseFromJSON
9
- } from "../models/index.js";
19
+ } from "../models/UpdateResponse.js";
10
20
  export class FileApi extends runtime.BaseAPI {
11
21
  /**
12
22
  * Creates request options for deleteFile without sending the request
@@ -27,7 +37,7 @@ export class FileApi extends runtime.BaseAPI {
27
37
  const queryParameters = {};
28
38
  const headerParameters = {};
29
39
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
30
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
40
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
31
41
  }
32
42
  if (this.configuration && this.configuration.accessToken) {
33
43
  const token = this.configuration.accessToken;
@@ -40,8 +50,8 @@ export class FileApi extends runtime.BaseAPI {
40
50
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
41
51
  }
42
52
  let urlPath = `/mongodb/buckets/{bucketName}/files/{fileId}`;
43
- urlPath = urlPath.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters["bucketName"])));
44
- urlPath = urlPath.replace(`{${"fileId"}}`, encodeURIComponent(String(requestParameters["fileId"])));
53
+ urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
54
+ urlPath = urlPath.replace("{fileId}", encodeURIComponent(String(requestParameters["fileId"])));
45
55
  return {
46
56
  path: urlPath,
47
57
  method: "DELETE",
@@ -92,7 +102,7 @@ export class FileApi extends runtime.BaseAPI {
92
102
  const headerParameters = {};
93
103
  headerParameters["Content-Type"] = "application/json";
94
104
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
95
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
105
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
96
106
  }
97
107
  if (this.configuration && this.configuration.accessToken) {
98
108
  const token = this.configuration.accessToken;
@@ -105,7 +115,7 @@ export class FileApi extends runtime.BaseAPI {
105
115
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
106
116
  }
107
117
  let urlPath = `/mongodb/buckets/{bucketName}/files`;
108
- urlPath = urlPath.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters["bucketName"])));
118
+ urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
109
119
  return {
110
120
  path: urlPath,
111
121
  method: "POST",
@@ -150,7 +160,7 @@ export class FileApi extends runtime.BaseAPI {
150
160
  const queryParameters = {};
151
161
  const headerParameters = {};
152
162
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
153
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
163
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
154
164
  }
155
165
  if (this.configuration && this.configuration.accessToken) {
156
166
  const token = this.configuration.accessToken;
@@ -163,8 +173,8 @@ export class FileApi extends runtime.BaseAPI {
163
173
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
164
174
  }
165
175
  let urlPath = `/mongodb/buckets/{bucketName}/files/{fileId}/file`;
166
- urlPath = urlPath.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters["bucketName"])));
167
- urlPath = urlPath.replace(`{${"fileId"}}`, encodeURIComponent(String(requestParameters["fileId"])));
176
+ urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
177
+ urlPath = urlPath.replace("{fileId}", encodeURIComponent(String(requestParameters["fileId"])));
168
178
  return {
169
179
  path: urlPath,
170
180
  method: "GET",
@@ -208,7 +218,7 @@ export class FileApi extends runtime.BaseAPI {
208
218
  const queryParameters = {};
209
219
  const headerParameters = {};
210
220
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
211
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
221
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
212
222
  }
213
223
  if (this.configuration && this.configuration.accessToken) {
214
224
  const token = this.configuration.accessToken;
@@ -221,8 +231,8 @@ export class FileApi extends runtime.BaseAPI {
221
231
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
222
232
  }
223
233
  let urlPath = `/mongodb/buckets/{bucketName}/files/{fileId}`;
224
- urlPath = urlPath.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters["bucketName"])));
225
- urlPath = urlPath.replace(`{${"fileId"}}`, encodeURIComponent(String(requestParameters["fileId"])));
234
+ urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
235
+ urlPath = urlPath.replace("{fileId}", encodeURIComponent(String(requestParameters["fileId"])));
226
236
  return {
227
237
  path: urlPath,
228
238
  method: "GET",
@@ -275,7 +285,7 @@ export class FileApi extends runtime.BaseAPI {
275
285
  }
276
286
  const headerParameters = {};
277
287
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
278
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
288
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
279
289
  }
280
290
  if (this.configuration && this.configuration.accessToken) {
281
291
  const token = this.configuration.accessToken;
@@ -306,7 +316,7 @@ export class FileApi extends runtime.BaseAPI {
306
316
  formParams.append("metaData", requestParameters["metaData"]);
307
317
  }
308
318
  let urlPath = `/mongodb/buckets/{bucketName}/files`;
309
- urlPath = urlPath.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters["bucketName"])));
319
+ urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
310
320
  return {
311
321
  path: urlPath,
312
322
  method: "PUT",
@@ -360,7 +370,7 @@ export class FileApi extends runtime.BaseAPI {
360
370
  }
361
371
  const headerParameters = {};
362
372
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
363
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
373
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
364
374
  }
365
375
  if (this.configuration && this.configuration.accessToken) {
366
376
  const token = this.configuration.accessToken;
@@ -373,7 +383,7 @@ export class FileApi extends runtime.BaseAPI {
373
383
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
374
384
  }
375
385
  let urlPath = `/mongodb/buckets/{bucketName}/files`;
376
- urlPath = urlPath.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters["bucketName"])));
386
+ urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
377
387
  return {
378
388
  path: urlPath,
379
389
  method: "GET",
@@ -424,7 +434,7 @@ export class FileApi extends runtime.BaseAPI {
424
434
  const headerParameters = {};
425
435
  headerParameters["Content-Type"] = "application/json";
426
436
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
427
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
437
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
428
438
  }
429
439
  if (this.configuration && this.configuration.accessToken) {
430
440
  const token = this.configuration.accessToken;
@@ -437,8 +447,8 @@ export class FileApi extends runtime.BaseAPI {
437
447
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
438
448
  }
439
449
  let urlPath = `/mongodb/buckets/{bucketName}/files/{fileId}`;
440
- urlPath = urlPath.replace(`{${"bucketName"}}`, encodeURIComponent(String(requestParameters["bucketName"])));
441
- urlPath = urlPath.replace(`{${"fileId"}}`, encodeURIComponent(String(requestParameters["fileId"])));
450
+ urlPath = urlPath.replace("{bucketName}", encodeURIComponent(String(requestParameters["bucketName"])));
451
+ urlPath = urlPath.replace("{fileId}", encodeURIComponent(String(requestParameters["fileId"])));
442
452
  return {
443
453
  path: urlPath,
444
454
  method: "PATCH",
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.7.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,47 +10,131 @@
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, IndexUsage, MongoIndex } from '../models/index.js';
13
+ import { type IndexCreateRequest } from '../models/IndexCreateRequest.js';
14
+ import { type IndexCreateResponse } from '../models/IndexCreateResponse.js';
15
+ import { type IndexDropResponse } from '../models/IndexDropResponse.js';
16
+ import { type IndexInfo } from '../models/IndexInfo.js';
17
+ import { type IndexOptionsRequest } from '../models/IndexOptionsRequest.js';
18
+ import { type IndexUsage } from '../models/IndexUsage.js';
19
+ import { type MongoIndex } from '../models/MongoIndex.js';
14
20
  export interface CreateExpiringIndexRequest {
21
+ /**
22
+ * The name of your MongoDb Collection
23
+ */
15
24
  collectionName: string;
25
+ /**
26
+ * The field Name for your index
27
+ */
16
28
  fieldName: string;
29
+ /**
30
+ * Expiring Duration in format 15d (https://www.scala-lang.org/api/2.13.7/scala/concurrent/duration/Duration.html)
31
+ */
17
32
  duration: string;
33
+ /**
34
+ * Sort your index ascending
35
+ */
18
36
  sortAscending?: boolean;
37
+ /**
38
+ * Name for your index
39
+ */
19
40
  name?: string;
20
41
  }
21
42
  export interface CreateIndexRequest {
43
+ /**
44
+ * The name of your MongoDb Collection
45
+ */
22
46
  collectionName: string;
47
+ /**
48
+ *
49
+ */
23
50
  indexCreateRequest: IndexCreateRequest;
24
51
  }
25
52
  export interface CreateIndexForFieldRequest {
53
+ /**
54
+ * The name of your MongoDb Collection
55
+ */
26
56
  collectionName: string;
57
+ /**
58
+ * The field Name for your index
59
+ */
27
60
  fieldName: string;
61
+ /**
62
+ * Sort your index ascending
63
+ */
28
64
  sortAscending?: boolean;
65
+ /**
66
+ *
67
+ */
29
68
  indexOptionsRequest?: IndexOptionsRequest;
30
69
  }
31
70
  export interface CreateTextIndexRequest {
71
+ /**
72
+ * The name of your MongoDb Collection
73
+ */
32
74
  collectionName: string;
75
+ /**
76
+ * The field Name for your index
77
+ */
33
78
  fieldName: string;
79
+ /**
80
+ *
81
+ */
34
82
  indexOptionsRequest?: IndexOptionsRequest;
35
83
  }
36
84
  export interface CreateUniqueIndexRequest {
85
+ /**
86
+ * The name of your MongoDb Collection
87
+ */
37
88
  collectionName: string;
89
+ /**
90
+ * The field Name for your index
91
+ */
38
92
  fieldName: string;
93
+ /**
94
+ * Sort your index ascending
95
+ */
39
96
  sortAscending?: boolean;
97
+ /**
98
+ * Name for your index
99
+ */
40
100
  name?: string;
41
101
  }
42
102
  export interface DeleteIndexRequest {
103
+ /**
104
+ * The name of your MongoDb Collection
105
+ */
43
106
  collectionName: string;
107
+ /**
108
+ * The name of your Index
109
+ */
44
110
  indexName: string;
45
111
  }
46
112
  export interface IndexRequest {
113
+ /**
114
+ * The name of your MongoDb Collection
115
+ */
47
116
  collectionName: string;
117
+ /**
118
+ * The name of your Index
119
+ */
48
120
  indexName: string;
49
121
  }
122
+ export interface IndexDetailsRequest {
123
+ /**
124
+ * The name of your MongoDb Collection
125
+ */
126
+ collectionName: string;
127
+ }
50
128
  export interface IndexStatsRequest {
129
+ /**
130
+ * The name of your MongoDb Collection
131
+ */
51
132
  collectionName: string;
52
133
  }
53
134
  export interface ListIndicesRequest {
135
+ /**
136
+ * The name of your MongoDb Collection
137
+ */
54
138
  collectionName: string;
55
139
  }
56
140
  /**
@@ -155,6 +239,20 @@ export declare class IndexApi extends runtime.BaseAPI {
155
239
  * Index for Collection
156
240
  */
157
241
  index(requestParameters: IndexRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MongoIndex>;
242
+ /**
243
+ * Creates request options for indexDetails without sending the request
244
+ */
245
+ indexDetailsRequestOpts(requestParameters: IndexDetailsRequest): Promise<runtime.RequestOpts>;
246
+ /**
247
+ * 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.
248
+ * Indices with details for Collection
249
+ */
250
+ indexDetailsRaw(requestParameters: IndexDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IndexInfo>>>;
251
+ /**
252
+ * 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.
253
+ * Indices with details for Collection
254
+ */
255
+ indexDetails(requestParameters: IndexDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IndexInfo>>;
158
256
  /**
159
257
  * Creates request options for indexStats without sending the request
160
258
  */
@@ -1,12 +1,25 @@
1
1
  import * as runtime from "../runtime.js";
2
2
  import {
3
- IndexCreateRequestToJSON,
4
- IndexCreateResponseFromJSON,
5
- IndexDropResponseFromJSON,
6
- IndexOptionsRequestToJSON,
7
- IndexUsageFromJSON,
3
+ IndexCreateRequestToJSON
4
+ } from "../models/IndexCreateRequest.js";
5
+ import {
6
+ IndexCreateResponseFromJSON
7
+ } from "../models/IndexCreateResponse.js";
8
+ import {
9
+ IndexDropResponseFromJSON
10
+ } from "../models/IndexDropResponse.js";
11
+ import {
12
+ IndexInfoFromJSON
13
+ } from "../models/IndexInfo.js";
14
+ import {
15
+ IndexOptionsRequestToJSON
16
+ } from "../models/IndexOptionsRequest.js";
17
+ import {
18
+ IndexUsageFromJSON
19
+ } from "../models/IndexUsage.js";
20
+ import {
8
21
  MongoIndexFromJSON
9
- } from "../models/index.js";
22
+ } from "../models/MongoIndex.js";
10
23
  export class IndexApi extends runtime.BaseAPI {
11
24
  /**
12
25
  * Creates request options for createExpiringIndex without sending the request
@@ -39,7 +52,7 @@ export class IndexApi extends runtime.BaseAPI {
39
52
  }
40
53
  const headerParameters = {};
41
54
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
42
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
55
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
43
56
  }
44
57
  if (this.configuration && this.configuration.accessToken) {
45
58
  const token = this.configuration.accessToken;
@@ -52,9 +65,9 @@ export class IndexApi extends runtime.BaseAPI {
52
65
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
53
66
  }
54
67
  let urlPath = `/mongodb/collections/{collectionName}/index/field/{fieldName}/{duration}/expiring`;
55
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
56
- urlPath = urlPath.replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters["fieldName"])));
57
- urlPath = urlPath.replace(`{${"duration"}}`, encodeURIComponent(String(requestParameters["duration"])));
68
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
69
+ urlPath = urlPath.replace("{fieldName}", encodeURIComponent(String(requestParameters["fieldName"])));
70
+ urlPath = urlPath.replace("{duration}", encodeURIComponent(String(requestParameters["duration"])));
58
71
  return {
59
72
  path: urlPath,
60
73
  method: "PUT",
@@ -99,7 +112,7 @@ export class IndexApi extends runtime.BaseAPI {
99
112
  const headerParameters = {};
100
113
  headerParameters["Content-Type"] = "application/json";
101
114
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
102
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
115
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
103
116
  }
104
117
  if (this.configuration && this.configuration.accessToken) {
105
118
  const token = this.configuration.accessToken;
@@ -112,7 +125,7 @@ export class IndexApi extends runtime.BaseAPI {
112
125
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
113
126
  }
114
127
  let urlPath = `/mongodb/collections/{collectionName}/index`;
115
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
128
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
116
129
  return {
117
130
  path: urlPath,
118
131
  method: "PUT",
@@ -161,7 +174,7 @@ export class IndexApi extends runtime.BaseAPI {
161
174
  const headerParameters = {};
162
175
  headerParameters["Content-Type"] = "application/json";
163
176
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
164
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
177
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
165
178
  }
166
179
  if (this.configuration && this.configuration.accessToken) {
167
180
  const token = this.configuration.accessToken;
@@ -174,8 +187,8 @@ export class IndexApi extends runtime.BaseAPI {
174
187
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
175
188
  }
176
189
  let urlPath = `/mongodb/collections/{collectionName}/index/field/{fieldName}`;
177
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
178
- urlPath = urlPath.replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters["fieldName"])));
190
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
191
+ urlPath = urlPath.replace("{fieldName}", encodeURIComponent(String(requestParameters["fieldName"])));
179
192
  return {
180
193
  path: urlPath,
181
194
  method: "PUT",
@@ -221,7 +234,7 @@ export class IndexApi extends runtime.BaseAPI {
221
234
  const headerParameters = {};
222
235
  headerParameters["Content-Type"] = "application/json";
223
236
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
224
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
237
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
225
238
  }
226
239
  if (this.configuration && this.configuration.accessToken) {
227
240
  const token = this.configuration.accessToken;
@@ -234,8 +247,8 @@ export class IndexApi extends runtime.BaseAPI {
234
247
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
235
248
  }
236
249
  let urlPath = `/mongodb/collections/{collectionName}/index/field/{fieldName}/text`;
237
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
238
- urlPath = urlPath.replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters["fieldName"])));
250
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
251
+ urlPath = urlPath.replace("{fieldName}", encodeURIComponent(String(requestParameters["fieldName"])));
239
252
  return {
240
253
  path: urlPath,
241
254
  method: "PUT",
@@ -286,7 +299,7 @@ export class IndexApi extends runtime.BaseAPI {
286
299
  }
287
300
  const headerParameters = {};
288
301
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
289
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
302
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
290
303
  }
291
304
  if (this.configuration && this.configuration.accessToken) {
292
305
  const token = this.configuration.accessToken;
@@ -299,8 +312,8 @@ export class IndexApi extends runtime.BaseAPI {
299
312
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
300
313
  }
301
314
  let urlPath = `/mongodb/collections/{collectionName}/index/field/{fieldName}/unique`;
302
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
303
- urlPath = urlPath.replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters["fieldName"])));
315
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
316
+ urlPath = urlPath.replace("{fieldName}", encodeURIComponent(String(requestParameters["fieldName"])));
304
317
  return {
305
318
  path: urlPath,
306
319
  method: "PUT",
@@ -344,7 +357,7 @@ export class IndexApi extends runtime.BaseAPI {
344
357
  const queryParameters = {};
345
358
  const headerParameters = {};
346
359
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
347
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
360
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
348
361
  }
349
362
  if (this.configuration && this.configuration.accessToken) {
350
363
  const token = this.configuration.accessToken;
@@ -357,8 +370,8 @@ export class IndexApi extends runtime.BaseAPI {
357
370
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
358
371
  }
359
372
  let urlPath = `/mongodb/collections/{collectionName}/index/{indexName}`;
360
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
361
- urlPath = urlPath.replace(`{${"indexName"}}`, encodeURIComponent(String(requestParameters["indexName"])));
373
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
374
+ urlPath = urlPath.replace("{indexName}", encodeURIComponent(String(requestParameters["indexName"])));
362
375
  return {
363
376
  path: urlPath,
364
377
  method: "DELETE",
@@ -402,7 +415,7 @@ export class IndexApi extends runtime.BaseAPI {
402
415
  const queryParameters = {};
403
416
  const headerParameters = {};
404
417
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
405
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
418
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
406
419
  }
407
420
  if (this.configuration && this.configuration.accessToken) {
408
421
  const token = this.configuration.accessToken;
@@ -415,8 +428,8 @@ export class IndexApi extends runtime.BaseAPI {
415
428
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
416
429
  }
417
430
  let urlPath = `/mongodb/collections/{collectionName}/index/{indexName}`;
418
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
419
- urlPath = urlPath.replace(`{${"indexName"}}`, encodeURIComponent(String(requestParameters["indexName"])));
431
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
432
+ urlPath = urlPath.replace("{indexName}", encodeURIComponent(String(requestParameters["indexName"])));
420
433
  return {
421
434
  path: urlPath,
422
435
  method: "GET",
@@ -441,6 +454,57 @@ export class IndexApi extends runtime.BaseAPI {
441
454
  const response = await this.indexRaw(requestParameters, initOverrides);
442
455
  return await response.value();
443
456
  }
457
+ /**
458
+ * Creates request options for indexDetails without sending the request
459
+ */
460
+ async indexDetailsRequestOpts(requestParameters) {
461
+ if (requestParameters["collectionName"] == null) {
462
+ throw new runtime.RequiredError(
463
+ "collectionName",
464
+ 'Required parameter "collectionName" was null or undefined when calling indexDetails().'
465
+ );
466
+ }
467
+ const queryParameters = {};
468
+ const headerParameters = {};
469
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
470
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
471
+ }
472
+ if (this.configuration && this.configuration.accessToken) {
473
+ const token = this.configuration.accessToken;
474
+ const tokenString = await token("httpAuth", []);
475
+ if (tokenString) {
476
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
477
+ }
478
+ }
479
+ if (this.configuration && this.configuration.apiKey) {
480
+ headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
481
+ }
482
+ let urlPath = `/mongodb/collections/{collectionName}/index/details`;
483
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
484
+ return {
485
+ path: urlPath,
486
+ method: "GET",
487
+ headers: headerParameters,
488
+ query: queryParameters
489
+ };
490
+ }
491
+ /**
492
+ * 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.
493
+ * Indices with details for Collection
494
+ */
495
+ async indexDetailsRaw(requestParameters, initOverrides) {
496
+ const requestOptions = await this.indexDetailsRequestOpts(requestParameters);
497
+ const response = await this.request(requestOptions, initOverrides);
498
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IndexInfoFromJSON));
499
+ }
500
+ /**
501
+ * 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.
502
+ * Indices with details for Collection
503
+ */
504
+ async indexDetails(requestParameters, initOverrides) {
505
+ const response = await this.indexDetailsRaw(requestParameters, initOverrides);
506
+ return await response.value();
507
+ }
444
508
  /**
445
509
  * Creates request options for indexStats without sending the request
446
510
  */
@@ -454,7 +518,7 @@ export class IndexApi extends runtime.BaseAPI {
454
518
  const queryParameters = {};
455
519
  const headerParameters = {};
456
520
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
457
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
521
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
458
522
  }
459
523
  if (this.configuration && this.configuration.accessToken) {
460
524
  const token = this.configuration.accessToken;
@@ -467,7 +531,7 @@ export class IndexApi extends runtime.BaseAPI {
467
531
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
468
532
  }
469
533
  let urlPath = `/mongodb/collections/{collectionName}/index/stats`;
470
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
534
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
471
535
  return {
472
536
  path: urlPath,
473
537
  method: "GET",
@@ -505,7 +569,7 @@ export class IndexApi extends runtime.BaseAPI {
505
569
  const queryParameters = {};
506
570
  const headerParameters = {};
507
571
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
508
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
572
+ headerParameters["Authorization"] = "Basic " + btoa((this.configuration.username || "") + ":" + (this.configuration.password || ""));
509
573
  }
510
574
  if (this.configuration && this.configuration.accessToken) {
511
575
  const token = this.configuration.accessToken;
@@ -518,7 +582,7 @@ export class IndexApi extends runtime.BaseAPI {
518
582
  headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
519
583
  }
520
584
  let urlPath = `/mongodb/collections/{collectionName}/index`;
521
- urlPath = urlPath.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"])));
585
+ urlPath = urlPath.replace("{collectionName}", encodeURIComponent(String(requestParameters["collectionName"])));
522
586
  return {
523
587
  path: urlPath,
524
588
  method: "GET",
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.7.1
5
+ * The version of the OpenAPI document: 1.8.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,21 +10,47 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { JobConfig, JobInformation, JsonValueBoolean } from '../models/index.js';
13
+ import { type JobConfig } from '../models/JobConfig.js';
14
+ import { type JobInformation } from '../models/JobInformation.js';
15
+ import { type JsonValueBoolean } from '../models/JsonValueBoolean.js';
14
16
  export interface DeleteJobRequest {
17
+ /**
18
+ * Group Name of the Job
19
+ */
15
20
  jobGroup: string;
21
+ /**
22
+ * Name of the Job
23
+ */
16
24
  jobName: string;
17
25
  }
18
26
  export interface ExecuteJobRequest {
27
+ /**
28
+ * Group Name of the Job
29
+ */
19
30
  jobGroup: string;
31
+ /**
32
+ * Name of the Job
33
+ */
20
34
  jobName: string;
21
35
  }
22
36
  export interface RegisterJobRequest {
37
+ /**
38
+ *
39
+ */
23
40
  jobConfig: JobConfig;
24
41
  }
25
42
  export interface UpdateJobRequest {
43
+ /**
44
+ * Group Name of the Job
45
+ */
26
46
  jobGroup: string;
47
+ /**
48
+ * Name of the Job
49
+ */
27
50
  jobName: string;
51
+ /**
52
+ *
53
+ */
28
54
  jobConfig: JobConfig;
29
55
  }
30
56
  /**