UNPKG

@selldone/sdk-storefront

Version:

A TypeScript SDK to connect to your shop and build a fully functional storefront and website by simply developing a frontend web application. All backend operations are seamlessly managed by the serverless Selldone solution.

14 lines (13 loc) 754 B
import type { Shop } from "../../models/shop/shop.model"; import { Currency } from "../../enums/payment/Currency"; import type { Campaign } from "../../models/shop/campaign/campaign.model"; export declare class CampaignHelper { static isSearch(net: string): boolean; static isSocialNetwork(net: string): boolean; static GetTotalAmount(shop: Shop, to_currency: keyof typeof Currency, payment: Record<string, number>): number; static GetTotalSocials(campaign: Campaign): number; static GetSocialsOnly(campaign: Campaign, limit?: number): Record<string, number>; static GetTotalDirects(campaign: Campaign): number; static GetTotalOrganicSearch(campaign: Campaign): number; static GetTotalOther(campaign: Campaign): number; }