@cloudflare/workers-types 4.20260506.1 → 4.20260507.1
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/2021-11-03/index.d.ts +3 -15
- package/2021-11-03/index.ts +3 -15
- package/2022-01-31/index.d.ts +3 -15
- package/2022-01-31/index.ts +3 -15
- package/2022-03-21/index.d.ts +3 -15
- package/2022-03-21/index.ts +3 -15
- package/2022-08-04/index.d.ts +3 -15
- package/2022-08-04/index.ts +3 -15
- package/2022-10-31/index.d.ts +3 -15
- package/2022-10-31/index.ts +3 -15
- package/2022-11-30/index.d.ts +3 -15
- package/2022-11-30/index.ts +3 -15
- package/2023-03-01/index.d.ts +3 -15
- package/2023-03-01/index.ts +3 -15
- package/2023-07-01/index.d.ts +3 -15
- package/2023-07-01/index.ts +3 -15
- package/experimental/index.d.ts +3 -15
- package/experimental/index.ts +3 -15
- package/index.d.ts +3 -15
- package/index.ts +3 -15
- package/latest/index.d.ts +3 -15
- package/latest/index.ts +3 -15
- package/oldest/index.d.ts +3 -15
- package/oldest/index.ts +3 -15
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -13550,28 +13550,16 @@ declare namespace CloudflareWorkersModule {
|
|
|
13550
13550
|
attempt: number;
|
|
13551
13551
|
config: WorkflowStepConfig;
|
|
13552
13552
|
};
|
|
13553
|
-
export interface RollbackContext<T> {
|
|
13554
|
-
error: Error;
|
|
13555
|
-
output: NonNullable<T> | undefined;
|
|
13556
|
-
stepName: string;
|
|
13557
|
-
}
|
|
13558
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13559
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13560
|
-
rollback(
|
|
13561
|
-
config: WorkflowStepConfig,
|
|
13562
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13563
|
-
): StepPromise<T>;
|
|
13564
|
-
}
|
|
13565
13553
|
export abstract class WorkflowStep {
|
|
13566
13554
|
do<T extends Rpc.Serializable<T>>(
|
|
13567
13555
|
name: string,
|
|
13568
13556
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13569
|
-
):
|
|
13557
|
+
): Promise<T>;
|
|
13570
13558
|
do<T extends Rpc.Serializable<T>>(
|
|
13571
13559
|
name: string,
|
|
13572
13560
|
config: WorkflowStepConfig,
|
|
13573
13561
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13574
|
-
):
|
|
13562
|
+
): Promise<T>;
|
|
13575
13563
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13576
13564
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13577
13565
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13580,7 +13568,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13580
13568
|
type: string;
|
|
13581
13569
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13582
13570
|
},
|
|
13583
|
-
):
|
|
13571
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13584
13572
|
}
|
|
13585
13573
|
export type WorkflowInstanceStatus =
|
|
13586
13574
|
| "queued"
|
package/2021-11-03/index.ts
CHANGED
|
@@ -13521,28 +13521,16 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13521
13521
|
attempt: number;
|
|
13522
13522
|
config: WorkflowStepConfig;
|
|
13523
13523
|
};
|
|
13524
|
-
export interface RollbackContext<T> {
|
|
13525
|
-
error: Error;
|
|
13526
|
-
output: NonNullable<T> | undefined;
|
|
13527
|
-
stepName: string;
|
|
13528
|
-
}
|
|
13529
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13530
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13531
|
-
rollback(
|
|
13532
|
-
config: WorkflowStepConfig,
|
|
13533
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13534
|
-
): StepPromise<T>;
|
|
13535
|
-
}
|
|
13536
13524
|
export abstract class WorkflowStep {
|
|
13537
13525
|
do<T extends Rpc.Serializable<T>>(
|
|
13538
13526
|
name: string,
|
|
13539
13527
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13540
|
-
):
|
|
13528
|
+
): Promise<T>;
|
|
13541
13529
|
do<T extends Rpc.Serializable<T>>(
|
|
13542
13530
|
name: string,
|
|
13543
13531
|
config: WorkflowStepConfig,
|
|
13544
13532
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13545
|
-
):
|
|
13533
|
+
): Promise<T>;
|
|
13546
13534
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13547
13535
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13548
13536
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13551,7 +13539,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13551
13539
|
type: string;
|
|
13552
13540
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13553
13541
|
},
|
|
13554
|
-
):
|
|
13542
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13555
13543
|
}
|
|
13556
13544
|
export type WorkflowInstanceStatus =
|
|
13557
13545
|
| "queued"
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -13617,28 +13617,16 @@ declare namespace CloudflareWorkersModule {
|
|
|
13617
13617
|
attempt: number;
|
|
13618
13618
|
config: WorkflowStepConfig;
|
|
13619
13619
|
};
|
|
13620
|
-
export interface RollbackContext<T> {
|
|
13621
|
-
error: Error;
|
|
13622
|
-
output: NonNullable<T> | undefined;
|
|
13623
|
-
stepName: string;
|
|
13624
|
-
}
|
|
13625
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13626
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13627
|
-
rollback(
|
|
13628
|
-
config: WorkflowStepConfig,
|
|
13629
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13630
|
-
): StepPromise<T>;
|
|
13631
|
-
}
|
|
13632
13620
|
export abstract class WorkflowStep {
|
|
13633
13621
|
do<T extends Rpc.Serializable<T>>(
|
|
13634
13622
|
name: string,
|
|
13635
13623
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13636
|
-
):
|
|
13624
|
+
): Promise<T>;
|
|
13637
13625
|
do<T extends Rpc.Serializable<T>>(
|
|
13638
13626
|
name: string,
|
|
13639
13627
|
config: WorkflowStepConfig,
|
|
13640
13628
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13641
|
-
):
|
|
13629
|
+
): Promise<T>;
|
|
13642
13630
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13643
13631
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13644
13632
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13647,7 +13635,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13647
13635
|
type: string;
|
|
13648
13636
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13649
13637
|
},
|
|
13650
|
-
):
|
|
13638
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13651
13639
|
}
|
|
13652
13640
|
export type WorkflowInstanceStatus =
|
|
13653
13641
|
| "queued"
|
package/2022-01-31/index.ts
CHANGED
|
@@ -13588,28 +13588,16 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13588
13588
|
attempt: number;
|
|
13589
13589
|
config: WorkflowStepConfig;
|
|
13590
13590
|
};
|
|
13591
|
-
export interface RollbackContext<T> {
|
|
13592
|
-
error: Error;
|
|
13593
|
-
output: NonNullable<T> | undefined;
|
|
13594
|
-
stepName: string;
|
|
13595
|
-
}
|
|
13596
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13597
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13598
|
-
rollback(
|
|
13599
|
-
config: WorkflowStepConfig,
|
|
13600
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13601
|
-
): StepPromise<T>;
|
|
13602
|
-
}
|
|
13603
13591
|
export abstract class WorkflowStep {
|
|
13604
13592
|
do<T extends Rpc.Serializable<T>>(
|
|
13605
13593
|
name: string,
|
|
13606
13594
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13607
|
-
):
|
|
13595
|
+
): Promise<T>;
|
|
13608
13596
|
do<T extends Rpc.Serializable<T>>(
|
|
13609
13597
|
name: string,
|
|
13610
13598
|
config: WorkflowStepConfig,
|
|
13611
13599
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13612
|
-
):
|
|
13600
|
+
): Promise<T>;
|
|
13613
13601
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13614
13602
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13615
13603
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13618,7 +13606,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13618
13606
|
type: string;
|
|
13619
13607
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13620
13608
|
},
|
|
13621
|
-
):
|
|
13609
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13622
13610
|
}
|
|
13623
13611
|
export type WorkflowInstanceStatus =
|
|
13624
13612
|
| "queued"
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -13626,28 +13626,16 @@ declare namespace CloudflareWorkersModule {
|
|
|
13626
13626
|
attempt: number;
|
|
13627
13627
|
config: WorkflowStepConfig;
|
|
13628
13628
|
};
|
|
13629
|
-
export interface RollbackContext<T> {
|
|
13630
|
-
error: Error;
|
|
13631
|
-
output: NonNullable<T> | undefined;
|
|
13632
|
-
stepName: string;
|
|
13633
|
-
}
|
|
13634
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13635
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13636
|
-
rollback(
|
|
13637
|
-
config: WorkflowStepConfig,
|
|
13638
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13639
|
-
): StepPromise<T>;
|
|
13640
|
-
}
|
|
13641
13629
|
export abstract class WorkflowStep {
|
|
13642
13630
|
do<T extends Rpc.Serializable<T>>(
|
|
13643
13631
|
name: string,
|
|
13644
13632
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13645
|
-
):
|
|
13633
|
+
): Promise<T>;
|
|
13646
13634
|
do<T extends Rpc.Serializable<T>>(
|
|
13647
13635
|
name: string,
|
|
13648
13636
|
config: WorkflowStepConfig,
|
|
13649
13637
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13650
|
-
):
|
|
13638
|
+
): Promise<T>;
|
|
13651
13639
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13652
13640
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13653
13641
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13656,7 +13644,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13656
13644
|
type: string;
|
|
13657
13645
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13658
13646
|
},
|
|
13659
|
-
):
|
|
13647
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13660
13648
|
}
|
|
13661
13649
|
export type WorkflowInstanceStatus =
|
|
13662
13650
|
| "queued"
|
package/2022-03-21/index.ts
CHANGED
|
@@ -13597,28 +13597,16 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13597
13597
|
attempt: number;
|
|
13598
13598
|
config: WorkflowStepConfig;
|
|
13599
13599
|
};
|
|
13600
|
-
export interface RollbackContext<T> {
|
|
13601
|
-
error: Error;
|
|
13602
|
-
output: NonNullable<T> | undefined;
|
|
13603
|
-
stepName: string;
|
|
13604
|
-
}
|
|
13605
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13606
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13607
|
-
rollback(
|
|
13608
|
-
config: WorkflowStepConfig,
|
|
13609
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13610
|
-
): StepPromise<T>;
|
|
13611
|
-
}
|
|
13612
13600
|
export abstract class WorkflowStep {
|
|
13613
13601
|
do<T extends Rpc.Serializable<T>>(
|
|
13614
13602
|
name: string,
|
|
13615
13603
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13616
|
-
):
|
|
13604
|
+
): Promise<T>;
|
|
13617
13605
|
do<T extends Rpc.Serializable<T>>(
|
|
13618
13606
|
name: string,
|
|
13619
13607
|
config: WorkflowStepConfig,
|
|
13620
13608
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13621
|
-
):
|
|
13609
|
+
): Promise<T>;
|
|
13622
13610
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13623
13611
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13624
13612
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13627,7 +13615,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13627
13615
|
type: string;
|
|
13628
13616
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13629
13617
|
},
|
|
13630
|
-
):
|
|
13618
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13631
13619
|
}
|
|
13632
13620
|
export type WorkflowInstanceStatus =
|
|
13633
13621
|
| "queued"
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -13627,28 +13627,16 @@ declare namespace CloudflareWorkersModule {
|
|
|
13627
13627
|
attempt: number;
|
|
13628
13628
|
config: WorkflowStepConfig;
|
|
13629
13629
|
};
|
|
13630
|
-
export interface RollbackContext<T> {
|
|
13631
|
-
error: Error;
|
|
13632
|
-
output: NonNullable<T> | undefined;
|
|
13633
|
-
stepName: string;
|
|
13634
|
-
}
|
|
13635
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13636
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13637
|
-
rollback(
|
|
13638
|
-
config: WorkflowStepConfig,
|
|
13639
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13640
|
-
): StepPromise<T>;
|
|
13641
|
-
}
|
|
13642
13630
|
export abstract class WorkflowStep {
|
|
13643
13631
|
do<T extends Rpc.Serializable<T>>(
|
|
13644
13632
|
name: string,
|
|
13645
13633
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13646
|
-
):
|
|
13634
|
+
): Promise<T>;
|
|
13647
13635
|
do<T extends Rpc.Serializable<T>>(
|
|
13648
13636
|
name: string,
|
|
13649
13637
|
config: WorkflowStepConfig,
|
|
13650
13638
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13651
|
-
):
|
|
13639
|
+
): Promise<T>;
|
|
13652
13640
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13653
13641
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13654
13642
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13657,7 +13645,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13657
13645
|
type: string;
|
|
13658
13646
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13659
13647
|
},
|
|
13660
|
-
):
|
|
13648
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13661
13649
|
}
|
|
13662
13650
|
export type WorkflowInstanceStatus =
|
|
13663
13651
|
| "queued"
|
package/2022-08-04/index.ts
CHANGED
|
@@ -13598,28 +13598,16 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13598
13598
|
attempt: number;
|
|
13599
13599
|
config: WorkflowStepConfig;
|
|
13600
13600
|
};
|
|
13601
|
-
export interface RollbackContext<T> {
|
|
13602
|
-
error: Error;
|
|
13603
|
-
output: NonNullable<T> | undefined;
|
|
13604
|
-
stepName: string;
|
|
13605
|
-
}
|
|
13606
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13607
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13608
|
-
rollback(
|
|
13609
|
-
config: WorkflowStepConfig,
|
|
13610
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13611
|
-
): StepPromise<T>;
|
|
13612
|
-
}
|
|
13613
13601
|
export abstract class WorkflowStep {
|
|
13614
13602
|
do<T extends Rpc.Serializable<T>>(
|
|
13615
13603
|
name: string,
|
|
13616
13604
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13617
|
-
):
|
|
13605
|
+
): Promise<T>;
|
|
13618
13606
|
do<T extends Rpc.Serializable<T>>(
|
|
13619
13607
|
name: string,
|
|
13620
13608
|
config: WorkflowStepConfig,
|
|
13621
13609
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13622
|
-
):
|
|
13610
|
+
): Promise<T>;
|
|
13623
13611
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13624
13612
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13625
13613
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13628,7 +13616,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13628
13616
|
type: string;
|
|
13629
13617
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13630
13618
|
},
|
|
13631
|
-
):
|
|
13619
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13632
13620
|
}
|
|
13633
13621
|
export type WorkflowInstanceStatus =
|
|
13634
13622
|
| "queued"
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -13647,28 +13647,16 @@ declare namespace CloudflareWorkersModule {
|
|
|
13647
13647
|
attempt: number;
|
|
13648
13648
|
config: WorkflowStepConfig;
|
|
13649
13649
|
};
|
|
13650
|
-
export interface RollbackContext<T> {
|
|
13651
|
-
error: Error;
|
|
13652
|
-
output: NonNullable<T> | undefined;
|
|
13653
|
-
stepName: string;
|
|
13654
|
-
}
|
|
13655
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13656
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13657
|
-
rollback(
|
|
13658
|
-
config: WorkflowStepConfig,
|
|
13659
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13660
|
-
): StepPromise<T>;
|
|
13661
|
-
}
|
|
13662
13650
|
export abstract class WorkflowStep {
|
|
13663
13651
|
do<T extends Rpc.Serializable<T>>(
|
|
13664
13652
|
name: string,
|
|
13665
13653
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13666
|
-
):
|
|
13654
|
+
): Promise<T>;
|
|
13667
13655
|
do<T extends Rpc.Serializable<T>>(
|
|
13668
13656
|
name: string,
|
|
13669
13657
|
config: WorkflowStepConfig,
|
|
13670
13658
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13671
|
-
):
|
|
13659
|
+
): Promise<T>;
|
|
13672
13660
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13673
13661
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13674
13662
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13677,7 +13665,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13677
13665
|
type: string;
|
|
13678
13666
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13679
13667
|
},
|
|
13680
|
-
):
|
|
13668
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13681
13669
|
}
|
|
13682
13670
|
export type WorkflowInstanceStatus =
|
|
13683
13671
|
| "queued"
|
package/2022-10-31/index.ts
CHANGED
|
@@ -13618,28 +13618,16 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13618
13618
|
attempt: number;
|
|
13619
13619
|
config: WorkflowStepConfig;
|
|
13620
13620
|
};
|
|
13621
|
-
export interface RollbackContext<T> {
|
|
13622
|
-
error: Error;
|
|
13623
|
-
output: NonNullable<T> | undefined;
|
|
13624
|
-
stepName: string;
|
|
13625
|
-
}
|
|
13626
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13627
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13628
|
-
rollback(
|
|
13629
|
-
config: WorkflowStepConfig,
|
|
13630
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13631
|
-
): StepPromise<T>;
|
|
13632
|
-
}
|
|
13633
13621
|
export abstract class WorkflowStep {
|
|
13634
13622
|
do<T extends Rpc.Serializable<T>>(
|
|
13635
13623
|
name: string,
|
|
13636
13624
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13637
|
-
):
|
|
13625
|
+
): Promise<T>;
|
|
13638
13626
|
do<T extends Rpc.Serializable<T>>(
|
|
13639
13627
|
name: string,
|
|
13640
13628
|
config: WorkflowStepConfig,
|
|
13641
13629
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13642
|
-
):
|
|
13630
|
+
): Promise<T>;
|
|
13643
13631
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13644
13632
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13645
13633
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13648,7 +13636,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13648
13636
|
type: string;
|
|
13649
13637
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13650
13638
|
},
|
|
13651
|
-
):
|
|
13639
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13652
13640
|
}
|
|
13653
13641
|
export type WorkflowInstanceStatus =
|
|
13654
13642
|
| "queued"
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -13652,28 +13652,16 @@ declare namespace CloudflareWorkersModule {
|
|
|
13652
13652
|
attempt: number;
|
|
13653
13653
|
config: WorkflowStepConfig;
|
|
13654
13654
|
};
|
|
13655
|
-
export interface RollbackContext<T> {
|
|
13656
|
-
error: Error;
|
|
13657
|
-
output: NonNullable<T> | undefined;
|
|
13658
|
-
stepName: string;
|
|
13659
|
-
}
|
|
13660
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13661
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13662
|
-
rollback(
|
|
13663
|
-
config: WorkflowStepConfig,
|
|
13664
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13665
|
-
): StepPromise<T>;
|
|
13666
|
-
}
|
|
13667
13655
|
export abstract class WorkflowStep {
|
|
13668
13656
|
do<T extends Rpc.Serializable<T>>(
|
|
13669
13657
|
name: string,
|
|
13670
13658
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13671
|
-
):
|
|
13659
|
+
): Promise<T>;
|
|
13672
13660
|
do<T extends Rpc.Serializable<T>>(
|
|
13673
13661
|
name: string,
|
|
13674
13662
|
config: WorkflowStepConfig,
|
|
13675
13663
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13676
|
-
):
|
|
13664
|
+
): Promise<T>;
|
|
13677
13665
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13678
13666
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13679
13667
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13682,7 +13670,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13682
13670
|
type: string;
|
|
13683
13671
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13684
13672
|
},
|
|
13685
|
-
):
|
|
13673
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13686
13674
|
}
|
|
13687
13675
|
export type WorkflowInstanceStatus =
|
|
13688
13676
|
| "queued"
|
package/2022-11-30/index.ts
CHANGED
|
@@ -13623,28 +13623,16 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13623
13623
|
attempt: number;
|
|
13624
13624
|
config: WorkflowStepConfig;
|
|
13625
13625
|
};
|
|
13626
|
-
export interface RollbackContext<T> {
|
|
13627
|
-
error: Error;
|
|
13628
|
-
output: NonNullable<T> | undefined;
|
|
13629
|
-
stepName: string;
|
|
13630
|
-
}
|
|
13631
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13632
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13633
|
-
rollback(
|
|
13634
|
-
config: WorkflowStepConfig,
|
|
13635
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13636
|
-
): StepPromise<T>;
|
|
13637
|
-
}
|
|
13638
13626
|
export abstract class WorkflowStep {
|
|
13639
13627
|
do<T extends Rpc.Serializable<T>>(
|
|
13640
13628
|
name: string,
|
|
13641
13629
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13642
|
-
):
|
|
13630
|
+
): Promise<T>;
|
|
13643
13631
|
do<T extends Rpc.Serializable<T>>(
|
|
13644
13632
|
name: string,
|
|
13645
13633
|
config: WorkflowStepConfig,
|
|
13646
13634
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13647
|
-
):
|
|
13635
|
+
): Promise<T>;
|
|
13648
13636
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13649
13637
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13650
13638
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13653,7 +13641,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13653
13641
|
type: string;
|
|
13654
13642
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13655
13643
|
},
|
|
13656
|
-
):
|
|
13644
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13657
13645
|
}
|
|
13658
13646
|
export type WorkflowInstanceStatus =
|
|
13659
13647
|
| "queued"
|
package/2023-03-01/index.d.ts
CHANGED
|
@@ -13658,28 +13658,16 @@ declare namespace CloudflareWorkersModule {
|
|
|
13658
13658
|
attempt: number;
|
|
13659
13659
|
config: WorkflowStepConfig;
|
|
13660
13660
|
};
|
|
13661
|
-
export interface RollbackContext<T> {
|
|
13662
|
-
error: Error;
|
|
13663
|
-
output: NonNullable<T> | undefined;
|
|
13664
|
-
stepName: string;
|
|
13665
|
-
}
|
|
13666
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13667
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13668
|
-
rollback(
|
|
13669
|
-
config: WorkflowStepConfig,
|
|
13670
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13671
|
-
): StepPromise<T>;
|
|
13672
|
-
}
|
|
13673
13661
|
export abstract class WorkflowStep {
|
|
13674
13662
|
do<T extends Rpc.Serializable<T>>(
|
|
13675
13663
|
name: string,
|
|
13676
13664
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13677
|
-
):
|
|
13665
|
+
): Promise<T>;
|
|
13678
13666
|
do<T extends Rpc.Serializable<T>>(
|
|
13679
13667
|
name: string,
|
|
13680
13668
|
config: WorkflowStepConfig,
|
|
13681
13669
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13682
|
-
):
|
|
13670
|
+
): Promise<T>;
|
|
13683
13671
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13684
13672
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13685
13673
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13688,7 +13676,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13688
13676
|
type: string;
|
|
13689
13677
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13690
13678
|
},
|
|
13691
|
-
):
|
|
13679
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13692
13680
|
}
|
|
13693
13681
|
export type WorkflowInstanceStatus =
|
|
13694
13682
|
| "queued"
|
package/2023-03-01/index.ts
CHANGED
|
@@ -13629,28 +13629,16 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13629
13629
|
attempt: number;
|
|
13630
13630
|
config: WorkflowStepConfig;
|
|
13631
13631
|
};
|
|
13632
|
-
export interface RollbackContext<T> {
|
|
13633
|
-
error: Error;
|
|
13634
|
-
output: NonNullable<T> | undefined;
|
|
13635
|
-
stepName: string;
|
|
13636
|
-
}
|
|
13637
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13638
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13639
|
-
rollback(
|
|
13640
|
-
config: WorkflowStepConfig,
|
|
13641
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13642
|
-
): StepPromise<T>;
|
|
13643
|
-
}
|
|
13644
13632
|
export abstract class WorkflowStep {
|
|
13645
13633
|
do<T extends Rpc.Serializable<T>>(
|
|
13646
13634
|
name: string,
|
|
13647
13635
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13648
|
-
):
|
|
13636
|
+
): Promise<T>;
|
|
13649
13637
|
do<T extends Rpc.Serializable<T>>(
|
|
13650
13638
|
name: string,
|
|
13651
13639
|
config: WorkflowStepConfig,
|
|
13652
13640
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13653
|
-
):
|
|
13641
|
+
): Promise<T>;
|
|
13654
13642
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13655
13643
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13656
13644
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13659,7 +13647,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13659
13647
|
type: string;
|
|
13660
13648
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13661
13649
|
},
|
|
13662
|
-
):
|
|
13650
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13663
13651
|
}
|
|
13664
13652
|
export type WorkflowInstanceStatus =
|
|
13665
13653
|
| "queued"
|
package/2023-07-01/index.d.ts
CHANGED
|
@@ -13658,28 +13658,16 @@ declare namespace CloudflareWorkersModule {
|
|
|
13658
13658
|
attempt: number;
|
|
13659
13659
|
config: WorkflowStepConfig;
|
|
13660
13660
|
};
|
|
13661
|
-
export interface RollbackContext<T> {
|
|
13662
|
-
error: Error;
|
|
13663
|
-
output: NonNullable<T> | undefined;
|
|
13664
|
-
stepName: string;
|
|
13665
|
-
}
|
|
13666
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13667
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13668
|
-
rollback(
|
|
13669
|
-
config: WorkflowStepConfig,
|
|
13670
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13671
|
-
): StepPromise<T>;
|
|
13672
|
-
}
|
|
13673
13661
|
export abstract class WorkflowStep {
|
|
13674
13662
|
do<T extends Rpc.Serializable<T>>(
|
|
13675
13663
|
name: string,
|
|
13676
13664
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13677
|
-
):
|
|
13665
|
+
): Promise<T>;
|
|
13678
13666
|
do<T extends Rpc.Serializable<T>>(
|
|
13679
13667
|
name: string,
|
|
13680
13668
|
config: WorkflowStepConfig,
|
|
13681
13669
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13682
|
-
):
|
|
13670
|
+
): Promise<T>;
|
|
13683
13671
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13684
13672
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13685
13673
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13688,7 +13676,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13688
13676
|
type: string;
|
|
13689
13677
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13690
13678
|
},
|
|
13691
|
-
):
|
|
13679
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13692
13680
|
}
|
|
13693
13681
|
export type WorkflowInstanceStatus =
|
|
13694
13682
|
| "queued"
|
package/2023-07-01/index.ts
CHANGED
|
@@ -13629,28 +13629,16 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13629
13629
|
attempt: number;
|
|
13630
13630
|
config: WorkflowStepConfig;
|
|
13631
13631
|
};
|
|
13632
|
-
export interface RollbackContext<T> {
|
|
13633
|
-
error: Error;
|
|
13634
|
-
output: NonNullable<T> | undefined;
|
|
13635
|
-
stepName: string;
|
|
13636
|
-
}
|
|
13637
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13638
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13639
|
-
rollback(
|
|
13640
|
-
config: WorkflowStepConfig,
|
|
13641
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13642
|
-
): StepPromise<T>;
|
|
13643
|
-
}
|
|
13644
13632
|
export abstract class WorkflowStep {
|
|
13645
13633
|
do<T extends Rpc.Serializable<T>>(
|
|
13646
13634
|
name: string,
|
|
13647
13635
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13648
|
-
):
|
|
13636
|
+
): Promise<T>;
|
|
13649
13637
|
do<T extends Rpc.Serializable<T>>(
|
|
13650
13638
|
name: string,
|
|
13651
13639
|
config: WorkflowStepConfig,
|
|
13652
13640
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13653
|
-
):
|
|
13641
|
+
): Promise<T>;
|
|
13654
13642
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13655
13643
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13656
13644
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13659,7 +13647,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13659
13647
|
type: string;
|
|
13660
13648
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13661
13649
|
},
|
|
13662
|
-
):
|
|
13650
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13663
13651
|
}
|
|
13664
13652
|
export type WorkflowInstanceStatus =
|
|
13665
13653
|
| "queued"
|
package/experimental/index.d.ts
CHANGED
|
@@ -14359,28 +14359,16 @@ declare namespace CloudflareWorkersModule {
|
|
|
14359
14359
|
attempt: number;
|
|
14360
14360
|
config: WorkflowStepConfig;
|
|
14361
14361
|
};
|
|
14362
|
-
export interface RollbackContext<T> {
|
|
14363
|
-
error: Error;
|
|
14364
|
-
output: NonNullable<T> | undefined;
|
|
14365
|
-
stepName: string;
|
|
14366
|
-
}
|
|
14367
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
14368
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
14369
|
-
rollback(
|
|
14370
|
-
config: WorkflowStepConfig,
|
|
14371
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
14372
|
-
): StepPromise<T>;
|
|
14373
|
-
}
|
|
14374
14362
|
export abstract class WorkflowStep {
|
|
14375
14363
|
do<T extends Rpc.Serializable<T>>(
|
|
14376
14364
|
name: string,
|
|
14377
14365
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
14378
|
-
):
|
|
14366
|
+
): Promise<T>;
|
|
14379
14367
|
do<T extends Rpc.Serializable<T>>(
|
|
14380
14368
|
name: string,
|
|
14381
14369
|
config: WorkflowStepConfig,
|
|
14382
14370
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
14383
|
-
):
|
|
14371
|
+
): Promise<T>;
|
|
14384
14372
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
14385
14373
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
14386
14374
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -14389,7 +14377,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
14389
14377
|
type: string;
|
|
14390
14378
|
timeout?: WorkflowTimeoutDuration | number;
|
|
14391
14379
|
},
|
|
14392
|
-
):
|
|
14380
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
14393
14381
|
}
|
|
14394
14382
|
export type WorkflowInstanceStatus =
|
|
14395
14383
|
| "queued"
|
package/experimental/index.ts
CHANGED
|
@@ -14330,28 +14330,16 @@ export declare namespace CloudflareWorkersModule {
|
|
|
14330
14330
|
attempt: number;
|
|
14331
14331
|
config: WorkflowStepConfig;
|
|
14332
14332
|
};
|
|
14333
|
-
export interface RollbackContext<T> {
|
|
14334
|
-
error: Error;
|
|
14335
|
-
output: NonNullable<T> | undefined;
|
|
14336
|
-
stepName: string;
|
|
14337
|
-
}
|
|
14338
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
14339
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
14340
|
-
rollback(
|
|
14341
|
-
config: WorkflowStepConfig,
|
|
14342
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
14343
|
-
): StepPromise<T>;
|
|
14344
|
-
}
|
|
14345
14333
|
export abstract class WorkflowStep {
|
|
14346
14334
|
do<T extends Rpc.Serializable<T>>(
|
|
14347
14335
|
name: string,
|
|
14348
14336
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
14349
|
-
):
|
|
14337
|
+
): Promise<T>;
|
|
14350
14338
|
do<T extends Rpc.Serializable<T>>(
|
|
14351
14339
|
name: string,
|
|
14352
14340
|
config: WorkflowStepConfig,
|
|
14353
14341
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
14354
|
-
):
|
|
14342
|
+
): Promise<T>;
|
|
14355
14343
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
14356
14344
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
14357
14345
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -14360,7 +14348,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
14360
14348
|
type: string;
|
|
14361
14349
|
timeout?: WorkflowTimeoutDuration | number;
|
|
14362
14350
|
},
|
|
14363
|
-
):
|
|
14351
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
14364
14352
|
}
|
|
14365
14353
|
export type WorkflowInstanceStatus =
|
|
14366
14354
|
| "queued"
|
package/index.d.ts
CHANGED
|
@@ -13550,28 +13550,16 @@ declare namespace CloudflareWorkersModule {
|
|
|
13550
13550
|
attempt: number;
|
|
13551
13551
|
config: WorkflowStepConfig;
|
|
13552
13552
|
};
|
|
13553
|
-
export interface RollbackContext<T> {
|
|
13554
|
-
error: Error;
|
|
13555
|
-
output: NonNullable<T> | undefined;
|
|
13556
|
-
stepName: string;
|
|
13557
|
-
}
|
|
13558
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13559
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13560
|
-
rollback(
|
|
13561
|
-
config: WorkflowStepConfig,
|
|
13562
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13563
|
-
): StepPromise<T>;
|
|
13564
|
-
}
|
|
13565
13553
|
export abstract class WorkflowStep {
|
|
13566
13554
|
do<T extends Rpc.Serializable<T>>(
|
|
13567
13555
|
name: string,
|
|
13568
13556
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13569
|
-
):
|
|
13557
|
+
): Promise<T>;
|
|
13570
13558
|
do<T extends Rpc.Serializable<T>>(
|
|
13571
13559
|
name: string,
|
|
13572
13560
|
config: WorkflowStepConfig,
|
|
13573
13561
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13574
|
-
):
|
|
13562
|
+
): Promise<T>;
|
|
13575
13563
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13576
13564
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13577
13565
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13580,7 +13568,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13580
13568
|
type: string;
|
|
13581
13569
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13582
13570
|
},
|
|
13583
|
-
):
|
|
13571
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13584
13572
|
}
|
|
13585
13573
|
export type WorkflowInstanceStatus =
|
|
13586
13574
|
| "queued"
|
package/index.ts
CHANGED
|
@@ -13521,28 +13521,16 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13521
13521
|
attempt: number;
|
|
13522
13522
|
config: WorkflowStepConfig;
|
|
13523
13523
|
};
|
|
13524
|
-
export interface RollbackContext<T> {
|
|
13525
|
-
error: Error;
|
|
13526
|
-
output: NonNullable<T> | undefined;
|
|
13527
|
-
stepName: string;
|
|
13528
|
-
}
|
|
13529
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13530
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13531
|
-
rollback(
|
|
13532
|
-
config: WorkflowStepConfig,
|
|
13533
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13534
|
-
): StepPromise<T>;
|
|
13535
|
-
}
|
|
13536
13524
|
export abstract class WorkflowStep {
|
|
13537
13525
|
do<T extends Rpc.Serializable<T>>(
|
|
13538
13526
|
name: string,
|
|
13539
13527
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13540
|
-
):
|
|
13528
|
+
): Promise<T>;
|
|
13541
13529
|
do<T extends Rpc.Serializable<T>>(
|
|
13542
13530
|
name: string,
|
|
13543
13531
|
config: WorkflowStepConfig,
|
|
13544
13532
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13545
|
-
):
|
|
13533
|
+
): Promise<T>;
|
|
13546
13534
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13547
13535
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13548
13536
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13551,7 +13539,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13551
13539
|
type: string;
|
|
13552
13540
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13553
13541
|
},
|
|
13554
|
-
):
|
|
13542
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13555
13543
|
}
|
|
13556
13544
|
export type WorkflowInstanceStatus =
|
|
13557
13545
|
| "queued"
|
package/latest/index.d.ts
CHANGED
|
@@ -13691,28 +13691,16 @@ declare namespace CloudflareWorkersModule {
|
|
|
13691
13691
|
attempt: number;
|
|
13692
13692
|
config: WorkflowStepConfig;
|
|
13693
13693
|
};
|
|
13694
|
-
export interface RollbackContext<T> {
|
|
13695
|
-
error: Error;
|
|
13696
|
-
output: NonNullable<T> | undefined;
|
|
13697
|
-
stepName: string;
|
|
13698
|
-
}
|
|
13699
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13700
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13701
|
-
rollback(
|
|
13702
|
-
config: WorkflowStepConfig,
|
|
13703
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13704
|
-
): StepPromise<T>;
|
|
13705
|
-
}
|
|
13706
13694
|
export abstract class WorkflowStep {
|
|
13707
13695
|
do<T extends Rpc.Serializable<T>>(
|
|
13708
13696
|
name: string,
|
|
13709
13697
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13710
|
-
):
|
|
13698
|
+
): Promise<T>;
|
|
13711
13699
|
do<T extends Rpc.Serializable<T>>(
|
|
13712
13700
|
name: string,
|
|
13713
13701
|
config: WorkflowStepConfig,
|
|
13714
13702
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13715
|
-
):
|
|
13703
|
+
): Promise<T>;
|
|
13716
13704
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13717
13705
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13718
13706
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13721,7 +13709,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13721
13709
|
type: string;
|
|
13722
13710
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13723
13711
|
},
|
|
13724
|
-
):
|
|
13712
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13725
13713
|
}
|
|
13726
13714
|
export type WorkflowInstanceStatus =
|
|
13727
13715
|
| "queued"
|
package/latest/index.ts
CHANGED
|
@@ -13662,28 +13662,16 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13662
13662
|
attempt: number;
|
|
13663
13663
|
config: WorkflowStepConfig;
|
|
13664
13664
|
};
|
|
13665
|
-
export interface RollbackContext<T> {
|
|
13666
|
-
error: Error;
|
|
13667
|
-
output: NonNullable<T> | undefined;
|
|
13668
|
-
stepName: string;
|
|
13669
|
-
}
|
|
13670
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13671
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13672
|
-
rollback(
|
|
13673
|
-
config: WorkflowStepConfig,
|
|
13674
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13675
|
-
): StepPromise<T>;
|
|
13676
|
-
}
|
|
13677
13665
|
export abstract class WorkflowStep {
|
|
13678
13666
|
do<T extends Rpc.Serializable<T>>(
|
|
13679
13667
|
name: string,
|
|
13680
13668
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13681
|
-
):
|
|
13669
|
+
): Promise<T>;
|
|
13682
13670
|
do<T extends Rpc.Serializable<T>>(
|
|
13683
13671
|
name: string,
|
|
13684
13672
|
config: WorkflowStepConfig,
|
|
13685
13673
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13686
|
-
):
|
|
13674
|
+
): Promise<T>;
|
|
13687
13675
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13688
13676
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13689
13677
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13692,7 +13680,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13692
13680
|
type: string;
|
|
13693
13681
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13694
13682
|
},
|
|
13695
|
-
):
|
|
13683
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13696
13684
|
}
|
|
13697
13685
|
export type WorkflowInstanceStatus =
|
|
13698
13686
|
| "queued"
|
package/oldest/index.d.ts
CHANGED
|
@@ -13550,28 +13550,16 @@ declare namespace CloudflareWorkersModule {
|
|
|
13550
13550
|
attempt: number;
|
|
13551
13551
|
config: WorkflowStepConfig;
|
|
13552
13552
|
};
|
|
13553
|
-
export interface RollbackContext<T> {
|
|
13554
|
-
error: Error;
|
|
13555
|
-
output: NonNullable<T> | undefined;
|
|
13556
|
-
stepName: string;
|
|
13557
|
-
}
|
|
13558
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13559
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13560
|
-
rollback(
|
|
13561
|
-
config: WorkflowStepConfig,
|
|
13562
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13563
|
-
): StepPromise<T>;
|
|
13564
|
-
}
|
|
13565
13553
|
export abstract class WorkflowStep {
|
|
13566
13554
|
do<T extends Rpc.Serializable<T>>(
|
|
13567
13555
|
name: string,
|
|
13568
13556
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13569
|
-
):
|
|
13557
|
+
): Promise<T>;
|
|
13570
13558
|
do<T extends Rpc.Serializable<T>>(
|
|
13571
13559
|
name: string,
|
|
13572
13560
|
config: WorkflowStepConfig,
|
|
13573
13561
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13574
|
-
):
|
|
13562
|
+
): Promise<T>;
|
|
13575
13563
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13576
13564
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13577
13565
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13580,7 +13568,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13580
13568
|
type: string;
|
|
13581
13569
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13582
13570
|
},
|
|
13583
|
-
):
|
|
13571
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13584
13572
|
}
|
|
13585
13573
|
export type WorkflowInstanceStatus =
|
|
13586
13574
|
| "queued"
|
package/oldest/index.ts
CHANGED
|
@@ -13521,28 +13521,16 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13521
13521
|
attempt: number;
|
|
13522
13522
|
config: WorkflowStepConfig;
|
|
13523
13523
|
};
|
|
13524
|
-
export interface RollbackContext<T> {
|
|
13525
|
-
error: Error;
|
|
13526
|
-
output: NonNullable<T> | undefined;
|
|
13527
|
-
stepName: string;
|
|
13528
|
-
}
|
|
13529
|
-
export interface StepPromise<T> extends Promise<T> {
|
|
13530
|
-
rollback(fn: (ctx: RollbackContext<T>) => Promise<void>): StepPromise<T>;
|
|
13531
|
-
rollback(
|
|
13532
|
-
config: WorkflowStepConfig,
|
|
13533
|
-
fn: (ctx: RollbackContext<T>) => Promise<void>,
|
|
13534
|
-
): StepPromise<T>;
|
|
13535
|
-
}
|
|
13536
13524
|
export abstract class WorkflowStep {
|
|
13537
13525
|
do<T extends Rpc.Serializable<T>>(
|
|
13538
13526
|
name: string,
|
|
13539
13527
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13540
|
-
):
|
|
13528
|
+
): Promise<T>;
|
|
13541
13529
|
do<T extends Rpc.Serializable<T>>(
|
|
13542
13530
|
name: string,
|
|
13543
13531
|
config: WorkflowStepConfig,
|
|
13544
13532
|
callback: (ctx: WorkflowStepContext) => Promise<T>,
|
|
13545
|
-
):
|
|
13533
|
+
): Promise<T>;
|
|
13546
13534
|
sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>;
|
|
13547
13535
|
sleepUntil: (name: string, timestamp: Date | number) => Promise<void>;
|
|
13548
13536
|
waitForEvent<T extends Rpc.Serializable<T>>(
|
|
@@ -13551,7 +13539,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13551
13539
|
type: string;
|
|
13552
13540
|
timeout?: WorkflowTimeoutDuration | number;
|
|
13553
13541
|
},
|
|
13554
|
-
):
|
|
13542
|
+
): Promise<WorkflowStepEvent<T>>;
|
|
13555
13543
|
}
|
|
13556
13544
|
export type WorkflowInstanceStatus =
|
|
13557
13545
|
| "queued"
|
package/package.json
CHANGED