@bluecopa/core 0.1.59 → 0.1.60

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/dist/index.es.js CHANGED
@@ -11841,7 +11841,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
11841
11841
  processManualDial,
11842
11842
  refreshToken
11843
11843
  }, Symbol.toStringTag, { value: "Module" }));
11844
- const BASE$4 = "/api/v1/webcron/webhooks";
11844
+ const BASE$4 = "/webcron/webhooks";
11845
11845
  async function listWebhooks() {
11846
11846
  var _a, _b, _c, _d;
11847
11847
  try {
@@ -11940,7 +11940,7 @@ async function createWebhookSchedule(webhookId, data) {
11940
11940
  throw { message: ((_c = (_b = e.response) == null ? void 0 : _b.data) == null ? void 0 : _c.message) || "Failed to create schedule", status: ((_d = e.response) == null ? void 0 : _d.status) || 500 };
11941
11941
  }
11942
11942
  }
11943
- const BASE$3 = "/api/v1/webcron/schedules";
11943
+ const BASE$3 = "/webcron/schedules";
11944
11944
  async function getSchedule(id) {
11945
11945
  var _a, _b, _c, _d;
11946
11946
  if (!(id == null ? void 0 : id.trim())) throw { message: "id is required", status: 400 };
@@ -12006,7 +12006,7 @@ async function triggerSchedule(id) {
12006
12006
  throw { message: ((_c = (_b = e.response) == null ? void 0 : _b.data) == null ? void 0 : _c.message) || "Failed to trigger schedule", status: ((_d = e.response) == null ? void 0 : _d.status) || 500 };
12007
12007
  }
12008
12008
  }
12009
- const BASE$2 = "/api/v1/webcron/executions";
12009
+ const BASE$2 = "/webcron/executions";
12010
12010
  async function listExecutions(params) {
12011
12011
  var _a, _b, _c, _d;
12012
12012
  try {
@@ -12039,7 +12039,7 @@ async function retryExecution(id) {
12039
12039
  throw { message: ((_c = (_b = e.response) == null ? void 0 : _b.data) == null ? void 0 : _c.message) || "Failed to retry execution", status: ((_d = e.response) == null ? void 0 : _d.status) || 500 };
12040
12040
  }
12041
12041
  }
12042
- const BASE$1 = "/api/v1/webcron/tasks";
12042
+ const BASE$1 = "/webcron/tasks";
12043
12043
  async function listTasks() {
12044
12044
  var _a, _b, _c, _d;
12045
12045
  try {
@@ -12116,7 +12116,7 @@ async function signalTask(id, data, branchId) {
12116
12116
  throw { message: ((_c = (_b = e.response) == null ? void 0 : _b.data) == null ? void 0 : _c.message) || "Failed to signal task", status: ((_d = e.response) == null ? void 0 : _d.status) || 500 };
12117
12117
  }
12118
12118
  }
12119
- const BASE = "/api/v1/webcron/inspection/bins";
12119
+ const BASE = "/webcron/inspection/bins";
12120
12120
  async function listBins() {
12121
12121
  var _a, _b, _c, _d;
12122
12122
  try {
@@ -12187,7 +12187,7 @@ async function triggerWorkflowById(id, data) {
12187
12187
  }
12188
12188
  try {
12189
12189
  const response = await apiClient.post(
12190
- `/api/v1/workflow/trigger/${id.trim()}`,
12190
+ `/workflow/trigger/${id.trim()}`,
12191
12191
  data ?? {}
12192
12192
  );
12193
12193
  return ((_a = response.data) == null ? void 0 : _a.data) ?? response.data;