(
options: CameraEventOptions | (HistoryOptions & { accountId: string }),
)
| 96 | } |
| 97 | |
| 98 | export function getSearchQueryString( |
| 99 | options: CameraEventOptions | (HistoryOptions & { accountId: string }), |
| 100 | ) { |
| 101 | const queryString = Object.entries(options) |
| 102 | .map(([key, value]) => { |
| 103 | if (value === undefined) { |
| 104 | return '' |
| 105 | } |
| 106 | |
| 107 | if (key === 'olderThanId') { |
| 108 | key = 'pagination_key' |
| 109 | } |
| 110 | |
| 111 | return `${key}=${value}` |
| 112 | }) |
| 113 | .filter((x) => x) |
| 114 | .join('&') |
| 115 | |
| 116 | return queryString.length ? `?${queryString}` : '' |
| 117 | } |
| 118 | |
| 119 | export function cleanSnapshotUuid(uuid?: string | null) { |
| 120 | if (!uuid) { |
no outgoing calls
no test coverage detected