import { Base } from "../../"; import { SP } from "../../"; /********************************************* * TokenResponse **********************************************/ export interface TokenResponse { access_token?: string; expires_on?: string; id_token?: string; resource?: string; scope?: string; token_type?: string; } /********************************************* * TokenResponseCollections **********************************************/ export interface TokenResponseCollections { } /********************************************* * TokenResponseOData **********************************************/ export interface TokenResponseOData extends Base.IBaseResult, TokenResponse { accessTokenOptionalClaim: SP.OAuth.AccessTokenOptionalClaim & SP.OAuth.AccessTokenOptionalClaimCollections; } /********************************************* * AccessTokenOptionalClaim **********************************************/ export interface AccessTokenOptionalClaim { Acrs?: string; } /********************************************* * AccessTokenOptionalClaimCollections **********************************************/ export interface AccessTokenOptionalClaimCollections { } /********************************************* * INativeClient **********************************************/ export interface INativeClient extends NativeClientCollections, NativeClientMethods, Base.IBaseQuery { } /********************************************* * INativeClientCollection **********************************************/ export interface INativeClientCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * INativeClientQueryCollection **********************************************/ export interface INativeClientQueryCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * INativeClientQuery **********************************************/ export interface INativeClientQuery extends NativeClientOData, NativeClientMethods { } /********************************************* * NativeClient **********************************************/ export interface NativeClient extends Base.IBaseResult, NativeClientProps, NativeClientCollections, NativeClientMethods { } /********************************************* * NativeClientProps **********************************************/ export interface NativeClientProps { Id4a81de82eeb94d6080ea5bf63e27023a?: string; } /********************************************* * NativeClientPropMethods **********************************************/ export interface NativeClientPropMethods { } /********************************************* * NativeClientCollections **********************************************/ export interface NativeClientCollections extends NativeClientPropMethods { } /********************************************* * NativeClientOData **********************************************/ export interface NativeClientOData extends Base.IBaseResult, NativeClientProps, NativeClientMethods { } /********************************************* * NativeClientMethods **********************************************/ export interface NativeClientMethods { authenticate(): Base.IBaseExecution; } /********************************************* * IToken **********************************************/ export interface IToken extends TokenCollections, TokenMethods, Base.IBaseQuery { } /********************************************* * ITokenCollection **********************************************/ export interface ITokenCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * ITokenQueryCollection **********************************************/ export interface ITokenQueryCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * ITokenQuery **********************************************/ export interface ITokenQuery extends TokenOData, TokenMethods { } /********************************************* * Token **********************************************/ export interface Token extends Base.IBaseResult, TokenProps, TokenCollections, TokenMethods { } /********************************************* * TokenProps **********************************************/ export interface TokenProps { Id4a81de82eeb94d6080ea5bf63e27023a?: string; } /********************************************* * TokenPropMethods **********************************************/ export interface TokenPropMethods { } /********************************************* * TokenCollections **********************************************/ export interface TokenCollections extends TokenPropMethods { } /********************************************* * TokenOData **********************************************/ export interface TokenOData extends Base.IBaseResult, TokenProps, TokenMethods { } /********************************************* * TokenMethods **********************************************/ export interface TokenMethods { acquire(resource?: string, tokenType?: string): Base.IBaseQuery & SP.OAuth.TokenResponseCollections; } /********************************************* * IAuthentication **********************************************/ export interface IAuthentication extends AuthenticationCollections, AuthenticationMethods, Base.IBaseQuery { } /********************************************* * IAuthenticationCollection **********************************************/ export interface IAuthenticationCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IAuthenticationQueryCollection **********************************************/ export interface IAuthenticationQueryCollection extends Base.IBaseResults { done?: (resolve: (value?: Array) => void) => void; } /********************************************* * IAuthenticationQuery **********************************************/ export interface IAuthenticationQuery extends AuthenticationOData, AuthenticationMethods { } /********************************************* * Authentication **********************************************/ export interface Authentication extends Base.IBaseResult, AuthenticationProps, AuthenticationCollections, AuthenticationMethods { } /********************************************* * AuthenticationProps **********************************************/ export interface AuthenticationProps { Id4a81de82eeb94d6080ea5bf63e27023a?: string; } /********************************************* * AuthenticationPropMethods **********************************************/ export interface AuthenticationPropMethods { } /********************************************* * AuthenticationCollections **********************************************/ export interface AuthenticationCollections extends AuthenticationPropMethods { } /********************************************* * AuthenticationOData **********************************************/ export interface AuthenticationOData extends Base.IBaseResult, AuthenticationProps, AuthenticationMethods { } /********************************************* * AuthenticationMethods **********************************************/ export interface AuthenticationMethods { getRenewalUrl(redirectUrl?: string): Base.IBaseExecution; }