@feedmepos/mf-connect 0.1.57-prod → 0.1.58-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.
Files changed (128) hide show
  1. package/package.json +1 -1
  2. package/dist/Analytic-BqvhYgCU.js +0 -427
  3. package/dist/App-Dtl_D0cH.js +0 -4630
  4. package/dist/Bin-y4ikpgPS.js +0 -166
  5. package/dist/Broadcast-DSROFwe4.js +0 -233
  6. package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CcsG6vOP.js +0 -121
  7. package/dist/Card-BiSEPsZb.js +0 -911
  8. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +0 -97
  9. package/dist/Collections-CX-nN7Xj.js +0 -458
  10. package/dist/Credit-IiV9b4cB.js +0 -228
  11. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +0 -128
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CoGes8YL.js +0 -2194
  13. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-sGh_SMCH.js +0 -348
  14. package/dist/Experience-Cf-EMhKy.js +0 -229
  15. package/dist/FileSaver.min-NlMItPOc.js +0 -74
  16. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  17. package/dist/Game-C8mfJn6W.js +0 -284
  18. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js +0 -144
  19. package/dist/Index-DkvO1AoT.js +0 -259
  20. package/dist/JsonViewer-v8_C7l5N.js +0 -87
  21. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js +0 -18737
  22. package/dist/MainLayout-B1aJoR95.js +0 -41
  23. package/dist/Marketing-xJTIo3RF.js +0 -319
  24. package/dist/Member-DZkYoKW8.js +0 -279
  25. package/dist/MemberList-CAYEJnf3.js +0 -1607
  26. package/dist/MemberOverview-wL_ailso.js +0 -58
  27. package/dist/MemberTransactions-Dc5aAQ69.js +0 -45
  28. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-BSvlPzw8.js +0 -60553
  29. package/dist/Mission-C_NbNWZw.js +0 -302
  30. package/dist/Overview-DyxEwEfe.js +0 -1079
  31. package/dist/Point-CsEWk61V.js +0 -232
  32. package/dist/Promotion--pWgy9Dx.js +0 -289
  33. package/dist/Queue-k3qAQR7B.js +0 -260
  34. package/dist/Record-D5F5JyVA.js +0 -341
  35. package/dist/Reward-3FSrq5mX.js +0 -442
  36. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-Dzj7a7UY.js +0 -150
  37. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DRl_Gjfx.js +0 -1763
  38. package/dist/Segment-BWJn6ODR.js +0 -882
  39. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BKsV_zcr.js +0 -181
  40. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-C3efGNC_.js +0 -188
  41. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cj7c2V3h.js +0 -147
  42. package/dist/Setting-UiTXazZV.js +0 -1936
  43. package/dist/Store-BrvmHPCX.js +0 -1842
  44. package/dist/StoreRewards-D_7fr-Ef.js +0 -423
  45. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BXy0L5AH.js +0 -995
  46. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DumcDlBs.js +0 -139
  47. package/dist/Tier-C4wvx8F7.js +0 -895
  48. package/dist/Title-CPHT85Uj.js +0 -566
  49. package/dist/Transaction-6Ig2W00P.js +0 -39
  50. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-DknFkIJh.js +0 -130
  51. package/dist/Voucher-Bbl-7gZ5.js +0 -384
  52. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-xsswRZG8.js +0 -419
  53. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-B5J6Hd8G.js +0 -56
  54. package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
  55. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  56. package/dist/app-BDVZwARN.js +0 -7057
  57. package/dist/app-CAEhNFRG.js +0 -57962
  58. package/dist/app-wDQR6dpb.js +0 -39
  59. package/dist/app.js +0 -6
  60. package/dist/business-6C_ol5wd.js +0 -82
  61. package/dist/campaign-B13G6pZ3.js +0 -1810
  62. package/dist/campaign-CpzFl8Vr.js +0 -4
  63. package/dist/campaign-DrQp6qBu.js +0 -94
  64. package/dist/campaign.enum-DnTrlaNC.js +0 -20
  65. package/dist/campaign.fn-BZse90_k.js +0 -758
  66. package/dist/collectible.enum-633Me0yR.js +0 -19
  67. package/dist/collection.fn-C96855j5.js +0 -26
  68. package/dist/dto-2bMujqmZ.js +0 -216
  69. package/dist/effect-C7lAJwKh.js +0 -78
  70. package/dist/email-addresses-3ayN-9jv.js +0 -705
  71. package/dist/export-BNbDV7SC.js +0 -97
  72. package/dist/feedme.ico +0 -0
  73. package/dist/helper-CsfZ__dQ.js +0 -71
  74. package/dist/index-BLSAz0gK.js +0 -32
  75. package/dist/index-BY9I3Cer.js +0 -3
  76. package/dist/index-BdnRNcVO.js +0 -146
  77. package/dist/index-BmyNfpfG.js +0 -30076
  78. package/dist/index-CSBRkhKy.js +0 -38
  79. package/dist/index-Cf_fcvoS.js +0 -54
  80. package/dist/index-CqrO13uj.js +0 -76
  81. package/dist/index-CuvNtC_M.js +0 -61
  82. package/dist/index-D4kdSzs9.js +0 -3070
  83. package/dist/index-DcJq7tl4.js +0 -32269
  84. package/dist/index-DdjSIwSL.js +0 -44
  85. package/dist/index-LKr2k8J2.js +0 -8861
  86. package/dist/index-XAxwm-1v.js +0 -2130
  87. package/dist/index-b82LrGSB.js +0 -121
  88. package/dist/index-tcAb0W5F.js +0 -31
  89. package/dist/index-vh86FiIQ.js +0 -10
  90. package/dist/index.esm2017-BklqmujQ.js +0 -3069
  91. package/dist/loading-OXARGiqO.js +0 -71
  92. package/dist/lodash-B5I3zXaY.js +0 -3678
  93. package/dist/membership-D1Vb1rUo.js +0 -235
  94. package/dist/moment-D7p2TMB-.js +0 -2583
  95. package/dist/money-BpyAytEq.js +0 -15
  96. package/dist/number-C-PtPOOj.js +0 -12
  97. package/dist/object-qECH92oz.js +0 -26
  98. package/dist/objectId-dwaoBfJX.js +0 -7
  99. package/dist/objectid-BrLIKTmQ.js +0 -145
  100. package/dist/plugins-CjPWhNb2.js +0 -208
  101. package/dist/reward-DonQFzvW.js +0 -36
  102. package/dist/rule-AtNPBnbE.js +0 -1951
  103. package/dist/rule-builder-C0Q-3g6T.js +0 -102
  104. package/dist/style.css +0 -4
  105. package/dist/template-CNjE7eht.js +0 -190
  106. package/dist/tier-BJDhpH6X.js +0 -4
  107. package/dist/tiers/tier=1.png +0 -0
  108. package/dist/tiers/tier=2.png +0 -0
  109. package/dist/tiers/tier=3.png +0 -0
  110. package/dist/tiers/tier=4.png +0 -0
  111. package/dist/timezone-CYbdI3q2.js +0 -1151
  112. package/dist/titles/type=diamond.png +0 -0
  113. package/dist/titles/type=drinks.png +0 -0
  114. package/dist/titles/type=food.png +0 -0
  115. package/dist/titles/type=heart.png +0 -0
  116. package/dist/titles/type=medal.png +0 -0
  117. package/dist/titles/type=spend.png +0 -0
  118. package/dist/titles/type=thank-you.png +0 -0
  119. package/dist/titles/type=thumbs-up.png +0 -0
  120. package/dist/titles/type=years.png +0 -0
  121. package/dist/trigger-Bdi6n80h.js +0 -144
  122. package/dist/tslib.es6-BCqqvLQ_.js +0 -44
  123. package/dist/type_drinks-D6jnpvwV.js +0 -4
  124. package/dist/usePagination-Ds-cuHop.js +0 -223
  125. package/dist/user-BwGm78n8.js +0 -54
  126. package/dist/vue-i18n-D1nTd69a.js +0 -2365
  127. package/dist/xlsx-DF5iW3wh.js +0 -15491
  128. package/dist/zod-Bg2FbC-D.js +0 -90
@@ -1,38 +0,0 @@
1
- import { z as t, F as e, m as i } from "./index-DcJq7tl4.js";
2
- const n = t.enum(["FACEBOOK", "INSTAGRAM", "TV", "BRAND_APP"]), s = {
3
- collectionName: "MarketingMaterials",
4
- transform: {
5
- _id: "oid",
6
- business: "oid",
7
- campaign: "oid"
8
- }
9
- }, a = t.object({
10
- platform: n,
11
- contents: t.array(
12
- t.object({
13
- type: t.string(),
14
- size: t.object({
15
- width: t.number(),
16
- height: t.number()
17
- }),
18
- images: t.array(t.string())
19
- })
20
- )
21
- });
22
- t.object({
23
- _id: e,
24
- business: e,
25
- campaign: e.nullish(),
26
- name: t.string(),
27
- keywords: t.string(),
28
- image: t.string(),
29
- assets: t.array(t.lazy(() => a)),
30
- headline: t.object({
31
- content: t.string(),
32
- key: t.string().optional()
33
- }),
34
- captions: t.array(t.object({ language: t.string(), content: t.string() }))
35
- }).describe(i.describe(s));
36
- export {
37
- n as F
38
- };
@@ -1,54 +0,0 @@
1
- import { F as o, e as t, g as a } from "./index-LKr2k8J2.js";
2
- import { z as e, F as i, m as d } from "./index-DcJq7tl4.js";
3
- import { F as c } from "./collectible.enum-633Me0yR.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
- u as F,
53
- b as a
54
- };
@@ -1,76 +0,0 @@
1
- import { g as t, S as I, u as C, b as w } from "./index-BmyNfpfG.js";
2
- const a = () => {
3
- if (!I.getBusinessId()) throw new Error("Invalid business ID");
4
- return C("users");
5
- }, c = () => {
6
- const e = I.getBusinessId();
7
- if (!e) throw new Error("Invalid business ID");
8
- return w(`businesses/${e}/membership`, {
9
- noIdRequired: !0
10
- });
11
- }, y = {
12
- async read(e) {
13
- const s = t(
14
- await a().get("", { params: e })
15
- ), n = s.resources.map((r) => {
16
- var i, o, d, l, p, u, m, b;
17
- return {
18
- ...r,
19
- collection_TIER_0_balance: ((o = (i = r.collection.TIER) == null ? void 0 : i[0]) == null ? void 0 : o.balance) ?? 0,
20
- collection_CREDIT_0_balance: ((l = (d = r.collection.CREDIT) == null ? void 0 : d[0]) == null ? void 0 : l.balance) ?? 0,
21
- collection_COIN_0_balance: ((u = (p = r.collection.COIN) == null ? void 0 : p[0]) == null ? void 0 : u.balance) ?? 0,
22
- collection_TITLE_0_title: ((b = (m = r.collection.TITLE) == null ? void 0 : m[0]) == null ? void 0 : b.title) ?? ""
23
- };
24
- });
25
- return {
26
- meta: s.meta,
27
- resources: n
28
- };
29
- },
30
- async readById(e) {
31
- return t(await a().get(`${e}`));
32
- },
33
- async sendCredit(e, s) {
34
- return t(
35
- await c().post(
36
- `members/${e}/send-credit`,
37
- s
38
- )
39
- );
40
- },
41
- async deductCredit(e, s) {
42
- return t(
43
- await c().post(
44
- `members/${e}/deduct-credit`,
45
- s
46
- )
47
- );
48
- },
49
- async sendCoin(e, s) {
50
- return t(
51
- await c().post(
52
- `members/${e}/send-coin`,
53
- s
54
- )
55
- );
56
- },
57
- async deductCoin(e, s) {
58
- return t(
59
- await c().post(
60
- `members/${e}/deduct-coin`,
61
- s
62
- )
63
- );
64
- },
65
- async updateMember(e, s) {
66
- return t(
67
- await a().put(`${e}`, s)
68
- );
69
- },
70
- async import(e) {
71
- return await a().post("import", e);
72
- }
73
- };
74
- export {
75
- y as m
76
- };
@@ -1,61 +0,0 @@
1
- const E = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), x = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), P = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), _ = /[^\p{L}\d]+/giu, u = "$1\0$2", i = "";
2
- function L(r) {
3
- let e = r.trim();
4
- e = e.replace(E, u).replace(x, u), e = e.replace(_, "\0");
5
- let c = 0, t = e.length;
6
- for (; e.charAt(c) === "\0"; )
7
- c++;
8
- if (c === t)
9
- return [];
10
- for (; e.charAt(t - 1) === "\0"; )
11
- t--;
12
- return e.slice(c, t).split(/\0/g);
13
- }
14
- function R(r) {
15
- const e = L(r);
16
- for (let c = 0; c < e.length; c++) {
17
- const t = e[c], l = P.exec(t);
18
- if (l) {
19
- const s = l.index + (l[1] ?? l[2]).length;
20
- e.splice(c, 1, t.slice(0, s), t.slice(s));
21
- }
22
- }
23
- return e;
24
- }
25
- function p(r, e) {
26
- const [c, t, l] = o(r, e), s = d(e == null ? void 0 : e.locale), a = C(e == null ? void 0 : e.locale), n = A(s, a);
27
- return c + t.map((f, h) => h === 0 ? n(f) : s(f)).join((e == null ? void 0 : e.delimiter) ?? " ") + l;
28
- }
29
- function d(r) {
30
- return r === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(r);
31
- }
32
- function C(r) {
33
- return r === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(r);
34
- }
35
- function A(r, e) {
36
- return (c) => `${e(c[0])}${r(c.slice(1))}`;
37
- }
38
- function o(r, e = {}) {
39
- const c = e.split ?? (e.separateNumbers ? R : L), t = e.prefixCharacters ?? i, l = e.suffixCharacters ?? i;
40
- let s = 0, a = r.length;
41
- for (; s < r.length; ) {
42
- const n = r.charAt(s);
43
- if (!t.includes(n))
44
- break;
45
- s++;
46
- }
47
- for (; a > s; ) {
48
- const n = a - 1, f = r.charAt(n);
49
- if (!l.includes(f))
50
- break;
51
- a = n;
52
- }
53
- return [
54
- r.slice(0, s),
55
- c(r.slice(s, a)),
56
- r.slice(a)
57
- ];
58
- }
59
- export {
60
- p as s
61
- };