UNPKG

glide-nodejs-sdk

Version:

Glide NodeJS SDK

14 lines (10 loc) 308 B
const { object, string, number } = require("yup"); const getCustmersSchema = object().shape({ page: number().default(1), }); const customerUpdateSchema = object().shape({ lastName: string(), firstName: string(), phoneNumber: string(), }); module.exports = { getCustmersSchema, customerUpdateSchema };