@feedmepos/mf-connect 0.1.38-beta.1 → 0.1.38-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-Dc1l0CZK.js +427 -0
- package/dist/{App-BWZ2EE71.js → App-BLg0CWv-.js} +352 -364
- package/dist/{Bin-C-Ha-4yF.js → Bin-DDbKIePj.js} +8 -8
- package/dist/{Broadcast-Bo3QS8lS.js → Broadcast-CihKie6G.js} +40 -40
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-4vUMzH-l.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DbdBGvgR.js} +18 -18
- package/dist/{Card-Bs1TDE0e.js → Card-h1dYFE_s.js} +159 -159
- package/dist/{Collections-Dy5RN7Js.js → Collections-DUXdnJqQ.js} +91 -103
- package/dist/{Credit-Bqc4dw1s.js → Credit-CsGEuX9p.js} +74 -74
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-D6AmN3o3.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-0gMUNtdO.js} +488 -488
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BzwADnKp.js → EffectSheet.vue_vue_type_style_index_0_lang-CQDnl97F.js} +94 -94
- package/dist/{Experience-C2e2T7B-.js → Experience-CBbqYrql.js} +41 -41
- package/dist/{Game-C86eEhcx.js → Game-CicPpdT5.js} +31 -31
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +144 -0
- package/dist/{Index-BRGweFco.js → Index-Xgvlt4vk.js} +10 -10
- package/dist/Marketing-CqOAQgg4.js +319 -0
- package/dist/{Member-B3o0Zhcw.js → Member-D1k4ZQ95.js} +76 -76
- package/dist/MemberList-BdV9sxO_.js +1606 -0
- package/dist/MemberOverview-C2n9oJZh.js +58 -0
- package/dist/{MemberTransactions-C4hao-d9.js → MemberTransactions-Q0_4nT4e.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D9zfmqLs.js → MessageInput.vue_vue_type_script_setup_true_lang-COGCJGRc.js} +36 -36
- package/dist/{Mission-BURXfzjd.js → Mission-D-TW52zn.js} +21 -21
- package/dist/{Overview-D_hrrM4O.js → Overview-BleJmxHa.js} +335 -335
- package/dist/{Point-CJXkJY5Q.js → Point-B7BYX9us.js} +41 -41
- package/dist/{Promotion-CunJrh42.js → Promotion-BphlQC55.js} +42 -42
- package/dist/{Queue-v5Itg9J4.js → Queue-DJfZqO1f.js} +51 -51
- package/dist/{Record-DJe4tg9R.js → Record-Bv1P0s2g.js} +9 -9
- package/dist/{Reward-Y9aHpny5.js → Reward-CRyEjr47.js} +173 -173
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-1KAjCblO.js → RewardGroup.vue_vue_type_script_setup_true_lang-Ckqox5Ut.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Cr99ikbK.js → RuleGroup.vue_vue_type_script_setup_true_lang-Dp4ku9ep.js} +431 -431
- package/dist/Segment-Br0Y5hzV.js +882 -0
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BhJ-oVMb.js → SelectItems.vue_vue_type_script_setup_true_lang-BuB-qwcM.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-b5bjfBvc.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DanHGQXC.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DoKAgSLE.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCKUXnGl.js} +3 -3
- package/dist/{Setting-BU5778gG.js → Setting-BPFArJMv.js} +432 -432
- package/dist/{Store-IWg0POAU.js → Store-e_odFoS5.js} +210 -210
- package/dist/StoreRewards-wXhyzIFI.js +423 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CVPQt-bn.js +995 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BcOvr526.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CWJmeeo-.js} +1 -1
- package/dist/{Tier-iN30KD7g.js → Tier-GfdGRbTX.js} +106 -106
- package/dist/{Title-Duh_Srek.js → Title-C2ZyFxNf.js} +131 -133
- package/dist/{Transaction-DLBA7Svl.js → Transaction-Dv8yYXJS.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DLD5d43d.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CK_4iMCA.js} +6 -6
- package/dist/{Voucher-cTvlMN0Y.js → Voucher-CBujqgnF.js} +37 -37
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-CgooH4yn.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C5S-bi5J.js → ZodTextField.vue_vue_type_script_setup_true_lang-B8pgaARn.js} +1 -1
- package/dist/{app-De-yQ1CJ.js → app-B2Cgyy70.js} +124 -161
- package/dist/{app-A3oEKLq5.js → app-B8E3wp8L.js} +1 -1
- package/dist/app.js +3 -4
- package/dist/{business-B2JBpm4y.js → business-BRidHvRK.js} +1 -1
- package/dist/{campaign-vkzui6F2.js → campaign-B0vnIan2.js} +3 -5
- package/dist/{campaign-Bhur0NJx.js → campaign-B7v0a8YV.js} +9 -9
- package/dist/{campaign.enum-DCYkKGhd.js → campaign.enum-NH5faqyS.js} +1 -1
- package/dist/{campaign.fn--affTEi5.js → campaign.fn-BPHARk3Y.js} +161 -161
- package/dist/{collectible.enum-CLBCnfev.js → collectible.enum-Cun9w38h.js} +1 -1
- package/dist/{collection.fn-bA8q0KYy.js → collection.fn-RR5q6jqi.js} +2 -2
- package/dist/{dto-RCcWeYE0.js → dto-DK1VnGlq.js} +4 -4
- package/dist/{effect-D7qRfPe_.js → effect-CI4ZR8HW.js} +1 -1
- package/dist/{email-addresses-a8PqViID.js → email-addresses-bguwgnrW.js} +1 -1
- package/dist/{export-BneqNRn4.js → export-CcepocZB.js} +3 -3
- package/dist/{helper-DfvvxOyO.js → helper-BM1JTEFS.js} +1 -1
- package/dist/{index-CbsJ6vMJ.js → index-B0Slqiqo.js} +1 -1
- package/dist/{index-y-7yUm2e.js → index-B6_uPXyL.js} +9 -9
- package/dist/{index-CTKMdxSm.js → index-BS3AjuVw.js} +1 -1
- package/dist/{index-2LpkG8Ye.js → index-BfGdztHf.js} +1 -1
- package/dist/{index-D0GnMoag.js → index-CBuCx_0r.js} +79 -168
- package/dist/{index-4kMeSNTr.js → index-CLkqja9X.js} +385 -376
- package/dist/{index-DMrIQqFt.js → index-Cm_6xScD.js} +1 -1
- package/dist/index-CuvNtC_M.js +61 -0
- package/dist/index-DHEJX75j.js +44 -0
- package/dist/{index-CMBPIb8x.js → index-D_gLVFsk.js} +941 -932
- package/dist/{index-BWTvsoH0.js → index-DbjZHuoG.js} +1 -1
- package/dist/{index-CrFUhsZO.js → index-De1JnaPh.js} +1 -1
- package/dist/{index-DeXvASjP.js → index-Di6bqaLm.js} +3 -3
- package/dist/{index-CtDqXnOp.js → index-DjycZwfg.js} +448 -515
- package/dist/{index-B0T9GDIZ.js → index-vs1HgFHz.js} +1 -1
- package/dist/{index.esm2017-JtyypweZ.js → index.esm2017-DANlqJ4g.js} +127 -127
- package/dist/{loading-a-FqrwqI.js → loading-BXu9ofEu.js} +1 -1
- package/dist/{membership-CGVtil5J.js → membership-BBb7gdZg.js} +3 -3
- package/dist/{money-CTc1l_Cq.js → money-C02BW-pt.js} +1 -1
- package/dist/{number-W3R-0nYP.js → number-D7tIDv2q.js} +1 -1
- package/dist/objectid-oVX5A5oa.js +145 -0
- package/dist/{plugins-D2sSgTSl.js → plugins-B5tuGbFw.js} +2 -2
- package/dist/{reward-atP8vnNn.js → reward-CE-bnnnQ.js} +1 -1
- package/dist/{rule-eA5IvnjB.js → rule-BN5R8pYj.js} +3 -3
- package/dist/{rule-builder-BB29ZJ_C.js → rule-builder-16JDtaoI.js} +17 -17
- package/dist/style.css +1 -1
- package/dist/{template-DhBeDaAm.js → template-C-zyZgxl.js} +64 -64
- package/dist/{trigger-Bq_pZj1J.js → trigger-DCLjl3mM.js} +4 -4
- package/dist/{usePagination-BeF5K3M7.js → usePagination-JoYaROkV.js} +85 -85
- package/dist/{user-B-bhVFIG.js → user-C7bmFOaT.js} +1 -1
- package/dist/{vue-i18n-D-h8VDSx.js → vue-i18n-Cts9OsqE.js} +277 -277
- package/dist/{xlsx-DsByAcZl.js → xlsx-CJ5ufXk3.js} +226 -226
- package/package.json +3 -5
- package/dist/Analytic-O-qZWrFp.js +0 -761
- package/dist/AuditLogs-DlmcFEta.js +0 -1887
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +0 -58
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +0 -144
- package/dist/Marketing-CnnrnXbS.js +0 -20073
- package/dist/MemberList-BpE1IjED.js +0 -1606
- package/dist/MemberOverview-wL_ailso.js +0 -58
- package/dist/Segment-DVT8uDn8.js +0 -882
- package/dist/StoreRewards-CIjHcVoh.js +0 -423
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cx05-OPF.js +0 -1029
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DkjojUvD.js +0 -419
- package/dist/index-CVAWGMus.js +0 -56
- package/dist/index-CsaQJMAR.js +0 -66
- package/dist/objectid-BU0Y8iAN.js +0 -145
- package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as i, z as t } from "./index-
|
|
2
|
-
import { z as y, a as r, A as h } from "./index-
|
|
3
|
-
import { F as u } from "./index-
|
|
4
|
-
import { i as I, R as d } from "./rule-builder-
|
|
1
|
+
import { F as i, z as t } from "./index-D_gLVFsk.js";
|
|
2
|
+
import { z as y, a as r, A as h } from "./index-DjycZwfg.js";
|
|
3
|
+
import { F as u } from "./index-B6_uPXyL.js";
|
|
4
|
+
import { i as I, R as d } from "./rule-builder-16JDtaoI.js";
|
|
5
5
|
function N(a, e) {
|
|
6
6
|
var c, l;
|
|
7
7
|
if (!a) return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ur = Object.defineProperty;
|
|
2
2
|
var ir = (S, b, h) => b in S ? ur(S, b, { enumerable: !0, configurable: !0, writable: !0, value: h }) : S[b] = h;
|
|
3
3
|
var pn = (S, b, h) => ir(S, typeof b != "symbol" ? b + "" : b, h);
|
|
4
|
-
import { u as V } from "./xlsx-
|
|
4
|
+
import { u as V } from "./xlsx-CJ5ufXk3.js";
|
|
5
5
|
import { g as ar } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
6
6
|
class fr {
|
|
7
7
|
constructor() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var g = Object.defineProperty;
|
|
2
2
|
var b = (s, e, o) => e in s ? g(s, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[e] = o;
|
|
3
3
|
var d = (s, e, o) => b(s, typeof e != "symbol" ? e + "" : e, o);
|
|
4
|
-
import { u as a, w as f } from "./xlsx-
|
|
5
|
-
import { u as h } from "./loading-
|
|
4
|
+
import { u as a, w as f } from "./xlsx-CJ5ufXk3.js";
|
|
5
|
+
import { u as h } from "./loading-BXu9ofEu.js";
|
|
6
6
|
import { h as x } from "./moment-BWErdI6_.js";
|
|
7
|
-
import { m as w } from "./index-
|
|
7
|
+
import { m as w } from "./index-BS3AjuVw.js";
|
|
8
8
|
class y {
|
|
9
9
|
constructor() {
|
|
10
10
|
d(this, "records", []);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as b, F as On, m as Zv } from "./index-
|
|
2
|
-
import { F as Lt, a as $f } from "./collectible.enum-
|
|
1
|
+
import { z as b, F as On, m as Zv } from "./index-D_gLVFsk.js";
|
|
2
|
+
import { F as Lt, a as $f } from "./collectible.enum-Cun9w38h.js";
|
|
3
3
|
import { c as Hr, g as Vv } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
4
4
|
//! moment.js
|
|
5
5
|
//! version : 2.30.1
|
|
@@ -8851,11 +8851,11 @@ export {
|
|
|
8851
8851
|
bD as f,
|
|
8852
8852
|
ni as g,
|
|
8853
8853
|
it as h,
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
|
|
8860
|
-
|
|
8854
|
+
O as i,
|
|
8855
|
+
Hu as j,
|
|
8856
|
+
Bu as k,
|
|
8857
|
+
VE as l,
|
|
8858
|
+
ED as m,
|
|
8859
|
+
dD as n,
|
|
8860
|
+
vD as o
|
|
8861
8861
|
};
|
|
@@ -1,66 +1,10 @@
|
|
|
1
|
-
import { z as e, F as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { a as r } from "./index-
|
|
7
|
-
const
|
|
8
|
-
collectionName: "AuditLogs",
|
|
9
|
-
transform: {
|
|
10
|
-
_id: "oid",
|
|
11
|
-
business: "oid",
|
|
12
|
-
timestamp: "date"
|
|
13
|
-
},
|
|
14
|
-
lookups: {
|
|
15
|
-
business: {
|
|
16
|
-
as: "pf_business",
|
|
17
|
-
fromCollection: "Businesses"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}, R = e.enum([
|
|
21
|
-
"GET",
|
|
22
|
-
"POST",
|
|
23
|
-
"PUT",
|
|
24
|
-
"PATCH",
|
|
25
|
-
"DELETE",
|
|
26
|
-
"OPTIONS",
|
|
27
|
-
"HEAD",
|
|
28
|
-
"ALL"
|
|
29
|
-
]), C = e.enum([
|
|
30
|
-
"CAMPAIGN",
|
|
31
|
-
"LOCATION",
|
|
32
|
-
"MARKETING MATERIALS",
|
|
33
|
-
"MEMBERSHIP",
|
|
34
|
-
"STORE",
|
|
35
|
-
"TRANSACTION",
|
|
36
|
-
"SETTINGS",
|
|
37
|
-
"SEGMENTATION",
|
|
38
|
-
"USER"
|
|
39
|
-
]), x = e.object({
|
|
40
|
-
httpMethod: R,
|
|
41
|
-
url: e.string().min(1),
|
|
42
|
-
userAgent: e.string(),
|
|
43
|
-
host: e.string().min(1),
|
|
44
|
-
params: e.object({}).passthrough().nullish(),
|
|
45
|
-
query: e.object({}).passthrough().nullish(),
|
|
46
|
-
body: e.object({}).passthrough().nullish()
|
|
47
|
-
}), S = e.object({
|
|
48
|
-
statusCode: e.number().int().min(100).max(599),
|
|
49
|
-
body: e.object({}).passthrough().nullish()
|
|
50
|
-
});
|
|
51
|
-
e.object({
|
|
52
|
-
_id: n,
|
|
53
|
-
user: e.string().length(28),
|
|
54
|
-
userName: e.string().min(1),
|
|
55
|
-
userPhoneNumber: e.string().refine((a) => E(a)).nullish(),
|
|
56
|
-
moduleType: C,
|
|
57
|
-
business: n.nullish(),
|
|
58
|
-
clientIp: e.string().nullish(),
|
|
59
|
-
timestamp: e.string().datetime(),
|
|
60
|
-
request: x,
|
|
61
|
-
response: S
|
|
62
|
-
}).describe(o.describe(T));
|
|
63
|
-
const pe = {
|
|
1
|
+
import { z as e, F as a, m as o } from "./index-D_gLVFsk.js";
|
|
2
|
+
import { c as v } from "./index-B6_uPXyL.js";
|
|
3
|
+
import { R as t } from "./rule-builder-16JDtaoI.js";
|
|
4
|
+
import { i } from "./helper-BM1JTEFS.js";
|
|
5
|
+
import { E, G as O, H as I, I as p } from "./index-DjycZwfg.js";
|
|
6
|
+
import { a as r } from "./index-Di6bqaLm.js";
|
|
7
|
+
const z = {
|
|
64
8
|
PROMOTION: {
|
|
65
9
|
name: "Promotion Template",
|
|
66
10
|
description: "Promotion template for campaign creation.",
|
|
@@ -1817,7 +1761,7 @@ t.setRuleToGroup(t.scaffoldGroup(), [
|
|
|
1817
1761
|
({
|
|
1818
1762
|
...t.scaffoldGroup()
|
|
1819
1763
|
});
|
|
1820
|
-
const
|
|
1764
|
+
const L = e.enum([
|
|
1821
1765
|
"MEMBER_REWARD",
|
|
1822
1766
|
"PAID_LOYALTY",
|
|
1823
1767
|
"COLLECT_FEEDBACK",
|
|
@@ -1827,7 +1771,7 @@ const D = e.enum([
|
|
|
1827
1771
|
"BROADCAST",
|
|
1828
1772
|
"BIRTHDAY",
|
|
1829
1773
|
"GAME"
|
|
1830
|
-
]),
|
|
1774
|
+
]), h = e.enum([
|
|
1831
1775
|
"text",
|
|
1832
1776
|
"number",
|
|
1833
1777
|
"textarea",
|
|
@@ -1854,71 +1798,71 @@ const D = e.enum([
|
|
|
1854
1798
|
"rule_feedback",
|
|
1855
1799
|
"rule_birthday",
|
|
1856
1800
|
"promotion_game_type"
|
|
1857
|
-
]),
|
|
1801
|
+
]), R = e.object({
|
|
1858
1802
|
label: e.string().optional(),
|
|
1859
1803
|
property: e.string().or(e.any()),
|
|
1860
|
-
type:
|
|
1804
|
+
type: h,
|
|
1861
1805
|
extras: e.string().optional(),
|
|
1862
1806
|
isRuleChildren: e.boolean().optional()
|
|
1863
|
-
}),
|
|
1807
|
+
}), x = e.object({
|
|
1864
1808
|
name: e.string().optional(),
|
|
1865
|
-
fields: e.array(
|
|
1809
|
+
fields: e.array(R),
|
|
1866
1810
|
condition: e.object({
|
|
1867
1811
|
not: e.boolean().optional(),
|
|
1868
1812
|
property: e.string(),
|
|
1869
1813
|
value: e.any()
|
|
1870
1814
|
}).optional()
|
|
1871
|
-
}),
|
|
1815
|
+
}), C = e.object({
|
|
1872
1816
|
name: e.string(),
|
|
1873
|
-
groups: e.array(
|
|
1817
|
+
groups: e.array(x)
|
|
1874
1818
|
});
|
|
1875
1819
|
e.object({
|
|
1876
|
-
_id:
|
|
1820
|
+
_id: a,
|
|
1877
1821
|
name: e.string(),
|
|
1878
1822
|
description: e.string().nullish(),
|
|
1879
|
-
steps: e.array(
|
|
1880
|
-
intention: e.array(
|
|
1823
|
+
steps: e.array(C).min(1),
|
|
1824
|
+
intention: e.array(L),
|
|
1881
1825
|
defaultValue: e.any()
|
|
1882
1826
|
}).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
|
|
1883
|
-
const
|
|
1827
|
+
const T = {
|
|
1884
1828
|
collectionName: "Businesses",
|
|
1885
1829
|
transform: {
|
|
1886
1830
|
_id: "oid"
|
|
1887
1831
|
}
|
|
1888
1832
|
};
|
|
1889
1833
|
e.object({
|
|
1890
|
-
_id:
|
|
1834
|
+
_id: a,
|
|
1891
1835
|
ownerId: e.string(),
|
|
1892
1836
|
name: e.string(),
|
|
1893
1837
|
credit: e.number(),
|
|
1894
1838
|
forceSend: e.boolean().optional()
|
|
1895
|
-
}).describe(o.describe(
|
|
1896
|
-
const m = e.enum(["PHONE"]),
|
|
1839
|
+
}).describe(o.describe(T));
|
|
1840
|
+
const m = e.enum(["PHONE"]), D = e.enum(["MOCEAN", "SLACK", "SMS", "EMAIL"]), S = e.enum(["PENDING", "COMPLETED", "FAILED"]), M = e.enum([
|
|
1897
1841
|
"General",
|
|
1898
1842
|
"Otp",
|
|
1899
1843
|
"Marketing",
|
|
1900
1844
|
"Ordering",
|
|
1901
1845
|
"MemberInvitation"
|
|
1902
|
-
]),
|
|
1846
|
+
]), A = e.object({
|
|
1903
1847
|
type: m
|
|
1904
|
-
}), s =
|
|
1848
|
+
}), s = A.extend({
|
|
1905
1849
|
type: e.literal(m.enum.PHONE),
|
|
1906
|
-
provider:
|
|
1907
|
-
usage:
|
|
1908
|
-
}),
|
|
1850
|
+
provider: D,
|
|
1851
|
+
usage: M.optional()
|
|
1852
|
+
}), w = {
|
|
1909
1853
|
collectionName: "Notifications",
|
|
1910
1854
|
transform: { _id: "oid", business: "oid" }
|
|
1911
1855
|
};
|
|
1912
1856
|
e.object({
|
|
1913
|
-
_id:
|
|
1914
|
-
business:
|
|
1857
|
+
_id: a,
|
|
1858
|
+
business: a,
|
|
1915
1859
|
target: e.string(),
|
|
1916
1860
|
title: e.string().optional(),
|
|
1917
1861
|
message: e.string(),
|
|
1918
1862
|
option: s,
|
|
1919
|
-
status:
|
|
1863
|
+
status: S,
|
|
1920
1864
|
ref: e.string().optional()
|
|
1921
|
-
}).describe(o.describe(
|
|
1865
|
+
}).describe(o.describe(w));
|
|
1922
1866
|
e.object({
|
|
1923
1867
|
target: e.string(),
|
|
1924
1868
|
title: e.string().optional(),
|
|
@@ -1933,7 +1877,7 @@ e.object({
|
|
|
1933
1877
|
const c = e.object({
|
|
1934
1878
|
name: e.string().optional(),
|
|
1935
1879
|
address: e.string()
|
|
1936
|
-
}),
|
|
1880
|
+
}), N = e.object({
|
|
1937
1881
|
filename: e.string(),
|
|
1938
1882
|
content: e.instanceof(Uint8Array)
|
|
1939
1883
|
});
|
|
@@ -1942,7 +1886,7 @@ e.object({
|
|
|
1942
1886
|
to: e.array(c),
|
|
1943
1887
|
subject: e.string(),
|
|
1944
1888
|
html: e.string().optional(),
|
|
1945
|
-
attachments: e.array(
|
|
1889
|
+
attachments: e.array(N).optional()
|
|
1946
1890
|
});
|
|
1947
1891
|
e.object({
|
|
1948
1892
|
subject: e.string(),
|
|
@@ -1975,25 +1919,15 @@ e.object({
|
|
|
1975
1919
|
claimIds: e.array(e.string()),
|
|
1976
1920
|
billId: e.string()
|
|
1977
1921
|
});
|
|
1978
|
-
|
|
1979
|
-
amount: v,
|
|
1980
|
-
member: e.string(),
|
|
1981
|
-
bill: e.string(),
|
|
1982
|
-
otp: e.string().nullish(),
|
|
1983
|
-
businessId: e.string()
|
|
1984
|
-
});
|
|
1985
|
-
e.object({
|
|
1986
|
-
orderId: e.string()
|
|
1987
|
-
});
|
|
1988
|
-
var g = /* @__PURE__ */ ((a) => (a[a.feedMe = 0] = "feedMe", a[a.business = 1] = "business", a[a.restaurant = 2] = "restaurant", a))(g || {});
|
|
1922
|
+
var g = /* @__PURE__ */ ((n) => (n[n.feedMe = 0] = "feedMe", n[n.business = 1] = "business", n[n.restaurant = 2] = "restaurant", n))(g || {});
|
|
1989
1923
|
e.nativeEnum(g);
|
|
1990
1924
|
e.enum(["manage", "create", "read", "update", "delete"]);
|
|
1991
1925
|
e.enum(["all", "restaurant", "business", "delivery", "agent"]);
|
|
1992
1926
|
e.enum(["quota"]);
|
|
1993
|
-
var d = /* @__PURE__ */ ((
|
|
1927
|
+
var d = /* @__PURE__ */ ((n) => (n.marketing = "business::marketing", n.campaign = "business::campaign", n.counter = "business::counter", n.permission = "business::permission", n.role = "business::role", n))(d || {});
|
|
1994
1928
|
e.nativeEnum(d);
|
|
1995
1929
|
e.enum(["restaurant"]);
|
|
1996
|
-
const
|
|
1930
|
+
const U = e.object({
|
|
1997
1931
|
label: e.string(),
|
|
1998
1932
|
subject: e.union([e.string(), e.array(e.string())]),
|
|
1999
1933
|
actions: e.union([e.string(), e.array(e.string())]),
|
|
@@ -2003,12 +1937,12 @@ const k = e.object({
|
|
|
2003
1937
|
reason: e.string().optional()
|
|
2004
1938
|
});
|
|
2005
1939
|
e.object({
|
|
2006
|
-
_id:
|
|
1940
|
+
_id: a,
|
|
2007
1941
|
businessId: e.string(),
|
|
2008
1942
|
userId: e.string(),
|
|
2009
1943
|
email: e.string().nullish(),
|
|
2010
1944
|
phoneNo: e.string().nullish(),
|
|
2011
|
-
permissions: e.array(e.lazy(() =>
|
|
1945
|
+
permissions: e.array(e.lazy(() => U))
|
|
2012
1946
|
}).describe(
|
|
2013
1947
|
o.describe({
|
|
2014
1948
|
collectionName: "PermissionUsers",
|
|
@@ -2023,14 +1957,14 @@ const y = e.object({
|
|
|
2023
1957
|
role: e.string().optional(),
|
|
2024
1958
|
businessId: e.string().optional(),
|
|
2025
1959
|
restaurantId: e.string().optional()
|
|
2026
|
-
}),
|
|
1960
|
+
}), F = e.function().args(e.any(), y).returns(e.boolean()), P = e.function().args(y).returns(e.promise(e.array(e.any())));
|
|
2027
1961
|
e.object({
|
|
2028
|
-
isAdmin:
|
|
2029
|
-
getRules:
|
|
1962
|
+
isAdmin: F,
|
|
1963
|
+
getRules: P
|
|
2030
1964
|
});
|
|
2031
1965
|
e.object({
|
|
2032
|
-
transactions: e.array(
|
|
2033
|
-
collections: e.array(
|
|
1966
|
+
transactions: e.array(E),
|
|
1967
|
+
collections: e.array(O)
|
|
2034
1968
|
});
|
|
2035
1969
|
const u = e.enum([
|
|
2036
1970
|
"ROCK_PAPER_SCISSOR"
|
|
@@ -2064,52 +1998,31 @@ e.object({
|
|
|
2064
1998
|
phone: e.string().optional(),
|
|
2065
1999
|
email: e.string().optional()
|
|
2066
2000
|
});
|
|
2067
|
-
const
|
|
2068
|
-
"PENDING",
|
|
2069
|
-
"SUCCESS",
|
|
2070
|
-
"FAILED",
|
|
2071
|
-
"RETRYING"
|
|
2072
|
-
]), W = {
|
|
2073
|
-
collectionName: "WebhookLogs",
|
|
2074
|
-
transform: {
|
|
2075
|
-
_id: "oid",
|
|
2076
|
-
business: "oid"
|
|
2077
|
-
}
|
|
2078
|
-
};
|
|
2079
|
-
e.object({
|
|
2080
|
-
_id: n,
|
|
2081
|
-
business: n,
|
|
2082
|
-
type: e.string(),
|
|
2083
|
-
payload: e.record(e.any()),
|
|
2084
|
-
status: K,
|
|
2085
|
-
response: e.any().optional(),
|
|
2086
|
-
error: e.string().optional()
|
|
2087
|
-
}).describe(o.describe(W));
|
|
2088
|
-
const X = e.enum(["AUTO", "MANUAL"]);
|
|
2001
|
+
const G = e.enum(["AUTO", "MANUAL"]);
|
|
2089
2002
|
e.enum(["IN_PROGRESS", "COMPLETED"]);
|
|
2090
2003
|
const f = e.object({
|
|
2091
|
-
_id:
|
|
2004
|
+
_id: a,
|
|
2092
2005
|
name: e.string().min(1, "Name is required").max(50),
|
|
2093
|
-
type:
|
|
2094
|
-
event:
|
|
2095
|
-
}),
|
|
2006
|
+
type: G,
|
|
2007
|
+
event: I.optional()
|
|
2008
|
+
}), B = e.object({
|
|
2096
2009
|
from: e.number().int("Must be integer").min(1, "Min referral count need to start from 1"),
|
|
2097
2010
|
to: e.number().int("Must be integer").nullish()
|
|
2098
|
-
}).superRefine((
|
|
2099
|
-
|
|
2011
|
+
}).superRefine((n, b) => {
|
|
2012
|
+
n.from && n.to && n.from > n.to && b.addIssue({
|
|
2100
2013
|
code: "custom",
|
|
2101
2014
|
message: "Max referral count must be more than min referral count"
|
|
2102
2015
|
});
|
|
2103
|
-
}),
|
|
2104
|
-
threshold:
|
|
2105
|
-
rewards: e.array(
|
|
2016
|
+
}), H = e.object({
|
|
2017
|
+
threshold: B,
|
|
2018
|
+
rewards: e.array(a),
|
|
2106
2019
|
pf_reward: e.array(r).optional()
|
|
2107
2020
|
}), l = e.object({
|
|
2108
2021
|
id: e.string(),
|
|
2109
2022
|
name: e.string().min(1, "Name is required").max(50, "Name must be less than 50 characters"),
|
|
2110
|
-
rule:
|
|
2111
|
-
rewards: e.array(
|
|
2112
|
-
}),
|
|
2023
|
+
rule: v.optional(),
|
|
2024
|
+
rewards: e.array(H)
|
|
2025
|
+
}), V = {
|
|
2113
2026
|
collectionName: "ReferralRecords",
|
|
2114
2027
|
transform: {
|
|
2115
2028
|
_id: "oid",
|
|
@@ -2118,25 +2031,25 @@ const f = e.object({
|
|
|
2118
2031
|
referee: "oid",
|
|
2119
2032
|
refereeReward: "oid"
|
|
2120
2033
|
}
|
|
2121
|
-
},
|
|
2034
|
+
}, k = e.object({
|
|
2122
2035
|
completedAt: e.coerce.date(),
|
|
2123
|
-
criteria:
|
|
2036
|
+
criteria: a,
|
|
2124
2037
|
ref: e.string()
|
|
2125
|
-
}),
|
|
2126
|
-
_id:
|
|
2127
|
-
business:
|
|
2128
|
-
referer:
|
|
2129
|
-
referee:
|
|
2038
|
+
}), j = e.object({
|
|
2039
|
+
_id: a,
|
|
2040
|
+
business: a,
|
|
2041
|
+
referer: a,
|
|
2042
|
+
referee: a,
|
|
2130
2043
|
criteria: e.array(f),
|
|
2131
2044
|
reward: e.array(l),
|
|
2132
|
-
refereeReward: e.array(
|
|
2133
|
-
criteria_progress: e.array(
|
|
2045
|
+
refereeReward: e.array(a).optional(),
|
|
2046
|
+
criteria_progress: e.array(k),
|
|
2134
2047
|
status: e.string(),
|
|
2135
2048
|
pf_referer: p.optional(),
|
|
2136
2049
|
pf_referee: p.optional(),
|
|
2137
2050
|
pf_refereeReward: e.array(r).optional()
|
|
2138
|
-
}).describe(o.describe(
|
|
2139
|
-
|
|
2051
|
+
}).describe(o.describe(V));
|
|
2052
|
+
j.pick({
|
|
2140
2053
|
_id: !0,
|
|
2141
2054
|
business: !0,
|
|
2142
2055
|
referer: !0,
|
|
@@ -2151,24 +2064,24 @@ Z.pick({
|
|
|
2151
2064
|
photoUrl: !0
|
|
2152
2065
|
})
|
|
2153
2066
|
});
|
|
2154
|
-
const
|
|
2067
|
+
const Y = {
|
|
2155
2068
|
collectionName: "ReferralProgram",
|
|
2156
2069
|
transform: {
|
|
2157
2070
|
_id: "oid",
|
|
2158
2071
|
business: "oid"
|
|
2159
2072
|
}
|
|
2160
2073
|
}, _ = e.object({
|
|
2161
|
-
_id:
|
|
2162
|
-
business:
|
|
2074
|
+
_id: a,
|
|
2075
|
+
business: a,
|
|
2163
2076
|
term_and_condition: e.string().optional(),
|
|
2164
|
-
refereeReward: e.array(
|
|
2077
|
+
refereeReward: e.array(a).optional(),
|
|
2165
2078
|
reward: e.array(l),
|
|
2166
2079
|
criteria: e.array(f)
|
|
2167
|
-
}).describe(o.describe(
|
|
2080
|
+
}).describe(o.describe(Y));
|
|
2168
2081
|
e.object({
|
|
2169
|
-
referer:
|
|
2170
|
-
referee:
|
|
2171
|
-
business:
|
|
2082
|
+
referer: a,
|
|
2083
|
+
referee: a,
|
|
2084
|
+
business: a
|
|
2172
2085
|
});
|
|
2173
2086
|
e.object({
|
|
2174
2087
|
program: _.pick({
|
|
@@ -2192,11 +2105,9 @@ _.extend({
|
|
|
2192
2105
|
updateReferralRecord: e.boolean().optional()
|
|
2193
2106
|
});
|
|
2194
2107
|
export {
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2108
|
+
L as F,
|
|
2109
|
+
z as T,
|
|
2110
|
+
H as a,
|
|
2198
2111
|
f as b,
|
|
2199
|
-
l as c
|
|
2200
|
-
R as d,
|
|
2201
|
-
C as e
|
|
2112
|
+
l as c
|
|
2202
2113
|
};
|