@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.
@@ -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 {};
@@ -0,0 +1,3 @@
1
+ import { UseQueryOptions } from "@tanstack/react-query";
2
+ import { TagsFlow } from "../../../interfaces";
3
+ export declare const getTagsFlow: ({ ...options }: UseQueryOptions<TagsFlow[]>) => import("@tanstack/react-query").UseQueryResult<TagsFlow[], unknown>;
@@ -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";
@@ -0,0 +1,5 @@
1
+ export interface TagsFlow {
2
+ Id: string;
3
+ TagName: string;
4
+ Role: string;
5
+ }
@@ -73,3 +73,4 @@ export * from './MonitoringComponent';
73
73
  export * from './FlowList';
74
74
  export * from './FlowExecution';
75
75
  export * from './Watson';
76
+ export * from './TagsFlow';
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.30",
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
  );
@@ -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
+ }
@@ -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";
@@ -0,0 +1,5 @@
1
+ export interface TagsFlow {
2
+ Id: string;
3
+ TagName: string;
4
+ Role: string;
5
+ }
@@ -73,3 +73,4 @@ export * from './MonitoringComponent';
73
73
  export * from './FlowList';
74
74
  export * from './FlowExecution';
75
75
  export * from './Watson';
76
+ export * from './TagsFlow';