Distributed Systems, Nodejs, Node, Typescript, JavaScript.
packages/workflows/order.ts import { defineQuery, setHandler } from '@temporalio/workflow' export const getStatusQuery = defineQuery<OrderStatus>('getStatus') export async function order(productId: number): Promise<void> { let state: OrderState = 'Charging card' let deliveredAt: Date // …