Files
manyangles/packages/storage/src/keys.ts
T

16 lines
511 B
TypeScript

export function originalObjectKey(eventId: string, photoId: string) {
return `events/${eventId}/photos/${photoId}/original`;
}
export function displayObjectKey(eventId: string, photoId: string) {
return `events/${eventId}/photos/${photoId}/display.jpg`;
}
export function thumbObjectKey(eventId: string, photoId: string) {
return `events/${eventId}/photos/${photoId}/thumb.jpg`;
}
export function photoObjectPrefix(eventId: string, photoId: string) {
return `events/${eventId}/photos/${photoId}/`;
}