Added new couple of setter/getter for pass type, that resets the current fields to prevent old data to remain

This commit is contained in:
Alexander Cerutti
2021-09-29 23:45:12 +02:00
parent e151afa0ed
commit b0b0a9555f
2 changed files with 64 additions and 30 deletions

View File

@@ -153,6 +153,10 @@ export const PassKindsProps = Joi.object<PassKindsProps>({
),
});
export const PassType = Joi.string().regex(
/(boardingPass|coupon|eventTicket|storeCard|generic)/,
);
export const OverridablePassProps = Joi.object<OverridablePassProps>({
semantics: Semantics,
voided: Joi.boolean(),