@feedmepos/mf-connect 0.1.110-prod → 0.1.112-prod
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/{App-BIuwkgjE.js → App-CFJcQZEE.js} +522 -500
- package/dist/{Bin-B6PDvhj7.js → Bin-DaqUNsSV.js} +8 -8
- package/dist/{Broadcast-BsUYu9Kq.js → Broadcast-CdAN6JCa.js} +82 -79
- package/dist/{CampaignAnalytic-D0_Kh2Sv.js → CampaignAnalytic-CpP7lgTX.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-bfMr_7XS.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BQiQVQBN.js} +49 -31
- package/dist/Card-Bmz5p5Pq.js +1085 -0
- package/dist/{Collections-B0umkbKL.js → Collections-BKND60cK.js} +9 -9
- package/dist/{Credit-DMrHYtmf.js → Credit-DQ_tDm8l.js} +11 -11
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-IuEHozwd.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CCwpsEWf.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C06_qwVx.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bn-lauCv.js} +34 -32
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CHCLAOYT.js → EffectSheet.vue_vue_type_style_index_0_lang-wUV_beN0.js} +6 -6
- package/dist/{Experience-3xvTI41j.js → Experience-BOE6jLIS.js} +86 -83
- package/dist/{FileSaver.min-CEjHOYSg.js → FileSaver.min-D0CP0E3N.js} +1 -1
- package/dist/{Game-Drkfnm94.js → Game-B-8by2dp.js} +12 -12
- package/dist/GiftCardSetup-CdqZd1ee.js +748 -0
- package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-BVTu4uTR.js +424 -0
- package/dist/Goals-xFHNbwt7.js +247 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BYIIaPD9.js → ImageInput.vue_vue_type_script_setup_true_lang-B5Z1AZRV.js} +1 -1
- package/dist/{Index-BNfZ-mAu.js → Index-t6veJ0lU.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CqJLimu2.js → LocationPicker.vue_vue_type_script_setup_true_lang-Deeanc8z.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BnMjqLMU.js → LottieAnimation.vue_vue_type_script_setup_true_lang-B8qOJYoS.js} +1 -1
- package/dist/{LoyaltyDashboard-BmRdWFCw.js → LoyaltyDashboard-DXNBsnM5.js} +1216 -1170
- package/dist/{MainLayout-m4H59w6_.js → MainLayout-CmCboaEn.js} +3 -3
- package/dist/{Marketing-BqdCdc76.js → Marketing-DCq9O5eb.js} +4 -4
- package/dist/{MarketingMaterialEdit-UjCEMJ7c.js → MarketingMaterialEdit-CGLxanxm.js} +6 -6
- package/dist/{Member-BbpQizye.js → Member-BCYmEmhD.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BbL7cw4g.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-Djrfmj9g.js} +26 -24
- package/dist/{MemberImportHistory-FYMyd_uX.js → MemberImportHistory-D-5NAOfo.js} +7 -7
- package/dist/{MemberList-CFtv0HI5.js → MemberList-IySTKOT_.js} +14 -14
- package/dist/{MemberTransactions-BYpugGs7.js → MemberTransactions-BgQZvc5O.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CDzQ0rnK.js → MessageInput.vue_vue_type_script_setup_true_lang-N8PCSKBx.js} +3369 -3290
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BlhwugZQ.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-_JNdYsBu.js} +1 -1
- package/dist/{Mission-BMhY1kl1.js → Mission-DtaTKWE2.js} +83 -80
- package/dist/{Overview-BmZelkd_.js → Overview-D-uC2-Pi.js} +4 -4
- package/dist/{Overview-E0KL28Fc.js → Overview-DVMdPa97.js} +57 -55
- package/dist/{Point-BX5p9ZVF.js → Point-jnPIgHMZ.js} +119 -110
- package/dist/{Promotion-D662WYaR.js → Promotion-mdQg-RSh.js} +89 -86
- package/dist/{Queue-CI5rumWZ.js → Queue-D8YY1lbn.js} +20 -18
- package/dist/{Record-DRZVEW0I.js → Record-Dh-rN7a0.js} +9 -9
- package/dist/{Review-yMVGBErp.js → Review-C8B-SIR8.js} +2 -2
- package/dist/{ReviewFacebookCallback-Docv-Uil.js → ReviewFacebookCallback-C3eyH0pS.js} +5 -5
- package/dist/{ReviewGoogleCallback-3xVh_G7M.js → ReviewGoogleCallback-pNF2ICvQ.js} +5 -5
- package/dist/{Reward-lzBLyu0x.js → Reward-D7KPnzXt.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Bs32tPvC.js → RewardGroup.vue_vue_type_script_setup_true_lang-C87CDjxP.js} +25 -23
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-fNwFSHL1.js → RuleGroup.vue_vue_type_script_setup_true_lang-D1S2sLOK.js} +17 -15
- package/dist/{Segment-BRPf66q8.js → Segment-Ct8JRTjV.js} +32 -30
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DQmbCewC.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-w-UpWetC.js} +38 -36
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-fHX_ftax.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BbEX2h2u.js} +4 -4
- package/dist/{Setting-D5k2jymY.js → Setting-C3Binnn_.js} +56 -56
- package/dist/{SettingAdvertisements-1Oc29mzb.js → SettingAdvertisements-BrB-dGPs.js} +12 -12
- package/dist/{Settings-B3OCofxq.js → Settings-D6h2QM6X.js} +5 -5
- package/dist/Store-EKPfHEmY.js +2622 -0
- package/dist/{StoreRewards-C7_RKZ00.js → StoreRewards-B208ENOi.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dy7_GFoi.js +1264 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BW-HTNMr.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-B2KJeL5Y.js} +2 -2
- package/dist/{Tier-8pGUR8GA.js → Tier-CjYiCZy_.js} +342 -338
- package/dist/{Title-DnYVX2k8.js → Title-BXkVolaL.js} +34 -32
- package/dist/Transaction-D1T3aIC3.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-ATWU025y.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-flUDCSA5.js} +6 -6
- package/dist/Voucher-DnQ8jNjI.js +837 -0
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-C1dCFS2S.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Z9GDpO4z.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CbUdt4GK.js → ZodTextField.vue_vue_type_script_setup_true_lang-Dcw8Oi-t.js} +2 -2
- package/dist/{app-DoUnw6pe.js → app-BtGohMqA.js} +6211 -5092
- package/dist/app.js +1 -1
- package/dist/base.export-DulNMo7e.js +75 -0
- package/dist/{business-B-PlsFIY.js → business-Bla8vvZH.js} +1 -1
- package/dist/{campaign-yUUxyk0R.js → campaign-BIPNFBY5.js} +2 -2
- package/dist/{campaign-GkMET7FI.js → campaign-DYqAyRCY.js} +8 -8
- package/dist/{campaign.enum-DbPiwqfi.js → campaign.enum-liUaxkcy.js} +1 -1
- package/dist/{campaign.fn-CF5mOcSE.js → campaign.fn-J7hYcX_7.js} +98 -98
- package/dist/{collectible.enum-CbOzGIud.js → collectible.enum-C0FfRMrW.js} +1 -1
- package/dist/{collection.fn-BByCTXVz.js → collection.fn-DdDMfaFO.js} +2 -2
- package/dist/currency-BrVnqxQ1.js +7 -0
- package/dist/{effect-jriAOaEq.js → effect-gfVmfrm9.js} +1 -1
- package/dist/{email-addresses-DH4xgace.js → email-addresses-Dy8NFNBw.js} +2 -2
- package/dist/{helper-CQjM35T_.js → helper-CMhQctQK.js} +1 -1
- package/dist/{index-v3DTwO9s.js → index-B6x6s8mu.js} +1805 -2128
- package/dist/{index-iZDBfoRk.js → index-BOZ3oVHd.js} +2 -2
- package/dist/{index-MtVkfI7s.js → index-BqKrePY8.js} +3 -3
- package/dist/{index-BLOFQAMK.js → index-C5rRuwhC.js} +1 -1
- package/dist/{index-BHYKmUkc.js → index-C67-z1uf.js} +11 -6
- package/dist/{index-CptAtzHf.js → index-CLiJUFmJ.js} +2 -2
- package/dist/{index-DEmV6_BZ.js → index-CUFuU2eJ.js} +10 -8
- package/dist/index-CZqwIQXi.js +738 -0
- package/dist/{index-D1vRPik1.js → index-CghtzuVO.js} +1 -1
- package/dist/{index-DszI88g9.js → index-Culx-Z9v.js} +20 -14
- package/dist/{index-Dr68iOIO.js → index-D1T4Yf4t.js} +1 -1
- package/dist/{index-Duqxyi9L.js → index-D6RDVy95.js} +1112 -34
- package/dist/index-DKmtDBKS.js +53 -0
- package/dist/{index-De9f7Fwe.js → index-Dalmv1m4.js} +5 -5
- package/dist/{index-DKZEN-aI.js → index-DvW-3flw.js} +4 -3
- package/dist/{index-CCBpqK6M.js → index-dyMdi0Rt.js} +1 -1
- package/dist/index-otcusTFM.js +171 -0
- package/dist/{index-BlKeV6aM.js → index-qJOEwQ_z.js} +4 -1
- package/dist/{index-BPTCREXM.js → index-v1exQSyU.js} +1 -1
- package/dist/{index.esm2017-DvOnDQUA.js → index.esm2017-BLKRIlb9.js} +1 -1
- package/dist/{loading-DO3WUS3q.js → loading-BkJ3h_4U.js} +1 -1
- package/dist/{lodash-6izwukKR.js → lodash-C0Kbs8lQ.js} +1 -1
- package/dist/{member-import-hKbS-7lM.js → member-import-trpK8l8R.js} +1 -1
- package/dist/{membership-buZOqdNV.js → membership-TV1CoyKQ.js} +3 -3
- package/dist/{money-WR6-v2Bl.js → money-BM-DK9iD.js} +1 -1
- package/dist/{number-CjEejmUn.js → number-BclgE86R.js} +1 -1
- package/dist/{objectid-BvtNS241.js → objectid-C2XvpEgx.js} +12 -12
- package/dist/onboarding-BLuoXyCY.js +131 -0
- package/dist/onboardingSetup-BLmLAgIV.js +17 -0
- package/dist/{plugins-BLcKp-ww.js → plugins-3_mD58dh.js} +3 -3
- package/dist/{reward-DCNR2-_F.js → reward-Bo4szVCU.js} +1 -1
- package/dist/{rule-BsdMlDuH.js → rule-Bwy5-zD7.js} +3 -3
- package/dist/{rule-builder-C2z6Ki1X.js → rule-builder-Co_1uuj4.js} +1 -1
- package/dist/{template-DuuTNfO4.js → template-fImyGLa7.js} +7 -7
- package/dist/{timezone-nMBfnPp_.js → timezone-DQ7TNXmV.js} +1 -1
- package/dist/{transaction.fn-CYC2Uh5Y.js → transaction.fn-OT7ucfCB.js} +2 -2
- package/dist/{trigger-CtlvsU7_.js → trigger-BJKHGcNG.js} +14 -14
- package/dist/{useMarketingMaterialActions-Dec-VZh7.js → useMarketingMaterialActions-BX3C1Gga.js} +3 -3
- package/dist/{usePagination-DvJ9IfI_.js → usePagination-Qp0qoWBj.js} +1 -1
- package/dist/{user-CYOAXuDw.js → user-BcE3fiEa.js} +1 -1
- package/dist/{vue-i18n-Cy0bIZpQ.js → vue-i18n-BQmB8Ex1.js} +99 -99
- package/dist/{xlsx-Ct_b6gSU.js → xlsx-DYZ421PG.js} +584 -584
- package/dist/{zod-DZR76_dr.js → zod-DestzeIp.js} +1 -1
- package/package.json +1 -1
- package/dist/Card-D5sknDf_.js +0 -910
- package/dist/Store-B8WVn8ZA.js +0 -1997
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CmqgxDJ6.js +0 -1008
- package/dist/Transaction-YJkVkePM.js +0 -39
- package/dist/Voucher-BcCzreI3.js +0 -443
- package/dist/export-CN3lbc2j.js +0 -97
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { z as e, F as a, m as i, b as U } from "./index-
|
|
2
|
-
import { d as P } from "./index-
|
|
3
|
-
import { R as t } from "./rule-builder-
|
|
4
|
-
import { i as o } from "./helper-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { z as e, F as a, m as i, b as U } from "./index-DvW-3flw.js";
|
|
2
|
+
import { d as P } from "./index-BqKrePY8.js";
|
|
3
|
+
import { R as t } from "./rule-builder-Co_1uuj4.js";
|
|
4
|
+
import { i as o } from "./helper-CMhQctQK.js";
|
|
5
|
+
import { B as j, C as J, A as r } from "./index-B6x6s8mu.js";
|
|
6
|
+
import { d as E } from "./index-CZqwIQXi.js";
|
|
7
|
+
import { F as d } from "./index-Dalmv1m4.js";
|
|
8
|
+
const Ee = {
|
|
8
9
|
PROMOTION: {
|
|
9
10
|
name: "Promotion Template",
|
|
10
11
|
description: "Promotion template for campaign creation.",
|
|
@@ -1652,6 +1653,411 @@ t.scaffoldGroup(), o("STAMP", {
|
|
|
1652
1653
|
business: null,
|
|
1653
1654
|
noCampaign: !1
|
|
1654
1655
|
});
|
|
1656
|
+
const Oe = {
|
|
1657
|
+
_id: "",
|
|
1658
|
+
intention: [],
|
|
1659
|
+
name: "Spend and get voucher",
|
|
1660
|
+
name_locale: {
|
|
1661
|
+
"en-US": "Spend and get voucher",
|
|
1662
|
+
"th-TH": "ใช้จ่ายและรับคูปอง",
|
|
1663
|
+
"zh-Hant": "消費即得優惠券",
|
|
1664
|
+
"zh-CN": "消费即得优惠券",
|
|
1665
|
+
"ja-JP": "購入でバウチャーゲット"
|
|
1666
|
+
},
|
|
1667
|
+
description: "Create a min spend to boost sales for every single bill",
|
|
1668
|
+
description_locale: {
|
|
1669
|
+
"en-US": "Create a min spend to boost sales for every single bill",
|
|
1670
|
+
"th-TH": "กำหนดยอดขั้นต่ำเพื่อเพิ่มยอดขายในทุกบิล",
|
|
1671
|
+
"zh-Hant": "設定最低消費額以提升每筆訂單的銷售額",
|
|
1672
|
+
"zh-CN": "设定最低消费额以提升每笔订单的销售额",
|
|
1673
|
+
"ja-JP": "毎回の注文に最低購入金額を設定して売上を伸ばしましょう"
|
|
1674
|
+
},
|
|
1675
|
+
steps: [
|
|
1676
|
+
{
|
|
1677
|
+
name: "connect.template.general_information",
|
|
1678
|
+
name_locale: {
|
|
1679
|
+
"en-US": "General information",
|
|
1680
|
+
"th-TH": "ข้อมูลทั่วไป",
|
|
1681
|
+
"zh-Hant": "基本信息",
|
|
1682
|
+
"zh-CN": "基本信息",
|
|
1683
|
+
"ja-JP": "一般情報"
|
|
1684
|
+
},
|
|
1685
|
+
groups: [
|
|
1686
|
+
{
|
|
1687
|
+
name: "connect.template.general",
|
|
1688
|
+
name_locale: {
|
|
1689
|
+
"en-US": "General",
|
|
1690
|
+
"th-TH": "ทั่วไป",
|
|
1691
|
+
"zh-Hant": "常規",
|
|
1692
|
+
"zh-CN": "常规",
|
|
1693
|
+
"ja-JP": "一般"
|
|
1694
|
+
},
|
|
1695
|
+
fields: [
|
|
1696
|
+
{
|
|
1697
|
+
label: "connect.template.campaign_name",
|
|
1698
|
+
label_locale: {
|
|
1699
|
+
"en-US": "Campaign name",
|
|
1700
|
+
"th-TH": "ชื่อแคมเปญ",
|
|
1701
|
+
"zh-Hant": "活動名稱",
|
|
1702
|
+
"zh-CN": "活动名称",
|
|
1703
|
+
"ja-JP": "キャンペーン名"
|
|
1704
|
+
},
|
|
1705
|
+
property: "campaign.name",
|
|
1706
|
+
type: "text"
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
label: "connect.template.campaign_description",
|
|
1710
|
+
label_locale: {
|
|
1711
|
+
"en-US": "Campaign description",
|
|
1712
|
+
"th-TH": "คำอธิบายแคมเปญ",
|
|
1713
|
+
"zh-Hant": "活動描述",
|
|
1714
|
+
"zh-CN": "活动描述",
|
|
1715
|
+
"ja-JP": "キャンペーンの説明"
|
|
1716
|
+
},
|
|
1717
|
+
property: "campaign.description",
|
|
1718
|
+
type: "textarea"
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
label: "connect.template.campaign_period",
|
|
1722
|
+
label_locale: {
|
|
1723
|
+
"en-US": "Campaign period",
|
|
1724
|
+
"th-TH": "ระยะเวลาแคมเปญ",
|
|
1725
|
+
"zh-Hant": "活動週期",
|
|
1726
|
+
"zh-CN": "活动周期",
|
|
1727
|
+
"ja-JP": "キャンペーン期間"
|
|
1728
|
+
},
|
|
1729
|
+
property: "campaign.timeframeOptions",
|
|
1730
|
+
type: "timeframe"
|
|
1731
|
+
}
|
|
1732
|
+
]
|
|
1733
|
+
}
|
|
1734
|
+
]
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
name: "connect.template.discount",
|
|
1738
|
+
name_locale: {
|
|
1739
|
+
"en-US": "Discount",
|
|
1740
|
+
"th-TH": "ส่วนลด",
|
|
1741
|
+
"zh-Hant": "折扣",
|
|
1742
|
+
"zh-CN": "折扣",
|
|
1743
|
+
"ja-JP": "割引"
|
|
1744
|
+
},
|
|
1745
|
+
groups: [
|
|
1746
|
+
{
|
|
1747
|
+
name: "connect.template.discount",
|
|
1748
|
+
name_locale: {
|
|
1749
|
+
"en-US": "Discount",
|
|
1750
|
+
"th-TH": "ส่วนลด",
|
|
1751
|
+
"zh-Hant": "折扣",
|
|
1752
|
+
"zh-CN": "折扣",
|
|
1753
|
+
"ja-JP": "割引"
|
|
1754
|
+
},
|
|
1755
|
+
fields: [
|
|
1756
|
+
{
|
|
1757
|
+
label: void 0,
|
|
1758
|
+
label_locale: {},
|
|
1759
|
+
property: "configs.extras.effect",
|
|
1760
|
+
type: "effect"
|
|
1761
|
+
}
|
|
1762
|
+
]
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
name: "connect.template.voucher_detail",
|
|
1766
|
+
name_locale: {
|
|
1767
|
+
"en-US": "Voucher detail",
|
|
1768
|
+
"th-TH": "รายละเอียดบัตรกำนัล",
|
|
1769
|
+
"zh-Hant": "優惠券詳情",
|
|
1770
|
+
"zh-CN": "优惠券详情",
|
|
1771
|
+
"ja-JP": "バウチャー詳細"
|
|
1772
|
+
},
|
|
1773
|
+
fields: [
|
|
1774
|
+
{
|
|
1775
|
+
label: "connect.template.voucher_name",
|
|
1776
|
+
label_locale: {
|
|
1777
|
+
"en-US": "Voucher name",
|
|
1778
|
+
"th-TH": "ชื่อบัตรกำนัล",
|
|
1779
|
+
"zh-Hant": "優惠券名稱",
|
|
1780
|
+
"zh-CN": "优惠券名称",
|
|
1781
|
+
"ja-JP": "バウチャー名"
|
|
1782
|
+
},
|
|
1783
|
+
property: "configs.name",
|
|
1784
|
+
type: "text"
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
label: "connect.template.voucher_description",
|
|
1788
|
+
label_locale: {
|
|
1789
|
+
"en-US": "Voucher description",
|
|
1790
|
+
"th-TH": "คำอธิบายบัตรกำนัล",
|
|
1791
|
+
"zh-Hant": "優惠券描述",
|
|
1792
|
+
"zh-CN": "优惠券描述",
|
|
1793
|
+
"ja-JP": "バウチャーの説明"
|
|
1794
|
+
},
|
|
1795
|
+
property: "configs.description",
|
|
1796
|
+
type: "textarea"
|
|
1797
|
+
},
|
|
1798
|
+
{
|
|
1799
|
+
label: "connect.template.voucher_image",
|
|
1800
|
+
label_locale: {
|
|
1801
|
+
"en-US": "Voucher Image",
|
|
1802
|
+
"th-TH": "รูปภาพคูปอง",
|
|
1803
|
+
"zh-Hant": "優惠券圖片",
|
|
1804
|
+
"zh-CN": "优惠券图片",
|
|
1805
|
+
"ja-JP": "バウチャー画像"
|
|
1806
|
+
},
|
|
1807
|
+
property: "configs.image",
|
|
1808
|
+
type: "image"
|
|
1809
|
+
}
|
|
1810
|
+
]
|
|
1811
|
+
}
|
|
1812
|
+
]
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
name: "connect.template.terms_conditions",
|
|
1816
|
+
name_locale: {
|
|
1817
|
+
"en-US": "Terms and conditions",
|
|
1818
|
+
"th-TH": "ข้อตกลงและเงื่อนไข",
|
|
1819
|
+
"zh-Hant": "條款和條件",
|
|
1820
|
+
"zh-CN": "条款和条件",
|
|
1821
|
+
"ja-JP": "利用規約"
|
|
1822
|
+
},
|
|
1823
|
+
groups: [
|
|
1824
|
+
{
|
|
1825
|
+
name: "connect.template.time_limitation",
|
|
1826
|
+
name_locale: {
|
|
1827
|
+
"en-US": "Time limitation",
|
|
1828
|
+
"th-TH": "ข้อจำกัดเวลา",
|
|
1829
|
+
"zh-Hant": "時間限制",
|
|
1830
|
+
"zh-CN": "时间限制",
|
|
1831
|
+
"ja-JP": "時間制限"
|
|
1832
|
+
},
|
|
1833
|
+
fields: [
|
|
1834
|
+
{
|
|
1835
|
+
label: void 0,
|
|
1836
|
+
label_locale: {},
|
|
1837
|
+
property: "campaign.event.rule",
|
|
1838
|
+
type: "rule_time",
|
|
1839
|
+
extras: "campaign.type"
|
|
1840
|
+
}
|
|
1841
|
+
],
|
|
1842
|
+
condition: {
|
|
1843
|
+
not: !0,
|
|
1844
|
+
property: "campaign.event.type",
|
|
1845
|
+
value: "SCHEDULE"
|
|
1846
|
+
}
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
name: "connect.template.spending_criteria",
|
|
1850
|
+
name_locale: {
|
|
1851
|
+
"en-US": "Spending criteria",
|
|
1852
|
+
"th-TH": "เกณฑ์การใช้จ่าย",
|
|
1853
|
+
"zh-Hant": "消費標準",
|
|
1854
|
+
"zh-CN": "消费标准",
|
|
1855
|
+
"ja-JP": "購入条件"
|
|
1856
|
+
},
|
|
1857
|
+
fields: [
|
|
1858
|
+
{
|
|
1859
|
+
label: "Min Spend",
|
|
1860
|
+
label_locale: {
|
|
1861
|
+
"en-US": "Min Spend",
|
|
1862
|
+
"th-TH": "ยอดใช้จ่ายขั้นต่ำ",
|
|
1863
|
+
"zh-Hant": "最低消費",
|
|
1864
|
+
"zh-CN": "最低消费",
|
|
1865
|
+
"ja-JP": "最低購入金額"
|
|
1866
|
+
},
|
|
1867
|
+
property: "campaign.event.rule.rules.g_bill.rules.r_minspend.conditions._moreThanOrEqual",
|
|
1868
|
+
type: "number",
|
|
1869
|
+
isRuleChildren: !0
|
|
1870
|
+
},
|
|
1871
|
+
{
|
|
1872
|
+
label: void 0,
|
|
1873
|
+
label_locale: {},
|
|
1874
|
+
property: "campaign.event.rule",
|
|
1875
|
+
type: "rule_bill"
|
|
1876
|
+
}
|
|
1877
|
+
],
|
|
1878
|
+
condition: {
|
|
1879
|
+
property: "campaign.event.type",
|
|
1880
|
+
value: "BILL_COMPLETED"
|
|
1881
|
+
}
|
|
1882
|
+
},
|
|
1883
|
+
{
|
|
1884
|
+
name: "connect.template.target_audience",
|
|
1885
|
+
name_locale: {
|
|
1886
|
+
"en-US": "Target audience",
|
|
1887
|
+
"th-TH": "กลุ่มเป้าหมาย",
|
|
1888
|
+
"zh-Hant": "目標受眾",
|
|
1889
|
+
"zh-CN": "目标受众",
|
|
1890
|
+
"ja-JP": "対象者"
|
|
1891
|
+
},
|
|
1892
|
+
fields: [
|
|
1893
|
+
{
|
|
1894
|
+
label: void 0,
|
|
1895
|
+
label_locale: {},
|
|
1896
|
+
property: "campaign.event.rule",
|
|
1897
|
+
type: "rule_user"
|
|
1898
|
+
}
|
|
1899
|
+
]
|
|
1900
|
+
},
|
|
1901
|
+
{
|
|
1902
|
+
name: "connect.template.voucher_usage_configuration",
|
|
1903
|
+
name_locale: {
|
|
1904
|
+
"en-US": "Voucher usage configuration",
|
|
1905
|
+
"th-TH": "การกำหนดค่าการใช้งานบัตรกำนัล",
|
|
1906
|
+
"zh-Hant": "優惠券使用配置",
|
|
1907
|
+
"zh-CN": "优惠券使用配置",
|
|
1908
|
+
"ja-JP": "バウチャー使用設定"
|
|
1909
|
+
},
|
|
1910
|
+
fields: [
|
|
1911
|
+
{
|
|
1912
|
+
label: void 0,
|
|
1913
|
+
label_locale: {},
|
|
1914
|
+
property: "configs.options",
|
|
1915
|
+
type: "collectible_options"
|
|
1916
|
+
}
|
|
1917
|
+
]
|
|
1918
|
+
}
|
|
1919
|
+
]
|
|
1920
|
+
},
|
|
1921
|
+
{
|
|
1922
|
+
name: "connect.template.configuration",
|
|
1923
|
+
name_locale: {
|
|
1924
|
+
"en-US": "Configuration",
|
|
1925
|
+
"th-TH": "การกำหนดค่า",
|
|
1926
|
+
"zh-Hant": "配置",
|
|
1927
|
+
"zh-CN": "配置",
|
|
1928
|
+
"ja-JP": "設定"
|
|
1929
|
+
},
|
|
1930
|
+
groups: [
|
|
1931
|
+
{
|
|
1932
|
+
name: "connect.template.location",
|
|
1933
|
+
name_locale: {
|
|
1934
|
+
"en-US": "Location",
|
|
1935
|
+
"th-TH": "สาขา",
|
|
1936
|
+
"zh-Hant": "位置",
|
|
1937
|
+
"zh-CN": "位置",
|
|
1938
|
+
"ja-JP": "場所"
|
|
1939
|
+
},
|
|
1940
|
+
fields: [
|
|
1941
|
+
{
|
|
1942
|
+
label: "connect.template.target_location",
|
|
1943
|
+
label_locale: {
|
|
1944
|
+
"en-US": "Target location",
|
|
1945
|
+
"th-TH": "สาขาเป้าหมาย",
|
|
1946
|
+
"zh-Hant": "目標位置",
|
|
1947
|
+
"zh-CN": "目标位置",
|
|
1948
|
+
"ja-JP": "対象店舗"
|
|
1949
|
+
},
|
|
1950
|
+
property: "campaign.targetLocation",
|
|
1951
|
+
type: "target_location"
|
|
1952
|
+
}
|
|
1953
|
+
]
|
|
1954
|
+
},
|
|
1955
|
+
{
|
|
1956
|
+
name: "connect.template.notify_audience",
|
|
1957
|
+
name_locale: {
|
|
1958
|
+
"en-US": "Notify audience",
|
|
1959
|
+
"th-TH": "แจ้งเตือนกลุ่มเป้าหมาย",
|
|
1960
|
+
"zh-Hant": "通知受眾",
|
|
1961
|
+
"zh-CN": "通知受众",
|
|
1962
|
+
"ja-JP": "対象者への通知"
|
|
1963
|
+
},
|
|
1964
|
+
fields: [
|
|
1965
|
+
{
|
|
1966
|
+
label: "connect.template.send_notification",
|
|
1967
|
+
label_locale: {
|
|
1968
|
+
"en-US": "Send notification",
|
|
1969
|
+
"th-TH": "ส่งการแจ้งเตือน",
|
|
1970
|
+
"zh-Hant": "發送通知",
|
|
1971
|
+
"zh-CN": "发送通知",
|
|
1972
|
+
"ja-JP": "通知を送信"
|
|
1973
|
+
},
|
|
1974
|
+
property: "campaign.notify",
|
|
1975
|
+
type: "switch"
|
|
1976
|
+
}
|
|
1977
|
+
]
|
|
1978
|
+
},
|
|
1979
|
+
{
|
|
1980
|
+
name: "connect.template.notify_message",
|
|
1981
|
+
name_locale: {
|
|
1982
|
+
"en-US": "Notify message",
|
|
1983
|
+
"th-TH": "ข้อความแจ้งเตือน",
|
|
1984
|
+
"zh-Hant": "通知消息",
|
|
1985
|
+
"zh-CN": "通知消息",
|
|
1986
|
+
"ja-JP": "通知メッセージ"
|
|
1987
|
+
},
|
|
1988
|
+
fields: [
|
|
1989
|
+
{
|
|
1990
|
+
label: "connect.template.notification_message",
|
|
1991
|
+
label_locale: {
|
|
1992
|
+
"en-US": "Notification message",
|
|
1993
|
+
"th-TH": "ข้อความแจ้งเตือน",
|
|
1994
|
+
"zh-Hant": "通知消息",
|
|
1995
|
+
"zh-CN": "通知消息",
|
|
1996
|
+
"ja-JP": "通知メッセージ"
|
|
1997
|
+
},
|
|
1998
|
+
property: "campaign.notifyMessage",
|
|
1999
|
+
type: "message",
|
|
2000
|
+
extras: "ISSUE_REWARD"
|
|
2001
|
+
}
|
|
2002
|
+
],
|
|
2003
|
+
condition: {
|
|
2004
|
+
property: "campaign.notify",
|
|
2005
|
+
value: !0
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
]
|
|
2009
|
+
}
|
|
2010
|
+
],
|
|
2011
|
+
defaultValue: {
|
|
2012
|
+
templateId: "",
|
|
2013
|
+
campaign: {
|
|
2014
|
+
collectible: "",
|
|
2015
|
+
type: "VOUCHER",
|
|
2016
|
+
templateId: "",
|
|
2017
|
+
name: "",
|
|
2018
|
+
description: "",
|
|
2019
|
+
image: "",
|
|
2020
|
+
event: {
|
|
2021
|
+
type: "BILL_COMPLETED",
|
|
2022
|
+
rule: {
|
|
2023
|
+
...t.scaffoldGroup(),
|
|
2024
|
+
rules: {
|
|
2025
|
+
g_bill: {
|
|
2026
|
+
name: "g_bill",
|
|
2027
|
+
rules: {
|
|
2028
|
+
r_minspend: {
|
|
2029
|
+
name: "r_minspend",
|
|
2030
|
+
property: "bill.amount",
|
|
2031
|
+
conditions: {
|
|
2032
|
+
_moreThanOrEqual: 0
|
|
2033
|
+
},
|
|
2034
|
+
negated: !1
|
|
2035
|
+
}
|
|
2036
|
+
},
|
|
2037
|
+
logic: "r_minspend"
|
|
2038
|
+
}
|
|
2039
|
+
},
|
|
2040
|
+
logic: "g_bill"
|
|
2041
|
+
}
|
|
2042
|
+
},
|
|
2043
|
+
group: null,
|
|
2044
|
+
targetLocation: null,
|
|
2045
|
+
timeframeOptions: {
|
|
2046
|
+
type: "timeframe",
|
|
2047
|
+
property: "__now"
|
|
2048
|
+
},
|
|
2049
|
+
earningOption: {
|
|
2050
|
+
type: "FIXED",
|
|
2051
|
+
amount: 1
|
|
2052
|
+
}
|
|
2053
|
+
},
|
|
2054
|
+
configs: o("VOUCHER", {
|
|
2055
|
+
name: "",
|
|
2056
|
+
business: null,
|
|
2057
|
+
noCampaign: !1
|
|
2058
|
+
})
|
|
2059
|
+
}
|
|
2060
|
+
};
|
|
1655
2061
|
({
|
|
1656
2062
|
...t.scaffoldGroup()
|
|
1657
2063
|
}, o("VOUCHER", {
|
|
@@ -1659,22 +2065,345 @@ t.scaffoldGroup(), o("STAMP", {
|
|
|
1659
2065
|
business: null,
|
|
1660
2066
|
noCampaign: !1
|
|
1661
2067
|
}));
|
|
1662
|
-
({
|
|
1663
|
-
...t.scaffoldGroup()
|
|
1664
|
-
}, o("VOUCHER", {
|
|
1665
|
-
name: "",
|
|
1666
|
-
business: null,
|
|
1667
|
-
noCampaign: !1
|
|
1668
|
-
}));
|
|
1669
|
-
({
|
|
1670
|
-
...t.scaffoldGroup()
|
|
1671
|
-
});
|
|
1672
2068
|
({
|
|
1673
2069
|
...t.scaffoldGroup()
|
|
1674
2070
|
});
|
|
1675
2071
|
({
|
|
1676
2072
|
...t.scaffoldGroup()
|
|
1677
2073
|
});
|
|
2074
|
+
const Ie = {
|
|
2075
|
+
_id: "",
|
|
2076
|
+
intention: [],
|
|
2077
|
+
name: "Spend and earn points",
|
|
2078
|
+
name_locale: {
|
|
2079
|
+
"en-US": "Spend and earn points",
|
|
2080
|
+
"th-TH": "ใช้จ่ายและสะสมคะแนน",
|
|
2081
|
+
"zh-Hant": "消費累積點數",
|
|
2082
|
+
"zh-CN": "消费累积积分",
|
|
2083
|
+
"ja-JP": "購入でポイント獲得"
|
|
2084
|
+
},
|
|
2085
|
+
description: "Reward customers by giving points for every purchase they make",
|
|
2086
|
+
description_locale: {
|
|
2087
|
+
"en-US": "Reward customers by giving points for every purchase they make",
|
|
2088
|
+
"th-TH": "ให้รางวัลลูกค้าด้วยการมอบคะแนนทุกครั้งที่มีการใช้จ่าย",
|
|
2089
|
+
"zh-Hant": "透過每筆消費贈送點數來回饋顧客",
|
|
2090
|
+
"zh-CN": "通过每笔消费赠送积分来回馈顾客",
|
|
2091
|
+
"ja-JP": "購入のたびにポイントを付与して顧客を報酬"
|
|
2092
|
+
},
|
|
2093
|
+
steps: [
|
|
2094
|
+
{
|
|
2095
|
+
name: "connect.template.general_information",
|
|
2096
|
+
name_locale: {
|
|
2097
|
+
"en-US": "General information",
|
|
2098
|
+
"th-TH": "ข้อมูลทั่วไป",
|
|
2099
|
+
"zh-Hant": "基本信息",
|
|
2100
|
+
"zh-CN": "基本信息",
|
|
2101
|
+
"ja-JP": "一般情報"
|
|
2102
|
+
},
|
|
2103
|
+
groups: [
|
|
2104
|
+
{
|
|
2105
|
+
name: "connect.template.general",
|
|
2106
|
+
name_locale: {
|
|
2107
|
+
"en-US": "General",
|
|
2108
|
+
"th-TH": "ทั่วไป",
|
|
2109
|
+
"zh-Hant": "常規",
|
|
2110
|
+
"zh-CN": "常规",
|
|
2111
|
+
"ja-JP": "一般"
|
|
2112
|
+
},
|
|
2113
|
+
fields: [
|
|
2114
|
+
{
|
|
2115
|
+
label: "connect.template.campaign_name",
|
|
2116
|
+
label_locale: {
|
|
2117
|
+
"en-US": "Campaign name",
|
|
2118
|
+
"th-TH": "ชื่อแคมเปญ",
|
|
2119
|
+
"zh-Hant": "活動名稱",
|
|
2120
|
+
"zh-CN": "活动名称",
|
|
2121
|
+
"ja-JP": "キャンペーン名"
|
|
2122
|
+
},
|
|
2123
|
+
property: "campaign.name",
|
|
2124
|
+
type: "text"
|
|
2125
|
+
},
|
|
2126
|
+
{
|
|
2127
|
+
label: "connect.template.campaign_description",
|
|
2128
|
+
label_locale: {
|
|
2129
|
+
"en-US": "Campaign description",
|
|
2130
|
+
"th-TH": "คำอธิบายแคมเปญ",
|
|
2131
|
+
"zh-Hant": "活動描述",
|
|
2132
|
+
"zh-CN": "活动描述",
|
|
2133
|
+
"ja-JP": "キャンペーンの説明"
|
|
2134
|
+
},
|
|
2135
|
+
property: "campaign.description",
|
|
2136
|
+
type: "textarea"
|
|
2137
|
+
},
|
|
2138
|
+
{
|
|
2139
|
+
label: "connect.template.campaign_period",
|
|
2140
|
+
label_locale: {
|
|
2141
|
+
"en-US": "Campaign period",
|
|
2142
|
+
"th-TH": "ระยะเวลาแคมเปญ",
|
|
2143
|
+
"zh-Hant": "活動週期",
|
|
2144
|
+
"zh-CN": "活动周期",
|
|
2145
|
+
"ja-JP": "キャンペーン期間"
|
|
2146
|
+
},
|
|
2147
|
+
property: "campaign.timeframeOptions",
|
|
2148
|
+
type: "timeframe"
|
|
2149
|
+
}
|
|
2150
|
+
]
|
|
2151
|
+
}
|
|
2152
|
+
]
|
|
2153
|
+
},
|
|
2154
|
+
{
|
|
2155
|
+
name: "connect.template.terms_conditions",
|
|
2156
|
+
name_locale: {
|
|
2157
|
+
"en-US": "Terms and conditions",
|
|
2158
|
+
"th-TH": "ข้อตกลงและเงื่อนไข",
|
|
2159
|
+
"zh-Hant": "條款和條件",
|
|
2160
|
+
"zh-CN": "条款和条件",
|
|
2161
|
+
"ja-JP": "利用規約"
|
|
2162
|
+
},
|
|
2163
|
+
groups: [
|
|
2164
|
+
{
|
|
2165
|
+
name: "connect.template.time_limitation",
|
|
2166
|
+
name_locale: {
|
|
2167
|
+
"en-US": "Time limitation",
|
|
2168
|
+
"th-TH": "ข้อจำกัดเวลา",
|
|
2169
|
+
"zh-Hant": "時間限制",
|
|
2170
|
+
"zh-CN": "时间限制",
|
|
2171
|
+
"ja-JP": "時間制限"
|
|
2172
|
+
},
|
|
2173
|
+
fields: [
|
|
2174
|
+
{
|
|
2175
|
+
label: void 0,
|
|
2176
|
+
label_locale: {},
|
|
2177
|
+
property: "campaign.event.rule",
|
|
2178
|
+
type: "rule_time",
|
|
2179
|
+
extras: "campaign.type"
|
|
2180
|
+
}
|
|
2181
|
+
],
|
|
2182
|
+
condition: {
|
|
2183
|
+
not: !0,
|
|
2184
|
+
property: "campaign.event.type",
|
|
2185
|
+
value: "SCHEDULE"
|
|
2186
|
+
}
|
|
2187
|
+
},
|
|
2188
|
+
{
|
|
2189
|
+
name: "connect.template.spending_criteria",
|
|
2190
|
+
name_locale: {
|
|
2191
|
+
"en-US": "Spending criteria",
|
|
2192
|
+
"th-TH": "เกณฑ์การใช้จ่าย",
|
|
2193
|
+
"zh-Hant": "消費標準",
|
|
2194
|
+
"zh-CN": "消费标准",
|
|
2195
|
+
"ja-JP": "購入条件"
|
|
2196
|
+
},
|
|
2197
|
+
fields: [
|
|
2198
|
+
{
|
|
2199
|
+
label: "Min Spend",
|
|
2200
|
+
label_locale: {
|
|
2201
|
+
"en-US": "Min Spend",
|
|
2202
|
+
"th-TH": "ยอดใช้จ่ายขั้นต่ำ",
|
|
2203
|
+
"zh-Hant": "最低消費",
|
|
2204
|
+
"zh-CN": "最低消费",
|
|
2205
|
+
"ja-JP": "最低購入金額"
|
|
2206
|
+
},
|
|
2207
|
+
property: "campaign.event.rule.rules.g_bill.rules.r_minspend.conditions._moreThanOrEqual",
|
|
2208
|
+
type: "number",
|
|
2209
|
+
isRuleChildren: !0
|
|
2210
|
+
},
|
|
2211
|
+
{
|
|
2212
|
+
label: void 0,
|
|
2213
|
+
label_locale: {},
|
|
2214
|
+
property: "campaign.event.rule",
|
|
2215
|
+
type: "rule_bill"
|
|
2216
|
+
}
|
|
2217
|
+
],
|
|
2218
|
+
condition: {
|
|
2219
|
+
property: "campaign.event.type",
|
|
2220
|
+
value: "BILL_COMPLETED"
|
|
2221
|
+
}
|
|
2222
|
+
},
|
|
2223
|
+
{
|
|
2224
|
+
name: "connect.template.target_audience",
|
|
2225
|
+
name_locale: {
|
|
2226
|
+
"en-US": "Target audience",
|
|
2227
|
+
"th-TH": "กลุ่มเป้าหมาย",
|
|
2228
|
+
"zh-Hant": "目標受眾",
|
|
2229
|
+
"zh-CN": "目标受众",
|
|
2230
|
+
"ja-JP": "対象者"
|
|
2231
|
+
},
|
|
2232
|
+
fields: [
|
|
2233
|
+
{
|
|
2234
|
+
label: void 0,
|
|
2235
|
+
label_locale: {},
|
|
2236
|
+
property: "campaign.event.rule",
|
|
2237
|
+
type: "rule_user"
|
|
2238
|
+
}
|
|
2239
|
+
]
|
|
2240
|
+
}
|
|
2241
|
+
]
|
|
2242
|
+
},
|
|
2243
|
+
{
|
|
2244
|
+
name: "connect.template.configuration",
|
|
2245
|
+
name_locale: {
|
|
2246
|
+
"en-US": "Configuration",
|
|
2247
|
+
"th-TH": "การกำหนดค่า",
|
|
2248
|
+
"zh-Hant": "配置",
|
|
2249
|
+
"zh-CN": "配置",
|
|
2250
|
+
"ja-JP": "設定"
|
|
2251
|
+
},
|
|
2252
|
+
groups: [
|
|
2253
|
+
{
|
|
2254
|
+
name: "connect.template.earning_type",
|
|
2255
|
+
name_locale: {
|
|
2256
|
+
"en-US": "Earning type",
|
|
2257
|
+
"th-TH": "ประเภทการสร้างรายได้",
|
|
2258
|
+
"zh-Hant": "獲取類型",
|
|
2259
|
+
"zh-CN": "获取类型",
|
|
2260
|
+
"ja-JP": "獲得タイプ"
|
|
2261
|
+
},
|
|
2262
|
+
fields: [
|
|
2263
|
+
{
|
|
2264
|
+
label: void 0,
|
|
2265
|
+
label_locale: {},
|
|
2266
|
+
property: "campaign.earningOption",
|
|
2267
|
+
type: "earning_option",
|
|
2268
|
+
extras: ""
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
label: void 0,
|
|
2272
|
+
label_locale: {},
|
|
2273
|
+
property: "campaign.config.validityOption",
|
|
2274
|
+
type: "validity_option"
|
|
2275
|
+
}
|
|
2276
|
+
]
|
|
2277
|
+
},
|
|
2278
|
+
{
|
|
2279
|
+
name: "connect.template.location",
|
|
2280
|
+
name_locale: {
|
|
2281
|
+
"en-US": "Location",
|
|
2282
|
+
"th-TH": "สาขา",
|
|
2283
|
+
"zh-Hant": "位置",
|
|
2284
|
+
"zh-CN": "位置",
|
|
2285
|
+
"ja-JP": "場所"
|
|
2286
|
+
},
|
|
2287
|
+
fields: [
|
|
2288
|
+
{
|
|
2289
|
+
label: "connect.template.target_location",
|
|
2290
|
+
label_locale: {
|
|
2291
|
+
"en-US": "Target location",
|
|
2292
|
+
"th-TH": "สาขาเป้าหมาย",
|
|
2293
|
+
"zh-Hant": "目標位置",
|
|
2294
|
+
"zh-CN": "目标位置",
|
|
2295
|
+
"ja-JP": "対象店舗"
|
|
2296
|
+
},
|
|
2297
|
+
property: "campaign.targetLocation",
|
|
2298
|
+
type: "target_location"
|
|
2299
|
+
}
|
|
2300
|
+
]
|
|
2301
|
+
},
|
|
2302
|
+
{
|
|
2303
|
+
name: "connect.template.notify_audience",
|
|
2304
|
+
name_locale: {
|
|
2305
|
+
"en-US": "Notify audience",
|
|
2306
|
+
"th-TH": "แจ้งเตือนกลุ่มเป้าหมาย",
|
|
2307
|
+
"zh-Hant": "通知受眾",
|
|
2308
|
+
"zh-CN": "通知受众",
|
|
2309
|
+
"ja-JP": "対象者への通知"
|
|
2310
|
+
},
|
|
2311
|
+
fields: [
|
|
2312
|
+
{
|
|
2313
|
+
label: "connect.template.send_notification",
|
|
2314
|
+
label_locale: {
|
|
2315
|
+
"en-US": "Send notification",
|
|
2316
|
+
"th-TH": "ส่งการแจ้งเตือน",
|
|
2317
|
+
"zh-Hant": "發送通知",
|
|
2318
|
+
"zh-CN": "发送通知",
|
|
2319
|
+
"ja-JP": "通知を送信"
|
|
2320
|
+
},
|
|
2321
|
+
property: "campaign.notify",
|
|
2322
|
+
type: "switch"
|
|
2323
|
+
}
|
|
2324
|
+
]
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
name: "connect.template.notify_message",
|
|
2328
|
+
name_locale: {
|
|
2329
|
+
"en-US": "Notify message",
|
|
2330
|
+
"th-TH": "ข้อความแจ้งเตือน",
|
|
2331
|
+
"zh-Hant": "通知消息",
|
|
2332
|
+
"zh-CN": "通知消息",
|
|
2333
|
+
"ja-JP": "通知メッセージ"
|
|
2334
|
+
},
|
|
2335
|
+
fields: [
|
|
2336
|
+
{
|
|
2337
|
+
label: "connect.template.notification_message",
|
|
2338
|
+
label_locale: {
|
|
2339
|
+
"en-US": "Notification message",
|
|
2340
|
+
"th-TH": "ข้อความแจ้งเตือน",
|
|
2341
|
+
"zh-Hant": "通知消息",
|
|
2342
|
+
"zh-CN": "通知消息",
|
|
2343
|
+
"ja-JP": "通知メッセージ"
|
|
2344
|
+
},
|
|
2345
|
+
property: "campaign.notifyMessage",
|
|
2346
|
+
type: "message",
|
|
2347
|
+
extras: "ISSUE_REWARD"
|
|
2348
|
+
}
|
|
2349
|
+
],
|
|
2350
|
+
condition: {
|
|
2351
|
+
property: "campaign.notify",
|
|
2352
|
+
value: !0
|
|
2353
|
+
}
|
|
2354
|
+
}
|
|
2355
|
+
]
|
|
2356
|
+
}
|
|
2357
|
+
],
|
|
2358
|
+
defaultValue: {
|
|
2359
|
+
templateId: "",
|
|
2360
|
+
campaign: {
|
|
2361
|
+
collectible: "",
|
|
2362
|
+
type: "COIN",
|
|
2363
|
+
templateId: "",
|
|
2364
|
+
name: "",
|
|
2365
|
+
description: "",
|
|
2366
|
+
image: "",
|
|
2367
|
+
event: {
|
|
2368
|
+
type: "BILL_COMPLETED",
|
|
2369
|
+
rule: {
|
|
2370
|
+
...t.scaffoldGroup(),
|
|
2371
|
+
rules: {
|
|
2372
|
+
g_bill: {
|
|
2373
|
+
name: "g_bill",
|
|
2374
|
+
rules: {
|
|
2375
|
+
r_minspend: {
|
|
2376
|
+
name: "r_minspend",
|
|
2377
|
+
property: "bill.amount",
|
|
2378
|
+
conditions: {
|
|
2379
|
+
_moreThanOrEqual: 0
|
|
2380
|
+
},
|
|
2381
|
+
negated: !1
|
|
2382
|
+
}
|
|
2383
|
+
},
|
|
2384
|
+
logic: "r_minspend"
|
|
2385
|
+
}
|
|
2386
|
+
},
|
|
2387
|
+
logic: "g_bill"
|
|
2388
|
+
}
|
|
2389
|
+
},
|
|
2390
|
+
group: null,
|
|
2391
|
+
config: {
|
|
2392
|
+
validityOption: {}
|
|
2393
|
+
},
|
|
2394
|
+
targetLocation: null,
|
|
2395
|
+
timeframeOptions: {
|
|
2396
|
+
type: "timeframe",
|
|
2397
|
+
property: "__now"
|
|
2398
|
+
},
|
|
2399
|
+
earningOption: {
|
|
2400
|
+
type: "PROPORTIONAL",
|
|
2401
|
+
amount: 1,
|
|
2402
|
+
every: 1
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2405
|
+
}
|
|
2406
|
+
};
|
|
1678
2407
|
t.setRuleToGroup(
|
|
1679
2408
|
t.scaffoldGroup(),
|
|
1680
2409
|
t.setRuleToGroup(
|
|
@@ -1768,13 +2497,359 @@ t.scaffoldGroup(), t.scaffoldGroup(), o("GAME", {
|
|
|
1768
2497
|
business: null,
|
|
1769
2498
|
noCampaign: !1
|
|
1770
2499
|
});
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
name: "",
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
2500
|
+
const Re = {
|
|
2501
|
+
_id: "",
|
|
2502
|
+
intention: [],
|
|
2503
|
+
name: "Welcome voucher",
|
|
2504
|
+
name_locale: {
|
|
2505
|
+
"en-US": "Welcome voucher",
|
|
2506
|
+
"th-TH": "คูปองต้อนรับ",
|
|
2507
|
+
"zh-Hant": "歡迎優惠券",
|
|
2508
|
+
"zh-CN": "欢迎优惠券",
|
|
2509
|
+
"ja-JP": "ウェルカムバウチャー"
|
|
2510
|
+
},
|
|
2511
|
+
description: "Distribute a voucher to new members upon joining.",
|
|
2512
|
+
description_locale: {
|
|
2513
|
+
"en-US": "Distribute a voucher to new members upon joining.",
|
|
2514
|
+
"th-TH": "แจกคูปองให้สมาชิกใหม่เมื่อเข้าร่วม",
|
|
2515
|
+
"zh-Hant": "新會員加入時發放歡迎優惠券",
|
|
2516
|
+
"zh-CN": "新会员加入时发放欢迎优惠券",
|
|
2517
|
+
"ja-JP": "新規会員入会時にバウチャーを配布"
|
|
2518
|
+
},
|
|
2519
|
+
steps: [
|
|
2520
|
+
{
|
|
2521
|
+
name: "connect.template.general_information",
|
|
2522
|
+
name_locale: {
|
|
2523
|
+
"en-US": "General information",
|
|
2524
|
+
"th-TH": "ข้อมูลทั่วไป",
|
|
2525
|
+
"zh-Hant": "基本信息",
|
|
2526
|
+
"zh-CN": "基本信息",
|
|
2527
|
+
"ja-JP": "一般情報"
|
|
2528
|
+
},
|
|
2529
|
+
groups: [
|
|
2530
|
+
{
|
|
2531
|
+
name: "connect.template.general",
|
|
2532
|
+
name_locale: {
|
|
2533
|
+
"en-US": "General",
|
|
2534
|
+
"th-TH": "ทั่วไป",
|
|
2535
|
+
"zh-Hant": "常規",
|
|
2536
|
+
"zh-CN": "常规",
|
|
2537
|
+
"ja-JP": "一般"
|
|
2538
|
+
},
|
|
2539
|
+
fields: [
|
|
2540
|
+
{
|
|
2541
|
+
label: "connect.template.campaign_name",
|
|
2542
|
+
label_locale: {
|
|
2543
|
+
"en-US": "Campaign name",
|
|
2544
|
+
"th-TH": "ชื่อแคมเปญ",
|
|
2545
|
+
"zh-Hant": "活動名稱",
|
|
2546
|
+
"zh-CN": "活动名称",
|
|
2547
|
+
"ja-JP": "キャンペーン名"
|
|
2548
|
+
},
|
|
2549
|
+
property: "campaign.name",
|
|
2550
|
+
type: "text"
|
|
2551
|
+
},
|
|
2552
|
+
{
|
|
2553
|
+
label: "connect.template.campaign_description",
|
|
2554
|
+
label_locale: {
|
|
2555
|
+
"en-US": "Campaign description",
|
|
2556
|
+
"th-TH": "คำอธิบายแคมเปญ",
|
|
2557
|
+
"zh-Hant": "活動描述",
|
|
2558
|
+
"zh-CN": "活动描述",
|
|
2559
|
+
"ja-JP": "キャンペーンの説明"
|
|
2560
|
+
},
|
|
2561
|
+
property: "campaign.description",
|
|
2562
|
+
type: "textarea"
|
|
2563
|
+
},
|
|
2564
|
+
{
|
|
2565
|
+
label: "connect.template.campaign_period",
|
|
2566
|
+
label_locale: {
|
|
2567
|
+
"en-US": "Campaign period",
|
|
2568
|
+
"th-TH": "ระยะเวลาแคมเปญ",
|
|
2569
|
+
"zh-Hant": "活動週期",
|
|
2570
|
+
"zh-CN": "活动周期",
|
|
2571
|
+
"ja-JP": "キャンペーン期間"
|
|
2572
|
+
},
|
|
2573
|
+
property: "campaign.timeframeOptions",
|
|
2574
|
+
type: "timeframe"
|
|
2575
|
+
}
|
|
2576
|
+
]
|
|
2577
|
+
}
|
|
2578
|
+
]
|
|
2579
|
+
},
|
|
2580
|
+
{
|
|
2581
|
+
name: "connect.template.discount",
|
|
2582
|
+
name_locale: {
|
|
2583
|
+
"en-US": "Discount",
|
|
2584
|
+
"th-TH": "ส่วนลด",
|
|
2585
|
+
"zh-Hant": "折扣",
|
|
2586
|
+
"zh-CN": "折扣",
|
|
2587
|
+
"ja-JP": "割引"
|
|
2588
|
+
},
|
|
2589
|
+
groups: [
|
|
2590
|
+
{
|
|
2591
|
+
name: "connect.template.discount",
|
|
2592
|
+
name_locale: {
|
|
2593
|
+
"en-US": "Discount",
|
|
2594
|
+
"th-TH": "ส่วนลด",
|
|
2595
|
+
"zh-Hant": "折扣",
|
|
2596
|
+
"zh-CN": "折扣",
|
|
2597
|
+
"ja-JP": "割引"
|
|
2598
|
+
},
|
|
2599
|
+
fields: [
|
|
2600
|
+
{
|
|
2601
|
+
label: void 0,
|
|
2602
|
+
label_locale: {},
|
|
2603
|
+
property: "configs.extras.effect",
|
|
2604
|
+
type: "effect"
|
|
2605
|
+
}
|
|
2606
|
+
]
|
|
2607
|
+
},
|
|
2608
|
+
{
|
|
2609
|
+
name: "connect.template.voucher_detail",
|
|
2610
|
+
name_locale: {
|
|
2611
|
+
"en-US": "Voucher detail",
|
|
2612
|
+
"th-TH": "รายละเอียดบัตรกำนัล",
|
|
2613
|
+
"zh-Hant": "優惠券詳情",
|
|
2614
|
+
"zh-CN": "优惠券详情",
|
|
2615
|
+
"ja-JP": "バウチャー詳細"
|
|
2616
|
+
},
|
|
2617
|
+
fields: [
|
|
2618
|
+
{
|
|
2619
|
+
label: "connect.template.voucher_name",
|
|
2620
|
+
label_locale: {
|
|
2621
|
+
"en-US": "Voucher name",
|
|
2622
|
+
"th-TH": "ชื่อบัตรกำนัล",
|
|
2623
|
+
"zh-Hant": "優惠券名稱",
|
|
2624
|
+
"zh-CN": "优惠券名称",
|
|
2625
|
+
"ja-JP": "バウチャー名"
|
|
2626
|
+
},
|
|
2627
|
+
property: "configs.name",
|
|
2628
|
+
type: "text"
|
|
2629
|
+
},
|
|
2630
|
+
{
|
|
2631
|
+
label: "connect.template.voucher_description",
|
|
2632
|
+
label_locale: {
|
|
2633
|
+
"en-US": "Voucher description",
|
|
2634
|
+
"th-TH": "คำอธิบายบัตรกำนัล",
|
|
2635
|
+
"zh-Hant": "優惠券描述",
|
|
2636
|
+
"zh-CN": "优惠券描述",
|
|
2637
|
+
"ja-JP": "バウチャーの説明"
|
|
2638
|
+
},
|
|
2639
|
+
property: "configs.description",
|
|
2640
|
+
type: "textarea"
|
|
2641
|
+
},
|
|
2642
|
+
{
|
|
2643
|
+
label: "connect.template.voucher_image",
|
|
2644
|
+
label_locale: {
|
|
2645
|
+
"en-US": "Voucher Image",
|
|
2646
|
+
"th-TH": "รูปภาพคูปอง",
|
|
2647
|
+
"zh-Hant": "優惠券圖片",
|
|
2648
|
+
"zh-CN": "优惠券图片",
|
|
2649
|
+
"ja-JP": "バウチャー画像"
|
|
2650
|
+
},
|
|
2651
|
+
property: "configs.image",
|
|
2652
|
+
type: "image"
|
|
2653
|
+
}
|
|
2654
|
+
]
|
|
2655
|
+
}
|
|
2656
|
+
]
|
|
2657
|
+
},
|
|
2658
|
+
{
|
|
2659
|
+
name: "connect.template.terms_conditions",
|
|
2660
|
+
name_locale: {
|
|
2661
|
+
"en-US": "Terms and conditions",
|
|
2662
|
+
"th-TH": "ข้อตกลงและเงื่อนไข",
|
|
2663
|
+
"zh-Hant": "條款和條件",
|
|
2664
|
+
"zh-CN": "条款和条件",
|
|
2665
|
+
"ja-JP": "利用規約"
|
|
2666
|
+
},
|
|
2667
|
+
groups: [
|
|
2668
|
+
{
|
|
2669
|
+
name: "connect.template.time_limitation",
|
|
2670
|
+
name_locale: {
|
|
2671
|
+
"en-US": "Time limitation",
|
|
2672
|
+
"th-TH": "ข้อจำกัดเวลา",
|
|
2673
|
+
"zh-Hant": "時間限制",
|
|
2674
|
+
"zh-CN": "时间限制",
|
|
2675
|
+
"ja-JP": "時間制限"
|
|
2676
|
+
},
|
|
2677
|
+
fields: [
|
|
2678
|
+
{
|
|
2679
|
+
label: void 0,
|
|
2680
|
+
label_locale: {},
|
|
2681
|
+
property: "campaign.event.rule",
|
|
2682
|
+
type: "rule_time",
|
|
2683
|
+
extras: "campaign.type"
|
|
2684
|
+
}
|
|
2685
|
+
],
|
|
2686
|
+
condition: {
|
|
2687
|
+
not: !0,
|
|
2688
|
+
property: "campaign.event.type",
|
|
2689
|
+
value: "SCHEDULE"
|
|
2690
|
+
}
|
|
2691
|
+
},
|
|
2692
|
+
{
|
|
2693
|
+
name: "connect.template.target_audience",
|
|
2694
|
+
name_locale: {
|
|
2695
|
+
"en-US": "Target audience",
|
|
2696
|
+
"th-TH": "กลุ่มเป้าหมาย",
|
|
2697
|
+
"zh-Hant": "目標受眾",
|
|
2698
|
+
"zh-CN": "目标受众",
|
|
2699
|
+
"ja-JP": "対象者"
|
|
2700
|
+
},
|
|
2701
|
+
fields: [
|
|
2702
|
+
{
|
|
2703
|
+
label: void 0,
|
|
2704
|
+
label_locale: {},
|
|
2705
|
+
property: "campaign.event.rule",
|
|
2706
|
+
type: "rule_user"
|
|
2707
|
+
}
|
|
2708
|
+
]
|
|
2709
|
+
},
|
|
2710
|
+
{
|
|
2711
|
+
name: "connect.template.voucher_usage_configuration",
|
|
2712
|
+
name_locale: {
|
|
2713
|
+
"en-US": "Voucher usage configuration",
|
|
2714
|
+
"th-TH": "การกำหนดค่าการใช้งานบัตรกำนัล",
|
|
2715
|
+
"zh-Hant": "優惠券使用配置",
|
|
2716
|
+
"zh-CN": "优惠券使用配置",
|
|
2717
|
+
"ja-JP": "バウチャー使用設定"
|
|
2718
|
+
},
|
|
2719
|
+
fields: [
|
|
2720
|
+
{
|
|
2721
|
+
label: void 0,
|
|
2722
|
+
label_locale: {},
|
|
2723
|
+
property: "configs.options",
|
|
2724
|
+
type: "collectible_options"
|
|
2725
|
+
}
|
|
2726
|
+
]
|
|
2727
|
+
}
|
|
2728
|
+
]
|
|
2729
|
+
},
|
|
2730
|
+
{
|
|
2731
|
+
name: "connect.template.configuration",
|
|
2732
|
+
name_locale: {
|
|
2733
|
+
"en-US": "Configuration",
|
|
2734
|
+
"th-TH": "การกำหนดค่า",
|
|
2735
|
+
"zh-Hant": "配置",
|
|
2736
|
+
"zh-CN": "配置",
|
|
2737
|
+
"ja-JP": "設定"
|
|
2738
|
+
},
|
|
2739
|
+
groups: [
|
|
2740
|
+
{
|
|
2741
|
+
name: "connect.template.location",
|
|
2742
|
+
name_locale: {
|
|
2743
|
+
"en-US": "Location",
|
|
2744
|
+
"th-TH": "สาขา",
|
|
2745
|
+
"zh-Hant": "位置",
|
|
2746
|
+
"zh-CN": "位置",
|
|
2747
|
+
"ja-JP": "場所"
|
|
2748
|
+
},
|
|
2749
|
+
fields: [
|
|
2750
|
+
{
|
|
2751
|
+
label: "connect.template.target_location",
|
|
2752
|
+
label_locale: {
|
|
2753
|
+
"en-US": "Target location",
|
|
2754
|
+
"th-TH": "สาขาเป้าหมาย",
|
|
2755
|
+
"zh-Hant": "目標位置",
|
|
2756
|
+
"zh-CN": "目标位置",
|
|
2757
|
+
"ja-JP": "対象店舗"
|
|
2758
|
+
},
|
|
2759
|
+
property: "campaign.targetLocation",
|
|
2760
|
+
type: "target_location"
|
|
2761
|
+
}
|
|
2762
|
+
]
|
|
2763
|
+
},
|
|
2764
|
+
{
|
|
2765
|
+
name: "connect.template.notify_audience",
|
|
2766
|
+
name_locale: {
|
|
2767
|
+
"en-US": "Notify audience",
|
|
2768
|
+
"th-TH": "แจ้งเตือนกลุ่มเป้าหมาย",
|
|
2769
|
+
"zh-Hant": "通知受眾",
|
|
2770
|
+
"zh-CN": "通知受众",
|
|
2771
|
+
"ja-JP": "対象者への通知"
|
|
2772
|
+
},
|
|
2773
|
+
fields: [
|
|
2774
|
+
{
|
|
2775
|
+
label: "connect.template.send_notification",
|
|
2776
|
+
label_locale: {
|
|
2777
|
+
"en-US": "Send notification",
|
|
2778
|
+
"th-TH": "ส่งการแจ้งเตือน",
|
|
2779
|
+
"zh-Hant": "發送通知",
|
|
2780
|
+
"zh-CN": "发送通知",
|
|
2781
|
+
"ja-JP": "通知を送信"
|
|
2782
|
+
},
|
|
2783
|
+
property: "campaign.notify",
|
|
2784
|
+
type: "switch"
|
|
2785
|
+
}
|
|
2786
|
+
]
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
name: "connect.template.notify_message",
|
|
2790
|
+
name_locale: {
|
|
2791
|
+
"en-US": "Notify message",
|
|
2792
|
+
"th-TH": "ข้อความแจ้งเตือน",
|
|
2793
|
+
"zh-Hant": "通知消息",
|
|
2794
|
+
"zh-CN": "通知消息",
|
|
2795
|
+
"ja-JP": "通知メッセージ"
|
|
2796
|
+
},
|
|
2797
|
+
fields: [
|
|
2798
|
+
{
|
|
2799
|
+
label: "connect.template.notification_message",
|
|
2800
|
+
label_locale: {
|
|
2801
|
+
"en-US": "Notification message",
|
|
2802
|
+
"th-TH": "ข้อความแจ้งเตือน",
|
|
2803
|
+
"zh-Hant": "通知消息",
|
|
2804
|
+
"zh-CN": "通知消息",
|
|
2805
|
+
"ja-JP": "通知メッセージ"
|
|
2806
|
+
},
|
|
2807
|
+
property: "campaign.notifyMessage",
|
|
2808
|
+
type: "message",
|
|
2809
|
+
extras: "ISSUE_REWARD"
|
|
2810
|
+
}
|
|
2811
|
+
],
|
|
2812
|
+
condition: {
|
|
2813
|
+
property: "campaign.notify",
|
|
2814
|
+
value: !0
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
]
|
|
2818
|
+
}
|
|
2819
|
+
],
|
|
2820
|
+
defaultValue: {
|
|
2821
|
+
templateId: "",
|
|
2822
|
+
campaign: {
|
|
2823
|
+
collectible: "",
|
|
2824
|
+
type: "VOUCHER",
|
|
2825
|
+
templateId: "",
|
|
2826
|
+
name: "",
|
|
2827
|
+
description: "",
|
|
2828
|
+
image: "",
|
|
2829
|
+
event: {
|
|
2830
|
+
type: "MEMBERSHIP_JOINED",
|
|
2831
|
+
rule: {
|
|
2832
|
+
...t.scaffoldGroup()
|
|
2833
|
+
}
|
|
2834
|
+
},
|
|
2835
|
+
group: null,
|
|
2836
|
+
targetLocation: null,
|
|
2837
|
+
timeframeOptions: {
|
|
2838
|
+
type: "timeframe",
|
|
2839
|
+
property: "__now"
|
|
2840
|
+
},
|
|
2841
|
+
earningOption: {
|
|
2842
|
+
type: "FIXED",
|
|
2843
|
+
amount: 1
|
|
2844
|
+
}
|
|
2845
|
+
},
|
|
2846
|
+
configs: o("VOUCHER", {
|
|
2847
|
+
name: "",
|
|
2848
|
+
business: null,
|
|
2849
|
+
noCampaign: !1
|
|
2850
|
+
})
|
|
2851
|
+
}
|
|
2852
|
+
};
|
|
1778
2853
|
t.setRuleToGroup(t.scaffoldGroup(), [
|
|
1779
2854
|
t.setRuleToGroup(
|
|
1780
2855
|
t.scaffoldGroup("g_schedule"),
|
|
@@ -2053,10 +3128,10 @@ const z = e.object({
|
|
|
2053
3128
|
role: e.string().optional(),
|
|
2054
3129
|
businessId: e.string().optional(),
|
|
2055
3130
|
restaurantId: e.string().optional()
|
|
2056
|
-
}),
|
|
3131
|
+
}), W = e.function().args(e.any(), z).returns(e.boolean()), Y = e.function().args(z).returns(e.promise(e.array(e.any())));
|
|
2057
3132
|
e.object({
|
|
2058
|
-
isAdmin:
|
|
2059
|
-
getRules:
|
|
3133
|
+
isAdmin: W,
|
|
3134
|
+
getRules: Y
|
|
2060
3135
|
});
|
|
2061
3136
|
e.object({
|
|
2062
3137
|
transactions: e.array(j),
|
|
@@ -2372,7 +3447,7 @@ e.object({
|
|
|
2372
3447
|
limit: e.coerce.number().int().positive().optional(),
|
|
2373
3448
|
skip: e.coerce.number().int().min(0).optional()
|
|
2374
3449
|
});
|
|
2375
|
-
const
|
|
3450
|
+
const Le = e.object({
|
|
2376
3451
|
averageScore: e.number(),
|
|
2377
3452
|
total: e.number().int().nonnegative(),
|
|
2378
3453
|
starCounts: e.array(
|
|
@@ -2514,10 +3589,13 @@ e.discriminatedUnion("source", [
|
|
|
2514
3589
|
]).describe(i.describe(me));
|
|
2515
3590
|
export {
|
|
2516
3591
|
O as F,
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
3592
|
+
Oe as S,
|
|
3593
|
+
Ee as T,
|
|
3594
|
+
Re as W,
|
|
3595
|
+
Ie as a,
|
|
3596
|
+
$ as b,
|
|
3597
|
+
T as c,
|
|
3598
|
+
h as d,
|
|
3599
|
+
Le as e,
|
|
3600
|
+
p as f
|
|
2523
3601
|
};
|