@apidog/vk-typings
Advanced tools
Comparing version 1.0.19 to 1.0.20
{ | ||
"name": "@apidog/vk-typings", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"description": "Typings for VK API objects", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -9,8 +9,8 @@ import type { IPhoto } from './IPhoto'; | ||
author_owner_id: number; | ||
author_url: string; | ||
author_url?: string; | ||
author_group?: number; | ||
author_id?: number; | ||
banner_1120: string; | ||
banner_560: string; | ||
hide_tabbar: boolean; | ||
banner_1120?: string; | ||
banner_560?: string; | ||
hide_tabbar?: boolean; | ||
icon_75: string; | ||
@@ -21,10 +21,10 @@ icon_139: string; | ||
icon_576: string; | ||
international: 0 | 1; | ||
international?: 0 | 1; | ||
is_favorite: boolean; | ||
is_in_catalog: boolean; | ||
is_in_catalog?: boolean; | ||
is_installed: boolean; | ||
leaderboard_type: 0 | 1 | 2; | ||
catalog_position: number; | ||
published_date: number; | ||
members_count: number; | ||
leaderboard_type?: 0 | 1 | 2; | ||
catalog_position?: number; | ||
published_date?: number; | ||
members_count?: number; | ||
open_in_external_browser: boolean; | ||
@@ -42,2 +42,14 @@ share_url?: string; | ||
screenshoots?: IPhoto[]; | ||
need_policy_confirmation?: boolean; | ||
can_cache?: boolean; | ||
is_install_screen?: boolean; | ||
is_recommended?: boolean; | ||
short_description?: string; | ||
profile_button_available?: boolean; | ||
is_button_added_to_profile?: boolean; | ||
app_status?: number; | ||
mobile_controls_type?: number; | ||
need_show_unverified_screen?: boolean; | ||
is_calls_available?: boolean; | ||
} |
@@ -27,6 +27,6 @@ import type { IAudioAds } from './IAudioAds'; | ||
main_artists?: IAudioArtist[]; | ||
short_videos_allowed?: false; | ||
short_videos_allowed?: boolean; | ||
stories_cover_allowed?: boolean; | ||
stories_allowed?: false; | ||
stories_allowed?: boolean; | ||
release_audio_id?: string; | ||
} |
@@ -5,2 +5,4 @@ export interface IAudioArtist { | ||
id: string; | ||
is_followed?: boolean; | ||
can_follow?: boolean; | ||
} |
@@ -0,3 +1,6 @@ | ||
import type { IAudio } from './IAudio'; | ||
import type { IAudioAlbumThumb } from './IAudioAlbumThumb'; | ||
import type { IAudioArtist } from './IAudioArtist'; | ||
import type { IAudioGenre } from './IAudioGenre'; | ||
import type { IAudioPlaylistPermissions } from './IAudioPlaylistPermissions'; | ||
@@ -18,11 +21,17 @@ export interface IAudioPlaylist { | ||
album_type: 'playlist' | 'main_only'; | ||
thumbs: IAudioAlbumThumb[]; | ||
thumbs?: IAudioAlbumThumb[]; | ||
// meta?: { | ||
// view: 'compact'; | ||
// }; | ||
// audios?: IAudio[]; | ||
year?: number; | ||
// photo: IAudioAlbumThumb; | ||
is_explicit?: boolean; | ||
// main_artists?: IAudioArtist[]; | ||
is_following?: boolean; | ||
audios?: IAudio[]; | ||
main_artists?: IAudioArtist[]; | ||
photo?: IAudioAlbumThumb; | ||
permissions?: IAudioPlaylistPermissions; | ||
subtitle_badge?: boolean; | ||
play_button?: boolean; | ||
exclusive?: boolean; | ||
} |
@@ -5,3 +5,4 @@ export interface ICommentsInfo { | ||
count: number; | ||
can_view?: 0 | 1; | ||
groups_can_post?: boolean; | ||
} |
export interface IGraffiti { | ||
id: number; | ||
owner_id: number; | ||
url: string; | ||
width: number; | ||
height: number | ||
access_key: string; | ||
/** Это типа есть по официальной доке, в реальности нет */ | ||
url?: string; | ||
/** Это типа есть по официальной доке, в реальности нет */ | ||
width?: number; | ||
/** Это типа есть по официальной доке, в реальности нет */ | ||
height?: number; | ||
/** Это типа по реальным данным */ | ||
photo_200?: string; | ||
/** Это типа по реальным данным */ | ||
photo_586?: string; | ||
} |
@@ -10,2 +10,4 @@ import type { IApplication } from './IApplication'; | ||
button_text: string; | ||
is_default_icon?: boolean; | ||
is_default_description?: boolean; | ||
} |
@@ -17,2 +17,3 @@ export * from './IAccount'; | ||
export * from './IAudioPlaylist'; | ||
export * from './IAudioPlaylistPermissions'; | ||
export * from './ICall'; | ||
@@ -19,0 +20,0 @@ export * from './IChatAccess'; |
@@ -7,2 +7,4 @@ export interface INote { | ||
text: string; | ||
/** HTML-код. В attachments в посте пустая строка */ | ||
text_wiki: string; | ||
date: number; | ||
@@ -9,0 +11,0 @@ /** Количество комментариев */ |
@@ -21,4 +21,6 @@ import type { IPhoto } from './IPhoto'; | ||
thumb_is_last?: 0 | 1; | ||
privacy_view: IPhotoPrivacy; | ||
privacy_comment: IPhotoPrivacy; | ||
privacy_view?: IPhotoPrivacy; | ||
privacy_comment?: IPhotoPrivacy; | ||
is_locked?: boolean; | ||
/** Только в альбомах сообщества */ | ||
@@ -25,0 +27,0 @@ can_upload?: boolean; |
@@ -43,5 +43,5 @@ import type { IPhoto } from './IPhoto'; | ||
export interface IStoryVideo extends IStoryBase<'video'> { | ||
video: IVideo; | ||
video: IVideo & Required<Pick<IVideo, 'image'>>; | ||
} | ||
export type IStory = IStoryPhoto | IStoryVideo; |
@@ -17,5 +17,8 @@ import type { ILikesInfo } from './ILikesInfo'; | ||
description: string; | ||
duration: number; | ||
/** Отсутствует у удалённых */ | ||
duration?: number; | ||
first_frame?: IVideoImage[]; | ||
image: IVideoImage[]; | ||
image?: IVideoImage[]; | ||
date: number; | ||
@@ -30,6 +33,8 @@ adding_date?: number; | ||
can_add: 0 | 1; | ||
can_edit: 0 | 1; | ||
can_edit_privacy: 0 | 1; | ||
can_delete: 0 | 1; | ||
can_edit?: 0 | 1; | ||
can_edit_privacy?: 0 | 1; | ||
can_delete?: 0 | 1; | ||
can_be_pinned?: boolean; | ||
is_private?: boolean; | ||
is_pinned?: boolean; | ||
processing?: boolean; | ||
@@ -42,2 +47,3 @@ converting?: boolean; | ||
repeat?: boolean; | ||
added?: 0 | 1; | ||
width?: number; | ||
@@ -48,4 +54,4 @@ height?: number; | ||
can_repost: 0 | 1; | ||
can_attach_link: 0 | 1; | ||
can_subscribe?: boolean; | ||
can_attach_link?: 0 | 1; | ||
can_subscribe?: 0 | 1; | ||
/** only without callback */ | ||
@@ -67,3 +73,2 @@ can_add_to_faves: 0 | 1; | ||
privacy_comment?: IPhotoPrivacy; | ||
track_code: string; | ||
response_type?: 'full' | 'min'; | ||
@@ -70,0 +75,0 @@ content_restricted?: 1; |
@@ -23,5 +23,7 @@ export interface IVideoRestriction { | ||
// Видео недоступно, так как страница автора заблокирована | ||
// Видео удалено | ||
| 'do_not_disturb_outline' | ||
| 'lock_outline' // Видео доступно только подписчикам | ||
| 'delete_outline' // Видео недоступно на стороннем сайте | ||
; | ||
} |
@@ -5,2 +5,8 @@ export interface IWikiPage { | ||
title: string; | ||
created: number; | ||
edited: number; | ||
view_url: string; | ||
views?: number; | ||
who_can_edit: number; | ||
who_can_view: number; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74844
152
2477