Skip to content

Commit

Permalink
Merge pull request #3251 from LuisDuarte1/lduarte/add-instanceid-to-w…
Browse files Browse the repository at this point in the history
…orkflow-event

feat: add instanceId to the Workflow event type
  • Loading branch information
danlapid authored Dec 16, 2024
2 parents 1299c61 + 688c63b commit c3a0749
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions types/defines/rpc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ declare module "cloudflare:workers" {
export type WorkflowEvent<T> = {
payload: Readonly<T>;
timestamp: Date;
instanceId: string;
};

export abstract class WorkflowStep {
Expand Down
1 change: 1 addition & 0 deletions types/generated-snapshot/2021-11-03/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5357,6 +5357,7 @@ declare module "cloudflare:workers" {
export type WorkflowEvent<T> = {
payload: Readonly<T>;
timestamp: Date;
instanceId: string;
};
export abstract class WorkflowStep {
do<T extends Rpc.Serializable<T>>(
Expand Down
1 change: 1 addition & 0 deletions types/generated-snapshot/2022-01-31/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5383,6 +5383,7 @@ declare module "cloudflare:workers" {
export type WorkflowEvent<T> = {
payload: Readonly<T>;
timestamp: Date;
instanceId: string;
};
export abstract class WorkflowStep {
do<T extends Rpc.Serializable<T>>(
Expand Down
1 change: 1 addition & 0 deletions types/generated-snapshot/2022-03-21/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5408,6 +5408,7 @@ declare module "cloudflare:workers" {
export type WorkflowEvent<T> = {
payload: Readonly<T>;
timestamp: Date;
instanceId: string;
};
export abstract class WorkflowStep {
do<T extends Rpc.Serializable<T>>(
Expand Down
1 change: 1 addition & 0 deletions types/generated-snapshot/2022-08-04/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5409,6 +5409,7 @@ declare module "cloudflare:workers" {
export type WorkflowEvent<T> = {
payload: Readonly<T>;
timestamp: Date;
instanceId: string;
};
export abstract class WorkflowStep {
do<T extends Rpc.Serializable<T>>(
Expand Down
1 change: 1 addition & 0 deletions types/generated-snapshot/2022-10-31/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5412,6 +5412,7 @@ declare module "cloudflare:workers" {
export type WorkflowEvent<T> = {
payload: Readonly<T>;
timestamp: Date;
instanceId: string;
};
export abstract class WorkflowStep {
do<T extends Rpc.Serializable<T>>(
Expand Down
1 change: 1 addition & 0 deletions types/generated-snapshot/2022-11-30/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5417,6 +5417,7 @@ declare module "cloudflare:workers" {
export type WorkflowEvent<T> = {
payload: Readonly<T>;
timestamp: Date;
instanceId: string;
};
export abstract class WorkflowStep {
do<T extends Rpc.Serializable<T>>(
Expand Down
1 change: 1 addition & 0 deletions types/generated-snapshot/2023-03-01/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5419,6 +5419,7 @@ declare module "cloudflare:workers" {
export type WorkflowEvent<T> = {
payload: Readonly<T>;
timestamp: Date;
instanceId: string;
};
export abstract class WorkflowStep {
do<T extends Rpc.Serializable<T>>(
Expand Down
1 change: 1 addition & 0 deletions types/generated-snapshot/2023-07-01/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5419,6 +5419,7 @@ declare module "cloudflare:workers" {
export type WorkflowEvent<T> = {
payload: Readonly<T>;
timestamp: Date;
instanceId: string;
};
export abstract class WorkflowStep {
do<T extends Rpc.Serializable<T>>(
Expand Down
1 change: 1 addition & 0 deletions types/generated-snapshot/experimental/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5485,6 +5485,7 @@ declare module "cloudflare:workers" {
export type WorkflowEvent<T> = {
payload: Readonly<T>;
timestamp: Date;
instanceId: string;
};
export abstract class WorkflowStep {
do<T extends Rpc.Serializable<T>>(
Expand Down
1 change: 1 addition & 0 deletions types/generated-snapshot/oldest/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5357,6 +5357,7 @@ declare module "cloudflare:workers" {
export type WorkflowEvent<T> = {
payload: Readonly<T>;
timestamp: Date;
instanceId: string;
};
export abstract class WorkflowStep {
do<T extends Rpc.Serializable<T>>(
Expand Down

0 comments on commit c3a0749

Please sign in to comment.