mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 18:25:24 +00:00
Renamed schemas files to conform to Apple official names. Todos have been added for next major
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
import Joi from "joi";
|
import Joi from "joi";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @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 =
|
||||||
| "PKBarcodeFormatQR"
|
| "PKBarcodeFormatQR"
|
||||||
| "PKBarcodeFormatPDF417"
|
| "PKBarcodeFormatPDF417"
|
||||||
@@ -1,5 +1,10 @@
|
|||||||
import Joi from "joi";
|
import Joi from "joi";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @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 {
|
||||||
major?: number;
|
major?: number;
|
||||||
minor?: number;
|
minor?: number;
|
||||||
@@ -1,5 +1,10 @@
|
|||||||
import Joi from "joi";
|
import Joi from "joi";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @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 {
|
||||||
relevantText?: string;
|
relevantText?: string;
|
||||||
altitude?: number;
|
altitude?: number;
|
||||||
@@ -1,5 +1,10 @@
|
|||||||
import Joi from "joi";
|
import Joi from "joi";
|
||||||
import { Semantics } from "./semantics";
|
import { Semantics } from "./SemanticTags";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @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 {
|
||||||
attributedValue?: string | number | Date;
|
attributedValue?: string | number | Date;
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import Joi from "joi";
|
import Joi from "joi";
|
||||||
import { Field } from "./field";
|
import { Field } from "./PassFieldContent";
|
||||||
|
|
||||||
export interface PassFields {
|
export interface PassFields {
|
||||||
auxiliaryFields: (Field & { row?: number })[];
|
auxiliaryFields: (Field & { row?: number })[];
|
||||||
@@ -1,21 +1,21 @@
|
|||||||
export * from "./barcode";
|
export * from "./Barcodes";
|
||||||
export * from "./beacon";
|
export * from "./Beacons";
|
||||||
export * from "./location";
|
export * from "./Location";
|
||||||
export * from "./field";
|
export * from "./PassFieldContent";
|
||||||
export * from "./nfc";
|
export * from "./NFC";
|
||||||
export * from "./semantics";
|
export * from "./SemanticTags";
|
||||||
export * from "./passFields";
|
export * from "./PassFields";
|
||||||
export * from "./personalization";
|
export * from "./personalization";
|
||||||
|
|
||||||
import Joi from "joi";
|
import Joi from "joi";
|
||||||
import debug from "debug";
|
import debug from "debug";
|
||||||
|
|
||||||
import { Barcode } from "./barcode";
|
import { Barcode } from "./Barcodes";
|
||||||
import { Location } from "./location";
|
import { Location } from "./Location";
|
||||||
import { Beacon } from "./beacon";
|
import { Beacon } from "./Beacons";
|
||||||
import { NFC } from "./nfc";
|
import { NFC } from "./NFC";
|
||||||
import { Field } from "./field";
|
import { Field } from "./PassFieldContent";
|
||||||
import { PassFields, TransitType } from "./passFields";
|
import { PassFields, TransitType } from "./PassFields";
|
||||||
import { Personalization } from "./personalization";
|
import { Personalization } from "./personalization";
|
||||||
|
|
||||||
const schemaDebug = debug("Schema");
|
const schemaDebug = debug("Schema");
|
||||||
|
|||||||
Reference in New Issue
Block a user