@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,379 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.PartnerApi = void 0;
|
|
26
|
+
const runtime = require("../runtime.js");
|
|
27
|
+
const index_js_1 = require("../models/index.js");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class PartnerApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for cancelPartnerRequest without sending the request
|
|
34
|
+
*/
|
|
35
|
+
cancelPartnerRequestRequestOpts(requestParameters) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['id'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling cancelPartnerRequest().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
let urlPath = `/api/v1/partners/requests/{id}`;
|
|
43
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
44
|
+
return {
|
|
45
|
+
path: urlPath,
|
|
46
|
+
method: 'DELETE',
|
|
47
|
+
headers: headerParameters,
|
|
48
|
+
query: queryParameters,
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Cancel a pending partner request
|
|
54
|
+
*/
|
|
55
|
+
cancelPartnerRequestRaw(requestParameters, initOverrides) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
const requestOptions = yield this.cancelPartnerRequestRequestOpts(requestParameters);
|
|
58
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
59
|
+
return new runtime.VoidApiResponse(response);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Cancel a pending partner request
|
|
64
|
+
*/
|
|
65
|
+
cancelPartnerRequest(requestParameters, initOverrides) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
yield this.cancelPartnerRequestRaw(requestParameters, initOverrides);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Creates request options for createPartnerRequest without sending the request
|
|
72
|
+
*/
|
|
73
|
+
createPartnerRequestRequestOpts(requestParameters) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
if (requestParameters['id'] == null) {
|
|
76
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling createPartnerRequest().');
|
|
77
|
+
}
|
|
78
|
+
if (requestParameters['partnerRequestCreate'] == null) {
|
|
79
|
+
throw new runtime.RequiredError('partnerRequestCreate', 'Required parameter "partnerRequestCreate" was null or undefined when calling createPartnerRequest().');
|
|
80
|
+
}
|
|
81
|
+
const queryParameters = {};
|
|
82
|
+
const headerParameters = {};
|
|
83
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
84
|
+
let urlPath = `/api/v1/partners/{id}/request`;
|
|
85
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
86
|
+
return {
|
|
87
|
+
path: urlPath,
|
|
88
|
+
method: 'POST',
|
|
89
|
+
headers: headerParameters,
|
|
90
|
+
query: queryParameters,
|
|
91
|
+
body: (0, index_js_1.PartnerRequestCreateToJSON)(requestParameters['partnerRequestCreate']),
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Submit a partner request. Only regular users can make this request.
|
|
97
|
+
*/
|
|
98
|
+
createPartnerRequestRaw(requestParameters, initOverrides) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const requestOptions = yield this.createPartnerRequestRequestOpts(requestParameters);
|
|
101
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
102
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.PartnerRequestFromJSON)(jsonValue));
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Submit a partner request. Only regular users can make this request.
|
|
107
|
+
*/
|
|
108
|
+
createPartnerRequest(requestParameters, initOverrides) {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
const response = yield this.createPartnerRequestRaw(requestParameters, initOverrides);
|
|
111
|
+
return yield response.value();
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Creates request options for getPartner without sending the request
|
|
116
|
+
*/
|
|
117
|
+
getPartnerRequestOpts(requestParameters) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
if (requestParameters['id'] == null) {
|
|
120
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getPartner().');
|
|
121
|
+
}
|
|
122
|
+
const queryParameters = {};
|
|
123
|
+
const headerParameters = {};
|
|
124
|
+
let urlPath = `/api/v1/partners/{id}`;
|
|
125
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
126
|
+
return {
|
|
127
|
+
path: urlPath,
|
|
128
|
+
method: 'GET',
|
|
129
|
+
headers: headerParameters,
|
|
130
|
+
query: queryParameters,
|
|
131
|
+
};
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Get my partner organization details
|
|
136
|
+
*/
|
|
137
|
+
getPartnerRaw(requestParameters, initOverrides) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
const requestOptions = yield this.getPartnerRequestOpts(requestParameters);
|
|
140
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
141
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.GroupFromJSON)(jsonValue));
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Get my partner organization details
|
|
146
|
+
*/
|
|
147
|
+
getPartner(requestParameters, initOverrides) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
const response = yield this.getPartnerRaw(requestParameters, initOverrides);
|
|
150
|
+
return yield response.value();
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Creates request options for leavePartner without sending the request
|
|
155
|
+
*/
|
|
156
|
+
leavePartnerRequestOpts(requestParameters) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
if (requestParameters['id'] == null) {
|
|
159
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling leavePartner().');
|
|
160
|
+
}
|
|
161
|
+
const queryParameters = {};
|
|
162
|
+
const headerParameters = {};
|
|
163
|
+
let urlPath = `/api/v1/partners/{id}`;
|
|
164
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
165
|
+
return {
|
|
166
|
+
path: urlPath,
|
|
167
|
+
method: 'DELETE',
|
|
168
|
+
headers: headerParameters,
|
|
169
|
+
query: queryParameters,
|
|
170
|
+
};
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Leave partner organization
|
|
175
|
+
*/
|
|
176
|
+
leavePartnerRaw(requestParameters, initOverrides) {
|
|
177
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
178
|
+
const requestOptions = yield this.leavePartnerRequestOpts(requestParameters);
|
|
179
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
180
|
+
return new runtime.VoidApiResponse(response);
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Leave partner organization
|
|
185
|
+
*/
|
|
186
|
+
leavePartner(requestParameters, initOverrides) {
|
|
187
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
188
|
+
yield this.leavePartnerRaw(requestParameters, initOverrides);
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Creates request options for listCustomers without sending the request
|
|
193
|
+
*/
|
|
194
|
+
listCustomersRequestOpts() {
|
|
195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
+
const queryParameters = {};
|
|
197
|
+
const headerParameters = {};
|
|
198
|
+
let urlPath = `/api/v1/customers`;
|
|
199
|
+
return {
|
|
200
|
+
path: urlPath,
|
|
201
|
+
method: 'GET',
|
|
202
|
+
headers: headerParameters,
|
|
203
|
+
query: queryParameters,
|
|
204
|
+
};
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* List customer requests for my partner organization
|
|
209
|
+
*/
|
|
210
|
+
listCustomersRaw(initOverrides) {
|
|
211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
const requestOptions = yield this.listCustomersRequestOpts();
|
|
213
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
214
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_js_1.PartnerRequestFromJSON));
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* List customer requests for my partner organization
|
|
219
|
+
*/
|
|
220
|
+
listCustomers(initOverrides) {
|
|
221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
222
|
+
const response = yield this.listCustomersRaw(initOverrides);
|
|
223
|
+
return yield response.value();
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Creates request options for listPartnerRequests without sending the request
|
|
228
|
+
*/
|
|
229
|
+
listPartnerRequestsRequestOpts() {
|
|
230
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
231
|
+
const queryParameters = {};
|
|
232
|
+
const headerParameters = {};
|
|
233
|
+
let urlPath = `/api/v1/partners/requests`;
|
|
234
|
+
return {
|
|
235
|
+
path: urlPath,
|
|
236
|
+
method: 'GET',
|
|
237
|
+
headers: headerParameters,
|
|
238
|
+
query: queryParameters,
|
|
239
|
+
};
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* List my partner requests
|
|
244
|
+
*/
|
|
245
|
+
listPartnerRequestsRaw(initOverrides) {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
247
|
+
const requestOptions = yield this.listPartnerRequestsRequestOpts();
|
|
248
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
249
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_js_1.PartnerRequestFromJSON));
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* List my partner requests
|
|
254
|
+
*/
|
|
255
|
+
listPartnerRequests(initOverrides) {
|
|
256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
257
|
+
const response = yield this.listPartnerRequestsRaw(initOverrides);
|
|
258
|
+
return yield response.value();
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Creates request options for listPartners without sending the request
|
|
263
|
+
*/
|
|
264
|
+
listPartnersRequestOpts() {
|
|
265
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
266
|
+
const queryParameters = {};
|
|
267
|
+
const headerParameters = {};
|
|
268
|
+
let urlPath = `/api/v1/partners`;
|
|
269
|
+
return {
|
|
270
|
+
path: urlPath,
|
|
271
|
+
method: 'GET',
|
|
272
|
+
headers: headerParameters,
|
|
273
|
+
query: queryParameters,
|
|
274
|
+
};
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* List available partner organizations
|
|
279
|
+
*/
|
|
280
|
+
listPartnersRaw(initOverrides) {
|
|
281
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
282
|
+
const requestOptions = yield this.listPartnersRequestOpts();
|
|
283
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
284
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_js_1.GroupFromJSON));
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* List available partner organizations
|
|
289
|
+
*/
|
|
290
|
+
listPartners(initOverrides) {
|
|
291
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
+
const response = yield this.listPartnersRaw(initOverrides);
|
|
293
|
+
return yield response.value();
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Creates request options for removeCustomer without sending the request
|
|
298
|
+
*/
|
|
299
|
+
removeCustomerRequestOpts(requestParameters) {
|
|
300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
301
|
+
if (requestParameters['username'] == null) {
|
|
302
|
+
throw new runtime.RequiredError('username', 'Required parameter "username" was null or undefined when calling removeCustomer().');
|
|
303
|
+
}
|
|
304
|
+
const queryParameters = {};
|
|
305
|
+
const headerParameters = {};
|
|
306
|
+
let urlPath = `/api/v1/customers/{username}`;
|
|
307
|
+
urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username'])));
|
|
308
|
+
return {
|
|
309
|
+
path: urlPath,
|
|
310
|
+
method: 'DELETE',
|
|
311
|
+
headers: headerParameters,
|
|
312
|
+
query: queryParameters,
|
|
313
|
+
};
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Remove a customer from partner organization
|
|
318
|
+
*/
|
|
319
|
+
removeCustomerRaw(requestParameters, initOverrides) {
|
|
320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
321
|
+
const requestOptions = yield this.removeCustomerRequestOpts(requestParameters);
|
|
322
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
323
|
+
return new runtime.VoidApiResponse(response);
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Remove a customer from partner organization
|
|
328
|
+
*/
|
|
329
|
+
removeCustomer(requestParameters, initOverrides) {
|
|
330
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
331
|
+
yield this.removeCustomerRaw(requestParameters, initOverrides);
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Creates request options for updatePartnerRequest without sending the request
|
|
336
|
+
*/
|
|
337
|
+
updatePartnerRequestRequestOpts(requestParameters) {
|
|
338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
339
|
+
if (requestParameters['id'] == null) {
|
|
340
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updatePartnerRequest().');
|
|
341
|
+
}
|
|
342
|
+
if (requestParameters['partnerRequestUpdate'] == null) {
|
|
343
|
+
throw new runtime.RequiredError('partnerRequestUpdate', 'Required parameter "partnerRequestUpdate" was null or undefined when calling updatePartnerRequest().');
|
|
344
|
+
}
|
|
345
|
+
const queryParameters = {};
|
|
346
|
+
const headerParameters = {};
|
|
347
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
348
|
+
let urlPath = `/api/v1/partners/requests/{id}`;
|
|
349
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
350
|
+
return {
|
|
351
|
+
path: urlPath,
|
|
352
|
+
method: 'PUT',
|
|
353
|
+
headers: headerParameters,
|
|
354
|
+
query: queryParameters,
|
|
355
|
+
body: (0, index_js_1.PartnerRequestUpdateToJSON)(requestParameters['partnerRequestUpdate']),
|
|
356
|
+
};
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Accept or reject a customer request
|
|
361
|
+
*/
|
|
362
|
+
updatePartnerRequestRaw(requestParameters, initOverrides) {
|
|
363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
364
|
+
const requestOptions = yield this.updatePartnerRequestRequestOpts(requestParameters);
|
|
365
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
366
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.PartnerRequestFromJSON)(jsonValue));
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* Accept or reject a customer request
|
|
371
|
+
*/
|
|
372
|
+
updatePartnerRequest(requestParameters, initOverrides) {
|
|
373
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
374
|
+
const response = yield this.updatePartnerRequestRaw(requestParameters, initOverrides);
|
|
375
|
+
return yield response.value();
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
exports.PartnerApi = PartnerApi;
|
package/dist/apis/SourceApi.js
CHANGED
|
@@ -80,7 +80,7 @@ class SourceApi extends runtime.BaseAPI {
|
|
|
80
80
|
const queryParameters = {};
|
|
81
81
|
const headerParameters = {};
|
|
82
82
|
let urlPath = `/api/v1/sources/{id}`;
|
|
83
|
-
urlPath = urlPath.replace(
|
|
83
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
84
84
|
return {
|
|
85
85
|
path: urlPath,
|
|
86
86
|
method: 'DELETE',
|
|
@@ -154,7 +154,7 @@ class SourceApi extends runtime.BaseAPI {
|
|
|
154
154
|
const queryParameters = {};
|
|
155
155
|
const headerParameters = {};
|
|
156
156
|
let urlPath = `/api/v1/sources/{id}`;
|
|
157
|
-
urlPath = urlPath.replace(
|
|
157
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
158
158
|
return {
|
|
159
159
|
path: urlPath,
|
|
160
160
|
method: 'GET',
|
|
@@ -232,7 +232,7 @@ class SourceApi extends runtime.BaseAPI {
|
|
|
232
232
|
const headerParameters = {};
|
|
233
233
|
headerParameters['Content-Type'] = 'application/json';
|
|
234
234
|
let urlPath = `/api/v1/sources/{id}/inventory`;
|
|
235
|
-
urlPath = urlPath.replace(
|
|
235
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
236
236
|
return {
|
|
237
237
|
path: urlPath,
|
|
238
238
|
method: 'PUT',
|
|
@@ -276,7 +276,7 @@ class SourceApi extends runtime.BaseAPI {
|
|
|
276
276
|
const headerParameters = {};
|
|
277
277
|
headerParameters['Content-Type'] = 'application/json';
|
|
278
278
|
let urlPath = `/api/v1/sources/{id}`;
|
|
279
|
-
urlPath = urlPath.replace(
|
|
279
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
280
280
|
return {
|
|
281
281
|
path: urlPath,
|
|
282
282
|
method: 'PUT',
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -22,4 +22,5 @@ __exportStar(require("./HealthApi.js"), exports);
|
|
|
22
22
|
__exportStar(require("./ImageApi.js"), exports);
|
|
23
23
|
__exportStar(require("./InfoApi.js"), exports);
|
|
24
24
|
__exportStar(require("./JobApi.js"), exports);
|
|
25
|
+
__exportStar(require("./PartnerApi.js"), exports);
|
|
25
26
|
__exportStar(require("./SourceApi.js"), exports);
|
|
@@ -81,7 +81,7 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
81
81
|
const headerParameters = {};
|
|
82
82
|
headerParameters['Content-Type'] = 'application/json';
|
|
83
83
|
let urlPath = `/api/v1/groups/{id}/members`;
|
|
84
|
-
urlPath = urlPath.replace(
|
|
84
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
85
85
|
return {
|
|
86
86
|
path: urlPath,
|
|
87
87
|
method: 'POST',
|
|
@@ -121,7 +121,7 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
121
121
|
const queryParameters = {};
|
|
122
122
|
const headerParameters = {};
|
|
123
123
|
let urlPath = `/api/v1/groups/{id}`;
|
|
124
|
-
urlPath = urlPath.replace(
|
|
124
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
125
125
|
return {
|
|
126
126
|
path: urlPath,
|
|
127
127
|
method: 'DELETE',
|
|
@@ -160,7 +160,7 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
160
160
|
const queryParameters = {};
|
|
161
161
|
const headerParameters = {};
|
|
162
162
|
let urlPath = `/api/v1/groups/{id}`;
|
|
163
|
-
urlPath = urlPath.replace(
|
|
163
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
164
164
|
return {
|
|
165
165
|
path: urlPath,
|
|
166
166
|
method: 'GET',
|
|
@@ -234,7 +234,7 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
234
234
|
const queryParameters = {};
|
|
235
235
|
const headerParameters = {};
|
|
236
236
|
let urlPath = `/api/v1/groups/{id}/members`;
|
|
237
|
-
urlPath = urlPath.replace(
|
|
237
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
238
238
|
return {
|
|
239
239
|
path: urlPath,
|
|
240
240
|
method: 'GET',
|
|
@@ -320,8 +320,8 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
320
320
|
const queryParameters = {};
|
|
321
321
|
const headerParameters = {};
|
|
322
322
|
let urlPath = `/api/v1/groups/{id}/members/{username}`;
|
|
323
|
-
urlPath = urlPath.replace(
|
|
324
|
-
urlPath = urlPath.replace(
|
|
323
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
324
|
+
urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username'])));
|
|
325
325
|
return {
|
|
326
326
|
path: urlPath,
|
|
327
327
|
method: 'DELETE',
|
|
@@ -363,7 +363,7 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
363
363
|
const headerParameters = {};
|
|
364
364
|
headerParameters['Content-Type'] = 'application/json';
|
|
365
365
|
let urlPath = `/api/v1/groups/{id}`;
|
|
366
|
-
urlPath = urlPath.replace(
|
|
366
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
367
367
|
return {
|
|
368
368
|
path: urlPath,
|
|
369
369
|
method: 'PUT',
|
|
@@ -410,8 +410,8 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
410
410
|
const headerParameters = {};
|
|
411
411
|
headerParameters['Content-Type'] = 'application/json';
|
|
412
412
|
let urlPath = `/api/v1/groups/{id}/members/{username}`;
|
|
413
|
-
urlPath = urlPath.replace(
|
|
414
|
-
urlPath = urlPath.replace(
|
|
413
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
414
|
+
urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username'])));
|
|
415
415
|
return {
|
|
416
416
|
path: urlPath,
|
|
417
417
|
method: 'PUT',
|
|
@@ -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, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationByComplexityResponse, MigrationEstimationRequest,
|
|
13
|
+
import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationByComplexityResponse, MigrationEstimationRequest, MigrationEstimationResponse } from '../models/index.js';
|
|
14
14
|
export interface CalculateAssessmentClusterRequirementsRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
clusterRequirementsRequest: ClusterRequirementsRequest;
|
|
@@ -108,15 +108,11 @@ export interface AssessmentApiInterface {
|
|
|
108
108
|
* @throws {RequiredError}
|
|
109
109
|
* @memberof AssessmentApiInterface
|
|
110
110
|
*/
|
|
111
|
-
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
112
|
-
[key: string]: SchemaEstimationResult;
|
|
113
|
-
}>>;
|
|
111
|
+
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
|
|
114
112
|
/**
|
|
115
113
|
* Calculate migration time estimation for an assessment
|
|
116
114
|
*/
|
|
117
|
-
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
118
|
-
[key: string]: SchemaEstimationResult;
|
|
119
|
-
}>;
|
|
115
|
+
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
|
|
120
116
|
/**
|
|
121
117
|
* Creates request options for calculateMigrationEstimationByComplexity without sending the request
|
|
122
118
|
* @param {string} id ID of the assessment
|
|
@@ -271,15 +267,11 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
|
|
|
271
267
|
/**
|
|
272
268
|
* Calculate migration time estimation for an assessment
|
|
273
269
|
*/
|
|
274
|
-
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
275
|
-
[key: string]: SchemaEstimationResult;
|
|
276
|
-
}>>;
|
|
270
|
+
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
|
|
277
271
|
/**
|
|
278
272
|
* Calculate migration time estimation for an assessment
|
|
279
273
|
*/
|
|
280
|
-
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
281
|
-
[key: string]: SchemaEstimationResult;
|
|
282
|
-
}>;
|
|
274
|
+
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
|
|
283
275
|
/**
|
|
284
276
|
* Creates request options for calculateMigrationEstimationByComplexity without sending the request
|
|
285
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 { AssessmentFromJSON, AssessmentFormToJSON, AssessmentUpdateToJSON, ClusterRequirementsRequestToJSON, ClusterRequirementsResponseFromJSON, MigrationComplexityRequestToJSON, MigrationComplexityResponseFromJSON, MigrationEstimationByComplexityResponseFromJSON, MigrationEstimationRequestToJSON,
|
|
24
|
+
import { AssessmentFromJSON, AssessmentFormToJSON, AssessmentUpdateToJSON, ClusterRequirementsRequestToJSON, ClusterRequirementsResponseFromJSON, MigrationComplexityRequestToJSON, MigrationComplexityResponseFromJSON, MigrationEstimationByComplexityResponseFromJSON, MigrationEstimationRequestToJSON, MigrationEstimationResponseFromJSON, } from '../models/index.js';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -41,7 +41,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
41
41
|
const headerParameters = {};
|
|
42
42
|
headerParameters['Content-Type'] = 'application/json';
|
|
43
43
|
let urlPath = `/api/v1/assessments/{id}/cluster-requirements`;
|
|
44
|
-
urlPath = urlPath.replace(
|
|
44
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
45
45
|
return {
|
|
46
46
|
path: urlPath,
|
|
47
47
|
method: 'POST',
|
|
@@ -85,7 +85,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
85
85
|
const headerParameters = {};
|
|
86
86
|
headerParameters['Content-Type'] = 'application/json';
|
|
87
87
|
let urlPath = `/api/v1/assessments/{id}/complexity-estimation`;
|
|
88
|
-
urlPath = urlPath.replace(
|
|
88
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
89
89
|
return {
|
|
90
90
|
path: urlPath,
|
|
91
91
|
method: 'POST',
|
|
@@ -129,7 +129,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
129
129
|
const headerParameters = {};
|
|
130
130
|
headerParameters['Content-Type'] = 'application/json';
|
|
131
131
|
let urlPath = `/api/v1/assessments/{id}/migration-estimation`;
|
|
132
|
-
urlPath = urlPath.replace(
|
|
132
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
133
133
|
return {
|
|
134
134
|
path: urlPath,
|
|
135
135
|
method: 'POST',
|
|
@@ -146,7 +146,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
146
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
147
147
|
const requestOptions = yield this.calculateMigrationEstimationRequestOpts(requestParameters);
|
|
148
148
|
const response = yield this.request(requestOptions, initOverrides);
|
|
149
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
149
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MigrationEstimationResponseFromJSON(jsonValue));
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
/**
|
|
@@ -173,7 +173,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
173
173
|
const headerParameters = {};
|
|
174
174
|
headerParameters['Content-Type'] = 'application/json';
|
|
175
175
|
let urlPath = `/api/v1/assessments/{id}/migration-estimation/by-complexity`;
|
|
176
|
-
urlPath = urlPath.replace(
|
|
176
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
177
177
|
return {
|
|
178
178
|
path: urlPath,
|
|
179
179
|
method: 'POST',
|
|
@@ -253,7 +253,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
253
253
|
const queryParameters = {};
|
|
254
254
|
const headerParameters = {};
|
|
255
255
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
256
|
-
urlPath = urlPath.replace(
|
|
256
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
257
257
|
return {
|
|
258
258
|
path: urlPath,
|
|
259
259
|
method: 'DELETE',
|
|
@@ -292,7 +292,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
292
292
|
const queryParameters = {};
|
|
293
293
|
const headerParameters = {};
|
|
294
294
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
295
|
-
urlPath = urlPath.replace(
|
|
295
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
296
296
|
return {
|
|
297
297
|
path: urlPath,
|
|
298
298
|
method: 'GET',
|
|
@@ -373,7 +373,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
373
373
|
const headerParameters = {};
|
|
374
374
|
headerParameters['Content-Type'] = 'application/json';
|
|
375
375
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
376
|
-
urlPath = urlPath.replace(
|
|
376
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
377
377
|
return {
|
|
378
378
|
path: urlPath,
|
|
379
379
|
method: 'PUT',
|
|
@@ -37,7 +37,7 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
39
39
|
let urlPath = `/api/v1/sources/{id}/image-url`;
|
|
40
|
-
urlPath = urlPath.replace(
|
|
40
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
41
41
|
return {
|
|
42
42
|
path: urlPath,
|
|
43
43
|
method: 'GET',
|
|
@@ -76,7 +76,7 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
76
76
|
const queryParameters = {};
|
|
77
77
|
const headerParameters = {};
|
|
78
78
|
let urlPath = `/api/v1/sources/{id}/image`;
|
|
79
|
-
urlPath = urlPath.replace(
|
|
79
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
80
80
|
return {
|
|
81
81
|
path: urlPath,
|
|
82
82
|
method: 'HEAD',
|
package/dist/esm/apis/JobApi.js
CHANGED
|
@@ -37,7 +37,7 @@ export class JobApi extends runtime.BaseAPI {
|
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
39
39
|
let urlPath = `/api/v1/assessments/jobs/{id}`;
|
|
40
|
-
urlPath = urlPath.replace(
|
|
40
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
41
41
|
return {
|
|
42
42
|
path: urlPath,
|
|
43
43
|
method: 'DELETE',
|
|
@@ -139,7 +139,7 @@ export class JobApi extends runtime.BaseAPI {
|
|
|
139
139
|
const queryParameters = {};
|
|
140
140
|
const headerParameters = {};
|
|
141
141
|
let urlPath = `/api/v1/assessments/jobs/{id}`;
|
|
142
|
-
urlPath = urlPath.replace(
|
|
142
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
143
143
|
return {
|
|
144
144
|
path: urlPath,
|
|
145
145
|
method: 'GET',
|