import { IRawAadMetadata , IRawAadMetadataMetadata } from '../RawDataTypes' ; import { DataModelBase } from './Base' ; export class AuthenticationBootstrapConstants { public static GetAadMetadataUriPart = '/$/GetAadMetadata?api-version=1.0' ; public static AadAuthType = 'aad' ; public static AdalCacheType = 'localStorage' ; } export class AadMetadata extends DataModelBase < IRawAadMetadata > { public constructor ( raw ) { super ( null , raw ) ; } public get metadata ( ) : IRawAadMetadataMetadata { if ( this . raw ) { return this . raw . metadata ; } return null ; } public get isAadAuthType ( ) : boolean { return this . raw && this . raw . type === AuthenticationBootstrapConstants . AadAuthType ; } }