@stackone/transport 2.16.0 → 2.18.0

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.
package/dist/index.d.cts CHANGED
@@ -169,6 +169,7 @@ interface RedisClientConfig {
169
169
  host?: string;
170
170
  port?: number;
171
171
  tls?: boolean;
172
+ keepAlive?: number;
172
173
  reconnect?: boolean;
173
174
  database?: number;
174
175
  }
@@ -183,6 +184,7 @@ declare class RedisClient implements ICacheClient<RedisClientType> {
183
184
  host,
184
185
  port,
185
186
  tls,
187
+ keepAlive,
186
188
  reconnect,
187
189
  database
188
190
  }: RedisClientConfig, logger?: ILogger, invoker?: string): Promise<ICacheClient<RedisClientType> | null>;
@@ -818,6 +820,13 @@ declare class HttpClientManager {
818
820
  static resetInstance(): void;
819
821
  }
820
822
  //#endregion
823
+ //#region src/httpsAgent/buildHttpsAgent.d.ts
824
+ interface CertificatesInput {
825
+ certs?: string[];
826
+ keys?: string[];
827
+ }
828
+ declare const buildHttpsAgent: (certificates?: CertificatesInput) => https.Agent | undefined;
829
+ //#endregion
821
830
  //#region src/httpTransportFactory/types.d.ts
822
831
  type RequestInterceptorTuple = [RequestInterceptor | null, ErrorInterceptor | null, AxiosInterceptorOptions | undefined];
823
832
  type ResponseInterceptorTuple = [ResponseInterceptor | null, ErrorInterceptor | null];
@@ -991,7 +1000,8 @@ interface IRequestClient<RequestConfig$1 = RequestConfig> {
991
1000
  queryParams,
992
1001
  body,
993
1002
  customErrorConfigs,
994
- requestConfig
1003
+ requestConfig,
1004
+ httpsAgent
995
1005
  }: {
996
1006
  httpClient: IHttpClient;
997
1007
  url: string;
@@ -1001,6 +1011,7 @@ interface IRequestClient<RequestConfig$1 = RequestConfig> {
1001
1011
  body: unknown;
1002
1012
  customErrorConfigs?: CustomErrorConfig[];
1003
1013
  requestConfig?: RequestConfig$1;
1014
+ httpsAgent?: https.Agent;
1004
1015
  }) => Promise<HttpResponse>;
1005
1016
  }
1006
1017
  type RequestClientType = 'rest' | 'soap';
@@ -1057,4 +1068,4 @@ type LockEntry = {
1057
1068
  unlock: Unlock;
1058
1069
  };
1059
1070
  //#endregion
1060
- export { type AxiosErrorWithRequestMetadata, type AxiosErrorWithRetryCount, CUSTOM_ERROR_CONFIG_SCHEMA, type ConcurrencyConfig, ConcurrencyManager, type CustomErrorConfig, type ErrorInterceptor, type ErrorMappingFn, EventClient, HttpClient, HttpClientManager, HttpErrorMessages, type HttpHeader, type HttpHeaders, type HttpMethod, HttpMethods, type HttpParameters, type HttpQueryParamValue, type HttpQueryParams, type HttpResponse, HttpResponseError, HttpTransportFactory, type HttpTransportInstanceConfig, type ICacheClient, type IHttpClient, type IRequestClient, type InitializedTransportManagers, InstanceManager, type Interceptor, type InterceptorConfigs, type InterceptorDependencies, type InterceptorDependencyInjector, type InterceptorManager, type Lock, type LockEntry, LockManager, MemoryStore, type MemoryStoreConfig, type OnFulfilledInterceptors, type PruneCount, type PubSubListener, type QueryArrayFormat, QueryArrayFormats, QueueManager, type RateLimitConfig, RateLimitManager, RedisClient, type RedisClientConfig, type RedisClientType, RequestClientFactory, type RequestConfig, type RequestContext, type RequestInterceptor, type RequestInterceptorConfig, type RequestInterceptorTuple, type RequestParameter, RequestParameterLocations, type ResponseInterceptor, type ResponseInterceptorConfig, type ResponseInterceptorTuple, ScriptManager, type StreamHttpResponse, SubscriptionManager, type TransportInitializationOptions, type Unlock, buildHttpClientInstance, convertError, createAuthorizationHeaders, getRetryAfterWaitTime, getTransportInstance, getTransportManagers, initializeTransportSystem, isFailedStatusCode, isInfoStatusCode, isSuccessStatusCode, isTransportSystemReady, parseRequestParameters, serializeHttpResponseError, shutdownTransportSystem, superNormalizeHeaders, translateCustomError };
1071
+ export { type AxiosErrorWithRequestMetadata, type AxiosErrorWithRetryCount, CUSTOM_ERROR_CONFIG_SCHEMA, type CertificatesInput, type ConcurrencyConfig, ConcurrencyManager, type CustomErrorConfig, type ErrorInterceptor, type ErrorMappingFn, EventClient, HttpClient, HttpClientManager, HttpErrorMessages, type HttpHeader, type HttpHeaders, type HttpMethod, HttpMethods, type HttpParameters, type HttpQueryParamValue, type HttpQueryParams, type HttpResponse, HttpResponseError, HttpTransportFactory, type HttpTransportInstanceConfig, type ICacheClient, type IHttpClient, type IRequestClient, type InitializedTransportManagers, InstanceManager, type Interceptor, type InterceptorConfigs, type InterceptorDependencies, type InterceptorDependencyInjector, type InterceptorManager, type Lock, type LockEntry, LockManager, MemoryStore, type MemoryStoreConfig, type OnFulfilledInterceptors, type PruneCount, type PubSubListener, type QueryArrayFormat, QueryArrayFormats, QueueManager, type RateLimitConfig, RateLimitManager, RedisClient, type RedisClientConfig, type RedisClientType, RequestClientFactory, type RequestConfig, type RequestContext, type RequestInterceptor, type RequestInterceptorConfig, type RequestInterceptorTuple, type RequestParameter, RequestParameterLocations, type ResponseInterceptor, type ResponseInterceptorConfig, type ResponseInterceptorTuple, ScriptManager, type StreamHttpResponse, SubscriptionManager, type TransportInitializationOptions, type Unlock, buildHttpClientInstance, buildHttpsAgent, convertError, createAuthorizationHeaders, getRetryAfterWaitTime, getTransportInstance, getTransportManagers, initializeTransportSystem, isFailedStatusCode, isInfoStatusCode, isSuccessStatusCode, isTransportSystemReady, parseRequestParameters, serializeHttpResponseError, shutdownTransportSystem, superNormalizeHeaders, translateCustomError };
package/dist/index.d.mts CHANGED
@@ -168,6 +168,7 @@ interface RedisClientConfig {
168
168
  host?: string;
169
169
  port?: number;
170
170
  tls?: boolean;
171
+ keepAlive?: number;
171
172
  reconnect?: boolean;
172
173
  database?: number;
173
174
  }
@@ -182,6 +183,7 @@ declare class RedisClient implements ICacheClient<RedisClientType> {
182
183
  host,
183
184
  port,
184
185
  tls,
186
+ keepAlive,
185
187
  reconnect,
186
188
  database
187
189
  }: RedisClientConfig, logger?: ILogger, invoker?: string): Promise<ICacheClient<RedisClientType> | null>;
@@ -817,6 +819,13 @@ declare class HttpClientManager {
817
819
  static resetInstance(): void;
818
820
  }
819
821
  //#endregion
822
+ //#region src/httpsAgent/buildHttpsAgent.d.ts
823
+ interface CertificatesInput {
824
+ certs?: string[];
825
+ keys?: string[];
826
+ }
827
+ declare const buildHttpsAgent: (certificates?: CertificatesInput) => https.Agent | undefined;
828
+ //#endregion
820
829
  //#region src/httpTransportFactory/types.d.ts
821
830
  type RequestInterceptorTuple = [RequestInterceptor | null, ErrorInterceptor | null, AxiosInterceptorOptions | undefined];
822
831
  type ResponseInterceptorTuple = [ResponseInterceptor | null, ErrorInterceptor | null];
@@ -990,7 +999,8 @@ interface IRequestClient<RequestConfig$1 = RequestConfig> {
990
999
  queryParams,
991
1000
  body,
992
1001
  customErrorConfigs,
993
- requestConfig
1002
+ requestConfig,
1003
+ httpsAgent
994
1004
  }: {
995
1005
  httpClient: IHttpClient;
996
1006
  url: string;
@@ -1000,6 +1010,7 @@ interface IRequestClient<RequestConfig$1 = RequestConfig> {
1000
1010
  body: unknown;
1001
1011
  customErrorConfigs?: CustomErrorConfig[];
1002
1012
  requestConfig?: RequestConfig$1;
1013
+ httpsAgent?: https.Agent;
1003
1014
  }) => Promise<HttpResponse>;
1004
1015
  }
1005
1016
  type RequestClientType = 'rest' | 'soap';
@@ -1056,4 +1067,4 @@ type LockEntry = {
1056
1067
  unlock: Unlock;
1057
1068
  };
1058
1069
  //#endregion
1059
- export { type AxiosErrorWithRequestMetadata, type AxiosErrorWithRetryCount, CUSTOM_ERROR_CONFIG_SCHEMA, type ConcurrencyConfig, ConcurrencyManager, type CustomErrorConfig, type ErrorInterceptor, type ErrorMappingFn, EventClient, HttpClient, HttpClientManager, HttpErrorMessages, type HttpHeader, type HttpHeaders, type HttpMethod, HttpMethods, type HttpParameters, type HttpQueryParamValue, type HttpQueryParams, type HttpResponse, HttpResponseError, HttpTransportFactory, type HttpTransportInstanceConfig, type ICacheClient, type IHttpClient, type IRequestClient, type InitializedTransportManagers, InstanceManager, type Interceptor, type InterceptorConfigs, type InterceptorDependencies, type InterceptorDependencyInjector, type InterceptorManager, type Lock, type LockEntry, LockManager, MemoryStore, type MemoryStoreConfig, type OnFulfilledInterceptors, type PruneCount, type PubSubListener, type QueryArrayFormat, QueryArrayFormats, QueueManager, type RateLimitConfig, RateLimitManager, RedisClient, type RedisClientConfig, type RedisClientType, RequestClientFactory, type RequestConfig, type RequestContext, type RequestInterceptor, type RequestInterceptorConfig, type RequestInterceptorTuple, type RequestParameter, RequestParameterLocations, type ResponseInterceptor, type ResponseInterceptorConfig, type ResponseInterceptorTuple, ScriptManager, type StreamHttpResponse, SubscriptionManager, type TransportInitializationOptions, type Unlock, buildHttpClientInstance, convertError, createAuthorizationHeaders, getRetryAfterWaitTime, getTransportInstance, getTransportManagers, initializeTransportSystem, isFailedStatusCode, isInfoStatusCode, isSuccessStatusCode, isTransportSystemReady, parseRequestParameters, serializeHttpResponseError, shutdownTransportSystem, superNormalizeHeaders, translateCustomError };
1070
+ export { type AxiosErrorWithRequestMetadata, type AxiosErrorWithRetryCount, CUSTOM_ERROR_CONFIG_SCHEMA, type CertificatesInput, type ConcurrencyConfig, ConcurrencyManager, type CustomErrorConfig, type ErrorInterceptor, type ErrorMappingFn, EventClient, HttpClient, HttpClientManager, HttpErrorMessages, type HttpHeader, type HttpHeaders, type HttpMethod, HttpMethods, type HttpParameters, type HttpQueryParamValue, type HttpQueryParams, type HttpResponse, HttpResponseError, HttpTransportFactory, type HttpTransportInstanceConfig, type ICacheClient, type IHttpClient, type IRequestClient, type InitializedTransportManagers, InstanceManager, type Interceptor, type InterceptorConfigs, type InterceptorDependencies, type InterceptorDependencyInjector, type InterceptorManager, type Lock, type LockEntry, LockManager, MemoryStore, type MemoryStoreConfig, type OnFulfilledInterceptors, type PruneCount, type PubSubListener, type QueryArrayFormat, QueryArrayFormats, QueueManager, type RateLimitConfig, RateLimitManager, RedisClient, type RedisClientConfig, type RedisClientType, RequestClientFactory, type RequestConfig, type RequestContext, type RequestInterceptor, type RequestInterceptorConfig, type RequestInterceptorTuple, type RequestParameter, RequestParameterLocations, type ResponseInterceptor, type ResponseInterceptorConfig, type ResponseInterceptorTuple, ScriptManager, type StreamHttpResponse, SubscriptionManager, type TransportInitializationOptions, type Unlock, buildHttpClientInstance, buildHttpsAgent, convertError, createAuthorizationHeaders, getRetryAfterWaitTime, getTransportInstance, getTransportManagers, initializeTransportSystem, isFailedStatusCode, isInfoStatusCode, isSuccessStatusCode, isTransportSystemReady, parseRequestParameters, serializeHttpResponseError, shutdownTransportSystem, superNormalizeHeaders, translateCustomError };