@feedmepos/mf-connect 0.0.39-prod → 0.1.0-beta.2

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 (101) hide show
  1. package/dist/Analytic-DSD9TsKr.js +622 -0
  2. package/dist/{App-X3fNEBF3.js → App-D8a5eW51.js} +250 -249
  3. package/dist/Broadcast-C8jgMe6g.js +223 -0
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CRYS_tzZ.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-pG8WvV4I.js} +20 -20
  5. package/dist/Card-C1K7ULPo.js +825 -0
  6. package/dist/Collections-lMrdPUuM.js +453 -0
  7. package/dist/Credit-CJfU5tP4.js +220 -0
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DoZyevfa.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYoaa_-x.js} +1042 -1011
  9. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CzEtOmp0.js +345 -0
  10. package/dist/Experience-Bp2ki8gU.js +221 -0
  11. package/dist/Game-BpTf6ebE.js +255 -0
  12. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
  13. package/dist/{MainLayout-DpZC6o3R.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js} +19 -53
  14. package/dist/MainLayout-B1aJoR95.js +41 -0
  15. package/dist/Marketing-BiKE2gxA.js +316 -0
  16. package/dist/Member-BSWyy32a.js +69 -0
  17. package/dist/MemberList-CHlGREyR.js +1733 -0
  18. package/dist/MemberOverview-wL_ailso.js +58 -0
  19. package/dist/{MemberTransactions-DueaXBCy.js → MemberTransactions-BzHiXCnp.js} +1 -1
  20. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-e-zWg08J.js +432 -0
  21. package/dist/Mission-8IGT3T2C.js +261 -0
  22. package/dist/Point-CbbJ6ohd.js +222 -0
  23. package/dist/Promotion-BYXCJa_S.js +247 -0
  24. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-_RX1J0Br.js → RuleGroup.vue_vue_type_script_setup_true_lang-Bruh-umZ.js} +557 -557
  25. package/dist/Segment-DXDNM0yd.js +437 -0
  26. package/dist/Setting-CLpvvZTv.js +1901 -0
  27. package/dist/Store-C6-P6bwc.js +1511 -0
  28. package/dist/StoreRewards-CUM2irXK.js +401 -0
  29. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CLFiuO5k.js → StoreTransactions.vue_vue_type_script_setup_true_lang-JaRdmqif.js} +10 -10
  30. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CoMQBL4P.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DEb4OBcX.js} +1 -1
  31. package/dist/{Tier-CftEoP_R.js → Tier-DZTDxWBo.js} +481 -453
  32. package/dist/{Title-BsavXbYh.js → Title-C2Dr5ceK.js} +314 -295
  33. package/dist/Transaction-BL4mS29d.js +39 -0
  34. package/dist/Voucher-Cx0r2-df.js +490 -0
  35. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-DWuAODUF.js +56 -0
  36. package/dist/{app-BNmAx3zq.js → app-B_xuZ5HB.js} +1 -1
  37. package/dist/app-wE5HTF_Y.js +5762 -0
  38. package/dist/app.js +5 -3
  39. package/dist/{business-DGL4Ayx0.js → business-DSv8zM8C.js} +1 -1
  40. package/dist/{campaign-D94sS1kM.js → campaign-7y5qquHZ.js} +5 -3
  41. package/dist/{collection.fn-BHJ1ISqO.js → collection.fn-BxVZQAx0.js} +2 -2
  42. package/dist/dto-Ew1QwLci.js +2778 -0
  43. package/dist/{effect-CFRICzlM.js → effect-BzPh8fRI.js} +9 -9
  44. package/dist/{export-w2o9NYcy.js → export-C9tDplkA.js} +3 -3
  45. package/dist/{helper-CUDWQ8vq.js → helper-Sz7oQ0F4.js} +1 -1
  46. package/dist/{index-BGuLhEym.js → index-BQm0C3Jm.js} +3 -3
  47. package/dist/{index-BjwyxNSp.js → index-C-SOz7jt.js} +1 -1
  48. package/dist/{index-BcWJcD9f.js → index-C0lpADCo.js} +1 -1
  49. package/dist/{index-DIq2KVis.js → index-C3_4GUiI.js} +1 -1
  50. package/dist/{index-BPEV5Tzg.js → index-D-2nFLsg.js} +59 -47
  51. package/dist/{index-CFMBSL24.js → index-DBMaUGYI.js} +2 -2
  52. package/dist/{index-CpwFQFTV.js → index-DH_1nOJ_.js} +3 -3
  53. package/dist/index-Dy4pmQpt.js +29193 -0
  54. package/dist/{index-BQ6isIeo.js → index-_3qBsogG.js} +1 -1
  55. package/dist/index-gIRszcHf.js +3 -0
  56. package/dist/{index-VjUw31dN.js → index-tv4t0Pnh.js} +1 -1
  57. package/dist/{index-tZ1aqhks.js → index-z0IfdrZk.js} +319 -281
  58. package/dist/{index.esm2017-zciuPty-.js → index.esm2017-BnKJDxUo.js} +55 -55
  59. package/dist/{loading-GuXe5bYG.js → loading-Ds-yFYhc.js} +469 -460
  60. package/dist/{membership-BHWJVI3e.js → membership-DaiVw9qF.js} +3 -3
  61. package/dist/money-BHtBdZoz.js +15 -0
  62. package/dist/number-CZhcB8ef.js +12 -0
  63. package/dist/{rule-MgNa_8FF.js → rule-Cd2M6Ri2.js} +2 -2
  64. package/dist/{rule-builder-BsBCWzq_.js → rule-builder-B6og27Q1.js} +1 -1
  65. package/dist/style.css +1 -1
  66. package/dist/{template-D6k3lusq.js → template-DouRWBpv.js} +63 -63
  67. package/dist/{usePagination-JoYaROkV.js → usePagination-BeF5K3M7.js} +85 -85
  68. package/dist/vue-i18n-BTlOChXs.js +2365 -0
  69. package/dist/{xlsx-ClrA4KOh.js → xlsx-SahfXQ70.js} +517 -517
  70. package/dist/zod-Bg2FbC-D.js +90 -0
  71. package/package.json +7 -4
  72. package/dist/Analytic-DMFueUju.js +0 -620
  73. package/dist/Broadcast-YIfWIXeA.js +0 -216
  74. package/dist/Card-BIxlgQm7.js +0 -824
  75. package/dist/Collections-M6DaHM2W.js +0 -441
  76. package/dist/Credit-BtRy-xoY.js +0 -214
  77. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-D5DNTBSQ.js +0 -344
  78. package/dist/Experience-DGm1lnqj.js +0 -211
  79. package/dist/Game-B8-lG7qq.js +0 -250
  80. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
  81. package/dist/Marketing-DtG3AIWr.js +0 -309
  82. package/dist/Member-K443-9Vy.js +0 -92
  83. package/dist/MemberList-CYXHXFTL.js +0 -1735
  84. package/dist/MemberOverview-C2n9oJZh.js +0 -58
  85. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Bk2HLVmt.js +0 -203
  86. package/dist/Mission-CN5umXXA.js +0 -248
  87. package/dist/Point-XAm6H2p_.js +0 -220
  88. package/dist/Promotion-DsrA4KiE.js +0 -244
  89. package/dist/Segment-CZGGHoAu.js +0 -435
  90. package/dist/Setting-BjfxLKyp.js +0 -1870
  91. package/dist/Store-D_B-vhh3.js +0 -1513
  92. package/dist/StoreRewards-BjHffUKj.js +0 -429
  93. package/dist/Transaction-CdxzoKDG.js +0 -36
  94. package/dist/Voucher-B_9Nv1Mr.js +0 -485
  95. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +0 -140
  96. package/dist/app--1Ks5Hms.js +0 -2974
  97. package/dist/dto-X0Eeujxx.js +0 -1151
  98. package/dist/index-BPNG8N-w.js +0 -11
  99. package/dist/index-DWM9MWGj.js +0 -28058
  100. package/dist/money-CrttVpCp.js +0 -15
  101. package/dist/number-CIndGU4O.js +0 -12
@@ -1,16 +1,16 @@
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-GuXe5bYG.js";
3
- import "./index-BQ6isIeo.js";
4
- import { R as a } from "./rule-builder-BsBCWzq_.js";
5
- import { i as o } from "./helper-CUDWQ8vq.js";
6
- import { b as K, c as j } from "./index-CFMBSL24.js";
7
- const W = {
1
+ import { defineComponent as V, ref as G, resolveComponent as s, openBlock as p, createBlock as O, unref as I, withCtx as g, renderSlot as L, createElementBlock as d, toDisplayString as u, createCommentVNode as H, createVNode as h, normalizeClass as x, createElementVNode as k, Fragment as Y, renderList as j } from "vue";
2
+ import { z as e, F as c, m as f } from "./loading-Ds-yFYhc.js";
3
+ import "./index-_3qBsogG.js";
4
+ import { R as t } from "./rule-builder-B6og27Q1.js";
5
+ import { i as o } from "./helper-Sz7oQ0F4.js";
6
+ import { b as K, c as W } from "./index-DBMaUGYI.js";
7
+ const X = {
8
8
  key: 0,
9
9
  class: "fm-typo-en-body-lg-400 mb-4"
10
- }, X = {
10
+ }, q = {
11
11
  key: 1,
12
12
  class: "fm-typo-en-body-lg-400"
13
- }, q = { class: "rounded-md bg-white shadow-md max-h-[300px] overflow-y-scroll pl-4 py-12" }, ue = /* @__PURE__ */ U({
13
+ }, z = { class: "rounded-md bg-white shadow-md max-h-[300px] overflow-y-scroll pl-4 py-12" }, _e = /* @__PURE__ */ V({
14
14
  __name: "CustomSelect",
15
15
  props: {
16
16
  label: {
@@ -36,41 +36,41 @@ const W = {
36
36
  }
37
37
  },
38
38
  emits: ["update:model-value"],
39
- setup(t, { emit: N }) {
40
- const v = N, s = B(!1);
41
- return (b, _) => {
42
- const M = c("FmIcon"), w = c("FmField"), A = c("FmMenuItem"), F = c("FmPopover");
43
- return r(), C(F, {
44
- "show-popover": O(s),
45
- onPopoverChanged: _[0] || (_[0] = (i) => s.value = i),
46
- "z-index": t.zIndex
39
+ setup(n, { emit: w }) {
40
+ const _ = w, m = G(!1);
41
+ return (v, b) => {
42
+ const N = s("FmIcon"), U = s("FmField"), F = s("FmMenuItem"), B = s("FmPopover");
43
+ return p(), O(B, {
44
+ "show-popover": I(m),
45
+ onPopoverChanged: b[0] || (b[0] = (a) => m.value = a),
46
+ "z-index": n.zIndex
47
47
  }, {
48
48
  "popover-button": g(() => [
49
- T(b.$slots, "popover-button", {}, () => [
50
- t.label ? (r(), d("div", W, u(t.label), 1)) : P("", !0),
51
- I(w, null, {
49
+ L(v.$slots, "popover-button", {}, () => [
50
+ n.label ? (p(), d("div", X, u(n.label), 1)) : H("", !0),
51
+ h(U, null, {
52
52
  append: g(() => [
53
- T(b.$slots, "append"),
54
- I(M, {
55
- name: O(s) ? "expand_less" : "expand_more",
53
+ L(v.$slots, "append"),
54
+ h(N, {
55
+ name: I(m) ? "expand_less" : "expand_more",
56
56
  size: "md",
57
57
  color: "black"
58
58
  }, null, 8, ["name"])
59
59
  ]),
60
60
  default: g(() => {
61
- var i;
61
+ var a;
62
62
  return [
63
- t.multiselect ? (r(), d("div", X, u(t.items.filter((n) => {
64
- var p;
65
- return (p = t.modelValue) == null ? void 0 : p.includes(n.value);
66
- }).map((n) => n.label).join(", ")), 1)) : (r(), d("div", {
63
+ n.multiselect ? (p(), d("div", q, u(n.items.filter((i) => {
64
+ var r;
65
+ return (r = n.modelValue) == null ? void 0 : r.includes(i.value);
66
+ }).map((i) => i.label).join(", ")), 1)) : (p(), d("div", {
67
67
  key: 0,
68
- class: L(["fm-typo-en-body-lg-400", {
69
- "text-fm-color-typo-secondary": !t.items.find(
70
- (n) => n.value == t.modelValue
68
+ class: x(["fm-typo-en-body-lg-400", {
69
+ "text-fm-color-typo-secondary": !n.items.find(
70
+ (i) => i.value == n.modelValue
71
71
  )
72
72
  }])
73
- }, u(((i = t.items.find((n) => n.value == t.modelValue)) == null ? void 0 : i.label) || t.placeholder), 3))
73
+ }, u(((a = n.items.find((i) => i.value == n.modelValue)) == null ? void 0 : a.label) || n.placeholder), 3))
74
74
  ];
75
75
  }),
76
76
  _: 3
@@ -78,24 +78,24 @@ const W = {
78
78
  ])
79
79
  ]),
80
80
  default: g(() => [
81
- H("div", q, [
82
- (r(!0), d(k, null, Y(t.items, (i) => {
83
- var n, p;
84
- return r(), C(A, {
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
- "has-checkbox": t.multiselect,
87
- key: i.value,
88
- "model-value": t.multiselect ? (p = t.modelValue) == null ? void 0 : p.some((l) => l == i.value) : t.modelValue == i.value,
89
- label: i.label,
81
+ k("div", z, [
82
+ (p(!0), d(Y, null, j(n.items, (a) => {
83
+ var i, r;
84
+ return p(), O(F, {
85
+ class: x(`${n.multiselect ? (i = n.modelValue) != null && i.some((l) => l == a.value) ? "bg-fm-color-system-warning-100" : "" : n.modelValue == a.value}`),
86
+ "has-checkbox": n.multiselect,
87
+ key: a.value,
88
+ "model-value": n.multiselect ? (r = n.modelValue) == null ? void 0 : r.some((l) => l == a.value) : n.modelValue == a.value,
89
+ label: a.label,
90
90
  onClick: (l) => {
91
91
  var E;
92
- if (l.stopPropagation(), !t.multiselect)
93
- s.value = !1, v("update:model-value", i.value);
92
+ if (l.stopPropagation(), !n.multiselect)
93
+ m.value = !1, _("update:model-value", a.value);
94
94
  else {
95
- const V = (E = t.modelValue) == null ? void 0 : E.some((y) => y == i.value);
96
- v(
95
+ const P = (E = n.modelValue) == null ? void 0 : E.some((y) => y == a.value);
96
+ _(
97
97
  "update:model-value",
98
- V ? (t.modelValue ?? []).filter((y) => y !== i.value) : [...t.modelValue ?? [], i.value]
98
+ P ? (n.modelValue ?? []).filter((y) => y !== a.value) : [...n.modelValue ?? [], a.value]
99
99
  );
100
100
  }
101
101
  }
@@ -107,36 +107,36 @@ const W = {
107
107
  }, 8, ["show-popover", "z-index"]);
108
108
  };
109
109
  }
110
- }), fe = {
110
+ }), ve = {
111
111
  PROMOTION: {
112
112
  name: "Promotion Template",
113
113
  description: "Promotion template for campaign creation.",
114
114
  steps: [
115
115
  {
116
- name: "General information",
116
+ name: "connect.template.general_information",
117
117
  groups: [
118
118
  {
119
- name: "General",
119
+ name: "connect.template.general",
120
120
  fields: [
121
121
  {
122
- label: "Campaign name",
122
+ label: "connect.template.campaign_name",
123
123
  property: "campaign.name",
124
124
  type: "text"
125
125
  },
126
126
  {
127
- label: "Campaign description",
127
+ label: "connect.template.campaign_description",
128
128
  property: "campaign.description",
129
129
  type: "textarea"
130
130
  },
131
131
  {
132
- label: "Campaign period",
132
+ label: "connect.template.campaign_period",
133
133
  property: "campaign.timeframeOptions",
134
134
  type: "timeframe"
135
135
  }
136
136
  ]
137
137
  },
138
138
  {
139
- name: "Trigger",
139
+ name: "connect.template.trigger",
140
140
  fields: [
141
141
  {
142
142
  label: void 0,
@@ -149,10 +149,10 @@ const W = {
149
149
  ]
150
150
  },
151
151
  {
152
- name: "Discount",
152
+ name: "connect.template.discount",
153
153
  groups: [
154
154
  {
155
- name: "Discount",
155
+ name: "connect.template.discount",
156
156
  fields: [
157
157
  {
158
158
  label: void 0,
@@ -160,14 +160,34 @@ const W = {
160
160
  type: "effect"
161
161
  }
162
162
  ]
163
+ },
164
+ {
165
+ name: "connect.template.voucher_detail",
166
+ fields: [
167
+ {
168
+ label: "connect.template.voucher_name",
169
+ property: "configs.name",
170
+ type: "text"
171
+ },
172
+ {
173
+ label: "connect.template.voucher_description",
174
+ property: "configs.description",
175
+ type: "textarea"
176
+ },
177
+ {
178
+ label: "Voucher Image",
179
+ property: "configs.image",
180
+ type: "image"
181
+ }
182
+ ]
163
183
  }
164
184
  ]
165
185
  },
166
186
  {
167
- name: "Terms and conditions",
187
+ name: "connect.template.terms_conditions",
168
188
  groups: [
169
189
  {
170
- name: "Time limitation",
190
+ name: "connect.template.time_limitation",
171
191
  fields: [
172
192
  {
173
193
  label: void 0,
@@ -178,7 +198,7 @@ const W = {
178
198
  ]
179
199
  },
180
200
  {
181
- name: "Target audience",
201
+ name: "connect.template.target_audience",
182
202
  fields: [
183
203
  {
184
204
  label: void 0,
@@ -223,7 +243,7 @@ const W = {
223
243
  effect: null,
224
244
  event: {
225
245
  type: "MAKING_ORDER",
226
- rule: a.scaffoldGroup()
246
+ rule: t.scaffoldGroup()
227
247
  },
228
248
  group: null,
229
249
  targetLocation: null,
@@ -240,30 +260,30 @@ const W = {
240
260
  description: "Voucher template for campaign creation.",
241
261
  steps: [
242
262
  {
243
- name: "General information",
263
+ name: "connect.template.general_information",
244
264
  groups: [
245
265
  {
246
- name: "General",
266
+ name: "connect.template.general",
247
267
  fields: [
248
268
  {
249
- label: "Campaign name",
269
+ label: "connect.template.campaign_name",
250
270
  property: "campaign.name",
251
271
  type: "text"
252
272
  },
253
273
  {
254
- label: "Campaign description",
274
+ label: "connect.template.campaign_description",
255
275
  property: "campaign.description",
256
276
  type: "textarea"
257
277
  },
258
278
  {
259
- label: "Campaign period",
279
+ label: "connect.template.campaign_period",
260
280
  property: "campaign.timeframeOptions",
261
281
  type: "timeframe"
262
282
  }
263
283
  ]
264
284
  },
265
285
  {
266
- name: "Trigger",
286
+ name: "connect.template.trigger",
267
287
  fields: [
268
288
  {
269
289
  label: void 0,
@@ -291,10 +311,10 @@ const W = {
291
311
  ]
292
312
  },
293
313
  {
294
- name: "Discount",
314
+ name: "connect.template.discount",
295
315
  groups: [
296
316
  {
297
- name: "Discount",
317
+ name: "connect.template.discount",
298
318
  fields: [
299
319
  {
300
320
  label: void 0,
@@ -304,20 +324,20 @@ const W = {
304
324
  ]
305
325
  },
306
326
  {
307
- name: "Voucher detail",
327
+ name: "connect.template.voucher_detail",
308
328
  fields: [
309
329
  {
310
- label: "Voucher name",
330
+ label: "connect.template.voucher_name",
311
331
  property: "configs.name",
312
332
  type: "text"
313
333
  },
314
334
  {
315
- label: "Voucher description",
335
+ label: "connect.template.voucher_description",
316
336
  property: "configs.description",
317
337
  type: "textarea"
318
338
  },
319
339
  {
320
- label: "Voucher image",
340
+ label: "Voucher Image",
321
341
  property: "configs.image",
322
342
  type: "image"
323
343
  }
@@ -326,10 +346,10 @@ const W = {
326
346
  ]
327
347
  },
328
348
  {
329
- name: "Terms and conditions",
349
+ name: "connect.template.terms_conditions",
330
350
  groups: [
331
351
  {
332
- name: "Time limitation",
352
+ name: "connect.template.time_limitation",
333
353
  fields: [
334
354
  {
335
355
  label: void 0,
@@ -345,7 +365,7 @@ const W = {
345
365
  }
346
366
  },
347
367
  {
348
- name: "Spending criteria",
368
+ name: "connect.template.spending_criteria",
349
369
  fields: [
350
370
  {
351
371
  label: void 0,
@@ -359,7 +379,7 @@ const W = {
359
379
  }
360
380
  },
361
381
  {
362
- name: "Feedback criteria",
382
+ name: "connect.template.feedback_criteria",
363
383
  fields: [
364
384
  {
365
385
  label: void 0,
@@ -373,7 +393,7 @@ const W = {
373
393
  }
374
394
  },
375
395
  {
376
- name: "Target audience",
396
+ name: "connect.template.target_audience",
377
397
  fields: [
378
398
  {
379
399
  label: void 0,
@@ -388,7 +408,7 @@ const W = {
388
408
  ]
389
409
  },
390
410
  {
391
- name: "Voucher usage configuration",
411
+ name: "connect.template.voucher_usage_configuration",
392
412
  fields: [
393
413
  {
394
414
  label: void 0,
@@ -400,10 +420,10 @@ const W = {
400
420
  ]
401
421
  },
402
422
  {
403
- name: "Configuration",
423
+ name: "connect.template.configuration",
404
424
  groups: [
405
425
  {
406
- name: "Location",
426
+ name: "connect.template.location",
407
427
  fields: [
408
428
  {
409
429
  label: "Target location",
@@ -447,7 +467,7 @@ const W = {
447
467
  ]
448
468
  },
449
469
  {
450
- name: "Notify message",
470
+ name: "connect.template.notify_message",
451
471
  fields: [
452
472
  {
453
473
  label: "Notification message",
@@ -476,7 +496,7 @@ const W = {
476
496
  code: "",
477
497
  event: {
478
498
  type: "BILL_COMPLETED",
479
- rule: a.scaffoldGroup()
499
+ rule: t.scaffoldGroup()
480
500
  },
481
501
  group: null,
482
502
  targetLocation: null,
@@ -510,25 +530,25 @@ const W = {
510
530
  description: "Broadcast template for campaign creation.",
511
531
  steps: [
512
532
  {
513
- name: "General information",
533
+ name: "connect.template.general_information",
514
534
  groups: [
515
535
  {
516
- name: "General",
536
+ name: "connect.template.general",
517
537
  fields: [
518
538
  {
519
- label: "Campaign name",
539
+ label: "connect.template.campaign_name",
520
540
  property: "campaign.name",
521
541
  type: "text"
522
542
  },
523
543
  {
524
- label: "Campaign description",
544
+ label: "connect.template.campaign_description",
525
545
  property: "campaign.description",
526
546
  type: "textarea"
527
547
  }
528
548
  ]
529
549
  },
530
550
  {
531
- name: "Trigger",
551
+ name: "connect.template.trigger",
532
552
  fields: [
533
553
  {
534
554
  label: void 0,
@@ -539,7 +559,7 @@ const W = {
539
559
  ]
540
560
  },
541
561
  {
542
- name: "Broadcast configuration",
562
+ name: "connect.template.broadcast_configuration",
543
563
  fields: [
544
564
  {
545
565
  label: void 0,
@@ -556,10 +576,10 @@ const W = {
556
576
  ]
557
577
  },
558
578
  {
559
- name: "Terms and conditions",
579
+ name: "connect.template.terms_conditions",
560
580
  groups: [
561
581
  {
562
- name: "Target audience",
582
+ name: "connect.template.target_audience",
563
583
  fields: [
564
584
  {
565
585
  label: void 0,
@@ -569,7 +589,7 @@ const W = {
569
589
  ]
570
590
  },
571
591
  {
572
- name: "Feedback criteria",
592
+ name: "connect.template.feedback_criteria",
573
593
  fields: [
574
594
  {
575
595
  label: void 0,
@@ -585,10 +605,10 @@ const W = {
585
605
  ]
586
606
  },
587
607
  {
588
- name: "Configuration",
608
+ name: "connect.template.configuration",
589
609
  groups: [
590
610
  {
591
- name: "Content",
611
+ name: "connect.template.content",
592
612
  fields: [
593
613
  {
594
614
  label: void 0,
@@ -598,7 +618,7 @@ const W = {
598
618
  ]
599
619
  },
600
620
  {
601
- name: "Location",
621
+ name: "connect.template.location",
602
622
  fields: [
603
623
  {
604
624
  label: void 0,
@@ -621,17 +641,17 @@ const W = {
621
641
  image: "",
622
642
  event: {
623
643
  type: "SCHEDULE",
624
- rule: a.setRuleToGroup(
625
- a.scaffoldGroup(),
626
- a.setRuleToGroup(
627
- a.scaffoldGroup("g_schedule"),
644
+ rule: t.setRuleToGroup(
645
+ t.scaffoldGroup(),
646
+ t.setRuleToGroup(
647
+ t.scaffoldGroup("g_schedule"),
628
648
  [
629
- a.constructEntry(
649
+ t.constructEntry(
630
650
  "trigger.date",
631
651
  "_rrule",
632
652
  "RRULE:FREQ=DAILY;INTERVAL=1;BYHOUR=0;BYMINUTE=0;BYSECOND=0;WKST=SU"
633
653
  ),
634
- a.constructEntry(
654
+ t.constructEntry(
635
655
  "trigger.time",
636
656
  "_isOnTime",
637
657
  "00:00"
@@ -661,30 +681,30 @@ const W = {
661
681
  description: "Experience template for campaign creation.",
662
682
  steps: [
663
683
  {
664
- name: "General information",
684
+ name: "connect.template.general_information",
665
685
  groups: [
666
686
  {
667
- name: "General",
687
+ name: "connect.template.general",
668
688
  fields: [
669
689
  {
670
- label: "Campaign name",
690
+ label: "connect.template.campaign_name",
671
691
  property: "campaign.name",
672
692
  type: "text"
673
693
  },
674
694
  {
675
- label: "Campaign description",
695
+ label: "connect.template.campaign_description",
676
696
  property: "campaign.description",
677
697
  type: "textarea"
678
698
  },
679
699
  {
680
- label: "Campaign period",
700
+ label: "connect.template.campaign_period",
681
701
  property: "campaign.timeframeOptions",
682
702
  type: "timeframe"
683
703
  }
684
704
  ]
685
705
  },
686
706
  {
687
- name: "Trigger",
707
+ name: "connect.template.trigger",
688
708
  fields: [
689
709
  {
690
710
  label: void 0,
@@ -712,10 +732,10 @@ const W = {
712
732
  ]
713
733
  },
714
734
  {
715
- name: "Terms and conditions",
735
+ name: "connect.template.terms_conditions",
716
736
  groups: [
717
737
  {
718
- name: "Time limitation",
738
+ name: "connect.template.time_limitation",
719
739
  fields: [
720
740
  {
721
741
  label: void 0,
@@ -731,7 +751,7 @@ const W = {
731
751
  }
732
752
  },
733
753
  {
734
- name: "Spending criteria",
754
+ name: "connect.template.spending_criteria",
735
755
  fields: [
736
756
  {
737
757
  label: void 0,
@@ -745,7 +765,7 @@ const W = {
745
765
  }
746
766
  },
747
767
  {
748
- name: "Feedback criteria",
768
+ name: "connect.template.feedback_criteria",
749
769
  fields: [
750
770
  {
751
771
  label: void 0,
@@ -759,7 +779,7 @@ const W = {
759
779
  }
760
780
  },
761
781
  {
762
- name: "Target audience",
782
+ name: "connect.template.target_audience",
763
783
  fields: [
764
784
  {
765
785
  label: void 0,
@@ -771,10 +791,10 @@ const W = {
771
791
  ]
772
792
  },
773
793
  {
774
- name: "Configuration",
794
+ name: "connect.template.configuration",
775
795
  groups: [
776
796
  {
777
- name: "Earning type",
797
+ name: "connect.template.earning_type",
778
798
  fields: [
779
799
  {
780
800
  label: void 0,
@@ -790,7 +810,7 @@ const W = {
790
810
  ]
791
811
  },
792
812
  {
793
- name: "Location",
813
+ name: "connect.template.location",
794
814
  fields: [
795
815
  {
796
816
  label: "Target location",
@@ -825,7 +845,7 @@ const W = {
825
845
  image: "",
826
846
  event: {
827
847
  type: "BILL_COMPLETED",
828
- rule: a.scaffoldGroup()
848
+ rule: t.scaffoldGroup()
829
849
  },
830
850
  group: null,
831
851
  targetLocation: null,
@@ -848,30 +868,30 @@ const W = {
848
868
  description: "Point template for campaign creation.",
849
869
  steps: [
850
870
  {
851
- name: "General information",
871
+ name: "connect.template.general_information",
852
872
  groups: [
853
873
  {
854
- name: "General",
874
+ name: "connect.template.general",
855
875
  fields: [
856
876
  {
857
- label: "Campaign name",
877
+ label: "connect.template.campaign_name",
858
878
  property: "campaign.name",
859
879
  type: "text"
860
880
  },
861
881
  {
862
- label: "Campaign description",
882
+ label: "connect.template.campaign_description",
863
883
  property: "campaign.description",
864
884
  type: "textarea"
865
885
  },
866
886
  {
867
- label: "Campaign period",
887
+ label: "connect.template.campaign_period",
868
888
  property: "campaign.timeframeOptions",
869
889
  type: "timeframe"
870
890
  }
871
891
  ]
872
892
  },
873
893
  {
874
- name: "Trigger",
894
+ name: "connect.template.trigger",
875
895
  fields: [
876
896
  {
877
897
  label: void 0,
@@ -899,10 +919,10 @@ const W = {
899
919
  ]
900
920
  },
901
921
  {
902
- name: "Terms and conditions",
922
+ name: "connect.template.terms_conditions",
903
923
  groups: [
904
924
  {
905
- name: "Time limitation",
925
+ name: "connect.template.time_limitation",
906
926
  fields: [
907
927
  {
908
928
  label: void 0,
@@ -918,7 +938,7 @@ const W = {
918
938
  }
919
939
  },
920
940
  {
921
- name: "Spending criteria",
941
+ name: "connect.template.spending_criteria",
922
942
  fields: [
923
943
  {
924
944
  label: void 0,
@@ -932,7 +952,7 @@ const W = {
932
952
  }
933
953
  },
934
954
  {
935
- name: "Feedback criteria",
955
+ name: "connect.template.feedback_criteria",
936
956
  fields: [
937
957
  {
938
958
  label: void 0,
@@ -946,7 +966,7 @@ const W = {
946
966
  }
947
967
  },
948
968
  {
949
- name: "Target audience",
969
+ name: "connect.template.target_audience",
950
970
  fields: [
951
971
  {
952
972
  label: void 0,
@@ -958,10 +978,10 @@ const W = {
958
978
  ]
959
979
  },
960
980
  {
961
- name: "Configuration",
981
+ name: "connect.template.configuration",
962
982
  groups: [
963
983
  {
964
- name: "Earning type",
984
+ name: "connect.template.earning_type",
965
985
  fields: [
966
986
  {
967
987
  label: void 0,
@@ -977,7 +997,7 @@ const W = {
977
997
  ]
978
998
  },
979
999
  {
980
- name: "Location",
1000
+ name: "connect.template.location",
981
1001
  fields: [
982
1002
  {
983
1003
  label: "Target location",
@@ -1012,7 +1032,7 @@ const W = {
1012
1032
  image: "",
1013
1033
  event: {
1014
1034
  type: "BILL_COMPLETED",
1015
- rule: a.scaffoldGroup()
1035
+ rule: t.scaffoldGroup()
1016
1036
  },
1017
1037
  group: null,
1018
1038
  targetLocation: null,
@@ -1035,30 +1055,30 @@ const W = {
1035
1055
  description: "Credit template for campaign creation.",
1036
1056
  steps: [
1037
1057
  {
1038
- name: "General information",
1058
+ name: "connect.template.general_information",
1039
1059
  groups: [
1040
1060
  {
1041
- name: "General",
1061
+ name: "connect.template.general",
1042
1062
  fields: [
1043
1063
  {
1044
- label: "Campaign name",
1064
+ label: "connect.template.campaign_name",
1045
1065
  property: "campaign.name",
1046
1066
  type: "text"
1047
1067
  },
1048
1068
  {
1049
- label: "Campaign description",
1069
+ label: "connect.template.campaign_description",
1050
1070
  property: "campaign.description",
1051
1071
  type: "textarea"
1052
1072
  },
1053
1073
  {
1054
- label: "Campaign period",
1074
+ label: "connect.template.campaign_period",
1055
1075
  property: "campaign.timeframeOptions",
1056
1076
  type: "timeframe"
1057
1077
  }
1058
1078
  ]
1059
1079
  },
1060
1080
  {
1061
- name: "Trigger",
1081
+ name: "connect.template.trigger",
1062
1082
  fields: [
1063
1083
  {
1064
1084
  label: void 0,
@@ -1086,10 +1106,10 @@ const W = {
1086
1106
  ]
1087
1107
  },
1088
1108
  {
1089
- name: "Terms and conditions",
1109
+ name: "connect.template.terms_conditions",
1090
1110
  groups: [
1091
1111
  {
1092
- name: "Time limitation",
1112
+ name: "connect.template.time_limitation",
1093
1113
  fields: [
1094
1114
  {
1095
1115
  label: void 0,
@@ -1105,7 +1125,7 @@ const W = {
1105
1125
  }
1106
1126
  },
1107
1127
  {
1108
- name: "Spending criteria",
1128
+ name: "connect.template.spending_criteria",
1109
1129
  fields: [
1110
1130
  {
1111
1131
  label: void 0,
@@ -1119,7 +1139,7 @@ const W = {
1119
1139
  }
1120
1140
  },
1121
1141
  {
1122
- name: "Feedback criteria",
1142
+ name: "connect.template.feedback_criteria",
1123
1143
  fields: [
1124
1144
  {
1125
1145
  label: void 0,
@@ -1133,7 +1153,7 @@ const W = {
1133
1153
  }
1134
1154
  },
1135
1155
  {
1136
- name: "Target audience",
1156
+ name: "connect.template.target_audience",
1137
1157
  fields: [
1138
1158
  {
1139
1159
  label: void 0,
@@ -1145,10 +1165,10 @@ const W = {
1145
1165
  ]
1146
1166
  },
1147
1167
  {
1148
- name: "Configuration",
1168
+ name: "connect.template.configuration",
1149
1169
  groups: [
1150
1170
  {
1151
- name: "Earning type",
1171
+ name: "connect.template.earning_type",
1152
1172
  fields: [
1153
1173
  {
1154
1174
  label: void 0,
@@ -1164,7 +1184,7 @@ const W = {
1164
1184
  ]
1165
1185
  },
1166
1186
  {
1167
- name: "Location",
1187
+ name: "connect.template.location",
1168
1188
  fields: [
1169
1189
  {
1170
1190
  label: "Target location",
@@ -1199,7 +1219,7 @@ const W = {
1199
1219
  image: "",
1200
1220
  event: {
1201
1221
  type: "BILL_COMPLETED",
1202
- rule: a.scaffoldGroup()
1222
+ rule: t.scaffoldGroup()
1203
1223
  },
1204
1224
  group: null,
1205
1225
  targetLocation: null,
@@ -1222,30 +1242,30 @@ const W = {
1222
1242
  description: "Token template for campaign creation.",
1223
1243
  steps: [
1224
1244
  {
1225
- name: "General information",
1245
+ name: "connect.template.general_information",
1226
1246
  groups: [
1227
1247
  {
1228
- name: "General",
1248
+ name: "connect.template.general",
1229
1249
  fields: [
1230
1250
  {
1231
- label: "Campaign name",
1251
+ label: "connect.template.campaign_name",
1232
1252
  property: "campaign.name",
1233
1253
  type: "text"
1234
1254
  },
1235
1255
  {
1236
- label: "Campaign description",
1256
+ label: "connect.template.campaign_description",
1237
1257
  property: "campaign.description",
1238
1258
  type: "textarea"
1239
1259
  },
1240
1260
  {
1241
- label: "Campaign period",
1261
+ label: "connect.template.campaign_period",
1242
1262
  property: "campaign.timeframeOptions",
1243
1263
  type: "timeframe"
1244
1264
  }
1245
1265
  ]
1246
1266
  },
1247
1267
  {
1248
- name: "Trigger",
1268
+ name: "connect.template.trigger",
1249
1269
  fields: [
1250
1270
  {
1251
1271
  label: void 0,
@@ -1273,10 +1293,10 @@ const W = {
1273
1293
  ]
1274
1294
  },
1275
1295
  {
1276
- name: "Terms and conditions",
1296
+ name: "connect.template.terms_conditions",
1277
1297
  groups: [
1278
1298
  {
1279
- name: "Time limitation",
1299
+ name: "connect.template.time_limitation",
1280
1300
  fields: [
1281
1301
  {
1282
1302
  label: void 0,
@@ -1292,7 +1312,7 @@ const W = {
1292
1312
  }
1293
1313
  },
1294
1314
  {
1295
- name: "Spending criteria",
1315
+ name: "connect.template.spending_criteria",
1296
1316
  fields: [
1297
1317
  {
1298
1318
  label: void 0,
@@ -1306,7 +1326,7 @@ const W = {
1306
1326
  }
1307
1327
  },
1308
1328
  {
1309
- name: "Feedback criteria",
1329
+ name: "connect.template.feedback_criteria",
1310
1330
  fields: [
1311
1331
  {
1312
1332
  label: void 0,
@@ -1320,7 +1340,7 @@ const W = {
1320
1340
  }
1321
1341
  },
1322
1342
  {
1323
- name: "Target audience",
1343
+ name: "connect.template.target_audience",
1324
1344
  fields: [
1325
1345
  {
1326
1346
  label: void 0,
@@ -1332,10 +1352,10 @@ const W = {
1332
1352
  ]
1333
1353
  },
1334
1354
  {
1335
- name: "Configuration",
1355
+ name: "connect.template.configuration",
1336
1356
  groups: [
1337
1357
  {
1338
- name: "Earning type",
1358
+ name: "connect.template.earning_type",
1339
1359
  fields: [
1340
1360
  {
1341
1361
  label: void 0,
@@ -1351,7 +1371,7 @@ const W = {
1351
1371
  ]
1352
1372
  },
1353
1373
  {
1354
- name: "Location",
1374
+ name: "connect.template.location",
1355
1375
  fields: [
1356
1376
  {
1357
1377
  label: "Target location",
@@ -1363,10 +1383,10 @@ const W = {
1363
1383
  ]
1364
1384
  },
1365
1385
  {
1366
- name: "Game configuration",
1386
+ name: "connect.template.game_configuration",
1367
1387
  groups: [
1368
1388
  {
1369
- name: "Game type",
1389
+ name: "connect.template.game_type",
1370
1390
  fields: [
1371
1391
  {
1372
1392
  label: "Select a game where you want your customer to play",
@@ -1378,10 +1398,10 @@ const W = {
1378
1398
  ]
1379
1399
  },
1380
1400
  {
1381
- name: "Reward pool",
1401
+ name: "connect.template.reward_pool",
1382
1402
  groups: [
1383
1403
  {
1384
- name: "Reward pool",
1404
+ name: "connect.template.reward_pool",
1385
1405
  fields: [
1386
1406
  {
1387
1407
  label: "Configure the reward type and weightage given to your customer.",
@@ -1406,7 +1426,7 @@ const W = {
1406
1426
  image: "",
1407
1427
  event: {
1408
1428
  type: "BILL_COMPLETED",
1409
- rule: a.scaffoldGroup()
1429
+ rule: t.scaffoldGroup()
1410
1430
  },
1411
1431
  group: null,
1412
1432
  targetLocation: null,
@@ -1424,7 +1444,7 @@ const W = {
1424
1444
  game: {
1425
1445
  event: {
1426
1446
  type: "GAME_COMPLETED",
1427
- rule: a.scaffoldGroup()
1447
+ rule: t.scaffoldGroup()
1428
1448
  },
1429
1449
  name: "rewardpool_",
1430
1450
  targetLocation: null,
@@ -1448,30 +1468,30 @@ const W = {
1448
1468
  description: "Mission template for campaign creation.",
1449
1469
  steps: [
1450
1470
  {
1451
- name: "General information",
1471
+ name: "connect.template.general_information",
1452
1472
  groups: [
1453
1473
  {
1454
- name: "General",
1474
+ name: "connect.template.general",
1455
1475
  fields: [
1456
1476
  {
1457
- label: "Campaign name",
1477
+ label: "connect.template.campaign_name",
1458
1478
  property: "campaign.name",
1459
1479
  type: "text"
1460
1480
  },
1461
1481
  {
1462
- label: "Campaign description",
1482
+ label: "connect.template.campaign_description",
1463
1483
  property: "campaign.description",
1464
1484
  type: "textarea"
1465
1485
  },
1466
1486
  {
1467
- label: "Campaign period",
1487
+ label: "connect.template.campaign_period",
1468
1488
  property: "campaign.timeframeOptions",
1469
1489
  type: "timeframe"
1470
1490
  }
1471
1491
  ]
1472
1492
  },
1473
1493
  {
1474
- name: "Trigger",
1494
+ name: "connect.template.trigger",
1475
1495
  fields: [
1476
1496
  {
1477
1497
  label: void 0,
@@ -1499,10 +1519,10 @@ const W = {
1499
1519
  ]
1500
1520
  },
1501
1521
  {
1502
- name: "Terms and conditions",
1522
+ name: "connect.template.terms_conditions",
1503
1523
  groups: [
1504
1524
  {
1505
- name: "Time limitation",
1525
+ name: "connect.template.time_limitation",
1506
1526
  fields: [
1507
1527
  {
1508
1528
  label: void 0,
@@ -1518,7 +1538,7 @@ const W = {
1518
1538
  }
1519
1539
  },
1520
1540
  {
1521
- name: "Feedback criteria",
1541
+ name: "connect.template.feedback_criteria",
1522
1542
  fields: [
1523
1543
  {
1524
1544
  label: void 0,
@@ -1532,7 +1552,7 @@ const W = {
1532
1552
  }
1533
1553
  },
1534
1554
  {
1535
- name: "Target audience",
1555
+ name: "connect.template.target_audience",
1536
1556
  fields: [
1537
1557
  {
1538
1558
  label: void 0,
@@ -1542,7 +1562,7 @@ const W = {
1542
1562
  ]
1543
1563
  },
1544
1564
  {
1545
- name: "Spending criteria",
1565
+ name: "connect.template.spending_criteria",
1546
1566
  fields: [
1547
1567
  {
1548
1568
  label: void 0,
@@ -1558,7 +1578,7 @@ const W = {
1558
1578
  ]
1559
1579
  },
1560
1580
  {
1561
- name: "Configuration",
1581
+ name: "connect.template.configuration",
1562
1582
  groups: [
1563
1583
  // {
1564
1584
  // name: 'Earning type',
@@ -1572,7 +1592,7 @@ const W = {
1572
1592
  // ],
1573
1593
  // },
1574
1594
  {
1575
- name: "Location",
1595
+ name: "connect.template.location",
1576
1596
  fields: [
1577
1597
  {
1578
1598
  label: "Target location",
@@ -1584,7 +1604,7 @@ const W = {
1584
1604
  ]
1585
1605
  },
1586
1606
  {
1587
- name: "Mission configuration",
1607
+ name: "connect.template.mission_configuration",
1588
1608
  groups: [
1589
1609
  {
1590
1610
  name: void 0,
@@ -1597,7 +1617,7 @@ const W = {
1597
1617
  ]
1598
1618
  },
1599
1619
  {
1600
- name: "Earning type",
1620
+ name: "connect.template.earning_type",
1601
1621
  fields: [
1602
1622
  {
1603
1623
  label: void 0,
@@ -1608,7 +1628,7 @@ const W = {
1608
1628
  ]
1609
1629
  },
1610
1630
  {
1611
- name: "Validity configuration",
1631
+ name: "connect.template.validity_configuration",
1612
1632
  fields: [
1613
1633
  {
1614
1634
  label: void 0,
@@ -1618,7 +1638,7 @@ const W = {
1618
1638
  ]
1619
1639
  },
1620
1640
  {
1621
- name: "Mission participation",
1641
+ name: "connect.template.mission_participation",
1622
1642
  fields: [
1623
1643
  {
1624
1644
  label: void 0,
@@ -1631,10 +1651,10 @@ const W = {
1631
1651
  ]
1632
1652
  },
1633
1653
  {
1634
- name: "Reward setup",
1654
+ name: "connect.template.reward_setup",
1635
1655
  groups: [
1636
1656
  {
1637
- name: "Configure reward",
1657
+ name: "connect.template.configure_reward",
1638
1658
  fields: [
1639
1659
  {
1640
1660
  label: "Configure the reward type given to your customer.",
@@ -1661,7 +1681,7 @@ const W = {
1661
1681
  },
1662
1682
  event: {
1663
1683
  type: "BILL_COMPLETED",
1664
- rule: a.scaffoldGroup()
1684
+ rule: t.scaffoldGroup()
1665
1685
  },
1666
1686
  mission: {
1667
1687
  type: "STAMP",
@@ -1684,46 +1704,46 @@ const W = {
1684
1704
  }
1685
1705
  }
1686
1706
  };
1687
- a.scaffoldGroup(), o("STAMP", {
1707
+ t.scaffoldGroup(), o("STAMP", {
1688
1708
  business: null,
1689
1709
  noCampaign: !1
1690
1710
  });
1691
1711
  ({
1692
- ...a.scaffoldGroup()
1712
+ ...t.scaffoldGroup()
1693
1713
  }, o("VOUCHER", {
1694
1714
  name: "",
1695
1715
  business: null,
1696
1716
  noCampaign: !1
1697
1717
  }));
1698
1718
  ({
1699
- ...a.scaffoldGroup()
1719
+ ...t.scaffoldGroup()
1700
1720
  }, o("VOUCHER", {
1701
1721
  name: "",
1702
1722
  business: null,
1703
1723
  noCampaign: !1
1704
1724
  }));
1705
1725
  ({
1706
- ...a.scaffoldGroup()
1726
+ ...t.scaffoldGroup()
1707
1727
  });
1708
1728
  ({
1709
- ...a.scaffoldGroup()
1729
+ ...t.scaffoldGroup()
1710
1730
  });
1711
1731
  ({
1712
- ...a.scaffoldGroup()
1732
+ ...t.scaffoldGroup()
1713
1733
  });
1714
- a.setRuleToGroup(
1715
- a.scaffoldGroup(),
1716
- a.setRuleToGroup(
1717
- a.scaffoldGroup("g_user"),
1718
- [a.constructEntry("user.member", "_isIn", [!0])],
1734
+ t.setRuleToGroup(
1735
+ t.scaffoldGroup(),
1736
+ t.setRuleToGroup(
1737
+ t.scaffoldGroup("g_user"),
1738
+ [t.constructEntry("user.member", "_isIn", [!0])],
1719
1739
  "&&"
1720
1740
  )
1721
1741
  );
1722
- a.setRuleToGroup(a.scaffoldGroup(), [
1723
- a.setRuleToGroup(
1724
- a.scaffoldGroup("g_user"),
1742
+ t.setRuleToGroup(t.scaffoldGroup(), [
1743
+ t.setRuleToGroup(
1744
+ t.scaffoldGroup("g_user"),
1725
1745
  [
1726
- a.constructEntry("user.birthday", "_isRange", {
1746
+ t.constructEntry("user.birthday", "_isRange", {
1727
1747
  op: "this",
1728
1748
  unit: "month",
1729
1749
  ignoreYear: !0
@@ -1733,88 +1753,88 @@ a.setRuleToGroup(a.scaffoldGroup(), [
1733
1753
  )
1734
1754
  ]);
1735
1755
  ({
1736
- ...a.scaffoldGroup()
1756
+ ...t.scaffoldGroup()
1737
1757
  });
1738
1758
  ({
1739
- ...a.scaffoldGroup()
1759
+ ...t.scaffoldGroup()
1740
1760
  });
1741
1761
  ({
1742
- ...a.scaffoldGroup()
1762
+ ...t.scaffoldGroup()
1743
1763
  }, o("VOUCHER", {
1744
1764
  name: "",
1745
1765
  business: null,
1746
1766
  noCampaign: !1
1747
1767
  }));
1748
- a.setRuleToGroup(
1749
- a.scaffoldGroup(),
1750
- a.setRuleToGroup(
1751
- a.scaffoldGroup("g_schedule"),
1768
+ t.setRuleToGroup(
1769
+ t.scaffoldGroup(),
1770
+ t.setRuleToGroup(
1771
+ t.scaffoldGroup("g_schedule"),
1752
1772
  [
1753
- a.constructEntry("trigger.date", "_isOnDate", ""),
1754
- a.constructEntry("trigger.time", "_isOnTime", "00:00")
1773
+ t.constructEntry("trigger.date", "_isOnDate", ""),
1774
+ t.constructEntry("trigger.time", "_isOnTime", "00:00")
1755
1775
  ],
1756
1776
  "&&"
1757
1777
  )
1758
1778
  );
1759
- a.setRuleToGroup(a.scaffoldGroup(), [
1760
- a.setRuleToGroup(
1761
- a.scaffoldGroup("g_schedule"),
1779
+ t.setRuleToGroup(t.scaffoldGroup(), [
1780
+ t.setRuleToGroup(
1781
+ t.scaffoldGroup("g_schedule"),
1762
1782
  [
1763
- a.constructEntry(
1783
+ t.constructEntry(
1764
1784
  "trigger.date",
1765
1785
  "_rrule",
1766
1786
  "RRULE:FREQ=MONTHLY;INTERVAL=1;BYHOUR=0;BYMINUTE=0;BYSECOND=0;WKST=SU;BYMONTHDAY=1"
1767
1787
  ),
1768
- a.constructEntry("trigger.time", "_isOnTime", "00:00")
1788
+ t.constructEntry("trigger.time", "_isOnTime", "00:00")
1769
1789
  ],
1770
1790
  "&&"
1771
1791
  )
1772
1792
  ]);
1773
- ({ ...a.scaffoldGroup() });
1774
- a.setRuleToGroup(
1775
- a.scaffoldGroup(),
1776
- a.setRuleToGroup(
1777
- a.scaffoldGroup("g_schedule"),
1793
+ ({ ...t.scaffoldGroup() });
1794
+ t.setRuleToGroup(
1795
+ t.scaffoldGroup(),
1796
+ t.setRuleToGroup(
1797
+ t.scaffoldGroup("g_schedule"),
1778
1798
  [
1779
- a.constructEntry(
1799
+ t.constructEntry(
1780
1800
  "trigger.date",
1781
1801
  "_rrule",
1782
1802
  "RRULE:FREQ=WEEKLY;INTERVAL=1;BYHOUR=0;BYMINUTE=0;BYSECOND=0;WKST=SU;BYDAY=MO"
1783
1803
  ),
1784
- a.constructEntry("trigger.time", "_isOnTime", "00:00")
1804
+ t.constructEntry("trigger.time", "_isOnTime", "00:00")
1785
1805
  ],
1786
1806
  "&&"
1787
1807
  )
1788
1808
  );
1789
- a.scaffoldGroup(), a.scaffoldGroup(), o("GAME", {
1809
+ t.scaffoldGroup(), t.scaffoldGroup(), o("GAME", {
1790
1810
  name: "Token",
1791
1811
  business: null,
1792
1812
  noCampaign: !1
1793
1813
  });
1794
1814
  ({
1795
- ...a.scaffoldGroup()
1815
+ ...t.scaffoldGroup()
1796
1816
  }, o("VOUCHER", {
1797
1817
  name: "",
1798
1818
  business: null,
1799
1819
  noCampaign: !1
1800
1820
  }));
1801
- a.setRuleToGroup(a.scaffoldGroup(), [
1802
- a.setRuleToGroup(
1803
- a.scaffoldGroup("g_schedule"),
1821
+ t.setRuleToGroup(t.scaffoldGroup(), [
1822
+ t.setRuleToGroup(
1823
+ t.scaffoldGroup("g_schedule"),
1804
1824
  [
1805
- a.constructEntry(
1825
+ t.constructEntry(
1806
1826
  "trigger.date",
1807
1827
  "_rrule",
1808
1828
  "RRULE:FREQ=MONTHLY;INTERVAL=1;BYHOUR=0;BYMINUTE=0;BYSECOND=0;WKST=SU;BYMONTHDAY=1"
1809
1829
  ),
1810
- a.constructEntry("trigger.time", "_isOnTime", "00:00")
1830
+ t.constructEntry("trigger.time", "_isOnTime", "00:00")
1811
1831
  ],
1812
1832
  "&&"
1813
1833
  ),
1814
- a.setRuleToGroup(
1815
- a.scaffoldGroup("g_user"),
1834
+ t.setRuleToGroup(
1835
+ t.scaffoldGroup("g_user"),
1816
1836
  [
1817
- a.constructEntry("user.birthday", "_isRange", {
1837
+ t.constructEntry("user.birthday", "_isRange", {
1818
1838
  op: "this",
1819
1839
  unit: "month",
1820
1840
  ignoreYear: !0
@@ -1828,24 +1848,24 @@ a.setRuleToGroup(a.scaffoldGroup(), [
1828
1848
  noCampaign: !1
1829
1849
  });
1830
1850
  ({
1831
- ...a.scaffoldGroup()
1851
+ ...t.scaffoldGroup()
1832
1852
  });
1833
1853
  ({
1834
- ...a.scaffoldGroup()
1854
+ ...t.scaffoldGroup()
1835
1855
  });
1836
1856
  ({
1837
- ...a.scaffoldGroup()
1857
+ ...t.scaffoldGroup()
1838
1858
  });
1839
1859
  ({
1840
- ...a.scaffoldGroup()
1860
+ ...t.scaffoldGroup()
1841
1861
  });
1842
1862
  ({
1843
- ...a.scaffoldGroup()
1863
+ ...t.scaffoldGroup()
1844
1864
  });
1845
1865
  ({
1846
- ...a.scaffoldGroup()
1866
+ ...t.scaffoldGroup()
1847
1867
  });
1848
- const z = e.enum([
1868
+ const Q = e.enum([
1849
1869
  "MEMBER_REWARD",
1850
1870
  "PAID_LOYALTY",
1851
1871
  "COLLECT_FEEDBACK",
@@ -1855,7 +1875,7 @@ const z = e.enum([
1855
1875
  "BROADCAST",
1856
1876
  "BIRTHDAY",
1857
1877
  "GAME"
1858
- ]), Q = e.enum([
1878
+ ]), J = e.enum([
1859
1879
  "text",
1860
1880
  "number",
1861
1881
  "textarea",
@@ -1882,82 +1902,100 @@ const z = e.enum([
1882
1902
  "rule_feedback",
1883
1903
  "rule_birthday",
1884
1904
  "promotion_game_type"
1885
- ]), J = e.object({
1905
+ ]), $ = e.object({
1886
1906
  label: e.string().optional(),
1887
1907
  property: e.string().or(e.any()),
1888
- type: Q,
1908
+ type: J,
1889
1909
  extras: e.string().optional(),
1890
1910
  isRuleChildren: e.boolean().optional()
1891
- }), $ = e.object({
1911
+ }), Z = e.object({
1892
1912
  name: e.string().optional(),
1893
- fields: e.array(J),
1913
+ fields: e.array($),
1894
1914
  condition: e.object({
1895
1915
  not: e.boolean().optional(),
1896
1916
  property: e.string(),
1897
1917
  value: e.any()
1898
1918
  }).optional()
1899
- }), Z = e.object({
1919
+ }), ee = e.object({
1900
1920
  name: e.string(),
1901
- groups: e.array($)
1921
+ groups: e.array(Z)
1902
1922
  });
1903
1923
  e.object({
1904
- _id: m,
1924
+ _id: c,
1905
1925
  name: e.string(),
1906
1926
  description: e.string().nullish(),
1907
- steps: e.array(Z).min(1),
1908
- intention: e.array(z),
1927
+ steps: e.array(ee).min(1),
1928
+ intention: e.array(Q),
1909
1929
  defaultValue: e.any()
1910
1930
  }).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
1911
- const ee = {
1931
+ const te = {
1912
1932
  collectionName: "Businesses",
1913
1933
  transform: {
1914
1934
  _id: "oid"
1915
1935
  }
1916
1936
  };
1917
1937
  e.object({
1918
- _id: m,
1938
+ _id: c,
1919
1939
  ownerId: e.string(),
1920
1940
  name: e.string(),
1921
1941
  credit: e.number(),
1922
1942
  forceSend: e.boolean().optional()
1923
- }).describe(f.describe(ee));
1924
- const h = e.enum(["PHONE"]), ae = e.enum(["MOCEAN", "SLACK"]), te = e.enum(["PENDING", "COMPLETED", "FAILED"]), ie = e.enum([
1943
+ }).describe(f.describe(te));
1944
+ const D = e.enum(["PHONE"]), ne = e.enum(["MOCEAN", "SLACK", "SMS", "EMAIL"]), ae = e.enum(["PENDING", "COMPLETED", "FAILED"]), ie = e.enum([
1925
1945
  "General",
1926
1946
  "Otp",
1927
1947
  "Marketing",
1928
1948
  "Ordering",
1929
1949
  "MemberInvitation"
1930
- ]), ne = e.object({
1931
- type: h
1932
- }), D = ne.extend({
1933
- type: e.literal(h.enum.PHONE),
1934
- provider: ae,
1950
+ ]), oe = e.object({
1951
+ type: D
1952
+ }), T = oe.extend({
1953
+ type: e.literal(D.enum.PHONE),
1954
+ provider: ne,
1935
1955
  usage: ie.optional()
1936
- }), oe = {
1956
+ }), pe = {
1937
1957
  collectionName: "Notifications",
1938
1958
  transform: { _id: "oid", business: "oid" }
1939
1959
  };
1940
1960
  e.object({
1941
- _id: m,
1942
- business: m,
1961
+ _id: c,
1962
+ business: c,
1943
1963
  target: e.string(),
1944
1964
  title: e.string().optional(),
1945
1965
  message: e.string(),
1946
- option: D,
1947
- status: te,
1966
+ option: T,
1967
+ status: ae,
1948
1968
  ref: e.string().optional()
1949
- }).describe(f.describe(oe));
1969
+ }).describe(f.describe(pe));
1950
1970
  e.object({
1951
1971
  target: e.string(),
1952
1972
  title: e.string().optional(),
1953
1973
  message: e.string(),
1954
- option: D,
1974
+ option: T,
1955
1975
  ref: e.string().optional()
1956
1976
  });
1957
1977
  e.object({
1958
1978
  phone: e.string(),
1959
1979
  message: e.string()
1960
1980
  });
1981
+ const C = e.object({
1982
+ name: e.string(),
1983
+ address: e.string()
1984
+ }), re = e.object({
1985
+ filename: e.string(),
1986
+ content: e.instanceof(Uint8Array)
1987
+ });
1988
+ e.object({
1989
+ from: C,
1990
+ to: e.array(C),
1991
+ subject: e.string(),
1992
+ html: e.string().optional(),
1993
+ attachments: e.array(re).optional()
1994
+ });
1995
+ e.object({
1996
+ subject: e.string(),
1997
+ body: e.string()
1998
+ });
1961
1999
  e.enum(["send_notification", "TRIGGER_EVENT"]);
1962
2000
  e.enum([
1963
2001
  "campaign.general",
@@ -1985,15 +2023,15 @@ e.object({
1985
2023
  claimIds: e.array(e.string()),
1986
2024
  billId: e.string()
1987
2025
  });
1988
- var x = /* @__PURE__ */ ((t) => (t[t.feedMe = 0] = "feedMe", t[t.business = 1] = "business", t[t.restaurant = 2] = "restaurant", t))(x || {});
1989
- e.nativeEnum(x);
2026
+ var S = /* @__PURE__ */ ((n) => (n[n.feedMe = 0] = "feedMe", n[n.business = 1] = "business", n[n.restaurant = 2] = "restaurant", n))(S || {});
2027
+ e.nativeEnum(S);
1990
2028
  e.enum(["manage", "create", "read", "update", "delete"]);
1991
2029
  e.enum(["all", "restaurant", "business", "delivery", "agent"]);
1992
2030
  e.enum(["quota"]);
1993
- 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 || {});
1994
- e.nativeEnum(S);
2031
+ var R = /* @__PURE__ */ ((n) => (n.marketing = "business::marketing", n.campaign = "business::campaign", n.counter = "business::counter", n.permission = "business::permission", n.role = "business::role", n))(R || {});
2032
+ e.nativeEnum(R);
1995
2033
  e.enum(["restaurant"]);
1996
- const re = e.object({
2034
+ const le = e.object({
1997
2035
  label: e.string(),
1998
2036
  subject: e.union([e.string(), e.array(e.string())]),
1999
2037
  actions: e.union([e.string(), e.array(e.string())]),
@@ -2003,12 +2041,12 @@ const re = e.object({
2003
2041
  reason: e.string().optional()
2004
2042
  });
2005
2043
  e.object({
2006
- _id: m,
2044
+ _id: c,
2007
2045
  businessId: e.string(),
2008
2046
  userId: e.string(),
2009
2047
  email: e.string().nullish(),
2010
2048
  phoneNo: e.string().nullish(),
2011
- permissions: e.array(e.lazy(() => re))
2049
+ permissions: e.array(e.lazy(() => le))
2012
2050
  }).describe(
2013
2051
  f.describe({
2014
2052
  collectionName: "PermissionUsers",
@@ -2017,27 +2055,27 @@ e.object({
2017
2055
  }
2018
2056
  })
2019
2057
  );
2020
- const R = e.object({
2058
+ const M = e.object({
2021
2059
  userId: e.string(),
2022
2060
  level: e.number(),
2023
2061
  role: e.string().optional(),
2024
2062
  businessId: e.string().optional(),
2025
2063
  restaurantId: e.string().optional()
2026
- }), pe = e.function().args(e.any(), R).returns(e.boolean()), le = e.function().args(R).returns(e.promise(e.array(e.any())));
2064
+ }), ce = e.function().args(e.any(), M).returns(e.boolean()), me = e.function().args(M).returns(e.promise(e.array(e.any())));
2027
2065
  e.object({
2028
- isAdmin: pe,
2029
- getRules: le
2066
+ isAdmin: ce,
2067
+ getRules: me
2030
2068
  });
2031
2069
  e.object({
2032
2070
  transactions: e.array(K),
2033
- collections: e.array(j)
2071
+ collections: e.array(W)
2034
2072
  });
2035
- const G = e.enum([
2073
+ const A = e.enum([
2036
2074
  "ROCK_PAPER_SCISSOR"
2037
2075
  ]);
2038
- G.enum.ROCK_PAPER_SCISSOR + "";
2076
+ A.enum.ROCK_PAPER_SCISSOR + "";
2039
2077
  e.object({
2040
- type: G
2078
+ type: A
2041
2079
  });
2042
2080
  e.object({
2043
2081
  host: e.string().url(),
@@ -2065,7 +2103,7 @@ e.object({
2065
2103
  email: e.string().optional()
2066
2104
  });
2067
2105
  export {
2068
- z as F,
2069
- fe as T,
2070
- ue as _
2106
+ Q as F,
2107
+ ve as T,
2108
+ _e as _
2071
2109
  };