API ReferenceEvent Referencecapri.sync.completed.v1

capri.sync.completed.v1

Constant

import { EVENT_NAMES } from "@platform/contracts";
 
EVENT_NAMES.CAPRI_SYNC_COMPLETED_V1;

Publishers

Subscribers

No service currently subscribes to this event.

Payload schema

z.object({
  sync_id: z.string(),
  status: z.enum(["success", "partial", "failed"]),
  records_processed: z.number().int(),
  errors: z.array(z.string()),
  completed_at: z.string().datetime(),
}

Delivery semantics

  • At-least-once delivery. Consumers must dedupe by event ID.
  • Fanned out to both NATS (in-cluster) and EventBridge (durable). See Events concept.