@fctc/interface-logic 5.2.4 → 5.2.6
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/{chunk-Q5YXX4OR.js → chunk-CCTDGAMA.js} +52 -51
- package/dist/{chunk-WBGK2SHU.js → chunk-COC7NGXP.js} +20 -19
- package/dist/{chunk-6ARYI77N.mjs → chunk-F2VAAEVB.mjs} +12 -3
- package/dist/{chunk-OV7EKGYM.mjs → chunk-F4RE57FT.mjs} +1394 -640
- package/dist/{chunk-C5QQGBN4.js → chunk-FWBYTZIV.js} +23 -18
- package/dist/chunk-GGNOJ77I.js +1 -2
- package/dist/{chunk-BPJZ3QRN.mjs → chunk-HQVNK2EW.mjs} +128 -770
- package/dist/{chunk-VBYRP2P7.mjs → chunk-Q3Y6RCJ4.mjs} +19 -1
- package/dist/{chunk-5STZNSW4.js → chunk-U2COUTK5.js} +1663 -1087
- package/dist/{chunk-JDXUTKMX.js → chunk-U4Q3MW45.js} +170 -852
- package/dist/{chunk-QOXPJWSN.mjs → chunk-VBVNP77T.mjs} +6 -2
- package/dist/chunk-WAXGOBY2.mjs +0 -1
- package/dist/chunk-WTPKTZQC.js +118 -0
- package/dist/{chunk-ACSPOGTI.mjs → chunk-ZDXEWQQD.mjs} +14 -7
- package/dist/configs.js +4 -9
- package/dist/configs.mjs +7 -3
- package/dist/constants.d.mts +2 -1
- package/dist/constants.d.ts +2 -1
- package/dist/constants.js +36 -70
- package/dist/constants.mjs +36 -1
- package/dist/environment.d.mts +1 -1
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +8 -17
- package/dist/environment.mjs +12 -4
- package/dist/hooks.d.mts +7 -23
- package/dist/hooks.d.ts +7 -23
- package/dist/hooks.js +312 -635
- package/dist/hooks.mjs +312 -6
- package/dist/index.d.mts +4 -10
- package/dist/index.d.ts +4 -10
- package/dist/index.js +433 -1257
- package/dist/index.mjs +433 -8
- package/dist/{local-storage-BPvoMGYJ.d.mts → local-storage-AbiOQTLK.d.mts} +1 -1
- package/dist/{local-storage-BPvoMGYJ.d.ts → local-storage-AbiOQTLK.d.ts} +1 -1
- package/dist/models.js +4 -8
- package/dist/models.mjs +7 -2
- package/dist/provider.d.mts +4 -12
- package/dist/provider.d.ts +4 -12
- package/dist/provider.js +26 -51
- package/dist/provider.mjs +26 -6
- package/dist/services.d.mts +6 -10
- package/dist/services.d.ts +6 -10
- package/dist/services.js +30 -55
- package/dist/services.mjs +30 -6
- package/dist/types.js +1 -4
- package/dist/types.mjs +1 -1
- package/dist/utils.d.mts +33 -61
- package/dist/utils.d.ts +33 -61
- package/dist/utils.js +36 -139
- package/dist/utils.mjs +36 -2
- package/package.json +15 -29
- package/dist/chunk-6LSKTACC.js +0 -687
- package/dist/chunk-B432GFRR.mjs +0 -606
- package/dist/chunk-RPWKWEMA.js +0 -116
- package/dist/store.d.mts +0 -382
- package/dist/store.d.ts +0 -382
- package/dist/store.js +0 -326
- package/dist/store.mjs +0 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
WIDGETAVATAR
|
|
3
|
+
} from "./chunk-Q3Y6RCJ4.mjs";
|
|
2
4
|
|
|
3
5
|
// src/models/base-model/index.ts
|
|
4
6
|
var BaseModel = class {
|
|
@@ -111,4 +113,6 @@ var BaseModel = class {
|
|
|
111
113
|
}
|
|
112
114
|
};
|
|
113
115
|
|
|
114
|
-
export {
|
|
116
|
+
export {
|
|
117
|
+
BaseModel
|
|
118
|
+
};
|
package/dist/chunk-WAXGOBY2.mjs
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -0,0 +1,118 @@
|
|
|
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 _chunkCOC7NGXPjs = require('./chunk-COC7NGXP.js');
|
|
4
|
+
|
|
5
|
+
// src/models/base-model/index.ts
|
|
6
|
+
var BaseModel = class {
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
constructor(init) {
|
|
11
|
+
this.name = init.name;
|
|
12
|
+
this.view = init.view;
|
|
13
|
+
this.fields = init.fields;
|
|
14
|
+
}
|
|
15
|
+
getSpecificationByFields({
|
|
16
|
+
fields = [],
|
|
17
|
+
specification = {},
|
|
18
|
+
modelsData,
|
|
19
|
+
model,
|
|
20
|
+
modelRoot
|
|
21
|
+
}) {
|
|
22
|
+
if (Array.isArray(fields)) {
|
|
23
|
+
let spec = { ...specification };
|
|
24
|
+
fields.forEach((field) => {
|
|
25
|
+
if (!_optionalChain([field, 'optionalAccess', _ => _.type_co]) || _optionalChain([field, 'optionalAccess', _2 => _2.name]) && _optionalChain([field, 'optionalAccess', _3 => _3.type_co]) === "field" /* FIELD */) {
|
|
26
|
+
if (_optionalChain([modelsData, 'optionalAccess', _4 => _4[model], 'optionalAccess', _5 => _5[_optionalChain([field, 'optionalAccess', _6 => _6.name])]])) {
|
|
27
|
+
if (_optionalChain([modelsData, 'optionalAccess', _7 => _7[model], 'optionalAccess', _8 => _8[_optionalChain([field, 'optionalAccess', _9 => _9.name])], 'optionalAccess', _10 => _10.type]) === "one2many" /* ONE2MANY */ || _optionalChain([modelsData, 'optionalAccess', _11 => _11[model], 'optionalAccess', _12 => _12[_optionalChain([field, 'optionalAccess', _13 => _13.name])], 'optionalAccess', _14 => _14.type]) === "many2many" /* MANY2MANY */) {
|
|
28
|
+
const relation = _optionalChain([modelsData, 'optionalAccess', _15 => _15[model], 'optionalAccess', _16 => _16[_optionalChain([field, 'optionalAccess', _17 => _17.name])], 'optionalAccess', _18 => _18.relation]);
|
|
29
|
+
const modelRelation = _optionalChain([modelsData, 'optionalAccess', _19 => _19[relation]]);
|
|
30
|
+
if (modelRelation) {
|
|
31
|
+
spec[_optionalChain([field, 'optionalAccess', _20 => _20.name])] = {
|
|
32
|
+
fields: {}
|
|
33
|
+
};
|
|
34
|
+
if (modelRoot && modelRoot === relation) {
|
|
35
|
+
spec[_optionalChain([field, 'optionalAccess', _21 => _21.name])].fields = { id: {} };
|
|
36
|
+
} else {
|
|
37
|
+
spec[_optionalChain([field, 'optionalAccess', _22 => _22.name])].fields = this.getSpecificationByFields({
|
|
38
|
+
fields: Object.values(modelRelation),
|
|
39
|
+
specification: { id: {}, display_name: {} },
|
|
40
|
+
modelsData,
|
|
41
|
+
model: relation,
|
|
42
|
+
modelRoot: model
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
} else {
|
|
46
|
+
spec[_optionalChain([field, 'optionalAccess', _23 => _23.name])] = {
|
|
47
|
+
fields: {
|
|
48
|
+
id: {},
|
|
49
|
+
display_name: {},
|
|
50
|
+
..._optionalChain([field, 'optionalAccess', _24 => _24.widget]) === "many2many_binary" ? { mimetype: {} } : {},
|
|
51
|
+
..._optionalChain([field, 'optionalAccess', _25 => _25.widget]) === "many2many_binary" && relation === "ir.attachment" ? { datas: {} } : {}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
} else if (_optionalChain([modelsData, 'optionalAccess', _26 => _26[model], 'optionalAccess', _27 => _27[_optionalChain([field, 'optionalAccess', _28 => _28.name])], 'optionalAccess', _29 => _29.type]) === "many2one" /* MANY2ONE */) {
|
|
56
|
+
spec[_optionalChain([field, 'optionalAccess', _30 => _30.name])] = {
|
|
57
|
+
fields: {
|
|
58
|
+
id: {},
|
|
59
|
+
display_name: {},
|
|
60
|
+
..._chunkCOC7NGXPjs.WIDGETAVATAR[_optionalChain([field, 'optionalAccess', _31 => _31.widget])] ? { image_256: {} } : {},
|
|
61
|
+
..._optionalChain([field, 'optionalAccess', _32 => _32.name]) === "currency_id" && _optionalChain([fields, 'optionalAccess', _33 => _33.find, 'call', _34 => _34((item) => _optionalChain([item, 'optionalAccess', _35 => _35.widget]) === "monetary")]) ? { symbol: {} } : {},
|
|
62
|
+
..._optionalChain([field, 'optionalAccess', _36 => _36.widget]) === "many2many_binary" ? { mimetype: {} } : {}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
} else {
|
|
66
|
+
spec[_optionalChain([field, 'optionalAccess', _37 => _37.name])] = {};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
} else if (_optionalChain([field, 'optionalAccess', _38 => _38.type_co]) === "group" /* GROUP */ || _optionalChain([field, 'optionalAccess', _39 => _39.type_co]) === "div" /* DIV */ || _optionalChain([field, 'optionalAccess', _40 => _40.type_co]) === "span" /* SPAN */) {
|
|
70
|
+
const specGroup = this.getSpecificationByFields({
|
|
71
|
+
fields: _optionalChain([field, 'optionalAccess', _41 => _41.fields]),
|
|
72
|
+
specification: spec,
|
|
73
|
+
modelsData,
|
|
74
|
+
model
|
|
75
|
+
});
|
|
76
|
+
spec = { ...spec, ...specGroup };
|
|
77
|
+
} else if (_optionalChain([field, 'optionalAccess', _42 => _42.type_co]) === "tree" /* TREE */ || _optionalChain([field, 'optionalAccess', _43 => _43.type_co]) === "list" /* LIST */ || _optionalChain([field, 'optionalAccess', _44 => _44.type_co]) === "kanban" /* KANBAN */) {
|
|
78
|
+
const relation = _optionalChain([modelsData, 'optionalAccess', _45 => _45[model], 'optionalAccess', _46 => _46[_optionalChain([field, 'optionalAccess', _47 => _47.name])], 'optionalAccess', _48 => _48.relation]);
|
|
79
|
+
const specTreee = this.getSpecificationByFields({
|
|
80
|
+
fields: _optionalChain([field, 'optionalAccess', _49 => _49.fields]),
|
|
81
|
+
specification: {},
|
|
82
|
+
modelsData,
|
|
83
|
+
model: relation,
|
|
84
|
+
modelRoot: model
|
|
85
|
+
});
|
|
86
|
+
spec = { ...spec, [_optionalChain([field, 'optionalAccess', _50 => _50.name])]: { fields: specTreee } };
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
return spec;
|
|
90
|
+
} else {
|
|
91
|
+
console.warn("fields is not array");
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
getTreeProps() {
|
|
95
|
+
const props = _optionalChain([this, 'access', _51 => _51.view, 'optionalAccess', _52 => _52.views, 'optionalAccess', _53 => _53.list]) || {};
|
|
96
|
+
return props;
|
|
97
|
+
}
|
|
98
|
+
getTreeFields() {
|
|
99
|
+
const fields = _optionalChain([this, 'access', _54 => _54.view, 'optionalAccess', _55 => _55.views, 'optionalAccess', _56 => _56.list, 'optionalAccess', _57 => _57.fields]) || [];
|
|
100
|
+
return fields;
|
|
101
|
+
}
|
|
102
|
+
getSpecification() {
|
|
103
|
+
const specInit = {};
|
|
104
|
+
const modelData = _optionalChain([this, 'access', _58 => _58.view, 'optionalAccess', _59 => _59.models]) || {};
|
|
105
|
+
const specification = this.getSpecificationByFields({
|
|
106
|
+
fields: this.fields,
|
|
107
|
+
specification: specInit,
|
|
108
|
+
modelsData: modelData,
|
|
109
|
+
model: this.name,
|
|
110
|
+
modelRoot: ""
|
|
111
|
+
});
|
|
112
|
+
return specification;
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
exports.BaseModel = BaseModel;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
localStorageUtils,
|
|
3
|
+
sessionStorageUtils,
|
|
4
|
+
updateTokenParamInOriginalRequest
|
|
5
|
+
} from "./chunk-HQVNK2EW.mjs";
|
|
3
6
|
|
|
7
|
+
// src/configs/axios-client.ts
|
|
8
|
+
import axios from "axios";
|
|
4
9
|
function removeLanguages(acceptLang, removeList) {
|
|
5
10
|
return acceptLang.split(",").map((x) => x.trim()).filter((item) => !removeList?.some((lang) => item?.startsWith(lang))).join(",");
|
|
6
11
|
}
|
|
@@ -64,7 +69,7 @@ var axiosClient = {
|
|
|
64
69
|
instance.interceptors.response.use(
|
|
65
70
|
(response) => handleResponse(response),
|
|
66
71
|
async (error) => {
|
|
67
|
-
const
|
|
72
|
+
const handleError = async (err) => {
|
|
68
73
|
if (!err.response) return err;
|
|
69
74
|
const { data } = err.response;
|
|
70
75
|
if (data && data.code === 400 && ["invalid_grant"].includes(data.data?.error)) {
|
|
@@ -144,7 +149,7 @@ var axiosClient = {
|
|
|
144
149
|
});
|
|
145
150
|
}
|
|
146
151
|
}
|
|
147
|
-
return Promise.reject(await
|
|
152
|
+
return Promise.reject(await handleError(error));
|
|
148
153
|
}
|
|
149
154
|
);
|
|
150
155
|
instance.interceptors.response.use(
|
|
@@ -152,7 +157,7 @@ var axiosClient = {
|
|
|
152
157
|
return handleResponse(response);
|
|
153
158
|
},
|
|
154
159
|
async (error) => {
|
|
155
|
-
const
|
|
160
|
+
const handleError = async (error2) => {
|
|
156
161
|
if (!error2.response) {
|
|
157
162
|
return error2;
|
|
158
163
|
}
|
|
@@ -240,7 +245,7 @@ var axiosClient = {
|
|
|
240
245
|
});
|
|
241
246
|
}
|
|
242
247
|
}
|
|
243
|
-
return Promise.reject(await
|
|
248
|
+
return Promise.reject(await handleError(error));
|
|
244
249
|
}
|
|
245
250
|
);
|
|
246
251
|
const handleResponse = (res) => {
|
|
@@ -313,4 +318,6 @@ var axiosClient = {
|
|
|
313
318
|
}
|
|
314
319
|
};
|
|
315
320
|
|
|
316
|
-
export {
|
|
321
|
+
export {
|
|
322
|
+
axiosClient
|
|
323
|
+
};
|
package/dist/configs.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-WBGK2SHU.js');
|
|
3
|
+
var _chunkCCTDGAMAjs = require('./chunk-CCTDGAMA.js');
|
|
4
|
+
require('./chunk-U4Q3MW45.js');
|
|
6
5
|
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
Object.defineProperty(exports, "axiosClient", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () { return chunkQ5YXX4OR_js.axiosClient; }
|
|
12
|
-
});
|
|
7
|
+
exports.axiosClient = _chunkCCTDGAMAjs.axiosClient;
|
package/dist/configs.mjs
CHANGED
package/dist/constants.d.mts
CHANGED
|
@@ -83,7 +83,8 @@ declare enum UriConstants {
|
|
|
83
83
|
PUBLIC_USER_INFO = "/public/user/info",
|
|
84
84
|
FUNCTIONAL_MODULES = "/functional-modules",
|
|
85
85
|
ACTION_SERVER_HOME = "/action_server_home",
|
|
86
|
-
APP_AUTHENTICATE = "/app/authenticate"
|
|
86
|
+
APP_AUTHENTICATE = "/app/authenticate",
|
|
87
|
+
LOYALTY_POINT = "/loyalty/point"
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
declare enum FieldTypeConstants {
|
package/dist/constants.d.ts
CHANGED
|
@@ -83,7 +83,8 @@ declare enum UriConstants {
|
|
|
83
83
|
PUBLIC_USER_INFO = "/public/user/info",
|
|
84
84
|
FUNCTIONAL_MODULES = "/functional-modules",
|
|
85
85
|
ACTION_SERVER_HOME = "/action_server_home",
|
|
86
|
-
APP_AUTHENTICATE = "/app/authenticate"
|
|
86
|
+
APP_AUTHENTICATE = "/app/authenticate",
|
|
87
|
+
LOYALTY_POINT = "/loyalty/point"
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
declare enum FieldTypeConstants {
|
package/dist/constants.js
CHANGED
|
@@ -1,70 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
get: function () { return chunkWBGK2SHU_js.MethodType; }
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(exports, "ModelConstants", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () { return chunkWBGK2SHU_js.ModelConstants; }
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(exports, "SearchType", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () { return chunkWBGK2SHU_js.SearchType; }
|
|
46
|
-
});
|
|
47
|
-
Object.defineProperty(exports, "UriConstants", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function () { return chunkWBGK2SHU_js.UriConstants; }
|
|
50
|
-
});
|
|
51
|
-
Object.defineProperty(exports, "WIDGETAVATAR", {
|
|
52
|
-
enumerable: true,
|
|
53
|
-
get: function () { return chunkWBGK2SHU_js.WIDGETAVATAR; }
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(exports, "WIDGETCOLOR", {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
get: function () { return chunkWBGK2SHU_js.WIDGETCOLOR; }
|
|
58
|
-
});
|
|
59
|
-
Object.defineProperty(exports, "WIDGETCURRENCY", {
|
|
60
|
-
enumerable: true,
|
|
61
|
-
get: function () { return chunkWBGK2SHU_js.WIDGETCURRENCY; }
|
|
62
|
-
});
|
|
63
|
-
Object.defineProperty(exports, "WIDGETNOSTRING", {
|
|
64
|
-
enumerable: true,
|
|
65
|
-
get: function () { return chunkWBGK2SHU_js.WIDGETNOSTRING; }
|
|
66
|
-
});
|
|
67
|
-
Object.defineProperty(exports, "WIDGETSTATUS", {
|
|
68
|
-
enumerable: true,
|
|
69
|
-
get: function () { return chunkWBGK2SHU_js.WIDGETSTATUS; }
|
|
70
|
-
});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var _chunkCOC7NGXPjs = require('./chunk-COC7NGXP.js');
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
exports.ComponentType = _chunkCOC7NGXPjs.ComponentType; exports.FieldTypeConstants = _chunkCOC7NGXPjs.FieldTypeConstants; exports.KeyConstants = _chunkCOC7NGXPjs.KeyConstants; exports.LoadDataModel = _chunkCOC7NGXPjs.LoadDataModel; exports.LoadDataModelSupa = _chunkCOC7NGXPjs.LoadDataModelSupa; exports.MODEL_TO_TABLE = _chunkCOC7NGXPjs.MODEL_TO_TABLE; exports.MethodConstants = _chunkCOC7NGXPjs.MethodConstants; exports.MethodType = _chunkCOC7NGXPjs.MethodType; exports.ModelConstants = _chunkCOC7NGXPjs.ModelConstants; exports.SearchType = _chunkCOC7NGXPjs.SearchType; exports.UriConstants = _chunkCOC7NGXPjs.UriConstants; exports.WIDGETAVATAR = _chunkCOC7NGXPjs.WIDGETAVATAR; exports.WIDGETCOLOR = _chunkCOC7NGXPjs.WIDGETCOLOR; exports.WIDGETCURRENCY = _chunkCOC7NGXPjs.WIDGETCURRENCY; exports.WIDGETNOSTRING = _chunkCOC7NGXPjs.WIDGETNOSTRING; exports.WIDGETSTATUS = _chunkCOC7NGXPjs.WIDGETSTATUS;
|
package/dist/constants.mjs
CHANGED
|
@@ -1 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
import {
|
|
2
|
+
ComponentType,
|
|
3
|
+
FieldTypeConstants,
|
|
4
|
+
KeyConstants,
|
|
5
|
+
LoadDataModel,
|
|
6
|
+
LoadDataModelSupa,
|
|
7
|
+
MODEL_TO_TABLE,
|
|
8
|
+
MethodConstants,
|
|
9
|
+
MethodType,
|
|
10
|
+
ModelConstants,
|
|
11
|
+
SearchType,
|
|
12
|
+
UriConstants,
|
|
13
|
+
WIDGETAVATAR,
|
|
14
|
+
WIDGETCOLOR,
|
|
15
|
+
WIDGETCURRENCY,
|
|
16
|
+
WIDGETNOSTRING,
|
|
17
|
+
WIDGETSTATUS
|
|
18
|
+
} from "./chunk-Q3Y6RCJ4.mjs";
|
|
19
|
+
export {
|
|
20
|
+
ComponentType,
|
|
21
|
+
FieldTypeConstants,
|
|
22
|
+
KeyConstants,
|
|
23
|
+
LoadDataModel,
|
|
24
|
+
LoadDataModelSupa,
|
|
25
|
+
MODEL_TO_TABLE,
|
|
26
|
+
MethodConstants,
|
|
27
|
+
MethodType,
|
|
28
|
+
ModelConstants,
|
|
29
|
+
SearchType,
|
|
30
|
+
UriConstants,
|
|
31
|
+
WIDGETAVATAR,
|
|
32
|
+
WIDGETCOLOR,
|
|
33
|
+
WIDGETCURRENCY,
|
|
34
|
+
WIDGETNOSTRING,
|
|
35
|
+
WIDGETSTATUS
|
|
36
|
+
};
|
package/dist/environment.d.mts
CHANGED
package/dist/environment.d.ts
CHANGED
package/dist/environment.js
CHANGED
|
@@ -1,21 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var chunkC5QQGBN4_js = require('./chunk-C5QQGBN4.js');
|
|
4
|
-
require('./chunk-Q5YXX4OR.js');
|
|
5
|
-
require('./chunk-JDXUTKMX.js');
|
|
6
|
-
require('./chunk-WBGK2SHU.js');
|
|
7
3
|
|
|
8
4
|
|
|
5
|
+
var _chunkFWBYTZIVjs = require('./chunk-FWBYTZIV.js');
|
|
6
|
+
require('./chunk-CCTDGAMA.js');
|
|
7
|
+
require('./chunk-U4Q3MW45.js');
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Object.defineProperty(exports, "getEnv", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return chunkC5QQGBN4_js.getEnv; }
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "initEnv", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () { return chunkC5QQGBN4_js.initEnv; }
|
|
21
|
-
});
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.EnvStore = _chunkFWBYTZIVjs.EnvStore; exports.getEnv = _chunkFWBYTZIVjs.getEnv; exports.initEnv = _chunkFWBYTZIVjs.initEnv;
|
package/dist/environment.mjs
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import {
|
|
2
|
+
EnvStore,
|
|
3
|
+
getEnv,
|
|
4
|
+
initEnv
|
|
5
|
+
} from "./chunk-F2VAAEVB.mjs";
|
|
6
|
+
import "./chunk-ZDXEWQQD.mjs";
|
|
7
|
+
import "./chunk-HQVNK2EW.mjs";
|
|
8
|
+
export {
|
|
9
|
+
EnvStore,
|
|
10
|
+
getEnv,
|
|
11
|
+
initEnv
|
|
12
|
+
};
|
package/dist/hooks.d.mts
CHANGED
|
@@ -164,12 +164,6 @@ declare const useGetFormView: ({ data, queryKey, enabled, }: {
|
|
|
164
164
|
enabled?: any;
|
|
165
165
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
166
166
|
|
|
167
|
-
declare const useGetImage: ({ data, queryKey, src, }: {
|
|
168
|
-
data: any;
|
|
169
|
-
queryKey: any;
|
|
170
|
-
src: any;
|
|
171
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
172
|
-
|
|
173
167
|
declare const useSendComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
174
168
|
data: any;
|
|
175
169
|
}, unknown>;
|
|
@@ -503,22 +497,6 @@ declare const useGetPartnerTitle: () => _tanstack_react_query.UseMutationResult<
|
|
|
503
497
|
|
|
504
498
|
declare const useActionServerHome: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
505
499
|
|
|
506
|
-
declare const useActionOpenHome: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
507
|
-
model: string;
|
|
508
|
-
method: string;
|
|
509
|
-
}, unknown>;
|
|
510
|
-
|
|
511
|
-
declare const useGetPoints: ({ path }: {
|
|
512
|
-
path: string;
|
|
513
|
-
}) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
514
|
-
|
|
515
|
-
declare const useGetOrders: ({ kwargs, withContext, }: {
|
|
516
|
-
kwargs: any;
|
|
517
|
-
withContext: any;
|
|
518
|
-
}) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
519
|
-
|
|
520
|
-
declare const useGetVouchers: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
521
|
-
|
|
522
500
|
declare const useReadGroup: (services?: string, xNode?: any, body?: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
523
501
|
|
|
524
502
|
declare const useGetDataChart: (services?: string, xNode?: any, body?: any, enabled?: boolean, path?: string, method?: string, queryKey?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -805,6 +783,12 @@ declare const useSyncFromUi: () => _tanstack_react_query.UseMutationResult<unkno
|
|
|
805
783
|
service?: string;
|
|
806
784
|
}, unknown>;
|
|
807
785
|
|
|
786
|
+
declare const useGetCustomerLoyaltyPoint: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
787
|
+
service?: string;
|
|
788
|
+
xNode?: string;
|
|
789
|
+
partnerId: number;
|
|
790
|
+
}, unknown>;
|
|
791
|
+
|
|
808
792
|
declare const useAddFloor: () => _tanstack_react_query.UseMutationResult<[number, string][] | null, Error, {
|
|
809
793
|
name: string;
|
|
810
794
|
sequence?: number;
|
|
@@ -1052,4 +1036,4 @@ declare const useTogglePosRestaurant: () => _tanstack_react_query.UseMutationRes
|
|
|
1052
1036
|
module_pos_restaurant: boolean;
|
|
1053
1037
|
}, unknown>;
|
|
1054
1038
|
|
|
1055
|
-
export {
|
|
1039
|
+
export { useActionServerHome, useAddCategory, useAddEntity, useAddFloor, useAddPaymentMethod, useAddProduct, useAddProductToOrder, useAddTable, useAppAuthenticate, useApplyVoucher, useAssignRole, useButton, useChangeOrderPreparationState, useChangeStatus, useCheckPayment, useCompleteCurrentStage, useCreateCustomer, useCreateEInvoice, useCreateEntity, useCreateOrder, useCreatePayment, useCreatePosConfig, useCreateSession, useDelete, useDeleteCategory, useDeleteComment, useDeleteCustomer, useDeleteEntity, useDeleteFloor, useDeleteOrder, useDeleteOrderLine, useDeleteProduct, useDeleteTable, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetCity, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCountry, useGetCurrency, useGetCurrentCompany, useGetCurrentUser, useGetCustomerLoyaltyPoint, useGetDataChart, useGetDetail, useGetEInvoiceInfo, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetFunctionalModules, useGetGroups, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetListRoles, useGetListUsers, useGetMenu, useGetNotifications, useGetOrderLine, useGetPartnerTitle, useGetPinCode, useGetPos, useGetPreparationDisplayData, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetSupaCurrentUser, useGetTenantMapping, useGetThreadData, useGetThreadMessages, useGetToken, useGetUser, useGetVersion, useGetView, useGetWard, useGrantAccess, useHandleCloseSession, useHandleClosingDetailSession, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLoginTenantUser, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useProcessOrder, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRemoveVoucher, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSavePinCode, useSearchJournal, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSupaUploadImage, useSwitchLocale, useSyncFromUi, useTogglePosRestaurant, useUpdateCategory, useUpdateClosedSession, useUpdateCustomer, useUpdateEntity, useUpdateFloor, useUpdateOrder, useUpdateOrderLine, useUpdateOrderStatus, useUpdateOrderTotalAmount, useUpdatePassword, useUpdateProduct, useUpdateSessionPaymentMethods, useUpdateTable, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
|
package/dist/hooks.d.ts
CHANGED
|
@@ -164,12 +164,6 @@ declare const useGetFormView: ({ data, queryKey, enabled, }: {
|
|
|
164
164
|
enabled?: any;
|
|
165
165
|
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
166
166
|
|
|
167
|
-
declare const useGetImage: ({ data, queryKey, src, }: {
|
|
168
|
-
data: any;
|
|
169
|
-
queryKey: any;
|
|
170
|
-
src: any;
|
|
171
|
-
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
172
|
-
|
|
173
167
|
declare const useSendComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
174
168
|
data: any;
|
|
175
169
|
}, unknown>;
|
|
@@ -503,22 +497,6 @@ declare const useGetPartnerTitle: () => _tanstack_react_query.UseMutationResult<
|
|
|
503
497
|
|
|
504
498
|
declare const useActionServerHome: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
505
499
|
|
|
506
|
-
declare const useActionOpenHome: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
507
|
-
model: string;
|
|
508
|
-
method: string;
|
|
509
|
-
}, unknown>;
|
|
510
|
-
|
|
511
|
-
declare const useGetPoints: ({ path }: {
|
|
512
|
-
path: string;
|
|
513
|
-
}) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
514
|
-
|
|
515
|
-
declare const useGetOrders: ({ kwargs, withContext, }: {
|
|
516
|
-
kwargs: any;
|
|
517
|
-
withContext: any;
|
|
518
|
-
}) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
519
|
-
|
|
520
|
-
declare const useGetVouchers: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
521
|
-
|
|
522
500
|
declare const useReadGroup: (services?: string, xNode?: any, body?: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
523
501
|
|
|
524
502
|
declare const useGetDataChart: (services?: string, xNode?: any, body?: any, enabled?: boolean, path?: string, method?: string, queryKey?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
@@ -805,6 +783,12 @@ declare const useSyncFromUi: () => _tanstack_react_query.UseMutationResult<unkno
|
|
|
805
783
|
service?: string;
|
|
806
784
|
}, unknown>;
|
|
807
785
|
|
|
786
|
+
declare const useGetCustomerLoyaltyPoint: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
787
|
+
service?: string;
|
|
788
|
+
xNode?: string;
|
|
789
|
+
partnerId: number;
|
|
790
|
+
}, unknown>;
|
|
791
|
+
|
|
808
792
|
declare const useAddFloor: () => _tanstack_react_query.UseMutationResult<[number, string][] | null, Error, {
|
|
809
793
|
name: string;
|
|
810
794
|
sequence?: number;
|
|
@@ -1052,4 +1036,4 @@ declare const useTogglePosRestaurant: () => _tanstack_react_query.UseMutationRes
|
|
|
1052
1036
|
module_pos_restaurant: boolean;
|
|
1053
1037
|
}, unknown>;
|
|
1054
1038
|
|
|
1055
|
-
export {
|
|
1039
|
+
export { useActionServerHome, useAddCategory, useAddEntity, useAddFloor, useAddPaymentMethod, useAddProduct, useAddProductToOrder, useAddTable, useAppAuthenticate, useApplyVoucher, useAssignRole, useButton, useChangeOrderPreparationState, useChangeStatus, useCheckPayment, useCompleteCurrentStage, useCreateCustomer, useCreateEInvoice, useCreateEntity, useCreateOrder, useCreatePayment, useCreatePosConfig, useCreateSession, useDelete, useDeleteCategory, useDeleteComment, useDeleteCustomer, useDeleteEntity, useDeleteFloor, useDeleteOrder, useDeleteOrderLine, useDeleteProduct, useDeleteTable, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGenSerialNumber, useGeneratePaymentQrInfo, useGet2FAMethods, useGetASession, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetCity, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCountry, useGetCurrency, useGetCurrentCompany, useGetCurrentUser, useGetCustomerLoyaltyPoint, useGetDataChart, useGetDetail, useGetEInvoiceInfo, useGetExternalTabs, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetFunctionalModules, useGetGroups, useGetList, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetListRoles, useGetListUsers, useGetMenu, useGetNotifications, useGetOrderLine, useGetPartnerTitle, useGetPinCode, useGetPos, useGetPreparationDisplayData, useGetPrintReport, useGetProGressBar, useGetProductImage, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetSupaCurrentUser, useGetTenantMapping, useGetThreadData, useGetThreadMessages, useGetToken, useGetUser, useGetVersion, useGetView, useGetWard, useGrantAccess, useHandleCloseSession, useHandleClosingDetailSession, useHandleClosingSession, useIsValidToken, useLoadAction, useLoadDataPosSession, useLoadMessage, useLoginCredential, useLoginSocial, useLoginTenantUser, useLogout, useManageOnChange, useManageSession, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useProcessOrder, useReadGroup, useRemoveRow, useRemoveTotpSetup, useRemoveVoucher, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSavePinCode, useSearchJournal, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSupaUploadImage, useSwitchLocale, useSyncFromUi, useTogglePosRestaurant, useUpdateCategory, useUpdateClosedSession, useUpdateCustomer, useUpdateEntity, useUpdateFloor, useUpdateOrder, useUpdateOrderLine, useUpdateOrderStatus, useUpdateOrderTotalAmount, useUpdatePassword, useUpdateProduct, useUpdateSessionPaymentMethods, useUpdateTable, useUploadFile, useUploadFileExcel, useUploadIdFile, useUploadImage, useValidateActionToken, useVerify2FA, useVerifyTotp };
|