ngx-amplify
Version:
An angular library for integration AWS cloud services (cognito, s3)
57 lines (56 loc) • 1.68 kB
TypeScript
import { IAuthUser, IAuthCredentials, ICognitoProfile, ICognitoException, ICognitoAddress } from './interfaces/common.interface';
import { CognitoUser } from 'amazon-cognito-identity-js';
export declare class AuthUser implements IAuthUser {
identityId: string;
authenticated: boolean;
authCredentials?: IAuthCredentials;
cognitoProfile?: ICognitoProfile;
cognitoUser?: CognitoUser;
constructor(values?: {});
static Factory(): AuthUser;
init(): void;
set(values?: Object): void;
}
export declare class CognitoException implements ICognitoException {
code: string;
columnNumber?: number;
fileName?: string;
lineNumber?: number;
message: string;
name?: string;
originalError?: ICognitoException;
requestId: string;
retryDelay: number;
retryable: boolean;
statusCode: number;
time: Date;
constructor(values?: Object);
}
export declare class CognitoProfile implements ICognitoProfile {
sub: string;
name?: string;
given_name?: string;
family_name?: string;
middle_name?: string;
nickname?: string;
preferred_username?: string;
profile?: string;
picture?: string;
website?: string;
email?: string;
email_verified?: boolean;
gender?: string;
birthdate?: string;
zoneinfo?: string;
locale?: string;
phone_number?: string;
phone_number_verified?: boolean;
address?: string | ICognitoAddress;
updated_at?: number;
member_since__c?: string | number;
country_code__c?: string | number;
lead_id__c?: string;
contact_id__c?: string;
constructor(values?: Object);
static Factory(): CognitoProfile;
}