feat(MED-99): use montonio api and webhook

This commit is contained in:
2025-07-17 10:08:52 +03:00
parent 00b079e170
commit 02bb9f7d34
19 changed files with 813 additions and 143 deletions

View File

@@ -0,0 +1,6 @@
import { z } from 'zod';
export const MontonioClientEnvSchema = z
.object({
accessKey: z.string().min(1),
});

View File

@@ -0,0 +1,15 @@
import { z } from 'zod';
export const MontonioServerEnvSchema = z
.object({
secretKey: z
.string({
required_error: `Please provide the variable MONTONIO_SECRET_KEY`,
})
.min(1),
apiUrl: z
.string({
required_error: `Please provide the variable MONTONIO_API_URL`,
})
.min(1),
});