@eventual/core
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -21,3 +21,3 @@ import { CompleteActivityRequest } from "./runtime/clients/workflow-client.js"; | ||
} | ||
export interface ActivityFunction<Arguments extends any[], Output extends any = any> { | ||
export interface ActivityFunction<Arguments extends any[], Output = any> { | ||
(...args: Arguments): Promise<Awaited<UnwrapAsync<Output>>>; | ||
@@ -47,3 +47,3 @@ /** | ||
} | ||
export interface ActivityHandler<Arguments extends any[], Output extends any = any> { | ||
export interface ActivityHandler<Arguments extends any[], Output = any> { | ||
(...args: Arguments): Promise<Awaited<Output>> | Output | AsyncResult<Output> | Promise<AsyncResult<Awaited<Output>>>; | ||
@@ -95,4 +95,4 @@ } | ||
*/ | ||
export declare function activity<Arguments extends any[], Output extends any = any>(activityID: string, handler: ActivityHandler<Arguments, Output>): ActivityFunction<Arguments, Output>; | ||
export declare function activity<Arguments extends any[], Output extends any = any>(activityID: string, opts: ActivityOptions, handler: ActivityHandler<Arguments, Output>): ActivityFunction<Arguments, Output>; | ||
export declare function activity<Arguments extends any[], Output = any>(activityID: string, handler: ActivityHandler<Arguments, Output>): ActivityFunction<Arguments, Output>; | ||
export declare function activity<Arguments extends any[], Output = any>(activityID: string, opts: ActivityOptions, handler: ActivityHandler<Arguments, Output>): ActivityFunction<Arguments, Output>; | ||
/** | ||
@@ -99,0 +99,0 @@ * Retrieve an activity function that has been registered in a workflow. |
@@ -80,2 +80,2 @@ "use strict"; | ||
exports.getCallableActivityNames = getCallableActivityNames; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYWN0aXZpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0RBQThEO0FBQzlELDJDQUlxQjtBQUVyQixpREFBNEU7QUFxRTVFLE1BQU0sZ0JBQWdCLEdBQUcsTUFBTSxD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5TmFtZXMoKSB7XG4gIHJldHVybiBPYmplY3Qua2V5cyhjYWxsYWJsZUFjdGl2aXRpZXMoKSk7XG59XG4iXX0= |
@@ -13,3 +13,3 @@ "use strict"; | ||
return (0, global_js_1.registerEventual)((0, eventual_js_1.createEventual)(eventual_js_1.EventualKind.RegisterSignalHandlerCall, { | ||
signalId: signalId, | ||
signalId, | ||
handler, | ||
@@ -22,2 +22,2 @@ dispose: function () { | ||
exports.createRegisterSignalHandlerCall = createRegisterSignalHandlerCall; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbmFsLWhhbmRsZXItY2FsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jYWxscy9zaWduYWwtaGFuZGxlci1jYWxsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLGdEQUt3QjtBQUV4Qiw0Q0FBZ0Q7QUFFaEQsNENBQWdEO0FBRWhELFNBQWdCLDJCQUEyQixDQUN6QyxDQUFNO0lBRU4sT0FBTyxJQUFBLDhCQUFnQixFQUFDLDBCQUFZLENBQUMseUJBQXlCLEVBQUUsQ0FBQyxDQUFDLENBQUM7QUFDckUsQ0FBQztBQUpELGtFQUlDO0FBVUQsU0FBZ0IsK0JBQStCLENBQzdDLFFBQWdCLEVBQ2hCLE9BQTZDO0lBRTdDLE9BQU8sSUFBQSw0QkFBZ0IsRUFDckIsSUFBQSw0QkFBYyxFQUFDLDBCQUFZLENBQUMseUJBQXlCLEVBQUU7UUFDckQsUUFBUSxFQUFFLFFBQVE7UUFDbEIsT0FBTztRQUNQLE9BQU8sRUFBRTtZQUNQLElBQUksQ0FBQyxNQUFNLEdBQUcsa0JBQU0sQ0FBQyxRQUFRLENBQUMsU0FBUyxDQUFDLENBQUM7UUFDM0MsQ0FBQztLQUNGLENBQUMsQ0FDSCxDQUFDO0FBQ0osQ0FBQztBQWJELDBFQWFD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WJlcjtcbiAgc2lnbmFsSWQ6IHN0cmluZztcbiAgaGFuZGxlcjogKGlucHV0OiBUKSA9PiBQcm9ncmFtIHwgdm9pZDtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGNyZWF0ZVJlZ2lzdGVyU2lnbmFsSGFuZGxlckNhbGwoXG4gIHNpZ25hbElkOiBzdHJpbmcsXG4gIGhhbmRsZXI6IFJlZ2lzdGVyU2lnbmFsSGFuZGxlckNhbGxbXCJoYW5kbGVyXCJdXG4pOiBSZWdpc3RlclNpZ25hbEhhbmRsZXJDYWxsIHtcbiAgcmV0dXJuIHJlZ2lzdGVyRXZlbnR1YWwoXG4gICAgY3JlYXRlRXZlbnR1YWwoRXZlbnR1YWxLaW5kLlJlZ2lzdGVyU2lnbmFsSGFuZGxlckNhbGwsIHtcbiAgICAgIHNpZ25hbElkLFxuICAgICAgaGFuZGxlcixcbiAgICAgIGRpc3Bvc2U6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgdGhpcy5yZXN1bHQgPSBSZXN1bHQucmVzb2x2ZWQodW5kZWZpbmVkKTtcbiAgICAgIH0sXG4gICAgfSlcbiAgKTtcbn1cbiJdfQ== |
@@ -84,2 +84,2 @@ "use strict"; | ||
exports.SynchronousOperationError = SynchronousOperationError; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZXJyb3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsTUFBYSxhQUFjLFNBQVEsS0FBSztJQUN0QyxZQUFZLElBQVksRUFBRSxPQUFnQjtRQUN4QyxLQUFLLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDZixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQztJQUNuQixDQUFDO0lBQ0Q7O09BRUc7SUFDSCxNQUFNO1FBQ0osT0FBTztZQUNML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AqICAgICAgIHJldHVybiBcImFjdGl2aXR5IGNvbXBsZXRlZCBzdWNjZXNzZnVsbHkhXCI7XG4gKiAgICB9IGNhdGNoIChlcnIpIHtcbiAqICAgICAgIGlmKGVyciBpbnN0YW5jZW9mIEhlYXJ0YmVhdFRpbWVvdXQpIHtcbiAqICAgICAgICAgIHJldHVybiBcImFjdGl2aXR5IGRpZCBub3Qgc2VuZCBoZWFydGJlYXRzIVwiO1xuICogICAgICAgfVxuICogICAgICAgdGhyb3cgZXJyO1xuICogICAgfVxuICogfSlcbiAqIGBgYFxuICovXG5leHBvcnQgY2xhc3MgSGVhcnRiZWF0VGltZW91dCBleHRlbmRzIFRpbWVvdXQge1xuICBjb25zdHJ1Y3RvcihtZXNzYWdlPzogc3RyaW5nKSB7XG4gICAgc3VwZXIobWVzc2FnZSk7XG4gICAgdGhpcy5uYW1lID0gXCJIZWFydGJlYXRUaW1lb3V0XCI7XG4gIH1cbn1cbi8qKlxuICogVGhyb3duIHdoZW4gYSBwYXJ0aWN1bGFyIGNvbnRleHQgb25seSBzdXBwb3J0IHN5bmNocm9ub3VzIG9wZXJhdGlvbnMgKGV4OiBjb25kaXRpb24gcHJlZGljYXRlKS5cbiAqL1xuZXhwb3J0IGNsYXNzIFN5bmNocm9ub3VzT3BlcmF0aW9uRXJyb3IgZXh0ZW5kcyBFdmVudHVhbEVycm9yIHtcbiAgY29uc3RydWN0b3IobWVzc2FnZT86IHN0cmluZykge1xuICAgIHN1cGVyKFwiU3luY2hyb25vdXNPcGVyYXRpb25FcnJvclwiLCBtZXNzYWdlKTtcbiAgfVxufVxuIl19 |
import { ActivityCall } from "./calls/activity-call.js"; | ||
import { AwaitAll } from "./await-all.js"; | ||
import { Chain } from "./chain.js"; | ||
import { chain, Chain } from "./chain.js"; | ||
import type { Program } from "./interpret.js"; | ||
@@ -47,3 +47,3 @@ import { Result } from "./result.js"; | ||
export declare function isCommandCall(call: Eventual): call is CommandCall; | ||
export declare namespace Eventual { | ||
export declare const Eventual: { | ||
/** | ||
@@ -54,7 +54,7 @@ * Wait for all {@link activities} to complete or until at least one throws. | ||
*/ | ||
function all<A extends Eventual[]>(activities: A): AwaitAll<EventualArrayPositional<A>>; | ||
function any<A extends Eventual[]>(activities: A): AwaitAny<EventualArrayUnion<A>>; | ||
function race<A extends Eventual[]>(activities: A): Race<EventualArrayUnion<A>>; | ||
function allSettled<A extends Eventual[]>(activities: A): AwaitAllSettled<EventualArrayPromiseResult<A>>; | ||
} | ||
all<A extends Eventual<any>[]>(activities: A): AwaitAll<EventualArrayPositional<A>>; | ||
any<A_1 extends Eventual<any>[]>(activities: A_1): AwaitAny<EventualArrayUnion<A_1>>; | ||
race<A_2 extends Eventual<any>[]>(activities: A_2): Race<EventualArrayUnion<A_2>>; | ||
allSettled<A_3 extends Eventual<any>[]>(activities: A_3): AwaitAllSettled<EventualArrayPromiseResult<A_3>>; | ||
}; | ||
export interface EventualCallCollector { | ||
@@ -70,3 +70,7 @@ pushEventual<E extends Eventual>(activity: E): E; | ||
export type EventualArrayUnion<A extends Eventual<any>[]> = A[number] extends Eventual<infer T> ? T : never; | ||
declare global { | ||
var $eventual: typeof chain; | ||
var $Eventual: typeof Eventual; | ||
} | ||
export {}; | ||
//# sourceMappingURL=eventual.d.ts.map |
@@ -61,4 +61,3 @@ "use strict"; | ||
exports.isCommandCall = isCommandCall; | ||
var Eventual; | ||
(function (Eventual) { | ||
exports.Eventual = { | ||
/** | ||
@@ -69,3 +68,3 @@ * Wait for all {@link activities} to complete or until at least one throws. | ||
*/ | ||
function all(activities) { | ||
all(activities) { | ||
if (!(0, flags_js_1.isOrchestratorWorker)()) { | ||
@@ -75,5 +74,4 @@ throw new Error("Eventual.all is only valid in a workflow"); | ||
return (0, await_all_js_1.createAwaitAll)(activities); | ||
} | ||
Eventual.all = all; | ||
function any(activities) { | ||
}, | ||
any(activities) { | ||
if (!(0, flags_js_1.isOrchestratorWorker)()) { | ||
@@ -83,5 +81,4 @@ throw new Error("Eventual.any is only valid in a workflow"); | ||
return (0, await_any_js_1.createAwaitAny)(activities); | ||
} | ||
Eventual.any = any; | ||
function race(activities) { | ||
}, | ||
race(activities) { | ||
if (!(0, flags_js_1.isOrchestratorWorker)()) { | ||
@@ -91,5 +88,4 @@ throw new Error("Eventual.race is only valid in a workflow"); | ||
return (0, race_js_1.createRace)(activities); | ||
} | ||
Eventual.race = race; | ||
function allSettled(activities) { | ||
}, | ||
allSettled(activities) { | ||
if (!(0, flags_js_1.isOrchestratorWorker)()) { | ||
@@ -99,10 +95,6 @@ throw new Error("Eventual.allSettled is only valid in a workflow"); | ||
return (0, await_all_settled_js_1.createAwaitAllSettled)(activities); | ||
} | ||
Eventual.allSettled = allSettled; | ||
})(Eventual = exports.Eventual || (exports.Eventual = {})); | ||
// the below globals are required by the transformer | ||
// @ts-ignore | ||
}, | ||
}; | ||
global.$eventual = chain_js_1.chain; | ||
// @ts-ignore | ||
global.$Eventual = Eventual; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnR1YWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZXZlbnR1YWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0RBQXdFO0FBQ3hFLGlEQUEwRDtBQUMxRCx5Q0FBMEM7QUFHMUMseURBSytCO0FBQy9CLHlFQUd1QztBQUN2QywyRUFHd0M7QUFDeEMscUVBQStFO0FBQy9FLCtEQUF3RTtBQUN4RSxpRUFBMkU7QUFDM0UsaURBQTBEO0FBQzFELGlEQUEwRDtBQUMxRCxpRUFBZ0Y7QUFDaEYsdUNBQTZDO0FBQzdDLHFFQUdxQztBQVVyQyxNQUFNLGNBQWMsR0FBRyxNQUFNLENBQUMsR0FBRyxDQUFDLG1CQUFtQixDQUFDLENBQUM7QUFPdkQsSUFBWSxZQWVYO0FBZkQsV0FBWSxZQUFZO0lBQ3RCLCtEQUFnQixDQUFBO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IGdsb2JhbCBldmVudCBjbGllbnQuXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBnZXRFdmVudENsaWVudCgpOiBFdmVudENsaWVudCB7XG4gIGlmIChnbG9iYWxUaGlzLl9ldmVudHVhbC5ldmVudENsaWVudCA9PT0gdW5kZWZpbmVkKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKGBFdmVudENsaWVudCBpcyBub3QgcmVnaXN0ZXJlZGApO1xuICB9XG4gIHJldHVybiBnbG9iYWxUaGlzLl9ldmVudHVhbC5ldmVudENsaWVudDtcbn1cbiJdfQ== |
@@ -22,3 +22,3 @@ "use strict"; | ||
return await (0, global_js_1.getWorkflowClient)().heartbeatActivity({ | ||
activityToken: activityToken, | ||
activityToken, | ||
}); | ||
@@ -37,2 +37,2 @@ } | ||
exports.heartbeat = heartbeat; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhcnRiZWF0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2hlYXJ0YmVhdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwyQ0FBb0U7QUFFcEUsaURBQTRFO0FBRTVFOzs7Ozs7Ozs7R0FTRztBQUNJLEtBQUssVUFBVSxTQUFTLENBQzdCLGFBQXNCO0lBRXRCLElBQUksSUFBQSwrQkFBb0IsR0FBRSxFQUFFO1FBQzFCLE1BQU0sSUFBSSxLQUFLLENBQ2Isa0dBQWtHLENBQ25HLENBQUM7S0FDSDtTQUFNLElBQUksYUFBYSxFQUFFO1FBQ3hCLE9BQU8sTUFBTSxJQUFBLDZCQUFpQixHQUFFLENBQUMsaUJBQWlCLENBQUM7WUFDakQsYUFBYSxFQUFFLGFBQWE7U0FDN0IsQ0FBQyxDQUFDO0tBQ0o7U0FBTSxJQUFJLElBQUEsMkJBQWdCLEdBQUUsRUFBRTtRQUM3QixNQUFNLEtBQUssR0FBRyxJQU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9cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBoZWFydGJlYXQoXG4gIGFjdGl2aXR5VG9rZW4/OiBzdHJpbmdcbik6IFByb21pc2U8SGVhcnRiZWF0UmVzcG9uc2U+IHtcbiAgaWYgKGlzT3JjaGVzdHJhdG9yV29ya2VyKCkpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICBcIkhlYXJ0YmVhdCBpcyBub3QgY3VycmVudGx5IHN1cHBvcnRlZCBmcm9tIHdpdGhpbiBhIHdvcmtmbG93LiBVc2UgYW4gYWN0aXZpdHkgd2l0aCBgaGVhcnRiZWF0KClgLlwiXG4gICAgKTtcbiAgfSBlbHNlIGlmIChhY3Rpdml0eVRva2VuKSB7XG4gICAgcmV0dXJuIGF3YWl0IGdldFdvcmtmbG93Q2xpZW50KCkuaGVhcnRiZWF0QWN0aXZpdHkoe1xuICAgICAgYWN0aXZpdHlUb2tlbixcbiAgICB9KTtcbiAgfSBlbHNlIGlmIChpc0FjdGl2aXR5V29ya2VyKCkpIHtcbiAgICBjb25zdCB0b2tlbiA9IGdldEFjdGl2aXR5Q29udGV4dCgpLmFjdGl2aXR5VG9rZW47XG4gICAgcmV0dXJuIGF3YWl0IGdldFdvcmtmbG93Q2xpZW50KCkuaGVhcnRiZWF0QWN0aXZpdHkoe1xuICAgICAgYWN0aXZpdHlUb2tlbjogdG9rZW4sXG4gICAgfSk7XG4gIH0gZWxzZSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKFxuICAgICAgXCJBY3Rpdml0eSB0b2tlbiBtdXN0IGJlIHByb3ZpZGVkIHdoZW4gbm90IHdpdGhpbiBhbiBBY3Rpdml0eS5cIlxuICAgICk7XG4gIH1cbn1cbiJdfQ== |
import { Eventual } from "./eventual.js"; | ||
export declare const ResultSymbol: unique symbol; | ||
export type Result<T = any> = Pending | Resolved<T> | Failed; | ||
export declare namespace Result { | ||
function resolved<T>(value: T): Resolved<T>; | ||
function failed(error: any): Failed; | ||
function pending<A extends Eventual>(activity: A): Pending<A>; | ||
} | ||
export declare const Result: { | ||
resolved<T>(value: T): Resolved<T>; | ||
failed(error: any): Failed; | ||
pending<A extends Eventual<any>>(activity: A): Pending<A>; | ||
}; | ||
export declare enum ResultKind { | ||
@@ -10,0 +10,0 @@ Pending = 0, |
@@ -6,5 +6,4 @@ "use strict"; | ||
exports.ResultSymbol = Symbol.for("eventual:Result"); | ||
var Result; | ||
(function (Result) { | ||
function resolved(value) { | ||
exports.Result = { | ||
resolved(value) { | ||
return { | ||
@@ -14,5 +13,4 @@ [exports.ResultSymbol]: ResultKind.Resolved, | ||
}; | ||
} | ||
Result.resolved = resolved; | ||
function failed(error) { | ||
}, | ||
failed(error) { | ||
return { | ||
@@ -22,5 +20,4 @@ [exports.ResultSymbol]: ResultKind.Failed, | ||
}; | ||
} | ||
Result.failed = failed; | ||
function pending(activity) { | ||
}, | ||
pending(activity) { | ||
return { | ||
@@ -30,5 +27,4 @@ [exports.ResultSymbol]: ResultKind.Pending, | ||
}; | ||
} | ||
Result.pending = pending; | ||
})(Result = exports.Result || (exports.Result = {})); | ||
}, | ||
}; | ||
var ResultKind; | ||
@@ -57,2 +53,2 @@ (function (ResultKind) { | ||
exports.isResolvedOrFailed = (0, util_js_1.or)(isResolved, isFailed); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzdWx0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3Jlc3VsdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSx1Q0FBK0I7QUFFbEIsUUFBQSxZQUFZLEdBQUcsTUFBTSxDQUFDLEdBQUcsQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDO0FBSTFELElBQWlCLE1BQU0sQ0FxQnRCO0FBckJELFdBQWlCLE1BQU07SUFDckIsU0FBZ0IsUUFBUSxDQUFJLEtBQVE7UUFDbEMsT0FBTztZQUNMLENB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mQuUmVzb2x2ZWQ7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc0ZhaWxlZChyZXN1bHQ6IFJlc3VsdCB8IHVuZGVmaW5lZCk6IHJlc3VsdCBpcyBGYWlsZWQge1xuICByZXR1cm4gaXNSZXN1bHQocmVzdWx0KSAmJiByZXN1bHRbUmVzdWx0U3ltYm9sXSA9PT0gUmVzdWx0S2luZC5GYWlsZWQ7XG59XG5cbmV4cG9ydCBjb25zdCBpc1Jlc29sdmVkT3JGYWlsZWQgPSBvcihpc1Jlc29sdmVkLCBpc0ZhaWxlZCk7XG4iXX0= |
@@ -60,6 +60,6 @@ import { HistoryStateEvent } from "../../workflow-events.js"; | ||
export type Schedule = RelativeSchedule | AbsoluteSchedule; | ||
export declare namespace Schedule { | ||
function relative(timerSeconds: number, baseTime?: Date): RelativeSchedule; | ||
function absolute(untilTime: string): AbsoluteSchedule; | ||
} | ||
export declare const Schedule: { | ||
relative(timerSeconds: number, baseTime?: Date): RelativeSchedule; | ||
absolute(untilTime: string): AbsoluteSchedule; | ||
}; | ||
export type TimerRequestBase<T extends TimerRequestType> = { | ||
@@ -66,0 +66,0 @@ type: T; |
@@ -9,5 +9,4 @@ "use strict"; | ||
})(TimerRequestType = exports.TimerRequestType || (exports.TimerRequestType = {})); | ||
var Schedule; | ||
(function (Schedule) { | ||
function relative(timerSeconds, baseTime = new Date()) { | ||
exports.Schedule = { | ||
relative(timerSeconds, baseTime = new Date()) { | ||
return { | ||
@@ -18,5 +17,4 @@ type: "Relative", | ||
}; | ||
} | ||
Schedule.relative = relative; | ||
function absolute(untilTime) { | ||
}, | ||
absolute(untilTime) { | ||
return { | ||
@@ -26,5 +24,4 @@ type: "Absolute", | ||
}; | ||
} | ||
Schedule.absolute = absolute; | ||
})(Schedule = exports.Schedule || (exports.Schedule = {})); | ||
}, | ||
}; | ||
function isTimerScheduleEventRequest(timerRequest) { | ||
@@ -39,2 +36,2 @@ return timerRequest && timerRequest.type === TimerRequestType.ScheduleEv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tYmVyO1xuICB9O1xuXG5leHBvcnQgZnVuY3Rpb24gaXNBY3Rpdml0eUhlYXJ0YmVhdE1vbml0b3JSZXF1ZXN0KFxuICB0aW1lclJlcXVlc3Q6IFRpbWVyUmVxdWVzdFxuKTogdGltZXJSZXF1ZXN0IGlzIEFjdGl2aXR5SGVhcnRiZWF0TW9uaXRvclJlcXVlc3Qge1xuICByZXR1cm4gKFxuICAgIHRpbWVyUmVxdWVzdCAmJlxuICAgIHRpbWVyUmVxdWVzdC50eXBlID09PSBUaW1lclJlcXVlc3RUeXBlLkFjdGl2aXR5SGVhcnRiZWF0TW9uaXRvclxuICApO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIFNjaGVkdWxlRm9yd2FyZGVyUmVxdWVzdCB7XG4gIHNjaGVkdWxlTmFtZTogc3RyaW5nO1xuICBjbGVhclNjaGVkdWxlOiBib29sZWFuO1xuICB0aW1lclJlcXVlc3Q6IFRpbWVyUmVxdWVzdDtcbiAgZm9yd2FyZFRpbWU6IHN0cmluZztcbiAgLyoqXG4gICAqIElTTyA4NjAxIFRpbWVzdGFtcCBkZXRlcm1pbmluZyB3aGVuIHRoZSBtZXNzYWdlIHNob3VsZCBiZSB2aXNpYmxlIHRvIHRoZSB0aW1lciBxdWV1ZS5cbiAgICovXG4gIHVudGlsVGltZTogc3RyaW5nO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIFNjaGVkdWxlRXZlbnRSZXF1ZXN0PEUgZXh0ZW5kcyBIaXN0b3J5U3RhdGVFdmVudD5cbiAgZXh0ZW5kcyBPbWl0PFRpbWVyU2NoZWR1bGVFdmVudFJlcXVlc3QsIFwiZXZlbnRcIiB8IFwidHlwZVwiPiB7XG4gIGV2ZW50OiBPbWl0PEUsIFwidGltZXN0YW1wXCI+O1xufVxuIl19 |
@@ -38,7 +38,7 @@ import { HistoryStateEvent } from "../../workflow-events.js"; | ||
*/ | ||
completeActivity({ activityToken: activityToken, result, }: CompleteActivityRequest): Promise<void>; | ||
completeActivity({ activityToken, result, }: CompleteActivityRequest): Promise<void>; | ||
/** | ||
* Fails an async activity causing it to throw the given error. | ||
*/ | ||
failActivity({ activityToken: activityToken, error, message, }: FailActivityRequest): Promise<void>; | ||
failActivity({ activityToken, error, message, }: FailActivityRequest): Promise<void>; | ||
/** | ||
@@ -45,0 +45,0 @@ * Submits a "heartbeat" for the given activityToken. |
@@ -29,3 +29,3 @@ "use strict"; | ||
*/ | ||
async completeActivity({ activityToken: activityToken, result, }) { | ||
async completeActivity({ activityToken, result, }) { | ||
await this.sendActivityResult(activityToken, { | ||
@@ -39,3 +39,3 @@ type: workflow_events_js_1.WorkflowEventType.ActivityCompleted, | ||
*/ | ||
async failActivity({ activityToken: activityToken, error, message, }) { | ||
async failActivity({ activityToken, error, message, }) { | ||
await this.sendActivityResult(activityToken, { | ||
@@ -69,2 +69,2 @@ type: workflow_events_js_1.WorkflowEventType.ActivityFailed, | ||
exports.WorkflowClient = WorkflowClient; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Zsb3ctY2xpZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3J1bnRpbWUvY2xpZW50cy93b3JrZmxvdy1jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsaUVBT2tDO0FBQ2xDLHFEQUFnRTtBQUdoRSw0REFBMkQ7QUFHM0QsTUFBc0IsY0FBYztJQUNsQyxZQUFvQixxQkFBNEM7UUFBNUMsMEJBQXFCLEdBQXJCLHFCQUFxQixDQUF1QjtJQUFHLENBQUM7SUE4QnBFOzs7OztPQUtHO0lBQ0ksS0FBSyxDQUFDLFVBQVUsQ0FBQyxPQUEwQjtRQUNoRCxNQUFNLElBQUksQ0FBQyxrQkFBa0IsQ0FDM0IsT0FBTyxDQUFDLFdBQVcsRUFDbkIsSUFBQSxnQ0FBVyxFQUNUO1lBQ0U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G51bWJlcjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBTdGFydFdvcmtmbG93UmVzcG9uc2Uge1xuICAvKipcbiAgICogSUQgb2YgdGhlIHN0YXJ0ZWQgd29ya2Zsb3cgZXhlY3V0aW9uLlxuICAgKi9cbiAgZXhlY3V0aW9uSWQ6IHN0cmluZztcbn1cblxuZXhwb3J0IGludGVyZmFjZSBDb21wbGV0ZUFjdGl2aXR5UmVxdWVzdDxUID0gYW55PiB7XG4gIGFjdGl2aXR5VG9rZW46IHN0cmluZztcbiAgcmVzdWx0OiBUO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEZhaWxBY3Rpdml0eVJlcXVlc3Qge1xuICBhY3Rpdml0eVRva2VuOiBzdHJpbmc7XG4gIGVycm9yOiBzdHJpbmc7XG4gIG1lc3NhZ2U6IHN0cmluZztcbn1cblxuZXhwb3J0IGludGVyZmFjZSBIZWFydGJlYXRSZXF1ZXN0IHtcbiAgYWN0aXZpdHlUb2tlbjogc3RyaW5nO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEhlYXJ0YmVhdFJlc3BvbnNlIHtcbiAgLyoqXG4gICAqIFRydWUgd2hlbiB0aGUgYWN0aXZpdHkgaGFzIGJlZW4gY2FuY2VsbGVkLlxuICAgKlxuICAgKiBUaGlzIGlzIHRoZSBvbmx5IHdheSBmb3IgYSBsb25nIHJ1bm5pbmcgYWN0aXZpdHkgdG8ga25vdyBpdCB3YXMgY2FuZWxsZWQuXG4gICAqL1xuICBjYW5jZWxsZWQ6IGJvb2xlYW47XG59XG4iXX0= |
@@ -18,4 +18,11 @@ import { Command } from "../command.js"; | ||
executeCommand(workflow: Workflow, executionId: string, command: Command, baseTime: Date): Promise<HistoryStateEvent>; | ||
private scheduleActivity; | ||
private scheduleChildWorkflow; | ||
private scheduleSleep; | ||
private executeExpectSignal; | ||
private sendSignal; | ||
private startCondition; | ||
private publishEvents; | ||
} | ||
export {}; | ||
//# sourceMappingURL=command-executor.d.ts.map |
@@ -18,25 +18,24 @@ "use strict"; | ||
async executeCommand(workflow, executionId, command, baseTime) { | ||
const self = this; | ||
if ((0, command_js_1.isScheduleActivityCommand)(command)) { | ||
return await scheduleActivity(command); | ||
return await this.scheduleActivity(workflow, executionId, command, baseTime); | ||
} | ||
else if ((0, command_js_1.isScheduleWorkflowCommand)(command)) { | ||
return scheduleChildWorkflow(command); | ||
return this.scheduleChildWorkflow(executionId, command); | ||
} | ||
else if ((0, command_js_1.isSleepForCommand)(command) || (0, command_js_1.isSleepUntilCommand)(command)) { | ||
// all sleep times are computed using the start time of the WorkflowTaskStarted | ||
return scheduleSleep(command); | ||
return this.scheduleSleep(executionId, command, baseTime); | ||
} | ||
else if ((0, command_js_1.isExpectSignalCommand)(command)) { | ||
// should the timeout command be generic (ex: StartTimeout) or specific (ex: ExpectSignal)? | ||
return executeExpectSignal(command); | ||
return this.executeExpectSignal(executionId, command, baseTime); | ||
} | ||
else if ((0, command_js_1.isSendSignalCommand)(command)) { | ||
return sendSignal(command); | ||
return this.sendSignal(executionId, command); | ||
} | ||
else if ((0, command_js_1.isStartConditionCommand)(command)) { | ||
return startCondition(command); | ||
return this.startCondition(executionId, command, baseTime); | ||
} | ||
else if ((0, command_js_1.isPublishEventsCommand)(command)) { | ||
return publishEvents(command); | ||
return this.publishEvents(command); | ||
} | ||
@@ -46,128 +45,128 @@ else { | ||
} | ||
async function scheduleActivity(command) { | ||
const request = { | ||
scheduledTime: new Date().toISOString(), | ||
workflowName: workflow.workflowName, | ||
} | ||
async scheduleActivity(workflow, executionId, command, baseTime) { | ||
const request = { | ||
scheduledTime: new Date().toISOString(), | ||
workflowName: workflow.workflowName, | ||
executionId, | ||
command, | ||
retry: 0, | ||
}; | ||
const timeoutStarter = command.timeoutSeconds | ||
? await this.props.timerClient.scheduleEvent({ | ||
schedule: index_js_2.Schedule.relative(command.timeoutSeconds, baseTime), | ||
event: { | ||
type: workflow_events_js_1.WorkflowEventType.ActivityTimedOut, | ||
seq: command.seq, | ||
}, | ||
executionId, | ||
command, | ||
retry: 0, | ||
}; | ||
const timeoutStarter = command.timeoutSeconds | ||
? await self.props.timerClient.scheduleEvent({ | ||
schedule: index_js_2.Schedule.relative(command.timeoutSeconds, baseTime), | ||
event: { | ||
type: workflow_events_js_1.WorkflowEventType.ActivityTimedOut, | ||
seq: command.seq, | ||
}, | ||
executionId, | ||
}) | ||
: undefined; | ||
const activityStarter = self.props.workflowRuntimeClient.startActivity(request); | ||
await Promise.all([activityStarter, timeoutStarter]); | ||
return (0, workflow_events_js_1.createEvent)({ | ||
type: workflow_events_js_1.WorkflowEventType.ActivityScheduled, | ||
}) | ||
: undefined; | ||
const activityStarter = this.props.workflowRuntimeClient.startActivity(request); | ||
await Promise.all([activityStarter, timeoutStarter]); | ||
return (0, workflow_events_js_1.createEvent)({ | ||
type: workflow_events_js_1.WorkflowEventType.ActivityScheduled, | ||
seq: command.seq, | ||
name: command.name, | ||
}); | ||
} | ||
async scheduleChildWorkflow(executionId, command) { | ||
await this.props.workflowClient.startWorkflow({ | ||
workflowName: command.name, | ||
input: command.input, | ||
parentExecutionId: executionId, | ||
executionName: (0, execution_id_js_1.formatChildExecutionName)(executionId, command.seq), | ||
seq: command.seq, | ||
...command.opts, | ||
}); | ||
return (0, workflow_events_js_1.createEvent)({ | ||
type: workflow_events_js_1.WorkflowEventType.ChildWorkflowScheduled, | ||
seq: command.seq, | ||
name: command.name, | ||
input: command.input, | ||
}); | ||
} | ||
async scheduleSleep(executionId, command, baseTime) { | ||
// TODO validate | ||
const untilTime = (0, command_js_1.isSleepUntilCommand)(command) | ||
? new Date(command.untilTime) | ||
: new Date(baseTime.getTime() + command.durationSeconds * 1000); | ||
const untilTimeIso = untilTime.toISOString(); | ||
await this.props.timerClient.scheduleEvent({ | ||
event: { | ||
type: workflow_events_js_1.WorkflowEventType.SleepCompleted, | ||
seq: command.seq, | ||
name: command.name, | ||
}, | ||
schedule: index_js_2.Schedule.absolute(untilTimeIso), | ||
executionId, | ||
}); | ||
return (0, workflow_events_js_1.createEvent)({ | ||
type: workflow_events_js_1.WorkflowEventType.SleepScheduled, | ||
seq: command.seq, | ||
untilTime: untilTime.toISOString(), | ||
}); | ||
} | ||
async executeExpectSignal(executionId, command, baseTime) { | ||
if (command.timeoutSeconds) { | ||
await this.props.timerClient.scheduleEvent({ | ||
event: { | ||
signalId: command.signalId, | ||
seq: command.seq, | ||
type: workflow_events_js_1.WorkflowEventType.ExpectSignalTimedOut, | ||
}, | ||
schedule: index_js_2.Schedule.relative(command.timeoutSeconds, baseTime), | ||
executionId, | ||
}); | ||
} | ||
async function scheduleChildWorkflow(command) { | ||
await self.props.workflowClient.startWorkflow({ | ||
workflowName: command.name, | ||
input: command.input, | ||
parentExecutionId: executionId, | ||
executionName: (0, execution_id_js_1.formatChildExecutionName)(executionId, command.seq), | ||
seq: command.seq, | ||
...command.opts, | ||
}); | ||
return (0, workflow_events_js_1.createEvent)({ | ||
type: workflow_events_js_1.WorkflowEventType.ChildWorkflowScheduled, | ||
seq: command.seq, | ||
name: command.name, | ||
input: command.input, | ||
}); | ||
} | ||
async function scheduleSleep(command) { | ||
// TODO validate | ||
const untilTime = (0, command_js_1.isSleepUntilCommand)(command) | ||
? new Date(command.untilTime) | ||
: new Date(baseTime.getTime() + command.durationSeconds * 1000); | ||
const untilTimeIso = untilTime.toISOString(); | ||
await self.props.timerClient.scheduleEvent({ | ||
return (0, workflow_events_js_1.createEvent)({ | ||
signalId: command.signalId, | ||
seq: command.seq, | ||
type: workflow_events_js_1.WorkflowEventType.ExpectSignalStarted, | ||
timeoutSeconds: command.timeoutSeconds, | ||
}); | ||
} | ||
async sendSignal(executionId, command) { | ||
const childExecutionId = (0, index_js_1.isChildExecutionTarget)(command.target) | ||
? (0, execution_id_js_1.formatExecutionId)(command.target.workflowName, (0, execution_id_js_1.formatChildExecutionName)(executionId, command.target.seq)) | ||
: command.target.executionId; | ||
await this.props.workflowClient.sendSignal({ | ||
signal: command.signalId, | ||
executionId: childExecutionId, | ||
id: `${executionId}/${command.seq}`, | ||
payload: command.payload, | ||
}); | ||
return (0, workflow_events_js_1.createEvent)({ | ||
type: workflow_events_js_1.WorkflowEventType.SignalSent, | ||
executionId: childExecutionId, | ||
seq: command.seq, | ||
signalId: command.signalId, | ||
payload: command.payload, | ||
}); | ||
} | ||
async startCondition(executionId, command, baseTime) { | ||
if (command.timeoutSeconds) { | ||
await this.props.timerClient.scheduleEvent({ | ||
event: { | ||
type: workflow_events_js_1.WorkflowEventType.SleepCompleted, | ||
type: workflow_events_js_1.WorkflowEventType.ConditionTimedOut, | ||
seq: command.seq, | ||
}, | ||
schedule: index_js_2.Schedule.absolute(untilTimeIso), | ||
executionId, | ||
schedule: index_js_2.Schedule.relative(command.timeoutSeconds, baseTime), | ||
}); | ||
return (0, workflow_events_js_1.createEvent)({ | ||
type: workflow_events_js_1.WorkflowEventType.SleepScheduled, | ||
seq: command.seq, | ||
untilTime: untilTime.toISOString(), | ||
}); | ||
} | ||
async function executeExpectSignal(command) { | ||
if (command.timeoutSeconds) { | ||
await self.props.timerClient.scheduleEvent({ | ||
event: { | ||
signalId: command.signalId, | ||
seq: command.seq, | ||
type: workflow_events_js_1.WorkflowEventType.ExpectSignalTimedOut, | ||
}, | ||
schedule: index_js_2.Schedule.relative(command.timeoutSeconds, baseTime), | ||
executionId, | ||
}); | ||
} | ||
return (0, workflow_events_js_1.createEvent)({ | ||
signalId: command.signalId, | ||
seq: command.seq, | ||
type: workflow_events_js_1.WorkflowEventType.ExpectSignalStarted, | ||
timeoutSeconds: command.timeoutSeconds, | ||
}); | ||
} | ||
async function sendSignal(command) { | ||
const childExecutionId = (0, index_js_1.isChildExecutionTarget)(command.target) | ||
? (0, execution_id_js_1.formatExecutionId)(command.target.workflowName, (0, execution_id_js_1.formatChildExecutionName)(executionId, command.target.seq)) | ||
: command.target.executionId; | ||
await self.props.workflowClient.sendSignal({ | ||
signal: command.signalId, | ||
executionId: childExecutionId, | ||
id: `${executionId}/${command.seq}`, | ||
payload: command.payload, | ||
}); | ||
return (0, workflow_events_js_1.createEvent)({ | ||
type: workflow_events_js_1.WorkflowEventType.SignalSent, | ||
executionId: childExecutionId, | ||
seq: command.seq, | ||
signalId: command.signalId, | ||
payload: command.payload, | ||
}); | ||
} | ||
async function startCondition(command) { | ||
if (command.timeoutSeconds) { | ||
await self.props.timerClient.scheduleEvent({ | ||
event: { | ||
type: workflow_events_js_1.WorkflowEventType.ConditionTimedOut, | ||
seq: command.seq, | ||
}, | ||
executionId, | ||
schedule: index_js_2.Schedule.relative(command.timeoutSeconds, baseTime), | ||
}); | ||
} | ||
return (0, workflow_events_js_1.createEvent)({ | ||
type: workflow_events_js_1.WorkflowEventType.ConditionStarted, | ||
seq: command.seq, | ||
}); | ||
} | ||
async function publishEvents(command) { | ||
await self.props.eventClient.publish(...command.events); | ||
return (0, workflow_events_js_1.createEvent)({ | ||
type: workflow_events_js_1.WorkflowEventType.EventsPublished, | ||
events: command.events, | ||
seq: command.seq, | ||
}); | ||
} | ||
return (0, workflow_events_js_1.createEvent)({ | ||
type: workflow_events_js_1.WorkflowEventType.ConditionStarted, | ||
seq: command.seq, | ||
}); | ||
} | ||
async publishEvents(command) { | ||
await this.props.eventClient.publish(...command.events); | ||
return (0, workflow_events_js_1.createEvent)({ | ||
type: workflow_events_js_1.WorkflowEventType.EventsPublished, | ||
events: command.events, | ||
seq: command.seq, | ||
}); | ||
} | ||
} | ||
exports.CommandExecutor = CommandExecutor; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZC1leGVjdXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ydW50aW1lL2NvbW1hbmQtZXhlY3V0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsOENBa0J1QjtBQUN2Qiw4REFjK0I7QUFDL0IsMENBQXNFO0FBQ3RFLHdDQUF5QztBQUV6Q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ogY29tbWFuZC5zZXEsXG4gICAgICAgIH0sXG4gICAgICAgIGV4ZWN1dGlvbklkLFxuICAgICAgICBzY2hlZHVsZTogU2NoZWR1bGUucmVsYXRpdmUoY29tbWFuZC50aW1lb3V0U2Vjb25kcywgYmFzZVRpbWUpLFxuICAgICAgfSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIGNyZWF0ZUV2ZW50PENvbmRpdGlvblN0YXJ0ZWQ+KHtcbiAgICAgIHR5cGU6IFdvcmtmbG93RXZlbnRUeXBlLkNvbmRpdGlvblN0YXJ0ZWQsXG4gICAgICBzZXE6IGNvbW1hbmQuc2VxISxcbiAgICB9KTtcbiAgfVxuXG4gIHByaXZhdGUgYXN5bmMgcHVibGlzaEV2ZW50cyhjb21tYW5kOiBQdWJsaXNoRXZlbnRzQ29tbWFuZCkge1xuICAgIGF3YWl0IHRoaXMucHJvcHMuZXZlbnRDbGllbnQucHVibGlzaCguLi5jb21tYW5kLmV2ZW50cyk7XG4gICAgcmV0dXJuIGNyZWF0ZUV2ZW50PEV2ZW50c1B1Ymxpc2hlZD4oe1xuICAgICAgdHlwZTogV29ya2Zsb3dFdmVudFR5cGUuRXZlbnRzUHVibGlzaGVkLFxuICAgICAgZXZlbnRzOiBjb21tYW5kLmV2ZW50cyxcbiAgICAgIHNlcTogY29tbWFuZC5zZXEhLFxuICAgIH0pO1xuICB9XG59XG4iXX0= |
@@ -16,3 +16,3 @@ "use strict"; | ||
exports.formatExecutionId = formatExecutionId; | ||
//API Gateway doesn't agree with uri encoding in path parameter... so we have these. for now | ||
// API Gateway doesn't agree with uri encoding in path parameter... so we have these. for now | ||
function encodeExecutionId(executionId) { | ||
@@ -41,2 +41,2 @@ return Buffer.from(executionId, "utf-8").toString("base64"); | ||
exports.formatChildExecutionName = formatChildExecutionName; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhlY3V0aW9uLWlkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdX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Events = new Set(originalHistory.map(workflow_events_js_1.getEventId)); | ||
@@ -305,2 +305,2 @@ for await (const event of executionGenerator) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JjaGVzdHJhdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3J1bnRpbWUvaGFuZGxlcnMvb3JjaGVzdHJhdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLCtCQUErQjtBQUcvQixpRUFnQmtDO0FBQ2xDLHFEQUs0QjtBQUM1QiwrQ0FBeUU7QUFDekUsbURBQStFO0FBQy9FLGtEQVE2QjtBQUM3QixnRUFBeUQ7QUFDekQsd0RBQXNFO0FBRXRFLDBEQUE2RTtBQUU3RSxnREFBMEM7QUFDMUMsa0RBQXVEO0FBQ3ZELDBDQUEyRDtBQUMzRCwyQ0FBNkM7QUFzQjdDOzs7OztHQUtHO0FBQ0gsU0FBZ0Isa0JBQWtCLENBQUMsRUFDakMsc0JBQXNCLEVBQ3RCLFdBQVcsRUFDWCxxQkFBcUIsRUFDckIsY0FBYyxFQUNkLGFBQWEsRUFDYixXQUFXLEVBQ1gsTUFBTSxHQUNtQjtJQUd6QixNQUFNLGVBQWUsR0FBRyxJQUFJLHFDQUFlLENBQUM7UUFDMUMsV0FBVztRQUNYLGNBQWM7UUFDZCxxQkFBcUI7UUFDckIsV0FBVztLQUNaLENBQUMsQ0FBQztJQUVILE9BQU8sS0FBSyxFQUFFLG1CQUFtQixFQUFFLEVBQUU7UUFDbkMsTUFBTSxDQUFDLEtBQUssQ0FBQyw4QkFBOEIsQ0FBQyxDQUFDO1FBRTdDLE1BQU0sQ0FBQyxJQUFJLENBQ1QsdUJBQXVCLEdBQUcsTUFBTSxDQUFDLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FDdE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ICAgICAgICAgICAgIHNjaGVkdWxlOiBTY2hlZHVsZS5hYnNvbHV0ZShuZXdXb3JrZmxvd1N0YXJ0LnRpbWVvdXRUaW1lISksXG4gICAgICAgICAgICAgICAgICBldmVudDogY3JlYXRlRXZlbnQ8V29ya2Zsb3dUaW1lZE91dD4oe1xuICAgICAgICAgICAgICAgICAgICB0eXBlOiBXb3JrZmxvd0V2ZW50VHlwZS5Xb3JrZmxvd1RpbWVkT3V0LFxuICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICBleGVjdXRpb25JZCxcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgKTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgbWV0cmljcy5zZXRQcm9wZXJ0eShPcmNoZXN0cmF0b3JNZXRyaWNzLlRpbWVvdXRTdGFydGVkLCAwKTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCB7XG4gICAgICAgICAgcmVzdWx0LFxuICAgICAgICAgIGNvbW1hbmRzOiBuZXdDb21tYW5kcyxcbiAgICAgICAgICBoaXN0b3J5OiB1cGRhdGVkSGlzdG9yeUV2ZW50cyxcbiAgICAgICAgfSA9IHRpbWVkU3luYyhcbiAgICAgICAgICBtZXRyaWNzLFxuICAgICAgICAgIE9yY2hlc3RyYXRvck1ldHJpY3MuQWR2YW5jZUV4ZWN1dGlvbkR1cmF0aW9uLFxuICAgICAgICAgICgpID0+IHtcbiAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgIHJldHVybiBwcm9ncmVzc1dvcmtmbG93KFxuICAgICAgICAgICAgICAgIHdvcmtmbG93LFxuICAgICAgICAgICAgICAgIGhpc3RvcnksXG4gICAgICAgICAgICAgICAgZXZlbnRzLFxuICAgICAgICAgICAgICAgIHdvcmtmbG93Q29udGV4dCxcbiAgICAgICAgICAgICAgICBleGVjdXRpb25JZFxuICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfSBjYX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y5cbiAgICAgIGlmIChyZXN1bHRFdmVudCkge1xuICAgICAgICBpZiAoaXNXb3JrZmxvd0ZhaWxlZChyZXN1bHRFdmVudCkpIHtcbiAgICAgICAgICBjb25zdCBleGVjdXRpb24gPSBhd2FpdCB0aW1lZChcbiAgICAgICAgICAgIG1ldHJpY3MsXG4gICAgICAgICAgICBPcmNoZXN0cmF0b3JNZXRyaWNzLkV4ZWN1dGlvblN0YXR1c1VwZGF0ZUR1cmF0aW9uLFxuICAgICAgICAgICAgKCkgPT5cbiAgICAgICAgICAgICAgd29ya2Zsb3dSdW50aW1lQ2xpZW50LmZhaWxFeGVjdXRpb24oe1xuICAgICAgICAgICAgICAgIGV4ZWN1dGlvbklkLFxuICAgICAgICAgICAgICAgIGVycm9yOiByZXN1bHRFdmVudC5lcnJvcixcbiAgICAgICAgICAgICAgICBtZXNzYWdlOiByZXN1bHRFdmVudC5tZXNzYWdlLFxuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICk7XG5cbiAgICAgICAgICBsb2dFeGVjdXRpb25Db21wbGV0ZU1ldHJpY3MoZXhlY3V0aW9uKTtcbiAgICAgICAgfSBlbHNlIGlmIChpc1dvcmtmbG93Q29tcGxldGVkKHJlc3VsdEV2ZW50KSkge1xuICAgICAgICAgIGNvbnN0IGV4ZWN1dGlvbiA9IGF3YWl0IHRpbWVkKFxuICAgICAgICAgICAgbWV0cmljcyxcbiAgICAgICAgICAgIE9yY2hlc3RyYXRvck1ldHJpY3MuRXhlY3V0aW9uU3RhdHVzVXBkYXRlRHVyYXRpb24sXG4gICAgICAgICAgICAoKSA9PlxuICAgICAgICAgICAgICB3b3JrZmxvd1J1bnRpbWVDbGllbnQuY29tcGxldGVFeGVjdXRpb24oe1xuICAgICAgICAgICAgICAgIGV4ZWN1dGlvbklkLFxuICAgICAgICAgICAgICAgIHJlc3VsdDogcmVzdWx0RXZlbnQub3V0cHV0LFxuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICk7XG4gICAgICAgICAgb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WUgaWYgdGhlIHdvcmtmbG93IGhhcyB0aW1lb3V0IHRvIHN0YXJ0LlxuICAgICAgICAgKi9cbiAgICAgICAgaWYgKCFzdGFydEV2ZW50KSB7XG4gICAgICAgICAgY29uc3QgbmV3V29ya2Zsb3dTdGFydCA9IGV2ZW50cy5maW5kKGlzV29ya2Zsb3dTdGFydGVkKTtcblxuICAgICAgICAgIGlmIChuZXdXb3JrZmxvd1N0YXJ0Py50aW1lb3V0VGltZSkge1xuICAgICAgICAgICAgbWV0cmljcy5zZXRQcm9wZXJ0eShPcmNoZXN0cmF0b3JNZXRyaWNzLlRpbWVvdXRTdGFydGVkLCAxKTtcbiAgICAgICAgICAgIGF3YWl0IHRpbWVkKFxuICAgICAgICAgICAgICBtZXRyaWNzLFxuICAgICAgICAgICAgICBPcmNoZXN0cmF0b3JNZXRyaWNzLlRpbWVvdXRTdGFydGVkRHVyYXRpb24sXG4gICAgICAgICAgICAgICgpID0+XG4gICAgICAgICAgICAgICAgdGltZXJDbGllbnQuc2NoZWR1bGVFdmVudDxXb3JrZmxvd1RpbWVkT3V0Pih7XG4gICAgICAgICAgICAgICAgICBzY2hlZHVsZTogU2NoZWR1bGUuYWJzb2x1dGUobmV3V29ya2Zsb3dTdGFydC50aW1lb3V0VGltZSEpLFxuICAgICAgICAgICAgICAgICAgZXZlbnQ6IGNyZWF0ZUV2ZW50PFdvcmtmbG93VGltZWRPdXQ+KHtcbiAgICAgICAgICAgICAgICAgICAgdHlwZTogV29ya2Zsb3dFdmVudFR5cGUuV29ya2Zsb3dUaW1lZE91dCxcbiAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgZXhlY3V0aW9uSWQsXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIG1ldHJpY3Muc2V0UHJvcGVydHkoT3JjaGVzdHJhdG9yTWV0cmljcy5UaW1lb3V0U3RhcnRlZCwgMCk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgY29uc3Qge1xuICAgICAgICAgIHJlc3VsdCxcbiAgICAgICAgICBjb21tYW5kczogbmV3Q29tbWFuZHMsXG4gICAgICAgICAgaGlzdG9yeTogdXBkYXRlZEhpc3RvcnlFdmVudHMsXG4gICAgICAgIH0gPSB0aW1lZFN5bmMoXG4gICAgICAgICAgbWV0cmljcyxcbiAgICAgICAgICBPcmNoZXN0cmF0b3JNZXRyaWNzLkFkdmFuY2VFeGVjdXRpb25EdXJhdGlvbixcbiAgICAgICAgICAoKSA9PiB7XG4gICAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgICByZXR1cm4gcHJvZ3Jlc3NXb3JrZmxvdyhcbiAgICAgICAgICAgICAgICB3b3JrZmxvdyxcbiAgICAgICAgICAgICAgICBoaXN0b3J5LFxuICAgICAgICAgICAgICAgIGV2ZW50cyxcbiAgICAgICAgICAgICAgICB3b3JrZmxvd0NvbnRleHQsXG4gICAgICAgICAgICAgICAgZXhlY3V0aW9uSWRcbiAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH0gY2F0Y2ggKGVycikge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIndvcmtmbG93IGVycm9yXCIpO1xuICAgICAgICAgICAgICBleGVjdXRpb25Mb2dnZXIuZXJyb3IoaW5zcGVjdChlcnIpKTtcbiAgICAgICAgICAgICAgdGhyb3cgZXJyO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgKTtcblxuICAgICAgICBtZXRyaWNzLnNldFByb3BlcnR5KFxuICAgICAgICAgIE9yY2hlc3RyYXRvck1ldHJpY3MuQWR2YW5jZUV4ZWN1dGlvbkV2ZW50cyxcbiAgICAgICAgICB1cGRhdGVkSGlzdG9yeUV2ZW50cy5sZW5ndGhcbiAgICAgICAgKTtcblxuICAgICAgICB5aWVsZCogdXBkYXRlZEhpc3RvcnlFdmVudHM7XG5cbiAgICAgICAgZXhlY3V0a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ZWxkIGNyZWF0ZUV2ZW50PFdvcmtmbG93Q29tcGxldGVkPih7XG4gICAgICAgICAgICAgIHR5cGU6IFdvcmtmbG93RXZlbnRUeXBlLldvcmtmbG93Q29tcGxldGVkLFxuICAgICAgICAgICAgICBvdXRwdXQ6IHJlc3VsdC52YWx1ZSxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgICB9XG5cbiAgICAgIC8qKlxuICAgICAgICogUGFydGl0aW9ucyB0aGUgZXZlbnRzIG91dHB1dCBieSB0aGUgd29ya2Zsb3cuXG4gICAgICAgKlxuICAgICAgICogV2UgbmVlZCB0d28gZGlmZmVyZW50IGNvbGxlY3Rpb24gb2YgZXZlbnRzLlxuICAgICAgICpcbiAgICAgICAqIEhpc3RvcnkgRXZlbnRzIC0gdGhlc2UgYXJlIHRoZSBldmVudHMgdGhhdCB3b3JrZmxvdyB1c2VzIHRvIG1haW50YWluIHN0YXRlLlxuICAgICAgICogICAgICAgICAgICAgICAgICBlYWNoIHJ1biBvZiB0aGUgd29ya2Zsb3cgd2UgbWF5IGZpbHRlciBvciBhZGQgZXZlbnRzIHRvIHRoaXMgY29sbGVjdGlvbi5cbiAgICAgICAqICAgICAgICAgICAgICAgICAgdGhlc2UgZXZlbnRzIHdpbGwgYmUgcGVyc2lzdGVkIGZvciB0aGUgbmV4dCBydW4uXG4gICAgICAgKiBXb3JrZmxvdyBFdmVudHMgLSB0aGVzZSBhcmUgZmluZWQgZ3JhaW5lZCBldmVudHMgZW1pdHRlZCBieSB0aGUgd29ya2Zsb3cuIFRoZXkgZHJpdmUgVUlzLFxuICAgICAgICogICAgICAgICAgICAgICAgICAgdmlzdWFsaXphdGlvbiBhbmQgZGVidWdnaW5nLiBUaGV5IG1heSBub3QgYmUgdXNlZCBpbiB0aGUgaW50ZXJwcmV0ZXIuXG4gICAgICAgKiAgICAgICAgICAgICAgICAgICBUaGUgbmV3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y2UoKHQsIG4pID0+IHQgKyBuLCAwKSAvXG4gICAgICBzbGVlcENvbXBsZXRlZFZhcmlhbmNlLmxlbmd0aDtcbiAgICBtZXRyaWNzLnNldFByb3BlcnR5KE9yY2hlc3RyYXRvck1ldHJpY3MuU2xlZXBWYXJpYW5jZU1pbGxpcywgYXZnKTtcbiAgfVxufVxuIl19 |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SchedulerForwarderMetrics = exports.ActivityMetrics = exports.OrchestratorMetrics = exports.MetricsCommon = void 0; | ||
/* eslint-disable @typescript-eslint/no-namespace */ | ||
var MetricsCommon; | ||
@@ -181,2 +182,2 @@ (function (MetricsCommon) { | ||
})(SchedulerForwarderMetrics = exports.SchedulerForwarderMetrics || (exports.SchedulerForwarderMetrics = {})); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3J1bnRpbWUvbWV0cmljcy9jb25zdGFudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsSUFBaUIsYUFBYSxDQUc3QjtBQUhELFdBQWlCLGFBQWE7SUFDZiwrQkFBaUIsR0FBRyxVQUFVLENBQUM7SUFDL0IsbUNBQXFCLEdBQUcsY0FBYyxDQUFDO0FBQ3RELENBQUMsRUFIZ0IsYUFBYSxHQUFiLHFCQUFhLEtBQWIscUJBQWEsUUFHN0I7QUFFRCxJQUFpQixtQkFBbUIsQ0EyR25DO0FBM0dELFdBQWlCLG1CQUFtQjtJQUNsQzs7T0FFRztJQUNVLDhCQUFVLEdBQUcsWUFBWSxDQUFDO0lBQ3ZDOztPQUVHO0lBQ1UsbUNBQWUsR0FBRyxpQkFBaUIsQ0FBQztJQUNqRDs7T0FFRztJQUNVLCtCQUFXLEdBQUcsYUFBYSxDQUFDO0lBQ3pDOztPQUV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AqIFNlY29uZHMgdGhlIHRpbWVyIHF1ZXVlIGlzIHRvbGQgdG8gd2FpdCB1bnRpbCBoYW5kbGluZyB0aGUgcmVxdWVzdC5cbiAgICovXG4gIGV4cG9ydCBjb25zdCBUaW1lclF1ZXVlRGVsYXlTZWNvbmRzID0gXCJUaW1lclF1ZXVlRGVsYXlTZWNvbmRzXCI7XG59XG4iXX0= |
@@ -34,3 +34,3 @@ export interface Secret<T> { | ||
#private; | ||
readonly cachingConfig: CachingConfig; | ||
private readonly cachingConfig; | ||
constructor(cachingConfig?: CachingConfig); | ||
@@ -37,0 +37,0 @@ /** |
@@ -72,2 +72,2 @@ "use strict"; | ||
exports.JsonSecret = JsonSecret; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjcmV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NlY3JldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFJQTs7Ozs7R0FLRztBQUNILE1BQWEsZUFBZTtJQUMxQixZQUFxQixLQUFRO1FBQVIsVUFBSyxHQUFMLEtBQUssQ0FBRztJQUFHLENBQUM7SUFFMUIsU0FBUztRQUNkLE9BQU8sT0FBTyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDckMsQ0FBQztDQUNGO0FBTkQsMENBTUM7QUFpQkQ7O0dBRUc7QUFDSCxNQUFzQixpQkFBaUI7SUFVckMsWUFBWSxhQUE2QjtRQVB6QywyQ0FLYztRQUdaLElBQUksQ0FBQyxhQUFhLEdBQUcsYUFBYSxJQUFJO1lBQ3BDLE9BQU8sRUFBRSxJQUFJO1lBQ2IsR0FBRyxFQUFFLFNBQVM7U0FDZixDQUFDO0lBQ0osQ0FBQztJQU9NLEtBQUssQ0FBQyxTQUFTLENBQUMsU0FBZ0I7UUFDckMsSUFDRS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ZSA9IHtcbiAgICAgICAgdmFsdWU6IGF3YWl0IHRoaXMuZ2V0RnJlc2hTZWNyZXQoKSxcbiAgICAgICAgcmVmcmVzaFRpbWU6IG5ldyBEYXRlKCksXG4gICAgICB9O1xuICAgIH1cbiAgICByZXR1cm4gdGhpcy4jdmFsdWUudmFsdWU7XG4gIH1cbn1cblxuLyoqXG4gKiBBIHtAbGluayBTZWNyZXR9IHBhcnNlZCBmcm9tICBKU09OLlxuICovXG5leHBvcnQgY2xhc3MgSnNvblNlY3JldDxUPiBpbXBsZW1lbnRzIFNlY3JldDxUPiB7XG4gIGNvbnN0cnVjdG9yKHJlYWRvbmx5IHNlY3JldDogU2VjcmV0PHN0cmluZz4pIHt9XG5cbiAgcHVibGljIGFzeW5jIGdldFNlY3JldCgpOiBQcm9taXNlPFQ+IHtcbiAgICByZXR1cm4gSlNPTi5wYXJzZShhd2FpdCB0aGlzLnNlY3JldC5nZXRTZWNyZXQoKSk7XG4gIH1cbn1cbiJdfQ== |
@@ -141,2 +141,2 @@ "use strict"; | ||
exports.isExecutionTarget = isExecutionTarget; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbmFscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zaWduYWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHFFQUFtRTtBQUNuRSwyRUFBaUY7QUFDakYseUVBQXVFO0FBQ3ZFLGlEQUEwRDtBQUMxRCwyQ0FBZ0Q7QUFDaEQsaUNBQTZCO0FBa0I3QixTQUFnQixNQUFNLENBQWlCLElBQVk7SUFDakQsT0FBTyxJQUFJLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUMxQixDQUFDO0FBRkQsd0JBRUM7QUFFRCxNQUFhLE1BQU07SUFDakIsWUFBNEIsRUFBVTtRQUFWLE9BQUUsR0FBRixFQUFFLENBQVE7SU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RlcmZhY2UgQ2hpbGRFeGVjdXRpb25UYXJnZXQge1xuICB0eXBlOiBTaWduYWxUYXJnZXRUeXBlLkNoaWxkRXhlY3V0aW9uO1xuICB3b3JrZmxvd05hbWU6IHN0cmluZztcbiAgc2VxOiBudW1iZXI7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc0NoaWxkRXhlY3V0aW9uVGFyZ2V0KFxuICB0YXJnZXQ6IFNpZ25hbFRhcmdldFxuKTogdGFyZ2V0IGlzIENoaWxkRXhlY3V0aW9uVGFyZ2V0IHtcbiAgcmV0dXJuIHRhcmdldC50eXBlID09PSBTaWduYWxUYXJnZXRUeXBlLkNoaWxkRXhlY3V0aW9uO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gaXNFeGVjdXRpb25UYXJnZXQoXG4gIHRhcmdldDogU2lnbmFsVGFyZ2V0XG4pOiB0YXJnZXQgaXMgRXhlY3V0aW9uVGFyZ2V0IHtcbiAgcmV0dXJuIHRhcmdldC50eXBlID09PSBTaWduYWxUYXJnZXRUeXBlLkV4ZWN1dGlvbjtcbn1cbiJdfQ== |
@@ -29,5 +29,5 @@ "use strict"; | ||
!!err.prototype && | ||
err.prototype.isPrototypeOf(Error)))); | ||
Object.prototype.isPrototypeOf.call(err.prototype, Error)))); | ||
} | ||
exports.extendsError = extendsError; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLFNBQWdCLFdBQVcsQ0FBQyxLQUFZLEVBQUUsR0FBWTtJQUNwRCxNQUFNLElBQUksS0FBSyxDQUFDLEdBQUcsSUFBSSx1Q0FBdUMsS0FBSyxFQUFFLENBQUMsQ0FBQztBQUN6RSxDQUFDO0FBRkQsa0NBRUM7QUFFRCxTQUFnQixhQUFhLENBQUks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0IGZ1bmN0aW9uIG9yPEYgZXh0ZW5kcyAoKGE6IGFueSkgPT4gYSBpcyBhbnkpW10+KFxuICAuLi5jb25kaXRpb25zOiBGXG4pOiAoYTogYW55KSA9PiBhIGlzIEZbbnVtYmVyXSBleHRlbmRzIChhOiBhbnkpID0+IGEgaXMgaW5mZXIgVCA/IFQgOiBuZXZlciB7XG4gIHJldHVybiAoKGE6IGFueSkgPT4gY29uZGl0aW9ucy5zb21lKChjb25kKSA9PiBjb25kKGEpKSkgYXMgYW55O1xufVxuXG5leHBvcnQgZnVuY3Rpb24gZXh0ZW5kc0Vycm9yKGVycjogdW5rbm93bik6IGVyciBpcyBFcnJvciB7XG4gIHJldHVybiAoXG4gICAgISFlcnIgJiZcbiAgICB0eXBlb2YgZXJyID09PSBcIm9iamVjdFwiICYmXG4gICAgKGVyciBpbnN0YW5jZW9mIEVycm9yIHx8XG4gICAgICAoXCJwcm90b3R5cGVcIiBpbiBlcnIgJiZcbiAgICAgICAgISFlcnIucHJvdG90eXBlICYmXG4gICAgICAgIE9iamVjdC5wcm90b3R5cGUuaXNQcm90b3R5cGVPZi5jYWxsKGVyci5wcm90b3R5cGUsIEVycm9yKSkpXG4gICk7XG59XG4iXX0= |
@@ -136,10 +136,3 @@ import { ExecutionContext } from "./context.js"; | ||
} | ||
export interface WorkflowTaskCompleted extends BaseEvent { | ||
type: WorkflowEventType.WorkflowTaskCompleted; | ||
} | ||
export declare function isTaskCompleted(event: WorkflowEvent): event is WorkflowTaskCompleted; | ||
export interface WorkflowCompleted extends BaseEvent { | ||
type: WorkflowEventType.WorkflowCompleted; | ||
output: any; | ||
} | ||
export declare function isWorkflowCompleted(event: WorkflowEvent): event is WorkflowCompleted; | ||
@@ -146,0 +139,0 @@ export declare function isWorkflowFailed(event: WorkflowEvent): event is WorkflowFailed; |
@@ -184,2 +184,2 @@ "use strict"; | ||
exports.createEvent = createEvent; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWx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URzLCB1c2UgZ2V0RXZlbnRJZFxuICBpZiAoXG4gICAgaXNIaXN0b3J5RXZlbnQoZXZlbnQgYXMgdW5rbm93biBhcyBXb3JrZmxvd0V2ZW50KSAmJlxuICAgICFpc1NpZ25hbFJlY2VpdmVkKGV2ZW50IGFzIHVua25vd24gYXMgV29ya2Zsb3dFdmVudClcbiAgKSB7XG4gICAgcmV0dXJuIHsgLi4uKGV2ZW50IGFzIGFueSksIHRpbWVzdGFtcCB9O1xuICB9XG5cbiAgcmV0dXJuIHsgLi4uZXZlbnQsIGlkLCB0aW1lc3RhbXAgfSBhcyBUO1xufVxuIl19 |
@@ -21,3 +21,3 @@ import { CompleteActivityRequest } from "./runtime/clients/workflow-client.js"; | ||
} | ||
export interface ActivityFunction<Arguments extends any[], Output extends any = any> { | ||
export interface ActivityFunction<Arguments extends any[], Output = any> { | ||
(...args: Arguments): Promise<Awaited<UnwrapAsync<Output>>>; | ||
@@ -47,3 +47,3 @@ /** | ||
} | ||
export interface ActivityHandler<Arguments extends any[], Output extends any = any> { | ||
export interface ActivityHandler<Arguments extends any[], Output = any> { | ||
(...args: Arguments): Promise<Awaited<Output>> | Output | AsyncResult<Output> | Promise<AsyncResult<Awaited<Output>>>; | ||
@@ -95,4 +95,4 @@ } | ||
*/ | ||
export declare function activity<Arguments extends any[], Output extends any = any>(activityID: string, handler: ActivityHandler<Arguments, Output>): ActivityFunction<Arguments, Output>; | ||
export declare function activity<Arguments extends any[], Output extends any = any>(activityID: string, opts: ActivityOptions, handler: ActivityHandler<Arguments, Output>): ActivityFunction<Arguments, Output>; | ||
export declare function activity<Arguments extends any[], Output = any>(activityID: string, handler: ActivityHandler<Arguments, Output>): ActivityFunction<Arguments, Output>; | ||
export declare function activity<Arguments extends any[], Output = any>(activityID: string, opts: ActivityOptions, handler: ActivityHandler<Arguments, Output>): ActivityFunction<Arguments, Output>; | ||
/** | ||
@@ -99,0 +99,0 @@ * Retrieve an activity function that has been registered in a workflow. |
@@ -72,2 +72,2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V0ZUFjdGl2aXR5KHJlcXVlc3QpO1xuICB9O1xuICByZXR1cm4gZnVuYztcbn1cblxuLyoqXG4gKiBSZXRyaWV2ZSBhbiBhY3Rpdml0eSBmdW5jdGlvbiB0aGF0IGhhcyBiZWVuIHJlZ2lzdGVyZWQgaW4gYSB3b3JrZmxvdy5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGdldENhbGxhYmxlQWN0aXZpdHkoXG4gIGFjdGl2aXR5SWQ6IHN0cmluZ1xuKTogQWN0aXZpdHlIYW5kbGVyPGFueT4gfCB1bmRlZmluZWQge1xuICByZXR1cm4gY2FsbGFibGVBY3Rpdml0aWVzKClbYWN0aXZpdHlJZF0gYXMgQWN0aXZpdHlIYW5kbGVyPGFueT47XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBnZXRDYWxsYWJsZUFjdGl2aXR5TmFtZXMoKSB7XG4gIHJldHVybiBPYmplY3Qua2V5cyhjYWxsYWJsZUFjdGl2aXRpZXMoKSk7XG59XG4iXX0= |
@@ -9,3 +9,3 @@ import { createEventual, EventualKind, isEventualOfKind, } from "../eventual.js"; | ||
return registerEventual(createEventual(EventualKind.RegisterSignalHandlerCall, { | ||
signalId: signalId, | ||
signalId, | ||
handler, | ||
@@ -17,2 +17,2 @@ dispose: function () { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbmFsLWhhbmRsZXItY2FsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jYWxscy9zaWduYWwtaGFuZGxlci1jYWxsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxjQUFjLEVBRWQsWUFBWSxFQUNaLGdCQUFnQixHQUNqQixNQUFNLGdCQUFnQixDQUFDO0FBRXhCLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUVoRCxP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RUaW1lb3V0XCI7XG4gIH1cbn1cbi8qKlxuICogVGhyb3duIHdoZW4gYSBwYXJ0aWN1bGFyIGNvbnRleHQgb25seSBzdXBwb3J0IHN5bmNocm9ub3VzIG9wZXJhdGlvbnMgKGV4OiBjb25kaXRpb24gcHJlZGljYXRlKS5cbiAqL1xuZXhwb3J0IGNsYXNzIFN5bmNocm9ub3VzT3BlcmF0aW9uRXJyb3IgZXh0ZW5kcyBFdmVudHVhbEVycm9yIHtcbiAgY29uc3RydWN0b3IobWVzc2FnZT86IHN0cmluZykge1xuICAgIHN1cGVyKFwiU3luY2hyb25vdXNPcGVyYXRpb25FcnJvclwiLCBtZXNzYWdlKTtcbiAgfVxufVxuIl19 |
import { ActivityCall } from "./calls/activity-call.js"; | ||
import { AwaitAll } from "./await-all.js"; | ||
import { Chain } from "./chain.js"; | ||
import { chain, Chain } from "./chain.js"; | ||
import type { Program } from "./interpret.js"; | ||
@@ -47,3 +47,3 @@ import { Result } from "./result.js"; | ||
export declare function isCommandCall(call: Eventual): call is CommandCall; | ||
export declare namespace Eventual { | ||
export declare const Eventual: { | ||
/** | ||
@@ -54,7 +54,7 @@ * Wait for all {@link activities} to complete or until at least one throws. | ||
*/ | ||
function all<A extends Eventual[]>(activities: A): AwaitAll<EventualArrayPositional<A>>; | ||
function any<A extends Eventual[]>(activities: A): AwaitAny<EventualArrayUnion<A>>; | ||
function race<A extends Eventual[]>(activities: A): Race<EventualArrayUnion<A>>; | ||
function allSettled<A extends Eventual[]>(activities: A): AwaitAllSettled<EventualArrayPromiseResult<A>>; | ||
} | ||
all<A extends Eventual<any>[]>(activities: A): AwaitAll<EventualArrayPositional<A>>; | ||
any<A_1 extends Eventual<any>[]>(activities: A_1): AwaitAny<EventualArrayUnion<A_1>>; | ||
race<A_2 extends Eventual<any>[]>(activities: A_2): Race<EventualArrayUnion<A_2>>; | ||
allSettled<A_3 extends Eventual<any>[]>(activities: A_3): AwaitAllSettled<EventualArrayPromiseResult<A_3>>; | ||
}; | ||
export interface EventualCallCollector { | ||
@@ -70,3 +70,7 @@ pushEventual<E extends Eventual>(activity: E): E; | ||
export type EventualArrayUnion<A extends Eventual<any>[]> = A[number] extends Eventual<infer T> ? T : never; | ||
declare global { | ||
var $eventual: typeof chain; | ||
var $Eventual: typeof Eventual; | ||
} | ||
export {}; | ||
//# sourceMappingURL=eventual.d.ts.map |
@@ -54,4 +54,3 @@ import { isActivityCall } from "./calls/activity-call.js"; | ||
} | ||
export var Eventual; | ||
(function (Eventual) { | ||
export const Eventual = { | ||
/** | ||
@@ -62,3 +61,3 @@ * Wait for all {@link activities} to complete or until at least one throws. | ||
*/ | ||
function all(activities) { | ||
all(activities) { | ||
if (!isOrchestratorWorker()) { | ||
@@ -68,5 +67,4 @@ throw new Error("Eventual.all is only valid in a workflow"); | ||
return createAwaitAll(activities); | ||
} | ||
Eventual.all = all; | ||
function any(activities) { | ||
}, | ||
any(activities) { | ||
if (!isOrchestratorWorker()) { | ||
@@ -76,5 +74,4 @@ throw new Error("Eventual.any is only valid in a workflow"); | ||
return createAwaitAny(activities); | ||
} | ||
Eventual.any = any; | ||
function race(activities) { | ||
}, | ||
race(activities) { | ||
if (!isOrchestratorWorker()) { | ||
@@ -84,5 +81,4 @@ throw new Error("Eventual.race is only valid in a workflow"); | ||
return createRace(activities); | ||
} | ||
Eventual.race = race; | ||
function allSettled(activities) { | ||
}, | ||
allSettled(activities) { | ||
if (!isOrchestratorWorker()) { | ||
@@ -92,10 +88,6 @@ throw new Error("Eventual.allSettled is only valid in a workflow"); | ||
return createAwaitAllSettled(activities); | ||
} | ||
Eventual.allSettled = allSettled; | ||
})(Eventual || (Eventual = {})); | ||
// the below globals are required by the transformer | ||
// @ts-ignore | ||
}, | ||
}; | ||
global.$eventual = chain; | ||
// @ts-ignore | ||
global.$Eventual = Eventual; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnR1YWwuanMiLCJzb3VyY2VSb290IjoiIi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bmVkKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKGBFdmVudENsaWVudCBpcyBub3QgcmVnaXN0ZXJlZGApO1xuICB9XG4gIHJldHVybiBnbG9iYWxUaGlzLl9ldmVudHVhbC5ldmVudENsaWVudDtcbn1cbiJdfQ== |
@@ -19,3 +19,3 @@ import { getActivityContext, getWorkflowClient } from "./global.js"; | ||
return await getWorkflowClient().heartbeatActivity({ | ||
activityToken: activityToken, | ||
activityToken, | ||
}); | ||
@@ -33,2 +33,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhcnRiZWF0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2hlYXJ0YmVhdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFFcEUsT0FBTyxFQUFFLGdCQUFnQixFQUFFLG9CQUFvQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFFNUU7Ozs7Ozs7OztHQVNHO0FBQ0gsTUFBTSxDQUFDLEtBQUssVUFBVSxTQUFTLENBQzdCLGFBQXNCO0lBRXRCLElBQUksb0JBQW9CLEVBQUUsRUFBRTtRQUMxQixNQUFNLElBQUksS0FBSyxDQUNiLGtHQUFrRyxDQUNuRyxDQUFDO0tBQ0g7U0FBTSxJQUFJLGFBQWEsRUFBRTtRQUN4QixPQUFPLE1BQU0saUJBQWlCLEVBQUUsQ0FBQyxpQkFBaUIsQ0FBQztZQUNqRCxhQUFhLEVBQUUsYUFBYTtTQUM3QixDQUFDLENBQUM7S0FDSjtTQUFNLElBQUksZ0JBQWdCLEVBQUUsRUFBRTtRQUM3QixNQUFNLEtBQUssR0FBRyxrQkFBa0IsRUFBRSxDQUFDLGFBQWEsQ0FBQztRQUNqRCxPQUFPLE1BQU0saUJB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5bmMgZnVuY3Rpb24gaGVhcnRiZWF0KFxuICBhY3Rpdml0eVRva2VuPzogc3RyaW5nXG4pOiBQcm9taXNlPEhlYXJ0YmVhdFJlc3BvbnNlPiB7XG4gIGlmIChpc09yY2hlc3RyYXRvcldvcmtlcigpKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKFxuICAgICAgXCJIZWFydGJlYXQgaXMgbm90IGN1cnJlbnRseSBzdXBwb3J0ZWQgZnJvbSB3aXRoaW4gYSB3b3JrZmxvdy4gVXNlIGFuIGFjdGl2aXR5IHdpdGggYGhlYXJ0YmVhdCgpYC5cIlxuICAgICk7XG4gIH0gZWxzZSBpZiAoYWN0aXZpdHlUb2tlbikge1xuICAgIHJldHVybiBhd2FpdCBnZXRXb3JrZmxvd0NsaWVudCgpLmhlYXJ0YmVhdEFjdGl2aXR5KHtcbiAgICAgIGFjdGl2aXR5VG9rZW4sXG4gICAgfSk7XG4gIH0gZWxzZSBpZiAoaXNBY3Rpdml0eVdvcmtlcigpKSB7XG4gICAgY29uc3QgdG9rZW4gPSBnZXRBY3Rpdml0eUNvbnRleHQoKS5hY3Rpdml0eVRva2VuO1xuICAgIHJldHVybiBhd2FpdCBnZXRXb3JrZmxvd0NsaWVudCgpLmhlYXJ0YmVhdEFjdGl2aXR5KHtcbiAgICAgIGFjdGl2aXR5VG9rZW46IHRva2VuLFxuICAgIH0pO1xuICB9IGVsc2Uge1xuICAgIHRocm93IG5ldyBFcnJvcihcbiAgICAgIFwiQWN0aXZpdHkgdG9rZW4gbXVzdCBiZSBwcm92aWRlZCB3aGVuIG5vdCB3aXRoaW4gYW4gQWN0aXZpdHkuXCJcbiAgICApO1xuICB9XG59XG4iXX0= |
import { Eventual } from "./eventual.js"; | ||
export declare const ResultSymbol: unique symbol; | ||
export type Result<T = any> = Pending | Resolved<T> | Failed; | ||
export declare namespace Result { | ||
function resolved<T>(value: T): Resolved<T>; | ||
function failed(error: any): Failed; | ||
function pending<A extends Eventual>(activity: A): Pending<A>; | ||
} | ||
export declare const Result: { | ||
resolved<T>(value: T): Resolved<T>; | ||
failed(error: any): Failed; | ||
pending<A extends Eventual<any>>(activity: A): Pending<A>; | ||
}; | ||
export declare enum ResultKind { | ||
@@ -10,0 +10,0 @@ Pending = 0, |
import { or } from "./util.js"; | ||
export const ResultSymbol = Symbol.for("eventual:Result"); | ||
export var Result; | ||
(function (Result) { | ||
function resolved(value) { | ||
export const Result = { | ||
resolved(value) { | ||
return { | ||
@@ -10,5 +9,4 @@ [ResultSymbol]: ResultKind.Resolved, | ||
}; | ||
} | ||
Result.resolved = resolved; | ||
function failed(error) { | ||
}, | ||
failed(error) { | ||
return { | ||
@@ -18,5 +16,4 @@ [ResultSymbol]: ResultKind.Failed, | ||
}; | ||
} | ||
Result.failed = failed; | ||
function pending(activity) { | ||
}, | ||
pending(activity) { | ||
return { | ||
@@ -26,5 +23,4 @@ [ResultSymbol]: ResultKind.Pending, | ||
}; | ||
} | ||
Result.pending = pending; | ||
})(Result || (Result = {})); | ||
}, | ||
}; | ||
export var ResultKind; | ||
@@ -49,2 +45,2 @@ (function (ResultKind) { | ||
export const isResolvedOrFailed = or(isResolved, isFailed); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzdWx0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3Jlc3VsdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsRUFBRSxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBRS9CLE1BQU0sQ0FBQyxNQUFNLFlBQVksR0FBRyxNQUFNLENBQUMsR0FBRyxDQUFDLGlCQUFpQixDQUFDLENBQUM7QUFJMUQsTUFBTSxLQUFXLE1BQU0sQ0FxQnRCO0FBckJELFdBQWlCLE1BQU07SUFDckIsU0FBZ0IsUUFBUSxDQUFJLEtBQVE7UUFDbEMsT0FBTztZQUNMLENBQUMsWUFBW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N1bHQgfCB1bmRlZmluZWQpOiByZXN1bHQgaXMgRmFpbGVkIHtcbiAgcmV0dXJuIGlzUmVzdWx0KHJlc3VsdCkgJiYgcmVzdWx0W1Jlc3VsdFN5bWJvbF0gPT09IFJlc3VsdEtpbmQuRmFpbGVkO1xufVxuXG5leHBvcnQgY29uc3QgaXNSZXNvbHZlZE9yRmFpbGVkID0gb3IoaXNSZXNvbHZlZCwgaXNGYWlsZWQpO1xuIl19 |
@@ -60,6 +60,6 @@ import { HistoryStateEvent } from "../../workflow-events.js"; | ||
export type Schedule = RelativeSchedule | AbsoluteSchedule; | ||
export declare namespace Schedule { | ||
function relative(timerSeconds: number, baseTime?: Date): RelativeSchedule; | ||
function absolute(untilTime: string): AbsoluteSchedule; | ||
} | ||
export declare const Schedule: { | ||
relative(timerSeconds: number, baseTime?: Date): RelativeSchedule; | ||
absolute(untilTime: string): AbsoluteSchedule; | ||
}; | ||
export type TimerRequestBase<T extends TimerRequestType> = { | ||
@@ -66,0 +66,0 @@ type: T; |
@@ -6,5 +6,4 @@ export var TimerRequestType; | ||
})(TimerRequestType || (TimerRequestType = {})); | ||
export var Schedule; | ||
(function (Schedule) { | ||
function relative(timerSeconds, baseTime = new Date()) { | ||
export const Schedule = { | ||
relative(timerSeconds, baseTime = new Date()) { | ||
return { | ||
@@ -15,5 +14,4 @@ type: "Relative", | ||
}; | ||
} | ||
Schedule.relative = relative; | ||
function absolute(untilTime) { | ||
}, | ||
absolute(untilTime) { | ||
return { | ||
@@ -23,5 +21,4 @@ type: "Absolute", | ||
}; | ||
} | ||
Schedule.absolute = absolute; | ||
})(Schedule || (Schedule = {})); | ||
}, | ||
}; | ||
export function isTimerScheduleEventRequest(timerRequest) { | ||
@@ -34,2 +31,2 @@ return timerRequest && timerRequest.type === TimerRequestType.ScheduleEvent; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXItY2xpZW50LmpzIiwic291cmNlUm9vdCI6I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xdWVzdCB7XG4gIHJldHVybiAoXG4gICAgdGltZXJSZXF1ZXN0ICYmXG4gICAgdGltZXJSZXF1ZXN0LnR5cGUgPT09IFRpbWVyUmVxdWVzdFR5cGUuQWN0aXZpdHlIZWFydGJlYXRNb25pdG9yXG4gICk7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgU2NoZWR1bGVGb3J3YXJkZXJSZXF1ZXN0IHtcbiAgc2NoZWR1bGVOYW1lOiBzdHJpbmc7XG4gIGNsZWFyU2NoZWR1bGU6IGJvb2xlYW47XG4gIHRpbWVyUmVxdWVzdDogVGltZXJSZXF1ZXN0O1xuICBmb3J3YXJkVGltZTogc3RyaW5nO1xuICAvKipcbiAgICogSVNPIDg2MDEgVGltZXN0YW1wIGRldGVybWluaW5nIHdoZW4gdGhlIG1lc3NhZ2Ugc2hvdWxkIGJlIHZpc2libGUgdG8gdGhlIHRpbWVyIHF1ZXVlLlxuICAgKi9cbiAgdW50aWxUaW1lOiBzdHJpbmc7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgU2NoZWR1bGVFdmVudFJlcXVlc3Q8RSBleHRlbmRzIEhpc3RvcnlTdGF0ZUV2ZW50PlxuICBleHRlbmRzIE9taXQ8VGltZXJTY2hlZHVsZUV2ZW50UmVxdWVzdCwgXCJldmVudFwiIHwgXCJ0eXBlXCI+IHtcbiAgZXZlbnQ6IE9taXQ8RSwgXCJ0aW1lc3RhbXBcIj47XG59XG4iXX0= |
@@ -38,7 +38,7 @@ import { HistoryStateEvent } from "../../workflow-events.js"; | ||
*/ | ||
completeActivity({ activityToken: activityToken, result, }: CompleteActivityRequest): Promise<void>; | ||
completeActivity({ activityToken, result, }: CompleteActivityRequest): Promise<void>; | ||
/** | ||
* Fails an async activity causing it to throw the given error. | ||
*/ | ||
failActivity({ activityToken: activityToken, error, message, }: FailActivityRequest): Promise<void>; | ||
failActivity({ activityToken, error, message, }: FailActivityRequest): Promise<void>; | ||
/** | ||
@@ -45,0 +45,0 @@ * Submits a "heartbeat" for the given activityToken. |
@@ -26,3 +26,3 @@ import { createEvent, WorkflowEventType, } from "../../workflow-events.js"; | ||
*/ | ||
async completeActivity({ activityToken: activityToken, result, }) { | ||
async completeActivity({ activityToken, result, }) { | ||
await this.sendActivityResult(activityToken, { | ||
@@ -36,3 +36,3 @@ type: WorkflowEventType.ActivityCompleted, | ||
*/ | ||
async failActivity({ activityToken: activityToken, error, message, }) { | ||
async failActivity({ activityToken, error, message, }) { | ||
await this.sendActivityResult(activityToken, { | ||
@@ -65,2 +65,2 @@ type: WorkflowEventType.ActivityFailed, | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Zsb3ctY2xpZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3J1bnRpbWUvY2xpZW50cy93b3JrZmxvdy1jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUdMLFdBQVcsRUFHWCxpQkFBaUIsR0FDbEIsTUFBTSwwQkFBMEIsQ0FBQztBQUNsQyxPQUFPLEVBQWEsZUFBZSxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFHaEUsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFHM0QsTUFBTSxPQUFnQixjQUFjO0lBQ2xDLFlBQW9CLHFCQUE0QztRQUE1QywwQkFBcUIsR0FBckIscUJBQXFCLENBQXVCO0lBQUcsQ0FBQztJQThCcEU7Ozs7O09BS0c7SUFDSSxLQUFLLENBQUMsVUFBVSxDQUFDLE9BQTBCO1FBQ2hELE1BQU0sSUFBSSxDQUFDLGtCQUFrQixDQUMzQixPQUFPLENBQUMsV0FBVyxFQUNuQixXQUFXLENBQ1Q7WUFDRSxJQUFJLEVBQUUsaUJBQWlCLENBQUMsY0FBYztZQUN0QyxPQUFPLEVBQUUsT0FBTyxDQUFDL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BJRCBvZiB0aGUgc3RhcnRlZCB3b3JrZmxvdyBleGVjdXRpb24uXG4gICAqL1xuICBleGVjdXRpb25JZDogc3RyaW5nO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIENvbXBsZXRlQWN0aXZpdHlSZXF1ZXN0PFQgPSBhbnk+IHtcbiAgYWN0aXZpdHlUb2tlbjogc3RyaW5nO1xuICByZXN1bHQ6IFQ7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgRmFpbEFjdGl2aXR5UmVxdWVzdCB7XG4gIGFjdGl2aXR5VG9rZW46IHN0cmluZztcbiAgZXJyb3I6IHN0cmluZztcbiAgbWVzc2FnZTogc3RyaW5nO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEhlYXJ0YmVhdFJlcXVlc3Qge1xuICBhY3Rpdml0eVRva2VuOiBzdHJpbmc7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgSGVhcnRiZWF0UmVzcG9uc2Uge1xuICAvKipcbiAgICogVHJ1ZSB3aGVuIHRoZSBhY3Rpdml0eSBoYXMgYmVlbiBjYW5jZWxsZWQuXG4gICAqXG4gICAqIFRoaXMgaXMgdGhlIG9ubHkgd2F5IGZvciBhIGxvbmcgcnVubmluZyBhY3Rpdml0eSB0byBrbm93IGl0IHdhcyBjYW5lbGxlZC5cbiAgICovXG4gIGNhbmNlbGxlZDogYm9vbGVhbjtcbn1cbiJdfQ== |
@@ -18,4 +18,11 @@ import { Command } from "../command.js"; | ||
executeCommand(workflow: Workflow, executionId: string, command: Command, baseTime: Date): Promise<HistoryStateEvent>; | ||
private scheduleActivity; | ||
private scheduleChildWorkflow; | ||
private scheduleSleep; | ||
private executeExpectSignal; | ||
private sendSignal; | ||
private startCondition; | ||
private publishEvents; | ||
} | ||
export {}; | ||
//# sourceMappingURL=command-executor.d.ts.map |
@@ -15,25 +15,24 @@ import { isExpectSignalCommand, isPublishEventsCommand, isScheduleActivityCommand, isScheduleWorkflowCommand, isSendSignalCommand, isSleepForCommand, isSleepUntilCommand, isStartConditionCommand, } from "../command.js"; | ||
async executeCommand(workflow, executionId, command, baseTime) { | ||
const self = this; | ||
if (isScheduleActivityCommand(command)) { | ||
return await scheduleActivity(command); | ||
return await this.scheduleActivity(workflow, executionId, command, baseTime); | ||
} | ||
else if (isScheduleWorkflowCommand(command)) { | ||
return scheduleChildWorkflow(command); | ||
return this.scheduleChildWorkflow(executionId, command); | ||
} | ||
else if (isSleepForCommand(command) || isSleepUntilCommand(command)) { | ||
// all sleep times are computed using the start time of the WorkflowTaskStarted | ||
return scheduleSleep(command); | ||
return this.scheduleSleep(executionId, command, baseTime); | ||
} | ||
else if (isExpectSignalCommand(command)) { | ||
// should the timeout command be generic (ex: StartTimeout) or specific (ex: ExpectSignal)? | ||
return executeExpectSignal(command); | ||
return this.executeExpectSignal(executionId, command, baseTime); | ||
} | ||
else if (isSendSignalCommand(command)) { | ||
return sendSignal(command); | ||
return this.sendSignal(executionId, command); | ||
} | ||
else if (isStartConditionCommand(command)) { | ||
return startCondition(command); | ||
return this.startCondition(executionId, command, baseTime); | ||
} | ||
else if (isPublishEventsCommand(command)) { | ||
return publishEvents(command); | ||
return this.publishEvents(command); | ||
} | ||
@@ -43,127 +42,127 @@ else { | ||
} | ||
async function scheduleActivity(command) { | ||
const request = { | ||
scheduledTime: new Date().toISOString(), | ||
workflowName: workflow.workflowName, | ||
} | ||
async scheduleActivity(workflow, executionId, command, baseTime) { | ||
const request = { | ||
scheduledTime: new Date().toISOString(), | ||
workflowName: workflow.workflowName, | ||
executionId, | ||
command, | ||
retry: 0, | ||
}; | ||
const timeoutStarter = command.timeoutSeconds | ||
? await this.props.timerClient.scheduleEvent({ | ||
schedule: Schedule.relative(command.timeoutSeconds, baseTime), | ||
event: { | ||
type: WorkflowEventType.ActivityTimedOut, | ||
seq: command.seq, | ||
}, | ||
executionId, | ||
command, | ||
retry: 0, | ||
}; | ||
const timeoutStarter = command.timeoutSeconds | ||
? await self.props.timerClient.scheduleEvent({ | ||
schedule: Schedule.relative(command.timeoutSeconds, baseTime), | ||
event: { | ||
type: WorkflowEventType.ActivityTimedOut, | ||
seq: command.seq, | ||
}, | ||
executionId, | ||
}) | ||
: undefined; | ||
const activityStarter = self.props.workflowRuntimeClient.startActivity(request); | ||
await Promise.all([activityStarter, timeoutStarter]); | ||
return createEvent({ | ||
type: WorkflowEventType.ActivityScheduled, | ||
}) | ||
: undefined; | ||
const activityStarter = this.props.workflowRuntimeClient.startActivity(request); | ||
await Promise.all([activityStarter, timeoutStarter]); | ||
return createEvent({ | ||
type: WorkflowEventType.ActivityScheduled, | ||
seq: command.seq, | ||
name: command.name, | ||
}); | ||
} | ||
async scheduleChildWorkflow(executionId, command) { | ||
await this.props.workflowClient.startWorkflow({ | ||
workflowName: command.name, | ||
input: command.input, | ||
parentExecutionId: executionId, | ||
executionName: formatChildExecutionName(executionId, command.seq), | ||
seq: command.seq, | ||
...command.opts, | ||
}); | ||
return createEvent({ | ||
type: WorkflowEventType.ChildWorkflowScheduled, | ||
seq: command.seq, | ||
name: command.name, | ||
input: command.input, | ||
}); | ||
} | ||
async scheduleSleep(executionId, command, baseTime) { | ||
// TODO validate | ||
const untilTime = isSleepUntilCommand(command) | ||
? new Date(command.untilTime) | ||
: new Date(baseTime.getTime() + command.durationSeconds * 1000); | ||
const untilTimeIso = untilTime.toISOString(); | ||
await this.props.timerClient.scheduleEvent({ | ||
event: { | ||
type: WorkflowEventType.SleepCompleted, | ||
seq: command.seq, | ||
name: command.name, | ||
}, | ||
schedule: Schedule.absolute(untilTimeIso), | ||
executionId, | ||
}); | ||
return createEvent({ | ||
type: WorkflowEventType.SleepScheduled, | ||
seq: command.seq, | ||
untilTime: untilTime.toISOString(), | ||
}); | ||
} | ||
async executeExpectSignal(executionId, command, baseTime) { | ||
if (command.timeoutSeconds) { | ||
await this.props.timerClient.scheduleEvent({ | ||
event: { | ||
signalId: command.signalId, | ||
seq: command.seq, | ||
type: WorkflowEventType.ExpectSignalTimedOut, | ||
}, | ||
schedule: Schedule.relative(command.timeoutSeconds, baseTime), | ||
executionId, | ||
}); | ||
} | ||
async function scheduleChildWorkflow(command) { | ||
await self.props.workflowClient.startWorkflow({ | ||
workflowName: command.name, | ||
input: command.input, | ||
parentExecutionId: executionId, | ||
executionName: formatChildExecutionName(executionId, command.seq), | ||
seq: command.seq, | ||
...command.opts, | ||
}); | ||
return createEvent({ | ||
type: WorkflowEventType.ChildWorkflowScheduled, | ||
seq: command.seq, | ||
name: command.name, | ||
input: command.input, | ||
}); | ||
} | ||
async function scheduleSleep(command) { | ||
// TODO validate | ||
const untilTime = isSleepUntilCommand(command) | ||
? new Date(command.untilTime) | ||
: new Date(baseTime.getTime() + command.durationSeconds * 1000); | ||
const untilTimeIso = untilTime.toISOString(); | ||
await self.props.timerClient.scheduleEvent({ | ||
return createEvent({ | ||
signalId: command.signalId, | ||
seq: command.seq, | ||
type: WorkflowEventType.ExpectSignalStarted, | ||
timeoutSeconds: command.timeoutSeconds, | ||
}); | ||
} | ||
async sendSignal(executionId, command) { | ||
const childExecutionId = isChildExecutionTarget(command.target) | ||
? formatExecutionId(command.target.workflowName, formatChildExecutionName(executionId, command.target.seq)) | ||
: command.target.executionId; | ||
await this.props.workflowClient.sendSignal({ | ||
signal: command.signalId, | ||
executionId: childExecutionId, | ||
id: `${executionId}/${command.seq}`, | ||
payload: command.payload, | ||
}); | ||
return createEvent({ | ||
type: WorkflowEventType.SignalSent, | ||
executionId: childExecutionId, | ||
seq: command.seq, | ||
signalId: command.signalId, | ||
payload: command.payload, | ||
}); | ||
} | ||
async startCondition(executionId, command, baseTime) { | ||
if (command.timeoutSeconds) { | ||
await this.props.timerClient.scheduleEvent({ | ||
event: { | ||
type: WorkflowEventType.SleepCompleted, | ||
type: WorkflowEventType.ConditionTimedOut, | ||
seq: command.seq, | ||
}, | ||
schedule: Schedule.absolute(untilTimeIso), | ||
executionId, | ||
schedule: Schedule.relative(command.timeoutSeconds, baseTime), | ||
}); | ||
return createEvent({ | ||
type: WorkflowEventType.SleepScheduled, | ||
seq: command.seq, | ||
untilTime: untilTime.toISOString(), | ||
}); | ||
} | ||
async function executeExpectSignal(command) { | ||
if (command.timeoutSeconds) { | ||
await self.props.timerClient.scheduleEvent({ | ||
event: { | ||
signalId: command.signalId, | ||
seq: command.seq, | ||
type: WorkflowEventType.ExpectSignalTimedOut, | ||
}, | ||
schedule: Schedule.relative(command.timeoutSeconds, baseTime), | ||
executionId, | ||
}); | ||
} | ||
return createEvent({ | ||
signalId: command.signalId, | ||
seq: command.seq, | ||
type: WorkflowEventType.ExpectSignalStarted, | ||
timeoutSeconds: command.timeoutSeconds, | ||
}); | ||
} | ||
async function sendSignal(command) { | ||
const childExecutionId = isChildExecutionTarget(command.target) | ||
? formatExecutionId(command.target.workflowName, formatChildExecutionName(executionId, command.target.seq)) | ||
: command.target.executionId; | ||
await self.props.workflowClient.sendSignal({ | ||
signal: command.signalId, | ||
executionId: childExecutionId, | ||
id: `${executionId}/${command.seq}`, | ||
payload: command.payload, | ||
}); | ||
return createEvent({ | ||
type: WorkflowEventType.SignalSent, | ||
executionId: childExecutionId, | ||
seq: command.seq, | ||
signalId: command.signalId, | ||
payload: command.payload, | ||
}); | ||
} | ||
async function startCondition(command) { | ||
if (command.timeoutSeconds) { | ||
await self.props.timerClient.scheduleEvent({ | ||
event: { | ||
type: WorkflowEventType.ConditionTimedOut, | ||
seq: command.seq, | ||
}, | ||
executionId, | ||
schedule: Schedule.relative(command.timeoutSeconds, baseTime), | ||
}); | ||
} | ||
return createEvent({ | ||
type: WorkflowEventType.ConditionStarted, | ||
seq: command.seq, | ||
}); | ||
} | ||
async function publishEvents(command) { | ||
await self.props.eventClient.publish(...command.events); | ||
return createEvent({ | ||
type: WorkflowEventType.EventsPublished, | ||
events: command.events, | ||
seq: command.seq, | ||
}); | ||
} | ||
return createEvent({ | ||
type: WorkflowEventType.ConditionStarted, | ||
seq: command.seq, | ||
}); | ||
} | ||
async publishEvents(command) { | ||
await this.props.eventClient.publish(...command.events); | ||
return createEvent({ | ||
type: WorkflowEventType.EventsPublished, | ||
events: command.events, | ||
seq: command.seq, | ||
}); | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZC1leGVjdXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ydW50aW1lL2NvbW1hbmQtZXhlY3V0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUdMLHFCQUFxQixFQUNyQixzQkFBc0IsRUFDdEIseUJBQXlCLEVBQ3pCLHlCQUF5QixFQUN6QixtQkFBbUIsRUFDbkIsaUJBQWlCLEVBQ2pCLG1CQUFtQixFQUNuQix1QkFBdUIsR0FReEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUVMLGlCQUFpQixFQUNqQixXQUFXLEdBV1osTUFBTSx1QkFBdUIsQ0FBQztBQUMvQixPQUFPLEVBQW1CLHNCQUFzQixFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQ3RFLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFFekMsT0FBTyxFQUFFLHdCQUF3QixFQUFFLGlCQUFpQixFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFFaEYsT0FBTyxFQUVMLFFBQVEsR0FJVCxNQUFNLFlBQVksQ0FBQztBQVNwQjs7R0FFRztBQUNILE1BQU0sT0FBTyxlQUFlO0lBQzFCLFlBQW9CLEtBQTJCO1FBQTNCLFVBQUssR0FBTCxLQUFLLENBQXNCO0lBQUcsQ0FBQztJQUVuRCxLQUFLLENBQUMsY0FBYyxDQUNsQixRQUFrQixFQUNsQixXQUFtQixFQUNuQixPQUFnQixFQUNoQixRQUFjO1FBRWQsTUFBTSxJQUFJLEdBQUcsSUFBSSxDQUFDO1FBQ2xCLElBQUkseUJBQXlCLENBQUMsT0FBTyxDQUFD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lRXZlbnQ8Q29uZGl0aW9uU3RhcnRlZD4oe1xuICAgICAgdHlwZTogV29ya2Zsb3dFdmVudFR5cGUuQ29uZGl0aW9uU3RhcnRlZCxcbiAgICAgIHNlcTogY29tbWFuZC5zZXEhLFxuICAgIH0pO1xuICB9XG5cbiAgcHJpdmF0ZSBhc3luYyBwdWJsaXNoRXZlbnRzKGNvbW1hbmQ6IFB1Ymxpc2hFdmVudHNDb21tYW5kKSB7XG4gICAgYXdhaXQgdGhpcy5wcm9wcy5ldmVudENsaWVudC5wdWJsaXNoKC4uLmNvbW1hbmQuZXZlbnRzKTtcbiAgICByZXR1cm4gY3JlYXRlRXZlbnQ8RXZlbnRzUHVibGlzaGVkPih7XG4gICAgICB0eXBlOiBXb3JrZmxvd0V2ZW50VHlwZS5FdmVudHNQdWJsaXNoZWQsXG4gICAgICBldmVudHM6IGNvbW1hbmQuZXZlbnRzLFxuICAgICAgc2VxOiBjb21tYW5kLnNlcSEsXG4gICAgfSk7XG4gIH1cbn1cbiJdfQ== |
@@ -10,3 +10,3 @@ export function isExecutionId(a) { | ||
} | ||
//API Gateway doesn't agree with uri encoding in path parameter... so we have these. for now | ||
// API Gateway doesn't agree with uri encoding in path parameter... so we have these. for now | ||
export function encodeExecutionId(executionId) { | ||
@@ -32,2 +32,2 @@ return Buffer.from(executionId, "utf-8").toString("base64"); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhlY3V0aW9uLWlkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3J1bnRpbWUvZXhlY3V0aW9uLWlkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUtBLE1BQU0sVUFBVSxhQUFhLENBQUMsQ0FBTTtJQUNsQyxPQUFPLE9BQU8sQ0FBQyxLQUFLLFFBQVEsSUFBSSxDQUFDLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQ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3V0aW9uIElEIGFuZCB0aGUgc2VxIC0gdGhpcyBlbnN1cmVzIHVuaXF1ZW5lc3MgYW5kIGlzIGRldGVybWluaXN0aWNcbiAqXG4gKiBJdCBtdXN0IGJlIGRldGVybWluaXN0aWMgdG8gZW5zdXJlIGlkZW1wb3RlbmN5LlxuICpcbiAqIEBwYXJhbSBwYXJlbnRFeGVjdXRpb25JZCBpZCBvZiB0aGUgY2FsbGVyIGV4ZWN1dGlvbiB1c2VkIHRvIGNvbXB1dGUgdGhlIGNoaWxkIHdvcmtmbG93IG5hbWVcbiAqIEBwYXJhbSBzZXEgcG9zaXRpb24gdGhhdCBzdGFydGVkIHRoZSBjaGlsZCB3b3JrZmxvd1xuICovXG5leHBvcnQgZnVuY3Rpb24gZm9ybWF0Q2hpbGRFeGVjdXRpb25OYW1lKFxuICBwYXJlbnRFeGVjdXRpb25JZDogc3RyaW5nLFxuICBzZXE6IG51bWJlclxuKTogc3RyaW5nIHtcbiAgcmV0dXJuIGAke0lOVEVSTkFMX0VYRUNVVElPTl9JRF9QUkVGSVh9JHtwYXJlbnRFeGVjdXRpb25JZC5yZXBsYWNlKFxuICAgIFwiL1wiLFxuICAgIFwiLVwiXG4gICl9LSR7c2VxfWA7XG59XG4iXX0= |
@@ -178,3 +178,3 @@ import { inspect } from "util"; | ||
const newWorkflowEvents = []; | ||
let resultEvent = undefined; | ||
let resultEvent; | ||
const seenEvents = new Set(originalHistory.map(getEventId)); | ||
@@ -301,2 +301,2 @@ for await (const event of executionGenerator) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JjaGVzdHJhdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3J1bnRpbWUvaGFuZGxlcnMvb3JjaGVzdHJhdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsT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pb24sXG4gICAgICAgICAgICAgICgpID0+XG4gICAgICAgICAgICAgICAgdGltZXJDbGllbnQuc2NoZWR1bGVFdmVudDxXb3JrZmxvd1RpbWVkT3V0Pih7XG4gICAgICAgICAgICAgICAgICBzY2hlZHVsZTogU2NoZWR1bGUuYWJzb2x1dGUobmV3V29ya2Zsb3dTdGFydC50aW1lb3V0VGltZSEpLFxuICAgICAgICAgICAgICAgICAgZXZlbnQ6IGNyZWF0ZUV2ZW50PFdvcmtmbG93VGltZWRPdXQ+KHtcbiAgICAgICAgICAgICAgICAgICAgdHlwZTogV29ya2Zsb3dFdmVudFR5cGUuV29ya2Zsb3dUaW1lZE91dCxcbiAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgZXhlY3V0aW9uSWQsXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIG1ldHJpY3Muc2V0UHJvcGVydHkoT3JjaGVzdHJhdG9yTWV0cmljcy5UaW1lb3V0U3RhcnRlZCwgMCk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgY29uc3Qge1xuICAgICAgICAgIHJlc3VsdCxcbiAgICAgICAgICBjb21tYW5kczogbmV3Q29tbWFuZHMsXG4gICAgICAgICAgaGlzdG9yeTogdXBkYXRlZEhpc3RvcnlFdmVudHMsXG4gICAgICAgIH0gPSB0aW1lZFN5bmMoXG4gICAgICAgICAgbWV0cmljcyxcbiAgICAgICAgICBPcmNoZXN0cmF0b3JNZXRyaWNzLkFkdmFuY2VFeGVjdXRpb25EdXJhdGlvbixcbiAgICAgICAgICAoKSA9PiB7XG4gICAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgICByZXR1cm4gcHJvZ3Jlc3NXb3JrZmxvdyhcbiAgICAgICAgICAgICAgICB3b3JrZmxvdyxcbiAgICAgICAgICAgICAgICBoaXN0b3J5LFxuICAgICAgICAgICAgICAgIGV2ZW50cyxcbiAgICAgICAgICAgICAgICB3b3JrZmxvd0NvbnRleHQsXG4gICAgICAgICAgICAgICAgZXhlY3V0aW9uSWRcbiAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH0gY2F0Y2ggKGVycikge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIndvcmtmbG93IGVycm9yXCIpO1xuICAgICAgICAgICAgICBleGVjdXRpb25Mb2dnZXIuZXJyb3IoaW5zcGVjdChlcnIpKTtcbiAgICAgICAgICAgICAgdGhyb3cgZXJyO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgKTtcblxuICAgICAgICBtZXRyaWNzLnNldFByb3BlcnR5KFxuICAgICAgICAgIE9yY2hlc3RyYXRvck1ldHJpY3MuQWR2YW5jZUV4ZWN1dGlvbkV2ZW50cyxcbiAgICAgICAgICB1cGRhdGVkSGlzdG9yeUV2ZW50cy5sZW5ndGhcbiAgICAgICAgKTtcblxuICAgICAgICB5aWVsZCogdXBkYXRlZEhpc3RvcnlFdmVudHM7XG5cbiAgICAgICAgZXhlY3V0aW9uTG9nZ2VyLmRlYnVnKFxuICAgICAgICAgIFwiV29ya2Zsb3cgdGVybWluYXRlZCB3aXRoOiBcIiArIEpTT04uc3RyaW5naWZ5KHJlc3VsdClcbiAgICAgICAgKTtcblxuICAgICAgICBleGVjdXRpb25Mb2dnZXIuaW5mbyhgRm91bmQgJHtuZXdDb21tYW5kcy5sZW5ndGh9IG5ldyBjb21tYW5kcy5gKTtcblxuICAgICAgICB5aWVsZCogYXdhaXQgdGltZWQoXG4gICAgICAgICAgbWV0cmljcyxcbiAgICAgICAgICBPcmNoZXN0cmF0b3JNZXRyaWNzLkludm9rZUNvbW1hbmRzRHVyYXRpb24sXG4gICAgICAgICAgKCkgPT4gcHJvY2Vzc0NvbW1hbmRzKG5ld0NvbW1hbmRzKVxuICAgICAgICApO1xuXG4gICAgICAgIG1ldHJpY3MucHV0TWV0cmljKFxuICAgICAgICAgIE9yY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0KHJlc3VsdCkpIHtcbiAgICAgICAgICBpZiAoaXNGYWlsZWQocmVzdWx0KSkge1xuICAgICAgICAgICAgY29uc3QgW2Vycm9yLCBtZXNzYWdlXSA9IGV4dGVuZHNFcnJvcihyZXN1bHQuZXJyb3IpXG4gICAgICAgICAgICAgID8gW3Jlc3VsdC5lcnJvci5uYW1lLCByZXN1bHQuZXJyb3IubWVzc2FnZV1cbiAgICAgICAgICAgICAgOiBbXCJFcnJvclwiLCBKU09OLnN0cmluZ2lmeShyZXN1bHQuZXJyb3IpXTtcbiAgICAgICAgICAgIHlpZWxkIGNyZWF0ZUV2ZW50PFdvcmtmbG93RmFpbGVkPih7XG4gICAgICAgICAgICAgIHR5cGU6IFdvcmtmbG93RXZlbnRUeXBlLldvcmtmbG93RmFpbGVkLFxuICAgICAgICAgICAgICBlcnJvcixcbiAgICAgICAgICAgICAgbWVzc2FnZSxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH0gZWxzZSBpZiAoaXNSZXNvbHZlZDxhbnk+KHJlc3VsdCkpIHtcbiAgICAgICAgICAgIHlpZWxkIGNyZWF0ZUV2ZW50PFdvcmtmbG93Q29tcGxldGVkPih7XG4gICAgICAgICAgICAgIHR5cGU6IFdvcmtmbG93RXZlbnRUeXBlLldvcmtmbG93Q29tcGxldGVkLFxuICAgICAgICAgICAgICBvdXRwdXQ6IHJlc3VsdC52YWx1ZSxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgICB9XG5cbiAgICAgIC8qKlxuICAgICAgICogUGFydGl0aW9ucyB0aGUgZXZlbnRzIG91dHB1dCBieSB0aGUgd29ya2Zsb3cuXG4gICAgICAgKlxuICAgICAgICogV2UgbmVlZCB0d28gZGlmZmVyZW50IGNvbGxlY3Rpb24gb2YgZXZlbnRzLlxuICAgICAgICpcbiAgICAgICAqIEhpc3RvcnkgRXZlbnRzIC0gdGhlc2U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ICAgICAgLy8gaWYgdGhlIHdvcmtmbG93IGlzIGNvbXBsZXRlLCBhZGQgc3VjY2VzcyBhbmQgZmFpbHVyZSB0byB0aGUgY29tbWFuZHMuXG4gICAgICBpZiAocmVzdWx0RXZlbnQpIHtcbiAgICAgICAgaWYgKGlzV29ya2Zsb3dGYWlsZWQocmVzdWx0RXZlbnQpKSB7XG4gICAgICAgICAgY29uc3QgZXhlY3V0aW9uID0gYXdhaXQgdGltZWQoXG4gICAgICAgICAgICBtZXRyaWNzLFxuICAgICAgICAgICAgT3JjaGVzdHJhdG9yTWV0cmljcy5FeGVjdXRpb25TdGF0dXNVcGRhdGVEdXJhdGlvbixcbiAgICAgICAgICAgICgpID0+XG4gICAgICAgICAgICAgIHdvcmtmbG93UnVudGltZUNsaWVudC5mYWlsRXhlY3V0aW9uKHtcbiAgICAgICAgICAgICAgICBleGVjdXRpb25JZCxcbiAgICAgICAgICAgICAgICBlcnJvcjogcmVzdWx0RXZlbnQuZXJyb3IsXG4gICAgICAgICAgICAgICAgbWVzc2FnZTogcmVzdWx0RXZlbnQubWVzc2FnZSxcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICApO1xuXG4gICAgICAgICAgbG9nRXhlY3V0aW9uQ29tcGxldGVNZXRyaWNzKGV4ZWN1dGlvbik7XG4gICAgICAgIH0gZWxzZSBpZiAoaXNXb3JrZmxvd0NvbXBsZXRlZChyZXN1bHRFdmVudCkpIHtcbiAgICAgICAgICBjb25zdCBleGVjdXRpb24gPSBhd2FpdCB0aW1lZChcbiAgICAgICAgICAgIG1ldHJpY3MsXG4gICAgICAgICAgICBPcmNoZXN0cmF0b3JNZXRyaWNzLkV4ZWN1dGlvblN0YXR1c1VwZGF0ZUR1cmF0aW9uLFxuICAgICAgICAgICAgKCkgPT5cbiAgICAgICAgICAgICAgd29ya2Zsb3dSdW50aW1lQ2xpZW50LmNvbXBsZXRlRXhlY3V0aW9uKHtcbiAgICAgICAgICAgICAgICBleGVjdXRpb25JZCxcbi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ICAgICAgIHtcbiAgICAgICAgICAgIHR5cGU6IFdvcmtmbG93RXZlbnRUeXBlLldvcmtmbG93VGFza1N0YXJ0ZWQsXG4gICAgICAgICAgfSxcbiAgICAgICAgICBzdGFydFxuICAgICAgICApO1xuXG4gICAgICAgIGNvbnN0IHdvcmtmbG93Q29udGV4dDogV29ya2Zsb3dDb250ZXh0ID0ge1xuICAgICAgICAgIG5hbWU6IHdvcmtmbG93LndvcmtmbG93TmFtZSxcbiAgICAgICAgfTtcblxuICAgICAgICBjb25zdCBzdGFydEV2ZW50ID0gaGlzdG9yeS5maW5kKGlzV29ya2Zsb3dTdGFydGVkKTtcblxuICAgICAgICAvKipcbiAgICAgICAgICogQ2hlY2sgdG8gc2VlIGlmIHRoaXMgaXMgdGhlIGZpcnN0IHJ1biBvZiB0aGUgd29ya2Zsb3cgKG9yIGFsbCBvdGhlcnMgaGF2ZSBmYWlsZWQpLlxuICAgICAgICAgKiBJZiBzbywgY2hlY2sgdG8gc2VlIGlmIHRoZSB3b3JrZmxvdyBoYXMgdGltZW91dCB0byBzdGFydC5cbiAgICAgICAgICovXG4gICAgICAgIGlmICghc3RhcnRFdmVudCkge1xuICAgICAgICAgIGNvbnN0IG5ld1dvcmtmbG93U3RhcnQgPSBldmVudHMuZmluZChpc1dvcmtmbG93U3RhcnRlZCk7XG5cbiAgICAgICAgICBpZiAobmV3V29ya2Zsb3dTdGFydD8udGltZW91dFRpbWUpIHtcbiAgICAgICAgICAgIG1ldHJpY3Muc2V0UHJvcGVydHkoT3JjaGVzdHJhdG9yTWV0cmljcy5UaW1lb3V0U3RhcnRlZCwgMSk7XG4gICAgICAgICAgICBhd2FpdCB0aW1lZChcbiAgICAgICAgICAgICAgbWV0cmljcyxcbiAgICAgICAgICAgICAgT3JjaGVzdHJhdG9yTWV0cmljcy5UaW1lb3V0U3RhcnRlZER1cmF0aW9uLFxuICAgICAgICAgICAgICAoKSA9PlxuICAgICAgICAgICAgICAgIHRpbWVyQ2xpZW50LnNjaGVkdWxlRXZlbnQ8V29ya2Zsb3dUaW1lZE91dD4oe1xuICAgICAgICAgICAgICAgICAgc2NoZWR1bGU6IFNjaGVkdWxlLmFic29sdXRlKG5ld1dvcmtmbG93U3RhcnQudGltZW91dFRpbWUhKSxcbiAgICAgICAgICAgICAgICAgIGV2ZW50OiBjcmVhdGVFdmVudDxXb3JrZmxvd1RpbWVkT3V0Pih7XG4gICAgICAgICAgICAgICAgICAgIHR5cGU6IFdvcmtmbG93RXZlbnRUeXBlLldvcmtmbG93VGltZWRPdXQsXG4gICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgIGV4ZWN1dGlvbklkLFxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICApO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBtZXRyaWNzLnNldFByb3BlcnR5KE9yY2hlc3RyYXRvck1ldHJpY3MuVGltZW91dFN0YXJ0ZWQsIDApO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IHtcbiAgICAgICAgICByZXN1bHQsXG4gICAgICAgICAgY29tbWFuZHM6IG5ld0NvbW1hbmRzLFxuICAgICAgICAgIGhpc3Rvcnk6IHVwZGF0ZWRIaXN0b3J5RXZlbnRzLFxuICAgICAgICB9ID0gdGltZWRTeW5jKFxuICAgICAgICAgIG1ldHJpY3MsXG4gICAgICAgICAgT3JjaGVzdHJhdG9yTWV0cmljcy5BZHZhbmNlRXhlY3V0aW9uRHVyYXRpb24sXG4gICAgICAgICAgKCkgPT4ge1xuICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgcmV0dXJuIHByb2dyZXNzV29ya2Zsb3coXG4gICAgICAgICAgICAgICAgd29ya2Zsb3csXG4gICAgICAgICAgICAgICAgaGlzdG9yeSxcbiAgICAgICAgICAgICAgICBldmVudHMsXG4gICAgICAgICAgICAgICAgd29ya2Zsb3dDb250ZXh0LFxuICAgICAgICAgICAgICAgIGV4ZWN1dGlvbklkXG4gICAgICAgICAgICAgICk7XG4gICAgICAgICAgICB9IGNhdGNoIChlcnIpIHtcbiAgICAgICAgICAgICAgY29uc29sZS5sb2coXCJ3b3JrZmxvdyBlcnJvclwiKTtcbiAgICAgICAgICAgICAgZXhlY3V0aW9uTG9nZ2VyLmVycm9yKGluc3BlY3QoZXJyKSk7XG4gICAgICAgICAgICAgIHRocm93IGVycjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgICk7XG5cbiAgICAgICAgbWV0cmljcy5zZXRQcm9wZXJ0eShcbiAgICAgICAgICBPcmNoZXN0cmF0b3JNZXRyaWNzLkFkdmFuY2VFeGVjdXRpb25FdmVudHMsXG4gICAgICAgICAgdXBkYXRlZEhpc3RvcnlFdmVudHMubGVuZ3RoXG4gICAgICAgICk7XG5cbiAgICAgICAgeWllbGQqIHVwZGF0ZWRIaXN0b3J5RXZlbnRzO1xuXG4gICAgICAgIGV4ZWN1dGlvbkxvZ2dlci5kZWJ1ZyhcbiAgICAgICAgICBcIldvcmtmbG93IHRlcm1pbmF0ZWQgd2l0aDogXCIgKyBKU09OLnN0cmluZ2lmeShyZXN1bHQpXG4gICAgICAgICk7XG5cbiAgICAgICAgZXhlY3V0aW9uTG9nZ2VyLmluZm8oYEZvdW5kICR7bmV3Q29tbWFuZHMubGVuZ3RofSBuZXcgY29tbWFuZHMuYCk7XG5cbiAgICAgICAgeWllbGQqIGF3YWl0IHRpbWVkKFxuICAgICAgICAgIG1ldHJpY3MsXG4gICAgICAgICAgT3JjaGVzdHJhdG9yTWV0cmljcy5JbnZva2VDb21tYW5kc0R1cmF0aW9uLFxuICAgICAgICAgICgpID0+IHByb2Nlc3NDb21tYW5kcyhuZXdDb21tYW5kcylcbiAgICAgICAgKTtcblxuICAgICAgICBtZXRyaWNzLnB1dE1ldHJpYyhcbiAgICAgICAgICBPcmNoZXN0cmF0b3JNZXRyaWNzLkNvbW1hbmRzSW52b2tlZCxcbiAgICAgICAgICBu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BzdWNjZXNzIGFuZCBmYWlsdXJlIHRvIHRoZSBjb21tYW5kcy5cbiAgICAgIGlmIChyZXN1bHRFdmVudCkge1xuICAgICAgICBpZiAoaXNXb3JrZmxvd0ZhaWxlZChyZXN1bHRFdmVudCkpIHtcbiAgICAgICAgICBjb25zdCBleGVjdXRpb24gPSBhd2FpdCB0aW1lZChcbiAgICAgICAgICAgIG1ldHJpY3MsXG4gICAgICAgICAgICBPcmNoZXN0cmF0b3JNZXRyaWNzLkV4ZWN1dGlvblN0YXR1c1VwZGF0ZUR1cmF0aW9uLFxuICAgICAgICAgICAgKCkgPT5cbiAgICAgICAgICAgICAgd29ya2Zsb3dSdW50aW1lQ2xpZW50LmZhaWxFeGVjdXRpb24oe1xuICAgICAgICAgICAgICAgIGV4ZWN1dGlvbklkLFxuICAgICAgICAgICAgICAgIGVycm9yOiByZXN1bHRFdmVudC5lcnJvcixcbiAgICAgICAgICAgICAgICBtZXNzYWdlOiByZXN1bHRFdmVudC5tZXNzYWdlLFxuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICk7XG5cbiAgICAgICAgICBsb2dFeGVjdXRpb25Db21wbGV0ZU1ldHJpY3MoZXhlY3V0aW9uKTtcbiAgICAgICAgfSBlbHNlIGlmIChpc1dvcmtmbG93Q29tcGxldGVkKHJlc3VsdEV2ZW50KSkge1xuICAgICAgICAgIGNvbnN0IGV4ZWN1dGlvbiA9IGF3YWl0IHRpbWVkKFxuICAgICAgICAgICAgbWV0cmljcyxcbiAgICAgICAgICAgIE9yY2hlc3RyYXRvck1ldHJpY3MuRXhlY3V0aW9uU3RhdHVzVXBkYXRlRHVyYXRpb24sXG4gICAgICAgICAgICAoKSA9PlxuICAgICAgICAgICAgICB3b3JrZmxvd1J1bnRpbWVDbGllbnQuY29tcGxldGVFeGVjdXRpb24oe1xuICAgICAgICAgICAgICAgIGV4ZWN1dGlvbklkLFxuICAgICAgICAgICAgICAgIHJlc3VsdDogcmVzdWx0RXZlbnQub3V0cHV0LFx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ZXZlbnRzICovXG5mdW5jdGlvbiBsb2dFdmVudE1ldHJpY3MoXG4gIG1ldHJpY3M6IE1ldHJpY3NMb2dnZXIsXG4gIGV2ZW50czogV29ya2Zsb3dFdmVudFtdLFxuICBub3c6IERhdGVcbikge1xuICBjb25zdCBzbGVlcENvbXBsZXRlZEV2ZW50cyA9IGV2ZW50cy5maWx0ZXIoaXNTbGVlcENvbXBsZXRlZCk7XG4gIGlmIChzbGVlcENvbXBsZXRlZEV2ZW50cy5sZW5ndGggPiAwKSB7XG4gICAgY29uc3Qgc2xlZXBDb21wbGV0ZWRWYXJpYW5jZSA9IHNsZWVwQ29tcGxldGVkRXZlbnRzLm1hcChcbiAgICAgIChzKSA9PiBub3cuZ2V0VGltZSgpIC0gbmV3IERhdGUocy50aW1lc3RhbXApLmdldFRpbWUoKVxuICAgICk7XG4gICAgY29uc3QgYXZnID1cbiAgICAgIHNsZWVwQ29tcGxldGVkVmFyaWFuY2UucmVkdWNlKCh0LCBuKSA9PiB0ICsgbiwgMCkgL1xuICAgICAgc2xlZXBDb21wbGV0ZWRWYXJpYW5jZS5sZW5ndGg7XG4gICAgbWV0cmljcy5zZXRQcm9wZXJ0eShPcmNoZXN0cmF0b3JNZXRyaWNzLlNsZWVwVmFyaWFuY2VNaWxsaXMsIGF2Zyk7XG4gIH1cbn1cbiJdfQ== |
@@ -0,1 +1,2 @@ | ||
/* eslint-disable @typescript-eslint/no-namespace */ | ||
export var MetricsCommon; | ||
@@ -178,2 +179,2 @@ (function (MetricsCommon) { | ||
})(SchedulerForwarderMetrics || (SchedulerForwarderMetrics = {})); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3J1bnRpbWUvbWV0cmljcy9jb25zdGFudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFB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Ijtcbn1cblxuZXhwb3J0IG5hbWVzcGFjZSBTY2hlZHVsZXJGb3J3YXJkZXJNZXRyaWNzIHtcbiAgLyoqXG4gICAqIFRoZSB0aW1lIGJldHdlZW4gdGhlIHNjaGVkdWxlciB0cmlnZ2VyIHRpbWUgYW5kIHRoZSBTY2hlZHVsZXIgRm9yd2FyZGVyIHNlZWluZyB0aGUgbWVzc2FnZS5cbiAgICovXG4gIGV4cG9ydCBjb25zdCBTY2hlZHVsZXJUaW1lRGVsYXkgPSBcIlNjaGVkdWxlclRpbWVEZWxheVwiO1xuICAvKipcbiAgICogU2Vjb25kcyB0aGUgdGltZXIgcXVldWUgaXMgdG9sZCB0byB3YWl0IHVudGlsIGhhbmRsaW5nIHRoZSByZXF1ZXN0LlxuICAgKi9cbiAgZXhwb3J0IGNvbnN0IFRpbWVyUXVldWVEZWxheVNlY29uZHMgPSBcIlRpbWVyUXVldWVEZWxheVNlY29uZHNcIjtcbn1cbiJdfQ== |
@@ -34,3 +34,3 @@ export interface Secret<T> { | ||
#private; | ||
readonly cachingConfig: CachingConfig; | ||
private readonly cachingConfig; | ||
constructor(cachingConfig?: CachingConfig); | ||
@@ -37,0 +37,0 @@ /** |
@@ -66,2 +66,2 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjcmV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NlY3JldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFJQTs7Ozs7R0FLRztBQUNILE1BQU0sT0FBTyxlQUFlO0lBQzFCLFlBQXFCLEtBQVE7UUFBUixVQUFLLEdBQUwsS0FBSyxDQUFHO0lBQUcsQ0FBQztJQUUxQixTQUFTO1FBQ2QsT0FBTyxPQUFPLENBQUMsT0FBTyxDQUF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fFxuICAgICAgIXRoaXMuY2FjaGluZ0NvbmZpZy5lbmFibGVkIHx8XG4gICAgICAodGhpcy4jdmFsdWUgJiZcbiAgICAgICAgdGhpcy5jYWNoaW5nQ29uZmlnLnR0bCAhPT0gdW5kZWZpbmVkICYmXG4gICAgICAgIG5ldyBEYXRlKCkuZ2V0VGltZSgpIC0gdGhpcy4jdmFsdWUucmVmcmVzaFRpbWUuZ2V0VGltZSgpID5cbiAgICAgICAgICB0aGlzLmNhY2hpbmdDb25maWcudHRsKVxuICAgICkge1xuICAgICAgdGhpcy4jdmFsdWUgPSB7XG4gICAgICAgIHZhbHVlOiBhd2FpdCB0aGlzLmdldEZyZXNoU2VjcmV0KCksXG4gICAgICAgIHJlZnJlc2hUaW1lOiBuZXcgRGF0ZSgpLFxuICAgICAgfTtcbiAgICB9XG4gICAgcmV0dXJuIHRoaXMuI3ZhbHVlLnZhbHVlO1xuICB9XG59XG5cbi8qKlxuICogQSB7QGxpbmsgU2VjcmV0fSBwYXJzZWQgZnJvbSAgSlNPTi5cbiAqL1xuZXhwb3J0IGNsYXNzIEpzb25TZWNyZXQ8VD4gaW1wbGVtZW50cyBTZWNyZXQ8VD4ge1xuICBjb25zdHJ1Y3RvcihyZWFkb25seSBzZWNyZXQ6IFNlY3JldDxzdHJpbmc+KSB7fVxuXG4gIHB1YmxpYyBhc3luYyBnZXRTZWNyZXQoKTogUHJvbWlzZTxUPiB7XG4gICAgcmV0dXJuIEpTT04ucGFyc2UoYXdhaXQgdGhpcy5zZWNyZXQuZ2V0U2VjcmV0KCkpO1xuICB9XG59XG4iXX0= |
@@ -131,2 +131,2 @@ import { createSendSignalCall } from "./calls/send-signal-call.js"; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbmFscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zaWduYWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcG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pZ25hbFRhcmdldFxuKTogdGFyZ2V0IGlzIEV4ZWN1dGlvblRhcmdldCB7XG4gIHJldHVybiB0YXJnZXQudHlwZSA9PT0gU2lnbmFsVGFyZ2V0VHlwZS5FeGVjdXRpb247XG59XG4iXX0= |
@@ -22,4 +22,4 @@ export function assertNever(never, msg) { | ||
!!err.prototype && | ||
err.prototype.isPrototypeOf(Error)))); | ||
Object.prototype.isPrototypeOf.call(err.prototype, Error)))); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sVUFBVSxXQUFXLENBQUMsS0FBWSxFQUFFLEdBQVk7SUFDcEQsTUFBTSxJQUFJLEtBQUssQ0FBQyxHQUFHLElBQUksdUNBQXVDLEtBQUssRUFBRSxDQUFDLENBQUM7QUFDekUsQ0FBQztBQUVELE1BQU0sVUFBVSxhQUFhLENBQUksS0FBUyxFQUFFLEdBQVk7SUFDdEQsSUFBSSxDQUFDLEtBQUssRUFBRTtRQUNWLE1BQU0sSUFBSSxLQUFLLENBQUMsR0FBRyxJQUFJLDRDQUE0QyxDQUFDLENBQUM7S0FDdEU7SUFDRCxPQUFPLEtBQU0sQ0FBQztBQUNoQixDQUFDO0FBRUQsTUFBTSxVQUFVLEdBQUcsQ0FDakIsQ0FBbUI7SUFFbkIsT0FBTyxDQUFDLENBQUMsQ0FBTSxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBUSxDQUFDO0FBQ3BDLENBQUM7QUFFRCxNQUFNLFVBQVUsRUFBRSxDQUNoQixHQUFHLFVBQWE7SUFFaEIsT0FBTyxDQUFDLENBQUMsQ0FBTSxFQUFFLEVBQUUsQ0FBQyxVQUFVLENBQUMsSUFBSSxD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JlxuICAgICAgICBPYmplY3QucHJvdG90eXBlLmlzUHJvdG90eXBlT2YuY2FsbChlcnIucHJvdG90eXBlLCBFcnJvcikpKVxuICApO1xufVxuIl19 |
@@ -136,10 +136,3 @@ import { ExecutionContext } from "./context.js"; | ||
} | ||
export interface WorkflowTaskCompleted extends BaseEvent { | ||
type: WorkflowEventType.WorkflowTaskCompleted; | ||
} | ||
export declare function isTaskCompleted(event: WorkflowEvent): event is WorkflowTaskCompleted; | ||
export interface WorkflowCompleted extends BaseEvent { | ||
type: WorkflowEventType.WorkflowCompleted; | ||
output: any; | ||
} | ||
export declare function isWorkflowCompleted(event: WorkflowEvent): event is WorkflowCompleted; | ||
@@ -146,0 +139,0 @@ export declare function isWorkflowFailed(event: WorkflowEvent): event is WorkflowFailed; |
@@ -153,2 +153,2 @@ import { ulid } from "ulidx"; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Zsb3ctZXZlbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3dvcmtmbG93LWV2ZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sT0FBTyxDQUFDO0FBRzdCLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFlL0IsTUFBTSxDQUFOLElBQVksaUJBd0JYO0FBeEJELFdBQVksaUJBQWlCO0lBQzNCLDREQUF1QyxDQUFBO0lBQ3ZDLHNEQUFpQyxDQUFBO0lBQ2pDLDRFQUF1RCxDQUFBO0lBQ3ZELDREQUF1QyxDQUFBO0lBQ3ZDLDBEQUFxQyxDQUFBO0lBQ3JDLHNFQUFpRCxDQUFBO0lBQ2pELGdFQUEyQyxDQUFBO0lBQzNDLHNFQUFpRCxDQUFBO0lBQ2pELDBEQUFxQyxDQUFBO0lBQ3JDLDREQUF1Qy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oKTtcblxuICAvLyBoaXN0b3J5IGV2ZW50cyBkbyBub3QgaGF2ZSBJRHMsIHVzZSBnZXRFdmVudElkXG4gIGlmIChcbiAgICBpc0hpc3RvcnlFdmVudChldmVudCBhcyB1bmtub3duIGFzIFdvcmtmbG93RXZlbnQpICYmXG4gICAgIWlzU2lnbmFsUmVjZWl2ZWQoZXZlbnQgYXMgdW5rbm93biBhcyBXb3JrZmxvd0V2ZW50KVxuICApIHtcbiAgICByZXR1cm4geyAuLi4oZXZlbnQgYXMgYW55KSwgdGltZXN0YW1wIH07XG4gIH1cblxuICByZXR1cm4geyAuLi5ldmVudCwgaWQsIHRpbWVzdGFtcCB9IGFzIFQ7XG59XG4iXX0= |
{ | ||
"name": "@eventual/core", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"exports": { | ||
@@ -5,0 +5,0 @@ ".": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1347762
10622