@aikirun/types 0.8.0 → 0.9.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/dist/client.d.ts +3 -3
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ interface ClientParams<AppContext = unknown> {
|
|
|
15
15
|
url: string;
|
|
16
16
|
redis: RedisConfig;
|
|
17
17
|
logger?: Logger;
|
|
18
|
-
|
|
18
|
+
createContext?: (run: Readonly<WorkflowRun>) => AppContext | Promise<AppContext>;
|
|
19
19
|
}
|
|
20
20
|
interface Client<AppContext = unknown> {
|
|
21
21
|
api: ApiClient;
|
|
@@ -26,7 +26,7 @@ interface Client<AppContext = unknown> {
|
|
|
26
26
|
create: (strategy: SubscriberStrategy, workflows: WorkflowMeta[], workerShards?: string[]) => SubscriberStrategyBuilder;
|
|
27
27
|
};
|
|
28
28
|
redis: RedisConnection;
|
|
29
|
-
|
|
29
|
+
createContext?: (run: WorkflowRun) => AppContext | Promise<AppContext>;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
interface Logger {
|
|
@@ -107,7 +107,7 @@ interface AdaptivePollingSubscriberStrategy {
|
|
|
107
107
|
atCapacityIntervalMs?: number;
|
|
108
108
|
}
|
|
109
109
|
interface RedisStreamsSubscriberStrategy {
|
|
110
|
-
type: "
|
|
110
|
+
type: "redis";
|
|
111
111
|
intervalMs?: number;
|
|
112
112
|
maxRetryIntervalMs?: number;
|
|
113
113
|
atCapacityIntervalMs?: number;
|