@openapi-qraft/react 1.11.0-beta.3 → 1.11.0-beta.4
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/CHANGELOG.md +6 -0
- package/dist/cjs/QraftContext.cjs +9 -0
- package/dist/cjs/QraftContext.cjs.map +1 -0
- package/dist/cjs/Unstable_QraftSecureRequestFn.cjs +193 -0
- package/dist/cjs/Unstable_QraftSecureRequestFn.cjs.map +1 -0
- package/dist/cjs/callbacks/cancelQueries.cjs +10 -0
- package/dist/cjs/callbacks/cancelQueries.cjs.map +1 -0
- package/dist/cjs/callbacks/fetchInfiniteQuery.cjs +10 -0
- package/dist/cjs/callbacks/fetchInfiniteQuery.cjs.map +1 -0
- package/dist/cjs/callbacks/fetchQuery.cjs +10 -0
- package/dist/cjs/callbacks/fetchQuery.cjs.map +1 -0
- package/dist/cjs/callbacks/getInfiniteQueryData.cjs +10 -0
- package/dist/cjs/callbacks/getInfiniteQueryData.cjs.map +1 -0
- package/dist/cjs/callbacks/getInfiniteQueryKey.cjs +10 -0
- package/dist/cjs/callbacks/getInfiniteQueryKey.cjs.map +1 -0
- package/dist/cjs/callbacks/getInfiniteQueryState.cjs +10 -0
- package/dist/cjs/callbacks/getInfiniteQueryState.cjs.map +1 -0
- package/dist/cjs/callbacks/getMutationKey.cjs +10 -0
- package/dist/cjs/callbacks/getMutationKey.cjs.map +1 -0
- package/dist/cjs/callbacks/getQueriesData.cjs +10 -0
- package/dist/cjs/callbacks/getQueriesData.cjs.map +1 -0
- package/dist/cjs/callbacks/getQueryData.cjs +10 -0
- package/dist/cjs/callbacks/getQueryData.cjs.map +1 -0
- package/dist/cjs/callbacks/getQueryKey.cjs +10 -0
- package/dist/cjs/callbacks/getQueryKey.cjs.map +1 -0
- package/dist/cjs/callbacks/getQueryState.cjs +10 -0
- package/dist/cjs/callbacks/getQueryState.cjs.map +1 -0
- package/dist/cjs/callbacks/index.cjs +76 -0
- package/dist/cjs/callbacks/index.cjs.map +1 -0
- package/dist/cjs/callbacks/invalidateQueries.cjs +10 -0
- package/dist/cjs/callbacks/invalidateQueries.cjs.map +1 -0
- package/dist/cjs/callbacks/isFetching.cjs +10 -0
- package/dist/cjs/callbacks/isFetching.cjs.map +1 -0
- package/dist/cjs/callbacks/isMutating.cjs +10 -0
- package/dist/cjs/callbacks/isMutating.cjs.map +1 -0
- package/dist/cjs/callbacks/mutationFn.cjs +12 -0
- package/dist/cjs/callbacks/mutationFn.cjs.map +1 -0
- package/dist/cjs/callbacks/operationInvokeFn.cjs +22 -0
- package/dist/cjs/callbacks/operationInvokeFn.cjs.map +1 -0
- package/dist/cjs/callbacks/prefetchInfiniteQuery.cjs +10 -0
- package/dist/cjs/callbacks/prefetchInfiniteQuery.cjs.map +1 -0
- package/dist/cjs/callbacks/prefetchQuery.cjs +10 -0
- package/dist/cjs/callbacks/prefetchQuery.cjs.map +1 -0
- package/dist/cjs/callbacks/queryFn.cjs +13 -0
- package/dist/cjs/callbacks/queryFn.cjs.map +1 -0
- package/dist/cjs/callbacks/refetchQueries.cjs +10 -0
- package/dist/cjs/callbacks/refetchQueries.cjs.map +1 -0
- package/dist/cjs/callbacks/removeQueries.cjs +10 -0
- package/dist/cjs/callbacks/removeQueries.cjs.map +1 -0
- package/dist/cjs/callbacks/resetQueries.cjs +10 -0
- package/dist/cjs/callbacks/resetQueries.cjs.map +1 -0
- package/dist/cjs/callbacks/setInfiniteQueryData.cjs +10 -0
- package/dist/cjs/callbacks/setInfiniteQueryData.cjs.map +1 -0
- package/dist/cjs/callbacks/setQueriesData.cjs +10 -0
- package/dist/cjs/callbacks/setQueriesData.cjs.map +1 -0
- package/dist/cjs/callbacks/setQueryData.cjs +10 -0
- package/dist/cjs/callbacks/setQueryData.cjs.map +1 -0
- package/dist/cjs/callbacks/useInfiniteQuery.cjs +13 -0
- package/dist/cjs/callbacks/useInfiniteQuery.cjs.map +1 -0
- package/dist/cjs/callbacks/useIsFetching.cjs +14 -0
- package/dist/cjs/callbacks/useIsFetching.cjs.map +1 -0
- package/dist/cjs/callbacks/useIsMutating.cjs +14 -0
- package/dist/cjs/callbacks/useIsMutating.cjs.map +1 -0
- package/dist/cjs/callbacks/useMutation.cjs +37 -0
- package/dist/cjs/callbacks/useMutation.cjs.map +1 -0
- package/dist/cjs/callbacks/useMutationState.cjs +17 -0
- package/dist/cjs/callbacks/useMutationState.cjs.map +1 -0
- package/dist/cjs/callbacks/useQueries.cjs +41 -0
- package/dist/cjs/callbacks/useQueries.cjs.map +1 -0
- package/dist/cjs/callbacks/useQuery.cjs +13 -0
- package/dist/cjs/callbacks/useQuery.cjs.map +1 -0
- package/dist/cjs/callbacks/useSuspenseInfiniteQuery.cjs +13 -0
- package/dist/cjs/callbacks/useSuspenseInfiniteQuery.cjs.map +1 -0
- package/dist/cjs/callbacks/useSuspenseQueries.cjs +41 -0
- package/dist/cjs/callbacks/useSuspenseQueries.cjs.map +1 -0
- package/dist/cjs/callbacks/useSuspenseQuery.cjs +13 -0
- package/dist/cjs/callbacks/useSuspenseQuery.cjs.map +1 -0
- package/dist/cjs/index.cjs +22 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/lib/callQueryClientFetchMethod.cjs +47 -0
- package/dist/cjs/lib/callQueryClientFetchMethod.cjs.map +1 -0
- package/dist/cjs/lib/callQueryClientMethodWithMutationFilters.cjs +19 -0
- package/dist/cjs/lib/callQueryClientMethodWithMutationFilters.cjs.map +1 -0
- package/dist/cjs/lib/callQueryClientMethodWithQueryFilters.cjs +19 -0
- package/dist/cjs/lib/callQueryClientMethodWithQueryFilters.cjs.map +1 -0
- package/dist/cjs/lib/callQueryClientMethodWithQueryKey.cjs +20 -0
- package/dist/cjs/lib/callQueryClientMethodWithQueryKey.cjs.map +1 -0
- package/dist/cjs/lib/composeBaseQueryKey.cjs +14 -0
- package/dist/cjs/lib/composeBaseQueryKey.cjs.map +1 -0
- package/dist/cjs/lib/composeInfiniteQueryKey.cjs +10 -0
- package/dist/cjs/lib/composeInfiniteQueryKey.cjs.map +1 -0
- package/dist/cjs/lib/composeMutationFilters.cjs +36 -0
- package/dist/cjs/lib/composeMutationFilters.cjs.map +1 -0
- package/dist/cjs/lib/composeMutationKey.cjs +29 -0
- package/dist/cjs/lib/composeMutationKey.cjs.map +1 -0
- package/dist/cjs/lib/composeQueryFilters.cjs +38 -0
- package/dist/cjs/lib/composeQueryFilters.cjs.map +1 -0
- package/dist/cjs/lib/composeQueryKey.cjs +10 -0
- package/dist/cjs/lib/composeQueryKey.cjs.map +1 -0
- package/dist/cjs/lib/createRecursiveProxy.cjs +35 -0
- package/dist/cjs/lib/createRecursiveProxy.cjs.map +1 -0
- package/dist/cjs/lib/jwt-decode/index.cjs +62 -0
- package/dist/cjs/lib/jwt-decode/index.cjs.map +1 -0
- package/dist/cjs/lib/requestFn.cjs +181 -0
- package/dist/cjs/lib/requestFn.cjs.map +1 -0
- package/dist/cjs/lib/shelfMerge.cjs +30 -0
- package/dist/cjs/lib/shelfMerge.cjs.map +1 -0
- package/dist/cjs/lib/useComposeUseQueryOptions.cjs +40 -0
- package/dist/cjs/lib/useComposeUseQueryOptions.cjs.map +1 -0
- package/dist/cjs/lib/useQueryClient.cjs +18 -0
- package/dist/cjs/lib/useQueryClient.cjs.map +1 -0
- package/dist/cjs/qraftAPIClient.cjs +48 -0
- package/dist/cjs/qraftAPIClient.cjs.map +1 -0
- package/dist/esm/QraftContext.js +7 -7
- package/dist/esm/QraftContext.js.map +1 -1
- package/dist/esm/Unstable_QraftSecureRequestFn.js +174 -176
- package/dist/esm/Unstable_QraftSecureRequestFn.js.map +1 -1
- package/dist/esm/callbacks/cancelQueries.js +6 -10
- package/dist/esm/callbacks/cancelQueries.js.map +1 -1
- package/dist/esm/callbacks/fetchInfiniteQuery.js +7 -12
- package/dist/esm/callbacks/fetchInfiniteQuery.js.map +1 -1
- package/dist/esm/callbacks/fetchQuery.js +7 -12
- package/dist/esm/callbacks/fetchQuery.js.map +1 -1
- package/dist/esm/callbacks/getInfiniteQueryData.js +6 -11
- package/dist/esm/callbacks/getInfiniteQueryData.js.map +1 -1
- package/dist/esm/callbacks/getInfiniteQueryKey.js +7 -7
- package/dist/esm/callbacks/getInfiniteQueryKey.js.map +1 -1
- package/dist/esm/callbacks/getInfiniteQueryState.js +6 -11
- package/dist/esm/callbacks/getInfiniteQueryState.js.map +1 -1
- package/dist/esm/callbacks/getMutationKey.js +7 -7
- package/dist/esm/callbacks/getMutationKey.js.map +1 -1
- package/dist/esm/callbacks/getQueriesData.js +6 -10
- package/dist/esm/callbacks/getQueriesData.js.map +1 -1
- package/dist/esm/callbacks/getQueryData.js +6 -11
- package/dist/esm/callbacks/getQueryData.js.map +1 -1
- package/dist/esm/callbacks/getQueryKey.js +7 -7
- package/dist/esm/callbacks/getQueryKey.js.map +1 -1
- package/dist/esm/callbacks/getQueryState.js +6 -11
- package/dist/esm/callbacks/getQueryState.js.map +1 -1
- package/dist/esm/callbacks/index.js +36 -73
- package/dist/esm/callbacks/index.js.map +1 -1
- package/dist/esm/callbacks/invalidateQueries.js +6 -10
- package/dist/esm/callbacks/invalidateQueries.js.map +1 -1
- package/dist/esm/callbacks/isFetching.js +6 -10
- package/dist/esm/callbacks/isFetching.js.map +1 -1
- package/dist/esm/callbacks/isMutating.js +6 -10
- package/dist/esm/callbacks/isMutating.js.map +1 -1
- package/dist/esm/callbacks/mutationFn.js +9 -10
- package/dist/esm/callbacks/mutationFn.js.map +1 -1
- package/dist/esm/callbacks/operationInvokeFn.js +19 -16
- package/dist/esm/callbacks/operationInvokeFn.js.map +1 -1
- package/dist/esm/callbacks/prefetchInfiniteQuery.js +7 -12
- package/dist/esm/callbacks/prefetchInfiniteQuery.js.map +1 -1
- package/dist/esm/callbacks/prefetchQuery.js +7 -12
- package/dist/esm/callbacks/prefetchQuery.js.map +1 -1
- package/dist/esm/callbacks/queryFn.js +10 -14
- package/dist/esm/callbacks/queryFn.js.map +1 -1
- package/dist/esm/callbacks/refetchQueries.js +6 -10
- package/dist/esm/callbacks/refetchQueries.js.map +1 -1
- package/dist/esm/callbacks/removeQueries.js +6 -10
- package/dist/esm/callbacks/removeQueries.js.map +1 -1
- package/dist/esm/callbacks/resetQueries.js +6 -10
- package/dist/esm/callbacks/resetQueries.js.map +1 -1
- package/dist/esm/callbacks/setInfiniteQueryData.js +6 -11
- package/dist/esm/callbacks/setInfiniteQueryData.js.map +1 -1
- package/dist/esm/callbacks/setQueriesData.js +6 -10
- package/dist/esm/callbacks/setQueriesData.js.map +1 -1
- package/dist/esm/callbacks/setQueryData.js +6 -11
- package/dist/esm/callbacks/setQueryData.js.map +1 -1
- package/dist/esm/callbacks/useInfiniteQuery.js +10 -13
- package/dist/esm/callbacks/useInfiniteQuery.js.map +1 -1
- package/dist/esm/callbacks/useIsFetching.js +11 -14
- package/dist/esm/callbacks/useIsFetching.js.map +1 -1
- package/dist/esm/callbacks/useIsMutating.js +11 -16
- package/dist/esm/callbacks/useIsMutating.js.map +1 -1
- package/dist/esm/callbacks/useMutation.js +34 -43
- package/dist/esm/callbacks/useMutation.js.map +1 -1
- package/dist/esm/callbacks/useMutationState.js +14 -19
- package/dist/esm/callbacks/useMutationState.js.map +1 -1
- package/dist/esm/callbacks/useQueries.js +38 -46
- package/dist/esm/callbacks/useQueries.js.map +1 -1
- package/dist/esm/callbacks/useQuery.js +10 -13
- package/dist/esm/callbacks/useQuery.js.map +1 -1
- package/dist/esm/callbacks/useSuspenseInfiniteQuery.js +10 -13
- package/dist/esm/callbacks/useSuspenseInfiniteQuery.js.map +1 -1
- package/dist/esm/callbacks/useSuspenseQueries.js +38 -46
- package/dist/esm/callbacks/useSuspenseQueries.js.map +1 -1
- package/dist/esm/callbacks/useSuspenseQuery.js +10 -13
- package/dist/esm/callbacks/useSuspenseQuery.js.map +1 -1
- package/dist/esm/index.js +7 -29
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/callQueryClientFetchMethod.js +41 -41
- package/dist/esm/lib/callQueryClientFetchMethod.js.map +1 -1
- package/dist/esm/lib/callQueryClientMethodWithMutationFilters.js +16 -17
- package/dist/esm/lib/callQueryClientMethodWithMutationFilters.js.map +1 -1
- package/dist/esm/lib/callQueryClientMethodWithQueryFilters.js +16 -17
- package/dist/esm/lib/callQueryClientMethodWithQueryFilters.js.map +1 -1
- package/dist/esm/lib/callQueryClientMethodWithQueryKey.js +17 -16
- package/dist/esm/lib/callQueryClientMethodWithQueryKey.js.map +1 -1
- package/dist/esm/lib/composeBaseQueryKey.js +10 -8
- package/dist/esm/lib/composeBaseQueryKey.js.map +1 -1
- package/dist/esm/lib/composeInfiniteQueryKey.js +6 -6
- package/dist/esm/lib/composeInfiniteQueryKey.js.map +1 -1
- package/dist/esm/lib/composeMutationFilters.js +31 -28
- package/dist/esm/lib/composeMutationFilters.js.map +1 -1
- package/dist/esm/lib/composeMutationKey.js +22 -23
- package/dist/esm/lib/composeMutationKey.js.map +1 -1
- package/dist/esm/lib/composeQueryFilters.js +33 -30
- package/dist/esm/lib/composeQueryFilters.js.map +1 -1
- package/dist/esm/lib/composeQueryKey.js +6 -6
- package/dist/esm/lib/composeQueryKey.js.map +1 -1
- package/dist/esm/lib/createRecursiveProxy.js +30 -22
- package/dist/esm/lib/createRecursiveProxy.js.map +1 -1
- package/dist/esm/lib/jwt-decode/index.js +49 -56
- package/dist/esm/lib/jwt-decode/index.js.map +1 -1
- package/dist/esm/lib/requestFn.js +156 -155
- package/dist/esm/lib/requestFn.js.map +1 -1
- package/dist/esm/lib/shelfMerge.js +27 -28
- package/dist/esm/lib/shelfMerge.js.map +1 -1
- package/dist/esm/lib/useComposeUseQueryOptions.js +37 -31
- package/dist/esm/lib/useComposeUseQueryOptions.js.map +1 -1
- package/dist/esm/lib/useQueryClient.js +15 -15
- package/dist/esm/lib/useQueryClient.js.map +1 -1
- package/dist/esm/qraftAPIClient.js +40 -47
- package/dist/esm/qraftAPIClient.js.map +1 -1
- package/package.json +9 -15
- package/dist/cjs/QraftContext.js +0 -31
- package/dist/cjs/QraftContext.js.map +0 -1
- package/dist/cjs/ServiceOperation.js +0 -17
- package/dist/cjs/ServiceOperation.js.map +0 -1
- package/dist/cjs/Unstable_QraftSecureRequestFn.js +0 -214
- package/dist/cjs/Unstable_QraftSecureRequestFn.js.map +0 -1
- package/dist/cjs/callbacks/cancelQueries.js +0 -36
- package/dist/cjs/callbacks/cancelQueries.js.map +0 -1
- package/dist/cjs/callbacks/fetchInfiniteQuery.js +0 -37
- package/dist/cjs/callbacks/fetchInfiniteQuery.js.map +0 -1
- package/dist/cjs/callbacks/fetchQuery.js +0 -37
- package/dist/cjs/callbacks/fetchQuery.js.map +0 -1
- package/dist/cjs/callbacks/getInfiniteQueryData.js +0 -37
- package/dist/cjs/callbacks/getInfiniteQueryData.js.map +0 -1
- package/dist/cjs/callbacks/getInfiniteQueryKey.js +0 -32
- package/dist/cjs/callbacks/getInfiniteQueryKey.js.map +0 -1
- package/dist/cjs/callbacks/getInfiniteQueryState.js +0 -37
- package/dist/cjs/callbacks/getInfiniteQueryState.js.map +0 -1
- package/dist/cjs/callbacks/getMutationKey.js +0 -32
- package/dist/cjs/callbacks/getMutationKey.js.map +0 -1
- package/dist/cjs/callbacks/getQueriesData.js +0 -36
- package/dist/cjs/callbacks/getQueriesData.js.map +0 -1
- package/dist/cjs/callbacks/getQueryData.js +0 -37
- package/dist/cjs/callbacks/getQueryData.js.map +0 -1
- package/dist/cjs/callbacks/getQueryKey.js +0 -32
- package/dist/cjs/callbacks/getQueryKey.js.map +0 -1
- package/dist/cjs/callbacks/getQueryState.js +0 -37
- package/dist/cjs/callbacks/getQueryState.js.map +0 -1
- package/dist/cjs/callbacks/index.js +0 -131
- package/dist/cjs/callbacks/index.js.map +0 -1
- package/dist/cjs/callbacks/invalidateQueries.js +0 -36
- package/dist/cjs/callbacks/invalidateQueries.js.map +0 -1
- package/dist/cjs/callbacks/isFetching.js +0 -36
- package/dist/cjs/callbacks/isFetching.js.map +0 -1
- package/dist/cjs/callbacks/isMutating.js +0 -36
- package/dist/cjs/callbacks/isMutating.js.map +0 -1
- package/dist/cjs/callbacks/mutationFn.js +0 -35
- package/dist/cjs/callbacks/mutationFn.js.map +0 -1
- package/dist/cjs/callbacks/operationInvokeFn.js +0 -41
- package/dist/cjs/callbacks/operationInvokeFn.js.map +0 -1
- package/dist/cjs/callbacks/prefetchInfiniteQuery.js +0 -37
- package/dist/cjs/callbacks/prefetchInfiniteQuery.js.map +0 -1
- package/dist/cjs/callbacks/prefetchQuery.js +0 -37
- package/dist/cjs/callbacks/prefetchQuery.js.map +0 -1
- package/dist/cjs/callbacks/queryFn.js +0 -39
- package/dist/cjs/callbacks/queryFn.js.map +0 -1
- package/dist/cjs/callbacks/refetchQueries.js +0 -36
- package/dist/cjs/callbacks/refetchQueries.js.map +0 -1
- package/dist/cjs/callbacks/removeQueries.js +0 -36
- package/dist/cjs/callbacks/removeQueries.js.map +0 -1
- package/dist/cjs/callbacks/resetQueries.js +0 -36
- package/dist/cjs/callbacks/resetQueries.js.map +0 -1
- package/dist/cjs/callbacks/setInfiniteQueryData.js +0 -37
- package/dist/cjs/callbacks/setInfiniteQueryData.js.map +0 -1
- package/dist/cjs/callbacks/setQueriesData.js +0 -36
- package/dist/cjs/callbacks/setQueriesData.js.map +0 -1
- package/dist/cjs/callbacks/setQueryData.js +0 -37
- package/dist/cjs/callbacks/setQueryData.js.map +0 -1
- package/dist/cjs/callbacks/useInfiniteQuery.js +0 -36
- package/dist/cjs/callbacks/useInfiniteQuery.js.map +0 -1
- package/dist/cjs/callbacks/useIsFetching.js +0 -39
- package/dist/cjs/callbacks/useIsFetching.js.map +0 -1
- package/dist/cjs/callbacks/useIsMutating.js +0 -39
- package/dist/cjs/callbacks/useIsMutating.js.map +0 -1
- package/dist/cjs/callbacks/useMutation.js +0 -66
- package/dist/cjs/callbacks/useMutation.js.map +0 -1
- package/dist/cjs/callbacks/useMutationState.js +0 -42
- package/dist/cjs/callbacks/useMutationState.js.map +0 -1
- package/dist/cjs/callbacks/useQueries.js +0 -69
- package/dist/cjs/callbacks/useQueries.js.map +0 -1
- package/dist/cjs/callbacks/useQuery.js +0 -36
- package/dist/cjs/callbacks/useQuery.js.map +0 -1
- package/dist/cjs/callbacks/useSuspenseInfiniteQuery.js +0 -36
- package/dist/cjs/callbacks/useSuspenseInfiniteQuery.js.map +0 -1
- package/dist/cjs/callbacks/useSuspenseQueries.js +0 -69
- package/dist/cjs/callbacks/useSuspenseQueries.js.map +0 -1
- package/dist/cjs/callbacks/useSuspenseQuery.js +0 -36
- package/dist/cjs/callbacks/useSuspenseQuery.js.map +0 -1
- package/dist/cjs/index.js +0 -63
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/lib/PartialParameters.type.js +0 -17
- package/dist/cjs/lib/PartialParameters.type.js.map +0 -1
- package/dist/cjs/lib/callQueryClientFetchMethod.js +0 -69
- package/dist/cjs/lib/callQueryClientFetchMethod.js.map +0 -1
- package/dist/cjs/lib/callQueryClientMethodWithMutationFilters.js +0 -42
- package/dist/cjs/lib/callQueryClientMethodWithMutationFilters.js.map +0 -1
- package/dist/cjs/lib/callQueryClientMethodWithQueryFilters.js +0 -42
- package/dist/cjs/lib/callQueryClientMethodWithQueryFilters.js.map +0 -1
- package/dist/cjs/lib/callQueryClientMethodWithQueryKey.js +0 -41
- package/dist/cjs/lib/callQueryClientMethodWithQueryKey.js.map +0 -1
- package/dist/cjs/lib/composeBaseQueryKey.js +0 -34
- package/dist/cjs/lib/composeBaseQueryKey.js.map +0 -1
- package/dist/cjs/lib/composeInfiniteQueryKey.js +0 -32
- package/dist/cjs/lib/composeInfiniteQueryKey.js.map +0 -1
- package/dist/cjs/lib/composeMutationFilters.js +0 -55
- package/dist/cjs/lib/composeMutationFilters.js.map +0 -1
- package/dist/cjs/lib/composeMutationKey.js +0 -52
- package/dist/cjs/lib/composeMutationKey.js.map +0 -1
- package/dist/cjs/lib/composeQueryFilters.js +0 -57
- package/dist/cjs/lib/composeQueryFilters.js.map +0 -1
- package/dist/cjs/lib/composeQueryKey.js +0 -32
- package/dist/cjs/lib/composeQueryKey.js.map +0 -1
- package/dist/cjs/lib/createRecursiveProxy.js +0 -49
- package/dist/cjs/lib/createRecursiveProxy.js.map +0 -1
- package/dist/cjs/lib/jwt-decode/index.js +0 -91
- package/dist/cjs/lib/jwt-decode/index.js.map +0 -1
- package/dist/cjs/lib/requestFn.js +0 -202
- package/dist/cjs/lib/requestFn.js.map +0 -1
- package/dist/cjs/lib/shelfMerge.js +0 -53
- package/dist/cjs/lib/shelfMerge.js.map +0 -1
- package/dist/cjs/lib/useComposeUseQueryOptions.js +0 -56
- package/dist/cjs/lib/useComposeUseQueryOptions.js.map +0 -1
- package/dist/cjs/lib/useQueryClient.js +0 -38
- package/dist/cjs/lib/useQueryClient.js.map +0 -1
- package/dist/cjs/qraftAPIClient.js +0 -77
- package/dist/cjs/qraftAPIClient.js.map +0 -1
- package/dist/cjs/service-operation/OperationInfiniteData.js +0 -17
- package/dist/cjs/service-operation/OperationInfiniteData.js.map +0 -1
- package/dist/cjs/service-operation/QueryFilters.js +0 -17
- package/dist/cjs/service-operation/QueryFilters.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperation.js +0 -17
- package/dist/cjs/service-operation/ServiceOperation.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationCancelQueries.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationCancelQueries.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationFetchInfiniteQuery.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationFetchInfiniteQuery.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationFetchQuery.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationFetchQuery.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationGetInfiniteQueryData.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationGetInfiniteQueryData.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationGetQueriesData.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationGetQueriesData.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationGetQueryData.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationGetQueryData.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationGetQueryState.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationGetQueryState.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationInvalidateQueries.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationInvalidateQueries.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationIsFetchingQueries.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationIsFetchingQueries.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationIsMutatingQueries.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationIsMutatingQueries.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationKey.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationKey.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationMutationFn.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationMutationFn.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationQueryFn.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationQueryFn.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationRefetchQueries.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationRefetchQueries.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationRemoveQueries.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationRemoveQueries.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationResetQueries.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationResetQueries.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationSetInfiniteQueryData.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationSetInfiniteQueryData.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationSetQueriesData.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationSetQueriesData.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationSetQueryData.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationSetQueryData.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationUseInfiniteQuery.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationUseInfiniteQuery.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationUseIsFetchingQueries.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationUseIsFetchingQueries.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationUseIsMutating.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationUseIsMutating.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationUseMutation.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationUseMutation.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationUseMutationState.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationUseMutationState.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationUseQueries.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationUseQueries.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationUseQuery.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationUseQuery.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationUseSuspenseInfiniteQuery.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationUseSuspenseInfiniteQuery.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationUseSuspenseQueries.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationUseSuspenseQueries.js.map +0 -1
- package/dist/cjs/service-operation/ServiceOperationUseSuspenseQueryQuery.js +0 -17
- package/dist/cjs/service-operation/ServiceOperationUseSuspenseQueryQuery.js.map +0 -1
- package/dist/cjs/service-operation/index.js +0 -17
- package/dist/cjs/service-operation/index.js.map +0 -1
- package/dist/esm/ServiceOperation.js +0 -1
- package/dist/esm/ServiceOperation.js.map +0 -1
- package/dist/esm/lib/PartialParameters.type.js +0 -1
- package/dist/esm/lib/PartialParameters.type.js.map +0 -1
- package/dist/esm/service-operation/OperationInfiniteData.js +0 -1
- package/dist/esm/service-operation/OperationInfiniteData.js.map +0 -1
- package/dist/esm/service-operation/QueryFilters.js +0 -1
- package/dist/esm/service-operation/QueryFilters.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperation.js +0 -1
- package/dist/esm/service-operation/ServiceOperation.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationCancelQueries.js +0 -1
- package/dist/esm/service-operation/ServiceOperationCancelQueries.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationFetchInfiniteQuery.js +0 -1
- package/dist/esm/service-operation/ServiceOperationFetchInfiniteQuery.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationFetchQuery.js +0 -1
- package/dist/esm/service-operation/ServiceOperationFetchQuery.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationGetInfiniteQueryData.js +0 -1
- package/dist/esm/service-operation/ServiceOperationGetInfiniteQueryData.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationGetQueriesData.js +0 -1
- package/dist/esm/service-operation/ServiceOperationGetQueriesData.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationGetQueryData.js +0 -1
- package/dist/esm/service-operation/ServiceOperationGetQueryData.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationGetQueryState.js +0 -1
- package/dist/esm/service-operation/ServiceOperationGetQueryState.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationInvalidateQueries.js +0 -1
- package/dist/esm/service-operation/ServiceOperationInvalidateQueries.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationIsFetchingQueries.js +0 -1
- package/dist/esm/service-operation/ServiceOperationIsFetchingQueries.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationIsMutatingQueries.js +0 -1
- package/dist/esm/service-operation/ServiceOperationIsMutatingQueries.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationKey.js +0 -1
- package/dist/esm/service-operation/ServiceOperationKey.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationMutationFn.js +0 -1
- package/dist/esm/service-operation/ServiceOperationMutationFn.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationQueryFn.js +0 -1
- package/dist/esm/service-operation/ServiceOperationQueryFn.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationRefetchQueries.js +0 -1
- package/dist/esm/service-operation/ServiceOperationRefetchQueries.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationRemoveQueries.js +0 -1
- package/dist/esm/service-operation/ServiceOperationRemoveQueries.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationResetQueries.js +0 -1
- package/dist/esm/service-operation/ServiceOperationResetQueries.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationSetInfiniteQueryData.js +0 -1
- package/dist/esm/service-operation/ServiceOperationSetInfiniteQueryData.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationSetQueriesData.js +0 -1
- package/dist/esm/service-operation/ServiceOperationSetQueriesData.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationSetQueryData.js +0 -1
- package/dist/esm/service-operation/ServiceOperationSetQueryData.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationUseInfiniteQuery.js +0 -1
- package/dist/esm/service-operation/ServiceOperationUseInfiniteQuery.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationUseIsFetchingQueries.js +0 -1
- package/dist/esm/service-operation/ServiceOperationUseIsFetchingQueries.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationUseIsMutating.js +0 -1
- package/dist/esm/service-operation/ServiceOperationUseIsMutating.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationUseMutation.js +0 -1
- package/dist/esm/service-operation/ServiceOperationUseMutation.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationUseMutationState.js +0 -1
- package/dist/esm/service-operation/ServiceOperationUseMutationState.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationUseQueries.js +0 -1
- package/dist/esm/service-operation/ServiceOperationUseQueries.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationUseQuery.js +0 -1
- package/dist/esm/service-operation/ServiceOperationUseQuery.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationUseSuspenseInfiniteQuery.js +0 -1
- package/dist/esm/service-operation/ServiceOperationUseSuspenseInfiniteQuery.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationUseSuspenseQueries.js +0 -1
- package/dist/esm/service-operation/ServiceOperationUseSuspenseQueries.js.map +0 -1
- package/dist/esm/service-operation/ServiceOperationUseSuspenseQueryQuery.js +0 -1
- package/dist/esm/service-operation/ServiceOperationUseSuspenseQueryQuery.js.map +0 -1
- package/dist/esm/service-operation/index.js +0 -1
- package/dist/esm/service-operation/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/callQueryClientMethodWithQueryKey.ts"],"sourcesContent":["import type { QueryClient } from '@tanstack/query-core';\n\nimport { composeInfiniteQueryKey } from './composeInfiniteQueryKey.js';\nimport { composeQueryKey } from './composeQueryKey.js';\nimport type { OperationSchema } from './requestFn.js';\n\n/**\n * Calls a query client method with parameters and options,\n * and automatically composes the `QueryKey` based on the schema and parameters.\n */\nexport function callQueryClientMethodWithQueryKey<\n QFMethod extends QueryKeyMethods,\n>(\n queryFilterMethod: QFMethod,\n schema: OperationSchema,\n infinite: boolean,\n args: [...Parameters<(typeof QueryClient.prototype)[QFMethod]>, QueryClient]\n): ReturnType<(typeof QueryClient.prototype)[QFMethod]> {\n const parameters = args.length > 1 ? args[0] : undefined;\n const queryClient = args[args.length - 1] as QueryClient | undefined;\n\n if (!queryClient) throw new Error('queryClient is required');\n if (!queryClient[queryFilterMethod])\n throw new Error(\n `queryClient is invalid, ${queryFilterMethod} method does not exist`\n );\n\n const queryKey = Array.isArray(parameters)\n ? parameters\n : infinite\n ? composeInfiniteQueryKey(schema, parameters)\n : composeQueryKey(schema, parameters);\n\n // @ts-expect-error - Too complex to type\n return queryClient[queryFilterMethod](queryKey, ...args.slice(1, -1));\n}\n\ntype QueryKeyMethod<QFMethod extends keyof typeof QueryClient.prototype> =\n QFMethod;\n\ntype QueryKeyMethods =\n | QueryKeyMethod<'setQueryData'>\n | QueryKeyMethod<'getQueryData'>\n | QueryKeyMethod<'getQueryState'>\n | QueryKeyMethod<'setQueryDefaults'>\n | QueryKeyMethod<'getQueryDefaults'>;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"callQueryClientMethodWithQueryKey.js","sources":["../../../src/lib/callQueryClientMethodWithQueryKey.ts"],"sourcesContent":["import type { QueryClient } from '@tanstack/query-core';\n\nimport { composeInfiniteQueryKey } from './composeInfiniteQueryKey.js';\nimport { composeQueryKey } from './composeQueryKey.js';\nimport type { OperationSchema } from './requestFn.js';\n\n/**\n * Calls a query client method with parameters and options,\n * and automatically composes the `QueryKey` based on the schema and parameters.\n */\nexport function callQueryClientMethodWithQueryKey<\n QFMethod extends QueryKeyMethods,\n>(\n queryFilterMethod: QFMethod,\n schema: OperationSchema,\n infinite: boolean,\n args: [...Parameters<(typeof QueryClient.prototype)[QFMethod]>, QueryClient]\n): ReturnType<(typeof QueryClient.prototype)[QFMethod]> {\n const parameters = args.length > 1 ? args[0] : undefined;\n const queryClient = args[args.length - 1] as QueryClient | undefined;\n\n if (!queryClient) throw new Error('queryClient is required');\n if (!queryClient[queryFilterMethod])\n throw new Error(\n `queryClient is invalid, ${queryFilterMethod} method does not exist`\n );\n\n const queryKey = Array.isArray(parameters)\n ? parameters\n : infinite\n ? composeInfiniteQueryKey(schema, parameters)\n : composeQueryKey(schema, parameters);\n\n // @ts-expect-error - Too complex to type\n return queryClient[queryFilterMethod](queryKey, ...args.slice(1, -1));\n}\n\ntype QueryKeyMethod<QFMethod extends keyof typeof QueryClient.prototype> =\n QFMethod;\n\ntype QueryKeyMethods =\n | QueryKeyMethod<'setQueryData'>\n | QueryKeyMethod<'getQueryData'>\n | QueryKeyMethod<'getQueryState'>\n | QueryKeyMethod<'setQueryDefaults'>\n | QueryKeyMethod<'getQueryDefaults'>;\n"],"names":["callQueryClientMethodWithQueryKey","queryFilterMethod","schema","infinite","args","parameters","length","undefined","queryClient","Error","queryKey","Array","isArray","composeInfiniteQueryKey","composeQueryKey","slice"],"mappings":";;;AAMA;;;IAIO,SAASA,iCAGdC,CAAAA,iBAA2B,EAC3BC,MAAuB,EACvBC,QAAiB,EACjBC,IAA4E,EAAA;IAE5E,MAAMC,UAAAA,GAAaD,KAAKE,MAAM,GAAG,IAAIF,IAAI,CAAC,EAAE,GAAGG,SAAAA,CAAAA;AAC/C,IAAA,MAAMC,cAAcJ,IAAI,CAACA,IAAKE,CAAAA,MAAM,GAAG,CAAE,CAAA,CAAA;AAEzC,IAAA,IAAI,CAACE,WAAAA,EAAa,MAAM,IAAIC,KAAM,CAAA,yBAAA,CAAA,CAAA;AAClC,IAAA,IAAI,CAACD,WAAW,CAACP,iBAAAA,CAAkB,EACjC,MAAM,IAAIQ,KAAAA,CACR,CAAC,wBAAwB,EAAER,iBAAAA,CAAkB,sBAAsB,CAAC,CAAA,CAAA;IAGxE,MAAMS,QAAAA,GAAWC,KAAMC,CAAAA,OAAO,CAACP,UAAAA,CAAAA,GAC3BA,UACAF,GAAAA,QAAAA,GACEU,uBAAwBX,CAAAA,MAAAA,EAAQG,UAChCS,CAAAA,GAAAA,eAAAA,CAAgBZ,MAAQG,EAAAA,UAAAA,CAAAA,CAAAA;;IAG9B,OAAOG,WAAW,CAACP,iBAAkB,CAAA,CAACS,aAAaN,IAAKW,CAAAA,KAAK,CAAC,CAAA,EAAG,CAAC,CAAA,CAAA,CAAA,CAAA;AACpE;;;;"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
function composeBaseQueryKey(schema, parameters, infinite) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
return [
|
|
3
|
+
typeof infinite === 'boolean' ? {
|
|
4
|
+
...schema,
|
|
5
|
+
infinite
|
|
6
|
+
} : schema,
|
|
7
|
+
parameters ?? {}
|
|
8
|
+
];
|
|
6
9
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=composeBaseQueryKey.js.map
|
|
10
|
+
|
|
11
|
+
export { composeBaseQueryKey };
|
|
12
|
+
//# sourceMappingURL=composeBaseQueryKey.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/composeBaseQueryKey.ts"],"sourcesContent":["import type {\n ServiceOperationInfiniteQueryKey,\n ServiceOperationQueryKey,\n} from '../service-operation/ServiceOperationKey.js';\nimport type { OperationSchema } from './requestFn.js';\n\nexport function composeBaseQueryKey<TSchema extends OperationSchema, TParams>(\n schema: TSchema,\n parameters: TParams | undefined,\n infinite: undefined\n): [TSchema, TParams];\nexport function composeBaseQueryKey<TSchema extends OperationSchema, TParams>(\n schema: TSchema,\n parameters: TParams | undefined,\n infinite: true\n): ServiceOperationInfiniteQueryKey<TSchema, TParams>;\nexport function composeBaseQueryKey<TSchema extends OperationSchema, TParams>(\n schema: TSchema,\n parameters: TParams | undefined,\n infinite: false\n): ServiceOperationQueryKey<TSchema, TParams>;\nexport function composeBaseQueryKey<TSchema extends OperationSchema, TParams>(\n schema: TSchema,\n parameters: TParams | undefined,\n infinite: boolean | undefined\n):\n | ServiceOperationQueryKey<TSchema, TParams>\n | ServiceOperationInfiniteQueryKey<TSchema, TParams>\n | [TSchema, TParams] {\n return [\n typeof infinite === 'boolean' ? { ...schema, infinite } : schema,\n parameters ?? ({} as TParams),\n ];\n}\n"],"mappings":"AAqBO,
|
|
1
|
+
{"version":3,"file":"composeBaseQueryKey.js","sources":["../../../src/lib/composeBaseQueryKey.ts"],"sourcesContent":["import type {\n ServiceOperationInfiniteQueryKey,\n ServiceOperationQueryKey,\n} from '../service-operation/ServiceOperationKey.js';\nimport type { OperationSchema } from './requestFn.js';\n\nexport function composeBaseQueryKey<TSchema extends OperationSchema, TParams>(\n schema: TSchema,\n parameters: TParams | undefined,\n infinite: undefined\n): [TSchema, TParams];\nexport function composeBaseQueryKey<TSchema extends OperationSchema, TParams>(\n schema: TSchema,\n parameters: TParams | undefined,\n infinite: true\n): ServiceOperationInfiniteQueryKey<TSchema, TParams>;\nexport function composeBaseQueryKey<TSchema extends OperationSchema, TParams>(\n schema: TSchema,\n parameters: TParams | undefined,\n infinite: false\n): ServiceOperationQueryKey<TSchema, TParams>;\nexport function composeBaseQueryKey<TSchema extends OperationSchema, TParams>(\n schema: TSchema,\n parameters: TParams | undefined,\n infinite: boolean | undefined\n):\n | ServiceOperationQueryKey<TSchema, TParams>\n | ServiceOperationInfiniteQueryKey<TSchema, TParams>\n | [TSchema, TParams] {\n return [\n typeof infinite === 'boolean' ? { ...schema, infinite } : schema,\n parameters ?? ({} as TParams),\n ];\n}\n"],"names":["composeBaseQueryKey","schema","parameters","infinite"],"mappings":"AAqBO,SAASA,mBACdC,CAAAA,MAAe,EACfC,UAA+B,EAC/BC,QAA6B,EAAA;IAK7B,OAAO;AACL,QAAA,OAAOA,aAAa,SAAY,GAAA;AAAE,YAAA,GAAGF,MAAM;AAAEE,YAAAA,QAAAA;SAAaF,GAAAA,MAAAA;AAC1DC,QAAAA,UAAAA,IAAe,EAAC;AACjB,KAAA,CAAA;AACH;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { composeBaseQueryKey } from
|
|
1
|
+
import { composeBaseQueryKey } from './composeBaseQueryKey.js';
|
|
2
|
+
|
|
2
3
|
function composeInfiniteQueryKey(schema, parameters) {
|
|
3
|
-
|
|
4
|
+
return composeBaseQueryKey(schema, parameters, true);
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=composeInfiniteQueryKey.js.map
|
|
6
|
+
|
|
7
|
+
export { composeInfiniteQueryKey };
|
|
8
|
+
//# sourceMappingURL=composeInfiniteQueryKey.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/composeInfiniteQueryKey.ts"],"sourcesContent":["import type { ServiceOperationInfiniteQueryKey } from '../service-operation/ServiceOperationKey.js';\nimport { composeBaseQueryKey } from './composeBaseQueryKey.js';\nimport type { OperationSchema } from './requestFn.js';\n\nexport function composeInfiniteQueryKey<\n TSchema extends OperationSchema,\n TParams,\n>(\n schema: TSchema,\n parameters: TParams | undefined\n): ServiceOperationInfiniteQueryKey<TSchema, TParams> {\n return composeBaseQueryKey(schema, parameters, true);\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"composeInfiniteQueryKey.js","sources":["../../../src/lib/composeInfiniteQueryKey.ts"],"sourcesContent":["import type { ServiceOperationInfiniteQueryKey } from '../service-operation/ServiceOperationKey.js';\nimport { composeBaseQueryKey } from './composeBaseQueryKey.js';\nimport type { OperationSchema } from './requestFn.js';\n\nexport function composeInfiniteQueryKey<\n TSchema extends OperationSchema,\n TParams,\n>(\n schema: TSchema,\n parameters: TParams | undefined\n): ServiceOperationInfiniteQueryKey<TSchema, TParams> {\n return composeBaseQueryKey(schema, parameters, true);\n}\n"],"names":["composeInfiniteQueryKey","schema","parameters","composeBaseQueryKey"],"mappings":";;AAIO,SAASA,uBAAAA,CAIdC,MAAe,EACfC,UAA+B,EAAA;IAE/B,OAAOC,mBAAAA,CAAoBF,QAAQC,UAAY,EAAA,IAAA,CAAA,CAAA;AACjD;;;;"}
|
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
import { composeMutationKey } from
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { composeMutationKey } from './composeMutationKey.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Replaces the `parameters` field in the filters with a `mutationKey` field based on the schema.
|
|
5
|
+
* If no filters are provided, a `mutationKey` will be composed schema's base query key.
|
|
6
|
+
* @param schema
|
|
7
|
+
* @param filters
|
|
8
|
+
*/ function composeMutationFilters(schema, filters) {
|
|
9
|
+
if (!filters) {
|
|
10
|
+
return {
|
|
11
|
+
mutationKey: composeMutationKey(schema, undefined)
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
if (filters && 'mutationKey' in filters && 'parameters' in filters) {
|
|
15
|
+
throw new Error(`'composeMutationFilters': 'mutationKey' and 'parameters' cannot be used together`);
|
|
16
|
+
}
|
|
17
|
+
if ('mutationKey' in filters) {
|
|
18
|
+
return filters;
|
|
19
|
+
}
|
|
20
|
+
if ('parameters' in filters) {
|
|
21
|
+
const { parameters, ...filtersWithoutParameters } = filters;
|
|
22
|
+
Object.assign(filtersWithoutParameters, {
|
|
23
|
+
mutationKey: composeMutationKey(schema, parameters)
|
|
24
|
+
});
|
|
25
|
+
return filtersWithoutParameters;
|
|
26
|
+
}
|
|
4
27
|
return {
|
|
5
|
-
|
|
28
|
+
...filters,
|
|
29
|
+
mutationKey: composeMutationKey(schema, undefined)
|
|
6
30
|
};
|
|
7
|
-
}
|
|
8
|
-
if (filters && "mutationKey" in filters && "parameters" in filters) {
|
|
9
|
-
throw new Error(
|
|
10
|
-
`'composeMutationFilters': 'mutationKey' and 'parameters' cannot be used together`
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
if ("mutationKey" in filters) {
|
|
14
|
-
return filters;
|
|
15
|
-
}
|
|
16
|
-
if ("parameters" in filters) {
|
|
17
|
-
const { parameters, ...filtersWithoutParameters } = filters;
|
|
18
|
-
Object.assign(filtersWithoutParameters, {
|
|
19
|
-
mutationKey: composeMutationKey(schema, parameters)
|
|
20
|
-
});
|
|
21
|
-
return filtersWithoutParameters;
|
|
22
|
-
}
|
|
23
|
-
return {
|
|
24
|
-
...filters,
|
|
25
|
-
mutationKey: composeMutationKey(schema, void 0)
|
|
26
|
-
};
|
|
27
31
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
//# sourceMappingURL=composeMutationFilters.js.map
|
|
32
|
+
|
|
33
|
+
export { composeMutationFilters };
|
|
34
|
+
//# sourceMappingURL=composeMutationFilters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/composeMutationFilters.ts"],"sourcesContent":["import { composeMutationKey } from './composeMutationKey.js';\nimport type { OperationSchema } from './requestFn.js';\n\n/**\n * Replaces the `parameters` field in the filters with a `mutationKey` field based on the schema.\n * If no filters are provided, a `mutationKey` will be composed schema's base query key.\n * @param schema\n * @param filters\n */\nexport function composeMutationFilters<Filters extends object>(\n schema: OperationSchema,\n filters: Filters | undefined\n) {\n if (!filters) {\n return {\n mutationKey: composeMutationKey(schema, undefined),\n };\n }\n\n if (filters && 'mutationKey' in filters && 'parameters' in filters) {\n throw new Error(\n `'composeMutationFilters': 'mutationKey' and 'parameters' cannot be used together`\n );\n }\n\n if ('mutationKey' in filters) {\n return filters;\n }\n\n if ('parameters' in filters) {\n const { parameters, ...filtersWithoutParameters } = filters;\n\n Object.assign(filtersWithoutParameters, {\n mutationKey: composeMutationKey(schema, parameters),\n });\n\n return filtersWithoutParameters;\n }\n\n return {\n ...filters,\n mutationKey: composeMutationKey(schema, undefined),\n };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"composeMutationFilters.js","sources":["../../../src/lib/composeMutationFilters.ts"],"sourcesContent":["import { composeMutationKey } from './composeMutationKey.js';\nimport type { OperationSchema } from './requestFn.js';\n\n/**\n * Replaces the `parameters` field in the filters with a `mutationKey` field based on the schema.\n * If no filters are provided, a `mutationKey` will be composed schema's base query key.\n * @param schema\n * @param filters\n */\nexport function composeMutationFilters<Filters extends object>(\n schema: OperationSchema,\n filters: Filters | undefined\n) {\n if (!filters) {\n return {\n mutationKey: composeMutationKey(schema, undefined),\n };\n }\n\n if (filters && 'mutationKey' in filters && 'parameters' in filters) {\n throw new Error(\n `'composeMutationFilters': 'mutationKey' and 'parameters' cannot be used together`\n );\n }\n\n if ('mutationKey' in filters) {\n return filters;\n }\n\n if ('parameters' in filters) {\n const { parameters, ...filtersWithoutParameters } = filters;\n\n Object.assign(filtersWithoutParameters, {\n mutationKey: composeMutationKey(schema, parameters),\n });\n\n return filtersWithoutParameters;\n }\n\n return {\n ...filters,\n mutationKey: composeMutationKey(schema, undefined),\n };\n}\n"],"names":["composeMutationFilters","schema","filters","mutationKey","composeMutationKey","undefined","Error","parameters","filtersWithoutParameters","Object","assign"],"mappings":";;AAGA;;;;;AAKC,IACM,SAASA,sBACdC,CAAAA,MAAuB,EACvBC,OAA4B,EAAA;AAE5B,IAAA,IAAI,CAACA,OAAS,EAAA;QACZ,OAAO;AACLC,YAAAA,WAAAA,EAAaC,mBAAmBH,MAAQI,EAAAA,SAAAA,CAAAA;AAC1C,SAAA,CAAA;AACF,KAAA;AAEA,IAAA,IAAIH,OAAW,IAAA,aAAA,IAAiBA,OAAW,IAAA,YAAA,IAAgBA,OAAS,EAAA;AAClE,QAAA,MAAM,IAAII,KAAAA,CACR,CAAC,gFAAgF,CAAC,CAAA,CAAA;AAEtF,KAAA;AAEA,IAAA,IAAI,iBAAiBJ,OAAS,EAAA;QAC5B,OAAOA,OAAAA,CAAAA;AACT,KAAA;AAEA,IAAA,IAAI,gBAAgBA,OAAS,EAAA;AAC3B,QAAA,MAAM,EAAEK,UAAU,EAAE,GAAGC,0BAA0B,GAAGN,OAAAA,CAAAA;QAEpDO,MAAOC,CAAAA,MAAM,CAACF,wBAA0B,EAAA;AACtCL,YAAAA,WAAAA,EAAaC,mBAAmBH,MAAQM,EAAAA,UAAAA,CAAAA;AAC1C,SAAA,CAAA,CAAA;QAEA,OAAOC,wBAAAA,CAAAA;AACT,KAAA;IAEA,OAAO;AACL,QAAA,GAAGN,OAAO;AACVC,QAAAA,WAAAA,EAAaC,mBAAmBH,MAAQI,EAAAA,SAAAA,CAAAA;AAC1C,KAAA,CAAA;AACF;;;;"}
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
function composeMutationKey(schema, parameters) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
return parameters === undefined ? [
|
|
3
|
+
{
|
|
4
|
+
url: schema.url,
|
|
5
|
+
method: schema.method
|
|
6
|
+
},
|
|
7
|
+
{}
|
|
8
|
+
] : [
|
|
9
|
+
{
|
|
10
|
+
url: schema.url,
|
|
11
|
+
method: schema.method
|
|
12
|
+
},
|
|
13
|
+
omitMutationPayload(parameters)
|
|
14
|
+
];
|
|
9
15
|
}
|
|
10
16
|
function omitMutationPayload(params) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
...paramsRest
|
|
18
|
-
} = params;
|
|
19
|
-
return paramsRest;
|
|
20
|
-
}
|
|
21
|
-
return params;
|
|
17
|
+
if (!params || typeof params !== 'object') throw new Error('`params` must be object');
|
|
18
|
+
if ('body' in params || 'requestBody' in params) {
|
|
19
|
+
const { body: _, requestBody: __, ...paramsRest } = params;
|
|
20
|
+
return paramsRest;
|
|
21
|
+
}
|
|
22
|
+
return params;
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=composeMutationKey.js.map
|
|
24
|
+
|
|
25
|
+
export { composeMutationKey, omitMutationPayload };
|
|
26
|
+
//# sourceMappingURL=composeMutationKey.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/composeMutationKey.ts"],"sourcesContent":["import type { ServiceOperationMutationKey } from '../service-operation/ServiceOperationKey.js';\nimport type { OperationSchema } from './requestFn.js';\n\n/**\n * Omit `body` or `requestBody` from mutation parameters if exists\n * and return the rest of the parameters\n */\nexport function composeMutationKey<TSchema extends OperationSchema>(\n schema: TSchema,\n parameters: undefined\n): ServiceOperationMutationKey<TSchema, undefined>;\nexport function composeMutationKey<TSchema extends OperationSchema, TParams>(\n schema: TSchema,\n parameters: TParams\n): ServiceOperationMutationKey<TSchema, TParams>;\nexport function composeMutationKey<\n TSchema extends OperationSchema,\n TParams = unknown,\n>(schema: TSchema, parameters: TParams | undefined) {\n return parameters === undefined\n ? [{ url: schema.url, method: schema.method }, {}]\n : [\n {\n url: schema.url,\n method: schema.method,\n },\n omitMutationPayload(parameters),\n ];\n}\n\nexport function omitMutationPayload<T>(params: T) {\n if (!params || typeof params !== 'object')\n throw new Error('`params` must be object');\n\n if ('body' in params || 'requestBody' in params) {\n const {\n body: _,\n requestBody: __,\n ...paramsRest\n } = params as Record<'body' | 'requestBody', unknown>;\n return paramsRest;\n }\n\n return params as Omit<T, 'body' | 'requestBody'>;\n}\n"],"mappings":"AAeO,
|
|
1
|
+
{"version":3,"file":"composeMutationKey.js","sources":["../../../src/lib/composeMutationKey.ts"],"sourcesContent":["import type { ServiceOperationMutationKey } from '../service-operation/ServiceOperationKey.js';\nimport type { OperationSchema } from './requestFn.js';\n\n/**\n * Omit `body` or `requestBody` from mutation parameters if exists\n * and return the rest of the parameters\n */\nexport function composeMutationKey<TSchema extends OperationSchema>(\n schema: TSchema,\n parameters: undefined\n): ServiceOperationMutationKey<TSchema, undefined>;\nexport function composeMutationKey<TSchema extends OperationSchema, TParams>(\n schema: TSchema,\n parameters: TParams\n): ServiceOperationMutationKey<TSchema, TParams>;\nexport function composeMutationKey<\n TSchema extends OperationSchema,\n TParams = unknown,\n>(schema: TSchema, parameters: TParams | undefined) {\n return parameters === undefined\n ? [{ url: schema.url, method: schema.method }, {}]\n : [\n {\n url: schema.url,\n method: schema.method,\n },\n omitMutationPayload(parameters),\n ];\n}\n\nexport function omitMutationPayload<T>(params: T) {\n if (!params || typeof params !== 'object')\n throw new Error('`params` must be object');\n\n if ('body' in params || 'requestBody' in params) {\n const {\n body: _,\n requestBody: __,\n ...paramsRest\n } = params as Record<'body' | 'requestBody', unknown>;\n return paramsRest;\n }\n\n return params as Omit<T, 'body' | 'requestBody'>;\n}\n"],"names":["composeMutationKey","schema","parameters","undefined","url","method","omitMutationPayload","params","Error","body","_","requestBody","__","paramsRest"],"mappings":"AAeO,SAASA,kBAAAA,CAGdC,MAAe,EAAEC,UAA+B,EAAA;AAChD,IAAA,OAAOA,eAAeC,SAClB,GAAA;AAAC,QAAA;AAAEC,YAAAA,GAAAA,EAAKH,OAAOG,GAAG;AAAEC,YAAAA,MAAAA,EAAQJ,OAAOI,MAAM;AAAC,SAAA;QAAG,EAAC;KAAE,GAChD;AACE,QAAA;AACED,YAAAA,GAAAA,EAAKH,OAAOG,GAAG;AACfC,YAAAA,MAAAA,EAAQJ,OAAOI,MAAM;AACvB,SAAA;QACAC,mBAAoBJ,CAAAA,UAAAA,CAAAA;AACrB,KAAA,CAAA;AACP,CAAA;AAEO,SAASI,oBAAuBC,MAAS,EAAA;AAC9C,IAAA,IAAI,CAACA,MAAU,IAAA,OAAOA,WAAW,QAC/B,EAAA,MAAM,IAAIC,KAAM,CAAA,yBAAA,CAAA,CAAA;IAElB,IAAI,MAAA,IAAUD,MAAU,IAAA,aAAA,IAAiBA,MAAQ,EAAA;QAC/C,MAAM,EACJE,MAAMC,CAAC,EACPC,aAAaC,EAAE,EACf,GAAGC,UAAAA,EACJ,GAAGN,MAAAA,CAAAA;QACJ,OAAOM,UAAAA,CAAAA;AACT,KAAA;IAEA,OAAON,MAAAA,CAAAA;AACT;;;;"}
|
|
@@ -1,33 +1,36 @@
|
|
|
1
|
-
import { composeBaseQueryKey } from
|
|
2
|
-
import { composeInfiniteQueryKey } from
|
|
3
|
-
import { composeQueryKey } from
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { composeBaseQueryKey } from './composeBaseQueryKey.js';
|
|
2
|
+
import { composeInfiniteQueryKey } from './composeInfiniteQueryKey.js';
|
|
3
|
+
import { composeQueryKey } from './composeQueryKey.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Replaces the `parameters` field in the filters with a `queryKey` field based on the schema.
|
|
7
|
+
* If no filters are provided, a `queryKey` will be composed schema's base query key.
|
|
8
|
+
* @param schema
|
|
9
|
+
* @param filters
|
|
10
|
+
*/ function composeQueryFilters(schema, filters) {
|
|
11
|
+
if (!filters) {
|
|
12
|
+
return {
|
|
13
|
+
queryKey: composeBaseQueryKey(schema, undefined, undefined)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
if ('queryKey' in filters && 'parameters' in filters) {
|
|
17
|
+
throw new Error(`'composeQueryFilters': 'queryKey' and 'parameters' cannot be used together`);
|
|
18
|
+
}
|
|
19
|
+
const { infinite, parameters, ...filtersRest } = filters;
|
|
20
|
+
if ('queryKey' in filtersRest) {
|
|
21
|
+
return filtersRest;
|
|
22
|
+
}
|
|
23
|
+
if (parameters) {
|
|
24
|
+
Object.assign(filtersRest, {
|
|
25
|
+
queryKey: infinite ? composeInfiniteQueryKey(schema, parameters) : composeQueryKey(schema, parameters)
|
|
26
|
+
});
|
|
27
|
+
return filtersRest;
|
|
28
|
+
}
|
|
6
29
|
return {
|
|
7
|
-
|
|
30
|
+
...filtersRest,
|
|
31
|
+
queryKey: infinite ? composeInfiniteQueryKey(schema, undefined) : composeQueryKey(schema, undefined)
|
|
8
32
|
};
|
|
9
|
-
}
|
|
10
|
-
if ("queryKey" in filters && "parameters" in filters) {
|
|
11
|
-
throw new Error(
|
|
12
|
-
`'composeQueryFilters': 'queryKey' and 'parameters' cannot be used together`
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
const { infinite, parameters, ...filtersRest } = filters;
|
|
16
|
-
if ("queryKey" in filtersRest) {
|
|
17
|
-
return filtersRest;
|
|
18
|
-
}
|
|
19
|
-
if (parameters) {
|
|
20
|
-
Object.assign(filtersRest, {
|
|
21
|
-
queryKey: infinite ? composeInfiniteQueryKey(schema, parameters) : composeQueryKey(schema, parameters)
|
|
22
|
-
});
|
|
23
|
-
return filtersRest;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
...filtersRest,
|
|
27
|
-
queryKey: infinite ? composeInfiniteQueryKey(schema, void 0) : composeQueryKey(schema, void 0)
|
|
28
|
-
};
|
|
29
33
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
//# sourceMappingURL=composeQueryFilters.js.map
|
|
34
|
+
|
|
35
|
+
export { composeQueryFilters };
|
|
36
|
+
//# sourceMappingURL=composeQueryFilters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/composeQueryFilters.ts"],"sourcesContent":["import { composeBaseQueryKey } from './composeBaseQueryKey.js';\nimport { composeInfiniteQueryKey } from './composeInfiniteQueryKey.js';\nimport { composeQueryKey } from './composeQueryKey.js';\nimport type { OperationSchema } from './requestFn.js';\n\n/**\n * Replaces the `parameters` field in the filters with a `queryKey` field based on the schema.\n * If no filters are provided, a `queryKey` will be composed schema's base query key.\n * @param schema\n * @param filters\n */\nexport function composeQueryFilters<\n Filters extends {\n infinite: boolean;\n parameters?: object;\n } & Record<string, unknown>,\n>(schema: OperationSchema, filters: Filters | undefined) {\n if (!filters) {\n return {\n queryKey: composeBaseQueryKey(schema, undefined, undefined),\n };\n }\n\n if ('queryKey' in filters && 'parameters' in filters) {\n throw new Error(\n `'composeQueryFilters': 'queryKey' and 'parameters' cannot be used together`\n );\n }\n\n const { infinite, parameters, ...filtersRest } = filters;\n\n if ('queryKey' in filtersRest) {\n return filtersRest;\n }\n\n if (parameters) {\n Object.assign(filtersRest, {\n queryKey: infinite\n ? composeInfiniteQueryKey(schema, parameters)\n : composeQueryKey(schema, parameters),\n });\n\n return filtersRest;\n }\n\n return {\n ...filtersRest,\n queryKey: infinite\n ? composeInfiniteQueryKey(schema, undefined)\n : composeQueryKey(schema, undefined),\n };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"composeQueryFilters.js","sources":["../../../src/lib/composeQueryFilters.ts"],"sourcesContent":["import { composeBaseQueryKey } from './composeBaseQueryKey.js';\nimport { composeInfiniteQueryKey } from './composeInfiniteQueryKey.js';\nimport { composeQueryKey } from './composeQueryKey.js';\nimport type { OperationSchema } from './requestFn.js';\n\n/**\n * Replaces the `parameters` field in the filters with a `queryKey` field based on the schema.\n * If no filters are provided, a `queryKey` will be composed schema's base query key.\n * @param schema\n * @param filters\n */\nexport function composeQueryFilters<\n Filters extends {\n infinite: boolean;\n parameters?: object;\n } & Record<string, unknown>,\n>(schema: OperationSchema, filters: Filters | undefined) {\n if (!filters) {\n return {\n queryKey: composeBaseQueryKey(schema, undefined, undefined),\n };\n }\n\n if ('queryKey' in filters && 'parameters' in filters) {\n throw new Error(\n `'composeQueryFilters': 'queryKey' and 'parameters' cannot be used together`\n );\n }\n\n const { infinite, parameters, ...filtersRest } = filters;\n\n if ('queryKey' in filtersRest) {\n return filtersRest;\n }\n\n if (parameters) {\n Object.assign(filtersRest, {\n queryKey: infinite\n ? composeInfiniteQueryKey(schema, parameters)\n : composeQueryKey(schema, parameters),\n });\n\n return filtersRest;\n }\n\n return {\n ...filtersRest,\n queryKey: infinite\n ? composeInfiniteQueryKey(schema, undefined)\n : composeQueryKey(schema, undefined),\n };\n}\n"],"names":["composeQueryFilters","schema","filters","queryKey","composeBaseQueryKey","undefined","Error","infinite","parameters","filtersRest","Object","assign","composeInfiniteQueryKey","composeQueryKey"],"mappings":";;;;AAKA;;;;;AAKC,IACM,SAASA,mBAKdC,CAAAA,MAAuB,EAAEC,OAA4B,EAAA;AACrD,IAAA,IAAI,CAACA,OAAS,EAAA;QACZ,OAAO;YACLC,QAAUC,EAAAA,mBAAAA,CAAoBH,QAAQI,SAAWA,EAAAA,SAAAA,CAAAA;AACnD,SAAA,CAAA;AACF,KAAA;IAEA,IAAI,UAAA,IAAcH,OAAW,IAAA,YAAA,IAAgBA,OAAS,EAAA;AACpD,QAAA,MAAM,IAAII,KAAAA,CACR,CAAC,0EAA0E,CAAC,CAAA,CAAA;AAEhF,KAAA;AAEA,IAAA,MAAM,EAAEC,QAAQ,EAAEC,UAAU,EAAE,GAAGC,aAAa,GAAGP,OAAAA,CAAAA;AAEjD,IAAA,IAAI,cAAcO,WAAa,EAAA;QAC7B,OAAOA,WAAAA,CAAAA;AACT,KAAA;AAEA,IAAA,IAAID,UAAY,EAAA;QACdE,MAAOC,CAAAA,MAAM,CAACF,WAAa,EAAA;AACzBN,YAAAA,QAAAA,EAAUI,QACNK,GAAAA,uBAAAA,CAAwBX,MAAQO,EAAAA,UAAAA,CAAAA,GAChCK,gBAAgBZ,MAAQO,EAAAA,UAAAA,CAAAA;AAC9B,SAAA,CAAA,CAAA;QAEA,OAAOC,WAAAA,CAAAA;AACT,KAAA;IAEA,OAAO;AACL,QAAA,GAAGA,WAAW;AACdN,QAAAA,QAAAA,EAAUI,QACNK,GAAAA,uBAAAA,CAAwBX,MAAQI,EAAAA,SAAAA,CAAAA,GAChCQ,gBAAgBZ,MAAQI,EAAAA,SAAAA,CAAAA;AAC9B,KAAA,CAAA;AACF;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { composeBaseQueryKey } from
|
|
1
|
+
import { composeBaseQueryKey } from './composeBaseQueryKey.js';
|
|
2
|
+
|
|
2
3
|
function composeQueryKey(schema, parameters) {
|
|
3
|
-
|
|
4
|
+
return composeBaseQueryKey(schema, parameters, false);
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=composeQueryKey.js.map
|
|
6
|
+
|
|
7
|
+
export { composeQueryKey };
|
|
8
|
+
//# sourceMappingURL=composeQueryKey.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/composeQueryKey.ts"],"sourcesContent":["import type { ServiceOperationQueryKey } from '../service-operation/ServiceOperationKey.js';\nimport { composeBaseQueryKey } from './composeBaseQueryKey.js';\nimport type { OperationSchema } from './requestFn.js';\n\nexport function composeQueryKey<TSchema extends OperationSchema, TParams>(\n schema: TSchema,\n parameters: TParams | undefined\n): ServiceOperationQueryKey<TSchema, TParams> {\n return composeBaseQueryKey(schema, parameters, false);\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"composeQueryKey.js","sources":["../../../src/lib/composeQueryKey.ts"],"sourcesContent":["import type { ServiceOperationQueryKey } from '../service-operation/ServiceOperationKey.js';\nimport { composeBaseQueryKey } from './composeBaseQueryKey.js';\nimport type { OperationSchema } from './requestFn.js';\n\nexport function composeQueryKey<TSchema extends OperationSchema, TParams>(\n schema: TSchema,\n parameters: TParams | undefined\n): ServiceOperationQueryKey<TSchema, TParams> {\n return composeBaseQueryKey(schema, parameters, false);\n}\n"],"names":["composeQueryKey","schema","parameters","composeBaseQueryKey"],"mappings":";;AAIO,SAASA,eAAAA,CACdC,MAAe,EACfC,UAA+B,EAAA;IAE/B,OAAOC,mBAAAA,CAAoBF,QAAQC,UAAY,EAAA,KAAA,CAAA,CAAA;AACjD;;;;"}
|
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
// todo::rename to `qraftRecursiveProxy` with deprecated `createRecursiveProxy`
|
|
2
|
+
/**
|
|
3
|
+
* Creates a recursive proxy that calls the `getCallback` and `applyCallback` functions
|
|
4
|
+
* @param getCallback The callback to call when a proxy property is accessed
|
|
5
|
+
* @param applyCallback The callback to call when a proxy is called as a function
|
|
6
|
+
* @param path The current path of the proxy
|
|
7
|
+
*/ function createRecursiveProxy(getCallback, applyCallback, path) {
|
|
8
|
+
return new Proxy(noop, {
|
|
9
|
+
get (_obj, key) {
|
|
10
|
+
if (typeof key !== 'string' || key === 'then') {
|
|
11
|
+
// special case for if the proxy is accidentally treated
|
|
12
|
+
// like a PromiseLike (like in `Promise.resolve(proxy)`)
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
return getCallback(path, key) ?? createRecursiveProxy(getCallback, applyCallback, [
|
|
16
|
+
...path,
|
|
17
|
+
key
|
|
18
|
+
]);
|
|
19
|
+
},
|
|
20
|
+
apply (_1, _2, args) {
|
|
21
|
+
const functionName = path[path.length - 1];
|
|
22
|
+
const isCall = functionName === 'call';
|
|
23
|
+
const isApply = isCall ? false : functionName === 'apply';
|
|
24
|
+
return applyCallback(isApply || isCall ? path.slice(0, -1) : path, isApply ? args.length >= 2 ? args[1] : [] : isCall ? args.slice(1) : args);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
19
27
|
}
|
|
20
28
|
function noop() {
|
|
29
|
+
// noop
|
|
21
30
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
//# sourceMappingURL=createRecursiveProxy.js.map
|
|
31
|
+
|
|
32
|
+
export { createRecursiveProxy };
|
|
33
|
+
//# sourceMappingURL=createRecursiveProxy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/createRecursiveProxy.ts"],"sourcesContent":["type ProxyApplyCallback = (path: string[], args: unknown[]) => unknown;\n/**\n * @internal\n * If returns `undefined | null`, the proxy will continue to create a new proxy for the next key.\n */\ntype ProxyGetCallback = (path: string[], key: string) => unknown | undefined;\n\n// todo::rename to `qraftRecursiveProxy` with deprecated `createRecursiveProxy`\n/**\n * Creates a recursive proxy that calls the `getCallback` and `applyCallback` functions\n * @param getCallback The callback to call when a proxy property is accessed\n * @param applyCallback The callback to call when a proxy is called as a function\n * @param path The current path of the proxy\n */\nexport function createRecursiveProxy(\n getCallback: ProxyGetCallback,\n applyCallback: ProxyApplyCallback,\n path: string[]\n): unknown {\n return new Proxy(noop, {\n get(_obj, key) {\n if (typeof key !== 'string' || key === 'then') {\n // special case for if the proxy is accidentally treated\n // like a PromiseLike (like in `Promise.resolve(proxy)`)\n return undefined;\n }\n\n return (\n getCallback(path, key) ??\n createRecursiveProxy(getCallback, applyCallback, [...path, key])\n );\n },\n apply(_1, _2, args) {\n const functionName = path[path.length - 1];\n\n const isCall = functionName === 'call';\n const isApply = isCall ? false : functionName === 'apply';\n\n return applyCallback(\n isApply || isCall ? path.slice(0, -1) : path,\n isApply\n ? args.length >= 2\n ? args[1]\n : []\n : isCall\n ? args.slice(1)\n : args\n );\n },\n });\n}\n\nfunction noop() {\n // noop\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"createRecursiveProxy.js","sources":["../../../src/lib/createRecursiveProxy.ts"],"sourcesContent":["type ProxyApplyCallback = (path: string[], args: unknown[]) => unknown;\n/**\n * @internal\n * If returns `undefined | null`, the proxy will continue to create a new proxy for the next key.\n */\ntype ProxyGetCallback = (path: string[], key: string) => unknown | undefined;\n\n// todo::rename to `qraftRecursiveProxy` with deprecated `createRecursiveProxy`\n/**\n * Creates a recursive proxy that calls the `getCallback` and `applyCallback` functions\n * @param getCallback The callback to call when a proxy property is accessed\n * @param applyCallback The callback to call when a proxy is called as a function\n * @param path The current path of the proxy\n */\nexport function createRecursiveProxy(\n getCallback: ProxyGetCallback,\n applyCallback: ProxyApplyCallback,\n path: string[]\n): unknown {\n return new Proxy(noop, {\n get(_obj, key) {\n if (typeof key !== 'string' || key === 'then') {\n // special case for if the proxy is accidentally treated\n // like a PromiseLike (like in `Promise.resolve(proxy)`)\n return undefined;\n }\n\n return (\n getCallback(path, key) ??\n createRecursiveProxy(getCallback, applyCallback, [...path, key])\n );\n },\n apply(_1, _2, args) {\n const functionName = path[path.length - 1];\n\n const isCall = functionName === 'call';\n const isApply = isCall ? false : functionName === 'apply';\n\n return applyCallback(\n isApply || isCall ? path.slice(0, -1) : path,\n isApply\n ? args.length >= 2\n ? args[1]\n : []\n : isCall\n ? args.slice(1)\n : args\n );\n },\n });\n}\n\nfunction noop() {\n // noop\n}\n"],"names":["createRecursiveProxy","getCallback","applyCallback","path","Proxy","noop","get","_obj","key","undefined","apply","_1","_2","args","functionName","length","isCall","isApply","slice"],"mappings":"AAOA;AACA;;;;;AAKC,IACM,SAASA,oBAAAA,CACdC,WAA6B,EAC7BC,aAAiC,EACjCC,IAAc,EAAA;IAEd,OAAO,IAAIC,MAAMC,IAAM,EAAA;QACrBC,GAAIC,CAAAA,CAAAA,IAAI,EAAEC,GAAG,EAAA;AACX,YAAA,IAAI,OAAOA,GAAAA,KAAQ,QAAYA,IAAAA,GAAAA,KAAQ,MAAQ,EAAA;;;gBAG7C,OAAOC,SAAAA,CAAAA;AACT,aAAA;AAEA,YAAA,OACER,WAAYE,CAAAA,IAAAA,EAAMK,GAClBR,CAAAA,IAAAA,oBAAAA,CAAqBC,aAAaC,aAAe,EAAA;AAAIC,gBAAAA,GAAAA,IAAAA;AAAMK,gBAAAA,GAAAA;AAAI,aAAA,CAAA,CAAA;AAEnE,SAAA;AACAE,QAAAA,KAAAA,CAAAA,CAAMC,EAAE,EAAEC,EAAE,EAAEC,IAAI,EAAA;AAChB,YAAA,MAAMC,eAAeX,IAAI,CAACA,IAAKY,CAAAA,MAAM,GAAG,CAAE,CAAA,CAAA;AAE1C,YAAA,MAAMC,SAASF,YAAiB,KAAA,MAAA,CAAA;YAChC,MAAMG,OAAAA,GAAUD,MAAS,GAAA,KAAA,GAAQF,YAAiB,KAAA,OAAA,CAAA;YAElD,OAAOZ,aAAAA,CACLe,OAAWD,IAAAA,MAAAA,GAASb,IAAKe,CAAAA,KAAK,CAAC,CAAG,EAAA,CAAC,CAAKf,CAAAA,GAAAA,IAAAA,EACxCc,OACIJ,GAAAA,IAAAA,CAAKE,MAAM,IAAI,CAAA,GACbF,IAAI,CAAC,CAAE,CAAA,GACP,EAAE,GACJG,MACEH,GAAAA,IAAAA,CAAKK,KAAK,CAAC,CACXL,CAAAA,GAAAA,IAAAA,CAAAA,CAAAA;AAEV,SAAA;AACF,KAAA,CAAA,CAAA;AACF,CAAA;AAEA,SAASR,IAAAA,GAAAA;AACP;AACF;;;;"}
|
|
@@ -1,65 +1,58 @@
|
|
|
1
1
|
class InvalidTokenError extends Error {
|
|
2
2
|
}
|
|
3
|
-
InvalidTokenError.prototype.name =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
InvalidTokenError.prototype.name = 'InvalidTokenError';
|
|
4
|
+
/**
|
|
5
|
+
* Decode a base64 string to a UTF-8 string.
|
|
6
|
+
* Could be used in Node.js or in the browser.
|
|
7
|
+
*/ function b64DecodeUnicode(data) {
|
|
8
|
+
if (typeof atob === 'function') return decodeURIComponent(Array.from(atob(data), byteToPercent).join(''));
|
|
9
|
+
return Buffer.from(data, 'base64').toString('utf-8');
|
|
8
10
|
}
|
|
9
11
|
function base64UrlDecode(str) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
12
|
+
let output = str.replace(/-/g, '+').replace(/_/g, '/');
|
|
13
|
+
switch(output.length % 4){
|
|
14
|
+
case 0:
|
|
15
|
+
break;
|
|
16
|
+
case 2:
|
|
17
|
+
output += '==';
|
|
18
|
+
break;
|
|
19
|
+
case 3:
|
|
20
|
+
output += '=';
|
|
21
|
+
break;
|
|
22
|
+
default:
|
|
23
|
+
throw new Error('base64 string is not of the correct length');
|
|
24
|
+
}
|
|
25
|
+
try {
|
|
26
|
+
return b64DecodeUnicode(output);
|
|
27
|
+
} catch (err) {
|
|
28
|
+
return atob(output);
|
|
29
|
+
}
|
|
28
30
|
}
|
|
29
31
|
function jwtDecode(token, options) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return JSON.parse(decoded);
|
|
51
|
-
} catch (e) {
|
|
52
|
-
throw new InvalidTokenError(
|
|
53
|
-
`Invalid token specified: invalid json for part #${pos + 1} (${e.message})`
|
|
54
|
-
);
|
|
55
|
-
}
|
|
32
|
+
if (typeof token !== 'string') {
|
|
33
|
+
throw new InvalidTokenError('Invalid token specified: must be a string');
|
|
34
|
+
}
|
|
35
|
+
options ||= {};
|
|
36
|
+
const pos = options.header === true ? 0 : 1;
|
|
37
|
+
const part = token.split('.')[pos];
|
|
38
|
+
if (typeof part !== 'string') {
|
|
39
|
+
throw new InvalidTokenError(`Invalid token specified: missing part #${pos + 1}`);
|
|
40
|
+
}
|
|
41
|
+
let decoded;
|
|
42
|
+
try {
|
|
43
|
+
decoded = base64UrlDecode(part);
|
|
44
|
+
} catch (e) {
|
|
45
|
+
throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${pos + 1} (${e.message})`);
|
|
46
|
+
}
|
|
47
|
+
try {
|
|
48
|
+
return JSON.parse(decoded);
|
|
49
|
+
} catch (e) {
|
|
50
|
+
throw new InvalidTokenError(`Invalid token specified: invalid json for part #${pos + 1} (${e.message})`);
|
|
51
|
+
}
|
|
56
52
|
}
|
|
57
53
|
function byteToPercent(b) {
|
|
58
|
-
|
|
54
|
+
return `%${`00${b.charCodeAt(0).toString(16)}`.slice(-2)}`;
|
|
59
55
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
jwtDecode
|
|
64
|
-
};
|
|
65
|
-
//# sourceMappingURL=index.js.map
|
|
56
|
+
|
|
57
|
+
export { InvalidTokenError, b64DecodeUnicode, jwtDecode };
|
|
58
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/lib/jwt-decode/index.ts"],"sourcesContent":["export interface JwtDecodeOptions {\n header?: boolean;\n}\n\nexport interface JwtHeader {\n typ?: string;\n alg?: string;\n kid?: string;\n}\n\nexport interface JwtPayload {\n iss?: string;\n sub?: string;\n aud?: string[] | string;\n exp?: number;\n nbf?: number;\n iat?: number;\n jti?: string;\n}\n\nexport class InvalidTokenError extends Error {}\n\nInvalidTokenError.prototype.name = 'InvalidTokenError';\n\n/**\n * Decode a base64 string to a UTF-8 string.\n * Could be used in Node.js or in the browser.\n */\nexport function b64DecodeUnicode(data: string): string {\n if (typeof atob === 'function')\n return decodeURIComponent(Array.from(atob(data), byteToPercent).join(''));\n\n return Buffer.from(data, 'base64').toString('utf-8');\n}\n\nfunction base64UrlDecode(str: string) {\n let output = str.replace(/-/g, '+').replace(/_/g, '/');\n switch (output.length % 4) {\n case 0:\n break;\n case 2:\n output += '==';\n break;\n case 3:\n output += '=';\n break;\n default:\n throw new Error('base64 string is not of the correct length');\n }\n\n try {\n return b64DecodeUnicode(output);\n } catch (err) {\n return atob(output);\n }\n}\n\nexport function jwtDecode<T = JwtHeader>(\n token: string,\n options: JwtDecodeOptions & { header: true }\n): T;\nexport function jwtDecode<T = JwtPayload>(\n token: string,\n options?: JwtDecodeOptions\n): T;\nexport function jwtDecode<T = JwtHeader | JwtPayload>(\n token: string,\n options?: JwtDecodeOptions\n): T {\n if (typeof token !== 'string') {\n throw new InvalidTokenError('Invalid token specified: must be a string');\n }\n\n options ||= {};\n\n const pos = options.header === true ? 0 : 1;\n const part = token.split('.')[pos];\n\n if (typeof part !== 'string') {\n throw new InvalidTokenError(\n `Invalid token specified: missing part #${pos + 1}`\n );\n }\n\n let decoded: string;\n try {\n decoded = base64UrlDecode(part);\n } catch (e) {\n throw new InvalidTokenError(\n `Invalid token specified: invalid base64 for part #${pos + 1} (${(e as Error).message})`\n );\n }\n\n try {\n return JSON.parse(decoded) as T;\n } catch (e) {\n throw new InvalidTokenError(\n `Invalid token specified: invalid json for part #${pos + 1} (${(e as Error).message})`\n );\n }\n}\n\nfunction byteToPercent(b: string) {\n return `%${`00${b.charCodeAt(0).toString(16)}`.slice(-2)}`;\n}\n"],"mappings":"AAoBO,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/lib/jwt-decode/index.ts"],"sourcesContent":["export interface JwtDecodeOptions {\n header?: boolean;\n}\n\nexport interface JwtHeader {\n typ?: string;\n alg?: string;\n kid?: string;\n}\n\nexport interface JwtPayload {\n iss?: string;\n sub?: string;\n aud?: string[] | string;\n exp?: number;\n nbf?: number;\n iat?: number;\n jti?: string;\n}\n\nexport class InvalidTokenError extends Error {}\n\nInvalidTokenError.prototype.name = 'InvalidTokenError';\n\n/**\n * Decode a base64 string to a UTF-8 string.\n * Could be used in Node.js or in the browser.\n */\nexport function b64DecodeUnicode(data: string): string {\n if (typeof atob === 'function')\n return decodeURIComponent(Array.from(atob(data), byteToPercent).join(''));\n\n return Buffer.from(data, 'base64').toString('utf-8');\n}\n\nfunction base64UrlDecode(str: string) {\n let output = str.replace(/-/g, '+').replace(/_/g, '/');\n switch (output.length % 4) {\n case 0:\n break;\n case 2:\n output += '==';\n break;\n case 3:\n output += '=';\n break;\n default:\n throw new Error('base64 string is not of the correct length');\n }\n\n try {\n return b64DecodeUnicode(output);\n } catch (err) {\n return atob(output);\n }\n}\n\nexport function jwtDecode<T = JwtHeader>(\n token: string,\n options: JwtDecodeOptions & { header: true }\n): T;\nexport function jwtDecode<T = JwtPayload>(\n token: string,\n options?: JwtDecodeOptions\n): T;\nexport function jwtDecode<T = JwtHeader | JwtPayload>(\n token: string,\n options?: JwtDecodeOptions\n): T {\n if (typeof token !== 'string') {\n throw new InvalidTokenError('Invalid token specified: must be a string');\n }\n\n options ||= {};\n\n const pos = options.header === true ? 0 : 1;\n const part = token.split('.')[pos];\n\n if (typeof part !== 'string') {\n throw new InvalidTokenError(\n `Invalid token specified: missing part #${pos + 1}`\n );\n }\n\n let decoded: string;\n try {\n decoded = base64UrlDecode(part);\n } catch (e) {\n throw new InvalidTokenError(\n `Invalid token specified: invalid base64 for part #${pos + 1} (${(e as Error).message})`\n );\n }\n\n try {\n return JSON.parse(decoded) as T;\n } catch (e) {\n throw new InvalidTokenError(\n `Invalid token specified: invalid json for part #${pos + 1} (${(e as Error).message})`\n );\n }\n}\n\nfunction byteToPercent(b: string) {\n return `%${`00${b.charCodeAt(0).toString(16)}`.slice(-2)}`;\n}\n"],"names":["InvalidTokenError","Error","prototype","name","b64DecodeUnicode","data","atob","decodeURIComponent","Array","from","byteToPercent","join","Buffer","toString","base64UrlDecode","str","output","replace","length","err","jwtDecode","token","options","pos","header","part","split","decoded","e","message","JSON","parse","b","charCodeAt","slice"],"mappings":"AAoBO,MAAMA,iBAA0BC,SAAAA,KAAAA,CAAAA;AAAO,CAAA;AAE9CD,iBAAkBE,CAAAA,SAAS,CAACC,IAAI,GAAG,mBAAA,CAAA;AAEnC;;;IAIO,SAASC,gBAAAA,CAAiBC,IAAY,EAAA;AAC3C,IAAA,IAAI,OAAOC,IAAAA,KAAS,UAClB,EAAA,OAAOC,kBAAmBC,CAAAA,KAAAA,CAAMC,IAAI,CAACH,IAAKD,CAAAA,IAAAA,CAAAA,EAAOK,aAAeC,CAAAA,CAAAA,IAAI,CAAC,EAAA,CAAA,CAAA,CAAA;AAEvE,IAAA,OAAOC,OAAOH,IAAI,CAACJ,IAAM,EAAA,QAAA,CAAA,CAAUQ,QAAQ,CAAC,OAAA,CAAA,CAAA;AAC9C,CAAA;AAEA,SAASC,gBAAgBC,GAAW,EAAA;IAClC,IAAIC,MAAAA,GAASD,IAAIE,OAAO,CAAC,MAAM,GAAKA,CAAAA,CAAAA,OAAO,CAAC,IAAM,EAAA,GAAA,CAAA,CAAA;IAClD,OAAQD,MAAAA,CAAOE,MAAM,GAAG,CAAA;QACtB,KAAK,CAAA;AACH,YAAA,MAAA;QACF,KAAK,CAAA;YACHF,MAAU,IAAA,IAAA,CAAA;AACV,YAAA,MAAA;QACF,KAAK,CAAA;YACHA,MAAU,IAAA,GAAA,CAAA;AACV,YAAA,MAAA;AACF,QAAA;AACE,YAAA,MAAM,IAAIf,KAAM,CAAA,4CAAA,CAAA,CAAA;AACpB,KAAA;IAEA,IAAI;AACF,QAAA,OAAOG,gBAAiBY,CAAAA,MAAAA,CAAAA,CAAAA;AAC1B,KAAA,CAAE,OAAOG,GAAK,EAAA;AACZ,QAAA,OAAOb,IAAKU,CAAAA,MAAAA,CAAAA,CAAAA;AACd,KAAA;AACF,CAAA;AAUO,SAASI,SAAAA,CACdC,KAAa,EACbC,OAA0B,EAAA;IAE1B,IAAI,OAAOD,UAAU,QAAU,EAAA;AAC7B,QAAA,MAAM,IAAIrB,iBAAkB,CAAA,2CAAA,CAAA,CAAA;AAC9B,KAAA;AAEAsB,IAAAA,OAAAA,KAAY,EAAC,CAAA;AAEb,IAAA,MAAMC,GAAMD,GAAAA,OAAAA,CAAQE,MAAM,KAAK,OAAO,CAAI,GAAA,CAAA,CAAA;AAC1C,IAAA,MAAMC,OAAOJ,KAAMK,CAAAA,KAAK,CAAC,GAAA,CAAI,CAACH,GAAI,CAAA,CAAA;IAElC,IAAI,OAAOE,SAAS,QAAU,EAAA;AAC5B,QAAA,MAAM,IAAIzB,iBACR,CAAA,CAAC,uCAAuC,EAAEuB,GAAAA,GAAM,EAAE,CAAC,CAAA,CAAA;AAEvD,KAAA;IAEA,IAAII,OAAAA,CAAAA;IACJ,IAAI;AACFA,QAAAA,OAAAA,GAAUb,eAAgBW,CAAAA,IAAAA,CAAAA,CAAAA;AAC5B,KAAA,CAAE,OAAOG,CAAG,EAAA;AACV,QAAA,MAAM,IAAI5B,iBAAAA,CACR,CAAC,kDAAkD,EAAEuB,GAAM,GAAA,CAAA,CAAE,EAAE,EAAE,CAACK,CAAYC,OAAO,CAAC,CAAC,CAAC,CAAA,CAAA;AAE5F,KAAA;IAEA,IAAI;QACF,OAAOC,IAAAA,CAAKC,KAAK,CAACJ,OAAAA,CAAAA,CAAAA;AACpB,KAAA,CAAE,OAAOC,CAAG,EAAA;AACV,QAAA,MAAM,IAAI5B,iBAAAA,CACR,CAAC,gDAAgD,EAAEuB,GAAM,GAAA,CAAA,CAAE,EAAE,EAAE,CAACK,CAAYC,OAAO,CAAC,CAAC,CAAC,CAAA,CAAA;AAE1F,KAAA;AACF,CAAA;AAEA,SAASnB,cAAcsB,CAAS,EAAA;AAC9B,IAAA,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,EAAEA,EAAEC,UAAU,CAAC,GAAGpB,QAAQ,CAAC,IAAI,CAAC,CAACqB,KAAK,CAAC,CAAC,GAAG,CAAC,CAAA;AAC5D;;;;"}
|