UNPKG

@rr0/cms

Version:

RR0 Content Management System (CMS)

30 lines (29 loc) 1.51 kB
import { HtmlRR0Context, RR0Context } from "../RR0Context.js"; import { FileWriteConfig } from "ssg-api"; import { CityService, CmsOrganizationFactory, DepartmentService, OrganizationService, RegionService } from "../org/index.js"; import { CaseFactory } from "../science/index.js"; import { TimeTestUtil } from "../time/TimeTestUtil.js"; import { AllDataService, PeopleFactory } from "@rr0/data"; import { CountryService } from "../org/country/CountryService.js"; import { CMSContext } from "../CMSContext.js"; export declare class CMSTestUtil implements CMSContext { readonly rootDir: string; readonly outDir: string; readonly config: FileWriteConfig; readonly intlOptions: Intl.DateTimeFormatOptions; readonly dataService: AllDataService; readonly caseFactory: CaseFactory; readonly peopleFactory: PeopleFactory; readonly time: TimeTestUtil; readonly orgService: OrganizationService<any, undefined>; readonly cityService: CityService; readonly orgFactory: CmsOrganizationFactory; readonly departmentService: DepartmentService; readonly countryService: CountryService; readonly regionService: RegionService; constructor(rootDir?: string, outDir?: string, orgFiles?: string[]); newContext(inputFileName: string, contents?: string, locale?: string): RR0Context; filePath(inputFileName: string): string; newHtmlContext(inputFileName: string, contents?: string, locale?: string): HtmlRR0Context; } export declare const cmsTestUtil: CMSTestUtil;