"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApiTokenMapper = void 0;
class ApiTokenMapper {
    static toDto(entity) {
        return {
            id: entity.id,
            provider: entity.provider,
            credential_type: entity.credential_type,
            label: entity.label,
            notes: entity.notes,
            expires_at: entity.expires_at ?? null,
            created_at: entity.created_at,
            last_used_at: entity.last_used_at,
        };
    }
    static toDtoList(entities) {
        return entities.map((entity) => this.toDto(entity));
    }
}
exports.ApiTokenMapper = ApiTokenMapper;
