@icanbwell/bwell-sdk-ts 2.0.0-beta-rc.1765486931 → 2.0.0-beta-rc.1766047601

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.
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file is automatically generated. Please do not edit this file directly.
3
3
  */
4
- export declare const VERSION = "2.0.0-beta-rc.1765486931";
4
+ export declare const VERSION = "2.0.0-beta-rc.1766047601";
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file is automatically generated. Please do not edit this file directly.
3
3
  */
4
- export const VERSION = "2.0.0-beta-rc.1765486931";
4
+ export const VERSION = "2.0.0-beta-rc.1766047601";
@@ -1,5 +1,5 @@
1
- import { ErrorsCollector, ValidationRequest, Validator } from "../../../index.js";
2
1
  import { DevicePlatform } from "../../../models/enums/index.js";
2
+ import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
3
3
  /**
4
4
  * Input type for registering a device to receive push notifications.
5
5
  * @category Inputs
@@ -1,5 +1,5 @@
1
- import { ValidationRequest, } from "../../../index.js";
2
1
  import { devicePlatformValues, } from "../../../models/enums/index.js";
2
+ import { ValidationRequest, } from "../../../requests/index.js";
3
3
  import { isBlank } from "../../../utils/string-utils.js";
4
4
  import { INVALID_APPLICATION_NAME_ERROR, INVALID_DEVICE_TOKEN_ERROR, INVALID_PLATFORM_NAME_ERROR, } from "./constants.js";
5
5
  const isValidDevicePlatform = (value) => {
@@ -16,10 +16,10 @@ export class CreateConsentRequestValidator {
16
16
  if (!isUndefined(data.organizationId) && isBlank(data.organizationId)) {
17
17
  errors.add("organizationId cannot be empty");
18
18
  }
19
- // organizationId is required if category is PROA_ATTESTATION
20
- if (data.category === "PROA_ATTESTATION" &&
19
+ // organizationId is required if category is proaAttestation
20
+ if (data.category === "proaAttestation" &&
21
21
  isUndefined(data.organizationId)) {
22
- errors.add("organizationId must be provided when category is PROA_ATTESTATION");
22
+ errors.add("organizationId must be provided when category is proaAttestation");
23
23
  }
24
24
  }
25
25
  }
@@ -8,6 +8,7 @@ export type GraphQLResponse<T> = {
8
8
  errors?: GraphQLError[];
9
9
  headers: Headers;
10
10
  status: number;
11
+ body?: string;
11
12
  };
12
13
  export declare abstract class GraphQLManager {
13
14
  #private;
@@ -2888,6 +2888,7 @@ export type AttachmentMetadata = {
2888
2888
  __typename?: 'AttachmentMetadata';
2889
2889
  contentType: Scalars['String']['output'];
2890
2890
  fileName: Scalars['String']['output'];
2891
+ id: Scalars['ID']['output'];
2891
2892
  size: Scalars['Int']['output'];
2892
2893
  };
2893
2894
  /**
@@ -6430,6 +6431,20 @@ export type CareTeamManagingOrganizationReference = {
6430
6431
  resource?: Maybe<Organization>;
6431
6432
  type?: Maybe<Scalars['URI']['output']>;
6432
6433
  };
6434
+ export type CareTeamMember = {
6435
+ __typename?: 'CareTeamMember';
6436
+ id?: Maybe<Scalars['String']['output']>;
6437
+ period?: Maybe<Period>;
6438
+ role?: Maybe<Array<Maybe<CodeableConcept>>>;
6439
+ };
6440
+ export type CareTeamMembersInput = {
6441
+ pagingInfo?: InputMaybe<PagingInfoInput>;
6442
+ };
6443
+ export type CareTeamMembersOutput = {
6444
+ __typename?: 'CareTeamMembersOutput';
6445
+ members?: Maybe<Array<Maybe<CareTeamMember>>>;
6446
+ pagingInfo?: Maybe<PagingInfoType>;
6447
+ };
6433
6448
  /**
6434
6449
  * CareTeam.Participant
6435
6450
  * The Care Team includes all the people and organizations who plan to
@@ -12809,6 +12824,11 @@ export type CodingInput = {
12809
12824
  display?: InputMaybe<Scalars['String']['input']>;
12810
12825
  system?: InputMaybe<Scalars['String']['input']>;
12811
12826
  };
12827
+ export type CommentAuthor = {
12828
+ __typename?: 'CommentAuthor';
12829
+ email: Scalars['String']['output'];
12830
+ name: Scalars['String']['output'];
12831
+ };
12812
12832
  export type CommentInput = {
12813
12833
  body: Scalars['String']['input'];
12814
12834
  uploads?: InputMaybe<Array<Scalars['String']['input']>>;
@@ -18728,6 +18748,15 @@ export type CreateHealthLinkInput = {
18728
18748
  resources?: InputMaybe<Array<ResourceInput>>;
18729
18749
  securityConfig: SecurityConfigInput;
18730
18750
  };
18751
+ export type CreateSupportCommentInput = {
18752
+ body: Scalars['String']['input'];
18753
+ requestId: Scalars['Int']['input'];
18754
+ uploads?: InputMaybe<Array<Scalars['String']['input']>>;
18755
+ };
18756
+ export type CreateSupportCommentResponse = {
18757
+ __typename?: 'CreateSupportCommentResponse';
18758
+ comment: SupportComment;
18759
+ };
18731
18760
  export type CreateSupportRequestInput = {
18732
18761
  comment: CommentInput;
18733
18762
  email?: InputMaybe<Scalars['String']['input']>;
@@ -43580,6 +43609,7 @@ export type Mutation = {
43580
43609
  createDataExportDirectDownloadUrl?: Maybe<Scalars['String']['output']>;
43581
43610
  createGuestAccessToken: GuestAccessToken;
43582
43611
  createHealthLink: DocumentReference;
43612
+ createSupportComment: CreateSupportCommentResponse;
43583
43613
  createSupportRequest: CreateSupportRequestResponse;
43584
43614
  createVerificationUrl: Scalars['String']['output'];
43585
43615
  /**
@@ -43831,6 +43861,9 @@ export type MutationCreateGuestAccessTokenArgs = {
43831
43861
  export type MutationCreateHealthLinkArgs = {
43832
43862
  input: CreateHealthLinkInput;
43833
43863
  };
43864
+ export type MutationCreateSupportCommentArgs = {
43865
+ input: CreateSupportCommentInput;
43866
+ };
43834
43867
  export type MutationCreateSupportRequestArgs = {
43835
43868
  input: CreateSupportRequestInput;
43836
43869
  };
@@ -52047,6 +52080,7 @@ export type Query = {
52047
52080
  * If the element is present, it must have either a @value, an @id, or extensions
52048
52081
  */
52049
52082
  carePlans?: Maybe<CarePlanBundle>;
52083
+ careTeamMembers?: Maybe<CareTeamMembersOutput>;
52050
52084
  /**
52051
52085
  * CareTeam
52052
52086
  * The Care Team includes all the people and organizations who plan to
@@ -52288,7 +52322,10 @@ export type Query = {
52288
52322
  /** Generate a third party site url used to open login page for the user. */
52289
52323
  getOauthUrl: GenerateUrl;
52290
52324
  getProcedureGroups: ProcedureGroupQueryResults;
52325
+ getSupportArticles: SupportArticlesResponse;
52326
+ getSupportAttachment: SupportAttachment;
52291
52327
  getSupportCategories: Array<SupportCategory>;
52328
+ getSupportComments: SupportCommentsResponse;
52292
52329
  getSupportRequest: SupportRequestDetail;
52293
52330
  getSupportRequests: SupportRequestsResponse;
52294
52331
  /** Query to search for tasks. This query is the preferred method for searching for tasks. */
@@ -52923,6 +52960,9 @@ export type QueryCarePlansArgs = {
52923
52960
  status?: InputMaybe<SearchToken>;
52924
52961
  subject?: InputMaybe<SearchReference>;
52925
52962
  };
52963
+ export type QueryCareTeamMembersArgs = {
52964
+ input?: InputMaybe<CareTeamMembersInput>;
52965
+ };
52926
52966
  export type QueryCareTeamsArgs = {
52927
52967
  _count?: InputMaybe<Scalars['Int']['input']>;
52928
52968
  _debug?: InputMaybe<Scalars['Boolean']['input']>;
@@ -53751,6 +53791,15 @@ export type QueryGetOauthUrlArgs = {
53751
53791
  export type QueryGetProcedureGroupsArgs = {
53752
53792
  request?: InputMaybe<ProcedureGroupQueryRequest>;
53753
53793
  };
53794
+ export type QueryGetSupportArticlesArgs = {
53795
+ input?: InputMaybe<SupportArticlesInput>;
53796
+ };
53797
+ export type QueryGetSupportAttachmentArgs = {
53798
+ input: SupportAttachmentInput;
53799
+ };
53800
+ export type QueryGetSupportCommentsArgs = {
53801
+ input: SupportCommentsInput;
53802
+ };
53754
53803
  export type QueryGetSupportRequestArgs = {
53755
53804
  id: Scalars['Int']['input'];
53756
53805
  };
@@ -59143,15 +59192,15 @@ export type SearchHealthResourcesResults = {
59143
59192
  /** Geographic center point for location-based search */
59144
59193
  export type SearchLocation = {
59145
59194
  /** Latitude of the search center */
59146
- lat: Scalars['Float']['input'];
59195
+ lat?: InputMaybe<Scalars['Float']['input']>;
59147
59196
  /** Longitude of the search center */
59148
- lon: Scalars['Float']['input'];
59197
+ lon?: InputMaybe<Scalars['Float']['input']>;
59149
59198
  /** Maximum distance radius for location-based filtering */
59150
59199
  radius?: InputMaybe<Scalars['Float']['input']>;
59151
59200
  /** Unit of measurement for the radius */
59152
59201
  radiusUnit?: InputMaybe<DistanceUnitEnum>;
59153
59202
  /**
59154
- * Prioritizes local health systems around given zipCode.
59203
+ * Prioritizes local health systems around given zipCode. Preference given to lat/lon if provided.
59155
59204
  * NOTE: Inputs `type` must be `[PRACTICE]` and `orderBy` must be `[DATA_SOURCE_RANK]`
59156
59205
  */
59157
59206
  zipCode?: InputMaybe<Scalars['String']['input']>;
@@ -64561,11 +64610,64 @@ export type SupplyRequestSupplierReference = {
64561
64610
  resource?: Maybe<SupplyRequestSupplier>;
64562
64611
  type?: Maybe<Scalars['URI']['output']>;
64563
64612
  };
64613
+ export type SupportArticle = {
64614
+ __typename?: 'SupportArticle';
64615
+ body: Scalars['String']['output'];
64616
+ createdAt: Scalars['String']['output'];
64617
+ htmlUrl: Scalars['String']['output'];
64618
+ id: Scalars['String']['output'];
64619
+ labelNames: Array<Scalars['String']['output']>;
64620
+ snippet?: Maybe<Scalars['String']['output']>;
64621
+ title: Scalars['String']['output'];
64622
+ updatedAt: Scalars['String']['output'];
64623
+ };
64624
+ export type SupportArticlesInput = {
64625
+ labelNames?: InputMaybe<Array<Scalars['String']['input']>>;
64626
+ locale?: InputMaybe<Scalars['String']['input']>;
64627
+ page?: InputMaybe<Scalars['Int']['input']>;
64628
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
64629
+ search?: InputMaybe<Scalars['String']['input']>;
64630
+ };
64631
+ export type SupportArticlesResponse = PagedQueryResults & {
64632
+ __typename?: 'SupportArticlesResponse';
64633
+ data: Array<SupportArticle>;
64634
+ paging_info: PagingResults;
64635
+ };
64636
+ export type SupportAttachment = {
64637
+ __typename?: 'SupportAttachment';
64638
+ attachment: Scalars['String']['output'];
64639
+ contentType: Scalars['String']['output'];
64640
+ name: Scalars['String']['output'];
64641
+ };
64642
+ export type SupportAttachmentInput = {
64643
+ attachmentId: Scalars['String']['input'];
64644
+ requestId: Scalars['Int']['input'];
64645
+ };
64564
64646
  export type SupportCategory = {
64565
64647
  __typename?: 'SupportCategory';
64566
64648
  label: Scalars['String']['output'];
64567
64649
  value: Scalars['String']['output'];
64568
64650
  };
64651
+ export type SupportComment = {
64652
+ __typename?: 'SupportComment';
64653
+ attachments: Array<AttachmentMetadata>;
64654
+ author: CommentAuthor;
64655
+ body: Scalars['String']['output'];
64656
+ createdAt: Scalars['String']['output'];
64657
+ htmlBody: Scalars['String']['output'];
64658
+ id: Scalars['ID']['output'];
64659
+ };
64660
+ export type SupportCommentsInput = {
64661
+ page?: InputMaybe<Scalars['Int']['input']>;
64662
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
64663
+ requestId: Scalars['Int']['input'];
64664
+ sortOrder?: InputMaybe<SortOrderEnum>;
64665
+ };
64666
+ export type SupportCommentsResponse = PagedQueryResults & {
64667
+ __typename?: 'SupportCommentsResponse';
64668
+ comments: Array<SupportComment>;
64669
+ paging_info: PagingResults;
64670
+ };
64569
64671
  export type SupportRequest = {
64570
64672
  __typename?: 'SupportRequest';
64571
64673
  category: Scalars['String']['output'];
@@ -6,6 +6,6 @@
6
6
  * @title CategoryCode
7
7
  * @excerpt CategoryCode enum representing the category code for consents or data.
8
8
  */
9
- export type CategoryCode = "COMMUNICATION_PREFERENCES_PHI" | "DATA_SHARING" | "HEALTH_CIRCLE_ADOLESCENT" | "HEALTH_CIRCLE_MINOR" | "HEALTH_MATCH" | "IAS_IMPORT_RECORDS" | "MOBILE_COMMUNICATION_PREFERENCES" | "PERSONALIZED_HEALTH_OFFERS_AND_ADS" | "PROA_ATTESTATION" | "TOS";
9
+ export type CategoryCode = "communicationPreferences:includePHI" | "dataSharing" | "healthCircleAdolescent" | "healthCircleMinor" | "healthMatch" | "ias:import:records" | "mobileCommunicationPreferences" | "personalizedHealthOffersAndAds" | "proaAttestation" | "tos";
10
10
  /** @internal */
11
- export declare const categoryCodeValues: readonly ["COMMUNICATION_PREFERENCES_PHI", "DATA_SHARING", "HEALTH_CIRCLE_ADOLESCENT", "HEALTH_CIRCLE_MINOR", "HEALTH_MATCH", "IAS_IMPORT_RECORDS", "MOBILE_COMMUNICATION_PREFERENCES", "PERSONALIZED_HEALTH_OFFERS_AND_ADS", "PROA_ATTESTATION", "TOS"];
11
+ export declare const categoryCodeValues: readonly ["communicationPreferences:includePHI", "dataSharing", "healthCircleAdolescent", "healthCircleMinor", "healthMatch", "ias:import:records", "mobileCommunicationPreferences", "personalizedHealthOffersAndAds", "proaAttestation", "tos"];
@@ -1,13 +1,13 @@
1
1
  /** @internal */
2
2
  export const categoryCodeValues = [
3
- "COMMUNICATION_PREFERENCES_PHI",
4
- "DATA_SHARING",
5
- "HEALTH_CIRCLE_ADOLESCENT",
6
- "HEALTH_CIRCLE_MINOR",
7
- "HEALTH_MATCH",
8
- "IAS_IMPORT_RECORDS",
9
- "MOBILE_COMMUNICATION_PREFERENCES",
10
- "PERSONALIZED_HEALTH_OFFERS_AND_ADS",
11
- "PROA_ATTESTATION",
12
- "TOS",
3
+ "communicationPreferences:includePHI",
4
+ "dataSharing",
5
+ "healthCircleAdolescent",
6
+ "healthCircleMinor",
7
+ "healthMatch",
8
+ "ias:import:records",
9
+ "mobileCommunicationPreferences",
10
+ "personalizedHealthOffersAndAds",
11
+ "proaAttestation",
12
+ "tos",
13
13
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "2.0.0-beta-rc.1765486931",
3
+ "version": "2.0.0-beta-rc.1766047601",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -55,7 +55,7 @@
55
55
  "@opentelemetry/sdk-logs": "^0.52.1",
56
56
  "@opentelemetry/sdk-trace-web": "^1.25.1",
57
57
  "@opentelemetry/semantic-conventions": "^1.25.1",
58
- "graphql-request": "^6.1.0"
58
+ "graphql-request": "^7.0.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@eslint/js": "^9.30.1",