@ornncompute/cli 1.0.172 → 1.0.174
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
|
@@ -385,6 +385,8 @@ var contractPath = (id2) => `${contracts}/${encodeURIComponent(id2)}`;
|
|
|
385
385
|
var documents = (id2) => `${contractPath(id2)}/documents`;
|
|
386
386
|
var lines = (id2) => `${contractPath(id2)}/lines`;
|
|
387
387
|
var delayPenalties = (id2) => `${contractPath(id2)}/delay-penalties`;
|
|
388
|
+
var commitments = (id2) => `${contractPath(id2)}/commitments`;
|
|
389
|
+
var pricePhases = (id2, lineId) => `${lines(id2)}/${encodeURIComponent(lineId)}/price-phases`;
|
|
388
390
|
async function listComputeContracts(request, input = {}, signal) {
|
|
389
391
|
const page = await request(contracts + queryString(input), {
|
|
390
392
|
method: "GET",
|
|
@@ -481,6 +483,30 @@ function deleteComputeContractDelayPenalty(request, id2, penaltyId, body) {
|
|
|
481
483
|
body
|
|
482
484
|
});
|
|
483
485
|
}
|
|
486
|
+
function listComputeContractCommitments(request, id2, signal) {
|
|
487
|
+
return request(commitments(id2), { method: "GET", signal });
|
|
488
|
+
}
|
|
489
|
+
function createComputeContractCommitment(request, id2, body) {
|
|
490
|
+
return request(commitments(id2), { method: "POST", body });
|
|
491
|
+
}
|
|
492
|
+
function updateComputeContractCommitment(request, id2, commitmentId, body) {
|
|
493
|
+
return request(`${commitments(id2)}/${encodeURIComponent(commitmentId)}`, {
|
|
494
|
+
method: "PUT",
|
|
495
|
+
body
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
function deleteComputeContractCommitment(request, id2, commitmentId, body) {
|
|
499
|
+
return request(`${commitments(id2)}/${encodeURIComponent(commitmentId)}`, {
|
|
500
|
+
method: "DELETE",
|
|
501
|
+
body
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
function getComputeContractLinePricePhases(request, id2, lineId, signal) {
|
|
505
|
+
return request(pricePhases(id2, lineId), { method: "GET", signal });
|
|
506
|
+
}
|
|
507
|
+
function replaceComputeContractLinePricePhases(request, id2, lineId, body) {
|
|
508
|
+
return request(pricePhases(id2, lineId), { method: "PUT", body });
|
|
509
|
+
}
|
|
484
510
|
|
|
485
511
|
// ../../packages/api-client/dist/commerce/contract-extractions.js
|
|
486
512
|
var extractions = "/internal/v1/gtm/contract-extractions";
|
|
@@ -1049,6 +1075,7 @@ export {
|
|
|
1049
1075
|
createBillingSetupIntent,
|
|
1050
1076
|
createCapacityListing,
|
|
1051
1077
|
createComputeContract,
|
|
1078
|
+
createComputeContractCommitment,
|
|
1052
1079
|
createComputeContractDelayPenalty,
|
|
1053
1080
|
createComputeContractDocument,
|
|
1054
1081
|
createComputeContractLine,
|
|
@@ -1076,6 +1103,7 @@ export {
|
|
|
1076
1103
|
createSupplierPaymentAccount,
|
|
1077
1104
|
deleteCapacityTerms,
|
|
1078
1105
|
deleteComputeContract,
|
|
1106
|
+
deleteComputeContractCommitment,
|
|
1079
1107
|
deleteComputeContractDelayPenalty,
|
|
1080
1108
|
deleteComputeContractDocument,
|
|
1081
1109
|
deleteComputeContractLine,
|
|
@@ -1106,6 +1134,7 @@ export {
|
|
|
1106
1134
|
getCapacityListingSpecPdf,
|
|
1107
1135
|
getCommerceOrganization,
|
|
1108
1136
|
getComputeContract,
|
|
1137
|
+
getComputeContractLinePricePhases,
|
|
1109
1138
|
getComputeDealModelState,
|
|
1110
1139
|
getComputeDealV2,
|
|
1111
1140
|
getContractExtraction,
|
|
@@ -1146,6 +1175,7 @@ export {
|
|
|
1146
1175
|
listCapacityNodes,
|
|
1147
1176
|
listCapacityTerms,
|
|
1148
1177
|
listCapacityTermsBatch,
|
|
1178
|
+
listComputeContractCommitments,
|
|
1149
1179
|
listComputeContractDelayPenalties,
|
|
1150
1180
|
listComputeContractDocuments,
|
|
1151
1181
|
listComputeContractLineCapacity,
|
|
@@ -1187,6 +1217,7 @@ export {
|
|
|
1187
1217
|
patchFacility,
|
|
1188
1218
|
patchReservation,
|
|
1189
1219
|
relistReservation,
|
|
1220
|
+
replaceComputeContractLinePricePhases,
|
|
1190
1221
|
reviewCapacityListing,
|
|
1191
1222
|
reviewSupplierIntakeSubmission,
|
|
1192
1223
|
revokeControlplaneLicense,
|
|
@@ -1196,6 +1227,7 @@ export {
|
|
|
1196
1227
|
stopReservation,
|
|
1197
1228
|
transferReservation,
|
|
1198
1229
|
updateComputeContract,
|
|
1230
|
+
updateComputeContractCommitment,
|
|
1199
1231
|
updateComputeContractDelayPenalty,
|
|
1200
1232
|
updateComputeContractDocument,
|
|
1201
1233
|
updateComputeContractLine,
|
|
@@ -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
|