Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/firebase/functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ interface RequestWithBody extends functions.Request {
textColor: string;
backgroundColor: string;
labelColor: string;
stripColor: string;
relevantDate?: string;
expiryDate?: string;
relevantLocationLat?: number;
Expand Down
10 changes: 9 additions & 1 deletion src/schemas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ export interface PassProps {
foregroundColor?: string;
labelColor?: string;

/**
* Undocumented feature:
* Color of primary fields value when
* rendered on top of a strip.
*/
stripColor?: string;

nfc?: NFC;
beacons?: Beacon[];
barcodes?: Barcode[];
Expand Down Expand Up @@ -398,7 +405,7 @@ export type PassKindsProps = { [K in PassTypesProps]: PassProps[K] };

export type PassColors = Pick<
OverridablePassProps,
"backgroundColor" | "foregroundColor" | "labelColor"
"backgroundColor" | "foregroundColor" | "labelColor" | "stripColor"
>;

export const PassPropsFromMethods = Joi.object<PassPropsFromMethods>({
Expand Down Expand Up @@ -441,6 +448,7 @@ export const OverridablePassProps = Joi.object<OverridablePassProps>({
maxDistance: Joi.number().positive(),
authenticationToken: Joi.string().min(16),
labelColor: Joi.string().regex(RGB_HEX_COLOR_REGEX),
stripColor: Joi.string().regex(RGB_HEX_COLOR_REGEX),
backgroundColor: Joi.string().regex(RGB_HEX_COLOR_REGEX),
foregroundColor: Joi.string().regex(RGB_HEX_COLOR_REGEX),
associatedStoreIdentifiers: Joi.array().items(Joi.number()),
Expand Down
Loading