@ovok/core 0.4.49-dev.495 → 0.4.49-dev.496

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.
Files changed (235) hide show
  1. package/dist/client/observation/measurement-fields.d.ts +1 -1
  2. package/dist/client/observation/methods/observationsToMeasurements.d.ts +1 -1
  3. package/dist/client/observation/methods/observationsToMeasurements.js +59 -59
  4. package/dist/client/observation/services/base-observation-service.d.ts +1 -1
  5. package/dist/client/observation/services/blood-oxygen.d.ts +1 -1
  6. package/dist/client/observation/services/blood-oxygen.js +7 -7
  7. package/dist/client/observation/services/blood-pressure.d.ts +1 -1
  8. package/dist/client/observation/services/blood-pressure.js +16 -16
  9. package/dist/client/observation/services/component-observation-services.d.ts +1 -1
  10. package/dist/client/observation/services/component-observation-services.js +3 -3
  11. package/dist/client/observation/services/creator.d.ts +1 -1
  12. package/dist/client/observation/services/creator.js +10 -10
  13. package/dist/client/observation/services/ecg-observation-fragments.d.ts +1 -1
  14. package/dist/client/observation/services/ecg.d.ts +1 -1
  15. package/dist/client/observation/services/ecg.js +10 -10
  16. package/dist/client/observation/services/lipid-panel.d.ts +1 -1
  17. package/dist/client/observation/services/lipid-panel.js +13 -13
  18. package/dist/client/observation/services/single-value-services.d.ts +1 -1
  19. package/dist/client/observation/services/single-value-services.js +19 -19
  20. package/dist/client/observation/services/step-count.d.ts +1 -1
  21. package/dist/client/observation/services/step-count.js +5 -5
  22. package/dist/client/observation/services/uric-acid-service.d.ts +1 -1
  23. package/dist/client/observation/services/uric-acid-service.js +7 -7
  24. package/dist/client/offline/offline-measurement-queue.d.ts +1 -2
  25. package/dist/client/wearables/types.d.ts +5 -0
  26. package/dist/conformance/capability-requirements.js +1 -1
  27. package/dist/next/auth/access-token.d.ts +9 -0
  28. package/dist/next/auth/access-token.js +18 -0
  29. package/dist/next/auth/client-credentials.d.ts +16 -0
  30. package/dist/next/auth/client-credentials.js +40 -0
  31. package/dist/next/auth/credentials.d.ts +5 -0
  32. package/dist/next/auth/credentials.js +7 -0
  33. package/dist/next/auth/session-store.d.ts +12 -0
  34. package/dist/next/auth/session-store.js +33 -0
  35. package/dist/next/auth/session.d.ts +28 -0
  36. package/dist/next/auth/session.js +27 -0
  37. package/dist/next/auth/token-endpoint.d.ts +12 -0
  38. package/dist/next/auth/token-endpoint.js +28 -0
  39. package/dist/next/auth/user-session.d.ts +27 -0
  40. package/dist/next/auth/user-session.js +82 -0
  41. package/dist/next/config/ovok-config.d.ts +42 -0
  42. package/dist/next/config/ovok-config.js +2 -0
  43. package/dist/next/config/settings.d.ts +6 -0
  44. package/dist/next/config/settings.js +74 -0
  45. package/dist/next/errors/error-from-response.d.ts +2 -0
  46. package/dist/next/errors/error-from-response.js +35 -0
  47. package/dist/next/errors/ovok-errors.d.ts +42 -0
  48. package/dist/next/errors/ovok-errors.js +74 -0
  49. package/dist/next/http/http-client.d.ts +35 -0
  50. package/dist/next/http/http-client.js +113 -0
  51. package/dist/next/http/retry-after.d.ts +1 -0
  52. package/dist/next/http/retry-after.js +16 -0
  53. package/dist/next/http/retry-policy.d.ts +13 -0
  54. package/dist/next/http/retry-policy.js +27 -0
  55. package/dist/next/http/transmit.d.ts +14 -0
  56. package/dist/next/http/transmit.js +57 -0
  57. package/dist/next/http/url.d.ts +6 -0
  58. package/dist/next/http/url.js +22 -0
  59. package/dist/next/index.d.ts +69 -0
  60. package/dist/next/index.js +33 -0
  61. package/dist/next/ovok.d.ts +52 -0
  62. package/dist/next/ovok.js +74 -0
  63. package/dist/next/paging/bundle-page.d.ts +4 -0
  64. package/dist/next/paging/bundle-page.js +25 -0
  65. package/dist/next/paging/cursor-pages.d.ts +7 -0
  66. package/dist/next/paging/cursor-pages.js +14 -0
  67. package/dist/next/paging/numbered-pages.d.ts +15 -0
  68. package/dist/next/paging/numbered-pages.js +20 -0
  69. package/dist/next/paging/page.d.ts +12 -0
  70. package/dist/next/paging/page.js +17 -0
  71. package/dist/next/resources/accounts/accounts-resource.d.ts +8 -0
  72. package/dist/next/resources/accounts/accounts-resource.js +13 -0
  73. package/dist/next/resources/ai/ai-chat-resource.d.ts +8 -0
  74. package/dist/next/resources/ai/ai-chat-resource.js +12 -0
  75. package/dist/next/resources/ai/ai-resource.d.ts +16 -0
  76. package/dist/next/resources/ai/ai-resource.js +19 -0
  77. package/dist/next/resources/ai/chat-messages-resource.d.ts +9 -0
  78. package/dist/next/resources/ai/chat-messages-resource.js +18 -0
  79. package/dist/next/resources/ai/chat-sessions-resource.d.ts +14 -0
  80. package/dist/next/resources/ai/chat-sessions-resource.js +23 -0
  81. package/dist/next/resources/auth/auth-sessions-resource.d.ts +13 -0
  82. package/dist/next/resources/auth/auth-sessions-resource.js +25 -0
  83. package/dist/next/resources/auth/registration.d.ts +35 -0
  84. package/dist/next/resources/auth/registration.js +24 -0
  85. package/dist/next/resources/auth/social-login.d.ts +8 -0
  86. package/dist/next/resources/auth/social-login.js +7 -0
  87. package/dist/next/resources/auth-resource.d.ts +63 -0
  88. package/dist/next/resources/auth-resource.js +119 -0
  89. package/dist/next/resources/bots/bots-resource.d.ts +10 -0
  90. package/dist/next/resources/bots/bots-resource.js +15 -0
  91. package/dist/next/resources/cms/cms-delivery.d.ts +22 -0
  92. package/dist/next/resources/cms/cms-delivery.js +36 -0
  93. package/dist/next/resources/cms/cms-documents-resource.d.ts +11 -0
  94. package/dist/next/resources/cms/cms-documents-resource.js +17 -0
  95. package/dist/next/resources/cms/cms-resource.d.ts +17 -0
  96. package/dist/next/resources/cms/cms-resource.js +38 -0
  97. package/dist/next/resources/cms/payload-pages.d.ts +6 -0
  98. package/dist/next/resources/cms/payload-pages.js +15 -0
  99. package/dist/next/resources/cms/release-notes-resource.d.ts +10 -0
  100. package/dist/next/resources/cms/release-notes-resource.js +15 -0
  101. package/dist/next/resources/cms/translation-tree.d.ts +3 -0
  102. package/dist/next/resources/cms/translation-tree.js +45 -0
  103. package/dist/next/resources/consent/consent-resource.d.ts +23 -0
  104. package/dist/next/resources/consent/consent-resource.js +43 -0
  105. package/dist/next/resources/content/content-resource.d.ts +19 -0
  106. package/dist/next/resources/content/content-resource.js +41 -0
  107. package/dist/next/resources/documents/documents-resource.d.ts +26 -0
  108. package/dist/next/resources/documents/documents-resource.js +41 -0
  109. package/dist/next/resources/email/email-resource.d.ts +6 -0
  110. package/dist/next/resources/email/email-resource.js +10 -0
  111. package/dist/next/resources/email/email-templates-resource.d.ts +8 -0
  112. package/dist/next/resources/email/email-templates-resource.js +13 -0
  113. package/dist/next/resources/fhir-resource.d.ts +28 -0
  114. package/dist/next/resources/fhir-resource.js +64 -0
  115. package/dist/next/resources/health-resource.d.ts +17 -0
  116. package/dist/next/resources/health-resource.js +14 -0
  117. package/dist/next/resources/invites/invite-flow-resource.d.ts +12 -0
  118. package/dist/next/resources/invites/invite-flow-resource.js +19 -0
  119. package/dist/next/resources/invites/invites-resource.d.ts +17 -0
  120. package/dist/next/resources/invites/invites-resource.js +14 -0
  121. package/dist/next/resources/localization/i18next-resource.d.ts +10 -0
  122. package/dist/next/resources/localization/i18next-resource.js +18 -0
  123. package/dist/next/resources/localization/locales-resource.d.ts +9 -0
  124. package/dist/next/resources/localization/locales-resource.js +16 -0
  125. package/dist/next/resources/localization/localizations-resource.d.ts +17 -0
  126. package/dist/next/resources/localization/localizations-resource.js +27 -0
  127. package/dist/next/resources/measurements/measurements-resource.d.ts +42 -0
  128. package/dist/next/resources/measurements/measurements-resource.js +77 -0
  129. package/dist/next/resources/measurements/observation-builder.d.ts +5 -0
  130. package/dist/next/resources/measurements/observation-builder.js +57 -0
  131. package/dist/next/resources/measurements/save-error.d.ts +5 -0
  132. package/dist/next/resources/measurements/save-error.js +18 -0
  133. package/dist/next/resources/measurements/signed-in-account.d.ts +11 -0
  134. package/dist/next/resources/measurements/signed-in-account.js +26 -0
  135. package/dist/next/resources/patient/fhir-records.d.ts +19 -0
  136. package/dist/next/resources/patient/fhir-records.js +33 -0
  137. package/dist/next/resources/patient/patient-resource.d.ts +21 -0
  138. package/dist/next/resources/patient/patient-resource.js +38 -0
  139. package/dist/next/resources/projects/project-features-resource.d.ts +9 -0
  140. package/dist/next/resources/projects/project-features-resource.js +17 -0
  141. package/dist/next/resources/projects/project-members-resource.d.ts +19 -0
  142. package/dist/next/resources/projects/project-members-resource.js +25 -0
  143. package/dist/next/resources/projects/project-settings-resource.d.ts +10 -0
  144. package/dist/next/resources/projects/project-settings-resource.js +21 -0
  145. package/dist/next/resources/projects/projects-resource.d.ts +20 -0
  146. package/dist/next/resources/projects/projects-resource.js +21 -0
  147. package/dist/next/resources/questionnaires/questionnaires-resource.d.ts +18 -0
  148. package/dist/next/resources/questionnaires/questionnaires-resource.js +36 -0
  149. package/dist/next/resources/sharing/sharing-invites-resource.d.ts +9 -0
  150. package/dist/next/resources/sharing/sharing-invites-resource.js +17 -0
  151. package/dist/next/resources/sharing/sharing-resource.d.ts +10 -0
  152. package/dist/next/resources/sharing/sharing-resource.js +14 -0
  153. package/dist/next/resources/sharing/sharing-settings-resource.d.ts +9 -0
  154. package/dist/next/resources/sharing/sharing-settings-resource.js +16 -0
  155. package/dist/next/resources/sharing/sharing-shares-resource.d.ts +9 -0
  156. package/dist/next/resources/sharing/sharing-shares-resource.js +27 -0
  157. package/dist/next/resources/signals/signals-gateway-resource.d.ts +14 -0
  158. package/dist/next/resources/signals/signals-gateway-resource.js +44 -0
  159. package/dist/next/resources/signals/signals-resource.d.ts +13 -0
  160. package/dist/next/resources/signals/signals-resource.js +19 -0
  161. package/dist/next/resources/signals/undeliverable-resource.d.ts +26 -0
  162. package/dist/next/resources/signals/undeliverable-resource.js +18 -0
  163. package/dist/next/resources/slim/live-reads.d.ts +12 -0
  164. package/dist/next/resources/slim/live-reads.js +76 -0
  165. package/dist/next/resources/slim/slim-alarms-resource.d.ts +13 -0
  166. package/dist/next/resources/slim/slim-alarms-resource.js +25 -0
  167. package/dist/next/resources/slim/slim-change-history-resource.d.ts +9 -0
  168. package/dist/next/resources/slim/slim-change-history-resource.js +19 -0
  169. package/dist/next/resources/slim/slim-child-projects-resource.d.ts +17 -0
  170. package/dist/next/resources/slim/slim-child-projects-resource.js +22 -0
  171. package/dist/next/resources/slim/slim-devices-resource.d.ts +28 -0
  172. package/dist/next/resources/slim/slim-devices-resource.js +80 -0
  173. package/dist/next/resources/slim/slim-exports-resource.d.ts +8 -0
  174. package/dist/next/resources/slim/slim-exports-resource.js +14 -0
  175. package/dist/next/resources/slim/slim-locations-resource.d.ts +14 -0
  176. package/dist/next/resources/slim/slim-locations-resource.js +30 -0
  177. package/dist/next/resources/slim/slim-medical-notifications-resource.d.ts +18 -0
  178. package/dist/next/resources/slim/slim-medical-notifications-resource.js +46 -0
  179. package/dist/next/resources/slim/slim-notification-notes-resource.d.ts +12 -0
  180. package/dist/next/resources/slim/slim-notification-notes-resource.js +34 -0
  181. package/dist/next/resources/slim/slim-notifications-resource.d.ts +19 -0
  182. package/dist/next/resources/slim/slim-notifications-resource.js +26 -0
  183. package/dist/next/resources/slim/slim-organizations-resource.d.ts +11 -0
  184. package/dist/next/resources/slim/slim-organizations-resource.js +25 -0
  185. package/dist/next/resources/slim/slim-out-of-bed-resource.d.ts +13 -0
  186. package/dist/next/resources/slim/slim-out-of-bed-resource.js +20 -0
  187. package/dist/next/resources/slim/slim-paths.d.ts +6 -0
  188. package/dist/next/resources/slim/slim-paths.js +9 -0
  189. package/dist/next/resources/slim/slim-patient-thresholds-resource.d.ts +10 -0
  190. package/dist/next/resources/slim/slim-patient-thresholds-resource.js +20 -0
  191. package/dist/next/resources/slim/slim-patients-resource.d.ts +20 -0
  192. package/dist/next/resources/slim/slim-patients-resource.js +39 -0
  193. package/dist/next/resources/slim/slim-policies-resource.d.ts +12 -0
  194. package/dist/next/resources/slim/slim-policies-resource.js +29 -0
  195. package/dist/next/resources/slim/slim-practitioners-resource.d.ts +8 -0
  196. package/dist/next/resources/slim/slim-practitioners-resource.js +14 -0
  197. package/dist/next/resources/slim/slim-projects-resource.d.ts +16 -0
  198. package/dist/next/resources/slim/slim-projects-resource.js +35 -0
  199. package/dist/next/resources/slim/slim-queries.d.ts +34 -0
  200. package/dist/next/resources/slim/slim-queries.js +2 -0
  201. package/dist/next/resources/slim/slim-resource.d.ts +38 -0
  202. package/dist/next/resources/slim/slim-resource.js +44 -0
  203. package/dist/next/resources/slim/slim-sleep-resource.d.ts +9 -0
  204. package/dist/next/resources/slim/slim-sleep-resource.js +15 -0
  205. package/dist/next/resources/slim/slim-thresholds-resource.d.ts +11 -0
  206. package/dist/next/resources/slim/slim-thresholds-resource.js +18 -0
  207. package/dist/next/resources/slim/slim-trends-resource.d.ts +11 -0
  208. package/dist/next/resources/slim/slim-trends-resource.js +19 -0
  209. package/dist/next/resources/slim/slim-users-resource.d.ts +11 -0
  210. package/dist/next/resources/slim/slim-users-resource.js +15 -0
  211. package/dist/next/resources/slim/slim-zones-resource.d.ts +12 -0
  212. package/dist/next/resources/slim/slim-zones-resource.js +24 -0
  213. package/dist/next/resources/video-calls/video-call-access-resource.d.ts +11 -0
  214. package/dist/next/resources/video-calls/video-call-access-resource.js +19 -0
  215. package/dist/next/resources/video-calls/video-call-appointments-resource.d.ts +10 -0
  216. package/dist/next/resources/video-calls/video-call-appointments-resource.js +21 -0
  217. package/dist/next/resources/video-calls/video-call-emails-resource.d.ts +10 -0
  218. package/dist/next/resources/video-calls/video-call-emails-resource.js +19 -0
  219. package/dist/next/resources/video-calls/video-calls-resource.d.ts +14 -0
  220. package/dist/next/resources/video-calls/video-calls-resource.js +20 -0
  221. package/dist/next/resources/wearables/wearable-connections-resource.d.ts +12 -0
  222. package/dist/next/resources/wearables/wearable-connections-resource.js +25 -0
  223. package/dist/next/resources/wearables/wearable-providers-resource.d.ts +12 -0
  224. package/dist/next/resources/wearables/wearable-providers-resource.js +27 -0
  225. package/dist/next/resources/wearables/wearables-resource.d.ts +8 -0
  226. package/dist/next/resources/wearables/wearables-resource.js +14 -0
  227. package/dist/next/storage/ovok-storage.d.ts +11 -0
  228. package/dist/next/storage/ovok-storage.js +19 -0
  229. package/dist/types/MeasurementTypes.d.ts +5 -0
  230. package/dist/types/MeasurementTypes.js +21 -0
  231. package/dist/types/index.d.ts +1 -5
  232. package/dist/types/index.js +1 -5
  233. package/next/index.d.ts +1 -0
  234. package/next/index.js +3 -0
  235. package/package.json +3 -2
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlimPatientThresholdsResource = void 0;
4
+ const url_1 = require("../../http/url");
5
+ const slim_paths_1 = require("./slim-paths");
6
+ const PATIENT_THRESHOLDS_PATH = `${slim_paths_1.THRESHOLD_V2_PATH}/patient`;
7
+ const patientThresholdPath = (patientId) => `${PATIENT_THRESHOLDS_PATH}/${(0, url_1.pathSegment)(patientId)}`;
8
+ class SlimPatientThresholdsResource {
9
+ constructor(http) {
10
+ this.http = http;
11
+ }
12
+ retrieve(patientId, options) {
13
+ return this.http.get(patientThresholdPath(patientId), options);
14
+ }
15
+ /** Never retried: a 409 means another save for this resident is running and nothing changed. */
16
+ update(patientId, body, options) {
17
+ return this.http.send({ method: "PUT", path: patientThresholdPath(patientId), body, idempotent: false }, options);
18
+ }
19
+ }
20
+ exports.SlimPatientThresholdsResource = SlimPatientThresholdsResource;
@@ -0,0 +1,20 @@
1
+ import type { SlimCreatePatient, SlimPatient, SlimPatientListItem, SlimPatientListQuery, SlimUpdatePatient } from "../../../client/slim/types";
2
+ import type { Bundle, Resource } from "@medplum/fhirtypes";
3
+ import { HttpClient } from "../../http/http-client";
4
+ import { RequestOptions } from "../../http/transmit";
5
+ import { PagePromise } from "../../paging/page";
6
+ import { SlimPatientThresholdsResource } from "./slim-patient-thresholds-resource";
7
+ export declare class SlimPatientsResource {
8
+ private readonly http;
9
+ readonly thresholds: SlimPatientThresholdsResource;
10
+ constructor(http: HttpClient);
11
+ list(params?: SlimPatientListQuery, options?: RequestOptions): PagePromise<SlimPatientListItem>;
12
+ retrieve(patientId: string, options?: RequestOptions): Promise<SlimPatient>;
13
+ create(body: SlimCreatePatient, options?: RequestOptions): Promise<SlimPatient>;
14
+ /** Replaces the editable fields: omitting locationId unassigns the resident's devices. */
15
+ update(patientId: string, body: SlimUpdatePatient, options?: RequestOptions): Promise<SlimPatient>;
16
+ /** 409 while the resident has a device: unassign it first with an update that omits locationId. */
17
+ delete(patientId: string, options?: RequestOptions): Promise<void>;
18
+ everything(patientId: string, options?: RequestOptions): Promise<Bundle<Resource>>;
19
+ currentVitals(patientId: string, options?: RequestOptions): Promise<Record<string, unknown>>;
20
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlimPatientsResource = void 0;
4
+ const url_1 = require("../../http/url");
5
+ const numbered_pages_1 = require("../../paging/numbered-pages");
6
+ const slim_paths_1 = require("./slim-paths");
7
+ const slim_patient_thresholds_resource_1 = require("./slim-patient-thresholds-resource");
8
+ const PATIENTS_PATH = `${slim_paths_1.SLIM_PATH}/patient`;
9
+ const patientPath = (patientId) => `${PATIENTS_PATH}/${(0, url_1.pathSegment)(patientId)}`;
10
+ class SlimPatientsResource {
11
+ constructor(http) {
12
+ this.http = http;
13
+ this.thresholds = new slim_patient_thresholds_resource_1.SlimPatientThresholdsResource(http);
14
+ }
15
+ list(params = {}, options) {
16
+ return (0, numbered_pages_1.numberedRoutePages)((path) => this.http.get(path, options), PATIENTS_PATH, params);
17
+ }
18
+ retrieve(patientId, options) {
19
+ return this.http.get(patientPath(patientId), options);
20
+ }
21
+ create(body, options) {
22
+ return this.http.post(PATIENTS_PATH, body, options);
23
+ }
24
+ /** Replaces the editable fields: omitting locationId unassigns the resident's devices. */
25
+ update(patientId, body, options) {
26
+ return this.http.put(patientPath(patientId), body, options);
27
+ }
28
+ /** 409 while the resident has a device: unassign it first with an update that omits locationId. */
29
+ delete(patientId, options) {
30
+ return this.http.delete(patientPath(patientId), options);
31
+ }
32
+ everything(patientId, options) {
33
+ return this.http.get(`${patientPath(patientId)}/$everything`, options);
34
+ }
35
+ currentVitals(patientId, options) {
36
+ return this.http.get(`${patientPath(patientId)}/current-vitals`, options);
37
+ }
38
+ }
39
+ exports.SlimPatientsResource = SlimPatientsResource;
@@ -0,0 +1,12 @@
1
+ import type { SlimCreatePolicy, SlimPolicyList, SlimPolicyListQuery, SlimPolicyResponse, SlimUpdatePolicy } from "../../../client/slim/types";
2
+ import { HttpClient } from "../../http/http-client";
3
+ import { RequestOptions } from "../../http/transmit";
4
+ export declare class SlimPoliciesResource {
5
+ private readonly http;
6
+ constructor(http: HttpClient);
7
+ list(params?: SlimPolicyListQuery, options?: RequestOptions): Promise<SlimPolicyList>;
8
+ retrieve(policyId: string, options?: RequestOptions): Promise<SlimPolicyResponse>;
9
+ create(body: SlimCreatePolicy, options?: RequestOptions): Promise<SlimPolicyResponse>;
10
+ update(policyId: string, body: SlimUpdatePolicy, options?: RequestOptions): Promise<SlimPolicyResponse>;
11
+ delete(policyId: string, options?: RequestOptions): Promise<void>;
12
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlimPoliciesResource = void 0;
4
+ const query_string_1 = require("../../../client/query-string");
5
+ const url_1 = require("../../http/url");
6
+ const slim_paths_1 = require("./slim-paths");
7
+ const POLICIES_PATH = `${slim_paths_1.SLIM_PATH}/policy`;
8
+ const policyPath = (policyId) => `${POLICIES_PATH}/${(0, url_1.pathSegment)(policyId)}`;
9
+ class SlimPoliciesResource {
10
+ constructor(http) {
11
+ this.http = http;
12
+ }
13
+ list(params = {}, options) {
14
+ return this.http.get(`${POLICIES_PATH}${(0, query_string_1.toQueryString)(params)}`, options);
15
+ }
16
+ retrieve(policyId, options) {
17
+ return this.http.get(policyPath(policyId), options);
18
+ }
19
+ create(body, options) {
20
+ return this.http.post(POLICIES_PATH, body, options);
21
+ }
22
+ update(policyId, body, options) {
23
+ return this.http.put(policyPath(policyId), body, options);
24
+ }
25
+ delete(policyId, options) {
26
+ return this.http.delete(policyPath(policyId), options);
27
+ }
28
+ }
29
+ exports.SlimPoliciesResource = SlimPoliciesResource;
@@ -0,0 +1,8 @@
1
+ import type { SlimPractitionerInviteInput, SlimPractitionerInviteResponse } from "../../../client/slim/types";
2
+ import { HttpClient } from "../../http/http-client";
3
+ import { RequestOptions } from "../../http/transmit";
4
+ export declare class SlimPractitionersResource {
5
+ private readonly http;
6
+ constructor(http: HttpClient);
7
+ invite(body: SlimPractitionerInviteInput, options?: RequestOptions): Promise<SlimPractitionerInviteResponse>;
8
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlimPractitionersResource = void 0;
4
+ const slim_paths_1 = require("./slim-paths");
5
+ const INVITE_PRACTITIONER_PATH = `${slim_paths_1.SLIM_PATH}/invite/practitioner`;
6
+ class SlimPractitionersResource {
7
+ constructor(http) {
8
+ this.http = http;
9
+ }
10
+ invite(body, options) {
11
+ return this.http.post(INVITE_PRACTITIONER_PATH, body, options);
12
+ }
13
+ }
14
+ exports.SlimPractitionersResource = SlimPractitionersResource;
@@ -0,0 +1,16 @@
1
+ import type { SlimChildProjectInput, SlimProject, SlimProjectDeviceCounts, SlimProjectPatientCounts, SlimProjectUser, SlimProjectUsersQuery } from "../../../client/slim/types";
2
+ import { HttpClient } from "../../http/http-client";
3
+ import { RequestOptions } from "../../http/transmit";
4
+ import { PagePromise } from "../../paging/page";
5
+ import { SlimChildProjectsResource } from "./slim-child-projects-resource";
6
+ export declare class SlimProjectsResource {
7
+ private readonly http;
8
+ readonly children: SlimChildProjectsResource;
9
+ constructor(http: HttpClient);
10
+ retrieve(projectId: string, options?: RequestOptions): Promise<SlimProject>;
11
+ update(projectId: string, body: SlimChildProjectInput, options?: RequestOptions): Promise<SlimProject>;
12
+ users(projectId: string, params?: SlimProjectUsersQuery, options?: RequestOptions): PagePromise<SlimProjectUser>;
13
+ currentUsers(params?: SlimProjectUsersQuery, options?: RequestOptions): PagePromise<SlimProjectUser>;
14
+ deviceCounts(projectId: string, options?: RequestOptions): Promise<SlimProjectDeviceCounts>;
15
+ patientCounts(projectId: string, options?: RequestOptions): Promise<SlimProjectPatientCounts>;
16
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlimProjectsResource = void 0;
4
+ const url_1 = require("../../http/url");
5
+ const numbered_pages_1 = require("../../paging/numbered-pages");
6
+ const slim_child_projects_resource_1 = require("./slim-child-projects-resource");
7
+ const slim_paths_1 = require("./slim-paths");
8
+ const USERS = "users";
9
+ const CURRENT_USERS_PATH = `${slim_paths_1.PROJECT_PATH}/${USERS}`;
10
+ const projectPath = (projectId) => `${slim_paths_1.PROJECT_PATH}/${(0, url_1.pathSegment)(projectId)}`;
11
+ class SlimProjectsResource {
12
+ constructor(http) {
13
+ this.http = http;
14
+ this.children = new slim_child_projects_resource_1.SlimChildProjectsResource(http);
15
+ }
16
+ retrieve(projectId, options) {
17
+ return this.http.get(projectPath(projectId), options);
18
+ }
19
+ update(projectId, body, options) {
20
+ return this.http.put(projectPath(projectId), body, options);
21
+ }
22
+ users(projectId, params = {}, options) {
23
+ return (0, numbered_pages_1.numberedRoutePages)((path) => this.http.get(path, options), `${projectPath(projectId)}/${USERS}`, params);
24
+ }
25
+ currentUsers(params = {}, options) {
26
+ return (0, numbered_pages_1.numberedRoutePages)((path) => this.http.get(path, options), CURRENT_USERS_PATH, params);
27
+ }
28
+ deviceCounts(projectId, options) {
29
+ return this.http.get(`${projectPath(projectId)}/device-counts`, options);
30
+ }
31
+ patientCounts(projectId, options) {
32
+ return this.http.get(`${projectPath(projectId)}/patient-counts`, options);
33
+ }
34
+ }
35
+ exports.SlimProjectsResource = SlimProjectsResource;
@@ -0,0 +1,34 @@
1
+ import type { SlimGraphType, SlimHistoricalGraphType } from "../../../client/slim/types";
2
+ export type SlimRecentQuery = {
3
+ count?: number;
4
+ };
5
+ export type SlimTrendsQuery = {
6
+ patientId: string;
7
+ startDate: string;
8
+ endDate: string;
9
+ graphType: SlimHistoricalGraphType | readonly SlimHistoricalGraphType[];
10
+ };
11
+ export type SlimRealtimeTrendsQuery = {
12
+ patientId: string;
13
+ startTime: string;
14
+ endTime: string;
15
+ graphType: SlimGraphType | readonly SlimGraphType[];
16
+ };
17
+ export type SlimSleepStatisticsQuery = {
18
+ endDate: string;
19
+ lastDayCount?: number;
20
+ patientId: string;
21
+ };
22
+ export type SlimZoneListQuery = {
23
+ page?: number;
24
+ count?: number;
25
+ sortBy?: string;
26
+ orderBy?: "ASC" | "DESC";
27
+ search?: string;
28
+ };
29
+ export type SlimZoneDeviceCountsQuery = {
30
+ all?: boolean;
31
+ effectiveSleepStatus?: string;
32
+ includeUnassigned?: boolean;
33
+ includeEmpty?: boolean;
34
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,38 @@
1
+ import type { SlimHealth } from "../../../client/slim/types";
2
+ import { HttpClient } from "../../http/http-client";
3
+ import { RequestOptions } from "../../http/transmit";
4
+ import { SlimChangeHistoryResource } from "./slim-change-history-resource";
5
+ import { SlimDevicesResource } from "./slim-devices-resource";
6
+ import { SlimExportsResource } from "./slim-exports-resource";
7
+ import { SlimLocationsResource } from "./slim-locations-resource";
8
+ import { SlimNotificationsResource } from "./slim-notifications-resource";
9
+ import { SlimOrganizationsResource } from "./slim-organizations-resource";
10
+ import { SlimPatientsResource } from "./slim-patients-resource";
11
+ import { SlimPoliciesResource } from "./slim-policies-resource";
12
+ import { SlimPractitionersResource } from "./slim-practitioners-resource";
13
+ import { SlimProjectsResource } from "./slim-projects-resource";
14
+ import { SlimSleepResource } from "./slim-sleep-resource";
15
+ import { SlimThresholdsResource } from "./slim-thresholds-resource";
16
+ import { SlimTrendsResource } from "./slim-trends-resource";
17
+ import { SlimUsersResource } from "./slim-users-resource";
18
+ import { SlimZonesResource } from "./slim-zones-resource";
19
+ export declare class SlimResource {
20
+ private readonly http;
21
+ readonly patients: SlimPatientsResource;
22
+ readonly devices: SlimDevicesResource;
23
+ readonly notifications: SlimNotificationsResource;
24
+ readonly thresholds: SlimThresholdsResource;
25
+ readonly trends: SlimTrendsResource;
26
+ readonly sleep: SlimSleepResource;
27
+ readonly locations: SlimLocationsResource;
28
+ readonly zones: SlimZonesResource;
29
+ readonly exports: SlimExportsResource;
30
+ readonly changeHistory: SlimChangeHistoryResource;
31
+ readonly projects: SlimProjectsResource;
32
+ readonly policies: SlimPoliciesResource;
33
+ readonly organizations: SlimOrganizationsResource;
34
+ readonly practitioners: SlimPractitionersResource;
35
+ readonly users: SlimUsersResource;
36
+ constructor(http: HttpClient);
37
+ health(options?: RequestOptions): Promise<SlimHealth>;
38
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlimResource = void 0;
4
+ const slim_change_history_resource_1 = require("./slim-change-history-resource");
5
+ const slim_devices_resource_1 = require("./slim-devices-resource");
6
+ const slim_exports_resource_1 = require("./slim-exports-resource");
7
+ const slim_locations_resource_1 = require("./slim-locations-resource");
8
+ const slim_notifications_resource_1 = require("./slim-notifications-resource");
9
+ const slim_organizations_resource_1 = require("./slim-organizations-resource");
10
+ const slim_paths_1 = require("./slim-paths");
11
+ const slim_patients_resource_1 = require("./slim-patients-resource");
12
+ const slim_policies_resource_1 = require("./slim-policies-resource");
13
+ const slim_practitioners_resource_1 = require("./slim-practitioners-resource");
14
+ const slim_projects_resource_1 = require("./slim-projects-resource");
15
+ const slim_sleep_resource_1 = require("./slim-sleep-resource");
16
+ const slim_thresholds_resource_1 = require("./slim-thresholds-resource");
17
+ const slim_trends_resource_1 = require("./slim-trends-resource");
18
+ const slim_users_resource_1 = require("./slim-users-resource");
19
+ const slim_zones_resource_1 = require("./slim-zones-resource");
20
+ const HEALTH_PATH = `${slim_paths_1.SLIM_PATH}/health`;
21
+ class SlimResource {
22
+ constructor(http) {
23
+ this.http = http;
24
+ this.patients = new slim_patients_resource_1.SlimPatientsResource(http);
25
+ this.devices = new slim_devices_resource_1.SlimDevicesResource(http);
26
+ this.notifications = new slim_notifications_resource_1.SlimNotificationsResource(http);
27
+ this.thresholds = new slim_thresholds_resource_1.SlimThresholdsResource(http);
28
+ this.trends = new slim_trends_resource_1.SlimTrendsResource(http);
29
+ this.sleep = new slim_sleep_resource_1.SlimSleepResource(http);
30
+ this.locations = new slim_locations_resource_1.SlimLocationsResource(http);
31
+ this.zones = new slim_zones_resource_1.SlimZonesResource(http);
32
+ this.exports = new slim_exports_resource_1.SlimExportsResource(http);
33
+ this.changeHistory = new slim_change_history_resource_1.SlimChangeHistoryResource(http);
34
+ this.projects = new slim_projects_resource_1.SlimProjectsResource(http);
35
+ this.policies = new slim_policies_resource_1.SlimPoliciesResource(http);
36
+ this.organizations = new slim_organizations_resource_1.SlimOrganizationsResource(http);
37
+ this.practitioners = new slim_practitioners_resource_1.SlimPractitionersResource(http);
38
+ this.users = new slim_users_resource_1.SlimUsersResource(http);
39
+ }
40
+ health(options) {
41
+ return this.http.get(HEALTH_PATH, options);
42
+ }
43
+ }
44
+ exports.SlimResource = SlimResource;
@@ -0,0 +1,9 @@
1
+ import type { SlimSleepStatistics } from "../../../client/slim/types";
2
+ import { HttpClient } from "../../http/http-client";
3
+ import { RequestOptions } from "../../http/transmit";
4
+ import { SlimSleepStatisticsQuery } from "./slim-queries";
5
+ export declare class SlimSleepResource {
6
+ private readonly http;
7
+ constructor(http: HttpClient);
8
+ statistics(params: SlimSleepStatisticsQuery, options?: RequestOptions): Promise<SlimSleepStatistics>;
9
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlimSleepResource = void 0;
4
+ const query_string_1 = require("../../../client/query-string");
5
+ const slim_paths_1 = require("./slim-paths");
6
+ const SLEEP_STATISTICS_PATH = `${slim_paths_1.SLIM_PATH}/sleep/statistics`;
7
+ class SlimSleepResource {
8
+ constructor(http) {
9
+ this.http = http;
10
+ }
11
+ statistics(params, options) {
12
+ return this.http.get(`${SLEEP_STATISTICS_PATH}${(0, query_string_1.toQueryString)(params)}`, options);
13
+ }
14
+ }
15
+ exports.SlimSleepResource = SlimSleepResource;
@@ -0,0 +1,11 @@
1
+ import type { SlimThresholdV2, SlimThresholdV2Update } from "../../../client/slim/types";
2
+ import { HttpClient } from "../../http/http-client";
3
+ import { RequestOptions } from "../../http/transmit";
4
+ export declare class SlimThresholdsResource {
5
+ private readonly http;
6
+ constructor(http: HttpClient);
7
+ /** A home with no stored limits reads as the default template, not as unset. */
8
+ retrieve(options?: RequestOptions): Promise<SlimThresholdV2>;
9
+ /** Never retried: a 502 means Signals did not take every resident's limits and nothing was written. */
10
+ update(body: SlimThresholdV2Update, options?: RequestOptions): Promise<SlimThresholdV2>;
11
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlimThresholdsResource = void 0;
4
+ const slim_paths_1 = require("./slim-paths");
5
+ class SlimThresholdsResource {
6
+ constructor(http) {
7
+ this.http = http;
8
+ }
9
+ /** A home with no stored limits reads as the default template, not as unset. */
10
+ retrieve(options) {
11
+ return this.http.get(slim_paths_1.THRESHOLD_V2_PATH, options);
12
+ }
13
+ /** Never retried: a 502 means Signals did not take every resident's limits and nothing was written. */
14
+ update(body, options) {
15
+ return this.http.send({ method: "PUT", path: slim_paths_1.THRESHOLD_V2_PATH, body, idempotent: false }, options);
16
+ }
17
+ }
18
+ exports.SlimThresholdsResource = SlimThresholdsResource;
@@ -0,0 +1,11 @@
1
+ import type { SlimTrends } from "../../../client/slim/types";
2
+ import { HttpClient } from "../../http/http-client";
3
+ import { RequestOptions } from "../../http/transmit";
4
+ import { SlimRealtimeTrendsQuery, SlimTrendsQuery } from "./slim-queries";
5
+ export declare class SlimTrendsResource {
6
+ private readonly http;
7
+ constructor(http: HttpClient);
8
+ graphs(params: SlimTrendsQuery, options?: RequestOptions): Promise<SlimTrends>;
9
+ /** At most 20 calls per minute per caller: load once per view and wait retryAfterMs after a 503. */
10
+ realtime(params: SlimRealtimeTrendsQuery, options?: RequestOptions): Promise<SlimTrends>;
11
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlimTrendsResource = void 0;
4
+ const query_string_1 = require("../../../client/query-string");
5
+ const slim_paths_1 = require("./slim-paths");
6
+ const TRENDS_PATH = `${slim_paths_1.SLIM_PATH}/trends`;
7
+ class SlimTrendsResource {
8
+ constructor(http) {
9
+ this.http = http;
10
+ }
11
+ graphs(params, options) {
12
+ return this.http.get(`${TRENDS_PATH}/graphs${(0, query_string_1.toQueryString)(params)}`, options);
13
+ }
14
+ /** At most 20 calls per minute per caller: load once per view and wait retryAfterMs after a 503. */
15
+ realtime(params, options) {
16
+ return this.http.get(`${TRENDS_PATH}/realtime${(0, query_string_1.toQueryString)(params)}`, options);
17
+ }
18
+ }
19
+ exports.SlimTrendsResource = SlimTrendsResource;
@@ -0,0 +1,11 @@
1
+ import type { SlimUserProfileType } from "../../../client/slim/types";
2
+ import { HttpClient } from "../../http/http-client";
3
+ import { RequestOptions } from "../../http/transmit";
4
+ export type SlimUserDeleted = {
5
+ success: boolean;
6
+ };
7
+ export declare class SlimUsersResource {
8
+ private readonly http;
9
+ constructor(http: HttpClient);
10
+ delete(profileType: SlimUserProfileType, profileId: string, options?: RequestOptions): Promise<SlimUserDeleted>;
11
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlimUsersResource = void 0;
4
+ const url_1 = require("../../http/url");
5
+ const slim_paths_1 = require("./slim-paths");
6
+ const USERS_PATH = `${slim_paths_1.SLIM_PATH}/user`;
7
+ class SlimUsersResource {
8
+ constructor(http) {
9
+ this.http = http;
10
+ }
11
+ delete(profileType, profileId, options) {
12
+ return this.http.delete(`${USERS_PATH}/${(0, url_1.pathSegment)(profileType)}/${(0, url_1.pathSegment)(profileId)}`, options);
13
+ }
14
+ }
15
+ exports.SlimUsersResource = SlimUsersResource;
@@ -0,0 +1,12 @@
1
+ import type { SlimZone, SlimZoneDetail } from "../../../client/slim/types";
2
+ import { HttpClient } from "../../http/http-client";
3
+ import { RequestOptions } from "../../http/transmit";
4
+ import { PagePromise } from "../../paging/page";
5
+ import { SlimZoneDeviceCountsQuery, SlimZoneListQuery } from "./slim-queries";
6
+ export declare class SlimZonesResource {
7
+ private readonly http;
8
+ constructor(http: HttpClient);
9
+ list(params?: SlimZoneListQuery, options?: RequestOptions): PagePromise<SlimZone>;
10
+ retrieve(zoneId: string, options?: RequestOptions): Promise<SlimZoneDetail>;
11
+ deviceCounts(params?: SlimZoneDeviceCountsQuery, options?: RequestOptions): Promise<Record<string, unknown>>;
12
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlimZonesResource = void 0;
4
+ const query_string_1 = require("../../../client/query-string");
5
+ const url_1 = require("../../http/url");
6
+ const numbered_pages_1 = require("../../paging/numbered-pages");
7
+ const slim_paths_1 = require("./slim-paths");
8
+ const ZONES_PATH = `${slim_paths_1.SLIM_PATH}/zones`;
9
+ const DEVICE_COUNTS_PATH = `${ZONES_PATH}/device-counts`;
10
+ class SlimZonesResource {
11
+ constructor(http) {
12
+ this.http = http;
13
+ }
14
+ list(params = {}, options) {
15
+ return (0, numbered_pages_1.numberedRoutePages)((path) => this.http.get(path, options), ZONES_PATH, params);
16
+ }
17
+ retrieve(zoneId, options) {
18
+ return this.http.get(`${ZONES_PATH}/${(0, url_1.pathSegment)(zoneId)}`, options);
19
+ }
20
+ deviceCounts(params = {}, options) {
21
+ return this.http.get(`${DEVICE_COUNTS_PATH}${(0, query_string_1.toQueryString)(params)}`, options);
22
+ }
23
+ }
24
+ exports.SlimZonesResource = SlimZonesResource;
@@ -0,0 +1,11 @@
1
+ import type { OvokVideoCallAccess, OvokVideoCallGuestAccess } from "../../../client/experience/types";
2
+ import { HttpClient } from "../../http/http-client";
3
+ import { RequestOptions } from "../../http/transmit";
4
+ export type VideoCallAccessPermission = Record<string, unknown>;
5
+ export declare class VideoCallAccessResource {
6
+ private readonly livekit;
7
+ constructor(livekit: HttpClient);
8
+ permission(appointmentId: string, options?: RequestOptions): Promise<VideoCallAccessPermission>;
9
+ createGuest(appointmentId: string, body: OvokVideoCallGuestAccess, options?: RequestOptions): Promise<OvokVideoCallAccess>;
10
+ createUser(appointmentId: string, options?: RequestOptions): Promise<OvokVideoCallAccess>;
11
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VideoCallAccessResource = void 0;
4
+ const url_1 = require("../../http/url");
5
+ class VideoCallAccessResource {
6
+ constructor(livekit) {
7
+ this.livekit = livekit;
8
+ }
9
+ permission(appointmentId, options) {
10
+ return this.livekit.get(`access-permission/${(0, url_1.pathSegment)(appointmentId)}`, options);
11
+ }
12
+ createGuest(appointmentId, body, options) {
13
+ return this.livekit.post(`guest-access/${(0, url_1.pathSegment)(appointmentId)}`, body, options);
14
+ }
15
+ createUser(appointmentId, options) {
16
+ return this.livekit.post(`user-access/${(0, url_1.pathSegment)(appointmentId)}`, undefined, options);
17
+ }
18
+ }
19
+ exports.VideoCallAccessResource = VideoCallAccessResource;
@@ -0,0 +1,10 @@
1
+ import type { OvokVideoCallAppointment, OvokVideoCallAppointmentInput, OvokVideoCallAppointmentQuery } from "../../../client/experience/types";
2
+ import { HttpClient } from "../../http/http-client";
3
+ import { RequestOptions } from "../../http/transmit";
4
+ export declare class VideoCallAppointmentsResource {
5
+ private readonly livekit;
6
+ constructor(livekit: HttpClient);
7
+ list(params?: OvokVideoCallAppointmentQuery, options?: RequestOptions): Promise<OvokVideoCallAppointment[]>;
8
+ create(body: OvokVideoCallAppointmentInput, options?: RequestOptions): Promise<OvokVideoCallAppointment>;
9
+ update(appointmentId: string, body: OvokVideoCallAppointmentInput, options?: RequestOptions): Promise<OvokVideoCallAppointment>;
10
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VideoCallAppointmentsResource = void 0;
4
+ const query_string_1 = require("../../../client/query-string");
5
+ const url_1 = require("../../http/url");
6
+ const APPOINTMENT_PATH = "appointment";
7
+ class VideoCallAppointmentsResource {
8
+ constructor(livekit) {
9
+ this.livekit = livekit;
10
+ }
11
+ list(params = {}, options) {
12
+ return this.livekit.get(`${APPOINTMENT_PATH}${(0, query_string_1.toQueryString)(params)}`, options);
13
+ }
14
+ create(body, options) {
15
+ return this.livekit.post(APPOINTMENT_PATH, body, options);
16
+ }
17
+ update(appointmentId, body, options) {
18
+ return this.livekit.put(`${APPOINTMENT_PATH}/${(0, url_1.pathSegment)(appointmentId)}`, body, options);
19
+ }
20
+ }
21
+ exports.VideoCallAppointmentsResource = VideoCallAppointmentsResource;
@@ -0,0 +1,10 @@
1
+ import type { OvokVideoCallMailRequest, OvokVideoCallMailResponse } from "../../../client/experience/types";
2
+ import { HttpClient } from "../../http/http-client";
3
+ import { RequestOptions } from "../../http/transmit";
4
+ export declare class VideoCallEmailsResource {
5
+ private readonly livekit;
6
+ constructor(livekit: HttpClient);
7
+ invite(body: OvokVideoCallMailRequest, options?: RequestOptions): Promise<OvokVideoCallMailResponse>;
8
+ update(body: OvokVideoCallMailRequest, options?: RequestOptions): Promise<OvokVideoCallMailResponse>;
9
+ cancel(body: OvokVideoCallMailRequest, options?: RequestOptions): Promise<OvokVideoCallMailResponse>;
10
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VideoCallEmailsResource = void 0;
4
+ const MAIL_PATH = "mail";
5
+ class VideoCallEmailsResource {
6
+ constructor(livekit) {
7
+ this.livekit = livekit;
8
+ }
9
+ invite(body, options) {
10
+ return this.livekit.post(`${MAIL_PATH}/invite`, body, options);
11
+ }
12
+ update(body, options) {
13
+ return this.livekit.post(`${MAIL_PATH}/update`, body, options);
14
+ }
15
+ cancel(body, options) {
16
+ return this.livekit.post(`${MAIL_PATH}/cancel`, body, options);
17
+ }
18
+ }
19
+ exports.VideoCallEmailsResource = VideoCallEmailsResource;
@@ -0,0 +1,14 @@
1
+ import { HttpClient } from "../../http/http-client";
2
+ import { RequestOptions } from "../../http/transmit";
3
+ import { VideoCallAccessResource } from "./video-call-access-resource";
4
+ import { VideoCallAppointmentsResource } from "./video-call-appointments-resource";
5
+ import { VideoCallEmailsResource } from "./video-call-emails-resource";
6
+ export type ActiveCallNotification = Record<string, unknown>;
7
+ export declare class VideoCallsResource {
8
+ readonly appointments: VideoCallAppointmentsResource;
9
+ readonly access: VideoCallAccessResource;
10
+ readonly emails: VideoCallEmailsResource;
11
+ private readonly livekit;
12
+ constructor(http: HttpClient);
13
+ notifyActive(appointmentId: string, options?: RequestOptions): Promise<ActiveCallNotification>;
14
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VideoCallsResource = void 0;
4
+ const url_1 = require("../../http/url");
5
+ const video_call_access_resource_1 = require("./video-call-access-resource");
6
+ const video_call_appointments_resource_1 = require("./video-call-appointments-resource");
7
+ const video_call_emails_resource_1 = require("./video-call-emails-resource");
8
+ const LIVEKIT_PATH = "video-call/livekit";
9
+ class VideoCallsResource {
10
+ constructor(http) {
11
+ this.livekit = http.under(LIVEKIT_PATH);
12
+ this.appointments = new video_call_appointments_resource_1.VideoCallAppointmentsResource(this.livekit);
13
+ this.access = new video_call_access_resource_1.VideoCallAccessResource(this.livekit);
14
+ this.emails = new video_call_emails_resource_1.VideoCallEmailsResource(this.livekit);
15
+ }
16
+ notifyActive(appointmentId, options) {
17
+ return this.livekit.post(`notification/active-call/${(0, url_1.pathSegment)(appointmentId)}`, undefined, options);
18
+ }
19
+ }
20
+ exports.VideoCallsResource = VideoCallsResource;