@icanbwell/bwell-sdk-ts 1.34.0 → 1.35.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.
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -8,9 +8,10 @@ import { GraphQLManager } from "../graphql-manager/index.js";
|
|
|
8
8
|
import type { GraphQLSdk } from "../graphql-sdk/index.js";
|
|
9
9
|
import { GraphQLGetMedicationDispenseBWellResponseFactory } from "./graphql-get-medication-dispense-bwell-response-factory.js";
|
|
10
10
|
import { GraphQLGetMedicationRequestBWellResponseFactory } from "./graphql-get-medication-request-bwell-response-factory.js";
|
|
11
|
-
export type RenameKey<T,
|
|
12
|
-
[
|
|
11
|
+
export type RenameKey<T, OldKey extends string, NewKey extends string> = T extends unknown[] ? RenameKeyInArray<T, OldKey, NewKey> : T extends object ? {
|
|
12
|
+
[K in keyof T as K extends OldKey ? NewKey : K]: RenameKey<T[K], OldKey, NewKey>;
|
|
13
13
|
} : T;
|
|
14
|
+
export type RenameKeyInArray<T extends unknown[], OldKey extends string, NewKey extends string> = Array<RenameKey<T[number], OldKey, NewKey>>;
|
|
14
15
|
export declare class GraphQLHealthManager extends GraphQLManager implements HealthManager {
|
|
15
16
|
#private;
|
|
16
17
|
constructor(sdk: GraphQLSdk, loggerProvider?: LoggerProvider, medicationRequestResponseFactory?: GraphQLGetMedicationRequestBWellResponseFactory, medicationDispenseResponseFactory?: GraphQLGetMedicationDispenseBWellResponseFactory);
|
package/dist/graphql/schema.d.ts
CHANGED
|
@@ -1651,7 +1651,7 @@ export type Expression = {
|
|
|
1651
1651
|
export type ExpressionInput = {
|
|
1652
1652
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
1653
1653
|
expression?: InputMaybe<Scalars['String']['input']>;
|
|
1654
|
-
extension?: InputMaybe<Array<InputMaybe<
|
|
1654
|
+
extension?: InputMaybe<Array<InputMaybe<FhirExtensionInput>>>;
|
|
1655
1655
|
id?: InputMaybe<Scalars['String']['input']>;
|
|
1656
1656
|
language?: InputMaybe<Scalars['Code']['input']>;
|
|
1657
1657
|
name?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -1757,12 +1757,33 @@ export type FhirExtension = {
|
|
|
1757
1757
|
/** None */
|
|
1758
1758
|
valueUri?: Maybe<Scalars['URI']['output']>;
|
|
1759
1759
|
};
|
|
1760
|
+
export type FhirExtensionInput = {
|
|
1761
|
+
extension?: InputMaybe<Array<InputMaybe<FhirExtensionInput>>>;
|
|
1762
|
+
id?: InputMaybe<Scalars['String']['input']>;
|
|
1763
|
+
url?: InputMaybe<Scalars['String']['input']>;
|
|
1764
|
+
valueBoolean?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1765
|
+
valueCode?: InputMaybe<Scalars['Code']['input']>;
|
|
1766
|
+
valueCodeableConcept?: InputMaybe<CodeableConceptInput>;
|
|
1767
|
+
valueDateTime?: InputMaybe<Scalars['DateTime']['input']>;
|
|
1768
|
+
valueExpression?: InputMaybe<ExpressionInput>;
|
|
1769
|
+
valueInteger?: InputMaybe<Scalars['Int']['input']>;
|
|
1770
|
+
valueReference?: InputMaybe<FhirReferenceInput>;
|
|
1771
|
+
valueString?: InputMaybe<Scalars['String']['input']>;
|
|
1772
|
+
valueUri?: InputMaybe<Scalars['URI']['input']>;
|
|
1773
|
+
};
|
|
1760
1774
|
export type FhirFormQuestionnaire = {
|
|
1761
1775
|
__typename?: 'FhirFormQuestionnaire';
|
|
1762
1776
|
model?: Maybe<Model>;
|
|
1763
1777
|
schema?: Maybe<Schema>;
|
|
1764
1778
|
uiSchema?: Maybe<Scalars['UiSchema']['output']>;
|
|
1765
1779
|
};
|
|
1780
|
+
export type FhirReferenceInput = {
|
|
1781
|
+
display?: InputMaybe<Scalars['String']['input']>;
|
|
1782
|
+
extension?: InputMaybe<Array<InputMaybe<FhirExtensionInput>>>;
|
|
1783
|
+
identifier?: InputMaybe<IdentifierInput>;
|
|
1784
|
+
reference?: InputMaybe<Scalars['String']['input']>;
|
|
1785
|
+
type?: InputMaybe<Scalars['URI']['input']>;
|
|
1786
|
+
};
|
|
1766
1787
|
export declare enum FilterField {
|
|
1767
1788
|
Characteristic = "characteristic",
|
|
1768
1789
|
Communication = "communication",
|
|
@@ -4535,6 +4556,7 @@ export type Questionnaire = Resource & {
|
|
|
4535
4556
|
status?: Maybe<Scalars['Code']['output']>;
|
|
4536
4557
|
title?: Maybe<Scalars['String']['output']>;
|
|
4537
4558
|
url?: Maybe<Scalars['URI']['output']>;
|
|
4559
|
+
useContext?: Maybe<Array<Maybe<UsageContext>>>;
|
|
4538
4560
|
version?: Maybe<Scalars['String']['output']>;
|
|
4539
4561
|
};
|
|
4540
4562
|
export type QuestionnaireAnswerOption = {
|
|
@@ -4686,21 +4708,21 @@ export type QuestionnaireResponseAnswerValueReferenceReference = {
|
|
|
4686
4708
|
type?: Maybe<Scalars['URI']['output']>;
|
|
4687
4709
|
};
|
|
4688
4710
|
export type QuestionnaireResponseInput = {
|
|
4689
|
-
author?: InputMaybe<
|
|
4711
|
+
author?: InputMaybe<FhirReferenceInput>;
|
|
4690
4712
|
authored?: InputMaybe<Scalars['DateTime']['input']>;
|
|
4691
|
-
basedOn?: InputMaybe<Array<InputMaybe<
|
|
4713
|
+
basedOn?: InputMaybe<Array<InputMaybe<FhirReferenceInput>>>;
|
|
4692
4714
|
contained?: InputMaybe<Array<InputMaybe<Scalars['JSON']['input']>>>;
|
|
4693
|
-
encounter?: InputMaybe<
|
|
4715
|
+
encounter?: InputMaybe<FhirReferenceInput>;
|
|
4694
4716
|
id?: InputMaybe<Scalars['String']['input']>;
|
|
4695
4717
|
identifier?: InputMaybe<Array<InputMaybe<IdentifierInput>>>;
|
|
4696
4718
|
item?: InputMaybe<Array<InputMaybe<QuestionnaireResponseItemInput>>>;
|
|
4697
4719
|
meta?: InputMaybe<MetaInput>;
|
|
4698
|
-
partOf?: InputMaybe<Array<InputMaybe<
|
|
4720
|
+
partOf?: InputMaybe<Array<InputMaybe<FhirReferenceInput>>>;
|
|
4699
4721
|
questionnaire: Scalars['URI']['input'];
|
|
4700
4722
|
resourceType: Scalars['String']['input'];
|
|
4701
|
-
source?: InputMaybe<
|
|
4723
|
+
source?: InputMaybe<FhirReferenceInput>;
|
|
4702
4724
|
status: Scalars['Code']['input'];
|
|
4703
|
-
subject?: InputMaybe<
|
|
4725
|
+
subject?: InputMaybe<FhirReferenceInput>;
|
|
4704
4726
|
};
|
|
4705
4727
|
export type QuestionnaireResponseItem = {
|
|
4706
4728
|
__typename?: 'QuestionnaireResponseItem';
|
|
@@ -4722,7 +4744,7 @@ export type QuestionnaireResponseItemAnswerInput = {
|
|
|
4722
4744
|
valueDecimal?: InputMaybe<Scalars['Float']['input']>;
|
|
4723
4745
|
valueInteger?: InputMaybe<Scalars['Int']['input']>;
|
|
4724
4746
|
valueQuantity?: InputMaybe<QuantityInput>;
|
|
4725
|
-
valueReference?: InputMaybe<
|
|
4747
|
+
valueReference?: InputMaybe<FhirReferenceInput>;
|
|
4726
4748
|
valueString?: InputMaybe<Scalars['String']['input']>;
|
|
4727
4749
|
valueUri?: InputMaybe<Scalars['URI']['input']>;
|
|
4728
4750
|
};
|
|
@@ -4802,6 +4824,7 @@ export type Reference = {
|
|
|
4802
4824
|
export type ReferenceInput = {
|
|
4803
4825
|
display?: InputMaybe<Scalars['String']['input']>;
|
|
4804
4826
|
extension?: InputMaybe<Array<InputMaybe<ExtensionInput>>>;
|
|
4827
|
+
id?: InputMaybe<Scalars['String']['input']>;
|
|
4805
4828
|
identifier?: InputMaybe<IdentifierInput>;
|
|
4806
4829
|
reference?: InputMaybe<Scalars['String']['input']>;
|
|
4807
4830
|
type?: InputMaybe<Scalars['URI']['input']>;
|
|
@@ -5530,6 +5553,21 @@ export type UpdatedPersonMetadata = {
|
|
|
5530
5553
|
__typename?: 'UpdatedPersonMetadata';
|
|
5531
5554
|
statusCode?: Maybe<Scalars['String']['output']>;
|
|
5532
5555
|
};
|
|
5556
|
+
export type UsageContext = {
|
|
5557
|
+
__typename?: 'UsageContext';
|
|
5558
|
+
code?: Maybe<Coding>;
|
|
5559
|
+
extension?: Maybe<Array<Maybe<FhirExtension>>>;
|
|
5560
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
5561
|
+
valueReference?: Maybe<UsageContextValueReferenceReference>;
|
|
5562
|
+
};
|
|
5563
|
+
export type UsageContextValueReferenceReference = {
|
|
5564
|
+
__typename?: 'UsageContextValueReferenceReference';
|
|
5565
|
+
display?: Maybe<Scalars['String']['output']>;
|
|
5566
|
+
extension?: Maybe<Array<Maybe<FhirExtension>>>;
|
|
5567
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
5568
|
+
identifier?: Maybe<Identifier>;
|
|
5569
|
+
reference?: Maybe<Scalars['String']['output']>;
|
|
5570
|
+
};
|
|
5533
5571
|
export type User = {
|
|
5534
5572
|
app_id?: InputMaybe<Scalars['String']['input']>;
|
|
5535
5573
|
email?: InputMaybe<Scalars['String']['input']>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icanbwell/bwell-sdk-ts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.35.0",
|
|
4
4
|
"description": "b.well TypeScript SDK",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"prettier": "prettier",
|
|
36
36
|
"prepublishOnly": "npm run build",
|
|
37
37
|
"test": "jest",
|
|
38
|
+
"test:watch": "jest --watch",
|
|
38
39
|
"test:dev": "jest --config=./jest.dev.config.js",
|
|
39
40
|
"pretest:ci": "npm run generate",
|
|
40
41
|
"test:ci": "npm run test -- --runInBand --verbose --coverage"
|