@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.
Files changed (94) hide show
  1. package/dist/{Analytic-C5DiiAlc.js → Analytic-CpSbitWV.js} +24 -22
  2. package/dist/{App-B3pHa-zu.js → App-BPT8XzjX.js} +56 -51
  3. package/dist/{Broadcast-BbKiYeZC.js → Broadcast-CJHpiQeN.js} +8 -8
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CusmGpDT.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DUPqWdIm.js} +7 -8
  5. package/dist/Card-Bvn36zqZ.js +895 -0
  6. package/dist/{Collections-DvZEXknp.js → Collections-Bq6OxsJC.js} +24 -29
  7. package/dist/{Credit-CqjSUWeG.js → Credit-Dno_g7dW.js} +8 -8
  8. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
  9. 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
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-C73wNCE4.js → EffectSheet.vue_vue_type_style_index_0_lang-Ho7zwlbb.js} +20 -20
  11. package/dist/{Experience-BmCrc4-K.js → Experience-BC1qSIGO.js} +8 -8
  12. package/dist/{Game-CU4AHASb.js → Game-C_CKGMBW.js} +8 -8
  13. package/dist/Index-BXFaWTfw.js +255 -0
  14. package/dist/{Marketing-PJO3M5Xy.js → Marketing-Ni0WAie5.js} +5 -5
  15. package/dist/{Member-DChbb26Z.js → Member-djnisrK1.js} +4 -4
  16. package/dist/{MemberList-Ckvxgme7.js → MemberList-CclU-3B7.js} +194 -191
  17. package/dist/{MemberTransactions-KNlKr1DE.js → MemberTransactions-DVVsv3Ux.js} +1 -1
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CDX1qdOw.js → MessageInput.vue_vue_type_script_setup_true_lang-khyDg1m4.js} +2 -2
  19. package/dist/Mission-Z5somdo_.js +273 -0
  20. package/dist/Overview-BvMVz3lQ.js +1074 -0
  21. package/dist/{Point-B-Ot-ZXU.js → Point-DdPukiTg.js} +8 -8
  22. package/dist/{Promotion-CKEfuwo0.js → Promotion-DCqdIwjG.js} +9 -9
  23. package/dist/Record-CvMxXm1B.js +337 -0
  24. package/dist/Reward-CiJHGXfQ.js +441 -0
  25. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-CrGCBRmH.js +150 -0
  26. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-tnT6i0Jq.js +1638 -0
  27. package/dist/{Segment-B8JKn5_y.js → Segment-CQb3j-o0.js} +22 -21
  28. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-B7YqIU5D.js +181 -0
  29. package/dist/{Setting-BcWDJ-63.js → Setting-91cK3ssU.js} +31 -31
  30. package/dist/Store-B-uldUKt.js +1744 -0
  31. package/dist/{StoreRewards-DyfFecSH.js → StoreRewards-dDNeFlA9.js} +15 -14
  32. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BVb1X0aq.js +1132 -0
  33. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CHrZ7pit.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Ds0WxGxr.js} +1 -1
  34. package/dist/{Tier-iKOv9e2Y.js → Tier-_jMaLj3u.js} +185 -185
  35. package/dist/{Title-BRWnLlHd.js → Title-By7o67aT.js} +20 -20
  36. package/dist/{Transaction-BMnxATxc.js → Transaction-BLpEgeI2.js} +2 -2
  37. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Bf_nO9zH.js +130 -0
  38. package/dist/{Voucher-B_IwtXLW.js → Voucher-CG5tfibn.js} +11 -11
  39. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DpQUoXyQ.js +419 -0
  40. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-YwGR2En3.js +56 -0
  41. package/dist/{app-Bs8TZeMP.js → app-DDmTqTb7.js} +1 -1
  42. package/dist/{app-CLPpu6jA.js → app-vCqTQIeC.js} +430 -276
  43. package/dist/app.js +1 -1
  44. package/dist/{business-Dg5T3krT.js → business-Cz78KGF2.js} +1 -1
  45. package/dist/{campaign-BMLeXfnZ.js → campaign-BBd4o7F_.js} +2 -2
  46. package/dist/campaign.enum-CIhi0b-m.js +20 -0
  47. package/dist/campaign.fn-5silF1DK.js +758 -0
  48. package/dist/collectible.enum-cMIQ6ogq.js +19 -0
  49. package/dist/{collection.fn-D4QJRMAS.js → collection.fn-BGc7Qeli.js} +2 -2
  50. package/dist/dto-i04OPJfW.js +2018 -0
  51. package/dist/{effect-BT6zDeUe.js → effect-D8UzkYRg.js} +1 -1
  52. package/dist/{email-addresses-DeUE8GFC.js → email-addresses-u05o35hN.js} +1 -1
  53. package/dist/{export-DWzBynN8.js → export-BEXuPYEd.js} +3 -3
  54. package/dist/{helper-Cs4YpYv9.js → helper-RptRJGv6.js} +1 -1
  55. package/dist/{index-aFNPEkUz.js → index-B8s-gucK.js} +13 -1
  56. package/dist/{index-B3GqF_vh.js → index-BjHZUhiH.js} +1 -1
  57. package/dist/{index-BUXB-qmB.js → index-Bpu2DYUc.js} +1348 -1342
  58. package/dist/{index-n-_5f43h.js → index-C6-rCMhD.js} +3 -3
  59. package/dist/{index-CjF0scjl.js → index-Cq_ZIbRm.js} +174 -168
  60. package/dist/{index-CiwzD983.js → index-DFAnoAe9.js} +1 -1
  61. package/dist/index-DbyJ6Nyn.js +54 -0
  62. package/dist/{index-BXs-tqST.js → index-Dt6K2eG8.js} +1 -1
  63. package/dist/{index-xCMvgFRa.js → index-DwzoqCt8.js} +989 -783
  64. package/dist/index-UfL5qRzR.js +1049 -0
  65. package/dist/index-g8EbRVnr.js +32 -0
  66. package/dist/{index-DfhJOhMY.js → index-hEE_ntHd.js} +1 -1
  67. package/dist/index-vh86FiIQ.js +10 -0
  68. package/dist/{index.esm2017-cme_1dHU.js → index.esm2017-BSzW_yaL.js} +1 -1
  69. package/dist/{loading-zw44FQ6v.js → loading-DjEdwdnj.js} +156 -153
  70. package/dist/{membership-Bg77E5Sx.js → membership-BL9Xs8lD.js} +52 -44
  71. package/dist/{money-BepQPzrc.js → money-D7lq0cx-.js} +1 -1
  72. package/dist/{number-BJ4XIfGj.js → number-BiDabTkI.js} +1 -1
  73. package/dist/objectid-CXf0jb1W.js +145 -0
  74. package/dist/reward-Cr8rbe5R.js +36 -0
  75. package/dist/{rule-builder-C1Jwhs7N.js → rule-builder-DPKFZ5UX.js} +1 -1
  76. package/dist/{rule-oDZ1Kic9.js → rule-vkYJij4h.js} +4 -3
  77. package/dist/{template-CSeRj8B2.js → template-Bep5Y5ch.js} +4 -4
  78. package/dist/trigger-fWhQ3bqv.js +144 -0
  79. package/dist/{usePagination-DUaGlE2s.js → usePagination-DSF5b4hM.js} +1 -1
  80. package/dist/user-9UiaP0xs.js +54 -0
  81. package/dist/{vue-i18n-4eZqYBzI.js → vue-i18n-BhiDOB1j.js} +112 -112
  82. package/dist/zod-Bg2FbC-D.js +90 -0
  83. package/package.json +2 -2
  84. package/dist/Card--Q4OMSRz.js +0 -824
  85. package/dist/Mission-B215NI_F.js +0 -261
  86. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-C03bKqvg.js +0 -1804
  87. package/dist/Store-ada-EZLR.js +0 -1530
  88. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Ra4nMKvT.js +0 -890
  89. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-vsgeD3mK.js +0 -141
  90. package/dist/dto-CQy53qRe.js +0 -2770
  91. package/dist/index-CvJ_6M8U.js +0 -298
  92. package/dist/index-QAuJWbpX.js +0 -756
  93. package/dist/index-sGtk4oiO.js +0 -207
  94. package/dist/user-Bm4KttFq.js +0 -37
@@ -1,207 +0,0 @@
1
- import { z as o, F as e, m as r } from "./loading-zw44FQ6v.js";
2
- import { n as d, o as u, p as m, m as a } from "./index-BUXB-qmB.js";
3
- const b = o.enum([
4
- "PORTAL",
5
- "BENEFIT",
6
- "STORE",
7
- "ORDER",
8
- "BILL",
9
- "BILL_DISCOUNT",
10
- "CASHBACK",
11
- "FEEDBACK",
12
- "CYCLE",
13
- "COUNTER",
14
- "GAME",
15
- "COUNTER_CONSUME",
16
- "STAMP_REWARD",
17
- "STAMP_CARRY_FORWARD",
18
- "STAMP_MAX_REACHED",
19
- "POS_CLAIM",
20
- "MEMBER_APP-CLAIM",
21
- "MEMBER_APP-TRANSFER",
22
- "FEEDVIBE_APP-CLAIM"
23
- ]), i = o.string(), l = o.record(o.string(), o.any()).nullish(), p = {
24
- collectionName: "Transactions",
25
- transform: {
26
- _id: "oid",
27
- user: "oid",
28
- collectible: "oid",
29
- collection: "oid",
30
- business: "oid",
31
- refundedFrom: "oid"
32
- },
33
- lookups: {
34
- user: {
35
- fromCollection: "UsersV2",
36
- as: "pf_user"
37
- },
38
- collectible: {
39
- fromCollection: "CollectibleConfigs",
40
- as: "pf_collectible"
41
- }
42
- }
43
- }, _ = o.object({
44
- _id: e,
45
- user: e.nullable(),
46
- collectible: e,
47
- collection: e,
48
- business: e,
49
- amount: o.number(),
50
- expiryAmount: o.array(o.lazy(() => c)),
51
- from: o.lazy(() => t),
52
- to: o.lazy(() => t),
53
- source: i,
54
- ref: o.string(),
55
- refunded: o.boolean().optional(),
56
- refundedFrom: e.optional(),
57
- metadata: l,
58
- createdAt: o.coerce.date().optional(),
59
- pf_user: o.any().optional(),
60
- pf_collectible: o.any().optional(),
61
- pf_collection: o.any().optional(),
62
- totalAmount: o.number().optional()
63
- }).describe(r.describe(p));
64
- o.object({
65
- amount: o.number(),
66
- expiryAmount: o.array(o.lazy(() => c)),
67
- collection: o.lazy(() => f),
68
- source: i,
69
- ref: o.string(),
70
- from: o.lazy(() => t).optional(),
71
- to: o.lazy(() => t),
72
- metadata: l,
73
- refunded: o.boolean().optional(),
74
- refundedFrom: e.optional()
75
- });
76
- o.object({
77
- id: o.string()
78
- });
79
- b.options;
80
- const s = o.enum(["NORMAL", "EXPIRABLE"]), c = o.object({
81
- _id: e,
82
- amount: o.number(),
83
- expiredAt: o.coerce.date()
84
- }), t = o.object({
85
- balance: o.number(),
86
- expiryBalance: o.array(c).optional()
87
- }), C = {
88
- collectionName: "Collections",
89
- transform: {
90
- _id: "oid",
91
- business: "oid",
92
- collectible: "oid",
93
- user: "oid",
94
- deactivatedAt: "date"
95
- },
96
- lookups: {
97
- user: {
98
- as: "pf_user",
99
- fromCollection: "UsersV2"
100
- },
101
- collectible: {
102
- as: "pf_collectible",
103
- fromCollection: "CollectibleConfigs"
104
- }
105
- }
106
- }, f = o.object({
107
- _id: e,
108
- business: e,
109
- user: e.nullish(),
110
- code: o.string().optional(),
111
- collectible: e,
112
- type: d,
113
- extras: u.nullish(),
114
- options: m,
115
- ref: o.string().nullish(),
116
- deactivatedAt: o.date().nullish(),
117
- pf_user: o.any().optional(),
118
- pf_collectible: o.any().optional(),
119
- pf_campaign: o.any().optional()
120
- }).merge(t).describe(r.describe(C)), n = o.object({
121
- amount: o.number(),
122
- ref: o.string(),
123
- source: i,
124
- metadata: l
125
- });
126
- n.extend({
127
- code: o.string().optional(),
128
- collectible: e,
129
- channelConfig: a.nullish(),
130
- business: e,
131
- user: e.nullable()
132
- });
133
- n.extend({
134
- codes: o.array(o.string()),
135
- collectible: e,
136
- channelConfig: a.nullish(),
137
- business: e,
138
- user: e.nullable()
139
- });
140
- n.extend({
141
- user: e,
142
- business: e,
143
- collectible: e
144
- });
145
- n.extend({
146
- id: e,
147
- code: o.string().optional(),
148
- type: s.optional(),
149
- skipValidateOption: o.boolean().optional()
150
- });
151
- o.object({
152
- collection: e,
153
- to: e,
154
- ref: o.string(),
155
- source: i,
156
- metadata: l
157
- });
158
- const g = o.object({
159
- length: o.coerce.number().optional(),
160
- charset: o.string(),
161
- prefix: o.string().optional(),
162
- suffix: o.string().optional(),
163
- pattern: o.string().optional()
164
- });
165
- o.object({
166
- quantity: o.number(),
167
- code: o.string(),
168
- codeConfig: g
169
- });
170
- const F = o.object({
171
- amount: o.coerce.number().min(1).max(1e7).multipleOf(0.01, "Amount must be maximum of two decimal places (0.00)"),
172
- day: o.coerce.number().min(1).max(9999),
173
- remark: o.string().optional()
174
- }), y = o.object({
175
- amount: o.coerce.number().min(1),
176
- remark: o.string().optional()
177
- }), R = o.object({
178
- amount: o.coerce.number().min(1),
179
- day: o.coerce.number().min(1).max(9999).optional(),
180
- remark: o.string().optional()
181
- }), x = o.object({
182
- amount: o.coerce.number().min(1),
183
- remark: o.string().optional()
184
- });
185
- n.extend({
186
- business: o.string(),
187
- user: o.string(),
188
- type: s.optional()
189
- });
190
- n.extend({
191
- business: o.string(),
192
- user: o.string(),
193
- channelConfig: a.nullish()
194
- });
195
- o.object({
196
- memberId: o.array(e)
197
- });
198
- export {
199
- R as F,
200
- F as a,
201
- x as b,
202
- y as c,
203
- _ as d,
204
- f as e,
205
- b as f,
206
- t as g
207
- };
@@ -1,37 +0,0 @@
1
- import { components as p } from "@feedmepos/ui-library";
2
- import { h as m } from "vue";
3
- function d(n) {
4
- return m(
5
- "div",
6
- {
7
- class: "flex items-center gap-x-8"
8
- },
9
- [
10
- m(p.FmAvatar, {
11
- name: n != null && n.photoUrl ? "-" : n == null ? void 0 : n.name,
12
- src: (n == null ? void 0 : n.photoUrl) ?? void 0,
13
- size: "sm"
14
- }),
15
- m("span", n == null ? void 0 : n.name)
16
- ]
17
- );
18
- }
19
- function g(n, o) {
20
- var l, a;
21
- return ((a = (l = n.collection) == null ? void 0 : l.TITLE) == null ? void 0 : a.map(
22
- (t) => {
23
- var c;
24
- return (c = o == null ? void 0 : o.find((i) => i._id === t.collectible)) == null ? void 0 : c.name;
25
- }
26
- ).join(", ")) || "-";
27
- }
28
- function T(n, o) {
29
- var a, t, c, i;
30
- const l = (((c = (t = (a = n.collection) == null ? void 0 : a.TIER) == null ? void 0 : t[0]) == null ? void 0 : c.balance) || 0) - 1;
31
- return ((i = o[l]) == null ? void 0 : i.name) || "-";
32
- }
33
- export {
34
- T as a,
35
- g as b,
36
- d as g
37
- };