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

@@ -17,7 +17,7 @@ mutation CreateStaff(
$bio: String
$skills: Any
$industries: Any
$preferredLocations: Any
$preferredLocations: [String!]
$maxDistanceMiles: Int
$languages: Any
$itemsAttire: Any
@@ -108,7 +108,7 @@ mutation UpdateStaff(
$bio: String
$skills: Any
$industries: Any
$preferredLocations: Any
$preferredLocations: [String!]
$maxDistanceMiles: Int
$languages: Any
$itemsAttire: Any

View File

@@ -63,7 +63,7 @@ type Staff @table(name: "staffs") {
bio: String
skills: Any #changed it for staffRole
industries: Any
preferredLocations: Any
preferredLocations: [String]
maxDistanceMiles: Int
languages: Any
itemsAttire: Any