taon 21.0.6 → 21.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taon/websql",
3
- "version": "21.0.6",
3
+ "version": "21.0.9",
4
4
  "module": "fesm2022/taon.mjs",
5
5
  "typings": "index.d.ts",
6
6
  "exports": {
@@ -1,5 +1,5 @@
1
1
  // @ts-nocheck
2
- import * as taon from 'taon';
2
+ import * as taon_websql from 'taon/websql';
3
3
  import * as express from 'express';
4
4
  import express__default, { Request, Response, RequestHandler, Application } from 'express';
5
5
  import * as i0 from '@angular/core';
@@ -598,7 +598,7 @@ declare namespace Models {
598
598
  initFN: Function;
599
599
  };
600
600
  type FormlyFromType = 'material' | 'bootstrap';
601
- type ExpressContext<T> = (req: Request, res: Response) => T;
601
+ type ExpressContext<T> = (req: Request<any>, res: Response<any>) => T;
602
602
  type SyncResponse<T> = string | T;
603
603
  type ResponseFuncOpt<T> = {
604
604
  limitSize?: (enties: Function | Function[], include: string[], exclude: string[]) => void;
@@ -613,7 +613,7 @@ declare namespace Models {
613
613
  request?(axiosConfig?: Models$1.Ng2RestAxiosRequestConfig): Rest.PromiseObservableMix<Rest.HttpResponse<T>>;
614
614
  }
615
615
  interface AsyncResponse<T> {
616
- (req?: Request, res?: Response): Promise<SyncResponse<T> | SyncResponseFunc<T>>;
616
+ (req?: Request<any>, res?: Response<any>): Promise<SyncResponse<T> | SyncResponseFunc<T>>;
617
617
  }
618
618
  type Response<T = string> = AsyncResponse<T> & ClientAction<T>;
619
619
  interface AuthCallBack {
@@ -689,8 +689,8 @@ declare class EndpointContext {
689
689
  connection: DataSource;
690
690
  private entitiesTriggers;
691
691
  private realtime;
692
- get realtimeClient(): taon.RealtimeClient;
693
- get realtimeServer(): taon.RealtimeServer;
692
+ get realtimeClient(): taon_websql.RealtimeClient;
693
+ get realtimeServer(): taon_websql.RealtimeServer;
694
694
  /**
695
695
  * available after init()
696
696
  */
@@ -929,8 +929,8 @@ declare const createContextTemplate: <CTX extends Record<string, object>, CTRL e
929
929
  * TCP(upgrade) socket.io (or ipc) based.
930
930
  */
931
931
  readonly realtime: {
932
- readonly client: taon.RealtimeClient;
933
- readonly server: taon.RealtimeServer;
932
+ readonly client: taon_websql.RealtimeClient;
933
+ readonly server: taon_websql.RealtimeServer;
934
934
  };
935
935
  };
936
936
  declare const createContext: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>, MIGRATION extends Record<string, new (...args: any[]) => any>, MIDDLEWARES extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION, MIDDLEWARES>) => {
@@ -964,8 +964,8 @@ declare const createContext: <CTX extends Record<string, object>, CTRL extends R
964
964
  * TCP(upgrade) socket.io (or ipc) based.
965
965
  */
966
966
  readonly realtime: {
967
- readonly client: taon.RealtimeClient;
968
- readonly server: taon.RealtimeServer;
967
+ readonly client: taon_websql.RealtimeClient;
968
+ readonly server: taon_websql.RealtimeServer;
969
969
  };
970
970
  };
971
971
  type TaonContext = ReturnType<typeof createContext>;
@@ -1019,8 +1019,8 @@ declare class EntityProcess {
1019
1019
  }
1020
1020
 
1021
1021
  declare const getResponseValue: <T>(response: Models.Http.Response<T>, options?: {
1022
- req: Request;
1023
- res: Response;
1022
+ req: Request<any>;
1023
+ res: Response<any>;
1024
1024
  }) => Promise<T>;
1025
1025
 
1026
1026
  declare const inject: <T>(entity: () => new (...args: any[]) => T) => T;
@@ -1256,14 +1256,14 @@ declare const TaonBaseContext: {
1256
1256
  cloneAsNormal: (cloneOpt?: {
1257
1257
  overrideHost?: string;
1258
1258
  }) => /*elided*/ any;
1259
- __ref(): Promise<taon.EndpointContext>;
1260
- readonly __refSync: taon.EndpointContext;
1259
+ __ref(): Promise<taon_websql.EndpointContext>;
1260
+ readonly __refSync: taon_websql.EndpointContext;
1261
1261
  getClassInstance<T>(ctor: new (...args: any[]) => T): T;
1262
1262
  getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
1263
- initialize: (overrideOptions?: taon.Models.TaonInitializeParams) => Promise<taon.EndpointContext>;
1263
+ initialize: (overrideOptions?: taon_websql.Models.TaonInitializeParams) => Promise<taon_websql.EndpointContext>;
1264
1264
  readonly realtime: {
1265
- readonly client: taon.RealtimeClient;
1266
- readonly server: taon.RealtimeServer;
1265
+ readonly client: taon_websql.RealtimeClient;
1266
+ readonly server: taon_websql.RealtimeServer;
1267
1267
  };
1268
1268
  };
1269
1269
 
@@ -2002,8 +2002,8 @@ declare namespace Taon {
2002
2002
  export import Response = Models.Http.Response;
2003
2003
  export import StartParams = Models.StartParams;
2004
2004
  const getResponseValue: <T>(response: Response<T>, options?: {
2005
- req: express.Request;
2006
- res: express.Response;
2005
+ req: express.Request<any>;
2006
+ res: express.Response<any>;
2007
2007
  }) => Promise<T>;
2008
2008
  const isBrowser: boolean;
2009
2009
  const isNode: boolean;
@@ -2024,8 +2024,8 @@ declare namespace Taon {
2024
2024
  getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
2025
2025
  initialize: (overrideOptions?: Models.TaonInitializeParams) => Promise<EndpointContext>;
2026
2026
  readonly realtime: {
2027
- readonly client: taon.RealtimeClient;
2028
- readonly server: taon.RealtimeServer;
2027
+ readonly client: taon_websql.RealtimeClient;
2028
+ readonly server: taon_websql.RealtimeServer;
2029
2029
  };
2030
2030
  };
2031
2031
  const createContextTemplate: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>, MIGRATION extends Record<string, new (...args: any[]) => any>, MIDDLEWARE extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION, MIDDLEWARE>) => () => {
@@ -2043,8 +2043,8 @@ declare namespace Taon {
2043
2043
  getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
2044
2044
  initialize: (overrideOptions?: Models.TaonInitializeParams) => Promise<EndpointContext>;
2045
2045
  readonly realtime: {
2046
- readonly client: taon.RealtimeClient;
2047
- readonly server: taon.RealtimeServer;
2046
+ readonly client: taon_websql.RealtimeClient;
2047
+ readonly server: taon_websql.RealtimeServer;
2048
2048
  };
2049
2049
  };
2050
2050
  const inject: <T>(entity: () => new (...args: any[]) => T) => T;
@@ -2073,8 +2073,8 @@ declare namespace Taon {
2073
2073
  getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
2074
2074
  initialize: (overrideOptions?: Models.TaonInitializeParams) => Promise<EndpointContext>;
2075
2075
  readonly realtime: {
2076
- readonly client: taon.RealtimeClient;
2077
- readonly server: taon.RealtimeServer;
2076
+ readonly client: taon_websql.RealtimeClient;
2077
+ readonly server: taon_websql.RealtimeServer;
2078
2078
  };
2079
2079
  }>;
2080
2080
  }