mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 18:25:24 +00:00
Added support to Semantics.relevantDates
This commit is contained in:
@@ -32,6 +32,16 @@ declare namespace SemanticTagType {
|
|||||||
longitude: number;
|
longitude: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For newly-introduced event tickets
|
||||||
|
* in iOS 18
|
||||||
|
*/
|
||||||
|
|
||||||
|
interface RelevantDate {
|
||||||
|
startDate: string;
|
||||||
|
endDate: string;
|
||||||
|
}
|
||||||
|
|
||||||
interface Seat {
|
interface Seat {
|
||||||
seatSection?: string;
|
seatSection?: string;
|
||||||
seatRow?: string;
|
seatRow?: string;
|
||||||
@@ -69,6 +79,15 @@ const PersonNameComponent =
|
|||||||
phoneticRepresentation: Joi.string(),
|
phoneticRepresentation: Joi.string(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Minimum supported version: iOS 18
|
||||||
|
*/
|
||||||
|
|
||||||
|
const RelevantDate = Joi.object<SemanticTagType.RelevantDate>().keys({
|
||||||
|
startDate: Joi.string().required(),
|
||||||
|
endDate: Joi.string().required(),
|
||||||
|
});
|
||||||
|
|
||||||
const seat = Joi.object<SemanticTagType.Seat>().keys({
|
const seat = Joi.object<SemanticTagType.Seat>().keys({
|
||||||
seatSection: Joi.string(),
|
seatSection: Joi.string(),
|
||||||
seatRow: Joi.string(),
|
seatRow: Joi.string(),
|
||||||
@@ -164,6 +183,8 @@ export interface Semantics {
|
|||||||
performerNames?: string[];
|
performerNames?: string[];
|
||||||
priorityStatus?: string;
|
priorityStatus?: string;
|
||||||
|
|
||||||
|
relevantDates?: SemanticTagType.RelevantDate[];
|
||||||
|
|
||||||
seats?: SemanticTagType.Seat[];
|
seats?: SemanticTagType.Seat[];
|
||||||
securityScreening?: string;
|
securityScreening?: string;
|
||||||
silenceRequested?: boolean;
|
silenceRequested?: boolean;
|
||||||
@@ -250,6 +271,8 @@ export const Semantics = Joi.object<Semantics>().keys({
|
|||||||
performerNames: Joi.array().items(Joi.string()),
|
performerNames: Joi.array().items(Joi.string()),
|
||||||
priorityStatus: Joi.string(),
|
priorityStatus: Joi.string(),
|
||||||
|
|
||||||
|
relevantDates: Joi.array().items(RelevantDate),
|
||||||
|
|
||||||
seats: Joi.array().items(seat),
|
seats: Joi.array().items(seat),
|
||||||
securityScreening: Joi.string(),
|
securityScreening: Joi.string(),
|
||||||
silenceRequested: Joi.boolean(),
|
silenceRequested: Joi.boolean(),
|
||||||
|
|||||||
Reference in New Issue
Block a user