@feedmepos/mf-connect 0.1.8-prod → 0.1.10-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/{Analytic-C5DiiAlc.js → Analytic-CpSbitWV.js} +24 -22
- package/dist/{App-B3pHa-zu.js → App-BPT8XzjX.js} +56 -51
- package/dist/{Broadcast-BbKiYeZC.js → Broadcast-CJHpiQeN.js} +8 -8
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CusmGpDT.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DUPqWdIm.js} +7 -8
- package/dist/Card-Bvn36zqZ.js +895 -0
- package/dist/{Collections-DvZEXknp.js → Collections-Bq6OxsJC.js} +24 -29
- package/dist/{Credit-CqjSUWeG.js → Credit-Dno_g7dW.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-Bzd-9d8d.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-cGbwORhw.js} +649 -1284
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-C73wNCE4.js → EffectSheet.vue_vue_type_style_index_0_lang-Ho7zwlbb.js} +20 -20
- package/dist/{Experience-BmCrc4-K.js → Experience-BC1qSIGO.js} +8 -8
- package/dist/{Game-CU4AHASb.js → Game-C_CKGMBW.js} +8 -8
- package/dist/Index-BXFaWTfw.js +255 -0
- package/dist/{Marketing-PJO3M5Xy.js → Marketing-Ni0WAie5.js} +5 -5
- package/dist/{Member-DChbb26Z.js → Member-djnisrK1.js} +4 -4
- package/dist/{MemberList-Ckvxgme7.js → MemberList-CclU-3B7.js} +194 -191
- package/dist/{MemberTransactions-KNlKr1DE.js → MemberTransactions-DVVsv3Ux.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CDX1qdOw.js → MessageInput.vue_vue_type_script_setup_true_lang-khyDg1m4.js} +2 -2
- package/dist/Mission-Z5somdo_.js +273 -0
- package/dist/Overview-BvMVz3lQ.js +1074 -0
- package/dist/{Point-B-Ot-ZXU.js → Point-DdPukiTg.js} +8 -8
- package/dist/{Promotion-CKEfuwo0.js → Promotion-DCqdIwjG.js} +9 -9
- package/dist/Record-CvMxXm1B.js +337 -0
- package/dist/Reward-CiJHGXfQ.js +441 -0
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-CrGCBRmH.js +150 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-tnT6i0Jq.js +1638 -0
- package/dist/{Segment-B8JKn5_y.js → Segment-CQb3j-o0.js} +22 -21
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-B7YqIU5D.js +181 -0
- package/dist/{Setting-BcWDJ-63.js → Setting-91cK3ssU.js} +31 -31
- package/dist/Store-B-uldUKt.js +1744 -0
- package/dist/{StoreRewards-DyfFecSH.js → StoreRewards-dDNeFlA9.js} +15 -14
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BVb1X0aq.js +1132 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CHrZ7pit.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Ds0WxGxr.js} +1 -1
- package/dist/{Tier-iKOv9e2Y.js → Tier-_jMaLj3u.js} +185 -185
- package/dist/{Title-BRWnLlHd.js → Title-By7o67aT.js} +20 -20
- package/dist/{Transaction-BMnxATxc.js → Transaction-BLpEgeI2.js} +2 -2
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Bf_nO9zH.js +130 -0
- package/dist/{Voucher-B_IwtXLW.js → Voucher-CG5tfibn.js} +11 -11
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DpQUoXyQ.js +419 -0
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-YwGR2En3.js +56 -0
- package/dist/{app-Bs8TZeMP.js → app-DDmTqTb7.js} +1 -1
- package/dist/{app-CLPpu6jA.js → app-vCqTQIeC.js} +430 -276
- package/dist/app.js +1 -1
- package/dist/{business-Dg5T3krT.js → business-Cz78KGF2.js} +1 -1
- package/dist/{campaign-BMLeXfnZ.js → campaign-BBd4o7F_.js} +2 -2
- package/dist/campaign.enum-CIhi0b-m.js +20 -0
- package/dist/campaign.fn-5silF1DK.js +758 -0
- package/dist/collectible.enum-cMIQ6ogq.js +19 -0
- package/dist/{collection.fn-D4QJRMAS.js → collection.fn-BGc7Qeli.js} +2 -2
- package/dist/dto-i04OPJfW.js +2018 -0
- package/dist/{effect-BT6zDeUe.js → effect-D8UzkYRg.js} +1 -1
- package/dist/{email-addresses-DeUE8GFC.js → email-addresses-u05o35hN.js} +1 -1
- package/dist/{export-DWzBynN8.js → export-BEXuPYEd.js} +3 -3
- package/dist/{helper-Cs4YpYv9.js → helper-RptRJGv6.js} +1 -1
- package/dist/{index-aFNPEkUz.js → index-B8s-gucK.js} +13 -1
- package/dist/{index-B3GqF_vh.js → index-BjHZUhiH.js} +1 -1
- package/dist/{index-BUXB-qmB.js → index-Bpu2DYUc.js} +1348 -1342
- package/dist/{index-n-_5f43h.js → index-C6-rCMhD.js} +3 -3
- package/dist/{index-CjF0scjl.js → index-Cq_ZIbRm.js} +174 -168
- package/dist/{index-CiwzD983.js → index-DFAnoAe9.js} +1 -1
- package/dist/index-DbyJ6Nyn.js +54 -0
- package/dist/{index-BXs-tqST.js → index-Dt6K2eG8.js} +1 -1
- package/dist/{index-xCMvgFRa.js → index-DwzoqCt8.js} +989 -783
- package/dist/index-UfL5qRzR.js +1049 -0
- package/dist/index-g8EbRVnr.js +32 -0
- package/dist/{index-DfhJOhMY.js → index-hEE_ntHd.js} +1 -1
- package/dist/index-vh86FiIQ.js +10 -0
- package/dist/{index.esm2017-cme_1dHU.js → index.esm2017-BSzW_yaL.js} +1 -1
- package/dist/{loading-zw44FQ6v.js → loading-DjEdwdnj.js} +156 -153
- package/dist/{membership-Bg77E5Sx.js → membership-BL9Xs8lD.js} +52 -44
- package/dist/{money-BepQPzrc.js → money-D7lq0cx-.js} +1 -1
- package/dist/{number-BJ4XIfGj.js → number-BiDabTkI.js} +1 -1
- package/dist/objectid-CXf0jb1W.js +145 -0
- package/dist/reward-Cr8rbe5R.js +36 -0
- package/dist/{rule-builder-C1Jwhs7N.js → rule-builder-DPKFZ5UX.js} +1 -1
- package/dist/{rule-oDZ1Kic9.js → rule-vkYJij4h.js} +4 -3
- package/dist/{template-CSeRj8B2.js → template-Bep5Y5ch.js} +4 -4
- package/dist/trigger-fWhQ3bqv.js +144 -0
- package/dist/{usePagination-DUaGlE2s.js → usePagination-DSF5b4hM.js} +1 -1
- package/dist/user-9UiaP0xs.js +54 -0
- package/dist/{vue-i18n-4eZqYBzI.js → vue-i18n-BhiDOB1j.js} +112 -112
- package/dist/zod-Bg2FbC-D.js +90 -0
- package/package.json +2 -2
- package/dist/Card--Q4OMSRz.js +0 -824
- package/dist/Mission-B215NI_F.js +0 -261
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-C03bKqvg.js +0 -1804
- package/dist/Store-ada-EZLR.js +0 -1530
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Ra4nMKvT.js +0 -890
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-vsgeD3mK.js +0 -141
- package/dist/dto-CQy53qRe.js +0 -2770
- package/dist/index-CvJ_6M8U.js +0 -298
- package/dist/index-QAuJWbpX.js +0 -756
- package/dist/index-sGtk4oiO.js +0 -207
- package/dist/user-Bm4KttFq.js +0 -37
|
@@ -1,113 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import { i as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class: "fm-typo-en-body-lg-400 mb-4"
|
|
10
|
-
}, X = {
|
|
11
|
-
key: 1,
|
|
12
|
-
class: "fm-typo-en-body-lg-400"
|
|
13
|
-
}, q = { class: "rounded-md bg-white shadow-md max-h-[300px] overflow-y-scroll pl-4 py-12" }, ue = /* @__PURE__ */ P({
|
|
14
|
-
__name: "CustomSelect",
|
|
15
|
-
props: {
|
|
16
|
-
label: {
|
|
17
|
-
type: String,
|
|
18
|
-
required: !1
|
|
19
|
-
},
|
|
20
|
-
placeholder: {
|
|
21
|
-
type: String,
|
|
22
|
-
required: !1
|
|
23
|
-
},
|
|
24
|
-
items: {
|
|
25
|
-
type: Object,
|
|
26
|
-
required: !0
|
|
27
|
-
},
|
|
28
|
-
modelValue: {
|
|
29
|
-
type: Object
|
|
30
|
-
},
|
|
31
|
-
zIndex: {
|
|
32
|
-
type: Number
|
|
33
|
-
},
|
|
34
|
-
multiselect: {
|
|
35
|
-
type: Boolean
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
emits: ["update:model-value"],
|
|
39
|
-
setup(n, { emit: w }) {
|
|
40
|
-
const _ = w, m = V(!1);
|
|
41
|
-
return (v, b) => {
|
|
42
|
-
const A = s("FmIcon"), N = s("FmField"), F = s("FmMenuItem"), U = s("FmPopover");
|
|
43
|
-
return p(), O(U, {
|
|
44
|
-
"show-popover": I(m),
|
|
45
|
-
onPopoverChanged: b[0] || (b[0] = (a) => m.value = a),
|
|
46
|
-
"z-index": n.zIndex
|
|
47
|
-
}, {
|
|
48
|
-
"popover-button": g(() => [
|
|
49
|
-
L(v.$slots, "popover-button", {}, () => [
|
|
50
|
-
n.label ? (p(), d("div", W, u(n.label), 1)) : G("", !0),
|
|
51
|
-
h(N, null, {
|
|
52
|
-
append: g(() => [
|
|
53
|
-
L(v.$slots, "append"),
|
|
54
|
-
h(A, {
|
|
55
|
-
name: I(m) ? "expand_less" : "expand_more",
|
|
56
|
-
size: "md",
|
|
57
|
-
color: "black"
|
|
58
|
-
}, null, 8, ["name"])
|
|
59
|
-
]),
|
|
60
|
-
default: g(() => {
|
|
61
|
-
var a;
|
|
62
|
-
return [
|
|
63
|
-
n.multiselect ? (p(), d("div", X, u(n.items.filter((i) => {
|
|
64
|
-
var r;
|
|
65
|
-
return (r = n.modelValue) == null ? void 0 : r.includes(i.value);
|
|
66
|
-
}).map((i) => i.label).join(", ")), 1)) : (p(), d("div", {
|
|
67
|
-
key: 0,
|
|
68
|
-
class: x(["fm-typo-en-body-lg-400", {
|
|
69
|
-
"text-fm-color-typo-secondary": !n.items.find(
|
|
70
|
-
(i) => i.value == n.modelValue
|
|
71
|
-
)
|
|
72
|
-
}])
|
|
73
|
-
}, u(((a = n.items.find((i) => i.value == n.modelValue)) == null ? void 0 : a.label) || n.placeholder), 3))
|
|
74
|
-
];
|
|
75
|
-
}),
|
|
76
|
-
_: 3
|
|
77
|
-
})
|
|
78
|
-
])
|
|
79
|
-
]),
|
|
80
|
-
default: g(() => [
|
|
81
|
-
H("div", q, [
|
|
82
|
-
(p(!0), d(k, null, Y(n.items, (a) => {
|
|
83
|
-
var i, r;
|
|
84
|
-
return p(), O(F, {
|
|
85
|
-
class: x(`${n.multiselect ? (i = n.modelValue) != null && i.some((l) => l == a.value) ? "bg-fm-color-system-warning-100" : "" : n.modelValue == a.value}`),
|
|
86
|
-
"has-checkbox": n.multiselect,
|
|
87
|
-
key: a.value,
|
|
88
|
-
"model-value": n.multiselect ? (r = n.modelValue) == null ? void 0 : r.some((l) => l == a.value) : n.modelValue == a.value,
|
|
89
|
-
label: a.label,
|
|
90
|
-
onClick: (l) => {
|
|
91
|
-
var E;
|
|
92
|
-
if (l.stopPropagation(), !n.multiselect)
|
|
93
|
-
m.value = !1, _("update:model-value", a.value);
|
|
94
|
-
else {
|
|
95
|
-
const B = (E = n.modelValue) == null ? void 0 : E.some((y) => y == a.value);
|
|
96
|
-
_(
|
|
97
|
-
"update:model-value",
|
|
98
|
-
B ? (n.modelValue ?? []).filter((y) => y !== a.value) : [...n.modelValue ?? [], a.value]
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}, null, 8, ["class", "has-checkbox", "model-value", "label", "onClick"]);
|
|
103
|
-
}), 128))
|
|
104
|
-
])
|
|
105
|
-
]),
|
|
106
|
-
_: 3
|
|
107
|
-
}, 8, ["show-popover", "z-index"]);
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
}), fe = {
|
|
1
|
+
import { z as e, F as a, m as o } from "./loading-DjEdwdnj.js";
|
|
2
|
+
import { c as b } from "./index-Bpu2DYUc.js";
|
|
3
|
+
import { R as t } from "./rule-builder-DPKFZ5UX.js";
|
|
4
|
+
import { i } from "./helper-RptRJGv6.js";
|
|
5
|
+
import { g as v, h as E, i as p } from "./index-DwzoqCt8.js";
|
|
6
|
+
import { r as O } from "./index-UfL5qRzR.js";
|
|
7
|
+
import { F as r } from "./index-DbyJ6Nyn.js";
|
|
8
|
+
const J = {
|
|
111
9
|
PROMOTION: {
|
|
112
10
|
name: "Promotion Template",
|
|
113
11
|
description: "Promotion template for campaign creation.",
|
|
@@ -502,7 +400,7 @@ const W = {
|
|
|
502
400
|
// },
|
|
503
401
|
hideInApp: !0
|
|
504
402
|
},
|
|
505
|
-
configs:
|
|
403
|
+
configs: i("VOUCHER", {
|
|
506
404
|
name: "",
|
|
507
405
|
business: null,
|
|
508
406
|
noCampaign: !1
|
|
@@ -1442,7 +1340,7 @@ const W = {
|
|
|
1442
1340
|
rewards: []
|
|
1443
1341
|
}
|
|
1444
1342
|
},
|
|
1445
|
-
configs:
|
|
1343
|
+
configs: i("GAME", {
|
|
1446
1344
|
name: "Token",
|
|
1447
1345
|
business: null,
|
|
1448
1346
|
noCampaign: !1
|
|
@@ -1683,27 +1581,27 @@ const W = {
|
|
|
1683
1581
|
type: "timeframe"
|
|
1684
1582
|
}
|
|
1685
1583
|
},
|
|
1686
|
-
configs:
|
|
1584
|
+
configs: i("STAMP", {
|
|
1687
1585
|
business: null,
|
|
1688
1586
|
noCampaign: !1
|
|
1689
1587
|
})
|
|
1690
1588
|
}
|
|
1691
1589
|
}
|
|
1692
1590
|
};
|
|
1693
|
-
t.scaffoldGroup(),
|
|
1591
|
+
t.scaffoldGroup(), i("STAMP", {
|
|
1694
1592
|
business: null,
|
|
1695
1593
|
noCampaign: !1
|
|
1696
1594
|
});
|
|
1697
1595
|
({
|
|
1698
1596
|
...t.scaffoldGroup()
|
|
1699
|
-
},
|
|
1597
|
+
}, i("VOUCHER", {
|
|
1700
1598
|
name: "",
|
|
1701
1599
|
business: null,
|
|
1702
1600
|
noCampaign: !1
|
|
1703
1601
|
}));
|
|
1704
1602
|
({
|
|
1705
1603
|
...t.scaffoldGroup()
|
|
1706
|
-
},
|
|
1604
|
+
}, i("VOUCHER", {
|
|
1707
1605
|
name: "",
|
|
1708
1606
|
business: null,
|
|
1709
1607
|
noCampaign: !1
|
|
@@ -1746,7 +1644,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
|
|
|
1746
1644
|
});
|
|
1747
1645
|
({
|
|
1748
1646
|
...t.scaffoldGroup()
|
|
1749
|
-
},
|
|
1647
|
+
}, i("VOUCHER", {
|
|
1750
1648
|
name: "",
|
|
1751
1649
|
business: null,
|
|
1752
1650
|
noCampaign: !1
|
|
@@ -1792,14 +1690,14 @@ t.setRuleToGroup(
|
|
|
1792
1690
|
"&&"
|
|
1793
1691
|
)
|
|
1794
1692
|
);
|
|
1795
|
-
t.scaffoldGroup(), t.scaffoldGroup(),
|
|
1693
|
+
t.scaffoldGroup(), t.scaffoldGroup(), i("GAME", {
|
|
1796
1694
|
name: "Token",
|
|
1797
1695
|
business: null,
|
|
1798
1696
|
noCampaign: !1
|
|
1799
1697
|
});
|
|
1800
1698
|
({
|
|
1801
1699
|
...t.scaffoldGroup()
|
|
1802
|
-
},
|
|
1700
|
+
}, i("VOUCHER", {
|
|
1803
1701
|
name: "",
|
|
1804
1702
|
business: null,
|
|
1805
1703
|
noCampaign: !1
|
|
@@ -1828,7 +1726,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
|
|
|
1828
1726
|
],
|
|
1829
1727
|
"&&"
|
|
1830
1728
|
)
|
|
1831
|
-
]),
|
|
1729
|
+
]), i("VOUCHER", {
|
|
1832
1730
|
name: "",
|
|
1833
1731
|
business: null,
|
|
1834
1732
|
noCampaign: !1
|
|
@@ -1851,7 +1749,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
|
|
|
1851
1749
|
({
|
|
1852
1750
|
...t.scaffoldGroup()
|
|
1853
1751
|
});
|
|
1854
|
-
const
|
|
1752
|
+
const I = e.enum([
|
|
1855
1753
|
"MEMBER_REWARD",
|
|
1856
1754
|
"PAID_LOYALTY",
|
|
1857
1755
|
"COLLECT_FEEDBACK",
|
|
@@ -1861,7 +1759,7 @@ const z = e.enum([
|
|
|
1861
1759
|
"BROADCAST",
|
|
1862
1760
|
"BIRTHDAY",
|
|
1863
1761
|
"GAME"
|
|
1864
|
-
]),
|
|
1762
|
+
]), L = e.enum([
|
|
1865
1763
|
"text",
|
|
1866
1764
|
"number",
|
|
1867
1765
|
"textarea",
|
|
@@ -1888,76 +1786,76 @@ const z = e.enum([
|
|
|
1888
1786
|
"rule_feedback",
|
|
1889
1787
|
"rule_birthday",
|
|
1890
1788
|
"promotion_game_type"
|
|
1891
|
-
]),
|
|
1789
|
+
]), h = e.object({
|
|
1892
1790
|
label: e.string().optional(),
|
|
1893
1791
|
property: e.string().or(e.any()),
|
|
1894
|
-
type:
|
|
1792
|
+
type: L,
|
|
1895
1793
|
extras: e.string().optional(),
|
|
1896
1794
|
isRuleChildren: e.boolean().optional()
|
|
1897
|
-
}),
|
|
1795
|
+
}), R = e.object({
|
|
1898
1796
|
name: e.string().optional(),
|
|
1899
|
-
fields: e.array(
|
|
1797
|
+
fields: e.array(h),
|
|
1900
1798
|
condition: e.object({
|
|
1901
1799
|
not: e.boolean().optional(),
|
|
1902
1800
|
property: e.string(),
|
|
1903
1801
|
value: e.any()
|
|
1904
1802
|
}).optional()
|
|
1905
|
-
}),
|
|
1803
|
+
}), x = e.object({
|
|
1906
1804
|
name: e.string(),
|
|
1907
|
-
groups: e.array(
|
|
1805
|
+
groups: e.array(R)
|
|
1908
1806
|
});
|
|
1909
1807
|
e.object({
|
|
1910
|
-
_id:
|
|
1808
|
+
_id: a,
|
|
1911
1809
|
name: e.string(),
|
|
1912
1810
|
description: e.string().nullish(),
|
|
1913
|
-
steps: e.array(
|
|
1914
|
-
intention: e.array(
|
|
1811
|
+
steps: e.array(x).min(1),
|
|
1812
|
+
intention: e.array(I),
|
|
1915
1813
|
defaultValue: e.any()
|
|
1916
1814
|
}).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
|
|
1917
|
-
const
|
|
1815
|
+
const C = {
|
|
1918
1816
|
collectionName: "Businesses",
|
|
1919
1817
|
transform: {
|
|
1920
1818
|
_id: "oid"
|
|
1921
1819
|
}
|
|
1922
1820
|
};
|
|
1923
1821
|
e.object({
|
|
1924
|
-
_id:
|
|
1822
|
+
_id: a,
|
|
1925
1823
|
ownerId: e.string(),
|
|
1926
1824
|
name: e.string(),
|
|
1927
1825
|
credit: e.number(),
|
|
1928
1826
|
forceSend: e.boolean().optional()
|
|
1929
|
-
}).describe(
|
|
1930
|
-
const
|
|
1827
|
+
}).describe(o.describe(C));
|
|
1828
|
+
const c = e.enum(["PHONE"]), T = e.enum(["MOCEAN", "SLACK"]), D = e.enum(["PENDING", "COMPLETED", "FAILED"]), S = e.enum([
|
|
1931
1829
|
"General",
|
|
1932
1830
|
"Otp",
|
|
1933
1831
|
"Marketing",
|
|
1934
1832
|
"Ordering",
|
|
1935
1833
|
"MemberInvitation"
|
|
1936
|
-
]),
|
|
1937
|
-
type:
|
|
1938
|
-
}),
|
|
1939
|
-
type: e.literal(
|
|
1940
|
-
provider:
|
|
1941
|
-
usage:
|
|
1942
|
-
}),
|
|
1834
|
+
]), M = e.object({
|
|
1835
|
+
type: c
|
|
1836
|
+
}), m = M.extend({
|
|
1837
|
+
type: e.literal(c.enum.PHONE),
|
|
1838
|
+
provider: T,
|
|
1839
|
+
usage: S.optional()
|
|
1840
|
+
}), w = {
|
|
1943
1841
|
collectionName: "Notifications",
|
|
1944
1842
|
transform: { _id: "oid", business: "oid" }
|
|
1945
1843
|
};
|
|
1946
1844
|
e.object({
|
|
1947
|
-
_id:
|
|
1948
|
-
business:
|
|
1845
|
+
_id: a,
|
|
1846
|
+
business: a,
|
|
1949
1847
|
target: e.string(),
|
|
1950
1848
|
title: e.string().optional(),
|
|
1951
1849
|
message: e.string(),
|
|
1952
|
-
option:
|
|
1953
|
-
status:
|
|
1850
|
+
option: m,
|
|
1851
|
+
status: D,
|
|
1954
1852
|
ref: e.string().optional()
|
|
1955
|
-
}).describe(
|
|
1853
|
+
}).describe(o.describe(w));
|
|
1956
1854
|
e.object({
|
|
1957
1855
|
target: e.string(),
|
|
1958
1856
|
title: e.string().optional(),
|
|
1959
1857
|
message: e.string(),
|
|
1960
|
-
option:
|
|
1858
|
+
option: m,
|
|
1961
1859
|
ref: e.string().optional()
|
|
1962
1860
|
});
|
|
1963
1861
|
e.object({
|
|
@@ -1991,15 +1889,15 @@ e.object({
|
|
|
1991
1889
|
claimIds: e.array(e.string()),
|
|
1992
1890
|
billId: e.string()
|
|
1993
1891
|
});
|
|
1994
|
-
var
|
|
1995
|
-
e.nativeEnum(
|
|
1892
|
+
var s = /* @__PURE__ */ ((n) => (n[n.feedMe = 0] = "feedMe", n[n.business = 1] = "business", n[n.restaurant = 2] = "restaurant", n))(s || {});
|
|
1893
|
+
e.nativeEnum(s);
|
|
1996
1894
|
e.enum(["manage", "create", "read", "update", "delete"]);
|
|
1997
1895
|
e.enum(["all", "restaurant", "business", "delivery", "agent"]);
|
|
1998
1896
|
e.enum(["quota"]);
|
|
1999
|
-
var
|
|
2000
|
-
e.nativeEnum(
|
|
1897
|
+
var g = /* @__PURE__ */ ((n) => (n.marketing = "business::marketing", n.campaign = "business::campaign", n.counter = "business::counter", n.permission = "business::permission", n.role = "business::role", n))(g || {});
|
|
1898
|
+
e.nativeEnum(g);
|
|
2001
1899
|
e.enum(["restaurant"]);
|
|
2002
|
-
const
|
|
1900
|
+
const A = e.object({
|
|
2003
1901
|
label: e.string(),
|
|
2004
1902
|
subject: e.union([e.string(), e.array(e.string())]),
|
|
2005
1903
|
actions: e.union([e.string(), e.array(e.string())]),
|
|
@@ -2009,41 +1907,41 @@ const pe = e.object({
|
|
|
2009
1907
|
reason: e.string().optional()
|
|
2010
1908
|
});
|
|
2011
1909
|
e.object({
|
|
2012
|
-
_id:
|
|
1910
|
+
_id: a,
|
|
2013
1911
|
businessId: e.string(),
|
|
2014
1912
|
userId: e.string(),
|
|
2015
1913
|
email: e.string().nullish(),
|
|
2016
1914
|
phoneNo: e.string().nullish(),
|
|
2017
|
-
permissions: e.array(e.lazy(() =>
|
|
1915
|
+
permissions: e.array(e.lazy(() => A))
|
|
2018
1916
|
}).describe(
|
|
2019
|
-
|
|
1917
|
+
o.describe({
|
|
2020
1918
|
collectionName: "PermissionUsers",
|
|
2021
1919
|
transform: {
|
|
2022
1920
|
_id: "oid"
|
|
2023
1921
|
}
|
|
2024
1922
|
})
|
|
2025
1923
|
);
|
|
2026
|
-
const
|
|
1924
|
+
const d = e.object({
|
|
2027
1925
|
userId: e.string(),
|
|
2028
1926
|
level: e.number(),
|
|
2029
1927
|
role: e.string().optional(),
|
|
2030
1928
|
businessId: e.string().optional(),
|
|
2031
1929
|
restaurantId: e.string().optional()
|
|
2032
|
-
}),
|
|
1930
|
+
}), N = e.function().args(e.any(), d).returns(e.boolean()), U = e.function().args(d).returns(e.promise(e.array(e.any())));
|
|
2033
1931
|
e.object({
|
|
2034
|
-
isAdmin:
|
|
2035
|
-
getRules:
|
|
1932
|
+
isAdmin: N,
|
|
1933
|
+
getRules: U
|
|
2036
1934
|
});
|
|
2037
1935
|
e.object({
|
|
2038
|
-
transactions: e.array(
|
|
2039
|
-
collections: e.array(
|
|
1936
|
+
transactions: e.array(v),
|
|
1937
|
+
collections: e.array(E)
|
|
2040
1938
|
});
|
|
2041
|
-
const
|
|
1939
|
+
const y = e.enum([
|
|
2042
1940
|
"ROCK_PAPER_SCISSOR"
|
|
2043
1941
|
]);
|
|
2044
|
-
|
|
1942
|
+
y.enum.ROCK_PAPER_SCISSOR + "";
|
|
2045
1943
|
e.object({
|
|
2046
|
-
type:
|
|
1944
|
+
type: y
|
|
2047
1945
|
});
|
|
2048
1946
|
e.object({
|
|
2049
1947
|
host: e.string().url(),
|
|
@@ -2070,8 +1968,116 @@ e.object({
|
|
|
2070
1968
|
phone: e.string().optional(),
|
|
2071
1969
|
email: e.string().optional()
|
|
2072
1970
|
});
|
|
1971
|
+
const F = e.enum(["AUTO", "MANUAL"]);
|
|
1972
|
+
e.enum(["IN_PROGRESS", "COMPLETED"]);
|
|
1973
|
+
const u = e.object({
|
|
1974
|
+
_id: a,
|
|
1975
|
+
name: e.string().min(1, "Name is required").max(50),
|
|
1976
|
+
type: F,
|
|
1977
|
+
event: O.optional()
|
|
1978
|
+
}), P = e.object({
|
|
1979
|
+
from: e.number().int("Must be integer").min(1, "Min referral count need to start from 1"),
|
|
1980
|
+
to: e.number().int("Must be integer").nullish()
|
|
1981
|
+
}).superRefine((n, _) => {
|
|
1982
|
+
n.from && n.to && n.from > n.to && _.addIssue({
|
|
1983
|
+
code: "custom",
|
|
1984
|
+
message: "Max referral count must be more than min referral count"
|
|
1985
|
+
});
|
|
1986
|
+
}), B = e.object({
|
|
1987
|
+
threshold: P,
|
|
1988
|
+
rewards: e.array(a),
|
|
1989
|
+
pf_reward: e.array(r).optional()
|
|
1990
|
+
}), l = e.object({
|
|
1991
|
+
id: e.string(),
|
|
1992
|
+
name: e.string().min(1, "Name is required").max(50, "Name must be less than 50 characters"),
|
|
1993
|
+
rule: b.optional(),
|
|
1994
|
+
rewards: e.array(B)
|
|
1995
|
+
}), G = {
|
|
1996
|
+
collectionName: "ReferralRecords",
|
|
1997
|
+
transform: {
|
|
1998
|
+
_id: "oid",
|
|
1999
|
+
business: "oid",
|
|
2000
|
+
referer: "oid",
|
|
2001
|
+
referee: "oid",
|
|
2002
|
+
refereeReward: "oid"
|
|
2003
|
+
}
|
|
2004
|
+
}, H = e.object({
|
|
2005
|
+
completedAt: e.coerce.date(),
|
|
2006
|
+
criteria: a,
|
|
2007
|
+
ref: e.string()
|
|
2008
|
+
}), V = e.object({
|
|
2009
|
+
_id: a,
|
|
2010
|
+
business: a,
|
|
2011
|
+
referer: a,
|
|
2012
|
+
referee: a,
|
|
2013
|
+
criteria: e.array(u),
|
|
2014
|
+
reward: e.array(l),
|
|
2015
|
+
refereeReward: e.array(a).optional(),
|
|
2016
|
+
criteria_progress: e.array(H),
|
|
2017
|
+
status: e.string(),
|
|
2018
|
+
pf_referer: p.optional(),
|
|
2019
|
+
pf_referee: p.optional(),
|
|
2020
|
+
pf_refereeReward: e.array(r).optional()
|
|
2021
|
+
}).describe(o.describe(G));
|
|
2022
|
+
V.pick({
|
|
2023
|
+
_id: !0,
|
|
2024
|
+
business: !0,
|
|
2025
|
+
referer: !0,
|
|
2026
|
+
referee: !0,
|
|
2027
|
+
criteria_progress: !0,
|
|
2028
|
+
criteria: !0
|
|
2029
|
+
}).extend({
|
|
2030
|
+
pf_referee: p.pick({
|
|
2031
|
+
_id: !0,
|
|
2032
|
+
name: !0,
|
|
2033
|
+
phoneNumber: !0,
|
|
2034
|
+
photoUrl: !0
|
|
2035
|
+
})
|
|
2036
|
+
});
|
|
2037
|
+
const k = {
|
|
2038
|
+
collectionName: "ReferralProgram",
|
|
2039
|
+
transform: {
|
|
2040
|
+
_id: "oid",
|
|
2041
|
+
business: "oid"
|
|
2042
|
+
}
|
|
2043
|
+
}, f = e.object({
|
|
2044
|
+
_id: a,
|
|
2045
|
+
business: a,
|
|
2046
|
+
term_and_condition: e.string().optional(),
|
|
2047
|
+
refereeReward: e.array(a).optional(),
|
|
2048
|
+
reward: e.array(l),
|
|
2049
|
+
criteria: e.array(u)
|
|
2050
|
+
}).describe(o.describe(k));
|
|
2051
|
+
e.object({
|
|
2052
|
+
referer: a,
|
|
2053
|
+
referee: a,
|
|
2054
|
+
business: a
|
|
2055
|
+
});
|
|
2056
|
+
e.object({
|
|
2057
|
+
program: f.pick({
|
|
2058
|
+
_id: !0,
|
|
2059
|
+
business: !0,
|
|
2060
|
+
term_and_condition: !0
|
|
2061
|
+
}).extend({
|
|
2062
|
+
reward: l.optional(),
|
|
2063
|
+
pf_refereeReward: e.array(r).optional()
|
|
2064
|
+
}),
|
|
2065
|
+
referralCount: e.number(),
|
|
2066
|
+
successReferralCount: e.number(),
|
|
2067
|
+
referredBy: p.pick({
|
|
2068
|
+
_id: !0,
|
|
2069
|
+
name: !0,
|
|
2070
|
+
phoneNumber: !0,
|
|
2071
|
+
photoUrl: !0
|
|
2072
|
+
}).optional()
|
|
2073
|
+
});
|
|
2074
|
+
f.extend({
|
|
2075
|
+
updateReferralRecord: e.boolean().optional()
|
|
2076
|
+
});
|
|
2073
2077
|
export {
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2078
|
+
I as F,
|
|
2079
|
+
J as T,
|
|
2080
|
+
B as a,
|
|
2081
|
+
u as b,
|
|
2082
|
+
l as c
|
|
2077
2083
|
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { F as o, e as t, g as a } from "./index-Bpu2DYUc.js";
|
|
2
|
+
import { z as e, F as i, m as d } from "./loading-DjEdwdnj.js";
|
|
3
|
+
import { a as c } from "./collectible.enum-cMIQ6ogq.js";
|
|
4
|
+
const l = e.enum(["VOUCHER", "LOYALTY"]), n = e.object({
|
|
5
|
+
type: e.literal(l.enum.VOUCHER),
|
|
6
|
+
collectible: i,
|
|
7
|
+
collectibleConfig: e.lazy(() => o._def.right.options[0]),
|
|
8
|
+
earningOption: e.lazy(() => t)
|
|
9
|
+
}), s = e.object({
|
|
10
|
+
type: e.literal(l.enum.LOYALTY),
|
|
11
|
+
collectibleType: c,
|
|
12
|
+
collectible: i,
|
|
13
|
+
earningOption: e.lazy(() => t),
|
|
14
|
+
validityOption: e.lazy(() => a)
|
|
15
|
+
}), r = e.discriminatedUnion("type", [
|
|
16
|
+
n,
|
|
17
|
+
s
|
|
18
|
+
]), p = e.discriminatedUnion("type", [
|
|
19
|
+
n.extend({
|
|
20
|
+
collectible: i.nullish(),
|
|
21
|
+
business: i.nullish()
|
|
22
|
+
}),
|
|
23
|
+
s.extend({
|
|
24
|
+
collectible: i.nullish(),
|
|
25
|
+
collectibleConfig: o.nullish(),
|
|
26
|
+
business: i.nullish()
|
|
27
|
+
})
|
|
28
|
+
]), m = {
|
|
29
|
+
collectionName: "RewardTemplates",
|
|
30
|
+
transform: {
|
|
31
|
+
_id: "oid",
|
|
32
|
+
business: "oid",
|
|
33
|
+
deletedAt: "date"
|
|
34
|
+
}
|
|
35
|
+
}, b = e.object({
|
|
36
|
+
_id: i,
|
|
37
|
+
business: i,
|
|
38
|
+
name: e.string(),
|
|
39
|
+
option: r,
|
|
40
|
+
deletedAt: e.date().optional(),
|
|
41
|
+
collectibleConfig: e.lazy(() => o.nullish())
|
|
42
|
+
}).describe(d.describe(m)), u = b.extend({
|
|
43
|
+
_id: i.nullish(),
|
|
44
|
+
business: i.nullish(),
|
|
45
|
+
option: p,
|
|
46
|
+
name: e.string().min(1, { message: "Name is required" })
|
|
47
|
+
});
|
|
48
|
+
u.extend({
|
|
49
|
+
updateCollection: e.boolean().optional()
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
b as F,
|
|
53
|
+
u as a
|
|
54
|
+
};
|