@fctc/interface-logic 2.3.1 → 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 +7 -28
- package/dist/hooks.d.ts +7 -28
- package/dist/hooks.js +196 -361
- package/dist/hooks.mjs +166 -329
- package/dist/provider.d.mts +10 -12
- package/dist/provider.d.ts +10 -12
- package/dist/provider.js +216 -409
- package/dist/provider.mjs +186 -379
- package/dist/services.d.mts +16 -33
- package/dist/services.d.ts +16 -33
- package/dist/services.js +126 -248
- package/dist/services.mjs +111 -233
- 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,15 +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
|
-
saveFile: ({ model, idForm, idFile, context, }: {
|
|
150
|
-
model: string;
|
|
151
|
-
idForm: any;
|
|
152
|
-
idFile: any;
|
|
153
|
-
context: any;
|
|
154
|
-
}) => Promise<any>;
|
|
155
141
|
};
|
|
156
142
|
|
|
157
143
|
type TGetGroupsParams = {
|
|
@@ -177,21 +163,19 @@ declare function useModelService(): {
|
|
|
177
163
|
}) => Promise<any>;
|
|
178
164
|
getCurrency: () => Promise<any>;
|
|
179
165
|
getConversionRate: () => Promise<any>;
|
|
180
|
-
getAll: ({ data
|
|
166
|
+
getAll: ({ data }: {
|
|
181
167
|
data: any;
|
|
182
|
-
service?: string;
|
|
183
168
|
}) => Promise<any>;
|
|
184
169
|
getListCalendar: ({ data }: {
|
|
185
170
|
data: any;
|
|
186
171
|
}) => Promise<any>;
|
|
187
172
|
getList: ({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams) => Promise<any>;
|
|
188
|
-
getDetail: ({ ids, model, specification, context
|
|
189
|
-
save: ({ model, ids, data, specification, context, path,
|
|
190
|
-
deleteApi: ({ ids, model
|
|
191
|
-
onChange: ({ ids, model, object, specification, context, fieldChange,
|
|
192
|
-
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 }: {
|
|
193
178
|
model: string;
|
|
194
|
-
service?: string;
|
|
195
179
|
}) => Promise<any>;
|
|
196
180
|
parseORMOdoo: (data: Record<string, any>) => {
|
|
197
181
|
[x: string]: any;
|
|
@@ -211,7 +195,7 @@ declare function useUserService(): {
|
|
|
211
195
|
};
|
|
212
196
|
|
|
213
197
|
declare function useViewService(): {
|
|
214
|
-
getView: ({ model, views, context, options, aid,
|
|
198
|
+
getView: ({ model, views, context, options, aid, }: GetViewParams) => Promise<any>;
|
|
215
199
|
getMenu: (context: any, specification: any) => Promise<any>;
|
|
216
200
|
getActionDetail: (aid: number, context: any) => Promise<any>;
|
|
217
201
|
getResequence: ({ model, ids, context, offset, }: {
|
|
@@ -220,9 +204,8 @@ declare function useViewService(): {
|
|
|
220
204
|
context: any;
|
|
221
205
|
offset: any;
|
|
222
206
|
}) => Promise<any>;
|
|
223
|
-
getSelectionItem: ({ data
|
|
207
|
+
getSelectionItem: ({ data }: {
|
|
224
208
|
data: GetSelectionType;
|
|
225
|
-
service?: string;
|
|
226
209
|
}) => Promise<any>;
|
|
227
210
|
loadMessages: () => Promise<any>;
|
|
228
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,15 +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
|
-
saveFile: ({ model, idForm, idFile, context, }: {
|
|
150
|
-
model: string;
|
|
151
|
-
idForm: any;
|
|
152
|
-
idFile: any;
|
|
153
|
-
context: any;
|
|
154
|
-
}) => Promise<any>;
|
|
155
141
|
};
|
|
156
142
|
|
|
157
143
|
type TGetGroupsParams = {
|
|
@@ -177,21 +163,19 @@ declare function useModelService(): {
|
|
|
177
163
|
}) => Promise<any>;
|
|
178
164
|
getCurrency: () => Promise<any>;
|
|
179
165
|
getConversionRate: () => Promise<any>;
|
|
180
|
-
getAll: ({ data
|
|
166
|
+
getAll: ({ data }: {
|
|
181
167
|
data: any;
|
|
182
|
-
service?: string;
|
|
183
168
|
}) => Promise<any>;
|
|
184
169
|
getListCalendar: ({ data }: {
|
|
185
170
|
data: any;
|
|
186
171
|
}) => Promise<any>;
|
|
187
172
|
getList: ({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams) => Promise<any>;
|
|
188
|
-
getDetail: ({ ids, model, specification, context
|
|
189
|
-
save: ({ model, ids, data, specification, context, path,
|
|
190
|
-
deleteApi: ({ ids, model
|
|
191
|
-
onChange: ({ ids, model, object, specification, context, fieldChange,
|
|
192
|
-
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 }: {
|
|
193
178
|
model: string;
|
|
194
|
-
service?: string;
|
|
195
179
|
}) => Promise<any>;
|
|
196
180
|
parseORMOdoo: (data: Record<string, any>) => {
|
|
197
181
|
[x: string]: any;
|
|
@@ -211,7 +195,7 @@ declare function useUserService(): {
|
|
|
211
195
|
};
|
|
212
196
|
|
|
213
197
|
declare function useViewService(): {
|
|
214
|
-
getView: ({ model, views, context, options, aid,
|
|
198
|
+
getView: ({ model, views, context, options, aid, }: GetViewParams) => Promise<any>;
|
|
215
199
|
getMenu: (context: any, specification: any) => Promise<any>;
|
|
216
200
|
getActionDetail: (aid: number, context: any) => Promise<any>;
|
|
217
201
|
getResequence: ({ model, ids, context, offset, }: {
|
|
@@ -220,9 +204,8 @@ declare function useViewService(): {
|
|
|
220
204
|
context: any;
|
|
221
205
|
offset: any;
|
|
222
206
|
}) => Promise<any>;
|
|
223
|
-
getSelectionItem: ({ data
|
|
207
|
+
getSelectionItem: ({ data }: {
|
|
224
208
|
data: GetSelectionType;
|
|
225
|
-
service?: string;
|
|
226
209
|
}) => Promise<any>;
|
|
227
210
|
loadMessages: () => Promise<any>;
|
|
228
211
|
getVersion: () => Promise<any>;
|