@bitfab/sdk 0.45.0 → 0.47.0

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.
@@ -6,7 +6,7 @@ import {
6
6
  flushTraces,
7
7
  parseRetryAfterMs,
8
8
  serializePayloadBody
9
- } from "./chunk-SILI6DDS.js";
9
+ } from "./chunk-RQEYVHGV.js";
10
10
  export {
11
11
  BitfabError,
12
12
  HttpClient,
@@ -16,4 +16,4 @@ export {
16
16
  parseRetryAfterMs,
17
17
  serializePayloadBody
18
18
  };
19
- //# sourceMappingURL=http-QGTV3X7R.js.map
19
+ //# sourceMappingURL=http-224ASOWH.js.map
@@ -6,7 +6,7 @@ import {
6
6
  flushTraces,
7
7
  parseRetryAfterMs,
8
8
  serializePayloadBody
9
- } from "./chunk-TCOD5O2B.js";
9
+ } from "./chunk-YKHZGYAC.js";
10
10
  import "./chunk-H6LZRFMN.js";
11
11
  export {
12
12
  BitfabError,
@@ -17,4 +17,4 @@ export {
17
17
  parseRetryAfterMs,
18
18
  serializePayloadBody
19
19
  };
20
- //# sourceMappingURL=http-E7RYN3BX.js.map
20
+ //# sourceMappingURL=http-BUAOWCLI.js.map
package/dist/index.cjs CHANGED
@@ -42,7 +42,7 @@ var __version__, __packageName__;
42
42
  var init_version_generated = __esm({
43
43
  "src/version.generated.ts"() {
44
44
  "use strict";
45
- __version__ = "0.45.0";
45
+ __version__ = "0.47.0";
46
46
  __packageName__ = "@bitfab/sdk";
47
47
  }
48
48
  });
@@ -4571,20 +4571,20 @@ var LabelsClient = class {
4571
4571
  constructor(httpClient) {
4572
4572
  this.httpClient = httpClient;
4573
4573
  }
4574
- async save(params) {
4574
+ async save(update, testRunId) {
4575
+ const [outcome] = await this.saveAll([update], testRunId);
4576
+ return outcome;
4577
+ }
4578
+ async saveAll(updates, testRunId) {
4575
4579
  const response = await this.httpClient.request(
4576
4580
  LABELS_PATH,
4577
4581
  {
4578
- labels: params.labels,
4579
- ...params.testRunId === void 0 ? {} : { testRunId: params.testRunId }
4582
+ labels: updates,
4583
+ ...testRunId === void 0 ? {} : { testRunId }
4580
4584
  }
4581
4585
  );
4582
4586
  return response.labels;
4583
4587
  }
4584
- async saveOne(update, testRunId) {
4585
- const [outcome] = await this.save({ labels: [update], testRunId });
4586
- return outcome;
4587
- }
4588
4588
  };
4589
4589
 
4590
4590
  // src/langgraph.ts