@ornncompute/cli 1.0.117 → 1.0.118

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornncompute/cli",
3
- "version": "1.0.117",
3
+ "version": "1.0.118",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -370,6 +370,27 @@ function deleteComputeDealAddOn(request, id2, addOnId, body) {
370
370
  });
371
371
  }
372
372
 
373
+ // ../../packages/api-client/dist/commerce/compute-contract-line-matches.js
374
+ var matchesPath = "/internal/v1/gtm/compute-contract-line-matches";
375
+ var capacityPath = "/internal/v1/gtm/compute-contract-line-capacity";
376
+ function listComputeContractLineMatches(request, input, signal) {
377
+ const query = new URLSearchParams();
378
+ for (const id2 of input.dealIds ?? [])
379
+ query.append("dealId", id2);
380
+ for (const id2 of input.reservationIds ?? [])
381
+ query.append("reservationId", id2);
382
+ for (const id2 of input.listingIds ?? [])
383
+ query.append("listingId", id2);
384
+ return request(`${matchesPath}?${query}`, { method: "GET", signal });
385
+ }
386
+ function listComputeContractLineCapacity(request, input, signal) {
387
+ const query = new URLSearchParams();
388
+ for (const id2 of input.lineIds)
389
+ query.append("lineId", id2);
390
+ query.set("on", input.on);
391
+ return request(`${capacityPath}?${query}`, { method: "GET", signal });
392
+ }
393
+
373
394
  // ../../packages/api-client/dist/commerce/staff.js
374
395
  function listDowntime(request, input = {}, signal) {
375
396
  return request("/internal/v1/downtime" + queryString(input), {
@@ -752,6 +773,8 @@ export {
752
773
  listCapacityNodes,
753
774
  listCapacityTerms,
754
775
  listCapacityTermsBatch,
776
+ listComputeContractLineCapacity,
777
+ listComputeContractLineMatches,
755
778
  listComputeDealAddOns,
756
779
  listComputeDeals,
757
780
  listContractFiles,