lemon-engine
Version:
Lemon Engine Module to Synchronize Node over DynamoDB + ElastiCache + Elasticsearch by [lemoncloud](https://lemoncloud.io)
30 lines (29 loc) • 1.18 kB
TypeScript
/**
* Cognito Proxy Service Exports
* - proxy call to Cognito service.
*
*
*
* @author steve@lemoncloud.io
* @date 2019-05-23
* @copyright (C) lemoncloud.io 2019 - All Rights Reserved.
*/
import { EnginePluggable, EnginePluginBuilder } from '../common/types';
export interface CognitoProxy extends EnginePluggable {
/**
* get the current endpoint address.
*/
endpoint: () => string;
do_get_user: (userPoolId: any, userSub: any) => any;
do_get_enable_user: (userPoolId: any, userSub: any) => any;
do_get_disable_user: (userPoolId: any, userSub: any) => any;
do_get_confirm_user: (userPoolId: any, userSub: any) => any;
do_list_user: (userPoolId: any, filterName: any, filterValue: any, limit: any) => any;
do_update_user: (userPoolId: any, userSub: any, $attr: any) => any;
do_list_group: (userPoolId: any, limit: any) => any;
do_get_group: (userPoolId: any, groupId: any) => any;
do_add_user_to_group: (userPoolId: any, groupId: any, userId: any) => any;
do_create_group: (userPoolId: any, groupName: any, description: any) => any;
}
declare const maker: EnginePluginBuilder<CognitoProxy>;
export default maker;