diff --git a/tools/release/capture-app-driver.ts b/tools/release/capture-app-driver.ts index cfbe7dd0e..6f234389d 100644 --- a/tools/release/capture-app-driver.ts +++ b/tools/release/capture-app-driver.ts @@ -16,6 +16,8 @@ import { import { M3U_FIXTURE_TITLE, + MOCK_FIXTURE_CATEGORIES, + STALKER_MOCK_FIXTURE_CATEGORIES, STALKER_FIXTURE_MAC, STALKER_FIXTURE_PORTAL_URL, STALKER_FIXTURE_TITLE, @@ -40,26 +42,6 @@ export { XTREAM_MOCK_ORIGIN, } from './capture-fixtures'; -/** - * Synthetic categories that only the marketing fixture generator produces, - * per catalog. They must be checked against their OWN endpoint: a series - * category can never appear in `get_vod_categories`, and asserting it there - * made the reuse path below reject every already-running mock. - */ -const MOCK_FIXTURE_CATEGORIES: ReadonlyArray<{ - action: 'get_vod_categories' | 'get_series_categories'; - name: string; -}> = [ - { action: 'get_vod_categories', name: 'Action & Mystery' }, - { action: 'get_series_categories', name: 'Urban Drama' }, -]; -/** - * Live categories of the Stalker mock's marketing-demo scenario, from - * `MARKETING_LIVE_CATEGORIES` in `@iptvnator/shared/marketing-fixtures`. - * Spelled out here because `pnpm release:screenshots` runs tsx without the - * base tsconfig, so workspace path aliases do not resolve in this file. - */ -const STALKER_MOCK_FIXTURE_CATEGORIES = ['Newsroom', 'Culture & Docs']; /* ------------------------------------------------------------------ */ diff --git a/tools/release/capture-fixtures.ts b/tools/release/capture-fixtures.ts index cfda0f827..5baa2e5df 100644 --- a/tools/release/capture-fixtures.ts +++ b/tools/release/capture-fixtures.ts @@ -73,3 +73,24 @@ export const AUTO_DETECT_FIXTURE_MESSAGE = [ '', 'Use these details in any Xtream Codes compatible player.', ].join('\n'); + +/** + * Synthetic categories that only the marketing fixture generator produces, + * per catalog. They must be checked against their OWN endpoint: a series + * category can never appear in `get_vod_categories`, and asserting it there + * made the reuse path below reject every already-running mock. + */ +export const MOCK_FIXTURE_CATEGORIES: ReadonlyArray<{ + action: 'get_vod_categories' | 'get_series_categories'; + name: string; +}> = [ + { action: 'get_vod_categories', name: 'Action & Mystery' }, + { action: 'get_series_categories', name: 'Urban Drama' }, +]; +/** + * Live categories of the Stalker mock's marketing-demo scenario, from + * `MARKETING_LIVE_CATEGORIES` in `@iptvnator/shared/marketing-fixtures`. + * Spelled out here because `pnpm release:screenshots` runs tsx without the + * base tsconfig, so workspace path aliases do not resolve in this file. + */ +export const STALKER_MOCK_FIXTURE_CATEGORIES = ['Newsroom', 'Culture & Docs'];