@omniumretail/shared-resources 0.3.13 → 0.3.14
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/Aexp/get/getFlowExecutionQuery.hook.d.ts +12 -0
- package/dist/types/hooks/Aexp/get/getFlowListQuery.hook.d.ts +12 -0
- package/dist/types/hooks/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/hooks/{Frd → Aexp}/get/getFlowExecutionQuery.hook.ts +1 -1
- package/src/hooks/{Frd → Aexp}/get/getFlowListQuery.hook.ts +1 -1
- package/src/hooks/index.ts +3 -3
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { FlowExecution, ResponseList } from "../../../interfaces";
|
|
3
|
+
interface FlowExecutionProps extends Omit<UseQueryOptions<ResponseList<"Executions", FlowExecution>>, "queryKey"> {
|
|
4
|
+
page: number;
|
|
5
|
+
records: number;
|
|
6
|
+
sortBy: string;
|
|
7
|
+
sortDirection: string;
|
|
8
|
+
terms?: string;
|
|
9
|
+
query?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const getFlowExecutionQuery: ({ page, records, sortBy, sortDirection, terms, query, ...options }: FlowExecutionProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Executions", FlowExecution>, unknown>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { FlowList, ResponseList } from "../../../interfaces";
|
|
3
|
+
interface FlowListProps extends Omit<UseQueryOptions<ResponseList<"FlowConfigurationResponses", FlowList>>, "queryKey"> {
|
|
4
|
+
page: number;
|
|
5
|
+
records: number;
|
|
6
|
+
sortBy: string;
|
|
7
|
+
sortDirection: string;
|
|
8
|
+
terms?: string;
|
|
9
|
+
query?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const getFlowListQuery: ({ page, records, sortBy, sortDirection, terms, query, ...options }: FlowListProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"FlowConfigurationResponses", FlowList>, unknown>;
|
|
12
|
+
export {};
|
|
@@ -354,8 +354,8 @@ export * from "./ATIM/BackOffice/mutate/postAttendanceRange.hook";
|
|
|
354
354
|
export * from "./ATIM/BackOffice/mutate/useUpdateAttendancesSummary.hook";
|
|
355
355
|
export * from "./ATIM/BackOffice/mutate/useAttendancesById.hook";
|
|
356
356
|
export * from "./ATIM/BackOffice/mutate/useScheduleMutateQuery.hook";
|
|
357
|
-
export * from "./
|
|
358
|
-
export * from "./
|
|
357
|
+
export * from "./Aexp/get/getFlowExecutionQuery.hook";
|
|
358
|
+
export * from "./Aexp/get/getFlowListQuery.hook";
|
|
359
359
|
export * from "./Others/useJobTitlesQuery.hook";
|
|
360
360
|
export * from "./Others/useContractStatesQuery.hook";
|
|
361
361
|
export * from "./Others/useApplicationDataQuery.hook";
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ interface FlowExecutionProps extends Omit<UseQueryOptions<ResponseList<"Executio
|
|
|
14
14
|
export const getFlowExecutionQuery = ({ page, records, sortBy, sortDirection, terms, query, ...options }: FlowExecutionProps) => {
|
|
15
15
|
return useQuery(
|
|
16
16
|
['FLOW_EXECUTION_QUERY', page, records, sortBy, sortDirection, terms, query, options],
|
|
17
|
-
() => getAuth0<ResponseList<"Executions", FlowExecution>>(`/
|
|
17
|
+
() => getAuth0<ResponseList<"Executions", FlowExecution>>(`/AEXP/Execution`, {
|
|
18
18
|
pPage: page || 1,
|
|
19
19
|
pRecords: records || 50,
|
|
20
20
|
pSortBy: sortBy || "Name",
|
|
@@ -14,7 +14,7 @@ interface FlowListProps extends Omit<UseQueryOptions<ResponseList<"FlowConfigura
|
|
|
14
14
|
export const getFlowListQuery = ({ page, records, sortBy, sortDirection, terms, query, ...options }: FlowListProps) => {
|
|
15
15
|
return useQuery(
|
|
16
16
|
['FLOW_LIST_QUERY', page, records, sortBy, sortDirection, terms, query, options],
|
|
17
|
-
() => getAuth0<ResponseList<"FlowConfigurationResponses", FlowList>>(`/
|
|
17
|
+
() => getAuth0<ResponseList<"FlowConfigurationResponses", FlowList>>(`/AEXP/FlowConfiguration`, {
|
|
18
18
|
pPage: page || 1,
|
|
19
19
|
pRecords: records || 50,
|
|
20
20
|
pSortBy: sortBy || "Name",
|
package/src/hooks/index.ts
CHANGED
|
@@ -416,9 +416,9 @@ export * from "./ATIM/BackOffice/mutate/useUpdateAttendancesSummary.hook";
|
|
|
416
416
|
export * from "./ATIM/BackOffice/mutate/useAttendancesById.hook";
|
|
417
417
|
export * from "./ATIM/BackOffice/mutate/useScheduleMutateQuery.hook";
|
|
418
418
|
|
|
419
|
-
//
|
|
420
|
-
export * from "./
|
|
421
|
-
export * from "./
|
|
419
|
+
//Aexp
|
|
420
|
+
export * from "./Aexp/get/getFlowExecutionQuery.hook";
|
|
421
|
+
export * from "./Aexp/get/getFlowListQuery.hook";
|
|
422
422
|
|
|
423
423
|
//Others
|
|
424
424
|
export * from "./Others/useJobTitlesQuery.hook";
|