@healthcloudai/hc-sdk 0.6.0 → 0.7.1
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/README.md +121 -159
- package/dist/index.cjs +1610 -1480
- package/dist/index.d.cts +7872 -1906
- package/dist/index.d.ts +7872 -1906
- package/dist/index.js +1606 -1478
- package/package.json +8 -5
package/dist/index.cjs
CHANGED
|
@@ -26,6 +26,9 @@ __export(index_exports, {
|
|
|
26
26
|
CalClient: () => CalClient,
|
|
27
27
|
CarequalityClient: () => CarequalityClient,
|
|
28
28
|
CmsClient: () => CmsClient,
|
|
29
|
+
ConnectorClient: () => ConnectorClient,
|
|
30
|
+
ConnectorFactory: () => ConnectorFactory,
|
|
31
|
+
ConnectorsNamespace: () => ConnectorsNamespace,
|
|
29
32
|
ConnectureClient: () => ConnectureClient,
|
|
30
33
|
ElevenLabsClient: () => ElevenLabsClient,
|
|
31
34
|
FedExClient: () => FedExClient,
|
|
@@ -44,8 +47,8 @@ __export(index_exports, {
|
|
|
44
47
|
OpenAIClient: () => OpenAIClient,
|
|
45
48
|
OuraClient: () => OuraClient,
|
|
46
49
|
PlaidClient: () => PlaidClient,
|
|
50
|
+
PublicConnectorFactory: () => PublicConnectorFactory,
|
|
47
51
|
QuestClient: () => QuestClient,
|
|
48
|
-
QuestHl7Client: () => QuestHl7Client,
|
|
49
52
|
SDKError: () => SDKError,
|
|
50
53
|
SalesforceClient: () => SalesforceClient,
|
|
51
54
|
ScrapflyClient: () => ScrapflyClient,
|
|
@@ -56,7 +59,6 @@ __export(index_exports, {
|
|
|
56
59
|
StripeClient: () => StripeClient,
|
|
57
60
|
TwilioClient: () => TwilioClient,
|
|
58
61
|
UberClient: () => UberClient,
|
|
59
|
-
VendorsNamespace: () => VendorsNamespace,
|
|
60
62
|
WhoopClient: () => WhoopClient,
|
|
61
63
|
ZocdocClient: () => ZocdocClient,
|
|
62
64
|
ZusClient: () => ZusClient,
|
|
@@ -766,10 +768,159 @@ var VitalsClient = class extends BaseServiceClient {
|
|
|
766
768
|
}
|
|
767
769
|
};
|
|
768
770
|
|
|
769
|
-
// src/clients/
|
|
770
|
-
|
|
771
|
-
|
|
771
|
+
// src/clients/connectors/ConnectorFactory.ts
|
|
772
|
+
function assertConfigObject(connectorName, config) {
|
|
773
|
+
if (typeof config !== "object" || config === null || Array.isArray(config)) {
|
|
774
|
+
throw new TypeError(`${connectorName}.createClient(...) requires a configuration object.`);
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
function validateRequestCredentials(connectorName, credentials) {
|
|
778
|
+
const missing = Object.entries(credentials).filter(([, value]) => value === void 0 || value === null || typeof value === "string" && value.trim() === "").map(([key]) => key).sort();
|
|
779
|
+
if (missing.length > 0) {
|
|
780
|
+
throw new Error(`Missing required connector configuration for ${connectorName}: ${missing.join(", ")}`);
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
var ConnectorFactory = class {
|
|
784
|
+
constructor(connectorName, http, Client, mapConfig) {
|
|
785
|
+
this.connectorName = connectorName;
|
|
786
|
+
this.http = http;
|
|
787
|
+
this.Client = Client;
|
|
788
|
+
this.mapConfig = mapConfig;
|
|
789
|
+
}
|
|
790
|
+
createClient(config) {
|
|
791
|
+
assertConfigObject(this.connectorName, config);
|
|
792
|
+
const credentials = this.mapConfig(config);
|
|
793
|
+
validateRequestCredentials(this.connectorName, credentials);
|
|
794
|
+
return new this.Client(this.http, credentials);
|
|
795
|
+
}
|
|
796
|
+
};
|
|
797
|
+
var PublicConnectorFactory = class {
|
|
798
|
+
constructor(http, Client) {
|
|
799
|
+
this.http = http;
|
|
800
|
+
this.Client = Client;
|
|
801
|
+
}
|
|
802
|
+
createClient() {
|
|
803
|
+
return new this.Client(this.http, {});
|
|
804
|
+
}
|
|
805
|
+
};
|
|
806
|
+
|
|
807
|
+
// src/clients/connectors/ConnectorClient.ts
|
|
808
|
+
var SENSITIVE_KEYS = /* @__PURE__ */ new Set([
|
|
809
|
+
"api_key",
|
|
810
|
+
"auth_token",
|
|
811
|
+
"basic_token",
|
|
812
|
+
"client_secret",
|
|
813
|
+
"password",
|
|
814
|
+
"private_key",
|
|
815
|
+
"secret",
|
|
816
|
+
"secret_key",
|
|
817
|
+
"token"
|
|
818
|
+
]);
|
|
819
|
+
function isPlainObject(value) {
|
|
820
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) return false;
|
|
821
|
+
const proto = Object.getPrototypeOf(value);
|
|
822
|
+
return proto === Object.prototype || proto === null;
|
|
823
|
+
}
|
|
824
|
+
function snakeCaseKey(key) {
|
|
825
|
+
return key.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").replace(/([A-Za-z])(ID|URL|URI|NPI|API|UUID|GUID|SSN|DOB)$/g, "$1_$2").replace(/[ -]/g, "_").toLowerCase();
|
|
826
|
+
}
|
|
827
|
+
function toSnakeCase(value) {
|
|
828
|
+
if (Array.isArray(value)) return value.map(toSnakeCase);
|
|
829
|
+
if (!isPlainObject(value)) return value;
|
|
830
|
+
return Object.fromEntries(
|
|
831
|
+
Object.entries(value).map(([key, child]) => [snakeCaseKey(key), toSnakeCase(child)])
|
|
832
|
+
);
|
|
833
|
+
}
|
|
834
|
+
var ConnectorClient = class extends BaseServiceClient {
|
|
835
|
+
constructor(http, credentials = {}) {
|
|
772
836
|
super(http, "connectors");
|
|
837
|
+
this.connectorCredentials = Object.freeze({ ...credentials });
|
|
838
|
+
}
|
|
839
|
+
async send(method, path, options = {}) {
|
|
840
|
+
const requestOptions = this.withCredentials(method, options);
|
|
841
|
+
try {
|
|
842
|
+
return toSnakeCase(await super.send(method, path, requestOptions));
|
|
843
|
+
} catch (error) {
|
|
844
|
+
if (!(error instanceof SDKError)) throw error;
|
|
845
|
+
throw new SDKError({
|
|
846
|
+
message: this.redactText(error.message),
|
|
847
|
+
statusCode: error.statusCode,
|
|
848
|
+
response: toSnakeCase(this.redactValue(error.response)),
|
|
849
|
+
cause: error.cause
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
withCredentials(method, options) {
|
|
854
|
+
if (method === "GET" || method === "DELETE") return options;
|
|
855
|
+
const body = options.body;
|
|
856
|
+
const merged = { ...this.connectorCredentials };
|
|
857
|
+
if (body === void 0) {
|
|
858
|
+
return { ...options, body: toSnakeCase(merged) };
|
|
859
|
+
}
|
|
860
|
+
if (!isPlainObject(body)) {
|
|
861
|
+
return options;
|
|
862
|
+
}
|
|
863
|
+
for (const [key, value] of Object.entries(body)) {
|
|
864
|
+
if (value === void 0 || value === null) continue;
|
|
865
|
+
if (SENSITIVE_KEYS.has(key) && key in this.connectorCredentials) continue;
|
|
866
|
+
merged[key] = value;
|
|
867
|
+
}
|
|
868
|
+
return { ...options, body: toSnakeCase(merged) };
|
|
869
|
+
}
|
|
870
|
+
sensitiveValues() {
|
|
871
|
+
return Object.entries(this.connectorCredentials).filter(([key, value]) => SENSITIVE_KEYS.has(key) && typeof value === "string" && value.length > 0).map(([, value]) => value).sort((a, b) => b.length - a.length);
|
|
872
|
+
}
|
|
873
|
+
redactText(value) {
|
|
874
|
+
let redacted = value;
|
|
875
|
+
for (const secret of this.sensitiveValues()) {
|
|
876
|
+
redacted = redacted.split(secret).join("[REDACTED]");
|
|
877
|
+
}
|
|
878
|
+
return redacted.replace(/(bearer\s+)[A-Za-z0-9._~+/=-]+/gi, "$1[REDACTED]");
|
|
879
|
+
}
|
|
880
|
+
redactValue(value, key) {
|
|
881
|
+
if (key && SENSITIVE_KEYS.has(key)) return "[REDACTED]";
|
|
882
|
+
if (Array.isArray(value)) return value.map((item) => this.redactValue(item));
|
|
883
|
+
if (isPlainObject(value)) {
|
|
884
|
+
return Object.fromEntries(
|
|
885
|
+
Object.entries(value).map(([childKey, child]) => [childKey, this.redactValue(child, childKey)])
|
|
886
|
+
);
|
|
887
|
+
}
|
|
888
|
+
if (typeof value === "string") return this.redactText(value);
|
|
889
|
+
return value;
|
|
890
|
+
}
|
|
891
|
+
};
|
|
892
|
+
|
|
893
|
+
// src/clients/connectors/AnthropicClient.ts
|
|
894
|
+
var AnthropicClient = class extends ConnectorClient {
|
|
895
|
+
constructor(http, credentials) {
|
|
896
|
+
super(http, credentials);
|
|
897
|
+
}
|
|
898
|
+
/** Send a message to an Anthropic Claude model. */
|
|
899
|
+
message(body) {
|
|
900
|
+
return this.send("POST", "/connectors/anthropic/message", { body });
|
|
901
|
+
}
|
|
902
|
+
};
|
|
903
|
+
|
|
904
|
+
// src/clients/connectors/AppleAuthClient.ts
|
|
905
|
+
var AppleAuthClient = class extends ConnectorClient {
|
|
906
|
+
constructor(http, credentials) {
|
|
907
|
+
super(http, credentials);
|
|
908
|
+
}
|
|
909
|
+
exchangeCode(body) {
|
|
910
|
+
return this.send("POST", "/connectors/apple-auth/exchange-code", { body });
|
|
911
|
+
}
|
|
912
|
+
decodeIdToken(body) {
|
|
913
|
+
return this.send("POST", "/connectors/apple-auth/decode-id-token", { body });
|
|
914
|
+
}
|
|
915
|
+
generateClientSecret(body = {}) {
|
|
916
|
+
return this.send("POST", "/connectors/apple-auth/generate-client-secret", { body });
|
|
917
|
+
}
|
|
918
|
+
};
|
|
919
|
+
|
|
920
|
+
// src/clients/connectors/AthenaHealthClient.ts
|
|
921
|
+
var AthenaHealthClient = class extends ConnectorClient {
|
|
922
|
+
constructor(http, credentials) {
|
|
923
|
+
super(http, credentials);
|
|
773
924
|
}
|
|
774
925
|
a(op, body) {
|
|
775
926
|
return this.send("POST", `/connectors/athena-health/${op}`, { body });
|
|
@@ -1383,1790 +1534,1676 @@ var AthenaHealthClient = class extends BaseServiceClient {
|
|
|
1383
1534
|
}
|
|
1384
1535
|
};
|
|
1385
1536
|
|
|
1386
|
-
// src/clients/
|
|
1387
|
-
var
|
|
1388
|
-
constructor(http) {
|
|
1389
|
-
super(http,
|
|
1537
|
+
// src/clients/connectors/CalClient.ts
|
|
1538
|
+
var CalClient = class extends ConnectorClient {
|
|
1539
|
+
constructor(http, credentials) {
|
|
1540
|
+
super(http, credentials);
|
|
1390
1541
|
}
|
|
1391
|
-
|
|
1392
|
-
return this.send("POST", `/connectors/
|
|
1542
|
+
c(op, body = {}) {
|
|
1543
|
+
return this.send("POST", `/connectors/cal/${op}`, { body });
|
|
1393
1544
|
}
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
return this.s("create-payment-intent", body);
|
|
1545
|
+
getAllBookings(body = {}) {
|
|
1546
|
+
return this.c("get-all-bookings", body);
|
|
1397
1547
|
}
|
|
1398
|
-
/**
|
|
1399
|
-
|
|
1400
|
-
|
|
1548
|
+
/**
|
|
1549
|
+
* The connector route invokes CalConnector.create_booking(booking), so the
|
|
1550
|
+
* public booking payload must be wrapped for the gateway's named argument.
|
|
1551
|
+
*/
|
|
1552
|
+
createBooking(body) {
|
|
1553
|
+
return this.c("create-booking", { booking: body });
|
|
1401
1554
|
}
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
return this.s("create-customer", body);
|
|
1555
|
+
getEventTypes(body = {}) {
|
|
1556
|
+
return this.c("get-event-types", body);
|
|
1405
1557
|
}
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
return this.s("create-subscription", body);
|
|
1558
|
+
getAvailableSlots(body) {
|
|
1559
|
+
return this.c("get-available-slots", body);
|
|
1409
1560
|
}
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
return this.s("create-session", body);
|
|
1561
|
+
getScheduleForEventType(body) {
|
|
1562
|
+
return this.c("get-schedule-for-event-type", body);
|
|
1413
1563
|
}
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
return this.s("list-products", body);
|
|
1564
|
+
getScheduleById(body) {
|
|
1565
|
+
return this.c("get-schedule-by-id", body);
|
|
1417
1566
|
}
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
return this.s("create-copay-price", body);
|
|
1567
|
+
createSchedule(body) {
|
|
1568
|
+
return this.c("create-schedule", body);
|
|
1421
1569
|
}
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
return this.s("verify-connection", body);
|
|
1570
|
+
assignScheduleToEventType(body) {
|
|
1571
|
+
return this.c("assign-schedule-to-event-type", body);
|
|
1425
1572
|
}
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
return this.s("validate-and-tokenize-card", body);
|
|
1573
|
+
updateSchedule(body) {
|
|
1574
|
+
return this.c("update-schedule", body);
|
|
1429
1575
|
}
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1576
|
+
updateAvailabilityFromAthenaSlots(body) {
|
|
1577
|
+
return this.c("update-availability-from-athena-slots", body);
|
|
1578
|
+
}
|
|
1579
|
+
syncWithAthena(body = {}) {
|
|
1580
|
+
return this.c("sync-with-athena", body);
|
|
1433
1581
|
}
|
|
1434
1582
|
};
|
|
1435
1583
|
|
|
1436
|
-
// src/clients/
|
|
1437
|
-
var
|
|
1438
|
-
constructor(http) {
|
|
1439
|
-
super(http,
|
|
1584
|
+
// src/clients/connectors/CarequalityClient.ts
|
|
1585
|
+
var CarequalityClient = class extends ConnectorClient {
|
|
1586
|
+
constructor(http, credentials) {
|
|
1587
|
+
super(http, credentials);
|
|
1440
1588
|
}
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
return this.send("POST", "/connectors/twilio/send-sms", { body });
|
|
1589
|
+
discoverPatient(body) {
|
|
1590
|
+
return this.send("POST", "/connectors/carequality/discover-patient", { body });
|
|
1444
1591
|
}
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
return this.send("POST", "/connectors/twilio/get-message", { body });
|
|
1592
|
+
queryDocuments(body) {
|
|
1593
|
+
return this.send("POST", "/connectors/carequality/query-documents", { body });
|
|
1448
1594
|
}
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1595
|
+
retrieveDocuments(body) {
|
|
1596
|
+
return this.send("POST", "/connectors/carequality/retrieve-documents", { body });
|
|
1597
|
+
}
|
|
1598
|
+
importPatientDocuments(body) {
|
|
1599
|
+
return this.send("POST", "/connectors/carequality/import-patient-documents", { body });
|
|
1452
1600
|
}
|
|
1453
1601
|
};
|
|
1454
1602
|
|
|
1455
|
-
// src/clients/
|
|
1456
|
-
var
|
|
1457
|
-
constructor(http) {
|
|
1458
|
-
super(http,
|
|
1603
|
+
// src/clients/connectors/CmsClient.ts
|
|
1604
|
+
var CmsClient = class extends ConnectorClient {
|
|
1605
|
+
constructor(http, credentials) {
|
|
1606
|
+
super(http, credentials);
|
|
1459
1607
|
}
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
return this.send("POST", "/connectors/stedi/check-eligibility", { body });
|
|
1608
|
+
searchHealthPlans(body) {
|
|
1609
|
+
return this.send("POST", "/connectors/cms/search-health-plans", { body });
|
|
1463
1610
|
}
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
return this.send("POST", "/connectors/stedi/submit-claim", { body });
|
|
1611
|
+
getCountyFips(body) {
|
|
1612
|
+
return this.send("POST", "/connectors/cms/get-county-fips", { body });
|
|
1467
1613
|
}
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1614
|
+
};
|
|
1615
|
+
|
|
1616
|
+
// src/clients/connectors/ConnectureClient.ts
|
|
1617
|
+
var ConnectureClient = class extends ConnectorClient {
|
|
1618
|
+
constructor(http, credentials) {
|
|
1619
|
+
super(http, credentials);
|
|
1471
1620
|
}
|
|
1472
|
-
|
|
1473
|
-
return this.send("POST", "/connectors/
|
|
1621
|
+
getAccessToken(body = {}) {
|
|
1622
|
+
return this.send("POST", "/connectors/connecture/get-access-token", { body });
|
|
1474
1623
|
}
|
|
1475
|
-
|
|
1476
|
-
return this.send("POST", "/connectors/
|
|
1624
|
+
createSession(body) {
|
|
1625
|
+
return this.send("POST", "/connectors/connecture/create-session", { body });
|
|
1477
1626
|
}
|
|
1478
|
-
|
|
1479
|
-
return this.send("POST", "/connectors/
|
|
1627
|
+
getSession(body) {
|
|
1628
|
+
return this.send("POST", "/connectors/connecture/get-session", { body });
|
|
1480
1629
|
}
|
|
1481
|
-
|
|
1482
|
-
return this.send("POST", "/connectors/
|
|
1630
|
+
updateSession(body) {
|
|
1631
|
+
return this.send("POST", "/connectors/connecture/update-session", { body });
|
|
1483
1632
|
}
|
|
1484
|
-
|
|
1485
|
-
return this.send("POST", "/connectors/
|
|
1633
|
+
checkEligibility(body) {
|
|
1634
|
+
return this.send("POST", "/connectors/connecture/check-eligibility", { body });
|
|
1486
1635
|
}
|
|
1487
|
-
|
|
1488
|
-
return this.send("POST", "/connectors/
|
|
1636
|
+
planCount(body) {
|
|
1637
|
+
return this.send("POST", "/connectors/connecture/plan-count", { body });
|
|
1489
1638
|
}
|
|
1490
|
-
|
|
1491
|
-
return this.send("POST", "/connectors/
|
|
1639
|
+
sessionPlans(body) {
|
|
1640
|
+
return this.send("POST", "/connectors/connecture/session-plans", { body });
|
|
1641
|
+
}
|
|
1642
|
+
sessionPlanById(body) {
|
|
1643
|
+
return this.send("POST", "/connectors/connecture/session-plan-by-id", { body });
|
|
1644
|
+
}
|
|
1645
|
+
enroll(body) {
|
|
1646
|
+
return this.send("POST", "/connectors/connecture/enroll", { body });
|
|
1647
|
+
}
|
|
1648
|
+
lookupPlans(body) {
|
|
1649
|
+
return this.send("POST", "/connectors/connecture/lookup-plans", { body });
|
|
1492
1650
|
}
|
|
1493
1651
|
};
|
|
1494
1652
|
|
|
1495
|
-
// src/clients/
|
|
1496
|
-
var
|
|
1497
|
-
constructor(http) {
|
|
1498
|
-
super(http,
|
|
1653
|
+
// src/clients/connectors/ElevenLabsClient.ts
|
|
1654
|
+
var ElevenLabsClient = class extends ConnectorClient {
|
|
1655
|
+
constructor(http, credentials) {
|
|
1656
|
+
super(http, credentials);
|
|
1499
1657
|
}
|
|
1500
|
-
/**
|
|
1501
|
-
|
|
1502
|
-
return this.send("POST", "/connectors/
|
|
1658
|
+
/** Synthesize speech from text using ElevenLabs TTS. */
|
|
1659
|
+
synthesize(body) {
|
|
1660
|
+
return this.send("POST", "/connectors/elevenlabs/synthesize", { body });
|
|
1503
1661
|
}
|
|
1504
|
-
/**
|
|
1505
|
-
|
|
1506
|
-
return this.send("POST", "/connectors/
|
|
1662
|
+
/** List available ElevenLabs voices. */
|
|
1663
|
+
listVoices(body) {
|
|
1664
|
+
return this.send("POST", "/connectors/elevenlabs/list-voices", { body });
|
|
1507
1665
|
}
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
return this.send("POST", "/connectors/salesforce/get", { body });
|
|
1666
|
+
createAgent(body = {}) {
|
|
1667
|
+
return this.send("POST", "/connectors/elevenlabs/create-agent", { body });
|
|
1511
1668
|
}
|
|
1512
|
-
|
|
1513
|
-
return this.send("POST", "/connectors/
|
|
1669
|
+
createTool(body) {
|
|
1670
|
+
return this.send("POST", "/connectors/elevenlabs/create-tool", { body });
|
|
1514
1671
|
}
|
|
1515
|
-
|
|
1516
|
-
return this.send("POST", "/connectors/
|
|
1672
|
+
deleteAgent(body) {
|
|
1673
|
+
return this.send("POST", "/connectors/elevenlabs/delete-agent", { body });
|
|
1517
1674
|
}
|
|
1518
|
-
|
|
1519
|
-
return this.send("POST", "/connectors/
|
|
1675
|
+
deleteTool(body) {
|
|
1676
|
+
return this.send("POST", "/connectors/elevenlabs/delete-tool", { body });
|
|
1520
1677
|
}
|
|
1521
|
-
|
|
1522
|
-
return this.send("POST", "/connectors/
|
|
1678
|
+
duplicateAgent(body) {
|
|
1679
|
+
return this.send("POST", "/connectors/elevenlabs/duplicate-agent", { body });
|
|
1523
1680
|
}
|
|
1524
|
-
|
|
1525
|
-
return this.send("POST", "/connectors/
|
|
1681
|
+
getAgent(body) {
|
|
1682
|
+
return this.send("POST", "/connectors/elevenlabs/get-agent", { body });
|
|
1526
1683
|
}
|
|
1527
|
-
|
|
1528
|
-
return this.send("POST", "/connectors/
|
|
1684
|
+
getAllAgents(body = {}) {
|
|
1685
|
+
return this.send("POST", "/connectors/elevenlabs/get-all-agents", { body });
|
|
1529
1686
|
}
|
|
1530
|
-
|
|
1531
|
-
return this.send("POST", "/connectors/
|
|
1687
|
+
getAllConversations(body = {}) {
|
|
1688
|
+
return this.send("POST", "/connectors/elevenlabs/get-all-conversations", { body });
|
|
1532
1689
|
}
|
|
1533
|
-
|
|
1534
|
-
return this.send("POST", "/connectors/
|
|
1690
|
+
getAllTools(body = {}) {
|
|
1691
|
+
return this.send("POST", "/connectors/elevenlabs/get-all-tools", { body });
|
|
1535
1692
|
}
|
|
1536
|
-
|
|
1537
|
-
return this.send("POST", "/connectors/
|
|
1693
|
+
getConversation(body) {
|
|
1694
|
+
return this.send("POST", "/connectors/elevenlabs/get-conversation", { body });
|
|
1538
1695
|
}
|
|
1539
|
-
|
|
1540
|
-
return this.send("POST", "/connectors/
|
|
1696
|
+
getTool(body) {
|
|
1697
|
+
return this.send("POST", "/connectors/elevenlabs/get-tool", { body });
|
|
1541
1698
|
}
|
|
1542
|
-
|
|
1543
|
-
return this.send("POST", "/connectors/
|
|
1699
|
+
getToolDependentAgents(body) {
|
|
1700
|
+
return this.send("POST", "/connectors/elevenlabs/get-tool-dependent-agents", { body });
|
|
1544
1701
|
}
|
|
1545
|
-
|
|
1546
|
-
return this.send("POST", "/connectors/
|
|
1702
|
+
getUser(body = {}) {
|
|
1703
|
+
return this.send("POST", "/connectors/elevenlabs/get-user", { body });
|
|
1547
1704
|
}
|
|
1548
|
-
|
|
1549
|
-
return this.send("POST", "/connectors/
|
|
1705
|
+
getVoice(body) {
|
|
1706
|
+
return this.send("POST", "/connectors/elevenlabs/get-voice", { body });
|
|
1550
1707
|
}
|
|
1551
|
-
|
|
1552
|
-
return this.send("POST", "/connectors/
|
|
1708
|
+
updateAgent(body) {
|
|
1709
|
+
return this.send("POST", "/connectors/elevenlabs/update-agent", { body });
|
|
1553
1710
|
}
|
|
1554
|
-
|
|
1555
|
-
return this.send("POST", "/connectors/
|
|
1711
|
+
updateTool(body) {
|
|
1712
|
+
return this.send("POST", "/connectors/elevenlabs/update-tool", { body });
|
|
1556
1713
|
}
|
|
1557
|
-
|
|
1558
|
-
|
|
1714
|
+
};
|
|
1715
|
+
|
|
1716
|
+
// src/clients/connectors/FedExClient.ts
|
|
1717
|
+
var FedExClient = class extends ConnectorClient {
|
|
1718
|
+
constructor(http, credentials) {
|
|
1719
|
+
super(http, credentials);
|
|
1559
1720
|
}
|
|
1560
|
-
|
|
1561
|
-
return this.send("POST", "/connectors/
|
|
1721
|
+
createShipment(body) {
|
|
1722
|
+
return this.send("POST", "/connectors/fedex/create-shipment", { body });
|
|
1562
1723
|
}
|
|
1563
|
-
|
|
1564
|
-
return this.send("POST", "/connectors/
|
|
1724
|
+
trackShipment(body) {
|
|
1725
|
+
return this.send("POST", "/connectors/fedex/track-shipment", { body });
|
|
1565
1726
|
}
|
|
1566
|
-
|
|
1567
|
-
|
|
1727
|
+
};
|
|
1728
|
+
|
|
1729
|
+
// src/clients/connectors/GoogleAIClient.ts
|
|
1730
|
+
var GoogleAIClient = class extends ConnectorClient {
|
|
1731
|
+
constructor(http, credentials) {
|
|
1732
|
+
super(http, credentials);
|
|
1568
1733
|
}
|
|
1569
|
-
|
|
1570
|
-
|
|
1734
|
+
/** Generate a response from a Gemini model. */
|
|
1735
|
+
generate(body) {
|
|
1736
|
+
return this.send("POST", "/connectors/google-ai/generate", { body });
|
|
1571
1737
|
}
|
|
1572
|
-
|
|
1573
|
-
|
|
1738
|
+
/** Generate text embeddings via Gemini. */
|
|
1739
|
+
embed(body) {
|
|
1740
|
+
return this.send("POST", "/connectors/google-ai/embed", { body });
|
|
1574
1741
|
}
|
|
1575
|
-
|
|
1576
|
-
return this.send("POST", "/connectors/
|
|
1742
|
+
invokeA1cVisionCapture(body) {
|
|
1743
|
+
return this.send("POST", "/connectors/google-ai/invoke-a1c-vision-capture", { body });
|
|
1577
1744
|
}
|
|
1578
|
-
|
|
1579
|
-
|
|
1745
|
+
};
|
|
1746
|
+
|
|
1747
|
+
// src/clients/connectors/GooglePlacesClient.ts
|
|
1748
|
+
var GooglePlacesClient = class extends ConnectorClient {
|
|
1749
|
+
constructor(http, credentials) {
|
|
1750
|
+
super(http, credentials);
|
|
1580
1751
|
}
|
|
1581
|
-
|
|
1582
|
-
|
|
1752
|
+
/** Find places near a lat/lng coordinate within a radius. */
|
|
1753
|
+
nearbySearch(body) {
|
|
1754
|
+
return this.send("POST", "/connectors/google-places/nearby-search", { body });
|
|
1583
1755
|
}
|
|
1584
|
-
|
|
1585
|
-
|
|
1756
|
+
/** Retrieve detailed information about a place by place_id. */
|
|
1757
|
+
placeDetails(body) {
|
|
1758
|
+
return this.send("POST", "/connectors/google-places/place-details", { body });
|
|
1586
1759
|
}
|
|
1587
|
-
|
|
1588
|
-
|
|
1760
|
+
/** Search for places by text query. */
|
|
1761
|
+
textSearch(body) {
|
|
1762
|
+
return this.send("POST", "/connectors/google-places/text-search", { body });
|
|
1589
1763
|
}
|
|
1590
|
-
|
|
1591
|
-
|
|
1764
|
+
};
|
|
1765
|
+
|
|
1766
|
+
// src/clients/connectors/GrokClient.ts
|
|
1767
|
+
var GrokClient = class extends ConnectorClient {
|
|
1768
|
+
constructor(http, credentials) {
|
|
1769
|
+
super(http, credentials);
|
|
1592
1770
|
}
|
|
1593
|
-
|
|
1594
|
-
return this.send("POST", "/connectors/
|
|
1771
|
+
getUmlsCodes(body) {
|
|
1772
|
+
return this.send("POST", "/connectors/grok/get-umls-codes", { body });
|
|
1595
1773
|
}
|
|
1596
|
-
|
|
1597
|
-
return this.send("POST", "/connectors/
|
|
1774
|
+
convertCcdaToFhir(body) {
|
|
1775
|
+
return this.send("POST", "/connectors/grok/convert-ccda-to-fhir", { body });
|
|
1598
1776
|
}
|
|
1599
|
-
|
|
1600
|
-
return this.send("POST", "/connectors/
|
|
1777
|
+
convertFhirToCcda(body) {
|
|
1778
|
+
return this.send("POST", "/connectors/grok/convert-fhir-to-ccda", { body });
|
|
1601
1779
|
}
|
|
1602
|
-
|
|
1603
|
-
return this.send("POST", "/connectors/
|
|
1780
|
+
generalRequest(body) {
|
|
1781
|
+
return this.send("POST", "/connectors/grok/general-grok-request", { body });
|
|
1604
1782
|
}
|
|
1605
|
-
|
|
1606
|
-
return this.send("POST", "/connectors/
|
|
1783
|
+
convertFhirToCcdaWithChunking(body) {
|
|
1784
|
+
return this.send("POST", "/connectors/grok/convert-fhir-to-ccda-with-chunking", { body });
|
|
1607
1785
|
}
|
|
1608
|
-
|
|
1609
|
-
return this.send("POST", "/connectors/
|
|
1786
|
+
createClinicalNotes(body) {
|
|
1787
|
+
return this.send("POST", "/connectors/grok/create-clinical-notes", { body });
|
|
1610
1788
|
}
|
|
1611
|
-
|
|
1612
|
-
return this.send("POST", "/connectors/
|
|
1789
|
+
chooseEncounterReasonsFromList(body) {
|
|
1790
|
+
return this.send("POST", "/connectors/grok/choose-encounter-reasons-from-list", { body });
|
|
1613
1791
|
}
|
|
1614
|
-
|
|
1615
|
-
return this.send("POST", "/connectors/
|
|
1792
|
+
chooseTemplatesFromList(body) {
|
|
1793
|
+
return this.send("POST", "/connectors/grok/choose-templates-from-list", { body });
|
|
1616
1794
|
}
|
|
1617
|
-
|
|
1618
|
-
return this.send("POST", "/connectors/
|
|
1795
|
+
createHpiSummary(body) {
|
|
1796
|
+
return this.send("POST", "/connectors/grok/create-hpi-summary", { body });
|
|
1619
1797
|
}
|
|
1620
|
-
|
|
1621
|
-
return this.send("POST", "/connectors/
|
|
1798
|
+
createScreeningSummary(body) {
|
|
1799
|
+
return this.send("POST", "/connectors/grok/create-screening-summary", { body });
|
|
1622
1800
|
}
|
|
1623
|
-
|
|
1624
|
-
return this.send("POST", "/connectors/
|
|
1801
|
+
chooseHealthServiceFromList(body) {
|
|
1802
|
+
return this.send("POST", "/connectors/grok/choose-health-service-from-list", { body });
|
|
1625
1803
|
}
|
|
1626
|
-
|
|
1627
|
-
return this.send("POST", "/connectors/
|
|
1804
|
+
createEhrSummary(body) {
|
|
1805
|
+
return this.send("POST", "/connectors/grok/create-ehr-summary", { body });
|
|
1628
1806
|
}
|
|
1629
|
-
|
|
1630
|
-
|
|
1807
|
+
};
|
|
1808
|
+
|
|
1809
|
+
// src/clients/connectors/HealthieClient.ts
|
|
1810
|
+
var HealthieClient = class extends ConnectorClient {
|
|
1811
|
+
constructor(http, credentials) {
|
|
1812
|
+
super(http, credentials);
|
|
1631
1813
|
}
|
|
1632
|
-
|
|
1633
|
-
return this.send("POST",
|
|
1814
|
+
h(path, body = {}) {
|
|
1815
|
+
return this.send("POST", `/connectors/healthie/${path}`, { body });
|
|
1634
1816
|
}
|
|
1635
|
-
|
|
1636
|
-
|
|
1817
|
+
// API keys
|
|
1818
|
+
createApiKey(body = {}) {
|
|
1819
|
+
return this.h("create-api-key", body);
|
|
1637
1820
|
}
|
|
1638
|
-
|
|
1639
|
-
return this.
|
|
1821
|
+
deleteApiKey(body) {
|
|
1822
|
+
return this.h("delete-api-key", body);
|
|
1640
1823
|
}
|
|
1641
|
-
|
|
1642
|
-
return this.
|
|
1824
|
+
getApiKeys(body = {}) {
|
|
1825
|
+
return this.h("get-api-keys", body);
|
|
1643
1826
|
}
|
|
1644
|
-
|
|
1645
|
-
return this.
|
|
1827
|
+
getCurrentUserId(body = {}) {
|
|
1828
|
+
return this.h("get-current-user-id", body);
|
|
1646
1829
|
}
|
|
1647
|
-
|
|
1648
|
-
return this.
|
|
1830
|
+
getCurrentUser(body = {}) {
|
|
1831
|
+
return this.h("get-current-user", body);
|
|
1649
1832
|
}
|
|
1650
|
-
|
|
1651
|
-
|
|
1833
|
+
// Patients / Users
|
|
1834
|
+
createPatient(body) {
|
|
1835
|
+
return this.h("create-patient", body);
|
|
1652
1836
|
}
|
|
1653
|
-
|
|
1654
|
-
return this.
|
|
1837
|
+
updatePatient(body) {
|
|
1838
|
+
return this.h("update-patient", body);
|
|
1655
1839
|
}
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
|
-
// src/clients/vendors/QuestClient.ts
|
|
1659
|
-
var QuestClient = class extends BaseServiceClient {
|
|
1660
|
-
constructor(http) {
|
|
1661
|
-
super(http, "connectors");
|
|
1840
|
+
searchPatients(body = {}) {
|
|
1841
|
+
return this.h("search-patients", body);
|
|
1662
1842
|
}
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
return this.send("POST", "/connectors/quest/create-order", { body });
|
|
1843
|
+
getPatient(body) {
|
|
1844
|
+
return this.h("get-patient", body);
|
|
1666
1845
|
}
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
return this.send("POST", "/connectors/quest/get-results", { body });
|
|
1846
|
+
getPatientJson(body) {
|
|
1847
|
+
return this.h("get-patient-json", body);
|
|
1670
1848
|
}
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
return this.send("POST", "/connectors/quest/list-tests", { body });
|
|
1849
|
+
signUpPatient(body) {
|
|
1850
|
+
return this.h("sign-up-patient", body);
|
|
1674
1851
|
}
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
// src/clients/vendors/QuestHl7Client.ts
|
|
1678
|
-
var QuestHl7Client = class extends BaseServiceClient {
|
|
1679
|
-
constructor(http) {
|
|
1680
|
-
super(http, "connectors");
|
|
1852
|
+
bulkUpdateClients(body) {
|
|
1853
|
+
return this.h("bulk-update-clients", body);
|
|
1681
1854
|
}
|
|
1682
|
-
|
|
1683
|
-
return this.
|
|
1855
|
+
updateUser(body) {
|
|
1856
|
+
return this.h("update-user", body);
|
|
1684
1857
|
}
|
|
1685
|
-
|
|
1686
|
-
return this.
|
|
1858
|
+
listPatients(body = {}) {
|
|
1859
|
+
return this.h("list-patients", body);
|
|
1687
1860
|
}
|
|
1688
|
-
|
|
1689
|
-
|
|
1861
|
+
// Locations
|
|
1862
|
+
createLocation(body) {
|
|
1863
|
+
return this.h("create-location", body);
|
|
1690
1864
|
}
|
|
1691
|
-
|
|
1692
|
-
return this.
|
|
1865
|
+
updateLocation(body) {
|
|
1866
|
+
return this.h("update-location", body);
|
|
1693
1867
|
}
|
|
1694
|
-
|
|
1695
|
-
|
|
1868
|
+
// Appointment types
|
|
1869
|
+
getAppointmentType(body) {
|
|
1870
|
+
return this.h("get-appointment-type", body);
|
|
1696
1871
|
}
|
|
1697
|
-
|
|
1698
|
-
return this.
|
|
1872
|
+
getAppointmentTypes(body = {}) {
|
|
1873
|
+
return this.h("get-appointment-types", body);
|
|
1699
1874
|
}
|
|
1700
|
-
|
|
1701
|
-
return this.
|
|
1875
|
+
createAppointmentType(body) {
|
|
1876
|
+
return this.h("create-appointment-type", body);
|
|
1702
1877
|
}
|
|
1703
|
-
|
|
1704
|
-
return this.
|
|
1878
|
+
updateAppointmentType(body) {
|
|
1879
|
+
return this.h("update-appointment-type", body);
|
|
1705
1880
|
}
|
|
1706
|
-
|
|
1707
|
-
return this.
|
|
1881
|
+
deleteAppointmentType(body) {
|
|
1882
|
+
return this.h("delete-appointment-type", body);
|
|
1708
1883
|
}
|
|
1709
|
-
|
|
1710
|
-
return this.
|
|
1884
|
+
getAppointmentSetting(body) {
|
|
1885
|
+
return this.h("get-appointment-setting", body);
|
|
1711
1886
|
}
|
|
1712
|
-
|
|
1713
|
-
return this.
|
|
1887
|
+
createAppointmentSetting(body) {
|
|
1888
|
+
return this.h("create-appointment-setting", body);
|
|
1714
1889
|
}
|
|
1715
|
-
|
|
1716
|
-
return this.
|
|
1890
|
+
updateAppointmentSetting(body) {
|
|
1891
|
+
return this.h("update-appointment-setting", body);
|
|
1717
1892
|
}
|
|
1718
|
-
|
|
1719
|
-
|
|
1893
|
+
// Appointments
|
|
1894
|
+
getAppointment(body) {
|
|
1895
|
+
return this.h("get-appointment", body);
|
|
1720
1896
|
}
|
|
1721
|
-
|
|
1722
|
-
return this.
|
|
1897
|
+
getAppointments(body = {}) {
|
|
1898
|
+
return this.h("get-appointments", body);
|
|
1723
1899
|
}
|
|
1724
|
-
|
|
1725
|
-
return this.
|
|
1900
|
+
createAppointment(body) {
|
|
1901
|
+
return this.h("create-appointment", body);
|
|
1726
1902
|
}
|
|
1727
|
-
|
|
1728
|
-
return this.
|
|
1903
|
+
updateAppointment(body) {
|
|
1904
|
+
return this.h("update-appointment", body);
|
|
1729
1905
|
}
|
|
1730
|
-
|
|
1731
|
-
return this.
|
|
1906
|
+
deleteAppointment(body) {
|
|
1907
|
+
return this.h("delete-appointment", body);
|
|
1732
1908
|
}
|
|
1733
|
-
|
|
1734
|
-
return this.
|
|
1909
|
+
getAppointmentBookingWarnings(body) {
|
|
1910
|
+
return this.h("get-appointment-booking-warnings", body);
|
|
1735
1911
|
}
|
|
1736
|
-
|
|
1737
|
-
|
|
1912
|
+
// Availability
|
|
1913
|
+
getAvailabilities(body = {}) {
|
|
1914
|
+
return this.h("get-availabilities", body);
|
|
1738
1915
|
}
|
|
1739
|
-
|
|
1740
|
-
return this.
|
|
1741
|
-
}
|
|
1742
|
-
retrieveAndExtractCompendium(body) {
|
|
1743
|
-
return this.p("retrieve-and-extract-compendium", body);
|
|
1744
|
-
}
|
|
1745
|
-
acknowledgeCompendium(body) {
|
|
1746
|
-
return this.p("acknowledge-compendium", body);
|
|
1747
|
-
}
|
|
1748
|
-
syncCompendiums(body = {}) {
|
|
1749
|
-
return this.p("sync-compendiums", body);
|
|
1750
|
-
}
|
|
1751
|
-
};
|
|
1752
|
-
|
|
1753
|
-
// src/clients/vendors/OpenAIClient.ts
|
|
1754
|
-
var OpenAIClient = class extends BaseServiceClient {
|
|
1755
|
-
constructor(http) {
|
|
1756
|
-
super(http, "connectors");
|
|
1757
|
-
}
|
|
1758
|
-
/** Send a chat completion request to OpenAI. */
|
|
1759
|
-
chat(body) {
|
|
1760
|
-
return this.send("POST", "/connectors/openai/chat", { body });
|
|
1761
|
-
}
|
|
1762
|
-
/** Generate text embeddings via OpenAI. */
|
|
1763
|
-
embed(body) {
|
|
1764
|
-
return this.send("POST", "/connectors/openai/embed", { body });
|
|
1765
|
-
}
|
|
1766
|
-
buildResponseCreatePayload(body = {}) {
|
|
1767
|
-
return this.send("POST", "/connectors/openai/build-response-create-payload", { body });
|
|
1768
|
-
}
|
|
1769
|
-
chatJson(body) {
|
|
1770
|
-
return this.send("POST", "/connectors/openai/chat-json", { body });
|
|
1771
|
-
}
|
|
1772
|
-
createAssistant(body) {
|
|
1773
|
-
return this.send("POST", "/connectors/openai/create-assistant", { body });
|
|
1774
|
-
}
|
|
1775
|
-
deleteAssistant(body) {
|
|
1776
|
-
return this.send("POST", "/connectors/openai/delete-assistant", { body });
|
|
1777
|
-
}
|
|
1778
|
-
getAssistant(body) {
|
|
1779
|
-
return this.send("POST", "/connectors/openai/get-assistant", { body });
|
|
1780
|
-
}
|
|
1781
|
-
moderate(body) {
|
|
1782
|
-
return this.send("POST", "/connectors/openai/moderate", { body });
|
|
1783
|
-
}
|
|
1784
|
-
updateAssistant(body) {
|
|
1785
|
-
return this.send("POST", "/connectors/openai/update-assistant", { body });
|
|
1786
|
-
}
|
|
1787
|
-
};
|
|
1788
|
-
|
|
1789
|
-
// src/clients/vendors/AnthropicClient.ts
|
|
1790
|
-
var AnthropicClient = class extends BaseServiceClient {
|
|
1791
|
-
constructor(http) {
|
|
1792
|
-
super(http, "connectors");
|
|
1793
|
-
}
|
|
1794
|
-
/** Send a message to an Anthropic Claude model. */
|
|
1795
|
-
message(body) {
|
|
1796
|
-
return this.send("POST", "/connectors/anthropic/message", { body });
|
|
1797
|
-
}
|
|
1798
|
-
};
|
|
1799
|
-
|
|
1800
|
-
// src/clients/vendors/GoogleAIClient.ts
|
|
1801
|
-
var GoogleAIClient = class extends BaseServiceClient {
|
|
1802
|
-
constructor(http) {
|
|
1803
|
-
super(http, "connectors");
|
|
1804
|
-
}
|
|
1805
|
-
/** Generate a response from a Gemini model. */
|
|
1806
|
-
generate(body) {
|
|
1807
|
-
return this.send("POST", "/connectors/google-ai/generate", { body });
|
|
1808
|
-
}
|
|
1809
|
-
/** Generate text embeddings via Gemini. */
|
|
1810
|
-
embed(body) {
|
|
1811
|
-
return this.send("POST", "/connectors/google-ai/embed", { body });
|
|
1812
|
-
}
|
|
1813
|
-
invokeA1cVisionCapture(body) {
|
|
1814
|
-
return this.send("POST", "/connectors/google-ai/invoke-a1c-vision-capture", { body });
|
|
1815
|
-
}
|
|
1816
|
-
};
|
|
1817
|
-
|
|
1818
|
-
// src/clients/vendors/GooglePlacesClient.ts
|
|
1819
|
-
var GooglePlacesClient = class extends BaseServiceClient {
|
|
1820
|
-
constructor(http) {
|
|
1821
|
-
super(http, "connectors");
|
|
1822
|
-
}
|
|
1823
|
-
/** Find places near a lat/lng coordinate within a radius. */
|
|
1824
|
-
nearbySearch(body) {
|
|
1825
|
-
return this.send("POST", "/connectors/google-places/nearby-search", { body });
|
|
1826
|
-
}
|
|
1827
|
-
/** Retrieve detailed information about a place by place_id. */
|
|
1828
|
-
placeDetails(body) {
|
|
1829
|
-
return this.send("POST", "/connectors/google-places/place-details", { body });
|
|
1830
|
-
}
|
|
1831
|
-
/** Search for places by text query. */
|
|
1832
|
-
textSearch(body) {
|
|
1833
|
-
return this.send("POST", "/connectors/google-places/text-search", { body });
|
|
1834
|
-
}
|
|
1835
|
-
};
|
|
1836
|
-
|
|
1837
|
-
// src/clients/vendors/SendGridClient.ts
|
|
1838
|
-
var SendGridClient = class extends BaseServiceClient {
|
|
1839
|
-
constructor(http) {
|
|
1840
|
-
super(http, "connectors");
|
|
1841
|
-
}
|
|
1842
|
-
/** Send a transactional email via SendGrid. Supports static content and dynamic templates. */
|
|
1843
|
-
sendEmail(body) {
|
|
1844
|
-
return this.send("POST", "/connectors/sendgrid/send-email", { body });
|
|
1845
|
-
}
|
|
1846
|
-
/** List SendGrid email templates. */
|
|
1847
|
-
listTemplates(body) {
|
|
1848
|
-
return this.send("POST", "/connectors/sendgrid/list-templates", { body });
|
|
1849
|
-
}
|
|
1850
|
-
};
|
|
1851
|
-
|
|
1852
|
-
// src/clients/vendors/ElevenLabsClient.ts
|
|
1853
|
-
var ElevenLabsClient = class extends BaseServiceClient {
|
|
1854
|
-
constructor(http) {
|
|
1855
|
-
super(http, "connectors");
|
|
1856
|
-
}
|
|
1857
|
-
/** Synthesize speech from text using ElevenLabs TTS. */
|
|
1858
|
-
synthesize(body) {
|
|
1859
|
-
return this.send("POST", "/connectors/elevenlabs/synthesize", { body });
|
|
1860
|
-
}
|
|
1861
|
-
/** List available ElevenLabs voices. */
|
|
1862
|
-
listVoices(body) {
|
|
1863
|
-
return this.send("POST", "/connectors/elevenlabs/list-voices", { body });
|
|
1864
|
-
}
|
|
1865
|
-
createAgent(body = {}) {
|
|
1866
|
-
return this.send("POST", "/connectors/elevenlabs/create-agent", { body });
|
|
1867
|
-
}
|
|
1868
|
-
createTool(body) {
|
|
1869
|
-
return this.send("POST", "/connectors/elevenlabs/create-tool", { body });
|
|
1870
|
-
}
|
|
1871
|
-
deleteAgent(body) {
|
|
1872
|
-
return this.send("POST", "/connectors/elevenlabs/delete-agent", { body });
|
|
1873
|
-
}
|
|
1874
|
-
deleteTool(body) {
|
|
1875
|
-
return this.send("POST", "/connectors/elevenlabs/delete-tool", { body });
|
|
1876
|
-
}
|
|
1877
|
-
duplicateAgent(body) {
|
|
1878
|
-
return this.send("POST", "/connectors/elevenlabs/duplicate-agent", { body });
|
|
1916
|
+
getAvailability(body) {
|
|
1917
|
+
return this.h("get-availability", body);
|
|
1879
1918
|
}
|
|
1880
|
-
|
|
1881
|
-
return this.
|
|
1919
|
+
createAvailability(body) {
|
|
1920
|
+
return this.h("create-availability", body);
|
|
1882
1921
|
}
|
|
1883
|
-
|
|
1884
|
-
return this.
|
|
1922
|
+
createAvailabilitiesBulk(body) {
|
|
1923
|
+
return this.h("create-availabilities-bulk", body);
|
|
1885
1924
|
}
|
|
1886
|
-
|
|
1887
|
-
return this.
|
|
1925
|
+
editAvailability(body) {
|
|
1926
|
+
return this.h("edit-availability", body);
|
|
1888
1927
|
}
|
|
1889
|
-
|
|
1890
|
-
return this.
|
|
1928
|
+
deleteAvailability(body) {
|
|
1929
|
+
return this.h("delete-availability", body);
|
|
1891
1930
|
}
|
|
1892
|
-
|
|
1893
|
-
return this.
|
|
1931
|
+
getDaysAvailableForRange(body) {
|
|
1932
|
+
return this.h("get-days-available-for-range", body);
|
|
1894
1933
|
}
|
|
1895
|
-
|
|
1896
|
-
return this.
|
|
1934
|
+
getAvailableSlotsForRange(body) {
|
|
1935
|
+
return this.h("get-available-slots-for-range", body);
|
|
1897
1936
|
}
|
|
1898
|
-
|
|
1899
|
-
return this.
|
|
1937
|
+
completeCheckout(body) {
|
|
1938
|
+
return this.h("complete-checkout", body);
|
|
1900
1939
|
}
|
|
1901
|
-
|
|
1902
|
-
return this.
|
|
1940
|
+
findAndBookFirstAvailableSlot(body) {
|
|
1941
|
+
return this.h("find-and-book-first-available-slot", body);
|
|
1903
1942
|
}
|
|
1904
|
-
|
|
1905
|
-
|
|
1943
|
+
// Billing
|
|
1944
|
+
getBillingItems(body = {}) {
|
|
1945
|
+
return this.h("get-billing-items", body);
|
|
1906
1946
|
}
|
|
1907
|
-
|
|
1908
|
-
return this.
|
|
1947
|
+
getBillingItem(body) {
|
|
1948
|
+
return this.h("get-billing-item", body);
|
|
1909
1949
|
}
|
|
1910
|
-
|
|
1911
|
-
return this.
|
|
1950
|
+
createBillingItem(body) {
|
|
1951
|
+
return this.h("create-billing-item", body);
|
|
1912
1952
|
}
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
// src/clients/vendors/NppesClient.ts
|
|
1916
|
-
var NppesClient = class extends BaseServiceClient {
|
|
1917
|
-
constructor(http) {
|
|
1918
|
-
super(http, "connectors");
|
|
1953
|
+
updateBillingItem(body) {
|
|
1954
|
+
return this.h("update-billing-item", body);
|
|
1919
1955
|
}
|
|
1920
|
-
|
|
1921
|
-
return this.
|
|
1956
|
+
deleteBillingItem(body) {
|
|
1957
|
+
return this.h("delete-billing-item", body);
|
|
1922
1958
|
}
|
|
1923
|
-
|
|
1924
|
-
|
|
1959
|
+
// Invoices
|
|
1960
|
+
getInvoices(body = {}) {
|
|
1961
|
+
return this.h("get-invoices", body);
|
|
1925
1962
|
}
|
|
1926
|
-
|
|
1927
|
-
return this.
|
|
1963
|
+
getInvoice(body) {
|
|
1964
|
+
return this.h("get-invoice", body);
|
|
1928
1965
|
}
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
// src/clients/vendors/CmsClient.ts
|
|
1932
|
-
var CmsClient = class extends BaseServiceClient {
|
|
1933
|
-
constructor(http) {
|
|
1934
|
-
super(http, "connectors");
|
|
1966
|
+
createInvoice(body) {
|
|
1967
|
+
return this.h("create-invoice", body);
|
|
1935
1968
|
}
|
|
1936
|
-
|
|
1937
|
-
return this.
|
|
1969
|
+
updateInvoice(body) {
|
|
1970
|
+
return this.h("update-invoice", body);
|
|
1938
1971
|
}
|
|
1939
|
-
|
|
1940
|
-
return this.
|
|
1972
|
+
deleteInvoice(body) {
|
|
1973
|
+
return this.h("delete-invoice", body);
|
|
1941
1974
|
}
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
var FedExClient = class extends BaseServiceClient {
|
|
1946
|
-
constructor(http) {
|
|
1947
|
-
super(http, "connectors");
|
|
1975
|
+
// Offerings
|
|
1976
|
+
getOffering(body) {
|
|
1977
|
+
return this.h("get-offering", body);
|
|
1948
1978
|
}
|
|
1949
|
-
|
|
1950
|
-
return this.
|
|
1979
|
+
getOfferings(body = {}) {
|
|
1980
|
+
return this.h("get-offerings", body);
|
|
1951
1981
|
}
|
|
1952
|
-
|
|
1953
|
-
return this.
|
|
1982
|
+
createOffering(body) {
|
|
1983
|
+
return this.h("create-offering", body);
|
|
1954
1984
|
}
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
// src/clients/vendors/ConnectureClient.ts
|
|
1958
|
-
var ConnectureClient = class extends BaseServiceClient {
|
|
1959
|
-
constructor(http) {
|
|
1960
|
-
super(http, "connectors");
|
|
1985
|
+
updateOffering(body) {
|
|
1986
|
+
return this.h("update-offering", body);
|
|
1961
1987
|
}
|
|
1962
|
-
|
|
1963
|
-
return this.
|
|
1988
|
+
copyOffering(body) {
|
|
1989
|
+
return this.h("copy-offering", body);
|
|
1964
1990
|
}
|
|
1965
|
-
|
|
1966
|
-
return this.
|
|
1991
|
+
deleteOffering(body) {
|
|
1992
|
+
return this.h("delete-offering", body);
|
|
1967
1993
|
}
|
|
1968
|
-
|
|
1969
|
-
|
|
1994
|
+
// Insurance
|
|
1995
|
+
getInsurancePayments(body = {}) {
|
|
1996
|
+
return this.h("get-insurance-payments", body);
|
|
1970
1997
|
}
|
|
1971
|
-
|
|
1972
|
-
return this.
|
|
1998
|
+
createInsurancePayment(body) {
|
|
1999
|
+
return this.h("create-insurance-payment", body);
|
|
1973
2000
|
}
|
|
1974
|
-
|
|
1975
|
-
return this.
|
|
2001
|
+
updateManualInsurancePayment(body) {
|
|
2002
|
+
return this.h("update-manual-insurance-payment", body);
|
|
1976
2003
|
}
|
|
1977
|
-
|
|
1978
|
-
return this.
|
|
2004
|
+
updateInsurancePaymentDepositStatus(body) {
|
|
2005
|
+
return this.h("update-insurance-payment-deposit-status", body);
|
|
1979
2006
|
}
|
|
1980
|
-
|
|
1981
|
-
return this.
|
|
2007
|
+
deleteManualInsurancePayment(body) {
|
|
2008
|
+
return this.h("delete-manual-insurance-payment", body);
|
|
1982
2009
|
}
|
|
1983
|
-
|
|
1984
|
-
return this.
|
|
2010
|
+
storePaymentCard(body) {
|
|
2011
|
+
return this.h("store-payment-card", body);
|
|
1985
2012
|
}
|
|
1986
|
-
|
|
1987
|
-
return this.
|
|
2013
|
+
getInsurancePlans(body = {}) {
|
|
2014
|
+
return this.h("get-insurance-plans", body);
|
|
1988
2015
|
}
|
|
1989
|
-
|
|
1990
|
-
return this.
|
|
2016
|
+
acceptInsurancePlans(body) {
|
|
2017
|
+
return this.h("accept-insurance-plans", body);
|
|
1991
2018
|
}
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
// src/clients/vendors/SenaiteClient.ts
|
|
1995
|
-
var SenaiteClient = class extends BaseServiceClient {
|
|
1996
|
-
constructor(http) {
|
|
1997
|
-
super(http, "connectors");
|
|
2019
|
+
removeAcceptedInsurancePlan(body) {
|
|
2020
|
+
return this.h("remove-accepted-insurance-plan", body);
|
|
1998
2021
|
}
|
|
1999
|
-
|
|
2000
|
-
return this.
|
|
2022
|
+
updatePatientInsuranceBilling(body) {
|
|
2023
|
+
return this.h("update-patient-insurance-billing", body);
|
|
2001
2024
|
}
|
|
2002
|
-
|
|
2003
|
-
|
|
2025
|
+
// Super bills / CMS1500
|
|
2026
|
+
getSuperBills(body = {}) {
|
|
2027
|
+
return this.h("get-super-bills", body);
|
|
2004
2028
|
}
|
|
2005
|
-
|
|
2006
|
-
return this.
|
|
2029
|
+
getSuperBill(body) {
|
|
2030
|
+
return this.h("get-super-bill", body);
|
|
2007
2031
|
}
|
|
2008
|
-
|
|
2009
|
-
return this.
|
|
2032
|
+
createSuperBill(body) {
|
|
2033
|
+
return this.h("create-super-bill", body);
|
|
2010
2034
|
}
|
|
2011
|
-
|
|
2012
|
-
return this.
|
|
2035
|
+
updateSuperBill(body) {
|
|
2036
|
+
return this.h("update-super-bill", body);
|
|
2013
2037
|
}
|
|
2014
|
-
|
|
2015
|
-
return this.
|
|
2038
|
+
deleteSuperBill(body) {
|
|
2039
|
+
return this.h("delete-super-bill", body);
|
|
2016
2040
|
}
|
|
2017
|
-
|
|
2018
|
-
return this.
|
|
2041
|
+
getCms1500s(body = {}) {
|
|
2042
|
+
return this.h("get-cms1500s", body);
|
|
2019
2043
|
}
|
|
2020
|
-
|
|
2021
|
-
return this.
|
|
2044
|
+
getCms1500(body) {
|
|
2045
|
+
return this.h("get-cms1500", body);
|
|
2022
2046
|
}
|
|
2023
|
-
|
|
2024
|
-
return this.
|
|
2047
|
+
createCms1500(body) {
|
|
2048
|
+
return this.h("create-cms1500", body);
|
|
2025
2049
|
}
|
|
2026
|
-
|
|
2027
|
-
return this.
|
|
2050
|
+
updateCms1500(body) {
|
|
2051
|
+
return this.h("update-cms1500", body);
|
|
2028
2052
|
}
|
|
2029
|
-
|
|
2030
|
-
return this.
|
|
2053
|
+
deleteCms1500(body) {
|
|
2054
|
+
return this.h("delete-cms1500", body);
|
|
2031
2055
|
}
|
|
2032
|
-
|
|
2033
|
-
|
|
2056
|
+
// Forms
|
|
2057
|
+
getForm(body) {
|
|
2058
|
+
return this.h("get-form", body);
|
|
2034
2059
|
}
|
|
2035
|
-
|
|
2036
|
-
return this.
|
|
2060
|
+
getForms(body = {}) {
|
|
2061
|
+
return this.h("get-forms", body);
|
|
2037
2062
|
}
|
|
2038
|
-
|
|
2039
|
-
return this.
|
|
2063
|
+
createForm(body) {
|
|
2064
|
+
return this.h("create-form", body);
|
|
2040
2065
|
}
|
|
2041
|
-
|
|
2042
|
-
return this.
|
|
2066
|
+
updateForm(body) {
|
|
2067
|
+
return this.h("update-form", body);
|
|
2043
2068
|
}
|
|
2044
|
-
|
|
2045
|
-
return this.
|
|
2069
|
+
deleteForm(body) {
|
|
2070
|
+
return this.h("delete-form", body);
|
|
2046
2071
|
}
|
|
2047
|
-
|
|
2048
|
-
return this.
|
|
2072
|
+
copyForm(body) {
|
|
2073
|
+
return this.h("copy-form", body);
|
|
2049
2074
|
}
|
|
2050
|
-
|
|
2051
|
-
return this.
|
|
2075
|
+
shareForm(body) {
|
|
2076
|
+
return this.h("share-form", body);
|
|
2052
2077
|
}
|
|
2053
|
-
|
|
2054
|
-
return this.
|
|
2078
|
+
createFormAnswerGroup(body) {
|
|
2079
|
+
return this.h("create-form-answer-group", body);
|
|
2055
2080
|
}
|
|
2056
|
-
|
|
2057
|
-
return this.
|
|
2081
|
+
getFormAnswerGroups(body = {}) {
|
|
2082
|
+
return this.h("get-form-answer-groups", body);
|
|
2058
2083
|
}
|
|
2059
|
-
|
|
2060
|
-
return this.
|
|
2084
|
+
fillLabResultReviewForm(body) {
|
|
2085
|
+
return this.h("fill-lab-result-review-form", body);
|
|
2061
2086
|
}
|
|
2062
|
-
|
|
2063
|
-
|
|
2087
|
+
// Onboarding
|
|
2088
|
+
getOnboardingFlows(body = {}) {
|
|
2089
|
+
return this.h("get-onboarding-flows", body);
|
|
2064
2090
|
}
|
|
2065
|
-
|
|
2066
|
-
return this.
|
|
2091
|
+
getOnboardingFlow(body) {
|
|
2092
|
+
return this.h("get-onboarding-flow", body);
|
|
2067
2093
|
}
|
|
2068
|
-
|
|
2069
|
-
return this.
|
|
2094
|
+
createOnboardingFlow(body) {
|
|
2095
|
+
return this.h("create-onboarding-flow", body);
|
|
2070
2096
|
}
|
|
2071
|
-
|
|
2072
|
-
return this.
|
|
2097
|
+
updateOnboardingFlow(body) {
|
|
2098
|
+
return this.h("update-onboarding-flow", body);
|
|
2073
2099
|
}
|
|
2074
|
-
|
|
2075
|
-
return this.
|
|
2100
|
+
deleteOnboardingFlow(body) {
|
|
2101
|
+
return this.h("delete-onboarding-flow", body);
|
|
2076
2102
|
}
|
|
2077
|
-
|
|
2078
|
-
return this.
|
|
2103
|
+
getOnboardingItem(body) {
|
|
2104
|
+
return this.h("get-onboarding-item", body);
|
|
2079
2105
|
}
|
|
2080
|
-
|
|
2081
|
-
return this.
|
|
2106
|
+
createOnboardingItem(body) {
|
|
2107
|
+
return this.h("create-onboarding-item", body);
|
|
2082
2108
|
}
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
// src/clients/vendors/HealthieClient.ts
|
|
2086
|
-
var HealthieClient = class extends BaseServiceClient {
|
|
2087
|
-
constructor(http) {
|
|
2088
|
-
super(http, "connectors");
|
|
2109
|
+
updateOnboardingItem(body) {
|
|
2110
|
+
return this.h("update-onboarding-item", body);
|
|
2089
2111
|
}
|
|
2090
|
-
|
|
2091
|
-
return this.
|
|
2112
|
+
deleteOnboardingItem(body) {
|
|
2113
|
+
return this.h("delete-onboarding-item", body);
|
|
2092
2114
|
}
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
return this.h("create-api-key", body);
|
|
2115
|
+
getAvailableItemTypes(body = {}) {
|
|
2116
|
+
return this.h("get-available-item-types", body);
|
|
2096
2117
|
}
|
|
2097
|
-
|
|
2098
|
-
return this.h("
|
|
2118
|
+
getUnassociatedCompletedOnboardingItems(body = {}) {
|
|
2119
|
+
return this.h("get-unassociated-completed-onboarding-items", body);
|
|
2099
2120
|
}
|
|
2100
|
-
|
|
2101
|
-
return this.h("
|
|
2121
|
+
createCompletedOnboardingItem(body) {
|
|
2122
|
+
return this.h("create-completed-onboarding-item", body);
|
|
2102
2123
|
}
|
|
2103
|
-
|
|
2104
|
-
return this.h("get-
|
|
2124
|
+
getFormCompletionRequests(body = {}) {
|
|
2125
|
+
return this.h("get-form-completion-requests", body);
|
|
2105
2126
|
}
|
|
2106
|
-
|
|
2107
|
-
return this.h("
|
|
2127
|
+
createFormCompletionRequest(body) {
|
|
2128
|
+
return this.h("create-form-completion-request", body);
|
|
2108
2129
|
}
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
return this.h("create-patient", body);
|
|
2130
|
+
deleteFormCompletionRequest(body) {
|
|
2131
|
+
return this.h("delete-form-completion-request", body);
|
|
2112
2132
|
}
|
|
2113
|
-
|
|
2114
|
-
return this.h("
|
|
2133
|
+
createOpenLoopForm(body) {
|
|
2134
|
+
return this.h("create-open-loop-form", body);
|
|
2115
2135
|
}
|
|
2116
|
-
|
|
2117
|
-
|
|
2136
|
+
// Documents
|
|
2137
|
+
getDocuments(body = {}) {
|
|
2138
|
+
return this.h("get-documents", body);
|
|
2118
2139
|
}
|
|
2119
|
-
|
|
2120
|
-
return this.h("get-patient", body);
|
|
2140
|
+
getPatientDocuments(body) {
|
|
2141
|
+
return this.h("get-patient-documents", body);
|
|
2121
2142
|
}
|
|
2122
|
-
|
|
2123
|
-
return this.h("get-
|
|
2143
|
+
getDocument(body) {
|
|
2144
|
+
return this.h("get-document", body);
|
|
2124
2145
|
}
|
|
2125
|
-
|
|
2126
|
-
return this.h("
|
|
2146
|
+
updateDocument(body) {
|
|
2147
|
+
return this.h("update-document", body);
|
|
2127
2148
|
}
|
|
2128
|
-
|
|
2129
|
-
return this.h("
|
|
2149
|
+
deleteDocument(body) {
|
|
2150
|
+
return this.h("delete-document", body);
|
|
2130
2151
|
}
|
|
2131
|
-
|
|
2132
|
-
|
|
2152
|
+
// Notes
|
|
2153
|
+
getPatientNotes(body) {
|
|
2154
|
+
return this.h("get-patient-notes", body);
|
|
2133
2155
|
}
|
|
2134
|
-
|
|
2135
|
-
return this.h("
|
|
2156
|
+
createNote(body) {
|
|
2157
|
+
return this.h("create-note", body);
|
|
2136
2158
|
}
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
return this.h("create-location", body);
|
|
2159
|
+
createPersonalizationQuestionnaire(body) {
|
|
2160
|
+
return this.h("create-personalization-questionnaire", body);
|
|
2140
2161
|
}
|
|
2141
|
-
|
|
2142
|
-
|
|
2162
|
+
// Conversations
|
|
2163
|
+
getConversation(body) {
|
|
2164
|
+
return this.h("get-conversation", body);
|
|
2143
2165
|
}
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
return this.h("get-appointment-type", body);
|
|
2166
|
+
getConversationMemberships(body) {
|
|
2167
|
+
return this.h("get-conversation-memberships", body);
|
|
2147
2168
|
}
|
|
2148
|
-
|
|
2149
|
-
return this.h("
|
|
2169
|
+
createConversation(body) {
|
|
2170
|
+
return this.h("create-conversation", body);
|
|
2150
2171
|
}
|
|
2151
|
-
|
|
2152
|
-
return this.h("
|
|
2172
|
+
updateConversation(body) {
|
|
2173
|
+
return this.h("update-conversation", body);
|
|
2153
2174
|
}
|
|
2154
|
-
|
|
2155
|
-
return this.h("
|
|
2175
|
+
closeConversation(body) {
|
|
2176
|
+
return this.h("close-conversation", body);
|
|
2156
2177
|
}
|
|
2157
|
-
|
|
2158
|
-
return this.h("
|
|
2178
|
+
sendChatMessage(body) {
|
|
2179
|
+
return this.h("send-chat-message", body);
|
|
2159
2180
|
}
|
|
2160
|
-
|
|
2161
|
-
|
|
2181
|
+
// Fax
|
|
2182
|
+
getSentFaxes(body = {}) {
|
|
2183
|
+
return this.h("get-sent-faxes", body);
|
|
2162
2184
|
}
|
|
2163
|
-
|
|
2164
|
-
return this.h("
|
|
2185
|
+
getSentFax(body) {
|
|
2186
|
+
return this.h("get-sent-fax", body);
|
|
2165
2187
|
}
|
|
2166
|
-
|
|
2167
|
-
return this.h("
|
|
2188
|
+
sendFax(body) {
|
|
2189
|
+
return this.h("send-fax", body);
|
|
2168
2190
|
}
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
return this.h("get-appointment", body);
|
|
2191
|
+
getReceivedFaxes(body = {}) {
|
|
2192
|
+
return this.h("get-received-faxes", body);
|
|
2172
2193
|
}
|
|
2173
|
-
|
|
2174
|
-
return this.h("get-
|
|
2194
|
+
getReceivedFax(body) {
|
|
2195
|
+
return this.h("get-received-fax", body);
|
|
2175
2196
|
}
|
|
2176
|
-
|
|
2177
|
-
|
|
2197
|
+
// Entries / Metrics
|
|
2198
|
+
getEntries(body = {}) {
|
|
2199
|
+
return this.h("get-entries", body);
|
|
2178
2200
|
}
|
|
2179
|
-
|
|
2180
|
-
return this.h("
|
|
2201
|
+
getEntry(body) {
|
|
2202
|
+
return this.h("get-entry", body);
|
|
2181
2203
|
}
|
|
2182
|
-
|
|
2183
|
-
return this.h("
|
|
2204
|
+
createEntry(body) {
|
|
2205
|
+
return this.h("create-entry", body);
|
|
2184
2206
|
}
|
|
2185
|
-
|
|
2186
|
-
return this.h("
|
|
2207
|
+
updateEntry(body) {
|
|
2208
|
+
return this.h("update-entry", body);
|
|
2187
2209
|
}
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
return this.h("get-availabilities", body);
|
|
2210
|
+
deleteEntry(body) {
|
|
2211
|
+
return this.h("delete-entry", body);
|
|
2191
2212
|
}
|
|
2192
|
-
|
|
2193
|
-
return this.h("
|
|
2213
|
+
createMetricEntry(body) {
|
|
2214
|
+
return this.h("create-metric-entry", body);
|
|
2194
2215
|
}
|
|
2195
|
-
|
|
2196
|
-
return this.h("
|
|
2216
|
+
getMetricEntries(body = {}) {
|
|
2217
|
+
return this.h("get-metric-entries", body);
|
|
2197
2218
|
}
|
|
2198
|
-
|
|
2199
|
-
|
|
2219
|
+
// Goals
|
|
2220
|
+
getGoals(body = {}) {
|
|
2221
|
+
return this.h("get-goals", body);
|
|
2200
2222
|
}
|
|
2201
|
-
|
|
2202
|
-
return this.h("
|
|
2223
|
+
getGoal(body) {
|
|
2224
|
+
return this.h("get-goal", body);
|
|
2203
2225
|
}
|
|
2204
|
-
|
|
2205
|
-
return this.h("
|
|
2226
|
+
createGoal(body) {
|
|
2227
|
+
return this.h("create-goal", body);
|
|
2206
2228
|
}
|
|
2207
|
-
|
|
2208
|
-
return this.h("
|
|
2229
|
+
updateGoal(body) {
|
|
2230
|
+
return this.h("update-goal", body);
|
|
2209
2231
|
}
|
|
2210
|
-
|
|
2211
|
-
return this.h("
|
|
2232
|
+
deleteGoal(body) {
|
|
2233
|
+
return this.h("delete-goal", body);
|
|
2212
2234
|
}
|
|
2213
|
-
|
|
2214
|
-
return this.h("
|
|
2235
|
+
getGoalHistories(body) {
|
|
2236
|
+
return this.h("get-goal-histories", body);
|
|
2215
2237
|
}
|
|
2216
|
-
|
|
2217
|
-
|
|
2238
|
+
// Tasks
|
|
2239
|
+
getTask(body) {
|
|
2240
|
+
return this.h("get-task", body);
|
|
2218
2241
|
}
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
return this.h("get-billing-items", body);
|
|
2242
|
+
getTasks(body = {}) {
|
|
2243
|
+
return this.h("get-tasks", body);
|
|
2222
2244
|
}
|
|
2223
|
-
|
|
2224
|
-
return this.h("
|
|
2245
|
+
createTask(body) {
|
|
2246
|
+
return this.h("create-task", body);
|
|
2225
2247
|
}
|
|
2226
|
-
|
|
2227
|
-
return this.h("
|
|
2248
|
+
updateTask(body) {
|
|
2249
|
+
return this.h("update-task", body);
|
|
2228
2250
|
}
|
|
2229
|
-
|
|
2230
|
-
return this.h("
|
|
2251
|
+
deleteTask(body) {
|
|
2252
|
+
return this.h("delete-task", body);
|
|
2231
2253
|
}
|
|
2232
|
-
|
|
2233
|
-
return this.h("
|
|
2254
|
+
markTasksAsSeen(body) {
|
|
2255
|
+
return this.h("mark-tasks-as-seen", body);
|
|
2234
2256
|
}
|
|
2235
|
-
//
|
|
2236
|
-
|
|
2237
|
-
return this.h("get-
|
|
2257
|
+
// Care plans
|
|
2258
|
+
getCarePlans(body = {}) {
|
|
2259
|
+
return this.h("get-care-plans", body);
|
|
2238
2260
|
}
|
|
2239
|
-
|
|
2240
|
-
return this.h("get-
|
|
2261
|
+
getCarePlan(body) {
|
|
2262
|
+
return this.h("get-care-plan", body);
|
|
2241
2263
|
}
|
|
2242
|
-
|
|
2243
|
-
return this.h("create-
|
|
2264
|
+
createCarePlan(body) {
|
|
2265
|
+
return this.h("create-care-plan", body);
|
|
2244
2266
|
}
|
|
2245
|
-
|
|
2246
|
-
return this.h("update-
|
|
2267
|
+
updateCarePlan(body) {
|
|
2268
|
+
return this.h("update-care-plan", body);
|
|
2247
2269
|
}
|
|
2248
|
-
|
|
2249
|
-
return this.h("delete-
|
|
2270
|
+
deleteCarePlan(body) {
|
|
2271
|
+
return this.h("delete-care-plan", body);
|
|
2250
2272
|
}
|
|
2251
|
-
//
|
|
2252
|
-
|
|
2253
|
-
return this.h("get-
|
|
2273
|
+
// Programs
|
|
2274
|
+
getPrograms(body = {}) {
|
|
2275
|
+
return this.h("get-programs", body);
|
|
2254
2276
|
}
|
|
2255
|
-
|
|
2256
|
-
return this.h("get-
|
|
2277
|
+
getProgram(body) {
|
|
2278
|
+
return this.h("get-program", body);
|
|
2257
2279
|
}
|
|
2258
|
-
|
|
2259
|
-
return this.h("create-
|
|
2280
|
+
createProgram(body) {
|
|
2281
|
+
return this.h("create-program", body);
|
|
2260
2282
|
}
|
|
2261
|
-
|
|
2262
|
-
return this.h("update-
|
|
2283
|
+
updateProgram(body) {
|
|
2284
|
+
return this.h("update-program", body);
|
|
2263
2285
|
}
|
|
2264
|
-
|
|
2265
|
-
return this.h("
|
|
2286
|
+
deleteProgram(body) {
|
|
2287
|
+
return this.h("delete-program", body);
|
|
2266
2288
|
}
|
|
2267
|
-
|
|
2268
|
-
|
|
2289
|
+
// Episodes of care
|
|
2290
|
+
getPatientEncounter(body) {
|
|
2291
|
+
return this.h("get-patient-encounter", body);
|
|
2269
2292
|
}
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
return this.h("get-insurance-payments", body);
|
|
2293
|
+
getEpisodesOfCare(body = {}) {
|
|
2294
|
+
return this.h("get-episodes-of-care", body);
|
|
2273
2295
|
}
|
|
2274
|
-
|
|
2275
|
-
return this.h("create-
|
|
2296
|
+
createEpisodeOfCare(body) {
|
|
2297
|
+
return this.h("create-episode-of-care", body);
|
|
2276
2298
|
}
|
|
2277
|
-
|
|
2278
|
-
return this.h("update-
|
|
2299
|
+
updateEpisodeOfCare(body) {
|
|
2300
|
+
return this.h("update-episode-of-care", body);
|
|
2279
2301
|
}
|
|
2280
|
-
|
|
2281
|
-
return this.h("
|
|
2302
|
+
deleteEpisodeOfCare(body) {
|
|
2303
|
+
return this.h("delete-episode-of-care", body);
|
|
2282
2304
|
}
|
|
2283
|
-
|
|
2284
|
-
return this.h("
|
|
2305
|
+
linkEncountersToEpisode(body) {
|
|
2306
|
+
return this.h("link-encounters-to-episode", body);
|
|
2285
2307
|
}
|
|
2286
|
-
|
|
2287
|
-
return this.h("
|
|
2308
|
+
unlinkEncountersFromEpisode(body) {
|
|
2309
|
+
return this.h("unlink-encounters-from-episode", body);
|
|
2288
2310
|
}
|
|
2289
|
-
|
|
2290
|
-
|
|
2311
|
+
// CCDA
|
|
2312
|
+
parseCcdaDocument(body) {
|
|
2313
|
+
return this.h("parse-ccda-document", body);
|
|
2291
2314
|
}
|
|
2292
|
-
|
|
2293
|
-
return this.h("
|
|
2315
|
+
completeCcdaReconciliation(body) {
|
|
2316
|
+
return this.h("complete-ccda-reconciliation", body);
|
|
2294
2317
|
}
|
|
2295
|
-
|
|
2296
|
-
|
|
2318
|
+
// Diagnoses / Problems
|
|
2319
|
+
getPatientDiagnoses(body) {
|
|
2320
|
+
return this.h("get-patient-diagnoses", body);
|
|
2297
2321
|
}
|
|
2298
|
-
|
|
2299
|
-
return this.h("
|
|
2322
|
+
addDiagnosis(body) {
|
|
2323
|
+
return this.h("add-diagnosis", body);
|
|
2300
2324
|
}
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
return this.h("get-super-bills", body);
|
|
2325
|
+
updateDiagnosis(body) {
|
|
2326
|
+
return this.h("update-diagnosis", body);
|
|
2304
2327
|
}
|
|
2305
|
-
|
|
2306
|
-
return this.h("
|
|
2328
|
+
removeDiagnosis(body) {
|
|
2329
|
+
return this.h("remove-diagnosis", body);
|
|
2307
2330
|
}
|
|
2308
|
-
|
|
2309
|
-
return this.h("
|
|
2331
|
+
bulkUpdateDiagnoses(body) {
|
|
2332
|
+
return this.h("bulk-update-diagnoses", body);
|
|
2310
2333
|
}
|
|
2311
|
-
|
|
2312
|
-
return this.h("
|
|
2334
|
+
getPatientProblems(body) {
|
|
2335
|
+
return this.h("get-patient-problems", body);
|
|
2313
2336
|
}
|
|
2314
|
-
|
|
2315
|
-
|
|
2337
|
+
// Family history
|
|
2338
|
+
createFamilyHistory(body) {
|
|
2339
|
+
return this.h("create-family-history", body);
|
|
2316
2340
|
}
|
|
2317
|
-
|
|
2318
|
-
return this.h("
|
|
2341
|
+
updateFamilyHistory(body) {
|
|
2342
|
+
return this.h("update-family-history", body);
|
|
2319
2343
|
}
|
|
2320
|
-
|
|
2321
|
-
return this.h("
|
|
2344
|
+
deleteFamilyHistory(body) {
|
|
2345
|
+
return this.h("delete-family-history", body);
|
|
2322
2346
|
}
|
|
2323
|
-
|
|
2324
|
-
|
|
2347
|
+
// Immunizations
|
|
2348
|
+
getPatientImmunizations(body) {
|
|
2349
|
+
return this.h("get-patient-immunizations", body);
|
|
2325
2350
|
}
|
|
2326
|
-
|
|
2327
|
-
return this.h("
|
|
2351
|
+
createImmunization(body) {
|
|
2352
|
+
return this.h("create-immunization", body);
|
|
2328
2353
|
}
|
|
2329
|
-
|
|
2330
|
-
return this.h("
|
|
2354
|
+
updateImmunization(body) {
|
|
2355
|
+
return this.h("update-immunization", body);
|
|
2331
2356
|
}
|
|
2332
|
-
//
|
|
2333
|
-
|
|
2334
|
-
return this.h("get-
|
|
2357
|
+
// Medications
|
|
2358
|
+
getMedications(body) {
|
|
2359
|
+
return this.h("get-medications", body);
|
|
2335
2360
|
}
|
|
2336
|
-
|
|
2337
|
-
return this.h("
|
|
2361
|
+
createMedication(body) {
|
|
2362
|
+
return this.h("create-medication", body);
|
|
2338
2363
|
}
|
|
2339
|
-
|
|
2340
|
-
return this.h("
|
|
2364
|
+
updateMedication(body) {
|
|
2365
|
+
return this.h("update-medication", body);
|
|
2341
2366
|
}
|
|
2342
|
-
|
|
2343
|
-
return this.h("
|
|
2367
|
+
deleteMedication(body) {
|
|
2368
|
+
return this.h("delete-medication", body);
|
|
2344
2369
|
}
|
|
2345
|
-
|
|
2346
|
-
|
|
2370
|
+
// Lab orders
|
|
2371
|
+
getLabOrders(body = {}) {
|
|
2372
|
+
return this.h("get-lab-orders", body);
|
|
2347
2373
|
}
|
|
2348
|
-
|
|
2349
|
-
return this.h("
|
|
2374
|
+
getLabOrder(body) {
|
|
2375
|
+
return this.h("get-lab-order", body);
|
|
2350
2376
|
}
|
|
2351
|
-
|
|
2352
|
-
return this.h("
|
|
2377
|
+
createLabOrder(body) {
|
|
2378
|
+
return this.h("create-lab-order", body);
|
|
2353
2379
|
}
|
|
2354
|
-
|
|
2355
|
-
return this.h("create-
|
|
2380
|
+
createRupaOrder(body) {
|
|
2381
|
+
return this.h("create-rupa-order", body);
|
|
2356
2382
|
}
|
|
2357
|
-
|
|
2358
|
-
return this.h("
|
|
2383
|
+
updateLabOrder(body) {
|
|
2384
|
+
return this.h("update-lab-order", body);
|
|
2359
2385
|
}
|
|
2360
|
-
|
|
2361
|
-
return this.h("
|
|
2386
|
+
getLabResult(body) {
|
|
2387
|
+
return this.h("get-lab-result", body);
|
|
2362
2388
|
}
|
|
2363
|
-
//
|
|
2364
|
-
|
|
2365
|
-
return this.h("get-
|
|
2389
|
+
// Pharmacy
|
|
2390
|
+
getPharmacy(body) {
|
|
2391
|
+
return this.h("get-pharmacy", body);
|
|
2366
2392
|
}
|
|
2367
|
-
|
|
2368
|
-
return this.h("
|
|
2393
|
+
searchPharmacies(body) {
|
|
2394
|
+
return this.h("search-pharmacies", body);
|
|
2369
2395
|
}
|
|
2370
|
-
|
|
2371
|
-
return this.h("
|
|
2396
|
+
addPharmacy(body) {
|
|
2397
|
+
return this.h("add-pharmacy", body);
|
|
2372
2398
|
}
|
|
2373
|
-
|
|
2374
|
-
return this.h("
|
|
2399
|
+
getPatientDefaultPharmacy(body) {
|
|
2400
|
+
return this.h("get-patient-default-pharmacy", body);
|
|
2375
2401
|
}
|
|
2376
|
-
|
|
2377
|
-
|
|
2402
|
+
// Organization
|
|
2403
|
+
getOrganizationDetailed(body = {}) {
|
|
2404
|
+
return this.h("get-organization-detailed", body);
|
|
2378
2405
|
}
|
|
2379
|
-
|
|
2380
|
-
return this.h("
|
|
2406
|
+
listOrganizationMembers(body = {}) {
|
|
2407
|
+
return this.h("list-organization-members", body);
|
|
2381
2408
|
}
|
|
2382
|
-
|
|
2383
|
-
return this.h("create-
|
|
2409
|
+
createOrganizationMembership(body) {
|
|
2410
|
+
return this.h("create-organization-membership", body);
|
|
2384
2411
|
}
|
|
2385
|
-
|
|
2386
|
-
return this.h("update-
|
|
2412
|
+
updateOrganizationMembership(body) {
|
|
2413
|
+
return this.h("update-organization-membership", body);
|
|
2387
2414
|
}
|
|
2388
|
-
|
|
2389
|
-
return this.h("delete-
|
|
2415
|
+
deleteOrganizationMembership(body) {
|
|
2416
|
+
return this.h("delete-organization-membership", body);
|
|
2390
2417
|
}
|
|
2391
|
-
|
|
2392
|
-
return this.h("get-
|
|
2418
|
+
getOrganization(body = {}) {
|
|
2419
|
+
return this.h("get-organization", body);
|
|
2393
2420
|
}
|
|
2394
|
-
|
|
2395
|
-
return this.h("get-
|
|
2421
|
+
getDietitianId(body = {}) {
|
|
2422
|
+
return this.h("get-dietitian-id", body);
|
|
2396
2423
|
}
|
|
2397
|
-
|
|
2398
|
-
return this.h("
|
|
2424
|
+
getOrganizationMembers(body = {}) {
|
|
2425
|
+
return this.h("get-organization-members", body);
|
|
2399
2426
|
}
|
|
2400
|
-
|
|
2401
|
-
return this.h("get-
|
|
2427
|
+
getProvider(body) {
|
|
2428
|
+
return this.h("get-provider", body);
|
|
2402
2429
|
}
|
|
2403
|
-
|
|
2404
|
-
|
|
2430
|
+
// User groups
|
|
2431
|
+
getUserGroup(body) {
|
|
2432
|
+
return this.h("get-user-group", body);
|
|
2405
2433
|
}
|
|
2406
|
-
|
|
2407
|
-
return this.h("
|
|
2434
|
+
getUserGroups(body = {}) {
|
|
2435
|
+
return this.h("get-user-groups", body);
|
|
2408
2436
|
}
|
|
2409
|
-
|
|
2410
|
-
return this.h("create-
|
|
2437
|
+
createUserGroup(body) {
|
|
2438
|
+
return this.h("create-user-group", body);
|
|
2411
2439
|
}
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
return this.h("get-documents", body);
|
|
2440
|
+
updateUserGroup(body) {
|
|
2441
|
+
return this.h("update-user-group", body);
|
|
2415
2442
|
}
|
|
2416
|
-
|
|
2417
|
-
return this.h("
|
|
2443
|
+
deleteUserGroup(body) {
|
|
2444
|
+
return this.h("delete-user-group", body);
|
|
2418
2445
|
}
|
|
2419
|
-
|
|
2420
|
-
|
|
2446
|
+
// Tags
|
|
2447
|
+
getTags(body = {}) {
|
|
2448
|
+
return this.h("get-tags", body);
|
|
2421
2449
|
}
|
|
2422
|
-
|
|
2423
|
-
return this.h("
|
|
2450
|
+
createTag(body) {
|
|
2451
|
+
return this.h("create-tag", body);
|
|
2424
2452
|
}
|
|
2425
|
-
|
|
2426
|
-
return this.h("
|
|
2453
|
+
updateTag(body) {
|
|
2454
|
+
return this.h("update-tag", body);
|
|
2427
2455
|
}
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
return this.h("get-patient-notes", body);
|
|
2456
|
+
deleteTag(body) {
|
|
2457
|
+
return this.h("delete-tag", body);
|
|
2431
2458
|
}
|
|
2432
|
-
|
|
2433
|
-
return this.h("
|
|
2459
|
+
bulkApplyTags(body) {
|
|
2460
|
+
return this.h("bulk-apply-tags", body);
|
|
2434
2461
|
}
|
|
2435
|
-
|
|
2436
|
-
return this.h("
|
|
2462
|
+
removeAppliedTag(body) {
|
|
2463
|
+
return this.h("remove-applied-tag", body);
|
|
2437
2464
|
}
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2465
|
+
};
|
|
2466
|
+
|
|
2467
|
+
// src/clients/connectors/ImpiloClient.ts
|
|
2468
|
+
var ImpiloClient = class extends ConnectorClient {
|
|
2469
|
+
constructor(http, credentials) {
|
|
2470
|
+
super(http, credentials);
|
|
2441
2471
|
}
|
|
2442
|
-
|
|
2443
|
-
return this.
|
|
2472
|
+
i(op, body = {}) {
|
|
2473
|
+
return this.send("POST", `/connectors/impilo/${op}`, { body });
|
|
2444
2474
|
}
|
|
2445
|
-
|
|
2446
|
-
|
|
2475
|
+
// Patients
|
|
2476
|
+
createPatient(body) {
|
|
2477
|
+
return this.i("create-patient", body);
|
|
2447
2478
|
}
|
|
2448
|
-
|
|
2449
|
-
return this.
|
|
2479
|
+
getPatient(body) {
|
|
2480
|
+
return this.i("get-patient", body);
|
|
2450
2481
|
}
|
|
2451
|
-
|
|
2452
|
-
return this.
|
|
2482
|
+
listPatients(body = {}) {
|
|
2483
|
+
return this.i("list-patients", body);
|
|
2453
2484
|
}
|
|
2454
|
-
|
|
2455
|
-
return this.
|
|
2485
|
+
updatePatient(body) {
|
|
2486
|
+
return this.i("update-patient", body);
|
|
2456
2487
|
}
|
|
2457
|
-
//
|
|
2458
|
-
|
|
2459
|
-
return this.
|
|
2488
|
+
// Devices
|
|
2489
|
+
getDevice(body) {
|
|
2490
|
+
return this.i("get-device", body);
|
|
2460
2491
|
}
|
|
2461
|
-
|
|
2462
|
-
return this.
|
|
2492
|
+
listDevices(body = {}) {
|
|
2493
|
+
return this.i("list-devices", body);
|
|
2463
2494
|
}
|
|
2464
|
-
|
|
2465
|
-
return this.
|
|
2495
|
+
associateDevice(body) {
|
|
2496
|
+
return this.i("associate-device", body);
|
|
2497
|
+
}
|
|
2498
|
+
disassociateDevice(body) {
|
|
2499
|
+
return this.i("disassociate-device", body);
|
|
2466
2500
|
}
|
|
2467
|
-
|
|
2468
|
-
return this.
|
|
2501
|
+
enableReadings(body) {
|
|
2502
|
+
return this.i("enable-readings", body);
|
|
2469
2503
|
}
|
|
2470
|
-
|
|
2471
|
-
return this.
|
|
2504
|
+
disableReadings(body) {
|
|
2505
|
+
return this.i("disable-readings", body);
|
|
2472
2506
|
}
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
return this.h("get-entries", body);
|
|
2507
|
+
validateDevice(body) {
|
|
2508
|
+
return this.i("validate-device", body);
|
|
2476
2509
|
}
|
|
2477
|
-
|
|
2478
|
-
|
|
2510
|
+
// Kits
|
|
2511
|
+
getKit(body) {
|
|
2512
|
+
return this.i("get-kit", body);
|
|
2479
2513
|
}
|
|
2480
|
-
|
|
2481
|
-
return this.
|
|
2514
|
+
listKits(body = {}) {
|
|
2515
|
+
return this.i("list-kits", body);
|
|
2482
2516
|
}
|
|
2483
|
-
|
|
2484
|
-
return this.
|
|
2517
|
+
linkKitToPatient(body) {
|
|
2518
|
+
return this.i("link-kit-to-patient", body);
|
|
2485
2519
|
}
|
|
2486
|
-
|
|
2487
|
-
return this.
|
|
2520
|
+
unlinkKitFromPatient(body) {
|
|
2521
|
+
return this.i("unlink-kit-from-patient", body);
|
|
2488
2522
|
}
|
|
2489
|
-
|
|
2490
|
-
|
|
2523
|
+
// Orders
|
|
2524
|
+
createOrder(body) {
|
|
2525
|
+
return this.i("create-order", body);
|
|
2491
2526
|
}
|
|
2492
|
-
|
|
2493
|
-
return this.
|
|
2527
|
+
getOrder(body) {
|
|
2528
|
+
return this.i("get-order", body);
|
|
2494
2529
|
}
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
return this.h("get-goals", body);
|
|
2530
|
+
listOrders(body = {}) {
|
|
2531
|
+
return this.i("list-orders", body);
|
|
2498
2532
|
}
|
|
2499
|
-
|
|
2500
|
-
|
|
2533
|
+
// Readings
|
|
2534
|
+
recordBloodPressureReading(body) {
|
|
2535
|
+
return this.i("record-blood-pressure-reading", body);
|
|
2501
2536
|
}
|
|
2502
|
-
|
|
2503
|
-
return this.
|
|
2537
|
+
getBloodPressureReading(body) {
|
|
2538
|
+
return this.i("get-blood-pressure-reading", body);
|
|
2504
2539
|
}
|
|
2505
|
-
|
|
2506
|
-
return this.
|
|
2540
|
+
listBloodPressureReadings(body = {}) {
|
|
2541
|
+
return this.i("list-blood-pressure-readings", body);
|
|
2507
2542
|
}
|
|
2508
|
-
|
|
2509
|
-
return this.
|
|
2543
|
+
recordBloodGlucoseReading(body) {
|
|
2544
|
+
return this.i("record-blood-glucose-reading", body);
|
|
2510
2545
|
}
|
|
2511
|
-
|
|
2512
|
-
return this.
|
|
2546
|
+
getBloodGlucoseReading(body) {
|
|
2547
|
+
return this.i("get-blood-glucose-reading", body);
|
|
2513
2548
|
}
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
return this.h("get-task", body);
|
|
2549
|
+
listBloodGlucoseReadings(body = {}) {
|
|
2550
|
+
return this.i("list-blood-glucose-readings", body);
|
|
2517
2551
|
}
|
|
2518
|
-
|
|
2519
|
-
return this.
|
|
2552
|
+
recordBloodOxygenReading(body) {
|
|
2553
|
+
return this.i("record-blood-oxygen-reading", body);
|
|
2520
2554
|
}
|
|
2521
|
-
|
|
2522
|
-
return this.
|
|
2555
|
+
getBloodOxygenReading(body) {
|
|
2556
|
+
return this.i("get-blood-oxygen-reading", body);
|
|
2523
2557
|
}
|
|
2524
|
-
|
|
2525
|
-
return this.
|
|
2558
|
+
listBloodOxygenReadings(body = {}) {
|
|
2559
|
+
return this.i("list-blood-oxygen-readings", body);
|
|
2526
2560
|
}
|
|
2527
|
-
|
|
2528
|
-
return this.
|
|
2561
|
+
recordWeightReading(body) {
|
|
2562
|
+
return this.i("record-weight-reading", body);
|
|
2529
2563
|
}
|
|
2530
|
-
|
|
2531
|
-
return this.
|
|
2564
|
+
getWeightReading(body) {
|
|
2565
|
+
return this.i("get-weight-reading", body);
|
|
2532
2566
|
}
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
return this.h("get-care-plans", body);
|
|
2567
|
+
listWeightReadings(body = {}) {
|
|
2568
|
+
return this.i("list-weight-readings", body);
|
|
2536
2569
|
}
|
|
2537
|
-
|
|
2538
|
-
return this.
|
|
2570
|
+
recordTemperatureReading(body) {
|
|
2571
|
+
return this.i("record-temperature-reading", body);
|
|
2539
2572
|
}
|
|
2540
|
-
|
|
2541
|
-
return this.
|
|
2573
|
+
getTemperatureReading(body) {
|
|
2574
|
+
return this.i("get-temperature-reading", body);
|
|
2542
2575
|
}
|
|
2543
|
-
|
|
2544
|
-
return this.
|
|
2576
|
+
listTemperatureReadings(body = {}) {
|
|
2577
|
+
return this.i("list-temperature-readings", body);
|
|
2545
2578
|
}
|
|
2546
|
-
|
|
2547
|
-
return this.
|
|
2579
|
+
recordHeartRateReading(body) {
|
|
2580
|
+
return this.i("record-heart-rate-reading", body);
|
|
2548
2581
|
}
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
return this.h("get-programs", body);
|
|
2582
|
+
getHeartRateReading(body) {
|
|
2583
|
+
return this.i("get-heart-rate-reading", body);
|
|
2552
2584
|
}
|
|
2553
|
-
|
|
2554
|
-
return this.
|
|
2585
|
+
listHeartRateReadings(body = {}) {
|
|
2586
|
+
return this.i("list-heart-rate-readings", body);
|
|
2555
2587
|
}
|
|
2556
|
-
|
|
2557
|
-
return this.
|
|
2588
|
+
listSpirometryReadings(body = {}) {
|
|
2589
|
+
return this.i("list-spirometry-readings", body);
|
|
2558
2590
|
}
|
|
2559
|
-
|
|
2560
|
-
|
|
2591
|
+
// Clinical notes
|
|
2592
|
+
getClinicalNote(body) {
|
|
2593
|
+
return this.i("get-clinical-note", body);
|
|
2561
2594
|
}
|
|
2562
|
-
|
|
2563
|
-
return this.
|
|
2595
|
+
listClinicalNotes(body = {}) {
|
|
2596
|
+
return this.i("list-clinical-notes", body);
|
|
2564
2597
|
}
|
|
2565
|
-
//
|
|
2566
|
-
|
|
2567
|
-
return this.
|
|
2598
|
+
// Inventory
|
|
2599
|
+
listSiteInventory(body = {}) {
|
|
2600
|
+
return this.i("list-site-inventory", body);
|
|
2568
2601
|
}
|
|
2569
|
-
|
|
2570
|
-
return this.
|
|
2602
|
+
listKitInventory(body = {}) {
|
|
2603
|
+
return this.i("list-kit-inventory", body);
|
|
2571
2604
|
}
|
|
2572
|
-
|
|
2573
|
-
|
|
2605
|
+
// Procurements
|
|
2606
|
+
createProcurement(body) {
|
|
2607
|
+
return this.i("create-procurement", body);
|
|
2574
2608
|
}
|
|
2575
|
-
|
|
2576
|
-
return this.
|
|
2609
|
+
listProcurements(body = {}) {
|
|
2610
|
+
return this.i("list-procurements", body);
|
|
2577
2611
|
}
|
|
2578
|
-
|
|
2579
|
-
|
|
2612
|
+
// Items
|
|
2613
|
+
createItem(body) {
|
|
2614
|
+
return this.i("create-item", body);
|
|
2580
2615
|
}
|
|
2581
|
-
|
|
2582
|
-
return this.
|
|
2616
|
+
getItem(body) {
|
|
2617
|
+
return this.i("get-item", body);
|
|
2583
2618
|
}
|
|
2584
|
-
|
|
2585
|
-
return this.
|
|
2619
|
+
listItems(body = {}) {
|
|
2620
|
+
return this.i("list-items", body);
|
|
2586
2621
|
}
|
|
2587
|
-
//
|
|
2588
|
-
|
|
2589
|
-
return this.
|
|
2622
|
+
// Alert configs
|
|
2623
|
+
getPatientAlertConfig(body) {
|
|
2624
|
+
return this.i("get-patient-alert-config", body);
|
|
2590
2625
|
}
|
|
2591
|
-
|
|
2592
|
-
return this.
|
|
2626
|
+
setPatientAlertConfig(body) {
|
|
2627
|
+
return this.i("set-patient-alert-config", body);
|
|
2593
2628
|
}
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
return this.h("get-patient-diagnoses", body);
|
|
2629
|
+
getSiteAlertConfig(body) {
|
|
2630
|
+
return this.i("get-site-alert-config", body);
|
|
2597
2631
|
}
|
|
2598
|
-
|
|
2599
|
-
return this.
|
|
2632
|
+
setSiteAlertConfig(body) {
|
|
2633
|
+
return this.i("set-site-alert-config", body);
|
|
2600
2634
|
}
|
|
2601
|
-
|
|
2602
|
-
return this.
|
|
2635
|
+
getGlobalAlertConfig(body) {
|
|
2636
|
+
return this.i("get-global-alert-config", body);
|
|
2603
2637
|
}
|
|
2604
|
-
|
|
2605
|
-
return this.
|
|
2638
|
+
setGlobalAlertConfig(body) {
|
|
2639
|
+
return this.i("set-global-alert-config", body);
|
|
2606
2640
|
}
|
|
2607
|
-
|
|
2608
|
-
|
|
2641
|
+
// Webhooks
|
|
2642
|
+
registerWebhooks(body) {
|
|
2643
|
+
return this.i("register-webhooks", body);
|
|
2609
2644
|
}
|
|
2610
|
-
|
|
2611
|
-
return this.
|
|
2645
|
+
fetchProcurementDocument(body) {
|
|
2646
|
+
return this.send("POST", "/connectors/impilo/fetch-procurement-document", { body });
|
|
2612
2647
|
}
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
return this.h("create-family-history", body);
|
|
2648
|
+
getOrderSummary(body) {
|
|
2649
|
+
return this.send("POST", "/connectors/impilo/get-order-summary", { body });
|
|
2616
2650
|
}
|
|
2617
|
-
|
|
2618
|
-
|
|
2651
|
+
};
|
|
2652
|
+
|
|
2653
|
+
// src/clients/connectors/JunctionClient.ts
|
|
2654
|
+
var JunctionClient = class extends ConnectorClient {
|
|
2655
|
+
constructor(http, credentials) {
|
|
2656
|
+
super(http, credentials);
|
|
2619
2657
|
}
|
|
2620
|
-
|
|
2621
|
-
return this.
|
|
2658
|
+
orderTestkit(body) {
|
|
2659
|
+
return this.send("POST", "/connectors/junction/order-testkit", { body });
|
|
2622
2660
|
}
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
return this.h("get-patient-immunizations", body);
|
|
2661
|
+
registerTestkit(body) {
|
|
2662
|
+
return this.send("POST", "/connectors/junction/register-testkit", { body });
|
|
2626
2663
|
}
|
|
2627
|
-
|
|
2628
|
-
return this.
|
|
2664
|
+
getTests(body = {}) {
|
|
2665
|
+
return this.send("POST", "/connectors/junction/get-tests", { body });
|
|
2629
2666
|
}
|
|
2630
|
-
|
|
2631
|
-
return this.
|
|
2667
|
+
getOrders(body = {}) {
|
|
2668
|
+
return this.send("POST", "/connectors/junction/get-orders", { body });
|
|
2632
2669
|
}
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2670
|
+
};
|
|
2671
|
+
|
|
2672
|
+
// src/clients/connectors/NppesClient.ts
|
|
2673
|
+
var NppesClient = class extends ConnectorClient {
|
|
2674
|
+
constructor(http, credentials) {
|
|
2675
|
+
super(http, credentials);
|
|
2636
2676
|
}
|
|
2637
|
-
|
|
2638
|
-
return this.
|
|
2677
|
+
verifyProvider(body) {
|
|
2678
|
+
return this.send("POST", "/connectors/nppes/verify-provider", { body });
|
|
2639
2679
|
}
|
|
2640
|
-
|
|
2641
|
-
return this.
|
|
2680
|
+
getProvider(body) {
|
|
2681
|
+
return this.send("POST", "/connectors/nppes/get-provider", { body });
|
|
2642
2682
|
}
|
|
2643
|
-
|
|
2644
|
-
return this.
|
|
2683
|
+
searchProviders(body) {
|
|
2684
|
+
return this.send("POST", "/connectors/nppes/search-providers", { body });
|
|
2645
2685
|
}
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2686
|
+
};
|
|
2687
|
+
|
|
2688
|
+
// src/clients/connectors/OpenAIClient.ts
|
|
2689
|
+
var OpenAIClient = class extends ConnectorClient {
|
|
2690
|
+
constructor(http, credentials) {
|
|
2691
|
+
super(http, credentials);
|
|
2649
2692
|
}
|
|
2650
|
-
|
|
2651
|
-
|
|
2693
|
+
/** Send a chat completion request to OpenAI. */
|
|
2694
|
+
chat(body) {
|
|
2695
|
+
return this.send("POST", "/connectors/openai/chat", { body });
|
|
2652
2696
|
}
|
|
2653
|
-
|
|
2654
|
-
|
|
2697
|
+
/** Generate text embeddings via OpenAI. */
|
|
2698
|
+
embed(body) {
|
|
2699
|
+
return this.send("POST", "/connectors/openai/embed", { body });
|
|
2655
2700
|
}
|
|
2656
|
-
|
|
2657
|
-
return this.
|
|
2701
|
+
buildResponseCreatePayload(body = {}) {
|
|
2702
|
+
return this.send("POST", "/connectors/openai/build-response-create-payload", { body });
|
|
2658
2703
|
}
|
|
2659
|
-
|
|
2660
|
-
return this.
|
|
2704
|
+
chatJson(body) {
|
|
2705
|
+
return this.send("POST", "/connectors/openai/chat-json", { body });
|
|
2661
2706
|
}
|
|
2662
|
-
|
|
2663
|
-
return this.
|
|
2707
|
+
createAssistant(body) {
|
|
2708
|
+
return this.send("POST", "/connectors/openai/create-assistant", { body });
|
|
2664
2709
|
}
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
return this.h("get-pharmacy", body);
|
|
2710
|
+
deleteAssistant(body) {
|
|
2711
|
+
return this.send("POST", "/connectors/openai/delete-assistant", { body });
|
|
2668
2712
|
}
|
|
2669
|
-
|
|
2670
|
-
return this.
|
|
2713
|
+
getAssistant(body) {
|
|
2714
|
+
return this.send("POST", "/connectors/openai/get-assistant", { body });
|
|
2671
2715
|
}
|
|
2672
|
-
|
|
2673
|
-
return this.
|
|
2716
|
+
moderate(body) {
|
|
2717
|
+
return this.send("POST", "/connectors/openai/moderate", { body });
|
|
2674
2718
|
}
|
|
2675
|
-
|
|
2676
|
-
return this.
|
|
2719
|
+
updateAssistant(body) {
|
|
2720
|
+
return this.send("POST", "/connectors/openai/update-assistant", { body });
|
|
2677
2721
|
}
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2722
|
+
};
|
|
2723
|
+
|
|
2724
|
+
// src/clients/connectors/OuraClient.ts
|
|
2725
|
+
var OuraClient = class extends ConnectorClient {
|
|
2726
|
+
constructor(http, credentials) {
|
|
2727
|
+
super(http, credentials);
|
|
2681
2728
|
}
|
|
2682
|
-
|
|
2683
|
-
return this.
|
|
2729
|
+
o(op, body = {}) {
|
|
2730
|
+
return this.send("POST", `/connectors/oura/${op}`, { body });
|
|
2684
2731
|
}
|
|
2685
|
-
|
|
2686
|
-
return this.
|
|
2732
|
+
buildAuthorizationUrl(body = {}) {
|
|
2733
|
+
return this.o("build-authorization-url", body);
|
|
2687
2734
|
}
|
|
2688
|
-
|
|
2689
|
-
return this.
|
|
2735
|
+
exchangeAuthorizationCode(body) {
|
|
2736
|
+
return this.o("exchange-authorization-code", body);
|
|
2690
2737
|
}
|
|
2691
|
-
|
|
2692
|
-
return this.
|
|
2738
|
+
refreshAccessToken(body) {
|
|
2739
|
+
return this.o("refresh-access-token", body);
|
|
2693
2740
|
}
|
|
2694
|
-
|
|
2695
|
-
return this.
|
|
2741
|
+
getPersonalInfo(body = {}) {
|
|
2742
|
+
return this.o("get-personal-info", body);
|
|
2696
2743
|
}
|
|
2697
|
-
|
|
2698
|
-
return this.
|
|
2744
|
+
getDailyActivities(body = {}) {
|
|
2745
|
+
return this.o("get-daily-activities", body);
|
|
2699
2746
|
}
|
|
2700
|
-
|
|
2701
|
-
return this.
|
|
2747
|
+
getDailyActivity(body) {
|
|
2748
|
+
return this.o("get-daily-activity", body);
|
|
2702
2749
|
}
|
|
2703
|
-
|
|
2704
|
-
return this.
|
|
2750
|
+
getDailySleeps(body = {}) {
|
|
2751
|
+
return this.o("get-daily-sleeps", body);
|
|
2705
2752
|
}
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
return this.h("get-user-group", body);
|
|
2753
|
+
getDailySleep(body) {
|
|
2754
|
+
return this.o("get-daily-sleep", body);
|
|
2709
2755
|
}
|
|
2710
|
-
|
|
2711
|
-
return this.
|
|
2756
|
+
getSleeps(body = {}) {
|
|
2757
|
+
return this.o("get-sleeps", body);
|
|
2712
2758
|
}
|
|
2713
|
-
|
|
2714
|
-
return this.
|
|
2759
|
+
getSleep(body) {
|
|
2760
|
+
return this.o("get-sleep", body);
|
|
2715
2761
|
}
|
|
2716
|
-
|
|
2717
|
-
return this.
|
|
2762
|
+
getAllSleeps(body = {}) {
|
|
2763
|
+
return this.o("get-all-sleeps", body);
|
|
2718
2764
|
}
|
|
2719
|
-
|
|
2720
|
-
return this.
|
|
2765
|
+
getDailyReadiness(body = {}) {
|
|
2766
|
+
return this.o("get-daily-readiness", body);
|
|
2721
2767
|
}
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
return this.h("get-tags", body);
|
|
2768
|
+
getDailyReadinessById(body) {
|
|
2769
|
+
return this.o("get-daily-readiness-by-id", body);
|
|
2725
2770
|
}
|
|
2726
|
-
|
|
2727
|
-
return this.
|
|
2771
|
+
getHeartRates(body = {}) {
|
|
2772
|
+
return this.o("get-heart-rates", body);
|
|
2728
2773
|
}
|
|
2729
|
-
|
|
2730
|
-
return this.
|
|
2774
|
+
getWorkouts(body = {}) {
|
|
2775
|
+
return this.o("get-workouts", body);
|
|
2731
2776
|
}
|
|
2732
|
-
|
|
2733
|
-
return this.
|
|
2777
|
+
getWorkout(body) {
|
|
2778
|
+
return this.o("get-workout", body);
|
|
2734
2779
|
}
|
|
2735
|
-
|
|
2736
|
-
return this.
|
|
2780
|
+
getDailySpo2(body = {}) {
|
|
2781
|
+
return this.o("get-daily-spo2", body);
|
|
2737
2782
|
}
|
|
2738
|
-
|
|
2739
|
-
return this.
|
|
2783
|
+
getDailyStress(body = {}) {
|
|
2784
|
+
return this.o("get-daily-stress", body);
|
|
2740
2785
|
}
|
|
2741
|
-
}
|
|
2742
|
-
|
|
2743
|
-
// src/clients/vendors/GrokClient.ts
|
|
2744
|
-
var GrokClient = class extends BaseServiceClient {
|
|
2745
|
-
constructor(http) {
|
|
2746
|
-
super(http, "connectors");
|
|
2786
|
+
getDailyResilience(body = {}) {
|
|
2787
|
+
return this.o("get-daily-resilience", body);
|
|
2747
2788
|
}
|
|
2748
|
-
|
|
2749
|
-
return this.
|
|
2789
|
+
getDailyCardiovascularAge(body = {}) {
|
|
2790
|
+
return this.o("get-daily-cardiovascular-age", body);
|
|
2750
2791
|
}
|
|
2751
|
-
|
|
2752
|
-
return this.
|
|
2792
|
+
getVo2Max(body = {}) {
|
|
2793
|
+
return this.o("get-vo2-max", body);
|
|
2753
2794
|
}
|
|
2754
|
-
|
|
2755
|
-
return this.
|
|
2795
|
+
getRingConfigurations(body = {}) {
|
|
2796
|
+
return this.o("get-ring-configurations", body);
|
|
2756
2797
|
}
|
|
2757
|
-
|
|
2758
|
-
return this.
|
|
2798
|
+
getSessions(body = {}) {
|
|
2799
|
+
return this.o("get-sessions", body);
|
|
2759
2800
|
}
|
|
2760
|
-
|
|
2761
|
-
return this.
|
|
2801
|
+
getSleepTimes(body = {}) {
|
|
2802
|
+
return this.o("get-sleep-times", body);
|
|
2762
2803
|
}
|
|
2763
|
-
|
|
2764
|
-
return this.
|
|
2804
|
+
getTags(body = {}) {
|
|
2805
|
+
return this.o("get-tags", body);
|
|
2765
2806
|
}
|
|
2766
|
-
|
|
2767
|
-
return this.
|
|
2807
|
+
getEnhancedTags(body = {}) {
|
|
2808
|
+
return this.o("get-enhanced-tags", body);
|
|
2768
2809
|
}
|
|
2769
|
-
|
|
2770
|
-
return this.
|
|
2810
|
+
getRestModePeriods(body = {}) {
|
|
2811
|
+
return this.o("get-rest-mode-periods", body);
|
|
2771
2812
|
}
|
|
2772
|
-
|
|
2773
|
-
|
|
2813
|
+
};
|
|
2814
|
+
|
|
2815
|
+
// src/clients/connectors/PlaidClient.ts
|
|
2816
|
+
var PlaidClient = class extends ConnectorClient {
|
|
2817
|
+
constructor(http, credentials) {
|
|
2818
|
+
super(http, credentials);
|
|
2774
2819
|
}
|
|
2775
|
-
|
|
2776
|
-
return this.send("POST", "/connectors/
|
|
2820
|
+
createIdentityVerification(body) {
|
|
2821
|
+
return this.send("POST", "/connectors/plaid/create-identity-verification", { body });
|
|
2777
2822
|
}
|
|
2778
|
-
|
|
2779
|
-
return this.send("POST", "/connectors/
|
|
2823
|
+
getIdentityVerification(body) {
|
|
2824
|
+
return this.send("POST", "/connectors/plaid/get-identity-verification", { body });
|
|
2780
2825
|
}
|
|
2781
|
-
|
|
2782
|
-
return this.send("POST", "/connectors/
|
|
2826
|
+
listIdentityVerifications(body) {
|
|
2827
|
+
return this.send("POST", "/connectors/plaid/list-identity-verifications", { body });
|
|
2783
2828
|
}
|
|
2784
2829
|
};
|
|
2785
2830
|
|
|
2786
|
-
// src/clients/
|
|
2787
|
-
var
|
|
2788
|
-
constructor(http) {
|
|
2789
|
-
super(http,
|
|
2831
|
+
// src/clients/connectors/QuestClient.ts
|
|
2832
|
+
var QuestClient = class extends ConnectorClient {
|
|
2833
|
+
constructor(http, credentials) {
|
|
2834
|
+
super(http, credentials);
|
|
2790
2835
|
}
|
|
2791
|
-
|
|
2792
|
-
return this.send("POST", `/connectors/
|
|
2836
|
+
p(operation, body) {
|
|
2837
|
+
return this.send("POST", `/connectors/quest/${operation}`, { body });
|
|
2793
2838
|
}
|
|
2794
|
-
|
|
2795
|
-
|
|
2839
|
+
// ── REST-style operations ──────────────────────────────────────────────────
|
|
2840
|
+
/** Create a lab order with Quest Diagnostics. */
|
|
2841
|
+
createOrder(body) {
|
|
2842
|
+
return this.send("POST", "/connectors/quest/create-order", { body });
|
|
2796
2843
|
}
|
|
2797
|
-
|
|
2798
|
-
|
|
2844
|
+
/** Retrieve lab results for an order or patient. */
|
|
2845
|
+
getResults(body) {
|
|
2846
|
+
return this.send("POST", "/connectors/quest/get-results", { body });
|
|
2799
2847
|
}
|
|
2800
|
-
|
|
2801
|
-
|
|
2848
|
+
/** Browse the Quest test catalog. */
|
|
2849
|
+
listTests(body) {
|
|
2850
|
+
return this.send("POST", "/connectors/quest/list-tests", { body });
|
|
2802
2851
|
}
|
|
2803
|
-
|
|
2804
|
-
|
|
2852
|
+
// ── HL7 message-based operations ───────────────────────────────────────────
|
|
2853
|
+
getAccessToken(body = {}) {
|
|
2854
|
+
return this.p("get-access-token", body);
|
|
2805
2855
|
}
|
|
2806
|
-
|
|
2807
|
-
return this.
|
|
2856
|
+
clearTokenCache(body = {}) {
|
|
2857
|
+
return this.p("clear-token-cache", body);
|
|
2808
2858
|
}
|
|
2809
|
-
|
|
2810
|
-
return this.
|
|
2859
|
+
submitOrder(body) {
|
|
2860
|
+
return this.p("submit-order", body);
|
|
2811
2861
|
}
|
|
2812
|
-
|
|
2813
|
-
return this.
|
|
2862
|
+
getOrderDocuments(body) {
|
|
2863
|
+
return this.p("get-order-documents", body);
|
|
2814
2864
|
}
|
|
2815
|
-
|
|
2816
|
-
return this.
|
|
2865
|
+
evaluateAbn(body) {
|
|
2866
|
+
return this.p("evaluate-abn", body);
|
|
2817
2867
|
}
|
|
2818
|
-
|
|
2819
|
-
return this.
|
|
2868
|
+
getRequisition(body) {
|
|
2869
|
+
return this.p("get-requisition", body);
|
|
2820
2870
|
}
|
|
2821
|
-
|
|
2822
|
-
return this.
|
|
2871
|
+
evaluateAoe(body) {
|
|
2872
|
+
return this.p("evaluate-aoe", body);
|
|
2823
2873
|
}
|
|
2824
|
-
|
|
2825
|
-
return this.
|
|
2874
|
+
submitFullOrder(body) {
|
|
2875
|
+
return this.p("submit-full-order", body);
|
|
2826
2876
|
}
|
|
2827
|
-
}
|
|
2828
|
-
|
|
2829
|
-
// src/clients/vendors/CarequalityClient.ts
|
|
2830
|
-
var CarequalityClient = class extends BaseServiceClient {
|
|
2831
|
-
constructor(http) {
|
|
2832
|
-
super(http, "connectors");
|
|
2877
|
+
getHl7Results(body = {}) {
|
|
2878
|
+
return this.p("get-hl7-results", body);
|
|
2833
2879
|
}
|
|
2834
|
-
|
|
2835
|
-
return this.
|
|
2880
|
+
getPrintableResults(body = {}) {
|
|
2881
|
+
return this.p("get-printable-results", body);
|
|
2836
2882
|
}
|
|
2837
|
-
|
|
2838
|
-
return this.
|
|
2883
|
+
getObservationResults(body = {}) {
|
|
2884
|
+
return this.p("get-observation-results", body);
|
|
2839
2885
|
}
|
|
2840
|
-
|
|
2841
|
-
return this.
|
|
2886
|
+
acknowledgeHl7Results(body) {
|
|
2887
|
+
return this.p("acknowledge-hl7-results", body);
|
|
2842
2888
|
}
|
|
2843
|
-
|
|
2844
|
-
return this.
|
|
2889
|
+
acknowledgePrintableResults(body) {
|
|
2890
|
+
return this.p("acknowledge-printable-results", body);
|
|
2845
2891
|
}
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
// src/clients/vendors/OuraClient.ts
|
|
2849
|
-
var OuraClient = class extends BaseServiceClient {
|
|
2850
|
-
constructor(http) {
|
|
2851
|
-
super(http, "connectors");
|
|
2892
|
+
acknowledgeObservationResults(body) {
|
|
2893
|
+
return this.p("acknowledge-observation-results", body);
|
|
2852
2894
|
}
|
|
2853
|
-
|
|
2854
|
-
return this.
|
|
2895
|
+
buildResultsAck(body) {
|
|
2896
|
+
return this.p("build-results-ack", body);
|
|
2855
2897
|
}
|
|
2856
|
-
|
|
2857
|
-
return this.
|
|
2898
|
+
processPushedResult(body) {
|
|
2899
|
+
return this.p("process-pushed-result", body);
|
|
2858
2900
|
}
|
|
2859
|
-
|
|
2860
|
-
return this.
|
|
2901
|
+
requestCompendiums(body = {}) {
|
|
2902
|
+
return this.p("request-compendiums", body);
|
|
2861
2903
|
}
|
|
2862
|
-
|
|
2863
|
-
return this.
|
|
2904
|
+
requestCompendiumsOnDemand(body) {
|
|
2905
|
+
return this.p("request-compendiums-on-demand", body);
|
|
2864
2906
|
}
|
|
2865
|
-
|
|
2866
|
-
return this.
|
|
2907
|
+
retrieveCompendium(body) {
|
|
2908
|
+
return this.p("retrieve-compendium", body);
|
|
2867
2909
|
}
|
|
2868
|
-
|
|
2869
|
-
return this.
|
|
2910
|
+
retrieveAndExtractCompendium(body) {
|
|
2911
|
+
return this.p("retrieve-and-extract-compendium", body);
|
|
2870
2912
|
}
|
|
2871
|
-
|
|
2872
|
-
return this.
|
|
2913
|
+
acknowledgeCompendium(body) {
|
|
2914
|
+
return this.p("acknowledge-compendium", body);
|
|
2873
2915
|
}
|
|
2874
|
-
|
|
2875
|
-
return this.
|
|
2916
|
+
syncCompendiums(body = {}) {
|
|
2917
|
+
return this.p("sync-compendiums", body);
|
|
2876
2918
|
}
|
|
2877
|
-
|
|
2878
|
-
|
|
2919
|
+
};
|
|
2920
|
+
|
|
2921
|
+
// src/clients/connectors/SalesforceClient.ts
|
|
2922
|
+
var SalesforceClient = class extends ConnectorClient {
|
|
2923
|
+
constructor(http, credentials) {
|
|
2924
|
+
super(http, credentials);
|
|
2879
2925
|
}
|
|
2880
|
-
|
|
2881
|
-
|
|
2926
|
+
/** Execute a SOQL query and return matching records. */
|
|
2927
|
+
query(body) {
|
|
2928
|
+
return this.send("POST", "/connectors/salesforce/query", { body });
|
|
2882
2929
|
}
|
|
2883
|
-
|
|
2884
|
-
|
|
2930
|
+
/** Create a new Salesforce record of the given sObject type. */
|
|
2931
|
+
create(body) {
|
|
2932
|
+
return this.send("POST", "/connectors/salesforce/create", { body });
|
|
2885
2933
|
}
|
|
2886
|
-
|
|
2887
|
-
|
|
2934
|
+
/** Retrieve a single Salesforce record by sObject type and record ID. */
|
|
2935
|
+
get(body) {
|
|
2936
|
+
return this.send("POST", "/connectors/salesforce/get", { body });
|
|
2888
2937
|
}
|
|
2889
|
-
|
|
2890
|
-
return this.
|
|
2938
|
+
buildCaseDescription(body) {
|
|
2939
|
+
return this.send("POST", "/connectors/salesforce/build-case-description", { body });
|
|
2891
2940
|
}
|
|
2892
|
-
|
|
2893
|
-
return this.
|
|
2941
|
+
createAccount(body) {
|
|
2942
|
+
return this.send("POST", "/connectors/salesforce/create-account", { body });
|
|
2894
2943
|
}
|
|
2895
|
-
|
|
2896
|
-
return this.
|
|
2944
|
+
createCallLog(body) {
|
|
2945
|
+
return this.send("POST", "/connectors/salesforce/create-call-log", { body });
|
|
2897
2946
|
}
|
|
2898
|
-
|
|
2899
|
-
return this.
|
|
2947
|
+
createCampaign(body) {
|
|
2948
|
+
return this.send("POST", "/connectors/salesforce/create-campaign", { body });
|
|
2900
2949
|
}
|
|
2901
|
-
|
|
2902
|
-
return this.
|
|
2950
|
+
createCase(body) {
|
|
2951
|
+
return this.send("POST", "/connectors/salesforce/create-case", { body });
|
|
2903
2952
|
}
|
|
2904
|
-
|
|
2905
|
-
return this.
|
|
2953
|
+
createContact(body) {
|
|
2954
|
+
return this.send("POST", "/connectors/salesforce/create-contact", { body });
|
|
2906
2955
|
}
|
|
2907
|
-
|
|
2908
|
-
return this.
|
|
2956
|
+
createEvent(body) {
|
|
2957
|
+
return this.send("POST", "/connectors/salesforce/create-event", { body });
|
|
2909
2958
|
}
|
|
2910
|
-
|
|
2911
|
-
return this.
|
|
2959
|
+
createPatient(body) {
|
|
2960
|
+
return this.send("POST", "/connectors/salesforce/create-patient", { body });
|
|
2912
2961
|
}
|
|
2913
|
-
|
|
2914
|
-
return this.
|
|
2962
|
+
createSegment(body) {
|
|
2963
|
+
return this.send("POST", "/connectors/salesforce/create-segment", { body });
|
|
2915
2964
|
}
|
|
2916
|
-
|
|
2917
|
-
return this.
|
|
2965
|
+
deleteAccount(body) {
|
|
2966
|
+
return this.send("POST", "/connectors/salesforce/delete-account", { body });
|
|
2918
2967
|
}
|
|
2919
|
-
|
|
2920
|
-
return this.
|
|
2968
|
+
deleteCallLog(body) {
|
|
2969
|
+
return this.send("POST", "/connectors/salesforce/delete-call-log", { body });
|
|
2921
2970
|
}
|
|
2922
|
-
|
|
2923
|
-
return this.
|
|
2971
|
+
deleteCampaign(body) {
|
|
2972
|
+
return this.send("POST", "/connectors/salesforce/delete-campaign", { body });
|
|
2924
2973
|
}
|
|
2925
|
-
|
|
2926
|
-
return this.
|
|
2974
|
+
deleteCase(body) {
|
|
2975
|
+
return this.send("POST", "/connectors/salesforce/delete-case", { body });
|
|
2927
2976
|
}
|
|
2928
|
-
|
|
2929
|
-
return this.
|
|
2977
|
+
deleteEvent(body) {
|
|
2978
|
+
return this.send("POST", "/connectors/salesforce/delete-event", { body });
|
|
2930
2979
|
}
|
|
2931
|
-
|
|
2932
|
-
return this.
|
|
2980
|
+
deletePatient(body) {
|
|
2981
|
+
return this.send("POST", "/connectors/salesforce/delete-patient", { body });
|
|
2933
2982
|
}
|
|
2934
|
-
|
|
2935
|
-
return this.
|
|
2983
|
+
deleteSegment(body) {
|
|
2984
|
+
return this.send("POST", "/connectors/salesforce/delete-segment", { body });
|
|
2936
2985
|
}
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
// src/clients/vendors/PlaidClient.ts
|
|
2940
|
-
var PlaidClient = class extends BaseServiceClient {
|
|
2941
|
-
constructor(http) {
|
|
2942
|
-
super(http, "connectors");
|
|
2986
|
+
describe(body) {
|
|
2987
|
+
return this.send("POST", "/connectors/salesforce/describe", { body });
|
|
2943
2988
|
}
|
|
2944
|
-
|
|
2945
|
-
return this.send("POST", "/connectors/
|
|
2989
|
+
getAccount(body) {
|
|
2990
|
+
return this.send("POST", "/connectors/salesforce/get-account", { body });
|
|
2946
2991
|
}
|
|
2947
|
-
|
|
2948
|
-
return this.send("POST", "/connectors/
|
|
2992
|
+
getAccountByTenant(body) {
|
|
2993
|
+
return this.send("POST", "/connectors/salesforce/get-account-by-tenant", { body });
|
|
2949
2994
|
}
|
|
2950
|
-
|
|
2951
|
-
return this.send("POST", "/connectors/
|
|
2995
|
+
getAvailableSlots(body = {}) {
|
|
2996
|
+
return this.send("POST", "/connectors/salesforce/get-available-slots", { body });
|
|
2952
2997
|
}
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
// src/clients/vendors/AppleAuthClient.ts
|
|
2956
|
-
var AppleAuthClient = class extends BaseServiceClient {
|
|
2957
|
-
constructor(http) {
|
|
2958
|
-
super(http, "connectors");
|
|
2998
|
+
getCallLog(body) {
|
|
2999
|
+
return this.send("POST", "/connectors/salesforce/get-call-log", { body });
|
|
2959
3000
|
}
|
|
2960
|
-
|
|
2961
|
-
return this.send("POST", "/connectors/
|
|
3001
|
+
getCampaign(body) {
|
|
3002
|
+
return this.send("POST", "/connectors/salesforce/get-campaign", { body });
|
|
2962
3003
|
}
|
|
2963
|
-
|
|
2964
|
-
return this.send("POST", "/connectors/
|
|
3004
|
+
getCase(body) {
|
|
3005
|
+
return this.send("POST", "/connectors/salesforce/get-case", { body });
|
|
2965
3006
|
}
|
|
2966
|
-
|
|
2967
|
-
return this.send("POST", "/connectors/
|
|
3007
|
+
getConfiguration(body = {}) {
|
|
3008
|
+
return this.send("POST", "/connectors/salesforce/get-configuration", { body });
|
|
2968
3009
|
}
|
|
2969
|
-
}
|
|
2970
|
-
|
|
2971
|
-
// src/clients/vendors/ZocdocClient.ts
|
|
2972
|
-
var ZocdocClient = class extends BaseServiceClient {
|
|
2973
|
-
constructor(http) {
|
|
2974
|
-
super(http, "connectors");
|
|
3010
|
+
getContact(body = {}) {
|
|
3011
|
+
return this.send("POST", "/connectors/salesforce/get-contact", { body });
|
|
2975
3012
|
}
|
|
2976
|
-
|
|
2977
|
-
return this.send("POST",
|
|
3013
|
+
getEvent(body) {
|
|
3014
|
+
return this.send("POST", "/connectors/salesforce/get-event", { body });
|
|
2978
3015
|
}
|
|
2979
|
-
|
|
2980
|
-
return this.
|
|
3016
|
+
getHealthcareOrgIdByTenant(body) {
|
|
3017
|
+
return this.send("POST", "/connectors/salesforce/get-healthcare-org-id-by-tenant", { body });
|
|
2981
3018
|
}
|
|
2982
|
-
|
|
2983
|
-
return this.
|
|
3019
|
+
getNotScheduledEvents(body = {}) {
|
|
3020
|
+
return this.send("POST", "/connectors/salesforce/get-not-scheduled-events", { body });
|
|
2984
3021
|
}
|
|
2985
|
-
|
|
2986
|
-
return this.
|
|
3022
|
+
getPatient(body) {
|
|
3023
|
+
return this.send("POST", "/connectors/salesforce/get-patient", { body });
|
|
2987
3024
|
}
|
|
2988
|
-
|
|
2989
|
-
return this.
|
|
3025
|
+
getPatientByEmail(body) {
|
|
3026
|
+
return this.send("POST", "/connectors/salesforce/get-patient-by-email", { body });
|
|
2990
3027
|
}
|
|
2991
|
-
|
|
2992
|
-
return this.
|
|
3028
|
+
getPatientByPhone(body) {
|
|
3029
|
+
return this.send("POST", "/connectors/salesforce/get-patient-by-phone", { body });
|
|
2993
3030
|
}
|
|
2994
|
-
|
|
2995
|
-
return this.
|
|
3031
|
+
getSegment(body) {
|
|
3032
|
+
return this.send("POST", "/connectors/salesforce/get-segment", { body });
|
|
2996
3033
|
}
|
|
2997
|
-
|
|
2998
|
-
return this.
|
|
3034
|
+
listAccounts(body = {}) {
|
|
3035
|
+
return this.send("POST", "/connectors/salesforce/list-accounts", { body });
|
|
2999
3036
|
}
|
|
3000
|
-
|
|
3001
|
-
return this.
|
|
3037
|
+
listCallLogs(body = {}) {
|
|
3038
|
+
return this.send("POST", "/connectors/salesforce/list-call-logs", { body });
|
|
3002
3039
|
}
|
|
3003
|
-
|
|
3004
|
-
return this.
|
|
3040
|
+
listCampaigns(body = {}) {
|
|
3041
|
+
return this.send("POST", "/connectors/salesforce/list-campaigns", { body });
|
|
3005
3042
|
}
|
|
3006
|
-
|
|
3007
|
-
return this.
|
|
3043
|
+
listCases(body = {}) {
|
|
3044
|
+
return this.send("POST", "/connectors/salesforce/list-cases", { body });
|
|
3008
3045
|
}
|
|
3009
|
-
|
|
3010
|
-
return this.
|
|
3046
|
+
listEvents(body = {}) {
|
|
3047
|
+
return this.send("POST", "/connectors/salesforce/list-events", { body });
|
|
3011
3048
|
}
|
|
3012
|
-
|
|
3013
|
-
return this.
|
|
3049
|
+
listPatients(body = {}) {
|
|
3050
|
+
return this.send("POST", "/connectors/salesforce/list-patients", { body });
|
|
3014
3051
|
}
|
|
3015
|
-
|
|
3016
|
-
return this.
|
|
3052
|
+
listSegments(body = {}) {
|
|
3053
|
+
return this.send("POST", "/connectors/salesforce/list-segments", { body });
|
|
3017
3054
|
}
|
|
3018
|
-
|
|
3019
|
-
return this.
|
|
3055
|
+
scheduleEvent(body) {
|
|
3056
|
+
return this.send("POST", "/connectors/salesforce/schedule-event", { body });
|
|
3020
3057
|
}
|
|
3021
|
-
|
|
3022
|
-
return this.
|
|
3058
|
+
setAccountSenaiteId(body) {
|
|
3059
|
+
return this.send("POST", "/connectors/salesforce/set-account-senaite-id", { body });
|
|
3023
3060
|
}
|
|
3024
|
-
|
|
3025
|
-
return this.
|
|
3061
|
+
update(body) {
|
|
3062
|
+
return this.send("POST", "/connectors/salesforce/update", { body });
|
|
3026
3063
|
}
|
|
3027
|
-
|
|
3028
|
-
return this.
|
|
3064
|
+
updateAccount(body) {
|
|
3065
|
+
return this.send("POST", "/connectors/salesforce/update-account", { body });
|
|
3029
3066
|
}
|
|
3030
|
-
|
|
3031
|
-
return this.
|
|
3067
|
+
updateAccountAssets(body) {
|
|
3068
|
+
return this.send("POST", "/connectors/salesforce/update-account-assets", { body });
|
|
3032
3069
|
}
|
|
3033
|
-
|
|
3034
|
-
return this.
|
|
3070
|
+
updateCallLog(body) {
|
|
3071
|
+
return this.send("POST", "/connectors/salesforce/update-call-log", { body });
|
|
3035
3072
|
}
|
|
3036
|
-
|
|
3037
|
-
return this.
|
|
3073
|
+
updateCampaign(body) {
|
|
3074
|
+
return this.send("POST", "/connectors/salesforce/update-campaign", { body });
|
|
3038
3075
|
}
|
|
3039
|
-
|
|
3040
|
-
return this.
|
|
3076
|
+
updatePatient(body) {
|
|
3077
|
+
return this.send("POST", "/connectors/salesforce/update-patient", { body });
|
|
3041
3078
|
}
|
|
3042
|
-
|
|
3043
|
-
return this.
|
|
3079
|
+
updateSegment(body) {
|
|
3080
|
+
return this.send("POST", "/connectors/salesforce/update-segment", { body });
|
|
3044
3081
|
}
|
|
3045
|
-
|
|
3046
|
-
|
|
3082
|
+
};
|
|
3083
|
+
|
|
3084
|
+
// src/clients/connectors/ScrapflyClient.ts
|
|
3085
|
+
var ScrapflyClient = class extends ConnectorClient {
|
|
3086
|
+
constructor(http, credentials) {
|
|
3087
|
+
super(http, credentials);
|
|
3047
3088
|
}
|
|
3048
|
-
|
|
3049
|
-
return this.
|
|
3089
|
+
scrape(body) {
|
|
3090
|
+
return this.send("POST", "/connectors/scrapfly/scrape", { body });
|
|
3050
3091
|
}
|
|
3051
|
-
|
|
3052
|
-
return this.send("POST", "/connectors/
|
|
3092
|
+
getDocumentLinks(body) {
|
|
3093
|
+
return this.send("POST", "/connectors/scrapfly/get-document-links", { body });
|
|
3053
3094
|
}
|
|
3054
3095
|
};
|
|
3055
|
-
|
|
3056
|
-
// src/clients/
|
|
3057
|
-
var
|
|
3058
|
-
constructor(http) {
|
|
3059
|
-
super(http,
|
|
3096
|
+
|
|
3097
|
+
// src/clients/connectors/SenaiteClient.ts
|
|
3098
|
+
var SenaiteClient = class extends ConnectorClient {
|
|
3099
|
+
constructor(http, credentials) {
|
|
3100
|
+
super(http, credentials);
|
|
3060
3101
|
}
|
|
3061
|
-
|
|
3062
|
-
return this.send("POST", `/connectors/
|
|
3102
|
+
s(op, body = {}) {
|
|
3103
|
+
return this.send("POST", `/connectors/senaite/${op}`, { body });
|
|
3063
3104
|
}
|
|
3064
|
-
|
|
3065
|
-
return this.
|
|
3105
|
+
login(body = {}) {
|
|
3106
|
+
return this.s("login", body);
|
|
3066
3107
|
}
|
|
3067
|
-
|
|
3068
|
-
return this.
|
|
3108
|
+
logout(body = {}) {
|
|
3109
|
+
return this.s("logout", body);
|
|
3069
3110
|
}
|
|
3070
|
-
|
|
3071
|
-
return this.
|
|
3111
|
+
getCurrentUser(body = {}) {
|
|
3112
|
+
return this.s("get-current-user", body);
|
|
3072
3113
|
}
|
|
3073
|
-
|
|
3074
|
-
return this.
|
|
3114
|
+
getAllClients(body = {}) {
|
|
3115
|
+
return this.s("get-all-clients", body);
|
|
3075
3116
|
}
|
|
3076
|
-
|
|
3077
|
-
return this.
|
|
3117
|
+
getClientById(body) {
|
|
3118
|
+
return this.s("get-client-by-id", body);
|
|
3078
3119
|
}
|
|
3079
|
-
|
|
3080
|
-
return this.
|
|
3120
|
+
getClientByUid(body) {
|
|
3121
|
+
return this.s("get-client-by-uid", body);
|
|
3081
3122
|
}
|
|
3082
|
-
|
|
3083
|
-
return this.
|
|
3123
|
+
createClient(body) {
|
|
3124
|
+
return this.s("create-client", body);
|
|
3084
3125
|
}
|
|
3085
|
-
|
|
3086
|
-
return this.
|
|
3126
|
+
updateClient(body) {
|
|
3127
|
+
return this.s("update-client", body);
|
|
3087
3128
|
}
|
|
3088
|
-
|
|
3089
|
-
return this.
|
|
3129
|
+
deactivateClient(body) {
|
|
3130
|
+
return this.s("deactivate-client", body);
|
|
3090
3131
|
}
|
|
3091
|
-
|
|
3092
|
-
return this.
|
|
3132
|
+
getAllSamples(body = {}) {
|
|
3133
|
+
return this.s("get-all-samples", body);
|
|
3093
3134
|
}
|
|
3094
|
-
|
|
3095
|
-
return this.
|
|
3135
|
+
getSamplesByClientId(body) {
|
|
3136
|
+
return this.s("get-samples-by-client-id", body);
|
|
3096
3137
|
}
|
|
3097
|
-
|
|
3098
|
-
return this.
|
|
3138
|
+
getSampleById(body) {
|
|
3139
|
+
return this.s("get-sample-by-id", body);
|
|
3099
3140
|
}
|
|
3100
|
-
|
|
3101
|
-
return this.
|
|
3141
|
+
getSampleByUid(body) {
|
|
3142
|
+
return this.s("get-sample-by-uid", body);
|
|
3102
3143
|
}
|
|
3103
|
-
|
|
3104
|
-
return this.
|
|
3144
|
+
createSample(body) {
|
|
3145
|
+
return this.s("create-sample", body);
|
|
3105
3146
|
}
|
|
3106
|
-
|
|
3107
|
-
return this.
|
|
3147
|
+
updateSample(body) {
|
|
3148
|
+
return this.s("update-sample", body);
|
|
3108
3149
|
}
|
|
3109
|
-
|
|
3110
|
-
return this.
|
|
3150
|
+
cancelSample(body) {
|
|
3151
|
+
return this.s("cancel-sample", body);
|
|
3111
3152
|
}
|
|
3112
|
-
|
|
3113
|
-
return this.
|
|
3153
|
+
createContact(body) {
|
|
3154
|
+
return this.s("create-contact", body);
|
|
3114
3155
|
}
|
|
3115
|
-
|
|
3116
|
-
return this.
|
|
3156
|
+
getContactsForClient(body) {
|
|
3157
|
+
return this.s("get-contacts-for-client", body);
|
|
3117
3158
|
}
|
|
3118
|
-
|
|
3119
|
-
return this.
|
|
3159
|
+
getSampleTypes(body = {}) {
|
|
3160
|
+
return this.s("get-sample-types", body);
|
|
3120
3161
|
}
|
|
3121
|
-
|
|
3122
|
-
return this.
|
|
3162
|
+
createSampleType(body) {
|
|
3163
|
+
return this.s("create-sample-type", body);
|
|
3123
3164
|
}
|
|
3124
|
-
|
|
3125
|
-
return this.
|
|
3165
|
+
getAnalysisServices(body = {}) {
|
|
3166
|
+
return this.s("get-analysis-services", body);
|
|
3126
3167
|
}
|
|
3127
|
-
|
|
3128
|
-
return this.
|
|
3168
|
+
createAnalysisService(body) {
|
|
3169
|
+
return this.s("create-analysis-service", body);
|
|
3129
3170
|
}
|
|
3130
|
-
|
|
3131
|
-
return this.
|
|
3171
|
+
createDepartment(body) {
|
|
3172
|
+
return this.s("create-department", body);
|
|
3132
3173
|
}
|
|
3133
|
-
|
|
3134
|
-
return this.
|
|
3174
|
+
createAnalysisCategory(body) {
|
|
3175
|
+
return this.s("create-analysis-category", body);
|
|
3135
3176
|
}
|
|
3136
|
-
|
|
3137
|
-
return this.
|
|
3177
|
+
getCatalogs(body = {}) {
|
|
3178
|
+
return this.s("get-catalogs", body);
|
|
3138
3179
|
}
|
|
3139
|
-
|
|
3140
|
-
return this.
|
|
3180
|
+
search(body) {
|
|
3181
|
+
return this.s("search", body);
|
|
3141
3182
|
}
|
|
3142
|
-
|
|
3143
|
-
return this.
|
|
3183
|
+
ensureClientForTenant(body) {
|
|
3184
|
+
return this.s("ensure-senaite-client-for-tenant", body);
|
|
3144
3185
|
}
|
|
3145
3186
|
};
|
|
3146
3187
|
|
|
3147
|
-
// src/clients/
|
|
3148
|
-
var
|
|
3149
|
-
constructor(http) {
|
|
3150
|
-
super(http,
|
|
3151
|
-
}
|
|
3152
|
-
orderTestkit(body) {
|
|
3153
|
-
return this.send("POST", "/connectors/junction/order-testkit", { body });
|
|
3154
|
-
}
|
|
3155
|
-
registerTestkit(body) {
|
|
3156
|
-
return this.send("POST", "/connectors/junction/register-testkit", { body });
|
|
3188
|
+
// src/clients/connectors/SendGridClient.ts
|
|
3189
|
+
var SendGridClient = class extends ConnectorClient {
|
|
3190
|
+
constructor(http, credentials) {
|
|
3191
|
+
super(http, credentials);
|
|
3157
3192
|
}
|
|
3158
|
-
|
|
3159
|
-
|
|
3193
|
+
/** Send a transactional email via SendGrid. Supports static content and dynamic templates. */
|
|
3194
|
+
sendEmail(body) {
|
|
3195
|
+
return this.send("POST", "/connectors/sendgrid/send-email", { body });
|
|
3160
3196
|
}
|
|
3161
|
-
|
|
3162
|
-
|
|
3197
|
+
/** List SendGrid email templates. */
|
|
3198
|
+
listTemplates(body) {
|
|
3199
|
+
return this.send("POST", "/connectors/sendgrid/list-templates", { body });
|
|
3163
3200
|
}
|
|
3164
3201
|
};
|
|
3165
3202
|
|
|
3166
|
-
// src/clients/
|
|
3167
|
-
var SteadyMDClient = class extends
|
|
3168
|
-
constructor(http) {
|
|
3169
|
-
super(http,
|
|
3203
|
+
// src/clients/connectors/SteadyMDClient.ts
|
|
3204
|
+
var SteadyMDClient = class extends ConnectorClient {
|
|
3205
|
+
constructor(http, credentials) {
|
|
3206
|
+
super(http, credentials);
|
|
3170
3207
|
}
|
|
3171
3208
|
m(op, body = {}) {
|
|
3172
3209
|
return this.send("POST", `/connectors/steadymd/${op}`, { body });
|
|
@@ -3302,243 +3339,329 @@ var SteadyMDClient = class extends BaseServiceClient {
|
|
|
3302
3339
|
}
|
|
3303
3340
|
};
|
|
3304
3341
|
|
|
3305
|
-
// src/clients/
|
|
3306
|
-
var
|
|
3307
|
-
constructor(http) {
|
|
3308
|
-
super(http,
|
|
3342
|
+
// src/clients/connectors/StediClient.ts
|
|
3343
|
+
var StediClient = class extends ConnectorClient {
|
|
3344
|
+
constructor(http, credentials) {
|
|
3345
|
+
super(http, credentials);
|
|
3309
3346
|
}
|
|
3310
|
-
|
|
3311
|
-
|
|
3347
|
+
/** Check insurance eligibility via the Stedi 270/271 API. */
|
|
3348
|
+
checkEligibility(body) {
|
|
3349
|
+
return this.send("POST", "/connectors/stedi/check-eligibility", { body });
|
|
3312
3350
|
}
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
return this.
|
|
3351
|
+
/** Submit an X12 837 medical claim. */
|
|
3352
|
+
submitClaim(body) {
|
|
3353
|
+
return this.send("POST", "/connectors/stedi/submit-claim", { body });
|
|
3316
3354
|
}
|
|
3317
|
-
|
|
3318
|
-
|
|
3355
|
+
/** Verify a provider by NPI via NPPES (routed through Stedi). */
|
|
3356
|
+
verifyProvider(body) {
|
|
3357
|
+
return this.send("POST", "/connectors/stedi/verify-provider", { body });
|
|
3319
3358
|
}
|
|
3320
|
-
|
|
3321
|
-
return this.
|
|
3359
|
+
checkClaimStatus(body = {}) {
|
|
3360
|
+
return this.send("POST", "/connectors/stedi/check-claim-status", { body });
|
|
3322
3361
|
}
|
|
3323
|
-
|
|
3324
|
-
return this.
|
|
3362
|
+
checkCoordinationOfBenefits(body = {}) {
|
|
3363
|
+
return this.send("POST", "/connectors/stedi/check-coordination-of-benefits", { body });
|
|
3325
3364
|
}
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
return this.i("get-device", body);
|
|
3365
|
+
discoverInsurance(body = {}) {
|
|
3366
|
+
return this.send("POST", "/connectors/stedi/discover-insurance", { body });
|
|
3329
3367
|
}
|
|
3330
|
-
|
|
3331
|
-
return this.
|
|
3368
|
+
get835EraReport(body) {
|
|
3369
|
+
return this.send("POST", "/connectors/stedi/get-835-era-report", { body });
|
|
3332
3370
|
}
|
|
3333
|
-
|
|
3334
|
-
return this.
|
|
3371
|
+
getInsuranceDiscoveryResults(body) {
|
|
3372
|
+
return this.send("POST", "/connectors/stedi/get-insurance-discovery-results", { body });
|
|
3335
3373
|
}
|
|
3336
|
-
|
|
3337
|
-
return this.
|
|
3374
|
+
submitInstitutionalClaim(body = {}) {
|
|
3375
|
+
return this.send("POST", "/connectors/stedi/submit-institutional-claim", { body });
|
|
3376
|
+
}
|
|
3377
|
+
submitProfessionalClaim(body = {}) {
|
|
3378
|
+
return this.send("POST", "/connectors/stedi/submit-professional-claim", { body });
|
|
3379
|
+
}
|
|
3380
|
+
};
|
|
3381
|
+
|
|
3382
|
+
// src/clients/connectors/StripeClient.ts
|
|
3383
|
+
var StripeClient = class extends ConnectorClient {
|
|
3384
|
+
constructor(http, credentials) {
|
|
3385
|
+
super(http, credentials);
|
|
3386
|
+
}
|
|
3387
|
+
s(op, body) {
|
|
3388
|
+
return this.send("POST", `/connectors/stripe/${op}`, { body });
|
|
3389
|
+
}
|
|
3390
|
+
/** Create a Stripe PaymentIntent. Returns the client_secret for client-side confirmation. */
|
|
3391
|
+
createPaymentIntent(body) {
|
|
3392
|
+
return this.s("create-payment-intent", body);
|
|
3393
|
+
}
|
|
3394
|
+
/** Retrieve the status of an existing PaymentIntent. */
|
|
3395
|
+
getPaymentIntentStatus(body) {
|
|
3396
|
+
return this.s("get-payment-intent-status", body);
|
|
3397
|
+
}
|
|
3398
|
+
/** Create a Stripe Customer record. */
|
|
3399
|
+
createCustomer(body) {
|
|
3400
|
+
return this.s("create-customer", body);
|
|
3401
|
+
}
|
|
3402
|
+
/** Create a Stripe Subscription for an existing customer and price. */
|
|
3403
|
+
createSubscription(body) {
|
|
3404
|
+
return this.s("create-subscription", body);
|
|
3405
|
+
}
|
|
3406
|
+
/** Create a Stripe Checkout Session. */
|
|
3407
|
+
createSession(body) {
|
|
3408
|
+
return this.s("create-session", body);
|
|
3409
|
+
}
|
|
3410
|
+
/** List active Stripe products. */
|
|
3411
|
+
listProducts(body = {}) {
|
|
3412
|
+
return this.s("list-products", body);
|
|
3413
|
+
}
|
|
3414
|
+
/** Create a new Stripe Price for an existing product. */
|
|
3415
|
+
createCopayPrice(body) {
|
|
3416
|
+
return this.s("create-copay-price", body);
|
|
3417
|
+
}
|
|
3418
|
+
/** Verify that the configured Stripe credentials are valid. */
|
|
3419
|
+
verifyConnection(body = {}) {
|
|
3420
|
+
return this.s("verify-connection", body);
|
|
3421
|
+
}
|
|
3422
|
+
/** Validate a card payment method without charging it. */
|
|
3423
|
+
validateAndTokenizeCard(body) {
|
|
3424
|
+
return this.s("validate-and-tokenize-card", body);
|
|
3425
|
+
}
|
|
3426
|
+
/** Create a direct charge against a source or customer. */
|
|
3427
|
+
chargePaymentSession(body) {
|
|
3428
|
+
return this.s("charge-payment-session", body);
|
|
3429
|
+
}
|
|
3430
|
+
};
|
|
3431
|
+
|
|
3432
|
+
// src/clients/connectors/TwilioClient.ts
|
|
3433
|
+
var TwilioClient = class extends ConnectorClient {
|
|
3434
|
+
constructor(http, credentials) {
|
|
3435
|
+
super(http, credentials);
|
|
3436
|
+
}
|
|
3437
|
+
/** Send an SMS message via Twilio. */
|
|
3438
|
+
sendSms(body) {
|
|
3439
|
+
return this.send("POST", "/connectors/twilio/send-sms", { body });
|
|
3440
|
+
}
|
|
3441
|
+
/** Retrieve a specific Twilio message by SID. */
|
|
3442
|
+
getMessage(body) {
|
|
3443
|
+
return this.send("POST", "/connectors/twilio/get-message", { body });
|
|
3444
|
+
}
|
|
3445
|
+
/** List Twilio messages, optionally filtered by to/from/date. */
|
|
3446
|
+
listMessages(body) {
|
|
3447
|
+
return this.send("POST", "/connectors/twilio/list-messages", { body });
|
|
3448
|
+
}
|
|
3449
|
+
};
|
|
3450
|
+
|
|
3451
|
+
// src/clients/connectors/UberClient.ts
|
|
3452
|
+
var UberClient = class extends ConnectorClient {
|
|
3453
|
+
constructor(http, credentials) {
|
|
3454
|
+
super(http, credentials);
|
|
3455
|
+
}
|
|
3456
|
+
p(operation, body) {
|
|
3457
|
+
return this.send("POST", `/connectors/uber/${operation}`, { body });
|
|
3458
|
+
}
|
|
3459
|
+
createDelivery(body) {
|
|
3460
|
+
return this.p("create-delivery", body);
|
|
3461
|
+
}
|
|
3462
|
+
createQuote(body) {
|
|
3463
|
+
return this.p("create-quote", body);
|
|
3464
|
+
}
|
|
3465
|
+
getDeliveries(body = {}) {
|
|
3466
|
+
return this.p("get-deliveries", body);
|
|
3467
|
+
}
|
|
3468
|
+
getUndeliveredOrders(body = {}) {
|
|
3469
|
+
return this.p("get-undelivered-orders", body);
|
|
3338
3470
|
}
|
|
3339
|
-
|
|
3340
|
-
return this.
|
|
3471
|
+
getDelivery(body) {
|
|
3472
|
+
return this.p("get-delivery", body);
|
|
3341
3473
|
}
|
|
3342
|
-
|
|
3343
|
-
return this.
|
|
3474
|
+
updateDelivery(body) {
|
|
3475
|
+
return this.p("update-delivery", body);
|
|
3344
3476
|
}
|
|
3345
|
-
|
|
3346
|
-
return this.
|
|
3477
|
+
cancelDelivery(body) {
|
|
3478
|
+
return this.p("cancel-delivery", body);
|
|
3347
3479
|
}
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
return this.i("get-kit", body);
|
|
3480
|
+
findStores(body) {
|
|
3481
|
+
return this.p("find-stores", body);
|
|
3351
3482
|
}
|
|
3352
|
-
|
|
3353
|
-
|
|
3483
|
+
};
|
|
3484
|
+
|
|
3485
|
+
// src/clients/connectors/WhoopClient.ts
|
|
3486
|
+
var WhoopClient = class extends ConnectorClient {
|
|
3487
|
+
constructor(http, credentials) {
|
|
3488
|
+
super(http, credentials);
|
|
3354
3489
|
}
|
|
3355
|
-
|
|
3356
|
-
return this.
|
|
3490
|
+
w(op, body = {}) {
|
|
3491
|
+
return this.send("POST", `/connectors/whoop/${op}`, { body });
|
|
3357
3492
|
}
|
|
3358
|
-
|
|
3359
|
-
return this.
|
|
3493
|
+
buildAuthorizationUrl(body = {}) {
|
|
3494
|
+
return this.w("build-authorization-url", body);
|
|
3360
3495
|
}
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
return this.i("create-order", body);
|
|
3496
|
+
exchangeAuthorizationCode(body) {
|
|
3497
|
+
return this.w("exchange-authorization-code", body);
|
|
3364
3498
|
}
|
|
3365
|
-
|
|
3366
|
-
return this.
|
|
3499
|
+
refreshAccessToken(body) {
|
|
3500
|
+
return this.w("refresh-access-token", body);
|
|
3367
3501
|
}
|
|
3368
|
-
|
|
3369
|
-
return this.
|
|
3502
|
+
getPartnerToken(body = {}) {
|
|
3503
|
+
return this.w("get-partner-token", body);
|
|
3370
3504
|
}
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
return this.i("record-blood-pressure-reading", body);
|
|
3505
|
+
revokeUserOauthAccess(body = {}) {
|
|
3506
|
+
return this.w("revoke-user-oauth-access", body);
|
|
3374
3507
|
}
|
|
3375
|
-
|
|
3376
|
-
return this.
|
|
3508
|
+
getUserProfile(body = {}) {
|
|
3509
|
+
return this.w("get-user-profile", body);
|
|
3377
3510
|
}
|
|
3378
|
-
|
|
3379
|
-
return this.
|
|
3511
|
+
getUserBodyMeasurement(body = {}) {
|
|
3512
|
+
return this.w("get-user-body-measurement", body);
|
|
3380
3513
|
}
|
|
3381
|
-
|
|
3382
|
-
return this.
|
|
3514
|
+
getCycle(body) {
|
|
3515
|
+
return this.w("get-cycle", body);
|
|
3383
3516
|
}
|
|
3384
|
-
|
|
3385
|
-
return this.
|
|
3517
|
+
getCycles(body = {}) {
|
|
3518
|
+
return this.w("get-cycles", body);
|
|
3386
3519
|
}
|
|
3387
|
-
|
|
3388
|
-
return this.
|
|
3520
|
+
getAllCycles(body = {}) {
|
|
3521
|
+
return this.w("get-all-cycles", body);
|
|
3389
3522
|
}
|
|
3390
|
-
|
|
3391
|
-
return this.
|
|
3523
|
+
getSleep(body) {
|
|
3524
|
+
return this.w("get-sleep", body);
|
|
3392
3525
|
}
|
|
3393
|
-
|
|
3394
|
-
return this.
|
|
3526
|
+
getSleepForCycle(body) {
|
|
3527
|
+
return this.w("get-sleep-for-cycle", body);
|
|
3395
3528
|
}
|
|
3396
|
-
|
|
3397
|
-
return this.
|
|
3529
|
+
getSleeps(body = {}) {
|
|
3530
|
+
return this.w("get-sleeps", body);
|
|
3398
3531
|
}
|
|
3399
|
-
|
|
3400
|
-
return this.
|
|
3532
|
+
getAllSleeps(body = {}) {
|
|
3533
|
+
return this.w("get-all-sleeps", body);
|
|
3401
3534
|
}
|
|
3402
|
-
|
|
3403
|
-
return this.
|
|
3535
|
+
getRecoveryForCycle(body) {
|
|
3536
|
+
return this.w("get-recovery-for-cycle", body);
|
|
3404
3537
|
}
|
|
3405
|
-
|
|
3406
|
-
return this.
|
|
3538
|
+
getRecoveries(body = {}) {
|
|
3539
|
+
return this.w("get-recoveries", body);
|
|
3407
3540
|
}
|
|
3408
|
-
|
|
3409
|
-
return this.
|
|
3541
|
+
getAllRecoveries(body = {}) {
|
|
3542
|
+
return this.w("get-all-recoveries", body);
|
|
3410
3543
|
}
|
|
3411
|
-
|
|
3412
|
-
return this.
|
|
3544
|
+
getWorkout(body) {
|
|
3545
|
+
return this.w("get-workout", body);
|
|
3413
3546
|
}
|
|
3414
|
-
|
|
3415
|
-
return this.
|
|
3547
|
+
getWorkouts(body = {}) {
|
|
3548
|
+
return this.w("get-workouts", body);
|
|
3416
3549
|
}
|
|
3417
|
-
|
|
3418
|
-
return this.
|
|
3550
|
+
getAllWorkouts(body = {}) {
|
|
3551
|
+
return this.w("get-all-workouts", body);
|
|
3419
3552
|
}
|
|
3420
|
-
|
|
3421
|
-
return this.
|
|
3553
|
+
getActivityMapping(body = {}) {
|
|
3554
|
+
return this.w("get-activity-mapping", body);
|
|
3422
3555
|
}
|
|
3423
|
-
|
|
3424
|
-
return this.
|
|
3556
|
+
getLabRequisition(body = {}) {
|
|
3557
|
+
return this.w("get-lab-requisition", body);
|
|
3425
3558
|
}
|
|
3426
|
-
|
|
3427
|
-
return this.
|
|
3559
|
+
getServiceRequest(body) {
|
|
3560
|
+
return this.w("get-service-request", body);
|
|
3428
3561
|
}
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
return this.i("get-clinical-note", body);
|
|
3562
|
+
updateServiceRequestStatus(body) {
|
|
3563
|
+
return this.w("update-service-request-status", body);
|
|
3432
3564
|
}
|
|
3433
|
-
|
|
3434
|
-
return this.
|
|
3565
|
+
uploadDiagnosticReportResults(body) {
|
|
3566
|
+
return this.w("upload-diagnostic-report-results", body);
|
|
3435
3567
|
}
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
return this.i("list-site-inventory", body);
|
|
3568
|
+
addTestData(body) {
|
|
3569
|
+
return this.w("add-test-data", body);
|
|
3439
3570
|
}
|
|
3440
|
-
|
|
3441
|
-
return this.
|
|
3571
|
+
submitVitalsFromDevice(body) {
|
|
3572
|
+
return this.w("submit-vitals-from-device", body);
|
|
3442
3573
|
}
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3574
|
+
};
|
|
3575
|
+
|
|
3576
|
+
// src/clients/connectors/ZocdocClient.ts
|
|
3577
|
+
var ZocdocClient = class extends ConnectorClient {
|
|
3578
|
+
constructor(http, credentials) {
|
|
3579
|
+
super(http, credentials);
|
|
3446
3580
|
}
|
|
3447
|
-
|
|
3448
|
-
return this.
|
|
3581
|
+
z(op, body = {}) {
|
|
3582
|
+
return this.send("POST", `/connectors/zocdoc/${op}`, { body });
|
|
3449
3583
|
}
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
return this.i("create-item", body);
|
|
3584
|
+
getDirectoryNpis(body = {}) {
|
|
3585
|
+
return this.z("get-directory-npis", body);
|
|
3453
3586
|
}
|
|
3454
|
-
|
|
3455
|
-
return this.
|
|
3587
|
+
getProvidersByNpis(body) {
|
|
3588
|
+
return this.z("get-providers-by-npis", body);
|
|
3456
3589
|
}
|
|
3457
|
-
|
|
3458
|
-
return this.
|
|
3590
|
+
getProviderByNpi(body) {
|
|
3591
|
+
return this.z("get-provider-by-npi", body);
|
|
3459
3592
|
}
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
return this.i("get-patient-alert-config", body);
|
|
3593
|
+
searchProviderLocations(body) {
|
|
3594
|
+
return this.z("search-provider-locations", body);
|
|
3463
3595
|
}
|
|
3464
|
-
|
|
3465
|
-
return this.
|
|
3596
|
+
getProviderLocationById(body) {
|
|
3597
|
+
return this.z("get-provider-location-by-id", body);
|
|
3466
3598
|
}
|
|
3467
|
-
|
|
3468
|
-
return this.
|
|
3599
|
+
getMultipleLocationsAvailability(body) {
|
|
3600
|
+
return this.z("get-multiple-locations-availability", body);
|
|
3469
3601
|
}
|
|
3470
|
-
|
|
3471
|
-
return this.
|
|
3602
|
+
createAppointment(body) {
|
|
3603
|
+
return this.z("create-appointment", body);
|
|
3472
3604
|
}
|
|
3473
|
-
|
|
3474
|
-
return this.
|
|
3605
|
+
listAppointments(body = {}) {
|
|
3606
|
+
return this.z("list-appointments", body);
|
|
3475
3607
|
}
|
|
3476
|
-
|
|
3477
|
-
return this.
|
|
3608
|
+
getAppointmentById(body) {
|
|
3609
|
+
return this.z("get-appointment-by-id", body);
|
|
3478
3610
|
}
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
return this.i("register-webhooks", body);
|
|
3611
|
+
confirmAppointment(body) {
|
|
3612
|
+
return this.z("confirm-appointment", body);
|
|
3482
3613
|
}
|
|
3483
|
-
|
|
3484
|
-
return this.
|
|
3614
|
+
rescheduleAppointment(body) {
|
|
3615
|
+
return this.z("reschedule-appointment", body);
|
|
3485
3616
|
}
|
|
3486
|
-
|
|
3487
|
-
return this.
|
|
3617
|
+
cancelAppointment(body) {
|
|
3618
|
+
return this.z("cancel-appointment", body);
|
|
3488
3619
|
}
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
// src/clients/vendors/ScrapflyClient.ts
|
|
3492
|
-
var ScrapflyClient = class extends BaseServiceClient {
|
|
3493
|
-
constructor(http) {
|
|
3494
|
-
super(http, "connectors");
|
|
3620
|
+
getAppointmentParticipants(body) {
|
|
3621
|
+
return this.z("get-appointment-participants", body);
|
|
3495
3622
|
}
|
|
3496
|
-
|
|
3497
|
-
return this.
|
|
3623
|
+
updateAppointmentStatus(body) {
|
|
3624
|
+
return this.z("update-appointment-status", body);
|
|
3498
3625
|
}
|
|
3499
|
-
|
|
3500
|
-
return this.
|
|
3626
|
+
bookAndConfirmAppointment(body) {
|
|
3627
|
+
return this.z("book-and-confirm-appointment", body);
|
|
3501
3628
|
}
|
|
3502
|
-
}
|
|
3503
|
-
|
|
3504
|
-
// src/clients/vendors/UberClient.ts
|
|
3505
|
-
var UberClient = class extends BaseServiceClient {
|
|
3506
|
-
constructor(http) {
|
|
3507
|
-
super(http, "connectors");
|
|
3629
|
+
getInsurancePlans(body = {}) {
|
|
3630
|
+
return this.z("get-insurance-plans", body);
|
|
3508
3631
|
}
|
|
3509
|
-
|
|
3510
|
-
return this.
|
|
3632
|
+
getInsurancePlanById(body) {
|
|
3633
|
+
return this.z("get-insurance-plan-by-id", body);
|
|
3511
3634
|
}
|
|
3512
|
-
|
|
3513
|
-
return this.
|
|
3635
|
+
getProviderLocationInsuranceMappings(body) {
|
|
3636
|
+
return this.z("get-provider-location-insurance-mappings", body);
|
|
3514
3637
|
}
|
|
3515
|
-
|
|
3516
|
-
return this.
|
|
3638
|
+
updateProviderLocationInsuranceMappings(body) {
|
|
3639
|
+
return this.z("update-provider-location-insurance-mappings", body);
|
|
3517
3640
|
}
|
|
3518
|
-
|
|
3519
|
-
return this.
|
|
3641
|
+
getSchedulableEntities(body = {}) {
|
|
3642
|
+
return this.z("get-schedulable-entities", body);
|
|
3520
3643
|
}
|
|
3521
|
-
|
|
3522
|
-
return this.
|
|
3644
|
+
searchFacilities(body = {}) {
|
|
3645
|
+
return this.z("search-facilities", body);
|
|
3523
3646
|
}
|
|
3524
|
-
|
|
3525
|
-
return this.
|
|
3647
|
+
getFacilityById(body) {
|
|
3648
|
+
return this.z("get-facility-by-id", body);
|
|
3526
3649
|
}
|
|
3527
|
-
|
|
3528
|
-
return this.
|
|
3650
|
+
getProviderCalendarTimeslots(body) {
|
|
3651
|
+
return this.z("get-provider-calendar-timeslots", body);
|
|
3529
3652
|
}
|
|
3530
|
-
|
|
3531
|
-
return this.
|
|
3653
|
+
setProviderCalendarTimeslots(body) {
|
|
3654
|
+
return this.z("set-provider-calendar-timeslots", body);
|
|
3532
3655
|
}
|
|
3533
|
-
|
|
3534
|
-
return this.
|
|
3656
|
+
createAppointmentAttachment(body) {
|
|
3657
|
+
return this.send("POST", "/connectors/zocdoc/create-appointment-attachment", { body });
|
|
3535
3658
|
}
|
|
3536
3659
|
};
|
|
3537
3660
|
|
|
3538
|
-
// src/clients/
|
|
3539
|
-
var ZusClient = class extends
|
|
3540
|
-
constructor(http) {
|
|
3541
|
-
super(http,
|
|
3661
|
+
// src/clients/connectors/ZusClient.ts
|
|
3662
|
+
var ZusClient = class extends ConnectorClient {
|
|
3663
|
+
constructor(http, credentials) {
|
|
3664
|
+
super(http, credentials);
|
|
3542
3665
|
}
|
|
3543
3666
|
p(operation, body) {
|
|
3544
3667
|
return this.send("POST", `/connectors/zus/${operation}`, { body });
|
|
@@ -3569,42 +3692,47 @@ var ZusClient = class extends BaseServiceClient {
|
|
|
3569
3692
|
}
|
|
3570
3693
|
};
|
|
3571
3694
|
|
|
3572
|
-
// src/clients/
|
|
3573
|
-
|
|
3695
|
+
// src/clients/connectors/ConnectorsNamespace.ts
|
|
3696
|
+
function mode(value) {
|
|
3697
|
+
return value != null ? value : "sandbox";
|
|
3698
|
+
}
|
|
3699
|
+
var ConnectorsNamespace = class {
|
|
3574
3700
|
constructor(http) {
|
|
3575
|
-
this.
|
|
3576
|
-
this.
|
|
3577
|
-
this.
|
|
3578
|
-
this.
|
|
3579
|
-
this.
|
|
3580
|
-
this.
|
|
3581
|
-
this.
|
|
3582
|
-
this.
|
|
3583
|
-
this.
|
|
3584
|
-
this.googleAI = new GoogleAIClient(
|
|
3585
|
-
this.googlePlaces = new GooglePlacesClient(
|
|
3586
|
-
this.
|
|
3587
|
-
this.
|
|
3588
|
-
this.
|
|
3589
|
-
this.
|
|
3590
|
-
this.
|
|
3591
|
-
this.
|
|
3592
|
-
this.
|
|
3593
|
-
this.
|
|
3594
|
-
this.
|
|
3595
|
-
this.
|
|
3596
|
-
this.
|
|
3597
|
-
this.
|
|
3598
|
-
this.
|
|
3599
|
-
this.
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
this.
|
|
3604
|
-
this.
|
|
3605
|
-
this.
|
|
3606
|
-
this.uber = new UberClient(
|
|
3607
|
-
this.
|
|
3701
|
+
this.anthropic = new ConnectorFactory("anthropic", http, AnthropicClient, (c) => ({ api_key: c.api_key, mode: mode(c.mode) }));
|
|
3702
|
+
this.appleAuth = new ConnectorFactory("appleAuth", http, AppleAuthClient, (c) => ({ team_id: c.team_id, client_id: c.client_id, key_id: c.key_id, redirect_uri: c.redirect_uri, private_key: c.private_key }));
|
|
3703
|
+
this.athena = new ConnectorFactory("athena", http, AthenaHealthClient, (c) => ({ secret_key: c.secret_key, practice_id: c.practice_id, department_id: c.department_id, provider_id: c.provider_id, mode: mode(c.mode) }));
|
|
3704
|
+
this.cal = new ConnectorFactory("cal", http, CalClient, (c) => ({ api_key: c.api_key }));
|
|
3705
|
+
this.carequality = new ConnectorFactory("carequality", http, CarequalityClient, (c) => ({ api_key: c.api_key, initiator_url: c.initiator_url }));
|
|
3706
|
+
this.cms = new ConnectorFactory("cms", http, CmsClient, (c) => ({ api_key: c.api_key }));
|
|
3707
|
+
this.connecture = new ConnectorFactory("connecture", http, ConnectureClient, (c) => ({ basic_token: c.basic_token, client_key: c.client_key, client_secret: c.client_secret }));
|
|
3708
|
+
this.elevenlabs = new ConnectorFactory("elevenlabs", http, ElevenLabsClient, (c) => ({ api_key: c.api_key }));
|
|
3709
|
+
this.fedex = new ConnectorFactory("fedex", http, FedExClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, account_number: c.account_number, mode: mode(c.mode) }));
|
|
3710
|
+
this.googleAI = new ConnectorFactory("googleAI", http, GoogleAIClient, (c) => ({ api_key: c.api_key }));
|
|
3711
|
+
this.googlePlaces = new ConnectorFactory("googlePlaces", http, GooglePlacesClient, (c) => ({ api_key: c.api_key, mode: mode(c.mode) }));
|
|
3712
|
+
this.grok = new ConnectorFactory("grok", http, GrokClient, (c) => ({ api_key: c.api_key }));
|
|
3713
|
+
this.healthie = new ConnectorFactory("healthie", http, HealthieClient, (c) => ({ secret_key: c.secret_key, mode: mode(c.mode), ...c.shard_id ? { shard_id: c.shard_id } : {} }));
|
|
3714
|
+
this.impilo = new ConnectorFactory("impilo", http, ImpiloClient, (c) => ({ api_key: c.api_key }));
|
|
3715
|
+
this.junction = new ConnectorFactory("junction", http, JunctionClient, (c) => ({ api_key: c.api_key }));
|
|
3716
|
+
this.nppes = new PublicConnectorFactory(http, NppesClient);
|
|
3717
|
+
this.openai = new ConnectorFactory("openai", http, OpenAIClient, (c) => ({ api_key: c.api_key }));
|
|
3718
|
+
this.oura = new ConnectorFactory("oura", http, OuraClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, mode: mode(c.mode) }));
|
|
3719
|
+
this.plaid = new ConnectorFactory("plaid", http, PlaidClient, (c) => ({ client_id: c.client_id, secret: c.secret, template_id: c.template_id, mode: mode(c.mode) }));
|
|
3720
|
+
this.quest = new ConnectorFactory("quest", http, QuestClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, mode: mode(c.mode) }));
|
|
3721
|
+
this.salesforce = new ConnectorFactory("salesforce", http, SalesforceClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, username: c.username, password: c.password, mode: mode(c.mode) }));
|
|
3722
|
+
this.scrapfly = new ConnectorFactory("scrapfly", http, ScrapflyClient, (c) => ({ api_key: c.api_key }));
|
|
3723
|
+
this.senaite = new ConnectorFactory("senaite", http, SenaiteClient, (c) => ({ base_url: c.base_url, username: c.username, password: c.password }));
|
|
3724
|
+
this.sendgrid = new ConnectorFactory("sendgrid", http, SendGridClient, (c) => ({ api_key: c.api_key, mode: mode(c.mode) }));
|
|
3725
|
+
this.steadymd = new ConnectorFactory("steadymd", http, SteadyMDClient, (c) => {
|
|
3726
|
+
var _a;
|
|
3727
|
+
return { api_key: (_a = c.api_key) != null ? _a : c.token, mode: mode(c.mode), ...c.api_url ? { api_url: c.api_url } : {} };
|
|
3728
|
+
});
|
|
3729
|
+
this.stedi = new ConnectorFactory("stedi", http, StediClient, (c) => ({ api_key: c.api_key }));
|
|
3730
|
+
this.stripe = new ConnectorFactory("stripe", http, StripeClient, (c) => ({ secret_key: c.api_key }));
|
|
3731
|
+
this.twilio = new ConnectorFactory("twilio", http, TwilioClient, (c) => ({ account_sid: c.account_sid, auth_token: c.auth_token, from_number: c.from_number, mode: mode(c.mode) }));
|
|
3732
|
+
this.uber = new ConnectorFactory("uber", http, UberClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, customer_id: c.customer_id, mode: mode(c.mode) }));
|
|
3733
|
+
this.whoop = new ConnectorFactory("whoop", http, WhoopClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, mode: mode(c.mode) }));
|
|
3734
|
+
this.zocdoc = new ConnectorFactory("zocdoc", http, ZocdocClient, (c) => ({ api_key: c.api_key }));
|
|
3735
|
+
this.zus = new ConnectorFactory("zus", http, ZusClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, mode: mode(c.mode) }));
|
|
3608
3736
|
}
|
|
3609
3737
|
};
|
|
3610
3738
|
|
|
@@ -3638,7 +3766,7 @@ var HCSDK = class {
|
|
|
3638
3766
|
() => this.state.tenantId
|
|
3639
3767
|
);
|
|
3640
3768
|
this.mcp = new MCPClient(this.http);
|
|
3641
|
-
this.
|
|
3769
|
+
this.connectors = new ConnectorsNamespace(this.http);
|
|
3642
3770
|
}
|
|
3643
3771
|
setAccessToken(token) {
|
|
3644
3772
|
this.state.accessToken = token;
|
|
@@ -3740,6 +3868,9 @@ var HCSDK_SWAGGER_OPERATION_COUNTS = {
|
|
|
3740
3868
|
CalClient,
|
|
3741
3869
|
CarequalityClient,
|
|
3742
3870
|
CmsClient,
|
|
3871
|
+
ConnectorClient,
|
|
3872
|
+
ConnectorFactory,
|
|
3873
|
+
ConnectorsNamespace,
|
|
3743
3874
|
ConnectureClient,
|
|
3744
3875
|
ElevenLabsClient,
|
|
3745
3876
|
FedExClient,
|
|
@@ -3758,8 +3889,8 @@ var HCSDK_SWAGGER_OPERATION_COUNTS = {
|
|
|
3758
3889
|
OpenAIClient,
|
|
3759
3890
|
OuraClient,
|
|
3760
3891
|
PlaidClient,
|
|
3892
|
+
PublicConnectorFactory,
|
|
3761
3893
|
QuestClient,
|
|
3762
|
-
QuestHl7Client,
|
|
3763
3894
|
SDKError,
|
|
3764
3895
|
SalesforceClient,
|
|
3765
3896
|
ScrapflyClient,
|
|
@@ -3770,7 +3901,6 @@ var HCSDK_SWAGGER_OPERATION_COUNTS = {
|
|
|
3770
3901
|
StripeClient,
|
|
3771
3902
|
TwilioClient,
|
|
3772
3903
|
UberClient,
|
|
3773
|
-
VendorsNamespace,
|
|
3774
3904
|
WhoopClient,
|
|
3775
3905
|
ZocdocClient,
|
|
3776
3906
|
ZusClient,
|