Implement WHMCS Addon Dashboard with API for stats and integrate billing provider logic
Some checks failed
CI / Node — lint, typecheck, test, build (push) Failing after 10s
CI / Go — node-agent tests (push) Failing after 8s
CI / Go — edge-gateway build (push) Successful in 17s

This commit is contained in:
smueller
2026-06-26 15:11:29 +02:00
parent 15cf302afc
commit 4b20efe4bc
30 changed files with 1414 additions and 16 deletions

View File

@@ -268,3 +268,22 @@ export type WhmcsEventsAckRequest = z.infer<typeof whmcsEventsAckRequestSchema>;
export type WhmcsEventsAckResponse = z.infer<typeof whmcsEventsAckResponseSchema>;
export type WhmcsUsageResponse = z.infer<typeof whmcsUsageResponseSchema>;
export type WhmcsUsageAdjustmentRequest = z.infer<typeof whmcsUsageAdjustmentRequestSchema>;
export const whmcsDashboardStatsResponseSchema = z.object({
integrationId: z.string(),
billingProvider: z.enum(['internal', 'whmcs', 'stripe']),
moduleVersion: z.string(),
linkedClients: z.number().int(),
linkedServices: z.number().int(),
suspendedServices: z.number().int(),
terminatedServices: z.number().int(),
pendingEvents: z.number().int(),
deadLetterEvents: z.number().int(),
openReconciliationIssues: z.number().int(),
exportedUsagePeriods: z.number().int(),
eventsCursor: z.string().uuid().nullable(),
lastEventSyncAt: z.string().datetime().nullable(),
lastReconciliationAt: z.string().datetime().nullable(),
});
export type WhmcsDashboardStatsResponse = z.infer<typeof whmcsDashboardStatsResponseSchema>;