@openshift-migration-advisor/planner-sdk 0.8.0-37720cca68e5 → 0.8.0-c0804255c486

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 (46) hide show
  1. package/.openapi-generator/FILES +2 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +4 -4
  4. package/dist/apis/AssessmentApi.d.ts +13 -5
  5. package/dist/apis/AssessmentApi.js +1 -1
  6. package/dist/esm/apis/AssessmentApi.d.ts +13 -5
  7. package/dist/esm/apis/AssessmentApi.js +2 -2
  8. package/dist/esm/models/EstimationDetail.d.ts +14 -2
  9. package/dist/esm/models/EstimationDetail.js +5 -3
  10. package/dist/esm/models/MigrationEstimationRequest.d.ts +16 -0
  11. package/dist/esm/models/MigrationEstimationRequest.js +4 -0
  12. package/dist/esm/models/SchemaEstimationResult.d.ts +47 -0
  13. package/dist/esm/models/{MigrationEstimationResponse.js → SchemaEstimationResult.js} +15 -11
  14. package/dist/esm/models/VMs.d.ts +9 -0
  15. package/dist/esm/models/VMs.js +2 -0
  16. package/dist/esm/models/index.d.ts +1 -1
  17. package/dist/esm/models/index.js +1 -1
  18. package/dist/esm/runtime.js +1 -1
  19. package/dist/models/EstimationDetail.d.ts +14 -2
  20. package/dist/models/EstimationDetail.js +5 -3
  21. package/dist/models/MigrationEstimationRequest.d.ts +16 -0
  22. package/dist/models/MigrationEstimationRequest.js +4 -0
  23. package/dist/models/SchemaEstimationResult.d.ts +47 -0
  24. package/dist/models/SchemaEstimationResult.js +60 -0
  25. package/dist/models/VMs.d.ts +9 -0
  26. package/dist/models/VMs.js +2 -0
  27. package/dist/models/index.d.ts +1 -1
  28. package/dist/models/index.js +1 -1
  29. package/dist/runtime.js +1 -1
  30. package/docs/AssessmentApi.md +3 -3
  31. package/docs/EstimationDetail.md +5 -1
  32. package/docs/MigrationEstimationRequest.md +4 -0
  33. package/docs/{MigrationEstimationResponse.md → SchemaEstimationResult.md} +9 -7
  34. package/docs/VMs.md +2 -0
  35. package/package.json +1 -1
  36. package/src/apis/AssessmentApi.ts +8 -8
  37. package/src/models/EstimationDetail.ts +19 -4
  38. package/src/models/MigrationEstimationRequest.ts +18 -0
  39. package/src/models/SchemaEstimationResult.ts +92 -0
  40. package/src/models/VMs.ts +9 -0
  41. package/src/models/index.ts +1 -1
  42. package/src/runtime.ts +1 -1
  43. package/dist/esm/models/MigrationEstimationResponse.d.ts +0 -41
  44. package/dist/models/MigrationEstimationResponse.d.ts +0 -41
  45. package/dist/models/MigrationEstimationResponse.js +0 -56
  46. package/src/models/MigrationEstimationResponse.ts +0 -83
@@ -1,56 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * OpenShift Migration Advisor API
6
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
- *
8
- * The version of the OpenAPI document: undefined
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfMigrationEstimationResponse = instanceOfMigrationEstimationResponse;
17
- exports.MigrationEstimationResponseFromJSON = MigrationEstimationResponseFromJSON;
18
- exports.MigrationEstimationResponseFromJSONTyped = MigrationEstimationResponseFromJSONTyped;
19
- exports.MigrationEstimationResponseToJSON = MigrationEstimationResponseToJSON;
20
- exports.MigrationEstimationResponseToJSONTyped = MigrationEstimationResponseToJSONTyped;
21
- const runtime_js_1 = require("../runtime.js");
22
- const EstimationDetail_js_1 = require("./EstimationDetail.js");
23
- /**
24
- * Check if a given object implements the MigrationEstimationResponse interface.
25
- */
26
- function instanceOfMigrationEstimationResponse(value) {
27
- if (!('totalDuration' in value) || value['totalDuration'] === undefined)
28
- return false;
29
- if (!('breakdown' in value) || value['breakdown'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function MigrationEstimationResponseFromJSON(json) {
34
- return MigrationEstimationResponseFromJSONTyped(json, false);
35
- }
36
- function MigrationEstimationResponseFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'totalDuration': json['totalDuration'],
42
- 'breakdown': ((0, runtime_js_1.mapValues)(json['breakdown'], EstimationDetail_js_1.EstimationDetailFromJSON)),
43
- };
44
- }
45
- function MigrationEstimationResponseToJSON(json) {
46
- return MigrationEstimationResponseToJSONTyped(json, false);
47
- }
48
- function MigrationEstimationResponseToJSONTyped(value, ignoreDiscriminator = false) {
49
- if (value == null) {
50
- return value;
51
- }
52
- return {
53
- 'totalDuration': value['totalDuration'],
54
- 'breakdown': ((0, runtime_js_1.mapValues)(value['breakdown'], EstimationDetail_js_1.EstimationDetailToJSON)),
55
- };
56
- }
@@ -1,83 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * OpenShift Migration Advisor API
5
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- *
7
- * The version of the OpenAPI document: undefined
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime.js';
16
- import type { EstimationDetail } from './EstimationDetail.js';
17
- import {
18
- EstimationDetailFromJSON,
19
- EstimationDetailFromJSONTyped,
20
- EstimationDetailToJSON,
21
- EstimationDetailToJSONTyped,
22
- } from './EstimationDetail.js';
23
-
24
- /**
25
- * Migration time estimation results
26
- * @export
27
- * @interface MigrationEstimationResponse
28
- */
29
- export interface MigrationEstimationResponse {
30
- /**
31
- * Total estimated migration duration (formatted as duration string, e.g., "2h30m")
32
- * @type {string}
33
- * @memberof MigrationEstimationResponse
34
- */
35
- totalDuration: string;
36
- /**
37
- * Breakdown of estimation by calculator
38
- * @type {{ [key: string]: EstimationDetail; }}
39
- * @memberof MigrationEstimationResponse
40
- */
41
- breakdown: { [key: string]: EstimationDetail; };
42
- }
43
-
44
- /**
45
- * Check if a given object implements the MigrationEstimationResponse interface.
46
- */
47
- export function instanceOfMigrationEstimationResponse(value: object): value is MigrationEstimationResponse {
48
- if (!('totalDuration' in value) || value['totalDuration'] === undefined) return false;
49
- if (!('breakdown' in value) || value['breakdown'] === undefined) return false;
50
- return true;
51
- }
52
-
53
- export function MigrationEstimationResponseFromJSON(json: any): MigrationEstimationResponse {
54
- return MigrationEstimationResponseFromJSONTyped(json, false);
55
- }
56
-
57
- export function MigrationEstimationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationResponse {
58
- if (json == null) {
59
- return json;
60
- }
61
- return {
62
-
63
- 'totalDuration': json['totalDuration'],
64
- 'breakdown': (mapValues(json['breakdown'], EstimationDetailFromJSON)),
65
- };
66
- }
67
-
68
- export function MigrationEstimationResponseToJSON(json: any): MigrationEstimationResponse {
69
- return MigrationEstimationResponseToJSONTyped(json, false);
70
- }
71
-
72
- export function MigrationEstimationResponseToJSONTyped(value?: MigrationEstimationResponse | null, ignoreDiscriminator: boolean = false): any {
73
- if (value == null) {
74
- return value;
75
- }
76
-
77
- return {
78
-
79
- 'totalDuration': value['totalDuration'],
80
- 'breakdown': (mapValues(value['breakdown'], EstimationDetailToJSON)),
81
- };
82
- }
83
-