feat: update preferredLocations field to List<String> across staff-related entities and mutations

- Changed preferredLocations from AnyValue to List<String> in GetStaffByIdStaff, GetStaffByUserIdStaffs, ListStaffStaffs, and UpdateStaffVariablesBuilder classes.
- Updated JSON serialization/deserialization for preferredLocations to handle List<String>.
- Modified Staff entity to include preferredLocations as List<String>.
- Adjusted ProfileSetupBloc and PersonalInfoBloc to accommodate changes in preferredLocations.
- Updated PersonalInfoRepositoryImpl to handle preferredLocations as List<String>.
- Refactored PersonalInfoContent and PersonalInfoForm to use locations instead of address.
- Updated GraphQL mutations and schema to reflect the new List<String> type for preferredLocations.
This commit is contained in:
Achintha Isuru
2026-01-27 02:17:52 -05:00
parent 3e7ddc446d
commit 536b020c52
17 changed files with 18052 additions and 18019 deletions

View File

@@ -44,6 +44,7 @@ class Staff extends Equatable {
this.noShowCount,
this.cancellationCount,
this.reliabilityScore,
this.preferredLocations,
});
/// Unique identifier for the staff profile.
final String id;
@@ -89,6 +90,9 @@ class Staff extends Equatable {
/// The reliability score (0-100).
final int? reliabilityScore;
/// Preferred work locations.
final List<String>? preferredLocations;
@override
List<Object?> get props => <Object?>[
id,
@@ -105,5 +109,6 @@ class Staff extends Equatable {
noShowCount,
cancellationCount,
reliabilityScore,
preferredLocations,
];
}