@sfxcode/nuxt-mongocamp-server 0.8.8 → 0.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 (109) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +466 -11
  3. package/dist/runtime/api/apis/AdminApi.d.ts +26 -26
  4. package/dist/runtime/api/apis/AdminApi.mjs +145 -49
  5. package/dist/runtime/api/apis/ApplicationApi.d.ts +10 -50
  6. package/dist/runtime/api/apis/ApplicationApi.mjs +47 -128
  7. package/dist/runtime/api/apis/AuthApi.d.ts +18 -18
  8. package/dist/runtime/api/apis/AuthApi.mjs +93 -29
  9. package/dist/runtime/api/apis/BucketApi.d.ts +10 -10
  10. package/dist/runtime/api/apis/BucketApi.mjs +49 -17
  11. package/dist/runtime/api/apis/CollectionApi.d.ts +22 -22
  12. package/dist/runtime/api/apis/CollectionApi.mjs +121 -41
  13. package/dist/runtime/api/apis/DatabaseApi.d.ts +12 -12
  14. package/dist/runtime/api/apis/DatabaseApi.mjs +61 -21
  15. package/dist/runtime/api/apis/DocumentApi.d.ts +22 -22
  16. package/dist/runtime/api/apis/DocumentApi.mjs +121 -41
  17. package/dist/runtime/api/apis/FileApi.d.ts +16 -16
  18. package/dist/runtime/api/apis/FileApi.mjs +85 -29
  19. package/dist/runtime/api/apis/IndexApi.d.ts +18 -18
  20. package/dist/runtime/api/apis/IndexApi.mjs +97 -33
  21. package/dist/runtime/api/apis/InformationApi.d.ts +4 -4
  22. package/dist/runtime/api/apis/InformationApi.mjs +9 -1
  23. package/dist/runtime/api/apis/JobsApi.d.ts +14 -14
  24. package/dist/runtime/api/apis/JobsApi.mjs +73 -25
  25. package/dist/runtime/api/models/BucketInformation.d.ts +5 -1
  26. package/dist/runtime/api/models/BucketInformation.mjs +8 -0
  27. package/dist/runtime/api/models/CollectionStatus.d.ts +5 -1
  28. package/dist/runtime/api/models/CollectionStatus.mjs +17 -0
  29. package/dist/runtime/api/models/DatabaseInfo.d.ts +5 -1
  30. package/dist/runtime/api/models/DatabaseInfo.mjs +9 -0
  31. package/dist/runtime/api/models/DeleteResponse.d.ts +5 -1
  32. package/dist/runtime/api/models/DeleteResponse.mjs +6 -0
  33. package/dist/runtime/api/models/ErrorDescription.d.ts +5 -1
  34. package/dist/runtime/api/models/ErrorDescription.mjs +7 -0
  35. package/dist/runtime/api/models/FileInformation.d.ts +5 -1
  36. package/dist/runtime/api/models/FileInformation.mjs +10 -0
  37. package/dist/runtime/api/models/Grant.d.ts +5 -1
  38. package/dist/runtime/api/models/Grant.mjs +9 -0
  39. package/dist/runtime/api/models/IndexCreateRequest.d.ts +6 -2
  40. package/dist/runtime/api/models/IndexCreateRequest.mjs +6 -1
  41. package/dist/runtime/api/models/IndexCreateResponse.d.ts +5 -1
  42. package/dist/runtime/api/models/IndexCreateResponse.mjs +5 -0
  43. package/dist/runtime/api/models/IndexDropResponse.d.ts +5 -1
  44. package/dist/runtime/api/models/IndexDropResponse.mjs +5 -0
  45. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +5 -1
  46. package/dist/runtime/api/models/IndexOptionsRequest.mjs +4 -0
  47. package/dist/runtime/api/models/InsertResponse.d.ts +5 -1
  48. package/dist/runtime/api/models/InsertResponse.mjs +5 -0
  49. package/dist/runtime/api/models/JobConfig.d.ts +5 -1
  50. package/dist/runtime/api/models/JobConfig.mjs +10 -0
  51. package/dist/runtime/api/models/JobInformation.d.ts +5 -1
  52. package/dist/runtime/api/models/JobInformation.mjs +10 -0
  53. package/dist/runtime/api/models/JsonSchema.d.ts +6 -2
  54. package/dist/runtime/api/models/JsonSchema.mjs +8 -1
  55. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +5 -1
  56. package/dist/runtime/api/models/JsonSchemaDefinition.mjs +8 -0
  57. package/dist/runtime/api/models/JsonValueAny.d.ts +5 -1
  58. package/dist/runtime/api/models/JsonValueAny.mjs +5 -0
  59. package/dist/runtime/api/models/JsonValueBoolean.d.ts +5 -1
  60. package/dist/runtime/api/models/JsonValueBoolean.mjs +5 -0
  61. package/dist/runtime/api/models/JsonValueString.d.ts +5 -1
  62. package/dist/runtime/api/models/JsonValueString.mjs +5 -0
  63. package/dist/runtime/api/models/Login.d.ts +5 -1
  64. package/dist/runtime/api/models/Login.mjs +6 -0
  65. package/dist/runtime/api/models/LoginResult.d.ts +6 -2
  66. package/dist/runtime/api/models/LoginResult.mjs +8 -1
  67. package/dist/runtime/api/models/Metric.mjs +1 -1
  68. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +6 -2
  69. package/dist/runtime/api/models/MongoAggregateRequest.mjs +6 -1
  70. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +5 -1
  71. package/dist/runtime/api/models/MongoCampConfiguration.mjs +9 -0
  72. package/dist/runtime/api/models/MongoFindRequest.d.ts +5 -1
  73. package/dist/runtime/api/models/MongoFindRequest.mjs +7 -0
  74. package/dist/runtime/api/models/MongoIndex.d.ts +5 -1
  75. package/dist/runtime/api/models/MongoIndex.mjs +15 -0
  76. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +5 -1
  77. package/dist/runtime/api/models/PasswordUpdateRequest.mjs +5 -0
  78. package/dist/runtime/api/models/PipelineStage.d.ts +5 -1
  79. package/dist/runtime/api/models/PipelineStage.mjs +6 -0
  80. package/dist/runtime/api/models/Role.d.ts +6 -2
  81. package/dist/runtime/api/models/Role.mjs +7 -1
  82. package/dist/runtime/api/models/SchemaAnalysis.d.ts +6 -2
  83. package/dist/runtime/api/models/SchemaAnalysis.mjs +8 -1
  84. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +6 -2
  85. package/dist/runtime/api/models/SchemaAnalysisField.mjs +9 -1
  86. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +5 -1
  87. package/dist/runtime/api/models/SchemaAnalysisFieldType.mjs +7 -0
  88. package/dist/runtime/api/models/SettingsResponse.d.ts +5 -1
  89. package/dist/runtime/api/models/SettingsResponse.mjs +5 -0
  90. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +5 -1
  91. package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +4 -0
  92. package/dist/runtime/api/models/UpdateRequest.d.ts +5 -1
  93. package/dist/runtime/api/models/UpdateRequest.mjs +6 -0
  94. package/dist/runtime/api/models/UpdateResponse.d.ts +5 -1
  95. package/dist/runtime/api/models/UpdateResponse.mjs +7 -0
  96. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +6 -2
  97. package/dist/runtime/api/models/UpdateRoleRequest.mjs +6 -1
  98. package/dist/runtime/api/models/UserInformation.d.ts +5 -1
  99. package/dist/runtime/api/models/UserInformation.mjs +6 -0
  100. package/dist/runtime/api/models/UserProfile.d.ts +6 -2
  101. package/dist/runtime/api/models/UserProfile.mjs +7 -1
  102. package/dist/runtime/api/models/Version.d.ts +5 -1
  103. package/dist/runtime/api/models/Version.mjs +7 -0
  104. package/dist/runtime/api/models/index.d.ts +0 -2
  105. package/dist/runtime/api/models/index.mjs +0 -2
  106. package/dist/runtime/api/runtime.d.ts +71 -29
  107. package/dist/runtime/api/runtime.mjs +154 -72
  108. package/dist/runtime/composables/mongocampApi.mjs +1 -1
  109. package/package.json +6 -6
@@ -5,8 +5,12 @@ import {
5
5
  IndexDropResponseFromJSON,
6
6
  IndexOptionsRequestToJSON,
7
7
  MongoIndexFromJSON
8
- } from "../models";
8
+ } from "../models/index.mjs";
9
9
  export class IndexApi extends runtime.BaseAPI {
10
+ /**
11
+ * Create expiring Index by Field for given Collection
12
+ * Create expiring Index by Field for Collection
13
+ */
10
14
  async createExpiringIndexRaw(requestParameters, initOverrides) {
11
15
  if (requestParameters.collectionName === null || requestParameters.collectionName === void 0) {
12
16
  throw new runtime.RequiredError("collectionName", "Required parameter requestParameters.collectionName was null or undefined when calling createExpiringIndex.");
@@ -25,8 +29,8 @@ export class IndexApi extends runtime.BaseAPI {
25
29
  queryParameters["name"] = requestParameters.name;
26
30
  }
27
31
  const headerParameters = {};
28
- if (this.configuration && this.configuration.apiKey) {
29
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
32
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
33
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
30
34
  }
31
35
  if (this.configuration && this.configuration.accessToken) {
32
36
  const token = this.configuration.accessToken;
@@ -35,8 +39,8 @@ export class IndexApi extends runtime.BaseAPI {
35
39
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
36
40
  }
37
41
  }
38
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
39
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
42
+ if (this.configuration && this.configuration.apiKey) {
43
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
40
44
  }
41
45
  const response = await this.request({
42
46
  path: `/mongodb/collections/{collectionName}/index/field/{fieldName}/{duration}/expiring`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters.collectionName))).replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters.fieldName))).replace(`{${"duration"}}`, encodeURIComponent(String(requestParameters.duration))),
@@ -46,10 +50,18 @@ export class IndexApi extends runtime.BaseAPI {
46
50
  }, initOverrides);
47
51
  return new runtime.JSONApiResponse(response, (jsonValue) => IndexCreateResponseFromJSON(jsonValue));
48
52
  }
53
+ /**
54
+ * Create expiring Index by Field for given Collection
55
+ * Create expiring Index by Field for Collection
56
+ */
49
57
  async createExpiringIndex(requestParameters, initOverrides) {
50
58
  const response = await this.createExpiringIndexRaw(requestParameters, initOverrides);
51
59
  return await response.value();
52
60
  }
61
+ /**
62
+ * Create Index for given Collection
63
+ * Create Index for Collection
64
+ */
53
65
  async createIndexRaw(requestParameters, initOverrides) {
54
66
  if (requestParameters.collectionName === null || requestParameters.collectionName === void 0) {
55
67
  throw new runtime.RequiredError("collectionName", "Required parameter requestParameters.collectionName was null or undefined when calling createIndex.");
@@ -60,8 +72,8 @@ export class IndexApi extends runtime.BaseAPI {
60
72
  const queryParameters = {};
61
73
  const headerParameters = {};
62
74
  headerParameters["Content-Type"] = "application/json";
63
- if (this.configuration && this.configuration.apiKey) {
64
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
75
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
76
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
65
77
  }
66
78
  if (this.configuration && this.configuration.accessToken) {
67
79
  const token = this.configuration.accessToken;
@@ -70,8 +82,8 @@ export class IndexApi extends runtime.BaseAPI {
70
82
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
71
83
  }
72
84
  }
73
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
74
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
85
+ if (this.configuration && this.configuration.apiKey) {
86
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
75
87
  }
76
88
  const response = await this.request({
77
89
  path: `/mongodb/collections/{collectionName}/index`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters.collectionName))),
@@ -82,10 +94,18 @@ export class IndexApi extends runtime.BaseAPI {
82
94
  }, initOverrides);
83
95
  return new runtime.JSONApiResponse(response, (jsonValue) => IndexCreateResponseFromJSON(jsonValue));
84
96
  }
97
+ /**
98
+ * Create Index for given Collection
99
+ * Create Index for Collection
100
+ */
85
101
  async createIndex(requestParameters, initOverrides) {
86
102
  const response = await this.createIndexRaw(requestParameters, initOverrides);
87
103
  return await response.value();
88
104
  }
105
+ /**
106
+ * Create Index by Field for given Collection
107
+ * Create Index by Field for Collection
108
+ */
89
109
  async createIndexForFieldRaw(requestParameters, initOverrides) {
90
110
  if (requestParameters.collectionName === null || requestParameters.collectionName === void 0) {
91
111
  throw new runtime.RequiredError("collectionName", "Required parameter requestParameters.collectionName was null or undefined when calling createIndexForField.");
@@ -99,8 +119,8 @@ export class IndexApi extends runtime.BaseAPI {
99
119
  }
100
120
  const headerParameters = {};
101
121
  headerParameters["Content-Type"] = "application/json";
102
- if (this.configuration && this.configuration.apiKey) {
103
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
122
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
123
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
104
124
  }
105
125
  if (this.configuration && this.configuration.accessToken) {
106
126
  const token = this.configuration.accessToken;
@@ -109,8 +129,8 @@ export class IndexApi extends runtime.BaseAPI {
109
129
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
110
130
  }
111
131
  }
112
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
113
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
132
+ if (this.configuration && this.configuration.apiKey) {
133
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
114
134
  }
115
135
  const response = await this.request({
116
136
  path: `/mongodb/collections/{collectionName}/index/field/{fieldName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters.collectionName))).replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters.fieldName))),
@@ -121,10 +141,18 @@ export class IndexApi extends runtime.BaseAPI {
121
141
  }, initOverrides);
122
142
  return new runtime.JSONApiResponse(response, (jsonValue) => IndexCreateResponseFromJSON(jsonValue));
123
143
  }
144
+ /**
145
+ * Create Index by Field for given Collection
146
+ * Create Index by Field for Collection
147
+ */
124
148
  async createIndexForField(requestParameters, initOverrides) {
125
149
  const response = await this.createIndexForFieldRaw(requestParameters, initOverrides);
126
150
  return await response.value();
127
151
  }
152
+ /**
153
+ * Create text index by field for given collection
154
+ * Create text index by field for collection
155
+ */
128
156
  async createTextIndexRaw(requestParameters, initOverrides) {
129
157
  if (requestParameters.collectionName === null || requestParameters.collectionName === void 0) {
130
158
  throw new runtime.RequiredError("collectionName", "Required parameter requestParameters.collectionName was null or undefined when calling createTextIndex.");
@@ -135,8 +163,8 @@ export class IndexApi extends runtime.BaseAPI {
135
163
  const queryParameters = {};
136
164
  const headerParameters = {};
137
165
  headerParameters["Content-Type"] = "application/json";
138
- if (this.configuration && this.configuration.apiKey) {
139
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
166
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
167
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
140
168
  }
141
169
  if (this.configuration && this.configuration.accessToken) {
142
170
  const token = this.configuration.accessToken;
@@ -145,8 +173,8 @@ export class IndexApi extends runtime.BaseAPI {
145
173
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
146
174
  }
147
175
  }
148
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
149
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
176
+ if (this.configuration && this.configuration.apiKey) {
177
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
150
178
  }
151
179
  const response = await this.request({
152
180
  path: `/mongodb/collections/{collectionName}/index/field/{fieldName}/text`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters.collectionName))).replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters.fieldName))),
@@ -157,10 +185,18 @@ export class IndexApi extends runtime.BaseAPI {
157
185
  }, initOverrides);
158
186
  return new runtime.JSONApiResponse(response, (jsonValue) => IndexCreateResponseFromJSON(jsonValue));
159
187
  }
188
+ /**
189
+ * Create text index by field for given collection
190
+ * Create text index by field for collection
191
+ */
160
192
  async createTextIndex(requestParameters, initOverrides) {
161
193
  const response = await this.createTextIndexRaw(requestParameters, initOverrides);
162
194
  return await response.value();
163
195
  }
196
+ /**
197
+ * Create Unique Index by Field for given Collection
198
+ * Create Unique Index
199
+ */
164
200
  async createUniqueIndexRaw(requestParameters, initOverrides) {
165
201
  if (requestParameters.collectionName === null || requestParameters.collectionName === void 0) {
166
202
  throw new runtime.RequiredError("collectionName", "Required parameter requestParameters.collectionName was null or undefined when calling createUniqueIndex.");
@@ -176,8 +212,8 @@ export class IndexApi extends runtime.BaseAPI {
176
212
  queryParameters["name"] = requestParameters.name;
177
213
  }
178
214
  const headerParameters = {};
179
- if (this.configuration && this.configuration.apiKey) {
180
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
215
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
216
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
181
217
  }
182
218
  if (this.configuration && this.configuration.accessToken) {
183
219
  const token = this.configuration.accessToken;
@@ -186,8 +222,8 @@ export class IndexApi extends runtime.BaseAPI {
186
222
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
187
223
  }
188
224
  }
189
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
190
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
225
+ if (this.configuration && this.configuration.apiKey) {
226
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
191
227
  }
192
228
  const response = await this.request({
193
229
  path: `/mongodb/collections/{collectionName}/index/field/{fieldName}/unique`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters.collectionName))).replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters.fieldName))),
@@ -197,10 +233,18 @@ export class IndexApi extends runtime.BaseAPI {
197
233
  }, initOverrides);
198
234
  return new runtime.JSONApiResponse(response, (jsonValue) => IndexCreateResponseFromJSON(jsonValue));
199
235
  }
236
+ /**
237
+ * Create Unique Index by Field for given Collection
238
+ * Create Unique Index
239
+ */
200
240
  async createUniqueIndex(requestParameters, initOverrides) {
201
241
  const response = await this.createUniqueIndexRaw(requestParameters, initOverrides);
202
242
  return await response.value();
203
243
  }
244
+ /**
245
+ * Delete Index by Name for given Collection
246
+ * Delete Index
247
+ */
204
248
  async deleteIndexRaw(requestParameters, initOverrides) {
205
249
  if (requestParameters.collectionName === null || requestParameters.collectionName === void 0) {
206
250
  throw new runtime.RequiredError("collectionName", "Required parameter requestParameters.collectionName was null or undefined when calling deleteIndex.");
@@ -210,8 +254,8 @@ export class IndexApi extends runtime.BaseAPI {
210
254
  }
211
255
  const queryParameters = {};
212
256
  const headerParameters = {};
213
- if (this.configuration && this.configuration.apiKey) {
214
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
257
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
258
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
215
259
  }
216
260
  if (this.configuration && this.configuration.accessToken) {
217
261
  const token = this.configuration.accessToken;
@@ -220,8 +264,8 @@ export class IndexApi extends runtime.BaseAPI {
220
264
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
221
265
  }
222
266
  }
223
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
224
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
267
+ if (this.configuration && this.configuration.apiKey) {
268
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
225
269
  }
226
270
  const response = await this.request({
227
271
  path: `/mongodb/collections/{collectionName}/index/{indexName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters.collectionName))).replace(`{${"indexName"}}`, encodeURIComponent(String(requestParameters.indexName))),
@@ -231,10 +275,18 @@ export class IndexApi extends runtime.BaseAPI {
231
275
  }, initOverrides);
232
276
  return new runtime.JSONApiResponse(response, (jsonValue) => IndexDropResponseFromJSON(jsonValue));
233
277
  }
278
+ /**
279
+ * Delete Index by Name for given Collection
280
+ * Delete Index
281
+ */
234
282
  async deleteIndex(requestParameters, initOverrides) {
235
283
  const response = await this.deleteIndexRaw(requestParameters, initOverrides);
236
284
  return await response.value();
237
285
  }
286
+ /**
287
+ * Index by Name for given Collection
288
+ * Index for Collection
289
+ */
238
290
  async indexRaw(requestParameters, initOverrides) {
239
291
  if (requestParameters.collectionName === null || requestParameters.collectionName === void 0) {
240
292
  throw new runtime.RequiredError("collectionName", "Required parameter requestParameters.collectionName was null or undefined when calling index.");
@@ -244,8 +296,8 @@ export class IndexApi extends runtime.BaseAPI {
244
296
  }
245
297
  const queryParameters = {};
246
298
  const headerParameters = {};
247
- if (this.configuration && this.configuration.apiKey) {
248
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
299
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
300
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
249
301
  }
250
302
  if (this.configuration && this.configuration.accessToken) {
251
303
  const token = this.configuration.accessToken;
@@ -254,8 +306,8 @@ export class IndexApi extends runtime.BaseAPI {
254
306
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
255
307
  }
256
308
  }
257
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
258
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
309
+ if (this.configuration && this.configuration.apiKey) {
310
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
259
311
  }
260
312
  const response = await this.request({
261
313
  path: `/mongodb/collections/{collectionName}/index/{indexName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters.collectionName))).replace(`{${"indexName"}}`, encodeURIComponent(String(requestParameters.indexName))),
@@ -265,18 +317,26 @@ export class IndexApi extends runtime.BaseAPI {
265
317
  }, initOverrides);
266
318
  return new runtime.JSONApiResponse(response, (jsonValue) => MongoIndexFromJSON(jsonValue));
267
319
  }
320
+ /**
321
+ * Index by Name for given Collection
322
+ * Index for Collection
323
+ */
268
324
  async index(requestParameters, initOverrides) {
269
325
  const response = await this.indexRaw(requestParameters, initOverrides);
270
326
  return await response.value();
271
327
  }
328
+ /**
329
+ * List all Indices for given Collection
330
+ * List Indices for Collection
331
+ */
272
332
  async listIndicesRaw(requestParameters, initOverrides) {
273
333
  if (requestParameters.collectionName === null || requestParameters.collectionName === void 0) {
274
334
  throw new runtime.RequiredError("collectionName", "Required parameter requestParameters.collectionName was null or undefined when calling listIndices.");
275
335
  }
276
336
  const queryParameters = {};
277
337
  const headerParameters = {};
278
- if (this.configuration && this.configuration.apiKey) {
279
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
338
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
339
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
280
340
  }
281
341
  if (this.configuration && this.configuration.accessToken) {
282
342
  const token = this.configuration.accessToken;
@@ -285,8 +345,8 @@ export class IndexApi extends runtime.BaseAPI {
285
345
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
286
346
  }
287
347
  }
288
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
289
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
348
+ if (this.configuration && this.configuration.apiKey) {
349
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
290
350
  }
291
351
  const response = await this.request({
292
352
  path: `/mongodb/collections/{collectionName}/index`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters.collectionName))),
@@ -296,6 +356,10 @@ export class IndexApi extends runtime.BaseAPI {
296
356
  }, initOverrides);
297
357
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MongoIndexFromJSON));
298
358
  }
359
+ /**
360
+ * List all Indices for given Collection
361
+ * List Indices for Collection
362
+ */
299
363
  async listIndices(requestParameters, initOverrides) {
300
364
  const response = await this.listIndicesRaw(requestParameters, initOverrides);
301
365
  return await response.value();
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
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.4.0
5
+ * The version of the OpenAPI document: 1.4.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Version } from '../models';
13
+ import type { Version } from '../models';
14
14
  /**
15
15
  *
16
16
  */
@@ -19,10 +19,10 @@ export declare class InformationApi extends runtime.BaseAPI {
19
19
  * Version Info of the MongoCamp API
20
20
  * Version Information
21
21
  */
22
- versionRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<Version>>;
22
+ versionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Version>>;
23
23
  /**
24
24
  * Version Info of the MongoCamp API
25
25
  * Version Information
26
26
  */
27
- version(initOverrides?: RequestInit): Promise<Version>;
27
+ version(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Version>;
28
28
  }
@@ -1,8 +1,12 @@
1
1
  import * as runtime from "../runtime.mjs";
2
2
  import {
3
3
  VersionFromJSON
4
- } from "../models";
4
+ } from "../models/index.mjs";
5
5
  export class InformationApi extends runtime.BaseAPI {
6
+ /**
7
+ * Version Info of the MongoCamp API
8
+ * Version Information
9
+ */
6
10
  async versionRaw(initOverrides) {
7
11
  const queryParameters = {};
8
12
  const headerParameters = {};
@@ -14,6 +18,10 @@ export class InformationApi extends runtime.BaseAPI {
14
18
  }, initOverrides);
15
19
  return new runtime.JSONApiResponse(response, (jsonValue) => VersionFromJSON(jsonValue));
16
20
  }
21
+ /**
22
+ * Version Info of the MongoCamp API
23
+ * Version Information
24
+ */
17
25
  async version(initOverrides) {
18
26
  const response = await this.versionRaw(initOverrides);
19
27
  return await response.value();
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
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.4.0
5
+ * The version of the OpenAPI document: 1.4.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { JobConfig, JobInformation, JsonValueBoolean } from '../models';
13
+ import type { JobConfig, JobInformation, JsonValueBoolean } from '../models';
14
14
  export interface DeleteJobRequest {
15
15
  jobGroup: string;
16
16
  jobName: string;
@@ -35,60 +35,60 @@ export declare class JobsApi extends runtime.BaseAPI {
35
35
  * Delete Job and reload all Job Information
36
36
  * Delete Job
37
37
  */
38
- deleteJobRaw(requestParameters: DeleteJobRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<JsonValueBoolean>>;
38
+ deleteJobRaw(requestParameters: DeleteJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
39
39
  /**
40
40
  * Delete Job and reload all Job Information
41
41
  * Delete Job
42
42
  */
43
- deleteJob(requestParameters: DeleteJobRequest, initOverrides?: RequestInit): Promise<JsonValueBoolean>;
43
+ deleteJob(requestParameters: DeleteJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
44
44
  /**
45
45
  * Execute scheduled Job manually
46
46
  * Execute Job
47
47
  */
48
- executeJobRaw(requestParameters: ExecuteJobRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<JsonValueBoolean>>;
48
+ executeJobRaw(requestParameters: ExecuteJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
49
49
  /**
50
50
  * Execute scheduled Job manually
51
51
  * Execute Job
52
52
  */
53
- executeJob(requestParameters: ExecuteJobRequest, initOverrides?: RequestInit): Promise<JsonValueBoolean>;
53
+ executeJob(requestParameters: ExecuteJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
54
54
  /**
55
55
  * Returns the List of all registered Jobs with full information
56
56
  * Registered Jobs
57
57
  */
58
- jobsListRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<JobInformation>>>;
58
+ jobsListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<JobInformation>>>;
59
59
  /**
60
60
  * Returns the List of all registered Jobs with full information
61
61
  * Registered Jobs
62
62
  */
63
- jobsList(initOverrides?: RequestInit): Promise<Array<JobInformation>>;
63
+ jobsList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<JobInformation>>;
64
64
  /**
65
65
  * Returns the List of possible job classes
66
66
  * Possible Jobs
67
67
  */
68
- possibleJobsListRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<string>>>;
68
+ possibleJobsListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<string>>>;
69
69
  /**
70
70
  * Returns the List of possible job classes
71
71
  * Possible Jobs
72
72
  */
73
- possibleJobsList(initOverrides?: RequestInit): Promise<Array<string>>;
73
+ possibleJobsList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
74
74
  /**
75
75
  * Register an Job and return the JobInformation with next schedule information
76
76
  * Register Job
77
77
  */
78
- registerJobRaw(requestParameters: RegisterJobRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<JobInformation>>;
78
+ registerJobRaw(requestParameters: RegisterJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobInformation>>;
79
79
  /**
80
80
  * Register an Job and return the JobInformation with next schedule information
81
81
  * Register Job
82
82
  */
83
- registerJob(requestParameters: RegisterJobRequest, initOverrides?: RequestInit): Promise<JobInformation>;
83
+ registerJob(requestParameters: RegisterJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobInformation>;
84
84
  /**
85
85
  * Add Job and get JobInformation back
86
86
  * Update Job
87
87
  */
88
- updateJobRaw(requestParameters: UpdateJobRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<JobInformation>>;
88
+ updateJobRaw(requestParameters: UpdateJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobInformation>>;
89
89
  /**
90
90
  * Add Job and get JobInformation back
91
91
  * Update Job
92
92
  */
93
- updateJob(requestParameters: UpdateJobRequest, initOverrides?: RequestInit): Promise<JobInformation>;
93
+ updateJob(requestParameters: UpdateJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobInformation>;
94
94
  }