@ornncompute/cli 1.0.180 → 1.0.182
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
|
@@ -101,6 +101,13 @@ function listCapacityNodes(request, id2, signal) {
|
|
|
101
101
|
...signal ? { signal } : {}
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
+
function listCapacityNodesBatch(request, listingIds, signal) {
|
|
105
|
+
const query = new URLSearchParams({ listingIds: listingIds.join(",") });
|
|
106
|
+
return request(`${BASE}/nodes?${query}`, {
|
|
107
|
+
method: "GET",
|
|
108
|
+
...signal ? { signal } : {}
|
|
109
|
+
});
|
|
110
|
+
}
|
|
104
111
|
function attachCapacityNode(request, id2, nodeId) {
|
|
105
112
|
return request(nodePath(id2, nodeId), { method: "PUT" });
|
|
106
113
|
}
|
|
@@ -1017,22 +1024,79 @@ function deleteComputeContractPaymentEvidence(request, id2, evidenceId, version)
|
|
|
1017
1024
|
});
|
|
1018
1025
|
}
|
|
1019
1026
|
|
|
1027
|
+
// ../../packages/api-client/dist/commerce/compute-contract-releases.js
|
|
1028
|
+
var base7 = (id2) => `/internal/v1/gtm/compute-contracts/${encodeURIComponent(id2)}`;
|
|
1029
|
+
var policies = (id2) => `${base7(id2)}/release-policies`;
|
|
1030
|
+
var requests = (id2) => `${base7(id2)}/release-requests`;
|
|
1031
|
+
var transfers = (id2) => `${base7(id2)}/capacity-transfers`;
|
|
1032
|
+
function listComputeContractReleasePolicies(request, id2, input = {}, signal) {
|
|
1033
|
+
return request(policies(id2) + queryString(input), {
|
|
1034
|
+
method: "GET",
|
|
1035
|
+
signal
|
|
1036
|
+
});
|
|
1037
|
+
}
|
|
1038
|
+
function createComputeContractReleasePolicy(request, id2, body) {
|
|
1039
|
+
return request(policies(id2), { method: "POST", body });
|
|
1040
|
+
}
|
|
1041
|
+
function updateComputeContractReleasePolicy(request, id2, policyId, body) {
|
|
1042
|
+
return request(`${policies(id2)}/${encodeURIComponent(policyId)}`, {
|
|
1043
|
+
method: "PUT",
|
|
1044
|
+
body
|
|
1045
|
+
});
|
|
1046
|
+
}
|
|
1047
|
+
function cancelComputeContractReleasePolicy(request, id2, policyId, body) {
|
|
1048
|
+
return request(`${policies(id2)}/${encodeURIComponent(policyId)}`, {
|
|
1049
|
+
method: "DELETE",
|
|
1050
|
+
body
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
function listComputeContractReleaseRequests(request, id2, input = {}, signal) {
|
|
1054
|
+
return request(requests(id2) + queryString(input), {
|
|
1055
|
+
method: "GET",
|
|
1056
|
+
signal
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
function createComputeContractReleaseRequest(request, id2, body) {
|
|
1060
|
+
return request(requests(id2), { method: "POST", body });
|
|
1061
|
+
}
|
|
1062
|
+
function updateComputeContractReleaseRequest(request, id2, requestId, body) {
|
|
1063
|
+
return request(`${requests(id2)}/${encodeURIComponent(requestId)}`, {
|
|
1064
|
+
method: "PUT",
|
|
1065
|
+
body
|
|
1066
|
+
});
|
|
1067
|
+
}
|
|
1068
|
+
function cancelComputeContractReleaseRequest(request, id2, requestId, body) {
|
|
1069
|
+
return request(`${requests(id2)}/${encodeURIComponent(requestId)}`, {
|
|
1070
|
+
method: "DELETE",
|
|
1071
|
+
body
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1074
|
+
function listComputeContractCapacityTransfers(request, id2, input = {}, signal) {
|
|
1075
|
+
return request(transfers(id2) + queryString(input), {
|
|
1076
|
+
method: "GET",
|
|
1077
|
+
signal
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
function recordComputeContractCapacityTransfer(request, id2, body) {
|
|
1081
|
+
return request(transfers(id2), { method: "POST", body });
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1020
1084
|
// ../../packages/api-client/dist/commerce/compute-deal-acceptance.js
|
|
1021
|
-
var
|
|
1085
|
+
var base8 = (dealId, allocationId) => `/internal/v2/gtm/compute-deals/${encodeURIComponent(dealId)}/allocations/${encodeURIComponent(allocationId)}/acceptance-decisions`;
|
|
1022
1086
|
function listComputeDealAcceptanceDecisions(request, dealId, allocationId, signal) {
|
|
1023
|
-
return request(
|
|
1087
|
+
return request(base8(dealId, allocationId), {
|
|
1024
1088
|
method: "GET",
|
|
1025
1089
|
signal
|
|
1026
1090
|
});
|
|
1027
1091
|
}
|
|
1028
1092
|
function createComputeDealAcceptanceDecision(request, dealId, allocationId, body) {
|
|
1029
|
-
return request(
|
|
1093
|
+
return request(base8(dealId, allocationId), {
|
|
1030
1094
|
method: "POST",
|
|
1031
1095
|
body
|
|
1032
1096
|
});
|
|
1033
1097
|
}
|
|
1034
1098
|
function deleteComputeDealAcceptanceDecision(request, dealId, allocationId, decisionId, body) {
|
|
1035
|
-
return request(`${
|
|
1099
|
+
return request(`${base8(dealId, allocationId)}/${encodeURIComponent(decisionId)}`, {
|
|
1036
1100
|
method: "DELETE",
|
|
1037
1101
|
body
|
|
1038
1102
|
});
|
|
@@ -1056,6 +1120,8 @@ export {
|
|
|
1056
1120
|
addCapacityTerms,
|
|
1057
1121
|
addReservationNodes,
|
|
1058
1122
|
attachCapacityNode,
|
|
1123
|
+
cancelComputeContractReleasePolicy,
|
|
1124
|
+
cancelComputeContractReleaseRequest,
|
|
1059
1125
|
cancelReservation,
|
|
1060
1126
|
completeReservation,
|
|
1061
1127
|
createBillingSetupIntent,
|
|
@@ -1066,6 +1132,8 @@ export {
|
|
|
1066
1132
|
createComputeContractDocument,
|
|
1067
1133
|
createComputeContractLine,
|
|
1068
1134
|
createComputeContractPaymentEvidence,
|
|
1135
|
+
createComputeContractReleasePolicy,
|
|
1136
|
+
createComputeContractReleaseRequest,
|
|
1069
1137
|
createComputeDeal,
|
|
1070
1138
|
createComputeDealAcceptanceDecision,
|
|
1071
1139
|
createComputeDealAddOn,
|
|
@@ -1158,8 +1226,10 @@ export {
|
|
|
1158
1226
|
listAllStaffFacilities,
|
|
1159
1227
|
listCapacityListings,
|
|
1160
1228
|
listCapacityNodes,
|
|
1229
|
+
listCapacityNodesBatch,
|
|
1161
1230
|
listCapacityTerms,
|
|
1162
1231
|
listCapacityTermsBatch,
|
|
1232
|
+
listComputeContractCapacityTransfers,
|
|
1163
1233
|
listComputeContractCommitments,
|
|
1164
1234
|
listComputeContractDelayPenalties,
|
|
1165
1235
|
listComputeContractDocuments,
|
|
@@ -1167,6 +1237,8 @@ export {
|
|
|
1167
1237
|
listComputeContractLineMatches,
|
|
1168
1238
|
listComputeContractLines,
|
|
1169
1239
|
listComputeContractPaymentEvidence,
|
|
1240
|
+
listComputeContractReleasePolicies,
|
|
1241
|
+
listComputeContractReleaseRequests,
|
|
1170
1242
|
listComputeContracts,
|
|
1171
1243
|
listComputeDealAcceptanceDecisions,
|
|
1172
1244
|
listComputeDealAddOns,
|
|
@@ -1201,6 +1273,7 @@ export {
|
|
|
1201
1273
|
patchCapacityListing,
|
|
1202
1274
|
patchFacility,
|
|
1203
1275
|
patchReservation,
|
|
1276
|
+
recordComputeContractCapacityTransfer,
|
|
1204
1277
|
relistReservation,
|
|
1205
1278
|
replaceComputeContractLinePricePhases,
|
|
1206
1279
|
reviewCapacityListing,
|
|
@@ -1216,6 +1289,8 @@ export {
|
|
|
1216
1289
|
updateComputeContractDelayPenalty,
|
|
1217
1290
|
updateComputeContractDocument,
|
|
1218
1291
|
updateComputeContractLine,
|
|
1292
|
+
updateComputeContractReleasePolicy,
|
|
1293
|
+
updateComputeContractReleaseRequest,
|
|
1219
1294
|
updateComputeDeal,
|
|
1220
1295
|
updateComputeDealAddOn,
|
|
1221
1296
|
updateComputeDealAllocation,
|