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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user