Skip to content

Backend Import Scripts

plunkettgoogle edited this page Dec 22, 2021 · 1 revision

There are several scripts in backend/core/scripts that perform basic import operations.

Updating Availability

In the Detroit area, Many properties use RealPage to manage their data. RealPage supports exporting availability reports in xml format. The structure of the xml roughly corresponds to the output of the GetUnitList API. The import-realpages-availability-report.ts script updates the unitsSummary field of a Listing entity. You can see the options for running this script via

yarn ts-node scripts/import-realpages-availability-report.ts --help

Updating Waitlist Information

Waitlists are unique to property managers (and not maintained by RealPage). AMC provided an example waitlist report that their infrastructure generates. The import-amc-waitlist-report.ts script reads the xslx report, and updates the waitlistCurrentSize and waitlistMaxSize, similarly to the availability report. You can see the options for running this script via

yarn ts-node scripts/import-realpages-availability-report.ts --help