From 52850b1068806ca9636bc084f5f5eef0f49e2b90 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 26 Aug 2024 11:19:37 +0900 Subject: [PATCH] Codes are generated by openapi (#934) https://github.com/line/line-openapi/pull/65 In the Messaging API, we've added the following values as conditions for filtering the age range of recipients in the [demographic filter objects](https://developers.line.biz/en/reference/messaging-api/#narrowcast-demographic-filter) of [narrowcast messages](https://developers.line.biz/en/reference/messaging-api/#send-narrowcast-message): - `age_55` - `age_60` - `age_65` - `age_70` Until now, the upper limit was `age_50`, so it wasn't possible to filter ages over 50 in detail. By specifying the added age ranges, you can now filter recipients more flexibly than before. For example, the following is a demographic filter object that filters by age 50 and older but less than 60: ```json { "type": "age", "gte": "age_50", "lt": "age_60" } ``` news: https://developers.line.biz/en/news/2024/08/26/age-filter-subdivision/ Co-authored-by: github-actions --- lib/messaging-api/model/ageDemographic.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/messaging-api/model/ageDemographic.ts b/lib/messaging-api/model/ageDemographic.ts index f99b905fa..5c66ec0c1 100644 --- a/lib/messaging-api/model/ageDemographic.ts +++ b/lib/messaging-api/model/ageDemographic.ts @@ -18,4 +18,8 @@ export type AgeDemographic = | "age_35" | "age_40" | "age_45" - | "age_50"; + | "age_50" + | "age_55" + | "age_60" + | "age_65" + | "age_70";