@seamapi/http
Advanced tools
Comparing version 0.17.0 to 0.17.1
@@ -23,2 +23,3 @@ import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'; | ||
removeFromAccessGroup(body?: AcsUsersRemoveFromAccessGroupBody): Promise<void>; | ||
revokeAccessToAllEntrances(body?: AcsUsersRevokeAccessToAllEntrancesBody): Promise<void>; | ||
suspend(body?: AcsUsersSuspendBody): Promise<void>; | ||
@@ -49,2 +50,5 @@ unsuspend(body?: AcsUsersUnsuspendBody): Promise<void>; | ||
export type AcsUsersRemoveFromAccessGroupOptions = never; | ||
export type AcsUsersRevokeAccessToAllEntrancesBody = RouteRequestBody<'/acs/users/revoke_access_to_all_entrances'>; | ||
export type AcsUsersRevokeAccessToAllEntrancesResponse = SetNonNullable<Required<RouteResponse<'/acs/users/revoke_access_to_all_entrances'>>>; | ||
export type AcsUsersRevokeAccessToAllEntrancesOptions = never; | ||
export type AcsUsersSuspendBody = RouteRequestBody<'/acs/users/suspend'>; | ||
@@ -51,0 +55,0 @@ export type AcsUsersSuspendResponse = SetNonNullable<Required<RouteResponse<'/acs/users/suspend'>>>; |
@@ -131,2 +131,9 @@ /* | ||
} | ||
async revokeAccessToAllEntrances(body) { | ||
await this.client.request({ | ||
url: '/acs/users/revoke_access_to_all_entrances', | ||
method: 'post', | ||
data: body, | ||
}); | ||
} | ||
async suspend(body) { | ||
@@ -133,0 +140,0 @@ await this.client.request({ |
@@ -20,2 +20,3 @@ import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'; | ||
list(body?: WebhooksListParams): Promise<WebhooksListResponse['webhooks']>; | ||
update(body?: WebhooksUpdateBody): Promise<void>; | ||
} | ||
@@ -34,1 +35,4 @@ export type WebhooksCreateBody = RouteRequestBody<'/webhooks/create'>; | ||
export type WebhooksListOptions = never; | ||
export type WebhooksUpdateBody = RouteRequestBody<'/webhooks/update'>; | ||
export type WebhooksUpdateResponse = SetNonNullable<Required<RouteResponse<'/webhooks/update'>>>; | ||
export type WebhooksUpdateOptions = never; |
@@ -109,3 +109,10 @@ /* | ||
} | ||
async update(body) { | ||
await this.client.request({ | ||
url: '/webhooks/update', | ||
method: 'post', | ||
data: body, | ||
}); | ||
} | ||
} | ||
//# sourceMappingURL=webhooks.js.map |
@@ -1,2 +0,2 @@ | ||
declare const seamapiJavascriptHttpVersion = "0.17.0"; | ||
declare const seamapiJavascriptHttpVersion = "0.17.1"; | ||
export default seamapiJavascriptHttpVersion; |
@@ -1,3 +0,3 @@ | ||
const seamapiJavascriptHttpVersion = '0.17.0'; | ||
const seamapiJavascriptHttpVersion = '0.17.1'; | ||
export default seamapiJavascriptHttpVersion; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@seamapi/http", | ||
"version": "0.17.0", | ||
"version": "0.17.1", | ||
"description": "JavaScript HTTP client for the Seam API written in TypeScript.", | ||
@@ -87,3 +87,3 @@ "type": "module", | ||
"peerDependencies": { | ||
"@seamapi/types": "^1.94.0", | ||
"@seamapi/types": "^1.106.0", | ||
"type-fest": "^4.0.0" | ||
@@ -107,3 +107,3 @@ }, | ||
"@seamapi/fake-seam-connect": "^1.44.2", | ||
"@seamapi/types": "^1.94.0", | ||
"@seamapi/types": "^1.106.0", | ||
"@types/eslint": "^8.44.2", | ||
@@ -110,0 +110,0 @@ "@types/node": "^20.8.10", |
@@ -231,2 +231,12 @@ /* | ||
async revokeAccessToAllEntrances( | ||
body?: AcsUsersRevokeAccessToAllEntrancesBody, | ||
): Promise<void> { | ||
await this.client.request<AcsUsersRevokeAccessToAllEntrancesResponse>({ | ||
url: '/acs/users/revoke_access_to_all_entrances', | ||
method: 'post', | ||
data: body, | ||
}) | ||
} | ||
async suspend(body?: AcsUsersSuspendBody): Promise<void> { | ||
@@ -316,2 +326,11 @@ await this.client.request<AcsUsersSuspendResponse>({ | ||
export type AcsUsersRevokeAccessToAllEntrancesBody = | ||
RouteRequestBody<'/acs/users/revoke_access_to_all_entrances'> | ||
export type AcsUsersRevokeAccessToAllEntrancesResponse = SetNonNullable< | ||
Required<RouteResponse<'/acs/users/revoke_access_to_all_entrances'>> | ||
> | ||
export type AcsUsersRevokeAccessToAllEntrancesOptions = never | ||
export type AcsUsersSuspendBody = RouteRequestBody<'/acs/users/suspend'> | ||
@@ -318,0 +337,0 @@ |
@@ -197,2 +197,10 @@ /* | ||
} | ||
async update(body?: WebhooksUpdateBody): Promise<void> { | ||
await this.client.request<WebhooksUpdateResponse>({ | ||
url: '/webhooks/update', | ||
method: 'post', | ||
data: body, | ||
}) | ||
} | ||
} | ||
@@ -231,1 +239,9 @@ | ||
export type WebhooksListOptions = never | ||
export type WebhooksUpdateBody = RouteRequestBody<'/webhooks/update'> | ||
export type WebhooksUpdateResponse = SetNonNullable< | ||
Required<RouteResponse<'/webhooks/update'>> | ||
> | ||
export type WebhooksUpdateOptions = never |
@@ -1,3 +0,3 @@ | ||
const seamapiJavascriptHttpVersion = '0.17.0' | ||
const seamapiJavascriptHttpVersion = '0.17.1' | ||
export default seamapiJavascriptHttpVersion |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1370898
16431