@ornncompute/cli 1.0.327 → 1.0.329

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.327",
3
+ "version": "1.0.329",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -567,6 +567,22 @@ function listServicingRequirements(request, query = {}, signal) {
567
567
  signal
568
568
  });
569
569
  }
570
+ function attachmentPath(org, note) {
571
+ return `/v1/orchestrator/customer-profiles/${encodeURIComponent(org)}/requirements/${encodeURIComponent(note)}/attachment`;
572
+ }
573
+ function uploadSupplierNoteFile(fetcher, org, note, file) {
574
+ return fetcher(attachmentPath(org, note) + "?" + new URLSearchParams({ filename: file.name }), {
575
+ method: "PUT",
576
+ body: file,
577
+ headers: { "Content-Type": "application/octet-stream" }
578
+ });
579
+ }
580
+ function downloadSupplierNoteFile(fetcher, org, note, filename) {
581
+ return fetcher(attachmentPath(org, note) + "?" + new URLSearchParams({ filename }), {
582
+ method: "GET",
583
+ cache: "no-store"
584
+ });
585
+ }
570
586
 
571
587
  // ../../packages/api-client/dist/orchestrator/maintenance-history.js
572
588
  function listMaintenanceHistory(request, filter = {}, signal) {
@@ -1194,6 +1210,7 @@ export {
1194
1210
  deleteVirtualMachine,
1195
1211
  disksSocketPath,
1196
1212
  downloadDriveFile,
1213
+ downloadSupplierNoteFile,
1197
1214
  driveArchivePath,
1198
1215
  driveFilePath,
1199
1216
  driveFolderArchivePath,
@@ -1339,5 +1356,6 @@ export {
1339
1356
  updateSshBastion,
1340
1357
  updateVirtualMachineKeys,
1341
1358
  updateVirtualMachineRun,
1359
+ uploadSupplierNoteFile,
1342
1360
  verifyEnrollmentConnection
1343
1361
  };