@ethlete/query 5.26.0 → 5.27.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.
|
@@ -19,8 +19,11 @@ export type CreatePagedQueryStackOptions<TArgs extends QueryArgs, TNormPaginatio
|
|
|
19
19
|
* - `dynLikePaginationAdapter`
|
|
20
20
|
* - `contentfulGqlLikePaginationAdapter`
|
|
21
21
|
* - `fakePaginationAdapter` (for testing purposes)
|
|
22
|
+
*
|
|
23
|
+
* @param currentResponse The current response that was fetched.
|
|
24
|
+
* @param allResponses All responses that were fetched till now including the current response and pagination.
|
|
22
25
|
*/
|
|
23
|
-
responseNormalizer: (
|
|
26
|
+
responseNormalizer: (currentResponse: ResponseType<TArgs>, allResponses: NonNullable<ResponseType<TArgs>>[]) => TNormPagination;
|
|
24
27
|
/**
|
|
25
28
|
* The query creator function that will be used to create the paged query.
|
|
26
29
|
*/
|
|
@@ -32,8 +35,11 @@ export type CreatePagedQueryStackOptions<TArgs extends QueryArgs, TNormPaginatio
|
|
|
32
35
|
* If a signal changes, the paged query will be reset to the initial page.
|
|
33
36
|
*
|
|
34
37
|
* @example (page) => ({ queryParams: { page, limit:20 } }),
|
|
38
|
+
*
|
|
39
|
+
* @param page The page to fetch next. **Do not modify this argument.**
|
|
40
|
+
* @param allResponses All responses that were fetched till now including pagination.
|
|
35
41
|
*/
|
|
36
|
-
args: (page: number) => RequestArgs<TArgs
|
|
42
|
+
args: (page: number, allResponses: NonNullable<ResponseType<TArgs>>[]) => RequestArgs<TArgs> | null;
|
|
37
43
|
/**
|
|
38
44
|
* The features that should be used for all queries in the stack.
|
|
39
45
|
*
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethlete/query",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.27.1",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@angular/common": "19.1.
|
|
7
|
-
"@angular/core": "19.1.
|
|
8
|
-
"@angular/forms": "19.1.
|
|
9
|
-
"@angular/router": "19.1.
|
|
6
|
+
"@angular/common": "19.1.5",
|
|
7
|
+
"@angular/core": "19.1.5",
|
|
8
|
+
"@angular/forms": "19.1.5",
|
|
9
|
+
"@angular/router": "19.1.5",
|
|
10
10
|
"@ethlete/core": "^4.0.3",
|
|
11
11
|
"@ethlete/types": "^1.6.2",
|
|
12
12
|
"rxjs": "7.8.1",
|