express-passkit-webservice
Version:
Express.js integration for Apple Wallet web services
13 lines (12 loc) • 579 B
TypeScript
import { Router } from "express";
import { type SerialNumbers } from "passkit-webservice-toolkit/v1/list.js";
/**
* @see https://developer.apple.com/documentation/walletpasses/get_the_list_of_updatable_passes
*/
interface ListRouterOptions<LastUpdatedFormat> {
onListRetrieve(deviceLibraryIdentifier: string, passTypeIdentifier: string, filters: {
passesUpdatedSince?: LastUpdatedFormat;
}): PromiseLike<SerialNumbers | undefined>;
}
export default function ListRouter<LastUpdatedFormat = string>(opts: ListRouterOptions<LastUpdatedFormat>): Router;
export {};