mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 13:25:19 +00:00
Indent me
This commit is contained in:
@@ -1,34 +1,36 @@
|
||||
{
|
||||
"formatVersion": 1,
|
||||
"passTypeIdentifier": "pass.com.example.myapp",
|
||||
"serialNumber": "nmyuxofgna",
|
||||
"teamIdentifier": "F53WB8AE67",
|
||||
"webServiceURL": "https://192.168.1.254:80/",
|
||||
"authenticationToken": "vxwxd7J8AlNNFPS8k0a0FfUFtq0ewzFdc",
|
||||
"relevantDate": "2011-12-08T13:00-08:00",
|
||||
"locations": [
|
||||
{
|
||||
"longitude": -122.3748889,
|
||||
"latitude": 37.6189722
|
||||
},
|
||||
{
|
||||
"longitude": -122.03118,
|
||||
"latitude": 37.33182
|
||||
}
|
||||
],
|
||||
"barcodes": [{
|
||||
"message": "123456789",
|
||||
"format": "PKBarcodeFormatQR",
|
||||
"messageEncoding": "iso-8859-1"
|
||||
}],
|
||||
"barcode": {
|
||||
"message": "123456789",
|
||||
"format": "PKBarcodeFormatQR",
|
||||
"messageEncoding": "iso-8859-1"
|
||||
},
|
||||
"organizationName": "Apple Inc.",
|
||||
"description": "A Booking pass",
|
||||
"foregroundColor": "rgb(255, 255, 255)",
|
||||
"backgroundColor": "rgb(253, 123, 35)",
|
||||
"boardingPass": {}
|
||||
"formatVersion": 1,
|
||||
"passTypeIdentifier": "pass.com.example.myapp",
|
||||
"serialNumber": "nmyuxofgna",
|
||||
"teamIdentifier": "F53WB8AE67",
|
||||
"webServiceURL": "https://192.168.1.254:80/",
|
||||
"authenticationToken": "vxwxd7J8AlNNFPS8k0a0FfUFtq0ewzFdc",
|
||||
"relevantDate": "2011-12-08T13:00-08:00",
|
||||
"locations": [
|
||||
{
|
||||
"longitude": -122.3748889,
|
||||
"latitude": 37.6189722
|
||||
},
|
||||
{
|
||||
"longitude": -122.03118,
|
||||
"latitude": 37.33182
|
||||
}
|
||||
],
|
||||
"barcodes": [
|
||||
{
|
||||
"message": "123456789",
|
||||
"format": "PKBarcodeFormatQR",
|
||||
"messageEncoding": "iso-8859-1"
|
||||
}
|
||||
],
|
||||
"barcode": {
|
||||
"message": "123456789",
|
||||
"format": "PKBarcodeFormatQR",
|
||||
"messageEncoding": "iso-8859-1"
|
||||
},
|
||||
"organizationName": "Apple Inc.",
|
||||
"description": "A Booking pass",
|
||||
"foregroundColor": "rgb(255, 255, 255)",
|
||||
"backgroundColor": "rgb(253, 123, 35)",
|
||||
"boardingPass": {}
|
||||
}
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
{
|
||||
"name": "examples",
|
||||
"version": "0.0.0",
|
||||
"description": "Passkit-generator examples",
|
||||
"author": "Alexander P. Cerutti <cerutti.alexander@gmail.com>",
|
||||
"license": "ISC",
|
||||
"scripts": {
|
||||
"preinstall": "npm run clear:deps && npm unlink --no-save passkit-generator && cd .. && npm run build && npm link && cd examples && npm link passkit-generator",
|
||||
"example": "cd build && node",
|
||||
"build": "npm run build:clear && npx tsc",
|
||||
"build:clear": "rm -rf build",
|
||||
"clear:deps": "rm -rf node_modules"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "^4.17.1",
|
||||
"node-fetch": "^2.6.1",
|
||||
"tslib": "^2.1.0",
|
||||
"passkit-generator": "latest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/express": "^4.17.0",
|
||||
"@types/node-fetch": "^2.5.0",
|
||||
"typescript": "^4.1.3"
|
||||
}
|
||||
"name": "examples",
|
||||
"version": "0.0.0",
|
||||
"description": "Passkit-generator examples",
|
||||
"author": "Alexander P. Cerutti <cerutti.alexander@gmail.com>",
|
||||
"license": "ISC",
|
||||
"scripts": {
|
||||
"preinstall": "npm run clear:deps && npm unlink --no-save passkit-generator && cd .. && npm run build && npm link && cd examples && npm link passkit-generator",
|
||||
"example": "cd build && node",
|
||||
"build": "npm run build:clear && npx tsc",
|
||||
"build:clear": "rm -rf build",
|
||||
"clear:deps": "rm -rf node_modules"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "^4.17.1",
|
||||
"node-fetch": "^2.6.1",
|
||||
"tslib": "^2.1.0",
|
||||
"passkit-generator": "latest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/express": "^4.17.0",
|
||||
"@types/node-fetch": "^2.5.0",
|
||||
"typescript": "^4.1.3"
|
||||
}
|
||||
}
|
||||
|
||||
14
index.d.ts
vendored
14
index.d.ts
vendored
@@ -73,7 +73,7 @@ export declare class Pass {
|
||||
* @param data
|
||||
* @returns {Pass}
|
||||
*/
|
||||
locations(resetFlag: null): this;
|
||||
locations(resetFlag: null): this;
|
||||
locations(...data: Schema.Location[]): this;
|
||||
|
||||
/**
|
||||
@@ -93,8 +93,8 @@ export declare class Pass {
|
||||
* @params data - other barcodes support
|
||||
* @return {this} Improved this with length property and other methods
|
||||
*/
|
||||
barcodes(resetFlag: null): this;
|
||||
barcodes(message: string): this;
|
||||
barcodes(resetFlag: null): this;
|
||||
barcodes(message: string): this;
|
||||
barcodes(...data: Schema.Barcode[]): this;
|
||||
|
||||
/**
|
||||
@@ -136,10 +136,10 @@ export declare class Pass {
|
||||
export declare function createAbstractModel(options: Schema.AbstractFactoryOptions): Promise<AbstractModel>;
|
||||
|
||||
export declare class AbstractModel {
|
||||
constructor(options: Schema.AbstractModelOptions);
|
||||
readonly certificates: Schema.FinalCertificates;
|
||||
readonly bundle: Schema.PartitionedBundle;
|
||||
readonly overrides: Schema.OverridesSupportedOptions;
|
||||
constructor(options: Schema.AbstractModelOptions);
|
||||
readonly certificates: Schema.FinalCertificates;
|
||||
readonly bundle: Schema.PartitionedBundle;
|
||||
readonly overrides: Schema.OverridesSupportedOptions;
|
||||
}
|
||||
|
||||
declare namespace Schema {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
{
|
||||
"spec_dir": "spec",
|
||||
"spec_files": [ "**/index.js" ],
|
||||
"stopSpecOnExpectationFailure": false,
|
||||
"random": true
|
||||
"spec_dir": "spec",
|
||||
"spec_files": [
|
||||
"**/index.js"
|
||||
],
|
||||
"stopSpecOnExpectationFailure": false,
|
||||
"random": true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user