@amalto/typings
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -5,3 +5,3 @@ import { Id, Ids, Description, ServiceItem, ServiceItems, ServiceItemFacade, ServiceItemFacades, CompiledWordings } from './models/Service'; | ||
import { UserModel, getUserJson, UserSearch } from './models/UserModel'; | ||
import { Auth, WebApi } from './models/WebApi'; | ||
import { WebApi } from './models/WebApi'; | ||
export { Id, Ids, Description, ServiceItem, ServiceItems, ServiceItemFacade, ServiceItemFacades, CompiledWordings }; | ||
@@ -11,2 +11,2 @@ export { Errors }; | ||
export { UserModel, getUserJson, UserSearch }; | ||
export { Auth, WebApi }; | ||
export { WebApi }; |
import { EndpointsUrl } from './EndpointsUrl'; | ||
declare namespace Auth { | ||
interface AuthCodeBodyParameters { | ||
code: string; | ||
uname: string; | ||
pw: string; | ||
realm?: string; | ||
} | ||
interface AuthCodeData { | ||
code: string; | ||
scope: string; | ||
redirect_uri: string; | ||
state?: string; | ||
} | ||
interface TokenData { | ||
access_token: string; | ||
token_type: string; | ||
expires_in: number; | ||
refresh_token?: string; | ||
scope?: string; | ||
audience?: string; | ||
user_id?: string; | ||
} | ||
interface TokenBodyParameters { | ||
redirect_uri: string; | ||
client_id: string; | ||
client_secret: string; | ||
grant_type: string; | ||
code?: string; | ||
refresh_token?: string; | ||
} | ||
} | ||
interface WebApi { | ||
requestAuthorizationCode: (code: string, uname: string, pw: string, realm?: string, cctx?: string) => Promise<Auth.AuthCodeData>; | ||
requestAccessToken: (authorizationCode: string) => Promise<Auth.TokenData>; | ||
requestClientAccessToken: () => Promise<Auth.TokenData>; | ||
refreshAccessToken: () => Promise<Auth.TokenData>; | ||
getWithClientToken: (url: string, clientAccessToken: string, queryParameters?: any, disableTimeout?: boolean) => Promise<any>; | ||
@@ -56,2 +21,2 @@ delWithClientToken: (url: string, clientAccessToken: string, queryParameters?: any, disableTimeout?: boolean) => Promise<any>; | ||
} | ||
export { Auth, WebApi }; | ||
export { WebApi }; |
import { EndpointsUrl } from './EndpointsUrl' | ||
namespace Auth { | ||
export interface AuthCodeBodyParameters { | ||
code: string; | ||
uname: string; | ||
pw: string; | ||
realm?: string; | ||
} | ||
export interface AuthCodeData { | ||
code: string; | ||
scope: string; | ||
redirect_uri: string; | ||
state?: string; | ||
} | ||
export interface TokenData { | ||
access_token: string | ||
token_type: string | ||
expires_in: number | ||
refresh_token?: string | ||
scope?: string | ||
audience?: string | ||
user_id?: string | ||
} | ||
export interface TokenBodyParameters { | ||
redirect_uri: string | ||
client_id: string | ||
client_secret: string | ||
grant_type: string | ||
code?: string | ||
refresh_token?: string | ||
} | ||
} | ||
interface WebApi { | ||
requestAuthorizationCode: ( code: string, uname: string, pw: string, realm?: string, cctx?: string ) => Promise<Auth.AuthCodeData> | ||
requestAccessToken: ( authorizationCode: string ) => Promise<Auth.TokenData> | ||
requestClientAccessToken: () => Promise<Auth.TokenData> | ||
refreshAccessToken: () => Promise<Auth.TokenData> | ||
getWithClientToken: ( url: string, clientAccessToken: string, queryParameters?: any, disableTimeout?: boolean ) => Promise<any> | ||
@@ -66,2 +24,2 @@ delWithClientToken: ( url: string, clientAccessToken: string, queryParameters?: any, disableTimeout?: boolean ) => Promise<any> | ||
export { Auth, WebApi } | ||
export { WebApi } |
@@ -5,3 +5,3 @@ { | ||
"description": "Interfaces used in Platform 6 UI component.", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
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
38930
973