@fctc/interface-logic 2.3.3 → 2.3.5

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,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-BGJfDe73.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-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, path: string) => Promise<any>;
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
- uploadFile: ({ formData }: {
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>;
@@ -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-BGJfDe73.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-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, path: string) => Promise<any>;
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
- uploadFile: ({ formData }: {
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>;