@healthcloudai/hc-sdk 0.8.5 → 0.8.7

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/dist/index.js CHANGED
@@ -413,7 +413,7 @@ var FieldAgentClient = class extends BaseServiceClient {
413
413
  }
414
414
  register(request) {
415
415
  return this.send("POST", "/auth/register", {
416
- body: withTenantId(request, this.getTenantId()),
416
+ body: withTenantId({ ...request, person_type: "field_agent" }, this.getTenantId()),
417
417
  auth: false
418
418
  });
419
419
  }
@@ -455,37 +455,37 @@ var FieldAgentClient = class extends BaseServiceClient {
455
455
  auth: false
456
456
  });
457
457
  }
458
- getAgent(agentSub) {
459
- return this.send("GET", "/agents/{sub}", {
460
- pathParams: { sub: agentSub }
458
+ getAgent(fhirPersonId) {
459
+ return this.send("GET", "/agents/{fhir_person_id}", {
460
+ pathParams: { fhir_person_id: fhirPersonId }
461
461
  });
462
462
  }
463
- updateAgent(agentSub, request) {
464
- return this.send("PATCH", "/agents/{sub}", {
465
- pathParams: { sub: agentSub },
463
+ updateAgent(fhirPersonId, request) {
464
+ return this.send("PATCH", "/agents/{fhir_person_id}", {
465
+ pathParams: { fhir_person_id: fhirPersonId },
466
466
  body: request
467
467
  });
468
468
  }
469
- getDashboard(agentSub, query) {
470
- return this.send("GET", "/agents/{sub}/dashboard", {
471
- pathParams: { sub: agentSub },
469
+ getDashboard(fhirPersonId, query) {
470
+ return this.send("GET", "/agents/{fhir_person_id}/dashboard", {
471
+ pathParams: { fhir_person_id: fhirPersonId },
472
472
  query
473
473
  });
474
474
  }
475
- getPhotoUploadUrl(agentSub) {
476
- return this.send("GET", "/agents/{sub}/photo/upload-url", {
477
- pathParams: { sub: agentSub }
475
+ getPhotoUploadUrl(fhirPersonId) {
476
+ return this.send("GET", "/agents/{fhir_person_id}/photo/upload-url", {
477
+ pathParams: { fhir_person_id: fhirPersonId }
478
478
  });
479
479
  }
480
- uploadPhoto(agentSub, request) {
481
- return this.send("POST", "/agents/{sub}/photo", {
482
- pathParams: { sub: agentSub },
480
+ uploadPhoto(fhirPersonId, request) {
481
+ return this.send("POST", "/agents/{fhir_person_id}/photo", {
482
+ pathParams: { fhir_person_id: fhirPersonId },
483
483
  body: request
484
484
  });
485
485
  }
486
- getPhoto(agentSub, query) {
487
- return this.send("GET", "/agents/{sub}/photo", {
488
- pathParams: { sub: agentSub },
486
+ getPhoto(fhirPersonId, query) {
487
+ return this.send("GET", "/agents/{fhir_person_id}/photo", {
488
+ pathParams: { fhir_person_id: fhirPersonId },
489
489
  query
490
490
  });
491
491
  }
@@ -948,6 +948,18 @@ var TelehealthClient = class extends BaseServiceClient {
948
948
  connect() {
949
949
  return this.connectService();
950
950
  }
951
+ createChannel() {
952
+ return this.send("POST", "/telehealth/channels");
953
+ }
954
+ createPatientToken(request) {
955
+ return this.send("POST", "/telehealth/tokens/patient", { body: request });
956
+ }
957
+ createProviderToken(request) {
958
+ return this.send("POST", "/telehealth/tokens/provider", { body: request });
959
+ }
960
+ fetchRtcToken(request) {
961
+ return this.send("POST", "/fetch_rtc_token", { body: request });
962
+ }
951
963
  };
952
964
 
953
965
  // src/clients/VitalsClient.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcloudai/hc-sdk",
3
- "version": "0.8.5",
3
+ "version": "0.8.7",
4
4
  "description": "All-in-one HealthCloud SDK with typed platform APIs and secure connector clients.",
5
5
  "author": "Healthcheck Systems Inc",
6
6
  "license": "MIT",