@wisemen/vue-core-api-utils 0.0.1-beta.5 → 0.0.3
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.ts → index.d.mts} +15 -15
- package/package.json +19 -12
- /package/dist/{index.js → index.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue0 from "vue";
|
|
2
2
|
import { ComputedRef, MaybeRef, Ref, UnwrapRef } from "vue";
|
|
3
3
|
import { Result } from "neverthrow";
|
|
4
4
|
|
|
@@ -172,15 +172,15 @@ interface KeysetInfiniteQueryOptions<TData> {
|
|
|
172
172
|
queryKey: { [TQueryKey in keyof QueryKeys]?: { [TQueryKeyParam in keyof NonOptionalKeys$2<QueryKeys[TQueryKey]>]: MaybeRef<QueryKeys[TQueryKey][TQueryKeyParam]> } };
|
|
173
173
|
}
|
|
174
174
|
declare function useKeysetInfiniteQuery<TData>(options: KeysetInfiniteQueryOptions<TData>): {
|
|
175
|
-
hasNextPage:
|
|
176
|
-
isError:
|
|
177
|
-
isFetching:
|
|
178
|
-
isFetchingNextPage:
|
|
179
|
-
isLoading:
|
|
180
|
-
isSuccess:
|
|
175
|
+
hasNextPage: vue0.ComputedRef<boolean>;
|
|
176
|
+
isError: vue0.ComputedRef<boolean>;
|
|
177
|
+
isFetching: vue0.ComputedRef<boolean>;
|
|
178
|
+
isFetchingNextPage: vue0.ComputedRef<boolean>;
|
|
179
|
+
isLoading: vue0.ComputedRef<boolean>;
|
|
180
|
+
isSuccess: vue0.ComputedRef<boolean>;
|
|
181
181
|
fetchNextPage: () => Promise<void>;
|
|
182
182
|
refetch: () => Promise<void>;
|
|
183
|
-
result:
|
|
183
|
+
result: vue0.ComputedRef<KeysetPaginationResult<TData>>;
|
|
184
184
|
};
|
|
185
185
|
//#endregion
|
|
186
186
|
//#region src/composables/query/offsetInfiniteQuery.composable.d.ts
|
|
@@ -214,15 +214,15 @@ interface OffsetInfiniteQueryOptions<TData> {
|
|
|
214
214
|
queryKey: { [TQueryKey in keyof QueryKeys]?: { [TQueryKeyParam in keyof NonOptionalKeys$1<QueryKeys[TQueryKey]>]: MaybeRef<QueryKeys[TQueryKey][TQueryKeyParam]> } };
|
|
215
215
|
}
|
|
216
216
|
declare function useOffsetInfiniteQuery<TData>(options: OffsetInfiniteQueryOptions<TData>): {
|
|
217
|
-
hasNextPage:
|
|
218
|
-
isError:
|
|
219
|
-
isFetching:
|
|
220
|
-
isFetchingNextPage:
|
|
221
|
-
isLoading:
|
|
222
|
-
isSuccess:
|
|
217
|
+
hasNextPage: vue0.ComputedRef<boolean>;
|
|
218
|
+
isError: vue0.ComputedRef<boolean>;
|
|
219
|
+
isFetching: vue0.ComputedRef<boolean>;
|
|
220
|
+
isFetchingNextPage: vue0.ComputedRef<boolean>;
|
|
221
|
+
isLoading: vue0.ComputedRef<boolean>;
|
|
222
|
+
isSuccess: vue0.ComputedRef<boolean>;
|
|
223
223
|
fetchNextPage: () => Promise<void>;
|
|
224
224
|
refetch: () => Promise<void>;
|
|
225
|
-
result:
|
|
225
|
+
result: vue0.ComputedRef<OffsetPaginationResult<TData>>;
|
|
226
226
|
};
|
|
227
227
|
//#endregion
|
|
228
228
|
//#region src/composables/query/query.composable.d.ts
|
package/package.json
CHANGED
|
@@ -4,19 +4,24 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "0.0.
|
|
7
|
+
"version": "0.0.3",
|
|
8
8
|
"license": "MIT",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/wisemen-digital/wisemen-core",
|
|
12
|
+
"directory": "packages/api-utils"
|
|
13
|
+
},
|
|
9
14
|
"sideEffects": false,
|
|
10
15
|
"exports": {
|
|
11
16
|
".": {
|
|
12
|
-
"types": "./dist/index.d.
|
|
13
|
-
"import": "./dist/index.
|
|
17
|
+
"types": "./dist/index.d.mts",
|
|
18
|
+
"import": "./dist/index.mjs"
|
|
14
19
|
}
|
|
15
20
|
},
|
|
16
|
-
"main": "./dist/index.
|
|
17
|
-
"module": "./dist/index.
|
|
18
|
-
"types": "./dist/index.d.
|
|
19
|
-
"typings": "./dist/index.d.
|
|
21
|
+
"main": "./dist/index.mjs",
|
|
22
|
+
"module": "./dist/index.mjs",
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"typings": "./dist/index.d.mts",
|
|
20
25
|
"files": [
|
|
21
26
|
"./dist"
|
|
22
27
|
],
|
|
@@ -27,19 +32,21 @@
|
|
|
27
32
|
},
|
|
28
33
|
"devDependencies": {
|
|
29
34
|
"@types/node": "24.8.1",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"tsdown": "0.15.8",
|
|
35
|
+
"eslint": "9.39.2",
|
|
36
|
+
"tsdown": "0.18.4",
|
|
33
37
|
"typescript": "5.9.3",
|
|
34
|
-
"vitest": "
|
|
38
|
+
"vitest": "4.0.17",
|
|
39
|
+
"@wisemen/eslint-config-vue": "2.0.0"
|
|
35
40
|
},
|
|
36
41
|
"scripts": {
|
|
37
42
|
"build": "tsdown",
|
|
43
|
+
"dev": "tsdown --watch",
|
|
38
44
|
"pub:release": "pnpm publish --access public",
|
|
39
45
|
"pub:beta": "pnpm publish --no-git-checks --access public --tag beta",
|
|
40
46
|
"pub:next": "pnpm publish --no-git-checks --access public --tag next",
|
|
41
47
|
"cleanup": "rimraf dist/ node_modules/ .turbo/",
|
|
42
|
-
"lint": "
|
|
48
|
+
"lint": "eslint .",
|
|
49
|
+
"lint:fix": "eslint . --fix",
|
|
43
50
|
"test": "vitest --run",
|
|
44
51
|
"typecheck": "pnpm tsc"
|
|
45
52
|
}
|
|
File without changes
|