50e4f43738
Implement company AI onboarding/recommendation models, services, repository, and tender UI integration with supporting tests. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
661 B
Dart
20 lines
661 B
Dart
// ignore_for_file: invalid_annotation_target
|
|
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'onboarding_data.freezed.dart';
|
|
part 'onboarding_data.g.dart';
|
|
|
|
/// Payload returned by `POST /api/v1/onboarding`.
|
|
///
|
|
/// Onboarding is asynchronous on the AI side, so the only field is a coarse
|
|
/// [status] (e.g. `started`). Recommendations may stay empty until the AI
|
|
/// service finishes indexing.
|
|
@freezed
|
|
abstract class OnboardingData with _$OnboardingData {
|
|
const factory OnboardingData({required String? status}) = _OnboardingData;
|
|
|
|
factory OnboardingData.fromJson(Map<String, dynamic> json) =>
|
|
_$OnboardingDataFromJson(json);
|
|
}
|