@feedmepos/mf-connect 0.0.9 → 0.0.11-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Analytic-CwaN0mge.js → Analytic-CpXLcGWV.js} +7 -7
- package/dist/{Broadcast-Cjx5xzUC.js → Broadcast-CEMQS5PI.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D4mO5aik.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D0Kvpl_V.js} +8 -8
- package/dist/{Card-DbY6YaXk.js → Card-BqX-aRK9.js} +182 -187
- package/dist/{Collections-DRN2gzwh.js → Collections-SRmluAj0.js} +102 -84
- package/dist/{Credit-DOcrzykJ.js → Credit-DdBKFsII.js} +7 -7
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYNpBySQ.js +2600 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-EF_rHfwT.js → EffectSheet.vue_vue_type_style_index_0_lang-admNNBWu.js} +1864 -1830
- package/dist/{Experience-aQj-3H2Y.js → Experience-CSfRrWqI.js} +7 -7
- package/dist/Game-BV--qn0e.js +250 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CG-GBVMP.js → ImageInput.vue_vue_type_script_setup_true_lang-DpYjrT3G.js} +1 -1
- package/dist/{MainLayout-Cxl9yLPs.js → MainLayout-B_ZXQrMD.js} +1 -1
- package/dist/{Marketing-BYUcbcMU.js → Marketing-Bac3EbOu.js} +16 -16
- package/dist/{Member-D7K9fm_Q.js → Member-CGMRVEuI.js} +2 -2
- package/dist/{MemberList-DbXkxUzF.js → MemberList-CSyb4bNE.js} +196 -195
- package/dist/{MemberTransactions-DED1SYwX.js → MemberTransactions-BdraBHg6.js} +2 -2
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CLqIp5wR.js → MessageInput.vue_vue_type_script_setup_true_lang-BvAFOoym.js} +2 -2
- package/dist/Mission-D8-D99g-.js +248 -0
- package/dist/Point-BOI4mT-K.js +220 -0
- package/dist/{Promotion-DzVXy_C9.js → Promotion-D0MLMo9m.js} +8 -8
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CeS6KlhP.js → RuleGroup.vue_vue_type_script_setup_true_lang-1L68zx5t.js} +58 -58
- package/dist/Segment-BeUbkVj7.js +444 -0
- package/dist/{Setting-pCzenLoL.js → Setting-uM4iKdyM.js} +386 -379
- package/dist/{Store-DEwEIFYD.js → Store-BkccNTnM.js} +432 -413
- package/dist/{StoreRewards-D7vnZN4f.js → StoreRewards-BLgP6Mfv.js} +9 -9
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-ALzQU3th.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Z0nqQyi8.js} +39 -38
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-GMIztWCj.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C771jjYx.js} +1 -1
- package/dist/{Tier-BJbX5CPB.js → Tier-DwKAfz6f.js} +17 -16
- package/dist/{Title-C9xV6rBg.js → Title-B1_yd9pC.js} +16 -15
- package/dist/{Transaction-C8OHlhzR.js → Transaction-DcVCMUY4.js} +1 -1
- package/dist/{Voucher-eZwm7N1D.js → Voucher-Djvai5vL.js} +30 -30
- package/dist/{app-DgbDbhL-.js → app-BvizV9z5.js} +3192 -3178
- package/dist/app.js +1 -1
- package/dist/{campaign-BkvrUTEJ.js → campaign-BdSwq7MJ.js} +31 -27
- package/dist/dto-CkH5Zama.js +1150 -0
- package/dist/{effect-f7DAPYC8.js → effect-DT4ivttr.js} +1 -1
- package/dist/{export-BXbCXTfd.js → export-BAJL8_2G.js} +3 -3
- package/dist/{helper-BhvQ9m6d.js → helper-CiIZ1pUo.js} +21 -8
- package/dist/{index-CdtrQ9tR.js → index-7uOMMdXt.js} +245 -184
- package/dist/{index-Cfo2A0Se.js → index-8nrxC9d5.js} +1 -1
- package/dist/{index-FWp9M1yS.js → index-B5gJ6P15.js} +269 -21
- package/dist/{index-BhacKx5B.js → index-BLWw_MlC.js} +1363 -1341
- package/dist/{index-VmFlM704.js → index-C5N8jeJ1.js} +1 -1
- package/dist/{index-Cz5RZlYh.js → index-C8dIiNQb.js} +1 -1
- package/dist/{index-Dd3hrFcQ.js → index-Ccn7PGoB.js} +268 -267
- package/dist/{index-oQLJE4Uw.js → index-CjZxaXvZ.js} +69 -64
- package/dist/{index-DQC_1tRF.js → index-DCs4-zXS.js} +7 -17
- package/dist/{index-BsEqtUmY.js → index-DMyaEjMn.js} +26 -20
- package/dist/{loading-DQaawbHE.js → loading-C1IzY-n2.js} +1312 -1312
- package/dist/{lodash-DzdmTD20.js → lodash-BMQ4xbjY.js} +1 -1
- package/dist/membership-D3I4udu3.js +221 -0
- package/dist/{money-vzwOUBrp.js → money-BQEcWGhZ.js} +1 -1
- package/dist/{number-CBzs6rfW.js → number-DGx2QPUy.js} +1 -1
- package/dist/{rule-BR5rrmUV.js → rule-CvlhLEGy.js} +2 -2
- package/dist/{rule-builder-7GBNrPXt.js → rule-builder-Di3qiIBb.js} +1 -1
- package/dist/{template-CETJ6lkf.js → template-D6Abrya4.js} +5 -5
- package/dist/{usePagination-DdZeE4Tt.js → usePagination-MhbjQgN7.js} +1 -1
- package/dist/{xlsx-CDAKxZE_.js → xlsx-mL_3T1k3.js} +226 -226
- package/package.json +3 -3
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CUxfXaro.js +0 -2002
- package/dist/Game-Cnje-m_M.js +0 -242
- package/dist/Point-CQm8whVQ.js +0 -211
- package/dist/Segment-D3o0D3Uv.js +0 -407
- package/dist/dto-YYVhW73A.js +0 -1092
- package/dist/libs/packages/core/src/bill/bill.dto.d.ts +0 -75
- package/dist/libs/packages/core/src/bill/index.d.ts +0 -115
- package/dist/libs/packages/core/src/business/index.d.ts +0 -21
- package/dist/libs/packages/core/src/campaign/broadcast/index.d.ts +0 -36
- package/dist/libs/packages/core/src/campaign/campaign.enum.d.ts +0 -9
- package/dist/libs/packages/core/src/campaign/campaign.fn.d.ts +0 -7
- package/dist/libs/packages/core/src/campaign/dto.d.ts +0 -5517
- package/dist/libs/packages/core/src/campaign/group.d.ts +0 -25
- package/dist/libs/packages/core/src/campaign/index.d.ts +0 -33988
- package/dist/libs/packages/core/src/collectible/collectible.dto.d.ts +0 -21
- package/dist/libs/packages/core/src/collectible/collectible.enum.d.ts +0 -14
- package/dist/libs/packages/core/src/collectible/helper.d.ts +0 -195
- package/dist/libs/packages/core/src/collectible/index.d.ts +0 -1588
- package/dist/libs/packages/core/src/collectible/pool/index.d.ts +0 -1381
- package/dist/libs/packages/core/src/collection/collection.fn.d.ts +0 -5
- package/dist/libs/packages/core/src/collection/index.d.ts +0 -1014
- package/dist/libs/packages/core/src/collection/transaction.d.ts +0 -845
- package/dist/libs/packages/core/src/collection/transaction.fn.d.ts +0 -10
- package/dist/libs/packages/core/src/common/array.d.ts +0 -2
- package/dist/libs/packages/core/src/common/hash.d.ts +0 -10
- package/dist/libs/packages/core/src/common/index.d.ts +0 -42
- package/dist/libs/packages/core/src/common/number.d.ts +0 -7
- package/dist/libs/packages/core/src/common/object.d.ts +0 -5
- package/dist/libs/packages/core/src/common/objectId.d.ts +0 -2
- package/dist/libs/packages/core/src/common/string.d.ts +0 -4
- package/dist/libs/packages/core/src/counter/counter.dto.d.ts +0 -767
- package/dist/libs/packages/core/src/counter/index.d.ts +0 -1
- package/dist/libs/packages/core/src/event/index.d.ts +0 -4246
- package/dist/libs/packages/core/src/feedback/index.d.ts +0 -24
- package/dist/libs/packages/core/src/game/index.d.ts +0 -32
- package/dist/libs/packages/core/src/index.d.ts +0 -21
- package/dist/libs/packages/core/src/internal/index.d.ts +0 -56
- package/dist/libs/packages/core/src/legacy/setting/index.d.ts +0 -89
- package/dist/libs/packages/core/src/location/index.d.ts +0 -44
- package/dist/libs/packages/core/src/loyalty/card/index.d.ts +0 -1296
- package/dist/libs/packages/core/src/loyalty/index.d.ts +0 -3
- package/dist/libs/packages/core/src/loyalty/tier/helper.d.ts +0 -2
- package/dist/libs/packages/core/src/loyalty/tier/index.d.ts +0 -251
- package/dist/libs/packages/core/src/loyalty/title/index.d.ts +0 -4
- package/dist/libs/packages/core/src/marketing-material/index.d.ts +0 -186
- package/dist/libs/packages/core/src/marketing-material/marketing-material.enum.d.ts +0 -3
- package/dist/libs/packages/core/src/notification/index.d.ts +0 -130
- package/dist/libs/packages/core/src/pagination/index.d.ts +0 -25
- package/dist/libs/packages/core/src/permission/index.d.ts +0 -243
- package/dist/libs/packages/core/src/service/index.d.ts +0 -10
- package/dist/libs/packages/core/src/store/dto.d.ts +0 -1069
- package/dist/libs/packages/core/src/store/index.d.ts +0 -3942
- package/dist/libs/packages/core/src/store/store.fn.d.ts +0 -104
- package/dist/libs/packages/core/src/template/index.d.ts +0 -880
- package/dist/libs/packages/core/src/template/templates.d.ts +0 -1239
- package/dist/libs/packages/core/src/user/index.d.ts +0 -245
- package/dist/libs/packages/core/src/user/segment.dto.d.ts +0 -27
- package/dist/libs/packages/core/src/user/segmentation.d.ts +0 -28
- package/dist/libs/packages/core/src/user/user.dto.d.ts +0 -873
- package/dist/libs/packages/core/src/validation/index.d.ts +0 -1
- package/dist/libs/packages/core/src/validation/rule/builder.d.ts +0 -36
- package/dist/libs/packages/core/src/validation/rule/index.d.ts +0 -45
- package/dist/libs/packages/core/src/validation/rule/operator.enum.d.ts +0 -405
- package/dist/libs/packages/core/src/validation/rule/rule.fn.d.ts +0 -6
- package/dist/libs/packages/validation/src/index.d.ts +0 -3
- package/dist/libs/packages/validation/src/rule/rule-builder.d.ts +0 -19
- package/dist/libs/packages/validation/src/rule/rule.d.ts +0 -52
- package/dist/libs/packages/validation/src/rule/validate.d.ts +0 -2
- package/dist/membership-Dq2-b-S_.js +0 -210
- package/dist/packages/connect/src/App.vue.d.ts +0 -2
- package/dist/packages/connect/src/Entry.vue.d.ts +0 -2
- package/dist/packages/connect/src/api/auth/index.d.ts +0 -3
- package/dist/packages/connect/src/api/campaign/index.d.ts +0 -30
- package/dist/packages/connect/src/api/campaign/template.d.ts +0 -5
- package/dist/packages/connect/src/api/index.d.ts +0 -29
- package/dist/packages/connect/src/api/location/index.d.ts +0 -7
- package/dist/packages/connect/src/api/marketing-material/index.d.ts +0 -7
- package/dist/packages/connect/src/api/member/index.d.ts +0 -12
- package/dist/packages/connect/src/api/membership/index.d.ts +0 -28
- package/dist/packages/connect/src/api/segments/index.d.ts +0 -13
- package/dist/packages/connect/src/api/settings/index.d.ts +0 -4
- package/dist/packages/connect/src/api/transaction/index.d.ts +0 -9
- package/dist/packages/connect/src/api/users/index.d.ts +0 -8
- package/dist/packages/connect/src/app.d.ts +0 -16
- package/dist/packages/connect/src/components/NavigationTab.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/analytic/CampaignCard.vue.d.ts +0 -24
- package/dist/packages/connect/src/components/analytic/CampaignChip.vue.d.ts +0 -47
- package/dist/packages/connect/src/components/analytic/CampaignGroup.vue.d.ts +0 -25
- package/dist/packages/connect/src/components/analytic/CampaignStat.vue.d.ts +0 -31
- package/dist/packages/connect/src/components/analytic/LinkCampaign.vue.d.ts +0 -30
- package/dist/packages/connect/src/components/campaign/CampaignChip.vue.d.ts +0 -13
- package/dist/packages/connect/src/components/campaign/CampaignSummary.vue.d.ts +0 -13
- package/dist/packages/connect/src/components/campaign/CampaignTriggerInput.vue.d.ts +0 -34
- package/dist/packages/connect/src/components/campaign/EarningOptionInput.vue.d.ts +0 -50
- package/dist/packages/connect/src/components/campaign/GameTypeInput.vue.d.ts +0 -15
- package/dist/packages/connect/src/components/campaign/MessageInput.vue.d.ts +0 -64
- package/dist/packages/connect/src/components/campaign/PromotionGameTypeInput.vue.d.ts +0 -19
- package/dist/packages/connect/src/components/campaign/ScheduleRuleInput.vue.d.ts +0 -29
- package/dist/packages/connect/src/components/campaign/TargetLocationInput.vue.d.ts +0 -32
- package/dist/packages/connect/src/components/campaign/ValidityInput.vue.d.ts +0 -59
- package/dist/packages/connect/src/components/collectible/CollectibleChip.vue.d.ts +0 -13
- package/dist/packages/connect/src/components/collectible/CollectibleOptionInput.vue.d.ts +0 -59
- package/dist/packages/connect/src/components/collection/Collections.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/common/BaseTable.vue.d.ts +0 -80
- package/dist/packages/connect/src/components/common/FmTableSelection.vue.d.ts +0 -22
- package/dist/packages/connect/src/components/custom/ChipMenu.vue.d.ts +0 -96
- package/dist/packages/connect/src/components/custom/CustomSelect.vue.d.ts +0 -68
- package/dist/packages/connect/src/components/custom/DateInput.vue.d.ts +0 -24
- package/dist/packages/connect/src/components/custom/DateRangeChip.vue.d.ts +0 -25
- package/dist/packages/connect/src/components/custom/DateRangeInput.vue.d.ts +0 -28
- package/dist/packages/connect/src/components/custom/FilterChip.vue.d.ts +0 -90
- package/dist/packages/connect/src/components/custom/ImageInput.vue.d.ts +0 -115
- package/dist/packages/connect/src/components/custom/json/JsonNode.vue.d.ts +0 -36
- package/dist/packages/connect/src/components/custom/json/JsonViewer.vue.d.ts +0 -22
- package/dist/packages/connect/src/components/custom/zod/ZodTextField.vue.d.ts +0 -52
- package/dist/packages/connect/src/components/loading/ImageLoading.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/loading/LottieAnimation.vue.d.ts +0 -39
- package/dist/packages/connect/src/components/loading/Splash.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/loyalty/CampaignTypeDialog.vue.d.ts +0 -13
- package/dist/packages/connect/src/components/loyalty/CreditCoinDialog.vue.d.ts +0 -29
- package/dist/packages/connect/src/components/loyalty/TierExpression.vue.d.ts +0 -32
- package/dist/packages/connect/src/components/marketing/HeadlineStyleSideSheet.vue.d.ts +0 -42
- package/dist/packages/connect/src/components/marketing/ImageSideSheet.vue.d.ts +0 -40
- package/dist/packages/connect/src/components/marketing/LinkRewardSideSheet.vue.d.ts +0 -30
- package/dist/packages/connect/src/components/marketing/MarketingSheet.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/marketing/RewardDropDown.vue.d.ts +0 -26
- package/dist/packages/connect/src/components/marketing/RightSheet.vue.d.ts +0 -66
- package/dist/packages/connect/src/components/marketing/SlideUpDown.vue.d.ts +0 -27
- package/dist/packages/connect/src/components/marketing/platform/BrandAppImage.vue.d.ts +0 -103
- package/dist/packages/connect/src/components/marketing/platform/FacebookPost.vue.d.ts +0 -103
- package/dist/packages/connect/src/components/marketing/platform/FacebookStory.vue.d.ts +0 -103
- package/dist/packages/connect/src/components/marketing/platform/ImageCanvas.vue.d.ts +0 -81
- package/dist/packages/connect/src/components/marketing/platform/InstagramPost.vue.d.ts +0 -102
- package/dist/packages/connect/src/components/marketing/platform/InstagramReel.vue.d.ts +0 -102
- package/dist/packages/connect/src/components/marketing/platform/InstagramStory.vue.d.ts +0 -102
- package/dist/packages/connect/src/components/marketing/platform/TvImage.vue.d.ts +0 -103
- package/dist/packages/connect/src/components/member/MemberDetail.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/member/MemberList.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/member/MemberOverview.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/member/MemberStatsDialog.vue.d.ts +0 -21
- package/dist/packages/connect/src/components/rule/BillRuleGroup.vue.d.ts +0 -19
- package/dist/packages/connect/src/components/rule/CustomRuleDialog.vue.d.ts +0 -30
- package/dist/packages/connect/src/components/rule/FeedbackRuleGroup.vue.d.ts +0 -19
- package/dist/packages/connect/src/components/rule/PresetRuleDialog.vue.d.ts +0 -20
- package/dist/packages/connect/src/components/rule/RuleConfigurator.vue.d.ts +0 -37
- package/dist/packages/connect/src/components/rule/RuleEntry.vue.d.ts +0 -19
- package/dist/packages/connect/src/components/rule/RuleEquator.vue.d.ts +0 -31
- package/dist/packages/connect/src/components/rule/RuleGroup.vue.d.ts +0 -30
- package/dist/packages/connect/src/components/rule/SegmentConfigurator.vue.d.ts +0 -17
- package/dist/packages/connect/src/components/rule/TimeRuleGroup.vue.d.ts +0 -19
- package/dist/packages/connect/src/components/rule/UserRuleGroup.vue.d.ts +0 -19
- package/dist/packages/connect/src/components/rule/equators/BirthdayInput.vue.d.ts +0 -15
- package/dist/packages/connect/src/components/rule/equators/IsDayInput.vue.d.ts +0 -24
- package/dist/packages/connect/src/components/rule/equators/IsInMonthInput.vue.d.ts +0 -16
- package/dist/packages/connect/src/components/rule/equators/IsRangeInput.vue.d.ts +0 -55
- package/dist/packages/connect/src/components/rule/equators/RruleInput.vue.d.ts +0 -37
- package/dist/packages/connect/src/components/rule/presets.d.ts +0 -18
- package/dist/packages/connect/src/components/segment/ReviewSegment.vue.d.ts +0 -16
- package/dist/packages/connect/src/components/setting/LinkDeviceDialog.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/store/AddBundleCard.vue.d.ts +0 -6
- package/dist/packages/connect/src/components/store/CategoryDialog.vue.d.ts +0 -23
- package/dist/packages/connect/src/components/store/StoreBundleCard.vue.d.ts +0 -20
- package/dist/packages/connect/src/components/store/StoreTransactions.vue.d.ts +0 -10
- package/dist/packages/connect/src/components/stripe/StripeSetting.vue.d.ts +0 -21
- package/dist/packages/connect/src/components/tax/TaxInclusiveSetting.vue.d.ts +0 -30
- package/dist/packages/connect/src/components/tax/TaxVariantSetting.vue.d.ts +0 -24
- package/dist/packages/connect/src/components/template/TemplateDialog.vue.d.ts +0 -24
- package/dist/packages/connect/src/components/template/TemplateInput.vue.d.ts +0 -54
- package/dist/packages/connect/src/components/tier/TierCard.vue.d.ts +0 -39
- package/dist/packages/connect/src/components/transactions/CollectionTransactions.vue.d.ts +0 -10
- package/dist/packages/connect/src/components/transactions/MemberTransactions.vue.d.ts +0 -2
- package/dist/packages/connect/src/composables/export.d.ts +0 -11
- package/dist/packages/connect/src/composables/index.d.ts +0 -2
- package/dist/packages/connect/src/composables/loading.d.ts +0 -19
- package/dist/packages/connect/src/composables/template.d.ts +0 -7
- package/dist/packages/connect/src/composables/usePagination.d.ts +0 -32
- package/dist/packages/connect/src/export/base.export.d.ts +0 -7
- package/dist/packages/connect/src/export/card.export.d.ts +0 -9
- package/dist/packages/connect/src/export/collection-transaction.export.d.ts +0 -14
- package/dist/packages/connect/src/export/collection.export.d.ts +0 -9
- package/dist/packages/connect/src/export/index.d.ts +0 -11
- package/dist/packages/connect/src/export/member.export.d.ts +0 -33
- package/dist/packages/connect/src/export/store-transaction.export.d.ts +0 -14
- package/dist/packages/connect/src/helpers/campaign.d.ts +0 -94
- package/dist/packages/connect/src/helpers/collectible.d.ts +0 -58
- package/dist/packages/connect/src/helpers/common.d.ts +0 -1
- package/dist/packages/connect/src/helpers/country.d.ts +0 -21
- package/dist/packages/connect/src/helpers/currency.d.ts +0 -2
- package/dist/packages/connect/src/helpers/effect.d.ts +0 -7
- package/dist/packages/connect/src/helpers/message.d.ts +0 -32
- package/dist/packages/connect/src/helpers/number.d.ts +0 -3
- package/dist/packages/connect/src/helpers/qr.d.ts +0 -7
- package/dist/packages/connect/src/helpers/rrule.d.ts +0 -26
- package/dist/packages/connect/src/helpers/rule.d.ts +0 -91
- package/dist/packages/connect/src/helpers/string.d.ts +0 -16
- package/dist/packages/connect/src/helpers/tax.d.ts +0 -74
- package/dist/packages/connect/src/helpers/trigger.d.ts +0 -59
- package/dist/packages/connect/src/helpers/user.d.ts +0 -6
- package/dist/packages/connect/src/helpers/zod.d.ts +0 -27
- package/dist/packages/connect/src/layouts/MainLayout.vue.d.ts +0 -2
- package/dist/packages/connect/src/main.d.ts +0 -2
- package/dist/packages/connect/src/router/index.d.ts +0 -5
- package/dist/packages/connect/src/router/name.d.ts +0 -2
- package/dist/packages/connect/src/router/shared.d.ts +0 -11
- package/dist/packages/connect/src/sheets/analytic/AnalyticSheet.vue.d.ts +0 -12
- package/dist/packages/connect/src/sheets/campaign/EditCampaignSheet.vue.d.ts +0 -11
- package/dist/packages/connect/src/sheets/campaign/SendVoucherSheet.vue.d.ts +0 -13
- package/dist/packages/connect/src/sheets/card/CardDesignSheet.vue.d.ts +0 -9
- package/dist/packages/connect/src/sheets/card/CreateCardSheet.vue.d.ts +0 -11
- package/dist/packages/connect/src/sheets/collectible/EditRewardSheet.vue.d.ts +0 -15
- package/dist/packages/connect/src/sheets/collectible/EditTitleSheet.vue.d.ts +0 -15
- package/dist/packages/connect/src/sheets/collection/CreateCollectionSheet.vue.d.ts +0 -9
- package/dist/packages/connect/src/sheets/effect/EffectSheet.vue.d.ts +0 -135
- package/dist/packages/connect/src/sheets/member/MemberDetailSheet.vue.d.ts +0 -22
- package/dist/packages/connect/src/sheets/store/StoreSettingSheet.vue.d.ts +0 -80
- package/dist/packages/connect/src/types/index.d.ts +0 -4
- package/dist/packages/connect/src/views/Analytic.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/Marketing.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/Setting.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/Transaction.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/campaign/Broadcast.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/campaign/Promotion.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/campaign/Voucher.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/loyalty/Card.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/loyalty/Member.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/loyalty/Segment.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/program/Credit.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/program/Experience.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/program/Game.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/program/Point.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/program/Tier.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/program/Title.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/store/Store.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/store/StoreRewards.vue.d.ts +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { z as e, F as n, e as
|
|
2
|
-
import { e as
|
|
3
|
-
import { b as
|
|
4
|
-
import { b as
|
|
5
|
-
import { d as
|
|
6
|
-
const
|
|
1
|
+
import { z as e, F as n, e as A, m as p } from "./loading-C1IzY-n2.js";
|
|
2
|
+
import { e as _, F as D, a as c, h as X, g as Z, j as d, k as Q, m as $ } from "./index-BLWw_MlC.js";
|
|
3
|
+
import { b as T } from "./index-Ccn7PGoB.js";
|
|
4
|
+
import { b as L, c as ee } from "./index-DMyaEjMn.js";
|
|
5
|
+
import { d as ne } from "./index-CjZxaXvZ.js";
|
|
6
|
+
const P = e.enum([
|
|
7
7
|
"VOUCHER",
|
|
8
8
|
"PROMOTION",
|
|
9
9
|
"POINT",
|
|
@@ -12,18 +12,19 @@ const L = e.enum([
|
|
|
12
12
|
"BROADCAST",
|
|
13
13
|
"COIN",
|
|
14
14
|
"REWARD_POOL",
|
|
15
|
-
"GAME"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[
|
|
15
|
+
"GAME",
|
|
16
|
+
"MISSION"
|
|
17
|
+
]), M = e.enum(["TIME_BASED_PROMOTION", "GAME_PROMOTION"]), Ve = {
|
|
18
|
+
[M.enum.TIME_BASED_PROMOTION]: "7.7.4",
|
|
19
|
+
[M.enum.GAME_PROMOTION]: "7.7.4"
|
|
19
20
|
};
|
|
20
21
|
e.object({
|
|
21
22
|
location: n,
|
|
22
23
|
memberId: n,
|
|
23
|
-
nettTotal:
|
|
24
|
+
nettTotal: A,
|
|
24
25
|
remark: e.string().optional()
|
|
25
26
|
});
|
|
26
|
-
const
|
|
27
|
+
const te = e.enum(["COUNTER", "POS"]);
|
|
27
28
|
e.object({
|
|
28
29
|
id: e.string(),
|
|
29
30
|
userId: e.string(),
|
|
@@ -34,9 +35,9 @@ e.object({
|
|
|
34
35
|
level: e.number().nullish(),
|
|
35
36
|
mostPurchasedItems: e.array(e.string()).nullish()
|
|
36
37
|
});
|
|
37
|
-
const
|
|
38
|
+
const oe = {
|
|
38
39
|
collectionName: "Bills"
|
|
39
|
-
},
|
|
40
|
+
}, ie = e.object({
|
|
40
41
|
_id: e.string(),
|
|
41
42
|
// items: z.record(z.lazy(() => FdoBillItem)),
|
|
42
43
|
// business: z.string(),
|
|
@@ -45,13 +46,13 @@ const Y = {
|
|
|
45
46
|
user: e.string().nullish(),
|
|
46
47
|
memberid: e.string().nullish(),
|
|
47
48
|
// roundToNearest: z.number().nullish(),
|
|
48
|
-
nettTotal:
|
|
49
|
+
nettTotal: A,
|
|
49
50
|
// activeItems: z.array(z.string()),
|
|
50
51
|
remark: e.string().nullish(),
|
|
51
52
|
createdAt: e.coerce.date(),
|
|
52
53
|
completedAt: e.coerce.date(),
|
|
53
54
|
location: e.string(),
|
|
54
|
-
channel:
|
|
55
|
+
channel: te.optional()
|
|
55
56
|
}).transform((o) => ({
|
|
56
57
|
...o,
|
|
57
58
|
createdTime: o.createdAt,
|
|
@@ -59,7 +60,7 @@ const Y = {
|
|
|
59
60
|
get amount() {
|
|
60
61
|
return o.nettTotal.amount / 10 ** o.nettTotal.precision;
|
|
61
62
|
}
|
|
62
|
-
})).describe(
|
|
63
|
+
})).describe(p.describe(oe)), se = e.object({
|
|
63
64
|
_id: e.string(),
|
|
64
65
|
rating: e.coerce.number(),
|
|
65
66
|
user: e.string(),
|
|
@@ -81,7 +82,7 @@ const Y = {
|
|
|
81
82
|
"MEMBER_REWARD",
|
|
82
83
|
"GAME_COMPLETED",
|
|
83
84
|
"PAGINATE_SCHEDULE"
|
|
84
|
-
]),
|
|
85
|
+
]), Ke = i.extract([
|
|
85
86
|
"BILL_COMPLETED",
|
|
86
87
|
"FEEDBACK",
|
|
87
88
|
"GAME_COMPLETED",
|
|
@@ -94,46 +95,46 @@ const Y = {
|
|
|
94
95
|
]);
|
|
95
96
|
e.enum(["START_OF", "BEFORE"]);
|
|
96
97
|
e.enum(["WEEK", "MONTH"]);
|
|
97
|
-
const
|
|
98
|
+
const s = e.object({
|
|
98
99
|
// type: F_EVENT_TYPE,
|
|
99
|
-
rule:
|
|
100
|
-
}),
|
|
100
|
+
rule: _.optional()
|
|
101
|
+
}), ae = s.extend({
|
|
101
102
|
type: e.literal(i.enum.BILL_COMPLETED)
|
|
102
|
-
}),
|
|
103
|
+
}), le = s.extend({
|
|
103
104
|
type: e.literal(i.enum.FEEDBACK)
|
|
104
|
-
}),
|
|
105
|
+
}), re = s.extend({
|
|
105
106
|
type: e.literal(i.enum.SIMPLE_CLAIM)
|
|
106
107
|
});
|
|
107
|
-
|
|
108
|
+
s.extend({
|
|
108
109
|
type: e.literal(i.enum.ENTER_SEGMENT),
|
|
109
110
|
segment: e.string()
|
|
110
111
|
});
|
|
111
|
-
const
|
|
112
|
+
const ce = s.extend({
|
|
112
113
|
type: e.literal(i.enum.MEMBER_REWARD)
|
|
113
|
-
}),
|
|
114
|
+
}), de = s.extend({
|
|
114
115
|
type: e.literal(i.enum.SCHEDULE)
|
|
115
116
|
// option: FdoCronRule,
|
|
116
|
-
}),
|
|
117
|
+
}), me = s.extend({
|
|
117
118
|
type: e.literal(i.enum.MEMBERSHIP_JOINED)
|
|
118
|
-
}),
|
|
119
|
+
}), ue = s.extend({
|
|
119
120
|
type: e.literal(i.enum.TIER_UPGRADED)
|
|
120
|
-
}),
|
|
121
|
+
}), pe = s.extend({
|
|
121
122
|
type: e.literal(i.enum.MAKING_ORDER)
|
|
122
|
-
}),
|
|
123
|
+
}), Ee = s.extend({
|
|
123
124
|
type: e.literal(i.enum.ISSUE_REWARD)
|
|
124
|
-
}),
|
|
125
|
+
}), ge = s.extend({
|
|
125
126
|
type: e.literal(i.enum.GAME_COMPLETED)
|
|
126
|
-
}),
|
|
127
|
-
|
|
128
|
-
Z,
|
|
129
|
-
ne,
|
|
130
|
-
Q,
|
|
131
|
-
te,
|
|
132
|
-
oe,
|
|
133
|
-
ie,
|
|
127
|
+
}), be = e.discriminatedUnion("type", [
|
|
128
|
+
re,
|
|
134
129
|
ae,
|
|
135
|
-
|
|
136
|
-
le
|
|
130
|
+
de,
|
|
131
|
+
le,
|
|
132
|
+
me,
|
|
133
|
+
ue,
|
|
134
|
+
pe,
|
|
135
|
+
Ee,
|
|
136
|
+
ce,
|
|
137
|
+
ge
|
|
137
138
|
]);
|
|
138
139
|
e.object({
|
|
139
140
|
_id: n,
|
|
@@ -141,23 +142,23 @@ e.object({
|
|
|
141
142
|
ref: e.string(),
|
|
142
143
|
context: e.record(e.string(), e.any()).optional()
|
|
143
144
|
}).describe(JSON.stringify({ collectionName: "EventLogs" }));
|
|
144
|
-
const
|
|
145
|
+
const m = e.object({
|
|
145
146
|
type: i,
|
|
146
147
|
context: e.any(),
|
|
147
148
|
campaignIds: e.array(n).optional(),
|
|
148
149
|
slackWebhookUrl: e.string().optional(),
|
|
149
150
|
emittedAt: e.coerce.date().default(/* @__PURE__ */ new Date())
|
|
150
|
-
}),
|
|
151
|
+
}), Ce = m.extend({
|
|
151
152
|
type: e.literal(i.enum.BILL_COMPLETED),
|
|
152
153
|
context: e.object({
|
|
153
|
-
bill:
|
|
154
|
+
bill: ie
|
|
154
155
|
})
|
|
155
|
-
}),
|
|
156
|
+
}), ye = m.extend({
|
|
156
157
|
type: e.literal(i.enum.SCHEDULE),
|
|
157
158
|
context: e.object({
|
|
158
159
|
triggeredAt: e.coerce.date()
|
|
159
160
|
})
|
|
160
|
-
}),
|
|
161
|
+
}), Re = m.extend({
|
|
161
162
|
type: e.literal(i.enum.PAGINATE_SCHEDULE),
|
|
162
163
|
context: e.object({
|
|
163
164
|
triggeredAt: e.coerce.date(),
|
|
@@ -165,68 +166,68 @@ const d = e.object({
|
|
|
165
166
|
skip: e.coerce.number(),
|
|
166
167
|
limit: e.coerce.number()
|
|
167
168
|
})
|
|
168
|
-
}),
|
|
169
|
+
}), _e = m.extend({
|
|
169
170
|
type: e.literal(i.enum.FEEDBACK),
|
|
170
171
|
context: e.object({
|
|
171
|
-
feedback:
|
|
172
|
+
feedback: se
|
|
172
173
|
})
|
|
173
|
-
}),
|
|
174
|
+
}), Ie = m.extend({
|
|
174
175
|
type: e.literal(i.enum.MEMBERSHIP_JOINED),
|
|
175
176
|
context: e.object({
|
|
176
|
-
user:
|
|
177
|
+
user: T
|
|
177
178
|
})
|
|
178
|
-
}),
|
|
179
|
+
}), he = m.extend({
|
|
179
180
|
type: e.literal(i.enum.TIER_UPGRADED),
|
|
180
181
|
context: e.object({
|
|
181
|
-
transaction:
|
|
182
|
+
transaction: L
|
|
182
183
|
})
|
|
183
|
-
}),
|
|
184
|
+
}), fe = m.extend({
|
|
184
185
|
type: e.literal(i.enum.ISSUE_REWARD),
|
|
185
186
|
context: e.object({
|
|
186
|
-
transaction:
|
|
187
|
-
collection:
|
|
187
|
+
transaction: L,
|
|
188
|
+
collection: ee
|
|
188
189
|
})
|
|
189
190
|
});
|
|
190
191
|
e.discriminatedUnion("type", [
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
192
|
+
Ce,
|
|
193
|
+
ye,
|
|
194
|
+
_e,
|
|
195
|
+
Ie,
|
|
196
|
+
he,
|
|
197
|
+
fe,
|
|
198
|
+
Re
|
|
198
199
|
]);
|
|
199
|
-
const
|
|
200
|
+
const Oe = e.object({
|
|
200
201
|
from: e.coerce.number(),
|
|
201
202
|
to: e.coerce.number().optional()
|
|
202
|
-
}).superRefine((o,
|
|
203
|
-
o.from && o.to && o.from > o.to &&
|
|
203
|
+
}).superRefine((o, a) => {
|
|
204
|
+
o.from && o.to && o.from > o.to && a.addIssue({
|
|
204
205
|
code: "custom",
|
|
205
206
|
message: "Max experience must be more than min experience"
|
|
206
207
|
});
|
|
207
|
-
}),
|
|
208
|
+
}), Me = e.enum(["MULTIPLIER", "FIXED"]);
|
|
208
209
|
e.object({
|
|
209
|
-
type:
|
|
210
|
+
type: Me
|
|
210
211
|
});
|
|
211
|
-
const
|
|
212
|
+
const Fe = e.object({
|
|
212
213
|
_id: n.optional(),
|
|
213
|
-
rule:
|
|
214
|
+
rule: _,
|
|
214
215
|
tierExpression: e.string().nullish(),
|
|
215
216
|
expExpression: e.string().nullish()
|
|
216
217
|
}), I = e.object({
|
|
217
218
|
_id: n,
|
|
218
219
|
name: e.string().min(1),
|
|
219
220
|
image: e.string().nullish(),
|
|
220
|
-
option:
|
|
221
|
-
cycleOptions: e.array(e.lazy(() =>
|
|
221
|
+
option: Oe,
|
|
222
|
+
cycleOptions: e.array(e.lazy(() => Fe)).nullish(),
|
|
222
223
|
member_count: e.number().optional()
|
|
223
224
|
});
|
|
224
225
|
I.partial({
|
|
225
226
|
_id: !0
|
|
226
227
|
});
|
|
227
|
-
const
|
|
228
|
+
const Je = I.partial({
|
|
228
229
|
_id: !0
|
|
229
|
-
}),
|
|
230
|
+
}), Ae = {
|
|
230
231
|
collectionName: "Cards",
|
|
231
232
|
transform: {
|
|
232
233
|
_id: "oid",
|
|
@@ -255,10 +256,10 @@ e.object({
|
|
|
255
256
|
design: e.string().nullish(),
|
|
256
257
|
bundle: e.string().nullish(),
|
|
257
258
|
subscriptionBundle: e.string().nullish(),
|
|
258
|
-
pf_member: e.lazy(() =>
|
|
259
|
-
pf_transaction: e.lazy(() =>
|
|
260
|
-
}).describe(
|
|
261
|
-
const
|
|
259
|
+
pf_member: e.lazy(() => T).nullish(),
|
|
260
|
+
pf_transaction: e.lazy(() => ne).nullish()
|
|
261
|
+
}).describe(p.describe(Ae));
|
|
262
|
+
const De = e.object({
|
|
262
263
|
length: e.coerce.number().optional(),
|
|
263
264
|
charset: e.string(),
|
|
264
265
|
prefix: e.string().optional(),
|
|
@@ -268,94 +269,128 @@ const _e = e.object({
|
|
|
268
269
|
e.object({
|
|
269
270
|
quantity: e.number(),
|
|
270
271
|
code: e.string(),
|
|
271
|
-
codeConfig:
|
|
272
|
+
codeConfig: De,
|
|
272
273
|
setCardOnBind: e.boolean().optional(),
|
|
273
274
|
design: e.string().nullish(),
|
|
274
275
|
bundle: e.string().optional(),
|
|
275
276
|
subscriptionBundle: e.string().optional()
|
|
276
277
|
});
|
|
277
|
-
const
|
|
278
|
-
channel:
|
|
278
|
+
const Te = e.enum(["SMS", "WHATSAPP"]), E = e.object({
|
|
279
|
+
channel: Te,
|
|
279
280
|
variables: e.array(e.string()),
|
|
280
281
|
content: e.string(),
|
|
281
282
|
language: e.string(),
|
|
282
283
|
imageUrl: e.string().optional()
|
|
283
|
-
}).superRefine((o,
|
|
284
|
-
o.content.length == 0 &&
|
|
284
|
+
}).superRefine((o, a) => {
|
|
285
|
+
o.content.length == 0 && a.addIssue({
|
|
285
286
|
code: e.ZodIssueCode.custom,
|
|
286
287
|
message: "Content is required"
|
|
287
288
|
});
|
|
288
|
-
const y = /{{(.*?)}}/g,
|
|
289
|
-
b.length &&
|
|
289
|
+
const y = /{{(.*?)}}/g, R = [...o.content.matchAll(y)].map((u) => u[1]), O = o.variables, b = R.filter((u) => O.indexOf(u) < 0);
|
|
290
|
+
b.length && a.addIssue({
|
|
290
291
|
code: e.ZodIssueCode.custom,
|
|
291
292
|
message: "Invalid variable(s): " + b.join(", ")
|
|
292
293
|
});
|
|
293
294
|
});
|
|
294
|
-
function
|
|
295
|
-
return o.replace(/{{(.*?)}}/g, (y,
|
|
296
|
-
const b =
|
|
295
|
+
function Ye(o, a) {
|
|
296
|
+
return o.replace(/{{(.*?)}}/g, (y, R) => {
|
|
297
|
+
const b = R.trim().split(".").reduce((u, q) => (u != null ? u[q] : null) ?? null, a);
|
|
297
298
|
return b !== null ? b : y;
|
|
298
299
|
});
|
|
299
300
|
}
|
|
300
|
-
const
|
|
301
|
-
type: e.literal(
|
|
301
|
+
const h = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), S = e.number().min(0, "Weight need to be at least 0"), x = e.number().int("Must be integer").min(0, "Threshold need to be at least 0"), N = e.object({
|
|
302
|
+
type: e.literal(h.enum.NO_REWARD),
|
|
302
303
|
collectible: e.null(),
|
|
303
|
-
weight:
|
|
304
|
-
}),
|
|
305
|
-
type: e.literal(
|
|
304
|
+
weight: S
|
|
305
|
+
}), B = e.object({
|
|
306
|
+
type: e.literal(h.enum.VOUCHER),
|
|
306
307
|
collectible: n,
|
|
307
|
-
collectibleConfig: e.lazy(() =>
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}), x = e.object({
|
|
312
|
-
type: e.literal(f.enum.LOYALTY),
|
|
308
|
+
collectibleConfig: e.lazy(() => D._def.right.options[0]),
|
|
309
|
+
earningOption: e.lazy(() => c)
|
|
310
|
+
}), f = e.object({
|
|
311
|
+
type: e.literal(h.enum.LOYALTY),
|
|
313
312
|
collectible: n,
|
|
314
|
-
weight: e.number().min(0, "Weight need to be at least 0"),
|
|
315
313
|
earningOption: e.lazy(() => c),
|
|
316
|
-
validityOption: e.lazy(() =>
|
|
317
|
-
}),
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
314
|
+
validityOption: e.lazy(() => X)
|
|
315
|
+
}), U = B.extend({
|
|
316
|
+
weight: S
|
|
317
|
+
}), j = f.extend({
|
|
318
|
+
weight: e.number().min(0, "Weight need to be at least 0")
|
|
319
|
+
}), qe = f.extend({
|
|
320
|
+
validityOption: Z
|
|
321
|
+
}), Le = e.discriminatedUnion("type", [
|
|
322
|
+
U,
|
|
323
|
+
j,
|
|
324
|
+
N
|
|
325
|
+
]), F = e.discriminatedUnion("type", [
|
|
326
|
+
U.extend({
|
|
323
327
|
collectible: n.nullish(),
|
|
324
328
|
business: n.nullish()
|
|
325
329
|
}),
|
|
326
|
-
|
|
330
|
+
j.extend({
|
|
331
|
+
collectible: n.nullish(),
|
|
332
|
+
business: n.nullish()
|
|
333
|
+
}),
|
|
334
|
+
N
|
|
335
|
+
]), G = B.extend({
|
|
336
|
+
threshold: x
|
|
337
|
+
}), H = f.extend({
|
|
338
|
+
threshold: x
|
|
339
|
+
}), v = e.discriminatedUnion("type", [
|
|
340
|
+
G,
|
|
341
|
+
H
|
|
342
|
+
]), Pe = e.discriminatedUnion("type", [
|
|
343
|
+
G.extend({
|
|
327
344
|
collectible: n.nullish(),
|
|
328
345
|
business: n.nullish()
|
|
329
346
|
}),
|
|
330
|
-
|
|
331
|
-
|
|
347
|
+
H.extend({
|
|
348
|
+
collectible: n.nullish(),
|
|
349
|
+
collectibleConfig: D.nullish(),
|
|
350
|
+
business: n.nullish()
|
|
351
|
+
})
|
|
352
|
+
]), Se = {
|
|
332
353
|
collectionName: "Locations",
|
|
333
354
|
transform: {
|
|
334
355
|
_id: "oid",
|
|
335
356
|
business: "oid"
|
|
336
357
|
}
|
|
337
|
-
},
|
|
358
|
+
}, z = e.object({
|
|
338
359
|
_id: n,
|
|
339
360
|
business: n,
|
|
340
361
|
name: e.string(),
|
|
341
362
|
otp: e.string().nullish(),
|
|
342
363
|
otpExpiredAt: e.coerce.date().nullish(),
|
|
343
364
|
apiToken: e.string().nullish()
|
|
344
|
-
}).describe(
|
|
365
|
+
}).describe(p.describe(Se));
|
|
345
366
|
e.object({
|
|
346
367
|
_id: n,
|
|
347
368
|
name: e.string(),
|
|
348
369
|
location: n,
|
|
349
370
|
os: e.string(),
|
|
350
371
|
apiToken: e.string().nullish()
|
|
351
|
-
}).describe(
|
|
372
|
+
}).describe(p.describe({
|
|
352
373
|
collectionName: "LocationDevices",
|
|
353
374
|
transform: {
|
|
354
375
|
_id: "oid",
|
|
355
376
|
location: "oid"
|
|
356
377
|
}
|
|
357
378
|
}));
|
|
358
|
-
const
|
|
379
|
+
const xe = e.enum(["PROGRESSIVE", "STAMP"]), Ne = e.object({
|
|
380
|
+
type: xe,
|
|
381
|
+
end: e.number().int().min(0, "Threshold need to be at least 1"),
|
|
382
|
+
rewards: e.array(e.lazy(() => v)).nullish()
|
|
383
|
+
}).superRefine((o, a) => {
|
|
384
|
+
o.type == "STAMP" && o.end > 40 && (a.addIssue({
|
|
385
|
+
code: "custom",
|
|
386
|
+
path: [],
|
|
387
|
+
message: "Stamp mission can have at most 40 threshold"
|
|
388
|
+
}), a.addIssue({
|
|
389
|
+
code: "custom",
|
|
390
|
+
path: ["end"],
|
|
391
|
+
message: "Stamp mission can have at most 40 threshold"
|
|
392
|
+
}));
|
|
393
|
+
}), Be = {
|
|
359
394
|
collectionName: "Groups",
|
|
360
395
|
transform: {
|
|
361
396
|
_id: "oid",
|
|
@@ -373,13 +408,13 @@ const Oe = {
|
|
|
373
408
|
foreignField: "group"
|
|
374
409
|
}
|
|
375
410
|
}
|
|
376
|
-
},
|
|
411
|
+
}, Xe = e.object({
|
|
377
412
|
_id: n,
|
|
378
413
|
name: e.string().min(1).max(300),
|
|
379
414
|
business: n,
|
|
380
415
|
pf_campaigns: e.array(e.any()).optional()
|
|
381
|
-
}).describe(
|
|
382
|
-
type: e.literal(
|
|
416
|
+
}).describe(p.describe(Be)), Ue = e.object({
|
|
417
|
+
type: e.literal(P.enum.MEMBERSHIP),
|
|
383
418
|
business: n,
|
|
384
419
|
name: e.string().min(1).max(50),
|
|
385
420
|
image: e.string().nullish(),
|
|
@@ -387,8 +422,8 @@ const Oe = {
|
|
|
387
422
|
tiers: e.array(e.lazy(() => I)),
|
|
388
423
|
titles: e.array(n),
|
|
389
424
|
tierCycleEnable: e.boolean().optional(),
|
|
390
|
-
tierCycle: e.lazy(() =>
|
|
391
|
-
welcomeMessage:
|
|
425
|
+
tierCycle: e.lazy(() => _).nullish(),
|
|
426
|
+
welcomeMessage: E.optional(),
|
|
392
427
|
advertisements: e.array(e.string()).optional(),
|
|
393
428
|
cardEnable: e.boolean().optional(),
|
|
394
429
|
design: e.array(
|
|
@@ -400,12 +435,12 @@ const Oe = {
|
|
|
400
435
|
targetLocation: e.array(n).nullish(),
|
|
401
436
|
brand: e.string().nullish(),
|
|
402
437
|
freeCreditAsDiscount: e.boolean().optional(),
|
|
403
|
-
pf_title: e.array(e.lazy(() =>
|
|
404
|
-
pf_targetLocation: e.array(e.lazy(() =>
|
|
438
|
+
pf_title: e.array(e.lazy(() => d)).optional(),
|
|
439
|
+
pf_targetLocation: e.array(e.lazy(() => z)).optional(),
|
|
405
440
|
// new structure
|
|
406
441
|
group: e.string().nullish(),
|
|
407
442
|
templateId: n.nullish()
|
|
408
|
-
}), t =
|
|
443
|
+
}), t = P.exclude(["MEMBERSHIP"]), l = e.object({
|
|
409
444
|
_id: n.nullish(),
|
|
410
445
|
type: t,
|
|
411
446
|
// common information
|
|
@@ -413,21 +448,21 @@ const Oe = {
|
|
|
413
448
|
name: e.string().min(1).max(50),
|
|
414
449
|
image: e.string().nullish(),
|
|
415
450
|
description: e.string().max(500).nullish(),
|
|
416
|
-
timeframeOptions:
|
|
417
|
-
o.start && o.end && o.end < o.start &&
|
|
451
|
+
timeframeOptions: Q.superRefine((o, a) => {
|
|
452
|
+
o.start && o.end && o.end < o.start && a.addIssue({
|
|
418
453
|
code: "custom",
|
|
419
454
|
message: "End date must be later or same as start date",
|
|
420
455
|
path: []
|
|
421
456
|
});
|
|
422
457
|
}).nullish(),
|
|
423
458
|
targetLocation: e.array(n).nullish(),
|
|
424
|
-
event:
|
|
425
|
-
config:
|
|
459
|
+
event: be,
|
|
460
|
+
config: $.nullish(),
|
|
426
461
|
currentReceive: e.coerce.number().optional(),
|
|
427
462
|
// new group structure
|
|
428
463
|
group: n.nullish(),
|
|
429
464
|
templateId: n.nullish(),
|
|
430
|
-
pf_targetLocation: e.array(e.lazy(() =>
|
|
465
|
+
pf_targetLocation: e.array(e.lazy(() => z)).optional()
|
|
431
466
|
}), r = {
|
|
432
467
|
[t.enum.VOUCHER]: [
|
|
433
468
|
"BILL_COMPLETED",
|
|
@@ -472,11 +507,16 @@ const Oe = {
|
|
|
472
507
|
"TIER_UPGRADED",
|
|
473
508
|
"SCHEDULE",
|
|
474
509
|
"SIMPLE_CLAIM"
|
|
510
|
+
],
|
|
511
|
+
[t.enum.MISSION]: [
|
|
512
|
+
"BILL_COMPLETED",
|
|
513
|
+
"FEEDBACK",
|
|
514
|
+
"SCHEDULE"
|
|
475
515
|
]
|
|
476
|
-
},
|
|
516
|
+
}, w = l.extend({
|
|
477
517
|
type: e.literal(t.enum.VOUCHER),
|
|
478
518
|
// event
|
|
479
|
-
event:
|
|
519
|
+
event: s.merge(
|
|
480
520
|
e.object({
|
|
481
521
|
type: e.enum(r[t.enum.VOUCHER])
|
|
482
522
|
})
|
|
@@ -487,31 +527,31 @@ const Oe = {
|
|
|
487
527
|
}),
|
|
488
528
|
collectible: n,
|
|
489
529
|
notify: e.boolean().optional(),
|
|
490
|
-
notifyMessage: e.lazy(() =>
|
|
530
|
+
notifyMessage: e.lazy(() => E).optional(),
|
|
491
531
|
notifyCampaign: n.nullish(),
|
|
492
|
-
pf_collectible: e.lazy(() =>
|
|
532
|
+
pf_collectible: e.lazy(() => d).optional(),
|
|
493
533
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
494
|
-
}),
|
|
534
|
+
}), je = e.object({
|
|
495
535
|
gameType: e.string()
|
|
496
|
-
}),
|
|
536
|
+
}), k = l.extend({
|
|
497
537
|
type: e.literal(t.enum.PROMOTION),
|
|
498
538
|
// event
|
|
499
|
-
event:
|
|
539
|
+
event: s.merge(
|
|
500
540
|
e.object({
|
|
501
541
|
type: e.enum(r[t.enum.PROMOTION])
|
|
502
542
|
})
|
|
503
543
|
),
|
|
504
|
-
effect: e.custom().superRefine((o,
|
|
505
|
-
o ||
|
|
544
|
+
effect: e.custom().superRefine((o, a) => {
|
|
545
|
+
o || a.addIssue({
|
|
506
546
|
code: "custom",
|
|
507
547
|
message: "Effect is required"
|
|
508
548
|
});
|
|
509
549
|
}),
|
|
510
|
-
gameConfig:
|
|
511
|
-
}),
|
|
550
|
+
gameConfig: je.nullish()
|
|
551
|
+
}), W = l.extend({
|
|
512
552
|
type: e.literal(t.enum.POINT),
|
|
513
553
|
// event
|
|
514
|
-
event:
|
|
554
|
+
event: s.merge(
|
|
515
555
|
e.object({
|
|
516
556
|
type: e.enum(r[t.enum.POINT])
|
|
517
557
|
})
|
|
@@ -519,14 +559,14 @@ const Oe = {
|
|
|
519
559
|
earningOption: c,
|
|
520
560
|
collectible: n,
|
|
521
561
|
notify: e.boolean().optional(),
|
|
522
|
-
notifyMessage: e.lazy(() =>
|
|
562
|
+
notifyMessage: e.lazy(() => E).optional(),
|
|
523
563
|
notifyCampaign: n.nullish(),
|
|
524
|
-
pf_collectible: e.lazy(() =>
|
|
564
|
+
pf_collectible: e.lazy(() => d).optional(),
|
|
525
565
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
526
|
-
}),
|
|
566
|
+
}), V = l.extend({
|
|
527
567
|
type: e.literal(t.enum.CREDIT),
|
|
528
568
|
// event
|
|
529
|
-
event:
|
|
569
|
+
event: s.merge(
|
|
530
570
|
e.object({
|
|
531
571
|
type: e.enum(r[t.enum.CREDIT])
|
|
532
572
|
})
|
|
@@ -534,24 +574,24 @@ const Oe = {
|
|
|
534
574
|
earningOption: c,
|
|
535
575
|
collectible: n,
|
|
536
576
|
notify: e.boolean().optional(),
|
|
537
|
-
notifyMessage: e.lazy(() =>
|
|
577
|
+
notifyMessage: e.lazy(() => E).optional(),
|
|
538
578
|
notifyCampaign: n.nullish(),
|
|
539
|
-
pf_collectible: e.lazy(() =>
|
|
579
|
+
pf_collectible: e.lazy(() => d).optional(),
|
|
540
580
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
541
|
-
}), g =
|
|
581
|
+
}), g = l.extend({
|
|
542
582
|
type: e.literal(t.enum.BROADCAST),
|
|
543
583
|
// event
|
|
544
|
-
event:
|
|
584
|
+
event: s.merge(
|
|
545
585
|
e.object({
|
|
546
586
|
type: e.enum(r[t.enum.BROADCAST])
|
|
547
587
|
})
|
|
548
588
|
),
|
|
549
|
-
message:
|
|
589
|
+
message: E,
|
|
550
590
|
linkedCampaign: n.nullish()
|
|
551
|
-
}),
|
|
591
|
+
}), K = l.extend({
|
|
552
592
|
type: e.literal(t.enum.COIN),
|
|
553
593
|
// event
|
|
554
|
-
event:
|
|
594
|
+
event: s.merge(
|
|
555
595
|
e.object({
|
|
556
596
|
type: e.enum(r[t.enum.COIN])
|
|
557
597
|
})
|
|
@@ -559,23 +599,23 @@ const Oe = {
|
|
|
559
599
|
earningOption: c,
|
|
560
600
|
collectible: n,
|
|
561
601
|
notify: e.boolean().optional(),
|
|
562
|
-
notifyMessage: e.lazy(() =>
|
|
602
|
+
notifyMessage: e.lazy(() => E).optional(),
|
|
563
603
|
notifyCampaign: n.nullish(),
|
|
564
|
-
pf_collectible: e.lazy(() =>
|
|
604
|
+
pf_collectible: e.lazy(() => d).optional(),
|
|
565
605
|
pf_notifyCampaign: e.lazy(() => g).optional()
|
|
566
|
-
}), C =
|
|
606
|
+
}), C = l.extend({
|
|
567
607
|
type: e.literal(t.enum.REWARD_POOL),
|
|
568
608
|
// event
|
|
569
|
-
event:
|
|
609
|
+
event: s.merge(
|
|
570
610
|
e.object({
|
|
571
611
|
type: e.enum(r[t.enum.REWARD_POOL])
|
|
572
612
|
})
|
|
573
613
|
),
|
|
574
|
-
rewards: e.array(e.lazy(() =>
|
|
575
|
-
}),
|
|
614
|
+
rewards: e.array(e.lazy(() => Le)).min(1, "Requires at least 1 reward")
|
|
615
|
+
}), J = l.extend({
|
|
576
616
|
type: e.literal(t.enum.GAME),
|
|
577
617
|
// event
|
|
578
|
-
event:
|
|
618
|
+
event: s.merge(
|
|
579
619
|
e.object({
|
|
580
620
|
type: e.enum(r[t.enum.GAME])
|
|
581
621
|
})
|
|
@@ -583,9 +623,21 @@ const Oe = {
|
|
|
583
623
|
earningOption: c,
|
|
584
624
|
collectible: n,
|
|
585
625
|
game: e.lazy(() => C).optional(),
|
|
586
|
-
pf_collectible: e.lazy(() =>
|
|
626
|
+
pf_collectible: e.lazy(() => d).optional(),
|
|
587
627
|
rewardPool: n.optional()
|
|
588
|
-
}),
|
|
628
|
+
}), Y = l.extend({
|
|
629
|
+
type: e.literal(t.enum.MISSION),
|
|
630
|
+
event: s.merge(
|
|
631
|
+
e.object({
|
|
632
|
+
type: e.enum(r[t.enum.MISSION])
|
|
633
|
+
})
|
|
634
|
+
),
|
|
635
|
+
earningOption: c,
|
|
636
|
+
collectible: n,
|
|
637
|
+
pf_collectible: e.lazy(() => d).optional(),
|
|
638
|
+
mission: e.lazy(() => Ne),
|
|
639
|
+
rewards: e.array(e.lazy(() => v)).min(1, "Requires at least 1 reward")
|
|
640
|
+
}), Ge = {
|
|
589
641
|
collectionName: "Campaigns",
|
|
590
642
|
transform: {
|
|
591
643
|
_id: "oid",
|
|
@@ -627,58 +679,67 @@ const Oe = {
|
|
|
627
679
|
as: "game"
|
|
628
680
|
}
|
|
629
681
|
}
|
|
630
|
-
},
|
|
682
|
+
}, Ze = e.object({ _id: n }).and(
|
|
631
683
|
e.discriminatedUnion("type", [
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
684
|
+
Ue,
|
|
685
|
+
w,
|
|
686
|
+
k,
|
|
687
|
+
W,
|
|
688
|
+
V,
|
|
637
689
|
g,
|
|
638
|
-
|
|
690
|
+
K,
|
|
639
691
|
C,
|
|
640
|
-
|
|
692
|
+
J,
|
|
693
|
+
Y
|
|
641
694
|
])
|
|
642
|
-
).describe(
|
|
643
|
-
|
|
695
|
+
).describe(p.describe(Ge)), Qe = e.discriminatedUnion("type", [
|
|
696
|
+
w.extend({
|
|
644
697
|
business: n.nullish()
|
|
645
698
|
}),
|
|
646
|
-
|
|
699
|
+
k.extend({
|
|
647
700
|
business: n.nullish()
|
|
648
701
|
}),
|
|
649
|
-
|
|
702
|
+
W.extend({
|
|
650
703
|
business: n.nullish()
|
|
651
704
|
}),
|
|
652
|
-
|
|
705
|
+
V.extend({
|
|
653
706
|
business: n.nullish()
|
|
654
707
|
}),
|
|
655
708
|
g.extend({
|
|
656
709
|
business: n.nullish()
|
|
657
710
|
}),
|
|
658
|
-
|
|
711
|
+
K.extend({
|
|
659
712
|
business: n.nullish()
|
|
660
713
|
}),
|
|
661
714
|
C.extend({
|
|
662
|
-
rewards: e.array(e.lazy(() =>
|
|
715
|
+
rewards: e.array(e.lazy(() => F)).min(1, "Requires at least 1 reward")
|
|
663
716
|
}),
|
|
664
|
-
|
|
717
|
+
J.extend({
|
|
665
718
|
business: n.nullish(),
|
|
666
719
|
game: C.extend({
|
|
667
720
|
business: n.nullish(),
|
|
668
|
-
rewards: e.array(e.lazy(() =>
|
|
721
|
+
rewards: e.array(e.lazy(() => F)).min(1, "Requires at least 1 reward")
|
|
669
722
|
})
|
|
723
|
+
}),
|
|
724
|
+
Y.extend({
|
|
725
|
+
business: n.nullish(),
|
|
726
|
+
rewards: e.array(e.lazy(() => Pe)).min(1, "Requires at least 1 reward")
|
|
670
727
|
})
|
|
671
728
|
]);
|
|
672
729
|
export {
|
|
673
730
|
r as C,
|
|
674
|
-
|
|
731
|
+
Je as F,
|
|
675
732
|
t as a,
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
733
|
+
Ke as b,
|
|
734
|
+
qe as c,
|
|
735
|
+
F as d,
|
|
736
|
+
xe as e,
|
|
737
|
+
Pe as f,
|
|
738
|
+
Ne as g,
|
|
739
|
+
Ve as h,
|
|
740
|
+
P as i,
|
|
741
|
+
Xe as j,
|
|
742
|
+
Qe as k,
|
|
743
|
+
Ze as l,
|
|
744
|
+
Ye as r
|
|
684
745
|
};
|