@feedmepos/mf-connect 0.0.12-beta.5 → 0.0.13-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-DMbCeTaO.js +612 -0
- package/dist/{Broadcast-BFHQPSXL.js → Broadcast-bVaOzrys.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B1DYJDOy.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cd2midth.js} +8 -8
- package/dist/{Card-rOJ8yJg_.js → Card-CdCTfDuP.js} +127 -127
- package/dist/{Collections-BT8ihCOa.js → Collections-CQIHkJ4W.js} +129 -141
- package/dist/{Credit-D83Jsn7v.js → Credit-DuIm1c4_.js} +7 -7
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang--L-LP0DV.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DljWmOEP.js} +258 -242
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-HLzZirO_.js → EffectSheet.vue_vue_type_style_index_0_lang-BuJL01zR.js} +6 -6
- package/dist/{Experience-C6uBhQod.js → Experience-DEnMLbsA.js} +7 -7
- package/dist/{Game-5P5HWqAL.js → Game-BYS0nrH6.js} +7 -7
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DTDcpMpW.js → ImageInput.vue_vue_type_script_setup_true_lang-DW2tVaY0.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CQIJ54m1.js → MainLayout-BkFJubzZ.js} +53 -20
- package/dist/{Marketing-ONuItJ_B.js → Marketing-Da0HTlaz.js} +25 -25
- package/dist/{Member-SB2IySXY.js → Member-CVe_bRGx.js} +2 -2
- package/dist/MemberList-DpUy4gFd.js +1718 -0
- package/dist/{MemberTransactions-DPQ6M7eR.js → MemberTransactions-DWdTDUIJ.js} +2 -2
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-1KjmvWsp.js +203 -0
- package/dist/{Mission-rdnU6erJ.js → Mission-0eSMWCls.js} +7 -7
- package/dist/{Point-C2M66ORj.js → Point-ju1eHI9Z.js} +7 -7
- package/dist/{Promotion-DixbjmMJ.js → Promotion-DZjWvnQa.js} +8 -8
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CJsIBnGp.js → RuleGroup.vue_vue_type_script_setup_true_lang-CDPvpj10.js} +14 -14
- package/dist/{Segment-j_zQSV7O.js → Segment-Da_kMLWC.js} +18 -19
- package/dist/{Setting-ClhkF-bT.js → Setting-CxX35f3G.js} +541 -571
- package/dist/Store-DjUI3S8V.js +1442 -0
- package/dist/{StoreRewards-Bh90Ml4z.js → StoreRewards-92k0Bvp_.js} +74 -75
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DlbNMiw9.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Bsrz-oMi.js} +79 -82
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DNkJ-pFL.js +124 -0
- package/dist/{Tier-vxsDt3Kj.js → Tier-2J4GN90t.js} +68 -71
- package/dist/{Title-IFyz9vfW.js → Title-B3Dw3w_5.js} +75 -78
- package/dist/{Transaction-ETa-y_H9.js → Transaction-Dz6WT5Hb.js} +1 -1
- package/dist/{Voucher-BMYcuaPn.js → Voucher-Bf3oSOKc.js} +37 -37
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +140 -0
- package/dist/{app-Bl9KwQq5.js → app-BSmDH0M7.js} +46 -46
- package/dist/{app-BqWTxQI-.js → app-C7I-jK_l.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{campaign-DI8CmTo2.js → campaign-CmvlWUoI.js} +11 -13
- package/dist/{collection.fn-CTEuol1r.js → collection.fn-DHlfGYAC.js} +2 -4
- package/dist/{dto-Bdlgo-8k.js → dto-rs6D-mtj.js} +239 -239
- package/dist/{effect-BdgYZfgW.js → effect-D8eQcTDU.js} +1 -1
- package/dist/{export-Dr_7YvBE.js → export-Bf2h8rMP.js} +3 -3
- package/dist/{helper-BygQ4tND.js → helper-BSlBLPdy.js} +1 -1
- package/dist/{index-CstgquVp.js → index-B64Y4rdW.js} +2 -2
- package/dist/{index-Djv3w5gV.js → index-BVSAl8E2.js} +37 -46
- package/dist/{index-DzQwND7p.js → index-CdMMIVsr.js} +217 -232
- package/dist/index-CuW8ePVX.js +244 -0
- package/dist/{index-DPYzF8No.js → index-D0nFU6ln.js} +1 -1
- package/dist/{index-Cv0dYoWA.js → index-fFL3EyTx.js} +68 -105
- package/dist/{index-Dhl0c4JQ.js → index-jqxAE4Rp.js} +1 -1
- package/dist/{index-BPdhkx4l.js → index-sIR31szI.js} +1 -1
- package/dist/{index-BtG8YOzi.js → index-wIa5WSXJ.js} +27 -28
- package/dist/{index-CpxxO2-G.js → index-x9e-DyDf.js} +1 -1
- package/dist/{loading-DlPkAkzK.js → loading-BxJj39Hj.js} +3156 -3156
- package/dist/{lodash-Cjf6EG_s.js → lodash-CrYvSLZb.js} +1 -1
- package/dist/{membership-B4-9J74r.js → membership-DKQL_Qp9.js} +73 -84
- package/dist/{money-il542E4J.js → money-B1P0wtzb.js} +1 -1
- package/dist/{number-WhKft9Yv.js → number-Bc1eguaq.js} +3 -3
- package/dist/{rule-XS2i1LKt.js → rule-BblG87FW.js} +2 -2
- package/dist/{rule-builder-CdK4IIT9.js → rule-builder-BQdKD4Gy.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-owB8rrou.js → template-o2RQUsfw.js} +6 -6
- package/dist/{usePagination-CxpwPyMW.js → usePagination-BaqNzQhm.js} +1 -1
- package/dist/{xlsx-CbJTFamj.js → xlsx-DqRMXFBK.js} +309 -309
- package/package.json +1 -1
- package/dist/Analytic-CCtweUZA.js +0 -757
- package/dist/MainLayout-CWfQ53Qr.js +0 -41
- package/dist/MemberList-C2X8fM7F.js +0 -1729
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-CE03Mh2P.js +0 -432
- package/dist/Store-CaWIsSZ3.js +0 -1506
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DkpguWBa.js +0 -136
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-CWt4tVdk.js +0 -55
- package/dist/index-_8VUWoAN.js +0 -245
- package/dist/zod-W_PvIofQ.js +0 -90
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { z as n, F as e, g as b, e as t, m as i } from "./loading-BxJj39Hj.js";
|
|
2
|
+
import { e as s } from "./index-CdMMIVsr.js";
|
|
3
|
+
import "vue";
|
|
4
|
+
const g = n.object({
|
|
5
|
+
icon: n.string(),
|
|
6
|
+
label: n.string(),
|
|
7
|
+
value: n.string()
|
|
8
|
+
}), y = n.object({
|
|
9
|
+
gatewayKey: n.enum([
|
|
10
|
+
"REVENUE_MONSTER",
|
|
11
|
+
"FEEDME",
|
|
12
|
+
"FEEDME_MEMBER_CREDIT",
|
|
13
|
+
"RAZER_MERCHANT_SERVICE"
|
|
14
|
+
]),
|
|
15
|
+
checkoutUrl: n.string().optional(),
|
|
16
|
+
checkoutId: n.string().optional(),
|
|
17
|
+
callbackUrl: n.string().optional(),
|
|
18
|
+
vcode: n.string().optional(),
|
|
19
|
+
merchantId: n.string().optional(),
|
|
20
|
+
amount: n.string().optional(),
|
|
21
|
+
currency: n.string().optional(),
|
|
22
|
+
returnUrl: n.string().optional(),
|
|
23
|
+
notifyUrl: n.string().optional(),
|
|
24
|
+
channels: n.array(g).optional(),
|
|
25
|
+
transactionId: n.string().optional()
|
|
26
|
+
});
|
|
27
|
+
n.object({
|
|
28
|
+
trx: n.lazy(() => x),
|
|
29
|
+
onlineTrx: y.optional(),
|
|
30
|
+
url: n.string().optional()
|
|
31
|
+
});
|
|
32
|
+
const a = n.enum(["POS", "APP"]), c = n.enum(["topupCount"]), h = n.object({
|
|
33
|
+
line1: n.string(),
|
|
34
|
+
line2: n.string().optional(),
|
|
35
|
+
state: n.string(),
|
|
36
|
+
city: n.string(),
|
|
37
|
+
postcode: n.string(),
|
|
38
|
+
country: n.string()
|
|
39
|
+
}), l = n.object({
|
|
40
|
+
name: n.string(),
|
|
41
|
+
regNo: n.string(),
|
|
42
|
+
address: h,
|
|
43
|
+
phoneNo: n.string(),
|
|
44
|
+
sstRegNo: n.string().optional()
|
|
45
|
+
}), d = n.object({
|
|
46
|
+
systemCode: n.string(),
|
|
47
|
+
inclusive: n.boolean()
|
|
48
|
+
}), E = n.object({
|
|
49
|
+
id: e,
|
|
50
|
+
dayToExpire: n.number()
|
|
51
|
+
}), j = n.object({
|
|
52
|
+
normal: n.coerce.number(),
|
|
53
|
+
free: n.object({
|
|
54
|
+
day: n.coerce.number(),
|
|
55
|
+
amount: n.coerce.number(),
|
|
56
|
+
remark: n.string().nullish()
|
|
57
|
+
}).nullish()
|
|
58
|
+
}), F = n.object({
|
|
59
|
+
systemCode: n.string(),
|
|
60
|
+
taxCode: n.string()
|
|
61
|
+
}), _ = n.object({
|
|
62
|
+
name: n.string(),
|
|
63
|
+
systemCode: n.string(),
|
|
64
|
+
taxCode: n.string(),
|
|
65
|
+
rate: b,
|
|
66
|
+
total: t
|
|
67
|
+
});
|
|
68
|
+
n.object({
|
|
69
|
+
canPurchase: n.boolean(),
|
|
70
|
+
reason: n.string()
|
|
71
|
+
});
|
|
72
|
+
n.object({
|
|
73
|
+
type: c
|
|
74
|
+
});
|
|
75
|
+
n.object({
|
|
76
|
+
type: c,
|
|
77
|
+
min: n.number().nullish(),
|
|
78
|
+
max: n.number().nullish()
|
|
79
|
+
});
|
|
80
|
+
const f = n.object({
|
|
81
|
+
options: n.object({
|
|
82
|
+
maxReceive: n.number().min(0).nullish(),
|
|
83
|
+
maxPerUser: n.number().min(0).nullish()
|
|
84
|
+
}),
|
|
85
|
+
rule: s.nullish()
|
|
86
|
+
}), u = n.object({
|
|
87
|
+
_id: n.string(),
|
|
88
|
+
// conditions: z.array(FdoTopupCountCondition),
|
|
89
|
+
image: n.string().nullish(),
|
|
90
|
+
rule: s.nullish(),
|
|
91
|
+
name: n.string(),
|
|
92
|
+
price: t,
|
|
93
|
+
originalPrice: t.nullish(),
|
|
94
|
+
// new field to indicate coinPrice
|
|
95
|
+
coinPrice: n.number().nullish(),
|
|
96
|
+
titles: n.array(E),
|
|
97
|
+
credit: j,
|
|
98
|
+
taxes: n.array(F),
|
|
99
|
+
taxTotals: n.array(_),
|
|
100
|
+
priceWithTaxes: t.nullish(),
|
|
101
|
+
vouchers: n.array(e),
|
|
102
|
+
_inclusiveTaxes: n.array(d).nullish(),
|
|
103
|
+
_taxSystem: n.array(n.string()).nullish(),
|
|
104
|
+
stripePriceId: n.string().nullish(),
|
|
105
|
+
subscriptionValidity: n.number().min(1, "Must be at least 1 day").max(365, "Maximum is 365").nullish(),
|
|
106
|
+
redeemWithCode: n.boolean().nullish(),
|
|
107
|
+
internal: n.boolean().optional(),
|
|
108
|
+
hideInPos: n.boolean().optional(),
|
|
109
|
+
config: f.optional(),
|
|
110
|
+
pf_titles: n.array(n.any()).optional(),
|
|
111
|
+
pf_vouchers: n.array(n.any()).optional(),
|
|
112
|
+
pf_credit: n.number().optional()
|
|
113
|
+
}).superRefine((o, r) => {
|
|
114
|
+
o.stripePriceId && !o.subscriptionValidity && r.addIssue({
|
|
115
|
+
code: "custom",
|
|
116
|
+
message: "Validity is required when stripePriceId is provided",
|
|
117
|
+
path: ["subscriptionValidity"]
|
|
118
|
+
}), o.originalPrice && o.originalPrice.amount && o.originalPrice.amount < o.price.amount && r.addIssue({
|
|
119
|
+
code: "custom",
|
|
120
|
+
message: "Original price must be greater than price",
|
|
121
|
+
path: ["originalPrice"]
|
|
122
|
+
});
|
|
123
|
+
}), p = n.object({
|
|
124
|
+
name: n.string(),
|
|
125
|
+
bundles: n.array(u)
|
|
126
|
+
});
|
|
127
|
+
n.object({
|
|
128
|
+
_id: n.string(),
|
|
129
|
+
name: n.string(),
|
|
130
|
+
expiredAt: n.string()
|
|
131
|
+
});
|
|
132
|
+
const I = n.object({
|
|
133
|
+
apiKey: n.string(),
|
|
134
|
+
webhookSecret: n.string()
|
|
135
|
+
}), T = n.object({
|
|
136
|
+
company: l.nullish(),
|
|
137
|
+
inclusiveTaxes: n.array(d).nullish(),
|
|
138
|
+
stripe: I.optional()
|
|
139
|
+
}), C = {
|
|
140
|
+
collectionName: "Stores",
|
|
141
|
+
transform: {
|
|
142
|
+
_id: "oid",
|
|
143
|
+
business: "oid"
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
T.extend({
|
|
147
|
+
_id: e,
|
|
148
|
+
business: e,
|
|
149
|
+
categories: n.array(p)
|
|
150
|
+
}).describe(i.describe(C));
|
|
151
|
+
const S = n.object({
|
|
152
|
+
refundedAt: n.coerce.date(),
|
|
153
|
+
reason: n.string(),
|
|
154
|
+
transactions: n.array(e)
|
|
155
|
+
}), m = n.object({
|
|
156
|
+
type: n.enum(["ONLINE", "OFFLINE", "COIN", "STRIPE", "CARD"]),
|
|
157
|
+
extra: n.string().nullish()
|
|
158
|
+
}), x = n.object({
|
|
159
|
+
_id: e,
|
|
160
|
+
source: a,
|
|
161
|
+
// can be memberStorePurchase
|
|
162
|
+
ref: n.string(),
|
|
163
|
+
business: e,
|
|
164
|
+
company: l,
|
|
165
|
+
location: e.optional(),
|
|
166
|
+
member: e,
|
|
167
|
+
// createdAt: z.coerce.date(),
|
|
168
|
+
bundle: u,
|
|
169
|
+
transactions: n.array(e),
|
|
170
|
+
// array of transaction id (voucher, credit, title)
|
|
171
|
+
status: n.enum([
|
|
172
|
+
"PENDING_PAYMENT",
|
|
173
|
+
"PENDING_TRANSACTION",
|
|
174
|
+
"COMPLETED",
|
|
175
|
+
"REFUNDED"
|
|
176
|
+
]),
|
|
177
|
+
refund: S.nullish(),
|
|
178
|
+
paymentType: m.nullish(),
|
|
179
|
+
paymentRef: n.string().nullish(),
|
|
180
|
+
pf_transactions: n.array(n.any()).optional(),
|
|
181
|
+
pf_member: n.any().optional(),
|
|
182
|
+
pf_location: n.any().optional(),
|
|
183
|
+
pf_ref: n.any().optional()
|
|
184
|
+
}).describe(
|
|
185
|
+
i.describe({
|
|
186
|
+
collectionName: "StoreTransactions",
|
|
187
|
+
transform: {
|
|
188
|
+
_id: "oid",
|
|
189
|
+
business: "oid",
|
|
190
|
+
location: "oid",
|
|
191
|
+
member: "oid",
|
|
192
|
+
transaction: "oid"
|
|
193
|
+
}
|
|
194
|
+
})
|
|
195
|
+
);
|
|
196
|
+
n.object({
|
|
197
|
+
bundle: e,
|
|
198
|
+
member: n.string(),
|
|
199
|
+
ref: n.string(),
|
|
200
|
+
paymentType: m.nullish(),
|
|
201
|
+
withCoin: n.boolean().optional(),
|
|
202
|
+
card: n.string().optional(),
|
|
203
|
+
location: e.optional(),
|
|
204
|
+
source: a
|
|
205
|
+
});
|
|
206
|
+
n.object({
|
|
207
|
+
categories: n.array(p)
|
|
208
|
+
});
|
|
209
|
+
n.object({
|
|
210
|
+
id: e,
|
|
211
|
+
reason: n.string(),
|
|
212
|
+
location: e.optional()
|
|
213
|
+
});
|
|
214
|
+
n.object({
|
|
215
|
+
_id: e,
|
|
216
|
+
business: e,
|
|
217
|
+
user: e,
|
|
218
|
+
bundleId: n.string(),
|
|
219
|
+
transaction: n.array(e),
|
|
220
|
+
subscriptionId: n.string(),
|
|
221
|
+
expiredAt: n.coerce.date()
|
|
222
|
+
}).describe(
|
|
223
|
+
i.describe({
|
|
224
|
+
collectionName: "StoreSubscriptions",
|
|
225
|
+
transform: {
|
|
226
|
+
_id: "oid",
|
|
227
|
+
business: "oid",
|
|
228
|
+
user: "oid",
|
|
229
|
+
transaction: "oid",
|
|
230
|
+
expiredAt: "date"
|
|
231
|
+
}
|
|
232
|
+
})
|
|
233
|
+
);
|
|
234
|
+
n.object({
|
|
235
|
+
member: n.string(),
|
|
236
|
+
subscriptionId: n.string()
|
|
237
|
+
});
|
|
238
|
+
export {
|
|
239
|
+
T as F,
|
|
240
|
+
l as a,
|
|
241
|
+
h as b,
|
|
242
|
+
u as c,
|
|
243
|
+
x as d
|
|
244
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { z as e, F as m, m as f } from "./loading-
|
|
3
|
-
import "./index-
|
|
4
|
-
import { R as a } from "./rule-builder-
|
|
5
|
-
import { i as
|
|
6
|
-
import { b as K, c as W } from "./index-
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as U, ref as B, resolveComponent as c, openBlock as r, createBlock as C, unref as O, withCtx as g, renderSlot as T, createElementBlock as d, toDisplayString as u, createCommentVNode as P, createVNode as I, normalizeClass as L, createElementVNode as H, Fragment as k, renderList as Y } from "vue";
|
|
2
|
+
import { z as e, F as m, m as f } from "./loading-BxJj39Hj.js";
|
|
3
|
+
import "./index-CdMMIVsr.js";
|
|
4
|
+
import { R as a } from "./rule-builder-BQdKD4Gy.js";
|
|
5
|
+
import { i as o } from "./helper-BSlBLPdy.js";
|
|
6
|
+
import { b as K, c as W } from "./index-B64Y4rdW.js";
|
|
7
|
+
const j = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "fm-typo-en-body-lg-400 mb-4"
|
|
10
|
-
},
|
|
10
|
+
}, X = {
|
|
11
11
|
key: 1,
|
|
12
12
|
class: "fm-typo-en-body-lg-400"
|
|
13
|
-
},
|
|
13
|
+
}, q = { class: "rounded-md bg-white shadow-md max-h-[300px] overflow-y-scroll pl-4 py-12" }, ue = /* @__PURE__ */ U({
|
|
14
14
|
__name: "CustomSelect",
|
|
15
15
|
props: {
|
|
16
16
|
label: {
|
|
@@ -36,22 +36,22 @@ const X = {
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
emits: ["update:model-value"],
|
|
39
|
-
setup(t, { emit:
|
|
40
|
-
const v =
|
|
39
|
+
setup(t, { emit: N }) {
|
|
40
|
+
const v = N, s = B(!1);
|
|
41
41
|
return (b, _) => {
|
|
42
|
-
const
|
|
43
|
-
return
|
|
42
|
+
const M = c("FmIcon"), w = c("FmField"), F = c("FmMenuItem"), A = c("FmPopover");
|
|
43
|
+
return r(), C(A, {
|
|
44
44
|
"show-popover": O(s),
|
|
45
45
|
onPopoverChanged: _[0] || (_[0] = (i) => s.value = i),
|
|
46
46
|
"z-index": t.zIndex
|
|
47
47
|
}, {
|
|
48
48
|
"popover-button": g(() => [
|
|
49
49
|
T(b.$slots, "popover-button", {}, () => [
|
|
50
|
-
t.label ? (
|
|
51
|
-
I(
|
|
50
|
+
t.label ? (r(), d("div", j, u(t.label), 1)) : P("", !0),
|
|
51
|
+
I(w, null, {
|
|
52
52
|
append: g(() => [
|
|
53
53
|
T(b.$slots, "append"),
|
|
54
|
-
I(
|
|
54
|
+
I(M, {
|
|
55
55
|
name: O(s) ? "expand_less" : "expand_more",
|
|
56
56
|
size: "md",
|
|
57
57
|
color: "black"
|
|
@@ -60,10 +60,10 @@ const X = {
|
|
|
60
60
|
default: g(() => {
|
|
61
61
|
var i;
|
|
62
62
|
return [
|
|
63
|
-
t.multiselect ? (
|
|
63
|
+
t.multiselect ? (r(), d("div", X, u(t.items.filter((n) => {
|
|
64
64
|
var p;
|
|
65
65
|
return (p = t.modelValue) == null ? void 0 : p.includes(n.value);
|
|
66
|
-
}).map((n) => n.label).join(", ")), 1)) : (
|
|
66
|
+
}).map((n) => n.label).join(", ")), 1)) : (r(), d("div", {
|
|
67
67
|
key: 0,
|
|
68
68
|
class: L(["fm-typo-en-body-lg-400", {
|
|
69
69
|
"text-fm-color-typo-secondary": !t.items.find(
|
|
@@ -78,10 +78,10 @@ const X = {
|
|
|
78
78
|
])
|
|
79
79
|
]),
|
|
80
80
|
default: g(() => [
|
|
81
|
-
|
|
82
|
-
(
|
|
81
|
+
H("div", q, [
|
|
82
|
+
(r(!0), d(k, null, Y(t.items, (i) => {
|
|
83
83
|
var n, p;
|
|
84
|
-
return
|
|
84
|
+
return r(), C(F, {
|
|
85
85
|
class: L(`${t.multiselect ? (n = t.modelValue) != null && n.some((l) => l == i.value) ? "bg-fm-color-system-warning-100" : "" : t.modelValue == i.value}`),
|
|
86
86
|
"has-checkbox": t.multiselect,
|
|
87
87
|
key: i.value,
|
|
@@ -92,10 +92,10 @@ const X = {
|
|
|
92
92
|
if (l.stopPropagation(), !t.multiselect)
|
|
93
93
|
s.value = !1, v("update:model-value", i.value);
|
|
94
94
|
else {
|
|
95
|
-
const
|
|
95
|
+
const V = (E = t.modelValue) == null ? void 0 : E.some((y) => y == i.value);
|
|
96
96
|
v(
|
|
97
97
|
"update:model-value",
|
|
98
|
-
|
|
98
|
+
V ? (t.modelValue ?? []).filter((y) => y !== i.value) : [...t.modelValue ?? [], i.value]
|
|
99
99
|
);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
@@ -107,7 +107,7 @@ const X = {
|
|
|
107
107
|
}, 8, ["show-popover", "z-index"]);
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
-
}),
|
|
110
|
+
}), fe = {
|
|
111
111
|
PROMOTION: {
|
|
112
112
|
name: "Promotion Template",
|
|
113
113
|
description: "Promotion template for campaign creation.",
|
|
@@ -474,7 +474,7 @@ const X = {
|
|
|
474
474
|
// imageUrl: '',
|
|
475
475
|
// },
|
|
476
476
|
},
|
|
477
|
-
configs:
|
|
477
|
+
configs: o("VOUCHER", {
|
|
478
478
|
name: "",
|
|
479
479
|
business: null,
|
|
480
480
|
noCampaign: !1
|
|
@@ -1412,7 +1412,7 @@ const X = {
|
|
|
1412
1412
|
rewards: []
|
|
1413
1413
|
}
|
|
1414
1414
|
},
|
|
1415
|
-
configs:
|
|
1415
|
+
configs: o("GAME", {
|
|
1416
1416
|
name: "Token",
|
|
1417
1417
|
business: null,
|
|
1418
1418
|
noCampaign: !1
|
|
@@ -1653,27 +1653,27 @@ const X = {
|
|
|
1653
1653
|
type: "timeframe"
|
|
1654
1654
|
}
|
|
1655
1655
|
},
|
|
1656
|
-
configs:
|
|
1656
|
+
configs: o("STAMP", {
|
|
1657
1657
|
business: null,
|
|
1658
1658
|
noCampaign: !1
|
|
1659
1659
|
})
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
1662
1662
|
};
|
|
1663
|
-
a.scaffoldGroup(),
|
|
1663
|
+
a.scaffoldGroup(), o("STAMP", {
|
|
1664
1664
|
business: null,
|
|
1665
1665
|
noCampaign: !1
|
|
1666
1666
|
});
|
|
1667
1667
|
({
|
|
1668
1668
|
...a.scaffoldGroup()
|
|
1669
|
-
},
|
|
1669
|
+
}, o("VOUCHER", {
|
|
1670
1670
|
name: "",
|
|
1671
1671
|
business: null,
|
|
1672
1672
|
noCampaign: !1
|
|
1673
1673
|
}));
|
|
1674
1674
|
({
|
|
1675
1675
|
...a.scaffoldGroup()
|
|
1676
|
-
},
|
|
1676
|
+
}, o("VOUCHER", {
|
|
1677
1677
|
name: "",
|
|
1678
1678
|
business: null,
|
|
1679
1679
|
noCampaign: !1
|
|
@@ -1716,7 +1716,7 @@ a.setRuleToGroup(a.scaffoldGroup(), [
|
|
|
1716
1716
|
});
|
|
1717
1717
|
({
|
|
1718
1718
|
...a.scaffoldGroup()
|
|
1719
|
-
},
|
|
1719
|
+
}, o("VOUCHER", {
|
|
1720
1720
|
name: "",
|
|
1721
1721
|
business: null,
|
|
1722
1722
|
noCampaign: !1
|
|
@@ -1762,14 +1762,14 @@ a.setRuleToGroup(
|
|
|
1762
1762
|
"&&"
|
|
1763
1763
|
)
|
|
1764
1764
|
);
|
|
1765
|
-
a.scaffoldGroup(), a.scaffoldGroup(),
|
|
1765
|
+
a.scaffoldGroup(), a.scaffoldGroup(), o("GAME", {
|
|
1766
1766
|
name: "Token",
|
|
1767
1767
|
business: null,
|
|
1768
1768
|
noCampaign: !1
|
|
1769
1769
|
});
|
|
1770
1770
|
({
|
|
1771
1771
|
...a.scaffoldGroup()
|
|
1772
|
-
},
|
|
1772
|
+
}, o("VOUCHER", {
|
|
1773
1773
|
name: "",
|
|
1774
1774
|
business: null,
|
|
1775
1775
|
noCampaign: !1
|
|
@@ -1798,7 +1798,7 @@ a.setRuleToGroup(a.scaffoldGroup(), [
|
|
|
1798
1798
|
],
|
|
1799
1799
|
"&&"
|
|
1800
1800
|
)
|
|
1801
|
-
]),
|
|
1801
|
+
]), o("VOUCHER", {
|
|
1802
1802
|
name: "",
|
|
1803
1803
|
business: null,
|
|
1804
1804
|
noCampaign: !1
|
|
@@ -1821,7 +1821,7 @@ a.setRuleToGroup(a.scaffoldGroup(), [
|
|
|
1821
1821
|
({
|
|
1822
1822
|
...a.scaffoldGroup()
|
|
1823
1823
|
});
|
|
1824
|
-
const
|
|
1824
|
+
const z = e.enum([
|
|
1825
1825
|
"MEMBER_REWARD",
|
|
1826
1826
|
"PAID_LOYALTY",
|
|
1827
1827
|
"COLLECT_FEEDBACK",
|
|
@@ -1831,7 +1831,7 @@ const Q = e.enum([
|
|
|
1831
1831
|
"BROADCAST",
|
|
1832
1832
|
"BIRTHDAY",
|
|
1833
1833
|
"GAME"
|
|
1834
|
-
]),
|
|
1834
|
+
]), Q = e.enum([
|
|
1835
1835
|
"text",
|
|
1836
1836
|
"number",
|
|
1837
1837
|
"textarea",
|
|
@@ -1858,33 +1858,33 @@ const Q = e.enum([
|
|
|
1858
1858
|
"rule_feedback",
|
|
1859
1859
|
"rule_birthday",
|
|
1860
1860
|
"promotion_game_type"
|
|
1861
|
-
]),
|
|
1861
|
+
]), J = e.object({
|
|
1862
1862
|
label: e.string().optional(),
|
|
1863
1863
|
property: e.string().or(e.any()),
|
|
1864
|
-
type:
|
|
1864
|
+
type: Q,
|
|
1865
1865
|
extras: e.string().optional(),
|
|
1866
1866
|
isRuleChildren: e.boolean().optional()
|
|
1867
|
-
}),
|
|
1867
|
+
}), $ = e.object({
|
|
1868
1868
|
name: e.string().optional(),
|
|
1869
|
-
fields: e.array(
|
|
1869
|
+
fields: e.array(J),
|
|
1870
1870
|
condition: e.object({
|
|
1871
1871
|
not: e.boolean().optional(),
|
|
1872
1872
|
property: e.string(),
|
|
1873
1873
|
value: e.any()
|
|
1874
1874
|
}).optional()
|
|
1875
|
-
}),
|
|
1875
|
+
}), Z = e.object({
|
|
1876
1876
|
name: e.string(),
|
|
1877
|
-
groups: e.array(
|
|
1877
|
+
groups: e.array($)
|
|
1878
1878
|
});
|
|
1879
1879
|
e.object({
|
|
1880
1880
|
_id: m,
|
|
1881
1881
|
name: e.string(),
|
|
1882
1882
|
description: e.string().nullish(),
|
|
1883
|
-
steps: e.array(
|
|
1884
|
-
intention: e.array(
|
|
1883
|
+
steps: e.array(Z).min(1),
|
|
1884
|
+
intention: e.array(z),
|
|
1885
1885
|
defaultValue: e.any()
|
|
1886
1886
|
}).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
|
|
1887
|
-
const
|
|
1887
|
+
const ee = {
|
|
1888
1888
|
collectionName: "Businesses",
|
|
1889
1889
|
transform: {
|
|
1890
1890
|
_id: "oid"
|
|
@@ -1896,19 +1896,19 @@ e.object({
|
|
|
1896
1896
|
name: e.string(),
|
|
1897
1897
|
credit: e.number(),
|
|
1898
1898
|
forceSend: e.boolean().optional()
|
|
1899
|
-
}).describe(f.describe(
|
|
1900
|
-
const D = e.enum(["PHONE"]),
|
|
1899
|
+
}).describe(f.describe(ee));
|
|
1900
|
+
const D = e.enum(["PHONE"]), ae = e.enum(["MOCEAN", "SLACK"]), te = e.enum(["PENDING", "COMPLETED", "FAILED"]), ie = e.enum([
|
|
1901
1901
|
"General",
|
|
1902
1902
|
"Otp",
|
|
1903
1903
|
"Marketing",
|
|
1904
1904
|
"Ordering",
|
|
1905
1905
|
"MemberInvitation"
|
|
1906
|
-
]),
|
|
1906
|
+
]), ne = e.object({
|
|
1907
1907
|
type: D
|
|
1908
|
-
}), x =
|
|
1908
|
+
}), x = ne.extend({
|
|
1909
1909
|
type: e.literal(D.enum.PHONE),
|
|
1910
|
-
provider:
|
|
1911
|
-
usage:
|
|
1910
|
+
provider: ae,
|
|
1911
|
+
usage: ie.optional()
|
|
1912
1912
|
}), oe = {
|
|
1913
1913
|
collectionName: "Notifications",
|
|
1914
1914
|
transform: { _id: "oid", business: "oid" }
|
|
@@ -1920,7 +1920,7 @@ e.object({
|
|
|
1920
1920
|
title: e.string().optional(),
|
|
1921
1921
|
message: e.string(),
|
|
1922
1922
|
option: x,
|
|
1923
|
-
status:
|
|
1923
|
+
status: te,
|
|
1924
1924
|
ref: e.string().optional()
|
|
1925
1925
|
}).describe(f.describe(oe));
|
|
1926
1926
|
e.object({
|
|
@@ -1934,24 +1934,6 @@ e.object({
|
|
|
1934
1934
|
phone: e.string(),
|
|
1935
1935
|
message: e.string()
|
|
1936
1936
|
});
|
|
1937
|
-
const h = e.object({
|
|
1938
|
-
name: e.string(),
|
|
1939
|
-
address: e.string()
|
|
1940
|
-
}), pe = e.object({
|
|
1941
|
-
filename: e.string(),
|
|
1942
|
-
content: e.instanceof(Uint8Array)
|
|
1943
|
-
});
|
|
1944
|
-
e.object({
|
|
1945
|
-
from: h,
|
|
1946
|
-
to: e.array(h),
|
|
1947
|
-
subject: e.string(),
|
|
1948
|
-
html: e.string().optional(),
|
|
1949
|
-
attachments: e.array(pe).optional()
|
|
1950
|
-
});
|
|
1951
|
-
e.object({
|
|
1952
|
-
subject: e.string(),
|
|
1953
|
-
body: e.string()
|
|
1954
|
-
});
|
|
1955
1937
|
e.enum(["send_notification", "TRIGGER_EVENT"]);
|
|
1956
1938
|
e.enum([
|
|
1957
1939
|
"campaign.general",
|
|
@@ -1979,15 +1961,15 @@ e.object({
|
|
|
1979
1961
|
claimIds: e.array(e.string()),
|
|
1980
1962
|
billId: e.string()
|
|
1981
1963
|
});
|
|
1982
|
-
var
|
|
1983
|
-
e.nativeEnum(
|
|
1964
|
+
var h = /* @__PURE__ */ ((t) => (t[t.feedMe = 0] = "feedMe", t[t.business = 1] = "business", t[t.restaurant = 2] = "restaurant", t))(h || {});
|
|
1965
|
+
e.nativeEnum(h);
|
|
1984
1966
|
e.enum(["manage", "create", "read", "update", "delete"]);
|
|
1985
1967
|
e.enum(["all", "restaurant", "business", "delivery", "agent"]);
|
|
1986
1968
|
e.enum(["quota"]);
|
|
1987
|
-
var
|
|
1988
|
-
e.nativeEnum(
|
|
1969
|
+
var S = /* @__PURE__ */ ((t) => (t.marketing = "business::marketing", t.campaign = "business::campaign", t.counter = "business::counter", t.permission = "business::permission", t.role = "business::role", t))(S || {});
|
|
1970
|
+
e.nativeEnum(S);
|
|
1989
1971
|
e.enum(["restaurant"]);
|
|
1990
|
-
const
|
|
1972
|
+
const re = e.object({
|
|
1991
1973
|
label: e.string(),
|
|
1992
1974
|
subject: e.union([e.string(), e.array(e.string())]),
|
|
1993
1975
|
actions: e.union([e.string(), e.array(e.string())]),
|
|
@@ -2002,7 +1984,7 @@ e.object({
|
|
|
2002
1984
|
userId: e.string(),
|
|
2003
1985
|
email: e.string().nullish(),
|
|
2004
1986
|
phoneNo: e.string().nullish(),
|
|
2005
|
-
permissions: e.array(e.lazy(() =>
|
|
1987
|
+
permissions: e.array(e.lazy(() => re))
|
|
2006
1988
|
}).describe(
|
|
2007
1989
|
f.describe({
|
|
2008
1990
|
collectionName: "PermissionUsers",
|
|
@@ -2011,27 +1993,27 @@ e.object({
|
|
|
2011
1993
|
}
|
|
2012
1994
|
})
|
|
2013
1995
|
);
|
|
2014
|
-
const
|
|
1996
|
+
const R = e.object({
|
|
2015
1997
|
userId: e.string(),
|
|
2016
1998
|
level: e.number(),
|
|
2017
1999
|
role: e.string().optional(),
|
|
2018
2000
|
businessId: e.string().optional(),
|
|
2019
2001
|
restaurantId: e.string().optional()
|
|
2020
|
-
}),
|
|
2002
|
+
}), pe = e.function().args(e.any(), R).returns(e.boolean()), le = e.function().args(R).returns(e.promise(e.array(e.any())));
|
|
2021
2003
|
e.object({
|
|
2022
|
-
isAdmin:
|
|
2023
|
-
getRules:
|
|
2004
|
+
isAdmin: pe,
|
|
2005
|
+
getRules: le
|
|
2024
2006
|
});
|
|
2025
2007
|
e.object({
|
|
2026
2008
|
transactions: e.array(K),
|
|
2027
2009
|
collections: e.array(W)
|
|
2028
2010
|
});
|
|
2029
|
-
const
|
|
2011
|
+
const G = e.enum([
|
|
2030
2012
|
"ROCK_PAPER_SCISSOR"
|
|
2031
2013
|
]);
|
|
2032
|
-
|
|
2014
|
+
G.enum.ROCK_PAPER_SCISSOR + "";
|
|
2033
2015
|
e.object({
|
|
2034
|
-
type:
|
|
2016
|
+
type: G
|
|
2035
2017
|
});
|
|
2036
2018
|
e.object({
|
|
2037
2019
|
host: e.string().url(),
|
|
@@ -2039,27 +2021,8 @@ e.object({
|
|
|
2039
2021
|
token: e.string(),
|
|
2040
2022
|
roomId: e.string()
|
|
2041
2023
|
});
|
|
2042
|
-
e.object({
|
|
2043
|
-
id: e.number(),
|
|
2044
|
-
name: e.string(),
|
|
2045
|
-
email: e.string(),
|
|
2046
|
-
phone: e.string(),
|
|
2047
|
-
birthday: e.string(),
|
|
2048
|
-
address: e.string().nullable(),
|
|
2049
|
-
avatar: e.string(),
|
|
2050
|
-
tier: e.string(),
|
|
2051
|
-
visitCount: e.number().nullable(),
|
|
2052
|
-
lastVisit: e.string().nullable(),
|
|
2053
|
-
averageSpending: e.number().nullable(),
|
|
2054
|
-
point: e.number()
|
|
2055
|
-
});
|
|
2056
|
-
e.object({
|
|
2057
|
-
businessId: e.string(),
|
|
2058
|
-
phone: e.string().optional(),
|
|
2059
|
-
email: e.string().optional()
|
|
2060
|
-
});
|
|
2061
2024
|
export {
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2025
|
+
z as F,
|
|
2026
|
+
fe as T,
|
|
2027
|
+
ue as _
|
|
2065
2028
|
};
|