@icanbwell/bwell-sdk-ts 2.0.0-alpha.0-rc.1754330797 → 2.0.0-alpha.0-rc.1754488327

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 (292) hide show
  1. package/README.md +17 -1
  2. package/dist/__version__.d.ts +1 -1
  3. package/dist/__version__.js +1 -1
  4. package/dist/api/base/connection/connection-manager.d.ts +55 -49
  5. package/dist/api/base/connection/connection-manager.js +3 -0
  6. package/dist/api/base/connection/connection-request.d.ts +15 -1
  7. package/dist/api/base/connection/connection-request.js +8 -0
  8. package/dist/api/base/connection/index.d.ts +1 -2
  9. package/dist/api/base/health-data/health-data-request.d.ts +105 -0
  10. package/dist/api/base/health-data/health-data-request.js +81 -0
  11. package/dist/api/base/health-data/health-manager.d.ts +104 -64
  12. package/dist/api/base/health-data/index.d.ts +1 -1
  13. package/dist/api/base/health-data/lab-knowledge-request.d.ts +9 -0
  14. package/dist/api/base/health-data/lab-knowledge-request.js +3 -0
  15. package/dist/api/base/health-data/medication-knowledge-request.d.ts +9 -0
  16. package/dist/api/base/health-data/medication-knowledge-request.js +3 -0
  17. package/dist/api/base/health-data/medication-pricing-request.d.ts +9 -0
  18. package/dist/api/base/health-data/medication-pricing-request.js +3 -0
  19. package/dist/api/base/health-space/appointments-request.d.ts +9 -0
  20. package/dist/api/base/health-space/appointments-request.js +3 -0
  21. package/dist/api/base/health-space/cancel-appointment-request.d.ts +8 -1
  22. package/dist/api/base/health-space/cancel-appointment-request.js +4 -0
  23. package/dist/api/base/health-space/cancellation-reasons-request.d.ts +28 -0
  24. package/dist/api/base/health-space/{cancelationReasons-request.js → cancellation-reasons-request.js} +10 -4
  25. package/dist/api/base/health-space/health-space-manager.d.ts +33 -24
  26. package/dist/api/base/health-space/index.d.ts +2 -2
  27. package/dist/api/base/health-space/index.js +1 -1
  28. package/dist/api/base/identity/identity-manager.d.ts +97 -10
  29. package/dist/api/base/questionnaire/index.d.ts +1 -1
  30. package/dist/api/base/questionnaire/next-question-request.d.ts +8 -2
  31. package/dist/api/base/questionnaire/next-question-request.js +4 -1
  32. package/dist/api/base/questionnaire/questionnaire-manager.d.ts +16 -9
  33. package/dist/api/base/requests/search-date.d.ts +12 -0
  34. package/dist/api/base/requests/search-string.d.ts +6 -0
  35. package/dist/api/base/requests/search-token.d.ts +18 -0
  36. package/dist/api/base/user/create-consent-request.d.ts +13 -1
  37. package/dist/api/base/user/create-consent-request.js +8 -3
  38. package/dist/api/base/user/create-verification-url-request.d.ts +12 -0
  39. package/dist/api/base/user/create-verification-url-request.js +6 -0
  40. package/dist/api/base/user/get-consents-request.d.ts +19 -1
  41. package/dist/api/base/user/get-consents-request.js +13 -1
  42. package/dist/api/base/user/index.d.ts +1 -2
  43. package/dist/api/base/user/update-profile-request.d.ts +11 -3
  44. package/dist/api/base/user/update-profile-request.js +5 -3
  45. package/dist/api/base/user/user-manager.d.ts +50 -55
  46. package/dist/api/base/user/validators.d.ts +5 -0
  47. package/dist/api/base/user/validators.js +13 -0
  48. package/dist/api/graphql-api/connection/connection-response-factory.d.ts +1 -1
  49. package/dist/api/graphql-api/connection/connection-response-factory.js +1 -4
  50. package/dist/api/graphql-api/connection/graphql-connection-manager.d.ts +7 -6
  51. package/dist/api/graphql-api/connection/graphql-connection-manager.js +6 -3
  52. package/dist/api/graphql-api/errors/errors.js +1 -1
  53. package/dist/api/graphql-api/health-space/cancel-appointment-request-factory.js +1 -2
  54. package/dist/api/graphql-api/health-space/graphql-health-space-manager.d.ts +5 -4
  55. package/dist/api/graphql-api/health-space/graphql-health-space-manager.js +7 -6
  56. package/dist/api/graphql-api/healthdata/graphql-health-manager.d.ts +13 -12
  57. package/dist/api/graphql-api/identity/graphql-identity-manager.d.ts +2 -1
  58. package/dist/api/graphql-api/identity/graphql-identity-manager.js +4 -2
  59. package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.d.ts +3 -2
  60. package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.js +2 -1
  61. package/dist/api/graphql-api/user/graphql-user-manager.d.ts +7 -7
  62. package/dist/api/graphql-api/user/graphql-user-manager.js +7 -4
  63. package/dist/api/graphql-api/user/update-profile-request-factory.js +1 -2
  64. package/dist/auth/auth-code-strategy.d.ts +2 -1
  65. package/dist/auth/auth-strategy.d.ts +1 -1
  66. package/dist/auth/oauth-strategy.d.ts +2 -1
  67. package/dist/auth/username-password-strategy.d.ts +2 -1
  68. package/dist/bwell-sdk/bwell-sdk.d.ts +289 -33
  69. package/dist/bwell-sdk/bwell-sdk.js +294 -30
  70. package/dist/config/bwell-config.d.ts +8 -2
  71. package/dist/config/bwell-config.js +1 -3
  72. package/dist/config/sdk-config.d.ts +1 -1
  73. package/dist/errors/authentication-error.d.ts +7 -0
  74. package/dist/errors/authentication-error.js +7 -0
  75. package/dist/errors/bwell-error.d.ts +12 -2
  76. package/dist/errors/bwell-error.js +5 -2
  77. package/dist/errors/illegal-argument-error.d.ts +7 -0
  78. package/dist/errors/illegal-argument-error.js +7 -0
  79. package/dist/errors/illegal-state-error.d.ts +7 -0
  80. package/dist/errors/illegal-state-error.js +7 -0
  81. package/dist/errors/invalid-client-key-error.d.ts +7 -0
  82. package/dist/errors/invalid-client-key-error.js +7 -0
  83. package/dist/errors/invalid-credentials-type-error.d.ts +7 -0
  84. package/dist/errors/invalid-credentials-type-error.js +7 -0
  85. package/dist/errors/invalid-token-error.d.ts +4 -1
  86. package/dist/errors/invalid-token-error.js +4 -1
  87. package/dist/errors/network-error.d.ts +7 -0
  88. package/dist/errors/network-error.js +7 -0
  89. package/dist/errors/operation-outcome-error.d.ts +8 -1
  90. package/dist/errors/operation-outcome-error.js +7 -0
  91. package/dist/errors/unknown-error.d.ts +7 -0
  92. package/dist/errors/unknown-error.js +7 -0
  93. package/dist/errors/validation-error.d.ts +7 -0
  94. package/dist/errors/validation-error.js +7 -0
  95. package/dist/graphql/operations/index.d.ts +30 -30
  96. package/dist/graphql/operations/index.js +6 -4
  97. package/dist/graphql/operations/types.d.ts +242 -6
  98. package/dist/graphql/schema.d.ts +90 -277
  99. package/dist/graphql/schema.js +1 -369
  100. package/dist/index.d.ts +7 -5
  101. package/dist/index.js +5 -4
  102. package/dist/language/language-manager.d.ts +25 -10
  103. package/dist/language/language-manager.js +5 -0
  104. package/dist/models/common/address.d.ts +41 -0
  105. package/dist/models/common/annotation.d.ts +18 -0
  106. package/dist/models/common/attachment.d.ts +18 -0
  107. package/dist/models/common/bundle.d.ts +59 -0
  108. package/dist/models/common/codeable-concept.d.ts +17 -0
  109. package/dist/models/common/codeable-concept.js +1 -0
  110. package/dist/models/common/coding.d.ts +18 -0
  111. package/dist/models/common/coding.js +1 -0
  112. package/dist/models/common/component.d.ts +23 -0
  113. package/dist/models/common/component.js +1 -0
  114. package/dist/models/common/contact-point.d.ts +28 -0
  115. package/dist/models/common/contact-point.js +1 -0
  116. package/dist/models/common/expression.d.ts +20 -0
  117. package/dist/models/common/expression.js +1 -0
  118. package/dist/models/common/extension.d.ts +47 -0
  119. package/dist/models/common/extension.js +1 -0
  120. package/dist/models/common/fhir-error.d.ts +23 -0
  121. package/dist/models/common/fhir-error.js +1 -0
  122. package/dist/models/common/human-name.d.ts +20 -0
  123. package/dist/models/common/human-name.js +1 -0
  124. package/dist/models/common/identifier.d.ts +19 -0
  125. package/dist/models/common/identifier.js +1 -0
  126. package/dist/models/common/index.d.ts +23 -0
  127. package/dist/models/common/index.js +2 -0
  128. package/dist/models/common/location.d.ts +44 -0
  129. package/dist/models/common/location.js +1 -0
  130. package/dist/models/common/meta.d.ts +21 -0
  131. package/dist/models/common/meta.js +1 -0
  132. package/dist/models/common/narrative.d.ts +14 -0
  133. package/dist/models/common/narrative.js +1 -0
  134. package/dist/models/common/operation-outcome.d.ts +48 -0
  135. package/dist/models/common/operation-outcome.js +1 -0
  136. package/dist/models/common/paging-info.d.ts +18 -0
  137. package/dist/models/common/paging-info.js +1 -0
  138. package/dist/models/common/period.d.ts +14 -0
  139. package/dist/models/common/period.js +1 -0
  140. package/dist/models/common/quantity.d.ts +20 -0
  141. package/dist/models/common/quantity.js +1 -0
  142. package/dist/models/common/range.d.ts +15 -0
  143. package/dist/models/common/range.js +1 -0
  144. package/dist/models/common/ratio.d.ts +15 -0
  145. package/dist/models/common/ratio.js +1 -0
  146. package/dist/models/common/reference-range.d.ts +13 -0
  147. package/dist/models/common/reference-range.js +1 -0
  148. package/dist/models/common/reference.d.ts +26 -0
  149. package/dist/models/common/reference.js +1 -0
  150. package/dist/models/connection/base-connection.d.ts +27 -0
  151. package/dist/models/connection/base-connection.js +1 -0
  152. package/dist/models/connection/connection-status.d.ts +15 -0
  153. package/dist/models/connection/connection-status.js +1 -0
  154. package/dist/models/connection/connection.d.ts +32 -0
  155. package/dist/models/connection/connection.js +1 -0
  156. package/dist/models/connection/data-source.d.ts +27 -0
  157. package/dist/models/connection/data-source.js +1 -0
  158. package/dist/models/connection/index.d.ts +6 -0
  159. package/dist/models/connection/index.js +1 -0
  160. package/dist/models/connection/member-connection.d.ts +25 -0
  161. package/dist/models/connection/member-connection.js +1 -0
  162. package/dist/models/connection/oauth-url.d.ts +12 -0
  163. package/dist/models/connection/oauth-url.js +1 -0
  164. package/dist/models/enums/category-code.d.ts +11 -0
  165. package/dist/models/enums/category-code.js +13 -0
  166. package/dist/models/enums/connection-category.d.ts +9 -0
  167. package/dist/models/enums/connection-category.js +1 -0
  168. package/dist/models/enums/consent-provision-type.d.ts +11 -0
  169. package/dist/models/enums/consent-provision-type.js +2 -0
  170. package/dist/models/enums/consent-status.d.ts +11 -0
  171. package/dist/models/enums/consent-status.js +9 -0
  172. package/dist/models/enums/data-connection-status.d.ts +9 -0
  173. package/dist/models/enums/data-connection-status.js +1 -0
  174. package/dist/models/enums/data-connection-type.d.ts +9 -0
  175. package/dist/models/enums/data-connection-type.js +1 -0
  176. package/dist/models/enums/index.d.ts +9 -0
  177. package/dist/models/enums/index.js +4 -0
  178. package/dist/models/enums/log-level.d.ts +8 -0
  179. package/dist/models/enums/log-level.js +1 -0
  180. package/dist/models/enums/person-gender.d.ts +11 -0
  181. package/dist/models/enums/person-gender.js +7 -0
  182. package/dist/models/enums/sync-status.d.ts +9 -0
  183. package/dist/models/enums/sync-status.js +1 -0
  184. package/dist/models/health-data/allergy-intolerance-bundle.d.ts +11 -0
  185. package/dist/models/health-data/allergy-intolerance-bundle.js +1 -0
  186. package/dist/models/health-data/allergy-intolerance-entry.d.ts +11 -0
  187. package/dist/models/health-data/allergy-intolerance-entry.js +1 -0
  188. package/dist/models/health-data/allergy-intolerance-group.d.ts +36 -0
  189. package/dist/models/health-data/allergy-intolerance-group.js +1 -0
  190. package/dist/models/health-data/allergy-intolerance-reaction.d.ts +23 -0
  191. package/dist/models/health-data/allergy-intolerance-reaction.js +1 -0
  192. package/dist/models/health-data/allergy-intolerance.d.ts +46 -0
  193. package/dist/models/health-data/allergy-intolerance.js +1 -0
  194. package/dist/models/health-data/care-plan-group.d.ts +34 -0
  195. package/dist/models/health-data/care-plan-group.js +1 -0
  196. package/dist/models/health-data/condition-group.d.ts +34 -0
  197. package/dist/models/health-data/condition-group.js +1 -0
  198. package/dist/models/health-data/diagnostic-report-lab-group.d.ts +37 -0
  199. package/dist/models/health-data/diagnostic-report-lab-group.js +1 -0
  200. package/dist/models/health-data/encounter-group.d.ts +40 -0
  201. package/dist/models/health-data/encounter-group.js +1 -0
  202. package/dist/models/health-data/health-summary.d.ts +18 -0
  203. package/dist/models/health-data/health-summary.js +1 -0
  204. package/dist/models/health-data/immunization-group.d.ts +33 -0
  205. package/dist/models/health-data/immunization-group.js +1 -0
  206. package/dist/models/health-data/index.d.ts +15 -0
  207. package/dist/models/health-data/index.js +1 -0
  208. package/dist/models/health-data/lab-group.d.ts +43 -0
  209. package/dist/models/health-data/lab-group.js +1 -0
  210. package/dist/models/health-data/medication-group.d.ts +35 -0
  211. package/dist/models/health-data/medication-group.js +1 -0
  212. package/dist/models/health-data/procedure-group.d.ts +35 -0
  213. package/dist/models/health-data/procedure-group.js +1 -0
  214. package/dist/models/health-data/vital-sign-group.d.ts +43 -0
  215. package/dist/models/health-data/vital-sign-group.js +1 -0
  216. package/dist/models/health-space/appointment-bundle.d.ts +11 -0
  217. package/dist/models/health-space/appointment-bundle.js +1 -0
  218. package/dist/models/health-space/appointment-entry.d.ts +11 -0
  219. package/dist/models/health-space/appointment-entry.js +1 -0
  220. package/dist/models/health-space/appointment-participant.d.ts +17 -0
  221. package/dist/models/health-space/appointment-participant.js +1 -0
  222. package/dist/models/health-space/appointment-update.d.ts +14 -0
  223. package/dist/models/health-space/appointment-update.js +1 -0
  224. package/dist/models/health-space/appointment.d.ts +30 -0
  225. package/dist/models/health-space/appointment.js +1 -0
  226. package/dist/models/health-space/cancellation-reasons.d.ts +32 -0
  227. package/dist/models/health-space/cancellation-reasons.js +1 -0
  228. package/dist/models/health-space/index.d.ts +6 -0
  229. package/dist/models/health-space/index.js +1 -0
  230. package/dist/models/identity/auth-tokens.d.ts +25 -0
  231. package/dist/models/identity/auth-tokens.js +1 -0
  232. package/dist/models/identity/create-guest-access-token-results.d.ts +12 -0
  233. package/dist/models/identity/create-guest-access-token-results.js +1 -0
  234. package/dist/models/identity/index.d.ts +4 -0
  235. package/dist/models/identity/index.js +1 -0
  236. package/dist/models/identity/refresh-token-results.d.ts +8 -0
  237. package/dist/models/identity/refresh-token-results.js +1 -0
  238. package/dist/models/identity/sdk-configuration-result.d.ts +27 -0
  239. package/dist/models/identity/sdk-configuration-result.js +1 -0
  240. package/dist/models/index.d.ts +7 -4
  241. package/dist/models/index.js +7 -4
  242. package/dist/models/questionnaire/index.d.ts +5 -0
  243. package/dist/models/questionnaire/index.js +1 -0
  244. package/dist/models/questionnaire/questionnaire-item.d.ts +38 -0
  245. package/dist/models/questionnaire/questionnaire-item.js +1 -0
  246. package/dist/models/questionnaire/questionnaire-response-answer.d.ts +33 -0
  247. package/dist/models/questionnaire/questionnaire-response-answer.js +1 -0
  248. package/dist/models/questionnaire/questionnaire-response-item.d.ts +19 -0
  249. package/dist/models/questionnaire/questionnaire-response-item.js +1 -0
  250. package/dist/models/questionnaire/questionnaire-response.d.ts +29 -0
  251. package/dist/models/questionnaire/questionnaire-response.js +1 -0
  252. package/dist/models/questionnaire/questionnaire.d.ts +30 -0
  253. package/dist/models/questionnaire/questionnaire.js +1 -0
  254. package/dist/models/user/consent.d.ts +91 -0
  255. package/dist/models/user/consent.js +1 -0
  256. package/dist/models/user/index.d.ts +4 -0
  257. package/dist/models/user/index.js +1 -0
  258. package/dist/models/user/person.d.ts +43 -0
  259. package/dist/models/user/person.js +1 -0
  260. package/dist/models/user/user.d.ts +12 -0
  261. package/dist/models/user/user.js +1 -0
  262. package/dist/models/user/verification-result.d.ts +30 -0
  263. package/dist/models/user/verification-result.js +1 -0
  264. package/dist/requests/paged-request.d.ts +35 -0
  265. package/dist/requests/paged-request.js +22 -0
  266. package/dist/requests/request.d.ts +16 -0
  267. package/dist/requests/request.js +8 -0
  268. package/dist/requests/validator.d.ts +15 -0
  269. package/dist/requests/validator.js +7 -0
  270. package/dist/results/bwell-query-result.d.ts +5 -0
  271. package/dist/results/bwell-query-result.js +5 -0
  272. package/dist/results/bwell-transaction-result.d.ts +17 -3
  273. package/dist/results/bwell-transaction-result.js +15 -1
  274. package/dist/results/index.d.ts +1 -0
  275. package/dist/results/index.js +1 -0
  276. package/dist/tokens/load-auth-tokens.d.ts +1 -1
  277. package/dist/tokens/token-storage.d.ts +4 -0
  278. package/dist/tokens/token-storage.js +2 -0
  279. package/package.json +5 -2
  280. package/dist/api/base/connection/connection.d.ts +0 -19
  281. package/dist/api/base/health-space/cancelationReasons-request.d.ts +0 -16
  282. package/dist/api/base/user/types.d.ts +0 -9
  283. package/dist/api/base/user/types.js +0 -17
  284. package/dist/models/coding.d.ts +0 -5
  285. package/dist/models/fhir-error.d.ts +0 -9
  286. package/dist/models/user.d.ts +0 -4
  287. /package/dist/{api/base/connection/connection.js → models/common/address.js} +0 -0
  288. /package/dist/models/{coding.js → common/annotation.js} +0 -0
  289. /package/dist/models/{fhir-error.js → common/attachment.js} +0 -0
  290. /package/dist/models/{user.js → common/bundle.js} +0 -0
  291. /package/dist/{models → results}/operation-outcome.d.ts +0 -0
  292. /package/dist/{models → results}/operation-outcome.js +0 -0
@@ -0,0 +1,28 @@
1
+ import { SearchReference } from "../../../graphql/schema.js";
2
+ import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
3
+ /**
4
+ * Input type for fetching cancellation reasons. Requires organization reference to get applicable reasons.
5
+ * @category Inputs
6
+ * @title CancellationReasonsRequestInput
7
+ * @excerpt Input for fetching cancellation reasons by organization
8
+ */
9
+ export type CancellationReasonsRequestInput = {
10
+ organization: SearchReference;
11
+ };
12
+ /**
13
+ * Validator for CancellationReasonsRequestInput.
14
+ * Ensures that organization is present and has a non-empty value.
15
+ */
16
+ declare class CancellationReasonsRequestValidator implements Validator<CancellationReasonsRequestInput> {
17
+ validate(data: CancellationReasonsRequestInput, errors: ErrorsCollector): void;
18
+ }
19
+ /**
20
+ * Request object for fetching cancellation reasons.
21
+ * @category Requests
22
+ * @title CancellationReasonsRequest
23
+ * @excerpt Request object for fetching cancellation reasons
24
+ */
25
+ export declare class CancellationReasonsRequest extends ValidationRequest<CancellationReasonsRequestInput> {
26
+ protected validator: CancellationReasonsRequestValidator;
27
+ }
28
+ export {};
@@ -1,10 +1,10 @@
1
1
  import { ValidationRequest, } from "../../../requests/index.js";
2
2
  import { isNullOrUndefinedOrEmptyString } from "../../../utils/type-utils.js";
3
3
  /**
4
- * Validator for CancelationReasonsRequestInput.
4
+ * Validator for CancellationReasonsRequestInput.
5
5
  * Ensures that organization is present and has a non-empty value.
6
6
  */
7
- class CancelationReasonsRequestValidator {
7
+ class CancellationReasonsRequestValidator {
8
8
  validate(data, errors) {
9
9
  var _a;
10
10
  if (isNullOrUndefinedOrEmptyString((_a = data.organization.value) === null || _a === void 0 ? void 0 : _a.trim())) {
@@ -12,9 +12,15 @@ class CancelationReasonsRequestValidator {
12
12
  }
13
13
  }
14
14
  }
15
- export class CancelationReasonsRequest extends ValidationRequest {
15
+ /**
16
+ * Request object for fetching cancellation reasons.
17
+ * @category Requests
18
+ * @title CancellationReasonsRequest
19
+ * @excerpt Request object for fetching cancellation reasons
20
+ */
21
+ export class CancellationReasonsRequest extends ValidationRequest {
16
22
  constructor() {
17
23
  super(...arguments);
18
- this.validator = new CancelationReasonsRequestValidator();
24
+ this.validator = new CancellationReasonsRequestValidator();
19
25
  }
20
26
  }
@@ -1,38 +1,47 @@
1
- import { AppointmentsQueryResults, CancelAppointmentMutationResults, CancelationReasonsQueryResults } from "../../../graphql/operations/types.js";
1
+ import { AppointmentBundle, AppointmentUpdate, CancellationReasons } from "../../../models/health-space/index.js";
2
2
  import { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
3
3
  import { BaseManagerError } from "../errors.js";
4
4
  import { AppointmentsRequest } from "./appointments-request.js";
5
5
  import { CancelAppointmentRequest } from "./cancel-appointment-request.js";
6
- import { CancelationReasonsRequest } from "./cancelationReasons-request.js";
7
- export type AppointmentsResults = AppointmentsQueryResults["appointments"];
8
- export type CancelAppointmentResults = CancelAppointmentMutationResults["updateAppointment"];
9
- export type CancelationReasonsResults = CancelationReasonsQueryResults["cancelationReasons"];
6
+ import { CancellationReasonsRequest } from "./cancellation-reasons-request.js";
10
7
  /**
11
- * Interface representing a manager for handling operations related to health spaces.
8
+ * Health Space Manager for appointments, scheduling, and healthcare facility management.
9
+ * Provides methods for managing appointments and cancelation handling.
10
+ * @title HealthSpaceManager
11
+ * @excerpt Health Space Manager for appointments, scheduling, and healthcare facility management
12
+ * @category Managers
12
13
  */
13
14
  export interface HealthSpaceManager {
14
15
  /**
15
- * Retrieves appointment information based on the provided request.
16
- *
17
- * @param request - The request object containing parameters for fetching appointments.
18
- * @returns A promise that resolves to a `BWellQueryResult` containing the appointment results
19
- * or an error of type `BaseManagerError`.
16
+ * Retrieves appointment information for the user.
17
+ * Gets scheduled appointments based on search criteria.
18
+ * @example
19
+ * ```typescript
20
+ * const appointments = await sdk.healthSpace.getAppointments({
21
+ * dateRange: { start: '2024-01-01', end: '2024-12-31' }
22
+ * });
23
+ * ```
20
24
  */
21
- getAppointments(request: AppointmentsRequest): Promise<BWellQueryResult<AppointmentsResults, BaseManagerError>>;
25
+ getAppointments(request: AppointmentsRequest): Promise<BWellQueryResult<AppointmentBundle, BaseManagerError>>;
22
26
  /**
23
- * Cancels an appointment based on the provided request.
24
- *
25
- * @param request - The request object containing parameters for canceling an appointment.
26
- * @returns A promise that resolves to a `BWellQueryResult` containing the result of canceling
27
- * the appointment or an error of type `BaseManagerError`.
27
+ * Cancels an existing appointment.
28
+ * Marks an appointment as canceled with optional reason.
29
+ * @example
30
+ * ```typescript
31
+ * await sdk.healthSpace.cancelAppointment({
32
+ * appointmentId: '123',
33
+ * reason: 'Schedule conflict'
34
+ * });
35
+ * ```
28
36
  */
29
- cancelAppointment(request: CancelAppointmentRequest): Promise<BWellTransactionResult<CancelAppointmentResults, BaseManagerError>>;
37
+ cancelAppointment(request: CancelAppointmentRequest): Promise<BWellTransactionResult<AppointmentUpdate, BaseManagerError>>;
30
38
  /**
31
- * Retrieves cancelation reasons based on the provided request.
32
- *
33
- * @param request - The request object containing parameters for fetching cancelation reasons.
34
- * @returns A promise that resolves to a `BWellQueryResult` containing the cancelation reasons results
35
- * or an error of type `BaseManagerError`.
39
+ * Retrieves available cancellation reasons.
40
+ * Gets predefined reasons for appointment cancellation.
41
+ * @example
42
+ * ```typescript
43
+ * const reasons = await sdk.healthSpace.getCancellationReasons({});
44
+ * ```
36
45
  */
37
- getCancelationReasons(request: CancelationReasonsRequest): Promise<BWellQueryResult<CancelationReasonsResults, BaseManagerError>>;
46
+ getCancellationReasons(request: CancellationReasonsRequest): Promise<BWellQueryResult<CancellationReasons, BaseManagerError>>;
38
47
  }
@@ -1,4 +1,4 @@
1
- export { AppointmentsResults, CancelAppointmentResults, HealthSpaceManager, CancelationReasonsResults, } from "./health-space-manager.js";
1
+ export { HealthSpaceManager } from "./health-space-manager.js";
2
2
  export { AppointmentsRequest, AppointmentsRequestInput, } from "./appointments-request.js";
3
3
  export { CancelAppointmentRequest, CancelAppointmentRequestInput, } from "./cancel-appointment-request.js";
4
- export { CancelationReasonsRequest, CancelationReasonsRequestInput, } from "./cancelationReasons-request.js";
4
+ export { CancellationReasonsRequest, CancellationReasonsRequestInput, } from "./cancellation-reasons-request.js";
@@ -1,3 +1,3 @@
1
1
  export { AppointmentsRequest, } from "./appointments-request.js";
2
2
  export { CancelAppointmentRequest, } from "./cancel-appointment-request.js";
3
- export { CancelationReasonsRequest, } from "./cancelationReasons-request.js";
3
+ export { CancellationReasonsRequest, } from "./cancellation-reasons-request.js";
@@ -1,42 +1,129 @@
1
- import type { CreateGuestAccessTokenMutationResults, InitializeQueryResults, RefreshTokensQueryResults } from "../../../graphql/operations/types.js";
1
+ import { AuthTokens, CreateGuestAccessTokenResults, RefreshTokenResults, SdkConfigurationResult } from "../../../models/identity/index.js";
2
2
  import type { BWellTransactionResult } from "../../../results/index.js";
3
3
  import type { BaseManagerError } from "../errors.js";
4
- export type SdkConfigurationResult = InitializeQueryResults["initSdk"];
5
- export type RefreshTokenResults = RefreshTokensQueryResults["refresh"];
6
- export type CreateGuestAccessTokenResults = CreateGuestAccessTokenMutationResults["createGuestAccessToken"];
4
+ /**
5
+ * Request for creating guest access tokens
6
+ * @category Requests
7
+ * @title CreateGuestAccessTokenRequest
8
+ * @excerpt Request for creating guest access tokens
9
+ */
7
10
  export type CreateGuestAccessTokenRequest = {
8
11
  clientKey: string;
9
12
  };
13
+ /**
14
+ * Request for OAuth authentication
15
+ * @category Requests
16
+ * @title OauthAuthenticateRequest
17
+ * @excerpt Request for OAuth authentication
18
+ */
10
19
  export type OauthAuthenticateRequest = {
11
20
  clientKey: string;
12
21
  jweToken: string;
13
22
  };
23
+ /**
24
+ * Request for username/password authentication
25
+ * @category Requests
26
+ * @title UsernamePasswordAuthenticateRequest
27
+ * @excerpt Request for username/password authentication
28
+ */
14
29
  export type UsernamePasswordAuthenticateRequest = {
15
30
  clientKey: string;
16
31
  email: string;
17
32
  password: string;
18
33
  };
34
+ /**
35
+ * Request for authorization code authentication
36
+ * @category Requests
37
+ * @title AuthCodeAuthenticateRequest
38
+ * @excerpt Request for authorization code authentication
39
+ */
19
40
  export type AuthCodeAuthenticateRequest = {
20
41
  clientKey: string;
21
42
  authCode: string;
22
43
  };
44
+ /**
45
+ * Request for refreshing authentication tokens
46
+ * @category Requests
47
+ * @title RefreshTokensRequest
48
+ * @excerpt Request for refreshing authentication tokens
49
+ */
23
50
  export type RefreshTokensRequest = {
24
51
  refreshToken: string;
25
52
  clientKey: string;
26
53
  };
27
- export type AuthTokens = {
28
- accessToken: string;
29
- idToken: string;
30
- refreshToken: string;
31
- };
32
54
  /**
33
- * The IdentityManager interface provides methods for initializing and authenticating the SDK.
55
+ * Identity Manager for SDK initialization and authentication.
56
+ * Provides methods for initializing the SDK and managing authentication flows.
57
+ * @category Managers
34
58
  */
35
59
  export interface IdentityManager {
60
+ /**
61
+ * Initializes the SDK configuration.
62
+ * Sets up the SDK with the provided client key and validates access.
63
+ * @example
64
+ * ```typescript
65
+ * await identityManager.initialize('your-client-key');
66
+ * ```
67
+ */
36
68
  initialize(clientKey: string): Promise<BWellTransactionResult<SdkConfigurationResult, BaseManagerError>>;
69
+ /**
70
+ * Authenticates using OAuth tokens.
71
+ * Validates OAuth credentials and establishes authenticated session.
72
+ * @example
73
+ * ```typescript
74
+ * const tokens = await identityManager.authenticateWithOauth({
75
+ * clientKey: 'your-client-key',
76
+ * jweToken: 'oauth-token'
77
+ * });
78
+ * ```
79
+ */
37
80
  authenticateWithOauth(authenticateRequest: OauthAuthenticateRequest): Promise<BWellTransactionResult<AuthTokens, BaseManagerError>>;
81
+ /**
82
+ * Authenticates using username and password.
83
+ * Validates user credentials and establishes authenticated session.
84
+ * @example
85
+ * ```typescript
86
+ * const tokens = await identityManager.authenticateWithUsernamePassword({
87
+ * clientKey: 'your-client-key',
88
+ * email: 'user@example.com',
89
+ * password: 'secure-password'
90
+ * });
91
+ * ```
92
+ */
38
93
  authenticateWithUsernamePassword(authenticateRequest: UsernamePasswordAuthenticateRequest): Promise<BWellTransactionResult<AuthTokens, BaseManagerError>>;
94
+ /**
95
+ * Authenticates using authorization code.
96
+ * Exchanges authorization code for access tokens.
97
+ * @example
98
+ * ```typescript
99
+ * const tokens = await identityManager.authenticateWithAuthCode({
100
+ * clientKey: 'your-client-key',
101
+ * authCode: 'authorization-code'
102
+ * });
103
+ * ```
104
+ */
39
105
  authenticateWithAuthCode(authenticateRequest: AuthCodeAuthenticateRequest): Promise<BWellTransactionResult<AuthTokens, BaseManagerError>>;
106
+ /**
107
+ * Refreshes access tokens using refresh token.
108
+ * Obtains new access tokens without re-authentication.
109
+ * @example
110
+ * ```typescript
111
+ * const newTokens = await identityManager.refreshAccessToken({
112
+ * clientKey: 'your-client-key',
113
+ * refreshToken: 'refresh-token'
114
+ * });
115
+ * ```
116
+ */
40
117
  refreshAccessToken(refreshTokensRequest: RefreshTokensRequest): Promise<BWellTransactionResult<RefreshTokenResults, BaseManagerError>>;
118
+ /**
119
+ * Creates a guest access token.
120
+ * Generates limited-access tokens for guest users.
121
+ * @example
122
+ * ```typescript
123
+ * const guestToken = await identityManager.createGuestAccessToken({
124
+ * clientKey: 'your-client-key'
125
+ * });
126
+ * ```
127
+ */
41
128
  createGuestAccessToken(createGuestAccessTokenRequest: CreateGuestAccessTokenRequest): Promise<BWellTransactionResult<CreateGuestAccessTokenResults, BaseManagerError>>;
42
129
  }
@@ -1,2 +1,2 @@
1
1
  export { NextQuestionRequest, NextQuestionRequestInput, } from "./next-question-request.js";
2
- export { NextQuestionResults, QuestionnaireManager, } from "./questionnaire-manager.js";
2
+ export { QuestionnaireManager } from "./questionnaire-manager.js";
@@ -1,16 +1,22 @@
1
1
  import { NextQuestionMutationVariables } from "../../../graphql/operations/types.js";
2
2
  import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
3
3
  /**
4
- * Input type for the `nextQuestion` mutation.
4
+ * Input type for the `nextQuestion` mutation. Used to navigate through questionnaire questions.
5
+ * @title NextQuestionRequestInput
6
+ * @excerpt Input for navigating through questionnaire questions
5
7
  * @experimental This class is experimental and may change in future releases.
8
+ * @category Inputs
6
9
  */
7
10
  export type NextQuestionRequestInput = NextQuestionMutationVariables;
8
11
  declare class NextQuestionRequestValidator implements Validator<NextQuestionRequestInput> {
9
12
  validate(data: NextQuestionRequestInput, errors: ErrorsCollector): void;
10
13
  }
11
14
  /**
12
- * Request class for handling next question mutations.
15
+ * Request object for handling next question mutations.
13
16
  * @experimental This class is experimental and may change in future releases.
17
+ * @category Requests
18
+ * @title NextQuestionRequest
19
+ * @excerpt Request object for handling next question mutations
14
20
  */
15
21
  export declare class NextQuestionRequest extends ValidationRequest<NextQuestionRequestInput> {
16
22
  protected validator: NextQuestionRequestValidator;
@@ -44,8 +44,11 @@ class NextQuestionRequestValidator {
44
44
  }
45
45
  }
46
46
  /**
47
- * Request class for handling next question mutations.
47
+ * Request object for handling next question mutations.
48
48
  * @experimental This class is experimental and may change in future releases.
49
+ * @category Requests
50
+ * @title NextQuestionRequest
51
+ * @excerpt Request object for handling next question mutations
49
52
  */
50
53
  export class NextQuestionRequest extends ValidationRequest {
51
54
  constructor() {
@@ -1,19 +1,26 @@
1
- import { NextQuestionMutationResults } from "../../../graphql/operations/types.js";
1
+ import { QuestionnaireResponse } from "../../../models/questionnaire/index.js";
2
2
  import { BWellTransactionResult } from "../../../results/index.js";
3
3
  import { NextQuestionRequest } from "../../base/questionnaire/next-question-request.js";
4
4
  import { BaseManagerError } from "../errors.js";
5
- export type NextQuestionResults = NextQuestionMutationResults["nextQuestion"];
6
5
  /**
7
- * Interface representing a manager for handling operations related to questionnaires.
6
+ * Questionnaire Manager for dynamic questionnaire processing and response handling.
7
+ * Provides methods for managing questionnaire workflows and form processing.
8
+ * @title QuestionnaireManager
9
+ * @excerpt Questionnaire Manager for dynamic questionnaire processing and response handling
10
+ * @category Managers
8
11
  */
9
12
  export interface QuestionnaireManager {
10
13
  /**
11
- * Calls the nextQuestion mutation with the provided request.
14
+ * Processes the next question in a questionnaire flow.
15
+ * Advances through dynamic questionnaire based on responses.
12
16
  * @experimental This method is experimental and may change in future releases.
13
- *
14
- * @param request - The request object containing parameters for the mutation.
15
- * @returns A promise that resolves to a `BWellTransactionResult` containing the mutation results
16
- * or an error of type `BaseManagerError`.
17
+ * @example
18
+ * ```typescript
19
+ * const nextQuestion = await sdk.questionnaire.nextQuestion({
20
+ * questionnaireId: 'health-assessment',
21
+ * responses: [{ question: 'age', answer: '35' }]
22
+ * });
23
+ * ```
17
24
  */
18
- nextQuestion(request: NextQuestionRequest): Promise<BWellTransactionResult<NextQuestionResults, BaseManagerError>>;
25
+ nextQuestion(request: NextQuestionRequest): Promise<BWellTransactionResult<QuestionnaireResponse, BaseManagerError>>;
19
26
  }
@@ -1,7 +1,19 @@
1
1
  import { ErrorsCollector, Validator } from "../../../requests/index.js";
2
+ /**
3
+ * Search criteria for date-based filtering. Supports various date comparison operators.
4
+ * @category Inputs
5
+ * @title SearchDate
6
+ * @excerpt Search criteria for date-based filtering
7
+ */
2
8
  export type SearchDate = {
3
9
  values?: SearchDateValue[];
4
10
  };
11
+ /**
12
+ * Date value with comparison operators for filtering (equals, greater than, less than, etc.).
13
+ * @category Inputs
14
+ * @title SearchDateValue
15
+ * @excerpt Date value with comparison operators
16
+ */
5
17
  export type SearchDateValue = {
6
18
  equals?: Date;
7
19
  notEquals?: Date;
@@ -1,4 +1,10 @@
1
1
  import { ErrorsCollector, Validator } from "../../../requests/index.js";
2
+ /**
3
+ * Search criteria for string-based filtering. Contains an array of string values to search for.
4
+ * @category Inputs
5
+ * @title SearchString
6
+ * @excerpt Search criteria for string-based filtering
7
+ */
2
8
  export type SearchString = {
3
9
  values?: string[];
4
10
  };
@@ -1,12 +1,30 @@
1
1
  import { ErrorsCollector, Validator } from "../../../requests/index.js";
2
+ /**
3
+ * Token value with system, code, and display for structured search criteria.
4
+ * @category Inputs
5
+ * @title SearchTokenValue
6
+ * @excerpt Token value with system, code, and display
7
+ */
2
8
  export type SearchTokenValue = {
3
9
  system?: string;
4
10
  code?: string;
5
11
  value?: string;
6
12
  };
13
+ /**
14
+ * Negated search token value that extends SearchTokenValue with additional values array.
15
+ * @category Inputs
16
+ * @title NotSearchTokenValue
17
+ * @excerpt Negated search token value with values array
18
+ */
7
19
  export type NotSearchTokenValue = SearchTokenValue & {
8
20
  values?: SearchTokenValue[];
9
21
  };
22
+ /**
23
+ * Search criteria for token-based filtering. Supports single values, multiple values, or negation.
24
+ * @category Inputs
25
+ * @title SearchToken
26
+ * @excerpt Search criteria for token-based filtering
27
+ */
10
28
  export type SearchToken = {
11
29
  values?: SearchTokenValue[];
12
30
  value?: SearchTokenValue;
@@ -1,5 +1,11 @@
1
+ import { CategoryCode, ConsentProvisionType, ConsentStatus } from "../../../models/enums/index.js";
1
2
  import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
2
- import { type CategoryCode, type ConsentProvisionType, type ConsentStatus } from "./types.js";
3
+ /**
4
+ * Input type for creating user consents. Includes consent status, category, and provision details.
5
+ * @category Inputs
6
+ * @title CreateConsentRequestInput
7
+ * @excerpt Input for creating user consents with status and provisions
8
+ */
3
9
  export type CreateConsentRequestInput = {
4
10
  status: ConsentStatus;
5
11
  provision: ConsentProvisionType;
@@ -9,6 +15,12 @@ export type CreateConsentRequestInput = {
9
15
  export declare class CreateConsentRequestValidator implements Validator<CreateConsentRequestInput> {
10
16
  validate(data: CreateConsentRequestInput, errors: ErrorsCollector): void;
11
17
  }
18
+ /**
19
+ * Request object for creating a consent.
20
+ * @category Requests
21
+ * @title CreateConsentRequest
22
+ * @excerpt Request object for creating a consent
23
+ */
12
24
  export declare class CreateConsentRequest extends ValidationRequest<CreateConsentRequestInput> {
13
25
  protected validator: Validator<CreateConsentRequestInput>;
14
26
  }
@@ -1,7 +1,6 @@
1
- import { CategoryCode as GraphQLCategoryCode } from "../../../graphql/schema.js";
2
1
  import { ValidationRequest, } from "../../../requests/index.js";
3
2
  import { isBlank, isUndefined } from "../../../utils/index.js";
4
- import { isValidCategoryCode, isValidConsentProvisionType, isValidConsentStatus, } from "./types.js";
3
+ import { isValidCategoryCode, isValidConsentProvisionType, isValidConsentStatus, } from "./validators.js";
5
4
  export class CreateConsentRequestValidator {
6
5
  validate(data, errors) {
7
6
  if (!isValidConsentStatus(data.status)) {
@@ -18,12 +17,18 @@ export class CreateConsentRequestValidator {
18
17
  errors.add("organizationId cannot be empty");
19
18
  }
20
19
  // organizationId is required if category is PROA_ATTESTATION
21
- if (data.category === GraphQLCategoryCode.ProaAttestation &&
20
+ if (data.category === "PROA_ATTESTATION" &&
22
21
  isUndefined(data.organizationId)) {
23
22
  errors.add("organizationId must be provided when category is PROA_ATTESTATION");
24
23
  }
25
24
  }
26
25
  }
26
+ /**
27
+ * Request object for creating a consent.
28
+ * @category Requests
29
+ * @title CreateConsentRequest
30
+ * @excerpt Request object for creating a consent
31
+ */
27
32
  export class CreateConsentRequest extends ValidationRequest {
28
33
  constructor() {
29
34
  super(...arguments);
@@ -1,7 +1,19 @@
1
1
  import { BaseRequest } from "../../../requests/index.js";
2
+ /**
3
+ * Input type for creating a verification URL. Optionally includes callback URL and attribute matching settings.
4
+ * @category Inputs
5
+ * @title CreateVerificationUrlRequestInput
6
+ * @excerpt Input for creating verification URLs with optional settings
7
+ */
2
8
  export type CreateVerificationUrlRequestInput = {
3
9
  callbackUrl?: string;
4
10
  includeAttributeMatchingCheck?: boolean;
5
11
  };
12
+ /**
13
+ * Request object for creating a verification URL.
14
+ * @category Requests
15
+ * @title CreateVerificationUrlRequest
16
+ * @excerpt Request object for creating a verification URL
17
+ */
6
18
  export declare class CreateVerificationUrlRequest extends BaseRequest<CreateVerificationUrlRequestInput> {
7
19
  }
@@ -1,3 +1,9 @@
1
1
  import { BaseRequest } from "../../../requests/index.js";
2
+ /**
3
+ * Request object for creating a verification URL.
4
+ * @category Requests
5
+ * @title CreateVerificationUrlRequest
6
+ * @excerpt Request object for creating a verification URL
7
+ */
2
8
  export class CreateVerificationUrlRequest extends BaseRequest {
3
9
  }
@@ -1,6 +1,12 @@
1
1
  import { CategoryCode as GraphQLCategoryCode } from "../../../graphql/schema.js";
2
+ import { CategoryCode } from "../../../models/enums/index.js";
2
3
  import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
3
- import { CategoryCode } from "./types.js";
4
+ /**
5
+ * Input type for getting user consents. Requires a category to filter consents by.
6
+ * @category Inputs
7
+ * @title GetConsentsRequestInput
8
+ * @excerpt Input for getting user consents by category
9
+ */
4
10
  export type GetConsentsRequestInput = {
5
11
  category: CategoryCode;
6
12
  };
@@ -10,6 +16,18 @@ export type GetConsentRequestData = {
10
16
  export declare class GetConsentsRequestValidator implements Validator<GetConsentsRequestInput> {
11
17
  validate(data: GetConsentsRequestInput, errors: ErrorsCollector): void;
12
18
  }
19
+ /**
20
+ * Request object for fetching consents data.
21
+ * @category Requests
22
+ * @title GetConsentsRequest
23
+ * @excerpt Request object for fetching consents data
24
+ */
25
+ /**
26
+ * Request object for fetching user consents.
27
+ * @category Requests
28
+ * @title GetConsentsRequest
29
+ * @excerpt Request object for fetching user consents
30
+ */
13
31
  export declare class GetConsentsRequest extends ValidationRequest<GetConsentsRequestInput> {
14
32
  protected validator: Validator<GetConsentsRequestInput>;
15
33
  }
@@ -1,5 +1,5 @@
1
1
  import { ValidationRequest, } from "../../../requests/index.js";
2
- import { isValidCategoryCode } from "./types.js";
2
+ import { isValidCategoryCode } from "./validators.js";
3
3
  export class GetConsentsRequestValidator {
4
4
  validate(data, errors) {
5
5
  if (!isValidCategoryCode(data.category)) {
@@ -7,6 +7,18 @@ export class GetConsentsRequestValidator {
7
7
  }
8
8
  }
9
9
  }
10
+ /**
11
+ * Request object for fetching consents data.
12
+ * @category Requests
13
+ * @title GetConsentsRequest
14
+ * @excerpt Request object for fetching consents data
15
+ */
16
+ /**
17
+ * Request object for fetching user consents.
18
+ * @category Requests
19
+ * @title GetConsentsRequest
20
+ * @excerpt Request object for fetching user consents
21
+ */
10
22
  export class GetConsentsRequest extends ValidationRequest {
11
23
  constructor() {
12
24
  super(...arguments);
@@ -1,6 +1,5 @@
1
1
  export { UpdateProfileRequest, UpdateProfileRequestInput, } from "./update-profile-request.js";
2
2
  export { GetConsentsRequestInput, GetConsentsRequest, } from "./get-consents-request.js";
3
3
  export { CreateConsentRequest, CreateConsentRequestInput, } from "./create-consent-request.js";
4
- export type { CategoryCode, ConsentProvisionType, ConsentStatus, PersonGender, } from "./types.js";
5
- export { ProfileResults, DeleteUserResults, UpdateProfileResults, CreateConsentResults, UserManager, } from "./user-manager.js";
4
+ export { UserManager } from "./user-manager.js";
6
5
  export { CreateVerificationUrlRequest, CreateVerificationUrlRequestInput, } from "./create-verification-url-request.js";
@@ -1,5 +1,11 @@
1
+ import { PersonGender } from "../../../models/enums/index.js";
1
2
  import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
2
- import { type PersonGender } from "./types.js";
3
+ /**
4
+ * Input type for updating user profile information. All fields are optional for partial updates.
5
+ * @category Inputs
6
+ * @title UpdateProfileRequestInput
7
+ * @excerpt Input for updating user profile information
8
+ */
3
9
  export type UpdateProfileRequestInput = {
4
10
  id?: string;
5
11
  firstName?: string;
@@ -20,8 +26,10 @@ export declare class UpdateProfileRequestValidator implements Validator<UpdatePr
20
26
  validate(data: UpdateProfileRequestInput, errors: ErrorsCollector): void;
21
27
  }
22
28
  /**
23
- * A request class for passing along the new Profile Person information to the
24
- * updateUserProfile API Mutation
29
+ * Request object for updating user profile information.
30
+ * @category Requests
31
+ * @title UpdateProfileRequest
32
+ * @excerpt Request object for updating user profile information
25
33
  */
26
34
  export declare class UpdateProfileRequest extends ValidationRequest<UpdateProfileRequestInput> {
27
35
  protected validator: Validator<UpdateProfileRequestInput>;
@@ -1,6 +1,6 @@
1
1
  import { ValidationRequest, } from "../../../requests/index.js";
2
2
  import { isUndefined } from "../../../utils/index.js";
3
- import { isValidPersonGender } from "./types.js";
3
+ import { isValidPersonGender } from "./validators.js";
4
4
  export class UpdateProfileRequestValidator {
5
5
  validate(data, errors) {
6
6
  if (!isUndefined(data.gender) && !isValidPersonGender(data.gender)) {
@@ -9,8 +9,10 @@ export class UpdateProfileRequestValidator {
9
9
  }
10
10
  }
11
11
  /**
12
- * A request class for passing along the new Profile Person information to the
13
- * updateUserProfile API Mutation
12
+ * Request object for updating user profile information.
13
+ * @category Requests
14
+ * @title UpdateProfileRequest
15
+ * @excerpt Request object for updating user profile information
14
16
  */
15
17
  export class UpdateProfileRequest extends ValidationRequest {
16
18
  constructor() {