mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 13:25:19 +00:00
Added support to EventDateInfo
This commit is contained in:
@@ -60,6 +60,17 @@ declare namespace SemanticTagType {
|
|||||||
seatSectionColor?: string;
|
seatSectionColor?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For newly-introduced event tickets
|
||||||
|
* in iOS 18.
|
||||||
|
*/
|
||||||
|
|
||||||
|
interface EventDateInfo {
|
||||||
|
date: string;
|
||||||
|
ignoreTimeComponents?: boolean;
|
||||||
|
timeZone?: string;
|
||||||
|
}
|
||||||
|
|
||||||
interface WifiNetwork {
|
interface WifiNetwork {
|
||||||
password: string;
|
password: string;
|
||||||
ssid: string;
|
ssid: string;
|
||||||
@@ -82,6 +93,12 @@ const PersonNameComponent =
|
|||||||
phoneticRepresentation: Joi.string(),
|
phoneticRepresentation: Joi.string(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const EventDateInfo = Joi.object<SemanticTagType.EventDateInfo>().keys({
|
||||||
|
date: Joi.string().isoDate().required(),
|
||||||
|
ignoreTimeComponents: Joi.boolean(),
|
||||||
|
timeZone: Joi.string(),
|
||||||
|
});
|
||||||
|
|
||||||
const SeatSemantics = Joi.object<SemanticTagType.Seat>().keys({
|
const SeatSemantics = Joi.object<SemanticTagType.Seat>().keys({
|
||||||
seatSection: Joi.string(),
|
seatSection: Joi.string(),
|
||||||
seatRow: Joi.string(),
|
seatRow: Joi.string(),
|
||||||
@@ -217,6 +234,19 @@ export interface Semantics {
|
|||||||
|
|
||||||
eventName?: string;
|
eventName?: string;
|
||||||
eventStartDate?: string;
|
eventStartDate?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For newly-introduced event tickets
|
||||||
|
* in iOS 18.
|
||||||
|
*
|
||||||
|
* Can be used as an alternative way to
|
||||||
|
* show show start date, with more control
|
||||||
|
* on time and timeZone details and as
|
||||||
|
* a way to show the event guide, both
|
||||||
|
* instead of `eventStartDate`.
|
||||||
|
*/
|
||||||
|
eventStartDateInfo?: SemanticTagType.EventDateInfo;
|
||||||
|
|
||||||
eventType?:
|
eventType?:
|
||||||
| "PKEventTypeGeneric"
|
| "PKEventTypeGeneric"
|
||||||
| "PKEventTypeLivePerformance"
|
| "PKEventTypeLivePerformance"
|
||||||
@@ -434,6 +464,18 @@ export const Semantics = Joi.object<Semantics>().keys({
|
|||||||
*/
|
*/
|
||||||
eventLiveMessage: Joi.string(),
|
eventLiveMessage: Joi.string(),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For newly-introduced event tickets
|
||||||
|
* in iOS 18.
|
||||||
|
*
|
||||||
|
* Can be used as an alternative way to
|
||||||
|
* show show start date, with more control
|
||||||
|
* on time and timeZone details and as
|
||||||
|
* a way to show the event guide, both
|
||||||
|
* instead of `eventStartDate`.
|
||||||
|
*/
|
||||||
|
eventStartDateInfo: EventDateInfo,
|
||||||
|
|
||||||
eventStartDate: Joi.string(),
|
eventStartDate: Joi.string(),
|
||||||
eventType: Joi.string().regex(
|
eventType: Joi.string().regex(
|
||||||
/(PKEventTypeGeneric|PKEventTypeLivePerformance|PKEventTypeMovie|PKEventTypeSports|PKEventTypeConference|PKEventTypeConvention|PKEventTypeWorkshop|PKEventTypeSocialGathering)/,
|
/(PKEventTypeGeneric|PKEventTypeLivePerformance|PKEventTypeMovie|PKEventTypeSports|PKEventTypeConference|PKEventTypeConvention|PKEventTypeWorkshop|PKEventTypeSocialGathering)/,
|
||||||
|
|||||||
Reference in New Issue
Block a user