@fctc/interface-logic 3.3.8 → 3.4.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.
package/dist/services.mjs CHANGED
@@ -2920,26 +2920,29 @@ import { useQuery as useQuery6 } from "@tanstack/react-query";
2920
2920
  // src/hooks/form/use-get-thread-messages.ts
2921
2921
  import { useQuery as useQuery7 } from "@tanstack/react-query";
2922
2922
 
2923
+ // src/hooks/form/use-get-external-tabs.ts
2924
+ import { useQuery as useQuery8 } from "@tanstack/react-query";
2925
+
2923
2926
  // src/hooks/model/use-delete.ts
2924
2927
  import { useMutation as useMutation28 } from "@tanstack/react-query";
2925
2928
 
2926
2929
  // src/hooks/model/use-get-all.ts
2927
- import { useQuery as useQuery8 } from "@tanstack/react-query";
2930
+ import { useQuery as useQuery9 } from "@tanstack/react-query";
2928
2931
 
2929
2932
  // src/hooks/model/use-get-conversion-rate.ts
2930
- import { useQuery as useQuery9 } from "@tanstack/react-query";
2933
+ import { useQuery as useQuery10 } from "@tanstack/react-query";
2931
2934
 
2932
2935
  // src/hooks/model/use-get-currency.ts
2933
- import { useQuery as useQuery10 } from "@tanstack/react-query";
2936
+ import { useQuery as useQuery11 } from "@tanstack/react-query";
2934
2937
 
2935
2938
  // src/hooks/model/use-get-detail.ts
2936
2939
  import { useMutation as useMutation29 } from "@tanstack/react-query";
2937
2940
 
2938
2941
  // src/hooks/model/use-get-field-onchange.ts
2939
- import { useQuery as useQuery11 } from "@tanstack/react-query";
2942
+ import { useQuery as useQuery12 } from "@tanstack/react-query";
2940
2943
 
2941
2944
  // src/hooks/model/use-get-list-my-bank-account.ts
2942
- import { useQuery as useQuery12 } from "@tanstack/react-query";
2945
+ import { useQuery as useQuery13 } from "@tanstack/react-query";
2943
2946
 
2944
2947
  // src/hooks/model/use-onchange-form.ts
2945
2948
  import { useMutation as useMutation30 } from "@tanstack/react-query";
@@ -2963,37 +2966,37 @@ import { useMutation as useMutation35 } from "@tanstack/react-query";
2963
2966
  import { useMutation as useMutation36 } from "@tanstack/react-query";
2964
2967
 
2965
2968
  // src/hooks/view/use-get-action-detail.ts
2966
- import { useQuery as useQuery13 } from "@tanstack/react-query";
2969
+ import { useQuery as useQuery14 } from "@tanstack/react-query";
2967
2970
 
2968
2971
  // src/hooks/view/use-get-calendar.ts
2969
- import { useQuery as useQuery14 } from "@tanstack/react-query";
2972
+ import { useQuery as useQuery15 } from "@tanstack/react-query";
2970
2973
 
2971
2974
  // src/hooks/view/use-get-groups.ts
2972
- import { useQuery as useQuery15 } from "@tanstack/react-query";
2975
+ import { useQuery as useQuery16 } from "@tanstack/react-query";
2973
2976
 
2974
2977
  // src/hooks/view/use-get-list-data.ts
2975
- import { useQuery as useQuery16 } from "@tanstack/react-query";
2978
+ import { useQuery as useQuery17 } from "@tanstack/react-query";
2976
2979
 
2977
2980
  // src/hooks/view/use-get-menu.ts
2978
- import { useQuery as useQuery17 } from "@tanstack/react-query";
2981
+ import { useQuery as useQuery18 } from "@tanstack/react-query";
2979
2982
 
2980
2983
  // src/hooks/view/use-get-print-report.ts
2981
2984
  import { useMutation as useMutation37 } from "@tanstack/react-query";
2982
2985
 
2983
2986
  // src/hooks/view/use-get-progress-bar.ts
2984
- import { useQuery as useQuery18 } from "@tanstack/react-query";
2987
+ import { useQuery as useQuery19 } from "@tanstack/react-query";
2985
2988
 
2986
2989
  // src/hooks/view/use-get-selection.ts
2987
- import { useQuery as useQuery19 } from "@tanstack/react-query";
2990
+ import { useQuery as useQuery20 } from "@tanstack/react-query";
2988
2991
 
2989
2992
  // src/hooks/view/use-get-view.ts
2990
- import { useQuery as useQuery20 } from "@tanstack/react-query";
2993
+ import { useQuery as useQuery21 } from "@tanstack/react-query";
2991
2994
 
2992
2995
  // src/hooks/view/use-load-action.ts
2993
2996
  import { useMutation as useMutation38 } from "@tanstack/react-query";
2994
2997
 
2995
2998
  // src/hooks/view/use-load-message.ts
2996
- import { useQuery as useQuery21 } from "@tanstack/react-query";
2999
+ import { useQuery as useQuery22 } from "@tanstack/react-query";
2997
3000
 
2998
3001
  // src/hooks/view/use-print.ts
2999
3002
  import { useMutation as useMutation39 } from "@tanstack/react-query";
@@ -3002,7 +3005,7 @@ import { useMutation as useMutation39 } from "@tanstack/react-query";
3002
3005
  import { useMutation as useMutation40 } from "@tanstack/react-query";
3003
3006
 
3004
3007
  // src/hooks/view/use-resequence.ts
3005
- import { useQuery as useQuery22 } from "@tanstack/react-query";
3008
+ import { useQuery as useQuery23 } from "@tanstack/react-query";
3006
3009
 
3007
3010
  // src/hooks/view/use-run-action.ts
3008
3011
  import { useMutation as useMutation41 } from "@tanstack/react-query";
@@ -4050,6 +4053,25 @@ function useFormService() {
4050
4053
  },
4051
4054
  [env]
4052
4055
  );
4056
+ const getExternalTab = useCallback6(
4057
+ async ({ method, context, service, xNode }) => {
4058
+ return env?.requests?.post(
4059
+ "/call" /* CALL_PATH */,
4060
+ {
4061
+ method,
4062
+ with_context: context
4063
+ },
4064
+ {
4065
+ headers: {
4066
+ "Content-Type": "application/json",
4067
+ ...xNode ? { "X-Node": xNode } : {}
4068
+ }
4069
+ },
4070
+ service
4071
+ );
4072
+ },
4073
+ [env]
4074
+ );
4053
4075
  return {
4054
4076
  getComment,
4055
4077
  sentComment,
@@ -4060,7 +4082,8 @@ function useFormService() {
4060
4082
  changeStatus,
4061
4083
  uploadFile,
4062
4084
  getThreadMessages,
4063
- getThreadData
4085
+ getThreadData,
4086
+ getExternalTab
4064
4087
  };
4065
4088
  }
4066
4089
 
package/dist/types.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-LCI2KPYD.mjs';
1
+ export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-DUiFtWlQ.mjs';
2
2
  export { B as BaseModelInit } from './base-model-type-DD8uZnDP.mjs';
3
3
 
4
4
  interface Config {
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-LCI2KPYD.js';
1
+ export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, c as GetSelectionType, f as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, d as SocialTokenBody, e as Specification, U as UpdatePasswordRequest, g as View, V as ViewData, u as updatePasswordBody } from './view-type-DUiFtWlQ.js';
2
2
  export { B as BaseModelInit } from './base-model-type-DD8uZnDP.js';
3
3
 
4
4
  interface Config {
@@ -109,6 +109,12 @@ interface TThreadData {
109
109
  request_list?: string[];
110
110
  with_context?: Record<string, any>;
111
111
  }
112
+ interface GetExternalTab {
113
+ method?: string;
114
+ context?: ContextApi;
115
+ service?: string;
116
+ xNode?: string;
117
+ }
112
118
 
113
119
  type View = [number | boolean, string];
114
120
  type Option = {
@@ -126,4 +132,4 @@ interface GetViewParams {
126
132
  xNode?: string;
127
133
  }
128
134
 
129
- export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, TThreadData as T, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, GetSelectionType as c, SocialTokenBody as d, Specification as e, GetViewParams as f, View as g, updatePasswordBody as u };
135
+ export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, TThreadData as T, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, GetSelectionType as c, SocialTokenBody as d, Specification as e, GetViewParams as f, View as g, GetExternalTab as h, updatePasswordBody as u };
@@ -109,6 +109,12 @@ interface TThreadData {
109
109
  request_list?: string[];
110
110
  with_context?: Record<string, any>;
111
111
  }
112
+ interface GetExternalTab {
113
+ method?: string;
114
+ context?: ContextApi;
115
+ service?: string;
116
+ xNode?: string;
117
+ }
112
118
 
113
119
  type View = [number | boolean, string];
114
120
  type Option = {
@@ -126,4 +132,4 @@ interface GetViewParams {
126
132
  xNode?: string;
127
133
  }
128
134
 
129
- export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, TThreadData as T, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, GetSelectionType as c, SocialTokenBody as d, Specification as e, GetViewParams as f, View as g, updatePasswordBody as u };
135
+ export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, TThreadData as T, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, GetSelectionType as c, SocialTokenBody as d, Specification as e, GetViewParams as f, View as g, GetExternalTab as h, updatePasswordBody as u };
package/package.json CHANGED
@@ -1,90 +1,90 @@
1
- {
2
- "name": "@fctc/interface-logic",
3
- "version": "3.3.8",
4
- "types": "dist/index.d.ts",
5
- "main": "dist/index.cjs",
6
- "module": "dist/index.mjs",
7
- "exports": {
8
- ".": {
9
- "types": "./dist/index.d.ts",
10
- "import": "./dist/index.mjs",
11
- "require": "./dist/index.cjs"
12
- },
13
- "./configs": {
14
- "types": "./dist/configs.d.ts",
15
- "import": "./dist/configs.mjs",
16
- "require": "./dist/configs.cjs"
17
- },
18
- "./constants": {
19
- "types": "./dist/constants.d.ts",
20
- "import": "./dist/constants.mjs",
21
- "require": "./dist/constants.cjs"
22
- },
23
- "./environment": {
24
- "types": "./dist/environment.d.ts",
25
- "import": "./dist/environment.mjs",
26
- "require": "./dist/environment.cjs"
27
- },
28
- "./hooks": {
29
- "types": "./dist/hooks.d.ts",
30
- "import": "./dist/hooks.mjs",
31
- "require": "./dist/hooks.cjs"
32
- },
33
- "./provider": {
34
- "types": "./dist/provider.d.ts",
35
- "import": "./dist/provider.mjs",
36
- "require": "./dist/provider.cjs"
37
- },
38
- "./services": {
39
- "types": "./dist/services.d.ts",
40
- "import": "./dist/services.mjs",
41
- "require": "./dist/services.cjs"
42
- },
43
- "./store": {
44
- "types": "./dist/store.d.ts",
45
- "import": "./dist/store.mjs",
46
- "require": "./dist/store.cjs"
47
- },
48
- "./utils": {
49
- "types": "./dist/utils.d.ts",
50
- "import": "./dist/utils.mjs",
51
- "require": "./dist/utils.cjs"
52
- },
53
- "./types": {
54
- "types": "./dist/types.d.ts",
55
- "import": "./dist/types.mjs",
56
- "require": "./dist/types.cjs"
57
- },
58
- "./models": {
59
- "types": "./dist/models.d.ts",
60
- "import": "./dist/models.mjs",
61
- "require": "./dist/models.cjs"
62
- }
63
- },
64
- "files": [
65
- "dist"
66
- ],
67
- "scripts": {
68
- "build": "tsup",
69
- "test": "jest"
70
- },
71
- "peerDependencies": {
72
- "react": "18.0.0",
73
- "@tanstack/react-query": "^5.83.0"
74
- },
75
- "dependencies": {
76
- "@reduxjs/toolkit": "^2.8.2",
77
- "@tanstack/react-query": "^5.83.0",
78
- "axios": "^1.11.0",
79
- "moment": "^2.30.1",
80
- "react-redux": "^9.2.0"
81
- },
82
- "devDependencies": {
83
- "@types/react": "^18.3.1",
84
- "react": "18.0.0",
85
- "jest": "^29.7.0",
86
- "tsup": "^8.0.0",
87
- "typescript": "^5.8.2"
88
- },
89
- "packageManager": "yarn@1.22.0"
90
- }
1
+ {
2
+ "name": "@fctc/interface-logic",
3
+ "version": "3.4.0",
4
+ "types": "dist/index.d.ts",
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.mjs",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.mjs",
11
+ "require": "./dist/index.cjs"
12
+ },
13
+ "./configs": {
14
+ "types": "./dist/configs.d.ts",
15
+ "import": "./dist/configs.mjs",
16
+ "require": "./dist/configs.cjs"
17
+ },
18
+ "./constants": {
19
+ "types": "./dist/constants.d.ts",
20
+ "import": "./dist/constants.mjs",
21
+ "require": "./dist/constants.cjs"
22
+ },
23
+ "./environment": {
24
+ "types": "./dist/environment.d.ts",
25
+ "import": "./dist/environment.mjs",
26
+ "require": "./dist/environment.cjs"
27
+ },
28
+ "./hooks": {
29
+ "types": "./dist/hooks.d.ts",
30
+ "import": "./dist/hooks.mjs",
31
+ "require": "./dist/hooks.cjs"
32
+ },
33
+ "./provider": {
34
+ "types": "./dist/provider.d.ts",
35
+ "import": "./dist/provider.mjs",
36
+ "require": "./dist/provider.cjs"
37
+ },
38
+ "./services": {
39
+ "types": "./dist/services.d.ts",
40
+ "import": "./dist/services.mjs",
41
+ "require": "./dist/services.cjs"
42
+ },
43
+ "./store": {
44
+ "types": "./dist/store.d.ts",
45
+ "import": "./dist/store.mjs",
46
+ "require": "./dist/store.cjs"
47
+ },
48
+ "./utils": {
49
+ "types": "./dist/utils.d.ts",
50
+ "import": "./dist/utils.mjs",
51
+ "require": "./dist/utils.cjs"
52
+ },
53
+ "./types": {
54
+ "types": "./dist/types.d.ts",
55
+ "import": "./dist/types.mjs",
56
+ "require": "./dist/types.cjs"
57
+ },
58
+ "./models": {
59
+ "types": "./dist/models.d.ts",
60
+ "import": "./dist/models.mjs",
61
+ "require": "./dist/models.cjs"
62
+ }
63
+ },
64
+ "files": [
65
+ "dist"
66
+ ],
67
+ "scripts": {
68
+ "build": "tsup",
69
+ "test": "jest"
70
+ },
71
+ "peerDependencies": {
72
+ "react": "18.0.0",
73
+ "@tanstack/react-query": "^5.83.0"
74
+ },
75
+ "dependencies": {
76
+ "@reduxjs/toolkit": "^2.8.2",
77
+ "@tanstack/react-query": "^5.83.0",
78
+ "axios": "^1.11.0",
79
+ "moment": "^2.30.1",
80
+ "react-redux": "^9.2.0"
81
+ },
82
+ "devDependencies": {
83
+ "@types/react": "^18.3.1",
84
+ "react": "18.0.0",
85
+ "jest": "^29.7.0",
86
+ "tsup": "^8.0.0",
87
+ "typescript": "^5.8.2"
88
+ },
89
+ "packageManager": "yarn@1.22.0"
90
+ }