Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/responders/entry-responders.js
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | filters: t.list( | ||||
t.union([ | t.union([ | ||||
tShape({ | tShape({ | ||||
type: tString(calendarThreadFilterTypes.NOT_DELETED), | type: tString(calendarThreadFilterTypes.NOT_DELETED), | ||||
}), | }), | ||||
tShape({ | tShape({ | ||||
type: tString(calendarThreadFilterTypes.THREAD_LIST), | type: tString(calendarThreadFilterTypes.THREAD_LIST), | ||||
threadIDs: t.list(t.String), | threadIDs: t.list(t.String), | ||||
}), | }), | ||||
tShape({ | |||||
type: tString(calendarThreadFilterTypes.COMMUNITY), | |||||
threadIDs: t.list(t.String), | |||||
}), | |||||
]), | ]), | ||||
), | ), | ||||
}); | }); | ||||
function normalizeCalendarQuery(input: any): CalendarQuery { | function normalizeCalendarQuery(input: any): CalendarQuery { | ||||
if (input.filters) { | if (input.filters) { | ||||
return { | return { | ||||
startDate: input.startDate, | startDate: input.startDate, | ||||
▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines |