UNPKG

aspect-api-js

Version:

Package for aspect SaaS platform for JS

243 lines 9.44 kB
declare module "utils/RouteFormatter" { export class RouteFormatter { format(route: any, args: any): any; make(route: any, args: any): any; } } declare module "http/HttpExchanger" { export namespace AccessMethod { const Post: string; const Get: string; const Put: string; const Delete: string; } export class HttpExchanger { constructor(debug?: boolean); debug: boolean; formatter: RouteFormatter; request(url: any, data: any, method?: string, headers?: {}): Promise<{ response: any; status: any; failed: boolean; }>; getFormatter(): RouteFormatter; } import { RouteFormatter } from "utils/RouteFormatter"; } declare module "modules/BaseModule" { export class BaseModule { constructor(url: any, debug?: boolean); http: HttpExchanger; formatter: import("utils/RouteFormatter").RouteFormatter; url: any; route(route: any): any; getFormatter(): import("utils/RouteFormatter").RouteFormatter; getHttp(): HttpExchanger; } import { HttpExchanger } from "http/HttpExchanger"; } declare module "routes/routes" { export namespace routes { namespace auth { const login: string; const register: string; const me: string; } namespace companies { const index: string; const show: string; const store: string; const update: string; const destroy: string; } namespace software { const index_1: string; export { index_1 as index }; const show_1: string; export { show_1 as show }; const store_1: string; export { store_1 as store }; const update_1: string; export { update_1 as update }; const destroy_1: string; export { destroy_1 as destroy }; } namespace keys { const index_2: string; export { index_2 as index }; const show_2: string; export { show_2 as show }; export const download: string; const destroy_2: string; export { destroy_2 as destroy }; export const generate: string; export const modify: string; export const extend: string; } namespace periods { const index_3: string; export { index_3 as index }; const show_3: string; export { show_3 as show }; const store_2: string; export { store_2 as store }; const update_2: string; export { update_2 as update }; const destroy_3: string; export { destroy_3 as destroy }; } namespace groups { const index_4: string; export { index_4 as index }; const show_4: string; export { show_4 as show }; const store_3: string; export { store_3 as store }; const update_3: string; export { update_3 as update }; const destroy_4: string; export { destroy_4 as destroy }; } namespace license { const authenticate: string; } } } declare module "modules/AuthModule" { export class AuthModule extends BaseModule { login(login: any, password: any): Promise<{ response: any; status: any; failed: boolean; }>; register(login: any, email: any, password: any): Promise<{ response: any; status: any; failed: boolean; }>; } import { BaseModule } from "modules/BaseModule"; } declare module "modules/AuthenticatedBaseModule" { export class AuthenticatedBaseModule extends BaseModule { constructor(token: any, url: any, debug?: boolean); token: any; headers(): { Authorization: string; }; requestAuthenticated(route: any, data?: {}, method?: string): Promise<any>; me(): Promise<any>; } import { BaseModule } from "modules/BaseModule"; } declare module "modules/KeysModule" { export namespace KeyModifyAction { const Activate: string; const Lock: string; const Unlock: string; const Freeze: string; const Unfreeze: string; const Reset: string; } export class KeysModule extends AuthenticatedBaseModule { list(page?: number, records?: number): Promise<any>; search(what: any, by?: string): Promise<any>; one(id: any): Promise<any>; download(id: any): Promise<any>; delete(id: any): Promise<any>; generate(count: any, software: any, period: any, group?: any): Promise<any>; modify(keys: any, action: any): Promise<any>; extend(keys: any, days: any, hours: any, minutes: any): Promise<any>; lock(keys: any): Promise<any>; unlock(keys: any): Promise<any>; freeze(keys: any): Promise<any>; unfreeze(keys: any): Promise<any>; activate(keys: any): Promise<any>; reset(keys: any): Promise<any>; } import { AuthenticatedBaseModule } from "modules/AuthenticatedBaseModule"; } declare module "modules/PeriodsModule" { export class PeriodsModule extends AuthenticatedBaseModule { list(): Promise<any>; search(what: any, by?: string): Promise<any>; one(id: any): Promise<any>; store(title: any, days: any, hours: any, minutes: any, available: any): Promise<any>; update(id: any, title: any, days: any, hours: any, minutes: any, available: any): Promise<any>; delete(id: any): Promise<any>; } import { AuthenticatedBaseModule } from "modules/AuthenticatedBaseModule"; } declare module "modules/CompaniesModule" { export class CompaniesModule extends AuthenticatedBaseModule { list(): Promise<any>; search(what: any, by?: string): Promise<any>; one(id: any): Promise<any>; store(name: any, logo: any, description: any): Promise<any>; update(id: any, name: any, logo: any, description: any): Promise<any>; delete(id: any): Promise<any>; } import { AuthenticatedBaseModule } from "modules/AuthenticatedBaseModule"; } declare module "modules/SoftwareModule" { export class SoftwareModule extends AuthenticatedBaseModule { list(): Promise<any>; search(what: any, by?: string): Promise<any>; one(id: any): Promise<any>; store(title: any, description: any, available: any, file: any): Promise<any>; update(id: any, title: any, description: any, available: any, file: any): Promise<any>; delete(id: any): Promise<any>; } import { AuthenticatedBaseModule } from "modules/AuthenticatedBaseModule"; } declare module "modules/GroupsModule" { export class GroupsModule extends AuthenticatedBaseModule { list(): Promise<any>; search(what: any, by?: string): Promise<any>; one(id: any): Promise<any>; store(title: any, description?: any, icon?: any, color?: string, shared?: boolean, available?: boolean): Promise<any>; update(id: any, title: any, description?: any, icon?: any, color?: string, shared?: boolean, available?: boolean): Promise<any>; delete(id: any): Promise<any>; } import { AuthenticatedBaseModule } from "modules/AuthenticatedBaseModule"; } declare module "modules/CustomRequestModule" { export class CustomRequestModule extends BaseModule { asGuest(): BaseModule; asUser(token: any): Promise<AuthenticatedBaseModule>; } import { BaseModule } from "modules/BaseModule"; import { AuthenticatedBaseModule } from "modules/AuthenticatedBaseModule"; } declare module "AspectApi" { export class AspectApi { constructor(baseUrl: any, version?: string, debug?: boolean, token?: any); baseUrl: any; version: string; url: string; debug: boolean; token: any; getToken(): any; authenticate(login: any, password: any): Promise<any>; register(login: any, email: any, password: any): Promise<any>; me(): Promise<any>; keys(): KeysModule; groups(): GroupsModule; periods(): PeriodsModule; companies(): CompaniesModule; software(): SoftwareModule; request(): CustomRequestModule; } import { KeysModule } from "modules/KeysModule"; import { GroupsModule } from "modules/GroupsModule"; import { PeriodsModule } from "modules/PeriodsModule"; import { CompaniesModule } from "modules/CompaniesModule"; import { SoftwareModule } from "modules/SoftwareModule"; import { CustomRequestModule } from "modules/CustomRequestModule"; } declare module "aspect-api-js" { export default useAspect; function useAspect(baseUrl: any, version?: string, debug?: boolean, refresh?: boolean): AspectApi; import { AspectApi } from "AspectApi"; } //# sourceMappingURL=index.d.ts.map