passkit-generator
Advanced tools
Comparing version 3.1.8 to 3.1.9
@@ -396,3 +396,3 @@ "use strict"; | ||
this.type = type; | ||
const { headerFields = [], primaryFields = [], secondaryFields = [], auxiliaryFields = [], backFields = [], } = data[type] || {}; | ||
const { headerFields = [], primaryFields = [], secondaryFields = [], auxiliaryFields = [], backFields = [], transitType, } = data[type] || {}; | ||
this.headerFields.push(...headerFields); | ||
@@ -403,2 +403,5 @@ this.primaryFields.push(...primaryFields); | ||
this.backFields.push(...backFields); | ||
if (this.type === "boardingPass") { | ||
this.transitType = transitType; | ||
} | ||
} | ||
@@ -405,0 +408,0 @@ } |
import Joi from "joi"; | ||
import { Semantics } from "./Semantics"; | ||
export declare type PKDataDetectorType = "PKDataDetectorTypePhoneNumber" | "PKDataDetectorTypeLink" | "PKDataDetectorTypeAddress" | "PKDataDetectorTypeCalendarEvent"; | ||
export declare type PKTextAlignmentType = "PKTextAlignmentLeft" | "PKTextAlignmentCenter" | "PKTextAlignmentRight" | "PKTextAlignmentNatural"; | ||
export declare type PKDateStyleType = "PKDateStyleNone" | "PKDateStyleShort" | "PKDateStyleMedium" | "PKDateStyleLong" | "PKDateStyleFull"; | ||
export declare type PKNumberStyleType = "PKNumberStyleDecimal" | "PKNumberStylePercent" | "PKNumberStyleScientific" | "PKNumberStyleSpellOut"; | ||
/** | ||
@@ -9,9 +13,9 @@ * @see https://developer.apple.com/documentation/walletpasses/passfieldcontent | ||
changeMessage?: string; | ||
dataDetectorTypes?: string[]; | ||
dataDetectorTypes?: PKDataDetectorType[]; | ||
label?: string; | ||
textAlignment?: string; | ||
textAlignment?: PKTextAlignmentType; | ||
key: string; | ||
value: string | number | Date; | ||
semantics?: Semantics; | ||
dateStyle?: string; | ||
dateStyle?: PKDateStyleType; | ||
ignoresTimeZone?: boolean; | ||
@@ -21,3 +25,3 @@ isRelative?: boolean; | ||
currencyCode?: string; | ||
numberStyle?: string; | ||
numberStyle?: PKNumberStyleType; | ||
} | ||
@@ -24,0 +28,0 @@ export interface FieldWithRow extends Field { |
{ | ||
"name": "passkit-generator", | ||
"version": "3.1.8", | ||
"version": "3.1.9", | ||
"description": "The easiest way to generate custom Apple Wallet passes in Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112191
2610