passkit-wallet 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +190 -0
- package/dist/apple/index.d.ts +7 -0
- package/dist/apple/index.d.ts.map +1 -0
- package/dist/apple/index.js +5 -0
- package/dist/apple/index.js.map +1 -0
- package/dist/apple/order.d.ts +40 -0
- package/dist/apple/order.d.ts.map +1 -0
- package/dist/apple/order.js +127 -0
- package/dist/apple/order.js.map +1 -0
- package/dist/apple/pass.d.ts +36 -0
- package/dist/apple/pass.d.ts.map +1 -0
- package/dist/apple/pass.js +44 -0
- package/dist/apple/pass.js.map +1 -0
- package/dist/apple/push.d.ts +14 -0
- package/dist/apple/push.d.ts.map +1 -0
- package/dist/apple/push.js +37 -0
- package/dist/apple/push.js.map +1 -0
- package/dist/apple/registration.d.ts +41 -0
- package/dist/apple/registration.d.ts.map +1 -0
- package/dist/apple/registration.js +40 -0
- package/dist/apple/registration.js.map +1 -0
- package/dist/apple/types.d.ts +110 -0
- package/dist/apple/types.d.ts.map +1 -0
- package/dist/apple/types.js +2 -0
- package/dist/apple/types.js.map +1 -0
- package/dist/common/config.d.ts +247 -0
- package/dist/common/config.d.ts.map +1 -0
- package/dist/common/config.js +58 -0
- package/dist/common/config.js.map +1 -0
- package/dist/common/types.d.ts +54 -0
- package/dist/common/types.d.ts.map +1 -0
- package/dist/common/types.js +20 -0
- package/dist/common/types.js.map +1 -0
- package/dist/google/index.d.ts +4 -0
- package/dist/google/index.d.ts.map +1 -0
- package/dist/google/index.js +3 -0
- package/dist/google/index.js.map +1 -0
- package/dist/google/pass.d.ts +147 -0
- package/dist/google/pass.d.ts.map +1 -0
- package/dist/google/pass.js +269 -0
- package/dist/google/pass.js.map +1 -0
- package/dist/google/push.d.ts +15 -0
- package/dist/google/push.d.ts.map +1 -0
- package/dist/google/push.js +22 -0
- package/dist/google/push.js.map +1 -0
- package/dist/google/types.d.ts +58 -0
- package/dist/google/types.d.ts.map +1 -0
- package/dist/google/types.js +2 -0
- package/dist/google/types.js.map +1 -0
- package/dist/index.d.ts +71 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +74 -0
- package/dist/index.js.map +1 -0
- package/dist/react/AddToAppleWallet.d.ts +20 -0
- package/dist/react/AddToAppleWallet.d.ts.map +1 -0
- package/dist/react/AddToAppleWallet.js +10 -0
- package/dist/react/AddToAppleWallet.js.map +1 -0
- package/dist/react/AddToGoogleWallet.d.ts +20 -0
- package/dist/react/AddToGoogleWallet.d.ts.map +1 -0
- package/dist/react/AddToGoogleWallet.js +10 -0
- package/dist/react/AddToGoogleWallet.js.map +1 -0
- package/dist/react/index.d.ts +5 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +3 -0
- package/dist/react/index.js.map +1 -0
- package/package.json +56 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// ── Apple Wallet ─────────────────────────────────────────────────────────
|
|
2
|
+
export { loadPassTemplate, mountCouponPassBody, loadOrderModel, mountOrderInstance, generateOrder, writeOrderCertificates, addImagesToModelDir, removeImagesFromModelDir, sendPushNotification, parseRegistrationRequest, parseUnregistrationRequest, } from "./apple/index.js";
|
|
3
|
+
// ── Google Wallet ───────────────────────────────────────────────────────
|
|
4
|
+
export { loadClient, getClass, createClass, updateClass, updateObject, getSignedURL, mountOfferClassBody, mountOfferObjectBody, mountOrderClassBody, mountOrderObjectBody, sendObjectMessage, } from "./google/index.js";
|
|
5
|
+
// ── Config ──────────────────────────────────────────────────────────────
|
|
6
|
+
export { applePassConfigSchema, appleOrderConfigSchema, appleClientConfigSchema, googleClientConfigSchema, } from "./common/config.js";
|
|
7
|
+
// ── Common Types ────────────────────────────────────────────────────────
|
|
8
|
+
export { translateOrderStatus } from "./common/types.js";
|
|
9
|
+
// ── Factory helpers ─────────────────────────────────────────────────────
|
|
10
|
+
import { applePassConfigSchema, appleOrderConfigSchema, googleClientConfigSchema } from "./common/config.js";
|
|
11
|
+
import { loadPassTemplate as _loadPassTemplate } from "./apple/pass.js";
|
|
12
|
+
import { loadOrderModel as _loadOrderModel, generateOrder as _generateOrder, mountOrderInstance as _mountOrderInstance } from "./apple/order.js";
|
|
13
|
+
import { sendPushNotification as _sendPush } from "./apple/push.js";
|
|
14
|
+
import { loadClient as _loadClient, getSignedURL as _getSignedURL } from "./google/pass.js";
|
|
15
|
+
/**
|
|
16
|
+
* Create a configured Apple Wallet client with convenience methods.
|
|
17
|
+
*/
|
|
18
|
+
export const createAppleWalletClient = (config) => {
|
|
19
|
+
const passConfig = config.pass ? applePassConfigSchema.parse(config.pass) : undefined;
|
|
20
|
+
const orderConfig = config.order ? appleOrderConfigSchema.parse(config.order) : undefined;
|
|
21
|
+
return {
|
|
22
|
+
/** Load the pass template (requires `pass` config). */
|
|
23
|
+
loadPassTemplate: () => {
|
|
24
|
+
if (!passConfig)
|
|
25
|
+
throw new Error("Apple pass config not provided");
|
|
26
|
+
return _loadPassTemplate(passConfig);
|
|
27
|
+
},
|
|
28
|
+
/** Load the order model (requires `order` config). */
|
|
29
|
+
loadOrderModel: () => {
|
|
30
|
+
if (!orderConfig)
|
|
31
|
+
throw new Error("Apple order config not provided");
|
|
32
|
+
return _loadOrderModel(orderConfig);
|
|
33
|
+
},
|
|
34
|
+
/** Generate a signed .order file buffer (requires `order` config). */
|
|
35
|
+
generateOrder: (orderInstance, images) => {
|
|
36
|
+
if (!orderConfig)
|
|
37
|
+
throw new Error("Apple order config not provided");
|
|
38
|
+
return _generateOrder(orderInstance, orderConfig, images);
|
|
39
|
+
},
|
|
40
|
+
/** Build an order instance body (requires `order` config). */
|
|
41
|
+
mountOrderInstance: (options) => {
|
|
42
|
+
if (!orderConfig)
|
|
43
|
+
throw new Error("Apple order config not provided");
|
|
44
|
+
return _mountOrderInstance(options, orderConfig.webServiceURL);
|
|
45
|
+
},
|
|
46
|
+
/** Send an APN push notification. */
|
|
47
|
+
sendPushNotification: (pushTokens, topic) => {
|
|
48
|
+
const opts = passConfig ?? orderConfig;
|
|
49
|
+
if (!opts)
|
|
50
|
+
throw new Error("Apple config not provided");
|
|
51
|
+
return _sendPush(pushTokens, topic, {
|
|
52
|
+
certificate: opts.certificate,
|
|
53
|
+
privateKey: opts.privateKey,
|
|
54
|
+
passphrase: opts.keyPassword,
|
|
55
|
+
});
|
|
56
|
+
},
|
|
57
|
+
passConfig,
|
|
58
|
+
orderConfig,
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Create a configured Google Wallet client with convenience methods.
|
|
63
|
+
*/
|
|
64
|
+
export const createGoogleWalletClient = (config) => {
|
|
65
|
+
const parsed = googleClientConfigSchema.parse(config);
|
|
66
|
+
const client = _loadClient(parsed);
|
|
67
|
+
return {
|
|
68
|
+
client,
|
|
69
|
+
config: parsed,
|
|
70
|
+
/** Generate a signed "Save to Wallet" URL. */
|
|
71
|
+
getSignedURL: (type, objectSuffix, classSuffix) => _getSignedURL(parsed, type, objectSuffix, classSuffix),
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,sBAAsB,EACtB,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,kBAAkB,CAAA;AAEzB,2EAA2E;AAC3E,OAAO,EACL,UAAU,EACV,QAAQ,EACR,WAAW,EACX,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,mBAAmB,CAAA;AAE1B,2EAA2E;AAC3E,OAAO,EACL,qBAAqB,EACrB,sB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AChD,YAAoB,EACpB,WAAmB,EACnB,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,CAAC;KAC5D,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface AddToAppleWalletProps {
|
|
3
|
+
/** URL to your `.pkpass` file download endpoint. */
|
|
4
|
+
url: string;
|
|
5
|
+
/** Width of the badge image in pixels (default: 168). */
|
|
6
|
+
width?: number;
|
|
7
|
+
/** Height of the badge image in pixels (default: 54). */
|
|
8
|
+
height?: number;
|
|
9
|
+
/** Custom CSS class name. */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** Custom inline styles. */
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Renders the official Apple "Add to Apple Wallet" badge as a link.
|
|
16
|
+
*
|
|
17
|
+
* Uses the official SVG badge from Apple's CDN.
|
|
18
|
+
*/
|
|
19
|
+
export declare const AddToAppleWallet: React.FC<AddToAppleWalletProps>;
|
|
20
|
+
//# sourceMappingURL=AddToAppleWallet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddToAppleWallet.d.ts","sourceRoot":"","sources":["../../src/react/AddToAppleWallet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,qBAAqB;IACpC,oDAAoD;IACpD,GAAG,EAAE,MAAM,CAAA;IACX,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAwB5D,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Renders the official Apple "Add to Apple Wallet" badge as a link.
|
|
4
|
+
*
|
|
5
|
+
* Uses the official SVG badge from Apple's CDN.
|
|
6
|
+
*/
|
|
7
|
+
export const AddToAppleWallet = ({ url, width = 168, height = 54, className, style, }) => {
|
|
8
|
+
return (_jsx("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: className, style: { display: "inline-block", ...style }, children: _jsx("img", { src: "https://developer.apple.com/wallet/add-to-apple-wallet-guidelines/images/add-to-apple-wallet-badge_en.svg", alt: "Add to Apple Wallet", width: width, height: height, style: { display: "block" } }) }));
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=AddToAppleWallet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddToAppleWallet.js","sourceRoot":"","sources":["../../src/react/AddToAppleWallet.tsx"],"names":[],"mappings":";AAeA;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAoC,CAAC,EAChE,GAAG,EACH,KAAK,GAAG,GAAG,EACX,MAAM,GAAG,EAAE,EACX,SAAS,EACT,KAAK,GACN,EAAE,EAAE;IACH,OAAO,CACL,YACE,IAAI,EAAE,GAAG,EACT,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,EACzB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,KAAK,EAAE,YAE5C,cACE,GAAG,EAAC,2GAA2G,EAC/G,GAAG,EAAC,qBAAqB,EACzB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,GAC3B,GACA,CACL,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface AddToGoogleWalletProps {
|
|
3
|
+
/** Signed JWT save URL from `getSignedURL()`. */
|
|
4
|
+
saveUrl: string;
|
|
5
|
+
/** Width of the badge image in pixels (default: 264). */
|
|
6
|
+
width?: number;
|
|
7
|
+
/** Height of the badge image in pixels (default: 48). */
|
|
8
|
+
height?: number;
|
|
9
|
+
/** Custom CSS class name. */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** Custom inline styles. */
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Renders the official Google "Save to Google Wallet" badge as a link.
|
|
16
|
+
*
|
|
17
|
+
* Uses the official SVG badge from Google's developer assets.
|
|
18
|
+
*/
|
|
19
|
+
export declare const AddToGoogleWallet: React.FC<AddToGoogleWalletProps>;
|
|
20
|
+
//# sourceMappingURL=AddToGoogleWallet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddToGoogleWallet.d.ts","sourceRoot":"","sources":["../../src/react/AddToGoogleWallet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,sBAAsB;IACrC,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAA;IACf,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAwB9D,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Renders the official Google "Save to Google Wallet" badge as a link.
|
|
4
|
+
*
|
|
5
|
+
* Uses the official SVG badge from Google's developer assets.
|
|
6
|
+
*/
|
|
7
|
+
export const AddToGoogleWallet = ({ saveUrl, width = 264, height = 48, className, style, }) => {
|
|
8
|
+
return (_jsx("a", { href: saveUrl, target: "_blank", rel: "noopener noreferrer", className: className, style: { display: "inline-block", ...style }, children: _jsx("img", { src: "https://developers.google.com/static/wallet/images/buttons/s2gp_dark_en.svg", alt: "Save to Google Wallet", width: width, height: height, style: { display: "block" } }) }));
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=AddToGoogleWallet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddToGoogleWallet.js","sourceRoot":"","sources":["../../src/react/AddToGoogleWallet.tsx"],"names":[],"mappings":";AAeA;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAqC,CAAC,EAClE,OAAO,EACP,KAAK,GAAG,GAAG,EACX,MAAM,GAAG,EAAE,EACX,SAAS,EACT,KAAK,GACN,EAAE,EAAE;IACH,OAAO,CACL,YACE,IAAI,EAAE,OAAO,EACb,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,EACzB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,KAAK,EAAE,YAE5C,cACE,GAAG,EAAC,6EAA6E,EACjF,GAAG,EAAC,uBAAuB,EAC3B,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,GAC3B,GACA,CACL,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { AddToAppleWallet } from "./AddToAppleWallet.js";
|
|
2
|
+
export type { AddToAppleWalletProps } from "./AddToAppleWallet.js";
|
|
3
|
+
export { AddToGoogleWallet } from "./AddToGoogleWallet.js";
|
|
4
|
+
export type { AddToGoogleWalletProps } from "./AddToGoogleWallet.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,YAAY,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "passkit-wallet",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Apple Wallet + Google Wallet pass generation made easy",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./apple": {
|
|
15
|
+
"types": "./dist/apple/index.d.ts",
|
|
16
|
+
"import": "./dist/apple/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./google": {
|
|
19
|
+
"types": "./dist/google/index.d.ts",
|
|
20
|
+
"import": "./dist/google/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./react": {
|
|
23
|
+
"types": "./dist/react/index.d.ts",
|
|
24
|
+
"import": "./dist/react/index.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsc",
|
|
32
|
+
"typecheck": "tsc --noEmit"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@googleapis/walletobjects": "^6.0.0",
|
|
36
|
+
"@parse/node-apn": "^6.4.3",
|
|
37
|
+
"@walletpass/pass-js": "^6.9.1",
|
|
38
|
+
"googleapis": "^144.0.0",
|
|
39
|
+
"jsonwebtoken": "^9.0.2",
|
|
40
|
+
"wallet-order-generator": "2.2.0",
|
|
41
|
+
"zod": "^3.24.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/jsonwebtoken": "^9.0.9",
|
|
45
|
+
"@types/react": "^18.0.0",
|
|
46
|
+
"typescript": "^5.7.0"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"react": ">=18"
|
|
50
|
+
},
|
|
51
|
+
"peerDependenciesMeta": {
|
|
52
|
+
"react": {
|
|
53
|
+
"optional": true
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|