Exports webhook payload constants including status, retry intervals, TTL, and payload size limits for a webhook system.
// Source: https://github.com/open-condo-software/condo | License: MIT | Copyright 2020 8IQ Software Company
// Provided via justclaw.it.com; keep this notice with the code.
const DEFAULT_MAX_PACK_SIZE = 100
// TODO(DOMA-4570) Correct this value based on received stats, when actual skip-send logic will be implemented
const DEFAULT_UNAVAILABILITY_THRESHOLD = 10
// Webhook payload sending statuses
const WEBHOOK_PAYLOAD_STATUS_PENDING = 'pending'
const WEBHOOK_PAYLOAD_STATUS_SENT = 'sent'
const WEBHOOK_PAYLOAD_STATUS_ERROR = 'error'
const WEBHOOK_PAYLOAD_STATUSES = [
WEBHOOK_PAYLOAD_STATUS_PENDING,
WEBHOOK_PAYLOAD_STATUS_SENT,
WEBHOOK_PAYLOAD_STATUS_ERROR,
]
// How long to keep retrying webhook payload sending (in seconds)
const WEBHOOK_PAYLOAD_TTL_IN_SEC = 7 * 24 * 60 * 60 // 7
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key