@openshift-migration-advisor/planner-sdk 0.10.0 → 0.11.0-7cc84aae7ba0

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 (115) hide show
  1. package/.openapi-generator/FILES +28 -0
  2. package/README.md +40 -11
  3. package/dist/apis/AccountApi.d.ts +390 -0
  4. package/dist/apis/AccountApi.js +454 -0
  5. package/dist/apis/AssessmentApi.d.ts +5 -13
  6. package/dist/apis/AssessmentApi.js +8 -8
  7. package/dist/apis/ImageApi.js +2 -2
  8. package/dist/apis/JobApi.js +2 -2
  9. package/dist/apis/PartnerApi.d.ts +323 -0
  10. package/dist/apis/PartnerApi.js +379 -0
  11. package/dist/apis/SourceApi.js +4 -4
  12. package/dist/apis/index.d.ts +2 -0
  13. package/dist/apis/index.js +2 -0
  14. package/dist/esm/apis/AccountApi.d.ts +390 -0
  15. package/dist/esm/apis/AccountApi.js +450 -0
  16. package/dist/esm/apis/AssessmentApi.d.ts +5 -13
  17. package/dist/esm/apis/AssessmentApi.js +9 -9
  18. package/dist/esm/apis/ImageApi.js +2 -2
  19. package/dist/esm/apis/JobApi.js +2 -2
  20. package/dist/esm/apis/PartnerApi.d.ts +323 -0
  21. package/dist/esm/apis/PartnerApi.js +375 -0
  22. package/dist/esm/apis/SourceApi.js +4 -4
  23. package/dist/esm/apis/index.d.ts +2 -0
  24. package/dist/esm/apis/index.js +2 -0
  25. package/dist/esm/models/Group.d.ts +82 -0
  26. package/dist/esm/models/Group.js +76 -0
  27. package/dist/esm/models/GroupCreate.d.ts +64 -0
  28. package/dist/esm/models/GroupCreate.js +66 -0
  29. package/dist/esm/models/GroupUpdate.d.ts +50 -0
  30. package/dist/esm/models/GroupUpdate.js +47 -0
  31. package/dist/esm/models/Identity.d.ts +60 -0
  32. package/dist/esm/models/Identity.js +60 -0
  33. package/dist/esm/models/Member.d.ts +56 -0
  34. package/dist/esm/models/Member.js +57 -0
  35. package/dist/esm/models/MemberCreate.d.ts +38 -0
  36. package/dist/esm/models/MemberCreate.js +47 -0
  37. package/dist/esm/models/MemberUpdate.d.ts +32 -0
  38. package/dist/esm/models/MemberUpdate.js +41 -0
  39. package/dist/esm/models/MigrationEstimationRequest.d.ts +1 -1
  40. package/dist/esm/models/MigrationEstimationResponse.d.ts +43 -0
  41. package/dist/esm/models/MigrationEstimationResponse.js +50 -0
  42. package/dist/esm/models/PartnerRequest.d.ts +99 -0
  43. package/dist/esm/models/PartnerRequest.js +82 -0
  44. package/dist/esm/models/PartnerRequestCreate.d.ts +56 -0
  45. package/dist/esm/models/PartnerRequestCreate.js +59 -0
  46. package/dist/esm/models/PartnerRequestStatus.d.ts +27 -0
  47. package/dist/esm/models/PartnerRequestStatus.js +45 -0
  48. package/dist/esm/models/PartnerRequestUpdate.d.ts +39 -0
  49. package/dist/esm/models/PartnerRequestUpdate.js +46 -0
  50. package/dist/esm/models/index.d.ts +12 -0
  51. package/dist/esm/models/index.js +12 -0
  52. package/dist/models/Group.d.ts +82 -0
  53. package/dist/models/Group.js +84 -0
  54. package/dist/models/GroupCreate.d.ts +64 -0
  55. package/dist/models/GroupCreate.js +74 -0
  56. package/dist/models/GroupUpdate.d.ts +50 -0
  57. package/dist/models/GroupUpdate.js +54 -0
  58. package/dist/models/Identity.d.ts +60 -0
  59. package/dist/models/Identity.js +68 -0
  60. package/dist/models/Member.d.ts +56 -0
  61. package/dist/models/Member.js +64 -0
  62. package/dist/models/MemberCreate.d.ts +38 -0
  63. package/dist/models/MemberCreate.js +54 -0
  64. package/dist/models/MemberUpdate.d.ts +32 -0
  65. package/dist/models/MemberUpdate.js +48 -0
  66. package/dist/models/MigrationEstimationRequest.d.ts +1 -1
  67. package/dist/models/MigrationEstimationResponse.d.ts +43 -0
  68. package/dist/models/MigrationEstimationResponse.js +57 -0
  69. package/dist/models/PartnerRequest.d.ts +99 -0
  70. package/dist/models/PartnerRequest.js +89 -0
  71. package/dist/models/PartnerRequestCreate.d.ts +56 -0
  72. package/dist/models/PartnerRequestCreate.js +66 -0
  73. package/dist/models/PartnerRequestStatus.d.ts +27 -0
  74. package/dist/models/PartnerRequestStatus.js +53 -0
  75. package/dist/models/PartnerRequestUpdate.d.ts +39 -0
  76. package/dist/models/PartnerRequestUpdate.js +53 -0
  77. package/dist/models/index.d.ts +12 -0
  78. package/dist/models/index.js +12 -0
  79. package/docs/AccountApi.md +734 -0
  80. package/docs/AssessmentApi.md +2 -2
  81. package/docs/Group.md +48 -0
  82. package/docs/GroupCreate.md +42 -0
  83. package/docs/GroupUpdate.md +40 -0
  84. package/docs/Identity.md +40 -0
  85. package/docs/Member.md +42 -0
  86. package/docs/MemberCreate.md +36 -0
  87. package/docs/MemberUpdate.md +34 -0
  88. package/docs/MigrationEstimationResponse.md +37 -0
  89. package/docs/PartnerApi.md +636 -0
  90. package/docs/PartnerRequest.md +56 -0
  91. package/docs/PartnerRequestCreate.md +42 -0
  92. package/docs/PartnerRequestStatus.md +32 -0
  93. package/docs/PartnerRequestUpdate.md +36 -0
  94. package/package.json +1 -1
  95. package/src/apis/AccountApi.ts +834 -0
  96. package/src/apis/AssessmentApi.ts +15 -15
  97. package/src/apis/ImageApi.ts +2 -2
  98. package/src/apis/JobApi.ts +2 -2
  99. package/src/apis/PartnerApi.ts +668 -0
  100. package/src/apis/SourceApi.ts +4 -4
  101. package/src/apis/index.ts +2 -0
  102. package/src/models/Group.ts +139 -0
  103. package/src/models/GroupCreate.ts +113 -0
  104. package/src/models/GroupUpdate.ts +89 -0
  105. package/src/models/Identity.ts +104 -0
  106. package/src/models/Member.ts +101 -0
  107. package/src/models/MemberCreate.ts +75 -0
  108. package/src/models/MemberUpdate.ts +65 -0
  109. package/src/models/MigrationEstimationRequest.ts +1 -1
  110. package/src/models/MigrationEstimationResponse.ts +91 -0
  111. package/src/models/PartnerRequest.ts +172 -0
  112. package/src/models/PartnerRequestCreate.ts +102 -0
  113. package/src/models/PartnerRequestStatus.ts +55 -0
  114. package/src/models/PartnerRequestUpdate.ts +84 -0
  115. package/src/models/index.ts +12 -0
@@ -0,0 +1,32 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: undefined
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 MemberUpdate
16
+ */
17
+ export interface MemberUpdate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MemberUpdate
22
+ */
23
+ email?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the MemberUpdate interface.
27
+ */
28
+ export declare function instanceOfMemberUpdate(value: object): value is MemberUpdate;
29
+ export declare function MemberUpdateFromJSON(json: any): MemberUpdate;
30
+ export declare function MemberUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemberUpdate;
31
+ export declare function MemberUpdateToJSON(json: any): MemberUpdate;
32
+ export declare function MemberUpdateToJSONTyped(value?: MemberUpdate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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.instanceOfMemberUpdate = instanceOfMemberUpdate;
17
+ exports.MemberUpdateFromJSON = MemberUpdateFromJSON;
18
+ exports.MemberUpdateFromJSONTyped = MemberUpdateFromJSONTyped;
19
+ exports.MemberUpdateToJSON = MemberUpdateToJSON;
20
+ exports.MemberUpdateToJSONTyped = MemberUpdateToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MemberUpdate interface.
23
+ */
24
+ function instanceOfMemberUpdate(value) {
25
+ return true;
26
+ }
27
+ function MemberUpdateFromJSON(json) {
28
+ return MemberUpdateFromJSONTyped(json, false);
29
+ }
30
+ function MemberUpdateFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'email': json['email'] == null ? undefined : json['email'],
36
+ };
37
+ }
38
+ function MemberUpdateToJSON(json) {
39
+ return MemberUpdateToJSONTyped(json, false);
40
+ }
41
+ function MemberUpdateToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'email': value['email'],
47
+ };
48
+ }
@@ -29,7 +29,7 @@ export interface MigrationEstimationRequest {
29
29
  */
30
30
  estimationSchema?: Array<string>;
31
31
  /**
32
- * Optional calculator parameter overrides. Keys must match known calculator param names (e.g. "transfer_rate_mbps", "work_hours_per_day", "troubleshoot_mins_per_vm", "post_migration_engineers"). User-supplied values take precedence over both defaults and inventory-derived values. Unknown keys are silently ignored.
32
+ * Optional calculator parameter overrides. Keys must match known calculator param names (e.g. "transfer_rate_mbps", "work_hours_per_day", "troubleshoot_mins_per_vm", "post_migration_engineers"). User-supplied values take precedence over both defaults and inventory-derived values. Unknown keys are rejected with HTTP 400.
33
33
  *
34
34
  * @type {{ [key: string]: any; }}
35
35
  * @memberof MigrationEstimationRequest
@@ -0,0 +1,43 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: undefined
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 type { SchemaEstimationResult } from './SchemaEstimationResult.js';
13
+ import type { EstimationContext } from './EstimationContext.js';
14
+ /**
15
+ * Migration estimation result, including per-schema results and the parameters used.
16
+ *
17
+ * @export
18
+ * @interface MigrationEstimationResponse
19
+ */
20
+ export interface MigrationEstimationResponse {
21
+ /**
22
+ * Estimation results keyed by schema name (e.g. "network-based", "storage-offload").
23
+ * @type {{ [key: string]: SchemaEstimationResult; }}
24
+ * @memberof MigrationEstimationResponse
25
+ */
26
+ estimation: {
27
+ [key: string]: SchemaEstimationResult;
28
+ };
29
+ /**
30
+ *
31
+ * @type {EstimationContext}
32
+ * @memberof MigrationEstimationResponse
33
+ */
34
+ estimationContext: EstimationContext;
35
+ }
36
+ /**
37
+ * Check if a given object implements the MigrationEstimationResponse interface.
38
+ */
39
+ export declare function instanceOfMigrationEstimationResponse(value: object): value is MigrationEstimationResponse;
40
+ export declare function MigrationEstimationResponseFromJSON(json: any): MigrationEstimationResponse;
41
+ export declare function MigrationEstimationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationResponse;
42
+ export declare function MigrationEstimationResponseToJSON(json: any): MigrationEstimationResponse;
43
+ export declare function MigrationEstimationResponseToJSONTyped(value?: MigrationEstimationResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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 SchemaEstimationResult_js_1 = require("./SchemaEstimationResult.js");
23
+ const EstimationContext_js_1 = require("./EstimationContext.js");
24
+ /**
25
+ * Check if a given object implements the MigrationEstimationResponse interface.
26
+ */
27
+ function instanceOfMigrationEstimationResponse(value) {
28
+ if (!('estimation' in value) || value['estimation'] === undefined)
29
+ return false;
30
+ if (!('estimationContext' in value) || value['estimationContext'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function MigrationEstimationResponseFromJSON(json) {
35
+ return MigrationEstimationResponseFromJSONTyped(json, false);
36
+ }
37
+ function MigrationEstimationResponseFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'estimation': ((0, runtime_js_1.mapValues)(json['estimation'], SchemaEstimationResult_js_1.SchemaEstimationResultFromJSON)),
43
+ 'estimationContext': (0, EstimationContext_js_1.EstimationContextFromJSON)(json['estimationContext']),
44
+ };
45
+ }
46
+ function MigrationEstimationResponseToJSON(json) {
47
+ return MigrationEstimationResponseToJSONTyped(json, false);
48
+ }
49
+ function MigrationEstimationResponseToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'estimation': ((0, runtime_js_1.mapValues)(value['estimation'], SchemaEstimationResult_js_1.SchemaEstimationResultToJSON)),
55
+ 'estimationContext': (0, EstimationContext_js_1.EstimationContextToJSON)(value['estimationContext']),
56
+ };
57
+ }
@@ -0,0 +1,99 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: undefined
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 type { PartnerRequestStatus } from './PartnerRequestStatus.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PartnerRequest
17
+ */
18
+ export interface PartnerRequest {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof PartnerRequest
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PartnerRequest
29
+ */
30
+ username: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof PartnerRequest
35
+ */
36
+ partnerId: string;
37
+ /**
38
+ *
39
+ * @type {PartnerRequestStatus}
40
+ * @memberof PartnerRequest
41
+ */
42
+ requestStatus: PartnerRequestStatus;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof PartnerRequest
47
+ */
48
+ name: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof PartnerRequest
53
+ */
54
+ contactName: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof PartnerRequest
59
+ */
60
+ contactPhone: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof PartnerRequest
65
+ */
66
+ email: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof PartnerRequest
71
+ */
72
+ location: string;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof PartnerRequest
77
+ */
78
+ reason?: string | null;
79
+ /**
80
+ *
81
+ * @type {Date}
82
+ * @memberof PartnerRequest
83
+ */
84
+ acceptedAt?: Date | null;
85
+ /**
86
+ *
87
+ * @type {Date}
88
+ * @memberof PartnerRequest
89
+ */
90
+ terminatedAt?: Date | null;
91
+ }
92
+ /**
93
+ * Check if a given object implements the PartnerRequest interface.
94
+ */
95
+ export declare function instanceOfPartnerRequest(value: object): value is PartnerRequest;
96
+ export declare function PartnerRequestFromJSON(json: any): PartnerRequest;
97
+ export declare function PartnerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerRequest;
98
+ export declare function PartnerRequestToJSON(json: any): PartnerRequest;
99
+ export declare function PartnerRequestToJSONTyped(value?: PartnerRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,89 @@
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.instanceOfPartnerRequest = instanceOfPartnerRequest;
17
+ exports.PartnerRequestFromJSON = PartnerRequestFromJSON;
18
+ exports.PartnerRequestFromJSONTyped = PartnerRequestFromJSONTyped;
19
+ exports.PartnerRequestToJSON = PartnerRequestToJSON;
20
+ exports.PartnerRequestToJSONTyped = PartnerRequestToJSONTyped;
21
+ const PartnerRequestStatus_js_1 = require("./PartnerRequestStatus.js");
22
+ /**
23
+ * Check if a given object implements the PartnerRequest interface.
24
+ */
25
+ function instanceOfPartnerRequest(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('username' in value) || value['username'] === undefined)
29
+ return false;
30
+ if (!('partnerId' in value) || value['partnerId'] === undefined)
31
+ return false;
32
+ if (!('requestStatus' in value) || value['requestStatus'] === undefined)
33
+ return false;
34
+ if (!('name' in value) || value['name'] === undefined)
35
+ return false;
36
+ if (!('contactName' in value) || value['contactName'] === undefined)
37
+ return false;
38
+ if (!('contactPhone' in value) || value['contactPhone'] === undefined)
39
+ return false;
40
+ if (!('email' in value) || value['email'] === undefined)
41
+ return false;
42
+ if (!('location' in value) || value['location'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function PartnerRequestFromJSON(json) {
47
+ return PartnerRequestFromJSONTyped(json, false);
48
+ }
49
+ function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'id': json['id'],
55
+ 'username': json['username'],
56
+ 'partnerId': json['partnerId'],
57
+ 'requestStatus': (0, PartnerRequestStatus_js_1.PartnerRequestStatusFromJSON)(json['requestStatus']),
58
+ 'name': json['name'],
59
+ 'contactName': json['contactName'],
60
+ 'contactPhone': json['contactPhone'],
61
+ 'email': json['email'],
62
+ 'location': json['location'],
63
+ 'reason': json['reason'] == null ? undefined : json['reason'],
64
+ 'acceptedAt': json['acceptedAt'] == null ? undefined : (new Date(json['acceptedAt'])),
65
+ 'terminatedAt': json['terminatedAt'] == null ? undefined : (new Date(json['terminatedAt'])),
66
+ };
67
+ }
68
+ function PartnerRequestToJSON(json) {
69
+ return PartnerRequestToJSONTyped(json, false);
70
+ }
71
+ function PartnerRequestToJSONTyped(value, ignoreDiscriminator = false) {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+ return {
76
+ 'id': value['id'],
77
+ 'username': value['username'],
78
+ 'partnerId': value['partnerId'],
79
+ 'requestStatus': (0, PartnerRequestStatus_js_1.PartnerRequestStatusToJSON)(value['requestStatus']),
80
+ 'name': value['name'],
81
+ 'contactName': value['contactName'],
82
+ 'contactPhone': value['contactPhone'],
83
+ 'email': value['email'],
84
+ 'location': value['location'],
85
+ 'reason': value['reason'],
86
+ 'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
87
+ 'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
88
+ };
89
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: undefined
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 PartnerRequestCreate
16
+ */
17
+ export interface PartnerRequestCreate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PartnerRequestCreate
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PartnerRequestCreate
28
+ */
29
+ contactName: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PartnerRequestCreate
34
+ */
35
+ contactPhone: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PartnerRequestCreate
40
+ */
41
+ email: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PartnerRequestCreate
46
+ */
47
+ location: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the PartnerRequestCreate interface.
51
+ */
52
+ export declare function instanceOfPartnerRequestCreate(value: object): value is PartnerRequestCreate;
53
+ export declare function PartnerRequestCreateFromJSON(json: any): PartnerRequestCreate;
54
+ export declare function PartnerRequestCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerRequestCreate;
55
+ export declare function PartnerRequestCreateToJSON(json: any): PartnerRequestCreate;
56
+ export declare function PartnerRequestCreateToJSONTyped(value?: PartnerRequestCreate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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.instanceOfPartnerRequestCreate = instanceOfPartnerRequestCreate;
17
+ exports.PartnerRequestCreateFromJSON = PartnerRequestCreateFromJSON;
18
+ exports.PartnerRequestCreateFromJSONTyped = PartnerRequestCreateFromJSONTyped;
19
+ exports.PartnerRequestCreateToJSON = PartnerRequestCreateToJSON;
20
+ exports.PartnerRequestCreateToJSONTyped = PartnerRequestCreateToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PartnerRequestCreate interface.
23
+ */
24
+ function instanceOfPartnerRequestCreate(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('contactName' in value) || value['contactName'] === undefined)
28
+ return false;
29
+ if (!('contactPhone' in value) || value['contactPhone'] === undefined)
30
+ return false;
31
+ if (!('email' in value) || value['email'] === undefined)
32
+ return false;
33
+ if (!('location' in value) || value['location'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function PartnerRequestCreateFromJSON(json) {
38
+ return PartnerRequestCreateFromJSONTyped(json, false);
39
+ }
40
+ function PartnerRequestCreateFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'name': json['name'],
46
+ 'contactName': json['contactName'],
47
+ 'contactPhone': json['contactPhone'],
48
+ 'email': json['email'],
49
+ 'location': json['location'],
50
+ };
51
+ }
52
+ function PartnerRequestCreateToJSON(json) {
53
+ return PartnerRequestCreateToJSONTyped(json, false);
54
+ }
55
+ function PartnerRequestCreateToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'name': value['name'],
61
+ 'contactName': value['contactName'],
62
+ 'contactPhone': value['contactPhone'],
63
+ 'email': value['email'],
64
+ 'location': value['location'],
65
+ };
66
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: undefined
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
+ */
16
+ export declare const PartnerRequestStatus: {
17
+ readonly Pending: "pending";
18
+ readonly Accepted: "accepted";
19
+ readonly Rejected: "rejected";
20
+ readonly Cancelled: "cancelled";
21
+ };
22
+ export type PartnerRequestStatus = typeof PartnerRequestStatus[keyof typeof PartnerRequestStatus];
23
+ export declare function instanceOfPartnerRequestStatus(value: any): boolean;
24
+ export declare function PartnerRequestStatusFromJSON(json: any): PartnerRequestStatus;
25
+ export declare function PartnerRequestStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerRequestStatus;
26
+ export declare function PartnerRequestStatusToJSON(value?: PartnerRequestStatus | null): any;
27
+ export declare function PartnerRequestStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): PartnerRequestStatus;
@@ -0,0 +1,53 @@
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.PartnerRequestStatus = void 0;
17
+ exports.instanceOfPartnerRequestStatus = instanceOfPartnerRequestStatus;
18
+ exports.PartnerRequestStatusFromJSON = PartnerRequestStatusFromJSON;
19
+ exports.PartnerRequestStatusFromJSONTyped = PartnerRequestStatusFromJSONTyped;
20
+ exports.PartnerRequestStatusToJSON = PartnerRequestStatusToJSON;
21
+ exports.PartnerRequestStatusToJSONTyped = PartnerRequestStatusToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.PartnerRequestStatus = {
27
+ Pending: 'pending',
28
+ Accepted: 'accepted',
29
+ Rejected: 'rejected',
30
+ Cancelled: 'cancelled'
31
+ };
32
+ function instanceOfPartnerRequestStatus(value) {
33
+ for (const key in exports.PartnerRequestStatus) {
34
+ if (Object.prototype.hasOwnProperty.call(exports.PartnerRequestStatus, key)) {
35
+ if (exports.PartnerRequestStatus[key] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+ function PartnerRequestStatusFromJSON(json) {
43
+ return PartnerRequestStatusFromJSONTyped(json, false);
44
+ }
45
+ function PartnerRequestStatusFromJSONTyped(json, ignoreDiscriminator) {
46
+ return json;
47
+ }
48
+ function PartnerRequestStatusToJSON(value) {
49
+ return value;
50
+ }
51
+ function PartnerRequestStatusToJSONTyped(value, ignoreDiscriminator) {
52
+ return value;
53
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: undefined
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 type { PartnerRequestStatus } from './PartnerRequestStatus.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PartnerRequestUpdate
17
+ */
18
+ export interface PartnerRequestUpdate {
19
+ /**
20
+ *
21
+ * @type {PartnerRequestStatus}
22
+ * @memberof PartnerRequestUpdate
23
+ */
24
+ status: PartnerRequestStatus;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PartnerRequestUpdate
29
+ */
30
+ reason?: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PartnerRequestUpdate interface.
34
+ */
35
+ export declare function instanceOfPartnerRequestUpdate(value: object): value is PartnerRequestUpdate;
36
+ export declare function PartnerRequestUpdateFromJSON(json: any): PartnerRequestUpdate;
37
+ export declare function PartnerRequestUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerRequestUpdate;
38
+ export declare function PartnerRequestUpdateToJSON(json: any): PartnerRequestUpdate;
39
+ export declare function PartnerRequestUpdateToJSONTyped(value?: PartnerRequestUpdate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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.instanceOfPartnerRequestUpdate = instanceOfPartnerRequestUpdate;
17
+ exports.PartnerRequestUpdateFromJSON = PartnerRequestUpdateFromJSON;
18
+ exports.PartnerRequestUpdateFromJSONTyped = PartnerRequestUpdateFromJSONTyped;
19
+ exports.PartnerRequestUpdateToJSON = PartnerRequestUpdateToJSON;
20
+ exports.PartnerRequestUpdateToJSONTyped = PartnerRequestUpdateToJSONTyped;
21
+ const PartnerRequestStatus_js_1 = require("./PartnerRequestStatus.js");
22
+ /**
23
+ * Check if a given object implements the PartnerRequestUpdate interface.
24
+ */
25
+ function instanceOfPartnerRequestUpdate(value) {
26
+ if (!('status' in value) || value['status'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function PartnerRequestUpdateFromJSON(json) {
31
+ return PartnerRequestUpdateFromJSONTyped(json, false);
32
+ }
33
+ function PartnerRequestUpdateFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'status': (0, PartnerRequestStatus_js_1.PartnerRequestStatusFromJSON)(json['status']),
39
+ 'reason': json['reason'] == null ? undefined : json['reason'],
40
+ };
41
+ }
42
+ function PartnerRequestUpdateToJSON(json) {
43
+ return PartnerRequestUpdateToJSONTyped(json, false);
44
+ }
45
+ function PartnerRequestUpdateToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'status': (0, PartnerRequestStatus_js_1.PartnerRequestStatusToJSON)(value['status']),
51
+ 'reason': value['reason'],
52
+ };
53
+ }