@feedmepos/mf-connect 0.1.63-prod → 0.1.65-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-CG3hA6fW.js → Analytic-C5DE9NQJ.js} +27 -28
- package/dist/{App-CQUFVNES.js → App-DgEd6GLa.js} +7 -7
- package/dist/{Bin-whBityJo.js → Bin-DyWpGeoP.js} +8 -8
- package/dist/{Broadcast-BRgmIWF2.js → Broadcast-eqjJulx4.js} +10 -11
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DfATb_0G.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BfgttR2V.js} +6 -6
- package/dist/{Card-BgIT9bSV.js → Card-hFexO-iT.js} +16 -16
- package/dist/{Collections-DgBll2HL.js → Collections-BtBugjnH.js} +179 -165
- package/dist/{Credit-FVqQqTve.js → Credit-98wQjJxS.js} +10 -11
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CIApefkS.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-IrMeqHYK.js} +31 -31
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CVRvxR02.js → EffectSheet.vue_vue_type_style_index_0_lang-QM5-F282.js} +6 -6
- package/dist/{Experience-C23g_MfA.js → Experience-eVl9fAYr.js} +27 -28
- package/dist/{Game-CqbQTIqS.js → Game-C1oQthuo.js} +11 -12
- package/dist/{Index-D32I90Uf.js → Index-BACzirfP.js} +10 -10
- package/dist/{Marketing-ApmF9GMZ.js → Marketing-BOuh3JQF.js} +6 -6
- package/dist/{Member-p-MDnwdo.js → Member-DHcw5SAF.js} +10 -10
- package/dist/{MemberList-CWS216Oq.js → MemberList-BNVIjVXb.js} +25 -25
- package/dist/{MemberTransactions-1NaCYExP.js → MemberTransactions-DMpNrtT4.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Ds28eMF3.js → MessageInput.vue_vue_type_script_setup_true_lang-MYkwax61.js} +7 -7
- package/dist/{Mission-D2EklQ6k.js → Mission-O9thc-xh.js} +19 -20
- package/dist/{Overview-Q2_jChHL.js → Overview-DYDTEJpf.js} +18 -18
- package/dist/{Point-D7IFoiQ5.js → Point-AoMfVDyc.js} +10 -11
- package/dist/{Promotion-BMKAj_VJ.js → Promotion-Bdmmnd5n.js} +11 -12
- package/dist/{Queue-CckukUf2.js → Queue-C59v4zpR.js} +10 -10
- package/dist/{Record-sjJx9Rxr.js → Record-DJimfMy6.js} +8 -8
- package/dist/{Reward-C33_2GAs.js → Reward-DoRA5oe0.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-4Ah1HGJW.js → RewardGroup.vue_vue_type_script_setup_true_lang-ys_Vh6MC.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CpDZBVmB.js → RuleGroup.vue_vue_type_script_setup_true_lang-ClQbIu9q.js} +13 -13
- package/dist/{Segment-CR4_Y82e.js → Segment-B1bvEg9R.js} +22 -22
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CDZw5i96.js → SelectItems.vue_vue_type_script_setup_true_lang-BKdjRWtr.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-pW_AdLpP.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CDOOVRwr.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BS62Yf0v.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CvZRK_DV.js} +3 -3
- package/dist/{Setting-D4RTLzZM.js → Setting-puwRxs7w.js} +12 -12
- package/dist/{SettingAdvertisements-Cc9IMI41.js → SettingAdvertisements-D0e9lyCy.js} +65 -63
- package/dist/Store-BSbLeEpY.js +1924 -0
- package/dist/{StoreRewards-CzrZS5Au.js → StoreRewards-DDtlg3wU.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Ci3xQrAn.js → StoreTransactions.vue_vue_type_script_setup_true_lang-xWPIvf68.js} +361 -343
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DG7dPhv0.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-6gvUWrB_.js} +1 -1
- package/dist/{Tier-9-iKsHxM.js → Tier-C3ZY5wI7.js} +97 -98
- package/dist/{Title-C6TY3BbS.js → Title-D9FHvMc0.js} +27 -28
- package/dist/{Transaction-BGxgNf0y.js → Transaction-hopVsT0g.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-xiH9sxVn.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CsL3d7xM.js} +6 -6
- package/dist/{Voucher-Cdh0PqeF.js → Voucher-D1WfKPnA.js} +132 -117
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BRw2nedI.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BCorf-T-.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-D6En5sRQ.js → ZodTextField.vue_vue_type_script_setup_true_lang-fp4U_C6t.js} +1 -1
- package/dist/{app-DIFcDSPz.js → app-BOEkcROx.js} +1 -1
- package/dist/{app-qOoNoXsj.js → app-VcIY7uz8.js} +496 -454
- package/dist/app.js +1 -1
- package/dist/{business-D8WOIwU3.js → business-CxrnbBG7.js} +1 -1
- package/dist/{campaign-B5Zcg5dG.js → campaign-DOOGvk7s.js} +9 -9
- package/dist/campaign-OdVtlvIh.js +213 -0
- package/dist/{campaign.enum-BVGqtpbT.js → campaign.enum-jzknDWsU.js} +1 -1
- package/dist/{campaign.fn-BJksX0lC.js → campaign.fn-C8KE-0gy.js} +40 -40
- package/dist/{collectible.enum-CDt5sCg-.js → collectible.enum-GH2dIJq0.js} +1 -1
- package/dist/{collection.fn-BmkwrIEt.js → collection.fn-BAhwf5Jh.js} +2 -2
- package/dist/{dto-BazhL1Wz.js → dto-B7m1l1UL.js} +4 -4
- package/dist/{effect-CERxlyga.js → effect-Cu0scI-k.js} +1 -1
- package/dist/{email-addresses-XWcL2s8u.js → email-addresses-C0c1x8Vz.js} +1 -1
- package/dist/{export-Ctk6xkHX.js → export-BR2VkJmz.js} +3 -3
- package/dist/{helper-C36sBB0k.js → helper-DNkQl8J2.js} +1 -1
- package/dist/{index-CYHzkVmf.js → index-BsQsj910.js} +3 -3
- package/dist/{index-BHPj_XYw.js → index-ByfJpxsf.js} +4 -4
- package/dist/{index-B9gRFG1Q.js → index-C23lCiVv.js} +1 -1
- package/dist/{index-Dz55oJOD.js → index-CO55xRbh.js} +530 -523
- package/dist/{index-D-cA3r-f.js → index-C_rW5Zzv.js} +1 -1
- package/dist/{index-1xCqie-s.js → index-CszV-kA7.js} +1 -1
- package/dist/{index-COJnc6ip.js → index-DWMboOMi.js} +1 -1
- package/dist/{index-Dr1iOdke.js → index-Dfi4M9Ap.js} +112 -104
- package/dist/{index-BSdS5JkE.js → index-DlgPQvBd.js} +1 -1
- package/dist/{index-BGirRSvf.js → index-Drvx6WWC.js} +1 -1
- package/dist/{index-Ctu4ZSkP.js → index-RkjhZsEw.js} +1 -1
- package/dist/{index-BhcuNARt.js → index-WCOWzb_D.js} +3 -3
- package/dist/{index-BAjS-mNm.js → index-WY8Y3SjU.js} +3 -3
- package/dist/{index.esm2017-CwEbNcAn.js → index.esm2017-DBFvix-C.js} +1 -1
- package/dist/{loading-DsAWzrAU.js → loading-DfP4ZQcW.js} +1 -1
- package/dist/{membership-CIWA-YIz.js → membership-CiLwVV-2.js} +3 -3
- package/dist/{money-B8_RYpfI.js → money-B92Ui9aH.js} +1 -1
- package/dist/{number-ClNyxrPX.js → number-CHYDMZpy.js} +1 -1
- package/dist/{objectid-B7Hb21TR.js → objectid-CsToJ4hH.js} +6 -6
- package/dist/{plugins-BaCcQwW_.js → plugins-GAf1L8Pd.js} +2 -2
- package/dist/{reward-Br3L7Y4x.js → reward-FLVXCKuH.js} +1 -1
- package/dist/{rule-CELh8Paa.js → rule-BHV4bC-1.js} +3 -3
- package/dist/{rule-builder-Dw3JpYy8.js → rule-builder-5WcDxoUM.js} +1 -1
- package/dist/{template-BIOneLeZ.js → template-C-y0046H.js} +4 -4
- package/dist/{timezone-Jr40C0YQ.js → timezone-Bdf9qSCF.js} +1 -1
- package/dist/{trigger-Bl_yRkKF.js → trigger-CjZQ4Gch.js} +4 -4
- package/dist/{user-C3J0hjK-.js → user-C5qgJUwB.js} +1 -1
- package/dist/{vue-i18n-DbCbvmTz.js → vue-i18n-6i4pn5bC.js} +99 -99
- package/dist/{xlsx-ClGRNHcc.js → xlsx-C4iuxJ6i.js} +166 -166
- package/package.json +1 -1
- package/dist/Store-BTE44D1j.js +0 -1842
- package/dist/campaign-IEgssyOs.js +0 -94
- package/dist/index-DTvC-nBb.js +0 -124
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { z as e, F as n, m as o } from "./index-
|
|
2
|
-
import { c as
|
|
3
|
-
import { R as t } from "./rule-builder-
|
|
4
|
-
import { i } from "./helper-
|
|
5
|
-
import { D as
|
|
6
|
-
import { a as r } from "./index-
|
|
7
|
-
const
|
|
1
|
+
import { z as e, F as n, m as o } from "./index-WY8Y3SjU.js";
|
|
2
|
+
import { c as E } from "./index-CO55xRbh.js";
|
|
3
|
+
import { R as t } from "./rule-builder-5WcDxoUM.js";
|
|
4
|
+
import { i } from "./helper-DNkQl8J2.js";
|
|
5
|
+
import { D as O, E as I, G as L, H as p } from "./index-ByfJpxsf.js";
|
|
6
|
+
import { a as r } from "./index-WCOWzb_D.js";
|
|
7
|
+
const ee = {
|
|
8
8
|
PROMOTION: {
|
|
9
9
|
name: "Promotion Template",
|
|
10
10
|
description: "Promotion template for campaign creation.",
|
|
@@ -309,6 +309,20 @@ const $ = {
|
|
|
309
309
|
}
|
|
310
310
|
]
|
|
311
311
|
},
|
|
312
|
+
// {
|
|
313
|
+
// name: 'Hide in App (FeedVibe)',
|
|
314
|
+
// fields: [
|
|
315
|
+
// {
|
|
316
|
+
// label: 'Hide',
|
|
317
|
+
// property: 'campaign.hideInApp',
|
|
318
|
+
// type: 'switch',
|
|
319
|
+
// },
|
|
320
|
+
// ],
|
|
321
|
+
// condition: {
|
|
322
|
+
// property: 'campaign.event.type',
|
|
323
|
+
// value: 'SIMPLE_CLAIM',
|
|
324
|
+
// },
|
|
325
|
+
// },
|
|
312
326
|
{
|
|
313
327
|
name: "Redemption",
|
|
314
328
|
fields: [
|
|
@@ -318,24 +332,16 @@ const $ = {
|
|
|
318
332
|
type: "text"
|
|
319
333
|
}
|
|
320
334
|
],
|
|
321
|
-
condition:
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
{
|
|
327
|
-
name: "Hide in App (FeedVibe)",
|
|
328
|
-
fields: [
|
|
335
|
+
condition: [
|
|
336
|
+
{
|
|
337
|
+
property: "campaign.event.type",
|
|
338
|
+
value: "SIMPLE_CLAIM"
|
|
339
|
+
},
|
|
329
340
|
{
|
|
330
|
-
label: "Hide",
|
|
331
341
|
property: "campaign.hideInApp",
|
|
332
|
-
|
|
342
|
+
value: !0
|
|
333
343
|
}
|
|
334
|
-
]
|
|
335
|
-
condition: {
|
|
336
|
-
property: "campaign.event.type",
|
|
337
|
-
value: "SIMPLE_CLAIM"
|
|
338
|
-
}
|
|
344
|
+
]
|
|
339
345
|
},
|
|
340
346
|
{
|
|
341
347
|
name: "Notify audience",
|
|
@@ -1766,7 +1772,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
|
|
|
1766
1772
|
({
|
|
1767
1773
|
...t.scaffoldGroup()
|
|
1768
1774
|
});
|
|
1769
|
-
const
|
|
1775
|
+
const h = e.enum([
|
|
1770
1776
|
"MEMBER_REWARD",
|
|
1771
1777
|
"PAID_LOYALTY",
|
|
1772
1778
|
"COLLECT_FEEDBACK",
|
|
@@ -1776,7 +1782,7 @@ const L = e.enum([
|
|
|
1776
1782
|
"BROADCAST",
|
|
1777
1783
|
"BIRTHDAY",
|
|
1778
1784
|
"GAME"
|
|
1779
|
-
]),
|
|
1785
|
+
]), R = e.enum([
|
|
1780
1786
|
"text",
|
|
1781
1787
|
"number",
|
|
1782
1788
|
"textarea",
|
|
@@ -1803,33 +1809,35 @@ const L = e.enum([
|
|
|
1803
1809
|
"rule_feedback",
|
|
1804
1810
|
"rule_birthday",
|
|
1805
1811
|
"promotion_game_type"
|
|
1806
|
-
]),
|
|
1812
|
+
]), C = e.object({
|
|
1807
1813
|
label: e.string().optional(),
|
|
1808
1814
|
property: e.string().or(e.any()),
|
|
1809
|
-
type:
|
|
1815
|
+
type: R,
|
|
1810
1816
|
extras: e.string().optional(),
|
|
1811
1817
|
isRuleChildren: e.boolean().optional()
|
|
1812
|
-
}),
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
not: e.boolean().optional(),
|
|
1817
|
-
property: e.string(),
|
|
1818
|
-
value: e.any()
|
|
1819
|
-
}).optional()
|
|
1818
|
+
}), c = e.object({
|
|
1819
|
+
not: e.boolean().optional(),
|
|
1820
|
+
property: e.string(),
|
|
1821
|
+
value: e.any()
|
|
1820
1822
|
}), x = e.object({
|
|
1823
|
+
name: e.string().optional(),
|
|
1824
|
+
fields: e.array(C),
|
|
1825
|
+
condition: c.optional().or(
|
|
1826
|
+
e.array(c)
|
|
1827
|
+
)
|
|
1828
|
+
}), T = e.object({
|
|
1821
1829
|
name: e.string(),
|
|
1822
|
-
groups: e.array(
|
|
1830
|
+
groups: e.array(x)
|
|
1823
1831
|
});
|
|
1824
1832
|
e.object({
|
|
1825
1833
|
_id: n,
|
|
1826
1834
|
name: e.string(),
|
|
1827
1835
|
description: e.string().nullish(),
|
|
1828
|
-
steps: e.array(
|
|
1829
|
-
intention: e.array(
|
|
1836
|
+
steps: e.array(T).min(1),
|
|
1837
|
+
intention: e.array(h),
|
|
1830
1838
|
defaultValue: e.any()
|
|
1831
1839
|
}).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
|
|
1832
|
-
const
|
|
1840
|
+
const D = {
|
|
1833
1841
|
collectionName: "Businesses",
|
|
1834
1842
|
transform: {
|
|
1835
1843
|
_id: "oid"
|
|
@@ -1841,27 +1849,27 @@ e.object({
|
|
|
1841
1849
|
name: e.string(),
|
|
1842
1850
|
credit: e.number(),
|
|
1843
1851
|
forceSend: e.boolean().optional()
|
|
1844
|
-
}).describe(o.describe(
|
|
1845
|
-
const
|
|
1852
|
+
}).describe(o.describe(D));
|
|
1853
|
+
const s = e.enum(["PHONE"]), S = e.enum([
|
|
1846
1854
|
"MOCEAN",
|
|
1847
1855
|
"SLACK",
|
|
1848
1856
|
"SMS",
|
|
1849
1857
|
"EMAIL",
|
|
1850
1858
|
"WHATSAPP"
|
|
1851
|
-
]),
|
|
1859
|
+
]), A = e.enum(["PENDING", "COMPLETED", "FAILED"]), M = e.enum([
|
|
1852
1860
|
"General",
|
|
1853
1861
|
"Otp",
|
|
1854
1862
|
"Marketing",
|
|
1855
1863
|
"Ordering",
|
|
1856
1864
|
"MemberInvitation",
|
|
1857
1865
|
"MarketingPromotion"
|
|
1858
|
-
]),
|
|
1859
|
-
type:
|
|
1860
|
-
}),
|
|
1861
|
-
type: e.literal(
|
|
1862
|
-
provider:
|
|
1863
|
-
usage:
|
|
1864
|
-
}),
|
|
1866
|
+
]), w = e.object({
|
|
1867
|
+
type: s
|
|
1868
|
+
}), g = w.extend({
|
|
1869
|
+
type: e.literal(s.enum.PHONE),
|
|
1870
|
+
provider: S,
|
|
1871
|
+
usage: M.optional()
|
|
1872
|
+
}), N = {
|
|
1865
1873
|
collectionName: "Notifications",
|
|
1866
1874
|
transform: { _id: "oid", business: "oid" }
|
|
1867
1875
|
};
|
|
@@ -1871,34 +1879,34 @@ e.object({
|
|
|
1871
1879
|
target: e.string(),
|
|
1872
1880
|
title: e.string().optional(),
|
|
1873
1881
|
message: e.string(),
|
|
1874
|
-
option:
|
|
1875
|
-
status:
|
|
1882
|
+
option: g,
|
|
1883
|
+
status: A,
|
|
1876
1884
|
ref: e.string().optional()
|
|
1877
|
-
}).describe(o.describe(
|
|
1885
|
+
}).describe(o.describe(N));
|
|
1878
1886
|
e.object({
|
|
1879
1887
|
target: e.string(),
|
|
1880
1888
|
title: e.string().optional(),
|
|
1881
1889
|
message: e.string(),
|
|
1882
|
-
option:
|
|
1890
|
+
option: g,
|
|
1883
1891
|
ref: e.string().optional()
|
|
1884
1892
|
});
|
|
1885
1893
|
e.object({
|
|
1886
1894
|
phone: e.string(),
|
|
1887
1895
|
message: e.string()
|
|
1888
1896
|
});
|
|
1889
|
-
const
|
|
1897
|
+
const m = e.object({
|
|
1890
1898
|
name: e.string().optional(),
|
|
1891
1899
|
address: e.string()
|
|
1892
|
-
}),
|
|
1900
|
+
}), U = e.object({
|
|
1893
1901
|
filename: e.string(),
|
|
1894
1902
|
content: e.instanceof(Uint8Array)
|
|
1895
1903
|
});
|
|
1896
1904
|
e.object({
|
|
1897
|
-
from:
|
|
1898
|
-
to: e.array(
|
|
1905
|
+
from: m.optional(),
|
|
1906
|
+
to: e.array(m),
|
|
1899
1907
|
subject: e.string(),
|
|
1900
1908
|
html: e.string().optional(),
|
|
1901
|
-
attachments: e.array(
|
|
1909
|
+
attachments: e.array(U).optional()
|
|
1902
1910
|
});
|
|
1903
1911
|
e.object({
|
|
1904
1912
|
subject: e.string(),
|
|
@@ -1940,15 +1948,15 @@ e.object({
|
|
|
1940
1948
|
e.object({
|
|
1941
1949
|
orderId: e.string()
|
|
1942
1950
|
});
|
|
1943
|
-
var
|
|
1944
|
-
e.nativeEnum(
|
|
1951
|
+
var d = /* @__PURE__ */ ((a) => (a[a.feedMe = 0] = "feedMe", a[a.business = 1] = "business", a[a.restaurant = 2] = "restaurant", a))(d || {});
|
|
1952
|
+
e.nativeEnum(d);
|
|
1945
1953
|
e.enum(["manage", "create", "read", "update", "delete"]);
|
|
1946
1954
|
e.enum(["all", "restaurant", "business", "delivery", "agent"]);
|
|
1947
1955
|
e.enum(["quota"]);
|
|
1948
|
-
var
|
|
1949
|
-
e.nativeEnum(
|
|
1956
|
+
var y = /* @__PURE__ */ ((a) => (a.marketing = "business::marketing", a.campaign = "business::campaign", a.counter = "business::counter", a.permission = "business::permission", a.role = "business::role", a))(y || {});
|
|
1957
|
+
e.nativeEnum(y);
|
|
1950
1958
|
e.enum(["restaurant"]);
|
|
1951
|
-
const
|
|
1959
|
+
const F = e.object({
|
|
1952
1960
|
label: e.string(),
|
|
1953
1961
|
subject: e.union([e.string(), e.array(e.string())]),
|
|
1954
1962
|
actions: e.union([e.string(), e.array(e.string())]),
|
|
@@ -1963,7 +1971,7 @@ e.object({
|
|
|
1963
1971
|
userId: e.string(),
|
|
1964
1972
|
email: e.string().nullish(),
|
|
1965
1973
|
phoneNo: e.string().nullish(),
|
|
1966
|
-
permissions: e.array(e.lazy(() =>
|
|
1974
|
+
permissions: e.array(e.lazy(() => F))
|
|
1967
1975
|
}).describe(
|
|
1968
1976
|
o.describe({
|
|
1969
1977
|
collectionName: "PermissionUsers",
|
|
@@ -1972,27 +1980,27 @@ e.object({
|
|
|
1972
1980
|
}
|
|
1973
1981
|
})
|
|
1974
1982
|
);
|
|
1975
|
-
const
|
|
1983
|
+
const u = e.object({
|
|
1976
1984
|
userId: e.string(),
|
|
1977
1985
|
level: e.number(),
|
|
1978
1986
|
role: e.string().optional(),
|
|
1979
1987
|
businessId: e.string().optional(),
|
|
1980
1988
|
restaurantId: e.string().optional()
|
|
1981
|
-
}),
|
|
1989
|
+
}), P = e.function().args(e.any(), u).returns(e.boolean()), G = e.function().args(u).returns(e.promise(e.array(e.any())));
|
|
1982
1990
|
e.object({
|
|
1983
|
-
isAdmin:
|
|
1984
|
-
getRules:
|
|
1991
|
+
isAdmin: P,
|
|
1992
|
+
getRules: G
|
|
1985
1993
|
});
|
|
1986
1994
|
e.object({
|
|
1987
|
-
transactions: e.array(
|
|
1988
|
-
collections: e.array(
|
|
1995
|
+
transactions: e.array(O),
|
|
1996
|
+
collections: e.array(I)
|
|
1989
1997
|
});
|
|
1990
|
-
const
|
|
1998
|
+
const f = e.enum([
|
|
1991
1999
|
"ROCK_PAPER_SCISSOR"
|
|
1992
2000
|
]);
|
|
1993
|
-
|
|
2001
|
+
f.enum.ROCK_PAPER_SCISSOR + "";
|
|
1994
2002
|
e.object({
|
|
1995
|
-
type:
|
|
2003
|
+
type: f
|
|
1996
2004
|
});
|
|
1997
2005
|
e.object({
|
|
1998
2006
|
host: e.string().url(),
|
|
@@ -2019,12 +2027,12 @@ e.object({
|
|
|
2019
2027
|
phone: e.string().optional(),
|
|
2020
2028
|
email: e.string().optional()
|
|
2021
2029
|
});
|
|
2022
|
-
const
|
|
2030
|
+
const B = e.enum([
|
|
2023
2031
|
"PENDING",
|
|
2024
2032
|
"SUCCESS",
|
|
2025
2033
|
"FAILED",
|
|
2026
2034
|
"RETRYING"
|
|
2027
|
-
]),
|
|
2035
|
+
]), H = {
|
|
2028
2036
|
collectionName: "WebhookLogs",
|
|
2029
2037
|
transform: {
|
|
2030
2038
|
_id: "oid",
|
|
@@ -2036,35 +2044,35 @@ e.object({
|
|
|
2036
2044
|
business: n,
|
|
2037
2045
|
type: e.string(),
|
|
2038
2046
|
payload: e.record(e.any()),
|
|
2039
|
-
status:
|
|
2047
|
+
status: B,
|
|
2040
2048
|
response: e.any().optional(),
|
|
2041
2049
|
error: e.string().optional()
|
|
2042
|
-
}).describe(o.describe(
|
|
2043
|
-
const
|
|
2050
|
+
}).describe(o.describe(H));
|
|
2051
|
+
const V = e.enum(["AUTO", "MANUAL"]);
|
|
2044
2052
|
e.enum(["IN_PROGRESS", "COMPLETED"]);
|
|
2045
|
-
const
|
|
2053
|
+
const _ = e.object({
|
|
2046
2054
|
_id: n,
|
|
2047
2055
|
name: e.string().min(1, "Name is required").max(50),
|
|
2048
|
-
type:
|
|
2049
|
-
event:
|
|
2050
|
-
}),
|
|
2056
|
+
type: V,
|
|
2057
|
+
event: L.optional()
|
|
2058
|
+
}), k = e.object({
|
|
2051
2059
|
from: e.number().int("Must be integer").min(1, "Min referral count need to start from 1"),
|
|
2052
2060
|
to: e.number().int("Must be integer").nullish()
|
|
2053
|
-
}).superRefine((a,
|
|
2054
|
-
a.from && a.to && a.from > a.to &&
|
|
2061
|
+
}).superRefine((a, v) => {
|
|
2062
|
+
a.from && a.to && a.from > a.to && v.addIssue({
|
|
2055
2063
|
code: "custom",
|
|
2056
2064
|
message: "Max referral count must be more than min referral count"
|
|
2057
2065
|
});
|
|
2058
|
-
}),
|
|
2059
|
-
threshold:
|
|
2066
|
+
}), j = e.object({
|
|
2067
|
+
threshold: k,
|
|
2060
2068
|
rewards: e.array(n),
|
|
2061
2069
|
pf_reward: e.array(r).optional()
|
|
2062
2070
|
}), l = e.object({
|
|
2063
2071
|
id: e.string(),
|
|
2064
2072
|
name: e.string().min(1, "Name is required").max(50, "Name must be less than 50 characters"),
|
|
2065
|
-
rule:
|
|
2066
|
-
rewards: e.array(
|
|
2067
|
-
}),
|
|
2073
|
+
rule: E.optional(),
|
|
2074
|
+
rewards: e.array(j)
|
|
2075
|
+
}), Y = {
|
|
2068
2076
|
collectionName: "ReferralRecords",
|
|
2069
2077
|
transform: {
|
|
2070
2078
|
_id: "oid",
|
|
@@ -2073,25 +2081,25 @@ const f = e.object({
|
|
|
2073
2081
|
referee: "oid",
|
|
2074
2082
|
refereeReward: "oid"
|
|
2075
2083
|
}
|
|
2076
|
-
},
|
|
2084
|
+
}, K = e.object({
|
|
2077
2085
|
completedAt: e.coerce.date(),
|
|
2078
2086
|
criteria: n,
|
|
2079
2087
|
ref: e.string()
|
|
2080
|
-
}),
|
|
2088
|
+
}), W = e.object({
|
|
2081
2089
|
_id: n,
|
|
2082
2090
|
business: n,
|
|
2083
2091
|
referer: n,
|
|
2084
2092
|
referee: n,
|
|
2085
|
-
criteria: e.array(
|
|
2093
|
+
criteria: e.array(_),
|
|
2086
2094
|
reward: e.array(l),
|
|
2087
2095
|
refereeReward: e.array(n).optional(),
|
|
2088
|
-
criteria_progress: e.array(
|
|
2096
|
+
criteria_progress: e.array(K),
|
|
2089
2097
|
status: e.string(),
|
|
2090
2098
|
pf_referer: p.optional(),
|
|
2091
2099
|
pf_referee: p.optional(),
|
|
2092
2100
|
pf_refereeReward: e.array(r).optional()
|
|
2093
|
-
}).describe(o.describe(
|
|
2094
|
-
|
|
2101
|
+
}).describe(o.describe(Y));
|
|
2102
|
+
W.pick({
|
|
2095
2103
|
_id: !0,
|
|
2096
2104
|
business: !0,
|
|
2097
2105
|
referer: !0,
|
|
@@ -2106,27 +2114,27 @@ K.pick({
|
|
|
2106
2114
|
photoUrl: !0
|
|
2107
2115
|
})
|
|
2108
2116
|
});
|
|
2109
|
-
const
|
|
2117
|
+
const X = {
|
|
2110
2118
|
collectionName: "ReferralProgram",
|
|
2111
2119
|
transform: {
|
|
2112
2120
|
_id: "oid",
|
|
2113
2121
|
business: "oid"
|
|
2114
2122
|
}
|
|
2115
|
-
},
|
|
2123
|
+
}, b = e.object({
|
|
2116
2124
|
_id: n,
|
|
2117
2125
|
business: n,
|
|
2118
2126
|
term_and_condition: e.string().optional(),
|
|
2119
2127
|
refereeReward: e.array(n).optional(),
|
|
2120
2128
|
reward: e.array(l),
|
|
2121
|
-
criteria: e.array(
|
|
2122
|
-
}).describe(o.describe(
|
|
2129
|
+
criteria: e.array(_)
|
|
2130
|
+
}).describe(o.describe(X));
|
|
2123
2131
|
e.object({
|
|
2124
2132
|
referer: n,
|
|
2125
2133
|
referee: n,
|
|
2126
2134
|
business: n
|
|
2127
2135
|
});
|
|
2128
2136
|
e.object({
|
|
2129
|
-
program:
|
|
2137
|
+
program: b.pick({
|
|
2130
2138
|
_id: !0,
|
|
2131
2139
|
business: !0,
|
|
2132
2140
|
term_and_condition: !0
|
|
@@ -2143,13 +2151,13 @@ e.object({
|
|
|
2143
2151
|
photoUrl: !0
|
|
2144
2152
|
}).optional()
|
|
2145
2153
|
});
|
|
2146
|
-
|
|
2154
|
+
b.extend({
|
|
2147
2155
|
updateReferralRecord: e.boolean().optional()
|
|
2148
2156
|
});
|
|
2149
2157
|
export {
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2158
|
+
h as F,
|
|
2159
|
+
ee as T,
|
|
2160
|
+
j as a,
|
|
2161
|
+
_ as b,
|
|
2154
2162
|
l as c
|
|
2155
2163
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as o, e as t, g as a } from "./index-
|
|
2
|
-
import { z as e, F as i, m as d } from "./index-
|
|
3
|
-
import { F as c } from "./collectible.enum-
|
|
1
|
+
import { F as o, e as t, g as a } from "./index-CO55xRbh.js";
|
|
2
|
+
import { z as e, F as i, m as d } from "./index-WY8Y3SjU.js";
|
|
3
|
+
import { F as c } from "./collectible.enum-GH2dIJq0.js";
|
|
4
4
|
const l = e.enum(["VOUCHER", "LOYALTY"]), n = e.object({
|
|
5
5
|
type: e.literal(l.enum.VOUCHER),
|
|
6
6
|
collectible: i,
|