lootably-offers-api-types
Version:
TypeScript type definitions for Lootably's Offers API
42 lines (41 loc) • 1.2 kB
TypeScript
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;
};
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;
};
previewURL?: string;
bundlePackageID?: string;
appStoreCategories?: string[];
appStoreDescription?: string;
paymentModel?: PaymentModel;
restrictions?: OfferRestrictions;
stateTargetingByCountryCode?: {
[countryCode: string]: {
includeStateCodes: string[];
};
};
};
export default APIMultistepOffer;