@fctc/edu-logic-lib 1.0.6 → 1.0.8
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/base-model-type-DvO53Lwi.d.mts +7 -0
- package/dist/base-model-type-DvO53Lwi.d.ts +7 -0
- package/dist/chunk-4K3QAEZ6.js +90 -0
- package/dist/chunk-6BLY7NZ6.mjs +120 -0
- package/dist/chunk-6QXB3XX7.mjs +256 -0
- package/dist/chunk-7JD5GMIZ.js +2 -0
- package/dist/chunk-AYUH66EE.mjs +62 -0
- package/dist/chunk-CZHZLKNA.mjs +585 -0
- package/dist/chunk-EK43MEN4.js +635 -0
- package/dist/chunk-ELARQVCE.mjs +2344 -0
- package/dist/chunk-FVGPSTJ7.js +122 -0
- package/dist/chunk-GGOFXFSX.js +2362 -0
- package/dist/chunk-IXDDYGKE.js +61 -0
- package/dist/chunk-MLJQPO4Q.mjs +57 -0
- package/dist/chunk-OADBRQ4A.js +32 -0
- package/dist/chunk-OBR6UTC5.mjs +1 -0
- package/dist/chunk-OFUXC2LA.mjs +86 -0
- package/dist/chunk-P2IGWJDZ.js +1068 -0
- package/dist/chunk-QLUONJPQ.mjs +519 -0
- package/dist/chunk-RWRHCIQI.mjs +1059 -0
- package/dist/chunk-RZBHZYXG.js +582 -0
- package/dist/chunk-S7B3VKMJ.mjs +85 -0
- package/dist/chunk-S7YF2I23.js +95 -0
- package/dist/chunk-UY6GNZNB.js +262 -0
- package/dist/chunk-XYVK476U.mjs +29 -0
- package/dist/chunk-YOV6KAT2.js +66 -0
- package/dist/config.d.mts +15 -0
- package/dist/config.d.ts +15 -0
- package/dist/config.js +11 -0
- package/dist/config.mjs +2 -0
- package/dist/constants.d.mts +120 -0
- package/dist/constants.d.ts +120 -0
- package/dist/constants.js +55 -0
- package/dist/constants.mjs +2 -0
- package/dist/context-type-D5XefoL-.d.mts +8 -0
- package/dist/context-type-D5XefoL-.d.ts +8 -0
- package/dist/environment.d.mts +37 -0
- package/dist/environment.d.ts +37 -0
- package/dist/environment.js +25 -0
- package/dist/environment.mjs +4 -0
- package/dist/hooks.d.mts +218 -0
- package/dist/hooks.d.ts +218 -0
- package/dist/hooks.js +194 -0
- package/dist/hooks.mjs +9 -0
- package/dist/index-C_nK1Mii.d.mts +19 -0
- package/dist/index-C_nK1Mii.d.ts +19 -0
- package/dist/index.d.mts +23 -1294
- package/dist/index.d.ts +23 -1294
- package/dist/index.js +626 -5320
- package/dist/index.mjs +12 -5165
- package/dist/models.d.mts +35 -0
- package/dist/models.d.ts +35 -0
- package/dist/models.js +26 -0
- package/dist/models.mjs +9 -0
- package/dist/provider.d.mts +16 -0
- package/dist/provider.d.ts +16 -0
- package/dist/provider.js +25 -0
- package/dist/provider.mjs +8 -0
- package/dist/services.d.mts +160 -0
- package/dist/services.d.ts +160 -0
- package/dist/services.js +44 -0
- package/dist/services.mjs +7 -0
- package/dist/store.d.mts +505 -0
- package/dist/store.d.ts +505 -0
- package/dist/store.js +254 -0
- package/dist/store.mjs +1 -0
- package/dist/types.d.mts +12 -0
- package/dist/types.d.ts +12 -0
- package/dist/types.js +4 -0
- package/dist/types.mjs +1 -0
- package/dist/use-get-selection-DFh6sc49.d.mts +26 -0
- package/dist/use-get-selection-DFh6sc49.d.ts +26 -0
- package/dist/utils.d.mts +52 -0
- package/dist/utils.d.ts +52 -0
- package/dist/utils.js +66 -0
- package/dist/utils.mjs +1 -0
- package/dist/view-type-BTzRpkT7.d.mts +106 -0
- package/dist/view-type-BTzRpkT7.d.ts +106 -0
- package/package.json +68 -31
|
@@ -0,0 +1,35 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkOADBRQ4A_js = require('./chunk-OADBRQ4A.js');
|
|
4
|
+
var chunkFVGPSTJ7_js = require('./chunk-FVGPSTJ7.js');
|
|
5
|
+
require('./chunk-P2IGWJDZ.js');
|
|
6
|
+
require('./chunk-GGOFXFSX.js');
|
|
7
|
+
require('./chunk-S7YF2I23.js');
|
|
8
|
+
require('./chunk-4K3QAEZ6.js');
|
|
9
|
+
require('./chunk-RZBHZYXG.js');
|
|
10
|
+
require('./chunk-UY6GNZNB.js');
|
|
11
|
+
require('./chunk-IXDDYGKE.js');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
Object.defineProperty(exports, "CompanyModel", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkOADBRQ4A_js.company_model_default; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "UserModel", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkOADBRQ4A_js.user_model_default; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "BaseModel", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkFVGPSTJ7_js.base_model_default; }
|
|
26
|
+
});
|
package/dist/models.mjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { company_model_default as CompanyModel, user_model_default as UserModel } from './chunk-XYVK476U.mjs';
|
|
2
|
+
export { base_model_default as BaseModel } from './chunk-6BLY7NZ6.mjs';
|
|
3
|
+
import './chunk-RWRHCIQI.mjs';
|
|
4
|
+
import './chunk-ELARQVCE.mjs';
|
|
5
|
+
import './chunk-S7B3VKMJ.mjs';
|
|
6
|
+
import './chunk-OFUXC2LA.mjs';
|
|
7
|
+
import './chunk-QLUONJPQ.mjs';
|
|
8
|
+
import './chunk-6QXB3XX7.mjs';
|
|
9
|
+
import './chunk-MLJQPO4Q.mjs';
|
|
@@ -0,0 +1,16 @@
|
|
|
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 };
|
|
@@ -0,0 +1,16 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkYOV6KAT2_js = require('./chunk-YOV6KAT2.js');
|
|
4
|
+
require('./chunk-P2IGWJDZ.js');
|
|
5
|
+
require('./chunk-GGOFXFSX.js');
|
|
6
|
+
require('./chunk-S7YF2I23.js');
|
|
7
|
+
require('./chunk-4K3QAEZ6.js');
|
|
8
|
+
require('./chunk-RZBHZYXG.js');
|
|
9
|
+
require('./chunk-UY6GNZNB.js');
|
|
10
|
+
require('./chunk-IXDDYGKE.js');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
Object.defineProperty(exports, "MainProvider", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunkYOV6KAT2_js.MainProvider; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "ReactQueryProvider", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunkYOV6KAT2_js.ReactQueryProvider; }
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "VersionGate", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return chunkYOV6KAT2_js.VersionGate; }
|
|
25
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { MainProvider, ReactQueryProvider, VersionGate } from './chunk-AYUH66EE.mjs';
|
|
2
|
+
import './chunk-RWRHCIQI.mjs';
|
|
3
|
+
import './chunk-ELARQVCE.mjs';
|
|
4
|
+
import './chunk-S7B3VKMJ.mjs';
|
|
5
|
+
import './chunk-OFUXC2LA.mjs';
|
|
6
|
+
import './chunk-QLUONJPQ.mjs';
|
|
7
|
+
import './chunk-6QXB3XX7.mjs';
|
|
8
|
+
import './chunk-MLJQPO4Q.mjs';
|
|
@@ -0,0 +1,160 @@
|
|
|
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 };
|
|
@@ -0,0 +1,160 @@
|
|
|
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.js';
|
|
2
|
+
import { T as TFormView, G as GetSelectionType } from './use-get-selection-DFh6sc49.js';
|
|
3
|
+
import { C as Context } from './context-type-D5XefoL-.js';
|
|
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 };
|
package/dist/services.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkP2IGWJDZ_js = require('./chunk-P2IGWJDZ.js');
|
|
4
|
+
require('./chunk-GGOFXFSX.js');
|
|
5
|
+
require('./chunk-S7YF2I23.js');
|
|
6
|
+
require('./chunk-4K3QAEZ6.js');
|
|
7
|
+
require('./chunk-RZBHZYXG.js');
|
|
8
|
+
require('./chunk-UY6GNZNB.js');
|
|
9
|
+
require('./chunk-IXDDYGKE.js');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
Object.defineProperty(exports, "ActionService", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkP2IGWJDZ_js.action_service_default; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "AuthService", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkP2IGWJDZ_js.auth_service_default; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "CompanyService", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkP2IGWJDZ_js.company_service_default; }
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "ExcelService", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return chunkP2IGWJDZ_js.excel_service_default; }
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, "FormService", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () { return chunkP2IGWJDZ_js.form_service_default; }
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "ModelService", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return chunkP2IGWJDZ_js.model_service_default; }
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "UserService", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () { return chunkP2IGWJDZ_js.user_service_default; }
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "ViewService", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () { return chunkP2IGWJDZ_js.view_service_default; }
|
|
44
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { action_service_default as ActionService, auth_service_default as AuthService, company_service_default as CompanyService, excel_service_default as ExcelService, form_service_default as FormService, model_service_default as ModelService, user_service_default as UserService, view_service_default as ViewService } from './chunk-RWRHCIQI.mjs';
|
|
2
|
+
import './chunk-ELARQVCE.mjs';
|
|
3
|
+
import './chunk-S7B3VKMJ.mjs';
|
|
4
|
+
import './chunk-OFUXC2LA.mjs';
|
|
5
|
+
import './chunk-QLUONJPQ.mjs';
|
|
6
|
+
import './chunk-6QXB3XX7.mjs';
|
|
7
|
+
import './chunk-MLJQPO4Q.mjs';
|