Skip to content

Commit

Permalink
Codes are generated by openapi (#934)
Browse files Browse the repository at this point in the history
line/line-openapi#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 <[email protected]>
  • Loading branch information
github-actions[bot] and github-actions authored Aug 26, 2024
1 parent 4a53f92 commit 52850b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/messaging-api/model/ageDemographic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

0 comments on commit 52850b1

Please sign in to comment.