(row: InviteCodeRow)
| 50 | |
| 51 | // Drop the internal audit columns (createdBy/usedBy) for the wire shape. |
| 52 | const toWire = (row: InviteCodeRow): typeof InviteCodeSchema.Type => ({ |
| 53 | id: row.id, |
| 54 | code: row.code, |
| 55 | role: row.role, |
| 56 | label: row.label, |
| 57 | createdAt: row.createdAt, |
| 58 | expiresAt: row.expiresAt, |
| 59 | usedByEmail: row.usedByEmail, |
| 60 | usedAt: row.usedAt, |
| 61 | }); |
| 62 | |
| 63 | export const AdminHandlers = HttpApiBuilder.group(AdminHttpApi, "admin", (handlers) => |
| 64 | handlers |