Skip to content

Commit

Permalink
Merge pull request #402 from VKCOM/evgeniy.evdokimov/task/add-missing…
Browse files Browse the repository at this point in the history
…-ad-types

fix: add missing banner ad types
  • Loading branch information
evg-evdokimov committed Jul 13, 2023
2 parents 19a2a8e + 61ff351 commit cb18f8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/types/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,8 @@ export type VKWebAppShowBannerAdResponse = {

export type VKWebAppCheckBannerAdResponse = VKWebAppShowBannerAdResponse;
export type VKWebAppHideBannerAdResponse = VKWebAppShowBannerAdResponse;
export type VKWebAppBannerAdUpdatedResponse = VKWebAppShowBannerAdResponse;
export type VKWebAppBannerAdClosedByUserResponse = Omit<VKWebAppShowBannerAdResponse, 'result'>;

export type VKWebAppShowOrderBoxResponse = {
status: OrderBoxShowingStatus;
Expand Down Expand Up @@ -1184,6 +1186,8 @@ export type ReceiveDataMap = {
VKWebAppCheckBannerAd: VKWebAppCheckBannerAdResponse;
VKWebAppHideBannerAd: VKWebAppHideBannerAdResponse;
VKWebAppShowBannerAd: VKWebAppShowBannerAdResponse;
VKWebAppBannerAdUpdated: VKWebAppBannerAdUpdatedResponse;
VKWebAppBannerAdClosedByUser: VKWebAppBannerAdClosedByUserResponse;
VKWebAppShowNativeAds: { result: true };
VKWebAppCheckNativeAds: { result: boolean };
VKWebAppShowOrderBox: VKWebAppShowOrderBoxResponse;
Expand Down

0 comments on commit cb18f8f

Please sign in to comment.