itube-specs 0.0.454 → 0.0.455

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.454",
4
+ "version": "0.0.455",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {
@@ -1,4 +1,5 @@
1
1
  import type { IRawCategoryInfo, ICardInfo } from '../../../types';
2
+ import { convertCategoriesToChips } from '~/runtime';
2
3
 
3
4
  export const cleanCategoryInfo = (card: IRawCategoryInfo): ICardInfo => ({
4
5
  guid: card.guid || '',
@@ -6,4 +7,7 @@ export const cleanCategoryInfo = (card: IRawCategoryInfo): ICardInfo => ({
6
7
  videosCount: card.videosCount || 0,
7
8
  description: card.description || '',
8
9
  thumbUrl: card.video_thumb_urls?.webp?.['480x270'] || '',
10
+ fullDescription: card.fullDescription || '',
11
+ related: convertCategoriesToChips(card.related || [], 'categories'),
12
+ metaDescription: card.meta_description || '',
9
13
  })
@@ -1,4 +1,5 @@
1
1
  import type { IParameterModel } from './parameter-model';
2
+ import type { IChipsItem } from './chips-item';
2
3
 
3
4
  export interface ICardInfo {
4
5
  title: string;
@@ -19,4 +20,9 @@ export interface ICardInfo {
19
20
  [key: string]: string | undefined;
20
21
  };
21
22
  parameters?: IParameterModel[]
23
+
24
+ // Fields specific to Category
25
+ fullDescription?: string
26
+ related?: IChipsItem[]
27
+ metaDescription?: string
22
28
  }
@@ -1,4 +1,5 @@
1
- import { IThumbUrls } from '../thumbs-urls';
1
+ import type { IThumbUrls } from '../thumbs-urls';
2
+ import type { IRawCategoryCard } from './raw-category-card';
2
3
 
3
4
  export interface IRawCategoryInfo {
4
5
  guid: string;
@@ -6,7 +7,7 @@ export interface IRawCategoryInfo {
6
7
  title: string;
7
8
  tags: string[]; // unused
8
9
  meta_title: string; // unused
9
- meta_description: string; // unused
10
+ meta_description: string;
10
11
  meta_keywords: string; // unused
11
12
  language_guid: string; // unused
12
13
  language_name: string; // unused
@@ -18,6 +19,8 @@ export interface IRawCategoryInfo {
18
19
  video_md5: string; // unused
19
20
  thumb_number: number; // unused
20
21
  description: string;
21
- header: string; // unused
22
+ header: string;
23
+ fullDescription: string;
22
24
  video_thumb_urls: IThumbUrls;
25
+ related: IRawCategoryCard[]
23
26
  }