@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.
- package/README.md +31 -0
- package/dist/Analytic-Dljae6Yl.js +614 -0
- package/dist/Broadcast-CejuUG-1.js +216 -0
- package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DAxAfdPe.js +117 -0
- package/dist/Card-BqgQuGNe.js +775 -0
- package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +97 -0
- package/dist/Collections-CmIFQQxo.js +437 -0
- package/dist/Credit-Bi7zJdvK.js +214 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DLb_mc7S.js +1952 -0
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-BN9vbCIU.js +309 -0
- package/dist/Experience-CndnSCnn.js +211 -0
- package/dist/Game-CDctToIr.js +242 -0
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-DMsxZkxf.js +144 -0
- package/dist/JsonViewer-CDb_cQJh.js +87 -0
- package/dist/MainLayout-5NCcYKPh.js +18770 -0
- package/dist/Marketing-DcRex89D.js +309 -0
- package/dist/Member-KDAOZ4y7.js +90 -0
- package/dist/MemberList-7cfMhvnU.js +1752 -0
- package/dist/MemberOverview-C2n9oJZh.js +58 -0
- package/dist/MemberTransactions-Dd1NNP_h.js +38 -0
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Bniz5T6m.js +163 -0
- package/dist/Point-B-Yo0tOQ.js +211 -0
- package/dist/Promotion-B2t2rOB2.js +219 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Ml889DRQ.js +1461 -0
- package/dist/Segment-quTtfnsL.js +392 -0
- package/dist/Setting-BMQkU33O.js +1862 -0
- package/dist/Store-C0JEZe6U.js +1415 -0
- package/dist/StoreRewards-CozvYaoP.js +432 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BHaiBpBC.js +640 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CASpFDTp.js +124 -0
- package/dist/Tier-DU0ptI0I.js +821 -0
- package/dist/Title-BPvcg94P.js +496 -0
- package/dist/Transaction-Cgs5H5Vg.js +34 -0
- package/dist/Voucher-CMLmRUp5.js +448 -0
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +140 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/app-DRUbn5GO.js +31282 -0
- package/dist/app.js +5 -0
- package/dist/campaign-CpzFl8Vr.js +4 -0
- package/dist/campaign-DmbniSEP.js +93 -0
- package/dist/collection.fn-DHlfGYAC.js +24 -0
- package/dist/dto-ts2Lkngs.js +353 -0
- package/dist/effect-BTYIMeYm.js +61 -0
- package/dist/feedme.ico +0 -0
- package/dist/helper-CRmH0_yS.js +58 -0
- package/dist/index-BTanTa5F.js +64 -0
- package/dist/index-BZbepUcT.js +104 -0
- package/dist/index-C4AxDwBx.js +674 -0
- package/dist/index-CKhgwiA8.js +234 -0
- package/dist/index-ChAaKnz9.js +99 -0
- package/dist/index-CuvNtC_M.js +61 -0
- package/dist/index-DGFTGZj1.js +190 -0
- package/dist/index-Dbd4WA4r.js +61 -0
- package/dist/index-DkxEfDKI.js +1757 -0
- package/dist/index-DzrgTguB.js +38 -0
- package/dist/index-Iej6yAF2.js +8796 -0
- package/dist/index-Ix0P1Q7X.js +1742 -0
- package/dist/index-y3taWZm8.js +29565 -0
- package/dist/libs/packages/core/src/bill/bill.dto.d.ts +75 -0
- package/dist/libs/packages/core/src/bill/index.d.ts +115 -0
- package/dist/libs/packages/core/src/business/index.d.ts +21 -0
- package/dist/libs/packages/core/src/campaign/broadcast/index.d.ts +36 -0
- package/dist/libs/packages/core/src/campaign/campaign.enum.d.ts +3 -0
- package/dist/libs/packages/core/src/campaign/campaign.fn.d.ts +5 -0
- package/dist/libs/packages/core/src/campaign/group.d.ts +25 -0
- package/dist/libs/packages/core/src/campaign/index.d.ts +33448 -0
- package/dist/libs/packages/core/src/collectible/collectible.dto.d.ts +15 -0
- package/dist/libs/packages/core/src/collectible/collectible.enum.d.ts +14 -0
- package/dist/libs/packages/core/src/collectible/helper.d.ts +195 -0
- package/dist/libs/packages/core/src/collectible/index.d.ts +1588 -0
- package/dist/libs/packages/core/src/collectible/pool/index.d.ts +1381 -0
- package/dist/libs/packages/core/src/collection/collection.fn.d.ts +5 -0
- package/dist/libs/packages/core/src/collection/index.d.ts +901 -0
- package/dist/libs/packages/core/src/collection/transaction.d.ts +845 -0
- package/dist/libs/packages/core/src/collection/transaction.fn.d.ts +10 -0
- package/dist/libs/packages/core/src/common/array.d.ts +2 -0
- package/dist/libs/packages/core/src/common/hash.d.ts +10 -0
- package/dist/libs/packages/core/src/common/index.d.ts +42 -0
- package/dist/libs/packages/core/src/common/number.d.ts +7 -0
- package/dist/libs/packages/core/src/common/object.d.ts +5 -0
- package/dist/libs/packages/core/src/common/objectId.d.ts +2 -0
- package/dist/libs/packages/core/src/common/string.d.ts +4 -0
- package/dist/libs/packages/core/src/counter/counter.dto.d.ts +767 -0
- package/dist/libs/packages/core/src/counter/index.d.ts +1 -0
- package/dist/libs/packages/core/src/event/index.d.ts +4246 -0
- package/dist/libs/packages/core/src/feedback/index.d.ts +24 -0
- package/dist/libs/packages/core/src/game/index.d.ts +32 -0
- package/dist/libs/packages/core/src/index.d.ts +21 -0
- package/dist/libs/packages/core/src/internal/index.d.ts +56 -0
- package/dist/libs/packages/core/src/legacy/setting/index.d.ts +89 -0
- package/dist/libs/packages/core/src/location/index.d.ts +44 -0
- package/dist/libs/packages/core/src/loyalty/card/index.d.ts +1287 -0
- package/dist/libs/packages/core/src/loyalty/index.d.ts +3 -0
- package/dist/libs/packages/core/src/loyalty/tier/helper.d.ts +2 -0
- package/dist/libs/packages/core/src/loyalty/tier/index.d.ts +251 -0
- package/dist/libs/packages/core/src/loyalty/title/index.d.ts +4 -0
- package/dist/libs/packages/core/src/marketing-material/index.d.ts +186 -0
- package/dist/libs/packages/core/src/marketing-material/marketing-material.enum.d.ts +3 -0
- package/dist/libs/packages/core/src/notification/index.d.ts +130 -0
- package/dist/libs/packages/core/src/pagination/index.d.ts +25 -0
- package/dist/libs/packages/core/src/permission/index.d.ts +243 -0
- package/dist/libs/packages/core/src/service/index.d.ts +10 -0
- package/dist/libs/packages/core/src/store/dto.d.ts +1060 -0
- package/dist/libs/packages/core/src/store/index.d.ts +3894 -0
- package/dist/libs/packages/core/src/store/store.fn.d.ts +103 -0
- package/dist/libs/packages/core/src/template/index.d.ts +880 -0
- package/dist/libs/packages/core/src/template/templates.d.ts +1217 -0
- package/dist/libs/packages/core/src/user/index.d.ts +245 -0
- package/dist/libs/packages/core/src/user/segment.dto.d.ts +27 -0
- package/dist/libs/packages/core/src/user/segmentation.d.ts +28 -0
- package/dist/libs/packages/core/src/user/user.dto.d.ts +873 -0
- package/dist/libs/packages/core/src/validation/index.d.ts +1 -0
- package/dist/libs/packages/core/src/validation/rule/builder.d.ts +36 -0
- package/dist/libs/packages/core/src/validation/rule/index.d.ts +45 -0
- package/dist/libs/packages/core/src/validation/rule/operator.enum.d.ts +405 -0
- package/dist/libs/packages/core/src/validation/rule/rule.fn.d.ts +6 -0
- package/dist/libs/packages/validation/src/index.d.ts +3 -0
- package/dist/libs/packages/validation/src/rule/rule-builder.d.ts +19 -0
- package/dist/libs/packages/validation/src/rule/rule.d.ts +52 -0
- package/dist/libs/packages/validation/src/rule/validate.d.ts +2 -0
- package/dist/loading-Dy-VtOFu.js +3131 -0
- package/dist/lodash-BnddClG8.js +3678 -0
- package/dist/membership-28vBGpTw.js +213 -0
- package/dist/moment-BWErdI6_.js +2578 -0
- package/dist/money-Ch7o4R5s.js +15 -0
- package/dist/number-BgOMhVX5.js +12 -0
- package/dist/object-qECH92oz.js +26 -0
- package/dist/objectId-dwaoBfJX.js +7 -0
- package/dist/packages/connect/src/App.vue.d.ts +2 -0
- package/dist/packages/connect/src/Entry.vue.d.ts +2 -0
- package/dist/packages/connect/src/api/auth/index.d.ts +3 -0
- package/dist/packages/connect/src/api/campaign/index.d.ts +30 -0
- package/dist/packages/connect/src/api/campaign/template.d.ts +5 -0
- package/dist/packages/connect/src/api/index.d.ts +24 -0
- package/dist/packages/connect/src/api/location/index.d.ts +7 -0
- package/dist/packages/connect/src/api/marketing-material/index.d.ts +7 -0
- package/dist/packages/connect/src/api/member/index.d.ts +12 -0
- package/dist/packages/connect/src/api/membership/index.d.ts +31 -0
- package/dist/packages/connect/src/api/segments/index.d.ts +13 -0
- package/dist/packages/connect/src/api/settings/index.d.ts +4 -0
- package/dist/packages/connect/src/api/transaction/index.d.ts +9 -0
- package/dist/packages/connect/src/api/users/index.d.ts +8 -0
- package/dist/packages/connect/src/app.d.ts +16 -0
- package/dist/packages/connect/src/components/NavigationTab.vue.d.ts +2 -0
- package/dist/packages/connect/src/components/analytic/CampaignCard.vue.d.ts +24 -0
- package/dist/packages/connect/src/components/analytic/CampaignChip.vue.d.ts +47 -0
- package/dist/packages/connect/src/components/analytic/CampaignGroup.vue.d.ts +25 -0
- package/dist/packages/connect/src/components/analytic/CampaignStat.vue.d.ts +31 -0
- package/dist/packages/connect/src/components/analytic/LinkCampaign.vue.d.ts +30 -0
- package/dist/packages/connect/src/components/campaign/CampaignChip.vue.d.ts +13 -0
- package/dist/packages/connect/src/components/campaign/CampaignTriggerInput.vue.d.ts +34 -0
- package/dist/packages/connect/src/components/campaign/EarningOptionInput.vue.d.ts +50 -0
- package/dist/packages/connect/src/components/campaign/GameTypeInput.vue.d.ts +15 -0
- package/dist/packages/connect/src/components/campaign/MessageInput.vue.d.ts +58 -0
- package/dist/packages/connect/src/components/campaign/PromotionGameTypeInput.vue.d.ts +19 -0
- package/dist/packages/connect/src/components/campaign/ScheduleRuleInput.vue.d.ts +29 -0
- package/dist/packages/connect/src/components/campaign/TargetLocationInput.vue.d.ts +32 -0
- package/dist/packages/connect/src/components/campaign/ValidityInput.vue.d.ts +59 -0
- package/dist/packages/connect/src/components/collectible/CollectibleChip.vue.d.ts +13 -0
- package/dist/packages/connect/src/components/collectible/CollectibleOptionInput.vue.d.ts +59 -0
- package/dist/packages/connect/src/components/collection/Collections.vue.d.ts +2 -0
- package/dist/packages/connect/src/components/custom/ChipMenu.vue.d.ts +96 -0
- package/dist/packages/connect/src/components/custom/CustomSelect.vue.d.ts +68 -0
- package/dist/packages/connect/src/components/custom/DateInput.vue.d.ts +24 -0
- package/dist/packages/connect/src/components/custom/DateRangeChip.vue.d.ts +25 -0
- package/dist/packages/connect/src/components/custom/DateRangeInput.vue.d.ts +28 -0
- package/dist/packages/connect/src/components/custom/FilterChip.vue.d.ts +90 -0
- package/dist/packages/connect/src/components/custom/ImageInput.vue.d.ts +115 -0
- package/dist/packages/connect/src/components/custom/json/JsonNode.vue.d.ts +36 -0
- package/dist/packages/connect/src/components/custom/json/JsonViewer.vue.d.ts +22 -0
- package/dist/packages/connect/src/components/custom/zod/ZodTextField.vue.d.ts +52 -0
- package/dist/packages/connect/src/components/loading/ImageLoading.vue.d.ts +2 -0
- package/dist/packages/connect/src/components/loading/LottieAnimation.vue.d.ts +39 -0
- package/dist/packages/connect/src/components/loading/Splash.vue.d.ts +2 -0
- package/dist/packages/connect/src/components/loyalty/CampaignTypeDialog.vue.d.ts +13 -0
- package/dist/packages/connect/src/components/loyalty/CreditCoinDialog.vue.d.ts +29 -0
- package/dist/packages/connect/src/components/loyalty/TierExpression.vue.d.ts +32 -0
- package/dist/packages/connect/src/components/marketing/HeadlineStyleSideSheet.vue.d.ts +42 -0
- package/dist/packages/connect/src/components/marketing/ImageSideSheet.vue.d.ts +40 -0
- package/dist/packages/connect/src/components/marketing/LinkRewardSideSheet.vue.d.ts +30 -0
- package/dist/packages/connect/src/components/marketing/MarketingSheet.vue.d.ts +2 -0
- package/dist/packages/connect/src/components/marketing/RewardDropDown.vue.d.ts +26 -0
- package/dist/packages/connect/src/components/marketing/RightSheet.vue.d.ts +66 -0
- package/dist/packages/connect/src/components/marketing/SlideUpDown.vue.d.ts +27 -0
- package/dist/packages/connect/src/components/marketing/platform/BrandAppImage.vue.d.ts +103 -0
- package/dist/packages/connect/src/components/marketing/platform/FacebookPost.vue.d.ts +103 -0
- package/dist/packages/connect/src/components/marketing/platform/FacebookStory.vue.d.ts +103 -0
- package/dist/packages/connect/src/components/marketing/platform/ImageCanvas.vue.d.ts +81 -0
- package/dist/packages/connect/src/components/marketing/platform/InstagramPost.vue.d.ts +102 -0
- package/dist/packages/connect/src/components/marketing/platform/InstagramReel.vue.d.ts +102 -0
- package/dist/packages/connect/src/components/marketing/platform/InstagramStory.vue.d.ts +102 -0
- package/dist/packages/connect/src/components/marketing/platform/TvImage.vue.d.ts +103 -0
- package/dist/packages/connect/src/components/member/MemberDetail.vue.d.ts +2 -0
- package/dist/packages/connect/src/components/member/MemberList.vue.d.ts +2 -0
- package/dist/packages/connect/src/components/member/MemberOverview.vue.d.ts +2 -0
- package/dist/packages/connect/src/components/member/MemberStatsDialog.vue.d.ts +21 -0
- package/dist/packages/connect/src/components/rule/BillRuleGroup.vue.d.ts +19 -0
- package/dist/packages/connect/src/components/rule/CustomRuleDialog.vue.d.ts +30 -0
- package/dist/packages/connect/src/components/rule/FeedbackRuleGroup.vue.d.ts +19 -0
- package/dist/packages/connect/src/components/rule/PresetRuleDialog.vue.d.ts +20 -0
- package/dist/packages/connect/src/components/rule/RuleConfigurator.vue.d.ts +37 -0
- package/dist/packages/connect/src/components/rule/RuleEntry.vue.d.ts +19 -0
- package/dist/packages/connect/src/components/rule/RuleEquator.vue.d.ts +31 -0
- package/dist/packages/connect/src/components/rule/RuleGroup.vue.d.ts +30 -0
- package/dist/packages/connect/src/components/rule/SegmentConfigurator.vue.d.ts +17 -0
- package/dist/packages/connect/src/components/rule/TimeRuleGroup.vue.d.ts +19 -0
- package/dist/packages/connect/src/components/rule/UserRuleGroup.vue.d.ts +19 -0
- package/dist/packages/connect/src/components/rule/equators/BirthdayInput.vue.d.ts +15 -0
- package/dist/packages/connect/src/components/rule/equators/IsDayInput.vue.d.ts +24 -0
- package/dist/packages/connect/src/components/rule/equators/IsInMonthInput.vue.d.ts +16 -0
- package/dist/packages/connect/src/components/rule/equators/IsRangeInput.vue.d.ts +55 -0
- package/dist/packages/connect/src/components/rule/equators/RruleInput.vue.d.ts +37 -0
- package/dist/packages/connect/src/components/rule/presets.d.ts +18 -0
- package/dist/packages/connect/src/components/segment/ReviewSegment.vue.d.ts +16 -0
- package/dist/packages/connect/src/components/setting/LinkDeviceDialog.vue.d.ts +2 -0
- package/dist/packages/connect/src/components/store/AddBundleCard.vue.d.ts +6 -0
- package/dist/packages/connect/src/components/store/CategoryDialog.vue.d.ts +23 -0
- package/dist/packages/connect/src/components/store/StoreBundleCard.vue.d.ts +20 -0
- package/dist/packages/connect/src/components/store/StoreTransactions.vue.d.ts +10 -0
- package/dist/packages/connect/src/components/stripe/StripeSetting.vue.d.ts +21 -0
- package/dist/packages/connect/src/components/tax/TaxInclusiveSetting.vue.d.ts +30 -0
- package/dist/packages/connect/src/components/tax/TaxVariantSetting.vue.d.ts +24 -0
- package/dist/packages/connect/src/components/template/TemplateDialog.vue.d.ts +24 -0
- package/dist/packages/connect/src/components/template/TemplateInput.vue.d.ts +54 -0
- package/dist/packages/connect/src/components/tier/TierCard.vue.d.ts +39 -0
- package/dist/packages/connect/src/components/transactions/CollectionTransactions.vue.d.ts +10 -0
- package/dist/packages/connect/src/components/transactions/MemberTransactions.vue.d.ts +2 -0
- package/dist/packages/connect/src/composables/index.d.ts +2 -0
- package/dist/packages/connect/src/composables/loading.d.ts +19 -0
- package/dist/packages/connect/src/composables/template.d.ts +7 -0
- package/dist/packages/connect/src/export/collection.export.d.ts +9 -0
- package/dist/packages/connect/src/export/index.d.ts +9 -0
- package/dist/packages/connect/src/export/member.export.d.ts +33 -0
- package/dist/packages/connect/src/helpers/campaign.d.ts +94 -0
- package/dist/packages/connect/src/helpers/collectible.d.ts +58 -0
- package/dist/packages/connect/src/helpers/common.d.ts +1 -0
- package/dist/packages/connect/src/helpers/country.d.ts +21 -0
- package/dist/packages/connect/src/helpers/currency.d.ts +2 -0
- package/dist/packages/connect/src/helpers/effect.d.ts +7 -0
- package/dist/packages/connect/src/helpers/message.d.ts +32 -0
- package/dist/packages/connect/src/helpers/number.d.ts +3 -0
- package/dist/packages/connect/src/helpers/qr.d.ts +7 -0
- package/dist/packages/connect/src/helpers/rrule.d.ts +26 -0
- package/dist/packages/connect/src/helpers/rule.d.ts +91 -0
- package/dist/packages/connect/src/helpers/string.d.ts +16 -0
- package/dist/packages/connect/src/helpers/tax.d.ts +74 -0
- package/dist/packages/connect/src/helpers/trigger.d.ts +59 -0
- package/dist/packages/connect/src/helpers/zod.d.ts +27 -0
- package/dist/packages/connect/src/layouts/MainLayout.vue.d.ts +2 -0
- package/dist/packages/connect/src/main.d.ts +2 -0
- package/dist/packages/connect/src/router/index.d.ts +4 -0
- package/dist/packages/connect/src/router/name.d.ts +3 -0
- package/dist/packages/connect/src/router/shared.d.ts +11 -0
- package/dist/packages/connect/src/sheets/analytic/AnalyticSheet.vue.d.ts +12 -0
- package/dist/packages/connect/src/sheets/campaign/EditCampaignSheet.vue.d.ts +11 -0
- package/dist/packages/connect/src/sheets/campaign/SendVoucherSheet.vue.d.ts +13 -0
- package/dist/packages/connect/src/sheets/card/CardDesignSheet.vue.d.ts +9 -0
- package/dist/packages/connect/src/sheets/card/CreateCardSheet.vue.d.ts +9 -0
- package/dist/packages/connect/src/sheets/collectible/EditRewardSheet.vue.d.ts +15 -0
- package/dist/packages/connect/src/sheets/collectible/EditTitleSheet.vue.d.ts +15 -0
- package/dist/packages/connect/src/sheets/collection/CreateCollectionSheet.vue.d.ts +9 -0
- package/dist/packages/connect/src/sheets/effect/EffectSheet.vue.d.ts +135 -0
- package/dist/packages/connect/src/sheets/member/MemberDetailSheet.vue.d.ts +22 -0
- package/dist/packages/connect/src/sheets/store/StoreSettingSheet.vue.d.ts +80 -0
- package/dist/packages/connect/src/types/index.d.ts +4 -0
- package/dist/packages/connect/src/views/Analytic.vue.d.ts +2 -0
- package/dist/packages/connect/src/views/Marketing.vue.d.ts +2 -0
- package/dist/packages/connect/src/views/Setting.vue.d.ts +2 -0
- package/dist/packages/connect/src/views/Transaction.vue.d.ts +2 -0
- package/dist/packages/connect/src/views/campaign/Broadcast.vue.d.ts +2 -0
- package/dist/packages/connect/src/views/campaign/Promotion.vue.d.ts +2 -0
- package/dist/packages/connect/src/views/campaign/Voucher.vue.d.ts +2 -0
- package/dist/packages/connect/src/views/loyalty/Card.vue.d.ts +2 -0
- package/dist/packages/connect/src/views/loyalty/Member.vue.d.ts +2 -0
- package/dist/packages/connect/src/views/loyalty/Segment.vue.d.ts +2 -0
- package/dist/packages/connect/src/views/program/Credit.vue.d.ts +2 -0
- package/dist/packages/connect/src/views/program/Experience.vue.d.ts +2 -0
- package/dist/packages/connect/src/views/program/Game.vue.d.ts +2 -0
- package/dist/packages/connect/src/views/program/Point.vue.d.ts +2 -0
- package/dist/packages/connect/src/views/program/Tier.vue.d.ts +2 -0
- package/dist/packages/connect/src/views/program/Title.vue.d.ts +2 -0
- package/dist/packages/connect/src/views/store/Store.vue.d.ts +2 -0
- package/dist/packages/connect/src/views/store/StoreRewards.vue.d.ts +2 -0
- package/dist/rule-ByvLGHt_.js +1966 -0
- package/dist/rule-builder-C2aRGLCt.js +89 -0
- package/dist/style.css +1 -0
- package/dist/template-xUeXMsdp.js +190 -0
- package/dist/tier-BJDhpH6X.js +4 -0
- package/dist/tiers/tier=1.png +0 -0
- package/dist/tiers/tier=2.png +0 -0
- package/dist/tiers/tier=3.png +0 -0
- package/dist/tiers/tier=4.png +0 -0
- package/dist/titles/type=diamond.png +0 -0
- package/dist/titles/type=drinks.png +0 -0
- package/dist/titles/type=food.png +0 -0
- package/dist/titles/type=heart.png +0 -0
- package/dist/titles/type=medal.png +0 -0
- package/dist/titles/type=spend.png +0 -0
- package/dist/titles/type=thank-you.png +0 -0
- package/dist/titles/type=thumbs-up.png +0 -0
- package/dist/titles/type=years.png +0 -0
- package/dist/xlsx-CxXT5AXI.js +15491 -0
- package/package.json +67 -0
|
@@ -0,0 +1,4246 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { FdoRule } from '../validation';
|
|
3
|
+
export declare const F_EVENT_TYPE: z.ZodEnum<["SIMPLE_CLAIM", "LINK_CLAIM", "BILL_COMPLETED", "SCHEDULE", "BIRTHDAY", "FEEDBACK", "ENTER_SEGMENT", "MEMBERSHIP_JOINED", "TIER_UPGRADED", "MAKING_ORDER", "ISSUE_REWARD", "MEMBER_REWARD", "GAME_COMPLETED", "PAGINATE_SCHEDULE"]>;
|
|
4
|
+
export declare const F_CAMPAIGN_TRIGGER_TYPE: z.ZodEnum<["BILL_COMPLETED", "FEEDBACK", "GAME_COMPLETED", "MAKING_ORDER", "MEMBERSHIP_JOINED", "SCHEDULE", "SIMPLE_CLAIM", "TIER_UPGRADED", "ISSUE_REWARD"]>;
|
|
5
|
+
export declare const F_TRIGGERER_BIRTHDAY_TYPE: z.ZodEnum<["START_OF", "BEFORE"]>;
|
|
6
|
+
export declare const F_TRIGGERER_TIME_UNIT: z.ZodEnum<["WEEK", "MONTH"]>;
|
|
7
|
+
/**
|
|
8
|
+
* Event
|
|
9
|
+
*/
|
|
10
|
+
export declare const FdoBaseEvent: z.ZodObject<{
|
|
11
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
rule?: FdoRule | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
rule?: FdoRule | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const FdoBillCompletedEvent: z.ZodObject<{
|
|
18
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
19
|
+
type: z.ZodLiteral<"BILL_COMPLETED">;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
type: "BILL_COMPLETED";
|
|
22
|
+
rule?: FdoRule | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
type: "BILL_COMPLETED";
|
|
25
|
+
rule?: FdoRule | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const FdoFeedbackEvent: z.ZodObject<{
|
|
28
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
29
|
+
type: z.ZodLiteral<"FEEDBACK">;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
type: "FEEDBACK";
|
|
32
|
+
rule?: FdoRule | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
type: "FEEDBACK";
|
|
35
|
+
rule?: FdoRule | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
export declare const FdoSimpleClaimEvent: z.ZodObject<{
|
|
38
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
39
|
+
type: z.ZodLiteral<"SIMPLE_CLAIM">;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
type: "SIMPLE_CLAIM";
|
|
42
|
+
rule?: FdoRule | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
type: "SIMPLE_CLAIM";
|
|
45
|
+
rule?: FdoRule | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
export declare const FdoEnteredSegmentEvent: z.ZodObject<{
|
|
48
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
49
|
+
type: z.ZodLiteral<"ENTER_SEGMENT">;
|
|
50
|
+
segment: z.ZodString;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
type: "ENTER_SEGMENT";
|
|
53
|
+
segment: string;
|
|
54
|
+
rule?: FdoRule | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
type: "ENTER_SEGMENT";
|
|
57
|
+
segment: string;
|
|
58
|
+
rule?: FdoRule | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
export declare const FdoMemberRewardEvent: z.ZodObject<{
|
|
61
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
62
|
+
type: z.ZodLiteral<"MEMBER_REWARD">;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
type: "MEMBER_REWARD";
|
|
65
|
+
rule?: FdoRule | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
type: "MEMBER_REWARD";
|
|
68
|
+
rule?: FdoRule | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
/**
|
|
71
|
+
* weekday, every monday,wednesday: cron 0 0 * * 1,3
|
|
72
|
+
* day, every 1st of month: cron 0 0 1 * *
|
|
73
|
+
* month, everyday of january: cron 0 0 *\/1 * *
|
|
74
|
+
* specific day, national day: cron 0 0 31 8 *
|
|
75
|
+
*/
|
|
76
|
+
export declare const FdoScheduleEvent: z.ZodObject<{
|
|
77
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
78
|
+
type: z.ZodLiteral<"SCHEDULE">;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
type: "SCHEDULE";
|
|
81
|
+
rule?: FdoRule | undefined;
|
|
82
|
+
}, {
|
|
83
|
+
type: "SCHEDULE";
|
|
84
|
+
rule?: FdoRule | undefined;
|
|
85
|
+
}>;
|
|
86
|
+
export declare const FdoMembershipJoinedEvent: z.ZodObject<{
|
|
87
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
88
|
+
type: z.ZodLiteral<"MEMBERSHIP_JOINED">;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
type: "MEMBERSHIP_JOINED";
|
|
91
|
+
rule?: FdoRule | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
type: "MEMBERSHIP_JOINED";
|
|
94
|
+
rule?: FdoRule | undefined;
|
|
95
|
+
}>;
|
|
96
|
+
export declare const FdoTierUpgradedEvent: z.ZodObject<{
|
|
97
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
98
|
+
type: z.ZodLiteral<"TIER_UPGRADED">;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
type: "TIER_UPGRADED";
|
|
101
|
+
rule?: FdoRule | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
type: "TIER_UPGRADED";
|
|
104
|
+
rule?: FdoRule | undefined;
|
|
105
|
+
}>;
|
|
106
|
+
export declare const FdoMakingOrderEvent: z.ZodObject<{
|
|
107
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
108
|
+
type: z.ZodLiteral<"MAKING_ORDER">;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
type: "MAKING_ORDER";
|
|
111
|
+
rule?: FdoRule | undefined;
|
|
112
|
+
}, {
|
|
113
|
+
type: "MAKING_ORDER";
|
|
114
|
+
rule?: FdoRule | undefined;
|
|
115
|
+
}>;
|
|
116
|
+
export declare const FdoIssueRewardEvent: z.ZodObject<{
|
|
117
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
118
|
+
type: z.ZodLiteral<"ISSUE_REWARD">;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
type: "ISSUE_REWARD";
|
|
121
|
+
rule?: FdoRule | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
type: "ISSUE_REWARD";
|
|
124
|
+
rule?: FdoRule | undefined;
|
|
125
|
+
}>;
|
|
126
|
+
export declare const FdoGameCompletedEvent: z.ZodObject<{
|
|
127
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
128
|
+
type: z.ZodLiteral<"GAME_COMPLETED">;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
type: "GAME_COMPLETED";
|
|
131
|
+
rule?: FdoRule | undefined;
|
|
132
|
+
}, {
|
|
133
|
+
type: "GAME_COMPLETED";
|
|
134
|
+
rule?: FdoRule | undefined;
|
|
135
|
+
}>;
|
|
136
|
+
export declare const FdoEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
137
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
138
|
+
type: z.ZodLiteral<"SIMPLE_CLAIM">;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
type: "SIMPLE_CLAIM";
|
|
141
|
+
rule?: FdoRule | undefined;
|
|
142
|
+
}, {
|
|
143
|
+
type: "SIMPLE_CLAIM";
|
|
144
|
+
rule?: FdoRule | undefined;
|
|
145
|
+
}>, z.ZodObject<{
|
|
146
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
147
|
+
type: z.ZodLiteral<"BILL_COMPLETED">;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
type: "BILL_COMPLETED";
|
|
150
|
+
rule?: FdoRule | undefined;
|
|
151
|
+
}, {
|
|
152
|
+
type: "BILL_COMPLETED";
|
|
153
|
+
rule?: FdoRule | undefined;
|
|
154
|
+
}>, z.ZodObject<{
|
|
155
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
156
|
+
type: z.ZodLiteral<"SCHEDULE">;
|
|
157
|
+
}, "strip", z.ZodTypeAny, {
|
|
158
|
+
type: "SCHEDULE";
|
|
159
|
+
rule?: FdoRule | undefined;
|
|
160
|
+
}, {
|
|
161
|
+
type: "SCHEDULE";
|
|
162
|
+
rule?: FdoRule | undefined;
|
|
163
|
+
}>, z.ZodObject<{
|
|
164
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
165
|
+
type: z.ZodLiteral<"FEEDBACK">;
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
type: "FEEDBACK";
|
|
168
|
+
rule?: FdoRule | undefined;
|
|
169
|
+
}, {
|
|
170
|
+
type: "FEEDBACK";
|
|
171
|
+
rule?: FdoRule | undefined;
|
|
172
|
+
}>, z.ZodObject<{
|
|
173
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
174
|
+
type: z.ZodLiteral<"MEMBERSHIP_JOINED">;
|
|
175
|
+
}, "strip", z.ZodTypeAny, {
|
|
176
|
+
type: "MEMBERSHIP_JOINED";
|
|
177
|
+
rule?: FdoRule | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
type: "MEMBERSHIP_JOINED";
|
|
180
|
+
rule?: FdoRule | undefined;
|
|
181
|
+
}>, z.ZodObject<{
|
|
182
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
183
|
+
type: z.ZodLiteral<"TIER_UPGRADED">;
|
|
184
|
+
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
type: "TIER_UPGRADED";
|
|
186
|
+
rule?: FdoRule | undefined;
|
|
187
|
+
}, {
|
|
188
|
+
type: "TIER_UPGRADED";
|
|
189
|
+
rule?: FdoRule | undefined;
|
|
190
|
+
}>, z.ZodObject<{
|
|
191
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
192
|
+
type: z.ZodLiteral<"MAKING_ORDER">;
|
|
193
|
+
}, "strip", z.ZodTypeAny, {
|
|
194
|
+
type: "MAKING_ORDER";
|
|
195
|
+
rule?: FdoRule | undefined;
|
|
196
|
+
}, {
|
|
197
|
+
type: "MAKING_ORDER";
|
|
198
|
+
rule?: FdoRule | undefined;
|
|
199
|
+
}>, z.ZodObject<{
|
|
200
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
201
|
+
type: z.ZodLiteral<"ISSUE_REWARD">;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
type: "ISSUE_REWARD";
|
|
204
|
+
rule?: FdoRule | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
type: "ISSUE_REWARD";
|
|
207
|
+
rule?: FdoRule | undefined;
|
|
208
|
+
}>, z.ZodObject<{
|
|
209
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
210
|
+
type: z.ZodLiteral<"MEMBER_REWARD">;
|
|
211
|
+
}, "strip", z.ZodTypeAny, {
|
|
212
|
+
type: "MEMBER_REWARD";
|
|
213
|
+
rule?: FdoRule | undefined;
|
|
214
|
+
}, {
|
|
215
|
+
type: "MEMBER_REWARD";
|
|
216
|
+
rule?: FdoRule | undefined;
|
|
217
|
+
}>, z.ZodObject<{
|
|
218
|
+
rule: z.ZodOptional<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>;
|
|
219
|
+
type: z.ZodLiteral<"GAME_COMPLETED">;
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
type: "GAME_COMPLETED";
|
|
222
|
+
rule?: FdoRule | undefined;
|
|
223
|
+
}, {
|
|
224
|
+
type: "GAME_COMPLETED";
|
|
225
|
+
rule?: FdoRule | undefined;
|
|
226
|
+
}>]>;
|
|
227
|
+
export declare const FdoEventLog: z.ZodObject<{
|
|
228
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
229
|
+
type: z.ZodEnum<["SIMPLE_CLAIM", "LINK_CLAIM", "BILL_COMPLETED", "SCHEDULE", "BIRTHDAY", "FEEDBACK", "ENTER_SEGMENT", "MEMBERSHIP_JOINED", "TIER_UPGRADED", "MAKING_ORDER", "ISSUE_REWARD", "MEMBER_REWARD", "GAME_COMPLETED", "PAGINATE_SCHEDULE"]>;
|
|
230
|
+
ref: z.ZodString;
|
|
231
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
232
|
+
}, "strip", z.ZodTypeAny, {
|
|
233
|
+
type: "SIMPLE_CLAIM" | "LINK_CLAIM" | "BILL_COMPLETED" | "SCHEDULE" | "BIRTHDAY" | "FEEDBACK" | "ENTER_SEGMENT" | "MEMBERSHIP_JOINED" | "TIER_UPGRADED" | "MAKING_ORDER" | "ISSUE_REWARD" | "MEMBER_REWARD" | "GAME_COMPLETED" | "PAGINATE_SCHEDULE";
|
|
234
|
+
ref: string;
|
|
235
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
236
|
+
context?: Record<string, any> | undefined;
|
|
237
|
+
}, {
|
|
238
|
+
type: "SIMPLE_CLAIM" | "LINK_CLAIM" | "BILL_COMPLETED" | "SCHEDULE" | "BIRTHDAY" | "FEEDBACK" | "ENTER_SEGMENT" | "MEMBERSHIP_JOINED" | "TIER_UPGRADED" | "MAKING_ORDER" | "ISSUE_REWARD" | "MEMBER_REWARD" | "GAME_COMPLETED" | "PAGINATE_SCHEDULE";
|
|
239
|
+
ref: string;
|
|
240
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
241
|
+
context?: Record<string, any> | undefined;
|
|
242
|
+
}>;
|
|
243
|
+
export declare const FdtoBaseEvent: z.ZodObject<{
|
|
244
|
+
type: z.ZodEnum<["SIMPLE_CLAIM", "LINK_CLAIM", "BILL_COMPLETED", "SCHEDULE", "BIRTHDAY", "FEEDBACK", "ENTER_SEGMENT", "MEMBERSHIP_JOINED", "TIER_UPGRADED", "MAKING_ORDER", "ISSUE_REWARD", "MEMBER_REWARD", "GAME_COMPLETED", "PAGINATE_SCHEDULE"]>;
|
|
245
|
+
context: z.ZodAny;
|
|
246
|
+
campaignIds: z.ZodOptional<z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">>;
|
|
247
|
+
slackWebhookUrl: z.ZodOptional<z.ZodString>;
|
|
248
|
+
emittedAt: z.ZodDefault<z.ZodDate>;
|
|
249
|
+
}, "strip", z.ZodTypeAny, {
|
|
250
|
+
type: "SIMPLE_CLAIM" | "LINK_CLAIM" | "BILL_COMPLETED" | "SCHEDULE" | "BIRTHDAY" | "FEEDBACK" | "ENTER_SEGMENT" | "MEMBERSHIP_JOINED" | "TIER_UPGRADED" | "MAKING_ORDER" | "ISSUE_REWARD" | "MEMBER_REWARD" | "GAME_COMPLETED" | "PAGINATE_SCHEDULE";
|
|
251
|
+
emittedAt: Date;
|
|
252
|
+
context?: any;
|
|
253
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
254
|
+
slackWebhookUrl?: string | undefined;
|
|
255
|
+
}, {
|
|
256
|
+
type: "SIMPLE_CLAIM" | "LINK_CLAIM" | "BILL_COMPLETED" | "SCHEDULE" | "BIRTHDAY" | "FEEDBACK" | "ENTER_SEGMENT" | "MEMBERSHIP_JOINED" | "TIER_UPGRADED" | "MAKING_ORDER" | "ISSUE_REWARD" | "MEMBER_REWARD" | "GAME_COMPLETED" | "PAGINATE_SCHEDULE";
|
|
257
|
+
context?: any;
|
|
258
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
259
|
+
slackWebhookUrl?: string | undefined;
|
|
260
|
+
emittedAt?: Date | undefined;
|
|
261
|
+
}>;
|
|
262
|
+
export declare const FdtoBillCompletedEvent: z.ZodObject<{
|
|
263
|
+
campaignIds: z.ZodOptional<z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">>;
|
|
264
|
+
slackWebhookUrl: z.ZodOptional<z.ZodString>;
|
|
265
|
+
emittedAt: z.ZodDefault<z.ZodDate>;
|
|
266
|
+
type: z.ZodLiteral<"BILL_COMPLETED">;
|
|
267
|
+
context: z.ZodObject<{
|
|
268
|
+
bill: z.ZodEffects<z.ZodObject<{
|
|
269
|
+
_id: z.ZodString;
|
|
270
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
271
|
+
memberid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
272
|
+
nettTotal: z.ZodObject<{
|
|
273
|
+
currency: z.ZodUnion<[z.ZodLiteral<"AED">, z.ZodLiteral<"AFN">, z.ZodLiteral<"ALL">, z.ZodLiteral<"AMD">, z.ZodLiteral<"ANG">, z.ZodLiteral<"AOA">, z.ZodLiteral<"ARS">, z.ZodLiteral<"AUD">, z.ZodLiteral<"AWG">, z.ZodLiteral<"AZN">, z.ZodLiteral<"BAM">, z.ZodLiteral<"BBD">, z.ZodLiteral<"BDT">, z.ZodLiteral<"BGN">, z.ZodLiteral<"BHD">, z.ZodLiteral<"BIF">, z.ZodLiteral<"BMD">, z.ZodLiteral<"BND">, z.ZodLiteral<"BOB">, z.ZodLiteral<"BOV">, z.ZodLiteral<"BRL">, z.ZodLiteral<"BSD">, z.ZodLiteral<"BTN">, z.ZodLiteral<"BWP">, z.ZodLiteral<"BYN">, z.ZodLiteral<"BZD">, z.ZodLiteral<"CAD">, z.ZodLiteral<"CDF">, z.ZodLiteral<"CHE">, z.ZodLiteral<"CHF">, z.ZodLiteral<"CHW">, z.ZodLiteral<"CLF">, z.ZodLiteral<"CLP">, z.ZodLiteral<"CNY">, z.ZodLiteral<"COP">, z.ZodLiteral<"COU">, z.ZodLiteral<"CRC">, z.ZodLiteral<"CUC">, z.ZodLiteral<"CUP">, z.ZodLiteral<"CVE">, z.ZodLiteral<"CZK">, z.ZodLiteral<"DJF">, z.ZodLiteral<"DKK">, z.ZodLiteral<"DOP">, z.ZodLiteral<"DZD">, z.ZodLiteral<"EGP">, z.ZodLiteral<"ERN">, z.ZodLiteral<"ETB">, z.ZodLiteral<"EUR">, z.ZodLiteral<"FJD">, z.ZodLiteral<"FKP">, z.ZodLiteral<"GBP">, z.ZodLiteral<"GEL">, z.ZodLiteral<"GHS">, z.ZodLiteral<"GIP">, z.ZodLiteral<"GMD">, z.ZodLiteral<"GNF">, z.ZodLiteral<"GTQ">, z.ZodLiteral<"GYD">, z.ZodLiteral<"HKD">, z.ZodLiteral<"HNL">, z.ZodLiteral<"HRK">, z.ZodLiteral<"HTG">, z.ZodLiteral<"HUF">, z.ZodLiteral<"IDR">, z.ZodLiteral<"ILS">, z.ZodLiteral<"INR">, z.ZodLiteral<"IQD">, z.ZodLiteral<"IRR">, z.ZodLiteral<"ISK">, z.ZodLiteral<"JMD">, z.ZodLiteral<"JOD">, z.ZodLiteral<"JPY">, z.ZodLiteral<"KES">, z.ZodLiteral<"KGS">, z.ZodLiteral<"KHR">, z.ZodLiteral<"KMF">, z.ZodLiteral<"KPW">, z.ZodLiteral<"KRW">, z.ZodLiteral<"KWD">, z.ZodLiteral<"KYD">, z.ZodLiteral<"KZT">, z.ZodLiteral<"LAK">, z.ZodLiteral<"LBP">, z.ZodLiteral<"LKR">, z.ZodLiteral<"LRD">, z.ZodLiteral<"LSL">, z.ZodLiteral<"LYD">, z.ZodLiteral<"MAD">, z.ZodLiteral<"MDL">, z.ZodLiteral<"MGA">, z.ZodLiteral<"MKD">, z.ZodLiteral<"MMK">, z.ZodLiteral<"MNT">, z.ZodLiteral<"MOP">, z.ZodLiteral<"MRU">, z.ZodLiteral<"MUR">, z.ZodLiteral<"MVR">, z.ZodLiteral<"MWK">, z.ZodLiteral<"MXN">, z.ZodLiteral<"MXV">, z.ZodLiteral<"MYR">, z.ZodLiteral<"MZN">, z.ZodLiteral<"NAD">, z.ZodLiteral<"NGN">, z.ZodLiteral<"NIO">, z.ZodLiteral<"NOK">, z.ZodLiteral<"NPR">, z.ZodLiteral<"NZD">, z.ZodLiteral<"OMR">, z.ZodLiteral<"PAB">, z.ZodLiteral<"PEN">, z.ZodLiteral<"PGK">, z.ZodLiteral<"PHP">, z.ZodLiteral<"PKR">, z.ZodLiteral<"PLN">, z.ZodLiteral<"PYG">, z.ZodLiteral<"QAR">, z.ZodLiteral<"RON">, z.ZodLiteral<"RSD">, z.ZodLiteral<"RUB">, z.ZodLiteral<"RWF">, z.ZodLiteral<"SAR">, z.ZodLiteral<"SBD">, z.ZodLiteral<"SCR">, z.ZodLiteral<"SDG">, z.ZodLiteral<"SEK">, z.ZodLiteral<"SGD">, z.ZodLiteral<"SHP">, z.ZodLiteral<"SLL">, z.ZodLiteral<"SOS">, z.ZodLiteral<"SRD">, z.ZodLiteral<"SSP">, z.ZodLiteral<"STN">, z.ZodLiteral<"SVC">, z.ZodLiteral<"SYP">, z.ZodLiteral<"SZL">, z.ZodLiteral<"THB">, z.ZodLiteral<"TJS">, z.ZodLiteral<"TMT">, z.ZodLiteral<"TND">, z.ZodLiteral<"TOP">, z.ZodLiteral<"TRY">, z.ZodLiteral<"TTD">, z.ZodLiteral<"TWD">, z.ZodLiteral<"TZS">, z.ZodLiteral<"UAH">, z.ZodLiteral<"UGX">, z.ZodLiteral<"USD">, z.ZodLiteral<"USN">, z.ZodLiteral<"UYI">, z.ZodLiteral<"UYU">, z.ZodLiteral<"UYW">, z.ZodLiteral<"UZS">, z.ZodLiteral<"VES">, z.ZodLiteral<"VND">, z.ZodLiteral<"VUV">, z.ZodLiteral<"WST">, z.ZodLiteral<"XAF">, z.ZodLiteral<"XAG">, z.ZodLiteral<"XAU">, z.ZodLiteral<"XBA">, z.ZodLiteral<"XBB">, z.ZodLiteral<"XBC">, z.ZodLiteral<"XBD">, z.ZodLiteral<"XCD">, z.ZodLiteral<"XDR">, z.ZodLiteral<"XOF">, z.ZodLiteral<"XPD">, z.ZodLiteral<"XPF">, z.ZodLiteral<"XPT">, z.ZodLiteral<"XSU">, z.ZodLiteral<"XTS">, z.ZodLiteral<"XUA">, z.ZodLiteral<"XXX">, z.ZodLiteral<"YER">, z.ZodLiteral<"ZAR">, z.ZodLiteral<"ZMW">, z.ZodLiteral<"ZWL">]>;
|
|
274
|
+
amount: z.ZodNumber;
|
|
275
|
+
precision: z.ZodNumber;
|
|
276
|
+
}, "strip", z.ZodTypeAny, {
|
|
277
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
278
|
+
amount: number;
|
|
279
|
+
precision: number;
|
|
280
|
+
}, {
|
|
281
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
282
|
+
amount: number;
|
|
283
|
+
precision: number;
|
|
284
|
+
}>;
|
|
285
|
+
remark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
286
|
+
createdAt: z.ZodDate;
|
|
287
|
+
completedAt: z.ZodDate;
|
|
288
|
+
location: z.ZodString;
|
|
289
|
+
channel: z.ZodOptional<z.ZodEnum<["COUNTER", "POS"]>>;
|
|
290
|
+
}, "strip", z.ZodTypeAny, {
|
|
291
|
+
_id: string;
|
|
292
|
+
location: string;
|
|
293
|
+
nettTotal: {
|
|
294
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
295
|
+
amount: number;
|
|
296
|
+
precision: number;
|
|
297
|
+
};
|
|
298
|
+
createdAt: Date;
|
|
299
|
+
completedAt: Date;
|
|
300
|
+
user?: string | null | undefined;
|
|
301
|
+
memberid?: string | null | undefined;
|
|
302
|
+
remark?: string | null | undefined;
|
|
303
|
+
channel?: "COUNTER" | "POS" | undefined;
|
|
304
|
+
}, {
|
|
305
|
+
_id: string;
|
|
306
|
+
location: string;
|
|
307
|
+
nettTotal: {
|
|
308
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
309
|
+
amount: number;
|
|
310
|
+
precision: number;
|
|
311
|
+
};
|
|
312
|
+
createdAt: Date;
|
|
313
|
+
completedAt: Date;
|
|
314
|
+
user?: string | null | undefined;
|
|
315
|
+
memberid?: string | null | undefined;
|
|
316
|
+
remark?: string | null | undefined;
|
|
317
|
+
channel?: "COUNTER" | "POS" | undefined;
|
|
318
|
+
}>, {
|
|
319
|
+
createdTime: Date;
|
|
320
|
+
completedTime: Date;
|
|
321
|
+
amount: number;
|
|
322
|
+
_id: string;
|
|
323
|
+
location: string;
|
|
324
|
+
nettTotal: {
|
|
325
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
326
|
+
amount: number;
|
|
327
|
+
precision: number;
|
|
328
|
+
};
|
|
329
|
+
createdAt: Date;
|
|
330
|
+
completedAt: Date;
|
|
331
|
+
user?: string | null | undefined;
|
|
332
|
+
memberid?: string | null | undefined;
|
|
333
|
+
remark?: string | null | undefined;
|
|
334
|
+
channel?: "COUNTER" | "POS" | undefined;
|
|
335
|
+
}, {
|
|
336
|
+
_id: string;
|
|
337
|
+
location: string;
|
|
338
|
+
nettTotal: {
|
|
339
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
340
|
+
amount: number;
|
|
341
|
+
precision: number;
|
|
342
|
+
};
|
|
343
|
+
createdAt: Date;
|
|
344
|
+
completedAt: Date;
|
|
345
|
+
user?: string | null | undefined;
|
|
346
|
+
memberid?: string | null | undefined;
|
|
347
|
+
remark?: string | null | undefined;
|
|
348
|
+
channel?: "COUNTER" | "POS" | undefined;
|
|
349
|
+
}>;
|
|
350
|
+
}, "strip", z.ZodTypeAny, {
|
|
351
|
+
bill: {
|
|
352
|
+
createdTime: Date;
|
|
353
|
+
completedTime: Date;
|
|
354
|
+
amount: number;
|
|
355
|
+
_id: string;
|
|
356
|
+
location: string;
|
|
357
|
+
nettTotal: {
|
|
358
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
359
|
+
amount: number;
|
|
360
|
+
precision: number;
|
|
361
|
+
};
|
|
362
|
+
createdAt: Date;
|
|
363
|
+
completedAt: Date;
|
|
364
|
+
user?: string | null | undefined;
|
|
365
|
+
memberid?: string | null | undefined;
|
|
366
|
+
remark?: string | null | undefined;
|
|
367
|
+
channel?: "COUNTER" | "POS" | undefined;
|
|
368
|
+
};
|
|
369
|
+
}, {
|
|
370
|
+
bill: {
|
|
371
|
+
_id: string;
|
|
372
|
+
location: string;
|
|
373
|
+
nettTotal: {
|
|
374
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
375
|
+
amount: number;
|
|
376
|
+
precision: number;
|
|
377
|
+
};
|
|
378
|
+
createdAt: Date;
|
|
379
|
+
completedAt: Date;
|
|
380
|
+
user?: string | null | undefined;
|
|
381
|
+
memberid?: string | null | undefined;
|
|
382
|
+
remark?: string | null | undefined;
|
|
383
|
+
channel?: "COUNTER" | "POS" | undefined;
|
|
384
|
+
};
|
|
385
|
+
}>;
|
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
|
387
|
+
type: "BILL_COMPLETED";
|
|
388
|
+
context: {
|
|
389
|
+
bill: {
|
|
390
|
+
createdTime: Date;
|
|
391
|
+
completedTime: Date;
|
|
392
|
+
amount: number;
|
|
393
|
+
_id: string;
|
|
394
|
+
location: string;
|
|
395
|
+
nettTotal: {
|
|
396
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
397
|
+
amount: number;
|
|
398
|
+
precision: number;
|
|
399
|
+
};
|
|
400
|
+
createdAt: Date;
|
|
401
|
+
completedAt: Date;
|
|
402
|
+
user?: string | null | undefined;
|
|
403
|
+
memberid?: string | null | undefined;
|
|
404
|
+
remark?: string | null | undefined;
|
|
405
|
+
channel?: "COUNTER" | "POS" | undefined;
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
emittedAt: Date;
|
|
409
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
410
|
+
slackWebhookUrl?: string | undefined;
|
|
411
|
+
}, {
|
|
412
|
+
type: "BILL_COMPLETED";
|
|
413
|
+
context: {
|
|
414
|
+
bill: {
|
|
415
|
+
_id: string;
|
|
416
|
+
location: string;
|
|
417
|
+
nettTotal: {
|
|
418
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
419
|
+
amount: number;
|
|
420
|
+
precision: number;
|
|
421
|
+
};
|
|
422
|
+
createdAt: Date;
|
|
423
|
+
completedAt: Date;
|
|
424
|
+
user?: string | null | undefined;
|
|
425
|
+
memberid?: string | null | undefined;
|
|
426
|
+
remark?: string | null | undefined;
|
|
427
|
+
channel?: "COUNTER" | "POS" | undefined;
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
431
|
+
slackWebhookUrl?: string | undefined;
|
|
432
|
+
emittedAt?: Date | undefined;
|
|
433
|
+
}>;
|
|
434
|
+
export declare const FdtoScheduleEvent: z.ZodObject<{
|
|
435
|
+
campaignIds: z.ZodOptional<z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">>;
|
|
436
|
+
slackWebhookUrl: z.ZodOptional<z.ZodString>;
|
|
437
|
+
emittedAt: z.ZodDefault<z.ZodDate>;
|
|
438
|
+
type: z.ZodLiteral<"SCHEDULE">;
|
|
439
|
+
context: z.ZodObject<{
|
|
440
|
+
triggeredAt: z.ZodDate;
|
|
441
|
+
}, "strip", z.ZodTypeAny, {
|
|
442
|
+
triggeredAt: Date;
|
|
443
|
+
}, {
|
|
444
|
+
triggeredAt: Date;
|
|
445
|
+
}>;
|
|
446
|
+
}, "strip", z.ZodTypeAny, {
|
|
447
|
+
type: "SCHEDULE";
|
|
448
|
+
context: {
|
|
449
|
+
triggeredAt: Date;
|
|
450
|
+
};
|
|
451
|
+
emittedAt: Date;
|
|
452
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
453
|
+
slackWebhookUrl?: string | undefined;
|
|
454
|
+
}, {
|
|
455
|
+
type: "SCHEDULE";
|
|
456
|
+
context: {
|
|
457
|
+
triggeredAt: Date;
|
|
458
|
+
};
|
|
459
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
460
|
+
slackWebhookUrl?: string | undefined;
|
|
461
|
+
emittedAt?: Date | undefined;
|
|
462
|
+
}>;
|
|
463
|
+
export declare const FdtoPaginateScheduleEvent: z.ZodObject<{
|
|
464
|
+
campaignIds: z.ZodOptional<z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">>;
|
|
465
|
+
slackWebhookUrl: z.ZodOptional<z.ZodString>;
|
|
466
|
+
emittedAt: z.ZodDefault<z.ZodDate>;
|
|
467
|
+
type: z.ZodLiteral<"PAGINATE_SCHEDULE">;
|
|
468
|
+
context: z.ZodObject<{
|
|
469
|
+
triggeredAt: z.ZodDate;
|
|
470
|
+
business: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
471
|
+
skip: z.ZodNumber;
|
|
472
|
+
limit: z.ZodNumber;
|
|
473
|
+
}, "strip", z.ZodTypeAny, {
|
|
474
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
475
|
+
triggeredAt: Date;
|
|
476
|
+
skip: number;
|
|
477
|
+
limit: number;
|
|
478
|
+
}, {
|
|
479
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
480
|
+
triggeredAt: Date;
|
|
481
|
+
skip: number;
|
|
482
|
+
limit: number;
|
|
483
|
+
}>;
|
|
484
|
+
}, "strip", z.ZodTypeAny, {
|
|
485
|
+
type: "PAGINATE_SCHEDULE";
|
|
486
|
+
context: {
|
|
487
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
488
|
+
triggeredAt: Date;
|
|
489
|
+
skip: number;
|
|
490
|
+
limit: number;
|
|
491
|
+
};
|
|
492
|
+
emittedAt: Date;
|
|
493
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
494
|
+
slackWebhookUrl?: string | undefined;
|
|
495
|
+
}, {
|
|
496
|
+
type: "PAGINATE_SCHEDULE";
|
|
497
|
+
context: {
|
|
498
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
499
|
+
triggeredAt: Date;
|
|
500
|
+
skip: number;
|
|
501
|
+
limit: number;
|
|
502
|
+
};
|
|
503
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
504
|
+
slackWebhookUrl?: string | undefined;
|
|
505
|
+
emittedAt?: Date | undefined;
|
|
506
|
+
}>;
|
|
507
|
+
export declare const FdtoFeedbackEvent: z.ZodObject<{
|
|
508
|
+
campaignIds: z.ZodOptional<z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">>;
|
|
509
|
+
slackWebhookUrl: z.ZodOptional<z.ZodString>;
|
|
510
|
+
emittedAt: z.ZodDefault<z.ZodDate>;
|
|
511
|
+
type: z.ZodLiteral<"FEEDBACK">;
|
|
512
|
+
context: z.ZodObject<{
|
|
513
|
+
feedback: z.ZodObject<{
|
|
514
|
+
_id: z.ZodString;
|
|
515
|
+
rating: z.ZodNumber;
|
|
516
|
+
user: z.ZodString;
|
|
517
|
+
restaurant: z.ZodString;
|
|
518
|
+
message: z.ZodString;
|
|
519
|
+
submittedAt: z.ZodDate;
|
|
520
|
+
}, "strip", z.ZodTypeAny, {
|
|
521
|
+
message: string;
|
|
522
|
+
_id: string;
|
|
523
|
+
user: string;
|
|
524
|
+
rating: number;
|
|
525
|
+
restaurant: string;
|
|
526
|
+
submittedAt: Date;
|
|
527
|
+
}, {
|
|
528
|
+
message: string;
|
|
529
|
+
_id: string;
|
|
530
|
+
user: string;
|
|
531
|
+
rating: number;
|
|
532
|
+
restaurant: string;
|
|
533
|
+
submittedAt: Date;
|
|
534
|
+
}>;
|
|
535
|
+
}, "strip", z.ZodTypeAny, {
|
|
536
|
+
feedback: {
|
|
537
|
+
message: string;
|
|
538
|
+
_id: string;
|
|
539
|
+
user: string;
|
|
540
|
+
rating: number;
|
|
541
|
+
restaurant: string;
|
|
542
|
+
submittedAt: Date;
|
|
543
|
+
};
|
|
544
|
+
}, {
|
|
545
|
+
feedback: {
|
|
546
|
+
message: string;
|
|
547
|
+
_id: string;
|
|
548
|
+
user: string;
|
|
549
|
+
rating: number;
|
|
550
|
+
restaurant: string;
|
|
551
|
+
submittedAt: Date;
|
|
552
|
+
};
|
|
553
|
+
}>;
|
|
554
|
+
}, "strip", z.ZodTypeAny, {
|
|
555
|
+
type: "FEEDBACK";
|
|
556
|
+
context: {
|
|
557
|
+
feedback: {
|
|
558
|
+
message: string;
|
|
559
|
+
_id: string;
|
|
560
|
+
user: string;
|
|
561
|
+
rating: number;
|
|
562
|
+
restaurant: string;
|
|
563
|
+
submittedAt: Date;
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
emittedAt: Date;
|
|
567
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
568
|
+
slackWebhookUrl?: string | undefined;
|
|
569
|
+
}, {
|
|
570
|
+
type: "FEEDBACK";
|
|
571
|
+
context: {
|
|
572
|
+
feedback: {
|
|
573
|
+
message: string;
|
|
574
|
+
_id: string;
|
|
575
|
+
user: string;
|
|
576
|
+
rating: number;
|
|
577
|
+
restaurant: string;
|
|
578
|
+
submittedAt: Date;
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
582
|
+
slackWebhookUrl?: string | undefined;
|
|
583
|
+
emittedAt?: Date | undefined;
|
|
584
|
+
}>;
|
|
585
|
+
export declare const FdtoMembershipJoinedEvent: z.ZodObject<{
|
|
586
|
+
campaignIds: z.ZodOptional<z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">>;
|
|
587
|
+
slackWebhookUrl: z.ZodOptional<z.ZodString>;
|
|
588
|
+
emittedAt: z.ZodDefault<z.ZodDate>;
|
|
589
|
+
type: z.ZodLiteral<"MEMBERSHIP_JOINED">;
|
|
590
|
+
context: z.ZodObject<{
|
|
591
|
+
user: z.ZodObject<{
|
|
592
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
593
|
+
name: z.ZodString;
|
|
594
|
+
birthday: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
595
|
+
gender: z.ZodOptional<z.ZodEnum<["MALE", "FEMALE"]>>;
|
|
596
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
597
|
+
name: z.ZodString;
|
|
598
|
+
address: z.ZodString;
|
|
599
|
+
coordinates: z.ZodArray<z.ZodNumber, "many">;
|
|
600
|
+
}, "strip", z.ZodTypeAny, {
|
|
601
|
+
address: string;
|
|
602
|
+
name: string;
|
|
603
|
+
coordinates: number[];
|
|
604
|
+
}, {
|
|
605
|
+
address: string;
|
|
606
|
+
name: string;
|
|
607
|
+
coordinates: number[];
|
|
608
|
+
}>, "many">>>;
|
|
609
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
610
|
+
phoneNumber: z.ZodEffects<z.ZodString, string, string>;
|
|
611
|
+
externalMemberId: z.ZodOptional<z.ZodString>;
|
|
612
|
+
cardNo: z.ZodOptional<z.ZodString>;
|
|
613
|
+
joinAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
614
|
+
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
615
|
+
business: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
616
|
+
stats: z.ZodObject<{
|
|
617
|
+
lastVisit: z.ZodDate;
|
|
618
|
+
topupCount: z.ZodNumber;
|
|
619
|
+
products: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
620
|
+
visitCount: z.ZodNumber;
|
|
621
|
+
avgVisitFrequency: z.ZodNumber;
|
|
622
|
+
avgBillSize: z.ZodNumber;
|
|
623
|
+
feedbackCount: z.ZodNumber;
|
|
624
|
+
lastSeasonTierEarned: z.ZodOptional<z.ZodNumber>;
|
|
625
|
+
lastSeasonPointEarned: z.ZodOptional<z.ZodNumber>;
|
|
626
|
+
}, "strip", z.ZodTypeAny, {
|
|
627
|
+
lastVisit: Date;
|
|
628
|
+
topupCount: number;
|
|
629
|
+
products: Record<string, number>;
|
|
630
|
+
visitCount: number;
|
|
631
|
+
avgVisitFrequency: number;
|
|
632
|
+
avgBillSize: number;
|
|
633
|
+
feedbackCount: number;
|
|
634
|
+
lastSeasonTierEarned?: number | undefined;
|
|
635
|
+
lastSeasonPointEarned?: number | undefined;
|
|
636
|
+
}, {
|
|
637
|
+
lastVisit: Date;
|
|
638
|
+
topupCount: number;
|
|
639
|
+
products: Record<string, number>;
|
|
640
|
+
visitCount: number;
|
|
641
|
+
avgVisitFrequency: number;
|
|
642
|
+
avgBillSize: number;
|
|
643
|
+
feedbackCount: number;
|
|
644
|
+
lastSeasonTierEarned?: number | undefined;
|
|
645
|
+
lastSeasonPointEarned?: number | undefined;
|
|
646
|
+
}>;
|
|
647
|
+
segment: z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">;
|
|
648
|
+
member: z.ZodBoolean;
|
|
649
|
+
expiringVouchers: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
650
|
+
days7: z.ZodNumber;
|
|
651
|
+
days30: z.ZodNumber;
|
|
652
|
+
days90: z.ZodNumber;
|
|
653
|
+
}, "strip", z.ZodTypeAny, {
|
|
654
|
+
days7: number;
|
|
655
|
+
days30: number;
|
|
656
|
+
days90: number;
|
|
657
|
+
}, {
|
|
658
|
+
days7: number;
|
|
659
|
+
days30: number;
|
|
660
|
+
days90: number;
|
|
661
|
+
}>, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
|
|
662
|
+
lastReadAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
663
|
+
importCollection: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
664
|
+
}, "strip", z.ZodTypeAny, {
|
|
665
|
+
name: string;
|
|
666
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
667
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
668
|
+
phoneNumber: string;
|
|
669
|
+
stats: {
|
|
670
|
+
lastVisit: Date;
|
|
671
|
+
topupCount: number;
|
|
672
|
+
products: Record<string, number>;
|
|
673
|
+
visitCount: number;
|
|
674
|
+
avgVisitFrequency: number;
|
|
675
|
+
avgBillSize: number;
|
|
676
|
+
feedbackCount: number;
|
|
677
|
+
lastSeasonTierEarned?: number | undefined;
|
|
678
|
+
lastSeasonPointEarned?: number | undefined;
|
|
679
|
+
};
|
|
680
|
+
segment: (string | import("mongodb").ObjectId)[];
|
|
681
|
+
member: boolean;
|
|
682
|
+
birthday?: Date | null | undefined;
|
|
683
|
+
gender?: "MALE" | "FEMALE" | undefined;
|
|
684
|
+
address?: {
|
|
685
|
+
address: string;
|
|
686
|
+
name: string;
|
|
687
|
+
coordinates: number[];
|
|
688
|
+
}[] | null | undefined;
|
|
689
|
+
email?: string | null | undefined;
|
|
690
|
+
externalMemberId?: string | undefined;
|
|
691
|
+
cardNo?: string | undefined;
|
|
692
|
+
joinAt?: Date | null | undefined;
|
|
693
|
+
photoUrl?: string | null | undefined;
|
|
694
|
+
expiringVouchers?: ({
|
|
695
|
+
days7: number;
|
|
696
|
+
days30: number;
|
|
697
|
+
days90: number;
|
|
698
|
+
} & Record<string, number>) | undefined;
|
|
699
|
+
lastReadAt?: Date | null | undefined;
|
|
700
|
+
importCollection?: Record<string, number> | undefined;
|
|
701
|
+
}, {
|
|
702
|
+
name: string;
|
|
703
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
704
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
705
|
+
phoneNumber: string;
|
|
706
|
+
stats: {
|
|
707
|
+
lastVisit: Date;
|
|
708
|
+
topupCount: number;
|
|
709
|
+
products: Record<string, number>;
|
|
710
|
+
visitCount: number;
|
|
711
|
+
avgVisitFrequency: number;
|
|
712
|
+
avgBillSize: number;
|
|
713
|
+
feedbackCount: number;
|
|
714
|
+
lastSeasonTierEarned?: number | undefined;
|
|
715
|
+
lastSeasonPointEarned?: number | undefined;
|
|
716
|
+
};
|
|
717
|
+
segment: (string | import("mongodb").ObjectId)[];
|
|
718
|
+
member: boolean;
|
|
719
|
+
birthday?: Date | null | undefined;
|
|
720
|
+
gender?: "MALE" | "FEMALE" | undefined;
|
|
721
|
+
address?: {
|
|
722
|
+
address: string;
|
|
723
|
+
name: string;
|
|
724
|
+
coordinates: number[];
|
|
725
|
+
}[] | null | undefined;
|
|
726
|
+
email?: string | null | undefined;
|
|
727
|
+
externalMemberId?: string | undefined;
|
|
728
|
+
cardNo?: string | undefined;
|
|
729
|
+
joinAt?: Date | null | undefined;
|
|
730
|
+
photoUrl?: string | null | undefined;
|
|
731
|
+
expiringVouchers?: ({
|
|
732
|
+
days7: number;
|
|
733
|
+
days30: number;
|
|
734
|
+
days90: number;
|
|
735
|
+
} & Record<string, number>) | undefined;
|
|
736
|
+
lastReadAt?: Date | null | undefined;
|
|
737
|
+
importCollection?: Record<string, number> | undefined;
|
|
738
|
+
}>;
|
|
739
|
+
}, "strip", z.ZodTypeAny, {
|
|
740
|
+
user: {
|
|
741
|
+
name: string;
|
|
742
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
743
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
744
|
+
phoneNumber: string;
|
|
745
|
+
stats: {
|
|
746
|
+
lastVisit: Date;
|
|
747
|
+
topupCount: number;
|
|
748
|
+
products: Record<string, number>;
|
|
749
|
+
visitCount: number;
|
|
750
|
+
avgVisitFrequency: number;
|
|
751
|
+
avgBillSize: number;
|
|
752
|
+
feedbackCount: number;
|
|
753
|
+
lastSeasonTierEarned?: number | undefined;
|
|
754
|
+
lastSeasonPointEarned?: number | undefined;
|
|
755
|
+
};
|
|
756
|
+
segment: (string | import("mongodb").ObjectId)[];
|
|
757
|
+
member: boolean;
|
|
758
|
+
birthday?: Date | null | undefined;
|
|
759
|
+
gender?: "MALE" | "FEMALE" | undefined;
|
|
760
|
+
address?: {
|
|
761
|
+
address: string;
|
|
762
|
+
name: string;
|
|
763
|
+
coordinates: number[];
|
|
764
|
+
}[] | null | undefined;
|
|
765
|
+
email?: string | null | undefined;
|
|
766
|
+
externalMemberId?: string | undefined;
|
|
767
|
+
cardNo?: string | undefined;
|
|
768
|
+
joinAt?: Date | null | undefined;
|
|
769
|
+
photoUrl?: string | null | undefined;
|
|
770
|
+
expiringVouchers?: ({
|
|
771
|
+
days7: number;
|
|
772
|
+
days30: number;
|
|
773
|
+
days90: number;
|
|
774
|
+
} & Record<string, number>) | undefined;
|
|
775
|
+
lastReadAt?: Date | null | undefined;
|
|
776
|
+
importCollection?: Record<string, number> | undefined;
|
|
777
|
+
};
|
|
778
|
+
}, {
|
|
779
|
+
user: {
|
|
780
|
+
name: string;
|
|
781
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
782
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
783
|
+
phoneNumber: string;
|
|
784
|
+
stats: {
|
|
785
|
+
lastVisit: Date;
|
|
786
|
+
topupCount: number;
|
|
787
|
+
products: Record<string, number>;
|
|
788
|
+
visitCount: number;
|
|
789
|
+
avgVisitFrequency: number;
|
|
790
|
+
avgBillSize: number;
|
|
791
|
+
feedbackCount: number;
|
|
792
|
+
lastSeasonTierEarned?: number | undefined;
|
|
793
|
+
lastSeasonPointEarned?: number | undefined;
|
|
794
|
+
};
|
|
795
|
+
segment: (string | import("mongodb").ObjectId)[];
|
|
796
|
+
member: boolean;
|
|
797
|
+
birthday?: Date | null | undefined;
|
|
798
|
+
gender?: "MALE" | "FEMALE" | undefined;
|
|
799
|
+
address?: {
|
|
800
|
+
address: string;
|
|
801
|
+
name: string;
|
|
802
|
+
coordinates: number[];
|
|
803
|
+
}[] | null | undefined;
|
|
804
|
+
email?: string | null | undefined;
|
|
805
|
+
externalMemberId?: string | undefined;
|
|
806
|
+
cardNo?: string | undefined;
|
|
807
|
+
joinAt?: Date | null | undefined;
|
|
808
|
+
photoUrl?: string | null | undefined;
|
|
809
|
+
expiringVouchers?: ({
|
|
810
|
+
days7: number;
|
|
811
|
+
days30: number;
|
|
812
|
+
days90: number;
|
|
813
|
+
} & Record<string, number>) | undefined;
|
|
814
|
+
lastReadAt?: Date | null | undefined;
|
|
815
|
+
importCollection?: Record<string, number> | undefined;
|
|
816
|
+
};
|
|
817
|
+
}>;
|
|
818
|
+
}, "strip", z.ZodTypeAny, {
|
|
819
|
+
type: "MEMBERSHIP_JOINED";
|
|
820
|
+
context: {
|
|
821
|
+
user: {
|
|
822
|
+
name: string;
|
|
823
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
824
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
825
|
+
phoneNumber: string;
|
|
826
|
+
stats: {
|
|
827
|
+
lastVisit: Date;
|
|
828
|
+
topupCount: number;
|
|
829
|
+
products: Record<string, number>;
|
|
830
|
+
visitCount: number;
|
|
831
|
+
avgVisitFrequency: number;
|
|
832
|
+
avgBillSize: number;
|
|
833
|
+
feedbackCount: number;
|
|
834
|
+
lastSeasonTierEarned?: number | undefined;
|
|
835
|
+
lastSeasonPointEarned?: number | undefined;
|
|
836
|
+
};
|
|
837
|
+
segment: (string | import("mongodb").ObjectId)[];
|
|
838
|
+
member: boolean;
|
|
839
|
+
birthday?: Date | null | undefined;
|
|
840
|
+
gender?: "MALE" | "FEMALE" | undefined;
|
|
841
|
+
address?: {
|
|
842
|
+
address: string;
|
|
843
|
+
name: string;
|
|
844
|
+
coordinates: number[];
|
|
845
|
+
}[] | null | undefined;
|
|
846
|
+
email?: string | null | undefined;
|
|
847
|
+
externalMemberId?: string | undefined;
|
|
848
|
+
cardNo?: string | undefined;
|
|
849
|
+
joinAt?: Date | null | undefined;
|
|
850
|
+
photoUrl?: string | null | undefined;
|
|
851
|
+
expiringVouchers?: ({
|
|
852
|
+
days7: number;
|
|
853
|
+
days30: number;
|
|
854
|
+
days90: number;
|
|
855
|
+
} & Record<string, number>) | undefined;
|
|
856
|
+
lastReadAt?: Date | null | undefined;
|
|
857
|
+
importCollection?: Record<string, number> | undefined;
|
|
858
|
+
};
|
|
859
|
+
};
|
|
860
|
+
emittedAt: Date;
|
|
861
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
862
|
+
slackWebhookUrl?: string | undefined;
|
|
863
|
+
}, {
|
|
864
|
+
type: "MEMBERSHIP_JOINED";
|
|
865
|
+
context: {
|
|
866
|
+
user: {
|
|
867
|
+
name: string;
|
|
868
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
869
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
870
|
+
phoneNumber: string;
|
|
871
|
+
stats: {
|
|
872
|
+
lastVisit: Date;
|
|
873
|
+
topupCount: number;
|
|
874
|
+
products: Record<string, number>;
|
|
875
|
+
visitCount: number;
|
|
876
|
+
avgVisitFrequency: number;
|
|
877
|
+
avgBillSize: number;
|
|
878
|
+
feedbackCount: number;
|
|
879
|
+
lastSeasonTierEarned?: number | undefined;
|
|
880
|
+
lastSeasonPointEarned?: number | undefined;
|
|
881
|
+
};
|
|
882
|
+
segment: (string | import("mongodb").ObjectId)[];
|
|
883
|
+
member: boolean;
|
|
884
|
+
birthday?: Date | null | undefined;
|
|
885
|
+
gender?: "MALE" | "FEMALE" | undefined;
|
|
886
|
+
address?: {
|
|
887
|
+
address: string;
|
|
888
|
+
name: string;
|
|
889
|
+
coordinates: number[];
|
|
890
|
+
}[] | null | undefined;
|
|
891
|
+
email?: string | null | undefined;
|
|
892
|
+
externalMemberId?: string | undefined;
|
|
893
|
+
cardNo?: string | undefined;
|
|
894
|
+
joinAt?: Date | null | undefined;
|
|
895
|
+
photoUrl?: string | null | undefined;
|
|
896
|
+
expiringVouchers?: ({
|
|
897
|
+
days7: number;
|
|
898
|
+
days30: number;
|
|
899
|
+
days90: number;
|
|
900
|
+
} & Record<string, number>) | undefined;
|
|
901
|
+
lastReadAt?: Date | null | undefined;
|
|
902
|
+
importCollection?: Record<string, number> | undefined;
|
|
903
|
+
};
|
|
904
|
+
};
|
|
905
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
906
|
+
slackWebhookUrl?: string | undefined;
|
|
907
|
+
emittedAt?: Date | undefined;
|
|
908
|
+
}>;
|
|
909
|
+
export declare const FdtoTierUpgradedEvent: z.ZodObject<{
|
|
910
|
+
campaignIds: z.ZodOptional<z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">>;
|
|
911
|
+
slackWebhookUrl: z.ZodOptional<z.ZodString>;
|
|
912
|
+
emittedAt: z.ZodDefault<z.ZodDate>;
|
|
913
|
+
type: z.ZodLiteral<"TIER_UPGRADED">;
|
|
914
|
+
context: z.ZodObject<{
|
|
915
|
+
transaction: z.ZodObject<{
|
|
916
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
917
|
+
user: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
918
|
+
collectible: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
919
|
+
collection: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
920
|
+
business: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
921
|
+
amount: z.ZodNumber;
|
|
922
|
+
expiryAmount: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
923
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
924
|
+
amount: z.ZodNumber;
|
|
925
|
+
expiredAt: z.ZodDate;
|
|
926
|
+
}, "strip", z.ZodTypeAny, {
|
|
927
|
+
amount: number;
|
|
928
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
929
|
+
expiredAt: Date;
|
|
930
|
+
}, {
|
|
931
|
+
amount: number;
|
|
932
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
933
|
+
expiredAt: Date;
|
|
934
|
+
}>>, "many">;
|
|
935
|
+
from: z.ZodLazy<z.ZodObject<{
|
|
936
|
+
balance: z.ZodNumber;
|
|
937
|
+
expiryBalance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
938
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
939
|
+
amount: z.ZodNumber;
|
|
940
|
+
expiredAt: z.ZodDate;
|
|
941
|
+
}, "strip", z.ZodTypeAny, {
|
|
942
|
+
amount: number;
|
|
943
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
944
|
+
expiredAt: Date;
|
|
945
|
+
}, {
|
|
946
|
+
amount: number;
|
|
947
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
948
|
+
expiredAt: Date;
|
|
949
|
+
}>, "many">>;
|
|
950
|
+
}, "strip", z.ZodTypeAny, {
|
|
951
|
+
balance: number;
|
|
952
|
+
expiryBalance?: {
|
|
953
|
+
amount: number;
|
|
954
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
955
|
+
expiredAt: Date;
|
|
956
|
+
}[] | undefined;
|
|
957
|
+
}, {
|
|
958
|
+
balance: number;
|
|
959
|
+
expiryBalance?: {
|
|
960
|
+
amount: number;
|
|
961
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
962
|
+
expiredAt: Date;
|
|
963
|
+
}[] | undefined;
|
|
964
|
+
}>>;
|
|
965
|
+
to: z.ZodLazy<z.ZodObject<{
|
|
966
|
+
balance: z.ZodNumber;
|
|
967
|
+
expiryBalance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
968
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
969
|
+
amount: z.ZodNumber;
|
|
970
|
+
expiredAt: z.ZodDate;
|
|
971
|
+
}, "strip", z.ZodTypeAny, {
|
|
972
|
+
amount: number;
|
|
973
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
974
|
+
expiredAt: Date;
|
|
975
|
+
}, {
|
|
976
|
+
amount: number;
|
|
977
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
978
|
+
expiredAt: Date;
|
|
979
|
+
}>, "many">>;
|
|
980
|
+
}, "strip", z.ZodTypeAny, {
|
|
981
|
+
balance: number;
|
|
982
|
+
expiryBalance?: {
|
|
983
|
+
amount: number;
|
|
984
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
985
|
+
expiredAt: Date;
|
|
986
|
+
}[] | undefined;
|
|
987
|
+
}, {
|
|
988
|
+
balance: number;
|
|
989
|
+
expiryBalance?: {
|
|
990
|
+
amount: number;
|
|
991
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
992
|
+
expiredAt: Date;
|
|
993
|
+
}[] | undefined;
|
|
994
|
+
}>>;
|
|
995
|
+
source: z.ZodString;
|
|
996
|
+
ref: z.ZodString;
|
|
997
|
+
refunded: z.ZodOptional<z.ZodBoolean>;
|
|
998
|
+
refundedFrom: z.ZodOptional<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>>;
|
|
999
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1000
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1001
|
+
pf_user: z.ZodOptional<z.ZodAny>;
|
|
1002
|
+
pf_collectible: z.ZodOptional<z.ZodAny>;
|
|
1003
|
+
pf_collection: z.ZodOptional<z.ZodAny>;
|
|
1004
|
+
totalAmount: z.ZodOptional<z.ZodNumber>;
|
|
1005
|
+
}, "strip", z.ZodTypeAny, {
|
|
1006
|
+
ref: string;
|
|
1007
|
+
source: string;
|
|
1008
|
+
amount: number;
|
|
1009
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1010
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1011
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1012
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1013
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1014
|
+
expiryAmount: {
|
|
1015
|
+
amount: number;
|
|
1016
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1017
|
+
expiredAt: Date;
|
|
1018
|
+
}[];
|
|
1019
|
+
from: {
|
|
1020
|
+
balance: number;
|
|
1021
|
+
expiryBalance?: {
|
|
1022
|
+
amount: number;
|
|
1023
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1024
|
+
expiredAt: Date;
|
|
1025
|
+
}[] | undefined;
|
|
1026
|
+
};
|
|
1027
|
+
to: {
|
|
1028
|
+
balance: number;
|
|
1029
|
+
expiryBalance?: {
|
|
1030
|
+
amount: number;
|
|
1031
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1032
|
+
expiredAt: Date;
|
|
1033
|
+
}[] | undefined;
|
|
1034
|
+
};
|
|
1035
|
+
refunded?: boolean | undefined;
|
|
1036
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
1037
|
+
metadata?: Record<string, any> | null | undefined;
|
|
1038
|
+
createdAt?: Date | undefined;
|
|
1039
|
+
pf_user?: any;
|
|
1040
|
+
pf_collectible?: any;
|
|
1041
|
+
pf_collection?: any;
|
|
1042
|
+
totalAmount?: number | undefined;
|
|
1043
|
+
}, {
|
|
1044
|
+
ref: string;
|
|
1045
|
+
source: string;
|
|
1046
|
+
amount: number;
|
|
1047
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1048
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1049
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1050
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1051
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1052
|
+
expiryAmount: {
|
|
1053
|
+
amount: number;
|
|
1054
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1055
|
+
expiredAt: Date;
|
|
1056
|
+
}[];
|
|
1057
|
+
from: {
|
|
1058
|
+
balance: number;
|
|
1059
|
+
expiryBalance?: {
|
|
1060
|
+
amount: number;
|
|
1061
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1062
|
+
expiredAt: Date;
|
|
1063
|
+
}[] | undefined;
|
|
1064
|
+
};
|
|
1065
|
+
to: {
|
|
1066
|
+
balance: number;
|
|
1067
|
+
expiryBalance?: {
|
|
1068
|
+
amount: number;
|
|
1069
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1070
|
+
expiredAt: Date;
|
|
1071
|
+
}[] | undefined;
|
|
1072
|
+
};
|
|
1073
|
+
refunded?: boolean | undefined;
|
|
1074
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
1075
|
+
metadata?: Record<string, any> | null | undefined;
|
|
1076
|
+
createdAt?: Date | undefined;
|
|
1077
|
+
pf_user?: any;
|
|
1078
|
+
pf_collectible?: any;
|
|
1079
|
+
pf_collection?: any;
|
|
1080
|
+
totalAmount?: number | undefined;
|
|
1081
|
+
}>;
|
|
1082
|
+
}, "strip", z.ZodTypeAny, {
|
|
1083
|
+
transaction: {
|
|
1084
|
+
ref: string;
|
|
1085
|
+
source: string;
|
|
1086
|
+
amount: number;
|
|
1087
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1088
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1089
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1090
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1091
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1092
|
+
expiryAmount: {
|
|
1093
|
+
amount: number;
|
|
1094
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1095
|
+
expiredAt: Date;
|
|
1096
|
+
}[];
|
|
1097
|
+
from: {
|
|
1098
|
+
balance: number;
|
|
1099
|
+
expiryBalance?: {
|
|
1100
|
+
amount: number;
|
|
1101
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1102
|
+
expiredAt: Date;
|
|
1103
|
+
}[] | undefined;
|
|
1104
|
+
};
|
|
1105
|
+
to: {
|
|
1106
|
+
balance: number;
|
|
1107
|
+
expiryBalance?: {
|
|
1108
|
+
amount: number;
|
|
1109
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1110
|
+
expiredAt: Date;
|
|
1111
|
+
}[] | undefined;
|
|
1112
|
+
};
|
|
1113
|
+
refunded?: boolean | undefined;
|
|
1114
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
1115
|
+
metadata?: Record<string, any> | null | undefined;
|
|
1116
|
+
createdAt?: Date | undefined;
|
|
1117
|
+
pf_user?: any;
|
|
1118
|
+
pf_collectible?: any;
|
|
1119
|
+
pf_collection?: any;
|
|
1120
|
+
totalAmount?: number | undefined;
|
|
1121
|
+
};
|
|
1122
|
+
}, {
|
|
1123
|
+
transaction: {
|
|
1124
|
+
ref: string;
|
|
1125
|
+
source: string;
|
|
1126
|
+
amount: number;
|
|
1127
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1128
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1129
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1130
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1131
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1132
|
+
expiryAmount: {
|
|
1133
|
+
amount: number;
|
|
1134
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1135
|
+
expiredAt: Date;
|
|
1136
|
+
}[];
|
|
1137
|
+
from: {
|
|
1138
|
+
balance: number;
|
|
1139
|
+
expiryBalance?: {
|
|
1140
|
+
amount: number;
|
|
1141
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1142
|
+
expiredAt: Date;
|
|
1143
|
+
}[] | undefined;
|
|
1144
|
+
};
|
|
1145
|
+
to: {
|
|
1146
|
+
balance: number;
|
|
1147
|
+
expiryBalance?: {
|
|
1148
|
+
amount: number;
|
|
1149
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1150
|
+
expiredAt: Date;
|
|
1151
|
+
}[] | undefined;
|
|
1152
|
+
};
|
|
1153
|
+
refunded?: boolean | undefined;
|
|
1154
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
1155
|
+
metadata?: Record<string, any> | null | undefined;
|
|
1156
|
+
createdAt?: Date | undefined;
|
|
1157
|
+
pf_user?: any;
|
|
1158
|
+
pf_collectible?: any;
|
|
1159
|
+
pf_collection?: any;
|
|
1160
|
+
totalAmount?: number | undefined;
|
|
1161
|
+
};
|
|
1162
|
+
}>;
|
|
1163
|
+
}, "strip", z.ZodTypeAny, {
|
|
1164
|
+
type: "TIER_UPGRADED";
|
|
1165
|
+
context: {
|
|
1166
|
+
transaction: {
|
|
1167
|
+
ref: string;
|
|
1168
|
+
source: string;
|
|
1169
|
+
amount: number;
|
|
1170
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1171
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1172
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1173
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1174
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1175
|
+
expiryAmount: {
|
|
1176
|
+
amount: number;
|
|
1177
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1178
|
+
expiredAt: Date;
|
|
1179
|
+
}[];
|
|
1180
|
+
from: {
|
|
1181
|
+
balance: number;
|
|
1182
|
+
expiryBalance?: {
|
|
1183
|
+
amount: number;
|
|
1184
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1185
|
+
expiredAt: Date;
|
|
1186
|
+
}[] | undefined;
|
|
1187
|
+
};
|
|
1188
|
+
to: {
|
|
1189
|
+
balance: number;
|
|
1190
|
+
expiryBalance?: {
|
|
1191
|
+
amount: number;
|
|
1192
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1193
|
+
expiredAt: Date;
|
|
1194
|
+
}[] | undefined;
|
|
1195
|
+
};
|
|
1196
|
+
refunded?: boolean | undefined;
|
|
1197
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
1198
|
+
metadata?: Record<string, any> | null | undefined;
|
|
1199
|
+
createdAt?: Date | undefined;
|
|
1200
|
+
pf_user?: any;
|
|
1201
|
+
pf_collectible?: any;
|
|
1202
|
+
pf_collection?: any;
|
|
1203
|
+
totalAmount?: number | undefined;
|
|
1204
|
+
};
|
|
1205
|
+
};
|
|
1206
|
+
emittedAt: Date;
|
|
1207
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
1208
|
+
slackWebhookUrl?: string | undefined;
|
|
1209
|
+
}, {
|
|
1210
|
+
type: "TIER_UPGRADED";
|
|
1211
|
+
context: {
|
|
1212
|
+
transaction: {
|
|
1213
|
+
ref: string;
|
|
1214
|
+
source: string;
|
|
1215
|
+
amount: number;
|
|
1216
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1217
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1218
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1219
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1220
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1221
|
+
expiryAmount: {
|
|
1222
|
+
amount: number;
|
|
1223
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1224
|
+
expiredAt: Date;
|
|
1225
|
+
}[];
|
|
1226
|
+
from: {
|
|
1227
|
+
balance: number;
|
|
1228
|
+
expiryBalance?: {
|
|
1229
|
+
amount: number;
|
|
1230
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1231
|
+
expiredAt: Date;
|
|
1232
|
+
}[] | undefined;
|
|
1233
|
+
};
|
|
1234
|
+
to: {
|
|
1235
|
+
balance: number;
|
|
1236
|
+
expiryBalance?: {
|
|
1237
|
+
amount: number;
|
|
1238
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1239
|
+
expiredAt: Date;
|
|
1240
|
+
}[] | undefined;
|
|
1241
|
+
};
|
|
1242
|
+
refunded?: boolean | undefined;
|
|
1243
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
1244
|
+
metadata?: Record<string, any> | null | undefined;
|
|
1245
|
+
createdAt?: Date | undefined;
|
|
1246
|
+
pf_user?: any;
|
|
1247
|
+
pf_collectible?: any;
|
|
1248
|
+
pf_collection?: any;
|
|
1249
|
+
totalAmount?: number | undefined;
|
|
1250
|
+
};
|
|
1251
|
+
};
|
|
1252
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
1253
|
+
slackWebhookUrl?: string | undefined;
|
|
1254
|
+
emittedAt?: Date | undefined;
|
|
1255
|
+
}>;
|
|
1256
|
+
export declare const FdtoIssueRewardEvent: z.ZodObject<{
|
|
1257
|
+
campaignIds: z.ZodOptional<z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">>;
|
|
1258
|
+
slackWebhookUrl: z.ZodOptional<z.ZodString>;
|
|
1259
|
+
emittedAt: z.ZodDefault<z.ZodDate>;
|
|
1260
|
+
type: z.ZodLiteral<"ISSUE_REWARD">;
|
|
1261
|
+
context: z.ZodObject<{
|
|
1262
|
+
transaction: z.ZodObject<{
|
|
1263
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
1264
|
+
user: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
1265
|
+
collectible: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
1266
|
+
collection: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
1267
|
+
business: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
1268
|
+
amount: z.ZodNumber;
|
|
1269
|
+
expiryAmount: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
1270
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
1271
|
+
amount: z.ZodNumber;
|
|
1272
|
+
expiredAt: z.ZodDate;
|
|
1273
|
+
}, "strip", z.ZodTypeAny, {
|
|
1274
|
+
amount: number;
|
|
1275
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1276
|
+
expiredAt: Date;
|
|
1277
|
+
}, {
|
|
1278
|
+
amount: number;
|
|
1279
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1280
|
+
expiredAt: Date;
|
|
1281
|
+
}>>, "many">;
|
|
1282
|
+
from: z.ZodLazy<z.ZodObject<{
|
|
1283
|
+
balance: z.ZodNumber;
|
|
1284
|
+
expiryBalance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1285
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
1286
|
+
amount: z.ZodNumber;
|
|
1287
|
+
expiredAt: z.ZodDate;
|
|
1288
|
+
}, "strip", z.ZodTypeAny, {
|
|
1289
|
+
amount: number;
|
|
1290
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1291
|
+
expiredAt: Date;
|
|
1292
|
+
}, {
|
|
1293
|
+
amount: number;
|
|
1294
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1295
|
+
expiredAt: Date;
|
|
1296
|
+
}>, "many">>;
|
|
1297
|
+
}, "strip", z.ZodTypeAny, {
|
|
1298
|
+
balance: number;
|
|
1299
|
+
expiryBalance?: {
|
|
1300
|
+
amount: number;
|
|
1301
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1302
|
+
expiredAt: Date;
|
|
1303
|
+
}[] | undefined;
|
|
1304
|
+
}, {
|
|
1305
|
+
balance: number;
|
|
1306
|
+
expiryBalance?: {
|
|
1307
|
+
amount: number;
|
|
1308
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1309
|
+
expiredAt: Date;
|
|
1310
|
+
}[] | undefined;
|
|
1311
|
+
}>>;
|
|
1312
|
+
to: z.ZodLazy<z.ZodObject<{
|
|
1313
|
+
balance: z.ZodNumber;
|
|
1314
|
+
expiryBalance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1315
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
1316
|
+
amount: z.ZodNumber;
|
|
1317
|
+
expiredAt: z.ZodDate;
|
|
1318
|
+
}, "strip", z.ZodTypeAny, {
|
|
1319
|
+
amount: number;
|
|
1320
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1321
|
+
expiredAt: Date;
|
|
1322
|
+
}, {
|
|
1323
|
+
amount: number;
|
|
1324
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1325
|
+
expiredAt: Date;
|
|
1326
|
+
}>, "many">>;
|
|
1327
|
+
}, "strip", z.ZodTypeAny, {
|
|
1328
|
+
balance: number;
|
|
1329
|
+
expiryBalance?: {
|
|
1330
|
+
amount: number;
|
|
1331
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1332
|
+
expiredAt: Date;
|
|
1333
|
+
}[] | undefined;
|
|
1334
|
+
}, {
|
|
1335
|
+
balance: number;
|
|
1336
|
+
expiryBalance?: {
|
|
1337
|
+
amount: number;
|
|
1338
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1339
|
+
expiredAt: Date;
|
|
1340
|
+
}[] | undefined;
|
|
1341
|
+
}>>;
|
|
1342
|
+
source: z.ZodString;
|
|
1343
|
+
ref: z.ZodString;
|
|
1344
|
+
refunded: z.ZodOptional<z.ZodBoolean>;
|
|
1345
|
+
refundedFrom: z.ZodOptional<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>>;
|
|
1346
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1347
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1348
|
+
pf_user: z.ZodOptional<z.ZodAny>;
|
|
1349
|
+
pf_collectible: z.ZodOptional<z.ZodAny>;
|
|
1350
|
+
pf_collection: z.ZodOptional<z.ZodAny>;
|
|
1351
|
+
totalAmount: z.ZodOptional<z.ZodNumber>;
|
|
1352
|
+
}, "strip", z.ZodTypeAny, {
|
|
1353
|
+
ref: string;
|
|
1354
|
+
source: string;
|
|
1355
|
+
amount: number;
|
|
1356
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1357
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1358
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1359
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1360
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1361
|
+
expiryAmount: {
|
|
1362
|
+
amount: number;
|
|
1363
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1364
|
+
expiredAt: Date;
|
|
1365
|
+
}[];
|
|
1366
|
+
from: {
|
|
1367
|
+
balance: number;
|
|
1368
|
+
expiryBalance?: {
|
|
1369
|
+
amount: number;
|
|
1370
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1371
|
+
expiredAt: Date;
|
|
1372
|
+
}[] | undefined;
|
|
1373
|
+
};
|
|
1374
|
+
to: {
|
|
1375
|
+
balance: number;
|
|
1376
|
+
expiryBalance?: {
|
|
1377
|
+
amount: number;
|
|
1378
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1379
|
+
expiredAt: Date;
|
|
1380
|
+
}[] | undefined;
|
|
1381
|
+
};
|
|
1382
|
+
refunded?: boolean | undefined;
|
|
1383
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
1384
|
+
metadata?: Record<string, any> | null | undefined;
|
|
1385
|
+
createdAt?: Date | undefined;
|
|
1386
|
+
pf_user?: any;
|
|
1387
|
+
pf_collectible?: any;
|
|
1388
|
+
pf_collection?: any;
|
|
1389
|
+
totalAmount?: number | undefined;
|
|
1390
|
+
}, {
|
|
1391
|
+
ref: string;
|
|
1392
|
+
source: string;
|
|
1393
|
+
amount: number;
|
|
1394
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1395
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1396
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1397
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1398
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1399
|
+
expiryAmount: {
|
|
1400
|
+
amount: number;
|
|
1401
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1402
|
+
expiredAt: Date;
|
|
1403
|
+
}[];
|
|
1404
|
+
from: {
|
|
1405
|
+
balance: number;
|
|
1406
|
+
expiryBalance?: {
|
|
1407
|
+
amount: number;
|
|
1408
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1409
|
+
expiredAt: Date;
|
|
1410
|
+
}[] | undefined;
|
|
1411
|
+
};
|
|
1412
|
+
to: {
|
|
1413
|
+
balance: number;
|
|
1414
|
+
expiryBalance?: {
|
|
1415
|
+
amount: number;
|
|
1416
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1417
|
+
expiredAt: Date;
|
|
1418
|
+
}[] | undefined;
|
|
1419
|
+
};
|
|
1420
|
+
refunded?: boolean | undefined;
|
|
1421
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
1422
|
+
metadata?: Record<string, any> | null | undefined;
|
|
1423
|
+
createdAt?: Date | undefined;
|
|
1424
|
+
pf_user?: any;
|
|
1425
|
+
pf_collectible?: any;
|
|
1426
|
+
pf_collection?: any;
|
|
1427
|
+
totalAmount?: number | undefined;
|
|
1428
|
+
}>;
|
|
1429
|
+
collection: z.ZodObject<{
|
|
1430
|
+
type: z.ZodEnum<["VOUCHER", "CREDIT", "POINT", "COIN", "TIER", "TITLE", "COIN", "GAME"]>;
|
|
1431
|
+
ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1432
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1433
|
+
options: z.ZodObject<{
|
|
1434
|
+
validityOption: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodObject<{
|
|
1435
|
+
validAfter: z.ZodOptional<z.ZodDate>;
|
|
1436
|
+
validBefore: z.ZodOptional<z.ZodDate>;
|
|
1437
|
+
validForDay: z.ZodOptional<z.ZodNumber>;
|
|
1438
|
+
}, "strip", z.ZodTypeAny, {
|
|
1439
|
+
validAfter?: Date | undefined;
|
|
1440
|
+
validBefore?: Date | undefined;
|
|
1441
|
+
validForDay?: number | undefined;
|
|
1442
|
+
}, {
|
|
1443
|
+
validAfter?: Date | undefined;
|
|
1444
|
+
validBefore?: Date | undefined;
|
|
1445
|
+
validForDay?: number | undefined;
|
|
1446
|
+
}>, {
|
|
1447
|
+
validAfter?: Date | undefined;
|
|
1448
|
+
validBefore?: Date | undefined;
|
|
1449
|
+
validForDay?: number | undefined;
|
|
1450
|
+
}, {
|
|
1451
|
+
validAfter?: Date | undefined;
|
|
1452
|
+
validBefore?: Date | undefined;
|
|
1453
|
+
validForDay?: number | undefined;
|
|
1454
|
+
}>>>;
|
|
1455
|
+
maxReceive: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1456
|
+
maxPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1457
|
+
enableTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1458
|
+
transferExpireAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1459
|
+
cooldown: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1460
|
+
maxUse: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1461
|
+
consumeRule: z.ZodOptional<z.ZodNullable<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>>;
|
|
1462
|
+
}, "strip", z.ZodTypeAny, {
|
|
1463
|
+
validityOption?: {
|
|
1464
|
+
validAfter?: Date | undefined;
|
|
1465
|
+
validBefore?: Date | undefined;
|
|
1466
|
+
validForDay?: number | undefined;
|
|
1467
|
+
} | null | undefined;
|
|
1468
|
+
maxReceive?: number | null | undefined;
|
|
1469
|
+
maxPerUser?: number | null | undefined;
|
|
1470
|
+
enableTransfer?: boolean | null | undefined;
|
|
1471
|
+
transferExpireAt?: Date | null | undefined;
|
|
1472
|
+
cooldown?: number | null | undefined;
|
|
1473
|
+
maxUse?: number | null | undefined;
|
|
1474
|
+
consumeRule?: FdoRule | null | undefined;
|
|
1475
|
+
}, {
|
|
1476
|
+
validityOption?: {
|
|
1477
|
+
validAfter?: Date | undefined;
|
|
1478
|
+
validBefore?: Date | undefined;
|
|
1479
|
+
validForDay?: number | undefined;
|
|
1480
|
+
} | null | undefined;
|
|
1481
|
+
maxReceive?: number | null | undefined;
|
|
1482
|
+
maxPerUser?: number | null | undefined;
|
|
1483
|
+
enableTransfer?: boolean | null | undefined;
|
|
1484
|
+
transferExpireAt?: Date | null | undefined;
|
|
1485
|
+
cooldown?: number | null | undefined;
|
|
1486
|
+
maxUse?: number | null | undefined;
|
|
1487
|
+
consumeRule?: FdoRule | null | undefined;
|
|
1488
|
+
}>;
|
|
1489
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
1490
|
+
business: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
1491
|
+
user: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
1492
|
+
collectible: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
1493
|
+
extras: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1494
|
+
targetLocation: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">>>;
|
|
1495
|
+
effect: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodType<{
|
|
1496
|
+
priority?: number | null | undefined;
|
|
1497
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
1498
|
+
options: {
|
|
1499
|
+
excludeIds?: string[] | null | undefined;
|
|
1500
|
+
minPurchase?: {
|
|
1501
|
+
amount: number;
|
|
1502
|
+
precision: number;
|
|
1503
|
+
} | null | undefined;
|
|
1504
|
+
target: "BILL";
|
|
1505
|
+
} | {
|
|
1506
|
+
maxQuantity?: number | null | undefined;
|
|
1507
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
1508
|
+
target: "ITEM";
|
|
1509
|
+
strategy: {
|
|
1510
|
+
withAddons?: string[] | null | undefined;
|
|
1511
|
+
type: "SIMPLE";
|
|
1512
|
+
} | {
|
|
1513
|
+
type: "BUY_X_GET_Y";
|
|
1514
|
+
x: number;
|
|
1515
|
+
y: number;
|
|
1516
|
+
} | {
|
|
1517
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
1518
|
+
x: number;
|
|
1519
|
+
y: number;
|
|
1520
|
+
itemAIds: string[];
|
|
1521
|
+
} | {
|
|
1522
|
+
type: "BUY_X_GET_Y_V2";
|
|
1523
|
+
x: number;
|
|
1524
|
+
y: number;
|
|
1525
|
+
itemAIds: string[];
|
|
1526
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
1527
|
+
} | {
|
|
1528
|
+
atLeast?: boolean | null | undefined;
|
|
1529
|
+
type: "COMBO";
|
|
1530
|
+
groups: {
|
|
1531
|
+
itemIds: string[];
|
|
1532
|
+
count: number;
|
|
1533
|
+
}[];
|
|
1534
|
+
};
|
|
1535
|
+
targetIds: string[];
|
|
1536
|
+
} | {
|
|
1537
|
+
minPurchase?: {
|
|
1538
|
+
amount: number;
|
|
1539
|
+
precision: number;
|
|
1540
|
+
} | null | undefined;
|
|
1541
|
+
target: "PAYMENT";
|
|
1542
|
+
};
|
|
1543
|
+
adjustment: {
|
|
1544
|
+
inclusive?: boolean | null | undefined;
|
|
1545
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
1546
|
+
amount: {
|
|
1547
|
+
amount: number;
|
|
1548
|
+
precision: number;
|
|
1549
|
+
};
|
|
1550
|
+
};
|
|
1551
|
+
}, z.ZodTypeDef, {
|
|
1552
|
+
priority?: number | null | undefined;
|
|
1553
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
1554
|
+
options: {
|
|
1555
|
+
excludeIds?: string[] | null | undefined;
|
|
1556
|
+
minPurchase?: {
|
|
1557
|
+
amount: number;
|
|
1558
|
+
precision: number;
|
|
1559
|
+
} | null | undefined;
|
|
1560
|
+
target: "BILL";
|
|
1561
|
+
} | {
|
|
1562
|
+
maxQuantity?: number | null | undefined;
|
|
1563
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
1564
|
+
target: "ITEM";
|
|
1565
|
+
strategy: {
|
|
1566
|
+
withAddons?: string[] | null | undefined;
|
|
1567
|
+
type: "SIMPLE";
|
|
1568
|
+
} | {
|
|
1569
|
+
type: "BUY_X_GET_Y";
|
|
1570
|
+
x: number;
|
|
1571
|
+
y: number;
|
|
1572
|
+
} | {
|
|
1573
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
1574
|
+
x: number;
|
|
1575
|
+
y: number;
|
|
1576
|
+
itemAIds: string[];
|
|
1577
|
+
} | {
|
|
1578
|
+
type: "BUY_X_GET_Y_V2";
|
|
1579
|
+
x: number;
|
|
1580
|
+
y: number;
|
|
1581
|
+
itemAIds: string[];
|
|
1582
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
1583
|
+
} | {
|
|
1584
|
+
atLeast?: boolean | null | undefined;
|
|
1585
|
+
type: "COMBO";
|
|
1586
|
+
groups: {
|
|
1587
|
+
itemIds: string[];
|
|
1588
|
+
count: number;
|
|
1589
|
+
}[];
|
|
1590
|
+
};
|
|
1591
|
+
targetIds: string[];
|
|
1592
|
+
} | {
|
|
1593
|
+
minPurchase?: {
|
|
1594
|
+
amount: number;
|
|
1595
|
+
precision: number;
|
|
1596
|
+
} | null | undefined;
|
|
1597
|
+
target: "PAYMENT";
|
|
1598
|
+
};
|
|
1599
|
+
adjustment: {
|
|
1600
|
+
inclusive?: boolean | null | undefined;
|
|
1601
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
1602
|
+
amount: {
|
|
1603
|
+
amount: number;
|
|
1604
|
+
precision: number;
|
|
1605
|
+
};
|
|
1606
|
+
};
|
|
1607
|
+
}>>>>;
|
|
1608
|
+
gameType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["FORTUNE_WHEEL", "ROCK_PAPER_SCISSORS"]>>>;
|
|
1609
|
+
}, "strip", z.ZodTypeAny, {
|
|
1610
|
+
targetLocation?: (string | import("mongodb").ObjectId)[] | null | undefined;
|
|
1611
|
+
effect?: {
|
|
1612
|
+
priority?: number | null | undefined;
|
|
1613
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
1614
|
+
options: {
|
|
1615
|
+
excludeIds?: string[] | null | undefined;
|
|
1616
|
+
minPurchase?: {
|
|
1617
|
+
amount: number;
|
|
1618
|
+
precision: number;
|
|
1619
|
+
} | null | undefined;
|
|
1620
|
+
target: "BILL";
|
|
1621
|
+
} | {
|
|
1622
|
+
maxQuantity?: number | null | undefined;
|
|
1623
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
1624
|
+
target: "ITEM";
|
|
1625
|
+
strategy: {
|
|
1626
|
+
withAddons?: string[] | null | undefined;
|
|
1627
|
+
type: "SIMPLE";
|
|
1628
|
+
} | {
|
|
1629
|
+
type: "BUY_X_GET_Y";
|
|
1630
|
+
x: number;
|
|
1631
|
+
y: number;
|
|
1632
|
+
} | {
|
|
1633
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
1634
|
+
x: number;
|
|
1635
|
+
y: number;
|
|
1636
|
+
itemAIds: string[];
|
|
1637
|
+
} | {
|
|
1638
|
+
type: "BUY_X_GET_Y_V2";
|
|
1639
|
+
x: number;
|
|
1640
|
+
y: number;
|
|
1641
|
+
itemAIds: string[];
|
|
1642
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
1643
|
+
} | {
|
|
1644
|
+
atLeast?: boolean | null | undefined;
|
|
1645
|
+
type: "COMBO";
|
|
1646
|
+
groups: {
|
|
1647
|
+
itemIds: string[];
|
|
1648
|
+
count: number;
|
|
1649
|
+
}[];
|
|
1650
|
+
};
|
|
1651
|
+
targetIds: string[];
|
|
1652
|
+
} | {
|
|
1653
|
+
minPurchase?: {
|
|
1654
|
+
amount: number;
|
|
1655
|
+
precision: number;
|
|
1656
|
+
} | null | undefined;
|
|
1657
|
+
target: "PAYMENT";
|
|
1658
|
+
};
|
|
1659
|
+
adjustment: {
|
|
1660
|
+
inclusive?: boolean | null | undefined;
|
|
1661
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
1662
|
+
amount: {
|
|
1663
|
+
amount: number;
|
|
1664
|
+
precision: number;
|
|
1665
|
+
};
|
|
1666
|
+
};
|
|
1667
|
+
} | null | undefined;
|
|
1668
|
+
gameType?: "FORTUNE_WHEEL" | "ROCK_PAPER_SCISSORS" | null | undefined;
|
|
1669
|
+
}, {
|
|
1670
|
+
targetLocation?: (string | import("mongodb").ObjectId)[] | null | undefined;
|
|
1671
|
+
effect?: Record<string, any> | null | undefined;
|
|
1672
|
+
gameType?: "FORTUNE_WHEEL" | "ROCK_PAPER_SCISSORS" | null | undefined;
|
|
1673
|
+
}>>>;
|
|
1674
|
+
pf_user: z.ZodOptional<z.ZodAny>;
|
|
1675
|
+
pf_collectible: z.ZodOptional<z.ZodAny>;
|
|
1676
|
+
balance: z.ZodNumber;
|
|
1677
|
+
expiryBalance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1678
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
1679
|
+
amount: z.ZodNumber;
|
|
1680
|
+
expiredAt: z.ZodDate;
|
|
1681
|
+
}, "strip", z.ZodTypeAny, {
|
|
1682
|
+
amount: number;
|
|
1683
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1684
|
+
expiredAt: Date;
|
|
1685
|
+
}, {
|
|
1686
|
+
amount: number;
|
|
1687
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1688
|
+
expiredAt: Date;
|
|
1689
|
+
}>, "many">>;
|
|
1690
|
+
}, "strip", z.ZodTypeAny, {
|
|
1691
|
+
type: "VOUCHER" | "CREDIT" | "POINT" | "COIN" | "TIER" | "TITLE" | "GAME";
|
|
1692
|
+
options: {
|
|
1693
|
+
validityOption?: {
|
|
1694
|
+
validAfter?: Date | undefined;
|
|
1695
|
+
validBefore?: Date | undefined;
|
|
1696
|
+
validForDay?: number | undefined;
|
|
1697
|
+
} | null | undefined;
|
|
1698
|
+
maxReceive?: number | null | undefined;
|
|
1699
|
+
maxPerUser?: number | null | undefined;
|
|
1700
|
+
enableTransfer?: boolean | null | undefined;
|
|
1701
|
+
transferExpireAt?: Date | null | undefined;
|
|
1702
|
+
cooldown?: number | null | undefined;
|
|
1703
|
+
maxUse?: number | null | undefined;
|
|
1704
|
+
consumeRule?: FdoRule | null | undefined;
|
|
1705
|
+
};
|
|
1706
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1707
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1708
|
+
balance: number;
|
|
1709
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1710
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1711
|
+
ref?: string | null | undefined;
|
|
1712
|
+
code?: string | undefined;
|
|
1713
|
+
extras?: {
|
|
1714
|
+
targetLocation?: (string | import("mongodb").ObjectId)[] | null | undefined;
|
|
1715
|
+
effect?: {
|
|
1716
|
+
priority?: number | null | undefined;
|
|
1717
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
1718
|
+
options: {
|
|
1719
|
+
excludeIds?: string[] | null | undefined;
|
|
1720
|
+
minPurchase?: {
|
|
1721
|
+
amount: number;
|
|
1722
|
+
precision: number;
|
|
1723
|
+
} | null | undefined;
|
|
1724
|
+
target: "BILL";
|
|
1725
|
+
} | {
|
|
1726
|
+
maxQuantity?: number | null | undefined;
|
|
1727
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
1728
|
+
target: "ITEM";
|
|
1729
|
+
strategy: {
|
|
1730
|
+
withAddons?: string[] | null | undefined;
|
|
1731
|
+
type: "SIMPLE";
|
|
1732
|
+
} | {
|
|
1733
|
+
type: "BUY_X_GET_Y";
|
|
1734
|
+
x: number;
|
|
1735
|
+
y: number;
|
|
1736
|
+
} | {
|
|
1737
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
1738
|
+
x: number;
|
|
1739
|
+
y: number;
|
|
1740
|
+
itemAIds: string[];
|
|
1741
|
+
} | {
|
|
1742
|
+
type: "BUY_X_GET_Y_V2";
|
|
1743
|
+
x: number;
|
|
1744
|
+
y: number;
|
|
1745
|
+
itemAIds: string[];
|
|
1746
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
1747
|
+
} | {
|
|
1748
|
+
atLeast?: boolean | null | undefined;
|
|
1749
|
+
type: "COMBO";
|
|
1750
|
+
groups: {
|
|
1751
|
+
itemIds: string[];
|
|
1752
|
+
count: number;
|
|
1753
|
+
}[];
|
|
1754
|
+
};
|
|
1755
|
+
targetIds: string[];
|
|
1756
|
+
} | {
|
|
1757
|
+
minPurchase?: {
|
|
1758
|
+
amount: number;
|
|
1759
|
+
precision: number;
|
|
1760
|
+
} | null | undefined;
|
|
1761
|
+
target: "PAYMENT";
|
|
1762
|
+
};
|
|
1763
|
+
adjustment: {
|
|
1764
|
+
inclusive?: boolean | null | undefined;
|
|
1765
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
1766
|
+
amount: {
|
|
1767
|
+
amount: number;
|
|
1768
|
+
precision: number;
|
|
1769
|
+
};
|
|
1770
|
+
};
|
|
1771
|
+
} | null | undefined;
|
|
1772
|
+
gameType?: "FORTUNE_WHEEL" | "ROCK_PAPER_SCISSORS" | null | undefined;
|
|
1773
|
+
} | null | undefined;
|
|
1774
|
+
pf_user?: any;
|
|
1775
|
+
pf_collectible?: any;
|
|
1776
|
+
expiryBalance?: {
|
|
1777
|
+
amount: number;
|
|
1778
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1779
|
+
expiredAt: Date;
|
|
1780
|
+
}[] | undefined;
|
|
1781
|
+
}, {
|
|
1782
|
+
type: "VOUCHER" | "CREDIT" | "POINT" | "COIN" | "TIER" | "TITLE" | "GAME";
|
|
1783
|
+
options: {
|
|
1784
|
+
validityOption?: {
|
|
1785
|
+
validAfter?: Date | undefined;
|
|
1786
|
+
validBefore?: Date | undefined;
|
|
1787
|
+
validForDay?: number | undefined;
|
|
1788
|
+
} | null | undefined;
|
|
1789
|
+
maxReceive?: number | null | undefined;
|
|
1790
|
+
maxPerUser?: number | null | undefined;
|
|
1791
|
+
enableTransfer?: boolean | null | undefined;
|
|
1792
|
+
transferExpireAt?: Date | null | undefined;
|
|
1793
|
+
cooldown?: number | null | undefined;
|
|
1794
|
+
maxUse?: number | null | undefined;
|
|
1795
|
+
consumeRule?: FdoRule | null | undefined;
|
|
1796
|
+
};
|
|
1797
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1798
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1799
|
+
balance: number;
|
|
1800
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1801
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1802
|
+
ref?: string | null | undefined;
|
|
1803
|
+
code?: string | undefined;
|
|
1804
|
+
extras?: {
|
|
1805
|
+
targetLocation?: (string | import("mongodb").ObjectId)[] | null | undefined;
|
|
1806
|
+
effect?: Record<string, any> | null | undefined;
|
|
1807
|
+
gameType?: "FORTUNE_WHEEL" | "ROCK_PAPER_SCISSORS" | null | undefined;
|
|
1808
|
+
} | null | undefined;
|
|
1809
|
+
pf_user?: any;
|
|
1810
|
+
pf_collectible?: any;
|
|
1811
|
+
expiryBalance?: {
|
|
1812
|
+
amount: number;
|
|
1813
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1814
|
+
expiredAt: Date;
|
|
1815
|
+
}[] | undefined;
|
|
1816
|
+
}>;
|
|
1817
|
+
}, "strip", z.ZodTypeAny, {
|
|
1818
|
+
collection: {
|
|
1819
|
+
type: "VOUCHER" | "CREDIT" | "POINT" | "COIN" | "TIER" | "TITLE" | "GAME";
|
|
1820
|
+
options: {
|
|
1821
|
+
validityOption?: {
|
|
1822
|
+
validAfter?: Date | undefined;
|
|
1823
|
+
validBefore?: Date | undefined;
|
|
1824
|
+
validForDay?: number | undefined;
|
|
1825
|
+
} | null | undefined;
|
|
1826
|
+
maxReceive?: number | null | undefined;
|
|
1827
|
+
maxPerUser?: number | null | undefined;
|
|
1828
|
+
enableTransfer?: boolean | null | undefined;
|
|
1829
|
+
transferExpireAt?: Date | null | undefined;
|
|
1830
|
+
cooldown?: number | null | undefined;
|
|
1831
|
+
maxUse?: number | null | undefined;
|
|
1832
|
+
consumeRule?: FdoRule | null | undefined;
|
|
1833
|
+
};
|
|
1834
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1835
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1836
|
+
balance: number;
|
|
1837
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1838
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1839
|
+
ref?: string | null | undefined;
|
|
1840
|
+
code?: string | undefined;
|
|
1841
|
+
extras?: {
|
|
1842
|
+
targetLocation?: (string | import("mongodb").ObjectId)[] | null | undefined;
|
|
1843
|
+
effect?: {
|
|
1844
|
+
priority?: number | null | undefined;
|
|
1845
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
1846
|
+
options: {
|
|
1847
|
+
excludeIds?: string[] | null | undefined;
|
|
1848
|
+
minPurchase?: {
|
|
1849
|
+
amount: number;
|
|
1850
|
+
precision: number;
|
|
1851
|
+
} | null | undefined;
|
|
1852
|
+
target: "BILL";
|
|
1853
|
+
} | {
|
|
1854
|
+
maxQuantity?: number | null | undefined;
|
|
1855
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
1856
|
+
target: "ITEM";
|
|
1857
|
+
strategy: {
|
|
1858
|
+
withAddons?: string[] | null | undefined;
|
|
1859
|
+
type: "SIMPLE";
|
|
1860
|
+
} | {
|
|
1861
|
+
type: "BUY_X_GET_Y";
|
|
1862
|
+
x: number;
|
|
1863
|
+
y: number;
|
|
1864
|
+
} | {
|
|
1865
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
1866
|
+
x: number;
|
|
1867
|
+
y: number;
|
|
1868
|
+
itemAIds: string[];
|
|
1869
|
+
} | {
|
|
1870
|
+
type: "BUY_X_GET_Y_V2";
|
|
1871
|
+
x: number;
|
|
1872
|
+
y: number;
|
|
1873
|
+
itemAIds: string[];
|
|
1874
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
1875
|
+
} | {
|
|
1876
|
+
atLeast?: boolean | null | undefined;
|
|
1877
|
+
type: "COMBO";
|
|
1878
|
+
groups: {
|
|
1879
|
+
itemIds: string[];
|
|
1880
|
+
count: number;
|
|
1881
|
+
}[];
|
|
1882
|
+
};
|
|
1883
|
+
targetIds: string[];
|
|
1884
|
+
} | {
|
|
1885
|
+
minPurchase?: {
|
|
1886
|
+
amount: number;
|
|
1887
|
+
precision: number;
|
|
1888
|
+
} | null | undefined;
|
|
1889
|
+
target: "PAYMENT";
|
|
1890
|
+
};
|
|
1891
|
+
adjustment: {
|
|
1892
|
+
inclusive?: boolean | null | undefined;
|
|
1893
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
1894
|
+
amount: {
|
|
1895
|
+
amount: number;
|
|
1896
|
+
precision: number;
|
|
1897
|
+
};
|
|
1898
|
+
};
|
|
1899
|
+
} | null | undefined;
|
|
1900
|
+
gameType?: "FORTUNE_WHEEL" | "ROCK_PAPER_SCISSORS" | null | undefined;
|
|
1901
|
+
} | null | undefined;
|
|
1902
|
+
pf_user?: any;
|
|
1903
|
+
pf_collectible?: any;
|
|
1904
|
+
expiryBalance?: {
|
|
1905
|
+
amount: number;
|
|
1906
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1907
|
+
expiredAt: Date;
|
|
1908
|
+
}[] | undefined;
|
|
1909
|
+
};
|
|
1910
|
+
transaction: {
|
|
1911
|
+
ref: string;
|
|
1912
|
+
source: string;
|
|
1913
|
+
amount: number;
|
|
1914
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1915
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1916
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1917
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1918
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1919
|
+
expiryAmount: {
|
|
1920
|
+
amount: number;
|
|
1921
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1922
|
+
expiredAt: Date;
|
|
1923
|
+
}[];
|
|
1924
|
+
from: {
|
|
1925
|
+
balance: number;
|
|
1926
|
+
expiryBalance?: {
|
|
1927
|
+
amount: number;
|
|
1928
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1929
|
+
expiredAt: Date;
|
|
1930
|
+
}[] | undefined;
|
|
1931
|
+
};
|
|
1932
|
+
to: {
|
|
1933
|
+
balance: number;
|
|
1934
|
+
expiryBalance?: {
|
|
1935
|
+
amount: number;
|
|
1936
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1937
|
+
expiredAt: Date;
|
|
1938
|
+
}[] | undefined;
|
|
1939
|
+
};
|
|
1940
|
+
refunded?: boolean | undefined;
|
|
1941
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
1942
|
+
metadata?: Record<string, any> | null | undefined;
|
|
1943
|
+
createdAt?: Date | undefined;
|
|
1944
|
+
pf_user?: any;
|
|
1945
|
+
pf_collectible?: any;
|
|
1946
|
+
pf_collection?: any;
|
|
1947
|
+
totalAmount?: number | undefined;
|
|
1948
|
+
};
|
|
1949
|
+
}, {
|
|
1950
|
+
collection: {
|
|
1951
|
+
type: "VOUCHER" | "CREDIT" | "POINT" | "COIN" | "TIER" | "TITLE" | "GAME";
|
|
1952
|
+
options: {
|
|
1953
|
+
validityOption?: {
|
|
1954
|
+
validAfter?: Date | undefined;
|
|
1955
|
+
validBefore?: Date | undefined;
|
|
1956
|
+
validForDay?: number | undefined;
|
|
1957
|
+
} | null | undefined;
|
|
1958
|
+
maxReceive?: number | null | undefined;
|
|
1959
|
+
maxPerUser?: number | null | undefined;
|
|
1960
|
+
enableTransfer?: boolean | null | undefined;
|
|
1961
|
+
transferExpireAt?: Date | null | undefined;
|
|
1962
|
+
cooldown?: number | null | undefined;
|
|
1963
|
+
maxUse?: number | null | undefined;
|
|
1964
|
+
consumeRule?: FdoRule | null | undefined;
|
|
1965
|
+
};
|
|
1966
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1967
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1968
|
+
balance: number;
|
|
1969
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1970
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1971
|
+
ref?: string | null | undefined;
|
|
1972
|
+
code?: string | undefined;
|
|
1973
|
+
extras?: {
|
|
1974
|
+
targetLocation?: (string | import("mongodb").ObjectId)[] | null | undefined;
|
|
1975
|
+
effect?: Record<string, any> | null | undefined;
|
|
1976
|
+
gameType?: "FORTUNE_WHEEL" | "ROCK_PAPER_SCISSORS" | null | undefined;
|
|
1977
|
+
} | null | undefined;
|
|
1978
|
+
pf_user?: any;
|
|
1979
|
+
pf_collectible?: any;
|
|
1980
|
+
expiryBalance?: {
|
|
1981
|
+
amount: number;
|
|
1982
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1983
|
+
expiredAt: Date;
|
|
1984
|
+
}[] | undefined;
|
|
1985
|
+
};
|
|
1986
|
+
transaction: {
|
|
1987
|
+
ref: string;
|
|
1988
|
+
source: string;
|
|
1989
|
+
amount: number;
|
|
1990
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1991
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1992
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1993
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1994
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1995
|
+
expiryAmount: {
|
|
1996
|
+
amount: number;
|
|
1997
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
1998
|
+
expiredAt: Date;
|
|
1999
|
+
}[];
|
|
2000
|
+
from: {
|
|
2001
|
+
balance: number;
|
|
2002
|
+
expiryBalance?: {
|
|
2003
|
+
amount: number;
|
|
2004
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2005
|
+
expiredAt: Date;
|
|
2006
|
+
}[] | undefined;
|
|
2007
|
+
};
|
|
2008
|
+
to: {
|
|
2009
|
+
balance: number;
|
|
2010
|
+
expiryBalance?: {
|
|
2011
|
+
amount: number;
|
|
2012
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2013
|
+
expiredAt: Date;
|
|
2014
|
+
}[] | undefined;
|
|
2015
|
+
};
|
|
2016
|
+
refunded?: boolean | undefined;
|
|
2017
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
2018
|
+
metadata?: Record<string, any> | null | undefined;
|
|
2019
|
+
createdAt?: Date | undefined;
|
|
2020
|
+
pf_user?: any;
|
|
2021
|
+
pf_collectible?: any;
|
|
2022
|
+
pf_collection?: any;
|
|
2023
|
+
totalAmount?: number | undefined;
|
|
2024
|
+
};
|
|
2025
|
+
}>;
|
|
2026
|
+
}, "strip", z.ZodTypeAny, {
|
|
2027
|
+
type: "ISSUE_REWARD";
|
|
2028
|
+
context: {
|
|
2029
|
+
collection: {
|
|
2030
|
+
type: "VOUCHER" | "CREDIT" | "POINT" | "COIN" | "TIER" | "TITLE" | "GAME";
|
|
2031
|
+
options: {
|
|
2032
|
+
validityOption?: {
|
|
2033
|
+
validAfter?: Date | undefined;
|
|
2034
|
+
validBefore?: Date | undefined;
|
|
2035
|
+
validForDay?: number | undefined;
|
|
2036
|
+
} | null | undefined;
|
|
2037
|
+
maxReceive?: number | null | undefined;
|
|
2038
|
+
maxPerUser?: number | null | undefined;
|
|
2039
|
+
enableTransfer?: boolean | null | undefined;
|
|
2040
|
+
transferExpireAt?: Date | null | undefined;
|
|
2041
|
+
cooldown?: number | null | undefined;
|
|
2042
|
+
maxUse?: number | null | undefined;
|
|
2043
|
+
consumeRule?: FdoRule | null | undefined;
|
|
2044
|
+
};
|
|
2045
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2046
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2047
|
+
balance: number;
|
|
2048
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2049
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2050
|
+
ref?: string | null | undefined;
|
|
2051
|
+
code?: string | undefined;
|
|
2052
|
+
extras?: {
|
|
2053
|
+
targetLocation?: (string | import("mongodb").ObjectId)[] | null | undefined;
|
|
2054
|
+
effect?: {
|
|
2055
|
+
priority?: number | null | undefined;
|
|
2056
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
2057
|
+
options: {
|
|
2058
|
+
excludeIds?: string[] | null | undefined;
|
|
2059
|
+
minPurchase?: {
|
|
2060
|
+
amount: number;
|
|
2061
|
+
precision: number;
|
|
2062
|
+
} | null | undefined;
|
|
2063
|
+
target: "BILL";
|
|
2064
|
+
} | {
|
|
2065
|
+
maxQuantity?: number | null | undefined;
|
|
2066
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
2067
|
+
target: "ITEM";
|
|
2068
|
+
strategy: {
|
|
2069
|
+
withAddons?: string[] | null | undefined;
|
|
2070
|
+
type: "SIMPLE";
|
|
2071
|
+
} | {
|
|
2072
|
+
type: "BUY_X_GET_Y";
|
|
2073
|
+
x: number;
|
|
2074
|
+
y: number;
|
|
2075
|
+
} | {
|
|
2076
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
2077
|
+
x: number;
|
|
2078
|
+
y: number;
|
|
2079
|
+
itemAIds: string[];
|
|
2080
|
+
} | {
|
|
2081
|
+
type: "BUY_X_GET_Y_V2";
|
|
2082
|
+
x: number;
|
|
2083
|
+
y: number;
|
|
2084
|
+
itemAIds: string[];
|
|
2085
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
2086
|
+
} | {
|
|
2087
|
+
atLeast?: boolean | null | undefined;
|
|
2088
|
+
type: "COMBO";
|
|
2089
|
+
groups: {
|
|
2090
|
+
itemIds: string[];
|
|
2091
|
+
count: number;
|
|
2092
|
+
}[];
|
|
2093
|
+
};
|
|
2094
|
+
targetIds: string[];
|
|
2095
|
+
} | {
|
|
2096
|
+
minPurchase?: {
|
|
2097
|
+
amount: number;
|
|
2098
|
+
precision: number;
|
|
2099
|
+
} | null | undefined;
|
|
2100
|
+
target: "PAYMENT";
|
|
2101
|
+
};
|
|
2102
|
+
adjustment: {
|
|
2103
|
+
inclusive?: boolean | null | undefined;
|
|
2104
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
2105
|
+
amount: {
|
|
2106
|
+
amount: number;
|
|
2107
|
+
precision: number;
|
|
2108
|
+
};
|
|
2109
|
+
};
|
|
2110
|
+
} | null | undefined;
|
|
2111
|
+
gameType?: "FORTUNE_WHEEL" | "ROCK_PAPER_SCISSORS" | null | undefined;
|
|
2112
|
+
} | null | undefined;
|
|
2113
|
+
pf_user?: any;
|
|
2114
|
+
pf_collectible?: any;
|
|
2115
|
+
expiryBalance?: {
|
|
2116
|
+
amount: number;
|
|
2117
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2118
|
+
expiredAt: Date;
|
|
2119
|
+
}[] | undefined;
|
|
2120
|
+
};
|
|
2121
|
+
transaction: {
|
|
2122
|
+
ref: string;
|
|
2123
|
+
source: string;
|
|
2124
|
+
amount: number;
|
|
2125
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2126
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2127
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2128
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2129
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2130
|
+
expiryAmount: {
|
|
2131
|
+
amount: number;
|
|
2132
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2133
|
+
expiredAt: Date;
|
|
2134
|
+
}[];
|
|
2135
|
+
from: {
|
|
2136
|
+
balance: number;
|
|
2137
|
+
expiryBalance?: {
|
|
2138
|
+
amount: number;
|
|
2139
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2140
|
+
expiredAt: Date;
|
|
2141
|
+
}[] | undefined;
|
|
2142
|
+
};
|
|
2143
|
+
to: {
|
|
2144
|
+
balance: number;
|
|
2145
|
+
expiryBalance?: {
|
|
2146
|
+
amount: number;
|
|
2147
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2148
|
+
expiredAt: Date;
|
|
2149
|
+
}[] | undefined;
|
|
2150
|
+
};
|
|
2151
|
+
refunded?: boolean | undefined;
|
|
2152
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
2153
|
+
metadata?: Record<string, any> | null | undefined;
|
|
2154
|
+
createdAt?: Date | undefined;
|
|
2155
|
+
pf_user?: any;
|
|
2156
|
+
pf_collectible?: any;
|
|
2157
|
+
pf_collection?: any;
|
|
2158
|
+
totalAmount?: number | undefined;
|
|
2159
|
+
};
|
|
2160
|
+
};
|
|
2161
|
+
emittedAt: Date;
|
|
2162
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
2163
|
+
slackWebhookUrl?: string | undefined;
|
|
2164
|
+
}, {
|
|
2165
|
+
type: "ISSUE_REWARD";
|
|
2166
|
+
context: {
|
|
2167
|
+
collection: {
|
|
2168
|
+
type: "VOUCHER" | "CREDIT" | "POINT" | "COIN" | "TIER" | "TITLE" | "GAME";
|
|
2169
|
+
options: {
|
|
2170
|
+
validityOption?: {
|
|
2171
|
+
validAfter?: Date | undefined;
|
|
2172
|
+
validBefore?: Date | undefined;
|
|
2173
|
+
validForDay?: number | undefined;
|
|
2174
|
+
} | null | undefined;
|
|
2175
|
+
maxReceive?: number | null | undefined;
|
|
2176
|
+
maxPerUser?: number | null | undefined;
|
|
2177
|
+
enableTransfer?: boolean | null | undefined;
|
|
2178
|
+
transferExpireAt?: Date | null | undefined;
|
|
2179
|
+
cooldown?: number | null | undefined;
|
|
2180
|
+
maxUse?: number | null | undefined;
|
|
2181
|
+
consumeRule?: FdoRule | null | undefined;
|
|
2182
|
+
};
|
|
2183
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2184
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2185
|
+
balance: number;
|
|
2186
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2187
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2188
|
+
ref?: string | null | undefined;
|
|
2189
|
+
code?: string | undefined;
|
|
2190
|
+
extras?: {
|
|
2191
|
+
targetLocation?: (string | import("mongodb").ObjectId)[] | null | undefined;
|
|
2192
|
+
effect?: Record<string, any> | null | undefined;
|
|
2193
|
+
gameType?: "FORTUNE_WHEEL" | "ROCK_PAPER_SCISSORS" | null | undefined;
|
|
2194
|
+
} | null | undefined;
|
|
2195
|
+
pf_user?: any;
|
|
2196
|
+
pf_collectible?: any;
|
|
2197
|
+
expiryBalance?: {
|
|
2198
|
+
amount: number;
|
|
2199
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2200
|
+
expiredAt: Date;
|
|
2201
|
+
}[] | undefined;
|
|
2202
|
+
};
|
|
2203
|
+
transaction: {
|
|
2204
|
+
ref: string;
|
|
2205
|
+
source: string;
|
|
2206
|
+
amount: number;
|
|
2207
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2208
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2209
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2210
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2211
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2212
|
+
expiryAmount: {
|
|
2213
|
+
amount: number;
|
|
2214
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2215
|
+
expiredAt: Date;
|
|
2216
|
+
}[];
|
|
2217
|
+
from: {
|
|
2218
|
+
balance: number;
|
|
2219
|
+
expiryBalance?: {
|
|
2220
|
+
amount: number;
|
|
2221
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2222
|
+
expiredAt: Date;
|
|
2223
|
+
}[] | undefined;
|
|
2224
|
+
};
|
|
2225
|
+
to: {
|
|
2226
|
+
balance: number;
|
|
2227
|
+
expiryBalance?: {
|
|
2228
|
+
amount: number;
|
|
2229
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2230
|
+
expiredAt: Date;
|
|
2231
|
+
}[] | undefined;
|
|
2232
|
+
};
|
|
2233
|
+
refunded?: boolean | undefined;
|
|
2234
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
2235
|
+
metadata?: Record<string, any> | null | undefined;
|
|
2236
|
+
createdAt?: Date | undefined;
|
|
2237
|
+
pf_user?: any;
|
|
2238
|
+
pf_collectible?: any;
|
|
2239
|
+
pf_collection?: any;
|
|
2240
|
+
totalAmount?: number | undefined;
|
|
2241
|
+
};
|
|
2242
|
+
};
|
|
2243
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
2244
|
+
slackWebhookUrl?: string | undefined;
|
|
2245
|
+
emittedAt?: Date | undefined;
|
|
2246
|
+
}>;
|
|
2247
|
+
export declare const FdtoEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2248
|
+
campaignIds: z.ZodOptional<z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">>;
|
|
2249
|
+
slackWebhookUrl: z.ZodOptional<z.ZodString>;
|
|
2250
|
+
emittedAt: z.ZodDefault<z.ZodDate>;
|
|
2251
|
+
type: z.ZodLiteral<"BILL_COMPLETED">;
|
|
2252
|
+
context: z.ZodObject<{
|
|
2253
|
+
bill: z.ZodEffects<z.ZodObject<{
|
|
2254
|
+
_id: z.ZodString;
|
|
2255
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2256
|
+
memberid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2257
|
+
nettTotal: z.ZodObject<{
|
|
2258
|
+
currency: z.ZodUnion<[z.ZodLiteral<"AED">, z.ZodLiteral<"AFN">, z.ZodLiteral<"ALL">, z.ZodLiteral<"AMD">, z.ZodLiteral<"ANG">, z.ZodLiteral<"AOA">, z.ZodLiteral<"ARS">, z.ZodLiteral<"AUD">, z.ZodLiteral<"AWG">, z.ZodLiteral<"AZN">, z.ZodLiteral<"BAM">, z.ZodLiteral<"BBD">, z.ZodLiteral<"BDT">, z.ZodLiteral<"BGN">, z.ZodLiteral<"BHD">, z.ZodLiteral<"BIF">, z.ZodLiteral<"BMD">, z.ZodLiteral<"BND">, z.ZodLiteral<"BOB">, z.ZodLiteral<"BOV">, z.ZodLiteral<"BRL">, z.ZodLiteral<"BSD">, z.ZodLiteral<"BTN">, z.ZodLiteral<"BWP">, z.ZodLiteral<"BYN">, z.ZodLiteral<"BZD">, z.ZodLiteral<"CAD">, z.ZodLiteral<"CDF">, z.ZodLiteral<"CHE">, z.ZodLiteral<"CHF">, z.ZodLiteral<"CHW">, z.ZodLiteral<"CLF">, z.ZodLiteral<"CLP">, z.ZodLiteral<"CNY">, z.ZodLiteral<"COP">, z.ZodLiteral<"COU">, z.ZodLiteral<"CRC">, z.ZodLiteral<"CUC">, z.ZodLiteral<"CUP">, z.ZodLiteral<"CVE">, z.ZodLiteral<"CZK">, z.ZodLiteral<"DJF">, z.ZodLiteral<"DKK">, z.ZodLiteral<"DOP">, z.ZodLiteral<"DZD">, z.ZodLiteral<"EGP">, z.ZodLiteral<"ERN">, z.ZodLiteral<"ETB">, z.ZodLiteral<"EUR">, z.ZodLiteral<"FJD">, z.ZodLiteral<"FKP">, z.ZodLiteral<"GBP">, z.ZodLiteral<"GEL">, z.ZodLiteral<"GHS">, z.ZodLiteral<"GIP">, z.ZodLiteral<"GMD">, z.ZodLiteral<"GNF">, z.ZodLiteral<"GTQ">, z.ZodLiteral<"GYD">, z.ZodLiteral<"HKD">, z.ZodLiteral<"HNL">, z.ZodLiteral<"HRK">, z.ZodLiteral<"HTG">, z.ZodLiteral<"HUF">, z.ZodLiteral<"IDR">, z.ZodLiteral<"ILS">, z.ZodLiteral<"INR">, z.ZodLiteral<"IQD">, z.ZodLiteral<"IRR">, z.ZodLiteral<"ISK">, z.ZodLiteral<"JMD">, z.ZodLiteral<"JOD">, z.ZodLiteral<"JPY">, z.ZodLiteral<"KES">, z.ZodLiteral<"KGS">, z.ZodLiteral<"KHR">, z.ZodLiteral<"KMF">, z.ZodLiteral<"KPW">, z.ZodLiteral<"KRW">, z.ZodLiteral<"KWD">, z.ZodLiteral<"KYD">, z.ZodLiteral<"KZT">, z.ZodLiteral<"LAK">, z.ZodLiteral<"LBP">, z.ZodLiteral<"LKR">, z.ZodLiteral<"LRD">, z.ZodLiteral<"LSL">, z.ZodLiteral<"LYD">, z.ZodLiteral<"MAD">, z.ZodLiteral<"MDL">, z.ZodLiteral<"MGA">, z.ZodLiteral<"MKD">, z.ZodLiteral<"MMK">, z.ZodLiteral<"MNT">, z.ZodLiteral<"MOP">, z.ZodLiteral<"MRU">, z.ZodLiteral<"MUR">, z.ZodLiteral<"MVR">, z.ZodLiteral<"MWK">, z.ZodLiteral<"MXN">, z.ZodLiteral<"MXV">, z.ZodLiteral<"MYR">, z.ZodLiteral<"MZN">, z.ZodLiteral<"NAD">, z.ZodLiteral<"NGN">, z.ZodLiteral<"NIO">, z.ZodLiteral<"NOK">, z.ZodLiteral<"NPR">, z.ZodLiteral<"NZD">, z.ZodLiteral<"OMR">, z.ZodLiteral<"PAB">, z.ZodLiteral<"PEN">, z.ZodLiteral<"PGK">, z.ZodLiteral<"PHP">, z.ZodLiteral<"PKR">, z.ZodLiteral<"PLN">, z.ZodLiteral<"PYG">, z.ZodLiteral<"QAR">, z.ZodLiteral<"RON">, z.ZodLiteral<"RSD">, z.ZodLiteral<"RUB">, z.ZodLiteral<"RWF">, z.ZodLiteral<"SAR">, z.ZodLiteral<"SBD">, z.ZodLiteral<"SCR">, z.ZodLiteral<"SDG">, z.ZodLiteral<"SEK">, z.ZodLiteral<"SGD">, z.ZodLiteral<"SHP">, z.ZodLiteral<"SLL">, z.ZodLiteral<"SOS">, z.ZodLiteral<"SRD">, z.ZodLiteral<"SSP">, z.ZodLiteral<"STN">, z.ZodLiteral<"SVC">, z.ZodLiteral<"SYP">, z.ZodLiteral<"SZL">, z.ZodLiteral<"THB">, z.ZodLiteral<"TJS">, z.ZodLiteral<"TMT">, z.ZodLiteral<"TND">, z.ZodLiteral<"TOP">, z.ZodLiteral<"TRY">, z.ZodLiteral<"TTD">, z.ZodLiteral<"TWD">, z.ZodLiteral<"TZS">, z.ZodLiteral<"UAH">, z.ZodLiteral<"UGX">, z.ZodLiteral<"USD">, z.ZodLiteral<"USN">, z.ZodLiteral<"UYI">, z.ZodLiteral<"UYU">, z.ZodLiteral<"UYW">, z.ZodLiteral<"UZS">, z.ZodLiteral<"VES">, z.ZodLiteral<"VND">, z.ZodLiteral<"VUV">, z.ZodLiteral<"WST">, z.ZodLiteral<"XAF">, z.ZodLiteral<"XAG">, z.ZodLiteral<"XAU">, z.ZodLiteral<"XBA">, z.ZodLiteral<"XBB">, z.ZodLiteral<"XBC">, z.ZodLiteral<"XBD">, z.ZodLiteral<"XCD">, z.ZodLiteral<"XDR">, z.ZodLiteral<"XOF">, z.ZodLiteral<"XPD">, z.ZodLiteral<"XPF">, z.ZodLiteral<"XPT">, z.ZodLiteral<"XSU">, z.ZodLiteral<"XTS">, z.ZodLiteral<"XUA">, z.ZodLiteral<"XXX">, z.ZodLiteral<"YER">, z.ZodLiteral<"ZAR">, z.ZodLiteral<"ZMW">, z.ZodLiteral<"ZWL">]>;
|
|
2259
|
+
amount: z.ZodNumber;
|
|
2260
|
+
precision: z.ZodNumber;
|
|
2261
|
+
}, "strip", z.ZodTypeAny, {
|
|
2262
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
2263
|
+
amount: number;
|
|
2264
|
+
precision: number;
|
|
2265
|
+
}, {
|
|
2266
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
2267
|
+
amount: number;
|
|
2268
|
+
precision: number;
|
|
2269
|
+
}>;
|
|
2270
|
+
remark: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2271
|
+
createdAt: z.ZodDate;
|
|
2272
|
+
completedAt: z.ZodDate;
|
|
2273
|
+
location: z.ZodString;
|
|
2274
|
+
channel: z.ZodOptional<z.ZodEnum<["COUNTER", "POS"]>>;
|
|
2275
|
+
}, "strip", z.ZodTypeAny, {
|
|
2276
|
+
_id: string;
|
|
2277
|
+
location: string;
|
|
2278
|
+
nettTotal: {
|
|
2279
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
2280
|
+
amount: number;
|
|
2281
|
+
precision: number;
|
|
2282
|
+
};
|
|
2283
|
+
createdAt: Date;
|
|
2284
|
+
completedAt: Date;
|
|
2285
|
+
user?: string | null | undefined;
|
|
2286
|
+
memberid?: string | null | undefined;
|
|
2287
|
+
remark?: string | null | undefined;
|
|
2288
|
+
channel?: "COUNTER" | "POS" | undefined;
|
|
2289
|
+
}, {
|
|
2290
|
+
_id: string;
|
|
2291
|
+
location: string;
|
|
2292
|
+
nettTotal: {
|
|
2293
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
2294
|
+
amount: number;
|
|
2295
|
+
precision: number;
|
|
2296
|
+
};
|
|
2297
|
+
createdAt: Date;
|
|
2298
|
+
completedAt: Date;
|
|
2299
|
+
user?: string | null | undefined;
|
|
2300
|
+
memberid?: string | null | undefined;
|
|
2301
|
+
remark?: string | null | undefined;
|
|
2302
|
+
channel?: "COUNTER" | "POS" | undefined;
|
|
2303
|
+
}>, {
|
|
2304
|
+
createdTime: Date;
|
|
2305
|
+
completedTime: Date;
|
|
2306
|
+
amount: number;
|
|
2307
|
+
_id: string;
|
|
2308
|
+
location: string;
|
|
2309
|
+
nettTotal: {
|
|
2310
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
2311
|
+
amount: number;
|
|
2312
|
+
precision: number;
|
|
2313
|
+
};
|
|
2314
|
+
createdAt: Date;
|
|
2315
|
+
completedAt: Date;
|
|
2316
|
+
user?: string | null | undefined;
|
|
2317
|
+
memberid?: string | null | undefined;
|
|
2318
|
+
remark?: string | null | undefined;
|
|
2319
|
+
channel?: "COUNTER" | "POS" | undefined;
|
|
2320
|
+
}, {
|
|
2321
|
+
_id: string;
|
|
2322
|
+
location: string;
|
|
2323
|
+
nettTotal: {
|
|
2324
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
2325
|
+
amount: number;
|
|
2326
|
+
precision: number;
|
|
2327
|
+
};
|
|
2328
|
+
createdAt: Date;
|
|
2329
|
+
completedAt: Date;
|
|
2330
|
+
user?: string | null | undefined;
|
|
2331
|
+
memberid?: string | null | undefined;
|
|
2332
|
+
remark?: string | null | undefined;
|
|
2333
|
+
channel?: "COUNTER" | "POS" | undefined;
|
|
2334
|
+
}>;
|
|
2335
|
+
}, "strip", z.ZodTypeAny, {
|
|
2336
|
+
bill: {
|
|
2337
|
+
createdTime: Date;
|
|
2338
|
+
completedTime: Date;
|
|
2339
|
+
amount: number;
|
|
2340
|
+
_id: string;
|
|
2341
|
+
location: string;
|
|
2342
|
+
nettTotal: {
|
|
2343
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
2344
|
+
amount: number;
|
|
2345
|
+
precision: number;
|
|
2346
|
+
};
|
|
2347
|
+
createdAt: Date;
|
|
2348
|
+
completedAt: Date;
|
|
2349
|
+
user?: string | null | undefined;
|
|
2350
|
+
memberid?: string | null | undefined;
|
|
2351
|
+
remark?: string | null | undefined;
|
|
2352
|
+
channel?: "COUNTER" | "POS" | undefined;
|
|
2353
|
+
};
|
|
2354
|
+
}, {
|
|
2355
|
+
bill: {
|
|
2356
|
+
_id: string;
|
|
2357
|
+
location: string;
|
|
2358
|
+
nettTotal: {
|
|
2359
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
2360
|
+
amount: number;
|
|
2361
|
+
precision: number;
|
|
2362
|
+
};
|
|
2363
|
+
createdAt: Date;
|
|
2364
|
+
completedAt: Date;
|
|
2365
|
+
user?: string | null | undefined;
|
|
2366
|
+
memberid?: string | null | undefined;
|
|
2367
|
+
remark?: string | null | undefined;
|
|
2368
|
+
channel?: "COUNTER" | "POS" | undefined;
|
|
2369
|
+
};
|
|
2370
|
+
}>;
|
|
2371
|
+
}, "strip", z.ZodTypeAny, {
|
|
2372
|
+
type: "BILL_COMPLETED";
|
|
2373
|
+
context: {
|
|
2374
|
+
bill: {
|
|
2375
|
+
createdTime: Date;
|
|
2376
|
+
completedTime: Date;
|
|
2377
|
+
amount: number;
|
|
2378
|
+
_id: string;
|
|
2379
|
+
location: string;
|
|
2380
|
+
nettTotal: {
|
|
2381
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
2382
|
+
amount: number;
|
|
2383
|
+
precision: number;
|
|
2384
|
+
};
|
|
2385
|
+
createdAt: Date;
|
|
2386
|
+
completedAt: Date;
|
|
2387
|
+
user?: string | null | undefined;
|
|
2388
|
+
memberid?: string | null | undefined;
|
|
2389
|
+
remark?: string | null | undefined;
|
|
2390
|
+
channel?: "COUNTER" | "POS" | undefined;
|
|
2391
|
+
};
|
|
2392
|
+
};
|
|
2393
|
+
emittedAt: Date;
|
|
2394
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
2395
|
+
slackWebhookUrl?: string | undefined;
|
|
2396
|
+
}, {
|
|
2397
|
+
type: "BILL_COMPLETED";
|
|
2398
|
+
context: {
|
|
2399
|
+
bill: {
|
|
2400
|
+
_id: string;
|
|
2401
|
+
location: string;
|
|
2402
|
+
nettTotal: {
|
|
2403
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
2404
|
+
amount: number;
|
|
2405
|
+
precision: number;
|
|
2406
|
+
};
|
|
2407
|
+
createdAt: Date;
|
|
2408
|
+
completedAt: Date;
|
|
2409
|
+
user?: string | null | undefined;
|
|
2410
|
+
memberid?: string | null | undefined;
|
|
2411
|
+
remark?: string | null | undefined;
|
|
2412
|
+
channel?: "COUNTER" | "POS" | undefined;
|
|
2413
|
+
};
|
|
2414
|
+
};
|
|
2415
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
2416
|
+
slackWebhookUrl?: string | undefined;
|
|
2417
|
+
emittedAt?: Date | undefined;
|
|
2418
|
+
}>, z.ZodObject<{
|
|
2419
|
+
campaignIds: z.ZodOptional<z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">>;
|
|
2420
|
+
slackWebhookUrl: z.ZodOptional<z.ZodString>;
|
|
2421
|
+
emittedAt: z.ZodDefault<z.ZodDate>;
|
|
2422
|
+
type: z.ZodLiteral<"SCHEDULE">;
|
|
2423
|
+
context: z.ZodObject<{
|
|
2424
|
+
triggeredAt: z.ZodDate;
|
|
2425
|
+
}, "strip", z.ZodTypeAny, {
|
|
2426
|
+
triggeredAt: Date;
|
|
2427
|
+
}, {
|
|
2428
|
+
triggeredAt: Date;
|
|
2429
|
+
}>;
|
|
2430
|
+
}, "strip", z.ZodTypeAny, {
|
|
2431
|
+
type: "SCHEDULE";
|
|
2432
|
+
context: {
|
|
2433
|
+
triggeredAt: Date;
|
|
2434
|
+
};
|
|
2435
|
+
emittedAt: Date;
|
|
2436
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
2437
|
+
slackWebhookUrl?: string | undefined;
|
|
2438
|
+
}, {
|
|
2439
|
+
type: "SCHEDULE";
|
|
2440
|
+
context: {
|
|
2441
|
+
triggeredAt: Date;
|
|
2442
|
+
};
|
|
2443
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
2444
|
+
slackWebhookUrl?: string | undefined;
|
|
2445
|
+
emittedAt?: Date | undefined;
|
|
2446
|
+
}>, z.ZodObject<{
|
|
2447
|
+
campaignIds: z.ZodOptional<z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">>;
|
|
2448
|
+
slackWebhookUrl: z.ZodOptional<z.ZodString>;
|
|
2449
|
+
emittedAt: z.ZodDefault<z.ZodDate>;
|
|
2450
|
+
type: z.ZodLiteral<"FEEDBACK">;
|
|
2451
|
+
context: z.ZodObject<{
|
|
2452
|
+
feedback: z.ZodObject<{
|
|
2453
|
+
_id: z.ZodString;
|
|
2454
|
+
rating: z.ZodNumber;
|
|
2455
|
+
user: z.ZodString;
|
|
2456
|
+
restaurant: z.ZodString;
|
|
2457
|
+
message: z.ZodString;
|
|
2458
|
+
submittedAt: z.ZodDate;
|
|
2459
|
+
}, "strip", z.ZodTypeAny, {
|
|
2460
|
+
message: string;
|
|
2461
|
+
_id: string;
|
|
2462
|
+
user: string;
|
|
2463
|
+
rating: number;
|
|
2464
|
+
restaurant: string;
|
|
2465
|
+
submittedAt: Date;
|
|
2466
|
+
}, {
|
|
2467
|
+
message: string;
|
|
2468
|
+
_id: string;
|
|
2469
|
+
user: string;
|
|
2470
|
+
rating: number;
|
|
2471
|
+
restaurant: string;
|
|
2472
|
+
submittedAt: Date;
|
|
2473
|
+
}>;
|
|
2474
|
+
}, "strip", z.ZodTypeAny, {
|
|
2475
|
+
feedback: {
|
|
2476
|
+
message: string;
|
|
2477
|
+
_id: string;
|
|
2478
|
+
user: string;
|
|
2479
|
+
rating: number;
|
|
2480
|
+
restaurant: string;
|
|
2481
|
+
submittedAt: Date;
|
|
2482
|
+
};
|
|
2483
|
+
}, {
|
|
2484
|
+
feedback: {
|
|
2485
|
+
message: string;
|
|
2486
|
+
_id: string;
|
|
2487
|
+
user: string;
|
|
2488
|
+
rating: number;
|
|
2489
|
+
restaurant: string;
|
|
2490
|
+
submittedAt: Date;
|
|
2491
|
+
};
|
|
2492
|
+
}>;
|
|
2493
|
+
}, "strip", z.ZodTypeAny, {
|
|
2494
|
+
type: "FEEDBACK";
|
|
2495
|
+
context: {
|
|
2496
|
+
feedback: {
|
|
2497
|
+
message: string;
|
|
2498
|
+
_id: string;
|
|
2499
|
+
user: string;
|
|
2500
|
+
rating: number;
|
|
2501
|
+
restaurant: string;
|
|
2502
|
+
submittedAt: Date;
|
|
2503
|
+
};
|
|
2504
|
+
};
|
|
2505
|
+
emittedAt: Date;
|
|
2506
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
2507
|
+
slackWebhookUrl?: string | undefined;
|
|
2508
|
+
}, {
|
|
2509
|
+
type: "FEEDBACK";
|
|
2510
|
+
context: {
|
|
2511
|
+
feedback: {
|
|
2512
|
+
message: string;
|
|
2513
|
+
_id: string;
|
|
2514
|
+
user: string;
|
|
2515
|
+
rating: number;
|
|
2516
|
+
restaurant: string;
|
|
2517
|
+
submittedAt: Date;
|
|
2518
|
+
};
|
|
2519
|
+
};
|
|
2520
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
2521
|
+
slackWebhookUrl?: string | undefined;
|
|
2522
|
+
emittedAt?: Date | undefined;
|
|
2523
|
+
}>, z.ZodObject<{
|
|
2524
|
+
campaignIds: z.ZodOptional<z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">>;
|
|
2525
|
+
slackWebhookUrl: z.ZodOptional<z.ZodString>;
|
|
2526
|
+
emittedAt: z.ZodDefault<z.ZodDate>;
|
|
2527
|
+
type: z.ZodLiteral<"MEMBERSHIP_JOINED">;
|
|
2528
|
+
context: z.ZodObject<{
|
|
2529
|
+
user: z.ZodObject<{
|
|
2530
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
2531
|
+
name: z.ZodString;
|
|
2532
|
+
birthday: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2533
|
+
gender: z.ZodOptional<z.ZodEnum<["MALE", "FEMALE"]>>;
|
|
2534
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2535
|
+
name: z.ZodString;
|
|
2536
|
+
address: z.ZodString;
|
|
2537
|
+
coordinates: z.ZodArray<z.ZodNumber, "many">;
|
|
2538
|
+
}, "strip", z.ZodTypeAny, {
|
|
2539
|
+
address: string;
|
|
2540
|
+
name: string;
|
|
2541
|
+
coordinates: number[];
|
|
2542
|
+
}, {
|
|
2543
|
+
address: string;
|
|
2544
|
+
name: string;
|
|
2545
|
+
coordinates: number[];
|
|
2546
|
+
}>, "many">>>;
|
|
2547
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2548
|
+
phoneNumber: z.ZodEffects<z.ZodString, string, string>;
|
|
2549
|
+
externalMemberId: z.ZodOptional<z.ZodString>;
|
|
2550
|
+
cardNo: z.ZodOptional<z.ZodString>;
|
|
2551
|
+
joinAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2552
|
+
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2553
|
+
business: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
2554
|
+
stats: z.ZodObject<{
|
|
2555
|
+
lastVisit: z.ZodDate;
|
|
2556
|
+
topupCount: z.ZodNumber;
|
|
2557
|
+
products: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2558
|
+
visitCount: z.ZodNumber;
|
|
2559
|
+
avgVisitFrequency: z.ZodNumber;
|
|
2560
|
+
avgBillSize: z.ZodNumber;
|
|
2561
|
+
feedbackCount: z.ZodNumber;
|
|
2562
|
+
lastSeasonTierEarned: z.ZodOptional<z.ZodNumber>;
|
|
2563
|
+
lastSeasonPointEarned: z.ZodOptional<z.ZodNumber>;
|
|
2564
|
+
}, "strip", z.ZodTypeAny, {
|
|
2565
|
+
lastVisit: Date;
|
|
2566
|
+
topupCount: number;
|
|
2567
|
+
products: Record<string, number>;
|
|
2568
|
+
visitCount: number;
|
|
2569
|
+
avgVisitFrequency: number;
|
|
2570
|
+
avgBillSize: number;
|
|
2571
|
+
feedbackCount: number;
|
|
2572
|
+
lastSeasonTierEarned?: number | undefined;
|
|
2573
|
+
lastSeasonPointEarned?: number | undefined;
|
|
2574
|
+
}, {
|
|
2575
|
+
lastVisit: Date;
|
|
2576
|
+
topupCount: number;
|
|
2577
|
+
products: Record<string, number>;
|
|
2578
|
+
visitCount: number;
|
|
2579
|
+
avgVisitFrequency: number;
|
|
2580
|
+
avgBillSize: number;
|
|
2581
|
+
feedbackCount: number;
|
|
2582
|
+
lastSeasonTierEarned?: number | undefined;
|
|
2583
|
+
lastSeasonPointEarned?: number | undefined;
|
|
2584
|
+
}>;
|
|
2585
|
+
segment: z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">;
|
|
2586
|
+
member: z.ZodBoolean;
|
|
2587
|
+
expiringVouchers: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
2588
|
+
days7: z.ZodNumber;
|
|
2589
|
+
days30: z.ZodNumber;
|
|
2590
|
+
days90: z.ZodNumber;
|
|
2591
|
+
}, "strip", z.ZodTypeAny, {
|
|
2592
|
+
days7: number;
|
|
2593
|
+
days30: number;
|
|
2594
|
+
days90: number;
|
|
2595
|
+
}, {
|
|
2596
|
+
days7: number;
|
|
2597
|
+
days30: number;
|
|
2598
|
+
days90: number;
|
|
2599
|
+
}>, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
|
|
2600
|
+
lastReadAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2601
|
+
importCollection: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
2602
|
+
}, "strip", z.ZodTypeAny, {
|
|
2603
|
+
name: string;
|
|
2604
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2605
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2606
|
+
phoneNumber: string;
|
|
2607
|
+
stats: {
|
|
2608
|
+
lastVisit: Date;
|
|
2609
|
+
topupCount: number;
|
|
2610
|
+
products: Record<string, number>;
|
|
2611
|
+
visitCount: number;
|
|
2612
|
+
avgVisitFrequency: number;
|
|
2613
|
+
avgBillSize: number;
|
|
2614
|
+
feedbackCount: number;
|
|
2615
|
+
lastSeasonTierEarned?: number | undefined;
|
|
2616
|
+
lastSeasonPointEarned?: number | undefined;
|
|
2617
|
+
};
|
|
2618
|
+
segment: (string | import("mongodb").ObjectId)[];
|
|
2619
|
+
member: boolean;
|
|
2620
|
+
birthday?: Date | null | undefined;
|
|
2621
|
+
gender?: "MALE" | "FEMALE" | undefined;
|
|
2622
|
+
address?: {
|
|
2623
|
+
address: string;
|
|
2624
|
+
name: string;
|
|
2625
|
+
coordinates: number[];
|
|
2626
|
+
}[] | null | undefined;
|
|
2627
|
+
email?: string | null | undefined;
|
|
2628
|
+
externalMemberId?: string | undefined;
|
|
2629
|
+
cardNo?: string | undefined;
|
|
2630
|
+
joinAt?: Date | null | undefined;
|
|
2631
|
+
photoUrl?: string | null | undefined;
|
|
2632
|
+
expiringVouchers?: ({
|
|
2633
|
+
days7: number;
|
|
2634
|
+
days30: number;
|
|
2635
|
+
days90: number;
|
|
2636
|
+
} & Record<string, number>) | undefined;
|
|
2637
|
+
lastReadAt?: Date | null | undefined;
|
|
2638
|
+
importCollection?: Record<string, number> | undefined;
|
|
2639
|
+
}, {
|
|
2640
|
+
name: string;
|
|
2641
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2642
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2643
|
+
phoneNumber: string;
|
|
2644
|
+
stats: {
|
|
2645
|
+
lastVisit: Date;
|
|
2646
|
+
topupCount: number;
|
|
2647
|
+
products: Record<string, number>;
|
|
2648
|
+
visitCount: number;
|
|
2649
|
+
avgVisitFrequency: number;
|
|
2650
|
+
avgBillSize: number;
|
|
2651
|
+
feedbackCount: number;
|
|
2652
|
+
lastSeasonTierEarned?: number | undefined;
|
|
2653
|
+
lastSeasonPointEarned?: number | undefined;
|
|
2654
|
+
};
|
|
2655
|
+
segment: (string | import("mongodb").ObjectId)[];
|
|
2656
|
+
member: boolean;
|
|
2657
|
+
birthday?: Date | null | undefined;
|
|
2658
|
+
gender?: "MALE" | "FEMALE" | undefined;
|
|
2659
|
+
address?: {
|
|
2660
|
+
address: string;
|
|
2661
|
+
name: string;
|
|
2662
|
+
coordinates: number[];
|
|
2663
|
+
}[] | null | undefined;
|
|
2664
|
+
email?: string | null | undefined;
|
|
2665
|
+
externalMemberId?: string | undefined;
|
|
2666
|
+
cardNo?: string | undefined;
|
|
2667
|
+
joinAt?: Date | null | undefined;
|
|
2668
|
+
photoUrl?: string | null | undefined;
|
|
2669
|
+
expiringVouchers?: ({
|
|
2670
|
+
days7: number;
|
|
2671
|
+
days30: number;
|
|
2672
|
+
days90: number;
|
|
2673
|
+
} & Record<string, number>) | undefined;
|
|
2674
|
+
lastReadAt?: Date | null | undefined;
|
|
2675
|
+
importCollection?: Record<string, number> | undefined;
|
|
2676
|
+
}>;
|
|
2677
|
+
}, "strip", z.ZodTypeAny, {
|
|
2678
|
+
user: {
|
|
2679
|
+
name: string;
|
|
2680
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2681
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2682
|
+
phoneNumber: string;
|
|
2683
|
+
stats: {
|
|
2684
|
+
lastVisit: Date;
|
|
2685
|
+
topupCount: number;
|
|
2686
|
+
products: Record<string, number>;
|
|
2687
|
+
visitCount: number;
|
|
2688
|
+
avgVisitFrequency: number;
|
|
2689
|
+
avgBillSize: number;
|
|
2690
|
+
feedbackCount: number;
|
|
2691
|
+
lastSeasonTierEarned?: number | undefined;
|
|
2692
|
+
lastSeasonPointEarned?: number | undefined;
|
|
2693
|
+
};
|
|
2694
|
+
segment: (string | import("mongodb").ObjectId)[];
|
|
2695
|
+
member: boolean;
|
|
2696
|
+
birthday?: Date | null | undefined;
|
|
2697
|
+
gender?: "MALE" | "FEMALE" | undefined;
|
|
2698
|
+
address?: {
|
|
2699
|
+
address: string;
|
|
2700
|
+
name: string;
|
|
2701
|
+
coordinates: number[];
|
|
2702
|
+
}[] | null | undefined;
|
|
2703
|
+
email?: string | null | undefined;
|
|
2704
|
+
externalMemberId?: string | undefined;
|
|
2705
|
+
cardNo?: string | undefined;
|
|
2706
|
+
joinAt?: Date | null | undefined;
|
|
2707
|
+
photoUrl?: string | null | undefined;
|
|
2708
|
+
expiringVouchers?: ({
|
|
2709
|
+
days7: number;
|
|
2710
|
+
days30: number;
|
|
2711
|
+
days90: number;
|
|
2712
|
+
} & Record<string, number>) | undefined;
|
|
2713
|
+
lastReadAt?: Date | null | undefined;
|
|
2714
|
+
importCollection?: Record<string, number> | undefined;
|
|
2715
|
+
};
|
|
2716
|
+
}, {
|
|
2717
|
+
user: {
|
|
2718
|
+
name: string;
|
|
2719
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2720
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2721
|
+
phoneNumber: string;
|
|
2722
|
+
stats: {
|
|
2723
|
+
lastVisit: Date;
|
|
2724
|
+
topupCount: number;
|
|
2725
|
+
products: Record<string, number>;
|
|
2726
|
+
visitCount: number;
|
|
2727
|
+
avgVisitFrequency: number;
|
|
2728
|
+
avgBillSize: number;
|
|
2729
|
+
feedbackCount: number;
|
|
2730
|
+
lastSeasonTierEarned?: number | undefined;
|
|
2731
|
+
lastSeasonPointEarned?: number | undefined;
|
|
2732
|
+
};
|
|
2733
|
+
segment: (string | import("mongodb").ObjectId)[];
|
|
2734
|
+
member: boolean;
|
|
2735
|
+
birthday?: Date | null | undefined;
|
|
2736
|
+
gender?: "MALE" | "FEMALE" | undefined;
|
|
2737
|
+
address?: {
|
|
2738
|
+
address: string;
|
|
2739
|
+
name: string;
|
|
2740
|
+
coordinates: number[];
|
|
2741
|
+
}[] | null | undefined;
|
|
2742
|
+
email?: string | null | undefined;
|
|
2743
|
+
externalMemberId?: string | undefined;
|
|
2744
|
+
cardNo?: string | undefined;
|
|
2745
|
+
joinAt?: Date | null | undefined;
|
|
2746
|
+
photoUrl?: string | null | undefined;
|
|
2747
|
+
expiringVouchers?: ({
|
|
2748
|
+
days7: number;
|
|
2749
|
+
days30: number;
|
|
2750
|
+
days90: number;
|
|
2751
|
+
} & Record<string, number>) | undefined;
|
|
2752
|
+
lastReadAt?: Date | null | undefined;
|
|
2753
|
+
importCollection?: Record<string, number> | undefined;
|
|
2754
|
+
};
|
|
2755
|
+
}>;
|
|
2756
|
+
}, "strip", z.ZodTypeAny, {
|
|
2757
|
+
type: "MEMBERSHIP_JOINED";
|
|
2758
|
+
context: {
|
|
2759
|
+
user: {
|
|
2760
|
+
name: string;
|
|
2761
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2762
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2763
|
+
phoneNumber: string;
|
|
2764
|
+
stats: {
|
|
2765
|
+
lastVisit: Date;
|
|
2766
|
+
topupCount: number;
|
|
2767
|
+
products: Record<string, number>;
|
|
2768
|
+
visitCount: number;
|
|
2769
|
+
avgVisitFrequency: number;
|
|
2770
|
+
avgBillSize: number;
|
|
2771
|
+
feedbackCount: number;
|
|
2772
|
+
lastSeasonTierEarned?: number | undefined;
|
|
2773
|
+
lastSeasonPointEarned?: number | undefined;
|
|
2774
|
+
};
|
|
2775
|
+
segment: (string | import("mongodb").ObjectId)[];
|
|
2776
|
+
member: boolean;
|
|
2777
|
+
birthday?: Date | null | undefined;
|
|
2778
|
+
gender?: "MALE" | "FEMALE" | undefined;
|
|
2779
|
+
address?: {
|
|
2780
|
+
address: string;
|
|
2781
|
+
name: string;
|
|
2782
|
+
coordinates: number[];
|
|
2783
|
+
}[] | null | undefined;
|
|
2784
|
+
email?: string | null | undefined;
|
|
2785
|
+
externalMemberId?: string | undefined;
|
|
2786
|
+
cardNo?: string | undefined;
|
|
2787
|
+
joinAt?: Date | null | undefined;
|
|
2788
|
+
photoUrl?: string | null | undefined;
|
|
2789
|
+
expiringVouchers?: ({
|
|
2790
|
+
days7: number;
|
|
2791
|
+
days30: number;
|
|
2792
|
+
days90: number;
|
|
2793
|
+
} & Record<string, number>) | undefined;
|
|
2794
|
+
lastReadAt?: Date | null | undefined;
|
|
2795
|
+
importCollection?: Record<string, number> | undefined;
|
|
2796
|
+
};
|
|
2797
|
+
};
|
|
2798
|
+
emittedAt: Date;
|
|
2799
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
2800
|
+
slackWebhookUrl?: string | undefined;
|
|
2801
|
+
}, {
|
|
2802
|
+
type: "MEMBERSHIP_JOINED";
|
|
2803
|
+
context: {
|
|
2804
|
+
user: {
|
|
2805
|
+
name: string;
|
|
2806
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2807
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2808
|
+
phoneNumber: string;
|
|
2809
|
+
stats: {
|
|
2810
|
+
lastVisit: Date;
|
|
2811
|
+
topupCount: number;
|
|
2812
|
+
products: Record<string, number>;
|
|
2813
|
+
visitCount: number;
|
|
2814
|
+
avgVisitFrequency: number;
|
|
2815
|
+
avgBillSize: number;
|
|
2816
|
+
feedbackCount: number;
|
|
2817
|
+
lastSeasonTierEarned?: number | undefined;
|
|
2818
|
+
lastSeasonPointEarned?: number | undefined;
|
|
2819
|
+
};
|
|
2820
|
+
segment: (string | import("mongodb").ObjectId)[];
|
|
2821
|
+
member: boolean;
|
|
2822
|
+
birthday?: Date | null | undefined;
|
|
2823
|
+
gender?: "MALE" | "FEMALE" | undefined;
|
|
2824
|
+
address?: {
|
|
2825
|
+
address: string;
|
|
2826
|
+
name: string;
|
|
2827
|
+
coordinates: number[];
|
|
2828
|
+
}[] | null | undefined;
|
|
2829
|
+
email?: string | null | undefined;
|
|
2830
|
+
externalMemberId?: string | undefined;
|
|
2831
|
+
cardNo?: string | undefined;
|
|
2832
|
+
joinAt?: Date | null | undefined;
|
|
2833
|
+
photoUrl?: string | null | undefined;
|
|
2834
|
+
expiringVouchers?: ({
|
|
2835
|
+
days7: number;
|
|
2836
|
+
days30: number;
|
|
2837
|
+
days90: number;
|
|
2838
|
+
} & Record<string, number>) | undefined;
|
|
2839
|
+
lastReadAt?: Date | null | undefined;
|
|
2840
|
+
importCollection?: Record<string, number> | undefined;
|
|
2841
|
+
};
|
|
2842
|
+
};
|
|
2843
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
2844
|
+
slackWebhookUrl?: string | undefined;
|
|
2845
|
+
emittedAt?: Date | undefined;
|
|
2846
|
+
}>, z.ZodObject<{
|
|
2847
|
+
campaignIds: z.ZodOptional<z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">>;
|
|
2848
|
+
slackWebhookUrl: z.ZodOptional<z.ZodString>;
|
|
2849
|
+
emittedAt: z.ZodDefault<z.ZodDate>;
|
|
2850
|
+
type: z.ZodLiteral<"TIER_UPGRADED">;
|
|
2851
|
+
context: z.ZodObject<{
|
|
2852
|
+
transaction: z.ZodObject<{
|
|
2853
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
2854
|
+
user: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
2855
|
+
collectible: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
2856
|
+
collection: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
2857
|
+
business: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
2858
|
+
amount: z.ZodNumber;
|
|
2859
|
+
expiryAmount: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
2860
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
2861
|
+
amount: z.ZodNumber;
|
|
2862
|
+
expiredAt: z.ZodDate;
|
|
2863
|
+
}, "strip", z.ZodTypeAny, {
|
|
2864
|
+
amount: number;
|
|
2865
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2866
|
+
expiredAt: Date;
|
|
2867
|
+
}, {
|
|
2868
|
+
amount: number;
|
|
2869
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2870
|
+
expiredAt: Date;
|
|
2871
|
+
}>>, "many">;
|
|
2872
|
+
from: z.ZodLazy<z.ZodObject<{
|
|
2873
|
+
balance: z.ZodNumber;
|
|
2874
|
+
expiryBalance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2875
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
2876
|
+
amount: z.ZodNumber;
|
|
2877
|
+
expiredAt: z.ZodDate;
|
|
2878
|
+
}, "strip", z.ZodTypeAny, {
|
|
2879
|
+
amount: number;
|
|
2880
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2881
|
+
expiredAt: Date;
|
|
2882
|
+
}, {
|
|
2883
|
+
amount: number;
|
|
2884
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2885
|
+
expiredAt: Date;
|
|
2886
|
+
}>, "many">>;
|
|
2887
|
+
}, "strip", z.ZodTypeAny, {
|
|
2888
|
+
balance: number;
|
|
2889
|
+
expiryBalance?: {
|
|
2890
|
+
amount: number;
|
|
2891
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2892
|
+
expiredAt: Date;
|
|
2893
|
+
}[] | undefined;
|
|
2894
|
+
}, {
|
|
2895
|
+
balance: number;
|
|
2896
|
+
expiryBalance?: {
|
|
2897
|
+
amount: number;
|
|
2898
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2899
|
+
expiredAt: Date;
|
|
2900
|
+
}[] | undefined;
|
|
2901
|
+
}>>;
|
|
2902
|
+
to: z.ZodLazy<z.ZodObject<{
|
|
2903
|
+
balance: z.ZodNumber;
|
|
2904
|
+
expiryBalance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2905
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
2906
|
+
amount: z.ZodNumber;
|
|
2907
|
+
expiredAt: z.ZodDate;
|
|
2908
|
+
}, "strip", z.ZodTypeAny, {
|
|
2909
|
+
amount: number;
|
|
2910
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2911
|
+
expiredAt: Date;
|
|
2912
|
+
}, {
|
|
2913
|
+
amount: number;
|
|
2914
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2915
|
+
expiredAt: Date;
|
|
2916
|
+
}>, "many">>;
|
|
2917
|
+
}, "strip", z.ZodTypeAny, {
|
|
2918
|
+
balance: number;
|
|
2919
|
+
expiryBalance?: {
|
|
2920
|
+
amount: number;
|
|
2921
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2922
|
+
expiredAt: Date;
|
|
2923
|
+
}[] | undefined;
|
|
2924
|
+
}, {
|
|
2925
|
+
balance: number;
|
|
2926
|
+
expiryBalance?: {
|
|
2927
|
+
amount: number;
|
|
2928
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2929
|
+
expiredAt: Date;
|
|
2930
|
+
}[] | undefined;
|
|
2931
|
+
}>>;
|
|
2932
|
+
source: z.ZodString;
|
|
2933
|
+
ref: z.ZodString;
|
|
2934
|
+
refunded: z.ZodOptional<z.ZodBoolean>;
|
|
2935
|
+
refundedFrom: z.ZodOptional<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>>;
|
|
2936
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2937
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2938
|
+
pf_user: z.ZodOptional<z.ZodAny>;
|
|
2939
|
+
pf_collectible: z.ZodOptional<z.ZodAny>;
|
|
2940
|
+
pf_collection: z.ZodOptional<z.ZodAny>;
|
|
2941
|
+
totalAmount: z.ZodOptional<z.ZodNumber>;
|
|
2942
|
+
}, "strip", z.ZodTypeAny, {
|
|
2943
|
+
ref: string;
|
|
2944
|
+
source: string;
|
|
2945
|
+
amount: number;
|
|
2946
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2947
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2948
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2949
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2950
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2951
|
+
expiryAmount: {
|
|
2952
|
+
amount: number;
|
|
2953
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2954
|
+
expiredAt: Date;
|
|
2955
|
+
}[];
|
|
2956
|
+
from: {
|
|
2957
|
+
balance: number;
|
|
2958
|
+
expiryBalance?: {
|
|
2959
|
+
amount: number;
|
|
2960
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2961
|
+
expiredAt: Date;
|
|
2962
|
+
}[] | undefined;
|
|
2963
|
+
};
|
|
2964
|
+
to: {
|
|
2965
|
+
balance: number;
|
|
2966
|
+
expiryBalance?: {
|
|
2967
|
+
amount: number;
|
|
2968
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2969
|
+
expiredAt: Date;
|
|
2970
|
+
}[] | undefined;
|
|
2971
|
+
};
|
|
2972
|
+
refunded?: boolean | undefined;
|
|
2973
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
2974
|
+
metadata?: Record<string, any> | null | undefined;
|
|
2975
|
+
createdAt?: Date | undefined;
|
|
2976
|
+
pf_user?: any;
|
|
2977
|
+
pf_collectible?: any;
|
|
2978
|
+
pf_collection?: any;
|
|
2979
|
+
totalAmount?: number | undefined;
|
|
2980
|
+
}, {
|
|
2981
|
+
ref: string;
|
|
2982
|
+
source: string;
|
|
2983
|
+
amount: number;
|
|
2984
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2985
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2986
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2987
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2988
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2989
|
+
expiryAmount: {
|
|
2990
|
+
amount: number;
|
|
2991
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2992
|
+
expiredAt: Date;
|
|
2993
|
+
}[];
|
|
2994
|
+
from: {
|
|
2995
|
+
balance: number;
|
|
2996
|
+
expiryBalance?: {
|
|
2997
|
+
amount: number;
|
|
2998
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
2999
|
+
expiredAt: Date;
|
|
3000
|
+
}[] | undefined;
|
|
3001
|
+
};
|
|
3002
|
+
to: {
|
|
3003
|
+
balance: number;
|
|
3004
|
+
expiryBalance?: {
|
|
3005
|
+
amount: number;
|
|
3006
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3007
|
+
expiredAt: Date;
|
|
3008
|
+
}[] | undefined;
|
|
3009
|
+
};
|
|
3010
|
+
refunded?: boolean | undefined;
|
|
3011
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
3012
|
+
metadata?: Record<string, any> | null | undefined;
|
|
3013
|
+
createdAt?: Date | undefined;
|
|
3014
|
+
pf_user?: any;
|
|
3015
|
+
pf_collectible?: any;
|
|
3016
|
+
pf_collection?: any;
|
|
3017
|
+
totalAmount?: number | undefined;
|
|
3018
|
+
}>;
|
|
3019
|
+
}, "strip", z.ZodTypeAny, {
|
|
3020
|
+
transaction: {
|
|
3021
|
+
ref: string;
|
|
3022
|
+
source: string;
|
|
3023
|
+
amount: number;
|
|
3024
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3025
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3026
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3027
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3028
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3029
|
+
expiryAmount: {
|
|
3030
|
+
amount: number;
|
|
3031
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3032
|
+
expiredAt: Date;
|
|
3033
|
+
}[];
|
|
3034
|
+
from: {
|
|
3035
|
+
balance: number;
|
|
3036
|
+
expiryBalance?: {
|
|
3037
|
+
amount: number;
|
|
3038
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3039
|
+
expiredAt: Date;
|
|
3040
|
+
}[] | undefined;
|
|
3041
|
+
};
|
|
3042
|
+
to: {
|
|
3043
|
+
balance: number;
|
|
3044
|
+
expiryBalance?: {
|
|
3045
|
+
amount: number;
|
|
3046
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3047
|
+
expiredAt: Date;
|
|
3048
|
+
}[] | undefined;
|
|
3049
|
+
};
|
|
3050
|
+
refunded?: boolean | undefined;
|
|
3051
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
3052
|
+
metadata?: Record<string, any> | null | undefined;
|
|
3053
|
+
createdAt?: Date | undefined;
|
|
3054
|
+
pf_user?: any;
|
|
3055
|
+
pf_collectible?: any;
|
|
3056
|
+
pf_collection?: any;
|
|
3057
|
+
totalAmount?: number | undefined;
|
|
3058
|
+
};
|
|
3059
|
+
}, {
|
|
3060
|
+
transaction: {
|
|
3061
|
+
ref: string;
|
|
3062
|
+
source: string;
|
|
3063
|
+
amount: number;
|
|
3064
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3065
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3066
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3067
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3068
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3069
|
+
expiryAmount: {
|
|
3070
|
+
amount: number;
|
|
3071
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3072
|
+
expiredAt: Date;
|
|
3073
|
+
}[];
|
|
3074
|
+
from: {
|
|
3075
|
+
balance: number;
|
|
3076
|
+
expiryBalance?: {
|
|
3077
|
+
amount: number;
|
|
3078
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3079
|
+
expiredAt: Date;
|
|
3080
|
+
}[] | undefined;
|
|
3081
|
+
};
|
|
3082
|
+
to: {
|
|
3083
|
+
balance: number;
|
|
3084
|
+
expiryBalance?: {
|
|
3085
|
+
amount: number;
|
|
3086
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3087
|
+
expiredAt: Date;
|
|
3088
|
+
}[] | undefined;
|
|
3089
|
+
};
|
|
3090
|
+
refunded?: boolean | undefined;
|
|
3091
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
3092
|
+
metadata?: Record<string, any> | null | undefined;
|
|
3093
|
+
createdAt?: Date | undefined;
|
|
3094
|
+
pf_user?: any;
|
|
3095
|
+
pf_collectible?: any;
|
|
3096
|
+
pf_collection?: any;
|
|
3097
|
+
totalAmount?: number | undefined;
|
|
3098
|
+
};
|
|
3099
|
+
}>;
|
|
3100
|
+
}, "strip", z.ZodTypeAny, {
|
|
3101
|
+
type: "TIER_UPGRADED";
|
|
3102
|
+
context: {
|
|
3103
|
+
transaction: {
|
|
3104
|
+
ref: string;
|
|
3105
|
+
source: string;
|
|
3106
|
+
amount: number;
|
|
3107
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3108
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3109
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3110
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3111
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3112
|
+
expiryAmount: {
|
|
3113
|
+
amount: number;
|
|
3114
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3115
|
+
expiredAt: Date;
|
|
3116
|
+
}[];
|
|
3117
|
+
from: {
|
|
3118
|
+
balance: number;
|
|
3119
|
+
expiryBalance?: {
|
|
3120
|
+
amount: number;
|
|
3121
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3122
|
+
expiredAt: Date;
|
|
3123
|
+
}[] | undefined;
|
|
3124
|
+
};
|
|
3125
|
+
to: {
|
|
3126
|
+
balance: number;
|
|
3127
|
+
expiryBalance?: {
|
|
3128
|
+
amount: number;
|
|
3129
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3130
|
+
expiredAt: Date;
|
|
3131
|
+
}[] | undefined;
|
|
3132
|
+
};
|
|
3133
|
+
refunded?: boolean | undefined;
|
|
3134
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
3135
|
+
metadata?: Record<string, any> | null | undefined;
|
|
3136
|
+
createdAt?: Date | undefined;
|
|
3137
|
+
pf_user?: any;
|
|
3138
|
+
pf_collectible?: any;
|
|
3139
|
+
pf_collection?: any;
|
|
3140
|
+
totalAmount?: number | undefined;
|
|
3141
|
+
};
|
|
3142
|
+
};
|
|
3143
|
+
emittedAt: Date;
|
|
3144
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
3145
|
+
slackWebhookUrl?: string | undefined;
|
|
3146
|
+
}, {
|
|
3147
|
+
type: "TIER_UPGRADED";
|
|
3148
|
+
context: {
|
|
3149
|
+
transaction: {
|
|
3150
|
+
ref: string;
|
|
3151
|
+
source: string;
|
|
3152
|
+
amount: number;
|
|
3153
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3154
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3155
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3156
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3157
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3158
|
+
expiryAmount: {
|
|
3159
|
+
amount: number;
|
|
3160
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3161
|
+
expiredAt: Date;
|
|
3162
|
+
}[];
|
|
3163
|
+
from: {
|
|
3164
|
+
balance: number;
|
|
3165
|
+
expiryBalance?: {
|
|
3166
|
+
amount: number;
|
|
3167
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3168
|
+
expiredAt: Date;
|
|
3169
|
+
}[] | undefined;
|
|
3170
|
+
};
|
|
3171
|
+
to: {
|
|
3172
|
+
balance: number;
|
|
3173
|
+
expiryBalance?: {
|
|
3174
|
+
amount: number;
|
|
3175
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3176
|
+
expiredAt: Date;
|
|
3177
|
+
}[] | undefined;
|
|
3178
|
+
};
|
|
3179
|
+
refunded?: boolean | undefined;
|
|
3180
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
3181
|
+
metadata?: Record<string, any> | null | undefined;
|
|
3182
|
+
createdAt?: Date | undefined;
|
|
3183
|
+
pf_user?: any;
|
|
3184
|
+
pf_collectible?: any;
|
|
3185
|
+
pf_collection?: any;
|
|
3186
|
+
totalAmount?: number | undefined;
|
|
3187
|
+
};
|
|
3188
|
+
};
|
|
3189
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
3190
|
+
slackWebhookUrl?: string | undefined;
|
|
3191
|
+
emittedAt?: Date | undefined;
|
|
3192
|
+
}>, z.ZodObject<{
|
|
3193
|
+
campaignIds: z.ZodOptional<z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">>;
|
|
3194
|
+
slackWebhookUrl: z.ZodOptional<z.ZodString>;
|
|
3195
|
+
emittedAt: z.ZodDefault<z.ZodDate>;
|
|
3196
|
+
type: z.ZodLiteral<"ISSUE_REWARD">;
|
|
3197
|
+
context: z.ZodObject<{
|
|
3198
|
+
transaction: z.ZodObject<{
|
|
3199
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
3200
|
+
user: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
3201
|
+
collectible: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
3202
|
+
collection: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
3203
|
+
business: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
3204
|
+
amount: z.ZodNumber;
|
|
3205
|
+
expiryAmount: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
3206
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
3207
|
+
amount: z.ZodNumber;
|
|
3208
|
+
expiredAt: z.ZodDate;
|
|
3209
|
+
}, "strip", z.ZodTypeAny, {
|
|
3210
|
+
amount: number;
|
|
3211
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3212
|
+
expiredAt: Date;
|
|
3213
|
+
}, {
|
|
3214
|
+
amount: number;
|
|
3215
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3216
|
+
expiredAt: Date;
|
|
3217
|
+
}>>, "many">;
|
|
3218
|
+
from: z.ZodLazy<z.ZodObject<{
|
|
3219
|
+
balance: z.ZodNumber;
|
|
3220
|
+
expiryBalance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3221
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
3222
|
+
amount: z.ZodNumber;
|
|
3223
|
+
expiredAt: z.ZodDate;
|
|
3224
|
+
}, "strip", z.ZodTypeAny, {
|
|
3225
|
+
amount: number;
|
|
3226
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3227
|
+
expiredAt: Date;
|
|
3228
|
+
}, {
|
|
3229
|
+
amount: number;
|
|
3230
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3231
|
+
expiredAt: Date;
|
|
3232
|
+
}>, "many">>;
|
|
3233
|
+
}, "strip", z.ZodTypeAny, {
|
|
3234
|
+
balance: number;
|
|
3235
|
+
expiryBalance?: {
|
|
3236
|
+
amount: number;
|
|
3237
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3238
|
+
expiredAt: Date;
|
|
3239
|
+
}[] | undefined;
|
|
3240
|
+
}, {
|
|
3241
|
+
balance: number;
|
|
3242
|
+
expiryBalance?: {
|
|
3243
|
+
amount: number;
|
|
3244
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3245
|
+
expiredAt: Date;
|
|
3246
|
+
}[] | undefined;
|
|
3247
|
+
}>>;
|
|
3248
|
+
to: z.ZodLazy<z.ZodObject<{
|
|
3249
|
+
balance: z.ZodNumber;
|
|
3250
|
+
expiryBalance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3251
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
3252
|
+
amount: z.ZodNumber;
|
|
3253
|
+
expiredAt: z.ZodDate;
|
|
3254
|
+
}, "strip", z.ZodTypeAny, {
|
|
3255
|
+
amount: number;
|
|
3256
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3257
|
+
expiredAt: Date;
|
|
3258
|
+
}, {
|
|
3259
|
+
amount: number;
|
|
3260
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3261
|
+
expiredAt: Date;
|
|
3262
|
+
}>, "many">>;
|
|
3263
|
+
}, "strip", z.ZodTypeAny, {
|
|
3264
|
+
balance: number;
|
|
3265
|
+
expiryBalance?: {
|
|
3266
|
+
amount: number;
|
|
3267
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3268
|
+
expiredAt: Date;
|
|
3269
|
+
}[] | undefined;
|
|
3270
|
+
}, {
|
|
3271
|
+
balance: number;
|
|
3272
|
+
expiryBalance?: {
|
|
3273
|
+
amount: number;
|
|
3274
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3275
|
+
expiredAt: Date;
|
|
3276
|
+
}[] | undefined;
|
|
3277
|
+
}>>;
|
|
3278
|
+
source: z.ZodString;
|
|
3279
|
+
ref: z.ZodString;
|
|
3280
|
+
refunded: z.ZodOptional<z.ZodBoolean>;
|
|
3281
|
+
refundedFrom: z.ZodOptional<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>>;
|
|
3282
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
3283
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
3284
|
+
pf_user: z.ZodOptional<z.ZodAny>;
|
|
3285
|
+
pf_collectible: z.ZodOptional<z.ZodAny>;
|
|
3286
|
+
pf_collection: z.ZodOptional<z.ZodAny>;
|
|
3287
|
+
totalAmount: z.ZodOptional<z.ZodNumber>;
|
|
3288
|
+
}, "strip", z.ZodTypeAny, {
|
|
3289
|
+
ref: string;
|
|
3290
|
+
source: string;
|
|
3291
|
+
amount: number;
|
|
3292
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3293
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3294
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3295
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3296
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3297
|
+
expiryAmount: {
|
|
3298
|
+
amount: number;
|
|
3299
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3300
|
+
expiredAt: Date;
|
|
3301
|
+
}[];
|
|
3302
|
+
from: {
|
|
3303
|
+
balance: number;
|
|
3304
|
+
expiryBalance?: {
|
|
3305
|
+
amount: number;
|
|
3306
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3307
|
+
expiredAt: Date;
|
|
3308
|
+
}[] | undefined;
|
|
3309
|
+
};
|
|
3310
|
+
to: {
|
|
3311
|
+
balance: number;
|
|
3312
|
+
expiryBalance?: {
|
|
3313
|
+
amount: number;
|
|
3314
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3315
|
+
expiredAt: Date;
|
|
3316
|
+
}[] | undefined;
|
|
3317
|
+
};
|
|
3318
|
+
refunded?: boolean | undefined;
|
|
3319
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
3320
|
+
metadata?: Record<string, any> | null | undefined;
|
|
3321
|
+
createdAt?: Date | undefined;
|
|
3322
|
+
pf_user?: any;
|
|
3323
|
+
pf_collectible?: any;
|
|
3324
|
+
pf_collection?: any;
|
|
3325
|
+
totalAmount?: number | undefined;
|
|
3326
|
+
}, {
|
|
3327
|
+
ref: string;
|
|
3328
|
+
source: string;
|
|
3329
|
+
amount: number;
|
|
3330
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3331
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3332
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3333
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3334
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3335
|
+
expiryAmount: {
|
|
3336
|
+
amount: number;
|
|
3337
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3338
|
+
expiredAt: Date;
|
|
3339
|
+
}[];
|
|
3340
|
+
from: {
|
|
3341
|
+
balance: number;
|
|
3342
|
+
expiryBalance?: {
|
|
3343
|
+
amount: number;
|
|
3344
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3345
|
+
expiredAt: Date;
|
|
3346
|
+
}[] | undefined;
|
|
3347
|
+
};
|
|
3348
|
+
to: {
|
|
3349
|
+
balance: number;
|
|
3350
|
+
expiryBalance?: {
|
|
3351
|
+
amount: number;
|
|
3352
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3353
|
+
expiredAt: Date;
|
|
3354
|
+
}[] | undefined;
|
|
3355
|
+
};
|
|
3356
|
+
refunded?: boolean | undefined;
|
|
3357
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
3358
|
+
metadata?: Record<string, any> | null | undefined;
|
|
3359
|
+
createdAt?: Date | undefined;
|
|
3360
|
+
pf_user?: any;
|
|
3361
|
+
pf_collectible?: any;
|
|
3362
|
+
pf_collection?: any;
|
|
3363
|
+
totalAmount?: number | undefined;
|
|
3364
|
+
}>;
|
|
3365
|
+
collection: z.ZodObject<{
|
|
3366
|
+
type: z.ZodEnum<["VOUCHER", "CREDIT", "POINT", "COIN", "TIER", "TITLE", "COIN", "GAME"]>;
|
|
3367
|
+
ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3368
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3369
|
+
options: z.ZodObject<{
|
|
3370
|
+
validityOption: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodObject<{
|
|
3371
|
+
validAfter: z.ZodOptional<z.ZodDate>;
|
|
3372
|
+
validBefore: z.ZodOptional<z.ZodDate>;
|
|
3373
|
+
validForDay: z.ZodOptional<z.ZodNumber>;
|
|
3374
|
+
}, "strip", z.ZodTypeAny, {
|
|
3375
|
+
validAfter?: Date | undefined;
|
|
3376
|
+
validBefore?: Date | undefined;
|
|
3377
|
+
validForDay?: number | undefined;
|
|
3378
|
+
}, {
|
|
3379
|
+
validAfter?: Date | undefined;
|
|
3380
|
+
validBefore?: Date | undefined;
|
|
3381
|
+
validForDay?: number | undefined;
|
|
3382
|
+
}>, {
|
|
3383
|
+
validAfter?: Date | undefined;
|
|
3384
|
+
validBefore?: Date | undefined;
|
|
3385
|
+
validForDay?: number | undefined;
|
|
3386
|
+
}, {
|
|
3387
|
+
validAfter?: Date | undefined;
|
|
3388
|
+
validBefore?: Date | undefined;
|
|
3389
|
+
validForDay?: number | undefined;
|
|
3390
|
+
}>>>;
|
|
3391
|
+
maxReceive: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3392
|
+
maxPerUser: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3393
|
+
enableTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3394
|
+
transferExpireAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3395
|
+
cooldown: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3396
|
+
maxUse: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3397
|
+
consumeRule: z.ZodOptional<z.ZodNullable<z.ZodType<FdoRule, z.ZodTypeDef, FdoRule>>>;
|
|
3398
|
+
}, "strip", z.ZodTypeAny, {
|
|
3399
|
+
validityOption?: {
|
|
3400
|
+
validAfter?: Date | undefined;
|
|
3401
|
+
validBefore?: Date | undefined;
|
|
3402
|
+
validForDay?: number | undefined;
|
|
3403
|
+
} | null | undefined;
|
|
3404
|
+
maxReceive?: number | null | undefined;
|
|
3405
|
+
maxPerUser?: number | null | undefined;
|
|
3406
|
+
enableTransfer?: boolean | null | undefined;
|
|
3407
|
+
transferExpireAt?: Date | null | undefined;
|
|
3408
|
+
cooldown?: number | null | undefined;
|
|
3409
|
+
maxUse?: number | null | undefined;
|
|
3410
|
+
consumeRule?: FdoRule | null | undefined;
|
|
3411
|
+
}, {
|
|
3412
|
+
validityOption?: {
|
|
3413
|
+
validAfter?: Date | undefined;
|
|
3414
|
+
validBefore?: Date | undefined;
|
|
3415
|
+
validForDay?: number | undefined;
|
|
3416
|
+
} | null | undefined;
|
|
3417
|
+
maxReceive?: number | null | undefined;
|
|
3418
|
+
maxPerUser?: number | null | undefined;
|
|
3419
|
+
enableTransfer?: boolean | null | undefined;
|
|
3420
|
+
transferExpireAt?: Date | null | undefined;
|
|
3421
|
+
cooldown?: number | null | undefined;
|
|
3422
|
+
maxUse?: number | null | undefined;
|
|
3423
|
+
consumeRule?: FdoRule | null | undefined;
|
|
3424
|
+
}>;
|
|
3425
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
3426
|
+
business: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
3427
|
+
user: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
3428
|
+
collectible: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
3429
|
+
extras: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3430
|
+
targetLocation: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">>>;
|
|
3431
|
+
effect: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodType<{
|
|
3432
|
+
priority?: number | null | undefined;
|
|
3433
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
3434
|
+
options: {
|
|
3435
|
+
excludeIds?: string[] | null | undefined;
|
|
3436
|
+
minPurchase?: {
|
|
3437
|
+
amount: number;
|
|
3438
|
+
precision: number;
|
|
3439
|
+
} | null | undefined;
|
|
3440
|
+
target: "BILL";
|
|
3441
|
+
} | {
|
|
3442
|
+
maxQuantity?: number | null | undefined;
|
|
3443
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
3444
|
+
target: "ITEM";
|
|
3445
|
+
strategy: {
|
|
3446
|
+
withAddons?: string[] | null | undefined;
|
|
3447
|
+
type: "SIMPLE";
|
|
3448
|
+
} | {
|
|
3449
|
+
type: "BUY_X_GET_Y";
|
|
3450
|
+
x: number;
|
|
3451
|
+
y: number;
|
|
3452
|
+
} | {
|
|
3453
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
3454
|
+
x: number;
|
|
3455
|
+
y: number;
|
|
3456
|
+
itemAIds: string[];
|
|
3457
|
+
} | {
|
|
3458
|
+
type: "BUY_X_GET_Y_V2";
|
|
3459
|
+
x: number;
|
|
3460
|
+
y: number;
|
|
3461
|
+
itemAIds: string[];
|
|
3462
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
3463
|
+
} | {
|
|
3464
|
+
atLeast?: boolean | null | undefined;
|
|
3465
|
+
type: "COMBO";
|
|
3466
|
+
groups: {
|
|
3467
|
+
itemIds: string[];
|
|
3468
|
+
count: number;
|
|
3469
|
+
}[];
|
|
3470
|
+
};
|
|
3471
|
+
targetIds: string[];
|
|
3472
|
+
} | {
|
|
3473
|
+
minPurchase?: {
|
|
3474
|
+
amount: number;
|
|
3475
|
+
precision: number;
|
|
3476
|
+
} | null | undefined;
|
|
3477
|
+
target: "PAYMENT";
|
|
3478
|
+
};
|
|
3479
|
+
adjustment: {
|
|
3480
|
+
inclusive?: boolean | null | undefined;
|
|
3481
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
3482
|
+
amount: {
|
|
3483
|
+
amount: number;
|
|
3484
|
+
precision: number;
|
|
3485
|
+
};
|
|
3486
|
+
};
|
|
3487
|
+
}, z.ZodTypeDef, {
|
|
3488
|
+
priority?: number | null | undefined;
|
|
3489
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
3490
|
+
options: {
|
|
3491
|
+
excludeIds?: string[] | null | undefined;
|
|
3492
|
+
minPurchase?: {
|
|
3493
|
+
amount: number;
|
|
3494
|
+
precision: number;
|
|
3495
|
+
} | null | undefined;
|
|
3496
|
+
target: "BILL";
|
|
3497
|
+
} | {
|
|
3498
|
+
maxQuantity?: number | null | undefined;
|
|
3499
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
3500
|
+
target: "ITEM";
|
|
3501
|
+
strategy: {
|
|
3502
|
+
withAddons?: string[] | null | undefined;
|
|
3503
|
+
type: "SIMPLE";
|
|
3504
|
+
} | {
|
|
3505
|
+
type: "BUY_X_GET_Y";
|
|
3506
|
+
x: number;
|
|
3507
|
+
y: number;
|
|
3508
|
+
} | {
|
|
3509
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
3510
|
+
x: number;
|
|
3511
|
+
y: number;
|
|
3512
|
+
itemAIds: string[];
|
|
3513
|
+
} | {
|
|
3514
|
+
type: "BUY_X_GET_Y_V2";
|
|
3515
|
+
x: number;
|
|
3516
|
+
y: number;
|
|
3517
|
+
itemAIds: string[];
|
|
3518
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
3519
|
+
} | {
|
|
3520
|
+
atLeast?: boolean | null | undefined;
|
|
3521
|
+
type: "COMBO";
|
|
3522
|
+
groups: {
|
|
3523
|
+
itemIds: string[];
|
|
3524
|
+
count: number;
|
|
3525
|
+
}[];
|
|
3526
|
+
};
|
|
3527
|
+
targetIds: string[];
|
|
3528
|
+
} | {
|
|
3529
|
+
minPurchase?: {
|
|
3530
|
+
amount: number;
|
|
3531
|
+
precision: number;
|
|
3532
|
+
} | null | undefined;
|
|
3533
|
+
target: "PAYMENT";
|
|
3534
|
+
};
|
|
3535
|
+
adjustment: {
|
|
3536
|
+
inclusive?: boolean | null | undefined;
|
|
3537
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
3538
|
+
amount: {
|
|
3539
|
+
amount: number;
|
|
3540
|
+
precision: number;
|
|
3541
|
+
};
|
|
3542
|
+
};
|
|
3543
|
+
}>>>>;
|
|
3544
|
+
gameType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["FORTUNE_WHEEL", "ROCK_PAPER_SCISSORS"]>>>;
|
|
3545
|
+
}, "strip", z.ZodTypeAny, {
|
|
3546
|
+
targetLocation?: (string | import("mongodb").ObjectId)[] | null | undefined;
|
|
3547
|
+
effect?: {
|
|
3548
|
+
priority?: number | null | undefined;
|
|
3549
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
3550
|
+
options: {
|
|
3551
|
+
excludeIds?: string[] | null | undefined;
|
|
3552
|
+
minPurchase?: {
|
|
3553
|
+
amount: number;
|
|
3554
|
+
precision: number;
|
|
3555
|
+
} | null | undefined;
|
|
3556
|
+
target: "BILL";
|
|
3557
|
+
} | {
|
|
3558
|
+
maxQuantity?: number | null | undefined;
|
|
3559
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
3560
|
+
target: "ITEM";
|
|
3561
|
+
strategy: {
|
|
3562
|
+
withAddons?: string[] | null | undefined;
|
|
3563
|
+
type: "SIMPLE";
|
|
3564
|
+
} | {
|
|
3565
|
+
type: "BUY_X_GET_Y";
|
|
3566
|
+
x: number;
|
|
3567
|
+
y: number;
|
|
3568
|
+
} | {
|
|
3569
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
3570
|
+
x: number;
|
|
3571
|
+
y: number;
|
|
3572
|
+
itemAIds: string[];
|
|
3573
|
+
} | {
|
|
3574
|
+
type: "BUY_X_GET_Y_V2";
|
|
3575
|
+
x: number;
|
|
3576
|
+
y: number;
|
|
3577
|
+
itemAIds: string[];
|
|
3578
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
3579
|
+
} | {
|
|
3580
|
+
atLeast?: boolean | null | undefined;
|
|
3581
|
+
type: "COMBO";
|
|
3582
|
+
groups: {
|
|
3583
|
+
itemIds: string[];
|
|
3584
|
+
count: number;
|
|
3585
|
+
}[];
|
|
3586
|
+
};
|
|
3587
|
+
targetIds: string[];
|
|
3588
|
+
} | {
|
|
3589
|
+
minPurchase?: {
|
|
3590
|
+
amount: number;
|
|
3591
|
+
precision: number;
|
|
3592
|
+
} | null | undefined;
|
|
3593
|
+
target: "PAYMENT";
|
|
3594
|
+
};
|
|
3595
|
+
adjustment: {
|
|
3596
|
+
inclusive?: boolean | null | undefined;
|
|
3597
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
3598
|
+
amount: {
|
|
3599
|
+
amount: number;
|
|
3600
|
+
precision: number;
|
|
3601
|
+
};
|
|
3602
|
+
};
|
|
3603
|
+
} | null | undefined;
|
|
3604
|
+
gameType?: "FORTUNE_WHEEL" | "ROCK_PAPER_SCISSORS" | null | undefined;
|
|
3605
|
+
}, {
|
|
3606
|
+
targetLocation?: (string | import("mongodb").ObjectId)[] | null | undefined;
|
|
3607
|
+
effect?: Record<string, any> | null | undefined;
|
|
3608
|
+
gameType?: "FORTUNE_WHEEL" | "ROCK_PAPER_SCISSORS" | null | undefined;
|
|
3609
|
+
}>>>;
|
|
3610
|
+
pf_user: z.ZodOptional<z.ZodAny>;
|
|
3611
|
+
pf_collectible: z.ZodOptional<z.ZodAny>;
|
|
3612
|
+
balance: z.ZodNumber;
|
|
3613
|
+
expiryBalance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3614
|
+
_id: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
3615
|
+
amount: z.ZodNumber;
|
|
3616
|
+
expiredAt: z.ZodDate;
|
|
3617
|
+
}, "strip", z.ZodTypeAny, {
|
|
3618
|
+
amount: number;
|
|
3619
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3620
|
+
expiredAt: Date;
|
|
3621
|
+
}, {
|
|
3622
|
+
amount: number;
|
|
3623
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3624
|
+
expiredAt: Date;
|
|
3625
|
+
}>, "many">>;
|
|
3626
|
+
}, "strip", z.ZodTypeAny, {
|
|
3627
|
+
type: "VOUCHER" | "CREDIT" | "POINT" | "COIN" | "TIER" | "TITLE" | "GAME";
|
|
3628
|
+
options: {
|
|
3629
|
+
validityOption?: {
|
|
3630
|
+
validAfter?: Date | undefined;
|
|
3631
|
+
validBefore?: Date | undefined;
|
|
3632
|
+
validForDay?: number | undefined;
|
|
3633
|
+
} | null | undefined;
|
|
3634
|
+
maxReceive?: number | null | undefined;
|
|
3635
|
+
maxPerUser?: number | null | undefined;
|
|
3636
|
+
enableTransfer?: boolean | null | undefined;
|
|
3637
|
+
transferExpireAt?: Date | null | undefined;
|
|
3638
|
+
cooldown?: number | null | undefined;
|
|
3639
|
+
maxUse?: number | null | undefined;
|
|
3640
|
+
consumeRule?: FdoRule | null | undefined;
|
|
3641
|
+
};
|
|
3642
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3643
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3644
|
+
balance: number;
|
|
3645
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3646
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3647
|
+
ref?: string | null | undefined;
|
|
3648
|
+
code?: string | undefined;
|
|
3649
|
+
extras?: {
|
|
3650
|
+
targetLocation?: (string | import("mongodb").ObjectId)[] | null | undefined;
|
|
3651
|
+
effect?: {
|
|
3652
|
+
priority?: number | null | undefined;
|
|
3653
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
3654
|
+
options: {
|
|
3655
|
+
excludeIds?: string[] | null | undefined;
|
|
3656
|
+
minPurchase?: {
|
|
3657
|
+
amount: number;
|
|
3658
|
+
precision: number;
|
|
3659
|
+
} | null | undefined;
|
|
3660
|
+
target: "BILL";
|
|
3661
|
+
} | {
|
|
3662
|
+
maxQuantity?: number | null | undefined;
|
|
3663
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
3664
|
+
target: "ITEM";
|
|
3665
|
+
strategy: {
|
|
3666
|
+
withAddons?: string[] | null | undefined;
|
|
3667
|
+
type: "SIMPLE";
|
|
3668
|
+
} | {
|
|
3669
|
+
type: "BUY_X_GET_Y";
|
|
3670
|
+
x: number;
|
|
3671
|
+
y: number;
|
|
3672
|
+
} | {
|
|
3673
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
3674
|
+
x: number;
|
|
3675
|
+
y: number;
|
|
3676
|
+
itemAIds: string[];
|
|
3677
|
+
} | {
|
|
3678
|
+
type: "BUY_X_GET_Y_V2";
|
|
3679
|
+
x: number;
|
|
3680
|
+
y: number;
|
|
3681
|
+
itemAIds: string[];
|
|
3682
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
3683
|
+
} | {
|
|
3684
|
+
atLeast?: boolean | null | undefined;
|
|
3685
|
+
type: "COMBO";
|
|
3686
|
+
groups: {
|
|
3687
|
+
itemIds: string[];
|
|
3688
|
+
count: number;
|
|
3689
|
+
}[];
|
|
3690
|
+
};
|
|
3691
|
+
targetIds: string[];
|
|
3692
|
+
} | {
|
|
3693
|
+
minPurchase?: {
|
|
3694
|
+
amount: number;
|
|
3695
|
+
precision: number;
|
|
3696
|
+
} | null | undefined;
|
|
3697
|
+
target: "PAYMENT";
|
|
3698
|
+
};
|
|
3699
|
+
adjustment: {
|
|
3700
|
+
inclusive?: boolean | null | undefined;
|
|
3701
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
3702
|
+
amount: {
|
|
3703
|
+
amount: number;
|
|
3704
|
+
precision: number;
|
|
3705
|
+
};
|
|
3706
|
+
};
|
|
3707
|
+
} | null | undefined;
|
|
3708
|
+
gameType?: "FORTUNE_WHEEL" | "ROCK_PAPER_SCISSORS" | null | undefined;
|
|
3709
|
+
} | null | undefined;
|
|
3710
|
+
pf_user?: any;
|
|
3711
|
+
pf_collectible?: any;
|
|
3712
|
+
expiryBalance?: {
|
|
3713
|
+
amount: number;
|
|
3714
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3715
|
+
expiredAt: Date;
|
|
3716
|
+
}[] | undefined;
|
|
3717
|
+
}, {
|
|
3718
|
+
type: "VOUCHER" | "CREDIT" | "POINT" | "COIN" | "TIER" | "TITLE" | "GAME";
|
|
3719
|
+
options: {
|
|
3720
|
+
validityOption?: {
|
|
3721
|
+
validAfter?: Date | undefined;
|
|
3722
|
+
validBefore?: Date | undefined;
|
|
3723
|
+
validForDay?: number | undefined;
|
|
3724
|
+
} | null | undefined;
|
|
3725
|
+
maxReceive?: number | null | undefined;
|
|
3726
|
+
maxPerUser?: number | null | undefined;
|
|
3727
|
+
enableTransfer?: boolean | null | undefined;
|
|
3728
|
+
transferExpireAt?: Date | null | undefined;
|
|
3729
|
+
cooldown?: number | null | undefined;
|
|
3730
|
+
maxUse?: number | null | undefined;
|
|
3731
|
+
consumeRule?: FdoRule | null | undefined;
|
|
3732
|
+
};
|
|
3733
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3734
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3735
|
+
balance: number;
|
|
3736
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3737
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3738
|
+
ref?: string | null | undefined;
|
|
3739
|
+
code?: string | undefined;
|
|
3740
|
+
extras?: {
|
|
3741
|
+
targetLocation?: (string | import("mongodb").ObjectId)[] | null | undefined;
|
|
3742
|
+
effect?: Record<string, any> | null | undefined;
|
|
3743
|
+
gameType?: "FORTUNE_WHEEL" | "ROCK_PAPER_SCISSORS" | null | undefined;
|
|
3744
|
+
} | null | undefined;
|
|
3745
|
+
pf_user?: any;
|
|
3746
|
+
pf_collectible?: any;
|
|
3747
|
+
expiryBalance?: {
|
|
3748
|
+
amount: number;
|
|
3749
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3750
|
+
expiredAt: Date;
|
|
3751
|
+
}[] | undefined;
|
|
3752
|
+
}>;
|
|
3753
|
+
}, "strip", z.ZodTypeAny, {
|
|
3754
|
+
collection: {
|
|
3755
|
+
type: "VOUCHER" | "CREDIT" | "POINT" | "COIN" | "TIER" | "TITLE" | "GAME";
|
|
3756
|
+
options: {
|
|
3757
|
+
validityOption?: {
|
|
3758
|
+
validAfter?: Date | undefined;
|
|
3759
|
+
validBefore?: Date | undefined;
|
|
3760
|
+
validForDay?: number | undefined;
|
|
3761
|
+
} | null | undefined;
|
|
3762
|
+
maxReceive?: number | null | undefined;
|
|
3763
|
+
maxPerUser?: number | null | undefined;
|
|
3764
|
+
enableTransfer?: boolean | null | undefined;
|
|
3765
|
+
transferExpireAt?: Date | null | undefined;
|
|
3766
|
+
cooldown?: number | null | undefined;
|
|
3767
|
+
maxUse?: number | null | undefined;
|
|
3768
|
+
consumeRule?: FdoRule | null | undefined;
|
|
3769
|
+
};
|
|
3770
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3771
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3772
|
+
balance: number;
|
|
3773
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3774
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3775
|
+
ref?: string | null | undefined;
|
|
3776
|
+
code?: string | undefined;
|
|
3777
|
+
extras?: {
|
|
3778
|
+
targetLocation?: (string | import("mongodb").ObjectId)[] | null | undefined;
|
|
3779
|
+
effect?: {
|
|
3780
|
+
priority?: number | null | undefined;
|
|
3781
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
3782
|
+
options: {
|
|
3783
|
+
excludeIds?: string[] | null | undefined;
|
|
3784
|
+
minPurchase?: {
|
|
3785
|
+
amount: number;
|
|
3786
|
+
precision: number;
|
|
3787
|
+
} | null | undefined;
|
|
3788
|
+
target: "BILL";
|
|
3789
|
+
} | {
|
|
3790
|
+
maxQuantity?: number | null | undefined;
|
|
3791
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
3792
|
+
target: "ITEM";
|
|
3793
|
+
strategy: {
|
|
3794
|
+
withAddons?: string[] | null | undefined;
|
|
3795
|
+
type: "SIMPLE";
|
|
3796
|
+
} | {
|
|
3797
|
+
type: "BUY_X_GET_Y";
|
|
3798
|
+
x: number;
|
|
3799
|
+
y: number;
|
|
3800
|
+
} | {
|
|
3801
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
3802
|
+
x: number;
|
|
3803
|
+
y: number;
|
|
3804
|
+
itemAIds: string[];
|
|
3805
|
+
} | {
|
|
3806
|
+
type: "BUY_X_GET_Y_V2";
|
|
3807
|
+
x: number;
|
|
3808
|
+
y: number;
|
|
3809
|
+
itemAIds: string[];
|
|
3810
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
3811
|
+
} | {
|
|
3812
|
+
atLeast?: boolean | null | undefined;
|
|
3813
|
+
type: "COMBO";
|
|
3814
|
+
groups: {
|
|
3815
|
+
itemIds: string[];
|
|
3816
|
+
count: number;
|
|
3817
|
+
}[];
|
|
3818
|
+
};
|
|
3819
|
+
targetIds: string[];
|
|
3820
|
+
} | {
|
|
3821
|
+
minPurchase?: {
|
|
3822
|
+
amount: number;
|
|
3823
|
+
precision: number;
|
|
3824
|
+
} | null | undefined;
|
|
3825
|
+
target: "PAYMENT";
|
|
3826
|
+
};
|
|
3827
|
+
adjustment: {
|
|
3828
|
+
inclusive?: boolean | null | undefined;
|
|
3829
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
3830
|
+
amount: {
|
|
3831
|
+
amount: number;
|
|
3832
|
+
precision: number;
|
|
3833
|
+
};
|
|
3834
|
+
};
|
|
3835
|
+
} | null | undefined;
|
|
3836
|
+
gameType?: "FORTUNE_WHEEL" | "ROCK_PAPER_SCISSORS" | null | undefined;
|
|
3837
|
+
} | null | undefined;
|
|
3838
|
+
pf_user?: any;
|
|
3839
|
+
pf_collectible?: any;
|
|
3840
|
+
expiryBalance?: {
|
|
3841
|
+
amount: number;
|
|
3842
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3843
|
+
expiredAt: Date;
|
|
3844
|
+
}[] | undefined;
|
|
3845
|
+
};
|
|
3846
|
+
transaction: {
|
|
3847
|
+
ref: string;
|
|
3848
|
+
source: string;
|
|
3849
|
+
amount: number;
|
|
3850
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3851
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3852
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3853
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3854
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3855
|
+
expiryAmount: {
|
|
3856
|
+
amount: number;
|
|
3857
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3858
|
+
expiredAt: Date;
|
|
3859
|
+
}[];
|
|
3860
|
+
from: {
|
|
3861
|
+
balance: number;
|
|
3862
|
+
expiryBalance?: {
|
|
3863
|
+
amount: number;
|
|
3864
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3865
|
+
expiredAt: Date;
|
|
3866
|
+
}[] | undefined;
|
|
3867
|
+
};
|
|
3868
|
+
to: {
|
|
3869
|
+
balance: number;
|
|
3870
|
+
expiryBalance?: {
|
|
3871
|
+
amount: number;
|
|
3872
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3873
|
+
expiredAt: Date;
|
|
3874
|
+
}[] | undefined;
|
|
3875
|
+
};
|
|
3876
|
+
refunded?: boolean | undefined;
|
|
3877
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
3878
|
+
metadata?: Record<string, any> | null | undefined;
|
|
3879
|
+
createdAt?: Date | undefined;
|
|
3880
|
+
pf_user?: any;
|
|
3881
|
+
pf_collectible?: any;
|
|
3882
|
+
pf_collection?: any;
|
|
3883
|
+
totalAmount?: number | undefined;
|
|
3884
|
+
};
|
|
3885
|
+
}, {
|
|
3886
|
+
collection: {
|
|
3887
|
+
type: "VOUCHER" | "CREDIT" | "POINT" | "COIN" | "TIER" | "TITLE" | "GAME";
|
|
3888
|
+
options: {
|
|
3889
|
+
validityOption?: {
|
|
3890
|
+
validAfter?: Date | undefined;
|
|
3891
|
+
validBefore?: Date | undefined;
|
|
3892
|
+
validForDay?: number | undefined;
|
|
3893
|
+
} | null | undefined;
|
|
3894
|
+
maxReceive?: number | null | undefined;
|
|
3895
|
+
maxPerUser?: number | null | undefined;
|
|
3896
|
+
enableTransfer?: boolean | null | undefined;
|
|
3897
|
+
transferExpireAt?: Date | null | undefined;
|
|
3898
|
+
cooldown?: number | null | undefined;
|
|
3899
|
+
maxUse?: number | null | undefined;
|
|
3900
|
+
consumeRule?: FdoRule | null | undefined;
|
|
3901
|
+
};
|
|
3902
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3903
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3904
|
+
balance: number;
|
|
3905
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3906
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3907
|
+
ref?: string | null | undefined;
|
|
3908
|
+
code?: string | undefined;
|
|
3909
|
+
extras?: {
|
|
3910
|
+
targetLocation?: (string | import("mongodb").ObjectId)[] | null | undefined;
|
|
3911
|
+
effect?: Record<string, any> | null | undefined;
|
|
3912
|
+
gameType?: "FORTUNE_WHEEL" | "ROCK_PAPER_SCISSORS" | null | undefined;
|
|
3913
|
+
} | null | undefined;
|
|
3914
|
+
pf_user?: any;
|
|
3915
|
+
pf_collectible?: any;
|
|
3916
|
+
expiryBalance?: {
|
|
3917
|
+
amount: number;
|
|
3918
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3919
|
+
expiredAt: Date;
|
|
3920
|
+
}[] | undefined;
|
|
3921
|
+
};
|
|
3922
|
+
transaction: {
|
|
3923
|
+
ref: string;
|
|
3924
|
+
source: string;
|
|
3925
|
+
amount: number;
|
|
3926
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3927
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3928
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3929
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3930
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3931
|
+
expiryAmount: {
|
|
3932
|
+
amount: number;
|
|
3933
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3934
|
+
expiredAt: Date;
|
|
3935
|
+
}[];
|
|
3936
|
+
from: {
|
|
3937
|
+
balance: number;
|
|
3938
|
+
expiryBalance?: {
|
|
3939
|
+
amount: number;
|
|
3940
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3941
|
+
expiredAt: Date;
|
|
3942
|
+
}[] | undefined;
|
|
3943
|
+
};
|
|
3944
|
+
to: {
|
|
3945
|
+
balance: number;
|
|
3946
|
+
expiryBalance?: {
|
|
3947
|
+
amount: number;
|
|
3948
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3949
|
+
expiredAt: Date;
|
|
3950
|
+
}[] | undefined;
|
|
3951
|
+
};
|
|
3952
|
+
refunded?: boolean | undefined;
|
|
3953
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
3954
|
+
metadata?: Record<string, any> | null | undefined;
|
|
3955
|
+
createdAt?: Date | undefined;
|
|
3956
|
+
pf_user?: any;
|
|
3957
|
+
pf_collectible?: any;
|
|
3958
|
+
pf_collection?: any;
|
|
3959
|
+
totalAmount?: number | undefined;
|
|
3960
|
+
};
|
|
3961
|
+
}>;
|
|
3962
|
+
}, "strip", z.ZodTypeAny, {
|
|
3963
|
+
type: "ISSUE_REWARD";
|
|
3964
|
+
context: {
|
|
3965
|
+
collection: {
|
|
3966
|
+
type: "VOUCHER" | "CREDIT" | "POINT" | "COIN" | "TIER" | "TITLE" | "GAME";
|
|
3967
|
+
options: {
|
|
3968
|
+
validityOption?: {
|
|
3969
|
+
validAfter?: Date | undefined;
|
|
3970
|
+
validBefore?: Date | undefined;
|
|
3971
|
+
validForDay?: number | undefined;
|
|
3972
|
+
} | null | undefined;
|
|
3973
|
+
maxReceive?: number | null | undefined;
|
|
3974
|
+
maxPerUser?: number | null | undefined;
|
|
3975
|
+
enableTransfer?: boolean | null | undefined;
|
|
3976
|
+
transferExpireAt?: Date | null | undefined;
|
|
3977
|
+
cooldown?: number | null | undefined;
|
|
3978
|
+
maxUse?: number | null | undefined;
|
|
3979
|
+
consumeRule?: FdoRule | null | undefined;
|
|
3980
|
+
};
|
|
3981
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3982
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3983
|
+
balance: number;
|
|
3984
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3985
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
3986
|
+
ref?: string | null | undefined;
|
|
3987
|
+
code?: string | undefined;
|
|
3988
|
+
extras?: {
|
|
3989
|
+
targetLocation?: (string | import("mongodb").ObjectId)[] | null | undefined;
|
|
3990
|
+
effect?: {
|
|
3991
|
+
priority?: number | null | undefined;
|
|
3992
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
3993
|
+
options: {
|
|
3994
|
+
excludeIds?: string[] | null | undefined;
|
|
3995
|
+
minPurchase?: {
|
|
3996
|
+
amount: number;
|
|
3997
|
+
precision: number;
|
|
3998
|
+
} | null | undefined;
|
|
3999
|
+
target: "BILL";
|
|
4000
|
+
} | {
|
|
4001
|
+
maxQuantity?: number | null | undefined;
|
|
4002
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
4003
|
+
target: "ITEM";
|
|
4004
|
+
strategy: {
|
|
4005
|
+
withAddons?: string[] | null | undefined;
|
|
4006
|
+
type: "SIMPLE";
|
|
4007
|
+
} | {
|
|
4008
|
+
type: "BUY_X_GET_Y";
|
|
4009
|
+
x: number;
|
|
4010
|
+
y: number;
|
|
4011
|
+
} | {
|
|
4012
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
4013
|
+
x: number;
|
|
4014
|
+
y: number;
|
|
4015
|
+
itemAIds: string[];
|
|
4016
|
+
} | {
|
|
4017
|
+
type: "BUY_X_GET_Y_V2";
|
|
4018
|
+
x: number;
|
|
4019
|
+
y: number;
|
|
4020
|
+
itemAIds: string[];
|
|
4021
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
4022
|
+
} | {
|
|
4023
|
+
atLeast?: boolean | null | undefined;
|
|
4024
|
+
type: "COMBO";
|
|
4025
|
+
groups: {
|
|
4026
|
+
itemIds: string[];
|
|
4027
|
+
count: number;
|
|
4028
|
+
}[];
|
|
4029
|
+
};
|
|
4030
|
+
targetIds: string[];
|
|
4031
|
+
} | {
|
|
4032
|
+
minPurchase?: {
|
|
4033
|
+
amount: number;
|
|
4034
|
+
precision: number;
|
|
4035
|
+
} | null | undefined;
|
|
4036
|
+
target: "PAYMENT";
|
|
4037
|
+
};
|
|
4038
|
+
adjustment: {
|
|
4039
|
+
inclusive?: boolean | null | undefined;
|
|
4040
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
4041
|
+
amount: {
|
|
4042
|
+
amount: number;
|
|
4043
|
+
precision: number;
|
|
4044
|
+
};
|
|
4045
|
+
};
|
|
4046
|
+
} | null | undefined;
|
|
4047
|
+
gameType?: "FORTUNE_WHEEL" | "ROCK_PAPER_SCISSORS" | null | undefined;
|
|
4048
|
+
} | null | undefined;
|
|
4049
|
+
pf_user?: any;
|
|
4050
|
+
pf_collectible?: any;
|
|
4051
|
+
expiryBalance?: {
|
|
4052
|
+
amount: number;
|
|
4053
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4054
|
+
expiredAt: Date;
|
|
4055
|
+
}[] | undefined;
|
|
4056
|
+
};
|
|
4057
|
+
transaction: {
|
|
4058
|
+
ref: string;
|
|
4059
|
+
source: string;
|
|
4060
|
+
amount: number;
|
|
4061
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4062
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4063
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4064
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4065
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4066
|
+
expiryAmount: {
|
|
4067
|
+
amount: number;
|
|
4068
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4069
|
+
expiredAt: Date;
|
|
4070
|
+
}[];
|
|
4071
|
+
from: {
|
|
4072
|
+
balance: number;
|
|
4073
|
+
expiryBalance?: {
|
|
4074
|
+
amount: number;
|
|
4075
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4076
|
+
expiredAt: Date;
|
|
4077
|
+
}[] | undefined;
|
|
4078
|
+
};
|
|
4079
|
+
to: {
|
|
4080
|
+
balance: number;
|
|
4081
|
+
expiryBalance?: {
|
|
4082
|
+
amount: number;
|
|
4083
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4084
|
+
expiredAt: Date;
|
|
4085
|
+
}[] | undefined;
|
|
4086
|
+
};
|
|
4087
|
+
refunded?: boolean | undefined;
|
|
4088
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
4089
|
+
metadata?: Record<string, any> | null | undefined;
|
|
4090
|
+
createdAt?: Date | undefined;
|
|
4091
|
+
pf_user?: any;
|
|
4092
|
+
pf_collectible?: any;
|
|
4093
|
+
pf_collection?: any;
|
|
4094
|
+
totalAmount?: number | undefined;
|
|
4095
|
+
};
|
|
4096
|
+
};
|
|
4097
|
+
emittedAt: Date;
|
|
4098
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
4099
|
+
slackWebhookUrl?: string | undefined;
|
|
4100
|
+
}, {
|
|
4101
|
+
type: "ISSUE_REWARD";
|
|
4102
|
+
context: {
|
|
4103
|
+
collection: {
|
|
4104
|
+
type: "VOUCHER" | "CREDIT" | "POINT" | "COIN" | "TIER" | "TITLE" | "GAME";
|
|
4105
|
+
options: {
|
|
4106
|
+
validityOption?: {
|
|
4107
|
+
validAfter?: Date | undefined;
|
|
4108
|
+
validBefore?: Date | undefined;
|
|
4109
|
+
validForDay?: number | undefined;
|
|
4110
|
+
} | null | undefined;
|
|
4111
|
+
maxReceive?: number | null | undefined;
|
|
4112
|
+
maxPerUser?: number | null | undefined;
|
|
4113
|
+
enableTransfer?: boolean | null | undefined;
|
|
4114
|
+
transferExpireAt?: Date | null | undefined;
|
|
4115
|
+
cooldown?: number | null | undefined;
|
|
4116
|
+
maxUse?: number | null | undefined;
|
|
4117
|
+
consumeRule?: FdoRule | null | undefined;
|
|
4118
|
+
};
|
|
4119
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4120
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4121
|
+
balance: number;
|
|
4122
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4123
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4124
|
+
ref?: string | null | undefined;
|
|
4125
|
+
code?: string | undefined;
|
|
4126
|
+
extras?: {
|
|
4127
|
+
targetLocation?: (string | import("mongodb").ObjectId)[] | null | undefined;
|
|
4128
|
+
effect?: Record<string, any> | null | undefined;
|
|
4129
|
+
gameType?: "FORTUNE_WHEEL" | "ROCK_PAPER_SCISSORS" | null | undefined;
|
|
4130
|
+
} | null | undefined;
|
|
4131
|
+
pf_user?: any;
|
|
4132
|
+
pf_collectible?: any;
|
|
4133
|
+
expiryBalance?: {
|
|
4134
|
+
amount: number;
|
|
4135
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4136
|
+
expiredAt: Date;
|
|
4137
|
+
}[] | undefined;
|
|
4138
|
+
};
|
|
4139
|
+
transaction: {
|
|
4140
|
+
ref: string;
|
|
4141
|
+
source: string;
|
|
4142
|
+
amount: number;
|
|
4143
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4144
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4145
|
+
user: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4146
|
+
collectible: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4147
|
+
collection: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4148
|
+
expiryAmount: {
|
|
4149
|
+
amount: number;
|
|
4150
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4151
|
+
expiredAt: Date;
|
|
4152
|
+
}[];
|
|
4153
|
+
from: {
|
|
4154
|
+
balance: number;
|
|
4155
|
+
expiryBalance?: {
|
|
4156
|
+
amount: number;
|
|
4157
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4158
|
+
expiredAt: Date;
|
|
4159
|
+
}[] | undefined;
|
|
4160
|
+
};
|
|
4161
|
+
to: {
|
|
4162
|
+
balance: number;
|
|
4163
|
+
expiryBalance?: {
|
|
4164
|
+
amount: number;
|
|
4165
|
+
_id: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4166
|
+
expiredAt: Date;
|
|
4167
|
+
}[] | undefined;
|
|
4168
|
+
};
|
|
4169
|
+
refunded?: boolean | undefined;
|
|
4170
|
+
refundedFrom?: string | import("mongodb").ObjectId | undefined;
|
|
4171
|
+
metadata?: Record<string, any> | null | undefined;
|
|
4172
|
+
createdAt?: Date | undefined;
|
|
4173
|
+
pf_user?: any;
|
|
4174
|
+
pf_collectible?: any;
|
|
4175
|
+
pf_collection?: any;
|
|
4176
|
+
totalAmount?: number | undefined;
|
|
4177
|
+
};
|
|
4178
|
+
};
|
|
4179
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
4180
|
+
slackWebhookUrl?: string | undefined;
|
|
4181
|
+
emittedAt?: Date | undefined;
|
|
4182
|
+
}>, z.ZodObject<{
|
|
4183
|
+
campaignIds: z.ZodOptional<z.ZodArray<z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>, "many">>;
|
|
4184
|
+
slackWebhookUrl: z.ZodOptional<z.ZodString>;
|
|
4185
|
+
emittedAt: z.ZodDefault<z.ZodDate>;
|
|
4186
|
+
type: z.ZodLiteral<"PAGINATE_SCHEDULE">;
|
|
4187
|
+
context: z.ZodObject<{
|
|
4188
|
+
triggeredAt: z.ZodDate;
|
|
4189
|
+
business: z.ZodType<string | import("mongodb").ObjectId, z.ZodTypeDef, string | import("mongodb").ObjectId>;
|
|
4190
|
+
skip: z.ZodNumber;
|
|
4191
|
+
limit: z.ZodNumber;
|
|
4192
|
+
}, "strip", z.ZodTypeAny, {
|
|
4193
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4194
|
+
triggeredAt: Date;
|
|
4195
|
+
skip: number;
|
|
4196
|
+
limit: number;
|
|
4197
|
+
}, {
|
|
4198
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4199
|
+
triggeredAt: Date;
|
|
4200
|
+
skip: number;
|
|
4201
|
+
limit: number;
|
|
4202
|
+
}>;
|
|
4203
|
+
}, "strip", z.ZodTypeAny, {
|
|
4204
|
+
type: "PAGINATE_SCHEDULE";
|
|
4205
|
+
context: {
|
|
4206
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4207
|
+
triggeredAt: Date;
|
|
4208
|
+
skip: number;
|
|
4209
|
+
limit: number;
|
|
4210
|
+
};
|
|
4211
|
+
emittedAt: Date;
|
|
4212
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
4213
|
+
slackWebhookUrl?: string | undefined;
|
|
4214
|
+
}, {
|
|
4215
|
+
type: "PAGINATE_SCHEDULE";
|
|
4216
|
+
context: {
|
|
4217
|
+
business: (string | import("mongodb").ObjectId) & (string | import("mongodb").ObjectId | undefined);
|
|
4218
|
+
triggeredAt: Date;
|
|
4219
|
+
skip: number;
|
|
4220
|
+
limit: number;
|
|
4221
|
+
};
|
|
4222
|
+
campaignIds?: (string | import("mongodb").ObjectId)[] | undefined;
|
|
4223
|
+
slackWebhookUrl?: string | undefined;
|
|
4224
|
+
emittedAt?: Date | undefined;
|
|
4225
|
+
}>]>;
|
|
4226
|
+
export type FdoEvent = z.infer<typeof FdoEvent>;
|
|
4227
|
+
export type FdoBillCompletedEvent = z.infer<typeof FdoBillCompletedEvent>;
|
|
4228
|
+
export type FdoEnteredSegmentEvent = z.infer<typeof FdoEnteredSegmentEvent>;
|
|
4229
|
+
export type FdoScheduleEvent = z.infer<typeof FdoScheduleEvent>;
|
|
4230
|
+
export type FdoFeedbackEvent = z.infer<typeof FdoFeedbackEvent>;
|
|
4231
|
+
export type FdoMembershipJoinedEvent = z.infer<typeof FdoMembershipJoinedEvent>;
|
|
4232
|
+
export type FdoTierUpgradedEvent = z.infer<typeof FdoTierUpgradedEvent>;
|
|
4233
|
+
export type FdoMakingOrderEvent = z.infer<typeof FdoMakingOrderEvent>;
|
|
4234
|
+
export type FdoIssueRewardEvent = z.infer<typeof FdoIssueRewardEvent>;
|
|
4235
|
+
export type FdoMemberRewardEvent = z.infer<typeof FdoMemberRewardEvent>;
|
|
4236
|
+
export type F_EVENT_TYPE = z.infer<typeof F_EVENT_TYPE>;
|
|
4237
|
+
export type F_CAMPAIGN_TRIGGER_TYPE = z.infer<typeof F_CAMPAIGN_TRIGGER_TYPE>;
|
|
4238
|
+
export type FdtoEvent = z.infer<typeof FdtoEvent>;
|
|
4239
|
+
export type FdtoScheduleEvent = z.infer<typeof FdtoScheduleEvent>;
|
|
4240
|
+
export type FdtoBillCompletedEvent = z.infer<typeof FdtoBillCompletedEvent>;
|
|
4241
|
+
export type FdtoTierUpgradedEvent = z.infer<typeof FdtoTierUpgradedEvent>;
|
|
4242
|
+
export type FdtoFeedbackEvent = z.infer<typeof FdtoFeedbackEvent>;
|
|
4243
|
+
export type FdtoMembershipJoinedEvent = z.infer<typeof FdtoMembershipJoinedEvent>;
|
|
4244
|
+
export type FdtoIssueRewardEvent = z.infer<typeof FdtoIssueRewardEvent>;
|
|
4245
|
+
export type FdtoPaginateScheduleEvent = z.infer<typeof FdtoPaginateScheduleEvent>;
|
|
4246
|
+
export type FdoEventLog = z.output<typeof FdoEventLog>;
|