@sfxcode/nuxt-mongocamp-server 1.2.0 → 1.2.2

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 (153) hide show
  1. package/README.md +1 -1
  2. package/dist/module.json +5 -1
  3. package/dist/module.mjs +1 -1
  4. package/dist/runtime/api/apis/AdminApi.d.ts +2 -2
  5. package/dist/runtime/api/apis/{AdminApi.mjs → AdminApi.js} +101 -65
  6. package/dist/runtime/api/apis/ApplicationApi.d.ts +2 -2
  7. package/dist/runtime/api/apis/{ApplicationApi.mjs → ApplicationApi.js} +24 -15
  8. package/dist/runtime/api/apis/AuthApi.d.ts +2 -2
  9. package/dist/runtime/api/apis/{AuthApi.mjs → AuthApi.js} +21 -15
  10. package/dist/runtime/api/apis/BucketApi.d.ts +2 -2
  11. package/dist/runtime/api/apis/{BucketApi.mjs → BucketApi.js} +24 -15
  12. package/dist/runtime/api/apis/CollectionApi.d.ts +2 -2
  13. package/dist/runtime/api/apis/{CollectionApi.mjs → CollectionApi.js} +99 -66
  14. package/dist/runtime/api/apis/DatabaseApi.d.ts +2 -2
  15. package/dist/runtime/api/apis/{DatabaseApi.mjs → DatabaseApi.js} +25 -16
  16. package/dist/runtime/api/apis/DocumentApi.d.ts +6 -6
  17. package/dist/runtime/api/apis/{DocumentApi.mjs → DocumentApi.js} +153 -93
  18. package/dist/runtime/api/apis/FileApi.d.ts +2 -2
  19. package/dist/runtime/api/apis/{FileApi.mjs → FileApi.js} +121 -76
  20. package/dist/runtime/api/apis/IndexApi.d.ts +2 -2
  21. package/dist/runtime/api/apis/{IndexApi.mjs → IndexApi.js} +119 -71
  22. package/dist/runtime/api/apis/InformationApi.d.ts +2 -2
  23. package/dist/runtime/api/apis/{InformationApi.mjs → InformationApi.js} +2 -2
  24. package/dist/runtime/api/apis/JobsApi.d.ts +2 -2
  25. package/dist/runtime/api/apis/{JobsApi.mjs → JobsApi.js} +53 -29
  26. package/dist/runtime/api/apis/index.d.ts +11 -11
  27. package/dist/runtime/api/apis/index.js +11 -0
  28. package/dist/runtime/api/index.d.ts +3 -3
  29. package/dist/runtime/api/index.js +3 -0
  30. package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
  31. package/dist/runtime/api/models/BucketInformation.js +32 -0
  32. package/dist/runtime/api/models/CollectionStatus.d.ts +3 -3
  33. package/dist/runtime/api/models/CollectionStatus.js +59 -0
  34. package/dist/runtime/api/models/DatabaseInfo.d.ts +2 -2
  35. package/dist/runtime/api/models/DatabaseInfo.js +35 -0
  36. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
  37. package/dist/runtime/api/models/{DeleteResponse.mjs → DeleteResponse.js} +8 -12
  38. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
  39. package/dist/runtime/api/models/{ErrorDescription.mjs → ErrorDescription.js} +10 -14
  40. package/dist/runtime/api/models/FileInformation.d.ts +2 -2
  41. package/dist/runtime/api/models/FileInformation.js +38 -0
  42. package/dist/runtime/api/models/Grant.d.ts +1 -1
  43. package/dist/runtime/api/models/Grant.js +35 -0
  44. package/dist/runtime/api/models/IndexCreateRequest.d.ts +3 -3
  45. package/dist/runtime/api/models/IndexCreateRequest.js +29 -0
  46. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
  47. package/dist/runtime/api/models/{IndexCreateResponse.mjs → IndexCreateResponse.js} +6 -10
  48. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
  49. package/dist/runtime/api/models/{IndexDropResponse.mjs → IndexDropResponse.js} +6 -10
  50. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +1 -1
  51. package/dist/runtime/api/models/IndexOptionsRequest.js +36 -0
  52. package/dist/runtime/api/models/InsertResponse.d.ts +1 -1
  53. package/dist/runtime/api/models/InsertResponse.js +25 -0
  54. package/dist/runtime/api/models/JobConfig.d.ts +1 -1
  55. package/dist/runtime/api/models/JobConfig.js +38 -0
  56. package/dist/runtime/api/models/JobInformation.d.ts +1 -1
  57. package/dist/runtime/api/models/JobInformation.js +44 -0
  58. package/dist/runtime/api/models/JsonSchema.d.ts +3 -3
  59. package/dist/runtime/api/models/JsonSchema.js +34 -0
  60. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +2 -2
  61. package/dist/runtime/api/models/JsonSchemaDefinition.js +34 -0
  62. package/dist/runtime/api/models/JsonValueAny.d.ts +1 -1
  63. package/dist/runtime/api/models/{JsonValueAny.mjs → JsonValueAny.js} +6 -10
  64. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
  65. package/dist/runtime/api/models/{JsonValueBoolean.mjs → JsonValueBoolean.js} +6 -10
  66. package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
  67. package/dist/runtime/api/models/{JsonValueString.mjs → JsonValueString.js} +6 -10
  68. package/dist/runtime/api/models/Login.d.ts +1 -1
  69. package/dist/runtime/api/models/{Login.mjs → Login.js} +8 -12
  70. package/dist/runtime/api/models/LoginResult.d.ts +2 -2
  71. package/dist/runtime/api/models/{LoginResult.mjs → LoginResult.js} +11 -15
  72. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +2 -2
  73. package/dist/runtime/api/models/MongoAggregateRequest.js +29 -0
  74. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -1
  75. package/dist/runtime/api/models/MongoCampConfiguration.js +35 -0
  76. package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -4
  77. package/dist/runtime/api/models/{MongoFindRequest.mjs → MongoFindRequest.js} +10 -14
  78. package/dist/runtime/api/models/MongoIndex.d.ts +4 -4
  79. package/dist/runtime/api/models/MongoIndex.js +55 -0
  80. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
  81. package/dist/runtime/api/models/{PasswordUpdateRequest.mjs → PasswordUpdateRequest.js} +6 -10
  82. package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
  83. package/dist/runtime/api/models/{PipelineStage.mjs → PipelineStage.js} +8 -12
  84. package/dist/runtime/api/models/Role.d.ts +2 -2
  85. package/dist/runtime/api/models/Role.js +32 -0
  86. package/dist/runtime/api/models/SchemaAnalysis.d.ts +2 -2
  87. package/dist/runtime/api/models/SchemaAnalysis.js +35 -0
  88. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +2 -2
  89. package/dist/runtime/api/models/SchemaAnalysisField.js +40 -0
  90. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
  91. package/dist/runtime/api/models/{SchemaAnalysisFieldType.mjs → SchemaAnalysisFieldType.js} +10 -14
  92. package/dist/runtime/api/models/SettingsResponse.d.ts +2 -2
  93. package/dist/runtime/api/models/SettingsResponse.js +29 -0
  94. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +2 -2
  95. package/dist/runtime/api/models/UpdateFileInformationRequest.js +24 -0
  96. package/dist/runtime/api/models/UpdateRequest.d.ts +3 -3
  97. package/dist/runtime/api/models/{UpdateRequest.mjs → UpdateRequest.js} +8 -12
  98. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
  99. package/dist/runtime/api/models/UpdateResponse.js +31 -0
  100. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +2 -2
  101. package/dist/runtime/api/models/UpdateRoleRequest.js +29 -0
  102. package/dist/runtime/api/models/UserInformation.d.ts +1 -1
  103. package/dist/runtime/api/models/UserInformation.js +30 -0
  104. package/dist/runtime/api/models/UserProfile.d.ts +2 -2
  105. package/dist/runtime/api/models/UserProfile.js +36 -0
  106. package/dist/runtime/api/models/Version.d.ts +1 -1
  107. package/dist/runtime/api/models/Version.js +29 -0
  108. package/dist/runtime/api/models/index.d.ts +39 -39
  109. package/dist/runtime/api/models/index.js +39 -0
  110. package/dist/runtime/api/runtime.d.ts +2 -3
  111. package/dist/runtime/api/{runtime.mjs → runtime.js} +0 -4
  112. package/dist/runtime/composables/mongocampApi.d.ts +1 -1
  113. package/dist/runtime/composables/{mongocampApi.mjs → mongocampApi.js} +3 -3
  114. package/dist/runtime/composables/mongocampAuth.d.ts +1 -1
  115. package/dist/runtime/composables/{mongocampAuth.mjs → mongocampAuth.js} +3 -3
  116. package/dist/runtime/composables/mongocampSearch.d.ts +1 -1
  117. package/dist/runtime/composables/{mongocampSearch.mjs → mongocampSearch.js} +1 -1
  118. package/dist/runtime/composables/mongocampStorage.d.ts +5 -0
  119. package/dist/runtime/composables/mongocampUser.d.ts +1 -1
  120. package/dist/types.d.mts +1 -16
  121. package/dist/types.d.ts +1 -16
  122. package/package.json +18 -17
  123. package/dist/runtime/api/apis/index.mjs +0 -11
  124. package/dist/runtime/api/index.mjs +0 -3
  125. package/dist/runtime/api/models/BucketInformation.mjs +0 -36
  126. package/dist/runtime/api/models/CollectionStatus.mjs +0 -63
  127. package/dist/runtime/api/models/DatabaseInfo.mjs +0 -39
  128. package/dist/runtime/api/models/FileInformation.mjs +0 -42
  129. package/dist/runtime/api/models/Grant.mjs +0 -39
  130. package/dist/runtime/api/models/IndexCreateRequest.mjs +0 -34
  131. package/dist/runtime/api/models/IndexOptionsRequest.mjs +0 -41
  132. package/dist/runtime/api/models/InsertResponse.mjs +0 -30
  133. package/dist/runtime/api/models/JobConfig.mjs +0 -42
  134. package/dist/runtime/api/models/JobInformation.mjs +0 -49
  135. package/dist/runtime/api/models/JsonSchema.mjs +0 -38
  136. package/dist/runtime/api/models/JsonSchemaDefinition.mjs +0 -39
  137. package/dist/runtime/api/models/MongoAggregateRequest.mjs +0 -34
  138. package/dist/runtime/api/models/MongoCampConfiguration.mjs +0 -39
  139. package/dist/runtime/api/models/MongoIndex.mjs +0 -60
  140. package/dist/runtime/api/models/Role.mjs +0 -37
  141. package/dist/runtime/api/models/SchemaAnalysis.mjs +0 -40
  142. package/dist/runtime/api/models/SchemaAnalysisField.mjs +0 -45
  143. package/dist/runtime/api/models/SettingsResponse.mjs +0 -34
  144. package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +0 -29
  145. package/dist/runtime/api/models/UpdateResponse.mjs +0 -36
  146. package/dist/runtime/api/models/UpdateRoleRequest.mjs +0 -34
  147. package/dist/runtime/api/models/UserInformation.mjs +0 -35
  148. package/dist/runtime/api/models/UserProfile.mjs +0 -41
  149. package/dist/runtime/api/models/Version.mjs +0 -33
  150. package/dist/runtime/api/models/index.mjs +0 -39
  151. /package/dist/runtime/composables/{mongocampStorage.mjs → mongocampStorage.js} +0 -0
  152. /package/dist/runtime/composables/{mongocampUrl.mjs → mongocampUrl.js} +0 -0
  153. /package/dist/runtime/composables/{mongocampUser.mjs → mongocampUser.js} +0 -0
@@ -1,32 +1,41 @@
1
- import * as runtime from "../runtime.mjs";
1
+ import * as runtime from "../runtime.js";
2
2
  import {
3
3
  IndexCreateRequestToJSON,
4
4
  IndexCreateResponseFromJSON,
5
5
  IndexDropResponseFromJSON,
6
6
  IndexOptionsRequestToJSON,
7
7
  MongoIndexFromJSON
8
- } from "../models/index.mjs";
8
+ } from "../models/index.js";
9
9
  export class IndexApi extends runtime.BaseAPI {
10
10
  /**
11
11
  * Create expiring Index by Field for given Collection
12
12
  * Create expiring Index by Field for Collection
13
13
  */
14
14
  async createExpiringIndexRaw(requestParameters, initOverrides) {
15
- if (requestParameters.collectionName === null || requestParameters.collectionName === void 0) {
16
- throw new runtime.RequiredError("collectionName", "Required parameter requestParameters.collectionName was null or undefined when calling createExpiringIndex.");
17
- }
18
- if (requestParameters.fieldName === null || requestParameters.fieldName === void 0) {
19
- throw new runtime.RequiredError("fieldName", "Required parameter requestParameters.fieldName was null or undefined when calling createExpiringIndex.");
20
- }
21
- if (requestParameters.duration === null || requestParameters.duration === void 0) {
22
- throw new runtime.RequiredError("duration", "Required parameter requestParameters.duration was null or undefined when calling createExpiringIndex.");
15
+ if (requestParameters["collectionName"] == null) {
16
+ throw new runtime.RequiredError(
17
+ "collectionName",
18
+ 'Required parameter "collectionName" was null or undefined when calling createExpiringIndex().'
19
+ );
20
+ }
21
+ if (requestParameters["fieldName"] == null) {
22
+ throw new runtime.RequiredError(
23
+ "fieldName",
24
+ 'Required parameter "fieldName" was null or undefined when calling createExpiringIndex().'
25
+ );
26
+ }
27
+ if (requestParameters["duration"] == null) {
28
+ throw new runtime.RequiredError(
29
+ "duration",
30
+ 'Required parameter "duration" was null or undefined when calling createExpiringIndex().'
31
+ );
23
32
  }
24
33
  const queryParameters = {};
25
- if (requestParameters.sortAscending !== void 0) {
26
- queryParameters["sortAscending"] = requestParameters.sortAscending;
34
+ if (requestParameters["sortAscending"] != null) {
35
+ queryParameters["sortAscending"] = requestParameters["sortAscending"];
27
36
  }
28
- if (requestParameters.name !== void 0) {
29
- queryParameters["name"] = requestParameters.name;
37
+ if (requestParameters["name"] != null) {
38
+ queryParameters["name"] = requestParameters["name"];
30
39
  }
31
40
  const headerParameters = {};
32
41
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
@@ -40,10 +49,10 @@ export class IndexApi extends runtime.BaseAPI {
40
49
  }
41
50
  }
42
51
  if (this.configuration && this.configuration.apiKey) {
43
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
52
+ headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
44
53
  }
45
54
  const response = await this.request({
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))),
55
+ 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"]))),
47
56
  method: "PUT",
48
57
  headers: headerParameters,
49
58
  query: queryParameters
@@ -63,11 +72,17 @@ export class IndexApi extends runtime.BaseAPI {
63
72
  * Create Index for Collection
64
73
  */
65
74
  async createIndexRaw(requestParameters, initOverrides) {
66
- if (requestParameters.collectionName === null || requestParameters.collectionName === void 0) {
67
- throw new runtime.RequiredError("collectionName", "Required parameter requestParameters.collectionName was null or undefined when calling createIndex.");
68
- }
69
- if (requestParameters.indexCreateRequest === null || requestParameters.indexCreateRequest === void 0) {
70
- throw new runtime.RequiredError("indexCreateRequest", "Required parameter requestParameters.indexCreateRequest was null or undefined when calling createIndex.");
75
+ if (requestParameters["collectionName"] == null) {
76
+ throw new runtime.RequiredError(
77
+ "collectionName",
78
+ 'Required parameter "collectionName" was null or undefined when calling createIndex().'
79
+ );
80
+ }
81
+ if (requestParameters["indexCreateRequest"] == null) {
82
+ throw new runtime.RequiredError(
83
+ "indexCreateRequest",
84
+ 'Required parameter "indexCreateRequest" was null or undefined when calling createIndex().'
85
+ );
71
86
  }
72
87
  const queryParameters = {};
73
88
  const headerParameters = {};
@@ -83,14 +98,14 @@ export class IndexApi extends runtime.BaseAPI {
83
98
  }
84
99
  }
85
100
  if (this.configuration && this.configuration.apiKey) {
86
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
101
+ headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
87
102
  }
88
103
  const response = await this.request({
89
- path: `/mongodb/collections/{collectionName}/index`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters.collectionName))),
104
+ path: `/mongodb/collections/{collectionName}/index`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))),
90
105
  method: "PUT",
91
106
  headers: headerParameters,
92
107
  query: queryParameters,
93
- body: IndexCreateRequestToJSON(requestParameters.indexCreateRequest)
108
+ body: IndexCreateRequestToJSON(requestParameters["indexCreateRequest"])
94
109
  }, initOverrides);
95
110
  return new runtime.JSONApiResponse(response, (jsonValue) => IndexCreateResponseFromJSON(jsonValue));
96
111
  }
@@ -107,15 +122,21 @@ export class IndexApi extends runtime.BaseAPI {
107
122
  * Create Index by Field for Collection
108
123
  */
109
124
  async createIndexForFieldRaw(requestParameters, initOverrides) {
110
- if (requestParameters.collectionName === null || requestParameters.collectionName === void 0) {
111
- throw new runtime.RequiredError("collectionName", "Required parameter requestParameters.collectionName was null or undefined when calling createIndexForField.");
112
- }
113
- if (requestParameters.fieldName === null || requestParameters.fieldName === void 0) {
114
- throw new runtime.RequiredError("fieldName", "Required parameter requestParameters.fieldName was null or undefined when calling createIndexForField.");
125
+ if (requestParameters["collectionName"] == null) {
126
+ throw new runtime.RequiredError(
127
+ "collectionName",
128
+ 'Required parameter "collectionName" was null or undefined when calling createIndexForField().'
129
+ );
130
+ }
131
+ if (requestParameters["fieldName"] == null) {
132
+ throw new runtime.RequiredError(
133
+ "fieldName",
134
+ 'Required parameter "fieldName" was null or undefined when calling createIndexForField().'
135
+ );
115
136
  }
116
137
  const queryParameters = {};
117
- if (requestParameters.sortAscending !== void 0) {
118
- queryParameters["sortAscending"] = requestParameters.sortAscending;
138
+ if (requestParameters["sortAscending"] != null) {
139
+ queryParameters["sortAscending"] = requestParameters["sortAscending"];
119
140
  }
120
141
  const headerParameters = {};
121
142
  headerParameters["Content-Type"] = "application/json";
@@ -130,14 +151,14 @@ export class IndexApi extends runtime.BaseAPI {
130
151
  }
131
152
  }
132
153
  if (this.configuration && this.configuration.apiKey) {
133
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
154
+ headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
134
155
  }
135
156
  const response = await this.request({
136
- path: `/mongodb/collections/{collectionName}/index/field/{fieldName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters.collectionName))).replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters.fieldName))),
157
+ path: `/mongodb/collections/{collectionName}/index/field/{fieldName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))).replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters["fieldName"]))),
137
158
  method: "PUT",
138
159
  headers: headerParameters,
139
160
  query: queryParameters,
140
- body: IndexOptionsRequestToJSON(requestParameters.indexOptionsRequest)
161
+ body: IndexOptionsRequestToJSON(requestParameters["indexOptionsRequest"])
141
162
  }, initOverrides);
142
163
  return new runtime.JSONApiResponse(response, (jsonValue) => IndexCreateResponseFromJSON(jsonValue));
143
164
  }
@@ -154,11 +175,17 @@ export class IndexApi extends runtime.BaseAPI {
154
175
  * Create text index by field for collection
155
176
  */
156
177
  async createTextIndexRaw(requestParameters, initOverrides) {
157
- if (requestParameters.collectionName === null || requestParameters.collectionName === void 0) {
158
- throw new runtime.RequiredError("collectionName", "Required parameter requestParameters.collectionName was null or undefined when calling createTextIndex.");
159
- }
160
- if (requestParameters.fieldName === null || requestParameters.fieldName === void 0) {
161
- throw new runtime.RequiredError("fieldName", "Required parameter requestParameters.fieldName was null or undefined when calling createTextIndex.");
178
+ if (requestParameters["collectionName"] == null) {
179
+ throw new runtime.RequiredError(
180
+ "collectionName",
181
+ 'Required parameter "collectionName" was null or undefined when calling createTextIndex().'
182
+ );
183
+ }
184
+ if (requestParameters["fieldName"] == null) {
185
+ throw new runtime.RequiredError(
186
+ "fieldName",
187
+ 'Required parameter "fieldName" was null or undefined when calling createTextIndex().'
188
+ );
162
189
  }
163
190
  const queryParameters = {};
164
191
  const headerParameters = {};
@@ -174,14 +201,14 @@ export class IndexApi extends runtime.BaseAPI {
174
201
  }
175
202
  }
176
203
  if (this.configuration && this.configuration.apiKey) {
177
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
204
+ headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
178
205
  }
179
206
  const response = await this.request({
180
- path: `/mongodb/collections/{collectionName}/index/field/{fieldName}/text`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters.collectionName))).replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters.fieldName))),
207
+ path: `/mongodb/collections/{collectionName}/index/field/{fieldName}/text`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))).replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters["fieldName"]))),
181
208
  method: "PUT",
182
209
  headers: headerParameters,
183
210
  query: queryParameters,
184
- body: IndexOptionsRequestToJSON(requestParameters.indexOptionsRequest)
211
+ body: IndexOptionsRequestToJSON(requestParameters["indexOptionsRequest"])
185
212
  }, initOverrides);
186
213
  return new runtime.JSONApiResponse(response, (jsonValue) => IndexCreateResponseFromJSON(jsonValue));
187
214
  }
@@ -198,18 +225,24 @@ export class IndexApi extends runtime.BaseAPI {
198
225
  * Create Unique Index
199
226
  */
200
227
  async createUniqueIndexRaw(requestParameters, initOverrides) {
201
- if (requestParameters.collectionName === null || requestParameters.collectionName === void 0) {
202
- throw new runtime.RequiredError("collectionName", "Required parameter requestParameters.collectionName was null or undefined when calling createUniqueIndex.");
203
- }
204
- if (requestParameters.fieldName === null || requestParameters.fieldName === void 0) {
205
- throw new runtime.RequiredError("fieldName", "Required parameter requestParameters.fieldName was null or undefined when calling createUniqueIndex.");
228
+ if (requestParameters["collectionName"] == null) {
229
+ throw new runtime.RequiredError(
230
+ "collectionName",
231
+ 'Required parameter "collectionName" was null or undefined when calling createUniqueIndex().'
232
+ );
233
+ }
234
+ if (requestParameters["fieldName"] == null) {
235
+ throw new runtime.RequiredError(
236
+ "fieldName",
237
+ 'Required parameter "fieldName" was null or undefined when calling createUniqueIndex().'
238
+ );
206
239
  }
207
240
  const queryParameters = {};
208
- if (requestParameters.sortAscending !== void 0) {
209
- queryParameters["sortAscending"] = requestParameters.sortAscending;
241
+ if (requestParameters["sortAscending"] != null) {
242
+ queryParameters["sortAscending"] = requestParameters["sortAscending"];
210
243
  }
211
- if (requestParameters.name !== void 0) {
212
- queryParameters["name"] = requestParameters.name;
244
+ if (requestParameters["name"] != null) {
245
+ queryParameters["name"] = requestParameters["name"];
213
246
  }
214
247
  const headerParameters = {};
215
248
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
@@ -223,10 +256,10 @@ export class IndexApi extends runtime.BaseAPI {
223
256
  }
224
257
  }
225
258
  if (this.configuration && this.configuration.apiKey) {
226
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
259
+ headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
227
260
  }
228
261
  const response = await this.request({
229
- path: `/mongodb/collections/{collectionName}/index/field/{fieldName}/unique`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters.collectionName))).replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters.fieldName))),
262
+ path: `/mongodb/collections/{collectionName}/index/field/{fieldName}/unique`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))).replace(`{${"fieldName"}}`, encodeURIComponent(String(requestParameters["fieldName"]))),
230
263
  method: "PUT",
231
264
  headers: headerParameters,
232
265
  query: queryParameters
@@ -246,11 +279,17 @@ export class IndexApi extends runtime.BaseAPI {
246
279
  * Delete Index
247
280
  */
248
281
  async deleteIndexRaw(requestParameters, initOverrides) {
249
- if (requestParameters.collectionName === null || requestParameters.collectionName === void 0) {
250
- throw new runtime.RequiredError("collectionName", "Required parameter requestParameters.collectionName was null or undefined when calling deleteIndex.");
251
- }
252
- if (requestParameters.indexName === null || requestParameters.indexName === void 0) {
253
- throw new runtime.RequiredError("indexName", "Required parameter requestParameters.indexName was null or undefined when calling deleteIndex.");
282
+ if (requestParameters["collectionName"] == null) {
283
+ throw new runtime.RequiredError(
284
+ "collectionName",
285
+ 'Required parameter "collectionName" was null or undefined when calling deleteIndex().'
286
+ );
287
+ }
288
+ if (requestParameters["indexName"] == null) {
289
+ throw new runtime.RequiredError(
290
+ "indexName",
291
+ 'Required parameter "indexName" was null or undefined when calling deleteIndex().'
292
+ );
254
293
  }
255
294
  const queryParameters = {};
256
295
  const headerParameters = {};
@@ -265,10 +304,10 @@ export class IndexApi extends runtime.BaseAPI {
265
304
  }
266
305
  }
267
306
  if (this.configuration && this.configuration.apiKey) {
268
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
307
+ headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
269
308
  }
270
309
  const response = await this.request({
271
- path: `/mongodb/collections/{collectionName}/index/{indexName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters.collectionName))).replace(`{${"indexName"}}`, encodeURIComponent(String(requestParameters.indexName))),
310
+ path: `/mongodb/collections/{collectionName}/index/{indexName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))).replace(`{${"indexName"}}`, encodeURIComponent(String(requestParameters["indexName"]))),
272
311
  method: "DELETE",
273
312
  headers: headerParameters,
274
313
  query: queryParameters
@@ -288,11 +327,17 @@ export class IndexApi extends runtime.BaseAPI {
288
327
  * Index for Collection
289
328
  */
290
329
  async indexRaw(requestParameters, initOverrides) {
291
- if (requestParameters.collectionName === null || requestParameters.collectionName === void 0) {
292
- throw new runtime.RequiredError("collectionName", "Required parameter requestParameters.collectionName was null or undefined when calling index.");
293
- }
294
- if (requestParameters.indexName === null || requestParameters.indexName === void 0) {
295
- throw new runtime.RequiredError("indexName", "Required parameter requestParameters.indexName was null or undefined when calling index.");
330
+ if (requestParameters["collectionName"] == null) {
331
+ throw new runtime.RequiredError(
332
+ "collectionName",
333
+ 'Required parameter "collectionName" was null or undefined when calling index().'
334
+ );
335
+ }
336
+ if (requestParameters["indexName"] == null) {
337
+ throw new runtime.RequiredError(
338
+ "indexName",
339
+ 'Required parameter "indexName" was null or undefined when calling index().'
340
+ );
296
341
  }
297
342
  const queryParameters = {};
298
343
  const headerParameters = {};
@@ -307,10 +352,10 @@ export class IndexApi extends runtime.BaseAPI {
307
352
  }
308
353
  }
309
354
  if (this.configuration && this.configuration.apiKey) {
310
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
355
+ headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
311
356
  }
312
357
  const response = await this.request({
313
- path: `/mongodb/collections/{collectionName}/index/{indexName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters.collectionName))).replace(`{${"indexName"}}`, encodeURIComponent(String(requestParameters.indexName))),
358
+ path: `/mongodb/collections/{collectionName}/index/{indexName}`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))).replace(`{${"indexName"}}`, encodeURIComponent(String(requestParameters["indexName"]))),
314
359
  method: "GET",
315
360
  headers: headerParameters,
316
361
  query: queryParameters
@@ -330,8 +375,11 @@ export class IndexApi extends runtime.BaseAPI {
330
375
  * List Indices for Collection
331
376
  */
332
377
  async listIndicesRaw(requestParameters, initOverrides) {
333
- if (requestParameters.collectionName === null || requestParameters.collectionName === void 0) {
334
- throw new runtime.RequiredError("collectionName", "Required parameter requestParameters.collectionName was null or undefined when calling listIndices.");
378
+ if (requestParameters["collectionName"] == null) {
379
+ throw new runtime.RequiredError(
380
+ "collectionName",
381
+ 'Required parameter "collectionName" was null or undefined when calling listIndices().'
382
+ );
335
383
  }
336
384
  const queryParameters = {};
337
385
  const headerParameters = {};
@@ -346,10 +394,10 @@ export class IndexApi extends runtime.BaseAPI {
346
394
  }
347
395
  }
348
396
  if (this.configuration && this.configuration.apiKey) {
349
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
397
+ headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
350
398
  }
351
399
  const response = await this.request({
352
- path: `/mongodb/collections/{collectionName}/index`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters.collectionName))),
400
+ path: `/mongodb/collections/{collectionName}/index`.replace(`{${"collectionName"}}`, encodeURIComponent(String(requestParameters["collectionName"]))),
353
401
  method: "GET",
354
402
  headers: headerParameters,
355
403
  query: queryParameters
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import * as runtime from '../runtime';
13
- import type { Version } from '../models/index';
12
+ import * as runtime from '../runtime.js';
13
+ import type { Version } from '../models/index.js';
14
14
  /**
15
15
  *
16
16
  */
@@ -1,7 +1,7 @@
1
- import * as runtime from "../runtime.mjs";
1
+ import * as runtime from "../runtime.js";
2
2
  import {
3
3
  VersionFromJSON
4
- } from "../models/index.mjs";
4
+ } from "../models/index.js";
5
5
  export class InformationApi extends runtime.BaseAPI {
6
6
  /**
7
7
  * Version Info of the MongoCamp API
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import * as runtime from '../runtime';
13
- import type { JobConfig, JobInformation, JsonValueBoolean } from '../models/index';
12
+ import * as runtime from '../runtime.js';
13
+ import type { JobConfig, JobInformation, JsonValueBoolean } from '../models/index.js';
14
14
  export interface DeleteJobRequest {
15
15
  jobGroup: string;
16
16
  jobName: string;
@@ -1,20 +1,26 @@
1
- import * as runtime from "../runtime.mjs";
1
+ import * as runtime from "../runtime.js";
2
2
  import {
3
3
  JobConfigToJSON,
4
4
  JobInformationFromJSON,
5
5
  JsonValueBooleanFromJSON
6
- } from "../models/index.mjs";
6
+ } from "../models/index.js";
7
7
  export class JobsApi extends runtime.BaseAPI {
8
8
  /**
9
9
  * Delete Job and reload all Job Information
10
10
  * Delete Job
11
11
  */
12
12
  async deleteJobRaw(requestParameters, initOverrides) {
13
- if (requestParameters.jobGroup === null || requestParameters.jobGroup === void 0) {
14
- throw new runtime.RequiredError("jobGroup", "Required parameter requestParameters.jobGroup was null or undefined when calling deleteJob.");
13
+ if (requestParameters["jobGroup"] == null) {
14
+ throw new runtime.RequiredError(
15
+ "jobGroup",
16
+ 'Required parameter "jobGroup" was null or undefined when calling deleteJob().'
17
+ );
15
18
  }
16
- if (requestParameters.jobName === null || requestParameters.jobName === void 0) {
17
- throw new runtime.RequiredError("jobName", "Required parameter requestParameters.jobName was null or undefined when calling deleteJob.");
19
+ if (requestParameters["jobName"] == null) {
20
+ throw new runtime.RequiredError(
21
+ "jobName",
22
+ 'Required parameter "jobName" was null or undefined when calling deleteJob().'
23
+ );
18
24
  }
19
25
  const queryParameters = {};
20
26
  const headerParameters = {};
@@ -29,10 +35,10 @@ export class JobsApi extends runtime.BaseAPI {
29
35
  }
30
36
  }
31
37
  if (this.configuration && this.configuration.apiKey) {
32
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
38
+ headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
33
39
  }
34
40
  const response = await this.request({
35
- path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters.jobGroup))).replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters.jobName))),
41
+ path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters["jobGroup"]))).replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters["jobName"]))),
36
42
  method: "DELETE",
37
43
  headers: headerParameters,
38
44
  query: queryParameters
@@ -52,11 +58,17 @@ export class JobsApi extends runtime.BaseAPI {
52
58
  * Execute Job
53
59
  */
54
60
  async executeJobRaw(requestParameters, initOverrides) {
55
- if (requestParameters.jobGroup === null || requestParameters.jobGroup === void 0) {
56
- throw new runtime.RequiredError("jobGroup", "Required parameter requestParameters.jobGroup was null or undefined when calling executeJob.");
61
+ if (requestParameters["jobGroup"] == null) {
62
+ throw new runtime.RequiredError(
63
+ "jobGroup",
64
+ 'Required parameter "jobGroup" was null or undefined when calling executeJob().'
65
+ );
57
66
  }
58
- if (requestParameters.jobName === null || requestParameters.jobName === void 0) {
59
- throw new runtime.RequiredError("jobName", "Required parameter requestParameters.jobName was null or undefined when calling executeJob.");
67
+ if (requestParameters["jobName"] == null) {
68
+ throw new runtime.RequiredError(
69
+ "jobName",
70
+ 'Required parameter "jobName" was null or undefined when calling executeJob().'
71
+ );
60
72
  }
61
73
  const queryParameters = {};
62
74
  const headerParameters = {};
@@ -71,10 +83,10 @@ export class JobsApi extends runtime.BaseAPI {
71
83
  }
72
84
  }
73
85
  if (this.configuration && this.configuration.apiKey) {
74
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
86
+ headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
75
87
  }
76
88
  const response = await this.request({
77
- path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters.jobGroup))).replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters.jobName))),
89
+ path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters["jobGroup"]))).replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters["jobName"]))),
78
90
  method: "POST",
79
91
  headers: headerParameters,
80
92
  query: queryParameters
@@ -107,7 +119,7 @@ export class JobsApi extends runtime.BaseAPI {
107
119
  }
108
120
  }
109
121
  if (this.configuration && this.configuration.apiKey) {
110
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
122
+ headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
111
123
  }
112
124
  const response = await this.request({
113
125
  path: `/system/jobs`,
@@ -143,7 +155,7 @@ export class JobsApi extends runtime.BaseAPI {
143
155
  }
144
156
  }
145
157
  if (this.configuration && this.configuration.apiKey) {
146
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
158
+ headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
147
159
  }
148
160
  const response = await this.request({
149
161
  path: `/system/jobs/classes`,
@@ -166,8 +178,11 @@ export class JobsApi extends runtime.BaseAPI {
166
178
  * Register Job
167
179
  */
168
180
  async registerJobRaw(requestParameters, initOverrides) {
169
- if (requestParameters.jobConfig === null || requestParameters.jobConfig === void 0) {
170
- throw new runtime.RequiredError("jobConfig", "Required parameter requestParameters.jobConfig was null or undefined when calling registerJob.");
181
+ if (requestParameters["jobConfig"] == null) {
182
+ throw new runtime.RequiredError(
183
+ "jobConfig",
184
+ 'Required parameter "jobConfig" was null or undefined when calling registerJob().'
185
+ );
171
186
  }
172
187
  const queryParameters = {};
173
188
  const headerParameters = {};
@@ -183,14 +198,14 @@ export class JobsApi extends runtime.BaseAPI {
183
198
  }
184
199
  }
185
200
  if (this.configuration && this.configuration.apiKey) {
186
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
201
+ headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
187
202
  }
188
203
  const response = await this.request({
189
204
  path: `/system/jobs`,
190
205
  method: "PUT",
191
206
  headers: headerParameters,
192
207
  query: queryParameters,
193
- body: JobConfigToJSON(requestParameters.jobConfig)
208
+ body: JobConfigToJSON(requestParameters["jobConfig"])
194
209
  }, initOverrides);
195
210
  return new runtime.JSONApiResponse(response, (jsonValue) => JobInformationFromJSON(jsonValue));
196
211
  }
@@ -207,14 +222,23 @@ export class JobsApi extends runtime.BaseAPI {
207
222
  * Update Job
208
223
  */
209
224
  async updateJobRaw(requestParameters, initOverrides) {
210
- if (requestParameters.jobGroup === null || requestParameters.jobGroup === void 0) {
211
- throw new runtime.RequiredError("jobGroup", "Required parameter requestParameters.jobGroup was null or undefined when calling updateJob.");
225
+ if (requestParameters["jobGroup"] == null) {
226
+ throw new runtime.RequiredError(
227
+ "jobGroup",
228
+ 'Required parameter "jobGroup" was null or undefined when calling updateJob().'
229
+ );
212
230
  }
213
- if (requestParameters.jobName === null || requestParameters.jobName === void 0) {
214
- throw new runtime.RequiredError("jobName", "Required parameter requestParameters.jobName was null or undefined when calling updateJob.");
231
+ if (requestParameters["jobName"] == null) {
232
+ throw new runtime.RequiredError(
233
+ "jobName",
234
+ 'Required parameter "jobName" was null or undefined when calling updateJob().'
235
+ );
215
236
  }
216
- if (requestParameters.jobConfig === null || requestParameters.jobConfig === void 0) {
217
- throw new runtime.RequiredError("jobConfig", "Required parameter requestParameters.jobConfig was null or undefined when calling updateJob.");
237
+ if (requestParameters["jobConfig"] == null) {
238
+ throw new runtime.RequiredError(
239
+ "jobConfig",
240
+ 'Required parameter "jobConfig" was null or undefined when calling updateJob().'
241
+ );
218
242
  }
219
243
  const queryParameters = {};
220
244
  const headerParameters = {};
@@ -230,14 +254,14 @@ export class JobsApi extends runtime.BaseAPI {
230
254
  }
231
255
  }
232
256
  if (this.configuration && this.configuration.apiKey) {
233
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
257
+ headerParameters["X-AUTH-APIKEY"] = await this.configuration.apiKey("X-AUTH-APIKEY");
234
258
  }
235
259
  const response = await this.request({
236
- path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters.jobGroup))).replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters.jobName))),
260
+ path: `/system/jobs/{jobGroup}/{jobName}`.replace(`{${"jobGroup"}}`, encodeURIComponent(String(requestParameters["jobGroup"]))).replace(`{${"jobName"}}`, encodeURIComponent(String(requestParameters["jobName"]))),
237
261
  method: "PATCH",
238
262
  headers: headerParameters,
239
263
  query: queryParameters,
240
- body: JobConfigToJSON(requestParameters.jobConfig)
264
+ body: JobConfigToJSON(requestParameters["jobConfig"])
241
265
  }, initOverrides);
242
266
  return new runtime.JSONApiResponse(response, (jsonValue) => JobInformationFromJSON(jsonValue));
243
267
  }
@@ -1,11 +1,11 @@
1
- export * from './AdminApi';
2
- export * from './ApplicationApi';
3
- export * from './AuthApi';
4
- export * from './BucketApi';
5
- export * from './CollectionApi';
6
- export * from './DatabaseApi';
7
- export * from './DocumentApi';
8
- export * from './FileApi';
9
- export * from './IndexApi';
10
- export * from './InformationApi';
11
- export * from './JobsApi';
1
+ export * from './AdminApi.js';
2
+ export * from './ApplicationApi.js';
3
+ export * from './AuthApi.js';
4
+ export * from './BucketApi.js';
5
+ export * from './CollectionApi.js';
6
+ export * from './DatabaseApi.js';
7
+ export * from './DocumentApi.js';
8
+ export * from './FileApi.js';
9
+ export * from './IndexApi.js';
10
+ export * from './InformationApi.js';
11
+ export * from './JobsApi.js';
@@ -0,0 +1,11 @@
1
+ export * from "./AdminApi.js";
2
+ export * from "./ApplicationApi.js";
3
+ export * from "./AuthApi.js";
4
+ export * from "./BucketApi.js";
5
+ export * from "./CollectionApi.js";
6
+ export * from "./DatabaseApi.js";
7
+ export * from "./DocumentApi.js";
8
+ export * from "./FileApi.js";
9
+ export * from "./IndexApi.js";
10
+ export * from "./InformationApi.js";
11
+ export * from "./JobsApi.js";
@@ -1,3 +1,3 @@
1
- export * from './runtime';
2
- export * from './apis/index';
3
- export * from './models/index';
1
+ export * from './runtime.js';
2
+ export * from './apis/index.js';
3
+ export * from './models/index.js';
@@ -0,0 +1,3 @@
1
+ export * from "./runtime.js";
2
+ export * from "./apis/index.js";
3
+ export * from "./models/index.js";
@@ -43,7 +43,7 @@ export interface BucketInformation {
43
43
  /**
44
44
  * Check if a given object implements the BucketInformation interface.
45
45
  */
46
- export declare function instanceOfBucketInformation(value: object): boolean;
46
+ export declare function instanceOfBucketInformation(value: object): value is BucketInformation;
47
47
  export declare function BucketInformationFromJSON(json: any): BucketInformation;
48
48
  export declare function BucketInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): BucketInformation;
49
49
  export declare function BucketInformationToJSON(value?: BucketInformation | null): any;