diff --git a/src/parser/classes/EomSettingsDisclaimer.ts b/src/parser/classes/EomSettingsDisclaimer.ts new file mode 100644 index 000000000..51031347f --- /dev/null +++ b/src/parser/classes/EomSettingsDisclaimer.ts @@ -0,0 +1,22 @@ +import Text from './misc/Text.js'; +import { YTNode } from '../helpers.js'; +import { type RawNode } from '../index.js'; + +export default class EomSettingsDisclaimer extends YTNode { + static type = 'EomSettingsDisclaimer'; + + disclaimer: Text; + info_icon: { + icon_type: string + }; + usage_scenario: string; + + constructor(data: RawNode) { + super(); + this.disclaimer = new Text(data.disclaimer); + this.info_icon = { + icon_type: data.infoIcon.iconType + }; + this.usage_scenario = data.usageScenario; + } +} diff --git a/src/parser/nodes.ts b/src/parser/nodes.ts index 46d2ad1b3..365b8eea8 100644 --- a/src/parser/nodes.ts +++ b/src/parser/nodes.ts @@ -120,6 +120,7 @@ export { default as EndScreenPlaylist } from './classes/EndScreenPlaylist.js'; export { default as EndScreenVideo } from './classes/EndScreenVideo.js'; export { default as EngagementPanelSectionList } from './classes/EngagementPanelSectionList.js'; export { default as EngagementPanelTitleHeader } from './classes/EngagementPanelTitleHeader.js'; +export { default as EomSettingsDisclaimer } from './classes/EomSettingsDisclaimer.js'; export { default as ExpandableMetadata } from './classes/ExpandableMetadata.js'; export { default as ExpandableTab } from './classes/ExpandableTab.js'; export { default as ExpandableVideoDescriptionBody } from './classes/ExpandableVideoDescriptionBody.js';