queuebear 0.1.5 → 0.1.6

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.d.ts CHANGED
@@ -49,7 +49,7 @@ type StepType = "run" | "sleep" | "call" | "continuation" | "wait_event";
49
49
  * Workflow run information returned by client.getStatus()
50
50
  */
51
51
  interface WorkflowRun {
52
- runId: string;
52
+ id: string;
53
53
  workflowId: string;
54
54
  workflowUrl: string;
55
55
  status: WorkflowRunStatus;
@@ -81,7 +81,7 @@ interface WorkflowStep {
81
81
  * Response from client.trigger()
82
82
  */
83
83
  interface TriggerResponse {
84
- runId: string;
84
+ id: string;
85
85
  }
86
86
  /**
87
87
  * Response from client.getStatus() - includes run details and steps
@@ -778,7 +778,7 @@ declare class WorkflowsAPI extends BaseClient {
778
778
  *
779
779
  * @example
780
780
  * ```typescript
781
- * const { runId } = await qb.workflows.trigger(
781
+ * const { id } = await qb.workflows.trigger(
782
782
  * "user-onboarding",
783
783
  * "https://your-app.com/api/workflows/onboarding",
784
784
  * { userId: "123", email: "user@example.com" },
@@ -822,12 +822,12 @@ declare class WorkflowsAPI extends BaseClient {
822
822
  * @example
823
823
  * ```typescript
824
824
  * const result = await qb.workflows.retry(runId);
825
- * console.log(result.runId);
825
+ * console.log(result.id);
826
826
  * console.log(result.resumed); // true
827
827
  * ```
828
828
  */
829
829
  retry(runId: string): Promise<{
830
- runId: string;
830
+ id: string;
831
831
  resumed: boolean;
832
832
  }>;
833
833
  /**
package/dist/index.js CHANGED
@@ -468,7 +468,7 @@ var WorkflowsAPI = class extends BaseClient {
468
468
  *
469
469
  * @example
470
470
  * ```typescript
471
- * const { runId } = await qb.workflows.trigger(
471
+ * const { id } = await qb.workflows.trigger(
472
472
  * "user-onboarding",
473
473
  * "https://your-app.com/api/workflows/onboarding",
474
474
  * { userId: "123", email: "user@example.com" },
@@ -526,7 +526,7 @@ var WorkflowsAPI = class extends BaseClient {
526
526
  * @example
527
527
  * ```typescript
528
528
  * const result = await qb.workflows.retry(runId);
529
- * console.log(result.runId);
529
+ * console.log(result.id);
530
530
  * console.log(result.resumed); // true
531
531
  * ```
532
532
  */
@@ -646,8 +646,8 @@ var WorkflowsAPI = class extends BaseClient {
646
646
  */
647
647
  async triggerAndWait(workflowId, workflowUrl, input, options) {
648
648
  const { pollIntervalMs, timeoutMs, ...triggerOptions } = options || {};
649
- const { runId } = await this.trigger(workflowId, workflowUrl, input, triggerOptions);
650
- return this.waitForCompletion(runId, { pollIntervalMs, timeoutMs });
649
+ const { id } = await this.trigger(workflowId, workflowUrl, input, triggerOptions);
650
+ return this.waitForCompletion(id, { pollIntervalMs, timeoutMs });
651
651
  }
652
652
  };
653
653
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "queuebear",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "QueueBear SDK for message queues, scheduled jobs, and durable workflows",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",