UNPKG

lootably-offers-api-types

Version:

TypeScript type definitions for Lootably's Offers API

49 lines (48 loc) 1.38 kB
import type Category from '../dependencies/Category'; import type Device from '../dependencies/Device'; import type PaymentModel from '../dependencies/PaymentModel'; import type OfferRestrictions from '../dependencies/OfferRestrictions'; import type ExtraCreative from '../dependencies/ExtraCreative'; type APIOfferGoal = { goalID: string; description: string; revenue: number; currencyReward: number; isOptional: boolean; minutesUntilExpiration: number; }; type APIDummyEvent = { description: string; }; type APIMultistepOffer = { type: 'multistep'; name: string; description: string; image: string; countries: string[]; offerID: string; categories: Category[]; devices: Device[]; link: string; goals: APIOfferGoal[]; conversionRate: number; extraCreatives: ExtraCreative[]; statistics: { uniqueUserCompletionsThisMonth: number; epc: number; }; probableTrackingTelemetry: boolean; previewURL?: string; bundlePackageID?: string; appStoreCategories?: string[]; appStoreDescription?: string; paymentModel?: PaymentModel; restrictions?: OfferRestrictions; dummyEvents?: APIDummyEvent[]; stateTargetingByCountryCode?: { [countryCode: string]: { includeStateCodes: string[]; }; }; }; export default APIMultistepOffer;