@basetime/a2w-api-ts
Advanced tools
Comparing version 0.1.15 to 0.1.16
@@ -232,2 +232,13 @@ "use strict"; | ||
/** | ||
* Returns a scanner invite by code. | ||
* | ||
* @param code The invite code. | ||
*/ | ||
getScannerInvite = async (code) => { | ||
const url = `${_OrganizationsEndpoint.endpoint}/scanners/invites/${code}`; | ||
return await this.req.fetch(url, { | ||
method: "GET" | ||
}); | ||
}; | ||
/** | ||
* Accepts an scanner app invite code and returns api keys. | ||
@@ -234,0 +245,0 @@ * |
@@ -26,1 +26,2 @@ export { default as Client } from './Client'; | ||
export type { MetaValues, MetaValue } from './MetaValues'; | ||
export type { ScannerInvite } from './ScannerInvite'; |
@@ -198,2 +198,13 @@ // src/Endpoint.ts | ||
/** | ||
* Returns a scanner invite by code. | ||
* | ||
* @param code The invite code. | ||
*/ | ||
getScannerInvite = async (code) => { | ||
const url = `${_OrganizationsEndpoint.endpoint}/scanners/invites/${code}`; | ||
return await this.req.fetch(url, { | ||
method: "GET" | ||
}); | ||
}; | ||
/** | ||
* Accepts an scanner app invite code and returns api keys. | ||
@@ -200,0 +211,0 @@ * |
import Endpoint from './Endpoint'; | ||
import { Organization } from './Organization'; | ||
import { ScannerInvite } from './ScannerInvite'; | ||
/** | ||
@@ -18,2 +19,8 @@ * Communicate with the organizations endpoints. | ||
/** | ||
* Returns a scanner invite by code. | ||
* | ||
* @param code The invite code. | ||
*/ | ||
getScannerInvite: (code: string) => Promise<ScannerInvite | null>; | ||
/** | ||
* Accepts an scanner app invite code and returns api keys. | ||
@@ -20,0 +27,0 @@ * |
{ | ||
"name": "@basetime/a2w-api-ts", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"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
110359
40
3032