@@ -1,16 +1,16 @@
|
||||
# Basic Usage
|
||||
|
||||
```dart
|
||||
ExampleConnector.instance.createWorkforce(createWorkforceVariables).execute();
|
||||
ExampleConnector.instance.updateWorkforce(updateWorkforceVariables).execute();
|
||||
ExampleConnector.instance.deactivateWorkforce(deactivateWorkforceVariables).execute();
|
||||
ExampleConnector.instance.listInvoices(listInvoicesVariables).execute();
|
||||
ExampleConnector.instance.getInvoiceById(getInvoiceByIdVariables).execute();
|
||||
ExampleConnector.instance.listInvoicesByVendorId(listInvoicesByVendorIdVariables).execute();
|
||||
ExampleConnector.instance.listInvoicesByBusinessId(listInvoicesByBusinessIdVariables).execute();
|
||||
ExampleConnector.instance.listInvoicesByOrderId(listInvoicesByOrderIdVariables).execute();
|
||||
ExampleConnector.instance.listInvoicesByStatus(listInvoicesByStatusVariables).execute();
|
||||
ExampleConnector.instance.filterInvoices(filterInvoicesVariables).execute();
|
||||
ExampleConnector.instance.createBusiness(createBusinessVariables).execute();
|
||||
ExampleConnector.instance.updateBusiness(updateBusinessVariables).execute();
|
||||
ExampleConnector.instance.deleteBusiness(deleteBusinessVariables).execute();
|
||||
ExampleConnector.instance.listCustomRateCards().execute();
|
||||
ExampleConnector.instance.getCustomRateCardById(getCustomRateCardByIdVariables).execute();
|
||||
ExampleConnector.instance.listClientFeedbacks(listClientFeedbacksVariables).execute();
|
||||
ExampleConnector.instance.getClientFeedbackById(getClientFeedbackByIdVariables).execute();
|
||||
ExampleConnector.instance.listClientFeedbacksByBusinessId(listClientFeedbacksByBusinessIdVariables).execute();
|
||||
ExampleConnector.instance.listClientFeedbacksByVendorId(listClientFeedbacksByVendorIdVariables).execute();
|
||||
ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor(listClientFeedbacksByBusinessAndVendorVariables).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.updateVendor({ ... })
|
||||
.companyName(...)
|
||||
await ExampleConnector.instance.updateActivityLog({ ... })
|
||||
.userId(...)
|
||||
.execute();
|
||||
```
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -8,6 +8,7 @@ class CreateAccountVariablesBuilder {
|
||||
String ownerId;
|
||||
Optional<String> _accountNumber = Optional.optional(nativeFromJson, nativeToJson);
|
||||
Optional<String> _routeNumber = Optional.optional(nativeFromJson, nativeToJson);
|
||||
Optional<Timestamp> _expiryTime = Optional.optional((json) => json['expiryTime'] = Timestamp.fromJson(json['expiryTime']), defaultSerializer);
|
||||
|
||||
final FirebaseDataConnect _dataConnect; CreateAccountVariablesBuilder isPrimary(bool? t) {
|
||||
_isPrimary.value = t;
|
||||
@@ -21,6 +22,10 @@ class CreateAccountVariablesBuilder {
|
||||
_routeNumber.value = t;
|
||||
return this;
|
||||
}
|
||||
CreateAccountVariablesBuilder expiryTime(Timestamp? t) {
|
||||
_expiryTime.value = t;
|
||||
return this;
|
||||
}
|
||||
|
||||
CreateAccountVariablesBuilder(this._dataConnect, {required this.bank,required this.type,required this.last4,required this.ownerId,});
|
||||
Deserializer<CreateAccountData> dataDeserializer = (dynamic json) => CreateAccountData.fromJson(jsonDecode(json));
|
||||
@@ -30,7 +35,7 @@ class CreateAccountVariablesBuilder {
|
||||
}
|
||||
|
||||
MutationRef<CreateAccountData, CreateAccountVariables> ref() {
|
||||
CreateAccountVariables vars= CreateAccountVariables(bank: bank,type: type,last4: last4,isPrimary: _isPrimary,ownerId: ownerId,accountNumber: _accountNumber,routeNumber: _routeNumber,);
|
||||
CreateAccountVariables vars= CreateAccountVariables(bank: bank,type: type,last4: last4,isPrimary: _isPrimary,ownerId: ownerId,accountNumber: _accountNumber,routeNumber: _routeNumber,expiryTime: _expiryTime,);
|
||||
return _dataConnect.mutation("createAccount", dataDeserializer, varsSerializer, vars);
|
||||
}
|
||||
}
|
||||
@@ -112,6 +117,7 @@ class CreateAccountVariables {
|
||||
final String ownerId;
|
||||
late final Optional<String>accountNumber;
|
||||
late final Optional<String>routeNumber;
|
||||
late final Optional<Timestamp>expiryTime;
|
||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
||||
CreateAccountVariables.fromJson(Map<String, dynamic> json):
|
||||
|
||||
@@ -136,6 +142,10 @@ class CreateAccountVariables {
|
||||
routeNumber = Optional.optional(nativeFromJson, nativeToJson);
|
||||
routeNumber.value = json['routeNumber'] == null ? null : nativeFromJson<String>(json['routeNumber']);
|
||||
|
||||
|
||||
expiryTime = Optional.optional((json) => json['expiryTime'] = Timestamp.fromJson(json['expiryTime']), defaultSerializer);
|
||||
expiryTime.value = json['expiryTime'] == null ? null : Timestamp.fromJson(json['expiryTime']);
|
||||
|
||||
}
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
@@ -153,11 +163,12 @@ class CreateAccountVariables {
|
||||
isPrimary == otherTyped.isPrimary &&
|
||||
ownerId == otherTyped.ownerId &&
|
||||
accountNumber == otherTyped.accountNumber &&
|
||||
routeNumber == otherTyped.routeNumber;
|
||||
routeNumber == otherTyped.routeNumber &&
|
||||
expiryTime == otherTyped.expiryTime;
|
||||
|
||||
}
|
||||
@override
|
||||
int get hashCode => Object.hashAll([bank.hashCode, type.hashCode, last4.hashCode, isPrimary.hashCode, ownerId.hashCode, accountNumber.hashCode, routeNumber.hashCode]);
|
||||
int get hashCode => Object.hashAll([bank.hashCode, type.hashCode, last4.hashCode, isPrimary.hashCode, ownerId.hashCode, accountNumber.hashCode, routeNumber.hashCode, expiryTime.hashCode]);
|
||||
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
@@ -177,6 +188,9 @@ class CreateAccountVariables {
|
||||
if(routeNumber.state == OptionalState.set) {
|
||||
json['routeNumber'] = routeNumber.toJson();
|
||||
}
|
||||
if(expiryTime.state == OptionalState.set) {
|
||||
json['expiryTime'] = expiryTime.toJson();
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
@@ -188,6 +202,7 @@ class CreateAccountVariables {
|
||||
required this.ownerId,
|
||||
required this.accountNumber,
|
||||
required this.routeNumber,
|
||||
required this.expiryTime,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ class FilterAccountsAccounts {
|
||||
final bool? isPrimary;
|
||||
final String ownerId;
|
||||
final String? accountNumber;
|
||||
final Timestamp? expiryTime;
|
||||
final String? routeNumber;
|
||||
FilterAccountsAccounts.fromJson(dynamic json):
|
||||
|
||||
@@ -56,6 +57,7 @@ class FilterAccountsAccounts {
|
||||
isPrimary = json['isPrimary'] == null ? null : nativeFromJson<bool>(json['isPrimary']),
|
||||
ownerId = nativeFromJson<String>(json['ownerId']),
|
||||
accountNumber = json['accountNumber'] == null ? null : nativeFromJson<String>(json['accountNumber']),
|
||||
expiryTime = json['expiryTime'] == null ? null : Timestamp.fromJson(json['expiryTime']),
|
||||
routeNumber = json['routeNumber'] == null ? null : nativeFromJson<String>(json['routeNumber']);
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
@@ -74,11 +76,12 @@ class FilterAccountsAccounts {
|
||||
isPrimary == otherTyped.isPrimary &&
|
||||
ownerId == otherTyped.ownerId &&
|
||||
accountNumber == otherTyped.accountNumber &&
|
||||
expiryTime == otherTyped.expiryTime &&
|
||||
routeNumber == otherTyped.routeNumber;
|
||||
|
||||
}
|
||||
@override
|
||||
int get hashCode => Object.hashAll([id.hashCode, bank.hashCode, type.hashCode, last4.hashCode, isPrimary.hashCode, ownerId.hashCode, accountNumber.hashCode, routeNumber.hashCode]);
|
||||
int get hashCode => Object.hashAll([id.hashCode, bank.hashCode, type.hashCode, last4.hashCode, isPrimary.hashCode, ownerId.hashCode, accountNumber.hashCode, expiryTime.hashCode, routeNumber.hashCode]);
|
||||
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
@@ -96,6 +99,9 @@ class FilterAccountsAccounts {
|
||||
if (accountNumber != null) {
|
||||
json['accountNumber'] = nativeToJson<String?>(accountNumber);
|
||||
}
|
||||
if (expiryTime != null) {
|
||||
json['expiryTime'] = expiryTime!.toJson();
|
||||
}
|
||||
if (routeNumber != null) {
|
||||
json['routeNumber'] = nativeToJson<String?>(routeNumber);
|
||||
}
|
||||
@@ -110,6 +116,7 @@ class FilterAccountsAccounts {
|
||||
this.isPrimary,
|
||||
required this.ownerId,
|
||||
this.accountNumber,
|
||||
this.expiryTime,
|
||||
this.routeNumber,
|
||||
});
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -27,6 +27,7 @@ class GetAccountByIdAccount {
|
||||
final String ownerId;
|
||||
final String? accountNumber;
|
||||
final String? routeNumber;
|
||||
final Timestamp? expiryTime;
|
||||
final Timestamp? createdAt;
|
||||
GetAccountByIdAccount.fromJson(dynamic json):
|
||||
|
||||
@@ -38,6 +39,7 @@ class GetAccountByIdAccount {
|
||||
ownerId = nativeFromJson<String>(json['ownerId']),
|
||||
accountNumber = json['accountNumber'] == null ? null : nativeFromJson<String>(json['accountNumber']),
|
||||
routeNumber = json['routeNumber'] == null ? null : nativeFromJson<String>(json['routeNumber']),
|
||||
expiryTime = json['expiryTime'] == null ? null : Timestamp.fromJson(json['expiryTime']),
|
||||
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']);
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
@@ -57,11 +59,12 @@ class GetAccountByIdAccount {
|
||||
ownerId == otherTyped.ownerId &&
|
||||
accountNumber == otherTyped.accountNumber &&
|
||||
routeNumber == otherTyped.routeNumber &&
|
||||
expiryTime == otherTyped.expiryTime &&
|
||||
createdAt == otherTyped.createdAt;
|
||||
|
||||
}
|
||||
@override
|
||||
int get hashCode => Object.hashAll([id.hashCode, bank.hashCode, type.hashCode, last4.hashCode, isPrimary.hashCode, ownerId.hashCode, accountNumber.hashCode, routeNumber.hashCode, createdAt.hashCode]);
|
||||
int get hashCode => Object.hashAll([id.hashCode, bank.hashCode, type.hashCode, last4.hashCode, isPrimary.hashCode, ownerId.hashCode, accountNumber.hashCode, routeNumber.hashCode, expiryTime.hashCode, createdAt.hashCode]);
|
||||
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
@@ -82,6 +85,9 @@ class GetAccountByIdAccount {
|
||||
if (routeNumber != null) {
|
||||
json['routeNumber'] = nativeToJson<String?>(routeNumber);
|
||||
}
|
||||
if (expiryTime != null) {
|
||||
json['expiryTime'] = expiryTime!.toJson();
|
||||
}
|
||||
if (createdAt != null) {
|
||||
json['createdAt'] = createdAt!.toJson();
|
||||
}
|
||||
@@ -97,6 +103,7 @@ class GetAccountByIdAccount {
|
||||
required this.ownerId,
|
||||
this.accountNumber,
|
||||
this.routeNumber,
|
||||
this.expiryTime,
|
||||
this.createdAt,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ class GetAccountsByOwnerIdAccounts {
|
||||
final String ownerId;
|
||||
final String? accountNumber;
|
||||
final String? routeNumber;
|
||||
final Timestamp? expiryTime;
|
||||
final Timestamp? createdAt;
|
||||
GetAccountsByOwnerIdAccounts.fromJson(dynamic json):
|
||||
|
||||
@@ -38,6 +39,7 @@ class GetAccountsByOwnerIdAccounts {
|
||||
ownerId = nativeFromJson<String>(json['ownerId']),
|
||||
accountNumber = json['accountNumber'] == null ? null : nativeFromJson<String>(json['accountNumber']),
|
||||
routeNumber = json['routeNumber'] == null ? null : nativeFromJson<String>(json['routeNumber']),
|
||||
expiryTime = json['expiryTime'] == null ? null : Timestamp.fromJson(json['expiryTime']),
|
||||
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']);
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
@@ -57,11 +59,12 @@ class GetAccountsByOwnerIdAccounts {
|
||||
ownerId == otherTyped.ownerId &&
|
||||
accountNumber == otherTyped.accountNumber &&
|
||||
routeNumber == otherTyped.routeNumber &&
|
||||
expiryTime == otherTyped.expiryTime &&
|
||||
createdAt == otherTyped.createdAt;
|
||||
|
||||
}
|
||||
@override
|
||||
int get hashCode => Object.hashAll([id.hashCode, bank.hashCode, type.hashCode, last4.hashCode, isPrimary.hashCode, ownerId.hashCode, accountNumber.hashCode, routeNumber.hashCode, createdAt.hashCode]);
|
||||
int get hashCode => Object.hashAll([id.hashCode, bank.hashCode, type.hashCode, last4.hashCode, isPrimary.hashCode, ownerId.hashCode, accountNumber.hashCode, routeNumber.hashCode, expiryTime.hashCode, createdAt.hashCode]);
|
||||
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
@@ -82,6 +85,9 @@ class GetAccountsByOwnerIdAccounts {
|
||||
if (routeNumber != null) {
|
||||
json['routeNumber'] = nativeToJson<String?>(routeNumber);
|
||||
}
|
||||
if (expiryTime != null) {
|
||||
json['expiryTime'] = expiryTime!.toJson();
|
||||
}
|
||||
if (createdAt != null) {
|
||||
json['createdAt'] = createdAt!.toJson();
|
||||
}
|
||||
@@ -97,6 +103,7 @@ class GetAccountsByOwnerIdAccounts {
|
||||
required this.ownerId,
|
||||
this.accountNumber,
|
||||
this.routeNumber,
|
||||
this.expiryTime,
|
||||
this.createdAt,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ class ListAccountsAccounts {
|
||||
final String ownerId;
|
||||
final String? accountNumber;
|
||||
final String? routeNumber;
|
||||
final Timestamp? expiryTime;
|
||||
final Timestamp? createdAt;
|
||||
ListAccountsAccounts.fromJson(dynamic json):
|
||||
|
||||
@@ -37,6 +38,7 @@ class ListAccountsAccounts {
|
||||
ownerId = nativeFromJson<String>(json['ownerId']),
|
||||
accountNumber = json['accountNumber'] == null ? null : nativeFromJson<String>(json['accountNumber']),
|
||||
routeNumber = json['routeNumber'] == null ? null : nativeFromJson<String>(json['routeNumber']),
|
||||
expiryTime = json['expiryTime'] == null ? null : Timestamp.fromJson(json['expiryTime']),
|
||||
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']);
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
@@ -56,11 +58,12 @@ class ListAccountsAccounts {
|
||||
ownerId == otherTyped.ownerId &&
|
||||
accountNumber == otherTyped.accountNumber &&
|
||||
routeNumber == otherTyped.routeNumber &&
|
||||
expiryTime == otherTyped.expiryTime &&
|
||||
createdAt == otherTyped.createdAt;
|
||||
|
||||
}
|
||||
@override
|
||||
int get hashCode => Object.hashAll([id.hashCode, bank.hashCode, type.hashCode, last4.hashCode, isPrimary.hashCode, ownerId.hashCode, accountNumber.hashCode, routeNumber.hashCode, createdAt.hashCode]);
|
||||
int get hashCode => Object.hashAll([id.hashCode, bank.hashCode, type.hashCode, last4.hashCode, isPrimary.hashCode, ownerId.hashCode, accountNumber.hashCode, routeNumber.hashCode, expiryTime.hashCode, createdAt.hashCode]);
|
||||
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
@@ -81,6 +84,9 @@ class ListAccountsAccounts {
|
||||
if (routeNumber != null) {
|
||||
json['routeNumber'] = nativeToJson<String?>(routeNumber);
|
||||
}
|
||||
if (expiryTime != null) {
|
||||
json['expiryTime'] = expiryTime!.toJson();
|
||||
}
|
||||
if (createdAt != null) {
|
||||
json['createdAt'] = createdAt!.toJson();
|
||||
}
|
||||
@@ -96,6 +102,7 @@ class ListAccountsAccounts {
|
||||
required this.ownerId,
|
||||
this.accountNumber,
|
||||
this.routeNumber,
|
||||
this.expiryTime,
|
||||
this.createdAt,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,229 @@
|
||||
part of 'generated.dart';
|
||||
|
||||
class ListShiftRolesByBusinessAndDatesSummaryVariablesBuilder {
|
||||
String businessId;
|
||||
Timestamp start;
|
||||
Timestamp end;
|
||||
Optional<int> _offset = Optional.optional(nativeFromJson, nativeToJson);
|
||||
Optional<int> _limit = Optional.optional(nativeFromJson, nativeToJson);
|
||||
|
||||
final FirebaseDataConnect _dataConnect; ListShiftRolesByBusinessAndDatesSummaryVariablesBuilder offset(int? t) {
|
||||
_offset.value = t;
|
||||
return this;
|
||||
}
|
||||
ListShiftRolesByBusinessAndDatesSummaryVariablesBuilder limit(int? t) {
|
||||
_limit.value = t;
|
||||
return this;
|
||||
}
|
||||
|
||||
ListShiftRolesByBusinessAndDatesSummaryVariablesBuilder(this._dataConnect, {required this.businessId,required this.start,required this.end,});
|
||||
Deserializer<ListShiftRolesByBusinessAndDatesSummaryData> dataDeserializer = (dynamic json) => ListShiftRolesByBusinessAndDatesSummaryData.fromJson(jsonDecode(json));
|
||||
Serializer<ListShiftRolesByBusinessAndDatesSummaryVariables> varsSerializer = (ListShiftRolesByBusinessAndDatesSummaryVariables vars) => jsonEncode(vars.toJson());
|
||||
Future<QueryResult<ListShiftRolesByBusinessAndDatesSummaryData, ListShiftRolesByBusinessAndDatesSummaryVariables>> execute() {
|
||||
return ref().execute();
|
||||
}
|
||||
|
||||
QueryRef<ListShiftRolesByBusinessAndDatesSummaryData, ListShiftRolesByBusinessAndDatesSummaryVariables> ref() {
|
||||
ListShiftRolesByBusinessAndDatesSummaryVariables vars= ListShiftRolesByBusinessAndDatesSummaryVariables(businessId: businessId,start: start,end: end,offset: _offset,limit: _limit,);
|
||||
return _dataConnect.query("listShiftRolesByBusinessAndDatesSummary", dataDeserializer, varsSerializer, vars);
|
||||
}
|
||||
}
|
||||
|
||||
@immutable
|
||||
class ListShiftRolesByBusinessAndDatesSummaryShiftRoles {
|
||||
final String roleId;
|
||||
final double? hours;
|
||||
final double? totalValue;
|
||||
final ListShiftRolesByBusinessAndDatesSummaryShiftRolesRole role;
|
||||
ListShiftRolesByBusinessAndDatesSummaryShiftRoles.fromJson(dynamic json):
|
||||
|
||||
roleId = nativeFromJson<String>(json['roleId']),
|
||||
hours = json['hours'] == null ? null : nativeFromJson<double>(json['hours']),
|
||||
totalValue = json['totalValue'] == null ? null : nativeFromJson<double>(json['totalValue']),
|
||||
role = ListShiftRolesByBusinessAndDatesSummaryShiftRolesRole.fromJson(json['role']);
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if(identical(this, other)) {
|
||||
return true;
|
||||
}
|
||||
if(other.runtimeType != runtimeType) {
|
||||
return false;
|
||||
}
|
||||
|
||||
final ListShiftRolesByBusinessAndDatesSummaryShiftRoles otherTyped = other as ListShiftRolesByBusinessAndDatesSummaryShiftRoles;
|
||||
return roleId == otherTyped.roleId &&
|
||||
hours == otherTyped.hours &&
|
||||
totalValue == otherTyped.totalValue &&
|
||||
role == otherTyped.role;
|
||||
|
||||
}
|
||||
@override
|
||||
int get hashCode => Object.hashAll([roleId.hashCode, hours.hashCode, totalValue.hashCode, role.hashCode]);
|
||||
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
Map<String, dynamic> json = {};
|
||||
json['roleId'] = nativeToJson<String>(roleId);
|
||||
if (hours != null) {
|
||||
json['hours'] = nativeToJson<double?>(hours);
|
||||
}
|
||||
if (totalValue != null) {
|
||||
json['totalValue'] = nativeToJson<double?>(totalValue);
|
||||
}
|
||||
json['role'] = role.toJson();
|
||||
return json;
|
||||
}
|
||||
|
||||
ListShiftRolesByBusinessAndDatesSummaryShiftRoles({
|
||||
required this.roleId,
|
||||
this.hours,
|
||||
this.totalValue,
|
||||
required this.role,
|
||||
});
|
||||
}
|
||||
|
||||
@immutable
|
||||
class ListShiftRolesByBusinessAndDatesSummaryShiftRolesRole {
|
||||
final String id;
|
||||
final String name;
|
||||
ListShiftRolesByBusinessAndDatesSummaryShiftRolesRole.fromJson(dynamic json):
|
||||
|
||||
id = nativeFromJson<String>(json['id']),
|
||||
name = nativeFromJson<String>(json['name']);
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if(identical(this, other)) {
|
||||
return true;
|
||||
}
|
||||
if(other.runtimeType != runtimeType) {
|
||||
return false;
|
||||
}
|
||||
|
||||
final ListShiftRolesByBusinessAndDatesSummaryShiftRolesRole otherTyped = other as ListShiftRolesByBusinessAndDatesSummaryShiftRolesRole;
|
||||
return id == otherTyped.id &&
|
||||
name == otherTyped.name;
|
||||
|
||||
}
|
||||
@override
|
||||
int get hashCode => Object.hashAll([id.hashCode, name.hashCode]);
|
||||
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
Map<String, dynamic> json = {};
|
||||
json['id'] = nativeToJson<String>(id);
|
||||
json['name'] = nativeToJson<String>(name);
|
||||
return json;
|
||||
}
|
||||
|
||||
ListShiftRolesByBusinessAndDatesSummaryShiftRolesRole({
|
||||
required this.id,
|
||||
required this.name,
|
||||
});
|
||||
}
|
||||
|
||||
@immutable
|
||||
class ListShiftRolesByBusinessAndDatesSummaryData {
|
||||
final List<ListShiftRolesByBusinessAndDatesSummaryShiftRoles> shiftRoles;
|
||||
ListShiftRolesByBusinessAndDatesSummaryData.fromJson(dynamic json):
|
||||
|
||||
shiftRoles = (json['shiftRoles'] as List<dynamic>)
|
||||
.map((e) => ListShiftRolesByBusinessAndDatesSummaryShiftRoles.fromJson(e))
|
||||
.toList();
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if(identical(this, other)) {
|
||||
return true;
|
||||
}
|
||||
if(other.runtimeType != runtimeType) {
|
||||
return false;
|
||||
}
|
||||
|
||||
final ListShiftRolesByBusinessAndDatesSummaryData otherTyped = other as ListShiftRolesByBusinessAndDatesSummaryData;
|
||||
return shiftRoles == otherTyped.shiftRoles;
|
||||
|
||||
}
|
||||
@override
|
||||
int get hashCode => shiftRoles.hashCode;
|
||||
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
Map<String, dynamic> json = {};
|
||||
json['shiftRoles'] = shiftRoles.map((e) => e.toJson()).toList();
|
||||
return json;
|
||||
}
|
||||
|
||||
ListShiftRolesByBusinessAndDatesSummaryData({
|
||||
required this.shiftRoles,
|
||||
});
|
||||
}
|
||||
|
||||
@immutable
|
||||
class ListShiftRolesByBusinessAndDatesSummaryVariables {
|
||||
final String businessId;
|
||||
final Timestamp start;
|
||||
final Timestamp end;
|
||||
late final Optional<int>offset;
|
||||
late final Optional<int>limit;
|
||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
||||
ListShiftRolesByBusinessAndDatesSummaryVariables.fromJson(Map<String, dynamic> json):
|
||||
|
||||
businessId = nativeFromJson<String>(json['businessId']),
|
||||
start = Timestamp.fromJson(json['start']),
|
||||
end = Timestamp.fromJson(json['end']) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
offset = Optional.optional(nativeFromJson, nativeToJson);
|
||||
offset.value = json['offset'] == null ? null : nativeFromJson<int>(json['offset']);
|
||||
|
||||
|
||||
limit = Optional.optional(nativeFromJson, nativeToJson);
|
||||
limit.value = json['limit'] == null ? null : nativeFromJson<int>(json['limit']);
|
||||
|
||||
}
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if(identical(this, other)) {
|
||||
return true;
|
||||
}
|
||||
if(other.runtimeType != runtimeType) {
|
||||
return false;
|
||||
}
|
||||
|
||||
final ListShiftRolesByBusinessAndDatesSummaryVariables otherTyped = other as ListShiftRolesByBusinessAndDatesSummaryVariables;
|
||||
return businessId == otherTyped.businessId &&
|
||||
start == otherTyped.start &&
|
||||
end == otherTyped.end &&
|
||||
offset == otherTyped.offset &&
|
||||
limit == otherTyped.limit;
|
||||
|
||||
}
|
||||
@override
|
||||
int get hashCode => Object.hashAll([businessId.hashCode, start.hashCode, end.hashCode, offset.hashCode, limit.hashCode]);
|
||||
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
Map<String, dynamic> json = {};
|
||||
json['businessId'] = nativeToJson<String>(businessId);
|
||||
json['start'] = start.toJson();
|
||||
json['end'] = end.toJson();
|
||||
if(offset.state == OptionalState.set) {
|
||||
json['offset'] = offset.toJson();
|
||||
}
|
||||
if(limit.state == OptionalState.set) {
|
||||
json['limit'] = limit.toJson();
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
ListShiftRolesByBusinessAndDatesSummaryVariables({
|
||||
required this.businessId,
|
||||
required this.start,
|
||||
required this.end,
|
||||
required this.offset,
|
||||
required this.limit,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ class UpdateAccountVariablesBuilder {
|
||||
Optional<bool> _isPrimary = Optional.optional(nativeFromJson, nativeToJson);
|
||||
Optional<String> _accountNumber = Optional.optional(nativeFromJson, nativeToJson);
|
||||
Optional<String> _routeNumber = Optional.optional(nativeFromJson, nativeToJson);
|
||||
Optional<Timestamp> _expiryTime = Optional.optional((json) => json['expiryTime'] = Timestamp.fromJson(json['expiryTime']), defaultSerializer);
|
||||
|
||||
final FirebaseDataConnect _dataConnect; UpdateAccountVariablesBuilder bank(String? t) {
|
||||
_bank.value = t;
|
||||
@@ -33,6 +34,10 @@ class UpdateAccountVariablesBuilder {
|
||||
_routeNumber.value = t;
|
||||
return this;
|
||||
}
|
||||
UpdateAccountVariablesBuilder expiryTime(Timestamp? t) {
|
||||
_expiryTime.value = t;
|
||||
return this;
|
||||
}
|
||||
|
||||
UpdateAccountVariablesBuilder(this._dataConnect, {required this.id,});
|
||||
Deserializer<UpdateAccountData> dataDeserializer = (dynamic json) => UpdateAccountData.fromJson(jsonDecode(json));
|
||||
@@ -42,7 +47,7 @@ class UpdateAccountVariablesBuilder {
|
||||
}
|
||||
|
||||
MutationRef<UpdateAccountData, UpdateAccountVariables> ref() {
|
||||
UpdateAccountVariables vars= UpdateAccountVariables(id: id,bank: _bank,type: _type,last4: _last4,isPrimary: _isPrimary,accountNumber: _accountNumber,routeNumber: _routeNumber,);
|
||||
UpdateAccountVariables vars= UpdateAccountVariables(id: id,bank: _bank,type: _type,last4: _last4,isPrimary: _isPrimary,accountNumber: _accountNumber,routeNumber: _routeNumber,expiryTime: _expiryTime,);
|
||||
return _dataConnect.mutation("updateAccount", dataDeserializer, varsSerializer, vars);
|
||||
}
|
||||
}
|
||||
@@ -126,6 +131,7 @@ class UpdateAccountVariables {
|
||||
late final Optional<bool>isPrimary;
|
||||
late final Optional<String>accountNumber;
|
||||
late final Optional<String>routeNumber;
|
||||
late final Optional<Timestamp>expiryTime;
|
||||
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
|
||||
UpdateAccountVariables.fromJson(Map<String, dynamic> json):
|
||||
|
||||
@@ -156,6 +162,10 @@ class UpdateAccountVariables {
|
||||
routeNumber = Optional.optional(nativeFromJson, nativeToJson);
|
||||
routeNumber.value = json['routeNumber'] == null ? null : nativeFromJson<String>(json['routeNumber']);
|
||||
|
||||
|
||||
expiryTime = Optional.optional((json) => json['expiryTime'] = Timestamp.fromJson(json['expiryTime']), defaultSerializer);
|
||||
expiryTime.value = json['expiryTime'] == null ? null : Timestamp.fromJson(json['expiryTime']);
|
||||
|
||||
}
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
@@ -173,11 +183,12 @@ class UpdateAccountVariables {
|
||||
last4 == otherTyped.last4 &&
|
||||
isPrimary == otherTyped.isPrimary &&
|
||||
accountNumber == otherTyped.accountNumber &&
|
||||
routeNumber == otherTyped.routeNumber;
|
||||
routeNumber == otherTyped.routeNumber &&
|
||||
expiryTime == otherTyped.expiryTime;
|
||||
|
||||
}
|
||||
@override
|
||||
int get hashCode => Object.hashAll([id.hashCode, bank.hashCode, type.hashCode, last4.hashCode, isPrimary.hashCode, accountNumber.hashCode, routeNumber.hashCode]);
|
||||
int get hashCode => Object.hashAll([id.hashCode, bank.hashCode, type.hashCode, last4.hashCode, isPrimary.hashCode, accountNumber.hashCode, routeNumber.hashCode, expiryTime.hashCode]);
|
||||
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
@@ -201,6 +212,9 @@ class UpdateAccountVariables {
|
||||
if(routeNumber.state == OptionalState.set) {
|
||||
json['routeNumber'] = routeNumber.toJson();
|
||||
}
|
||||
if(expiryTime.state == OptionalState.set) {
|
||||
json['expiryTime'] = expiryTime.toJson();
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
@@ -212,6 +226,7 @@ class UpdateAccountVariables {
|
||||
required this.isPrimary,
|
||||
required this.accountNumber,
|
||||
required this.routeNumber,
|
||||
required this.expiryTime,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,8 @@ class FinancialRepositoryMock {
|
||||
totalAmount: 1500.0,
|
||||
workAmount: 1400.0,
|
||||
addonsAmount: 100.0,
|
||||
invoiceNumber: 'INV-1',
|
||||
issueDate: null,
|
||||
),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user