yt-uikit 0.10.65-progress-css.0 → 0.10.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +94 -94
- package/dist/esm/assets/confetti.d.ts +2 -2
- package/dist/esm/atoms/bundleBuilderProductDetailsAtom.d.ts +4 -4
- package/dist/esm/atoms/cartDataAtom.d.ts +3 -3
- package/dist/esm/atoms/cartLoadingAtom.d.ts +23 -23
- package/dist/esm/atoms/cartTimer.d.ts +2 -2
- package/dist/esm/atoms/dateAtom.d.ts +1 -1
- package/dist/esm/atoms/freebieClaimModalAtom.d.ts +7 -7
- package/dist/esm/atoms/giftWrap.d.ts +2 -2
- package/dist/esm/atoms/gstCompanyNameAtom.d.ts +1 -1
- package/dist/esm/atoms/gstInputAtom.d.ts +1 -1
- package/dist/esm/atoms/maxQtyErrorAtom.d.ts +3 -3
- package/dist/esm/atoms/multiClaimSelectionAtom.d.ts +28 -28
- package/dist/esm/atoms/noteInputAtom.d.ts +3 -3
- package/dist/esm/atoms/postalCodeAtom.d.ts +1 -1
- package/dist/esm/atoms/shippingAtom.d.ts +8 -8
- package/dist/esm/atoms/showGSTInputAtom.d.ts +1 -1
- package/dist/esm/atoms/variantSelectionModalAtom.d.ts +33 -33
- package/dist/esm/components/BundleBlock/Bundle.d.ts +467 -467
- package/dist/esm/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +52 -52
- package/dist/esm/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -9
- package/dist/esm/components/BundleBlock/BundleBuilder/SortAndFilter.d.ts +74 -74
- package/dist/esm/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +30 -30
- package/dist/esm/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +37 -37
- package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +56 -56
- package/dist/esm/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +77 -77
- package/dist/esm/components/BundleBlock/BundleLoaderModal.d.ts +7 -7
- package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +45 -45
- package/dist/esm/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +10 -10
- package/dist/esm/components/BundleBlock/CartATCLoader.d.ts +12 -12
- package/dist/esm/components/BundleBlock/CollectionBundle/CategoryFilter.d.ts +10 -10
- package/dist/esm/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +133 -133
- package/dist/esm/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +16 -16
- package/dist/esm/components/BundleBlock/ComboBundle.d.ts +17 -17
- package/dist/esm/components/BundleBlock/ErrorToast.d.ts +10 -10
- package/dist/esm/components/BundleBlock/FixedBundle/FixedBundle.d.ts +4 -4
- package/dist/esm/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +47 -47
- package/dist/esm/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +23 -23
- package/dist/esm/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +81 -81
- package/dist/esm/components/BundleBlock/Loader.d.ts +5 -5
- package/dist/esm/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +9 -9
- package/dist/esm/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +86 -86
- package/dist/esm/components/BundleBlock/PersonalizationForm/PersonalizationForm.d.ts +35 -35
- package/dist/esm/components/BundleBlock/PersonalizationForm/PersonalizationFormModal.d.ts +24 -24
- package/dist/esm/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +27 -27
- package/dist/esm/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +100 -100
- package/dist/esm/components/BundleBlock/index.d.ts +1 -1
- package/dist/esm/components/Cart/ApplyCoupon.d.ts +13 -13
- package/dist/esm/components/Cart/Bundle.d.ts +6 -6
- package/dist/esm/components/Cart/Cart.d.ts +261 -261
- package/dist/esm/components/Cart/CartDrawer.d.ts +34 -34
- package/dist/esm/components/Cart/CartOffersCarousel.d.ts +48 -48
- package/dist/esm/components/Cart/CartProductsList.d.ts +48 -48
- package/dist/esm/components/Cart/CartTimer.d.ts +8 -8
- package/dist/esm/components/Cart/CheckoutSection.d.ts +48 -48
- package/dist/esm/components/Cart/CouponSelection.d.ts +18 -18
- package/dist/esm/components/Cart/DatePicker.d.ts +10 -10
- package/dist/esm/components/Cart/EmptyCart.d.ts +34 -34
- package/dist/esm/components/Cart/FloatingCart.d.ts +24 -24
- package/dist/esm/components/Cart/FooterSections.d.ts +6 -6
- package/dist/esm/components/Cart/FreebieClaimManager.d.ts +18 -18
- package/dist/esm/components/Cart/FreebieClaimOverlay.d.ts +18 -18
- package/dist/esm/components/Cart/FreebieClaimOverlayCard.d.ts +13 -13
- package/dist/esm/components/Cart/FreebieClaimSection.d.ts +18 -18
- package/dist/esm/components/Cart/FreebieClaimSectionCard.d.ts +19 -19
- package/dist/esm/components/Cart/GSTSection.d.ts +15 -15
- package/dist/esm/components/Cart/GiftWrap.d.ts +15 -15
- package/dist/esm/components/Cart/InlineCartOfferInfoText.d.ts +10 -10
- package/dist/esm/components/Cart/LoyaltyAppliedCTA.d.ts +14 -14
- package/dist/esm/components/Cart/LoyaltyApplyCTA.d.ts +15 -15
- package/dist/esm/components/Cart/LoyaltyBadge.d.ts +11 -11
- package/dist/esm/components/Cart/LoyaltyGuestCTA.d.ts +17 -17
- package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointConfetti.d.ts +11 -11
- package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointIcon.d.ts +3 -3
- package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointTooltip.d.ts +3 -3
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +9 -9
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.d.ts +5 -5
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +45 -45
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +6 -6
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiTierProgressBar.d.ts +4 -4
- package/dist/esm/components/Cart/MultiStepProgressBar/MutiTierNextRewardMessage.d.ts +3 -3
- package/dist/esm/components/Cart/MultiStepProgressBar/NextRewardMessage.d.ts +3 -3
- package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.d.ts +4 -4
- package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +22 -22
- package/dist/esm/components/Cart/MultiStepProgressBar/SingletTierNextRewardMessage.d.ts +3 -3
- package/dist/esm/components/Cart/MultiStepProgressBar/types.d.ts +55 -55
- package/dist/esm/components/Cart/NextFreebieRow.d.ts +21 -21
- package/dist/esm/components/Cart/NoteSection.d.ts +8 -8
- package/dist/esm/components/Cart/ProductCard.d.ts +31 -31
- package/dist/esm/components/Cart/ProductRecCard.d.ts +20 -20
- package/dist/esm/components/Cart/ProductRecList.d.ts +23 -23
- package/dist/esm/components/Cart/ProgressBarCartLoader.d.ts +7 -7
- package/dist/esm/components/Cart/QuantitySelector.d.ts +12 -12
- package/dist/esm/components/Cart/RegionSpecificDelivery.d.ts +17 -17
- package/dist/esm/components/Cart/RewardPointsPreview.d.ts +12 -12
- package/dist/esm/components/Cart/StandardDelivery.d.ts +11 -11
- package/dist/esm/components/Cart/StealDealSection.d.ts +15 -15
- package/dist/esm/components/Cart/StickyCart.d.ts +64 -64
- package/dist/esm/components/Cart/SubtotalSection.d.ts +13 -13
- package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +20 -20
- package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +60 -60
- package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +20 -20
- package/dist/esm/components/Cart/index.d.ts +1 -1
- package/dist/esm/components/Loyalty/ActiveSessionOverlay.d.ts +8 -8
- package/dist/esm/components/Loyalty/BubbleLauncher.d.ts +14 -14
- package/dist/esm/components/Loyalty/GuestDesktop.d.ts +5 -5
- package/dist/esm/components/Loyalty/GuestDesktopWithoutImage.d.ts +7 -7
- package/dist/esm/components/Loyalty/GuestMobile.d.ts +6 -6
- package/dist/esm/components/Loyalty/Loader.d.ts +10 -10
- package/dist/esm/components/Loyalty/LoyaltyProductCatalog.d.ts +69 -69
- package/dist/esm/components/Loyalty/LoyaltyProfile.d.ts +6 -6
- package/dist/esm/components/Loyalty/LoyaltyWidget.d.ts +6 -6
- package/dist/esm/components/Loyalty/OTPComponent.d.ts +20 -20
- package/dist/esm/components/Loyalty/PointEarnBadge.d.ts +15 -15
- package/dist/esm/components/Loyalty/RecentTransactions.d.ts +8 -8
- package/dist/esm/components/Loyalty/RewardsModal.d.ts +13 -13
- package/dist/esm/components/Loyalty/RibbonLauncher.d.ts +12 -12
- package/dist/esm/components/Loyalty/StickyLauncher.d.ts +14 -14
- package/dist/esm/components/Loyalty/StickyTextLauncher.d.ts +2 -2
- package/dist/esm/components/Loyalty/Toast.d.ts +7 -7
- package/dist/esm/components/Loyalty/VIPTiersScreen.d.ts +11 -11
- package/dist/esm/components/Loyalty/WTRCoupon.d.ts +13 -13
- package/dist/esm/components/Loyalty/WaysToEarn.d.ts +33 -33
- package/dist/esm/components/Loyalty/WaysToRedeem.d.ts +106 -106
- package/dist/esm/components/Loyalty/index.d.ts +7 -7
- package/dist/esm/components/Loyalty/loyaltyLauncher.d.ts +19 -19
- package/dist/esm/components/Loyalty/styles/ActiveSession.styles.d.ts +3 -3
- package/dist/esm/components/Loyalty/styles/DobPopup.styles.d.ts +3 -3
- package/dist/esm/components/Loyalty/styles/PointEarnBadge.styles.d.ts +3 -3
- package/dist/esm/components/Loyalty/styles/RecentTransactions.styles.d.ts +6 -6
- package/dist/esm/components/Loyalty/styles/VIPTiers.styles.d.ts +4 -4
- package/dist/esm/components/Loyalty/styles/WaysToRedeem.styles.d.ts +5 -5
- package/dist/esm/components/Loyalty/styles/shared.styles.d.ts +3 -3
- package/dist/esm/components/Loyalty/styles.d.ts +23 -23
- package/dist/esm/components/Loyalty/types.d.ts +414 -414
- package/dist/esm/components/LoyaltyPageBlock/LoyaltyPageBlock.d.ts +219 -160
- package/dist/esm/components/Nudge/LeadGenerationNudge.d.ts +15 -15
- package/dist/esm/components/Nudge/Nudge.d.ts +40 -40
- package/dist/esm/components/Nudge/index.d.ts +1 -1
- package/dist/esm/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -12
- package/dist/esm/components/ProductOffersBlock/ProductOffersList.d.ts +12 -12
- package/dist/esm/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -10
- package/dist/esm/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -10
- package/dist/esm/components/ProductOffersBlock/ProductsOffers.d.ts +42 -42
- package/dist/esm/components/SpinnerWheel/SpinnerWheel.d.ts +23 -23
- package/dist/esm/components/SpinnerWheel/WheelSection.d.ts +9 -9
- package/dist/esm/components/SpinnerWheel/index.d.ts +1 -1
- package/dist/esm/components/index.d.ts +16 -16
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +431 -431
- package/dist/esm/utils/converter.d.ts +3 -3
- package/dist/esm/utils/customVariantOptions.d.ts +21 -21
- package/dist/esm/utils/freebieProductUtils.d.ts +39 -39
- package/dist/esm/utils/freebieUtils.d.ts +11 -11
- package/dist/esm/utils/index.d.ts +16 -16
- package/dist/esm/utils/safeguardDOM.d.ts +5 -5
- package/dist/esm/utils/shopifyAtcBridge.d.ts +43 -43
- package/dist/esm/utils/useMediaQuery.d.ts +1 -1
- package/package.json +98 -98
- /package/dist/esm/{confetti-89678a6f.js → confetti-f3502561.js} +0 -0
|
@@ -1,414 +1,414 @@
|
|
|
1
|
-
import { CouponTemplate, FreebieItem } from "./WaysToRedeem";
|
|
2
|
-
export interface LoyaltyProfileProps {
|
|
3
|
-
isMobile?: boolean;
|
|
4
|
-
previewMode?: boolean;
|
|
5
|
-
bannerBackground?: string;
|
|
6
|
-
bannerBackgroundType?: 'shape' | 'static';
|
|
7
|
-
bannerImage?: string;
|
|
8
|
-
bannerTextColor?: string;
|
|
9
|
-
bannerTextAlignment?: 'start' | 'center' | 'end';
|
|
10
|
-
showWatermark?: boolean;
|
|
11
|
-
watermarkColor?: string;
|
|
12
|
-
themePrimaryColor?: string;
|
|
13
|
-
themeContrastColor?: string;
|
|
14
|
-
themeSecondaryColor?: string;
|
|
15
|
-
themeSecondaryContrastColor?: string;
|
|
16
|
-
themeBackgroundColor?: string;
|
|
17
|
-
themeTextColor?: string;
|
|
18
|
-
themeAccentColor?: string;
|
|
19
|
-
widgetOpen?: boolean;
|
|
20
|
-
widgetPosition?: 'start' | 'center' | 'end';
|
|
21
|
-
widgetRoundedCorners?: boolean;
|
|
22
|
-
ctaPrimaryColor?: string;
|
|
23
|
-
ctaPrimaryContrastColor?: string;
|
|
24
|
-
ctaBorderColor?: string;
|
|
25
|
-
ctaSecondaryColor?: string;
|
|
26
|
-
ctaSecondaryContrastColor?: string;
|
|
27
|
-
ctaShowIcon?: boolean;
|
|
28
|
-
ctaBorderRadius?: string;
|
|
29
|
-
showWaysToEarn?: boolean;
|
|
30
|
-
showWaysToRedeem?: boolean;
|
|
31
|
-
showWCoinValue?: boolean;
|
|
32
|
-
showReferral?: boolean;
|
|
33
|
-
referralLocked?: boolean;
|
|
34
|
-
showTransactions?: boolean;
|
|
35
|
-
showVipSection?: boolean;
|
|
36
|
-
showLogo?: boolean;
|
|
37
|
-
brandName?: string;
|
|
38
|
-
headingEyebrow?: string;
|
|
39
|
-
userGreeting?: string;
|
|
40
|
-
balanceCoins?: number | string;
|
|
41
|
-
maxRedeemableCoins?: number | string;
|
|
42
|
-
redemptionMovRequired?: number | string;
|
|
43
|
-
coinValInr?: number | string;
|
|
44
|
-
coinIcon?: string;
|
|
45
|
-
currencyCode?: string;
|
|
46
|
-
tokenName?: string;
|
|
47
|
-
brandLogoUrl?: string;
|
|
48
|
-
rateTitle?: string;
|
|
49
|
-
rateSub?: string;
|
|
50
|
-
couponHeading?: string;
|
|
51
|
-
couponCode?: string;
|
|
52
|
-
couponImage?: string;
|
|
53
|
-
onCouponAvail: (couponTemplateId: number) => Promise<CouponAvailResponse>;
|
|
54
|
-
couponList?: CouponTemplate[];
|
|
55
|
-
freebies?: FreebieItem[];
|
|
56
|
-
referralLink?: string;
|
|
57
|
-
userRewardTier?: UserRewardTier;
|
|
58
|
-
brandRewardTiers?: RewardTier[];
|
|
59
|
-
userData?: UserData;
|
|
60
|
-
activityRewards?: BrandActivityRewardSettings;
|
|
61
|
-
brandRewardProgram: BrandRewardProgram;
|
|
62
|
-
recentTransactionsData?: RecentTransactionsData;
|
|
63
|
-
customCss?: string;
|
|
64
|
-
enableCustomCss?: boolean;
|
|
65
|
-
/** Raw HTML string rendered as a block after all profile sections. */
|
|
66
|
-
customHTML?: string;
|
|
67
|
-
onBirthdayUpdate: (date: string) => Promise<boolean>;
|
|
68
|
-
onSocialClick: (url: string, type: string) => Promise<boolean>;
|
|
69
|
-
onFeedbackRewardClick?: (url: string, type?: "feedback" | "image_feedback") => Promise<boolean>;
|
|
70
|
-
isLoading: boolean;
|
|
71
|
-
onWaysToRedeem?: () => void;
|
|
72
|
-
onClose?: () => void;
|
|
73
|
-
onLogout?: () => void;
|
|
74
|
-
}
|
|
75
|
-
export interface RewardsModalProps {
|
|
76
|
-
isLoading?: boolean;
|
|
77
|
-
themeBackgroundColor?: string;
|
|
78
|
-
themeTextColor?: string;
|
|
79
|
-
themeAccentColor?: string;
|
|
80
|
-
bannerBackground?: string;
|
|
81
|
-
bannerBackgroundType?: 'shape' | 'static';
|
|
82
|
-
bannerImage?: string;
|
|
83
|
-
bannerTextColor?: string;
|
|
84
|
-
watermarkColor?: string;
|
|
85
|
-
widgetRoundedCorners?: boolean;
|
|
86
|
-
guestWidgetImage?: string;
|
|
87
|
-
bannerTextAlignment?: 'start' | 'center' | 'end';
|
|
88
|
-
showWatermark?: boolean;
|
|
89
|
-
showLogo?: boolean;
|
|
90
|
-
logourl?: string;
|
|
91
|
-
guestGreeting?: string;
|
|
92
|
-
existingUserGreeting?: string;
|
|
93
|
-
phone?: string;
|
|
94
|
-
email?: string;
|
|
95
|
-
emailRequired?: boolean;
|
|
96
|
-
validatePhone?: (newVal: boolean) => void;
|
|
97
|
-
setEmailRequired?: (newVal: boolean) => void;
|
|
98
|
-
onPhoneChange?: (newVal: string) => void;
|
|
99
|
-
onEmailChange?: (newVal: string) => void;
|
|
100
|
-
onClose?: () => void;
|
|
101
|
-
onRegister?: (val?: string) => Promise<boolean>;
|
|
102
|
-
handleChangeNumber?: () => void;
|
|
103
|
-
handleResendOtp?: () => void;
|
|
104
|
-
handleSessionDetected?: () => void;
|
|
105
|
-
onSendOTP?: () => Promise<boolean>;
|
|
106
|
-
isSessionDetected?: boolean;
|
|
107
|
-
authType?: 'default' | 'phone' | 'ytAuth' | 'email';
|
|
108
|
-
formFilled?: boolean;
|
|
109
|
-
redirectUrl?: string;
|
|
110
|
-
ctaTitle?: string;
|
|
111
|
-
ctaMainColor?: string;
|
|
112
|
-
ctaMainContrastColor?: string;
|
|
113
|
-
ctaPrimaryColor?: string;
|
|
114
|
-
ctaPrimaryContrastColor?: string;
|
|
115
|
-
registerLink?: string;
|
|
116
|
-
brandTitle?: string;
|
|
117
|
-
brandLogoUrl?: string;
|
|
118
|
-
widgetOpen?: boolean;
|
|
119
|
-
heading?: string;
|
|
120
|
-
subcopy?: string;
|
|
121
|
-
termsHref?: string;
|
|
122
|
-
privacyHref?: string;
|
|
123
|
-
styleVars?: Record<string, string>;
|
|
124
|
-
countryCode?: string;
|
|
125
|
-
isMobilePreview?: boolean;
|
|
126
|
-
viewportMode?: "auto" | "mobile" | "desktop";
|
|
127
|
-
}
|
|
128
|
-
export interface AvailableDiscount {
|
|
129
|
-
discountCode: string;
|
|
130
|
-
discountValueInInr: string;
|
|
131
|
-
__entity?: 'Discount' | string;
|
|
132
|
-
}
|
|
133
|
-
export interface CatalogDealsProductsPayload {
|
|
134
|
-
productGid: string;
|
|
135
|
-
variantGid: string;
|
|
136
|
-
}
|
|
137
|
-
export interface CustomBenefitPayload {
|
|
138
|
-
title: string;
|
|
139
|
-
value?: string;
|
|
140
|
-
description?: string;
|
|
141
|
-
icon?: string;
|
|
142
|
-
}
|
|
143
|
-
export interface RewardTier {
|
|
144
|
-
id: number;
|
|
145
|
-
name: string;
|
|
146
|
-
brandId: number;
|
|
147
|
-
rewardMultiplier: number;
|
|
148
|
-
redemptionMultiplier: number;
|
|
149
|
-
rewardTierCriteria: "ltv" | "loyalty_points" | "payment" | null;
|
|
150
|
-
minimumLtvRequired: number | null;
|
|
151
|
-
minimumLoyaltyPointsRequired: number | null;
|
|
152
|
-
loyaltyRewardMultiplier: number | null;
|
|
153
|
-
birthdayRewardMultiplier: number | null;
|
|
154
|
-
socialTwitterRewardMultiplier: number | null;
|
|
155
|
-
socialInstagramRewardMultiplier: number | null;
|
|
156
|
-
socialFacebookRewardMultiplier: number | null;
|
|
157
|
-
socialYoutubeRewardMultiplier: number | null;
|
|
158
|
-
referrerOrderRewardMultiplier: number | null;
|
|
159
|
-
icon: string | null;
|
|
160
|
-
benefits: Record<string, unknown>;
|
|
161
|
-
createdAt: string;
|
|
162
|
-
updatedAt: string;
|
|
163
|
-
expiresInDays: number | null;
|
|
164
|
-
membershipEligibilityProductId: string | null;
|
|
165
|
-
shopifyCustomerTags: {
|
|
166
|
-
tags: string[];
|
|
167
|
-
};
|
|
168
|
-
isActive: boolean;
|
|
169
|
-
couponTemplateId: number | null;
|
|
170
|
-
purchaseValueMethod?: "order_count" | "purchase_value" | null;
|
|
171
|
-
paidMethod?: "purchase_in_cash" | "purchase_in_points" | null;
|
|
172
|
-
period?: "lifetime" | "annual" | "custom" | null;
|
|
173
|
-
periodDurationInMonths?: number | null;
|
|
174
|
-
continuationCriteria?: number | null;
|
|
175
|
-
minimumOrderCountRequired?: number | null;
|
|
176
|
-
minimumOrderValueRequired?: number | null;
|
|
177
|
-
minimumCashRequired?: number | null;
|
|
178
|
-
minimumPointsRequired?: number | null;
|
|
179
|
-
tierThemeColor?: string | null;
|
|
180
|
-
widgetVisibility?: boolean | null;
|
|
181
|
-
membershipTierProductTitle?: string | null;
|
|
182
|
-
membershipTierProductDescription?: string | null;
|
|
183
|
-
membershipTierProductMedia?: string | null;
|
|
184
|
-
customBenefits?: CustomBenefitPayload[] | null;
|
|
185
|
-
catalogDealsProducts?: CatalogDealsProductsPayload[];
|
|
186
|
-
}
|
|
187
|
-
export type UserRewardTier = {
|
|
188
|
-
currentPoints?: number;
|
|
189
|
-
totalOrders?: number;
|
|
190
|
-
currentLtv?: number;
|
|
191
|
-
currentTier: RewardTier | null;
|
|
192
|
-
nextTier: RewardTier | null;
|
|
193
|
-
};
|
|
194
|
-
export interface UserData {
|
|
195
|
-
id: number;
|
|
196
|
-
points: number;
|
|
197
|
-
aggregatedPoints: number;
|
|
198
|
-
previouslyOrdered: boolean;
|
|
199
|
-
__entity?: 'UserBrandLink' | string;
|
|
200
|
-
availableDiscount?: AvailableDiscount | null;
|
|
201
|
-
hasSetBirthday: boolean;
|
|
202
|
-
hasFollowedOnInstagram: boolean;
|
|
203
|
-
hasLikedOnFacebook: boolean;
|
|
204
|
-
hasSharedOnFacebook: boolean;
|
|
205
|
-
hasFollowedOnTwitter: boolean;
|
|
206
|
-
hasSubscribedOnYoutube: boolean;
|
|
207
|
-
hasClickedOnCustomLink: boolean;
|
|
208
|
-
hasAvailedFirstOrderReward: boolean;
|
|
209
|
-
hasAvailedSecondOrderReward: boolean;
|
|
210
|
-
}
|
|
211
|
-
export interface BrandRewardProgram {
|
|
212
|
-
id: number;
|
|
213
|
-
brandId: number;
|
|
214
|
-
programStatus: boolean;
|
|
215
|
-
programIcon: string;
|
|
216
|
-
programAuthType: string;
|
|
217
|
-
programTitle: string;
|
|
218
|
-
programVisibility: boolean;
|
|
219
|
-
pointsValueInInr: number;
|
|
220
|
-
coinName: string;
|
|
221
|
-
organizationIdSync: boolean;
|
|
222
|
-
orderCreditCriteria: string;
|
|
223
|
-
orderCreditStatus: boolean;
|
|
224
|
-
orderCreditType: string;
|
|
225
|
-
orderCreditValue: number;
|
|
226
|
-
orderCreditMethodRestriction: string;
|
|
227
|
-
orderCreditProductRestriction: any[];
|
|
228
|
-
coinExpirationPeriod: number;
|
|
229
|
-
redemptionMethod: string;
|
|
230
|
-
redemptionValue: number;
|
|
231
|
-
redemptionStatus: boolean;
|
|
232
|
-
redemptionIcon: string;
|
|
233
|
-
redemptionMaxPoints: number;
|
|
234
|
-
redemptionMovRequired: number;
|
|
235
|
-
redemptionMinimumOrderValue?: number;
|
|
236
|
-
redemptionMinimumOrderValueStatus?: boolean;
|
|
237
|
-
redemptionCodeCombination: boolean;
|
|
238
|
-
orderRewardCreditReversal: boolean;
|
|
239
|
-
orderRewardRedemtionReversal: boolean;
|
|
240
|
-
createdAt: string;
|
|
241
|
-
updatedAt: string;
|
|
242
|
-
deletedAt: string | null;
|
|
243
|
-
__entity: string;
|
|
244
|
-
}
|
|
245
|
-
export interface CreditOnActivitiesProperties {
|
|
246
|
-
customLink: ActivityProperty;
|
|
247
|
-
twitterLike: ActivityProperty;
|
|
248
|
-
youtubeLike: ActivityProperty;
|
|
249
|
-
facebookLike: ActivityProperty;
|
|
250
|
-
referralRewardConfig?: ReferralRewardConfig;
|
|
251
|
-
signUpReward: SignUpRewardProperty;
|
|
252
|
-
twitterShare: ActivityProperty;
|
|
253
|
-
youtubeShare: ActivityProperty;
|
|
254
|
-
facebookShare: ActivityProperty;
|
|
255
|
-
instagramLike: ActivityProperty;
|
|
256
|
-
twitterFollow: ActivityProperty;
|
|
257
|
-
birthdayReward: BirthdayRewardProperty;
|
|
258
|
-
facebookFollow: ActivityProperty;
|
|
259
|
-
feedbackReward: FeedbackRewardProperty;
|
|
260
|
-
instagramFollow: ActivityProperty;
|
|
261
|
-
firstOrderReward: FirstOrderRewardProperty;
|
|
262
|
-
secondOrderReward: SecondOrderRewardProperty;
|
|
263
|
-
youtubeSubscription: ActivityProperty;
|
|
264
|
-
}
|
|
265
|
-
export interface SignUpRewardProperty extends WidgetActivityProperty {
|
|
266
|
-
restrictOnReferralReward?: boolean;
|
|
267
|
-
}
|
|
268
|
-
export interface FeedbackRewardProperty extends WidgetActivityProperty {
|
|
269
|
-
creditCriteria?: string;
|
|
270
|
-
url?: string;
|
|
271
|
-
limitToOneTimePerOrder?: boolean;
|
|
272
|
-
}
|
|
273
|
-
export interface FirstOrderRewardProperty extends WidgetActivityProperty {
|
|
274
|
-
type?: string;
|
|
275
|
-
restrictFirstOrderReward?: boolean;
|
|
276
|
-
restrictOnReferralReward?: boolean;
|
|
277
|
-
}
|
|
278
|
-
export interface SecondOrderRewardProperty extends WidgetActivityProperty {
|
|
279
|
-
type?: string;
|
|
280
|
-
restrictPurchaseReward?: boolean;
|
|
281
|
-
}
|
|
282
|
-
export interface BrandActivityRewardSettings {
|
|
283
|
-
id: number;
|
|
284
|
-
brandId: number;
|
|
285
|
-
programId: number;
|
|
286
|
-
creditOnActivitiesProperties: CreditOnActivitiesProperties;
|
|
287
|
-
creditOnSignupValue: number | null;
|
|
288
|
-
creditOnFirstOrderValue: number | null;
|
|
289
|
-
creditOnSecondOrderValue: number | null;
|
|
290
|
-
creditOnFeedbackValue: number | null;
|
|
291
|
-
creditOnImageFeedbackValue?: number | null;
|
|
292
|
-
creditOnBirthdayValue: number | null;
|
|
293
|
-
creditOnInstagramFollowValue: number | null;
|
|
294
|
-
creditOnInstagramShareValue: number | null;
|
|
295
|
-
creditOnInstagramLikeValue: number | null;
|
|
296
|
-
creditOnFacebookFollowValue: number | null;
|
|
297
|
-
creditOnFacebookShareValue: number | null;
|
|
298
|
-
creditOnFacebookLikeValue: number | null;
|
|
299
|
-
creditOnTwitterFollowValue: number | null;
|
|
300
|
-
creditOnTwitterShareValue: number | null;
|
|
301
|
-
creditOnTwitterLikeValue: number | null;
|
|
302
|
-
creditOnYouTubeSubscriptionValue: number | null;
|
|
303
|
-
creditOnYouTubeLikeValue: number | null;
|
|
304
|
-
creditOnYouTubeShareValue: number | null;
|
|
305
|
-
creditOnCustomLinkValue: number | null;
|
|
306
|
-
createdAt: string;
|
|
307
|
-
updatedAt: string;
|
|
308
|
-
deletedAt: string | null;
|
|
309
|
-
__entity: string;
|
|
310
|
-
}
|
|
311
|
-
export interface ActivityProperty {
|
|
312
|
-
url?: string;
|
|
313
|
-
icon?: string;
|
|
314
|
-
status?: boolean;
|
|
315
|
-
enabled?: boolean;
|
|
316
|
-
offerTitle?: string;
|
|
317
|
-
}
|
|
318
|
-
export interface WidgetActivityProperty {
|
|
319
|
-
icon?: string;
|
|
320
|
-
status?: boolean;
|
|
321
|
-
enabled?: boolean;
|
|
322
|
-
offerTitle?: string;
|
|
323
|
-
widgetVisibility?: boolean;
|
|
324
|
-
}
|
|
325
|
-
export interface BirthdayRewardProperty extends WidgetActivityProperty {
|
|
326
|
-
type?: string;
|
|
327
|
-
}
|
|
328
|
-
export interface ReferralRewardConfig {
|
|
329
|
-
enabled?: boolean;
|
|
330
|
-
shareMethod?: "referral_code" | "referral_url";
|
|
331
|
-
codePrefix?: string;
|
|
332
|
-
campaignVisibility?: "ways_to_earn" | "details" | "both";
|
|
333
|
-
offerTitle?: string;
|
|
334
|
-
offerIcon?: string;
|
|
335
|
-
customizeReferralSectionContent?: boolean;
|
|
336
|
-
referrerReward?: ReferralRewardDetails;
|
|
337
|
-
refereeReward?: ReferralRewardDetails;
|
|
338
|
-
}
|
|
339
|
-
export interface ReferralRewardDetails {
|
|
340
|
-
enabled?: boolean;
|
|
341
|
-
method?: "points" | "discount_code" | "freebie";
|
|
342
|
-
completionCriteria?: "signup" | "purchase" | "first_order";
|
|
343
|
-
pointsConfig?: {
|
|
344
|
-
points: number;
|
|
345
|
-
} | null;
|
|
346
|
-
discountConfig?: {
|
|
347
|
-
type: "percentage_off" | "fixed_amount" | "referee_order_value";
|
|
348
|
-
value: number;
|
|
349
|
-
expiresInDays?: number | null;
|
|
350
|
-
appliesTo: {
|
|
351
|
-
type: "all_products" | "collections";
|
|
352
|
-
collectionIds?: string[];
|
|
353
|
-
};
|
|
354
|
-
} | null;
|
|
355
|
-
freebieConfig?: {
|
|
356
|
-
freebieType?: string;
|
|
357
|
-
} | null;
|
|
358
|
-
}
|
|
359
|
-
export type RecentTransactionType = "earned" | "expired" | "availed";
|
|
360
|
-
export type RecentTransactionActivityType = "order" | "first_order" | "second_order" | "signup" | "bulk_insert_signup" | "birthday" | "referral_signup" | "referral_first_order" | "referee_signup" | "referee_first_order" | "referee_order" | "social_instagram" | "social_facebook" | "social_facebook_like" | "social_facebook_share" | "social_twitter" | "social_youtube" | "social_custom_link" | "review_comment" | "segment_reward" | "admin_balance_update" | "consumer_balance_increase" | "consumer_balance_decrease" | "membership_tier_acquisition" | "catalog_offer_redemption" | "discount_creation" | "consumer_discount_creation" | "points_expiration";
|
|
361
|
-
export type RecentTransactionCriteria = "payment" | "shipment" | "delivery" | "payment+shipment" | "payment+delivery";
|
|
362
|
-
export type RecentTransactionOrderStatus = "awaiting_payment" | "confirmed" | "in_transit" | "delivered" | "processing";
|
|
363
|
-
export interface RecentTransactionApiItem {
|
|
364
|
-
id: string;
|
|
365
|
-
type: RecentTransactionType;
|
|
366
|
-
activityType: RecentTransactionActivityType;
|
|
367
|
-
points: number;
|
|
368
|
-
createdAt: string;
|
|
369
|
-
}
|
|
370
|
-
export interface RecentTransactionPendingItem {
|
|
371
|
-
id: string;
|
|
372
|
-
points: number;
|
|
373
|
-
activityType: RecentTransactionActivityType;
|
|
374
|
-
orderId?: string;
|
|
375
|
-
criteria?: RecentTransactionCriteria;
|
|
376
|
-
orderStatus?: RecentTransactionOrderStatus;
|
|
377
|
-
createdAt: string;
|
|
378
|
-
}
|
|
379
|
-
export interface RecentTransactionSummary {
|
|
380
|
-
totalSaved: number;
|
|
381
|
-
totalEarned: number;
|
|
382
|
-
totalAvailed: number;
|
|
383
|
-
totalExpired: number;
|
|
384
|
-
}
|
|
385
|
-
export interface RecentTransactionsData {
|
|
386
|
-
summary: RecentTransactionSummary;
|
|
387
|
-
pending?: RecentTransactionPendingItem[];
|
|
388
|
-
transactions: RecentTransactionApiItem[];
|
|
389
|
-
}
|
|
390
|
-
export interface CouponAvailResponse {
|
|
391
|
-
discountCode: string;
|
|
392
|
-
discountValueInInr: number;
|
|
393
|
-
expiresAt: string;
|
|
394
|
-
shopifyStoreId: string;
|
|
395
|
-
brandId: number;
|
|
396
|
-
userId: number;
|
|
397
|
-
couponTemplateId: number;
|
|
398
|
-
discountType: string;
|
|
399
|
-
shopifyDiscountCodeId: string;
|
|
400
|
-
creationMethod: string;
|
|
401
|
-
discountPercentage: number | null;
|
|
402
|
-
expiredAt: string | null;
|
|
403
|
-
discountUsageCount: number | null;
|
|
404
|
-
isUsed: boolean;
|
|
405
|
-
minPurchaseAmount: number | null;
|
|
406
|
-
freeProductId: number | null;
|
|
407
|
-
metafieldId: number | null;
|
|
408
|
-
metafieldJsonValue: any | null;
|
|
409
|
-
discountId: number;
|
|
410
|
-
isActive: boolean;
|
|
411
|
-
deletedAt: string | null;
|
|
412
|
-
createdAt: string;
|
|
413
|
-
updatedAt: string;
|
|
414
|
-
}
|
|
1
|
+
import { CouponTemplate, FreebieItem } from "./WaysToRedeem";
|
|
2
|
+
export interface LoyaltyProfileProps {
|
|
3
|
+
isMobile?: boolean;
|
|
4
|
+
previewMode?: boolean;
|
|
5
|
+
bannerBackground?: string;
|
|
6
|
+
bannerBackgroundType?: 'shape' | 'static';
|
|
7
|
+
bannerImage?: string;
|
|
8
|
+
bannerTextColor?: string;
|
|
9
|
+
bannerTextAlignment?: 'start' | 'center' | 'end';
|
|
10
|
+
showWatermark?: boolean;
|
|
11
|
+
watermarkColor?: string;
|
|
12
|
+
themePrimaryColor?: string;
|
|
13
|
+
themeContrastColor?: string;
|
|
14
|
+
themeSecondaryColor?: string;
|
|
15
|
+
themeSecondaryContrastColor?: string;
|
|
16
|
+
themeBackgroundColor?: string;
|
|
17
|
+
themeTextColor?: string;
|
|
18
|
+
themeAccentColor?: string;
|
|
19
|
+
widgetOpen?: boolean;
|
|
20
|
+
widgetPosition?: 'start' | 'center' | 'end';
|
|
21
|
+
widgetRoundedCorners?: boolean;
|
|
22
|
+
ctaPrimaryColor?: string;
|
|
23
|
+
ctaPrimaryContrastColor?: string;
|
|
24
|
+
ctaBorderColor?: string;
|
|
25
|
+
ctaSecondaryColor?: string;
|
|
26
|
+
ctaSecondaryContrastColor?: string;
|
|
27
|
+
ctaShowIcon?: boolean;
|
|
28
|
+
ctaBorderRadius?: string;
|
|
29
|
+
showWaysToEarn?: boolean;
|
|
30
|
+
showWaysToRedeem?: boolean;
|
|
31
|
+
showWCoinValue?: boolean;
|
|
32
|
+
showReferral?: boolean;
|
|
33
|
+
referralLocked?: boolean;
|
|
34
|
+
showTransactions?: boolean;
|
|
35
|
+
showVipSection?: boolean;
|
|
36
|
+
showLogo?: boolean;
|
|
37
|
+
brandName?: string;
|
|
38
|
+
headingEyebrow?: string;
|
|
39
|
+
userGreeting?: string;
|
|
40
|
+
balanceCoins?: number | string;
|
|
41
|
+
maxRedeemableCoins?: number | string;
|
|
42
|
+
redemptionMovRequired?: number | string;
|
|
43
|
+
coinValInr?: number | string;
|
|
44
|
+
coinIcon?: string;
|
|
45
|
+
currencyCode?: string;
|
|
46
|
+
tokenName?: string;
|
|
47
|
+
brandLogoUrl?: string;
|
|
48
|
+
rateTitle?: string;
|
|
49
|
+
rateSub?: string;
|
|
50
|
+
couponHeading?: string;
|
|
51
|
+
couponCode?: string;
|
|
52
|
+
couponImage?: string;
|
|
53
|
+
onCouponAvail: (couponTemplateId: number) => Promise<CouponAvailResponse>;
|
|
54
|
+
couponList?: CouponTemplate[];
|
|
55
|
+
freebies?: FreebieItem[];
|
|
56
|
+
referralLink?: string;
|
|
57
|
+
userRewardTier?: UserRewardTier;
|
|
58
|
+
brandRewardTiers?: RewardTier[];
|
|
59
|
+
userData?: UserData;
|
|
60
|
+
activityRewards?: BrandActivityRewardSettings;
|
|
61
|
+
brandRewardProgram: BrandRewardProgram;
|
|
62
|
+
recentTransactionsData?: RecentTransactionsData;
|
|
63
|
+
customCss?: string;
|
|
64
|
+
enableCustomCss?: boolean;
|
|
65
|
+
/** Raw HTML string rendered as a block after all profile sections. */
|
|
66
|
+
customHTML?: string;
|
|
67
|
+
onBirthdayUpdate: (date: string) => Promise<boolean>;
|
|
68
|
+
onSocialClick: (url: string, type: string) => Promise<boolean>;
|
|
69
|
+
onFeedbackRewardClick?: (url: string, type?: "feedback" | "image_feedback") => Promise<boolean>;
|
|
70
|
+
isLoading: boolean;
|
|
71
|
+
onWaysToRedeem?: () => void;
|
|
72
|
+
onClose?: () => void;
|
|
73
|
+
onLogout?: () => void;
|
|
74
|
+
}
|
|
75
|
+
export interface RewardsModalProps {
|
|
76
|
+
isLoading?: boolean;
|
|
77
|
+
themeBackgroundColor?: string;
|
|
78
|
+
themeTextColor?: string;
|
|
79
|
+
themeAccentColor?: string;
|
|
80
|
+
bannerBackground?: string;
|
|
81
|
+
bannerBackgroundType?: 'shape' | 'static';
|
|
82
|
+
bannerImage?: string;
|
|
83
|
+
bannerTextColor?: string;
|
|
84
|
+
watermarkColor?: string;
|
|
85
|
+
widgetRoundedCorners?: boolean;
|
|
86
|
+
guestWidgetImage?: string;
|
|
87
|
+
bannerTextAlignment?: 'start' | 'center' | 'end';
|
|
88
|
+
showWatermark?: boolean;
|
|
89
|
+
showLogo?: boolean;
|
|
90
|
+
logourl?: string;
|
|
91
|
+
guestGreeting?: string;
|
|
92
|
+
existingUserGreeting?: string;
|
|
93
|
+
phone?: string;
|
|
94
|
+
email?: string;
|
|
95
|
+
emailRequired?: boolean;
|
|
96
|
+
validatePhone?: (newVal: boolean) => void;
|
|
97
|
+
setEmailRequired?: (newVal: boolean) => void;
|
|
98
|
+
onPhoneChange?: (newVal: string) => void;
|
|
99
|
+
onEmailChange?: (newVal: string) => void;
|
|
100
|
+
onClose?: () => void;
|
|
101
|
+
onRegister?: (val?: string) => Promise<boolean>;
|
|
102
|
+
handleChangeNumber?: () => void;
|
|
103
|
+
handleResendOtp?: () => void;
|
|
104
|
+
handleSessionDetected?: () => void;
|
|
105
|
+
onSendOTP?: () => Promise<boolean>;
|
|
106
|
+
isSessionDetected?: boolean;
|
|
107
|
+
authType?: 'default' | 'phone' | 'ytAuth' | 'email';
|
|
108
|
+
formFilled?: boolean;
|
|
109
|
+
redirectUrl?: string;
|
|
110
|
+
ctaTitle?: string;
|
|
111
|
+
ctaMainColor?: string;
|
|
112
|
+
ctaMainContrastColor?: string;
|
|
113
|
+
ctaPrimaryColor?: string;
|
|
114
|
+
ctaPrimaryContrastColor?: string;
|
|
115
|
+
registerLink?: string;
|
|
116
|
+
brandTitle?: string;
|
|
117
|
+
brandLogoUrl?: string;
|
|
118
|
+
widgetOpen?: boolean;
|
|
119
|
+
heading?: string;
|
|
120
|
+
subcopy?: string;
|
|
121
|
+
termsHref?: string;
|
|
122
|
+
privacyHref?: string;
|
|
123
|
+
styleVars?: Record<string, string>;
|
|
124
|
+
countryCode?: string;
|
|
125
|
+
isMobilePreview?: boolean;
|
|
126
|
+
viewportMode?: "auto" | "mobile" | "desktop";
|
|
127
|
+
}
|
|
128
|
+
export interface AvailableDiscount {
|
|
129
|
+
discountCode: string;
|
|
130
|
+
discountValueInInr: string;
|
|
131
|
+
__entity?: 'Discount' | string;
|
|
132
|
+
}
|
|
133
|
+
export interface CatalogDealsProductsPayload {
|
|
134
|
+
productGid: string;
|
|
135
|
+
variantGid: string;
|
|
136
|
+
}
|
|
137
|
+
export interface CustomBenefitPayload {
|
|
138
|
+
title: string;
|
|
139
|
+
value?: string;
|
|
140
|
+
description?: string;
|
|
141
|
+
icon?: string;
|
|
142
|
+
}
|
|
143
|
+
export interface RewardTier {
|
|
144
|
+
id: number;
|
|
145
|
+
name: string;
|
|
146
|
+
brandId: number;
|
|
147
|
+
rewardMultiplier: number;
|
|
148
|
+
redemptionMultiplier: number;
|
|
149
|
+
rewardTierCriteria: "ltv" | "loyalty_points" | "payment" | null;
|
|
150
|
+
minimumLtvRequired: number | null;
|
|
151
|
+
minimumLoyaltyPointsRequired: number | null;
|
|
152
|
+
loyaltyRewardMultiplier: number | null;
|
|
153
|
+
birthdayRewardMultiplier: number | null;
|
|
154
|
+
socialTwitterRewardMultiplier: number | null;
|
|
155
|
+
socialInstagramRewardMultiplier: number | null;
|
|
156
|
+
socialFacebookRewardMultiplier: number | null;
|
|
157
|
+
socialYoutubeRewardMultiplier: number | null;
|
|
158
|
+
referrerOrderRewardMultiplier: number | null;
|
|
159
|
+
icon: string | null;
|
|
160
|
+
benefits: Record<string, unknown>;
|
|
161
|
+
createdAt: string;
|
|
162
|
+
updatedAt: string;
|
|
163
|
+
expiresInDays: number | null;
|
|
164
|
+
membershipEligibilityProductId: string | null;
|
|
165
|
+
shopifyCustomerTags: {
|
|
166
|
+
tags: string[];
|
|
167
|
+
};
|
|
168
|
+
isActive: boolean;
|
|
169
|
+
couponTemplateId: number | null;
|
|
170
|
+
purchaseValueMethod?: "order_count" | "purchase_value" | null;
|
|
171
|
+
paidMethod?: "purchase_in_cash" | "purchase_in_points" | null;
|
|
172
|
+
period?: "lifetime" | "annual" | "custom" | null;
|
|
173
|
+
periodDurationInMonths?: number | null;
|
|
174
|
+
continuationCriteria?: number | null;
|
|
175
|
+
minimumOrderCountRequired?: number | null;
|
|
176
|
+
minimumOrderValueRequired?: number | null;
|
|
177
|
+
minimumCashRequired?: number | null;
|
|
178
|
+
minimumPointsRequired?: number | null;
|
|
179
|
+
tierThemeColor?: string | null;
|
|
180
|
+
widgetVisibility?: boolean | null;
|
|
181
|
+
membershipTierProductTitle?: string | null;
|
|
182
|
+
membershipTierProductDescription?: string | null;
|
|
183
|
+
membershipTierProductMedia?: string | null;
|
|
184
|
+
customBenefits?: CustomBenefitPayload[] | null;
|
|
185
|
+
catalogDealsProducts?: CatalogDealsProductsPayload[];
|
|
186
|
+
}
|
|
187
|
+
export type UserRewardTier = {
|
|
188
|
+
currentPoints?: number;
|
|
189
|
+
totalOrders?: number;
|
|
190
|
+
currentLtv?: number;
|
|
191
|
+
currentTier: RewardTier | null;
|
|
192
|
+
nextTier: RewardTier | null;
|
|
193
|
+
};
|
|
194
|
+
export interface UserData {
|
|
195
|
+
id: number;
|
|
196
|
+
points: number;
|
|
197
|
+
aggregatedPoints: number;
|
|
198
|
+
previouslyOrdered: boolean;
|
|
199
|
+
__entity?: 'UserBrandLink' | string;
|
|
200
|
+
availableDiscount?: AvailableDiscount | null;
|
|
201
|
+
hasSetBirthday: boolean;
|
|
202
|
+
hasFollowedOnInstagram: boolean;
|
|
203
|
+
hasLikedOnFacebook: boolean;
|
|
204
|
+
hasSharedOnFacebook: boolean;
|
|
205
|
+
hasFollowedOnTwitter: boolean;
|
|
206
|
+
hasSubscribedOnYoutube: boolean;
|
|
207
|
+
hasClickedOnCustomLink: boolean;
|
|
208
|
+
hasAvailedFirstOrderReward: boolean;
|
|
209
|
+
hasAvailedSecondOrderReward: boolean;
|
|
210
|
+
}
|
|
211
|
+
export interface BrandRewardProgram {
|
|
212
|
+
id: number;
|
|
213
|
+
brandId: number;
|
|
214
|
+
programStatus: boolean;
|
|
215
|
+
programIcon: string;
|
|
216
|
+
programAuthType: string;
|
|
217
|
+
programTitle: string;
|
|
218
|
+
programVisibility: boolean;
|
|
219
|
+
pointsValueInInr: number;
|
|
220
|
+
coinName: string;
|
|
221
|
+
organizationIdSync: boolean;
|
|
222
|
+
orderCreditCriteria: string;
|
|
223
|
+
orderCreditStatus: boolean;
|
|
224
|
+
orderCreditType: string;
|
|
225
|
+
orderCreditValue: number;
|
|
226
|
+
orderCreditMethodRestriction: string;
|
|
227
|
+
orderCreditProductRestriction: any[];
|
|
228
|
+
coinExpirationPeriod: number;
|
|
229
|
+
redemptionMethod: string;
|
|
230
|
+
redemptionValue: number;
|
|
231
|
+
redemptionStatus: boolean;
|
|
232
|
+
redemptionIcon: string;
|
|
233
|
+
redemptionMaxPoints: number;
|
|
234
|
+
redemptionMovRequired: number;
|
|
235
|
+
redemptionMinimumOrderValue?: number;
|
|
236
|
+
redemptionMinimumOrderValueStatus?: boolean;
|
|
237
|
+
redemptionCodeCombination: boolean;
|
|
238
|
+
orderRewardCreditReversal: boolean;
|
|
239
|
+
orderRewardRedemtionReversal: boolean;
|
|
240
|
+
createdAt: string;
|
|
241
|
+
updatedAt: string;
|
|
242
|
+
deletedAt: string | null;
|
|
243
|
+
__entity: string;
|
|
244
|
+
}
|
|
245
|
+
export interface CreditOnActivitiesProperties {
|
|
246
|
+
customLink: ActivityProperty;
|
|
247
|
+
twitterLike: ActivityProperty;
|
|
248
|
+
youtubeLike: ActivityProperty;
|
|
249
|
+
facebookLike: ActivityProperty;
|
|
250
|
+
referralRewardConfig?: ReferralRewardConfig;
|
|
251
|
+
signUpReward: SignUpRewardProperty;
|
|
252
|
+
twitterShare: ActivityProperty;
|
|
253
|
+
youtubeShare: ActivityProperty;
|
|
254
|
+
facebookShare: ActivityProperty;
|
|
255
|
+
instagramLike: ActivityProperty;
|
|
256
|
+
twitterFollow: ActivityProperty;
|
|
257
|
+
birthdayReward: BirthdayRewardProperty;
|
|
258
|
+
facebookFollow: ActivityProperty;
|
|
259
|
+
feedbackReward: FeedbackRewardProperty;
|
|
260
|
+
instagramFollow: ActivityProperty;
|
|
261
|
+
firstOrderReward: FirstOrderRewardProperty;
|
|
262
|
+
secondOrderReward: SecondOrderRewardProperty;
|
|
263
|
+
youtubeSubscription: ActivityProperty;
|
|
264
|
+
}
|
|
265
|
+
export interface SignUpRewardProperty extends WidgetActivityProperty {
|
|
266
|
+
restrictOnReferralReward?: boolean;
|
|
267
|
+
}
|
|
268
|
+
export interface FeedbackRewardProperty extends WidgetActivityProperty {
|
|
269
|
+
creditCriteria?: string;
|
|
270
|
+
url?: string;
|
|
271
|
+
limitToOneTimePerOrder?: boolean;
|
|
272
|
+
}
|
|
273
|
+
export interface FirstOrderRewardProperty extends WidgetActivityProperty {
|
|
274
|
+
type?: string;
|
|
275
|
+
restrictFirstOrderReward?: boolean;
|
|
276
|
+
restrictOnReferralReward?: boolean;
|
|
277
|
+
}
|
|
278
|
+
export interface SecondOrderRewardProperty extends WidgetActivityProperty {
|
|
279
|
+
type?: string;
|
|
280
|
+
restrictPurchaseReward?: boolean;
|
|
281
|
+
}
|
|
282
|
+
export interface BrandActivityRewardSettings {
|
|
283
|
+
id: number;
|
|
284
|
+
brandId: number;
|
|
285
|
+
programId: number;
|
|
286
|
+
creditOnActivitiesProperties: CreditOnActivitiesProperties;
|
|
287
|
+
creditOnSignupValue: number | null;
|
|
288
|
+
creditOnFirstOrderValue: number | null;
|
|
289
|
+
creditOnSecondOrderValue: number | null;
|
|
290
|
+
creditOnFeedbackValue: number | null;
|
|
291
|
+
creditOnImageFeedbackValue?: number | null;
|
|
292
|
+
creditOnBirthdayValue: number | null;
|
|
293
|
+
creditOnInstagramFollowValue: number | null;
|
|
294
|
+
creditOnInstagramShareValue: number | null;
|
|
295
|
+
creditOnInstagramLikeValue: number | null;
|
|
296
|
+
creditOnFacebookFollowValue: number | null;
|
|
297
|
+
creditOnFacebookShareValue: number | null;
|
|
298
|
+
creditOnFacebookLikeValue: number | null;
|
|
299
|
+
creditOnTwitterFollowValue: number | null;
|
|
300
|
+
creditOnTwitterShareValue: number | null;
|
|
301
|
+
creditOnTwitterLikeValue: number | null;
|
|
302
|
+
creditOnYouTubeSubscriptionValue: number | null;
|
|
303
|
+
creditOnYouTubeLikeValue: number | null;
|
|
304
|
+
creditOnYouTubeShareValue: number | null;
|
|
305
|
+
creditOnCustomLinkValue: number | null;
|
|
306
|
+
createdAt: string;
|
|
307
|
+
updatedAt: string;
|
|
308
|
+
deletedAt: string | null;
|
|
309
|
+
__entity: string;
|
|
310
|
+
}
|
|
311
|
+
export interface ActivityProperty {
|
|
312
|
+
url?: string;
|
|
313
|
+
icon?: string;
|
|
314
|
+
status?: boolean;
|
|
315
|
+
enabled?: boolean;
|
|
316
|
+
offerTitle?: string;
|
|
317
|
+
}
|
|
318
|
+
export interface WidgetActivityProperty {
|
|
319
|
+
icon?: string;
|
|
320
|
+
status?: boolean;
|
|
321
|
+
enabled?: boolean;
|
|
322
|
+
offerTitle?: string;
|
|
323
|
+
widgetVisibility?: boolean;
|
|
324
|
+
}
|
|
325
|
+
export interface BirthdayRewardProperty extends WidgetActivityProperty {
|
|
326
|
+
type?: string;
|
|
327
|
+
}
|
|
328
|
+
export interface ReferralRewardConfig {
|
|
329
|
+
enabled?: boolean;
|
|
330
|
+
shareMethod?: "referral_code" | "referral_url";
|
|
331
|
+
codePrefix?: string;
|
|
332
|
+
campaignVisibility?: "ways_to_earn" | "details" | "both";
|
|
333
|
+
offerTitle?: string;
|
|
334
|
+
offerIcon?: string;
|
|
335
|
+
customizeReferralSectionContent?: boolean;
|
|
336
|
+
referrerReward?: ReferralRewardDetails;
|
|
337
|
+
refereeReward?: ReferralRewardDetails;
|
|
338
|
+
}
|
|
339
|
+
export interface ReferralRewardDetails {
|
|
340
|
+
enabled?: boolean;
|
|
341
|
+
method?: "points" | "discount_code" | "freebie";
|
|
342
|
+
completionCriteria?: "signup" | "purchase" | "first_order";
|
|
343
|
+
pointsConfig?: {
|
|
344
|
+
points: number;
|
|
345
|
+
} | null;
|
|
346
|
+
discountConfig?: {
|
|
347
|
+
type: "percentage_off" | "fixed_amount" | "referee_order_value";
|
|
348
|
+
value: number;
|
|
349
|
+
expiresInDays?: number | null;
|
|
350
|
+
appliesTo: {
|
|
351
|
+
type: "all_products" | "collections";
|
|
352
|
+
collectionIds?: string[];
|
|
353
|
+
};
|
|
354
|
+
} | null;
|
|
355
|
+
freebieConfig?: {
|
|
356
|
+
freebieType?: string;
|
|
357
|
+
} | null;
|
|
358
|
+
}
|
|
359
|
+
export type RecentTransactionType = "earned" | "expired" | "availed";
|
|
360
|
+
export type RecentTransactionActivityType = "order" | "first_order" | "second_order" | "signup" | "bulk_insert_signup" | "birthday" | "referral_signup" | "referral_first_order" | "referee_signup" | "referee_first_order" | "referee_order" | "social_instagram" | "social_facebook" | "social_facebook_like" | "social_facebook_share" | "social_twitter" | "social_youtube" | "social_custom_link" | "review_comment" | "segment_reward" | "admin_balance_update" | "consumer_balance_increase" | "consumer_balance_decrease" | "membership_tier_acquisition" | "catalog_offer_redemption" | "discount_creation" | "consumer_discount_creation" | "points_expiration";
|
|
361
|
+
export type RecentTransactionCriteria = "payment" | "shipment" | "delivery" | "payment+shipment" | "payment+delivery";
|
|
362
|
+
export type RecentTransactionOrderStatus = "awaiting_payment" | "confirmed" | "in_transit" | "delivered" | "processing";
|
|
363
|
+
export interface RecentTransactionApiItem {
|
|
364
|
+
id: string;
|
|
365
|
+
type: RecentTransactionType;
|
|
366
|
+
activityType: RecentTransactionActivityType;
|
|
367
|
+
points: number;
|
|
368
|
+
createdAt: string;
|
|
369
|
+
}
|
|
370
|
+
export interface RecentTransactionPendingItem {
|
|
371
|
+
id: string;
|
|
372
|
+
points: number;
|
|
373
|
+
activityType: RecentTransactionActivityType;
|
|
374
|
+
orderId?: string;
|
|
375
|
+
criteria?: RecentTransactionCriteria;
|
|
376
|
+
orderStatus?: RecentTransactionOrderStatus;
|
|
377
|
+
createdAt: string;
|
|
378
|
+
}
|
|
379
|
+
export interface RecentTransactionSummary {
|
|
380
|
+
totalSaved: number;
|
|
381
|
+
totalEarned: number;
|
|
382
|
+
totalAvailed: number;
|
|
383
|
+
totalExpired: number;
|
|
384
|
+
}
|
|
385
|
+
export interface RecentTransactionsData {
|
|
386
|
+
summary: RecentTransactionSummary;
|
|
387
|
+
pending?: RecentTransactionPendingItem[];
|
|
388
|
+
transactions: RecentTransactionApiItem[];
|
|
389
|
+
}
|
|
390
|
+
export interface CouponAvailResponse {
|
|
391
|
+
discountCode: string;
|
|
392
|
+
discountValueInInr: number;
|
|
393
|
+
expiresAt: string;
|
|
394
|
+
shopifyStoreId: string;
|
|
395
|
+
brandId: number;
|
|
396
|
+
userId: number;
|
|
397
|
+
couponTemplateId: number;
|
|
398
|
+
discountType: string;
|
|
399
|
+
shopifyDiscountCodeId: string;
|
|
400
|
+
creationMethod: string;
|
|
401
|
+
discountPercentage: number | null;
|
|
402
|
+
expiredAt: string | null;
|
|
403
|
+
discountUsageCount: number | null;
|
|
404
|
+
isUsed: boolean;
|
|
405
|
+
minPurchaseAmount: number | null;
|
|
406
|
+
freeProductId: number | null;
|
|
407
|
+
metafieldId: number | null;
|
|
408
|
+
metafieldJsonValue: any | null;
|
|
409
|
+
discountId: number;
|
|
410
|
+
isActive: boolean;
|
|
411
|
+
deletedAt: string | null;
|
|
412
|
+
createdAt: string;
|
|
413
|
+
updatedAt: string;
|
|
414
|
+
}
|