@ethlete/query 6.0.0-next.37 → 6.0.0-next.39

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.
@@ -9,7 +9,7 @@ import * as _angular_common_http from '@angular/common/http';
9
9
  import { HttpClient, HttpErrorResponse, HttpHeaders, HttpEvent, HttpStatusCode } from '@angular/common/http';
10
10
  import * as _ethlete_query from '@ethlete/query';
11
11
  import { NormalizedPagination, ContentfulGqlLikePaginated, DynLikePaginated, Paginated, GgLikePaginated, FormViolationListView, FormViolationView } from '@ethlete/types';
12
- import { FieldTree, ValidationError, PathKind, FieldContext, TreeValidationResult, SchemaPath, SchemaPathRules } from '@angular/forms/signals';
12
+ import { FieldTree, ValidationError, TreeValidationResult, PathKind, FieldContext, SchemaPath, SchemaPathRules } from '@angular/forms/signals';
13
13
  import * as _angular_forms from '@angular/forms';
14
14
  import { FormControl, FormGroup } from '@angular/forms';
15
15
  import { ToObservableOptions, ToSignalOptions } from '@angular/core/rxjs-interop';
@@ -951,6 +951,7 @@ declare const sumQueryDevtoolsStats: (handles: readonly (QueryDevtoolsStatsHandl
951
951
 
952
952
  type SetupQueryStateOptions<TArgs extends QueryArgs> = {
953
953
  transformResponse?: (rawResponse: RawResponseType<TArgs>) => ResponseType<TArgs>;
954
+ destroyRef?: DestroyRef;
954
955
  /**
955
956
  * The devtools stats recorder to feed from this state's executions, or nothing when the devtools are
956
957
  * not installed.
@@ -1011,10 +1012,18 @@ type QueryExecutionStateSuccess<TArgs extends QueryArgs> = {
1011
1012
  type: 'success';
1012
1013
  response: ResponseType<TArgs>;
1013
1014
  };
1014
- type QueryExecutionStateFailure = {
1015
+ type QueryExecutionStateFailureWithNoResponse = {
1015
1016
  type: 'failure';
1016
1017
  error: QueryErrorResponse;
1018
+ hasCachedResponse?: false;
1017
1019
  };
1020
+ type QueryExecutionStateFailureWithCachedResponse<TArgs extends QueryArgs> = {
1021
+ type: 'failure';
1022
+ error: QueryErrorResponse;
1023
+ hasCachedResponse: true;
1024
+ cachedResponse: ResponseType<TArgs>;
1025
+ };
1026
+ type QueryExecutionStateFailure<TArgs extends QueryArgs> = QueryExecutionStateFailureWithNoResponse | QueryExecutionStateFailureWithCachedResponse<TArgs>;
1018
1027
  type QueryExecutionStateLoadingWithNoResponse = {
1019
1028
  type: 'loading';
1020
1029
  hasCachedResponse: false;
@@ -1027,7 +1036,7 @@ type QueryExecutionStateLoadingWithCachedResponse<TArgs extends QueryArgs> = {
1027
1036
  cachedResponse: ResponseType<TArgs>;
1028
1037
  };
1029
1038
  type QueryExecutionStateLoading<TArgs extends QueryArgs> = QueryExecutionStateLoadingWithNoResponse | QueryExecutionStateLoadingWithCachedResponse<TArgs>;
1030
- type QueryExecutionState<TArgs extends QueryArgs> = QueryExecutionStateSuccess<TArgs> | QueryExecutionStateFailure | QueryExecutionStateLoading<TArgs>;
1039
+ type QueryExecutionState<TArgs extends QueryArgs> = QueryExecutionStateSuccess<TArgs> | QueryExecutionStateFailure<TArgs> | QueryExecutionStateLoading<TArgs>;
1031
1040
  declare const setupQueryState: <TArgs extends QueryArgs>(options: SetupQueryStateOptions<TArgs>) => QueryState<TArgs>;
1032
1041
 
1033
1042
  type CreateQueryExecuteOptions<TArgs extends QueryArgs> = {
@@ -1854,6 +1863,23 @@ type QueryMultiTabSyncConfig = {
1854
1863
  refreshOnMutation?: boolean | QuerySyncRefreshOnMutationConfig;
1855
1864
  };
1856
1865
 
1866
+ /** How a hold is requested, and how it reports back when it is taken away. */
1867
+ type QueryKeyLockHoldOptions = {
1868
+ /**
1869
+ * Takes the key from whoever holds it instead of queueing behind them, and preempts every request
1870
+ * already queued for it. For the one case a queue cannot answer: a holder that stopped running -
1871
+ * a frozen or suspended tab - keeps its lock while it does none of the work the lock stands for,
1872
+ * and nothing it does not run can hand it over.
1873
+ *
1874
+ * The tab it is taken from hears about it through {@link onLost}.
1875
+ */
1876
+ steal?: boolean;
1877
+ /**
1878
+ * Called when another tab took this key over while this hold had it. Not called for a release of
1879
+ * this tab's own, and not for a queued request that was aborted.
1880
+ */
1881
+ onLost?: () => void;
1882
+ };
1857
1883
  /** A single outstanding request for the lock of one key. */
1858
1884
  type QueryKeyLockHold = {
1859
1885
  /**
@@ -1882,7 +1908,7 @@ type QueryKeyLockState = 'holder' | 'standby';
1882
1908
  */
1883
1909
  type QueryKeyLockManager = {
1884
1910
  /** Requests the lock for `key`. */
1885
- hold: (key: string) => QueryKeyLockHold;
1911
+ hold: (key: string, options?: QueryKeyLockHoldOptions) => QueryKeyLockHold;
1886
1912
  /**
1887
1913
  * Whether the Web Locks API backs this manager. When `false` every caller is immediately the
1888
1914
  * holder of every key, which degrades to "every tab does the work itself".
@@ -2609,7 +2635,7 @@ type RawResponseType<T extends QueryArgs | null> = T extends QueryArgs ? T['rawR
2609
2635
  type PathParamsType<T extends QueryArgs | null> = T extends QueryArgs ? T['pathParams'] : never;
2610
2636
  type QueryParamsType<T extends QueryArgs | null> = T extends QueryArgs ? T['queryParams'] : never;
2611
2637
  type BodyType<T extends QueryArgs | null> = T extends QueryArgs ? T['body'] : never;
2612
- type RequestArgs<T extends QueryArgs | null> = T extends QueryArgs ? Omit<T, 'response'> : never;
2638
+ type RequestArgs<T extends QueryArgs | null> = T extends QueryArgs ? Omit<T, 'rawResponse' | 'response'> : never;
2613
2639
  /**
2614
2640
  * The empty request-args object, typed to satisfy `RequestArgs<TArgs>` for a query that takes no
2615
2641
  * arguments - its `QueryArgs` is just `{ response: T }`, so `RequestArgs` resolves to `{}`.
@@ -2634,8 +2660,7 @@ type QueryBase<TArgs extends QueryArgs> = {
2634
2660
  args: ObservableSignal<RequestArgs<TArgs> | null>;
2635
2661
  /**
2636
2662
  * The latest response of the query. Will be `null` if the query has never been executed.
2637
- * Responses are cached until a new response is received.
2638
- * If a response is present but the next execution of the query fails, the response will be set to `null` again.
2663
+ * Responses are cached until a new response is received, including when a re-execution fails.
2639
2664
  */
2640
2665
  response: ObservableSignal<ResponseType<TArgs> | null>;
2641
2666
  /** The latest Angular HTTP client native http event that occurred during the last execution of the query. Will be `null` if no event occurred. */
@@ -2971,6 +2996,203 @@ type CreateIndexedDbQueryPersistenceAdapterOptions = {
2971
2996
  */
2972
2997
  declare const createIndexedDbQueryPersistenceAdapter: (options: CreateIndexedDbQueryPersistenceAdapterOptions) => QueryPersistenceAdapter;
2973
2998
 
2999
+ /** The current lifecycle phase of a query batch. */
3000
+ type QueryBatchStatus = 'idle' | 'running' | 'success' | 'partial' | 'error' | 'cancelled';
3001
+ type QueryBatchItemSuccess<TItem, TArgs extends QueryArgs> = {
3002
+ status: 'success';
3003
+ index: number;
3004
+ item: TItem;
3005
+ args: RequestArgs<TArgs>;
3006
+ response: ResponseType<TArgs>;
3007
+ };
3008
+ type QueryBatchItemError<TItem, TArgs extends QueryArgs> = {
3009
+ status: 'error';
3010
+ index: number;
3011
+ item: TItem;
3012
+ args: RequestArgs<TArgs>;
3013
+ error: QueryErrorResponse;
3014
+ };
3015
+ /** An item whose `args` function returned `null` - it was never sent. */
3016
+ type QueryBatchItemSkipped<TItem> = {
3017
+ status: 'skipped';
3018
+ index: number;
3019
+ item: TItem;
3020
+ };
3021
+ /** An item that was still queued when the run was cancelled or stopped by `stopOnError`. */
3022
+ type QueryBatchItemCancelled<TItem> = {
3023
+ status: 'cancelled';
3024
+ index: number;
3025
+ item: TItem;
3026
+ };
3027
+ type QueryBatchItemResult<TItem, TArgs extends QueryArgs> = QueryBatchItemSuccess<TItem, TArgs> | QueryBatchItemError<TItem, TArgs> | QueryBatchItemSkipped<TItem> | QueryBatchItemCancelled<TItem>;
3028
+ /** The outcome of a settled {@link QueryBatch.run} or {@link QueryBatch.retryFailed}. */
3029
+ type QueryBatchResult<TItem, TArgs extends QueryArgs> = {
3030
+ /** `true` when every item either succeeded or was skipped, and nothing was left unattempted. */
3031
+ ok: boolean;
3032
+ /** `true` if the run stopped early - through `cancel()` or `stopOnError`. */
3033
+ cancelled: boolean;
3034
+ /** Every item's outcome, in input order. */
3035
+ results: QueryBatchItemResult<TItem, TArgs>[];
3036
+ succeeded: QueryBatchItemSuccess<TItem, TArgs>[];
3037
+ failed: QueryBatchItemError<TItem, TArgs>[];
3038
+ skipped: QueryBatchItemSkipped<TItem>[];
3039
+ notAttempted: QueryBatchItemCancelled<TItem>[];
3040
+ };
3041
+ /**
3042
+ * Runs one mutation over many items with a bounded number of requests in flight, keeping a per-item
3043
+ * outcome so a partial failure stays recoverable.
3044
+ *
3045
+ * Built by {@link createQueryBatch}. Unlike a query stack the queries are not kept around: each item
3046
+ * gets a query, runs it, and the query is destroyed once it settles - so a batch of 5000 items holds
3047
+ * `concurrency` queries at a time, not 5000.
3048
+ */
3049
+ type QueryBatch<TItem, TArgs extends QueryArgs> = {
3050
+ /** The current lifecycle phase - `idle` before the first run, then `running` → the settled phase. */
3051
+ status: Signal<QueryBatchStatus>;
3052
+ /** `true` while a run is in flight. */
3053
+ running: Signal<boolean>;
3054
+ /** How many items the current (or last) run covers. */
3055
+ total: Signal<number>;
3056
+ /** How many items have settled in any way - success, error, skipped or cancelled. */
3057
+ completed: Signal<number>;
3058
+ /** How many requests are in flight right now, at most `concurrency`. */
3059
+ inFlight: Signal<number>;
3060
+ succeeded: Signal<number>;
3061
+ failed: Signal<number>;
3062
+ skipped: Signal<number>;
3063
+ /**
3064
+ * How far the run has got, as a percentage (`0`-`100`) so it can be bound straight to
3065
+ * `<et-progress-bar [value]>` or a button's `[progress]`. `0` before the first run.
3066
+ */
3067
+ progress: Signal<number>;
3068
+ /**
3069
+ * Items settling per second, averaged over the current (or last) run - the batch counterpart of a
3070
+ * transfer's `speed`. `null` until enough items have settled to measure.
3071
+ */
3072
+ itemsPerSecond: Signal<number | null>;
3073
+ /**
3074
+ * Roughly how much longer the run needs, in milliseconds: the items still outstanding at the
3075
+ * measured {@link QueryBatch.itemsPerSecond}. `null` while there is no throughput to extrapolate
3076
+ * from and once nothing is left, so a template can fall back to an indeterminate label.
3077
+ *
3078
+ * It re-estimates on every settled item, and a batch whose items differ wildly in cost will move
3079
+ * around a lot - treat it as an estimate, not a countdown.
3080
+ */
3081
+ remainingTime: Signal<number | null>;
3082
+ /** Every settled item's outcome so far, in input order. Grows as the run progresses. */
3083
+ results: Signal<QueryBatchItemResult<TItem, TArgs>[]>;
3084
+ /** The errors of every failed item so far. */
3085
+ errors: Signal<QueryErrorResponse[]>;
3086
+ /** The items that failed, for a "3 of 500 could not be updated" list. */
3087
+ failedItems: Signal<TItem[]>;
3088
+ /**
3089
+ * Runs the mutation once per item. Cold: nothing is sent until it is subscribed to, and it emits
3090
+ * the result once and completes when the batch settles.
3091
+ *
3092
+ * Subscribing resets the previous run's results. Errors with {@link queryBatchAlreadyRunning} if a
3093
+ * run is still in flight. A failing item does not abort the rest unless `stopOnError` is set.
3094
+ */
3095
+ run: (items: readonly TItem[]) => Observable<QueryBatchResult<TItem, TArgs>>;
3096
+ /**
3097
+ * Re-runs only the items that did not succeed - the failed ones plus anything left unattempted by
3098
+ * a `cancel()` or `stopOnError`. Successful items are never sent twice, which is what makes this
3099
+ * safe to put behind a retry button in a bulk edit. Cold, like {@link QueryBatch.run}.
3100
+ */
3101
+ retryFailed: () => Observable<QueryBatchResult<TItem, TArgs>>;
3102
+ /**
3103
+ * Stops scheduling further items. Requests already in flight are **not** aborted - a mutation the
3104
+ * server may have already applied must still be recorded - so they settle into the results as
3105
+ * normal and the run emits once they do.
3106
+ *
3107
+ * Unsubscribing from the run does abort everything in flight, which for a mutation is rarely what
3108
+ * you want. Prefer this.
3109
+ */
3110
+ cancel: () => void;
3111
+ /** Clears the results and returns to `idle`. Ignored while a run is in flight. */
3112
+ reset: () => void;
3113
+ };
3114
+ type AnyQueryBatch = QueryBatch<any, any>;
3115
+ type AnyQueryBatchItemResult = QueryBatchItemResult<any, any>;
3116
+ /**
3117
+ * The stable holder the devtools registry keeps as a batch entry's handle, and which every one of the
3118
+ * batch's item queries is attributed to. Read `current` to reach the batch itself.
3119
+ *
3120
+ * Indirect because it has to exist before the {@link QueryBatch} it points at does: the code that
3121
+ * creates an item query closes over the owner while the batch object is still being built.
3122
+ */
3123
+ type QueryBatchDevtoolsHandle = {
3124
+ current: AnyQueryBatch;
3125
+ };
3126
+ type CreateQueryBatchOptions<TCreator extends AnyQueryCreator, TItem> = {
3127
+ /** The query creator to run per item - usually a `POST`/`PUT`/`PATCH`/`DELETE`. */
3128
+ queryCreator: TCreator;
3129
+ /**
3130
+ * Builds one item's request args. Return `null` to skip the item without sending anything - it is
3131
+ * recorded as `skipped` rather than as a failure.
3132
+ */
3133
+ args: (item: TItem, index: number) => RequestArgs<QueryArgsOf<TCreator>> | null;
3134
+ /**
3135
+ * How many requests may be in flight at once.
3136
+ *
3137
+ * @default 4
3138
+ */
3139
+ concurrency?: number;
3140
+ /**
3141
+ * If `true`, the first failure stops the batch: everything still queued is recorded as `cancelled`
3142
+ * and the requests already in flight are left to settle.
3143
+ *
3144
+ * @default false
3145
+ */
3146
+ stopOnError?: boolean;
3147
+ /**
3148
+ * Features applied to every query in the batch.
3149
+ *
3150
+ * @throws If the `withArgs` feature is used - args come from the `args` option.
3151
+ */
3152
+ features?: QueryFeature<any>[];
3153
+ /** Passed to each `execute()`. Only meaningful when batching cacheable (`GET`-like) requests. */
3154
+ allowCache?: boolean;
3155
+ /**
3156
+ * Called as each item settles, before the run emits. Use it to stream progress into the UI -
3157
+ * removing a row the moment its update lands, say.
3158
+ */
3159
+ onItemSettled?: (result: QueryBatchItemResult<TItem, QueryArgsOf<TCreator>>) => void;
3160
+ };
3161
+ /**
3162
+ * Runs the same mutation over a list of items - the bulk edit / bulk delete shape - with a bounded
3163
+ * number of requests in flight and a per-item outcome.
3164
+ *
3165
+ * Where a query stack fans a reactive read out over many arg sets and keeps every query alive, a
3166
+ * batch is imperative and disposable: it is triggered by a button, it tolerates a partial failure,
3167
+ * and it destroys each query as soon as that item settles.
3168
+ *
3169
+ * Call it from an injection context; the host's destruction stops an in-flight run.
3170
+ *
3171
+ * @example
3172
+ * ```ts
3173
+ * protected archivePosts = createQueryBatch({
3174
+ * queryCreator: patchPost,
3175
+ * args: (post: Post) => ({ pathParams: { id: post.id }, body: { archived: true } }),
3176
+ * concurrency: 6,
3177
+ * });
3178
+ *
3179
+ * archiveSelected() {
3180
+ * this.archivePosts
3181
+ * .run(this.selection())
3182
+ * .pipe(tap((result) => result.ok || this.toast.error(`${result.failed.length} failed`)))
3183
+ * .subscribe();
3184
+ * }
3185
+ * ```
3186
+ *
3187
+ * ```html
3188
+ * <button et-button [loading]="archivePosts.running()" [progress]="archivePosts.progress()">Archive</button>
3189
+ * @if (archivePosts.failed()) {
3190
+ * <button (click)="retry()">Retry {{ archivePosts.failed() }} failed</button>
3191
+ * }
3192
+ * ```
3193
+ */
3194
+ declare const createQueryBatch: <TCreator extends AnyQueryCreator, TItem>(options: CreateQueryBatchOptions<TCreator, TItem>) => QueryBatch<TItem, QueryArgsOf<TCreator>>;
3195
+
2974
3196
  declare const extractExpiresInSeconds: (headers: HttpHeaders) => number | null;
2975
3197
  declare const shouldCacheQuery: (method: QueryMethod) => method is "GET" | "OPTIONS" | "HEAD";
2976
3198
  declare const buildQueryCacheKey: (route: string, args: RequestArgs<QueryArgs> | undefined) => string;
@@ -3141,6 +3363,8 @@ declare const QueryRuntimeErrorCode: {
3141
3363
  readonly INVALID_STATE_INSIDE_SECURE_EXECUTE_FACTORY: 701;
3142
3364
  readonly CIRCULAR_QUERY_DEPENDENCY: 800;
3143
3365
  readonly QUERY_SEQUENCE_ALREADY_RUNNING: 900;
3366
+ readonly QUERY_BATCH_ALREADY_RUNNING: 910;
3367
+ readonly QUERY_BATCH_WITH_ARGS_USED: 911;
3144
3368
  readonly LEGACY_PREPARE_WITHOUT_INJECTION_CONTEXT: 950;
3145
3369
  readonly LEGACY_QUERY_STATE_ALREADY_HAS_KEY: 951;
3146
3370
  readonly LEGACY_QUERY_STATE_DOES_NOT_CONTAIN_KEY: 952;
@@ -3175,6 +3399,8 @@ declare const invalidStateInsideSecureExecuteFactory: () => RuntimeError<701>;
3175
3399
  declare const circularQueryDependency: () => RuntimeError<800>;
3176
3400
  declare const legacyPrepareWithoutInjectionContext: (creatorName: string | undefined, method?: "prepare" | "createSubject" | "createSignal") => RuntimeError<950>;
3177
3401
  declare const querySequenceAlreadyRunning: () => RuntimeError<900>;
3402
+ declare const queryBatchAlreadyRunning: () => RuntimeError<910>;
3403
+ declare const queryBatchWithArgsUsed: () => RuntimeError<911>;
3178
3404
 
3179
3405
  /** The last element of a tuple type - the response of the step a `.then()` callback follows. */
3180
3406
  type LastOf<T extends unknown[]> = T extends [...unknown[], infer L] ? L : never;
@@ -3224,6 +3450,13 @@ type QuerySequence<TResponses extends unknown[]> = {
3224
3450
  running: Signal<boolean>;
3225
3451
  /** The 1-based index of the in-flight step, or `0` when idle. */
3226
3452
  currentStep: Signal<number>;
3453
+ /** How many steps have settled - the successful ones plus the failing one. */
3454
+ completed: Signal<number>;
3455
+ /**
3456
+ * How far the waterfall has got, as a percentage (`0`-`100`) so it can be bound straight to
3457
+ * `<et-progress-bar [value]>` or a button's `[progress]`. A run that fails stops where it stopped.
3458
+ */
3459
+ progress: Signal<number>;
3227
3460
  /** The static number of steps in the sequence. */
3228
3461
  total: number;
3229
3462
  /** The query objects backing each step, in order. Useful for devtools / advanced introspection. */
@@ -3514,6 +3747,105 @@ declare const transformPaginatedResponse: <T extends ({
3514
3747
  } | null)[]>(responses: T) => NonNullable<NonNullable<T[0]>["items"]>;
3515
3748
  declare const createQueryStack: <TCreator extends AnyQueryCreator, TArgs extends QueryArgsOf<TCreator>, TDeps extends () => any, TTransform = (ResponseType<TArgs> | null)[]>(options: CreateQueryStackOptions<TCreator, TDeps, TTransform>) => QueryStack<RunQueryCreator<TCreator>, TCreator, TTransform>;
3516
3749
 
3750
+ /** Config for {@link createQuerySubmission}. */
3751
+ type CreateQuerySubmissionConfig<TCreator extends AnyQueryCreator, TModel> = {
3752
+ /**
3753
+ * The mutation to submit through (e.g. a `createPostQuery` creator). Like a query stack, the query
3754
+ * is created **once**; its args come from each submit rather than from a `withArgs()` feature.
3755
+ */
3756
+ queryCreator: TCreator;
3757
+ /**
3758
+ * Builds the request args from the submitted form value. Return `null` to abort the submit without
3759
+ * a request - for a value the API has no route for yet, say. Omit it for a route that takes none.
3760
+ */
3761
+ args?: (value: TModel, field: FieldTree<TModel>) => RequestArgs<QueryArgsOf<TCreator>> | null;
3762
+ /**
3763
+ * Runs after the request succeeded, before the action resolves and the form leaves its submitting
3764
+ * state - notify, close the overlay, navigate.
3765
+ */
3766
+ onSuccess?: (response: NonNullable<ResponseType<QueryArgsOf<TCreator>>>, field: FieldTree<TModel>) => void;
3767
+ /**
3768
+ * Rewrites a violation's property path before it is resolved against the field tree - use it when
3769
+ * the API's payload shape differs from the form model. Return `null` to leave the violation
3770
+ * unmapped, so it becomes a form-level error.
3771
+ */
3772
+ rewritePath?: (path: string, violation: FormViolationView) => string | null;
3773
+ /**
3774
+ * Override the default violation → error mapping. Receives the failed request's error; return the
3775
+ * errors to report. Defaults to `mapViolationsToFormErrors` against the submitted field.
3776
+ */
3777
+ mapViolations?: (error: unknown, field: FieldTree<TModel>) => TreeValidationResult;
3778
+ };
3779
+ type QuerySubmissionRef<TCreator extends AnyQueryCreator, TModel> = {
3780
+ /** The query the submission runs, for an error banner or a retry - never execute it yourself. */
3781
+ query: Query<QueryArgsOf<TCreator>>;
3782
+ /** The signal form `submission.action`. */
3783
+ action: (field: FieldTree<TModel>) => Promise<TreeValidationResult>;
3784
+ };
3785
+ /**
3786
+ * Builds a signal form's `submission.action` around a mutation: submitting executes the query with
3787
+ * args derived from the form's value, waits for it to settle, and maps a failed request's violations
3788
+ * back onto the fields that caused them. `form().submitting()` therefore covers the whole round trip.
3789
+ *
3790
+ * This is the submit-time counterpart to {@link validateWithQuery}. The query's args come from the
3791
+ * submitted value rather than a `withArgs()` feature, which also means the query no longer reads the
3792
+ * form it belongs to - so it can be declared before it, and no derivation runs per keystroke.
3793
+ *
3794
+ * ```ts
3795
+ * protected createPost = createQuerySubmission({
3796
+ * queryCreator: postPost,
3797
+ * args: (value) => ({ body: value }),
3798
+ * onSuccess: (post) => this.router.navigate(['/posts', post.id]),
3799
+ * });
3800
+ *
3801
+ * protected form = form(this.model, postSchema, {
3802
+ * submission: { action: this.createPost.action },
3803
+ * });
3804
+ * ```
3805
+ *
3806
+ * ```html
3807
+ * <form [etForm]="form">…</form>
3808
+ * <et-query-error [error]="createPost.query.error()" [query]="createPost.query" />
3809
+ * ```
3810
+ *
3811
+ * Call it from an injection context.
3812
+ */
3813
+ declare const createQuerySubmission: <TCreator extends AnyQueryCreator, TModel>(config: CreateQuerySubmissionConfig<TCreator, TModel>) => QuerySubmissionRef<TCreator, TModel>;
3814
+
3815
+ type InternalSecureCreateQueryCreatorOptions<TArgs extends QueryArgs> = InternalCreateQueryCreatorOptions<TArgs> & {
3816
+ authProvider: AnyCreateBearerAuthProviderResult;
3817
+ };
3818
+ declare const createSecureQueryCreator: <TArgs extends QueryArgs>(options: CreateQueryCreatorOptions | undefined, internals: InternalSecureCreateQueryCreatorOptions<TArgs>) => QueryCreator<TArgs>;
3819
+
3820
+ type CreateSecureQueryOptions<TArgs extends QueryArgs> = Omit<CreateQueryOptions<TArgs>, 'creatorInternals'> & {
3821
+ creatorInternals: InternalSecureCreateQueryCreatorOptions<TArgs>;
3822
+ };
3823
+ declare const createSecureQuery: <TArgs extends QueryArgs>(options: CreateSecureQueryOptions<TArgs>) => _ethlete_query.Query<TArgs>;
3824
+
3825
+ type CreateSecureQueryExecuteOptions<TArgs extends QueryArgs> = Omit<CreateQueryExecuteOptions<TArgs>, 'creatorInternals'> & {
3826
+ creatorInternals: InternalSecureCreateQueryCreatorOptions<TArgs>;
3827
+ };
3828
+ declare const createSecureExecuteFn: <TArgs extends QueryArgs>(executeOptions: CreateSecureQueryExecuteOptions<TArgs>) => InternalQueryExecute<TArgs>;
3829
+
3830
+ type SecureExecuteFactoryOptions<TArgs extends QueryArgs> = {
3831
+ authProvider: AnyBearerAuthProvider;
3832
+ deps: QueryDependencies;
3833
+ state: QueryState<TArgs>;
3834
+ /**
3835
+ * Whether the query runs itself rather than only on an explicit `execute()` - the same condition
3836
+ * `maybeExecute` and the `withArgs` feature use. Only those are re-run once a new session starts;
3837
+ * re-firing a mutation on the next login would repeat it behind the user's back.
3838
+ */
3839
+ autoExecutes: boolean;
3840
+ /**
3841
+ * Hands the execution over to the concrete query implementation. `executeArgs.args.headers` is a
3842
+ * provider function, not resolved headers - it must be passed through to the repository as-is, or
3843
+ * the request freezes the access token it was first built with.
3844
+ */
3845
+ transformAuthAndExec: (executeArgs: QueryExecuteArgs<TArgs> | undefined, executeState: ReturnType<typeof setupQueryExecuteState>) => void;
3846
+ };
3847
+ declare const createSecureExecuteFactory: <TArgs extends QueryArgs>(options: SecureExecuteFactoryOptions<TArgs>) => InternalQueryExecute<TArgs>;
3848
+
3517
3849
  /** Config for {@link validateWithQuery}. */
3518
3850
  type ValidateWithQueryConfig<TCreator extends AnyQueryCreator, TValue, TPathKind extends PathKind> = {
3519
3851
  /**
@@ -3566,40 +3898,6 @@ type ValidateWithQueryConfig<TCreator extends AnyQueryCreator, TValue, TPathKind
3566
3898
  */
3567
3899
  declare const validateWithQuery: <TCreator extends AnyQueryCreator, TValue, TPathKind extends PathKind = PathKind.Root>(path: SchemaPath<TValue, SchemaPathRules.Supported, TPathKind>, config: ValidateWithQueryConfig<TCreator, TValue, TPathKind>) => void;
3568
3900
 
3569
- type InternalSecureCreateQueryCreatorOptions<TArgs extends QueryArgs> = InternalCreateQueryCreatorOptions<TArgs> & {
3570
- authProvider: AnyCreateBearerAuthProviderResult;
3571
- };
3572
- declare const createSecureQueryCreator: <TArgs extends QueryArgs>(options: CreateQueryCreatorOptions | undefined, internals: InternalSecureCreateQueryCreatorOptions<TArgs>) => QueryCreator<TArgs>;
3573
-
3574
- type CreateSecureQueryOptions<TArgs extends QueryArgs> = Omit<CreateQueryOptions<TArgs>, 'creatorInternals'> & {
3575
- creatorInternals: InternalSecureCreateQueryCreatorOptions<TArgs>;
3576
- };
3577
- declare const createSecureQuery: <TArgs extends QueryArgs>(options: CreateSecureQueryOptions<TArgs>) => _ethlete_query.Query<TArgs>;
3578
-
3579
- type CreateSecureQueryExecuteOptions<TArgs extends QueryArgs> = Omit<CreateQueryExecuteOptions<TArgs>, 'creatorInternals'> & {
3580
- creatorInternals: InternalSecureCreateQueryCreatorOptions<TArgs>;
3581
- };
3582
- declare const createSecureExecuteFn: <TArgs extends QueryArgs>(executeOptions: CreateSecureQueryExecuteOptions<TArgs>) => InternalQueryExecute<TArgs>;
3583
-
3584
- type SecureExecuteFactoryOptions<TArgs extends QueryArgs> = {
3585
- authProvider: AnyBearerAuthProvider;
3586
- deps: QueryDependencies;
3587
- state: QueryState<TArgs>;
3588
- /**
3589
- * Whether the query runs itself rather than only on an explicit `execute()` - the same condition
3590
- * `maybeExecute` and the `withArgs` feature use. Only those are re-run once a new session starts;
3591
- * re-firing a mutation on the next login would repeat it behind the user's back.
3592
- */
3593
- autoExecutes: boolean;
3594
- /**
3595
- * Hands the execution over to the concrete query implementation. `executeArgs.args.headers` is a
3596
- * provider function, not resolved headers - it must be passed through to the repository as-is, or
3597
- * the request freezes the access token it was first built with.
3598
- */
3599
- transformAuthAndExec: (executeArgs: QueryExecuteArgs<TArgs> | undefined, executeState: ReturnType<typeof setupQueryExecuteState>) => void;
3600
- };
3601
- declare const createSecureExecuteFactory: <TArgs extends QueryArgs>(options: SecureExecuteFactoryOptions<TArgs>) => InternalQueryExecute<TArgs>;
3602
-
3603
3901
  type BearerAuthProviderTokens = {
3604
3902
  accessToken: string;
3605
3903
  refreshToken: string;
@@ -3840,7 +4138,11 @@ type BearerAuthMultiTabSyncConfig = {
3840
4138
  leaderElection?: boolean;
3841
4139
  };
3842
4140
  type BearerAuthMultiTabSyncFeature = {
3843
- /** Whether this tab is the one performing the automatic token refresh. */
4141
+ /**
4142
+ * Whether this tab is the one performing the automatic token refresh. It follows the user: a tab
4143
+ * that becomes hidden gives the leadership up, a tab that becomes visible claims it, and a tab that
4144
+ * stopped running has it taken off it.
4145
+ */
3844
4146
  isLeader: Signal<boolean>;
3845
4147
  /** How many tabs of this app currently take part in the election. Telemetry only. */
3846
4148
  instanceCount: Signal<number>;
@@ -3855,7 +4157,8 @@ type BearerAuthMultiTabSyncFeature = {
3855
4157
  /**
3856
4158
  * Keeps one browser session consistent across the user's tabs: a login in one tab logs the others in,
3857
4159
  * a logout logs them out, and only one tab (the leader) performs the automatic token refresh so a
3858
- * single-use refresh token is not spent twice.
4160
+ * single-use refresh token is not spent twice. The leadership follows the tab the user is looking at,
4161
+ * because a hidden tab has its timers throttled and a frozen one runs none at all.
3859
4162
  *
3860
4163
  * Off by default - a single-tab app, a kiosk or an embedded webview ships neither the
3861
4164
  * `BroadcastChannel` sync nor the Web Locks leader election without it. Degrades to "this tab is the
@@ -4245,6 +4548,14 @@ type BearerAuthRefreshCoordination = {
4245
4548
  request: () => void;
4246
4549
  /** Emits in the leader tab whenever another tab asked for a refresh. */
4247
4550
  requests$: Observable<void>;
4551
+ /**
4552
+ * Tells the other tabs that a refresh started here. It is what makes {@link request} more than a
4553
+ * message into the void: a follower that gets no answer takes the refresh over itself, so a leader
4554
+ * that is working on one has to say so.
4555
+ */
4556
+ announceStart: () => void;
4557
+ /** Emits whenever another tab announced that it started a refresh. */
4558
+ starts$: Observable<void>;
4248
4559
  };
4249
4560
  /**
4250
4561
  * How the tabs of one session keep a single idea of when the user was last active. Contributed by
@@ -4789,7 +5100,7 @@ type QueryDevtoolsFormHandle = {
4789
5100
  * The kind of object a {@link QueryDevtoolsEntry} describes. Part of the devtools contract consumed
4790
5101
  * by `<et-query-devtools>` - not a general-purpose query API.
4791
5102
  */
4792
- type QueryDevtoolsEntryKind = 'query' | 'query-stack' | 'paged-query-stack' | 'query-sequence' | 'auth-provider' | 'ws-client' | 'query-form';
5103
+ type QueryDevtoolsEntryKind = 'query' | 'query-stack' | 'paged-query-stack' | 'query-sequence' | 'query-batch' | 'auth-provider' | 'ws-client' | 'query-form';
4793
5104
  /**
4794
5105
  * One chunk of a parsed query route: either literal text (`param: null`) or a path param, whose name
4795
5106
  * is in {@link QueryDevtoolsRoutePart.text}. Lets the devtools tell a route's static parts from its
@@ -4844,6 +5155,18 @@ type QueryDevtoolsEntryMeta = {
4844
5155
  authProviderName?: string;
4845
5156
  /** The provider's own queries, for auth providers. */
4846
5157
  authQueries?: QueryDevtoolsAuthQuery[];
5158
+ /**
5159
+ * The batch that created a query, for the one query `createQueryBatch` runs per item. The panel folds
5160
+ * such queries under their batch's own entry instead of listing a row per item, and the registry caps
5161
+ * their tombstones per batch so a bulk run cannot evict everything else it kept.
5162
+ */
5163
+ batch?: QueryBatchDevtoolsHandle;
5164
+ /** Which of the batch's items the query was created for, for a batch's item query. */
5165
+ batchItemIndex?: number;
5166
+ /** How many of a batch's requests may be in flight at once, for batches. */
5167
+ concurrency?: number;
5168
+ /** Whether a batch's first failure stops the rest of the run, for batches. */
5169
+ stopOnError?: boolean;
4847
5170
  /** The query config passed at creation, for queries. */
4848
5171
  queryConfig?: QueryConfig;
4849
5172
  /** The creator options passed at creation, for queries. */
@@ -5401,6 +5724,12 @@ declare const applyQueryDevtoolsTokenTtl: <T>(options: {
5401
5724
  * so the list is capped for the same reason the repository caps its unused entries.
5402
5725
  */
5403
5726
  declare const MAX_QUERY_DEVTOOLS_TOMBSTONES = 50;
5727
+ /**
5728
+ * How many of its settled items' queries one batch keeps. Counted per batch rather than against
5729
+ * {@link MAX_QUERY_DEVTOOLS_TOMBSTONES}, so a bulk run cannot evict the tombstones the panel is read
5730
+ * for - and low, because the batch's own entry already holds every item's args, response and error.
5731
+ */
5732
+ declare const MAX_QUERY_BATCH_TOMBSTONES = 20;
5404
5733
  /**
5405
5734
  * A destroyed query's last state, shaped like the query itself: every signal the panel reads is
5406
5735
  * replaced by a function returning the value it held when the query went away, and every action is a
@@ -7594,7 +7923,7 @@ declare class QueryDevtoolsComponent {
7594
7923
  secure: boolean | undefined;
7595
7924
  route: any;
7596
7925
  reportProgress: boolean | undefined;
7597
- responseType: "json" | "text" | "blob" | "arraybuffer" | undefined;
7926
+ responseType: "text" | "json" | "blob" | "arraybuffer" | undefined;
7598
7927
  withCredentials: boolean | undefined;
7599
7928
  autoRefreshOn: _ethlete_query.QueryAutoRefreshConfig | undefined;
7600
7929
  enableSmartPolling: boolean | undefined;
@@ -7604,7 +7933,7 @@ declare class QueryDevtoolsComponent {
7604
7933
  secure: boolean | undefined;
7605
7934
  route: any;
7606
7935
  reportProgress: boolean | undefined;
7607
- responseType: "json" | "text" | "blob" | "arraybuffer" | undefined;
7936
+ responseType: "text" | "json" | "blob" | "arraybuffer" | undefined;
7608
7937
  withCredentials: boolean | undefined;
7609
7938
  autoRefreshOn: _ethlete_query.QueryAutoRefreshConfig | undefined;
7610
7939
  enableSmartPolling: boolean | undefined;
@@ -8492,7 +8821,7 @@ type AnyWebSocketClient<TMessageData extends SocketMessageView = SocketMessageVi
8492
8821
  declare const createWebSocketClient: <TMessageData extends SocketMessageView = SocketMessageView>(options: CreateWebSocketClientConfigOptions) => WebSocketClientResult<TMessageData>;
8493
8822
 
8494
8823
  /** The version of `@ethlete/query` this build was cut from. */
8495
- declare const QUERY_VERSION = "6.0.0-next.37";
8824
+ declare const QUERY_VERSION = "6.0.0-next.39";
8496
8825
 
8497
- export { AuthBearerRefreshStrategy, BasicAuthProvider, BearerAuthFeatureType, BooleanArrayQueryField, CustomHeaderAuthProvider, DEFAULT_KEEP_UNUSED_FOR, DEFAULT_QUERY_PERSISTENCE_MAX_AGE, DEFAULT_QUERY_PERSISTENCE_MAX_ENTRIES, DEFAULT_QUERY_PERSISTENCE_VERSION, DEFAULT_QUERY_PERSISTENCE_WRITE_DELAY, DateArrayQueryField, DateQueryField, EMPTY_QUERY_DEVTOOLS_FAULT, EntityStore, IGNORED_FILTER_COUNT_FIELDS, INFINITY_QUERY_TOKEN, InfinityQuery, InfinityQueryDirective, InfinityQueryTriggerDirective, LegacyQuery, LegacyQueryCreator, MAX_QUERY_DEVTOOLS_TOMBSTONES, MAX_UNUSED_ENTRIES, NumberArrayQueryField, ParseHttpErrorCodeToMessageDePipe, ParseHttpErrorCodeToMessageEnPipe, ParseHttpErrorCodeToTitleDePipe, ParseHttpErrorCodeToTitleEnPipe, QUERY_CLIENT_DEVTOOLS_TOKEN, QUERY_DEVTOOLS_FAULT_STATUSES, QUERY_DEVTOOLS_TOKEN_TTL_LIMIT, QUERY_PERSISTENCE_STORE_VERSION, QUERY_SYNC_PROTOCOL_VERSION, QUERY_VERSION, QueryClientFeatureType, QueryDevtoolsComponent, QueryDirective, QueryFeatureType, QueryField, QueryForm, QueryRuntimeErrorCode, QueryShortNamePipe, QueryStateType, QueryStore, SERVER_ERROR_KIND, SERVER_VIOLATION_ERROR_KIND, SPEED_BUFFER_TIME_IN_MS, SearchQueryField, SortQueryField, StringArrayQueryField, V2BearerAuthProvider, V2Query, V2QueryClient, V2QueryCreator, addQueryContainerHandling, applyQueryDevtoolsOverrides, applyQueryDevtoolsTokenTtl, applyQueryFeatures, armAllQueryDevtoolsMocks, armQueryDevtoolsMock, armQueryDevtoolsOverrideTransfer, authExtractTokensResponseMissingAccessToken, authExtractTokensResponseMissingRefreshToken, authExtractTokensResponseNotObject, authProviderFeatureUsedMultipleTimes, booleanArrayQueryField, buildQueryCacheKey, buildQueryString, buildRoute, buildTimestampFromSeconds, canOverrideQueryDevtoolsTokenTtl, castQueryCreatorTypes, circularQueryDependency, circularQueryDependencyChecker, clearQueryDevtoolsArmedMocks, clearQueryDevtoolsFaults, clearQueryDevtoolsMockStore, clearQueryDevtoolsOverrideStore, clearQueryDevtoolsStore, clearQueryDevtoolsTokenTtl, clearQueryDevtoolsTombstones, clearRestoredQueryDevtoolsOverrides, collectLeafPaths, collectQueryDevtoolsSchemaComponents, computeQueryAuthHeader, computeQueryBody, computeQueryHeaders, computeQueryMethod, computeQueryQueryParams, contentfulGqlLikePaginationAdapter, countUnresolvedQueryDevtoolsOverrides, createAuthGuard, createBaseQuery, createBaseQueryCreator, createBearerAuthProvider, createDefaultRetryFn, createDeleteQuery, createExecuteFn, createGetQuery, createGqlExecuteFn, createGqlMutationViaGet, createGqlMutationViaPost, createGqlQuery, createGqlQueryCreator, createGqlQueryViaGet, createGqlQueryViaPost, createHttpRequest, createIndexedDbQueryPersistenceAdapter, createInfinityQueryConfig, createLegacyQueryCreator, createNoopQueryPersistenceAdapter, createPagedQueryStack, createPatchQuery, createPersistentAuthFeature, createPostQuery, createPutQuery, createQuery, createQueryClient, createQueryCollection, createQueryCollectionSignal, createQueryCollectionSubject, createQueryContext, createQueryCreator, createQueryDevtoolsOverrides, createQueryErrorResponse, createQueryFeature, createQueryInvalidationFilter, createQueryKeyLockManager, createQueryObject, createQueryPersistenceEngine, createQueryRepository, createQuerySnapshotFn, createQueryStack, createQuerySyncEngine, createQuerySyncTransport, createSecureDeleteQuery, createSecureExecuteFactory, createSecureExecuteFn, createSecureGetQuery, createSecureGqlExecuteFn, createSecureGqlMutationViaGet, createSecureGqlMutationViaPost, createSecureGqlQuery, createSecureGqlQueryCreator, createSecureGqlQueryViaGet, createSecureGqlQueryViaPost, createSecurePatchQuery, createSecurePostQuery, createSecurePutQuery, createSecureQuery, createSecureQueryCreator, createTrackingFeature, createWebSocketClient, dateArrayQueryField, dateQueryField, decryptBearer, deepFreeze, def, defineQueryForm, deleteQueryDevtoolsMock, detectContentTypeHeader, detectPaginationShape, dynLikePaginationAdapter, effectComputed, emptyQueryArgs, ethletePaginationAdapter, executeUntilSettled, extractExpiresInSeconds, extractFormViolations, extractHtmlErrorMessage, extractQuery, fakePaginationAdapter, filterFailure, filterNull, filterQueryStates, filterSuccess, forEachHeader, generateQueryDevtoolsNumberPreset, generateQueryDevtoolsSampleNumber, generateQueryDevtoolsStringPreset, getDefaultHeaders, getQueryFeatureUsage, getResponseUrl, ggLikePaginationAdapter, gql, gqlDataPropertyMissingInResponse, hasHeader, hasQueryDevtoolsOverridesAtPath, htmlErrorPayload, htmlQueryErrorParser, ignoreAutoRefresh, injectInfinityQueryResponseDelay, injectQueryContext, insertFrom, invalidBaseRouteError, invalidBodyError, invalidRouteError, invalidStateInsideSecureExecuteFactory, isAutoRefresh, isBasicAuthProvider, isBearerAuthProvider, isClassValidatorError, isCreateGqlQueryOptions, isCustomHeaderAuthProvider, isDateShapedLeaf, isEmptyString, isGqlQueryConfig, isHtmlErrorPayload, isLegacyQuery, isNaN, isPageOutOfRangeError, isQuery, isQueryCollection, isQueryDevtoolsFaultArmed, isQueryErrorResponse, isQueryStateCancelled, isQueryStateFailure, isQueryStateLoading, isQueryStatePrepared, isQueryStateSuccess, isRequestError, isSymfonyError, isSymfonyFormViolationListError, isSymfonyListError, isSymfonyPagerfantaOutOfRangeError, isUnderInvalidatedUrl, legacyPrepareWithoutInjectionContext, loadQueryDevtoolsSchema, mapToPaginated, mapViolationsToFormErrors, matchesQueryDevtoolsMockPattern, matchesQueryDevtoolsMockQuery, maybeExecute, measureQueryDevtoolsPayload, mergeHeaders, nestedEffect, numberArrayQueryField, pagedQueryStackNextPageCalledWithoutPreviousPage, pagedQueryStackPageBiggerThanTotalPages, pagedQueryStackPreviousPageCalledButAlreadyAtFirstPage, paginatedEntityValueUpdater, parseAllXhrResponseHeaders, parseHttpErrorCodeToMessageDe, parseHttpErrorCodeToMessageEn, parseHttpErrorCodeToTitleDe, parseHttpErrorCodeToTitleEn, parseQueryDevtoolsOverrideTransfer, pathParamsMissingInRouteFunctionError, provideInfinityQueryResponseDelay, provideLegacyPrepareFallback, provideQueryClientForDevtools, provideQueryDevtools, queryArrayComputed, queryClientFeatureUsedMultipleTimes, queryComputed, queryComputedTillTruthy, queryDevtoolsAbout, queryDevtoolsArmedMocks, queryDevtoolsArmedMocksRestored, queryDevtoolsEntries, queryDevtoolsFaults, queryDevtoolsFaultsRestored, queryDevtoolsMockId, queryDevtoolsMocks, queryDevtoolsOverridePersistence, queryDevtoolsRequestPath, queryDevtoolsResponseHistory, queryDevtoolsRestoredOverridesScope, queryDevtoolsSchemaNames, queryDevtoolsSchemaRoutes, queryDevtoolsSchemaState, queryDevtoolsSettings, queryDevtoolsStorage, queryDevtoolsTokenTtls, queryErrorMessage, queryErrorMessages, queryExecute, queryFeatureUsedMultipleTimes, queryField, querySequence, querySequenceAlreadyRunning, queryStackTotalQueriesAndExpectedQueriesMismatch, queryStackWithArgsUsed, queryStackWithResponseUpdateUsed, queryStateAlreadyHasKeyError, queryStateCannotTransformError, queryStateDoesNotContainKeyError, queryStateErrorSignal, queryStateLoadingSignal, queryStateResponseSignal, queryStateSignal, readQueryDevtoolsStore, registerEthleteVersion, registerQueryErrorParser, removeFrom, request, resetExecuteState, resetPageOnError, resolveInvalidationUrl, restoredQueryDevtoolsOverrides, saveQueryDevtoolsMock, searchQueryField, seedQueryDevtoolsSchemaBody, seedQueryDevtoolsSchemaRoute, serializeBody, serializeQueryDevtoolsOverrideTransfer, setDefaultQueryRetryFn, setQueryDevtoolsAppInfo, setQueryDevtoolsArmedMocksScope, setQueryDevtoolsFault, setQueryDevtoolsFaultsScope, setQueryDevtoolsOverridePersistence, setQueryDevtoolsOverridesScope, setQueryDevtoolsSettings, setQueryDevtoolsTokenTtl, setupQueryDependencies, setupQueryExecuteState, setupQueryState, shouldAutoExecuteGqlQuery, shouldAutoExecuteQuery, shouldCacheQuery, shouldRetryRequest, silenceMissingWithArgsFeatureErrorUsedButWithArgsPresent, skipPaginationPageParamCalculator, smartDuplicateArrayItem, snapshotQueryDevtoolsHandle, sortQueryField, splitQueryConfig, stringArrayQueryField, stringifyQueryRouteParts, sumQueryDevtoolsStats, switchQueryCollectionState, switchQueryState, symfonyQueryErrorParser, takeUntilResponse, toQuerySignal, toQuerySubject, tokensNotAvailableInsideAuthAndExec, tombstoneOf, transformArrayResponse, transformExecStateToQueryState, transformGql, transformMethod, transformPaginatedResponse, transformToBoolean, transformToBooleanArray, transformToDate, transformToDateArray, transformToNumber, transformToNumberArray, transformToSort, transformToSortQueryParam, transformToString, transformToStringArray, uncacheableRequestHasAllowCacheParam, uncacheableRequestHasCacheKeyParam, unwrapQuerySyncMessage, v2BuildQueryCacheKey, v2ExtractExpiresInSeconds, v2ShouldCacheQuery, v2ShouldRetryRequest, validateWithQuery, validateWithV2Query, withArgs, withArgsQueryFeatureMissingButRouteIsFunction, withAuthenticationQuery, withAutoRefresh, withAutoRefreshUsedInManualQuery, withAutoRefreshUsedOnUnsupportedHttpMethod, withBearerAuthMultiTabSync, withDefaultRetry, withErrorHandling, withEthleteApiErrors, withHtmlErrorParsing, withInactivityLogout, withLogging, withLongPolling, withLongPollingUsedOnUnsupportedHttpMethod, withLongPollingUsedWithPolling, withMultiTabSync, withPageResetOnError, withPersistentAuth, withPolling, withPollingUsedOnUnsupportedHttpMethod, withQueryPersistence, withRefreshQuery, withResponseUpdate, withSuccessHandling, withSymfonyErrors, withTokenExpirationWarning, withTokenRevocation, withTracking, wrapAsObservableSignal, wrapQuerySyncMessage, writeQueryDevtoolsStore };
8498
- export type { AnyBearerAuthProvider, AnyCreateBearerAuthProviderResult, AnyCreateGqlQueryCreatorOptions, AnyCreateQueryClientResult, AnyGqlQueryConfig, AnyInfinityQuery, AnyInfinityQueryConfig, AnyLegacyQuery, AnyLegacyQueryCreator, AnyNewQuery, AnyPagedQueryStack, AnyQueryBuilder, AnyQueryClient, AnyQueryCollection, AnyQueryCollectionData, AnyQueryCollectionResponse, AnyQueryCreator, AnyQueryCreatorCollection, AnyQueryForm, AnyQuerySnapshot, AnyQueryStack, AnyRestQueryConfig, AnyRoute, AnyV2Query, AnyV2QueryCreator, AnyWebSocketClient, AppendItemsLocation, ApplyExternalResponseOptions, ApplyPersistedResponseOptions, AuthGuard, AuthGuardConfig, AuthGuardTarget, AuthProvider, AuthProviderBasicConfig, AuthProviderBearerConfig, AuthProviderCustomHeaderConfig, AuthQueryBuilder, AuthQueryConfig, BaseArguments, BaseQueryCreatorFactoryOptions, BaseQueryCreatorOptions, BaseQueryCreatorOptionsSubtle, BearerAuthActivityCoordination, BearerAuthExecutionState, BearerAuthExecutionStateError, BearerAuthExecutionStateLoading, BearerAuthExecutionStateLogout, BearerAuthExecutionStateSuccess, BearerAuthExecutionStateTokenSeed, BearerAuthFeature, BearerAuthMultiTabSyncConfig, BearerAuthMultiTabSyncFeature, BearerAuthProvider, BearerAuthProviderEarlySetup, BearerAuthProviderEarlySetupContext, BearerAuthProviderEarlySetupResult, BearerAuthProviderFeatureContext, BearerAuthProviderOf, BearerAuthProviderQueryContext, BearerAuthProviderRef, BearerAuthProviderTokens, BearerAuthRefreshCoordination, BearerAuthSessionEndCause, BearerAuthSessionStatus, BearerRefreshConfig, BodyType, BuildQueryStringConfig, CacheAdapterFn, Cancelled, ClassValidatorError, ConstructQuery, CreateBaseQueryOptions, CreateBearerAuthProviderConfig, CreateGqlQueryCreatorOptions, CreateGqlQueryExecuteOptions, CreateGqlQueryOptions, CreateHttpRequestDependencies, CreateHttpRequestOptions, CreateIndexedDbQueryPersistenceAdapterOptions, CreateLegacyQueryCreatorOptions, CreateLegacyQueryOptions, CreatePagedQueryStackOptions, CreateQueryClientConfigOptions, CreateQueryCreatorOptions, CreateQueryExecuteOptions, CreateQueryObjectOptions, CreateQueryOptions, CreateQueryPersistenceEngineOptions, CreateQueryRepositoryConfig, CreateQuerySnapshotOptions, CreateQueryStackOptions, CreateQuerySyncEngineOptions, CreateSecureGqlQueryExecuteOptions, CreateSecureGqlQueryOptions, CreateSecureQueryExecuteOptions, CreateSecureQueryOptions, CreateWebSocketClientConfigOptions, CreateWebSocketClientTransport, DefaultRetryOptions, DefineQueryFormConfig, DescribableFeature, DestroyCleanupCallback, EmptyObject, EntityGetParams, EntityIdParams, EntityKey, EntitySetParams, EntityStoreConfig, ExecuteFactory, ExecuteQueryOptions, ExtractQueryArgs, ExtractQueryKey, Failure, FeatureRegistry, GQL, GqlQueryArgs, GqlQueryConfig, GqlQueryConfigWithoutMethod, GqlQueryMethod, GqlQueryTransport, GqlTransferOption, GqlTransformer, GqlVariablesType, HttpErrorEvent, HttpRequest, HttpRequestLoadingProgressState, HttpRequestLoadingState, HttpRequestResponseType, HttpRequestRetryState, HttpRequestSubtle, HttpRequestTransferCacheConfig, InactivityLogoutConfig, InactivityLogoutFeature, InfinityQueryConfig, InfinityQueryConfigType, InfinityQueryOf, InfinityQueryParamLocation, InsertFromConfig, InternalCreateGqlQueryCreatorOptions, InternalCreateQueryCreatorOptions, InternalQueryExecute, InternalSecureCreateGqlQueryCreatorOptions, InternalSecureCreateQueryCreatorOptions, InternalWebSocketRoom, JsonPath, LeaderInstanceCountChangeEventData, LeaderStatusChangeEventData, LegacyArgumentsOfQueryArgs, LegacyQueryPrepareFn, Loading, LogoutEventData, MapViolationsToFormErrorsOptions, Method, ObservableSignal, OptionalQueryFieldOptions, OverrideOp, PageParamCalculatorOptions, PagedQueryStack, PagedQueryStackDirection, PagedQueryStackExecuteOptions, PagedQueryStackResetOptions, PartialXhrState, PathParams, PathParamsType, PersistedQueryBody, PersistedQueryEntry, PersistedQueryEntryMeta, PersistentAuthConfig, PersistentAuthFeature, PollConfig, Prepared, Query, QueryArgs, QueryArgsOf, QueryArgsOfLegacyArguments, QueryAutoRefreshConfig, QueryBase, QueryClient, QueryClientDevtoolsOptions, QueryClientErrorPipelineFeature, QueryClientFeature, QueryClientFeatureContext, QueryClientFeatureFn, QueryClientMultiTabSyncFeature, QueryClientPersistenceFeature, QueryClientRef, QueryClientSubtle, QueryCollectionKeysOf, QueryCollectionOf, QueryCollectionWithNullableQuery, QueryConfig, QueryConfigBase, QueryConfigWithoutMethod, QueryContainerConfig, QueryContext, QueryCreator, QueryDataOf, QueryDependencies, QueryDevtoolsAbout, QueryDevtoolsAppInfo, QueryDevtoolsAuthQuery, QueryDevtoolsEntry, QueryDevtoolsEntryKind, QueryDevtoolsEntryMeta, QueryDevtoolsFault, QueryDevtoolsFaultTarget, QueryDevtoolsFeature, QueryDevtoolsFeatureDescriber, QueryDevtoolsFeatureDetail, QueryDevtoolsFormField, QueryDevtoolsFormHandle, QueryDevtoolsFormLinksHandle, QueryDevtoolsFormLinksRecorder, QueryDevtoolsMock, QueryDevtoolsMockTarget, QueryDevtoolsOptions, QueryDevtoolsOverrideEntry, QueryDevtoolsOverrideTransfer, QueryDevtoolsOverrideTransferParse, QueryDevtoolsOverridesHandle, QueryDevtoolsOverridesRecorder, QueryDevtoolsPayload, QueryDevtoolsRegistrar, QueryDevtoolsRegistration, QueryDevtoolsResolvedFault, QueryDevtoolsResolvedMock, QueryDevtoolsRoutePart, QueryDevtoolsRun, QueryDevtoolsRunError, QueryDevtoolsRunStatus, QueryDevtoolsSchemaComponents, QueryDevtoolsSchemaLoader, QueryDevtoolsSchemaLoaders, QueryDevtoolsSchemaRoute, QueryDevtoolsSchemaSeed, QueryDevtoolsSchemaState, QueryDevtoolsSeedStyle, QueryDevtoolsSettings, QueryDevtoolsStats, QueryDevtoolsStatsHandle, QueryDevtoolsStatsRecorder, QueryDevtoolsStorageScope, QueryDirectiveContext, QueryDirectiveType, QueryEntityConfig, QueryErrorParser, QueryErrorResponse, QueryErrorResponseItem, QueryErrorResponseList, QueryErrorResponseSingle, QueryExecute, QueryExecuteArgs, QueryExecuteEventData, QueryExecuteOptions, QueryExecuteState, QueryExecutionState, QueryExecutionStateFailure, QueryExecutionStateLoading, QueryExecutionStateLoadingWithCachedResponse, QueryExecutionStateLoadingWithNoResponse, QueryExecutionStateSuccess, QueryFailureEventData, QueryFeature, QueryFeatureContext, QueryFeatureFlags, QueryFeatureFn, QueryFieldConfig, QueryFieldDef, QueryFieldOptions, QueryFieldValue, QueryFilterConfig, QueryFormBranch, QueryFormChange, QueryFormFields, QueryFormGroup, QueryFormGroupControls, QueryFormModel, QueryFormObserveOptions, QueryFormOf, QueryFormOptions, QueryFormSignals, QueryFormSignalsObserveOptions, QueryFormSignalsWriteOptions, QueryFormValue, QueryFormValueEvent, QueryFormWriteOptions, QueryInvalidationCandidate, QueryInvalidationFilterFn, QueryInvalidationOptions, QueryKey, QueryKeyLockHold, QueryKeyLockManager, QueryKeyLockState, QueryMethod, QueryMockConfig, QueryMultiTabSyncConfig, QueryOf, QueryParams, QueryParamsType, QueryPersistenceAdapter, QueryPersistenceCandidate, QueryPersistenceConfig, QueryPersistenceEngine, QueryPrepareFn, QueryRefreshCause, QueryRegistry, QueryRegistryEntry, QueryRepository, QueryRepositoryCacheEntry, QueryRepositoryDependencies, QueryRepositoryEntryDestroyedCause, QueryRepositoryEvent, QueryRepositoryItem, QueryRepositoryRefreshFilterFn, QueryRepositoryRequestOptions, QueryRepositorySubtle, QueryResponseOf, QueryRouteOf, QuerySequence, QuerySequenceResult, QuerySequenceStatus, QuerySequenceStepArgs, QuerySnapshot, QueryStack, QueryStackSubtle, QueryState, QueryStateMeta, QueryStateResponseOf, QueryStateSignal, QueryStateSubtle, QueryStateSuccessMeta, QueryStoreIdOf, QueryStoreOf, QuerySubtle, QuerySuccessEventData, QuerySyncEngine, QuerySyncEnvelope, QuerySyncInvalidateMessage, QuerySyncMessage, QuerySyncMessageListener, QuerySyncMutation, QuerySyncMutationFilterFn, QuerySyncMutationMessage, QuerySyncRefreshCandidate, QuerySyncRefreshOnMutationConfig, QuerySyncResponseMessage, QuerySyncTransport, QueryTrigger, RawResponseType, ReadonlyQuery, RefreshFailure, RemoveFromConfig, RequestArgs, RequestConfig, RequestError, RequestEvent, RequestHeaders, RequestHeadersMethodMap, RequestHttpEvent, RequestProgress, RequestRetryFn, RequestRetryFnConfig, RequestRetryFnResult, RequiresTransform, ResetExecuteStateOptions, ResetPageOnErrorOperatorConfig, ResponseType, RestQueryConfig, RestoredQueryDevtoolsOverrides, RouteString, RouteType, RunQueryCreator, RunQueryExecuteOptions, SecureExecuteFactoryOptions, ServerValidationError, ServerViolationValidationError, SetupQueryDependenciesOptions, SetupQueryStateOptions, ShouldRetryRequestFn, ShouldRetryRequestOptions, ShouldRetryRequestResult, SocketMessageView, Sort, SortDirection, Success, SymfonyError, SymfonyErrorTrace, TokenExpirationWarningConfig, TokenExpirationWarningFeature, TokenRefreshEventData, TokenRefreshQueryBuilder, TokenRefreshQueryConfig, TokenResponse, TokenRevocationConfig, TokenRevocationFeature, TotalPagesExtractorOptions, TrackingConfig, TrackingEventDataMap, TrackingEventHandler, TrackingEventName, TrackingFeature, TransformedGqlQuery, V2CacheAdapterFn, V2PrepareArgsOf, V2QueryArgsOf, V2QueryClientConfig, V2QueryConfig, V2QueryState, V2RouteString, V2RouteType, ValidateWithQueryConfig, ValidateWithV2QueryConfig, WebSocketClient, WebSocketClientIo, WebSocketClientIoOptions, WebSocketClientResult, WebSocketClientSocket, WebSocketClientSubtle, WebSocketDevtoolsHandle, WebSocketDevtoolsMessage, WebSocketRoom, WithAutoRefreshFeatureOptions, WithBody, WithConfig, WithErrorHandlingFeatureOptions, WithHeaders, WithInjector, WithLegacyConfig, WithLoggingFeatureOptions, WithLongPollingFeatureOptions, WithMock, WithPageResetOnErrorFeatureOptions, WithPathParams, WithPollingFeatureOptions, WithQueryParams, WithResponseUpdateFeatureFnData, WithResponseUpdateFeatureOptions, WithSuccessHandlingFeatureOptions, WithVariables };
8826
+ export { AuthBearerRefreshStrategy, BasicAuthProvider, BearerAuthFeatureType, BooleanArrayQueryField, CustomHeaderAuthProvider, DEFAULT_KEEP_UNUSED_FOR, DEFAULT_QUERY_PERSISTENCE_MAX_AGE, DEFAULT_QUERY_PERSISTENCE_MAX_ENTRIES, DEFAULT_QUERY_PERSISTENCE_VERSION, DEFAULT_QUERY_PERSISTENCE_WRITE_DELAY, DateArrayQueryField, DateQueryField, EMPTY_QUERY_DEVTOOLS_FAULT, EntityStore, IGNORED_FILTER_COUNT_FIELDS, INFINITY_QUERY_TOKEN, InfinityQuery, InfinityQueryDirective, InfinityQueryTriggerDirective, LegacyQuery, LegacyQueryCreator, MAX_QUERY_BATCH_TOMBSTONES, MAX_QUERY_DEVTOOLS_TOMBSTONES, MAX_UNUSED_ENTRIES, NumberArrayQueryField, ParseHttpErrorCodeToMessageDePipe, ParseHttpErrorCodeToMessageEnPipe, ParseHttpErrorCodeToTitleDePipe, ParseHttpErrorCodeToTitleEnPipe, QUERY_CLIENT_DEVTOOLS_TOKEN, QUERY_DEVTOOLS_FAULT_STATUSES, QUERY_DEVTOOLS_TOKEN_TTL_LIMIT, QUERY_PERSISTENCE_STORE_VERSION, QUERY_SYNC_PROTOCOL_VERSION, QUERY_VERSION, QueryClientFeatureType, QueryDevtoolsComponent, QueryDirective, QueryFeatureType, QueryField, QueryForm, QueryRuntimeErrorCode, QueryShortNamePipe, QueryStateType, QueryStore, SERVER_ERROR_KIND, SERVER_VIOLATION_ERROR_KIND, SPEED_BUFFER_TIME_IN_MS, SearchQueryField, SortQueryField, StringArrayQueryField, V2BearerAuthProvider, V2Query, V2QueryClient, V2QueryCreator, addQueryContainerHandling, applyQueryDevtoolsOverrides, applyQueryDevtoolsTokenTtl, applyQueryFeatures, armAllQueryDevtoolsMocks, armQueryDevtoolsMock, armQueryDevtoolsOverrideTransfer, authExtractTokensResponseMissingAccessToken, authExtractTokensResponseMissingRefreshToken, authExtractTokensResponseNotObject, authProviderFeatureUsedMultipleTimes, booleanArrayQueryField, buildQueryCacheKey, buildQueryString, buildRoute, buildTimestampFromSeconds, canOverrideQueryDevtoolsTokenTtl, castQueryCreatorTypes, circularQueryDependency, circularQueryDependencyChecker, clearQueryDevtoolsArmedMocks, clearQueryDevtoolsFaults, clearQueryDevtoolsMockStore, clearQueryDevtoolsOverrideStore, clearQueryDevtoolsStore, clearQueryDevtoolsTokenTtl, clearQueryDevtoolsTombstones, clearRestoredQueryDevtoolsOverrides, collectLeafPaths, collectQueryDevtoolsSchemaComponents, computeQueryAuthHeader, computeQueryBody, computeQueryHeaders, computeQueryMethod, computeQueryQueryParams, contentfulGqlLikePaginationAdapter, countUnresolvedQueryDevtoolsOverrides, createAuthGuard, createBaseQuery, createBaseQueryCreator, createBearerAuthProvider, createDefaultRetryFn, createDeleteQuery, createExecuteFn, createGetQuery, createGqlExecuteFn, createGqlMutationViaGet, createGqlMutationViaPost, createGqlQuery, createGqlQueryCreator, createGqlQueryViaGet, createGqlQueryViaPost, createHttpRequest, createIndexedDbQueryPersistenceAdapter, createInfinityQueryConfig, createLegacyQueryCreator, createNoopQueryPersistenceAdapter, createPagedQueryStack, createPatchQuery, createPersistentAuthFeature, createPostQuery, createPutQuery, createQuery, createQueryBatch, createQueryClient, createQueryCollection, createQueryCollectionSignal, createQueryCollectionSubject, createQueryContext, createQueryCreator, createQueryDevtoolsOverrides, createQueryErrorResponse, createQueryFeature, createQueryInvalidationFilter, createQueryKeyLockManager, createQueryObject, createQueryPersistenceEngine, createQueryRepository, createQuerySnapshotFn, createQueryStack, createQuerySubmission, createQuerySyncEngine, createQuerySyncTransport, createSecureDeleteQuery, createSecureExecuteFactory, createSecureExecuteFn, createSecureGetQuery, createSecureGqlExecuteFn, createSecureGqlMutationViaGet, createSecureGqlMutationViaPost, createSecureGqlQuery, createSecureGqlQueryCreator, createSecureGqlQueryViaGet, createSecureGqlQueryViaPost, createSecurePatchQuery, createSecurePostQuery, createSecurePutQuery, createSecureQuery, createSecureQueryCreator, createTrackingFeature, createWebSocketClient, dateArrayQueryField, dateQueryField, decryptBearer, deepFreeze, def, defineQueryForm, deleteQueryDevtoolsMock, detectContentTypeHeader, detectPaginationShape, dynLikePaginationAdapter, effectComputed, emptyQueryArgs, ethletePaginationAdapter, executeUntilSettled, extractExpiresInSeconds, extractFormViolations, extractHtmlErrorMessage, extractQuery, fakePaginationAdapter, filterFailure, filterNull, filterQueryStates, filterSuccess, forEachHeader, generateQueryDevtoolsNumberPreset, generateQueryDevtoolsSampleNumber, generateQueryDevtoolsStringPreset, getDefaultHeaders, getQueryFeatureUsage, getResponseUrl, ggLikePaginationAdapter, gql, gqlDataPropertyMissingInResponse, hasHeader, hasQueryDevtoolsOverridesAtPath, htmlErrorPayload, htmlQueryErrorParser, ignoreAutoRefresh, injectInfinityQueryResponseDelay, injectQueryContext, insertFrom, invalidBaseRouteError, invalidBodyError, invalidRouteError, invalidStateInsideSecureExecuteFactory, isAutoRefresh, isBasicAuthProvider, isBearerAuthProvider, isClassValidatorError, isCreateGqlQueryOptions, isCustomHeaderAuthProvider, isDateShapedLeaf, isEmptyString, isGqlQueryConfig, isHtmlErrorPayload, isLegacyQuery, isNaN, isPageOutOfRangeError, isQuery, isQueryCollection, isQueryDevtoolsFaultArmed, isQueryErrorResponse, isQueryStateCancelled, isQueryStateFailure, isQueryStateLoading, isQueryStatePrepared, isQueryStateSuccess, isRequestError, isSymfonyError, isSymfonyFormViolationListError, isSymfonyListError, isSymfonyPagerfantaOutOfRangeError, isUnderInvalidatedUrl, legacyPrepareWithoutInjectionContext, loadQueryDevtoolsSchema, mapToPaginated, mapViolationsToFormErrors, matchesQueryDevtoolsMockPattern, matchesQueryDevtoolsMockQuery, maybeExecute, measureQueryDevtoolsPayload, mergeHeaders, nestedEffect, numberArrayQueryField, pagedQueryStackNextPageCalledWithoutPreviousPage, pagedQueryStackPageBiggerThanTotalPages, pagedQueryStackPreviousPageCalledButAlreadyAtFirstPage, paginatedEntityValueUpdater, parseAllXhrResponseHeaders, parseHttpErrorCodeToMessageDe, parseHttpErrorCodeToMessageEn, parseHttpErrorCodeToTitleDe, parseHttpErrorCodeToTitleEn, parseQueryDevtoolsOverrideTransfer, pathParamsMissingInRouteFunctionError, provideInfinityQueryResponseDelay, provideLegacyPrepareFallback, provideQueryClientForDevtools, provideQueryDevtools, queryArrayComputed, queryBatchAlreadyRunning, queryBatchWithArgsUsed, queryClientFeatureUsedMultipleTimes, queryComputed, queryComputedTillTruthy, queryDevtoolsAbout, queryDevtoolsArmedMocks, queryDevtoolsArmedMocksRestored, queryDevtoolsEntries, queryDevtoolsFaults, queryDevtoolsFaultsRestored, queryDevtoolsMockId, queryDevtoolsMocks, queryDevtoolsOverridePersistence, queryDevtoolsRequestPath, queryDevtoolsResponseHistory, queryDevtoolsRestoredOverridesScope, queryDevtoolsSchemaNames, queryDevtoolsSchemaRoutes, queryDevtoolsSchemaState, queryDevtoolsSettings, queryDevtoolsStorage, queryDevtoolsTokenTtls, queryErrorMessage, queryErrorMessages, queryExecute, queryFeatureUsedMultipleTimes, queryField, querySequence, querySequenceAlreadyRunning, queryStackTotalQueriesAndExpectedQueriesMismatch, queryStackWithArgsUsed, queryStackWithResponseUpdateUsed, queryStateAlreadyHasKeyError, queryStateCannotTransformError, queryStateDoesNotContainKeyError, queryStateErrorSignal, queryStateLoadingSignal, queryStateResponseSignal, queryStateSignal, readQueryDevtoolsStore, registerEthleteVersion, registerQueryErrorParser, removeFrom, request, resetExecuteState, resetPageOnError, resolveInvalidationUrl, restoredQueryDevtoolsOverrides, saveQueryDevtoolsMock, searchQueryField, seedQueryDevtoolsSchemaBody, seedQueryDevtoolsSchemaRoute, serializeBody, serializeQueryDevtoolsOverrideTransfer, setDefaultQueryRetryFn, setQueryDevtoolsAppInfo, setQueryDevtoolsArmedMocksScope, setQueryDevtoolsFault, setQueryDevtoolsFaultsScope, setQueryDevtoolsOverridePersistence, setQueryDevtoolsOverridesScope, setQueryDevtoolsSettings, setQueryDevtoolsTokenTtl, setupQueryDependencies, setupQueryExecuteState, setupQueryState, shouldAutoExecuteGqlQuery, shouldAutoExecuteQuery, shouldCacheQuery, shouldRetryRequest, silenceMissingWithArgsFeatureErrorUsedButWithArgsPresent, skipPaginationPageParamCalculator, smartDuplicateArrayItem, snapshotQueryDevtoolsHandle, sortQueryField, splitQueryConfig, stringArrayQueryField, stringifyQueryRouteParts, sumQueryDevtoolsStats, switchQueryCollectionState, switchQueryState, symfonyQueryErrorParser, takeUntilResponse, toQuerySignal, toQuerySubject, tokensNotAvailableInsideAuthAndExec, tombstoneOf, transformArrayResponse, transformExecStateToQueryState, transformGql, transformMethod, transformPaginatedResponse, transformToBoolean, transformToBooleanArray, transformToDate, transformToDateArray, transformToNumber, transformToNumberArray, transformToSort, transformToSortQueryParam, transformToString, transformToStringArray, uncacheableRequestHasAllowCacheParam, uncacheableRequestHasCacheKeyParam, unwrapQuerySyncMessage, v2BuildQueryCacheKey, v2ExtractExpiresInSeconds, v2ShouldCacheQuery, v2ShouldRetryRequest, validateWithQuery, validateWithV2Query, withArgs, withArgsQueryFeatureMissingButRouteIsFunction, withAuthenticationQuery, withAutoRefresh, withAutoRefreshUsedInManualQuery, withAutoRefreshUsedOnUnsupportedHttpMethod, withBearerAuthMultiTabSync, withDefaultRetry, withErrorHandling, withEthleteApiErrors, withHtmlErrorParsing, withInactivityLogout, withLogging, withLongPolling, withLongPollingUsedOnUnsupportedHttpMethod, withLongPollingUsedWithPolling, withMultiTabSync, withPageResetOnError, withPersistentAuth, withPolling, withPollingUsedOnUnsupportedHttpMethod, withQueryPersistence, withRefreshQuery, withResponseUpdate, withSuccessHandling, withSymfonyErrors, withTokenExpirationWarning, withTokenRevocation, withTracking, wrapAsObservableSignal, wrapQuerySyncMessage, writeQueryDevtoolsStore };
8827
+ export type { AnyBearerAuthProvider, AnyCreateBearerAuthProviderResult, AnyCreateGqlQueryCreatorOptions, AnyCreateQueryClientResult, AnyGqlQueryConfig, AnyInfinityQuery, AnyInfinityQueryConfig, AnyLegacyQuery, AnyLegacyQueryCreator, AnyNewQuery, AnyPagedQueryStack, AnyQueryBatch, AnyQueryBatchItemResult, AnyQueryBuilder, AnyQueryClient, AnyQueryCollection, AnyQueryCollectionData, AnyQueryCollectionResponse, AnyQueryCreator, AnyQueryCreatorCollection, AnyQueryForm, AnyQuerySnapshot, AnyQueryStack, AnyRestQueryConfig, AnyRoute, AnyV2Query, AnyV2QueryCreator, AnyWebSocketClient, AppendItemsLocation, ApplyExternalResponseOptions, ApplyPersistedResponseOptions, AuthGuard, AuthGuardConfig, AuthGuardTarget, AuthProvider, AuthProviderBasicConfig, AuthProviderBearerConfig, AuthProviderCustomHeaderConfig, AuthQueryBuilder, AuthQueryConfig, BaseArguments, BaseQueryCreatorFactoryOptions, BaseQueryCreatorOptions, BaseQueryCreatorOptionsSubtle, BearerAuthActivityCoordination, BearerAuthExecutionState, BearerAuthExecutionStateError, BearerAuthExecutionStateLoading, BearerAuthExecutionStateLogout, BearerAuthExecutionStateSuccess, BearerAuthExecutionStateTokenSeed, BearerAuthFeature, BearerAuthMultiTabSyncConfig, BearerAuthMultiTabSyncFeature, BearerAuthProvider, BearerAuthProviderEarlySetup, BearerAuthProviderEarlySetupContext, BearerAuthProviderEarlySetupResult, BearerAuthProviderFeatureContext, BearerAuthProviderOf, BearerAuthProviderQueryContext, BearerAuthProviderRef, BearerAuthProviderTokens, BearerAuthRefreshCoordination, BearerAuthSessionEndCause, BearerAuthSessionStatus, BearerRefreshConfig, BodyType, BuildQueryStringConfig, CacheAdapterFn, Cancelled, ClassValidatorError, ConstructQuery, CreateBaseQueryOptions, CreateBearerAuthProviderConfig, CreateGqlQueryCreatorOptions, CreateGqlQueryExecuteOptions, CreateGqlQueryOptions, CreateHttpRequestDependencies, CreateHttpRequestOptions, CreateIndexedDbQueryPersistenceAdapterOptions, CreateLegacyQueryCreatorOptions, CreateLegacyQueryOptions, CreatePagedQueryStackOptions, CreateQueryBatchOptions, CreateQueryClientConfigOptions, CreateQueryCreatorOptions, CreateQueryExecuteOptions, CreateQueryObjectOptions, CreateQueryOptions, CreateQueryPersistenceEngineOptions, CreateQueryRepositoryConfig, CreateQuerySnapshotOptions, CreateQueryStackOptions, CreateQuerySubmissionConfig, CreateQuerySyncEngineOptions, CreateSecureGqlQueryExecuteOptions, CreateSecureGqlQueryOptions, CreateSecureQueryExecuteOptions, CreateSecureQueryOptions, CreateWebSocketClientConfigOptions, CreateWebSocketClientTransport, DefaultRetryOptions, DefineQueryFormConfig, DescribableFeature, DestroyCleanupCallback, EmptyObject, EntityGetParams, EntityIdParams, EntityKey, EntitySetParams, EntityStoreConfig, ExecuteFactory, ExecuteQueryOptions, ExtractQueryArgs, ExtractQueryKey, Failure, FeatureRegistry, GQL, GqlQueryArgs, GqlQueryConfig, GqlQueryConfigWithoutMethod, GqlQueryMethod, GqlQueryTransport, GqlTransferOption, GqlTransformer, GqlVariablesType, HttpErrorEvent, HttpRequest, HttpRequestLoadingProgressState, HttpRequestLoadingState, HttpRequestResponseType, HttpRequestRetryState, HttpRequestSubtle, HttpRequestTransferCacheConfig, InactivityLogoutConfig, InactivityLogoutFeature, InfinityQueryConfig, InfinityQueryConfigType, InfinityQueryOf, InfinityQueryParamLocation, InsertFromConfig, InternalCreateGqlQueryCreatorOptions, InternalCreateQueryCreatorOptions, InternalQueryExecute, InternalSecureCreateGqlQueryCreatorOptions, InternalSecureCreateQueryCreatorOptions, InternalWebSocketRoom, JsonPath, LeaderInstanceCountChangeEventData, LeaderStatusChangeEventData, LegacyArgumentsOfQueryArgs, LegacyQueryPrepareFn, Loading, LogoutEventData, MapViolationsToFormErrorsOptions, Method, ObservableSignal, OptionalQueryFieldOptions, OverrideOp, PageParamCalculatorOptions, PagedQueryStack, PagedQueryStackDirection, PagedQueryStackExecuteOptions, PagedQueryStackResetOptions, PartialXhrState, PathParams, PathParamsType, PersistedQueryBody, PersistedQueryEntry, PersistedQueryEntryMeta, PersistentAuthConfig, PersistentAuthFeature, PollConfig, Prepared, Query, QueryArgs, QueryArgsOf, QueryArgsOfLegacyArguments, QueryAutoRefreshConfig, QueryBase, QueryBatch, QueryBatchDevtoolsHandle, QueryBatchItemCancelled, QueryBatchItemError, QueryBatchItemResult, QueryBatchItemSkipped, QueryBatchItemSuccess, QueryBatchResult, QueryBatchStatus, QueryClient, QueryClientDevtoolsOptions, QueryClientErrorPipelineFeature, QueryClientFeature, QueryClientFeatureContext, QueryClientFeatureFn, QueryClientMultiTabSyncFeature, QueryClientPersistenceFeature, QueryClientRef, QueryClientSubtle, QueryCollectionKeysOf, QueryCollectionOf, QueryCollectionWithNullableQuery, QueryConfig, QueryConfigBase, QueryConfigWithoutMethod, QueryContainerConfig, QueryContext, QueryCreator, QueryDataOf, QueryDependencies, QueryDevtoolsAbout, QueryDevtoolsAppInfo, QueryDevtoolsAuthQuery, QueryDevtoolsEntry, QueryDevtoolsEntryKind, QueryDevtoolsEntryMeta, QueryDevtoolsFault, QueryDevtoolsFaultTarget, QueryDevtoolsFeature, QueryDevtoolsFeatureDescriber, QueryDevtoolsFeatureDetail, QueryDevtoolsFormField, QueryDevtoolsFormHandle, QueryDevtoolsFormLinksHandle, QueryDevtoolsFormLinksRecorder, QueryDevtoolsMock, QueryDevtoolsMockTarget, QueryDevtoolsOptions, QueryDevtoolsOverrideEntry, QueryDevtoolsOverrideTransfer, QueryDevtoolsOverrideTransferParse, QueryDevtoolsOverridesHandle, QueryDevtoolsOverridesRecorder, QueryDevtoolsPayload, QueryDevtoolsRegistrar, QueryDevtoolsRegistration, QueryDevtoolsResolvedFault, QueryDevtoolsResolvedMock, QueryDevtoolsRoutePart, QueryDevtoolsRun, QueryDevtoolsRunError, QueryDevtoolsRunStatus, QueryDevtoolsSchemaComponents, QueryDevtoolsSchemaLoader, QueryDevtoolsSchemaLoaders, QueryDevtoolsSchemaRoute, QueryDevtoolsSchemaSeed, QueryDevtoolsSchemaState, QueryDevtoolsSeedStyle, QueryDevtoolsSettings, QueryDevtoolsStats, QueryDevtoolsStatsHandle, QueryDevtoolsStatsRecorder, QueryDevtoolsStorageScope, QueryDirectiveContext, QueryDirectiveType, QueryEntityConfig, QueryErrorParser, QueryErrorResponse, QueryErrorResponseItem, QueryErrorResponseList, QueryErrorResponseSingle, QueryExecute, QueryExecuteArgs, QueryExecuteEventData, QueryExecuteOptions, QueryExecuteState, QueryExecutionState, QueryExecutionStateFailure, QueryExecutionStateFailureWithCachedResponse, QueryExecutionStateFailureWithNoResponse, QueryExecutionStateLoading, QueryExecutionStateLoadingWithCachedResponse, QueryExecutionStateLoadingWithNoResponse, QueryExecutionStateSuccess, QueryFailureEventData, QueryFeature, QueryFeatureContext, QueryFeatureFlags, QueryFeatureFn, QueryFieldConfig, QueryFieldDef, QueryFieldOptions, QueryFieldValue, QueryFilterConfig, QueryFormBranch, QueryFormChange, QueryFormFields, QueryFormGroup, QueryFormGroupControls, QueryFormModel, QueryFormObserveOptions, QueryFormOf, QueryFormOptions, QueryFormSignals, QueryFormSignalsObserveOptions, QueryFormSignalsWriteOptions, QueryFormValue, QueryFormValueEvent, QueryFormWriteOptions, QueryInvalidationCandidate, QueryInvalidationFilterFn, QueryInvalidationOptions, QueryKey, QueryKeyLockHold, QueryKeyLockHoldOptions, QueryKeyLockManager, QueryKeyLockState, QueryMethod, QueryMockConfig, QueryMultiTabSyncConfig, QueryOf, QueryParams, QueryParamsType, QueryPersistenceAdapter, QueryPersistenceCandidate, QueryPersistenceConfig, QueryPersistenceEngine, QueryPrepareFn, QueryRefreshCause, QueryRegistry, QueryRegistryEntry, QueryRepository, QueryRepositoryCacheEntry, QueryRepositoryDependencies, QueryRepositoryEntryDestroyedCause, QueryRepositoryEvent, QueryRepositoryItem, QueryRepositoryRefreshFilterFn, QueryRepositoryRequestOptions, QueryRepositorySubtle, QueryResponseOf, QueryRouteOf, QuerySequence, QuerySequenceResult, QuerySequenceStatus, QuerySequenceStepArgs, QuerySnapshot, QueryStack, QueryStackSubtle, QueryState, QueryStateMeta, QueryStateResponseOf, QueryStateSignal, QueryStateSubtle, QueryStateSuccessMeta, QueryStoreIdOf, QueryStoreOf, QuerySubmissionRef, QuerySubtle, QuerySuccessEventData, QuerySyncEngine, QuerySyncEnvelope, QuerySyncInvalidateMessage, QuerySyncMessage, QuerySyncMessageListener, QuerySyncMutation, QuerySyncMutationFilterFn, QuerySyncMutationMessage, QuerySyncRefreshCandidate, QuerySyncRefreshOnMutationConfig, QuerySyncResponseMessage, QuerySyncTransport, QueryTrigger, RawResponseType, ReadonlyQuery, RefreshFailure, RemoveFromConfig, RequestArgs, RequestConfig, RequestError, RequestEvent, RequestHeaders, RequestHeadersMethodMap, RequestHttpEvent, RequestProgress, RequestRetryFn, RequestRetryFnConfig, RequestRetryFnResult, RequiresTransform, ResetExecuteStateOptions, ResetPageOnErrorOperatorConfig, ResponseType, RestQueryConfig, RestoredQueryDevtoolsOverrides, RouteString, RouteType, RunQueryCreator, RunQueryExecuteOptions, SecureExecuteFactoryOptions, ServerValidationError, ServerViolationValidationError, SetupQueryDependenciesOptions, SetupQueryStateOptions, ShouldRetryRequestFn, ShouldRetryRequestOptions, ShouldRetryRequestResult, SocketMessageView, Sort, SortDirection, Success, SymfonyError, SymfonyErrorTrace, TokenExpirationWarningConfig, TokenExpirationWarningFeature, TokenRefreshEventData, TokenRefreshQueryBuilder, TokenRefreshQueryConfig, TokenResponse, TokenRevocationConfig, TokenRevocationFeature, TotalPagesExtractorOptions, TrackingConfig, TrackingEventDataMap, TrackingEventHandler, TrackingEventName, TrackingFeature, TransformedGqlQuery, V2CacheAdapterFn, V2PrepareArgsOf, V2QueryArgsOf, V2QueryClientConfig, V2QueryConfig, V2QueryState, V2RouteString, V2RouteType, ValidateWithQueryConfig, ValidateWithV2QueryConfig, WebSocketClient, WebSocketClientIo, WebSocketClientIoOptions, WebSocketClientResult, WebSocketClientSocket, WebSocketClientSubtle, WebSocketDevtoolsHandle, WebSocketDevtoolsMessage, WebSocketRoom, WithAutoRefreshFeatureOptions, WithBody, WithConfig, WithErrorHandlingFeatureOptions, WithHeaders, WithInjector, WithLegacyConfig, WithLoggingFeatureOptions, WithLongPollingFeatureOptions, WithMock, WithPageResetOnErrorFeatureOptions, WithPathParams, WithPollingFeatureOptions, WithQueryParams, WithResponseUpdateFeatureFnData, WithResponseUpdateFeatureOptions, WithSuccessHandlingFeatureOptions, WithVariables };