@feedmepos/mf-connect 0.0.3-beta.0

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 (303) hide show
  1. package/README.md +31 -0
  2. package/dist/Analytic-Dljae6Yl.js +614 -0
  3. package/dist/Broadcast-CejuUG-1.js +216 -0
  4. package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DAxAfdPe.js +117 -0
  5. package/dist/Card-BqgQuGNe.js +775 -0
  6. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +97 -0
  7. package/dist/Collections-CmIFQQxo.js +437 -0
  8. package/dist/Credit-Bi7zJdvK.js +214 -0
  9. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DLb_mc7S.js +1952 -0
  10. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-BN9vbCIU.js +309 -0
  11. package/dist/Experience-CndnSCnn.js +211 -0
  12. package/dist/Game-CDctToIr.js +242 -0
  13. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-DMsxZkxf.js +144 -0
  14. package/dist/JsonViewer-CDb_cQJh.js +87 -0
  15. package/dist/MainLayout-5NCcYKPh.js +18770 -0
  16. package/dist/Marketing-DcRex89D.js +309 -0
  17. package/dist/Member-KDAOZ4y7.js +90 -0
  18. package/dist/MemberList-7cfMhvnU.js +1752 -0
  19. package/dist/MemberOverview-C2n9oJZh.js +58 -0
  20. package/dist/MemberTransactions-Dd1NNP_h.js +38 -0
  21. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Bniz5T6m.js +163 -0
  22. package/dist/Point-B-Yo0tOQ.js +211 -0
  23. package/dist/Promotion-B2t2rOB2.js +219 -0
  24. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Ml889DRQ.js +1461 -0
  25. package/dist/Segment-quTtfnsL.js +392 -0
  26. package/dist/Setting-BMQkU33O.js +1862 -0
  27. package/dist/Store-C0JEZe6U.js +1415 -0
  28. package/dist/StoreRewards-CozvYaoP.js +432 -0
  29. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BHaiBpBC.js +640 -0
  30. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CASpFDTp.js +124 -0
  31. package/dist/Tier-DU0ptI0I.js +821 -0
  32. package/dist/Title-BPvcg94P.js +496 -0
  33. package/dist/Transaction-Cgs5H5Vg.js +34 -0
  34. package/dist/Voucher-CMLmRUp5.js +448 -0
  35. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +140 -0
  36. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  37. package/dist/app-DRUbn5GO.js +31282 -0
  38. package/dist/app.js +5 -0
  39. package/dist/campaign-CpzFl8Vr.js +4 -0
  40. package/dist/campaign-DmbniSEP.js +93 -0
  41. package/dist/collection.fn-DHlfGYAC.js +24 -0
  42. package/dist/dto-ts2Lkngs.js +353 -0
  43. package/dist/effect-BTYIMeYm.js +61 -0
  44. package/dist/feedme.ico +0 -0
  45. package/dist/helper-CRmH0_yS.js +58 -0
  46. package/dist/index-BTanTa5F.js +64 -0
  47. package/dist/index-BZbepUcT.js +104 -0
  48. package/dist/index-C4AxDwBx.js +674 -0
  49. package/dist/index-CKhgwiA8.js +234 -0
  50. package/dist/index-ChAaKnz9.js +99 -0
  51. package/dist/index-CuvNtC_M.js +61 -0
  52. package/dist/index-DGFTGZj1.js +190 -0
  53. package/dist/index-Dbd4WA4r.js +61 -0
  54. package/dist/index-DkxEfDKI.js +1757 -0
  55. package/dist/index-DzrgTguB.js +38 -0
  56. package/dist/index-Iej6yAF2.js +8796 -0
  57. package/dist/index-Ix0P1Q7X.js +1742 -0
  58. package/dist/index-y3taWZm8.js +29565 -0
  59. package/dist/libs/packages/core/src/bill/bill.dto.d.ts +75 -0
  60. package/dist/libs/packages/core/src/bill/index.d.ts +115 -0
  61. package/dist/libs/packages/core/src/business/index.d.ts +21 -0
  62. package/dist/libs/packages/core/src/campaign/broadcast/index.d.ts +36 -0
  63. package/dist/libs/packages/core/src/campaign/campaign.enum.d.ts +3 -0
  64. package/dist/libs/packages/core/src/campaign/campaign.fn.d.ts +5 -0
  65. package/dist/libs/packages/core/src/campaign/group.d.ts +25 -0
  66. package/dist/libs/packages/core/src/campaign/index.d.ts +33448 -0
  67. package/dist/libs/packages/core/src/collectible/collectible.dto.d.ts +15 -0
  68. package/dist/libs/packages/core/src/collectible/collectible.enum.d.ts +14 -0
  69. package/dist/libs/packages/core/src/collectible/helper.d.ts +195 -0
  70. package/dist/libs/packages/core/src/collectible/index.d.ts +1588 -0
  71. package/dist/libs/packages/core/src/collectible/pool/index.d.ts +1381 -0
  72. package/dist/libs/packages/core/src/collection/collection.fn.d.ts +5 -0
  73. package/dist/libs/packages/core/src/collection/index.d.ts +901 -0
  74. package/dist/libs/packages/core/src/collection/transaction.d.ts +845 -0
  75. package/dist/libs/packages/core/src/collection/transaction.fn.d.ts +10 -0
  76. package/dist/libs/packages/core/src/common/array.d.ts +2 -0
  77. package/dist/libs/packages/core/src/common/hash.d.ts +10 -0
  78. package/dist/libs/packages/core/src/common/index.d.ts +42 -0
  79. package/dist/libs/packages/core/src/common/number.d.ts +7 -0
  80. package/dist/libs/packages/core/src/common/object.d.ts +5 -0
  81. package/dist/libs/packages/core/src/common/objectId.d.ts +2 -0
  82. package/dist/libs/packages/core/src/common/string.d.ts +4 -0
  83. package/dist/libs/packages/core/src/counter/counter.dto.d.ts +767 -0
  84. package/dist/libs/packages/core/src/counter/index.d.ts +1 -0
  85. package/dist/libs/packages/core/src/event/index.d.ts +4246 -0
  86. package/dist/libs/packages/core/src/feedback/index.d.ts +24 -0
  87. package/dist/libs/packages/core/src/game/index.d.ts +32 -0
  88. package/dist/libs/packages/core/src/index.d.ts +21 -0
  89. package/dist/libs/packages/core/src/internal/index.d.ts +56 -0
  90. package/dist/libs/packages/core/src/legacy/setting/index.d.ts +89 -0
  91. package/dist/libs/packages/core/src/location/index.d.ts +44 -0
  92. package/dist/libs/packages/core/src/loyalty/card/index.d.ts +1287 -0
  93. package/dist/libs/packages/core/src/loyalty/index.d.ts +3 -0
  94. package/dist/libs/packages/core/src/loyalty/tier/helper.d.ts +2 -0
  95. package/dist/libs/packages/core/src/loyalty/tier/index.d.ts +251 -0
  96. package/dist/libs/packages/core/src/loyalty/title/index.d.ts +4 -0
  97. package/dist/libs/packages/core/src/marketing-material/index.d.ts +186 -0
  98. package/dist/libs/packages/core/src/marketing-material/marketing-material.enum.d.ts +3 -0
  99. package/dist/libs/packages/core/src/notification/index.d.ts +130 -0
  100. package/dist/libs/packages/core/src/pagination/index.d.ts +25 -0
  101. package/dist/libs/packages/core/src/permission/index.d.ts +243 -0
  102. package/dist/libs/packages/core/src/service/index.d.ts +10 -0
  103. package/dist/libs/packages/core/src/store/dto.d.ts +1060 -0
  104. package/dist/libs/packages/core/src/store/index.d.ts +3894 -0
  105. package/dist/libs/packages/core/src/store/store.fn.d.ts +103 -0
  106. package/dist/libs/packages/core/src/template/index.d.ts +880 -0
  107. package/dist/libs/packages/core/src/template/templates.d.ts +1217 -0
  108. package/dist/libs/packages/core/src/user/index.d.ts +245 -0
  109. package/dist/libs/packages/core/src/user/segment.dto.d.ts +27 -0
  110. package/dist/libs/packages/core/src/user/segmentation.d.ts +28 -0
  111. package/dist/libs/packages/core/src/user/user.dto.d.ts +873 -0
  112. package/dist/libs/packages/core/src/validation/index.d.ts +1 -0
  113. package/dist/libs/packages/core/src/validation/rule/builder.d.ts +36 -0
  114. package/dist/libs/packages/core/src/validation/rule/index.d.ts +45 -0
  115. package/dist/libs/packages/core/src/validation/rule/operator.enum.d.ts +405 -0
  116. package/dist/libs/packages/core/src/validation/rule/rule.fn.d.ts +6 -0
  117. package/dist/libs/packages/validation/src/index.d.ts +3 -0
  118. package/dist/libs/packages/validation/src/rule/rule-builder.d.ts +19 -0
  119. package/dist/libs/packages/validation/src/rule/rule.d.ts +52 -0
  120. package/dist/libs/packages/validation/src/rule/validate.d.ts +2 -0
  121. package/dist/loading-Dy-VtOFu.js +3131 -0
  122. package/dist/lodash-BnddClG8.js +3678 -0
  123. package/dist/membership-28vBGpTw.js +213 -0
  124. package/dist/moment-BWErdI6_.js +2578 -0
  125. package/dist/money-Ch7o4R5s.js +15 -0
  126. package/dist/number-BgOMhVX5.js +12 -0
  127. package/dist/object-qECH92oz.js +26 -0
  128. package/dist/objectId-dwaoBfJX.js +7 -0
  129. package/dist/packages/connect/src/App.vue.d.ts +2 -0
  130. package/dist/packages/connect/src/Entry.vue.d.ts +2 -0
  131. package/dist/packages/connect/src/api/auth/index.d.ts +3 -0
  132. package/dist/packages/connect/src/api/campaign/index.d.ts +30 -0
  133. package/dist/packages/connect/src/api/campaign/template.d.ts +5 -0
  134. package/dist/packages/connect/src/api/index.d.ts +24 -0
  135. package/dist/packages/connect/src/api/location/index.d.ts +7 -0
  136. package/dist/packages/connect/src/api/marketing-material/index.d.ts +7 -0
  137. package/dist/packages/connect/src/api/member/index.d.ts +12 -0
  138. package/dist/packages/connect/src/api/membership/index.d.ts +31 -0
  139. package/dist/packages/connect/src/api/segments/index.d.ts +13 -0
  140. package/dist/packages/connect/src/api/settings/index.d.ts +4 -0
  141. package/dist/packages/connect/src/api/transaction/index.d.ts +9 -0
  142. package/dist/packages/connect/src/api/users/index.d.ts +8 -0
  143. package/dist/packages/connect/src/app.d.ts +16 -0
  144. package/dist/packages/connect/src/components/NavigationTab.vue.d.ts +2 -0
  145. package/dist/packages/connect/src/components/analytic/CampaignCard.vue.d.ts +24 -0
  146. package/dist/packages/connect/src/components/analytic/CampaignChip.vue.d.ts +47 -0
  147. package/dist/packages/connect/src/components/analytic/CampaignGroup.vue.d.ts +25 -0
  148. package/dist/packages/connect/src/components/analytic/CampaignStat.vue.d.ts +31 -0
  149. package/dist/packages/connect/src/components/analytic/LinkCampaign.vue.d.ts +30 -0
  150. package/dist/packages/connect/src/components/campaign/CampaignChip.vue.d.ts +13 -0
  151. package/dist/packages/connect/src/components/campaign/CampaignTriggerInput.vue.d.ts +34 -0
  152. package/dist/packages/connect/src/components/campaign/EarningOptionInput.vue.d.ts +50 -0
  153. package/dist/packages/connect/src/components/campaign/GameTypeInput.vue.d.ts +15 -0
  154. package/dist/packages/connect/src/components/campaign/MessageInput.vue.d.ts +58 -0
  155. package/dist/packages/connect/src/components/campaign/PromotionGameTypeInput.vue.d.ts +19 -0
  156. package/dist/packages/connect/src/components/campaign/ScheduleRuleInput.vue.d.ts +29 -0
  157. package/dist/packages/connect/src/components/campaign/TargetLocationInput.vue.d.ts +32 -0
  158. package/dist/packages/connect/src/components/campaign/ValidityInput.vue.d.ts +59 -0
  159. package/dist/packages/connect/src/components/collectible/CollectibleChip.vue.d.ts +13 -0
  160. package/dist/packages/connect/src/components/collectible/CollectibleOptionInput.vue.d.ts +59 -0
  161. package/dist/packages/connect/src/components/collection/Collections.vue.d.ts +2 -0
  162. package/dist/packages/connect/src/components/custom/ChipMenu.vue.d.ts +96 -0
  163. package/dist/packages/connect/src/components/custom/CustomSelect.vue.d.ts +68 -0
  164. package/dist/packages/connect/src/components/custom/DateInput.vue.d.ts +24 -0
  165. package/dist/packages/connect/src/components/custom/DateRangeChip.vue.d.ts +25 -0
  166. package/dist/packages/connect/src/components/custom/DateRangeInput.vue.d.ts +28 -0
  167. package/dist/packages/connect/src/components/custom/FilterChip.vue.d.ts +90 -0
  168. package/dist/packages/connect/src/components/custom/ImageInput.vue.d.ts +115 -0
  169. package/dist/packages/connect/src/components/custom/json/JsonNode.vue.d.ts +36 -0
  170. package/dist/packages/connect/src/components/custom/json/JsonViewer.vue.d.ts +22 -0
  171. package/dist/packages/connect/src/components/custom/zod/ZodTextField.vue.d.ts +52 -0
  172. package/dist/packages/connect/src/components/loading/ImageLoading.vue.d.ts +2 -0
  173. package/dist/packages/connect/src/components/loading/LottieAnimation.vue.d.ts +39 -0
  174. package/dist/packages/connect/src/components/loading/Splash.vue.d.ts +2 -0
  175. package/dist/packages/connect/src/components/loyalty/CampaignTypeDialog.vue.d.ts +13 -0
  176. package/dist/packages/connect/src/components/loyalty/CreditCoinDialog.vue.d.ts +29 -0
  177. package/dist/packages/connect/src/components/loyalty/TierExpression.vue.d.ts +32 -0
  178. package/dist/packages/connect/src/components/marketing/HeadlineStyleSideSheet.vue.d.ts +42 -0
  179. package/dist/packages/connect/src/components/marketing/ImageSideSheet.vue.d.ts +40 -0
  180. package/dist/packages/connect/src/components/marketing/LinkRewardSideSheet.vue.d.ts +30 -0
  181. package/dist/packages/connect/src/components/marketing/MarketingSheet.vue.d.ts +2 -0
  182. package/dist/packages/connect/src/components/marketing/RewardDropDown.vue.d.ts +26 -0
  183. package/dist/packages/connect/src/components/marketing/RightSheet.vue.d.ts +66 -0
  184. package/dist/packages/connect/src/components/marketing/SlideUpDown.vue.d.ts +27 -0
  185. package/dist/packages/connect/src/components/marketing/platform/BrandAppImage.vue.d.ts +103 -0
  186. package/dist/packages/connect/src/components/marketing/platform/FacebookPost.vue.d.ts +103 -0
  187. package/dist/packages/connect/src/components/marketing/platform/FacebookStory.vue.d.ts +103 -0
  188. package/dist/packages/connect/src/components/marketing/platform/ImageCanvas.vue.d.ts +81 -0
  189. package/dist/packages/connect/src/components/marketing/platform/InstagramPost.vue.d.ts +102 -0
  190. package/dist/packages/connect/src/components/marketing/platform/InstagramReel.vue.d.ts +102 -0
  191. package/dist/packages/connect/src/components/marketing/platform/InstagramStory.vue.d.ts +102 -0
  192. package/dist/packages/connect/src/components/marketing/platform/TvImage.vue.d.ts +103 -0
  193. package/dist/packages/connect/src/components/member/MemberDetail.vue.d.ts +2 -0
  194. package/dist/packages/connect/src/components/member/MemberList.vue.d.ts +2 -0
  195. package/dist/packages/connect/src/components/member/MemberOverview.vue.d.ts +2 -0
  196. package/dist/packages/connect/src/components/member/MemberStatsDialog.vue.d.ts +21 -0
  197. package/dist/packages/connect/src/components/rule/BillRuleGroup.vue.d.ts +19 -0
  198. package/dist/packages/connect/src/components/rule/CustomRuleDialog.vue.d.ts +30 -0
  199. package/dist/packages/connect/src/components/rule/FeedbackRuleGroup.vue.d.ts +19 -0
  200. package/dist/packages/connect/src/components/rule/PresetRuleDialog.vue.d.ts +20 -0
  201. package/dist/packages/connect/src/components/rule/RuleConfigurator.vue.d.ts +37 -0
  202. package/dist/packages/connect/src/components/rule/RuleEntry.vue.d.ts +19 -0
  203. package/dist/packages/connect/src/components/rule/RuleEquator.vue.d.ts +31 -0
  204. package/dist/packages/connect/src/components/rule/RuleGroup.vue.d.ts +30 -0
  205. package/dist/packages/connect/src/components/rule/SegmentConfigurator.vue.d.ts +17 -0
  206. package/dist/packages/connect/src/components/rule/TimeRuleGroup.vue.d.ts +19 -0
  207. package/dist/packages/connect/src/components/rule/UserRuleGroup.vue.d.ts +19 -0
  208. package/dist/packages/connect/src/components/rule/equators/BirthdayInput.vue.d.ts +15 -0
  209. package/dist/packages/connect/src/components/rule/equators/IsDayInput.vue.d.ts +24 -0
  210. package/dist/packages/connect/src/components/rule/equators/IsInMonthInput.vue.d.ts +16 -0
  211. package/dist/packages/connect/src/components/rule/equators/IsRangeInput.vue.d.ts +55 -0
  212. package/dist/packages/connect/src/components/rule/equators/RruleInput.vue.d.ts +37 -0
  213. package/dist/packages/connect/src/components/rule/presets.d.ts +18 -0
  214. package/dist/packages/connect/src/components/segment/ReviewSegment.vue.d.ts +16 -0
  215. package/dist/packages/connect/src/components/setting/LinkDeviceDialog.vue.d.ts +2 -0
  216. package/dist/packages/connect/src/components/store/AddBundleCard.vue.d.ts +6 -0
  217. package/dist/packages/connect/src/components/store/CategoryDialog.vue.d.ts +23 -0
  218. package/dist/packages/connect/src/components/store/StoreBundleCard.vue.d.ts +20 -0
  219. package/dist/packages/connect/src/components/store/StoreTransactions.vue.d.ts +10 -0
  220. package/dist/packages/connect/src/components/stripe/StripeSetting.vue.d.ts +21 -0
  221. package/dist/packages/connect/src/components/tax/TaxInclusiveSetting.vue.d.ts +30 -0
  222. package/dist/packages/connect/src/components/tax/TaxVariantSetting.vue.d.ts +24 -0
  223. package/dist/packages/connect/src/components/template/TemplateDialog.vue.d.ts +24 -0
  224. package/dist/packages/connect/src/components/template/TemplateInput.vue.d.ts +54 -0
  225. package/dist/packages/connect/src/components/tier/TierCard.vue.d.ts +39 -0
  226. package/dist/packages/connect/src/components/transactions/CollectionTransactions.vue.d.ts +10 -0
  227. package/dist/packages/connect/src/components/transactions/MemberTransactions.vue.d.ts +2 -0
  228. package/dist/packages/connect/src/composables/index.d.ts +2 -0
  229. package/dist/packages/connect/src/composables/loading.d.ts +19 -0
  230. package/dist/packages/connect/src/composables/template.d.ts +7 -0
  231. package/dist/packages/connect/src/export/collection.export.d.ts +9 -0
  232. package/dist/packages/connect/src/export/index.d.ts +9 -0
  233. package/dist/packages/connect/src/export/member.export.d.ts +33 -0
  234. package/dist/packages/connect/src/helpers/campaign.d.ts +94 -0
  235. package/dist/packages/connect/src/helpers/collectible.d.ts +58 -0
  236. package/dist/packages/connect/src/helpers/common.d.ts +1 -0
  237. package/dist/packages/connect/src/helpers/country.d.ts +21 -0
  238. package/dist/packages/connect/src/helpers/currency.d.ts +2 -0
  239. package/dist/packages/connect/src/helpers/effect.d.ts +7 -0
  240. package/dist/packages/connect/src/helpers/message.d.ts +32 -0
  241. package/dist/packages/connect/src/helpers/number.d.ts +3 -0
  242. package/dist/packages/connect/src/helpers/qr.d.ts +7 -0
  243. package/dist/packages/connect/src/helpers/rrule.d.ts +26 -0
  244. package/dist/packages/connect/src/helpers/rule.d.ts +91 -0
  245. package/dist/packages/connect/src/helpers/string.d.ts +16 -0
  246. package/dist/packages/connect/src/helpers/tax.d.ts +74 -0
  247. package/dist/packages/connect/src/helpers/trigger.d.ts +59 -0
  248. package/dist/packages/connect/src/helpers/zod.d.ts +27 -0
  249. package/dist/packages/connect/src/layouts/MainLayout.vue.d.ts +2 -0
  250. package/dist/packages/connect/src/main.d.ts +2 -0
  251. package/dist/packages/connect/src/router/index.d.ts +4 -0
  252. package/dist/packages/connect/src/router/name.d.ts +3 -0
  253. package/dist/packages/connect/src/router/shared.d.ts +11 -0
  254. package/dist/packages/connect/src/sheets/analytic/AnalyticSheet.vue.d.ts +12 -0
  255. package/dist/packages/connect/src/sheets/campaign/EditCampaignSheet.vue.d.ts +11 -0
  256. package/dist/packages/connect/src/sheets/campaign/SendVoucherSheet.vue.d.ts +13 -0
  257. package/dist/packages/connect/src/sheets/card/CardDesignSheet.vue.d.ts +9 -0
  258. package/dist/packages/connect/src/sheets/card/CreateCardSheet.vue.d.ts +9 -0
  259. package/dist/packages/connect/src/sheets/collectible/EditRewardSheet.vue.d.ts +15 -0
  260. package/dist/packages/connect/src/sheets/collectible/EditTitleSheet.vue.d.ts +15 -0
  261. package/dist/packages/connect/src/sheets/collection/CreateCollectionSheet.vue.d.ts +9 -0
  262. package/dist/packages/connect/src/sheets/effect/EffectSheet.vue.d.ts +135 -0
  263. package/dist/packages/connect/src/sheets/member/MemberDetailSheet.vue.d.ts +22 -0
  264. package/dist/packages/connect/src/sheets/store/StoreSettingSheet.vue.d.ts +80 -0
  265. package/dist/packages/connect/src/types/index.d.ts +4 -0
  266. package/dist/packages/connect/src/views/Analytic.vue.d.ts +2 -0
  267. package/dist/packages/connect/src/views/Marketing.vue.d.ts +2 -0
  268. package/dist/packages/connect/src/views/Setting.vue.d.ts +2 -0
  269. package/dist/packages/connect/src/views/Transaction.vue.d.ts +2 -0
  270. package/dist/packages/connect/src/views/campaign/Broadcast.vue.d.ts +2 -0
  271. package/dist/packages/connect/src/views/campaign/Promotion.vue.d.ts +2 -0
  272. package/dist/packages/connect/src/views/campaign/Voucher.vue.d.ts +2 -0
  273. package/dist/packages/connect/src/views/loyalty/Card.vue.d.ts +2 -0
  274. package/dist/packages/connect/src/views/loyalty/Member.vue.d.ts +2 -0
  275. package/dist/packages/connect/src/views/loyalty/Segment.vue.d.ts +2 -0
  276. package/dist/packages/connect/src/views/program/Credit.vue.d.ts +2 -0
  277. package/dist/packages/connect/src/views/program/Experience.vue.d.ts +2 -0
  278. package/dist/packages/connect/src/views/program/Game.vue.d.ts +2 -0
  279. package/dist/packages/connect/src/views/program/Point.vue.d.ts +2 -0
  280. package/dist/packages/connect/src/views/program/Tier.vue.d.ts +2 -0
  281. package/dist/packages/connect/src/views/program/Title.vue.d.ts +2 -0
  282. package/dist/packages/connect/src/views/store/Store.vue.d.ts +2 -0
  283. package/dist/packages/connect/src/views/store/StoreRewards.vue.d.ts +2 -0
  284. package/dist/rule-ByvLGHt_.js +1966 -0
  285. package/dist/rule-builder-C2aRGLCt.js +89 -0
  286. package/dist/style.css +1 -0
  287. package/dist/template-xUeXMsdp.js +190 -0
  288. package/dist/tier-BJDhpH6X.js +4 -0
  289. package/dist/tiers/tier=1.png +0 -0
  290. package/dist/tiers/tier=2.png +0 -0
  291. package/dist/tiers/tier=3.png +0 -0
  292. package/dist/tiers/tier=4.png +0 -0
  293. package/dist/titles/type=diamond.png +0 -0
  294. package/dist/titles/type=drinks.png +0 -0
  295. package/dist/titles/type=food.png +0 -0
  296. package/dist/titles/type=heart.png +0 -0
  297. package/dist/titles/type=medal.png +0 -0
  298. package/dist/titles/type=spend.png +0 -0
  299. package/dist/titles/type=thank-you.png +0 -0
  300. package/dist/titles/type=thumbs-up.png +0 -0
  301. package/dist/titles/type=years.png +0 -0
  302. package/dist/xlsx-CxXT5AXI.js +15491 -0
  303. package/package.json +67 -0
@@ -0,0 +1,1757 @@
1
+ import { defineComponent as B, ref as U, resolveComponent as s, openBlock as o, createBlock as O, unref as C, withCtx as g, renderSlot as T, createElementBlock as d, toDisplayString as y, 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 "./index-y3taWZm8.js";
3
+ import "./index-Iej6yAF2.js";
4
+ import { R as a } from "./rule-builder-C2aRGLCt.js";
5
+ import { i as r } from "./helper-CRmH0_yS.js";
6
+ import { b as K, c as j } from "./index-DGFTGZj1.js";
7
+ const X = {
8
+ key: 0,
9
+ class: "fm-typo-en-body-lg-400 mb-4"
10
+ }, W = {
11
+ key: 1,
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" }, ye = /* @__PURE__ */ B({
14
+ __name: "CustomSelect",
15
+ props: {
16
+ label: {
17
+ type: String,
18
+ required: !1
19
+ },
20
+ placeholder: {
21
+ type: String,
22
+ required: !1
23
+ },
24
+ items: {
25
+ type: Object,
26
+ required: !0
27
+ },
28
+ modelValue: {
29
+ type: Object
30
+ },
31
+ zIndex: {
32
+ type: Number
33
+ },
34
+ multiselect: {
35
+ type: Boolean
36
+ }
37
+ },
38
+ emits: ["update:model-value"],
39
+ setup(t, { emit: N }) {
40
+ const v = N, c = U(!1);
41
+ return (b, _) => {
42
+ const F = s("FmIcon"), w = s("FmField"), V = s("FmMenuItem"), A = s("FmPopover");
43
+ return o(), O(A, {
44
+ "show-popover": C(c),
45
+ onPopoverChanged: _[0] || (_[0] = (n) => c.value = n),
46
+ "z-index": t.zIndex
47
+ }, {
48
+ "popover-button": g(() => [
49
+ T(b.$slots, "popover-button", {}, () => [
50
+ t.label ? (o(), d("div", X, y(t.label), 1)) : P("", !0),
51
+ I(w, null, {
52
+ append: g(() => [
53
+ T(b.$slots, "append"),
54
+ I(F, {
55
+ name: C(c) ? "expand_less" : "expand_more",
56
+ size: "md",
57
+ color: "black"
58
+ }, null, 8, ["name"])
59
+ ]),
60
+ default: g(() => {
61
+ var n;
62
+ return [
63
+ t.multiselect ? (o(), d("div", W, y(t.items.filter((i) => {
64
+ var p;
65
+ return (p = t.modelValue) == null ? void 0 : p.includes(i.value);
66
+ }).map((i) => i.label).join(", ")), 1)) : (o(), d("div", {
67
+ key: 0,
68
+ class: L(["fm-typo-en-body-lg-400", {
69
+ "text-fm-color-typo-secondary": !t.items.find(
70
+ (i) => i.value == t.modelValue
71
+ )
72
+ }])
73
+ }, y(((n = t.items.find((i) => i.value == t.modelValue)) == null ? void 0 : n.label) || t.placeholder), 3))
74
+ ];
75
+ }),
76
+ _: 3
77
+ })
78
+ ])
79
+ ]),
80
+ default: g(() => [
81
+ H("div", q, [
82
+ (o(!0), d(k, null, Y(t.items, (n) => {
83
+ var i, p;
84
+ return o(), O(V, {
85
+ class: L(`${t.multiselect ? (i = t.modelValue) != null && i.some((l) => l == n.value) ? "bg-fm-color-system-warning-100" : "" : t.modelValue == n.value}`),
86
+ "has-checkbox": t.multiselect,
87
+ key: n.value,
88
+ "model-value": t.multiselect ? (p = t.modelValue) == null ? void 0 : p.some((l) => l == n.value) : t.modelValue == n.value,
89
+ label: n.label,
90
+ onClick: (l) => {
91
+ var E;
92
+ if (l.stopPropagation(), !t.multiselect)
93
+ c.value = !1, v("update:model-value", n.value);
94
+ else {
95
+ const M = (E = t.modelValue) == null ? void 0 : E.some((u) => u == n.value);
96
+ v(
97
+ "update:model-value",
98
+ M ? (t.modelValue ?? []).filter((u) => u !== n.value) : [...t.modelValue ?? [], n.value]
99
+ );
100
+ }
101
+ }
102
+ }, null, 8, ["class", "has-checkbox", "model-value", "label", "onClick"]);
103
+ }), 128))
104
+ ])
105
+ ]),
106
+ _: 3
107
+ }, 8, ["show-popover", "z-index"]);
108
+ };
109
+ }
110
+ }), fe = {
111
+ PROMOTION: {
112
+ name: "Promotion Template",
113
+ description: "Promotion template for campaign creation.",
114
+ steps: [
115
+ {
116
+ name: "General information",
117
+ groups: [
118
+ {
119
+ name: "General",
120
+ fields: [
121
+ {
122
+ label: "Campaign name",
123
+ property: "campaign.name",
124
+ type: "text"
125
+ },
126
+ {
127
+ label: "Campaign description",
128
+ property: "campaign.description",
129
+ type: "textarea"
130
+ },
131
+ {
132
+ label: "Campaign period",
133
+ property: "campaign.timeframeOptions",
134
+ type: "timeframe"
135
+ }
136
+ ]
137
+ },
138
+ {
139
+ name: "Trigger",
140
+ fields: [
141
+ {
142
+ label: void 0,
143
+ property: "campaign.event.type",
144
+ type: "trigger",
145
+ extras: "campaign.type"
146
+ }
147
+ ]
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ name: "Discount",
153
+ groups: [
154
+ {
155
+ name: "Discount",
156
+ fields: [
157
+ {
158
+ label: void 0,
159
+ property: "campaign.effect",
160
+ type: "effect"
161
+ }
162
+ ]
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ name: "Terms and conditions",
168
+ groups: [
169
+ {
170
+ name: "Time limitation",
171
+ fields: [
172
+ {
173
+ label: void 0,
174
+ property: "campaign.event.rule",
175
+ type: "rule_time",
176
+ extras: "campaign.type"
177
+ }
178
+ ]
179
+ },
180
+ {
181
+ name: "Target audience",
182
+ fields: [
183
+ {
184
+ label: void 0,
185
+ property: "campaign.event.rule",
186
+ type: "rule_user"
187
+ }
188
+ ]
189
+ },
190
+ // {
191
+ // name: 'Game configuration',
192
+ // fields: [
193
+ // {
194
+ // label: undefined,
195
+ // property: 'campaign.gameConfig',
196
+ // type: 'promotion_game_type',
197
+ // },
198
+ // ],
199
+ // },
200
+ {
201
+ name: "Location",
202
+ fields: [
203
+ {
204
+ label: "Target location",
205
+ property: "campaign.targetLocation",
206
+ type: "target_location"
207
+ }
208
+ ]
209
+ }
210
+ ]
211
+ }
212
+ ],
213
+ defaultValue: {
214
+ // TODO: templateId use in db
215
+ templateId: "",
216
+ campaign: {
217
+ type: "PROMOTION",
218
+ // TODO: templateId use in db
219
+ templateId: "",
220
+ name: "",
221
+ description: "",
222
+ image: "",
223
+ effect: null,
224
+ event: {
225
+ type: "MAKING_ORDER",
226
+ rule: a.scaffoldGroup()
227
+ },
228
+ group: null,
229
+ targetLocation: null,
230
+ timeframeOptions: {
231
+ type: "timeframe",
232
+ property: "__now"
233
+ },
234
+ gameConfig: null
235
+ }
236
+ }
237
+ },
238
+ VOUCHER: {
239
+ name: "Voucher Template",
240
+ description: "Voucher template for campaign creation.",
241
+ steps: [
242
+ {
243
+ name: "General information",
244
+ groups: [
245
+ {
246
+ name: "General",
247
+ fields: [
248
+ {
249
+ label: "Campaign name",
250
+ property: "campaign.name",
251
+ type: "text"
252
+ },
253
+ {
254
+ label: "Campaign description",
255
+ property: "campaign.description",
256
+ type: "textarea"
257
+ },
258
+ {
259
+ label: "Campaign period",
260
+ property: "campaign.timeframeOptions",
261
+ type: "timeframe"
262
+ }
263
+ ]
264
+ },
265
+ {
266
+ name: "Trigger",
267
+ fields: [
268
+ {
269
+ label: void 0,
270
+ property: "campaign.event.type",
271
+ type: "trigger",
272
+ extras: "campaign.type"
273
+ }
274
+ ]
275
+ },
276
+ {
277
+ name: "",
278
+ fields: [
279
+ {
280
+ label: void 0,
281
+ property: "campaign.event.rule.rules.g_schedule",
282
+ type: "rule_schedule",
283
+ extras: "campaign.timeframeOptions"
284
+ }
285
+ ],
286
+ condition: {
287
+ property: "campaign.event.type",
288
+ value: "SCHEDULE"
289
+ }
290
+ }
291
+ ]
292
+ },
293
+ {
294
+ name: "Discount",
295
+ groups: [
296
+ {
297
+ name: "Discount",
298
+ fields: [
299
+ {
300
+ label: void 0,
301
+ property: "configs.extras.effect",
302
+ type: "effect"
303
+ }
304
+ ]
305
+ },
306
+ {
307
+ name: "Voucher detail",
308
+ fields: [
309
+ {
310
+ label: "Voucher name",
311
+ property: "configs.name",
312
+ type: "text"
313
+ },
314
+ {
315
+ label: "Voucher description",
316
+ property: "configs.description",
317
+ type: "textarea"
318
+ },
319
+ {
320
+ label: "Voucher image",
321
+ property: "configs.image",
322
+ type: "image"
323
+ }
324
+ ]
325
+ }
326
+ ]
327
+ },
328
+ {
329
+ name: "Terms and conditions",
330
+ groups: [
331
+ {
332
+ name: "Time limitation",
333
+ fields: [
334
+ {
335
+ label: void 0,
336
+ property: "campaign.event.rule",
337
+ type: "rule_time",
338
+ extras: "campaign.type"
339
+ }
340
+ ],
341
+ condition: {
342
+ not: !0,
343
+ property: "campaign.event.type",
344
+ value: "SCHEDULE"
345
+ }
346
+ },
347
+ {
348
+ name: "Spending criteria",
349
+ fields: [
350
+ {
351
+ label: void 0,
352
+ property: "campaign.event.rule",
353
+ type: "rule_bill"
354
+ }
355
+ ],
356
+ condition: {
357
+ property: "campaign.event.type",
358
+ value: "BILL_COMPLETED"
359
+ }
360
+ },
361
+ {
362
+ name: "Feedback criteria",
363
+ fields: [
364
+ {
365
+ label: void 0,
366
+ property: "campaign.event.rule",
367
+ type: "rule_feedback"
368
+ }
369
+ ],
370
+ condition: {
371
+ property: "campaign.event.type",
372
+ value: "FEEDBACK"
373
+ }
374
+ },
375
+ {
376
+ name: "Target audience",
377
+ fields: [
378
+ {
379
+ label: void 0,
380
+ property: "campaign.event.rule",
381
+ type: "rule_user"
382
+ }
383
+ // {
384
+ // label: 'Birthday config',
385
+ // property: 'campaign.event.__rule',
386
+ // type: 'rule_birthday',
387
+ // },
388
+ ]
389
+ },
390
+ {
391
+ name: "Voucher usage configuration",
392
+ fields: [
393
+ {
394
+ label: void 0,
395
+ property: "configs.options",
396
+ type: "collectible_options"
397
+ }
398
+ ]
399
+ }
400
+ ]
401
+ },
402
+ {
403
+ name: "Configuration",
404
+ groups: [
405
+ {
406
+ name: "Location",
407
+ fields: [
408
+ {
409
+ label: "Target location",
410
+ property: "campaign.targetLocation",
411
+ type: "target_location"
412
+ }
413
+ ]
414
+ },
415
+ {
416
+ name: "Notify audience",
417
+ fields: [
418
+ {
419
+ label: "Send notification",
420
+ property: "campaign.notify",
421
+ type: "switch"
422
+ }
423
+ ]
424
+ }
425
+ ]
426
+ }
427
+ ],
428
+ defaultValue: {
429
+ // TODO: templateId use in db
430
+ templateId: "",
431
+ campaign: {
432
+ collectible: "",
433
+ type: "VOUCHER",
434
+ // TODO: templateId use in db
435
+ templateId: "",
436
+ name: "",
437
+ description: "",
438
+ image: "",
439
+ event: {
440
+ type: "BILL_COMPLETED",
441
+ rule: a.scaffoldGroup()
442
+ },
443
+ group: null,
444
+ targetLocation: null,
445
+ timeframeOptions: {
446
+ type: "timeframe",
447
+ property: "__now"
448
+ },
449
+ earningOption: {
450
+ type: "FIXED",
451
+ amount: 1
452
+ }
453
+ },
454
+ configs: r("VOUCHER", {
455
+ name: "",
456
+ business: null,
457
+ noCampaign: !1
458
+ })
459
+ }
460
+ },
461
+ BROADCAST: {
462
+ name: "Broadcast Template",
463
+ description: "Broadcast template for campaign creation.",
464
+ steps: [
465
+ {
466
+ name: "General information",
467
+ groups: [
468
+ {
469
+ name: "General",
470
+ fields: [
471
+ {
472
+ label: "Campaign name",
473
+ property: "campaign.name",
474
+ type: "text"
475
+ },
476
+ {
477
+ label: "Campaign description",
478
+ property: "campaign.description",
479
+ type: "textarea"
480
+ }
481
+ ]
482
+ },
483
+ {
484
+ name: "Trigger",
485
+ fields: [
486
+ {
487
+ label: void 0,
488
+ property: "campaign.event.type",
489
+ type: "trigger",
490
+ extras: "campaign.type"
491
+ }
492
+ ]
493
+ },
494
+ {
495
+ name: "Broadcast configuration",
496
+ fields: [
497
+ {
498
+ label: void 0,
499
+ property: "campaign.event.rule.rules.g_schedule",
500
+ type: "rule_schedule",
501
+ extras: "campaign.timeframeOptions"
502
+ }
503
+ ],
504
+ condition: {
505
+ property: "campaign.event.type",
506
+ value: "SCHEDULE"
507
+ }
508
+ }
509
+ ]
510
+ },
511
+ {
512
+ name: "Terms and conditions",
513
+ groups: [
514
+ {
515
+ name: "Target audience",
516
+ fields: [
517
+ {
518
+ label: void 0,
519
+ property: "campaign.event.rule",
520
+ type: "rule_user"
521
+ }
522
+ ]
523
+ },
524
+ {
525
+ name: "Feedback criteria",
526
+ fields: [
527
+ {
528
+ label: void 0,
529
+ property: "campaign.event.rule",
530
+ type: "rule_feedback"
531
+ }
532
+ ],
533
+ condition: {
534
+ property: "campaign.event.type",
535
+ value: "FEEDBACK"
536
+ }
537
+ }
538
+ ]
539
+ },
540
+ {
541
+ name: "Configuration",
542
+ groups: [
543
+ {
544
+ name: "Content",
545
+ fields: [
546
+ {
547
+ label: void 0,
548
+ property: "campaign.message",
549
+ type: "message"
550
+ }
551
+ ]
552
+ },
553
+ {
554
+ name: "Location",
555
+ fields: [
556
+ {
557
+ label: void 0,
558
+ property: "campaign.targetLocation",
559
+ type: "target_location"
560
+ }
561
+ ]
562
+ }
563
+ ]
564
+ }
565
+ ],
566
+ defaultValue: {
567
+ templateId: "",
568
+ campaign: {
569
+ type: "BROADCAST",
570
+ // TODO: templateId use in db
571
+ templateId: "",
572
+ name: "",
573
+ description: "",
574
+ image: "",
575
+ event: {
576
+ type: "SCHEDULE",
577
+ rule: a.setRuleToGroup(
578
+ a.scaffoldGroup(),
579
+ a.setRuleToGroup(
580
+ a.scaffoldGroup("g_schedule"),
581
+ [
582
+ a.constructEntry(
583
+ "trigger.date",
584
+ "_rrule",
585
+ "RRULE:FREQ=DAILY;INTERVAL=1;BYHOUR=0;BYMINUTE=0;BYSECOND=0;WKST=SU"
586
+ ),
587
+ a.constructEntry(
588
+ "trigger.time",
589
+ "_isOnTime",
590
+ "00:00"
591
+ )
592
+ ],
593
+ "&&"
594
+ )
595
+ )
596
+ },
597
+ group: null,
598
+ targetLocation: null,
599
+ timeframeOptions: {
600
+ type: "timeframe",
601
+ property: "__now"
602
+ },
603
+ message: {
604
+ channel: "SMS",
605
+ content: "",
606
+ language: "en",
607
+ variables: []
608
+ }
609
+ }
610
+ }
611
+ },
612
+ POINT: {
613
+ name: "Experience Template",
614
+ description: "Experience template for campaign creation.",
615
+ steps: [
616
+ {
617
+ name: "General information",
618
+ groups: [
619
+ {
620
+ name: "General",
621
+ fields: [
622
+ {
623
+ label: "Campaign name",
624
+ property: "campaign.name",
625
+ type: "text"
626
+ },
627
+ {
628
+ label: "Campaign description",
629
+ property: "campaign.description",
630
+ type: "textarea"
631
+ },
632
+ {
633
+ label: "Campaign period",
634
+ property: "campaign.timeframeOptions",
635
+ type: "timeframe"
636
+ }
637
+ ]
638
+ },
639
+ {
640
+ name: "Trigger",
641
+ fields: [
642
+ {
643
+ label: void 0,
644
+ property: "campaign.event.type",
645
+ type: "trigger",
646
+ extras: "campaign.type"
647
+ }
648
+ ]
649
+ },
650
+ {
651
+ name: void 0,
652
+ fields: [
653
+ {
654
+ label: void 0,
655
+ property: "campaign.event.rule.rules.g_schedule",
656
+ type: "rule_schedule",
657
+ extras: "campaign.timeframeOptions"
658
+ }
659
+ ],
660
+ condition: {
661
+ property: "campaign.event.type",
662
+ value: "SCHEDULE"
663
+ }
664
+ }
665
+ ]
666
+ },
667
+ {
668
+ name: "Terms and conditions",
669
+ groups: [
670
+ {
671
+ name: "Time limitation",
672
+ fields: [
673
+ {
674
+ label: void 0,
675
+ property: "campaign.event.rule",
676
+ type: "rule_time",
677
+ extras: "campaign.type"
678
+ }
679
+ ],
680
+ condition: {
681
+ not: !0,
682
+ property: "campaign.event.type",
683
+ value: "SCHEDULE"
684
+ }
685
+ },
686
+ {
687
+ name: "Spending criteria",
688
+ fields: [
689
+ {
690
+ label: void 0,
691
+ property: "campaign.event.rule",
692
+ type: "rule_bill"
693
+ }
694
+ ],
695
+ condition: {
696
+ property: "campaign.event.type",
697
+ value: "BILL_COMPLETED"
698
+ }
699
+ },
700
+ {
701
+ name: "Feedback criteria",
702
+ fields: [
703
+ {
704
+ label: void 0,
705
+ property: "campaign.event.rule",
706
+ type: "rule_feedback"
707
+ }
708
+ ],
709
+ condition: {
710
+ property: "campaign.event.type",
711
+ value: "FEEDBACK"
712
+ }
713
+ },
714
+ {
715
+ name: "Target audience",
716
+ fields: [
717
+ {
718
+ label: void 0,
719
+ property: "campaign.event.rule",
720
+ type: "rule_user"
721
+ }
722
+ ]
723
+ }
724
+ ]
725
+ },
726
+ {
727
+ name: "Configuration",
728
+ groups: [
729
+ {
730
+ name: "Earning type",
731
+ fields: [
732
+ {
733
+ label: void 0,
734
+ property: "campaign.earningOption",
735
+ type: "earning_option",
736
+ extras: "campaign"
737
+ },
738
+ {
739
+ label: void 0,
740
+ property: "campaign.config.validityOption",
741
+ type: "validity_option"
742
+ }
743
+ ]
744
+ },
745
+ {
746
+ name: "Location",
747
+ fields: [
748
+ {
749
+ label: "Target location",
750
+ property: "campaign.targetLocation",
751
+ type: "target_location"
752
+ }
753
+ ]
754
+ }
755
+ // {
756
+ // name: 'Notify audience',
757
+ // fields: [
758
+ // {
759
+ // label: 'Send notification',
760
+ // property: 'campaign.notify',
761
+ // type: 'switch',
762
+ // },
763
+ // ],
764
+ // },
765
+ ]
766
+ }
767
+ ],
768
+ defaultValue: {
769
+ // TODO: templateId use in db
770
+ templateId: "",
771
+ campaign: {
772
+ collectible: "",
773
+ type: "POINT",
774
+ // TODO: templateId use in db
775
+ templateId: "",
776
+ name: "",
777
+ description: "",
778
+ image: "",
779
+ event: {
780
+ type: "BILL_COMPLETED",
781
+ rule: a.scaffoldGroup()
782
+ },
783
+ group: null,
784
+ targetLocation: null,
785
+ timeframeOptions: {
786
+ type: "timeframe",
787
+ property: "__now"
788
+ },
789
+ earningOption: {
790
+ type: "FIXED",
791
+ amount: 1
792
+ },
793
+ config: {
794
+ validityOption: {}
795
+ }
796
+ }
797
+ }
798
+ },
799
+ COIN: {
800
+ name: "Point Template",
801
+ description: "Point template for campaign creation.",
802
+ steps: [
803
+ {
804
+ name: "General information",
805
+ groups: [
806
+ {
807
+ name: "General",
808
+ fields: [
809
+ {
810
+ label: "Campaign name",
811
+ property: "campaign.name",
812
+ type: "text"
813
+ },
814
+ {
815
+ label: "Campaign description",
816
+ property: "campaign.description",
817
+ type: "textarea"
818
+ },
819
+ {
820
+ label: "Campaign period",
821
+ property: "campaign.timeframeOptions",
822
+ type: "timeframe"
823
+ }
824
+ ]
825
+ },
826
+ {
827
+ name: "Trigger",
828
+ fields: [
829
+ {
830
+ label: void 0,
831
+ property: "campaign.event.type",
832
+ type: "trigger",
833
+ extras: "campaign.type"
834
+ }
835
+ ]
836
+ },
837
+ {
838
+ name: void 0,
839
+ fields: [
840
+ {
841
+ label: void 0,
842
+ property: "campaign.event.rule.rules.g_schedule",
843
+ type: "rule_schedule",
844
+ extras: "campaign.timeframeOptions"
845
+ }
846
+ ],
847
+ condition: {
848
+ property: "campaign.event.type",
849
+ value: "SCHEDULE"
850
+ }
851
+ }
852
+ ]
853
+ },
854
+ {
855
+ name: "Terms and conditions",
856
+ groups: [
857
+ {
858
+ name: "Time limitation",
859
+ fields: [
860
+ {
861
+ label: void 0,
862
+ property: "campaign.event.rule",
863
+ type: "rule_time",
864
+ extras: "campaign.type"
865
+ }
866
+ ],
867
+ condition: {
868
+ not: !0,
869
+ property: "campaign.event.type",
870
+ value: "SCHEDULE"
871
+ }
872
+ },
873
+ {
874
+ name: "Spending criteria",
875
+ fields: [
876
+ {
877
+ label: void 0,
878
+ property: "campaign.event.rule",
879
+ type: "rule_bill"
880
+ }
881
+ ],
882
+ condition: {
883
+ property: "campaign.event.type",
884
+ value: "BILL_COMPLETED"
885
+ }
886
+ },
887
+ {
888
+ name: "Feedback criteria",
889
+ fields: [
890
+ {
891
+ label: void 0,
892
+ property: "campaign.event.rule",
893
+ type: "rule_feedback"
894
+ }
895
+ ],
896
+ condition: {
897
+ property: "campaign.event.type",
898
+ value: "FEEDBACK"
899
+ }
900
+ },
901
+ {
902
+ name: "Target audience",
903
+ fields: [
904
+ {
905
+ label: void 0,
906
+ property: "campaign.event.rule",
907
+ type: "rule_user"
908
+ }
909
+ ]
910
+ }
911
+ ]
912
+ },
913
+ {
914
+ name: "Configuration",
915
+ groups: [
916
+ {
917
+ name: "Earning type",
918
+ fields: [
919
+ {
920
+ label: void 0,
921
+ property: "campaign.earningOption",
922
+ type: "earning_option",
923
+ extras: "campaign"
924
+ },
925
+ {
926
+ label: void 0,
927
+ property: "campaign.config.validityOption",
928
+ type: "validity_option"
929
+ }
930
+ ]
931
+ },
932
+ {
933
+ name: "Location",
934
+ fields: [
935
+ {
936
+ label: "Target location",
937
+ property: "campaign.targetLocation",
938
+ type: "target_location"
939
+ }
940
+ ]
941
+ }
942
+ // {
943
+ // name: 'Notify audience',
944
+ // fields: [
945
+ // {
946
+ // label: 'Send notification',
947
+ // property: 'campaign.notify',
948
+ // type: 'switch',
949
+ // },
950
+ // ],
951
+ // },
952
+ ]
953
+ }
954
+ ],
955
+ defaultValue: {
956
+ // TODO: templateId use in db
957
+ templateId: "",
958
+ campaign: {
959
+ collectible: "",
960
+ type: "COIN",
961
+ // TODO: templateId use in db
962
+ templateId: "",
963
+ name: "",
964
+ description: "",
965
+ image: "",
966
+ event: {
967
+ type: "BILL_COMPLETED",
968
+ rule: a.scaffoldGroup()
969
+ },
970
+ group: null,
971
+ targetLocation: null,
972
+ timeframeOptions: {
973
+ type: "timeframe",
974
+ property: "__now"
975
+ },
976
+ earningOption: {
977
+ type: "FIXED",
978
+ amount: 1
979
+ },
980
+ config: {
981
+ validityOption: {}
982
+ }
983
+ }
984
+ }
985
+ },
986
+ CREDIT: {
987
+ name: "Credit Template",
988
+ description: "Credit template for campaign creation.",
989
+ steps: [
990
+ {
991
+ name: "General information",
992
+ groups: [
993
+ {
994
+ name: "General",
995
+ fields: [
996
+ {
997
+ label: "Campaign name",
998
+ property: "campaign.name",
999
+ type: "text"
1000
+ },
1001
+ {
1002
+ label: "Campaign description",
1003
+ property: "campaign.description",
1004
+ type: "textarea"
1005
+ },
1006
+ {
1007
+ label: "Campaign period",
1008
+ property: "campaign.timeframeOptions",
1009
+ type: "timeframe"
1010
+ }
1011
+ ]
1012
+ },
1013
+ {
1014
+ name: "Trigger",
1015
+ fields: [
1016
+ {
1017
+ label: void 0,
1018
+ property: "campaign.event.type",
1019
+ type: "trigger",
1020
+ extras: "campaign.type"
1021
+ }
1022
+ ]
1023
+ },
1024
+ {
1025
+ name: void 0,
1026
+ fields: [
1027
+ {
1028
+ label: void 0,
1029
+ property: "campaign.event.rule.rules.g_schedule",
1030
+ type: "rule_schedule",
1031
+ extras: "campaign.timeframeOptions"
1032
+ }
1033
+ ],
1034
+ condition: {
1035
+ property: "campaign.event.type",
1036
+ value: "SCHEDULE"
1037
+ }
1038
+ }
1039
+ ]
1040
+ },
1041
+ {
1042
+ name: "Terms and conditions",
1043
+ groups: [
1044
+ {
1045
+ name: "Time limitation",
1046
+ fields: [
1047
+ {
1048
+ label: void 0,
1049
+ property: "campaign.event.rule",
1050
+ type: "rule_time",
1051
+ extras: "campaign.type"
1052
+ }
1053
+ ],
1054
+ condition: {
1055
+ not: !0,
1056
+ property: "campaign.event.type",
1057
+ value: "SCHEDULE"
1058
+ }
1059
+ },
1060
+ {
1061
+ name: "Spending criteria",
1062
+ fields: [
1063
+ {
1064
+ label: void 0,
1065
+ property: "campaign.event.rule",
1066
+ type: "rule_bill"
1067
+ }
1068
+ ],
1069
+ condition: {
1070
+ property: "campaign.event.type",
1071
+ value: "BILL_COMPLETED"
1072
+ }
1073
+ },
1074
+ {
1075
+ name: "Feedback criteria",
1076
+ fields: [
1077
+ {
1078
+ label: void 0,
1079
+ property: "campaign.event.rule",
1080
+ type: "rule_feedback"
1081
+ }
1082
+ ],
1083
+ condition: {
1084
+ property: "campaign.event.type",
1085
+ value: "FEEDBACK"
1086
+ }
1087
+ },
1088
+ {
1089
+ name: "Target audience",
1090
+ fields: [
1091
+ {
1092
+ label: void 0,
1093
+ property: "campaign.event.rule",
1094
+ type: "rule_user"
1095
+ }
1096
+ ]
1097
+ }
1098
+ ]
1099
+ },
1100
+ {
1101
+ name: "Configuration",
1102
+ groups: [
1103
+ {
1104
+ name: "Earning type",
1105
+ fields: [
1106
+ {
1107
+ label: void 0,
1108
+ property: "campaign.earningOption",
1109
+ type: "earning_option",
1110
+ extras: "campaign"
1111
+ },
1112
+ {
1113
+ label: void 0,
1114
+ property: "campaign.config.validityOption",
1115
+ type: "validity_option"
1116
+ }
1117
+ ]
1118
+ },
1119
+ {
1120
+ name: "Location",
1121
+ fields: [
1122
+ {
1123
+ label: "Target location",
1124
+ property: "campaign.targetLocation",
1125
+ type: "target_location"
1126
+ }
1127
+ ]
1128
+ }
1129
+ // {
1130
+ // name: 'Notify audience',
1131
+ // fields: [
1132
+ // {
1133
+ // label: 'Send notification',
1134
+ // property: 'campaign.notify',
1135
+ // type: 'switch',
1136
+ // },
1137
+ // ],
1138
+ // },
1139
+ ]
1140
+ }
1141
+ ],
1142
+ defaultValue: {
1143
+ // TODO: templateId use in db
1144
+ templateId: "",
1145
+ campaign: {
1146
+ collectible: "",
1147
+ type: "CREDIT",
1148
+ // TODO: templateId use in db
1149
+ templateId: "",
1150
+ name: "",
1151
+ description: "",
1152
+ image: "",
1153
+ event: {
1154
+ type: "BILL_COMPLETED",
1155
+ rule: a.scaffoldGroup()
1156
+ },
1157
+ group: null,
1158
+ targetLocation: null,
1159
+ timeframeOptions: {
1160
+ type: "timeframe",
1161
+ property: "__now"
1162
+ },
1163
+ earningOption: {
1164
+ type: "FIXED",
1165
+ amount: 1
1166
+ },
1167
+ config: {
1168
+ validityOption: {}
1169
+ }
1170
+ }
1171
+ }
1172
+ },
1173
+ GAME: {
1174
+ name: "Token Template",
1175
+ description: "Token template for campaign creation.",
1176
+ steps: [
1177
+ {
1178
+ name: "General information",
1179
+ groups: [
1180
+ {
1181
+ name: "General",
1182
+ fields: [
1183
+ {
1184
+ label: "Campaign name",
1185
+ property: "campaign.name",
1186
+ type: "text"
1187
+ },
1188
+ {
1189
+ label: "Campaign description",
1190
+ property: "campaign.description",
1191
+ type: "textarea"
1192
+ },
1193
+ {
1194
+ label: "Campaign period",
1195
+ property: "campaign.timeframeOptions",
1196
+ type: "timeframe"
1197
+ }
1198
+ ]
1199
+ },
1200
+ {
1201
+ name: "Trigger",
1202
+ fields: [
1203
+ {
1204
+ label: void 0,
1205
+ property: "campaign.event.type",
1206
+ type: "trigger",
1207
+ extras: "campaign.type"
1208
+ }
1209
+ ]
1210
+ },
1211
+ {
1212
+ name: void 0,
1213
+ fields: [
1214
+ {
1215
+ label: void 0,
1216
+ property: "campaign.event.rule.rules.g_schedule",
1217
+ type: "rule_schedule",
1218
+ extras: "campaign.timeframeOptions"
1219
+ }
1220
+ ],
1221
+ condition: {
1222
+ property: "campaign.event.type",
1223
+ value: "SCHEDULE"
1224
+ }
1225
+ }
1226
+ ]
1227
+ },
1228
+ {
1229
+ name: "Terms and conditions",
1230
+ groups: [
1231
+ {
1232
+ name: "Time limitation",
1233
+ fields: [
1234
+ {
1235
+ label: void 0,
1236
+ property: "campaign.event.rule",
1237
+ type: "rule_time",
1238
+ extras: "campaign.type"
1239
+ }
1240
+ ],
1241
+ condition: {
1242
+ not: !0,
1243
+ property: "campaign.event.type",
1244
+ value: "SCHEDULE"
1245
+ }
1246
+ },
1247
+ {
1248
+ name: "Spending criteria",
1249
+ fields: [
1250
+ {
1251
+ label: void 0,
1252
+ property: "campaign.event.rule",
1253
+ type: "rule_bill"
1254
+ }
1255
+ ],
1256
+ condition: {
1257
+ property: "campaign.event.type",
1258
+ value: "BILL_COMPLETED"
1259
+ }
1260
+ },
1261
+ {
1262
+ name: "Feedback criteria",
1263
+ fields: [
1264
+ {
1265
+ label: void 0,
1266
+ property: "campaign.event.rule",
1267
+ type: "rule_feedback"
1268
+ }
1269
+ ],
1270
+ condition: {
1271
+ property: "campaign.event.type",
1272
+ value: "FEEDBACK"
1273
+ }
1274
+ },
1275
+ {
1276
+ name: "Target audience",
1277
+ fields: [
1278
+ {
1279
+ label: void 0,
1280
+ property: "campaign.event.rule",
1281
+ type: "rule_user"
1282
+ }
1283
+ ]
1284
+ }
1285
+ ]
1286
+ },
1287
+ {
1288
+ name: "Configuration",
1289
+ groups: [
1290
+ {
1291
+ name: "Earning type",
1292
+ fields: [
1293
+ {
1294
+ label: void 0,
1295
+ property: "campaign.earningOption",
1296
+ type: "earning_option",
1297
+ extras: "campaign"
1298
+ },
1299
+ {
1300
+ label: void 0,
1301
+ property: "campaign.config.validityOption",
1302
+ type: "validity_option"
1303
+ }
1304
+ ]
1305
+ },
1306
+ {
1307
+ name: "Location",
1308
+ fields: [
1309
+ {
1310
+ label: "Target location",
1311
+ property: "campaign.targetLocation",
1312
+ type: "target_location"
1313
+ }
1314
+ ]
1315
+ }
1316
+ ]
1317
+ },
1318
+ {
1319
+ name: "Game configuration",
1320
+ groups: [
1321
+ {
1322
+ name: "Game type",
1323
+ fields: [
1324
+ {
1325
+ label: "Select a game where you want your customer to play",
1326
+ property: "configs.extras.gameType",
1327
+ type: "game_type"
1328
+ }
1329
+ ]
1330
+ }
1331
+ ]
1332
+ },
1333
+ {
1334
+ name: "Reward pool",
1335
+ groups: [
1336
+ {
1337
+ name: "Reward pool",
1338
+ fields: [
1339
+ {
1340
+ label: "Configure the reward type and weightage given to your customer.",
1341
+ property: "campaign.game.rewards",
1342
+ type: "reward_pool"
1343
+ }
1344
+ ]
1345
+ }
1346
+ ]
1347
+ }
1348
+ ],
1349
+ defaultValue: {
1350
+ // TODO: templateId use in db
1351
+ templateId: "",
1352
+ campaign: {
1353
+ collectible: "",
1354
+ type: "GAME",
1355
+ // TODO: templateId use in db
1356
+ templateId: "",
1357
+ name: "",
1358
+ description: "",
1359
+ image: "",
1360
+ event: {
1361
+ type: "BILL_COMPLETED",
1362
+ rule: a.scaffoldGroup()
1363
+ },
1364
+ group: null,
1365
+ targetLocation: null,
1366
+ timeframeOptions: {
1367
+ type: "timeframe",
1368
+ property: "__now"
1369
+ },
1370
+ earningOption: {
1371
+ type: "FIXED",
1372
+ amount: 1
1373
+ },
1374
+ config: {
1375
+ validityOption: {}
1376
+ },
1377
+ game: {
1378
+ event: {
1379
+ type: "GAME_COMPLETED",
1380
+ rule: a.scaffoldGroup()
1381
+ },
1382
+ name: "rewardpool_",
1383
+ targetLocation: null,
1384
+ timeframeOptions: {
1385
+ type: "timeframe",
1386
+ property: "__now"
1387
+ },
1388
+ type: "REWARD_POOL",
1389
+ rewards: []
1390
+ }
1391
+ },
1392
+ configs: r("GAME", {
1393
+ name: "Token",
1394
+ business: null,
1395
+ noCampaign: !1
1396
+ })
1397
+ }
1398
+ }
1399
+ };
1400
+ ({
1401
+ ...a.scaffoldGroup()
1402
+ }, r("VOUCHER", {
1403
+ name: "",
1404
+ business: null,
1405
+ noCampaign: !1
1406
+ }));
1407
+ ({
1408
+ ...a.scaffoldGroup()
1409
+ }, r("VOUCHER", {
1410
+ name: "",
1411
+ business: null,
1412
+ noCampaign: !1
1413
+ }));
1414
+ ({
1415
+ ...a.scaffoldGroup()
1416
+ });
1417
+ ({
1418
+ ...a.scaffoldGroup()
1419
+ });
1420
+ ({
1421
+ ...a.scaffoldGroup()
1422
+ });
1423
+ a.setRuleToGroup(
1424
+ a.scaffoldGroup(),
1425
+ a.setRuleToGroup(
1426
+ a.scaffoldGroup("g_user"),
1427
+ [a.constructEntry("user.member", "_isIn", [!0])],
1428
+ "&&"
1429
+ )
1430
+ );
1431
+ a.setRuleToGroup(a.scaffoldGroup(), [
1432
+ a.setRuleToGroup(
1433
+ a.scaffoldGroup("g_user"),
1434
+ [
1435
+ a.constructEntry("user.birthday", "_isRange", {
1436
+ op: "this",
1437
+ unit: "month",
1438
+ ignoreYear: !0
1439
+ })
1440
+ ],
1441
+ "&&"
1442
+ )
1443
+ ]);
1444
+ ({
1445
+ ...a.scaffoldGroup()
1446
+ });
1447
+ ({
1448
+ ...a.scaffoldGroup()
1449
+ });
1450
+ ({
1451
+ ...a.scaffoldGroup()
1452
+ }, r("VOUCHER", {
1453
+ name: "",
1454
+ business: null,
1455
+ noCampaign: !1
1456
+ }));
1457
+ a.setRuleToGroup(
1458
+ a.scaffoldGroup(),
1459
+ a.setRuleToGroup(
1460
+ a.scaffoldGroup("g_schedule"),
1461
+ [
1462
+ a.constructEntry("trigger.date", "_isOnDate", ""),
1463
+ a.constructEntry("trigger.time", "_isOnTime", "00:00")
1464
+ ],
1465
+ "&&"
1466
+ )
1467
+ );
1468
+ a.setRuleToGroup(a.scaffoldGroup(), [
1469
+ a.setRuleToGroup(
1470
+ a.scaffoldGroup("g_schedule"),
1471
+ [
1472
+ a.constructEntry(
1473
+ "trigger.date",
1474
+ "_rrule",
1475
+ "RRULE:FREQ=MONTHLY;INTERVAL=1;BYHOUR=0;BYMINUTE=0;BYSECOND=0;WKST=SU;BYMONTHDAY=1"
1476
+ ),
1477
+ a.constructEntry("trigger.time", "_isOnTime", "00:00")
1478
+ ],
1479
+ "&&"
1480
+ )
1481
+ ]);
1482
+ ({ ...a.scaffoldGroup() });
1483
+ a.setRuleToGroup(
1484
+ a.scaffoldGroup(),
1485
+ a.setRuleToGroup(
1486
+ a.scaffoldGroup("g_schedule"),
1487
+ [
1488
+ a.constructEntry(
1489
+ "trigger.date",
1490
+ "_rrule",
1491
+ "RRULE:FREQ=WEEKLY;INTERVAL=1;BYHOUR=0;BYMINUTE=0;BYSECOND=0;WKST=SU;BYDAY=MO"
1492
+ ),
1493
+ a.constructEntry("trigger.time", "_isOnTime", "00:00")
1494
+ ],
1495
+ "&&"
1496
+ )
1497
+ );
1498
+ a.scaffoldGroup(), a.scaffoldGroup(), r("GAME", {
1499
+ name: "Token",
1500
+ business: null,
1501
+ noCampaign: !1
1502
+ });
1503
+ ({
1504
+ ...a.scaffoldGroup()
1505
+ }, r("VOUCHER", {
1506
+ name: "",
1507
+ business: null,
1508
+ noCampaign: !1
1509
+ }));
1510
+ a.setRuleToGroup(a.scaffoldGroup(), [
1511
+ a.setRuleToGroup(
1512
+ a.scaffoldGroup("g_schedule"),
1513
+ [
1514
+ a.constructEntry(
1515
+ "trigger.date",
1516
+ "_rrule",
1517
+ "RRULE:FREQ=MONTHLY;INTERVAL=1;BYHOUR=0;BYMINUTE=0;BYSECOND=0;WKST=SU;BYMONTHDAY=1"
1518
+ ),
1519
+ a.constructEntry("trigger.time", "_isOnTime", "00:00")
1520
+ ],
1521
+ "&&"
1522
+ ),
1523
+ a.setRuleToGroup(
1524
+ a.scaffoldGroup("g_user"),
1525
+ [
1526
+ a.constructEntry("user.birthday", "_isRange", {
1527
+ op: "this",
1528
+ unit: "month",
1529
+ ignoreYear: !0
1530
+ })
1531
+ ],
1532
+ "&&"
1533
+ )
1534
+ ]), r("VOUCHER", {
1535
+ name: "",
1536
+ business: null,
1537
+ noCampaign: !1
1538
+ });
1539
+ ({
1540
+ ...a.scaffoldGroup()
1541
+ });
1542
+ ({
1543
+ ...a.scaffoldGroup()
1544
+ });
1545
+ ({
1546
+ ...a.scaffoldGroup()
1547
+ });
1548
+ ({
1549
+ ...a.scaffoldGroup()
1550
+ });
1551
+ ({
1552
+ ...a.scaffoldGroup()
1553
+ });
1554
+ ({
1555
+ ...a.scaffoldGroup()
1556
+ });
1557
+ const z = e.enum([
1558
+ "MEMBER_REWARD",
1559
+ "PAID_LOYALTY",
1560
+ "COLLECT_FEEDBACK",
1561
+ "REVISITING",
1562
+ "SPEND_MORE",
1563
+ "PRODUCT_LAUNCHING",
1564
+ "BROADCAST",
1565
+ "BIRTHDAY",
1566
+ "GAME"
1567
+ ]), Q = e.enum([
1568
+ "text",
1569
+ "number",
1570
+ "textarea",
1571
+ "trigger",
1572
+ "timeframe",
1573
+ "image",
1574
+ "switch",
1575
+ "collectible_options",
1576
+ "target_location",
1577
+ "effect",
1578
+ "message",
1579
+ "earning_option",
1580
+ "validity_option",
1581
+ "game_type",
1582
+ "reward_pool",
1583
+ "rule_schedule",
1584
+ "rule_user",
1585
+ "rule_time",
1586
+ "rule_bill",
1587
+ "rule_feedback",
1588
+ "rule_birthday",
1589
+ "promotion_game_type"
1590
+ ]), J = e.object({
1591
+ label: e.string().optional(),
1592
+ property: e.string().or(e.any()),
1593
+ type: Q,
1594
+ extras: e.string().optional(),
1595
+ isRuleChildren: e.boolean().optional()
1596
+ }), $ = e.object({
1597
+ name: e.string().optional(),
1598
+ fields: e.array(J),
1599
+ condition: e.object({
1600
+ not: e.boolean().optional(),
1601
+ property: e.string(),
1602
+ value: e.any()
1603
+ }).optional()
1604
+ }), Z = e.object({
1605
+ name: e.string(),
1606
+ groups: e.array($)
1607
+ });
1608
+ e.object({
1609
+ _id: m,
1610
+ name: e.string(),
1611
+ description: e.string().nullish(),
1612
+ steps: e.array(Z).min(1),
1613
+ intention: e.array(z),
1614
+ defaultValue: e.any()
1615
+ }).describe(JSON.stringify({ collectionName: "MarketingTemplates" }));
1616
+ const ee = {
1617
+ collectionName: "Businesses",
1618
+ transform: {
1619
+ _id: "oid"
1620
+ }
1621
+ };
1622
+ e.object({
1623
+ _id: m,
1624
+ ownerId: e.string(),
1625
+ name: e.string(),
1626
+ credit: e.number(),
1627
+ forceSend: e.boolean().optional()
1628
+ }).describe(f.describe(ee));
1629
+ const h = e.enum(["PHONE"]), ae = e.enum(["MOCEAN", "SLACK"]), te = e.enum(["PENDING", "COMPLETED", "FAILED"]), ne = e.enum([
1630
+ "General",
1631
+ "Otp",
1632
+ "Marketing",
1633
+ "Ordering",
1634
+ "MemberInvitation"
1635
+ ]), ie = e.object({
1636
+ type: h
1637
+ }), D = ie.extend({
1638
+ type: e.literal(h.enum.PHONE),
1639
+ provider: ae,
1640
+ usage: ne.optional()
1641
+ }), re = {
1642
+ collectionName: "Notifications",
1643
+ transform: { _id: "oid", business: "oid" }
1644
+ };
1645
+ e.object({
1646
+ _id: m,
1647
+ business: m,
1648
+ target: e.string(),
1649
+ title: e.string().optional(),
1650
+ message: e.string(),
1651
+ option: D,
1652
+ status: te,
1653
+ ref: e.string().optional()
1654
+ }).describe(f.describe(re));
1655
+ e.object({
1656
+ target: e.string(),
1657
+ title: e.string().optional(),
1658
+ message: e.string(),
1659
+ option: D,
1660
+ ref: e.string().optional()
1661
+ });
1662
+ e.object({
1663
+ phone: e.string(),
1664
+ message: e.string()
1665
+ });
1666
+ e.enum(["send_notification", "TRIGGER_EVENT"]);
1667
+ e.enum([
1668
+ "campaign.general",
1669
+ "campaign.broadcast",
1670
+ "notification.send",
1671
+ "BILL_CREATE"
1672
+ ]);
1673
+ e.object({
1674
+ claimIds: e.array(e.string()),
1675
+ billId: e.string()
1676
+ });
1677
+ e.object({
1678
+ claimIds: e.array(e.string())
1679
+ });
1680
+ e.object({
1681
+ claimIds: e.array(e.string())
1682
+ });
1683
+ e.object({
1684
+ userId: e.string().optional(),
1685
+ ids: e.array(e.string()),
1686
+ type: e.enum(["DINE_IN", "PICKUP", "DELIVERY"]),
1687
+ restaurantId: e.string()
1688
+ });
1689
+ e.object({
1690
+ claimIds: e.array(e.string()),
1691
+ billId: e.string()
1692
+ });
1693
+ var x = /* @__PURE__ */ ((t) => (t[t.feedMe = 0] = "feedMe", t[t.business = 1] = "business", t[t.restaurant = 2] = "restaurant", t))(x || {});
1694
+ e.nativeEnum(x);
1695
+ e.enum(["manage", "create", "read", "update", "delete"]);
1696
+ e.enum(["all", "restaurant", "business", "delivery", "agent"]);
1697
+ e.enum(["quota"]);
1698
+ var G = /* @__PURE__ */ ((t) => (t.marketing = "business::marketing", t.campaign = "business::campaign", t.counter = "business::counter", t.permission = "business::permission", t.role = "business::role", t))(G || {});
1699
+ e.nativeEnum(G);
1700
+ e.enum(["restaurant"]);
1701
+ const oe = e.object({
1702
+ label: e.string(),
1703
+ subject: e.union([e.string(), e.array(e.string())]),
1704
+ actions: e.union([e.string(), e.array(e.string())]),
1705
+ fields: e.array(e.string()).optional(),
1706
+ conditions: e.any().optional(),
1707
+ inverted: e.boolean().optional(),
1708
+ reason: e.string().optional()
1709
+ });
1710
+ e.object({
1711
+ _id: m,
1712
+ businessId: e.string(),
1713
+ userId: e.string(),
1714
+ email: e.string().nullish(),
1715
+ phoneNo: e.string().nullish(),
1716
+ permissions: e.array(e.lazy(() => oe))
1717
+ }).describe(
1718
+ f.describe({
1719
+ collectionName: "PermissionUsers",
1720
+ transform: {
1721
+ _id: "oid"
1722
+ }
1723
+ })
1724
+ );
1725
+ const S = e.object({
1726
+ userId: e.string(),
1727
+ level: e.number(),
1728
+ role: e.string().optional(),
1729
+ businessId: e.string().optional(),
1730
+ restaurantId: e.string().optional()
1731
+ }), pe = e.function().args(e.any(), S).returns(e.boolean()), le = e.function().args(S).returns(e.promise(e.array(e.any())));
1732
+ e.object({
1733
+ isAdmin: pe,
1734
+ getRules: le
1735
+ });
1736
+ e.object({
1737
+ transactions: e.array(K),
1738
+ collections: e.array(j)
1739
+ });
1740
+ const R = e.enum([
1741
+ "ROCK_PAPER_SCISSOR"
1742
+ ]);
1743
+ R.enum.ROCK_PAPER_SCISSOR + "";
1744
+ e.object({
1745
+ type: R
1746
+ });
1747
+ e.object({
1748
+ host: e.string().url(),
1749
+ player: e.string().url(),
1750
+ token: e.string(),
1751
+ roomId: e.string()
1752
+ });
1753
+ export {
1754
+ z as F,
1755
+ fe as T,
1756
+ ye as _
1757
+ };