@icanbwell/bwell-sdk-ts 1.14.0 → 1.15.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 +1 -1
- package/dist/__version__.js +1 -1
- package/dist/api/base/user/create-verification-url-request.d.ts +4 -7
- package/dist/api/base/user/create-verification-url-request.js +2 -14
- package/dist/api/graphql-api/user/create-verification-url-request-factory.js +3 -1
- package/dist/api/graphql-api/user/graphql-user-manager.js +0 -4
- package/dist/graphql/operations/index.d.ts +2 -2
- package/dist/graphql/operations/index.js +5 -2
- package/dist/graphql/operations/types.d.ts +2 -1
- package/dist/graphql/schema.d.ts +2 -1
- package/package.json +1 -1
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseRequest } from "../../../requests/index.js";
|
|
2
2
|
export type CreateVerificationUrlRequestInput = {
|
|
3
|
-
callbackUrl
|
|
3
|
+
callbackUrl?: string;
|
|
4
|
+
includeAttributeMatchingCheck?: boolean;
|
|
4
5
|
};
|
|
5
|
-
export declare class
|
|
6
|
-
validate(data: CreateVerificationUrlRequestInput, errors: ErrorsCollector): void;
|
|
7
|
-
}
|
|
8
|
-
export declare class CreateVerificationUrlRequest extends ValidationRequest<CreateVerificationUrlRequestInput> {
|
|
9
|
-
protected validator: Validator<CreateVerificationUrlRequestInput>;
|
|
6
|
+
export declare class CreateVerificationUrlRequest extends BaseRequest<CreateVerificationUrlRequestInput> {
|
|
10
7
|
}
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export class CreateVerificationUrlRequestValidator {
|
|
4
|
-
validate(data, errors) {
|
|
5
|
-
if (isNullOrUndefinedOrEmptyString(data.callbackUrl)) {
|
|
6
|
-
errors.add("callbackUrl cannot be empty");
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export class CreateVerificationUrlRequest extends ValidationRequest {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments);
|
|
13
|
-
this.validator = new CreateVerificationUrlRequestValidator();
|
|
14
|
-
}
|
|
1
|
+
import { BaseRequest } from "../../../requests/index.js";
|
|
2
|
+
export class CreateVerificationUrlRequest extends BaseRequest {
|
|
15
3
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export class CreateVerificationUrlRequestFactory {
|
|
2
2
|
create(request) {
|
|
3
|
+
var _a, _b;
|
|
3
4
|
const input = request.data();
|
|
4
5
|
return {
|
|
5
|
-
callbackURL: input.callbackUrl,
|
|
6
|
+
callbackURL: (_a = input.callbackUrl) !== null && _a !== void 0 ? _a : null,
|
|
7
|
+
includeAttributeMatchingCheck: (_b = input.includeAttributeMatchingCheck) !== null && _b !== void 0 ? _b : null,
|
|
6
8
|
};
|
|
7
9
|
}
|
|
8
10
|
}
|
|
@@ -140,10 +140,6 @@ export class GraphQLUserManager extends GraphQLManager {
|
|
|
140
140
|
}
|
|
141
141
|
createVerificationUrl(request) {
|
|
142
142
|
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
-
const validationResult = request.validate();
|
|
144
|
-
if (validationResult.failure()) {
|
|
145
|
-
return validationResult.intoFailure();
|
|
146
|
-
}
|
|
147
143
|
__classPrivateFieldGet(this, _GraphQLUserManager_logger, "f").verbose("calling createVerificationUrl mutation...");
|
|
148
144
|
const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLUserManager_sdk, "f").CreateVerificationUrl(__classPrivateFieldGet(this, _GraphQLUserManager_createVerificationUrlRequestFactory, "f").create(request)));
|
|
149
145
|
__classPrivateFieldGet(this, _GraphQLUserManager_logger, "f").verbose("createVerificationUrl complete");
|
|
@@ -100,7 +100,7 @@ export declare const ProviderSearchDocument = "\n query providerSearch($clien
|
|
|
100
100
|
export declare const RequestConnectionDocument = "\n mutation requestConnection($city: String, $institution: String, $provider: String, $state: String) {\n requestConnection(\n city: $city\n institution: $institution\n provider: $provider\n state: $state\n ) {\n resourceType\n issue {\n severity\n code\n details {\n text\n }\n }\n }\n}\n ";
|
|
101
101
|
export declare const CreateConsentDocument = "\n mutation createConsent($consentInput: ConsentInput!) {\n createConsent(consentInput: $consentInput) {\n id\n meta {\n source\n versionId\n lastUpdated\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n }\n status\n scope {\n coding {\n code\n system\n display\n }\n text\n }\n category {\n coding {\n code\n system\n display\n }\n text\n }\n patient {\n reference\n identifier {\n id\n system\n value\n }\n type\n display\n }\n dateTime\n performer {\n reference\n identifier {\n id\n system\n value\n }\n type\n display\n }\n organization {\n reference\n identifier {\n id\n system\n value\n }\n type\n display\n }\n policy {\n authority\n uri\n }\n policyRule {\n coding {\n code\n system\n display\n }\n text\n }\n provision {\n type\n period {\n ...PeriodFields\n }\n }\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n ";
|
|
102
102
|
export declare const CreateDataExportDirectDownloadUrlDocument = "\n mutation CreateDataExportDirectDownloadUrl($exportId: String!, $password: String!) {\n createDataExportDirectDownloadUrl(exportId: $exportId, password: $password)\n}\n ";
|
|
103
|
-
export declare const CreateVerificationUrlDocument = "\n mutation CreateVerificationUrl($callbackURL: String
|
|
103
|
+
export declare const CreateVerificationUrlDocument = "\n mutation CreateVerificationUrl($callbackURL: String, $includeAttributeMatchingCheck: Boolean) {\n createVerificationUrl(\n callbackURL: $callbackURL\n includeAttributeMatchingCheck: $includeAttributeMatchingCheck\n )\n}\n ";
|
|
104
104
|
export declare const DeleteDocument = "\n mutation delete {\n updateUserAccountStatus(operation: IMMEDIATE_EXECUTION) {\n resourceType\n issue {\n code\n severity\n details {\n text\n }\n }\n }\n}\n ";
|
|
105
105
|
export declare const GetProfileDocument = "\n query getProfile {\n userProfile {\n id\n address {\n line\n city\n state\n postalCode\n }\n telecom {\n system\n value\n use\n }\n gender\n birthDate\n name {\n family\n given\n }\n language\n }\n}\n ";
|
|
106
106
|
export declare const SearchConsentDocument = "\n query searchConsent($categoryCode: CategoryCode) {\n search(params: {category: $categoryCode}) {\n resourceType\n id\n meta {\n ...MetaFields\n }\n status\n scope {\n text\n coding {\n code\n system\n display\n }\n }\n category {\n text\n coding {\n code\n system\n display\n }\n }\n patient {\n reference\n }\n provision {\n type\n }\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n ";
|
|
@@ -437,7 +437,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
437
437
|
headers: Headers;
|
|
438
438
|
status: number;
|
|
439
439
|
}>;
|
|
440
|
-
CreateVerificationUrl(variables
|
|
440
|
+
CreateVerificationUrl(variables?: Types.CreateVerificationUrlMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
441
441
|
data: Types.CreateVerificationUrlMutationResults;
|
|
442
442
|
errors?: GraphQLError[];
|
|
443
443
|
extensions?: any;
|
|
@@ -2292,8 +2292,11 @@ export const CreateDataExportDirectDownloadUrlDocument = `
|
|
|
2292
2292
|
}
|
|
2293
2293
|
`;
|
|
2294
2294
|
export const CreateVerificationUrlDocument = `
|
|
2295
|
-
mutation CreateVerificationUrl($callbackURL: String
|
|
2296
|
-
createVerificationUrl(
|
|
2295
|
+
mutation CreateVerificationUrl($callbackURL: String, $includeAttributeMatchingCheck: Boolean) {
|
|
2296
|
+
createVerificationUrl(
|
|
2297
|
+
callbackURL: $callbackURL
|
|
2298
|
+
includeAttributeMatchingCheck: $includeAttributeMatchingCheck
|
|
2299
|
+
)
|
|
2297
2300
|
}
|
|
2298
2301
|
`;
|
|
2299
2302
|
export const DeleteDocument = `
|
|
@@ -10341,7 +10341,8 @@ export type CreateDataExportDirectDownloadUrlMutationResults = {
|
|
|
10341
10341
|
createDataExportDirectDownloadUrl: string | null;
|
|
10342
10342
|
};
|
|
10343
10343
|
export type CreateVerificationUrlMutationVariables = Types.Exact<{
|
|
10344
|
-
callbackURL: Types.Scalars['String']['input']
|
|
10344
|
+
callbackURL: Types.InputMaybe<Types.Scalars['String']['input']>;
|
|
10345
|
+
includeAttributeMatchingCheck: Types.InputMaybe<Types.Scalars['Boolean']['input']>;
|
|
10345
10346
|
}>;
|
|
10346
10347
|
export type CreateVerificationUrlMutationResults = {
|
|
10347
10348
|
createVerificationUrl: string;
|
package/dist/graphql/schema.d.ts
CHANGED
|
@@ -2429,7 +2429,8 @@ export type MutationCreateQuestionnaireResponseArgs = {
|
|
|
2429
2429
|
input: QuestionnaireResponse_Input;
|
|
2430
2430
|
};
|
|
2431
2431
|
export type MutationCreateVerificationUrlArgs = {
|
|
2432
|
-
callbackURL
|
|
2432
|
+
callbackURL?: InputMaybe<Scalars['String']['input']>;
|
|
2433
|
+
includeAttributeMatchingCheck?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2433
2434
|
};
|
|
2434
2435
|
export type MutationDeleteConnectionArgs = {
|
|
2435
2436
|
connectionId: Scalars['String']['input'];
|