@stackone/transport 1.15.0 → 1.16.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.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +15 -15
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -475,6 +475,9 @@ declare class HttpResponseError extends Error {
|
|
|
475
475
|
toString(): string;
|
|
476
476
|
}
|
|
477
477
|
//#endregion
|
|
478
|
+
//#region src/errors/serializeHttpResponseError.d.ts
|
|
479
|
+
declare const serializeHttpResponseError: (error: unknown) => Record<string, unknown>;
|
|
480
|
+
//#endregion
|
|
478
481
|
//#region src/lockManager/index.d.ts
|
|
479
482
|
declare class LockManager {
|
|
480
483
|
private locks;
|
|
@@ -829,7 +832,8 @@ interface IRequestClient {
|
|
|
829
832
|
headers,
|
|
830
833
|
queryParams,
|
|
831
834
|
body,
|
|
832
|
-
customErrorConfigs
|
|
835
|
+
customErrorConfigs,
|
|
836
|
+
requestConfig
|
|
833
837
|
}: {
|
|
834
838
|
httpClient: IHttpClient;
|
|
835
839
|
url: string;
|
|
@@ -838,6 +842,7 @@ interface IRequestClient {
|
|
|
838
842
|
queryParams?: HttpQueryParams;
|
|
839
843
|
body: unknown;
|
|
840
844
|
customErrorConfigs?: CustomErrorConfig[];
|
|
845
|
+
requestConfig?: RequestConfig;
|
|
841
846
|
}) => Promise<HttpResponse>;
|
|
842
847
|
}
|
|
843
848
|
type RequestClientType = 'rest' | 'soap';
|
|
@@ -886,4 +891,4 @@ type LockEntry = {
|
|
|
886
891
|
unlock: Unlock;
|
|
887
892
|
};
|
|
888
893
|
//#endregion
|
|
889
|
-
export { CUSTOM_ERROR_CONFIG_SCHEMA, type ConcurrencyConfig, ConcurrencyManager, type CustomErrorConfig, type ErrorMappingFn, EventClient, HttpClient, HttpClientManager, HttpErrorMessages, type HttpHeaders, type HttpMethod, HttpMethods, type HttpParameters, type HttpQueryParams, type HttpResponse, HttpResponseError, HttpTransportFactory, type ICacheClient, type IHttpClient, InstanceManager, type Lock, type LockEntry, LockManager, MemoryStore, type MemoryStoreConfig, type PruneCount, type PubSubListener, QueueManager, type RateLimitConfig, RateLimitManager, RedisClient, type RedisClientConfig, type RedisClientType, RequestClientFactory, type RequestConfig, type RequestContext, type RequestParameter, RequestParameterLocations, ScriptManager, SubscriptionManager, type Unlock, buildHttpClientInstance, createAuthorizationHeaders, getTransportInstance, isFailedStatusCode, isInfoStatusCode, isSuccessStatusCode, parseRequestParameters };
|
|
894
|
+
export { CUSTOM_ERROR_CONFIG_SCHEMA, type ConcurrencyConfig, ConcurrencyManager, type CustomErrorConfig, type ErrorMappingFn, EventClient, HttpClient, HttpClientManager, HttpErrorMessages, type HttpHeaders, type HttpMethod, HttpMethods, type HttpParameters, type HttpQueryParams, type HttpResponse, HttpResponseError, HttpTransportFactory, type ICacheClient, type IHttpClient, InstanceManager, type Lock, type LockEntry, LockManager, MemoryStore, type MemoryStoreConfig, type PruneCount, type PubSubListener, QueueManager, type RateLimitConfig, RateLimitManager, RedisClient, type RedisClientConfig, type RedisClientType, RequestClientFactory, type RequestConfig, type RequestContext, type RequestParameter, RequestParameterLocations, ScriptManager, SubscriptionManager, type Unlock, buildHttpClientInstance, createAuthorizationHeaders, getTransportInstance, isFailedStatusCode, isInfoStatusCode, isSuccessStatusCode, parseRequestParameters, serializeHttpResponseError };
|
package/dist/index.d.ts
CHANGED
|
@@ -475,6 +475,9 @@ declare class HttpResponseError extends Error {
|
|
|
475
475
|
toString(): string;
|
|
476
476
|
}
|
|
477
477
|
//#endregion
|
|
478
|
+
//#region src/errors/serializeHttpResponseError.d.ts
|
|
479
|
+
declare const serializeHttpResponseError: (error: unknown) => Record<string, unknown>;
|
|
480
|
+
//#endregion
|
|
478
481
|
//#region src/lockManager/index.d.ts
|
|
479
482
|
declare class LockManager {
|
|
480
483
|
private locks;
|
|
@@ -829,7 +832,8 @@ interface IRequestClient {
|
|
|
829
832
|
headers,
|
|
830
833
|
queryParams,
|
|
831
834
|
body,
|
|
832
|
-
customErrorConfigs
|
|
835
|
+
customErrorConfigs,
|
|
836
|
+
requestConfig
|
|
833
837
|
}: {
|
|
834
838
|
httpClient: IHttpClient;
|
|
835
839
|
url: string;
|
|
@@ -838,6 +842,7 @@ interface IRequestClient {
|
|
|
838
842
|
queryParams?: HttpQueryParams;
|
|
839
843
|
body: unknown;
|
|
840
844
|
customErrorConfigs?: CustomErrorConfig[];
|
|
845
|
+
requestConfig?: RequestConfig;
|
|
841
846
|
}) => Promise<HttpResponse>;
|
|
842
847
|
}
|
|
843
848
|
type RequestClientType = 'rest' | 'soap';
|
|
@@ -886,4 +891,4 @@ type LockEntry = {
|
|
|
886
891
|
unlock: Unlock;
|
|
887
892
|
};
|
|
888
893
|
//#endregion
|
|
889
|
-
export { CUSTOM_ERROR_CONFIG_SCHEMA, type ConcurrencyConfig, ConcurrencyManager, type CustomErrorConfig, type ErrorMappingFn, EventClient, HttpClient, HttpClientManager, HttpErrorMessages, type HttpHeaders, type HttpMethod, HttpMethods, type HttpParameters, type HttpQueryParams, type HttpResponse, HttpResponseError, HttpTransportFactory, type ICacheClient, type IHttpClient, InstanceManager, type Lock, type LockEntry, LockManager, MemoryStore, type MemoryStoreConfig, type PruneCount, type PubSubListener, QueueManager, type RateLimitConfig, RateLimitManager, RedisClient, type RedisClientConfig, type RedisClientType, RequestClientFactory, type RequestConfig, type RequestContext, type RequestParameter, RequestParameterLocations, ScriptManager, SubscriptionManager, type Unlock, buildHttpClientInstance, createAuthorizationHeaders, getTransportInstance, isFailedStatusCode, isInfoStatusCode, isSuccessStatusCode, parseRequestParameters };
|
|
894
|
+
export { CUSTOM_ERROR_CONFIG_SCHEMA, type ConcurrencyConfig, ConcurrencyManager, type CustomErrorConfig, type ErrorMappingFn, EventClient, HttpClient, HttpClientManager, HttpErrorMessages, type HttpHeaders, type HttpMethod, HttpMethods, type HttpParameters, type HttpQueryParams, type HttpResponse, HttpResponseError, HttpTransportFactory, type ICacheClient, type IHttpClient, InstanceManager, type Lock, type LockEntry, LockManager, MemoryStore, type MemoryStoreConfig, type PruneCount, type PubSubListener, QueueManager, type RateLimitConfig, RateLimitManager, RedisClient, type RedisClientConfig, type RedisClientType, RequestClientFactory, type RequestConfig, type RequestContext, type RequestParameter, RequestParameterLocations, ScriptManager, SubscriptionManager, type Unlock, buildHttpClientInstance, createAuthorizationHeaders, getTransportInstance, isFailedStatusCode, isInfoStatusCode, isSuccessStatusCode, parseRequestParameters, serializeHttpResponseError };
|