Skip to content

Commit 20d9d57

Browse files
yoshi-automationsofisl
authored andcommitted
feat(pagespeedonline): update the API
#### pagespeedonline:v5 The following keys were added: - schemas.LighthouseAuditResultV5.properties.metricSavings.$ref - schemas.LighthouseAuditResultV5.properties.metricSavings.description - schemas.MetricSavings.description - schemas.MetricSavings.id - schemas.MetricSavings.properties.CLS.description - schemas.MetricSavings.properties.CLS.format - schemas.MetricSavings.properties.CLS.type - schemas.MetricSavings.properties.FCP.description - schemas.MetricSavings.properties.FCP.format - schemas.MetricSavings.properties.FCP.type - schemas.MetricSavings.properties.INP.description - schemas.MetricSavings.properties.INP.format - schemas.MetricSavings.properties.INP.type - schemas.MetricSavings.properties.LCP.description - schemas.MetricSavings.properties.LCP.format - schemas.MetricSavings.properties.LCP.type - schemas.MetricSavings.properties.TBT.description - schemas.MetricSavings.properties.TBT.format - schemas.MetricSavings.properties.TBT.type - schemas.MetricSavings.type
1 parent 16514a1 commit 20d9d57

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed

discovery/pagespeedonline-v5.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
}
202202
}
203203
},
204-
"revision": "20240530",
204+
"revision": "20240829",
205205
"rootUrl": "https://pagespeedonline.googleapis.com/",
206206
"schemas": {
207207
"AuditRefs": {
@@ -432,6 +432,10 @@
432432
"description": "The audit's id.",
433433
"type": "string"
434434
},
435+
"metricSavings": {
436+
"$ref": "MetricSavings",
437+
"description": "The metric savings of the audit."
438+
},
435439
"numericUnit": {
436440
"description": "The unit of the numeric_value field. Used to format the numeric value for display.",
437441
"type": "string"
@@ -592,6 +596,38 @@
592596
},
593597
"type": "object"
594598
},
599+
"MetricSavings": {
600+
"description": "The metric savings of the audit.",
601+
"id": "MetricSavings",
602+
"properties": {
603+
"CLS": {
604+
"description": "Optional. Optional numeric value representing the audit's savings for the CLS metric.",
605+
"format": "double",
606+
"type": "number"
607+
},
608+
"FCP": {
609+
"description": "Optional. Optional numeric value representing the audit's savings for the FCP metric.",
610+
"format": "double",
611+
"type": "number"
612+
},
613+
"INP": {
614+
"description": "Optional. Optional numeric value representing the audit's savings for the INP metric.",
615+
"format": "double",
616+
"type": "number"
617+
},
618+
"LCP": {
619+
"description": "Optional. Optional numeric value representing the audit's savings for the LCP metric.",
620+
"format": "double",
621+
"type": "number"
622+
},
623+
"TBT": {
624+
"description": "Optional. Optional numeric value representing the audit's savings for the TBT metric.",
625+
"format": "double",
626+
"type": "number"
627+
}
628+
},
629+
"type": "object"
630+
},
595631
"PagespeedApiLoadingExperienceV5": {
596632
"description": "The CrUX loading experience object that contains CrUX data breakdowns.",
597633
"id": "PagespeedApiLoadingExperienceV5",

src/apis/pagespeedonline/v5.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,10 @@ export namespace pagespeedonline_v5 {
316316
* The audit's id.
317317
*/
318318
id?: string | null;
319+
/**
320+
* The metric savings of the audit.
321+
*/
322+
metricSavings?: Schema$MetricSavings;
319323
/**
320324
* The unit of the numeric_value field. Used to format the numeric value for display.
321325
*/
@@ -451,6 +455,31 @@ export namespace pagespeedonline_v5 {
451455
*/
452456
userAgent?: string | null;
453457
}
458+
/**
459+
* The metric savings of the audit.
460+
*/
461+
export interface Schema$MetricSavings {
462+
/**
463+
* Optional. Optional numeric value representing the audit's savings for the CLS metric.
464+
*/
465+
CLS?: number | null;
466+
/**
467+
* Optional. Optional numeric value representing the audit's savings for the FCP metric.
468+
*/
469+
FCP?: number | null;
470+
/**
471+
* Optional. Optional numeric value representing the audit's savings for the INP metric.
472+
*/
473+
INP?: number | null;
474+
/**
475+
* Optional. Optional numeric value representing the audit's savings for the LCP metric.
476+
*/
477+
LCP?: number | null;
478+
/**
479+
* Optional. Optional numeric value representing the audit's savings for the TBT metric.
480+
*/
481+
TBT?: number | null;
482+
}
454483
/**
455484
* The CrUX loading experience object that contains CrUX data breakdowns.
456485
*/

0 commit comments

Comments
 (0)