@omniumretail/shared-resources 0.1.86 → 0.1.87
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/bundle.js +1 -1
- package/dist/types/hooks/Others/getRegulationQuery.hook.d.ts +1 -5
- package/dist/types/hooks/Others/useRegulationQuery.hook.d.ts +1 -5
- package/package.json +1 -1
- package/src/hooks/Others/getRegulationQuery.hook.ts +4 -4
- package/src/hooks/Others/useRegulationQuery.hook.ts +2 -2
- package/dist/types/hooks/Asta/Template/mutate/useEvaluationCycleMutateQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Astt/getTransferDocumentsByIdQuery.hook.d.ts +0 -3
- package/dist/types/hooks/Astt/getTransferDocumentsByPackageQuery.hook.d.ts +0 -3
- package/dist/types/hooks/Astt/getTransferDocumentsPackagesQuery.hook.d.ts +0 -9
- package/dist/types/hooks/Astt/getTransferDocumentsQuery.hook.d.ts +0 -11
- package/dist/types/hooks/Astt/getTransferReportDiff.hook.d.ts +0 -9
- package/dist/types/hooks/Astt/getTransferStatesQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Checkouts/mutate/postCheckoutsMutateQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Others/postVerifyUserQuery.hook.d.ts +0 -2
- package/dist/types/hooks/Product/get/useProductHierarchies.hook.d.ts +0 -7
- package/dist/types/hooks/Product/get/useProductsQuery.hook.d.ts +0 -142
- package/dist/types/hooks/Roles/get/useAllStoreQuery.hook.d.ts +0 -13
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
|
|
3
|
-
TermsAndConditionsURL: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const getRegulationQueryHook: ({ ...options }: UseQueryOptions<RegulationQueryProps>) => import("@tanstack/react-query").UseQueryResult<RegulationQueryProps, unknown>;
|
|
6
|
-
export {};
|
|
2
|
+
export declare const getRegulationQueryHook: ({ ...options }: UseQueryOptions) => import("@tanstack/react-query").UseQueryResult<unknown, unknown>;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
|
|
3
|
-
TermsAndConditionsURL: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const useRegulationQueryHook: (userId: string, { ...options }: UseQueryOptions<RegulationQueryProps>) => import("@tanstack/react-query").UseQueryResult<RegulationQueryProps, unknown>;
|
|
6
|
-
export {};
|
|
2
|
+
export declare const useRegulationQueryHook: (userId: string, { ...options }: UseQueryOptions) => import("@tanstack/react-query").UseQueryResult<unknown, unknown>;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { getAuth0 } from '
|
|
1
|
+
import { getAuth0 } from '../..';
|
|
2
2
|
import { useQuery, UseQueryOptions } from '@tanstack/react-query';
|
|
3
3
|
|
|
4
|
-
interface
|
|
4
|
+
interface GetRegulationQueryProps {
|
|
5
5
|
TermsAndConditionsURL: string;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
export const getRegulationQueryHook = ({...options} : UseQueryOptions
|
|
8
|
+
export const getRegulationQueryHook = ({...options} : UseQueryOptions) => {
|
|
9
9
|
return useQuery(
|
|
10
10
|
['REGULATION_QUERY'],
|
|
11
|
-
() => getAuth0<
|
|
11
|
+
() => getAuth0<GetRegulationQueryProps>(`/AACP/Users/termsAndConditions`),
|
|
12
12
|
options
|
|
13
13
|
);
|
|
14
14
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { putAuth0 } from '
|
|
1
|
+
import { putAuth0 } from '../..';
|
|
2
2
|
import { useQuery, UseQueryOptions } from '@tanstack/react-query';
|
|
3
3
|
|
|
4
4
|
interface RegulationQueryProps {
|
|
5
5
|
TermsAndConditionsURL: string;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
export const useRegulationQueryHook = (userId: string, {...options} : UseQueryOptions
|
|
8
|
+
export const useRegulationQueryHook = (userId: string, {...options} : UseQueryOptions) => {
|
|
9
9
|
return useQuery(
|
|
10
10
|
['USE_REGULATION_QUERY', userId],
|
|
11
11
|
() => putAuth0<RegulationQueryProps>(`/AACP/Users/${userId}/termsAndConditions`),
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { TransferDocuments } from '../../';
|
|
2
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
-
export declare const getTransferDocumentsByIdQueryHook: (transferId: string, { ...options }: UseQueryOptions<TransferDocuments>) => import("@tanstack/react-query").UseQueryResult<TransferDocuments, unknown>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { TransferPackage } from '../../';
|
|
2
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
-
export declare const getTransferDocumentsByPackageQueryHook: (transferId: string, transferPackageId: string, { ...options }: UseQueryOptions<TransferPackage>) => import("@tanstack/react-query").UseQueryResult<TransferPackage, unknown>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { TransferDocumentsDetails, ResponseList } from "../../interfaces";
|
|
3
|
-
export interface TransferDocumentsPackagesProps extends UseQueryOptions<ResponseList<"TransferDocumentDetails", TransferDocumentsDetails>> {
|
|
4
|
-
sortBy?: string;
|
|
5
|
-
sortDirection?: string;
|
|
6
|
-
terms?: string;
|
|
7
|
-
transferDocumentId?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const getTransferDocumentsPackagesQueryHook: ({ sortBy, sortDirection, terms, transferDocumentId }: TransferDocumentsPackagesProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"TransferDocumentDetails", TransferDocumentsDetails>, unknown>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { TransferDocuments, ResponseList } from "../../interfaces";
|
|
3
|
-
export interface TransferDocumentsProps extends UseQueryOptions<ResponseList<"TransferDocuments", TransferDocuments>> {
|
|
4
|
-
page: number;
|
|
5
|
-
records: number;
|
|
6
|
-
sortBy: string;
|
|
7
|
-
sortDirection: string;
|
|
8
|
-
terms?: string;
|
|
9
|
-
query?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const getTransferDocumentsQueryHook: ({ page, records, sortBy, sortDirection, terms, query }: TransferDocumentsProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"TransferDocuments", TransferDocuments>, unknown>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { TransferReportDiff, ResponseList } from "../../interfaces";
|
|
3
|
-
export interface TransferReportDiffProps extends UseQueryOptions<ResponseList<"ProductsToBePicked", TransferReportDiff>> {
|
|
4
|
-
transferDocumentId?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const getTransferReportDiffQueryHook: ({ transferDocumentId }: TransferReportDiffProps) => import("@tanstack/react-query").UseQueryResult<{
|
|
7
|
-
ProductsToBePicked: TransferReportDiff[];
|
|
8
|
-
FalsePositiveProducts?: TransferReportDiff[];
|
|
9
|
-
}, unknown>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ProductsHierarchies, ResponseList } from '../../../';
|
|
2
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
-
export interface useProductsHierarchiesQueryHook extends UseQueryOptions<ResponseList<"Hierarchies", ProductsHierarchies>> {
|
|
4
|
-
page?: number;
|
|
5
|
-
limit?: number;
|
|
6
|
-
}
|
|
7
|
-
export declare const useProductsHierarchiesQueryHook: ({ page, limit, ...options }: useProductsHierarchiesQueryHook) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Hierarchies", ProductsHierarchies>, unknown>;
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { Product, ResponseList } from '../../../';
|
|
2
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
-
export interface ProductsQuery extends UseQueryOptions<ResponseList<"Products", Product>> {
|
|
4
|
-
page?: number;
|
|
5
|
-
limit?: number;
|
|
6
|
-
filterBy?: string;
|
|
7
|
-
search?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const useProductsQueryHook: ({ page, limit, ...options }: ProductsQuery) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Products", Product>, unknown>;
|
|
10
|
-
export declare const useProductInfiniteQueryHook: ({ filterBy, search }?: Omit<ProductsQuery, 'page' | 'limit'>) => {
|
|
11
|
-
count: number;
|
|
12
|
-
data: Product[];
|
|
13
|
-
error: unknown;
|
|
14
|
-
isError: true;
|
|
15
|
-
isLoading: false;
|
|
16
|
-
isLoadingError: true;
|
|
17
|
-
isRefetchError: false;
|
|
18
|
-
isSuccess: false;
|
|
19
|
-
status: "error";
|
|
20
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
21
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
22
|
-
hasNextPage?: boolean;
|
|
23
|
-
hasPreviousPage?: boolean;
|
|
24
|
-
isFetchingNextPage: boolean;
|
|
25
|
-
isFetchingPreviousPage: boolean;
|
|
26
|
-
dataUpdatedAt: number;
|
|
27
|
-
errorUpdatedAt: number;
|
|
28
|
-
failureCount: number;
|
|
29
|
-
failureReason: unknown;
|
|
30
|
-
errorUpdateCount: number;
|
|
31
|
-
isFetched: boolean;
|
|
32
|
-
isFetchedAfterMount: boolean;
|
|
33
|
-
isFetching: boolean;
|
|
34
|
-
isInitialLoading: boolean;
|
|
35
|
-
isPaused: boolean;
|
|
36
|
-
isPlaceholderData: boolean;
|
|
37
|
-
isPreviousData: boolean;
|
|
38
|
-
isRefetching: boolean;
|
|
39
|
-
isStale: boolean;
|
|
40
|
-
refetch: <TPageData>(options?: import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<ResponseList<"Products", Product>>, unknown>>;
|
|
41
|
-
remove: () => void;
|
|
42
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
43
|
-
} | {
|
|
44
|
-
count: number;
|
|
45
|
-
data: Product[];
|
|
46
|
-
error: null;
|
|
47
|
-
isError: false;
|
|
48
|
-
isLoading: true;
|
|
49
|
-
isLoadingError: false;
|
|
50
|
-
isRefetchError: false;
|
|
51
|
-
isSuccess: false;
|
|
52
|
-
status: "loading";
|
|
53
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
54
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
55
|
-
hasNextPage?: boolean;
|
|
56
|
-
hasPreviousPage?: boolean;
|
|
57
|
-
isFetchingNextPage: boolean;
|
|
58
|
-
isFetchingPreviousPage: boolean;
|
|
59
|
-
dataUpdatedAt: number;
|
|
60
|
-
errorUpdatedAt: number;
|
|
61
|
-
failureCount: number;
|
|
62
|
-
failureReason: unknown;
|
|
63
|
-
errorUpdateCount: number;
|
|
64
|
-
isFetched: boolean;
|
|
65
|
-
isFetchedAfterMount: boolean;
|
|
66
|
-
isFetching: boolean;
|
|
67
|
-
isInitialLoading: boolean;
|
|
68
|
-
isPaused: boolean;
|
|
69
|
-
isPlaceholderData: boolean;
|
|
70
|
-
isPreviousData: boolean;
|
|
71
|
-
isRefetching: boolean;
|
|
72
|
-
isStale: boolean;
|
|
73
|
-
refetch: <TPageData>(options?: import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<ResponseList<"Products", Product>>, unknown>>;
|
|
74
|
-
remove: () => void;
|
|
75
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
76
|
-
} | {
|
|
77
|
-
count: number;
|
|
78
|
-
data: Product[];
|
|
79
|
-
error: unknown;
|
|
80
|
-
isError: true;
|
|
81
|
-
isLoading: false;
|
|
82
|
-
isLoadingError: false;
|
|
83
|
-
isRefetchError: true;
|
|
84
|
-
isSuccess: false;
|
|
85
|
-
status: "error";
|
|
86
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
87
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
88
|
-
hasNextPage?: boolean;
|
|
89
|
-
hasPreviousPage?: boolean;
|
|
90
|
-
isFetchingNextPage: boolean;
|
|
91
|
-
isFetchingPreviousPage: boolean;
|
|
92
|
-
dataUpdatedAt: number;
|
|
93
|
-
errorUpdatedAt: number;
|
|
94
|
-
failureCount: number;
|
|
95
|
-
failureReason: unknown;
|
|
96
|
-
errorUpdateCount: number;
|
|
97
|
-
isFetched: boolean;
|
|
98
|
-
isFetchedAfterMount: boolean;
|
|
99
|
-
isFetching: boolean;
|
|
100
|
-
isInitialLoading: boolean;
|
|
101
|
-
isPaused: boolean;
|
|
102
|
-
isPlaceholderData: boolean;
|
|
103
|
-
isPreviousData: boolean;
|
|
104
|
-
isRefetching: boolean;
|
|
105
|
-
isStale: boolean;
|
|
106
|
-
refetch: <TPageData>(options?: import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<ResponseList<"Products", Product>>, unknown>>;
|
|
107
|
-
remove: () => void;
|
|
108
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
109
|
-
} | {
|
|
110
|
-
count: number;
|
|
111
|
-
data: Product[];
|
|
112
|
-
error: null;
|
|
113
|
-
isError: false;
|
|
114
|
-
isLoading: false;
|
|
115
|
-
isLoadingError: false;
|
|
116
|
-
isRefetchError: false;
|
|
117
|
-
isSuccess: true;
|
|
118
|
-
status: "success";
|
|
119
|
-
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
120
|
-
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
121
|
-
hasNextPage?: boolean;
|
|
122
|
-
hasPreviousPage?: boolean;
|
|
123
|
-
isFetchingNextPage: boolean;
|
|
124
|
-
isFetchingPreviousPage: boolean;
|
|
125
|
-
dataUpdatedAt: number;
|
|
126
|
-
errorUpdatedAt: number;
|
|
127
|
-
failureCount: number;
|
|
128
|
-
failureReason: unknown;
|
|
129
|
-
errorUpdateCount: number;
|
|
130
|
-
isFetched: boolean;
|
|
131
|
-
isFetchedAfterMount: boolean;
|
|
132
|
-
isFetching: boolean;
|
|
133
|
-
isInitialLoading: boolean;
|
|
134
|
-
isPaused: boolean;
|
|
135
|
-
isPlaceholderData: boolean;
|
|
136
|
-
isPreviousData: boolean;
|
|
137
|
-
isRefetching: boolean;
|
|
138
|
-
isStale: boolean;
|
|
139
|
-
refetch: <TPageData>(options?: import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<ResponseList<"Products", Product>>, unknown>>;
|
|
140
|
-
remove: () => void;
|
|
141
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
142
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { Store, ResponseList } from "../../../interfaces";
|
|
3
|
-
interface StoreQueryProps extends UseQueryOptions<Store> {
|
|
4
|
-
records: number | string;
|
|
5
|
-
sortBy: string;
|
|
6
|
-
sortDirection: string;
|
|
7
|
-
page: number;
|
|
8
|
-
tags?: string;
|
|
9
|
-
advancedTags?: string;
|
|
10
|
-
filter?: any;
|
|
11
|
-
}
|
|
12
|
-
export declare const useAllStoreQuery: ({ records, sortBy, sortDirection, tags, advancedTags, filter, page, ...options }: StoreQueryProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Locations", Store>, unknown>;
|
|
13
|
-
export {};
|