@vkontakte/api-schema-typescript-generator 0.15.0 → 0.17.0

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.
Files changed (627) hide show
  1. package/.github/CODEOWNERS +1 -1
  2. package/.github/workflows/publish.yml +6 -5
  3. package/.github/workflows/pull_request.yml +2 -2
  4. package/.nvmrc +1 -0
  5. package/LICENSE +1 -1
  6. package/dist/cli.js +5 -6
  7. package/dist/common/common.js +7 -0
  8. package/dist/common/errors.js +1023 -0
  9. package/dist/constants.js +1 -1
  10. package/dist/generator.js +6 -7
  11. package/dist/generators/APITypingsGenerator.js +180 -63
  12. package/dist/generators/SchemaObject.js +7 -7
  13. package/dist/generators/TypeCodeBlock.js +12 -12
  14. package/dist/generators/enums.js +11 -12
  15. package/dist/generators/methods.js +2 -3
  16. package/dist/generators/typeString.js +24 -20
  17. package/dist/generators/utils/mergeImports.js +15 -0
  18. package/dist/helpers.js +44 -31
  19. package/dist/helpers.test.js +7 -7
  20. package/dist/index.js +359 -85
  21. package/dist/log.js +5 -6
  22. package/dist/methods/account.js +5 -0
  23. package/dist/methods/ads.js +10 -0
  24. package/dist/methods/appWidgets.js +5 -0
  25. package/dist/methods/apps.js +5 -0
  26. package/dist/methods/auth.js +10 -0
  27. package/dist/methods/board.js +5 -0
  28. package/dist/methods/bugtracker.js +5 -0
  29. package/dist/methods/calls.js +5 -0
  30. package/dist/methods/database.js +5 -0
  31. package/dist/methods/docs.js +5 -0
  32. package/dist/methods/donut.js +5 -0
  33. package/dist/methods/downloadedGames.js +5 -0
  34. package/dist/methods/execute.js +5 -0
  35. package/dist/methods/fave.js +5 -0
  36. package/dist/methods/friends.js +28 -0
  37. package/dist/methods/gifts.js +5 -0
  38. package/dist/methods/groups.js +5 -0
  39. package/dist/methods/leadForms.js +5 -0
  40. package/dist/methods/likes.js +5 -0
  41. package/dist/methods/market.js +5 -0
  42. package/dist/methods/messages.js +5 -0
  43. package/dist/methods/newsfeed.js +5 -0
  44. package/dist/methods/notes.js +5 -0
  45. package/dist/methods/notifications.js +5 -0
  46. package/dist/methods/orders.js +5 -0
  47. package/dist/methods/pages.js +5 -0
  48. package/dist/methods/photos.js +5 -0
  49. package/dist/methods/podcasts.js +5 -0
  50. package/dist/methods/polls.js +5 -0
  51. package/dist/methods/prettyCards.js +5 -0
  52. package/dist/methods/search.js +5 -0
  53. package/dist/methods/secure.js +5 -0
  54. package/dist/methods/stats.js +5 -0
  55. package/dist/methods/status.js +5 -0
  56. package/dist/methods/storage.js +5 -0
  57. package/dist/methods/store.js +5 -0
  58. package/dist/methods/stories.js +5 -0
  59. package/dist/methods/streaming.js +5 -0
  60. package/dist/methods/translations.js +5 -0
  61. package/dist/methods/users.js +5 -0
  62. package/dist/methods/utils.js +5 -0
  63. package/dist/methods/video.js +5 -0
  64. package/dist/methods/wall.js +5 -0
  65. package/dist/methods/widgets.js +5 -0
  66. package/dist/objects/account/AccountAccountCounters.js +5 -0
  67. package/dist/objects/account/AccountCountersFilter.js +5 -0
  68. package/dist/objects/account/AccountInfo.js +5 -0
  69. package/dist/objects/account/AccountNameRequest.js +5 -0
  70. package/dist/objects/account/AccountNameRequestStatus.js +5 -0
  71. package/dist/objects/account/AccountOffer.js +5 -0
  72. package/dist/objects/account/AccountPushConversations.js +5 -0
  73. package/dist/objects/account/AccountPushConversationsItem.js +5 -0
  74. package/dist/objects/account/AccountPushParams.js +5 -0
  75. package/dist/objects/account/AccountPushParamsMode.js +5 -0
  76. package/dist/objects/account/AccountPushParamsOnoff.js +5 -0
  77. package/dist/objects/account/AccountPushParamsSettings.js +5 -0
  78. package/dist/objects/account/AccountPushSettings.js +5 -0
  79. package/dist/objects/account/AccountUserSettings.js +5 -0
  80. package/dist/objects/account/AccountUserSettingsInterest.js +5 -0
  81. package/dist/objects/account/AccountUserSettingsInterests.js +5 -0
  82. package/dist/objects/address/AddressFields.js +5 -0
  83. package/dist/objects/ads/AdsAccessRole.js +5 -0
  84. package/dist/objects/ads/AdsAccessRolePublic.js +5 -0
  85. package/dist/objects/ads/AdsAccesses.js +5 -0
  86. package/dist/objects/ads/AdsAccount.js +5 -0
  87. package/dist/objects/ads/AdsAccountType.js +5 -0
  88. package/dist/objects/ads/AdsAd.js +5 -0
  89. package/dist/objects/ads/AdsAdApproved.js +13 -0
  90. package/dist/objects/ads/AdsAdCostType.js +13 -0
  91. package/dist/objects/ads/AdsAdLayout.js +5 -0
  92. package/dist/objects/ads/AdsAdStatus.js +12 -0
  93. package/dist/objects/ads/AdsCampaign.js +5 -0
  94. package/dist/objects/ads/AdsCampaignStatus.js +12 -0
  95. package/dist/objects/ads/AdsCampaignType.js +5 -0
  96. package/dist/objects/ads/AdsCategory.js +5 -0
  97. package/dist/objects/ads/AdsClient.js +5 -0
  98. package/dist/objects/ads/AdsClipItem.js +5 -0
  99. package/dist/objects/ads/AdsClipItemLink.js +5 -0
  100. package/dist/objects/ads/AdsCreateAdStatus.js +5 -0
  101. package/dist/objects/ads/AdsCreateCampaignStatus.js +5 -0
  102. package/dist/objects/ads/AdsCreateClientsStatus.js +5 -0
  103. package/dist/objects/ads/AdsCriteriaSex.js +12 -0
  104. package/dist/objects/ads/AdsDemoStats.js +5 -0
  105. package/dist/objects/ads/AdsDemostatsFormat.js +5 -0
  106. package/dist/objects/ads/AdsEventsRetargetingGroup.js +5 -0
  107. package/dist/objects/ads/AdsFloodStats.js +5 -0
  108. package/dist/objects/ads/AdsFloodStatsByUserItem.js +5 -0
  109. package/dist/objects/ads/AdsLinkStatus.js +5 -0
  110. package/dist/objects/ads/AdsLookalikeRequest.js +5 -0
  111. package/dist/objects/ads/AdsLookalikeRequestSaveAudienceLevel.js +5 -0
  112. package/dist/objects/ads/AdsMobileStatItem.js +5 -0
  113. package/dist/objects/ads/AdsMusician.js +5 -0
  114. package/dist/objects/ads/AdsObjectType.js +5 -0
  115. package/dist/objects/ads/AdsOrdClientType.js +5 -0
  116. package/dist/objects/ads/AdsOrdData.js +5 -0
  117. package/dist/objects/ads/AdsOrdSubagent.js +5 -0
  118. package/dist/objects/ads/AdsPost.js +5 -0
  119. package/dist/objects/ads/AdsPostComments.js +5 -0
  120. package/dist/objects/ads/AdsPostDonut.js +5 -0
  121. package/dist/objects/ads/AdsPostEasyPromote.js +5 -0
  122. package/dist/objects/ads/AdsPostLikes.js +5 -0
  123. package/dist/objects/ads/AdsPostOwner.js +5 -0
  124. package/dist/objects/ads/AdsPostReposts.js +5 -0
  125. package/dist/objects/ads/AdsPostViews.js +5 -0
  126. package/dist/objects/ads/AdsPromotedPostReach.js +5 -0
  127. package/dist/objects/ads/AdsRejectReason.js +5 -0
  128. package/dist/objects/ads/AdsRules.js +5 -0
  129. package/dist/objects/ads/AdsStats.js +5 -0
  130. package/dist/objects/ads/AdsStatsAge.js +5 -0
  131. package/dist/objects/ads/AdsStatsCities.js +5 -0
  132. package/dist/objects/ads/AdsStatsFormat.js +5 -0
  133. package/dist/objects/ads/AdsStatsSex.js +5 -0
  134. package/dist/objects/ads/AdsStatsSexAge.js +5 -0
  135. package/dist/objects/ads/AdsStatsSexValue.js +5 -0
  136. package/dist/objects/ads/AdsStatsViewsTimes.js +5 -0
  137. package/dist/objects/ads/AdsStories.js +5 -0
  138. package/dist/objects/ads/AdsStoriesOwner.js +5 -0
  139. package/dist/objects/ads/AdsStoryItem.js +5 -0
  140. package/dist/objects/ads/AdsStoryItemLink.js +5 -0
  141. package/dist/objects/ads/AdsStoryItemStats.js +5 -0
  142. package/dist/objects/ads/AdsStoryItemStatsFollow.js +5 -0
  143. package/dist/objects/ads/AdsStoryItemStatsUrlView.js +5 -0
  144. package/dist/objects/ads/AdsTargSettings.js +5 -0
  145. package/dist/objects/ads/AdsTargStats.js +5 -0
  146. package/dist/objects/ads/AdsTargSuggestions.js +5 -0
  147. package/dist/objects/ads/AdsTargSuggestionsCities.js +5 -0
  148. package/dist/objects/ads/AdsTargSuggestionsRegions.js +5 -0
  149. package/dist/objects/ads/AdsTargSuggestionsSchools.js +5 -0
  150. package/dist/objects/ads/AdsTargSuggestionsSchoolsType.js +5 -0
  151. package/dist/objects/ads/AdsTargetGroup.js +5 -0
  152. package/dist/objects/ads/AdsTargetGroupTargetPixelRule.js +5 -0
  153. package/dist/objects/ads/AdsTargetPixelInfo.js +5 -0
  154. package/dist/objects/ads/AdsUpdateAdsStatus.js +5 -0
  155. package/dist/objects/ads/AdsUpdateClientsStatus.js +5 -0
  156. package/dist/objects/ads/AdsUpdateOfficeUsersResult.js +5 -0
  157. package/dist/objects/ads/AdsUserSpecification.js +5 -0
  158. package/dist/objects/ads/AdsUserSpecificationCutted.js +5 -0
  159. package/dist/objects/ads/AdsUsers.js +5 -0
  160. package/dist/objects/appWidgets/AppWidgetsPhoto.js +5 -0
  161. package/dist/objects/appWidgets/AppWidgetsPhotos.js +5 -0
  162. package/dist/objects/apps/AppsApp.js +5 -0
  163. package/dist/objects/apps/AppsAppFields.js +5 -0
  164. package/dist/objects/apps/AppsAppLeaderboardType.js +12 -0
  165. package/dist/objects/apps/AppsAppMin.js +5 -0
  166. package/dist/objects/apps/AppsAppType.js +5 -0
  167. package/dist/objects/apps/AppsCatalogList.js +5 -0
  168. package/dist/objects/apps/AppsCustomSnippet.js +5 -0
  169. package/dist/objects/apps/AppsLeaderboard.js +5 -0
  170. package/dist/objects/apps/AppsScope.js +5 -0
  171. package/dist/objects/apps/AppsTestingGroup.js +5 -0
  172. package/dist/objects/audio/AudioAudio.js +5 -0
  173. package/dist/objects/base/BaseCity.js +5 -0
  174. package/dist/objects/base/BaseCommentsInfo.js +5 -0
  175. package/dist/objects/base/BaseCountry.js +5 -0
  176. package/dist/objects/base/BaseCropPhoto.js +5 -0
  177. package/dist/objects/base/BaseCropPhotoCrop.js +5 -0
  178. package/dist/objects/base/BaseCropPhotoRect.js +5 -0
  179. package/dist/objects/base/BaseError.js +5 -0
  180. package/dist/objects/base/BaseGeo.js +5 -0
  181. package/dist/objects/base/BaseGeoCoordinates.js +5 -0
  182. package/dist/objects/base/BaseGradientPoint.js +5 -0
  183. package/dist/objects/base/BaseImage.js +5 -0
  184. package/dist/objects/base/BaseLang.js +5 -0
  185. package/dist/objects/base/BaseLikes.js +5 -0
  186. package/dist/objects/base/BaseLikesInfo.js +5 -0
  187. package/dist/objects/base/BaseLink.js +5 -0
  188. package/dist/objects/base/BaseLinkApplication.js +5 -0
  189. package/dist/objects/base/BaseLinkApplicationStore.js +5 -0
  190. package/dist/objects/base/BaseLinkButton.js +5 -0
  191. package/dist/objects/base/BaseLinkButtonAction.js +5 -0
  192. package/dist/objects/base/BaseLinkButtonActionType.js +5 -0
  193. package/dist/objects/base/BaseLinkButtonStyle.js +5 -0
  194. package/dist/objects/base/BaseLinkProduct.js +5 -0
  195. package/dist/objects/base/BaseLinkProductStatus.js +5 -0
  196. package/dist/objects/base/BaseLinkRating.js +5 -0
  197. package/dist/objects/base/BaseMessageError.js +5 -0
  198. package/dist/objects/base/BaseNameCase.js +5 -0
  199. package/dist/objects/base/BaseObject.js +5 -0
  200. package/dist/objects/base/BaseObjectCount.js +5 -0
  201. package/dist/objects/base/BaseObjectWithName.js +5 -0
  202. package/dist/objects/base/BaseOwnerCover.js +5 -0
  203. package/dist/objects/base/BaseOwnerCoverCropParams.js +5 -0
  204. package/dist/objects/base/BasePlace.js +5 -0
  205. package/dist/objects/base/BaseRepostsInfo.js +5 -0
  206. package/dist/objects/base/BaseRequestParam.js +5 -0
  207. package/dist/objects/base/BaseSex.js +12 -0
  208. package/dist/objects/base/BaseSticker.js +5 -0
  209. package/dist/objects/base/BaseStickerAnimation.js +5 -0
  210. package/dist/objects/base/BaseStickerNew.js +5 -0
  211. package/dist/objects/base/BaseUploadServer.js +5 -0
  212. package/dist/objects/base/BaseUserGroupFields.js +5 -0
  213. package/dist/objects/base/BaseUserId.js +5 -0
  214. package/dist/objects/board/BoardDefaultOrder.js +13 -0
  215. package/dist/objects/board/BoardTopic.js +5 -0
  216. package/dist/objects/board/BoardTopicComment.js +5 -0
  217. package/dist/objects/bugtracker/BugtrackerAddCompanyGroupsMembersError.js +5 -0
  218. package/dist/objects/bugtracker/BugtrackerAttachment.js +5 -0
  219. package/dist/objects/bugtracker/BugtrackerBugreport.js +11 -0
  220. package/dist/objects/bugtracker/BugtrackerBugreportSubscribeState.js +5 -0
  221. package/dist/objects/bugtracker/BugtrackerComment.js +5 -0
  222. package/dist/objects/bugtracker/BugtrackerCommentAuthor.js +5 -0
  223. package/dist/objects/bugtracker/BugtrackerCompanyMember.js +5 -0
  224. package/dist/objects/bugtracker/BugtrackerCompanyMemberProduct.js +5 -0
  225. package/dist/objects/calls/CallsCall.js +5 -0
  226. package/dist/objects/calls/CallsEndState.js +5 -0
  227. package/dist/objects/calls/CallsParticipants.js +5 -0
  228. package/dist/objects/calls/CallsShortCredentials.js +5 -0
  229. package/dist/objects/comment/CommentThread.js +5 -0
  230. package/dist/objects/database/DatabaseCitiesFields.js +5 -0
  231. package/dist/objects/database/DatabaseCity.js +5 -0
  232. package/dist/objects/database/DatabaseCityById.js +5 -0
  233. package/dist/objects/database/DatabaseFaculty.js +5 -0
  234. package/dist/objects/database/DatabaseLanguageFull.js +5 -0
  235. package/dist/objects/database/DatabaseRegion.js +5 -0
  236. package/dist/objects/database/DatabaseSchool.js +5 -0
  237. package/dist/objects/database/DatabaseSchoolClass.js +5 -0
  238. package/dist/objects/database/DatabaseStation.js +5 -0
  239. package/dist/objects/database/DatabaseUniversity.js +5 -0
  240. package/dist/objects/docs/DocsDoc.js +5 -0
  241. package/dist/objects/docs/DocsDocAttachmentType.js +5 -0
  242. package/dist/objects/docs/DocsDocPreview.js +5 -0
  243. package/dist/objects/docs/DocsDocPreviewAudioMsg.js +5 -0
  244. package/dist/objects/docs/DocsDocPreviewGraffiti.js +5 -0
  245. package/dist/objects/docs/DocsDocPreviewPhoto.js +5 -0
  246. package/dist/objects/docs/DocsDocPreviewPhotoSizes.js +5 -0
  247. package/dist/objects/docs/DocsDocPreviewVideo.js +5 -0
  248. package/dist/objects/docs/DocsDocTypes.js +5 -0
  249. package/dist/objects/donut/DonutDonatorSubscriptionInfo.js +5 -0
  250. package/dist/objects/events/EventsEventAttach.js +5 -0
  251. package/dist/objects/fave/FaveBookmark.js +5 -0
  252. package/dist/objects/fave/FaveBookmarkType.js +5 -0
  253. package/dist/objects/fave/FavePage.js +5 -0
  254. package/dist/objects/fave/FavePageType.js +5 -0
  255. package/dist/objects/fave/FaveTag.js +5 -0
  256. package/dist/objects/friends/FriendsFriendExtendedStatus.js +5 -0
  257. package/dist/objects/friends/FriendsFriendStatus.js +5 -0
  258. package/dist/objects/friends/FriendsFriendStatusStatus.js +13 -0
  259. package/dist/objects/friends/FriendsFriendsList.js +5 -0
  260. package/dist/objects/friends/FriendsMutualFriend.js +5 -0
  261. package/dist/objects/friends/FriendsOnlineUsers.js +5 -0
  262. package/dist/objects/friends/FriendsOnlineUsersWithMobile.js +5 -0
  263. package/dist/objects/friends/FriendsRequestsMutual.js +5 -0
  264. package/dist/objects/friends/FriendsRequestsXtrMessage.js +5 -0
  265. package/dist/objects/friends/FriendsRequestsXtrMutual.js +5 -0
  266. package/dist/objects/gifts/GiftsGift.js +5 -0
  267. package/dist/objects/gifts/GiftsGiftPrivacy.js +12 -0
  268. package/dist/objects/gifts/GiftsLayout.js +5 -0
  269. package/dist/objects/groups/GroupsAddress.js +5 -0
  270. package/dist/objects/groups/GroupsAddressTimetable.js +5 -0
  271. package/dist/objects/groups/GroupsAddressTimetableDay.js +5 -0
  272. package/dist/objects/groups/GroupsAddressWorkInfoStatus.js +5 -0
  273. package/dist/objects/groups/GroupsAddressesInfo.js +5 -0
  274. package/dist/objects/groups/GroupsBanInfo.js +5 -0
  275. package/dist/objects/groups/GroupsBanInfoReason.js +14 -0
  276. package/dist/objects/groups/GroupsCallbackServer.js +5 -0
  277. package/dist/objects/groups/GroupsCallbackSettings.js +5 -0
  278. package/dist/objects/groups/GroupsContactsItem.js +5 -0
  279. package/dist/objects/groups/GroupsCountersGroup.js +5 -0
  280. package/dist/objects/groups/GroupsFields.js +5 -0
  281. package/dist/objects/groups/GroupsFilter.js +5 -0
  282. package/dist/objects/groups/GroupsGroup.js +5 -0
  283. package/dist/objects/groups/GroupsGroupAccess.js +12 -0
  284. package/dist/objects/groups/GroupsGroupAdminLevel.js +12 -0
  285. package/dist/objects/groups/GroupsGroupAgeLimits.js +12 -0
  286. package/dist/objects/groups/GroupsGroupAttach.js +5 -0
  287. package/dist/objects/groups/GroupsGroupAudio.js +12 -0
  288. package/dist/objects/groups/GroupsGroupBanInfo.js +5 -0
  289. package/dist/objects/groups/GroupsGroupCategory.js +5 -0
  290. package/dist/objects/groups/GroupsGroupCategoryFull.js +5 -0
  291. package/dist/objects/groups/GroupsGroupCategoryType.js +5 -0
  292. package/dist/objects/groups/GroupsGroupDocs.js +12 -0
  293. package/dist/objects/groups/GroupsGroupFull.js +13 -0
  294. package/dist/objects/groups/GroupsGroupFullAgeLimits.js +12 -0
  295. package/dist/objects/groups/GroupsGroupFullMemberStatus.js +15 -0
  296. package/dist/objects/groups/GroupsGroupFullSection.js +58 -0
  297. package/dist/objects/groups/GroupsGroupIsClosed.js +12 -0
  298. package/dist/objects/groups/GroupsGroupMarketCurrency.js +14 -0
  299. package/dist/objects/groups/GroupsGroupPhotos.js +12 -0
  300. package/dist/objects/groups/GroupsGroupPublicCategoryList.js +5 -0
  301. package/dist/objects/groups/GroupsGroupRole.js +5 -0
  302. package/dist/objects/groups/GroupsGroupSubcategory.js +5 -0
  303. package/dist/objects/groups/GroupsGroupSubject.js +51 -0
  304. package/dist/objects/groups/GroupsGroupSuggestedPrivacy.js +12 -0
  305. package/dist/objects/groups/GroupsGroupTag.js +5 -0
  306. package/dist/objects/groups/GroupsGroupTopics.js +12 -0
  307. package/dist/objects/groups/GroupsGroupType.js +5 -0
  308. package/dist/objects/groups/GroupsGroupVideo.js +12 -0
  309. package/dist/objects/groups/GroupsGroupWall.js +13 -0
  310. package/dist/objects/groups/GroupsGroupWiki.js +12 -0
  311. package/dist/objects/groups/GroupsGroupsArray.js +5 -0
  312. package/dist/objects/groups/GroupsLinksItem.js +5 -0
  313. package/dist/objects/groups/GroupsLiveCovers.js +5 -0
  314. package/dist/objects/groups/GroupsLongPollEvents.js +5 -0
  315. package/dist/objects/groups/GroupsLongPollServer.js +5 -0
  316. package/dist/objects/groups/GroupsLongPollSettings.js +5 -0
  317. package/dist/objects/groups/GroupsMarketInfo.js +5 -0
  318. package/dist/objects/groups/GroupsMarketState.js +5 -0
  319. package/dist/objects/groups/GroupsMemberRole.js +5 -0
  320. package/dist/objects/groups/GroupsMemberRolePermission.js +5 -0
  321. package/dist/objects/groups/GroupsMemberRoleStatus.js +5 -0
  322. package/dist/objects/groups/GroupsMemberStatus.js +5 -0
  323. package/dist/objects/groups/GroupsMemberStatusFull.js +5 -0
  324. package/dist/objects/groups/GroupsOnlineStatus.js +5 -0
  325. package/dist/objects/groups/GroupsOnlineStatusType.js +5 -0
  326. package/dist/objects/groups/GroupsOwnerXtrBanInfo.js +5 -0
  327. package/dist/objects/groups/GroupsPhotoSize.js +5 -0
  328. package/dist/objects/groups/GroupsProfileItem.js +5 -0
  329. package/dist/objects/groups/GroupsRoleOptions.js +5 -0
  330. package/dist/objects/groups/GroupsSectionsListItem.js +5 -0
  331. package/dist/objects/groups/GroupsSettingsTwitter.js +5 -0
  332. package/dist/objects/groups/GroupsSubjectItem.js +5 -0
  333. package/dist/objects/groups/GroupsTokenPermissionSetting.js +5 -0
  334. package/dist/objects/groups/GroupsUserXtrRole.js +5 -0
  335. package/dist/objects/leadForms/LeadFormsAnswer.js +5 -0
  336. package/dist/objects/leadForms/LeadFormsAnswerItem.js +5 -0
  337. package/dist/objects/leadForms/LeadFormsForm.js +5 -0
  338. package/dist/objects/leadForms/LeadFormsLead.js +5 -0
  339. package/dist/objects/leadForms/LeadFormsQuestionItem.js +5 -0
  340. package/dist/objects/leadForms/LeadFormsQuestionItemOption.js +5 -0
  341. package/dist/objects/likes/LikesType.js +5 -0
  342. package/dist/objects/link/LinkTargetObject.js +5 -0
  343. package/dist/objects/market/MarketCurrency.js +5 -0
  344. package/dist/objects/market/MarketGlobalSearchFilters.js +5 -0
  345. package/dist/objects/market/MarketItemOwnerInfo.js +5 -0
  346. package/dist/objects/market/MarketItemPromotionInfo.js +5 -0
  347. package/dist/objects/market/MarketMarketAlbum.js +11 -0
  348. package/dist/objects/market/MarketMarketCategory.js +5 -0
  349. package/dist/objects/market/MarketMarketCategoryNested.js +5 -0
  350. package/dist/objects/market/MarketMarketCategoryTree.js +5 -0
  351. package/dist/objects/market/MarketMarketCategoryTreeView.js +5 -0
  352. package/dist/objects/market/MarketMarketItem.js +5 -0
  353. package/dist/objects/market/MarketMarketItemAvailability.js +12 -0
  354. package/dist/objects/market/MarketMarketItemBasicWithGroup.js +5 -0
  355. package/dist/objects/market/MarketMarketItemFull.js +5 -0
  356. package/dist/objects/market/MarketOrder.js +5 -0
  357. package/dist/objects/market/MarketOrderItem.js +5 -0
  358. package/dist/objects/market/MarketOwnerType.js +5 -0
  359. package/dist/objects/market/MarketPrice.js +19 -0
  360. package/dist/objects/market/MarketProperty.js +5 -0
  361. package/dist/objects/market/MarketPropertyVariant.js +5 -0
  362. package/dist/objects/market/MarketServicesViewType.js +11 -0
  363. package/dist/objects/market/MarketUploadPhotoData.js +5 -0
  364. package/dist/objects/messages/MessagesActionOneOf.js +5 -0
  365. package/dist/objects/messages/MessagesAudioMessage.js +5 -0
  366. package/dist/objects/messages/MessagesChat.js +5 -0
  367. package/dist/objects/messages/MessagesChatFull.js +5 -0
  368. package/dist/objects/messages/MessagesChatPreview.js +5 -0
  369. package/dist/objects/messages/MessagesChatPushSettings.js +5 -0
  370. package/dist/objects/messages/MessagesChatRestrictions.js +5 -0
  371. package/dist/objects/messages/MessagesChatSettings.js +5 -0
  372. package/dist/objects/messages/MessagesChatSettingsAcl.js +5 -0
  373. package/dist/objects/messages/MessagesChatSettingsPermissions.js +5 -0
  374. package/dist/objects/messages/MessagesChatSettingsPhoto.js +5 -0
  375. package/dist/objects/messages/MessagesChatSettingsState.js +5 -0
  376. package/dist/objects/messages/MessagesConversation.js +5 -0
  377. package/dist/objects/messages/MessagesConversationCanWrite.js +5 -0
  378. package/dist/objects/messages/MessagesConversationMember.js +5 -0
  379. package/dist/objects/messages/MessagesConversationPeer.js +5 -0
  380. package/dist/objects/messages/MessagesConversationPeerType.js +5 -0
  381. package/dist/objects/messages/MessagesConversationSortId.js +5 -0
  382. package/dist/objects/messages/MessagesConversationWithMessage.js +5 -0
  383. package/dist/objects/messages/MessagesDeleteFullResponseItem.js +5 -0
  384. package/dist/objects/messages/MessagesForeignMessage.js +5 -0
  385. package/dist/objects/messages/MessagesForward.js +5 -0
  386. package/dist/objects/messages/MessagesFwdMessages.js +5 -0
  387. package/dist/objects/messages/MessagesGetConversationById.js +5 -0
  388. package/dist/objects/messages/MessagesGetConversationByIdExtended.js +5 -0
  389. package/dist/objects/messages/MessagesGetConversationMembers.js +5 -0
  390. package/dist/objects/messages/MessagesGetInviteLinkByOwnerResponseItem.js +5 -0
  391. package/dist/objects/messages/MessagesGraffiti.js +5 -0
  392. package/dist/objects/messages/MessagesHistoryAttachment.js +5 -0
  393. package/dist/objects/messages/MessagesHistoryMessageAttachment.js +5 -0
  394. package/dist/objects/messages/MessagesHistoryMessageAttachmentType.js +5 -0
  395. package/dist/objects/messages/MessagesKeyboard.js +5 -0
  396. package/dist/objects/messages/MessagesKeyboardButton.js +5 -0
  397. package/dist/objects/messages/MessagesKeyboardButtonActionCallback.js +5 -0
  398. package/dist/objects/messages/MessagesKeyboardButtonActionLocation.js +5 -0
  399. package/dist/objects/messages/MessagesKeyboardButtonActionOpenApp.js +5 -0
  400. package/dist/objects/messages/MessagesKeyboardButtonActionOpenLink.js +5 -0
  401. package/dist/objects/messages/MessagesKeyboardButtonActionOpenPhoto.js +5 -0
  402. package/dist/objects/messages/MessagesKeyboardButtonActionText.js +5 -0
  403. package/dist/objects/messages/MessagesKeyboardButtonActionVkpay.js +5 -0
  404. package/dist/objects/messages/MessagesLastActivity.js +5 -0
  405. package/dist/objects/messages/MessagesLongpollMessages.js +5 -0
  406. package/dist/objects/messages/MessagesLongpollParams.js +5 -0
  407. package/dist/objects/messages/MessagesMessage.js +5 -0
  408. package/dist/objects/messages/MessagesMessageAction.js +5 -0
  409. package/dist/objects/messages/MessagesMessageActionPhoto.js +5 -0
  410. package/dist/objects/messages/MessagesMessageActionStatus.js +5 -0
  411. package/dist/objects/messages/MessagesMessageAttachment.js +5 -0
  412. package/dist/objects/messages/MessagesMessageAttachmentType.js +5 -0
  413. package/dist/objects/messages/MessagesMessageRequestData.js +5 -0
  414. package/dist/objects/messages/MessagesMessagesArray.js +5 -0
  415. package/dist/objects/messages/MessagesOutReadBy.js +5 -0
  416. package/dist/objects/messages/MessagesPinnedMessage.js +5 -0
  417. package/dist/objects/messages/MessagesPushSettings.js +5 -0
  418. package/dist/objects/messages/MessagesReactionAssetItem.js +5 -0
  419. package/dist/objects/messages/MessagesReactionAssetItemLinks.js +5 -0
  420. package/dist/objects/messages/MessagesReactionCounterResponseItem.js +5 -0
  421. package/dist/objects/messages/MessagesReactionCountersResponseItem.js +5 -0
  422. package/dist/objects/messages/MessagesReactionResponseItem.js +5 -0
  423. package/dist/objects/messages/MessagesSendUserIdsResponseItem.js +5 -0
  424. package/dist/objects/messages/MessagesUserXtrInvitedBy.js +5 -0
  425. package/dist/objects/newsfeed/NewsfeedCommentsBase.js +5 -0
  426. package/dist/objects/newsfeed/NewsfeedCommentsFilters.js +5 -0
  427. package/dist/objects/newsfeed/NewsfeedCommentsItem.js +5 -0
  428. package/dist/objects/newsfeed/NewsfeedCommentsItemTypeMarket.js +5 -0
  429. package/dist/objects/newsfeed/NewsfeedCommentsItemTypeNotes.js +5 -0
  430. package/dist/objects/newsfeed/NewsfeedCommentsItemTypePhoto.js +5 -0
  431. package/dist/objects/newsfeed/NewsfeedCommentsItemTypePost.js +21 -0
  432. package/dist/objects/newsfeed/NewsfeedCommentsItemTypeTopic.js +5 -0
  433. package/dist/objects/newsfeed/NewsfeedCommentsItemTypeVideo.js +5 -0
  434. package/dist/objects/newsfeed/NewsfeedIgnoreItemType.js +5 -0
  435. package/dist/objects/newsfeed/NewsfeedItemAudio.js +5 -0
  436. package/dist/objects/newsfeed/NewsfeedItemAudioAudio.js +5 -0
  437. package/dist/objects/newsfeed/NewsfeedItemDigest.js +5 -0
  438. package/dist/objects/newsfeed/NewsfeedItemDigestButton.js +5 -0
  439. package/dist/objects/newsfeed/NewsfeedItemDigestFooter.js +5 -0
  440. package/dist/objects/newsfeed/NewsfeedItemDigestFullItem.js +5 -0
  441. package/dist/objects/newsfeed/NewsfeedItemDigestHeader.js +5 -0
  442. package/dist/objects/newsfeed/NewsfeedItemDigestItem.js +5 -0
  443. package/dist/objects/newsfeed/NewsfeedItemFriend.js +5 -0
  444. package/dist/objects/newsfeed/NewsfeedItemFriendFriends.js +5 -0
  445. package/dist/objects/newsfeed/NewsfeedItemPhoto.js +5 -0
  446. package/dist/objects/newsfeed/NewsfeedItemPhotoPhotos.js +5 -0
  447. package/dist/objects/newsfeed/NewsfeedItemPhotoTag.js +5 -0
  448. package/dist/objects/newsfeed/NewsfeedItemPhotoTagPhotoTags.js +5 -0
  449. package/dist/objects/newsfeed/NewsfeedItemPromoButton.js +5 -0
  450. package/dist/objects/newsfeed/NewsfeedItemPromoButtonAction.js +5 -0
  451. package/dist/objects/newsfeed/NewsfeedItemPromoButtonImage.js +5 -0
  452. package/dist/objects/newsfeed/NewsfeedItemTopic.js +5 -0
  453. package/dist/objects/newsfeed/NewsfeedItemVideo.js +5 -0
  454. package/dist/objects/newsfeed/NewsfeedItemVideoVideo.js +5 -0
  455. package/dist/objects/newsfeed/NewsfeedItemWallpost.js +21 -0
  456. package/dist/objects/newsfeed/NewsfeedItemWallpostFeedback.js +5 -0
  457. package/dist/objects/newsfeed/NewsfeedItemWallpostFeedbackAnswer.js +5 -0
  458. package/dist/objects/newsfeed/NewsfeedItemWallpostFeedbackType.js +5 -0
  459. package/dist/objects/newsfeed/NewsfeedList.js +5 -0
  460. package/dist/objects/newsfeed/NewsfeedListFull.js +5 -0
  461. package/dist/objects/newsfeed/NewsfeedNewsfeedItem.js +5 -0
  462. package/dist/objects/newsfeed/NewsfeedNewsfeedItemType.js +5 -0
  463. package/dist/objects/notes/NotesNote.js +5 -0
  464. package/dist/objects/notes/NotesNoteComment.js +5 -0
  465. package/dist/objects/notifications/NotificationsFeedback.js +5 -0
  466. package/dist/objects/notifications/NotificationsNotification.js +5 -0
  467. package/dist/objects/notifications/NotificationsNotificationItem.js +5 -0
  468. package/dist/objects/notifications/NotificationsReply.js +5 -0
  469. package/dist/objects/notifications/NotificationsSendMessageError.js +13 -0
  470. package/dist/objects/notifications/NotificationsSendMessageItem.js +5 -0
  471. package/dist/objects/orders/OrdersAmount.js +5 -0
  472. package/dist/objects/orders/OrdersAmountItem.js +5 -0
  473. package/dist/objects/orders/OrdersOrder.js +5 -0
  474. package/dist/objects/orders/OrdersSubscription.js +5 -0
  475. package/dist/objects/owner/OwnerState.js +14 -0
  476. package/dist/objects/pages/PagesPrivacySettings.js +12 -0
  477. package/dist/objects/pages/PagesWikipage.js +5 -0
  478. package/dist/objects/pages/PagesWikipageFull.js +5 -0
  479. package/dist/objects/pages/PagesWikipageHistory.js +5 -0
  480. package/dist/objects/photos/PhotosImage.js +5 -0
  481. package/dist/objects/photos/PhotosImageType.js +5 -0
  482. package/dist/objects/photos/PhotosPhoto.js +5 -0
  483. package/dist/objects/photos/PhotosPhotoAlbum.js +5 -0
  484. package/dist/objects/photos/PhotosPhotoAlbumFull.js +5 -0
  485. package/dist/objects/photos/PhotosPhotoSizes.js +5 -0
  486. package/dist/objects/photos/PhotosPhotoSizesType.js +5 -0
  487. package/dist/objects/photos/PhotosPhotoTag.js +5 -0
  488. package/dist/objects/photos/PhotosPhotoUpload.js +5 -0
  489. package/dist/objects/photos/PhotosPhotoXtrTagInfo.js +5 -0
  490. package/dist/objects/podcast/PodcastCover.js +5 -0
  491. package/dist/objects/podcast/PodcastExternalData.js +5 -0
  492. package/dist/objects/polls/PollsAnswer.js +5 -0
  493. package/dist/objects/polls/PollsBackground.js +5 -0
  494. package/dist/objects/polls/PollsFieldsVoters.js +5 -0
  495. package/dist/objects/polls/PollsFriend.js +5 -0
  496. package/dist/objects/polls/PollsPoll.js +5 -0
  497. package/dist/objects/polls/PollsPollExtended.js +5 -0
  498. package/dist/objects/polls/PollsVoters.js +5 -0
  499. package/dist/objects/polls/PollsVotersFieldsUsers.js +5 -0
  500. package/dist/objects/polls/PollsVotersUsers.js +5 -0
  501. package/dist/objects/prettyCards/PrettyCardsPrettyCard.js +5 -0
  502. package/dist/objects/prettyCards/PrettyCardsPrettyCardOrError.js +5 -0
  503. package/dist/objects/search/SearchHint.js +5 -0
  504. package/dist/objects/search/SearchHintSection.js +5 -0
  505. package/dist/objects/search/SearchHintType.js +5 -0
  506. package/dist/objects/secure/SecureGiveEventStickerItem.js +5 -0
  507. package/dist/objects/secure/SecureLevel.js +5 -0
  508. package/dist/objects/secure/SecureSetCounterItem.js +5 -0
  509. package/dist/objects/secure/SecureSmsNotification.js +5 -0
  510. package/dist/objects/secure/SecureTokenChecked.js +5 -0
  511. package/dist/objects/secure/SecureTransaction.js +5 -0
  512. package/dist/objects/stats/StatsActivity.js +5 -0
  513. package/dist/objects/stats/StatsCity.js +5 -0
  514. package/dist/objects/stats/StatsCountry.js +5 -0
  515. package/dist/objects/stats/StatsPeriod.js +5 -0
  516. package/dist/objects/stats/StatsReach.js +5 -0
  517. package/dist/objects/stats/StatsSexAge.js +5 -0
  518. package/dist/objects/stats/StatsViews.js +5 -0
  519. package/dist/objects/stats/StatsWallpostStat.js +5 -0
  520. package/dist/objects/status/StatusStatus.js +5 -0
  521. package/dist/objects/stickers/StickersImageSet.js +5 -0
  522. package/dist/objects/storage/StorageValue.js +5 -0
  523. package/dist/objects/store/StoreProduct.js +5 -0
  524. package/dist/objects/store/StoreProductIcon.js +5 -0
  525. package/dist/objects/store/StoreStickersKeyword.js +5 -0
  526. package/dist/objects/store/StoreStickersKeywordSticker.js +5 -0
  527. package/dist/objects/stories/StoriesClickableArea.js +5 -0
  528. package/dist/objects/stories/StoriesClickableSticker.js +5 -0
  529. package/dist/objects/stories/StoriesClickableStickers.js +5 -0
  530. package/dist/objects/stories/StoriesFeedItem.js +5 -0
  531. package/dist/objects/stories/StoriesPromoBlock.js +5 -0
  532. package/dist/objects/stories/StoriesReplies.js +5 -0
  533. package/dist/objects/stories/StoriesStory.js +5 -0
  534. package/dist/objects/stories/StoriesStoryLink.js +5 -0
  535. package/dist/objects/stories/StoriesStoryStats.js +5 -0
  536. package/dist/objects/stories/StoriesStoryStatsStat.js +5 -0
  537. package/dist/objects/stories/StoriesStoryStatsState.js +5 -0
  538. package/dist/objects/stories/StoriesStoryType.js +5 -0
  539. package/dist/objects/stories/StoriesUploadLinkText.js +5 -0
  540. package/dist/objects/stories/StoriesUploadResult.js +5 -0
  541. package/dist/objects/stories/StoriesViewersItem.js +5 -0
  542. package/dist/objects/streaming/StreamingStats.js +5 -0
  543. package/dist/objects/streaming/StreamingStatsPoint.js +5 -0
  544. package/dist/objects/users/UsersCareer.js +5 -0
  545. package/dist/objects/users/UsersExports.js +5 -0
  546. package/dist/objects/users/UsersFields.js +5 -0
  547. package/dist/objects/users/UsersLastSeen.js +5 -0
  548. package/dist/objects/users/UsersMilitary.js +5 -0
  549. package/dist/objects/users/UsersOccupation.js +5 -0
  550. package/dist/objects/users/UsersOnlineInfo.js +5 -0
  551. package/dist/objects/users/UsersPersonal.js +5 -0
  552. package/dist/objects/users/UsersRelative.js +5 -0
  553. package/dist/objects/users/UsersSchool.js +5 -0
  554. package/dist/objects/users/UsersSubscriptionsItem.js +5 -0
  555. package/dist/objects/users/UsersUniversity.js +5 -0
  556. package/dist/objects/users/UsersUser.js +5 -0
  557. package/dist/objects/users/UsersUserConnections.js +5 -0
  558. package/dist/objects/users/UsersUserCounters.js +5 -0
  559. package/dist/objects/users/UsersUserFull.js +5 -0
  560. package/dist/objects/users/UsersUserMin.js +5 -0
  561. package/dist/objects/users/UsersUserRelation.js +18 -0
  562. package/dist/objects/users/UsersUserType.js +5 -0
  563. package/dist/objects/users/UsersUsersArray.js +5 -0
  564. package/dist/objects/utils/UtilsDomainResolved.js +5 -0
  565. package/dist/objects/utils/UtilsDomainResolvedType.js +5 -0
  566. package/dist/objects/utils/UtilsLastShortenedLink.js +5 -0
  567. package/dist/objects/utils/UtilsLinkChecked.js +5 -0
  568. package/dist/objects/utils/UtilsLinkCheckedStatus.js +5 -0
  569. package/dist/objects/utils/UtilsLinkStats.js +5 -0
  570. package/dist/objects/utils/UtilsLinkStatsExtended.js +5 -0
  571. package/dist/objects/utils/UtilsShortLink.js +5 -0
  572. package/dist/objects/utils/UtilsStats.js +5 -0
  573. package/dist/objects/utils/UtilsStatsCity.js +5 -0
  574. package/dist/objects/utils/UtilsStatsCountry.js +5 -0
  575. package/dist/objects/utils/UtilsStatsExtended.js +5 -0
  576. package/dist/objects/utils/UtilsStatsSexAge.js +5 -0
  577. package/dist/objects/video/VideoEpisode.js +5 -0
  578. package/dist/objects/video/VideoLiveCategory.js +5 -0
  579. package/dist/objects/video/VideoLiveInfo.js +5 -0
  580. package/dist/objects/video/VideoLiveSettings.js +5 -0
  581. package/dist/objects/video/VideoPlaylistPrivacyCategory.js +5 -0
  582. package/dist/objects/video/VideoSaveResult.js +5 -0
  583. package/dist/objects/video/VideoStreamInputParams.js +5 -0
  584. package/dist/objects/video/VideoVideo.js +5 -0
  585. package/dist/objects/video/VideoVideoAlbum.js +5 -0
  586. package/dist/objects/video/VideoVideoAlbumFull.js +5 -0
  587. package/dist/objects/video/VideoVideoFiles.js +5 -0
  588. package/dist/objects/video/VideoVideoFull.js +5 -0
  589. package/dist/objects/video/VideoVideoImage.js +5 -0
  590. package/dist/objects/wall/WallAppPost.js +5 -0
  591. package/dist/objects/wall/WallAttachedNote.js +5 -0
  592. package/dist/objects/wall/WallCommentAttachment.js +5 -0
  593. package/dist/objects/wall/WallCommentAttachmentType.js +5 -0
  594. package/dist/objects/wall/WallGeo.js +5 -0
  595. package/dist/objects/wall/WallGetFilter.js +5 -0
  596. package/dist/objects/wall/WallGraffiti.js +5 -0
  597. package/dist/objects/wall/WallPostCopyright.js +5 -0
  598. package/dist/objects/wall/WallPostSource.js +5 -0
  599. package/dist/objects/wall/WallPostSourceType.js +5 -0
  600. package/dist/objects/wall/WallPostType.js +5 -0
  601. package/dist/objects/wall/WallPostedPhoto.js +5 -0
  602. package/dist/objects/wall/WallViews.js +5 -0
  603. package/dist/objects/wall/WallWallComment.js +5 -0
  604. package/dist/objects/wall/WallWallCommentDonut.js +5 -0
  605. package/dist/objects/wall/WallWallCommentDonutPlaceholder.js +5 -0
  606. package/dist/objects/wall/WallWallItem.js +5 -0
  607. package/dist/objects/wall/WallWallpostAttachment.js +5 -0
  608. package/dist/objects/wall/WallWallpostAttachmentType.js +5 -0
  609. package/dist/objects/wall/WallWallpostCommentsDonut.js +5 -0
  610. package/dist/objects/wall/WallWallpostCommentsDonutPlaceholder.js +5 -0
  611. package/dist/objects/wall/WallWallpostDonut.js +5 -0
  612. package/dist/objects/wall/WallWallpostDonutPlaceholder.js +5 -0
  613. package/dist/objects/wall/WallWallpostFull.js +21 -0
  614. package/dist/objects/widgets/WidgetsCommentMedia.js +5 -0
  615. package/dist/objects/widgets/WidgetsCommentMediaType.js +5 -0
  616. package/dist/objects/widgets/WidgetsCommentReplies.js +5 -0
  617. package/dist/objects/widgets/WidgetsCommentRepliesItem.js +5 -0
  618. package/dist/objects/widgets/WidgetsWidgetComment.js +5 -0
  619. package/dist/objects/widgets/WidgetsWidgetLikes.js +5 -0
  620. package/dist/objects/widgets/WidgetsWidgetPage.js +5 -0
  621. package/dist/types.js +2 -2
  622. package/dist/utils.js +10 -11
  623. package/package.json +10 -7
  624. package/src/constants.ts +1 -1
  625. package/src/generators/APITypingsGenerator.ts +164 -17
  626. package/src/generators/typeString.ts +7 -3
  627. package/src/generators/utils/mergeImports.ts +17 -0
package/dist/index.js CHANGED
@@ -1,87 +1,361 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
2
+ /**
3
+ * This is auto-generated file, don't modify this file manually
4
+ */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.main = void 0;
7
- const path_1 = __importDefault(require("path"));
8
- const chalk_1 = __importDefault(require("chalk"));
9
- const perf_hooks_1 = require("perf_hooks");
10
- const cli_1 = require("./cli");
11
- const log_1 = require("./log");
12
- const APITypingsGenerator_1 = require("./generators/APITypingsGenerator");
13
- const helpers_1 = require("./helpers");
14
- const helpMessage = `
15
- Options:
16
-
17
- ${chalk_1.default.greenBright('--help')} Shows this help.
18
-
19
- ${chalk_1.default.greenBright('--schemaDir')} The relative path to directory with ${chalk_1.default.bold('methods.json')}, ${chalk_1.default.bold('objects.json')} and ${chalk_1.default.bold('responses.json')} files.
20
-
21
- ${chalk_1.default.greenBright('--outDir')} The directory where the files will be generated.
22
- If you skip this param, script will work in linter mode without emitting files to file system.
23
- ${chalk_1.default.bold('Please note')} that this folder will be cleared after starting the generation.
24
-
25
- ${chalk_1.default.greenBright('--methods')} List of methods to generate responses and all needed objects.
26
- Example:
27
- - ${chalk_1.default.bold("'*'")} - to generate all responses and objects.
28
- - ${chalk_1.default.bold("'messages.*, users.get, groups.isMember'")} - to generate all methods from messages section, users.get and groups.isMember.
29
- `;
30
- async function main() {
31
- console.log(chalk_1.default.bold('VK API Schema TypeScript generator'));
32
- const startTime = perf_hooks_1.performance.now();
33
- const args = cli_1.parseArguments();
34
- let { help, schemaDir, outDir, methods } = args;
35
- if (help) {
36
- console.log(helpMessage);
37
- return;
38
- }
39
- const helpHint = `Use ${chalk_1.default.greenBright('--help')} to see all options.`;
40
- if (!schemaDir) {
41
- log_1.consoleLogErrorAndExit(`You should specify ${chalk_1.default.greenBright('schemaDir')}. ${helpHint}`);
42
- return;
43
- }
44
- if (!outDir) {
45
- log_1.consoleLogInfo(`${chalk_1.default.greenBright('outDir')} option is empty. ${helpHint}`);
46
- log_1.consoleLogInfo('Script will work in linter mode without emitting files to file system.');
47
- }
48
- if (!Array.isArray(methods) || !methods.length) {
49
- log_1.consoleLogErrorAndExit(`You should specify ${chalk_1.default.greenBright('methods')}. ${helpHint}`);
50
- return;
51
- }
52
- schemaDir = path_1.default.resolve(schemaDir);
53
- outDir = outDir ? path_1.default.resolve(outDir) : '';
54
- // Read and check required schema files
55
- const [methodsDefinitions, { definitions: responsesDefinitions }, { definitions: objectsDefinitions }, { errors: errorsDefinitions },] = await Promise.all([
56
- helpers_1.readJSONFile(path_1.default.resolve(schemaDir, 'methods.json')),
57
- helpers_1.readJSONFile(path_1.default.resolve(schemaDir, 'responses.json')),
58
- helpers_1.readJSONFile(path_1.default.resolve(schemaDir, 'objects.json')),
59
- helpers_1.readJSONFile(path_1.default.resolve(schemaDir, 'errors.json')),
60
- ]);
61
- if (!Object.keys(methodsDefinitions).length) {
62
- log_1.consoleLogErrorAndExit(`${chalk_1.default.greenBright('responses.json')} file is invalid.`);
63
- return;
64
- }
65
- if (!Object.keys(responsesDefinitions).length) {
66
- log_1.consoleLogErrorAndExit(`${chalk_1.default.greenBright('responses.json')} file is invalid.`);
67
- return;
68
- }
69
- if (!Object.keys(objectsDefinitions).length) {
70
- log_1.consoleLogErrorAndExit(`${chalk_1.default.greenBright('objects.json')} file is invalid.`);
71
- return;
72
- }
73
- const needEmit = !!outDir;
74
- const generator = new APITypingsGenerator_1.APITypingsGenerator({
75
- needEmit,
76
- outDirPath: outDir,
77
- methodsDefinitions,
78
- objects: objectsDefinitions,
79
- responses: responsesDefinitions,
80
- errors: errorsDefinitions,
81
- methodsPattern: methods.join(','),
82
- });
83
- generator.generate();
84
- const endTime = perf_hooks_1.performance.now();
85
- log_1.consoleLog(`✨ Done in ${((endTime - startTime) / 1000).toFixed(2)}s.`);
86
- }
87
- exports.main = main;
6
+ exports.API_ERROR_COMPILE = exports.API_ERROR_CLIENT_VERSION_DEPRECATED = exports.API_ERROR_CLIENT_UPDATE_NEEDED = exports.API_ERROR_CAPTCHA = exports.API_ERROR_CALLBACK_API_SERVERS_LIMIT = exports.API_ERROR_BLOCKED = exports.API_ERROR_AUTH_VALIDATION = exports.API_ERROR_AUTH_HTTPS = exports.API_ERROR_AUTH_FLOOD_ERROR = exports.API_ERROR_AUTH_ANONYMOUS_TOKEN_IS_INVALID = exports.API_ERROR_AUTH_ANONYMOUS_TOKEN_IP_MISMATCH = exports.API_ERROR_AUTH_ANONYMOUS_TOKEN_HAS_EXPIRED = exports.API_ERROR_AUTH_ACCESS_TOKEN_HAS_EXPIRED = exports.API_ERROR_AUTH = exports.API_ERROR_ASSERT_VOTES = exports.API_ERROR_APPS_TOO_MANY_SNIPPETS = exports.API_ERROR_APPS_SUBSCRIPTION_NOT_FOUND = exports.API_ERROR_APPS_SUBSCRIPTION_INVALID_STATUS = exports.API_ERROR_APPS_NOT_FOUND_SNIPPET = exports.API_ERROR_APPS_EMPTY_SNIPPET_DATA = exports.API_ERROR_APPS_EMPTY_FILTER_PARAMS = exports.API_ERROR_APPS_ALREADY_UNLOCKED = exports.API_ERROR_APP_AUTH = exports.API_ERROR_ALBUMS_LIMIT = exports.API_ERROR_ALBUM_FULL = exports.API_ERROR_ADS_SPECIFIC = exports.API_ERROR_ADS_PERMISSION = exports.API_ERROR_ADS_PARTIAL_SUCCESS = exports.API_ERROR_ADS_OBJECT_DELETED = exports.API_ERROR_ADS_LOOKALIKE_REQUEST_MAX_COUNT_PER_DAY_REACHED = exports.API_ERROR_ADS_LOOKALIKE_REQUEST_EXPORT_RETARGETING_GROUP_LIMIT = exports.API_ERROR_ADS_LOOKALIKE_REQUEST_EXPORT_MAX_COUNT_PER_DAY_REACHED = exports.API_ERROR_ADS_LOOKALIKE_REQUEST_EXPORT_ALREADY_IN_PROGRESS = exports.API_ERROR_ADS_LOOKALIKE_REQUEST_AUDIENCE_TOO_SMALL = exports.API_ERROR_ADS_LOOKALIKE_REQUEST_AUDIENCE_TOO_LARGE = exports.API_ERROR_ADS_LOOKALIKE_REQUEST_ALREADY_IN_PROGRESS = exports.API_ERROR_ADDITIONAL_SIGNUP_REQUIRED = exports.API_ERROR_ACTION_FAILED = exports.API_ERROR_ACCESS_VIDEO = exports.API_ERROR_ACCESS_PAGE = exports.API_ERROR_ACCESS_NOTE_COMMENT = exports.API_ERROR_ACCESS_NOTE = exports.API_ERROR_ACCESS_MARKET = exports.API_ERROR_ACCESS_GROUPS = exports.API_ERROR_ACCESS_GROUP = exports.API_ERROR_ACCESS_COMMENT = exports.API_ERROR_ACCESS_AUDIO = exports.API_ERROR_ACCESS_ALBUM = exports.API_ERROR_ACCESS = exports.API_VERSION = void 0;
7
+ exports.API_ERROR_MARKET_MAX_VARIANTS_LIMIT_EXCEED = exports.API_ERROR_MARKET_MAX_PROPERTIES_LIMIT_EXCEED = exports.API_ERROR_MARKET_ITEM_NOT_FOUND = exports.API_ERROR_MARKET_ITEM_IS_NOT_DELETED = exports.API_ERROR_MARKET_ITEM_HAS_BAD_LINKS = exports.API_ERROR_MARKET_ITEM_ALREADY_ADDED = exports.API_ERROR_MARKET_INVALID_DIMENSIONS = exports.API_ERROR_MARKET_GROUPING_MUST_HAVE_VARIANTS = exports.API_ERROR_MARKET_GROUPING_MUST_CONTAIN_MORE_THAN_ONE_ITEM = exports.API_ERROR_MARKET_GROUPING_ITEMS_WITH_DIFFERENT_PROPERTIES = exports.API_ERROR_MARKET_GROUPING_ITEMS_MUST_HAVE_DISTINCT_PROPERTIES = exports.API_ERROR_MARKET_GROUPING_HAS_OTHER_PROPERTIES = exports.API_ERROR_MARKET_GROUPING_ALREADY_HAS_SUCH_VARIANT = exports.API_ERROR_MARKET_FAILED_TO_UNSET_ALBUM_AS_MAIN = exports.API_ERROR_MARKET_FAILED_TO_SET_ALBUM_AS_MAIN = exports.API_ERROR_MARKET_EXTENDED_NOT_ENABLED = exports.API_ERROR_MARKET_DISABLED = exports.API_ERROR_MARKET_COMMENTS_CLOSED = exports.API_ERROR_MARKET_CANT_CHANGE_VKPAY_STATUS = exports.API_ERROR_MARKET_ALBUM_NOT_FOUND = exports.API_ERROR_MARKET_ALBUM_MAIN_HIDDEN = exports.API_ERROR_MARKET_ADD_TO_SERVICE_ALBUM = exports.API_ERROR_MARKET_ADD_TO_MARKET_ALBUM = exports.API_ERROR_LIMITS = exports.API_ERROR_LIKES_REACTION_CAN_NOT_BE_APPLIED = exports.API_ERROR_IP_IS_NOT_ALLOWED = exports.API_ERROR_INVALID_ADDRESS = exports.API_ERROR_INSUFFICIENT_FUNDS = exports.API_ERROR_GROUP_TOO_MANY_OFFICERS = exports.API_ERROR_GROUP_TOO_MANY_ADDRESSES = exports.API_ERROR_GROUP_NOT_IN_CLUB = exports.API_ERROR_GROUP_NEED_2FA = exports.API_ERROR_GROUP_INVITE_LINKS_NOT_VALID = exports.API_ERROR_GROUP_HOST_NEED_2FA = exports.API_ERROR_GROUP_CHANGE_CREATOR = exports.API_ERROR_GROUP_AUTH = exports.API_ERROR_GROUP_APP_IS_NOT_INSTALLED_IN_COMMUNITY = exports.API_ERROR_FRIENDS_TOO_MANY_FRIENDS = exports.API_ERROR_FRIENDS_LIST_LIMIT = exports.API_ERROR_FRIENDS_LIST_ID = exports.API_ERROR_FRIENDS_ADD_YOURSELF = exports.API_ERROR_FRIENDS_ADD_NOT_FOUND = exports.API_ERROR_FRIENDS_ADD_IN_ENEMY = exports.API_ERROR_FRIENDS_ADD_ENEMY = exports.API_ERROR_FLOOD = exports.API_ERROR_FAVE_ALIEXPRESS_TAG = exports.API_ERROR_ENABLED_IN_TEST = exports.API_ERROR_EMAIL_CONFIRMATION_NEED = exports.API_ERROR_DISABLED = exports.API_ERROR_CUA_CONFIRMATION_REQUIRED = void 0;
8
+ exports.API_ERROR_MESSAGES_MESSAGE_CANNOT_BE_FORWARDED = exports.API_ERROR_MESSAGES_MEMBER_ACCESS_TO_GROUP_DENIED = exports.API_ERROR_MESSAGES_KEYBOARD_INVALID = exports.API_ERROR_MESSAGES_INVALID_REACTION_ID = exports.API_ERROR_MESSAGES_INTENT_LIMIT_OVERFLOW = exports.API_ERROR_MESSAGES_INTENT_CANT_USE = exports.API_ERROR_MESSAGES_GROUP_PEER_ACCESS = exports.API_ERROR_MESSAGES_GROUP_FOR_NOTIFICATIONS_ONLY = exports.API_ERROR_MESSAGES_FORBIDDEN_REACTION = exports.API_ERROR_MESSAGES_EDIT_KIND_DISALLOWED = exports.API_ERROR_MESSAGES_EDIT_EXPIRED = exports.API_ERROR_MESSAGES_DROP_DEVICE_CACHE = exports.API_ERROR_MESSAGES_DENY_SEND = exports.API_ERROR_MESSAGES_CONTACT_NOT_FOUND = exports.API_ERROR_MESSAGES_CHAT_USER_NOT_IN_CHAT = exports.API_ERROR_MESSAGES_CHAT_USER_NO_ACCESS = exports.API_ERROR_MESSAGES_CHAT_USER_LEFT = exports.API_ERROR_MESSAGES_CHAT_UNSUPPORTED = exports.API_ERROR_MESSAGES_CHAT_NOT_EXIST = exports.API_ERROR_MESSAGES_CHAT_NOT_ADMIN = exports.API_ERROR_MESSAGES_CHAT_DISABLED = exports.API_ERROR_MESSAGES_CHAT_BOT_FEATURE = exports.API_ERROR_MESSAGES_CANT_SEE_INVITE_LINK = exports.API_ERROR_MESSAGES_CANT_PIN_ONE_TIME_STORY = exports.API_ERROR_MESSAGES_CANT_PIN_EXPIRING_MESSAGE = exports.API_ERROR_MESSAGES_CANT_FWD = exports.API_ERROR_MESSAGES_CANT_EDIT_PINNED_YET = exports.API_ERROR_MESSAGES_CANT_DELETE_FOR_ALL = exports.API_ERROR_MESSAGES_CANT_CHANGE_INVITE_LINK = exports.API_ERROR_MARKET_VARIANTS_NOT_ENABLED = exports.API_ERROR_MARKET_VARIANTS_ERROR = exports.API_ERROR_MARKET_VARIANT_VALUE_TOO_LONG = exports.API_ERROR_MARKET_VARIANT_NOT_FOUND = exports.API_ERROR_MARKET_UNKNOWN_PROPERTY_TYPE = exports.API_ERROR_MARKET_TOO_MANY_ITEMS_IN_ALBUM = exports.API_ERROR_MARKET_TOO_MANY_ITEMS = exports.API_ERROR_MARKET_TOO_MANY_ALBUMS = exports.API_ERROR_MARKET_SHOP_ALREADY_ENABLED = exports.API_ERROR_MARKET_SHOP_ALREADY_DISABLED = exports.API_ERROR_MARKET_SERVICES_DISABLED = exports.API_ERROR_MARKET_RESTORE_TOO_LATE = exports.API_ERROR_MARKET_PROPERTY_NOT_FOUND = exports.API_ERROR_MARKET_PHOTOS_CROP_SIZE_TOO_LOW = exports.API_ERROR_MARKET_PHOTOS_CROP_OVERFLOW = exports.API_ERROR_MARKET_PHOTOS_CROP_INVALID_FORMAT = exports.API_ERROR_MARKET_ORDERS_ORDER_NOT_FOUND = exports.API_ERROR_MARKET_ORDERS_NO_CART_ITEMS = exports.API_ERROR_MARKET_ORDERS_INVALID_STATUS = exports.API_ERROR_MARKET_NOT_ENABLED = exports.API_ERROR_MARKET_NAME_TOO_LONG = void 0;
9
+ exports.API_ERROR_POLLS_ACCESS = exports.API_ERROR_PHOTO_CHANGED = exports.API_ERROR_PHONE_VALIDATION_NEED = exports.API_ERROR_PERMISSION = exports.API_ERROR_PASSWORD_VALIDATION_NEED = exports.API_ERROR_PARAM_USER_ID = exports.API_ERROR_PARAM_TITLE = exports.API_ERROR_PARAM_TIMESTAMP = exports.API_ERROR_PARAM_SERVER = exports.API_ERROR_PARAM_PHOTOS = exports.API_ERROR_PARAM_PHOTO = exports.API_ERROR_PARAM_PAGE_ID = exports.API_ERROR_PARAM_NOTE_ID = exports.API_ERROR_PARAM_HASH = exports.API_ERROR_PARAM_GROUP_ID = exports.API_ERROR_PARAM_DOC_TITLE = exports.API_ERROR_PARAM_DOC_RESTORE_TIMEOUT = exports.API_ERROR_PARAM_DOC_RESTORE_ACCESS = exports.API_ERROR_PARAM_DOC_ID = exports.API_ERROR_PARAM_DOC_DELETE_ACCESS = exports.API_ERROR_PARAM_DOC_ACCESS = exports.API_ERROR_PARAM_API_ID = exports.API_ERROR_PARAM_ALBUM_ID = exports.API_ERROR_PARAM = exports.API_ERROR_OTP_VALIDATION_NEED = exports.API_ERROR_NOT_SUPPORTED_HTTP_METHOD = exports.API_ERROR_NOT_IMPLEMENTED_YET = exports.API_ERROR_NOT_FOUND = exports.API_ERROR_NEED_TOKEN_CONFIRMATION = exports.API_ERROR_NEED_CONFIRMATION = exports.API_ERROR_MOBILE_NOT_ACTIVATED = exports.API_ERROR_METHOD_PERMISSION = exports.API_ERROR_METHOD_DISABLED = exports.API_ERROR_METHOD_ADS = exports.API_ERROR_METHOD = exports.API_ERROR_MESSAGES_WRITING_DISABLED_FOR_CHAT = exports.API_ERROR_MESSAGES_USER_NOT_DON = exports.API_ERROR_MESSAGES_USER_BLOCKED = exports.API_ERROR_MESSAGES_TOO_OLD_PTS = exports.API_ERROR_MESSAGES_TOO_NEW_PTS = exports.API_ERROR_MESSAGES_TOO_MANY_POSTS = exports.API_ERROR_MESSAGES_TOO_LONG_MESSAGE = exports.API_ERROR_MESSAGES_TOO_LONG_FORWARDS = exports.API_ERROR_MESSAGES_TOO_BIG = exports.API_ERROR_MESSAGES_REACTIONS_LIMIT_REACHED = exports.API_ERROR_MESSAGES_PRIVACY = exports.API_ERROR_MESSAGES_PENDING_MESSAGE_REQUEST = exports.API_ERROR_MESSAGES_PEER_BLOCKED_REASON_BY_TIME = exports.API_ERROR_MESSAGES_NEED_MESSAGE_REQUEST = exports.API_ERROR_MESSAGES_MESSAGE_REQUEST_ALREADY_SENT = void 0;
10
+ exports.API_ERROR_WALL_DONUT = exports.API_ERROR_WALL_COMMENT_NOT_DELETED = exports.API_ERROR_WALL_CHECK_LINK_CANT_DETERMINE_SOURCE = exports.API_ERROR_WALL_ADS_PUBLISHED = exports.API_ERROR_WALL_ADS_POST_LIMIT_REACHED = exports.API_ERROR_WALL_ADD_POST = exports.API_ERROR_WALL_ACCESS_REPLIES = exports.API_ERROR_WALL_ACCESS_POST = exports.API_ERROR_WALL_ACCESS_COMMENT = exports.API_ERROR_WALL_ACCESS_ADD_REPLY = exports.API_ERROR_WAIT = exports.API_ERROR_VOTES_PERMISSION = exports.API_ERROR_VIDEO_COMMENTS_CLOSED = exports.API_ERROR_VIDEO_ALREADY_ADDED = exports.API_ERROR_USER_SERVICE_DEACTIVATED = exports.API_ERROR_USER_DELETED = exports.API_ERROR_USER_DEACTIVATED = exports.API_ERROR_USER_BANNED = exports.API_ERROR_UPLOAD = exports.API_ERROR_UNKNOWN_USER = exports.API_ERROR_UNKNOWN_GROUP = exports.API_ERROR_UNKNOWN_APPLICATION = exports.API_ERROR_UNKNOWN = exports.API_ERROR_TRANSLATIONS_MULTIPLE_SOURCE_LANG = exports.API_ERROR_TRANSLATIONS_CANT_TRANSLATE = exports.API_ERROR_TOO_MANY_LISTS = exports.API_ERROR_TOO_MANY = exports.API_ERROR_TOKEN_EXTENSION_REQUIRED = exports.API_ERROR_TIMEOUT = exports.API_ERROR_STORY_INCORRECT_REPLY_PRIVACY = exports.API_ERROR_STORY_EXPIRED = exports.API_ERROR_STICKERS_TOO_MANY_FAVORITES = exports.API_ERROR_STICKERS_NOT_PURCHASED = exports.API_ERROR_STICKERS_NOT_FAVORITE = exports.API_ERROR_STATUS_NO_AUDIO = exports.API_ERROR_SIGNATURE = exports.API_ERROR_SERVER = exports.API_ERROR_SECTION_DISABLED = exports.API_ERROR_SAVE_FILE = exports.API_ERROR_RUNTIME = exports.API_ERROR_REQUEST = exports.API_ERROR_RECAPTCHA = exports.API_ERROR_RATE_LIMIT = exports.API_ERROR_PRIVATE_PROFILE = exports.API_ERROR_PRETTY_CARDS_TOO_MANY_CARDS = exports.API_ERROR_PRETTY_CARDS_CARD_NOT_FOUND = exports.API_ERROR_PRETTY_CARDS_CARD_IS_CONNECTED_TO_POST = exports.API_ERROR_POLLS_POLL_ID = exports.API_ERROR_POLLS_ANSWER_ID = exports.API_ERROR_POLLS_ACCESS_WITHOUT_VOTE = void 0;
11
+ exports.OwnerStateStateEnumNames = exports.NotificationsSendMessageErrorCodeEnumNames = exports.NewsfeedItemWallpostTopicIdEnumNames = exports.NewsfeedCommentsItemTypePostTopicIdEnumNames = exports.MarketServicesViewTypeEnumNames = exports.MarketPricePriceUnitEnumNames = exports.MarketPricePriceTypeEnumNames = exports.MarketMarketItemAvailabilityEnumNames = exports.MarketMarketAlbumTypeEnumNames = exports.GroupsGroupWikiEnumNames = exports.GroupsGroupWallEnumNames = exports.GroupsGroupVideoEnumNames = exports.GroupsGroupTopicsEnumNames = exports.GroupsGroupSuggestedPrivacyEnumNames = exports.GroupsGroupSubjectEnumNames = exports.GroupsGroupPhotosEnumNames = exports.GroupsGroupMarketCurrencyEnumNames = exports.GroupsGroupIsClosedEnumNames = exports.GroupsGroupFullSectionEnumNames = exports.GroupsGroupFullMemberStatusEnumNames = exports.GroupsGroupFullAgeLimitsEnumNames = exports.GroupsGroupFullWallEnumNames = exports.GroupsGroupDocsEnumNames = exports.GroupsGroupAudioEnumNames = exports.GroupsGroupAgeLimitsEnumNames = exports.GroupsGroupAdminLevelEnumNames = exports.GroupsGroupAccessEnumNames = exports.GroupsBanInfoReasonEnumNames = exports.GiftsGiftPrivacyEnumNames = exports.FriendsFriendStatusStatusEnumNames = exports.BugtrackerBugreportStatusAutoUpdateReasonEnumNames = exports.BoardDefaultOrderEnumNames = exports.BaseSexEnumNames = exports.AppsAppLeaderboardTypeEnumNames = exports.AdsCriteriaSexEnumNames = exports.AdsCampaignStatusEnumNames = exports.AdsAdStatusEnumNames = exports.AdsAdCostTypeEnumNames = exports.AdsAdApprovedEnumNames = exports.FriendsDeleteResponseSuggestionDeletedEnumNames = exports.FriendsDeleteResponseOutRequestDeletedEnumNames = exports.FriendsDeleteResponseInRequestDeletedEnumNames = exports.FriendsDeleteResponseFriendDeletedEnumNames = exports.FriendsAddResponseEnumNames = exports.AuthRestoreResponseSuccessEnumNames = exports.AdsRemoveTargetContactsResponseResultEnumNames = exports.API_ERROR_WEIGHTED_FLOOD = exports.API_ERROR_WALL_TOO_MANY_RECIPIENTS = exports.API_ERROR_WALL_REPLY_OWNER_FLOOD = exports.API_ERROR_WALL_LINKS_FORBIDDEN = void 0;
12
+ exports.WallWallpostFullTopicIdEnumNames = exports.UsersUserRelationEnumNames = exports.PagesPrivacySettingsEnumNames = void 0;
13
+ var common_1 = require("./common/common");
14
+ Object.defineProperty(exports, "API_VERSION", { enumerable: true, get: function () { return common_1.API_VERSION; } });
15
+ var errors_1 = require("./common/errors");
16
+ Object.defineProperty(exports, "API_ERROR_ACCESS", { enumerable: true, get: function () { return errors_1.API_ERROR_ACCESS; } });
17
+ Object.defineProperty(exports, "API_ERROR_ACCESS_ALBUM", { enumerable: true, get: function () { return errors_1.API_ERROR_ACCESS_ALBUM; } });
18
+ Object.defineProperty(exports, "API_ERROR_ACCESS_AUDIO", { enumerable: true, get: function () { return errors_1.API_ERROR_ACCESS_AUDIO; } });
19
+ Object.defineProperty(exports, "API_ERROR_ACCESS_COMMENT", { enumerable: true, get: function () { return errors_1.API_ERROR_ACCESS_COMMENT; } });
20
+ Object.defineProperty(exports, "API_ERROR_ACCESS_GROUP", { enumerable: true, get: function () { return errors_1.API_ERROR_ACCESS_GROUP; } });
21
+ Object.defineProperty(exports, "API_ERROR_ACCESS_GROUPS", { enumerable: true, get: function () { return errors_1.API_ERROR_ACCESS_GROUPS; } });
22
+ Object.defineProperty(exports, "API_ERROR_ACCESS_MARKET", { enumerable: true, get: function () { return errors_1.API_ERROR_ACCESS_MARKET; } });
23
+ Object.defineProperty(exports, "API_ERROR_ACCESS_NOTE", { enumerable: true, get: function () { return errors_1.API_ERROR_ACCESS_NOTE; } });
24
+ Object.defineProperty(exports, "API_ERROR_ACCESS_NOTE_COMMENT", { enumerable: true, get: function () { return errors_1.API_ERROR_ACCESS_NOTE_COMMENT; } });
25
+ Object.defineProperty(exports, "API_ERROR_ACCESS_PAGE", { enumerable: true, get: function () { return errors_1.API_ERROR_ACCESS_PAGE; } });
26
+ Object.defineProperty(exports, "API_ERROR_ACCESS_VIDEO", { enumerable: true, get: function () { return errors_1.API_ERROR_ACCESS_VIDEO; } });
27
+ Object.defineProperty(exports, "API_ERROR_ACTION_FAILED", { enumerable: true, get: function () { return errors_1.API_ERROR_ACTION_FAILED; } });
28
+ Object.defineProperty(exports, "API_ERROR_ADDITIONAL_SIGNUP_REQUIRED", { enumerable: true, get: function () { return errors_1.API_ERROR_ADDITIONAL_SIGNUP_REQUIRED; } });
29
+ Object.defineProperty(exports, "API_ERROR_ADS_LOOKALIKE_REQUEST_ALREADY_IN_PROGRESS", { enumerable: true, get: function () { return errors_1.API_ERROR_ADS_LOOKALIKE_REQUEST_ALREADY_IN_PROGRESS; } });
30
+ Object.defineProperty(exports, "API_ERROR_ADS_LOOKALIKE_REQUEST_AUDIENCE_TOO_LARGE", { enumerable: true, get: function () { return errors_1.API_ERROR_ADS_LOOKALIKE_REQUEST_AUDIENCE_TOO_LARGE; } });
31
+ Object.defineProperty(exports, "API_ERROR_ADS_LOOKALIKE_REQUEST_AUDIENCE_TOO_SMALL", { enumerable: true, get: function () { return errors_1.API_ERROR_ADS_LOOKALIKE_REQUEST_AUDIENCE_TOO_SMALL; } });
32
+ Object.defineProperty(exports, "API_ERROR_ADS_LOOKALIKE_REQUEST_EXPORT_ALREADY_IN_PROGRESS", { enumerable: true, get: function () { return errors_1.API_ERROR_ADS_LOOKALIKE_REQUEST_EXPORT_ALREADY_IN_PROGRESS; } });
33
+ Object.defineProperty(exports, "API_ERROR_ADS_LOOKALIKE_REQUEST_EXPORT_MAX_COUNT_PER_DAY_REACHED", { enumerable: true, get: function () { return errors_1.API_ERROR_ADS_LOOKALIKE_REQUEST_EXPORT_MAX_COUNT_PER_DAY_REACHED; } });
34
+ Object.defineProperty(exports, "API_ERROR_ADS_LOOKALIKE_REQUEST_EXPORT_RETARGETING_GROUP_LIMIT", { enumerable: true, get: function () { return errors_1.API_ERROR_ADS_LOOKALIKE_REQUEST_EXPORT_RETARGETING_GROUP_LIMIT; } });
35
+ Object.defineProperty(exports, "API_ERROR_ADS_LOOKALIKE_REQUEST_MAX_COUNT_PER_DAY_REACHED", { enumerable: true, get: function () { return errors_1.API_ERROR_ADS_LOOKALIKE_REQUEST_MAX_COUNT_PER_DAY_REACHED; } });
36
+ Object.defineProperty(exports, "API_ERROR_ADS_OBJECT_DELETED", { enumerable: true, get: function () { return errors_1.API_ERROR_ADS_OBJECT_DELETED; } });
37
+ Object.defineProperty(exports, "API_ERROR_ADS_PARTIAL_SUCCESS", { enumerable: true, get: function () { return errors_1.API_ERROR_ADS_PARTIAL_SUCCESS; } });
38
+ Object.defineProperty(exports, "API_ERROR_ADS_PERMISSION", { enumerable: true, get: function () { return errors_1.API_ERROR_ADS_PERMISSION; } });
39
+ Object.defineProperty(exports, "API_ERROR_ADS_SPECIFIC", { enumerable: true, get: function () { return errors_1.API_ERROR_ADS_SPECIFIC; } });
40
+ Object.defineProperty(exports, "API_ERROR_ALBUM_FULL", { enumerable: true, get: function () { return errors_1.API_ERROR_ALBUM_FULL; } });
41
+ Object.defineProperty(exports, "API_ERROR_ALBUMS_LIMIT", { enumerable: true, get: function () { return errors_1.API_ERROR_ALBUMS_LIMIT; } });
42
+ Object.defineProperty(exports, "API_ERROR_APP_AUTH", { enumerable: true, get: function () { return errors_1.API_ERROR_APP_AUTH; } });
43
+ Object.defineProperty(exports, "API_ERROR_APPS_ALREADY_UNLOCKED", { enumerable: true, get: function () { return errors_1.API_ERROR_APPS_ALREADY_UNLOCKED; } });
44
+ Object.defineProperty(exports, "API_ERROR_APPS_EMPTY_FILTER_PARAMS", { enumerable: true, get: function () { return errors_1.API_ERROR_APPS_EMPTY_FILTER_PARAMS; } });
45
+ Object.defineProperty(exports, "API_ERROR_APPS_EMPTY_SNIPPET_DATA", { enumerable: true, get: function () { return errors_1.API_ERROR_APPS_EMPTY_SNIPPET_DATA; } });
46
+ Object.defineProperty(exports, "API_ERROR_APPS_NOT_FOUND_SNIPPET", { enumerable: true, get: function () { return errors_1.API_ERROR_APPS_NOT_FOUND_SNIPPET; } });
47
+ Object.defineProperty(exports, "API_ERROR_APPS_SUBSCRIPTION_INVALID_STATUS", { enumerable: true, get: function () { return errors_1.API_ERROR_APPS_SUBSCRIPTION_INVALID_STATUS; } });
48
+ Object.defineProperty(exports, "API_ERROR_APPS_SUBSCRIPTION_NOT_FOUND", { enumerable: true, get: function () { return errors_1.API_ERROR_APPS_SUBSCRIPTION_NOT_FOUND; } });
49
+ Object.defineProperty(exports, "API_ERROR_APPS_TOO_MANY_SNIPPETS", { enumerable: true, get: function () { return errors_1.API_ERROR_APPS_TOO_MANY_SNIPPETS; } });
50
+ Object.defineProperty(exports, "API_ERROR_ASSERT_VOTES", { enumerable: true, get: function () { return errors_1.API_ERROR_ASSERT_VOTES; } });
51
+ Object.defineProperty(exports, "API_ERROR_AUTH", { enumerable: true, get: function () { return errors_1.API_ERROR_AUTH; } });
52
+ Object.defineProperty(exports, "API_ERROR_AUTH_ACCESS_TOKEN_HAS_EXPIRED", { enumerable: true, get: function () { return errors_1.API_ERROR_AUTH_ACCESS_TOKEN_HAS_EXPIRED; } });
53
+ Object.defineProperty(exports, "API_ERROR_AUTH_ANONYMOUS_TOKEN_HAS_EXPIRED", { enumerable: true, get: function () { return errors_1.API_ERROR_AUTH_ANONYMOUS_TOKEN_HAS_EXPIRED; } });
54
+ Object.defineProperty(exports, "API_ERROR_AUTH_ANONYMOUS_TOKEN_IP_MISMATCH", { enumerable: true, get: function () { return errors_1.API_ERROR_AUTH_ANONYMOUS_TOKEN_IP_MISMATCH; } });
55
+ Object.defineProperty(exports, "API_ERROR_AUTH_ANONYMOUS_TOKEN_IS_INVALID", { enumerable: true, get: function () { return errors_1.API_ERROR_AUTH_ANONYMOUS_TOKEN_IS_INVALID; } });
56
+ Object.defineProperty(exports, "API_ERROR_AUTH_FLOOD_ERROR", { enumerable: true, get: function () { return errors_1.API_ERROR_AUTH_FLOOD_ERROR; } });
57
+ Object.defineProperty(exports, "API_ERROR_AUTH_HTTPS", { enumerable: true, get: function () { return errors_1.API_ERROR_AUTH_HTTPS; } });
58
+ Object.defineProperty(exports, "API_ERROR_AUTH_VALIDATION", { enumerable: true, get: function () { return errors_1.API_ERROR_AUTH_VALIDATION; } });
59
+ Object.defineProperty(exports, "API_ERROR_BLOCKED", { enumerable: true, get: function () { return errors_1.API_ERROR_BLOCKED; } });
60
+ Object.defineProperty(exports, "API_ERROR_CALLBACK_API_SERVERS_LIMIT", { enumerable: true, get: function () { return errors_1.API_ERROR_CALLBACK_API_SERVERS_LIMIT; } });
61
+ Object.defineProperty(exports, "API_ERROR_CAPTCHA", { enumerable: true, get: function () { return errors_1.API_ERROR_CAPTCHA; } });
62
+ Object.defineProperty(exports, "API_ERROR_CLIENT_UPDATE_NEEDED", { enumerable: true, get: function () { return errors_1.API_ERROR_CLIENT_UPDATE_NEEDED; } });
63
+ Object.defineProperty(exports, "API_ERROR_CLIENT_VERSION_DEPRECATED", { enumerable: true, get: function () { return errors_1.API_ERROR_CLIENT_VERSION_DEPRECATED; } });
64
+ Object.defineProperty(exports, "API_ERROR_COMPILE", { enumerable: true, get: function () { return errors_1.API_ERROR_COMPILE; } });
65
+ Object.defineProperty(exports, "API_ERROR_CUA_CONFIRMATION_REQUIRED", { enumerable: true, get: function () { return errors_1.API_ERROR_CUA_CONFIRMATION_REQUIRED; } });
66
+ Object.defineProperty(exports, "API_ERROR_DISABLED", { enumerable: true, get: function () { return errors_1.API_ERROR_DISABLED; } });
67
+ Object.defineProperty(exports, "API_ERROR_EMAIL_CONFIRMATION_NEED", { enumerable: true, get: function () { return errors_1.API_ERROR_EMAIL_CONFIRMATION_NEED; } });
68
+ Object.defineProperty(exports, "API_ERROR_ENABLED_IN_TEST", { enumerable: true, get: function () { return errors_1.API_ERROR_ENABLED_IN_TEST; } });
69
+ Object.defineProperty(exports, "API_ERROR_FAVE_ALIEXPRESS_TAG", { enumerable: true, get: function () { return errors_1.API_ERROR_FAVE_ALIEXPRESS_TAG; } });
70
+ Object.defineProperty(exports, "API_ERROR_FLOOD", { enumerable: true, get: function () { return errors_1.API_ERROR_FLOOD; } });
71
+ Object.defineProperty(exports, "API_ERROR_FRIENDS_ADD_ENEMY", { enumerable: true, get: function () { return errors_1.API_ERROR_FRIENDS_ADD_ENEMY; } });
72
+ Object.defineProperty(exports, "API_ERROR_FRIENDS_ADD_IN_ENEMY", { enumerable: true, get: function () { return errors_1.API_ERROR_FRIENDS_ADD_IN_ENEMY; } });
73
+ Object.defineProperty(exports, "API_ERROR_FRIENDS_ADD_NOT_FOUND", { enumerable: true, get: function () { return errors_1.API_ERROR_FRIENDS_ADD_NOT_FOUND; } });
74
+ Object.defineProperty(exports, "API_ERROR_FRIENDS_ADD_YOURSELF", { enumerable: true, get: function () { return errors_1.API_ERROR_FRIENDS_ADD_YOURSELF; } });
75
+ Object.defineProperty(exports, "API_ERROR_FRIENDS_LIST_ID", { enumerable: true, get: function () { return errors_1.API_ERROR_FRIENDS_LIST_ID; } });
76
+ Object.defineProperty(exports, "API_ERROR_FRIENDS_LIST_LIMIT", { enumerable: true, get: function () { return errors_1.API_ERROR_FRIENDS_LIST_LIMIT; } });
77
+ Object.defineProperty(exports, "API_ERROR_FRIENDS_TOO_MANY_FRIENDS", { enumerable: true, get: function () { return errors_1.API_ERROR_FRIENDS_TOO_MANY_FRIENDS; } });
78
+ Object.defineProperty(exports, "API_ERROR_GROUP_APP_IS_NOT_INSTALLED_IN_COMMUNITY", { enumerable: true, get: function () { return errors_1.API_ERROR_GROUP_APP_IS_NOT_INSTALLED_IN_COMMUNITY; } });
79
+ Object.defineProperty(exports, "API_ERROR_GROUP_AUTH", { enumerable: true, get: function () { return errors_1.API_ERROR_GROUP_AUTH; } });
80
+ Object.defineProperty(exports, "API_ERROR_GROUP_CHANGE_CREATOR", { enumerable: true, get: function () { return errors_1.API_ERROR_GROUP_CHANGE_CREATOR; } });
81
+ Object.defineProperty(exports, "API_ERROR_GROUP_HOST_NEED_2FA", { enumerable: true, get: function () { return errors_1.API_ERROR_GROUP_HOST_NEED_2FA; } });
82
+ Object.defineProperty(exports, "API_ERROR_GROUP_INVITE_LINKS_NOT_VALID", { enumerable: true, get: function () { return errors_1.API_ERROR_GROUP_INVITE_LINKS_NOT_VALID; } });
83
+ Object.defineProperty(exports, "API_ERROR_GROUP_NEED_2FA", { enumerable: true, get: function () { return errors_1.API_ERROR_GROUP_NEED_2FA; } });
84
+ Object.defineProperty(exports, "API_ERROR_GROUP_NOT_IN_CLUB", { enumerable: true, get: function () { return errors_1.API_ERROR_GROUP_NOT_IN_CLUB; } });
85
+ Object.defineProperty(exports, "API_ERROR_GROUP_TOO_MANY_ADDRESSES", { enumerable: true, get: function () { return errors_1.API_ERROR_GROUP_TOO_MANY_ADDRESSES; } });
86
+ Object.defineProperty(exports, "API_ERROR_GROUP_TOO_MANY_OFFICERS", { enumerable: true, get: function () { return errors_1.API_ERROR_GROUP_TOO_MANY_OFFICERS; } });
87
+ Object.defineProperty(exports, "API_ERROR_INSUFFICIENT_FUNDS", { enumerable: true, get: function () { return errors_1.API_ERROR_INSUFFICIENT_FUNDS; } });
88
+ Object.defineProperty(exports, "API_ERROR_INVALID_ADDRESS", { enumerable: true, get: function () { return errors_1.API_ERROR_INVALID_ADDRESS; } });
89
+ Object.defineProperty(exports, "API_ERROR_IP_IS_NOT_ALLOWED", { enumerable: true, get: function () { return errors_1.API_ERROR_IP_IS_NOT_ALLOWED; } });
90
+ Object.defineProperty(exports, "API_ERROR_LIKES_REACTION_CAN_NOT_BE_APPLIED", { enumerable: true, get: function () { return errors_1.API_ERROR_LIKES_REACTION_CAN_NOT_BE_APPLIED; } });
91
+ Object.defineProperty(exports, "API_ERROR_LIMITS", { enumerable: true, get: function () { return errors_1.API_ERROR_LIMITS; } });
92
+ Object.defineProperty(exports, "API_ERROR_MARKET_ADD_TO_MARKET_ALBUM", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_ADD_TO_MARKET_ALBUM; } });
93
+ Object.defineProperty(exports, "API_ERROR_MARKET_ADD_TO_SERVICE_ALBUM", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_ADD_TO_SERVICE_ALBUM; } });
94
+ Object.defineProperty(exports, "API_ERROR_MARKET_ALBUM_MAIN_HIDDEN", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_ALBUM_MAIN_HIDDEN; } });
95
+ Object.defineProperty(exports, "API_ERROR_MARKET_ALBUM_NOT_FOUND", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_ALBUM_NOT_FOUND; } });
96
+ Object.defineProperty(exports, "API_ERROR_MARKET_CANT_CHANGE_VKPAY_STATUS", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_CANT_CHANGE_VKPAY_STATUS; } });
97
+ Object.defineProperty(exports, "API_ERROR_MARKET_COMMENTS_CLOSED", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_COMMENTS_CLOSED; } });
98
+ Object.defineProperty(exports, "API_ERROR_MARKET_DISABLED", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_DISABLED; } });
99
+ Object.defineProperty(exports, "API_ERROR_MARKET_EXTENDED_NOT_ENABLED", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_EXTENDED_NOT_ENABLED; } });
100
+ Object.defineProperty(exports, "API_ERROR_MARKET_FAILED_TO_SET_ALBUM_AS_MAIN", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_FAILED_TO_SET_ALBUM_AS_MAIN; } });
101
+ Object.defineProperty(exports, "API_ERROR_MARKET_FAILED_TO_UNSET_ALBUM_AS_MAIN", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_FAILED_TO_UNSET_ALBUM_AS_MAIN; } });
102
+ Object.defineProperty(exports, "API_ERROR_MARKET_GROUPING_ALREADY_HAS_SUCH_VARIANT", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_GROUPING_ALREADY_HAS_SUCH_VARIANT; } });
103
+ Object.defineProperty(exports, "API_ERROR_MARKET_GROUPING_HAS_OTHER_PROPERTIES", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_GROUPING_HAS_OTHER_PROPERTIES; } });
104
+ Object.defineProperty(exports, "API_ERROR_MARKET_GROUPING_ITEMS_MUST_HAVE_DISTINCT_PROPERTIES", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_GROUPING_ITEMS_MUST_HAVE_DISTINCT_PROPERTIES; } });
105
+ Object.defineProperty(exports, "API_ERROR_MARKET_GROUPING_ITEMS_WITH_DIFFERENT_PROPERTIES", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_GROUPING_ITEMS_WITH_DIFFERENT_PROPERTIES; } });
106
+ Object.defineProperty(exports, "API_ERROR_MARKET_GROUPING_MUST_CONTAIN_MORE_THAN_ONE_ITEM", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_GROUPING_MUST_CONTAIN_MORE_THAN_ONE_ITEM; } });
107
+ Object.defineProperty(exports, "API_ERROR_MARKET_GROUPING_MUST_HAVE_VARIANTS", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_GROUPING_MUST_HAVE_VARIANTS; } });
108
+ Object.defineProperty(exports, "API_ERROR_MARKET_INVALID_DIMENSIONS", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_INVALID_DIMENSIONS; } });
109
+ Object.defineProperty(exports, "API_ERROR_MARKET_ITEM_ALREADY_ADDED", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_ITEM_ALREADY_ADDED; } });
110
+ Object.defineProperty(exports, "API_ERROR_MARKET_ITEM_HAS_BAD_LINKS", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_ITEM_HAS_BAD_LINKS; } });
111
+ Object.defineProperty(exports, "API_ERROR_MARKET_ITEM_IS_NOT_DELETED", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_ITEM_IS_NOT_DELETED; } });
112
+ Object.defineProperty(exports, "API_ERROR_MARKET_ITEM_NOT_FOUND", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_ITEM_NOT_FOUND; } });
113
+ Object.defineProperty(exports, "API_ERROR_MARKET_MAX_PROPERTIES_LIMIT_EXCEED", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_MAX_PROPERTIES_LIMIT_EXCEED; } });
114
+ Object.defineProperty(exports, "API_ERROR_MARKET_MAX_VARIANTS_LIMIT_EXCEED", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_MAX_VARIANTS_LIMIT_EXCEED; } });
115
+ Object.defineProperty(exports, "API_ERROR_MARKET_NAME_TOO_LONG", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_NAME_TOO_LONG; } });
116
+ Object.defineProperty(exports, "API_ERROR_MARKET_NOT_ENABLED", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_NOT_ENABLED; } });
117
+ Object.defineProperty(exports, "API_ERROR_MARKET_ORDERS_INVALID_STATUS", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_ORDERS_INVALID_STATUS; } });
118
+ Object.defineProperty(exports, "API_ERROR_MARKET_ORDERS_NO_CART_ITEMS", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_ORDERS_NO_CART_ITEMS; } });
119
+ Object.defineProperty(exports, "API_ERROR_MARKET_ORDERS_ORDER_NOT_FOUND", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_ORDERS_ORDER_NOT_FOUND; } });
120
+ Object.defineProperty(exports, "API_ERROR_MARKET_PHOTOS_CROP_INVALID_FORMAT", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_PHOTOS_CROP_INVALID_FORMAT; } });
121
+ Object.defineProperty(exports, "API_ERROR_MARKET_PHOTOS_CROP_OVERFLOW", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_PHOTOS_CROP_OVERFLOW; } });
122
+ Object.defineProperty(exports, "API_ERROR_MARKET_PHOTOS_CROP_SIZE_TOO_LOW", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_PHOTOS_CROP_SIZE_TOO_LOW; } });
123
+ Object.defineProperty(exports, "API_ERROR_MARKET_PROPERTY_NOT_FOUND", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_PROPERTY_NOT_FOUND; } });
124
+ Object.defineProperty(exports, "API_ERROR_MARKET_RESTORE_TOO_LATE", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_RESTORE_TOO_LATE; } });
125
+ Object.defineProperty(exports, "API_ERROR_MARKET_SERVICES_DISABLED", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_SERVICES_DISABLED; } });
126
+ Object.defineProperty(exports, "API_ERROR_MARKET_SHOP_ALREADY_DISABLED", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_SHOP_ALREADY_DISABLED; } });
127
+ Object.defineProperty(exports, "API_ERROR_MARKET_SHOP_ALREADY_ENABLED", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_SHOP_ALREADY_ENABLED; } });
128
+ Object.defineProperty(exports, "API_ERROR_MARKET_TOO_MANY_ALBUMS", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_TOO_MANY_ALBUMS; } });
129
+ Object.defineProperty(exports, "API_ERROR_MARKET_TOO_MANY_ITEMS", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_TOO_MANY_ITEMS; } });
130
+ Object.defineProperty(exports, "API_ERROR_MARKET_TOO_MANY_ITEMS_IN_ALBUM", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_TOO_MANY_ITEMS_IN_ALBUM; } });
131
+ Object.defineProperty(exports, "API_ERROR_MARKET_UNKNOWN_PROPERTY_TYPE", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_UNKNOWN_PROPERTY_TYPE; } });
132
+ Object.defineProperty(exports, "API_ERROR_MARKET_VARIANT_NOT_FOUND", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_VARIANT_NOT_FOUND; } });
133
+ Object.defineProperty(exports, "API_ERROR_MARKET_VARIANT_VALUE_TOO_LONG", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_VARIANT_VALUE_TOO_LONG; } });
134
+ Object.defineProperty(exports, "API_ERROR_MARKET_VARIANTS_ERROR", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_VARIANTS_ERROR; } });
135
+ Object.defineProperty(exports, "API_ERROR_MARKET_VARIANTS_NOT_ENABLED", { enumerable: true, get: function () { return errors_1.API_ERROR_MARKET_VARIANTS_NOT_ENABLED; } });
136
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_CANT_CHANGE_INVITE_LINK", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_CANT_CHANGE_INVITE_LINK; } });
137
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_CANT_DELETE_FOR_ALL", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_CANT_DELETE_FOR_ALL; } });
138
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_CANT_EDIT_PINNED_YET", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_CANT_EDIT_PINNED_YET; } });
139
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_CANT_FWD", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_CANT_FWD; } });
140
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_CANT_PIN_EXPIRING_MESSAGE", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_CANT_PIN_EXPIRING_MESSAGE; } });
141
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_CANT_PIN_ONE_TIME_STORY", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_CANT_PIN_ONE_TIME_STORY; } });
142
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_CANT_SEE_INVITE_LINK", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_CANT_SEE_INVITE_LINK; } });
143
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_CHAT_BOT_FEATURE", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_CHAT_BOT_FEATURE; } });
144
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_CHAT_DISABLED", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_CHAT_DISABLED; } });
145
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_CHAT_NOT_ADMIN", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_CHAT_NOT_ADMIN; } });
146
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_CHAT_NOT_EXIST", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_CHAT_NOT_EXIST; } });
147
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_CHAT_UNSUPPORTED", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_CHAT_UNSUPPORTED; } });
148
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_CHAT_USER_LEFT", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_CHAT_USER_LEFT; } });
149
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_CHAT_USER_NO_ACCESS", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_CHAT_USER_NO_ACCESS; } });
150
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_CHAT_USER_NOT_IN_CHAT", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_CHAT_USER_NOT_IN_CHAT; } });
151
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_CONTACT_NOT_FOUND", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_CONTACT_NOT_FOUND; } });
152
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_DENY_SEND", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_DENY_SEND; } });
153
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_DROP_DEVICE_CACHE", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_DROP_DEVICE_CACHE; } });
154
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_EDIT_EXPIRED", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_EDIT_EXPIRED; } });
155
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_EDIT_KIND_DISALLOWED", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_EDIT_KIND_DISALLOWED; } });
156
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_FORBIDDEN_REACTION", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_FORBIDDEN_REACTION; } });
157
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_GROUP_FOR_NOTIFICATIONS_ONLY", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_GROUP_FOR_NOTIFICATIONS_ONLY; } });
158
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_GROUP_PEER_ACCESS", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_GROUP_PEER_ACCESS; } });
159
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_INTENT_CANT_USE", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_INTENT_CANT_USE; } });
160
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_INTENT_LIMIT_OVERFLOW", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_INTENT_LIMIT_OVERFLOW; } });
161
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_INVALID_REACTION_ID", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_INVALID_REACTION_ID; } });
162
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_KEYBOARD_INVALID", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_KEYBOARD_INVALID; } });
163
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_MEMBER_ACCESS_TO_GROUP_DENIED", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_MEMBER_ACCESS_TO_GROUP_DENIED; } });
164
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_MESSAGE_CANNOT_BE_FORWARDED", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_MESSAGE_CANNOT_BE_FORWARDED; } });
165
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_MESSAGE_REQUEST_ALREADY_SENT", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_MESSAGE_REQUEST_ALREADY_SENT; } });
166
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_NEED_MESSAGE_REQUEST", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_NEED_MESSAGE_REQUEST; } });
167
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_PEER_BLOCKED_REASON_BY_TIME", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_PEER_BLOCKED_REASON_BY_TIME; } });
168
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_PENDING_MESSAGE_REQUEST", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_PENDING_MESSAGE_REQUEST; } });
169
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_PRIVACY", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_PRIVACY; } });
170
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_REACTIONS_LIMIT_REACHED", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_REACTIONS_LIMIT_REACHED; } });
171
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_TOO_BIG", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_TOO_BIG; } });
172
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_TOO_LONG_FORWARDS", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_TOO_LONG_FORWARDS; } });
173
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_TOO_LONG_MESSAGE", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_TOO_LONG_MESSAGE; } });
174
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_TOO_MANY_POSTS", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_TOO_MANY_POSTS; } });
175
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_TOO_NEW_PTS", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_TOO_NEW_PTS; } });
176
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_TOO_OLD_PTS", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_TOO_OLD_PTS; } });
177
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_USER_BLOCKED", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_USER_BLOCKED; } });
178
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_USER_NOT_DON", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_USER_NOT_DON; } });
179
+ Object.defineProperty(exports, "API_ERROR_MESSAGES_WRITING_DISABLED_FOR_CHAT", { enumerable: true, get: function () { return errors_1.API_ERROR_MESSAGES_WRITING_DISABLED_FOR_CHAT; } });
180
+ Object.defineProperty(exports, "API_ERROR_METHOD", { enumerable: true, get: function () { return errors_1.API_ERROR_METHOD; } });
181
+ Object.defineProperty(exports, "API_ERROR_METHOD_ADS", { enumerable: true, get: function () { return errors_1.API_ERROR_METHOD_ADS; } });
182
+ Object.defineProperty(exports, "API_ERROR_METHOD_DISABLED", { enumerable: true, get: function () { return errors_1.API_ERROR_METHOD_DISABLED; } });
183
+ Object.defineProperty(exports, "API_ERROR_METHOD_PERMISSION", { enumerable: true, get: function () { return errors_1.API_ERROR_METHOD_PERMISSION; } });
184
+ Object.defineProperty(exports, "API_ERROR_MOBILE_NOT_ACTIVATED", { enumerable: true, get: function () { return errors_1.API_ERROR_MOBILE_NOT_ACTIVATED; } });
185
+ Object.defineProperty(exports, "API_ERROR_NEED_CONFIRMATION", { enumerable: true, get: function () { return errors_1.API_ERROR_NEED_CONFIRMATION; } });
186
+ Object.defineProperty(exports, "API_ERROR_NEED_TOKEN_CONFIRMATION", { enumerable: true, get: function () { return errors_1.API_ERROR_NEED_TOKEN_CONFIRMATION; } });
187
+ Object.defineProperty(exports, "API_ERROR_NOT_FOUND", { enumerable: true, get: function () { return errors_1.API_ERROR_NOT_FOUND; } });
188
+ Object.defineProperty(exports, "API_ERROR_NOT_IMPLEMENTED_YET", { enumerable: true, get: function () { return errors_1.API_ERROR_NOT_IMPLEMENTED_YET; } });
189
+ Object.defineProperty(exports, "API_ERROR_NOT_SUPPORTED_HTTP_METHOD", { enumerable: true, get: function () { return errors_1.API_ERROR_NOT_SUPPORTED_HTTP_METHOD; } });
190
+ Object.defineProperty(exports, "API_ERROR_OTP_VALIDATION_NEED", { enumerable: true, get: function () { return errors_1.API_ERROR_OTP_VALIDATION_NEED; } });
191
+ Object.defineProperty(exports, "API_ERROR_PARAM", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM; } });
192
+ Object.defineProperty(exports, "API_ERROR_PARAM_ALBUM_ID", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_ALBUM_ID; } });
193
+ Object.defineProperty(exports, "API_ERROR_PARAM_API_ID", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_API_ID; } });
194
+ Object.defineProperty(exports, "API_ERROR_PARAM_DOC_ACCESS", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_DOC_ACCESS; } });
195
+ Object.defineProperty(exports, "API_ERROR_PARAM_DOC_DELETE_ACCESS", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_DOC_DELETE_ACCESS; } });
196
+ Object.defineProperty(exports, "API_ERROR_PARAM_DOC_ID", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_DOC_ID; } });
197
+ Object.defineProperty(exports, "API_ERROR_PARAM_DOC_RESTORE_ACCESS", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_DOC_RESTORE_ACCESS; } });
198
+ Object.defineProperty(exports, "API_ERROR_PARAM_DOC_RESTORE_TIMEOUT", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_DOC_RESTORE_TIMEOUT; } });
199
+ Object.defineProperty(exports, "API_ERROR_PARAM_DOC_TITLE", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_DOC_TITLE; } });
200
+ Object.defineProperty(exports, "API_ERROR_PARAM_GROUP_ID", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_GROUP_ID; } });
201
+ Object.defineProperty(exports, "API_ERROR_PARAM_HASH", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_HASH; } });
202
+ Object.defineProperty(exports, "API_ERROR_PARAM_NOTE_ID", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_NOTE_ID; } });
203
+ Object.defineProperty(exports, "API_ERROR_PARAM_PAGE_ID", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_PAGE_ID; } });
204
+ Object.defineProperty(exports, "API_ERROR_PARAM_PHOTO", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_PHOTO; } });
205
+ Object.defineProperty(exports, "API_ERROR_PARAM_PHOTOS", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_PHOTOS; } });
206
+ Object.defineProperty(exports, "API_ERROR_PARAM_SERVER", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_SERVER; } });
207
+ Object.defineProperty(exports, "API_ERROR_PARAM_TIMESTAMP", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_TIMESTAMP; } });
208
+ Object.defineProperty(exports, "API_ERROR_PARAM_TITLE", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_TITLE; } });
209
+ Object.defineProperty(exports, "API_ERROR_PARAM_USER_ID", { enumerable: true, get: function () { return errors_1.API_ERROR_PARAM_USER_ID; } });
210
+ Object.defineProperty(exports, "API_ERROR_PASSWORD_VALIDATION_NEED", { enumerable: true, get: function () { return errors_1.API_ERROR_PASSWORD_VALIDATION_NEED; } });
211
+ Object.defineProperty(exports, "API_ERROR_PERMISSION", { enumerable: true, get: function () { return errors_1.API_ERROR_PERMISSION; } });
212
+ Object.defineProperty(exports, "API_ERROR_PHONE_VALIDATION_NEED", { enumerable: true, get: function () { return errors_1.API_ERROR_PHONE_VALIDATION_NEED; } });
213
+ Object.defineProperty(exports, "API_ERROR_PHOTO_CHANGED", { enumerable: true, get: function () { return errors_1.API_ERROR_PHOTO_CHANGED; } });
214
+ Object.defineProperty(exports, "API_ERROR_POLLS_ACCESS", { enumerable: true, get: function () { return errors_1.API_ERROR_POLLS_ACCESS; } });
215
+ Object.defineProperty(exports, "API_ERROR_POLLS_ACCESS_WITHOUT_VOTE", { enumerable: true, get: function () { return errors_1.API_ERROR_POLLS_ACCESS_WITHOUT_VOTE; } });
216
+ Object.defineProperty(exports, "API_ERROR_POLLS_ANSWER_ID", { enumerable: true, get: function () { return errors_1.API_ERROR_POLLS_ANSWER_ID; } });
217
+ Object.defineProperty(exports, "API_ERROR_POLLS_POLL_ID", { enumerable: true, get: function () { return errors_1.API_ERROR_POLLS_POLL_ID; } });
218
+ Object.defineProperty(exports, "API_ERROR_PRETTY_CARDS_CARD_IS_CONNECTED_TO_POST", { enumerable: true, get: function () { return errors_1.API_ERROR_PRETTY_CARDS_CARD_IS_CONNECTED_TO_POST; } });
219
+ Object.defineProperty(exports, "API_ERROR_PRETTY_CARDS_CARD_NOT_FOUND", { enumerable: true, get: function () { return errors_1.API_ERROR_PRETTY_CARDS_CARD_NOT_FOUND; } });
220
+ Object.defineProperty(exports, "API_ERROR_PRETTY_CARDS_TOO_MANY_CARDS", { enumerable: true, get: function () { return errors_1.API_ERROR_PRETTY_CARDS_TOO_MANY_CARDS; } });
221
+ Object.defineProperty(exports, "API_ERROR_PRIVATE_PROFILE", { enumerable: true, get: function () { return errors_1.API_ERROR_PRIVATE_PROFILE; } });
222
+ Object.defineProperty(exports, "API_ERROR_RATE_LIMIT", { enumerable: true, get: function () { return errors_1.API_ERROR_RATE_LIMIT; } });
223
+ Object.defineProperty(exports, "API_ERROR_RECAPTCHA", { enumerable: true, get: function () { return errors_1.API_ERROR_RECAPTCHA; } });
224
+ Object.defineProperty(exports, "API_ERROR_REQUEST", { enumerable: true, get: function () { return errors_1.API_ERROR_REQUEST; } });
225
+ Object.defineProperty(exports, "API_ERROR_RUNTIME", { enumerable: true, get: function () { return errors_1.API_ERROR_RUNTIME; } });
226
+ Object.defineProperty(exports, "API_ERROR_SAVE_FILE", { enumerable: true, get: function () { return errors_1.API_ERROR_SAVE_FILE; } });
227
+ Object.defineProperty(exports, "API_ERROR_SECTION_DISABLED", { enumerable: true, get: function () { return errors_1.API_ERROR_SECTION_DISABLED; } });
228
+ Object.defineProperty(exports, "API_ERROR_SERVER", { enumerable: true, get: function () { return errors_1.API_ERROR_SERVER; } });
229
+ Object.defineProperty(exports, "API_ERROR_SIGNATURE", { enumerable: true, get: function () { return errors_1.API_ERROR_SIGNATURE; } });
230
+ Object.defineProperty(exports, "API_ERROR_STATUS_NO_AUDIO", { enumerable: true, get: function () { return errors_1.API_ERROR_STATUS_NO_AUDIO; } });
231
+ Object.defineProperty(exports, "API_ERROR_STICKERS_NOT_FAVORITE", { enumerable: true, get: function () { return errors_1.API_ERROR_STICKERS_NOT_FAVORITE; } });
232
+ Object.defineProperty(exports, "API_ERROR_STICKERS_NOT_PURCHASED", { enumerable: true, get: function () { return errors_1.API_ERROR_STICKERS_NOT_PURCHASED; } });
233
+ Object.defineProperty(exports, "API_ERROR_STICKERS_TOO_MANY_FAVORITES", { enumerable: true, get: function () { return errors_1.API_ERROR_STICKERS_TOO_MANY_FAVORITES; } });
234
+ Object.defineProperty(exports, "API_ERROR_STORY_EXPIRED", { enumerable: true, get: function () { return errors_1.API_ERROR_STORY_EXPIRED; } });
235
+ Object.defineProperty(exports, "API_ERROR_STORY_INCORRECT_REPLY_PRIVACY", { enumerable: true, get: function () { return errors_1.API_ERROR_STORY_INCORRECT_REPLY_PRIVACY; } });
236
+ Object.defineProperty(exports, "API_ERROR_TIMEOUT", { enumerable: true, get: function () { return errors_1.API_ERROR_TIMEOUT; } });
237
+ Object.defineProperty(exports, "API_ERROR_TOKEN_EXTENSION_REQUIRED", { enumerable: true, get: function () { return errors_1.API_ERROR_TOKEN_EXTENSION_REQUIRED; } });
238
+ Object.defineProperty(exports, "API_ERROR_TOO_MANY", { enumerable: true, get: function () { return errors_1.API_ERROR_TOO_MANY; } });
239
+ Object.defineProperty(exports, "API_ERROR_TOO_MANY_LISTS", { enumerable: true, get: function () { return errors_1.API_ERROR_TOO_MANY_LISTS; } });
240
+ Object.defineProperty(exports, "API_ERROR_TRANSLATIONS_CANT_TRANSLATE", { enumerable: true, get: function () { return errors_1.API_ERROR_TRANSLATIONS_CANT_TRANSLATE; } });
241
+ Object.defineProperty(exports, "API_ERROR_TRANSLATIONS_MULTIPLE_SOURCE_LANG", { enumerable: true, get: function () { return errors_1.API_ERROR_TRANSLATIONS_MULTIPLE_SOURCE_LANG; } });
242
+ Object.defineProperty(exports, "API_ERROR_UNKNOWN", { enumerable: true, get: function () { return errors_1.API_ERROR_UNKNOWN; } });
243
+ Object.defineProperty(exports, "API_ERROR_UNKNOWN_APPLICATION", { enumerable: true, get: function () { return errors_1.API_ERROR_UNKNOWN_APPLICATION; } });
244
+ Object.defineProperty(exports, "API_ERROR_UNKNOWN_GROUP", { enumerable: true, get: function () { return errors_1.API_ERROR_UNKNOWN_GROUP; } });
245
+ Object.defineProperty(exports, "API_ERROR_UNKNOWN_USER", { enumerable: true, get: function () { return errors_1.API_ERROR_UNKNOWN_USER; } });
246
+ Object.defineProperty(exports, "API_ERROR_UPLOAD", { enumerable: true, get: function () { return errors_1.API_ERROR_UPLOAD; } });
247
+ Object.defineProperty(exports, "API_ERROR_USER_BANNED", { enumerable: true, get: function () { return errors_1.API_ERROR_USER_BANNED; } });
248
+ Object.defineProperty(exports, "API_ERROR_USER_DEACTIVATED", { enumerable: true, get: function () { return errors_1.API_ERROR_USER_DEACTIVATED; } });
249
+ Object.defineProperty(exports, "API_ERROR_USER_DELETED", { enumerable: true, get: function () { return errors_1.API_ERROR_USER_DELETED; } });
250
+ Object.defineProperty(exports, "API_ERROR_USER_SERVICE_DEACTIVATED", { enumerable: true, get: function () { return errors_1.API_ERROR_USER_SERVICE_DEACTIVATED; } });
251
+ Object.defineProperty(exports, "API_ERROR_VIDEO_ALREADY_ADDED", { enumerable: true, get: function () { return errors_1.API_ERROR_VIDEO_ALREADY_ADDED; } });
252
+ Object.defineProperty(exports, "API_ERROR_VIDEO_COMMENTS_CLOSED", { enumerable: true, get: function () { return errors_1.API_ERROR_VIDEO_COMMENTS_CLOSED; } });
253
+ Object.defineProperty(exports, "API_ERROR_VOTES_PERMISSION", { enumerable: true, get: function () { return errors_1.API_ERROR_VOTES_PERMISSION; } });
254
+ Object.defineProperty(exports, "API_ERROR_WAIT", { enumerable: true, get: function () { return errors_1.API_ERROR_WAIT; } });
255
+ Object.defineProperty(exports, "API_ERROR_WALL_ACCESS_ADD_REPLY", { enumerable: true, get: function () { return errors_1.API_ERROR_WALL_ACCESS_ADD_REPLY; } });
256
+ Object.defineProperty(exports, "API_ERROR_WALL_ACCESS_COMMENT", { enumerable: true, get: function () { return errors_1.API_ERROR_WALL_ACCESS_COMMENT; } });
257
+ Object.defineProperty(exports, "API_ERROR_WALL_ACCESS_POST", { enumerable: true, get: function () { return errors_1.API_ERROR_WALL_ACCESS_POST; } });
258
+ Object.defineProperty(exports, "API_ERROR_WALL_ACCESS_REPLIES", { enumerable: true, get: function () { return errors_1.API_ERROR_WALL_ACCESS_REPLIES; } });
259
+ Object.defineProperty(exports, "API_ERROR_WALL_ADD_POST", { enumerable: true, get: function () { return errors_1.API_ERROR_WALL_ADD_POST; } });
260
+ Object.defineProperty(exports, "API_ERROR_WALL_ADS_POST_LIMIT_REACHED", { enumerable: true, get: function () { return errors_1.API_ERROR_WALL_ADS_POST_LIMIT_REACHED; } });
261
+ Object.defineProperty(exports, "API_ERROR_WALL_ADS_PUBLISHED", { enumerable: true, get: function () { return errors_1.API_ERROR_WALL_ADS_PUBLISHED; } });
262
+ Object.defineProperty(exports, "API_ERROR_WALL_CHECK_LINK_CANT_DETERMINE_SOURCE", { enumerable: true, get: function () { return errors_1.API_ERROR_WALL_CHECK_LINK_CANT_DETERMINE_SOURCE; } });
263
+ Object.defineProperty(exports, "API_ERROR_WALL_COMMENT_NOT_DELETED", { enumerable: true, get: function () { return errors_1.API_ERROR_WALL_COMMENT_NOT_DELETED; } });
264
+ Object.defineProperty(exports, "API_ERROR_WALL_DONUT", { enumerable: true, get: function () { return errors_1.API_ERROR_WALL_DONUT; } });
265
+ Object.defineProperty(exports, "API_ERROR_WALL_LINKS_FORBIDDEN", { enumerable: true, get: function () { return errors_1.API_ERROR_WALL_LINKS_FORBIDDEN; } });
266
+ Object.defineProperty(exports, "API_ERROR_WALL_REPLY_OWNER_FLOOD", { enumerable: true, get: function () { return errors_1.API_ERROR_WALL_REPLY_OWNER_FLOOD; } });
267
+ Object.defineProperty(exports, "API_ERROR_WALL_TOO_MANY_RECIPIENTS", { enumerable: true, get: function () { return errors_1.API_ERROR_WALL_TOO_MANY_RECIPIENTS; } });
268
+ Object.defineProperty(exports, "API_ERROR_WEIGHTED_FLOOD", { enumerable: true, get: function () { return errors_1.API_ERROR_WEIGHTED_FLOOD; } });
269
+ var ads_1 = require("./methods/ads");
270
+ Object.defineProperty(exports, "AdsRemoveTargetContactsResponseResultEnumNames", { enumerable: true, get: function () { return ads_1.AdsRemoveTargetContactsResponseResultEnumNames; } });
271
+ var auth_1 = require("./methods/auth");
272
+ Object.defineProperty(exports, "AuthRestoreResponseSuccessEnumNames", { enumerable: true, get: function () { return auth_1.AuthRestoreResponseSuccessEnumNames; } });
273
+ var friends_1 = require("./methods/friends");
274
+ Object.defineProperty(exports, "FriendsAddResponseEnumNames", { enumerable: true, get: function () { return friends_1.FriendsAddResponseEnumNames; } });
275
+ Object.defineProperty(exports, "FriendsDeleteResponseFriendDeletedEnumNames", { enumerable: true, get: function () { return friends_1.FriendsDeleteResponseFriendDeletedEnumNames; } });
276
+ Object.defineProperty(exports, "FriendsDeleteResponseInRequestDeletedEnumNames", { enumerable: true, get: function () { return friends_1.FriendsDeleteResponseInRequestDeletedEnumNames; } });
277
+ Object.defineProperty(exports, "FriendsDeleteResponseOutRequestDeletedEnumNames", { enumerable: true, get: function () { return friends_1.FriendsDeleteResponseOutRequestDeletedEnumNames; } });
278
+ Object.defineProperty(exports, "FriendsDeleteResponseSuggestionDeletedEnumNames", { enumerable: true, get: function () { return friends_1.FriendsDeleteResponseSuggestionDeletedEnumNames; } });
279
+ var AdsAdApproved_1 = require("./objects/ads/AdsAdApproved");
280
+ Object.defineProperty(exports, "AdsAdApprovedEnumNames", { enumerable: true, get: function () { return AdsAdApproved_1.AdsAdApprovedEnumNames; } });
281
+ var AdsAdCostType_1 = require("./objects/ads/AdsAdCostType");
282
+ Object.defineProperty(exports, "AdsAdCostTypeEnumNames", { enumerable: true, get: function () { return AdsAdCostType_1.AdsAdCostTypeEnumNames; } });
283
+ var AdsAdStatus_1 = require("./objects/ads/AdsAdStatus");
284
+ Object.defineProperty(exports, "AdsAdStatusEnumNames", { enumerable: true, get: function () { return AdsAdStatus_1.AdsAdStatusEnumNames; } });
285
+ var AdsCampaignStatus_1 = require("./objects/ads/AdsCampaignStatus");
286
+ Object.defineProperty(exports, "AdsCampaignStatusEnumNames", { enumerable: true, get: function () { return AdsCampaignStatus_1.AdsCampaignStatusEnumNames; } });
287
+ var AdsCriteriaSex_1 = require("./objects/ads/AdsCriteriaSex");
288
+ Object.defineProperty(exports, "AdsCriteriaSexEnumNames", { enumerable: true, get: function () { return AdsCriteriaSex_1.AdsCriteriaSexEnumNames; } });
289
+ var AppsAppLeaderboardType_1 = require("./objects/apps/AppsAppLeaderboardType");
290
+ Object.defineProperty(exports, "AppsAppLeaderboardTypeEnumNames", { enumerable: true, get: function () { return AppsAppLeaderboardType_1.AppsAppLeaderboardTypeEnumNames; } });
291
+ var BaseSex_1 = require("./objects/base/BaseSex");
292
+ Object.defineProperty(exports, "BaseSexEnumNames", { enumerable: true, get: function () { return BaseSex_1.BaseSexEnumNames; } });
293
+ var BoardDefaultOrder_1 = require("./objects/board/BoardDefaultOrder");
294
+ Object.defineProperty(exports, "BoardDefaultOrderEnumNames", { enumerable: true, get: function () { return BoardDefaultOrder_1.BoardDefaultOrderEnumNames; } });
295
+ var BugtrackerBugreport_1 = require("./objects/bugtracker/BugtrackerBugreport");
296
+ Object.defineProperty(exports, "BugtrackerBugreportStatusAutoUpdateReasonEnumNames", { enumerable: true, get: function () { return BugtrackerBugreport_1.BugtrackerBugreportStatusAutoUpdateReasonEnumNames; } });
297
+ var FriendsFriendStatusStatus_1 = require("./objects/friends/FriendsFriendStatusStatus");
298
+ Object.defineProperty(exports, "FriendsFriendStatusStatusEnumNames", { enumerable: true, get: function () { return FriendsFriendStatusStatus_1.FriendsFriendStatusStatusEnumNames; } });
299
+ var GiftsGiftPrivacy_1 = require("./objects/gifts/GiftsGiftPrivacy");
300
+ Object.defineProperty(exports, "GiftsGiftPrivacyEnumNames", { enumerable: true, get: function () { return GiftsGiftPrivacy_1.GiftsGiftPrivacyEnumNames; } });
301
+ var GroupsBanInfoReason_1 = require("./objects/groups/GroupsBanInfoReason");
302
+ Object.defineProperty(exports, "GroupsBanInfoReasonEnumNames", { enumerable: true, get: function () { return GroupsBanInfoReason_1.GroupsBanInfoReasonEnumNames; } });
303
+ var GroupsGroupAccess_1 = require("./objects/groups/GroupsGroupAccess");
304
+ Object.defineProperty(exports, "GroupsGroupAccessEnumNames", { enumerable: true, get: function () { return GroupsGroupAccess_1.GroupsGroupAccessEnumNames; } });
305
+ var GroupsGroupAdminLevel_1 = require("./objects/groups/GroupsGroupAdminLevel");
306
+ Object.defineProperty(exports, "GroupsGroupAdminLevelEnumNames", { enumerable: true, get: function () { return GroupsGroupAdminLevel_1.GroupsGroupAdminLevelEnumNames; } });
307
+ var GroupsGroupAgeLimits_1 = require("./objects/groups/GroupsGroupAgeLimits");
308
+ Object.defineProperty(exports, "GroupsGroupAgeLimitsEnumNames", { enumerable: true, get: function () { return GroupsGroupAgeLimits_1.GroupsGroupAgeLimitsEnumNames; } });
309
+ var GroupsGroupAudio_1 = require("./objects/groups/GroupsGroupAudio");
310
+ Object.defineProperty(exports, "GroupsGroupAudioEnumNames", { enumerable: true, get: function () { return GroupsGroupAudio_1.GroupsGroupAudioEnumNames; } });
311
+ var GroupsGroupDocs_1 = require("./objects/groups/GroupsGroupDocs");
312
+ Object.defineProperty(exports, "GroupsGroupDocsEnumNames", { enumerable: true, get: function () { return GroupsGroupDocs_1.GroupsGroupDocsEnumNames; } });
313
+ var GroupsGroupFull_1 = require("./objects/groups/GroupsGroupFull");
314
+ Object.defineProperty(exports, "GroupsGroupFullWallEnumNames", { enumerable: true, get: function () { return GroupsGroupFull_1.GroupsGroupFullWallEnumNames; } });
315
+ var GroupsGroupFullAgeLimits_1 = require("./objects/groups/GroupsGroupFullAgeLimits");
316
+ Object.defineProperty(exports, "GroupsGroupFullAgeLimitsEnumNames", { enumerable: true, get: function () { return GroupsGroupFullAgeLimits_1.GroupsGroupFullAgeLimitsEnumNames; } });
317
+ var GroupsGroupFullMemberStatus_1 = require("./objects/groups/GroupsGroupFullMemberStatus");
318
+ Object.defineProperty(exports, "GroupsGroupFullMemberStatusEnumNames", { enumerable: true, get: function () { return GroupsGroupFullMemberStatus_1.GroupsGroupFullMemberStatusEnumNames; } });
319
+ var GroupsGroupFullSection_1 = require("./objects/groups/GroupsGroupFullSection");
320
+ Object.defineProperty(exports, "GroupsGroupFullSectionEnumNames", { enumerable: true, get: function () { return GroupsGroupFullSection_1.GroupsGroupFullSectionEnumNames; } });
321
+ var GroupsGroupIsClosed_1 = require("./objects/groups/GroupsGroupIsClosed");
322
+ Object.defineProperty(exports, "GroupsGroupIsClosedEnumNames", { enumerable: true, get: function () { return GroupsGroupIsClosed_1.GroupsGroupIsClosedEnumNames; } });
323
+ var GroupsGroupMarketCurrency_1 = require("./objects/groups/GroupsGroupMarketCurrency");
324
+ Object.defineProperty(exports, "GroupsGroupMarketCurrencyEnumNames", { enumerable: true, get: function () { return GroupsGroupMarketCurrency_1.GroupsGroupMarketCurrencyEnumNames; } });
325
+ var GroupsGroupPhotos_1 = require("./objects/groups/GroupsGroupPhotos");
326
+ Object.defineProperty(exports, "GroupsGroupPhotosEnumNames", { enumerable: true, get: function () { return GroupsGroupPhotos_1.GroupsGroupPhotosEnumNames; } });
327
+ var GroupsGroupSubject_1 = require("./objects/groups/GroupsGroupSubject");
328
+ Object.defineProperty(exports, "GroupsGroupSubjectEnumNames", { enumerable: true, get: function () { return GroupsGroupSubject_1.GroupsGroupSubjectEnumNames; } });
329
+ var GroupsGroupSuggestedPrivacy_1 = require("./objects/groups/GroupsGroupSuggestedPrivacy");
330
+ Object.defineProperty(exports, "GroupsGroupSuggestedPrivacyEnumNames", { enumerable: true, get: function () { return GroupsGroupSuggestedPrivacy_1.GroupsGroupSuggestedPrivacyEnumNames; } });
331
+ var GroupsGroupTopics_1 = require("./objects/groups/GroupsGroupTopics");
332
+ Object.defineProperty(exports, "GroupsGroupTopicsEnumNames", { enumerable: true, get: function () { return GroupsGroupTopics_1.GroupsGroupTopicsEnumNames; } });
333
+ var GroupsGroupVideo_1 = require("./objects/groups/GroupsGroupVideo");
334
+ Object.defineProperty(exports, "GroupsGroupVideoEnumNames", { enumerable: true, get: function () { return GroupsGroupVideo_1.GroupsGroupVideoEnumNames; } });
335
+ var GroupsGroupWall_1 = require("./objects/groups/GroupsGroupWall");
336
+ Object.defineProperty(exports, "GroupsGroupWallEnumNames", { enumerable: true, get: function () { return GroupsGroupWall_1.GroupsGroupWallEnumNames; } });
337
+ var GroupsGroupWiki_1 = require("./objects/groups/GroupsGroupWiki");
338
+ Object.defineProperty(exports, "GroupsGroupWikiEnumNames", { enumerable: true, get: function () { return GroupsGroupWiki_1.GroupsGroupWikiEnumNames; } });
339
+ var MarketMarketAlbum_1 = require("./objects/market/MarketMarketAlbum");
340
+ Object.defineProperty(exports, "MarketMarketAlbumTypeEnumNames", { enumerable: true, get: function () { return MarketMarketAlbum_1.MarketMarketAlbumTypeEnumNames; } });
341
+ var MarketMarketItemAvailability_1 = require("./objects/market/MarketMarketItemAvailability");
342
+ Object.defineProperty(exports, "MarketMarketItemAvailabilityEnumNames", { enumerable: true, get: function () { return MarketMarketItemAvailability_1.MarketMarketItemAvailabilityEnumNames; } });
343
+ var MarketPrice_1 = require("./objects/market/MarketPrice");
344
+ Object.defineProperty(exports, "MarketPricePriceTypeEnumNames", { enumerable: true, get: function () { return MarketPrice_1.MarketPricePriceTypeEnumNames; } });
345
+ Object.defineProperty(exports, "MarketPricePriceUnitEnumNames", { enumerable: true, get: function () { return MarketPrice_1.MarketPricePriceUnitEnumNames; } });
346
+ var MarketServicesViewType_1 = require("./objects/market/MarketServicesViewType");
347
+ Object.defineProperty(exports, "MarketServicesViewTypeEnumNames", { enumerable: true, get: function () { return MarketServicesViewType_1.MarketServicesViewTypeEnumNames; } });
348
+ var NewsfeedCommentsItemTypePost_1 = require("./objects/newsfeed/NewsfeedCommentsItemTypePost");
349
+ Object.defineProperty(exports, "NewsfeedCommentsItemTypePostTopicIdEnumNames", { enumerable: true, get: function () { return NewsfeedCommentsItemTypePost_1.NewsfeedCommentsItemTypePostTopicIdEnumNames; } });
350
+ var NewsfeedItemWallpost_1 = require("./objects/newsfeed/NewsfeedItemWallpost");
351
+ Object.defineProperty(exports, "NewsfeedItemWallpostTopicIdEnumNames", { enumerable: true, get: function () { return NewsfeedItemWallpost_1.NewsfeedItemWallpostTopicIdEnumNames; } });
352
+ var NotificationsSendMessageError_1 = require("./objects/notifications/NotificationsSendMessageError");
353
+ Object.defineProperty(exports, "NotificationsSendMessageErrorCodeEnumNames", { enumerable: true, get: function () { return NotificationsSendMessageError_1.NotificationsSendMessageErrorCodeEnumNames; } });
354
+ var OwnerState_1 = require("./objects/owner/OwnerState");
355
+ Object.defineProperty(exports, "OwnerStateStateEnumNames", { enumerable: true, get: function () { return OwnerState_1.OwnerStateStateEnumNames; } });
356
+ var PagesPrivacySettings_1 = require("./objects/pages/PagesPrivacySettings");
357
+ Object.defineProperty(exports, "PagesPrivacySettingsEnumNames", { enumerable: true, get: function () { return PagesPrivacySettings_1.PagesPrivacySettingsEnumNames; } });
358
+ var UsersUserRelation_1 = require("./objects/users/UsersUserRelation");
359
+ Object.defineProperty(exports, "UsersUserRelationEnumNames", { enumerable: true, get: function () { return UsersUserRelation_1.UsersUserRelationEnumNames; } });
360
+ var WallWallpostFull_1 = require("./objects/wall/WallWallpostFull");
361
+ Object.defineProperty(exports, "WallWallpostFullTopicIdEnumNames", { enumerable: true, get: function () { return WallWallpostFull_1.WallWallpostFullTopicIdEnumNames; } });
package/dist/log.js CHANGED
@@ -3,13 +3,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.consoleLogErrorAndExit = exports.consoleLogError = exports.consoleLogInfo = exports.consoleLog = void 0;
6
+ exports.consoleLog = consoleLog;
7
+ exports.consoleLogInfo = consoleLogInfo;
8
+ exports.consoleLogError = consoleLogError;
9
+ exports.consoleLogErrorAndExit = consoleLogErrorAndExit;
7
10
  const chalk_1 = __importDefault(require("chalk"));
8
11
  const util_1 = require("util");
9
12
  function getInspectArgs(args) {
10
13
  return args.map((arg) => {
11
14
  if (typeof arg === 'object') {
12
- return util_1.inspect(arg, {
15
+ return (0, util_1.inspect)(arg, {
13
16
  showHidden: false,
14
17
  depth: 10,
15
18
  colors: true,
@@ -23,17 +26,13 @@ function getInspectArgs(args) {
23
26
  function consoleLog(...args) {
24
27
  console.log(...getInspectArgs(args));
25
28
  }
26
- exports.consoleLog = consoleLog;
27
29
  function consoleLogInfo(...args) {
28
30
  console.log(`${chalk_1.default.cyanBright.bold('info')}`, ...getInspectArgs(args));
29
31
  }
30
- exports.consoleLogInfo = consoleLogInfo;
31
32
  function consoleLogError(...args) {
32
33
  console.log(`${chalk_1.default.redBright.bold('error')}`, ...getInspectArgs(args));
33
34
  }
34
- exports.consoleLogError = consoleLogError;
35
35
  function consoleLogErrorAndExit(...args) {
36
36
  consoleLogError(...args);
37
37
  process.exit(1);
38
38
  }
39
- exports.consoleLogErrorAndExit = consoleLogErrorAndExit;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This is auto-generated file, don't modify this file manually
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This is auto-generated file, don't modify this file manually
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AdsRemoveTargetContactsResponseResultEnumNames = void 0;
7
+ // ads.removeTargetContacts_response result enumNames
8
+ exports.AdsRemoveTargetContactsResponseResultEnumNames = {
9
+ OK: 1,
10
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This is auto-generated file, don't modify this file manually
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });