@icanbwell/bwell-sdk-ts 2.0.0-beta-rc.1765473969 → 2.0.0-beta-rc.1765813498

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.1765473969";
4
+ export declare const VERSION = "2.0.0-beta-rc.1765813498";
@@ -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.1765473969";
4
+ export const VERSION = "2.0.0-beta-rc.1765813498";
@@ -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
  }
@@ -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
  /**
@@ -12809,6 +12810,11 @@ export type CodingInput = {
12809
12810
  display?: InputMaybe<Scalars['String']['input']>;
12810
12811
  system?: InputMaybe<Scalars['String']['input']>;
12811
12812
  };
12813
+ export type CommentAuthor = {
12814
+ __typename?: 'CommentAuthor';
12815
+ email: Scalars['String']['output'];
12816
+ name: Scalars['String']['output'];
12817
+ };
12812
12818
  export type CommentInput = {
12813
12819
  body: Scalars['String']['input'];
12814
12820
  uploads?: InputMaybe<Array<Scalars['String']['input']>>;
@@ -18728,6 +18734,15 @@ export type CreateHealthLinkInput = {
18728
18734
  resources?: InputMaybe<Array<ResourceInput>>;
18729
18735
  securityConfig: SecurityConfigInput;
18730
18736
  };
18737
+ export type CreateSupportCommentInput = {
18738
+ body: Scalars['String']['input'];
18739
+ requestId: Scalars['Int']['input'];
18740
+ uploads?: InputMaybe<Array<Scalars['String']['input']>>;
18741
+ };
18742
+ export type CreateSupportCommentResponse = {
18743
+ __typename?: 'CreateSupportCommentResponse';
18744
+ comment: SupportComment;
18745
+ };
18731
18746
  export type CreateSupportRequestInput = {
18732
18747
  comment: CommentInput;
18733
18748
  email?: InputMaybe<Scalars['String']['input']>;
@@ -21479,6 +21494,17 @@ export type Distance = {
21479
21494
  */
21480
21495
  value?: Maybe<Scalars['Float']['output']>;
21481
21496
  };
21497
+ /**
21498
+ * Distance Unit enum
21499
+ * Defines the units of measurement for distance calculations
21500
+ */
21501
+ export type DistanceUnitEnum =
21502
+ /** Distance measured in kilometers */
21503
+ 'KILOMETERS'
21504
+ /** Distance measured in meters */
21505
+ | 'METERS'
21506
+ /** Distance measured in miles */
21507
+ | 'MILES';
21482
21508
  /**
21483
21509
  * DocumentManifest
21484
21510
  * A collection of documents compiled for a purpose together with metadata that
@@ -43569,6 +43595,7 @@ export type Mutation = {
43569
43595
  createDataExportDirectDownloadUrl?: Maybe<Scalars['String']['output']>;
43570
43596
  createGuestAccessToken: GuestAccessToken;
43571
43597
  createHealthLink: DocumentReference;
43598
+ createSupportComment: CreateSupportCommentResponse;
43572
43599
  createSupportRequest: CreateSupportRequestResponse;
43573
43600
  createVerificationUrl: Scalars['String']['output'];
43574
43601
  /**
@@ -43820,6 +43847,9 @@ export type MutationCreateGuestAccessTokenArgs = {
43820
43847
  export type MutationCreateHealthLinkArgs = {
43821
43848
  input: CreateHealthLinkInput;
43822
43849
  };
43850
+ export type MutationCreateSupportCommentArgs = {
43851
+ input: CreateSupportCommentInput;
43852
+ };
43823
43853
  export type MutationCreateSupportRequestArgs = {
43824
43854
  input: CreateSupportRequestInput;
43825
43855
  };
@@ -48151,6 +48181,12 @@ export type Patient = DomainResource & Resource & {
48151
48181
  text?: Maybe<Narrative>;
48152
48182
  visionPrescriptions?: Maybe<Array<Maybe<VisionPrescription>>>;
48153
48183
  };
48184
+ /** PatientAcceptance enum */
48185
+ export type PatientAcceptanceEnum =
48186
+ /** Providers accepting existing patients only */
48187
+ 'EXISTING_PATIENTS'
48188
+ /** Providers accepting new patients */
48189
+ | 'NEW_PATIENTS';
48154
48190
  export type PatientBundle = {
48155
48191
  __typename?: 'PatientBundle';
48156
48192
  entry?: Maybe<Array<Maybe<PatientBundleEntry>>>;
@@ -52271,6 +52307,7 @@ export type Query = {
52271
52307
  /** Generate a third party site url used to open login page for the user. */
52272
52308
  getOauthUrl: GenerateUrl;
52273
52309
  getProcedureGroups: ProcedureGroupQueryResults;
52310
+ getSupportArticles: SupportArticlesResponse;
52274
52311
  getSupportCategories: Array<SupportCategory>;
52275
52312
  getSupportRequest: SupportRequestDetail;
52276
52313
  getSupportRequests: SupportRequestsResponse;
@@ -53734,6 +53771,9 @@ export type QueryGetOauthUrlArgs = {
53734
53771
  export type QueryGetProcedureGroupsArgs = {
53735
53772
  request?: InputMaybe<ProcedureGroupQueryRequest>;
53736
53773
  };
53774
+ export type QueryGetSupportArticlesArgs = {
53775
+ input?: InputMaybe<SupportArticlesInput>;
53776
+ };
53737
53777
  export type QueryGetSupportRequestArgs = {
53738
53778
  id: Scalars['Int']['input'];
53739
53779
  };
@@ -59088,10 +59128,14 @@ export type SearchFiltersInput = {
59088
59128
  gender?: InputMaybe<GenderEnum>;
59089
59129
  /** Return only search results with one of these IDs or NPIs */
59090
59130
  id?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
59091
- /** Return only search results that are maked 'active' */
59131
+ /** When true, includes inactive providers (default false) */
59092
59132
  includeInactive?: InputMaybe<Scalars['Boolean']['input']>;
59093
59133
  /** Return only results that have PROA connections */
59094
59134
  includePopulatedProaOnly?: InputMaybe<Scalars['Boolean']['input']>;
59135
+ /** Return only providers who accept this type of patient (new, existing, or both) */
59136
+ patientAcceptance?: InputMaybe<Array<InputMaybe<PatientAcceptanceEnum>>>;
59137
+ /** Return only providers who have any one of given specialties */
59138
+ specialty?: InputMaybe<Array<InputMaybe<InputCoding>>>;
59095
59139
  /** Return only these search result types */
59096
59140
  type?: InputMaybe<Array<InputMaybe<SearchResultTypeEnum>>>;
59097
59141
  };
@@ -59119,10 +59163,20 @@ export type SearchHealthResourcesResults = {
59119
59163
  pagingInfo?: Maybe<PagingInfoType>;
59120
59164
  results?: Maybe<Array<Maybe<HealthResourceSearchResult>>>;
59121
59165
  };
59166
+ /** Geographic center point for location-based search */
59122
59167
  export type SearchLocation = {
59123
- /** Location of the user making the request */
59168
+ /** Latitude of the search center */
59124
59169
  lat: Scalars['Float']['input'];
59170
+ /** Longitude of the search center */
59125
59171
  lon: Scalars['Float']['input'];
59172
+ /** Maximum distance radius for location-based filtering */
59173
+ radius?: InputMaybe<Scalars['Float']['input']>;
59174
+ /** Unit of measurement for the radius */
59175
+ radiusUnit?: InputMaybe<DistanceUnitEnum>;
59176
+ /**
59177
+ * Prioritizes local health systems around given zipCode.
59178
+ * NOTE: Inputs `type` must be `[PRACTICE]` and `orderBy` must be `[DATA_SOURCE_RANK]`
59179
+ */
59126
59180
  zipCode?: InputMaybe<Scalars['String']['input']>;
59127
59181
  };
59128
59182
  export type SearchNumber = {
@@ -60234,7 +60288,19 @@ export type SortField = 'content' | 'distance' | 'relevance';
60234
60288
  * SortField enum
60235
60289
  * New version
60236
60290
  */
60237
- export type SortFieldEnum = 'CONTENT' | 'DATA_SOURCE_RANK' | 'DISTANCE' | 'RELEVANCE';
60291
+ export type SortFieldEnum =
60292
+ /** Sort by name of the health resource */
60293
+ 'CONTENT'
60294
+ /** Sort by data source ranking */
60295
+ | 'DATA_SOURCE_RANK'
60296
+ /** Sort by distance from search location */
60297
+ | 'DISTANCE'
60298
+ /** Sort by next available appointment of the provider/practice */
60299
+ | 'NEXT_AVAILABLE'
60300
+ /** Sort to get providers/practices that support online booking first/last */
60301
+ | 'ONLINE_BOOKING_AVAILABLE'
60302
+ /** Sort by relevance to search terms */
60303
+ | 'RELEVANCE';
60238
60304
  export type SortOrder = 'asc' | 'desc';
60239
60305
  /**
60240
60306
  * SortOrder enum
@@ -64518,11 +64584,43 @@ export type SupplyRequestSupplierReference = {
64518
64584
  resource?: Maybe<SupplyRequestSupplier>;
64519
64585
  type?: Maybe<Scalars['URI']['output']>;
64520
64586
  };
64587
+ export type SupportArticle = {
64588
+ __typename?: 'SupportArticle';
64589
+ body: Scalars['String']['output'];
64590
+ createdAt: Scalars['String']['output'];
64591
+ htmlUrl: Scalars['String']['output'];
64592
+ id: Scalars['String']['output'];
64593
+ labelNames: Array<Scalars['String']['output']>;
64594
+ snippet?: Maybe<Scalars['String']['output']>;
64595
+ title: Scalars['String']['output'];
64596
+ updatedAt: Scalars['String']['output'];
64597
+ };
64598
+ export type SupportArticlesInput = {
64599
+ label_names?: InputMaybe<Array<Scalars['String']['input']>>;
64600
+ locale?: InputMaybe<Scalars['String']['input']>;
64601
+ page?: InputMaybe<Scalars['Int']['input']>;
64602
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
64603
+ search?: InputMaybe<Scalars['String']['input']>;
64604
+ };
64605
+ export type SupportArticlesResponse = PagedQueryResults & {
64606
+ __typename?: 'SupportArticlesResponse';
64607
+ data: Array<SupportArticle>;
64608
+ paging_info: PagingResults;
64609
+ };
64521
64610
  export type SupportCategory = {
64522
64611
  __typename?: 'SupportCategory';
64523
64612
  label: Scalars['String']['output'];
64524
64613
  value: Scalars['String']['output'];
64525
64614
  };
64615
+ export type SupportComment = {
64616
+ __typename?: 'SupportComment';
64617
+ attachments: Array<AttachmentMetadata>;
64618
+ author: CommentAuthor;
64619
+ body: Scalars['String']['output'];
64620
+ createdAt: Scalars['String']['output'];
64621
+ htmlBody: Scalars['String']['output'];
64622
+ id: Scalars['ID']['output'];
64623
+ };
64526
64624
  export type SupportRequest = {
64527
64625
  __typename?: 'SupportRequest';
64528
64626
  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.1765473969",
3
+ "version": "2.0.0-beta-rc.1765813498",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",