@fctc/interface-logic 2.3.2 → 2.3.3
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/configs.d.mts +6 -6
- package/dist/configs.d.ts +6 -6
- package/dist/configs.js +18 -48
- package/dist/configs.mjs +18 -48
- package/dist/constants.d.mts +1 -3
- package/dist/constants.d.ts +1 -3
- package/dist/constants.js +1 -3
- package/dist/constants.mjs +1 -3
- package/dist/environment.js +18 -48
- package/dist/environment.mjs +18 -48
- package/dist/hooks.d.mts +8 -22
- package/dist/hooks.d.ts +8 -22
- package/dist/hooks.js +201 -321
- package/dist/hooks.mjs +172 -291
- package/dist/provider.d.mts +3 -5
- package/dist/provider.d.ts +3 -5
- package/dist/provider.js +221 -370
- package/dist/provider.mjs +192 -341
- package/dist/services.d.mts +17 -28
- package/dist/services.d.ts +17 -28
- package/dist/services.js +128 -218
- package/dist/services.mjs +114 -204
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils.d.mts +2 -1
- package/dist/utils.d.ts +2 -1
- package/dist/utils.js +3 -2
- package/dist/utils.mjs +3 -2
- package/dist/{view-type-p4JdAOsz.d.mts → view-type-BGJfDe73.d.mts} +0 -5
- package/dist/{view-type-p4JdAOsz.d.ts → view-type-BGJfDe73.d.ts} +0 -5
- package/package.json +85 -85
package/dist/services.d.mts
CHANGED
|
@@ -1,29 +1,25 @@
|
|
|
1
|
-
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-
|
|
1
|
+
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-BGJfDe73.mjs';
|
|
2
2
|
|
|
3
3
|
declare function useActionService(): {
|
|
4
|
-
loadAction: ({ idAction, context,
|
|
4
|
+
loadAction: ({ idAction, context, }: {
|
|
5
5
|
idAction: number;
|
|
6
6
|
context: ContextApi;
|
|
7
|
-
service?: string;
|
|
8
7
|
}) => Promise<any>;
|
|
9
|
-
callButton: ({ model, ids, context, method,
|
|
8
|
+
callButton: ({ model, ids, context, method, }: {
|
|
10
9
|
model: string;
|
|
11
10
|
ids: Record<string, any>[] | any;
|
|
12
11
|
context: ContextApi;
|
|
13
12
|
method: any;
|
|
14
|
-
service?: string;
|
|
15
13
|
}) => Promise<any>;
|
|
16
|
-
removeRows: ({ model, ids, context,
|
|
14
|
+
removeRows: ({ model, ids, context, }: {
|
|
17
15
|
model: string;
|
|
18
16
|
ids: Record<string, any>[] | any;
|
|
19
17
|
context: ContextApi;
|
|
20
|
-
service?: string;
|
|
21
18
|
}) => Promise<any>;
|
|
22
|
-
duplicateRecord: ({ model, id, context,
|
|
19
|
+
duplicateRecord: ({ model, id, context, }: {
|
|
23
20
|
model: string;
|
|
24
21
|
id: any;
|
|
25
22
|
context: ContextApi;
|
|
26
|
-
service?: string;
|
|
27
23
|
}) => Promise<any>;
|
|
28
24
|
getPrintReportName: ({ id }: {
|
|
29
25
|
id: number;
|
|
@@ -33,10 +29,9 @@ declare function useActionService(): {
|
|
|
33
29
|
report: any;
|
|
34
30
|
db: any;
|
|
35
31
|
}) => Promise<any>;
|
|
36
|
-
runAction: ({ idAction, context,
|
|
32
|
+
runAction: ({ idAction, context, }: {
|
|
37
33
|
idAction: number;
|
|
38
34
|
context: ContextApi;
|
|
39
|
-
service?: string;
|
|
40
35
|
}) => Promise<any>;
|
|
41
36
|
};
|
|
42
37
|
|
|
@@ -56,7 +51,7 @@ declare function useAuthService(): {
|
|
|
56
51
|
}) => Promise<any>;
|
|
57
52
|
updatePassword: (data: UpdatePasswordRequest, token: string | null) => Promise<any>;
|
|
58
53
|
isValidToken: (token: string | null) => Promise<any>;
|
|
59
|
-
isValidActionToken: (actionToken: string | null) => Promise<any>;
|
|
54
|
+
isValidActionToken: (actionToken: string | null, path: string) => Promise<any>;
|
|
60
55
|
loginSocial: ({ db, state, access_token, }: {
|
|
61
56
|
db: string;
|
|
62
57
|
state: object;
|
|
@@ -73,7 +68,7 @@ declare function useCompanyService(): {
|
|
|
73
68
|
};
|
|
74
69
|
|
|
75
70
|
declare function useExcelService(): {
|
|
76
|
-
|
|
71
|
+
uploadFile: ({ formData }: {
|
|
77
72
|
formData: any;
|
|
78
73
|
}) => Promise<any>;
|
|
79
74
|
uploadIdFile: ({ formData }: {
|
|
@@ -143,9 +138,6 @@ declare function useFormService(): {
|
|
|
143
138
|
data: TFormView;
|
|
144
139
|
}) => Promise<any>;
|
|
145
140
|
changeStatus: ({ data }: any) => Promise<any>;
|
|
146
|
-
uploadFile: ({ formData }: {
|
|
147
|
-
formData: any;
|
|
148
|
-
}) => Promise<any>;
|
|
149
141
|
};
|
|
150
142
|
|
|
151
143
|
type TGetGroupsParams = {
|
|
@@ -171,21 +163,19 @@ declare function useModelService(): {
|
|
|
171
163
|
}) => Promise<any>;
|
|
172
164
|
getCurrency: () => Promise<any>;
|
|
173
165
|
getConversionRate: () => Promise<any>;
|
|
174
|
-
getAll: ({ data
|
|
166
|
+
getAll: ({ data }: {
|
|
175
167
|
data: any;
|
|
176
|
-
service?: string;
|
|
177
168
|
}) => Promise<any>;
|
|
178
169
|
getListCalendar: ({ data }: {
|
|
179
170
|
data: any;
|
|
180
171
|
}) => Promise<any>;
|
|
181
172
|
getList: ({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams) => Promise<any>;
|
|
182
|
-
getDetail: ({ ids, model, specification, context
|
|
183
|
-
save: ({ model, ids, data, specification, context, path,
|
|
184
|
-
deleteApi: ({ ids, model
|
|
185
|
-
onChange: ({ ids, model, object, specification, context, fieldChange,
|
|
186
|
-
getListFieldsOnchange: ({ model
|
|
173
|
+
getDetail: ({ ids, model, specification, context }: GetDetailParams) => Promise<any>;
|
|
174
|
+
save: ({ model, ids, data, specification, context, path, }: SaveParams) => Promise<any>;
|
|
175
|
+
deleteApi: ({ ids, model }: DeleteParams) => Promise<any>;
|
|
176
|
+
onChange: ({ ids, model, object, specification, context, fieldChange, }: OnChangeParams) => Promise<any>;
|
|
177
|
+
getListFieldsOnchange: ({ model }: {
|
|
187
178
|
model: string;
|
|
188
|
-
service?: string;
|
|
189
179
|
}) => Promise<any>;
|
|
190
180
|
parseORMOdoo: (data: Record<string, any>) => {
|
|
191
181
|
[x: string]: any;
|
|
@@ -205,8 +195,8 @@ declare function useUserService(): {
|
|
|
205
195
|
};
|
|
206
196
|
|
|
207
197
|
declare function useViewService(): {
|
|
208
|
-
getView: ({ model, views, context, options, aid,
|
|
209
|
-
getMenu: (context: any, specification: any
|
|
198
|
+
getView: ({ model, views, context, options, aid, }: GetViewParams) => Promise<any>;
|
|
199
|
+
getMenu: (context: any, specification: any) => Promise<any>;
|
|
210
200
|
getActionDetail: (aid: number, context: any) => Promise<any>;
|
|
211
201
|
getResequence: ({ model, ids, context, offset, }: {
|
|
212
202
|
model: string;
|
|
@@ -214,9 +204,8 @@ declare function useViewService(): {
|
|
|
214
204
|
context: any;
|
|
215
205
|
offset: any;
|
|
216
206
|
}) => Promise<any>;
|
|
217
|
-
getSelectionItem: ({ data
|
|
207
|
+
getSelectionItem: ({ data }: {
|
|
218
208
|
data: GetSelectionType;
|
|
219
|
-
service?: string;
|
|
220
209
|
}) => Promise<any>;
|
|
221
210
|
loadMessages: () => Promise<any>;
|
|
222
211
|
getVersion: () => Promise<any>;
|
package/dist/services.d.ts
CHANGED
|
@@ -1,29 +1,25 @@
|
|
|
1
|
-
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-
|
|
1
|
+
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, f as GetViewParams, c as GetSelectionType } from './view-type-BGJfDe73.js';
|
|
2
2
|
|
|
3
3
|
declare function useActionService(): {
|
|
4
|
-
loadAction: ({ idAction, context,
|
|
4
|
+
loadAction: ({ idAction, context, }: {
|
|
5
5
|
idAction: number;
|
|
6
6
|
context: ContextApi;
|
|
7
|
-
service?: string;
|
|
8
7
|
}) => Promise<any>;
|
|
9
|
-
callButton: ({ model, ids, context, method,
|
|
8
|
+
callButton: ({ model, ids, context, method, }: {
|
|
10
9
|
model: string;
|
|
11
10
|
ids: Record<string, any>[] | any;
|
|
12
11
|
context: ContextApi;
|
|
13
12
|
method: any;
|
|
14
|
-
service?: string;
|
|
15
13
|
}) => Promise<any>;
|
|
16
|
-
removeRows: ({ model, ids, context,
|
|
14
|
+
removeRows: ({ model, ids, context, }: {
|
|
17
15
|
model: string;
|
|
18
16
|
ids: Record<string, any>[] | any;
|
|
19
17
|
context: ContextApi;
|
|
20
|
-
service?: string;
|
|
21
18
|
}) => Promise<any>;
|
|
22
|
-
duplicateRecord: ({ model, id, context,
|
|
19
|
+
duplicateRecord: ({ model, id, context, }: {
|
|
23
20
|
model: string;
|
|
24
21
|
id: any;
|
|
25
22
|
context: ContextApi;
|
|
26
|
-
service?: string;
|
|
27
23
|
}) => Promise<any>;
|
|
28
24
|
getPrintReportName: ({ id }: {
|
|
29
25
|
id: number;
|
|
@@ -33,10 +29,9 @@ declare function useActionService(): {
|
|
|
33
29
|
report: any;
|
|
34
30
|
db: any;
|
|
35
31
|
}) => Promise<any>;
|
|
36
|
-
runAction: ({ idAction, context,
|
|
32
|
+
runAction: ({ idAction, context, }: {
|
|
37
33
|
idAction: number;
|
|
38
34
|
context: ContextApi;
|
|
39
|
-
service?: string;
|
|
40
35
|
}) => Promise<any>;
|
|
41
36
|
};
|
|
42
37
|
|
|
@@ -56,7 +51,7 @@ declare function useAuthService(): {
|
|
|
56
51
|
}) => Promise<any>;
|
|
57
52
|
updatePassword: (data: UpdatePasswordRequest, token: string | null) => Promise<any>;
|
|
58
53
|
isValidToken: (token: string | null) => Promise<any>;
|
|
59
|
-
isValidActionToken: (actionToken: string | null) => Promise<any>;
|
|
54
|
+
isValidActionToken: (actionToken: string | null, path: string) => Promise<any>;
|
|
60
55
|
loginSocial: ({ db, state, access_token, }: {
|
|
61
56
|
db: string;
|
|
62
57
|
state: object;
|
|
@@ -73,7 +68,7 @@ declare function useCompanyService(): {
|
|
|
73
68
|
};
|
|
74
69
|
|
|
75
70
|
declare function useExcelService(): {
|
|
76
|
-
|
|
71
|
+
uploadFile: ({ formData }: {
|
|
77
72
|
formData: any;
|
|
78
73
|
}) => Promise<any>;
|
|
79
74
|
uploadIdFile: ({ formData }: {
|
|
@@ -143,9 +138,6 @@ declare function useFormService(): {
|
|
|
143
138
|
data: TFormView;
|
|
144
139
|
}) => Promise<any>;
|
|
145
140
|
changeStatus: ({ data }: any) => Promise<any>;
|
|
146
|
-
uploadFile: ({ formData }: {
|
|
147
|
-
formData: any;
|
|
148
|
-
}) => Promise<any>;
|
|
149
141
|
};
|
|
150
142
|
|
|
151
143
|
type TGetGroupsParams = {
|
|
@@ -171,21 +163,19 @@ declare function useModelService(): {
|
|
|
171
163
|
}) => Promise<any>;
|
|
172
164
|
getCurrency: () => Promise<any>;
|
|
173
165
|
getConversionRate: () => Promise<any>;
|
|
174
|
-
getAll: ({ data
|
|
166
|
+
getAll: ({ data }: {
|
|
175
167
|
data: any;
|
|
176
|
-
service?: string;
|
|
177
168
|
}) => Promise<any>;
|
|
178
169
|
getListCalendar: ({ data }: {
|
|
179
170
|
data: any;
|
|
180
171
|
}) => Promise<any>;
|
|
181
172
|
getList: ({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams) => Promise<any>;
|
|
182
|
-
getDetail: ({ ids, model, specification, context
|
|
183
|
-
save: ({ model, ids, data, specification, context, path,
|
|
184
|
-
deleteApi: ({ ids, model
|
|
185
|
-
onChange: ({ ids, model, object, specification, context, fieldChange,
|
|
186
|
-
getListFieldsOnchange: ({ model
|
|
173
|
+
getDetail: ({ ids, model, specification, context }: GetDetailParams) => Promise<any>;
|
|
174
|
+
save: ({ model, ids, data, specification, context, path, }: SaveParams) => Promise<any>;
|
|
175
|
+
deleteApi: ({ ids, model }: DeleteParams) => Promise<any>;
|
|
176
|
+
onChange: ({ ids, model, object, specification, context, fieldChange, }: OnChangeParams) => Promise<any>;
|
|
177
|
+
getListFieldsOnchange: ({ model }: {
|
|
187
178
|
model: string;
|
|
188
|
-
service?: string;
|
|
189
179
|
}) => Promise<any>;
|
|
190
180
|
parseORMOdoo: (data: Record<string, any>) => {
|
|
191
181
|
[x: string]: any;
|
|
@@ -205,8 +195,8 @@ declare function useUserService(): {
|
|
|
205
195
|
};
|
|
206
196
|
|
|
207
197
|
declare function useViewService(): {
|
|
208
|
-
getView: ({ model, views, context, options, aid,
|
|
209
|
-
getMenu: (context: any, specification: any
|
|
198
|
+
getView: ({ model, views, context, options, aid, }: GetViewParams) => Promise<any>;
|
|
199
|
+
getMenu: (context: any, specification: any) => Promise<any>;
|
|
210
200
|
getActionDetail: (aid: number, context: any) => Promise<any>;
|
|
211
201
|
getResequence: ({ model, ids, context, offset, }: {
|
|
212
202
|
model: string;
|
|
@@ -214,9 +204,8 @@ declare function useViewService(): {
|
|
|
214
204
|
context: any;
|
|
215
205
|
offset: any;
|
|
216
206
|
}) => Promise<any>;
|
|
217
|
-
getSelectionItem: ({ data
|
|
207
|
+
getSelectionItem: ({ data }: {
|
|
218
208
|
data: GetSelectionType;
|
|
219
|
-
service?: string;
|
|
220
209
|
}) => Promise<any>;
|
|
221
210
|
loadMessages: () => Promise<any>;
|
|
222
211
|
getVersion: () => Promise<any>;
|