@feedmepos/mf-connect 0.1.7-prod → 0.1.9-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 (70) hide show
  1. package/dist/{Analytic-BHUjWmWc.js → Analytic-8Ew7y5t9.js} +11 -10
  2. package/dist/{App-DAdGpI5T.js → App-3BVNH3r-.js} +6 -6
  3. package/dist/{Broadcast-dSC_IWRT.js → Broadcast-CrsPUhLT.js} +8 -8
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BYLjv_MC.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DE300Y56.js} +7 -8
  5. package/dist/Card-DndggRLr.js +1036 -0
  6. package/dist/{Collections-C5AwcMd2.js → Collections-djS9hLI8.js} +4 -4
  7. package/dist/{Credit-Mw2-ee1A.js → Credit-D4KEvIov.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-DBqGYQoP.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BjM81fmS.js} +25 -24
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DntdUZvW.js → EffectSheet.vue_vue_type_style_index_0_lang-aEWfdpCg.js} +7 -7
  11. package/dist/{Experience-Cneieb2k.js → Experience-2FPLO7aV.js} +8 -8
  12. package/dist/{Game-XO-w3IYe.js → Game-e_UjVJgU.js} +8 -8
  13. package/dist/{Marketing-WNiCzebg.js → Marketing-B2hCjZ2r.js} +5 -5
  14. package/dist/{Member-Cc2sLq_z.js → Member-D_ykRIBb.js} +4 -4
  15. package/dist/{MemberList-C9iVHMNN.js → MemberList-LmzzYxEn.js} +17 -18
  16. package/dist/{MemberTransactions-D2_hoAkF.js → MemberTransactions-B2vqlKaP.js} +1 -1
  17. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BG-RqK-c.js → MessageInput.vue_vue_type_script_setup_true_lang-DQ2ubF0N.js} +2 -2
  18. package/dist/{Mission-TWktiQ4z.js → Mission-CsLdMq1M.js} +8 -8
  19. package/dist/{Point-eD94WtKZ.js → Point-DFriwWWY.js} +8 -8
  20. package/dist/{Promotion-BVm2_c6F.js → Promotion-Db3IEs2F.js} +9 -9
  21. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-vme-OSpF.js → RuleGroup.vue_vue_type_script_setup_true_lang-_P2yImhi.js} +422 -380
  22. package/dist/{Segment-DDf44nYK.js → Segment-CE8q9JV2.js} +22 -21
  23. package/dist/{Setting-DBhakAQ9.js → Setting-Vcz1S27V.js} +8 -8
  24. package/dist/{Store-BxIKHQxH.js → Store-C8kT7JN5.js} +16 -15
  25. package/dist/{StoreRewards-GEg3D_yp.js → StoreRewards-Dt30AkWo.js} +15 -14
  26. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cc2F_06x.js +1065 -0
  27. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D_QbjkVF.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-f59onlgt.js} +1 -1
  28. package/dist/{Tier-bzoKkoGK.js → Tier-a6yXEtLd.js} +308 -296
  29. package/dist/{Title-C_655234.js → Title-A3-2EI0w.js} +210 -194
  30. package/dist/{Transaction-CO65XSq0.js → Transaction-DswABr2P.js} +2 -2
  31. package/dist/{Voucher-vMQztwvD.js → Voucher-DEoVgZYa.js} +11 -11
  32. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-ccc1vxjS.js +56 -0
  33. package/dist/{app-Rhn3A8yy.js → app-C23GfQGq.js} +1 -1
  34. package/dist/{app-BvmH1YQF.js → app-C66C2KLW.js} +30 -27
  35. package/dist/app.js +1 -1
  36. package/dist/{business-mSU6aNgB.js → business-DNAVZOSH.js} +1 -1
  37. package/dist/{campaign-CB8P_b1j.js → campaign-Cv0HaUD1.js} +2 -2
  38. package/dist/{collection.fn-xMtdil0c.js → collection.fn-Dxzr2oPt.js} +2 -2
  39. package/dist/{dto-BebECM0V.js → dto-CcrufW2j.js} +51 -51
  40. package/dist/{effect-kjeWRBoV.js → effect-CUuL8Tci.js} +1 -1
  41. package/dist/{email-addresses-DS30WNct.js → email-addresses-Yt3s7i2b.js} +1 -1
  42. package/dist/{export-Ckc3bUlY.js → export-CNg5YWMm.js} +3 -3
  43. package/dist/{helper-CGV9vPCE.js → helper-DzmKNFue.js} +1 -1
  44. package/dist/{index-C_fJ9N2I.js → index-9CXt2kbQ.js} +983 -783
  45. package/dist/{index-C0jOFgHh.js → index-B88e_9YI.js} +1 -1
  46. package/dist/{index-D8-_XalW.js → index-BK8X9RF6.js} +3 -3
  47. package/dist/{index-CuDehNVP.js → index-C7745kXl.js} +20 -21
  48. package/dist/{index-BAfqMFHL.js → index-CZ28ywyB.js} +2 -2
  49. package/dist/{index-CEzvwQKD.js → index-CsCgQ8gt.js} +1 -1
  50. package/dist/{index-D3LzGPEW.js → index-D0obMrAS.js} +63 -168
  51. package/dist/{index-Ct3rbI6P.js → index-Dnf7j71V.js} +9 -3
  52. package/dist/{index-CussemBD.js → index-O9lB54LY.js} +5 -5
  53. package/dist/{index-BCB-3g-3.js → index-QuBsnXgx.js} +1 -1
  54. package/dist/{index-BlLAyQkt.js → index-yzH5eyKW.js} +1 -1
  55. package/dist/{index.esm2017-C80DuMeI.js → index.esm2017-TpBElhnN.js} +1 -1
  56. package/dist/{loading-CjckWt50.js → loading-ChoC5E9d.js} +4 -4
  57. package/dist/{membership-DTNXBuUA.js → membership-CU-k0-Tf.js} +3 -3
  58. package/dist/{money-hcxWNxvM.js → money-DANmyTBj.js} +1 -1
  59. package/dist/{number-vCjVvxnh.js → number-DrocTWDD.js} +1 -1
  60. package/dist/{rule-DTf5dUoT.js → rule-BQLmpER9.js} +3 -3
  61. package/dist/{rule-builder-DNP54pwr.js → rule-builder-3YRdr18A.js} +1 -1
  62. package/dist/{template-DtZzRQzT.js → template-DOKU1QkY.js} +4 -4
  63. package/dist/{usePagination-BLFMf0Pz.js → usePagination-JGI7x0W7.js} +1 -1
  64. package/dist/{vue-i18n-I3aPtNi-.js → vue-i18n-Bch1JmhI.js} +204 -204
  65. package/dist/zod-Bg2FbC-D.js +90 -0
  66. package/package.json +1 -1
  67. package/dist/Card-CV--HQCf.js +0 -824
  68. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-0hsnAYU6.js +0 -890
  69. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-C-EjkZIX.js +0 -141
  70. package/dist/index-MzOjD6tJ.js +0 -207
@@ -1,141 +0,0 @@
1
- import { h as s, defineComponent as v, useAttrs as N, resolveComponent as O, openBlock as c, createBlock as x, mergeProps as _, unref as a, createSlots as k, withCtx as T, createElementVNode as f, toDisplayString as m, renderSlot as I, createElementBlock as R, createCommentVNode as U } from "vue";
2
- import { u as E } from "./vue-i18n-I3aPtNi-.js";
3
- function Z(e, t) {
4
- return e.path.join(".") === t;
5
- }
6
- function S(e, t) {
7
- return e.some((n) => t == "" || Z(n, t)) ? "error" : "none";
8
- }
9
- function z(e, t) {
10
- return e.filter((n) => t == "" || Z(n, t)).map((n) => n.message).join(",") || void 0;
11
- }
12
- const d = {
13
- ZodIntersection: (e) => e._def.typeName == "ZodIntersection",
14
- ZodNullable: (e) => e._def.typeName == "ZodNullable",
15
- ZodOptional: (e) => e._def.typeName == "ZodOptional",
16
- ZodEffects: (e) => e._def.typeName == "ZodEffects",
17
- ZodDiscriminatedUnion: (e) => e._def.typeName == "ZodDiscriminatedUnion",
18
- ZodUnion: (e) => e._def.typeName == "ZodUnion",
19
- ZodLazy: (e) => e._def.typeName == "ZodLazy",
20
- ZodRecord: (e) => e._def.typeName == "ZodRecord",
21
- ZodObject: (e) => e._def.typeName == "ZodObject"
22
- };
23
- function b(e) {
24
- return !(d.ZodNullable(e) || d.ZodOptional(e));
25
- }
26
- function i(e, t = []) {
27
- function n(r) {
28
- const o = [r._def.left, r._def.right];
29
- return d.ZodObject(o[0]) && d.ZodObject(o[1]) ? Object.keys(o[0].shape).length > Object.keys(o[1].shape).length ? o[0] : o[1] : o.find((l) => d.ZodDiscriminatedUnion(l)) || o.find((l) => d.ZodObject(l)) || o[1];
30
- }
31
- if ((d.ZodNullable(e) || d.ZodOptional(e)) && (e = i(e.unwrap(), t)), d.ZodEffects(e) && (e = i(e.sourceType(), t)), d.ZodDiscriminatedUnion(e)) {
32
- const r = Object.fromEntries(e.optionsMap.entries());
33
- if (t.length) {
34
- const o = t.shift(), l = r[o];
35
- return i(l, t);
36
- }
37
- return console.log(
38
- "discriminatedUnion found but no KEY supplied, keys:",
39
- Object.keys(r)
40
- ), e;
41
- }
42
- return d.ZodLazy(e) && (e = i(e._def.getter(), t)), d.ZodIntersection(e) && (e = i(n(e), t)), e;
43
- }
44
- function g(e, t, n = []) {
45
- return t === "" ? i(e, n) : t.split(".").reduce((r, o) => {
46
- const l = i(r, n);
47
- return d.ZodObject(l) ? l.shape[o] : r;
48
- }, e);
49
- }
50
- function h(e, t) {
51
- return (n) => {
52
- const r = e.safeParse(n);
53
- return r.success ? !0 : (console.log(r.error.errors), r.error.errors.filter((o) => !t || o.path.join(".") === t).map((o) => o.message).join(", "));
54
- };
55
- }
56
- function L(e, t, n = []) {
57
- return h(g(e, t, n));
58
- }
59
- function P(e, t) {
60
- if (!t) return;
61
- const n = b(e) ? "hidden" : "";
62
- return s(
63
- "div",
64
- { class: "flex items-center gap-x-4 fm-typo-en-body-lg-400" },
65
- [
66
- s("div", t),
67
- s(
68
- "div",
69
- {
70
- class: `text-fm-color-typo-secondary ${n}`
71
- },
72
- "(optional)"
73
- )
74
- ]
75
- );
76
- }
77
- const p = {
78
- helperState: S,
79
- helperText: z,
80
- typeAtPath: g,
81
- toRule: h,
82
- ruleAtPath: L,
83
- isRequired: b,
84
- toInputLabel: P,
85
- unwrap: i
86
- }, V = { class: "fm-typo-en-body-lg-400 flex gap-4 text-fm-color-typo-primary items-center" }, A = {
87
- key: 0,
88
- class: "text-fm-color-typo-tertiary"
89
- }, q = /* @__PURE__ */ v({
90
- __name: "ZodTextField",
91
- props: {
92
- label: {
93
- type: String,
94
- required: !1
95
- },
96
- schema: {
97
- type: Object,
98
- required: !0
99
- },
100
- modelValue: {
101
- type: String
102
- },
103
- disabled: {
104
- type: Boolean,
105
- default: !1
106
- }
107
- },
108
- emits: ["update:model-value", "focus-changed"],
109
- setup(e, { emit: t }) {
110
- const { t: n } = E(), r = t, o = N();
111
- return (l, u) => {
112
- const y = O("FmTextField");
113
- return c(), x(y, _({
114
- "model-value": e.modelValue,
115
- "onUpdate:modelValue": u[0] || (u[0] = (j) => r("update:model-value", j)),
116
- disabled: e.disabled
117
- }, a(o), {
118
- rules: [a(p).toRule(e.schema)]
119
- }), k({ _: 2 }, [
120
- e.label ? {
121
- name: "label",
122
- fn: T(() => [
123
- f("div", V, [
124
- f("div", null, m(e.label), 1),
125
- I(l.$slots, "append-label", {}, () => [
126
- a(p).isRequired(e.schema) ? U("", !0) : (c(), R("div", A, m(a(n)("connect.common.optional")), 1))
127
- ])
128
- ])
129
- ]),
130
- key: "0"
131
- } : void 0
132
- ]), 1040, ["model-value", "disabled", "rules"]);
133
- };
134
- }
135
- });
136
- export {
137
- p as Z,
138
- q as _,
139
- z as a,
140
- S as g
141
- };
@@ -1,207 +0,0 @@
1
- import { z as o, F as e, m as r } from "./loading-CjckWt50.js";
2
- import { n as d, o as u, p as m, m as a } from "./index-CussemBD.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
- };