modifications for hub in create one time order

This commit is contained in:
José Salazar
2026-01-29 16:08:44 -05:00
parent 7e17903942
commit 191ba40393
19 changed files with 18298 additions and 17645 deletions

View File

@@ -1,9 +1,9 @@
# Basic Usage
```dart
ExampleConnector.instance.getMyTasks(getMyTasksVariables).execute();
ExampleConnector.instance.getMemberTaskByIdKey(getMemberTaskByIdKeyVariables).execute();
ExampleConnector.instance.getMemberTasksByTaskId(getMemberTasksByTaskIdVariables).execute();
ExampleConnector.instance.CreateCertificate(createCertificateVariables).execute();
ExampleConnector.instance.UpdateCertificate(updateCertificateVariables).execute();
ExampleConnector.instance.DeleteCertificate(deleteCertificateVariables).execute();
ExampleConnector.instance.listOrders(listOrdersVariables).execute();
ExampleConnector.instance.getOrderById(getOrderByIdVariables).execute();
ExampleConnector.instance.getOrdersByBusinessId(getOrdersByBusinessIdVariables).execute();
@@ -23,8 +23,8 @@ Optional fields can be discovered based on classes that have `Optional` object t
This is an example of a mutation with an optional field:
```dart
await ExampleConnector.instance.updateLevel({ ... })
.name(...)
await ExampleConnector.instance.listTeamHubsByOwnerId({ ... })
.offset(...)
.execute();
```

View File

@@ -12,6 +12,11 @@ class CreateShiftVariablesBuilder {
Optional<String> _locationAddress = Optional.optional(nativeFromJson, nativeToJson);
Optional<double> _latitude = Optional.optional(nativeFromJson, nativeToJson);
Optional<double> _longitude = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _placeId = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _city = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _state = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _street = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _country = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _description = Optional.optional(nativeFromJson, nativeToJson);
Optional<ShiftStatus> _status = Optional.optional((data) => ShiftStatus.values.byName(data), enumSerializer);
Optional<int> _workersNeeded = Optional.optional(nativeFromJson, nativeToJson);
@@ -57,6 +62,26 @@ class CreateShiftVariablesBuilder {
_longitude.value = t;
return this;
}
CreateShiftVariablesBuilder placeId(String? t) {
_placeId.value = t;
return this;
}
CreateShiftVariablesBuilder city(String? t) {
_city.value = t;
return this;
}
CreateShiftVariablesBuilder state(String? t) {
_state.value = t;
return this;
}
CreateShiftVariablesBuilder street(String? t) {
_street.value = t;
return this;
}
CreateShiftVariablesBuilder country(String? t) {
_country.value = t;
return this;
}
CreateShiftVariablesBuilder description(String? t) {
_description.value = t;
return this;
@@ -98,7 +123,7 @@ class CreateShiftVariablesBuilder {
}
MutationRef<CreateShiftData, CreateShiftVariables> ref() {
CreateShiftVariables vars= CreateShiftVariables(title: title,orderId: orderId,date: _date,startTime: _startTime,endTime: _endTime,hours: _hours,cost: _cost,location: _location,locationAddress: _locationAddress,latitude: _latitude,longitude: _longitude,description: _description,status: _status,workersNeeded: _workersNeeded,filled: _filled,filledAt: _filledAt,managers: _managers,durationDays: _durationDays,createdBy: _createdBy,);
CreateShiftVariables vars= CreateShiftVariables(title: title,orderId: orderId,date: _date,startTime: _startTime,endTime: _endTime,hours: _hours,cost: _cost,location: _location,locationAddress: _locationAddress,latitude: _latitude,longitude: _longitude,placeId: _placeId,city: _city,state: _state,street: _street,country: _country,description: _description,status: _status,workersNeeded: _workersNeeded,filled: _filled,filledAt: _filledAt,managers: _managers,durationDays: _durationDays,createdBy: _createdBy,);
return _dataConnect.mutation("createShift", dataDeserializer, varsSerializer, vars);
}
}
@@ -184,6 +209,11 @@ class CreateShiftVariables {
late final Optional<String>locationAddress;
late final Optional<double>latitude;
late final Optional<double>longitude;
late final Optional<String>placeId;
late final Optional<String>city;
late final Optional<String>state;
late final Optional<String>street;
late final Optional<String>country;
late final Optional<String>description;
late final Optional<ShiftStatus>status;
late final Optional<int>workersNeeded;
@@ -237,6 +267,26 @@ class CreateShiftVariables {
longitude.value = json['longitude'] == null ? null : nativeFromJson<double>(json['longitude']);
placeId = Optional.optional(nativeFromJson, nativeToJson);
placeId.value = json['placeId'] == null ? null : nativeFromJson<String>(json['placeId']);
city = Optional.optional(nativeFromJson, nativeToJson);
city.value = json['city'] == null ? null : nativeFromJson<String>(json['city']);
state = Optional.optional(nativeFromJson, nativeToJson);
state.value = json['state'] == null ? null : nativeFromJson<String>(json['state']);
street = Optional.optional(nativeFromJson, nativeToJson);
street.value = json['street'] == null ? null : nativeFromJson<String>(json['street']);
country = Optional.optional(nativeFromJson, nativeToJson);
country.value = json['country'] == null ? null : nativeFromJson<String>(json['country']);
description = Optional.optional(nativeFromJson, nativeToJson);
description.value = json['description'] == null ? null : nativeFromJson<String>(json['description']);
@@ -292,6 +342,11 @@ class CreateShiftVariables {
locationAddress == otherTyped.locationAddress &&
latitude == otherTyped.latitude &&
longitude == otherTyped.longitude &&
placeId == otherTyped.placeId &&
city == otherTyped.city &&
state == otherTyped.state &&
street == otherTyped.street &&
country == otherTyped.country &&
description == otherTyped.description &&
status == otherTyped.status &&
workersNeeded == otherTyped.workersNeeded &&
@@ -303,7 +358,7 @@ class CreateShiftVariables {
}
@override
int get hashCode => Object.hashAll([title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdBy.hashCode]);
int get hashCode => Object.hashAll([title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, placeId.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdBy.hashCode]);
Map<String, dynamic> toJson() {
@@ -337,6 +392,21 @@ class CreateShiftVariables {
if(longitude.state == OptionalState.set) {
json['longitude'] = longitude.toJson();
}
if(placeId.state == OptionalState.set) {
json['placeId'] = placeId.toJson();
}
if(city.state == OptionalState.set) {
json['city'] = city.toJson();
}
if(state.state == OptionalState.set) {
json['state'] = state.toJson();
}
if(street.state == OptionalState.set) {
json['street'] = street.toJson();
}
if(country.state == OptionalState.set) {
json['country'] = country.toJson();
}
if(description.state == OptionalState.set) {
json['description'] = description.toJson();
}
@@ -376,6 +446,11 @@ class CreateShiftVariables {
required this.locationAddress,
required this.latitude,
required this.longitude,
required this.placeId,
required this.city,
required this.state,
required this.street,
required this.country,
required this.description,
required this.status,
required this.workersNeeded,

View File

@@ -61,6 +61,11 @@ class FilterShiftsShifts {
final String? locationAddress;
final double? latitude;
final double? longitude;
final String? placeId;
final String? city;
final String? state;
final String? street;
final String? country;
final String? description;
final EnumValue<ShiftStatus>? status;
final int? workersNeeded;
@@ -86,6 +91,11 @@ class FilterShiftsShifts {
locationAddress = json['locationAddress'] == null ? null : nativeFromJson<String>(json['locationAddress']),
latitude = json['latitude'] == null ? null : nativeFromJson<double>(json['latitude']),
longitude = json['longitude'] == null ? null : nativeFromJson<double>(json['longitude']),
placeId = json['placeId'] == null ? null : nativeFromJson<String>(json['placeId']),
city = json['city'] == null ? null : nativeFromJson<String>(json['city']),
state = json['state'] == null ? null : nativeFromJson<String>(json['state']),
street = json['street'] == null ? null : nativeFromJson<String>(json['street']),
country = json['country'] == null ? null : nativeFromJson<String>(json['country']),
description = json['description'] == null ? null : nativeFromJson<String>(json['description']),
status = json['status'] == null ? null : shiftStatusDeserializer(json['status']),
workersNeeded = json['workersNeeded'] == null ? null : nativeFromJson<int>(json['workersNeeded']),
@@ -121,6 +131,11 @@ class FilterShiftsShifts {
locationAddress == otherTyped.locationAddress &&
latitude == otherTyped.latitude &&
longitude == otherTyped.longitude &&
placeId == otherTyped.placeId &&
city == otherTyped.city &&
state == otherTyped.state &&
street == otherTyped.street &&
country == otherTyped.country &&
description == otherTyped.description &&
status == otherTyped.status &&
workersNeeded == otherTyped.workersNeeded &&
@@ -135,7 +150,7 @@ class FilterShiftsShifts {
}
@override
int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, placeId.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]);
Map<String, dynamic> toJson() {
@@ -170,6 +185,21 @@ class FilterShiftsShifts {
if (longitude != null) {
json['longitude'] = nativeToJson<double?>(longitude);
}
if (placeId != null) {
json['placeId'] = nativeToJson<String?>(placeId);
}
if (city != null) {
json['city'] = nativeToJson<String?>(city);
}
if (state != null) {
json['state'] = nativeToJson<String?>(state);
}
if (street != null) {
json['street'] = nativeToJson<String?>(street);
}
if (country != null) {
json['country'] = nativeToJson<String?>(country);
}
if (description != null) {
json['description'] = nativeToJson<String?>(description);
}
@@ -219,6 +249,11 @@ class FilterShiftsShifts {
this.locationAddress,
this.latitude,
this.longitude,
this.placeId,
this.city,
this.state,
this.street,
this.country,
this.description,
this.status,
this.workersNeeded,

View File

@@ -31,6 +31,11 @@ class GetShiftByIdShift {
final String? locationAddress;
final double? latitude;
final double? longitude;
final String? placeId;
final String? city;
final String? state;
final String? street;
final String? country;
final String? description;
final EnumValue<ShiftStatus>? status;
final int? workersNeeded;
@@ -56,6 +61,11 @@ class GetShiftByIdShift {
locationAddress = json['locationAddress'] == null ? null : nativeFromJson<String>(json['locationAddress']),
latitude = json['latitude'] == null ? null : nativeFromJson<double>(json['latitude']),
longitude = json['longitude'] == null ? null : nativeFromJson<double>(json['longitude']),
placeId = json['placeId'] == null ? null : nativeFromJson<String>(json['placeId']),
city = json['city'] == null ? null : nativeFromJson<String>(json['city']),
state = json['state'] == null ? null : nativeFromJson<String>(json['state']),
street = json['street'] == null ? null : nativeFromJson<String>(json['street']),
country = json['country'] == null ? null : nativeFromJson<String>(json['country']),
description = json['description'] == null ? null : nativeFromJson<String>(json['description']),
status = json['status'] == null ? null : shiftStatusDeserializer(json['status']),
workersNeeded = json['workersNeeded'] == null ? null : nativeFromJson<int>(json['workersNeeded']),
@@ -91,6 +101,11 @@ class GetShiftByIdShift {
locationAddress == otherTyped.locationAddress &&
latitude == otherTyped.latitude &&
longitude == otherTyped.longitude &&
placeId == otherTyped.placeId &&
city == otherTyped.city &&
state == otherTyped.state &&
street == otherTyped.street &&
country == otherTyped.country &&
description == otherTyped.description &&
status == otherTyped.status &&
workersNeeded == otherTyped.workersNeeded &&
@@ -105,7 +120,7 @@ class GetShiftByIdShift {
}
@override
int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, placeId.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]);
Map<String, dynamic> toJson() {
@@ -140,6 +155,21 @@ class GetShiftByIdShift {
if (longitude != null) {
json['longitude'] = nativeToJson<double?>(longitude);
}
if (placeId != null) {
json['placeId'] = nativeToJson<String?>(placeId);
}
if (city != null) {
json['city'] = nativeToJson<String?>(city);
}
if (state != null) {
json['state'] = nativeToJson<String?>(state);
}
if (street != null) {
json['street'] = nativeToJson<String?>(street);
}
if (country != null) {
json['country'] = nativeToJson<String?>(country);
}
if (description != null) {
json['description'] = nativeToJson<String?>(description);
}
@@ -189,6 +219,11 @@ class GetShiftByIdShift {
this.locationAddress,
this.latitude,
this.longitude,
this.placeId,
this.city,
this.state,
this.street,
this.country,
this.description,
this.status,
this.workersNeeded,

View File

@@ -51,6 +51,11 @@ class GetShiftsByBusinessIdShifts {
final String? locationAddress;
final double? latitude;
final double? longitude;
final String? placeId;
final String? city;
final String? state;
final String? street;
final String? country;
final String? description;
final EnumValue<ShiftStatus>? status;
final int? workersNeeded;
@@ -76,6 +81,11 @@ class GetShiftsByBusinessIdShifts {
locationAddress = json['locationAddress'] == null ? null : nativeFromJson<String>(json['locationAddress']),
latitude = json['latitude'] == null ? null : nativeFromJson<double>(json['latitude']),
longitude = json['longitude'] == null ? null : nativeFromJson<double>(json['longitude']),
placeId = json['placeId'] == null ? null : nativeFromJson<String>(json['placeId']),
city = json['city'] == null ? null : nativeFromJson<String>(json['city']),
state = json['state'] == null ? null : nativeFromJson<String>(json['state']),
street = json['street'] == null ? null : nativeFromJson<String>(json['street']),
country = json['country'] == null ? null : nativeFromJson<String>(json['country']),
description = json['description'] == null ? null : nativeFromJson<String>(json['description']),
status = json['status'] == null ? null : shiftStatusDeserializer(json['status']),
workersNeeded = json['workersNeeded'] == null ? null : nativeFromJson<int>(json['workersNeeded']),
@@ -111,6 +121,11 @@ class GetShiftsByBusinessIdShifts {
locationAddress == otherTyped.locationAddress &&
latitude == otherTyped.latitude &&
longitude == otherTyped.longitude &&
placeId == otherTyped.placeId &&
city == otherTyped.city &&
state == otherTyped.state &&
street == otherTyped.street &&
country == otherTyped.country &&
description == otherTyped.description &&
status == otherTyped.status &&
workersNeeded == otherTyped.workersNeeded &&
@@ -125,7 +140,7 @@ class GetShiftsByBusinessIdShifts {
}
@override
int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, placeId.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]);
Map<String, dynamic> toJson() {
@@ -160,6 +175,21 @@ class GetShiftsByBusinessIdShifts {
if (longitude != null) {
json['longitude'] = nativeToJson<double?>(longitude);
}
if (placeId != null) {
json['placeId'] = nativeToJson<String?>(placeId);
}
if (city != null) {
json['city'] = nativeToJson<String?>(city);
}
if (state != null) {
json['state'] = nativeToJson<String?>(state);
}
if (street != null) {
json['street'] = nativeToJson<String?>(street);
}
if (country != null) {
json['country'] = nativeToJson<String?>(country);
}
if (description != null) {
json['description'] = nativeToJson<String?>(description);
}
@@ -209,6 +239,11 @@ class GetShiftsByBusinessIdShifts {
this.locationAddress,
this.latitude,
this.longitude,
this.placeId,
this.city,
this.state,
this.street,
this.country,
this.description,
this.status,
this.workersNeeded,

View File

@@ -51,6 +51,11 @@ class GetShiftsByVendorIdShifts {
final String? locationAddress;
final double? latitude;
final double? longitude;
final String? placeId;
final String? city;
final String? state;
final String? street;
final String? country;
final String? description;
final EnumValue<ShiftStatus>? status;
final int? workersNeeded;
@@ -76,6 +81,11 @@ class GetShiftsByVendorIdShifts {
locationAddress = json['locationAddress'] == null ? null : nativeFromJson<String>(json['locationAddress']),
latitude = json['latitude'] == null ? null : nativeFromJson<double>(json['latitude']),
longitude = json['longitude'] == null ? null : nativeFromJson<double>(json['longitude']),
placeId = json['placeId'] == null ? null : nativeFromJson<String>(json['placeId']),
city = json['city'] == null ? null : nativeFromJson<String>(json['city']),
state = json['state'] == null ? null : nativeFromJson<String>(json['state']),
street = json['street'] == null ? null : nativeFromJson<String>(json['street']),
country = json['country'] == null ? null : nativeFromJson<String>(json['country']),
description = json['description'] == null ? null : nativeFromJson<String>(json['description']),
status = json['status'] == null ? null : shiftStatusDeserializer(json['status']),
workersNeeded = json['workersNeeded'] == null ? null : nativeFromJson<int>(json['workersNeeded']),
@@ -111,6 +121,11 @@ class GetShiftsByVendorIdShifts {
locationAddress == otherTyped.locationAddress &&
latitude == otherTyped.latitude &&
longitude == otherTyped.longitude &&
placeId == otherTyped.placeId &&
city == otherTyped.city &&
state == otherTyped.state &&
street == otherTyped.street &&
country == otherTyped.country &&
description == otherTyped.description &&
status == otherTyped.status &&
workersNeeded == otherTyped.workersNeeded &&
@@ -125,7 +140,7 @@ class GetShiftsByVendorIdShifts {
}
@override
int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, placeId.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]);
Map<String, dynamic> toJson() {
@@ -160,6 +175,21 @@ class GetShiftsByVendorIdShifts {
if (longitude != null) {
json['longitude'] = nativeToJson<double?>(longitude);
}
if (placeId != null) {
json['placeId'] = nativeToJson<String?>(placeId);
}
if (city != null) {
json['city'] = nativeToJson<String?>(city);
}
if (state != null) {
json['state'] = nativeToJson<String?>(state);
}
if (street != null) {
json['street'] = nativeToJson<String?>(street);
}
if (country != null) {
json['country'] = nativeToJson<String?>(country);
}
if (description != null) {
json['description'] = nativeToJson<String?>(description);
}
@@ -209,6 +239,11 @@ class GetShiftsByVendorIdShifts {
this.locationAddress,
this.latitude,
this.longitude,
this.placeId,
this.city,
this.state,
this.street,
this.country,
this.description,
this.status,
this.workersNeeded,

View File

@@ -41,6 +41,11 @@ class ListShiftsShifts {
final String? locationAddress;
final double? latitude;
final double? longitude;
final String? placeId;
final String? city;
final String? state;
final String? street;
final String? country;
final String? description;
final EnumValue<ShiftStatus>? status;
final int? workersNeeded;
@@ -66,6 +71,11 @@ class ListShiftsShifts {
locationAddress = json['locationAddress'] == null ? null : nativeFromJson<String>(json['locationAddress']),
latitude = json['latitude'] == null ? null : nativeFromJson<double>(json['latitude']),
longitude = json['longitude'] == null ? null : nativeFromJson<double>(json['longitude']),
placeId = json['placeId'] == null ? null : nativeFromJson<String>(json['placeId']),
city = json['city'] == null ? null : nativeFromJson<String>(json['city']),
state = json['state'] == null ? null : nativeFromJson<String>(json['state']),
street = json['street'] == null ? null : nativeFromJson<String>(json['street']),
country = json['country'] == null ? null : nativeFromJson<String>(json['country']),
description = json['description'] == null ? null : nativeFromJson<String>(json['description']),
status = json['status'] == null ? null : shiftStatusDeserializer(json['status']),
workersNeeded = json['workersNeeded'] == null ? null : nativeFromJson<int>(json['workersNeeded']),
@@ -101,6 +111,11 @@ class ListShiftsShifts {
locationAddress == otherTyped.locationAddress &&
latitude == otherTyped.latitude &&
longitude == otherTyped.longitude &&
placeId == otherTyped.placeId &&
city == otherTyped.city &&
state == otherTyped.state &&
street == otherTyped.street &&
country == otherTyped.country &&
description == otherTyped.description &&
status == otherTyped.status &&
workersNeeded == otherTyped.workersNeeded &&
@@ -115,7 +130,7 @@ class ListShiftsShifts {
}
@override
int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, placeId.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode, order.hashCode]);
Map<String, dynamic> toJson() {
@@ -150,6 +165,21 @@ class ListShiftsShifts {
if (longitude != null) {
json['longitude'] = nativeToJson<double?>(longitude);
}
if (placeId != null) {
json['placeId'] = nativeToJson<String?>(placeId);
}
if (city != null) {
json['city'] = nativeToJson<String?>(city);
}
if (state != null) {
json['state'] = nativeToJson<String?>(state);
}
if (street != null) {
json['street'] = nativeToJson<String?>(street);
}
if (country != null) {
json['country'] = nativeToJson<String?>(country);
}
if (description != null) {
json['description'] = nativeToJson<String?>(description);
}
@@ -199,6 +229,11 @@ class ListShiftsShifts {
this.locationAddress,
this.latitude,
this.longitude,
this.placeId,
this.city,
this.state,
this.street,
this.country,
this.description,
this.status,
this.workersNeeded,

View File

@@ -13,6 +13,11 @@ class UpdateShiftVariablesBuilder {
Optional<String> _locationAddress = Optional.optional(nativeFromJson, nativeToJson);
Optional<double> _latitude = Optional.optional(nativeFromJson, nativeToJson);
Optional<double> _longitude = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _placeId = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _city = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _state = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _street = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _country = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _description = Optional.optional(nativeFromJson, nativeToJson);
Optional<ShiftStatus> _status = Optional.optional((data) => ShiftStatus.values.byName(data), enumSerializer);
Optional<int> _workersNeeded = Optional.optional(nativeFromJson, nativeToJson);
@@ -65,6 +70,26 @@ class UpdateShiftVariablesBuilder {
_longitude.value = t;
return this;
}
UpdateShiftVariablesBuilder placeId(String? t) {
_placeId.value = t;
return this;
}
UpdateShiftVariablesBuilder city(String? t) {
_city.value = t;
return this;
}
UpdateShiftVariablesBuilder state(String? t) {
_state.value = t;
return this;
}
UpdateShiftVariablesBuilder street(String? t) {
_street.value = t;
return this;
}
UpdateShiftVariablesBuilder country(String? t) {
_country.value = t;
return this;
}
UpdateShiftVariablesBuilder description(String? t) {
_description.value = t;
return this;
@@ -102,7 +127,7 @@ class UpdateShiftVariablesBuilder {
}
MutationRef<UpdateShiftData, UpdateShiftVariables> ref() {
UpdateShiftVariables vars= UpdateShiftVariables(id: id,title: _title,orderId: _orderId,date: _date,startTime: _startTime,endTime: _endTime,hours: _hours,cost: _cost,location: _location,locationAddress: _locationAddress,latitude: _latitude,longitude: _longitude,description: _description,status: _status,workersNeeded: _workersNeeded,filled: _filled,filledAt: _filledAt,managers: _managers,durationDays: _durationDays,);
UpdateShiftVariables vars= UpdateShiftVariables(id: id,title: _title,orderId: _orderId,date: _date,startTime: _startTime,endTime: _endTime,hours: _hours,cost: _cost,location: _location,locationAddress: _locationAddress,latitude: _latitude,longitude: _longitude,placeId: _placeId,city: _city,state: _state,street: _street,country: _country,description: _description,status: _status,workersNeeded: _workersNeeded,filled: _filled,filledAt: _filledAt,managers: _managers,durationDays: _durationDays,);
return _dataConnect.mutation("updateShift", dataDeserializer, varsSerializer, vars);
}
}
@@ -191,6 +216,11 @@ class UpdateShiftVariables {
late final Optional<String>locationAddress;
late final Optional<double>latitude;
late final Optional<double>longitude;
late final Optional<String>placeId;
late final Optional<String>city;
late final Optional<String>state;
late final Optional<String>street;
late final Optional<String>country;
late final Optional<String>description;
late final Optional<ShiftStatus>status;
late final Optional<int>workersNeeded;
@@ -249,6 +279,26 @@ class UpdateShiftVariables {
longitude.value = json['longitude'] == null ? null : nativeFromJson<double>(json['longitude']);
placeId = Optional.optional(nativeFromJson, nativeToJson);
placeId.value = json['placeId'] == null ? null : nativeFromJson<String>(json['placeId']);
city = Optional.optional(nativeFromJson, nativeToJson);
city.value = json['city'] == null ? null : nativeFromJson<String>(json['city']);
state = Optional.optional(nativeFromJson, nativeToJson);
state.value = json['state'] == null ? null : nativeFromJson<String>(json['state']);
street = Optional.optional(nativeFromJson, nativeToJson);
street.value = json['street'] == null ? null : nativeFromJson<String>(json['street']);
country = Optional.optional(nativeFromJson, nativeToJson);
country.value = json['country'] == null ? null : nativeFromJson<String>(json['country']);
description = Optional.optional(nativeFromJson, nativeToJson);
description.value = json['description'] == null ? null : nativeFromJson<String>(json['description']);
@@ -301,6 +351,11 @@ class UpdateShiftVariables {
locationAddress == otherTyped.locationAddress &&
latitude == otherTyped.latitude &&
longitude == otherTyped.longitude &&
placeId == otherTyped.placeId &&
city == otherTyped.city &&
state == otherTyped.state &&
street == otherTyped.street &&
country == otherTyped.country &&
description == otherTyped.description &&
status == otherTyped.status &&
workersNeeded == otherTyped.workersNeeded &&
@@ -311,7 +366,7 @@ class UpdateShiftVariables {
}
@override
int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, title.hashCode, orderId.hashCode, date.hashCode, startTime.hashCode, endTime.hashCode, hours.hashCode, cost.hashCode, location.hashCode, locationAddress.hashCode, latitude.hashCode, longitude.hashCode, placeId.hashCode, city.hashCode, state.hashCode, street.hashCode, country.hashCode, description.hashCode, status.hashCode, workersNeeded.hashCode, filled.hashCode, filledAt.hashCode, managers.hashCode, durationDays.hashCode]);
Map<String, dynamic> toJson() {
@@ -350,6 +405,21 @@ class UpdateShiftVariables {
if(longitude.state == OptionalState.set) {
json['longitude'] = longitude.toJson();
}
if(placeId.state == OptionalState.set) {
json['placeId'] = placeId.toJson();
}
if(city.state == OptionalState.set) {
json['city'] = city.toJson();
}
if(state.state == OptionalState.set) {
json['state'] = state.toJson();
}
if(street.state == OptionalState.set) {
json['street'] = street.toJson();
}
if(country.state == OptionalState.set) {
json['country'] = country.toJson();
}
if(description.state == OptionalState.set) {
json['description'] = description.toJson();
}
@@ -387,6 +457,11 @@ class UpdateShiftVariables {
required this.locationAddress,
required this.latitude,
required this.longitude,
required this.placeId,
required this.city,
required this.state,
required this.street,
required this.country,
required this.description,
required this.status,
required this.workersNeeded,