ts-glitter 21.7.7 → 21.7.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/lowcode/Entry.js +1 -1
- package/lowcode/Entry.ts +1 -1
- package/lowcode/backend-manager/bg-blog.js +1 -6
- package/lowcode/backend-manager/bg-blog.ts +1 -11
- package/lowcode/backend-manager/bg-dialog.js +176 -0
- package/lowcode/backend-manager/bg-dialog.ts +230 -0
- package/lowcode/backend-manager/bg-product.js +1 -3
- package/lowcode/backend-manager/bg-product.ts +1 -5
- package/lowcode/cms-plugin/module/delivery-html.js +56 -5
- package/lowcode/cms-plugin/module/delivery-html.ts +69 -14
- package/lowcode/cms-plugin/shopping-discount-setting.js +234 -1468
- package/lowcode/cms-plugin/shopping-discount-setting.ts +302 -1732
- package/lowcode/jslib/lottie-player.js +143 -39
- package/lowcode/public-components/product/pd-card-01.js +1 -1
- package/lowcode/public-components/product/pd-card-01.ts +5 -8
- package/lowcode/public-components/product/pd-card-02.js +3 -2
- package/lowcode/public-components/product/pd-card-02.ts +7 -10
- package/lowcode/public-components/product/pd-card-03.js +3 -2
- package/lowcode/public-components/product/pd-card-03.ts +7 -9
- package/package.json +1 -1
- package/src/api-public/services/checkout-event.js +17 -7
- package/src/api-public/services/checkout-event.js.map +5 -1
- package/src/api-public/services/financial-serviceV2.js +17 -7
- package/src/api-public/services/financial-serviceV2.js.map +1 -1
- package/src/api-public/services/monitor.d.ts +0 -1
- package/src/api-public/services/shopee.js +17 -7
- package/src/api-public/services/shopee.js.map +1 -1
- package/src/api-public/services/shopping.js +3 -3
- package/src/api-public/services/shopping.js.map +1 -1
- package/src/api-public/services/shopping.ts +3 -5
- package/src/api-public/services/user.js +17 -7
- package/src/api-public/services/user.js.map +5 -1
- package/src/app-project/serverless/src/index.js +17 -7
- package/src/app-project/serverless/src/index.js.map +1 -1
- package/src/app-project/serverless/src/modules/CryptoJS.js +17 -7
- package/src/app-project/serverless/src/modules/CryptoJS.js.map +1 -1
- package/src/app-project/serverless/src/modules/ssh.js +17 -7
- package/src/app-project/serverless/src/modules/ssh.js.map +1 -1
- package/src/index.js +3 -3
- package/src/modules/CryptoJS.js +17 -7
- package/src/modules/CryptoJS.js.map +1 -1
- package/src/modules/database.d.ts +1 -1
- package/src/modules/ssh.js +17 -7
- package/src/modules/ssh.js.map +1 -1
- package/src/modules/tool.d.ts +4 -4
- package/src/modules/tool.js +1 -2
- package/src/modules/tool.js.map +1 -1
- package/src/services/app.js +17 -7
- package/src/services/app.js.map +1 -1
|
@@ -2954,13 +2954,13 @@ export class Shopping {
|
|
|
2954
2954
|
function filterVoucherlist(vouchers: VoucherData[]) {
|
|
2955
2955
|
return vouchers
|
|
2956
2956
|
.filter(voucher => {
|
|
2957
|
-
return [checkSource, checkTarget, setBindProduct
|
|
2957
|
+
return [checkSource, checkTarget, setBindProduct].every(fn => fn(voucher));
|
|
2958
2958
|
})
|
|
2959
2959
|
.sort((a, b) => {
|
|
2960
2960
|
return sortedVoucher.toggle ? manualSorted(a, b) : compare(b) - compare(a);
|
|
2961
2961
|
})
|
|
2962
2962
|
.filter(voucher => {
|
|
2963
|
-
return [checkOverlay, checkCondition].every(fn => fn(voucher));
|
|
2963
|
+
return [checkCartTotal, checkOverlay, checkCondition].every(fn => fn(voucher));
|
|
2964
2964
|
})
|
|
2965
2965
|
.map(voucher => {
|
|
2966
2966
|
countingBindDiscount(voucher);
|
|
@@ -3075,7 +3075,6 @@ export class Shopping {
|
|
|
3075
3075
|
);
|
|
3076
3076
|
for (const email of emailList) {
|
|
3077
3077
|
if (email) {
|
|
3078
|
-
|
|
3079
3078
|
await this.sendNotifications(orderData, 'order-cancel-success');
|
|
3080
3079
|
}
|
|
3081
3080
|
}
|
|
@@ -3400,10 +3399,9 @@ export class Shopping {
|
|
|
3400
3399
|
shipment: 'shipment',
|
|
3401
3400
|
arrival: 'shipment-arrival',
|
|
3402
3401
|
in_stock: 'in-stock',
|
|
3403
|
-
|
|
3402
|
+
'order-cancel-success': 'order-cancel-success',
|
|
3404
3403
|
};
|
|
3405
3404
|
|
|
3406
|
-
|
|
3407
3405
|
if (lineID) {
|
|
3408
3406
|
const line = new LineMessage(this.app);
|
|
3409
3407
|
messages.push(line.sendCustomerLine(`auto-line-${typeMap[type]}`, orderData.orderID, lineID));
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|