Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/hooks/useAffiliatesCampaignOfferConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export const CAMPAIGN_BY_PATH: Record<string, AffiliatesBlackFridayCampaign> = {
gpitbf90: 'black-week',
chollobf90: 'black-week',
awbf90: 'black-week',
adslzone90: 'black-week',
gpukbf90: 'black-week',

cyberweek90: 'cyber-week',
cyberweekcn90: 'cyber-week',
Expand All @@ -47,6 +49,7 @@ export const CAMPAIGN_BY_PATH: Record<string, AffiliatesBlackFridayCampaign> = {
gpitcw90: 'cyber-week',
chollocw90: 'cyber-week',
awcw90: 'cyber-week',
gpukcw90: 'cyber-week',
};

export const COUPON_CODES: Record<string, PromoCodeName> = {
Expand Down Expand Up @@ -78,6 +81,8 @@ export const COUPON_CODES: Record<string, PromoCodeName> = {
gpitbf90: PromoCodeName.gpitbf90,
chollobf90: PromoCodeName.chollobf90,
awbf90: PromoCodeName.awbf90,
adslzone90: PromoCodeName.adslzone90,
gpukbf90: PromoCodeName.gpukbf90,

cyberweek90: PromoCodeName.cyberweek90,
cyberweekcn90: PromoCodeName.cyberweekcn90,
Expand All @@ -93,6 +98,7 @@ export const COUPON_CODES: Record<string, PromoCodeName> = {
gpitcw90: PromoCodeName.gpitcw90,
chollocw90: PromoCodeName.chollocw90,
awcw90: PromoCodeName.awcw90,
gpukcw90: PromoCodeName.gpukcw90,
};

export const ENFORCED_LOCALE: Record<string, string> = {
Expand All @@ -102,6 +108,9 @@ export const ENFORCED_LOCALE: Record<string, string> = {
awbf90: 'de',
awcw90: 'de',

gpukbf90: 'en',
gpukcw90: 'en',

xatakabm87: 'es',
xatakabf90: 'es',
xatakacm90: 'es',
Expand All @@ -114,6 +123,7 @@ export const ENFORCED_LOCALE: Record<string, string> = {
chollobm87: 'es',
chollobf90: 'es',
chollocw90: 'es',
adslzone90: 'es',

clubicbm87: 'fr',
clubicbf90: 'fr',
Expand Down
18 changes: 18 additions & 0 deletions src/hooks/useSpecialOfferConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ export const ALLOWED_PATHS = [
'fabio',
'suneja',
'techiq',
'satish',
'jignesh',
'gyan',
'davidtech',
'gpuk85',
];

export const ENFORCED_LOCALE: Record<string, string> = {
Expand Down Expand Up @@ -278,6 +283,7 @@ export const ENFORCED_LOCALE: Record<string, string> = {
marko: 'en',
gamermeld: 'en',
danalove: 'en',
gpuk85: 'en',

// de
aimentors: 'de',
Expand Down Expand Up @@ -335,6 +341,7 @@ export const ENFORCED_LOCALE: Record<string, string> = {
alaniz: 'es',
hixec: 'es',
xataka85: 'es',
davidtech: 'es',

// fr
benjamin: 'fr',
Expand Down Expand Up @@ -424,6 +431,7 @@ export const ALTERNATIVE_IMAGES_PATHS = new Set<string>([
'ition',
'luca',
'pietro',
'gaito',
]);
export const ONLY_ULTIMATE_PLANS_PATHS = new Set<string>(['ultimate']);
export const ULTIMATE_PREMIUM_PLANS_PATHS = new Set<string>([]);
Expand Down Expand Up @@ -655,6 +663,11 @@ export const ANNUAL_DISCOUNT_PLANS_PATHS = new Set<string>([
'fabio',
'suneja',
'techiq',
'satish',
'jignesh',
'gyan',
'davidtech',
'gpuk85',
]);

export const COUPON_CODES = {
Expand Down Expand Up @@ -891,6 +904,11 @@ export const COUPON_CODES = {
fabio: PromoCodeName.fabio,
suneja: PromoCodeName.suneja,
techiq: PromoCodeName.techiq,
satish: PromoCodeName.satish,
jignesh: PromoCodeName.jignesh,
gyan: PromoCodeName.gyan,
davidtech: PromoCodeName.davidtech,
gpuk85: PromoCodeName.gpuk85,
};

interface OfferConfig {
Expand Down
10 changes: 9 additions & 1 deletion src/lib/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,15 @@ export enum PromoCodeName {
gaito = 'GAITO',
fabio = 'FABIO',
suneja = 'SUNEJA',
techiq = 'techiq',
techiq = 'TECHIQ',
satish = 'SATISH',
jignesh = 'JIGNESH',
gyan = 'GYAN',
davidtech = 'DAVIDTECH',
adslzone90 = 'ADSLZONE90',
gpuk85 = 'GPUK85',
gpukbf90 = 'GPUKBF90',
gpukcw90 = 'GPUKCW90'
}

export interface PromoCodeProps {
Expand Down
Loading