@icanbwell/bwell-sdk-ts 1.90.0 → 1.91.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.
@@ -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 = "1.90.0";
4
+ export declare const VERSION = "1.91.0";
@@ -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 = "1.90.0";
4
+ export const VERSION = "1.91.0";
@@ -20,6 +20,8 @@ export declare const EMPTY_INTEGRATION_TYPE_ARRAY_ERROR = "integrationType array
20
20
  * Error message for when the integration type array contains blank strings.
21
21
  */
22
22
  export declare const BLANK_INTEGRATION_TYPE_ERROR = "integrationType array cannot contain blank or empty strings";
23
+ export declare const EMPTY_STATUS_ARRAY_ERROR = "status array cannot be empty";
24
+ export declare const BLANK_STATUS_ERROR = "status array cannot contain blank or empty strings";
23
25
  /**
24
26
  * Input object for fetching a data source by connection id.
25
27
  */
@@ -48,6 +50,7 @@ export type ConnectionRequestData = DataSourceRequestInput & {
48
50
  */
49
51
  export type MemberConnectionsRequestInput = {
50
52
  integrationType?: string[] | null;
53
+ status?: string[] | null;
51
54
  };
52
55
  /**
53
56
  * Validator for data source requests. Ensures that the connectionId is defined, not null and not empty.
@@ -26,6 +26,8 @@ export const EMPTY_INTEGRATION_TYPE_ARRAY_ERROR = "integrationType array cannot
26
26
  * Error message for when the integration type array contains blank strings.
27
27
  */
28
28
  export const BLANK_INTEGRATION_TYPE_ERROR = "integrationType array cannot contain blank or empty strings";
29
+ export const EMPTY_STATUS_ARRAY_ERROR = "status array cannot be empty";
30
+ export const BLANK_STATUS_ERROR = "status array cannot contain blank or empty strings";
29
31
  /**
30
32
  * Validator for data source requests. Ensures that the connectionId is defined, not null and not empty.
31
33
  */
@@ -106,6 +108,14 @@ export class MemberConnectionsRequest extends ValidationRequest {
106
108
  errors.add(BLANK_INTEGRATION_TYPE_ERROR);
107
109
  }
108
110
  }
111
+ if (data.status !== undefined && data.status !== null) {
112
+ if (data.status.length === 0) {
113
+ errors.add(EMPTY_STATUS_ARRAY_ERROR);
114
+ }
115
+ if (data.status.some((s) => s === "" || s.trim() === "")) {
116
+ errors.add(BLANK_STATUS_ERROR);
117
+ }
118
+ }
109
119
  },
110
120
  };
111
121
  }
@@ -35,7 +35,7 @@ export class GraphQLConnectionManager extends GraphQLManager {
35
35
  }
36
36
  getMemberConnections(request) {
37
37
  return __awaiter(this, void 0, void 0, function* () {
38
- var _a;
38
+ var _a, _b;
39
39
  if (request) {
40
40
  const validationResult = this.validateRequest(request);
41
41
  if (validationResult.failure()) {
@@ -46,6 +46,7 @@ export class GraphQLConnectionManager extends GraphQLManager {
46
46
  const variables = request ? request.data() : {};
47
47
  const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLConnectionManager_sdk, "f").getMemberConnections({
48
48
  integrationType: (_a = variables.integrationType) !== null && _a !== void 0 ? _a : null,
49
+ status: (_b = variables.status) !== null && _b !== void 0 ? _b : null,
49
50
  }));
50
51
  __classPrivateFieldGet(this, _GraphQLConnectionManager_logger, "f").verbose("getMemberConnections complete");
51
52
  if (result.hasError()) {
@@ -101,7 +101,7 @@ export declare const CreateConnectionDocument = "\n mutation createConnection
101
101
  export declare const DeleteConnectionDocument = "\n mutation deleteConnection($connectionId: String!) {\n deleteConnection(connectionId: $connectionId) {\n status\n statusUpdated\n }\n}\n ";
102
102
  export declare const DisconnectConnectionDocument = "\n mutation disconnectConnection($connectionId: String!) {\n disconnectConnection(connectionId: $connectionId) {\n status\n statusUpdated\n }\n}\n ";
103
103
  export declare const GetDataSourceDocument = "\n query getDataSource($connectionId: String!) {\n getDataSource(connectionId: $connectionId) {\n id\n name\n category\n type\n isDirect\n }\n}\n ";
104
- export declare const GetMemberConnectionsDocument = "\n query getMemberConnections($integrationType: [String!] = null) {\n getMemberConnections(integrationType: $integrationType) {\n id\n name\n category\n type\n status\n syncStatus\n statusUpdated\n lastSynced\n created\n isDirect\n integrationType\n }\n subscription_subscription {\n entry {\n resource {\n service_slug\n subscriptionStatus {\n error {\n ...CodeableConceptFields\n }\n extension {\n id\n url\n valueString\n }\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n ";
104
+ export declare const GetMemberConnectionsDocument = "\n query getMemberConnections($integrationType: [String!] = null, $status: [String!] = null) {\n getMemberConnections(integrationType: $integrationType, status: $status) {\n id\n name\n category\n type\n status\n syncStatus\n statusUpdated\n lastSynced\n created\n isDirect\n integrationType\n }\n subscription_subscription {\n entry {\n resource {\n service_slug\n subscriptionStatus {\n error {\n ...CodeableConceptFields\n }\n extension {\n id\n url\n valueString\n }\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n ";
105
105
  export declare const GetOauthUrlDocument = "\n query getOauthUrl($connectionId: String!) {\n getOauthUrl(connectionId: $connectionId) {\n redirectUrl\n }\n}\n ";
106
106
  export declare const AcceptDataSharingInvitationDocument = "\n mutation AcceptDataSharingInvitation($code: String!) {\n acceptDataSharingInvitation(input: {code: $code}) {\n resourceType\n id\n issue {\n severity\n code\n details {\n text\n coding {\n system\n code\n display\n }\n }\n }\n }\n}\n ";
107
107
  export declare const GetDataSharingAccessDocument = "\n query GetDataSharingAccess {\n dataSharingAccess {\n resourceType\n type\n total\n entry {\n fullUrl\n resource {\n ...DataSharingConsentFields\n }\n }\n }\n}\n \n fragment DataSharingConsentFields on Consent {\n id\n resourceType\n status\n scope {\n ...CodeableConceptFields\n }\n category {\n ...CodeableConceptFields\n }\n patient {\n reference\n type\n identifier {\n ...IdentifierFields\n }\n display\n resource {\n id\n name {\n ...HumanNameFields\n }\n telecom {\n ...ContactPointFields\n }\n }\n }\n dateTime\n performer {\n reference\n type\n identifier {\n ...IdentifierFields\n }\n display\n }\n provision {\n type\n period {\n ...PeriodFields\n }\n dataPeriod {\n ...PeriodFields\n }\n actor {\n ...DataSharingConsentActorFields\n }\n provision {\n type\n period {\n ...PeriodFields\n }\n dataPeriod {\n ...PeriodFields\n }\n actor {\n ...DataSharingConsentActorFields\n }\n }\n }\n sourceReference {\n reference\n type\n identifier {\n ...IdentifierFields\n }\n display\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment ContactPointFields on ContactPoint {\n id\n system\n value\n use\n rank\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment DataSharingConsentActorFields on ConsentActor {\n role {\n ...CodeableConceptFields\n }\n reference {\n reference\n type\n identifier {\n ...IdentifierFields\n }\n display\n resource {\n ... on RelatedPerson {\n __typename\n ...DataSharingRelatedPersonFields\n }\n ... on Patient {\n __typename\n patientId: id\n name {\n ...HumanNameFields\n }\n telecom {\n ...ContactPointFields\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment DataSharingRelatedPersonFields on RelatedPerson {\n resourceType\n id\n active\n name {\n ...HumanNameFields\n }\n relationship {\n ...CodeableConceptFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment ContactPointFields on ContactPoint {\n id\n system\n value\n use\n rank\n}\n ";
@@ -2010,8 +2010,8 @@ export const GetDataSourceDocument = `
2010
2010
  }
2011
2011
  `;
2012
2012
  export const GetMemberConnectionsDocument = `
2013
- query getMemberConnections($integrationType: [String!] = null) {
2014
- getMemberConnections(integrationType: $integrationType) {
2013
+ query getMemberConnections($integrationType: [String!] = null, $status: [String!] = null) {
2014
+ getMemberConnections(integrationType: $integrationType, status: $status) {
2015
2015
  id
2016
2016
  name
2017
2017
  category
@@ -9083,6 +9083,7 @@ export type GetDataSourceQueryResults = {
9083
9083
  };
9084
9084
  export type GetMemberConnectionsQueryVariables = Types.Exact<{
9085
9085
  integrationType: Types.InputMaybe<Array<Types.Scalars['String']['input']> | Types.Scalars['String']['input']>;
9086
+ status: Types.InputMaybe<Array<Types.Scalars['String']['input']> | Types.Scalars['String']['input']>;
9086
9087
  }>;
9087
9088
  export type GetMemberConnectionsQueryResults = {
9088
9089
  getMemberConnections: Array<{
@@ -7217,6 +7217,8 @@ export declare enum SortFieldEnum {
7217
7217
  NextAvailable = "NEXT_AVAILABLE",
7218
7218
  /** Sort to get providers/practices that support online booking first/last */
7219
7219
  OnlineBookingAvailable = "ONLINE_BOOKING_AVAILABLE",
7220
+ /** Sort by rating of the health resource */
7221
+ Rating = "RATING",
7220
7222
  /** Sort by relevance to search terms */
7221
7223
  Relevance = "RELEVANCE"
7222
7224
  }
@@ -506,6 +506,8 @@ export var SortFieldEnum;
506
506
  SortFieldEnum["NextAvailable"] = "NEXT_AVAILABLE";
507
507
  /** Sort to get providers/practices that support online booking first/last */
508
508
  SortFieldEnum["OnlineBookingAvailable"] = "ONLINE_BOOKING_AVAILABLE";
509
+ /** Sort by rating of the health resource */
510
+ SortFieldEnum["Rating"] = "RATING";
509
511
  /** Sort by relevance to search terms */
510
512
  SortFieldEnum["Relevance"] = "RELEVANCE";
511
513
  })(SortFieldEnum || (SortFieldEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "1.90.0",
3
+ "version": "1.91.0",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",