@icanbwell/bwell-sdk-ts 2.0.0-beta-rc.1765486931 → 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.
- package/dist/__version__.d.ts +1 -1
- package/dist/__version__.js +1 -1
- package/dist/api/base/device/device-request.d.ts +1 -1
- package/dist/api/base/device/device-request.js +1 -1
- package/dist/api/base/user/create-consent-request.js +3 -3
- package/dist/graphql/schema.d.ts +55 -0
- package/dist/models/enums/category-code.d.ts +2 -2
- package/dist/models/enums/category-code.js +10 -10
- package/package.json +1 -1
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -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
|
|
20
|
-
if (data.category === "
|
|
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
|
|
22
|
+
errors.add("organizationId must be provided when category is proaAttestation");
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
package/dist/graphql/schema.d.ts
CHANGED
|
@@ -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']>;
|
|
@@ -43580,6 +43595,7 @@ export type Mutation = {
|
|
|
43580
43595
|
createDataExportDirectDownloadUrl?: Maybe<Scalars['String']['output']>;
|
|
43581
43596
|
createGuestAccessToken: GuestAccessToken;
|
|
43582
43597
|
createHealthLink: DocumentReference;
|
|
43598
|
+
createSupportComment: CreateSupportCommentResponse;
|
|
43583
43599
|
createSupportRequest: CreateSupportRequestResponse;
|
|
43584
43600
|
createVerificationUrl: Scalars['String']['output'];
|
|
43585
43601
|
/**
|
|
@@ -43831,6 +43847,9 @@ export type MutationCreateGuestAccessTokenArgs = {
|
|
|
43831
43847
|
export type MutationCreateHealthLinkArgs = {
|
|
43832
43848
|
input: CreateHealthLinkInput;
|
|
43833
43849
|
};
|
|
43850
|
+
export type MutationCreateSupportCommentArgs = {
|
|
43851
|
+
input: CreateSupportCommentInput;
|
|
43852
|
+
};
|
|
43834
43853
|
export type MutationCreateSupportRequestArgs = {
|
|
43835
43854
|
input: CreateSupportRequestInput;
|
|
43836
43855
|
};
|
|
@@ -52288,6 +52307,7 @@ export type Query = {
|
|
|
52288
52307
|
/** Generate a third party site url used to open login page for the user. */
|
|
52289
52308
|
getOauthUrl: GenerateUrl;
|
|
52290
52309
|
getProcedureGroups: ProcedureGroupQueryResults;
|
|
52310
|
+
getSupportArticles: SupportArticlesResponse;
|
|
52291
52311
|
getSupportCategories: Array<SupportCategory>;
|
|
52292
52312
|
getSupportRequest: SupportRequestDetail;
|
|
52293
52313
|
getSupportRequests: SupportRequestsResponse;
|
|
@@ -53751,6 +53771,9 @@ export type QueryGetOauthUrlArgs = {
|
|
|
53751
53771
|
export type QueryGetProcedureGroupsArgs = {
|
|
53752
53772
|
request?: InputMaybe<ProcedureGroupQueryRequest>;
|
|
53753
53773
|
};
|
|
53774
|
+
export type QueryGetSupportArticlesArgs = {
|
|
53775
|
+
input?: InputMaybe<SupportArticlesInput>;
|
|
53776
|
+
};
|
|
53754
53777
|
export type QueryGetSupportRequestArgs = {
|
|
53755
53778
|
id: Scalars['Int']['input'];
|
|
53756
53779
|
};
|
|
@@ -64561,11 +64584,43 @@ export type SupplyRequestSupplierReference = {
|
|
|
64561
64584
|
resource?: Maybe<SupplyRequestSupplier>;
|
|
64562
64585
|
type?: Maybe<Scalars['URI']['output']>;
|
|
64563
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
|
+
};
|
|
64564
64610
|
export type SupportCategory = {
|
|
64565
64611
|
__typename?: 'SupportCategory';
|
|
64566
64612
|
label: Scalars['String']['output'];
|
|
64567
64613
|
value: Scalars['String']['output'];
|
|
64568
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
|
+
};
|
|
64569
64624
|
export type SupportRequest = {
|
|
64570
64625
|
__typename?: 'SupportRequest';
|
|
64571
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 = "
|
|
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 ["
|
|
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
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
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
|
];
|