@omniumretail/shared-resources 0.2.83 → 0.2.85

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.
@@ -3,6 +3,7 @@ import { VacationPlan } from "../../../../interfaces";
3
3
  interface RejectVacationPlanProps extends UseQueryOptions<VacationPlan> {
4
4
  userId: string;
5
5
  vacationPlan: string;
6
+ notes: string;
6
7
  }
7
- export declare const rejectVacationPlanQueryHook: ({ vacationPlan, userId }: RejectVacationPlanProps) => import("@tanstack/react-query").UseMutationResult<VacationPlan, unknown, VacationPlan, unknown>;
8
+ export declare const rejectVacationPlanQueryHook: ({ vacationPlan, userId, notes }: RejectVacationPlanProps) => import("@tanstack/react-query").UseMutationResult<VacationPlan, unknown, VacationPlan, unknown>;
8
9
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.2.83",
3
+ "version": "0.2.85",
4
4
  "private": false,
5
5
  "description": "Shared Components and services or utils to the frontend versions",
6
6
  "main": "dist/bundle.js",
@@ -5,13 +5,15 @@ import { putAuth0 } from "../../../../services/ApiService";
5
5
  interface RejectVacationPlanProps extends UseQueryOptions<VacationPlan> {
6
6
  userId: string;
7
7
  vacationPlan: string;
8
+ notes: string;
8
9
  }
9
10
 
10
- export const rejectVacationPlanQueryHook = ({ vacationPlan, userId }: RejectVacationPlanProps) => {
11
+ export const rejectVacationPlanQueryHook = ({ vacationPlan, userId, notes }: RejectVacationPlanProps) => {
11
12
  const queryClient = useQueryClient();
12
13
  return useMutation<VacationPlan, unknown, VacationPlan>((data: VacationPlan) => {
13
14
  return putAuth0(`/AACP/UserVacationPlans/${vacationPlan}/Reject?`, {
14
- pUserId: userId
15
+ pUserId: userId,
16
+ pNotes: notes
15
17
  }, data);
16
18
  }, {
17
19
  onSuccess: (data: VacationPlan) => {
@@ -14,7 +14,7 @@ interface LocationsByUserQueryProps extends UseQueryOptions<ResponseList<"UserLo
14
14
 
15
15
  export const getLocationsByUserQuery = ({ records, sortBy, sortDirection, tags, advancedTags, filter, page, ...options }: LocationsByUserQueryProps, userId: string) => {
16
16
  const pQueryValue = advancedTags && filter
17
- ? `${advancedTags} and ${filter}`
17
+ ? `${advancedTags} AND ${filter}`
18
18
  : advancedTags
19
19
  ? advancedTags
20
20
  : filter