@omniumretail/shared-resources 0.4.5 → 0.4.6

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.
@@ -1,7 +1,7 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
- import { VacationPlanByDay, ResponseList } from '../../../../interfaces';
2
+ import { VacationPlanByDayResponse } from '../../../../interfaces';
3
3
 
4
- interface VacationPlanProps extends Omit<UseQueryOptions<ResponseList<"VacationPlanByDay", VacationPlanByDay>>, "queryKey"> {
4
+ interface VacationPlanProps extends UseQueryOptions<VacationPlanByDayResponse> {
5
5
  page?: number;
6
6
  records?: number;
7
7
  sortBy?: string;
@@ -10,5 +10,5 @@ interface VacationPlanProps extends Omit<UseQueryOptions<ResponseList<"VacationP
10
10
  query?: string;
11
11
  queryTemplate?: string;
12
12
  }
13
- export declare const getVacationPlanByDayQueryHook: ({ page, records, sortBy, sortDirection, terms, query, queryTemplate, ...options }: VacationPlanProps) => import('@tanstack/react-query').UseQueryResult<ResponseList<"VacationPlanByDay", VacationPlanByDay>, unknown>;
13
+ export declare const getVacationPlanByDayQueryHook: ({ page, records, sortBy, sortDirection, terms, query, queryTemplate, ...options }: VacationPlanProps) => import('@tanstack/react-query').UseQueryResult<VacationPlanByDayResponse, unknown>;
14
14
  export {};
@@ -10,6 +10,10 @@ export interface VacationPlan {
10
10
  UpdateDate: boolean;
11
11
  VacationPlan: any;
12
12
  }
13
+ export interface VacationPlanByDayResponse {
14
+ VacationPlanByDay: VacationPlanByDay[];
15
+ VacationPlanByDayTemplate: VacationDay[];
16
+ }
13
17
  export interface VacationPlanByDay {
14
18
  VacationPlanId: string;
15
19
  UserName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.4.05",
3
+ "version": "0.4.06",
4
4
  "private": false,
5
5
  "description": "Shared Components and services or utils to the frontend versions",
6
6
  "main": "dist/shared-resources.umd.js",