@ornncompute/cli 1.0.173 → 1.0.175
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/package.json
CHANGED
|
@@ -499,6 +499,18 @@ function getCustomerServicingProfile(request, organizationId, signal) {
|
|
|
499
499
|
function saveServicingRequirement(request, organizationId, id, body) {
|
|
500
500
|
return request(`/v1/orchestrator/customer-profiles/${encodeURIComponent(organizationId)}/requirements/${encodeURIComponent(id)}`, { method: "PUT", body });
|
|
501
501
|
}
|
|
502
|
+
function listServicingRequirements(request, query = {}, signal) {
|
|
503
|
+
const params = new URLSearchParams();
|
|
504
|
+
if (query.q)
|
|
505
|
+
params.set("q", query.q);
|
|
506
|
+
if (query.offset)
|
|
507
|
+
params.set("offset", String(query.offset));
|
|
508
|
+
const suffix = params.size ? `?${params}` : "";
|
|
509
|
+
return request(`/v1/orchestrator/customer-profiles${suffix}`, {
|
|
510
|
+
method: "GET",
|
|
511
|
+
signal
|
|
512
|
+
});
|
|
513
|
+
}
|
|
502
514
|
|
|
503
515
|
// ../../packages/api-client/dist/orchestrator/maintenance-history.js
|
|
504
516
|
function listMaintenanceHistory(request, filter = {}, signal) {
|
|
@@ -1105,6 +1117,7 @@ export {
|
|
|
1105
1117
|
listReservationNodeRollout,
|
|
1106
1118
|
listReservationSshKeys,
|
|
1107
1119
|
listReservationVirtualMachines,
|
|
1120
|
+
listServicingRequirements,
|
|
1108
1121
|
listSshBastions,
|
|
1109
1122
|
listStaffNodeVirtualMachines,
|
|
1110
1123
|
listStaffNodes,
|
|
@@ -575,8 +575,8 @@ function body(value, idempotencyKey) {
|
|
|
575
575
|
function query(params) {
|
|
576
576
|
const search = new URLSearchParams();
|
|
577
577
|
for (const [key, value] of Object.entries(params))
|
|
578
|
-
if (value)
|
|
579
|
-
search.set(key, value);
|
|
578
|
+
if (value != null && value !== "")
|
|
579
|
+
search.set(key, String(value));
|
|
580
580
|
const text = search.toString();
|
|
581
581
|
return text ? `?${text}` : "";
|
|
582
582
|
}
|
|
@@ -640,8 +640,11 @@ function acceptOffer(request, offerId) {
|
|
|
640
640
|
function cancelOffer(request, offerId) {
|
|
641
641
|
return request(`${BASE3}/offers/${encodeURIComponent(offerId)}`, { method: "DELETE" });
|
|
642
642
|
}
|
|
643
|
-
function listOffers(request, filter = {}) {
|
|
644
|
-
return request(`${BASE3}/offers${query(filter)}`, {
|
|
643
|
+
function listOffers(request, filter = {}, signal) {
|
|
644
|
+
return request(`${BASE3}/offers${query(filter)}`, {
|
|
645
|
+
method: "GET",
|
|
646
|
+
...signal ? { signal } : {}
|
|
647
|
+
});
|
|
645
648
|
}
|
|
646
649
|
|
|
647
650
|
// ../../packages/capabilities/dist/capabilities/admin-capacity-reservations.js
|