@openshift-migration-advisor/planner-sdk 0.11.0-72642107444 → 0.11.0-8099fffba9fe

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 (44) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +6 -2
  3. package/dist/apis/AssessmentApi.d.ts +69 -1
  4. package/dist/apis/AssessmentApi.js +78 -0
  5. package/dist/apis/PartnerApi.d.ts +9 -9
  6. package/dist/apis/PartnerApi.js +3 -3
  7. package/dist/esm/apis/AssessmentApi.d.ts +69 -1
  8. package/dist/esm/apis/AssessmentApi.js +79 -1
  9. package/dist/esm/apis/PartnerApi.d.ts +9 -9
  10. package/dist/esm/apis/PartnerApi.js +4 -4
  11. package/dist/esm/models/Customer.d.ts +62 -0
  12. package/dist/esm/models/Customer.js +63 -0
  13. package/dist/esm/models/PartnerRequest.d.ts +9 -2
  14. package/dist/esm/models/PartnerRequest.js +8 -3
  15. package/dist/esm/models/PartnerSummary.d.ts +50 -0
  16. package/dist/esm/models/PartnerSummary.js +55 -0
  17. package/dist/esm/models/VMs.d.ts +9 -0
  18. package/dist/esm/models/VMs.js +2 -0
  19. package/dist/esm/models/index.d.ts +2 -0
  20. package/dist/esm/models/index.js +2 -0
  21. package/dist/models/Customer.d.ts +62 -0
  22. package/dist/models/Customer.js +70 -0
  23. package/dist/models/PartnerRequest.d.ts +9 -2
  24. package/dist/models/PartnerRequest.js +8 -3
  25. package/dist/models/PartnerSummary.d.ts +50 -0
  26. package/dist/models/PartnerSummary.js +62 -0
  27. package/dist/models/VMs.d.ts +9 -0
  28. package/dist/models/VMs.js +2 -0
  29. package/dist/models/index.d.ts +2 -0
  30. package/dist/models/index.js +2 -0
  31. package/docs/AssessmentApi.md +146 -0
  32. package/docs/Customer.md +44 -0
  33. package/docs/PartnerApi.md +3 -3
  34. package/docs/PartnerRequest.md +4 -2
  35. package/docs/PartnerSummary.md +40 -0
  36. package/docs/VMs.md +2 -0
  37. package/package.json +1 -1
  38. package/src/apis/AssessmentApi.ts +145 -0
  39. package/src/apis/PartnerApi.ts +12 -9
  40. package/src/models/Customer.ts +111 -0
  41. package/src/models/PartnerRequest.ts +21 -5
  42. package/src/models/PartnerSummary.ts +93 -0
  43. package/src/models/VMs.ts +9 -0
  44. package/src/models/index.ts +2 -0
@@ -16,6 +16,7 @@ docs/ClusterSizing.md
16
16
  docs/ComplexityDiskScoreEntry.md
17
17
  docs/ComplexityOSNameEntry.md
18
18
  docs/ComplexityOSScoreEntry.md
19
+ docs/Customer.md
19
20
  docs/Datastore.md
20
21
  docs/DiskSizeTierSummary.md
21
22
  docs/DiskTypeSummary.md
@@ -58,6 +59,7 @@ docs/PartnerRequest.md
58
59
  docs/PartnerRequestCreate.md
59
60
  docs/PartnerRequestStatus.md
60
61
  docs/PartnerRequestUpdate.md
62
+ docs/PartnerSummary.md
61
63
  docs/PresignedUrl.md
62
64
  docs/SchemaEstimationResult.md
63
65
  docs/SizingOverCommitRatio.md
@@ -98,6 +100,7 @@ src/models/ClusterSizing.ts
98
100
  src/models/ComplexityDiskScoreEntry.ts
99
101
  src/models/ComplexityOSNameEntry.ts
100
102
  src/models/ComplexityOSScoreEntry.ts
103
+ src/models/Customer.ts
101
104
  src/models/Datastore.ts
102
105
  src/models/DiskSizeTierSummary.ts
103
106
  src/models/DiskTypeSummary.ts
@@ -135,6 +138,7 @@ src/models/PartnerRequest.ts
135
138
  src/models/PartnerRequestCreate.ts
136
139
  src/models/PartnerRequestStatus.ts
137
140
  src/models/PartnerRequestUpdate.ts
141
+ src/models/PartnerSummary.ts
138
142
  src/models/PresignedUrl.ts
139
143
  src/models/SchemaEstimationResult.ts
140
144
  src/models/SizingOverCommitRatio.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/planner-sdk@0.11.0-072642107444
1
+ # @openshift-migration-advisor/planner-sdk@0.11.0-8099fffba9fe
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -69,6 +69,8 @@ All URIs are relative to *https://raw.githubusercontent.com*
69
69
  *AssessmentApi* | [**getAssessment**](docs/AssessmentApi.md#getassessment) | **GET** /api/v1/assessments/{id} |
70
70
  *AssessmentApi* | [**getAssessmentClusterRequirementsStoredInput**](docs/AssessmentApi.md#getassessmentclusterrequirementsstoredinput) | **GET** /api/v1/assessments/{id}/cluster-requirements/stored-input |
71
71
  *AssessmentApi* | [**listAssessments**](docs/AssessmentApi.md#listassessments) | **GET** /api/v1/assessments |
72
+ *AssessmentApi* | [**shareAssessment**](docs/AssessmentApi.md#shareassessment) | **POST** /api/v1/assessments/{id}/share |
73
+ *AssessmentApi* | [**unshareAssessment**](docs/AssessmentApi.md#unshareassessment) | **DELETE** /api/v1/assessments/{id}/share |
72
74
  *AssessmentApi* | [**updateAssessment**](docs/AssessmentApi.md#updateassessment) | **PUT** /api/v1/assessments/{id} |
73
75
  *HealthApi* | [**health**](docs/HealthApi.md#health) | **GET** /health |
74
76
  *ImageApi* | [**getSourceDownloadURL**](docs/ImageApi.md#getsourcedownloadurl) | **GET** /api/v1/sources/{id}/image-url |
@@ -109,6 +111,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
109
111
  - [ComplexityDiskScoreEntry](docs/ComplexityDiskScoreEntry.md)
110
112
  - [ComplexityOSNameEntry](docs/ComplexityOSNameEntry.md)
111
113
  - [ComplexityOSScoreEntry](docs/ComplexityOSScoreEntry.md)
114
+ - [Customer](docs/Customer.md)
112
115
  - [Datastore](docs/Datastore.md)
113
116
  - [DiskSizeTierSummary](docs/DiskSizeTierSummary.md)
114
117
  - [DiskTypeSummary](docs/DiskTypeSummary.md)
@@ -146,6 +149,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
146
149
  - [PartnerRequestCreate](docs/PartnerRequestCreate.md)
147
150
  - [PartnerRequestStatus](docs/PartnerRequestStatus.md)
148
151
  - [PartnerRequestUpdate](docs/PartnerRequestUpdate.md)
152
+ - [PartnerSummary](docs/PartnerSummary.md)
149
153
  - [PresignedUrl](docs/PresignedUrl.md)
150
154
  - [SchemaEstimationResult](docs/SchemaEstimationResult.md)
151
155
  - [SizingOverCommitRatio](docs/SizingOverCommitRatio.md)
@@ -175,7 +179,7 @@ and is automatically generated by the
175
179
  [OpenAPI Generator](https://openapi-generator.tech) project:
176
180
 
177
181
  - API version: `v1alpha1`
178
- - Package version: `0.11.0-072642107444`
182
+ - Package version: `0.11.0-8099fffba9fe`
179
183
  - Generator version: `7.22.0-SNAPSHOT`
180
184
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
181
185
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, ClusterRequirementsStoredInput, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationByComplexityResponse, MigrationEstimationRequest, MigrationEstimationResponse } from '../models/index.js';
13
+ import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, ClusterRequirementsStoredInput, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationByComplexityResponse, MigrationEstimationRequest, MigrationEstimationResponse, Status } from '../models/index.js';
14
14
  export interface CalculateAssessmentClusterRequirementsRequest {
15
15
  id: string;
16
16
  clusterRequirementsRequest: ClusterRequirementsRequest;
@@ -43,6 +43,12 @@ export interface GetAssessmentClusterRequirementsStoredInputRequest {
43
43
  export interface ListAssessmentsRequest {
44
44
  sourceId?: string;
45
45
  }
46
+ export interface ShareAssessmentRequest {
47
+ id: string;
48
+ }
49
+ export interface UnshareAssessmentRequest {
50
+ id: string;
51
+ }
46
52
  export interface UpdateAssessmentRequest {
47
53
  id: string;
48
54
  assessmentUpdate: AssessmentUpdate;
@@ -235,6 +241,44 @@ export interface AssessmentApiInterface {
235
241
  * List assessments
236
242
  */
237
243
  listAssessments(requestParameters: ListAssessmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
244
+ /**
245
+ * Creates request options for shareAssessment without sending the request
246
+ * @param {string} id ID of the assessment
247
+ * @throws {RequiredError}
248
+ * @memberof AssessmentApiInterface
249
+ */
250
+ shareAssessmentRequestOpts(requestParameters: ShareAssessmentRequest): Promise<runtime.RequestOpts>;
251
+ /**
252
+ * Share an assessment with the user\'s partner organization
253
+ * @param {string} id ID of the assessment
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ * @memberof AssessmentApiInterface
257
+ */
258
+ shareAssessmentRaw(requestParameters: ShareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
259
+ /**
260
+ * Share an assessment with the user\'s partner organization
261
+ */
262
+ shareAssessment(requestParameters: ShareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
263
+ /**
264
+ * Creates request options for unshareAssessment without sending the request
265
+ * @param {string} id ID of the assessment
266
+ * @throws {RequiredError}
267
+ * @memberof AssessmentApiInterface
268
+ */
269
+ unshareAssessmentRequestOpts(requestParameters: UnshareAssessmentRequest): Promise<runtime.RequestOpts>;
270
+ /**
271
+ * Unshare an assessment from the user\'s partner organization
272
+ * @param {string} id ID of the assessment
273
+ * @param {*} [options] Override http request option.
274
+ * @throws {RequiredError}
275
+ * @memberof AssessmentApiInterface
276
+ */
277
+ unshareAssessmentRaw(requestParameters: UnshareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
278
+ /**
279
+ * Unshare an assessment from the user\'s partner organization
280
+ */
281
+ unshareAssessment(requestParameters: UnshareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
238
282
  /**
239
283
  * Creates request options for updateAssessment without sending the request
240
284
  * @param {string} id ID of the assessment
@@ -369,6 +413,30 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
369
413
  * List assessments
370
414
  */
371
415
  listAssessments(requestParameters?: ListAssessmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
416
+ /**
417
+ * Creates request options for shareAssessment without sending the request
418
+ */
419
+ shareAssessmentRequestOpts(requestParameters: ShareAssessmentRequest): Promise<runtime.RequestOpts>;
420
+ /**
421
+ * Share an assessment with the user\'s partner organization
422
+ */
423
+ shareAssessmentRaw(requestParameters: ShareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
424
+ /**
425
+ * Share an assessment with the user\'s partner organization
426
+ */
427
+ shareAssessment(requestParameters: ShareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
428
+ /**
429
+ * Creates request options for unshareAssessment without sending the request
430
+ */
431
+ unshareAssessmentRequestOpts(requestParameters: UnshareAssessmentRequest): Promise<runtime.RequestOpts>;
432
+ /**
433
+ * Unshare an assessment from the user\'s partner organization
434
+ */
435
+ unshareAssessmentRaw(requestParameters: UnshareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
436
+ /**
437
+ * Unshare an assessment from the user\'s partner organization
438
+ */
439
+ unshareAssessment(requestParameters: UnshareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
372
440
  /**
373
441
  * Creates request options for updateAssessment without sending the request
374
442
  */
@@ -406,6 +406,84 @@ class AssessmentApi extends runtime.BaseAPI {
406
406
  return yield response.value();
407
407
  });
408
408
  }
409
+ /**
410
+ * Creates request options for shareAssessment without sending the request
411
+ */
412
+ shareAssessmentRequestOpts(requestParameters) {
413
+ return __awaiter(this, void 0, void 0, function* () {
414
+ if (requestParameters['id'] == null) {
415
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling shareAssessment().');
416
+ }
417
+ const queryParameters = {};
418
+ const headerParameters = {};
419
+ let urlPath = `/api/v1/assessments/{id}/share`;
420
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
421
+ return {
422
+ path: urlPath,
423
+ method: 'POST',
424
+ headers: headerParameters,
425
+ query: queryParameters,
426
+ };
427
+ });
428
+ }
429
+ /**
430
+ * Share an assessment with the user\'s partner organization
431
+ */
432
+ shareAssessmentRaw(requestParameters, initOverrides) {
433
+ return __awaiter(this, void 0, void 0, function* () {
434
+ const requestOptions = yield this.shareAssessmentRequestOpts(requestParameters);
435
+ const response = yield this.request(requestOptions, initOverrides);
436
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.StatusFromJSON)(jsonValue));
437
+ });
438
+ }
439
+ /**
440
+ * Share an assessment with the user\'s partner organization
441
+ */
442
+ shareAssessment(requestParameters, initOverrides) {
443
+ return __awaiter(this, void 0, void 0, function* () {
444
+ const response = yield this.shareAssessmentRaw(requestParameters, initOverrides);
445
+ return yield response.value();
446
+ });
447
+ }
448
+ /**
449
+ * Creates request options for unshareAssessment without sending the request
450
+ */
451
+ unshareAssessmentRequestOpts(requestParameters) {
452
+ return __awaiter(this, void 0, void 0, function* () {
453
+ if (requestParameters['id'] == null) {
454
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling unshareAssessment().');
455
+ }
456
+ const queryParameters = {};
457
+ const headerParameters = {};
458
+ let urlPath = `/api/v1/assessments/{id}/share`;
459
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
460
+ return {
461
+ path: urlPath,
462
+ method: 'DELETE',
463
+ headers: headerParameters,
464
+ query: queryParameters,
465
+ };
466
+ });
467
+ }
468
+ /**
469
+ * Unshare an assessment from the user\'s partner organization
470
+ */
471
+ unshareAssessmentRaw(requestParameters, initOverrides) {
472
+ return __awaiter(this, void 0, void 0, function* () {
473
+ const requestOptions = yield this.unshareAssessmentRequestOpts(requestParameters);
474
+ const response = yield this.request(requestOptions, initOverrides);
475
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.StatusFromJSON)(jsonValue));
476
+ });
477
+ }
478
+ /**
479
+ * Unshare an assessment from the user\'s partner organization
480
+ */
481
+ unshareAssessment(requestParameters, initOverrides) {
482
+ return __awaiter(this, void 0, void 0, function* () {
483
+ const response = yield this.unshareAssessmentRaw(requestParameters, initOverrides);
484
+ return yield response.value();
485
+ });
486
+ }
409
487
  /**
410
488
  * Creates request options for updateAssessment without sending the request
411
489
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { Group, PartnerRequest, PartnerRequestCreate, PartnerRequestUpdate } from '../models/index.js';
13
+ import type { Customer, Group, PartnerRequest, PartnerRequestCreate, PartnerRequestUpdate } from '../models/index.js';
14
14
  export interface CancelPartnerRequestRequest {
15
15
  id: string;
16
16
  }
@@ -123,16 +123,16 @@ export interface PartnerApiInterface {
123
123
  */
124
124
  listCustomersRequestOpts(): Promise<runtime.RequestOpts>;
125
125
  /**
126
- * List customer requests for my partner organization
126
+ * List customers for my partner organization
127
127
  * @param {*} [options] Override http request option.
128
128
  * @throws {RequiredError}
129
129
  * @memberof PartnerApiInterface
130
130
  */
131
- listCustomersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PartnerRequest>>>;
131
+ listCustomersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Customer>>>;
132
132
  /**
133
- * List customer requests for my partner organization
133
+ * List customers for my partner organization
134
134
  */
135
- listCustomers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PartnerRequest>>;
135
+ listCustomers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Customer>>;
136
136
  /**
137
137
  * Creates request options for listPartnerRequests without sending the request
138
138
  * @throws {RequiredError}
@@ -265,13 +265,13 @@ export declare class PartnerApi extends runtime.BaseAPI implements PartnerApiInt
265
265
  */
266
266
  listCustomersRequestOpts(): Promise<runtime.RequestOpts>;
267
267
  /**
268
- * List customer requests for my partner organization
268
+ * List customers for my partner organization
269
269
  */
270
- listCustomersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PartnerRequest>>>;
270
+ listCustomersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Customer>>>;
271
271
  /**
272
- * List customer requests for my partner organization
272
+ * List customers for my partner organization
273
273
  */
274
- listCustomers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PartnerRequest>>;
274
+ listCustomers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Customer>>;
275
275
  /**
276
276
  * Creates request options for listPartnerRequests without sending the request
277
277
  */
@@ -205,17 +205,17 @@ class PartnerApi extends runtime.BaseAPI {
205
205
  });
206
206
  }
207
207
  /**
208
- * List customer requests for my partner organization
208
+ * List customers for my partner organization
209
209
  */
210
210
  listCustomersRaw(initOverrides) {
211
211
  return __awaiter(this, void 0, void 0, function* () {
212
212
  const requestOptions = yield this.listCustomersRequestOpts();
213
213
  const response = yield this.request(requestOptions, initOverrides);
214
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_js_1.PartnerRequestFromJSON));
214
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_js_1.CustomerFromJSON));
215
215
  });
216
216
  }
217
217
  /**
218
- * List customer requests for my partner organization
218
+ * List customers for my partner organization
219
219
  */
220
220
  listCustomers(initOverrides) {
221
221
  return __awaiter(this, void 0, void 0, function* () {
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, ClusterRequirementsStoredInput, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationByComplexityResponse, MigrationEstimationRequest, MigrationEstimationResponse } from '../models/index.js';
13
+ import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, ClusterRequirementsStoredInput, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationByComplexityResponse, MigrationEstimationRequest, MigrationEstimationResponse, Status } from '../models/index.js';
14
14
  export interface CalculateAssessmentClusterRequirementsRequest {
15
15
  id: string;
16
16
  clusterRequirementsRequest: ClusterRequirementsRequest;
@@ -43,6 +43,12 @@ export interface GetAssessmentClusterRequirementsStoredInputRequest {
43
43
  export interface ListAssessmentsRequest {
44
44
  sourceId?: string;
45
45
  }
46
+ export interface ShareAssessmentRequest {
47
+ id: string;
48
+ }
49
+ export interface UnshareAssessmentRequest {
50
+ id: string;
51
+ }
46
52
  export interface UpdateAssessmentRequest {
47
53
  id: string;
48
54
  assessmentUpdate: AssessmentUpdate;
@@ -235,6 +241,44 @@ export interface AssessmentApiInterface {
235
241
  * List assessments
236
242
  */
237
243
  listAssessments(requestParameters: ListAssessmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
244
+ /**
245
+ * Creates request options for shareAssessment without sending the request
246
+ * @param {string} id ID of the assessment
247
+ * @throws {RequiredError}
248
+ * @memberof AssessmentApiInterface
249
+ */
250
+ shareAssessmentRequestOpts(requestParameters: ShareAssessmentRequest): Promise<runtime.RequestOpts>;
251
+ /**
252
+ * Share an assessment with the user\'s partner organization
253
+ * @param {string} id ID of the assessment
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ * @memberof AssessmentApiInterface
257
+ */
258
+ shareAssessmentRaw(requestParameters: ShareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
259
+ /**
260
+ * Share an assessment with the user\'s partner organization
261
+ */
262
+ shareAssessment(requestParameters: ShareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
263
+ /**
264
+ * Creates request options for unshareAssessment without sending the request
265
+ * @param {string} id ID of the assessment
266
+ * @throws {RequiredError}
267
+ * @memberof AssessmentApiInterface
268
+ */
269
+ unshareAssessmentRequestOpts(requestParameters: UnshareAssessmentRequest): Promise<runtime.RequestOpts>;
270
+ /**
271
+ * Unshare an assessment from the user\'s partner organization
272
+ * @param {string} id ID of the assessment
273
+ * @param {*} [options] Override http request option.
274
+ * @throws {RequiredError}
275
+ * @memberof AssessmentApiInterface
276
+ */
277
+ unshareAssessmentRaw(requestParameters: UnshareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
278
+ /**
279
+ * Unshare an assessment from the user\'s partner organization
280
+ */
281
+ unshareAssessment(requestParameters: UnshareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
238
282
  /**
239
283
  * Creates request options for updateAssessment without sending the request
240
284
  * @param {string} id ID of the assessment
@@ -369,6 +413,30 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
369
413
  * List assessments
370
414
  */
371
415
  listAssessments(requestParameters?: ListAssessmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Assessment>>;
416
+ /**
417
+ * Creates request options for shareAssessment without sending the request
418
+ */
419
+ shareAssessmentRequestOpts(requestParameters: ShareAssessmentRequest): Promise<runtime.RequestOpts>;
420
+ /**
421
+ * Share an assessment with the user\'s partner organization
422
+ */
423
+ shareAssessmentRaw(requestParameters: ShareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
424
+ /**
425
+ * Share an assessment with the user\'s partner organization
426
+ */
427
+ shareAssessment(requestParameters: ShareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
428
+ /**
429
+ * Creates request options for unshareAssessment without sending the request
430
+ */
431
+ unshareAssessmentRequestOpts(requestParameters: UnshareAssessmentRequest): Promise<runtime.RequestOpts>;
432
+ /**
433
+ * Unshare an assessment from the user\'s partner organization
434
+ */
435
+ unshareAssessmentRaw(requestParameters: UnshareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>>;
436
+ /**
437
+ * Unshare an assessment from the user\'s partner organization
438
+ */
439
+ unshareAssessment(requestParameters: UnshareAssessmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status>;
372
440
  /**
373
441
  * Creates request options for updateAssessment without sending the request
374
442
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { AssessmentFromJSON, AssessmentFormToJSON, AssessmentUpdateToJSON, ClusterRequirementsRequestToJSON, ClusterRequirementsResponseFromJSON, ClusterRequirementsStoredInputFromJSON, MigrationComplexityRequestToJSON, MigrationComplexityResponseFromJSON, MigrationEstimationByComplexityResponseFromJSON, MigrationEstimationRequestToJSON, MigrationEstimationResponseFromJSON, } from '../models/index.js';
24
+ import { AssessmentFromJSON, AssessmentFormToJSON, AssessmentUpdateToJSON, ClusterRequirementsRequestToJSON, ClusterRequirementsResponseFromJSON, ClusterRequirementsStoredInputFromJSON, MigrationComplexityRequestToJSON, MigrationComplexityResponseFromJSON, MigrationEstimationByComplexityResponseFromJSON, MigrationEstimationRequestToJSON, MigrationEstimationResponseFromJSON, StatusFromJSON, } from '../models/index.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -403,6 +403,84 @@ export class AssessmentApi extends runtime.BaseAPI {
403
403
  return yield response.value();
404
404
  });
405
405
  }
406
+ /**
407
+ * Creates request options for shareAssessment without sending the request
408
+ */
409
+ shareAssessmentRequestOpts(requestParameters) {
410
+ return __awaiter(this, void 0, void 0, function* () {
411
+ if (requestParameters['id'] == null) {
412
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling shareAssessment().');
413
+ }
414
+ const queryParameters = {};
415
+ const headerParameters = {};
416
+ let urlPath = `/api/v1/assessments/{id}/share`;
417
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
418
+ return {
419
+ path: urlPath,
420
+ method: 'POST',
421
+ headers: headerParameters,
422
+ query: queryParameters,
423
+ };
424
+ });
425
+ }
426
+ /**
427
+ * Share an assessment with the user\'s partner organization
428
+ */
429
+ shareAssessmentRaw(requestParameters, initOverrides) {
430
+ return __awaiter(this, void 0, void 0, function* () {
431
+ const requestOptions = yield this.shareAssessmentRequestOpts(requestParameters);
432
+ const response = yield this.request(requestOptions, initOverrides);
433
+ return new runtime.JSONApiResponse(response, (jsonValue) => StatusFromJSON(jsonValue));
434
+ });
435
+ }
436
+ /**
437
+ * Share an assessment with the user\'s partner organization
438
+ */
439
+ shareAssessment(requestParameters, initOverrides) {
440
+ return __awaiter(this, void 0, void 0, function* () {
441
+ const response = yield this.shareAssessmentRaw(requestParameters, initOverrides);
442
+ return yield response.value();
443
+ });
444
+ }
445
+ /**
446
+ * Creates request options for unshareAssessment without sending the request
447
+ */
448
+ unshareAssessmentRequestOpts(requestParameters) {
449
+ return __awaiter(this, void 0, void 0, function* () {
450
+ if (requestParameters['id'] == null) {
451
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling unshareAssessment().');
452
+ }
453
+ const queryParameters = {};
454
+ const headerParameters = {};
455
+ let urlPath = `/api/v1/assessments/{id}/share`;
456
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
457
+ return {
458
+ path: urlPath,
459
+ method: 'DELETE',
460
+ headers: headerParameters,
461
+ query: queryParameters,
462
+ };
463
+ });
464
+ }
465
+ /**
466
+ * Unshare an assessment from the user\'s partner organization
467
+ */
468
+ unshareAssessmentRaw(requestParameters, initOverrides) {
469
+ return __awaiter(this, void 0, void 0, function* () {
470
+ const requestOptions = yield this.unshareAssessmentRequestOpts(requestParameters);
471
+ const response = yield this.request(requestOptions, initOverrides);
472
+ return new runtime.JSONApiResponse(response, (jsonValue) => StatusFromJSON(jsonValue));
473
+ });
474
+ }
475
+ /**
476
+ * Unshare an assessment from the user\'s partner organization
477
+ */
478
+ unshareAssessment(requestParameters, initOverrides) {
479
+ return __awaiter(this, void 0, void 0, function* () {
480
+ const response = yield this.unshareAssessmentRaw(requestParameters, initOverrides);
481
+ return yield response.value();
482
+ });
483
+ }
406
484
  /**
407
485
  * Creates request options for updateAssessment without sending the request
408
486
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { Group, PartnerRequest, PartnerRequestCreate, PartnerRequestUpdate } from '../models/index.js';
13
+ import type { Customer, Group, PartnerRequest, PartnerRequestCreate, PartnerRequestUpdate } from '../models/index.js';
14
14
  export interface CancelPartnerRequestRequest {
15
15
  id: string;
16
16
  }
@@ -123,16 +123,16 @@ export interface PartnerApiInterface {
123
123
  */
124
124
  listCustomersRequestOpts(): Promise<runtime.RequestOpts>;
125
125
  /**
126
- * List customer requests for my partner organization
126
+ * List customers for my partner organization
127
127
  * @param {*} [options] Override http request option.
128
128
  * @throws {RequiredError}
129
129
  * @memberof PartnerApiInterface
130
130
  */
131
- listCustomersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PartnerRequest>>>;
131
+ listCustomersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Customer>>>;
132
132
  /**
133
- * List customer requests for my partner organization
133
+ * List customers for my partner organization
134
134
  */
135
- listCustomers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PartnerRequest>>;
135
+ listCustomers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Customer>>;
136
136
  /**
137
137
  * Creates request options for listPartnerRequests without sending the request
138
138
  * @throws {RequiredError}
@@ -265,13 +265,13 @@ export declare class PartnerApi extends runtime.BaseAPI implements PartnerApiInt
265
265
  */
266
266
  listCustomersRequestOpts(): Promise<runtime.RequestOpts>;
267
267
  /**
268
- * List customer requests for my partner organization
268
+ * List customers for my partner organization
269
269
  */
270
- listCustomersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PartnerRequest>>>;
270
+ listCustomersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Customer>>>;
271
271
  /**
272
- * List customer requests for my partner organization
272
+ * List customers for my partner organization
273
273
  */
274
- listCustomers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PartnerRequest>>;
274
+ listCustomers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Customer>>;
275
275
  /**
276
276
  * Creates request options for listPartnerRequests without sending the request
277
277
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { GroupFromJSON, PartnerRequestFromJSON, PartnerRequestCreateToJSON, PartnerRequestUpdateToJSON, } from '../models/index.js';
24
+ import { CustomerFromJSON, GroupFromJSON, PartnerRequestFromJSON, PartnerRequestCreateToJSON, PartnerRequestUpdateToJSON, } from '../models/index.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -202,17 +202,17 @@ export class PartnerApi extends runtime.BaseAPI {
202
202
  });
203
203
  }
204
204
  /**
205
- * List customer requests for my partner organization
205
+ * List customers for my partner organization
206
206
  */
207
207
  listCustomersRaw(initOverrides) {
208
208
  return __awaiter(this, void 0, void 0, function* () {
209
209
  const requestOptions = yield this.listCustomersRequestOpts();
210
210
  const response = yield this.request(requestOptions, initOverrides);
211
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PartnerRequestFromJSON));
211
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CustomerFromJSON));
212
212
  });
213
213
  }
214
214
  /**
215
- * List customer requests for my partner organization
215
+ * List customers for my partner organization
216
216
  */
217
217
  listCustomers(initOverrides) {
218
218
  return __awaiter(this, void 0, void 0, function* () {
@@ -0,0 +1,62 @@
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: v1alpha1
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 Customer
16
+ */
17
+ export interface Customer {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof Customer
22
+ */
23
+ username: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof Customer
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof Customer
34
+ */
35
+ contactName: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof Customer
40
+ */
41
+ contactPhone: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof Customer
46
+ */
47
+ email: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof Customer
52
+ */
53
+ location: string;
54
+ }
55
+ /**
56
+ * Check if a given object implements the Customer interface.
57
+ */
58
+ export declare function instanceOfCustomer(value: object): value is Customer;
59
+ export declare function CustomerFromJSON(json: any): Customer;
60
+ export declare function CustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Customer;
61
+ export declare function CustomerToJSON(json: any): Customer;
62
+ export declare function CustomerToJSONTyped(value?: Customer | null, ignoreDiscriminator?: boolean): any;