@icanbwell/bwell-sdk-ts 2.0.0-alpha.0-rc.1761162543 → 2.0.0-beta-rc.1761326499
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/identity/identity-manager.d.ts +2 -2
- package/dist/api/graphql-api/identity/graphql-identity-manager.js +1 -1
- package/dist/auth/credentials.d.ts +1 -1
- package/dist/auth/credentials.js +2 -2
- package/dist/auth/username-password-strategy.js +2 -2
- package/dist/graphql/schema.d.ts +6 -1
- package/package.json +1 -1
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -28,7 +28,7 @@ export type OauthAuthenticateRequest = {
|
|
|
28
28
|
*/
|
|
29
29
|
export type UsernamePasswordAuthenticateRequest = {
|
|
30
30
|
clientKey: string;
|
|
31
|
-
|
|
31
|
+
username: string;
|
|
32
32
|
password: string;
|
|
33
33
|
};
|
|
34
34
|
/**
|
|
@@ -85,7 +85,7 @@ export interface IdentityManager {
|
|
|
85
85
|
* ```typescript
|
|
86
86
|
* const tokens = await identityManager.authenticateWithUsernamePassword({
|
|
87
87
|
* clientKey: 'your-client-key',
|
|
88
|
-
*
|
|
88
|
+
* username: 'user@example.com',
|
|
89
89
|
* password: 'secure-password'
|
|
90
90
|
* });
|
|
91
91
|
* ```
|
|
@@ -72,7 +72,7 @@ export class GraphQLIdentityManager extends GraphQLManager {
|
|
|
72
72
|
return __awaiter(this, void 0, void 0, function* () {
|
|
73
73
|
__classPrivateFieldGet(this, _GraphQLIdentityManager_logger, "f").verbose("exectuting username/password authenticate query...");
|
|
74
74
|
const authResponse = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLIdentityManager_sdk, "f").login({
|
|
75
|
-
email: authenticateRequest.
|
|
75
|
+
email: authenticateRequest.username,
|
|
76
76
|
password: authenticateRequest.password,
|
|
77
77
|
}, {
|
|
78
78
|
ClientKey: authenticateRequest.clientKey,
|
package/dist/auth/credentials.js
CHANGED
|
@@ -7,9 +7,9 @@ export function isOauthCredentials(credentials) {
|
|
|
7
7
|
return "token" in credentials && hasOnlyKeys(credentials, ["token"]);
|
|
8
8
|
}
|
|
9
9
|
export function isUserPassCredentials(credentials) {
|
|
10
|
-
return ("
|
|
10
|
+
return ("username" in credentials &&
|
|
11
11
|
"password" in credentials &&
|
|
12
|
-
hasOnlyKeys(credentials, ["
|
|
12
|
+
hasOnlyKeys(credentials, ["username", "password"]));
|
|
13
13
|
}
|
|
14
14
|
export function isAuthCodeCredentials(credentials) {
|
|
15
15
|
return "authCode" in credentials && hasOnlyKeys(credentials, ["authCode"]);
|
|
@@ -41,10 +41,10 @@ export class UsernamePasswordStrategy {
|
|
|
41
41
|
__classPrivateFieldGet(this, _UsernamePasswordStrategy_logger, "f").verbose("authenticating via UsernamePassword strategy...");
|
|
42
42
|
const authResults = yield __classPrivateFieldGet(this, _UsernamePasswordStrategy_identityManager, "f").authenticateWithUsernamePassword({
|
|
43
43
|
clientKey: __classPrivateFieldGet(this, _UsernamePasswordStrategy_sdkConfig, "f").context.clientKey,
|
|
44
|
-
|
|
44
|
+
username: credentials.username,
|
|
45
45
|
password: credentials.password,
|
|
46
46
|
});
|
|
47
|
-
__classPrivateFieldGet(this, _UsernamePasswordStrategy_logger, "f").verbose("finished
|
|
47
|
+
__classPrivateFieldGet(this, _UsernamePasswordStrategy_logger, "f").verbose("finished via UsernamePassword authentication");
|
|
48
48
|
return authResults;
|
|
49
49
|
});
|
|
50
50
|
}
|
package/dist/graphql/schema.d.ts
CHANGED
|
@@ -53567,6 +53567,11 @@ export type QueryGetMedicationGroupsArgs = {
|
|
|
53567
53567
|
export type QueryGetMedicationKnowledgeArgs = {
|
|
53568
53568
|
request?: InputMaybe<MedicationKnowledgeRequest>;
|
|
53569
53569
|
};
|
|
53570
|
+
export type QueryGetMemberConnectionsArgs = {
|
|
53571
|
+
integrationType?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
53572
|
+
status?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
53573
|
+
syncStatus?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
53574
|
+
};
|
|
53570
53575
|
export type QueryGetOauthUrlArgs = {
|
|
53571
53576
|
connectionId: Scalars['String']['input'];
|
|
53572
53577
|
};
|
|
@@ -59258,7 +59263,7 @@ export type Security = {
|
|
|
59258
59263
|
system?: Maybe<Scalars['String']['output']>;
|
|
59259
59264
|
};
|
|
59260
59265
|
export type SecurityConfigInput = {
|
|
59261
|
-
passcode: Scalars['
|
|
59266
|
+
passcode: Scalars['String']['input'];
|
|
59262
59267
|
};
|
|
59263
59268
|
/**
|
|
59264
59269
|
* ServiceRequest
|