@omniumretail/shared-resources 0.3.28 → 0.3.30
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/getFlowListQuery.hook.d.ts +2 -1
- package/dist/types/hooks/Aexp/get/getTagsFlowQuery.hook.d.ts +3 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/interfaces/TagsFlow.d.ts +5 -0
- package/dist/types/interfaces/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/hooks/Aexp/get/getFlowListQuery.hook.ts +5 -3
- package/src/hooks/Aexp/get/getTagsFlowQuery.hook.ts +11 -0
- package/src/hooks/index.ts +1 -0
- package/src/interfaces/TagsFlow.ts +5 -0
- package/src/interfaces/index.ts +1 -0
|
@@ -7,6 +7,7 @@ interface FlowListProps extends Omit<UseQueryOptions<ResponseList<"FlowConfigura
|
|
|
7
7
|
sortDirection: string;
|
|
8
8
|
terms?: string;
|
|
9
9
|
query?: string;
|
|
10
|
+
roleList?: string;
|
|
10
11
|
}
|
|
11
|
-
export declare const getFlowListQuery: ({ page, records, sortBy, sortDirection, terms, query, ...options }: FlowListProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"FlowConfigurationResponses", FlowList>, unknown>;
|
|
12
|
+
export declare const getFlowListQuery: ({ page, records, sortBy, sortDirection, terms, query, roleList, ...options }: FlowListProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"FlowConfigurationResponses", FlowList>, unknown>;
|
|
12
13
|
export {};
|
|
@@ -374,6 +374,7 @@ export * from "./Aexp/mutate/useFlowConfigurationQuery.hook";
|
|
|
374
374
|
export * from "./Aexp/mutate/useFlowExecutionQuery.hook";
|
|
375
375
|
export * from "./Aexp/mutate/validateExecutionFileQuery.hook";
|
|
376
376
|
export * from "./Aexp/mutate/inactivateFlowConfigurationQuery.hook";
|
|
377
|
+
export * from "./Aexp/get/getTagsFlowQuery.hook";
|
|
377
378
|
export * from "./Others/useJobTitlesQuery.hook";
|
|
378
379
|
export * from "./Others/useContractStatesQuery.hook";
|
|
379
380
|
export * from "./Others/useApplicationDataQuery.hook";
|
package/package.json
CHANGED
|
@@ -9,18 +9,20 @@ interface FlowListProps extends Omit<UseQueryOptions<ResponseList<"FlowConfigura
|
|
|
9
9
|
sortDirection: string;
|
|
10
10
|
terms?: string;
|
|
11
11
|
query?: string;
|
|
12
|
+
roleList?: string;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
export const getFlowListQuery = ({ page, records, sortBy, sortDirection, terms, query, ...options }: FlowListProps) => {
|
|
15
|
+
export const getFlowListQuery = ({ page, records, sortBy, sortDirection, terms, query, roleList, ...options }: FlowListProps) => {
|
|
15
16
|
return useQuery(
|
|
16
|
-
['FLOW_LIST_QUERY', page, records, sortBy, sortDirection, terms, query, options],
|
|
17
|
+
['FLOW_LIST_QUERY', page, records, sortBy, sortDirection, terms, query, roleList, options],
|
|
17
18
|
() => getAuth0<ResponseList<"FlowConfigurationResponses", FlowList>>(`/AEXP/FlowConfiguration`, {
|
|
18
19
|
pPage: page || 1,
|
|
19
20
|
pRecords: records || 50,
|
|
20
21
|
pSortBy: sortBy || "Name",
|
|
21
22
|
pSortDirection: sortDirection || "asc",
|
|
22
23
|
pTerms: terms || "",
|
|
23
|
-
pQuery: query || ""
|
|
24
|
+
pQuery: query || "",
|
|
25
|
+
pRoleList: roleList || ""
|
|
24
26
|
}),
|
|
25
27
|
options
|
|
26
28
|
);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { TagsFlow } from "../../../interfaces";
|
|
3
|
+
import { getAuth0 } from "../../../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export const getTagsFlow = ({...options} : UseQueryOptions<TagsFlow[]>) => {
|
|
6
|
+
return useQuery(
|
|
7
|
+
['TAGS_FLOW', options],
|
|
8
|
+
() => getAuth0<TagsFlow[]>(`/AEXP/Tags`),
|
|
9
|
+
options
|
|
10
|
+
);
|
|
11
|
+
}
|
package/src/hooks/index.ts
CHANGED
|
@@ -439,6 +439,7 @@ export * from "./Aexp/mutate/useFlowConfigurationQuery.hook";
|
|
|
439
439
|
export * from "./Aexp/mutate/useFlowExecutionQuery.hook";
|
|
440
440
|
export * from "./Aexp/mutate/validateExecutionFileQuery.hook";
|
|
441
441
|
export * from "./Aexp/mutate/inactivateFlowConfigurationQuery.hook";
|
|
442
|
+
export * from "./Aexp/get/getTagsFlowQuery.hook";
|
|
442
443
|
|
|
443
444
|
//Others
|
|
444
445
|
export * from "./Others/useJobTitlesQuery.hook";
|
package/src/interfaces/index.ts
CHANGED