UNPKG

@oystehr/sdk

Version:

Oystehr SDK

32 lines (31 loc) 1.87 kB
import { FaxSendParams, FaxSendResponse, OystehrClientRequest } from '../..'; import { SDKResource } from '../../client/client'; import { OystehrConfig } from '../../config'; export declare class Fax extends SDKResource { #private; constructor(config: OystehrConfig); /** * Offboard a fax number. Oystehr's [offboard](https://docs.oystehr.com/oystehr/services/fax/number/) feature makes it easy to stop using the fax service and release the project's assigned fax number with a single API call. Please note there is no way to guarantee getting the same number back again, so if you think this can break your project in any way we recommend not offboarding and avoid sending faxes until you're sure. * * Access Policy Requirements: * Action: `Fax:Offboard` * Access Policy Resource: `Fax:Number` */ offboard(request?: OystehrClientRequest): Promise<void>; /** * Onboard a fax number. Oystehr's [onboard](https://docs.oystehr.com/oystehr/services/fax/number/) feature makes it easy to start using the fax service and purchase a new fax number for your project with a single API call. * * Access Policy Requirements: * Action: `Fax:Onboard` * Access Policy Resource: `Fax:Number` */ onboard(request?: OystehrClientRequest): Promise<void>; /** * Send a fax. Oystehr's [fax sending](https://docs.oystehr.com/oystehr/services/fax/send/) feature makes it easy to send a fax to a chosen recipient with a single API call. You can use this feature to send referrals, medical records, prescriptions, and other documents that require fax transmission e.g. for HIPAA compliance. * * Access Policy Requirements: * Action: `Fax:Send` * Access Policy Resource: `Fax:Fax` */ send(params: FaxSendParams, request?: OystehrClientRequest): Promise<FaxSendResponse>; }