@fctc/edu-logic-lib 1.0.2 → 1.0.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.
Files changed (69) hide show
  1. package/dist/{store.d.ts → index.d.mts} +574 -3
  2. package/dist/{store.d.mts → index.d.ts} +574 -3
  3. package/dist/index.js +4709 -0
  4. package/dist/index.mjs +4596 -0
  5. package/package.json +1 -1
  6. package/dist/base-model-type-DvO53Lwi.d.mts +0 -7
  7. package/dist/base-model-type-DvO53Lwi.d.ts +0 -7
  8. package/dist/chunk-6BLY7NZ6.mjs +0 -124
  9. package/dist/chunk-6QXB3XX7.mjs +0 -258
  10. package/dist/chunk-ELARQVCE.mjs +0 -2364
  11. package/dist/chunk-FVGPSTJ7.js +0 -124
  12. package/dist/chunk-GGOFXFSX.js +0 -2364
  13. package/dist/chunk-IXDDYGKE.js +0 -61
  14. package/dist/chunk-MJLXGYQ4.mjs +0 -102
  15. package/dist/chunk-MLJQPO4Q.mjs +0 -61
  16. package/dist/chunk-QLUONJPQ.mjs +0 -604
  17. package/dist/chunk-RZBHZYXG.js +0 -604
  18. package/dist/chunk-S7B3VKMJ.mjs +0 -95
  19. package/dist/chunk-S7YF2I23.js +0 -95
  20. package/dist/chunk-U4CC2BBB.js +0 -1074
  21. package/dist/chunk-UY6GNZNB.js +0 -258
  22. package/dist/chunk-W4W2L2NA.js +0 -102
  23. package/dist/chunk-WYXAE5LI.mjs +0 -1074
  24. package/dist/config.d.mts +0 -15
  25. package/dist/config.d.ts +0 -15
  26. package/dist/config.js +0 -7
  27. package/dist/config.mjs +0 -7
  28. package/dist/constants.d.mts +0 -120
  29. package/dist/constants.d.ts +0 -120
  30. package/dist/constants.js +0 -30
  31. package/dist/constants.mjs +0 -30
  32. package/dist/context-type-D5XefoL-.d.mts +0 -8
  33. package/dist/context-type-D5XefoL-.d.ts +0 -8
  34. package/dist/environment.d.mts +0 -37
  35. package/dist/environment.d.ts +0 -37
  36. package/dist/environment.js +0 -15
  37. package/dist/environment.mjs +0 -15
  38. package/dist/hooks.d.mts +0 -216
  39. package/dist/hooks.d.ts +0 -216
  40. package/dist/hooks.js +0 -776
  41. package/dist/hooks.mjs +0 -776
  42. package/dist/index-C_nK1Mii.d.mts +0 -19
  43. package/dist/index-C_nK1Mii.d.ts +0 -19
  44. package/dist/models.d.mts +0 -35
  45. package/dist/models.d.ts +0 -35
  46. package/dist/models.js +0 -43
  47. package/dist/models.mjs +0 -43
  48. package/dist/provider.d.mts +0 -16
  49. package/dist/provider.d.ts +0 -16
  50. package/dist/provider.js +0 -86
  51. package/dist/provider.mjs +0 -86
  52. package/dist/services.d.mts +0 -160
  53. package/dist/services.d.ts +0 -160
  54. package/dist/services.js +0 -26
  55. package/dist/services.mjs +0 -26
  56. package/dist/store.js +0 -128
  57. package/dist/store.mjs +0 -128
  58. package/dist/types.d.mts +0 -12
  59. package/dist/types.d.ts +0 -12
  60. package/dist/types.js +0 -1
  61. package/dist/types.mjs +0 -0
  62. package/dist/use-get-selection-DFh6sc49.d.mts +0 -26
  63. package/dist/use-get-selection-DFh6sc49.d.ts +0 -26
  64. package/dist/utils.d.mts +0 -52
  65. package/dist/utils.d.ts +0 -52
  66. package/dist/utils.js +0 -34
  67. package/dist/utils.mjs +0 -34
  68. package/dist/view-type-BTzRpkT7.d.mts +0 -106
  69. package/dist/view-type-BTzRpkT7.d.ts +0 -106
@@ -1,19 +0,0 @@
1
- interface BaseModelInit {
2
- name: string;
3
- view: Record<string, any>;
4
- actContext?: Record<string, any>;
5
- fields?: any;
6
- }
7
- declare class BaseModel {
8
- name: string;
9
- view: Record<string, any>;
10
- actContext?: Record<string, any>;
11
- fields?: any;
12
- constructor(init: BaseModelInit);
13
- private getSpecificationByFields;
14
- getTreeProps(): Record<string, any>;
15
- getTreeFields(): Record<string, any>[];
16
- getSpecification(): Record<string, any>;
17
- }
18
-
19
- export { BaseModel as B, type BaseModelInit as a };
@@ -1,19 +0,0 @@
1
- interface BaseModelInit {
2
- name: string;
3
- view: Record<string, any>;
4
- actContext?: Record<string, any>;
5
- fields?: any;
6
- }
7
- declare class BaseModel {
8
- name: string;
9
- view: Record<string, any>;
10
- actContext?: Record<string, any>;
11
- fields?: any;
12
- constructor(init: BaseModelInit);
13
- private getSpecificationByFields;
14
- getTreeProps(): Record<string, any>;
15
- getTreeFields(): Record<string, any>[];
16
- getSpecification(): Record<string, any>;
17
- }
18
-
19
- export { BaseModel as B, type BaseModelInit as a };
package/dist/models.d.mts DELETED
@@ -1,35 +0,0 @@
1
- import { B as BaseModel } from './index-C_nK1Mii.mjs';
2
- import { B as BaseModelInit } from './base-model-type-DvO53Lwi.mjs';
3
-
4
- interface CompanyData {
5
- id?: number;
6
- name?: string;
7
- [key: string]: any;
8
- }
9
- interface CompanyResponse {
10
- data: CompanyData;
11
- status: number;
12
- [key: string]: any;
13
- }
14
- declare class CompanyModel extends BaseModel {
15
- constructor(init: BaseModelInit);
16
- getCurrentCompany(): Promise<CompanyResponse>;
17
- getUserCompany(id: number): Promise<CompanyResponse>;
18
- }
19
-
20
- interface UserData {
21
- id?: number;
22
- name?: string;
23
- [key: string]: any;
24
- }
25
- interface UserResponse {
26
- data: UserData;
27
- status: number;
28
- [key: string]: any;
29
- }
30
- declare class UserModel extends BaseModel {
31
- constructor(init: BaseModelInit);
32
- getProfile(): Promise<UserResponse>;
33
- }
34
-
35
- export { BaseModel, CompanyModel, UserModel };
package/dist/models.d.ts DELETED
@@ -1,35 +0,0 @@
1
- import { B as BaseModel } from './index-C_nK1Mii.js';
2
- import { B as BaseModelInit } from './base-model-type-DvO53Lwi.js';
3
-
4
- interface CompanyData {
5
- id?: number;
6
- name?: string;
7
- [key: string]: any;
8
- }
9
- interface CompanyResponse {
10
- data: CompanyData;
11
- status: number;
12
- [key: string]: any;
13
- }
14
- declare class CompanyModel extends BaseModel {
15
- constructor(init: BaseModelInit);
16
- getCurrentCompany(): Promise<CompanyResponse>;
17
- getUserCompany(id: number): Promise<CompanyResponse>;
18
- }
19
-
20
- interface UserData {
21
- id?: number;
22
- name?: string;
23
- [key: string]: any;
24
- }
25
- interface UserResponse {
26
- data: UserData;
27
- status: number;
28
- [key: string]: any;
29
- }
30
- declare class UserModel extends BaseModel {
31
- constructor(init: BaseModelInit);
32
- getProfile(): Promise<UserResponse>;
33
- }
34
-
35
- export { BaseModel, CompanyModel, UserModel };
package/dist/models.js DELETED
@@ -1,43 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkFVGPSTJ7js = require('./chunk-FVGPSTJ7.js');
4
-
5
-
6
-
7
- var _chunkU4CC2BBBjs = require('./chunk-U4CC2BBB.js');
8
- require('./chunk-GGOFXFSX.js');
9
- require('./chunk-S7YF2I23.js');
10
- require('./chunk-W4W2L2NA.js');
11
- require('./chunk-UY6GNZNB.js');
12
- require('./chunk-IXDDYGKE.js');
13
- require('./chunk-RZBHZYXG.js');
14
-
15
- // src/models/company-model/index.ts
16
- var CompanyModel = class extends _chunkFVGPSTJ7js.base_model_default {
17
- constructor(init) {
18
- super(init);
19
- }
20
- async getCurrentCompany() {
21
- return await _chunkU4CC2BBBjs.company_service_default.getCurrentCompany();
22
- }
23
- async getUserCompany(id) {
24
- return await _chunkU4CC2BBBjs.company_service_default.getInfoCompany(id);
25
- }
26
- };
27
- var company_model_default = CompanyModel;
28
-
29
- // src/models/user-model/index.ts
30
- var UserModel = class extends _chunkFVGPSTJ7js.base_model_default {
31
- constructor(init) {
32
- super(init);
33
- }
34
- async getProfile() {
35
- return await _chunkU4CC2BBBjs.user_service_default.getProfile();
36
- }
37
- };
38
- var user_model_default = UserModel;
39
-
40
-
41
-
42
-
43
- exports.BaseModel = _chunkFVGPSTJ7js.base_model_default; exports.CompanyModel = company_model_default; exports.UserModel = user_model_default;
package/dist/models.mjs DELETED
@@ -1,43 +0,0 @@
1
- import {
2
- base_model_default
3
- } from "./chunk-6BLY7NZ6.mjs";
4
- import {
5
- company_service_default,
6
- user_service_default
7
- } from "./chunk-WYXAE5LI.mjs";
8
- import "./chunk-ELARQVCE.mjs";
9
- import "./chunk-S7B3VKMJ.mjs";
10
- import "./chunk-MJLXGYQ4.mjs";
11
- import "./chunk-6QXB3XX7.mjs";
12
- import "./chunk-MLJQPO4Q.mjs";
13
- import "./chunk-QLUONJPQ.mjs";
14
-
15
- // src/models/company-model/index.ts
16
- var CompanyModel = class extends base_model_default {
17
- constructor(init) {
18
- super(init);
19
- }
20
- async getCurrentCompany() {
21
- return await company_service_default.getCurrentCompany();
22
- }
23
- async getUserCompany(id) {
24
- return await company_service_default.getInfoCompany(id);
25
- }
26
- };
27
- var company_model_default = CompanyModel;
28
-
29
- // src/models/user-model/index.ts
30
- var UserModel = class extends base_model_default {
31
- constructor(init) {
32
- super(init);
33
- }
34
- async getProfile() {
35
- return await user_service_default.getProfile();
36
- }
37
- };
38
- var user_model_default = UserModel;
39
- export {
40
- base_model_default as BaseModel,
41
- company_model_default as CompanyModel,
42
- user_model_default as UserModel
43
- };
@@ -1,16 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
-
4
- declare const MainProvider: ({ children }: {
5
- children: ReactNode;
6
- }) => react_jsx_runtime.JSX.Element;
7
-
8
- declare const ReactQueryProvider: ({ children }: {
9
- children: ReactNode;
10
- }) => react_jsx_runtime.JSX.Element;
11
-
12
- declare const VersionGate: ({ children }: {
13
- children: ReactNode;
14
- }) => react_jsx_runtime.JSX.Element | null;
15
-
16
- export { MainProvider, ReactQueryProvider, VersionGate };
@@ -1,16 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
-
4
- declare const MainProvider: ({ children }: {
5
- children: ReactNode;
6
- }) => react_jsx_runtime.JSX.Element;
7
-
8
- declare const ReactQueryProvider: ({ children }: {
9
- children: ReactNode;
10
- }) => react_jsx_runtime.JSX.Element;
11
-
12
- declare const VersionGate: ({ children }: {
13
- children: ReactNode;
14
- }) => react_jsx_runtime.JSX.Element | null;
15
-
16
- export { MainProvider, ReactQueryProvider, VersionGate };
package/dist/provider.js DELETED
@@ -1,86 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
-
3
- var _chunkU4CC2BBBjs = require('./chunk-U4CC2BBB.js');
4
- require('./chunk-GGOFXFSX.js');
5
- require('./chunk-S7YF2I23.js');
6
- require('./chunk-W4W2L2NA.js');
7
- require('./chunk-UY6GNZNB.js');
8
- require('./chunk-IXDDYGKE.js');
9
-
10
-
11
- var _chunkRZBHZYXGjs = require('./chunk-RZBHZYXG.js');
12
-
13
- // src/provider/react-query-provider.tsx
14
- var _react = require('react');
15
- var _reactquery = require('@tanstack/react-query');
16
- var _jsxruntime = require('react/jsx-runtime');
17
- var ReactQueryProvider = ({ children }) => {
18
- const [queryClient] = _react.useState.call(void 0,
19
- () => new (0, _reactquery.QueryClient)({
20
- defaultOptions: {
21
- queries: {
22
- refetchOnWindowFocus: false,
23
- refetchOnMount: false,
24
- refetchOnReconnect: false,
25
- retry: false
26
- }
27
- }
28
- })
29
- );
30
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactquery.QueryClientProvider, { client: queryClient, children });
31
- };
32
-
33
- // src/provider/redux-provider.tsx
34
- var _reactredux = require('react-redux');
35
-
36
- var ReduxProvider = ({ children }) => {
37
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactredux.Provider, { store: _chunkRZBHZYXGjs.envStore, children });
38
- };
39
-
40
- // src/provider/main-provider.tsx
41
-
42
- var MainProvider = ({ children }) => {
43
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReduxProvider, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReactQueryProvider, { children }) });
44
- };
45
-
46
- // src/provider/version-gate-provider.tsx
47
-
48
-
49
-
50
- var VersionGate = ({ children }) => {
51
- const queryClient = _reactquery.useQueryClient.call(void 0, );
52
- const [ready, setReady] = _react.useState.call(void 0, false);
53
- _react.useEffect.call(void 0, () => {
54
- const clearVersion = () => {
55
- queryClient.clear();
56
- localStorage.removeItem("__api_version__");
57
- };
58
- const validateVersion = async () => {
59
- const serverVersion = await _chunkU4CC2BBBjs.view_service_default.getVersion();
60
- const cached = localStorage.getItem("__api_version__");
61
- if (cached !== _optionalChain([serverVersion, 'optionalAccess', _ => _.api_version])) {
62
- clearVersion();
63
- localStorage.setItem("__api_version__", _optionalChain([serverVersion, 'optionalAccess', _2 => _2.api_version]));
64
- } else {
65
- console.log("Api version:", _optionalChain([serverVersion, 'optionalAccess', _3 => _3.api_version]));
66
- }
67
- setReady(true);
68
- };
69
- validateVersion();
70
- if (typeof window !== "undefined") {
71
- const onKey = (e) => {
72
- const key = e.key.toLowerCase();
73
- const isHardRefresh = (key === "f5" || key === "r") && e.ctrlKey && (key !== "r" || e.shiftKey) || key === "r" && e.metaKey && e.shiftKey || key === "r" && e.metaKey && e.altKey;
74
- if (isHardRefresh) clearVersion();
75
- };
76
- window.addEventListener("keydown", onKey);
77
- return () => window.removeEventListener("keydown", onKey);
78
- }
79
- }, [queryClient]);
80
- return ready ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children }) : null;
81
- };
82
-
83
-
84
-
85
-
86
- exports.MainProvider = MainProvider; exports.ReactQueryProvider = ReactQueryProvider; exports.VersionGate = VersionGate;
package/dist/provider.mjs DELETED
@@ -1,86 +0,0 @@
1
- import {
2
- view_service_default
3
- } from "./chunk-WYXAE5LI.mjs";
4
- import "./chunk-ELARQVCE.mjs";
5
- import "./chunk-S7B3VKMJ.mjs";
6
- import "./chunk-MJLXGYQ4.mjs";
7
- import "./chunk-6QXB3XX7.mjs";
8
- import "./chunk-MLJQPO4Q.mjs";
9
- import {
10
- envStore
11
- } from "./chunk-QLUONJPQ.mjs";
12
-
13
- // src/provider/react-query-provider.tsx
14
- import { useState } from "react";
15
- import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
16
- import { jsx } from "react/jsx-runtime";
17
- var ReactQueryProvider = ({ children }) => {
18
- const [queryClient] = useState(
19
- () => new QueryClient({
20
- defaultOptions: {
21
- queries: {
22
- refetchOnWindowFocus: false,
23
- refetchOnMount: false,
24
- refetchOnReconnect: false,
25
- retry: false
26
- }
27
- }
28
- })
29
- );
30
- return /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children });
31
- };
32
-
33
- // src/provider/redux-provider.tsx
34
- import { Provider } from "react-redux";
35
- import { jsx as jsx2 } from "react/jsx-runtime";
36
- var ReduxProvider = ({ children }) => {
37
- return /* @__PURE__ */ jsx2(Provider, { store: envStore, children });
38
- };
39
-
40
- // src/provider/main-provider.tsx
41
- import { jsx as jsx3 } from "react/jsx-runtime";
42
- var MainProvider = ({ children }) => {
43
- return /* @__PURE__ */ jsx3(ReduxProvider, { children: /* @__PURE__ */ jsx3(ReactQueryProvider, { children }) });
44
- };
45
-
46
- // src/provider/version-gate-provider.tsx
47
- import { useEffect, useState as useState2 } from "react";
48
- import { useQueryClient } from "@tanstack/react-query";
49
- import { Fragment, jsx as jsx4 } from "react/jsx-runtime";
50
- var VersionGate = ({ children }) => {
51
- const queryClient = useQueryClient();
52
- const [ready, setReady] = useState2(false);
53
- useEffect(() => {
54
- const clearVersion = () => {
55
- queryClient.clear();
56
- localStorage.removeItem("__api_version__");
57
- };
58
- const validateVersion = async () => {
59
- const serverVersion = await view_service_default.getVersion();
60
- const cached = localStorage.getItem("__api_version__");
61
- if (cached !== serverVersion?.api_version) {
62
- clearVersion();
63
- localStorage.setItem("__api_version__", serverVersion?.api_version);
64
- } else {
65
- console.log("Api version:", serverVersion?.api_version);
66
- }
67
- setReady(true);
68
- };
69
- validateVersion();
70
- if (typeof window !== "undefined") {
71
- const onKey = (e) => {
72
- const key = e.key.toLowerCase();
73
- const isHardRefresh = (key === "f5" || key === "r") && e.ctrlKey && (key !== "r" || e.shiftKey) || key === "r" && e.metaKey && e.shiftKey || key === "r" && e.metaKey && e.altKey;
74
- if (isHardRefresh) clearVersion();
75
- };
76
- window.addEventListener("keydown", onKey);
77
- return () => window.removeEventListener("keydown", onKey);
78
- }
79
- }, [queryClient]);
80
- return ready ? /* @__PURE__ */ jsx4(Fragment, { children }) : null;
81
- };
82
- export {
83
- MainProvider,
84
- ReactQueryProvider,
85
- VersionGate
86
- };
@@ -1,160 +0,0 @@
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, e as GetViewParams } from './view-type-BTzRpkT7.mjs';
2
- import { T as TFormView, G as GetSelectionType } from './use-get-selection-DFh6sc49.mjs';
3
- import { C as Context } from './context-type-D5XefoL-.mjs';
4
- import '@tanstack/react-query';
5
-
6
- declare const ActionService: {
7
- loadAction({ idAction, context, }: {
8
- idAction: number;
9
- context: ContextApi;
10
- }): Promise<any>;
11
- callButton({ model, ids, context, method, }: {
12
- model: string;
13
- ids: Record<string, any>[] | any;
14
- context: ContextApi;
15
- method: any;
16
- }): Promise<any>;
17
- removeRows({ model, ids, context, }: {
18
- model: string;
19
- ids: Record<string, any>[] | any;
20
- context: ContextApi;
21
- }): Promise<any>;
22
- duplicateRecord({ model, id, context, }: {
23
- model: string;
24
- id: any;
25
- context: ContextApi;
26
- }): Promise<any>;
27
- print({ id, report, db }: {
28
- id: number;
29
- report: any;
30
- db: any;
31
- }): Promise<any>;
32
- runAction({ idAction, context, }: {
33
- idAction: number;
34
- context: ContextApi;
35
- }): Promise<any>;
36
- };
37
-
38
- declare const AuthService: {
39
- login(body: LoginCredentialBody): Promise<any>;
40
- forgotPassword(email: string): Promise<any>;
41
- resetPassword(data: ResetPasswordRequest, token: string | null): Promise<any>;
42
- updatePassword(data: UpdatePasswordRequest, token: string | null): Promise<any>;
43
- isValidToken(token: string | null): Promise<any>;
44
- loginSocial({ state, access_token, }: {
45
- state: object;
46
- access_token: string;
47
- }): Promise<any>;
48
- getProviders(db?: string): Promise<any>;
49
- };
50
-
51
- declare const CompanyService: {
52
- getCurrentCompany(): Promise<any>;
53
- getInfoCompany(id: number): Promise<any>;
54
- };
55
-
56
- declare const ExcelService: {
57
- uploadFile({ formData }: {
58
- formData: any;
59
- }): Promise<any>;
60
- uploadIdFile({ formData }: {
61
- formData: any;
62
- }): Promise<any>;
63
- parsePreview({ id, selectedSheet, isHeader, context, }: {
64
- id: any;
65
- selectedSheet: any;
66
- isHeader: boolean;
67
- context: any;
68
- }): Promise<any>;
69
- executeImport({ columns, fields, idFile, options, dryrun, context, }: {
70
- columns: any;
71
- fields: any;
72
- idFile: any;
73
- options: any;
74
- dryrun: any;
75
- context: any;
76
- }): Promise<any>;
77
- getFileExcel({ model, context }: {
78
- model: string;
79
- context: any;
80
- }): Promise<any>;
81
- getFieldExport({ ids, model, isShow, parentField, fieldType, parentName, prefix, name, context, importCompat, }: {
82
- ids: any;
83
- model: string;
84
- isShow?: boolean;
85
- parentField?: any;
86
- fieldType?: any;
87
- parentName?: any;
88
- prefix?: any;
89
- name?: any;
90
- context: any;
91
- importCompat?: any;
92
- }): Promise<any>;
93
- exportExcel({ model, domain, ids, fields, type, importCompat, context, groupby, }: {
94
- model: string;
95
- domain: any;
96
- ids: any;
97
- fields: any;
98
- type: any;
99
- importCompat: any;
100
- context: any;
101
- groupby: any;
102
- }): Promise<any>;
103
- };
104
-
105
- declare const FormService: {
106
- getComment({ data }: {
107
- data: any;
108
- }): Promise<any>;
109
- sentComment({ data }: any): Promise<any>;
110
- deleteComment({ data }: {
111
- data: any;
112
- }): Promise<any>;
113
- getImage({ data }: {
114
- data: any;
115
- }): Promise<any>;
116
- uploadImage({ data }: {
117
- data: any;
118
- }): Promise<any>;
119
- getFormView({ data }: {
120
- data: TFormView;
121
- }): Promise<any>;
122
- changeStatus({ data }: any): Promise<any>;
123
- };
124
-
125
- declare const ModelService: {
126
- getAll({ data }: {
127
- data: any;
128
- }): Promise<any>;
129
- getList({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams): Promise<any>;
130
- getDetail({ ids, model, specification, context, }: GetDetailParams): Promise<any>;
131
- save({ model, ids, data, specification, context, }: SaveParams): Promise<any>;
132
- delete({ ids, model }: DeleteParams): Promise<any>;
133
- onChange({ ids, model, object, specification, context, fieldChange, }: OnChangeParams): Promise<any>;
134
- getListFieldsOnchange({ model }: {
135
- model: string;
136
- }): Promise<any>;
137
- parseORMOdoo(data: Record<string, any>): Record<string, any>;
138
- toDataJS(data: Record<string, any>, viewData?: ViewData, model?: string): Record<string, any>;
139
- };
140
-
141
- declare const UserService: {
142
- getProfile(): Promise<any>;
143
- getUser({ context, id }: {
144
- context: any;
145
- id: any;
146
- }): Promise<any>;
147
- switchUserLocale: ({ id, values }: any) => Promise<any>;
148
- };
149
-
150
- declare const ViewService: {
151
- getView({ model, views, context, options, aid, }: GetViewParams): Promise<any>;
152
- getMenu(context: Context): Promise<any>;
153
- getSelectionItem({ data }: {
154
- data: GetSelectionType;
155
- }): Promise<any>;
156
- loadMessages(): Promise<any>;
157
- getVersion(): Promise<any>;
158
- };
159
-
160
- export { ActionService, AuthService, CompanyService, ExcelService, FormService, ModelService, UserService, ViewService };