@factset/frontgate-js-sdk 7.0.1 → 7.0.2

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 (41) hide show
  1. package/CHANGELOG.md +40 -11
  2. package/dist/lib/esnext/mixins/HTTPProxyRequestMixin.js +4 -4
  3. package/dist/lib/esnext/mixins/LoggerMixin.js +3 -3
  4. package/dist/lib/esnext/mixins/auth/SessionAuthMixin.js +2 -2
  5. package/dist/lib/esnext/mixins/auth/TokenAuthMixin.js +2 -2
  6. package/dist/lib/esnext/mixins/connection/FrontgateWSMixin.js +9 -9
  7. package/dist/lib/esnext/mixins/subscription/RawSubscriptionMixin.js +11 -11
  8. package/dist/lib/esnext/util/functions.js +4 -5
  9. package/dist/lib/esnext/version.js +1 -1
  10. package/dist/lib/node/mixins/HTTPProxyRequestMixin.js +4 -4
  11. package/dist/lib/node/mixins/LoggerMixin.js +3 -3
  12. package/dist/lib/node/mixins/auth/SessionAuthMixin.js +2 -2
  13. package/dist/lib/node/mixins/auth/TokenAuthMixin.js +2 -2
  14. package/dist/lib/node/mixins/connection/FrontgateWSMixin.js +9 -9
  15. package/dist/lib/node/mixins/subscription/RawSubscriptionMixin.js +11 -11
  16. package/dist/lib/node/util/functions.js +4 -5
  17. package/dist/lib/node/version.js +1 -1
  18. package/dist/lib/types/mixins/AuthTokenRequestMixin.d.ts +1 -1
  19. package/dist/lib/types/mixins/EndpointRequestMixin.d.ts +2 -2
  20. package/dist/lib/types/mixins/HTTPProxyRequestMixin.d.ts +1 -1
  21. package/dist/lib/types/mixins/LoggerMixin.d.ts +2 -2
  22. package/dist/lib/types/mixins/MessageCompressorMixin.d.ts +2 -2
  23. package/dist/lib/types/mixins/OpenTelemetryMixin.d.ts +2 -2
  24. package/dist/lib/types/mixins/PingMixin.d.ts +1 -1
  25. package/dist/lib/types/mixins/ReconnectMixin.d.ts +4 -4
  26. package/dist/lib/types/mixins/RemoteLoggerMixin.d.ts +1 -1
  27. package/dist/lib/types/mixins/RequestMixin.d.ts +1 -1
  28. package/dist/lib/types/mixins/auth/AppAuthMixin.d.ts +7 -7
  29. package/dist/lib/types/mixins/auth/CookieTokenAuthMixin.d.ts +1 -1
  30. package/dist/lib/types/mixins/auth/FetchAuthenticationMixin.d.ts +25 -25
  31. package/dist/lib/types/mixins/auth/SessionAuthMixin.d.ts +31 -31
  32. package/dist/lib/types/mixins/auth/TokenAuthMixin.d.ts +3 -3
  33. package/dist/lib/types/mixins/auth/UserCredentialAuthMixin.d.ts +7 -7
  34. package/dist/lib/types/mixins/auth/UserPasswordAuthMixin.d.ts +7 -7
  35. package/dist/lib/types/mixins/connection/FrontgateWSMixin.d.ts +20 -20
  36. package/dist/lib/types/mixins/subscription/EndpointSubscriptionMixin.d.ts +4 -4
  37. package/dist/lib/types/mixins/subscription/RawSubscriptionMixin.d.ts +3 -3
  38. package/dist/lib/types/util/functions.d.ts +1 -2
  39. package/dist/lib/umd/mdg2.client.min.umd.js +1 -1
  40. package/dist/lib/umd/mdg2.client.umd.js +33 -34
  41. package/package.json +4 -6
@@ -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
  };
@@ -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
  };
@@ -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
  };
@@ -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;