UNPKG

@mikezimm/fps-core-v7

Version:

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

41 lines 2.21 kB
/** * 2024-09-07: Migrated to SAME FOLDER in fps-core-v7\src/components/atoms/easy-pages/interfaces\... */ import { makeid } from "../../../../logic/Strings/guids"; import { AnalyticsWeb } from "../../../../restAPIs/logging/interfaces/constants"; import { createSeriesSort } from "../../../molecules/source-props/createOrderBy"; import { prepSourceColumns } from "../../../molecules/source-props/prepSourceColumns"; import { CurrentOrigin, CurrentTenant } from "../../../molecules/source-props/WindowLocationConstants"; // import { AnalyticsWeb } from "../interfaces/constants"; // import { ISourceProps } from "../../../../../pnpjs/SourceItems/ISourceProps"; // import { createSeriesSort } from "../../../../../pnpjs/SourceItems/createOrderBy"; // import { AnalyticsWeb } from "../../../../../pnpjs/Logging/Interfaces/constants"; // import { prepSourceColumns } from "../../../../../pnpjs/SourceItems/prepSourceColumns"; // import { CurrentTenant } from "../../../../../pnpjs/SourceItems/IMinSourceFetchProps"; export function createAnalyticsSourceProps(fpsSpService, analyticsListX, analyticsWebX = AnalyticsWeb) { const key = `analytics`; const AnalyticsSourceProps = prepSourceColumns({ fpsSpService: fpsSpService, refreshId: makeid(5), key: key, defType: key, tenant: CurrentTenant, webUrl: `${CurrentOrigin}${analyticsWebX}`, webRelativeLink: `/lists/${analyticsListX}`, searchSource: key, searchSourceDesc: key, listTitle: analyticsListX, columns: ['*',], searchProps: ['ID', 'Author/Title', 'Author/Office', 'SiteTitle', 'language', 'CodeVersion'], selectThese: ['*', 'Author/Name', 'Author/Id', 'Author/Title', 'Author/Office', 'performance'], expandThese: ['Author'], isModern: true, defSearchButtons: [], orderBy: createSeriesSort('Id', false), fetchCount: 5000, performanceSettings: { label: 'analytics', updateMiliseconds: true, includeMsStr: true, op: 'fetch' }, fpsContentType: ['item'], }, ''); return AnalyticsSourceProps; } //# sourceMappingURL=createAnalyticsSourceProps.js.map