@basetime/a2w-api-ts
Advanced tools
Comparing version 0.1.28 to 0.1.29
@@ -304,2 +304,13 @@ "use strict"; | ||
}; | ||
/** | ||
* Deletes an API key. | ||
* | ||
* @param id The ID of the API key. | ||
*/ | ||
deleteApiKey = async (id) => { | ||
const url = `${_OrganizationsEndpoint.endpoint}/apiKeys/${id}`; | ||
return await this.req.fetch(url, { | ||
method: "DELETE" | ||
}); | ||
}; | ||
}; | ||
@@ -306,0 +317,0 @@ |
@@ -270,2 +270,13 @@ // src/Endpoint.ts | ||
}; | ||
/** | ||
* Deletes an API key. | ||
* | ||
* @param id The ID of the API key. | ||
*/ | ||
deleteApiKey = async (id) => { | ||
const url = `${_OrganizationsEndpoint.endpoint}/apiKeys/${id}`; | ||
return await this.req.fetch(url, { | ||
method: "DELETE" | ||
}); | ||
}; | ||
}; | ||
@@ -272,0 +283,0 @@ |
@@ -48,2 +48,8 @@ import { ApiKey } from './ApiKey'; | ||
getApiKey: (id: string, scanner?: any) => Promise<ApiKey | null>; | ||
/** | ||
* Deletes an API key. | ||
* | ||
* @param id The ID of the API key. | ||
*/ | ||
deleteApiKey: (id: string) => Promise<void>; | ||
} |
{ | ||
"name": "@basetime/a2w-api-ts", | ||
"version": "0.1.28", | ||
"version": "0.1.29", | ||
"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
117617
3214