UNPKG

@mikezimm/fps-core-v7

Version:

Library of reusable core interfaces, types and constants migrated from fps-library-v2

103 lines 2.93 kB
/** * This standard was started with eXTreme Storage webpart */ import { ISimpleLink } from "../../../../logic/Links/interfaces/ISimpleLink"; import { IAnySourceItem } from "../../../molecules/AnyContent/IAnyContent"; /** * Interface used for saveErrorToLog and is a baseline for larger IZSentAnalytics used in webparts */ export interface IZMinErrorAnalytics { __metadata?: { type: string; }; Title: string; Result: string; Setting?: string; zzzText1?: string; zzzText2?: string; zzzText3?: string; zzzText4?: string; zzzText5?: string; zzzText6?: string; zzzText7?: string; zzzText8?: string; fetch?: number; process?: number; zzzNumber1?: number; zzzNumber2?: number; zzzNumber3?: number; zzzNumber4?: number; zzzNumber5?: number; zzzNumber6?: number; zzzNumber7?: number; getParams?: string; PageLink?: ISimpleLink; zzzRichText1?: any; zzzRichText2?: any; zzzRichText3?: any; } /** * IZLoadAnalytics can be created when the webpart loads the data so it's easy to pass */ export interface IZLoadAnalytics { SiteID: string; WebID: string; SiteTitle: string; ListID: string; ListTitle: string; TargetSite?: string; TargetList?: string; TargetItem?: string; ItemTitle?: string; } /** * IZSentAnalytics can be created based on IZLoadAnalytics when the webpart generates final data to save */ export interface IZSentAnalytics extends IZMinErrorAnalytics { __metadata?: { type: string; }; loadProperties: IZLoadAnalytics; performance?: any; FPSUser?: string; FPSProps?: any; FetchInfo?: any; AnalyticsVersion?: string; CodeVersion?: string; language?: string; TargetList?: ISimpleLink; SiteLink?: ISimpleLink; TargetItem?: ISimpleLink; } /** * This contains properties automatically added based on the current url */ export interface IZFullAnalytics extends IAnySourceItem, IZSentAnalytics { /** * Added duplicate here to resolve typing error * Interface 'IZFullAnalytics' cannot simultaneously extend types 'IAnySourceItem' and 'IZSentAnalytics'. Named property 'Title' of types 'IAnySourceItem' and 'IZSentAnalytics' are not identical.ts(2320) */ Title: string; loadProperties: any; CollectionUrl?: string; PageURL: string; getParams?: string; PageLink?: ISimpleLink; SiteLink?: ISimpleLink; language?: string; SiteID: string; WebID: string; SiteTitle: string; ListID: string; ListTitle: string; TargetSite?: ISimpleLink; TargetList?: ISimpleLink; memory: string; browser: string; JSHeapSize: number; screen: string; screenSize: string; device: string; } //# sourceMappingURL=analytics.d.ts.map