/** * Centralized log definitions for the Durable Task Client. * * Event IDs and message templates are aligned with the .NET Durable Task SDK * (see: https://github.com/microsoft/durabletask-dotnet/blob/main/src/Client/Grpc/Logs.cs). * * Event ID ranges: * - 40–46: Client operations (from .NET) * - 100–199: JS-specific client operations */ import { Logger } from "../types/logger.type"; /** @internal */ export declare const EVENT_SCHEDULING_ORCHESTRATION = 40; /** @internal */ export declare const EVENT_WAITING_FOR_INSTANCE_START = 42; /** @internal */ export declare const EVENT_WAITING_FOR_INSTANCE_COMPLETION = 43; /** @internal */ export declare const EVENT_TERMINATING_INSTANCE = 44; /** @internal */ export declare const EVENT_PURGING_INSTANCE_METADATA = 45; /** @internal */ export declare const EVENT_PURGING_INSTANCES = 46; /** @internal */ export declare const EVENT_RAISING_EVENT = 100; /** @internal */ export declare const EVENT_SUSPENDING_INSTANCE = 101; /** @internal */ export declare const EVENT_RESUMING_INSTANCE = 102; /** @internal */ export declare const EVENT_REWINDING_INSTANCE = 103; /** @internal */ export declare const EVENT_RESTARTING_INSTANCE = 104; /** @internal */ export declare const EVENT_INSTANCE_COMPLETED = 105; /** @internal */ export declare const EVENT_INSTANCE_FAILED = 106; /** @internal */ export declare const EVENT_INSTANCE_TERMINATED = 107; /** @internal */ export declare const EVENT_SIGNALING_ENTITY = 108; /** @internal */ export declare const EVENT_GETTING_ENTITY = 109; /** * Logs that a new orchestration is being scheduled. * Matches .NET EventId 40: "Scheduling new {name} orchestration with instance ID '{instanceId}' and {sizeInBytes} bytes of input data." */ export declare function schedulingOrchestration(logger: Logger, instanceId: string, name: string, sizeInBytes: number): void; /** * Logs that the client is waiting for an instance to start. * Matches .NET EventId 42: "Waiting for instance '{instanceId}' to start." */ export declare function waitingForInstanceStart(logger: Logger, instanceId: string): void; /** * Logs that the client is waiting for an instance to complete, fail, or terminate. * Matches .NET EventId 43: "Waiting for instance '{instanceId}' to complete, fail, or terminate." */ export declare function waitingForInstanceCompletion(logger: Logger, instanceId: string): void; /** * Logs that an instance is being terminated. * Matches .NET EventId 44: "Terminating instance '{instanceId}'." */ export declare function terminatingInstance(logger: Logger, instanceId: string): void; /** * Logs that instance metadata is being purged. * Matches .NET EventId 45: "Purging instance metadata '{instanceId}'." */ export declare function purgingInstanceMetadata(logger: Logger, instanceId: string): void; /** * Logs that instances are being purged with filter criteria. * Matches .NET EventId 46: "Purging instances with filter: { CreatedFrom = {createdFrom}, CreatedTo = {createdTo}, Statuses = {statuses} }" */ export declare function purgingInstances(logger: Logger, createdFrom?: Date, createdTo?: Date, statuses?: string): void; export declare function raisingEvent(logger: Logger, instanceId: string, eventName: string): void; export declare function suspendingInstance(logger: Logger, instanceId: string): void; export declare function resumingInstance(logger: Logger, instanceId: string): void; export declare function rewindingInstance(logger: Logger, instanceId: string, reason: string): void; export declare function restartingInstance(logger: Logger, instanceId: string, restartWithNewInstanceId: boolean): void; export declare function instanceCompleted(logger: Logger, instanceId: string): void; export declare function instanceFailed(logger: Logger, instanceId: string, errorType: string, errorMessage: string): void; export declare function instanceTerminated(logger: Logger, instanceId: string): void; export declare function signalingEntity(logger: Logger, entityId: string, operationName: string): void; export declare function gettingEntity(logger: Logger, entityId: string): void;