@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.
@@ -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,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, service }: {
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, 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 }: {
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, service, }: GetViewParams) => Promise<any>;
209
- getMenu: (context: any, specification: any, domain: any) => Promise<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, service }: {
207
+ getSelectionItem: ({ data }: {
218
208
  data: GetSelectionType;
219
- service?: string;
220
209
  }) => Promise<any>;
221
210
  loadMessages: () => Promise<any>;
222
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,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, service }: {
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, 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 }: {
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, service, }: GetViewParams) => Promise<any>;
209
- getMenu: (context: any, specification: any, domain: any) => Promise<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, service }: {
207
+ getSelectionItem: ({ data }: {
218
208
  data: GetSelectionType;
219
- service?: string;
220
209
  }) => Promise<any>;
221
210
  loadMessages: () => Promise<any>;
222
211
  getVersion: () => Promise<any>;