@icanbwell/bwell-sdk-ts 1.33.0-rc.1751038829 → 1.33.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.
@@ -482,7 +482,6 @@ export type BootstrapConfiguration = {
482
482
  clientSlug: Scalars['String']['output'];
483
483
  embeddableConfiguration: EmbeddableConfiguration;
484
484
  environment: Scalars['String']['output'];
485
- externalMedicationTaskActivityIds: Array<Scalars['String']['output']>;
486
485
  featureFlagConfiguration: FeatureFlagConfiguration;
487
486
  frontendEnvironment: FrontendEnvironment;
488
487
  googleGeo: GoogleGeo;
@@ -1126,7 +1125,7 @@ export type ConsentVerificationVerifiedWithReference = {
1126
1125
  type?: Maybe<Scalars['URI']['output']>;
1127
1126
  };
1128
1127
  export type ContactField = {
1129
- use: ContactUseType;
1128
+ use: Scalars['String']['input'];
1130
1129
  value: Scalars['String']['input'];
1131
1130
  };
1132
1131
  export type ContactPoint = {
@@ -1151,12 +1150,6 @@ export type ContactPointInput = {
1151
1150
  /** Can define enum */
1152
1151
  value?: InputMaybe<Scalars['String']['input']>;
1153
1152
  };
1154
- /** Contact.use options */
1155
- export declare enum ContactUseType {
1156
- Home = "home",
1157
- Mobile = "mobile",
1158
- Work = "work"
1159
- }
1160
1153
  /** Supported ISO 4217 CurrencyCodes */
1161
1154
  export declare enum CurrencyCode {
1162
1155
  Usd = "USD"
@@ -1821,13 +1814,6 @@ export declare enum GenderEnum {
1821
1814
  Other = "OTHER",
1822
1815
  Unknown = "UNKNOWN"
1823
1816
  }
1824
- /** Gender options */
1825
- export declare enum GenderType {
1826
- Female = "female",
1827
- Male = "male",
1828
- Other = "other",
1829
- Unknown = "unknown"
1830
- }
1831
1817
  /** Generate an oauth url */
1832
1818
  export type GenerateUrl = {
1833
1819
  __typename?: 'GenerateUrl';
@@ -1846,7 +1832,7 @@ export type GetTokenFromDemographicsInput = {
1846
1832
  address: AddressField;
1847
1833
  birthDate: Scalars['String']['input'];
1848
1834
  email: Scalars['String']['input'];
1849
- gender: GenderType;
1835
+ gender: Scalars['String']['input'];
1850
1836
  mobile: ContactField;
1851
1837
  name: NamedField;
1852
1838
  userIdentifier: Scalars['String']['input'];
@@ -77,13 +77,6 @@ export var ConsentStatus;
77
77
  ConsentStatus["Proposed"] = "PROPOSED";
78
78
  ConsentStatus["Rejected"] = "REJECTED";
79
79
  })(ConsentStatus || (ConsentStatus = {}));
80
- /** Contact.use options */
81
- export var ContactUseType;
82
- (function (ContactUseType) {
83
- ContactUseType["Home"] = "home";
84
- ContactUseType["Mobile"] = "mobile";
85
- ContactUseType["Work"] = "work";
86
- })(ContactUseType || (ContactUseType = {}));
87
80
  /** Supported ISO 4217 CurrencyCodes */
88
81
  export var CurrencyCode;
89
82
  (function (CurrencyCode) {
@@ -205,14 +198,6 @@ export var GenderEnum;
205
198
  GenderEnum["Other"] = "OTHER";
206
199
  GenderEnum["Unknown"] = "UNKNOWN";
207
200
  })(GenderEnum || (GenderEnum = {}));
208
- /** Gender options */
209
- export var GenderType;
210
- (function (GenderType) {
211
- GenderType["Female"] = "female";
212
- GenderType["Male"] = "male";
213
- GenderType["Other"] = "other";
214
- GenderType["Unknown"] = "unknown";
215
- })(GenderType || (GenderType = {}));
216
201
  export var HealthSummaryCategory;
217
202
  (function (HealthSummaryCategory) {
218
203
  HealthSummaryCategory["AllergyIntolerance"] = "ALLERGY_INTOLERANCE";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "1.33.0-rc.1751038829",
3
+ "version": "1.33.0",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -1,10 +0,0 @@
1
- import { GetMedicationDispenseQueryResults } from "../../../graphql/operations/types.js";
2
- import { BWellQueryResult, BWellQueryResultFactory } from "../../../results/index.js";
3
- import { RenameKey } from "./graphql-health-manager.js";
4
- export type MedicationDispenseResultsType = RenameKey<GetMedicationDispenseQueryResults["getMedicationDispense"], "itemReferenceResource", "resource">;
5
- /**
6
- * Factory to map the GraphQL GetMedicationDispenseResults object to a BWellQueryResult using the expected shape
7
- */
8
- export declare class GraphQLGetMedicationDispenseBWellResponseFactory implements BWellQueryResultFactory<BWellQueryResult<GetMedicationDispenseQueryResults>, BWellQueryResult<MedicationDispenseResultsType>> {
9
- create(queryResult: BWellQueryResult<GetMedicationDispenseQueryResults>): BWellQueryResult<MedicationDispenseResultsType>;
10
- }
@@ -1,35 +0,0 @@
1
- import { BWellQueryResult, } from "../../../results/index.js";
2
- /**
3
- * Factory to map the GraphQL GetMedicationDispenseResults object to a BWellQueryResult using the expected shape
4
- */
5
- export class GraphQLGetMedicationDispenseBWellResponseFactory {
6
- create(queryResult) {
7
- var _a;
8
- // Extract data from query result
9
- const resultData = (_a = queryResult.data) === null || _a === void 0 ? void 0 : _a.getMedicationDispense;
10
- if (!resultData) {
11
- return new BWellQueryResult(undefined, queryResult.error);
12
- }
13
- // Augment result to conform to expected data type
14
- const augmentedResult = Object.assign(Object.assign({}, resultData), ((resultData === null || resultData === void 0 ? void 0 : resultData.resources) && {
15
- resources: resultData === null || resultData === void 0 ? void 0 : resultData.resources.map((resource) => {
16
- var _a, _b, _c, _d, _e, _f, _g;
17
- return (Object.assign(Object.assign({}, resource), (resource.medication && {
18
- medication: Object.assign(Object.assign({}, resource.medication), (((_a = resource.medication) === null || _a === void 0 ? void 0 : _a.resource) && {
19
- resource: Object.assign(Object.assign({}, (_b = resource.medication) === null || _b === void 0 ? void 0 : _b.resource), (((_d = (_c = resource.medication) === null || _c === void 0 ? void 0 : _c.resource) === null || _d === void 0 ? void 0 : _d.ingredient) && {
20
- ingredient: (_g = (_f = (_e = resource.medication) === null || _e === void 0 ? void 0 : _e.resource) === null || _f === void 0 ? void 0 : _f.ingredient) === null || _g === void 0 ? void 0 : _g.map((ingredient) => {
21
- var _a, _b;
22
- return (Object.assign(Object.assign({}, ingredient), (((_a = ingredient === null || ingredient === void 0 ? void 0 : ingredient.itemReference) === null || _a === void 0 ? void 0 : _a.itemReferenceResource) && {
23
- itemReference: {
24
- resource: (_b = ingredient === null || ingredient === void 0 ? void 0 : ingredient.itemReference) === null || _b === void 0 ? void 0 : _b.itemReferenceResource,
25
- },
26
- })));
27
- }),
28
- })),
29
- })),
30
- })));
31
- }),
32
- }));
33
- return new BWellQueryResult(augmentedResult, queryResult.error);
34
- }
35
- }
@@ -1,10 +0,0 @@
1
- import { GetMedicationRequestQueryResults } from "../../../graphql/operations/types.js";
2
- import { BWellQueryResult, BWellQueryResultFactory } from "../../../results/index.js";
3
- import { RenameKey } from "./graphql-health-manager.js";
4
- export type MedicationRequestResultsType = RenameKey<GetMedicationRequestQueryResults["getMedicationRequest"], "itemReferenceResource", "resource">;
5
- /**
6
- * Factory to map the GraphQL GetMedicationRequestResults object to a BWellQueryResult using the expected shape
7
- */
8
- export declare class GraphQLGetMedicationRequestBWellResponseFactory implements BWellQueryResultFactory<BWellQueryResult<GetMedicationRequestQueryResults>, BWellQueryResult<MedicationRequestResultsType>> {
9
- create(queryResult: BWellQueryResult<GetMedicationRequestQueryResults>): BWellQueryResult<MedicationRequestResultsType>;
10
- }
@@ -1,35 +0,0 @@
1
- import { BWellQueryResult, } from "../../../results/index.js";
2
- /**
3
- * Factory to map the GraphQL GetMedicationRequestResults object to a BWellQueryResult using the expected shape
4
- */
5
- export class GraphQLGetMedicationRequestBWellResponseFactory {
6
- create(queryResult) {
7
- var _a;
8
- // Extract data from query result
9
- const resultData = (_a = queryResult.data) === null || _a === void 0 ? void 0 : _a.getMedicationRequest;
10
- // Augment result to conform to expected data type
11
- if (!resultData) {
12
- return new BWellQueryResult(undefined, queryResult.error);
13
- }
14
- const augmentedResult = Object.assign(Object.assign({}, resultData), ((resultData === null || resultData === void 0 ? void 0 : resultData.resources) && {
15
- resources: resultData === null || resultData === void 0 ? void 0 : resultData.resources.map((resource) => {
16
- var _a, _b, _c, _d, _e, _f, _g;
17
- return (Object.assign(Object.assign({}, resource), (resource.medication && {
18
- medication: Object.assign(Object.assign({}, resource.medication), (((_a = resource.medication) === null || _a === void 0 ? void 0 : _a.resource) && {
19
- resource: Object.assign(Object.assign({}, (_b = resource.medication) === null || _b === void 0 ? void 0 : _b.resource), (((_d = (_c = resource.medication) === null || _c === void 0 ? void 0 : _c.resource) === null || _d === void 0 ? void 0 : _d.ingredient) && {
20
- ingredient: (_g = (_f = (_e = resource.medication) === null || _e === void 0 ? void 0 : _e.resource) === null || _f === void 0 ? void 0 : _f.ingredient) === null || _g === void 0 ? void 0 : _g.map((ingredient) => {
21
- var _a, _b;
22
- return (Object.assign(Object.assign({}, ingredient), (((_a = ingredient === null || ingredient === void 0 ? void 0 : ingredient.itemReference) === null || _a === void 0 ? void 0 : _a.itemReferenceResource) && {
23
- itemReference: {
24
- resource: (_b = ingredient === null || ingredient === void 0 ? void 0 : ingredient.itemReference) === null || _b === void 0 ? void 0 : _b.itemReferenceResource,
25
- },
26
- })));
27
- }),
28
- })),
29
- })),
30
- })));
31
- }),
32
- }));
33
- return new BWellQueryResult(augmentedResult, queryResult.error);
34
- }
35
- }