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

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 (53) 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/health-space-manager.d.ts +86 -1
  8. package/dist/api/base/health-space/index.d.ts +4 -0
  9. package/dist/api/base/health-space/index.js +4 -0
  10. package/dist/api/base/health-space/remove-care-team-member-request.d.ts +34 -0
  11. package/dist/api/base/health-space/remove-care-team-member-request.js +36 -0
  12. package/dist/api/base/health-space/update-care-team-member-request.d.ts +55 -0
  13. package/dist/api/base/health-space/update-care-team-member-request.js +71 -0
  14. package/dist/api/base/support/create-support-request-request.d.ts +22 -0
  15. package/dist/api/base/support/create-support-request-request.js +20 -0
  16. package/dist/api/base/support/delete-support-attachment-request.d.ts +11 -0
  17. package/dist/api/base/support/delete-support-attachment-request.js +14 -0
  18. package/dist/api/base/support/index.d.ts +3 -0
  19. package/dist/api/base/support/index.js +3 -0
  20. package/dist/api/base/support/support-manager.d.ts +32 -2
  21. package/dist/api/base/support/upload-support-attachment-request.d.ts +25 -0
  22. package/dist/api/base/support/upload-support-attachment-request.js +27 -0
  23. package/dist/api/graphql-api/health-space/add-care-team-member-request-factory.d.ts +20 -0
  24. package/dist/api/graphql-api/health-space/add-care-team-member-request-factory.js +29 -0
  25. package/dist/api/graphql-api/health-space/add-care-team-members-request-factory.d.ts +16 -0
  26. package/dist/api/graphql-api/health-space/add-care-team-members-request-factory.js +23 -0
  27. package/dist/api/graphql-api/health-space/care-team-factory-utils.d.ts +23 -0
  28. package/dist/api/graphql-api/health-space/care-team-factory-utils.js +30 -0
  29. package/dist/api/graphql-api/health-space/graphql-health-space-manager.d.ts +58 -1
  30. package/dist/api/graphql-api/health-space/graphql-health-space-manager.js +131 -2
  31. package/dist/api/graphql-api/health-space/index.d.ts +4 -0
  32. package/dist/api/graphql-api/health-space/index.js +4 -0
  33. package/dist/api/graphql-api/health-space/remove-care-team-member-request-factory.d.ts +16 -0
  34. package/dist/api/graphql-api/health-space/remove-care-team-member-request-factory.js +24 -0
  35. package/dist/api/graphql-api/health-space/update-care-team-member-request-factory.d.ts +16 -0
  36. package/dist/api/graphql-api/health-space/update-care-team-member-request-factory.js +20 -0
  37. package/dist/api/graphql-api/support/create-support-request-request-factory.d.ts +6 -0
  38. package/dist/api/graphql-api/support/create-support-request-request-factory.js +19 -0
  39. package/dist/api/graphql-api/support/delete-support-attachment-request-factory.d.ts +6 -0
  40. package/dist/api/graphql-api/support/delete-support-attachment-request-factory.js +10 -0
  41. package/dist/api/graphql-api/support/graphql-support-manager.d.ts +11 -4
  42. package/dist/api/graphql-api/support/graphql-support-manager.js +79 -4
  43. package/dist/api/graphql-api/support/upload-support-attachment-request-factory.d.ts +6 -0
  44. package/dist/api/graphql-api/support/upload-support-attachment-request-factory.js +11 -0
  45. package/dist/graphql/operations/index.d.ts +64 -0
  46. package/dist/graphql/operations/index.js +94 -0
  47. package/dist/graphql/operations/types.d.ts +80 -2
  48. package/dist/graphql/schema.d.ts +105 -3
  49. package/dist/utils/date-utils.d.ts +6 -0
  50. package/dist/utils/date-utils.js +8 -0
  51. package/dist/utils/index.d.ts +1 -0
  52. package/dist/utils/index.js +1 -0
  53. package/package.json +1 -1
@@ -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.1766074701",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",