@bluehive/sdk 0.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/LICENSE +201 -0
- package/README.md +358 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +192 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +192 -0
- package/client.d.ts.map +1 -0
- package/client.js +470 -0
- package/client.js.map +1 -0
- package/client.mjs +466 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +139 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/database.d.mts +54 -0
- package/resources/database.d.mts.map +1 -0
- package/resources/database.d.ts +54 -0
- package/resources/database.d.ts.map +1 -0
- package/resources/database.js +15 -0
- package/resources/database.js.map +1 -0
- package/resources/database.mjs +11 -0
- package/resources/database.mjs.map +1 -0
- package/resources/fax.d.mts +159 -0
- package/resources/fax.d.mts.map +1 -0
- package/resources/fax.d.ts +159 -0
- package/resources/fax.d.ts.map +1 -0
- package/resources/fax.js +28 -0
- package/resources/fax.js.map +1 -0
- package/resources/fax.mjs +24 -0
- package/resources/fax.mjs.map +1 -0
- package/resources/health.d.mts +16 -0
- package/resources/health.d.mts.map +1 -0
- package/resources/health.d.ts +16 -0
- package/resources/health.d.ts.map +1 -0
- package/resources/health.js +15 -0
- package/resources/health.js.map +1 -0
- package/resources/health.mjs +11 -0
- package/resources/health.mjs.map +1 -0
- package/resources/index.d.mts +6 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +6 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +15 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +7 -0
- package/resources/index.mjs.map +1 -0
- package/resources/providers.d.mts +93 -0
- package/resources/providers.d.mts.map +1 -0
- package/resources/providers.d.ts +93 -0
- package/resources/providers.d.ts.map +1 -0
- package/resources/providers.js +15 -0
- package/resources/providers.js.map +1 -0
- package/resources/providers.mjs +11 -0
- package/resources/providers.mjs.map +1 -0
- package/resources/version.d.mts +16 -0
- package/resources/version.d.mts.map +1 -0
- package/resources/version.d.ts +16 -0
- package/resources/version.d.ts.map +1 -0
- package/resources/version.js +15 -0
- package/resources/version.js.map +1 -0
- package/resources/version.mjs +11 -0
- package/resources/version.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +757 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/database.ts +67 -0
- package/src/resources/fax.ts +215 -0
- package/src/resources/health.ts +22 -0
- package/src/resources/index.ts +13 -0
- package/src/resources/providers.ts +122 -0
- package/src/resources/version.ts +22 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Fax extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get a list of available fax providers and their configuration status.
|
|
7
|
+
*/
|
|
8
|
+
listProviders(options?: RequestOptions): APIPromise<FaxListProvidersResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve the current status and details of a fax by its ID.
|
|
11
|
+
*/
|
|
12
|
+
retrieveStatus(id: string, options?: RequestOptions): APIPromise<FaxRetrieveStatusResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Send a fax document to a specified number using the configured fax provider.
|
|
15
|
+
*/
|
|
16
|
+
send(body: FaxSendParams, options?: RequestOptions): APIPromise<FaxSendResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface FaxListProvidersResponse {
|
|
19
|
+
providers: Array<FaxListProvidersResponse.Provider>;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace FaxListProvidersResponse {
|
|
22
|
+
interface Provider {
|
|
23
|
+
/**
|
|
24
|
+
* Whether the provider is properly configured
|
|
25
|
+
*/
|
|
26
|
+
configured: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether this is the default provider
|
|
29
|
+
*/
|
|
30
|
+
isDefault: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Provider name
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export interface FaxRetrieveStatusResponse {
|
|
38
|
+
/**
|
|
39
|
+
* Fax identifier
|
|
40
|
+
*/
|
|
41
|
+
id: string;
|
|
42
|
+
/**
|
|
43
|
+
* ISO timestamp when fax was created
|
|
44
|
+
*/
|
|
45
|
+
createdAt: string;
|
|
46
|
+
/**
|
|
47
|
+
* Sender fax number
|
|
48
|
+
*/
|
|
49
|
+
from: string;
|
|
50
|
+
/**
|
|
51
|
+
* Provider used to send the fax
|
|
52
|
+
*/
|
|
53
|
+
provider: string;
|
|
54
|
+
/**
|
|
55
|
+
* Current fax status
|
|
56
|
+
*/
|
|
57
|
+
status: 'queued' | 'dialing' | 'sending' | 'delivered' | 'failed' | 'cancelled' | 'retrying';
|
|
58
|
+
/**
|
|
59
|
+
* Recipient fax number
|
|
60
|
+
*/
|
|
61
|
+
to: string;
|
|
62
|
+
/**
|
|
63
|
+
* ISO timestamp when status was last updated
|
|
64
|
+
*/
|
|
65
|
+
updatedAt: string;
|
|
66
|
+
/**
|
|
67
|
+
* Cost of the fax
|
|
68
|
+
*/
|
|
69
|
+
cost?: number;
|
|
70
|
+
/**
|
|
71
|
+
* ISO timestamp when fax was delivered
|
|
72
|
+
*/
|
|
73
|
+
deliveredAt?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Call duration in seconds
|
|
76
|
+
*/
|
|
77
|
+
duration?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Error message if fax failed
|
|
80
|
+
*/
|
|
81
|
+
errorMessage?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Number of pages in the fax
|
|
84
|
+
*/
|
|
85
|
+
pageCount?: number;
|
|
86
|
+
/**
|
|
87
|
+
* Provider-specific additional data
|
|
88
|
+
*/
|
|
89
|
+
providerData?: unknown;
|
|
90
|
+
}
|
|
91
|
+
export interface FaxSendResponse {
|
|
92
|
+
/**
|
|
93
|
+
* Unique fax identifier
|
|
94
|
+
*/
|
|
95
|
+
id: string;
|
|
96
|
+
/**
|
|
97
|
+
* ISO timestamp when fax was created
|
|
98
|
+
*/
|
|
99
|
+
createdAt: string;
|
|
100
|
+
/**
|
|
101
|
+
* Sender fax number
|
|
102
|
+
*/
|
|
103
|
+
from: string;
|
|
104
|
+
/**
|
|
105
|
+
* Provider used to send the fax
|
|
106
|
+
*/
|
|
107
|
+
provider: string;
|
|
108
|
+
/**
|
|
109
|
+
* Current fax status
|
|
110
|
+
*/
|
|
111
|
+
status: 'queued' | 'dialing' | 'sending' | 'delivered' | 'failed' | 'cancelled' | 'retrying';
|
|
112
|
+
/**
|
|
113
|
+
* Recipient fax number
|
|
114
|
+
*/
|
|
115
|
+
to: string;
|
|
116
|
+
/**
|
|
117
|
+
* Estimated delivery time (ISO timestamp)
|
|
118
|
+
*/
|
|
119
|
+
estimatedDelivery?: string;
|
|
120
|
+
}
|
|
121
|
+
export interface FaxSendParams {
|
|
122
|
+
document: FaxSendParams.Document;
|
|
123
|
+
/**
|
|
124
|
+
* Recipient fax number (E.164 format preferred)
|
|
125
|
+
*/
|
|
126
|
+
to: string;
|
|
127
|
+
/**
|
|
128
|
+
* Sender fax number (optional, uses default if not provided)
|
|
129
|
+
*/
|
|
130
|
+
from?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Optional provider override (uses default if not specified)
|
|
133
|
+
*/
|
|
134
|
+
provider?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Subject line for the fax
|
|
137
|
+
*/
|
|
138
|
+
subject?: string;
|
|
139
|
+
}
|
|
140
|
+
export declare namespace FaxSendParams {
|
|
141
|
+
interface Document {
|
|
142
|
+
/**
|
|
143
|
+
* Base64 encoded document content
|
|
144
|
+
*/
|
|
145
|
+
content: string;
|
|
146
|
+
/**
|
|
147
|
+
* MIME type of the document
|
|
148
|
+
*/
|
|
149
|
+
contentType: 'application/pdf' | 'image/tiff' | 'image/tif' | 'image/jpeg' | 'image/jpg' | 'image/png' | 'text/plain';
|
|
150
|
+
/**
|
|
151
|
+
* Optional filename for the document
|
|
152
|
+
*/
|
|
153
|
+
filename?: string;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
export declare namespace Fax {
|
|
157
|
+
export { type FaxListProvidersResponse as FaxListProvidersResponse, type FaxRetrieveStatusResponse as FaxRetrieveStatusResponse, type FaxSendResponse as FaxSendResponse, type FaxSendParams as FaxSendParams, };
|
|
158
|
+
}
|
|
159
|
+
//# sourceMappingURL=fax.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fax.d.ts","sourceRoot":"","sources":["../src/resources/fax.ts"],"names":[],"mappings":"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"}
|
package/resources/fax.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Fax = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
class Fax extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get a list of available fax providers and their configuration status.
|
|
10
|
+
*/
|
|
11
|
+
listProviders(options) {
|
|
12
|
+
return this._client.get('/v1/fax/providers', options);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Retrieve the current status and details of a fax by its ID.
|
|
16
|
+
*/
|
|
17
|
+
retrieveStatus(id, options) {
|
|
18
|
+
return this._client.get((0, path_1.path) `/v1/fax/status/${id}`, options);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Send a fax document to a specified number using the configured fax provider.
|
|
22
|
+
*/
|
|
23
|
+
send(body, options) {
|
|
24
|
+
return this._client.post('/v1/fax/send', { body, ...options });
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.Fax = Fax;
|
|
28
|
+
//# sourceMappingURL=fax.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fax.js","sourceRoot":"","sources":["../src/resources/fax.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,GAAI,SAAQ,sBAAW;IAClC;;OAEG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAAmB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF;AArBD,kBAqBC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
export class Fax extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get a list of available fax providers and their configuration status.
|
|
7
|
+
*/
|
|
8
|
+
listProviders(options) {
|
|
9
|
+
return this._client.get('/v1/fax/providers', options);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve the current status and details of a fax by its ID.
|
|
13
|
+
*/
|
|
14
|
+
retrieveStatus(id, options) {
|
|
15
|
+
return this._client.get(path `/v1/fax/status/${id}`, options);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Send a fax document to a specified number using the configured fax provider.
|
|
19
|
+
*/
|
|
20
|
+
send(body, options) {
|
|
21
|
+
return this._client.post('/v1/fax/send', { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=fax.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fax.mjs","sourceRoot":"","sources":["../src/resources/fax.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC;;OAEG;IACH,aAAa,CAAC,OAAwB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAAmB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Health extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Check the service health and ensure the API is running properly.
|
|
7
|
+
*/
|
|
8
|
+
check(options?: RequestOptions): APIPromise<HealthCheckResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface HealthCheckResponse {
|
|
11
|
+
status: 'ok';
|
|
12
|
+
}
|
|
13
|
+
export declare namespace Health {
|
|
14
|
+
export { type HealthCheckResponse as HealthCheckResponse };
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=health.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"health.d.mts","sourceRoot":"","sources":["../src/resources/health.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGjE;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,IAAI,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC5D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Health extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Check the service health and ensure the API is running properly.
|
|
7
|
+
*/
|
|
8
|
+
check(options?: RequestOptions): APIPromise<HealthCheckResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface HealthCheckResponse {
|
|
11
|
+
status: 'ok';
|
|
12
|
+
}
|
|
13
|
+
export declare namespace Health {
|
|
14
|
+
export { type HealthCheckResponse as HealthCheckResponse };
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=health.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"health.d.ts","sourceRoot":"","sources":["../src/resources/health.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGjE;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,IAAI,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC5D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Health = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Health extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Check the service health and ensure the API is running properly.
|
|
9
|
+
*/
|
|
10
|
+
check(options) {
|
|
11
|
+
return this._client.get('/v1/health', options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.Health = Health;
|
|
15
|
+
//# sourceMappingURL=health.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"health.js","sourceRoot":"","sources":["../src/resources/health.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,KAAK,CAAC,OAAwB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;CACF;AAPD,wBAOC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class Health extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Check the service health and ensure the API is running properly.
|
|
6
|
+
*/
|
|
7
|
+
check(options) {
|
|
8
|
+
return this._client.get('/v1/health', options);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=health.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"health.mjs","sourceRoot":"","sources":["../src/resources/health.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,KAAK,CAAC,OAAwB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;CACF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Database, type DatabaseCheckHealthResponse } from "./database.mjs";
|
|
2
|
+
export { Fax, type FaxListProvidersResponse, type FaxRetrieveStatusResponse, type FaxSendResponse, type FaxSendParams, } from "./fax.mjs";
|
|
3
|
+
export { Health, type HealthCheckResponse } from "./health.mjs";
|
|
4
|
+
export { Providers, type ProviderLookupResponse, type ProviderLookupParams } from "./providers.mjs";
|
|
5
|
+
export { Version, type VersionRetrieveResponse } from "./version.mjs";
|
|
6
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE,KAAK,2BAA2B,EAAE;OAC9C,EACL,GAAG,EACH,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB;OACM,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EAAE,SAAS,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE;OACrE,EAAE,OAAO,EAAE,KAAK,uBAAuB,EAAE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Database, type DatabaseCheckHealthResponse } from "./database.js";
|
|
2
|
+
export { Fax, type FaxListProvidersResponse, type FaxRetrieveStatusResponse, type FaxSendResponse, type FaxSendParams, } from "./fax.js";
|
|
3
|
+
export { Health, type HealthCheckResponse } from "./health.js";
|
|
4
|
+
export { Providers, type ProviderLookupResponse, type ProviderLookupParams } from "./providers.js";
|
|
5
|
+
export { Version, type VersionRetrieveResponse } from "./version.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE,KAAK,2BAA2B,EAAE;OAC9C,EACL,GAAG,EACH,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB;OACM,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE;OACpC,EAAE,SAAS,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE;OACrE,EAAE,OAAO,EAAE,KAAK,uBAAuB,EAAE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Version = exports.Providers = exports.Health = exports.Fax = exports.Database = void 0;
|
|
5
|
+
var database_1 = require("./database.js");
|
|
6
|
+
Object.defineProperty(exports, "Database", { enumerable: true, get: function () { return database_1.Database; } });
|
|
7
|
+
var fax_1 = require("./fax.js");
|
|
8
|
+
Object.defineProperty(exports, "Fax", { enumerable: true, get: function () { return fax_1.Fax; } });
|
|
9
|
+
var health_1 = require("./health.js");
|
|
10
|
+
Object.defineProperty(exports, "Health", { enumerable: true, get: function () { return health_1.Health; } });
|
|
11
|
+
var providers_1 = require("./providers.js");
|
|
12
|
+
Object.defineProperty(exports, "Providers", { enumerable: true, get: function () { return providers_1.Providers; } });
|
|
13
|
+
var version_1 = require("./version.js");
|
|
14
|
+
Object.defineProperty(exports, "Version", { enumerable: true, get: function () { return version_1.Version; } });
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAAwE;AAA/D,oGAAA,QAAQ,OAAA;AACjB,gCAMe;AALb,0FAAA,GAAG,OAAA;AAML,sCAA4D;AAAnD,gGAAA,MAAM,OAAA;AACf,4CAAgG;AAAvF,sGAAA,SAAS,OAAA;AAClB,wCAAkE;AAAzD,kGAAA,OAAO,OAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Database } from "./database.mjs";
|
|
3
|
+
export { Fax, } from "./fax.mjs";
|
|
4
|
+
export { Health } from "./health.mjs";
|
|
5
|
+
export { Providers } from "./providers.mjs";
|
|
6
|
+
export { Version } from "./version.mjs";
|
|
7
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,QAAQ,EAAoC;OAC9C,EACL,GAAG,GAKJ;OACM,EAAE,MAAM,EAA4B;OACpC,EAAE,SAAS,EAA0D;OACrE,EAAE,OAAO,EAAgC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Providers extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Search for healthcare providers by NPI number, name, or location proximity.
|
|
7
|
+
*/
|
|
8
|
+
lookup(query?: ProviderLookupParams | null | undefined, options?: RequestOptions): APIPromise<ProviderLookupResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface ProviderLookupResponse {
|
|
11
|
+
/**
|
|
12
|
+
* Number of providers found
|
|
13
|
+
*/
|
|
14
|
+
count: number;
|
|
15
|
+
/**
|
|
16
|
+
* List of matching providers
|
|
17
|
+
*/
|
|
18
|
+
providers: Array<ProviderLookupResponse.Provider>;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace ProviderLookupResponse {
|
|
21
|
+
interface Provider {
|
|
22
|
+
/**
|
|
23
|
+
* Primary address line
|
|
24
|
+
*/
|
|
25
|
+
address_1: string;
|
|
26
|
+
/**
|
|
27
|
+
* Secondary address line (suite, unit, etc.)
|
|
28
|
+
*/
|
|
29
|
+
address_2: string;
|
|
30
|
+
/**
|
|
31
|
+
* City
|
|
32
|
+
*/
|
|
33
|
+
city: string;
|
|
34
|
+
/**
|
|
35
|
+
* Country code
|
|
36
|
+
*/
|
|
37
|
+
country: string;
|
|
38
|
+
/**
|
|
39
|
+
* Distance in miles from the provided ZIP code
|
|
40
|
+
*/
|
|
41
|
+
distance: number;
|
|
42
|
+
/**
|
|
43
|
+
* Fax number
|
|
44
|
+
*/
|
|
45
|
+
fax_number: string;
|
|
46
|
+
/**
|
|
47
|
+
* Provider first name
|
|
48
|
+
*/
|
|
49
|
+
firstname: string;
|
|
50
|
+
/**
|
|
51
|
+
* Provider last name or organization name
|
|
52
|
+
*/
|
|
53
|
+
lastname: string;
|
|
54
|
+
/**
|
|
55
|
+
* National Provider Identifier (NPI) number
|
|
56
|
+
*/
|
|
57
|
+
npi: string;
|
|
58
|
+
/**
|
|
59
|
+
* Postal/ZIP code
|
|
60
|
+
*/
|
|
61
|
+
postal_code: string;
|
|
62
|
+
/**
|
|
63
|
+
* State or province code
|
|
64
|
+
*/
|
|
65
|
+
state_province: string;
|
|
66
|
+
/**
|
|
67
|
+
* Work phone number
|
|
68
|
+
*/
|
|
69
|
+
work_phone: string;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export interface ProviderLookupParams {
|
|
73
|
+
/**
|
|
74
|
+
* Provider first name
|
|
75
|
+
*/
|
|
76
|
+
firstname?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Provider last name
|
|
79
|
+
*/
|
|
80
|
+
lastname?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Provider NPI number
|
|
83
|
+
*/
|
|
84
|
+
npi?: string;
|
|
85
|
+
/**
|
|
86
|
+
* ZIP code to filter results by proximity
|
|
87
|
+
*/
|
|
88
|
+
zipcode?: string;
|
|
89
|
+
}
|
|
90
|
+
export declare namespace Providers {
|
|
91
|
+
export { type ProviderLookupResponse as ProviderLookupResponse, type ProviderLookupParams as ProviderLookupParams, };
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=providers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.d.mts","sourceRoot":"","sources":["../src/resources/providers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,MAAM,CACJ,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;CAGtC;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC;CACnD;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,QAAQ;QACvB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Providers extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Search for healthcare providers by NPI number, name, or location proximity.
|
|
7
|
+
*/
|
|
8
|
+
lookup(query?: ProviderLookupParams | null | undefined, options?: RequestOptions): APIPromise<ProviderLookupResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface ProviderLookupResponse {
|
|
11
|
+
/**
|
|
12
|
+
* Number of providers found
|
|
13
|
+
*/
|
|
14
|
+
count: number;
|
|
15
|
+
/**
|
|
16
|
+
* List of matching providers
|
|
17
|
+
*/
|
|
18
|
+
providers: Array<ProviderLookupResponse.Provider>;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace ProviderLookupResponse {
|
|
21
|
+
interface Provider {
|
|
22
|
+
/**
|
|
23
|
+
* Primary address line
|
|
24
|
+
*/
|
|
25
|
+
address_1: string;
|
|
26
|
+
/**
|
|
27
|
+
* Secondary address line (suite, unit, etc.)
|
|
28
|
+
*/
|
|
29
|
+
address_2: string;
|
|
30
|
+
/**
|
|
31
|
+
* City
|
|
32
|
+
*/
|
|
33
|
+
city: string;
|
|
34
|
+
/**
|
|
35
|
+
* Country code
|
|
36
|
+
*/
|
|
37
|
+
country: string;
|
|
38
|
+
/**
|
|
39
|
+
* Distance in miles from the provided ZIP code
|
|
40
|
+
*/
|
|
41
|
+
distance: number;
|
|
42
|
+
/**
|
|
43
|
+
* Fax number
|
|
44
|
+
*/
|
|
45
|
+
fax_number: string;
|
|
46
|
+
/**
|
|
47
|
+
* Provider first name
|
|
48
|
+
*/
|
|
49
|
+
firstname: string;
|
|
50
|
+
/**
|
|
51
|
+
* Provider last name or organization name
|
|
52
|
+
*/
|
|
53
|
+
lastname: string;
|
|
54
|
+
/**
|
|
55
|
+
* National Provider Identifier (NPI) number
|
|
56
|
+
*/
|
|
57
|
+
npi: string;
|
|
58
|
+
/**
|
|
59
|
+
* Postal/ZIP code
|
|
60
|
+
*/
|
|
61
|
+
postal_code: string;
|
|
62
|
+
/**
|
|
63
|
+
* State or province code
|
|
64
|
+
*/
|
|
65
|
+
state_province: string;
|
|
66
|
+
/**
|
|
67
|
+
* Work phone number
|
|
68
|
+
*/
|
|
69
|
+
work_phone: string;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export interface ProviderLookupParams {
|
|
73
|
+
/**
|
|
74
|
+
* Provider first name
|
|
75
|
+
*/
|
|
76
|
+
firstname?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Provider last name
|
|
79
|
+
*/
|
|
80
|
+
lastname?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Provider NPI number
|
|
83
|
+
*/
|
|
84
|
+
npi?: string;
|
|
85
|
+
/**
|
|
86
|
+
* ZIP code to filter results by proximity
|
|
87
|
+
*/
|
|
88
|
+
zipcode?: string;
|
|
89
|
+
}
|
|
90
|
+
export declare namespace Providers {
|
|
91
|
+
export { type ProviderLookupResponse as ProviderLookupResponse, type ProviderLookupParams as ProviderLookupParams, };
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../src/resources/providers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,MAAM,CACJ,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;CAGtC;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC;CACnD;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,QAAQ;QACvB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Providers = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Providers extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Search for healthcare providers by NPI number, name, or location proximity.
|
|
9
|
+
*/
|
|
10
|
+
lookup(query = {}, options) {
|
|
11
|
+
return this._client.get('/v1/providers/lookup', { query, ...options });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.Providers = Providers;
|
|
15
|
+
//# sourceMappingURL=providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../src/resources/providers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;OAEG;IACH,MAAM,CACJ,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AAVD,8BAUC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class Providers extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Search for healthcare providers by NPI number, name, or location proximity.
|
|
6
|
+
*/
|
|
7
|
+
lookup(query = {}, options) {
|
|
8
|
+
return this._client.get('/v1/providers/lookup', { query, ...options });
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=providers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.mjs","sourceRoot":"","sources":["../src/resources/providers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,MAAM,CACJ,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Version extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve the current version of the BlueHive API.
|
|
7
|
+
*/
|
|
8
|
+
retrieve(options?: RequestOptions): APIPromise<VersionRetrieveResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface VersionRetrieveResponse {
|
|
11
|
+
version: string;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace Version {
|
|
14
|
+
export { type VersionRetrieveResponse as VersionRetrieveResponse };
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=version.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["../src/resources/version.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGxE;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;CACpE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Version extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve the current version of the BlueHive API.
|
|
7
|
+
*/
|
|
8
|
+
retrieve(options?: RequestOptions): APIPromise<VersionRetrieveResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface VersionRetrieveResponse {
|
|
11
|
+
version: string;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace Version {
|
|
14
|
+
export { type VersionRetrieveResponse as VersionRetrieveResponse };
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/resources/version.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGxE;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;CACpE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Version = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Version extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve the current version of the BlueHive API.
|
|
9
|
+
*/
|
|
10
|
+
retrieve(options) {
|
|
11
|
+
return this._client.get('/v1/version', options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.Version = Version;
|
|
15
|
+
//# sourceMappingURL=version.js.map
|