@basetime/a2w-api-ts
Advanced tools
Comparing version 0.1.18 to 0.1.19
@@ -28,4 +28,5 @@ import { CampaignStats } from './CampaignStats'; | ||
* @param passId The ID of the pass. | ||
* @param scanner The scanner to use. | ||
*/ | ||
getPass: (campaignId: string, passId: string) => Promise<Pass>; | ||
getPass: (campaignId: string, passId: string, scanner?: string) => Promise<Pass>; | ||
/** | ||
@@ -32,0 +33,0 @@ * Creates a pass bundle and returns the URL to the claims page. |
@@ -70,5 +70,6 @@ "use strict"; | ||
* @param passId The ID of the pass. | ||
* @param scanner The scanner to use. | ||
*/ | ||
getPass = async (campaignId, passId) => { | ||
const url = `${_CampaignsEndpoint.endpoint}/${campaignId}/passes/details/${passId}`; | ||
getPass = async (campaignId, passId, scanner = "") => { | ||
const url = `${_CampaignsEndpoint.endpoint}/${campaignId}/passes/details/${passId}?scanner=${scanner}`; | ||
return await this.req.fetch(url, { | ||
@@ -75,0 +76,0 @@ method: "GET" |
@@ -36,5 +36,6 @@ // src/Endpoint.ts | ||
* @param passId The ID of the pass. | ||
* @param scanner The scanner to use. | ||
*/ | ||
getPass = async (campaignId, passId) => { | ||
const url = `${_CampaignsEndpoint.endpoint}/${campaignId}/passes/details/${passId}`; | ||
getPass = async (campaignId, passId, scanner = "") => { | ||
const url = `${_CampaignsEndpoint.endpoint}/${campaignId}/passes/details/${passId}?scanner=${scanner}`; | ||
return await this.req.fetch(url, { | ||
@@ -41,0 +42,0 @@ method: "GET" |
{ | ||
"name": "@basetime/a2w-api-ts", | ||
"version": "0.1.18", | ||
"version": "0.1.19", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Client library that communicates with the addtowallet API.", |
Sorry, the diff of this file is not supported yet
112210
3079