mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-24 22:46:41 +07:00
added calendar service
This commit is contained in:
parent
0b663fb96f
commit
6e34090f8f
31 changed files with 1359 additions and 200 deletions
|
@ -1,6 +1,7 @@
|
|||
import * as yup from "yup";
|
||||
import { VkConfig, VkEvent } from "./types";
|
||||
import { templateOptionalSchema } from "../../config/validate";
|
||||
import { calendarGroupConfigValidator } from "../calendar/config";
|
||||
|
||||
const vkChannelEventSchema = yup.string().oneOf(Object.values(VkEvent));
|
||||
|
||||
|
@ -34,6 +35,7 @@ export const vkConfigSchema = yup
|
|||
apiKey: yup.string().required(),
|
||||
channels: yup.array().of(vkChannelSchema),
|
||||
templates: templateOptionalSchema,
|
||||
calendar: calendarGroupConfigValidator.optional(),
|
||||
})
|
||||
),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue