Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- declare module moonbeam {
- export interface IApiResponse<T> {
- success: boolean;
- data?: T;
- error?: IApiError;
- }
- export interface IApiError {
- code: number;
- message: string;
- stackTrace?: string[];
- }
- export interface INavBlock {
- name: string,
- navSections: INavSection[]
- }
- export interface INavSection {
- sectionName?: string;
- navs: ISidebarRoute[];
- }
- export interface INav {
- location: string;
- title: string;
- icon: string;
- isSelected: boolean;
- }
- export interface ISidebarRoute {
- statePrefix: string;
- state: string;
- title: string;
- icon?: string;
- params?: any;
- subStates?: Array<ISidebarRoute>;
- }
- export interface IDataSelectorStateParams extends angular.ui.IStateParamsService {
- folderId?: string;
- domainId?: string;
- appId?: string;
- journeyId?: string;
- discoveryAuditId?: string;
- runId?: string;
- suiteId?: string;
- testId?: string;
- }
- export interface IPageScope extends angular.IScope {
- pageTitle: IPageTitle;
- breadcrumbs: IBreadcrumb[];
- sidebarNav: INav[];
- }
- export interface IPageTitle {
- title: string;
- icon?: string;
- }
- export interface IBreadcrumb {
- title: string;
- url: string;
- }
- export interface ICredentials {
- username: string;
- password: string;
- }
- export interface ITokenInformation {
- accessToken: string;
- userId: number;
- expires: number;
- credentialsExpired?: boolean;
- }
- export interface IUserBase {
- email: string;
- username: string;
- timezone: string;
- permissions: number;
- lastName: string;
- firstName: string;
- id: number;
- }
- export interface IUser {
- accountId: number;
- lastLogin: Date;
- email: string;
- username: string;
- timezone: string;
- permissions: string;
- lastName: string;
- firstName: string;
- id: number;
- updated: Date;
- created: Date;
- }
- export class Account {
- id: number;
- accountType: number;
- name: string;
- usersUsed: number;
- maxUsers: number;
- webJourneysUsed: number;
- maxWebJourneys: number;
- auditsUsed: number;
- maxAudits: number;
- strongPasswordPolicy: boolean;
- maxApps: number;
- }
- export interface IRoute {
- url: string;
- state: string;
- title: string;
- icon?: string;
- controller: string;
- templateUrl?: string;
- template?: string;
- parent?: string;
- children?: IRoute[];
- controllerAs?: string;
- abstract?: boolean;
- other?: any;
- params?: any;
- }
- export interface IAbstractRoute {
- url?: string;
- state: string;
- title: string;
- icon?: string;
- controller?: string;
- templateUrl?: string;
- template?: string;
- children?: IRoute[];
- controllerAs?: string;
- abstract?: boolean;
- }
- export interface IViewRoute {
- url: string;
- state: string;
- parent?: string;
- title: string;
- views: any;
- icon?: string;
- params?: any;
- }
- export interface IDate {
- now: () => number;
- }
- export interface IValueLabel<TValue, TLabel> {
- value: TValue,
- label: TLabel
- }
- export interface IKeyValue<TKey, TValue> {
- key: TKey,
- value: TValue
- }
- export interface IDiscoveryAuditDashboardScope extends IPageScope {
- dashboardTabs: IDiscoveryAuditDashboardTab[];
- dashboardSubtabs: IDiscoveryAuditDashboardTab[];
- folder: any;
- domain: IDomain;
- discoveryAudit: IAudit;
- }
- export interface IJourneyReportTopBarController {
- testName: string;
- date: string;
- currentStateService: ICurrentStateService;
- runNow?(): void;
- editJourney(): void;
- }
- export interface ISearchResult {
- folders: ISearchFolder[];
- domains: ISearchAppDomain[];
- apps: ISearchAppDomain[];
- audits: ISearchJourney[];
- webJourneys: ISearchJourney[];
- appJourneys: ISearchAppJourney[];
- }
- export interface ISearchFolder {
- id: number;
- name: string;
- }
- export interface ISearchAppDomain {
- id: number;
- name: string;
- folderId: number;
- folderName: string;
- }
- export interface ISearchJourney {
- id: number;
- name: string;
- folderId: number;
- folderName: string;
- domainName: string;
- domainId: number;
- runId: number;
- }
- export interface ISearchAppJourney {
- id: number;
- name: string;
- folderId: number;
- folderName: string;
- appName: string;
- appId: number;
- testName: string;
- testId: number;
- runId: number;
- }
- export interface IModalForm {
- modalButtons: Array<ButtonSet>;
- hideModal(): void;
- }
- export interface IModalInfo {
- title: string
- controller: string
- templateUrl: string
- prepareData?: (data) => any
- }
- }
- declare namespace angular.local.storage {
- interface ILocalStorageServiceProvider {
- setDefaultToCookie(enable: boolean): ILocalStorageServiceProvider
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement