@icanbwell/bwell-sdk-ts 1.52.0 → 1.53.0-rc.1766130813

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 (57) hide show
  1. package/dist/__version__.d.ts +1 -1
  2. package/dist/__version__.js +1 -1
  3. package/dist/api/base/health-space/add-care-team-member-request.d.ts +33 -0
  4. package/dist/api/base/health-space/add-care-team-member-request.js +36 -0
  5. package/dist/api/base/health-space/add-care-team-members-request.d.ts +35 -0
  6. package/dist/api/base/health-space/add-care-team-members-request.js +61 -0
  7. package/dist/api/base/health-space/care-team-members-request.d.ts +31 -0
  8. package/dist/api/base/health-space/care-team-members-request.js +33 -0
  9. package/dist/api/base/health-space/health-space-manager.d.ts +108 -1
  10. package/dist/api/base/health-space/index.d.ts +6 -1
  11. package/dist/api/base/health-space/index.js +5 -0
  12. package/dist/api/base/health-space/remove-care-team-member-request.d.ts +34 -0
  13. package/dist/api/base/health-space/remove-care-team-member-request.js +36 -0
  14. package/dist/api/base/health-space/update-care-team-member-request.d.ts +55 -0
  15. package/dist/api/base/health-space/update-care-team-member-request.js +71 -0
  16. package/dist/api/base/support/create-support-request-request.d.ts +22 -0
  17. package/dist/api/base/support/create-support-request-request.js +20 -0
  18. package/dist/api/base/support/delete-support-attachment-request.d.ts +11 -0
  19. package/dist/api/base/support/delete-support-attachment-request.js +14 -0
  20. package/dist/api/base/support/index.d.ts +3 -0
  21. package/dist/api/base/support/index.js +3 -0
  22. package/dist/api/base/support/support-manager.d.ts +32 -2
  23. package/dist/api/base/support/upload-support-attachment-request.d.ts +25 -0
  24. package/dist/api/base/support/upload-support-attachment-request.js +27 -0
  25. package/dist/api/graphql-api/health-space/add-care-team-member-request-factory.d.ts +20 -0
  26. package/dist/api/graphql-api/health-space/add-care-team-member-request-factory.js +29 -0
  27. package/dist/api/graphql-api/health-space/add-care-team-members-request-factory.d.ts +16 -0
  28. package/dist/api/graphql-api/health-space/add-care-team-members-request-factory.js +23 -0
  29. package/dist/api/graphql-api/health-space/care-team-factory-utils.d.ts +23 -0
  30. package/dist/api/graphql-api/health-space/care-team-factory-utils.js +30 -0
  31. package/dist/api/graphql-api/health-space/care-team-members-request-factory.d.ts +12 -0
  32. package/dist/api/graphql-api/health-space/care-team-members-request-factory.js +17 -0
  33. package/dist/api/graphql-api/health-space/graphql-health-space-manager.d.ts +59 -1
  34. package/dist/api/graphql-api/health-space/graphql-health-space-manager.js +157 -2
  35. package/dist/api/graphql-api/health-space/index.d.ts +4 -0
  36. package/dist/api/graphql-api/health-space/index.js +4 -0
  37. package/dist/api/graphql-api/health-space/remove-care-team-member-request-factory.d.ts +16 -0
  38. package/dist/api/graphql-api/health-space/remove-care-team-member-request-factory.js +24 -0
  39. package/dist/api/graphql-api/health-space/update-care-team-member-request-factory.d.ts +16 -0
  40. package/dist/api/graphql-api/health-space/update-care-team-member-request-factory.js +20 -0
  41. package/dist/api/graphql-api/support/create-support-request-request-factory.d.ts +6 -0
  42. package/dist/api/graphql-api/support/create-support-request-request-factory.js +19 -0
  43. package/dist/api/graphql-api/support/delete-support-attachment-request-factory.d.ts +6 -0
  44. package/dist/api/graphql-api/support/delete-support-attachment-request-factory.js +10 -0
  45. package/dist/api/graphql-api/support/graphql-support-manager.d.ts +11 -4
  46. package/dist/api/graphql-api/support/graphql-support-manager.js +79 -4
  47. package/dist/api/graphql-api/support/upload-support-attachment-request-factory.d.ts +6 -0
  48. package/dist/api/graphql-api/support/upload-support-attachment-request-factory.js +11 -0
  49. package/dist/graphql/operations/index.d.ts +72 -0
  50. package/dist/graphql/operations/index.js +126 -0
  51. package/dist/graphql/operations/types.d.ts +111 -4
  52. package/dist/graphql/schema.d.ts +105 -3
  53. package/dist/utils/date-utils.d.ts +6 -0
  54. package/dist/utils/date-utils.js +8 -0
  55. package/dist/utils/index.d.ts +1 -0
  56. package/dist/utils/index.js +1 -0
  57. package/package.json +1 -1
@@ -18435,6 +18435,67 @@ export type CancelationReasonsQueryResults = {
18435
18435
  } | null> | null;
18436
18436
  };
18437
18437
  };
18438
+ export type AddCareTeamMemberMutationVariables = Types.Exact<{
18439
+ participant: Types.CareTeamParticipantInput;
18440
+ }>;
18441
+ export type AddCareTeamMemberMutationResults = {
18442
+ updateCareTeamMember: {
18443
+ id: string;
18444
+ };
18445
+ };
18446
+ export type AddCareTeamMembersMutationVariables = Types.Exact<{
18447
+ participant: Array<Types.InputMaybe<Types.CareTeamParticipantInput>> | Types.InputMaybe<Types.CareTeamParticipantInput>;
18448
+ }>;
18449
+ export type AddCareTeamMembersMutationResults = {
18450
+ updateCareTeamMember: {
18451
+ id: string;
18452
+ };
18453
+ };
18454
+ export type CareTeamMembersQueryVariables = Types.Exact<{
18455
+ pageNumber: Types.InputMaybe<Types.Scalars['Int']['input']>;
18456
+ pageSize: Types.InputMaybe<Types.Scalars['Int']['input']>;
18457
+ }>;
18458
+ export type CareTeamMembersQueryResults = {
18459
+ careTeamMembers: {
18460
+ pagingInfo: {
18461
+ pageSize: number;
18462
+ pageNumber: number;
18463
+ totalPages: number;
18464
+ totalItems: number;
18465
+ } | null;
18466
+ members: Array<{
18467
+ id: string | null;
18468
+ role: Array<{
18469
+ text: string | null;
18470
+ coding: Array<{
18471
+ system: any | null;
18472
+ code: any | null;
18473
+ display: string | null;
18474
+ } | null> | null;
18475
+ } | null> | null;
18476
+ period: {
18477
+ start: any | null;
18478
+ end: any | null;
18479
+ } | null;
18480
+ } | null> | null;
18481
+ } | null;
18482
+ };
18483
+ export type RemoveCareTeamMemberMutationVariables = Types.Exact<{
18484
+ participant: Types.CareTeamParticipantInput;
18485
+ }>;
18486
+ export type RemoveCareTeamMemberMutationResults = {
18487
+ updateCareTeamMember: {
18488
+ id: string;
18489
+ };
18490
+ };
18491
+ export type UpdateCareTeamMemberMutationVariables = Types.Exact<{
18492
+ participant: Types.CareTeamParticipantInput;
18493
+ }>;
18494
+ export type UpdateCareTeamMemberMutationResults = {
18495
+ updateCareTeamMember: {
18496
+ id: string;
18497
+ };
18498
+ };
18438
18499
  export type AuthenticateQueryVariables = Types.Exact<{
18439
18500
  [key: string]: never;
18440
18501
  }>;
@@ -22176,10 +22237,10 @@ export type SearchHealthResourcesQueryVariables = Types.Exact<{
22176
22237
  export type SearchHealthResourcesQueryResults = {
22177
22238
  searchHealthResources: {
22178
22239
  pagingInfo: {
22179
- pageNumber: number;
22180
22240
  pageSize: number;
22181
- totalItems: number;
22241
+ pageNumber: number;
22182
22242
  totalPages: number;
22243
+ totalItems: number;
22183
22244
  } | null;
22184
22245
  filterValues: Array<{
22185
22246
  field: Types.FilterFieldEnum | null;
@@ -22272,6 +22333,38 @@ export type SearchHealthResourcesQueryResults = {
22272
22333
  } | null> | null;
22273
22334
  };
22274
22335
  };
22336
+ export type CreateSupportRequestMutationVariables = Types.Exact<{
22337
+ input: Types.CreateSupportRequestInput;
22338
+ }>;
22339
+ export type CreateSupportRequestMutationResults = {
22340
+ createSupportRequest: {
22341
+ data: {
22342
+ id: number;
22343
+ subject: string;
22344
+ category: string;
22345
+ created: string;
22346
+ lastActivity: string;
22347
+ status: Types.RequestStatus;
22348
+ } | null;
22349
+ };
22350
+ };
22351
+ export type DeleteSupportAttachmentMutationVariables = Types.Exact<{
22352
+ input: Types.DeleteSupportAttachmentInput;
22353
+ }>;
22354
+ export type DeleteSupportAttachmentMutationResults = {
22355
+ deleteSupportAttachment: {
22356
+ status: Types.DeletionStatus;
22357
+ };
22358
+ };
22359
+ export type GetSupportCategoriesQueryVariables = Types.Exact<{
22360
+ [key: string]: never;
22361
+ }>;
22362
+ export type GetSupportCategoriesQueryResults = {
22363
+ getSupportCategories: Array<{
22364
+ label: string;
22365
+ value: string;
22366
+ }>;
22367
+ };
22275
22368
  export type GetSupportRequestsQueryVariables = Types.Exact<{
22276
22369
  input: Types.InputMaybe<Types.SupportRequestsInput>;
22277
22370
  }>;
@@ -22284,12 +22377,26 @@ export type GetSupportRequestsQueryResults = {
22284
22377
  total_items: number;
22285
22378
  };
22286
22379
  data: Array<{
22380
+ id: number;
22381
+ subject: string;
22287
22382
  category: string;
22288
22383
  created: string;
22289
- id: number;
22290
22384
  lastActivity: string;
22291
22385
  status: Types.RequestStatus;
22292
- subject: string;
22386
+ }>;
22387
+ };
22388
+ };
22389
+ export type UploadSupportAttachmentMutationVariables = Types.Exact<{
22390
+ input: Types.UploadSupportAttachmentInput;
22391
+ }>;
22392
+ export type UploadSupportAttachmentMutationResults = {
22393
+ uploadSupportAttachment: {
22394
+ attachmentId: string;
22395
+ attachments: Array<{
22396
+ fileName: string;
22397
+ contentType: string;
22398
+ size: number;
22399
+ id: string;
22293
22400
  }>;
22294
22401
  };
22295
22402
  };
@@ -436,6 +436,7 @@ export type AttachmentMetadata = {
436
436
  __typename?: 'AttachmentMetadata';
437
437
  contentType: Scalars['String']['output'];
438
438
  fileName: Scalars['String']['output'];
439
+ id: Scalars['ID']['output'];
439
440
  size: Scalars['Int']['output'];
440
441
  };
441
442
  export type AuthCode = {
@@ -637,6 +638,20 @@ export type CareTeam = {
637
638
  __typename?: 'CareTeam';
638
639
  id: Scalars['ID']['output'];
639
640
  };
641
+ export type CareTeamMember = {
642
+ __typename?: 'CareTeamMember';
643
+ id?: Maybe<Scalars['String']['output']>;
644
+ period?: Maybe<Period>;
645
+ role?: Maybe<Array<Maybe<CodeableConcept>>>;
646
+ };
647
+ export type CareTeamMembersInput = {
648
+ pagingInfo?: InputMaybe<PagingInfoInput>;
649
+ };
650
+ export type CareTeamMembersOutput = {
651
+ __typename?: 'CareTeamMembersOutput';
652
+ members?: Maybe<Array<Maybe<CareTeamMember>>>;
653
+ pagingInfo?: Maybe<PagingInfoType>;
654
+ };
640
655
  export type CareTeamParticipant = {
641
656
  __typename?: 'CareTeamParticipant';
642
657
  member?: Maybe<CareTeamParticipantMember>;
@@ -851,6 +866,11 @@ export type CodingInput = {
851
866
  display?: InputMaybe<Scalars['String']['input']>;
852
867
  system?: InputMaybe<Scalars['String']['input']>;
853
868
  };
869
+ export type CommentAuthor = {
870
+ __typename?: 'CommentAuthor';
871
+ email: Scalars['String']['output'];
872
+ name: Scalars['String']['output'];
873
+ };
854
874
  export type CommentInput = {
855
875
  body: Scalars['String']['input'];
856
876
  uploads?: InputMaybe<Array<Scalars['String']['input']>>;
@@ -1288,6 +1308,15 @@ export type CreateHealthLinkInput = {
1288
1308
  resources?: InputMaybe<Array<ResourceInput>>;
1289
1309
  securityConfig: SecurityConfigInput;
1290
1310
  };
1311
+ export type CreateSupportCommentInput = {
1312
+ body: Scalars['String']['input'];
1313
+ requestId: Scalars['Int']['input'];
1314
+ uploads?: InputMaybe<Array<Scalars['String']['input']>>;
1315
+ };
1316
+ export type CreateSupportCommentResponse = {
1317
+ __typename?: 'CreateSupportCommentResponse';
1318
+ comment: SupportComment;
1319
+ };
1291
1320
  export type CreateSupportRequestInput = {
1292
1321
  comment: CommentInput;
1293
1322
  email?: InputMaybe<Scalars['String']['input']>;
@@ -3297,6 +3326,7 @@ export type Mutation = {
3297
3326
  createMissingConsents?: Maybe<Scalars['String']['output']>;
3298
3327
  createPersonWithClientId?: Maybe<PersonWithMetadata>;
3299
3328
  createQuestionnaireResponse?: Maybe<ConsentQuestionnaireResponse>;
3329
+ createSupportComment: CreateSupportCommentResponse;
3300
3330
  createSupportRequest: CreateSupportRequestResponse;
3301
3331
  createVerificationUrl: Scalars['String']['output'];
3302
3332
  /**
@@ -3582,6 +3612,9 @@ export type MutationCreatePersonWithClientIdArgs = {
3582
3612
  export type MutationCreateQuestionnaireResponseArgs = {
3583
3613
  input: QuestionnaireResponse_Input;
3584
3614
  };
3615
+ export type MutationCreateSupportCommentArgs = {
3616
+ input: CreateSupportCommentInput;
3617
+ };
3585
3618
  export type MutationCreateSupportRequestArgs = {
3586
3619
  input: CreateSupportRequestInput;
3587
3620
  };
@@ -4928,6 +4961,7 @@ export type Query = {
4928
4961
  appointments?: Maybe<AppointmentBundle>;
4929
4962
  bootstrap: BootstrapConfiguration;
4930
4963
  cancelationReasons: CodeSystem;
4964
+ careTeamMembers?: Maybe<CareTeamMembersOutput>;
4931
4965
  consent?: Maybe<Array<Maybe<LegacyConsent>>>;
4932
4966
  consentAsyncTasks?: Maybe<Array<Maybe<Job>>>;
4933
4967
  coverages?: Maybe<CoverageBundle>;
@@ -4983,7 +5017,10 @@ export type Query = {
4983
5017
  getPersonByRegCode?: Maybe<RegCodePersonDto>;
4984
5018
  getProcedureGroups: ProcedureGroupQueryResults;
4985
5019
  getProcedures: ProcedureQueryResults;
5020
+ getSupportArticles: SupportArticlesResponse;
5021
+ getSupportAttachment: SupportAttachment;
4986
5022
  getSupportCategories: Array<SupportCategory>;
5023
+ getSupportComments: SupportCommentsResponse;
4987
5024
  getSupportRequest: SupportRequestDetail;
4988
5025
  getSupportRequests: SupportRequestsResponse;
4989
5026
  /** Query to search for tasks. This query is the preferred method for searching for tasks. */
@@ -5066,6 +5103,9 @@ export type QueryBootstrapArgs = {
5066
5103
  export type QueryCancelationReasonsArgs = {
5067
5104
  organization: SearchReference;
5068
5105
  };
5106
+ export type QueryCareTeamMembersArgs = {
5107
+ input?: InputMaybe<CareTeamMembersInput>;
5108
+ };
5069
5109
  export type QueryConsentArgs = {
5070
5110
  patientId?: InputMaybe<Scalars['String']['input']>;
5071
5111
  questionnaireId?: InputMaybe<Scalars['String']['input']>;
@@ -5221,6 +5261,15 @@ export type QueryGetProcedureGroupsArgs = {
5221
5261
  export type QueryGetProceduresArgs = {
5222
5262
  request?: InputMaybe<ProcedureRequest>;
5223
5263
  };
5264
+ export type QueryGetSupportArticlesArgs = {
5265
+ input?: InputMaybe<SupportArticlesInput>;
5266
+ };
5267
+ export type QueryGetSupportAttachmentArgs = {
5268
+ input: SupportAttachmentInput;
5269
+ };
5270
+ export type QueryGetSupportCommentsArgs = {
5271
+ input: SupportCommentsInput;
5272
+ };
5224
5273
  export type QueryGetSupportRequestArgs = {
5225
5274
  id: Scalars['Int']['input'];
5226
5275
  };
@@ -6110,15 +6159,15 @@ export type SearchHealthResourcesResults = {
6110
6159
  /** Geographic center point for location-based search */
6111
6160
  export type SearchLocation = {
6112
6161
  /** Latitude of the search center */
6113
- lat: Scalars['Float']['input'];
6162
+ lat?: InputMaybe<Scalars['Float']['input']>;
6114
6163
  /** Longitude of the search center */
6115
- lon: Scalars['Float']['input'];
6164
+ lon?: InputMaybe<Scalars['Float']['input']>;
6116
6165
  /** Maximum distance radius for location-based filtering */
6117
6166
  radius?: InputMaybe<Scalars['Float']['input']>;
6118
6167
  /** Unit of measurement for the radius */
6119
6168
  radiusUnit?: InputMaybe<DistanceUnitEnum>;
6120
6169
  /**
6121
- * Prioritizes local health systems around given zipCode.
6170
+ * Prioritizes local health systems around given zipCode. Preference given to lat/lon if provided.
6122
6171
  * NOTE: Inputs `type` must be `[PRACTICE]` and `orderBy` must be `[DATA_SOURCE_RANK]`
6123
6172
  */
6124
6173
  zipCode?: InputMaybe<Scalars['String']['input']>;
@@ -6591,11 +6640,64 @@ export type SubstanceInstance = {
6591
6640
  identifier?: Maybe<Identifier>;
6592
6641
  quantity?: Maybe<Quantity>;
6593
6642
  };
6643
+ export type SupportArticle = {
6644
+ __typename?: 'SupportArticle';
6645
+ body: Scalars['String']['output'];
6646
+ createdAt: Scalars['String']['output'];
6647
+ htmlUrl: Scalars['String']['output'];
6648
+ id: Scalars['String']['output'];
6649
+ labelNames: Array<Scalars['String']['output']>;
6650
+ snippet?: Maybe<Scalars['String']['output']>;
6651
+ title: Scalars['String']['output'];
6652
+ updatedAt: Scalars['String']['output'];
6653
+ };
6654
+ export type SupportArticlesInput = {
6655
+ labelNames?: InputMaybe<Array<Scalars['String']['input']>>;
6656
+ locale?: InputMaybe<Scalars['String']['input']>;
6657
+ page?: InputMaybe<Scalars['Int']['input']>;
6658
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
6659
+ search?: InputMaybe<Scalars['String']['input']>;
6660
+ };
6661
+ export type SupportArticlesResponse = PagedQueryResults & {
6662
+ __typename?: 'SupportArticlesResponse';
6663
+ data: Array<SupportArticle>;
6664
+ paging_info: PagingResults;
6665
+ };
6666
+ export type SupportAttachment = {
6667
+ __typename?: 'SupportAttachment';
6668
+ attachment: Scalars['String']['output'];
6669
+ contentType: Scalars['String']['output'];
6670
+ name: Scalars['String']['output'];
6671
+ };
6672
+ export type SupportAttachmentInput = {
6673
+ attachmentId: Scalars['String']['input'];
6674
+ requestId: Scalars['Int']['input'];
6675
+ };
6594
6676
  export type SupportCategory = {
6595
6677
  __typename?: 'SupportCategory';
6596
6678
  label: Scalars['String']['output'];
6597
6679
  value: Scalars['String']['output'];
6598
6680
  };
6681
+ export type SupportComment = {
6682
+ __typename?: 'SupportComment';
6683
+ attachments: Array<AttachmentMetadata>;
6684
+ author: CommentAuthor;
6685
+ body: Scalars['String']['output'];
6686
+ createdAt: Scalars['String']['output'];
6687
+ htmlBody: Scalars['String']['output'];
6688
+ id: Scalars['ID']['output'];
6689
+ };
6690
+ export type SupportCommentsInput = {
6691
+ page?: InputMaybe<Scalars['Int']['input']>;
6692
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
6693
+ requestId: Scalars['Int']['input'];
6694
+ sortOrder?: InputMaybe<SortOrderEnum>;
6695
+ };
6696
+ export type SupportCommentsResponse = PagedQueryResults & {
6697
+ __typename?: 'SupportCommentsResponse';
6698
+ comments: Array<SupportComment>;
6699
+ paging_info: PagingResults;
6700
+ };
6599
6701
  export type SupportRequest = {
6600
6702
  __typename?: 'SupportRequest';
6601
6703
  category: Scalars['String']['output'];
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Gets the current datetime in ISO format (with timezone information).
3
+ *
4
+ * @returns Current datetime as ISO string (YYYY-MM-DDTHH:mm:ss.sssZ)
5
+ */
6
+ export declare function getCurrentDateTime(): string;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Gets the current datetime in ISO format (with timezone information).
3
+ *
4
+ * @returns Current datetime as ISO string (YYYY-MM-DDTHH:mm:ss.sssZ)
5
+ */
6
+ export function getCurrentDateTime() {
7
+ return new Date().toISOString();
8
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "./base64.js";
2
+ export * from "./date-utils.js";
2
3
  export * from "./parsing-utils.js";
3
4
  export * from "./runtime.js";
4
5
  export * from "./string-utils.js";
@@ -1,4 +1,5 @@
1
1
  export * from "./base64.js";
2
+ export * from "./date-utils.js";
2
3
  export * from "./parsing-utils.js";
3
4
  export * from "./runtime.js";
4
5
  export * from "./string-utils.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "1.52.0",
3
+ "version": "1.53.0-rc.1766130813",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",