@seamapi/http
Advanced tools
Comparing version 0.17.1 to 0.18.0
@@ -78,2 +78,9 @@ /* | ||
} | ||
async deactivate(body) { | ||
await this.client.request({ | ||
url: '/phones/deactivate', | ||
method: 'post', | ||
data: body, | ||
}); | ||
} | ||
async list(body) { | ||
@@ -80,0 +87,0 @@ const { data } = await this.client.request({ |
@@ -1,3 +0,3 @@ | ||
const seamapiJavascriptHttpVersion = '0.17.1'; | ||
const seamapiJavascriptHttpVersion = '0.18.0'; | ||
export default seamapiJavascriptHttpVersion; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@seamapi/http", | ||
"version": "0.17.1", | ||
"version": "0.18.0", | ||
"description": "JavaScript HTTP client for the Seam API written in TypeScript.", | ||
@@ -62,3 +62,3 @@ "type": "module", | ||
"build:ts": "tsc --project tsconfig.build.json", | ||
"prebuild:ts": "del 'index.*' 'connect.*' 'lib'", | ||
"prebuild:ts": "del 'index.*' 'connect.*' lib", | ||
"postbuild:ts": "tsc-alias --project tsconfig.build.json", | ||
@@ -88,3 +88,3 @@ "typecheck": "tsc", | ||
"peerDependencies": { | ||
"@seamapi/types": "^1.106.0", | ||
"@seamapi/types": "^1.111.0", | ||
"type-fest": "^4.0.0" | ||
@@ -108,3 +108,3 @@ }, | ||
"@seamapi/fake-seam-connect": "^1.44.2", | ||
"@seamapi/types": "^1.106.0", | ||
"@seamapi/types": "^1.111.0", | ||
"@types/eslint": "^8.44.2", | ||
@@ -121,3 +121,3 @@ "@types/node": "^20.8.10", | ||
"eslint-config-standard-with-typescript": "^43.0.0", | ||
"eslint-plugin-simple-import-sort": "^10.0.0", | ||
"eslint-plugin-simple-import-sort": "^12.0.0", | ||
"eslint-plugin-unused-imports": "^3.0.0", | ||
@@ -124,0 +124,0 @@ "execa": "^8.0.1", |
@@ -156,2 +156,10 @@ /* | ||
async deactivate(body?: PhonesDeactivateBody): Promise<void> { | ||
await this.client.request<PhonesDeactivateResponse>({ | ||
url: '/phones/deactivate', | ||
method: 'post', | ||
data: body, | ||
}) | ||
} | ||
async list(body?: PhonesListParams): Promise<PhonesListResponse['phones']> { | ||
@@ -168,2 +176,10 @@ const { data } = await this.client.request<PhonesListResponse>({ | ||
export type PhonesDeactivateBody = RouteRequestBody<'/phones/deactivate'> | ||
export type PhonesDeactivateResponse = SetNonNullable< | ||
Required<RouteResponse<'/phones/deactivate'>> | ||
> | ||
export type PhonesDeactivateOptions = never | ||
export type PhonesListParams = RouteRequestBody<'/phones/list'> | ||
@@ -170,0 +186,0 @@ |
@@ -1,3 +0,3 @@ | ||
const seamapiJavascriptHttpVersion = '0.17.1' | ||
const seamapiJavascriptHttpVersion = '0.18.0' | ||
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
1254722
148
15161