@icanbwell/bwell-sdk-ts 1.47.0 → 1.48.0

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 (34) hide show
  1. package/dist/__version__.d.ts +1 -1
  2. package/dist/__version__.js +1 -1
  3. package/dist/api/base/api-provider.d.ts +2 -0
  4. package/dist/api/base/financial/explanation-of-benefit.d.ts +32 -0
  5. package/dist/api/base/financial/explanation-of-benefit.js +66 -0
  6. package/dist/api/base/financial/financial-manager.d.ts +4 -1
  7. package/dist/api/base/index.d.ts +1 -0
  8. package/dist/api/base/index.js +1 -0
  9. package/dist/api/base/support/get-support-requests-request.d.ts +16 -0
  10. package/dist/api/base/support/get-support-requests-request.js +14 -0
  11. package/dist/api/base/support/index.d.ts +2 -0
  12. package/dist/api/base/support/index.js +2 -0
  13. package/dist/api/base/support/support-manager.d.ts +16 -0
  14. package/dist/api/base/support/support-manager.js +1 -0
  15. package/dist/api/graphql-api/financial/graphql-explanation-of-benefits-factory.d.ts +9 -0
  16. package/dist/api/graphql-api/financial/graphql-explanation-of-benefits-factory.js +23 -0
  17. package/dist/api/graphql-api/financial/graphql-financial-manager.d.ts +3 -1
  18. package/dist/api/graphql-api/financial/graphql-financial-manager.js +20 -2
  19. package/dist/api/graphql-api/graphql-api-provider.d.ts +2 -0
  20. package/dist/api/graphql-api/graphql-api-provider.js +2 -0
  21. package/dist/api/graphql-api/support/get-support-requests-bwell-request-factory.d.ts +6 -0
  22. package/dist/api/graphql-api/support/get-support-requests-bwell-request-factory.js +16 -0
  23. package/dist/api/graphql-api/support/graphql-support-manager.d.ts +15 -0
  24. package/dist/api/graphql-api/support/graphql-support-manager.js +54 -0
  25. package/dist/api/graphql-api/support/index.d.ts +1 -0
  26. package/dist/api/graphql-api/support/index.js +1 -0
  27. package/dist/bwell-sdk/bwell-sdk.d.ts +2 -0
  28. package/dist/bwell-sdk/bwell-sdk.js +3 -0
  29. package/dist/graphql/operations/index.d.ts +19 -1
  30. package/dist/graphql/operations/index.js +279 -6
  31. package/dist/graphql/operations/types.d.ts +466 -11
  32. package/dist/graphql/schema.d.ts +104 -5
  33. package/dist/graphql/schema.js +17 -0
  34. package/package.json +1 -1
@@ -432,6 +432,12 @@ export type AttachmentInput = {
432
432
  id: Scalars['String']['input'];
433
433
  title?: InputMaybe<Scalars['String']['input']>;
434
434
  };
435
+ export type AttachmentMetadata = {
436
+ __typename?: 'AttachmentMetadata';
437
+ contentType: Scalars['String']['output'];
438
+ fileName: Scalars['String']['output'];
439
+ size: Scalars['Int']['output'];
440
+ };
435
441
  export type AuthCode = {
436
442
  __typename?: 'AuthCode';
437
443
  authCode: Scalars['String']['output'];
@@ -491,7 +497,6 @@ export type BootstrapConfiguration = {
491
497
  frontendEnvironment: FrontendEnvironment;
492
498
  googleGeo: GoogleGeo;
493
499
  jwksKid: Scalars['String']['output'];
494
- mcp: McpMap;
495
500
  prefetchAssets: PrefetchAssets;
496
501
  telemetry: Telemetry;
497
502
  userProfileSvcUrl: Scalars['String']['output'];
@@ -846,6 +851,10 @@ export type CodingInput = {
846
851
  display?: InputMaybe<Scalars['String']['input']>;
847
852
  system?: InputMaybe<Scalars['String']['input']>;
848
853
  };
854
+ export type CommentInput = {
855
+ body: Scalars['String']['input'];
856
+ uploads?: InputMaybe<Array<Scalars['String']['input']>>;
857
+ };
849
858
  export type Component = {
850
859
  __typename?: 'Component';
851
860
  /** The code that categorizes the observation. */
@@ -1277,6 +1286,17 @@ export type CreateHealthLinkInput = {
1277
1286
  resources?: InputMaybe<Array<ResourceInput>>;
1278
1287
  securityConfig: SecurityConfigInput;
1279
1288
  };
1289
+ export type CreateSupportRequestInput = {
1290
+ comment: CommentInput;
1291
+ email?: InputMaybe<Scalars['String']['input']>;
1292
+ fields: SupportRequestFieldsInput;
1293
+ name?: InputMaybe<Scalars['String']['input']>;
1294
+ subject: Scalars['String']['input'];
1295
+ };
1296
+ export type CreateSupportRequestResponse = {
1297
+ __typename?: 'CreateSupportRequestResponse';
1298
+ data?: Maybe<SupportRequest>;
1299
+ };
1280
1300
  /** Supported ISO 4217 CurrencyCodes */
1281
1301
  export declare enum CurrencyCode {
1282
1302
  Usd = "USD"
@@ -1326,6 +1346,16 @@ export type DataSource = {
1326
1346
  /** Type of data source */
1327
1347
  type: DataConnectionType;
1328
1348
  };
1349
+ export type DeleteSupportAttachmentInput = {
1350
+ attachmentId: Scalars['String']['input'];
1351
+ };
1352
+ export type DeleteSupportAttachmentResponse = {
1353
+ __typename?: 'DeleteSupportAttachmentResponse';
1354
+ status: DeletionStatus;
1355
+ };
1356
+ export declare enum DeletionStatus {
1357
+ Deleted = "DELETED"
1358
+ }
1329
1359
  export type Detail = {
1330
1360
  __typename?: 'Detail';
1331
1361
  code?: Maybe<CodeableConcept>;
@@ -2846,10 +2876,6 @@ export type Logging = {
2846
2876
  __typename?: 'Logging';
2847
2877
  enabled: Scalars['Boolean']['output'];
2848
2878
  };
2849
- export type McpMap = {
2850
- __typename?: 'McpMap';
2851
- bailey: Scalars['String']['output'];
2852
- };
2853
2879
  export type MedStatementCodeableConceptResource = {
2854
2880
  __typename?: 'MedStatementCodeableConceptResource';
2855
2881
  medicationCodeableConcept?: Maybe<CodeableConcept>;
@@ -3253,6 +3279,7 @@ export type Mutation = {
3253
3279
  createMissingConsents?: Maybe<Scalars['String']['output']>;
3254
3280
  createPersonWithClientId?: Maybe<PersonWithMetadata>;
3255
3281
  createQuestionnaireResponse?: Maybe<ConsentQuestionnaireResponse>;
3282
+ createSupportRequest: CreateSupportRequestResponse;
3256
3283
  createVerificationUrl: Scalars['String']['output'];
3257
3284
  /**
3258
3285
  * Initiates deletion of an AllergyIntolerance resource by its ID.
@@ -3447,6 +3474,7 @@ export type Mutation = {
3447
3474
  * Returns an OperationOutcome for the delete operation.
3448
3475
  */
3449
3476
  deleteSpecimen: OperationOutcome;
3477
+ deleteSupportAttachment: DeleteSupportAttachmentResponse;
3450
3478
  /** Disconnection a connection */
3451
3479
  disconnectConnection: DisconnectConnection;
3452
3480
  exchangeAuthCode: AuthTokens;
@@ -3489,6 +3517,7 @@ export type Mutation = {
3489
3517
  updateUserAccountStatus: IdentityAuthed_OperationOutcome;
3490
3518
  updateUserClient: Array<UpdateUserClientOutput>;
3491
3519
  updateUserProfile?: Maybe<Person>;
3520
+ uploadSupportAttachment: UploadSupportAttachmentResponse;
3492
3521
  upsertPerson?: Maybe<PersonWithMetadata>;
3493
3522
  upsertPersonWithRegCode?: Maybe<TaskWithMetadata>;
3494
3523
  };
@@ -3535,6 +3564,9 @@ export type MutationCreatePersonWithClientIdArgs = {
3535
3564
  export type MutationCreateQuestionnaireResponseArgs = {
3536
3565
  input: QuestionnaireResponse_Input;
3537
3566
  };
3567
+ export type MutationCreateSupportRequestArgs = {
3568
+ input: CreateSupportRequestInput;
3569
+ };
3538
3570
  export type MutationCreateVerificationUrlArgs = {
3539
3571
  callbackURL?: InputMaybe<Scalars['String']['input']>;
3540
3572
  includeAttributeMatchingCheck?: InputMaybe<Scalars['Boolean']['input']>;
@@ -3605,6 +3637,9 @@ export type MutationDeleteServiceRequestArgs = {
3605
3637
  export type MutationDeleteSpecimenArgs = {
3606
3638
  id: Scalars['UUID']['input'];
3607
3639
  };
3640
+ export type MutationDeleteSupportAttachmentArgs = {
3641
+ input: DeleteSupportAttachmentInput;
3642
+ };
3608
3643
  export type MutationDisconnectConnectionArgs = {
3609
3644
  connectionId: Scalars['String']['input'];
3610
3645
  };
@@ -3700,6 +3735,9 @@ export type MutationUpdateUserClientArgs = {
3700
3735
  export type MutationUpdateUserProfileArgs = {
3701
3736
  input?: InputMaybe<FhirPersonInput>;
3702
3737
  };
3738
+ export type MutationUploadSupportAttachmentArgs = {
3739
+ input: UploadSupportAttachmentInput;
3740
+ };
3703
3741
  export type MutationUpsertPersonArgs = {
3704
3742
  input?: InputMaybe<PersonWithClientIdInput>;
3705
3743
  };
@@ -4899,6 +4937,8 @@ export type Query = {
4899
4937
  getPersonByRegCode?: Maybe<RegCodePersonDto>;
4900
4938
  getProcedureGroups: ProcedureGroupQueryResults;
4901
4939
  getProcedures: ProcedureQueryResults;
4940
+ getSupportCategories: Array<SupportCategory>;
4941
+ getSupportRequests: SupportRequestsResponse;
4902
4942
  /** Query to search for tasks. This query is the preferred method for searching for tasks. */
4903
4943
  getTasks?: Maybe<TaskQueryResults>;
4904
4944
  getToken: AuthTokens;
@@ -5023,8 +5063,12 @@ export type QueryExplanationOfBenefitsArgs = {
5023
5063
  _lastUpdated?: InputMaybe<SearchDate>;
5024
5064
  _sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
5025
5065
  _total?: InputMaybe<TotalType>;
5066
+ coverage?: InputMaybe<SearchReference>;
5067
+ created?: InputMaybe<SearchDate>;
5026
5068
  id?: InputMaybe<SearchString>;
5027
5069
  patient?: InputMaybe<SearchReference>;
5070
+ provider?: InputMaybe<SearchReference>;
5071
+ status?: InputMaybe<SearchToken>;
5028
5072
  };
5029
5073
  export type QueryFindPersonWithClientSlugAndIdArgs = {
5030
5074
  input?: InputMaybe<ClientSlugAndIdentifierInput>;
@@ -5130,6 +5174,9 @@ export type QueryGetProcedureGroupsArgs = {
5130
5174
  export type QueryGetProceduresArgs = {
5131
5175
  request?: InputMaybe<ProcedureRequest>;
5132
5176
  };
5177
+ export type QueryGetSupportRequestsArgs = {
5178
+ input?: InputMaybe<SupportRequestsInput>;
5179
+ };
5133
5180
  export type QueryGetTasksArgs = {
5134
5181
  request?: InputMaybe<TaskRequest>;
5135
5182
  };
@@ -5820,6 +5867,14 @@ export type RequestConnectionOutput = {
5820
5867
  issue?: Maybe<Array<Maybe<OperationOutcomeIssue>>>;
5821
5868
  resourceType?: Maybe<Scalars['String']['output']>;
5822
5869
  };
5870
+ export declare enum RequestStatus {
5871
+ Closed = "CLOSED",
5872
+ Hold = "HOLD",
5873
+ New = "NEW",
5874
+ Open = "OPEN",
5875
+ Pending = "PENDING",
5876
+ Solved = "SOLVED"
5877
+ }
5823
5878
  export type Resource = {
5824
5879
  id: Scalars['ID']['output'];
5825
5880
  implicitRules?: Maybe<Scalars['URI']['output']>;
@@ -5877,6 +5932,7 @@ export type Rest = {
5877
5932
  export type RestEndpoints = {
5878
5933
  __typename?: 'RestEndpoints';
5879
5934
  ats: Scalars['String']['output'];
5935
+ bailey: Scalars['String']['output'];
5880
5936
  big: Scalars['String']['output'];
5881
5937
  health: Scalars['String']['output'];
5882
5938
  healthProgramsGateway: Scalars['String']['output'];
@@ -6169,6 +6225,7 @@ export type ServiceRequest = Resource & {
6169
6225
  locationReference?: Maybe<Array<Maybe<ServiceRequestLocationReferenceReference>>>;
6170
6226
  meta?: Maybe<Meta>;
6171
6227
  occurrenceDateTime?: Maybe<Scalars['DateTime']['output']>;
6228
+ occurrencePeriod?: Maybe<Period>;
6172
6229
  performer?: Maybe<Array<Maybe<ServiceRequestPerformerReference>>>;
6173
6230
  reasonCode?: Maybe<Array<Maybe<CodeableConcept>>>;
6174
6231
  reasonReference?: Maybe<Array<Maybe<ServiceRequestReasonReferenceReference>>>;
@@ -6238,6 +6295,9 @@ export type ServiceRequestSubjectReference = {
6238
6295
  reference?: Maybe<Scalars['String']['output']>;
6239
6296
  type?: Maybe<Scalars['URI']['output']>;
6240
6297
  };
6298
+ export declare enum SortBy {
6299
+ UpdatedAt = "UPDATED_AT"
6300
+ }
6241
6301
  export declare enum SortField {
6242
6302
  Content = "content",
6243
6303
  Distance = "distance",
@@ -6455,6 +6515,36 @@ export type SubstanceInstance = {
6455
6515
  identifier?: Maybe<Identifier>;
6456
6516
  quantity?: Maybe<Quantity>;
6457
6517
  };
6518
+ export type SupportCategory = {
6519
+ __typename?: 'SupportCategory';
6520
+ label: Scalars['String']['output'];
6521
+ value: Scalars['String']['output'];
6522
+ };
6523
+ export type SupportRequest = {
6524
+ __typename?: 'SupportRequest';
6525
+ category: Scalars['String']['output'];
6526
+ created?: Maybe<Scalars['String']['output']>;
6527
+ id: Scalars['Int']['output'];
6528
+ lastActivity?: Maybe<Scalars['String']['output']>;
6529
+ status: RequestStatus;
6530
+ subject: Scalars['String']['output'];
6531
+ };
6532
+ export type SupportRequestFieldsInput = {
6533
+ category: Scalars['String']['input'];
6534
+ };
6535
+ export type SupportRequestsInput = {
6536
+ page?: InputMaybe<Scalars['Int']['input']>;
6537
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
6538
+ search?: InputMaybe<Scalars['String']['input']>;
6539
+ sortBy?: InputMaybe<SortBy>;
6540
+ sortOrder?: InputMaybe<SortOrderEnum>;
6541
+ status?: InputMaybe<Array<RequestStatus>>;
6542
+ };
6543
+ export type SupportRequestsResponse = PagedQueryResults & {
6544
+ __typename?: 'SupportRequestsResponse';
6545
+ data?: Maybe<Array<Maybe<SupportRequest>>>;
6546
+ paging_info: PagingResults;
6547
+ };
6458
6548
  /** Represents a CodeableConcept with codings and a human-readable text */
6459
6549
  export type SyncErrorCodeableConcept = {
6460
6550
  __typename?: 'SyncErrorCodeableConcept';
@@ -6684,6 +6774,15 @@ export type UpdatedPersonMetadata = {
6684
6774
  __typename?: 'UpdatedPersonMetadata';
6685
6775
  statusCode?: Maybe<Scalars['String']['output']>;
6686
6776
  };
6777
+ export type UploadSupportAttachmentInput = {
6778
+ file: Scalars['String']['input'];
6779
+ fileName: Scalars['String']['input'];
6780
+ };
6781
+ export type UploadSupportAttachmentResponse = {
6782
+ __typename?: 'UploadSupportAttachmentResponse';
6783
+ attachmentId: Scalars['String']['output'];
6784
+ attachments: Array<AttachmentMetadata>;
6785
+ };
6687
6786
  export type UsageContext = {
6688
6787
  __typename?: 'UsageContext';
6689
6788
  code?: Maybe<Coding>;
@@ -116,6 +116,10 @@ export var DataSetsEnum;
116
116
  DataSetsEnum["Connecthub"] = "CONNECTHUB";
117
117
  DataSetsEnum["Nppes"] = "NPPES";
118
118
  })(DataSetsEnum || (DataSetsEnum = {}));
119
+ export var DeletionStatus;
120
+ (function (DeletionStatus) {
121
+ DeletionStatus["Deleted"] = "DELETED";
122
+ })(DeletionStatus || (DeletionStatus = {}));
119
123
  export var EmpiType;
120
124
  (function (EmpiType) {
121
125
  EmpiType["BwellPatient"] = "BWELL_PATIENT";
@@ -339,6 +343,15 @@ export var Questionnaire_Enum_Schema;
339
343
  (function (Questionnaire_Enum_Schema) {
340
344
  Questionnaire_Enum_Schema["QuestionnaireResponse"] = "QuestionnaireResponse";
341
345
  })(Questionnaire_Enum_Schema || (Questionnaire_Enum_Schema = {}));
346
+ export var RequestStatus;
347
+ (function (RequestStatus) {
348
+ RequestStatus["Closed"] = "CLOSED";
349
+ RequestStatus["Hold"] = "HOLD";
350
+ RequestStatus["New"] = "NEW";
351
+ RequestStatus["Open"] = "OPEN";
352
+ RequestStatus["Pending"] = "PENDING";
353
+ RequestStatus["Solved"] = "SOLVED";
354
+ })(RequestStatus || (RequestStatus = {}));
342
355
  export var ResourceType;
343
356
  (function (ResourceType) {
344
357
  ResourceType["AllergyIntolerance"] = "ALLERGY_INTOLERANCE";
@@ -370,6 +383,10 @@ export var SearchResultTypeEnum;
370
383
  SearchResultTypeEnum["Practice"] = "PRACTICE";
371
384
  SearchResultTypeEnum["Practitioner"] = "PRACTITIONER";
372
385
  })(SearchResultTypeEnum || (SearchResultTypeEnum = {}));
386
+ export var SortBy;
387
+ (function (SortBy) {
388
+ SortBy["UpdatedAt"] = "UPDATED_AT";
389
+ })(SortBy || (SortBy = {}));
373
390
  export var SortField;
374
391
  (function (SortField) {
375
392
  SortField["Content"] = "content";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "1.47.0",
3
+ "version": "1.48.0",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",