@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
@@ -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 { JsonValueAny, JsonValueBoolean, Metric, MongoCampConfiguration, SettingsResponse } from '../models';
13
+ import type { JsonValueAny, JsonValueBoolean, MongoCampConfiguration, SettingsResponse } from '../models';
14
14
  export interface GetConfigRequest {
15
15
  configurationKey: string;
16
16
  }
@@ -22,84 +22,44 @@ export interface UpdateConfigurationRequest {
22
22
  *
23
23
  */
24
24
  export declare class ApplicationApi extends runtime.BaseAPI {
25
- /**
26
- * Returns the Metrics of events of the running MongoCamp Application.
27
- * Event Metrics
28
- */
29
- eventMetricsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<Metric>>>;
30
- /**
31
- * Returns the Metrics of events of the running MongoCamp Application.
32
- * Event Metrics
33
- */
34
- eventMetrics(initOverrides?: RequestInit): Promise<Array<Metric>>;
35
25
  /**
36
26
  * Get Configuration for key
37
27
  * Configuration for configurationKey
38
28
  */
39
- getConfigRaw(requestParameters: GetConfigRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<MongoCampConfiguration>>;
29
+ getConfigRaw(requestParameters: GetConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MongoCampConfiguration>>;
40
30
  /**
41
31
  * Get Configuration for key
42
32
  * Configuration for configurationKey
43
33
  */
44
- getConfig(requestParameters: GetConfigRequest, initOverrides?: RequestInit): Promise<MongoCampConfiguration>;
45
- /**
46
- * Returns the JVM Metrics of the running MongoCamp Application
47
- * JVM Metrics
48
- */
49
- jvmMetricsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<Metric>>>;
50
- /**
51
- * Returns the JVM Metrics of the running MongoCamp Application
52
- * JVM Metrics
53
- */
54
- jvmMetrics(initOverrides?: RequestInit): Promise<Array<Metric>>;
34
+ getConfig(requestParameters: GetConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MongoCampConfiguration>;
55
35
  /**
56
36
  * List all Configurations or filtered
57
37
  * List Configurations
58
38
  */
59
- listConfigurationsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<MongoCampConfiguration>>>;
39
+ listConfigurationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MongoCampConfiguration>>>;
60
40
  /**
61
41
  * List all Configurations or filtered
62
42
  * List Configurations
63
43
  */
64
- listConfigurations(initOverrides?: RequestInit): Promise<Array<MongoCampConfiguration>>;
65
- /**
66
- * Returns the MongoDB Metrics of the running MongoCamp Application
67
- * MongoDb Metrics
68
- */
69
- mongoDbMetricsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<Metric>>>;
70
- /**
71
- * Returns the MongoDB Metrics of the running MongoCamp Application
72
- * MongoDb Metrics
73
- */
74
- mongoDbMetrics(initOverrides?: RequestInit): Promise<Array<Metric>>;
44
+ listConfigurations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MongoCampConfiguration>>;
75
45
  /**
76
46
  * Returns the Settings of the running MongoCamp Application.
77
47
  * System Settings
78
48
  */
79
- settingsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<SettingsResponse>>;
49
+ settingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SettingsResponse>>;
80
50
  /**
81
51
  * Returns the Settings of the running MongoCamp Application.
82
52
  * System Settings
83
53
  */
84
- settings(initOverrides?: RequestInit): Promise<SettingsResponse>;
85
- /**
86
- * Returns the Metrics of the MongoCamp System
87
- * System Metrics
88
- */
89
- systemMetricsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<Metric>>>;
90
- /**
91
- * Returns the Metrics of the MongoCamp System
92
- * System Metrics
93
- */
94
- systemMetrics(initOverrides?: RequestInit): Promise<Array<Metric>>;
54
+ settings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SettingsResponse>;
95
55
  /**
96
56
  * Update Configuration with the value
97
57
  * Update Configuration
98
58
  */
99
- updateConfigurationRaw(requestParameters: UpdateConfigurationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<JsonValueBoolean>>;
59
+ updateConfigurationRaw(requestParameters: UpdateConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
100
60
  /**
101
61
  * Update Configuration with the value
102
62
  * Update Configuration
103
63
  */
104
- updateConfiguration(requestParameters: UpdateConfigurationRequest, initOverrides?: RequestInit): Promise<JsonValueBoolean>;
64
+ updateConfiguration(requestParameters: UpdateConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
105
65
  }
@@ -2,47 +2,22 @@ import * as runtime from "../runtime.mjs";
2
2
  import {
3
3
  JsonValueAnyToJSON,
4
4
  JsonValueBooleanFromJSON,
5
- MetricFromJSON,
6
5
  MongoCampConfigurationFromJSON,
7
6
  SettingsResponseFromJSON
8
- } from "../models";
7
+ } from "../models/index.mjs";
9
8
  export class ApplicationApi extends runtime.BaseAPI {
10
- async eventMetricsRaw(initOverrides) {
11
- const queryParameters = {};
12
- const headerParameters = {};
13
- if (this.configuration && this.configuration.apiKey) {
14
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
15
- }
16
- if (this.configuration && this.configuration.accessToken) {
17
- const token = this.configuration.accessToken;
18
- const tokenString = await token("httpAuth", []);
19
- if (tokenString) {
20
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
21
- }
22
- }
23
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
24
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
25
- }
26
- const response = await this.request({
27
- path: `/system/monitoring/events`,
28
- method: "GET",
29
- headers: headerParameters,
30
- query: queryParameters
31
- }, initOverrides);
32
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MetricFromJSON));
33
- }
34
- async eventMetrics(initOverrides) {
35
- const response = await this.eventMetricsRaw(initOverrides);
36
- return await response.value();
37
- }
9
+ /**
10
+ * Get Configuration for key
11
+ * Configuration for configurationKey
12
+ */
38
13
  async getConfigRaw(requestParameters, initOverrides) {
39
14
  if (requestParameters.configurationKey === null || requestParameters.configurationKey === void 0) {
40
15
  throw new runtime.RequiredError("configurationKey", "Required parameter requestParameters.configurationKey was null or undefined when calling getConfig.");
41
16
  }
42
17
  const queryParameters = {};
43
18
  const headerParameters = {};
44
- if (this.configuration && this.configuration.apiKey) {
45
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
19
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
20
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
46
21
  }
47
22
  if (this.configuration && this.configuration.accessToken) {
48
23
  const token = this.configuration.accessToken;
@@ -51,8 +26,8 @@ export class ApplicationApi extends runtime.BaseAPI {
51
26
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
52
27
  }
53
28
  }
54
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
55
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
29
+ if (this.configuration && this.configuration.apiKey) {
30
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
56
31
  }
57
32
  const response = await this.request({
58
33
  path: `/system/configurations/{configurationKey}`.replace(`{${"configurationKey"}}`, encodeURIComponent(String(requestParameters.configurationKey))),
@@ -62,44 +37,24 @@ export class ApplicationApi extends runtime.BaseAPI {
62
37
  }, initOverrides);
63
38
  return new runtime.JSONApiResponse(response, (jsonValue) => MongoCampConfigurationFromJSON(jsonValue));
64
39
  }
40
+ /**
41
+ * Get Configuration for key
42
+ * Configuration for configurationKey
43
+ */
65
44
  async getConfig(requestParameters, initOverrides) {
66
45
  const response = await this.getConfigRaw(requestParameters, initOverrides);
67
46
  return await response.value();
68
47
  }
69
- async jvmMetricsRaw(initOverrides) {
48
+ /**
49
+ * List all Configurations or filtered
50
+ * List Configurations
51
+ */
52
+ async listConfigurationsRaw(initOverrides) {
70
53
  const queryParameters = {};
71
54
  const headerParameters = {};
72
- if (this.configuration && this.configuration.apiKey) {
73
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
74
- }
75
- if (this.configuration && this.configuration.accessToken) {
76
- const token = this.configuration.accessToken;
77
- const tokenString = await token("httpAuth", []);
78
- if (tokenString) {
79
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
80
- }
81
- }
82
55
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
83
56
  headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
84
57
  }
85
- const response = await this.request({
86
- path: `/system/monitoring/jvm`,
87
- method: "GET",
88
- headers: headerParameters,
89
- query: queryParameters
90
- }, initOverrides);
91
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MetricFromJSON));
92
- }
93
- async jvmMetrics(initOverrides) {
94
- const response = await this.jvmMetricsRaw(initOverrides);
95
- return await response.value();
96
- }
97
- async listConfigurationsRaw(initOverrides) {
98
- const queryParameters = {};
99
- const headerParameters = {};
100
- if (this.configuration && this.configuration.apiKey) {
101
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
102
- }
103
58
  if (this.configuration && this.configuration.accessToken) {
104
59
  const token = this.configuration.accessToken;
105
60
  const tokenString = await token("httpAuth", []);
@@ -107,8 +62,8 @@ export class ApplicationApi extends runtime.BaseAPI {
107
62
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
108
63
  }
109
64
  }
110
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
111
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
65
+ if (this.configuration && this.configuration.apiKey) {
66
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
112
67
  }
113
68
  const response = await this.request({
114
69
  path: `/system/configurations`,
@@ -118,44 +73,24 @@ export class ApplicationApi extends runtime.BaseAPI {
118
73
  }, initOverrides);
119
74
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MongoCampConfigurationFromJSON));
120
75
  }
76
+ /**
77
+ * List all Configurations or filtered
78
+ * List Configurations
79
+ */
121
80
  async listConfigurations(initOverrides) {
122
81
  const response = await this.listConfigurationsRaw(initOverrides);
123
82
  return await response.value();
124
83
  }
125
- async mongoDbMetricsRaw(initOverrides) {
84
+ /**
85
+ * Returns the Settings of the running MongoCamp Application.
86
+ * System Settings
87
+ */
88
+ async settingsRaw(initOverrides) {
126
89
  const queryParameters = {};
127
90
  const headerParameters = {};
128
- if (this.configuration && this.configuration.apiKey) {
129
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
130
- }
131
- if (this.configuration && this.configuration.accessToken) {
132
- const token = this.configuration.accessToken;
133
- const tokenString = await token("httpAuth", []);
134
- if (tokenString) {
135
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
136
- }
137
- }
138
91
  if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
139
92
  headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
140
93
  }
141
- const response = await this.request({
142
- path: `/system/monitoring/mongodb`,
143
- method: "GET",
144
- headers: headerParameters,
145
- query: queryParameters
146
- }, initOverrides);
147
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MetricFromJSON));
148
- }
149
- async mongoDbMetrics(initOverrides) {
150
- const response = await this.mongoDbMetricsRaw(initOverrides);
151
- return await response.value();
152
- }
153
- async settingsRaw(initOverrides) {
154
- const queryParameters = {};
155
- const headerParameters = {};
156
- if (this.configuration && this.configuration.apiKey) {
157
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
158
- }
159
94
  if (this.configuration && this.configuration.accessToken) {
160
95
  const token = this.configuration.accessToken;
161
96
  const tokenString = await token("httpAuth", []);
@@ -163,8 +98,8 @@ export class ApplicationApi extends runtime.BaseAPI {
163
98
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
164
99
  }
165
100
  }
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);
101
+ if (this.configuration && this.configuration.apiKey) {
102
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
168
103
  }
169
104
  const response = await this.request({
170
105
  path: `/system/settings`,
@@ -174,38 +109,18 @@ export class ApplicationApi extends runtime.BaseAPI {
174
109
  }, initOverrides);
175
110
  return new runtime.JSONApiResponse(response, (jsonValue) => SettingsResponseFromJSON(jsonValue));
176
111
  }
112
+ /**
113
+ * Returns the Settings of the running MongoCamp Application.
114
+ * System Settings
115
+ */
177
116
  async settings(initOverrides) {
178
117
  const response = await this.settingsRaw(initOverrides);
179
118
  return await response.value();
180
119
  }
181
- async systemMetricsRaw(initOverrides) {
182
- const queryParameters = {};
183
- const headerParameters = {};
184
- if (this.configuration && this.configuration.apiKey) {
185
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
186
- }
187
- if (this.configuration && this.configuration.accessToken) {
188
- const token = this.configuration.accessToken;
189
- const tokenString = await token("httpAuth", []);
190
- if (tokenString) {
191
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
192
- }
193
- }
194
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
195
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
196
- }
197
- const response = await this.request({
198
- path: `/system/monitoring/system`,
199
- method: "GET",
200
- headers: headerParameters,
201
- query: queryParameters
202
- }, initOverrides);
203
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MetricFromJSON));
204
- }
205
- async systemMetrics(initOverrides) {
206
- const response = await this.systemMetricsRaw(initOverrides);
207
- return await response.value();
208
- }
120
+ /**
121
+ * Update Configuration with the value
122
+ * Update Configuration
123
+ */
209
124
  async updateConfigurationRaw(requestParameters, initOverrides) {
210
125
  if (requestParameters.configurationKey === null || requestParameters.configurationKey === void 0) {
211
126
  throw new runtime.RequiredError("configurationKey", "Required parameter requestParameters.configurationKey was null or undefined when calling updateConfiguration.");
@@ -216,8 +131,8 @@ export class ApplicationApi extends runtime.BaseAPI {
216
131
  const queryParameters = {};
217
132
  const headerParameters = {};
218
133
  headerParameters["Content-Type"] = "application/json";
219
- if (this.configuration && this.configuration.apiKey) {
220
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
134
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
135
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
221
136
  }
222
137
  if (this.configuration && this.configuration.accessToken) {
223
138
  const token = this.configuration.accessToken;
@@ -226,8 +141,8 @@ export class ApplicationApi extends runtime.BaseAPI {
226
141
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
227
142
  }
228
143
  }
229
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
230
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
144
+ if (this.configuration && this.configuration.apiKey) {
145
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
231
146
  }
232
147
  const response = await this.request({
233
148
  path: `/system/configurations/{configurationKey}`.replace(`{${"configurationKey"}}`, encodeURIComponent(String(requestParameters.configurationKey))),
@@ -238,6 +153,10 @@ export class ApplicationApi extends runtime.BaseAPI {
238
153
  }, initOverrides);
239
154
  return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
240
155
  }
156
+ /**
157
+ * Update Configuration with the value
158
+ * Update Configuration
159
+ */
241
160
  async updateConfiguration(requestParameters, initOverrides) {
242
161
  const response = await this.updateConfigurationRaw(requestParameters, initOverrides);
243
162
  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 { JsonValueBoolean, JsonValueString, Login, LoginResult, PasswordUpdateRequest, UserProfile } from '../models';
13
+ import type { JsonValueBoolean, JsonValueString, Login, LoginResult, PasswordUpdateRequest, UserProfile } from '../models';
14
14
  export interface LoginRequest {
15
15
  login: Login;
16
16
  }
@@ -25,80 +25,80 @@ export declare class AuthApi extends runtime.BaseAPI {
25
25
  * Generate new ApiKey of logged in User
26
26
  * Update ApiKey
27
27
  */
28
- generateNewApiKeyRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<JsonValueString>>;
28
+ generateNewApiKeyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueString>>;
29
29
  /**
30
30
  * Generate new ApiKey of logged in User
31
31
  * Update ApiKey
32
32
  */
33
- generateNewApiKey(initOverrides?: RequestInit): Promise<JsonValueString>;
33
+ generateNewApiKey(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueString>;
34
34
  /**
35
35
  * Check a given Login for is authenticated
36
36
  * Check Authentication
37
37
  */
38
- isAuthenticatedRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<JsonValueBoolean>>;
38
+ isAuthenticatedRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
39
39
  /**
40
40
  * Check a given Login for is authenticated
41
41
  * Check Authentication
42
42
  */
43
- isAuthenticated(initOverrides?: RequestInit): Promise<JsonValueBoolean>;
43
+ isAuthenticated(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
44
44
  /**
45
45
  * Login for one user and return Login Information
46
46
  * Login User
47
47
  */
48
- loginRaw(requestParameters: LoginRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<LoginResult>>;
48
+ loginRaw(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginResult>>;
49
49
  /**
50
50
  * Login for one user and return Login Information
51
51
  * Login User
52
52
  */
53
- login(requestParameters: LoginRequest, initOverrides?: RequestInit): Promise<LoginResult>;
53
+ login(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginResult>;
54
54
  /**
55
55
  * Logout by bearer Token
56
56
  * Logout User
57
57
  */
58
- logoutRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<JsonValueBoolean>>;
58
+ logoutRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
59
59
  /**
60
60
  * Logout by bearer Token
61
61
  * Logout User
62
62
  */
63
- logout(initOverrides?: RequestInit): Promise<JsonValueBoolean>;
63
+ logout(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
64
64
  /**
65
65
  * Logout by bearer Token
66
66
  * Logout User
67
67
  */
68
- logoutByDeleteRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<JsonValueBoolean>>;
68
+ logoutByDeleteRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
69
69
  /**
70
70
  * Logout by bearer Token
71
71
  * Logout User
72
72
  */
73
- logoutByDelete(initOverrides?: RequestInit): Promise<JsonValueBoolean>;
73
+ logoutByDelete(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
74
74
  /**
75
75
  * Refresh Token and return Login Information
76
76
  * Refresh User
77
77
  */
78
- refreshTokenRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<LoginResult>>;
78
+ refreshTokenRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginResult>>;
79
79
  /**
80
80
  * Refresh Token and return Login Information
81
81
  * Refresh User
82
82
  */
83
- refreshToken(initOverrides?: RequestInit): Promise<LoginResult>;
83
+ refreshToken(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginResult>;
84
84
  /**
85
85
  * Change Password of logged in User
86
86
  * Update Password
87
87
  */
88
- updatePasswordRaw(requestParameters: UpdatePasswordRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<JsonValueBoolean>>;
88
+ updatePasswordRaw(requestParameters: UpdatePasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
89
89
  /**
90
90
  * Change Password of logged in User
91
91
  * Update Password
92
92
  */
93
- updatePassword(requestParameters: UpdatePasswordRequest, initOverrides?: RequestInit): Promise<JsonValueBoolean>;
93
+ updatePassword(requestParameters: UpdatePasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
94
94
  /**
95
95
  * Return the User Profile of loggedin user
96
96
  * User Profile
97
97
  */
98
- userProfileRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<UserProfile>>;
98
+ userProfileRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserProfile>>;
99
99
  /**
100
100
  * Return the User Profile of loggedin user
101
101
  * User Profile
102
102
  */
103
- userProfile(initOverrides?: RequestInit): Promise<UserProfile>;
103
+ userProfile(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserProfile>;
104
104
  }