@cxcloud/core
Advanced tools
Comparing version 1.12.0 to 1.12.1
@@ -9,10 +9,10 @@ import { RegisterResult, Status, CodeDeliveryResult, LoginSuccessResult, LoginNextStepResult, AttributesHash } from './sdk/types'; | ||
function loginNewPasswordRequired(username: string, newPassword: string, loginSession: string): Promise<LoginSuccessResult>; | ||
function logout(username: string, refreshToken: string): Promise<Status>; | ||
function refreshSession(username: string, refreshToken: string): Promise<LoginSuccessResult>; | ||
function logout(refreshToken: string): Promise<Status>; | ||
function refreshSession(refreshToken: string): Promise<LoginSuccessResult>; | ||
function passwordForgot(username: string): Promise<CodeDeliveryResult>; | ||
function passwordReset(username: string, passwordResetCode: string, newPassword: string): Promise<Status>; | ||
function passwordChange(username: string, refreshToken: string, oldPassword: string, newPassword: string): Promise<Status>; | ||
function profile(username: string, refreshToken: string): Promise<AttributesHash>; | ||
function profileEdit(username: string, refreshToken: string, attributes: AttributesHash): Promise<Status>; | ||
function profileEditPhoneNumber(username: string, refreshToken: string, phoneNumber: string): Promise<Status>; | ||
function passwordChange(refreshToken: string, oldPassword: string, newPassword: string): Promise<Status>; | ||
function profile(refreshToken: string): Promise<AttributesHash>; | ||
function profileEdit(refreshToken: string, attributes: AttributesHash): Promise<Status>; | ||
function profileEditPhoneNumber(refreshToken: string, phoneNumber: string): Promise<Status>; | ||
} |
@@ -51,5 +51,5 @@ "use strict"; | ||
Auth.loginNewPasswordRequired = loginNewPasswordRequired; | ||
function logout(username, refreshToken) { | ||
function logout(refreshToken) { | ||
return sdk_1.getClient().logout({ | ||
username, | ||
username: '', | ||
refreshToken | ||
@@ -59,5 +59,5 @@ }); | ||
Auth.logout = logout; | ||
function refreshSession(username, refreshToken) { | ||
function refreshSession(refreshToken) { | ||
return sdk_1.getClient().logout({ | ||
username, | ||
username: '', | ||
refreshToken | ||
@@ -79,5 +79,5 @@ }); | ||
Auth.passwordReset = passwordReset; | ||
function passwordChange(username, refreshToken, oldPassword, newPassword) { | ||
function passwordChange(refreshToken, oldPassword, newPassword) { | ||
return sdk_1.getClient().passwordChange({ | ||
username, | ||
username: '', | ||
refreshToken, | ||
@@ -89,6 +89,6 @@ oldPassword, | ||
Auth.passwordChange = passwordChange; | ||
function profile(username, refreshToken) { | ||
function profile(refreshToken) { | ||
return sdk_1.getClient() | ||
.profile({ | ||
username, | ||
username: '', | ||
refreshToken | ||
@@ -99,5 +99,5 @@ }) | ||
Auth.profile = profile; | ||
function profileEdit(username, refreshToken, attributes) { | ||
function profileEdit(refreshToken, attributes) { | ||
return sdk_1.getClient().profileEdit({ | ||
username, | ||
username: '', | ||
refreshToken, | ||
@@ -108,5 +108,5 @@ attributes: auth_attributes_1.hashToCognitoAttrs(attributes) | ||
Auth.profileEdit = profileEdit; | ||
function profileEditPhoneNumber(username, refreshToken, phoneNumber) { | ||
function profileEditPhoneNumber(refreshToken, phoneNumber) { | ||
return sdk_1.getClient().profileEditPhoneNumber({ | ||
username, | ||
username: '', | ||
refreshToken, | ||
@@ -113,0 +113,0 @@ phone_number: phoneNumber |
{ | ||
"name": "@cxcloud/core", | ||
"version": "1.12.0", | ||
"version": "1.12.1", | ||
"description": "CX Cloud Core Services Module", | ||
@@ -11,2 +11,3 @@ "main": "dist/index.js", | ||
"build": "tsc", | ||
"build:docs": "typedoc --theme minimal --out docs --mode file --excludePrivate --excludeProtected", | ||
"format": "prettier --write 'src/**/*.ts'", | ||
@@ -35,3 +36,3 @@ "precommit": "lint-staged", | ||
"@types/config": "0.0.33", | ||
"@types/lodash": "^4.14.80", | ||
"@types/lodash": "^4.14.109", | ||
"@types/node": "^8.0.34", | ||
@@ -49,3 +50,3 @@ "@types/node-cache": "^4.1.0", | ||
"tslint-config-prettier": "^1.5.0", | ||
"typedoc": "^0.10.0", | ||
"typedoc": "^0.11.1", | ||
"typescript": "^2.5.3" | ||
@@ -52,0 +53,0 @@ }, |
@@ -32,2 +32,10 @@ # CX Cloud Core Services | ||
- Space Info | ||
+ Search (Powered by [Algolia](https://algolia.com)) | ||
+ Authentication (Powered by [AWS Cognito](https://aws.amazon.com/cognito/)) | ||
- Login (Normal, MFA) | ||
- Registration | ||
- Edit Profile and Phone Number | ||
- Session Update | ||
- Password Forgot, Reset, Change | ||
- Get Profile | ||
@@ -47,4 +55,4 @@ ## Documentation | ||
"admin": { | ||
"clientId": "ADMIn_CLIENT_ID", | ||
"clientSecret": "ADMIn_CLIENT_ID" | ||
"clientId": "ADMIN_CLIENT_ID", | ||
"clientSecret": "ADMIN_CLIENT_ID" | ||
}, | ||
@@ -61,2 +69,10 @@ "user": { | ||
} | ||
}, | ||
"algolia": { | ||
"applicationId": "APP_ID", | ||
"apiKey": "API_KEY" | ||
}, | ||
"cognito": { | ||
"userPoolId": "USER_POOL_ID", | ||
"clientId": "CLIENT_ID" | ||
} | ||
@@ -63,0 +79,0 @@ } |
Sorry, the diff of this file is not supported yet
103972
82