@zimyo/engage 0.0.50-hrms → 0.0.51-hrms

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.
@@ -46,6 +46,10 @@ export declare const APIS: {
46
46
  CREATE: string;
47
47
  UPDATE: string;
48
48
  RESCHEDULE: string;
49
+ VIRTUAL: {
50
+ CREATE: string;
51
+ CANCEL: string;
52
+ };
49
53
  REMARK: {
50
54
  CREATE: string;
51
55
  };
File without changes
@@ -1,8 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
- declare const AuthProvider: ({ children, token, API_BASE_URL, ASSETS_BASE_URL }: {
2
+ declare const AuthProvider: ({ children, token, API_BASE_URL, ASSETS_BASE_URL, GOOGLE_OAUTH_CLIENT_ID }: {
3
3
  token: string;
4
4
  API_BASE_URL: string;
5
5
  ASSETS_BASE_URL: string;
6
+ GOOGLE_OAUTH_CLIENT_ID: string;
6
7
  children: ReactNode;
7
8
  }) => import("react/jsx-runtime").JSX.Element;
8
9
  export default AuthProvider;
@@ -5,7 +5,8 @@ interface AuthProviderProps {
5
5
  token: string;
6
6
  API_BASE_URL: string;
7
7
  ASSETS_BASE_URL: string;
8
+ GOOGLE_OAUTH_CLIENT_ID: string;
8
9
  children: ReactNode;
9
10
  }
10
- declare const EngageProvider: ({ queryClient, token, API_BASE_URL, ASSETS_BASE_URL, children }: AuthProviderProps) => import("react/jsx-runtime").JSX.Element;
11
+ declare const EngageProvider: ({ queryClient, token, API_BASE_URL, ASSETS_BASE_URL, GOOGLE_OAUTH_CLIENT_ID, children }: AuthProviderProps) => import("react/jsx-runtime").JSX.Element;
11
12
  export default EngageProvider;
@@ -19,4 +19,10 @@ export declare class util {
19
19
  static convertArrayToObjectWithKey(array: Array<any>, key: string | number): any;
20
20
  static removeDuplicatesByProperty(array: Array<any>, property: string): any;
21
21
  static updateFilterObj: (value: any, key: string, filter: any) => any;
22
+ static getOAuthToken: () => string | undefined;
23
+ static setOAuthToken: (creds: {
24
+ access_token: string;
25
+ expires_in: number;
26
+ generated_on: Date;
27
+ }) => void;
22
28
  }
@@ -4,6 +4,7 @@ export type State = {
4
4
  token?: string;
5
5
  API_BASE_URL?: string;
6
6
  ASSETS_BASE_URL?: string;
7
+ GOOGLE_OAUTH_CLIENT_ID?: string;
7
8
  };
8
9
  };
9
10
  type Actions = {
@@ -12,6 +13,7 @@ type Actions = {
12
13
  token: string;
13
14
  API_BASE_URL: string;
14
15
  ASSETS_BASE_URL: string;
16
+ GOOGLE_OAUTH_CLIENT_ID: string;
15
17
  }) => void;
16
18
  clearSession: () => void;
17
19
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zimyo/engage",
3
3
  "private": false,
4
- "version": "0.0.50-hrms",
4
+ "version": "0.0.51-hrms",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -36,6 +36,7 @@
36
36
  "@hookform/resolvers": "^3.4.0",
37
37
  "@mui/icons-material": "^5.15.17",
38
38
  "@mui/material": "^5.15.17",
39
+ "@react-oauth/google": "^0.12.1",
39
40
  "@react-pdf-viewer/core": "^3.12.0",
40
41
  "@react-pdf-viewer/default-layout": "^3.12.0",
41
42
  "@rollup/plugin-babel": "^6.0.4",
@@ -64,16 +65,16 @@
64
65
  "@types/tinycolor2": "^1.4.6",
65
66
  "@typescript-eslint/eslint-plugin": "^7.2.0",
66
67
  "@typescript-eslint/parser": "^7.2.0",
67
- "rollup-plugin-typescript-paths": "^1.5.0",
68
68
  "@vitejs/plugin-react": "^4.3.1",
69
69
  "eslint": "^8.57.0",
70
70
  "eslint-plugin-react-hooks": "^4.6.0",
71
71
  "eslint-plugin-react-refresh": "^0.4.6",
72
+ "rollup-plugin-typescript-paths": "^1.5.0",
72
73
  "typescript": "^5.2.2",
74
+ "vite": "^5.2.0",
73
75
  "vite-plugin-alias": "^0.1.1",
74
76
  "vite-plugin-css-injected-by-js": "^3.5.1",
75
77
  "vite-plugin-dedupe": "^0.1.1",
76
- "vite-plugin-dts": "^3.9.1",
77
- "vite": "^5.2.0"
78
+ "vite-plugin-dts": "^3.9.1"
78
79
  }
79
- }
80
+ }