@wisemen/vue-core-api-utils 0.0.1-beta.2 → 0.0.1-beta.5

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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.d.ts +16 -16
  3. package/dist/index.js +24 -33322
  4. package/package.json +10 -10
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Wisemen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { Result } from "neverthrow";
2
- import * as vue0 from "vue";
1
+ import * as vue6 from "vue";
3
2
  import { ComputedRef, MaybeRef, Ref, UnwrapRef } from "vue";
3
+ import { Result } from "neverthrow";
4
4
 
5
5
  //#region src/types/queryKeys.type.d.ts
6
6
  interface QueryKeys {}
@@ -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: 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>;
175
+ hasNextPage: vue6.ComputedRef<boolean>;
176
+ isError: vue6.ComputedRef<boolean>;
177
+ isFetching: vue6.ComputedRef<boolean>;
178
+ isFetchingNextPage: vue6.ComputedRef<boolean>;
179
+ isLoading: vue6.ComputedRef<boolean>;
180
+ isSuccess: vue6.ComputedRef<boolean>;
181
181
  fetchNextPage: () => Promise<void>;
182
182
  refetch: () => Promise<void>;
183
- result: vue0.ComputedRef<KeysetPaginationResult<TData>>;
183
+ result: vue6.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: 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>;
217
+ hasNextPage: vue6.ComputedRef<boolean>;
218
+ isError: vue6.ComputedRef<boolean>;
219
+ isFetching: vue6.ComputedRef<boolean>;
220
+ isFetchingNextPage: vue6.ComputedRef<boolean>;
221
+ isLoading: vue6.ComputedRef<boolean>;
222
+ isSuccess: vue6.ComputedRef<boolean>;
223
223
  fetchNextPage: () => Promise<void>;
224
224
  refetch: () => Promise<void>;
225
- result: vue0.ComputedRef<OffsetPaginationResult<TData>>;
225
+ result: vue6.ComputedRef<OffsetPaginationResult<TData>>;
226
226
  };
227
227
  //#endregion
228
228
  //#region src/composables/query/query.composable.d.ts