@omniumretail/shared-resources 0.3.28 → 0.3.29

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.
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.3.28",
3
+ "version": "0.3.29",
4
4
  "private": false,
5
5
  "description": "Shared Components and services or utils to the frontend versions",
6
6
  "main": "dist/bundle.js",
@@ -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
  );