@pisell/lowcode-renderer 1.0.103 → 1.0.104
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/es/ReactRenderer/index.js +31 -64
- package/es/Render/index.d.ts +17 -13
- package/es/Render/index.js +145 -242
- package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/asyncToGenerator.js +28 -0
- package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/defineProperty.js +14 -0
- package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/objectSpread2.js +27 -0
- package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/objectWithoutProperties.js +15 -0
- package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/objectWithoutPropertiesLoose.js +13 -0
- package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/toPrimitive.js +16 -0
- package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/toPropertyKey.js +11 -0
- package/es/_virtual/_@oxc-project_runtime@0.108.0/helpers/typeof.js +12 -0
- package/es/api/index.js +11 -6
- package/es/api/report/URL.js +42 -71
- package/es/api/report/index.js +75 -112
- package/es/api/utils/index.js +5 -1
- package/es/appHelper/index.js +28 -26
- package/es/appHelper/others.js +10 -8
- package/es/config/index.d.ts +12 -13
- package/es/config/index.js +13 -14
- package/es/index.d.ts +3 -4
- package/es/index.js +8 -4
- package/lib/ReactRenderer/index.js +40 -75
- package/lib/Render/index.d.ts +16 -12
- package/lib/Render/index.js +152 -187
- package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/asyncToGenerator.js +29 -0
- package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/defineProperty.js +14 -0
- package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/objectSpread2.js +27 -0
- package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/objectWithoutProperties.js +15 -0
- package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/objectWithoutPropertiesLoose.js +14 -0
- package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/toPrimitive.js +16 -0
- package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/toPropertyKey.js +11 -0
- package/lib/_virtual/_@oxc-project_runtime@0.108.0/helpers/typeof.js +18 -0
- package/lib/_virtual/rolldown_runtime.js +29 -0
- package/lib/api/index.js +8 -37
- package/lib/api/report/URL.js +40 -98
- package/lib/api/report/index.js +83 -116
- package/lib/api/utils/index.js +4 -23
- package/lib/appHelper/index.js +27 -58
- package/lib/appHelper/others.js +17 -48
- package/lib/config/index.d.ts +12 -13
- package/lib/config/index.js +21 -46
- package/lib/index.d.ts +3 -4
- package/lib/index.js +9 -41
- package/package.json +2 -2
- package/es/ReactRenderer/index.d.ts +0 -3
- package/es/api/index.d.ts +0 -7
- package/es/api/report/URL.d.ts +0 -39
- package/es/api/report/index.d.ts +0 -5
- package/es/api/utils/index.d.ts +0 -2
- package/es/appHelper/index.d.ts +0 -2
- package/es/appHelper/others.d.ts +0 -1
- package/lib/ReactRenderer/index.d.ts +0 -3
- package/lib/api/index.d.ts +0 -7
- package/lib/api/report/URL.d.ts +0 -39
- package/lib/api/report/index.d.ts +0 -5
- package/lib/api/utils/index.d.ts +0 -2
- package/lib/appHelper/index.d.ts +0 -2
- package/lib/appHelper/others.d.ts +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_typeof = require('./typeof.js');
|
|
2
|
+
|
|
3
|
+
//#region \0@oxc-project+runtime@0.108.0/helpers/toPrimitive.js
|
|
4
|
+
function toPrimitive(t, r) {
|
|
5
|
+
if ("object" != require_typeof._typeof(t) || !t) return t;
|
|
6
|
+
var e = t[Symbol.toPrimitive];
|
|
7
|
+
if (void 0 !== e) {
|
|
8
|
+
var i = e.call(t, r || "default");
|
|
9
|
+
if ("object" != require_typeof._typeof(i)) return i;
|
|
10
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
11
|
+
}
|
|
12
|
+
return ("string" === r ? String : Number)(t);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.toPrimitive = toPrimitive;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const require_typeof = require('./typeof.js');
|
|
2
|
+
const require_toPrimitive = require('./toPrimitive.js');
|
|
3
|
+
|
|
4
|
+
//#region \0@oxc-project+runtime@0.108.0/helpers/toPropertyKey.js
|
|
5
|
+
function toPropertyKey(t) {
|
|
6
|
+
var i = require_toPrimitive.toPrimitive(t, "string");
|
|
7
|
+
return "symbol" == require_typeof._typeof(i) ? i : i + "";
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
exports.toPropertyKey = toPropertyKey;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
//#region \0@oxc-project+runtime@0.108.0/helpers/typeof.js
|
|
3
|
+
function _typeof(o) {
|
|
4
|
+
"@babel/helpers - typeof";
|
|
5
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
|
6
|
+
return typeof o$1;
|
|
7
|
+
} : function(o$1) {
|
|
8
|
+
return o$1 && "function" == typeof Symbol && o$1.constructor === Symbol && o$1 !== Symbol.prototype ? "symbol" : typeof o$1;
|
|
9
|
+
}, _typeof(o);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
Object.defineProperty(exports, '_typeof', {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return _typeof;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
+
__defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
+
value: mod,
|
|
24
|
+
enumerable: true
|
|
25
|
+
}) : target, mod));
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
|
|
29
|
+
exports.__toESM = __toESM;
|
package/lib/api/index.js
CHANGED
|
@@ -1,40 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
const require_index = require('./report/index.js');
|
|
2
|
+
const require_index$1 = require('./utils/index.js');
|
|
28
3
|
|
|
29
|
-
|
|
30
|
-
var api_exports = {};
|
|
31
|
-
__export(api_exports, {
|
|
32
|
-
default: () => api_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(api_exports);
|
|
35
|
-
var import_report = __toESM(require("./report"));
|
|
36
|
-
var import_utils = __toESM(require("./utils"));
|
|
4
|
+
//#region src/api/index.ts
|
|
37
5
|
var api_default = {
|
|
38
|
-
|
|
39
|
-
|
|
6
|
+
report: require_index.default,
|
|
7
|
+
utils: require_index$1.default
|
|
40
8
|
};
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
exports.default = api_default;
|
package/lib/api/report/URL.js
CHANGED
|
@@ -1,101 +1,43 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
1
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK: () => TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK,
|
|
39
|
-
TEAM_SELF_COMMISSION_DETAIL: () => TEAM_SELF_COMMISSION_DETAIL,
|
|
40
|
-
default: () => URL_default
|
|
41
|
-
});
|
|
42
|
-
module.exports = __toCommonJS(URL_exports);
|
|
43
|
-
var REPORT_DETAILED_TRANSACTIONS = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/cc1bc2ac0f824122a51b1cc17f099789/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=6KPhYcHFqzW9dtDM32SVwiUifZpv1GgWZKIUHe9SJeg";
|
|
44
|
-
var REPORT_DETAILED_PRODUCT_SALES = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/40bf1ebddfaf414fb43430843655ebee/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=3DkhPvWoEuTqU01_Tw4RX72xYzoGticn2pmUbMOrVVk";
|
|
45
|
-
var REPORT_DAILY_SUMMARY_BY_PAYMETHOD = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/69ecf67d14dc4c5494ac6e58e4168b44/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=KumpRo7KaVI9t87xHdgck90RUhQzPNho4dj4ZjYIT8A";
|
|
46
|
-
var REPORT_DAILY_SUMMARY_BY_ORDER = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/4c579e57f93143518bb0b51675681ba5/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=x6yfwsN5Ib4kg60YgUVBt0dedig0xmlHQmLnRPv8sU8";
|
|
47
|
-
var REPORT_DETAILED_ORDERS = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/2a71808194724ce7966fc516cbea6889/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=C0fbm_bBHwow8vpcaITeFDQvRnLr89h4hn4NI700i-Y";
|
|
48
|
-
var REPORT_MONTH_SUMMARY_BY_ORDER = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/bb93098ba15e48b5af16d8519f01c959/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=v1XnVmCCrr6b988OWEaAAuss_f_jo7QLRTdI-8e4P0s";
|
|
49
|
-
var REPORT_WEEK_SUMMARY_BY_ORDER = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/74eb659a4c264b6ca85cfacd328443eb/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=o00TZeefc7pDLarU-_IATCAem44sz6xXo-Eq4YP9g6c";
|
|
50
|
-
var REPORT_DASHBOARD = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/5f64fa8f8c614e29aee96f7def6453e2/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=fJ0yL-7Z6AGPOyMF7phBI_E8zGWwHZGsw9JzPPxbsx4";
|
|
51
|
-
var DAILY_SUMMARY_BY_PRODUCT = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/405cc89013d04a529a214a3e7b1fff09/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=z5phYh9UN9xWqIwiSWoPwqjClMDUseXomHg-J3zUVcs";
|
|
52
|
-
var SALES_SUMMARY_BY_PRODUCT = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/feb08c0d3c6042aa966be63d75ebd815/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=lUVv7NZM-pBSnEwHx6ICyWZ9hGj2rfqkxnk7_-TzsnY";
|
|
53
|
-
var TEAM_MEMBERS_COMMISSION_DETAIL = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/4cd03307457146bbbbf49e946f7638ea/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=6YQKz5LIzGJ6VAwc9Eb9F8Jdk1gkfGmxXBcSHcgDxEE";
|
|
54
|
-
var TEAM_SELF_COMMISSION_DETAIL = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/4cd03307457146bbbbf49e946f7638ea/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=6YQKz5LIzGJ6VAwc9Eb9F8Jdk1gkfGmxXBcSHcgDxEE";
|
|
55
|
-
var TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/e5a7153200d140a7b77613f76dd4b6ed/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=8FV8G4gxpwfHDVGvC3D7iVPHm9z71P2MDGUeFV9E1g8";
|
|
56
|
-
var BOOKING_BY_CHECK_IN_OUT_DATE = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/2773a0f0afdb4bd29e8a3d22fd6f0826/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=TB43rU-BGNhhPJW216Yna-dKXK3vupnDY8XpuqUaVbg";
|
|
57
|
-
var SALES_SUMMARY_BY_CHANNEL = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/aafe09ada85d49a98082fc99560dd611/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=tX3d-muq_CuvlFLcGe59H_yQSfkPh4s_VzjpttDYSV0";
|
|
58
|
-
var SALES_SUMMARY_BY_PAYMENT_METHOD = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/572b1d5cf9384971bdb03386d94c3ec6/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=nbz0iPpbg9yfD5h1RftEOzzoyRcZfqAYJcwuNVb0IKI";
|
|
59
|
-
var SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/2cfbef5e3f68426f94c2b417b86cb798/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=D_0IA0Z-4g8eQJTtGyp9Fs_heC0tZxdMdqdCrm_I_io";
|
|
60
|
-
var TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/de0349380f904e0ab4f08d0e507d678e/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=qYePNNR5GBJ-LPAN6-xuoevyMXqZCfVGs7XqoJB14pY";
|
|
2
|
+
//#region src/api/report/URL.ts
|
|
3
|
+
const REPORT_DETAILED_TRANSACTIONS = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/cc1bc2ac0f824122a51b1cc17f099789/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=6KPhYcHFqzW9dtDM32SVwiUifZpv1GgWZKIUHe9SJeg";
|
|
4
|
+
const REPORT_DETAILED_PRODUCT_SALES = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/40bf1ebddfaf414fb43430843655ebee/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=3DkhPvWoEuTqU01_Tw4RX72xYzoGticn2pmUbMOrVVk";
|
|
5
|
+
const REPORT_DAILY_SUMMARY_BY_PAYMETHOD = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/69ecf67d14dc4c5494ac6e58e4168b44/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=KumpRo7KaVI9t87xHdgck90RUhQzPNho4dj4ZjYIT8A";
|
|
6
|
+
const REPORT_DAILY_SUMMARY_BY_ORDER = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/4c579e57f93143518bb0b51675681ba5/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=x6yfwsN5Ib4kg60YgUVBt0dedig0xmlHQmLnRPv8sU8";
|
|
7
|
+
const REPORT_DETAILED_ORDERS = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/2a71808194724ce7966fc516cbea6889/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=C0fbm_bBHwow8vpcaITeFDQvRnLr89h4hn4NI700i-Y";
|
|
8
|
+
const REPORT_MONTH_SUMMARY_BY_ORDER = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/bb93098ba15e48b5af16d8519f01c959/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=v1XnVmCCrr6b988OWEaAAuss_f_jo7QLRTdI-8e4P0s";
|
|
9
|
+
const REPORT_WEEK_SUMMARY_BY_ORDER = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/74eb659a4c264b6ca85cfacd328443eb/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=o00TZeefc7pDLarU-_IATCAem44sz6xXo-Eq4YP9g6c";
|
|
10
|
+
const REPORT_DASHBOARD = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/5f64fa8f8c614e29aee96f7def6453e2/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=fJ0yL-7Z6AGPOyMF7phBI_E8zGWwHZGsw9JzPPxbsx4";
|
|
11
|
+
const DAILY_SUMMARY_BY_PRODUCT = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/405cc89013d04a529a214a3e7b1fff09/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=z5phYh9UN9xWqIwiSWoPwqjClMDUseXomHg-J3zUVcs";
|
|
12
|
+
const SALES_SUMMARY_BY_PRODUCT = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/feb08c0d3c6042aa966be63d75ebd815/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=lUVv7NZM-pBSnEwHx6ICyWZ9hGj2rfqkxnk7_-TzsnY";
|
|
13
|
+
const TEAM_MEMBERS_COMMISSION_DETAIL = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/4cd03307457146bbbbf49e946f7638ea/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=6YQKz5LIzGJ6VAwc9Eb9F8Jdk1gkfGmxXBcSHcgDxEE";
|
|
14
|
+
const TEAM_SELF_COMMISSION_DETAIL = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/4cd03307457146bbbbf49e946f7638ea/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=6YQKz5LIzGJ6VAwc9Eb9F8Jdk1gkfGmxXBcSHcgDxEE";
|
|
15
|
+
const TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/e5a7153200d140a7b77613f76dd4b6ed/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=8FV8G4gxpwfHDVGvC3D7iVPHm9z71P2MDGUeFV9E1g8";
|
|
16
|
+
const BOOKING_BY_CHECK_IN_OUT_DATE = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/2773a0f0afdb4bd29e8a3d22fd6f0826/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=TB43rU-BGNhhPJW216Yna-dKXK3vupnDY8XpuqUaVbg";
|
|
17
|
+
const SALES_SUMMARY_BY_CHANNEL = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/aafe09ada85d49a98082fc99560dd611/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=tX3d-muq_CuvlFLcGe59H_yQSfkPh4s_VzjpttDYSV0";
|
|
18
|
+
const SALES_SUMMARY_BY_PAYMENT_METHOD = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/572b1d5cf9384971bdb03386d94c3ec6/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=nbz0iPpbg9yfD5h1RftEOzzoyRcZfqAYJcwuNVb0IKI";
|
|
19
|
+
const SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/2cfbef5e3f68426f94c2b417b86cb798/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=D_0IA0Z-4g8eQJTtGyp9Fs_heC0tZxdMdqdCrm_I_io";
|
|
20
|
+
const TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD = "https://default71c6456d7d904a51a050cb7bc314e8.83.environment.api.powerplatform.com:443/powerautomate/automations/direct/workflows/de0349380f904e0ab4f08d0e507d678e/triggers/manual/paths/invoke?api-version=1&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=qYePNNR5GBJ-LPAN6-xuoevyMXqZCfVGs7XqoJB14pY";
|
|
61
21
|
var URL_default = {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
22
|
+
REPORT_DETAILED_TRANSACTIONS,
|
|
23
|
+
REPORT_DETAILED_PRODUCT_SALES,
|
|
24
|
+
REPORT_DAILY_SUMMARY_BY_PAYMETHOD,
|
|
25
|
+
REPORT_DAILY_SUMMARY_BY_ORDER,
|
|
26
|
+
REPORT_DETAILED_ORDERS,
|
|
27
|
+
REPORT_MONTH_SUMMARY_BY_ORDER,
|
|
28
|
+
REPORT_WEEK_SUMMARY_BY_ORDER,
|
|
29
|
+
REPORT_DASHBOARD,
|
|
30
|
+
DAILY_SUMMARY_BY_PRODUCT,
|
|
31
|
+
SALES_SUMMARY_BY_PRODUCT,
|
|
32
|
+
TEAM_MEMBERS_COMMISSION_DETAIL,
|
|
33
|
+
TEAM_SELF_COMMISSION_DETAIL,
|
|
34
|
+
TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK,
|
|
35
|
+
BOOKING_BY_CHECK_IN_OUT_DATE,
|
|
36
|
+
SALES_SUMMARY_BY_CHANNEL,
|
|
37
|
+
SALES_SUMMARY_BY_PAYMENT_METHOD,
|
|
38
|
+
SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD,
|
|
39
|
+
TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD
|
|
80
40
|
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
DAILY_SUMMARY_BY_PRODUCT,
|
|
85
|
-
REPORT_DAILY_SUMMARY_BY_ORDER,
|
|
86
|
-
REPORT_DAILY_SUMMARY_BY_PAYMETHOD,
|
|
87
|
-
REPORT_DASHBOARD,
|
|
88
|
-
REPORT_DETAILED_ORDERS,
|
|
89
|
-
REPORT_DETAILED_PRODUCT_SALES,
|
|
90
|
-
REPORT_DETAILED_TRANSACTIONS,
|
|
91
|
-
REPORT_MONTH_SUMMARY_BY_ORDER,
|
|
92
|
-
REPORT_WEEK_SUMMARY_BY_ORDER,
|
|
93
|
-
SALES_SUMMARY_BY_CHANNEL,
|
|
94
|
-
SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD,
|
|
95
|
-
SALES_SUMMARY_BY_PAYMENT_METHOD,
|
|
96
|
-
SALES_SUMMARY_BY_PRODUCT,
|
|
97
|
-
TEAM_MEMBERS_COMMISSION_DETAIL,
|
|
98
|
-
TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD,
|
|
99
|
-
TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK,
|
|
100
|
-
TEAM_SELF_COMMISSION_DETAIL
|
|
101
|
-
});
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
exports.default = URL_default;
|
package/lib/api/report/index.js
CHANGED
|
@@ -1,120 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.js');
|
|
2
|
+
const require_index = require('../../config/index.js');
|
|
3
|
+
const require_URL = require('./URL.js');
|
|
4
|
+
const require_objectWithoutProperties = require('../../_virtual/_@oxc-project_runtime@0.108.0/helpers/objectWithoutProperties.js');
|
|
5
|
+
const require_objectSpread2 = require('../../_virtual/_@oxc-project_runtime@0.108.0/helpers/objectSpread2.js');
|
|
6
|
+
const require_asyncToGenerator = require('../../_virtual/_@oxc-project_runtime@0.108.0/helpers/asyncToGenerator.js');
|
|
7
|
+
let dayjs = require("dayjs");
|
|
8
|
+
dayjs = require_rolldown_runtime.__toESM(dayjs);
|
|
9
|
+
let dayjs_plugin_utc = require("dayjs/plugin/utc");
|
|
10
|
+
dayjs_plugin_utc = require_rolldown_runtime.__toESM(dayjs_plugin_utc);
|
|
11
|
+
let dayjs_plugin_timezone = require("dayjs/plugin/timezone");
|
|
12
|
+
dayjs_plugin_timezone = require_rolldown_runtime.__toESM(dayjs_plugin_timezone);
|
|
28
13
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"REPORT_DASHBOARD",
|
|
44
|
-
"TEAM_MEMBERS_COMMISSION_DETAIL",
|
|
45
|
-
"TEAM_SELF_COMMISSION_DETAIL",
|
|
46
|
-
"TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK",
|
|
47
|
-
"BOOKING_BY_CHECK_IN_OUT_DATE",
|
|
48
|
-
"SALES_SUMMARY_BY_CHANNEL",
|
|
49
|
-
"SALES_SUMMARY_BY_PAYMENT_METHOD",
|
|
50
|
-
"SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD",
|
|
51
|
-
"TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD"
|
|
14
|
+
//#region src/api/report/index.ts
|
|
15
|
+
const _excluded = ["date", "exportFile"];
|
|
16
|
+
dayjs.default.extend(dayjs_plugin_utc.default);
|
|
17
|
+
dayjs.default.extend(dayjs_plugin_timezone.default);
|
|
18
|
+
const includeTimeZoneUrl = [
|
|
19
|
+
"REPORT_DASHBOARD",
|
|
20
|
+
"TEAM_MEMBERS_COMMISSION_DETAIL",
|
|
21
|
+
"TEAM_SELF_COMMISSION_DETAIL",
|
|
22
|
+
"TEAM_MEMBERS_COMMISSION_SUMMARY_BY_WEEK",
|
|
23
|
+
"BOOKING_BY_CHECK_IN_OUT_DATE",
|
|
24
|
+
"SALES_SUMMARY_BY_CHANNEL",
|
|
25
|
+
"SALES_SUMMARY_BY_PAYMENT_METHOD",
|
|
26
|
+
"SALES_SUMMARY_BY_CHANNEL_PAYMENT_METHOD",
|
|
27
|
+
"TEAM_MEMBERS_COMMISSION_SUMMARY_BY_PERIOD"
|
|
52
28
|
];
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const diff = now.utcOffset() / 60;
|
|
56
|
-
return diff;
|
|
57
|
-
};
|
|
58
|
-
var getParams = (values, url) => {
|
|
59
|
-
var _a, _b;
|
|
60
|
-
let { id, timezone: timezone2 } = (0, import_config.getShopConfig)();
|
|
61
|
-
let timezoneObj = {};
|
|
62
|
-
if (includeTimeZoneUrl.includes(url)) {
|
|
63
|
-
timezoneObj = {
|
|
64
|
-
timezone: getTimeDiff(timezone2)
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
let { date, exportFile, ...others } = values || {};
|
|
68
|
-
if (url === "TEAM_SELF_COMMISSION_DETAIL") {
|
|
69
|
-
const { id: id2 } = (0, import_config.getAccount)() || {};
|
|
70
|
-
if (id2) {
|
|
71
|
-
others["form_record_id"] = id2;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
let start_at = 0;
|
|
75
|
-
let end_at = 0;
|
|
76
|
-
if (date && Array.isArray(date) && date[0]) {
|
|
77
|
-
start_at = (0, import_dayjs.default)(date[0]);
|
|
78
|
-
end_at = (0, import_dayjs.default)(date[1]);
|
|
79
|
-
} else {
|
|
80
|
-
start_at = (0, import_dayjs.default)().startOf("day");
|
|
81
|
-
end_at = start_at.endOf("day");
|
|
82
|
-
}
|
|
83
|
-
console.log(id, timezone2, start_at, end_at, values, "getReportList");
|
|
84
|
-
start_at = import_dayjs.default.tz(start_at.format("YYYY-MM-DD HH:mm:ss"), timezone2).unix();
|
|
85
|
-
end_at = import_dayjs.default.tz(end_at.format("YYYY-MM-DD HH:mm:ss"), timezone2).unix();
|
|
86
|
-
let server = "au";
|
|
87
|
-
if (typeof window !== "undefined" && ((_a = window == null ? void 0 : window.__APP_CONFIG__) == null ? void 0 : _a.server)) {
|
|
88
|
-
server = ((_b = window == null ? void 0 : window.__APP_CONFIG__) == null ? void 0 : _b.server) || "au";
|
|
89
|
-
}
|
|
90
|
-
console.log(id, timezone2, start_at, end_at, values, url, timezoneObj, server, others, "getReportList");
|
|
91
|
-
return {
|
|
92
|
-
shop_id: id,
|
|
93
|
-
start_at,
|
|
94
|
-
end_at,
|
|
95
|
-
...timezoneObj,
|
|
96
|
-
local_timezone: getTimeDiff(import_dayjs.default.tz.guess()),
|
|
97
|
-
exportFile,
|
|
98
|
-
server,
|
|
99
|
-
...others
|
|
100
|
-
// email: 'nick.li@pisell.com',
|
|
101
|
-
};
|
|
29
|
+
const getTimeDiff = (timezone) => {
|
|
30
|
+
return (0, dayjs.default)().tz(timezone).utcOffset() / 60;
|
|
102
31
|
};
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
32
|
+
const getParams = (values, url) => {
|
|
33
|
+
var _window;
|
|
34
|
+
let { id, timezone } = require_index.getShopConfig();
|
|
35
|
+
let timezoneObj = {};
|
|
36
|
+
if (includeTimeZoneUrl.includes(url)) timezoneObj = { timezone: getTimeDiff(timezone) };
|
|
37
|
+
let _ref = values || {}, { date, exportFile } = _ref, others = require_objectWithoutProperties._objectWithoutProperties(_ref, _excluded);
|
|
38
|
+
if (url === "TEAM_SELF_COMMISSION_DETAIL") {
|
|
39
|
+
const { id: id$1 } = require_index.getAccount() || {};
|
|
40
|
+
if (id$1) others["form_record_id"] = id$1;
|
|
41
|
+
}
|
|
42
|
+
let start_at = 0;
|
|
43
|
+
let end_at = 0;
|
|
44
|
+
if (date && Array.isArray(date) && date[0]) {
|
|
45
|
+
start_at = (0, dayjs.default)(date[0]);
|
|
46
|
+
end_at = (0, dayjs.default)(date[1]);
|
|
47
|
+
} else {
|
|
48
|
+
start_at = (0, dayjs.default)().startOf("day");
|
|
49
|
+
end_at = start_at.endOf("day");
|
|
50
|
+
}
|
|
51
|
+
console.log(id, timezone, start_at, end_at, values, "getReportList");
|
|
52
|
+
start_at = dayjs.default.tz(start_at.format("YYYY-MM-DD HH:mm:ss"), timezone).unix();
|
|
53
|
+
end_at = dayjs.default.tz(end_at.format("YYYY-MM-DD HH:mm:ss"), timezone).unix();
|
|
54
|
+
let server = "au";
|
|
55
|
+
if (typeof window !== "undefined" && ((_window = window) === null || _window === void 0 || (_window = _window.__APP_CONFIG__) === null || _window === void 0 ? void 0 : _window.server)) {
|
|
56
|
+
var _window2;
|
|
57
|
+
server = ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.__APP_CONFIG__) === null || _window2 === void 0 ? void 0 : _window2.server) || "au";
|
|
58
|
+
}
|
|
59
|
+
console.log(id, timezone, start_at, end_at, values, url, timezoneObj, server, others, "getReportList");
|
|
60
|
+
return require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({
|
|
61
|
+
shop_id: id,
|
|
62
|
+
start_at,
|
|
63
|
+
end_at
|
|
64
|
+
}, timezoneObj), {}, {
|
|
65
|
+
local_timezone: getTimeDiff(dayjs.default.tz.guess()),
|
|
66
|
+
exportFile,
|
|
67
|
+
server
|
|
68
|
+
}, others);
|
|
120
69
|
};
|
|
70
|
+
const getReportList = function() {
|
|
71
|
+
var _ref2 = require_asyncToGenerator._asyncToGenerator(function* (values, url) {
|
|
72
|
+
const params = getParams(values, url);
|
|
73
|
+
return yield require_index.injectedConfig.request.custom(require_URL.default[url || "REPORT_DETAILED_TRANSACTIONS"] || url, {
|
|
74
|
+
method: "post",
|
|
75
|
+
data: params,
|
|
76
|
+
headers: { "Content-Type": "application/json; charset=utf-8" },
|
|
77
|
+
third: true
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
return function getReportList(_x, _x2) {
|
|
81
|
+
return _ref2.apply(this, arguments);
|
|
82
|
+
};
|
|
83
|
+
}();
|
|
84
|
+
var report_default = { getReportList };
|
|
85
|
+
|
|
86
|
+
//#endregion
|
|
87
|
+
exports.default = report_default;
|
package/lib/api/utils/index.js
CHANGED
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
1
|
|
|
19
|
-
|
|
20
|
-
var utils_exports = {};
|
|
21
|
-
__export(utils_exports, {
|
|
22
|
-
default: () => utils_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(utils_exports);
|
|
2
|
+
//#region src/api/utils/index.ts
|
|
25
3
|
var utils_default = {};
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
exports.default = utils_default;
|
package/lib/appHelper/index.js
CHANGED
|
@@ -1,60 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
|
|
2
|
+
const require_others = require('./others.js');
|
|
3
|
+
const require_index = require('../api/index.js');
|
|
4
|
+
let _pisell_utils = require("@pisell/utils");
|
|
28
5
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
isMobile: import_utils.isMobile,
|
|
50
|
-
isIos: import_utils.isIos,
|
|
51
|
-
isAndroid: import_utils.isAndroid,
|
|
52
|
-
getTimezone: import_others.getTimezone,
|
|
53
|
-
printerApi,
|
|
54
|
-
formatAmount: import_utils.formatAmount,
|
|
55
|
-
webPrint: import_utils.webPrint,
|
|
56
|
-
dataManager: import_utils.dataManager,
|
|
57
|
-
webPayment: import_utils.webPayment
|
|
58
|
-
}
|
|
59
|
-
};
|
|
6
|
+
//#region src/appHelper/index.ts
|
|
7
|
+
const appHelper = { utils: {
|
|
8
|
+
api: require_index.default,
|
|
9
|
+
isMobile: _pisell_utils.isMobile,
|
|
10
|
+
isIos: _pisell_utils.isIos,
|
|
11
|
+
isAndroid: _pisell_utils.isAndroid,
|
|
12
|
+
getTimezone: require_others.getTimezone,
|
|
13
|
+
printerApi: {
|
|
14
|
+
EscPosPrinter: _pisell_utils.EscPosPrinter,
|
|
15
|
+
ALIGN_LEFT: _pisell_utils.ALIGN_LEFT,
|
|
16
|
+
ALIGN_CENTER: _pisell_utils.ALIGN_CENTER,
|
|
17
|
+
ALIGN_RIGHT: _pisell_utils.ALIGN_RIGHT,
|
|
18
|
+
columnWidthWithAlignment: _pisell_utils.columnWidthWithAlignment,
|
|
19
|
+
preparing: _pisell_utils.preparing
|
|
20
|
+
},
|
|
21
|
+
formatAmount: _pisell_utils.formatAmount,
|
|
22
|
+
webPrint: _pisell_utils.webPrint,
|
|
23
|
+
dataManager: _pisell_utils.dataManager,
|
|
24
|
+
webPayment: _pisell_utils.webPayment
|
|
25
|
+
} };
|
|
60
26
|
var appHelper_default = appHelper;
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
exports.default = appHelper_default;
|