From c2b2d7ad52d2cdd1d721ae4569fb6f8cb0540476 Mon Sep 17 00:00:00 2001 From: Luan Date: Mon, 25 Nov 2024 05:33:49 -0300 Subject: [PATCH] feat(parser): Add `ChangeEngagementPanelVisibilityAction` --- .../ChangeEngagementPanelVisibilityAction.ts | 15 +++++++++++++++ src/parser/nodes.ts | 1 + 2 files changed, 16 insertions(+) create mode 100644 src/parser/classes/actions/ChangeEngagementPanelVisibilityAction.ts diff --git a/src/parser/classes/actions/ChangeEngagementPanelVisibilityAction.ts b/src/parser/classes/actions/ChangeEngagementPanelVisibilityAction.ts new file mode 100644 index 000000000..c6c39d879 --- /dev/null +++ b/src/parser/classes/actions/ChangeEngagementPanelVisibilityAction.ts @@ -0,0 +1,15 @@ +import { YTNode } from '../../helpers.js'; +import type { RawNode } from '../../index.js'; + +export default class ChangeEngagementPanelVisibilityAction extends YTNode { + static type = 'ChangeEngagementPanelVisibilityAction'; + + public target_id: string; + public visibility: string; + + constructor(data: RawNode) { + super(); + this.target_id = data.targetId; + this.visibility = data.visibility; + } +} \ No newline at end of file diff --git a/src/parser/nodes.ts b/src/parser/nodes.ts index 65919e73b..98a6ebb35 100644 --- a/src/parser/nodes.ts +++ b/src/parser/nodes.ts @@ -9,6 +9,7 @@ export { default as AccountItemSection } from './classes/AccountItemSection.js'; export { default as AccountItemSectionHeader } from './classes/AccountItemSectionHeader.js'; export { default as AccountSectionList } from './classes/AccountSectionList.js'; export { default as AppendContinuationItemsAction } from './classes/actions/AppendContinuationItemsAction.js'; +export { default as ChangeEngagementPanelVisibilityAction } from './classes/actions/ChangeEngagementPanelVisibilityAction.js'; export { default as GetMultiPageMenuAction } from './classes/actions/GetMultiPageMenuAction.js'; export { default as OpenPopupAction } from './classes/actions/OpenPopupAction.js'; export { default as SendFeedbackAction } from './classes/actions/SendFeedbackAction.js';