@slflows/sdk 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v1/index.d.ts +17 -7
- package/package.json +1 -1
package/dist/v1/index.d.ts
CHANGED
|
@@ -1005,7 +1005,7 @@ interface EntityLifecycleComponent {
|
|
|
1005
1005
|
status: EntityLifecycleStatus;
|
|
1006
1006
|
signals: Record<string, any> | null;
|
|
1007
1007
|
}
|
|
1008
|
-
type EntityLifecycleStatus = "draft" | "in_progress" | "ready" | "
|
|
1008
|
+
type EntityLifecycleStatus = "draft" | "in_progress" | "ready" | "failed" | "draining" | "draining_failed" | "drained";
|
|
1009
1009
|
interface EntityHTTPEndpoint {
|
|
1010
1010
|
url: string;
|
|
1011
1011
|
}
|
|
@@ -1037,18 +1037,28 @@ interface EventContext {
|
|
|
1037
1037
|
outputKey: string;
|
|
1038
1038
|
};
|
|
1039
1039
|
}
|
|
1040
|
-
interface
|
|
1040
|
+
interface BaseLifecycleCallbackOutput {
|
|
1041
1041
|
signalUpdates?: Record<string, any>;
|
|
1042
|
-
newStatus?: EntityLifecycleStatus;
|
|
1043
1042
|
customStatusDescription?: string | null;
|
|
1043
|
+
}
|
|
1044
|
+
interface EntityNonSchedulableLifecycleCallbackOutput extends BaseLifecycleCallbackOutput {
|
|
1045
|
+
newStatus: Exclude<EntityLifecycleStatus, "in_progress" | "draining">;
|
|
1046
|
+
nextScheduleDelay?: never;
|
|
1047
|
+
}
|
|
1048
|
+
interface EntitySchedulableLifecycleCallbackOutput extends BaseLifecycleCallbackOutput {
|
|
1049
|
+
newStatus: "in_progress" | "draining";
|
|
1044
1050
|
nextScheduleDelay?: number;
|
|
1045
1051
|
}
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
newStatus
|
|
1049
|
-
|
|
1052
|
+
type EntityLifecycleCallbackOutput = EntityNonSchedulableLifecycleCallbackOutput | EntitySchedulableLifecycleCallbackOutput;
|
|
1053
|
+
interface AppNonSchedulableLifecycleCallbackOutput extends BaseLifecycleCallbackOutput {
|
|
1054
|
+
newStatus: Exclude<AppLifecycleStatus, "in_progress" | "draining">;
|
|
1055
|
+
nextScheduleDelay?: never;
|
|
1056
|
+
}
|
|
1057
|
+
interface AppSchedulableLifecycleCallbackOutput extends BaseLifecycleCallbackOutput {
|
|
1058
|
+
newStatus: "in_progress" | "draining";
|
|
1050
1059
|
nextScheduleDelay?: number;
|
|
1051
1060
|
}
|
|
1061
|
+
type AppLifecycleCallbackOutput = AppNonSchedulableLifecycleCallbackOutput | AppSchedulableLifecycleCallbackOutput;
|
|
1052
1062
|
type AppLifecycleStatus = "draft" | "in_progress" | "ready" | "failed" | "draining" | "draining_failed" | "drained";
|
|
1053
1063
|
interface AppOnCreateOutput {
|
|
1054
1064
|
ok?: {};
|