(projectId: string)
| 171 | } |
| 172 | |
| 173 | export async function getGroupTypes(projectId: string): Promise<string[]> { |
| 174 | const rows = await chQuery<{ type: string }>(` |
| 175 | SELECT DISTINCT type |
| 176 | FROM ${TABLE_NAMES.groups} FINAL |
| 177 | WHERE project_id = ${sqlstring.escape(projectId)} |
| 178 | AND deleted = 0 |
| 179 | `); |
| 180 | return rows.map((r) => r.type); |
| 181 | } |
| 182 | |
| 183 | export async function createGroup(input: IServiceUpsertGroup) { |
| 184 | await upsertGroup(input); |
no test coverage detected