Write a CalendarFetchResult to data/calendar/{from}_{to}.json.
The file is an object with { manifest, events } so that consumers can load a single file and get both the data and the provenance record. Including to in the filename prevents collisions when the same from date is fetched with different ranges (e.g. week-ahead vs month-ahead).
Write a
CalendarFetchResulttodata/calendar/{from}_{to}.json.The file is an object with
{ manifest, events }so that consumers can load a single file and get both the data and the provenance record. Includingtoin the filename prevents collisions when the samefromdate is fetched with different ranges (e.g. week-ahead vs month-ahead).