@ornncompute/cli 1.0.115 → 1.0.116
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
|
@@ -4,6 +4,12 @@ var listingPath = (id2) => `${BASE}/${encodeURIComponent(id2)}`;
|
|
|
4
4
|
var termsPath = (id2) => `${listingPath(id2)}/terms`;
|
|
5
5
|
var nodePath = (id2, nodeId) => `${listingPath(id2)}/nodes/${encodeURIComponent(nodeId)}`;
|
|
6
6
|
var replayHeaders = (key) => key ? { headers: { "Idempotency-Key": key } } : {};
|
|
7
|
+
function getCapacityListingImage(fetcher, id2, signal) {
|
|
8
|
+
return fetcher(`${listingPath(id2)}/og.png`, { method: "GET", signal });
|
|
9
|
+
}
|
|
10
|
+
function getCapacityListingSpecPdf(fetcher, id2, signal) {
|
|
11
|
+
return fetcher(`${listingPath(id2)}/spec.pdf`, { method: "GET", signal });
|
|
12
|
+
}
|
|
7
13
|
function listCapacityListings(request, input = {}, signal) {
|
|
8
14
|
const query = new URLSearchParams();
|
|
9
15
|
for (const [key, value] of Object.entries(input)) {
|
|
@@ -105,6 +111,9 @@ function detachCapacityNode(request, id2, nodeId) {
|
|
|
105
111
|
// ../../packages/api-client/dist/commerce/reservations.js
|
|
106
112
|
var BASE2 = "/commerce/reservations";
|
|
107
113
|
var reservationPath = (id2) => `${BASE2}/${encodeURIComponent(id2)}`;
|
|
114
|
+
function getReservationSpecPdf(fetcher, id2, signal) {
|
|
115
|
+
return fetcher(`${reservationPath(id2)}/spec.pdf`, { method: "GET", signal });
|
|
116
|
+
}
|
|
108
117
|
function listReservations(request, input = {}, signal) {
|
|
109
118
|
const query = new URLSearchParams();
|
|
110
119
|
for (const [key, value] of Object.entries(input)) {
|
|
@@ -496,6 +505,16 @@ function listTicketActivity(request, recordId) {
|
|
|
496
505
|
|
|
497
506
|
// ../../packages/api-client/dist/commerce/contracts.js
|
|
498
507
|
var base2 = "/internal/v1/gtm/contracts";
|
|
508
|
+
function getContractFile(fetcher, id2, signal) {
|
|
509
|
+
return fetcher(`${base2}/${encodeURIComponent(id2)}`, { method: "GET", signal });
|
|
510
|
+
}
|
|
511
|
+
function uploadContractFile(fetcher, input, signal) {
|
|
512
|
+
const body = new FormData();
|
|
513
|
+
body.set("scopeType", input.scopeType);
|
|
514
|
+
body.set("scopeId", input.scopeId);
|
|
515
|
+
body.set("file", input.file);
|
|
516
|
+
return fetcher(base2, { method: "POST", body, signal });
|
|
517
|
+
}
|
|
499
518
|
function listContractFiles(request, input = {}, signal) {
|
|
500
519
|
return request(base2 + queryString(input), { method: "GET", signal });
|
|
501
520
|
}
|
|
@@ -593,6 +612,18 @@ function createSupplierAccountSession(request, body, signal) {
|
|
|
593
612
|
|
|
594
613
|
// ../../packages/api-client/dist/commerce/supplier-intake.js
|
|
595
614
|
var base3 = "/internal/v1/supplier-intake";
|
|
615
|
+
function getSupplierIntakeDocument(fetcher, id2, input = {}, signal) {
|
|
616
|
+
return fetcher(`${base3}/documents/${encodeURIComponent(id2)}${input.download ? "?download=1" : ""}`, {
|
|
617
|
+
method: "GET",
|
|
618
|
+
signal
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
function getSupplierIntakePacket(fetcher, id2, input = {}, signal) {
|
|
622
|
+
return fetcher(`${base3}/submissions/${encodeURIComponent(id2)}/packet${input.download ? "?download=1" : ""}`, {
|
|
623
|
+
method: "GET",
|
|
624
|
+
signal
|
|
625
|
+
});
|
|
626
|
+
}
|
|
596
627
|
function listSupplierIntakeLinks(request) {
|
|
597
628
|
return request(base3 + "/links", { method: "GET" });
|
|
598
629
|
}
|
|
@@ -614,21 +645,35 @@ function reviewSupplierIntakeSubmission(request, id2) {
|
|
|
614
645
|
});
|
|
615
646
|
}
|
|
616
647
|
|
|
648
|
+
// ../../packages/api-client/dist/commerce/supplier-documents.js
|
|
649
|
+
var base4 = "/commerce/supplier/documents";
|
|
650
|
+
function uploadSupplierDocument(fetcher, file, signal) {
|
|
651
|
+
const body = new FormData();
|
|
652
|
+
body.set("file", file);
|
|
653
|
+
return fetcher(base4, { method: "POST", body, signal });
|
|
654
|
+
}
|
|
655
|
+
function getSupplierDocument(fetcher, id2, input = {}, signal) {
|
|
656
|
+
return fetcher(`${base4}/${encodeURIComponent(id2)}` + queryString(input), {
|
|
657
|
+
method: "GET",
|
|
658
|
+
signal
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
|
|
617
662
|
// ../../packages/api-client/dist/commerce/licenses.js
|
|
618
|
-
var
|
|
663
|
+
var base5 = "/internal/v1/controlplane-licenses";
|
|
619
664
|
function listControlplaneLicenses(request, signal) {
|
|
620
|
-
return request(
|
|
665
|
+
return request(base5, { method: "GET", signal });
|
|
621
666
|
}
|
|
622
667
|
function getControlplaneLicense(request, id2) {
|
|
623
|
-
return request(`${
|
|
668
|
+
return request(`${base5}/${encodeURIComponent(id2)}`, {
|
|
624
669
|
method: "GET"
|
|
625
670
|
});
|
|
626
671
|
}
|
|
627
672
|
function createControlplaneLicense(request, body) {
|
|
628
|
-
return request(
|
|
673
|
+
return request(base5, { method: "POST", body });
|
|
629
674
|
}
|
|
630
675
|
function revokeControlplaneLicense(request, id2) {
|
|
631
|
-
return request(`${
|
|
676
|
+
return request(`${base5}/${encodeURIComponent(id2)}/revoke`, {
|
|
632
677
|
method: "POST",
|
|
633
678
|
body: {}
|
|
634
679
|
});
|
|
@@ -674,18 +719,25 @@ export {
|
|
|
674
719
|
getBillingPaymentMethod,
|
|
675
720
|
getBillingSummary,
|
|
676
721
|
getCapacityListing,
|
|
722
|
+
getCapacityListingImage,
|
|
723
|
+
getCapacityListingSpecPdf,
|
|
677
724
|
getCommerceOrganization,
|
|
725
|
+
getContractFile,
|
|
678
726
|
getControlplaneLicense,
|
|
679
727
|
getGTMPersonalWorkspace,
|
|
680
728
|
getGTMTicket,
|
|
681
729
|
getInferenceWallet,
|
|
682
730
|
getReservation,
|
|
683
731
|
getReservationHour,
|
|
732
|
+
getReservationSpecPdf,
|
|
684
733
|
getReservationUsage,
|
|
685
734
|
getShowback,
|
|
686
735
|
getStaffFacility,
|
|
687
736
|
getStorageAgreement,
|
|
688
737
|
getStorageBill,
|
|
738
|
+
getSupplierDocument,
|
|
739
|
+
getSupplierIntakeDocument,
|
|
740
|
+
getSupplierIntakePacket,
|
|
689
741
|
getSupplierIntakeSubmission,
|
|
690
742
|
getSupplierPaymentAccount,
|
|
691
743
|
listAdminInvoices,
|
|
@@ -741,5 +793,7 @@ export {
|
|
|
741
793
|
updateGTMComment,
|
|
742
794
|
updateGTMCompany,
|
|
743
795
|
updateGTMDeal,
|
|
744
|
-
updateGTMTask
|
|
796
|
+
updateGTMTask,
|
|
797
|
+
uploadContractFile,
|
|
798
|
+
uploadSupplierDocument
|
|
745
799
|
};
|