@omniumretail/shared-resources 0.1.100 → 0.2.1

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.
@@ -5,6 +5,7 @@ export interface Employee {
5
5
  Name: string;
6
6
  JobTitle: string;
7
7
  IsScheduledToWork: boolean;
8
+ HasImage: boolean;
8
9
  IsWorking: boolean;
9
10
  Worklog?: WorkLog;
10
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.1.100",
3
+ "version": "0.2.1",
4
4
  "private": false,
5
5
  "description": "Shared Components and services or utils to the frontend versions",
6
6
  "main": "dist/bundle.js",
@@ -1,6 +1,6 @@
1
1
  import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
2
2
  import { Actions } from '../../../../interfaces';
3
- import { toDeleteAuth0 } from '../../../../services/ApiService';
3
+ import { putAuth0 } from '../../../../services/ApiService';
4
4
 
5
5
  export interface DeleteActionProps extends UseQueryOptions<Actions> {
6
6
  actionsIds: string[];
@@ -9,7 +9,7 @@ export interface DeleteActionProps extends UseQueryOptions<Actions> {
9
9
  export const deleteActionMutateHook = ({ actionsIds }: DeleteActionProps) => {
10
10
  const queryClient = useQueryClient();
11
11
  return useMutation<Actions, unknown, string[]>(() => {
12
- return toDeleteAuth0(`/ASTA/Actions/DeleteActionList`, undefined, actionsIds)
12
+ return putAuth0(`/ASTA/Actions/DeleteActionList`, undefined, actionsIds)
13
13
  }, {
14
14
  onSuccess: () => {
15
15
  queryClient.invalidateQueries(
@@ -1,6 +1,6 @@
1
1
  import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
2
2
  import { AnswerType } from '../../../../interfaces';
3
- import { toDeleteAuth0 } from '../../../../services/ApiService';
3
+ import { putAuth0 } from '../../../../services/ApiService';
4
4
 
5
5
  export interface DeleteAnswerTypeProps extends UseQueryOptions<AnswerType> {
6
6
  answerTypeIds: string[];
@@ -9,7 +9,7 @@ export interface DeleteAnswerTypeProps extends UseQueryOptions<AnswerType> {
9
9
  export const deleteAnswerTypeHook = ({ answerTypeIds }: DeleteAnswerTypeProps) => {
10
10
  const queryClient = useQueryClient();
11
11
  return useMutation<AnswerType, unknown, string[]>(() => {
12
- return toDeleteAuth0(`/ASTA/AnswerType/Delete`, undefined, answerTypeIds)
12
+ return putAuth0(`/ASTA/AnswerType/Delete`, undefined, answerTypeIds)
13
13
  }, {
14
14
  onSuccess: () => {
15
15
  queryClient.invalidateQueries(
@@ -1,6 +1,6 @@
1
1
  import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
2
2
  import { Inspection } from '../../../../interfaces';
3
- import { toDeleteAuth0 } from '../../../../services/ApiService';
3
+ import { putAuth0 } from '../../../../services/ApiService';
4
4
 
5
5
  export interface DeleteInspectionProps extends UseQueryOptions<Inspection> {
6
6
  inspectionIds: string[];
@@ -9,7 +9,7 @@ export interface DeleteInspectionProps extends UseQueryOptions<Inspection> {
9
9
  export const deleteInspectionMutateHook = ({ inspectionIds }: DeleteInspectionProps) => {
10
10
  const queryClient = useQueryClient();
11
11
  return useMutation<Inspection, unknown, string[]>(() => {
12
- return toDeleteAuth0(`/ASTA/Inspection/DeleteInspectionList`, undefined, inspectionIds)
12
+ return putAuth0(`/ASTA/Inspection/DeleteInspectionList`, undefined, inspectionIds)
13
13
  }, {
14
14
  onSuccess: () => {
15
15
  queryClient.invalidateQueries(
@@ -1,6 +1,6 @@
1
1
  import { UseQueryOptions, useMutation, useQueryClient } from '@tanstack/react-query';
2
2
  import { Template } from '../../../../interfaces';
3
- import { toDeleteAuth0 } from '../../../../services/ApiService';
3
+ import { putAuth0 } from '../../../../services/ApiService';
4
4
 
5
5
  export interface DeleteTemplateProps extends UseQueryOptions<Template> {
6
6
  templatesIds: string[];
@@ -9,7 +9,7 @@ export interface DeleteTemplateProps extends UseQueryOptions<Template> {
9
9
  export const deleteTemplateMutateHook = ({ templatesIds }: DeleteTemplateProps) => {
10
10
  const queryClient = useQueryClient();
11
11
  return useMutation<Template, unknown, string[]>(() => {
12
- return toDeleteAuth0(`/ASTA/Template/DeleteTemplateList`, undefined, templatesIds)
12
+ return putAuth0(`/ASTA/Template/DeleteTemplateList`, undefined, templatesIds)
13
13
  }, {
14
14
  onSuccess: () => {
15
15
  queryClient.invalidateQueries(