A client library for setting up and managing jobs in the Temporal queue for processing ERPNext requests. Current stable version is 2.9.2, released monthly. It wraps the Temporal Client and Workflow APIs, providing a typed interface for enqueueing ERPNext operations. Differentiator: simplifies Temporal integration for ERPNext automation vs using Temporal SDK directly.
npm install erpnext-queue-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows initializing the client, creating a workflow, and enqueueing an ERPNext request job.
Update imports to ESM syntax: import { erpnextQueueClient } from 'erpnext-queue-client'Upgrade Temporal dependencies: npm install @temporalio/client@^2 @temporalio/workflow@^2
Replace enqueueJob() calls with createWorkflow(client, {...}).execute(input)Set TEMPORAL_SERVER_URL and TEMPORAL_NAMESPACE in environment.
Ensure job input only contains serializable data (strings, numbers, plain objects). Convert Dates to ISO strings.
Change to import syntax or use dynamic import().
Import and use createWorkflow from the package, not from @temporalio/client. Usage: import { createWorkflow } from 'erpnext-queue-client'; const workflow = createWorkflow(client, opts);Register the workflow type on the Temporal worker. Ensure worker runs with correct taskQueue.
Set the url property in the input object.