@cloudflare/workers-types 4.20260507.1 → 4.20260508.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 +25 -2
- package/2021-11-03/index.ts +25 -2
- package/2022-01-31/index.d.ts +25 -2
- package/2022-01-31/index.ts +25 -2
- package/2022-03-21/index.d.ts +25 -2
- package/2022-03-21/index.ts +25 -2
- package/2022-08-04/index.d.ts +25 -2
- package/2022-08-04/index.ts +25 -2
- package/2022-10-31/index.d.ts +25 -2
- package/2022-10-31/index.ts +25 -2
- package/2022-11-30/index.d.ts +25 -2
- package/2022-11-30/index.ts +25 -2
- package/2023-03-01/index.d.ts +25 -2
- package/2023-03-01/index.ts +25 -2
- package/2023-07-01/index.d.ts +25 -2
- package/2023-07-01/index.ts +25 -2
- package/experimental/index.d.ts +25 -2
- package/experimental/index.ts +25 -2
- package/index.d.ts +25 -2
- package/index.ts +25 -2
- package/latest/index.d.ts +25 -2
- package/latest/index.ts +25 -2
- package/oldest/index.d.ts +25 -2
- package/oldest/index.ts +25 -2
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -15070,6 +15070,27 @@ interface WorkflowError {
|
|
|
15070
15070
|
code?: number;
|
|
15071
15071
|
message: string;
|
|
15072
15072
|
}
|
|
15073
|
+
interface WorkflowInstanceRestartOptions {
|
|
15074
|
+
/**
|
|
15075
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15076
|
+
* The step must exist in the instance's execution history.
|
|
15077
|
+
*/
|
|
15078
|
+
from?: {
|
|
15079
|
+
/**
|
|
15080
|
+
* The step name as defined in your workflow code.
|
|
15081
|
+
*/
|
|
15082
|
+
name: string;
|
|
15083
|
+
/**
|
|
15084
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15085
|
+
* @default 1
|
|
15086
|
+
*/
|
|
15087
|
+
count?: number;
|
|
15088
|
+
/**
|
|
15089
|
+
* Step type filter. Use when different step types share the same name.
|
|
15090
|
+
*/
|
|
15091
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15092
|
+
};
|
|
15093
|
+
}
|
|
15073
15094
|
declare abstract class WorkflowInstance {
|
|
15074
15095
|
public id: string;
|
|
15075
15096
|
/**
|
|
@@ -15085,9 +15106,11 @@ declare abstract class WorkflowInstance {
|
|
|
15085
15106
|
*/
|
|
15086
15107
|
public terminate(): Promise<void>;
|
|
15087
15108
|
/**
|
|
15088
|
-
* Restart the instance.
|
|
15109
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15110
|
+
* cached results for all steps before it.
|
|
15111
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15089
15112
|
*/
|
|
15090
|
-
public restart(): Promise<void>;
|
|
15113
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15091
15114
|
/**
|
|
15092
15115
|
* Returns the current status of the instance.
|
|
15093
15116
|
*/
|
package/2021-11-03/index.ts
CHANGED
|
@@ -15022,6 +15022,27 @@ export interface WorkflowError {
|
|
|
15022
15022
|
code?: number;
|
|
15023
15023
|
message: string;
|
|
15024
15024
|
}
|
|
15025
|
+
export interface WorkflowInstanceRestartOptions {
|
|
15026
|
+
/**
|
|
15027
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15028
|
+
* The step must exist in the instance's execution history.
|
|
15029
|
+
*/
|
|
15030
|
+
from?: {
|
|
15031
|
+
/**
|
|
15032
|
+
* The step name as defined in your workflow code.
|
|
15033
|
+
*/
|
|
15034
|
+
name: string;
|
|
15035
|
+
/**
|
|
15036
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15037
|
+
* @default 1
|
|
15038
|
+
*/
|
|
15039
|
+
count?: number;
|
|
15040
|
+
/**
|
|
15041
|
+
* Step type filter. Use when different step types share the same name.
|
|
15042
|
+
*/
|
|
15043
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15044
|
+
};
|
|
15045
|
+
}
|
|
15025
15046
|
export declare abstract class WorkflowInstance {
|
|
15026
15047
|
public id: string;
|
|
15027
15048
|
/**
|
|
@@ -15037,9 +15058,11 @@ export declare abstract class WorkflowInstance {
|
|
|
15037
15058
|
*/
|
|
15038
15059
|
public terminate(): Promise<void>;
|
|
15039
15060
|
/**
|
|
15040
|
-
* Restart the instance.
|
|
15061
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15062
|
+
* cached results for all steps before it.
|
|
15063
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15041
15064
|
*/
|
|
15042
|
-
public restart(): Promise<void>;
|
|
15065
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15043
15066
|
/**
|
|
15044
15067
|
* Returns the current status of the instance.
|
|
15045
15068
|
*/
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -15137,6 +15137,27 @@ interface WorkflowError {
|
|
|
15137
15137
|
code?: number;
|
|
15138
15138
|
message: string;
|
|
15139
15139
|
}
|
|
15140
|
+
interface WorkflowInstanceRestartOptions {
|
|
15141
|
+
/**
|
|
15142
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15143
|
+
* The step must exist in the instance's execution history.
|
|
15144
|
+
*/
|
|
15145
|
+
from?: {
|
|
15146
|
+
/**
|
|
15147
|
+
* The step name as defined in your workflow code.
|
|
15148
|
+
*/
|
|
15149
|
+
name: string;
|
|
15150
|
+
/**
|
|
15151
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15152
|
+
* @default 1
|
|
15153
|
+
*/
|
|
15154
|
+
count?: number;
|
|
15155
|
+
/**
|
|
15156
|
+
* Step type filter. Use when different step types share the same name.
|
|
15157
|
+
*/
|
|
15158
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15159
|
+
};
|
|
15160
|
+
}
|
|
15140
15161
|
declare abstract class WorkflowInstance {
|
|
15141
15162
|
public id: string;
|
|
15142
15163
|
/**
|
|
@@ -15152,9 +15173,11 @@ declare abstract class WorkflowInstance {
|
|
|
15152
15173
|
*/
|
|
15153
15174
|
public terminate(): Promise<void>;
|
|
15154
15175
|
/**
|
|
15155
|
-
* Restart the instance.
|
|
15176
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15177
|
+
* cached results for all steps before it.
|
|
15178
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15156
15179
|
*/
|
|
15157
|
-
public restart(): Promise<void>;
|
|
15180
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15158
15181
|
/**
|
|
15159
15182
|
* Returns the current status of the instance.
|
|
15160
15183
|
*/
|
package/2022-01-31/index.ts
CHANGED
|
@@ -15089,6 +15089,27 @@ export interface WorkflowError {
|
|
|
15089
15089
|
code?: number;
|
|
15090
15090
|
message: string;
|
|
15091
15091
|
}
|
|
15092
|
+
export interface WorkflowInstanceRestartOptions {
|
|
15093
|
+
/**
|
|
15094
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15095
|
+
* The step must exist in the instance's execution history.
|
|
15096
|
+
*/
|
|
15097
|
+
from?: {
|
|
15098
|
+
/**
|
|
15099
|
+
* The step name as defined in your workflow code.
|
|
15100
|
+
*/
|
|
15101
|
+
name: string;
|
|
15102
|
+
/**
|
|
15103
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15104
|
+
* @default 1
|
|
15105
|
+
*/
|
|
15106
|
+
count?: number;
|
|
15107
|
+
/**
|
|
15108
|
+
* Step type filter. Use when different step types share the same name.
|
|
15109
|
+
*/
|
|
15110
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15111
|
+
};
|
|
15112
|
+
}
|
|
15092
15113
|
export declare abstract class WorkflowInstance {
|
|
15093
15114
|
public id: string;
|
|
15094
15115
|
/**
|
|
@@ -15104,9 +15125,11 @@ export declare abstract class WorkflowInstance {
|
|
|
15104
15125
|
*/
|
|
15105
15126
|
public terminate(): Promise<void>;
|
|
15106
15127
|
/**
|
|
15107
|
-
* Restart the instance.
|
|
15128
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15129
|
+
* cached results for all steps before it.
|
|
15130
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15108
15131
|
*/
|
|
15109
|
-
public restart(): Promise<void>;
|
|
15132
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15110
15133
|
/**
|
|
15111
15134
|
* Returns the current status of the instance.
|
|
15112
15135
|
*/
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -15146,6 +15146,27 @@ interface WorkflowError {
|
|
|
15146
15146
|
code?: number;
|
|
15147
15147
|
message: string;
|
|
15148
15148
|
}
|
|
15149
|
+
interface WorkflowInstanceRestartOptions {
|
|
15150
|
+
/**
|
|
15151
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15152
|
+
* The step must exist in the instance's execution history.
|
|
15153
|
+
*/
|
|
15154
|
+
from?: {
|
|
15155
|
+
/**
|
|
15156
|
+
* The step name as defined in your workflow code.
|
|
15157
|
+
*/
|
|
15158
|
+
name: string;
|
|
15159
|
+
/**
|
|
15160
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15161
|
+
* @default 1
|
|
15162
|
+
*/
|
|
15163
|
+
count?: number;
|
|
15164
|
+
/**
|
|
15165
|
+
* Step type filter. Use when different step types share the same name.
|
|
15166
|
+
*/
|
|
15167
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15168
|
+
};
|
|
15169
|
+
}
|
|
15149
15170
|
declare abstract class WorkflowInstance {
|
|
15150
15171
|
public id: string;
|
|
15151
15172
|
/**
|
|
@@ -15161,9 +15182,11 @@ declare abstract class WorkflowInstance {
|
|
|
15161
15182
|
*/
|
|
15162
15183
|
public terminate(): Promise<void>;
|
|
15163
15184
|
/**
|
|
15164
|
-
* Restart the instance.
|
|
15185
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15186
|
+
* cached results for all steps before it.
|
|
15187
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15165
15188
|
*/
|
|
15166
|
-
public restart(): Promise<void>;
|
|
15189
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15167
15190
|
/**
|
|
15168
15191
|
* Returns the current status of the instance.
|
|
15169
15192
|
*/
|
package/2022-03-21/index.ts
CHANGED
|
@@ -15098,6 +15098,27 @@ export interface WorkflowError {
|
|
|
15098
15098
|
code?: number;
|
|
15099
15099
|
message: string;
|
|
15100
15100
|
}
|
|
15101
|
+
export interface WorkflowInstanceRestartOptions {
|
|
15102
|
+
/**
|
|
15103
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15104
|
+
* The step must exist in the instance's execution history.
|
|
15105
|
+
*/
|
|
15106
|
+
from?: {
|
|
15107
|
+
/**
|
|
15108
|
+
* The step name as defined in your workflow code.
|
|
15109
|
+
*/
|
|
15110
|
+
name: string;
|
|
15111
|
+
/**
|
|
15112
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15113
|
+
* @default 1
|
|
15114
|
+
*/
|
|
15115
|
+
count?: number;
|
|
15116
|
+
/**
|
|
15117
|
+
* Step type filter. Use when different step types share the same name.
|
|
15118
|
+
*/
|
|
15119
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15120
|
+
};
|
|
15121
|
+
}
|
|
15101
15122
|
export declare abstract class WorkflowInstance {
|
|
15102
15123
|
public id: string;
|
|
15103
15124
|
/**
|
|
@@ -15113,9 +15134,11 @@ export declare abstract class WorkflowInstance {
|
|
|
15113
15134
|
*/
|
|
15114
15135
|
public terminate(): Promise<void>;
|
|
15115
15136
|
/**
|
|
15116
|
-
* Restart the instance.
|
|
15137
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15138
|
+
* cached results for all steps before it.
|
|
15139
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15117
15140
|
*/
|
|
15118
|
-
public restart(): Promise<void>;
|
|
15141
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15119
15142
|
/**
|
|
15120
15143
|
* Returns the current status of the instance.
|
|
15121
15144
|
*/
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -15147,6 +15147,27 @@ interface WorkflowError {
|
|
|
15147
15147
|
code?: number;
|
|
15148
15148
|
message: string;
|
|
15149
15149
|
}
|
|
15150
|
+
interface WorkflowInstanceRestartOptions {
|
|
15151
|
+
/**
|
|
15152
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15153
|
+
* The step must exist in the instance's execution history.
|
|
15154
|
+
*/
|
|
15155
|
+
from?: {
|
|
15156
|
+
/**
|
|
15157
|
+
* The step name as defined in your workflow code.
|
|
15158
|
+
*/
|
|
15159
|
+
name: string;
|
|
15160
|
+
/**
|
|
15161
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15162
|
+
* @default 1
|
|
15163
|
+
*/
|
|
15164
|
+
count?: number;
|
|
15165
|
+
/**
|
|
15166
|
+
* Step type filter. Use when different step types share the same name.
|
|
15167
|
+
*/
|
|
15168
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15169
|
+
};
|
|
15170
|
+
}
|
|
15150
15171
|
declare abstract class WorkflowInstance {
|
|
15151
15172
|
public id: string;
|
|
15152
15173
|
/**
|
|
@@ -15162,9 +15183,11 @@ declare abstract class WorkflowInstance {
|
|
|
15162
15183
|
*/
|
|
15163
15184
|
public terminate(): Promise<void>;
|
|
15164
15185
|
/**
|
|
15165
|
-
* Restart the instance.
|
|
15186
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15187
|
+
* cached results for all steps before it.
|
|
15188
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15166
15189
|
*/
|
|
15167
|
-
public restart(): Promise<void>;
|
|
15190
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15168
15191
|
/**
|
|
15169
15192
|
* Returns the current status of the instance.
|
|
15170
15193
|
*/
|
package/2022-08-04/index.ts
CHANGED
|
@@ -15099,6 +15099,27 @@ export interface WorkflowError {
|
|
|
15099
15099
|
code?: number;
|
|
15100
15100
|
message: string;
|
|
15101
15101
|
}
|
|
15102
|
+
export interface WorkflowInstanceRestartOptions {
|
|
15103
|
+
/**
|
|
15104
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15105
|
+
* The step must exist in the instance's execution history.
|
|
15106
|
+
*/
|
|
15107
|
+
from?: {
|
|
15108
|
+
/**
|
|
15109
|
+
* The step name as defined in your workflow code.
|
|
15110
|
+
*/
|
|
15111
|
+
name: string;
|
|
15112
|
+
/**
|
|
15113
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15114
|
+
* @default 1
|
|
15115
|
+
*/
|
|
15116
|
+
count?: number;
|
|
15117
|
+
/**
|
|
15118
|
+
* Step type filter. Use when different step types share the same name.
|
|
15119
|
+
*/
|
|
15120
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15121
|
+
};
|
|
15122
|
+
}
|
|
15102
15123
|
export declare abstract class WorkflowInstance {
|
|
15103
15124
|
public id: string;
|
|
15104
15125
|
/**
|
|
@@ -15114,9 +15135,11 @@ export declare abstract class WorkflowInstance {
|
|
|
15114
15135
|
*/
|
|
15115
15136
|
public terminate(): Promise<void>;
|
|
15116
15137
|
/**
|
|
15117
|
-
* Restart the instance.
|
|
15138
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15139
|
+
* cached results for all steps before it.
|
|
15140
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15118
15141
|
*/
|
|
15119
|
-
public restart(): Promise<void>;
|
|
15142
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15120
15143
|
/**
|
|
15121
15144
|
* Returns the current status of the instance.
|
|
15122
15145
|
*/
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -15167,6 +15167,27 @@ interface WorkflowError {
|
|
|
15167
15167
|
code?: number;
|
|
15168
15168
|
message: string;
|
|
15169
15169
|
}
|
|
15170
|
+
interface WorkflowInstanceRestartOptions {
|
|
15171
|
+
/**
|
|
15172
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15173
|
+
* The step must exist in the instance's execution history.
|
|
15174
|
+
*/
|
|
15175
|
+
from?: {
|
|
15176
|
+
/**
|
|
15177
|
+
* The step name as defined in your workflow code.
|
|
15178
|
+
*/
|
|
15179
|
+
name: string;
|
|
15180
|
+
/**
|
|
15181
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15182
|
+
* @default 1
|
|
15183
|
+
*/
|
|
15184
|
+
count?: number;
|
|
15185
|
+
/**
|
|
15186
|
+
* Step type filter. Use when different step types share the same name.
|
|
15187
|
+
*/
|
|
15188
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15189
|
+
};
|
|
15190
|
+
}
|
|
15170
15191
|
declare abstract class WorkflowInstance {
|
|
15171
15192
|
public id: string;
|
|
15172
15193
|
/**
|
|
@@ -15182,9 +15203,11 @@ declare abstract class WorkflowInstance {
|
|
|
15182
15203
|
*/
|
|
15183
15204
|
public terminate(): Promise<void>;
|
|
15184
15205
|
/**
|
|
15185
|
-
* Restart the instance.
|
|
15206
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15207
|
+
* cached results for all steps before it.
|
|
15208
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15186
15209
|
*/
|
|
15187
|
-
public restart(): Promise<void>;
|
|
15210
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15188
15211
|
/**
|
|
15189
15212
|
* Returns the current status of the instance.
|
|
15190
15213
|
*/
|
package/2022-10-31/index.ts
CHANGED
|
@@ -15119,6 +15119,27 @@ export interface WorkflowError {
|
|
|
15119
15119
|
code?: number;
|
|
15120
15120
|
message: string;
|
|
15121
15121
|
}
|
|
15122
|
+
export interface WorkflowInstanceRestartOptions {
|
|
15123
|
+
/**
|
|
15124
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15125
|
+
* The step must exist in the instance's execution history.
|
|
15126
|
+
*/
|
|
15127
|
+
from?: {
|
|
15128
|
+
/**
|
|
15129
|
+
* The step name as defined in your workflow code.
|
|
15130
|
+
*/
|
|
15131
|
+
name: string;
|
|
15132
|
+
/**
|
|
15133
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15134
|
+
* @default 1
|
|
15135
|
+
*/
|
|
15136
|
+
count?: number;
|
|
15137
|
+
/**
|
|
15138
|
+
* Step type filter. Use when different step types share the same name.
|
|
15139
|
+
*/
|
|
15140
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15141
|
+
};
|
|
15142
|
+
}
|
|
15122
15143
|
export declare abstract class WorkflowInstance {
|
|
15123
15144
|
public id: string;
|
|
15124
15145
|
/**
|
|
@@ -15134,9 +15155,11 @@ export declare abstract class WorkflowInstance {
|
|
|
15134
15155
|
*/
|
|
15135
15156
|
public terminate(): Promise<void>;
|
|
15136
15157
|
/**
|
|
15137
|
-
* Restart the instance.
|
|
15158
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15159
|
+
* cached results for all steps before it.
|
|
15160
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15138
15161
|
*/
|
|
15139
|
-
public restart(): Promise<void>;
|
|
15162
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15140
15163
|
/**
|
|
15141
15164
|
* Returns the current status of the instance.
|
|
15142
15165
|
*/
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -15172,6 +15172,27 @@ interface WorkflowError {
|
|
|
15172
15172
|
code?: number;
|
|
15173
15173
|
message: string;
|
|
15174
15174
|
}
|
|
15175
|
+
interface WorkflowInstanceRestartOptions {
|
|
15176
|
+
/**
|
|
15177
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15178
|
+
* The step must exist in the instance's execution history.
|
|
15179
|
+
*/
|
|
15180
|
+
from?: {
|
|
15181
|
+
/**
|
|
15182
|
+
* The step name as defined in your workflow code.
|
|
15183
|
+
*/
|
|
15184
|
+
name: string;
|
|
15185
|
+
/**
|
|
15186
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15187
|
+
* @default 1
|
|
15188
|
+
*/
|
|
15189
|
+
count?: number;
|
|
15190
|
+
/**
|
|
15191
|
+
* Step type filter. Use when different step types share the same name.
|
|
15192
|
+
*/
|
|
15193
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15194
|
+
};
|
|
15195
|
+
}
|
|
15175
15196
|
declare abstract class WorkflowInstance {
|
|
15176
15197
|
public id: string;
|
|
15177
15198
|
/**
|
|
@@ -15187,9 +15208,11 @@ declare abstract class WorkflowInstance {
|
|
|
15187
15208
|
*/
|
|
15188
15209
|
public terminate(): Promise<void>;
|
|
15189
15210
|
/**
|
|
15190
|
-
* Restart the instance.
|
|
15211
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15212
|
+
* cached results for all steps before it.
|
|
15213
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15191
15214
|
*/
|
|
15192
|
-
public restart(): Promise<void>;
|
|
15215
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15193
15216
|
/**
|
|
15194
15217
|
* Returns the current status of the instance.
|
|
15195
15218
|
*/
|
package/2022-11-30/index.ts
CHANGED
|
@@ -15124,6 +15124,27 @@ export interface WorkflowError {
|
|
|
15124
15124
|
code?: number;
|
|
15125
15125
|
message: string;
|
|
15126
15126
|
}
|
|
15127
|
+
export interface WorkflowInstanceRestartOptions {
|
|
15128
|
+
/**
|
|
15129
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15130
|
+
* The step must exist in the instance's execution history.
|
|
15131
|
+
*/
|
|
15132
|
+
from?: {
|
|
15133
|
+
/**
|
|
15134
|
+
* The step name as defined in your workflow code.
|
|
15135
|
+
*/
|
|
15136
|
+
name: string;
|
|
15137
|
+
/**
|
|
15138
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15139
|
+
* @default 1
|
|
15140
|
+
*/
|
|
15141
|
+
count?: number;
|
|
15142
|
+
/**
|
|
15143
|
+
* Step type filter. Use when different step types share the same name.
|
|
15144
|
+
*/
|
|
15145
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15146
|
+
};
|
|
15147
|
+
}
|
|
15127
15148
|
export declare abstract class WorkflowInstance {
|
|
15128
15149
|
public id: string;
|
|
15129
15150
|
/**
|
|
@@ -15139,9 +15160,11 @@ export declare abstract class WorkflowInstance {
|
|
|
15139
15160
|
*/
|
|
15140
15161
|
public terminate(): Promise<void>;
|
|
15141
15162
|
/**
|
|
15142
|
-
* Restart the instance.
|
|
15163
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15164
|
+
* cached results for all steps before it.
|
|
15165
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15143
15166
|
*/
|
|
15144
|
-
public restart(): Promise<void>;
|
|
15167
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15145
15168
|
/**
|
|
15146
15169
|
* Returns the current status of the instance.
|
|
15147
15170
|
*/
|
package/2023-03-01/index.d.ts
CHANGED
|
@@ -15178,6 +15178,27 @@ interface WorkflowError {
|
|
|
15178
15178
|
code?: number;
|
|
15179
15179
|
message: string;
|
|
15180
15180
|
}
|
|
15181
|
+
interface WorkflowInstanceRestartOptions {
|
|
15182
|
+
/**
|
|
15183
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15184
|
+
* The step must exist in the instance's execution history.
|
|
15185
|
+
*/
|
|
15186
|
+
from?: {
|
|
15187
|
+
/**
|
|
15188
|
+
* The step name as defined in your workflow code.
|
|
15189
|
+
*/
|
|
15190
|
+
name: string;
|
|
15191
|
+
/**
|
|
15192
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15193
|
+
* @default 1
|
|
15194
|
+
*/
|
|
15195
|
+
count?: number;
|
|
15196
|
+
/**
|
|
15197
|
+
* Step type filter. Use when different step types share the same name.
|
|
15198
|
+
*/
|
|
15199
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15200
|
+
};
|
|
15201
|
+
}
|
|
15181
15202
|
declare abstract class WorkflowInstance {
|
|
15182
15203
|
public id: string;
|
|
15183
15204
|
/**
|
|
@@ -15193,9 +15214,11 @@ declare abstract class WorkflowInstance {
|
|
|
15193
15214
|
*/
|
|
15194
15215
|
public terminate(): Promise<void>;
|
|
15195
15216
|
/**
|
|
15196
|
-
* Restart the instance.
|
|
15217
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15218
|
+
* cached results for all steps before it.
|
|
15219
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15197
15220
|
*/
|
|
15198
|
-
public restart(): Promise<void>;
|
|
15221
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15199
15222
|
/**
|
|
15200
15223
|
* Returns the current status of the instance.
|
|
15201
15224
|
*/
|
package/2023-03-01/index.ts
CHANGED
|
@@ -15130,6 +15130,27 @@ export interface WorkflowError {
|
|
|
15130
15130
|
code?: number;
|
|
15131
15131
|
message: string;
|
|
15132
15132
|
}
|
|
15133
|
+
export interface WorkflowInstanceRestartOptions {
|
|
15134
|
+
/**
|
|
15135
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15136
|
+
* The step must exist in the instance's execution history.
|
|
15137
|
+
*/
|
|
15138
|
+
from?: {
|
|
15139
|
+
/**
|
|
15140
|
+
* The step name as defined in your workflow code.
|
|
15141
|
+
*/
|
|
15142
|
+
name: string;
|
|
15143
|
+
/**
|
|
15144
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15145
|
+
* @default 1
|
|
15146
|
+
*/
|
|
15147
|
+
count?: number;
|
|
15148
|
+
/**
|
|
15149
|
+
* Step type filter. Use when different step types share the same name.
|
|
15150
|
+
*/
|
|
15151
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15152
|
+
};
|
|
15153
|
+
}
|
|
15133
15154
|
export declare abstract class WorkflowInstance {
|
|
15134
15155
|
public id: string;
|
|
15135
15156
|
/**
|
|
@@ -15145,9 +15166,11 @@ export declare abstract class WorkflowInstance {
|
|
|
15145
15166
|
*/
|
|
15146
15167
|
public terminate(): Promise<void>;
|
|
15147
15168
|
/**
|
|
15148
|
-
* Restart the instance.
|
|
15169
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15170
|
+
* cached results for all steps before it.
|
|
15171
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15149
15172
|
*/
|
|
15150
|
-
public restart(): Promise<void>;
|
|
15173
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15151
15174
|
/**
|
|
15152
15175
|
* Returns the current status of the instance.
|
|
15153
15176
|
*/
|
package/2023-07-01/index.d.ts
CHANGED
|
@@ -15178,6 +15178,27 @@ interface WorkflowError {
|
|
|
15178
15178
|
code?: number;
|
|
15179
15179
|
message: string;
|
|
15180
15180
|
}
|
|
15181
|
+
interface WorkflowInstanceRestartOptions {
|
|
15182
|
+
/**
|
|
15183
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15184
|
+
* The step must exist in the instance's execution history.
|
|
15185
|
+
*/
|
|
15186
|
+
from?: {
|
|
15187
|
+
/**
|
|
15188
|
+
* The step name as defined in your workflow code.
|
|
15189
|
+
*/
|
|
15190
|
+
name: string;
|
|
15191
|
+
/**
|
|
15192
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15193
|
+
* @default 1
|
|
15194
|
+
*/
|
|
15195
|
+
count?: number;
|
|
15196
|
+
/**
|
|
15197
|
+
* Step type filter. Use when different step types share the same name.
|
|
15198
|
+
*/
|
|
15199
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15200
|
+
};
|
|
15201
|
+
}
|
|
15181
15202
|
declare abstract class WorkflowInstance {
|
|
15182
15203
|
public id: string;
|
|
15183
15204
|
/**
|
|
@@ -15193,9 +15214,11 @@ declare abstract class WorkflowInstance {
|
|
|
15193
15214
|
*/
|
|
15194
15215
|
public terminate(): Promise<void>;
|
|
15195
15216
|
/**
|
|
15196
|
-
* Restart the instance.
|
|
15217
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15218
|
+
* cached results for all steps before it.
|
|
15219
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15197
15220
|
*/
|
|
15198
|
-
public restart(): Promise<void>;
|
|
15221
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15199
15222
|
/**
|
|
15200
15223
|
* Returns the current status of the instance.
|
|
15201
15224
|
*/
|
package/2023-07-01/index.ts
CHANGED
|
@@ -15130,6 +15130,27 @@ export interface WorkflowError {
|
|
|
15130
15130
|
code?: number;
|
|
15131
15131
|
message: string;
|
|
15132
15132
|
}
|
|
15133
|
+
export interface WorkflowInstanceRestartOptions {
|
|
15134
|
+
/**
|
|
15135
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15136
|
+
* The step must exist in the instance's execution history.
|
|
15137
|
+
*/
|
|
15138
|
+
from?: {
|
|
15139
|
+
/**
|
|
15140
|
+
* The step name as defined in your workflow code.
|
|
15141
|
+
*/
|
|
15142
|
+
name: string;
|
|
15143
|
+
/**
|
|
15144
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15145
|
+
* @default 1
|
|
15146
|
+
*/
|
|
15147
|
+
count?: number;
|
|
15148
|
+
/**
|
|
15149
|
+
* Step type filter. Use when different step types share the same name.
|
|
15150
|
+
*/
|
|
15151
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15152
|
+
};
|
|
15153
|
+
}
|
|
15133
15154
|
export declare abstract class WorkflowInstance {
|
|
15134
15155
|
public id: string;
|
|
15135
15156
|
/**
|
|
@@ -15145,9 +15166,11 @@ export declare abstract class WorkflowInstance {
|
|
|
15145
15166
|
*/
|
|
15146
15167
|
public terminate(): Promise<void>;
|
|
15147
15168
|
/**
|
|
15148
|
-
* Restart the instance.
|
|
15169
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15170
|
+
* cached results for all steps before it.
|
|
15171
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15149
15172
|
*/
|
|
15150
|
-
public restart(): Promise<void>;
|
|
15173
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15151
15174
|
/**
|
|
15152
15175
|
* Returns the current status of the instance.
|
|
15153
15176
|
*/
|
package/experimental/index.d.ts
CHANGED
|
@@ -15879,6 +15879,27 @@ interface WorkflowError {
|
|
|
15879
15879
|
code?: number;
|
|
15880
15880
|
message: string;
|
|
15881
15881
|
}
|
|
15882
|
+
interface WorkflowInstanceRestartOptions {
|
|
15883
|
+
/**
|
|
15884
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15885
|
+
* The step must exist in the instance's execution history.
|
|
15886
|
+
*/
|
|
15887
|
+
from?: {
|
|
15888
|
+
/**
|
|
15889
|
+
* The step name as defined in your workflow code.
|
|
15890
|
+
*/
|
|
15891
|
+
name: string;
|
|
15892
|
+
/**
|
|
15893
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15894
|
+
* @default 1
|
|
15895
|
+
*/
|
|
15896
|
+
count?: number;
|
|
15897
|
+
/**
|
|
15898
|
+
* Step type filter. Use when different step types share the same name.
|
|
15899
|
+
*/
|
|
15900
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15901
|
+
};
|
|
15902
|
+
}
|
|
15882
15903
|
declare abstract class WorkflowInstance {
|
|
15883
15904
|
public id: string;
|
|
15884
15905
|
/**
|
|
@@ -15894,9 +15915,11 @@ declare abstract class WorkflowInstance {
|
|
|
15894
15915
|
*/
|
|
15895
15916
|
public terminate(): Promise<void>;
|
|
15896
15917
|
/**
|
|
15897
|
-
* Restart the instance.
|
|
15918
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15919
|
+
* cached results for all steps before it.
|
|
15920
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15898
15921
|
*/
|
|
15899
|
-
public restart(): Promise<void>;
|
|
15922
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15900
15923
|
/**
|
|
15901
15924
|
* Returns the current status of the instance.
|
|
15902
15925
|
*/
|
package/experimental/index.ts
CHANGED
|
@@ -15831,6 +15831,27 @@ export interface WorkflowError {
|
|
|
15831
15831
|
code?: number;
|
|
15832
15832
|
message: string;
|
|
15833
15833
|
}
|
|
15834
|
+
export interface WorkflowInstanceRestartOptions {
|
|
15835
|
+
/**
|
|
15836
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15837
|
+
* The step must exist in the instance's execution history.
|
|
15838
|
+
*/
|
|
15839
|
+
from?: {
|
|
15840
|
+
/**
|
|
15841
|
+
* The step name as defined in your workflow code.
|
|
15842
|
+
*/
|
|
15843
|
+
name: string;
|
|
15844
|
+
/**
|
|
15845
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15846
|
+
* @default 1
|
|
15847
|
+
*/
|
|
15848
|
+
count?: number;
|
|
15849
|
+
/**
|
|
15850
|
+
* Step type filter. Use when different step types share the same name.
|
|
15851
|
+
*/
|
|
15852
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15853
|
+
};
|
|
15854
|
+
}
|
|
15834
15855
|
export declare abstract class WorkflowInstance {
|
|
15835
15856
|
public id: string;
|
|
15836
15857
|
/**
|
|
@@ -15846,9 +15867,11 @@ export declare abstract class WorkflowInstance {
|
|
|
15846
15867
|
*/
|
|
15847
15868
|
public terminate(): Promise<void>;
|
|
15848
15869
|
/**
|
|
15849
|
-
* Restart the instance.
|
|
15870
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15871
|
+
* cached results for all steps before it.
|
|
15872
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15850
15873
|
*/
|
|
15851
|
-
public restart(): Promise<void>;
|
|
15874
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15852
15875
|
/**
|
|
15853
15876
|
* Returns the current status of the instance.
|
|
15854
15877
|
*/
|
package/index.d.ts
CHANGED
|
@@ -15070,6 +15070,27 @@ interface WorkflowError {
|
|
|
15070
15070
|
code?: number;
|
|
15071
15071
|
message: string;
|
|
15072
15072
|
}
|
|
15073
|
+
interface WorkflowInstanceRestartOptions {
|
|
15074
|
+
/**
|
|
15075
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15076
|
+
* The step must exist in the instance's execution history.
|
|
15077
|
+
*/
|
|
15078
|
+
from?: {
|
|
15079
|
+
/**
|
|
15080
|
+
* The step name as defined in your workflow code.
|
|
15081
|
+
*/
|
|
15082
|
+
name: string;
|
|
15083
|
+
/**
|
|
15084
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15085
|
+
* @default 1
|
|
15086
|
+
*/
|
|
15087
|
+
count?: number;
|
|
15088
|
+
/**
|
|
15089
|
+
* Step type filter. Use when different step types share the same name.
|
|
15090
|
+
*/
|
|
15091
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15092
|
+
};
|
|
15093
|
+
}
|
|
15073
15094
|
declare abstract class WorkflowInstance {
|
|
15074
15095
|
public id: string;
|
|
15075
15096
|
/**
|
|
@@ -15085,9 +15106,11 @@ declare abstract class WorkflowInstance {
|
|
|
15085
15106
|
*/
|
|
15086
15107
|
public terminate(): Promise<void>;
|
|
15087
15108
|
/**
|
|
15088
|
-
* Restart the instance.
|
|
15109
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15110
|
+
* cached results for all steps before it.
|
|
15111
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15089
15112
|
*/
|
|
15090
|
-
public restart(): Promise<void>;
|
|
15113
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15091
15114
|
/**
|
|
15092
15115
|
* Returns the current status of the instance.
|
|
15093
15116
|
*/
|
package/index.ts
CHANGED
|
@@ -15022,6 +15022,27 @@ export interface WorkflowError {
|
|
|
15022
15022
|
code?: number;
|
|
15023
15023
|
message: string;
|
|
15024
15024
|
}
|
|
15025
|
+
export interface WorkflowInstanceRestartOptions {
|
|
15026
|
+
/**
|
|
15027
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15028
|
+
* The step must exist in the instance's execution history.
|
|
15029
|
+
*/
|
|
15030
|
+
from?: {
|
|
15031
|
+
/**
|
|
15032
|
+
* The step name as defined in your workflow code.
|
|
15033
|
+
*/
|
|
15034
|
+
name: string;
|
|
15035
|
+
/**
|
|
15036
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15037
|
+
* @default 1
|
|
15038
|
+
*/
|
|
15039
|
+
count?: number;
|
|
15040
|
+
/**
|
|
15041
|
+
* Step type filter. Use when different step types share the same name.
|
|
15042
|
+
*/
|
|
15043
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15044
|
+
};
|
|
15045
|
+
}
|
|
15025
15046
|
export declare abstract class WorkflowInstance {
|
|
15026
15047
|
public id: string;
|
|
15027
15048
|
/**
|
|
@@ -15037,9 +15058,11 @@ export declare abstract class WorkflowInstance {
|
|
|
15037
15058
|
*/
|
|
15038
15059
|
public terminate(): Promise<void>;
|
|
15039
15060
|
/**
|
|
15040
|
-
* Restart the instance.
|
|
15061
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15062
|
+
* cached results for all steps before it.
|
|
15063
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15041
15064
|
*/
|
|
15042
|
-
public restart(): Promise<void>;
|
|
15065
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15043
15066
|
/**
|
|
15044
15067
|
* Returns the current status of the instance.
|
|
15045
15068
|
*/
|
package/latest/index.d.ts
CHANGED
|
@@ -15211,6 +15211,27 @@ interface WorkflowError {
|
|
|
15211
15211
|
code?: number;
|
|
15212
15212
|
message: string;
|
|
15213
15213
|
}
|
|
15214
|
+
interface WorkflowInstanceRestartOptions {
|
|
15215
|
+
/**
|
|
15216
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15217
|
+
* The step must exist in the instance's execution history.
|
|
15218
|
+
*/
|
|
15219
|
+
from?: {
|
|
15220
|
+
/**
|
|
15221
|
+
* The step name as defined in your workflow code.
|
|
15222
|
+
*/
|
|
15223
|
+
name: string;
|
|
15224
|
+
/**
|
|
15225
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15226
|
+
* @default 1
|
|
15227
|
+
*/
|
|
15228
|
+
count?: number;
|
|
15229
|
+
/**
|
|
15230
|
+
* Step type filter. Use when different step types share the same name.
|
|
15231
|
+
*/
|
|
15232
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15233
|
+
};
|
|
15234
|
+
}
|
|
15214
15235
|
declare abstract class WorkflowInstance {
|
|
15215
15236
|
public id: string;
|
|
15216
15237
|
/**
|
|
@@ -15226,9 +15247,11 @@ declare abstract class WorkflowInstance {
|
|
|
15226
15247
|
*/
|
|
15227
15248
|
public terminate(): Promise<void>;
|
|
15228
15249
|
/**
|
|
15229
|
-
* Restart the instance.
|
|
15250
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15251
|
+
* cached results for all steps before it.
|
|
15252
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15230
15253
|
*/
|
|
15231
|
-
public restart(): Promise<void>;
|
|
15254
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15232
15255
|
/**
|
|
15233
15256
|
* Returns the current status of the instance.
|
|
15234
15257
|
*/
|
package/latest/index.ts
CHANGED
|
@@ -15163,6 +15163,27 @@ export interface WorkflowError {
|
|
|
15163
15163
|
code?: number;
|
|
15164
15164
|
message: string;
|
|
15165
15165
|
}
|
|
15166
|
+
export interface WorkflowInstanceRestartOptions {
|
|
15167
|
+
/**
|
|
15168
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15169
|
+
* The step must exist in the instance's execution history.
|
|
15170
|
+
*/
|
|
15171
|
+
from?: {
|
|
15172
|
+
/**
|
|
15173
|
+
* The step name as defined in your workflow code.
|
|
15174
|
+
*/
|
|
15175
|
+
name: string;
|
|
15176
|
+
/**
|
|
15177
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15178
|
+
* @default 1
|
|
15179
|
+
*/
|
|
15180
|
+
count?: number;
|
|
15181
|
+
/**
|
|
15182
|
+
* Step type filter. Use when different step types share the same name.
|
|
15183
|
+
*/
|
|
15184
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15185
|
+
};
|
|
15186
|
+
}
|
|
15166
15187
|
export declare abstract class WorkflowInstance {
|
|
15167
15188
|
public id: string;
|
|
15168
15189
|
/**
|
|
@@ -15178,9 +15199,11 @@ export declare abstract class WorkflowInstance {
|
|
|
15178
15199
|
*/
|
|
15179
15200
|
public terminate(): Promise<void>;
|
|
15180
15201
|
/**
|
|
15181
|
-
* Restart the instance.
|
|
15202
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15203
|
+
* cached results for all steps before it.
|
|
15204
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15182
15205
|
*/
|
|
15183
|
-
public restart(): Promise<void>;
|
|
15206
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15184
15207
|
/**
|
|
15185
15208
|
* Returns the current status of the instance.
|
|
15186
15209
|
*/
|
package/oldest/index.d.ts
CHANGED
|
@@ -15070,6 +15070,27 @@ interface WorkflowError {
|
|
|
15070
15070
|
code?: number;
|
|
15071
15071
|
message: string;
|
|
15072
15072
|
}
|
|
15073
|
+
interface WorkflowInstanceRestartOptions {
|
|
15074
|
+
/**
|
|
15075
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15076
|
+
* The step must exist in the instance's execution history.
|
|
15077
|
+
*/
|
|
15078
|
+
from?: {
|
|
15079
|
+
/**
|
|
15080
|
+
* The step name as defined in your workflow code.
|
|
15081
|
+
*/
|
|
15082
|
+
name: string;
|
|
15083
|
+
/**
|
|
15084
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15085
|
+
* @default 1
|
|
15086
|
+
*/
|
|
15087
|
+
count?: number;
|
|
15088
|
+
/**
|
|
15089
|
+
* Step type filter. Use when different step types share the same name.
|
|
15090
|
+
*/
|
|
15091
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15092
|
+
};
|
|
15093
|
+
}
|
|
15073
15094
|
declare abstract class WorkflowInstance {
|
|
15074
15095
|
public id: string;
|
|
15075
15096
|
/**
|
|
@@ -15085,9 +15106,11 @@ declare abstract class WorkflowInstance {
|
|
|
15085
15106
|
*/
|
|
15086
15107
|
public terminate(): Promise<void>;
|
|
15087
15108
|
/**
|
|
15088
|
-
* Restart the instance.
|
|
15109
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15110
|
+
* cached results for all steps before it.
|
|
15111
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15089
15112
|
*/
|
|
15090
|
-
public restart(): Promise<void>;
|
|
15113
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15091
15114
|
/**
|
|
15092
15115
|
* Returns the current status of the instance.
|
|
15093
15116
|
*/
|
package/oldest/index.ts
CHANGED
|
@@ -15022,6 +15022,27 @@ export interface WorkflowError {
|
|
|
15022
15022
|
code?: number;
|
|
15023
15023
|
message: string;
|
|
15024
15024
|
}
|
|
15025
|
+
export interface WorkflowInstanceRestartOptions {
|
|
15026
|
+
/**
|
|
15027
|
+
* Restart from a specific step. If omitted, the instance restarts from the beginning.
|
|
15028
|
+
* The step must exist in the instance's execution history.
|
|
15029
|
+
*/
|
|
15030
|
+
from?: {
|
|
15031
|
+
/**
|
|
15032
|
+
* The step name as defined in your workflow code.
|
|
15033
|
+
*/
|
|
15034
|
+
name: string;
|
|
15035
|
+
/**
|
|
15036
|
+
* 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
|
|
15037
|
+
* @default 1
|
|
15038
|
+
*/
|
|
15039
|
+
count?: number;
|
|
15040
|
+
/**
|
|
15041
|
+
* Step type filter. Use when different step types share the same name.
|
|
15042
|
+
*/
|
|
15043
|
+
type?: "do" | "sleep" | "waitForEvent";
|
|
15044
|
+
};
|
|
15045
|
+
}
|
|
15025
15046
|
export declare abstract class WorkflowInstance {
|
|
15026
15047
|
public id: string;
|
|
15027
15048
|
/**
|
|
@@ -15037,9 +15058,11 @@ export declare abstract class WorkflowInstance {
|
|
|
15037
15058
|
*/
|
|
15038
15059
|
public terminate(): Promise<void>;
|
|
15039
15060
|
/**
|
|
15040
|
-
* Restart the instance.
|
|
15061
|
+
* Restart the instance. Optionally restart from a specific step, preserving
|
|
15062
|
+
* cached results for all steps before it.
|
|
15063
|
+
* @param options Options for the restart, including an optional step to restart from.
|
|
15041
15064
|
*/
|
|
15042
|
-
public restart(): Promise<void>;
|
|
15065
|
+
public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
|
|
15043
15066
|
/**
|
|
15044
15067
|
* Returns the current status of the instance.
|
|
15045
15068
|
*/
|
package/package.json
CHANGED