@sfxcode/nuxt-mongocamp-server 1.0.5 → 1.0.7

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 (68) hide show
  1. package/dist/module.d.mts +9 -0
  2. package/dist/module.d.ts +1 -1
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +10 -6
  5. package/dist/runtime/api/apis/AdminApi.d.ts +3 -3
  6. package/dist/runtime/api/apis/ApplicationApi.d.ts +3 -3
  7. package/dist/runtime/api/apis/AuthApi.d.ts +3 -3
  8. package/dist/runtime/api/apis/BucketApi.d.ts +3 -3
  9. package/dist/runtime/api/apis/CollectionApi.d.ts +3 -3
  10. package/dist/runtime/api/apis/DatabaseApi.d.ts +3 -3
  11. package/dist/runtime/api/apis/DocumentApi.d.ts +7 -7
  12. package/dist/runtime/api/apis/FileApi.d.ts +3 -3
  13. package/dist/runtime/api/apis/IndexApi.d.ts +3 -3
  14. package/dist/runtime/api/apis/InformationApi.d.ts +3 -3
  15. package/dist/runtime/api/apis/JobsApi.d.ts +3 -3
  16. package/dist/runtime/api/index.d.ts +2 -2
  17. package/dist/runtime/api/models/BucketInformation.d.ts +2 -2
  18. package/dist/runtime/api/models/CollectionStatus.d.ts +4 -4
  19. package/dist/runtime/api/models/DatabaseInfo.d.ts +3 -3
  20. package/dist/runtime/api/models/DeleteResponse.d.ts +2 -2
  21. package/dist/runtime/api/models/ErrorDescription.d.ts +2 -2
  22. package/dist/runtime/api/models/FileInformation.d.ts +3 -3
  23. package/dist/runtime/api/models/Grant.d.ts +2 -2
  24. package/dist/runtime/api/models/IndexCreateRequest.d.ts +3 -3
  25. package/dist/runtime/api/models/IndexCreateResponse.d.ts +2 -2
  26. package/dist/runtime/api/models/IndexDropResponse.d.ts +2 -2
  27. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +2 -2
  28. package/dist/runtime/api/models/InsertResponse.d.ts +2 -2
  29. package/dist/runtime/api/models/JobConfig.d.ts +2 -2
  30. package/dist/runtime/api/models/JobInformation.d.ts +2 -2
  31. package/dist/runtime/api/models/JsonSchema.d.ts +3 -3
  32. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +3 -3
  33. package/dist/runtime/api/models/JsonValueAny.d.ts +2 -2
  34. package/dist/runtime/api/models/JsonValueBoolean.d.ts +2 -2
  35. package/dist/runtime/api/models/JsonValueString.d.ts +2 -2
  36. package/dist/runtime/api/models/Login.d.ts +2 -2
  37. package/dist/runtime/api/models/LoginResult.d.ts +2 -2
  38. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +2 -2
  39. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +2 -2
  40. package/dist/runtime/api/models/MongoFindRequest.d.ts +5 -5
  41. package/dist/runtime/api/models/MongoIndex.d.ts +5 -5
  42. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +2 -2
  43. package/dist/runtime/api/models/PipelineStage.d.ts +2 -2
  44. package/dist/runtime/api/models/Role.d.ts +2 -2
  45. package/dist/runtime/api/models/SchemaAnalysis.d.ts +2 -2
  46. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +2 -2
  47. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +2 -2
  48. package/dist/runtime/api/models/SettingsResponse.d.ts +3 -3
  49. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +3 -3
  50. package/dist/runtime/api/models/UpdateRequest.d.ts +4 -4
  51. package/dist/runtime/api/models/UpdateResponse.d.ts +2 -2
  52. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +2 -2
  53. package/dist/runtime/api/models/UserInformation.d.ts +2 -2
  54. package/dist/runtime/api/models/UserProfile.d.ts +2 -2
  55. package/dist/runtime/api/models/Version.d.ts +2 -2
  56. package/dist/runtime/api/runtime.d.ts +2 -2
  57. package/dist/runtime/api/runtime.mjs +9 -1
  58. package/dist/types.d.mts +16 -0
  59. package/dist/types.d.ts +3 -2
  60. package/package.json +12 -12
  61. package/dist/runtime/api/models/JsonResultBoolean.d.ts +0 -27
  62. package/dist/runtime/api/models/JsonResultBoolean.mjs +0 -22
  63. package/dist/runtime/api/models/JsonResultString.d.ts +0 -27
  64. package/dist/runtime/api/models/JsonResultString.mjs +0 -22
  65. package/dist/runtime/api/models/Measurement.d.ts +0 -33
  66. package/dist/runtime/api/models/Measurement.mjs +0 -24
  67. package/dist/runtime/api/models/Metric.d.ts +0 -52
  68. package/dist/runtime/api/models/Metric.mjs +0 -35
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +22,7 @@ export interface MongoFindRequest {
22
22
  */
23
23
  filter: {
24
24
  [key: string]: string;
25
- };
25
+ } | null;
26
26
  /**
27
27
  *
28
28
  * @type {{ [key: string]: string; }}
@@ -30,7 +30,7 @@ export interface MongoFindRequest {
30
30
  */
31
31
  sort: {
32
32
  [key: string]: string;
33
- };
33
+ } | null;
34
34
  /**
35
35
  *
36
36
  * @type {{ [key: string]: string; }}
@@ -38,7 +38,7 @@ export interface MongoFindRequest {
38
38
  */
39
39
  projection: {
40
40
  [key: string]: string;
41
- };
41
+ } | null;
42
42
  }
43
43
  /**
44
44
  * Check if a given object implements the MongoFindRequest interface.
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -52,7 +52,7 @@ export interface MongoIndex {
52
52
  */
53
53
  keys: {
54
54
  [key: string]: string;
55
- };
55
+ } | null;
56
56
  /**
57
57
  *
58
58
  * @type {{ [key: string]: string; }}
@@ -60,7 +60,7 @@ export interface MongoIndex {
60
60
  */
61
61
  weights: {
62
62
  [key: string]: string;
63
- };
63
+ } | null;
64
64
  /**
65
65
  *
66
66
  * @type {boolean}
@@ -92,7 +92,7 @@ export interface MongoIndex {
92
92
  */
93
93
  map: {
94
94
  [key: string]: string;
95
- };
95
+ } | null;
96
96
  }
97
97
  /**
98
98
  * Check if a given object implements the MongoIndex interface.
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -40,7 +40,7 @@ export interface SettingsResponse {
40
40
  */
41
41
  configurations: {
42
42
  [key: string]: string;
43
- };
43
+ } | null;
44
44
  }
45
45
  /**
46
46
  * Check if a given object implements the SettingsResponse interface.
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -28,7 +28,7 @@ export interface UpdateFileInformationRequest {
28
28
  */
29
29
  metadata?: {
30
30
  [key: string]: string;
31
- };
31
+ } | null;
32
32
  }
33
33
  /**
34
34
  * Check if a given object implements the UpdateFileInformationRequest interface.
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +22,7 @@ export interface UpdateRequest {
22
22
  */
23
23
  document: {
24
24
  [key: string]: string;
25
- };
25
+ } | null;
26
26
  /**
27
27
  *
28
28
  * @type {{ [key: string]: string; }}
@@ -30,7 +30,7 @@ export interface UpdateRequest {
30
30
  */
31
31
  filter: {
32
32
  [key: string]: string;
33
- };
33
+ } | null;
34
34
  }
35
35
  /**
36
36
  * Check if a given object implements the UpdateRequest interface.
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * mongocamp-server
2
+ * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.2
5
+ * The version of the OpenAPI document: 1.5.6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -111,9 +111,17 @@ export class BaseAPI {
111
111
  context
112
112
  })
113
113
  };
114
+ let body;
115
+ if (isFormData(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob(overriddenInit.body)) {
116
+ body = overriddenInit.body;
117
+ } else if (this.isJsonMime(headers["Content-Type"])) {
118
+ body = JSON.stringify(overriddenInit.body);
119
+ } else {
120
+ body = overriddenInit.body;
121
+ }
114
122
  const init = {
115
123
  ...overriddenInit,
116
- body: isFormData(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob(overriddenInit.body) ? overriddenInit.body : JSON.stringify(overriddenInit.body)
124
+ body
117
125
  };
118
126
  return { url, init };
119
127
  }
@@ -0,0 +1,16 @@
1
+
2
+ import type { ModuleOptions } from './module'
3
+
4
+
5
+ declare module '@nuxt/schema' {
6
+ interface NuxtConfig { ['mongocamp']?: Partial<ModuleOptions> }
7
+ interface NuxtOptions { ['mongocamp']?: ModuleOptions }
8
+ }
9
+
10
+ declare module 'nuxt/schema' {
11
+ interface NuxtConfig { ['mongocamp']?: Partial<ModuleOptions> }
12
+ interface NuxtOptions { ['mongocamp']?: ModuleOptions }
13
+ }
14
+
15
+
16
+ export type { ModuleOptions, default } from './module'
package/dist/types.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
 
2
- import { ModuleOptions } from './module'
2
+ import type { ModuleOptions } from './module'
3
+
3
4
 
4
5
  declare module '@nuxt/schema' {
5
6
  interface NuxtConfig { ['mongocamp']?: Partial<ModuleOptions> }
@@ -12,4 +13,4 @@ declare module 'nuxt/schema' {
12
13
  }
13
14
 
14
15
 
15
- export { ModuleOptions, default } from './module'
16
+ export type { ModuleOptions, default } from './module'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sfxcode/nuxt-mongocamp-server",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -18,19 +18,19 @@
18
18
  "failOnWarn": false
19
19
  },
20
20
  "dependencies": {
21
- "@nuxt/kit": "^3.6.5",
22
- "@vueuse/nuxt": "^10.3.0"
21
+ "@nuxt/kit": "^3.8.1",
22
+ "@vueuse/nuxt": "^10.6.1"
23
23
  },
24
24
  "devDependencies": {
25
- "@iconify-json/mdi": "^1.1.53",
26
- "@nuxt/module-builder": "^0.4.0",
27
- "@nuxtjs/eslint-config-typescript": "12.0.0",
25
+ "@iconify-json/mdi": "^1.1.55",
26
+ "@nuxt/module-builder": "^0.5.4",
27
+ "@nuxtjs/eslint-config-typescript": "12.1.0",
28
28
  "@openapitools/openapi-generator-cli": "^2.7.0",
29
- "@types/node": "^20.4.5",
30
- "@unocss/nuxt": "^0.54.0",
31
- "defu": "^6.1.2",
32
- "jiti": "^1.19.1",
33
- "nuxt": "^3.6.5"
29
+ "@types/node": "^20.9.2",
30
+ "@unocss/nuxt": "^0.57.5",
31
+ "defu": "^6.1.3",
32
+ "jiti": "^1.21.0",
33
+ "nuxt": "^3.8.1"
34
34
  },
35
35
  "scripts": {
36
36
  "dev": "nuxi dev playground",
@@ -39,6 +39,6 @@
39
39
  "dev:start": "node playground/.output/server/index.mjs",
40
40
  "lint:show": "eslint ./src/runtime",
41
41
  "lint:fix": "eslint --fix ./src/runtime",
42
- "api-codegen": "openapi-generator-cli generate -i http://173.249.2.248:30103/docs/docs.yaml -g typescript-fetch -o src/runtime/api --additional-properties=typescriptThreePlus=true,supportsES6=true"
42
+ "api-codegen": "openapi-generator-cli generate -i https://showcase.mongocamp.dev/docs/docs.yaml -g typescript-fetch -o src/runtime/api --additional-properties=typescriptThreePlus=true,supportsES6=true"
43
43
  }
44
44
  }
@@ -1,27 +0,0 @@
1
- /**
2
- * mongocamp-server
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 1.2.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface JsonResultBoolean
16
- */
17
- export interface JsonResultBoolean {
18
- /**
19
- *
20
- * @type {boolean}
21
- * @memberof JsonResultBoolean
22
- */
23
- value: boolean;
24
- }
25
- export declare function JsonResultBooleanFromJSON(json: any): JsonResultBoolean;
26
- export declare function JsonResultBooleanFromJSONTyped(json: any, ignoreDiscriminator: boolean): JsonResultBoolean;
27
- export declare function JsonResultBooleanToJSON(value?: JsonResultBoolean | null): any;
@@ -1,22 +0,0 @@
1
- export function JsonResultBooleanFromJSON(json) {
2
- return JsonResultBooleanFromJSONTyped(json, false);
3
- }
4
- export function JsonResultBooleanFromJSONTyped(json, ignoreDiscriminator) {
5
- if (json === void 0 || json === null) {
6
- return json;
7
- }
8
- return {
9
- "value": json["value"]
10
- };
11
- }
12
- export function JsonResultBooleanToJSON(value) {
13
- if (value === void 0) {
14
- return void 0;
15
- }
16
- if (value === null) {
17
- return null;
18
- }
19
- return {
20
- "value": value.value
21
- };
22
- }
@@ -1,27 +0,0 @@
1
- /**
2
- * mongocamp-server
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 1.2.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface JsonResultString
16
- */
17
- export interface JsonResultString {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof JsonResultString
22
- */
23
- value: string;
24
- }
25
- export declare function JsonResultStringFromJSON(json: any): JsonResultString;
26
- export declare function JsonResultStringFromJSONTyped(json: any, ignoreDiscriminator: boolean): JsonResultString;
27
- export declare function JsonResultStringToJSON(value?: JsonResultString | null): any;
@@ -1,22 +0,0 @@
1
- export function JsonResultStringFromJSON(json) {
2
- return JsonResultStringFromJSONTyped(json, false);
3
- }
4
- export function JsonResultStringFromJSONTyped(json, ignoreDiscriminator) {
5
- if (json === void 0 || json === null) {
6
- return json;
7
- }
8
- return {
9
- "value": json["value"]
10
- };
11
- }
12
- export function JsonResultStringToJSON(value) {
13
- if (value === void 0) {
14
- return void 0;
15
- }
16
- if (value === null) {
17
- return null;
18
- }
19
- return {
20
- "value": value.value
21
- };
22
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * mongocamp-server
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 1.4.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface Measurement
16
- */
17
- export interface Measurement {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof Measurement
22
- */
23
- statisticType: string;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof Measurement
28
- */
29
- value: number;
30
- }
31
- export declare function MeasurementFromJSON(json: any): Measurement;
32
- export declare function MeasurementFromJSONTyped(json: any, ignoreDiscriminator: boolean): Measurement;
33
- export declare function MeasurementToJSON(value?: Measurement | null): any;
@@ -1,24 +0,0 @@
1
- export function MeasurementFromJSON(json) {
2
- return MeasurementFromJSONTyped(json, false);
3
- }
4
- export function MeasurementFromJSONTyped(json, ignoreDiscriminator) {
5
- if (json === void 0 || json === null) {
6
- return json;
7
- }
8
- return {
9
- "statisticType": json["statisticType"],
10
- "value": json["value"]
11
- };
12
- }
13
- export function MeasurementToJSON(value) {
14
- if (value === void 0) {
15
- return void 0;
16
- }
17
- if (value === null) {
18
- return null;
19
- }
20
- return {
21
- "statisticType": value.statisticType,
22
- "value": value.value
23
- };
24
- }
@@ -1,52 +0,0 @@
1
- /**
2
- * mongocamp-server
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 1.4.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { Measurement } from './Measurement';
13
- /**
14
- *
15
- * @export
16
- * @interface Metric
17
- */
18
- export interface Metric {
19
- /**
20
- *
21
- * @type {string}
22
- * @memberof Metric
23
- */
24
- name: string;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof Metric
29
- */
30
- metricsType: string;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof Metric
35
- */
36
- description: string;
37
- /**
38
- *
39
- * @type {string}
40
- * @memberof Metric
41
- */
42
- baseUnit: string;
43
- /**
44
- *
45
- * @type {Array<Measurement>}
46
- * @memberof Metric
47
- */
48
- measurements?: Array<Measurement>;
49
- }
50
- export declare function MetricFromJSON(json: any): Metric;
51
- export declare function MetricFromJSONTyped(json: any, ignoreDiscriminator: boolean): Metric;
52
- export declare function MetricToJSON(value?: Metric | null): any;
@@ -1,35 +0,0 @@
1
- import { exists } from "../runtime.mjs";
2
- import {
3
- MeasurementFromJSON,
4
- MeasurementToJSON
5
- } from "./Measurement.mjs";
6
- export function MetricFromJSON(json) {
7
- return MetricFromJSONTyped(json, false);
8
- }
9
- export function MetricFromJSONTyped(json, ignoreDiscriminator) {
10
- if (json === void 0 || json === null) {
11
- return json;
12
- }
13
- return {
14
- "name": json["name"],
15
- "metricsType": json["metricsType"],
16
- "description": json["description"],
17
- "baseUnit": json["baseUnit"],
18
- "measurements": !exists(json, "measurements") ? void 0 : json["measurements"].map(MeasurementFromJSON)
19
- };
20
- }
21
- export function MetricToJSON(value) {
22
- if (value === void 0) {
23
- return void 0;
24
- }
25
- if (value === null) {
26
- return null;
27
- }
28
- return {
29
- "name": value.name,
30
- "metricsType": value.metricsType,
31
- "description": value.description,
32
- "baseUnit": value.baseUnit,
33
- "measurements": value.measurements === void 0 ? void 0 : value.measurements.map(MeasurementToJSON)
34
- };
35
- }