File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ export interface AuxiaProxyGetTreatmentsPayload {
122
122
mvtId : number ;
123
123
should_show_legacy_gate_tmp : boolean ; // [1]
124
124
hasConsented : boolean ;
125
+ shouldNotServeNonDismissible : boolean ; // [2]
125
126
}
126
127
127
128
// [1]
@@ -143,6 +144,10 @@ export interface AuxiaProxyGetTreatmentsPayload {
143
144
// Obviously, the value it carries for standard Auxia audience requests in irrelevant.
144
145
// We will be setting it to false.
145
146
147
+ // [2]
148
+ // date: 03rd July 2025
149
+ // If shouldNotServeNonDismissible, we should not show a non dismissible gate.
150
+
146
151
export interface AuxiaProxyGetTreatmentsResponse {
147
152
status : boolean ;
148
153
data ?: AuxiaProxyGetTreatmentsProxyResponseData ;
Original file line number Diff line number Diff line change @@ -290,6 +290,7 @@ const fetchProxyGetTreatments = async (
290
290
mvtId : number ,
291
291
should_show_legacy_gate_tmp : boolean ,
292
292
hasConsented : boolean ,
293
+ shouldNotServeNonDismissible : boolean ,
293
294
) : Promise < AuxiaProxyGetTreatmentsResponse > => {
294
295
// pageId example: 'money/2017/mar/10/ministers-to-criminalise-use-of-ticket-tout-harvesting-software'
295
296
const articleIdentifier = `www.theguardian.com/${ pageId } ` ;
@@ -312,6 +313,7 @@ const fetchProxyGetTreatments = async (
312
313
mvtId,
313
314
should_show_legacy_gate_tmp,
314
315
hasConsented,
316
+ shouldNotServeNonDismissible,
315
317
} ;
316
318
const params = {
317
319
method : 'POST' ,
@@ -363,6 +365,8 @@ const buildAuxiaGateDisplayData = async (
363
365
) ;
364
366
}
365
367
368
+ const shouldNotServeNonDismissible = false ; // todo get the value.
369
+
366
370
const response = await fetchProxyGetTreatments (
367
371
contributionsServiceUrl ,
368
372
pageId ,
@@ -378,6 +382,7 @@ const buildAuxiaGateDisplayData = async (
378
382
readerPersonalData . mvtId ,
379
383
should_show_legacy_gate_tmp ,
380
384
readerPersonalData . hasConsented ,
385
+ shouldNotServeNonDismissible ,
381
386
) ;
382
387
383
388
if ( response . status && response . data ) {
You can’t perform that action at this time.
0 commit comments