@fctc/interface-logic 2.9.6 → 2.9.8

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,5 +1,7 @@
1
+ import { E as EnvConfig } from './environment-BSFa-Jcm.mjs';
2
+
1
3
  declare const axiosClient: {
2
- init(config: any): {
4
+ init(config: EnvConfig): {
3
5
  get: (url: string, headers?: any) => Promise<any>;
4
6
  post: (url: string, body: any, headers?: any) => Promise<any>;
5
7
  post_excel: (url: string, body: any, headers?: any) => Promise<any>;
package/dist/configs.d.ts CHANGED
@@ -1,5 +1,7 @@
1
+ import { E as EnvConfig } from './environment-BSFa-Jcm.js';
2
+
1
3
  declare const axiosClient: {
2
- init(config: any): {
4
+ init(config: EnvConfig): {
3
5
  get: (url: string, headers?: any) => Promise<any>;
4
6
  post: (url: string, body: any, headers?: any) => Promise<any>;
5
7
  post_excel: (url: string, body: any, headers?: any) => Promise<any>;
package/dist/configs.js CHANGED
@@ -3179,7 +3179,6 @@ var import_jsx_runtime7 = require("react/jsx-runtime");
3179
3179
  // src/configs/axios-client.ts
3180
3180
  var axiosClient = {
3181
3181
  init(config) {
3182
- console.log("config", config);
3183
3182
  const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
3184
3183
  const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
3185
3184
  const db = config?.db;
@@ -3199,6 +3198,7 @@ var axiosClient = {
3199
3198
  });
3200
3199
  failedQueue = [];
3201
3200
  };
3201
+ console.log("config", config, service);
3202
3202
  const instance = import_axios.default.create({
3203
3203
  adapter: import_axios.default.defaults.adapter,
3204
3204
  baseURL: config?.baseUrl,
package/dist/configs.mjs CHANGED
@@ -3143,7 +3143,6 @@ import { Fragment as Fragment2, jsx as jsx7 } from "react/jsx-runtime";
3143
3143
  // src/configs/axios-client.ts
3144
3144
  var axiosClient = {
3145
3145
  init(config) {
3146
- console.log("config", config);
3147
3146
  const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
3148
3147
  const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
3149
3148
  const db = config?.db;
@@ -3163,6 +3162,7 @@ var axiosClient = {
3163
3162
  });
3164
3163
  failedQueue = [];
3165
3164
  };
3165
+ console.log("config", config, service);
3166
3166
  const instance = axios.create({
3167
3167
  adapter: axios.defaults.adapter,
3168
3168
  baseURL: config?.baseUrl,
@@ -0,0 +1,77 @@
1
+ declare const localStorageUtils: () => {
2
+ setToken: (access_token: string) => Promise<void>;
3
+ setRefreshToken: (refresh_token: string) => Promise<void>;
4
+ getAccessToken: () => Promise<string | null>;
5
+ getRefreshToken: () => Promise<string | null>;
6
+ clearToken: () => Promise<void>;
7
+ };
8
+ type LocalStorageUtilsType = ReturnType<typeof localStorageUtils>;
9
+
10
+ declare const sessionStorageUtils: () => {
11
+ getMenuFocus: () => IMenu;
12
+ setMenuFocus: (menuTree: IMenu) => void;
13
+ setActionData: (actData: any) => void;
14
+ getActionData: () => any | null;
15
+ getViewData: () => any | null;
16
+ setViewData: (viewData: any) => void;
17
+ getBrowserSession: () => string | null;
18
+ };
19
+ interface IMenu {
20
+ id: number | undefined;
21
+ service: string;
22
+ }
23
+ type SessionStorageUtilsType = ReturnType<typeof sessionStorageUtils>;
24
+
25
+ interface EnvConfig {
26
+ env?: any;
27
+ baseUrl: string;
28
+ requests?: any;
29
+ context?: {
30
+ uid?: number | null;
31
+ allowed_company_ids?: number[];
32
+ lang?: string;
33
+ tz?: string;
34
+ };
35
+ defaultCompany?: {
36
+ id?: number | null;
37
+ logo?: string;
38
+ secondary_color?: string;
39
+ primary_color?: string;
40
+ };
41
+ database?: string;
42
+ xNode?: string;
43
+ default_service?: string;
44
+ config?: any;
45
+ companies?: any[];
46
+ user?: any;
47
+ db?: string;
48
+ refreshTokenEndpoint?: string;
49
+ localStorageUtils?: LocalStorageUtilsType;
50
+ sessionStorageUtils?: SessionStorageUtilsType;
51
+ envFile?: any;
52
+ }
53
+ declare class EnvStore {
54
+ private state;
55
+ private emitter;
56
+ private localStorageUtil;
57
+ private sessionStorageUtil;
58
+ constructor(localStorageUtil?: LocalStorageUtilsType, sessionStorageUtil?: SessionStorageUtilsType);
59
+ getEnv(): EnvConfig;
60
+ onUpdate(callback: (env: EnvConfig) => void): void;
61
+ setupEnv(envConfig: Partial<EnvConfig>): EnvConfig;
62
+ setUid(uid: number): void;
63
+ setLang(lang: string): void;
64
+ setAllowCompanies(allowed_company_ids: number[]): void;
65
+ setCompanies(companies: any[]): void;
66
+ setDefaultCompany(defaultCompany: EnvConfig['defaultCompany']): void;
67
+ setUserInfo(user: any): void;
68
+ setConfig(config: any): void;
69
+ setEnvFile(envFile: any): void;
70
+ }
71
+ declare function initEnv({ localStorageUtils: localStorageUtil, sessionStorageUtils: sessionStorageUtil, }: {
72
+ localStorageUtils?: LocalStorageUtilsType;
73
+ sessionStorageUtils?: SessionStorageUtilsType;
74
+ }): EnvStore;
75
+ declare function getEnv(): any;
76
+
77
+ export { type EnvConfig as E, type LocalStorageUtilsType as L, type SessionStorageUtilsType as S, EnvStore as a, getEnv as g, initEnv as i };
@@ -0,0 +1,77 @@
1
+ declare const localStorageUtils: () => {
2
+ setToken: (access_token: string) => Promise<void>;
3
+ setRefreshToken: (refresh_token: string) => Promise<void>;
4
+ getAccessToken: () => Promise<string | null>;
5
+ getRefreshToken: () => Promise<string | null>;
6
+ clearToken: () => Promise<void>;
7
+ };
8
+ type LocalStorageUtilsType = ReturnType<typeof localStorageUtils>;
9
+
10
+ declare const sessionStorageUtils: () => {
11
+ getMenuFocus: () => IMenu;
12
+ setMenuFocus: (menuTree: IMenu) => void;
13
+ setActionData: (actData: any) => void;
14
+ getActionData: () => any | null;
15
+ getViewData: () => any | null;
16
+ setViewData: (viewData: any) => void;
17
+ getBrowserSession: () => string | null;
18
+ };
19
+ interface IMenu {
20
+ id: number | undefined;
21
+ service: string;
22
+ }
23
+ type SessionStorageUtilsType = ReturnType<typeof sessionStorageUtils>;
24
+
25
+ interface EnvConfig {
26
+ env?: any;
27
+ baseUrl: string;
28
+ requests?: any;
29
+ context?: {
30
+ uid?: number | null;
31
+ allowed_company_ids?: number[];
32
+ lang?: string;
33
+ tz?: string;
34
+ };
35
+ defaultCompany?: {
36
+ id?: number | null;
37
+ logo?: string;
38
+ secondary_color?: string;
39
+ primary_color?: string;
40
+ };
41
+ database?: string;
42
+ xNode?: string;
43
+ default_service?: string;
44
+ config?: any;
45
+ companies?: any[];
46
+ user?: any;
47
+ db?: string;
48
+ refreshTokenEndpoint?: string;
49
+ localStorageUtils?: LocalStorageUtilsType;
50
+ sessionStorageUtils?: SessionStorageUtilsType;
51
+ envFile?: any;
52
+ }
53
+ declare class EnvStore {
54
+ private state;
55
+ private emitter;
56
+ private localStorageUtil;
57
+ private sessionStorageUtil;
58
+ constructor(localStorageUtil?: LocalStorageUtilsType, sessionStorageUtil?: SessionStorageUtilsType);
59
+ getEnv(): EnvConfig;
60
+ onUpdate(callback: (env: EnvConfig) => void): void;
61
+ setupEnv(envConfig: Partial<EnvConfig>): EnvConfig;
62
+ setUid(uid: number): void;
63
+ setLang(lang: string): void;
64
+ setAllowCompanies(allowed_company_ids: number[]): void;
65
+ setCompanies(companies: any[]): void;
66
+ setDefaultCompany(defaultCompany: EnvConfig['defaultCompany']): void;
67
+ setUserInfo(user: any): void;
68
+ setConfig(config: any): void;
69
+ setEnvFile(envFile: any): void;
70
+ }
71
+ declare function initEnv({ localStorageUtils: localStorageUtil, sessionStorageUtils: sessionStorageUtil, }: {
72
+ localStorageUtils?: LocalStorageUtilsType;
73
+ sessionStorageUtils?: SessionStorageUtilsType;
74
+ }): EnvStore;
75
+ declare function getEnv(): any;
76
+
77
+ export { type EnvConfig as E, type LocalStorageUtilsType as L, type SessionStorageUtilsType as S, EnvStore as a, getEnv as g, initEnv as i };
@@ -1,52 +1 @@
1
- import { L as LocalStorageUtilsType, S as SessionStorageUtilsType } from './session-storage-DP3fkZ2Q.mjs';
2
-
3
- interface EnvConfig {
4
- baseUrl?: string;
5
- requests?: any;
6
- context?: {
7
- uid?: number | null;
8
- allowed_company_ids?: number[];
9
- lang?: string;
10
- tz?: string;
11
- };
12
- defaultCompany?: {
13
- id?: number | null;
14
- logo?: string;
15
- secondary_color?: string;
16
- primary_color?: string;
17
- };
18
- config?: any;
19
- companies?: any[];
20
- user?: any;
21
- db?: string;
22
- database?: string;
23
- refreshTokenEndpoint?: string;
24
- localStorageUtils?: LocalStorageUtilsType;
25
- sessionStorageUtils?: SessionStorageUtilsType;
26
- envFile?: any;
27
- }
28
- declare class EnvStore {
29
- private state;
30
- private emitter;
31
- private localStorageUtil;
32
- private sessionStorageUtil;
33
- constructor(localStorageUtil?: LocalStorageUtilsType, sessionStorageUtil?: SessionStorageUtilsType);
34
- getEnv(): EnvConfig;
35
- onUpdate(callback: (env: EnvConfig) => void): void;
36
- setupEnv(envConfig: Partial<EnvConfig>): EnvConfig;
37
- setUid(uid: number): void;
38
- setLang(lang: string): void;
39
- setAllowCompanies(allowed_company_ids: number[]): void;
40
- setCompanies(companies: any[]): void;
41
- setDefaultCompany(defaultCompany: EnvConfig['defaultCompany']): void;
42
- setUserInfo(user: any): void;
43
- setConfig(config: any): void;
44
- setEnvFile(envFile: any): void;
45
- }
46
- declare function initEnv({ localStorageUtils: localStorageUtil, sessionStorageUtils: sessionStorageUtil, }: {
47
- localStorageUtils?: LocalStorageUtilsType;
48
- sessionStorageUtils?: SessionStorageUtilsType;
49
- }): EnvStore;
50
- declare function getEnv(): any;
51
-
52
- export { EnvStore, getEnv, initEnv };
1
+ export { a as EnvStore, g as getEnv, i as initEnv } from './environment-BSFa-Jcm.mjs';
@@ -1,52 +1 @@
1
- import { L as LocalStorageUtilsType, S as SessionStorageUtilsType } from './session-storage-DP3fkZ2Q.js';
2
-
3
- interface EnvConfig {
4
- baseUrl?: string;
5
- requests?: any;
6
- context?: {
7
- uid?: number | null;
8
- allowed_company_ids?: number[];
9
- lang?: string;
10
- tz?: string;
11
- };
12
- defaultCompany?: {
13
- id?: number | null;
14
- logo?: string;
15
- secondary_color?: string;
16
- primary_color?: string;
17
- };
18
- config?: any;
19
- companies?: any[];
20
- user?: any;
21
- db?: string;
22
- database?: string;
23
- refreshTokenEndpoint?: string;
24
- localStorageUtils?: LocalStorageUtilsType;
25
- sessionStorageUtils?: SessionStorageUtilsType;
26
- envFile?: any;
27
- }
28
- declare class EnvStore {
29
- private state;
30
- private emitter;
31
- private localStorageUtil;
32
- private sessionStorageUtil;
33
- constructor(localStorageUtil?: LocalStorageUtilsType, sessionStorageUtil?: SessionStorageUtilsType);
34
- getEnv(): EnvConfig;
35
- onUpdate(callback: (env: EnvConfig) => void): void;
36
- setupEnv(envConfig: Partial<EnvConfig>): EnvConfig;
37
- setUid(uid: number): void;
38
- setLang(lang: string): void;
39
- setAllowCompanies(allowed_company_ids: number[]): void;
40
- setCompanies(companies: any[]): void;
41
- setDefaultCompany(defaultCompany: EnvConfig['defaultCompany']): void;
42
- setUserInfo(user: any): void;
43
- setConfig(config: any): void;
44
- setEnvFile(envFile: any): void;
45
- }
46
- declare function initEnv({ localStorageUtils: localStorageUtil, sessionStorageUtils: sessionStorageUtil, }: {
47
- localStorageUtils?: LocalStorageUtilsType;
48
- sessionStorageUtils?: SessionStorageUtilsType;
49
- }): EnvStore;
50
- declare function getEnv(): any;
51
-
52
- export { EnvStore, getEnv, initEnv };
1
+ export { a as EnvStore, g as getEnv, i as initEnv } from './environment-BSFa-Jcm.js';
@@ -3181,7 +3181,6 @@ var import_jsx_runtime7 = require("react/jsx-runtime");
3181
3181
  // src/configs/axios-client.ts
3182
3182
  var axiosClient = {
3183
3183
  init(config) {
3184
- console.log("config", config);
3185
3184
  const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
3186
3185
  const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
3187
3186
  const db = config?.db;
@@ -3201,6 +3200,7 @@ var axiosClient = {
3201
3200
  });
3202
3201
  failedQueue = [];
3203
3202
  };
3203
+ console.log("config", config, service);
3204
3204
  const instance = import_axios.default.create({
3205
3205
  adapter: import_axios.default.defaults.adapter,
3206
3206
  baseURL: config?.baseUrl,
@@ -3143,7 +3143,6 @@ import { Fragment as Fragment2, jsx as jsx7 } from "react/jsx-runtime";
3143
3143
  // src/configs/axios-client.ts
3144
3144
  var axiosClient = {
3145
3145
  init(config) {
3146
- console.log("config", config);
3147
3146
  const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
3148
3147
  const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
3149
3148
  const db = config?.db;
@@ -3163,6 +3162,7 @@ var axiosClient = {
3163
3162
  });
3164
3163
  failedQueue = [];
3165
3164
  };
3165
+ console.log("config", config, service);
3166
3166
  const instance = axios.create({
3167
3167
  adapter: axios.defaults.adapter,
3168
3168
  baseURL: config?.baseUrl,
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { L as LocalStorageUtilsType, S as SessionStorageUtilsType } from './session-storage-DP3fkZ2Q.mjs';
3
+ import { L as LocalStorageUtilsType, S as SessionStorageUtilsType, E as EnvConfig } from './environment-BSFa-Jcm.mjs';
4
4
  import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange, useGenSerialNumber, useGetOrderLine, useGetProductImage, useAddEntity, useCheckPayment } from './hooks.mjs';
5
5
  import '@tanstack/react-query';
6
6
  import './view-type-xxw9OeSR.mjs';
@@ -19,33 +19,6 @@ declare const VersionGate: ({ children }: {
19
19
  children: ReactNode;
20
20
  }) => react_jsx_runtime.JSX.Element | null;
21
21
 
22
- interface EnvConfig {
23
- env?: any;
24
- baseUrl?: string;
25
- requests?: any;
26
- default_service?: string;
27
- context?: {
28
- uid?: number | null;
29
- allowed_company_ids?: number[];
30
- lang?: string;
31
- tz?: string;
32
- };
33
- defaultCompany?: {
34
- id?: number | null;
35
- logo?: string;
36
- secondary_color?: string;
37
- primary_color?: string;
38
- };
39
- config?: any;
40
- companies?: any[];
41
- user?: any;
42
- db?: string;
43
- refreshTokenEndpoint?: string;
44
- localStorageUtils?: LocalStorageUtilsType;
45
- sessionStorageUtils?: SessionStorageUtilsType;
46
- envFile?: any;
47
- xNode?: string;
48
- }
49
22
  declare function EnvProvider({ children, localStorageUtils: localStorageUtil, sessionStorageUtils: sessionStorageUtil, }: {
50
23
  children: React.ReactNode;
51
24
  localStorageUtils?: LocalStorageUtilsType;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { L as LocalStorageUtilsType, S as SessionStorageUtilsType } from './session-storage-DP3fkZ2Q.js';
3
+ import { L as LocalStorageUtilsType, S as SessionStorageUtilsType, E as EnvConfig } from './environment-BSFa-Jcm.js';
4
4
  import { useForgotPassword, useForgotPasswordSSO, useGetProvider, useIsValidToken, useLoginCredential, useLoginSocial, useResetPassword, useResetPasswordSSO, useUpdatePassword, useLogout, useGetAccessByCode, useValidateActionToken, useGetCompanyInfo, useGetCurrentCompany, useGetListCompany, useExecuteImport, useExportExcel, useGetFieldExport, useGetFileExcel, useParsePreview, useUploadFileExcel, useUploadIdFile, useChangeStatus, useDeleteComment, useGetComment, useGetFormView, useGetImage, useSendComment, useUploadImage, useDelete, useGetAll, useGetConversionRate, useGetCurrency, useGetDetail, useGetFieldOnChange, useGetListMyBankAccount, useModel, useOdooDataTransform, useOnChangeForm, useSave, useGetProfile, useGetUser, useSwitchLocale, useButton, useDuplicateRecord, useGet2FAMethods, useGetActionDetail, useGetCalendar, useGetGroups, useGetListData, useGetMenu, useGetPrintReport, useGetProGressBar, useGetResequence, useGetSelection, useGetView, useLoadAction, useLoadMessage, usePrint, useRemoveRow, useRunAction, useSignInSSO, useVerify2FA, useGrantAccess, useRemoveTotpSetup, useRequestSetupTotp, useSettingsWebRead2fa, useVerifyTotp, useUploadFile, useCreateEntity, useGetASession, useCreateSession, useDeleteEntity, useGetList, useGetPos, useHandleClosingSession, useManageSession, useUpdateClosedSession, useUpdateEntity, useLoadDataPosSession, useManageOnChange, useGenSerialNumber, useGetOrderLine, useGetProductImage, useAddEntity, useCheckPayment } from './hooks.js';
5
5
  import '@tanstack/react-query';
6
6
  import './view-type-xxw9OeSR.js';
@@ -19,33 +19,6 @@ declare const VersionGate: ({ children }: {
19
19
  children: ReactNode;
20
20
  }) => react_jsx_runtime.JSX.Element | null;
21
21
 
22
- interface EnvConfig {
23
- env?: any;
24
- baseUrl?: string;
25
- requests?: any;
26
- default_service?: string;
27
- context?: {
28
- uid?: number | null;
29
- allowed_company_ids?: number[];
30
- lang?: string;
31
- tz?: string;
32
- };
33
- defaultCompany?: {
34
- id?: number | null;
35
- logo?: string;
36
- secondary_color?: string;
37
- primary_color?: string;
38
- };
39
- config?: any;
40
- companies?: any[];
41
- user?: any;
42
- db?: string;
43
- refreshTokenEndpoint?: string;
44
- localStorageUtils?: LocalStorageUtilsType;
45
- sessionStorageUtils?: SessionStorageUtilsType;
46
- envFile?: any;
47
- xNode?: string;
48
- }
49
22
  declare function EnvProvider({ children, localStorageUtils: localStorageUtil, sessionStorageUtils: sessionStorageUtil, }: {
50
23
  children: React.ReactNode;
51
24
  localStorageUtils?: LocalStorageUtilsType;
package/dist/provider.js CHANGED
@@ -5292,7 +5292,6 @@ var sessionStorageUtils = () => {
5292
5292
  // src/configs/axios-client.ts
5293
5293
  var axiosClient = {
5294
5294
  init(config) {
5295
- console.log("config", config);
5296
5295
  const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
5297
5296
  const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
5298
5297
  const db = config?.db;
@@ -5312,6 +5311,7 @@ var axiosClient = {
5312
5311
  });
5313
5312
  failedQueue = [];
5314
5313
  };
5314
+ console.log("config", config, service);
5315
5315
  const instance = import_axios.default.create({
5316
5316
  adapter: import_axios.default.defaults.adapter,
5317
5317
  baseURL: config?.baseUrl,
package/dist/provider.mjs CHANGED
@@ -5249,7 +5249,6 @@ var sessionStorageUtils = () => {
5249
5249
  // src/configs/axios-client.ts
5250
5250
  var axiosClient = {
5251
5251
  init(config) {
5252
- console.log("config", config);
5253
5252
  const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
5254
5253
  const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
5255
5254
  const db = config?.db;
@@ -5269,6 +5268,7 @@ var axiosClient = {
5269
5268
  });
5270
5269
  failedQueue = [];
5271
5270
  };
5271
+ console.log("config", config, service);
5272
5272
  const instance = axios.create({
5273
5273
  adapter: axios.defaults.adapter,
5274
5274
  baseURL: config?.baseUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "2.9.6",
3
+ "version": "2.9.8",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -1,25 +0,0 @@
1
- declare const localStorageUtils: () => {
2
- setToken: (access_token: string) => Promise<void>;
3
- setRefreshToken: (refresh_token: string) => Promise<void>;
4
- getAccessToken: () => Promise<string | null>;
5
- getRefreshToken: () => Promise<string | null>;
6
- clearToken: () => Promise<void>;
7
- };
8
- type LocalStorageUtilsType = ReturnType<typeof localStorageUtils>;
9
-
10
- declare const sessionStorageUtils: () => {
11
- getMenuFocus: () => IMenu;
12
- setMenuFocus: (menuTree: IMenu) => void;
13
- setActionData: (actData: any) => void;
14
- getActionData: () => any | null;
15
- getViewData: () => any | null;
16
- setViewData: (viewData: any) => void;
17
- getBrowserSession: () => string | null;
18
- };
19
- interface IMenu {
20
- id: number | undefined;
21
- service: string;
22
- }
23
- type SessionStorageUtilsType = ReturnType<typeof sessionStorageUtils>;
24
-
25
- export type { LocalStorageUtilsType as L, SessionStorageUtilsType as S };
@@ -1,25 +0,0 @@
1
- declare const localStorageUtils: () => {
2
- setToken: (access_token: string) => Promise<void>;
3
- setRefreshToken: (refresh_token: string) => Promise<void>;
4
- getAccessToken: () => Promise<string | null>;
5
- getRefreshToken: () => Promise<string | null>;
6
- clearToken: () => Promise<void>;
7
- };
8
- type LocalStorageUtilsType = ReturnType<typeof localStorageUtils>;
9
-
10
- declare const sessionStorageUtils: () => {
11
- getMenuFocus: () => IMenu;
12
- setMenuFocus: (menuTree: IMenu) => void;
13
- setActionData: (actData: any) => void;
14
- getActionData: () => any | null;
15
- getViewData: () => any | null;
16
- setViewData: (viewData: any) => void;
17
- getBrowserSession: () => string | null;
18
- };
19
- interface IMenu {
20
- id: number | undefined;
21
- service: string;
22
- }
23
- type SessionStorageUtilsType = ReturnType<typeof sessionStorageUtils>;
24
-
25
- export type { LocalStorageUtilsType as L, SessionStorageUtilsType as S };