@zimyo/manage 0.3.1 → 0.3.2

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.
@@ -22,7 +22,7 @@ export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: A
22
22
  isPreviousData: boolean;
23
23
  isRefetching: boolean;
24
24
  isStale: boolean;
25
- refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<any, any>>;
25
+ refetch: <TPageData>(options?: import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) => Promise<import("react-query").QueryObserverResult<any, any>>;
26
26
  remove: () => void;
27
27
  rq_data: any;
28
28
  } | {
@@ -46,7 +46,7 @@ export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: A
46
46
  isPreviousData: boolean;
47
47
  isRefetching: boolean;
48
48
  isStale: boolean;
49
- refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<any, any>>;
49
+ refetch: <TPageData>(options?: import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) => Promise<import("react-query").QueryObserverResult<any, any>>;
50
50
  remove: () => void;
51
51
  rq_data: any;
52
52
  } | {
@@ -70,7 +70,7 @@ export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: A
70
70
  isPreviousData: boolean;
71
71
  isRefetching: boolean;
72
72
  isStale: boolean;
73
- refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<any, any>>;
73
+ refetch: <TPageData>(options?: import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) => Promise<import("react-query").QueryObserverResult<any, any>>;
74
74
  remove: () => void;
75
75
  rq_data: any;
76
76
  } | {
@@ -94,7 +94,7 @@ export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: A
94
94
  isPreviousData: boolean;
95
95
  isRefetching: boolean;
96
96
  isStale: boolean;
97
- refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<any, any>>;
97
+ refetch: <TPageData>(options?: import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) => Promise<import("react-query").QueryObserverResult<any, any>>;
98
98
  remove: () => void;
99
99
  rq_data: any;
100
100
  } | {
@@ -118,7 +118,7 @@ export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: A
118
118
  isPreviousData: boolean;
119
119
  isRefetching: boolean;
120
120
  isStale: boolean;
121
- refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<any, any>>;
121
+ refetch: <TPageData>(options?: import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) => Promise<import("react-query").QueryObserverResult<any, any>>;
122
122
  remove: () => void;
123
123
  rq_data: any;
124
124
  };
@@ -5,7 +5,7 @@ export type HttpServiceType = {
5
5
  params?: any;
6
6
  isNativeEndpoint?: boolean;
7
7
  };
8
- export declare const getService: ({ url, token, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any, {}>>;
9
- export declare const postService: ({ url, token, data, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any, {}>>;
10
- export declare const patchService: ({ url, token, data, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any, {}>>;
11
- export declare const deleteService: ({ url, token, data, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any, {}>>;
8
+ export declare const getService: ({ url, token, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any>>;
9
+ export declare const postService: ({ url, token, data, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any>>;
10
+ export declare const patchService: ({ url, token, data, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any>>;
11
+ export declare const deleteService: ({ url, token, data, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -5,7 +5,7 @@ export declare class util {
5
5
  }, value: string) => any;
6
6
  static getFullDateVar: (ip: any) => any;
7
7
  static isDateValid(date: Date): boolean;
8
- static getFormatedDate: (timestamp?: any, format?: string, checkFormatList?: boolean) => string | null;
8
+ static getFormatedDate: (timestamp?: any, format?: string, checkFormatList?: boolean) => string;
9
9
  static validateDataType(value: unknown, type: string): boolean;
10
10
  static convertFormMasterTypeToDynamicFormType: (type: string) => any;
11
11
  static convertToFormData(data: any): FormData;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zimyo/manage",
3
3
  "private": false,
4
- "version": "0.3.1",
4
+ "version": "0.3.2",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"