You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
589 B

5 years ago
import * as yup from 'yup'
/*
These schemas validate payloads coming from app,
do not necessarily match up with Models
*/
export const attachment = yup.object().shape({
5 years ago
muid: yup.string().required(),
media_type: yup.string().required(),
media_key_map: yup.object().required(),
})
export const message = yup.object().shape({
5 years ago
contact_id: yup.number().required(),
})
export const purchase = yup.object().shape({
5 years ago
chat_id: yup.number().required(),
contact_id: yup.number().required(),
5 years ago
media_token: yup.string().required(),
5 years ago
amount: yup.number().required()
})