@stackone/transport 1.14.1 → 1.15.1

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 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;
@@ -571,6 +574,7 @@ declare class HttpClient<TError extends Error = Error> implements IHttpClient {
571
574
  headers,
572
575
  url,
573
576
  method,
577
+ queryParams,
574
578
  maxRedirects,
575
579
  responseType,
576
580
  cacheTTL,
@@ -585,6 +589,7 @@ declare class HttpClient<TError extends Error = Error> implements IHttpClient {
585
589
  headers?: HttpHeaders;
586
590
  url: string;
587
591
  method?: HttpMethod;
592
+ queryParams?: HttpQueryParams;
588
593
  maxRedirects?: number;
589
594
  responseType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text';
590
595
  cacheTTL?: number;
@@ -599,6 +604,7 @@ declare class HttpClient<TError extends Error = Error> implements IHttpClient {
599
604
  get<T>({
600
605
  headers,
601
606
  url,
607
+ queryParams,
602
608
  maxRedirects,
603
609
  cacheTTL,
604
610
  context,
@@ -607,6 +613,7 @@ declare class HttpClient<TError extends Error = Error> implements IHttpClient {
607
613
  }: {
608
614
  headers?: HttpHeaders;
609
615
  url: string;
616
+ queryParams?: HttpQueryParams;
610
617
  maxRedirects?: number;
611
618
  cacheTTL?: number;
612
619
  context?: RequestContext;
@@ -823,6 +830,7 @@ interface IRequestClient {
823
830
  url,
824
831
  method,
825
832
  headers,
833
+ queryParams,
826
834
  body,
827
835
  customErrorConfigs
828
836
  }: {
@@ -881,4 +889,4 @@ type LockEntry = {
881
889
  unlock: Unlock;
882
890
  };
883
891
  //#endregion
884
- 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 };
892
+ 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;
@@ -571,6 +574,7 @@ declare class HttpClient<TError extends Error = Error> implements IHttpClient {
571
574
  headers,
572
575
  url,
573
576
  method,
577
+ queryParams,
574
578
  maxRedirects,
575
579
  responseType,
576
580
  cacheTTL,
@@ -585,6 +589,7 @@ declare class HttpClient<TError extends Error = Error> implements IHttpClient {
585
589
  headers?: HttpHeaders;
586
590
  url: string;
587
591
  method?: HttpMethod;
592
+ queryParams?: HttpQueryParams;
588
593
  maxRedirects?: number;
589
594
  responseType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text';
590
595
  cacheTTL?: number;
@@ -599,6 +604,7 @@ declare class HttpClient<TError extends Error = Error> implements IHttpClient {
599
604
  get<T>({
600
605
  headers,
601
606
  url,
607
+ queryParams,
602
608
  maxRedirects,
603
609
  cacheTTL,
604
610
  context,
@@ -607,6 +613,7 @@ declare class HttpClient<TError extends Error = Error> implements IHttpClient {
607
613
  }: {
608
614
  headers?: HttpHeaders;
609
615
  url: string;
616
+ queryParams?: HttpQueryParams;
610
617
  maxRedirects?: number;
611
618
  cacheTTL?: number;
612
619
  context?: RequestContext;
@@ -823,6 +830,7 @@ interface IRequestClient {
823
830
  url,
824
831
  method,
825
832
  headers,
833
+ queryParams,
826
834
  body,
827
835
  customErrorConfigs
828
836
  }: {
@@ -881,4 +889,4 @@ type LockEntry = {
881
889
  unlock: Unlock;
882
890
  };
883
891
  //#endregion
884
- 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 };
892
+ 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 };