mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 21:25:26 +00:00
Renamed schema files and removed few TODOs
This commit is contained in:
@@ -2,7 +2,6 @@ import Joi from "joi";
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @see https://developer.apple.com/documentation/walletpasses/pass/barcodes
|
* @see https://developer.apple.com/documentation/walletpasses/pass/barcodes
|
||||||
* @TODO Rename "Barcode" in "Barcodes". It will be done in v3.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export type BarcodeFormat =
|
export type BarcodeFormat =
|
||||||
@@ -2,7 +2,6 @@ import Joi from "joi";
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @see https://developer.apple.com/documentation/walletpasses/pass/beacons
|
* @see https://developer.apple.com/documentation/walletpasses/pass/beacons
|
||||||
* @TODO Rename "Beacon" in "Beacons". This will be done in v3.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface Beacon {
|
export interface Beacon {
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
import Joi from "joi";
|
import Joi from "joi";
|
||||||
import { Semantics } from "./SemanticTags";
|
import { Semantics } from "./Semantics";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see https://developer.apple.com/documentation/walletpasses/passfieldcontent
|
* @see https://developer.apple.com/documentation/walletpasses/passfieldcontent
|
||||||
* @TODO Rename interface to PassFieldContent to conform to above. This will be done in v3.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface Field {
|
export interface Field {
|
||||||
@@ -2,7 +2,6 @@ import Joi from "joi";
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @see https://developer.apple.com/documentation/walletpasses/pass/locations
|
* @see https://developer.apple.com/documentation/walletpasses/pass/locations
|
||||||
* @TODO Rename "Location" in "Locations". This will be done in v3.0
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export interface Location {
|
export interface Location {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import Joi from "joi";
|
import Joi from "joi";
|
||||||
import { Field } from "./PassFieldContent";
|
import { Field } from "./Field";
|
||||||
|
|
||||||
export type TransitType =
|
export type TransitType =
|
||||||
| "PKTransitTypeAir"
|
| "PKTransitTypeAir"
|
||||||
|
|||||||
@@ -52,8 +52,8 @@ const CurrencyAmount = Joi.object<SemanticTagType.CurrencyAmount>().keys({
|
|||||||
amount: Joi.string(),
|
amount: Joi.string(),
|
||||||
});
|
});
|
||||||
|
|
||||||
const PersonNameComponent = Joi.object<SemanticTagType.PersonNameComponents>().keys(
|
const PersonNameComponent =
|
||||||
{
|
Joi.object<SemanticTagType.PersonNameComponents>().keys({
|
||||||
givenName: Joi.string(),
|
givenName: Joi.string(),
|
||||||
familyName: Joi.string(),
|
familyName: Joi.string(),
|
||||||
middleName: Joi.string(),
|
middleName: Joi.string(),
|
||||||
@@ -61,8 +61,7 @@ const PersonNameComponent = Joi.object<SemanticTagType.PersonNameComponents>().k
|
|||||||
nameSuffix: Joi.string(),
|
nameSuffix: Joi.string(),
|
||||||
nickname: Joi.string(),
|
nickname: Joi.string(),
|
||||||
phoneticRepresentation: Joi.string(),
|
phoneticRepresentation: Joi.string(),
|
||||||
},
|
});
|
||||||
);
|
|
||||||
|
|
||||||
const seat = Joi.object<SemanticTagType.Seat>().keys({
|
const seat = Joi.object<SemanticTagType.Seat>().keys({
|
||||||
seatSection: Joi.string(),
|
seatSection: Joi.string(),
|
||||||
@@ -1,21 +1,21 @@
|
|||||||
export * from "./Barcodes";
|
export * from "./Barcode";
|
||||||
export * from "./Beacons";
|
export * from "./Beacon";
|
||||||
export * from "./Location";
|
export * from "./Location";
|
||||||
export * from "./PassFieldContent";
|
export * from "./Field";
|
||||||
export * from "./NFC";
|
export * from "./NFC";
|
||||||
export * from "./SemanticTags";
|
export * from "./Semantics";
|
||||||
export * from "./PassFields";
|
export * from "./PassFields";
|
||||||
export * from "./Personalize";
|
export * from "./Personalize";
|
||||||
export * from "./Certificates";
|
export * from "./Certificates";
|
||||||
|
|
||||||
import Joi from "joi";
|
import Joi from "joi";
|
||||||
|
|
||||||
import { Barcode } from "./Barcodes";
|
import { Barcode } from "./Barcode";
|
||||||
import { Location } from "./Location";
|
import { Location } from "./Location";
|
||||||
import { Beacon } from "./Beacons";
|
import { Beacon } from "./Beacon";
|
||||||
import { NFC } from "./NFC";
|
import { NFC } from "./NFC";
|
||||||
import { PassFields, TransitType } from "./PassFields";
|
import { PassFields, TransitType } from "./PassFields";
|
||||||
import { Semantics } from "./SemanticTags";
|
import { Semantics } from "./Semantics";
|
||||||
import { CertificatesSchema } from "./Certificates";
|
import { CertificatesSchema } from "./Certificates";
|
||||||
|
|
||||||
import formatMessage, * as Messages from "../messages";
|
import formatMessage, * as Messages from "../messages";
|
||||||
|
|||||||
Reference in New Issue
Block a user