candidhealth 0.2.0 → 0.3.0
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/Client.d.ts +3 -0
- package/Client.js +11 -6
- package/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/client/Client.js +1 -1
- package/api/resources/commons/types/index.d.ts +0 -1
- package/api/resources/commons/types/index.js +0 -1
- package/api/resources/encounters/resources/v4/client/Client.js +8 -8
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +6 -0
- package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +1 -1
- package/api/resources/encounters/resources/v4/types/IntakeFollowUp.d.ts +1 -1
- package/api/resources/expectedNetworkStatus/client/Client.js +1 -1
- package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/api/resources/index.d.ts +2 -3
- package/api/resources/index.js +3 -4
- package/api/resources/payers/client/Client.d.ts +1 -1
- package/api/resources/payers/client/Client.js +4 -4
- package/api/resources/payers/types/Payer.d.ts +2 -1
- package/api/resources/payers/types/PayerUuid.d.ts +8 -0
- package/api/resources/payers/types/PayerUuid.js +10 -0
- package/api/resources/payers/types/index.d.ts +1 -0
- package/api/resources/payers/types/index.js +1 -0
- package/api/resources/tasks/client/Client.d.ts +18 -0
- package/api/resources/tasks/client/Client.js +18 -0
- package/api/resources/tasks/client/index.d.ts +1 -0
- package/api/resources/tasks/client/index.js +2 -0
- package/api/resources/tasks/index.d.ts +2 -0
- package/api/resources/tasks/index.js +2 -0
- package/api/resources/tasks/resources/index.d.ts +1 -0
- package/api/resources/tasks/resources/index.js +27 -0
- package/api/resources/tasks/resources/v3/client/Client.d.ts +18 -0
- package/api/resources/tasks/resources/v3/client/Client.js +80 -0
- package/api/resources/tasks/resources/v3/client/getActions.d.ts +22 -0
- package/api/resources/tasks/resources/v3/client/getActions.js +47 -0
- package/api/resources/tasks/resources/v3/client/index.d.ts +1 -0
- package/api/resources/tasks/resources/v3/client/index.js +27 -0
- package/api/resources/tasks/resources/v3/index.d.ts +2 -0
- package/api/resources/tasks/resources/v3/index.js +18 -0
- package/api/resources/tasks/resources/v3/types/TaskAction.d.ts +8 -0
- package/api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +10 -0
- package/api/resources/tasks/resources/v3/types/TaskActions.d.ts +7 -0
- package/api/resources/tasks/resources/v3/types/TaskActions.js +5 -0
- package/api/resources/tasks/resources/v3/types/index.d.ts +3 -0
- package/api/resources/tasks/resources/v3/types/index.js +19 -0
- package/api/resources/users/index.d.ts +1 -1
- package/api/resources/users/index.js +1 -1
- package/api/resources/users/resources/index.d.ts +1 -0
- package/api/resources/users/resources/index.js +27 -0
- package/api/resources/users/resources/v2/index.d.ts +1 -0
- package/api/resources/users/{types → resources/v2}/index.js +1 -1
- package/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +6 -0
- package/api/resources/users/resources/v2/types/AuthZeroMetadata.js +5 -0
- package/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +6 -0
- package/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +5 -0
- package/{dist/api/resources/users/types/User.d.ts → api/resources/users/resources/v2/types/HumanUserMetadata.d.ts} +1 -3
- package/api/resources/users/resources/v2/types/HumanUserMetadata.js +5 -0
- package/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +16 -0
- package/api/resources/users/resources/v2/types/IdpUserMetadata.js +5 -0
- package/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +6 -0
- package/api/resources/users/resources/v2/types/MachineUserMetadata.js +5 -0
- package/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +6 -0
- package/api/resources/users/resources/v2/types/OtherIdpMetadata.js +5 -0
- package/api/resources/users/resources/v2/types/UserId.d.ts +8 -0
- package/{dist/api/resources/commons/types/Auth0Id.js → api/resources/users/resources/v2/types/UserId.js} +3 -3
- package/api/resources/users/resources/v2/types/UserMetadata.d.ts +13 -0
- package/api/resources/users/resources/v2/types/UserMetadata.js +5 -0
- package/api/resources/users/resources/v2/types/UserV2.d.ts +11 -0
- package/api/resources/users/resources/v2/types/UserV2.js +5 -0
- package/api/resources/users/resources/v2/types/index.d.ts +9 -0
- package/api/resources/users/resources/v2/types/index.js +25 -0
- package/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +11 -6
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/client/Client.js +1 -1
- package/dist/api/resources/commons/types/index.d.ts +0 -1
- package/dist/api/resources/commons/types/index.js +0 -1
- package/dist/api/resources/encounters/resources/v4/client/Client.js +8 -8
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +6 -0
- package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +1 -1
- package/dist/api/resources/encounters/resources/v4/types/IntakeFollowUp.d.ts +1 -1
- package/dist/api/resources/expectedNetworkStatus/client/Client.js +1 -1
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/index.d.ts +2 -3
- package/dist/api/resources/index.js +3 -4
- package/dist/api/resources/payers/client/Client.d.ts +1 -1
- package/dist/api/resources/payers/client/Client.js +4 -4
- package/dist/api/resources/payers/types/Payer.d.ts +2 -1
- package/dist/api/resources/payers/types/PayerUuid.d.ts +8 -0
- package/dist/api/resources/payers/types/PayerUuid.js +10 -0
- package/dist/api/resources/payers/types/index.d.ts +1 -0
- package/dist/api/resources/payers/types/index.js +1 -0
- package/dist/api/resources/tasks/client/Client.d.ts +18 -0
- package/dist/api/resources/tasks/client/Client.js +18 -0
- package/dist/api/resources/tasks/client/index.d.ts +1 -0
- package/dist/api/resources/tasks/client/index.js +2 -0
- package/dist/api/resources/tasks/index.d.ts +2 -0
- package/dist/api/resources/tasks/index.js +2 -0
- package/dist/api/resources/tasks/resources/index.d.ts +1 -0
- package/dist/api/resources/tasks/resources/index.js +27 -0
- package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +18 -0
- package/dist/api/resources/tasks/resources/v3/client/Client.js +80 -0
- package/dist/api/resources/tasks/resources/v3/client/getActions.d.ts +22 -0
- package/dist/api/resources/tasks/resources/v3/client/getActions.js +47 -0
- package/dist/api/resources/tasks/resources/v3/client/index.d.ts +1 -0
- package/dist/api/resources/tasks/resources/v3/client/index.js +27 -0
- package/dist/api/resources/tasks/resources/v3/index.d.ts +2 -0
- package/dist/api/resources/tasks/resources/v3/index.js +18 -0
- package/dist/api/resources/tasks/resources/v3/types/TaskAction.d.ts +8 -0
- package/dist/api/resources/tasks/resources/v3/types/TaskAction.js +5 -0
- package/dist/api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +10 -0
- package/dist/api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.js +5 -0
- package/dist/api/resources/tasks/resources/v3/types/TaskActions.d.ts +7 -0
- package/dist/api/resources/tasks/resources/v3/types/TaskActions.js +5 -0
- package/dist/api/resources/tasks/resources/v3/types/index.d.ts +3 -0
- package/dist/api/resources/tasks/resources/v3/types/index.js +19 -0
- package/dist/api/resources/users/index.d.ts +1 -1
- package/dist/api/resources/users/index.js +1 -1
- package/dist/api/resources/users/resources/index.d.ts +1 -0
- package/dist/api/resources/users/resources/index.js +27 -0
- package/dist/api/resources/users/resources/v2/index.d.ts +1 -0
- package/dist/api/resources/users/{types → resources/v2}/index.js +1 -1
- package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +6 -0
- package/dist/api/resources/users/resources/v2/types/AuthZeroMetadata.js +5 -0
- package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +6 -0
- package/dist/api/resources/users/resources/v2/types/GoogleAppsMetadata.js +5 -0
- package/{api/resources/users/types/User.d.ts → dist/api/resources/users/resources/v2/types/HumanUserMetadata.d.ts} +1 -3
- package/dist/api/resources/users/resources/v2/types/HumanUserMetadata.js +5 -0
- package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.d.ts +16 -0
- package/dist/api/resources/users/resources/v2/types/IdpUserMetadata.js +5 -0
- package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.d.ts +6 -0
- package/dist/api/resources/users/resources/v2/types/MachineUserMetadata.js +5 -0
- package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +6 -0
- package/dist/api/resources/users/resources/v2/types/OtherIdpMetadata.js +5 -0
- package/dist/api/resources/users/resources/v2/types/UserId.d.ts +8 -0
- package/{api/resources/commons/types/Auth0Id.js → dist/api/resources/users/resources/v2/types/UserId.js} +3 -3
- package/dist/api/resources/users/resources/v2/types/UserMetadata.d.ts +13 -0
- package/dist/api/resources/users/resources/v2/types/UserMetadata.js +5 -0
- package/dist/api/resources/users/resources/v2/types/UserV2.d.ts +11 -0
- package/dist/api/resources/users/resources/v2/types/UserV2.js +5 -0
- package/dist/api/resources/users/resources/v2/types/index.d.ts +9 -0
- package/dist/api/resources/users/resources/v2/types/index.js +25 -0
- package/dist/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
- package/dist/serialization/resources/commons/types/index.d.ts +0 -1
- package/dist/serialization/resources/commons/types/index.js +0 -1
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +6 -0
- package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +8 -0
- package/dist/serialization/resources/encounters/resources/v4/types/IntakeFollowUp.d.ts +1 -1
- package/dist/serialization/resources/encounters/resources/v4/types/IntakeFollowUp.js +1 -1
- package/dist/serialization/resources/index.d.ts +2 -3
- package/dist/serialization/resources/index.js +3 -4
- package/dist/serialization/resources/payers/types/Payer.d.ts +1 -1
- package/dist/serialization/resources/payers/types/Payer.js +1 -1
- package/dist/serialization/resources/{commons/types/Auth0Id.d.ts → payers/types/PayerUuid.d.ts} +2 -2
- package/{serialization/resources/commons/types/Auth0Id.js → dist/serialization/resources/payers/types/PayerUuid.js} +3 -3
- package/dist/serialization/resources/payers/types/index.d.ts +1 -0
- package/dist/serialization/resources/payers/types/index.js +1 -0
- package/dist/serialization/resources/tasks/index.d.ts +1 -0
- package/dist/serialization/resources/tasks/index.js +1 -0
- package/dist/serialization/resources/tasks/resources/index.d.ts +1 -0
- package/dist/serialization/resources/tasks/resources/index.js +27 -0
- package/dist/serialization/resources/tasks/resources/v3/index.d.ts +1 -0
- package/{serialization/resources/users/types → dist/serialization/resources/tasks/resources/v3}/index.js +1 -1
- package/dist/serialization/resources/tasks/resources/v3/types/TaskAction.d.ts +13 -0
- package/dist/serialization/resources/tasks/resources/v3/types/TaskAction.js +34 -0
- package/dist/serialization/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +13 -0
- package/dist/serialization/resources/tasks/resources/v3/types/TaskActionExecutionMethod.js +38 -0
- package/dist/serialization/resources/tasks/resources/v3/types/TaskActions.d.ts +12 -0
- package/dist/serialization/resources/tasks/resources/v3/types/TaskActions.js +33 -0
- package/dist/serialization/resources/tasks/resources/v3/types/index.d.ts +3 -0
- package/dist/serialization/resources/tasks/resources/v3/types/index.js +19 -0
- package/dist/serialization/resources/users/index.d.ts +1 -1
- package/dist/serialization/resources/users/index.js +1 -1
- package/dist/serialization/resources/users/resources/index.d.ts +1 -0
- package/dist/serialization/resources/users/resources/index.js +27 -0
- package/dist/serialization/resources/users/resources/v2/index.d.ts +1 -0
- package/dist/serialization/resources/users/{types → resources/v2}/index.js +1 -1
- package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +12 -0
- package/dist/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js +33 -0
- package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +12 -0
- package/dist/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +33 -0
- package/dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +13 -0
- package/{serialization/resources/users/types/User.js → dist/serialization/resources/users/resources/v2/types/HumanUserMetadata.js} +3 -4
- package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +19 -0
- package/dist/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +40 -0
- package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +12 -0
- package/dist/serialization/resources/users/resources/v2/types/MachineUserMetadata.js +33 -0
- package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +12 -0
- package/dist/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +33 -0
- package/dist/serialization/resources/users/resources/v2/types/UserId.d.ts +10 -0
- package/dist/serialization/resources/users/resources/v2/types/UserId.js +35 -0
- package/dist/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +16 -0
- package/dist/serialization/resources/users/resources/v2/types/UserMetadata.js +39 -0
- package/dist/serialization/resources/users/resources/v2/types/UserV2.d.ts +16 -0
- package/dist/serialization/resources/users/resources/v2/types/UserV2.js +37 -0
- package/dist/serialization/resources/users/resources/v2/types/index.d.ts +9 -0
- package/dist/serialization/resources/users/resources/v2/types/index.js +25 -0
- package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
- package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +1 -1
- package/package.json +1 -1
- package/serialization/resources/commons/types/index.d.ts +0 -1
- package/serialization/resources/commons/types/index.js +0 -1
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +6 -0
- package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +8 -0
- package/serialization/resources/encounters/resources/v4/types/IntakeFollowUp.d.ts +1 -1
- package/serialization/resources/encounters/resources/v4/types/IntakeFollowUp.js +1 -1
- package/serialization/resources/index.d.ts +2 -3
- package/serialization/resources/index.js +3 -4
- package/serialization/resources/payers/types/Payer.d.ts +1 -1
- package/serialization/resources/payers/types/Payer.js +1 -1
- package/serialization/resources/{commons/types/Auth0Id.d.ts → payers/types/PayerUuid.d.ts} +2 -2
- package/{dist/serialization/resources/commons/types/Auth0Id.js → serialization/resources/payers/types/PayerUuid.js} +3 -3
- package/serialization/resources/payers/types/index.d.ts +1 -0
- package/serialization/resources/payers/types/index.js +1 -0
- package/serialization/resources/tasks/index.d.ts +1 -0
- package/serialization/resources/tasks/index.js +1 -0
- package/serialization/resources/tasks/resources/index.d.ts +1 -0
- package/serialization/resources/tasks/resources/index.js +27 -0
- package/serialization/resources/tasks/resources/v3/index.d.ts +1 -0
- package/serialization/resources/tasks/resources/v3/index.js +17 -0
- package/serialization/resources/tasks/resources/v3/types/TaskAction.d.ts +13 -0
- package/serialization/resources/tasks/resources/v3/types/TaskAction.js +34 -0
- package/serialization/resources/tasks/resources/v3/types/TaskActionExecutionMethod.d.ts +13 -0
- package/serialization/resources/tasks/resources/v3/types/TaskActionExecutionMethod.js +38 -0
- package/serialization/resources/tasks/resources/v3/types/TaskActions.d.ts +12 -0
- package/serialization/resources/tasks/resources/v3/types/TaskActions.js +33 -0
- package/serialization/resources/tasks/resources/v3/types/index.d.ts +3 -0
- package/serialization/resources/tasks/resources/v3/types/index.js +19 -0
- package/serialization/resources/users/index.d.ts +1 -1
- package/serialization/resources/users/index.js +1 -1
- package/serialization/resources/users/resources/index.d.ts +1 -0
- package/serialization/resources/users/resources/index.js +27 -0
- package/serialization/resources/users/resources/v2/index.d.ts +1 -0
- package/serialization/resources/users/resources/v2/index.js +17 -0
- package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.d.ts +12 -0
- package/serialization/resources/users/resources/v2/types/AuthZeroMetadata.js +33 -0
- package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.d.ts +12 -0
- package/serialization/resources/users/resources/v2/types/GoogleAppsMetadata.js +33 -0
- package/serialization/resources/users/resources/v2/types/HumanUserMetadata.d.ts +13 -0
- package/{dist/serialization/resources/users/types/User.js → serialization/resources/users/resources/v2/types/HumanUserMetadata.js} +3 -4
- package/serialization/resources/users/resources/v2/types/IdpUserMetadata.d.ts +19 -0
- package/serialization/resources/users/resources/v2/types/IdpUserMetadata.js +40 -0
- package/serialization/resources/users/resources/v2/types/MachineUserMetadata.d.ts +12 -0
- package/serialization/resources/users/resources/v2/types/MachineUserMetadata.js +33 -0
- package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.d.ts +12 -0
- package/serialization/resources/users/resources/v2/types/OtherIdpMetadata.js +33 -0
- package/serialization/resources/users/resources/v2/types/UserId.d.ts +10 -0
- package/serialization/resources/users/resources/v2/types/UserId.js +35 -0
- package/serialization/resources/users/resources/v2/types/UserMetadata.d.ts +16 -0
- package/serialization/resources/users/resources/v2/types/UserMetadata.js +39 -0
- package/serialization/resources/users/resources/v2/types/UserV2.d.ts +16 -0
- package/serialization/resources/users/resources/v2/types/UserV2.js +37 -0
- package/serialization/resources/users/resources/v2/types/index.d.ts +9 -0
- package/serialization/resources/users/resources/v2/types/index.js +25 -0
- package/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +1 -1
- package/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +1 -1
- package/api/resources/commons/types/Auth0Id.d.ts +0 -8
- package/api/resources/users/types/index.d.ts +0 -1
- package/dist/api/resources/commons/types/Auth0Id.d.ts +0 -8
- package/dist/api/resources/users/types/index.d.ts +0 -1
- package/dist/serialization/resources/users/types/User.d.ts +0 -14
- package/dist/serialization/resources/users/types/index.d.ts +0 -1
- package/serialization/resources/users/types/User.d.ts +0 -14
- package/serialization/resources/users/types/index.d.ts +0 -1
- /package/api/resources/{users/types/User.js → tasks/resources/v3/types/TaskAction.js} +0 -0
- /package/{dist/api/resources/users/types/User.js → api/resources/tasks/resources/v3/types/TaskActionExecutionMethod.js} +0 -0
package/Client.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import * as core from "./core";
|
|
|
6
6
|
import { Auth } from "./api/resources/auth/client/Client";
|
|
7
7
|
import { Encounters } from "./api/resources/encounters/client/Client";
|
|
8
8
|
import { Guarantor } from "./api/resources/guarantor/client/Client";
|
|
9
|
+
import { Tasks } from "./api/resources/tasks/client/Client";
|
|
9
10
|
import { BillingNotes } from "./api/resources/billingNotes/client/Client";
|
|
10
11
|
import { ExpectedNetworkStatus } from "./api/resources/expectedNetworkStatus/client/Client";
|
|
11
12
|
import { Payers } from "./api/resources/payers/client/Client";
|
|
@@ -24,6 +25,8 @@ export declare class CandidApiClient {
|
|
|
24
25
|
get encounters(): Encounters;
|
|
25
26
|
protected _guarantor: Guarantor | undefined;
|
|
26
27
|
get guarantor(): Guarantor;
|
|
28
|
+
protected _tasks: Tasks | undefined;
|
|
29
|
+
get tasks(): Tasks;
|
|
27
30
|
protected _billingNotes: BillingNotes | undefined;
|
|
28
31
|
get billingNotes(): BillingNotes;
|
|
29
32
|
protected _expectedNetworkStatus: ExpectedNetworkStatus | undefined;
|
package/Client.js
CHANGED
|
@@ -7,9 +7,10 @@ exports.CandidApiClient = void 0;
|
|
|
7
7
|
const Client_1 = require("./api/resources/auth/client/Client");
|
|
8
8
|
const Client_2 = require("./api/resources/encounters/client/Client");
|
|
9
9
|
const Client_3 = require("./api/resources/guarantor/client/Client");
|
|
10
|
-
const Client_4 = require("./api/resources/
|
|
11
|
-
const Client_5 = require("./api/resources/
|
|
12
|
-
const Client_6 = require("./api/resources/
|
|
10
|
+
const Client_4 = require("./api/resources/tasks/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/billingNotes/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/expectedNetworkStatus/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/payers/client/Client");
|
|
13
14
|
class CandidApiClient {
|
|
14
15
|
options;
|
|
15
16
|
constructor(options) {
|
|
@@ -27,17 +28,21 @@ class CandidApiClient {
|
|
|
27
28
|
get guarantor() {
|
|
28
29
|
return (this._guarantor ??= new Client_3.Guarantor(this.options));
|
|
29
30
|
}
|
|
31
|
+
_tasks;
|
|
32
|
+
get tasks() {
|
|
33
|
+
return (this._tasks ??= new Client_4.Tasks(this.options));
|
|
34
|
+
}
|
|
30
35
|
_billingNotes;
|
|
31
36
|
get billingNotes() {
|
|
32
|
-
return (this._billingNotes ??= new
|
|
37
|
+
return (this._billingNotes ??= new Client_5.BillingNotes(this.options));
|
|
33
38
|
}
|
|
34
39
|
_expectedNetworkStatus;
|
|
35
40
|
get expectedNetworkStatus() {
|
|
36
|
-
return (this._expectedNetworkStatus ??= new
|
|
41
|
+
return (this._expectedNetworkStatus ??= new Client_6.ExpectedNetworkStatus(this.options));
|
|
37
42
|
}
|
|
38
43
|
_payers;
|
|
39
44
|
get payers() {
|
|
40
|
-
return (this._payers ??= new
|
|
45
|
+
return (this._payers ??= new Client_7.Payers(this.options));
|
|
41
46
|
}
|
|
42
47
|
}
|
|
43
48
|
exports.CandidApiClient = CandidApiClient;
|
|
@@ -48,7 +48,7 @@ class V2 {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.
|
|
51
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
|
|
@@ -48,7 +48,7 @@ class BillingNotes {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.
|
|
51
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.StandaloneBillingNoteCreate.jsonOrThrow(request, {
|
|
@@ -20,7 +20,6 @@ __exportStar(require("./ClaimId"), exports);
|
|
|
20
20
|
__exportStar(require("./ServiceLineId"), exports);
|
|
21
21
|
__exportStar(require("./PatientExternalId"), exports);
|
|
22
22
|
__exportStar(require("./EncounterExternalId"), exports);
|
|
23
|
-
__exportStar(require("./Auth0Id"), exports);
|
|
24
23
|
__exportStar(require("./Npi"), exports);
|
|
25
24
|
__exportStar(require("./WorkQueueId"), exports);
|
|
26
25
|
__exportStar(require("./LinkUrl"), exports);
|
|
@@ -97,7 +97,7 @@ class V4 {
|
|
|
97
97
|
Authorization: await this._getAuthorizationHeader(),
|
|
98
98
|
"X-Fern-Language": "JavaScript",
|
|
99
99
|
"X-Fern-SDK-Name": "candidhealth",
|
|
100
|
-
"X-Fern-SDK-Version": "0.
|
|
100
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
101
101
|
},
|
|
102
102
|
contentType: "application/json",
|
|
103
103
|
queryParameters: _queryParams,
|
|
@@ -127,7 +127,7 @@ class V4 {
|
|
|
127
127
|
Authorization: await this._getAuthorizationHeader(),
|
|
128
128
|
"X-Fern-Language": "JavaScript",
|
|
129
129
|
"X-Fern-SDK-Name": "candidhealth",
|
|
130
|
-
"X-Fern-SDK-Version": "0.
|
|
130
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
131
131
|
},
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
timeoutMs: 60000,
|
|
@@ -156,7 +156,7 @@ class V4 {
|
|
|
156
156
|
Authorization: await this._getAuthorizationHeader(),
|
|
157
157
|
"X-Fern-Language": "JavaScript",
|
|
158
158
|
"X-Fern-SDK-Name": "candidhealth",
|
|
159
|
-
"X-Fern-SDK-Version": "0.
|
|
159
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
160
160
|
},
|
|
161
161
|
contentType: "application/json",
|
|
162
162
|
body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
|
|
@@ -202,7 +202,7 @@ class V4 {
|
|
|
202
202
|
Authorization: await this._getAuthorizationHeader(),
|
|
203
203
|
"X-Fern-Language": "JavaScript",
|
|
204
204
|
"X-Fern-SDK-Name": "candidhealth",
|
|
205
|
-
"X-Fern-SDK-Version": "0.
|
|
205
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
206
206
|
},
|
|
207
207
|
contentType: "application/json",
|
|
208
208
|
body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
|
|
@@ -248,7 +248,7 @@ class V4 {
|
|
|
248
248
|
Authorization: await this._getAuthorizationHeader(),
|
|
249
249
|
"X-Fern-Language": "JavaScript",
|
|
250
250
|
"X-Fern-SDK-Name": "candidhealth",
|
|
251
|
-
"X-Fern-SDK-Version": "0.
|
|
251
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
252
252
|
},
|
|
253
253
|
contentType: "application/json",
|
|
254
254
|
timeoutMs: 60000,
|
|
@@ -277,7 +277,7 @@ class V4 {
|
|
|
277
277
|
Authorization: await this._getAuthorizationHeader(),
|
|
278
278
|
"X-Fern-Language": "JavaScript",
|
|
279
279
|
"X-Fern-SDK-Name": "candidhealth",
|
|
280
|
-
"X-Fern-SDK-Version": "0.
|
|
280
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
281
281
|
},
|
|
282
282
|
contentType: "application/json",
|
|
283
283
|
timeoutMs: 60000,
|
|
@@ -309,7 +309,7 @@ class V4 {
|
|
|
309
309
|
Authorization: await this._getAuthorizationHeader(),
|
|
310
310
|
"X-Fern-Language": "JavaScript",
|
|
311
311
|
"X-Fern-SDK-Name": "candidhealth",
|
|
312
|
-
"X-Fern-SDK-Version": "0.
|
|
312
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
313
313
|
},
|
|
314
314
|
contentType: "application/json",
|
|
315
315
|
timeoutMs: 60000,
|
|
@@ -338,7 +338,7 @@ class V4 {
|
|
|
338
338
|
Authorization: await this._getAuthorizationHeader(),
|
|
339
339
|
"X-Fern-Language": "JavaScript",
|
|
340
340
|
"X-Fern-SDK-Name": "candidhealth",
|
|
341
|
-
"X-Fern-SDK-Version": "0.
|
|
341
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
342
342
|
},
|
|
343
343
|
contentType: "application/json",
|
|
344
344
|
timeoutMs: 60000,
|
|
@@ -37,4 +37,10 @@ export interface EncounterUpdate {
|
|
|
37
37
|
*
|
|
38
38
|
*/
|
|
39
39
|
guarantorId?: CandidApi.guarantor.v1.GuarantorId;
|
|
40
|
+
providerAcceptsAssignment?: boolean;
|
|
41
|
+
benefitsAssignedToProvider?: boolean;
|
|
42
|
+
synchronicity?: CandidApi.encounters.v4.SynchronicityType;
|
|
43
|
+
placeOfServiceCode?: CandidApi.FacilityTypeCode;
|
|
44
|
+
appointmentType?: string;
|
|
45
|
+
endDateOfService?: CandidApi.Date_;
|
|
40
46
|
}
|
|
@@ -50,7 +50,7 @@ export interface EncounterBase {
|
|
|
50
50
|
*/
|
|
51
51
|
providerAcceptsAssignment: boolean;
|
|
52
52
|
/**
|
|
53
|
-
* Human-readable description of the appointment
|
|
53
|
+
* Human-readable description of the appointment type (ex: "Acupuncture - Headaches")
|
|
54
54
|
*
|
|
55
55
|
*/
|
|
56
56
|
appointmentType?: string;
|
|
@@ -48,7 +48,7 @@ class ExpectedNetworkStatus {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.
|
|
51
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
|
|
@@ -48,7 +48,7 @@ class V1 {
|
|
|
48
48
|
Authorization: await this._getAuthorizationHeader(),
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
-
"X-Fern-SDK-Version": "0.
|
|
51
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
52
52
|
},
|
|
53
53
|
contentType: "application/json",
|
|
54
54
|
body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
|
|
@@ -80,7 +80,7 @@ class V1 {
|
|
|
80
80
|
Authorization: await this._getAuthorizationHeader(),
|
|
81
81
|
"X-Fern-Language": "JavaScript",
|
|
82
82
|
"X-Fern-SDK-Name": "candidhealth",
|
|
83
|
-
"X-Fern-SDK-Version": "0.
|
|
83
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
84
84
|
},
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
timeoutMs: 60000,
|
|
@@ -109,7 +109,7 @@ class V1 {
|
|
|
109
109
|
Authorization: await this._getAuthorizationHeader(),
|
|
110
110
|
"X-Fern-Language": "JavaScript",
|
|
111
111
|
"X-Fern-SDK-Name": "candidhealth",
|
|
112
|
-
"X-Fern-SDK-Version": "0.
|
|
112
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
113
113
|
},
|
|
114
114
|
contentType: "application/json",
|
|
115
115
|
body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
|
package/api/resources/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export * as encounters from "./encounters";
|
|
|
4
4
|
export * as guarantor from "./guarantor";
|
|
5
5
|
export * as organizationProviders from "./organizationProviders";
|
|
6
6
|
export * as patientPayments from "./patientPayments";
|
|
7
|
+
export * as tasks from "./tasks";
|
|
8
|
+
export * as users from "./users";
|
|
7
9
|
export * as workQueues from "./workQueues";
|
|
8
10
|
export * as billingNotes from "./billingNotes";
|
|
9
11
|
export * from "./billingNotes/types";
|
|
@@ -35,10 +37,7 @@ export * as serviceLines from "./serviceLines";
|
|
|
35
37
|
export * from "./serviceLines/types";
|
|
36
38
|
export * as tags from "./tags";
|
|
37
39
|
export * from "./tags/types";
|
|
38
|
-
export * as tasks from "./tasks";
|
|
39
40
|
export * from "./tasks/types";
|
|
40
|
-
export * as users from "./users";
|
|
41
|
-
export * from "./users/types";
|
|
42
41
|
export * from "./billingNotes/client/requests";
|
|
43
42
|
export * from "./expectedNetworkStatus/client/requests";
|
|
44
43
|
export * from "./payers/client/requests";
|
package/api/resources/index.js
CHANGED
|
@@ -26,13 +26,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.tags = exports.serviceLines = exports.serviceFacility = exports.payers = exports.invoices = exports.insuranceCard = exports.individual = exports.expectedNetworkStatus = exports.era = exports.diagnoses = exports.credentialing = exports.contracts = exports.commons = exports.claims = exports.billingNotes = exports.workQueues = exports.users = exports.tasks = exports.patientPayments = exports.organizationProviders = exports.guarantor = exports.encounters = exports.encounterProviders = exports.auth = void 0;
|
|
30
30
|
exports.auth = __importStar(require("./auth"));
|
|
31
31
|
exports.encounterProviders = __importStar(require("./encounterProviders"));
|
|
32
32
|
exports.encounters = __importStar(require("./encounters"));
|
|
33
33
|
exports.guarantor = __importStar(require("./guarantor"));
|
|
34
34
|
exports.organizationProviders = __importStar(require("./organizationProviders"));
|
|
35
35
|
exports.patientPayments = __importStar(require("./patientPayments"));
|
|
36
|
+
exports.tasks = __importStar(require("./tasks"));
|
|
37
|
+
exports.users = __importStar(require("./users"));
|
|
36
38
|
exports.workQueues = __importStar(require("./workQueues"));
|
|
37
39
|
exports.billingNotes = __importStar(require("./billingNotes"));
|
|
38
40
|
__exportStar(require("./billingNotes/types"), exports);
|
|
@@ -64,10 +66,7 @@ exports.serviceLines = __importStar(require("./serviceLines"));
|
|
|
64
66
|
__exportStar(require("./serviceLines/types"), exports);
|
|
65
67
|
exports.tags = __importStar(require("./tags"));
|
|
66
68
|
__exportStar(require("./tags/types"), exports);
|
|
67
|
-
exports.tasks = __importStar(require("./tasks"));
|
|
68
69
|
__exportStar(require("./tasks/types"), exports);
|
|
69
|
-
exports.users = __importStar(require("./users"));
|
|
70
|
-
__exportStar(require("./users/types"), exports);
|
|
71
70
|
__exportStar(require("./billingNotes/client/requests"), exports);
|
|
72
71
|
__exportStar(require("./expectedNetworkStatus/client/requests"), exports);
|
|
73
72
|
__exportStar(require("./payers/client/requests"), exports);
|
|
@@ -13,7 +13,7 @@ export declare namespace Payers {
|
|
|
13
13
|
export declare class Payers {
|
|
14
14
|
protected readonly options: Payers.Options;
|
|
15
15
|
constructor(options: Payers.Options);
|
|
16
|
-
get(payerUuid:
|
|
16
|
+
get(payerUuid: CandidApi.PayerUuid): Promise<core.APIResponse<CandidApi.Payer, CandidApi.payers.get.Error>>;
|
|
17
17
|
getAll(request?: CandidApi.GetAllPayersRequest): Promise<core.APIResponse<CandidApi.PayerPage, CandidApi.payers.getAll.Error>>;
|
|
18
18
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
19
19
|
}
|
|
@@ -33,8 +33,8 @@ exports.Payers = void 0;
|
|
|
33
33
|
const environments = __importStar(require("../../../../environments"));
|
|
34
34
|
const core = __importStar(require("../../../../core"));
|
|
35
35
|
const CandidApi = __importStar(require("../../.."));
|
|
36
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
37
36
|
const serializers = __importStar(require("../../../../serialization"));
|
|
37
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
38
38
|
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
|
39
39
|
class Payers {
|
|
40
40
|
options;
|
|
@@ -43,13 +43,13 @@ class Payers {
|
|
|
43
43
|
}
|
|
44
44
|
async get(payerUuid) {
|
|
45
45
|
const _response = await core.fetcher({
|
|
46
|
-
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/payers/v3/${payerUuid}`),
|
|
46
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/payers/v3/${await serializers.PayerUuid.jsonOrThrow(payerUuid)}`),
|
|
47
47
|
method: "GET",
|
|
48
48
|
headers: {
|
|
49
49
|
Authorization: await this._getAuthorizationHeader(),
|
|
50
50
|
"X-Fern-Language": "JavaScript",
|
|
51
51
|
"X-Fern-SDK-Name": "candidhealth",
|
|
52
|
-
"X-Fern-SDK-Version": "0.
|
|
52
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
53
53
|
},
|
|
54
54
|
contentType: "application/json",
|
|
55
55
|
timeoutMs: 60000,
|
|
@@ -89,7 +89,7 @@ class Payers {
|
|
|
89
89
|
Authorization: await this._getAuthorizationHeader(),
|
|
90
90
|
"X-Fern-Language": "JavaScript",
|
|
91
91
|
"X-Fern-SDK-Name": "candidhealth",
|
|
92
|
-
"X-Fern-SDK-Version": "0.
|
|
92
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
93
93
|
},
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
queryParameters: _queryParams,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as CandidApi from "../../..";
|
|
4
5
|
export interface Payer {
|
|
5
6
|
/** Auto-generated ID set on creation */
|
|
6
|
-
payerUuid
|
|
7
|
+
payerUuid: CandidApi.PayerUuid;
|
|
7
8
|
/** The primary national payer ID of the payer */
|
|
8
9
|
payerId: string;
|
|
9
10
|
/** The primary display name of the payer */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PayerUuid = void 0;
|
|
7
|
+
function PayerUuid(value) {
|
|
8
|
+
return value;
|
|
9
|
+
}
|
|
10
|
+
exports.PayerUuid = PayerUuid;
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./PayerUuid"), exports);
|
|
17
18
|
__exportStar(require("./PayerPage"), exports);
|
|
18
19
|
__exportStar(require("./Payer"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import { V3 } from "../resources/v3/client/Client";
|
|
7
|
+
export declare namespace Tasks {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: environments.CandidApiEnvironment | string;
|
|
10
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export declare class Tasks {
|
|
14
|
+
protected readonly options: Tasks.Options;
|
|
15
|
+
constructor(options: Tasks.Options);
|
|
16
|
+
protected _v3: V3 | undefined;
|
|
17
|
+
get v3(): V3;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Tasks = void 0;
|
|
7
|
+
const Client_1 = require("../resources/v3/client/Client");
|
|
8
|
+
class Tasks {
|
|
9
|
+
options;
|
|
10
|
+
constructor(options) {
|
|
11
|
+
this.options = options;
|
|
12
|
+
}
|
|
13
|
+
_v3;
|
|
14
|
+
get v3() {
|
|
15
|
+
return (this._v3 ??= new Client_1.V3(this.options));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Tasks = Tasks;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -14,4 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
17
18
|
__exportStar(require("./types"), exports);
|
|
19
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as v3 from "./v3";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.v3 = void 0;
|
|
27
|
+
exports.v3 = __importStar(require("./v3"));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
import * as CandidApi from "../../../../..";
|
|
7
|
+
export declare namespace V3 {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: environments.CandidApiEnvironment | string;
|
|
10
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export declare class V3 {
|
|
14
|
+
protected readonly options: V3.Options;
|
|
15
|
+
constructor(options: V3.Options);
|
|
16
|
+
getActions(taskId: CandidApi.TaskId): Promise<core.APIResponse<CandidApi.tasks.v3.TaskActions, CandidApi.tasks.v3.getActions.Error>>;
|
|
17
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.V3 = void 0;
|
|
33
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
34
|
+
const core = __importStar(require("../../../../../../core"));
|
|
35
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
36
|
+
const serializers = __importStar(require("../../../../../../serialization"));
|
|
37
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
38
|
+
class V3 {
|
|
39
|
+
options;
|
|
40
|
+
constructor(options) {
|
|
41
|
+
this.options = options;
|
|
42
|
+
}
|
|
43
|
+
async getActions(taskId) {
|
|
44
|
+
const _response = await core.fetcher({
|
|
45
|
+
url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, `/api/tasks/v3/${await serializers.TaskId.jsonOrThrow(taskId)}/actions`),
|
|
46
|
+
method: "GET",
|
|
47
|
+
headers: {
|
|
48
|
+
Authorization: await this._getAuthorizationHeader(),
|
|
49
|
+
"X-Fern-Language": "JavaScript",
|
|
50
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
51
|
+
"X-Fern-SDK-Version": "0.3.0",
|
|
52
|
+
},
|
|
53
|
+
contentType: "application/json",
|
|
54
|
+
timeoutMs: 60000,
|
|
55
|
+
});
|
|
56
|
+
if (_response.ok) {
|
|
57
|
+
return {
|
|
58
|
+
ok: true,
|
|
59
|
+
body: await serializers.tasks.v3.TaskActions.parseOrThrow(_response.body, {
|
|
60
|
+
unrecognizedObjectKeys: "passthrough",
|
|
61
|
+
allowUnrecognizedUnionMembers: true,
|
|
62
|
+
allowUnrecognizedEnumValues: true,
|
|
63
|
+
breadcrumbsPrefix: ["response"],
|
|
64
|
+
}),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
ok: false,
|
|
69
|
+
error: CandidApi.tasks.v3.getActions.Error._unknown(_response.error),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
async _getAuthorizationHeader() {
|
|
73
|
+
const bearer = await core.Supplier.get(this.options.token);
|
|
74
|
+
if (bearer != null) {
|
|
75
|
+
return `Bearer ${bearer}`;
|
|
76
|
+
}
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.V3 = V3;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../..";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.tasks.v3.getActions.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface _Unknown extends _Utils {
|
|
9
|
+
errorName: void;
|
|
10
|
+
content: core.Fetcher.Error;
|
|
11
|
+
}
|
|
12
|
+
interface _Utils {
|
|
13
|
+
_visit: <_Result>(visitor: CandidApi.tasks.v3.getActions.Error._Visitor<_Result>) => _Result;
|
|
14
|
+
}
|
|
15
|
+
interface _Visitor<_Result> {
|
|
16
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare const Error: {
|
|
20
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.tasks.v3.getActions.Error._Unknown;
|
|
21
|
+
readonly _visit: <_Result>(value: CandidApi.tasks.v3.getActions.Error, visitor: CandidApi.tasks.v3.getActions.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../.."));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
_unknown: (fetcherError) => {
|
|
33
|
+
return {
|
|
34
|
+
errorName: undefined,
|
|
35
|
+
content: fetcherError,
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.tasks.v3.getActions.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_visit: (value, visitor) => {
|
|
42
|
+
switch (value.errorName) {
|
|
43
|
+
default:
|
|
44
|
+
return visitor._other(value);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
};
|