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