fix: Firebase analytics issue and handled data connect

This commit is contained in:
dhinesh-m24
2026-02-02 16:44:16 +05:30
parent cb25b33d04
commit fa208f2838
196 changed files with 19919 additions and 31464 deletions

View File

@@ -1,16 +1,16 @@
# Basic Usage # Basic Usage
```dart ```dart
ExampleConnector.instance.createFaqData(createFaqDataVariables).execute(); ExampleConnector.instance.getStaffCourseById(getStaffCourseByIdVariables).execute();
ExampleConnector.instance.updateFaqData(updateFaqDataVariables).execute(); ExampleConnector.instance.listStaffCoursesByStaffId(listStaffCoursesByStaffIdVariables).execute();
ExampleConnector.instance.deleteFaqData(deleteFaqDataVariables).execute(); ExampleConnector.instance.listStaffCoursesByCourseId(listStaffCoursesByCourseIdVariables).execute();
ExampleConnector.instance.createStaffAvailability(createStaffAvailabilityVariables).execute(); ExampleConnector.instance.getStaffCourseByStaffAndCourse(getStaffCourseByStaffAndCourseVariables).execute();
ExampleConnector.instance.updateStaffAvailability(updateStaffAvailabilityVariables).execute(); ExampleConnector.instance.createOrder(createOrderVariables).execute();
ExampleConnector.instance.deleteStaffAvailability(deleteStaffAvailabilityVariables).execute(); ExampleConnector.instance.updateOrder(updateOrderVariables).execute();
ExampleConnector.instance.listStaffAvailabilityStats(listStaffAvailabilityStatsVariables).execute(); ExampleConnector.instance.deleteOrder(deleteOrderVariables).execute();
ExampleConnector.instance.getStaffAvailabilityStatsByStaffId(getStaffAvailabilityStatsByStaffIdVariables).execute(); ExampleConnector.instance.createRole(createRoleVariables).execute();
ExampleConnector.instance.filterStaffAvailabilityStats(filterStaffAvailabilityStatsVariables).execute(); ExampleConnector.instance.updateRole(updateRoleVariables).execute();
ExampleConnector.instance.createTaxForm(createTaxFormVariables).execute(); ExampleConnector.instance.deleteRole(deleteRoleVariables).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: This is an example of a mutation with an optional field:
```dart ```dart
await ExampleConnector.instance.updateWorkforce({ ... }) await ExampleConnector.instance.filterDocuments({ ... })
.workforceNumber(...) .documentType(...)
.execute(); .execute();
``` ```

View File

@@ -4,7 +4,6 @@ class CreateOrderVariablesBuilder {
Optional<String> _vendorId = Optional.optional(nativeFromJson, nativeToJson); Optional<String> _vendorId = Optional.optional(nativeFromJson, nativeToJson);
String businessId; String businessId;
OrderType orderType; OrderType orderType;
Optional<String> _location = Optional.optional(nativeFromJson, nativeToJson);
Optional<OrderStatus> _status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer); Optional<OrderStatus> _status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer);
Optional<Timestamp> _date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer); Optional<Timestamp> _date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer);
Optional<Timestamp> _startDate = Optional.optional((json) => json['startDate'] = Timestamp.fromJson(json['startDate']), defaultSerializer); Optional<Timestamp> _startDate = Optional.optional((json) => json['startDate'] = Timestamp.fromJson(json['startDate']), defaultSerializer);
@@ -16,7 +15,6 @@ class CreateOrderVariablesBuilder {
Optional<AnyValue> _assignedStaff = Optional.optional(AnyValue.fromJson, defaultSerializer); Optional<AnyValue> _assignedStaff = Optional.optional(AnyValue.fromJson, defaultSerializer);
Optional<AnyValue> _shifts = Optional.optional(AnyValue.fromJson, defaultSerializer); Optional<AnyValue> _shifts = Optional.optional(AnyValue.fromJson, defaultSerializer);
Optional<int> _requested = Optional.optional(nativeFromJson, nativeToJson); Optional<int> _requested = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _hub = Optional.optional(nativeFromJson, nativeToJson);
Optional<AnyValue> _recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer); Optional<AnyValue> _recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer);
Optional<Timestamp> _permanentStartDate = Optional.optional((json) => json['permanentStartDate'] = Timestamp.fromJson(json['permanentStartDate']), defaultSerializer); Optional<Timestamp> _permanentStartDate = Optional.optional((json) => json['permanentStartDate'] = Timestamp.fromJson(json['permanentStartDate']), defaultSerializer);
Optional<AnyValue> _permanentDays = Optional.optional(AnyValue.fromJson, defaultSerializer); Optional<AnyValue> _permanentDays = Optional.optional(AnyValue.fromJson, defaultSerializer);
@@ -29,10 +27,6 @@ class CreateOrderVariablesBuilder {
_vendorId.value = t; _vendorId.value = t;
return this; return this;
} }
CreateOrderVariablesBuilder location(String? t) {
_location.value = t;
return this;
}
CreateOrderVariablesBuilder status(OrderStatus? t) { CreateOrderVariablesBuilder status(OrderStatus? t) {
_status.value = t; _status.value = t;
return this; return this;
@@ -77,10 +71,6 @@ class CreateOrderVariablesBuilder {
_requested.value = t; _requested.value = t;
return this; return this;
} }
CreateOrderVariablesBuilder hub(String? t) {
_hub.value = t;
return this;
}
CreateOrderVariablesBuilder recurringDays(AnyValue? t) { CreateOrderVariablesBuilder recurringDays(AnyValue? t) {
_recurringDays.value = t; _recurringDays.value = t;
return this; return this;
@@ -114,7 +104,7 @@ class CreateOrderVariablesBuilder {
} }
MutationRef<CreateOrderData, CreateOrderVariables> ref() { MutationRef<CreateOrderData, CreateOrderVariables> ref() {
CreateOrderVariables vars= CreateOrderVariables(vendorId: _vendorId,businessId: businessId,orderType: orderType,location: _location,status: _status,date: _date,startDate: _startDate,endDate: _endDate,duration: _duration,lunchBreak: _lunchBreak,total: _total,eventName: _eventName,assignedStaff: _assignedStaff,shifts: _shifts,requested: _requested,hub: _hub,recurringDays: _recurringDays,permanentStartDate: _permanentStartDate,permanentDays: _permanentDays,notes: _notes,detectedConflicts: _detectedConflicts,poReference: _poReference,); CreateOrderVariables vars= CreateOrderVariables(vendorId: _vendorId,businessId: businessId,orderType: orderType,status: _status,date: _date,startDate: _startDate,endDate: _endDate,duration: _duration,lunchBreak: _lunchBreak,total: _total,eventName: _eventName,assignedStaff: _assignedStaff,shifts: _shifts,requested: _requested,recurringDays: _recurringDays,permanentStartDate: _permanentStartDate,permanentDays: _permanentDays,notes: _notes,detectedConflicts: _detectedConflicts,poReference: _poReference,);
return _dataConnect.mutation("createOrder", dataDeserializer, varsSerializer, vars); return _dataConnect.mutation("createOrder", dataDeserializer, varsSerializer, vars);
} }
} }
@@ -192,7 +182,6 @@ class CreateOrderVariables {
late final Optional<String>vendorId; late final Optional<String>vendorId;
final String businessId; final String businessId;
final OrderType orderType; final OrderType orderType;
late final Optional<String>location;
late final Optional<OrderStatus>status; late final Optional<OrderStatus>status;
late final Optional<Timestamp>date; late final Optional<Timestamp>date;
late final Optional<Timestamp>startDate; late final Optional<Timestamp>startDate;
@@ -204,7 +193,6 @@ class CreateOrderVariables {
late final Optional<AnyValue>assignedStaff; late final Optional<AnyValue>assignedStaff;
late final Optional<AnyValue>shifts; late final Optional<AnyValue>shifts;
late final Optional<int>requested; late final Optional<int>requested;
late final Optional<String>hub;
late final Optional<AnyValue>recurringDays; late final Optional<AnyValue>recurringDays;
late final Optional<Timestamp>permanentStartDate; late final Optional<Timestamp>permanentStartDate;
late final Optional<AnyValue>permanentDays; late final Optional<AnyValue>permanentDays;
@@ -224,10 +212,6 @@ class CreateOrderVariables {
location = Optional.optional(nativeFromJson, nativeToJson);
location.value = json['location'] == null ? null : nativeFromJson<String>(json['location']);
status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer); status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer);
status.value = json['status'] == null ? null : OrderStatus.values.byName(json['status']); status.value = json['status'] == null ? null : OrderStatus.values.byName(json['status']);
@@ -272,10 +256,6 @@ class CreateOrderVariables {
requested.value = json['requested'] == null ? null : nativeFromJson<int>(json['requested']); requested.value = json['requested'] == null ? null : nativeFromJson<int>(json['requested']);
hub = Optional.optional(nativeFromJson, nativeToJson);
hub.value = json['hub'] == null ? null : nativeFromJson<String>(json['hub']);
recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer); recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer);
recurringDays.value = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']); recurringDays.value = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']);
@@ -313,7 +293,6 @@ class CreateOrderVariables {
return vendorId == otherTyped.vendorId && return vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId && businessId == otherTyped.businessId &&
orderType == otherTyped.orderType && orderType == otherTyped.orderType &&
location == otherTyped.location &&
status == otherTyped.status && status == otherTyped.status &&
date == otherTyped.date && date == otherTyped.date &&
startDate == otherTyped.startDate && startDate == otherTyped.startDate &&
@@ -325,7 +304,6 @@ class CreateOrderVariables {
assignedStaff == otherTyped.assignedStaff && assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts && shifts == otherTyped.shifts &&
requested == otherTyped.requested && requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays && recurringDays == otherTyped.recurringDays &&
permanentStartDate == otherTyped.permanentStartDate && permanentStartDate == otherTyped.permanentStartDate &&
permanentDays == otherTyped.permanentDays && permanentDays == otherTyped.permanentDays &&
@@ -335,7 +313,7 @@ class CreateOrderVariables {
} }
@override @override
int get hashCode => Object.hashAll([vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, eventName.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentStartDate.hashCode, permanentDays.hashCode, notes.hashCode, detectedConflicts.hashCode, poReference.hashCode]); int get hashCode => Object.hashAll([vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, eventName.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentStartDate.hashCode, permanentDays.hashCode, notes.hashCode, detectedConflicts.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -347,9 +325,6 @@ class CreateOrderVariables {
json['orderType'] = json['orderType'] =
orderType.name orderType.name
; ;
if(location.state == OptionalState.set) {
json['location'] = location.toJson();
}
if(status.state == OptionalState.set) { if(status.state == OptionalState.set) {
json['status'] = status.toJson(); json['status'] = status.toJson();
} }
@@ -383,9 +358,6 @@ class CreateOrderVariables {
if(requested.state == OptionalState.set) { if(requested.state == OptionalState.set) {
json['requested'] = requested.toJson(); json['requested'] = requested.toJson();
} }
if(hub.state == OptionalState.set) {
json['hub'] = hub.toJson();
}
if(recurringDays.state == OptionalState.set) { if(recurringDays.state == OptionalState.set) {
json['recurringDays'] = recurringDays.toJson(); json['recurringDays'] = recurringDays.toJson();
} }
@@ -411,7 +383,6 @@ class CreateOrderVariables {
required this.vendorId, required this.vendorId,
required this.businessId, required this.businessId,
required this.orderType, required this.orderType,
required this.location,
required this.status, required this.status,
required this.date, required this.date,
required this.startDate, required this.startDate,
@@ -423,7 +394,6 @@ class CreateOrderVariables {
required this.assignedStaff, required this.assignedStaff,
required this.shifts, required this.shifts,
required this.requested, required this.requested,
required this.hub,
required this.recurringDays, required this.recurringDays,
required this.permanentStartDate, required this.permanentStartDate,
required this.permanentDays, required this.permanentDays,

View File

@@ -2,31 +2,15 @@ part of 'generated.dart';
class CreateTaxFormVariablesBuilder { class CreateTaxFormVariablesBuilder {
TaxFormType formType; TaxFormType formType;
String title;
Optional<String> _subtitle = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _description = Optional.optional(nativeFromJson, nativeToJson);
Optional<TaxFormStatus> _status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer); Optional<TaxFormStatus> _status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer);
String staffId; String staffId;
Optional<AnyValue> _formData = Optional.optional(AnyValue.fromJson, defaultSerializer);
final FirebaseDataConnect _dataConnect; CreateTaxFormVariablesBuilder subtitle(String? t) { final FirebaseDataConnect _dataConnect; CreateTaxFormVariablesBuilder status(TaxFormStatus? t) {
_subtitle.value = t;
return this;
}
CreateTaxFormVariablesBuilder description(String? t) {
_description.value = t;
return this;
}
CreateTaxFormVariablesBuilder status(TaxFormStatus? t) {
_status.value = t; _status.value = t;
return this; return this;
} }
CreateTaxFormVariablesBuilder formData(AnyValue? t) {
_formData.value = t;
return this;
}
CreateTaxFormVariablesBuilder(this._dataConnect, {required this.formType,required this.title,required this.staffId,}); CreateTaxFormVariablesBuilder(this._dataConnect, {required this.formType,required this.staffId,});
Deserializer<CreateTaxFormData> dataDeserializer = (dynamic json) => CreateTaxFormData.fromJson(jsonDecode(json)); Deserializer<CreateTaxFormData> dataDeserializer = (dynamic json) => CreateTaxFormData.fromJson(jsonDecode(json));
Serializer<CreateTaxFormVariables> varsSerializer = (CreateTaxFormVariables vars) => jsonEncode(vars.toJson()); Serializer<CreateTaxFormVariables> varsSerializer = (CreateTaxFormVariables vars) => jsonEncode(vars.toJson());
Future<OperationResult<CreateTaxFormData, CreateTaxFormVariables>> execute() { Future<OperationResult<CreateTaxFormData, CreateTaxFormVariables>> execute() {
@@ -34,7 +18,7 @@ class CreateTaxFormVariablesBuilder {
} }
MutationRef<CreateTaxFormData, CreateTaxFormVariables> ref() { MutationRef<CreateTaxFormData, CreateTaxFormVariables> ref() {
CreateTaxFormVariables vars= CreateTaxFormVariables(formType: formType,title: title,subtitle: _subtitle,description: _description,status: _status,staffId: staffId,formData: _formData,); CreateTaxFormVariables vars= CreateTaxFormVariables(formType: formType,status: _status,staffId: staffId,);
return _dataConnect.mutation("createTaxForm", dataDeserializer, varsSerializer, vars); return _dataConnect.mutation("createTaxForm", dataDeserializer, varsSerializer, vars);
} }
} }
@@ -110,38 +94,20 @@ class CreateTaxFormData {
@immutable @immutable
class CreateTaxFormVariables { class CreateTaxFormVariables {
final TaxFormType formType; final TaxFormType formType;
final String title;
late final Optional<String>subtitle;
late final Optional<String>description;
late final Optional<TaxFormStatus>status; late final Optional<TaxFormStatus>status;
final String staffId; final String staffId;
late final Optional<AnyValue>formData;
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.') @Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
CreateTaxFormVariables.fromJson(Map<String, dynamic> json): CreateTaxFormVariables.fromJson(Map<String, dynamic> json):
formType = TaxFormType.values.byName(json['formType']), formType = TaxFormType.values.byName(json['formType']),
title = nativeFromJson<String>(json['title']),
staffId = nativeFromJson<String>(json['staffId']) { staffId = nativeFromJson<String>(json['staffId']) {
subtitle = Optional.optional(nativeFromJson, nativeToJson);
subtitle.value = json['subtitle'] == null ? null : nativeFromJson<String>(json['subtitle']);
description = Optional.optional(nativeFromJson, nativeToJson);
description.value = json['description'] == null ? null : nativeFromJson<String>(json['description']);
status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer); status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer);
status.value = json['status'] == null ? null : TaxFormStatus.values.byName(json['status']); status.value = json['status'] == null ? null : TaxFormStatus.values.byName(json['status']);
formData = Optional.optional(AnyValue.fromJson, defaultSerializer);
formData.value = json['formData'] == null ? null : AnyValue.fromJson(json['formData']);
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
@@ -154,16 +120,12 @@ class CreateTaxFormVariables {
final CreateTaxFormVariables otherTyped = other as CreateTaxFormVariables; final CreateTaxFormVariables otherTyped = other as CreateTaxFormVariables;
return formType == otherTyped.formType && return formType == otherTyped.formType &&
title == otherTyped.title &&
subtitle == otherTyped.subtitle &&
description == otherTyped.description &&
status == otherTyped.status && status == otherTyped.status &&
staffId == otherTyped.staffId && staffId == otherTyped.staffId;
formData == otherTyped.formData;
} }
@override @override
int get hashCode => Object.hashAll([formType.hashCode, title.hashCode, subtitle.hashCode, description.hashCode, status.hashCode, staffId.hashCode, formData.hashCode]); int get hashCode => Object.hashAll([formType.hashCode, status.hashCode, staffId.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -171,31 +133,17 @@ class CreateTaxFormVariables {
json['formType'] = json['formType'] =
formType.name formType.name
; ;
json['title'] = nativeToJson<String>(title);
if(subtitle.state == OptionalState.set) {
json['subtitle'] = subtitle.toJson();
}
if(description.state == OptionalState.set) {
json['description'] = description.toJson();
}
if(status.state == OptionalState.set) { if(status.state == OptionalState.set) {
json['status'] = status.toJson(); json['status'] = status.toJson();
} }
json['staffId'] = nativeToJson<String>(staffId); json['staffId'] = nativeToJson<String>(staffId);
if(formData.state == OptionalState.set) {
json['formData'] = formData.toJson();
}
return json; return json;
} }
CreateTaxFormVariables({ CreateTaxFormVariables({
required this.formType, required this.formType,
required this.title,
required this.subtitle,
required this.description,
required this.status, required this.status,
required this.staffId, required this.staffId,
required this.formData,
}); });
} }

View File

@@ -371,13 +371,11 @@ class FilterInvoicesInvoicesBusiness {
@immutable @immutable
class FilterInvoicesInvoicesOrder { class FilterInvoicesInvoicesOrder {
final String? eventName; final String? eventName;
final String? hub;
final String? deparment; final String? deparment;
final String? poReference; final String? poReference;
FilterInvoicesInvoicesOrder.fromJson(dynamic json): FilterInvoicesInvoicesOrder.fromJson(dynamic json):
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']), deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']); poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']);
@override @override
@@ -391,13 +389,12 @@ class FilterInvoicesInvoicesOrder {
final FilterInvoicesInvoicesOrder otherTyped = other as FilterInvoicesInvoicesOrder; final FilterInvoicesInvoicesOrder otherTyped = other as FilterInvoicesInvoicesOrder;
return eventName == otherTyped.eventName && return eventName == otherTyped.eventName &&
hub == otherTyped.hub &&
deparment == otherTyped.deparment && deparment == otherTyped.deparment &&
poReference == otherTyped.poReference; poReference == otherTyped.poReference;
} }
@override @override
int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]); int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -405,9 +402,6 @@ class FilterInvoicesInvoicesOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (deparment != null) { if (deparment != null) {
json['deparment'] = nativeToJson<String?>(deparment); json['deparment'] = nativeToJson<String?>(deparment);
} }
@@ -419,7 +413,6 @@ class FilterInvoicesInvoicesOrder {
FilterInvoicesInvoicesOrder({ FilterInvoicesInvoicesOrder({
this.eventName, this.eventName,
this.hub,
this.deparment, this.deparment,
this.poReference, this.poReference,
}); });

View File

@@ -36,14 +36,12 @@ class FilterTaxFormsVariablesBuilder {
class FilterTaxFormsTaxForms { class FilterTaxFormsTaxForms {
final String id; final String id;
final EnumValue<TaxFormType> formType; final EnumValue<TaxFormType> formType;
final String title;
final EnumValue<TaxFormStatus> status; final EnumValue<TaxFormStatus> status;
final String staffId; final String staffId;
FilterTaxFormsTaxForms.fromJson(dynamic json): FilterTaxFormsTaxForms.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']), id = nativeFromJson<String>(json['id']),
formType = taxFormTypeDeserializer(json['formType']), formType = taxFormTypeDeserializer(json['formType']),
title = nativeFromJson<String>(json['title']),
status = taxFormStatusDeserializer(json['status']), status = taxFormStatusDeserializer(json['status']),
staffId = nativeFromJson<String>(json['staffId']); staffId = nativeFromJson<String>(json['staffId']);
@override @override
@@ -58,13 +56,12 @@ class FilterTaxFormsTaxForms {
final FilterTaxFormsTaxForms otherTyped = other as FilterTaxFormsTaxForms; final FilterTaxFormsTaxForms otherTyped = other as FilterTaxFormsTaxForms;
return id == otherTyped.id && return id == otherTyped.id &&
formType == otherTyped.formType && formType == otherTyped.formType &&
title == otherTyped.title &&
status == otherTyped.status && status == otherTyped.status &&
staffId == otherTyped.staffId; staffId == otherTyped.staffId;
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, title.hashCode, status.hashCode, staffId.hashCode]); int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, status.hashCode, staffId.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -73,7 +70,6 @@ class FilterTaxFormsTaxForms {
json['formType'] = json['formType'] =
taxFormTypeSerializer(formType) taxFormTypeSerializer(formType)
; ;
json['title'] = nativeToJson<String>(title);
json['status'] = json['status'] =
taxFormStatusSerializer(status) taxFormStatusSerializer(status)
; ;
@@ -84,7 +80,6 @@ class FilterTaxFormsTaxForms {
FilterTaxFormsTaxForms({ FilterTaxFormsTaxForms({
required this.id, required this.id,
required this.formType, required this.formType,
required this.title,
required this.status, required this.status,
required this.staffId, required this.staffId,
}); });

View File

@@ -198,14 +198,12 @@ class GetApplicationByIdApplicationShift {
class GetApplicationByIdApplicationShiftOrder { class GetApplicationByIdApplicationShiftOrder {
final String id; final String id;
final String? eventName; final String? eventName;
final String? location;
final GetApplicationByIdApplicationShiftOrderBusiness business; final GetApplicationByIdApplicationShiftOrderBusiness business;
final GetApplicationByIdApplicationShiftOrderVendor? vendor; final GetApplicationByIdApplicationShiftOrderVendor? vendor;
GetApplicationByIdApplicationShiftOrder.fromJson(dynamic json): GetApplicationByIdApplicationShiftOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']), id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
business = GetApplicationByIdApplicationShiftOrderBusiness.fromJson(json['business']), business = GetApplicationByIdApplicationShiftOrderBusiness.fromJson(json['business']),
vendor = json['vendor'] == null ? null : GetApplicationByIdApplicationShiftOrderVendor.fromJson(json['vendor']); vendor = json['vendor'] == null ? null : GetApplicationByIdApplicationShiftOrderVendor.fromJson(json['vendor']);
@override @override
@@ -220,13 +218,12 @@ class GetApplicationByIdApplicationShiftOrder {
final GetApplicationByIdApplicationShiftOrder otherTyped = other as GetApplicationByIdApplicationShiftOrder; final GetApplicationByIdApplicationShiftOrder otherTyped = other as GetApplicationByIdApplicationShiftOrder;
return id == otherTyped.id && return id == otherTyped.id &&
eventName == otherTyped.eventName && eventName == otherTyped.eventName &&
location == otherTyped.location &&
business == otherTyped.business && business == otherTyped.business &&
vendor == otherTyped.vendor; vendor == otherTyped.vendor;
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode, business.hashCode, vendor.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -235,9 +232,6 @@ class GetApplicationByIdApplicationShiftOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['business'] = business.toJson(); json['business'] = business.toJson();
if (vendor != null) { if (vendor != null) {
json['vendor'] = vendor!.toJson(); json['vendor'] = vendor!.toJson();
@@ -248,7 +242,6 @@ class GetApplicationByIdApplicationShiftOrder {
GetApplicationByIdApplicationShiftOrder({ GetApplicationByIdApplicationShiftOrder({
required this.id, required this.id,
this.eventName, this.eventName,
this.location,
required this.business, required this.business,
this.vendor, this.vendor,
}); });

View File

@@ -198,14 +198,12 @@ class GetApplicationsByShiftIdApplicationsShift {
class GetApplicationsByShiftIdApplicationsShiftOrder { class GetApplicationsByShiftIdApplicationsShiftOrder {
final String id; final String id;
final String? eventName; final String? eventName;
final String? location;
final GetApplicationsByShiftIdApplicationsShiftOrderBusiness business; final GetApplicationsByShiftIdApplicationsShiftOrderBusiness business;
final GetApplicationsByShiftIdApplicationsShiftOrderVendor? vendor; final GetApplicationsByShiftIdApplicationsShiftOrderVendor? vendor;
GetApplicationsByShiftIdApplicationsShiftOrder.fromJson(dynamic json): GetApplicationsByShiftIdApplicationsShiftOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']), id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
business = GetApplicationsByShiftIdApplicationsShiftOrderBusiness.fromJson(json['business']), business = GetApplicationsByShiftIdApplicationsShiftOrderBusiness.fromJson(json['business']),
vendor = json['vendor'] == null ? null : GetApplicationsByShiftIdApplicationsShiftOrderVendor.fromJson(json['vendor']); vendor = json['vendor'] == null ? null : GetApplicationsByShiftIdApplicationsShiftOrderVendor.fromJson(json['vendor']);
@override @override
@@ -220,13 +218,12 @@ class GetApplicationsByShiftIdApplicationsShiftOrder {
final GetApplicationsByShiftIdApplicationsShiftOrder otherTyped = other as GetApplicationsByShiftIdApplicationsShiftOrder; final GetApplicationsByShiftIdApplicationsShiftOrder otherTyped = other as GetApplicationsByShiftIdApplicationsShiftOrder;
return id == otherTyped.id && return id == otherTyped.id &&
eventName == otherTyped.eventName && eventName == otherTyped.eventName &&
location == otherTyped.location &&
business == otherTyped.business && business == otherTyped.business &&
vendor == otherTyped.vendor; vendor == otherTyped.vendor;
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode, business.hashCode, vendor.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -235,9 +232,6 @@ class GetApplicationsByShiftIdApplicationsShiftOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['business'] = business.toJson(); json['business'] = business.toJson();
if (vendor != null) { if (vendor != null) {
json['vendor'] = vendor!.toJson(); json['vendor'] = vendor!.toJson();
@@ -248,7 +242,6 @@ class GetApplicationsByShiftIdApplicationsShiftOrder {
GetApplicationsByShiftIdApplicationsShiftOrder({ GetApplicationsByShiftIdApplicationsShiftOrder({
required this.id, required this.id,
this.eventName, this.eventName,
this.location,
required this.business, required this.business,
this.vendor, this.vendor,
}); });

View File

@@ -209,14 +209,12 @@ class GetApplicationsByShiftIdAndStatusApplicationsShift {
class GetApplicationsByShiftIdAndStatusApplicationsShiftOrder { class GetApplicationsByShiftIdAndStatusApplicationsShiftOrder {
final String id; final String id;
final String? eventName; final String? eventName;
final String? location;
final GetApplicationsByShiftIdAndStatusApplicationsShiftOrderBusiness business; final GetApplicationsByShiftIdAndStatusApplicationsShiftOrderBusiness business;
final GetApplicationsByShiftIdAndStatusApplicationsShiftOrderVendor? vendor; final GetApplicationsByShiftIdAndStatusApplicationsShiftOrderVendor? vendor;
GetApplicationsByShiftIdAndStatusApplicationsShiftOrder.fromJson(dynamic json): GetApplicationsByShiftIdAndStatusApplicationsShiftOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']), id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
business = GetApplicationsByShiftIdAndStatusApplicationsShiftOrderBusiness.fromJson(json['business']), business = GetApplicationsByShiftIdAndStatusApplicationsShiftOrderBusiness.fromJson(json['business']),
vendor = json['vendor'] == null ? null : GetApplicationsByShiftIdAndStatusApplicationsShiftOrderVendor.fromJson(json['vendor']); vendor = json['vendor'] == null ? null : GetApplicationsByShiftIdAndStatusApplicationsShiftOrderVendor.fromJson(json['vendor']);
@override @override
@@ -231,13 +229,12 @@ class GetApplicationsByShiftIdAndStatusApplicationsShiftOrder {
final GetApplicationsByShiftIdAndStatusApplicationsShiftOrder otherTyped = other as GetApplicationsByShiftIdAndStatusApplicationsShiftOrder; final GetApplicationsByShiftIdAndStatusApplicationsShiftOrder otherTyped = other as GetApplicationsByShiftIdAndStatusApplicationsShiftOrder;
return id == otherTyped.id && return id == otherTyped.id &&
eventName == otherTyped.eventName && eventName == otherTyped.eventName &&
location == otherTyped.location &&
business == otherTyped.business && business == otherTyped.business &&
vendor == otherTyped.vendor; vendor == otherTyped.vendor;
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode, business.hashCode, vendor.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -246,9 +243,6 @@ class GetApplicationsByShiftIdAndStatusApplicationsShiftOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['business'] = business.toJson(); json['business'] = business.toJson();
if (vendor != null) { if (vendor != null) {
json['vendor'] = vendor!.toJson(); json['vendor'] = vendor!.toJson();
@@ -259,7 +253,6 @@ class GetApplicationsByShiftIdAndStatusApplicationsShiftOrder {
GetApplicationsByShiftIdAndStatusApplicationsShiftOrder({ GetApplicationsByShiftIdAndStatusApplicationsShiftOrder({
required this.id, required this.id,
this.eventName, this.eventName,
this.location,
required this.business, required this.business,
this.vendor, this.vendor,
}); });

View File

@@ -208,14 +208,12 @@ class GetApplicationsByStaffIdApplicationsShift {
class GetApplicationsByStaffIdApplicationsShiftOrder { class GetApplicationsByStaffIdApplicationsShiftOrder {
final String id; final String id;
final String? eventName; final String? eventName;
final String? location;
final GetApplicationsByStaffIdApplicationsShiftOrderBusiness business; final GetApplicationsByStaffIdApplicationsShiftOrderBusiness business;
final GetApplicationsByStaffIdApplicationsShiftOrderVendor? vendor; final GetApplicationsByStaffIdApplicationsShiftOrderVendor? vendor;
GetApplicationsByStaffIdApplicationsShiftOrder.fromJson(dynamic json): GetApplicationsByStaffIdApplicationsShiftOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']), id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
business = GetApplicationsByStaffIdApplicationsShiftOrderBusiness.fromJson(json['business']), business = GetApplicationsByStaffIdApplicationsShiftOrderBusiness.fromJson(json['business']),
vendor = json['vendor'] == null ? null : GetApplicationsByStaffIdApplicationsShiftOrderVendor.fromJson(json['vendor']); vendor = json['vendor'] == null ? null : GetApplicationsByStaffIdApplicationsShiftOrderVendor.fromJson(json['vendor']);
@override @override
@@ -230,13 +228,12 @@ class GetApplicationsByStaffIdApplicationsShiftOrder {
final GetApplicationsByStaffIdApplicationsShiftOrder otherTyped = other as GetApplicationsByStaffIdApplicationsShiftOrder; final GetApplicationsByStaffIdApplicationsShiftOrder otherTyped = other as GetApplicationsByStaffIdApplicationsShiftOrder;
return id == otherTyped.id && return id == otherTyped.id &&
eventName == otherTyped.eventName && eventName == otherTyped.eventName &&
location == otherTyped.location &&
business == otherTyped.business && business == otherTyped.business &&
vendor == otherTyped.vendor; vendor == otherTyped.vendor;
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode, business.hashCode, vendor.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -245,9 +242,6 @@ class GetApplicationsByStaffIdApplicationsShiftOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['business'] = business.toJson(); json['business'] = business.toJson();
if (vendor != null) { if (vendor != null) {
json['vendor'] = vendor!.toJson(); json['vendor'] = vendor!.toJson();
@@ -258,7 +252,6 @@ class GetApplicationsByStaffIdApplicationsShiftOrder {
GetApplicationsByStaffIdApplicationsShiftOrder({ GetApplicationsByStaffIdApplicationsShiftOrder({
required this.id, required this.id,
this.eventName, this.eventName,
this.location,
required this.business, required this.business,
this.vendor, this.vendor,
}); });

View File

@@ -321,13 +321,11 @@ class GetInvoiceByIdInvoiceBusiness {
@immutable @immutable
class GetInvoiceByIdInvoiceOrder { class GetInvoiceByIdInvoiceOrder {
final String? eventName; final String? eventName;
final String? hub;
final String? deparment; final String? deparment;
final String? poReference; final String? poReference;
GetInvoiceByIdInvoiceOrder.fromJson(dynamic json): GetInvoiceByIdInvoiceOrder.fromJson(dynamic json):
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']), deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']); poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']);
@override @override
@@ -341,13 +339,12 @@ class GetInvoiceByIdInvoiceOrder {
final GetInvoiceByIdInvoiceOrder otherTyped = other as GetInvoiceByIdInvoiceOrder; final GetInvoiceByIdInvoiceOrder otherTyped = other as GetInvoiceByIdInvoiceOrder;
return eventName == otherTyped.eventName && return eventName == otherTyped.eventName &&
hub == otherTyped.hub &&
deparment == otherTyped.deparment && deparment == otherTyped.deparment &&
poReference == otherTyped.poReference; poReference == otherTyped.poReference;
} }
@override @override
int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]); int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -355,9 +352,6 @@ class GetInvoiceByIdInvoiceOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (deparment != null) { if (deparment != null) {
json['deparment'] = nativeToJson<String?>(deparment); json['deparment'] = nativeToJson<String?>(deparment);
} }
@@ -369,7 +363,6 @@ class GetInvoiceByIdInvoiceOrder {
GetInvoiceByIdInvoiceOrder({ GetInvoiceByIdInvoiceOrder({
this.eventName, this.eventName,
this.hub,
this.deparment, this.deparment,
this.poReference, this.poReference,
}); });

View File

@@ -24,7 +24,6 @@ class GetOrderByIdOrder {
final String? vendorId; final String? vendorId;
final String businessId; final String businessId;
final EnumValue<OrderType> orderType; final EnumValue<OrderType> orderType;
final String? location;
final EnumValue<OrderStatus> status; final EnumValue<OrderStatus> status;
final Timestamp? date; final Timestamp? date;
final Timestamp? startDate; final Timestamp? startDate;
@@ -35,7 +34,6 @@ class GetOrderByIdOrder {
final AnyValue? assignedStaff; final AnyValue? assignedStaff;
final AnyValue? shifts; final AnyValue? shifts;
final int? requested; final int? requested;
final String? hub;
final AnyValue? recurringDays; final AnyValue? recurringDays;
final AnyValue? permanentDays; final AnyValue? permanentDays;
final String? poReference; final String? poReference;
@@ -51,7 +49,6 @@ class GetOrderByIdOrder {
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']), vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
businessId = nativeFromJson<String>(json['businessId']), businessId = nativeFromJson<String>(json['businessId']),
orderType = orderTypeDeserializer(json['orderType']), orderType = orderTypeDeserializer(json['orderType']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
status = orderStatusDeserializer(json['status']), status = orderStatusDeserializer(json['status']),
date = json['date'] == null ? null : Timestamp.fromJson(json['date']), date = json['date'] == null ? null : Timestamp.fromJson(json['date']),
startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']), startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']),
@@ -62,7 +59,6 @@ class GetOrderByIdOrder {
assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']), assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']),
shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']), shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']),
requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']), requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']), recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']), permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']), poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']),
@@ -86,7 +82,6 @@ class GetOrderByIdOrder {
vendorId == otherTyped.vendorId && vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId && businessId == otherTyped.businessId &&
orderType == otherTyped.orderType && orderType == otherTyped.orderType &&
location == otherTyped.location &&
status == otherTyped.status && status == otherTyped.status &&
date == otherTyped.date && date == otherTyped.date &&
startDate == otherTyped.startDate && startDate == otherTyped.startDate &&
@@ -97,7 +92,6 @@ class GetOrderByIdOrder {
assignedStaff == otherTyped.assignedStaff && assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts && shifts == otherTyped.shifts &&
requested == otherTyped.requested && requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays && recurringDays == otherTyped.recurringDays &&
permanentDays == otherTyped.permanentDays && permanentDays == otherTyped.permanentDays &&
poReference == otherTyped.poReference && poReference == otherTyped.poReference &&
@@ -109,7 +103,7 @@ class GetOrderByIdOrder {
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -125,9 +119,6 @@ class GetOrderByIdOrder {
json['orderType'] = json['orderType'] =
orderTypeSerializer(orderType) orderTypeSerializer(orderType)
; ;
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['status'] = json['status'] =
orderStatusSerializer(status) orderStatusSerializer(status)
; ;
@@ -160,9 +151,6 @@ class GetOrderByIdOrder {
if (requested != null) { if (requested != null) {
json['requested'] = nativeToJson<int?>(requested); json['requested'] = nativeToJson<int?>(requested);
} }
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (recurringDays != null) { if (recurringDays != null) {
json['recurringDays'] = recurringDays!.toJson(); json['recurringDays'] = recurringDays!.toJson();
} }
@@ -194,7 +182,6 @@ class GetOrderByIdOrder {
this.vendorId, this.vendorId,
required this.businessId, required this.businessId,
required this.orderType, required this.orderType,
this.location,
required this.status, required this.status,
this.date, this.date,
this.startDate, this.startDate,
@@ -205,7 +192,6 @@ class GetOrderByIdOrder {
this.assignedStaff, this.assignedStaff,
this.shifts, this.shifts,
this.requested, this.requested,
this.hub,
this.recurringDays, this.recurringDays,
this.permanentDays, this.permanentDays,
this.poReference, this.poReference,

View File

@@ -34,7 +34,6 @@ class GetOrdersByBusinessIdOrders {
final String? vendorId; final String? vendorId;
final String businessId; final String businessId;
final EnumValue<OrderType> orderType; final EnumValue<OrderType> orderType;
final String? location;
final EnumValue<OrderStatus> status; final EnumValue<OrderStatus> status;
final Timestamp? date; final Timestamp? date;
final Timestamp? startDate; final Timestamp? startDate;
@@ -45,7 +44,6 @@ class GetOrdersByBusinessIdOrders {
final AnyValue? assignedStaff; final AnyValue? assignedStaff;
final AnyValue? shifts; final AnyValue? shifts;
final int? requested; final int? requested;
final String? hub;
final AnyValue? recurringDays; final AnyValue? recurringDays;
final AnyValue? permanentDays; final AnyValue? permanentDays;
final String? poReference; final String? poReference;
@@ -61,7 +59,6 @@ class GetOrdersByBusinessIdOrders {
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']), vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
businessId = nativeFromJson<String>(json['businessId']), businessId = nativeFromJson<String>(json['businessId']),
orderType = orderTypeDeserializer(json['orderType']), orderType = orderTypeDeserializer(json['orderType']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
status = orderStatusDeserializer(json['status']), status = orderStatusDeserializer(json['status']),
date = json['date'] == null ? null : Timestamp.fromJson(json['date']), date = json['date'] == null ? null : Timestamp.fromJson(json['date']),
startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']), startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']),
@@ -72,7 +69,6 @@ class GetOrdersByBusinessIdOrders {
assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']), assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']),
shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']), shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']),
requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']), requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']), recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']), permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']), poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']),
@@ -96,7 +92,6 @@ class GetOrdersByBusinessIdOrders {
vendorId == otherTyped.vendorId && vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId && businessId == otherTyped.businessId &&
orderType == otherTyped.orderType && orderType == otherTyped.orderType &&
location == otherTyped.location &&
status == otherTyped.status && status == otherTyped.status &&
date == otherTyped.date && date == otherTyped.date &&
startDate == otherTyped.startDate && startDate == otherTyped.startDate &&
@@ -107,7 +102,6 @@ class GetOrdersByBusinessIdOrders {
assignedStaff == otherTyped.assignedStaff && assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts && shifts == otherTyped.shifts &&
requested == otherTyped.requested && requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays && recurringDays == otherTyped.recurringDays &&
permanentDays == otherTyped.permanentDays && permanentDays == otherTyped.permanentDays &&
poReference == otherTyped.poReference && poReference == otherTyped.poReference &&
@@ -119,7 +113,7 @@ class GetOrdersByBusinessIdOrders {
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -135,9 +129,6 @@ class GetOrdersByBusinessIdOrders {
json['orderType'] = json['orderType'] =
orderTypeSerializer(orderType) orderTypeSerializer(orderType)
; ;
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['status'] = json['status'] =
orderStatusSerializer(status) orderStatusSerializer(status)
; ;
@@ -170,9 +161,6 @@ class GetOrdersByBusinessIdOrders {
if (requested != null) { if (requested != null) {
json['requested'] = nativeToJson<int?>(requested); json['requested'] = nativeToJson<int?>(requested);
} }
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (recurringDays != null) { if (recurringDays != null) {
json['recurringDays'] = recurringDays!.toJson(); json['recurringDays'] = recurringDays!.toJson();
} }
@@ -204,7 +192,6 @@ class GetOrdersByBusinessIdOrders {
this.vendorId, this.vendorId,
required this.businessId, required this.businessId,
required this.orderType, required this.orderType,
this.location,
required this.status, required this.status,
this.date, this.date,
this.startDate, this.startDate,
@@ -215,7 +202,6 @@ class GetOrdersByBusinessIdOrders {
this.assignedStaff, this.assignedStaff,
this.shifts, this.shifts,
this.requested, this.requested,
this.hub,
this.recurringDays, this.recurringDays,
this.permanentDays, this.permanentDays,
this.poReference, this.poReference,

View File

@@ -35,7 +35,6 @@ class GetOrdersByDateRangeOrders {
final String? vendorId; final String? vendorId;
final String businessId; final String businessId;
final EnumValue<OrderType> orderType; final EnumValue<OrderType> orderType;
final String? location;
final EnumValue<OrderStatus> status; final EnumValue<OrderStatus> status;
final Timestamp? date; final Timestamp? date;
final Timestamp? startDate; final Timestamp? startDate;
@@ -46,7 +45,6 @@ class GetOrdersByDateRangeOrders {
final AnyValue? assignedStaff; final AnyValue? assignedStaff;
final AnyValue? shifts; final AnyValue? shifts;
final int? requested; final int? requested;
final String? hub;
final AnyValue? recurringDays; final AnyValue? recurringDays;
final AnyValue? permanentDays; final AnyValue? permanentDays;
final String? poReference; final String? poReference;
@@ -62,7 +60,6 @@ class GetOrdersByDateRangeOrders {
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']), vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
businessId = nativeFromJson<String>(json['businessId']), businessId = nativeFromJson<String>(json['businessId']),
orderType = orderTypeDeserializer(json['orderType']), orderType = orderTypeDeserializer(json['orderType']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
status = orderStatusDeserializer(json['status']), status = orderStatusDeserializer(json['status']),
date = json['date'] == null ? null : Timestamp.fromJson(json['date']), date = json['date'] == null ? null : Timestamp.fromJson(json['date']),
startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']), startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']),
@@ -73,7 +70,6 @@ class GetOrdersByDateRangeOrders {
assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']), assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']),
shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']), shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']),
requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']), requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']), recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']), permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']), poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']),
@@ -97,7 +93,6 @@ class GetOrdersByDateRangeOrders {
vendorId == otherTyped.vendorId && vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId && businessId == otherTyped.businessId &&
orderType == otherTyped.orderType && orderType == otherTyped.orderType &&
location == otherTyped.location &&
status == otherTyped.status && status == otherTyped.status &&
date == otherTyped.date && date == otherTyped.date &&
startDate == otherTyped.startDate && startDate == otherTyped.startDate &&
@@ -108,7 +103,6 @@ class GetOrdersByDateRangeOrders {
assignedStaff == otherTyped.assignedStaff && assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts && shifts == otherTyped.shifts &&
requested == otherTyped.requested && requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays && recurringDays == otherTyped.recurringDays &&
permanentDays == otherTyped.permanentDays && permanentDays == otherTyped.permanentDays &&
poReference == otherTyped.poReference && poReference == otherTyped.poReference &&
@@ -120,7 +114,7 @@ class GetOrdersByDateRangeOrders {
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -136,9 +130,6 @@ class GetOrdersByDateRangeOrders {
json['orderType'] = json['orderType'] =
orderTypeSerializer(orderType) orderTypeSerializer(orderType)
; ;
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['status'] = json['status'] =
orderStatusSerializer(status) orderStatusSerializer(status)
; ;
@@ -171,9 +162,6 @@ class GetOrdersByDateRangeOrders {
if (requested != null) { if (requested != null) {
json['requested'] = nativeToJson<int?>(requested); json['requested'] = nativeToJson<int?>(requested);
} }
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (recurringDays != null) { if (recurringDays != null) {
json['recurringDays'] = recurringDays!.toJson(); json['recurringDays'] = recurringDays!.toJson();
} }
@@ -205,7 +193,6 @@ class GetOrdersByDateRangeOrders {
this.vendorId, this.vendorId,
required this.businessId, required this.businessId,
required this.orderType, required this.orderType,
this.location,
required this.status, required this.status,
this.date, this.date,
this.startDate, this.startDate,
@@ -216,7 +203,6 @@ class GetOrdersByDateRangeOrders {
this.assignedStaff, this.assignedStaff,
this.shifts, this.shifts,
this.requested, this.requested,
this.hub,
this.recurringDays, this.recurringDays,
this.permanentDays, this.permanentDays,
this.poReference, this.poReference,

View File

@@ -34,7 +34,6 @@ class GetOrdersByStatusOrders {
final String? vendorId; final String? vendorId;
final String businessId; final String businessId;
final EnumValue<OrderType> orderType; final EnumValue<OrderType> orderType;
final String? location;
final EnumValue<OrderStatus> status; final EnumValue<OrderStatus> status;
final Timestamp? date; final Timestamp? date;
final Timestamp? startDate; final Timestamp? startDate;
@@ -45,7 +44,6 @@ class GetOrdersByStatusOrders {
final AnyValue? assignedStaff; final AnyValue? assignedStaff;
final AnyValue? shifts; final AnyValue? shifts;
final int? requested; final int? requested;
final String? hub;
final AnyValue? recurringDays; final AnyValue? recurringDays;
final AnyValue? permanentDays; final AnyValue? permanentDays;
final String? poReference; final String? poReference;
@@ -61,7 +59,6 @@ class GetOrdersByStatusOrders {
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']), vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
businessId = nativeFromJson<String>(json['businessId']), businessId = nativeFromJson<String>(json['businessId']),
orderType = orderTypeDeserializer(json['orderType']), orderType = orderTypeDeserializer(json['orderType']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
status = orderStatusDeserializer(json['status']), status = orderStatusDeserializer(json['status']),
date = json['date'] == null ? null : Timestamp.fromJson(json['date']), date = json['date'] == null ? null : Timestamp.fromJson(json['date']),
startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']), startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']),
@@ -72,7 +69,6 @@ class GetOrdersByStatusOrders {
assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']), assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']),
shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']), shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']),
requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']), requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']), recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']), permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']), poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']),
@@ -96,7 +92,6 @@ class GetOrdersByStatusOrders {
vendorId == otherTyped.vendorId && vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId && businessId == otherTyped.businessId &&
orderType == otherTyped.orderType && orderType == otherTyped.orderType &&
location == otherTyped.location &&
status == otherTyped.status && status == otherTyped.status &&
date == otherTyped.date && date == otherTyped.date &&
startDate == otherTyped.startDate && startDate == otherTyped.startDate &&
@@ -107,7 +102,6 @@ class GetOrdersByStatusOrders {
assignedStaff == otherTyped.assignedStaff && assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts && shifts == otherTyped.shifts &&
requested == otherTyped.requested && requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays && recurringDays == otherTyped.recurringDays &&
permanentDays == otherTyped.permanentDays && permanentDays == otherTyped.permanentDays &&
poReference == otherTyped.poReference && poReference == otherTyped.poReference &&
@@ -119,7 +113,7 @@ class GetOrdersByStatusOrders {
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -135,9 +129,6 @@ class GetOrdersByStatusOrders {
json['orderType'] = json['orderType'] =
orderTypeSerializer(orderType) orderTypeSerializer(orderType)
; ;
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['status'] = json['status'] =
orderStatusSerializer(status) orderStatusSerializer(status)
; ;
@@ -170,9 +161,6 @@ class GetOrdersByStatusOrders {
if (requested != null) { if (requested != null) {
json['requested'] = nativeToJson<int?>(requested); json['requested'] = nativeToJson<int?>(requested);
} }
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (recurringDays != null) { if (recurringDays != null) {
json['recurringDays'] = recurringDays!.toJson(); json['recurringDays'] = recurringDays!.toJson();
} }
@@ -204,7 +192,6 @@ class GetOrdersByStatusOrders {
this.vendorId, this.vendorId,
required this.businessId, required this.businessId,
required this.orderType, required this.orderType,
this.location,
required this.status, required this.status,
this.date, this.date,
this.startDate, this.startDate,
@@ -215,7 +202,6 @@ class GetOrdersByStatusOrders {
this.assignedStaff, this.assignedStaff,
this.shifts, this.shifts,
this.requested, this.requested,
this.hub,
this.recurringDays, this.recurringDays,
this.permanentDays, this.permanentDays,
this.poReference, this.poReference,

View File

@@ -34,7 +34,6 @@ class GetOrdersByVendorIdOrders {
final String? vendorId; final String? vendorId;
final String businessId; final String businessId;
final EnumValue<OrderType> orderType; final EnumValue<OrderType> orderType;
final String? location;
final EnumValue<OrderStatus> status; final EnumValue<OrderStatus> status;
final Timestamp? date; final Timestamp? date;
final Timestamp? startDate; final Timestamp? startDate;
@@ -45,7 +44,6 @@ class GetOrdersByVendorIdOrders {
final AnyValue? assignedStaff; final AnyValue? assignedStaff;
final AnyValue? shifts; final AnyValue? shifts;
final int? requested; final int? requested;
final String? hub;
final AnyValue? recurringDays; final AnyValue? recurringDays;
final AnyValue? permanentDays; final AnyValue? permanentDays;
final String? poReference; final String? poReference;
@@ -61,7 +59,6 @@ class GetOrdersByVendorIdOrders {
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']), vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
businessId = nativeFromJson<String>(json['businessId']), businessId = nativeFromJson<String>(json['businessId']),
orderType = orderTypeDeserializer(json['orderType']), orderType = orderTypeDeserializer(json['orderType']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
status = orderStatusDeserializer(json['status']), status = orderStatusDeserializer(json['status']),
date = json['date'] == null ? null : Timestamp.fromJson(json['date']), date = json['date'] == null ? null : Timestamp.fromJson(json['date']),
startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']), startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']),
@@ -72,7 +69,6 @@ class GetOrdersByVendorIdOrders {
assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']), assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']),
shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']), shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']),
requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']), requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']), recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']), permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']), poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']),
@@ -96,7 +92,6 @@ class GetOrdersByVendorIdOrders {
vendorId == otherTyped.vendorId && vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId && businessId == otherTyped.businessId &&
orderType == otherTyped.orderType && orderType == otherTyped.orderType &&
location == otherTyped.location &&
status == otherTyped.status && status == otherTyped.status &&
date == otherTyped.date && date == otherTyped.date &&
startDate == otherTyped.startDate && startDate == otherTyped.startDate &&
@@ -107,7 +102,6 @@ class GetOrdersByVendorIdOrders {
assignedStaff == otherTyped.assignedStaff && assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts && shifts == otherTyped.shifts &&
requested == otherTyped.requested && requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays && recurringDays == otherTyped.recurringDays &&
permanentDays == otherTyped.permanentDays && permanentDays == otherTyped.permanentDays &&
poReference == otherTyped.poReference && poReference == otherTyped.poReference &&
@@ -119,7 +113,7 @@ class GetOrdersByVendorIdOrders {
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -135,9 +129,6 @@ class GetOrdersByVendorIdOrders {
json['orderType'] = json['orderType'] =
orderTypeSerializer(orderType) orderTypeSerializer(orderType)
; ;
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['status'] = json['status'] =
orderStatusSerializer(status) orderStatusSerializer(status)
; ;
@@ -170,9 +161,6 @@ class GetOrdersByVendorIdOrders {
if (requested != null) { if (requested != null) {
json['requested'] = nativeToJson<int?>(requested); json['requested'] = nativeToJson<int?>(requested);
} }
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (recurringDays != null) { if (recurringDays != null) {
json['recurringDays'] = recurringDays!.toJson(); json['recurringDays'] = recurringDays!.toJson();
} }
@@ -204,7 +192,6 @@ class GetOrdersByVendorIdOrders {
this.vendorId, this.vendorId,
required this.businessId, required this.businessId,
required this.orderType, required this.orderType,
this.location,
required this.status, required this.status,
this.date, this.date,
this.startDate, this.startDate,
@@ -215,7 +202,6 @@ class GetOrdersByVendorIdOrders {
this.assignedStaff, this.assignedStaff,
this.shifts, this.shifts,
this.requested, this.requested,
this.hub,
this.recurringDays, this.recurringDays,
this.permanentDays, this.permanentDays,
this.poReference, this.poReference,

View File

@@ -34,7 +34,6 @@ class GetRapidOrdersOrders {
final String? vendorId; final String? vendorId;
final String businessId; final String businessId;
final EnumValue<OrderType> orderType; final EnumValue<OrderType> orderType;
final String? location;
final EnumValue<OrderStatus> status; final EnumValue<OrderStatus> status;
final Timestamp? date; final Timestamp? date;
final Timestamp? startDate; final Timestamp? startDate;
@@ -45,7 +44,6 @@ class GetRapidOrdersOrders {
final AnyValue? assignedStaff; final AnyValue? assignedStaff;
final AnyValue? shifts; final AnyValue? shifts;
final int? requested; final int? requested;
final String? hub;
final AnyValue? recurringDays; final AnyValue? recurringDays;
final AnyValue? permanentDays; final AnyValue? permanentDays;
final String? poReference; final String? poReference;
@@ -61,7 +59,6 @@ class GetRapidOrdersOrders {
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']), vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
businessId = nativeFromJson<String>(json['businessId']), businessId = nativeFromJson<String>(json['businessId']),
orderType = orderTypeDeserializer(json['orderType']), orderType = orderTypeDeserializer(json['orderType']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
status = orderStatusDeserializer(json['status']), status = orderStatusDeserializer(json['status']),
date = json['date'] == null ? null : Timestamp.fromJson(json['date']), date = json['date'] == null ? null : Timestamp.fromJson(json['date']),
startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']), startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']),
@@ -72,7 +69,6 @@ class GetRapidOrdersOrders {
assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']), assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']),
shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']), shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']),
requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']), requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']), recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']), permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']), poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']),
@@ -96,7 +92,6 @@ class GetRapidOrdersOrders {
vendorId == otherTyped.vendorId && vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId && businessId == otherTyped.businessId &&
orderType == otherTyped.orderType && orderType == otherTyped.orderType &&
location == otherTyped.location &&
status == otherTyped.status && status == otherTyped.status &&
date == otherTyped.date && date == otherTyped.date &&
startDate == otherTyped.startDate && startDate == otherTyped.startDate &&
@@ -107,7 +102,6 @@ class GetRapidOrdersOrders {
assignedStaff == otherTyped.assignedStaff && assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts && shifts == otherTyped.shifts &&
requested == otherTyped.requested && requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays && recurringDays == otherTyped.recurringDays &&
permanentDays == otherTyped.permanentDays && permanentDays == otherTyped.permanentDays &&
poReference == otherTyped.poReference && poReference == otherTyped.poReference &&
@@ -119,7 +113,7 @@ class GetRapidOrdersOrders {
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -135,9 +129,6 @@ class GetRapidOrdersOrders {
json['orderType'] = json['orderType'] =
orderTypeSerializer(orderType) orderTypeSerializer(orderType)
; ;
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['status'] = json['status'] =
orderStatusSerializer(status) orderStatusSerializer(status)
; ;
@@ -170,9 +161,6 @@ class GetRapidOrdersOrders {
if (requested != null) { if (requested != null) {
json['requested'] = nativeToJson<int?>(requested); json['requested'] = nativeToJson<int?>(requested);
} }
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (recurringDays != null) { if (recurringDays != null) {
json['recurringDays'] = recurringDays!.toJson(); json['recurringDays'] = recurringDays!.toJson();
} }
@@ -204,7 +192,6 @@ class GetRapidOrdersOrders {
this.vendorId, this.vendorId,
required this.businessId, required this.businessId,
required this.orderType, required this.orderType,
this.location,
required this.status, required this.status,
this.date, this.date,
this.startDate, this.startDate,
@@ -215,7 +202,6 @@ class GetRapidOrdersOrders {
this.assignedStaff, this.assignedStaff,
this.shifts, this.shifts,
this.requested, this.requested,
this.hub,
this.recurringDays, this.recurringDays,
this.permanentDays, this.permanentDays,
this.poReference, this.poReference,

View File

@@ -21,12 +21,8 @@ class GetTaxFormByIdVariablesBuilder {
class GetTaxFormByIdTaxForm { class GetTaxFormByIdTaxForm {
final String id; final String id;
final EnumValue<TaxFormType> formType; final EnumValue<TaxFormType> formType;
final String title;
final String? subtitle;
final String? description;
final EnumValue<TaxFormStatus> status; final EnumValue<TaxFormStatus> status;
final String staffId; final String staffId;
final AnyValue? formData;
final Timestamp? createdAt; final Timestamp? createdAt;
final Timestamp? updatedAt; final Timestamp? updatedAt;
final String? createdBy; final String? createdBy;
@@ -34,12 +30,8 @@ class GetTaxFormByIdTaxForm {
id = nativeFromJson<String>(json['id']), id = nativeFromJson<String>(json['id']),
formType = taxFormTypeDeserializer(json['formType']), formType = taxFormTypeDeserializer(json['formType']),
title = nativeFromJson<String>(json['title']),
subtitle = json['subtitle'] == null ? null : nativeFromJson<String>(json['subtitle']),
description = json['description'] == null ? null : nativeFromJson<String>(json['description']),
status = taxFormStatusDeserializer(json['status']), status = taxFormStatusDeserializer(json['status']),
staffId = nativeFromJson<String>(json['staffId']), staffId = nativeFromJson<String>(json['staffId']),
formData = json['formData'] == null ? null : AnyValue.fromJson(json['formData']),
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']), updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']),
createdBy = json['createdBy'] == null ? null : nativeFromJson<String>(json['createdBy']); createdBy = json['createdBy'] == null ? null : nativeFromJson<String>(json['createdBy']);
@@ -55,19 +47,15 @@ class GetTaxFormByIdTaxForm {
final GetTaxFormByIdTaxForm otherTyped = other as GetTaxFormByIdTaxForm; final GetTaxFormByIdTaxForm otherTyped = other as GetTaxFormByIdTaxForm;
return id == otherTyped.id && return id == otherTyped.id &&
formType == otherTyped.formType && formType == otherTyped.formType &&
title == otherTyped.title &&
subtitle == otherTyped.subtitle &&
description == otherTyped.description &&
status == otherTyped.status && status == otherTyped.status &&
staffId == otherTyped.staffId && staffId == otherTyped.staffId &&
formData == otherTyped.formData &&
createdAt == otherTyped.createdAt && createdAt == otherTyped.createdAt &&
updatedAt == otherTyped.updatedAt && updatedAt == otherTyped.updatedAt &&
createdBy == otherTyped.createdBy; createdBy == otherTyped.createdBy;
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, title.hashCode, subtitle.hashCode, description.hashCode, status.hashCode, staffId.hashCode, formData.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]); int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, status.hashCode, staffId.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -76,20 +64,10 @@ class GetTaxFormByIdTaxForm {
json['formType'] = json['formType'] =
taxFormTypeSerializer(formType) taxFormTypeSerializer(formType)
; ;
json['title'] = nativeToJson<String>(title);
if (subtitle != null) {
json['subtitle'] = nativeToJson<String?>(subtitle);
}
if (description != null) {
json['description'] = nativeToJson<String?>(description);
}
json['status'] = json['status'] =
taxFormStatusSerializer(status) taxFormStatusSerializer(status)
; ;
json['staffId'] = nativeToJson<String>(staffId); json['staffId'] = nativeToJson<String>(staffId);
if (formData != null) {
json['formData'] = formData!.toJson();
}
if (createdAt != null) { if (createdAt != null) {
json['createdAt'] = createdAt!.toJson(); json['createdAt'] = createdAt!.toJson();
} }
@@ -105,12 +83,8 @@ class GetTaxFormByIdTaxForm {
GetTaxFormByIdTaxForm({ GetTaxFormByIdTaxForm({
required this.id, required this.id,
required this.formType, required this.formType,
required this.title,
this.subtitle,
this.description,
required this.status, required this.status,
required this.staffId, required this.staffId,
this.formData,
this.createdAt, this.createdAt,
this.updatedAt, this.updatedAt,
this.createdBy, this.createdBy,

View File

@@ -21,12 +21,8 @@ class GetTaxFormsBystaffIdVariablesBuilder {
class GetTaxFormsBystaffIdTaxForms { class GetTaxFormsBystaffIdTaxForms {
final String id; final String id;
final EnumValue<TaxFormType> formType; final EnumValue<TaxFormType> formType;
final String title;
final String? subtitle;
final String? description;
final EnumValue<TaxFormStatus> status; final EnumValue<TaxFormStatus> status;
final String staffId; final String staffId;
final AnyValue? formData;
final Timestamp? createdAt; final Timestamp? createdAt;
final Timestamp? updatedAt; final Timestamp? updatedAt;
final String? createdBy; final String? createdBy;
@@ -34,12 +30,8 @@ class GetTaxFormsBystaffIdTaxForms {
id = nativeFromJson<String>(json['id']), id = nativeFromJson<String>(json['id']),
formType = taxFormTypeDeserializer(json['formType']), formType = taxFormTypeDeserializer(json['formType']),
title = nativeFromJson<String>(json['title']),
subtitle = json['subtitle'] == null ? null : nativeFromJson<String>(json['subtitle']),
description = json['description'] == null ? null : nativeFromJson<String>(json['description']),
status = taxFormStatusDeserializer(json['status']), status = taxFormStatusDeserializer(json['status']),
staffId = nativeFromJson<String>(json['staffId']), staffId = nativeFromJson<String>(json['staffId']),
formData = json['formData'] == null ? null : AnyValue.fromJson(json['formData']),
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']), updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']),
createdBy = json['createdBy'] == null ? null : nativeFromJson<String>(json['createdBy']); createdBy = json['createdBy'] == null ? null : nativeFromJson<String>(json['createdBy']);
@@ -55,19 +47,15 @@ class GetTaxFormsBystaffIdTaxForms {
final GetTaxFormsBystaffIdTaxForms otherTyped = other as GetTaxFormsBystaffIdTaxForms; final GetTaxFormsBystaffIdTaxForms otherTyped = other as GetTaxFormsBystaffIdTaxForms;
return id == otherTyped.id && return id == otherTyped.id &&
formType == otherTyped.formType && formType == otherTyped.formType &&
title == otherTyped.title &&
subtitle == otherTyped.subtitle &&
description == otherTyped.description &&
status == otherTyped.status && status == otherTyped.status &&
staffId == otherTyped.staffId && staffId == otherTyped.staffId &&
formData == otherTyped.formData &&
createdAt == otherTyped.createdAt && createdAt == otherTyped.createdAt &&
updatedAt == otherTyped.updatedAt && updatedAt == otherTyped.updatedAt &&
createdBy == otherTyped.createdBy; createdBy == otherTyped.createdBy;
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, title.hashCode, subtitle.hashCode, description.hashCode, status.hashCode, staffId.hashCode, formData.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]); int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, status.hashCode, staffId.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -76,20 +64,10 @@ class GetTaxFormsBystaffIdTaxForms {
json['formType'] = json['formType'] =
taxFormTypeSerializer(formType) taxFormTypeSerializer(formType)
; ;
json['title'] = nativeToJson<String>(title);
if (subtitle != null) {
json['subtitle'] = nativeToJson<String?>(subtitle);
}
if (description != null) {
json['description'] = nativeToJson<String?>(description);
}
json['status'] = json['status'] =
taxFormStatusSerializer(status) taxFormStatusSerializer(status)
; ;
json['staffId'] = nativeToJson<String>(staffId); json['staffId'] = nativeToJson<String>(staffId);
if (formData != null) {
json['formData'] = formData!.toJson();
}
if (createdAt != null) { if (createdAt != null) {
json['createdAt'] = createdAt!.toJson(); json['createdAt'] = createdAt!.toJson();
} }
@@ -105,12 +83,8 @@ class GetTaxFormsBystaffIdTaxForms {
GetTaxFormsBystaffIdTaxForms({ GetTaxFormsBystaffIdTaxForms({
required this.id, required this.id,
required this.formType, required this.formType,
required this.title,
this.subtitle,
this.description,
required this.status, required this.status,
required this.staffId, required this.staffId,
this.formData,
this.createdAt, this.createdAt,
this.updatedAt, this.updatedAt,
this.createdBy, this.createdBy,

View File

@@ -197,14 +197,12 @@ class ListApplicationsApplicationsShift {
class ListApplicationsApplicationsShiftOrder { class ListApplicationsApplicationsShiftOrder {
final String id; final String id;
final String? eventName; final String? eventName;
final String? location;
final ListApplicationsApplicationsShiftOrderBusiness business; final ListApplicationsApplicationsShiftOrderBusiness business;
final ListApplicationsApplicationsShiftOrderVendor? vendor; final ListApplicationsApplicationsShiftOrderVendor? vendor;
ListApplicationsApplicationsShiftOrder.fromJson(dynamic json): ListApplicationsApplicationsShiftOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']), id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
business = ListApplicationsApplicationsShiftOrderBusiness.fromJson(json['business']), business = ListApplicationsApplicationsShiftOrderBusiness.fromJson(json['business']),
vendor = json['vendor'] == null ? null : ListApplicationsApplicationsShiftOrderVendor.fromJson(json['vendor']); vendor = json['vendor'] == null ? null : ListApplicationsApplicationsShiftOrderVendor.fromJson(json['vendor']);
@override @override
@@ -219,13 +217,12 @@ class ListApplicationsApplicationsShiftOrder {
final ListApplicationsApplicationsShiftOrder otherTyped = other as ListApplicationsApplicationsShiftOrder; final ListApplicationsApplicationsShiftOrder otherTyped = other as ListApplicationsApplicationsShiftOrder;
return id == otherTyped.id && return id == otherTyped.id &&
eventName == otherTyped.eventName && eventName == otherTyped.eventName &&
location == otherTyped.location &&
business == otherTyped.business && business == otherTyped.business &&
vendor == otherTyped.vendor; vendor == otherTyped.vendor;
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode, business.hashCode, vendor.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -234,9 +231,6 @@ class ListApplicationsApplicationsShiftOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['business'] = business.toJson(); json['business'] = business.toJson();
if (vendor != null) { if (vendor != null) {
json['vendor'] = vendor!.toJson(); json['vendor'] = vendor!.toJson();
@@ -247,7 +241,6 @@ class ListApplicationsApplicationsShiftOrder {
ListApplicationsApplicationsShiftOrder({ ListApplicationsApplicationsShiftOrder({
required this.id, required this.id,
this.eventName, this.eventName,
this.location,
required this.business, required this.business,
this.vendor, this.vendor,
}); });

View File

@@ -331,13 +331,11 @@ class ListInvoicesInvoicesBusiness {
@immutable @immutable
class ListInvoicesInvoicesOrder { class ListInvoicesInvoicesOrder {
final String? eventName; final String? eventName;
final String? hub;
final String? deparment; final String? deparment;
final String? poReference; final String? poReference;
ListInvoicesInvoicesOrder.fromJson(dynamic json): ListInvoicesInvoicesOrder.fromJson(dynamic json):
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']), deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']); poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']);
@override @override
@@ -351,13 +349,12 @@ class ListInvoicesInvoicesOrder {
final ListInvoicesInvoicesOrder otherTyped = other as ListInvoicesInvoicesOrder; final ListInvoicesInvoicesOrder otherTyped = other as ListInvoicesInvoicesOrder;
return eventName == otherTyped.eventName && return eventName == otherTyped.eventName &&
hub == otherTyped.hub &&
deparment == otherTyped.deparment && deparment == otherTyped.deparment &&
poReference == otherTyped.poReference; poReference == otherTyped.poReference;
} }
@override @override
int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]); int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -365,9 +362,6 @@ class ListInvoicesInvoicesOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (deparment != null) { if (deparment != null) {
json['deparment'] = nativeToJson<String?>(deparment); json['deparment'] = nativeToJson<String?>(deparment);
} }
@@ -379,7 +373,6 @@ class ListInvoicesInvoicesOrder {
ListInvoicesInvoicesOrder({ ListInvoicesInvoicesOrder({
this.eventName, this.eventName,
this.hub,
this.deparment, this.deparment,
this.poReference, this.poReference,
}); });

View File

@@ -331,13 +331,11 @@ class ListInvoicesByBusinessIdInvoicesBusiness {
@immutable @immutable
class ListInvoicesByBusinessIdInvoicesOrder { class ListInvoicesByBusinessIdInvoicesOrder {
final String? eventName; final String? eventName;
final String? hub;
final String? deparment; final String? deparment;
final String? poReference; final String? poReference;
ListInvoicesByBusinessIdInvoicesOrder.fromJson(dynamic json): ListInvoicesByBusinessIdInvoicesOrder.fromJson(dynamic json):
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']), deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']); poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']);
@override @override
@@ -351,13 +349,12 @@ class ListInvoicesByBusinessIdInvoicesOrder {
final ListInvoicesByBusinessIdInvoicesOrder otherTyped = other as ListInvoicesByBusinessIdInvoicesOrder; final ListInvoicesByBusinessIdInvoicesOrder otherTyped = other as ListInvoicesByBusinessIdInvoicesOrder;
return eventName == otherTyped.eventName && return eventName == otherTyped.eventName &&
hub == otherTyped.hub &&
deparment == otherTyped.deparment && deparment == otherTyped.deparment &&
poReference == otherTyped.poReference; poReference == otherTyped.poReference;
} }
@override @override
int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]); int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -365,9 +362,6 @@ class ListInvoicesByBusinessIdInvoicesOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (deparment != null) { if (deparment != null) {
json['deparment'] = nativeToJson<String?>(deparment); json['deparment'] = nativeToJson<String?>(deparment);
} }
@@ -379,7 +373,6 @@ class ListInvoicesByBusinessIdInvoicesOrder {
ListInvoicesByBusinessIdInvoicesOrder({ ListInvoicesByBusinessIdInvoicesOrder({
this.eventName, this.eventName,
this.hub,
this.deparment, this.deparment,
this.poReference, this.poReference,
}); });

View File

@@ -331,13 +331,11 @@ class ListInvoicesByOrderIdInvoicesBusiness {
@immutable @immutable
class ListInvoicesByOrderIdInvoicesOrder { class ListInvoicesByOrderIdInvoicesOrder {
final String? eventName; final String? eventName;
final String? hub;
final String? deparment; final String? deparment;
final String? poReference; final String? poReference;
ListInvoicesByOrderIdInvoicesOrder.fromJson(dynamic json): ListInvoicesByOrderIdInvoicesOrder.fromJson(dynamic json):
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']), deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']); poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']);
@override @override
@@ -351,13 +349,12 @@ class ListInvoicesByOrderIdInvoicesOrder {
final ListInvoicesByOrderIdInvoicesOrder otherTyped = other as ListInvoicesByOrderIdInvoicesOrder; final ListInvoicesByOrderIdInvoicesOrder otherTyped = other as ListInvoicesByOrderIdInvoicesOrder;
return eventName == otherTyped.eventName && return eventName == otherTyped.eventName &&
hub == otherTyped.hub &&
deparment == otherTyped.deparment && deparment == otherTyped.deparment &&
poReference == otherTyped.poReference; poReference == otherTyped.poReference;
} }
@override @override
int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]); int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -365,9 +362,6 @@ class ListInvoicesByOrderIdInvoicesOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (deparment != null) { if (deparment != null) {
json['deparment'] = nativeToJson<String?>(deparment); json['deparment'] = nativeToJson<String?>(deparment);
} }
@@ -379,7 +373,6 @@ class ListInvoicesByOrderIdInvoicesOrder {
ListInvoicesByOrderIdInvoicesOrder({ ListInvoicesByOrderIdInvoicesOrder({
this.eventName, this.eventName,
this.hub,
this.deparment, this.deparment,
this.poReference, this.poReference,
}); });

View File

@@ -331,13 +331,11 @@ class ListInvoicesByStatusInvoicesBusiness {
@immutable @immutable
class ListInvoicesByStatusInvoicesOrder { class ListInvoicesByStatusInvoicesOrder {
final String? eventName; final String? eventName;
final String? hub;
final String? deparment; final String? deparment;
final String? poReference; final String? poReference;
ListInvoicesByStatusInvoicesOrder.fromJson(dynamic json): ListInvoicesByStatusInvoicesOrder.fromJson(dynamic json):
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']), deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']); poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']);
@override @override
@@ -351,13 +349,12 @@ class ListInvoicesByStatusInvoicesOrder {
final ListInvoicesByStatusInvoicesOrder otherTyped = other as ListInvoicesByStatusInvoicesOrder; final ListInvoicesByStatusInvoicesOrder otherTyped = other as ListInvoicesByStatusInvoicesOrder;
return eventName == otherTyped.eventName && return eventName == otherTyped.eventName &&
hub == otherTyped.hub &&
deparment == otherTyped.deparment && deparment == otherTyped.deparment &&
poReference == otherTyped.poReference; poReference == otherTyped.poReference;
} }
@override @override
int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]); int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -365,9 +362,6 @@ class ListInvoicesByStatusInvoicesOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (deparment != null) { if (deparment != null) {
json['deparment'] = nativeToJson<String?>(deparment); json['deparment'] = nativeToJson<String?>(deparment);
} }
@@ -379,7 +373,6 @@ class ListInvoicesByStatusInvoicesOrder {
ListInvoicesByStatusInvoicesOrder({ ListInvoicesByStatusInvoicesOrder({
this.eventName, this.eventName,
this.hub,
this.deparment, this.deparment,
this.poReference, this.poReference,
}); });

View File

@@ -331,13 +331,11 @@ class ListInvoicesByVendorIdInvoicesBusiness {
@immutable @immutable
class ListInvoicesByVendorIdInvoicesOrder { class ListInvoicesByVendorIdInvoicesOrder {
final String? eventName; final String? eventName;
final String? hub;
final String? deparment; final String? deparment;
final String? poReference; final String? poReference;
ListInvoicesByVendorIdInvoicesOrder.fromJson(dynamic json): ListInvoicesByVendorIdInvoicesOrder.fromJson(dynamic json):
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']), deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']); poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']);
@override @override
@@ -351,13 +349,12 @@ class ListInvoicesByVendorIdInvoicesOrder {
final ListInvoicesByVendorIdInvoicesOrder otherTyped = other as ListInvoicesByVendorIdInvoicesOrder; final ListInvoicesByVendorIdInvoicesOrder otherTyped = other as ListInvoicesByVendorIdInvoicesOrder;
return eventName == otherTyped.eventName && return eventName == otherTyped.eventName &&
hub == otherTyped.hub &&
deparment == otherTyped.deparment && deparment == otherTyped.deparment &&
poReference == otherTyped.poReference; poReference == otherTyped.poReference;
} }
@override @override
int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]); int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -365,9 +362,6 @@ class ListInvoicesByVendorIdInvoicesOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (deparment != null) { if (deparment != null) {
json['deparment'] = nativeToJson<String?>(deparment); json['deparment'] = nativeToJson<String?>(deparment);
} }
@@ -379,7 +373,6 @@ class ListInvoicesByVendorIdInvoicesOrder {
ListInvoicesByVendorIdInvoicesOrder({ ListInvoicesByVendorIdInvoicesOrder({
this.eventName, this.eventName,
this.hub,
this.deparment, this.deparment,
this.poReference, this.poReference,
}); });

View File

@@ -34,7 +34,6 @@ class ListOrdersOrders {
final String? vendorId; final String? vendorId;
final String businessId; final String businessId;
final EnumValue<OrderType> orderType; final EnumValue<OrderType> orderType;
final String? location;
final EnumValue<OrderStatus> status; final EnumValue<OrderStatus> status;
final Timestamp? date; final Timestamp? date;
final Timestamp? startDate; final Timestamp? startDate;
@@ -45,7 +44,6 @@ class ListOrdersOrders {
final AnyValue? assignedStaff; final AnyValue? assignedStaff;
final AnyValue? shifts; final AnyValue? shifts;
final int? requested; final int? requested;
final String? hub;
final AnyValue? recurringDays; final AnyValue? recurringDays;
final AnyValue? permanentDays; final AnyValue? permanentDays;
final String? poReference; final String? poReference;
@@ -61,7 +59,6 @@ class ListOrdersOrders {
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']), vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
businessId = nativeFromJson<String>(json['businessId']), businessId = nativeFromJson<String>(json['businessId']),
orderType = orderTypeDeserializer(json['orderType']), orderType = orderTypeDeserializer(json['orderType']),
location = json['location'] == null ? null : nativeFromJson<String>(json['location']),
status = orderStatusDeserializer(json['status']), status = orderStatusDeserializer(json['status']),
date = json['date'] == null ? null : Timestamp.fromJson(json['date']), date = json['date'] == null ? null : Timestamp.fromJson(json['date']),
startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']), startDate = json['startDate'] == null ? null : Timestamp.fromJson(json['startDate']),
@@ -72,7 +69,6 @@ class ListOrdersOrders {
assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']), assignedStaff = json['assignedStaff'] == null ? null : AnyValue.fromJson(json['assignedStaff']),
shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']), shifts = json['shifts'] == null ? null : AnyValue.fromJson(json['shifts']),
requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']), requested = json['requested'] == null ? null : nativeFromJson<int>(json['requested']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']), recurringDays = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']),
permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']), permanentDays = json['permanentDays'] == null ? null : AnyValue.fromJson(json['permanentDays']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']), poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']),
@@ -96,7 +92,6 @@ class ListOrdersOrders {
vendorId == otherTyped.vendorId && vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId && businessId == otherTyped.businessId &&
orderType == otherTyped.orderType && orderType == otherTyped.orderType &&
location == otherTyped.location &&
status == otherTyped.status && status == otherTyped.status &&
date == otherTyped.date && date == otherTyped.date &&
startDate == otherTyped.startDate && startDate == otherTyped.startDate &&
@@ -107,7 +102,6 @@ class ListOrdersOrders {
assignedStaff == otherTyped.assignedStaff && assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts && shifts == otherTyped.shifts &&
requested == otherTyped.requested && requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays && recurringDays == otherTyped.recurringDays &&
permanentDays == otherTyped.permanentDays && permanentDays == otherTyped.permanentDays &&
poReference == otherTyped.poReference && poReference == otherTyped.poReference &&
@@ -119,7 +113,7 @@ class ListOrdersOrders {
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, vendorId.hashCode, businessId.hashCode, orderType.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, duration.hashCode, lunchBreak.hashCode, total.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, poReference.hashCode, detectedConflicts.hashCode, notes.hashCode, createdAt.hashCode, business.hashCode, vendor.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -135,9 +129,6 @@ class ListOrdersOrders {
json['orderType'] = json['orderType'] =
orderTypeSerializer(orderType) orderTypeSerializer(orderType)
; ;
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
json['status'] = json['status'] =
orderStatusSerializer(status) orderStatusSerializer(status)
; ;
@@ -170,9 +161,6 @@ class ListOrdersOrders {
if (requested != null) { if (requested != null) {
json['requested'] = nativeToJson<int?>(requested); json['requested'] = nativeToJson<int?>(requested);
} }
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (recurringDays != null) { if (recurringDays != null) {
json['recurringDays'] = recurringDays!.toJson(); json['recurringDays'] = recurringDays!.toJson();
} }
@@ -204,7 +192,6 @@ class ListOrdersOrders {
this.vendorId, this.vendorId,
required this.businessId, required this.businessId,
required this.orderType, required this.orderType,
this.location,
required this.status, required this.status,
this.date, this.date,
this.startDate, this.startDate,
@@ -215,7 +202,6 @@ class ListOrdersOrders {
this.assignedStaff, this.assignedStaff,
this.shifts, this.shifts,
this.requested, this.requested,
this.hub,
this.recurringDays, this.recurringDays,
this.permanentDays, this.permanentDays,
this.poReference, this.poReference,

View File

@@ -331,13 +331,11 @@ class ListOverdueInvoicesInvoicesBusiness {
@immutable @immutable
class ListOverdueInvoicesInvoicesOrder { class ListOverdueInvoicesInvoicesOrder {
final String? eventName; final String? eventName;
final String? hub;
final String? deparment; final String? deparment;
final String? poReference; final String? poReference;
ListOverdueInvoicesInvoicesOrder.fromJson(dynamic json): ListOverdueInvoicesInvoicesOrder.fromJson(dynamic json):
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']),
hub = json['hub'] == null ? null : nativeFromJson<String>(json['hub']),
deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']), deparment = json['deparment'] == null ? null : nativeFromJson<String>(json['deparment']),
poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']); poReference = json['poReference'] == null ? null : nativeFromJson<String>(json['poReference']);
@override @override
@@ -351,13 +349,12 @@ class ListOverdueInvoicesInvoicesOrder {
final ListOverdueInvoicesInvoicesOrder otherTyped = other as ListOverdueInvoicesInvoicesOrder; final ListOverdueInvoicesInvoicesOrder otherTyped = other as ListOverdueInvoicesInvoicesOrder;
return eventName == otherTyped.eventName && return eventName == otherTyped.eventName &&
hub == otherTyped.hub &&
deparment == otherTyped.deparment && deparment == otherTyped.deparment &&
poReference == otherTyped.poReference; poReference == otherTyped.poReference;
} }
@override @override
int get hashCode => Object.hashAll([eventName.hashCode, hub.hashCode, deparment.hashCode, poReference.hashCode]); int get hashCode => Object.hashAll([eventName.hashCode, deparment.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -365,9 +362,6 @@ class ListOverdueInvoicesInvoicesOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (hub != null) {
json['hub'] = nativeToJson<String?>(hub);
}
if (deparment != null) { if (deparment != null) {
json['deparment'] = nativeToJson<String?>(deparment); json['deparment'] = nativeToJson<String?>(deparment);
} }
@@ -379,7 +373,6 @@ class ListOverdueInvoicesInvoicesOrder {
ListOverdueInvoicesInvoicesOrder({ ListOverdueInvoicesInvoicesOrder({
this.eventName, this.eventName,
this.hub,
this.deparment, this.deparment,
this.poReference, this.poReference,
}); });

View File

@@ -467,12 +467,10 @@ class ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceVendor {
class ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder { class ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder {
final String id; final String id;
final String? eventName; final String? eventName;
final String? location;
ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder.fromJson(dynamic json): ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']), id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']);
location = json['location'] == null ? null : nativeFromJson<String>(json['location']);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
if(identical(this, other)) { if(identical(this, other)) {
@@ -484,12 +482,11 @@ class ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder {
final ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder; final ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder;
return id == otherTyped.id && return id == otherTyped.id &&
eventName == otherTyped.eventName && eventName == otherTyped.eventName;
location == otherTyped.location;
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -498,16 +495,12 @@ class ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
return json; return json;
} }
ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder({ ListRecentPaymentsByApplicationIdRecentPaymentsInvoiceOrder({
required this.id, required this.id,
this.eventName, this.eventName,
this.location,
}); });
} }

View File

@@ -517,12 +517,10 @@ class ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceVendor {
class ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder { class ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder {
final String id; final String id;
final String? eventName; final String? eventName;
final String? location;
ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder.fromJson(dynamic json): ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']), id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']);
location = json['location'] == null ? null : nativeFromJson<String>(json['location']);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
if(identical(this, other)) { if(identical(this, other)) {
@@ -534,12 +532,11 @@ class ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder {
final ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder; final ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder;
return id == otherTyped.id && return id == otherTyped.id &&
eventName == otherTyped.eventName && eventName == otherTyped.eventName;
location == otherTyped.location;
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -548,16 +545,12 @@ class ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
return json; return json;
} }
ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder({ ListRecentPaymentsByBusinessIdRecentPaymentsInvoiceOrder({
required this.id, required this.id,
this.eventName, this.eventName,
this.location,
}); });
} }

View File

@@ -465,12 +465,10 @@ class ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceVendor {
class ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder { class ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder {
final String id; final String id;
final String? eventName; final String? eventName;
final String? location;
ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder.fromJson(dynamic json): ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']), id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']);
location = json['location'] == null ? null : nativeFromJson<String>(json['location']);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
if(identical(this, other)) { if(identical(this, other)) {
@@ -482,12 +480,11 @@ class ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder {
final ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder; final ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder;
return id == otherTyped.id && return id == otherTyped.id &&
eventName == otherTyped.eventName && eventName == otherTyped.eventName;
location == otherTyped.location;
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -496,16 +493,12 @@ class ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
return json; return json;
} }
ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder({ ListRecentPaymentsByInvoiceIdRecentPaymentsInvoiceOrder({
required this.id, required this.id,
this.eventName, this.eventName,
this.location,
}); });
} }

View File

@@ -460,12 +460,10 @@ class ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceVendor {
class ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder { class ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder {
final String id; final String id;
final String? eventName; final String? eventName;
final String? location;
ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder.fromJson(dynamic json): ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']), id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']);
location = json['location'] == null ? null : nativeFromJson<String>(json['location']);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
if(identical(this, other)) { if(identical(this, other)) {
@@ -477,12 +475,11 @@ class ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder {
final ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder; final ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder;
return id == otherTyped.id && return id == otherTyped.id &&
eventName == otherTyped.eventName && eventName == otherTyped.eventName;
location == otherTyped.location;
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -491,16 +488,12 @@ class ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
return json; return json;
} }
ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder({ ListRecentPaymentsByInvoiceIdsRecentPaymentsInvoiceOrder({
required this.id, required this.id,
this.eventName, this.eventName,
this.location,
}); });
} }

View File

@@ -491,12 +491,10 @@ class ListRecentPaymentsByStaffIdRecentPaymentsInvoiceVendor {
class ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder { class ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder {
final String id; final String id;
final String? eventName; final String? eventName;
final String? location;
ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder.fromJson(dynamic json): ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']), id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']);
location = json['location'] == null ? null : nativeFromJson<String>(json['location']);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
if(identical(this, other)) { if(identical(this, other)) {
@@ -508,12 +506,11 @@ class ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder {
final ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder; final ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder;
return id == otherTyped.id && return id == otherTyped.id &&
eventName == otherTyped.eventName && eventName == otherTyped.eventName;
location == otherTyped.location;
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -522,16 +519,12 @@ class ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
return json; return json;
} }
ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder({ ListRecentPaymentsByStaffIdRecentPaymentsInvoiceOrder({
required this.id, required this.id,
this.eventName, this.eventName,
this.location,
}); });
} }

View File

@@ -460,12 +460,10 @@ class ListRecentPaymentsByStatusRecentPaymentsInvoiceVendor {
class ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder { class ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder {
final String id; final String id;
final String? eventName; final String? eventName;
final String? location;
ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder.fromJson(dynamic json): ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder.fromJson(dynamic json):
id = nativeFromJson<String>(json['id']), id = nativeFromJson<String>(json['id']),
eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']), eventName = json['eventName'] == null ? null : nativeFromJson<String>(json['eventName']);
location = json['location'] == null ? null : nativeFromJson<String>(json['location']);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
if(identical(this, other)) { if(identical(this, other)) {
@@ -477,12 +475,11 @@ class ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder {
final ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder; final ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder otherTyped = other as ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder;
return id == otherTyped.id && return id == otherTyped.id &&
eventName == otherTyped.eventName && eventName == otherTyped.eventName;
location == otherTyped.location;
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode, location.hashCode]); int get hashCode => Object.hashAll([id.hashCode, eventName.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -491,16 +488,12 @@ class ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder {
if (eventName != null) { if (eventName != null) {
json['eventName'] = nativeToJson<String?>(eventName); json['eventName'] = nativeToJson<String?>(eventName);
} }
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
return json; return json;
} }
ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder({ ListRecentPaymentsByStatusRecentPaymentsInvoiceOrder({
required this.id, required this.id,
this.eventName, this.eventName,
this.location,
}); });
} }

View File

@@ -256,12 +256,10 @@ class ListShiftRolesByBusinessAndOrderShiftRolesShift {
class ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder { class ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder {
final String? vendorId; final String? vendorId;
final Timestamp? date; final Timestamp? date;
final String? location;
ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder.fromJson(dynamic json): ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder.fromJson(dynamic json):
vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']), vendorId = json['vendorId'] == null ? null : nativeFromJson<String>(json['vendorId']),
date = json['date'] == null ? null : Timestamp.fromJson(json['date']), date = json['date'] == null ? null : Timestamp.fromJson(json['date']);
location = json['location'] == null ? null : nativeFromJson<String>(json['location']);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
if(identical(this, other)) { if(identical(this, other)) {
@@ -273,12 +271,11 @@ class ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder {
final ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder otherTyped = other as ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder; final ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder otherTyped = other as ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder;
return vendorId == otherTyped.vendorId && return vendorId == otherTyped.vendorId &&
date == otherTyped.date && date == otherTyped.date;
location == otherTyped.location;
} }
@override @override
int get hashCode => Object.hashAll([vendorId.hashCode, date.hashCode, location.hashCode]); int get hashCode => Object.hashAll([vendorId.hashCode, date.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -289,16 +286,12 @@ class ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder {
if (date != null) { if (date != null) {
json['date'] = date!.toJson(); json['date'] = date!.toJson();
} }
if (location != null) {
json['location'] = nativeToJson<String?>(location);
}
return json; return json;
} }
ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder({ ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder({
this.vendorId, this.vendorId,
this.date, this.date,
this.location,
}); });
} }

View File

@@ -20,12 +20,8 @@ class ListTaxFormsVariablesBuilder {
class ListTaxFormsTaxForms { class ListTaxFormsTaxForms {
final String id; final String id;
final EnumValue<TaxFormType> formType; final EnumValue<TaxFormType> formType;
final String title;
final String? subtitle;
final String? description;
final EnumValue<TaxFormStatus> status; final EnumValue<TaxFormStatus> status;
final String staffId; final String staffId;
final AnyValue? formData;
final Timestamp? createdAt; final Timestamp? createdAt;
final Timestamp? updatedAt; final Timestamp? updatedAt;
final String? createdBy; final String? createdBy;
@@ -33,12 +29,8 @@ class ListTaxFormsTaxForms {
id = nativeFromJson<String>(json['id']), id = nativeFromJson<String>(json['id']),
formType = taxFormTypeDeserializer(json['formType']), formType = taxFormTypeDeserializer(json['formType']),
title = nativeFromJson<String>(json['title']),
subtitle = json['subtitle'] == null ? null : nativeFromJson<String>(json['subtitle']),
description = json['description'] == null ? null : nativeFromJson<String>(json['description']),
status = taxFormStatusDeserializer(json['status']), status = taxFormStatusDeserializer(json['status']),
staffId = nativeFromJson<String>(json['staffId']), staffId = nativeFromJson<String>(json['staffId']),
formData = json['formData'] == null ? null : AnyValue.fromJson(json['formData']),
createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']), createdAt = json['createdAt'] == null ? null : Timestamp.fromJson(json['createdAt']),
updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']), updatedAt = json['updatedAt'] == null ? null : Timestamp.fromJson(json['updatedAt']),
createdBy = json['createdBy'] == null ? null : nativeFromJson<String>(json['createdBy']); createdBy = json['createdBy'] == null ? null : nativeFromJson<String>(json['createdBy']);
@@ -54,19 +46,15 @@ class ListTaxFormsTaxForms {
final ListTaxFormsTaxForms otherTyped = other as ListTaxFormsTaxForms; final ListTaxFormsTaxForms otherTyped = other as ListTaxFormsTaxForms;
return id == otherTyped.id && return id == otherTyped.id &&
formType == otherTyped.formType && formType == otherTyped.formType &&
title == otherTyped.title &&
subtitle == otherTyped.subtitle &&
description == otherTyped.description &&
status == otherTyped.status && status == otherTyped.status &&
staffId == otherTyped.staffId && staffId == otherTyped.staffId &&
formData == otherTyped.formData &&
createdAt == otherTyped.createdAt && createdAt == otherTyped.createdAt &&
updatedAt == otherTyped.updatedAt && updatedAt == otherTyped.updatedAt &&
createdBy == otherTyped.createdBy; createdBy == otherTyped.createdBy;
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, title.hashCode, subtitle.hashCode, description.hashCode, status.hashCode, staffId.hashCode, formData.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]); int get hashCode => Object.hashAll([id.hashCode, formType.hashCode, status.hashCode, staffId.hashCode, createdAt.hashCode, updatedAt.hashCode, createdBy.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -75,20 +63,10 @@ class ListTaxFormsTaxForms {
json['formType'] = json['formType'] =
taxFormTypeSerializer(formType) taxFormTypeSerializer(formType)
; ;
json['title'] = nativeToJson<String>(title);
if (subtitle != null) {
json['subtitle'] = nativeToJson<String?>(subtitle);
}
if (description != null) {
json['description'] = nativeToJson<String?>(description);
}
json['status'] = json['status'] =
taxFormStatusSerializer(status) taxFormStatusSerializer(status)
; ;
json['staffId'] = nativeToJson<String>(staffId); json['staffId'] = nativeToJson<String>(staffId);
if (formData != null) {
json['formData'] = formData!.toJson();
}
if (createdAt != null) { if (createdAt != null) {
json['createdAt'] = createdAt!.toJson(); json['createdAt'] = createdAt!.toJson();
} }
@@ -104,12 +82,8 @@ class ListTaxFormsTaxForms {
ListTaxFormsTaxForms({ ListTaxFormsTaxForms({
required this.id, required this.id,
required this.formType, required this.formType,
required this.title,
this.subtitle,
this.description,
required this.status, required this.status,
required this.staffId, required this.staffId,
this.formData,
this.createdAt, this.createdAt,
this.updatedAt, this.updatedAt,
this.createdBy, this.createdBy,

View File

@@ -4,7 +4,6 @@ class UpdateOrderVariablesBuilder {
String id; String id;
Optional<String> _vendorId = Optional.optional(nativeFromJson, nativeToJson); Optional<String> _vendorId = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _businessId = Optional.optional(nativeFromJson, nativeToJson); Optional<String> _businessId = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _location = Optional.optional(nativeFromJson, nativeToJson);
Optional<OrderStatus> _status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer); Optional<OrderStatus> _status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer);
Optional<Timestamp> _date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer); Optional<Timestamp> _date = Optional.optional((json) => json['date'] = Timestamp.fromJson(json['date']), defaultSerializer);
Optional<Timestamp> _startDate = Optional.optional((json) => json['startDate'] = Timestamp.fromJson(json['startDate']), defaultSerializer); Optional<Timestamp> _startDate = Optional.optional((json) => json['startDate'] = Timestamp.fromJson(json['startDate']), defaultSerializer);
@@ -14,7 +13,6 @@ class UpdateOrderVariablesBuilder {
Optional<AnyValue> _assignedStaff = Optional.optional(AnyValue.fromJson, defaultSerializer); Optional<AnyValue> _assignedStaff = Optional.optional(AnyValue.fromJson, defaultSerializer);
Optional<AnyValue> _shifts = Optional.optional(AnyValue.fromJson, defaultSerializer); Optional<AnyValue> _shifts = Optional.optional(AnyValue.fromJson, defaultSerializer);
Optional<int> _requested = Optional.optional(nativeFromJson, nativeToJson); Optional<int> _requested = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _hub = Optional.optional(nativeFromJson, nativeToJson);
Optional<AnyValue> _recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer); Optional<AnyValue> _recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer);
Optional<AnyValue> _permanentDays = Optional.optional(AnyValue.fromJson, defaultSerializer); Optional<AnyValue> _permanentDays = Optional.optional(AnyValue.fromJson, defaultSerializer);
Optional<String> _notes = Optional.optional(nativeFromJson, nativeToJson); Optional<String> _notes = Optional.optional(nativeFromJson, nativeToJson);
@@ -29,10 +27,6 @@ class UpdateOrderVariablesBuilder {
_businessId.value = t; _businessId.value = t;
return this; return this;
} }
UpdateOrderVariablesBuilder location(String? t) {
_location.value = t;
return this;
}
UpdateOrderVariablesBuilder status(OrderStatus? t) { UpdateOrderVariablesBuilder status(OrderStatus? t) {
_status.value = t; _status.value = t;
return this; return this;
@@ -69,10 +63,6 @@ class UpdateOrderVariablesBuilder {
_requested.value = t; _requested.value = t;
return this; return this;
} }
UpdateOrderVariablesBuilder hub(String? t) {
_hub.value = t;
return this;
}
UpdateOrderVariablesBuilder recurringDays(AnyValue? t) { UpdateOrderVariablesBuilder recurringDays(AnyValue? t) {
_recurringDays.value = t; _recurringDays.value = t;
return this; return this;
@@ -102,7 +92,7 @@ class UpdateOrderVariablesBuilder {
} }
MutationRef<UpdateOrderData, UpdateOrderVariables> ref() { MutationRef<UpdateOrderData, UpdateOrderVariables> ref() {
UpdateOrderVariables vars= UpdateOrderVariables(id: id,vendorId: _vendorId,businessId: _businessId,location: _location,status: _status,date: _date,startDate: _startDate,endDate: _endDate,total: _total,eventName: _eventName,assignedStaff: _assignedStaff,shifts: _shifts,requested: _requested,hub: _hub,recurringDays: _recurringDays,permanentDays: _permanentDays,notes: _notes,detectedConflicts: _detectedConflicts,poReference: _poReference,); UpdateOrderVariables vars= UpdateOrderVariables(id: id,vendorId: _vendorId,businessId: _businessId,status: _status,date: _date,startDate: _startDate,endDate: _endDate,total: _total,eventName: _eventName,assignedStaff: _assignedStaff,shifts: _shifts,requested: _requested,recurringDays: _recurringDays,permanentDays: _permanentDays,notes: _notes,detectedConflicts: _detectedConflicts,poReference: _poReference,);
return _dataConnect.mutation("updateOrder", dataDeserializer, varsSerializer, vars); return _dataConnect.mutation("updateOrder", dataDeserializer, varsSerializer, vars);
} }
} }
@@ -182,7 +172,6 @@ class UpdateOrderVariables {
final String id; final String id;
late final Optional<String>vendorId; late final Optional<String>vendorId;
late final Optional<String>businessId; late final Optional<String>businessId;
late final Optional<String>location;
late final Optional<OrderStatus>status; late final Optional<OrderStatus>status;
late final Optional<Timestamp>date; late final Optional<Timestamp>date;
late final Optional<Timestamp>startDate; late final Optional<Timestamp>startDate;
@@ -192,7 +181,6 @@ class UpdateOrderVariables {
late final Optional<AnyValue>assignedStaff; late final Optional<AnyValue>assignedStaff;
late final Optional<AnyValue>shifts; late final Optional<AnyValue>shifts;
late final Optional<int>requested; late final Optional<int>requested;
late final Optional<String>hub;
late final Optional<AnyValue>recurringDays; late final Optional<AnyValue>recurringDays;
late final Optional<AnyValue>permanentDays; late final Optional<AnyValue>permanentDays;
late final Optional<String>notes; late final Optional<String>notes;
@@ -213,10 +201,6 @@ class UpdateOrderVariables {
businessId.value = json['businessId'] == null ? null : nativeFromJson<String>(json['businessId']); businessId.value = json['businessId'] == null ? null : nativeFromJson<String>(json['businessId']);
location = Optional.optional(nativeFromJson, nativeToJson);
location.value = json['location'] == null ? null : nativeFromJson<String>(json['location']);
status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer); status = Optional.optional((data) => OrderStatus.values.byName(data), enumSerializer);
status.value = json['status'] == null ? null : OrderStatus.values.byName(json['status']); status.value = json['status'] == null ? null : OrderStatus.values.byName(json['status']);
@@ -253,10 +237,6 @@ class UpdateOrderVariables {
requested.value = json['requested'] == null ? null : nativeFromJson<int>(json['requested']); requested.value = json['requested'] == null ? null : nativeFromJson<int>(json['requested']);
hub = Optional.optional(nativeFromJson, nativeToJson);
hub.value = json['hub'] == null ? null : nativeFromJson<String>(json['hub']);
recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer); recurringDays = Optional.optional(AnyValue.fromJson, defaultSerializer);
recurringDays.value = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']); recurringDays.value = json['recurringDays'] == null ? null : AnyValue.fromJson(json['recurringDays']);
@@ -290,7 +270,6 @@ class UpdateOrderVariables {
return id == otherTyped.id && return id == otherTyped.id &&
vendorId == otherTyped.vendorId && vendorId == otherTyped.vendorId &&
businessId == otherTyped.businessId && businessId == otherTyped.businessId &&
location == otherTyped.location &&
status == otherTyped.status && status == otherTyped.status &&
date == otherTyped.date && date == otherTyped.date &&
startDate == otherTyped.startDate && startDate == otherTyped.startDate &&
@@ -300,7 +279,6 @@ class UpdateOrderVariables {
assignedStaff == otherTyped.assignedStaff && assignedStaff == otherTyped.assignedStaff &&
shifts == otherTyped.shifts && shifts == otherTyped.shifts &&
requested == otherTyped.requested && requested == otherTyped.requested &&
hub == otherTyped.hub &&
recurringDays == otherTyped.recurringDays && recurringDays == otherTyped.recurringDays &&
permanentDays == otherTyped.permanentDays && permanentDays == otherTyped.permanentDays &&
notes == otherTyped.notes && notes == otherTyped.notes &&
@@ -309,7 +287,7 @@ class UpdateOrderVariables {
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, vendorId.hashCode, businessId.hashCode, location.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, total.hashCode, eventName.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, hub.hashCode, recurringDays.hashCode, permanentDays.hashCode, notes.hashCode, detectedConflicts.hashCode, poReference.hashCode]); int get hashCode => Object.hashAll([id.hashCode, vendorId.hashCode, businessId.hashCode, status.hashCode, date.hashCode, startDate.hashCode, endDate.hashCode, total.hashCode, eventName.hashCode, assignedStaff.hashCode, shifts.hashCode, requested.hashCode, recurringDays.hashCode, permanentDays.hashCode, notes.hashCode, detectedConflicts.hashCode, poReference.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -321,9 +299,6 @@ class UpdateOrderVariables {
if(businessId.state == OptionalState.set) { if(businessId.state == OptionalState.set) {
json['businessId'] = businessId.toJson(); json['businessId'] = businessId.toJson();
} }
if(location.state == OptionalState.set) {
json['location'] = location.toJson();
}
if(status.state == OptionalState.set) { if(status.state == OptionalState.set) {
json['status'] = status.toJson(); json['status'] = status.toJson();
} }
@@ -351,9 +326,6 @@ class UpdateOrderVariables {
if(requested.state == OptionalState.set) { if(requested.state == OptionalState.set) {
json['requested'] = requested.toJson(); json['requested'] = requested.toJson();
} }
if(hub.state == OptionalState.set) {
json['hub'] = hub.toJson();
}
if(recurringDays.state == OptionalState.set) { if(recurringDays.state == OptionalState.set) {
json['recurringDays'] = recurringDays.toJson(); json['recurringDays'] = recurringDays.toJson();
} }
@@ -376,7 +348,6 @@ class UpdateOrderVariables {
required this.id, required this.id,
required this.vendorId, required this.vendorId,
required this.businessId, required this.businessId,
required this.location,
required this.status, required this.status,
required this.date, required this.date,
required this.startDate, required this.startDate,
@@ -386,7 +357,6 @@ class UpdateOrderVariables {
required this.assignedStaff, required this.assignedStaff,
required this.shifts, required this.shifts,
required this.requested, required this.requested,
required this.hub,
required this.recurringDays, required this.recurringDays,
required this.permanentDays, required this.permanentDays,
required this.notes, required this.notes,

View File

@@ -3,31 +3,11 @@ part of 'generated.dart';
class UpdateTaxFormVariablesBuilder { class UpdateTaxFormVariablesBuilder {
String id; String id;
Optional<TaxFormStatus> _status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer); Optional<TaxFormStatus> _status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer);
Optional<AnyValue> _formData = Optional.optional(AnyValue.fromJson, defaultSerializer);
Optional<String> _title = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _subtitle = Optional.optional(nativeFromJson, nativeToJson);
Optional<String> _description = Optional.optional(nativeFromJson, nativeToJson);
final FirebaseDataConnect _dataConnect; UpdateTaxFormVariablesBuilder status(TaxFormStatus? t) { final FirebaseDataConnect _dataConnect; UpdateTaxFormVariablesBuilder status(TaxFormStatus? t) {
_status.value = t; _status.value = t;
return this; return this;
} }
UpdateTaxFormVariablesBuilder formData(AnyValue? t) {
_formData.value = t;
return this;
}
UpdateTaxFormVariablesBuilder title(String? t) {
_title.value = t;
return this;
}
UpdateTaxFormVariablesBuilder subtitle(String? t) {
_subtitle.value = t;
return this;
}
UpdateTaxFormVariablesBuilder description(String? t) {
_description.value = t;
return this;
}
UpdateTaxFormVariablesBuilder(this._dataConnect, {required this.id,}); UpdateTaxFormVariablesBuilder(this._dataConnect, {required this.id,});
Deserializer<UpdateTaxFormData> dataDeserializer = (dynamic json) => UpdateTaxFormData.fromJson(jsonDecode(json)); Deserializer<UpdateTaxFormData> dataDeserializer = (dynamic json) => UpdateTaxFormData.fromJson(jsonDecode(json));
@@ -37,7 +17,7 @@ class UpdateTaxFormVariablesBuilder {
} }
MutationRef<UpdateTaxFormData, UpdateTaxFormVariables> ref() { MutationRef<UpdateTaxFormData, UpdateTaxFormVariables> ref() {
UpdateTaxFormVariables vars= UpdateTaxFormVariables(id: id,status: _status,formData: _formData,title: _title,subtitle: _subtitle,description: _description,); UpdateTaxFormVariables vars= UpdateTaxFormVariables(id: id,status: _status,);
return _dataConnect.mutation("updateTaxForm", dataDeserializer, varsSerializer, vars); return _dataConnect.mutation("updateTaxForm", dataDeserializer, varsSerializer, vars);
} }
} }
@@ -116,10 +96,6 @@ class UpdateTaxFormData {
class UpdateTaxFormVariables { class UpdateTaxFormVariables {
final String id; final String id;
late final Optional<TaxFormStatus>status; late final Optional<TaxFormStatus>status;
late final Optional<AnyValue>formData;
late final Optional<String>title;
late final Optional<String>subtitle;
late final Optional<String>description;
@Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.') @Deprecated('fromJson is deprecated for Variable classes as they are no longer required for deserialization.')
UpdateTaxFormVariables.fromJson(Map<String, dynamic> json): UpdateTaxFormVariables.fromJson(Map<String, dynamic> json):
@@ -130,22 +106,6 @@ class UpdateTaxFormVariables {
status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer); status = Optional.optional((data) => TaxFormStatus.values.byName(data), enumSerializer);
status.value = json['status'] == null ? null : TaxFormStatus.values.byName(json['status']); status.value = json['status'] == null ? null : TaxFormStatus.values.byName(json['status']);
formData = Optional.optional(AnyValue.fromJson, defaultSerializer);
formData.value = json['formData'] == null ? null : AnyValue.fromJson(json['formData']);
title = Optional.optional(nativeFromJson, nativeToJson);
title.value = json['title'] == null ? null : nativeFromJson<String>(json['title']);
subtitle = Optional.optional(nativeFromJson, nativeToJson);
subtitle.value = json['subtitle'] == null ? null : nativeFromJson<String>(json['subtitle']);
description = Optional.optional(nativeFromJson, nativeToJson);
description.value = json['description'] == null ? null : nativeFromJson<String>(json['description']);
} }
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
@@ -158,15 +118,11 @@ class UpdateTaxFormVariables {
final UpdateTaxFormVariables otherTyped = other as UpdateTaxFormVariables; final UpdateTaxFormVariables otherTyped = other as UpdateTaxFormVariables;
return id == otherTyped.id && return id == otherTyped.id &&
status == otherTyped.status && status == otherTyped.status;
formData == otherTyped.formData &&
title == otherTyped.title &&
subtitle == otherTyped.subtitle &&
description == otherTyped.description;
} }
@override @override
int get hashCode => Object.hashAll([id.hashCode, status.hashCode, formData.hashCode, title.hashCode, subtitle.hashCode, description.hashCode]); int get hashCode => Object.hashAll([id.hashCode, status.hashCode]);
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@@ -175,28 +131,12 @@ class UpdateTaxFormVariables {
if(status.state == OptionalState.set) { if(status.state == OptionalState.set) {
json['status'] = status.toJson(); json['status'] = status.toJson();
} }
if(formData.state == OptionalState.set) {
json['formData'] = formData.toJson();
}
if(title.state == OptionalState.set) {
json['title'] = title.toJson();
}
if(subtitle.state == OptionalState.set) {
json['subtitle'] = subtitle.toJson();
}
if(description.state == OptionalState.set) {
json['description'] = description.toJson();
}
return json; return json;
} }
UpdateTaxFormVariables({ UpdateTaxFormVariables({
required this.id, required this.id,
required this.status, required this.status,
required this.formData,
required this.title,
required this.subtitle,
required this.description,
}); });
} }

View File

@@ -1,51 +0,0 @@
mutation createAccount(
$bank: String!
$type: AccountType!
$last4: String!
$isPrimary: Boolean
$ownerId: UUID!
$accountNumber: String
$routeNumber: String
$expiryTime: Timestamp
) @auth(level: USER) {
account_insert(
data: {
bank: $bank
type: $type
last4: $last4
isPrimary: $isPrimary
ownerId: $ownerId
accountNumber: $accountNumber
routeNumber: $routeNumber
expiryTime: $expiryTime
}
)
}
mutation updateAccount(
$id: UUID!
$bank: String
$type: AccountType
$last4: String
$isPrimary: Boolean
$accountNumber: String
$routeNumber: String
$expiryTime: Timestamp
) @auth(level: USER) {
account_update(
id: $id
data: {
bank: $bank
type: $type
last4: $last4
isPrimary: $isPrimary
accountNumber: $accountNumber
routeNumber: $routeNumber
expiryTime: $expiryTime
}
)
}
mutation deleteAccount($id: UUID!) @auth(level: USER) {
account_delete(id: $id)
}

View File

@@ -1,70 +0,0 @@
query listAccounts @auth(level: USER) {
accounts {
id
bank
type
last4
isPrimary
ownerId
accountNumber
routeNumber
expiryTime
createdAt
}
}
query getAccountById($id: UUID!) @auth(level: USER) {
account(id: $id) {
id
bank
type
last4
isPrimary
ownerId
accountNumber
routeNumber
expiryTime
createdAt
}
}
query getAccountsByOwnerId($ownerId: UUID!) @auth(level: USER) {
accounts(where: { ownerId: { eq: $ownerId } }) {
id
bank
type
last4
isPrimary
ownerId
accountNumber
routeNumber
expiryTime
createdAt
}
}
query filterAccounts(
$bank: String
$type: AccountType
$isPrimary: Boolean
$ownerId: UUID
) @auth(level: USER) {
accounts(
where: {
bank: { eq: $bank }
type: { eq: $type }
isPrimary: { eq: $isPrimary }
ownerId: { eq: $ownerId }
}
) {
id
bank
type
last4
isPrimary
ownerId
accountNumber
expiryTime
routeNumber
}
}

View File

@@ -1,96 +0,0 @@
mutation createActivityLog(
$userId: String!
$date: Timestamp!
$hourStart: String
$hourEnd: String
$totalhours: String
$iconType: ActivityIconType
$iconColor: String
$title: String!
$description: String!
$isRead: Boolean
$activityType: ActivityType!
) @auth(level: USER) {
activityLog_insert(
data: {
userId: $userId
date: $date
hourStart: $hourStart
hourEnd: $hourEnd
totalhours: $totalhours
iconType: $iconType
iconColor: $iconColor
title: $title
description: $description
isRead: $isRead
activityType: $activityType
}
)
}
mutation updateActivityLog(
$id: UUID!
$userId: String
$date: Timestamp
$hourStart: String
$hourEnd: String
$totalhours: String
$iconType: ActivityIconType
$iconColor: String
$title: String
$description: String
$isRead: Boolean
$activityType: ActivityType
) @auth(level: USER) {
activityLog_update(
id: $id
data: {
userId: $userId
date: $date
hourStart: $hourStart
hourEnd: $hourEnd
totalhours: $totalhours
iconType: $iconType
iconColor: $iconColor
title: $title
description: $description
isRead: $isRead
activityType: $activityType
}
)
}
# ----------------------------------------------------------
# MARK AS READ (single)
# ----------------------------------------------------------
mutation markActivityLogAsRead($id: UUID!) @auth(level: USER) {
activityLog_update(
id: $id
data: { isRead: true }
)
}
# ----------------------------------------------------------
# MARK MANY AS READ (correct op name in your DC)
# ----------------------------------------------------------
mutation markActivityLogsAsRead(
$ids: [UUID!]!
) @auth(level: USER) {
activityLog_updateMany(
where: { id: { in: $ids } }
data: { isRead: true }
)
}
mutation deleteActivityLog($id: UUID!) @auth(level: USER) {
activityLog_delete(id: $id)
}

View File

@@ -1,175 +0,0 @@
# ----------------------------------------------------------
# LIST ALL (admin/debug)
# ----------------------------------------------------------
query listActivityLogs(
$offset: Int
$limit: Int
) @auth(level: USER) {
activityLogs(offset: $offset, limit: $limit) {
id
userId
date
hourStart
hourEnd
totalhours
iconType
iconColor
title
description
isRead
activityType
createdAt
updatedAt
createdBy
}
}
# ----------------------------------------------------------
# GET BY ID
# ----------------------------------------------------------
query getActivityLogById($id: UUID!) @auth(level: USER) {
activityLog(id: $id) {
id
userId
date
hourStart
hourEnd
totalhours
iconType
iconColor
title
description
isRead
activityType
createdAt
updatedAt
createdBy
}
}
# ----------------------------------------------------------
# LIST BY USER
# ----------------------------------------------------------
query listActivityLogsByUserId(
$userId: String!
$offset: Int
$limit: Int
) @auth(level: USER) {
activityLogs(
where: { userId: { eq: $userId } }
offset: $offset
limit: $limit
orderBy: { date: DESC }
) {
id
userId
date
hourStart
hourEnd
totalhours
iconType
iconColor
title
description
isRead
activityType
createdAt
updatedAt
createdBy
}
}
# ----------------------------------------------------------
# LIST UNREAD BY USER (common for notifications UI)
# ----------------------------------------------------------
query listUnreadActivityLogsByUserId(
$userId: String!
$offset: Int
$limit: Int
) @auth(level: USER) {
activityLogs(
where: {
userId: { eq: $userId }
isRead: { eq: false }
}
offset: $offset
limit: $limit
orderBy: { date: DESC }
) {
id
userId
date
hourStart
hourEnd
totalhours
iconType
iconColor
title
description
isRead
activityType
createdAt
updatedAt
createdBy
}
}
# ----------------------------------------------------------
# FILTER (user + date range + read status + type)
# NOTE: Timestamp filter uses ge/le (NOT gte/lte)
# ----------------------------------------------------------
query filterActivityLogs(
$userId: String
$dateFrom: Timestamp
$dateTo: Timestamp
$isRead: Boolean
$activityType: ActivityType
$iconType: ActivityIconType
$offset: Int
$limit: Int
) @auth(level: USER) {
activityLogs(
where: {
userId: { eq: $userId }
date: { ge: $dateFrom, le: $dateTo }
isRead: { eq: $isRead }
activityType: { eq: $activityType }
iconType: { eq: $iconType }
}
offset: $offset
limit: $limit
orderBy: { date: DESC }
) {
id
userId
date
hourStart
hourEnd
totalhours
iconType
iconColor
title
description
isRead
activityType
createdAt
updatedAt
createdBy
}
}

View File

@@ -1,47 +0,0 @@
mutation createApplication(
$shiftId: UUID!
$staffId: UUID!
$status: ApplicationStatus!
$checkInTime: Timestamp
$checkOutTime: Timestamp
$origin: ApplicationOrigin!
$roleId: UUID!
) @auth(level: USER) {
application_insert(
data: {
shiftId: $shiftId
staffId: $staffId
status: $status
checkInTime: $checkInTime
checkOutTime: $checkOutTime
origin: $origin
roleId: $roleId
}
)
}
mutation updateApplicationStatus(
$id: UUID!
$shiftId: UUID
$staffId: UUID
$status: ApplicationStatus
$checkInTime: Timestamp
$checkOutTime: Timestamp
$roleId: UUID!
) @auth(level: USER) {
application_update(
id: $id
data: {
shiftId: $shiftId
staffId: $staffId
status: $status
checkInTime: $checkInTime
checkOutTime: $checkOutTime
roleId: $roleId
}
)
}
mutation deleteApplication($id: UUID!) @auth(level: USER) {
application_delete(id: $id)
}

View File

@@ -1,403 +0,0 @@
query listApplications @auth(level: USER) {
applications {
id
shiftId
staffId
status
appliedAt
checkInTime
checkOutTime
origin
createdAt
shift {
id
title
date
startTime
endTime
location
status
order {
id
eventName
location
business {
id
businessName
email
contactName
}
vendor {
id
companyName
}
}
}
shiftRole {
id
roleId
count
assigned
startTime
endTime
hours
totalValue
role {
id
name
costPerHour
}
}
}
}
query getApplicationById($id: UUID!) @auth(level: USER) {
application(id: $id) {
id
shiftId
staffId
status
appliedAt
checkInTime
checkOutTime
origin
createdAt
shift {
id
title
date
startTime
endTime
location
status
order {
id
eventName
location
business {
id
businessName
email
contactName
}
vendor {
id
companyName
}
}
}
shiftRole {
id
roleId
count
assigned
startTime
endTime
hours
totalValue
role {
id
name
costPerHour
}
}
}
}
query getApplicationsByShiftId($shiftId: UUID!) @auth(level: USER) {
applications(where: { shiftId: { eq: $shiftId } }) {
id
shiftId
staffId
status
appliedAt
checkInTime
checkOutTime
origin
createdAt
shift {
id
title
date
startTime
endTime
location
status
order {
id
eventName
location
business {
id
businessName
email
contactName
}
vendor {
id
companyName
}
}
}
shiftRole {
id
roleId
count
assigned
startTime
endTime
hours
totalValue
role {
id
name
costPerHour
}
}
}
}
query getApplicationsByShiftIdAndStatus(
$shiftId: UUID!
$status: ApplicationStatus!
$offset: Int
$limit: Int
) @auth(level: USER) {
applications(
where: {
shiftId: { eq: $shiftId }
status: { eq: $status }
}
offset: $offset
limit: $limit
) {
id
shiftId
staffId
status
appliedAt
checkInTime
checkOutTime
origin
createdAt
shift {
id
title
date
startTime
endTime
location
status
order {
id
eventName
location
business {
id
businessName
email
contactName
}
vendor {
id
companyName
}
}
}
shiftRole {
id
roleId
count
assigned
startTime
endTime
hours
totalValue
role {
id
name
costPerHour
}
}
}
}
query getApplicationsByStaffId(
$staffId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
applications(
where: { staffId: { eq: $staffId } }
offset: $offset
limit: $limit
) {
id
shiftId
staffId
status
appliedAt
checkInTime
checkOutTime
origin
createdAt
shift {
id
title
date
startTime
endTime
location
status
order {
id
eventName
location
business {
id
businessName
email
contactName
}
vendor {
id
companyName
}
}
}
shiftRole {
id
roleId
count
assigned
startTime
endTime
hours
totalValue
role {
id
name
costPerHour
}
}
}
}
#getting staffs of an shiftrole ACCEPTED for orders view client
query listAcceptedApplicationsByShiftRoleKey(
$shiftId: UUID!
$roleId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
applications(
where: {
shiftId: { eq: $shiftId }
roleId: { eq: $roleId }
status: { eq: ACCEPTED }
}
offset: $offset
limit: $limit
orderBy: { appliedAt: ASC }
) {
id
checkInTime
checkOutTime
staff { id fullName email phone photoUrl }
}
}
#getting staffs of an shiftrole ACCEPTED for orders of the day view client
query listAcceptedApplicationsByBusinessForDay(
$businessId: UUID!
$dayStart: Timestamp!
$dayEnd: Timestamp!
$offset: Int
$limit: Int
) @auth(level: USER) {
applications(
where: {
status: { eq: ACCEPTED }
shift: {
date: { ge: $dayStart, le: $dayEnd }
order: { businessId: { eq: $businessId } }
}
}
offset: $offset
limit: $limit
orderBy: { appliedAt: ASC }
) {
id
shiftId
roleId
checkInTime
checkOutTime
appliedAt
staff { id fullName email phone photoUrl }
}
}
#coverage list and today live
query listStaffsApplicationsByBusinessForDay(
$businessId: UUID!
$dayStart: Timestamp!
$dayEnd: Timestamp!
$offset: Int
$limit: Int
) @auth(level: USER) {
applications(
where: {
status: {in: [ACCEPTED, CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE]}
shift: {
date: { ge: $dayStart, le: $dayEnd }
order: { businessId: { eq: $businessId } }
#status: { eq: ACCEPTED }
}
}
offset: $offset
limit: $limit
orderBy: { appliedAt: ASC }
) {
id
shiftId
roleId
checkInTime
checkOutTime
appliedAt
status
shiftRole{
shift{
location
cost
}
count
assigned
role{
name
}
}
staff { id fullName email phone photoUrl }
}
}

View File

@@ -1,71 +0,0 @@
mutation CreateAssignment(
$workforceId: UUID!
$title: String
$description: String
$instructions: String
$status: AssignmentStatus
$tipsAvailable: Boolean
$travelTime: Boolean
$mealProvided: Boolean
$parkingAvailable: Boolean
$gasCompensation: Boolean
$managers: [Any!]
$roleId: UUID!
$shiftId: UUID!
) @auth(level: USER) {
assignment_insert(
data: {
workforceId: $workforceId
title: $title
description: $description
instructions: $instructions
status: $status
tipsAvailable: $tipsAvailable
travelTime: $travelTime
mealProvided: $mealProvided
parkingAvailable: $parkingAvailable
gasCompensation: $gasCompensation
managers: $managers
roleId: $roleId
shiftId: $shiftId
}
)
}
mutation UpdateAssignment(
$id: UUID!
$title: String
$description: String
$instructions: String
$status: AssignmentStatus
$tipsAvailable: Boolean
$travelTime: Boolean
$mealProvided: Boolean
$parkingAvailable: Boolean
$gasCompensation: Boolean
$managers: [Any!]
$roleId: UUID!
$shiftId: UUID!
) @auth(level: USER) {
assignment_update(
id: $id
data: {
title: $title
description: $description
instructions: $instructions
status: $status
tipsAvailable: $tipsAvailable
travelTime: $travelTime
mealProvided: $mealProvided
parkingAvailable: $parkingAvailable
gasCompensation: $gasCompensation
managers: $managers
roleId: $roleId
shiftId: $shiftId
}
)
}
mutation DeleteAssignment($id: UUID!) @auth(level: USER) {
assignment_delete(id: $id)
}

View File

@@ -1,278 +0,0 @@
# ------------------------------------------------------------
# LIST ALL ASSIGNMENTS (admin/debug)
# ------------------------------------------------------------
query listAssignments(
$offset: Int
$limit: Int
) @auth(level: USER) {
assignments(offset: $offset, limit: $limit) {
id
title
status
createdAt
workforce {
id
workforceNumber
staff { id fullName }
}
shiftRole {
id
count
assigned
startTime
endTime
hours
totalValue
role { id name costPerHour }
shift {
id
title
date
location
locationAddress
latitude
longitude
status
order {
id
eventName
business { id businessName email contactName }
vendor { id companyName }
}
}
}
}
}
# ------------------------------------------------------------
# GET ASSIGNMENT BY ID
# ------------------------------------------------------------
query getAssignmentById($id: UUID!) @auth(level: USER) {
assignment(id: $id) {
id
title
description
instructions
status
tipsAvailable
travelTime
mealProvided
parkingAvailable
gasCompensation
managers
createdAt
updatedAt
createdBy
workforce {
id
workforceNumber
status
staff { id fullName }
}
shiftRole {
id
startTime
endTime
hours
totalValue
breakType
uniform
department
role { id name costPerHour }
shift {
id
title
date
location
locationAddress
latitude
longitude
status
managers
order {
id
eventName
orderType
business { id businessName email contactName }
vendor { id companyName }
}
}
}
}
}
# ------------------------------------------------------------
# MY ASSIGNMENTS (by workforceId) - Staff view
# ------------------------------------------------------------
query listAssignmentsByWorkforceId(
$workforceId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
assignments(
where: { workforceId: { eq: $workforceId } }
offset: $offset
limit: $limit
orderBy: { createdAt: DESC }
) {
id
title
status
createdAt
workforce {
id
workforceNumber
staff { id fullName }
}
shiftRole {
id
startTime
endTime
hours
totalValue
role { id name costPerHour }
shift {
id
title
date
location
status
order {
id
eventName
business { id businessName }
vendor { id companyName }
}
}
}
}
}
# ------------------------------------------------------------
# ASSIGNMENTS FOR A VENDOR (Vendor dashboard)
# Approach: filter by workforce.vendorId (relation)
# If Data Connect can't filter nested, use 2-step:
# 1) listWorkforceByVendorId => workforce ids
# 2) assignments(where: { workforceId: { in: [...] } })
# ------------------------------------------------------------
query listAssignmentsByWorkforceIds(
$workforceIds: [UUID!]!
$offset: Int
$limit: Int
) @auth(level: USER) {
assignments(
where: { workforceId: { in: $workforceIds } }
offset: $offset
limit: $limit
orderBy: { createdAt: DESC }
) {
id
title
status
createdAt
workforce { id workforceNumber staff { id fullName } }
shiftRole {
id
role { id name }
shift {
id
title
date
order {
id
eventName
business { id businessName }
vendor { id companyName }
}
}
}
}
}
# ------------------------------------------------------------
# ASSIGNMENTS BY SHIFT ROLE (useful for staffing)
# ------------------------------------------------------------
query listAssignmentsByShiftRole(
$shiftId: UUID!
$roleId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
assignments(
where: {
shiftId: { eq: $shiftId }
roleId: { eq: $roleId }
}
offset: $offset
limit: $limit
) {
id
title
status
createdAt
workforce { id workforceNumber staff { id fullName } }
}
}
# ------------------------------------------------------------
# FILTER ASSIGNMENTS (status + date range)
# Date range is based on Shift.date through the relation (NOT filterable directly).
#
# Since ShiftRole uses a composite key (shiftId + roleId),
# Assignments must be filtered using BOTH fields.
#
# So the filtering flow is:
# 1) Get Shifts in the date range => shiftIds
# 2) Get ShiftRoles where shiftId IN shiftIds => (shiftId, roleId) pairs
# 3) Get Assignments where:
# - shiftId matches
# - roleId matches
# - status matches (optional)
#
# This query represents step 3.
# ------------------------------------------------------------
query filterAssignments(
$shiftIds: [UUID!]!
$roleIds: [UUID!]!
$status: AssignmentStatus
$offset: Int
$limit: Int
) @auth(level: USER) {
assignments(
where: {
shiftId: { in: $shiftIds }
roleId: { in: $roleIds }
status: { eq: $status }
}
offset: $offset
limit: $limit
) {
id
title
status
createdAt
workforce { id workforceNumber staff { id fullName } }
shiftRole {
id
role { id name }
shift { id title date location status }
}
}
}

View File

@@ -1,45 +0,0 @@
mutation createAttireOption(
$itemId: String!
$label: String!
$icon: String
$imageUrl: String
$isMandatory: Boolean
$vendorId: UUID
) @auth(level: USER) {
attireOption_insert(
data: {
itemId: $itemId
label: $label
icon: $icon
imageUrl: $imageUrl
isMandatory: $isMandatory
vendorId: $vendorId
}
)
}
mutation updateAttireOption(
$id: UUID!
$itemId: String
$label: String
$icon: String
$imageUrl: String
$isMandatory: Boolean
$vendorId: UUID
) @auth(level: USER) {
attireOption_update(
id: $id
data: {
itemId: $itemId
label: $label
icon: $icon
imageUrl: $imageUrl
isMandatory: $isMandatory
vendorId: $vendorId
}
)
}
mutation deleteAttireOption($id: UUID!) @auth(level: USER) {
attireOption_delete(id: $id)
}

View File

@@ -1,47 +0,0 @@
query listAttireOptions @auth(level: USER) {
attireOptions {
id
itemId
label
icon
imageUrl
isMandatory
vendorId
createdAt
}
}
query getAttireOptionById($id: UUID!) @auth(level: USER) {
attireOption(id: $id) {
id
itemId
label
icon
imageUrl
isMandatory
vendorId
createdAt
}
}
query filterAttireOptions(
$itemId: String
$isMandatory: Boolean
$vendorId: UUID
) @auth(level: USER) {
attireOptions(
where: {
itemId: { eq: $itemId }
isMandatory: { eq: $isMandatory }
vendorId: { eq: $vendorId }
}
) {
id
itemId
label
icon
imageUrl
isMandatory
vendorId
}
}

View File

@@ -1,36 +0,0 @@
mutation createBenefitsData(
$vendorBenefitPlanId: UUID!
$staffId: UUID!
$current: Int!
) @auth(level: USER) {
benefitsData_insert(
data: {
vendorBenefitPlanId: $vendorBenefitPlanId
staffId: $staffId
current: $current
}
)
}
mutation updateBenefitsData(
$staffId: UUID!
$vendorBenefitPlanId: UUID!
$current: Int
) @auth(level: USER) {
benefitsData_update(
key: { staffId: $staffId, vendorBenefitPlanId: $vendorBenefitPlanId }
data: {
current: $current
}
)
}
mutation deleteBenefitsData(
$staffId: UUID!
$vendorBenefitPlanId: UUID!
) @auth(level: USER) {
benefitsData_delete(
key: { staffId: $staffId, vendorBenefitPlanId: $vendorBenefitPlanId }
)
}

View File

@@ -1,165 +0,0 @@
# ----------------------------------------------------------
# LIST ALL (admin/debug)
# ----------------------------------------------------------
query listBenefitsData(
$offset: Int
$limit: Int
) @auth(level: USER) {
benefitsDatas(offset: $offset, limit: $limit) {
id
vendorBenefitPlanId
current
staffId
staff {
id
fullName
}
vendorBenefitPlan {
id
vendorId
title
description
requestLabel
total
isActive
}
}
}
# ----------------------------------------------------------
# GET BY KEY (staffId + vendorBenefitPlanId) ✅ (replaces getById in practice)
# ----------------------------------------------------------
query getBenefitsDataByKey(
$staffId: UUID!
$vendorBenefitPlanId: UUID!
) @auth(level: USER) {
benefitsData(key: { staffId: $staffId, vendorBenefitPlanId: $vendorBenefitPlanId }) {
id
vendorBenefitPlanId
current
staffId
staff {
id
fullName
}
vendorBenefitPlan {
id
vendorId
title
description
requestLabel
total
isActive
}
}
}
# ----------------------------------------------------------
# LIST BY STAFF
# ----------------------------------------------------------
query listBenefitsDataByStaffId(
$staffId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
benefitsDatas(
where: { staffId: { eq: $staffId } }
offset: $offset
limit: $limit
) {
id
vendorBenefitPlanId
current
staffId
staff {
id
fullName
}
vendorBenefitPlan {
id
vendorId
title
description
requestLabel
total
isActive
}
}
}
# ----------------------------------------------------------
# LIST BY VENDOR BENEFIT PLAN
# ----------------------------------------------------------
query listBenefitsDataByVendorBenefitPlanId(
$vendorBenefitPlanId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
benefitsDatas(
where: { vendorBenefitPlanId: { eq: $vendorBenefitPlanId } }
offset: $offset
limit: $limit
) {
id
vendorBenefitPlanId
current
staffId
staff {
id
fullName
}
vendorBenefitPlan {
id
vendorId
title
description
requestLabel
total
isActive
}
}
}
# ----------------------------------------------------------
# LIST BY VENDOR (2-step helper: planIds -> benefitsDatas IN)
# ----------------------------------------------------------
query listBenefitsDataByVendorBenefitPlanIds(
$vendorBenefitPlanIds: [UUID!]!
$offset: Int
$limit: Int
) @auth(level: USER) {
benefitsDatas(
where: { vendorBenefitPlanId: { in: $vendorBenefitPlanIds } }
offset: $offset
limit: $limit
) {
id
vendorBenefitPlanId
current
staffId
staff {
id
fullName
}
vendorBenefitPlan {
id
vendorId
title
description
requestLabel
total
isActive
}
}
}

View File

@@ -1,75 +0,0 @@
mutation createBusiness(
$businessName: String!,
$contactName: String,
$userId: String!,
$companyLogoUrl: String,
$phone: String,
$email: String,
$hubBuilding: String,
$address: String,
$city: String,
$area: BusinessArea,
$sector: BusinessSector,
$rateGroup: BusinessRateGroup!,
$status: BusinessStatus!,
$notes: String
) @auth(level: USER) {
business_insert(
data: {
businessName: $businessName,
contactName: $contactName,
userId: $userId,
companyLogoUrl: $companyLogoUrl,
phone: $phone,
email: $email,
hubBuilding: $hubBuilding,
address: $address,
city: $city,
area: $area,
sector: $sector,
rateGroup: $rateGroup,
status: $status,
notes: $notes
}
)
}
mutation updateBusiness(
$id: UUID!,
$businessName: String,
$contactName: String,
$companyLogoUrl: String,
$phone: String,
$email: String,
$hubBuilding: String,
$address: String,
$city: String,
$area: BusinessArea,
$sector: BusinessSector,
$rateGroup: BusinessRateGroup,
$status: BusinessStatus,
$notes: String
) @auth(level: USER) {
business_update(
id: $id,
data: {
businessName: $businessName,
contactName: $contactName,
companyLogoUrl: $companyLogoUrl,
phone: $phone,
email: $email,
hubBuilding: $hubBuilding,
address: $address,
city: $city,
area: $area,
sector: $sector,
rateGroup: $rateGroup,
status: $status,
notes: $notes
}
)
}
mutation deleteBusiness($id: UUID!) @auth(level: USER) {
business_delete(id: $id)
}

View File

@@ -1,65 +0,0 @@
query listBusinesses @auth(level: USER) {
businesses {
id
businessName
contactName
userId
companyLogoUrl
phone
email
hubBuilding
address
city
area
sector
rateGroup
status
notes
createdAt
updatedAt
}
}
query getBusinessesByUserId($userId: String!) @auth(level: USER) {
businesses(where: { userId: { eq: $userId } }) {
id
businessName
contactName
userId
companyLogoUrl
phone
email
hubBuilding
address
city
area
sector
rateGroup
status
notes
createdAt
updatedAt
}
}
query getBusinessById($id: UUID!) @auth(level: USER) {
business(id: $id) {
id
businessName
contactName
userId
companyLogoUrl
phone
email
hubBuilding
address
city
area
sector
rateGroup
status
notes
createdAt
updatedAt
}
}

View File

@@ -1,34 +0,0 @@
mutation createCategory(
$categoryId: String!
$label: String!
$icon: String
) @auth(level: USER) {
category_insert(
data: {
categoryId: $categoryId
label: $label
icon: $icon
}
)
}
mutation updateCategory(
$id: UUID!
$categoryId: String
$label: String
$icon: String
) @auth(level: USER) {
category_update(
id: $id
data: {
categoryId: $categoryId
label: $label
icon: $icon
}
)
}
mutation deleteCategory($id: UUID!) @auth(level: USER) {
category_delete(id: $id)
}

View File

@@ -1,43 +0,0 @@
query listCategories @auth(level: USER) {
categories {
id
categoryId
label
icon
createdAt
updatedAt
createdBy
}
}
query getCategoryById($id: UUID!) @auth(level: USER) {
category(id: $id) {
id
categoryId
label
icon
createdAt
updatedAt
createdBy
}
}
query filterCategories(
$categoryId: String
$label: String
) @auth(level: USER) {
categories(
where: {
categoryId: { eq: $categoryId }
label: { eq: $label }
}
) {
id
categoryId
label
icon
createdAt
updatedAt
createdBy
}
}

View File

@@ -1,65 +0,0 @@
mutation CreateCertificate(
$name: String!
$description: String
$expiry: Timestamp
$status: CertificateStatus!
$fileUrl: String
$icon: String
$certificationType: ComplianceType
$issuer: String
$staffId: UUID!
$validationStatus: ValidationStatus
$certificateNumber: String
) @auth(level: USER) {
certificate_insert(
data: {
name: $name
description: $description
expiry: $expiry
status: $status
fileUrl: $fileUrl
icon: $icon
staffId: $staffId
certificationType: $certificationType
issuer: $issuer
validationStatus: $validationStatus
certificateNumber: $certificateNumber
}
)
}
mutation UpdateCertificate(
$id: UUID!
$name: String
$description: String
$expiry: Timestamp
$status: CertificateStatus
$fileUrl: String
$icon: String
$staffId: UUID
$certificationType: ComplianceType
$issuer: String
$validationStatus: ValidationStatus
$certificateNumber: String
) @auth(level: USER) {
certificate_update(
id: $id
data: {
name: $name
description: $description
expiry: $expiry
status: $status
fileUrl: $fileUrl
icon: $icon
staffId: $staffId
certificationType: $certificationType
issuer: $issuer
validationStatus: $validationStatus
certificateNumber: $certificateNumber
}
)
}
mutation DeleteCertificate($id: UUID!) @auth(level: USER) {
certificate_delete(id: $id)
}

View File

@@ -1,72 +0,0 @@
query listCertificates @auth(level: USER) {
certificates {
id
name
description
expiry
status
fileUrl
icon
staffId
certificationType
issuer
validationStatus
certificateNumber
createdAt
staff {
id
fullName
}
}
}
query getCertificateById($id: UUID!) @auth(level: USER) {
certificate(id: $id) {
id
name
description
expiry
status
fileUrl
icon
certificationType
issuer
staffId
validationStatus
certificateNumber
updatedAt
staff {
id
fullName
}
}
}
query listCertificatesByStaffId($staffId: UUID!) @auth(level: USER) {
certificates(where: { staffId: { eq: $staffId } }) {
id
name
description
expiry
status
fileUrl
icon
staffId
certificationType
issuer
validationStatus
certificateNumber
createdAt
staff {
id
fullName
}
}
}

View File

@@ -1,43 +0,0 @@
mutation createClientFeedback(
$businessId: UUID!
$vendorId: UUID!
$rating: Int
$comment: String
$date: Timestamp
$createdBy: String
) @auth(level: USER) {
clientFeedback_insert(
data: {
businessId: $businessId
vendorId: $vendorId
rating: $rating
comment: $comment
date: $date
}
)
}
mutation updateClientFeedback(
$id: UUID!
$businessId: UUID
$vendorId: UUID
$rating: Int
$comment: String
$date: Timestamp
$createdBy: String
) @auth(level: USER) {
clientFeedback_update(
id: $id
data: {
businessId: $businessId
vendorId: $vendorId
rating: $rating
comment: $comment
date: $date
}
)
}
mutation deleteClientFeedback($id: UUID!) @auth(level: USER) {
clientFeedback_delete(id: $id)
}

View File

@@ -1,185 +0,0 @@
# ----------------------------------------------------------
# LIST ALL (admin/debug)
# ----------------------------------------------------------
query listClientFeedbacks(
$offset: Int
$limit: Int
) @auth(level: USER) {
clientFeedbacks(offset: $offset, limit: $limit) {
id
businessId
vendorId
rating
comment
date
createdAt
business { id businessName }
vendor { id companyName }
}
}
# ----------------------------------------------------------
# GET BY ID
# ----------------------------------------------------------
query getClientFeedbackById($id: UUID!) @auth(level: USER) {
clientFeedback(id: $id) {
id
businessId
vendorId
rating
comment
date
createdAt
business { id businessName }
vendor { id companyName }
}
}
# ----------------------------------------------------------
# LIST BY BUSINESS
# ----------------------------------------------------------
query listClientFeedbacksByBusinessId(
$businessId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
clientFeedbacks(
where: { businessId: { eq: $businessId } }
offset: $offset
limit: $limit
orderBy: { date: DESC }
) {
id
businessId
vendorId
rating
comment
date
createdAt
business { id businessName }
vendor { id companyName }
}
}
# ----------------------------------------------------------
# LIST BY VENDOR
# ----------------------------------------------------------
query listClientFeedbacksByVendorId(
$vendorId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
clientFeedbacks(
where: { vendorId: { eq: $vendorId } }
offset: $offset
limit: $limit
orderBy: { date: DESC }
) {
id
businessId
vendorId
rating
comment
date
createdAt
business { id businessName }
vendor { id companyName }
}
}
# ----------------------------------------------------------
# LIST BY BUSINESS + VENDOR (pair)
# ----------------------------------------------------------
query listClientFeedbacksByBusinessAndVendor(
$businessId: UUID!
$vendorId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
clientFeedbacks(
where: {
businessId: { eq: $businessId }
vendorId: { eq: $vendorId }
}
offset: $offset
limit: $limit
orderBy: { date: DESC }
) {
id
businessId
vendorId
rating
comment
date
createdAt
business { id businessName }
vendor { id companyName }
}
}
# ----------------------------------------------------------
# FILTER (rating + date range)
# NOTE: using Timestamp ops: ge/le
# ----------------------------------------------------------
query filterClientFeedbacks(
$businessId: UUID
$vendorId: UUID
$ratingMin: Int
$ratingMax: Int
$dateFrom: Timestamp
$dateTo: Timestamp
$offset: Int
$limit: Int
) @auth(level: USER) {
clientFeedbacks(
where: {
businessId: { eq: $businessId }
vendorId: { eq: $vendorId }
rating: { ge: $ratingMin, le: $ratingMax }
date: { ge: $dateFrom, le: $dateTo }
}
offset: $offset
limit: $limit
orderBy: { date: DESC }
) {
id
businessId
vendorId
rating
comment
date
business { id businessName }
vendor { id companyName }
}
}
# ----------------------------------------------------------
# QUICK KPI: average rating for a vendor (client-side aggregate)
# You fetch rows; Flutter/web computes avg.
# ----------------------------------------------------------
query listClientFeedbackRatingsByVendorId(
$vendorId: UUID!
$dateFrom: Timestamp
$dateTo: Timestamp
) @auth(level: USER) {
clientFeedbacks(
where: {
vendorId: { eq: $vendorId }
date: { ge: $dateFrom, le: $dateTo }
}
orderBy: { date: DESC }
) {
id
rating
comment
date
business { id businessName }
vendor { id companyName }
}
}

View File

@@ -1,5 +0,0 @@
connectorId: example
generate:
dartSdk:
- outputDir: ../../../apps/mobile/packages/data_connect/lib/src/dataconnect_generated
package: dataconnect_generated/generated.dart

View File

@@ -1,69 +0,0 @@
mutation createConversation(
$subject: String
$status: ConversationStatus
$conversationType: ConversationType
$isGroup: Boolean
$groupName: String
$lastMessage: String
$lastMessageAt: Timestamp
) @auth(level: USER) {
conversation_insert(
data: {
subject: $subject
status: $status
conversationType: $conversationType
isGroup: $isGroup
groupName: $groupName
lastMessage: $lastMessage
lastMessageAt: $lastMessageAt
}
)
}
mutation updateConversation(
$id: UUID!
$subject: String
$status: ConversationStatus
$conversationType: ConversationType
$isGroup: Boolean
$groupName: String
$lastMessage: String
$lastMessageAt: Timestamp
) @auth(level: USER) {
conversation_update(
id: $id
data: {
subject: $subject
status: $status
conversationType: $conversationType
isGroup: $isGroup
groupName: $groupName
lastMessage: $lastMessage
lastMessageAt: $lastMessageAt
}
)
}
# ----------------------------------------------------------
# UPDATE LAST MESSAGE
# ----------------------------------------------------------
mutation updateConversationLastMessage(
$id: UUID!
$lastMessage: String
$lastMessageAt: Timestamp
) @auth(level: USER) {
conversation_update(
id: $id
data: {
lastMessage: $lastMessage
lastMessageAt: $lastMessageAt
}
)
}
mutation deleteConversation($id: UUID!) @auth(level: USER) {
conversation_delete(id: $id)
}

View File

@@ -1,125 +0,0 @@
# ----------------------------------------------------------
# LIST ALL (admin/debug)
# ----------------------------------------------------------
query listConversations(
$offset: Int
$limit: Int
) @auth(level: USER) {
conversations(offset: $offset, limit: $limit, orderBy: { updatedAt: DESC }) {
id
subject
status
conversationType
isGroup
groupName
lastMessage
lastMessageAt
createdAt
}
}
# ----------------------------------------------------------
# GET BY ID
# ----------------------------------------------------------
query getConversationById($id: UUID!) @auth(level: USER) {
conversation(id: $id) {
id
subject
status
conversationType
isGroup
groupName
lastMessage
lastMessageAt
createdAt
}
}
# ----------------------------------------------------------
# LIST BY TYPE (CLIENT_VENDOR / GROUP_STAFF)
# ----------------------------------------------------------
query listConversationsByType(
$conversationType: ConversationType!
$offset: Int
$limit: Int
) @auth(level: USER) {
conversations(
where: { conversationType: { eq: $conversationType } }
offset: $offset
limit: $limit
orderBy: { lastMessageAt: DESC }
) {
id
subject
status
conversationType
isGroup
groupName
lastMessage
lastMessageAt
createdAt
}
}
# ----------------------------------------------------------
# LIST BY STATUS (ACTIVE)
# ----------------------------------------------------------
query listConversationsByStatus(
$status: ConversationStatus!
$offset: Int
$limit: Int
) @auth(level: USER) {
conversations(
where: { status: { eq: $status } }
offset: $offset
limit: $limit
orderBy: { lastMessageAt: DESC }
) {
id
subject
status
conversationType
isGroup
groupName
lastMessage
lastMessageAt
createdAt
}
}
# ----------------------------------------------------------
# FILTER (dashboard/debug)
# Supports searching by multiple optional fields
# ----------------------------------------------------------
query filterConversations(
$status: ConversationStatus
$conversationType: ConversationType
$isGroup: Boolean
$lastMessageAfter: Timestamp
$lastMessageBefore: Timestamp
$offset: Int
$limit: Int
) @auth(level: USER) {
conversations(
where: {
status: { eq: $status }
conversationType: { eq: $conversationType }
isGroup: { eq: $isGroup }
lastMessageAt: { ge: $lastMessageAfter, le: $lastMessageBefore }
}
offset: $offset
limit: $limit
orderBy: { lastMessageAt: DESC }
) {
id
subject
status
conversationType
isGroup
groupName
lastMessage
lastMessageAt
createdAt
}
}

View File

@@ -1,53 +0,0 @@
mutation createCourse(
$title: String
$description: String
$thumbnailUrl: String
$durationMinutes: Int
$xpReward: Int
$categoryId: UUID!
$levelRequired: String
$isCertification: Boolean
) @auth(level: USER) {
course_insert(
data: {
title: $title
description: $description
thumbnailUrl: $thumbnailUrl
durationMinutes: $durationMinutes
xpReward: $xpReward
categoryId: $categoryId
levelRequired: $levelRequired
isCertification: $isCertification
}
)
}
mutation updateCourse(
$id: UUID!
$title: String
$description: String
$thumbnailUrl: String
$durationMinutes: Int
$xpReward: Int
$categoryId: UUID!
$levelRequired: String
$isCertification: Boolean
) @auth(level: USER) {
course_update(
id: $id
data: {
title: $title
description: $description
thumbnailUrl: $thumbnailUrl
durationMinutes: $durationMinutes
xpReward: $xpReward
categoryId: $categoryId
levelRequired: $levelRequired
isCertification: $isCertification
}
)
}
mutation deleteCourse($id: UUID!) @auth(level: USER) {
course_delete(id: $id)
}

View File

@@ -1,68 +0,0 @@
query listCourses @auth(level: USER) {
courses {
id
title
description
thumbnailUrl
durationMinutes
xpReward
categoryId
levelRequired
isCertification
createdAt
category{
id
label
}
}
}
query getCourseById($id: UUID!) @auth(level: USER) {
course(id: $id) {
id
title
description
thumbnailUrl
durationMinutes
xpReward
categoryId
levelRequired
isCertification
createdAt
category{
id
label
}
}
}
query filterCourses(
$categoryId: UUID
$isCertification: Boolean
$levelRequired: String
$completed: Boolean
) @auth(level: USER) {
courses(
where: {
categoryId: { eq: $categoryId }
isCertification: { eq: $isCertification }
levelRequired: { eq: $levelRequired }
}
) {
id
title
categoryId
levelRequired
isCertification
category{
id
label
}
}
}

View File

@@ -1,37 +0,0 @@
mutation createCustomRateCard(
$name: String!,
$baseBook: String,
$discount: Float,
$isDefault: Boolean
) @auth(level: USER) {
customRateCard_insert(
data: {
name: $name,
baseBook: $baseBook,
discount: $discount,
isDefault: $isDefault
}
)
}
mutation updateCustomRateCard(
$id: UUID!,
$name: String,
$baseBook: String,
$discount: Float,
$isDefault: Boolean
) @auth(level: USER) {
customRateCard_update(
id: $id,
data: {
name: $name,
baseBook: $baseBook,
discount: $discount,
isDefault: $isDefault
}
)
}
mutation deleteCustomRateCard($id: UUID!) @auth(level: USER) {
customRateCard_delete(id: $id)
}

View File

@@ -1,23 +0,0 @@
query listCustomRateCards @auth(level: USER) {
customRateCards {
id
name
baseBook
discount
isDefault
createdAt
updatedAt
}
}
query getCustomRateCardById($id: UUID!) @auth(level: USER) {
customRateCard(id: $id) {
id
name
baseBook
discount
isDefault
createdAt
updatedAt
}
}

View File

@@ -1,33 +0,0 @@
mutation createDocument(
$documentType: DocumentType!
$name: String!
$description: String
) @auth(level: USER) {
document_insert(
data: {
documentType: $documentType
name: $name
description: $description
}
)
}
mutation updateDocument(
$id: UUID!
$documentType: DocumentType
$name: String
$description: String
) @auth(level: USER) {
document_update(
id: $id
data: {
documentType: $documentType
name: $name
description: $description
}
)
}
mutation deleteDocument($id: UUID!) @auth(level: USER) {
document_delete(id: $id)
}

View File

@@ -1,35 +0,0 @@
query listDocuments @auth(level: USER) {
documents {
id
documentType
name
description
createdAt
}
}
query getDocumentById($id: UUID!) @auth(level: USER) {
document(id: $id) {
id
documentType
name
description
createdAt
}
}
query filterDocuments(
$documentType: DocumentType
) @auth(level: USER) {
documents(
where: {
documentType: { eq: $documentType }
}
) {
id
documentType
name
description
createdAt
}
}

View File

@@ -1,35 +0,0 @@
mutation createEmergencyContact(
$name: String!
$phone: String!
$relationship: RelationshipType!
$staffId: UUID!
) @auth(level: USER) {
emergencyContact_insert(
data: {
name: $name
phone: $phone
relationship: $relationship
staffId: $staffId
}
)
}
mutation updateEmergencyContact(
$id: UUID!
$name: String
$phone: String
$relationship: RelationshipType
) @auth(level: USER) {
emergencyContact_update(
id: $id
data: {
name: $name
phone: $phone
relationship: $relationship
}
)
}
mutation deleteEmergencyContact($id: UUID!) @auth(level: USER) {
emergencyContact_delete(id: $id)
}

View File

@@ -1,38 +0,0 @@
query listEmergencyContacts @auth(level: USER) {
emergencyContacts {
id
name
phone
relationship
staffId
createdAt
updatedAt
createdBy
}
}
query getEmergencyContactById($id: UUID!) @auth(level: USER) {
emergencyContact(id: $id) {
id
name
phone
relationship
staffId
createdAt
updatedAt
createdBy
}
}
query getEmergencyContactsByStaffId($staffId: UUID!) @auth(level: USER) {
emergencyContacts(where: { staffId: { eq: $staffId } }) {
id
name
phone
relationship
staffId
createdAt
updatedAt
createdBy
}
}

View File

@@ -1,29 +0,0 @@
mutation createFaqData(
$category: String!
$questions: [Any!]
) @auth(level: USER) {
faqData_insert(
data: {
category: $category
questions: $questions
}
)
}
mutation updateFaqData(
$id: UUID!
$category: String
$questions: [Any!]
) @auth(level: USER) {
faqData_update(
id: $id
data: {
category: $category
questions: $questions
}
)
}
mutation deleteFaqData($id: UUID!) @auth(level: USER) {
faqData_delete(id: $id)
}

View File

@@ -1,29 +0,0 @@
query listFaqDatas @auth(level: USER) {
faqDatas {
id
category
questions
createdAt
updatedAt
createdBy
}
}
query getFaqDataById($id: UUID!) @auth(level: USER) {
faqData(id: $id) {
id
category
questions
createdAt
updatedAt
createdBy
}
}
query filterFaqDatas($category: String) @auth(level: USER) {
faqDatas(where: { category: { eq: $category } }) {
id
category
questions
}
}

View File

@@ -1,41 +0,0 @@
mutation createHub(
$name: String!
$locationName: String
$address: String
$nfcTagId: String
$ownerId: UUID!
) @auth(level: USER) {
hub_insert(
data: {
name: $name
locationName: $locationName
address: $address
nfcTagId: $nfcTagId
ownerId: $ownerId
}
)
}
mutation updateHub(
$id: UUID!
$name: String
$locationName: String
$address: String
$nfcTagId: String
$ownerId: UUID
) @auth(level: USER) {
hub_update(
id: $id
data: {
name: $name
locationName: $locationName
address: $address
nfcTagId: $nfcTagId
ownerId: $ownerId
}
)
}
mutation deleteHub($id: UUID!) @auth(level: USER) {
hub_delete(id: $id)
}

View File

@@ -1,62 +0,0 @@
query listHubs @auth(level: USER) {
hubs {
id
name
locationName
address
nfcTagId
ownerId
createdAt
updatedAt
createdBy
}
}
query getHubById($id: UUID!) @auth(level: USER) {
hub(id: $id) {
id
name
locationName
address
nfcTagId
ownerId
createdAt
updatedAt
createdBy
}
}
query getHubsByOwnerId($ownerId: UUID!) @auth(level: USER) {
hubs(where: { ownerId: { eq: $ownerId } }) {
id
name
locationName
address
nfcTagId
ownerId
createdAt
updatedAt
createdBy
}
}
query filterHubs(
$ownerId: UUID
$name: String
$nfcTagId: String
) @auth(level: USER) {
hubs(
where: {
ownerId: { eq: $ownerId }
name: { eq: $name }
nfcTagId: { eq: $nfcTagId }
}
) {
id
name
locationName
address
nfcTagId
ownerId
}
}

View File

@@ -1,123 +0,0 @@
mutation createInvoice(
$status: InvoiceStatus!
$vendorId: UUID!
$businessId: UUID!
$orderId: UUID!
$paymentTerms: InovicePaymentTerms
$invoiceNumber: String!
$issueDate: Timestamp!
$dueDate: Timestamp!
$hub: String
$managerName: String
$vendorNumber: String
$roles: Any
$charges: Any
$otherCharges: Float
$subtotal: Float
$amount: Float!
$notes: String
$staffCount: Int
$chargesCount: Int
) @auth(level: USER) {
invoice_insert(
data: {
status: $status
vendorId: $vendorId
businessId: $businessId
orderId: $orderId
paymentTerms: $paymentTerms
invoiceNumber: $invoiceNumber
issueDate: $issueDate
dueDate: $dueDate
hub: $hub
managerName: $managerName
vendorNumber: $vendorNumber
roles: $roles
charges: $charges
otherCharges: $otherCharges
subtotal: $subtotal
amount: $amount
notes: $notes
staffCount: $staffCount
chargesCount: $chargesCount
}
)
}
mutation updateInvoice(
$id: UUID!
$status: InvoiceStatus
$vendorId: UUID
$businessId: UUID
$orderId: UUID
$paymentTerms: InovicePaymentTerms
$invoiceNumber: String
$issueDate: Timestamp
$dueDate: Timestamp
$hub: String
$managerName: String
$vendorNumber: String
$roles: Any
$charges: Any
$otherCharges: Float
$subtotal: Float
$amount: Float
$notes: String
$staffCount: Int
$chargesCount: Int
$disputedItems: Any
$disputeReason: String
$disputeDetails: String
) @auth(level: USER) {
invoice_update(
id: $id
data: {
status: $status
vendorId: $vendorId
businessId: $businessId
orderId: $orderId
paymentTerms: $paymentTerms
invoiceNumber: $invoiceNumber
issueDate: $issueDate
dueDate: $dueDate
hub: $hub
managerName: $managerName
vendorNumber: $vendorNumber
roles: $roles
charges: $charges
otherCharges: $otherCharges
subtotal: $subtotal
amount: $amount
notes: $notes
staffCount: $staffCount
chargesCount: $chargesCount
disputedItems: $disputedItems
disputeReason: $disputeReason
disputeDetails: $disputeDetails
}
)
}
mutation deleteInvoice($id: UUID!) @auth(level: USER) {
invoice_delete(id: $id)
}

View File

@@ -1,520 +0,0 @@
# ------------------------------------------------------------
# LIST ALL INVOICES (admin/debug)
# ------------------------------------------------------------
query listInvoices(
$offset: Int
$limit: Int
) @auth(level: USER) {
invoices(offset: $offset, limit: $limit) {
id
status
vendorId
businessId
orderId
paymentTerms
invoiceNumber
issueDate
dueDate
hub
managerName
vendorNumber
roles
charges
otherCharges
subtotal
amount
notes
staffCount
chargesCount
disputedItems
disputeReason
disputeDetails
vendor {
companyName
address
email
phone
}
business {
businessName
address
phone
email
}
order {
eventName
hub
deparment
poReference
}
}
}
# ------------------------------------------------------------
# GET INVOICE BY ID
# ------------------------------------------------------------
query getInvoiceById($id: UUID!) @auth(level: USER) {
invoice(id: $id) {
id
status
vendorId
businessId
orderId
paymentTerms
invoiceNumber
issueDate
dueDate
hub
managerName
vendorNumber
roles
charges
otherCharges
subtotal
amount
notes
staffCount
chargesCount
disputedItems
disputeReason
disputeDetails
vendor {
companyName
address
email
phone
}
business {
businessName
address
phone
email
}
order {
eventName
hub
deparment
poReference
}
}
}
# ------------------------------------------------------------
# LIST INVOICES BY VENDOR
# ------------------------------------------------------------
query listInvoicesByVendorId(
$vendorId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
invoices(
where: { vendorId: { eq: $vendorId } }
offset: $offset
limit: $limit
orderBy: { issueDate: DESC }
) {
id
status
vendorId
businessId
orderId
paymentTerms
invoiceNumber
issueDate
dueDate
hub
managerName
vendorNumber
roles
charges
otherCharges
subtotal
amount
notes
staffCount
chargesCount
disputedItems
disputeReason
disputeDetails
vendor {
companyName
address
email
phone
}
business {
businessName
address
phone
email
}
order {
eventName
hub
deparment
poReference
}
}
}
# ------------------------------------------------------------
# LIST INVOICES BY BUSINESS
# ------------------------------------------------------------
query listInvoicesByBusinessId(
$businessId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
invoices(
where: { businessId: { eq: $businessId } }
offset: $offset
limit: $limit
orderBy: { issueDate: DESC }
) {
id
status
vendorId
businessId
orderId
paymentTerms
invoiceNumber
issueDate
dueDate
hub
managerName
vendorNumber
roles
charges
otherCharges
subtotal
amount
notes
staffCount
chargesCount
disputedItems
disputeReason
disputeDetails
vendor {
companyName
address
email
phone
}
business {
businessName
address
phone
email
}
order {
eventName
hub
deparment
poReference
}
}
}
# ------------------------------------------------------------
# LIST INVOICES BY ORDER
# ------------------------------------------------------------
query listInvoicesByOrderId(
$orderId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
invoices(
where: { orderId: { eq: $orderId } }
offset: $offset
limit: $limit
orderBy: { issueDate: DESC }
) {
id
status
vendorId
businessId
orderId
paymentTerms
invoiceNumber
issueDate
dueDate
hub
managerName
vendorNumber
roles
charges
otherCharges
subtotal
amount
notes
staffCount
chargesCount
disputedItems
disputeReason
disputeDetails
vendor {
companyName
address
email
phone
}
business {
businessName
address
phone
email
}
order {
eventName
hub
deparment
poReference
}
}
}
# ------------------------------------------------------------
# LIST INVOICES BY STATUS
# ------------------------------------------------------------
query listInvoicesByStatus(
$status: InvoiceStatus!
$offset: Int
$limit: Int
) @auth(level: USER) {
invoices(
where: { status: { eq: $status } }
offset: $offset
limit: $limit
orderBy: { dueDate: ASC }
) {
id
status
vendorId
businessId
orderId
paymentTerms
invoiceNumber
issueDate
dueDate
hub
managerName
vendorNumber
roles
charges
otherCharges
subtotal
amount
notes
staffCount
chargesCount
disputedItems
disputeReason
disputeDetails
vendor {
companyName
address
email
phone
}
business {
businessName
address
phone
email
}
order {
eventName
hub
deparment
poReference
}
}
}
# ------------------------------------------------------------
# FILTER INVOICES (multi filters)
# NOTE: Timestamp filters use ge/le (NOT gte/lte)
# ------------------------------------------------------------
query filterInvoices(
$vendorId: UUID
$businessId: UUID
$orderId: UUID
$status: InvoiceStatus
$issueDateFrom: Timestamp
$issueDateTo: Timestamp
$dueDateFrom: Timestamp
$dueDateTo: Timestamp
$offset: Int
$limit: Int
) @auth(level: USER) {
invoices(
where: {
vendorId: { eq: $vendorId }
businessId: { eq: $businessId }
orderId: { eq: $orderId }
status: { eq: $status }
issueDate: { ge: $issueDateFrom, le: $issueDateTo }
dueDate: { ge: $dueDateFrom, le: $dueDateTo }
}
offset: $offset
limit: $limit
orderBy: { issueDate: DESC }
) {
id
status
vendorId
businessId
orderId
paymentTerms
invoiceNumber
issueDate
dueDate
hub
managerName
vendorNumber
roles
charges
otherCharges
subtotal
amount
notes
staffCount
chargesCount
disputedItems
disputeReason
disputeDetails
vendor {
companyName
address
email
phone
}
business {
businessName
address
phone
email
}
order {
eventName
hub
deparment
poReference
}
}
}
# ------------------------------------------------------------
# OVERDUE INVOICES (dueDate < now and not PAID)
# NOTE: request.time works in @default; for filters, pass $now from client
# ------------------------------------------------------------
query listOverdueInvoices(
$now: Timestamp!
$offset: Int
$limit: Int
) @auth(level: USER) {
invoices(
where: {
dueDate: { lt: $now }
status: { ne: PAID }
}
offset: $offset
limit: $limit
orderBy: { dueDate: ASC }
) {
id
status
vendorId
businessId
orderId
paymentTerms
invoiceNumber
issueDate
dueDate
hub
managerName
vendorNumber
roles
charges
otherCharges
subtotal
amount
notes
staffCount
chargesCount
disputedItems
disputeReason
disputeDetails
vendor {
companyName
address
email
phone
}
business {
businessName
address
phone
email
}
order {
eventName
hub
deparment
poReference
}
}
}

View File

@@ -1,115 +0,0 @@
mutation createInvoiceTemplate(
$name: String!
$ownerId: UUID!
$vendorId: UUID
$businessId: UUID
$orderId: UUID
$paymentTerms: InovicePaymentTermsTemp
$invoiceNumber: String
$issueDate: Timestamp
$dueDate: Timestamp
$hub: String
$managerName: String
$vendorNumber: String
$roles: Any
$charges: Any
$otherCharges: Float
$subtotal: Float
$amount: Float
$notes: String
$staffCount: Int
$chargesCount: Int
) @auth(level: USER) {
invoiceTemplate_insert(
data: {
name: $name
ownerId: $ownerId
vendorId: $vendorId
businessId: $businessId
orderId: $orderId
paymentTerms: $paymentTerms
invoiceNumber: $invoiceNumber
issueDate: $issueDate
dueDate: $dueDate
hub: $hub
managerName: $managerName
vendorNumber: $vendorNumber
roles: $roles
charges: $charges
otherCharges: $otherCharges
subtotal: $subtotal
amount: $amount
notes: $notes
staffCount: $staffCount
chargesCount: $chargesCount
}
)
}
mutation updateInvoiceTemplate(
$id: UUID!
$name: String
$ownerId: UUID
$vendorId: UUID
$businessId: UUID
$orderId: UUID
$paymentTerms: InovicePaymentTermsTemp
$invoiceNumber: String
$issueDate: Timestamp
$dueDate: Timestamp
$hub: String
$managerName: String
$vendorNumber: String
$roles: Any
$charges: Any
$otherCharges: Float
$subtotal: Float
$amount: Float
$notes: String
$staffCount: Int
$chargesCount: Int
) @auth(level: USER) {
invoiceTemplate_update(
id: $id
data: {
name: $name
ownerId: $ownerId
vendorId: $vendorId
businessId: $businessId
orderId: $orderId
paymentTerms: $paymentTerms
invoiceNumber: $invoiceNumber
issueDate: $issueDate
dueDate: $dueDate
hub: $hub
managerName: $managerName
vendorNumber: $vendorNumber
roles: $roles
charges: $charges
otherCharges: $otherCharges
subtotal: $subtotal
amount: $amount
notes: $notes
staffCount: $staffCount
chargesCount: $chargesCount
}
)
}
mutation deleteInvoiceTemplate($id: UUID!) @auth(level: USER) {
invoiceTemplate_delete(id: $id)
}

View File

@@ -1,325 +0,0 @@
# ----------------------------------------------------------
# LIST ALL (admin/debug)
# ----------------------------------------------------------
query listInvoiceTemplates(
$offset: Int
$limit: Int
) @auth(level: USER) {
invoiceTemplates(offset: $offset, limit: $limit) {
id
name
ownerId
vendorId
businessId
orderId
paymentTerms
invoiceNumber
issueDate
dueDate
hub
managerName
vendorNumber
roles
charges
otherCharges
subtotal
amount
notes
staffCount
chargesCount
createdAt
updatedAt
createdBy
vendor { id companyName }
business { id businessName email contactName }
order { id eventName status orderType }
}
}
# ----------------------------------------------------------
# GET BY ID
# ----------------------------------------------------------
query getInvoiceTemplateById($id: UUID!) @auth(level: USER) {
invoiceTemplate(id: $id) {
id
name
ownerId
vendorId
businessId
orderId
paymentTerms
invoiceNumber
issueDate
dueDate
hub
managerName
vendorNumber
roles
charges
otherCharges
subtotal
amount
notes
staffCount
chargesCount
createdAt
updatedAt
createdBy
vendor { id companyName }
business { id businessName email contactName }
order { id eventName status orderType }
}
}
# ----------------------------------------------------------
# LIST BY OWNER (my templates)
# ----------------------------------------------------------
query listInvoiceTemplatesByOwnerId(
$ownerId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
invoiceTemplates(
where: { ownerId: { eq: $ownerId } }
offset: $offset
limit: $limit
orderBy: { updatedAt: DESC }
) {
id
name
ownerId
vendorId
businessId
orderId
paymentTerms
invoiceNumber
issueDate
dueDate
hub
managerName
vendorNumber
roles
charges
otherCharges
subtotal
amount
notes
staffCount
chargesCount
createdAt
updatedAt
createdBy
vendor { id companyName }
business { id businessName email contactName }
order { id eventName status orderType }
}
}
# ----------------------------------------------------------
# LIST BY VENDOR (templates tied to a vendor)
# ----------------------------------------------------------
query listInvoiceTemplatesByVendorId(
$vendorId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
invoiceTemplates(
where: { vendorId: { eq: $vendorId } }
offset: $offset
limit: $limit
orderBy: { updatedAt: DESC }
) {
id
name
ownerId
vendorId
businessId
orderId
paymentTerms
invoiceNumber
issueDate
dueDate
hub
managerName
vendorNumber
roles
charges
otherCharges
subtotal
amount
notes
staffCount
chargesCount
createdAt
updatedAt
createdBy
vendor { id companyName }
business { id businessName email contactName }
order { id eventName status orderType }
}
}
# ----------------------------------------------------------
# LIST BY BUSINESS (templates tied to a business)
# ----------------------------------------------------------
query listInvoiceTemplatesByBusinessId(
$businessId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
invoiceTemplates(
where: { businessId: { eq: $businessId } }
offset: $offset
limit: $limit
orderBy: { updatedAt: DESC }
) {
id
name
ownerId
vendorId
businessId
orderId
paymentTerms
invoiceNumber
issueDate
dueDate
hub
managerName
vendorNumber
roles
charges
otherCharges
subtotal
amount
notes
staffCount
chargesCount
createdAt
updatedAt
createdBy
vendor { id companyName }
business { id businessName email contactName }
order { id eventName status orderType }
}
}
# ----------------------------------------------------------
# LIST BY ORDER (templates tied to a specific order)
# ----------------------------------------------------------
query listInvoiceTemplatesByOrderId(
$orderId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
invoiceTemplates(
where: { orderId: { eq: $orderId } }
offset: $offset
limit: $limit
orderBy: { updatedAt: DESC }
) {
id
name
ownerId
vendorId
businessId
orderId
paymentTerms
invoiceNumber
issueDate
dueDate
hub
managerName
vendorNumber
roles
charges
otherCharges
subtotal
amount
notes
staffCount
chargesCount
createdAt
updatedAt
createdBy
vendor { id companyName }
business { id businessName email contactName }
order { id eventName status orderType }
}
}
# ----------------------------------------------------------
# SEARCH (by name) within an owner
# ----------------------------------------------------------
query searchInvoiceTemplatesByOwnerAndName(
$ownerId: UUID!
$name: String!
$offset: Int
$limit: Int
) @auth(level: USER) {
invoiceTemplates(
where: {
ownerId: { eq: $ownerId }
name: { eq: $name }
}
offset: $offset
limit: $limit
orderBy: { updatedAt: DESC }
) {
id
name
ownerId
vendorId
businessId
orderId
paymentTerms
invoiceNumber
issueDate
dueDate
hub
managerName
vendorNumber
roles
charges
otherCharges
subtotal
amount
notes
staffCount
chargesCount
createdAt
updatedAt
createdBy
vendor { id companyName }
business { id businessName email contactName }
order { id eventName status orderType }
}
}

View File

@@ -1,37 +0,0 @@
mutation createLevel(
$name: String!
$xpRequired: Int!
$icon: String
$colors: Any
) @auth(level: USER) {
level_insert(
data: {
name: $name
xpRequired: $xpRequired
icon: $icon
colors: $colors
}
)
}
mutation updateLevel(
$id: UUID!
$name: String
$xpRequired: Int
$icon: String
$colors: Any
) @auth(level: USER) {
level_update(
id: $id
data: {
name: $name
xpRequired: $xpRequired
icon: $icon
colors: $colors
}
)
}
mutation deleteLevel($id: UUID!) @auth(level: USER) {
level_delete(id: $id)
}

View File

@@ -1,44 +0,0 @@
query listLevels @auth(level: USER) {
levels {
id
name
xpRequired
icon
colors
createdAt
updatedAt
createdBy
}
}
query getLevelById($id: UUID!) @auth(level: USER) {
level(id: $id) {
id
name
xpRequired
icon
colors
createdAt
updatedAt
createdBy
}
}
query filterLevels(
$name: String
$xpRequired: Int
) @auth(level: USER) {
levels(
where: {
name: { eq: $name }
xpRequired: { eq: $xpRequired }
}
) {
id
name
xpRequired
icon
colors
}
}

View File

@@ -1,21 +0,0 @@
mutation createMemberTask(
$teamMemberId: UUID!
$taskId: UUID!
) @auth(level: USER) {
memberTask_insert(
data: {
teamMemberId: $teamMemberId
taskId: $taskId
}
)
}
mutation deleteMemberTask(
$teamMemberId: UUID!
$taskId: UUID!
) @auth(level: USER) {
memberTask_delete(
key: { teamMemberId: $teamMemberId, taskId: $taskId }
)
}

View File

@@ -1,77 +0,0 @@
query getMyTasks($teamMemberId: UUID!) @auth(level: USER) {
memberTasks(where: { teamMemberId: { eq: $teamMemberId } }) {
id
task {
id
taskName
description
status
dueDate
progress
priority
}
teamMember{
user {
fullName
email
}
}
}
}
#before named getMemberTaskByIdKey
query getMemberTaskByIdKey(
$teamMemberId: UUID!
$taskId: UUID!
) @auth(level: USER) {
memberTask(key: { teamMemberId: $teamMemberId, taskId: $taskId }) {
id
task {
id
taskName
description
status
dueDate
progress
priority
}
teamMember{
user {
fullName
email
}
}
}
}
query getMemberTasksByTaskId($taskId: UUID!) @auth(level: USER) {
memberTasks(where: { taskId: { eq: $taskId } }) {
id
task {
id
taskName
description
status
dueDate
progress
priority
}
teamMember{
user {
fullName
email
}
}
}
}

View File

@@ -1,37 +0,0 @@
mutation createMessage(
$conversationId: UUID!,
$senderId: String!,
$content: String!,
$isSystem: Boolean
) @auth(level: USER) {
message_insert(
data: {
conversationId: $conversationId,
senderId: $senderId,
content: $content,
isSystem: $isSystem
}
)
}
mutation updateMessage(
$id: UUID!,
$conversationId: UUID,
$senderId: String,
$content: String,
$isSystem: Boolean
) @auth(level: USER) {
message_update(
id: $id,
data: {
conversationId: $conversationId,
senderId: $senderId,
content: $content,
isSystem: $isSystem
}
)
}
mutation deleteMessage($id: UUID!) @auth(level: USER) {
message_delete(id: $id)
}

View File

@@ -1,41 +0,0 @@
query listMessages @auth(level: USER) {
messages {
id
conversationId
senderId
content
isSystem
createdAt
user{
fullName
}
}
}
query getMessageById($id: UUID!) @auth(level: USER) {
message(id: $id) {
id
conversationId
senderId
content
isSystem
createdAt
user{
fullName
}
}
}
query getMessagesByConversationId($conversationId: UUID!) @auth(level: USER) {
messages(where: { conversationId: { eq: $conversationId } }) {
id
conversationId
senderId
content
isSystem
createdAt
user{
fullName
}
}
}

View File

@@ -1,100 +0,0 @@
mutation createOrder(
$vendorId: UUID
$businessId: UUID!
$orderType: OrderType!
$location: String
$status: OrderStatus
$date: Timestamp
$startDate: Timestamp
$endDate: Timestamp
$duration: OrderDuration
$lunchBreak: Int
$total: Float
$eventName: String
$assignedStaff: Any
$shifts: Any
$requested: Int
$hub: String
$recurringDays: Any
$permanentStartDate: Timestamp
$permanentDays: Any
$notes: String
$detectedConflicts: Any
$poReference: String
) @auth(level: USER) {
order_insert(
data: {
vendorId: $vendorId
businessId: $businessId
orderType: $orderType
location: $location
status: $status
date: $date
startDate: $startDate
endDate: $endDate
duration: $duration
lunchBreak: $lunchBreak
total: $total
eventName: $eventName
assignedStaff: $assignedStaff
shifts: $shifts
requested: $requested
hub: $hub
recurringDays: $recurringDays
permanentDays: $permanentDays
notes: $notes
detectedConflicts: $detectedConflicts
poReference: $poReference
}
)
}
mutation updateOrder(
$id: UUID!
$vendorId: UUID
$businessId: UUID
$location: String
$status: OrderStatus
$date: Timestamp
$startDate: Timestamp
$endDate: Timestamp
$total: Float
$eventName: String
$assignedStaff: Any
$shifts: Any
$requested: Int
$hub: String
$recurringDays: Any
$permanentDays: Any
$notes: String
$detectedConflicts: Any
$poReference: String
) @auth(level: USER) {
order_update(
id: $id
data: {
vendorId: $vendorId
businessId: $businessId
location: $location
status: $status
date: $date
startDate: $startDate
endDate: $endDate
total: $total
eventName: $eventName
assignedStaff: $assignedStaff
shifts: $shifts
requested: $requested
hub: $hub
recurringDays: $recurringDays
permanentDays: $permanentDays
notes: $notes
detectedConflicts: $detectedConflicts
poReference: $poReference
}
)
}
mutation deleteOrder($id: UUID!) @auth(level: USER) {
order_delete(id: $id)
}

View File

@@ -1,352 +0,0 @@
# ------------------------------------------------------------
# LIST ALL ORDERS
# ------------------------------------------------------------
query listOrders(
$offset: Int
$limit: Int
) @auth(level: USER) {
orders(offset: $offset, limit: $limit) {
id
eventName
vendorId
businessId
orderType
location
status
date
startDate
endDate
duration
lunchBreak
total
assignedStaff
shifts
requested
hub
recurringDays
permanentDays
poReference
detectedConflicts
notes
createdAt
business {
id
businessName
email
contactName
}
vendor {
id
companyName
}
}
}
# ------------------------------------------------------------
# GET ORDER BY ID
# ------------------------------------------------------------
query getOrderById($id: UUID!) @auth(level: USER) {
order(id: $id) {
id
eventName
vendorId
businessId
orderType
location
status
date
startDate
endDate
duration
lunchBreak
total
assignedStaff
shifts
requested
hub
recurringDays
permanentDays
poReference
detectedConflicts
notes
createdAt
business {
id
businessName
email
contactName
}
vendor {
id
companyName
}
}
}
# ------------------------------------------------------------
# GET ORDERS BY BUSINESS
# ------------------------------------------------------------
query getOrdersByBusinessId(
$businessId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
orders(
where: { businessId: { eq: $businessId } }
offset: $offset
limit: $limit
) {
id
eventName
vendorId
businessId
orderType
location
status
date
startDate
endDate
duration
lunchBreak
total
assignedStaff
shifts
requested
hub
recurringDays
permanentDays
poReference
detectedConflicts
notes
createdAt
business {
id
businessName
email
contactName
}
vendor {
id
companyName
}
}
}
# ------------------------------------------------------------
# GET ORDERS BY VENDOR
# ------------------------------------------------------------
query getOrdersByVendorId(
$vendorId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
orders(
where: { vendorId: { eq: $vendorId } }
offset: $offset
limit: $limit
) {
id
eventName
vendorId
businessId
orderType
location
status
date
startDate
endDate
duration
lunchBreak
total
assignedStaff
shifts
requested
hub
recurringDays
permanentDays
poReference
detectedConflicts
notes
createdAt
business {
id
businessName
email
contactName
}
vendor {
id
companyName
}
}
}
# ------------------------------------------------------------
# GET ORDERS BY STATUS
# ------------------------------------------------------------
query getOrdersByStatus(
$status: OrderStatus!
$offset: Int
$limit: Int
) @auth(level: USER) {
orders(
where: { status: { eq: $status } }
offset: $offset
limit: $limit
) {
id
eventName
vendorId
businessId
orderType
location
status
date
startDate
endDate
duration
lunchBreak
total
assignedStaff
shifts
requested
hub
recurringDays
permanentDays
poReference
detectedConflicts
notes
createdAt
business {
id
businessName
email
contactName
}
vendor {
id
companyName
}
}
}
# ------------------------------------------------------------
# GET ORDERS BY DATE RANGE
# ------------------------------------------------------------
query getOrdersByDateRange(
$start: Timestamp!
$end: Timestamp!
$offset: Int
$limit: Int
) @auth(level: USER) {
orders(
where: {
date: { ge: $start, le: $end }
}
offset: $offset
limit: $limit
) {
id
eventName
vendorId
businessId
orderType
location
status
date
startDate
endDate
duration
lunchBreak
total
assignedStaff
shifts
requested
hub
recurringDays
permanentDays
poReference
detectedConflicts
notes
createdAt
business {
id
businessName
email
contactName
}
vendor {
id
companyName
}
}
}
# ------------------------------------------------------------
# GET RAPID ORDERS
# ------------------------------------------------------------
query getRapidOrders(
$offset: Int
$limit: Int
) @auth(level: USER) {
orders(
where: { orderType: { eq: RAPID } }
offset: $offset
limit: $limit
) {
id
eventName
vendorId
businessId
orderType
location
status
date
startDate
endDate
duration
lunchBreak
total
assignedStaff
shifts
requested
hub
recurringDays
permanentDays
poReference
detectedConflicts
notes
createdAt
business {
id
businessName
email
contactName
}
vendor {
id
companyName
}
}
}

View File

@@ -1,41 +0,0 @@
mutation createRecentPayment(
$workedTime: String
$status: RecentPaymentStatus
$staffId: UUID!
$applicationId: UUID!
$invoiceId: UUID!
) @auth(level: USER) {
recentPayment_insert(
data: {
workedTime: $workedTime
status: $status
staffId: $staffId
applicationId: $applicationId
invoiceId: $invoiceId
}
)
}
mutation updateRecentPayment(
$id: UUID!
$workedTime: String
$status: RecentPaymentStatus
$staffId: UUID
$applicationId: UUID
$invoiceId: UUID
) @auth(level: USER) {
recentPayment_update(
id: $id
data: {
workedTime: $workedTime
status: $status
staffId: $staffId
applicationId: $applicationId
invoiceId: $invoiceId
}
)
}
mutation deleteRecentPayment($id: UUID!) @auth(level: USER) {
recentPayment_delete(id: $id)
}

View File

@@ -1,417 +0,0 @@
# ------------------------------------------------------------
# LIST ALL (admin/debug)
# ------------------------------------------------------------
query listRecentPayments(
$offset: Int
$limit: Int
) @auth(level: USER) {
recentPayments(offset: $offset, limit: $limit) {
id
workedTime
status
staffId
applicationId
invoiceId
createdAt
updatedAt
createdBy
application {
checkInTime
checkOutTime
shiftRole {
hours
totalValue
startTime
endTime
role {
name
costPerHour
}
shift {
title
date
location
locationAddress
description
}
}
}
invoice {
status
invoiceNumber
issueDate
business { id businessName }
vendor { id companyName }
order { id eventName }
}
}
}
# ------------------------------------------------------------
# GET BY ID
# ------------------------------------------------------------
query getRecentPaymentById($id: UUID!) @auth(level: USER) {
recentPayment(id: $id) {
id
workedTime
status
staffId
applicationId
invoiceId
createdAt
updatedAt
createdBy
application {
checkInTime
checkOutTime
shiftRole {
hours
totalValue
startTime
endTime
role {
name
costPerHour
}
shift {
title
date
location
locationAddress
description
}
}
}
invoice {
status
invoiceNumber
issueDate
business { id businessName }
vendor { id companyName }
order { id eventName }
}
}
}
# ------------------------------------------------------------
# LIST BY STAFF (Staff view)
# ------------------------------------------------------------
query listRecentPaymentsByStaffId(
$staffId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
recentPayments(
where: { staffId: { eq: $staffId } }
offset: $offset
limit: $limit
orderBy: { createdAt: DESC }
) {
id
workedTime
status
staffId
applicationId
invoiceId
createdAt
updatedAt
createdBy
application {
id
status
shiftRole {
startTime
endTime
hours
totalValue
role { id name costPerHour }
shift {
id
title
date
locationAddress
}
}
}
invoice {
id
invoiceNumber
status
issueDate
dueDate
amount
business { id businessName }
vendor { id companyName }
order { id eventName location }
}
}
}
# ------------------------------------------------------------
# LIST BY APPLICATION (debug / trace)
# ------------------------------------------------------------
query listRecentPaymentsByApplicationId(
$applicationId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
recentPayments(
where: { applicationId: { eq: $applicationId } }
offset: $offset
limit: $limit
) {
id
workedTime
status
staffId
applicationId
invoiceId
createdAt
updatedAt
createdBy
application {
id
status
shiftRole {
hours
totalValue
role { id name costPerHour }
shift { id title date locationAddress }
}
}
invoice {
id
invoiceNumber
status
amount
business { id businessName }
vendor { id companyName }
order { id eventName location }
}
}
}
# ------------------------------------------------------------
# LIST BY INVOICE (Vendor/Business can see all payments for invoice)
# ------------------------------------------------------------
query listRecentPaymentsByInvoiceId(
$invoiceId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
recentPayments(
where: { invoiceId: { eq: $invoiceId } }
offset: $offset
limit: $limit
) {
id
workedTime
status
staffId
applicationId
invoiceId
createdAt
updatedAt
createdBy
application {
id
staffId
shiftRole {
hours
totalValue
role { id name costPerHour }
shift { id title date locationAddress }
}
}
invoice {
id
invoiceNumber
status
amount
business { id businessName }
vendor { id companyName }
order { id eventName location }
}
}
}
# ------------------------------------------------------------
# FILTER BY STATUS (common)
# ------------------------------------------------------------
query listRecentPaymentsByStatus(
$status: RecentPaymentStatus!
$offset: Int
$limit: Int
) @auth(level: USER) {
recentPayments(
where: { status: { eq: $status } }
offset: $offset
limit: $limit
orderBy: { createdAt: DESC }
) {
id
workedTime
status
staffId
applicationId
invoiceId
createdAt
updatedAt
createdBy
application {
id
shiftRole {
hours
totalValue
role { id name costPerHour }
shift { id title date locationAddress }
}
}
invoice {
id
invoiceNumber
status
amount
business { id businessName }
vendor { id companyName }
order { id eventName location }
}
}
}
# ------------------------------------------------------------
# BY BUSINESS (2-step)
# Step 2: pass invoiceIds (from query: listInvoicesByBusinessId)
# ------------------------------------------------------------
query listRecentPaymentsByInvoiceIds(
$invoiceIds: [UUID!]!
$offset: Int
$limit: Int
) @auth(level: USER) {
recentPayments(
where: { invoiceId: { in: $invoiceIds } }
offset: $offset
limit: $limit
orderBy: { createdAt: DESC }
) {
id
workedTime
status
staffId
applicationId
invoiceId
createdAt
updatedAt
createdBy
application {
id
shiftRole {
hours
totalValue
role { id name costPerHour }
shift { id title date locationAddress }
}
}
invoice {
id
invoiceNumber
status
amount
business { id businessName }
vendor { id companyName }
order { id eventName location }
}
}
}
# ------------------------------------------------------------
# LIST BY BUSINESS ID (direct)
# ------------------------------------------------------------
query listRecentPaymentsByBusinessId(
$businessId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
recentPayments(
where: {
invoice: {
businessId: { eq: $businessId }
}
}
offset: $offset
limit: $limit
orderBy: { createdAt: DESC }
) {
id
workedTime
status
staffId
applicationId
invoiceId
createdAt
updatedAt
createdBy
application {
id
staffId
checkInTime
checkOutTime
shiftRole {
startTime
endTime
hours
totalValue
role { id name costPerHour }
shift {
id
title
date
location
locationAddress
description
}
}
}
invoice {
id
invoiceNumber
status
issueDate
dueDate
amount
business { id businessName }
vendor { id companyName }
order { id eventName location }
}
}
}

View File

@@ -1,455 +0,0 @@
# ==========================================================
# Reports Connector - For MVP
# ==========================================================
# This file exposes SOURCE-DATA queries for all report screens.
# All aggregation (group by day/week, percentages, averages)
# is intentionally done on the client (Flutter).
#
# Entities used:
# - Shift
# - Application
# - Staff
# - Invoice
# - TimeSheet
#
# NOTE:
# Data Connect does NOT support custom root resolvers.
# These queries return raw rows from @table entities.
# ==========================================================
# ==========================================================
# 1) COVERAGE REPORT (Next 7 days)
# ==========================================================
# Coverage definition:
# - Needed: sum(Shift.workersNeeded) grouped by date
# - Confirmed: count(Application) where status IN (...)
#
# Client groups by Shift.date and calculates:
# coveragePercentage = confirmed / needed * 100
# ==========================================================
query listShiftsForCoverage(
$businessId: UUID!
$startDate: Timestamp!
$endDate: Timestamp!
) @auth(level: USER) {
shifts(
where: {
order: { businessId: { eq: $businessId } }
date: { ge: $startDate, le: $endDate }
}
orderBy: { date: ASC }
) {
id
date
workersNeeded
filled
status
}
}
#I comment here because I have an error en sdk
query listApplicationsForCoverage(
$shiftIds: [UUID!]!
#$statuses: [ApplicationStatus!]!
) @auth(level: USER) {
applications(
where: {
shiftId: { in: $shiftIds }
#status: { in: $statuses }
}
) {
id
shiftId
staffId
status
}
}
# ==========================================================
# 2) DAILY OPS REPORT (Single day)
# ==========================================================
# Metrics derived on client:
# - scheduledShifts = shifts.length
# - workersConfirmed = confirmedApps / totalNeeded
# - inProgressShifts = status == IN_PROGRESS
# - completedShifts = status == COMPLETED
# ==========================================================
query listShiftsForDailyOpsByBusiness(
$businessId: UUID!
$date: Timestamp!
) @auth(level: USER) {
shifts(
where: {
order: { businessId: { eq: $businessId } }
date: { eq: $date }
}
orderBy: { startTime: ASC }
) {
id
title
location
startTime
endTime
workersNeeded
filled
status
}
}
query listShiftsForDailyOpsByVendor(
$vendorId: UUID!
$date: Timestamp!
) @auth(level: USER) {
shifts(
where: {
order: { vendorId: { eq: $vendorId } }
date: { eq: $date }
}
orderBy: { startTime: ASC }
) {
id
title
location
startTime
endTime
workersNeeded
filled
status
}
}
query listApplicationsForDailyOps(
$shiftIds: [UUID!]!
) @auth(level: USER) {
applications(where: { shiftId: { in: $shiftIds } }) {
id
shiftId
staffId
status
checkInTime
checkOutTime
}
}
# ==========================================================
# 3) FORECAST REPORT (Next N weeks)
# ==========================================================
# Projected spend formula (client):
# projectedCost = workersNeeded * hours * hourlyRate
# ==========================================================
query listShiftsForForecastByBusiness(
$businessId: UUID!
$startDate: Timestamp!
$endDate: Timestamp!
) @auth(level: USER) {
shifts(
where: {
order: { businessId: { eq: $businessId } }
date: { ge: $startDate, le: $endDate }
}
orderBy: { date: ASC }
) {
id
date
workersNeeded
hours
cost
status
}
}
query listShiftsForForecastByVendor(
$vendorId: UUID!
$startDate: Timestamp!
$endDate: Timestamp!
) @auth(level: USER) {
shifts(
where: {
order: { vendorId: { eq: $vendorId } }
date: { ge: $startDate, le: $endDate }
}
orderBy: { date: ASC }
) {
id
date
workersNeeded
hours
cost
status
}
}
# ==========================================================
# 4) NO-SHOW REPORT (Historical range)
# ==========================================================
# Now fully supported because ApplicationStatus includes NO_SHOW.
#
# Metrics:
# - totalNoShows = count(status == NO_SHOW)
# - noShowRate = noShows / totalApplications
# - breakdown by staff
# ==========================================================
query listShiftsForNoShowRangeByBusiness(
$businessId: UUID!
$startDate: Timestamp!
$endDate: Timestamp!
) @auth(level: USER) {
shifts(
where: {
order: { businessId: { eq: $businessId } }
date: { ge: $startDate, le: $endDate }
}
) {
id
date
}
}
query listShiftsForNoShowRangeByVendor(
$vendorId: UUID!
$startDate: Timestamp!
$endDate: Timestamp!
) @auth(level: USER) {
shifts(
where: {
order: { vendorId: { eq: $vendorId } }
date: { ge: $startDate, le: $endDate }
}
) {
id
date
}
}
query listApplicationsForNoShowRange(
$shiftIds: [UUID!]!
) @auth(level: USER) {
applications(where: { shiftId: { in: $shiftIds } }) {
id
shiftId
staffId
status
}
}
query listStaffForNoShowReport(
$staffIds: [UUID!]!
) @auth(level: USER) {
staffs(where: { id: { in: $staffIds } }) {
id
fullName
noShowCount
reliabilityScore
}
}
# ==========================================================
# 5) SPEND REPORT (Financial)
# ==========================================================
# Uses Invoice as source of truth for money.
# Filter is now based on:
# - businessId (business dashboard)
# - vendorId (vendor dashboard)
# since Invoice no longer has ownerId.
# ==========================================================
query listInvoicesForSpendByBusiness(
$businessId: UUID!
$startDate: Timestamp!
$endDate: Timestamp!
) @auth(level: USER) {
invoices(
where: {
businessId: { eq: $businessId }
issueDate: { ge: $startDate, le: $endDate }
}
orderBy: { issueDate: ASC }
) {
id
issueDate
dueDate
amount
status
invoiceNumber
vendor { id companyName }
business { id businessName }
order { id eventName }
}
}
query listInvoicesForSpendByVendor(
$vendorId: UUID!
$startDate: Timestamp!
$endDate: Timestamp!
) @auth(level: USER) {
invoices(
where: {
vendorId: { eq: $vendorId }
issueDate: { ge: $startDate, le: $endDate }
}
orderBy: { issueDate: ASC }
) {
id
issueDate
dueDate
amount
status
invoiceNumber
vendor { id companyName }
business { id businessName }
order { id eventName }
}
}
# Optional: Spend by Order (if you need it)
query listInvoicesForSpendByOrder(
$orderId: UUID!
$startDate: Timestamp!
$endDate: Timestamp!
) @auth(level: USER) {
invoices(
where: {
orderId: { eq: $orderId }
issueDate: { ge: $startDate, le: $endDate }
}
orderBy: { issueDate: ASC }
) {
id
issueDate
dueDate
amount
status
invoiceNumber
vendor { id companyName }
business { id businessName }
order { id eventName }
}
}
query listTimesheetsForSpend(
$startTime: Timestamp!
$endTime: Timestamp!
) @auth(level: USER) {
shiftRoles(
where: {
shift: {
date: { ge: $startTime, le: $endTime }
}
}
) {
id
hours
totalValue
shift{
title
location
status
date
order{
business{
businessName
}
}
}
role{
costPerHour
}
}
}
# ==========================================================
# 6) PERFORMANCE REPORT (Historical KPIs)
# ==========================================================
# Metrics derivable:
# - fillRate
# - completionRate
# - onTimeRate
# - avgFillTimeHours (NOW POSSIBLE 🎉)
#
# avgFillTimeHours formula:
# (filledAt - createdAt) averaged across FILLED shifts
# ==========================================================
query listShiftsForPerformanceByBusiness(
$businessId: UUID!
$startDate: Timestamp!
$endDate: Timestamp!
) @auth(level: USER) {
shifts(
where: {
order: { businessId: { eq: $businessId } }
date: { ge: $startDate, le: $endDate }
filledAt: { isNull: false }
}
) {
id
workersNeeded
filled
status
createdAt
filledAt
}
}
query listShiftsForPerformanceByVendor(
$vendorId: UUID!
$startDate: Timestamp!
$endDate: Timestamp!
) @auth(level: USER) {
shifts(
where: {
order: { vendorId: { eq: $vendorId } }
date: { ge: $startDate, le: $endDate }
filledAt: { isNull: false }
}
) {
id
workersNeeded
filled
status
createdAt
filledAt
}
}
query listApplicationsForPerformance(
$shiftIds: [UUID!]!
) @auth(level: USER) {
applications(where: { shiftId: { in: $shiftIds } }) {
id
shiftId
staffId
status
checkInTime
checkOutTime
}
}
query listStaffForPerformance(
$staffIds: [UUID!]!
) @auth(level: USER) {
staffs(where: { id: { in: $staffIds } }) {
id
averageRating
onTimeRate
noShowCount
reliabilityScore
}
}

View File

@@ -1,36 +0,0 @@
mutation createRole(
$name: String!
$costPerHour: Float!
$vendorId: UUID!
$roleCategoryId: UUID!
) @auth(level: USER) {
role_insert(
data: {
name: $name
costPerHour: $costPerHour
vendorId: $vendorId
roleCategoryId: $roleCategoryId
}
)
}
mutation updateRole(
$id: UUID!
$name: String
$costPerHour: Float
$roleCategoryId: UUID!
) @auth(level: USER) {
role_update(
id: $id
data: {
name: $name
costPerHour: $costPerHour
roleCategoryId: $roleCategoryId
}
)
}
mutation deleteRole($id: UUID!) @auth(level: USER) {
role_delete(id: $id)
}

View File

@@ -1,43 +0,0 @@
query listRoles @auth(level: USER) {
roles {
id
name
costPerHour
vendorId
roleCategoryId
createdAt
}
}
query getRoleById($id: UUID!) @auth(level: USER) {
role(id: $id) {
id
name
costPerHour
vendorId
roleCategoryId
createdAt
}
}
query listRolesByVendorId($vendorId: UUID!) @auth(level: USER) {
roles(where: { vendorId: { eq: $vendorId } }) {
id
name
costPerHour
vendorId
roleCategoryId
createdAt
}
}
query listRolesByroleCategoryId($roleCategoryId: UUID!) @auth(level: USER) {
roles(where: { roleCategoryId: { eq: $roleCategoryId } }) {
id
name
costPerHour
vendorId
roleCategoryId
createdAt
}
}

View File

@@ -1,29 +0,0 @@
mutation createRoleCategory(
$roleName: String!,
$category: RoleCategoryType!
) @auth(level: USER) {
roleCategory_insert(
data: {
roleName: $roleName,
category: $category
}
)
}
mutation updateRoleCategory(
$id: UUID!,
$roleName: String,
$category: RoleCategoryType
) @auth(level: USER) {
roleCategory_update(
id: $id,
data: {
roleName: $roleName,
category: $category
}
)
}
mutation deleteRoleCategory($id: UUID!) @auth(level: USER) {
roleCategory_delete(id: $id)
}

View File

@@ -1,27 +0,0 @@
query listRoleCategories @auth(level: USER) {
roleCategories {
id
roleName
category
createdAt
updatedAt
}
}
query getRoleCategoryById($id: UUID!) @auth(level: USER) {
roleCategory(id: $id) {
id
roleName
category
createdAt
updatedAt
}
}
query getRoleCategoriesByCategory($category: RoleCategoryType!) @auth(level: USER) {
roleCategories(where: { category: { eq: $category } }) {
id
roleName
category
}
}

View File

@@ -1,114 +0,0 @@
mutation createShift(
$title: String!
$orderId: UUID!
$date: Timestamp
$startTime: Timestamp
$endTime: Timestamp
$hours: Float
$cost: Float
$location: String
$locationAddress: String
$latitude: Float
$longitude: Float
$description: String
$status: ShiftStatus
$workersNeeded: Int
$filled: Int
$filledAt: Timestamp
$managers: [Any!]
$durationDays: Int
$createdBy: String
) @auth(level: USER) {
shift_insert(
data: {
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
}
)
}
mutation updateShift(
$id: UUID!
$title: String
$orderId: UUID
$date: Timestamp
$startTime: Timestamp
$endTime: Timestamp
$hours: Float
$cost: Float
$location: String
$locationAddress: String
$latitude: Float
$longitude: Float
$description: String
$status: ShiftStatus
$workersNeeded: Int
$filled: Int
$filledAt: Timestamp
$managers: [Any!]
$durationDays: Int
) @auth(level: USER) {
shift_update(
id: $id
data: {
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
}
)
}
mutation deleteShift($id: UUID!) @auth(level: USER) {
shift_delete(id: $id)
}

View File

@@ -1,282 +0,0 @@
# ------------------------------------------------------------
# LIST SHIFTS (paginated)
# ------------------------------------------------------------
query listShifts(
$offset: Int
$limit: Int
) @auth(level: USER) {
shifts(offset: $offset, limit: $limit) {
id
title
orderId
date
startTime
endTime
hours
cost
location
locationAddress
latitude
longitude
description
status
workersNeeded
filled
filledAt
managers
durationDays
createdAt
updatedAt
createdBy
order {
id
eventName
status
orderType
businessId
vendorId
business { id businessName email contactName }
vendor { id companyName }
}
}
}
# ------------------------------------------------------------
# GET SHIFT BY ID
# ------------------------------------------------------------
query getShiftById($id: UUID!) @auth(level: USER) {
shift(id: $id) {
id
title
orderId
date
startTime
endTime
hours
cost
location
locationAddress
latitude
longitude
description
status
workersNeeded
filled
filledAt
managers
durationDays
createdAt
updatedAt
createdBy
order {
id
eventName
status
orderType
businessId
vendorId
business { id businessName email contactName }
vendor { id companyName }
}
}
}
# ------------------------------------------------------------
# FILTER SHIFTS (by status/orderId/date range)
# NOTE: Timestamp filters use ge/le (not gte/lte)
# ------------------------------------------------------------
query filterShifts(
$status: ShiftStatus
$orderId: UUID
$dateFrom: Timestamp
$dateTo: Timestamp
$offset: Int
$limit: Int
) @auth(level: USER) {
shifts(
where: {
status: { eq: $status }
orderId: { eq: $orderId }
date: { ge: $dateFrom, le: $dateTo }
}
offset: $offset
limit: $limit
) {
id
title
orderId
date
startTime
endTime
hours
cost
location
locationAddress
latitude
longitude
description
status
workersNeeded
filled
filledAt
managers
durationDays
createdAt
updatedAt
createdBy
order {
id
eventName
status
orderType
businessId
vendorId
business { id businessName email contactName }
vendor { id companyName }
}
}
}
# ------------------------------------------------------------
# BUSINESS: GET SHIFTS FOR A BUSINESS (via order.businessId)
# ------------------------------------------------------------
query getShiftsByBusinessId(
$businessId: UUID!
$dateFrom: Timestamp
$dateTo: Timestamp
$offset: Int
$limit: Int
) @auth(level: USER) {
shifts(
where: {
order: { businessId: { eq: $businessId } }
date: { ge: $dateFrom, le: $dateTo }
}
offset: $offset
limit: $limit
) {
id
title
orderId
date
startTime
endTime
hours
cost
location
locationAddress
latitude
longitude
description
status
workersNeeded
filled
filledAt
managers
durationDays
createdAt
updatedAt
createdBy
order {
id
eventName
status
orderType
businessId
vendorId
business { id businessName email contactName }
vendor { id companyName }
}
}
}
# ------------------------------------------------------------
# VENDOR: GET SHIFTS FOR A VENDOR (via order.vendorId)
# ------------------------------------------------------------
query getShiftsByVendorId(
$vendorId: UUID!
$dateFrom: Timestamp
$dateTo: Timestamp
$offset: Int
$limit: Int
) @auth(level: USER) {
shifts(
where: {
order: { vendorId: { eq: $vendorId } }
date: { ge: $dateFrom, le: $dateTo }
}
offset: $offset
limit: $limit
) {
id
title
orderId
date
startTime
endTime
hours
cost
location
locationAddress
latitude
longitude
description
status
workersNeeded
filled
filledAt
managers
durationDays
createdAt
updatedAt
createdBy
order {
id
eventName
status
orderType
businessId
vendorId
business { id businessName email contactName }
vendor { id companyName }
}
}
}

View File

@@ -1,65 +0,0 @@
mutation createShiftRole(
$shiftId: UUID!
$roleId: UUID!
$count: Int!
$assigned: Int
$startTime: Timestamp
$endTime: Timestamp
$hours: Float
$department: String
$uniform: String
$breakType: BreakDuration
$totalValue: Float
) @auth(level: USER) {
shiftRole_insert(
data: {
shiftId: $shiftId
roleId: $roleId
count: $count
assigned: $assigned
startTime: $startTime
endTime: $endTime
hours: $hours
department: $department
uniform: $uniform
breakType: $breakType
totalValue: $totalValue
}
)
}
mutation updateShiftRole(
$shiftId: UUID!
$roleId: UUID!
$count: Int
$assigned: Int
$startTime: Timestamp
$endTime: Timestamp
$hours: Float
$department: String
$uniform: String
$breakType: BreakDuration
$totalValue: Float
) @auth(level: USER) {
shiftRole_update(
key: { shiftId: $shiftId, roleId: $roleId }
data: {
count: $count
assigned: $assigned
startTime: $startTime
endTime: $endTime
hours: $hours
department: $department
uniform: $uniform
breakType: $breakType
totalValue: $totalValue
}
)
}
mutation deleteShiftRole(
$shiftId: UUID!
$roleId: UUID!
) @auth(level: USER) {
shiftRole_delete(key: { shiftId: $shiftId, roleId: $roleId })
}

View File

@@ -1,526 +0,0 @@
query getShiftRoleById(
$shiftId: UUID!
$roleId: UUID!
) @auth(level: USER) {
shiftRole(key: { shiftId: $shiftId, roleId: $roleId }) {
id
shiftId
roleId
count
assigned
startTime
endTime
hours
department
uniform
breakType
totalValue
createdAt
role {
id
name
costPerHour
}
shift{
location
locationAddress
description
orderId
order{
recurringDays
permanentDays
notes
business{
id
businessName
}
vendor{
id
companyName
}
}
}
}
}
query listShiftRolesByShiftId(
$shiftId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
shiftRoles(
where: { shiftId: { eq: $shiftId } }
offset: $offset
limit: $limit
) {
id
shiftId
roleId
count
assigned
startTime
endTime
hours
department
uniform
breakType
totalValue
createdAt
role {
id
name
costPerHour
}
shift{
location
locationAddress
description
orderId
order{
recurringDays
permanentDays
notes
business{
id
businessName
}
vendor{
id
companyName
}
}
}
}
}
query listShiftRolesByRoleId(
$roleId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
shiftRoles(
where: { roleId: { eq: $roleId } }
offset: $offset
limit: $limit
) {
id
shiftId
roleId
count
assigned
startTime
endTime
hours
department
uniform
breakType
totalValue
createdAt
role {
id
name
costPerHour
}
shift{
location
locationAddress
description
orderId
order{
recurringDays
permanentDays
notes
business{
id
businessName
}
vendor{
id
companyName
}
}
}
}
}
query listShiftRolesByShiftIdAndTimeRange(
$shiftId: UUID!
$start: Timestamp!
$end: Timestamp!
$offset: Int
$limit: Int
) @auth(level: USER) {
shiftRoles(
where: {
shiftId: { eq: $shiftId }
startTime: { ge: $start }
endTime: { le: $end }
}
offset: $offset
limit: $limit
) {
id
shiftId
roleId
count
assigned
startTime
endTime
hours
department
uniform
breakType
totalValue
createdAt
role {
id
name
costPerHour
}
shift{
location
locationAddress
description
orderId
order{
recurringDays
permanentDays
notes
business{
id
businessName
}
vendor{
id
companyName
}
}
}
}
}
# ------------------------------------------------------------
# LIST SHIFT ROLES BY VENDOR (via Shift -> Order)
# ------------------------------------------------------------
query listShiftRolesByVendorId(
$vendorId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
shiftRoles(
where: {
shift: {
order: {
vendorId: { eq: $vendorId }
}
}
}
offset: $offset
limit: $limit
orderBy: { createdAt: DESC }
) {
id
shiftId
roleId
count
assigned
startTime
endTime
hours
department
uniform
breakType
totalValue
createdAt
role {
id
name
costPerHour
}
shift {
id
title
date
location
locationAddress
description
orderId
order {
id
eventName
vendorId
businessId
orderType
status
date
recurringDays
permanentDays
notes
business { id businessName }
vendor { id companyName }
}
}
}
}
#orders view client
query listShiftRolesByBusinessAndDateRange(
$businessId: UUID!
$start: Timestamp!
$end: Timestamp!
$offset: Int
$limit: Int
$status: ShiftStatus
) @auth(level: USER) {
shiftRoles(
where: {
shift: {
date: { ge: $start, le: $end }
order: { businessId: { eq: $businessId } }
status: { eq: $status }
}
}
offset: $offset
limit: $limit
orderBy: { createdAt: DESC }
) {
shiftId
roleId
count
assigned
hours
startTime
endTime
totalValue
role { id name }
shift {
id
date
location
locationAddress
title
status
order { id }
}
}
}
#list shiftsroles for update order in client app
query listShiftRolesByBusinessAndOrder(
$businessId: UUID!
$orderId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
shiftRoles(
where: {
shift: {
orderId: { eq: $orderId }
order: { businessId: { eq: $businessId } }
}
}
offset: $offset
limit: $limit
orderBy: { createdAt: DESC }
) {
id
shiftId
roleId
count
assigned
startTime
endTime
hours
breakType
totalValue
createdAt
role { id name costPerHour }
shift {
id
title
date
orderId
location
locationAddress
order{
vendorId
date
location
}
}
}
}
#reorder get list by businessId
query listShiftRolesByBusinessDateRangeCompletedOrders(
$businessId: UUID!
$start: Timestamp!
$end: Timestamp!
$offset: Int
$limit: Int
) @auth(level: USER) {
shiftRoles(
where: {
shift: {
date: { ge: $start, le: $end }
order: {
businessId: { eq: $businessId }
status: { eq: COMPLETED }
}
}
}
offset: $offset
limit: $limit
orderBy: { createdAt: DESC }
) {
shiftId
roleId
count
assigned
hours
startTime
endTime
totalValue
role {
id
name
costPerHour
}
shift {
id
date
location
locationAddress
title
status
order {
id
orderType
}
}
}
}
#view for billing period
query listShiftRolesByBusinessAndDatesSummary(
$businessId: UUID!
$start: Timestamp!
$end: Timestamp!
$offset: Int
$limit: Int
) @auth(level: USER) {
shiftRoles(
where: {
shift: {
date: { ge: $start, le: $end }
status: { eq: COMPLETED }
order: { businessId: { eq: $businessId } }
}
}
offset: $offset
limit: $limit
orderBy: { createdAt: DESC }
) {
roleId
hours
totalValue
role { id name }
}
}
# ------------------------------------------------------------
# BUSINESS: GET COMPLETED SHIFTS FOR A BUSINESS (via order.businessId)
# ------------------------------------------------------------
#for spending insights in home view
query getCompletedShiftsByBusinessId(
$businessId: UUID!
$dateFrom: Timestamp!
$dateTo: Timestamp!
$offset: Int
$limit: Int
) @auth(level: USER) {
shifts(
where: {
order: { businessId: { eq: $businessId } }
status: {in: [IN_PROGRESS, CONFIRMED, COMPLETED, OPEN]}
date: { ge: $dateFrom, le: $dateTo }
}
offset: $offset
limit: $limit
) {
id
#title
#orderId
date
startTime
endTime
hours
cost
#location
#locationAddress
#latitude
#longitude
#description
#status
workersNeeded
filled
#filledAt
#managers
#durationDays
createdAt
order {
#id
#eventName
status
#orderType
#businessId
#vendorId
#business { id businessName email contactName }
#vendor { id companyName }
}
}
}

View File

@@ -1,184 +0,0 @@
mutation CreateStaff(
$userId: String!
$fullName: String!
$level: String
$role: String
$phone: String
$email: String
$photoUrl: String
$totalShifts: Int
$averageRating: Float
$onTimeRate: Int
$noShowCount: Int
$cancellationCount: Int
$reliabilityScore: Int
$bio: String
$skills: [String!]
$industries: [String!]
$preferredLocations: [String!]
$maxDistanceMiles: Int
$languages: Any
$itemsAttire: Any
$xp: Int
$badges: Any
$isRecommended: Boolean
$ownerId: UUID
$department: DepartmentType
$hubId: UUID
$manager: UUID
$english: EnglishProficiency
$backgroundCheckStatus: BackgroundCheckStatus
$employmentType: EmploymentType
$initial: String
$englishRequired: Boolean
$city: String
$addres: String
) @auth(level: USER) {
staff_insert(
data: {
userId: $userId
fullName: $fullName
level: $level
role: $role
phone: $phone
email: $email
photoUrl: $photoUrl
totalShifts: $totalShifts
averageRating: $averageRating
onTimeRate: $onTimeRate
noShowCount: $noShowCount
cancellationCount: $cancellationCount
reliabilityScore: $reliabilityScore
bio: $bio
skills: $skills
industries: $industries
preferredLocations: $preferredLocations
maxDistanceMiles: $maxDistanceMiles
languages: $languages
itemsAttire: $itemsAttire
xp: $xp
badges: $badges
isRecommended: $isRecommended
ownerId: $ownerId
department: $department
hubId: $hubId
manager: $manager
english: $english
backgroundCheckStatus: $backgroundCheckStatus
employmentType: $employmentType
initial: $initial
englishRequired: $englishRequired
city: $city
addres: $addres
}
)
}
mutation UpdateStaff(
$id: UUID!
$userId: String
$fullName: String
$level: String
$role: String
$phone: String
$email: String
$photoUrl: String
$totalShifts: Int
$averageRating: Float
$onTimeRate: Int
$noShowCount: Int
$cancellationCount: Int
$reliabilityScore: Int
$bio: String
$skills: [String!]
$industries: [String!]
$preferredLocations: [String!]
$maxDistanceMiles: Int
$languages: Any
$itemsAttire: Any
$xp: Int
$badges: Any
$isRecommended: Boolean
$ownerId: UUID
$department: DepartmentType
$hubId: UUID
$manager: UUID
$english: EnglishProficiency
$backgroundCheckStatus: BackgroundCheckStatus
$employmentType: EmploymentType
$initial: String
$englishRequired: Boolean
$city: String
$addres: String
) @auth(level: USER) {
staff_update(
id: $id
data: {
userId: $userId
fullName: $fullName
level: $level
role: $role
phone: $phone
email: $email
photoUrl: $photoUrl
totalShifts: $totalShifts
averageRating: $averageRating
onTimeRate: $onTimeRate
noShowCount: $noShowCount
cancellationCount: $cancellationCount
reliabilityScore: $reliabilityScore
bio: $bio
skills: $skills
industries: $industries
preferredLocations: $preferredLocations
maxDistanceMiles: $maxDistanceMiles
languages: $languages
itemsAttire: $itemsAttire
xp: $xp
badges: $badges
isRecommended: $isRecommended
ownerId: $ownerId
department: $department
hubId: $hubId
manager: $manager
english: $english
backgroundCheckStatus: $backgroundCheckStatus
employmentType: $employmentType
initial: $initial
englishRequired: $englishRequired
city: $city
addres: $addres
}
)
}
mutation DeleteStaff($id: UUID!) @auth(level: USER) {
staff_delete(id: $id)
}

View File

@@ -1,175 +0,0 @@
query listStaff @auth(level: USER) {
staffs {
id
userId
fullName
level
role
phone
email
photoUrl
totalShifts
averageRating
onTimeRate
noShowCount
cancellationCount
reliabilityScore
xp
badges
isRecommended
bio
skills
industries
preferredLocations
maxDistanceMiles
languages
itemsAttire
ownerId
createdAt
updatedAt
department
hubId
manager
english
backgroundCheckStatus
employmentType
initial
englishRequired
city
addres
}
}
query getStaffById($id: UUID!) @auth(level: USER) {
staff(id: $id) {
id
userId
fullName
role
level
phone
email
photoUrl
totalShifts
averageRating
onTimeRate
noShowCount
cancellationCount
reliabilityScore
xp
badges
isRecommended
bio
skills
industries
preferredLocations
maxDistanceMiles
languages
itemsAttire
ownerId
createdAt
updatedAt
createdBy
department
hubId
manager
english
backgroundCheckStatus
employmentType
initial
englishRequired
city
addres
}
}
query getStaffByUserId($userId: String!) @auth(level: USER) {
staffs(where: { userId: { eq: $userId } }) {
id
userId
fullName
level
phone
email
photoUrl
totalShifts
averageRating
onTimeRate
noShowCount
cancellationCount
reliabilityScore
xp
badges
isRecommended
bio
skills
industries
preferredLocations
maxDistanceMiles
languages
itemsAttire
ownerId
createdAt
updatedAt
createdBy
department
hubId
manager
english
backgroundCheckStatus
employmentType
initial
englishRequired
city
addres
}
}
query filterStaff(
$ownerId: UUID
$fullName: String
$level: String
$email: String
) @auth(level: USER) {
staffs(
where: {
ownerId: { eq: $ownerId }
fullName: { eq: $fullName }
level: { eq: $level }
email: { eq: $email }
}
) {
id
userId
fullName
level
phone
email
photoUrl
averageRating
reliabilityScore
totalShifts
ownerId
isRecommended
skills
industries
backgroundCheckStatus
employmentType
initial
englishRequired
city
addres
}
}

View File

@@ -1,44 +0,0 @@
mutation createStaffAvailability(
$staffId: UUID!
$day: DayOfWeek!
$slot: AvailabilitySlot!
$status: AvailabilityStatus
$notes: String
) @auth(level: USER) {
staffAvailability_insert(
data: {
staffId: $staffId
day: $day
slot: $slot
status: $status
notes: $notes
}
)
}
mutation updateStaffAvailability(
$staffId: UUID!
$day: DayOfWeek!
$slot: AvailabilitySlot!
$status: AvailabilityStatus
$notes: String
) @auth(level: USER) {
staffAvailability_update(
key: { staffId: $staffId, day: $day, slot: $slot }
data: {
status: $status
notes: $notes
}
)
}
mutation deleteStaffAvailability(
$staffId: UUID!
$day: DayOfWeek!
$slot: AvailabilitySlot!
) @auth(level: USER) {
staffAvailability_delete(
key: { staffId: $staffId, day: $day, slot: $slot }
)
}

View File

@@ -1,87 +0,0 @@
query listStaffAvailabilities(
$offset: Int
$limit: Int
) @auth(level: USER) {
staffAvailabilities(offset: $offset, limit: $limit) {
id
staffId
day
slot
status
notes
createdAt
updatedAt
createdBy
staff { id fullName }
}
}
query listStaffAvailabilitiesByStaffId(
$staffId: UUID!
$offset: Int
$limit: Int
) @auth(level: USER) {
staffAvailabilities(
where: { staffId: { eq: $staffId } }
offset: $offset
limit: $limit
) {
id
staffId
day
slot
status
notes
createdAt
updatedAt
createdBy
staff { id fullName }
}
}
query getStaffAvailabilityByKey(
$staffId: UUID!
$day: DayOfWeek!
$slot: AvailabilitySlot!
) @auth(level: USER) {
staffAvailability(key: { staffId: $staffId, day: $day, slot: $slot }) {
id
staffId
day
slot
status
notes
createdAt
updatedAt
createdBy
staff { id fullName }
}
}
query listStaffAvailabilitiesByDay(
$day: DayOfWeek!
$offset: Int
$limit: Int
) @auth(level: USER) {
staffAvailabilities(
where: { day: { eq: $day } }
offset: $offset
limit: $limit
) {
id
staffId
day
slot
status
notes
createdAt
updatedAt
createdBy
staff { id fullName }
}
}

Some files were not shown because too many files have changed in this diff Show More