acsi-core 0.10.0 → 1.1.0

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.
@@ -9,3 +9,4 @@ export declare const setIsRefetchSidebar: import("@reduxjs/toolkit").ActionCreat
9
9
  export declare const setTenant: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, string>;
10
10
  export declare const setAddTenant: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
11
11
  export declare const setTeam: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
12
+ export declare const setIsFirstCalendar: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean | undefined, string>;
@@ -13,6 +13,7 @@ export declare const PUSHER_CONFIG: {
13
13
  };
14
14
  export declare const MICROSOFT_CLIENT_ID: string;
15
15
  export declare const MICROSOFT_URL_DIRECT: string;
16
+ export declare const MICROSOFT_SSO_ENABLED: string;
16
17
  export declare const OPENSALT_BASE_URL: string;
17
18
  export declare const REACT_KEY_TINYMCE = "fe5xc4hh72rshrx4xe59zu9setbnwiftu4hroztpre7trmay";
18
19
  export declare const ACCESS_TOKEN = "ACCESS_TOKEN";
@@ -0,0 +1,38 @@
1
+ import { IPublicClientApplication, AccountInfo, AuthenticationResult } from "@azure/msal-browser";
2
+ /**
3
+ * Get or create the MSAL singleton instance
4
+ * @param clientId - Microsoft client ID (optional, uses env if not provided)
5
+ * @param redirectUri - Redirect URI (optional, uses env if not provided)
6
+ * @returns MSAL instance
7
+ */
8
+ export declare const getMSALInstance: (clientId?: string | undefined, redirectUri?: string | undefined) => IPublicClientApplication | null;
9
+ /**
10
+ * Initialize the MSAL instance
11
+ * @param clientId - Microsoft client ID (optional)
12
+ * @param redirectUri - Redirect URI (optional)
13
+ * @returns Promise that resolves when initialization is complete
14
+ */
15
+ export declare const initializeMSAL: (clientId?: string | undefined, redirectUri?: string | undefined) => Promise<IPublicClientApplication | null>;
16
+ /**
17
+ * Handle MSAL redirect promise
18
+ * This should be called as early as possible, before React Router processes the URL
19
+ * @param clientId - Microsoft client ID (optional)
20
+ * @param redirectUri - Redirect URI (optional)
21
+ * @returns Promise with authentication result or null
22
+ */
23
+ export declare const handleMSALRedirect: (clientId?: string | undefined, redirectUri?: string | undefined) => Promise<AuthenticationResult | null>;
24
+ /**
25
+ * Check if current URL contains MSAL redirect parameters
26
+ * @returns true if MSAL redirect detected
27
+ */
28
+ export declare const isMSALRedirect: () => boolean;
29
+ /**
30
+ * Get all accounts from MSAL cache
31
+ * @returns Array of account info
32
+ */
33
+ export declare const getAllAccounts: () => AccountInfo[];
34
+ /**
35
+ * Get active account
36
+ * @returns Active account or null
37
+ */
38
+ export declare const getActiveAccount: () => AccountInfo | null;
@@ -0,0 +1,3 @@
1
+ import moment from "moment";
2
+ declare const _default: (time: string) => moment.Moment | null;
3
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acsi-core",
3
- "version": "0.10.0",
3
+ "version": "1.1.0",
4
4
  "description": "Contains core components && functions for acsi-core project",
5
5
  "author": "brss",
6
6
  "license": "MIT",