@feedmepos/mf-connect 0.1.0-beta.18 → 0.1.0-beta.19
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/{Analytic-Cpbk-NKN.js → Analytic-C_VhRLv6.js} +8 -8
- package/dist/{App-CSuWKpx9.js → App-BfRWtnHD.js} +6 -6
- package/dist/{Broadcast-0ZuJB2LN.js → Broadcast-CkP0D5Q0.js} +8 -8
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BYeRznlh.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-NtvMAKVf.js} +8 -9
- package/dist/{Card-OxKvWwWH.js → Card-B3LUbgFG.js} +16 -16
- package/dist/{Collections-BsyzZEMM.js → Collections-auS6nQgP.js} +4 -4
- package/dist/{Credit-BrHz-837.js → Credit-DFCzt7yb.js} +8 -8
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-B9BdGlxy.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BI0BX8t8.js} +27 -28
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Dpl6tvDZ.js → EffectSheet.vue_vue_type_style_index_0_lang-BrjVcauR.js} +6 -6
- package/dist/{Experience-BrngDPXy.js → Experience-CVb3L3Nz.js} +8 -8
- package/dist/{Game-B2gmU0KP.js → Game-CVtfz6Hq.js} +8 -8
- package/dist/{Index-Dtv8pN8t.js → Index-DFcZ4uTO.js} +7 -7
- package/dist/{Marketing-D-uobPZj.js → Marketing-DLF6iuTD.js} +5 -5
- package/dist/{Member-CFanAP9c.js → Member-CYtrF8IE.js} +4 -4
- package/dist/{MemberList-Be9AkZx7.js → MemberList-CrUHnX69.js} +14 -14
- package/dist/{MemberTransactions-DZFzJjL1.js → MemberTransactions-DJGj_aav.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-C9Hmp5AV.js → MessageInput.vue_vue_type_script_setup_true_lang-BEXdm4kC.js} +2 -2
- package/dist/{Mission-C2LN6tmI.js → Mission-_LSdgxEz.js} +8 -8
- package/dist/{Overview-Dp5vZAD2.js → Overview-CuIPJALM.js} +19 -20
- package/dist/{Point-LYWHAbfT.js → Point-CVMEXAZ5.js} +23 -23
- package/dist/{Promotion-D9Uz3RVF.js → Promotion-DSfbCLAe.js} +9 -9
- package/dist/{Record-BQawMBFJ.js → Record-BNzcMcpH.js} +4 -4
- package/dist/{Reward-DnOgjBmc.js → Reward-BCN44pw_.js} +10 -10
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-ClsXTutz.js → RewardGroup.vue_vue_type_script_setup_true_lang-By5HgODg.js} +24 -25
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DzuiHZ4F.js → RuleGroup.vue_vue_type_script_setup_true_lang-X24tGtbC.js} +15 -15
- package/dist/{Segment-84pM7r21.js → Segment-MSDomTz2.js} +13 -13
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-PBG09_Xd.js → SelectItems.vue_vue_type_script_setup_true_lang-DyeY1fV7.js} +2 -2
- package/dist/{Setting-DpI2EtLW.js → Setting-BOLu10II.js} +8 -8
- package/dist/Store-CtJ9sJol.js +1729 -0
- package/dist/{StoreRewards-CoEqF7tq.js → StoreRewards-B5HCIRFt.js} +12 -12
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-QNn_cpIj.js +957 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DSXJhgN5.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-arVZw_Lq.js} +1 -1
- package/dist/{Tier-ByFEVCB1.js → Tier-C3Y6q17j.js} +15 -15
- package/dist/{Title-CixULZVV.js → Title-_fk7AbId.js} +15 -15
- package/dist/{Transaction-C8O36Tic.js → Transaction-D9CM1V_f.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DaFy1-0t.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BIpPKUWx.js} +7 -7
- package/dist/{Voucher-C17ZqMwt.js → Voucher-Bo5QWYT0.js} +11 -11
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DYBwXGNM.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CjxmRY5U.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B6Y_0_0B.js → ZodTextField.vue_vue_type_script_setup_true_lang-BK28WW3q.js} +1 -1
- package/dist/{app-DWQ7FKR5.js → app-C_djUlXx.js} +28 -28
- package/dist/{app-C4IiqNxo.js → app-ChpdgMfQ.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-Bo4XlSLO.js → business-DJIj4b8e.js} +1 -1
- package/dist/{campaign-2GS-rWee.js → campaign-NrE6WI9q.js} +2 -2
- package/dist/{collectible.enum-BTe7ThwY.js → collectible.enum-BzLkFq1w.js} +1 -1
- package/dist/{collection.fn-HVdkty7e.js → collection.fn-DQ71Nfut.js} +2 -2
- package/dist/{dto-Ddwu78pi.js → dto-12HT7-EA.js} +9 -9
- package/dist/{effect-82Y4qyy9.js → effect-CobPZ4Rb.js} +1 -1
- package/dist/{email-addresses-C7FOU34X.js → email-addresses-DiWLZMlA.js} +1 -1
- package/dist/{export-BICOj_3Z.js → export-BrJSwHlS.js} +3 -3
- package/dist/{helper-DKlgiqoM.js → helper-CCRX-fvI.js} +1 -1
- package/dist/{index-DUg8bRnj.js → index--wa67pRl.js} +1 -1
- package/dist/{index-Bmd3L3d8.js → index-BBkLSHsJ.js} +2 -2
- package/dist/{index-BU_p-Wxk.js → index-BCyJY05i.js} +122 -227
- package/dist/{index-C5V1DXJ3.js → index-BS_AxWZH.js} +1 -1
- package/dist/{index-DYb8bAlK.js → index-B__nVNTt.js} +1 -1
- package/dist/{index-BywkQACO.js → index-Bt2_f4Oi.js} +3 -3
- package/dist/index-CC2lo_Wb.js +1067 -0
- package/dist/{index-Bg2aYWbv.js → index-C_KMGXv9.js} +4 -4
- package/dist/{index-vSDex5dq.js → index-Ct8B2VHH.js} +3 -3
- package/dist/{index-NCYfGK0D.js → index-DtnUFcfv.js} +1 -1
- package/dist/{index-CW8QD0w5.js → index-DwU8LaVM.js} +3 -3
- package/dist/{index-DKtYRLHP.js → index-DzJUULpT.js} +7 -1
- package/dist/{index-BknjV1TY.js → index-bsRZyOPx.js} +1 -1
- package/dist/{index.esm2017-OZYANK5V.js → index.esm2017-B_FgkPTh.js} +1 -1
- package/dist/{loading-CbuSa9Y3.js → loading-fHk0Jjet.js} +4 -4
- package/dist/{membership-BpIwCoII.js → membership-BW1NS-Ql.js} +3 -3
- package/dist/{money-DPaFWGx6.js → money-CmeLOjIj.js} +1 -1
- package/dist/{number-BNn9X4rd.js → number-D0Hk2ezY.js} +1 -1
- package/dist/{objectid-DSfoThM2.js → objectid-hW6Oa6sR.js} +4 -4
- package/dist/{reward-BQFkCz55.js → reward-BRZhngDm.js} +1 -1
- package/dist/{rule-CGMa_mkm.js → rule-CECp9iUW.js} +3 -3
- package/dist/{rule-builder-DOtc0rMB.js → rule-builder-BQpTUVhb.js} +1 -1
- package/dist/{template-JT8E8lRm.js → template-CLAh7Qcz.js} +4 -4
- package/dist/{trigger-D8chra-Q.js → trigger-BTbRRpH9.js} +4 -4
- package/dist/{vue-i18n-CO7pDkoc.js → vue-i18n-BQqGhLq-.js} +2 -2
- package/dist/{xlsx-BGSVLeCK.js → xlsx-BxwhyUvM.js} +1 -1
- package/package.json +3 -3
- package/dist/Store-BuYCnY5B.js +0 -1531
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-C4GTSh2j.js +0 -890
- package/dist/index-CAhgbG8r.js +0 -298
- package/dist/index-OpOMBjAq.js +0 -774
|
@@ -1,116 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { b as u } from "./index-Bg2aYWbv.js";
|
|
1
|
+
import { z as e, F as n, m as o } from "./loading-fHk0Jjet.js";
|
|
2
|
+
import { c as _ } from "./index-BBkLSHsJ.js";
|
|
3
|
+
import { R as t } from "./rule-builder-BQpTUVhb.js";
|
|
4
|
+
import { i } from "./helper-CCRX-fvI.js";
|
|
5
|
+
import { d as b, e as v } from "./index-Bt2_f4Oi.js";
|
|
6
|
+
import { s as E } from "./index-CC2lo_Wb.js";
|
|
7
|
+
import { F as O } from "./index-Ct8B2VHH.js";
|
|
8
|
+
import { b as p } from "./index-C_KMGXv9.js";
|
|
10
9
|
const ee = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "fm-typo-en-body-lg-400 mb-4"
|
|
13
|
-
}, te = {
|
|
14
|
-
key: 1,
|
|
15
|
-
class: "fm-typo-en-body-lg-400"
|
|
16
|
-
}, ne = { class: "rounded-md bg-white shadow-md max-h-[300px] overflow-y-scroll pl-4 py-12" }, Ue = /* @__PURE__ */ j({
|
|
17
|
-
__name: "CustomSelect",
|
|
18
|
-
props: {
|
|
19
|
-
label: {
|
|
20
|
-
type: String,
|
|
21
|
-
required: !1
|
|
22
|
-
},
|
|
23
|
-
placeholder: {
|
|
24
|
-
type: String,
|
|
25
|
-
required: !1
|
|
26
|
-
},
|
|
27
|
-
items: {
|
|
28
|
-
type: Object,
|
|
29
|
-
required: !0
|
|
30
|
-
},
|
|
31
|
-
modelValue: {
|
|
32
|
-
type: Object
|
|
33
|
-
},
|
|
34
|
-
zIndex: {
|
|
35
|
-
type: Number
|
|
36
|
-
},
|
|
37
|
-
multiselect: {
|
|
38
|
-
type: Boolean
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
emits: ["update:model-value"],
|
|
42
|
-
setup(n, { emit: P }) {
|
|
43
|
-
const v = P, s = Y(!1);
|
|
44
|
-
return (E, O) => {
|
|
45
|
-
const B = g("FmIcon"), G = g("FmField"), V = g("FmMenuItem"), H = g("FmPopover");
|
|
46
|
-
return r(), h(H, {
|
|
47
|
-
"show-popover": L(s),
|
|
48
|
-
onPopoverChanged: O[0] || (O[0] = (i) => s.value = i),
|
|
49
|
-
"z-index": n.zIndex
|
|
50
|
-
}, {
|
|
51
|
-
"popover-button": d(() => [
|
|
52
|
-
x(E.$slots, "popover-button", {}, () => [
|
|
53
|
-
n.label ? (r(), y("div", ee, _(n.label), 1)) : K("", !0),
|
|
54
|
-
C(G, null, {
|
|
55
|
-
append: d(() => [
|
|
56
|
-
x(E.$slots, "append"),
|
|
57
|
-
C(B, {
|
|
58
|
-
name: L(s) ? "expand_less" : "expand_more",
|
|
59
|
-
size: "md",
|
|
60
|
-
color: "black"
|
|
61
|
-
}, null, 8, ["name"])
|
|
62
|
-
]),
|
|
63
|
-
default: d(() => {
|
|
64
|
-
var i;
|
|
65
|
-
return [
|
|
66
|
-
n.multiselect ? (r(), y("div", te, _(n.items.filter((o) => {
|
|
67
|
-
var c;
|
|
68
|
-
return (c = n.modelValue) == null ? void 0 : c.includes(o.value);
|
|
69
|
-
}).map((o) => o.label).join(", ")), 1)) : (r(), y("div", {
|
|
70
|
-
key: 0,
|
|
71
|
-
class: R(["fm-typo-en-body-lg-400", {
|
|
72
|
-
"text-fm-color-typo-secondary": !n.items.find(
|
|
73
|
-
(o) => o.value == n.modelValue
|
|
74
|
-
)
|
|
75
|
-
}])
|
|
76
|
-
}, _(((i = n.items.find((o) => o.value == n.modelValue)) == null ? void 0 : i.label) || n.placeholder), 3))
|
|
77
|
-
];
|
|
78
|
-
}),
|
|
79
|
-
_: 3
|
|
80
|
-
})
|
|
81
|
-
])
|
|
82
|
-
]),
|
|
83
|
-
default: d(() => [
|
|
84
|
-
W("div", ne, [
|
|
85
|
-
(r(!0), y(X, null, q(n.items, (i) => {
|
|
86
|
-
var o, c;
|
|
87
|
-
return r(), h(V, {
|
|
88
|
-
class: R(`${n.multiselect ? (o = n.modelValue) != null && o.some((m) => m == i.value) ? "bg-fm-color-system-warning-100" : "" : n.modelValue == i.value}`),
|
|
89
|
-
"has-checkbox": n.multiselect,
|
|
90
|
-
key: i.value,
|
|
91
|
-
"model-value": n.multiselect ? (c = n.modelValue) == null ? void 0 : c.some((m) => m == i.value) : n.modelValue == i.value,
|
|
92
|
-
label: i.label,
|
|
93
|
-
onClick: (m) => {
|
|
94
|
-
var I;
|
|
95
|
-
if (m.stopPropagation(), !n.multiselect)
|
|
96
|
-
s.value = !1, v("update:model-value", i.value);
|
|
97
|
-
else {
|
|
98
|
-
const k = (I = n.modelValue) == null ? void 0 : I.some((f) => f == i.value);
|
|
99
|
-
v(
|
|
100
|
-
"update:model-value",
|
|
101
|
-
k ? (n.modelValue ?? []).filter((f) => f !== i.value) : [...n.modelValue ?? [], i.value]
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}, null, 8, ["class", "has-checkbox", "model-value", "label", "onClick"]);
|
|
106
|
-
}), 128))
|
|
107
|
-
])
|
|
108
|
-
]),
|
|
109
|
-
_: 3
|
|
110
|
-
}, 8, ["show-popover", "z-index"]);
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
}), Pe = {
|
|
114
10
|
PROMOTION: {
|
|
115
11
|
name: "Promotion Template",
|
|
116
12
|
description: "Promotion template for campaign creation.",
|
|
@@ -505,7 +401,7 @@ const ee = {
|
|
|
505
401
|
// },
|
|
506
402
|
hideInApp: !0
|
|
507
403
|
},
|
|
508
|
-
configs:
|
|
404
|
+
configs: i("VOUCHER", {
|
|
509
405
|
name: "",
|
|
510
406
|
business: null,
|
|
511
407
|
noCampaign: !1
|
|
@@ -1445,7 +1341,7 @@ const ee = {
|
|
|
1445
1341
|
rewards: []
|
|
1446
1342
|
}
|
|
1447
1343
|
},
|
|
1448
|
-
configs:
|
|
1344
|
+
configs: i("GAME", {
|
|
1449
1345
|
name: "Token",
|
|
1450
1346
|
business: null,
|
|
1451
1347
|
noCampaign: !1
|
|
@@ -1686,27 +1582,27 @@ const ee = {
|
|
|
1686
1582
|
type: "timeframe"
|
|
1687
1583
|
}
|
|
1688
1584
|
},
|
|
1689
|
-
configs:
|
|
1585
|
+
configs: i("STAMP", {
|
|
1690
1586
|
business: null,
|
|
1691
1587
|
noCampaign: !1
|
|
1692
1588
|
})
|
|
1693
1589
|
}
|
|
1694
1590
|
}
|
|
1695
1591
|
};
|
|
1696
|
-
t.scaffoldGroup(),
|
|
1592
|
+
t.scaffoldGroup(), i("STAMP", {
|
|
1697
1593
|
business: null,
|
|
1698
1594
|
noCampaign: !1
|
|
1699
1595
|
});
|
|
1700
1596
|
({
|
|
1701
1597
|
...t.scaffoldGroup()
|
|
1702
|
-
},
|
|
1598
|
+
}, i("VOUCHER", {
|
|
1703
1599
|
name: "",
|
|
1704
1600
|
business: null,
|
|
1705
1601
|
noCampaign: !1
|
|
1706
1602
|
}));
|
|
1707
1603
|
({
|
|
1708
1604
|
...t.scaffoldGroup()
|
|
1709
|
-
},
|
|
1605
|
+
}, i("VOUCHER", {
|
|
1710
1606
|
name: "",
|
|
1711
1607
|
business: null,
|
|
1712
1608
|
noCampaign: !1
|
|
@@ -1749,7 +1645,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
|
|
|
1749
1645
|
});
|
|
1750
1646
|
({
|
|
1751
1647
|
...t.scaffoldGroup()
|
|
1752
|
-
},
|
|
1648
|
+
}, i("VOUCHER", {
|
|
1753
1649
|
name: "",
|
|
1754
1650
|
business: null,
|
|
1755
1651
|
noCampaign: !1
|
|
@@ -1795,14 +1691,14 @@ t.setRuleToGroup(
|
|
|
1795
1691
|
"&&"
|
|
1796
1692
|
)
|
|
1797
1693
|
);
|
|
1798
|
-
t.scaffoldGroup(), t.scaffoldGroup(),
|
|
1694
|
+
t.scaffoldGroup(), t.scaffoldGroup(), i("GAME", {
|
|
1799
1695
|
name: "Token",
|
|
1800
1696
|
business: null,
|
|
1801
1697
|
noCampaign: !1
|
|
1802
1698
|
});
|
|
1803
1699
|
({
|
|
1804
1700
|
...t.scaffoldGroup()
|
|
1805
|
-
},
|
|
1701
|
+
}, i("VOUCHER", {
|
|
1806
1702
|
name: "",
|
|
1807
1703
|
business: null,
|
|
1808
1704
|
noCampaign: !1
|
|
@@ -1831,7 +1727,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
|
|
|
1831
1727
|
],
|
|
1832
1728
|
"&&"
|
|
1833
1729
|
)
|
|
1834
|
-
]),
|
|
1730
|
+
]), i("VOUCHER", {
|
|
1835
1731
|
name: "",
|
|
1836
1732
|
business: null,
|
|
1837
1733
|
noCampaign: !1
|
|
@@ -1854,7 +1750,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
|
|
|
1854
1750
|
({
|
|
1855
1751
|
...t.scaffoldGroup()
|
|
1856
1752
|
});
|
|
1857
|
-
const
|
|
1753
|
+
const I = e.enum([
|
|
1858
1754
|
"MEMBER_REWARD",
|
|
1859
1755
|
"PAID_LOYALTY",
|
|
1860
1756
|
"COLLECT_FEEDBACK",
|
|
@@ -1864,7 +1760,7 @@ const ae = e.enum([
|
|
|
1864
1760
|
"BROADCAST",
|
|
1865
1761
|
"BIRTHDAY",
|
|
1866
1762
|
"GAME"
|
|
1867
|
-
]),
|
|
1763
|
+
]), L = e.enum([
|
|
1868
1764
|
"text",
|
|
1869
1765
|
"number",
|
|
1870
1766
|
"textarea",
|
|
@@ -1891,95 +1787,95 @@ const ae = e.enum([
|
|
|
1891
1787
|
"rule_feedback",
|
|
1892
1788
|
"rule_birthday",
|
|
1893
1789
|
"promotion_game_type"
|
|
1894
|
-
]),
|
|
1790
|
+
]), h = e.object({
|
|
1895
1791
|
label: e.string().optional(),
|
|
1896
1792
|
property: e.string().or(e.any()),
|
|
1897
|
-
type:
|
|
1793
|
+
type: L,
|
|
1898
1794
|
extras: e.string().optional(),
|
|
1899
1795
|
isRuleChildren: e.boolean().optional()
|
|
1900
|
-
}),
|
|
1796
|
+
}), C = e.object({
|
|
1901
1797
|
name: e.string().optional(),
|
|
1902
|
-
fields: e.array(
|
|
1798
|
+
fields: e.array(h),
|
|
1903
1799
|
condition: e.object({
|
|
1904
1800
|
not: e.boolean().optional(),
|
|
1905
1801
|
property: e.string(),
|
|
1906
1802
|
value: e.any()
|
|
1907
1803
|
}).optional()
|
|
1908
|
-
}),
|
|
1804
|
+
}), x = e.object({
|
|
1909
1805
|
name: e.string(),
|
|
1910
|
-
groups: e.array(
|
|
1806
|
+
groups: e.array(C)
|
|
1911
1807
|
});
|
|
1912
1808
|
e.object({
|
|
1913
|
-
_id:
|
|
1809
|
+
_id: n,
|
|
1914
1810
|
name: e.string(),
|
|
1915
1811
|
description: e.string().nullish(),
|
|
1916
|
-
steps: e.array(
|
|
1917
|
-
intention: e.array(
|
|
1812
|
+
steps: e.array(x).min(1),
|
|
1813
|
+
intention: e.array(I),
|
|
1918
1814
|
defaultValue: e.any()
|
|
1919
1815
|
}).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
|
|
1920
|
-
const
|
|
1816
|
+
const R = {
|
|
1921
1817
|
collectionName: "Businesses",
|
|
1922
1818
|
transform: {
|
|
1923
1819
|
_id: "oid"
|
|
1924
1820
|
}
|
|
1925
1821
|
};
|
|
1926
1822
|
e.object({
|
|
1927
|
-
_id:
|
|
1823
|
+
_id: n,
|
|
1928
1824
|
ownerId: e.string(),
|
|
1929
1825
|
name: e.string(),
|
|
1930
1826
|
credit: e.number(),
|
|
1931
1827
|
forceSend: e.boolean().optional()
|
|
1932
|
-
}).describe(
|
|
1933
|
-
const
|
|
1828
|
+
}).describe(o.describe(R));
|
|
1829
|
+
const c = e.enum(["PHONE"]), T = e.enum(["MOCEAN", "SLACK", "SMS", "EMAIL"]), D = e.enum(["PENDING", "COMPLETED", "FAILED"]), S = e.enum([
|
|
1934
1830
|
"General",
|
|
1935
1831
|
"Otp",
|
|
1936
1832
|
"Marketing",
|
|
1937
1833
|
"Ordering",
|
|
1938
1834
|
"MemberInvitation"
|
|
1939
|
-
]),
|
|
1940
|
-
type:
|
|
1941
|
-
}),
|
|
1942
|
-
type: e.literal(
|
|
1943
|
-
provider:
|
|
1944
|
-
usage:
|
|
1945
|
-
}),
|
|
1835
|
+
]), A = e.object({
|
|
1836
|
+
type: c
|
|
1837
|
+
}), m = A.extend({
|
|
1838
|
+
type: e.literal(c.enum.PHONE),
|
|
1839
|
+
provider: T,
|
|
1840
|
+
usage: S.optional()
|
|
1841
|
+
}), M = {
|
|
1946
1842
|
collectionName: "Notifications",
|
|
1947
1843
|
transform: { _id: "oid", business: "oid" }
|
|
1948
1844
|
};
|
|
1949
1845
|
e.object({
|
|
1950
|
-
_id:
|
|
1951
|
-
business:
|
|
1846
|
+
_id: n,
|
|
1847
|
+
business: n,
|
|
1952
1848
|
target: e.string(),
|
|
1953
1849
|
title: e.string().optional(),
|
|
1954
1850
|
message: e.string(),
|
|
1955
|
-
option:
|
|
1956
|
-
status:
|
|
1851
|
+
option: m,
|
|
1852
|
+
status: D,
|
|
1957
1853
|
ref: e.string().optional()
|
|
1958
|
-
}).describe(
|
|
1854
|
+
}).describe(o.describe(M));
|
|
1959
1855
|
e.object({
|
|
1960
1856
|
target: e.string(),
|
|
1961
1857
|
title: e.string().optional(),
|
|
1962
1858
|
message: e.string(),
|
|
1963
|
-
option:
|
|
1859
|
+
option: m,
|
|
1964
1860
|
ref: e.string().optional()
|
|
1965
1861
|
});
|
|
1966
1862
|
e.object({
|
|
1967
1863
|
phone: e.string(),
|
|
1968
1864
|
message: e.string()
|
|
1969
1865
|
});
|
|
1970
|
-
const
|
|
1866
|
+
const l = e.object({
|
|
1971
1867
|
name: e.string(),
|
|
1972
1868
|
address: e.string()
|
|
1973
|
-
}),
|
|
1869
|
+
}), N = e.object({
|
|
1974
1870
|
filename: e.string(),
|
|
1975
1871
|
content: e.instanceof(Uint8Array)
|
|
1976
1872
|
});
|
|
1977
1873
|
e.object({
|
|
1978
|
-
from:
|
|
1979
|
-
to: e.array(
|
|
1874
|
+
from: l,
|
|
1875
|
+
to: e.array(l),
|
|
1980
1876
|
subject: e.string(),
|
|
1981
1877
|
html: e.string().optional(),
|
|
1982
|
-
attachments: e.array(
|
|
1878
|
+
attachments: e.array(N).optional()
|
|
1983
1879
|
});
|
|
1984
1880
|
e.object({
|
|
1985
1881
|
subject: e.string(),
|
|
@@ -2012,15 +1908,15 @@ e.object({
|
|
|
2012
1908
|
claimIds: e.array(e.string()),
|
|
2013
1909
|
billId: e.string()
|
|
2014
1910
|
});
|
|
2015
|
-
var
|
|
2016
|
-
e.nativeEnum(
|
|
1911
|
+
var s = /* @__PURE__ */ ((a) => (a[a.feedMe = 0] = "feedMe", a[a.business = 1] = "business", a[a.restaurant = 2] = "restaurant", a))(s || {});
|
|
1912
|
+
e.nativeEnum(s);
|
|
2017
1913
|
e.enum(["manage", "create", "read", "update", "delete"]);
|
|
2018
1914
|
e.enum(["all", "restaurant", "business", "delivery", "agent"]);
|
|
2019
1915
|
e.enum(["quota"]);
|
|
2020
|
-
var
|
|
2021
|
-
e.nativeEnum(
|
|
1916
|
+
var g = /* @__PURE__ */ ((a) => (a.marketing = "business::marketing", a.campaign = "business::campaign", a.counter = "business::counter", a.permission = "business::permission", a.role = "business::role", a))(g || {});
|
|
1917
|
+
e.nativeEnum(g);
|
|
2022
1918
|
e.enum(["restaurant"]);
|
|
2023
|
-
const
|
|
1919
|
+
const w = e.object({
|
|
2024
1920
|
label: e.string(),
|
|
2025
1921
|
subject: e.union([e.string(), e.array(e.string())]),
|
|
2026
1922
|
actions: e.union([e.string(), e.array(e.string())]),
|
|
@@ -2030,41 +1926,41 @@ const ue = e.object({
|
|
|
2030
1926
|
reason: e.string().optional()
|
|
2031
1927
|
});
|
|
2032
1928
|
e.object({
|
|
2033
|
-
_id:
|
|
1929
|
+
_id: n,
|
|
2034
1930
|
businessId: e.string(),
|
|
2035
1931
|
userId: e.string(),
|
|
2036
1932
|
email: e.string().nullish(),
|
|
2037
1933
|
phoneNo: e.string().nullish(),
|
|
2038
|
-
permissions: e.array(e.lazy(() =>
|
|
1934
|
+
permissions: e.array(e.lazy(() => w))
|
|
2039
1935
|
}).describe(
|
|
2040
|
-
|
|
1936
|
+
o.describe({
|
|
2041
1937
|
collectionName: "PermissionUsers",
|
|
2042
1938
|
transform: {
|
|
2043
1939
|
_id: "oid"
|
|
2044
1940
|
}
|
|
2045
1941
|
})
|
|
2046
1942
|
);
|
|
2047
|
-
const
|
|
1943
|
+
const d = e.object({
|
|
2048
1944
|
userId: e.string(),
|
|
2049
1945
|
level: e.number(),
|
|
2050
1946
|
role: e.string().optional(),
|
|
2051
1947
|
businessId: e.string().optional(),
|
|
2052
1948
|
restaurantId: e.string().optional()
|
|
2053
|
-
}),
|
|
1949
|
+
}), U = e.function().args(e.any(), d).returns(e.boolean()), F = e.function().args(d).returns(e.promise(e.array(e.any())));
|
|
2054
1950
|
e.object({
|
|
2055
|
-
isAdmin:
|
|
2056
|
-
getRules:
|
|
1951
|
+
isAdmin: U,
|
|
1952
|
+
getRules: F
|
|
2057
1953
|
});
|
|
2058
1954
|
e.object({
|
|
2059
|
-
transactions: e.array(
|
|
2060
|
-
collections: e.array(
|
|
1955
|
+
transactions: e.array(b),
|
|
1956
|
+
collections: e.array(v)
|
|
2061
1957
|
});
|
|
2062
|
-
const
|
|
1958
|
+
const y = e.enum([
|
|
2063
1959
|
"ROCK_PAPER_SCISSOR"
|
|
2064
1960
|
]);
|
|
2065
|
-
|
|
1961
|
+
y.enum.ROCK_PAPER_SCISSOR + "";
|
|
2066
1962
|
e.object({
|
|
2067
|
-
type:
|
|
1963
|
+
type: y
|
|
2068
1964
|
});
|
|
2069
1965
|
e.object({
|
|
2070
1966
|
host: e.string().url(),
|
|
@@ -2091,12 +1987,12 @@ e.object({
|
|
|
2091
1987
|
phone: e.string().optional(),
|
|
2092
1988
|
email: e.string().optional()
|
|
2093
1989
|
});
|
|
2094
|
-
const
|
|
1990
|
+
const P = e.enum([
|
|
2095
1991
|
"PENDING",
|
|
2096
1992
|
"SUCCESS",
|
|
2097
1993
|
"FAILED",
|
|
2098
1994
|
"RETRYING"
|
|
2099
|
-
]),
|
|
1995
|
+
]), B = {
|
|
2100
1996
|
collectionName: "WebhookLogs",
|
|
2101
1997
|
transform: {
|
|
2102
1998
|
_id: "oid",
|
|
@@ -2104,34 +2000,34 @@ const be = e.enum([
|
|
|
2104
2000
|
}
|
|
2105
2001
|
};
|
|
2106
2002
|
e.object({
|
|
2107
|
-
_id:
|
|
2108
|
-
business:
|
|
2003
|
+
_id: n,
|
|
2004
|
+
business: n,
|
|
2109
2005
|
type: e.string(),
|
|
2110
2006
|
payload: e.record(e.any()),
|
|
2111
|
-
status:
|
|
2007
|
+
status: P,
|
|
2112
2008
|
response: e.any().optional(),
|
|
2113
2009
|
error: e.string().optional()
|
|
2114
|
-
}).describe(
|
|
2115
|
-
const
|
|
2010
|
+
}).describe(o.describe(B));
|
|
2011
|
+
const G = e.enum(["AUTO", "MANUAL"]);
|
|
2116
2012
|
e.enum(["IN_PROGRESS", "COMPLETED"]);
|
|
2117
|
-
const
|
|
2118
|
-
_id:
|
|
2013
|
+
const u = e.object({
|
|
2014
|
+
_id: n,
|
|
2119
2015
|
name: e.string().min(1, "Name is required").max(50),
|
|
2120
|
-
type:
|
|
2121
|
-
event:
|
|
2122
|
-
}),
|
|
2016
|
+
type: G,
|
|
2017
|
+
event: E.optional()
|
|
2018
|
+
}), H = e.object({
|
|
2123
2019
|
from: e.number().int("Must be integer").min(0, "Threshold need to be at least 0"),
|
|
2124
2020
|
to: e.number().int("Must be integer").nullish()
|
|
2125
|
-
}),
|
|
2126
|
-
threshold:
|
|
2127
|
-
rewards: e.array(
|
|
2128
|
-
pf_reward: e.array(
|
|
2129
|
-
}),
|
|
2021
|
+
}), V = e.object({
|
|
2022
|
+
threshold: H,
|
|
2023
|
+
rewards: e.array(n),
|
|
2024
|
+
pf_reward: e.array(O).optional()
|
|
2025
|
+
}), r = e.object({
|
|
2130
2026
|
id: e.string(),
|
|
2131
2027
|
name: e.string().min(1, "Name is required").max(50, "Name must be less than 50 characters"),
|
|
2132
|
-
rule:
|
|
2133
|
-
rewards: e.array(
|
|
2134
|
-
}),
|
|
2028
|
+
rule: _.optional(),
|
|
2029
|
+
rewards: e.array(V)
|
|
2030
|
+
}), k = {
|
|
2135
2031
|
collectionName: "ReferralRecords",
|
|
2136
2032
|
transform: {
|
|
2137
2033
|
_id: "oid",
|
|
@@ -2139,23 +2035,23 @@ const F = e.object({
|
|
|
2139
2035
|
referer: "oid",
|
|
2140
2036
|
referee: "oid"
|
|
2141
2037
|
}
|
|
2142
|
-
},
|
|
2038
|
+
}, j = e.object({
|
|
2143
2039
|
completedAt: e.coerce.date(),
|
|
2144
|
-
criteria:
|
|
2040
|
+
criteria: n,
|
|
2145
2041
|
ref: e.string()
|
|
2146
|
-
}),
|
|
2147
|
-
_id:
|
|
2148
|
-
business:
|
|
2149
|
-
referer:
|
|
2150
|
-
referee:
|
|
2151
|
-
criteria: e.array(
|
|
2152
|
-
reward: e.array(
|
|
2153
|
-
criteria_progress: e.array(
|
|
2042
|
+
}), Y = e.object({
|
|
2043
|
+
_id: n,
|
|
2044
|
+
business: n,
|
|
2045
|
+
referer: n,
|
|
2046
|
+
referee: n,
|
|
2047
|
+
criteria: e.array(u),
|
|
2048
|
+
reward: e.array(r),
|
|
2049
|
+
criteria_progress: e.array(j),
|
|
2154
2050
|
status: e.string(),
|
|
2155
|
-
pf_referer:
|
|
2156
|
-
pf_referee:
|
|
2157
|
-
}).describe(
|
|
2158
|
-
|
|
2051
|
+
pf_referer: p.optional(),
|
|
2052
|
+
pf_referee: p.optional()
|
|
2053
|
+
}).describe(o.describe(k));
|
|
2054
|
+
Y.pick({
|
|
2159
2055
|
_id: !0,
|
|
2160
2056
|
business: !0,
|
|
2161
2057
|
referer: !0,
|
|
@@ -2163,56 +2059,55 @@ xe.pick({
|
|
|
2163
2059
|
criteria_progress: !0,
|
|
2164
2060
|
criteria: !0
|
|
2165
2061
|
}).extend({
|
|
2166
|
-
pf_referee:
|
|
2062
|
+
pf_referee: p.pick({
|
|
2167
2063
|
_id: !0,
|
|
2168
2064
|
name: !0,
|
|
2169
2065
|
phoneNumber: !0,
|
|
2170
2066
|
photoUrl: !0
|
|
2171
2067
|
})
|
|
2172
2068
|
});
|
|
2173
|
-
const
|
|
2069
|
+
const K = {
|
|
2174
2070
|
collectionName: "ReferralProgram",
|
|
2175
2071
|
transform: {
|
|
2176
2072
|
_id: "oid",
|
|
2177
2073
|
business: "oid"
|
|
2178
2074
|
}
|
|
2179
|
-
},
|
|
2180
|
-
_id:
|
|
2181
|
-
business:
|
|
2075
|
+
}, f = e.object({
|
|
2076
|
+
_id: n,
|
|
2077
|
+
business: n,
|
|
2182
2078
|
term_and_condition: e.string().optional(),
|
|
2183
|
-
reward: e.array(
|
|
2184
|
-
criteria: e.array(
|
|
2185
|
-
}).describe(
|
|
2079
|
+
reward: e.array(r),
|
|
2080
|
+
criteria: e.array(u)
|
|
2081
|
+
}).describe(o.describe(K));
|
|
2186
2082
|
e.object({
|
|
2187
|
-
referer:
|
|
2188
|
-
referee:
|
|
2189
|
-
business:
|
|
2083
|
+
referer: n,
|
|
2084
|
+
referee: n,
|
|
2085
|
+
business: n
|
|
2190
2086
|
});
|
|
2191
2087
|
e.object({
|
|
2192
|
-
program:
|
|
2088
|
+
program: f.pick({
|
|
2193
2089
|
_id: !0,
|
|
2194
2090
|
business: !0,
|
|
2195
2091
|
term_and_condition: !0
|
|
2196
2092
|
}).extend({
|
|
2197
|
-
reward:
|
|
2093
|
+
reward: r.optional()
|
|
2198
2094
|
}),
|
|
2199
2095
|
referralCount: e.number(),
|
|
2200
2096
|
successReferralCount: e.number(),
|
|
2201
|
-
referredBy:
|
|
2097
|
+
referredBy: p.pick({
|
|
2202
2098
|
_id: !0,
|
|
2203
2099
|
name: !0,
|
|
2204
2100
|
phoneNumber: !0,
|
|
2205
2101
|
photoUrl: !0
|
|
2206
2102
|
}).optional()
|
|
2207
2103
|
});
|
|
2208
|
-
|
|
2104
|
+
f.extend({
|
|
2209
2105
|
updateReferralRecord: e.boolean().optional()
|
|
2210
2106
|
});
|
|
2211
2107
|
export {
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
b as c
|
|
2108
|
+
I as F,
|
|
2109
|
+
ee as T,
|
|
2110
|
+
V as a,
|
|
2111
|
+
u as b,
|
|
2112
|
+
r as c
|
|
2218
2113
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { z as o, F as e, m as r } from "./loading-
|
|
2
|
-
import { m as d, n as u, k as a } from "./index-
|
|
3
|
-
import { a as m } from "./collectible.enum-
|
|
1
|
+
import { z as o, F as e, m as r } from "./loading-fHk0Jjet.js";
|
|
2
|
+
import { m as d, n as u, k as a } from "./index-BBkLSHsJ.js";
|
|
3
|
+
import { a as m } from "./collectible.enum-BzLkFq1w.js";
|
|
4
4
|
const b = o.enum([
|
|
5
5
|
"PORTAL",
|
|
6
6
|
"BENEFIT",
|