@ethlete/query 5.33.0 → 5.33.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.
|
@@ -36,6 +36,7 @@ export type QueryExecuteOptions<TArgs extends QueryArgs> = {
|
|
|
36
36
|
options?: RunQueryExecuteOptions;
|
|
37
37
|
internalOptions?: InternalRunQueryExecuteOptions;
|
|
38
38
|
transformResponse?: (response: any) => any;
|
|
39
|
+
isSecure?: boolean;
|
|
39
40
|
};
|
|
40
41
|
export declare const queryExecute: <TArgs extends QueryArgs>(options: QueryExecuteOptions<TArgs>) => void;
|
|
41
42
|
export type CleanupPreviousExecuteOptions<TArgs extends QueryArgs> = {
|
|
@@ -13,6 +13,8 @@ export type QueryRepositoryRequestOptions<TArgs extends QueryArgs> = {
|
|
|
13
13
|
route: RouteType<TArgs>;
|
|
14
14
|
/** The HTTP method of the request */
|
|
15
15
|
method: QueryMethod;
|
|
16
|
+
/** If the request is secure (needs authentication) */
|
|
17
|
+
isSecure?: boolean;
|
|
16
18
|
/** The data of the request */
|
|
17
19
|
args?: RequestArgs<TArgs> | null;
|
|
18
20
|
/** The client options of the request */
|
|
@@ -44,6 +46,8 @@ export type QueryRepository = {
|
|
|
44
46
|
request: <TArgs extends QueryArgs>(options: QueryRepositoryRequestOptions<TArgs>) => QueryRepositoryItem<TArgs>;
|
|
45
47
|
/** Removes a consumer from a request by its key. Destroys the request if there are no more consumers left. */
|
|
46
48
|
unbind: (key: QueryKeyOrNone, destroyRef: DestroyRef) => boolean;
|
|
49
|
+
/** Removes all secure requests and their consumers */
|
|
50
|
+
unbindAllSecure: () => void;
|
|
47
51
|
};
|
|
48
52
|
/** The key of a query */
|
|
49
53
|
export type QueryKey = string;
|