@@ -293,6 +293,7 @@ const fetchProxyGetTreatments = async (
293
293
hasConsented : boolean ,
294
294
shouldServeDismissible : boolean ,
295
295
showDefaultGate : ShowGateValues ,
296
+ gateDisplayCount : number ,
296
297
) : Promise < AuxiaProxyGetTreatmentsResponse > => {
297
298
// pageId example: 'money/2017/mar/10/ministers-to-criminalise-use-of-ticket-tout-harvesting-software'
298
299
const articleIdentifier = `www.theguardian.com/${ pageId } ` ;
@@ -317,6 +318,7 @@ const fetchProxyGetTreatments = async (
317
318
hasConsented,
318
319
shouldServeDismissible,
319
320
showDefaultGate,
321
+ gateDisplayCount,
320
322
} ;
321
323
const params = {
322
324
method : 'POST' ,
@@ -372,6 +374,11 @@ const decideShowDefaultGate = (): ShowGateValues => {
372
374
return undefined ;
373
375
} ;
374
376
377
+ const getGateDisplayCount = ( ) : number => {
378
+ // TODO: retrieve the number of time the page has been displayed
379
+ return 0 ;
380
+ } ;
381
+
375
382
const buildAuxiaGateDisplayData = async (
376
383
contributionsServiceUrl : string ,
377
384
pageId : string ,
@@ -410,8 +417,8 @@ const buildAuxiaGateDisplayData = async (
410
417
}
411
418
412
419
const shouldServeDismissible = decideShouldServeDismissible ( ) ;
413
-
414
420
const showDefaultGate = decideShowDefaultGate ( ) ;
421
+ const gateDisplayCount = getGateDisplayCount ( ) ;
415
422
416
423
const response = await fetchProxyGetTreatments (
417
424
contributionsServiceUrl ,
@@ -430,6 +437,7 @@ const buildAuxiaGateDisplayData = async (
430
437
readerPersonalData . hasConsented ,
431
438
shouldServeDismissible ,
432
439
showDefaultGate ,
440
+ gateDisplayCount ,
433
441
) ;
434
442
435
443
if ( response . status && response . data ) {
0 commit comments