This commit is contained in:
José Salazar
2026-02-01 22:39:40 +09:00
parent 3cebb37dfd
commit 6277b9f5e2
19 changed files with 20900 additions and 18729 deletions

View File

@@ -1,16 +1,16 @@
# Basic Usage
```dart
ExampleConnector.instance.createRecentPayment(createRecentPaymentVariables).execute();
ExampleConnector.instance.updateRecentPayment(updateRecentPaymentVariables).execute();
ExampleConnector.instance.deleteRecentPayment(deleteRecentPaymentVariables).execute();
ExampleConnector.instance.CreateStaff(createStaffVariables).execute();
ExampleConnector.instance.UpdateStaff(updateStaffVariables).execute();
ExampleConnector.instance.DeleteStaff(deleteStaffVariables).execute();
ExampleConnector.instance.getStaffDocumentByKey(getStaffDocumentByKeyVariables).execute();
ExampleConnector.instance.listStaffDocumentsByStaffId(listStaffDocumentsByStaffIdVariables).execute();
ExampleConnector.instance.listStaffDocumentsByDocumentType(listStaffDocumentsByDocumentTypeVariables).execute();
ExampleConnector.instance.listStaffDocumentsByStatus(listStaffDocumentsByStatusVariables).execute();
ExampleConnector.instance.createHub(createHubVariables).execute();
ExampleConnector.instance.updateHub(updateHubVariables).execute();
ExampleConnector.instance.deleteHub(deleteHubVariables).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();
```
@@ -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.updateAttireOption({ ... })
.itemId(...)
await ExampleConnector.instance.UpdateUser({ ... })
.email(...)
.execute();
```

View File

@@ -253,13 +253,15 @@ class GetShiftRoleByIdShiftRoleShiftOrder {
final String? notes;
final GetShiftRoleByIdShiftRoleShiftOrderBusiness business;
final GetShiftRoleByIdShiftRoleShiftOrderVendor? vendor;
final GetShiftRoleByIdShiftRoleShiftOrderTeamHub teamHub;
GetShiftRoleByIdShiftRoleShiftOrder.fromJson(dynamic json):
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
notes = json['notes'] == null ? null : nativeFromJson<String>(json['notes']),
business = GetShiftRoleByIdShiftRoleShiftOrderBusiness.fromJson(json['business']),
vendor = json['vendor'] == null ? null : GetShiftRoleByIdShiftRoleShiftOrderVendor.fromJson(json['vendor']);
vendor = json['vendor'] == null ? null : GetShiftRoleByIdShiftRoleShiftOrderVendor.fromJson(json['vendor']),
teamHub = GetShiftRoleByIdShiftRoleShiftOrderTeamHub.fromJson(json['teamHub']);
@override
bool operator ==(Object other) {
if(identical(this, other)) {
@@ -274,11 +276,12 @@ class GetShiftRoleByIdShiftRoleShiftOrder {
permanentDays == otherTyped.permanentDays &&
notes == otherTyped.notes &&
business == otherTyped.business &&
vendor == otherTyped.vendor;
vendor == otherTyped.vendor &&
teamHub == otherTyped.teamHub;
}
@override
int get hashCode => Object.hashAll([recurringDays.hashCode, permanentDays.hashCode, notes.hashCode, business.hashCode, vendor.hashCode]);
int get hashCode => Object.hashAll([recurringDays.hashCode, permanentDays.hashCode, notes.hashCode, business.hashCode, vendor.hashCode, teamHub.hashCode]);
Map<String, dynamic> toJson() {
@@ -296,6 +299,7 @@ class GetShiftRoleByIdShiftRoleShiftOrder {
if (vendor != null) {
json['vendor'] = vendor!.toJson();
}
json['teamHub'] = teamHub.toJson();
return json;
}
@@ -305,6 +309,7 @@ class GetShiftRoleByIdShiftRoleShiftOrder {
this.notes,
required this.business,
this.vendor,
required this.teamHub,
});
}
@@ -312,10 +317,12 @@ class GetShiftRoleByIdShiftRoleShiftOrder {
class GetShiftRoleByIdShiftRoleShiftOrderBusiness {
final String id;
final String businessName;
final String? companyLogoUrl;
GetShiftRoleByIdShiftRoleShiftOrderBusiness.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']),
businessName = nativeFromJson<String>(json['businessName']);
businessName = nativeFromJson<String>(json['businessName']),
companyLogoUrl = json['companyLogoUrl'] == null ? null : nativeFromJson<String>(json['companyLogoUrl']);
@override
bool operator ==(Object other) {
if(identical(this, other)) {
@@ -327,23 +334,28 @@ class GetShiftRoleByIdShiftRoleShiftOrderBusiness {
final GetShiftRoleByIdShiftRoleShiftOrderBusiness otherTyped = other as GetShiftRoleByIdShiftRoleShiftOrderBusiness;
return id == otherTyped.id &&
businessName == otherTyped.businessName;
businessName == otherTyped.businessName &&
companyLogoUrl == otherTyped.companyLogoUrl;
}
@override
int get hashCode => Object.hashAll([id.hashCode, businessName.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, businessName.hashCode, companyLogoUrl.hashCode]);
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {};
json['id'] = nativeToJson<String>(id);
json['businessName'] = nativeToJson<String>(businessName);
if (companyLogoUrl != null) {
json['companyLogoUrl'] = nativeToJson<String?>(companyLogoUrl);
}
return json;
}
GetShiftRoleByIdShiftRoleShiftOrderBusiness({
required this.id,
required this.businessName,
this.companyLogoUrl,
});
}
@@ -386,6 +398,40 @@ class GetShiftRoleByIdShiftRoleShiftOrderVendor {
});
}
@immutable
class GetShiftRoleByIdShiftRoleShiftOrderTeamHub {
final String hubName;
GetShiftRoleByIdShiftRoleShiftOrderTeamHub.fromJson(dynamic json):
hubName = nativeFromJson<String>(json['hubName']);
@override
bool operator ==(Object other) {
if(identical(this, other)) {
return true;
}
if(other.runtimeType != runtimeType) {
return false;
}
final GetShiftRoleByIdShiftRoleShiftOrderTeamHub otherTyped = other as GetShiftRoleByIdShiftRoleShiftOrderTeamHub;
return hubName == otherTyped.hubName;
}
@override
int get hashCode => hubName.hashCode;
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {};
json['hubName'] = nativeToJson<String>(hubName);
return json;
}
GetShiftRoleByIdShiftRoleShiftOrderTeamHub({
required this.hubName,
});
}
@immutable
class GetShiftRoleByIdData {
final GetShiftRoleByIdShiftRole? shiftRole;

View File

@@ -204,6 +204,8 @@ class ListShiftRolesByVendorIdShiftRolesShift {
final String? locationAddress;
final String? description;
final String orderId;
final EnumValue<ShiftStatus>? status;
final int? durationDays;
final ListShiftRolesByVendorIdShiftRolesShiftOrder order;
ListShiftRolesByVendorIdShiftRolesShift.fromJson(dynamic json):
@@ -214,6 +216,8 @@ class ListShiftRolesByVendorIdShiftRolesShift {
locationAddress = json['locationAddress'] == null ? null : nativeFromJson<String>(json['locationAddress']),
description = json['description'] == null ? null : nativeFromJson<String>(json['description']),
orderId = nativeFromJson<String>(json['orderId']),
status = json['status'] == null ? null : shiftStatusDeserializer(json['status']),
durationDays = json['durationDays'] == null ? null : nativeFromJson<int>(json['durationDays']),
order = ListShiftRolesByVendorIdShiftRolesShiftOrder.fromJson(json['order']);
@override
bool operator ==(Object other) {
@@ -232,11 +236,13 @@ class ListShiftRolesByVendorIdShiftRolesShift {
locationAddress == otherTyped.locationAddress &&
description == otherTyped.description &&
orderId == otherTyped.orderId &&
status == otherTyped.status &&
durationDays == otherTyped.durationDays &&
order == otherTyped.order;
}
@override
int get hashCode => Object.hashAll([id.hashCode, title.hashCode, date.hashCode, location.hashCode, locationAddress.hashCode, description.hashCode, orderId.hashCode, order.hashCode]);
int get hashCode => Object.hashAll([id.hashCode, title.hashCode, date.hashCode, location.hashCode, locationAddress.hashCode, description.hashCode, orderId.hashCode, status.hashCode, durationDays.hashCode, order.hashCode]);
Map<String, dynamic> toJson() {
@@ -256,6 +262,14 @@ class ListShiftRolesByVendorIdShiftRolesShift {
json['description'] = nativeToJson<String?>(description);
}
json['orderId'] = nativeToJson<String>(orderId);
if (status != null) {
json['status'] =
shiftStatusSerializer(status!)
;
}
if (durationDays != null) {
json['durationDays'] = nativeToJson<int?>(durationDays);
}
json['order'] = order.toJson();
return json;
}
@@ -268,6 +282,8 @@ class ListShiftRolesByVendorIdShiftRolesShift {
this.locationAddress,
this.description,
required this.orderId,
this.status,
this.durationDays,
required this.order,
});
}

View File

@@ -3,10 +3,12 @@ import 'package:krow_domain/krow_domain.dart' as domain;
class StaffSession {
final domain.User user;
final domain.Staff? staff;
final String? ownerId;
const StaffSession({
required this.user,
this.staff,
this.ownerId,
});
}