From f727848a9cbf87b8d35be506d39a0d9a908b9ff9 Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 1 Jul 2026 06:16:22 +0000 Subject: [PATCH] Codes are generated by openapi --- lib/insight/.openapi-generator/FILES | 10 ++ lib/insight/api/insightClient.ts | 111 ++++++++++++++++++ .../model/getRichMenuInsightDailyResponse.ts | 39 ++++++ .../getRichMenuInsightDailyResponseBounds.ts | 33 ++++++ .../getRichMenuInsightDailyResponseClick.ts | 25 ++++ ...ichMenuInsightDailyResponseDailyMetrics.ts | 30 +++++ ...tRichMenuInsightDailyResponseImpression.ts | 23 ++++ .../getRichMenuInsightSummaryResponse.ts | 39 ++++++ ...getRichMenuInsightSummaryResponseBounds.ts | 33 ++++++ .../getRichMenuInsightSummaryResponseClick.ts | 22 ++++ ...ichMenuInsightSummaryResponseImpression.ts | 20 ++++ ...etRichMenuInsightSummaryResponseMetrics.ts | 25 ++++ lib/insight/model/models.ts | 10 ++ lib/line-bot-client.generated.ts | 84 +++++++++++++ line-openapi | 2 +- 15 files changed, 505 insertions(+), 1 deletion(-) create mode 100644 lib/insight/model/getRichMenuInsightDailyResponse.ts create mode 100644 lib/insight/model/getRichMenuInsightDailyResponseBounds.ts create mode 100644 lib/insight/model/getRichMenuInsightDailyResponseClick.ts create mode 100644 lib/insight/model/getRichMenuInsightDailyResponseDailyMetrics.ts create mode 100644 lib/insight/model/getRichMenuInsightDailyResponseImpression.ts create mode 100644 lib/insight/model/getRichMenuInsightSummaryResponse.ts create mode 100644 lib/insight/model/getRichMenuInsightSummaryResponseBounds.ts create mode 100644 lib/insight/model/getRichMenuInsightSummaryResponseClick.ts create mode 100644 lib/insight/model/getRichMenuInsightSummaryResponseImpression.ts create mode 100644 lib/insight/model/getRichMenuInsightSummaryResponseMetrics.ts diff --git a/lib/insight/.openapi-generator/FILES b/lib/insight/.openapi-generator/FILES index 5ba8186bb..9d213b006 100644 --- a/lib/insight/.openapi-generator/FILES +++ b/lib/insight/.openapi-generator/FILES @@ -15,6 +15,16 @@ model/getMessageEventResponseMessage.ts model/getMessageEventResponseOverview.ts model/getNumberOfFollowersResponse.ts model/getNumberOfMessageDeliveriesResponse.ts +model/getRichMenuInsightDailyResponse.ts +model/getRichMenuInsightDailyResponseBounds.ts +model/getRichMenuInsightDailyResponseClick.ts +model/getRichMenuInsightDailyResponseDailyMetrics.ts +model/getRichMenuInsightDailyResponseImpression.ts +model/getRichMenuInsightSummaryResponse.ts +model/getRichMenuInsightSummaryResponseBounds.ts +model/getRichMenuInsightSummaryResponseClick.ts +model/getRichMenuInsightSummaryResponseImpression.ts +model/getRichMenuInsightSummaryResponseMetrics.ts model/getStatisticsPerUnitResponse.ts model/getStatisticsPerUnitResponseClick.ts model/getStatisticsPerUnitResponseMessage.ts diff --git a/lib/insight/api/insightClient.ts b/lib/insight/api/insightClient.ts index ebc434c20..99887ca24 100644 --- a/lib/insight/api/insightClient.ts +++ b/lib/insight/api/insightClient.ts @@ -11,10 +11,13 @@ */ /* tslint:disable:no-unused-locals */ +import { ErrorResponse } from "../model/errorResponse.js"; import { GetFriendsDemographicsResponse } from "../model/getFriendsDemographicsResponse.js"; import { GetMessageEventResponse } from "../model/getMessageEventResponse.js"; import { GetNumberOfFollowersResponse } from "../model/getNumberOfFollowersResponse.js"; import { GetNumberOfMessageDeliveriesResponse } from "../model/getNumberOfMessageDeliveriesResponse.js"; +import { GetRichMenuInsightDailyResponse } from "../model/getRichMenuInsightDailyResponse.js"; +import { GetRichMenuInsightSummaryResponse } from "../model/getRichMenuInsightSummaryResponse.js"; import { GetStatisticsPerUnitResponse } from "../model/getStatisticsPerUnitResponse.js"; import * as Types from "../../types.js"; @@ -225,6 +228,114 @@ export class InsightClient { const parsedBody = text ? JSON.parse(text) : null; return { httpResponse: res, body: parsedBody }; } + /** + * Gets rich menu statistics broken down by day for the specified period, for a rich menu created via the Messaging API. Returns the daily impression count for the whole rich menu and the daily click count for each tappable area. When the total number of unique clicks during the period is below the privacy threshold, only `richMenuId` is returned and the other fields are omitted. + * Calls `GET https://api.line.me/v2/bot/insight/richmenu/{richMenuId}/daily`. + * To inspect the HTTP status code or response headers, use {@link getRichMenuInsightDailyWithHttpInfo}. + * @summary Get rich menu insight daily + * @param richMenuId ID of the rich menu created via the Messaging API. + * @param from Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 + * @param to End date of the aggregation period (inclusive). The end date can be specified for up to 99 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + * @returns A promise resolving to the response body. + * @see LINE Developers documentation + */ + public async getRichMenuInsightDaily( + richMenuId: string, + from: string, + to: string, + ): Promise { + return ( + await this.getRichMenuInsightDailyWithHttpInfo(richMenuId, from, to) + ).body; + } + + /** + * Gets rich menu statistics broken down by day for the specified period, for a rich menu created via the Messaging API. Returns the daily impression count for the whole rich menu and the daily click count for each tappable area. When the total number of unique clicks during the period is below the privacy threshold, only `richMenuId` is returned and the other fields are omitted. + * Calls `GET https://api.line.me/v2/bot/insight/richmenu/{richMenuId}/daily`. + * This method returns the response body together with the underlying `httpResponse`. + * @summary Get rich menu insight daily + * @param richMenuId ID of the rich menu created via the Messaging API. + * @param from Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 + * @param to End date of the aggregation period (inclusive). The end date can be specified for up to 99 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + * @returns A promise resolving to the response body together with the underlying `httpResponse`. + * @see LINE Developers documentation + */ + public async getRichMenuInsightDailyWithHttpInfo( + richMenuId: string, + from: string, + to: string, + ): Promise> { + const requestPath = buildPath( + "/v2/bot/insight/richmenu/{richMenuId}/daily", + { + richMenuId: richMenuId, + }, + ); + + const queryParams = { + from: from, + to: to, + }; + + const res = await this.httpClient.get(requestPath, queryParams); + const text = await res.text(); + const parsedBody = text ? JSON.parse(text) : null; + return { httpResponse: res, body: parsedBody }; + } + /** + * Gets a summary of rich menu statistics for the specified period, for a rich menu created via the Messaging API. Returns the total impression count for the whole rich menu and the click count for each tappable area, aggregated over the entire period as a single result. When the total number of unique clicks during the period is below the privacy threshold, only `richMenuId` is returned and the other fields are omitted. + * Calls `GET https://api.line.me/v2/bot/insight/richmenu/{richMenuId}/summary`. + * To inspect the HTTP status code or response headers, use {@link getRichMenuInsightSummaryWithHttpInfo}. + * @summary Get rich menu insight summary + * @param richMenuId ID of the rich menu created via the Messaging API. + * @param from Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 + * @param to End date of the aggregation period (inclusive). The end date can be specified for up to 396 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + * @returns A promise resolving to the response body. + * @see LINE Developers documentation + */ + public async getRichMenuInsightSummary( + richMenuId: string, + from: string, + to: string, + ): Promise { + return ( + await this.getRichMenuInsightSummaryWithHttpInfo(richMenuId, from, to) + ).body; + } + + /** + * Gets a summary of rich menu statistics for the specified period, for a rich menu created via the Messaging API. Returns the total impression count for the whole rich menu and the click count for each tappable area, aggregated over the entire period as a single result. When the total number of unique clicks during the period is below the privacy threshold, only `richMenuId` is returned and the other fields are omitted. + * Calls `GET https://api.line.me/v2/bot/insight/richmenu/{richMenuId}/summary`. + * This method returns the response body together with the underlying `httpResponse`. + * @summary Get rich menu insight summary + * @param richMenuId ID of the rich menu created via the Messaging API. + * @param from Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 + * @param to End date of the aggregation period (inclusive). The end date can be specified for up to 396 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + * @returns A promise resolving to the response body together with the underlying `httpResponse`. + * @see LINE Developers documentation + */ + public async getRichMenuInsightSummaryWithHttpInfo( + richMenuId: string, + from: string, + to: string, + ): Promise> { + const requestPath = buildPath( + "/v2/bot/insight/richmenu/{richMenuId}/summary", + { + richMenuId: richMenuId, + }, + ); + + const queryParams = { + from: from, + to: to, + }; + + const res = await this.httpClient.get(requestPath, queryParams); + const text = await res.text(); + const parsedBody = text ? JSON.parse(text) : null; + return { httpResponse: res, body: parsedBody }; + } /** * You can check the per-unit statistics of how users interact with push messages and multicast messages sent from your LINE Official Account. * Calls `GET https://api.line.me/v2/bot/insight/message/event/aggregation`. diff --git a/lib/insight/model/getRichMenuInsightDailyResponse.ts b/lib/insight/model/getRichMenuInsightDailyResponse.ts new file mode 100644 index 000000000..3e88445c3 --- /dev/null +++ b/lib/insight/model/getRichMenuInsightDailyResponse.ts @@ -0,0 +1,39 @@ +/** + * LINE Messaging API(Insight) + * This document describes LINE Messaging API(Insight). + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { GetRichMenuInsightDailyResponseClick } from "./getRichMenuInsightDailyResponseClick.js"; +import { GetRichMenuInsightDailyResponseImpression } from "./getRichMenuInsightDailyResponseImpression.js"; + +/** + * Daily impression and click statistics for a rich menu created via the Messaging API. + */ +export type GetRichMenuInsightDailyResponse = { + /** + * Rich menu ID. + */ + richMenuId: string; + /** + * Start date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260213). + * Pattern: /^[0-9]{8}$/ + */ + metricsFrom?: string | null; + /** + * End date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260215). + * Pattern: /^[0-9]{8}$/ + */ + metricsTo?: string | null; + impression?: GetRichMenuInsightDailyResponseImpression; + /** + * Daily click metrics for each tappable area of the rich menu. + */ + clicks?: Array; +}; diff --git a/lib/insight/model/getRichMenuInsightDailyResponseBounds.ts b/lib/insight/model/getRichMenuInsightDailyResponseBounds.ts new file mode 100644 index 000000000..24d0fb875 --- /dev/null +++ b/lib/insight/model/getRichMenuInsightDailyResponseBounds.ts @@ -0,0 +1,33 @@ +/** + * LINE Messaging API(Insight) + * This document describes LINE Messaging API(Insight). + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/** + * Target area of the metrics, represented by the top-left coordinate, width, and height. + */ +export type GetRichMenuInsightDailyResponseBounds = { + /** + * The x coordinate of the top-left corner of the target area. + */ + x: number; + /** + * The y coordinate of the top-left corner of the target area. + */ + y: number; + /** + * The width of the target area. + */ + width: number; + /** + * The height of the target area. + */ + height: number; +}; diff --git a/lib/insight/model/getRichMenuInsightDailyResponseClick.ts b/lib/insight/model/getRichMenuInsightDailyResponseClick.ts new file mode 100644 index 000000000..e71dfe98a --- /dev/null +++ b/lib/insight/model/getRichMenuInsightDailyResponseClick.ts @@ -0,0 +1,25 @@ +/** + * LINE Messaging API(Insight) + * This document describes LINE Messaging API(Insight). + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { GetRichMenuInsightDailyResponseBounds } from "./getRichMenuInsightDailyResponseBounds.js"; +import { GetRichMenuInsightDailyResponseDailyMetrics } from "./getRichMenuInsightDailyResponseDailyMetrics.js"; + +/** + * Daily click metrics for a single tappable area of the rich menu. + */ +export type GetRichMenuInsightDailyResponseClick = { + bounds: GetRichMenuInsightDailyResponseBounds; + /** + * Per-day click metrics for the target area. + */ + metrics: Array; +}; diff --git a/lib/insight/model/getRichMenuInsightDailyResponseDailyMetrics.ts b/lib/insight/model/getRichMenuInsightDailyResponseDailyMetrics.ts new file mode 100644 index 000000000..87512efda --- /dev/null +++ b/lib/insight/model/getRichMenuInsightDailyResponseDailyMetrics.ts @@ -0,0 +1,30 @@ +/** + * LINE Messaging API(Insight) + * This document describes LINE Messaging API(Insight). + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/** + * Aggregated number of events and unique users for a single day. + */ +export type GetRichMenuInsightDailyResponseDailyMetrics = { + /** + * The date (JST) of these metrics. Format: yyyyMMdd (e.g. 20260213). + * Pattern: /^[0-9]{8}$/ + */ + date: string; + /** + * Number of impressions or clicks on this day. + */ + count: number; + /** + * Approximate number of unique users who triggered an impression or click on this day. + */ + uniqueUsers: number; +}; diff --git a/lib/insight/model/getRichMenuInsightDailyResponseImpression.ts b/lib/insight/model/getRichMenuInsightDailyResponseImpression.ts new file mode 100644 index 000000000..6ba161505 --- /dev/null +++ b/lib/insight/model/getRichMenuInsightDailyResponseImpression.ts @@ -0,0 +1,23 @@ +/** + * LINE Messaging API(Insight) + * This document describes LINE Messaging API(Insight). + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { GetRichMenuInsightDailyResponseDailyMetrics } from "./getRichMenuInsightDailyResponseDailyMetrics.js"; + +/** + * Daily impression metrics for the whole rich menu. + */ +export type GetRichMenuInsightDailyResponseImpression = { + /** + * Per-day impression metrics. + */ + metrics: Array; +}; diff --git a/lib/insight/model/getRichMenuInsightSummaryResponse.ts b/lib/insight/model/getRichMenuInsightSummaryResponse.ts new file mode 100644 index 000000000..1b8d24362 --- /dev/null +++ b/lib/insight/model/getRichMenuInsightSummaryResponse.ts @@ -0,0 +1,39 @@ +/** + * LINE Messaging API(Insight) + * This document describes LINE Messaging API(Insight). + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { GetRichMenuInsightSummaryResponseClick } from "./getRichMenuInsightSummaryResponseClick.js"; +import { GetRichMenuInsightSummaryResponseImpression } from "./getRichMenuInsightSummaryResponseImpression.js"; + +/** + * Summary of impression and click statistics for a rich menu created via the Messaging API. + */ +export type GetRichMenuInsightSummaryResponse = { + /** + * Rich menu ID. + */ + richMenuId: string; + /** + * Start date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260213). + * Pattern: /^[0-9]{8}$/ + */ + metricsFrom?: string | null; + /** + * End date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260215). + * Pattern: /^[0-9]{8}$/ + */ + metricsTo?: string | null; + impression?: GetRichMenuInsightSummaryResponseImpression; + /** + * Click metrics for each tappable area of the rich menu. + */ + clicks?: Array; +}; diff --git a/lib/insight/model/getRichMenuInsightSummaryResponseBounds.ts b/lib/insight/model/getRichMenuInsightSummaryResponseBounds.ts new file mode 100644 index 000000000..afd6c5083 --- /dev/null +++ b/lib/insight/model/getRichMenuInsightSummaryResponseBounds.ts @@ -0,0 +1,33 @@ +/** + * LINE Messaging API(Insight) + * This document describes LINE Messaging API(Insight). + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/** + * Target area of the metrics, represented by the top-left coordinate, width, and height. + */ +export type GetRichMenuInsightSummaryResponseBounds = { + /** + * The x coordinate of the top-left corner of the target area. + */ + x: number; + /** + * The y coordinate of the top-left corner of the target area. + */ + y: number; + /** + * The width of the target area. + */ + width: number; + /** + * The height of the target area. + */ + height: number; +}; diff --git a/lib/insight/model/getRichMenuInsightSummaryResponseClick.ts b/lib/insight/model/getRichMenuInsightSummaryResponseClick.ts new file mode 100644 index 000000000..7f4e6eed4 --- /dev/null +++ b/lib/insight/model/getRichMenuInsightSummaryResponseClick.ts @@ -0,0 +1,22 @@ +/** + * LINE Messaging API(Insight) + * This document describes LINE Messaging API(Insight). + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { GetRichMenuInsightSummaryResponseBounds } from "./getRichMenuInsightSummaryResponseBounds.js"; +import { GetRichMenuInsightSummaryResponseMetrics } from "./getRichMenuInsightSummaryResponseMetrics.js"; + +/** + * Click metrics for a single tappable area of the rich menu. + */ +export type GetRichMenuInsightSummaryResponseClick = { + bounds: GetRichMenuInsightSummaryResponseBounds; + metrics: GetRichMenuInsightSummaryResponseMetrics; +}; diff --git a/lib/insight/model/getRichMenuInsightSummaryResponseImpression.ts b/lib/insight/model/getRichMenuInsightSummaryResponseImpression.ts new file mode 100644 index 000000000..5505ecf21 --- /dev/null +++ b/lib/insight/model/getRichMenuInsightSummaryResponseImpression.ts @@ -0,0 +1,20 @@ +/** + * LINE Messaging API(Insight) + * This document describes LINE Messaging API(Insight). + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { GetRichMenuInsightSummaryResponseMetrics } from "./getRichMenuInsightSummaryResponseMetrics.js"; + +/** + * Impression metrics for the whole rich menu. + */ +export type GetRichMenuInsightSummaryResponseImpression = { + metrics: GetRichMenuInsightSummaryResponseMetrics; +}; diff --git a/lib/insight/model/getRichMenuInsightSummaryResponseMetrics.ts b/lib/insight/model/getRichMenuInsightSummaryResponseMetrics.ts new file mode 100644 index 000000000..da003be6b --- /dev/null +++ b/lib/insight/model/getRichMenuInsightSummaryResponseMetrics.ts @@ -0,0 +1,25 @@ +/** + * LINE Messaging API(Insight) + * This document describes LINE Messaging API(Insight). + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/** + * Aggregated number of events and unique users over the whole period. + */ +export type GetRichMenuInsightSummaryResponseMetrics = { + /** + * Number of impressions or clicks. + */ + count: number; + /** + * Approximate number of unique users who triggered an impression or click. + */ + uniqueUsers: number; +}; diff --git a/lib/insight/model/models.ts b/lib/insight/model/models.ts index 4fcb0a7ae..88d4cb2c4 100644 --- a/lib/insight/model/models.ts +++ b/lib/insight/model/models.ts @@ -11,6 +11,16 @@ export * from "./getMessageEventResponseMessage.js"; export * from "./getMessageEventResponseOverview.js"; export * from "./getNumberOfFollowersResponse.js"; export * from "./getNumberOfMessageDeliveriesResponse.js"; +export * from "./getRichMenuInsightDailyResponse.js"; +export * from "./getRichMenuInsightDailyResponseBounds.js"; +export * from "./getRichMenuInsightDailyResponseClick.js"; +export * from "./getRichMenuInsightDailyResponseDailyMetrics.js"; +export * from "./getRichMenuInsightDailyResponseImpression.js"; +export * from "./getRichMenuInsightSummaryResponse.js"; +export * from "./getRichMenuInsightSummaryResponseBounds.js"; +export * from "./getRichMenuInsightSummaryResponseClick.js"; +export * from "./getRichMenuInsightSummaryResponseImpression.js"; +export * from "./getRichMenuInsightSummaryResponseMetrics.js"; export * from "./getStatisticsPerUnitResponse.js"; export * from "./getStatisticsPerUnitResponseClick.js"; export * from "./getStatisticsPerUnitResponseMessage.js"; diff --git a/lib/line-bot-client.generated.ts b/lib/line-bot-client.generated.ts index 5c3cb6c52..3c5187898 100644 --- a/lib/line-bot-client.generated.ts +++ b/lib/line-bot-client.generated.ts @@ -154,6 +154,90 @@ export abstract class LineBotClientBase { return this.clients.insight.getNumberOfMessageDeliveriesWithHttpInfo(date); } + /** + * Gets rich menu statistics broken down by day for the specified period, for a rich menu created via the Messaging API. Returns the daily impression count for the whole rich menu and the daily click count for each tappable area. When the total number of unique clicks during the period is below the privacy threshold, only `richMenuId` is returned and the other fields are omitted. + * Calls `GET https://api.line.me/v2/bot/insight/richmenu/{richMenuId}/daily`. + * To inspect the HTTP status code or response headers, use {@link getRichMenuInsightDailyWithHttpInfo}. + * @summary Get rich menu insight daily + * @param richMenuId ID of the rich menu created via the Messaging API. + * @param from Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 + * @param to End date of the aggregation period (inclusive). The end date can be specified for up to 99 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + * @returns A promise resolving to the response body. + * @see LINE Developers documentation + */ + public async getRichMenuInsightDaily( + richMenuId: string, + from: string, + to: string, + ): Promise { + return this.clients.insight.getRichMenuInsightDaily(richMenuId, from, to); + } + + /** + * Gets rich menu statistics broken down by day for the specified period, for a rich menu created via the Messaging API. Returns the daily impression count for the whole rich menu and the daily click count for each tappable area. When the total number of unique clicks during the period is below the privacy threshold, only `richMenuId` is returned and the other fields are omitted. + * Calls `GET https://api.line.me/v2/bot/insight/richmenu/{richMenuId}/daily`. + * This method returns the response body together with the underlying `httpResponse`. + * @summary Get rich menu insight daily + * @param richMenuId ID of the rich menu created via the Messaging API. + * @param from Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 + * @param to End date of the aggregation period (inclusive). The end date can be specified for up to 99 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + * @returns A promise resolving to the response body together with the underlying `httpResponse`. + * @see LINE Developers documentation + */ + public async getRichMenuInsightDailyWithHttpInfo( + richMenuId: string, + from: string, + to: string, + ): Promise> { + return this.clients.insight.getRichMenuInsightDailyWithHttpInfo( + richMenuId, + from, + to, + ); + } + + /** + * Gets a summary of rich menu statistics for the specified period, for a rich menu created via the Messaging API. Returns the total impression count for the whole rich menu and the click count for each tappable area, aggregated over the entire period as a single result. When the total number of unique clicks during the period is below the privacy threshold, only `richMenuId` is returned and the other fields are omitted. + * Calls `GET https://api.line.me/v2/bot/insight/richmenu/{richMenuId}/summary`. + * To inspect the HTTP status code or response headers, use {@link getRichMenuInsightSummaryWithHttpInfo}. + * @summary Get rich menu insight summary + * @param richMenuId ID of the rich menu created via the Messaging API. + * @param from Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 + * @param to End date of the aggregation period (inclusive). The end date can be specified for up to 396 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + * @returns A promise resolving to the response body. + * @see LINE Developers documentation + */ + public async getRichMenuInsightSummary( + richMenuId: string, + from: string, + to: string, + ): Promise { + return this.clients.insight.getRichMenuInsightSummary(richMenuId, from, to); + } + + /** + * Gets a summary of rich menu statistics for the specified period, for a rich menu created via the Messaging API. Returns the total impression count for the whole rich menu and the click count for each tappable area, aggregated over the entire period as a single result. When the total number of unique clicks during the period is below the privacy threshold, only `richMenuId` is returned and the other fields are omitted. + * Calls `GET https://api.line.me/v2/bot/insight/richmenu/{richMenuId}/summary`. + * This method returns the response body together with the underlying `httpResponse`. + * @summary Get rich menu insight summary + * @param richMenuId ID of the rich menu created via the Messaging API. + * @param from Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 + * @param to End date of the aggregation period (inclusive). The end date can be specified for up to 396 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + * @returns A promise resolving to the response body together with the underlying `httpResponse`. + * @see LINE Developers documentation + */ + public async getRichMenuInsightSummaryWithHttpInfo( + richMenuId: string, + from: string, + to: string, + ): Promise> { + return this.clients.insight.getRichMenuInsightSummaryWithHttpInfo( + richMenuId, + from, + to, + ); + } + /** * You can check the per-unit statistics of how users interact with push messages and multicast messages sent from your LINE Official Account. * Calls `GET https://api.line.me/v2/bot/insight/message/event/aggregation`. diff --git a/line-openapi b/line-openapi index 82f108c6a..6e4c2a2a1 160000 --- a/line-openapi +++ b/line-openapi @@ -1 +1 @@ -Subproject commit 82f108c6a38f3b71a1bc9673486357d93fdb6597 +Subproject commit 6e4c2a2a1b7b059ea3920456d4f88d03fd8ef0bb