@lyxa.ai/marketing 1.0.51 → 1.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/index.d.ts +323 -77
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js +16 -3
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts +1117 -285
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.js +16 -2
- package/dist/lib/modules/coupon/validations/all-coupons.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/index.d.ts +0 -1
- package/dist/lib/modules/coupon/validations/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/index.js +0 -1
- package/dist/lib/modules/coupon/validations/index.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +32 -32
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js +9 -9
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +0 -1
- package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js +2 -5
- package/dist/lib/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts +1 -0
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.js +2 -0
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +19 -6
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js +3 -2
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +3 -9
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js +4 -7
- package/dist/lib/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts +1 -0
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.js +15 -0
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +96 -50
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.js +23 -0
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts +18 -0
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -0
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js +78 -0
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js.map +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +12 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js +68 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +22 -18
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +2 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +88 -83
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js +3 -2
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +10 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js +68 -22
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js.map +1 -1
- package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
- package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
- package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
- package/dist/lib/modules/tournament/config/config.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.builder.js +4 -0
- package/dist/lib/modules/tournament/config/config.builder.js.map +1 -1
- package/dist/lib/modules/tournament/config/config.repository.d.ts +8 -2
- package/dist/lib/modules/tournament/config/config.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.repository.js +30 -1
- package/dist/lib/modules/tournament/config/config.repository.js.map +1 -1
- package/dist/lib/modules/tournament/config/config.router.d.ts +102 -12
- package/dist/lib/modules/tournament/config/config.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.types.d.ts +15 -0
- package/dist/lib/modules/tournament/config/config.types.d.ts.map +1 -0
- package/dist/lib/modules/tournament/config/config.types.js +3 -0
- package/dist/lib/modules/tournament/config/config.types.js.map +1 -0
- package/dist/lib/modules/tournament/config/config.validation.d.ts +431 -52
- package/dist/lib/modules/tournament/config/config.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/config/config.validation.js +20 -6
- package/dist/lib/modules/tournament/config/config.validation.js.map +1 -1
- package/dist/lib/modules/tournament/integration/integration.factory.d.ts +4 -0
- package/dist/lib/modules/tournament/integration/integration.factory.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/integration.factory.js +18 -0
- package/dist/lib/modules/tournament/integration/integration.factory.js.map +1 -0
- package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.d.ts +36 -0
- package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.js +3 -0
- package/dist/lib/modules/tournament/integration/interfaces/ITournamentService.js.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.d.ts +14 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.js +92 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.provider.js.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.d.ts +51 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.js +3 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/api-football.types.js.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/index.d.ts +3 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/index.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/index.js +19 -0
- package/dist/lib/modules/tournament/integration/providers/api-football/index.js.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/index.d.ts +3 -0
- package/dist/lib/modules/tournament/integration/providers/index.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/index.js +19 -0
- package/dist/lib/modules/tournament/integration/providers/index.js.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/mock.provider.d.ts +7 -0
- package/dist/lib/modules/tournament/integration/providers/mock.provider.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/providers/mock.provider.js +22 -0
- package/dist/lib/modules/tournament/integration/providers/mock.provider.js.map +1 -0
- package/dist/lib/modules/tournament/integration/tournamentService.d.ts +9 -0
- package/dist/lib/modules/tournament/integration/tournamentService.d.ts.map +1 -0
- package/dist/lib/modules/tournament/integration/tournamentService.js +20 -0
- package/dist/lib/modules/tournament/integration/tournamentService.js.map +1 -0
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js +50 -11
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts +7 -3
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.event.js.map +1 -1
- package/dist/lib/modules/tournament/match/events/match-evaluation.orchestrator.d.ts +14 -0
- package/dist/lib/modules/tournament/match/events/match-evaluation.orchestrator.d.ts.map +1 -0
- package/dist/lib/modules/tournament/{notification/jobs/notification.worker.js → match/events/match-evaluation.orchestrator.js} +31 -27
- package/dist/lib/modules/tournament/match/events/match-evaluation.orchestrator.js.map +1 -0
- package/dist/lib/modules/tournament/match/match.builder.d.ts +13 -34
- package/dist/lib/modules/tournament/match/match.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.builder.js +31 -10
- package/dist/lib/modules/tournament/match/match.builder.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.repository.d.ts +1 -1
- package/dist/lib/modules/tournament/match/match.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.repository.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.router.d.ts +40 -4
- package/dist/lib/modules/tournament/match/match.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.service.d.ts +3 -0
- package/dist/lib/modules/tournament/match/match.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/match/match.service.js +15 -12
- package/dist/lib/modules/tournament/match/match.service.js.map +1 -1
- package/dist/lib/modules/tournament/match/match.types.d.ts +51 -0
- package/dist/lib/modules/tournament/match/match.types.d.ts.map +1 -0
- package/dist/lib/modules/tournament/match/match.types.js +3 -0
- package/dist/lib/modules/tournament/match/match.types.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts +2 -1
- package/dist/lib/modules/tournament/notification/notification-template.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/notification-template.repository.js +2 -1
- package/dist/lib/modules/tournament/notification/notification-template.repository.js.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.builder.d.ts +30 -0
- package/dist/lib/modules/tournament/notification/notification.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.builder.js +35 -0
- package/dist/lib/modules/tournament/notification/notification.builder.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.config.d.ts +10 -9
- package/dist/lib/modules/tournament/notification/notification.config.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.config.js +0 -12
- package/dist/lib/modules/tournament/notification/notification.config.js.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.service.d.ts +5 -3
- package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.service.js +23 -15
- package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.builder.d.ts +12 -0
- package/dist/lib/modules/tournament/participant/participant.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.builder.js +17 -0
- package/dist/lib/modules/tournament/participant/participant.builder.js.map +1 -0
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts +8 -7
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.repository.js +12 -2
- package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.service.d.ts +1 -0
- package/dist/lib/modules/tournament/participant/participant.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.service.js +15 -17
- package/dist/lib/modules/tournament/participant/participant.service.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts +3 -9
- package/dist/lib/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.builder.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts +11 -3
- package/dist/lib/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.repository.js +47 -0
- package/dist/lib/modules/tournament/prediction/prediction.repository.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.service.js +16 -26
- package/dist/lib/modules/tournament/prediction/prediction.service.js.map +1 -1
- package/dist/lib/modules/tournament/prediction/prediction.types.d.ts +17 -0
- package/dist/lib/modules/tournament/prediction/prediction.types.d.ts.map +1 -0
- package/dist/lib/modules/tournament/prediction/prediction.types.js +3 -0
- package/dist/lib/modules/tournament/prediction/prediction.types.js.map +1 -0
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -5
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js +58 -16
- package/dist/lib/modules/tournament/reward/handlers/coupon-reward.handler.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.builder.d.ts +5 -2
- package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.builder.js +44 -28
- package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.factory.d.ts +1 -1
- package/dist/lib/modules/tournament/reward/reward.factory.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.factory.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.interface.d.ts +2 -2
- package/dist/lib/modules/tournament/reward/reward.interface.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.interface.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.service.d.ts +1 -1
- package/dist/lib/modules/tournament/reward/reward.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.service.js +1 -1
- package/dist/lib/modules/tournament/reward/reward.service.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.types.d.ts +35 -2
- package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -1
- package/dist/lib/modules/tournament/schedule/schedule.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/schedule/schedule.router.js +1 -3
- package/dist/lib/modules/tournament/schedule/schedule.router.js.map +1 -1
- package/dist/lib/modules/tournament/schedule/schedule.service.d.ts +3 -0
- package/dist/lib/modules/tournament/schedule/schedule.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/schedule/schedule.service.js +30 -1
- package/dist/lib/modules/tournament/schedule/schedule.service.js.map +1 -1
- package/dist/lib/modules/tournament/score/score.repository.d.ts +13 -0
- package/dist/lib/modules/tournament/score/score.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/score/score.repository.js +20 -0
- package/dist/lib/modules/tournament/score/score.repository.js.map +1 -1
- package/dist/lib/modules/tournament/score/score.service.d.ts +3 -0
- package/dist/lib/modules/tournament/score/score.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/score/score.service.js +3 -0
- package/dist/lib/modules/tournament/score/score.service.js.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts +5 -0
- package/dist/lib/modules/tournament/statistics/statistics.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.builder.js +47 -28
- package/dist/lib/modules/tournament/statistics/statistics.builder.js.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.router.d.ts +4 -2
- package/dist/lib/modules/tournament/statistics/statistics.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.service.js +4 -4
- package/dist/lib/modules/tournament/statistics/statistics.service.js.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts +32 -14
- package/dist/lib/modules/tournament/statistics/statistics.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/statistics/statistics.validation.js +2 -1
- package/dist/lib/modules/tournament/statistics/statistics.validation.js.map +1 -1
- package/dist/lib/modules/tournament/sync/sync.repository.d.ts +11 -0
- package/dist/lib/modules/tournament/sync/sync.repository.d.ts.map +1 -0
- package/dist/lib/modules/tournament/{notification/notification.scheduler.service.js → sync/sync.repository.js} +22 -28
- package/dist/lib/modules/tournament/sync/sync.repository.js.map +1 -0
- package/dist/lib/modules/tournament/sync/sync.router.d.ts +27 -0
- package/dist/lib/modules/tournament/sync/sync.router.d.ts.map +1 -0
- package/dist/lib/modules/tournament/sync/sync.router.js +15 -0
- package/dist/lib/modules/tournament/sync/sync.router.js.map +1 -0
- package/dist/lib/modules/tournament/sync/sync.service.d.ts +9 -0
- package/dist/lib/modules/tournament/sync/sync.service.d.ts.map +1 -0
- package/dist/lib/modules/tournament/sync/sync.service.js +117 -0
- package/dist/lib/modules/tournament/sync/sync.service.js.map +1 -0
- package/dist/lib/modules/tournament/team/team.builder.d.ts +4 -0
- package/dist/lib/modules/tournament/team/team.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.builder.js +6 -0
- package/dist/lib/modules/tournament/team/team.builder.js.map +1 -1
- package/dist/lib/modules/tournament/team/team.repository.d.ts +3 -0
- package/dist/lib/modules/tournament/team/team.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.repository.js +6 -0
- package/dist/lib/modules/tournament/team/team.repository.js.map +1 -1
- package/dist/lib/modules/tournament/team/team.router.d.ts +24 -6
- package/dist/lib/modules/tournament/team/team.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.router.js +1 -1
- package/dist/lib/modules/tournament/team/team.router.js.map +1 -1
- package/dist/lib/modules/tournament/team/team.service.d.ts +2 -1
- package/dist/lib/modules/tournament/team/team.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.service.js +26 -23
- package/dist/lib/modules/tournament/team/team.service.js.map +1 -1
- package/dist/lib/modules/tournament/team/team.validation.d.ts +23 -24
- package/dist/lib/modules/tournament/team/team.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/team/team.validation.js +3 -4
- package/dist/lib/modules/tournament/team/team.validation.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.builder.d.ts +11 -0
- package/dist/lib/modules/tournament/tournament.builder.d.ts.map +1 -0
- package/dist/lib/modules/tournament/tournament.builder.js +34 -0
- package/dist/lib/modules/tournament/tournament.builder.js.map +1 -0
- package/dist/lib/modules/tournament/tournament.router.d.ts +226 -26
- package/dist/lib/modules/tournament/tournament.router.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.router.js +2 -0
- package/dist/lib/modules/tournament/tournament.router.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.service.js +3 -10
- package/dist/lib/modules/tournament/tournament.service.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.types.d.ts +0 -3
- package/dist/lib/modules/tournament/tournament.types.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.types.js +1 -5
- package/dist/lib/modules/tournament/tournament.types.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.utils.d.ts +4 -0
- package/dist/lib/modules/tournament/tournament.utils.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.utils.js +8 -1
- package/dist/lib/modules/tournament/tournament.utils.js.map +1 -1
- package/dist/lib/modules/tournament/tournament.validation.d.ts +205 -1
- package/dist/lib/modules/tournament/tournament.validation.d.ts.map +1 -1
- package/dist/lib/modules/tournament/tournament.validation.js +23 -2
- package/dist/lib/modules/tournament/tournament.validation.js.map +1 -1
- package/dist/types/index.d.ts +323 -77
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +1117 -285
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/index.d.ts +0 -1
- package/dist/types/modules/coupon/validations/index.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +34 -32
- package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts +0 -1
- package/dist/types/modules/limited-time-offer/campaign/jobs/limited-time-offer-campaign.worker.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts +1 -0
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.builder.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +19 -6
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts +3 -9
- package/dist/types/modules/limited-time-offer/campaign/services/limited-time-offer-campaign.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts +1 -0
- package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +96 -50
- package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts +23 -0
- package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -0
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +12 -0
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +22 -18
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +88 -83
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +20 -1
- package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
- package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
- package/dist/types/modules/tournament/config/config.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.repository.d.ts +8 -2
- package/dist/types/modules/tournament/config/config.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.router.d.ts +102 -12
- package/dist/types/modules/tournament/config/config.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/config/config.types.d.ts +15 -0
- package/dist/types/modules/tournament/config/config.types.d.ts.map +1 -0
- package/dist/types/modules/tournament/config/config.validation.d.ts +431 -52
- package/dist/types/modules/tournament/config/config.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/integration/integration.factory.d.ts +4 -0
- package/dist/types/modules/tournament/integration/integration.factory.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/interfaces/ITournamentService.d.ts +36 -0
- package/dist/types/modules/tournament/integration/interfaces/ITournamentService.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/providers/api-football/api-football.provider.d.ts +14 -0
- package/dist/types/modules/tournament/integration/providers/api-football/api-football.provider.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/providers/api-football/api-football.types.d.ts +51 -0
- package/dist/types/modules/tournament/integration/providers/api-football/api-football.types.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/providers/api-football/index.d.ts +3 -0
- package/dist/types/modules/tournament/integration/providers/api-football/index.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/providers/index.d.ts +3 -0
- package/dist/types/modules/tournament/integration/providers/index.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/providers/mock.provider.d.ts +7 -0
- package/dist/types/modules/tournament/integration/providers/mock.provider.d.ts.map +1 -0
- package/dist/types/modules/tournament/integration/tournamentService.d.ts +9 -0
- package/dist/types/modules/tournament/integration/tournamentService.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/events/evaluate-predictions.consumer.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts +7 -3
- package/dist/types/modules/tournament/match/events/evaluate-predictions.event.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/events/match-evaluation.orchestrator.d.ts +14 -0
- package/dist/types/modules/tournament/match/events/match-evaluation.orchestrator.d.ts.map +1 -0
- package/dist/types/modules/tournament/match/match.builder.d.ts +13 -34
- package/dist/types/modules/tournament/match/match.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.repository.d.ts +1 -1
- package/dist/types/modules/tournament/match/match.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.router.d.ts +40 -4
- package/dist/types/modules/tournament/match/match.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.service.d.ts +3 -0
- package/dist/types/modules/tournament/match/match.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/match/match.types.d.ts +51 -0
- package/dist/types/modules/tournament/match/match.types.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification-template.repository.d.ts +2 -1
- package/dist/types/modules/tournament/notification/notification-template.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/notification/notification.builder.d.ts +30 -0
- package/dist/types/modules/tournament/notification/notification.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/notification/notification.config.d.ts +10 -9
- package/dist/types/modules/tournament/notification/notification.config.d.ts.map +1 -1
- package/dist/types/modules/tournament/notification/notification.service.d.ts +5 -3
- package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/participant/participant.builder.d.ts +12 -0
- package/dist/types/modules/tournament/participant/participant.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/participant/participant.repository.d.ts +8 -7
- package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/participant/participant.service.d.ts +1 -0
- package/dist/types/modules/tournament/participant/participant.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.builder.d.ts +3 -9
- package/dist/types/modules/tournament/prediction/prediction.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.repository.d.ts +11 -3
- package/dist/types/modules/tournament/prediction/prediction.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts +1 -1
- package/dist/types/modules/tournament/prediction/prediction.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/prediction/prediction.types.d.ts +17 -0
- package/dist/types/modules/tournament/prediction/prediction.types.d.ts.map +1 -0
- package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts +8 -5
- package/dist/types/modules/tournament/reward/handlers/coupon-reward.handler.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.builder.d.ts +5 -2
- package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.factory.d.ts +1 -1
- package/dist/types/modules/tournament/reward/reward.factory.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.interface.d.ts +2 -2
- package/dist/types/modules/tournament/reward/reward.interface.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.service.d.ts +1 -1
- package/dist/types/modules/tournament/reward/reward.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.types.d.ts +35 -2
- package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -1
- package/dist/types/modules/tournament/schedule/schedule.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/schedule/schedule.service.d.ts +3 -0
- package/dist/types/modules/tournament/schedule/schedule.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/score/score.repository.d.ts +13 -0
- package/dist/types/modules/tournament/score/score.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/score/score.service.d.ts +3 -0
- package/dist/types/modules/tournament/score/score.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/statistics/statistics.builder.d.ts +5 -0
- package/dist/types/modules/tournament/statistics/statistics.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/statistics/statistics.router.d.ts +4 -2
- package/dist/types/modules/tournament/statistics/statistics.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/statistics/statistics.validation.d.ts +32 -14
- package/dist/types/modules/tournament/statistics/statistics.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/sync/sync.repository.d.ts +11 -0
- package/dist/types/modules/tournament/sync/sync.repository.d.ts.map +1 -0
- package/dist/types/modules/tournament/sync/sync.router.d.ts +27 -0
- package/dist/types/modules/tournament/sync/sync.router.d.ts.map +1 -0
- package/dist/types/modules/tournament/sync/sync.service.d.ts +9 -0
- package/dist/types/modules/tournament/sync/sync.service.d.ts.map +1 -0
- package/dist/types/modules/tournament/team/team.builder.d.ts +4 -0
- package/dist/types/modules/tournament/team/team.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.repository.d.ts +3 -0
- package/dist/types/modules/tournament/team/team.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.router.d.ts +24 -6
- package/dist/types/modules/tournament/team/team.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.service.d.ts +2 -1
- package/dist/types/modules/tournament/team/team.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/team/team.validation.d.ts +23 -24
- package/dist/types/modules/tournament/team/team.validation.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.builder.d.ts +11 -0
- package/dist/types/modules/tournament/tournament.builder.d.ts.map +1 -0
- package/dist/types/modules/tournament/tournament.router.d.ts +226 -26
- package/dist/types/modules/tournament/tournament.router.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.types.d.ts +0 -3
- package/dist/types/modules/tournament/tournament.types.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.utils.d.ts +4 -0
- package/dist/types/modules/tournament/tournament.utils.d.ts.map +1 -1
- package/dist/types/modules/tournament/tournament.validation.d.ts +205 -1
- package/dist/types/modules/tournament/tournament.validation.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts +0 -2
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.d.ts.map +0 -1
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.js +0 -15
- package/dist/lib/modules/tournament/match/events/match-ended.consumer.js.map +0 -1
- package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts +0 -14
- package/dist/lib/modules/tournament/match/events/match-ended.event.d.ts.map +0 -1
- package/dist/lib/modules/tournament/match/events/match-ended.event.js +0 -12
- package/dist/lib/modules/tournament/match/events/match-ended.event.js.map +0 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts +0 -10
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.d.ts.map +0 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js +0 -23
- package/dist/lib/modules/tournament/notification/jobs/notification.producer.js.map +0 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts +0 -9
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.d.ts.map +0 -1
- package/dist/lib/modules/tournament/notification/jobs/notification.worker.js.map +0 -1
- package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts +0 -10
- package/dist/lib/modules/tournament/notification/notification.schedule.config.d.ts.map +0 -1
- package/dist/lib/modules/tournament/notification/notification.schedule.config.js +0 -15
- package/dist/lib/modules/tournament/notification/notification.schedule.config.js.map +0 -1
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts +0 -10
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.d.ts.map +0 -1
- package/dist/lib/modules/tournament/notification/notification.scheduler.service.js.map +0 -1
- package/dist/types/events/event-initializations.d.ts +0 -2
- package/dist/types/events/event-initializations.d.ts.map +0 -1
- package/dist/types/modules/tournament/config/tournament-config.validation.d.ts +0 -201
- package/dist/types/modules/tournament/config/tournament-config.validation.d.ts.map +0 -1
- package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts +0 -2
- package/dist/types/modules/tournament/match/events/match-ended.consumer.d.ts.map +0 -1
- package/dist/types/modules/tournament/match/events/match-ended.event.d.ts +0 -14
- package/dist/types/modules/tournament/match/events/match-ended.event.d.ts.map +0 -1
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts +0 -10
- package/dist/types/modules/tournament/notification/jobs/notification.producer.d.ts.map +0 -1
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts +0 -9
- package/dist/types/modules/tournament/notification/jobs/notification.worker.d.ts.map +0 -1
- package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts +0 -10
- package/dist/types/modules/tournament/notification/notification.schedule.config.d.ts.map +0 -1
- package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts +0 -10
- package/dist/types/modules/tournament/notification/notification.scheduler.service.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
2
|
+
export declare const AllCouponsValidationSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
3
3
|
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>;
|
|
4
4
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
5
5
|
value: z.ZodNumber;
|
|
@@ -787,7 +787,423 @@ export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
787
787
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
788
788
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
789
789
|
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
790
|
-
}>]
|
|
790
|
+
}>]>, {
|
|
791
|
+
code: string;
|
|
792
|
+
value: number;
|
|
793
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
794
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
795
|
+
maxDiscountLimit: number | null;
|
|
796
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
797
|
+
duration: {
|
|
798
|
+
start: Date;
|
|
799
|
+
end?: Date | undefined;
|
|
800
|
+
};
|
|
801
|
+
spendLimit: number | null;
|
|
802
|
+
isSpendLimitEnabled: boolean;
|
|
803
|
+
totalOrderLimit: number | null;
|
|
804
|
+
isTotalOrderLimitEnabled: boolean;
|
|
805
|
+
minOrderValue: number | null;
|
|
806
|
+
isMinOrderValueEnabled: boolean;
|
|
807
|
+
forNewUserOnly: boolean;
|
|
808
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
809
|
+
orderLimitPerUser: number | null;
|
|
810
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
811
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
812
|
+
secondaryCurrencyValue?: number | undefined;
|
|
813
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
814
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
815
|
+
referringUser?: {
|
|
816
|
+
name?: string | undefined;
|
|
817
|
+
} | undefined;
|
|
818
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
819
|
+
isExpired?: boolean | undefined;
|
|
820
|
+
} | {
|
|
821
|
+
code: string;
|
|
822
|
+
orderLimitPerUser: 1;
|
|
823
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
824
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
825
|
+
referralUser: import("mongoose").Types.ObjectId;
|
|
826
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
827
|
+
isExpired?: boolean | undefined;
|
|
828
|
+
} | {
|
|
829
|
+
code: string;
|
|
830
|
+
value: number;
|
|
831
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
832
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
833
|
+
maxDiscountLimit: number | null;
|
|
834
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
835
|
+
duration: {
|
|
836
|
+
start: Date;
|
|
837
|
+
end?: Date | undefined;
|
|
838
|
+
};
|
|
839
|
+
spendLimit: number | null;
|
|
840
|
+
isSpendLimitEnabled: boolean;
|
|
841
|
+
totalOrderLimit: number | null;
|
|
842
|
+
isTotalOrderLimitEnabled: boolean;
|
|
843
|
+
minOrderValue: number | null;
|
|
844
|
+
isMinOrderValueEnabled: boolean;
|
|
845
|
+
forNewUserOnly: boolean;
|
|
846
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
847
|
+
orderLimitPerUser: number | null;
|
|
848
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
849
|
+
user: import("mongoose").Types.ObjectId;
|
|
850
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
851
|
+
referralCodeUsedBy: import("mongoose").Types.ObjectId;
|
|
852
|
+
referralCodeUsedOnOrder: import("mongoose").Types.ObjectId;
|
|
853
|
+
secondaryCurrencyValue?: number | undefined;
|
|
854
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
855
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
856
|
+
referringUser?: {
|
|
857
|
+
name?: string | undefined;
|
|
858
|
+
} | undefined;
|
|
859
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
860
|
+
isExpired?: boolean | undefined;
|
|
861
|
+
} | {
|
|
862
|
+
code: string;
|
|
863
|
+
value: number;
|
|
864
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
865
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
866
|
+
maxDiscountLimit: number | null;
|
|
867
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
868
|
+
duration: {
|
|
869
|
+
start: Date;
|
|
870
|
+
end?: Date | undefined;
|
|
871
|
+
};
|
|
872
|
+
spendLimit: number | null;
|
|
873
|
+
isSpendLimitEnabled: boolean;
|
|
874
|
+
totalOrderLimit: number | null;
|
|
875
|
+
isTotalOrderLimitEnabled: boolean;
|
|
876
|
+
minOrderValue: number | null;
|
|
877
|
+
isMinOrderValueEnabled: boolean;
|
|
878
|
+
forNewUserOnly: boolean;
|
|
879
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
880
|
+
orderLimitPerUser: number | null;
|
|
881
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
882
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES;
|
|
883
|
+
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
884
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
885
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
886
|
+
isShopCoverExpenses: boolean;
|
|
887
|
+
firstOrderOnly: boolean;
|
|
888
|
+
secondaryCurrencyValue?: number | undefined;
|
|
889
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
890
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
891
|
+
referringUser?: {
|
|
892
|
+
name?: string | undefined;
|
|
893
|
+
} | undefined;
|
|
894
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
895
|
+
isExpired?: boolean | undefined;
|
|
896
|
+
} | {
|
|
897
|
+
code: string;
|
|
898
|
+
value: number;
|
|
899
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
900
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
901
|
+
maxDiscountLimit: number | null;
|
|
902
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
903
|
+
duration: {
|
|
904
|
+
start: Date;
|
|
905
|
+
end?: Date | undefined;
|
|
906
|
+
};
|
|
907
|
+
spendLimit: number | null;
|
|
908
|
+
isSpendLimitEnabled: boolean;
|
|
909
|
+
totalOrderLimit: number | null;
|
|
910
|
+
isTotalOrderLimitEnabled: boolean;
|
|
911
|
+
minOrderValue: number | null;
|
|
912
|
+
isMinOrderValueEnabled: boolean;
|
|
913
|
+
forNewUserOnly: boolean;
|
|
914
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
915
|
+
orderLimitPerUser: number | null;
|
|
916
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
917
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
918
|
+
isShopCoverExpenses: boolean;
|
|
919
|
+
firstOrderOnly: boolean;
|
|
920
|
+
secondaryCurrencyValue?: number | undefined;
|
|
921
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
922
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
923
|
+
referringUser?: {
|
|
924
|
+
name?: string | undefined;
|
|
925
|
+
} | undefined;
|
|
926
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
927
|
+
isExpired?: boolean | undefined;
|
|
928
|
+
shop?: import("mongoose").Types.ObjectId | undefined;
|
|
929
|
+
vendor?: import("mongoose").Types.ObjectId | undefined;
|
|
930
|
+
} | {
|
|
931
|
+
code: string;
|
|
932
|
+
value: number;
|
|
933
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
934
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
935
|
+
maxDiscountLimit: number | null;
|
|
936
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
937
|
+
duration: {
|
|
938
|
+
start: Date;
|
|
939
|
+
end?: Date | undefined;
|
|
940
|
+
};
|
|
941
|
+
spendLimit: number | null;
|
|
942
|
+
isSpendLimitEnabled: boolean;
|
|
943
|
+
totalOrderLimit: number | null;
|
|
944
|
+
isTotalOrderLimitEnabled: boolean;
|
|
945
|
+
minOrderValue: number | null;
|
|
946
|
+
isMinOrderValueEnabled: boolean;
|
|
947
|
+
forNewUserOnly: boolean;
|
|
948
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
949
|
+
orderLimitPerUser: number | null;
|
|
950
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
951
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
952
|
+
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
953
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
954
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
955
|
+
users: [import("mongoose").Types.ObjectId, ...import("mongoose").Types.ObjectId[]];
|
|
956
|
+
secondaryCurrencyValue?: number | undefined;
|
|
957
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
958
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
959
|
+
referringUser?: {
|
|
960
|
+
name?: string | undefined;
|
|
961
|
+
} | undefined;
|
|
962
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
963
|
+
isExpired?: boolean | undefined;
|
|
964
|
+
} | {
|
|
965
|
+
code: string;
|
|
966
|
+
value: number;
|
|
967
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
968
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
969
|
+
maxDiscountLimit: number | null;
|
|
970
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
971
|
+
duration: {
|
|
972
|
+
start: Date;
|
|
973
|
+
end?: Date | undefined;
|
|
974
|
+
};
|
|
975
|
+
spendLimit: number | null;
|
|
976
|
+
isSpendLimitEnabled: boolean;
|
|
977
|
+
totalOrderLimit: number | null;
|
|
978
|
+
isTotalOrderLimitEnabled: boolean;
|
|
979
|
+
minOrderValue: number | null;
|
|
980
|
+
isMinOrderValueEnabled: boolean;
|
|
981
|
+
forNewUserOnly: boolean;
|
|
982
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
983
|
+
orderLimitPerUser: number | null;
|
|
984
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
985
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
986
|
+
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
987
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
988
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
989
|
+
influencer: import("mongoose").Types.ObjectId;
|
|
990
|
+
secondaryCurrencyValue?: number | undefined;
|
|
991
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
992
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
993
|
+
referringUser?: {
|
|
994
|
+
name?: string | undefined;
|
|
995
|
+
} | undefined;
|
|
996
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
997
|
+
isExpired?: boolean | undefined;
|
|
998
|
+
}, {
|
|
999
|
+
code: string;
|
|
1000
|
+
value: number;
|
|
1001
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1002
|
+
duration: {
|
|
1003
|
+
start: string | Date;
|
|
1004
|
+
end?: string | Date | undefined;
|
|
1005
|
+
};
|
|
1006
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
1007
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1008
|
+
secondaryCurrencyValue?: number | undefined;
|
|
1009
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1010
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
1011
|
+
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
1012
|
+
spendLimit?: number | null | undefined;
|
|
1013
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
1014
|
+
totalOrderLimit?: number | null | undefined;
|
|
1015
|
+
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
1016
|
+
minOrderValue?: number | null | undefined;
|
|
1017
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
1018
|
+
isMinOrderValueEnabled?: boolean | undefined;
|
|
1019
|
+
forNewUserOnly?: boolean | undefined;
|
|
1020
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1021
|
+
referringUser?: {
|
|
1022
|
+
name?: string | undefined;
|
|
1023
|
+
} | undefined;
|
|
1024
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1025
|
+
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1026
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1027
|
+
isExpired?: boolean | undefined;
|
|
1028
|
+
} | {
|
|
1029
|
+
code: string;
|
|
1030
|
+
orderLimitPerUser: 1;
|
|
1031
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
1032
|
+
referralUser: string | import("mongoose").Types.ObjectId;
|
|
1033
|
+
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1034
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1035
|
+
isExpired?: boolean | undefined;
|
|
1036
|
+
} | {
|
|
1037
|
+
code: string;
|
|
1038
|
+
value: number;
|
|
1039
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1040
|
+
duration: {
|
|
1041
|
+
start: string | Date;
|
|
1042
|
+
end?: string | Date | undefined;
|
|
1043
|
+
};
|
|
1044
|
+
user: string | import("mongoose").Types.ObjectId;
|
|
1045
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
1046
|
+
referralCodeUsedBy: string | import("mongoose").Types.ObjectId;
|
|
1047
|
+
referralCodeUsedOnOrder: string | import("mongoose").Types.ObjectId;
|
|
1048
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1049
|
+
secondaryCurrencyValue?: number | undefined;
|
|
1050
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1051
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
1052
|
+
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
1053
|
+
spendLimit?: number | null | undefined;
|
|
1054
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
1055
|
+
totalOrderLimit?: number | null | undefined;
|
|
1056
|
+
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
1057
|
+
minOrderValue?: number | null | undefined;
|
|
1058
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
1059
|
+
isMinOrderValueEnabled?: boolean | undefined;
|
|
1060
|
+
forNewUserOnly?: boolean | undefined;
|
|
1061
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1062
|
+
referringUser?: {
|
|
1063
|
+
name?: string | undefined;
|
|
1064
|
+
} | undefined;
|
|
1065
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1066
|
+
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1067
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1068
|
+
isExpired?: boolean | undefined;
|
|
1069
|
+
} | {
|
|
1070
|
+
code: string;
|
|
1071
|
+
value: number;
|
|
1072
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1073
|
+
duration: {
|
|
1074
|
+
start: string | Date;
|
|
1075
|
+
end?: string | Date | undefined;
|
|
1076
|
+
};
|
|
1077
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES;
|
|
1078
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1079
|
+
secondaryCurrencyValue?: number | undefined;
|
|
1080
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1081
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
1082
|
+
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
1083
|
+
spendLimit?: number | null | undefined;
|
|
1084
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
1085
|
+
totalOrderLimit?: number | null | undefined;
|
|
1086
|
+
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
1087
|
+
minOrderValue?: number | null | undefined;
|
|
1088
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
1089
|
+
isMinOrderValueEnabled?: boolean | undefined;
|
|
1090
|
+
forNewUserOnly?: boolean | undefined;
|
|
1091
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1092
|
+
referringUser?: {
|
|
1093
|
+
name?: string | undefined;
|
|
1094
|
+
} | undefined;
|
|
1095
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1096
|
+
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1097
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1098
|
+
isExpired?: boolean | undefined;
|
|
1099
|
+
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1100
|
+
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1101
|
+
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1102
|
+
isShopCoverExpenses?: boolean | undefined;
|
|
1103
|
+
firstOrderOnly?: boolean | undefined;
|
|
1104
|
+
} | {
|
|
1105
|
+
code: string;
|
|
1106
|
+
value: number;
|
|
1107
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1108
|
+
duration: {
|
|
1109
|
+
start: string | Date;
|
|
1110
|
+
end?: string | Date | undefined;
|
|
1111
|
+
};
|
|
1112
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
1113
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1114
|
+
secondaryCurrencyValue?: number | undefined;
|
|
1115
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1116
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
1117
|
+
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
1118
|
+
spendLimit?: number | null | undefined;
|
|
1119
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
1120
|
+
totalOrderLimit?: number | null | undefined;
|
|
1121
|
+
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
1122
|
+
minOrderValue?: number | null | undefined;
|
|
1123
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
1124
|
+
isMinOrderValueEnabled?: boolean | undefined;
|
|
1125
|
+
forNewUserOnly?: boolean | undefined;
|
|
1126
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1127
|
+
referringUser?: {
|
|
1128
|
+
name?: string | undefined;
|
|
1129
|
+
} | undefined;
|
|
1130
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1131
|
+
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1132
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1133
|
+
isExpired?: boolean | undefined;
|
|
1134
|
+
shop?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1135
|
+
vendor?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1136
|
+
isShopCoverExpenses?: boolean | undefined;
|
|
1137
|
+
firstOrderOnly?: boolean | undefined;
|
|
1138
|
+
} | {
|
|
1139
|
+
code: string;
|
|
1140
|
+
value: number;
|
|
1141
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1142
|
+
duration: {
|
|
1143
|
+
start: string | Date;
|
|
1144
|
+
end?: string | Date | undefined;
|
|
1145
|
+
};
|
|
1146
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
1147
|
+
users: [string | import("mongoose").Types.ObjectId, ...(string | import("mongoose").Types.ObjectId)[]];
|
|
1148
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1149
|
+
secondaryCurrencyValue?: number | undefined;
|
|
1150
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1151
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
1152
|
+
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
1153
|
+
spendLimit?: number | null | undefined;
|
|
1154
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
1155
|
+
totalOrderLimit?: number | null | undefined;
|
|
1156
|
+
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
1157
|
+
minOrderValue?: number | null | undefined;
|
|
1158
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
1159
|
+
isMinOrderValueEnabled?: boolean | undefined;
|
|
1160
|
+
forNewUserOnly?: boolean | undefined;
|
|
1161
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1162
|
+
referringUser?: {
|
|
1163
|
+
name?: string | undefined;
|
|
1164
|
+
} | undefined;
|
|
1165
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1166
|
+
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1167
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1168
|
+
isExpired?: boolean | undefined;
|
|
1169
|
+
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1170
|
+
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1171
|
+
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1172
|
+
} | {
|
|
1173
|
+
code: string;
|
|
1174
|
+
value: number;
|
|
1175
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1176
|
+
duration: {
|
|
1177
|
+
start: string | Date;
|
|
1178
|
+
end?: string | Date | undefined;
|
|
1179
|
+
};
|
|
1180
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
1181
|
+
influencer: string | import("mongoose").Types.ObjectId;
|
|
1182
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1183
|
+
secondaryCurrencyValue?: number | undefined;
|
|
1184
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1185
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
1186
|
+
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
1187
|
+
spendLimit?: number | null | undefined;
|
|
1188
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
1189
|
+
totalOrderLimit?: number | null | undefined;
|
|
1190
|
+
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
1191
|
+
minOrderValue?: number | null | undefined;
|
|
1192
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
1193
|
+
isMinOrderValueEnabled?: boolean | undefined;
|
|
1194
|
+
forNewUserOnly?: boolean | undefined;
|
|
1195
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1196
|
+
referringUser?: {
|
|
1197
|
+
name?: string | undefined;
|
|
1198
|
+
} | undefined;
|
|
1199
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1200
|
+
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1201
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1202
|
+
isExpired?: boolean | undefined;
|
|
1203
|
+
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1204
|
+
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1205
|
+
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1206
|
+
}>;
|
|
791
1207
|
export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
792
1208
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
793
1209
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
@@ -1713,19 +2129,269 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1713
2129
|
}, "strip", z.ZodTypeAny, {
|
|
1714
2130
|
name?: string | undefined;
|
|
1715
2131
|
}, {
|
|
1716
|
-
name?: string | undefined;
|
|
1717
|
-
}>>>;
|
|
1718
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1719
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1720
|
-
isOrderLimitPerUserEnabled: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1721
|
-
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
1722
|
-
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1723
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
1724
|
-
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1725
|
-
export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
1726
|
-
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
1727
|
-
data: z.ZodUnion<[z.ZodObject<{
|
|
1728
|
-
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>;
|
|
2132
|
+
name?: string | undefined;
|
|
2133
|
+
}>>>;
|
|
2134
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2135
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2136
|
+
isOrderLimitPerUserEnabled: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2137
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2138
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2139
|
+
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2140
|
+
}, z.ZodTypeAny, "passthrough">>]>;
|
|
2141
|
+
export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
2142
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
2143
|
+
data: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
2144
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>;
|
|
2145
|
+
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
2146
|
+
value: z.ZodNumber;
|
|
2147
|
+
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
2148
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2149
|
+
secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodNumber>;
|
|
2150
|
+
isMaxDiscountLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2151
|
+
duration: z.ZodEffects<z.ZodObject<{
|
|
2152
|
+
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2153
|
+
end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
|
|
2154
|
+
}, "strip", z.ZodTypeAny, {
|
|
2155
|
+
start: Date;
|
|
2156
|
+
end?: Date | undefined;
|
|
2157
|
+
}, {
|
|
2158
|
+
start: string | Date;
|
|
2159
|
+
end?: string | Date | undefined;
|
|
2160
|
+
}>, {
|
|
2161
|
+
start: Date;
|
|
2162
|
+
end?: Date | undefined;
|
|
2163
|
+
}, {
|
|
2164
|
+
start: string | Date;
|
|
2165
|
+
end?: string | Date | undefined;
|
|
2166
|
+
}>;
|
|
2167
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2168
|
+
isSpendLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2169
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2170
|
+
isTotalOrderLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2171
|
+
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2172
|
+
secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodNumber>;
|
|
2173
|
+
isMinOrderValueEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2174
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2175
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
2176
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
2177
|
+
referringUser: z.ZodOptional<z.ZodObject<{
|
|
2178
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2179
|
+
}, "strip", z.ZodTypeAny, {
|
|
2180
|
+
name?: string | undefined;
|
|
2181
|
+
}, {
|
|
2182
|
+
name?: string | undefined;
|
|
2183
|
+
}>>;
|
|
2184
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2185
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2186
|
+
isOrderLimitPerUserEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2187
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2188
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
2189
|
+
}, "strict", z.ZodTypeAny, {
|
|
2190
|
+
code: string;
|
|
2191
|
+
value: number;
|
|
2192
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2193
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2194
|
+
maxDiscountLimit: number | null;
|
|
2195
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
2196
|
+
duration: {
|
|
2197
|
+
start: Date;
|
|
2198
|
+
end?: Date | undefined;
|
|
2199
|
+
};
|
|
2200
|
+
spendLimit: number | null;
|
|
2201
|
+
isSpendLimitEnabled: boolean;
|
|
2202
|
+
totalOrderLimit: number | null;
|
|
2203
|
+
isTotalOrderLimitEnabled: boolean;
|
|
2204
|
+
minOrderValue: number | null;
|
|
2205
|
+
isMinOrderValueEnabled: boolean;
|
|
2206
|
+
forNewUserOnly: boolean;
|
|
2207
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2208
|
+
orderLimitPerUser: number | null;
|
|
2209
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
2210
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
2211
|
+
secondaryCurrencyValue?: number | undefined;
|
|
2212
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2213
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2214
|
+
referringUser?: {
|
|
2215
|
+
name?: string | undefined;
|
|
2216
|
+
} | undefined;
|
|
2217
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
2218
|
+
isExpired?: boolean | undefined;
|
|
2219
|
+
}, {
|
|
2220
|
+
code: string;
|
|
2221
|
+
value: number;
|
|
2222
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2223
|
+
duration: {
|
|
2224
|
+
start: string | Date;
|
|
2225
|
+
end?: string | Date | undefined;
|
|
2226
|
+
};
|
|
2227
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
2228
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2229
|
+
secondaryCurrencyValue?: number | undefined;
|
|
2230
|
+
maxDiscountLimit?: number | null | undefined;
|
|
2231
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2232
|
+
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
2233
|
+
spendLimit?: number | null | undefined;
|
|
2234
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
2235
|
+
totalOrderLimit?: number | null | undefined;
|
|
2236
|
+
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
2237
|
+
minOrderValue?: number | null | undefined;
|
|
2238
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2239
|
+
isMinOrderValueEnabled?: boolean | undefined;
|
|
2240
|
+
forNewUserOnly?: boolean | undefined;
|
|
2241
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
2242
|
+
referringUser?: {
|
|
2243
|
+
name?: string | undefined;
|
|
2244
|
+
} | undefined;
|
|
2245
|
+
orderLimitPerUser?: number | null | undefined;
|
|
2246
|
+
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
2247
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2248
|
+
isExpired?: boolean | undefined;
|
|
2249
|
+
}>, z.ZodObject<{
|
|
2250
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>;
|
|
2251
|
+
orderLimitPerUser: z.ZodLiteral<1>;
|
|
2252
|
+
referralUser: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
2253
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2254
|
+
isOrderLimitPerUserEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2255
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2256
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
2257
|
+
}, "strict", z.ZodTypeAny, {
|
|
2258
|
+
code: string;
|
|
2259
|
+
orderLimitPerUser: 1;
|
|
2260
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
2261
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
2262
|
+
referralUser: import("mongoose").Types.ObjectId;
|
|
2263
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
2264
|
+
isExpired?: boolean | undefined;
|
|
2265
|
+
}, {
|
|
2266
|
+
code: string;
|
|
2267
|
+
orderLimitPerUser: 1;
|
|
2268
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
2269
|
+
referralUser: string | import("mongoose").Types.ObjectId;
|
|
2270
|
+
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
2271
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2272
|
+
isExpired?: boolean | undefined;
|
|
2273
|
+
}>, z.ZodObject<{
|
|
2274
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>;
|
|
2275
|
+
user: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
2276
|
+
referralCodeUsedBy: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
2277
|
+
referralCodeUsedOnOrder: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
2278
|
+
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
2279
|
+
value: z.ZodNumber;
|
|
2280
|
+
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
2281
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2282
|
+
secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodNumber>;
|
|
2283
|
+
isMaxDiscountLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2284
|
+
duration: z.ZodEffects<z.ZodObject<{
|
|
2285
|
+
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2286
|
+
end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
|
|
2287
|
+
}, "strip", z.ZodTypeAny, {
|
|
2288
|
+
start: Date;
|
|
2289
|
+
end?: Date | undefined;
|
|
2290
|
+
}, {
|
|
2291
|
+
start: string | Date;
|
|
2292
|
+
end?: string | Date | undefined;
|
|
2293
|
+
}>, {
|
|
2294
|
+
start: Date;
|
|
2295
|
+
end?: Date | undefined;
|
|
2296
|
+
}, {
|
|
2297
|
+
start: string | Date;
|
|
2298
|
+
end?: string | Date | undefined;
|
|
2299
|
+
}>;
|
|
2300
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2301
|
+
isSpendLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2302
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2303
|
+
isTotalOrderLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2304
|
+
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2305
|
+
secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodNumber>;
|
|
2306
|
+
isMinOrderValueEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2307
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2308
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
2309
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
2310
|
+
referringUser: z.ZodOptional<z.ZodObject<{
|
|
2311
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2312
|
+
}, "strip", z.ZodTypeAny, {
|
|
2313
|
+
name?: string | undefined;
|
|
2314
|
+
}, {
|
|
2315
|
+
name?: string | undefined;
|
|
2316
|
+
}>>;
|
|
2317
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2318
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2319
|
+
isOrderLimitPerUserEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2320
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2321
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
2322
|
+
}, "strict", z.ZodTypeAny, {
|
|
2323
|
+
code: string;
|
|
2324
|
+
value: number;
|
|
2325
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2326
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2327
|
+
maxDiscountLimit: number | null;
|
|
2328
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
2329
|
+
duration: {
|
|
2330
|
+
start: Date;
|
|
2331
|
+
end?: Date | undefined;
|
|
2332
|
+
};
|
|
2333
|
+
spendLimit: number | null;
|
|
2334
|
+
isSpendLimitEnabled: boolean;
|
|
2335
|
+
totalOrderLimit: number | null;
|
|
2336
|
+
isTotalOrderLimitEnabled: boolean;
|
|
2337
|
+
minOrderValue: number | null;
|
|
2338
|
+
isMinOrderValueEnabled: boolean;
|
|
2339
|
+
forNewUserOnly: boolean;
|
|
2340
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2341
|
+
orderLimitPerUser: number | null;
|
|
2342
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
2343
|
+
user: import("mongoose").Types.ObjectId;
|
|
2344
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
2345
|
+
referralCodeUsedBy: import("mongoose").Types.ObjectId;
|
|
2346
|
+
referralCodeUsedOnOrder: import("mongoose").Types.ObjectId;
|
|
2347
|
+
secondaryCurrencyValue?: number | undefined;
|
|
2348
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2349
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2350
|
+
referringUser?: {
|
|
2351
|
+
name?: string | undefined;
|
|
2352
|
+
} | undefined;
|
|
2353
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
2354
|
+
isExpired?: boolean | undefined;
|
|
2355
|
+
}, {
|
|
2356
|
+
code: string;
|
|
2357
|
+
value: number;
|
|
2358
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2359
|
+
duration: {
|
|
2360
|
+
start: string | Date;
|
|
2361
|
+
end?: string | Date | undefined;
|
|
2362
|
+
};
|
|
2363
|
+
user: string | import("mongoose").Types.ObjectId;
|
|
2364
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
2365
|
+
referralCodeUsedBy: string | import("mongoose").Types.ObjectId;
|
|
2366
|
+
referralCodeUsedOnOrder: string | import("mongoose").Types.ObjectId;
|
|
2367
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2368
|
+
secondaryCurrencyValue?: number | undefined;
|
|
2369
|
+
maxDiscountLimit?: number | null | undefined;
|
|
2370
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2371
|
+
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
2372
|
+
spendLimit?: number | null | undefined;
|
|
2373
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
2374
|
+
totalOrderLimit?: number | null | undefined;
|
|
2375
|
+
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
2376
|
+
minOrderValue?: number | null | undefined;
|
|
2377
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2378
|
+
isMinOrderValueEnabled?: boolean | undefined;
|
|
2379
|
+
forNewUserOnly?: boolean | undefined;
|
|
2380
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
2381
|
+
referringUser?: {
|
|
2382
|
+
name?: string | undefined;
|
|
2383
|
+
} | undefined;
|
|
2384
|
+
orderLimitPerUser?: number | null | undefined;
|
|
2385
|
+
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
2386
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2387
|
+
isExpired?: boolean | undefined;
|
|
2388
|
+
}>, z.ZodObject<{
|
|
2389
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES>;
|
|
2390
|
+
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
2391
|
+
shops: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
2392
|
+
vendors: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
2393
|
+
isShopCoverExpenses: z.ZodDefault<z.ZodBoolean>;
|
|
2394
|
+
firstOrderOnly: z.ZodDefault<z.ZodBoolean>;
|
|
1729
2395
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
1730
2396
|
value: z.ZodNumber;
|
|
1731
2397
|
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1791,7 +2457,12 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1791
2457
|
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
1792
2458
|
orderLimitPerUser: number | null;
|
|
1793
2459
|
isOrderLimitPerUserEnabled: boolean;
|
|
1794
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
2460
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES;
|
|
2461
|
+
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
2462
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
2463
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
2464
|
+
isShopCoverExpenses: boolean;
|
|
2465
|
+
firstOrderOnly: boolean;
|
|
1795
2466
|
secondaryCurrencyValue?: number | undefined;
|
|
1796
2467
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
1797
2468
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
@@ -1808,7 +2479,7 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1808
2479
|
start: string | Date;
|
|
1809
2480
|
end?: string | Date | undefined;
|
|
1810
2481
|
};
|
|
1811
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
2482
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES;
|
|
1812
2483
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1813
2484
|
secondaryCurrencyValue?: number | undefined;
|
|
1814
2485
|
maxDiscountLimit?: number | null | undefined;
|
|
@@ -1830,35 +2501,203 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1830
2501
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1831
2502
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1832
2503
|
isExpired?: boolean | undefined;
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
2504
|
+
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
2505
|
+
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
2506
|
+
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
2507
|
+
isShopCoverExpenses?: boolean | undefined;
|
|
2508
|
+
firstOrderOnly?: boolean | undefined;
|
|
2509
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
2510
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>;
|
|
2511
|
+
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2512
|
+
vendor: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2513
|
+
isShopCoverExpenses: z.ZodDefault<z.ZodBoolean>;
|
|
2514
|
+
firstOrderOnly: z.ZodDefault<z.ZodBoolean>;
|
|
2515
|
+
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
2516
|
+
value: z.ZodNumber;
|
|
2517
|
+
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
2518
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2519
|
+
secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodNumber>;
|
|
2520
|
+
isMaxDiscountLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2521
|
+
duration: z.ZodEffects<z.ZodObject<{
|
|
2522
|
+
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2523
|
+
end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
|
|
2524
|
+
}, "strip", z.ZodTypeAny, {
|
|
2525
|
+
start: Date;
|
|
2526
|
+
end?: Date | undefined;
|
|
2527
|
+
}, {
|
|
2528
|
+
start: string | Date;
|
|
2529
|
+
end?: string | Date | undefined;
|
|
2530
|
+
}>, {
|
|
2531
|
+
start: Date;
|
|
2532
|
+
end?: Date | undefined;
|
|
2533
|
+
}, {
|
|
2534
|
+
start: string | Date;
|
|
2535
|
+
end?: string | Date | undefined;
|
|
2536
|
+
}>;
|
|
2537
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2538
|
+
isSpendLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2539
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2540
|
+
isTotalOrderLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2541
|
+
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2542
|
+
secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodNumber>;
|
|
2543
|
+
isMinOrderValueEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2544
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2545
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
2546
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
2547
|
+
referringUser: z.ZodOptional<z.ZodObject<{
|
|
2548
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2549
|
+
}, "strip", z.ZodTypeAny, {
|
|
2550
|
+
name?: string | undefined;
|
|
2551
|
+
}, {
|
|
2552
|
+
name?: string | undefined;
|
|
2553
|
+
}>>;
|
|
1837
2554
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2555
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
1838
2556
|
isOrderLimitPerUserEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1839
2557
|
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
1840
2558
|
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
1841
2559
|
}, "strict", z.ZodTypeAny, {
|
|
1842
2560
|
code: string;
|
|
1843
|
-
|
|
2561
|
+
value: number;
|
|
2562
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2563
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2564
|
+
maxDiscountLimit: number | null;
|
|
2565
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
2566
|
+
duration: {
|
|
2567
|
+
start: Date;
|
|
2568
|
+
end?: Date | undefined;
|
|
2569
|
+
};
|
|
2570
|
+
spendLimit: number | null;
|
|
2571
|
+
isSpendLimitEnabled: boolean;
|
|
2572
|
+
totalOrderLimit: number | null;
|
|
2573
|
+
isTotalOrderLimitEnabled: boolean;
|
|
2574
|
+
minOrderValue: number | null;
|
|
2575
|
+
isMinOrderValueEnabled: boolean;
|
|
2576
|
+
forNewUserOnly: boolean;
|
|
2577
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2578
|
+
orderLimitPerUser: number | null;
|
|
1844
2579
|
isOrderLimitPerUserEnabled: boolean;
|
|
1845
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
1846
|
-
|
|
2580
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
2581
|
+
isShopCoverExpenses: boolean;
|
|
2582
|
+
firstOrderOnly: boolean;
|
|
2583
|
+
secondaryCurrencyValue?: number | undefined;
|
|
2584
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2585
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2586
|
+
referringUser?: {
|
|
2587
|
+
name?: string | undefined;
|
|
2588
|
+
} | undefined;
|
|
1847
2589
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
1848
2590
|
isExpired?: boolean | undefined;
|
|
2591
|
+
shop?: import("mongoose").Types.ObjectId | undefined;
|
|
2592
|
+
vendor?: import("mongoose").Types.ObjectId | undefined;
|
|
1849
2593
|
}, {
|
|
1850
2594
|
code: string;
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
2595
|
+
value: number;
|
|
2596
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2597
|
+
duration: {
|
|
2598
|
+
start: string | Date;
|
|
2599
|
+
end?: string | Date | undefined;
|
|
2600
|
+
};
|
|
2601
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
2602
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2603
|
+
secondaryCurrencyValue?: number | undefined;
|
|
2604
|
+
maxDiscountLimit?: number | null | undefined;
|
|
2605
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2606
|
+
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
2607
|
+
spendLimit?: number | null | undefined;
|
|
2608
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
2609
|
+
totalOrderLimit?: number | null | undefined;
|
|
2610
|
+
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
2611
|
+
minOrderValue?: number | null | undefined;
|
|
2612
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2613
|
+
isMinOrderValueEnabled?: boolean | undefined;
|
|
2614
|
+
forNewUserOnly?: boolean | undefined;
|
|
2615
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
2616
|
+
referringUser?: {
|
|
2617
|
+
name?: string | undefined;
|
|
2618
|
+
} | undefined;
|
|
2619
|
+
orderLimitPerUser?: number | null | undefined;
|
|
2620
|
+
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
2621
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2622
|
+
isExpired?: boolean | undefined;
|
|
2623
|
+
shop?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2624
|
+
vendor?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2625
|
+
isShopCoverExpenses?: boolean | undefined;
|
|
2626
|
+
firstOrderOnly?: boolean | undefined;
|
|
2627
|
+
}>, {
|
|
2628
|
+
code: string;
|
|
2629
|
+
value: number;
|
|
2630
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2631
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2632
|
+
maxDiscountLimit: number | null;
|
|
2633
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
2634
|
+
duration: {
|
|
2635
|
+
start: Date;
|
|
2636
|
+
end?: Date | undefined;
|
|
2637
|
+
};
|
|
2638
|
+
spendLimit: number | null;
|
|
2639
|
+
isSpendLimitEnabled: boolean;
|
|
2640
|
+
totalOrderLimit: number | null;
|
|
2641
|
+
isTotalOrderLimitEnabled: boolean;
|
|
2642
|
+
minOrderValue: number | null;
|
|
2643
|
+
isMinOrderValueEnabled: boolean;
|
|
2644
|
+
forNewUserOnly: boolean;
|
|
2645
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2646
|
+
orderLimitPerUser: number | null;
|
|
2647
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
2648
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
2649
|
+
isShopCoverExpenses: boolean;
|
|
2650
|
+
firstOrderOnly: boolean;
|
|
2651
|
+
secondaryCurrencyValue?: number | undefined;
|
|
2652
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2653
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2654
|
+
referringUser?: {
|
|
2655
|
+
name?: string | undefined;
|
|
2656
|
+
} | undefined;
|
|
2657
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
2658
|
+
isExpired?: boolean | undefined;
|
|
2659
|
+
shop?: import("mongoose").Types.ObjectId | undefined;
|
|
2660
|
+
vendor?: import("mongoose").Types.ObjectId | undefined;
|
|
2661
|
+
}, {
|
|
2662
|
+
code: string;
|
|
2663
|
+
value: number;
|
|
2664
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2665
|
+
duration: {
|
|
2666
|
+
start: string | Date;
|
|
2667
|
+
end?: string | Date | undefined;
|
|
2668
|
+
};
|
|
2669
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
2670
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2671
|
+
secondaryCurrencyValue?: number | undefined;
|
|
2672
|
+
maxDiscountLimit?: number | null | undefined;
|
|
2673
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2674
|
+
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
2675
|
+
spendLimit?: number | null | undefined;
|
|
2676
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
2677
|
+
totalOrderLimit?: number | null | undefined;
|
|
2678
|
+
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
2679
|
+
minOrderValue?: number | null | undefined;
|
|
2680
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2681
|
+
isMinOrderValueEnabled?: boolean | undefined;
|
|
2682
|
+
forNewUserOnly?: boolean | undefined;
|
|
2683
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
2684
|
+
referringUser?: {
|
|
2685
|
+
name?: string | undefined;
|
|
2686
|
+
} | undefined;
|
|
2687
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1854
2688
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1855
2689
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1856
2690
|
isExpired?: boolean | undefined;
|
|
2691
|
+
shop?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2692
|
+
vendor?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2693
|
+
isShopCoverExpenses?: boolean | undefined;
|
|
2694
|
+
firstOrderOnly?: boolean | undefined;
|
|
1857
2695
|
}>, z.ZodObject<{
|
|
1858
|
-
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
2696
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>;
|
|
2697
|
+
users: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">;
|
|
2698
|
+
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
2699
|
+
shops: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
2700
|
+
vendors: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
1862
2701
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
1863
2702
|
value: z.ZodNumber;
|
|
1864
2703
|
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1924,10 +2763,11 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1924
2763
|
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
1925
2764
|
orderLimitPerUser: number | null;
|
|
1926
2765
|
isOrderLimitPerUserEnabled: boolean;
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
2766
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
2767
|
+
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
2768
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
2769
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
2770
|
+
users: [import("mongoose").Types.ObjectId, ...import("mongoose").Types.ObjectId[]];
|
|
1931
2771
|
secondaryCurrencyValue?: number | undefined;
|
|
1932
2772
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
1933
2773
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
@@ -1944,10 +2784,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1944
2784
|
start: string | Date;
|
|
1945
2785
|
end?: string | Date | undefined;
|
|
1946
2786
|
};
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
referralCodeUsedBy: string | import("mongoose").Types.ObjectId;
|
|
1950
|
-
referralCodeUsedOnOrder: string | import("mongoose").Types.ObjectId;
|
|
2787
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
2788
|
+
users: [string | import("mongoose").Types.ObjectId, ...(string | import("mongoose").Types.ObjectId)[]];
|
|
1951
2789
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1952
2790
|
secondaryCurrencyValue?: number | undefined;
|
|
1953
2791
|
maxDiscountLimit?: number | null | undefined;
|
|
@@ -1969,13 +2807,15 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
1969
2807
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1970
2808
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1971
2809
|
isExpired?: boolean | undefined;
|
|
2810
|
+
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
2811
|
+
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
2812
|
+
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1972
2813
|
}>, z.ZodObject<{
|
|
1973
|
-
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
2814
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>;
|
|
2815
|
+
influencer: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
1974
2816
|
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
1975
2817
|
shops: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
1976
2818
|
vendors: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
1977
|
-
isShopCoverExpenses: z.ZodDefault<z.ZodBoolean>;
|
|
1978
|
-
firstOrderOnly: z.ZodDefault<z.ZodBoolean>;
|
|
1979
2819
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
1980
2820
|
value: z.ZodNumber;
|
|
1981
2821
|
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2041,12 +2881,11 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2041
2881
|
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2042
2882
|
orderLimitPerUser: number | null;
|
|
2043
2883
|
isOrderLimitPerUserEnabled: boolean;
|
|
2044
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
2884
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
2045
2885
|
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
2046
2886
|
shops: import("mongoose").Types.ObjectId[];
|
|
2047
2887
|
vendors: import("mongoose").Types.ObjectId[];
|
|
2048
|
-
|
|
2049
|
-
firstOrderOnly: boolean;
|
|
2888
|
+
influencer: import("mongoose").Types.ObjectId;
|
|
2050
2889
|
secondaryCurrencyValue?: number | undefined;
|
|
2051
2890
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2052
2891
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
@@ -2063,7 +2902,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2063
2902
|
start: string | Date;
|
|
2064
2903
|
end?: string | Date | undefined;
|
|
2065
2904
|
};
|
|
2066
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
2905
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
2906
|
+
influencer: string | import("mongoose").Types.ObjectId;
|
|
2067
2907
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2068
2908
|
secondaryCurrencyValue?: number | undefined;
|
|
2069
2909
|
maxDiscountLimit?: number | null | undefined;
|
|
@@ -2088,59 +2928,113 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2088
2928
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
2089
2929
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
2090
2930
|
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
2100
|
-
value: z.ZodNumber;
|
|
2101
|
-
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
2102
|
-
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2103
|
-
secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodNumber>;
|
|
2104
|
-
isMaxDiscountLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2105
|
-
duration: z.ZodEffects<z.ZodObject<{
|
|
2106
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2107
|
-
end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
|
|
2108
|
-
}, "strip", z.ZodTypeAny, {
|
|
2931
|
+
}>]>, {
|
|
2932
|
+
code: string;
|
|
2933
|
+
value: number;
|
|
2934
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2935
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2936
|
+
maxDiscountLimit: number | null;
|
|
2937
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
2938
|
+
duration: {
|
|
2109
2939
|
start: Date;
|
|
2110
2940
|
end?: Date | undefined;
|
|
2111
|
-
}
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2941
|
+
};
|
|
2942
|
+
spendLimit: number | null;
|
|
2943
|
+
isSpendLimitEnabled: boolean;
|
|
2944
|
+
totalOrderLimit: number | null;
|
|
2945
|
+
isTotalOrderLimitEnabled: boolean;
|
|
2946
|
+
minOrderValue: number | null;
|
|
2947
|
+
isMinOrderValueEnabled: boolean;
|
|
2948
|
+
forNewUserOnly: boolean;
|
|
2949
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2950
|
+
orderLimitPerUser: number | null;
|
|
2951
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
2952
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
2953
|
+
secondaryCurrencyValue?: number | undefined;
|
|
2954
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2955
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2956
|
+
referringUser?: {
|
|
2957
|
+
name?: string | undefined;
|
|
2958
|
+
} | undefined;
|
|
2959
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
2960
|
+
isExpired?: boolean | undefined;
|
|
2961
|
+
} | {
|
|
2962
|
+
code: string;
|
|
2963
|
+
orderLimitPerUser: 1;
|
|
2964
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
2965
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
2966
|
+
referralUser: import("mongoose").Types.ObjectId;
|
|
2967
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
2968
|
+
isExpired?: boolean | undefined;
|
|
2969
|
+
} | {
|
|
2970
|
+
code: string;
|
|
2971
|
+
value: number;
|
|
2972
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2973
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2974
|
+
maxDiscountLimit: number | null;
|
|
2975
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
2976
|
+
duration: {
|
|
2115
2977
|
start: Date;
|
|
2116
2978
|
end?: Date | undefined;
|
|
2117
|
-
}
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2979
|
+
};
|
|
2980
|
+
spendLimit: number | null;
|
|
2981
|
+
isSpendLimitEnabled: boolean;
|
|
2982
|
+
totalOrderLimit: number | null;
|
|
2983
|
+
isTotalOrderLimitEnabled: boolean;
|
|
2984
|
+
minOrderValue: number | null;
|
|
2985
|
+
isMinOrderValueEnabled: boolean;
|
|
2986
|
+
forNewUserOnly: boolean;
|
|
2987
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2988
|
+
orderLimitPerUser: number | null;
|
|
2989
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
2990
|
+
user: import("mongoose").Types.ObjectId;
|
|
2991
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
2992
|
+
referralCodeUsedBy: import("mongoose").Types.ObjectId;
|
|
2993
|
+
referralCodeUsedOnOrder: import("mongoose").Types.ObjectId;
|
|
2994
|
+
secondaryCurrencyValue?: number | undefined;
|
|
2995
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2996
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2997
|
+
referringUser?: {
|
|
2134
2998
|
name?: string | undefined;
|
|
2135
|
-
}
|
|
2999
|
+
} | undefined;
|
|
3000
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
3001
|
+
isExpired?: boolean | undefined;
|
|
3002
|
+
} | {
|
|
3003
|
+
code: string;
|
|
3004
|
+
value: number;
|
|
3005
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
3006
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
3007
|
+
maxDiscountLimit: number | null;
|
|
3008
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
3009
|
+
duration: {
|
|
3010
|
+
start: Date;
|
|
3011
|
+
end?: Date | undefined;
|
|
3012
|
+
};
|
|
3013
|
+
spendLimit: number | null;
|
|
3014
|
+
isSpendLimitEnabled: boolean;
|
|
3015
|
+
totalOrderLimit: number | null;
|
|
3016
|
+
isTotalOrderLimitEnabled: boolean;
|
|
3017
|
+
minOrderValue: number | null;
|
|
3018
|
+
isMinOrderValueEnabled: boolean;
|
|
3019
|
+
forNewUserOnly: boolean;
|
|
3020
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
3021
|
+
orderLimitPerUser: number | null;
|
|
3022
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
3023
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES;
|
|
3024
|
+
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
3025
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
3026
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
3027
|
+
isShopCoverExpenses: boolean;
|
|
3028
|
+
firstOrderOnly: boolean;
|
|
3029
|
+
secondaryCurrencyValue?: number | undefined;
|
|
3030
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
3031
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
3032
|
+
referringUser?: {
|
|
2136
3033
|
name?: string | undefined;
|
|
2137
|
-
}
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2142
|
-
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
2143
|
-
}, "strict", z.ZodTypeAny, {
|
|
3034
|
+
} | undefined;
|
|
3035
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
3036
|
+
isExpired?: boolean | undefined;
|
|
3037
|
+
} | {
|
|
2144
3038
|
code: string;
|
|
2145
3039
|
value: number;
|
|
2146
3040
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
@@ -2172,8 +3066,76 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2172
3066
|
} | undefined;
|
|
2173
3067
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
2174
3068
|
isExpired?: boolean | undefined;
|
|
2175
|
-
shop?: import("mongoose").Types.ObjectId | undefined;
|
|
2176
|
-
vendor?: import("mongoose").Types.ObjectId | undefined;
|
|
3069
|
+
shop?: import("mongoose").Types.ObjectId | undefined;
|
|
3070
|
+
vendor?: import("mongoose").Types.ObjectId | undefined;
|
|
3071
|
+
} | {
|
|
3072
|
+
code: string;
|
|
3073
|
+
value: number;
|
|
3074
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
3075
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
3076
|
+
maxDiscountLimit: number | null;
|
|
3077
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
3078
|
+
duration: {
|
|
3079
|
+
start: Date;
|
|
3080
|
+
end?: Date | undefined;
|
|
3081
|
+
};
|
|
3082
|
+
spendLimit: number | null;
|
|
3083
|
+
isSpendLimitEnabled: boolean;
|
|
3084
|
+
totalOrderLimit: number | null;
|
|
3085
|
+
isTotalOrderLimitEnabled: boolean;
|
|
3086
|
+
minOrderValue: number | null;
|
|
3087
|
+
isMinOrderValueEnabled: boolean;
|
|
3088
|
+
forNewUserOnly: boolean;
|
|
3089
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
3090
|
+
orderLimitPerUser: number | null;
|
|
3091
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
3092
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
3093
|
+
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
3094
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
3095
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
3096
|
+
users: [import("mongoose").Types.ObjectId, ...import("mongoose").Types.ObjectId[]];
|
|
3097
|
+
secondaryCurrencyValue?: number | undefined;
|
|
3098
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
3099
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
3100
|
+
referringUser?: {
|
|
3101
|
+
name?: string | undefined;
|
|
3102
|
+
} | undefined;
|
|
3103
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
3104
|
+
isExpired?: boolean | undefined;
|
|
3105
|
+
} | {
|
|
3106
|
+
code: string;
|
|
3107
|
+
value: number;
|
|
3108
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
3109
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
3110
|
+
maxDiscountLimit: number | null;
|
|
3111
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
3112
|
+
duration: {
|
|
3113
|
+
start: Date;
|
|
3114
|
+
end?: Date | undefined;
|
|
3115
|
+
};
|
|
3116
|
+
spendLimit: number | null;
|
|
3117
|
+
isSpendLimitEnabled: boolean;
|
|
3118
|
+
totalOrderLimit: number | null;
|
|
3119
|
+
isTotalOrderLimitEnabled: boolean;
|
|
3120
|
+
minOrderValue: number | null;
|
|
3121
|
+
isMinOrderValueEnabled: boolean;
|
|
3122
|
+
forNewUserOnly: boolean;
|
|
3123
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
3124
|
+
orderLimitPerUser: number | null;
|
|
3125
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
3126
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
3127
|
+
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
3128
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
3129
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
3130
|
+
influencer: import("mongoose").Types.ObjectId;
|
|
3131
|
+
secondaryCurrencyValue?: number | undefined;
|
|
3132
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
3133
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
3134
|
+
referringUser?: {
|
|
3135
|
+
name?: string | undefined;
|
|
3136
|
+
} | undefined;
|
|
3137
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
3138
|
+
isExpired?: boolean | undefined;
|
|
2177
3139
|
}, {
|
|
2178
3140
|
code: string;
|
|
2179
3141
|
value: number;
|
|
@@ -2182,7 +3144,7 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2182
3144
|
start: string | Date;
|
|
2183
3145
|
end?: string | Date | undefined;
|
|
2184
3146
|
};
|
|
2185
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
3147
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
2186
3148
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2187
3149
|
secondaryCurrencyValue?: number | undefined;
|
|
2188
3150
|
maxDiscountLimit?: number | null | undefined;
|
|
@@ -2204,45 +3166,48 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2204
3166
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
2205
3167
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2206
3168
|
isExpired?: boolean | undefined;
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
3169
|
+
} | {
|
|
3170
|
+
code: string;
|
|
3171
|
+
orderLimitPerUser: 1;
|
|
3172
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
3173
|
+
referralUser: string | import("mongoose").Types.ObjectId;
|
|
3174
|
+
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
3175
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
3176
|
+
isExpired?: boolean | undefined;
|
|
3177
|
+
} | {
|
|
2212
3178
|
code: string;
|
|
2213
3179
|
value: number;
|
|
2214
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2215
3180
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2216
|
-
maxDiscountLimit: number | null;
|
|
2217
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
2218
3181
|
duration: {
|
|
2219
|
-
start: Date;
|
|
2220
|
-
end?: Date | undefined;
|
|
3182
|
+
start: string | Date;
|
|
3183
|
+
end?: string | Date | undefined;
|
|
2221
3184
|
};
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
isMinOrderValueEnabled: boolean;
|
|
2228
|
-
forNewUserOnly: boolean;
|
|
2229
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2230
|
-
orderLimitPerUser: number | null;
|
|
2231
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
2232
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
2233
|
-
isShopCoverExpenses: boolean;
|
|
2234
|
-
firstOrderOnly: boolean;
|
|
3185
|
+
user: string | import("mongoose").Types.ObjectId;
|
|
3186
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
3187
|
+
referralCodeUsedBy: string | import("mongoose").Types.ObjectId;
|
|
3188
|
+
referralCodeUsedOnOrder: string | import("mongoose").Types.ObjectId;
|
|
3189
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2235
3190
|
secondaryCurrencyValue?: number | undefined;
|
|
3191
|
+
maxDiscountLimit?: number | null | undefined;
|
|
2236
3192
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
3193
|
+
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
3194
|
+
spendLimit?: number | null | undefined;
|
|
3195
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
3196
|
+
totalOrderLimit?: number | null | undefined;
|
|
3197
|
+
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
3198
|
+
minOrderValue?: number | null | undefined;
|
|
2237
3199
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
3200
|
+
isMinOrderValueEnabled?: boolean | undefined;
|
|
3201
|
+
forNewUserOnly?: boolean | undefined;
|
|
3202
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
2238
3203
|
referringUser?: {
|
|
2239
3204
|
name?: string | undefined;
|
|
2240
3205
|
} | undefined;
|
|
2241
|
-
|
|
3206
|
+
orderLimitPerUser?: number | null | undefined;
|
|
3207
|
+
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
3208
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2242
3209
|
isExpired?: boolean | undefined;
|
|
2243
|
-
|
|
2244
|
-
vendor?: import("mongoose").Types.ObjectId | undefined;
|
|
2245
|
-
}, {
|
|
3210
|
+
} | {
|
|
2246
3211
|
code: string;
|
|
2247
3212
|
value: number;
|
|
2248
3213
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
@@ -2250,7 +3215,7 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2250
3215
|
start: string | Date;
|
|
2251
3216
|
end?: string | Date | undefined;
|
|
2252
3217
|
};
|
|
2253
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
3218
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES;
|
|
2254
3219
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2255
3220
|
secondaryCurrencyValue?: number | undefined;
|
|
2256
3221
|
maxDiscountLimit?: number | null | undefined;
|
|
@@ -2272,95 +3237,46 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2272
3237
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
2273
3238
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2274
3239
|
isExpired?: boolean | undefined;
|
|
2275
|
-
|
|
2276
|
-
|
|
3240
|
+
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
3241
|
+
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
3242
|
+
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
2277
3243
|
isShopCoverExpenses?: boolean | undefined;
|
|
2278
3244
|
firstOrderOnly?: boolean | undefined;
|
|
2279
|
-
}
|
|
2280
|
-
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>;
|
|
2281
|
-
users: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">;
|
|
2282
|
-
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
2283
|
-
shops: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
2284
|
-
vendors: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
2285
|
-
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
2286
|
-
value: z.ZodNumber;
|
|
2287
|
-
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
2288
|
-
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2289
|
-
secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodNumber>;
|
|
2290
|
-
isMaxDiscountLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2291
|
-
duration: z.ZodEffects<z.ZodObject<{
|
|
2292
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2293
|
-
end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
|
|
2294
|
-
}, "strip", z.ZodTypeAny, {
|
|
2295
|
-
start: Date;
|
|
2296
|
-
end?: Date | undefined;
|
|
2297
|
-
}, {
|
|
2298
|
-
start: string | Date;
|
|
2299
|
-
end?: string | Date | undefined;
|
|
2300
|
-
}>, {
|
|
2301
|
-
start: Date;
|
|
2302
|
-
end?: Date | undefined;
|
|
2303
|
-
}, {
|
|
2304
|
-
start: string | Date;
|
|
2305
|
-
end?: string | Date | undefined;
|
|
2306
|
-
}>;
|
|
2307
|
-
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2308
|
-
isSpendLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2309
|
-
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2310
|
-
isTotalOrderLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2311
|
-
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2312
|
-
secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodNumber>;
|
|
2313
|
-
isMinOrderValueEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2314
|
-
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2315
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
2316
|
-
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
2317
|
-
referringUser: z.ZodOptional<z.ZodObject<{
|
|
2318
|
-
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2319
|
-
}, "strip", z.ZodTypeAny, {
|
|
2320
|
-
name?: string | undefined;
|
|
2321
|
-
}, {
|
|
2322
|
-
name?: string | undefined;
|
|
2323
|
-
}>>;
|
|
2324
|
-
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2325
|
-
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2326
|
-
isOrderLimitPerUserEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2327
|
-
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2328
|
-
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
2329
|
-
}, "strict", z.ZodTypeAny, {
|
|
3245
|
+
} | {
|
|
2330
3246
|
code: string;
|
|
2331
3247
|
value: number;
|
|
2332
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2333
3248
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2334
|
-
maxDiscountLimit: number | null;
|
|
2335
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
2336
3249
|
duration: {
|
|
2337
|
-
start: Date;
|
|
2338
|
-
end?: Date | undefined;
|
|
3250
|
+
start: string | Date;
|
|
3251
|
+
end?: string | Date | undefined;
|
|
2339
3252
|
};
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
totalOrderLimit: number | null;
|
|
2343
|
-
isTotalOrderLimitEnabled: boolean;
|
|
2344
|
-
minOrderValue: number | null;
|
|
2345
|
-
isMinOrderValueEnabled: boolean;
|
|
2346
|
-
forNewUserOnly: boolean;
|
|
2347
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2348
|
-
orderLimitPerUser: number | null;
|
|
2349
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
2350
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
2351
|
-
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
2352
|
-
shops: import("mongoose").Types.ObjectId[];
|
|
2353
|
-
vendors: import("mongoose").Types.ObjectId[];
|
|
2354
|
-
users: [import("mongoose").Types.ObjectId, ...import("mongoose").Types.ObjectId[]];
|
|
3253
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
3254
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2355
3255
|
secondaryCurrencyValue?: number | undefined;
|
|
3256
|
+
maxDiscountLimit?: number | null | undefined;
|
|
2356
3257
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
3258
|
+
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
3259
|
+
spendLimit?: number | null | undefined;
|
|
3260
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
3261
|
+
totalOrderLimit?: number | null | undefined;
|
|
3262
|
+
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
3263
|
+
minOrderValue?: number | null | undefined;
|
|
2357
3264
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
3265
|
+
isMinOrderValueEnabled?: boolean | undefined;
|
|
3266
|
+
forNewUserOnly?: boolean | undefined;
|
|
3267
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
2358
3268
|
referringUser?: {
|
|
2359
3269
|
name?: string | undefined;
|
|
2360
3270
|
} | undefined;
|
|
2361
|
-
|
|
3271
|
+
orderLimitPerUser?: number | null | undefined;
|
|
3272
|
+
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
3273
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2362
3274
|
isExpired?: boolean | undefined;
|
|
2363
|
-
|
|
3275
|
+
shop?: string | import("mongoose").Types.ObjectId | undefined;
|
|
3276
|
+
vendor?: string | import("mongoose").Types.ObjectId | undefined;
|
|
3277
|
+
isShopCoverExpenses?: boolean | undefined;
|
|
3278
|
+
firstOrderOnly?: boolean | undefined;
|
|
3279
|
+
} | {
|
|
2364
3280
|
code: string;
|
|
2365
3281
|
value: number;
|
|
2366
3282
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
@@ -2394,91 +3310,7 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2394
3310
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
2395
3311
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
2396
3312
|
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
2397
|
-
}
|
|
2398
|
-
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>;
|
|
2399
|
-
influencer: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
2400
|
-
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
2401
|
-
shops: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
2402
|
-
vendors: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
2403
|
-
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
2404
|
-
value: z.ZodNumber;
|
|
2405
|
-
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
2406
|
-
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2407
|
-
secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodNumber>;
|
|
2408
|
-
isMaxDiscountLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2409
|
-
duration: z.ZodEffects<z.ZodObject<{
|
|
2410
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2411
|
-
end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
|
|
2412
|
-
}, "strip", z.ZodTypeAny, {
|
|
2413
|
-
start: Date;
|
|
2414
|
-
end?: Date | undefined;
|
|
2415
|
-
}, {
|
|
2416
|
-
start: string | Date;
|
|
2417
|
-
end?: string | Date | undefined;
|
|
2418
|
-
}>, {
|
|
2419
|
-
start: Date;
|
|
2420
|
-
end?: Date | undefined;
|
|
2421
|
-
}, {
|
|
2422
|
-
start: string | Date;
|
|
2423
|
-
end?: string | Date | undefined;
|
|
2424
|
-
}>;
|
|
2425
|
-
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2426
|
-
isSpendLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2427
|
-
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2428
|
-
isTotalOrderLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2429
|
-
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2430
|
-
secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodNumber>;
|
|
2431
|
-
isMinOrderValueEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2432
|
-
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2433
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
2434
|
-
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
2435
|
-
referringUser: z.ZodOptional<z.ZodObject<{
|
|
2436
|
-
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2437
|
-
}, "strip", z.ZodTypeAny, {
|
|
2438
|
-
name?: string | undefined;
|
|
2439
|
-
}, {
|
|
2440
|
-
name?: string | undefined;
|
|
2441
|
-
}>>;
|
|
2442
|
-
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2443
|
-
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2444
|
-
isOrderLimitPerUserEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2445
|
-
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
2446
|
-
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
2447
|
-
}, "strict", z.ZodTypeAny, {
|
|
2448
|
-
code: string;
|
|
2449
|
-
value: number;
|
|
2450
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2451
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2452
|
-
maxDiscountLimit: number | null;
|
|
2453
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
2454
|
-
duration: {
|
|
2455
|
-
start: Date;
|
|
2456
|
-
end?: Date | undefined;
|
|
2457
|
-
};
|
|
2458
|
-
spendLimit: number | null;
|
|
2459
|
-
isSpendLimitEnabled: boolean;
|
|
2460
|
-
totalOrderLimit: number | null;
|
|
2461
|
-
isTotalOrderLimitEnabled: boolean;
|
|
2462
|
-
minOrderValue: number | null;
|
|
2463
|
-
isMinOrderValueEnabled: boolean;
|
|
2464
|
-
forNewUserOnly: boolean;
|
|
2465
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2466
|
-
orderLimitPerUser: number | null;
|
|
2467
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
2468
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
2469
|
-
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
2470
|
-
shops: import("mongoose").Types.ObjectId[];
|
|
2471
|
-
vendors: import("mongoose").Types.ObjectId[];
|
|
2472
|
-
influencer: import("mongoose").Types.ObjectId;
|
|
2473
|
-
secondaryCurrencyValue?: number | undefined;
|
|
2474
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2475
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2476
|
-
referringUser?: {
|
|
2477
|
-
name?: string | undefined;
|
|
2478
|
-
} | undefined;
|
|
2479
|
-
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
2480
|
-
isExpired?: boolean | undefined;
|
|
2481
|
-
}, {
|
|
3313
|
+
} | {
|
|
2482
3314
|
code: string;
|
|
2483
3315
|
value: number;
|
|
2484
3316
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
@@ -2512,7 +3344,7 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2512
3344
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
2513
3345
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
2514
3346
|
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
2515
|
-
}
|
|
3347
|
+
}>;
|
|
2516
3348
|
}, "strip", z.ZodTypeAny, {
|
|
2517
3349
|
_id: import("mongoose").Types.ObjectId;
|
|
2518
3350
|
data: {
|