@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.
@@ -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-p4JdAOsz.mjs';
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, service, }: {
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, service, }: {
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, service, }: {
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, service, }: {
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, service, }: {
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
- uploadFileExcel: ({ formData }: {
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, service }: {
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, service, }: GetDetailParams) => Promise<any>;
189
- save: ({ model, ids, data, specification, context, path, service, }: SaveParams) => Promise<any>;
190
- deleteApi: ({ ids, model, service }: DeleteParams) => Promise<any>;
191
- onChange: ({ ids, model, object, specification, context, fieldChange, service, }: OnChangeParams) => Promise<any>;
192
- getListFieldsOnchange: ({ model, service }: {
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, service, }: GetViewParams) => Promise<any>;
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, service }: {
207
+ getSelectionItem: ({ data }: {
224
208
  data: GetSelectionType;
225
- service?: string;
226
209
  }) => Promise<any>;
227
210
  loadMessages: () => Promise<any>;
228
211
  getVersion: () => Promise<any>;
@@ -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-p4JdAOsz.js';
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, service, }: {
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, service, }: {
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, service, }: {
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, service, }: {
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, service, }: {
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
- uploadFileExcel: ({ formData }: {
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, service }: {
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, service, }: GetDetailParams) => Promise<any>;
189
- save: ({ model, ids, data, specification, context, path, service, }: SaveParams) => Promise<any>;
190
- deleteApi: ({ ids, model, service }: DeleteParams) => Promise<any>;
191
- onChange: ({ ids, model, object, specification, context, fieldChange, service, }: OnChangeParams) => Promise<any>;
192
- getListFieldsOnchange: ({ model, service }: {
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, service, }: GetViewParams) => Promise<any>;
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, service }: {
207
+ getSelectionItem: ({ data }: {
224
208
  data: GetSelectionType;
225
- service?: string;
226
209
  }) => Promise<any>;
227
210
  loadMessages: () => Promise<any>;
228
211
  getVersion: () => Promise<any>;