mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 22:25:24 +00:00
Add support for undocumented stripColor property.
This commit is contained in:
@@ -20,6 +20,7 @@ interface RequestWithBody extends functions.Request {
|
|||||||
textColor: string;
|
textColor: string;
|
||||||
backgroundColor: string;
|
backgroundColor: string;
|
||||||
labelColor: string;
|
labelColor: string;
|
||||||
|
stripColor: string;
|
||||||
relevantDate?: string;
|
relevantDate?: string;
|
||||||
expiryDate?: string;
|
expiryDate?: string;
|
||||||
relevantLocationLat?: number;
|
relevantLocationLat?: number;
|
||||||
|
|||||||
@@ -101,6 +101,13 @@ export interface PassProps {
|
|||||||
foregroundColor?: string;
|
foregroundColor?: string;
|
||||||
labelColor?: string;
|
labelColor?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Undocumented feature:
|
||||||
|
* Color of primary fields value when
|
||||||
|
* rendered on top of a strip.
|
||||||
|
*/
|
||||||
|
stripColor?: string;
|
||||||
|
|
||||||
nfc?: NFC;
|
nfc?: NFC;
|
||||||
beacons?: Beacon[];
|
beacons?: Beacon[];
|
||||||
barcodes?: Barcode[];
|
barcodes?: Barcode[];
|
||||||
@@ -441,6 +448,7 @@ export const OverridablePassProps = Joi.object<OverridablePassProps>({
|
|||||||
maxDistance: Joi.number().positive(),
|
maxDistance: Joi.number().positive(),
|
||||||
authenticationToken: Joi.string().min(16),
|
authenticationToken: Joi.string().min(16),
|
||||||
labelColor: Joi.string().regex(RGB_HEX_COLOR_REGEX),
|
labelColor: Joi.string().regex(RGB_HEX_COLOR_REGEX),
|
||||||
|
stripColor: Joi.string().regex(RGB_HEX_COLOR_REGEX),
|
||||||
backgroundColor: Joi.string().regex(RGB_HEX_COLOR_REGEX),
|
backgroundColor: Joi.string().regex(RGB_HEX_COLOR_REGEX),
|
||||||
foregroundColor: Joi.string().regex(RGB_HEX_COLOR_REGEX),
|
foregroundColor: Joi.string().regex(RGB_HEX_COLOR_REGEX),
|
||||||
associatedStoreIdentifiers: Joi.array().items(Joi.number()),
|
associatedStoreIdentifiers: Joi.array().items(Joi.number()),
|
||||||
|
|||||||
Reference in New Issue
Block a user