@adminide-stack/account-api-core
Advanced tools
Comparing version 9.1.1-alpha.43 to 9.1.1-alpha.48
@@ -1,2 +0,2 @@ | ||
import { IIOnBoardingParams, ITokenTypesEnum, IUserAccount, IUserAccountCreateRequest, IUserAccountRemoveRequest, IUserAccountUpdateRequest, IUserAccountWhere, IUserAuth0UpdateFields, IUserProfile, IUserTokenInput, IUserToken, IUsersToken } from '@adminide-stack/core'; | ||
import { IIOnBoardingParams, ITokenTypesEnum, IUserAccount, IUserAccountCreateRequest, IUserAccountRemoveRequest, IUserAccountUpdateRequest, IUserAccountWhere, IUserAuth0UpdateFields, IUserProfile, IUserTokenInput, IUserToken, IUsersToken, IAccountServiceContext, IUpdateUserAccountAliasesInput } from '@adminide-stack/core'; | ||
import { IBaseService } from '@common-stack/store-mongo'; | ||
@@ -10,5 +10,3 @@ /** | ||
*/ | ||
createDefaultAccount(user: any, optional?: { | ||
[key: string]: any; | ||
}): Promise<IUserAccount>; | ||
createDefaultAccount(user: any, context?: IAccountServiceContext): Promise<IUserAccount>; | ||
updateUserAccount(user: IUserProfile, userInfo: IUserAuth0UpdateFields): Promise<IUserAccount>; | ||
@@ -26,3 +24,3 @@ /** | ||
*/ | ||
findAccountByUser(id: string): Promise<IUserAccount | Error>; | ||
findAccountByUser(id: string, context: IAccountServiceContext, idWithStrategy?: string): Promise<IUserAccount | Error>; | ||
findAccountByEmail(email: string): Promise<IUserAccount | Error>; | ||
@@ -49,2 +47,3 @@ /** | ||
getUserAccountByEmail(email: string): Promise<IUserAccount>; | ||
updateUserAccountAliases(input: IUpdateUserAccountAliasesInput): Promise<IUserAccount>; | ||
} |
import { ServiceBroker } from 'moleculer'; | ||
import { CdmLogger } from '@cdm-logger/core'; | ||
import { BaseProxyService } from '@common-stack/store-mongo'; | ||
import { IIOnBoardingParams, IMoleculerServiceName, ITokenTypesEnum, IUserAccount, IUserAccountCreateRequest, IUserAccountRemoveRequest, IUserAccountUpdateRequest, IUserAccountWhere, IUserAuth0UpdateFields, IUserProfile, IUsersToken, IUserToken } from '@adminide-stack/core'; | ||
import { IAccountServiceContext, IIOnBoardingParams, IMoleculerServiceName, ITokenTypesEnum, IUpdateUserAccountAliasesInput, IUserAccount, IUserAccountCreateRequest, IUserAccountRemoveRequest, IUserAccountUpdateRequest, IUserAccountWhere, IUserAuth0UpdateFields, IUserProfile, IUsersToken, IUserToken } from '@adminide-stack/core'; | ||
import { IAccountService } from '../../interfaces'; | ||
@@ -13,9 +13,8 @@ export declare class AccountProxyService extends BaseProxyService<IUserAccount> implements IAccountService { | ||
dispatchUserPasswordResetEmail(user: IUserAccount, token: string): Promise<void>; | ||
createDefaultAccount(user: any, optional?: { | ||
[key: string]: any; | ||
}): Promise<IUserAccount>; | ||
createDefaultAccount(user: any, context?: IAccountServiceContext): Promise<IUserAccount>; | ||
updateUserAccount(user: IUserProfile, userInfo: IUserAuth0UpdateFields): Promise<IUserAccount>; | ||
updateUserAccountAliases(input: IUpdateUserAccountAliasesInput): Promise<IUserAccount>; | ||
createAccount(account: IUserAccountCreateRequest): Promise<IUserAccount>; | ||
findAccountById(id: string): Promise<IUserAccount | Error>; | ||
findAccountByUser(id: string): Promise<IUserAccount | Error>; | ||
findAccountByUser(id: string, context: IAccountServiceContext): Promise<IUserAccount | Error>; | ||
findAccountByEmail(email: string): Promise<IUserAccount | Error>; | ||
@@ -22,0 +21,0 @@ getUsers(where: IUserAccountWhere): Promise<IUserAccount[]>; |
@@ -16,4 +16,4 @@ import {__decorate,__param,__metadata}from'tslib';import {injectable,inject}from'inversify';import {ServiceBroker}from'moleculer';import {CommonType}from'@common-stack/core';import'@cdm-logger/core';import {BaseProxyService}from'@common-stack/store-mongo';import {IMoleculerServiceName,IAccountServiceAction}from'@adminide-stack/core';let AccountProxyService = class AccountProxyService extends BaseProxyService { | ||
} | ||
createDefaultAccount(user, optional) { | ||
return this.callAction(IAccountServiceAction.CreateDefaultAccount, { user, optional }); | ||
createDefaultAccount(user, context) { | ||
return this.callAction(IAccountServiceAction.CreateDefaultAccount, { user, context }); | ||
} | ||
@@ -23,2 +23,5 @@ updateUserAccount(user, userInfo) { | ||
} | ||
updateUserAccountAliases(input) { | ||
return this.callAction(IAccountServiceAction.UpdateUserAccountAliases, { input }); | ||
} | ||
createAccount(account) { | ||
@@ -30,4 +33,4 @@ return this.callAction(IAccountServiceAction.CreateAccount, { account }); | ||
} | ||
findAccountByUser(id) { | ||
return this.callAction(IAccountServiceAction.FindAccountByUser, { id }); | ||
findAccountByUser(id, context) { | ||
return this.callAction(IAccountServiceAction.FindAccountByUser, { id, context }); | ||
} | ||
@@ -34,0 +37,0 @@ findAccountByEmail(email) { |
{ | ||
"name": "@adminide-stack/account-api-core", | ||
"version": "9.1.1-alpha.43", | ||
"version": "9.1.1-alpha.48", | ||
"description": "Adminide core for higher packages to depend on", | ||
@@ -24,3 +24,3 @@ "license": "ISC", | ||
"dependencies": { | ||
"@adminide-stack/core": "9.1.1-alpha.43" | ||
"@adminide-stack/core": "9.1.1-alpha.48" | ||
}, | ||
@@ -33,3 +33,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "52f128f0cefe4d3716de4c1013deab26ba3e246a" | ||
"gitHead": "9486da331f1b45db23ad945ccea55c4dd74bd78f" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20434
311
+ Added@adminide-stack/core@9.1.1-alpha.48(transitive)
- Removed@adminide-stack/core@9.1.1-alpha.43(transitive)