UNPKG

@bolttech/server-side-next

Version:

This library was generated with [Nx](https://nx.dev).

55 lines (54 loc) 2.22 kB
declare type UtmParamsType<K extends "utmSource" | "utmCampaign" | "utmMedium" | "utmContent" | "utmTransaction" | "utmTerm" | "utmTransactionId" | "utmCustomer" | "utm_source" | "utm_campaign" | "utm_medium" | "utm_content" | "utm_transaction" | "utm_term" | "utm_transaction_id" | "utm_customer", T> = { [P in K]?: T; }; export declare type GetPartnerParamsType = UtmParamsType<"utmSource" | "utmCampaign" | "utmMedium" | "utmContent" | "utmTransaction" | "utmTerm" | "utmTransactionId" | "utmCustomer" | "utm_source" | "utm_campaign" | "utm_medium" | "utm_content" | "utm_transaction" | "utm_term" | "utm_transaction_id" | "utm_customer", string | null>; export declare type PartnerDataType = { name: string; expires: number; paymentExpire: boolean; vertical: string[]; scope: string; platinum: boolean; agentId: string | number | null; partnerId: string | number | null; hasHomepage: boolean; }; export declare type PartnerExpirationType = { date: Date | null; paymentExpire: boolean; }; export declare type SingleVerticalPartnerDataType = { source: string; agentId: string | number | null; transaction: string | number | null; expires: PartnerExpirationType; scope: string; platinum: boolean; filters: any | null; partnerId?: string | number | null; }; export declare type UtmVerticalType = { source: string; campaign: string | null; medium: string | null; content: string | null; term: string | null; transaction: string | null; customer: string | null; }; export declare type UtmFromUrl = "utm_source" | "utm_campaign" | "utm_mdeium" | "utm_content" | "utm_term" | "utm_transaction" | "utm_customer"; export declare type UtmVerticalListType = Record<string, UtmVerticalType>; export declare type PartnerVerticalDataType = Record<string, SingleVerticalPartnerDataType>; export declare type GetPartnerData = { partnerData: PartnerDataType; cookie: { utm: UtmVerticalListType; }; session: { name: string; platinum: boolean; hasHomepage: boolean; partner: PartnerVerticalDataType; }; }; export {};