From 093cadcff7c727037236dce79eb3aa9deb19fa4e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 6 Jun 2024 01:35:30 +0000 Subject: [PATCH] feat(fcmdata): update the API #### fcmdata:v1beta1 The following keys were added: - schemas.GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.properties.collapsed.description - schemas.GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.properties.collapsed.format - schemas.GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.properties.collapsed.type - schemas.GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.properties.droppedTtlExpired.description - schemas.GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.properties.droppedTtlExpired.format - schemas.GoogleFirebaseFcmDataV1beta1MessageOutcomePercents.properties.droppedTtlExpired.type --- discovery/fcmdata-v1beta1.json | 12 +++++++++++- src/apis/fcmdata/v1beta1.ts | 8 ++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/discovery/fcmdata-v1beta1.json b/discovery/fcmdata-v1beta1.json index dcd15a2584..a240d0af2d 100644 --- a/discovery/fcmdata-v1beta1.json +++ b/discovery/fcmdata-v1beta1.json @@ -154,7 +154,7 @@ } } }, - "revision": "20240530", + "revision": "20240604", "rootUrl": "https://fcmdata.googleapis.com/", "schemas": { "GoogleFirebaseFcmDataV1beta1AndroidDeliveryData": { @@ -279,6 +279,11 @@ "description": "Percentage breakdown of message delivery outcomes. These categories are mutually exclusive. All percentages are calculated with countMessagesAccepted as the denominator. These categories may not account for all message outcomes.", "id": "GoogleFirebaseFcmDataV1beta1MessageOutcomePercents", "properties": { + "collapsed": { + "description": "The percentage of accepted messages that were [collapsed](https://firebase.google.com/docs/cloud-messaging/concept-options#collapsible_and_non-collapsible_messages) by another message.", + "format": "float", + "type": "number" + }, "delivered": { "description": "The percentage of all accepted messages that were successfully delivered to the device.", "format": "float", @@ -299,6 +304,11 @@ "format": "float", "type": "number" }, + "droppedTtlExpired": { + "description": "The percentage of accepted messages that expired because [Time To Live (TTL)](https://firebase.google.com/docs/cloud-messaging/concept-options#ttl) elapsed before the target device reconnected.", + "format": "float", + "type": "number" + }, "pending": { "description": "The percentage of messages accepted on this day that were not dropped and not delivered, due to the device being disconnected (as of the end of the America/Los_Angeles day when the message was sent to FCM). A portion of these messages will be delivered the next day when the device connects but others may be destined to devices that ultimately never reconnect.", "format": "float", diff --git a/src/apis/fcmdata/v1beta1.ts b/src/apis/fcmdata/v1beta1.ts index cfea6517d3..aacd9263ff 100644 --- a/src/apis/fcmdata/v1beta1.ts +++ b/src/apis/fcmdata/v1beta1.ts @@ -225,6 +225,10 @@ export namespace fcmdata_v1beta1 { * Percentage breakdown of message delivery outcomes. These categories are mutually exclusive. All percentages are calculated with countMessagesAccepted as the denominator. These categories may not account for all message outcomes. */ export interface Schema$GoogleFirebaseFcmDataV1beta1MessageOutcomePercents { + /** + * The percentage of accepted messages that were [collapsed](https://firebase.google.com/docs/cloud-messaging/concept-options#collapsible_and_non-collapsible_messages) by another message. + */ + collapsed?: number | null; /** * The percentage of all accepted messages that were successfully delivered to the device. */ @@ -241,6 +245,10 @@ export namespace fcmdata_v1beta1 { * The percentage of accepted messages that were dropped due to [too many undelivered non-collapsible messages](https://firebase.google.com/docs/cloud-messaging/concept-options#collapsible_and_non-collapsible_messages). Specifically, each app instance can only have 100 pending messages stored on our servers for a device which is disconnected. When that device reconnects, those messages are delivered. When there are more than the maximum pending messages, we call [OnDeletedMessages()](https://firebase.google.com/docs/cloud-messaging/android/receive#override-ondeletedmessages) in our SDK instead of delivering the messages. */ droppedTooManyPendingMessages?: number | null; + /** + * The percentage of accepted messages that expired because [Time To Live (TTL)](https://firebase.google.com/docs/cloud-messaging/concept-options#ttl) elapsed before the target device reconnected. + */ + droppedTtlExpired?: number | null; /** * The percentage of messages accepted on this day that were not dropped and not delivered, due to the device being disconnected (as of the end of the America/Los_Angeles day when the message was sent to FCM). A portion of these messages will be delivered the next day when the device connects but others may be destined to devices that ultimately never reconnect. */