@ethlete/query 5.6.1 → 5.7.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.
@@ -74,11 +74,7 @@ export declare const computeQueryQueryParams: (config: {
74
74
  config: AnyRestQueryConfig | AnyGqlQueryConfig;
75
75
  client: QueryClient;
76
76
  args?: BaseArguments | undefined;
77
- }) => import("../request").QueryParams | {
78
- query: string;
79
- variables?: string | undefined;
80
- operationName?: string | undefined;
81
- } | undefined;
77
+ }) => object | undefined;
82
78
  export declare const paginatedEntityValueUpdater: <T extends Paginated<unknown>, Args extends BaseArguments, Entity, J extends T extends Paginated<infer X> ? X : never>(findFn: (val: J, entity: Entity) => boolean) => ({ response, rawResponse, entity }: {
83
79
  rawResponse: T;
84
80
  response: T;
@@ -7,7 +7,7 @@ export interface RequestError<Detail = unknown> {
7
7
  detail: Detail;
8
8
  }
9
9
  export type RequestHeaders = Record<string, string>;
10
- export type QueryParams = Record<string | number, unknown | Array<unknown>>;
10
+ export type QueryParams = object;
11
11
  export type PathParams = Record<string, string | number>;
12
12
  export type CacheAdapterFn = (headers: RequestHeaders) => number | null;
13
13
  export type RequestHeadersMethodMap = {
@@ -6,7 +6,7 @@ export declare const buildRoute: (options: {
6
6
  base: string;
7
7
  route: string | ((args: Record<string, unknown>) => string) | null | undefined;
8
8
  pathParams?: Record<string, unknown> | undefined;
9
- queryParams?: QueryParams | undefined;
9
+ queryParams?: object | undefined;
10
10
  queryParamConfig?: BuildQueryStringConfig | undefined;
11
11
  }) => string;
12
12
  export declare const buildQueryString: (params: QueryParams, config?: BuildQueryStringConfig) => string | null;
@@ -1,5 +1,6 @@
1
- import { FormViolationListView } from '@ethlete/types';
1
+ import { FormViolationListView, FormViolationView } from '@ethlete/types';
2
2
  import { SymfonyError } from './symfony.types';
3
3
  export declare const isSymfonyError: (error: unknown) => error is SymfonyError;
4
4
  export declare const isSymfonyPagerfantaOutOfRangeError: (error: unknown) => error is SymfonyError;
5
5
  export declare const isSymfonyFormViolationListError: (error: unknown) => error is FormViolationListView;
6
+ export declare const isSymfonyListError: (error: unknown) => error is FormViolationView[];
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@ethlete/query",
3
- "version": "5.6.1",
3
+ "version": "5.7.0",
4
4
  "peerDependencies": {
5
- "@angular/common": "17.2.1",
6
- "@angular/core": "17.2.1",
7
- "@angular/forms": "17.2.1",
8
- "@angular/router": "17.2.1",
5
+ "@angular/common": "17.2.4",
6
+ "@angular/core": "17.2.4",
7
+ "@angular/forms": "17.2.4",
8
+ "@angular/router": "17.2.4",
9
9
  "@ethlete/core": "^4.0.3",
10
10
  "@ethlete/types": "^1.6.2",
11
11
  "rxjs": "^7.8.1"