@openshift-migration-advisor/planner-sdk 0.10.0-fa4e0ff47672 → 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.
- package/.openapi-generator/FILES +12 -0
- package/README.md +16 -2
- package/dist/apis/AccountApi.js +9 -9
- package/dist/apis/AssessmentApi.d.ts +5 -13
- package/dist/apis/AssessmentApi.js +8 -8
- package/dist/apis/ImageApi.js +2 -2
- package/dist/apis/JobApi.js +2 -2
- package/dist/apis/PartnerApi.d.ts +323 -0
- package/dist/apis/PartnerApi.js +379 -0
- package/dist/apis/SourceApi.js +4 -4
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AccountApi.js +9 -9
- package/dist/esm/apis/AssessmentApi.d.ts +5 -13
- package/dist/esm/apis/AssessmentApi.js +9 -9
- package/dist/esm/apis/ImageApi.js +2 -2
- package/dist/esm/apis/JobApi.js +2 -2
- package/dist/esm/apis/PartnerApi.d.ts +323 -0
- package/dist/esm/apis/PartnerApi.js +375 -0
- package/dist/esm/apis/SourceApi.js +4 -4
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/MigrationEstimationRequest.d.ts +1 -1
- package/dist/esm/models/MigrationEstimationResponse.d.ts +43 -0
- package/dist/esm/models/MigrationEstimationResponse.js +50 -0
- package/dist/esm/models/PartnerRequest.d.ts +99 -0
- package/dist/esm/models/PartnerRequest.js +82 -0
- package/dist/esm/models/PartnerRequestCreate.d.ts +56 -0
- package/dist/esm/models/PartnerRequestCreate.js +59 -0
- package/dist/esm/models/PartnerRequestStatus.d.ts +27 -0
- package/dist/esm/models/PartnerRequestStatus.js +45 -0
- package/dist/esm/models/PartnerRequestUpdate.d.ts +39 -0
- package/dist/esm/models/PartnerRequestUpdate.js +46 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/MigrationEstimationRequest.d.ts +1 -1
- package/dist/models/MigrationEstimationResponse.d.ts +43 -0
- package/dist/models/MigrationEstimationResponse.js +57 -0
- package/dist/models/PartnerRequest.d.ts +99 -0
- package/dist/models/PartnerRequest.js +89 -0
- package/dist/models/PartnerRequestCreate.d.ts +56 -0
- package/dist/models/PartnerRequestCreate.js +66 -0
- package/dist/models/PartnerRequestStatus.d.ts +27 -0
- package/dist/models/PartnerRequestStatus.js +53 -0
- package/dist/models/PartnerRequestUpdate.d.ts +39 -0
- package/dist/models/PartnerRequestUpdate.js +53 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/docs/AssessmentApi.md +2 -2
- package/docs/MigrationEstimationResponse.md +37 -0
- package/docs/PartnerApi.md +636 -0
- package/docs/PartnerRequest.md +56 -0
- package/docs/PartnerRequestCreate.md +42 -0
- package/docs/PartnerRequestStatus.md +32 -0
- package/docs/PartnerRequestUpdate.md +36 -0
- package/package.json +1 -1
- package/src/apis/AccountApi.ts +9 -9
- package/src/apis/AssessmentApi.ts +15 -15
- package/src/apis/ImageApi.ts +2 -2
- package/src/apis/JobApi.ts +2 -2
- package/src/apis/PartnerApi.ts +668 -0
- package/src/apis/SourceApi.ts +4 -4
- package/src/apis/index.ts +1 -0
- package/src/models/MigrationEstimationRequest.ts +1 -1
- package/src/models/MigrationEstimationResponse.ts +91 -0
- package/src/models/PartnerRequest.ts +172 -0
- package/src/models/PartnerRequestCreate.ts +102 -0
- package/src/models/PartnerRequestStatus.ts +55 -0
- package/src/models/PartnerRequestUpdate.ts +84 -0
- package/src/models/index.ts +5 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# PartnerRequestCreate
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`contactName` | string
|
|
11
|
+
`contactPhone` | string
|
|
12
|
+
`email` | string
|
|
13
|
+
`location` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { PartnerRequestCreate } from '@openshift-migration-advisor/planner-sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"name": null,
|
|
23
|
+
"contactName": null,
|
|
24
|
+
"contactPhone": null,
|
|
25
|
+
"email": null,
|
|
26
|
+
"location": null,
|
|
27
|
+
} satisfies PartnerRequestCreate
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as PartnerRequestCreate
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# PartnerRequestStatus
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { PartnerRequestStatus } from '@openshift-migration-advisor/planner-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies PartnerRequestStatus
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as PartnerRequestStatus
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PartnerRequestUpdate
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`status` | [PartnerRequestStatus](PartnerRequestStatus.md)
|
|
10
|
+
`reason` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PartnerRequestUpdate } from '@openshift-migration-advisor/planner-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"status": null,
|
|
20
|
+
"reason": null,
|
|
21
|
+
} satisfies PartnerRequestUpdate
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PartnerRequestUpdate
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/package.json
CHANGED
package/src/apis/AccountApi.ts
CHANGED
|
@@ -402,7 +402,7 @@ export class AccountApi extends runtime.BaseAPI implements AccountApiInterface {
|
|
|
402
402
|
|
|
403
403
|
|
|
404
404
|
let urlPath = `/api/v1/groups/{id}/members`;
|
|
405
|
-
urlPath = urlPath.replace(
|
|
405
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
406
406
|
|
|
407
407
|
return {
|
|
408
408
|
path: urlPath,
|
|
@@ -448,7 +448,7 @@ export class AccountApi extends runtime.BaseAPI implements AccountApiInterface {
|
|
|
448
448
|
|
|
449
449
|
|
|
450
450
|
let urlPath = `/api/v1/groups/{id}`;
|
|
451
|
-
urlPath = urlPath.replace(
|
|
451
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
452
452
|
|
|
453
453
|
return {
|
|
454
454
|
path: urlPath,
|
|
@@ -493,7 +493,7 @@ export class AccountApi extends runtime.BaseAPI implements AccountApiInterface {
|
|
|
493
493
|
|
|
494
494
|
|
|
495
495
|
let urlPath = `/api/v1/groups/{id}`;
|
|
496
|
-
urlPath = urlPath.replace(
|
|
496
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
497
497
|
|
|
498
498
|
return {
|
|
499
499
|
path: urlPath,
|
|
@@ -575,7 +575,7 @@ export class AccountApi extends runtime.BaseAPI implements AccountApiInterface {
|
|
|
575
575
|
|
|
576
576
|
|
|
577
577
|
let urlPath = `/api/v1/groups/{id}/members`;
|
|
578
|
-
urlPath = urlPath.replace(
|
|
578
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
579
579
|
|
|
580
580
|
return {
|
|
581
581
|
path: urlPath,
|
|
@@ -676,8 +676,8 @@ export class AccountApi extends runtime.BaseAPI implements AccountApiInterface {
|
|
|
676
676
|
|
|
677
677
|
|
|
678
678
|
let urlPath = `/api/v1/groups/{id}/members/{username}`;
|
|
679
|
-
urlPath = urlPath.replace(
|
|
680
|
-
urlPath = urlPath.replace(
|
|
679
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
680
|
+
urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username'])));
|
|
681
681
|
|
|
682
682
|
return {
|
|
683
683
|
path: urlPath,
|
|
@@ -730,7 +730,7 @@ export class AccountApi extends runtime.BaseAPI implements AccountApiInterface {
|
|
|
730
730
|
|
|
731
731
|
|
|
732
732
|
let urlPath = `/api/v1/groups/{id}`;
|
|
733
|
-
urlPath = urlPath.replace(
|
|
733
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
734
734
|
|
|
735
735
|
return {
|
|
736
736
|
path: urlPath,
|
|
@@ -792,8 +792,8 @@ export class AccountApi extends runtime.BaseAPI implements AccountApiInterface {
|
|
|
792
792
|
|
|
793
793
|
|
|
794
794
|
let urlPath = `/api/v1/groups/{id}/members/{username}`;
|
|
795
|
-
urlPath = urlPath.replace(
|
|
796
|
-
urlPath = urlPath.replace(
|
|
795
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
796
|
+
urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username'])));
|
|
797
797
|
|
|
798
798
|
return {
|
|
799
799
|
path: urlPath,
|
|
@@ -24,7 +24,7 @@ import type {
|
|
|
24
24
|
MigrationComplexityResponse,
|
|
25
25
|
MigrationEstimationByComplexityResponse,
|
|
26
26
|
MigrationEstimationRequest,
|
|
27
|
-
|
|
27
|
+
MigrationEstimationResponse,
|
|
28
28
|
} from '../models/index.js';
|
|
29
29
|
import {
|
|
30
30
|
AssessmentFromJSON,
|
|
@@ -45,8 +45,8 @@ import {
|
|
|
45
45
|
MigrationEstimationByComplexityResponseToJSON,
|
|
46
46
|
MigrationEstimationRequestFromJSON,
|
|
47
47
|
MigrationEstimationRequestToJSON,
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
MigrationEstimationResponseFromJSON,
|
|
49
|
+
MigrationEstimationResponseToJSON,
|
|
50
50
|
} from '../models/index.js';
|
|
51
51
|
|
|
52
52
|
export interface CalculateAssessmentClusterRequirementsRequest {
|
|
@@ -162,12 +162,12 @@ export interface AssessmentApiInterface {
|
|
|
162
162
|
* @throws {RequiredError}
|
|
163
163
|
* @memberof AssessmentApiInterface
|
|
164
164
|
*/
|
|
165
|
-
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
165
|
+
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* Calculate migration time estimation for an assessment
|
|
169
169
|
*/
|
|
170
|
-
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
170
|
+
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* Creates request options for calculateMigrationEstimationByComplexity without sending the request
|
|
@@ -338,7 +338,7 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
338
338
|
|
|
339
339
|
|
|
340
340
|
let urlPath = `/api/v1/assessments/{id}/cluster-requirements`;
|
|
341
|
-
urlPath = urlPath.replace(
|
|
341
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
342
342
|
|
|
343
343
|
return {
|
|
344
344
|
path: urlPath,
|
|
@@ -393,7 +393,7 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
393
393
|
|
|
394
394
|
|
|
395
395
|
let urlPath = `/api/v1/assessments/{id}/complexity-estimation`;
|
|
396
|
-
urlPath = urlPath.replace(
|
|
396
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
397
397
|
|
|
398
398
|
return {
|
|
399
399
|
path: urlPath,
|
|
@@ -448,7 +448,7 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
448
448
|
|
|
449
449
|
|
|
450
450
|
let urlPath = `/api/v1/assessments/{id}/migration-estimation`;
|
|
451
|
-
urlPath = urlPath.replace(
|
|
451
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
452
452
|
|
|
453
453
|
return {
|
|
454
454
|
path: urlPath,
|
|
@@ -462,17 +462,17 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
462
462
|
/**
|
|
463
463
|
* Calculate migration time estimation for an assessment
|
|
464
464
|
*/
|
|
465
|
-
async calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
465
|
+
async calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>> {
|
|
466
466
|
const requestOptions = await this.calculateMigrationEstimationRequestOpts(requestParameters);
|
|
467
467
|
const response = await this.request(requestOptions, initOverrides);
|
|
468
468
|
|
|
469
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
469
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MigrationEstimationResponseFromJSON(jsonValue));
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
/**
|
|
473
473
|
* Calculate migration time estimation for an assessment
|
|
474
474
|
*/
|
|
475
|
-
async calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
475
|
+
async calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse> {
|
|
476
476
|
const response = await this.calculateMigrationEstimationRaw(requestParameters, initOverrides);
|
|
477
477
|
return await response.value();
|
|
478
478
|
}
|
|
@@ -503,7 +503,7 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
503
503
|
|
|
504
504
|
|
|
505
505
|
let urlPath = `/api/v1/assessments/{id}/migration-estimation/by-complexity`;
|
|
506
|
-
urlPath = urlPath.replace(
|
|
506
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
507
507
|
|
|
508
508
|
return {
|
|
509
509
|
path: urlPath,
|
|
@@ -596,7 +596,7 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
596
596
|
|
|
597
597
|
|
|
598
598
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
599
|
-
urlPath = urlPath.replace(
|
|
599
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
600
600
|
|
|
601
601
|
return {
|
|
602
602
|
path: urlPath,
|
|
@@ -641,7 +641,7 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
641
641
|
|
|
642
642
|
|
|
643
643
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
644
|
-
urlPath = urlPath.replace(
|
|
644
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
645
645
|
|
|
646
646
|
return {
|
|
647
647
|
path: urlPath,
|
|
@@ -736,7 +736,7 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
736
736
|
|
|
737
737
|
|
|
738
738
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
739
|
-
urlPath = urlPath.replace(
|
|
739
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
740
740
|
|
|
741
741
|
return {
|
|
742
742
|
path: urlPath,
|
package/src/apis/ImageApi.ts
CHANGED
|
@@ -105,7 +105,7 @@ export class ImageApi extends runtime.BaseAPI implements ImageApiInterface {
|
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
let urlPath = `/api/v1/sources/{id}/image-url`;
|
|
108
|
-
urlPath = urlPath.replace(
|
|
108
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
109
109
|
|
|
110
110
|
return {
|
|
111
111
|
path: urlPath,
|
|
@@ -150,7 +150,7 @@ export class ImageApi extends runtime.BaseAPI implements ImageApiInterface {
|
|
|
150
150
|
|
|
151
151
|
|
|
152
152
|
let urlPath = `/api/v1/sources/{id}/image`;
|
|
153
|
-
urlPath = urlPath.replace(
|
|
153
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
154
154
|
|
|
155
155
|
return {
|
|
156
156
|
path: urlPath,
|
package/src/apis/JobApi.ts
CHANGED
|
@@ -134,7 +134,7 @@ export class JobApi extends runtime.BaseAPI implements JobApiInterface {
|
|
|
134
134
|
|
|
135
135
|
|
|
136
136
|
let urlPath = `/api/v1/assessments/jobs/{id}`;
|
|
137
|
-
urlPath = urlPath.replace(
|
|
137
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
138
138
|
|
|
139
139
|
return {
|
|
140
140
|
path: urlPath,
|
|
@@ -255,7 +255,7 @@ export class JobApi extends runtime.BaseAPI implements JobApiInterface {
|
|
|
255
255
|
|
|
256
256
|
|
|
257
257
|
let urlPath = `/api/v1/assessments/jobs/{id}`;
|
|
258
|
-
urlPath = urlPath.replace(
|
|
258
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
259
259
|
|
|
260
260
|
return {
|
|
261
261
|
path: urlPath,
|