export { Models } from './models'; export { RepeatTypeComponent } from './crud/formly-repeat-component'; export { FormlyHorizontalWrapper } from './crud/formly-group-wrapper-component'; import { Observable } from 'rxjs'; export { Log, Level } from 'ng2-logger/src'; import * as crudMorph from './crud'; import * as decoratorsMorphi from './decorators'; import * as framework from './framework'; import * as realtime from './realtime'; import * as models from './models'; import * as sym from './symbols'; export { FrameworkContext } from './framework/framework-context'; import * as context from './framework/framework-context'; import { MorphiHelpers } from './helpers'; import * as tsorm from 'firedev-typeorm/src'; import { generate as generateHash } from 'password-hash'; import { Repository } from 'firedev-typeorm/src'; export declare class TypeormRepository extends Repository { } export declare namespace Morphi { const symbols: { HAS_TABLE_IN_DB: symbol; MDC_KEY: string; WEBSQL_REST_PROGRESS_FUN: symbol; WEBSQL_REST_PROGRESS_FUN_START: symbol; WEBSQL_REST_PROGRESS_FUN_DONE: symbol; WEBSQL_REST_PROGRESS_TIMEOUT: symbol; REALTIME: { NAMESPACE: string; TABLE_CHANGE(tableName: string): string; ROOM_NAME: { CUSTOM(customEvent: string): string; UPDATE_ENTITY(className: string, entityId: string | number): string; UPDATE_ENTITY_PROPERTY(className: string, property: string, entityId: string | number): string; SUBSCRIBE: { CUSTOM: string; ENTITY_UPDATE_EVENTS: string; ENTITY_PROPERTY_UPDATE_EVENTS: string; }; UNSUBSCRIBE: { CUSTOM: string; ENTITY_UPDATE_EVENTS: string; ENTITY_PROPERTY_UPDATE_EVENTS: string; }; }; }; X_TOTAL_COUNT: string; CRUD_TABLE_MODEL: string; CRUD_TABLE_MODELS: string; CIRCURAL_OBJECTS_MAP_BODY: string; CIRCURAL_OBJECTS_MAP_QUERY_PARAM: string; MAPPING_CONFIG_HEADER: string; MAPPING_CONFIG_HEADER_BODY_PARAMS: string; MAPPING_CONFIG_HEADER_QUERY_PARAMS: string; ENDPOINT_META_CONFIG: string; CLASS_DECORATOR_CONTEXT: string; SOCKET_MSG: string; ANGULAR: { INPUT_NAMES: symbol; }; ERROR_MESSAGES: { CLASS_NAME_MATCH: string; }; }; const IsNode: boolean; const IsBrowser: boolean; function initNgZone(ngZone: any): void; /** * Function only for websql mode */ const anyContextLoaded: () => Observable; const isNode: boolean; const isBrowser: boolean; export import FrameworkContext = context.FrameworkContext; function destroyContext(contextOrHost: FrameworkContext | string): void; function getHttpPathBy(classFn: new () => T, port: number, method: (keyof T)): string; /** * Header name for model data config */ const MDC_KEY: string; const Platform: string; export import Response = models.Models.Response; function enableProductionMode(): void; export import Controller = framework.Controller; export import Entity = framework.Entity; type Session = { [additionalvalues: string]: any; destroy: () => void; save: () => void; reload: () => void; id: string; token: string; req: any; userId: number | string; cookie: any; }; export import BASE_CONTROLLER_INIT = framework.BASE_CONTROLLER_INIT; export import Repository = framework.Repository; const getResponseValue: typeof MorphiHelpers.getResponseValue; export import init = framework.start; export import InitOptions = framework.StartOptions; export import IConnectionOptions = framework.IConnectionOptions; export import SYMBOL = sym.SYMBOL; namespace Realtime { namespace Browser { const listenChangesTableEntity: typeof realtime.RealtimeBrowserRxjs.listenChangesEntityTable; const listenChangesEntity: typeof realtime.RealtimeBrowserRxjs.listenChangesEntity; const listenChangesEntityObj: typeof realtime.RealtimeBrowserRxjs.listenChangesEntityObj; } namespace Server { const TrigggerEntityTableChanges: typeof realtime.RealtimeNodejs.TrigggerEntityTableChanges; const TrigggerEntityChanges: typeof realtime.RealtimeNodejs.TrigggerEntityChanges; const TrigggerEntityPropertyChanges: typeof realtime.RealtimeNodejs.TrigggerEntityPropertyChanges; } } namespace CRUD { export import Base = crudMorph.BaseCRUD; export import DB = crudMorph.DbCrud; } namespace Formly { export import getFrom = crudMorph.getFromlyConfigFor; export import RegisterComponentForEntity = crudMorph.RegisterComponentTypeForEntity; } namespace Base { export import Controller = framework.BASE_CONTROLLER; export import Entity = framework.BASE_ENTITY; export import Repository = framework.BASE_REPOSITORY; } namespace Http { export import GET = decoratorsMorphi.GET; export import POST = decoratorsMorphi.POST; export import PUT = decoratorsMorphi.PUT; export import DELETE = decoratorsMorphi.DELETE; export import PATCH = decoratorsMorphi.PATCH; export import HEAD = decoratorsMorphi.HEAD; namespace Param { export import Query = decoratorsMorphi.Query; export import Path = decoratorsMorphi.Path; export import Body = decoratorsMorphi.Body; export import Cookie = decoratorsMorphi.Cookie; export import Header = decoratorsMorphi.Header; } namespace Resopnse { export import Success = models.Models.Rest.HttpResponse; export import Error = models.Models.Rest.HttpResponseError; } } namespace Websql { function useFakeTimeout(miliseconds: number): void; } namespace Auth { namespace Password { namespace Hash { const Generate: typeof generateHash; } } } /** * Check typeorm * https://typeorm.io */ namespace Orm { const Repository: typeof TypeormRepository; export import getConnection = tsorm.getConnection; export import Errors = models.Models.Errors; export import Connection = tsorm.Connection; export import TableNameFrom = framework.tableNameFrom; export import RepositoryFrom = framework.repositoryFrom; namespace ListenEvent { export import AfterInsert = tsorm.AfterInsert; export import AfterLoad = tsorm.AfterLoad; export import AfterRecover = tsorm.AfterRecover; export import AfterRemove = tsorm.AfterRemove; export import AfterSoftRemove = tsorm.AfterSoftRemove; export import AfterUpdate = tsorm.AfterUpdate; export import BeforeInsert = tsorm.BeforeInsert; export import BeforeRecover = tsorm.BeforeRecover; export import BeforeRemove = tsorm.BeforeRemove; export import BeforeSoftRemove = tsorm.BeforeSoftRemove; export import BeforeUpdate = tsorm.BeforeUpdate; } namespace Tree { export import Children = tsorm.TreeChildren; export import Parent = tsorm.TreeParent; } namespace Column { export import Generated = tsorm.PrimaryGeneratedColumn; export import Primary = tsorm.PrimaryColumn; export import Index = tsorm.Index; export import CreateDate = tsorm.CreateDateColumn; export import UpdateDate = tsorm.UpdateDateColumn; export import DeleteDate = tsorm.DeleteDateColumn; export import Custom = tsorm.Column; const SimpleJson: () => PropertyDecorator; const Boolean: (defaultValue: boolean) => PropertyDecorator; export import Version = tsorm.VersionColumn; export import Virtual = tsorm.VirtualColumn; } namespace Join { export import Table = tsorm.JoinTable; export import Column = tsorm.JoinColumn; } namespace Relation { export import OneToMany = tsorm.OneToMany; export import OneToOne = tsorm.OneToOne; export import ManyToMany = tsorm.ManyToMany; export import ManyToOne = tsorm.ManyToOne; } } }