@factset/frontgate-js-sdk 7.0.1 → 7.0.4

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +81 -15
  2. package/dist/lib/esnext/message/response/Mdg2Response.js +8 -5
  3. package/dist/lib/esnext/mixins/HTTPProxyRequestMixin.js +4 -4
  4. package/dist/lib/esnext/mixins/LoggerMixin.js +3 -3
  5. package/dist/lib/esnext/mixins/auth/SessionAuthMixin.js +2 -2
  6. package/dist/lib/esnext/mixins/auth/TokenAuthMixin.js +2 -2
  7. package/dist/lib/esnext/mixins/connection/FrontgateWSMixin.js +9 -9
  8. package/dist/lib/esnext/mixins/subscription/EndpointSubscriptionMixin.js +3 -2
  9. package/dist/lib/esnext/mixins/subscription/RawSubscriptionMixin.js +11 -11
  10. package/dist/lib/esnext/util/functions.js +4 -5
  11. package/dist/lib/esnext/version.js +1 -1
  12. package/dist/lib/node/message/response/Mdg2Response.js +8 -5
  13. package/dist/lib/node/mixins/HTTPProxyRequestMixin.js +4 -4
  14. package/dist/lib/node/mixins/LoggerMixin.js +3 -3
  15. package/dist/lib/node/mixins/auth/SessionAuthMixin.js +2 -2
  16. package/dist/lib/node/mixins/auth/TokenAuthMixin.js +2 -2
  17. package/dist/lib/node/mixins/connection/FrontgateWSMixin.js +9 -9
  18. package/dist/lib/node/mixins/subscription/EndpointSubscriptionMixin.js +3 -2
  19. package/dist/lib/node/mixins/subscription/RawSubscriptionMixin.js +11 -11
  20. package/dist/lib/node/util/functions.js +4 -5
  21. package/dist/lib/node/version.js +1 -1
  22. package/dist/lib/types/common/interfaces/result/HTTPProxyRequestResult.d.ts +1 -1
  23. package/dist/lib/types/common/interfaces/result/RequestResult.d.ts +1 -1
  24. package/dist/lib/types/logger/AbstractLogger.d.ts +1 -1
  25. package/dist/lib/types/logger/ConsoleLogger.d.ts +7 -7
  26. package/dist/lib/types/logger/LoggerInterface.d.ts +6 -6
  27. package/dist/lib/types/message/request/HTTPProxyRequest.d.ts +1 -1
  28. package/dist/lib/types/mixins/AuthTokenRequestMixin.d.ts +1 -1
  29. package/dist/lib/types/mixins/EndpointRequestMixin.d.ts +2 -2
  30. package/dist/lib/types/mixins/HTTPProxyRequestMixin.d.ts +2 -3
  31. package/dist/lib/types/mixins/LoggerMixin.d.ts +2 -2
  32. package/dist/lib/types/mixins/MessageCompressorMixin.d.ts +2 -2
  33. package/dist/lib/types/mixins/OpenTelemetryMixin.d.ts +2 -2
  34. package/dist/lib/types/mixins/PingMixin.d.ts +1 -1
  35. package/dist/lib/types/mixins/ReconnectMixin.d.ts +4 -4
  36. package/dist/lib/types/mixins/RemoteLoggerMixin.d.ts +1 -1
  37. package/dist/lib/types/mixins/RequestMixin.d.ts +1 -1
  38. package/dist/lib/types/mixins/auth/AppAuthMixin.d.ts +8 -8
  39. package/dist/lib/types/mixins/auth/CookieTokenAuthMixin.d.ts +1 -1
  40. package/dist/lib/types/mixins/auth/FetchAuthenticationMixin.d.ts +25 -25
  41. package/dist/lib/types/mixins/auth/SessionAuthMixin.d.ts +31 -31
  42. package/dist/lib/types/mixins/auth/TokenAuthMixin.d.ts +3 -3
  43. package/dist/lib/types/mixins/auth/UserCredentialAuthMixin.d.ts +8 -8
  44. package/dist/lib/types/mixins/auth/UserPasswordAuthMixin.d.ts +8 -8
  45. package/dist/lib/types/mixins/connection/FrontgateWSMixin.d.ts +20 -20
  46. package/dist/lib/types/mixins/connection/index.d.ts +1 -2
  47. package/dist/lib/types/mixins/subscription/EndpointSubscriptionMixin.d.ts +4 -4
  48. package/dist/lib/types/mixins/subscription/RawSubscriptionMixin.d.ts +3 -3
  49. package/dist/lib/types/util/functions.d.ts +1 -2
  50. package/dist/lib/umd/mdg2.client.min.umd.js +1 -1
  51. package/dist/lib/umd/mdg2.client.umd.js +44 -38
  52. package/package.json +6 -8
@@ -23,6 +23,6 @@ export declare class HTTPProxyRequest extends AbstractMdg2Request {
23
23
  private setHeaders;
24
24
  private setQuery;
25
25
  private setMethod;
26
- setBody(data?: HTTPProxyRequestBody): HTTPProxyRequest;
26
+ setBody(data?: HTTPProxyRequestBody): this;
27
27
  getData(): string | Record<string, unknown> | undefined;
28
28
  }
@@ -18,7 +18,7 @@ export declare const authTokenRequest: () => (<T extends AConstructorTypeOf<Fron
18
18
  requestAuthenticationTokenForCookieTokenAuthentication(lifetimeSeconds?: number, idUser?: number, idApplication?: number, timeOutInMs?: number): Promise<CookieTokenAuthenticationFactors>;
19
19
  logger: import("..").LoggerInterface | undefined;
20
20
  hooks: import("hookable").Hookable<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase>>;
21
- readonly #defaultTimeoutInMs: number;
21
+ readonly "__#private@#defaultTimeoutInMs": number;
22
22
  get defaultTimeoutInMs(): number;
23
23
  log(level: import("..").LogLevel, ...args: unknown[]): void;
24
24
  };
@@ -13,10 +13,10 @@ export interface EndpointRequestMixinOptions {
13
13
  export declare const endpointRequest: (config?: EndpointRequestMixinOptions) => (<T extends AConstructorTypeOf<FrontgateClient<usedHooksByEndpointRequest & DefaultFrontgateClientHooks>>>(Base: T) => {
14
14
  new (...args: any[]): {
15
15
  requestEndpoint<ResponseData = any>(method: HighLevelRequestMethod, path: string, data?: Record<string, unknown>, options?: HighLevelRequestOptions, timeOutInMs?: number): Promise<HighLevelRequestResult<ResponseData>>;
16
- #hasNextChunk(msg: PtlMessage): boolean;
16
+ "__#private@#hasNextChunk"(msg: PtlMessage): boolean;
17
17
  logger: import("..").LoggerInterface | undefined;
18
18
  hooks: import("hookable").Hookable<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase>>;
19
- readonly #defaultTimeoutInMs: number;
19
+ readonly "__#private@#defaultTimeoutInMs": number;
20
20
  get defaultTimeoutInMs(): number;
21
21
  log(level: import("..").LogLevel, ...args: unknown[]): void;
22
22
  };
@@ -1,8 +1,7 @@
1
1
  import { type AConstructorTypeOf, type CalledHooksByConnection } from '.';
2
2
  import type { DefaultFrontgateClientHooks, FrontgateClient } from '../FrontgateClient';
3
3
  import type { HTTPProxyRequestResult } from '../common/interfaces/result/HTTPProxyRequestResult';
4
- import type { HTTPProxyRequestBody } from '../message';
5
- import { type HTTPMethod, type HTTPProxyRequestOptions } from '../message';
4
+ import type { HTTPProxyRequestBody, HTTPMethod, HTTPProxyRequestOptions } from '../message';
6
5
  export interface HTTPProxyRequestable {
7
6
  requestProxyEndpoint: (method: HTTPMethod, path: string, body?: Record<string, unknown>, options?: HTTPProxyRequestOptions, timeOutInMs?: number) => Promise<HTTPProxyRequestResult>;
8
7
  }
@@ -12,7 +11,7 @@ export declare const httpProxyRequest: () => (<T extends AConstructorTypeOf<Fron
12
11
  requestProxyEndpoint(method: HTTPMethod, path: string, body?: HTTPProxyRequestBody, options?: HTTPProxyRequestOptions, timeOutInMs?: number): Promise<HTTPProxyRequestResult>;
13
12
  logger: import("..").LoggerInterface | undefined;
14
13
  hooks: import("hookable").Hookable<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase>>;
15
- readonly #defaultTimeoutInMs: number;
14
+ readonly "__#private@#defaultTimeoutInMs": number;
16
15
  get defaultTimeoutInMs(): number;
17
16
  log(level: import("..").LogLevel, ...args: unknown[]): void;
18
17
  };
@@ -1,11 +1,11 @@
1
1
  import { type AConstructorTypeOf } from '.';
2
2
  import type { FrontgateClient } from '../FrontgateClient';
3
3
  import type { LogLevel, LoggerInterface } from '../logger';
4
- export declare const logger: (logger: LoggerInterface, logLevel?: LogLevel) => (<T extends AConstructorTypeOf<FrontgateClient>>(Base: T) => {
4
+ export declare const logger: (loggerInstance: LoggerInterface, logLevel?: LogLevel) => (<T extends AConstructorTypeOf<FrontgateClient>>(Base: T) => {
5
5
  new (...args: any[]): {
6
6
  logger: LoggerInterface | undefined;
7
7
  hooks: import("hookable").Hookable<import("../FrontgateClient").CalledHooksByBase, "base:log">;
8
- readonly #defaultTimeoutInMs: number;
8
+ readonly "__#private@#defaultTimeoutInMs": number;
9
9
  get defaultTimeoutInMs(): number;
10
10
  log(level: LogLevel, ...args: unknown[]): void;
11
11
  };
@@ -4,10 +4,10 @@ import { Compressor } from '../connection/util/Compressor';
4
4
  export type usedHooksByMessageCompressor = CalledHooksByConnection;
5
5
  export declare const messageCompressor: () => (<T extends AConstructorTypeOf<FrontgateClient<usedHooksByMessageCompressor & DefaultFrontgateClientHooks>>>(Base: T) => {
6
6
  new (...args: any[]): {
7
- readonly #compressor: Compressor;
7
+ readonly "__#private@#compressor": Compressor;
8
8
  logger: import("..").LoggerInterface | undefined;
9
9
  hooks: import("hookable").Hookable<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase>>;
10
- readonly #defaultTimeoutInMs: number;
10
+ readonly "__#private@#defaultTimeoutInMs": number;
11
11
  get defaultTimeoutInMs(): number;
12
12
  log(level: import("..").LogLevel, ...args: unknown[]): void;
13
13
  };
@@ -3,7 +3,7 @@ import { type AConstructorTypeOf, type CalledHooksByConnection } from '.';
3
3
  import type { DefaultFrontgateClientHooks, FrontgateClient } from '../FrontgateClient';
4
4
  export declare const openTelemetry: () => (<T extends AConstructorTypeOf<FrontgateClient<CalledHooksByConnection & DefaultFrontgateClientHooks>>>(Base: T) => {
5
5
  new (...args: any[]): {
6
- #createSpanHeader(tracing: SpanContext): {
6
+ "__#private@#createSpanHeader"(tracing: SpanContext): {
7
7
  tracing: {
8
8
  value: {
9
9
  value: number[];
@@ -12,7 +12,7 @@ export declare const openTelemetry: () => (<T extends AConstructorTypeOf<Frontga
12
12
  } | undefined;
13
13
  logger: import("..").LoggerInterface | undefined;
14
14
  hooks: import("hookable").Hookable<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase>>;
15
- readonly #defaultTimeoutInMs: number;
15
+ readonly "__#private@#defaultTimeoutInMs": number;
16
16
  get defaultTimeoutInMs(): number;
17
17
  log(level: import("..").LogLevel, ...args: unknown[]): void;
18
18
  };
@@ -10,7 +10,7 @@ export declare const pingRequests: () => (<T extends AConstructorTypeOf<Frontgat
10
10
  ping(timeOutInMs?: number): Promise<PingResponse>;
11
11
  logger: import("..").LoggerInterface | undefined;
12
12
  hooks: import("hookable").Hookable<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase>>;
13
- readonly #defaultTimeoutInMs: number;
13
+ readonly "__#private@#defaultTimeoutInMs": number;
14
14
  get defaultTimeoutInMs(): number;
15
15
  log(level: import("..").LogLevel, ...args: unknown[]): void;
16
16
  };
@@ -10,12 +10,12 @@ export interface CalledHooksByReconnect {
10
10
  }
11
11
  export declare const reconnect: (reconnectDelaysInMs?: number[]) => (<T extends AConstructorTypeOf<FrontgateClient<usedHooksByReconnect & CalledHooksByReconnect & DefaultFrontgateClientHooks>>>(Base: T) => {
12
12
  new (...args: any[]): {
13
- #reconnectAttempts: number;
14
- readonly #reconnectDelays: number[];
15
- #reconnectTimer: NodeJS.Timeout | undefined;
13
+ "__#private@#reconnectAttempts": number;
14
+ readonly "__#private@#reconnectDelays": number[];
15
+ "__#private@#reconnectTimer": NodeJS.Timeout | undefined;
16
16
  logger: import("../logger").LoggerInterface | undefined;
17
17
  hooks: import("hookable").Hookable<CalledHooksByConnection & CalledHooksByReconnect & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & CalledHooksByReconnect & import("../FrontgateClient").CalledHooksByBase>>;
18
- readonly #defaultTimeoutInMs: number;
18
+ readonly "__#private@#defaultTimeoutInMs": number;
19
19
  get defaultTimeoutInMs(): number;
20
20
  log(level: LogLevel, ...args: unknown[]): void;
21
21
  };
@@ -9,7 +9,7 @@ export declare const remotelogger: (identifier?: number) => (<T extends AConstru
9
9
  logRemotely(message: string): Promise<any>;
10
10
  logger: import("..").LoggerInterface | undefined;
11
11
  hooks: import("hookable").Hookable<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase>>;
12
- readonly #defaultTimeoutInMs: number;
12
+ readonly "__#private@#defaultTimeoutInMs": number;
13
13
  get defaultTimeoutInMs(): number;
14
14
  log(level: import("..").LogLevel, ...args: unknown[]): void;
15
15
  };
@@ -10,7 +10,7 @@ export declare const requests: () => (<T extends AConstructorTypeOf<FrontgateCli
10
10
  request(request: AbstractMdg2Request, timeOutInMs?: number): Promise<Mdg2Response>;
11
11
  logger: import("..").LoggerInterface | undefined;
12
12
  hooks: import("hookable").Hookable<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../FrontgateClient").CalledHooksByBase>>;
13
- readonly #defaultTimeoutInMs: number;
13
+ readonly "__#private@#defaultTimeoutInMs": number;
14
14
  get defaultTimeoutInMs(): number;
15
15
  log(level: import("..").LogLevel, ...args: unknown[]): void;
16
16
  };
@@ -1,4 +1,4 @@
1
- import { type AConstructorTypeOf, type FrontgateClientWSConnectionConfig, type CalledHooksByAuth, type CalledHooksByConnection } from '../.';
1
+ import type { AConstructorTypeOf, FrontgateClientWSConnectionConfig, CalledHooksByAuth, CalledHooksByConnection } from '../.';
2
2
  import type { DefaultFrontgateClientHooks, FrontgateClient } from '../../FrontgateClient';
3
3
  import type { PtlMessage } from '../../common/interfaces';
4
4
  import { AuthenticationRequest, ConfigurationRequest } from '../../compat';
@@ -8,15 +8,15 @@ import type { AuthenticationResponse } from '../../message/response/Authenticati
8
8
  export type usedHooksByAppAuth = CalledHooksByConnection;
9
9
  export declare const appAuth: (idApplication: number, idUser: number, clientCredentials: string, deploymentStage: DeploymentStage) => (<T extends AConstructorTypeOf<FrontgateClient<usedHooksByAppAuth & CalledHooksByAuth & DefaultFrontgateClientHooks>>>(Base: T) => {
10
10
  new (...args: any[]): {
11
- readonly #sharedSecret: Buffer;
12
- readonly #clientSecret: Buffer;
13
- #createAuthenticationRequest(): AuthenticationRequest;
14
- #createConfigurationRequest(msg: AuthenticationResponse, conf: FrontgateClientWSConnectionConfig): ConfigurationRequest;
15
- #createTransportLayerRequestHeaderConfigurationRequest(): PtlMessage;
16
- #submit<M extends PtlMessage>(message: PtlMessage): Promise<M>;
11
+ readonly "__#private@#sharedSecret": Buffer;
12
+ readonly "__#private@#clientSecret": Buffer;
13
+ "__#private@#createAuthenticationRequest"(): AuthenticationRequest;
14
+ "__#private@#createConfigurationRequest"(msg: AuthenticationResponse, conf: FrontgateClientWSConnectionConfig): ConfigurationRequest;
15
+ "__#private@#createTransportLayerRequestHeaderConfigurationRequest"(): PtlMessage;
16
+ "__#private@#submit"<M extends PtlMessage>(message: PtlMessage): Promise<M>;
17
17
  logger: import("../../logger").LoggerInterface | undefined;
18
18
  hooks: import("hookable").Hookable<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase>>;
19
- readonly #defaultTimeoutInMs: number;
19
+ readonly "__#private@#defaultTimeoutInMs": number;
20
20
  get defaultTimeoutInMs(): number;
21
21
  log(level: LogLevel, ...args: unknown[]): void;
22
22
  };
@@ -6,7 +6,7 @@ export declare const cookieTokenAuth: (secondFactor: string) => (<T extends ACon
6
6
  new (...args: any[]): {
7
7
  logger: import("../../logger").LoggerInterface | undefined;
8
8
  hooks: import("hookable").Hookable<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase>>;
9
- readonly #defaultTimeoutInMs: number;
9
+ readonly "__#private@#defaultTimeoutInMs": number;
10
10
  get defaultTimeoutInMs(): number;
11
11
  log(level: LogLevel, ...args: unknown[]): void;
12
12
  };
@@ -5,46 +5,46 @@ import { LogLevel } from '../../logger';
5
5
  export type usedHooksByFetchAuth = CalledHooksByConnection;
6
6
  export declare const fetchAuth: (config: FrontgateClientFetchWSConnectionConfig, input: RequestInfo, init?: RequestInit) => (<T extends AConstructorTypeOf<FrontgateClient<usedHooksByFetchAuth & CalledHooksByAuth & DefaultFrontgateClientHooks>>>(Base: T) => {
7
7
  new (...args: any[]): {
8
- #token: string;
9
- #secondFactor: string;
10
- readonly #requestInfo: RequestInfo;
11
- readonly #requestInit: RequestInit | undefined;
12
- #fetchConnectionConfiguration(): Promise<{
8
+ "__#private@#token": string;
9
+ "__#private@#secondFactor": string;
10
+ readonly "__#private@#requestInfo": RequestInfo;
11
+ readonly "__#private@#requestInit": RequestInit | undefined;
12
+ "__#private@#fetchConnectionConfiguration"(): Promise<{
13
13
  url: string;
14
14
  authtenticationType: string | null;
15
15
  authenticationToken: string | null;
16
16
  splitAuthenticationTokenSecondFactor: string | null;
17
17
  }>;
18
- #ws: import("ws") | undefined;
19
- #wsConf: import("../.").InternalFrontgateClientWSConnectionConfig | undefined;
20
- #wsStateInternal: "connecting" | "connected" | "authenticated" | "disconnected";
21
- #keepAliveTimer: NodeJS.Timeout | undefined;
22
- #jobId: number;
23
- #idApplication: number;
24
- #idUser: number;
25
- get #wsState(): "connecting" | "connected" | "authenticated" | "disconnected";
26
- #message_buffer_size: number;
27
- readonly #msgBuffer: FrontgateMessage[];
28
- set conf(conf: FrontgateClientWSConnectionConfig);
18
+ "__#private@#ws": import("ws") | undefined;
19
+ "__#private@#wsConf": import("../.").InternalFrontgateClientWSConnectionConfig | undefined;
20
+ "__#private@#wsStateInternal": "connecting" | "connected" | "authenticated" | "disconnected";
21
+ "__#private@#keepAliveTimer": NodeJS.Timeout | undefined;
22
+ "__#private@#jobId": number;
23
+ "__#private@#idApplication": number;
24
+ "__#private@#idUser": number;
25
+ get "__#private@#wsState"(): "connecting" | "connected" | "authenticated" | "disconnected";
26
+ "__#private@#message_buffer_size": number;
27
+ readonly "__#private@#msgBuffer": FrontgateMessage[];
28
+ set conf(newConf: FrontgateClientWSConnectionConfig);
29
29
  connect(): Promise<void>;
30
30
  disconnect(): Promise<void>;
31
- #getDisconnectMessage(): import("../..").DisconnectionMessage;
32
- #getKeepAliveMessage(): {
31
+ "__#private@#getDisconnectMessage"(): import("../..").DisconnectionMessage;
32
+ "__#private@#getKeepAliveMessage"(): {
33
33
  Message: string;
34
34
  Version: number;
35
35
  };
36
- #sendMessage(msg: PtlMessage): Promise<void>;
37
- #respondToMessage(msgObj: PtlMessage): void;
38
- #addJobIdToMessage(msg: PtlMessage): number;
39
- #prepareMessage(msg: PtlMessage): void;
40
- #createErrorMessage(error: string, msg: PtlMessage): import("../..").ErrorResponse;
41
- #applyDefaultsToConfig(conf: FrontgateClientWSConnectionConfig): import("../.").InternalFrontgateClientWSConnectionConfig;
36
+ "__#private@#sendMessage"(msg: PtlMessage): Promise<void>;
37
+ "__#private@#respondToMessage"(msgObj: PtlMessage): void;
38
+ "__#private@#addJobIdToMessage"(msg: PtlMessage): number;
39
+ "__#private@#prepareMessage"(msg: PtlMessage): void;
40
+ "__#private@#createErrorMessage"(error: string, msg: PtlMessage): import("../..").ErrorResponse;
41
+ "__#private@#applyDefaultsToConfig"(oldConf: FrontgateClientWSConnectionConfig): import("../.").InternalFrontgateClientWSConnectionConfig;
42
42
  isConnected(): boolean;
43
43
  isDisconnected(): boolean;
44
44
  isReadyToConnect(): boolean;
45
45
  logger: import("../../logger").LoggerInterface | undefined;
46
46
  hooks: import("hookable").Hookable<import("../ReconnectMixin").CalledHooksByReconnect & CalledHooksByAuth & CalledHooksByConnection & import("../../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<import("../ReconnectMixin").CalledHooksByReconnect & CalledHooksByAuth & CalledHooksByConnection & import("../../FrontgateClient").CalledHooksByBase>> & import("hookable").Hookable<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase>>;
47
- readonly #defaultTimeoutInMs: number;
47
+ readonly "__#private@#defaultTimeoutInMs": number;
48
48
  get defaultTimeoutInMs(): number;
49
49
  log: ((level: LogLevel, ...args: unknown[]) => void) & ((level: LogLevel, ...args: unknown[]) => void);
50
50
  };
@@ -12,11 +12,11 @@ export interface SessionConnectable extends Connectable {
12
12
  }
13
13
  export declare const sessionAuth: (config: FrontgateClientWSConnectionConfig, idApplication: number, username: string, password: string, deploymentStage: DeploymentStage) => (<T extends AConstructorTypeOf<FrontgateClient<usedHooksBySessionAuth & CalledHooksByAuth & DefaultFrontgateClientHooks>>>(Base: T) => {
14
14
  new (...args: any[]): {
15
- #tokenConnectionAttempt: boolean;
16
- #logOut: boolean;
17
- #mdg2wstoken: string | undefined;
18
- readonly #sharedSecret: Buffer;
19
- readonly #clientSecret: Buffer;
15
+ "__#private@#tokenConnectionAttempt": boolean;
16
+ "__#private@#logOut": boolean;
17
+ "__#private@#mdg2wstoken": string | undefined;
18
+ readonly "__#private@#sharedSecret": Buffer;
19
+ readonly "__#private@#clientSecret": Buffer;
20
20
  disconnect: () => Promise<void>;
21
21
  isReadyToConnect: () => boolean;
22
22
  isConnected: () => boolean;
@@ -24,40 +24,40 @@ export declare const sessionAuth: (config: FrontgateClientWSConnectionConfig, id
24
24
  connect(): Promise<void>;
25
25
  connectSession(): Promise<void>;
26
26
  logout(): Promise<void>;
27
- #requestOtpAuthenticationTokenForSessionHandling(lifetimeSeconds?: number, idUser?: number, idApplication?: number, timeOutInMs?: number): Promise<{
27
+ "__#private@#requestOtpAuthenticationTokenForSessionHandling"(lifetimeSeconds?: number, idUser?: number, idApplicationOtp?: number, timeOutInMs?: number): Promise<{
28
28
  token: string;
29
29
  expiry: number;
30
30
  }>;
31
- #toUrlBase64(strInBase64: string): string;
32
- #createAuthenticationRequest(): AuthenticationRequest;
33
- #createConfigurationRequest(msg: AuthenticationResponse, conf: FrontgateClientWSConnectionConfig): ConfigurationRequest;
34
- #createTransportLayerRequestHeaderConfigurationRequest(): PtlMessage;
35
- #submit<M extends PtlMessage>(message: PtlMessage): Promise<M>;
36
- #ws: import("ws") | undefined;
37
- #wsConf: import("../.").InternalFrontgateClientWSConnectionConfig | undefined;
38
- #wsStateInternal: "connecting" | "connected" | "authenticated" | "disconnected";
39
- #keepAliveTimer: NodeJS.Timeout | undefined;
40
- #jobId: number;
41
- #idApplication: number;
42
- #idUser: number;
43
- get #wsState(): "connecting" | "connected" | "authenticated" | "disconnected";
44
- #message_buffer_size: number;
45
- readonly #msgBuffer: FrontgateMessage[];
46
- set conf(conf: FrontgateClientWSConnectionConfig);
47
- #getDisconnectMessage(): import("../../message").DisconnectionMessage;
48
- #getKeepAliveMessage(): {
31
+ "__#private@#toUrlBase64"(strInBase64: string): string;
32
+ "__#private@#createAuthenticationRequest"(): AuthenticationRequest;
33
+ "__#private@#createConfigurationRequest"(msg: AuthenticationResponse, conf: FrontgateClientWSConnectionConfig): ConfigurationRequest;
34
+ "__#private@#createTransportLayerRequestHeaderConfigurationRequest"(): PtlMessage;
35
+ "__#private@#submit"<M extends PtlMessage>(message: PtlMessage): Promise<M>;
36
+ "__#private@#ws": import("ws") | undefined;
37
+ "__#private@#wsConf": import("../.").InternalFrontgateClientWSConnectionConfig | undefined;
38
+ "__#private@#wsStateInternal": "connecting" | "connected" | "authenticated" | "disconnected";
39
+ "__#private@#keepAliveTimer": NodeJS.Timeout | undefined;
40
+ "__#private@#jobId": number;
41
+ "__#private@#idApplication": number;
42
+ "__#private@#idUser": number;
43
+ get "__#private@#wsState"(): "connecting" | "connected" | "authenticated" | "disconnected";
44
+ "__#private@#message_buffer_size": number;
45
+ readonly "__#private@#msgBuffer": FrontgateMessage[];
46
+ set conf(newConf: FrontgateClientWSConnectionConfig);
47
+ "__#private@#getDisconnectMessage"(): import("../../message").DisconnectionMessage;
48
+ "__#private@#getKeepAliveMessage"(): {
49
49
  Message: string;
50
50
  Version: number;
51
51
  };
52
- #sendMessage(msg: PtlMessage): Promise<void>;
53
- #respondToMessage(msgObj: PtlMessage): void;
54
- #addJobIdToMessage(msg: PtlMessage): number;
55
- #prepareMessage(msg: PtlMessage): void;
56
- #createErrorMessage(error: string, msg: PtlMessage): import("../../message").ErrorResponse;
57
- #applyDefaultsToConfig(conf: FrontgateClientWSConnectionConfig): import("../.").InternalFrontgateClientWSConnectionConfig;
52
+ "__#private@#sendMessage"(msg: PtlMessage): Promise<void>;
53
+ "__#private@#respondToMessage"(msgObj: PtlMessage): void;
54
+ "__#private@#addJobIdToMessage"(msg: PtlMessage): number;
55
+ "__#private@#prepareMessage"(msg: PtlMessage): void;
56
+ "__#private@#createErrorMessage"(error: string, msg: PtlMessage): import("../../message").ErrorResponse;
57
+ "__#private@#applyDefaultsToConfig"(oldConf: FrontgateClientWSConnectionConfig): import("../.").InternalFrontgateClientWSConnectionConfig;
58
58
  logger: import("../../logger").LoggerInterface | undefined;
59
59
  hooks: import("hookable").Hookable<import("../ReconnectMixin").CalledHooksByReconnect & CalledHooksByAuth & CalledHooksByConnection & import("../../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<import("../ReconnectMixin").CalledHooksByReconnect & CalledHooksByAuth & CalledHooksByConnection & import("../../FrontgateClient").CalledHooksByBase>> & import("hookable").Hookable<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase>>;
60
- readonly #defaultTimeoutInMs: number;
60
+ readonly "__#private@#defaultTimeoutInMs": number;
61
61
  get defaultTimeoutInMs(): number;
62
62
  log: ((level: LogLevel, ...args: unknown[]) => void) & ((level: LogLevel, ...args: unknown[]) => void);
63
63
  };
@@ -7,11 +7,11 @@ export interface TokenAuth {
7
7
  }
8
8
  export declare const tokenAuth: (token?: string) => (<T extends AConstructorTypeOf<FrontgateClient<usedHooksByTokenAuth & CalledHooksByAuth & DefaultFrontgateClientHooks>>>(Base: T) => {
9
9
  new (...args: any[]): {
10
- #token: string;
11
- set token(token: string);
10
+ "__#private@#token": string;
11
+ set token(newToken: string);
12
12
  logger: import("../../logger").LoggerInterface | undefined;
13
13
  hooks: import("hookable").Hookable<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase>>;
14
- readonly #defaultTimeoutInMs: number;
14
+ readonly "__#private@#defaultTimeoutInMs": number;
15
15
  get defaultTimeoutInMs(): number;
16
16
  log(level: LogLevel, ...args: unknown[]): void;
17
17
  };
@@ -1,4 +1,4 @@
1
- import { type AConstructorTypeOf, type FrontgateClientWSConnectionConfig, type CalledHooksByAuth, type CalledHooksByConnection } from '../.';
1
+ import type { AConstructorTypeOf, FrontgateClientWSConnectionConfig, CalledHooksByAuth, CalledHooksByConnection } from '../.';
2
2
  import type { DefaultFrontgateClientHooks, FrontgateClient } from '../../FrontgateClient';
3
3
  import { type DeploymentStage } from '../../connection';
4
4
  import { AuthenticationRequest, ConfigurationRequest } from '../../compat';
@@ -8,15 +8,15 @@ import type { AuthenticationResponse } from '../../message/response/Authenticati
8
8
  export type usedHooksByUserCredentialAuth = CalledHooksByConnection;
9
9
  export declare const userCredentialAuth: (idApplication: number, username: string, credentials: string, deploymentStage: DeploymentStage) => (<T extends AConstructorTypeOf<FrontgateClient<usedHooksByUserCredentialAuth & CalledHooksByAuth & DefaultFrontgateClientHooks>>>(Base: T) => {
10
10
  new (...args: any[]): {
11
- readonly #sharedSecret: Buffer;
12
- readonly #clientSecret: Buffer;
13
- #createAuthenticationRequest(): AuthenticationRequest;
14
- #createConfigurationRequest(msg: AuthenticationResponse, conf: FrontgateClientWSConnectionConfig): ConfigurationRequest;
15
- #createTransportLayerRequestHeaderConfigurationRequest(): PtlMessage;
16
- #submit<M extends PtlMessage>(message: PtlMessage): Promise<M>;
11
+ readonly "__#private@#sharedSecret": Buffer;
12
+ readonly "__#private@#clientSecret": Buffer;
13
+ "__#private@#createAuthenticationRequest"(): AuthenticationRequest;
14
+ "__#private@#createConfigurationRequest"(msg: AuthenticationResponse, conf: FrontgateClientWSConnectionConfig): ConfigurationRequest;
15
+ "__#private@#createTransportLayerRequestHeaderConfigurationRequest"(): PtlMessage;
16
+ "__#private@#submit"<M extends PtlMessage>(message: PtlMessage): Promise<M>;
17
17
  logger: import("../../logger").LoggerInterface | undefined;
18
18
  hooks: import("hookable").Hookable<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase>>;
19
- readonly #defaultTimeoutInMs: number;
19
+ readonly "__#private@#defaultTimeoutInMs": number;
20
20
  get defaultTimeoutInMs(): number;
21
21
  log(level: LogLevel, ...args: unknown[]): void;
22
22
  };
@@ -1,4 +1,4 @@
1
- import { type AConstructorTypeOf, type FrontgateClientWSConnectionConfig, type CalledHooksByAuth, type CalledHooksByConnection } from '../.';
1
+ import type { AConstructorTypeOf, FrontgateClientWSConnectionConfig, CalledHooksByAuth, CalledHooksByConnection } from '../.';
2
2
  import type { DefaultFrontgateClientHooks, FrontgateClient } from '../../FrontgateClient';
3
3
  import { type DeploymentStage } from '../../connection';
4
4
  import { AuthenticationRequest, ConfigurationRequest } from '../../compat';
@@ -8,15 +8,15 @@ import type { AuthenticationResponse } from '../../message/response/Authenticati
8
8
  export type usedHooksByUserPasswordAuth = CalledHooksByConnection;
9
9
  export declare const userPasswordAuth: (idApplication: number, username: string, password: string, deploymentStage: DeploymentStage) => (<T extends AConstructorTypeOf<FrontgateClient<usedHooksByUserPasswordAuth & CalledHooksByAuth & DefaultFrontgateClientHooks>>>(Base: T) => {
10
10
  new (...args: any[]): {
11
- readonly #sharedSecret: Buffer;
12
- readonly #clientSecret: Buffer;
13
- #createAuthenticationRequest(): AuthenticationRequest;
14
- #createConfigurationRequest(msg: AuthenticationResponse, conf: FrontgateClientWSConnectionConfig): ConfigurationRequest;
15
- #createTransportLayerRequestHeaderConfigurationRequest(): PtlMessage;
16
- #submit<M extends PtlMessage>(message: PtlMessage): Promise<M>;
11
+ readonly "__#private@#sharedSecret": Buffer;
12
+ readonly "__#private@#clientSecret": Buffer;
13
+ "__#private@#createAuthenticationRequest"(): AuthenticationRequest;
14
+ "__#private@#createConfigurationRequest"(msg: AuthenticationResponse, conf: FrontgateClientWSConnectionConfig): ConfigurationRequest;
15
+ "__#private@#createTransportLayerRequestHeaderConfigurationRequest"(): PtlMessage;
16
+ "__#private@#submit"<M extends PtlMessage>(message: PtlMessage): Promise<M>;
17
17
  logger: import("../../logger").LoggerInterface | undefined;
18
18
  hooks: import("hookable").Hookable<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & CalledHooksByAuth & import("../../FrontgateClient").CalledHooksByBase>>;
19
- readonly #defaultTimeoutInMs: number;
19
+ readonly "__#private@#defaultTimeoutInMs": number;
20
20
  get defaultTimeoutInMs(): number;
21
21
  log(level: LogLevel, ...args: unknown[]): void;
22
22
  };
@@ -31,36 +31,36 @@ export interface InternalFrontgateClientWSConnectionConfig {
31
31
  export type usedHooksByConnection = CalledHooksByReconnect & CalledHooksByAuth;
32
32
  export declare const wsConnection: (conf?: FrontgateClientWSConnectionConfig) => (<T extends AConstructorTypeOf<FrontgateClient<usedHooksByConnection & CalledHooksByReconnect & CalledHooksByConnection & DefaultFrontgateClientHooks>>>(Base: T) => {
33
33
  new (...args: any[]): {
34
- #ws: WebSocket | undefined;
35
- #wsConf: InternalFrontgateClientWSConnectionConfig | undefined;
36
- #wsStateInternal: "connecting" | "connected" | "authenticated" | "disconnected";
37
- #keepAliveTimer: NodeJS.Timeout | undefined;
38
- #jobId: number;
39
- #idApplication: number;
40
- #idUser: number;
41
- get #wsState(): "connecting" | "connected" | "authenticated" | "disconnected";
42
- #message_buffer_size: number;
43
- readonly #msgBuffer: FrontgateMessage[];
44
- set conf(conf: FrontgateClientWSConnectionConfig);
34
+ "__#private@#ws": WebSocket | undefined;
35
+ "__#private@#wsConf": InternalFrontgateClientWSConnectionConfig | undefined;
36
+ "__#private@#wsStateInternal": "connecting" | "connected" | "authenticated" | "disconnected";
37
+ "__#private@#keepAliveTimer": NodeJS.Timeout | undefined;
38
+ "__#private@#jobId": number;
39
+ "__#private@#idApplication": number;
40
+ "__#private@#idUser": number;
41
+ get "__#private@#wsState"(): "connecting" | "connected" | "authenticated" | "disconnected";
42
+ "__#private@#message_buffer_size": number;
43
+ readonly "__#private@#msgBuffer": FrontgateMessage[];
44
+ set conf(newConf: FrontgateClientWSConnectionConfig);
45
45
  connect(): Promise<void>;
46
46
  disconnect(): Promise<void>;
47
- #getDisconnectMessage(): DisconnectionMessage;
48
- #getKeepAliveMessage(): {
47
+ "__#private@#getDisconnectMessage"(): DisconnectionMessage;
48
+ "__#private@#getKeepAliveMessage"(): {
49
49
  Message: string;
50
50
  Version: number;
51
51
  };
52
- #sendMessage(msg: PtlMessage): Promise<void>;
53
- #respondToMessage(msgObj: PtlMessage): void;
54
- #addJobIdToMessage(msg: PtlMessage): number;
55
- #prepareMessage(msg: PtlMessage): void;
56
- #createErrorMessage(error: string, msg: PtlMessage): ErrorResponse;
57
- #applyDefaultsToConfig(conf: FrontgateClientWSConnectionConfig): InternalFrontgateClientWSConnectionConfig;
52
+ "__#private@#sendMessage"(msg: PtlMessage): Promise<void>;
53
+ "__#private@#respondToMessage"(msgObj: PtlMessage): void;
54
+ "__#private@#addJobIdToMessage"(msg: PtlMessage): number;
55
+ "__#private@#prepareMessage"(msg: PtlMessage): void;
56
+ "__#private@#createErrorMessage"(error: string, msg: PtlMessage): ErrorResponse;
57
+ "__#private@#applyDefaultsToConfig"(oldConf: FrontgateClientWSConnectionConfig): InternalFrontgateClientWSConnectionConfig;
58
58
  isConnected(): boolean;
59
59
  isDisconnected(): boolean;
60
60
  isReadyToConnect(): boolean;
61
61
  logger: import("../../logger").LoggerInterface | undefined;
62
62
  hooks: import("hookable").Hookable<CalledHooksByReconnect & CalledHooksByAuth & CalledHooksByConnection & import("../../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByReconnect & CalledHooksByAuth & CalledHooksByConnection & import("../../FrontgateClient").CalledHooksByBase>>;
63
- readonly #defaultTimeoutInMs: number;
63
+ readonly "__#private@#defaultTimeoutInMs": number;
64
64
  get defaultTimeoutInMs(): number;
65
65
  log(level: LogLevel, ...args: unknown[]): void;
66
66
  };
@@ -1,5 +1,4 @@
1
1
  import type { PtlMessage } from '../../common/interfaces';
2
- import type { DisconnectionMessage } from '../../message';
3
2
  import type { CloseEvent } from 'ws';
4
3
  import type { FrontgateClientWSConnectionConfig } from './FrontgateWSMixin';
5
4
  export * from './FrontgateWSMixin';
@@ -25,7 +24,7 @@ export interface CalledHooksByConnection {
25
24
  }) => void;
26
25
  'frontgateConnection:connected': (conf: any) => void;
27
26
  'frontgateConnection:error': (err: any) => void;
28
- 'frontgateConnection:disconnected': (event: DisconnectionMessage | any) => void;
27
+ 'frontgateConnection:disconnected': (event: any) => void;
29
28
  'frontgateConnection:beforeSerializeMessage': (msg: PtlMessage) => void;
30
29
  'frontgateConnection:beforeSendMessage': (data: {
31
30
  msg: string;
@@ -12,13 +12,13 @@ export interface EndpointSubscriptionsConfig {
12
12
  }
13
13
  export declare const endpointSubscriptions: (originalConfig?: EndpointSubscriptionsConfig) => (<T extends AConstructorTypeOf<FrontgateClient<usedHooksByEndpointSubscribable & DefaultFrontgateClientHooks>>>(Base: T) => {
14
14
  new (...args: any[]): {
15
- readonly #subscriptions: Map<string, FrontgateClientEndpointDataObserver>;
16
- readonly #subscriptionCounts: Map<string, number>;
17
- readonly #inFlights: Map<string, Promise<FrontgateClientEndpointDataObserver<HighLevelResponseData<unknown>>>>;
15
+ readonly "__#private@#subscriptions": Map<string, FrontgateClientEndpointDataObserver>;
16
+ readonly "__#private@#subscriptionCounts": Map<string, number>;
17
+ readonly "__#private@#inFlights": Map<string, Promise<FrontgateClientEndpointDataObserver<HighLevelResponseData<unknown>>>>;
18
18
  observeEndpoint<ResponseData extends Record<string, any> = Record<string, any>>(method: HighLevelRequestMethod, path: string, data: Record<string, unknown>, requestOptions?: HighLevelRequestOptions): Promise<FrontgateClientEndpointDataObserver<HighLevelResponseData<any>>>;
19
19
  logger: import("../../logger").LoggerInterface | undefined;
20
20
  hooks: import("hookable").Hookable<CalledHooksByConnection & import("../../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../../FrontgateClient").CalledHooksByBase>>;
21
- readonly #defaultTimeoutInMs: number;
21
+ readonly "__#private@#defaultTimeoutInMs": number;
22
22
  get defaultTimeoutInMs(): number;
23
23
  log(level: LogLevel, ...args: unknown[]): void;
24
24
  };
@@ -11,16 +11,16 @@ export interface RawSubscribable {
11
11
  export type usedHooksByRawSubscribable = CalledHooksByConnection;
12
12
  export declare const rawSubscriptions: () => (<T extends AConstructorTypeOf<FrontgateClient<usedHooksByRawSubscribable & DefaultFrontgateClientHooks>>>(Base: T) => {
13
13
  new (...args: any[]): {
14
- readonly #subscriptions: Map<string, {
14
+ readonly "__#private@#subscriptions": Map<string, {
15
15
  observer: FrontgateClientDataObserver<any>;
16
16
  count: number;
17
17
  }>;
18
18
  observe<ResponseData extends Record<string, any> = PtlMessage>(request: AbstractMdg2Request, timeOutInMs?: number): Promise<FrontgateClientDataObserver<any>>;
19
19
  observeConnectionBased<ResponseData extends Record<string, any> = PtlMessage>(request: AbstractMdg2Request, CancelationRequestConstructor: ConnectionBasedSubscriptionCancelationRequestConstructor, timeOutInMs?: number): Promise<FrontgateClientDataObserver<any>>;
20
- #rawSubscriptionHelper<ResponseData extends Record<string, any> = PtlMessage>(request: AbstractMdg2Request, subscriptionType: "job" | "connection", CancelationRequestConstructor: ConnectionBasedSubscriptionCancelationRequestConstructor | undefined, timeOutInMs?: number): Promise<FrontgateClientDataObserver<any>>;
20
+ "__#private@#rawSubscriptionHelper"<ResponseData extends Record<string, any> = PtlMessage>(request: AbstractMdg2Request, subscriptionType: "job" | "connection", CancelationRequestConstructor: ConnectionBasedSubscriptionCancelationRequestConstructor | undefined, timeOutInMs?: number): Promise<FrontgateClientDataObserver<any>>;
21
21
  logger: import("../../logger").LoggerInterface | undefined;
22
22
  hooks: import("hookable").Hookable<CalledHooksByConnection & import("../../FrontgateClient").CalledHooksByBase, import("hookable").HookKeys<CalledHooksByConnection & import("../../FrontgateClient").CalledHooksByBase>>;
23
- readonly #defaultTimeoutInMs: number;
23
+ readonly "__#private@#defaultTimeoutInMs": number;
24
24
  get defaultTimeoutInMs(): number;
25
25
  log(level: LogLevel, ...args: unknown[]): void;
26
26
  };
@@ -1,7 +1,6 @@
1
1
  import type { SpanContext } from '@opentelemetry/api';
2
2
  export interface NavigatorInterface {
3
- userAgent: string;
4
- platform: string;
3
+ userAgent?: string;
5
4
  }
6
5
  export interface ClientInformation {
7
6
  userAgent: string;