Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@apidog/vk-typings

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apidog/vk-typings - npm Package Compare versions

Comparing version 1.0.18 to 1.0.19

src/IPhotoExtended.ts

2

package.json
{
"name": "@apidog/vk-typings",
"version": "1.0.18",
"version": "1.0.19",
"description": "Typings for VK API objects",

@@ -5,0 +5,0 @@ "scripts": {

@@ -18,3 +18,3 @@ import type { IAudioAds } from './IAudioAds';

date?: number;
no_search?: boolean;
no_search?: 0 | 1;
is_hq?: boolean;

@@ -29,3 +29,5 @@ content_restricted?: boolean;

short_videos_allowed?: false;
stories_cover_allowed?: boolean;
stories_allowed?: false;
release_audio_id?: string;
}

@@ -14,3 +14,4 @@ import type { IDocumentPreview } from './IDocumentPreview';

is_licensed?: 0 | 1;
is_unsafe?: 0 | 1;
preview?: IDocumentPreview;
}
}

@@ -6,2 +6,3 @@ export interface ILikesInfo {

can_publish?: 0 | 1;
repost_disabled?: boolean;
}

@@ -83,2 +83,3 @@ export * from './IAccount';

export * from './IPhotoDefaultSizesObject';
export * from './IPhotoExtended';
export * from './IPhotoPrivacy';

@@ -102,2 +103,7 @@ export * from './IPhotoPrivacyBlock';

export * from './IPushSettings';
export * from './IReaction';
export * from './IReactionAsset';
export * from './IReactionColor';
export * from './IReactionCount';
export * from './IReactionTitle';
export * from './IRepostsInfo';

@@ -104,0 +110,0 @@ export * from './ISchoolItem';

@@ -1,4 +0,2 @@

import type { ILikesInfo } from './ILikesInfo';
import type { IPhotoSize, IPhotoSizeRequireSource, IPhotoSizeRequireType } from './IPhotoSize';
import type { IRepostsInfo } from './IRepostsInfo';

@@ -12,23 +10,11 @@ export interface IPhoto {

user_id?: number;
/** Если фотку постили на стену */
post_id?: number;
text: string;
date: number;
sizes: Array<IPhotoSizeRequireType<IPhotoSizeRequireSource<IPhotoSize, 'url'>>>;
width?: number;
height?: number;
has_tags?: boolean;
/** Только при extended=1 */
can_comment?: boolean;
can_repost?: boolean;
can_be_owner_photo?: boolean; // 01
has_tags: boolean;
lat?: number;
long?: number;
orig_photo?: Omit<IPhotoSizeRequireSource<IPhotoSize, 'url'>, 'type'>;
comments?: {
count: number;
};
tags?: {
count: number;
};
likes: ILikesInfo;
reposts: IRepostsInfo;
web_view_token?: string;
}

@@ -15,2 +15,7 @@ import type { IPhoto } from './IPhoto';

thumb_id?: number;
can_delete: boolean;
can_include_to_feed: boolean;
feed_disabled: 0 | 1;
feed_has_pinned: 0 | 1;
thumb_is_last?: 0 | 1;

@@ -22,5 +27,5 @@ privacy_view: IPhotoPrivacy;

/** Только в альбомах сообщества */
upload_by_admins_only?: boolean;
upload_by_admins_only?: 0 | 1;
/** Только в альбомах сообщества */
comments_disabled?: boolean;
comments_disabled?: 0 | 1;
/** С need_covers=1, без photo_sizes=1 */

@@ -27,0 +32,0 @@ thumb_src?: string;

@@ -7,5 +7,8 @@ import type { ICoordinates } from './ICoordinates';

created: number;
icon: string;
updated: number;
icon?: string;
country: string;
city: string;
is_deleted: boolean;
total_checkins: number;
}

@@ -7,4 +7,6 @@ import type { IAttachments } from './IAttachments';

import type { IPostSource } from './IPostSourceType';
import type { IReactionCount } from './IReactionCount';
import type { IRepostsInfo } from './IRepostsInfo';
import type { IViewsInfo } from './IViewsInfo';
import type { IVkApiList } from './IVkApiList';

@@ -26,8 +28,8 @@ export interface IPost {

reply_post_id?: number;
comments: ICommentsInfo & { can_open?: boolean; };
comments?: ICommentsInfo & { can_open?: boolean; };
likes: ILikesInfo;
reposts: IRepostsInfo;
views: IViewsInfo;
reposts?: IRepostsInfo;
views?: IViewsInfo;
type: string; // TODO
post_type: 'post' | 'copy' | 'reply' | 'postpone' | 'suggest' | 'post_ads' | 'photo' | 'video';
post_type?: 'post' | 'copy' | 'reply' | 'postpone' | 'suggest' | 'post_ads' | 'photo' | 'video';
post_source?: IPostSource;

@@ -38,4 +40,4 @@ attachments?: IAttachments;

copy_history?: IPost[];
can_pin?: boolean;
can_delete?: boolean;
can_pin?: 0 | 1;
can_delete?: 0 | 1;
can_edit?: boolean;

@@ -45,2 +47,5 @@ is_pinned?: boolean;

is_favorite?: boolean;
is_deleted?: boolean;
deleted_reason?: string;
deleted_details?: string;
postponed_id?: boolean;

@@ -53,3 +58,9 @@ final_post?: boolean;

activity?: IPostActivity;
zoom_text?: true;
short_text_rate?: number;
reaction_set_id?: string;
reactions?: IVkApiList<IReactionCount> & {
user_reaction?: number;
};
hash?: string;
}
export interface IPostSource {
type: PostSourceType;
platform: 'android' | 'iphone' | 'wphone' | 'instagram';
platform?: 'android' | 'iphone' | 'wphone' | 'instagram';
data?: 'profile_activity' | 'profile_photo' | 'comments' | 'like' | 'poll';
url: string;
url?: string;
}
export type PostSourceType = 'vk' | 'widget' | 'api' | 'rss' | 'sms' | 'mvk';

@@ -14,9 +14,10 @@ import type { ILikesInfo } from './ILikesInfo';

access_key?: string;
album_id?: number;
title: string;
description: string;
duration: number;
first_frame: IVideoImage[];
first_frame?: IVideoImage[];
image: IVideoImage[];
date: number;
adding_date: number;
adding_date?: number;
views: number;

@@ -26,9 +27,9 @@ local_views?: number;

comments: number;
player: string;
platform: string;
can_add: boolean;
can_edit: boolean;
can_edit_privacy: boolean;
can_delete: boolean;
is_private: boolean;
player?: string;
platform?: string;
can_add: 0 | 1;
can_edit: 0 | 1;
can_edit_privacy: 0 | 1;
can_delete: 0 | 1;
is_private?: boolean;
processing?: boolean;

@@ -38,13 +39,14 @@ converting?: boolean;

upcoming?: boolean;
is_favourite?: boolean;
is_favorite?: boolean;
is_author?: boolean;
repeat?: boolean;
width: number;
height: number;
can_comment: boolean;
can_like: boolean;
can_repost: boolean;
can_attach_link: boolean;
can_subscribe: boolean;
width?: number;
height?: number;
can_comment: 0 | 1;
can_like: 0 | 1;
can_repost: 0 | 1;
can_attach_link: 0 | 1;
can_subscribe?: boolean;
/** only without callback */
can_add_to_faves: boolean;
can_add_to_faves: 0 | 1;
/** only without callback */

@@ -51,0 +53,0 @@ can_play_in_background?: boolean;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc