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.
22 lines
686 B
22 lines
686 B
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const yup = require("yup");
|
|
/*
|
|
These schemas validate payloads coming from app,
|
|
do not necessarily match up with Models
|
|
*/
|
|
exports.attachment = yup.object().shape({
|
|
muid: yup.string().required(),
|
|
media_type: yup.string().required(),
|
|
media_key_map: yup.object().required(),
|
|
});
|
|
exports.message = yup.object().shape({
|
|
contact_id: yup.number().required(),
|
|
});
|
|
exports.purchase = yup.object().shape({
|
|
chat_id: yup.number().required(),
|
|
contact_id: yup.number().required(),
|
|
media_token: yup.string().required(),
|
|
amount: yup.number().required()
|
|
});
|
|
//# sourceMappingURL=schemas.js.map
|