vkontakte-api
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -5,2 +5,9 @@ # Changelog | ||
### [3.0.2](https://github.com/wolframdeus/vk-api/compare/v3.0.1...v3.0.2) (2021-07-05) | ||
### Bug Fixes | ||
* **types:** fix objects types ([61bff96](https://github.com/wolframdeus/vk-api/commit/61bff96a56a0435448faef4de180895cf4a519df)) | ||
### [3.0.1](https://github.com/wolframdeus/vk-api/compare/v3.0.0...v3.0.1) (2021-07-05) | ||
@@ -7,0 +14,0 @@ |
@@ -21,4 +21,4 @@ import { IPhoto, IObjectSharedProps, IVideo, IAudio, IDoc, ILink, INote, IPoll, IPage, IMarketItem, IMarketItemExtended, IMarketAlbum, ISticker, IImage, IButton } from './objects'; | ||
export declare type TPostedPhotoAttachment = TGenericAttachment<'posted_photo', IObjectSharedProps & { | ||
photo130: string; | ||
photo604: string; | ||
photo_130: string; | ||
photo_604: string; | ||
}>; | ||
@@ -29,4 +29,4 @@ export declare type TVideoAttachment = TGenericAttachment<'video', IVideo>; | ||
export declare type TGraffitiAttachment = TGenericAttachment<'graffiti', IObjectSharedProps & { | ||
photo130: string; | ||
photo604: string; | ||
photo_130: string; | ||
photo_604: string; | ||
}>; | ||
@@ -38,4 +38,4 @@ export declare type TLinkAttachment = TGenericAttachment<'link', ILink>; | ||
name: string; | ||
photo130: string; | ||
photo604: string; | ||
photo_130: string; | ||
photo_604: string; | ||
}>; | ||
@@ -58,4 +58,4 @@ export declare type TPollAttachment = TGenericAttachment<'poll', IPoll>; | ||
cards: Array<{ | ||
cardId: number; | ||
linkUrl: string; | ||
card_id: number; | ||
link_url: string; | ||
title: string; | ||
@@ -65,3 +65,3 @@ images: IImage[]; | ||
price: number; | ||
priceOld: number; | ||
price_old: number; | ||
}>; | ||
@@ -72,7 +72,7 @@ }>; | ||
time: number; | ||
memberStatus: EEventAttachmentMemberStatus; | ||
isFavorite: boolean; | ||
member_status: EEventAttachmentMemberStatus; | ||
is_favorite: boolean; | ||
address: string; | ||
text: string; | ||
buttonText: string; | ||
button_text: string; | ||
friends: number[]; | ||
@@ -79,0 +79,0 @@ }>; |
@@ -37,8 +37,8 @@ import { IObjectSharedProps } from './shared'; | ||
url: string; | ||
lyricsId?: number; | ||
albumId?: number; | ||
genreId: EAudioGenre; | ||
lyrics_id?: number; | ||
album_id?: number; | ||
genre_id: EAudioGenre; | ||
date: number; | ||
noSearch?: 1; | ||
isHq?: 1; | ||
no_search?: 1; | ||
is_hq?: 1; | ||
} |
@@ -23,4 +23,4 @@ interface ITextButtonAction { | ||
type: 'open_app'; | ||
appId: number; | ||
ownerId?: number; | ||
app_id: number; | ||
owner_id?: number; | ||
payload: string; | ||
@@ -27,0 +27,0 @@ label: string; |
@@ -46,33 +46,33 @@ import { IIdTitlePair, TPseudoBoolean } from '../shared'; | ||
name: string; | ||
screenName: string; | ||
isClosed: ECommunityPrivacy; | ||
screen_name: string; | ||
is_closed: ECommunityPrivacy; | ||
deactivated?: 'deleted' | 'banned'; | ||
isAdmin?: TPseudoBoolean; | ||
adminLevel?: ECommunityAdminLevel; | ||
isMember?: TPseudoBoolean; | ||
isAdvertiser?: TPseudoBoolean; | ||
invitedBy?: number; | ||
is_admin?: TPseudoBoolean; | ||
admin_level?: ECommunityAdminLevel; | ||
is_member?: TPseudoBoolean; | ||
is_advertiser?: TPseudoBoolean; | ||
invited_by?: number; | ||
type: 'group' | 'page' | 'event'; | ||
photo50: string; | ||
photo100: string; | ||
photo200: string; | ||
photo_50: string; | ||
photo_100: string; | ||
photo_200: string; | ||
activity?: string; | ||
addresses?: { | ||
isEnabled: boolean; | ||
mainAddressId: number; | ||
is_enabled: boolean; | ||
main_address_id: number; | ||
}; | ||
ageLimits?: ECommunityAgeLimits; | ||
banInfo?: { | ||
endDate: number; | ||
age_limits?: ECommunityAgeLimits; | ||
ban_info?: { | ||
end_date: number; | ||
comment: string; | ||
}; | ||
canCreateTopic?: TPseudoBoolean; | ||
canMessage?: TPseudoBoolean; | ||
canPost?: TPseudoBoolean; | ||
canSeeAllPosts?: TPseudoBoolean; | ||
canUploadDoc?: TPseudoBoolean; | ||
canUploadVideo?: TPseudoBoolean; | ||
can_create_topic?: TPseudoBoolean; | ||
can_message?: TPseudoBoolean; | ||
can_post?: TPseudoBoolean; | ||
can_see_all_posts?: TPseudoBoolean; | ||
can_upload_doc?: TPseudoBoolean; | ||
can_upload_video?: TPseudoBoolean; | ||
city?: IIdTitlePair; | ||
contacts?: { | ||
userId: number; | ||
user_id: number; | ||
desc: string; | ||
@@ -99,9 +99,9 @@ phone: string; | ||
}; | ||
cropPhoto?: ICropPhoto; | ||
crop_photo?: ICropPhoto; | ||
description?: string; | ||
fixedPost?: number; | ||
fixed_post?: number; | ||
has_photo?: TPseudoBoolean; | ||
isFavorite?: TPseudoBoolean; | ||
isHiddenFromFeed?: TPseudoBoolean; | ||
isMessagesBlocked?: TPseudoBoolean; | ||
is_favorite?: TPseudoBoolean; | ||
is_hidden_from_feed?: TPseudoBoolean; | ||
is_messages_blocked?: TPseudoBoolean; | ||
links?: { | ||
@@ -112,7 +112,7 @@ id: number; | ||
desc: string; | ||
photo50: string; | ||
photo100: string; | ||
photo_50: string; | ||
photo_100: string; | ||
}[]; | ||
mainAlbumId?: number; | ||
mainSection?: ECommunitySection; | ||
main_album_id?: number; | ||
main_section?: ECommunitySection; | ||
market?: { | ||
@@ -123,6 +123,6 @@ enabled: 0; | ||
type: 'basic' | 'advanced'; | ||
priceMin: number; | ||
priceMax: number; | ||
mainAlbumId: number; | ||
contactId: number; | ||
price_min: number; | ||
price_max: number; | ||
main_album_id: number; | ||
contact_id: number; | ||
currency: { | ||
@@ -132,6 +132,6 @@ id: number; | ||
}; | ||
currencyText: string; | ||
currency_text: string; | ||
}; | ||
memberStatus?: ECommunityMemberStatus; | ||
membersCount?: number; | ||
member_status?: ECommunityMemberStatus; | ||
members_count?: number; | ||
place?: { | ||
@@ -138,0 +138,0 @@ id: number; |
@@ -35,9 +35,9 @@ import { IObjectSharedProps, IPhotoSize } from './shared'; | ||
}; | ||
audioMessage?: { | ||
audio_message?: { | ||
duration: number; | ||
waveform: number[]; | ||
linkOgg: string; | ||
linkMp3: string; | ||
link_ogg: string; | ||
link_mp3: string; | ||
}; | ||
}; | ||
} |
@@ -28,4 +28,4 @@ import { IPhoto } from './photo'; | ||
}; | ||
previewPage: string; | ||
previewUrl: string; | ||
preview_page: string; | ||
preview_url: string; | ||
} |
@@ -10,3 +10,3 @@ import { IObjectSharedProps } from './shared'; | ||
count: number; | ||
updatedTime: number; | ||
updated_time: number; | ||
} |
@@ -25,3 +25,3 @@ import { IObjectSharedProps } from './shared'; | ||
}; | ||
oldAmount: number; | ||
old_amount: number; | ||
text: string; | ||
@@ -37,6 +37,6 @@ }; | ||
}; | ||
thumbPhoto: string; | ||
thumb_photo: string; | ||
date: number; | ||
availability: EMarketItemAvailability; | ||
isFavorite: boolean; | ||
is_favorite: boolean; | ||
} | ||
@@ -48,10 +48,10 @@ /** | ||
photos: IPhoto[]; | ||
canComment: TPseudoBoolean; | ||
canRepost: TPseudoBoolean; | ||
can_comment: TPseudoBoolean; | ||
can_repost: TPseudoBoolean; | ||
likes: { | ||
userLikes: TPseudoBoolean; | ||
user_likes: TPseudoBoolean; | ||
count: number; | ||
}; | ||
url: string; | ||
buttonTitle: string; | ||
button_title: string; | ||
} |
@@ -10,4 +10,4 @@ import { IObjectSharedProps } from './shared'; | ||
comments: number; | ||
readComments: number; | ||
viewUrl: string; | ||
read_comments: number; | ||
view_url: string; | ||
} |
@@ -16,12 +16,12 @@ import { TPseudoBoolean } from '../shared'; | ||
id: number; | ||
groupId: number; | ||
creatorId: number; | ||
group_id: number; | ||
creator_id: number; | ||
title: string; | ||
currentUserCanEdit: TPseudoBoolean; | ||
currentUserCanEditAccess: TPseudoBoolean; | ||
whoCanView: EPageAccess; | ||
whoCanEdit: EPageAccess; | ||
current_user_can_edit: TPseudoBoolean; | ||
current_user_can_editAccess: TPseudoBoolean; | ||
who_can_view: EPageAccess; | ||
who_can_edit: EPageAccess; | ||
edited: number; | ||
created: number; | ||
editorId: number; | ||
editor_id: number; | ||
views: number; | ||
@@ -32,3 +32,3 @@ parent?: string; | ||
html?: string; | ||
viewUrl: string; | ||
view_url: string; | ||
} |
@@ -6,10 +6,10 @@ import { IObjectSharedProps, IPhotoSize } from './shared'; | ||
export interface IPhoto extends IObjectSharedProps { | ||
albumId: number; | ||
userId: number; | ||
album_id: number; | ||
user_id: number; | ||
text: string; | ||
date: number; | ||
sizes: IPhotoSize[]; | ||
postId?: number; | ||
post_id?: number; | ||
width: number; | ||
height: number; | ||
} |
@@ -18,11 +18,11 @@ import { IObjectSharedProps, IPhotoSize } from './shared'; | ||
multiple: boolean; | ||
answerIds: number[]; | ||
endDate: number; | ||
answer_ids: number[]; | ||
end_date: number; | ||
closed: boolean; | ||
isBoard: boolean; | ||
canEdit: boolean; | ||
canVote: boolean; | ||
canReport: boolean; | ||
canShare: boolean; | ||
authorId: number; | ||
is_board: boolean; | ||
can_edit: boolean; | ||
can_vote: boolean; | ||
can_report: boolean; | ||
can_share: boolean; | ||
author_id: number; | ||
photo: IPhoto; | ||
@@ -29,0 +29,0 @@ background: { |
@@ -10,15 +10,15 @@ import { TPseudoBoolean } from '../shared'; | ||
export interface IPost extends IObjectSharedProps { | ||
fromId: number; | ||
createdBy?: number; | ||
from_id: number; | ||
created_by?: number; | ||
date: number; | ||
text: string; | ||
replyOwnerId: number; | ||
replyPostId: number; | ||
friendsOnly?: 1; | ||
reply_owner_id: number; | ||
reply_post_id: number; | ||
friends_only?: 1; | ||
comments: { | ||
count: number; | ||
canPost?: TPseudoBoolean; | ||
groupsCanPost: TPseudoBoolean; | ||
canClose: boolean; | ||
canOpen: boolean; | ||
can_post?: TPseudoBoolean; | ||
groups_can_post: TPseudoBoolean; | ||
can_close: boolean; | ||
can_open: boolean; | ||
}; | ||
@@ -28,9 +28,9 @@ copyright: string; | ||
count: number; | ||
userLikes?: TPseudoBoolean; | ||
canLike?: TPseudoBoolean; | ||
canPublish?: TPseudoBoolean; | ||
user_likes?: TPseudoBoolean; | ||
can_like?: TPseudoBoolean; | ||
can_publish?: TPseudoBoolean; | ||
}; | ||
reposts: { | ||
count: number; | ||
userReposted?: TPseudoBoolean; | ||
user_reposted?: TPseudoBoolean; | ||
}; | ||
@@ -40,4 +40,4 @@ views: { | ||
}; | ||
postType: 'post' | 'copy' | 'reply' | 'postpone' | 'suggest'; | ||
postSource?: TPostSource; | ||
post_type: 'post' | 'copy' | 'reply' | 'postpone' | 'suggest'; | ||
post_source?: TPostSource; | ||
attachments: TAttachment[]; | ||
@@ -49,10 +49,10 @@ geo: { | ||
}; | ||
signerId: number; | ||
copyHistory?: any; | ||
canPin: TPseudoBoolean; | ||
canEdit: TPseudoBoolean; | ||
isPinned: TPseudoBoolean; | ||
markedAsAds: TPseudoBoolean; | ||
isFavorite: boolean; | ||
postponedId?: number; | ||
signer_id: number; | ||
copy_history?: any; | ||
can_pin: TPseudoBoolean; | ||
can_edit: TPseudoBoolean; | ||
is_pinned: TPseudoBoolean; | ||
marked_as_ads: TPseudoBoolean; | ||
is_favorite: boolean; | ||
postponed_id?: number; | ||
} |
@@ -10,3 +10,3 @@ declare type TDefault = ('on' | 'off')[]; | ||
friend?: TWithDefault<'mutual'>; | ||
friendAccepted?: TDefault; | ||
friend_accepted?: TDefault; | ||
reply?: TDefault; | ||
@@ -17,13 +17,13 @@ comment?: TFrOfFr; | ||
repost?: TFrOfFr; | ||
wallPost?: TDefault; | ||
wallPublish?: TDefault; | ||
groupInvite?: TDefault; | ||
groupAccepted?: TDefault; | ||
eventSoon?: TDefault; | ||
tagPhoto?: TFrOfFr; | ||
appRequest?: TDefault; | ||
sdkOpen?: TDefault; | ||
newPost?: TDefault; | ||
wall_post?: TDefault; | ||
wall_publish?: TDefault; | ||
group_invite?: TDefault; | ||
group_accepted?: TDefault; | ||
event_soon?: TDefault; | ||
tag_photo?: TFrOfFr; | ||
app_request?: TDefault; | ||
sdk_open?: TDefault; | ||
new_post?: TDefault; | ||
birthday?: TDefault; | ||
} | ||
export {}; |
@@ -6,3 +6,3 @@ /** | ||
id: number; | ||
ownerId: number; | ||
owner_id: number; | ||
} | ||
@@ -9,0 +9,0 @@ /** |
@@ -6,6 +6,6 @@ import { IImage } from './shared'; | ||
export interface ISticker { | ||
productId: number; | ||
stickerId: number; | ||
product_id: number; | ||
sticker_id: number; | ||
images: IImage[]; | ||
imagesWithBackground: IImage[]; | ||
images_with_background: IImage[]; | ||
} |
@@ -97,7 +97,7 @@ import { IIdTitlePair, TPseudoBoolean } from '../shared'; | ||
export declare type TCareer = ({ | ||
groupId: number; | ||
group_id: number; | ||
} | { | ||
company: string; | ||
}) & { | ||
countryId: number; | ||
country_id: number; | ||
from: number; | ||
@@ -107,5 +107,5 @@ until: number; | ||
} & ({ | ||
cityId: number; | ||
city_id: number; | ||
} | { | ||
cityName: string; | ||
city_name: string; | ||
}); | ||
@@ -115,4 +115,4 @@ declare type TOnline = { | ||
} & ({} | { | ||
onlineMobile: 1; | ||
onlineApp: number; | ||
online_mobile: 1; | ||
online_app: number; | ||
}); | ||
@@ -125,6 +125,6 @@ declare type TSocial = 'skype' | 'facebook' | 'twitter' | 'livejournal' | 'instagram'; | ||
id: number; | ||
firstName: string; | ||
lastName: string; | ||
isClosed: boolean; | ||
canAccessClosed: boolean; | ||
first_name: string; | ||
last_name: string; | ||
is_closed: boolean; | ||
can_access_closed: boolean; | ||
} & ({ | ||
@@ -137,12 +137,12 @@ deactivated: 'deleted' | 'banned'; | ||
blacklisted?: TPseudoBoolean; | ||
blacklistedByMe?: TPseudoBoolean; | ||
blacklisted_by_me?: TPseudoBoolean; | ||
books?: string; | ||
canPost?: TPseudoBoolean; | ||
canSeeAllPosts?: TPseudoBoolean; | ||
canSeeAudio?: TPseudoBoolean; | ||
canSendFriendRequest?: TPseudoBoolean; | ||
canWritePrivateMessage?: TPseudoBoolean; | ||
can_post?: TPseudoBoolean; | ||
can_see_all_posts?: TPseudoBoolean; | ||
can_see_audio?: TPseudoBoolean; | ||
can_send_friend_request?: TPseudoBoolean; | ||
can_write_private_message?: TPseudoBoolean; | ||
career?: TCareer; | ||
city?: IIdTitlePair; | ||
commonCount?: number; | ||
common_count?: number; | ||
connections?: { | ||
@@ -152,4 +152,4 @@ [key in TSocial]?: string; | ||
contacts?: { | ||
mobilePhone?: string; | ||
homePhone?: string; | ||
mobile_phone?: string; | ||
home_phone?: string; | ||
}; | ||
@@ -164,5 +164,5 @@ counters?: { | ||
groups: number; | ||
onlineFriends: number; | ||
mutualFriends: number; | ||
userVideos: number; | ||
online_friends: number; | ||
mutual_friends: number; | ||
user_videos: number; | ||
followers: number; | ||
@@ -172,34 +172,34 @@ pages: number; | ||
country?: IIdTitlePair; | ||
cropPhoto?: ICropPhoto; | ||
crop_photo?: ICropPhoto; | ||
domain?: string; | ||
education?: { | ||
university: number; | ||
universityName: string; | ||
university_name: string; | ||
faculty: number; | ||
facultyName: string; | ||
faculty_name: string; | ||
graduation: number; | ||
}; | ||
firstNameNom?: string; | ||
firstNameGen?: string; | ||
firstNameDat?: string; | ||
firstNameAcc?: string; | ||
firstNameIns?: string; | ||
firstNameAbl?: string; | ||
followersCount?: number; | ||
friendStatus?: EFriendStatus; | ||
first_name_nom?: string; | ||
first_name_gen?: string; | ||
first_name_dat?: string; | ||
first_name_acc?: string; | ||
first_name_ins?: string; | ||
first_name_abl?: string; | ||
followers_count?: number; | ||
friend_status?: EFriendStatus; | ||
games?: string; | ||
hasMobile?: TPseudoBoolean; | ||
hasPhoto?: TPseudoBoolean; | ||
homeTown?: string; | ||
has_mobile?: TPseudoBoolean; | ||
has_photo?: TPseudoBoolean; | ||
home_town?: string; | ||
interests?: string; | ||
isFavorite?: TPseudoBoolean; | ||
isFriend?: TPseudoBoolean; | ||
isHiddenFromFeed?: TPseudoBoolean; | ||
lastNameNom?: string; | ||
lastNameGen?: string; | ||
lastNameDat?: string; | ||
lastNameAcc?: string; | ||
lastNameIns?: string; | ||
lastNameAbl?: string; | ||
lastSeen?: { | ||
is_favorite?: TPseudoBoolean; | ||
is_friend?: TPseudoBoolean; | ||
is_hidden_from_feed?: TPseudoBoolean; | ||
last_name_nom?: string; | ||
last_name_gen?: string; | ||
last_name_dat?: string; | ||
last_name_acc?: string; | ||
last_name_ins?: string; | ||
last_name_abl?: string; | ||
last_seen?: { | ||
time: number; | ||
@@ -209,7 +209,7 @@ platform: EPlatform; | ||
lists?: string; | ||
maidenName?: string; | ||
maiden_name?: string; | ||
military?: { | ||
unit: string; | ||
unitId: number; | ||
countryId: number; | ||
unit_id: number; | ||
country_id: number; | ||
from: number; | ||
@@ -231,16 +231,16 @@ until: number; | ||
religion?: string; | ||
inspiredBy?: string; | ||
peopleMain?: EPeopleMain; | ||
lifeMain?: ELifeMain; | ||
inspired_by?: string; | ||
people_main?: EPeopleMain; | ||
life_main?: ELifeMain; | ||
smoking?: ESmoking; | ||
alcohol?: EAlcohol; | ||
}; | ||
photo50?: string; | ||
photo100?: string; | ||
photo200orig?: string; | ||
photo200?: string; | ||
photo400orig?: string; | ||
photoId?: string; | ||
photoMax?: string; | ||
photoMaxOrig?: string; | ||
photo_50?: string; | ||
photo_100?: string; | ||
photo_200_orig?: string; | ||
photo_200?: string; | ||
photo_400_orig?: string; | ||
photo_id?: string; | ||
photo_max?: string; | ||
photo_max_orig?: string; | ||
quotes?: string; | ||
@@ -253,3 +253,3 @@ relatives?: Array<{ | ||
relation?: ERelationsStatus; | ||
relationPartner?: { | ||
relation_partner?: { | ||
id?: number; | ||
@@ -263,15 +263,15 @@ name?: string; | ||
name: string; | ||
yearFrom: number; | ||
yearTo: number; | ||
yearGraduated: number; | ||
year_from: number; | ||
year_to: number; | ||
year_graduated: number; | ||
class: string; | ||
speciality: string; | ||
type: ESchoolType; | ||
typeStr: string; | ||
type_str: string; | ||
}>; | ||
screenName?: string; | ||
screen_name?: string; | ||
sex?: ESex; | ||
site?: string; | ||
status?: number; | ||
statusAudio?: IAudio; | ||
status_audio?: IAudio; | ||
timezone?: number; | ||
@@ -286,12 +286,12 @@ trending?: TPseudoBoolean; | ||
faculty: number; | ||
facultyName: string; | ||
faculty_name: string; | ||
chair: number; | ||
chairName: string; | ||
chair_name: string; | ||
graduation: number; | ||
educationForm: string; | ||
educationStatus: string; | ||
education_form: string; | ||
education_status: string; | ||
}>; | ||
verified?: TPseudoBoolean; | ||
wallDefault?: 'owner' | 'all'; | ||
wall_default?: 'owner' | 'all'; | ||
}); | ||
export {}; |
@@ -10,14 +10,14 @@ import { IObjectSharedProps } from './shared'; | ||
duration: number; | ||
photo130: string; | ||
photo320: string; | ||
photo640?: string; | ||
photo800?: string; | ||
photo1280?: string; | ||
firstFrame130: string; | ||
firstFrame320: string; | ||
firstFrame640?: string; | ||
firstFrame800?: string; | ||
firstFrame1280?: string; | ||
photo_130: string; | ||
photo_320: string; | ||
photo_640?: string; | ||
photo_800?: string; | ||
photo_1280?: string; | ||
first_frame_130: string; | ||
first_frame_320: string; | ||
first_frame_640?: string; | ||
first_frame_800?: string; | ||
first_frame_1280?: string; | ||
date: number; | ||
addingDate: number; | ||
adding_date: number; | ||
views: number; | ||
@@ -27,10 +27,10 @@ comments: number; | ||
platform: string; | ||
canEdit?: 1; | ||
canAdd: TPseudoBoolean; | ||
isPrivate?: 1; | ||
accessKey: string; | ||
can_edit?: 1; | ||
can_add: TPseudoBoolean; | ||
is_private?: 1; | ||
access_key: string; | ||
processing?: 1; | ||
live?: 1; | ||
upcoming?: 1; | ||
isFavorite: boolean; | ||
is_favorite: boolean; | ||
} |
{ | ||
"name": "vkontakte-api", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "TypeScript library to make requests performing to VK API simple", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/wolframdeus/vk-api", |
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
205481