From 02b0790ec36ae7d8e8f1230b0534f33582641c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Salazar?= <73718835+joshrs23@users.noreply.github.com> Date: Thu, 29 Jan 2026 17:10:26 -0500 Subject: [PATCH] saving name of the orders --- .../dataconnect_generated/.guides/usage.md | 24 +- .../lib/src/dataconnect_generated/README.md | 32174 ++++++++-------- .../src/dataconnect_generated/generated.dart | 3956 +- ...ist_shift_roles_by_business_and_order.dart | 9 +- .../src/entities/orders/one_time_order.dart | 5 + .../client_create_order_repository_impl.dart | 1 + .../blocs/one_time_order_bloc.dart | 9 + .../blocs/one_time_order_event.dart | 8 + .../blocs/one_time_order_state.dart | 6 + .../one_time_order_event_name_input.dart | 56 + .../one_time_order/one_time_order_view.dart | 10 + .../widgets/shift_order_form_sheet.dart | 30 + .../presentation/widgets/view_order_card.dart | 13 + .../connector/shiftRole/queries.gql | 1 + 14 files changed, 18224 insertions(+), 18078 deletions(-) create mode 100644 apps/mobile/packages/features/client/create_order/lib/src/presentation/widgets/one_time_order/one_time_order_event_name_input.dart diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/.guides/usage.md b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/.guides/usage.md index 1f443c1f..e15d67ef 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/.guides/usage.md +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/.guides/usage.md @@ -1,16 +1,16 @@ # Basic Usage ```dart -ExampleConnector.instance.CreateCertificate(createCertificateVariables).execute(); -ExampleConnector.instance.UpdateCertificate(updateCertificateVariables).execute(); -ExampleConnector.instance.DeleteCertificate(deleteCertificateVariables).execute(); -ExampleConnector.instance.listOrders(listOrdersVariables).execute(); -ExampleConnector.instance.getOrderById(getOrderByIdVariables).execute(); -ExampleConnector.instance.getOrdersByBusinessId(getOrdersByBusinessIdVariables).execute(); -ExampleConnector.instance.getOrdersByVendorId(getOrdersByVendorIdVariables).execute(); -ExampleConnector.instance.getOrdersByStatus(getOrdersByStatusVariables).execute(); -ExampleConnector.instance.getOrdersByDateRange(getOrdersByDateRangeVariables).execute(); -ExampleConnector.instance.getRapidOrders(getRapidOrdersVariables).execute(); +ExampleConnector.instance.listAccounts().execute(); +ExampleConnector.instance.getAccountById(getAccountByIdVariables).execute(); +ExampleConnector.instance.getAccountsByOwnerId(getAccountsByOwnerIdVariables).execute(); +ExampleConnector.instance.filterAccounts(filterAccountsVariables).execute(); +ExampleConnector.instance.createApplication(createApplicationVariables).execute(); +ExampleConnector.instance.updateApplicationStatus(updateApplicationStatusVariables).execute(); +ExampleConnector.instance.deleteApplication(deleteApplicationVariables).execute(); +ExampleConnector.instance.CreateAssignment(createAssignmentVariables).execute(); +ExampleConnector.instance.UpdateAssignment(updateAssignmentVariables).execute(); +ExampleConnector.instance.DeleteAssignment(deleteAssignmentVariables).execute(); ``` @@ -23,8 +23,8 @@ Optional fields can be discovered based on classes that have `Optional` object t This is an example of a mutation with an optional field: ```dart -await ExampleConnector.instance.listTeamHubsByOwnerId({ ... }) -.offset(...) +await ExampleConnector.instance.filterStaffAvailabilityStats({ ... }) +.needWorkIndexMin(...) .execute(); ``` diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/README.md b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/README.md index 1c4ea9b6..469b086c 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/README.md +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/README.md @@ -21,6154 +21,6 @@ ExampleConnector.instance.dataConnect.useDataConnectEmulator(host, port); You can also call queries and mutations by using the connector class. ## Queries -### listOrders -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listOrders().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listOrders, we created `listOrdersBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListOrdersVariablesBuilder { - ... - - ListOrdersVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListOrdersVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listOrders() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listOrders(); -listOrdersData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listOrders().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getOrderById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getOrderById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getOrderById( - id: id, -); -getOrderByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getOrderById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getOrdersByBusinessId -#### Required Arguments -```dart -String businessId = ...; -ExampleConnector.instance.getOrdersByBusinessId( - businessId: businessId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getOrdersByBusinessId, we created `getOrdersByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetOrdersByBusinessIdVariablesBuilder { - ... - GetOrdersByBusinessIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetOrdersByBusinessIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getOrdersByBusinessId( - businessId: businessId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getOrdersByBusinessId( - businessId: businessId, -); -getOrdersByBusinessIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String businessId = ...; - -final ref = ExampleConnector.instance.getOrdersByBusinessId( - businessId: businessId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getOrdersByVendorId -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.getOrdersByVendorId( - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getOrdersByVendorId, we created `getOrdersByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetOrdersByVendorIdVariablesBuilder { - ... - GetOrdersByVendorIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetOrdersByVendorIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getOrdersByVendorId( - vendorId: vendorId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getOrdersByVendorId( - vendorId: vendorId, -); -getOrdersByVendorIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; - -final ref = ExampleConnector.instance.getOrdersByVendorId( - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getOrdersByStatus -#### Required Arguments -```dart -OrderStatus status = ...; -ExampleConnector.instance.getOrdersByStatus( - status: status, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getOrdersByStatus, we created `getOrdersByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetOrdersByStatusVariablesBuilder { - ... - GetOrdersByStatusVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetOrdersByStatusVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getOrdersByStatus( - status: status, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getOrdersByStatus( - status: status, -); -getOrdersByStatusData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -OrderStatus status = ...; - -final ref = ExampleConnector.instance.getOrdersByStatus( - status: status, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getOrdersByDateRange -#### Required Arguments -```dart -Timestamp start = ...; -Timestamp end = ...; -ExampleConnector.instance.getOrdersByDateRange( - start: start, - end: end, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getOrdersByDateRange, we created `getOrdersByDateRangeBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetOrdersByDateRangeVariablesBuilder { - ... - GetOrdersByDateRangeVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetOrdersByDateRangeVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getOrdersByDateRange( - start: start, - end: end, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getOrdersByDateRange( - start: start, - end: end, -); -getOrdersByDateRangeData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -Timestamp start = ...; -Timestamp end = ...; - -final ref = ExampleConnector.instance.getOrdersByDateRange( - start: start, - end: end, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getRapidOrders -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.getRapidOrders().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getRapidOrders, we created `getRapidOrdersBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetRapidOrdersVariablesBuilder { - ... - - GetRapidOrdersVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetRapidOrdersVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getRapidOrders() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getRapidOrders(); -getRapidOrdersData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.getRapidOrders().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffAvailabilities -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listStaffAvailabilities().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffAvailabilities, we created `listStaffAvailabilitiesBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffAvailabilitiesVariablesBuilder { - ... - - ListStaffAvailabilitiesVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffAvailabilitiesVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffAvailabilities() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffAvailabilities(); -listStaffAvailabilitiesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listStaffAvailabilities().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffAvailabilitiesByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.listStaffAvailabilitiesByStaffId( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffAvailabilitiesByStaffId, we created `listStaffAvailabilitiesByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffAvailabilitiesByStaffIdVariablesBuilder { - ... - ListStaffAvailabilitiesByStaffIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffAvailabilitiesByStaffIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffAvailabilitiesByStaffId( - staffId: staffId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffAvailabilitiesByStaffId( - staffId: staffId, -); -listStaffAvailabilitiesByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.listStaffAvailabilitiesByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getStaffAvailabilityByKey -#### Required Arguments -```dart -String staffId = ...; -DayOfWeek day = ...; -AvailabilitySlot slot = ...; -ExampleConnector.instance.getStaffAvailabilityByKey( - staffId: staffId, - day: day, - slot: slot, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getStaffAvailabilityByKey( - staffId: staffId, - day: day, - slot: slot, -); -getStaffAvailabilityByKeyData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -DayOfWeek day = ...; -AvailabilitySlot slot = ...; - -final ref = ExampleConnector.instance.getStaffAvailabilityByKey( - staffId: staffId, - day: day, - slot: slot, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffAvailabilitiesByDay -#### Required Arguments -```dart -DayOfWeek day = ...; -ExampleConnector.instance.listStaffAvailabilitiesByDay( - day: day, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffAvailabilitiesByDay, we created `listStaffAvailabilitiesByDayBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffAvailabilitiesByDayVariablesBuilder { - ... - ListStaffAvailabilitiesByDayVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffAvailabilitiesByDayVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffAvailabilitiesByDay( - day: day, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffAvailabilitiesByDay( - day: day, -); -listStaffAvailabilitiesByDayData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -DayOfWeek day = ...; - -final ref = ExampleConnector.instance.listStaffAvailabilitiesByDay( - day: day, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffAvailabilityStats -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listStaffAvailabilityStats().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffAvailabilityStats, we created `listStaffAvailabilityStatsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffAvailabilityStatsVariablesBuilder { - ... - - ListStaffAvailabilityStatsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffAvailabilityStatsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffAvailabilityStats() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffAvailabilityStats(); -listStaffAvailabilityStatsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listStaffAvailabilityStats().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getStaffAvailabilityStatsByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( - staffId: staffId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( - staffId: staffId, -); -getStaffAvailabilityStatsByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterStaffAvailabilityStats -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterStaffAvailabilityStats().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterStaffAvailabilityStats, we created `filterStaffAvailabilityStatsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterStaffAvailabilityStatsVariablesBuilder { - ... - - FilterStaffAvailabilityStatsVariablesBuilder needWorkIndexMin(int? t) { - _needWorkIndexMin.value = t; - return this; - } - FilterStaffAvailabilityStatsVariablesBuilder needWorkIndexMax(int? t) { - _needWorkIndexMax.value = t; - return this; - } - FilterStaffAvailabilityStatsVariablesBuilder utilizationMin(int? t) { - _utilizationMin.value = t; - return this; - } - FilterStaffAvailabilityStatsVariablesBuilder utilizationMax(int? t) { - _utilizationMax.value = t; - return this; - } - FilterStaffAvailabilityStatsVariablesBuilder acceptanceRateMin(int? t) { - _acceptanceRateMin.value = t; - return this; - } - FilterStaffAvailabilityStatsVariablesBuilder acceptanceRateMax(int? t) { - _acceptanceRateMax.value = t; - return this; - } - FilterStaffAvailabilityStatsVariablesBuilder lastShiftAfter(Timestamp? t) { - _lastShiftAfter.value = t; - return this; - } - FilterStaffAvailabilityStatsVariablesBuilder lastShiftBefore(Timestamp? t) { - _lastShiftBefore.value = t; - return this; - } - FilterStaffAvailabilityStatsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - FilterStaffAvailabilityStatsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterStaffAvailabilityStats() -.needWorkIndexMin(needWorkIndexMin) -.needWorkIndexMax(needWorkIndexMax) -.utilizationMin(utilizationMin) -.utilizationMax(utilizationMax) -.acceptanceRateMin(acceptanceRateMin) -.acceptanceRateMax(acceptanceRateMax) -.lastShiftAfter(lastShiftAfter) -.lastShiftBefore(lastShiftBefore) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterStaffAvailabilityStats(); -filterStaffAvailabilityStatsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterStaffAvailabilityStats().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listTaxForms -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listTaxForms().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listTaxForms, we created `listTaxFormsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListTaxFormsVariablesBuilder { - ... - - ListTaxFormsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListTaxFormsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listTaxForms() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listTaxForms(); -listTaxFormsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listTaxForms().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTaxFormById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getTaxFormById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getTaxFormById( - id: id, -); -getTaxFormByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getTaxFormById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTaxFormsByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.getTaxFormsByStaffId( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getTaxFormsByStaffId, we created `getTaxFormsByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetTaxFormsByStaffIdVariablesBuilder { - ... - GetTaxFormsByStaffIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetTaxFormsByStaffIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getTaxFormsByStaffId( - staffId: staffId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getTaxFormsByStaffId( - staffId: staffId, -); -getTaxFormsByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.getTaxFormsByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listTaxFormsWhere -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listTaxFormsWhere().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listTaxFormsWhere, we created `listTaxFormsWhereBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListTaxFormsWhereVariablesBuilder { - ... - - ListTaxFormsWhereVariablesBuilder formType(TaxFormType? t) { - _formType.value = t; - return this; - } - ListTaxFormsWhereVariablesBuilder status(TaxFormStatus? t) { - _status.value = t; - return this; - } - ListTaxFormsWhereVariablesBuilder staffId(String? t) { - _staffId.value = t; - return this; - } - ListTaxFormsWhereVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListTaxFormsWhereVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listTaxFormsWhere() -.formType(formType) -.status(status) -.staffId(staffId) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listTaxFormsWhere(); -listTaxFormsWhereData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listTaxFormsWhere().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getWorkforceById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getWorkforceById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getWorkforceById( - id: id, -); -getWorkforceByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getWorkforceById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getWorkforceByVendorAndStaff -#### Required Arguments -```dart -String vendorId = ...; -String staffId = ...; -ExampleConnector.instance.getWorkforceByVendorAndStaff( - vendorId: vendorId, - staffId: staffId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getWorkforceByVendorAndStaff( - vendorId: vendorId, - staffId: staffId, -); -getWorkforceByVendorAndStaffData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; -String staffId = ...; - -final ref = ExampleConnector.instance.getWorkforceByVendorAndStaff( - vendorId: vendorId, - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listWorkforceByVendorId -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.listWorkforceByVendorId( - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listWorkforceByVendorId, we created `listWorkforceByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListWorkforceByVendorIdVariablesBuilder { - ... - ListWorkforceByVendorIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListWorkforceByVendorIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listWorkforceByVendorId( - vendorId: vendorId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listWorkforceByVendorId( - vendorId: vendorId, -); -listWorkforceByVendorIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; - -final ref = ExampleConnector.instance.listWorkforceByVendorId( - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listWorkforceByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.listWorkforceByStaffId( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listWorkforceByStaffId, we created `listWorkforceByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListWorkforceByStaffIdVariablesBuilder { - ... - ListWorkforceByStaffIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListWorkforceByStaffIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listWorkforceByStaffId( - staffId: staffId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listWorkforceByStaffId( - staffId: staffId, -); -listWorkforceByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.listWorkforceByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getWorkforceByVendorAndNumber -#### Required Arguments -```dart -String vendorId = ...; -String workforceNumber = ...; -ExampleConnector.instance.getWorkforceByVendorAndNumber( - vendorId: vendorId, - workforceNumber: workforceNumber, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getWorkforceByVendorAndNumber( - vendorId: vendorId, - workforceNumber: workforceNumber, -); -getWorkforceByVendorAndNumberData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; -String workforceNumber = ...; - -final ref = ExampleConnector.instance.getWorkforceByVendorAndNumber( - vendorId: vendorId, - workforceNumber: workforceNumber, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaff -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listStaff().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaff(); -listStaffData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listStaff().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getStaffById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getStaffById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getStaffById( - id: id, -); -getStaffByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getStaffById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getStaffByUserId -#### Required Arguments -```dart -String userId = ...; -ExampleConnector.instance.getStaffByUserId( - userId: userId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getStaffByUserId( - userId: userId, -); -getStaffByUserIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String userId = ...; - -final ref = ExampleConnector.instance.getStaffByUserId( - userId: userId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterStaff -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterStaff().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterStaff, we created `filterStaffBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterStaffVariablesBuilder { - ... - - FilterStaffVariablesBuilder ownerId(String? t) { - _ownerId.value = t; - return this; - } - FilterStaffVariablesBuilder fullName(String? t) { - _fullName.value = t; - return this; - } - FilterStaffVariablesBuilder level(String? t) { - _level.value = t; - return this; - } - FilterStaffVariablesBuilder email(String? t) { - _email.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterStaff() -.ownerId(ownerId) -.fullName(fullName) -.level(level) -.email(email) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterStaff(); -filterStaffData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterStaff().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listTaskComments -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listTaskComments().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listTaskComments(); -listTaskCommentsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listTaskComments().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTaskCommentById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getTaskCommentById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getTaskCommentById( - id: id, -); -getTaskCommentByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getTaskCommentById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTaskCommentsByTaskId -#### Required Arguments -```dart -String taskId = ...; -ExampleConnector.instance.getTaskCommentsByTaskId( - taskId: taskId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getTaskCommentsByTaskId( - taskId: taskId, -); -getTaskCommentsByTaskIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String taskId = ...; - -final ref = ExampleConnector.instance.getTaskCommentsByTaskId( - taskId: taskId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getVendorById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getVendorById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getVendorById( - id: id, -); -getVendorByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getVendorById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getVendorByUserId -#### Required Arguments -```dart -String userId = ...; -ExampleConnector.instance.getVendorByUserId( - userId: userId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getVendorByUserId( - userId: userId, -); -getVendorByUserIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String userId = ...; - -final ref = ExampleConnector.instance.getVendorByUserId( - userId: userId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listVendors -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listVendors().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listVendors(); -listVendorsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listVendors().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listAssignments -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listAssignments().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listAssignments, we created `listAssignmentsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListAssignmentsVariablesBuilder { - ... - - ListAssignmentsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListAssignmentsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listAssignments() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listAssignments(); -listAssignmentsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listAssignments().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getAssignmentById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getAssignmentById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getAssignmentById( - id: id, -); -getAssignmentByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getAssignmentById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listAssignmentsByWorkforceId -#### Required Arguments -```dart -String workforceId = ...; -ExampleConnector.instance.listAssignmentsByWorkforceId( - workforceId: workforceId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listAssignmentsByWorkforceId, we created `listAssignmentsByWorkforceIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListAssignmentsByWorkforceIdVariablesBuilder { - ... - ListAssignmentsByWorkforceIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListAssignmentsByWorkforceIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listAssignmentsByWorkforceId( - workforceId: workforceId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listAssignmentsByWorkforceId( - workforceId: workforceId, -); -listAssignmentsByWorkforceIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String workforceId = ...; - -final ref = ExampleConnector.instance.listAssignmentsByWorkforceId( - workforceId: workforceId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listAssignmentsByWorkforceIds -#### Required Arguments -```dart -String workforceIds = ...; -ExampleConnector.instance.listAssignmentsByWorkforceIds( - workforceIds: workforceIds, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listAssignmentsByWorkforceIds, we created `listAssignmentsByWorkforceIdsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListAssignmentsByWorkforceIdsVariablesBuilder { - ... - ListAssignmentsByWorkforceIdsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListAssignmentsByWorkforceIdsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listAssignmentsByWorkforceIds( - workforceIds: workforceIds, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listAssignmentsByWorkforceIds( - workforceIds: workforceIds, -); -listAssignmentsByWorkforceIdsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String workforceIds = ...; - -final ref = ExampleConnector.instance.listAssignmentsByWorkforceIds( - workforceIds: workforceIds, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listAssignmentsByShiftRole -#### Required Arguments -```dart -String shiftId = ...; -String roleId = ...; -ExampleConnector.instance.listAssignmentsByShiftRole( - shiftId: shiftId, - roleId: roleId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listAssignmentsByShiftRole, we created `listAssignmentsByShiftRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListAssignmentsByShiftRoleVariablesBuilder { - ... - ListAssignmentsByShiftRoleVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListAssignmentsByShiftRoleVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listAssignmentsByShiftRole( - shiftId: shiftId, - roleId: roleId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listAssignmentsByShiftRole( - shiftId: shiftId, - roleId: roleId, -); -listAssignmentsByShiftRoleData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String shiftId = ...; -String roleId = ...; - -final ref = ExampleConnector.instance.listAssignmentsByShiftRole( - shiftId: shiftId, - roleId: roleId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterAssignments -#### Required Arguments -```dart -String shiftIds = ...; -String roleIds = ...; -ExampleConnector.instance.filterAssignments( - shiftIds: shiftIds, - roleIds: roleIds, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterAssignments, we created `filterAssignmentsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterAssignmentsVariablesBuilder { - ... - FilterAssignmentsVariablesBuilder status(AssignmentStatus? t) { - _status.value = t; - return this; - } - FilterAssignmentsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - FilterAssignmentsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterAssignments( - shiftIds: shiftIds, - roleIds: roleIds, -) -.status(status) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterAssignments( - shiftIds: shiftIds, - roleIds: roleIds, -); -filterAssignmentsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String shiftIds = ...; -String roleIds = ...; - -final ref = ExampleConnector.instance.filterAssignments( - shiftIds: shiftIds, - roleIds: roleIds, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listClientFeedbacks -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listClientFeedbacks().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listClientFeedbacks, we created `listClientFeedbacksBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListClientFeedbacksVariablesBuilder { - ... - - ListClientFeedbacksVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListClientFeedbacksVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listClientFeedbacks() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listClientFeedbacks(); -listClientFeedbacksData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listClientFeedbacks().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getClientFeedbackById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getClientFeedbackById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getClientFeedbackById( - id: id, -); -getClientFeedbackByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getClientFeedbackById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listClientFeedbacksByBusinessId -#### Required Arguments -```dart -String businessId = ...; -ExampleConnector.instance.listClientFeedbacksByBusinessId( - businessId: businessId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listClientFeedbacksByBusinessId, we created `listClientFeedbacksByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListClientFeedbacksByBusinessIdVariablesBuilder { - ... - ListClientFeedbacksByBusinessIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListClientFeedbacksByBusinessIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listClientFeedbacksByBusinessId( - businessId: businessId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listClientFeedbacksByBusinessId( - businessId: businessId, -); -listClientFeedbacksByBusinessIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String businessId = ...; - -final ref = ExampleConnector.instance.listClientFeedbacksByBusinessId( - businessId: businessId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listClientFeedbacksByVendorId -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.listClientFeedbacksByVendorId( - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listClientFeedbacksByVendorId, we created `listClientFeedbacksByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListClientFeedbacksByVendorIdVariablesBuilder { - ... - ListClientFeedbacksByVendorIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListClientFeedbacksByVendorIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listClientFeedbacksByVendorId( - vendorId: vendorId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listClientFeedbacksByVendorId( - vendorId: vendorId, -); -listClientFeedbacksByVendorIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; - -final ref = ExampleConnector.instance.listClientFeedbacksByVendorId( - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listClientFeedbacksByBusinessAndVendor -#### Required Arguments -```dart -String businessId = ...; -String vendorId = ...; -ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor( - businessId: businessId, - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listClientFeedbacksByBusinessAndVendor, we created `listClientFeedbacksByBusinessAndVendorBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListClientFeedbacksByBusinessAndVendorVariablesBuilder { - ... - ListClientFeedbacksByBusinessAndVendorVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListClientFeedbacksByBusinessAndVendorVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor( - businessId: businessId, - vendorId: vendorId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor( - businessId: businessId, - vendorId: vendorId, -); -listClientFeedbacksByBusinessAndVendorData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String businessId = ...; -String vendorId = ...; - -final ref = ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor( - businessId: businessId, - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterClientFeedbacks -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterClientFeedbacks().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterClientFeedbacks, we created `filterClientFeedbacksBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterClientFeedbacksVariablesBuilder { - ... - - FilterClientFeedbacksVariablesBuilder businessId(String? t) { - _businessId.value = t; - return this; - } - FilterClientFeedbacksVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } - FilterClientFeedbacksVariablesBuilder ratingMin(int? t) { - _ratingMin.value = t; - return this; - } - FilterClientFeedbacksVariablesBuilder ratingMax(int? t) { - _ratingMax.value = t; - return this; - } - FilterClientFeedbacksVariablesBuilder dateFrom(Timestamp? t) { - _dateFrom.value = t; - return this; - } - FilterClientFeedbacksVariablesBuilder dateTo(Timestamp? t) { - _dateTo.value = t; - return this; - } - FilterClientFeedbacksVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - FilterClientFeedbacksVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterClientFeedbacks() -.businessId(businessId) -.vendorId(vendorId) -.ratingMin(ratingMin) -.ratingMax(ratingMax) -.dateFrom(dateFrom) -.dateTo(dateTo) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterClientFeedbacks(); -filterClientFeedbacksData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterClientFeedbacks().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listClientFeedbackRatingsByVendorId -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.listClientFeedbackRatingsByVendorId( - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listClientFeedbackRatingsByVendorId, we created `listClientFeedbackRatingsByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListClientFeedbackRatingsByVendorIdVariablesBuilder { - ... - ListClientFeedbackRatingsByVendorIdVariablesBuilder dateFrom(Timestamp? t) { - _dateFrom.value = t; - return this; - } - ListClientFeedbackRatingsByVendorIdVariablesBuilder dateTo(Timestamp? t) { - _dateTo.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listClientFeedbackRatingsByVendorId( - vendorId: vendorId, -) -.dateFrom(dateFrom) -.dateTo(dateTo) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listClientFeedbackRatingsByVendorId( - vendorId: vendorId, -); -listClientFeedbackRatingsByVendorIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; - -final ref = ExampleConnector.instance.listClientFeedbackRatingsByVendorId( - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listInvoices -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listInvoices().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listInvoices, we created `listInvoicesBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListInvoicesVariablesBuilder { - ... - - ListInvoicesVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListInvoicesVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listInvoices() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listInvoices(); -listInvoicesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listInvoices().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getInvoiceById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getInvoiceById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getInvoiceById( - id: id, -); -getInvoiceByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getInvoiceById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listInvoicesByVendorId -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.listInvoicesByVendorId( - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listInvoicesByVendorId, we created `listInvoicesByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListInvoicesByVendorIdVariablesBuilder { - ... - ListInvoicesByVendorIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListInvoicesByVendorIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listInvoicesByVendorId( - vendorId: vendorId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listInvoicesByVendorId( - vendorId: vendorId, -); -listInvoicesByVendorIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; - -final ref = ExampleConnector.instance.listInvoicesByVendorId( - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listInvoicesByBusinessId -#### Required Arguments -```dart -String businessId = ...; -ExampleConnector.instance.listInvoicesByBusinessId( - businessId: businessId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listInvoicesByBusinessId, we created `listInvoicesByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListInvoicesByBusinessIdVariablesBuilder { - ... - ListInvoicesByBusinessIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListInvoicesByBusinessIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listInvoicesByBusinessId( - businessId: businessId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listInvoicesByBusinessId( - businessId: businessId, -); -listInvoicesByBusinessIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String businessId = ...; - -final ref = ExampleConnector.instance.listInvoicesByBusinessId( - businessId: businessId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listInvoicesByOrderId -#### Required Arguments -```dart -String orderId = ...; -ExampleConnector.instance.listInvoicesByOrderId( - orderId: orderId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listInvoicesByOrderId, we created `listInvoicesByOrderIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListInvoicesByOrderIdVariablesBuilder { - ... - ListInvoicesByOrderIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListInvoicesByOrderIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listInvoicesByOrderId( - orderId: orderId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listInvoicesByOrderId( - orderId: orderId, -); -listInvoicesByOrderIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String orderId = ...; - -final ref = ExampleConnector.instance.listInvoicesByOrderId( - orderId: orderId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listInvoicesByStatus -#### Required Arguments -```dart -InvoiceStatus status = ...; -ExampleConnector.instance.listInvoicesByStatus( - status: status, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listInvoicesByStatus, we created `listInvoicesByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListInvoicesByStatusVariablesBuilder { - ... - ListInvoicesByStatusVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListInvoicesByStatusVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listInvoicesByStatus( - status: status, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listInvoicesByStatus( - status: status, -); -listInvoicesByStatusData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -InvoiceStatus status = ...; - -final ref = ExampleConnector.instance.listInvoicesByStatus( - status: status, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterInvoices -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterInvoices().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterInvoices, we created `filterInvoicesBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterInvoicesVariablesBuilder { - ... - - FilterInvoicesVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } - FilterInvoicesVariablesBuilder businessId(String? t) { - _businessId.value = t; - return this; - } - FilterInvoicesVariablesBuilder orderId(String? t) { - _orderId.value = t; - return this; - } - FilterInvoicesVariablesBuilder status(InvoiceStatus? t) { - _status.value = t; - return this; - } - FilterInvoicesVariablesBuilder issueDateFrom(Timestamp? t) { - _issueDateFrom.value = t; - return this; - } - FilterInvoicesVariablesBuilder issueDateTo(Timestamp? t) { - _issueDateTo.value = t; - return this; - } - FilterInvoicesVariablesBuilder dueDateFrom(Timestamp? t) { - _dueDateFrom.value = t; - return this; - } - FilterInvoicesVariablesBuilder dueDateTo(Timestamp? t) { - _dueDateTo.value = t; - return this; - } - FilterInvoicesVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - FilterInvoicesVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterInvoices() -.vendorId(vendorId) -.businessId(businessId) -.orderId(orderId) -.status(status) -.issueDateFrom(issueDateFrom) -.issueDateTo(issueDateTo) -.dueDateFrom(dueDateFrom) -.dueDateTo(dueDateTo) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterInvoices(); -filterInvoicesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterInvoices().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listOverdueInvoices -#### Required Arguments -```dart -Timestamp now = ...; -ExampleConnector.instance.listOverdueInvoices( - now: now, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listOverdueInvoices, we created `listOverdueInvoicesBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListOverdueInvoicesVariablesBuilder { - ... - ListOverdueInvoicesVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListOverdueInvoicesVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listOverdueInvoices( - now: now, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listOverdueInvoices( - now: now, -); -listOverdueInvoicesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -Timestamp now = ...; - -final ref = ExampleConnector.instance.listOverdueInvoices( - now: now, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRecentPayments -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listRecentPayments().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listRecentPayments, we created `listRecentPaymentsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListRecentPaymentsVariablesBuilder { - ... - - ListRecentPaymentsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListRecentPaymentsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listRecentPayments() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listRecentPayments(); -listRecentPaymentsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listRecentPayments().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getRecentPaymentById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getRecentPaymentById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getRecentPaymentById( - id: id, -); -getRecentPaymentByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getRecentPaymentById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRecentPaymentsByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.listRecentPaymentsByStaffId( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listRecentPaymentsByStaffId, we created `listRecentPaymentsByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListRecentPaymentsByStaffIdVariablesBuilder { - ... - ListRecentPaymentsByStaffIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListRecentPaymentsByStaffIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listRecentPaymentsByStaffId( - staffId: staffId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listRecentPaymentsByStaffId( - staffId: staffId, -); -listRecentPaymentsByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.listRecentPaymentsByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRecentPaymentsByApplicationId -#### Required Arguments -```dart -String applicationId = ...; -ExampleConnector.instance.listRecentPaymentsByApplicationId( - applicationId: applicationId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listRecentPaymentsByApplicationId, we created `listRecentPaymentsByApplicationIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListRecentPaymentsByApplicationIdVariablesBuilder { - ... - ListRecentPaymentsByApplicationIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListRecentPaymentsByApplicationIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listRecentPaymentsByApplicationId( - applicationId: applicationId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listRecentPaymentsByApplicationId( - applicationId: applicationId, -); -listRecentPaymentsByApplicationIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String applicationId = ...; - -final ref = ExampleConnector.instance.listRecentPaymentsByApplicationId( - applicationId: applicationId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRecentPaymentsByInvoiceId -#### Required Arguments -```dart -String invoiceId = ...; -ExampleConnector.instance.listRecentPaymentsByInvoiceId( - invoiceId: invoiceId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listRecentPaymentsByInvoiceId, we created `listRecentPaymentsByInvoiceIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListRecentPaymentsByInvoiceIdVariablesBuilder { - ... - ListRecentPaymentsByInvoiceIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListRecentPaymentsByInvoiceIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listRecentPaymentsByInvoiceId( - invoiceId: invoiceId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listRecentPaymentsByInvoiceId( - invoiceId: invoiceId, -); -listRecentPaymentsByInvoiceIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String invoiceId = ...; - -final ref = ExampleConnector.instance.listRecentPaymentsByInvoiceId( - invoiceId: invoiceId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRecentPaymentsByStatus -#### Required Arguments -```dart -RecentPaymentStatus status = ...; -ExampleConnector.instance.listRecentPaymentsByStatus( - status: status, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listRecentPaymentsByStatus, we created `listRecentPaymentsByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListRecentPaymentsByStatusVariablesBuilder { - ... - ListRecentPaymentsByStatusVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListRecentPaymentsByStatusVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listRecentPaymentsByStatus( - status: status, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listRecentPaymentsByStatus( - status: status, -); -listRecentPaymentsByStatusData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -RecentPaymentStatus status = ...; - -final ref = ExampleConnector.instance.listRecentPaymentsByStatus( - status: status, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRecentPaymentsByInvoiceIds -#### Required Arguments -```dart -String invoiceIds = ...; -ExampleConnector.instance.listRecentPaymentsByInvoiceIds( - invoiceIds: invoiceIds, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listRecentPaymentsByInvoiceIds, we created `listRecentPaymentsByInvoiceIdsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListRecentPaymentsByInvoiceIdsVariablesBuilder { - ... - ListRecentPaymentsByInvoiceIdsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListRecentPaymentsByInvoiceIdsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listRecentPaymentsByInvoiceIds( - invoiceIds: invoiceIds, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listRecentPaymentsByInvoiceIds( - invoiceIds: invoiceIds, -); -listRecentPaymentsByInvoiceIdsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String invoiceIds = ...; - -final ref = ExampleConnector.instance.listRecentPaymentsByInvoiceIds( - invoiceIds: invoiceIds, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRecentPaymentsByBusinessId -#### Required Arguments -```dart -String businessId = ...; -ExampleConnector.instance.listRecentPaymentsByBusinessId( - businessId: businessId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listRecentPaymentsByBusinessId, we created `listRecentPaymentsByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListRecentPaymentsByBusinessIdVariablesBuilder { - ... - ListRecentPaymentsByBusinessIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListRecentPaymentsByBusinessIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listRecentPaymentsByBusinessId( - businessId: businessId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listRecentPaymentsByBusinessId( - businessId: businessId, -); -listRecentPaymentsByBusinessIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String businessId = ...; - -final ref = ExampleConnector.instance.listRecentPaymentsByBusinessId( - businessId: businessId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRoleCategories -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listRoleCategories().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listRoleCategories(); -listRoleCategoriesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listRoleCategories().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getRoleCategoryById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getRoleCategoryById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getRoleCategoryById( - id: id, -); -getRoleCategoryByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getRoleCategoryById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getRoleCategoriesByCategory -#### Required Arguments -```dart -RoleCategoryType category = ...; -ExampleConnector.instance.getRoleCategoriesByCategory( - category: category, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getRoleCategoriesByCategory( - category: category, -); -getRoleCategoriesByCategoryData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -RoleCategoryType category = ...; - -final ref = ExampleConnector.instance.getRoleCategoriesByCategory( - category: category, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listShifts -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listShifts().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listShifts, we created `listShiftsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListShiftsVariablesBuilder { - ... - - ListShiftsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListShiftsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listShifts() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listShifts(); -listShiftsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listShifts().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getShiftById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getShiftById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getShiftById( - id: id, -); -getShiftByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getShiftById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterShifts -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterShifts().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterShifts, we created `filterShiftsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterShiftsVariablesBuilder { - ... - - FilterShiftsVariablesBuilder status(ShiftStatus? t) { - _status.value = t; - return this; - } - FilterShiftsVariablesBuilder orderId(String? t) { - _orderId.value = t; - return this; - } - FilterShiftsVariablesBuilder dateFrom(Timestamp? t) { - _dateFrom.value = t; - return this; - } - FilterShiftsVariablesBuilder dateTo(Timestamp? t) { - _dateTo.value = t; - return this; - } - FilterShiftsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - FilterShiftsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterShifts() -.status(status) -.orderId(orderId) -.dateFrom(dateFrom) -.dateTo(dateTo) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterShifts(); -filterShiftsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterShifts().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getShiftsByBusinessId -#### Required Arguments -```dart -String businessId = ...; -ExampleConnector.instance.getShiftsByBusinessId( - businessId: businessId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getShiftsByBusinessId, we created `getShiftsByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetShiftsByBusinessIdVariablesBuilder { - ... - GetShiftsByBusinessIdVariablesBuilder dateFrom(Timestamp? t) { - _dateFrom.value = t; - return this; - } - GetShiftsByBusinessIdVariablesBuilder dateTo(Timestamp? t) { - _dateTo.value = t; - return this; - } - GetShiftsByBusinessIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetShiftsByBusinessIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getShiftsByBusinessId( - businessId: businessId, -) -.dateFrom(dateFrom) -.dateTo(dateTo) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getShiftsByBusinessId( - businessId: businessId, -); -getShiftsByBusinessIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String businessId = ...; - -final ref = ExampleConnector.instance.getShiftsByBusinessId( - businessId: businessId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getShiftsByVendorId -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.getShiftsByVendorId( - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getShiftsByVendorId, we created `getShiftsByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetShiftsByVendorIdVariablesBuilder { - ... - GetShiftsByVendorIdVariablesBuilder dateFrom(Timestamp? t) { - _dateFrom.value = t; - return this; - } - GetShiftsByVendorIdVariablesBuilder dateTo(Timestamp? t) { - _dateTo.value = t; - return this; - } - GetShiftsByVendorIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetShiftsByVendorIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getShiftsByVendorId( - vendorId: vendorId, -) -.dateFrom(dateFrom) -.dateTo(dateTo) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getShiftsByVendorId( - vendorId: vendorId, -); -getShiftsByVendorIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; - -final ref = ExampleConnector.instance.getShiftsByVendorId( - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getStaffCourseById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getStaffCourseById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getStaffCourseById( - id: id, -); -getStaffCourseByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getStaffCourseById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffCoursesByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.listStaffCoursesByStaffId( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffCoursesByStaffId, we created `listStaffCoursesByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffCoursesByStaffIdVariablesBuilder { - ... - ListStaffCoursesByStaffIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffCoursesByStaffIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffCoursesByStaffId( - staffId: staffId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffCoursesByStaffId( - staffId: staffId, -); -listStaffCoursesByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.listStaffCoursesByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffCoursesByCourseId -#### Required Arguments -```dart -String courseId = ...; -ExampleConnector.instance.listStaffCoursesByCourseId( - courseId: courseId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffCoursesByCourseId, we created `listStaffCoursesByCourseIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffCoursesByCourseIdVariablesBuilder { - ... - ListStaffCoursesByCourseIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffCoursesByCourseIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffCoursesByCourseId( - courseId: courseId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffCoursesByCourseId( - courseId: courseId, -); -listStaffCoursesByCourseIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String courseId = ...; - -final ref = ExampleConnector.instance.listStaffCoursesByCourseId( - courseId: courseId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getStaffCourseByStaffAndCourse -#### Required Arguments -```dart -String staffId = ...; -String courseId = ...; -ExampleConnector.instance.getStaffCourseByStaffAndCourse( - staffId: staffId, - courseId: courseId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getStaffCourseByStaffAndCourse( - staffId: staffId, - courseId: courseId, -); -getStaffCourseByStaffAndCourseData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String courseId = ...; - -final ref = ExampleConnector.instance.getStaffCourseByStaffAndCourse( - staffId: staffId, - courseId: courseId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listTeams -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listTeams().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listTeams(); -listTeamsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listTeams().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTeamById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getTeamById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getTeamById( - id: id, -); -getTeamByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getTeamById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTeamsByOwnerId -#### Required Arguments -```dart -String ownerId = ...; -ExampleConnector.instance.getTeamsByOwnerId( - ownerId: ownerId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getTeamsByOwnerId( - ownerId: ownerId, -); -getTeamsByOwnerIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String ownerId = ...; - -final ref = ExampleConnector.instance.getTeamsByOwnerId( - ownerId: ownerId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listDocuments -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listDocuments().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listDocuments(); -listDocumentsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listDocuments().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getDocumentById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getDocumentById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getDocumentById( - id: id, -); -getDocumentByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getDocumentById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterDocuments -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterDocuments().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterDocuments, we created `filterDocumentsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterDocumentsVariablesBuilder { - ... - - FilterDocumentsVariablesBuilder documentType(DocumentType? t) { - _documentType.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterDocuments() -.documentType(documentType) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterDocuments(); -filterDocumentsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterDocuments().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listApplications -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listApplications().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listApplications(); -listApplicationsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listApplications().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getApplicationById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getApplicationById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getApplicationById( - id: id, -); -getApplicationByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getApplicationById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getApplicationsByShiftId -#### Required Arguments -```dart -String shiftId = ...; -ExampleConnector.instance.getApplicationsByShiftId( - shiftId: shiftId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getApplicationsByShiftId( - shiftId: shiftId, -); -getApplicationsByShiftIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String shiftId = ...; - -final ref = ExampleConnector.instance.getApplicationsByShiftId( - shiftId: shiftId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getApplicationsByShiftIdAndStatus -#### Required Arguments -```dart -String shiftId = ...; -ApplicationStatus status = ...; -ExampleConnector.instance.getApplicationsByShiftIdAndStatus( - shiftId: shiftId, - status: status, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getApplicationsByShiftIdAndStatus, we created `getApplicationsByShiftIdAndStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetApplicationsByShiftIdAndStatusVariablesBuilder { - ... - GetApplicationsByShiftIdAndStatusVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetApplicationsByShiftIdAndStatusVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getApplicationsByShiftIdAndStatus( - shiftId: shiftId, - status: status, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getApplicationsByShiftIdAndStatus( - shiftId: shiftId, - status: status, -); -getApplicationsByShiftIdAndStatusData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String shiftId = ...; -ApplicationStatus status = ...; - -final ref = ExampleConnector.instance.getApplicationsByShiftIdAndStatus( - shiftId: shiftId, - status: status, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getApplicationsByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.getApplicationsByStaffId( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getApplicationsByStaffId, we created `getApplicationsByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetApplicationsByStaffIdVariablesBuilder { - ... - GetApplicationsByStaffIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetApplicationsByStaffIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getApplicationsByStaffId( - staffId: staffId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getApplicationsByStaffId( - staffId: staffId, -); -getApplicationsByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.getApplicationsByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listAcceptedApplicationsByShiftRoleKey -#### Required Arguments -```dart -String shiftId = ...; -String roleId = ...; -ExampleConnector.instance.listAcceptedApplicationsByShiftRoleKey( - shiftId: shiftId, - roleId: roleId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listAcceptedApplicationsByShiftRoleKey, we created `listAcceptedApplicationsByShiftRoleKeyBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListAcceptedApplicationsByShiftRoleKeyVariablesBuilder { - ... - ListAcceptedApplicationsByShiftRoleKeyVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListAcceptedApplicationsByShiftRoleKeyVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listAcceptedApplicationsByShiftRoleKey( - shiftId: shiftId, - roleId: roleId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listAcceptedApplicationsByShiftRoleKey( - shiftId: shiftId, - roleId: roleId, -); -listAcceptedApplicationsByShiftRoleKeyData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String shiftId = ...; -String roleId = ...; - -final ref = ExampleConnector.instance.listAcceptedApplicationsByShiftRoleKey( - shiftId: shiftId, - roleId: roleId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listAcceptedApplicationsByBusinessForDay -#### Required Arguments -```dart -String businessId = ...; -Timestamp dayStart = ...; -Timestamp dayEnd = ...; -ExampleConnector.instance.listAcceptedApplicationsByBusinessForDay( - businessId: businessId, - dayStart: dayStart, - dayEnd: dayEnd, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listAcceptedApplicationsByBusinessForDay, we created `listAcceptedApplicationsByBusinessForDayBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListAcceptedApplicationsByBusinessForDayVariablesBuilder { - ... - ListAcceptedApplicationsByBusinessForDayVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListAcceptedApplicationsByBusinessForDayVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listAcceptedApplicationsByBusinessForDay( - businessId: businessId, - dayStart: dayStart, - dayEnd: dayEnd, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listAcceptedApplicationsByBusinessForDay( - businessId: businessId, - dayStart: dayStart, - dayEnd: dayEnd, -); -listAcceptedApplicationsByBusinessForDayData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String businessId = ...; -Timestamp dayStart = ...; -Timestamp dayEnd = ...; - -final ref = ExampleConnector.instance.listAcceptedApplicationsByBusinessForDay( - businessId: businessId, - dayStart: dayStart, - dayEnd: dayEnd, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffsApplicationsByBusinessForDay -#### Required Arguments -```dart -String businessId = ...; -Timestamp dayStart = ...; -Timestamp dayEnd = ...; -ExampleConnector.instance.listStaffsApplicationsByBusinessForDay( - businessId: businessId, - dayStart: dayStart, - dayEnd: dayEnd, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffsApplicationsByBusinessForDay, we created `listStaffsApplicationsByBusinessForDayBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffsApplicationsByBusinessForDayVariablesBuilder { - ... - ListStaffsApplicationsByBusinessForDayVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffsApplicationsByBusinessForDayVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffsApplicationsByBusinessForDay( - businessId: businessId, - dayStart: dayStart, - dayEnd: dayEnd, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffsApplicationsByBusinessForDay( - businessId: businessId, - dayStart: dayStart, - dayEnd: dayEnd, -); -listStaffsApplicationsByBusinessForDayData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String businessId = ...; -Timestamp dayStart = ...; -Timestamp dayEnd = ...; - -final ref = ExampleConnector.instance.listStaffsApplicationsByBusinessForDay( - businessId: businessId, - dayStart: dayStart, - dayEnd: dayEnd, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listCategories -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listCategories().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listCategories(); -listCategoriesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listCategories().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getCategoryById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getCategoryById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getCategoryById( - id: id, -); -getCategoryByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getCategoryById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterCategories -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterCategories().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterCategories, we created `filterCategoriesBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterCategoriesVariablesBuilder { - ... - - FilterCategoriesVariablesBuilder categoryId(String? t) { - _categoryId.value = t; - return this; - } - FilterCategoriesVariablesBuilder label(String? t) { - _label.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterCategories() -.categoryId(categoryId) -.label(label) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterCategories(); -filterCategoriesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterCategories().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRoles -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listRoles().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listRoles(); -listRolesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listRoles().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getRoleById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getRoleById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getRoleById( - id: id, -); -getRoleByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getRoleById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRolesByVendorId -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.listRolesByVendorId( - vendorId: vendorId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listRolesByVendorId( - vendorId: vendorId, -); -listRolesByVendorIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; - -final ref = ExampleConnector.instance.listRolesByVendorId( - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listRolesByroleCategoryId -#### Required Arguments -```dart -String roleCategoryId = ...; -ExampleConnector.instance.listRolesByroleCategoryId( - roleCategoryId: roleCategoryId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listRolesByroleCategoryId( - roleCategoryId: roleCategoryId, -); -listRolesByroleCategoryIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String roleCategoryId = ...; - -final ref = ExampleConnector.instance.listRolesByroleCategoryId( - roleCategoryId: roleCategoryId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listTasks -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listTasks().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listTasks(); -listTasksData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listTasks().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTaskById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getTaskById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getTaskById( - id: id, -); -getTaskByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getTaskById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTasksByOwnerId -#### Required Arguments -```dart -String ownerId = ...; -ExampleConnector.instance.getTasksByOwnerId( - ownerId: ownerId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getTasksByOwnerId( - ownerId: ownerId, -); -getTasksByOwnerIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String ownerId = ...; - -final ref = ExampleConnector.instance.getTasksByOwnerId( - ownerId: ownerId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterTasks -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterTasks().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterTasks, we created `filterTasksBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterTasksVariablesBuilder { - ... - - FilterTasksVariablesBuilder status(TaskStatus? t) { - _status.value = t; - return this; - } - FilterTasksVariablesBuilder priority(TaskPriority? t) { - _priority.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterTasks() -.status(status) -.priority(priority) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterTasks(); -filterTasksData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterTasks().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - ### listAccounts #### Required Arguments ```dart @@ -6381,1187 +233,6 @@ ref.subscribe(...); ``` -### listInvoiceTemplates -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listInvoiceTemplates().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listInvoiceTemplates, we created `listInvoiceTemplatesBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListInvoiceTemplatesVariablesBuilder { - ... - - ListInvoiceTemplatesVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListInvoiceTemplatesVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listInvoiceTemplates() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listInvoiceTemplates(); -listInvoiceTemplatesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listInvoiceTemplates().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getInvoiceTemplateById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getInvoiceTemplateById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getInvoiceTemplateById( - id: id, -); -getInvoiceTemplateByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getInvoiceTemplateById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listInvoiceTemplatesByOwnerId -#### Required Arguments -```dart -String ownerId = ...; -ExampleConnector.instance.listInvoiceTemplatesByOwnerId( - ownerId: ownerId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listInvoiceTemplatesByOwnerId, we created `listInvoiceTemplatesByOwnerIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListInvoiceTemplatesByOwnerIdVariablesBuilder { - ... - ListInvoiceTemplatesByOwnerIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListInvoiceTemplatesByOwnerIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listInvoiceTemplatesByOwnerId( - ownerId: ownerId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listInvoiceTemplatesByOwnerId( - ownerId: ownerId, -); -listInvoiceTemplatesByOwnerIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String ownerId = ...; - -final ref = ExampleConnector.instance.listInvoiceTemplatesByOwnerId( - ownerId: ownerId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listInvoiceTemplatesByVendorId -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.listInvoiceTemplatesByVendorId( - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listInvoiceTemplatesByVendorId, we created `listInvoiceTemplatesByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListInvoiceTemplatesByVendorIdVariablesBuilder { - ... - ListInvoiceTemplatesByVendorIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListInvoiceTemplatesByVendorIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listInvoiceTemplatesByVendorId( - vendorId: vendorId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listInvoiceTemplatesByVendorId( - vendorId: vendorId, -); -listInvoiceTemplatesByVendorIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; - -final ref = ExampleConnector.instance.listInvoiceTemplatesByVendorId( - vendorId: vendorId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listInvoiceTemplatesByBusinessId -#### Required Arguments -```dart -String businessId = ...; -ExampleConnector.instance.listInvoiceTemplatesByBusinessId( - businessId: businessId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listInvoiceTemplatesByBusinessId, we created `listInvoiceTemplatesByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListInvoiceTemplatesByBusinessIdVariablesBuilder { - ... - ListInvoiceTemplatesByBusinessIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListInvoiceTemplatesByBusinessIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listInvoiceTemplatesByBusinessId( - businessId: businessId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listInvoiceTemplatesByBusinessId( - businessId: businessId, -); -listInvoiceTemplatesByBusinessIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String businessId = ...; - -final ref = ExampleConnector.instance.listInvoiceTemplatesByBusinessId( - businessId: businessId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listInvoiceTemplatesByOrderId -#### Required Arguments -```dart -String orderId = ...; -ExampleConnector.instance.listInvoiceTemplatesByOrderId( - orderId: orderId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listInvoiceTemplatesByOrderId, we created `listInvoiceTemplatesByOrderIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListInvoiceTemplatesByOrderIdVariablesBuilder { - ... - ListInvoiceTemplatesByOrderIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListInvoiceTemplatesByOrderIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listInvoiceTemplatesByOrderId( - orderId: orderId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listInvoiceTemplatesByOrderId( - orderId: orderId, -); -listInvoiceTemplatesByOrderIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String orderId = ...; - -final ref = ExampleConnector.instance.listInvoiceTemplatesByOrderId( - orderId: orderId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### searchInvoiceTemplatesByOwnerAndName -#### Required Arguments -```dart -String ownerId = ...; -String name = ...; -ExampleConnector.instance.searchInvoiceTemplatesByOwnerAndName( - ownerId: ownerId, - name: name, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For searchInvoiceTemplatesByOwnerAndName, we created `searchInvoiceTemplatesByOwnerAndNameBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder { - ... - SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.searchInvoiceTemplatesByOwnerAndName( - ownerId: ownerId, - name: name, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.searchInvoiceTemplatesByOwnerAndName( - ownerId: ownerId, - name: name, -); -searchInvoiceTemplatesByOwnerAndNameData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String ownerId = ...; -String name = ...; - -final ref = ExampleConnector.instance.searchInvoiceTemplatesByOwnerAndName( - ownerId: ownerId, - name: name, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listBenefitsData -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listBenefitsData().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listBenefitsData, we created `listBenefitsDataBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListBenefitsDataVariablesBuilder { - ... - - ListBenefitsDataVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListBenefitsDataVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listBenefitsData() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listBenefitsData(); -listBenefitsDataData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listBenefitsData().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getBenefitsDataByKey -#### Required Arguments -```dart -String staffId = ...; -String vendorBenefitPlanId = ...; -ExampleConnector.instance.getBenefitsDataByKey( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getBenefitsDataByKey( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -); -getBenefitsDataByKeyData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String vendorBenefitPlanId = ...; - -final ref = ExampleConnector.instance.getBenefitsDataByKey( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listBenefitsDataByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.listBenefitsDataByStaffId( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listBenefitsDataByStaffId, we created `listBenefitsDataByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListBenefitsDataByStaffIdVariablesBuilder { - ... - ListBenefitsDataByStaffIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListBenefitsDataByStaffIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listBenefitsDataByStaffId( - staffId: staffId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listBenefitsDataByStaffId( - staffId: staffId, -); -listBenefitsDataByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.listBenefitsDataByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listBenefitsDataByVendorBenefitPlanId -#### Required Arguments -```dart -String vendorBenefitPlanId = ...; -ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( - vendorBenefitPlanId: vendorBenefitPlanId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listBenefitsDataByVendorBenefitPlanId, we created `listBenefitsDataByVendorBenefitPlanIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder { - ... - ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( - vendorBenefitPlanId: vendorBenefitPlanId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( - vendorBenefitPlanId: vendorBenefitPlanId, -); -listBenefitsDataByVendorBenefitPlanIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorBenefitPlanId = ...; - -final ref = ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( - vendorBenefitPlanId: vendorBenefitPlanId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listBenefitsDataByVendorBenefitPlanIds -#### Required Arguments -```dart -String vendorBenefitPlanIds = ...; -ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( - vendorBenefitPlanIds: vendorBenefitPlanIds, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listBenefitsDataByVendorBenefitPlanIds, we created `listBenefitsDataByVendorBenefitPlanIdsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder { - ... - ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( - vendorBenefitPlanIds: vendorBenefitPlanIds, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( - vendorBenefitPlanIds: vendorBenefitPlanIds, -); -listBenefitsDataByVendorBenefitPlanIdsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorBenefitPlanIds = ...; - -final ref = ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( - vendorBenefitPlanIds: vendorBenefitPlanIds, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listCourses -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listCourses().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listCourses(); -listCoursesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listCourses().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getCourseById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getCourseById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getCourseById( - id: id, -); -getCourseByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getCourseById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterCourses -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterCourses().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterCourses, we created `filterCoursesBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterCoursesVariablesBuilder { - ... - - FilterCoursesVariablesBuilder categoryId(String? t) { - _categoryId.value = t; - return this; - } - FilterCoursesVariablesBuilder isCertification(bool? t) { - _isCertification.value = t; - return this; - } - FilterCoursesVariablesBuilder levelRequired(String? t) { - _levelRequired.value = t; - return this; - } - FilterCoursesVariablesBuilder completed(bool? t) { - _completed.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterCourses() -.categoryId(categoryId) -.isCertification(isCertification) -.levelRequired(levelRequired) -.completed(completed) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterCourses(); -filterCoursesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterCourses().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listHubs -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listHubs().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listHubs(); -listHubsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listHubs().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getHubById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getHubById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getHubById( - id: id, -); -getHubByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getHubById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getHubsByOwnerId -#### Required Arguments -```dart -String ownerId = ...; -ExampleConnector.instance.getHubsByOwnerId( - ownerId: ownerId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getHubsByOwnerId( - ownerId: ownerId, -); -getHubsByOwnerIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String ownerId = ...; - -final ref = ExampleConnector.instance.getHubsByOwnerId( - ownerId: ownerId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterHubs -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterHubs().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterHubs, we created `filterHubsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterHubsVariablesBuilder { - ... - - FilterHubsVariablesBuilder ownerId(String? t) { - _ownerId.value = t; - return this; - } - FilterHubsVariablesBuilder name(String? t) { - _name.value = t; - return this; - } - FilterHubsVariablesBuilder nfcTagId(String? t) { - _nfcTagId.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterHubs() -.ownerId(ownerId) -.name(name) -.nfcTagId(nfcTagId) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterHubs(); -filterHubsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterHubs().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - ### listShiftsForCoverage #### Required Arguments ```dart @@ -8608,17 +1279,17 @@ ref.subscribe(...); ``` -### listVendorRates +### listUsers #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listVendorRates().execute(); +ExampleConnector.instance.listUsers().execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8633,8 +1304,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listVendorRates(); -listVendorRatesData data = result.data; +final result = await ExampleConnector.instance.listUsers(); +listUsersData data = result.data; final ref = result.ref; ``` @@ -8642,18 +1313,18 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.listVendorRates().ref(); +final ref = ExampleConnector.instance.listUsers().ref(); ref.execute(); ref.subscribe(...); ``` -### getVendorRateById +### getUserById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getVendorRateById( +ExampleConnector.instance.getUserById( id: id, ).execute(); ``` @@ -8661,7 +1332,7 @@ ExampleConnector.instance.getVendorRateById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8676,10 +1347,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getVendorRateById( +final result = await ExampleConnector.instance.getUserById( id: id, ); -getVendorRateByIdData data = result.data; +getUserByIdData data = result.data; final ref = result.ref; ``` @@ -8689,7 +1360,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getVendorRateById( +final ref = ExampleConnector.instance.getUserById( id: id, ).ref(); ref.execute(); @@ -8698,6 +1369,1856 @@ ref.subscribe(...); ``` +### filterUsers +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterUsers().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterUsers, we created `filterUsersBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterUsersVariablesBuilder { + ... + + FilterUsersVariablesBuilder id(String? t) { + _id.value = t; + return this; + } + FilterUsersVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + FilterUsersVariablesBuilder role(UserBaseRole? t) { + _role.value = t; + return this; + } + FilterUsersVariablesBuilder userRole(String? t) { + _userRole.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterUsers() +.id(id) +.email(email) +.role(role) +.userRole(userRole) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterUsers(); +filterUsersData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterUsers().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listAttireOptions +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listAttireOptions().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listAttireOptions(); +listAttireOptionsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listAttireOptions().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getAttireOptionById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getAttireOptionById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getAttireOptionById( + id: id, +); +getAttireOptionByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getAttireOptionById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterAttireOptions +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterAttireOptions().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterAttireOptions, we created `filterAttireOptionsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterAttireOptionsVariablesBuilder { + ... + + FilterAttireOptionsVariablesBuilder itemId(String? t) { + _itemId.value = t; + return this; + } + FilterAttireOptionsVariablesBuilder isMandatory(bool? t) { + _isMandatory.value = t; + return this; + } + FilterAttireOptionsVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterAttireOptions() +.itemId(itemId) +.isMandatory(isMandatory) +.vendorId(vendorId) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterAttireOptions(); +filterAttireOptionsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterAttireOptions().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRoles +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listRoles().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listRoles(); +listRolesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listRoles().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getRoleById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getRoleById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getRoleById( + id: id, +); +getRoleByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getRoleById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRolesByVendorId +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.listRolesByVendorId( + vendorId: vendorId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listRolesByVendorId( + vendorId: vendorId, +); +listRolesByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; + +final ref = ExampleConnector.instance.listRolesByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRolesByroleCategoryId +#### Required Arguments +```dart +String roleCategoryId = ...; +ExampleConnector.instance.listRolesByroleCategoryId( + roleCategoryId: roleCategoryId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listRolesByroleCategoryId( + roleCategoryId: roleCategoryId, +); +listRolesByroleCategoryIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String roleCategoryId = ...; + +final ref = ExampleConnector.instance.listRolesByroleCategoryId( + roleCategoryId: roleCategoryId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffAvailabilities +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listStaffAvailabilities().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffAvailabilities, we created `listStaffAvailabilitiesBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffAvailabilitiesVariablesBuilder { + ... + + ListStaffAvailabilitiesVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffAvailabilitiesVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffAvailabilities() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffAvailabilities(); +listStaffAvailabilitiesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listStaffAvailabilities().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffAvailabilitiesByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.listStaffAvailabilitiesByStaffId( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffAvailabilitiesByStaffId, we created `listStaffAvailabilitiesByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffAvailabilitiesByStaffIdVariablesBuilder { + ... + ListStaffAvailabilitiesByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffAvailabilitiesByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffAvailabilitiesByStaffId( + staffId: staffId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffAvailabilitiesByStaffId( + staffId: staffId, +); +listStaffAvailabilitiesByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.listStaffAvailabilitiesByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getStaffAvailabilityByKey +#### Required Arguments +```dart +String staffId = ...; +DayOfWeek day = ...; +AvailabilitySlot slot = ...; +ExampleConnector.instance.getStaffAvailabilityByKey( + staffId: staffId, + day: day, + slot: slot, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getStaffAvailabilityByKey( + staffId: staffId, + day: day, + slot: slot, +); +getStaffAvailabilityByKeyData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +DayOfWeek day = ...; +AvailabilitySlot slot = ...; + +final ref = ExampleConnector.instance.getStaffAvailabilityByKey( + staffId: staffId, + day: day, + slot: slot, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffAvailabilitiesByDay +#### Required Arguments +```dart +DayOfWeek day = ...; +ExampleConnector.instance.listStaffAvailabilitiesByDay( + day: day, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffAvailabilitiesByDay, we created `listStaffAvailabilitiesByDayBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffAvailabilitiesByDayVariablesBuilder { + ... + ListStaffAvailabilitiesByDayVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffAvailabilitiesByDayVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffAvailabilitiesByDay( + day: day, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffAvailabilitiesByDay( + day: day, +); +listStaffAvailabilitiesByDayData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +DayOfWeek day = ...; + +final ref = ExampleConnector.instance.listStaffAvailabilitiesByDay( + day: day, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getStaffDocumentByKey +#### Required Arguments +```dart +String staffId = ...; +String documentId = ...; +ExampleConnector.instance.getStaffDocumentByKey( + staffId: staffId, + documentId: documentId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getStaffDocumentByKey( + staffId: staffId, + documentId: documentId, +); +getStaffDocumentByKeyData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +String documentId = ...; + +final ref = ExampleConnector.instance.getStaffDocumentByKey( + staffId: staffId, + documentId: documentId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffDocumentsByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.listStaffDocumentsByStaffId( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffDocumentsByStaffId, we created `listStaffDocumentsByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffDocumentsByStaffIdVariablesBuilder { + ... + ListStaffDocumentsByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffDocumentsByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffDocumentsByStaffId( + staffId: staffId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffDocumentsByStaffId( + staffId: staffId, +); +listStaffDocumentsByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.listStaffDocumentsByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffDocumentsByDocumentType +#### Required Arguments +```dart +DocumentType documentType = ...; +ExampleConnector.instance.listStaffDocumentsByDocumentType( + documentType: documentType, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffDocumentsByDocumentType, we created `listStaffDocumentsByDocumentTypeBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffDocumentsByDocumentTypeVariablesBuilder { + ... + ListStaffDocumentsByDocumentTypeVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffDocumentsByDocumentTypeVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffDocumentsByDocumentType( + documentType: documentType, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffDocumentsByDocumentType( + documentType: documentType, +); +listStaffDocumentsByDocumentTypeData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +DocumentType documentType = ...; + +final ref = ExampleConnector.instance.listStaffDocumentsByDocumentType( + documentType: documentType, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffDocumentsByStatus +#### Required Arguments +```dart +DocumentStatus status = ...; +ExampleConnector.instance.listStaffDocumentsByStatus( + status: status, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffDocumentsByStatus, we created `listStaffDocumentsByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffDocumentsByStatusVariablesBuilder { + ... + ListStaffDocumentsByStatusVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffDocumentsByStatusVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffDocumentsByStatus( + status: status, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffDocumentsByStatus( + status: status, +); +listStaffDocumentsByStatusData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +DocumentStatus status = ...; + +final ref = ExampleConnector.instance.listStaffDocumentsByStatus( + status: status, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getWorkforceById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getWorkforceById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getWorkforceById( + id: id, +); +getWorkforceByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getWorkforceById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getWorkforceByVendorAndStaff +#### Required Arguments +```dart +String vendorId = ...; +String staffId = ...; +ExampleConnector.instance.getWorkforceByVendorAndStaff( + vendorId: vendorId, + staffId: staffId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getWorkforceByVendorAndStaff( + vendorId: vendorId, + staffId: staffId, +); +getWorkforceByVendorAndStaffData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; +String staffId = ...; + +final ref = ExampleConnector.instance.getWorkforceByVendorAndStaff( + vendorId: vendorId, + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listWorkforceByVendorId +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.listWorkforceByVendorId( + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listWorkforceByVendorId, we created `listWorkforceByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListWorkforceByVendorIdVariablesBuilder { + ... + ListWorkforceByVendorIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListWorkforceByVendorIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listWorkforceByVendorId( + vendorId: vendorId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listWorkforceByVendorId( + vendorId: vendorId, +); +listWorkforceByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; + +final ref = ExampleConnector.instance.listWorkforceByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listWorkforceByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.listWorkforceByStaffId( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listWorkforceByStaffId, we created `listWorkforceByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListWorkforceByStaffIdVariablesBuilder { + ... + ListWorkforceByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListWorkforceByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listWorkforceByStaffId( + staffId: staffId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listWorkforceByStaffId( + staffId: staffId, +); +listWorkforceByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.listWorkforceByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getWorkforceByVendorAndNumber +#### Required Arguments +```dart +String vendorId = ...; +String workforceNumber = ...; +ExampleConnector.instance.getWorkforceByVendorAndNumber( + vendorId: vendorId, + workforceNumber: workforceNumber, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getWorkforceByVendorAndNumber( + vendorId: vendorId, + workforceNumber: workforceNumber, +); +getWorkforceByVendorAndNumberData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; +String workforceNumber = ...; + +final ref = ExampleConnector.instance.getWorkforceByVendorAndNumber( + vendorId: vendorId, + workforceNumber: workforceNumber, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listCustomRateCards +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listCustomRateCards().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listCustomRateCards(); +listCustomRateCardsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listCustomRateCards().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getCustomRateCardById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getCustomRateCardById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getCustomRateCardById( + id: id, +); +getCustomRateCardByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getCustomRateCardById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listMessages +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listMessages().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listMessages(); +listMessagesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listMessages().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getMessageById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getMessageById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getMessageById( + id: id, +); +getMessageByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getMessageById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getMessagesByConversationId +#### Required Arguments +```dart +String conversationId = ...; +ExampleConnector.instance.getMessagesByConversationId( + conversationId: conversationId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getMessagesByConversationId( + conversationId: conversationId, +); +getMessagesByConversationIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String conversationId = ...; + +final ref = ExampleConnector.instance.getMessagesByConversationId( + conversationId: conversationId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listTasks +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listTasks().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listTasks(); +listTasksData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listTasks().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTaskById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getTaskById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getTaskById( + id: id, +); +getTaskByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getTaskById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTasksByOwnerId +#### Required Arguments +```dart +String ownerId = ...; +ExampleConnector.instance.getTasksByOwnerId( + ownerId: ownerId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getTasksByOwnerId( + ownerId: ownerId, +); +getTasksByOwnerIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String ownerId = ...; + +final ref = ExampleConnector.instance.getTasksByOwnerId( + ownerId: ownerId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterTasks +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterTasks().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterTasks, we created `filterTasksBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterTasksVariablesBuilder { + ... + + FilterTasksVariablesBuilder status(TaskStatus? t) { + _status.value = t; + return this; + } + FilterTasksVariablesBuilder priority(TaskPriority? t) { + _priority.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterTasks() +.status(status) +.priority(priority) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterTasks(); +filterTasksData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterTasks().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listCourses +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listCourses().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listCourses(); +listCoursesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listCourses().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getCourseById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getCourseById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getCourseById( + id: id, +); +getCourseByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getCourseById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterCourses +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterCourses().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterCourses, we created `filterCoursesBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterCoursesVariablesBuilder { + ... + + FilterCoursesVariablesBuilder categoryId(String? t) { + _categoryId.value = t; + return this; + } + FilterCoursesVariablesBuilder isCertification(bool? t) { + _isCertification.value = t; + return this; + } + FilterCoursesVariablesBuilder levelRequired(String? t) { + _levelRequired.value = t; + return this; + } + FilterCoursesVariablesBuilder completed(bool? t) { + _completed.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterCourses() +.categoryId(categoryId) +.isCertification(isCertification) +.levelRequired(levelRequired) +.completed(completed) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterCourses(); +filterCoursesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterCourses().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + ### listBusinesses #### Required Arguments ```dart @@ -8837,17 +3358,17 @@ ref.subscribe(...); ``` -### listCertificates +### listEmergencyContacts #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listCertificates().execute(); +ExampleConnector.instance.listEmergencyContacts().execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8862,8 +3383,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listCertificates(); -listCertificatesData data = result.data; +final result = await ExampleConnector.instance.listEmergencyContacts(); +listEmergencyContactsData data = result.data; final ref = result.ref; ``` @@ -8871,18 +3392,18 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.listCertificates().ref(); +final ref = ExampleConnector.instance.listEmergencyContacts().ref(); ref.execute(); ref.subscribe(...); ``` -### getCertificateById +### getEmergencyContactById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getCertificateById( +ExampleConnector.instance.getEmergencyContactById( id: id, ).execute(); ``` @@ -8890,7 +3411,7 @@ ExampleConnector.instance.getCertificateById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8905,10 +3426,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getCertificateById( +final result = await ExampleConnector.instance.getEmergencyContactById( id: id, ); -getCertificateByIdData data = result.data; +getEmergencyContactByIdData data = result.data; final ref = result.ref; ``` @@ -8918,7 +3439,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getCertificateById( +final ref = ExampleConnector.instance.getEmergencyContactById( id: id, ).ref(); ref.execute(); @@ -8927,11 +3448,11 @@ ref.subscribe(...); ``` -### listCertificatesByStaffId +### getEmergencyContactsByStaffId #### Required Arguments ```dart String staffId = ...; -ExampleConnector.instance.listCertificatesByStaffId( +ExampleConnector.instance.getEmergencyContactsByStaffId( staffId: staffId, ).execute(); ``` @@ -8939,7 +3460,7 @@ ExampleConnector.instance.listCertificatesByStaffId( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -8954,10 +3475,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listCertificatesByStaffId( +final result = await ExampleConnector.instance.getEmergencyContactsByStaffId( staffId: staffId, ); -listCertificatesByStaffIdData data = result.data; +getEmergencyContactsByStaffIdData data = result.data; final ref = result.ref; ``` @@ -8967,7 +3488,7 @@ An example of how to use the `Ref` object is shown below: ```dart String staffId = ...; -final ref = ExampleConnector.instance.listCertificatesByStaffId( +final ref = ExampleConnector.instance.getEmergencyContactsByStaffId( staffId: staffId, ).ref(); ref.execute(); @@ -8976,6 +3497,5474 @@ ref.subscribe(...); ``` +### listRoleCategories +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listRoleCategories().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listRoleCategories(); +listRoleCategoriesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listRoleCategories().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getRoleCategoryById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getRoleCategoryById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getRoleCategoryById( + id: id, +); +getRoleCategoryByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getRoleCategoryById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getRoleCategoriesByCategory +#### Required Arguments +```dart +RoleCategoryType category = ...; +ExampleConnector.instance.getRoleCategoriesByCategory( + category: category, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getRoleCategoriesByCategory( + category: category, +); +getRoleCategoriesByCategoryData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +RoleCategoryType category = ...; + +final ref = ExampleConnector.instance.getRoleCategoriesByCategory( + category: category, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listTeams +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listTeams().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listTeams(); +listTeamsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listTeams().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTeamById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getTeamById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getTeamById( + id: id, +); +getTeamByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getTeamById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTeamsByOwnerId +#### Required Arguments +```dart +String ownerId = ...; +ExampleConnector.instance.getTeamsByOwnerId( + ownerId: ownerId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getTeamsByOwnerId( + ownerId: ownerId, +); +getTeamsByOwnerIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String ownerId = ...; + +final ref = ExampleConnector.instance.getTeamsByOwnerId( + ownerId: ownerId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listConversations +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listConversations().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listConversations, we created `listConversationsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListConversationsVariablesBuilder { + ... + + ListConversationsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListConversationsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listConversations() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listConversations(); +listConversationsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listConversations().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getConversationById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getConversationById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getConversationById( + id: id, +); +getConversationByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getConversationById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listConversationsByType +#### Required Arguments +```dart +ConversationType conversationType = ...; +ExampleConnector.instance.listConversationsByType( + conversationType: conversationType, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listConversationsByType, we created `listConversationsByTypeBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListConversationsByTypeVariablesBuilder { + ... + ListConversationsByTypeVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListConversationsByTypeVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listConversationsByType( + conversationType: conversationType, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listConversationsByType( + conversationType: conversationType, +); +listConversationsByTypeData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +ConversationType conversationType = ...; + +final ref = ExampleConnector.instance.listConversationsByType( + conversationType: conversationType, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listConversationsByStatus +#### Required Arguments +```dart +ConversationStatus status = ...; +ExampleConnector.instance.listConversationsByStatus( + status: status, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listConversationsByStatus, we created `listConversationsByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListConversationsByStatusVariablesBuilder { + ... + ListConversationsByStatusVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListConversationsByStatusVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listConversationsByStatus( + status: status, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listConversationsByStatus( + status: status, +); +listConversationsByStatusData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +ConversationStatus status = ...; + +final ref = ExampleConnector.instance.listConversationsByStatus( + status: status, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterConversations +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterConversations().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterConversations, we created `filterConversationsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterConversationsVariablesBuilder { + ... + + FilterConversationsVariablesBuilder status(ConversationStatus? t) { + _status.value = t; + return this; + } + FilterConversationsVariablesBuilder conversationType(ConversationType? t) { + _conversationType.value = t; + return this; + } + FilterConversationsVariablesBuilder isGroup(bool? t) { + _isGroup.value = t; + return this; + } + FilterConversationsVariablesBuilder lastMessageAfter(Timestamp? t) { + _lastMessageAfter.value = t; + return this; + } + FilterConversationsVariablesBuilder lastMessageBefore(Timestamp? t) { + _lastMessageBefore.value = t; + return this; + } + FilterConversationsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + FilterConversationsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterConversations() +.status(status) +.conversationType(conversationType) +.isGroup(isGroup) +.lastMessageAfter(lastMessageAfter) +.lastMessageBefore(lastMessageBefore) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterConversations(); +filterConversationsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterConversations().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listInvoices +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listInvoices().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listInvoices, we created `listInvoicesBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListInvoicesVariablesBuilder { + ... + + ListInvoicesVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListInvoicesVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listInvoices() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listInvoices(); +listInvoicesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listInvoices().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getInvoiceById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getInvoiceById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getInvoiceById( + id: id, +); +getInvoiceByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getInvoiceById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listInvoicesByVendorId +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.listInvoicesByVendorId( + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listInvoicesByVendorId, we created `listInvoicesByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListInvoicesByVendorIdVariablesBuilder { + ... + ListInvoicesByVendorIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListInvoicesByVendorIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listInvoicesByVendorId( + vendorId: vendorId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listInvoicesByVendorId( + vendorId: vendorId, +); +listInvoicesByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; + +final ref = ExampleConnector.instance.listInvoicesByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listInvoicesByBusinessId +#### Required Arguments +```dart +String businessId = ...; +ExampleConnector.instance.listInvoicesByBusinessId( + businessId: businessId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listInvoicesByBusinessId, we created `listInvoicesByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListInvoicesByBusinessIdVariablesBuilder { + ... + ListInvoicesByBusinessIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListInvoicesByBusinessIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listInvoicesByBusinessId( + businessId: businessId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listInvoicesByBusinessId( + businessId: businessId, +); +listInvoicesByBusinessIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessId = ...; + +final ref = ExampleConnector.instance.listInvoicesByBusinessId( + businessId: businessId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listInvoicesByOrderId +#### Required Arguments +```dart +String orderId = ...; +ExampleConnector.instance.listInvoicesByOrderId( + orderId: orderId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listInvoicesByOrderId, we created `listInvoicesByOrderIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListInvoicesByOrderIdVariablesBuilder { + ... + ListInvoicesByOrderIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListInvoicesByOrderIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listInvoicesByOrderId( + orderId: orderId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listInvoicesByOrderId( + orderId: orderId, +); +listInvoicesByOrderIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String orderId = ...; + +final ref = ExampleConnector.instance.listInvoicesByOrderId( + orderId: orderId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listInvoicesByStatus +#### Required Arguments +```dart +InvoiceStatus status = ...; +ExampleConnector.instance.listInvoicesByStatus( + status: status, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listInvoicesByStatus, we created `listInvoicesByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListInvoicesByStatusVariablesBuilder { + ... + ListInvoicesByStatusVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListInvoicesByStatusVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listInvoicesByStatus( + status: status, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listInvoicesByStatus( + status: status, +); +listInvoicesByStatusData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +InvoiceStatus status = ...; + +final ref = ExampleConnector.instance.listInvoicesByStatus( + status: status, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterInvoices +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterInvoices().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterInvoices, we created `filterInvoicesBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterInvoicesVariablesBuilder { + ... + + FilterInvoicesVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + FilterInvoicesVariablesBuilder businessId(String? t) { + _businessId.value = t; + return this; + } + FilterInvoicesVariablesBuilder orderId(String? t) { + _orderId.value = t; + return this; + } + FilterInvoicesVariablesBuilder status(InvoiceStatus? t) { + _status.value = t; + return this; + } + FilterInvoicesVariablesBuilder issueDateFrom(Timestamp? t) { + _issueDateFrom.value = t; + return this; + } + FilterInvoicesVariablesBuilder issueDateTo(Timestamp? t) { + _issueDateTo.value = t; + return this; + } + FilterInvoicesVariablesBuilder dueDateFrom(Timestamp? t) { + _dueDateFrom.value = t; + return this; + } + FilterInvoicesVariablesBuilder dueDateTo(Timestamp? t) { + _dueDateTo.value = t; + return this; + } + FilterInvoicesVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + FilterInvoicesVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterInvoices() +.vendorId(vendorId) +.businessId(businessId) +.orderId(orderId) +.status(status) +.issueDateFrom(issueDateFrom) +.issueDateTo(issueDateTo) +.dueDateFrom(dueDateFrom) +.dueDateTo(dueDateTo) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterInvoices(); +filterInvoicesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterInvoices().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listOverdueInvoices +#### Required Arguments +```dart +Timestamp now = ...; +ExampleConnector.instance.listOverdueInvoices( + now: now, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listOverdueInvoices, we created `listOverdueInvoicesBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListOverdueInvoicesVariablesBuilder { + ... + ListOverdueInvoicesVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListOverdueInvoicesVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listOverdueInvoices( + now: now, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listOverdueInvoices( + now: now, +); +listOverdueInvoicesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +Timestamp now = ...; + +final ref = ExampleConnector.instance.listOverdueInvoices( + now: now, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getVendorById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getVendorById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getVendorById( + id: id, +); +getVendorByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getVendorById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getVendorByUserId +#### Required Arguments +```dart +String userId = ...; +ExampleConnector.instance.getVendorByUserId( + userId: userId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getVendorByUserId( + userId: userId, +); +getVendorByUserIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String userId = ...; + +final ref = ExampleConnector.instance.getVendorByUserId( + userId: userId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listVendors +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listVendors().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listVendors(); +listVendorsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listVendors().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listVendorBenefitPlans +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listVendorBenefitPlans().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listVendorBenefitPlans, we created `listVendorBenefitPlansBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListVendorBenefitPlansVariablesBuilder { + ... + + ListVendorBenefitPlansVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListVendorBenefitPlansVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listVendorBenefitPlans() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listVendorBenefitPlans(); +listVendorBenefitPlansData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listVendorBenefitPlans().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getVendorBenefitPlanById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getVendorBenefitPlanById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getVendorBenefitPlanById( + id: id, +); +getVendorBenefitPlanByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getVendorBenefitPlanById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listVendorBenefitPlansByVendorId +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.listVendorBenefitPlansByVendorId( + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listVendorBenefitPlansByVendorId, we created `listVendorBenefitPlansByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListVendorBenefitPlansByVendorIdVariablesBuilder { + ... + ListVendorBenefitPlansByVendorIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListVendorBenefitPlansByVendorIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listVendorBenefitPlansByVendorId( + vendorId: vendorId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listVendorBenefitPlansByVendorId( + vendorId: vendorId, +); +listVendorBenefitPlansByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; + +final ref = ExampleConnector.instance.listVendorBenefitPlansByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listActiveVendorBenefitPlansByVendorId +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.listActiveVendorBenefitPlansByVendorId( + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listActiveVendorBenefitPlansByVendorId, we created `listActiveVendorBenefitPlansByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListActiveVendorBenefitPlansByVendorIdVariablesBuilder { + ... + ListActiveVendorBenefitPlansByVendorIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListActiveVendorBenefitPlansByVendorIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listActiveVendorBenefitPlansByVendorId( + vendorId: vendorId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listActiveVendorBenefitPlansByVendorId( + vendorId: vendorId, +); +listActiveVendorBenefitPlansByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; + +final ref = ExampleConnector.instance.listActiveVendorBenefitPlansByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterVendorBenefitPlans +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterVendorBenefitPlans().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterVendorBenefitPlans, we created `filterVendorBenefitPlansBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterVendorBenefitPlansVariablesBuilder { + ... + + FilterVendorBenefitPlansVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + FilterVendorBenefitPlansVariablesBuilder title(String? t) { + _title.value = t; + return this; + } + FilterVendorBenefitPlansVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + FilterVendorBenefitPlansVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + FilterVendorBenefitPlansVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterVendorBenefitPlans() +.vendorId(vendorId) +.title(title) +.isActive(isActive) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterVendorBenefitPlans(); +filterVendorBenefitPlansData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterVendorBenefitPlans().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listTeamMembers +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listTeamMembers().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listTeamMembers(); +listTeamMembersData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listTeamMembers().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTeamMemberById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getTeamMemberById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getTeamMemberById( + id: id, +); +getTeamMemberByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getTeamMemberById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTeamMembersByTeamId +#### Required Arguments +```dart +String teamId = ...; +ExampleConnector.instance.getTeamMembersByTeamId( + teamId: teamId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getTeamMembersByTeamId( + teamId: teamId, +); +getTeamMembersByTeamIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String teamId = ...; + +final ref = ExampleConnector.instance.getTeamMembersByTeamId( + teamId: teamId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listUserConversations +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listUserConversations().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listUserConversations, we created `listUserConversationsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListUserConversationsVariablesBuilder { + ... + + ListUserConversationsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListUserConversationsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listUserConversations() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listUserConversations(); +listUserConversationsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listUserConversations().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getUserConversationByKey +#### Required Arguments +```dart +String conversationId = ...; +String userId = ...; +ExampleConnector.instance.getUserConversationByKey( + conversationId: conversationId, + userId: userId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getUserConversationByKey( + conversationId: conversationId, + userId: userId, +); +getUserConversationByKeyData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String conversationId = ...; +String userId = ...; + +final ref = ExampleConnector.instance.getUserConversationByKey( + conversationId: conversationId, + userId: userId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listUserConversationsByUserId +#### Required Arguments +```dart +String userId = ...; +ExampleConnector.instance.listUserConversationsByUserId( + userId: userId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listUserConversationsByUserId, we created `listUserConversationsByUserIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListUserConversationsByUserIdVariablesBuilder { + ... + ListUserConversationsByUserIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListUserConversationsByUserIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listUserConversationsByUserId( + userId: userId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listUserConversationsByUserId( + userId: userId, +); +listUserConversationsByUserIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String userId = ...; + +final ref = ExampleConnector.instance.listUserConversationsByUserId( + userId: userId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listUnreadUserConversationsByUserId +#### Required Arguments +```dart +String userId = ...; +ExampleConnector.instance.listUnreadUserConversationsByUserId( + userId: userId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listUnreadUserConversationsByUserId, we created `listUnreadUserConversationsByUserIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListUnreadUserConversationsByUserIdVariablesBuilder { + ... + ListUnreadUserConversationsByUserIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListUnreadUserConversationsByUserIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listUnreadUserConversationsByUserId( + userId: userId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listUnreadUserConversationsByUserId( + userId: userId, +); +listUnreadUserConversationsByUserIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String userId = ...; + +final ref = ExampleConnector.instance.listUnreadUserConversationsByUserId( + userId: userId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listUserConversationsByConversationId +#### Required Arguments +```dart +String conversationId = ...; +ExampleConnector.instance.listUserConversationsByConversationId( + conversationId: conversationId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listUserConversationsByConversationId, we created `listUserConversationsByConversationIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListUserConversationsByConversationIdVariablesBuilder { + ... + ListUserConversationsByConversationIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListUserConversationsByConversationIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listUserConversationsByConversationId( + conversationId: conversationId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listUserConversationsByConversationId( + conversationId: conversationId, +); +listUserConversationsByConversationIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String conversationId = ...; + +final ref = ExampleConnector.instance.listUserConversationsByConversationId( + conversationId: conversationId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterUserConversations +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterUserConversations().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterUserConversations, we created `filterUserConversationsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterUserConversationsVariablesBuilder { + ... + + FilterUserConversationsVariablesBuilder userId(String? t) { + _userId.value = t; + return this; + } + FilterUserConversationsVariablesBuilder conversationId(String? t) { + _conversationId.value = t; + return this; + } + FilterUserConversationsVariablesBuilder unreadMin(int? t) { + _unreadMin.value = t; + return this; + } + FilterUserConversationsVariablesBuilder unreadMax(int? t) { + _unreadMax.value = t; + return this; + } + FilterUserConversationsVariablesBuilder lastReadAfter(Timestamp? t) { + _lastReadAfter.value = t; + return this; + } + FilterUserConversationsVariablesBuilder lastReadBefore(Timestamp? t) { + _lastReadBefore.value = t; + return this; + } + FilterUserConversationsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + FilterUserConversationsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterUserConversations() +.userId(userId) +.conversationId(conversationId) +.unreadMin(unreadMin) +.unreadMax(unreadMax) +.lastReadAfter(lastReadAfter) +.lastReadBefore(lastReadBefore) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterUserConversations(); +filterUserConversationsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterUserConversations().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listDocuments +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listDocuments().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listDocuments(); +listDocumentsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listDocuments().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getDocumentById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getDocumentById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getDocumentById( + id: id, +); +getDocumentByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getDocumentById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterDocuments +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterDocuments().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterDocuments, we created `filterDocumentsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterDocumentsVariablesBuilder { + ... + + FilterDocumentsVariablesBuilder documentType(DocumentType? t) { + _documentType.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterDocuments() +.documentType(documentType) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterDocuments(); +filterDocumentsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterDocuments().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listClientFeedbacks +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listClientFeedbacks().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listClientFeedbacks, we created `listClientFeedbacksBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListClientFeedbacksVariablesBuilder { + ... + + ListClientFeedbacksVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListClientFeedbacksVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listClientFeedbacks() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listClientFeedbacks(); +listClientFeedbacksData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listClientFeedbacks().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getClientFeedbackById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getClientFeedbackById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getClientFeedbackById( + id: id, +); +getClientFeedbackByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getClientFeedbackById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listClientFeedbacksByBusinessId +#### Required Arguments +```dart +String businessId = ...; +ExampleConnector.instance.listClientFeedbacksByBusinessId( + businessId: businessId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listClientFeedbacksByBusinessId, we created `listClientFeedbacksByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListClientFeedbacksByBusinessIdVariablesBuilder { + ... + ListClientFeedbacksByBusinessIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListClientFeedbacksByBusinessIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listClientFeedbacksByBusinessId( + businessId: businessId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listClientFeedbacksByBusinessId( + businessId: businessId, +); +listClientFeedbacksByBusinessIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessId = ...; + +final ref = ExampleConnector.instance.listClientFeedbacksByBusinessId( + businessId: businessId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listClientFeedbacksByVendorId +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.listClientFeedbacksByVendorId( + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listClientFeedbacksByVendorId, we created `listClientFeedbacksByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListClientFeedbacksByVendorIdVariablesBuilder { + ... + ListClientFeedbacksByVendorIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListClientFeedbacksByVendorIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listClientFeedbacksByVendorId( + vendorId: vendorId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listClientFeedbacksByVendorId( + vendorId: vendorId, +); +listClientFeedbacksByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; + +final ref = ExampleConnector.instance.listClientFeedbacksByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listClientFeedbacksByBusinessAndVendor +#### Required Arguments +```dart +String businessId = ...; +String vendorId = ...; +ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor( + businessId: businessId, + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listClientFeedbacksByBusinessAndVendor, we created `listClientFeedbacksByBusinessAndVendorBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListClientFeedbacksByBusinessAndVendorVariablesBuilder { + ... + ListClientFeedbacksByBusinessAndVendorVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListClientFeedbacksByBusinessAndVendorVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor( + businessId: businessId, + vendorId: vendorId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor( + businessId: businessId, + vendorId: vendorId, +); +listClientFeedbacksByBusinessAndVendorData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessId = ...; +String vendorId = ...; + +final ref = ExampleConnector.instance.listClientFeedbacksByBusinessAndVendor( + businessId: businessId, + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterClientFeedbacks +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterClientFeedbacks().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterClientFeedbacks, we created `filterClientFeedbacksBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterClientFeedbacksVariablesBuilder { + ... + + FilterClientFeedbacksVariablesBuilder businessId(String? t) { + _businessId.value = t; + return this; + } + FilterClientFeedbacksVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + FilterClientFeedbacksVariablesBuilder ratingMin(int? t) { + _ratingMin.value = t; + return this; + } + FilterClientFeedbacksVariablesBuilder ratingMax(int? t) { + _ratingMax.value = t; + return this; + } + FilterClientFeedbacksVariablesBuilder dateFrom(Timestamp? t) { + _dateFrom.value = t; + return this; + } + FilterClientFeedbacksVariablesBuilder dateTo(Timestamp? t) { + _dateTo.value = t; + return this; + } + FilterClientFeedbacksVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + FilterClientFeedbacksVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterClientFeedbacks() +.businessId(businessId) +.vendorId(vendorId) +.ratingMin(ratingMin) +.ratingMax(ratingMax) +.dateFrom(dateFrom) +.dateTo(dateTo) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterClientFeedbacks(); +filterClientFeedbacksData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterClientFeedbacks().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listClientFeedbackRatingsByVendorId +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.listClientFeedbackRatingsByVendorId( + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listClientFeedbackRatingsByVendorId, we created `listClientFeedbackRatingsByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListClientFeedbackRatingsByVendorIdVariablesBuilder { + ... + ListClientFeedbackRatingsByVendorIdVariablesBuilder dateFrom(Timestamp? t) { + _dateFrom.value = t; + return this; + } + ListClientFeedbackRatingsByVendorIdVariablesBuilder dateTo(Timestamp? t) { + _dateTo.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listClientFeedbackRatingsByVendorId( + vendorId: vendorId, +) +.dateFrom(dateFrom) +.dateTo(dateTo) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listClientFeedbackRatingsByVendorId( + vendorId: vendorId, +); +listClientFeedbackRatingsByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; + +final ref = ExampleConnector.instance.listClientFeedbackRatingsByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getMyTasks +#### Required Arguments +```dart +String teamMemberId = ...; +ExampleConnector.instance.getMyTasks( + teamMemberId: teamMemberId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getMyTasks( + teamMemberId: teamMemberId, +); +getMyTasksData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String teamMemberId = ...; + +final ref = ExampleConnector.instance.getMyTasks( + teamMemberId: teamMemberId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getMemberTaskByIdKey +#### Required Arguments +```dart +String teamMemberId = ...; +String taskId = ...; +ExampleConnector.instance.getMemberTaskByIdKey( + teamMemberId: teamMemberId, + taskId: taskId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getMemberTaskByIdKey( + teamMemberId: teamMemberId, + taskId: taskId, +); +getMemberTaskByIdKeyData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String teamMemberId = ...; +String taskId = ...; + +final ref = ExampleConnector.instance.getMemberTaskByIdKey( + teamMemberId: teamMemberId, + taskId: taskId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getMemberTasksByTaskId +#### Required Arguments +```dart +String taskId = ...; +ExampleConnector.instance.getMemberTasksByTaskId( + taskId: taskId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getMemberTasksByTaskId( + taskId: taskId, +); +getMemberTasksByTaskIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String taskId = ...; + +final ref = ExampleConnector.instance.getMemberTasksByTaskId( + taskId: taskId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listOrders +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listOrders().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listOrders, we created `listOrdersBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListOrdersVariablesBuilder { + ... + + ListOrdersVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListOrdersVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listOrders() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listOrders(); +listOrdersData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listOrders().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getOrderById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getOrderById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getOrderById( + id: id, +); +getOrderByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getOrderById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getOrdersByBusinessId +#### Required Arguments +```dart +String businessId = ...; +ExampleConnector.instance.getOrdersByBusinessId( + businessId: businessId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getOrdersByBusinessId, we created `getOrdersByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetOrdersByBusinessIdVariablesBuilder { + ... + GetOrdersByBusinessIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetOrdersByBusinessIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getOrdersByBusinessId( + businessId: businessId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getOrdersByBusinessId( + businessId: businessId, +); +getOrdersByBusinessIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessId = ...; + +final ref = ExampleConnector.instance.getOrdersByBusinessId( + businessId: businessId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getOrdersByVendorId +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.getOrdersByVendorId( + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getOrdersByVendorId, we created `getOrdersByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetOrdersByVendorIdVariablesBuilder { + ... + GetOrdersByVendorIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetOrdersByVendorIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getOrdersByVendorId( + vendorId: vendorId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getOrdersByVendorId( + vendorId: vendorId, +); +getOrdersByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; + +final ref = ExampleConnector.instance.getOrdersByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getOrdersByStatus +#### Required Arguments +```dart +OrderStatus status = ...; +ExampleConnector.instance.getOrdersByStatus( + status: status, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getOrdersByStatus, we created `getOrdersByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetOrdersByStatusVariablesBuilder { + ... + GetOrdersByStatusVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetOrdersByStatusVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getOrdersByStatus( + status: status, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getOrdersByStatus( + status: status, +); +getOrdersByStatusData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +OrderStatus status = ...; + +final ref = ExampleConnector.instance.getOrdersByStatus( + status: status, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getOrdersByDateRange +#### Required Arguments +```dart +Timestamp start = ...; +Timestamp end = ...; +ExampleConnector.instance.getOrdersByDateRange( + start: start, + end: end, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getOrdersByDateRange, we created `getOrdersByDateRangeBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetOrdersByDateRangeVariablesBuilder { + ... + GetOrdersByDateRangeVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetOrdersByDateRangeVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getOrdersByDateRange( + start: start, + end: end, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getOrdersByDateRange( + start: start, + end: end, +); +getOrdersByDateRangeData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +Timestamp start = ...; +Timestamp end = ...; + +final ref = ExampleConnector.instance.getOrdersByDateRange( + start: start, + end: end, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getRapidOrders +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.getRapidOrders().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getRapidOrders, we created `getRapidOrdersBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetRapidOrdersVariablesBuilder { + ... + + GetRapidOrdersVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetRapidOrdersVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getRapidOrders() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getRapidOrders(); +getRapidOrdersData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.getRapidOrders().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRecentPayments +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listRecentPayments().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listRecentPayments, we created `listRecentPaymentsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListRecentPaymentsVariablesBuilder { + ... + + ListRecentPaymentsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListRecentPaymentsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listRecentPayments() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listRecentPayments(); +listRecentPaymentsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listRecentPayments().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getRecentPaymentById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getRecentPaymentById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getRecentPaymentById( + id: id, +); +getRecentPaymentByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getRecentPaymentById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRecentPaymentsByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.listRecentPaymentsByStaffId( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listRecentPaymentsByStaffId, we created `listRecentPaymentsByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListRecentPaymentsByStaffIdVariablesBuilder { + ... + ListRecentPaymentsByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListRecentPaymentsByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listRecentPaymentsByStaffId( + staffId: staffId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listRecentPaymentsByStaffId( + staffId: staffId, +); +listRecentPaymentsByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.listRecentPaymentsByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRecentPaymentsByApplicationId +#### Required Arguments +```dart +String applicationId = ...; +ExampleConnector.instance.listRecentPaymentsByApplicationId( + applicationId: applicationId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listRecentPaymentsByApplicationId, we created `listRecentPaymentsByApplicationIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListRecentPaymentsByApplicationIdVariablesBuilder { + ... + ListRecentPaymentsByApplicationIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListRecentPaymentsByApplicationIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listRecentPaymentsByApplicationId( + applicationId: applicationId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listRecentPaymentsByApplicationId( + applicationId: applicationId, +); +listRecentPaymentsByApplicationIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String applicationId = ...; + +final ref = ExampleConnector.instance.listRecentPaymentsByApplicationId( + applicationId: applicationId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRecentPaymentsByInvoiceId +#### Required Arguments +```dart +String invoiceId = ...; +ExampleConnector.instance.listRecentPaymentsByInvoiceId( + invoiceId: invoiceId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listRecentPaymentsByInvoiceId, we created `listRecentPaymentsByInvoiceIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListRecentPaymentsByInvoiceIdVariablesBuilder { + ... + ListRecentPaymentsByInvoiceIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListRecentPaymentsByInvoiceIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listRecentPaymentsByInvoiceId( + invoiceId: invoiceId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listRecentPaymentsByInvoiceId( + invoiceId: invoiceId, +); +listRecentPaymentsByInvoiceIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String invoiceId = ...; + +final ref = ExampleConnector.instance.listRecentPaymentsByInvoiceId( + invoiceId: invoiceId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRecentPaymentsByStatus +#### Required Arguments +```dart +RecentPaymentStatus status = ...; +ExampleConnector.instance.listRecentPaymentsByStatus( + status: status, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listRecentPaymentsByStatus, we created `listRecentPaymentsByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListRecentPaymentsByStatusVariablesBuilder { + ... + ListRecentPaymentsByStatusVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListRecentPaymentsByStatusVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listRecentPaymentsByStatus( + status: status, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listRecentPaymentsByStatus( + status: status, +); +listRecentPaymentsByStatusData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +RecentPaymentStatus status = ...; + +final ref = ExampleConnector.instance.listRecentPaymentsByStatus( + status: status, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRecentPaymentsByInvoiceIds +#### Required Arguments +```dart +String invoiceIds = ...; +ExampleConnector.instance.listRecentPaymentsByInvoiceIds( + invoiceIds: invoiceIds, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listRecentPaymentsByInvoiceIds, we created `listRecentPaymentsByInvoiceIdsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListRecentPaymentsByInvoiceIdsVariablesBuilder { + ... + ListRecentPaymentsByInvoiceIdsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListRecentPaymentsByInvoiceIdsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listRecentPaymentsByInvoiceIds( + invoiceIds: invoiceIds, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listRecentPaymentsByInvoiceIds( + invoiceIds: invoiceIds, +); +listRecentPaymentsByInvoiceIdsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String invoiceIds = ...; + +final ref = ExampleConnector.instance.listRecentPaymentsByInvoiceIds( + invoiceIds: invoiceIds, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listRecentPaymentsByBusinessId +#### Required Arguments +```dart +String businessId = ...; +ExampleConnector.instance.listRecentPaymentsByBusinessId( + businessId: businessId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listRecentPaymentsByBusinessId, we created `listRecentPaymentsByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListRecentPaymentsByBusinessIdVariablesBuilder { + ... + ListRecentPaymentsByBusinessIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListRecentPaymentsByBusinessIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listRecentPaymentsByBusinessId( + businessId: businessId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listRecentPaymentsByBusinessId( + businessId: businessId, +); +listRecentPaymentsByBusinessIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessId = ...; + +final ref = ExampleConnector.instance.listRecentPaymentsByBusinessId( + businessId: businessId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffRoles +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listStaffRoles().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffRoles, we created `listStaffRolesBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffRolesVariablesBuilder { + ... + + ListStaffRolesVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffRolesVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffRoles() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffRoles(); +listStaffRolesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listStaffRoles().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getStaffRoleByKey +#### Required Arguments +```dart +String staffId = ...; +String roleId = ...; +ExampleConnector.instance.getStaffRoleByKey( + staffId: staffId, + roleId: roleId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getStaffRoleByKey( + staffId: staffId, + roleId: roleId, +); +getStaffRoleByKeyData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +String roleId = ...; + +final ref = ExampleConnector.instance.getStaffRoleByKey( + staffId: staffId, + roleId: roleId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffRolesByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.listStaffRolesByStaffId( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffRolesByStaffId, we created `listStaffRolesByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffRolesByStaffIdVariablesBuilder { + ... + ListStaffRolesByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffRolesByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffRolesByStaffId( + staffId: staffId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffRolesByStaffId( + staffId: staffId, +); +listStaffRolesByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.listStaffRolesByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffRolesByRoleId +#### Required Arguments +```dart +String roleId = ...; +ExampleConnector.instance.listStaffRolesByRoleId( + roleId: roleId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffRolesByRoleId, we created `listStaffRolesByRoleIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffRolesByRoleIdVariablesBuilder { + ... + ListStaffRolesByRoleIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffRolesByRoleIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffRolesByRoleId( + roleId: roleId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffRolesByRoleId( + roleId: roleId, +); +listStaffRolesByRoleIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String roleId = ...; + +final ref = ExampleConnector.instance.listStaffRolesByRoleId( + roleId: roleId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterStaffRoles +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterStaffRoles().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterStaffRoles, we created `filterStaffRolesBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterStaffRolesVariablesBuilder { + ... + + FilterStaffRolesVariablesBuilder staffId(String? t) { + _staffId.value = t; + return this; + } + FilterStaffRolesVariablesBuilder roleId(String? t) { + _roleId.value = t; + return this; + } + FilterStaffRolesVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + FilterStaffRolesVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterStaffRoles() +.staffId(staffId) +.roleId(roleId) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterStaffRoles(); +filterStaffRolesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterStaffRoles().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listTaskComments +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listTaskComments().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listTaskComments(); +listTaskCommentsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listTaskComments().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTaskCommentById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getTaskCommentById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getTaskCommentById( + id: id, +); +getTaskCommentByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getTaskCommentById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTaskCommentsByTaskId +#### Required Arguments +```dart +String taskId = ...; +ExampleConnector.instance.getTaskCommentsByTaskId( + taskId: taskId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getTaskCommentsByTaskId( + taskId: taskId, +); +getTaskCommentsByTaskIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String taskId = ...; + +final ref = ExampleConnector.instance.getTaskCommentsByTaskId( + taskId: taskId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listTeamHubs +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listTeamHubs().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listTeamHubs, we created `listTeamHubsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListTeamHubsVariablesBuilder { + ... + + ListTeamHubsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListTeamHubsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listTeamHubs() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listTeamHubs(); +listTeamHubsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listTeamHubs().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTeamHubById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getTeamHubById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getTeamHubById( + id: id, +); +getTeamHubByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getTeamHubById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTeamHubsByTeamId +#### Required Arguments +```dart +String teamId = ...; +ExampleConnector.instance.getTeamHubsByTeamId( + teamId: teamId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getTeamHubsByTeamId, we created `getTeamHubsByTeamIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetTeamHubsByTeamIdVariablesBuilder { + ... + GetTeamHubsByTeamIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetTeamHubsByTeamIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getTeamHubsByTeamId( + teamId: teamId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getTeamHubsByTeamId( + teamId: teamId, +); +getTeamHubsByTeamIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String teamId = ...; + +final ref = ExampleConnector.instance.getTeamHubsByTeamId( + teamId: teamId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listTeamHubsByOwnerId +#### Required Arguments +```dart +String ownerId = ...; +ExampleConnector.instance.listTeamHubsByOwnerId( + ownerId: ownerId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listTeamHubsByOwnerId, we created `listTeamHubsByOwnerIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListTeamHubsByOwnerIdVariablesBuilder { + ... + ListTeamHubsByOwnerIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListTeamHubsByOwnerIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listTeamHubsByOwnerId( + ownerId: ownerId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listTeamHubsByOwnerId( + ownerId: ownerId, +); +listTeamHubsByOwnerIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String ownerId = ...; + +final ref = ExampleConnector.instance.listTeamHubsByOwnerId( + ownerId: ownerId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listBenefitsData +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listBenefitsData().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listBenefitsData, we created `listBenefitsDataBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListBenefitsDataVariablesBuilder { + ... + + ListBenefitsDataVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListBenefitsDataVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listBenefitsData() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listBenefitsData(); +listBenefitsDataData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listBenefitsData().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getBenefitsDataByKey +#### Required Arguments +```dart +String staffId = ...; +String vendorBenefitPlanId = ...; +ExampleConnector.instance.getBenefitsDataByKey( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getBenefitsDataByKey( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +); +getBenefitsDataByKeyData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +String vendorBenefitPlanId = ...; + +final ref = ExampleConnector.instance.getBenefitsDataByKey( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listBenefitsDataByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.listBenefitsDataByStaffId( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listBenefitsDataByStaffId, we created `listBenefitsDataByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListBenefitsDataByStaffIdVariablesBuilder { + ... + ListBenefitsDataByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListBenefitsDataByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listBenefitsDataByStaffId( + staffId: staffId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listBenefitsDataByStaffId( + staffId: staffId, +); +listBenefitsDataByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.listBenefitsDataByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listBenefitsDataByVendorBenefitPlanId +#### Required Arguments +```dart +String vendorBenefitPlanId = ...; +ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( + vendorBenefitPlanId: vendorBenefitPlanId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listBenefitsDataByVendorBenefitPlanId, we created `listBenefitsDataByVendorBenefitPlanIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder { + ... + ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( + vendorBenefitPlanId: vendorBenefitPlanId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( + vendorBenefitPlanId: vendorBenefitPlanId, +); +listBenefitsDataByVendorBenefitPlanIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorBenefitPlanId = ...; + +final ref = ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanId( + vendorBenefitPlanId: vendorBenefitPlanId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listBenefitsDataByVendorBenefitPlanIds +#### Required Arguments +```dart +String vendorBenefitPlanIds = ...; +ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( + vendorBenefitPlanIds: vendorBenefitPlanIds, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listBenefitsDataByVendorBenefitPlanIds, we created `listBenefitsDataByVendorBenefitPlanIdsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder { + ... + ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( + vendorBenefitPlanIds: vendorBenefitPlanIds, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( + vendorBenefitPlanIds: vendorBenefitPlanIds, +); +listBenefitsDataByVendorBenefitPlanIdsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorBenefitPlanIds = ...; + +final ref = ExampleConnector.instance.listBenefitsDataByVendorBenefitPlanIds( + vendorBenefitPlanIds: vendorBenefitPlanIds, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listShifts +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listShifts().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listShifts, we created `listShiftsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListShiftsVariablesBuilder { + ... + + ListShiftsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListShiftsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listShifts() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listShifts(); +listShiftsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listShifts().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getShiftById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getShiftById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getShiftById( + id: id, +); +getShiftByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getShiftById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterShifts +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterShifts().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterShifts, we created `filterShiftsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterShiftsVariablesBuilder { + ... + + FilterShiftsVariablesBuilder status(ShiftStatus? t) { + _status.value = t; + return this; + } + FilterShiftsVariablesBuilder orderId(String? t) { + _orderId.value = t; + return this; + } + FilterShiftsVariablesBuilder dateFrom(Timestamp? t) { + _dateFrom.value = t; + return this; + } + FilterShiftsVariablesBuilder dateTo(Timestamp? t) { + _dateTo.value = t; + return this; + } + FilterShiftsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + FilterShiftsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterShifts() +.status(status) +.orderId(orderId) +.dateFrom(dateFrom) +.dateTo(dateTo) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterShifts(); +filterShiftsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterShifts().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getShiftsByBusinessId +#### Required Arguments +```dart +String businessId = ...; +ExampleConnector.instance.getShiftsByBusinessId( + businessId: businessId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getShiftsByBusinessId, we created `getShiftsByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetShiftsByBusinessIdVariablesBuilder { + ... + GetShiftsByBusinessIdVariablesBuilder dateFrom(Timestamp? t) { + _dateFrom.value = t; + return this; + } + GetShiftsByBusinessIdVariablesBuilder dateTo(Timestamp? t) { + _dateTo.value = t; + return this; + } + GetShiftsByBusinessIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetShiftsByBusinessIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getShiftsByBusinessId( + businessId: businessId, +) +.dateFrom(dateFrom) +.dateTo(dateTo) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getShiftsByBusinessId( + businessId: businessId, +); +getShiftsByBusinessIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessId = ...; + +final ref = ExampleConnector.instance.getShiftsByBusinessId( + businessId: businessId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getShiftsByVendorId +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.getShiftsByVendorId( + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getShiftsByVendorId, we created `getShiftsByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetShiftsByVendorIdVariablesBuilder { + ... + GetShiftsByVendorIdVariablesBuilder dateFrom(Timestamp? t) { + _dateFrom.value = t; + return this; + } + GetShiftsByVendorIdVariablesBuilder dateTo(Timestamp? t) { + _dateTo.value = t; + return this; + } + GetShiftsByVendorIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetShiftsByVendorIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getShiftsByVendorId( + vendorId: vendorId, +) +.dateFrom(dateFrom) +.dateTo(dateTo) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getShiftsByVendorId( + vendorId: vendorId, +); +getShiftsByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; + +final ref = ExampleConnector.instance.getShiftsByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + ### listTeamHudDepartments #### Required Arguments ```dart @@ -9160,6 +9149,96 @@ ref.subscribe(...); ``` +### listVendorRates +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listVendorRates().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listVendorRates(); +listVendorRatesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listVendorRates().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getVendorRateById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getVendorRateById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getVendorRateById( + id: id, +); +getVendorRateByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getVendorRateById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + ### listFaqDatas #### Required Arguments ```dart @@ -9308,6 +9387,1521 @@ ref.subscribe(...); ``` +### listLevels +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listLevels().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listLevels(); +listLevelsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listLevels().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getLevelById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getLevelById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getLevelById( + id: id, +); +getLevelByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getLevelById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterLevels +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterLevels().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterLevels, we created `filterLevelsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterLevelsVariablesBuilder { + ... + + FilterLevelsVariablesBuilder name(String? t) { + _name.value = t; + return this; + } + FilterLevelsVariablesBuilder xpRequired(int? t) { + _xpRequired.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterLevels() +.name(name) +.xpRequired(xpRequired) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterLevels(); +filterLevelsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterLevels().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listCertificates +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listCertificates().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listCertificates(); +listCertificatesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listCertificates().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getCertificateById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getCertificateById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getCertificateById( + id: id, +); +getCertificateByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getCertificateById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listCertificatesByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.listCertificatesByStaffId( + staffId: staffId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listCertificatesByStaffId( + staffId: staffId, +); +listCertificatesByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.listCertificatesByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listTaxForms +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listTaxForms().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listTaxForms, we created `listTaxFormsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListTaxFormsVariablesBuilder { + ... + + ListTaxFormsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListTaxFormsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listTaxForms() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listTaxForms(); +listTaxFormsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listTaxForms().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTaxFormById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getTaxFormById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getTaxFormById( + id: id, +); +getTaxFormByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getTaxFormById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTaxFormsByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.getTaxFormsByStaffId( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getTaxFormsByStaffId, we created `getTaxFormsByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetTaxFormsByStaffIdVariablesBuilder { + ... + GetTaxFormsByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetTaxFormsByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getTaxFormsByStaffId( + staffId: staffId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getTaxFormsByStaffId( + staffId: staffId, +); +getTaxFormsByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.getTaxFormsByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listTaxFormsWhere +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listTaxFormsWhere().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listTaxFormsWhere, we created `listTaxFormsWhereBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListTaxFormsWhereVariablesBuilder { + ... + + ListTaxFormsWhereVariablesBuilder formType(TaxFormType? t) { + _formType.value = t; + return this; + } + ListTaxFormsWhereVariablesBuilder status(TaxFormStatus? t) { + _status.value = t; + return this; + } + ListTaxFormsWhereVariablesBuilder staffId(String? t) { + _staffId.value = t; + return this; + } + ListTaxFormsWhereVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListTaxFormsWhereVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listTaxFormsWhere() +.formType(formType) +.status(status) +.staffId(staffId) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listTaxFormsWhere(); +listTaxFormsWhereData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listTaxFormsWhere().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaff +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listStaff().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaff(); +listStaffData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listStaff().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getStaffById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getStaffById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getStaffById( + id: id, +); +getStaffByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getStaffById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getStaffByUserId +#### Required Arguments +```dart +String userId = ...; +ExampleConnector.instance.getStaffByUserId( + userId: userId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getStaffByUserId( + userId: userId, +); +getStaffByUserIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String userId = ...; + +final ref = ExampleConnector.instance.getStaffByUserId( + userId: userId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterStaff +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterStaff().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterStaff, we created `filterStaffBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterStaffVariablesBuilder { + ... + + FilterStaffVariablesBuilder ownerId(String? t) { + _ownerId.value = t; + return this; + } + FilterStaffVariablesBuilder fullName(String? t) { + _fullName.value = t; + return this; + } + FilterStaffVariablesBuilder level(String? t) { + _level.value = t; + return this; + } + FilterStaffVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterStaff() +.ownerId(ownerId) +.fullName(fullName) +.level(level) +.email(email) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterStaff(); +filterStaffData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterStaff().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getStaffCourseById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getStaffCourseById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getStaffCourseById( + id: id, +); +getStaffCourseByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getStaffCourseById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffCoursesByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.listStaffCoursesByStaffId( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffCoursesByStaffId, we created `listStaffCoursesByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffCoursesByStaffIdVariablesBuilder { + ... + ListStaffCoursesByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffCoursesByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffCoursesByStaffId( + staffId: staffId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffCoursesByStaffId( + staffId: staffId, +); +listStaffCoursesByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.listStaffCoursesByStaffId( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffCoursesByCourseId +#### Required Arguments +```dart +String courseId = ...; +ExampleConnector.instance.listStaffCoursesByCourseId( + courseId: courseId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffCoursesByCourseId, we created `listStaffCoursesByCourseIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffCoursesByCourseIdVariablesBuilder { + ... + ListStaffCoursesByCourseIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffCoursesByCourseIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffCoursesByCourseId( + courseId: courseId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffCoursesByCourseId( + courseId: courseId, +); +listStaffCoursesByCourseIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String courseId = ...; + +final ref = ExampleConnector.instance.listStaffCoursesByCourseId( + courseId: courseId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getStaffCourseByStaffAndCourse +#### Required Arguments +```dart +String staffId = ...; +String courseId = ...; +ExampleConnector.instance.getStaffCourseByStaffAndCourse( + staffId: staffId, + courseId: courseId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getStaffCourseByStaffAndCourse( + staffId: staffId, + courseId: courseId, +); +getStaffCourseByStaffAndCourseData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +String courseId = ...; + +final ref = ExampleConnector.instance.getStaffCourseByStaffAndCourse( + staffId: staffId, + courseId: courseId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listActivityLogs +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listActivityLogs().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listActivityLogs, we created `listActivityLogsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListActivityLogsVariablesBuilder { + ... + + ListActivityLogsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListActivityLogsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listActivityLogs() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listActivityLogs(); +listActivityLogsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listActivityLogs().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getActivityLogById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getActivityLogById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getActivityLogById( + id: id, +); +getActivityLogByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getActivityLogById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listActivityLogsByUserId +#### Required Arguments +```dart +String userId = ...; +ExampleConnector.instance.listActivityLogsByUserId( + userId: userId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listActivityLogsByUserId, we created `listActivityLogsByUserIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListActivityLogsByUserIdVariablesBuilder { + ... + ListActivityLogsByUserIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListActivityLogsByUserIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listActivityLogsByUserId( + userId: userId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listActivityLogsByUserId( + userId: userId, +); +listActivityLogsByUserIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String userId = ...; + +final ref = ExampleConnector.instance.listActivityLogsByUserId( + userId: userId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listUnreadActivityLogsByUserId +#### Required Arguments +```dart +String userId = ...; +ExampleConnector.instance.listUnreadActivityLogsByUserId( + userId: userId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listUnreadActivityLogsByUserId, we created `listUnreadActivityLogsByUserIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListUnreadActivityLogsByUserIdVariablesBuilder { + ... + ListUnreadActivityLogsByUserIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListUnreadActivityLogsByUserIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listUnreadActivityLogsByUserId( + userId: userId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listUnreadActivityLogsByUserId( + userId: userId, +); +listUnreadActivityLogsByUserIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String userId = ...; + +final ref = ExampleConnector.instance.listUnreadActivityLogsByUserId( + userId: userId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterActivityLogs +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterActivityLogs().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterActivityLogs, we created `filterActivityLogsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterActivityLogsVariablesBuilder { + ... + + FilterActivityLogsVariablesBuilder userId(String? t) { + _userId.value = t; + return this; + } + FilterActivityLogsVariablesBuilder dateFrom(Timestamp? t) { + _dateFrom.value = t; + return this; + } + FilterActivityLogsVariablesBuilder dateTo(Timestamp? t) { + _dateTo.value = t; + return this; + } + FilterActivityLogsVariablesBuilder isRead(bool? t) { + _isRead.value = t; + return this; + } + FilterActivityLogsVariablesBuilder activityType(ActivityType? t) { + _activityType.value = t; + return this; + } + FilterActivityLogsVariablesBuilder iconType(ActivityIconType? t) { + _iconType.value = t; + return this; + } + FilterActivityLogsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + FilterActivityLogsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterActivityLogs() +.userId(userId) +.dateFrom(dateFrom) +.dateTo(dateTo) +.isRead(isRead) +.activityType(activityType) +.iconType(iconType) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterActivityLogs(); +filterActivityLogsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterActivityLogs().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listCategories +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listCategories().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listCategories(); +listCategoriesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listCategories().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getCategoryById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getCategoryById( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getCategoryById( + id: id, +); +getCategoryByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.getCategoryById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterCategories +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterCategories().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterCategories, we created `filterCategoriesBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterCategoriesVariablesBuilder { + ... + + FilterCategoriesVariablesBuilder categoryId(String? t) { + _categoryId.value = t; + return this; + } + FilterCategoriesVariablesBuilder label(String? t) { + _label.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterCategories() +.categoryId(categoryId) +.label(label) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.filterCategories(); +filterCategoriesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.filterCategories().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + ### getShiftRoleById #### Required Arguments ```dart @@ -10081,39 +11675,17 @@ ref.subscribe(...); ``` -### listVendorBenefitPlans +### listApplications #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listVendorBenefitPlans().execute(); +ExampleConnector.instance.listApplications().execute(); ``` -#### Optional Arguments -We return a builder for each query. For listVendorBenefitPlans, we created `listVendorBenefitPlansBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListVendorBenefitPlansVariablesBuilder { - ... - - ListVendorBenefitPlansVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListVendorBenefitPlansVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - ... -} -ExampleConnector.instance.listVendorBenefitPlans() -.offset(offset) -.limit(limit) -.execute(); -``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10128,8 +11700,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listVendorBenefitPlans(); -listVendorBenefitPlansData data = result.data; +final result = await ExampleConnector.instance.listApplications(); +listApplicationsData data = result.data; final ref = result.ref; ``` @@ -10137,18 +11709,18 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.listVendorBenefitPlans().ref(); +final ref = ExampleConnector.instance.listApplications().ref(); ref.execute(); ref.subscribe(...); ``` -### getVendorBenefitPlanById +### getApplicationById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getVendorBenefitPlanById( +ExampleConnector.instance.getApplicationById( id: id, ).execute(); ``` @@ -10156,7 +11728,7 @@ ExampleConnector.instance.getVendorBenefitPlanById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10171,10 +11743,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getVendorBenefitPlanById( +final result = await ExampleConnector.instance.getApplicationById( id: id, ); -getVendorBenefitPlanByIdData data = result.data; +getApplicationByIdData data = result.data; final ref = result.ref; ``` @@ -10184,7 +11756,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getVendorBenefitPlanById( +final ref = ExampleConnector.instance.getApplicationById( id: id, ).ref(); ref.execute(); @@ -10193,42 +11765,19 @@ ref.subscribe(...); ``` -### listVendorBenefitPlansByVendorId +### getApplicationsByShiftId #### Required Arguments ```dart -String vendorId = ...; -ExampleConnector.instance.listVendorBenefitPlansByVendorId( - vendorId: vendorId, +String shiftId = ...; +ExampleConnector.instance.getApplicationsByShiftId( + shiftId: shiftId, ).execute(); ``` -#### Optional Arguments -We return a builder for each query. For listVendorBenefitPlansByVendorId, we created `listVendorBenefitPlansByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListVendorBenefitPlansByVendorIdVariablesBuilder { - ... - ListVendorBenefitPlansByVendorIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListVendorBenefitPlansByVendorIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - ... -} -ExampleConnector.instance.listVendorBenefitPlansByVendorId( - vendorId: vendorId, -) -.offset(offset) -.limit(limit) -.execute(); -``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10243,10 +11792,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listVendorBenefitPlansByVendorId( - vendorId: vendorId, +final result = await ExampleConnector.instance.getApplicationsByShiftId( + shiftId: shiftId, ); -listVendorBenefitPlansByVendorIdData data = result.data; +getApplicationsByShiftIdData data = result.data; final ref = result.ref; ``` @@ -10254,10 +11803,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String vendorId = ...; +String shiftId = ...; -final ref = ExampleConnector.instance.listVendorBenefitPlansByVendorId( - vendorId: vendorId, +final ref = ExampleConnector.instance.getApplicationsByShiftId( + shiftId: shiftId, ).ref(); ref.execute(); @@ -10265,34 +11814,37 @@ ref.subscribe(...); ``` -### listActiveVendorBenefitPlansByVendorId +### getApplicationsByShiftIdAndStatus #### Required Arguments ```dart -String vendorId = ...; -ExampleConnector.instance.listActiveVendorBenefitPlansByVendorId( - vendorId: vendorId, +String shiftId = ...; +ApplicationStatus status = ...; +ExampleConnector.instance.getApplicationsByShiftIdAndStatus( + shiftId: shiftId, + status: status, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For listActiveVendorBenefitPlansByVendorId, we created `listActiveVendorBenefitPlansByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For getApplicationsByShiftIdAndStatus, we created `getApplicationsByShiftIdAndStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListActiveVendorBenefitPlansByVendorIdVariablesBuilder { +class GetApplicationsByShiftIdAndStatusVariablesBuilder { ... - ListActiveVendorBenefitPlansByVendorIdVariablesBuilder offset(int? t) { + GetApplicationsByShiftIdAndStatusVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListActiveVendorBenefitPlansByVendorIdVariablesBuilder limit(int? t) { + GetApplicationsByShiftIdAndStatusVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listActiveVendorBenefitPlansByVendorId( - vendorId: vendorId, +ExampleConnector.instance.getApplicationsByShiftIdAndStatus( + shiftId: shiftId, + status: status, ) .offset(offset) .limit(limit) @@ -10300,7 +11852,7 @@ ExampleConnector.instance.listActiveVendorBenefitPlansByVendorId( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10315,10 +11867,11 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listActiveVendorBenefitPlansByVendorId( - vendorId: vendorId, +final result = await ExampleConnector.instance.getApplicationsByShiftIdAndStatus( + shiftId: shiftId, + status: status, ); -listActiveVendorBenefitPlansByVendorIdData data = result.data; +getApplicationsByShiftIdAndStatusData data = result.data; final ref = result.ref; ``` @@ -10326,10 +11879,12 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String vendorId = ...; +String shiftId = ...; +ApplicationStatus status = ...; -final ref = ExampleConnector.instance.listActiveVendorBenefitPlansByVendorId( - vendorId: vendorId, +final ref = ExampleConnector.instance.getApplicationsByShiftIdAndStatus( + shiftId: shiftId, + status: status, ).ref(); ref.execute(); @@ -10337,54 +11892,42 @@ ref.subscribe(...); ``` -### filterVendorBenefitPlans +### getApplicationsByStaffId #### Required Arguments ```dart -// No required arguments -ExampleConnector.instance.filterVendorBenefitPlans().execute(); +String staffId = ...; +ExampleConnector.instance.getApplicationsByStaffId( + staffId: staffId, +).execute(); ``` #### Optional Arguments -We return a builder for each query. For filterVendorBenefitPlans, we created `filterVendorBenefitPlansBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For getApplicationsByStaffId, we created `getApplicationsByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class FilterVendorBenefitPlansVariablesBuilder { +class GetApplicationsByStaffIdVariablesBuilder { ... - - FilterVendorBenefitPlansVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } - FilterVendorBenefitPlansVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - FilterVendorBenefitPlansVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - FilterVendorBenefitPlansVariablesBuilder offset(int? t) { + GetApplicationsByStaffIdVariablesBuilder offset(int? t) { _offset.value = t; return this; } - FilterVendorBenefitPlansVariablesBuilder limit(int? t) { + GetApplicationsByStaffIdVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.filterVendorBenefitPlans() -.vendorId(vendorId) -.title(title) -.isActive(isActive) +ExampleConnector.instance.getApplicationsByStaffId( + staffId: staffId, +) .offset(offset) .limit(limit) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10399,8 +11942,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.filterVendorBenefitPlans(); -filterVendorBenefitPlansData data = result.data; +final result = await ExampleConnector.instance.getApplicationsByStaffId( + staffId: staffId, +); +getApplicationsByStaffIdData data = result.data; final ref = result.ref; ``` @@ -10408,46 +11953,56 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.filterVendorBenefitPlans().ref(); +String staffId = ...; + +final ref = ExampleConnector.instance.getApplicationsByStaffId( + staffId: staffId, +).ref(); ref.execute(); ref.subscribe(...); ``` -### listConversations +### listAcceptedApplicationsByShiftRoleKey #### Required Arguments ```dart -// No required arguments -ExampleConnector.instance.listConversations().execute(); +String shiftId = ...; +String roleId = ...; +ExampleConnector.instance.listAcceptedApplicationsByShiftRoleKey( + shiftId: shiftId, + roleId: roleId, +).execute(); ``` #### Optional Arguments -We return a builder for each query. For listConversations, we created `listConversationsBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listAcceptedApplicationsByShiftRoleKey, we created `listAcceptedApplicationsByShiftRoleKeyBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListConversationsVariablesBuilder { +class ListAcceptedApplicationsByShiftRoleKeyVariablesBuilder { ... - - ListConversationsVariablesBuilder offset(int? t) { + ListAcceptedApplicationsByShiftRoleKeyVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListConversationsVariablesBuilder limit(int? t) { + ListAcceptedApplicationsByShiftRoleKeyVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listConversations() +ExampleConnector.instance.listAcceptedApplicationsByShiftRoleKey( + shiftId: shiftId, + roleId: roleId, +) .offset(offset) .limit(limit) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10462,8 +12017,11 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listConversations(); -listConversationsData data = result.data; +final result = await ExampleConnector.instance.listAcceptedApplicationsByShiftRoleKey( + shiftId: shiftId, + roleId: roleId, +); +listAcceptedApplicationsByShiftRoleKeyData data = result.data; final ref = result.ref; ``` @@ -10471,18 +12029,255 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.listConversations().ref(); +String shiftId = ...; +String roleId = ...; + +final ref = ExampleConnector.instance.listAcceptedApplicationsByShiftRoleKey( + shiftId: shiftId, + roleId: roleId, +).ref(); ref.execute(); ref.subscribe(...); ``` -### getConversationById +### listAcceptedApplicationsByBusinessForDay +#### Required Arguments +```dart +String businessId = ...; +Timestamp dayStart = ...; +Timestamp dayEnd = ...; +ExampleConnector.instance.listAcceptedApplicationsByBusinessForDay( + businessId: businessId, + dayStart: dayStart, + dayEnd: dayEnd, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listAcceptedApplicationsByBusinessForDay, we created `listAcceptedApplicationsByBusinessForDayBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListAcceptedApplicationsByBusinessForDayVariablesBuilder { + ... + ListAcceptedApplicationsByBusinessForDayVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListAcceptedApplicationsByBusinessForDayVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listAcceptedApplicationsByBusinessForDay( + businessId: businessId, + dayStart: dayStart, + dayEnd: dayEnd, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listAcceptedApplicationsByBusinessForDay( + businessId: businessId, + dayStart: dayStart, + dayEnd: dayEnd, +); +listAcceptedApplicationsByBusinessForDayData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessId = ...; +Timestamp dayStart = ...; +Timestamp dayEnd = ...; + +final ref = ExampleConnector.instance.listAcceptedApplicationsByBusinessForDay( + businessId: businessId, + dayStart: dayStart, + dayEnd: dayEnd, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffsApplicationsByBusinessForDay +#### Required Arguments +```dart +String businessId = ...; +Timestamp dayStart = ...; +Timestamp dayEnd = ...; +ExampleConnector.instance.listStaffsApplicationsByBusinessForDay( + businessId: businessId, + dayStart: dayStart, + dayEnd: dayEnd, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listStaffsApplicationsByBusinessForDay, we created `listStaffsApplicationsByBusinessForDayBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffsApplicationsByBusinessForDayVariablesBuilder { + ... + ListStaffsApplicationsByBusinessForDayVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffsApplicationsByBusinessForDayVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listStaffsApplicationsByBusinessForDay( + businessId: businessId, + dayStart: dayStart, + dayEnd: dayEnd, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listStaffsApplicationsByBusinessForDay( + businessId: businessId, + dayStart: dayStart, + dayEnd: dayEnd, +); +listStaffsApplicationsByBusinessForDayData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessId = ...; +Timestamp dayStart = ...; +Timestamp dayEnd = ...; + +final ref = ExampleConnector.instance.listStaffsApplicationsByBusinessForDay( + businessId: businessId, + dayStart: dayStart, + dayEnd: dayEnd, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listAssignments +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listAssignments().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listAssignments, we created `listAssignmentsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListAssignmentsVariablesBuilder { + ... + + ListAssignmentsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListAssignmentsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listAssignments() +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listAssignments(); +listAssignmentsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +final ref = ExampleConnector.instance.listAssignments().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getAssignmentById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getConversationById( +ExampleConnector.instance.getAssignmentById( id: id, ).execute(); ``` @@ -10490,7 +12285,7 @@ ExampleConnector.instance.getConversationById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10505,10 +12300,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getConversationById( +final result = await ExampleConnector.instance.getAssignmentById( id: id, ); -getConversationByIdData data = result.data; +getAssignmentByIdData data = result.data; final ref = result.ref; ``` @@ -10518,7 +12313,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getConversationById( +final ref = ExampleConnector.instance.getAssignmentById( id: id, ).ref(); ref.execute(); @@ -10527,34 +12322,34 @@ ref.subscribe(...); ``` -### listConversationsByType +### listAssignmentsByWorkforceId #### Required Arguments ```dart -ConversationType conversationType = ...; -ExampleConnector.instance.listConversationsByType( - conversationType: conversationType, +String workforceId = ...; +ExampleConnector.instance.listAssignmentsByWorkforceId( + workforceId: workforceId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For listConversationsByType, we created `listConversationsByTypeBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listAssignmentsByWorkforceId, we created `listAssignmentsByWorkforceIdBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListConversationsByTypeVariablesBuilder { +class ListAssignmentsByWorkforceIdVariablesBuilder { ... - ListConversationsByTypeVariablesBuilder offset(int? t) { + ListAssignmentsByWorkforceIdVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListConversationsByTypeVariablesBuilder limit(int? t) { + ListAssignmentsByWorkforceIdVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listConversationsByType( - conversationType: conversationType, +ExampleConnector.instance.listAssignmentsByWorkforceId( + workforceId: workforceId, ) .offset(offset) .limit(limit) @@ -10562,7 +12357,7 @@ ExampleConnector.instance.listConversationsByType( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10577,10 +12372,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listConversationsByType( - conversationType: conversationType, +final result = await ExampleConnector.instance.listAssignmentsByWorkforceId( + workforceId: workforceId, ); -listConversationsByTypeData data = result.data; +listAssignmentsByWorkforceIdData data = result.data; final ref = result.ref; ``` @@ -10588,10 +12383,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -ConversationType conversationType = ...; +String workforceId = ...; -final ref = ExampleConnector.instance.listConversationsByType( - conversationType: conversationType, +final ref = ExampleConnector.instance.listAssignmentsByWorkforceId( + workforceId: workforceId, ).ref(); ref.execute(); @@ -10599,34 +12394,34 @@ ref.subscribe(...); ``` -### listConversationsByStatus +### listAssignmentsByWorkforceIds #### Required Arguments ```dart -ConversationStatus status = ...; -ExampleConnector.instance.listConversationsByStatus( - status: status, +String workforceIds = ...; +ExampleConnector.instance.listAssignmentsByWorkforceIds( + workforceIds: workforceIds, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For listConversationsByStatus, we created `listConversationsByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listAssignmentsByWorkforceIds, we created `listAssignmentsByWorkforceIdsBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListConversationsByStatusVariablesBuilder { +class ListAssignmentsByWorkforceIdsVariablesBuilder { ... - ListConversationsByStatusVariablesBuilder offset(int? t) { + ListAssignmentsByWorkforceIdsVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListConversationsByStatusVariablesBuilder limit(int? t) { + ListAssignmentsByWorkforceIdsVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listConversationsByStatus( - status: status, +ExampleConnector.instance.listAssignmentsByWorkforceIds( + workforceIds: workforceIds, ) .offset(offset) .limit(limit) @@ -10634,7 +12429,7 @@ ExampleConnector.instance.listConversationsByStatus( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10649,10 +12444,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listConversationsByStatus( - status: status, +final result = await ExampleConnector.instance.listAssignmentsByWorkforceIds( + workforceIds: workforceIds, ); -listConversationsByStatusData data = result.data; +listAssignmentsByWorkforceIdsData data = result.data; final ref = result.ref; ``` @@ -10660,10 +12455,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -ConversationStatus status = ...; +String workforceIds = ...; -final ref = ExampleConnector.instance.listConversationsByStatus( - status: status, +final ref = ExampleConnector.instance.listAssignmentsByWorkforceIds( + workforceIds: workforceIds, ).ref(); ref.execute(); @@ -10671,64 +12466,128 @@ ref.subscribe(...); ``` -### filterConversations +### listAssignmentsByShiftRole #### Required Arguments ```dart -// No required arguments -ExampleConnector.instance.filterConversations().execute(); +String shiftId = ...; +String roleId = ...; +ExampleConnector.instance.listAssignmentsByShiftRole( + shiftId: shiftId, + roleId: roleId, +).execute(); ``` #### Optional Arguments -We return a builder for each query. For filterConversations, we created `filterConversationsBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listAssignmentsByShiftRole, we created `listAssignmentsByShiftRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class FilterConversationsVariablesBuilder { +class ListAssignmentsByShiftRoleVariablesBuilder { ... - - FilterConversationsVariablesBuilder status(ConversationStatus? t) { + ListAssignmentsByShiftRoleVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListAssignmentsByShiftRoleVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listAssignmentsByShiftRole( + shiftId: shiftId, + roleId: roleId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listAssignmentsByShiftRole( + shiftId: shiftId, + roleId: roleId, +); +listAssignmentsByShiftRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String shiftId = ...; +String roleId = ...; + +final ref = ExampleConnector.instance.listAssignmentsByShiftRole( + shiftId: shiftId, + roleId: roleId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterAssignments +#### Required Arguments +```dart +String shiftIds = ...; +String roleIds = ...; +ExampleConnector.instance.filterAssignments( + shiftIds: shiftIds, + roleIds: roleIds, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterAssignments, we created `filterAssignmentsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterAssignmentsVariablesBuilder { + ... + FilterAssignmentsVariablesBuilder status(AssignmentStatus? t) { _status.value = t; return this; } - FilterConversationsVariablesBuilder conversationType(ConversationType? t) { - _conversationType.value = t; - return this; - } - FilterConversationsVariablesBuilder isGroup(bool? t) { - _isGroup.value = t; - return this; - } - FilterConversationsVariablesBuilder lastMessageAfter(Timestamp? t) { - _lastMessageAfter.value = t; - return this; - } - FilterConversationsVariablesBuilder lastMessageBefore(Timestamp? t) { - _lastMessageBefore.value = t; - return this; - } - FilterConversationsVariablesBuilder offset(int? t) { + FilterAssignmentsVariablesBuilder offset(int? t) { _offset.value = t; return this; } - FilterConversationsVariablesBuilder limit(int? t) { + FilterAssignmentsVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.filterConversations() +ExampleConnector.instance.filterAssignments( + shiftIds: shiftIds, + roleIds: roleIds, +) .status(status) -.conversationType(conversationType) -.isGroup(isGroup) -.lastMessageAfter(lastMessageAfter) -.lastMessageBefore(lastMessageBefore) .offset(offset) .limit(limit) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10743,8 +12602,11 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.filterConversations(); -filterConversationsData data = result.data; +final result = await ExampleConnector.instance.filterAssignments( + shiftIds: shiftIds, + roleIds: roleIds, +); +filterAssignmentsData data = result.data; final ref = result.ref; ``` @@ -10752,24 +12614,30 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.filterConversations().ref(); +String shiftIds = ...; +String roleIds = ...; + +final ref = ExampleConnector.instance.filterAssignments( + shiftIds: shiftIds, + roleIds: roleIds, +).ref(); ref.execute(); ref.subscribe(...); ``` -### listCustomRateCards +### listHubs #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listCustomRateCards().execute(); +ExampleConnector.instance.listHubs().execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10784,8 +12652,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listCustomRateCards(); -listCustomRateCardsData data = result.data; +final result = await ExampleConnector.instance.listHubs(); +listHubsData data = result.data; final ref = result.ref; ``` @@ -10793,18 +12661,18 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.listCustomRateCards().ref(); +final ref = ExampleConnector.instance.listHubs().ref(); ref.execute(); ref.subscribe(...); ``` -### getCustomRateCardById +### getHubById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getCustomRateCardById( +ExampleConnector.instance.getHubById( id: id, ).execute(); ``` @@ -10812,7 +12680,7 @@ ExampleConnector.instance.getCustomRateCardById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -10827,10 +12695,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getCustomRateCardById( +final result = await ExampleConnector.instance.getHubById( id: id, ); -getCustomRateCardByIdData data = result.data; +getHubByIdData data = result.data; final ref = result.ref; ``` @@ -10840,7 +12708,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getCustomRateCardById( +final ref = ExampleConnector.instance.getHubById( id: id, ).ref(); ref.execute(); @@ -10849,713 +12717,93 @@ ref.subscribe(...); ``` -### listUserConversations +### getHubsByOwnerId +#### Required Arguments +```dart +String ownerId = ...; +ExampleConnector.instance.getHubsByOwnerId( + ownerId: ownerId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.getHubsByOwnerId( + ownerId: ownerId, +); +getHubsByOwnerIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String ownerId = ...; + +final ref = ExampleConnector.instance.getHubsByOwnerId( + ownerId: ownerId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterHubs #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listUserConversations().execute(); +ExampleConnector.instance.filterHubs().execute(); ``` #### Optional Arguments -We return a builder for each query. For listUserConversations, we created `listUserConversationsBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For filterHubs, we created `filterHubsBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListUserConversationsVariablesBuilder { +class FilterHubsVariablesBuilder { ... - ListUserConversationsVariablesBuilder offset(int? t) { - _offset.value = t; + FilterHubsVariablesBuilder ownerId(String? t) { + _ownerId.value = t; return this; } - ListUserConversationsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listUserConversations() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listUserConversations(); -listUserConversationsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listUserConversations().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getUserConversationByKey -#### Required Arguments -```dart -String conversationId = ...; -String userId = ...; -ExampleConnector.instance.getUserConversationByKey( - conversationId: conversationId, - userId: userId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getUserConversationByKey( - conversationId: conversationId, - userId: userId, -); -getUserConversationByKeyData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String conversationId = ...; -String userId = ...; - -final ref = ExampleConnector.instance.getUserConversationByKey( - conversationId: conversationId, - userId: userId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listUserConversationsByUserId -#### Required Arguments -```dart -String userId = ...; -ExampleConnector.instance.listUserConversationsByUserId( - userId: userId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listUserConversationsByUserId, we created `listUserConversationsByUserIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListUserConversationsByUserIdVariablesBuilder { - ... - ListUserConversationsByUserIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListUserConversationsByUserIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listUserConversationsByUserId( - userId: userId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listUserConversationsByUserId( - userId: userId, -); -listUserConversationsByUserIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String userId = ...; - -final ref = ExampleConnector.instance.listUserConversationsByUserId( - userId: userId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listUnreadUserConversationsByUserId -#### Required Arguments -```dart -String userId = ...; -ExampleConnector.instance.listUnreadUserConversationsByUserId( - userId: userId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listUnreadUserConversationsByUserId, we created `listUnreadUserConversationsByUserIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListUnreadUserConversationsByUserIdVariablesBuilder { - ... - ListUnreadUserConversationsByUserIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListUnreadUserConversationsByUserIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listUnreadUserConversationsByUserId( - userId: userId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listUnreadUserConversationsByUserId( - userId: userId, -); -listUnreadUserConversationsByUserIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String userId = ...; - -final ref = ExampleConnector.instance.listUnreadUserConversationsByUserId( - userId: userId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listUserConversationsByConversationId -#### Required Arguments -```dart -String conversationId = ...; -ExampleConnector.instance.listUserConversationsByConversationId( - conversationId: conversationId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listUserConversationsByConversationId, we created `listUserConversationsByConversationIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListUserConversationsByConversationIdVariablesBuilder { - ... - ListUserConversationsByConversationIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListUserConversationsByConversationIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listUserConversationsByConversationId( - conversationId: conversationId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listUserConversationsByConversationId( - conversationId: conversationId, -); -listUserConversationsByConversationIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String conversationId = ...; - -final ref = ExampleConnector.instance.listUserConversationsByConversationId( - conversationId: conversationId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterUserConversations -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterUserConversations().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterUserConversations, we created `filterUserConversationsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterUserConversationsVariablesBuilder { - ... - - FilterUserConversationsVariablesBuilder userId(String? t) { - _userId.value = t; - return this; - } - FilterUserConversationsVariablesBuilder conversationId(String? t) { - _conversationId.value = t; - return this; - } - FilterUserConversationsVariablesBuilder unreadMin(int? t) { - _unreadMin.value = t; - return this; - } - FilterUserConversationsVariablesBuilder unreadMax(int? t) { - _unreadMax.value = t; - return this; - } - FilterUserConversationsVariablesBuilder lastReadAfter(Timestamp? t) { - _lastReadAfter.value = t; - return this; - } - FilterUserConversationsVariablesBuilder lastReadBefore(Timestamp? t) { - _lastReadBefore.value = t; - return this; - } - FilterUserConversationsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - FilterUserConversationsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterUserConversations() -.userId(userId) -.conversationId(conversationId) -.unreadMin(unreadMin) -.unreadMax(unreadMax) -.lastReadAfter(lastReadAfter) -.lastReadBefore(lastReadBefore) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterUserConversations(); -filterUserConversationsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterUserConversations().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listAttireOptions -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listAttireOptions().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listAttireOptions(); -listAttireOptionsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listAttireOptions().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getAttireOptionById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getAttireOptionById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getAttireOptionById( - id: id, -); -getAttireOptionByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getAttireOptionById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterAttireOptions -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterAttireOptions().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterAttireOptions, we created `filterAttireOptionsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterAttireOptionsVariablesBuilder { - ... - - FilterAttireOptionsVariablesBuilder itemId(String? t) { - _itemId.value = t; - return this; - } - FilterAttireOptionsVariablesBuilder isMandatory(bool? t) { - _isMandatory.value = t; - return this; - } - FilterAttireOptionsVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterAttireOptions() -.itemId(itemId) -.isMandatory(isMandatory) -.vendorId(vendorId) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterAttireOptions(); -filterAttireOptionsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterAttireOptions().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listLevels -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listLevels().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listLevels(); -listLevelsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listLevels().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getLevelById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getLevelById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getLevelById( - id: id, -); -getLevelByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getLevelById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterLevels -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterLevels().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterLevels, we created `filterLevelsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterLevelsVariablesBuilder { - ... - - FilterLevelsVariablesBuilder name(String? t) { + FilterHubsVariablesBuilder name(String? t) { _name.value = t; return this; } - FilterLevelsVariablesBuilder xpRequired(int? t) { - _xpRequired.value = t; + FilterHubsVariablesBuilder nfcTagId(String? t) { + _nfcTagId.value = t; return this; } ... } -ExampleConnector.instance.filterLevels() +ExampleConnector.instance.filterHubs() +.ownerId(ownerId) .name(name) -.xpRequired(xpRequired) +.nfcTagId(nfcTagId) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -11570,8 +12818,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.filterLevels(); -filterLevelsData data = result.data; +final result = await ExampleConnector.instance.filterHubs(); +filterHubsData data = result.data; final ref = result.ref; ``` @@ -11579,146 +12827,46 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.filterLevels().ref(); +final ref = ExampleConnector.instance.filterHubs().ref(); ref.execute(); ref.subscribe(...); ``` -### listUsers +### listInvoiceTemplates #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listUsers().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listUsers(); -listUsersData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listUsers().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getUserById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getUserById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getUserById( - id: id, -); -getUserByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getUserById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterUsers -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterUsers().execute(); +ExampleConnector.instance.listInvoiceTemplates().execute(); ``` #### Optional Arguments -We return a builder for each query. For filterUsers, we created `filterUsersBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listInvoiceTemplates, we created `listInvoiceTemplatesBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class FilterUsersVariablesBuilder { +class ListInvoiceTemplatesVariablesBuilder { ... - FilterUsersVariablesBuilder id(String? t) { - _id.value = t; + ListInvoiceTemplatesVariablesBuilder offset(int? t) { + _offset.value = t; return this; } - FilterUsersVariablesBuilder email(String? t) { - _email.value = t; - return this; - } - FilterUsersVariablesBuilder role(UserBaseRole? t) { - _role.value = t; - return this; - } - FilterUsersVariablesBuilder userRole(String? t) { - _userRole.value = t; + ListInvoiceTemplatesVariablesBuilder limit(int? t) { + _limit.value = t; return this; } ... } -ExampleConnector.instance.filterUsers() -.id(id) -.email(email) -.role(role) -.userRole(userRole) +ExampleConnector.instance.listInvoiceTemplates() +.offset(offset) +.limit(limit) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -11733,8 +12881,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.filterUsers(); -filterUsersData data = result.data; +final result = await ExampleConnector.instance.listInvoiceTemplates(); +listInvoiceTemplatesData data = result.data; final ref = result.ref; ``` @@ -11742,211 +12890,18 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.filterUsers().ref(); +final ref = ExampleConnector.instance.listInvoiceTemplates().ref(); ref.execute(); ref.subscribe(...); ``` -### getMyTasks -#### Required Arguments -```dart -String teamMemberId = ...; -ExampleConnector.instance.getMyTasks( - teamMemberId: teamMemberId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getMyTasks( - teamMemberId: teamMemberId, -); -getMyTasksData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String teamMemberId = ...; - -final ref = ExampleConnector.instance.getMyTasks( - teamMemberId: teamMemberId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getMemberTaskByIdKey -#### Required Arguments -```dart -String teamMemberId = ...; -String taskId = ...; -ExampleConnector.instance.getMemberTaskByIdKey( - teamMemberId: teamMemberId, - taskId: taskId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getMemberTaskByIdKey( - teamMemberId: teamMemberId, - taskId: taskId, -); -getMemberTaskByIdKeyData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String teamMemberId = ...; -String taskId = ...; - -final ref = ExampleConnector.instance.getMemberTaskByIdKey( - teamMemberId: teamMemberId, - taskId: taskId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getMemberTasksByTaskId -#### Required Arguments -```dart -String taskId = ...; -ExampleConnector.instance.getMemberTasksByTaskId( - taskId: taskId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getMemberTasksByTaskId( - taskId: taskId, -); -getMemberTasksByTaskIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String taskId = ...; - -final ref = ExampleConnector.instance.getMemberTasksByTaskId( - taskId: taskId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listMessages -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listMessages().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listMessages(); -listMessagesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listMessages().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getMessageById +### getInvoiceTemplateById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getMessageById( +ExampleConnector.instance.getInvoiceTemplateById( id: id, ).execute(); ``` @@ -11954,7 +12909,7 @@ ExampleConnector.instance.getMessageById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -11969,10 +12924,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getMessageById( +final result = await ExampleConnector.instance.getInvoiceTemplateById( id: id, ); -getMessageByIdData data = result.data; +getInvoiceTemplateByIdData data = result.data; final ref = result.ref; ``` @@ -11982,7 +12937,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getMessageById( +final ref = ExampleConnector.instance.getInvoiceTemplateById( id: id, ).ref(); ref.execute(); @@ -11991,1358 +12946,33 @@ ref.subscribe(...); ``` -### getMessagesByConversationId -#### Required Arguments -```dart -String conversationId = ...; -ExampleConnector.instance.getMessagesByConversationId( - conversationId: conversationId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getMessagesByConversationId( - conversationId: conversationId, -); -getMessagesByConversationIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String conversationId = ...; - -final ref = ExampleConnector.instance.getMessagesByConversationId( - conversationId: conversationId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listActivityLogs -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listActivityLogs().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listActivityLogs, we created `listActivityLogsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListActivityLogsVariablesBuilder { - ... - - ListActivityLogsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListActivityLogsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listActivityLogs() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listActivityLogs(); -listActivityLogsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listActivityLogs().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getActivityLogById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getActivityLogById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getActivityLogById( - id: id, -); -getActivityLogByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getActivityLogById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listActivityLogsByUserId -#### Required Arguments -```dart -String userId = ...; -ExampleConnector.instance.listActivityLogsByUserId( - userId: userId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listActivityLogsByUserId, we created `listActivityLogsByUserIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListActivityLogsByUserIdVariablesBuilder { - ... - ListActivityLogsByUserIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListActivityLogsByUserIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listActivityLogsByUserId( - userId: userId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listActivityLogsByUserId( - userId: userId, -); -listActivityLogsByUserIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String userId = ...; - -final ref = ExampleConnector.instance.listActivityLogsByUserId( - userId: userId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listUnreadActivityLogsByUserId -#### Required Arguments -```dart -String userId = ...; -ExampleConnector.instance.listUnreadActivityLogsByUserId( - userId: userId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listUnreadActivityLogsByUserId, we created `listUnreadActivityLogsByUserIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListUnreadActivityLogsByUserIdVariablesBuilder { - ... - ListUnreadActivityLogsByUserIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListUnreadActivityLogsByUserIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listUnreadActivityLogsByUserId( - userId: userId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listUnreadActivityLogsByUserId( - userId: userId, -); -listUnreadActivityLogsByUserIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String userId = ...; - -final ref = ExampleConnector.instance.listUnreadActivityLogsByUserId( - userId: userId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterActivityLogs -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterActivityLogs().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterActivityLogs, we created `filterActivityLogsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterActivityLogsVariablesBuilder { - ... - - FilterActivityLogsVariablesBuilder userId(String? t) { - _userId.value = t; - return this; - } - FilterActivityLogsVariablesBuilder dateFrom(Timestamp? t) { - _dateFrom.value = t; - return this; - } - FilterActivityLogsVariablesBuilder dateTo(Timestamp? t) { - _dateTo.value = t; - return this; - } - FilterActivityLogsVariablesBuilder isRead(bool? t) { - _isRead.value = t; - return this; - } - FilterActivityLogsVariablesBuilder activityType(ActivityType? t) { - _activityType.value = t; - return this; - } - FilterActivityLogsVariablesBuilder iconType(ActivityIconType? t) { - _iconType.value = t; - return this; - } - FilterActivityLogsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - FilterActivityLogsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterActivityLogs() -.userId(userId) -.dateFrom(dateFrom) -.dateTo(dateTo) -.isRead(isRead) -.activityType(activityType) -.iconType(iconType) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterActivityLogs(); -filterActivityLogsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterActivityLogs().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listEmergencyContacts -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listEmergencyContacts().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listEmergencyContacts(); -listEmergencyContactsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listEmergencyContacts().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getEmergencyContactById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getEmergencyContactById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getEmergencyContactById( - id: id, -); -getEmergencyContactByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getEmergencyContactById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getEmergencyContactsByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.getEmergencyContactsByStaffId( - staffId: staffId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getEmergencyContactsByStaffId( - staffId: staffId, -); -getEmergencyContactsByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.getEmergencyContactsByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getStaffDocumentByKey -#### Required Arguments -```dart -String staffId = ...; -String documentId = ...; -ExampleConnector.instance.getStaffDocumentByKey( - staffId: staffId, - documentId: documentId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getStaffDocumentByKey( - staffId: staffId, - documentId: documentId, -); -getStaffDocumentByKeyData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String documentId = ...; - -final ref = ExampleConnector.instance.getStaffDocumentByKey( - staffId: staffId, - documentId: documentId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffDocumentsByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.listStaffDocumentsByStaffId( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffDocumentsByStaffId, we created `listStaffDocumentsByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffDocumentsByStaffIdVariablesBuilder { - ... - ListStaffDocumentsByStaffIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffDocumentsByStaffIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffDocumentsByStaffId( - staffId: staffId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffDocumentsByStaffId( - staffId: staffId, -); -listStaffDocumentsByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.listStaffDocumentsByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffDocumentsByDocumentType -#### Required Arguments -```dart -DocumentType documentType = ...; -ExampleConnector.instance.listStaffDocumentsByDocumentType( - documentType: documentType, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffDocumentsByDocumentType, we created `listStaffDocumentsByDocumentTypeBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffDocumentsByDocumentTypeVariablesBuilder { - ... - ListStaffDocumentsByDocumentTypeVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffDocumentsByDocumentTypeVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffDocumentsByDocumentType( - documentType: documentType, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffDocumentsByDocumentType( - documentType: documentType, -); -listStaffDocumentsByDocumentTypeData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -DocumentType documentType = ...; - -final ref = ExampleConnector.instance.listStaffDocumentsByDocumentType( - documentType: documentType, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffDocumentsByStatus -#### Required Arguments -```dart -DocumentStatus status = ...; -ExampleConnector.instance.listStaffDocumentsByStatus( - status: status, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffDocumentsByStatus, we created `listStaffDocumentsByStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffDocumentsByStatusVariablesBuilder { - ... - ListStaffDocumentsByStatusVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffDocumentsByStatusVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffDocumentsByStatus( - status: status, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffDocumentsByStatus( - status: status, -); -listStaffDocumentsByStatusData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -DocumentStatus status = ...; - -final ref = ExampleConnector.instance.listStaffDocumentsByStatus( - status: status, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffRoles -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listStaffRoles().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffRoles, we created `listStaffRolesBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffRolesVariablesBuilder { - ... - - ListStaffRolesVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffRolesVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffRoles() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffRoles(); -listStaffRolesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listStaffRoles().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getStaffRoleByKey -#### Required Arguments -```dart -String staffId = ...; -String roleId = ...; -ExampleConnector.instance.getStaffRoleByKey( - staffId: staffId, - roleId: roleId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getStaffRoleByKey( - staffId: staffId, - roleId: roleId, -); -getStaffRoleByKeyData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String roleId = ...; - -final ref = ExampleConnector.instance.getStaffRoleByKey( - staffId: staffId, - roleId: roleId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffRolesByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.listStaffRolesByStaffId( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffRolesByStaffId, we created `listStaffRolesByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffRolesByStaffIdVariablesBuilder { - ... - ListStaffRolesByStaffIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffRolesByStaffIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffRolesByStaffId( - staffId: staffId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffRolesByStaffId( - staffId: staffId, -); -listStaffRolesByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; - -final ref = ExampleConnector.instance.listStaffRolesByStaffId( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listStaffRolesByRoleId -#### Required Arguments -```dart -String roleId = ...; -ExampleConnector.instance.listStaffRolesByRoleId( - roleId: roleId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listStaffRolesByRoleId, we created `listStaffRolesByRoleIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListStaffRolesByRoleIdVariablesBuilder { - ... - ListStaffRolesByRoleIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListStaffRolesByRoleIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listStaffRolesByRoleId( - roleId: roleId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listStaffRolesByRoleId( - roleId: roleId, -); -listStaffRolesByRoleIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String roleId = ...; - -final ref = ExampleConnector.instance.listStaffRolesByRoleId( - roleId: roleId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterStaffRoles -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterStaffRoles().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterStaffRoles, we created `filterStaffRolesBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterStaffRolesVariablesBuilder { - ... - - FilterStaffRolesVariablesBuilder staffId(String? t) { - _staffId.value = t; - return this; - } - FilterStaffRolesVariablesBuilder roleId(String? t) { - _roleId.value = t; - return this; - } - FilterStaffRolesVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - FilterStaffRolesVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterStaffRoles() -.staffId(staffId) -.roleId(roleId) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.filterStaffRoles(); -filterStaffRolesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.filterStaffRoles().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listTeamHubs -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listTeamHubs().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listTeamHubs, we created `listTeamHubsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListTeamHubsVariablesBuilder { - ... - - ListTeamHubsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListTeamHubsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listTeamHubs() -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listTeamHubs(); -listTeamHubsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -final ref = ExampleConnector.instance.listTeamHubs().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTeamHubById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getTeamHubById( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getTeamHubById( - id: id, -); -getTeamHubByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.getTeamHubById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTeamHubsByTeamId -#### Required Arguments -```dart -String teamId = ...; -ExampleConnector.instance.getTeamHubsByTeamId( - teamId: teamId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getTeamHubsByTeamId, we created `getTeamHubsByTeamIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetTeamHubsByTeamIdVariablesBuilder { - ... - GetTeamHubsByTeamIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetTeamHubsByTeamIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getTeamHubsByTeamId( - teamId: teamId, -) -.offset(offset) -.limit(limit) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.getTeamHubsByTeamId( - teamId: teamId, -); -getTeamHubsByTeamIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String teamId = ...; - -final ref = ExampleConnector.instance.getTeamHubsByTeamId( - teamId: teamId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listTeamHubsByOwnerId +### listInvoiceTemplatesByOwnerId #### Required Arguments ```dart String ownerId = ...; -ExampleConnector.instance.listTeamHubsByOwnerId( +ExampleConnector.instance.listInvoiceTemplatesByOwnerId( ownerId: ownerId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For listTeamHubsByOwnerId, we created `listTeamHubsByOwnerIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For listInvoiceTemplatesByOwnerId, we created `listInvoiceTemplatesByOwnerIdBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class ListTeamHubsByOwnerIdVariablesBuilder { +class ListInvoiceTemplatesByOwnerIdVariablesBuilder { ... - ListTeamHubsByOwnerIdVariablesBuilder offset(int? t) { + ListInvoiceTemplatesByOwnerIdVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListTeamHubsByOwnerIdVariablesBuilder limit(int? t) { + ListInvoiceTemplatesByOwnerIdVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listTeamHubsByOwnerId( +ExampleConnector.instance.listInvoiceTemplatesByOwnerId( ownerId: ownerId, ) .offset(offset) @@ -13351,7 +12981,7 @@ ExampleConnector.instance.listTeamHubsByOwnerId( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13366,10 +12996,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listTeamHubsByOwnerId( +final result = await ExampleConnector.instance.listInvoiceTemplatesByOwnerId( ownerId: ownerId, ); -listTeamHubsByOwnerIdData data = result.data; +listInvoiceTemplatesByOwnerIdData data = result.data; final ref = result.ref; ``` @@ -13379,7 +13009,7 @@ An example of how to use the `Ref` object is shown below: ```dart String ownerId = ...; -final ref = ExampleConnector.instance.listTeamHubsByOwnerId( +final ref = ExampleConnector.instance.listInvoiceTemplatesByOwnerId( ownerId: ownerId, ).ref(); ref.execute(); @@ -13388,17 +13018,333 @@ ref.subscribe(...); ``` -### listTeamMembers +### listInvoiceTemplatesByVendorId +#### Required Arguments +```dart +String vendorId = ...; +ExampleConnector.instance.listInvoiceTemplatesByVendorId( + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listInvoiceTemplatesByVendorId, we created `listInvoiceTemplatesByVendorIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListInvoiceTemplatesByVendorIdVariablesBuilder { + ... + ListInvoiceTemplatesByVendorIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListInvoiceTemplatesByVendorIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listInvoiceTemplatesByVendorId( + vendorId: vendorId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listInvoiceTemplatesByVendorId( + vendorId: vendorId, +); +listInvoiceTemplatesByVendorIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; + +final ref = ExampleConnector.instance.listInvoiceTemplatesByVendorId( + vendorId: vendorId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listInvoiceTemplatesByBusinessId +#### Required Arguments +```dart +String businessId = ...; +ExampleConnector.instance.listInvoiceTemplatesByBusinessId( + businessId: businessId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listInvoiceTemplatesByBusinessId, we created `listInvoiceTemplatesByBusinessIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListInvoiceTemplatesByBusinessIdVariablesBuilder { + ... + ListInvoiceTemplatesByBusinessIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListInvoiceTemplatesByBusinessIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listInvoiceTemplatesByBusinessId( + businessId: businessId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listInvoiceTemplatesByBusinessId( + businessId: businessId, +); +listInvoiceTemplatesByBusinessIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessId = ...; + +final ref = ExampleConnector.instance.listInvoiceTemplatesByBusinessId( + businessId: businessId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listInvoiceTemplatesByOrderId +#### Required Arguments +```dart +String orderId = ...; +ExampleConnector.instance.listInvoiceTemplatesByOrderId( + orderId: orderId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listInvoiceTemplatesByOrderId, we created `listInvoiceTemplatesByOrderIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListInvoiceTemplatesByOrderIdVariablesBuilder { + ... + ListInvoiceTemplatesByOrderIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListInvoiceTemplatesByOrderIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listInvoiceTemplatesByOrderId( + orderId: orderId, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listInvoiceTemplatesByOrderId( + orderId: orderId, +); +listInvoiceTemplatesByOrderIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String orderId = ...; + +final ref = ExampleConnector.instance.listInvoiceTemplatesByOrderId( + orderId: orderId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### searchInvoiceTemplatesByOwnerAndName +#### Required Arguments +```dart +String ownerId = ...; +String name = ...; +ExampleConnector.instance.searchInvoiceTemplatesByOwnerAndName( + ownerId: ownerId, + name: name, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For searchInvoiceTemplatesByOwnerAndName, we created `searchInvoiceTemplatesByOwnerAndNameBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder { + ... + SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.searchInvoiceTemplatesByOwnerAndName( + ownerId: ownerId, + name: name, +) +.offset(offset) +.limit(limit) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.searchInvoiceTemplatesByOwnerAndName( + ownerId: ownerId, + name: name, +); +searchInvoiceTemplatesByOwnerAndNameData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String ownerId = ...; +String name = ...; + +final ref = ExampleConnector.instance.searchInvoiceTemplatesByOwnerAndName( + ownerId: ownerId, + name: name, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listStaffAvailabilityStats #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listTeamMembers().execute(); +ExampleConnector.instance.listStaffAvailabilityStats().execute(); ``` +#### Optional Arguments +We return a builder for each query. For listStaffAvailabilityStats, we created `listStaffAvailabilityStatsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListStaffAvailabilityStatsVariablesBuilder { + ... + + ListStaffAvailabilityStatsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListStaffAvailabilityStatsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + ... +} +ExampleConnector.instance.listStaffAvailabilityStats() +.offset(offset) +.limit(limit) +.execute(); +``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13413,8 +13359,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listTeamMembers(); -listTeamMembersData data = result.data; +final result = await ExampleConnector.instance.listStaffAvailabilityStats(); +listStaffAvailabilityStatsData data = result.data; final ref = result.ref; ``` @@ -13422,26 +13368,26 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -final ref = ExampleConnector.instance.listTeamMembers().ref(); +final ref = ExampleConnector.instance.listStaffAvailabilityStats().ref(); ref.execute(); ref.subscribe(...); ``` -### getTeamMemberById +### getStaffAvailabilityStatsByStaffId #### Required Arguments ```dart -String id = ...; -ExampleConnector.instance.getTeamMemberById( - id: id, +String staffId = ...; +ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( + staffId: staffId, ).execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13456,10 +13402,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getTeamMemberById( - id: id, +final result = await ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( + staffId: staffId, ); -getTeamMemberByIdData data = result.data; +getStaffAvailabilityStatsByStaffIdData data = result.data; final ref = result.ref; ``` @@ -13467,10 +13413,10 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String id = ...; +String staffId = ...; -final ref = ExampleConnector.instance.getTeamMemberById( - id: id, +final ref = ExampleConnector.instance.getStaffAvailabilityStatsByStaffId( + staffId: staffId, ).ref(); ref.execute(); @@ -13478,19 +13424,79 @@ ref.subscribe(...); ``` -### getTeamMembersByTeamId +### filterStaffAvailabilityStats #### Required Arguments ```dart -String teamId = ...; -ExampleConnector.instance.getTeamMembersByTeamId( - teamId: teamId, -).execute(); +// No required arguments +ExampleConnector.instance.filterStaffAvailabilityStats().execute(); ``` +#### Optional Arguments +We return a builder for each query. For filterStaffAvailabilityStats, we created `filterStaffAvailabilityStatsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterStaffAvailabilityStatsVariablesBuilder { + ... + + FilterStaffAvailabilityStatsVariablesBuilder needWorkIndexMin(int? t) { + _needWorkIndexMin.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder needWorkIndexMax(int? t) { + _needWorkIndexMax.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder utilizationMin(int? t) { + _utilizationMin.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder utilizationMax(int? t) { + _utilizationMax.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder acceptanceRateMin(int? t) { + _acceptanceRateMin.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder acceptanceRateMax(int? t) { + _acceptanceRateMax.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder lastShiftAfter(Timestamp? t) { + _lastShiftAfter.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder lastShiftBefore(Timestamp? t) { + _lastShiftBefore.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + FilterStaffAvailabilityStatsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + ... +} +ExampleConnector.instance.filterStaffAvailabilityStats() +.needWorkIndexMin(needWorkIndexMin) +.needWorkIndexMax(needWorkIndexMax) +.utilizationMin(utilizationMin) +.utilizationMax(utilizationMax) +.acceptanceRateMin(acceptanceRateMin) +.acceptanceRateMax(acceptanceRateMax) +.lastShiftAfter(lastShiftAfter) +.lastShiftBefore(lastShiftBefore) +.offset(offset) +.limit(limit) +.execute(); +``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13505,10 +13511,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getTeamMembersByTeamId( - teamId: teamId, -); -getTeamMembersByTeamIdData data = result.data; +final result = await ExampleConnector.instance.filterStaffAvailabilityStats(); +filterStaffAvailabilityStatsData data = result.data; final ref = result.ref; ``` @@ -13516,11 +13520,7 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String teamId = ...; - -final ref = ExampleConnector.instance.getTeamMembersByTeamId( - teamId: teamId, -).ref(); +final ref = ExampleConnector.instance.filterStaffAvailabilityStats().ref(); ref.execute(); ref.subscribe(...); @@ -13528,78 +13528,54 @@ ref.subscribe(...); ## Mutations -### CreateCertificate +### createApplication #### Required Arguments ```dart -String name = ...; -CertificateStatus status = ...; +String shiftId = ...; String staffId = ...; -ExampleConnector.instance.createCertificate( - name: name, - status: status, +ApplicationStatus status = ...; +ApplicationOrigin origin = ...; +String roleId = ...; +ExampleConnector.instance.createApplication( + shiftId: shiftId, staffId: staffId, + status: status, + origin: origin, + roleId: roleId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For CreateCertificate, we created `CreateCertificateBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createApplication, we created `createApplicationBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateCertificateVariablesBuilder { +class CreateApplicationVariablesBuilder { ... - CreateCertificateVariablesBuilder description(String? t) { - _description.value = t; + CreateApplicationVariablesBuilder checkInTime(Timestamp? t) { + _checkInTime.value = t; return this; } - CreateCertificateVariablesBuilder expiry(Timestamp? t) { - _expiry.value = t; - return this; - } - CreateCertificateVariablesBuilder fileUrl(String? t) { - _fileUrl.value = t; - return this; - } - CreateCertificateVariablesBuilder icon(String? t) { - _icon.value = t; - return this; - } - CreateCertificateVariablesBuilder certificationType(ComplianceType? t) { - _certificationType.value = t; - return this; - } - CreateCertificateVariablesBuilder issuer(String? t) { - _issuer.value = t; - return this; - } - CreateCertificateVariablesBuilder validationStatus(ValidationStatus? t) { - _validationStatus.value = t; - return this; - } - CreateCertificateVariablesBuilder certificateNumber(String? t) { - _certificateNumber.value = t; + CreateApplicationVariablesBuilder checkOutTime(Timestamp? t) { + _checkOutTime.value = t; return this; } ... } -ExampleConnector.instance.createCertificate( - name: name, - status: status, +ExampleConnector.instance.createApplication( + shiftId: shiftId, staffId: staffId, + status: status, + origin: origin, + roleId: roleId, ) -.description(description) -.expiry(expiry) -.fileUrl(fileUrl) -.icon(icon) -.certificationType(certificationType) -.issuer(issuer) -.validationStatus(validationStatus) -.certificateNumber(certificateNumber) +.checkInTime(checkInTime) +.checkOutTime(checkOutTime) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13609,12 +13585,14 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createCertificate( - name: name, - status: status, +final result = await ExampleConnector.instance.createApplication( + shiftId: shiftId, staffId: staffId, + status: status, + origin: origin, + roleId: roleId, ); -CreateCertificateData data = result.data; +createApplicationData data = result.data; final ref = result.ref; ``` @@ -13622,214 +13600,77 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String name = ...; -CertificateStatus status = ...; +String shiftId = ...; String staffId = ...; +ApplicationStatus status = ...; +ApplicationOrigin origin = ...; +String roleId = ...; -final ref = ExampleConnector.instance.createCertificate( - name: name, - status: status, +final ref = ExampleConnector.instance.createApplication( + shiftId: shiftId, staffId: staffId, + status: status, + origin: origin, + roleId: roleId, ).ref(); ref.execute(); ``` -### UpdateCertificate +### updateApplicationStatus #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateCertificate( +String roleId = ...; +ExampleConnector.instance.updateApplicationStatus( id: id, + roleId: roleId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For UpdateCertificate, we created `UpdateCertificateBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateApplicationStatus, we created `updateApplicationStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateCertificateVariablesBuilder { +class UpdateApplicationStatusVariablesBuilder { ... - UpdateCertificateVariablesBuilder name(String? t) { - _name.value = t; + UpdateApplicationStatusVariablesBuilder shiftId(String? t) { + _shiftId.value = t; return this; } - UpdateCertificateVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - UpdateCertificateVariablesBuilder expiry(Timestamp? t) { - _expiry.value = t; - return this; - } - UpdateCertificateVariablesBuilder status(CertificateStatus? t) { - _status.value = t; - return this; - } - UpdateCertificateVariablesBuilder fileUrl(String? t) { - _fileUrl.value = t; - return this; - } - UpdateCertificateVariablesBuilder icon(String? t) { - _icon.value = t; - return this; - } - UpdateCertificateVariablesBuilder staffId(String? t) { + UpdateApplicationStatusVariablesBuilder staffId(String? t) { _staffId.value = t; return this; } - UpdateCertificateVariablesBuilder certificationType(ComplianceType? t) { - _certificationType.value = t; + UpdateApplicationStatusVariablesBuilder status(ApplicationStatus? t) { + _status.value = t; return this; } - UpdateCertificateVariablesBuilder issuer(String? t) { - _issuer.value = t; + UpdateApplicationStatusVariablesBuilder checkInTime(Timestamp? t) { + _checkInTime.value = t; return this; } - UpdateCertificateVariablesBuilder validationStatus(ValidationStatus? t) { - _validationStatus.value = t; - return this; - } - UpdateCertificateVariablesBuilder certificateNumber(String? t) { - _certificateNumber.value = t; + UpdateApplicationStatusVariablesBuilder checkOutTime(Timestamp? t) { + _checkOutTime.value = t; return this; } ... } -ExampleConnector.instance.updateCertificate( +ExampleConnector.instance.updateApplicationStatus( id: id, + roleId: roleId, ) -.name(name) -.description(description) -.expiry(expiry) -.status(status) -.fileUrl(fileUrl) -.icon(icon) +.shiftId(shiftId) .staffId(staffId) -.certificationType(certificationType) -.issuer(issuer) -.validationStatus(validationStatus) -.certificateNumber(certificateNumber) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateCertificate( - id: id, -); -UpdateCertificateData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateCertificate( - id: id, -).ref(); -ref.execute(); -``` - - -### DeleteCertificate -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteCertificate( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteCertificate( - id: id, -); -DeleteCertificateData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteCertificate( - id: id, -).ref(); -ref.execute(); -``` - - -### createRecentPayment -#### Required Arguments -```dart -String staffId = ...; -String applicationId = ...; -String invoiceId = ...; -ExampleConnector.instance.createRecentPayment( - staffId: staffId, - applicationId: applicationId, - invoiceId: invoiceId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createRecentPayment, we created `createRecentPaymentBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateRecentPaymentVariablesBuilder { - ... - - CreateRecentPaymentVariablesBuilder workedTime(String? t) { - _workedTime.value = t; - return this; - } - CreateRecentPaymentVariablesBuilder status(RecentPaymentStatus? t) { - _status.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createRecentPayment( - staffId: staffId, - applicationId: applicationId, - invoiceId: invoiceId, -) -.workedTime(workedTime) .status(status) +.checkInTime(checkInTime) +.checkOutTime(checkOutTime) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13839,96 +13680,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createRecentPayment( - staffId: staffId, - applicationId: applicationId, - invoiceId: invoiceId, +final result = await ExampleConnector.instance.updateApplicationStatus( + id: id, + roleId: roleId, ); -createRecentPaymentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String applicationId = ...; -String invoiceId = ...; - -final ref = ExampleConnector.instance.createRecentPayment( - staffId: staffId, - applicationId: applicationId, - invoiceId: invoiceId, -).ref(); -ref.execute(); -``` - - -### updateRecentPayment -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateRecentPayment( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateRecentPayment, we created `updateRecentPaymentBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateRecentPaymentVariablesBuilder { - ... - UpdateRecentPaymentVariablesBuilder workedTime(String? t) { - _workedTime.value = t; - return this; - } - UpdateRecentPaymentVariablesBuilder status(RecentPaymentStatus? t) { - _status.value = t; - return this; - } - UpdateRecentPaymentVariablesBuilder staffId(String? t) { - _staffId.value = t; - return this; - } - UpdateRecentPaymentVariablesBuilder applicationId(String? t) { - _applicationId.value = t; - return this; - } - UpdateRecentPaymentVariablesBuilder invoiceId(String? t) { - _invoiceId.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateRecentPayment( - id: id, -) -.workedTime(workedTime) -.status(status) -.staffId(staffId) -.applicationId(applicationId) -.invoiceId(invoiceId) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateRecentPayment( - id: id, -); -updateRecentPaymentData data = result.data; +updateApplicationStatusData data = result.data; final ref = result.ref; ``` @@ -13937,19 +13693,21 @@ Each builder returns an `execute` function, which is a helper function that crea An example of how to use the `Ref` object is shown below: ```dart String id = ...; +String roleId = ...; -final ref = ExampleConnector.instance.updateRecentPayment( +final ref = ExampleConnector.instance.updateApplicationStatus( id: id, + roleId: roleId, ).ref(); ref.execute(); ``` -### deleteRecentPayment +### deleteApplication #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteRecentPayment( +ExampleConnector.instance.deleteApplication( id: id, ).execute(); ``` @@ -13957,7 +13715,7 @@ ExampleConnector.instance.deleteRecentPayment( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13967,10 +13725,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteRecentPayment( +final result = await ExampleConnector.instance.deleteApplication( id: id, ); -deleteRecentPaymentData data = result.data; +deleteApplicationData data = result.data; final ref = result.ref; ``` @@ -13980,1351 +13738,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteRecentPayment( - id: id, -).ref(); -ref.execute(); -``` - - -### createRole -#### Required Arguments -```dart -String name = ...; -double costPerHour = ...; -String vendorId = ...; -String roleCategoryId = ...; -ExampleConnector.instance.createRole( - name: name, - costPerHour: costPerHour, - vendorId: vendorId, - roleCategoryId: roleCategoryId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createRole( - name: name, - costPerHour: costPerHour, - vendorId: vendorId, - roleCategoryId: roleCategoryId, -); -createRoleData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String name = ...; -double costPerHour = ...; -String vendorId = ...; -String roleCategoryId = ...; - -final ref = ExampleConnector.instance.createRole( - name: name, - costPerHour: costPerHour, - vendorId: vendorId, - roleCategoryId: roleCategoryId, -).ref(); -ref.execute(); -``` - - -### updateRole -#### Required Arguments -```dart -String id = ...; -String roleCategoryId = ...; -ExampleConnector.instance.updateRole( - id: id, - roleCategoryId: roleCategoryId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateRole, we created `updateRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateRoleVariablesBuilder { - ... - UpdateRoleVariablesBuilder name(String? t) { - _name.value = t; - return this; - } - UpdateRoleVariablesBuilder costPerHour(double? t) { - _costPerHour.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateRole( - id: id, - roleCategoryId: roleCategoryId, -) -.name(name) -.costPerHour(costPerHour) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateRole( - id: id, - roleCategoryId: roleCategoryId, -); -updateRoleData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; -String roleCategoryId = ...; - -final ref = ExampleConnector.instance.updateRole( - id: id, - roleCategoryId: roleCategoryId, -).ref(); -ref.execute(); -``` - - -### deleteRole -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteRole( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteRole( - id: id, -); -deleteRoleData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteRole( - id: id, -).ref(); -ref.execute(); -``` - - -### createHub -#### Required Arguments -```dart -String name = ...; -String ownerId = ...; -ExampleConnector.instance.createHub( - name: name, - ownerId: ownerId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createHub, we created `createHubBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateHubVariablesBuilder { - ... - CreateHubVariablesBuilder locationName(String? t) { - _locationName.value = t; - return this; - } - CreateHubVariablesBuilder address(String? t) { - _address.value = t; - return this; - } - CreateHubVariablesBuilder nfcTagId(String? t) { - _nfcTagId.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createHub( - name: name, - ownerId: ownerId, -) -.locationName(locationName) -.address(address) -.nfcTagId(nfcTagId) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createHub( - name: name, - ownerId: ownerId, -); -createHubData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String name = ...; -String ownerId = ...; - -final ref = ExampleConnector.instance.createHub( - name: name, - ownerId: ownerId, -).ref(); -ref.execute(); -``` - - -### updateHub -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateHub( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateHub, we created `updateHubBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateHubVariablesBuilder { - ... - UpdateHubVariablesBuilder name(String? t) { - _name.value = t; - return this; - } - UpdateHubVariablesBuilder locationName(String? t) { - _locationName.value = t; - return this; - } - UpdateHubVariablesBuilder address(String? t) { - _address.value = t; - return this; - } - UpdateHubVariablesBuilder nfcTagId(String? t) { - _nfcTagId.value = t; - return this; - } - UpdateHubVariablesBuilder ownerId(String? t) { - _ownerId.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateHub( - id: id, -) -.name(name) -.locationName(locationName) -.address(address) -.nfcTagId(nfcTagId) -.ownerId(ownerId) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateHub( - id: id, -); -updateHubData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateHub( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteHub -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteHub( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteHub( - id: id, -); -deleteHubData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteHub( - id: id, -).ref(); -ref.execute(); -``` - - -### createLevel -#### Required Arguments -```dart -String name = ...; -int xpRequired = ...; -ExampleConnector.instance.createLevel( - name: name, - xpRequired: xpRequired, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createLevel, we created `createLevelBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateLevelVariablesBuilder { - ... - CreateLevelVariablesBuilder icon(String? t) { - _icon.value = t; - return this; - } - CreateLevelVariablesBuilder colors(AnyValue? t) { - _colors.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createLevel( - name: name, - xpRequired: xpRequired, -) -.icon(icon) -.colors(colors) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createLevel( - name: name, - xpRequired: xpRequired, -); -createLevelData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String name = ...; -int xpRequired = ...; - -final ref = ExampleConnector.instance.createLevel( - name: name, - xpRequired: xpRequired, -).ref(); -ref.execute(); -``` - - -### updateLevel -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateLevel( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateLevel, we created `updateLevelBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateLevelVariablesBuilder { - ... - UpdateLevelVariablesBuilder name(String? t) { - _name.value = t; - return this; - } - UpdateLevelVariablesBuilder xpRequired(int? t) { - _xpRequired.value = t; - return this; - } - UpdateLevelVariablesBuilder icon(String? t) { - _icon.value = t; - return this; - } - UpdateLevelVariablesBuilder colors(AnyValue? t) { - _colors.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateLevel( - id: id, -) -.name(name) -.xpRequired(xpRequired) -.icon(icon) -.colors(colors) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateLevel( - id: id, -); -updateLevelData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateLevel( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteLevel -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteLevel( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteLevel( - id: id, -); -deleteLevelData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteLevel( - id: id, -).ref(); -ref.execute(); -``` - - -### createStaffDocument -#### Required Arguments -```dart -String staffId = ...; -String staffName = ...; -String documentId = ...; -DocumentStatus status = ...; -ExampleConnector.instance.createStaffDocument( - staffId: staffId, - staffName: staffName, - documentId: documentId, - status: status, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createStaffDocument, we created `createStaffDocumentBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateStaffDocumentVariablesBuilder { - ... - CreateStaffDocumentVariablesBuilder documentUrl(String? t) { - _documentUrl.value = t; - return this; - } - CreateStaffDocumentVariablesBuilder expiryDate(Timestamp? t) { - _expiryDate.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createStaffDocument( - staffId: staffId, - staffName: staffName, - documentId: documentId, - status: status, -) -.documentUrl(documentUrl) -.expiryDate(expiryDate) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createStaffDocument( - staffId: staffId, - staffName: staffName, - documentId: documentId, - status: status, -); -createStaffDocumentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String staffName = ...; -String documentId = ...; -DocumentStatus status = ...; - -final ref = ExampleConnector.instance.createStaffDocument( - staffId: staffId, - staffName: staffName, - documentId: documentId, - status: status, -).ref(); -ref.execute(); -``` - - -### updateStaffDocument -#### Required Arguments -```dart -String staffId = ...; -String documentId = ...; -ExampleConnector.instance.updateStaffDocument( - staffId: staffId, - documentId: documentId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateStaffDocument, we created `updateStaffDocumentBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateStaffDocumentVariablesBuilder { - ... - UpdateStaffDocumentVariablesBuilder status(DocumentStatus? t) { - _status.value = t; - return this; - } - UpdateStaffDocumentVariablesBuilder documentUrl(String? t) { - _documentUrl.value = t; - return this; - } - UpdateStaffDocumentVariablesBuilder expiryDate(Timestamp? t) { - _expiryDate.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateStaffDocument( - staffId: staffId, - documentId: documentId, -) -.status(status) -.documentUrl(documentUrl) -.expiryDate(expiryDate) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateStaffDocument( - staffId: staffId, - documentId: documentId, -); -updateStaffDocumentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String documentId = ...; - -final ref = ExampleConnector.instance.updateStaffDocument( - staffId: staffId, - documentId: documentId, -).ref(); -ref.execute(); -``` - - -### deleteStaffDocument -#### Required Arguments -```dart -String staffId = ...; -String documentId = ...; -ExampleConnector.instance.deleteStaffDocument( - staffId: staffId, - documentId: documentId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteStaffDocument( - staffId: staffId, - documentId: documentId, -); -deleteStaffDocumentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String documentId = ...; - -final ref = ExampleConnector.instance.deleteStaffDocument( - staffId: staffId, - documentId: documentId, -).ref(); -ref.execute(); -``` - - -### createVendorRate -#### Required Arguments -```dart -String vendorId = ...; -ExampleConnector.instance.createVendorRate( - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createVendorRate, we created `createVendorRateBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateVendorRateVariablesBuilder { - ... - CreateVendorRateVariablesBuilder roleName(String? t) { - _roleName.value = t; - return this; - } - CreateVendorRateVariablesBuilder category(CategoryType? t) { - _category.value = t; - return this; - } - CreateVendorRateVariablesBuilder clientRate(double? t) { - _clientRate.value = t; - return this; - } - CreateVendorRateVariablesBuilder employeeWage(double? t) { - _employeeWage.value = t; - return this; - } - CreateVendorRateVariablesBuilder markupPercentage(double? t) { - _markupPercentage.value = t; - return this; - } - CreateVendorRateVariablesBuilder vendorFeePercentage(double? t) { - _vendorFeePercentage.value = t; - return this; - } - CreateVendorRateVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - CreateVendorRateVariablesBuilder notes(String? t) { - _notes.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createVendorRate( - vendorId: vendorId, -) -.roleName(roleName) -.category(category) -.clientRate(clientRate) -.employeeWage(employeeWage) -.markupPercentage(markupPercentage) -.vendorFeePercentage(vendorFeePercentage) -.isActive(isActive) -.notes(notes) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createVendorRate( - vendorId: vendorId, -); -createVendorRateData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; - -final ref = ExampleConnector.instance.createVendorRate( - vendorId: vendorId, -).ref(); -ref.execute(); -``` - - -### updateVendorRate -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateVendorRate( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateVendorRate, we created `updateVendorRateBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateVendorRateVariablesBuilder { - ... - UpdateVendorRateVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } - UpdateVendorRateVariablesBuilder roleName(String? t) { - _roleName.value = t; - return this; - } - UpdateVendorRateVariablesBuilder category(CategoryType? t) { - _category.value = t; - return this; - } - UpdateVendorRateVariablesBuilder clientRate(double? t) { - _clientRate.value = t; - return this; - } - UpdateVendorRateVariablesBuilder employeeWage(double? t) { - _employeeWage.value = t; - return this; - } - UpdateVendorRateVariablesBuilder markupPercentage(double? t) { - _markupPercentage.value = t; - return this; - } - UpdateVendorRateVariablesBuilder vendorFeePercentage(double? t) { - _vendorFeePercentage.value = t; - return this; - } - UpdateVendorRateVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - UpdateVendorRateVariablesBuilder notes(String? t) { - _notes.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateVendorRate( - id: id, -) -.vendorId(vendorId) -.roleName(roleName) -.category(category) -.clientRate(clientRate) -.employeeWage(employeeWage) -.markupPercentage(markupPercentage) -.vendorFeePercentage(vendorFeePercentage) -.isActive(isActive) -.notes(notes) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateVendorRate( - id: id, -); -updateVendorRateData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateVendorRate( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteVendorRate -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteVendorRate( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteVendorRate( - id: id, -); -deleteVendorRateData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteVendorRate( - id: id, -).ref(); -ref.execute(); -``` - - -### createActivityLog -#### Required Arguments -```dart -String userId = ...; -Timestamp date = ...; -String title = ...; -String description = ...; -ActivityType activityType = ...; -ExampleConnector.instance.createActivityLog( - userId: userId, - date: date, - title: title, - description: description, - activityType: activityType, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createActivityLog, we created `createActivityLogBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateActivityLogVariablesBuilder { - ... - CreateActivityLogVariablesBuilder hourStart(String? t) { - _hourStart.value = t; - return this; - } - CreateActivityLogVariablesBuilder hourEnd(String? t) { - _hourEnd.value = t; - return this; - } - CreateActivityLogVariablesBuilder totalhours(String? t) { - _totalhours.value = t; - return this; - } - CreateActivityLogVariablesBuilder iconType(ActivityIconType? t) { - _iconType.value = t; - return this; - } - CreateActivityLogVariablesBuilder iconColor(String? t) { - _iconColor.value = t; - return this; - } - CreateActivityLogVariablesBuilder isRead(bool? t) { - _isRead.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createActivityLog( - userId: userId, - date: date, - title: title, - description: description, - activityType: activityType, -) -.hourStart(hourStart) -.hourEnd(hourEnd) -.totalhours(totalhours) -.iconType(iconType) -.iconColor(iconColor) -.isRead(isRead) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createActivityLog( - userId: userId, - date: date, - title: title, - description: description, - activityType: activityType, -); -createActivityLogData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String userId = ...; -Timestamp date = ...; -String title = ...; -String description = ...; -ActivityType activityType = ...; - -final ref = ExampleConnector.instance.createActivityLog( - userId: userId, - date: date, - title: title, - description: description, - activityType: activityType, -).ref(); -ref.execute(); -``` - - -### updateActivityLog -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateActivityLog( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateActivityLog, we created `updateActivityLogBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateActivityLogVariablesBuilder { - ... - UpdateActivityLogVariablesBuilder userId(String? t) { - _userId.value = t; - return this; - } - UpdateActivityLogVariablesBuilder date(Timestamp? t) { - _date.value = t; - return this; - } - UpdateActivityLogVariablesBuilder hourStart(String? t) { - _hourStart.value = t; - return this; - } - UpdateActivityLogVariablesBuilder hourEnd(String? t) { - _hourEnd.value = t; - return this; - } - UpdateActivityLogVariablesBuilder totalhours(String? t) { - _totalhours.value = t; - return this; - } - UpdateActivityLogVariablesBuilder iconType(ActivityIconType? t) { - _iconType.value = t; - return this; - } - UpdateActivityLogVariablesBuilder iconColor(String? t) { - _iconColor.value = t; - return this; - } - UpdateActivityLogVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - UpdateActivityLogVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - UpdateActivityLogVariablesBuilder isRead(bool? t) { - _isRead.value = t; - return this; - } - UpdateActivityLogVariablesBuilder activityType(ActivityType? t) { - _activityType.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateActivityLog( - id: id, -) -.userId(userId) -.date(date) -.hourStart(hourStart) -.hourEnd(hourEnd) -.totalhours(totalhours) -.iconType(iconType) -.iconColor(iconColor) -.title(title) -.description(description) -.isRead(isRead) -.activityType(activityType) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateActivityLog( - id: id, -); -updateActivityLogData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateActivityLog( - id: id, -).ref(); -ref.execute(); -``` - - -### markActivityLogAsRead -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.markActivityLogAsRead( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.markActivityLogAsRead( - id: id, -); -markActivityLogAsReadData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.markActivityLogAsRead( - id: id, -).ref(); -ref.execute(); -``` - - -### markActivityLogsAsRead -#### Required Arguments -```dart -String ids = ...; -ExampleConnector.instance.markActivityLogsAsRead( - ids: ids, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.markActivityLogsAsRead( - ids: ids, -); -markActivityLogsAsReadData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String ids = ...; - -final ref = ExampleConnector.instance.markActivityLogsAsRead( - ids: ids, -).ref(); -ref.execute(); -``` - - -### deleteActivityLog -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteActivityLog( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteActivityLog( - id: id, -); -deleteActivityLogData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteActivityLog( +final ref = ExampleConnector.instance.deleteApplication( id: id, ).ref(); ref.execute(); @@ -15607,55 +14021,145 @@ ref.execute(); ``` -### createAttireOption +### createShift #### Required Arguments ```dart -String itemId = ...; -String label = ...; -ExampleConnector.instance.createAttireOption( - itemId: itemId, - label: label, +String title = ...; +String orderId = ...; +ExampleConnector.instance.createShift( + title: title, + orderId: orderId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createAttireOption, we created `createAttireOptionBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createShift, we created `createShiftBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateAttireOptionVariablesBuilder { +class CreateShiftVariablesBuilder { ... - CreateAttireOptionVariablesBuilder icon(String? t) { - _icon.value = t; + CreateShiftVariablesBuilder date(Timestamp? t) { + _date.value = t; return this; } - CreateAttireOptionVariablesBuilder imageUrl(String? t) { - _imageUrl.value = t; + CreateShiftVariablesBuilder startTime(Timestamp? t) { + _startTime.value = t; return this; } - CreateAttireOptionVariablesBuilder isMandatory(bool? t) { - _isMandatory.value = t; + CreateShiftVariablesBuilder endTime(Timestamp? t) { + _endTime.value = t; return this; } - CreateAttireOptionVariablesBuilder vendorId(String? t) { - _vendorId.value = t; + CreateShiftVariablesBuilder hours(double? t) { + _hours.value = t; + return this; + } + CreateShiftVariablesBuilder cost(double? t) { + _cost.value = t; + return this; + } + CreateShiftVariablesBuilder location(String? t) { + _location.value = t; + return this; + } + CreateShiftVariablesBuilder locationAddress(String? t) { + _locationAddress.value = t; + return this; + } + CreateShiftVariablesBuilder latitude(double? t) { + _latitude.value = t; + return this; + } + CreateShiftVariablesBuilder longitude(double? t) { + _longitude.value = t; + return this; + } + CreateShiftVariablesBuilder placeId(String? t) { + _placeId.value = t; + return this; + } + CreateShiftVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + CreateShiftVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + CreateShiftVariablesBuilder street(String? t) { + _street.value = t; + return this; + } + CreateShiftVariablesBuilder country(String? t) { + _country.value = t; + return this; + } + CreateShiftVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + CreateShiftVariablesBuilder status(ShiftStatus? t) { + _status.value = t; + return this; + } + CreateShiftVariablesBuilder workersNeeded(int? t) { + _workersNeeded.value = t; + return this; + } + CreateShiftVariablesBuilder filled(int? t) { + _filled.value = t; + return this; + } + CreateShiftVariablesBuilder filledAt(Timestamp? t) { + _filledAt.value = t; + return this; + } + CreateShiftVariablesBuilder managers(List? t) { + _managers.value = t; + return this; + } + CreateShiftVariablesBuilder durationDays(int? t) { + _durationDays.value = t; + return this; + } + CreateShiftVariablesBuilder createdBy(String? t) { + _createdBy.value = t; return this; } ... } -ExampleConnector.instance.createAttireOption( - itemId: itemId, - label: label, +ExampleConnector.instance.createShift( + title: title, + orderId: orderId, ) -.icon(icon) -.imageUrl(imageUrl) -.isMandatory(isMandatory) -.vendorId(vendorId) +.date(date) +.startTime(startTime) +.endTime(endTime) +.hours(hours) +.cost(cost) +.location(location) +.locationAddress(locationAddress) +.latitude(latitude) +.longitude(longitude) +.placeId(placeId) +.city(city) +.state(state) +.street(street) +.country(country) +.description(description) +.status(status) +.workersNeeded(workersNeeded) +.filled(filled) +.filledAt(filledAt) +.managers(managers) +.durationDays(durationDays) +.createdBy(createdBy) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -15665,11 +14169,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createAttireOption( - itemId: itemId, - label: label, +final result = await ExampleConnector.instance.createShift( + title: title, + orderId: orderId, ); -createAttireOptionData data = result.data; +createShiftData data = result.data; final ref = result.ref; ``` @@ -15677,73 +14181,158 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String itemId = ...; -String label = ...; +String title = ...; +String orderId = ...; -final ref = ExampleConnector.instance.createAttireOption( - itemId: itemId, - label: label, +final ref = ExampleConnector.instance.createShift( + title: title, + orderId: orderId, ).ref(); ref.execute(); ``` -### updateAttireOption +### updateShift #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateAttireOption( +ExampleConnector.instance.updateShift( id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateAttireOption, we created `updateAttireOptionBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateShift, we created `updateShiftBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateAttireOptionVariablesBuilder { +class UpdateShiftVariablesBuilder { ... - UpdateAttireOptionVariablesBuilder itemId(String? t) { - _itemId.value = t; + UpdateShiftVariablesBuilder title(String? t) { + _title.value = t; return this; } - UpdateAttireOptionVariablesBuilder label(String? t) { - _label.value = t; + UpdateShiftVariablesBuilder orderId(String? t) { + _orderId.value = t; return this; } - UpdateAttireOptionVariablesBuilder icon(String? t) { - _icon.value = t; + UpdateShiftVariablesBuilder date(Timestamp? t) { + _date.value = t; return this; } - UpdateAttireOptionVariablesBuilder imageUrl(String? t) { - _imageUrl.value = t; + UpdateShiftVariablesBuilder startTime(Timestamp? t) { + _startTime.value = t; return this; } - UpdateAttireOptionVariablesBuilder isMandatory(bool? t) { - _isMandatory.value = t; + UpdateShiftVariablesBuilder endTime(Timestamp? t) { + _endTime.value = t; return this; } - UpdateAttireOptionVariablesBuilder vendorId(String? t) { - _vendorId.value = t; + UpdateShiftVariablesBuilder hours(double? t) { + _hours.value = t; + return this; + } + UpdateShiftVariablesBuilder cost(double? t) { + _cost.value = t; + return this; + } + UpdateShiftVariablesBuilder location(String? t) { + _location.value = t; + return this; + } + UpdateShiftVariablesBuilder locationAddress(String? t) { + _locationAddress.value = t; + return this; + } + UpdateShiftVariablesBuilder latitude(double? t) { + _latitude.value = t; + return this; + } + UpdateShiftVariablesBuilder longitude(double? t) { + _longitude.value = t; + return this; + } + UpdateShiftVariablesBuilder placeId(String? t) { + _placeId.value = t; + return this; + } + UpdateShiftVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + UpdateShiftVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + UpdateShiftVariablesBuilder street(String? t) { + _street.value = t; + return this; + } + UpdateShiftVariablesBuilder country(String? t) { + _country.value = t; + return this; + } + UpdateShiftVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + UpdateShiftVariablesBuilder status(ShiftStatus? t) { + _status.value = t; + return this; + } + UpdateShiftVariablesBuilder workersNeeded(int? t) { + _workersNeeded.value = t; + return this; + } + UpdateShiftVariablesBuilder filled(int? t) { + _filled.value = t; + return this; + } + UpdateShiftVariablesBuilder filledAt(Timestamp? t) { + _filledAt.value = t; + return this; + } + UpdateShiftVariablesBuilder managers(List? t) { + _managers.value = t; + return this; + } + UpdateShiftVariablesBuilder durationDays(int? t) { + _durationDays.value = t; return this; } ... } -ExampleConnector.instance.updateAttireOption( +ExampleConnector.instance.updateShift( id: id, ) -.itemId(itemId) -.label(label) -.icon(icon) -.imageUrl(imageUrl) -.isMandatory(isMandatory) -.vendorId(vendorId) +.title(title) +.orderId(orderId) +.date(date) +.startTime(startTime) +.endTime(endTime) +.hours(hours) +.cost(cost) +.location(location) +.locationAddress(locationAddress) +.latitude(latitude) +.longitude(longitude) +.placeId(placeId) +.city(city) +.state(state) +.street(street) +.country(country) +.description(description) +.status(status) +.workersNeeded(workersNeeded) +.filled(filled) +.filledAt(filledAt) +.managers(managers) +.durationDays(durationDays) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -15753,10 +14342,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateAttireOption( +final result = await ExampleConnector.instance.updateShift( id: id, ); -updateAttireOptionData data = result.data; +updateShiftData data = result.data; final ref = result.ref; ``` @@ -15766,18 +14355,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateAttireOption( +final ref = ExampleConnector.instance.updateShift( id: id, ).ref(); ref.execute(); ``` -### deleteAttireOption +### deleteShift #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteAttireOption( +ExampleConnector.instance.deleteShift( id: id, ).execute(); ``` @@ -15785,7 +14374,7 @@ ExampleConnector.instance.deleteAttireOption( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -15795,10 +14384,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteAttireOption( +final result = await ExampleConnector.instance.deleteShift( id: id, ); -deleteAttireOptionData data = result.data; +deleteShiftData data = result.data; final ref = result.ref; ``` @@ -15808,47 +14397,55 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteAttireOption( +final ref = ExampleConnector.instance.deleteShift( id: id, ).ref(); ref.execute(); ``` -### createCategory +### createStaffAvailability #### Required Arguments ```dart -String categoryId = ...; -String label = ...; -ExampleConnector.instance.createCategory( - categoryId: categoryId, - label: label, +String staffId = ...; +DayOfWeek day = ...; +AvailabilitySlot slot = ...; +ExampleConnector.instance.createStaffAvailability( + staffId: staffId, + day: day, + slot: slot, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createCategory, we created `createCategoryBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createStaffAvailability, we created `createStaffAvailabilityBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateCategoryVariablesBuilder { +class CreateStaffAvailabilityVariablesBuilder { ... - CreateCategoryVariablesBuilder icon(String? t) { - _icon.value = t; + CreateStaffAvailabilityVariablesBuilder status(AvailabilityStatus? t) { + _status.value = t; + return this; + } + CreateStaffAvailabilityVariablesBuilder notes(String? t) { + _notes.value = t; return this; } ... } -ExampleConnector.instance.createCategory( - categoryId: categoryId, - label: label, +ExampleConnector.instance.createStaffAvailability( + staffId: staffId, + day: day, + slot: slot, ) -.icon(icon) +.status(status) +.notes(notes) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -15858,11 +14455,12 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createCategory( - categoryId: categoryId, - label: label, +final result = await ExampleConnector.instance.createStaffAvailability( + staffId: staffId, + day: day, + slot: slot, ); -createCategoryData data = result.data; +createStaffAvailabilityData data = result.data; final ref = result.ref; ``` @@ -15870,58 +14468,61 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String categoryId = ...; -String label = ...; +String staffId = ...; +DayOfWeek day = ...; +AvailabilitySlot slot = ...; -final ref = ExampleConnector.instance.createCategory( - categoryId: categoryId, - label: label, +final ref = ExampleConnector.instance.createStaffAvailability( + staffId: staffId, + day: day, + slot: slot, ).ref(); ref.execute(); ``` -### updateCategory +### updateStaffAvailability #### Required Arguments ```dart -String id = ...; -ExampleConnector.instance.updateCategory( - id: id, +String staffId = ...; +DayOfWeek day = ...; +AvailabilitySlot slot = ...; +ExampleConnector.instance.updateStaffAvailability( + staffId: staffId, + day: day, + slot: slot, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateCategory, we created `updateCategoryBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateStaffAvailability, we created `updateStaffAvailabilityBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateCategoryVariablesBuilder { +class UpdateStaffAvailabilityVariablesBuilder { ... - UpdateCategoryVariablesBuilder categoryId(String? t) { - _categoryId.value = t; + UpdateStaffAvailabilityVariablesBuilder status(AvailabilityStatus? t) { + _status.value = t; return this; } - UpdateCategoryVariablesBuilder label(String? t) { - _label.value = t; - return this; - } - UpdateCategoryVariablesBuilder icon(String? t) { - _icon.value = t; + UpdateStaffAvailabilityVariablesBuilder notes(String? t) { + _notes.value = t; return this; } ... } -ExampleConnector.instance.updateCategory( - id: id, +ExampleConnector.instance.updateStaffAvailability( + staffId: staffId, + day: day, + slot: slot, ) -.categoryId(categoryId) -.label(label) -.icon(icon) +.status(status) +.notes(notes) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -15931,10 +14532,12 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateCategory( - id: id, +final result = await ExampleConnector.instance.updateStaffAvailability( + staffId: staffId, + day: day, + slot: slot, ); -updateCategoryData data = result.data; +updateStaffAvailabilityData data = result.data; final ref = result.ref; ``` @@ -15942,28 +14545,36 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String id = ...; +String staffId = ...; +DayOfWeek day = ...; +AvailabilitySlot slot = ...; -final ref = ExampleConnector.instance.updateCategory( - id: id, +final ref = ExampleConnector.instance.updateStaffAvailability( + staffId: staffId, + day: day, + slot: slot, ).ref(); ref.execute(); ``` -### deleteCategory +### deleteStaffAvailability #### Required Arguments ```dart -String id = ...; -ExampleConnector.instance.deleteCategory( - id: id, +String staffId = ...; +DayOfWeek day = ...; +AvailabilitySlot slot = ...; +ExampleConnector.instance.deleteStaffAvailability( + staffId: staffId, + day: day, + slot: slot, ).execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -15973,10 +14584,12 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteCategory( - id: id, +final result = await ExampleConnector.instance.deleteStaffAvailability( + staffId: staffId, + day: day, + slot: slot, ); -deleteCategoryData data = result.data; +deleteStaffAvailabilityData data = result.data; final ref = result.ref; ``` @@ -15984,10 +14597,14 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String id = ...; +String staffId = ...; +DayOfWeek day = ...; +AvailabilitySlot slot = ...; -final ref = ExampleConnector.instance.deleteCategory( - id: id, +final ref = ExampleConnector.instance.deleteStaffAvailability( + staffId: staffId, + day: day, + slot: slot, ).ref(); ref.execute(); ``` @@ -16201,6 +14818,214 @@ ref.execute(); ``` +### createAttireOption +#### Required Arguments +```dart +String itemId = ...; +String label = ...; +ExampleConnector.instance.createAttireOption( + itemId: itemId, + label: label, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createAttireOption, we created `createAttireOptionBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateAttireOptionVariablesBuilder { + ... + CreateAttireOptionVariablesBuilder icon(String? t) { + _icon.value = t; + return this; + } + CreateAttireOptionVariablesBuilder imageUrl(String? t) { + _imageUrl.value = t; + return this; + } + CreateAttireOptionVariablesBuilder isMandatory(bool? t) { + _isMandatory.value = t; + return this; + } + CreateAttireOptionVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createAttireOption( + itemId: itemId, + label: label, +) +.icon(icon) +.imageUrl(imageUrl) +.isMandatory(isMandatory) +.vendorId(vendorId) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createAttireOption( + itemId: itemId, + label: label, +); +createAttireOptionData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String itemId = ...; +String label = ...; + +final ref = ExampleConnector.instance.createAttireOption( + itemId: itemId, + label: label, +).ref(); +ref.execute(); +``` + + +### updateAttireOption +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateAttireOption( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateAttireOption, we created `updateAttireOptionBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateAttireOptionVariablesBuilder { + ... + UpdateAttireOptionVariablesBuilder itemId(String? t) { + _itemId.value = t; + return this; + } + UpdateAttireOptionVariablesBuilder label(String? t) { + _label.value = t; + return this; + } + UpdateAttireOptionVariablesBuilder icon(String? t) { + _icon.value = t; + return this; + } + UpdateAttireOptionVariablesBuilder imageUrl(String? t) { + _imageUrl.value = t; + return this; + } + UpdateAttireOptionVariablesBuilder isMandatory(bool? t) { + _isMandatory.value = t; + return this; + } + UpdateAttireOptionVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateAttireOption( + id: id, +) +.itemId(itemId) +.label(label) +.icon(icon) +.imageUrl(imageUrl) +.isMandatory(isMandatory) +.vendorId(vendorId) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateAttireOption( + id: id, +); +updateAttireOptionData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateAttireOption( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteAttireOption +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteAttireOption( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteAttireOption( + id: id, +); +deleteAttireOptionData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteAttireOption( + id: id, +).ref(); +ref.execute(); +``` + + ### createDocument #### Required Arguments ```dart @@ -16738,67 +15563,45 @@ ref.execute(); ``` -### createStaffAvailabilityStats +### createUserConversation #### Required Arguments ```dart -String staffId = ...; -ExampleConnector.instance.createStaffAvailabilityStats( - staffId: staffId, +String conversationId = ...; +String userId = ...; +ExampleConnector.instance.createUserConversation( + conversationId: conversationId, + userId: userId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createStaffAvailabilityStats, we created `createStaffAvailabilityStatsBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createUserConversation, we created `createUserConversationBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateStaffAvailabilityStatsVariablesBuilder { +class CreateUserConversationVariablesBuilder { ... - CreateStaffAvailabilityStatsVariablesBuilder needWorkIndex(int? t) { - _needWorkIndex.value = t; + CreateUserConversationVariablesBuilder unreadCount(int? t) { + _unreadCount.value = t; return this; } - CreateStaffAvailabilityStatsVariablesBuilder utilizationPercentage(int? t) { - _utilizationPercentage.value = t; - return this; - } - CreateStaffAvailabilityStatsVariablesBuilder predictedAvailabilityScore(int? t) { - _predictedAvailabilityScore.value = t; - return this; - } - CreateStaffAvailabilityStatsVariablesBuilder scheduledHoursThisPeriod(int? t) { - _scheduledHoursThisPeriod.value = t; - return this; - } - CreateStaffAvailabilityStatsVariablesBuilder desiredHoursThisPeriod(int? t) { - _desiredHoursThisPeriod.value = t; - return this; - } - CreateStaffAvailabilityStatsVariablesBuilder lastShiftDate(Timestamp? t) { - _lastShiftDate.value = t; - return this; - } - CreateStaffAvailabilityStatsVariablesBuilder acceptanceRate(int? t) { - _acceptanceRate.value = t; + CreateUserConversationVariablesBuilder lastReadAt(Timestamp? t) { + _lastReadAt.value = t; return this; } ... } -ExampleConnector.instance.createStaffAvailabilityStats( - staffId: staffId, +ExampleConnector.instance.createUserConversation( + conversationId: conversationId, + userId: userId, ) -.needWorkIndex(needWorkIndex) -.utilizationPercentage(utilizationPercentage) -.predictedAvailabilityScore(predictedAvailabilityScore) -.scheduledHoursThisPeriod(scheduledHoursThisPeriod) -.desiredHoursThisPeriod(desiredHoursThisPeriod) -.lastShiftDate(lastShiftDate) -.acceptanceRate(acceptanceRate) +.unreadCount(unreadCount) +.lastReadAt(lastReadAt) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -16808,10 +15611,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createStaffAvailabilityStats( - staffId: staffId, +final result = await ExampleConnector.instance.createUserConversation( + conversationId: conversationId, + userId: userId, ); -createStaffAvailabilityStatsData data = result.data; +createUserConversationData data = result.data; final ref = result.ref; ``` @@ -16819,76 +15623,56 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String staffId = ...; +String conversationId = ...; +String userId = ...; -final ref = ExampleConnector.instance.createStaffAvailabilityStats( - staffId: staffId, +final ref = ExampleConnector.instance.createUserConversation( + conversationId: conversationId, + userId: userId, ).ref(); ref.execute(); ``` -### updateStaffAvailabilityStats +### updateUserConversation #### Required Arguments ```dart -String staffId = ...; -ExampleConnector.instance.updateStaffAvailabilityStats( - staffId: staffId, +String conversationId = ...; +String userId = ...; +ExampleConnector.instance.updateUserConversation( + conversationId: conversationId, + userId: userId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateStaffAvailabilityStats, we created `updateStaffAvailabilityStatsBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateUserConversation, we created `updateUserConversationBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateStaffAvailabilityStatsVariablesBuilder { +class UpdateUserConversationVariablesBuilder { ... - UpdateStaffAvailabilityStatsVariablesBuilder needWorkIndex(int? t) { - _needWorkIndex.value = t; + UpdateUserConversationVariablesBuilder unreadCount(int? t) { + _unreadCount.value = t; return this; } - UpdateStaffAvailabilityStatsVariablesBuilder utilizationPercentage(int? t) { - _utilizationPercentage.value = t; - return this; - } - UpdateStaffAvailabilityStatsVariablesBuilder predictedAvailabilityScore(int? t) { - _predictedAvailabilityScore.value = t; - return this; - } - UpdateStaffAvailabilityStatsVariablesBuilder scheduledHoursThisPeriod(int? t) { - _scheduledHoursThisPeriod.value = t; - return this; - } - UpdateStaffAvailabilityStatsVariablesBuilder desiredHoursThisPeriod(int? t) { - _desiredHoursThisPeriod.value = t; - return this; - } - UpdateStaffAvailabilityStatsVariablesBuilder lastShiftDate(Timestamp? t) { - _lastShiftDate.value = t; - return this; - } - UpdateStaffAvailabilityStatsVariablesBuilder acceptanceRate(int? t) { - _acceptanceRate.value = t; + UpdateUserConversationVariablesBuilder lastReadAt(Timestamp? t) { + _lastReadAt.value = t; return this; } ... } -ExampleConnector.instance.updateStaffAvailabilityStats( - staffId: staffId, +ExampleConnector.instance.updateUserConversation( + conversationId: conversationId, + userId: userId, ) -.needWorkIndex(needWorkIndex) -.utilizationPercentage(utilizationPercentage) -.predictedAvailabilityScore(predictedAvailabilityScore) -.scheduledHoursThisPeriod(scheduledHoursThisPeriod) -.desiredHoursThisPeriod(desiredHoursThisPeriod) -.lastShiftDate(lastShiftDate) -.acceptanceRate(acceptanceRate) +.unreadCount(unreadCount) +.lastReadAt(lastReadAt) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -16898,10 +15682,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateStaffAvailabilityStats( - staffId: staffId, +final result = await ExampleConnector.instance.updateUserConversation( + conversationId: conversationId, + userId: userId, ); -updateStaffAvailabilityStatsData data = result.data; +updateUserConversationData data = result.data; final ref = result.ref; ``` @@ -16909,28 +15694,100 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String staffId = ...; +String conversationId = ...; +String userId = ...; -final ref = ExampleConnector.instance.updateStaffAvailabilityStats( - staffId: staffId, +final ref = ExampleConnector.instance.updateUserConversation( + conversationId: conversationId, + userId: userId, ).ref(); ref.execute(); ``` -### deleteStaffAvailabilityStats +### markConversationAsRead #### Required Arguments ```dart -String staffId = ...; -ExampleConnector.instance.deleteStaffAvailabilityStats( - staffId: staffId, +String conversationId = ...; +String userId = ...; +ExampleConnector.instance.markConversationAsRead( + conversationId: conversationId, + userId: userId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For markConversationAsRead, we created `markConversationAsReadBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class MarkConversationAsReadVariablesBuilder { + ... + MarkConversationAsReadVariablesBuilder lastReadAt(Timestamp? t) { + _lastReadAt.value = t; + return this; + } + + ... +} +ExampleConnector.instance.markConversationAsRead( + conversationId: conversationId, + userId: userId, +) +.lastReadAt(lastReadAt) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.markConversationAsRead( + conversationId: conversationId, + userId: userId, +); +markConversationAsReadData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String conversationId = ...; +String userId = ...; + +final ref = ExampleConnector.instance.markConversationAsRead( + conversationId: conversationId, + userId: userId, +).ref(); +ref.execute(); +``` + + +### incrementUnreadForUser +#### Required Arguments +```dart +String conversationId = ...; +String userId = ...; +int unreadCount = ...; +ExampleConnector.instance.incrementUnreadForUser( + conversationId: conversationId, + userId: userId, + unreadCount: unreadCount, ).execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -16940,10 +15797,12 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteStaffAvailabilityStats( - staffId: staffId, +final result = await ExampleConnector.instance.incrementUnreadForUser( + conversationId: conversationId, + userId: userId, + unreadCount: unreadCount, ); -deleteStaffAvailabilityStatsData data = result.data; +incrementUnreadForUserData data = result.data; final ref = result.ref; ``` @@ -16951,100 +15810,1605 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String staffId = ...; +String conversationId = ...; +String userId = ...; +int unreadCount = ...; -final ref = ExampleConnector.instance.deleteStaffAvailabilityStats( - staffId: staffId, +final ref = ExampleConnector.instance.incrementUnreadForUser( + conversationId: conversationId, + userId: userId, + unreadCount: unreadCount, ).ref(); ref.execute(); ``` -### createTeam +### deleteUserConversation #### Required Arguments ```dart -String teamName = ...; +String conversationId = ...; +String userId = ...; +ExampleConnector.instance.deleteUserConversation( + conversationId: conversationId, + userId: userId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteUserConversation( + conversationId: conversationId, + userId: userId, +); +deleteUserConversationData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String conversationId = ...; +String userId = ...; + +final ref = ExampleConnector.instance.deleteUserConversation( + conversationId: conversationId, + userId: userId, +).ref(); +ref.execute(); +``` + + +### createVendorBenefitPlan +#### Required Arguments +```dart +String vendorId = ...; +String title = ...; +ExampleConnector.instance.createVendorBenefitPlan( + vendorId: vendorId, + title: title, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createVendorBenefitPlan, we created `createVendorBenefitPlanBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateVendorBenefitPlanVariablesBuilder { + ... + CreateVendorBenefitPlanVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + CreateVendorBenefitPlanVariablesBuilder requestLabel(String? t) { + _requestLabel.value = t; + return this; + } + CreateVendorBenefitPlanVariablesBuilder total(int? t) { + _total.value = t; + return this; + } + CreateVendorBenefitPlanVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + CreateVendorBenefitPlanVariablesBuilder createdBy(String? t) { + _createdBy.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createVendorBenefitPlan( + vendorId: vendorId, + title: title, +) +.description(description) +.requestLabel(requestLabel) +.total(total) +.isActive(isActive) +.createdBy(createdBy) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createVendorBenefitPlan( + vendorId: vendorId, + title: title, +); +createVendorBenefitPlanData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; +String title = ...; + +final ref = ExampleConnector.instance.createVendorBenefitPlan( + vendorId: vendorId, + title: title, +).ref(); +ref.execute(); +``` + + +### updateVendorBenefitPlan +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateVendorBenefitPlan( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateVendorBenefitPlan, we created `updateVendorBenefitPlanBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateVendorBenefitPlanVariablesBuilder { + ... + UpdateVendorBenefitPlanVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + UpdateVendorBenefitPlanVariablesBuilder title(String? t) { + _title.value = t; + return this; + } + UpdateVendorBenefitPlanVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + UpdateVendorBenefitPlanVariablesBuilder requestLabel(String? t) { + _requestLabel.value = t; + return this; + } + UpdateVendorBenefitPlanVariablesBuilder total(int? t) { + _total.value = t; + return this; + } + UpdateVendorBenefitPlanVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + UpdateVendorBenefitPlanVariablesBuilder createdBy(String? t) { + _createdBy.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateVendorBenefitPlan( + id: id, +) +.vendorId(vendorId) +.title(title) +.description(description) +.requestLabel(requestLabel) +.total(total) +.isActive(isActive) +.createdBy(createdBy) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateVendorBenefitPlan( + id: id, +); +updateVendorBenefitPlanData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateVendorBenefitPlan( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteVendorBenefitPlan +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteVendorBenefitPlan( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteVendorBenefitPlan( + id: id, +); +deleteVendorBenefitPlanData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteVendorBenefitPlan( + id: id, +).ref(); +ref.execute(); +``` + + +### createClientFeedback +#### Required Arguments +```dart +String businessId = ...; +String vendorId = ...; +ExampleConnector.instance.createClientFeedback( + businessId: businessId, + vendorId: vendorId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createClientFeedback, we created `createClientFeedbackBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateClientFeedbackVariablesBuilder { + ... + CreateClientFeedbackVariablesBuilder rating(int? t) { + _rating.value = t; + return this; + } + CreateClientFeedbackVariablesBuilder comment(String? t) { + _comment.value = t; + return this; + } + CreateClientFeedbackVariablesBuilder date(Timestamp? t) { + _date.value = t; + return this; + } + CreateClientFeedbackVariablesBuilder createdBy(String? t) { + _createdBy.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createClientFeedback( + businessId: businessId, + vendorId: vendorId, +) +.rating(rating) +.comment(comment) +.date(date) +.createdBy(createdBy) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createClientFeedback( + businessId: businessId, + vendorId: vendorId, +); +createClientFeedbackData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessId = ...; +String vendorId = ...; + +final ref = ExampleConnector.instance.createClientFeedback( + businessId: businessId, + vendorId: vendorId, +).ref(); +ref.execute(); +``` + + +### updateClientFeedback +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateClientFeedback( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateClientFeedback, we created `updateClientFeedbackBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateClientFeedbackVariablesBuilder { + ... + UpdateClientFeedbackVariablesBuilder businessId(String? t) { + _businessId.value = t; + return this; + } + UpdateClientFeedbackVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + UpdateClientFeedbackVariablesBuilder rating(int? t) { + _rating.value = t; + return this; + } + UpdateClientFeedbackVariablesBuilder comment(String? t) { + _comment.value = t; + return this; + } + UpdateClientFeedbackVariablesBuilder date(Timestamp? t) { + _date.value = t; + return this; + } + UpdateClientFeedbackVariablesBuilder createdBy(String? t) { + _createdBy.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateClientFeedback( + id: id, +) +.businessId(businessId) +.vendorId(vendorId) +.rating(rating) +.comment(comment) +.date(date) +.createdBy(createdBy) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateClientFeedback( + id: id, +); +updateClientFeedbackData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateClientFeedback( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteClientFeedback +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteClientFeedback( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteClientFeedback( + id: id, +); +deleteClientFeedbackData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteClientFeedback( + id: id, +).ref(); +ref.execute(); +``` + + +### createRole +#### Required Arguments +```dart +String name = ...; +double costPerHour = ...; +String vendorId = ...; +String roleCategoryId = ...; +ExampleConnector.instance.createRole( + name: name, + costPerHour: costPerHour, + vendorId: vendorId, + roleCategoryId: roleCategoryId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createRole( + name: name, + costPerHour: costPerHour, + vendorId: vendorId, + roleCategoryId: roleCategoryId, +); +createRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String name = ...; +double costPerHour = ...; +String vendorId = ...; +String roleCategoryId = ...; + +final ref = ExampleConnector.instance.createRole( + name: name, + costPerHour: costPerHour, + vendorId: vendorId, + roleCategoryId: roleCategoryId, +).ref(); +ref.execute(); +``` + + +### updateRole +#### Required Arguments +```dart +String id = ...; +String roleCategoryId = ...; +ExampleConnector.instance.updateRole( + id: id, + roleCategoryId: roleCategoryId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateRole, we created `updateRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateRoleVariablesBuilder { + ... + UpdateRoleVariablesBuilder name(String? t) { + _name.value = t; + return this; + } + UpdateRoleVariablesBuilder costPerHour(double? t) { + _costPerHour.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateRole( + id: id, + roleCategoryId: roleCategoryId, +) +.name(name) +.costPerHour(costPerHour) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateRole( + id: id, + roleCategoryId: roleCategoryId, +); +updateRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; +String roleCategoryId = ...; + +final ref = ExampleConnector.instance.updateRole( + id: id, + roleCategoryId: roleCategoryId, +).ref(); +ref.execute(); +``` + + +### deleteRole +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteRole( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteRole( + id: id, +); +deleteRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteRole( + id: id, +).ref(); +ref.execute(); +``` + + +### createTask +#### Required Arguments +```dart +String taskName = ...; +TaskPriority priority = ...; +TaskStatus status = ...; String ownerId = ...; -String ownerName = ...; -String ownerRole = ...; -ExampleConnector.instance.createTeam( - teamName: teamName, +ExampleConnector.instance.createTask( + taskName: taskName, + priority: priority, + status: status, ownerId: ownerId, - ownerName: ownerName, - ownerRole: ownerRole, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createTeam, we created `createTeamBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createTask, we created `createTaskBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateTeamVariablesBuilder { +class CreateTaskVariablesBuilder { ... - CreateTeamVariablesBuilder email(String? t) { - _email.value = t; + CreateTaskVariablesBuilder description(String? t) { + _description.value = t; return this; } - CreateTeamVariablesBuilder companyLogo(String? t) { - _companyLogo.value = t; + CreateTaskVariablesBuilder dueDate(Timestamp? t) { + _dueDate.value = t; return this; } - CreateTeamVariablesBuilder totalMembers(int? t) { - _totalMembers.value = t; + CreateTaskVariablesBuilder progress(int? t) { + _progress.value = t; return this; } - CreateTeamVariablesBuilder activeMembers(int? t) { - _activeMembers.value = t; + CreateTaskVariablesBuilder orderIndex(int? t) { + _orderIndex.value = t; return this; } - CreateTeamVariablesBuilder totalHubs(int? t) { - _totalHubs.value = t; + CreateTaskVariablesBuilder commentCount(int? t) { + _commentCount.value = t; return this; } - CreateTeamVariablesBuilder departments(AnyValue? t) { + CreateTaskVariablesBuilder attachmentCount(int? t) { + _attachmentCount.value = t; + return this; + } + CreateTaskVariablesBuilder files(AnyValue? t) { + _files.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createTask( + taskName: taskName, + priority: priority, + status: status, + ownerId: ownerId, +) +.description(description) +.dueDate(dueDate) +.progress(progress) +.orderIndex(orderIndex) +.commentCount(commentCount) +.attachmentCount(attachmentCount) +.files(files) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createTask( + taskName: taskName, + priority: priority, + status: status, + ownerId: ownerId, +); +createTaskData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String taskName = ...; +TaskPriority priority = ...; +TaskStatus status = ...; +String ownerId = ...; + +final ref = ExampleConnector.instance.createTask( + taskName: taskName, + priority: priority, + status: status, + ownerId: ownerId, +).ref(); +ref.execute(); +``` + + +### updateTask +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateTask( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateTask, we created `updateTaskBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateTaskVariablesBuilder { + ... + UpdateTaskVariablesBuilder taskName(String? t) { + _taskName.value = t; + return this; + } + UpdateTaskVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + UpdateTaskVariablesBuilder priority(TaskPriority? t) { + _priority.value = t; + return this; + } + UpdateTaskVariablesBuilder status(TaskStatus? t) { + _status.value = t; + return this; + } + UpdateTaskVariablesBuilder dueDate(Timestamp? t) { + _dueDate.value = t; + return this; + } + UpdateTaskVariablesBuilder progress(int? t) { + _progress.value = t; + return this; + } + UpdateTaskVariablesBuilder assignedMembers(AnyValue? t) { + _assignedMembers.value = t; + return this; + } + UpdateTaskVariablesBuilder orderIndex(int? t) { + _orderIndex.value = t; + return this; + } + UpdateTaskVariablesBuilder commentCount(int? t) { + _commentCount.value = t; + return this; + } + UpdateTaskVariablesBuilder attachmentCount(int? t) { + _attachmentCount.value = t; + return this; + } + UpdateTaskVariablesBuilder files(AnyValue? t) { + _files.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateTask( + id: id, +) +.taskName(taskName) +.description(description) +.priority(priority) +.status(status) +.dueDate(dueDate) +.progress(progress) +.assignedMembers(assignedMembers) +.orderIndex(orderIndex) +.commentCount(commentCount) +.attachmentCount(attachmentCount) +.files(files) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateTask( + id: id, +); +updateTaskData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateTask( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteTask +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteTask( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteTask( + id: id, +); +deleteTaskData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteTask( + id: id, +).ref(); +ref.execute(); +``` + + +### createCategory +#### Required Arguments +```dart +String categoryId = ...; +String label = ...; +ExampleConnector.instance.createCategory( + categoryId: categoryId, + label: label, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createCategory, we created `createCategoryBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateCategoryVariablesBuilder { + ... + CreateCategoryVariablesBuilder icon(String? t) { + _icon.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createCategory( + categoryId: categoryId, + label: label, +) +.icon(icon) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createCategory( + categoryId: categoryId, + label: label, +); +createCategoryData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String categoryId = ...; +String label = ...; + +final ref = ExampleConnector.instance.createCategory( + categoryId: categoryId, + label: label, +).ref(); +ref.execute(); +``` + + +### updateCategory +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateCategory( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateCategory, we created `updateCategoryBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateCategoryVariablesBuilder { + ... + UpdateCategoryVariablesBuilder categoryId(String? t) { + _categoryId.value = t; + return this; + } + UpdateCategoryVariablesBuilder label(String? t) { + _label.value = t; + return this; + } + UpdateCategoryVariablesBuilder icon(String? t) { + _icon.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateCategory( + id: id, +) +.categoryId(categoryId) +.label(label) +.icon(icon) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateCategory( + id: id, +); +updateCategoryData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateCategory( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteCategory +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteCategory( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteCategory( + id: id, +); +deleteCategoryData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteCategory( + id: id, +).ref(); +ref.execute(); +``` + + +### createCourse +#### Required Arguments +```dart +String categoryId = ...; +ExampleConnector.instance.createCourse( + categoryId: categoryId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createCourse, we created `createCourseBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateCourseVariablesBuilder { + ... + + CreateCourseVariablesBuilder title(String? t) { + _title.value = t; + return this; + } + CreateCourseVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + CreateCourseVariablesBuilder thumbnailUrl(String? t) { + _thumbnailUrl.value = t; + return this; + } + CreateCourseVariablesBuilder durationMinutes(int? t) { + _durationMinutes.value = t; + return this; + } + CreateCourseVariablesBuilder xpReward(int? t) { + _xpReward.value = t; + return this; + } + CreateCourseVariablesBuilder levelRequired(String? t) { + _levelRequired.value = t; + return this; + } + CreateCourseVariablesBuilder isCertification(bool? t) { + _isCertification.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createCourse( + categoryId: categoryId, +) +.title(title) +.description(description) +.thumbnailUrl(thumbnailUrl) +.durationMinutes(durationMinutes) +.xpReward(xpReward) +.levelRequired(levelRequired) +.isCertification(isCertification) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createCourse( + categoryId: categoryId, +); +createCourseData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String categoryId = ...; + +final ref = ExampleConnector.instance.createCourse( + categoryId: categoryId, +).ref(); +ref.execute(); +``` + + +### updateCourse +#### Required Arguments +```dart +String id = ...; +String categoryId = ...; +ExampleConnector.instance.updateCourse( + id: id, + categoryId: categoryId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateCourse, we created `updateCourseBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateCourseVariablesBuilder { + ... + UpdateCourseVariablesBuilder title(String? t) { + _title.value = t; + return this; + } + UpdateCourseVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + UpdateCourseVariablesBuilder thumbnailUrl(String? t) { + _thumbnailUrl.value = t; + return this; + } + UpdateCourseVariablesBuilder durationMinutes(int? t) { + _durationMinutes.value = t; + return this; + } + UpdateCourseVariablesBuilder xpReward(int? t) { + _xpReward.value = t; + return this; + } + UpdateCourseVariablesBuilder levelRequired(String? t) { + _levelRequired.value = t; + return this; + } + UpdateCourseVariablesBuilder isCertification(bool? t) { + _isCertification.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateCourse( + id: id, + categoryId: categoryId, +) +.title(title) +.description(description) +.thumbnailUrl(thumbnailUrl) +.durationMinutes(durationMinutes) +.xpReward(xpReward) +.levelRequired(levelRequired) +.isCertification(isCertification) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateCourse( + id: id, + categoryId: categoryId, +); +updateCourseData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; +String categoryId = ...; + +final ref = ExampleConnector.instance.updateCourse( + id: id, + categoryId: categoryId, +).ref(); +ref.execute(); +``` + + +### deleteCourse +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteCourse( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteCourse( + id: id, +); +deleteCourseData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteCourse( + id: id, +).ref(); +ref.execute(); +``` + + +### createMessage +#### Required Arguments +```dart +String conversationId = ...; +String senderId = ...; +String content = ...; +ExampleConnector.instance.createMessage( + conversationId: conversationId, + senderId: senderId, + content: content, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createMessage, we created `createMessageBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateMessageVariablesBuilder { + ... + CreateMessageVariablesBuilder isSystem(bool? t) { + _isSystem.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createMessage( + conversationId: conversationId, + senderId: senderId, + content: content, +) +.isSystem(isSystem) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createMessage( + conversationId: conversationId, + senderId: senderId, + content: content, +); +createMessageData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String conversationId = ...; +String senderId = ...; +String content = ...; + +final ref = ExampleConnector.instance.createMessage( + conversationId: conversationId, + senderId: senderId, + content: content, +).ref(); +ref.execute(); +``` + + +### updateMessage +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateMessage( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateMessage, we created `updateMessageBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateMessageVariablesBuilder { + ... + UpdateMessageVariablesBuilder conversationId(String? t) { + _conversationId.value = t; + return this; + } + UpdateMessageVariablesBuilder senderId(String? t) { + _senderId.value = t; + return this; + } + UpdateMessageVariablesBuilder content(String? t) { + _content.value = t; + return this; + } + UpdateMessageVariablesBuilder isSystem(bool? t) { + _isSystem.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateMessage( + id: id, +) +.conversationId(conversationId) +.senderId(senderId) +.content(content) +.isSystem(isSystem) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateMessage( + id: id, +); +updateMessageData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateMessage( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteMessage +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteMessage( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteMessage( + id: id, +); +deleteMessageData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteMessage( + id: id, +).ref(); +ref.execute(); +``` + + +### createTeamHub +#### Required Arguments +```dart +String teamId = ...; +String hubName = ...; +String address = ...; +ExampleConnector.instance.createTeamHub( + teamId: teamId, + hubName: hubName, + address: address, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createTeamHub, we created `createTeamHubBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateTeamHubVariablesBuilder { + ... + CreateTeamHubVariablesBuilder placeId(String? t) { + _placeId.value = t; + return this; + } + CreateTeamHubVariablesBuilder latitude(double? t) { + _latitude.value = t; + return this; + } + CreateTeamHubVariablesBuilder longitude(double? t) { + _longitude.value = t; + return this; + } + CreateTeamHubVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + CreateTeamHubVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + CreateTeamHubVariablesBuilder street(String? t) { + _street.value = t; + return this; + } + CreateTeamHubVariablesBuilder country(String? t) { + _country.value = t; + return this; + } + CreateTeamHubVariablesBuilder zipCode(String? t) { + _zipCode.value = t; + return this; + } + CreateTeamHubVariablesBuilder managerName(String? t) { + _managerName.value = t; + return this; + } + CreateTeamHubVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + CreateTeamHubVariablesBuilder departments(AnyValue? t) { _departments.value = t; return this; } - CreateTeamVariablesBuilder favoriteStaffCount(int? t) { - _favoriteStaffCount.value = t; - return this; - } - CreateTeamVariablesBuilder blockedStaffCount(int? t) { - _blockedStaffCount.value = t; - return this; - } - CreateTeamVariablesBuilder favoriteStaff(AnyValue? t) { - _favoriteStaff.value = t; - return this; - } - CreateTeamVariablesBuilder blockedStaff(AnyValue? t) { - _blockedStaff.value = t; - return this; - } ... } -ExampleConnector.instance.createTeam( - teamName: teamName, - ownerId: ownerId, - ownerName: ownerName, - ownerRole: ownerRole, +ExampleConnector.instance.createTeamHub( + teamId: teamId, + hubName: hubName, + address: address, ) -.email(email) -.companyLogo(companyLogo) -.totalMembers(totalMembers) -.activeMembers(activeMembers) -.totalHubs(totalHubs) +.placeId(placeId) +.latitude(latitude) +.longitude(longitude) +.city(city) +.state(state) +.street(street) +.country(country) +.zipCode(zipCode) +.managerName(managerName) +.isActive(isActive) .departments(departments) -.favoriteStaffCount(favoriteStaffCount) -.blockedStaffCount(blockedStaffCount) -.favoriteStaff(favoriteStaff) -.blockedStaff(blockedStaff) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -17054,13 +17418,12 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createTeam( - teamName: teamName, - ownerId: ownerId, - ownerName: ownerName, - ownerRole: ownerRole, +final result = await ExampleConnector.instance.createTeamHub( + teamId: teamId, + hubName: hubName, + address: address, ); -createTeamData data = result.data; +createTeamHubData data = result.data; final ref = result.ref; ``` @@ -17068,107 +17431,115 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String teamName = ...; -String ownerId = ...; -String ownerName = ...; -String ownerRole = ...; +String teamId = ...; +String hubName = ...; +String address = ...; -final ref = ExampleConnector.instance.createTeam( - teamName: teamName, - ownerId: ownerId, - ownerName: ownerName, - ownerRole: ownerRole, +final ref = ExampleConnector.instance.createTeamHub( + teamId: teamId, + hubName: hubName, + address: address, ).ref(); ref.execute(); ``` -### updateTeam +### updateTeamHub #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateTeam( +ExampleConnector.instance.updateTeamHub( id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateTeam, we created `updateTeamBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateTeamHub, we created `updateTeamHubBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateTeamVariablesBuilder { +class UpdateTeamHubVariablesBuilder { ... - UpdateTeamVariablesBuilder teamName(String? t) { - _teamName.value = t; + UpdateTeamHubVariablesBuilder teamId(String? t) { + _teamId.value = t; return this; } - UpdateTeamVariablesBuilder ownerName(String? t) { - _ownerName.value = t; + UpdateTeamHubVariablesBuilder hubName(String? t) { + _hubName.value = t; return this; } - UpdateTeamVariablesBuilder ownerRole(String? t) { - _ownerRole.value = t; + UpdateTeamHubVariablesBuilder address(String? t) { + _address.value = t; return this; } - UpdateTeamVariablesBuilder companyLogo(String? t) { - _companyLogo.value = t; + UpdateTeamHubVariablesBuilder placeId(String? t) { + _placeId.value = t; return this; } - UpdateTeamVariablesBuilder totalMembers(int? t) { - _totalMembers.value = t; + UpdateTeamHubVariablesBuilder latitude(double? t) { + _latitude.value = t; return this; } - UpdateTeamVariablesBuilder activeMembers(int? t) { - _activeMembers.value = t; + UpdateTeamHubVariablesBuilder longitude(double? t) { + _longitude.value = t; return this; } - UpdateTeamVariablesBuilder totalHubs(int? t) { - _totalHubs.value = t; + UpdateTeamHubVariablesBuilder city(String? t) { + _city.value = t; return this; } - UpdateTeamVariablesBuilder departments(AnyValue? t) { + UpdateTeamHubVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + UpdateTeamHubVariablesBuilder street(String? t) { + _street.value = t; + return this; + } + UpdateTeamHubVariablesBuilder country(String? t) { + _country.value = t; + return this; + } + UpdateTeamHubVariablesBuilder zipCode(String? t) { + _zipCode.value = t; + return this; + } + UpdateTeamHubVariablesBuilder managerName(String? t) { + _managerName.value = t; + return this; + } + UpdateTeamHubVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + UpdateTeamHubVariablesBuilder departments(AnyValue? t) { _departments.value = t; return this; } - UpdateTeamVariablesBuilder favoriteStaffCount(int? t) { - _favoriteStaffCount.value = t; - return this; - } - UpdateTeamVariablesBuilder blockedStaffCount(int? t) { - _blockedStaffCount.value = t; - return this; - } - UpdateTeamVariablesBuilder favoriteStaff(AnyValue? t) { - _favoriteStaff.value = t; - return this; - } - UpdateTeamVariablesBuilder blockedStaff(AnyValue? t) { - _blockedStaff.value = t; - return this; - } ... } -ExampleConnector.instance.updateTeam( +ExampleConnector.instance.updateTeamHub( id: id, ) -.teamName(teamName) -.ownerName(ownerName) -.ownerRole(ownerRole) -.companyLogo(companyLogo) -.totalMembers(totalMembers) -.activeMembers(activeMembers) -.totalHubs(totalHubs) +.teamId(teamId) +.hubName(hubName) +.address(address) +.placeId(placeId) +.latitude(latitude) +.longitude(longitude) +.city(city) +.state(state) +.street(street) +.country(country) +.zipCode(zipCode) +.managerName(managerName) +.isActive(isActive) .departments(departments) -.favoriteStaffCount(favoriteStaffCount) -.blockedStaffCount(blockedStaffCount) -.favoriteStaff(favoriteStaff) -.blockedStaff(blockedStaff) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -17178,10 +17549,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateTeam( +final result = await ExampleConnector.instance.updateTeamHub( id: id, ); -updateTeamData data = result.data; +updateTeamHubData data = result.data; final ref = result.ref; ``` @@ -17191,18 +17562,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateTeam( +final ref = ExampleConnector.instance.updateTeamHub( id: id, ).ref(); ref.execute(); ``` -### deleteTeam +### deleteTeamHub #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteTeam( +ExampleConnector.instance.deleteTeamHub( id: id, ).execute(); ``` @@ -17210,7 +17581,7 @@ ExampleConnector.instance.deleteTeam( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -17220,10 +17591,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteTeam( +final result = await ExampleConnector.instance.deleteTeamHub( id: id, ); -deleteTeamData data = result.data; +deleteTeamHubData data = result.data; final ref = result.ref; ``` @@ -17233,62 +17604,70 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteTeam( +final ref = ExampleConnector.instance.deleteTeamHub( id: id, ).ref(); ref.execute(); ``` -### CreateUser +### createTeamMember #### Required Arguments ```dart -String id = ...; -UserBaseRole role = ...; -ExampleConnector.instance.createUser( - id: id, +String teamId = ...; +TeamMemberRole role = ...; +String userId = ...; +ExampleConnector.instance.createTeamMember( + teamId: teamId, role: role, + userId: userId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For CreateUser, we created `CreateUserBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createTeamMember, we created `createTeamMemberBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateUserVariablesBuilder { +class CreateTeamMemberVariablesBuilder { ... - CreateUserVariablesBuilder email(String? t) { - _email.value = t; + CreateTeamMemberVariablesBuilder title(String? t) { + _title.value = t; return this; } - CreateUserVariablesBuilder fullName(String? t) { - _fullName.value = t; + CreateTeamMemberVariablesBuilder department(String? t) { + _department.value = t; return this; } - CreateUserVariablesBuilder userRole(String? t) { - _userRole.value = t; + CreateTeamMemberVariablesBuilder teamHubId(String? t) { + _teamHubId.value = t; return this; } - CreateUserVariablesBuilder photoUrl(String? t) { - _photoUrl.value = t; + CreateTeamMemberVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + CreateTeamMemberVariablesBuilder inviteStatus(TeamMemberInviteStatus? t) { + _inviteStatus.value = t; return this; } ... } -ExampleConnector.instance.createUser( - id: id, +ExampleConnector.instance.createTeamMember( + teamId: teamId, role: role, + userId: userId, ) -.email(email) -.fullName(fullName) -.userRole(userRole) -.photoUrl(photoUrl) +.title(title) +.department(department) +.teamHubId(teamHubId) +.isActive(isActive) +.inviteStatus(inviteStatus) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -17298,11 +17677,12 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createUser( - id: id, +final result = await ExampleConnector.instance.createTeamMember( + teamId: teamId, role: role, + userId: userId, ); -CreateUserData data = result.data; +createTeamMemberData data = result.data; final ref = result.ref; ``` @@ -17310,68 +17690,75 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String id = ...; -UserBaseRole role = ...; +String teamId = ...; +TeamMemberRole role = ...; +String userId = ...; -final ref = ExampleConnector.instance.createUser( - id: id, +final ref = ExampleConnector.instance.createTeamMember( + teamId: teamId, role: role, + userId: userId, ).ref(); ref.execute(); ``` -### UpdateUser +### updateTeamMember #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateUser( +ExampleConnector.instance.updateTeamMember( id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For UpdateUser, we created `UpdateUserBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateTeamMember, we created `updateTeamMemberBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateUserVariablesBuilder { +class UpdateTeamMemberVariablesBuilder { ... - UpdateUserVariablesBuilder email(String? t) { - _email.value = t; - return this; - } - UpdateUserVariablesBuilder fullName(String? t) { - _fullName.value = t; - return this; - } - UpdateUserVariablesBuilder role(UserBaseRole? t) { + UpdateTeamMemberVariablesBuilder role(TeamMemberRole? t) { _role.value = t; return this; } - UpdateUserVariablesBuilder userRole(String? t) { - _userRole.value = t; + UpdateTeamMemberVariablesBuilder title(String? t) { + _title.value = t; return this; } - UpdateUserVariablesBuilder photoUrl(String? t) { - _photoUrl.value = t; + UpdateTeamMemberVariablesBuilder department(String? t) { + _department.value = t; + return this; + } + UpdateTeamMemberVariablesBuilder teamHubId(String? t) { + _teamHubId.value = t; + return this; + } + UpdateTeamMemberVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + UpdateTeamMemberVariablesBuilder inviteStatus(TeamMemberInviteStatus? t) { + _inviteStatus.value = t; return this; } ... } -ExampleConnector.instance.updateUser( +ExampleConnector.instance.updateTeamMember( id: id, ) -.email(email) -.fullName(fullName) .role(role) -.userRole(userRole) -.photoUrl(photoUrl) +.title(title) +.department(department) +.teamHubId(teamHubId) +.isActive(isActive) +.inviteStatus(inviteStatus) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -17381,10 +17768,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateUser( +final result = await ExampleConnector.instance.updateTeamMember( id: id, ); -UpdateUserData data = result.data; +updateTeamMemberData data = result.data; final ref = result.ref; ``` @@ -17394,18 +17781,149 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateUser( +final ref = ExampleConnector.instance.updateTeamMember( id: id, ).ref(); ref.execute(); ``` -### DeleteUser +### updateTeamMemberInviteStatus #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteUser( +TeamMemberInviteStatus inviteStatus = ...; +ExampleConnector.instance.updateTeamMemberInviteStatus( + id: id, + inviteStatus: inviteStatus, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateTeamMemberInviteStatus( + id: id, + inviteStatus: inviteStatus, +); +updateTeamMemberInviteStatusData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; +TeamMemberInviteStatus inviteStatus = ...; + +final ref = ExampleConnector.instance.updateTeamMemberInviteStatus( + id: id, + inviteStatus: inviteStatus, +).ref(); +ref.execute(); +``` + + +### acceptInviteByCode +#### Required Arguments +```dart +String inviteCode = ...; +ExampleConnector.instance.acceptInviteByCode( + inviteCode: inviteCode, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.acceptInviteByCode( + inviteCode: inviteCode, +); +acceptInviteByCodeData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String inviteCode = ...; + +final ref = ExampleConnector.instance.acceptInviteByCode( + inviteCode: inviteCode, +).ref(); +ref.execute(); +``` + + +### cancelInviteByCode +#### Required Arguments +```dart +String inviteCode = ...; +ExampleConnector.instance.cancelInviteByCode( + inviteCode: inviteCode, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.cancelInviteByCode( + inviteCode: inviteCode, +); +cancelInviteByCodeData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String inviteCode = ...; + +final ref = ExampleConnector.instance.cancelInviteByCode( + inviteCode: inviteCode, +).ref(); +ref.execute(); +``` + + +### deleteTeamMember +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteTeamMember( id: id, ).execute(); ``` @@ -17413,7 +17931,7 @@ ExampleConnector.instance.deleteUser( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -17423,10 +17941,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteUser( +final result = await ExampleConnector.instance.deleteTeamMember( id: id, ); -DeleteUserData data = result.data; +deleteTeamMemberData data = result.data; final ref = result.ref; ``` @@ -17436,7 +17954,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteUser( +final ref = ExampleConnector.instance.deleteTeamMember( id: id, ).ref(); ref.execute(); @@ -17786,848 +18304,50 @@ ref.execute(); ``` -### createBenefitsData -#### Required Arguments -```dart -String vendorBenefitPlanId = ...; -String staffId = ...; -int current = ...; -ExampleConnector.instance.createBenefitsData( - vendorBenefitPlanId: vendorBenefitPlanId, - staffId: staffId, - current: current, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createBenefitsData( - vendorBenefitPlanId: vendorBenefitPlanId, - staffId: staffId, - current: current, -); -createBenefitsDataData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorBenefitPlanId = ...; -String staffId = ...; -int current = ...; - -final ref = ExampleConnector.instance.createBenefitsData( - vendorBenefitPlanId: vendorBenefitPlanId, - staffId: staffId, - current: current, -).ref(); -ref.execute(); -``` - - -### updateBenefitsData -#### Required Arguments -```dart -String staffId = ...; -String vendorBenefitPlanId = ...; -ExampleConnector.instance.updateBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateBenefitsData, we created `updateBenefitsDataBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateBenefitsDataVariablesBuilder { - ... - UpdateBenefitsDataVariablesBuilder current(int? t) { - _current.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -) -.current(current) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -); -updateBenefitsDataData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String vendorBenefitPlanId = ...; - -final ref = ExampleConnector.instance.updateBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -).ref(); -ref.execute(); -``` - - -### deleteBenefitsData -#### Required Arguments -```dart -String staffId = ...; -String vendorBenefitPlanId = ...; -ExampleConnector.instance.deleteBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -); -deleteBenefitsDataData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String staffId = ...; -String vendorBenefitPlanId = ...; - -final ref = ExampleConnector.instance.deleteBenefitsData( - staffId: staffId, - vendorBenefitPlanId: vendorBenefitPlanId, -).ref(); -ref.execute(); -``` - - -### createShiftRole -#### Required Arguments -```dart -String shiftId = ...; -String roleId = ...; -int count = ...; -ExampleConnector.instance.createShiftRole( - shiftId: shiftId, - roleId: roleId, - count: count, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createShiftRole, we created `createShiftRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateShiftRoleVariablesBuilder { - ... - CreateShiftRoleVariablesBuilder assigned(int? t) { - _assigned.value = t; - return this; - } - CreateShiftRoleVariablesBuilder startTime(Timestamp? t) { - _startTime.value = t; - return this; - } - CreateShiftRoleVariablesBuilder endTime(Timestamp? t) { - _endTime.value = t; - return this; - } - CreateShiftRoleVariablesBuilder hours(double? t) { - _hours.value = t; - return this; - } - CreateShiftRoleVariablesBuilder department(String? t) { - _department.value = t; - return this; - } - CreateShiftRoleVariablesBuilder uniform(String? t) { - _uniform.value = t; - return this; - } - CreateShiftRoleVariablesBuilder breakType(BreakDuration? t) { - _breakType.value = t; - return this; - } - CreateShiftRoleVariablesBuilder totalValue(double? t) { - _totalValue.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createShiftRole( - shiftId: shiftId, - roleId: roleId, - count: count, -) -.assigned(assigned) -.startTime(startTime) -.endTime(endTime) -.hours(hours) -.department(department) -.uniform(uniform) -.breakType(breakType) -.totalValue(totalValue) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createShiftRole( - shiftId: shiftId, - roleId: roleId, - count: count, -); -createShiftRoleData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String shiftId = ...; -String roleId = ...; -int count = ...; - -final ref = ExampleConnector.instance.createShiftRole( - shiftId: shiftId, - roleId: roleId, - count: count, -).ref(); -ref.execute(); -``` - - -### updateShiftRole -#### Required Arguments -```dart -String shiftId = ...; -String roleId = ...; -ExampleConnector.instance.updateShiftRole( - shiftId: shiftId, - roleId: roleId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateShiftRole, we created `updateShiftRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateShiftRoleVariablesBuilder { - ... - UpdateShiftRoleVariablesBuilder count(int? t) { - _count.value = t; - return this; - } - UpdateShiftRoleVariablesBuilder assigned(int? t) { - _assigned.value = t; - return this; - } - UpdateShiftRoleVariablesBuilder startTime(Timestamp? t) { - _startTime.value = t; - return this; - } - UpdateShiftRoleVariablesBuilder endTime(Timestamp? t) { - _endTime.value = t; - return this; - } - UpdateShiftRoleVariablesBuilder hours(double? t) { - _hours.value = t; - return this; - } - UpdateShiftRoleVariablesBuilder department(String? t) { - _department.value = t; - return this; - } - UpdateShiftRoleVariablesBuilder uniform(String? t) { - _uniform.value = t; - return this; - } - UpdateShiftRoleVariablesBuilder breakType(BreakDuration? t) { - _breakType.value = t; - return this; - } - UpdateShiftRoleVariablesBuilder totalValue(double? t) { - _totalValue.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateShiftRole( - shiftId: shiftId, - roleId: roleId, -) -.count(count) -.assigned(assigned) -.startTime(startTime) -.endTime(endTime) -.hours(hours) -.department(department) -.uniform(uniform) -.breakType(breakType) -.totalValue(totalValue) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateShiftRole( - shiftId: shiftId, - roleId: roleId, -); -updateShiftRoleData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String shiftId = ...; -String roleId = ...; - -final ref = ExampleConnector.instance.updateShiftRole( - shiftId: shiftId, - roleId: roleId, -).ref(); -ref.execute(); -``` - - -### deleteShiftRole -#### Required Arguments -```dart -String shiftId = ...; -String roleId = ...; -ExampleConnector.instance.deleteShiftRole( - shiftId: shiftId, - roleId: roleId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteShiftRole( - shiftId: shiftId, - roleId: roleId, -); -deleteShiftRoleData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String shiftId = ...; -String roleId = ...; - -final ref = ExampleConnector.instance.deleteShiftRole( - shiftId: shiftId, - roleId: roleId, -).ref(); -ref.execute(); -``` - - -### createShift -#### Required Arguments -```dart -String title = ...; -String orderId = ...; -ExampleConnector.instance.createShift( - title: title, - orderId: orderId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createShift, we created `createShiftBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateShiftVariablesBuilder { - ... - CreateShiftVariablesBuilder date(Timestamp? t) { - _date.value = t; - return this; - } - CreateShiftVariablesBuilder startTime(Timestamp? t) { - _startTime.value = t; - return this; - } - CreateShiftVariablesBuilder endTime(Timestamp? t) { - _endTime.value = t; - return this; - } - CreateShiftVariablesBuilder hours(double? t) { - _hours.value = t; - return this; - } - CreateShiftVariablesBuilder cost(double? t) { - _cost.value = t; - return this; - } - CreateShiftVariablesBuilder location(String? t) { - _location.value = t; - return this; - } - CreateShiftVariablesBuilder locationAddress(String? t) { - _locationAddress.value = t; - return this; - } - CreateShiftVariablesBuilder latitude(double? t) { - _latitude.value = t; - return this; - } - CreateShiftVariablesBuilder longitude(double? t) { - _longitude.value = t; - return this; - } - CreateShiftVariablesBuilder placeId(String? t) { - _placeId.value = t; - return this; - } - CreateShiftVariablesBuilder city(String? t) { - _city.value = t; - return this; - } - CreateShiftVariablesBuilder state(String? t) { - _state.value = t; - return this; - } - CreateShiftVariablesBuilder street(String? t) { - _street.value = t; - return this; - } - CreateShiftVariablesBuilder country(String? t) { - _country.value = t; - return this; - } - CreateShiftVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - CreateShiftVariablesBuilder status(ShiftStatus? t) { - _status.value = t; - return this; - } - CreateShiftVariablesBuilder workersNeeded(int? t) { - _workersNeeded.value = t; - return this; - } - CreateShiftVariablesBuilder filled(int? t) { - _filled.value = t; - return this; - } - CreateShiftVariablesBuilder filledAt(Timestamp? t) { - _filledAt.value = t; - return this; - } - CreateShiftVariablesBuilder managers(List? t) { - _managers.value = t; - return this; - } - CreateShiftVariablesBuilder durationDays(int? t) { - _durationDays.value = t; - return this; - } - CreateShiftVariablesBuilder createdBy(String? t) { - _createdBy.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createShift( - title: title, - orderId: orderId, -) -.date(date) -.startTime(startTime) -.endTime(endTime) -.hours(hours) -.cost(cost) -.location(location) -.locationAddress(locationAddress) -.latitude(latitude) -.longitude(longitude) -.placeId(placeId) -.city(city) -.state(state) -.street(street) -.country(country) -.description(description) -.status(status) -.workersNeeded(workersNeeded) -.filled(filled) -.filledAt(filledAt) -.managers(managers) -.durationDays(durationDays) -.createdBy(createdBy) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createShift( - title: title, - orderId: orderId, -); -createShiftData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String title = ...; -String orderId = ...; - -final ref = ExampleConnector.instance.createShift( - title: title, - orderId: orderId, -).ref(); -ref.execute(); -``` - - -### updateShift -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateShift( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateShift, we created `updateShiftBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateShiftVariablesBuilder { - ... - UpdateShiftVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - UpdateShiftVariablesBuilder orderId(String? t) { - _orderId.value = t; - return this; - } - UpdateShiftVariablesBuilder date(Timestamp? t) { - _date.value = t; - return this; - } - UpdateShiftVariablesBuilder startTime(Timestamp? t) { - _startTime.value = t; - return this; - } - UpdateShiftVariablesBuilder endTime(Timestamp? t) { - _endTime.value = t; - return this; - } - UpdateShiftVariablesBuilder hours(double? t) { - _hours.value = t; - return this; - } - UpdateShiftVariablesBuilder cost(double? t) { - _cost.value = t; - return this; - } - UpdateShiftVariablesBuilder location(String? t) { - _location.value = t; - return this; - } - UpdateShiftVariablesBuilder locationAddress(String? t) { - _locationAddress.value = t; - return this; - } - UpdateShiftVariablesBuilder latitude(double? t) { - _latitude.value = t; - return this; - } - UpdateShiftVariablesBuilder longitude(double? t) { - _longitude.value = t; - return this; - } - UpdateShiftVariablesBuilder placeId(String? t) { - _placeId.value = t; - return this; - } - UpdateShiftVariablesBuilder city(String? t) { - _city.value = t; - return this; - } - UpdateShiftVariablesBuilder state(String? t) { - _state.value = t; - return this; - } - UpdateShiftVariablesBuilder street(String? t) { - _street.value = t; - return this; - } - UpdateShiftVariablesBuilder country(String? t) { - _country.value = t; - return this; - } - UpdateShiftVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - UpdateShiftVariablesBuilder status(ShiftStatus? t) { - _status.value = t; - return this; - } - UpdateShiftVariablesBuilder workersNeeded(int? t) { - _workersNeeded.value = t; - return this; - } - UpdateShiftVariablesBuilder filled(int? t) { - _filled.value = t; - return this; - } - UpdateShiftVariablesBuilder filledAt(Timestamp? t) { - _filledAt.value = t; - return this; - } - UpdateShiftVariablesBuilder managers(List? t) { - _managers.value = t; - return this; - } - UpdateShiftVariablesBuilder durationDays(int? t) { - _durationDays.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateShift( - id: id, -) -.title(title) -.orderId(orderId) -.date(date) -.startTime(startTime) -.endTime(endTime) -.hours(hours) -.cost(cost) -.location(location) -.locationAddress(locationAddress) -.latitude(latitude) -.longitude(longitude) -.placeId(placeId) -.city(city) -.state(state) -.street(street) -.country(country) -.description(description) -.status(status) -.workersNeeded(workersNeeded) -.filled(filled) -.filledAt(filledAt) -.managers(managers) -.durationDays(durationDays) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateShift( - id: id, -); -updateShiftData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateShift( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteShift -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteShift( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteShift( - id: id, -); -deleteShiftData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteShift( - id: id, -).ref(); -ref.execute(); -``` - - -### createTeamHudDepartment +### createHub #### Required Arguments ```dart String name = ...; -String teamHubId = ...; -ExampleConnector.instance.createTeamHudDepartment( +String ownerId = ...; +ExampleConnector.instance.createHub( name: name, - teamHubId: teamHubId, + ownerId: ownerId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createTeamHudDepartment, we created `createTeamHudDepartmentBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createHub, we created `createHubBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateTeamHudDepartmentVariablesBuilder { +class CreateHubVariablesBuilder { ... - CreateTeamHudDepartmentVariablesBuilder costCenter(String? t) { - _costCenter.value = t; + CreateHubVariablesBuilder locationName(String? t) { + _locationName.value = t; + return this; + } + CreateHubVariablesBuilder address(String? t) { + _address.value = t; + return this; + } + CreateHubVariablesBuilder nfcTagId(String? t) { + _nfcTagId.value = t; return this; } ... } -ExampleConnector.instance.createTeamHudDepartment( +ExampleConnector.instance.createHub( name: name, - teamHubId: teamHubId, + ownerId: ownerId, ) -.costCenter(costCenter) +.locationName(locationName) +.address(address) +.nfcTagId(nfcTagId) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -18637,11 +18357,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createTeamHudDepartment( +final result = await ExampleConnector.instance.createHub( name: name, - teamHubId: teamHubId, + ownerId: ownerId, ); -createTeamHudDepartmentData data = result.data; +createHubData data = result.data; final ref = result.ref; ``` @@ -18650,57 +18370,67 @@ Each builder returns an `execute` function, which is a helper function that crea An example of how to use the `Ref` object is shown below: ```dart String name = ...; -String teamHubId = ...; +String ownerId = ...; -final ref = ExampleConnector.instance.createTeamHudDepartment( +final ref = ExampleConnector.instance.createHub( name: name, - teamHubId: teamHubId, + ownerId: ownerId, ).ref(); ref.execute(); ``` -### updateTeamHudDepartment +### updateHub #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateTeamHudDepartment( +ExampleConnector.instance.updateHub( id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateTeamHudDepartment, we created `updateTeamHudDepartmentBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateHub, we created `updateHubBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateTeamHudDepartmentVariablesBuilder { +class UpdateHubVariablesBuilder { ... - UpdateTeamHudDepartmentVariablesBuilder name(String? t) { + UpdateHubVariablesBuilder name(String? t) { _name.value = t; return this; } - UpdateTeamHudDepartmentVariablesBuilder costCenter(String? t) { - _costCenter.value = t; + UpdateHubVariablesBuilder locationName(String? t) { + _locationName.value = t; return this; } - UpdateTeamHudDepartmentVariablesBuilder teamHubId(String? t) { - _teamHubId.value = t; + UpdateHubVariablesBuilder address(String? t) { + _address.value = t; + return this; + } + UpdateHubVariablesBuilder nfcTagId(String? t) { + _nfcTagId.value = t; + return this; + } + UpdateHubVariablesBuilder ownerId(String? t) { + _ownerId.value = t; return this; } ... } -ExampleConnector.instance.updateTeamHudDepartment( +ExampleConnector.instance.updateHub( id: id, ) .name(name) -.costCenter(costCenter) -.teamHubId(teamHubId) +.locationName(locationName) +.address(address) +.nfcTagId(nfcTagId) +.ownerId(ownerId) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -18710,10 +18440,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateTeamHudDepartment( +final result = await ExampleConnector.instance.updateHub( id: id, ); -updateTeamHudDepartmentData data = result.data; +updateHubData data = result.data; final ref = result.ref; ``` @@ -18723,18 +18453,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateTeamHudDepartment( +final ref = ExampleConnector.instance.updateHub( id: id, ).ref(); ref.execute(); ``` -### deleteTeamHudDepartment +### deleteHub #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteTeamHudDepartment( +ExampleConnector.instance.deleteHub( id: id, ).execute(); ``` @@ -18742,7 +18472,7 @@ ExampleConnector.instance.deleteTeamHudDepartment( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -18752,10 +18482,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteTeamHudDepartment( +final result = await ExampleConnector.instance.deleteHub( id: id, ); -deleteTeamHudDepartmentData data = result.data; +deleteHubData data = result.data; final ref = result.ref; ``` @@ -18765,329 +18495,182 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteTeamHudDepartment( +final ref = ExampleConnector.instance.deleteHub( id: id, ).ref(); ref.execute(); ``` -### createVendorBenefitPlan +### createTaxForm #### Required Arguments ```dart -String vendorId = ...; -String title = ...; -ExampleConnector.instance.createVendorBenefitPlan( - vendorId: vendorId, - title: title, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createVendorBenefitPlan, we created `createVendorBenefitPlanBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateVendorBenefitPlanVariablesBuilder { - ... - CreateVendorBenefitPlanVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - CreateVendorBenefitPlanVariablesBuilder requestLabel(String? t) { - _requestLabel.value = t; - return this; - } - CreateVendorBenefitPlanVariablesBuilder total(int? t) { - _total.value = t; - return this; - } - CreateVendorBenefitPlanVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - CreateVendorBenefitPlanVariablesBuilder createdBy(String? t) { - _createdBy.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createVendorBenefitPlan( - vendorId: vendorId, - title: title, -) -.description(description) -.requestLabel(requestLabel) -.total(total) -.isActive(isActive) -.createdBy(createdBy) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createVendorBenefitPlan( - vendorId: vendorId, - title: title, -); -createVendorBenefitPlanData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; -String title = ...; - -final ref = ExampleConnector.instance.createVendorBenefitPlan( - vendorId: vendorId, - title: title, -).ref(); -ref.execute(); -``` - - -### updateVendorBenefitPlan -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateVendorBenefitPlan( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateVendorBenefitPlan, we created `updateVendorBenefitPlanBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateVendorBenefitPlanVariablesBuilder { - ... - UpdateVendorBenefitPlanVariablesBuilder vendorId(String? t) { - _vendorId.value = t; - return this; - } - UpdateVendorBenefitPlanVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - UpdateVendorBenefitPlanVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - UpdateVendorBenefitPlanVariablesBuilder requestLabel(String? t) { - _requestLabel.value = t; - return this; - } - UpdateVendorBenefitPlanVariablesBuilder total(int? t) { - _total.value = t; - return this; - } - UpdateVendorBenefitPlanVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - UpdateVendorBenefitPlanVariablesBuilder createdBy(String? t) { - _createdBy.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateVendorBenefitPlan( - id: id, -) -.vendorId(vendorId) -.title(title) -.description(description) -.requestLabel(requestLabel) -.total(total) -.isActive(isActive) -.createdBy(createdBy) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateVendorBenefitPlan( - id: id, -); -updateVendorBenefitPlanData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateVendorBenefitPlan( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteVendorBenefitPlan -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteVendorBenefitPlan( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteVendorBenefitPlan( - id: id, -); -deleteVendorBenefitPlanData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteVendorBenefitPlan( - id: id, -).ref(); -ref.execute(); -``` - - -### createEmergencyContact -#### Required Arguments -```dart -String name = ...; -String phone = ...; -RelationshipType relationship = ...; +TaxFormType formType = ...; +String firstName = ...; +String lastName = ...; +int socialSN = ...; +String address = ...; +TaxFormStatus status = ...; String staffId = ...; -ExampleConnector.instance.createEmergencyContact( - name: name, - phone: phone, - relationship: relationship, +ExampleConnector.instance.createTaxForm( + formType: formType, + firstName: firstName, + lastName: lastName, + socialSN: socialSN, + address: address, + status: status, staffId: staffId, ).execute(); ``` - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createEmergencyContact( - name: name, - phone: phone, - relationship: relationship, - staffId: staffId, -); -createEmergencyContactData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String name = ...; -String phone = ...; -RelationshipType relationship = ...; -String staffId = ...; - -final ref = ExampleConnector.instance.createEmergencyContact( - name: name, - phone: phone, - relationship: relationship, - staffId: staffId, -).ref(); -ref.execute(); -``` - - -### updateEmergencyContact -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateEmergencyContact( - id: id, -).execute(); -``` - #### Optional Arguments -We return a builder for each query. For updateEmergencyContact, we created `updateEmergencyContactBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createTaxForm, we created `createTaxFormBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateEmergencyContactVariablesBuilder { +class CreateTaxFormVariablesBuilder { ... - UpdateEmergencyContactVariablesBuilder name(String? t) { - _name.value = t; + CreateTaxFormVariablesBuilder mInitial(String? t) { + _mInitial.value = t; return this; } - UpdateEmergencyContactVariablesBuilder phone(String? t) { + CreateTaxFormVariablesBuilder oLastName(String? t) { + _oLastName.value = t; + return this; + } + CreateTaxFormVariablesBuilder dob(Timestamp? t) { + _dob.value = t; + return this; + } + CreateTaxFormVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + CreateTaxFormVariablesBuilder phone(String? t) { _phone.value = t; return this; } - UpdateEmergencyContactVariablesBuilder relationship(RelationshipType? t) { - _relationship.value = t; + CreateTaxFormVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + CreateTaxFormVariablesBuilder apt(String? t) { + _apt.value = t; + return this; + } + CreateTaxFormVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + CreateTaxFormVariablesBuilder zipCode(String? t) { + _zipCode.value = t; + return this; + } + CreateTaxFormVariablesBuilder marital(MaritalStatus? t) { + _marital.value = t; + return this; + } + CreateTaxFormVariablesBuilder multipleJob(bool? t) { + _multipleJob.value = t; + return this; + } + CreateTaxFormVariablesBuilder childrens(int? t) { + _childrens.value = t; + return this; + } + CreateTaxFormVariablesBuilder otherDeps(int? t) { + _otherDeps.value = t; + return this; + } + CreateTaxFormVariablesBuilder totalCredits(double? t) { + _totalCredits.value = t; + return this; + } + CreateTaxFormVariablesBuilder otherInconme(double? t) { + _otherInconme.value = t; + return this; + } + CreateTaxFormVariablesBuilder deductions(double? t) { + _deductions.value = t; + return this; + } + CreateTaxFormVariablesBuilder extraWithholding(double? t) { + _extraWithholding.value = t; + return this; + } + CreateTaxFormVariablesBuilder citizen(CitizenshipStatus? t) { + _citizen.value = t; + return this; + } + CreateTaxFormVariablesBuilder uscis(String? t) { + _uscis.value = t; + return this; + } + CreateTaxFormVariablesBuilder passportNumber(String? t) { + _passportNumber.value = t; + return this; + } + CreateTaxFormVariablesBuilder countryIssue(String? t) { + _countryIssue.value = t; + return this; + } + CreateTaxFormVariablesBuilder prepartorOrTranslator(bool? t) { + _prepartorOrTranslator.value = t; + return this; + } + CreateTaxFormVariablesBuilder signature(String? t) { + _signature.value = t; + return this; + } + CreateTaxFormVariablesBuilder date(Timestamp? t) { + _date.value = t; + return this; + } + CreateTaxFormVariablesBuilder createdBy(String? t) { + _createdBy.value = t; return this; } ... } -ExampleConnector.instance.updateEmergencyContact( - id: id, +ExampleConnector.instance.createTaxForm( + formType: formType, + firstName: firstName, + lastName: lastName, + socialSN: socialSN, + address: address, + status: status, + staffId: staffId, ) -.name(name) +.mInitial(mInitial) +.oLastName(oLastName) +.dob(dob) +.email(email) .phone(phone) -.relationship(relationship) +.city(city) +.apt(apt) +.state(state) +.zipCode(zipCode) +.marital(marital) +.multipleJob(multipleJob) +.childrens(childrens) +.otherDeps(otherDeps) +.totalCredits(totalCredits) +.otherInconme(otherInconme) +.deductions(deductions) +.extraWithholding(extraWithholding) +.citizen(citizen) +.uscis(uscis) +.passportNumber(passportNumber) +.countryIssue(countryIssue) +.prepartorOrTranslator(prepartorOrTranslator) +.signature(signature) +.date(date) +.createdBy(createdBy) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -19097,10 +18680,16 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateEmergencyContact( - id: id, +final result = await ExampleConnector.instance.createTaxForm( + formType: formType, + firstName: firstName, + lastName: lastName, + socialSN: socialSN, + address: address, + status: status, + staffId: staffId, ); -updateEmergencyContactData data = result.data; +createTaxFormData data = result.data; final ref = result.ref; ``` @@ -19108,213 +18697,464 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String id = ...; +TaxFormType formType = ...; +String firstName = ...; +String lastName = ...; +int socialSN = ...; +String address = ...; +TaxFormStatus status = ...; +String staffId = ...; -final ref = ExampleConnector.instance.updateEmergencyContact( - id: id, +final ref = ExampleConnector.instance.createTaxForm( + formType: formType, + firstName: firstName, + lastName: lastName, + socialSN: socialSN, + address: address, + status: status, + staffId: staffId, ).ref(); ref.execute(); ``` -### deleteEmergencyContact +### updateTaxForm #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteEmergencyContact( +ExampleConnector.instance.updateTaxForm( id: id, ).execute(); ``` - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteEmergencyContact( - id: id, -); -deleteEmergencyContactData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteEmergencyContact( - id: id, -).ref(); -ref.execute(); -``` - - -### createMemberTask -#### Required Arguments -```dart -String teamMemberId = ...; -String taskId = ...; -ExampleConnector.instance.createMemberTask( - teamMemberId: teamMemberId, - taskId: taskId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createMemberTask( - teamMemberId: teamMemberId, - taskId: taskId, -); -createMemberTaskData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String teamMemberId = ...; -String taskId = ...; - -final ref = ExampleConnector.instance.createMemberTask( - teamMemberId: teamMemberId, - taskId: taskId, -).ref(); -ref.execute(); -``` - - -### deleteMemberTask -#### Required Arguments -```dart -String teamMemberId = ...; -String taskId = ...; -ExampleConnector.instance.deleteMemberTask( - teamMemberId: teamMemberId, - taskId: taskId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteMemberTask( - teamMemberId: teamMemberId, - taskId: taskId, -); -deleteMemberTaskData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String teamMemberId = ...; -String taskId = ...; - -final ref = ExampleConnector.instance.deleteMemberTask( - teamMemberId: teamMemberId, - taskId: taskId, -).ref(); -ref.execute(); -``` - - -### createCourse -#### Required Arguments -```dart -String categoryId = ...; -ExampleConnector.instance.createCourse( - categoryId: categoryId, -).execute(); -``` - #### Optional Arguments -We return a builder for each query. For createCourse, we created `createCourseBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateTaxForm, we created `updateTaxFormBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateCourseVariablesBuilder { +class UpdateTaxFormVariablesBuilder { ... - - CreateCourseVariablesBuilder title(String? t) { + UpdateTaxFormVariablesBuilder formType(TaxFormType? t) { + _formType.value = t; + return this; + } + UpdateTaxFormVariablesBuilder firstName(String? t) { + _firstName.value = t; + return this; + } + UpdateTaxFormVariablesBuilder lastName(String? t) { + _lastName.value = t; + return this; + } + UpdateTaxFormVariablesBuilder mInitial(String? t) { + _mInitial.value = t; + return this; + } + UpdateTaxFormVariablesBuilder oLastName(String? t) { + _oLastName.value = t; + return this; + } + UpdateTaxFormVariablesBuilder dob(Timestamp? t) { + _dob.value = t; + return this; + } + UpdateTaxFormVariablesBuilder socialSN(int? t) { + _socialSN.value = t; + return this; + } + UpdateTaxFormVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + UpdateTaxFormVariablesBuilder phone(String? t) { + _phone.value = t; + return this; + } + UpdateTaxFormVariablesBuilder address(String? t) { + _address.value = t; + return this; + } + UpdateTaxFormVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + UpdateTaxFormVariablesBuilder apt(String? t) { + _apt.value = t; + return this; + } + UpdateTaxFormVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + UpdateTaxFormVariablesBuilder zipCode(String? t) { + _zipCode.value = t; + return this; + } + UpdateTaxFormVariablesBuilder marital(MaritalStatus? t) { + _marital.value = t; + return this; + } + UpdateTaxFormVariablesBuilder multipleJob(bool? t) { + _multipleJob.value = t; + return this; + } + UpdateTaxFormVariablesBuilder childrens(int? t) { + _childrens.value = t; + return this; + } + UpdateTaxFormVariablesBuilder otherDeps(int? t) { + _otherDeps.value = t; + return this; + } + UpdateTaxFormVariablesBuilder totalCredits(double? t) { + _totalCredits.value = t; + return this; + } + UpdateTaxFormVariablesBuilder otherInconme(double? t) { + _otherInconme.value = t; + return this; + } + UpdateTaxFormVariablesBuilder deductions(double? t) { + _deductions.value = t; + return this; + } + UpdateTaxFormVariablesBuilder extraWithholding(double? t) { + _extraWithholding.value = t; + return this; + } + UpdateTaxFormVariablesBuilder citizen(CitizenshipStatus? t) { + _citizen.value = t; + return this; + } + UpdateTaxFormVariablesBuilder uscis(String? t) { + _uscis.value = t; + return this; + } + UpdateTaxFormVariablesBuilder passportNumber(String? t) { + _passportNumber.value = t; + return this; + } + UpdateTaxFormVariablesBuilder countryIssue(String? t) { + _countryIssue.value = t; + return this; + } + UpdateTaxFormVariablesBuilder prepartorOrTranslator(bool? t) { + _prepartorOrTranslator.value = t; + return this; + } + UpdateTaxFormVariablesBuilder signature(String? t) { + _signature.value = t; + return this; + } + UpdateTaxFormVariablesBuilder date(Timestamp? t) { + _date.value = t; + return this; + } + UpdateTaxFormVariablesBuilder status(TaxFormStatus? t) { + _status.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateTaxForm( + id: id, +) +.formType(formType) +.firstName(firstName) +.lastName(lastName) +.mInitial(mInitial) +.oLastName(oLastName) +.dob(dob) +.socialSN(socialSN) +.email(email) +.phone(phone) +.address(address) +.city(city) +.apt(apt) +.state(state) +.zipCode(zipCode) +.marital(marital) +.multipleJob(multipleJob) +.childrens(childrens) +.otherDeps(otherDeps) +.totalCredits(totalCredits) +.otherInconme(otherInconme) +.deductions(deductions) +.extraWithholding(extraWithholding) +.citizen(citizen) +.uscis(uscis) +.passportNumber(passportNumber) +.countryIssue(countryIssue) +.prepartorOrTranslator(prepartorOrTranslator) +.signature(signature) +.date(date) +.status(status) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateTaxForm( + id: id, +); +updateTaxFormData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateTaxForm( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteTaxForm +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteTaxForm( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteTaxForm( + id: id, +); +deleteTaxFormData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteTaxForm( + id: id, +).ref(); +ref.execute(); +``` + + +### createActivityLog +#### Required Arguments +```dart +String userId = ...; +Timestamp date = ...; +String title = ...; +String description = ...; +ActivityType activityType = ...; +ExampleConnector.instance.createActivityLog( + userId: userId, + date: date, + title: title, + description: description, + activityType: activityType, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createActivityLog, we created `createActivityLogBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateActivityLogVariablesBuilder { + ... + CreateActivityLogVariablesBuilder hourStart(String? t) { + _hourStart.value = t; + return this; + } + CreateActivityLogVariablesBuilder hourEnd(String? t) { + _hourEnd.value = t; + return this; + } + CreateActivityLogVariablesBuilder totalhours(String? t) { + _totalhours.value = t; + return this; + } + CreateActivityLogVariablesBuilder iconType(ActivityIconType? t) { + _iconType.value = t; + return this; + } + CreateActivityLogVariablesBuilder iconColor(String? t) { + _iconColor.value = t; + return this; + } + CreateActivityLogVariablesBuilder isRead(bool? t) { + _isRead.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createActivityLog( + userId: userId, + date: date, + title: title, + description: description, + activityType: activityType, +) +.hourStart(hourStart) +.hourEnd(hourEnd) +.totalhours(totalhours) +.iconType(iconType) +.iconColor(iconColor) +.isRead(isRead) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createActivityLog( + userId: userId, + date: date, + title: title, + description: description, + activityType: activityType, +); +createActivityLogData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String userId = ...; +Timestamp date = ...; +String title = ...; +String description = ...; +ActivityType activityType = ...; + +final ref = ExampleConnector.instance.createActivityLog( + userId: userId, + date: date, + title: title, + description: description, + activityType: activityType, +).ref(); +ref.execute(); +``` + + +### updateActivityLog +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateActivityLog( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateActivityLog, we created `updateActivityLogBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateActivityLogVariablesBuilder { + ... + UpdateActivityLogVariablesBuilder userId(String? t) { + _userId.value = t; + return this; + } + UpdateActivityLogVariablesBuilder date(Timestamp? t) { + _date.value = t; + return this; + } + UpdateActivityLogVariablesBuilder hourStart(String? t) { + _hourStart.value = t; + return this; + } + UpdateActivityLogVariablesBuilder hourEnd(String? t) { + _hourEnd.value = t; + return this; + } + UpdateActivityLogVariablesBuilder totalhours(String? t) { + _totalhours.value = t; + return this; + } + UpdateActivityLogVariablesBuilder iconType(ActivityIconType? t) { + _iconType.value = t; + return this; + } + UpdateActivityLogVariablesBuilder iconColor(String? t) { + _iconColor.value = t; + return this; + } + UpdateActivityLogVariablesBuilder title(String? t) { _title.value = t; return this; } - CreateCourseVariablesBuilder description(String? t) { + UpdateActivityLogVariablesBuilder description(String? t) { _description.value = t; return this; } - CreateCourseVariablesBuilder thumbnailUrl(String? t) { - _thumbnailUrl.value = t; + UpdateActivityLogVariablesBuilder isRead(bool? t) { + _isRead.value = t; return this; } - CreateCourseVariablesBuilder durationMinutes(int? t) { - _durationMinutes.value = t; - return this; - } - CreateCourseVariablesBuilder xpReward(int? t) { - _xpReward.value = t; - return this; - } - CreateCourseVariablesBuilder levelRequired(String? t) { - _levelRequired.value = t; - return this; - } - CreateCourseVariablesBuilder isCertification(bool? t) { - _isCertification.value = t; + UpdateActivityLogVariablesBuilder activityType(ActivityType? t) { + _activityType.value = t; return this; } ... } -ExampleConnector.instance.createCourse( - categoryId: categoryId, +ExampleConnector.instance.updateActivityLog( + id: id, ) +.userId(userId) +.date(date) +.hourStart(hourStart) +.hourEnd(hourEnd) +.totalhours(totalhours) +.iconType(iconType) +.iconColor(iconColor) .title(title) .description(description) -.thumbnailUrl(thumbnailUrl) -.durationMinutes(durationMinutes) -.xpReward(xpReward) -.levelRequired(levelRequired) -.isCertification(isCertification) +.isRead(isRead) +.activityType(activityType) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -19324,10 +19164,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createCourse( - categoryId: categoryId, +final result = await ExampleConnector.instance.updateActivityLog( + id: id, ); -createCourseData data = result.data; +updateActivityLogData data = result.data; final ref = result.ref; ``` @@ -19335,79 +19175,226 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String categoryId = ...; +String id = ...; -final ref = ExampleConnector.instance.createCourse( - categoryId: categoryId, +final ref = ExampleConnector.instance.updateActivityLog( + id: id, ).ref(); ref.execute(); ``` -### updateCourse +### markActivityLogAsRead #### Required Arguments ```dart String id = ...; -String categoryId = ...; -ExampleConnector.instance.updateCourse( +ExampleConnector.instance.markActivityLogAsRead( id: id, - categoryId: categoryId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.markActivityLogAsRead( + id: id, +); +markActivityLogAsReadData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.markActivityLogAsRead( + id: id, +).ref(); +ref.execute(); +``` + + +### markActivityLogsAsRead +#### Required Arguments +```dart +String ids = ...; +ExampleConnector.instance.markActivityLogsAsRead( + ids: ids, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.markActivityLogsAsRead( + ids: ids, +); +markActivityLogsAsReadData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String ids = ...; + +final ref = ExampleConnector.instance.markActivityLogsAsRead( + ids: ids, +).ref(); +ref.execute(); +``` + + +### deleteActivityLog +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteActivityLog( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteActivityLog( + id: id, +); +deleteActivityLogData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteActivityLog( + id: id, +).ref(); +ref.execute(); +``` + + +### createBusiness +#### Required Arguments +```dart +String businessName = ...; +String userId = ...; +BusinessRateGroup rateGroup = ...; +BusinessStatus status = ...; +ExampleConnector.instance.createBusiness( + businessName: businessName, + userId: userId, + rateGroup: rateGroup, + status: status, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateCourse, we created `updateCourseBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createBusiness, we created `createBusinessBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateCourseVariablesBuilder { +class CreateBusinessVariablesBuilder { ... - UpdateCourseVariablesBuilder title(String? t) { - _title.value = t; + CreateBusinessVariablesBuilder contactName(String? t) { + _contactName.value = t; return this; } - UpdateCourseVariablesBuilder description(String? t) { - _description.value = t; + CreateBusinessVariablesBuilder companyLogoUrl(String? t) { + _companyLogoUrl.value = t; return this; } - UpdateCourseVariablesBuilder thumbnailUrl(String? t) { - _thumbnailUrl.value = t; + CreateBusinessVariablesBuilder phone(String? t) { + _phone.value = t; return this; } - UpdateCourseVariablesBuilder durationMinutes(int? t) { - _durationMinutes.value = t; + CreateBusinessVariablesBuilder email(String? t) { + _email.value = t; return this; } - UpdateCourseVariablesBuilder xpReward(int? t) { - _xpReward.value = t; + CreateBusinessVariablesBuilder hubBuilding(String? t) { + _hubBuilding.value = t; return this; } - UpdateCourseVariablesBuilder levelRequired(String? t) { - _levelRequired.value = t; + CreateBusinessVariablesBuilder address(String? t) { + _address.value = t; return this; } - UpdateCourseVariablesBuilder isCertification(bool? t) { - _isCertification.value = t; + CreateBusinessVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + CreateBusinessVariablesBuilder area(BusinessArea? t) { + _area.value = t; + return this; + } + CreateBusinessVariablesBuilder sector(BusinessSector? t) { + _sector.value = t; + return this; + } + CreateBusinessVariablesBuilder notes(String? t) { + _notes.value = t; return this; } ... } -ExampleConnector.instance.updateCourse( - id: id, - categoryId: categoryId, +ExampleConnector.instance.createBusiness( + businessName: businessName, + userId: userId, + rateGroup: rateGroup, + status: status, ) -.title(title) -.description(description) -.thumbnailUrl(thumbnailUrl) -.durationMinutes(durationMinutes) -.xpReward(xpReward) -.levelRequired(levelRequired) -.isCertification(isCertification) +.contactName(contactName) +.companyLogoUrl(companyLogoUrl) +.phone(phone) +.email(email) +.hubBuilding(hubBuilding) +.address(address) +.city(city) +.area(area) +.sector(sector) +.notes(notes) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -19417,11 +19404,13 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateCourse( - id: id, - categoryId: categoryId, +final result = await ExampleConnector.instance.createBusiness( + businessName: businessName, + userId: userId, + rateGroup: rateGroup, + status: status, ); -updateCourseData data = result.data; +createBusinessData data = result.data; final ref = result.ref; ``` @@ -19429,175 +19418,112 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String id = ...; -String categoryId = ...; +String businessName = ...; +String userId = ...; +BusinessRateGroup rateGroup = ...; +BusinessStatus status = ...; -final ref = ExampleConnector.instance.updateCourse( - id: id, - categoryId: categoryId, +final ref = ExampleConnector.instance.createBusiness( + businessName: businessName, + userId: userId, + rateGroup: rateGroup, + status: status, ).ref(); ref.execute(); ``` -### deleteCourse +### updateBusiness #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteCourse( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteCourse( - id: id, -); -deleteCourseData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteCourse( - id: id, -).ref(); -ref.execute(); -``` - - -### createCustomRateCard -#### Required Arguments -```dart -String name = ...; -ExampleConnector.instance.createCustomRateCard( - name: name, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createCustomRateCard, we created `createCustomRateCardBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateCustomRateCardVariablesBuilder { - ... - CreateCustomRateCardVariablesBuilder baseBook(String? t) { - _baseBook.value = t; - return this; - } - CreateCustomRateCardVariablesBuilder discount(double? t) { - _discount.value = t; - return this; - } - CreateCustomRateCardVariablesBuilder isDefault(bool? t) { - _isDefault.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createCustomRateCard( - name: name, -) -.baseBook(baseBook) -.discount(discount) -.isDefault(isDefault) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createCustomRateCard( - name: name, -); -createCustomRateCardData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String name = ...; - -final ref = ExampleConnector.instance.createCustomRateCard( - name: name, -).ref(); -ref.execute(); -``` - - -### updateCustomRateCard -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateCustomRateCard( +ExampleConnector.instance.updateBusiness( id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateCustomRateCard, we created `updateCustomRateCardBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateBusiness, we created `updateBusinessBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateCustomRateCardVariablesBuilder { +class UpdateBusinessVariablesBuilder { ... - UpdateCustomRateCardVariablesBuilder name(String? t) { - _name.value = t; + UpdateBusinessVariablesBuilder businessName(String? t) { + _businessName.value = t; return this; } - UpdateCustomRateCardVariablesBuilder baseBook(String? t) { - _baseBook.value = t; + UpdateBusinessVariablesBuilder contactName(String? t) { + _contactName.value = t; return this; } - UpdateCustomRateCardVariablesBuilder discount(double? t) { - _discount.value = t; + UpdateBusinessVariablesBuilder companyLogoUrl(String? t) { + _companyLogoUrl.value = t; return this; } - UpdateCustomRateCardVariablesBuilder isDefault(bool? t) { - _isDefault.value = t; + UpdateBusinessVariablesBuilder phone(String? t) { + _phone.value = t; + return this; + } + UpdateBusinessVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + UpdateBusinessVariablesBuilder hubBuilding(String? t) { + _hubBuilding.value = t; + return this; + } + UpdateBusinessVariablesBuilder address(String? t) { + _address.value = t; + return this; + } + UpdateBusinessVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + UpdateBusinessVariablesBuilder area(BusinessArea? t) { + _area.value = t; + return this; + } + UpdateBusinessVariablesBuilder sector(BusinessSector? t) { + _sector.value = t; + return this; + } + UpdateBusinessVariablesBuilder rateGroup(BusinessRateGroup? t) { + _rateGroup.value = t; + return this; + } + UpdateBusinessVariablesBuilder status(BusinessStatus? t) { + _status.value = t; + return this; + } + UpdateBusinessVariablesBuilder notes(String? t) { + _notes.value = t; return this; } ... } -ExampleConnector.instance.updateCustomRateCard( +ExampleConnector.instance.updateBusiness( id: id, ) -.name(name) -.baseBook(baseBook) -.discount(discount) -.isDefault(isDefault) +.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) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -19607,10 +19533,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateCustomRateCard( +final result = await ExampleConnector.instance.updateBusiness( id: id, ); -updateCustomRateCardData data = result.data; +updateBusinessData data = result.data; final ref = result.ref; ``` @@ -19620,18 +19546,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateCustomRateCard( +final ref = ExampleConnector.instance.updateBusiness( id: id, ).ref(); ref.execute(); ``` -### deleteCustomRateCard +### deleteBusiness #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteCustomRateCard( +ExampleConnector.instance.deleteBusiness( id: id, ).execute(); ``` @@ -19639,7 +19565,7 @@ ExampleConnector.instance.deleteCustomRateCard( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -19649,10 +19575,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteCustomRateCard( +final result = await ExampleConnector.instance.deleteBusiness( id: id, ); -deleteCustomRateCardData data = result.data; +deleteBusinessData data = result.data; final ref = result.ref; ``` @@ -19662,196 +19588,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteCustomRateCard( - id: id, -).ref(); -ref.execute(); -``` - - -### createMessage -#### Required Arguments -```dart -String conversationId = ...; -String senderId = ...; -String content = ...; -ExampleConnector.instance.createMessage( - conversationId: conversationId, - senderId: senderId, - content: content, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createMessage, we created `createMessageBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateMessageVariablesBuilder { - ... - CreateMessageVariablesBuilder isSystem(bool? t) { - _isSystem.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createMessage( - conversationId: conversationId, - senderId: senderId, - content: content, -) -.isSystem(isSystem) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createMessage( - conversationId: conversationId, - senderId: senderId, - content: content, -); -createMessageData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String conversationId = ...; -String senderId = ...; -String content = ...; - -final ref = ExampleConnector.instance.createMessage( - conversationId: conversationId, - senderId: senderId, - content: content, -).ref(); -ref.execute(); -``` - - -### updateMessage -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateMessage( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateMessage, we created `updateMessageBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateMessageVariablesBuilder { - ... - UpdateMessageVariablesBuilder conversationId(String? t) { - _conversationId.value = t; - return this; - } - UpdateMessageVariablesBuilder senderId(String? t) { - _senderId.value = t; - return this; - } - UpdateMessageVariablesBuilder content(String? t) { - _content.value = t; - return this; - } - UpdateMessageVariablesBuilder isSystem(bool? t) { - _isSystem.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateMessage( - id: id, -) -.conversationId(conversationId) -.senderId(senderId) -.content(content) -.isSystem(isSystem) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateMessage( - id: id, -); -updateMessageData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateMessage( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteMessage -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteMessage( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteMessage( - id: id, -); -deleteMessageData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteMessage( +final ref = ExampleConnector.instance.deleteBusiness( id: id, ).ref(); ref.execute(); @@ -20136,37 +19873,40 @@ ref.execute(); ``` -### createFaqData +### createTeamHudDepartment #### Required Arguments ```dart -String category = ...; -ExampleConnector.instance.createFaqData( - category: category, +String name = ...; +String teamHubId = ...; +ExampleConnector.instance.createTeamHudDepartment( + name: name, + teamHubId: teamHubId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createFaqData, we created `createFaqDataBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createTeamHudDepartment, we created `createTeamHudDepartmentBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateFaqDataVariablesBuilder { +class CreateTeamHudDepartmentVariablesBuilder { ... - CreateFaqDataVariablesBuilder questions(List? t) { - _questions.value = t; + CreateTeamHudDepartmentVariablesBuilder costCenter(String? t) { + _costCenter.value = t; return this; } ... } -ExampleConnector.instance.createFaqData( - category: category, +ExampleConnector.instance.createTeamHudDepartment( + name: name, + teamHubId: teamHubId, ) -.questions(questions) +.costCenter(costCenter) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -20176,10 +19916,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createFaqData( - category: category, +final result = await ExampleConnector.instance.createTeamHudDepartment( + name: name, + teamHubId: teamHubId, ); -createFaqDataData data = result.data; +createTeamHudDepartmentData data = result.data; final ref = result.ref; ``` @@ -20187,51 +19928,58 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String category = ...; +String name = ...; +String teamHubId = ...; -final ref = ExampleConnector.instance.createFaqData( - category: category, +final ref = ExampleConnector.instance.createTeamHudDepartment( + name: name, + teamHubId: teamHubId, ).ref(); ref.execute(); ``` -### updateFaqData +### updateTeamHudDepartment #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateFaqData( +ExampleConnector.instance.updateTeamHudDepartment( id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateFaqData, we created `updateFaqDataBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateTeamHudDepartment, we created `updateTeamHudDepartmentBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateFaqDataVariablesBuilder { +class UpdateTeamHudDepartmentVariablesBuilder { ... - UpdateFaqDataVariablesBuilder category(String? t) { - _category.value = t; + UpdateTeamHudDepartmentVariablesBuilder name(String? t) { + _name.value = t; return this; } - UpdateFaqDataVariablesBuilder questions(List? t) { - _questions.value = t; + UpdateTeamHudDepartmentVariablesBuilder costCenter(String? t) { + _costCenter.value = t; + return this; + } + UpdateTeamHudDepartmentVariablesBuilder teamHubId(String? t) { + _teamHubId.value = t; return this; } ... } -ExampleConnector.instance.updateFaqData( +ExampleConnector.instance.updateTeamHudDepartment( id: id, ) -.category(category) -.questions(questions) +.name(name) +.costCenter(costCenter) +.teamHubId(teamHubId) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -20241,10 +19989,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateFaqData( +final result = await ExampleConnector.instance.updateTeamHudDepartment( id: id, ); -updateFaqDataData data = result.data; +updateTeamHudDepartmentData data = result.data; final ref = result.ref; ``` @@ -20254,18 +20002,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateFaqData( +final ref = ExampleConnector.instance.updateTeamHudDepartment( id: id, ).ref(); ref.execute(); ``` -### deleteFaqData +### deleteTeamHudDepartment #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteFaqData( +ExampleConnector.instance.deleteTeamHudDepartment( id: id, ).execute(); ``` @@ -20273,7 +20021,7 @@ ExampleConnector.instance.deleteFaqData( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -20283,10 +20031,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteFaqData( +final result = await ExampleConnector.instance.deleteTeamHudDepartment( id: id, ); -deleteFaqDataData data = result.data; +deleteTeamHudDepartmentData data = result.data; final ref = result.ref; ``` @@ -20296,7 +20044,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteFaqData( +final ref = ExampleConnector.instance.deleteTeamHudDepartment( id: id, ).ref(); ref.execute(); @@ -20651,76 +20399,51 @@ ref.execute(); ``` -### createTask +### createStaffDocument #### Required Arguments ```dart -String taskName = ...; -TaskPriority priority = ...; -TaskStatus status = ...; -String ownerId = ...; -ExampleConnector.instance.createTask( - taskName: taskName, - priority: priority, +String staffId = ...; +String staffName = ...; +String documentId = ...; +DocumentStatus status = ...; +ExampleConnector.instance.createStaffDocument( + staffId: staffId, + staffName: staffName, + documentId: documentId, status: status, - ownerId: ownerId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createTask, we created `createTaskBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createStaffDocument, we created `createStaffDocumentBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateTaskVariablesBuilder { +class CreateStaffDocumentVariablesBuilder { ... - CreateTaskVariablesBuilder description(String? t) { - _description.value = t; + CreateStaffDocumentVariablesBuilder documentUrl(String? t) { + _documentUrl.value = t; return this; } - CreateTaskVariablesBuilder dueDate(Timestamp? t) { - _dueDate.value = t; - return this; - } - CreateTaskVariablesBuilder progress(int? t) { - _progress.value = t; - return this; - } - CreateTaskVariablesBuilder orderIndex(int? t) { - _orderIndex.value = t; - return this; - } - CreateTaskVariablesBuilder commentCount(int? t) { - _commentCount.value = t; - return this; - } - CreateTaskVariablesBuilder attachmentCount(int? t) { - _attachmentCount.value = t; - return this; - } - CreateTaskVariablesBuilder files(AnyValue? t) { - _files.value = t; + CreateStaffDocumentVariablesBuilder expiryDate(Timestamp? t) { + _expiryDate.value = t; return this; } ... } -ExampleConnector.instance.createTask( - taskName: taskName, - priority: priority, +ExampleConnector.instance.createStaffDocument( + staffId: staffId, + staffName: staffName, + documentId: documentId, status: status, - ownerId: ownerId, ) -.description(description) -.dueDate(dueDate) -.progress(progress) -.orderIndex(orderIndex) -.commentCount(commentCount) -.attachmentCount(attachmentCount) -.files(files) +.documentUrl(documentUrl) +.expiryDate(expiryDate) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -20730,13 +20453,13 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createTask( - taskName: taskName, - priority: priority, +final result = await ExampleConnector.instance.createStaffDocument( + staffId: staffId, + staffName: staffName, + documentId: documentId, status: status, - ownerId: ownerId, ); -createTaskData data = result.data; +createStaffDocumentData data = result.data; final ref = result.ref; ``` @@ -20744,102 +20467,65 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String taskName = ...; -TaskPriority priority = ...; -TaskStatus status = ...; -String ownerId = ...; +String staffId = ...; +String staffName = ...; +String documentId = ...; +DocumentStatus status = ...; -final ref = ExampleConnector.instance.createTask( - taskName: taskName, - priority: priority, +final ref = ExampleConnector.instance.createStaffDocument( + staffId: staffId, + staffName: staffName, + documentId: documentId, status: status, - ownerId: ownerId, ).ref(); ref.execute(); ``` -### updateTask +### updateStaffDocument #### Required Arguments ```dart -String id = ...; -ExampleConnector.instance.updateTask( - id: id, +String staffId = ...; +String documentId = ...; +ExampleConnector.instance.updateStaffDocument( + staffId: staffId, + documentId: documentId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateTask, we created `updateTaskBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateStaffDocument, we created `updateStaffDocumentBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateTaskVariablesBuilder { +class UpdateStaffDocumentVariablesBuilder { ... - UpdateTaskVariablesBuilder taskName(String? t) { - _taskName.value = t; - return this; - } - UpdateTaskVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - UpdateTaskVariablesBuilder priority(TaskPriority? t) { - _priority.value = t; - return this; - } - UpdateTaskVariablesBuilder status(TaskStatus? t) { + UpdateStaffDocumentVariablesBuilder status(DocumentStatus? t) { _status.value = t; return this; } - UpdateTaskVariablesBuilder dueDate(Timestamp? t) { - _dueDate.value = t; + UpdateStaffDocumentVariablesBuilder documentUrl(String? t) { + _documentUrl.value = t; return this; } - UpdateTaskVariablesBuilder progress(int? t) { - _progress.value = t; - return this; - } - UpdateTaskVariablesBuilder assignedMembers(AnyValue? t) { - _assignedMembers.value = t; - return this; - } - UpdateTaskVariablesBuilder orderIndex(int? t) { - _orderIndex.value = t; - return this; - } - UpdateTaskVariablesBuilder commentCount(int? t) { - _commentCount.value = t; - return this; - } - UpdateTaskVariablesBuilder attachmentCount(int? t) { - _attachmentCount.value = t; - return this; - } - UpdateTaskVariablesBuilder files(AnyValue? t) { - _files.value = t; + UpdateStaffDocumentVariablesBuilder expiryDate(Timestamp? t) { + _expiryDate.value = t; return this; } ... } -ExampleConnector.instance.updateTask( - id: id, +ExampleConnector.instance.updateStaffDocument( + staffId: staffId, + documentId: documentId, ) -.taskName(taskName) -.description(description) -.priority(priority) .status(status) -.dueDate(dueDate) -.progress(progress) -.assignedMembers(assignedMembers) -.orderIndex(orderIndex) -.commentCount(commentCount) -.attachmentCount(attachmentCount) -.files(files) +.documentUrl(documentUrl) +.expiryDate(expiryDate) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -20849,10 +20535,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateTask( - id: id, +final result = await ExampleConnector.instance.updateStaffDocument( + staffId: staffId, + documentId: documentId, ); -updateTaskData data = result.data; +updateStaffDocumentData data = result.data; final ref = result.ref; ``` @@ -20860,28 +20547,32 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String id = ...; +String staffId = ...; +String documentId = ...; -final ref = ExampleConnector.instance.updateTask( - id: id, +final ref = ExampleConnector.instance.updateStaffDocument( + staffId: staffId, + documentId: documentId, ).ref(); ref.execute(); ``` -### deleteTask +### deleteStaffDocument #### Required Arguments ```dart -String id = ...; -ExampleConnector.instance.deleteTask( - id: id, +String staffId = ...; +String documentId = ...; +ExampleConnector.instance.deleteStaffDocument( + staffId: staffId, + documentId: documentId, ).execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -20891,10 +20582,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteTask( - id: id, +final result = await ExampleConnector.instance.deleteStaffDocument( + staffId: staffId, + documentId: documentId, ); -deleteTaskData data = result.data; +deleteStaffDocumentData data = result.data; final ref = result.ref; ``` @@ -20902,54 +20594,89 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String id = ...; +String staffId = ...; +String documentId = ...; -final ref = ExampleConnector.instance.deleteTask( - id: id, +final ref = ExampleConnector.instance.deleteStaffDocument( + staffId: staffId, + documentId: documentId, ).ref(); ref.execute(); ``` -### createUserConversation +### CreateCertificate #### Required Arguments ```dart -String conversationId = ...; -String userId = ...; -ExampleConnector.instance.createUserConversation( - conversationId: conversationId, - userId: userId, +String name = ...; +CertificateStatus status = ...; +String staffId = ...; +ExampleConnector.instance.createCertificate( + name: name, + status: status, + staffId: staffId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createUserConversation, we created `createUserConversationBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For CreateCertificate, we created `CreateCertificateBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateUserConversationVariablesBuilder { +class CreateCertificateVariablesBuilder { ... - CreateUserConversationVariablesBuilder unreadCount(int? t) { - _unreadCount.value = t; + CreateCertificateVariablesBuilder description(String? t) { + _description.value = t; return this; } - CreateUserConversationVariablesBuilder lastReadAt(Timestamp? t) { - _lastReadAt.value = t; + CreateCertificateVariablesBuilder expiry(Timestamp? t) { + _expiry.value = t; + return this; + } + CreateCertificateVariablesBuilder fileUrl(String? t) { + _fileUrl.value = t; + return this; + } + CreateCertificateVariablesBuilder icon(String? t) { + _icon.value = t; + return this; + } + CreateCertificateVariablesBuilder certificationType(ComplianceType? t) { + _certificationType.value = t; + return this; + } + CreateCertificateVariablesBuilder issuer(String? t) { + _issuer.value = t; + return this; + } + CreateCertificateVariablesBuilder validationStatus(ValidationStatus? t) { + _validationStatus.value = t; + return this; + } + CreateCertificateVariablesBuilder certificateNumber(String? t) { + _certificateNumber.value = t; return this; } ... } -ExampleConnector.instance.createUserConversation( - conversationId: conversationId, - userId: userId, +ExampleConnector.instance.createCertificate( + name: name, + status: status, + staffId: staffId, ) -.unreadCount(unreadCount) -.lastReadAt(lastReadAt) +.description(description) +.expiry(expiry) +.fileUrl(fileUrl) +.icon(icon) +.certificationType(certificationType) +.issuer(issuer) +.validationStatus(validationStatus) +.certificateNumber(certificateNumber) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -20959,11 +20686,12 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createUserConversation( - conversationId: conversationId, - userId: userId, +final result = await ExampleConnector.instance.createCertificate( + name: name, + status: status, + staffId: staffId, ); -createUserConversationData data = result.data; +CreateCertificateData data = result.data; final ref = result.ref; ``` @@ -20971,390 +20699,100 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String conversationId = ...; -String userId = ...; +String name = ...; +CertificateStatus status = ...; +String staffId = ...; -final ref = ExampleConnector.instance.createUserConversation( - conversationId: conversationId, - userId: userId, +final ref = ExampleConnector.instance.createCertificate( + name: name, + status: status, + staffId: staffId, ).ref(); ref.execute(); ``` -### updateUserConversation -#### Required Arguments -```dart -String conversationId = ...; -String userId = ...; -ExampleConnector.instance.updateUserConversation( - conversationId: conversationId, - userId: userId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateUserConversation, we created `updateUserConversationBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateUserConversationVariablesBuilder { - ... - UpdateUserConversationVariablesBuilder unreadCount(int? t) { - _unreadCount.value = t; - return this; - } - UpdateUserConversationVariablesBuilder lastReadAt(Timestamp? t) { - _lastReadAt.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateUserConversation( - conversationId: conversationId, - userId: userId, -) -.unreadCount(unreadCount) -.lastReadAt(lastReadAt) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateUserConversation( - conversationId: conversationId, - userId: userId, -); -updateUserConversationData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String conversationId = ...; -String userId = ...; - -final ref = ExampleConnector.instance.updateUserConversation( - conversationId: conversationId, - userId: userId, -).ref(); -ref.execute(); -``` - - -### markConversationAsRead -#### Required Arguments -```dart -String conversationId = ...; -String userId = ...; -ExampleConnector.instance.markConversationAsRead( - conversationId: conversationId, - userId: userId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For markConversationAsRead, we created `markConversationAsReadBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class MarkConversationAsReadVariablesBuilder { - ... - MarkConversationAsReadVariablesBuilder lastReadAt(Timestamp? t) { - _lastReadAt.value = t; - return this; - } - - ... -} -ExampleConnector.instance.markConversationAsRead( - conversationId: conversationId, - userId: userId, -) -.lastReadAt(lastReadAt) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.markConversationAsRead( - conversationId: conversationId, - userId: userId, -); -markConversationAsReadData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String conversationId = ...; -String userId = ...; - -final ref = ExampleConnector.instance.markConversationAsRead( - conversationId: conversationId, - userId: userId, -).ref(); -ref.execute(); -``` - - -### incrementUnreadForUser -#### Required Arguments -```dart -String conversationId = ...; -String userId = ...; -int unreadCount = ...; -ExampleConnector.instance.incrementUnreadForUser( - conversationId: conversationId, - userId: userId, - unreadCount: unreadCount, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.incrementUnreadForUser( - conversationId: conversationId, - userId: userId, - unreadCount: unreadCount, -); -incrementUnreadForUserData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String conversationId = ...; -String userId = ...; -int unreadCount = ...; - -final ref = ExampleConnector.instance.incrementUnreadForUser( - conversationId: conversationId, - userId: userId, - unreadCount: unreadCount, -).ref(); -ref.execute(); -``` - - -### deleteUserConversation -#### Required Arguments -```dart -String conversationId = ...; -String userId = ...; -ExampleConnector.instance.deleteUserConversation( - conversationId: conversationId, - userId: userId, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteUserConversation( - conversationId: conversationId, - userId: userId, -); -deleteUserConversationData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String conversationId = ...; -String userId = ...; - -final ref = ExampleConnector.instance.deleteUserConversation( - conversationId: conversationId, - userId: userId, -).ref(); -ref.execute(); -``` - - -### createClientFeedback -#### Required Arguments -```dart -String businessId = ...; -String vendorId = ...; -ExampleConnector.instance.createClientFeedback( - businessId: businessId, - vendorId: vendorId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createClientFeedback, we created `createClientFeedbackBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateClientFeedbackVariablesBuilder { - ... - CreateClientFeedbackVariablesBuilder rating(int? t) { - _rating.value = t; - return this; - } - CreateClientFeedbackVariablesBuilder comment(String? t) { - _comment.value = t; - return this; - } - CreateClientFeedbackVariablesBuilder date(Timestamp? t) { - _date.value = t; - return this; - } - CreateClientFeedbackVariablesBuilder createdBy(String? t) { - _createdBy.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createClientFeedback( - businessId: businessId, - vendorId: vendorId, -) -.rating(rating) -.comment(comment) -.date(date) -.createdBy(createdBy) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createClientFeedback( - businessId: businessId, - vendorId: vendorId, -); -createClientFeedbackData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String businessId = ...; -String vendorId = ...; - -final ref = ExampleConnector.instance.createClientFeedback( - businessId: businessId, - vendorId: vendorId, -).ref(); -ref.execute(); -``` - - -### updateClientFeedback +### UpdateCertificate #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateClientFeedback( +ExampleConnector.instance.updateCertificate( id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateClientFeedback, we created `updateClientFeedbackBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For UpdateCertificate, we created `UpdateCertificateBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateClientFeedbackVariablesBuilder { +class UpdateCertificateVariablesBuilder { ... - UpdateClientFeedbackVariablesBuilder businessId(String? t) { - _businessId.value = t; + UpdateCertificateVariablesBuilder name(String? t) { + _name.value = t; return this; } - UpdateClientFeedbackVariablesBuilder vendorId(String? t) { - _vendorId.value = t; + UpdateCertificateVariablesBuilder description(String? t) { + _description.value = t; return this; } - UpdateClientFeedbackVariablesBuilder rating(int? t) { - _rating.value = t; + UpdateCertificateVariablesBuilder expiry(Timestamp? t) { + _expiry.value = t; return this; } - UpdateClientFeedbackVariablesBuilder comment(String? t) { - _comment.value = t; + UpdateCertificateVariablesBuilder status(CertificateStatus? t) { + _status.value = t; return this; } - UpdateClientFeedbackVariablesBuilder date(Timestamp? t) { - _date.value = t; + UpdateCertificateVariablesBuilder fileUrl(String? t) { + _fileUrl.value = t; return this; } - UpdateClientFeedbackVariablesBuilder createdBy(String? t) { - _createdBy.value = t; + UpdateCertificateVariablesBuilder icon(String? t) { + _icon.value = t; + return this; + } + UpdateCertificateVariablesBuilder staffId(String? t) { + _staffId.value = t; + return this; + } + UpdateCertificateVariablesBuilder certificationType(ComplianceType? t) { + _certificationType.value = t; + return this; + } + UpdateCertificateVariablesBuilder issuer(String? t) { + _issuer.value = t; + return this; + } + UpdateCertificateVariablesBuilder validationStatus(ValidationStatus? t) { + _validationStatus.value = t; + return this; + } + UpdateCertificateVariablesBuilder certificateNumber(String? t) { + _certificateNumber.value = t; return this; } ... } -ExampleConnector.instance.updateClientFeedback( +ExampleConnector.instance.updateCertificate( id: id, ) -.businessId(businessId) -.vendorId(vendorId) -.rating(rating) -.comment(comment) -.date(date) -.createdBy(createdBy) +.name(name) +.description(description) +.expiry(expiry) +.status(status) +.fileUrl(fileUrl) +.icon(icon) +.staffId(staffId) +.certificationType(certificationType) +.issuer(issuer) +.validationStatus(validationStatus) +.certificateNumber(certificateNumber) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -21364,10 +20802,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateClientFeedback( +final result = await ExampleConnector.instance.updateCertificate( id: id, ); -updateClientFeedbackData data = result.data; +UpdateCertificateData data = result.data; final ref = result.ref; ``` @@ -21377,18 +20815,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateClientFeedback( +final ref = ExampleConnector.instance.updateCertificate( id: id, ).ref(); ref.execute(); ``` -### deleteClientFeedback +### DeleteCertificate #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteClientFeedback( +ExampleConnector.instance.deleteCertificate( id: id, ).execute(); ``` @@ -21396,7 +20834,7 @@ ExampleConnector.instance.deleteClientFeedback( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -21406,10 +20844,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteClientFeedback( +final result = await ExampleConnector.instance.deleteCertificate( id: id, ); -deleteClientFeedbackData data = result.data; +DeleteCertificateData data = result.data; final ref = result.ref; ``` @@ -21419,50 +20857,54 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteClientFeedback( +final ref = ExampleConnector.instance.deleteCertificate( id: id, ).ref(); ref.execute(); ``` -### createTaskComment +### createCustomRateCard #### Required Arguments ```dart -String taskId = ...; -String teamMemberId = ...; -String comment = ...; -ExampleConnector.instance.createTaskComment( - taskId: taskId, - teamMemberId: teamMemberId, - comment: comment, +String name = ...; +ExampleConnector.instance.createCustomRateCard( + name: name, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createTaskComment, we created `createTaskCommentBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createCustomRateCard, we created `createCustomRateCardBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateTaskCommentVariablesBuilder { +class CreateCustomRateCardVariablesBuilder { ... - CreateTaskCommentVariablesBuilder isSystem(bool? t) { - _isSystem.value = t; + CreateCustomRateCardVariablesBuilder baseBook(String? t) { + _baseBook.value = t; + return this; + } + CreateCustomRateCardVariablesBuilder discount(double? t) { + _discount.value = t; + return this; + } + CreateCustomRateCardVariablesBuilder isDefault(bool? t) { + _isDefault.value = t; return this; } ... } -ExampleConnector.instance.createTaskComment( - taskId: taskId, - teamMemberId: teamMemberId, - comment: comment, +ExampleConnector.instance.createCustomRateCard( + name: name, ) -.isSystem(isSystem) +.baseBook(baseBook) +.discount(discount) +.isDefault(isDefault) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -21472,12 +20914,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createTaskComment( - taskId: taskId, - teamMemberId: teamMemberId, - comment: comment, +final result = await ExampleConnector.instance.createCustomRateCard( + name: name, ); -createTaskCommentData data = result.data; +createCustomRateCardData data = result.data; final ref = result.ref; ``` @@ -21485,55 +20925,61 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String taskId = ...; -String teamMemberId = ...; -String comment = ...; +String name = ...; -final ref = ExampleConnector.instance.createTaskComment( - taskId: taskId, - teamMemberId: teamMemberId, - comment: comment, +final ref = ExampleConnector.instance.createCustomRateCard( + name: name, ).ref(); ref.execute(); ``` -### updateTaskComment +### updateCustomRateCard #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateTaskComment( +ExampleConnector.instance.updateCustomRateCard( id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateTaskComment, we created `updateTaskCommentBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateCustomRateCard, we created `updateCustomRateCardBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateTaskCommentVariablesBuilder { +class UpdateCustomRateCardVariablesBuilder { ... - UpdateTaskCommentVariablesBuilder comment(String? t) { - _comment.value = t; + UpdateCustomRateCardVariablesBuilder name(String? t) { + _name.value = t; return this; } - UpdateTaskCommentVariablesBuilder isSystem(bool? t) { - _isSystem.value = t; + UpdateCustomRateCardVariablesBuilder baseBook(String? t) { + _baseBook.value = t; + return this; + } + UpdateCustomRateCardVariablesBuilder discount(double? t) { + _discount.value = t; + return this; + } + UpdateCustomRateCardVariablesBuilder isDefault(bool? t) { + _isDefault.value = t; return this; } ... } -ExampleConnector.instance.updateTaskComment( +ExampleConnector.instance.updateCustomRateCard( id: id, ) -.comment(comment) -.isSystem(isSystem) +.name(name) +.baseBook(baseBook) +.discount(discount) +.isDefault(isDefault) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -21543,10 +20989,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateTaskComment( +final result = await ExampleConnector.instance.updateCustomRateCard( id: id, ); -updateTaskCommentData data = result.data; +updateCustomRateCardData data = result.data; final ref = result.ref; ``` @@ -21556,18 +21002,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateTaskComment( +final ref = ExampleConnector.instance.updateCustomRateCard( id: id, ).ref(); ref.execute(); ``` -### deleteTaskComment +### deleteCustomRateCard #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteTaskComment( +ExampleConnector.instance.deleteCustomRateCard( id: id, ).execute(); ``` @@ -21575,7 +21021,7 @@ ExampleConnector.instance.deleteTaskComment( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -21585,10 +21031,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteTaskComment( +final result = await ExampleConnector.instance.deleteCustomRateCard( id: id, ); -deleteTaskCommentData data = result.data; +deleteCustomRateCardData data = result.data; final ref = result.ref; ``` @@ -21598,13 +21044,473 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteTaskComment( +final ref = ExampleConnector.instance.deleteCustomRateCard( id: id, ).ref(); ref.execute(); ``` +### createRecentPayment +#### Required Arguments +```dart +String staffId = ...; +String applicationId = ...; +String invoiceId = ...; +ExampleConnector.instance.createRecentPayment( + staffId: staffId, + applicationId: applicationId, + invoiceId: invoiceId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createRecentPayment, we created `createRecentPaymentBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateRecentPaymentVariablesBuilder { + ... + + CreateRecentPaymentVariablesBuilder workedTime(String? t) { + _workedTime.value = t; + return this; + } + CreateRecentPaymentVariablesBuilder status(RecentPaymentStatus? t) { + _status.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createRecentPayment( + staffId: staffId, + applicationId: applicationId, + invoiceId: invoiceId, +) +.workedTime(workedTime) +.status(status) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createRecentPayment( + staffId: staffId, + applicationId: applicationId, + invoiceId: invoiceId, +); +createRecentPaymentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +String applicationId = ...; +String invoiceId = ...; + +final ref = ExampleConnector.instance.createRecentPayment( + staffId: staffId, + applicationId: applicationId, + invoiceId: invoiceId, +).ref(); +ref.execute(); +``` + + +### updateRecentPayment +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateRecentPayment( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateRecentPayment, we created `updateRecentPaymentBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateRecentPaymentVariablesBuilder { + ... + UpdateRecentPaymentVariablesBuilder workedTime(String? t) { + _workedTime.value = t; + return this; + } + UpdateRecentPaymentVariablesBuilder status(RecentPaymentStatus? t) { + _status.value = t; + return this; + } + UpdateRecentPaymentVariablesBuilder staffId(String? t) { + _staffId.value = t; + return this; + } + UpdateRecentPaymentVariablesBuilder applicationId(String? t) { + _applicationId.value = t; + return this; + } + UpdateRecentPaymentVariablesBuilder invoiceId(String? t) { + _invoiceId.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateRecentPayment( + id: id, +) +.workedTime(workedTime) +.status(status) +.staffId(staffId) +.applicationId(applicationId) +.invoiceId(invoiceId) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateRecentPayment( + id: id, +); +updateRecentPaymentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateRecentPayment( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteRecentPayment +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteRecentPayment( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteRecentPayment( + id: id, +); +deleteRecentPaymentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteRecentPayment( + id: id, +).ref(); +ref.execute(); +``` + + +### createShiftRole +#### Required Arguments +```dart +String shiftId = ...; +String roleId = ...; +int count = ...; +ExampleConnector.instance.createShiftRole( + shiftId: shiftId, + roleId: roleId, + count: count, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createShiftRole, we created `createShiftRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateShiftRoleVariablesBuilder { + ... + CreateShiftRoleVariablesBuilder assigned(int? t) { + _assigned.value = t; + return this; + } + CreateShiftRoleVariablesBuilder startTime(Timestamp? t) { + _startTime.value = t; + return this; + } + CreateShiftRoleVariablesBuilder endTime(Timestamp? t) { + _endTime.value = t; + return this; + } + CreateShiftRoleVariablesBuilder hours(double? t) { + _hours.value = t; + return this; + } + CreateShiftRoleVariablesBuilder department(String? t) { + _department.value = t; + return this; + } + CreateShiftRoleVariablesBuilder uniform(String? t) { + _uniform.value = t; + return this; + } + CreateShiftRoleVariablesBuilder breakType(BreakDuration? t) { + _breakType.value = t; + return this; + } + CreateShiftRoleVariablesBuilder totalValue(double? t) { + _totalValue.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createShiftRole( + shiftId: shiftId, + roleId: roleId, + count: count, +) +.assigned(assigned) +.startTime(startTime) +.endTime(endTime) +.hours(hours) +.department(department) +.uniform(uniform) +.breakType(breakType) +.totalValue(totalValue) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createShiftRole( + shiftId: shiftId, + roleId: roleId, + count: count, +); +createShiftRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String shiftId = ...; +String roleId = ...; +int count = ...; + +final ref = ExampleConnector.instance.createShiftRole( + shiftId: shiftId, + roleId: roleId, + count: count, +).ref(); +ref.execute(); +``` + + +### updateShiftRole +#### Required Arguments +```dart +String shiftId = ...; +String roleId = ...; +ExampleConnector.instance.updateShiftRole( + shiftId: shiftId, + roleId: roleId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateShiftRole, we created `updateShiftRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateShiftRoleVariablesBuilder { + ... + UpdateShiftRoleVariablesBuilder count(int? t) { + _count.value = t; + return this; + } + UpdateShiftRoleVariablesBuilder assigned(int? t) { + _assigned.value = t; + return this; + } + UpdateShiftRoleVariablesBuilder startTime(Timestamp? t) { + _startTime.value = t; + return this; + } + UpdateShiftRoleVariablesBuilder endTime(Timestamp? t) { + _endTime.value = t; + return this; + } + UpdateShiftRoleVariablesBuilder hours(double? t) { + _hours.value = t; + return this; + } + UpdateShiftRoleVariablesBuilder department(String? t) { + _department.value = t; + return this; + } + UpdateShiftRoleVariablesBuilder uniform(String? t) { + _uniform.value = t; + return this; + } + UpdateShiftRoleVariablesBuilder breakType(BreakDuration? t) { + _breakType.value = t; + return this; + } + UpdateShiftRoleVariablesBuilder totalValue(double? t) { + _totalValue.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateShiftRole( + shiftId: shiftId, + roleId: roleId, +) +.count(count) +.assigned(assigned) +.startTime(startTime) +.endTime(endTime) +.hours(hours) +.department(department) +.uniform(uniform) +.breakType(breakType) +.totalValue(totalValue) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateShiftRole( + shiftId: shiftId, + roleId: roleId, +); +updateShiftRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String shiftId = ...; +String roleId = ...; + +final ref = ExampleConnector.instance.updateShiftRole( + shiftId: shiftId, + roleId: roleId, +).ref(); +ref.execute(); +``` + + +### deleteShiftRole +#### Required Arguments +```dart +String shiftId = ...; +String roleId = ...; +ExampleConnector.instance.deleteShiftRole( + shiftId: shiftId, + roleId: roleId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteShiftRole( + shiftId: shiftId, + roleId: roleId, +); +deleteShiftRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String shiftId = ...; +String roleId = ...; + +final ref = ExampleConnector.instance.deleteShiftRole( + shiftId: shiftId, + roleId: roleId, +).ref(); +ref.execute(); +``` + + ### createAccount #### Required Arguments ```dart @@ -21830,129 +21736,45 @@ ref.execute(); ``` -### createOrder +### createLevel #### Required Arguments ```dart -String businessId = ...; -OrderType orderType = ...; -String teamHubId = ...; -ExampleConnector.instance.createOrder( - businessId: businessId, - orderType: orderType, - teamHubId: teamHubId, +String name = ...; +int xpRequired = ...; +ExampleConnector.instance.createLevel( + name: name, + xpRequired: xpRequired, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createOrder, we created `createOrderBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createLevel, we created `createLevelBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateOrderVariablesBuilder { +class CreateLevelVariablesBuilder { ... - - CreateOrderVariablesBuilder vendorId(String? t) { - _vendorId.value = t; + CreateLevelVariablesBuilder icon(String? t) { + _icon.value = t; return this; } - CreateOrderVariablesBuilder status(OrderStatus? t) { - _status.value = t; - return this; - } - CreateOrderVariablesBuilder date(Timestamp? t) { - _date.value = t; - return this; - } - CreateOrderVariablesBuilder startDate(Timestamp? t) { - _startDate.value = t; - return this; - } - CreateOrderVariablesBuilder endDate(Timestamp? t) { - _endDate.value = t; - return this; - } - CreateOrderVariablesBuilder duration(OrderDuration? t) { - _duration.value = t; - return this; - } - CreateOrderVariablesBuilder lunchBreak(int? t) { - _lunchBreak.value = t; - return this; - } - CreateOrderVariablesBuilder total(double? t) { - _total.value = t; - return this; - } - CreateOrderVariablesBuilder eventName(String? t) { - _eventName.value = t; - return this; - } - CreateOrderVariablesBuilder assignedStaff(AnyValue? t) { - _assignedStaff.value = t; - return this; - } - CreateOrderVariablesBuilder shifts(AnyValue? t) { - _shifts.value = t; - return this; - } - CreateOrderVariablesBuilder requested(int? t) { - _requested.value = t; - return this; - } - CreateOrderVariablesBuilder recurringDays(AnyValue? t) { - _recurringDays.value = t; - return this; - } - CreateOrderVariablesBuilder permanentStartDate(Timestamp? t) { - _permanentStartDate.value = t; - return this; - } - CreateOrderVariablesBuilder permanentDays(AnyValue? t) { - _permanentDays.value = t; - return this; - } - CreateOrderVariablesBuilder notes(String? t) { - _notes.value = t; - return this; - } - CreateOrderVariablesBuilder detectedConflicts(AnyValue? t) { - _detectedConflicts.value = t; - return this; - } - CreateOrderVariablesBuilder poReference(String? t) { - _poReference.value = t; + CreateLevelVariablesBuilder colors(AnyValue? t) { + _colors.value = t; return this; } ... } -ExampleConnector.instance.createOrder( - businessId: businessId, - orderType: orderType, - teamHubId: teamHubId, +ExampleConnector.instance.createLevel( + name: name, + xpRequired: xpRequired, ) -.vendorId(vendorId) -.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) +.icon(icon) +.colors(colors) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -21962,12 +21784,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createOrder( - businessId: businessId, - orderType: orderType, - teamHubId: teamHubId, +final result = await ExampleConnector.instance.createLevel( + name: name, + xpRequired: xpRequired, ); -createOrderData data = result.data; +createLevelData data = result.data; final ref = result.ref; ``` @@ -21975,128 +21796,63 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String businessId = ...; -OrderType orderType = ...; -String teamHubId = ...; +String name = ...; +int xpRequired = ...; -final ref = ExampleConnector.instance.createOrder( - businessId: businessId, - orderType: orderType, - teamHubId: teamHubId, +final ref = ExampleConnector.instance.createLevel( + name: name, + xpRequired: xpRequired, ).ref(); ref.execute(); ``` -### updateOrder +### updateLevel #### Required Arguments ```dart String id = ...; -String teamHubId = ...; -ExampleConnector.instance.updateOrder( +ExampleConnector.instance.updateLevel( id: id, - teamHubId: teamHubId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateOrder, we created `updateOrderBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateLevel, we created `updateLevelBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateOrderVariablesBuilder { +class UpdateLevelVariablesBuilder { ... - UpdateOrderVariablesBuilder vendorId(String? t) { - _vendorId.value = t; + UpdateLevelVariablesBuilder name(String? t) { + _name.value = t; return this; } - UpdateOrderVariablesBuilder businessId(String? t) { - _businessId.value = t; + UpdateLevelVariablesBuilder xpRequired(int? t) { + _xpRequired.value = t; return this; } - UpdateOrderVariablesBuilder status(OrderStatus? t) { - _status.value = t; + UpdateLevelVariablesBuilder icon(String? t) { + _icon.value = t; return this; } - UpdateOrderVariablesBuilder date(Timestamp? t) { - _date.value = t; - return this; - } - UpdateOrderVariablesBuilder startDate(Timestamp? t) { - _startDate.value = t; - return this; - } - UpdateOrderVariablesBuilder endDate(Timestamp? t) { - _endDate.value = t; - return this; - } - UpdateOrderVariablesBuilder total(double? t) { - _total.value = t; - return this; - } - UpdateOrderVariablesBuilder eventName(String? t) { - _eventName.value = t; - return this; - } - UpdateOrderVariablesBuilder assignedStaff(AnyValue? t) { - _assignedStaff.value = t; - return this; - } - UpdateOrderVariablesBuilder shifts(AnyValue? t) { - _shifts.value = t; - return this; - } - UpdateOrderVariablesBuilder requested(int? t) { - _requested.value = t; - return this; - } - UpdateOrderVariablesBuilder recurringDays(AnyValue? t) { - _recurringDays.value = t; - return this; - } - UpdateOrderVariablesBuilder permanentDays(AnyValue? t) { - _permanentDays.value = t; - return this; - } - UpdateOrderVariablesBuilder notes(String? t) { - _notes.value = t; - return this; - } - UpdateOrderVariablesBuilder detectedConflicts(AnyValue? t) { - _detectedConflicts.value = t; - return this; - } - UpdateOrderVariablesBuilder poReference(String? t) { - _poReference.value = t; + UpdateLevelVariablesBuilder colors(AnyValue? t) { + _colors.value = t; return this; } ... } -ExampleConnector.instance.updateOrder( +ExampleConnector.instance.updateLevel( id: id, - teamHubId: teamHubId, ) -.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) +.name(name) +.xpRequired(xpRequired) +.icon(icon) +.colors(colors) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -22106,11 +21862,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateOrder( +final result = await ExampleConnector.instance.updateLevel( id: id, - teamHubId: teamHubId, ); -updateOrderData data = result.data; +updateLevelData data = result.data; final ref = result.ref; ``` @@ -22119,21 +21874,19 @@ Each builder returns an `execute` function, which is a helper function that crea An example of how to use the `Ref` object is shown below: ```dart String id = ...; -String teamHubId = ...; -final ref = ExampleConnector.instance.updateOrder( +final ref = ExampleConnector.instance.updateLevel( id: id, - teamHubId: teamHubId, ).ref(); ref.execute(); ``` -### deleteOrder +### deleteLevel #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteOrder( +ExampleConnector.instance.deleteLevel( id: id, ).execute(); ``` @@ -22141,7 +21894,7 @@ ExampleConnector.instance.deleteOrder( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -22151,10 +21904,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteOrder( +final result = await ExampleConnector.instance.deleteLevel( id: id, ); -deleteOrderData data = result.data; +deleteLevelData data = result.data; final ref = result.ref; ``` @@ -22164,788 +21917,62 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteOrder( +final ref = ExampleConnector.instance.deleteLevel( id: id, ).ref(); ref.execute(); ``` -### createWorkforce +### CreateUser #### Required Arguments ```dart -String vendorId = ...; -String staffId = ...; -String workforceNumber = ...; -ExampleConnector.instance.createWorkforce( - vendorId: vendorId, - staffId: staffId, - workforceNumber: workforceNumber, +String id = ...; +UserBaseRole role = ...; +ExampleConnector.instance.createUser( + id: id, + role: role, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createWorkforce, we created `createWorkforceBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For CreateUser, we created `CreateUserBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateWorkforceVariablesBuilder { +class CreateUserVariablesBuilder { ... - CreateWorkforceVariablesBuilder employmentType(WorkforceEmploymentType? t) { - _employmentType.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createWorkforce( - vendorId: vendorId, - staffId: staffId, - workforceNumber: workforceNumber, -) -.employmentType(employmentType) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createWorkforce( - vendorId: vendorId, - staffId: staffId, - workforceNumber: workforceNumber, -); -createWorkforceData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String vendorId = ...; -String staffId = ...; -String workforceNumber = ...; - -final ref = ExampleConnector.instance.createWorkforce( - vendorId: vendorId, - staffId: staffId, - workforceNumber: workforceNumber, -).ref(); -ref.execute(); -``` - - -### updateWorkforce -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateWorkforce( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateWorkforce, we created `updateWorkforceBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateWorkforceVariablesBuilder { - ... - UpdateWorkforceVariablesBuilder workforceNumber(String? t) { - _workforceNumber.value = t; - return this; - } - UpdateWorkforceVariablesBuilder employmentType(WorkforceEmploymentType? t) { - _employmentType.value = t; - return this; - } - UpdateWorkforceVariablesBuilder status(WorkforceStatus? t) { - _status.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateWorkforce( - id: id, -) -.workforceNumber(workforceNumber) -.employmentType(employmentType) -.status(status) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateWorkforce( - id: id, -); -updateWorkforceData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateWorkforce( - id: id, -).ref(); -ref.execute(); -``` - - -### deactivateWorkforce -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deactivateWorkforce( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deactivateWorkforce( - id: id, -); -deactivateWorkforceData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deactivateWorkforce( - id: id, -).ref(); -ref.execute(); -``` - - -### createTeamHub -#### Required Arguments -```dart -String teamId = ...; -String hubName = ...; -String address = ...; -ExampleConnector.instance.createTeamHub( - teamId: teamId, - hubName: hubName, - address: address, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createTeamHub, we created `createTeamHubBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateTeamHubVariablesBuilder { - ... - CreateTeamHubVariablesBuilder placeId(String? t) { - _placeId.value = t; - return this; - } - CreateTeamHubVariablesBuilder latitude(double? t) { - _latitude.value = t; - return this; - } - CreateTeamHubVariablesBuilder longitude(double? t) { - _longitude.value = t; - return this; - } - CreateTeamHubVariablesBuilder city(String? t) { - _city.value = t; - return this; - } - CreateTeamHubVariablesBuilder state(String? t) { - _state.value = t; - return this; - } - CreateTeamHubVariablesBuilder street(String? t) { - _street.value = t; - return this; - } - CreateTeamHubVariablesBuilder country(String? t) { - _country.value = t; - return this; - } - CreateTeamHubVariablesBuilder zipCode(String? t) { - _zipCode.value = t; - return this; - } - CreateTeamHubVariablesBuilder managerName(String? t) { - _managerName.value = t; - return this; - } - CreateTeamHubVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - CreateTeamHubVariablesBuilder departments(AnyValue? t) { - _departments.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createTeamHub( - teamId: teamId, - hubName: hubName, - address: address, -) -.placeId(placeId) -.latitude(latitude) -.longitude(longitude) -.city(city) -.state(state) -.street(street) -.country(country) -.zipCode(zipCode) -.managerName(managerName) -.isActive(isActive) -.departments(departments) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createTeamHub( - teamId: teamId, - hubName: hubName, - address: address, -); -createTeamHubData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String teamId = ...; -String hubName = ...; -String address = ...; - -final ref = ExampleConnector.instance.createTeamHub( - teamId: teamId, - hubName: hubName, - address: address, -).ref(); -ref.execute(); -``` - - -### updateTeamHub -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateTeamHub( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateTeamHub, we created `updateTeamHubBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateTeamHubVariablesBuilder { - ... - UpdateTeamHubVariablesBuilder teamId(String? t) { - _teamId.value = t; - return this; - } - UpdateTeamHubVariablesBuilder hubName(String? t) { - _hubName.value = t; - return this; - } - UpdateTeamHubVariablesBuilder address(String? t) { - _address.value = t; - return this; - } - UpdateTeamHubVariablesBuilder placeId(String? t) { - _placeId.value = t; - return this; - } - UpdateTeamHubVariablesBuilder latitude(double? t) { - _latitude.value = t; - return this; - } - UpdateTeamHubVariablesBuilder longitude(double? t) { - _longitude.value = t; - return this; - } - UpdateTeamHubVariablesBuilder city(String? t) { - _city.value = t; - return this; - } - UpdateTeamHubVariablesBuilder state(String? t) { - _state.value = t; - return this; - } - UpdateTeamHubVariablesBuilder street(String? t) { - _street.value = t; - return this; - } - UpdateTeamHubVariablesBuilder country(String? t) { - _country.value = t; - return this; - } - UpdateTeamHubVariablesBuilder zipCode(String? t) { - _zipCode.value = t; - return this; - } - UpdateTeamHubVariablesBuilder managerName(String? t) { - _managerName.value = t; - return this; - } - UpdateTeamHubVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - UpdateTeamHubVariablesBuilder departments(AnyValue? t) { - _departments.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateTeamHub( - id: id, -) -.teamId(teamId) -.hubName(hubName) -.address(address) -.placeId(placeId) -.latitude(latitude) -.longitude(longitude) -.city(city) -.state(state) -.street(street) -.country(country) -.zipCode(zipCode) -.managerName(managerName) -.isActive(isActive) -.departments(departments) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateTeamHub( - id: id, -); -updateTeamHubData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateTeamHub( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteTeamHub -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteTeamHub( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteTeamHub( - id: id, -); -deleteTeamHubData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteTeamHub( - id: id, -).ref(); -ref.execute(); -``` - - -### createApplication -#### Required Arguments -```dart -String shiftId = ...; -String staffId = ...; -ApplicationStatus status = ...; -ApplicationOrigin origin = ...; -String roleId = ...; -ExampleConnector.instance.createApplication( - shiftId: shiftId, - staffId: staffId, - status: status, - origin: origin, - roleId: roleId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createApplication, we created `createApplicationBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateApplicationVariablesBuilder { - ... - CreateApplicationVariablesBuilder checkInTime(Timestamp? t) { - _checkInTime.value = t; - return this; - } - CreateApplicationVariablesBuilder checkOutTime(Timestamp? t) { - _checkOutTime.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createApplication( - shiftId: shiftId, - staffId: staffId, - status: status, - origin: origin, - roleId: roleId, -) -.checkInTime(checkInTime) -.checkOutTime(checkOutTime) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createApplication( - shiftId: shiftId, - staffId: staffId, - status: status, - origin: origin, - roleId: roleId, -); -createApplicationData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String shiftId = ...; -String staffId = ...; -ApplicationStatus status = ...; -ApplicationOrigin origin = ...; -String roleId = ...; - -final ref = ExampleConnector.instance.createApplication( - shiftId: shiftId, - staffId: staffId, - status: status, - origin: origin, - roleId: roleId, -).ref(); -ref.execute(); -``` - - -### updateApplicationStatus -#### Required Arguments -```dart -String id = ...; -String roleId = ...; -ExampleConnector.instance.updateApplicationStatus( - id: id, - roleId: roleId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateApplicationStatus, we created `updateApplicationStatusBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateApplicationStatusVariablesBuilder { - ... - UpdateApplicationStatusVariablesBuilder shiftId(String? t) { - _shiftId.value = t; - return this; - } - UpdateApplicationStatusVariablesBuilder staffId(String? t) { - _staffId.value = t; - return this; - } - UpdateApplicationStatusVariablesBuilder status(ApplicationStatus? t) { - _status.value = t; - return this; - } - UpdateApplicationStatusVariablesBuilder checkInTime(Timestamp? t) { - _checkInTime.value = t; - return this; - } - UpdateApplicationStatusVariablesBuilder checkOutTime(Timestamp? t) { - _checkOutTime.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateApplicationStatus( - id: id, - roleId: roleId, -) -.shiftId(shiftId) -.staffId(staffId) -.status(status) -.checkInTime(checkInTime) -.checkOutTime(checkOutTime) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateApplicationStatus( - id: id, - roleId: roleId, -); -updateApplicationStatusData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; -String roleId = ...; - -final ref = ExampleConnector.instance.updateApplicationStatus( - id: id, - roleId: roleId, -).ref(); -ref.execute(); -``` - - -### deleteApplication -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteApplication( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteApplication( - id: id, -); -deleteApplicationData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteApplication( - id: id, -).ref(); -ref.execute(); -``` - - -### createBusiness -#### Required Arguments -```dart -String businessName = ...; -String userId = ...; -BusinessRateGroup rateGroup = ...; -BusinessStatus status = ...; -ExampleConnector.instance.createBusiness( - businessName: businessName, - userId: userId, - rateGroup: rateGroup, - status: status, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createBusiness, we created `createBusinessBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateBusinessVariablesBuilder { - ... - CreateBusinessVariablesBuilder contactName(String? t) { - _contactName.value = t; - return this; - } - CreateBusinessVariablesBuilder companyLogoUrl(String? t) { - _companyLogoUrl.value = t; - return this; - } - CreateBusinessVariablesBuilder phone(String? t) { - _phone.value = t; - return this; - } - CreateBusinessVariablesBuilder email(String? t) { + CreateUserVariablesBuilder email(String? t) { _email.value = t; return this; } - CreateBusinessVariablesBuilder hubBuilding(String? t) { - _hubBuilding.value = t; + CreateUserVariablesBuilder fullName(String? t) { + _fullName.value = t; return this; } - CreateBusinessVariablesBuilder address(String? t) { - _address.value = t; + CreateUserVariablesBuilder userRole(String? t) { + _userRole.value = t; return this; } - CreateBusinessVariablesBuilder city(String? t) { - _city.value = t; - return this; - } - CreateBusinessVariablesBuilder area(BusinessArea? t) { - _area.value = t; - return this; - } - CreateBusinessVariablesBuilder sector(BusinessSector? t) { - _sector.value = t; - return this; - } - CreateBusinessVariablesBuilder notes(String? t) { - _notes.value = t; + CreateUserVariablesBuilder photoUrl(String? t) { + _photoUrl.value = t; return this; } ... } -ExampleConnector.instance.createBusiness( - businessName: businessName, - userId: userId, - rateGroup: rateGroup, - status: status, +ExampleConnector.instance.createUser( + id: id, + role: role, ) -.contactName(contactName) -.companyLogoUrl(companyLogoUrl) -.phone(phone) .email(email) -.hubBuilding(hubBuilding) -.address(address) -.city(city) -.area(area) -.sector(sector) -.notes(notes) +.fullName(fullName) +.userRole(userRole) +.photoUrl(photoUrl) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -22955,13 +21982,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createBusiness( - businessName: businessName, - userId: userId, - rateGroup: rateGroup, - status: status, +final result = await ExampleConnector.instance.createUser( + id: id, + role: role, ); -createBusinessData data = result.data; +CreateUserData data = result.data; final ref = result.ref; ``` @@ -22969,112 +21994,68 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String businessName = ...; -String userId = ...; -BusinessRateGroup rateGroup = ...; -BusinessStatus status = ...; +String id = ...; +UserBaseRole role = ...; -final ref = ExampleConnector.instance.createBusiness( - businessName: businessName, - userId: userId, - rateGroup: rateGroup, - status: status, +final ref = ExampleConnector.instance.createUser( + id: id, + role: role, ).ref(); ref.execute(); ``` -### updateBusiness +### UpdateUser #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateBusiness( +ExampleConnector.instance.updateUser( id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateBusiness, we created `updateBusinessBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For UpdateUser, we created `UpdateUserBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateBusinessVariablesBuilder { +class UpdateUserVariablesBuilder { ... - UpdateBusinessVariablesBuilder businessName(String? t) { - _businessName.value = t; - return this; - } - UpdateBusinessVariablesBuilder contactName(String? t) { - _contactName.value = t; - return this; - } - UpdateBusinessVariablesBuilder companyLogoUrl(String? t) { - _companyLogoUrl.value = t; - return this; - } - UpdateBusinessVariablesBuilder phone(String? t) { - _phone.value = t; - return this; - } - UpdateBusinessVariablesBuilder email(String? t) { + UpdateUserVariablesBuilder email(String? t) { _email.value = t; return this; } - UpdateBusinessVariablesBuilder hubBuilding(String? t) { - _hubBuilding.value = t; + UpdateUserVariablesBuilder fullName(String? t) { + _fullName.value = t; return this; } - UpdateBusinessVariablesBuilder address(String? t) { - _address.value = t; + UpdateUserVariablesBuilder role(UserBaseRole? t) { + _role.value = t; return this; } - UpdateBusinessVariablesBuilder city(String? t) { - _city.value = t; + UpdateUserVariablesBuilder userRole(String? t) { + _userRole.value = t; return this; } - UpdateBusinessVariablesBuilder area(BusinessArea? t) { - _area.value = t; - return this; - } - UpdateBusinessVariablesBuilder sector(BusinessSector? t) { - _sector.value = t; - return this; - } - UpdateBusinessVariablesBuilder rateGroup(BusinessRateGroup? t) { - _rateGroup.value = t; - return this; - } - UpdateBusinessVariablesBuilder status(BusinessStatus? t) { - _status.value = t; - return this; - } - UpdateBusinessVariablesBuilder notes(String? t) { - _notes.value = t; + UpdateUserVariablesBuilder photoUrl(String? t) { + _photoUrl.value = t; return this; } ... } -ExampleConnector.instance.updateBusiness( +ExampleConnector.instance.updateUser( id: id, ) -.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) +.fullName(fullName) +.role(role) +.userRole(userRole) +.photoUrl(photoUrl) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23084,10 +22065,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateBusiness( +final result = await ExampleConnector.instance.updateUser( id: id, ); -updateBusinessData data = result.data; +UpdateUserData data = result.data; final ref = result.ref; ``` @@ -23097,18 +22078,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateBusiness( +final ref = ExampleConnector.instance.updateUser( id: id, ).ref(); ref.execute(); ``` -### deleteBusiness +### DeleteUser #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteBusiness( +ExampleConnector.instance.deleteUser( id: id, ).execute(); ``` @@ -23116,7 +22097,7 @@ ExampleConnector.instance.deleteBusiness( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23126,10 +22107,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteBusiness( +final result = await ExampleConnector.instance.deleteUser( id: id, ); -deleteBusinessData data = result.data; +DeleteUserData data = result.data; final ref = result.ref; ``` @@ -23139,7 +22120,330 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteBusiness( +final ref = ExampleConnector.instance.deleteUser( + id: id, +).ref(); +ref.execute(); +``` + + +### createEmergencyContact +#### Required Arguments +```dart +String name = ...; +String phone = ...; +RelationshipType relationship = ...; +String staffId = ...; +ExampleConnector.instance.createEmergencyContact( + name: name, + phone: phone, + relationship: relationship, + staffId: staffId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createEmergencyContact( + name: name, + phone: phone, + relationship: relationship, + staffId: staffId, +); +createEmergencyContactData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String name = ...; +String phone = ...; +RelationshipType relationship = ...; +String staffId = ...; + +final ref = ExampleConnector.instance.createEmergencyContact( + name: name, + phone: phone, + relationship: relationship, + staffId: staffId, +).ref(); +ref.execute(); +``` + + +### updateEmergencyContact +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateEmergencyContact( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateEmergencyContact, we created `updateEmergencyContactBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateEmergencyContactVariablesBuilder { + ... + UpdateEmergencyContactVariablesBuilder name(String? t) { + _name.value = t; + return this; + } + UpdateEmergencyContactVariablesBuilder phone(String? t) { + _phone.value = t; + return this; + } + UpdateEmergencyContactVariablesBuilder relationship(RelationshipType? t) { + _relationship.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateEmergencyContact( + id: id, +) +.name(name) +.phone(phone) +.relationship(relationship) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateEmergencyContact( + id: id, +); +updateEmergencyContactData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateEmergencyContact( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteEmergencyContact +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteEmergencyContact( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteEmergencyContact( + id: id, +); +deleteEmergencyContactData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteEmergencyContact( + id: id, +).ref(); +ref.execute(); +``` + + +### createRoleCategory +#### Required Arguments +```dart +String roleName = ...; +RoleCategoryType category = ...; +ExampleConnector.instance.createRoleCategory( + roleName: roleName, + category: category, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createRoleCategory( + roleName: roleName, + category: category, +); +createRoleCategoryData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String roleName = ...; +RoleCategoryType category = ...; + +final ref = ExampleConnector.instance.createRoleCategory( + roleName: roleName, + category: category, +).ref(); +ref.execute(); +``` + + +### updateRoleCategory +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateRoleCategory( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateRoleCategory, we created `updateRoleCategoryBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateRoleCategoryVariablesBuilder { + ... + UpdateRoleCategoryVariablesBuilder roleName(String? t) { + _roleName.value = t; + return this; + } + UpdateRoleCategoryVariablesBuilder category(RoleCategoryType? t) { + _category.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateRoleCategory( + id: id, +) +.roleName(roleName) +.category(category) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateRoleCategory( + id: id, +); +updateRoleCategoryData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateRoleCategory( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteRoleCategory +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteRoleCategory( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteRoleCategory( + id: id, +); +deleteRoleCategoryData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteRoleCategory( id: id, ).ref(); ref.execute(); @@ -23634,48 +22938,72 @@ ref.execute(); ``` -### createStaffAvailability +### createVendorRate #### Required Arguments ```dart -String staffId = ...; -DayOfWeek day = ...; -AvailabilitySlot slot = ...; -ExampleConnector.instance.createStaffAvailability( - staffId: staffId, - day: day, - slot: slot, +String vendorId = ...; +ExampleConnector.instance.createVendorRate( + vendorId: vendorId, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createStaffAvailability, we created `createStaffAvailabilityBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createVendorRate, we created `createVendorRateBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateStaffAvailabilityVariablesBuilder { +class CreateVendorRateVariablesBuilder { ... - CreateStaffAvailabilityVariablesBuilder status(AvailabilityStatus? t) { - _status.value = t; + CreateVendorRateVariablesBuilder roleName(String? t) { + _roleName.value = t; return this; } - CreateStaffAvailabilityVariablesBuilder notes(String? t) { + CreateVendorRateVariablesBuilder category(CategoryType? t) { + _category.value = t; + return this; + } + CreateVendorRateVariablesBuilder clientRate(double? t) { + _clientRate.value = t; + return this; + } + CreateVendorRateVariablesBuilder employeeWage(double? t) { + _employeeWage.value = t; + return this; + } + CreateVendorRateVariablesBuilder markupPercentage(double? t) { + _markupPercentage.value = t; + return this; + } + CreateVendorRateVariablesBuilder vendorFeePercentage(double? t) { + _vendorFeePercentage.value = t; + return this; + } + CreateVendorRateVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + CreateVendorRateVariablesBuilder notes(String? t) { _notes.value = t; return this; } ... } -ExampleConnector.instance.createStaffAvailability( - staffId: staffId, - day: day, - slot: slot, +ExampleConnector.instance.createVendorRate( + vendorId: vendorId, ) -.status(status) +.roleName(roleName) +.category(category) +.clientRate(clientRate) +.employeeWage(employeeWage) +.markupPercentage(markupPercentage) +.vendorFeePercentage(vendorFeePercentage) +.isActive(isActive) .notes(notes) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23685,12 +23013,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createStaffAvailability( - staffId: staffId, - day: day, - slot: slot, +final result = await ExampleConnector.instance.createVendorRate( + vendorId: vendorId, ); -createStaffAvailabilityData data = result.data; +createVendorRateData data = result.data; final ref = result.ref; ``` @@ -23698,61 +23024,86 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String staffId = ...; -DayOfWeek day = ...; -AvailabilitySlot slot = ...; +String vendorId = ...; -final ref = ExampleConnector.instance.createStaffAvailability( - staffId: staffId, - day: day, - slot: slot, +final ref = ExampleConnector.instance.createVendorRate( + vendorId: vendorId, ).ref(); ref.execute(); ``` -### updateStaffAvailability +### updateVendorRate #### Required Arguments ```dart -String staffId = ...; -DayOfWeek day = ...; -AvailabilitySlot slot = ...; -ExampleConnector.instance.updateStaffAvailability( - staffId: staffId, - day: day, - slot: slot, +String id = ...; +ExampleConnector.instance.updateVendorRate( + id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateStaffAvailability, we created `updateStaffAvailabilityBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateVendorRate, we created `updateVendorRateBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateStaffAvailabilityVariablesBuilder { +class UpdateVendorRateVariablesBuilder { ... - UpdateStaffAvailabilityVariablesBuilder status(AvailabilityStatus? t) { - _status.value = t; + UpdateVendorRateVariablesBuilder vendorId(String? t) { + _vendorId.value = t; return this; } - UpdateStaffAvailabilityVariablesBuilder notes(String? t) { + UpdateVendorRateVariablesBuilder roleName(String? t) { + _roleName.value = t; + return this; + } + UpdateVendorRateVariablesBuilder category(CategoryType? t) { + _category.value = t; + return this; + } + UpdateVendorRateVariablesBuilder clientRate(double? t) { + _clientRate.value = t; + return this; + } + UpdateVendorRateVariablesBuilder employeeWage(double? t) { + _employeeWage.value = t; + return this; + } + UpdateVendorRateVariablesBuilder markupPercentage(double? t) { + _markupPercentage.value = t; + return this; + } + UpdateVendorRateVariablesBuilder vendorFeePercentage(double? t) { + _vendorFeePercentage.value = t; + return this; + } + UpdateVendorRateVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + UpdateVendorRateVariablesBuilder notes(String? t) { _notes.value = t; return this; } ... } -ExampleConnector.instance.updateStaffAvailability( - staffId: staffId, - day: day, - slot: slot, +ExampleConnector.instance.updateVendorRate( + id: id, ) -.status(status) +.vendorId(vendorId) +.roleName(roleName) +.category(category) +.clientRate(clientRate) +.employeeWage(employeeWage) +.markupPercentage(markupPercentage) +.vendorFeePercentage(vendorFeePercentage) +.isActive(isActive) .notes(notes) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23762,12 +23113,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateStaffAvailability( - staffId: staffId, - day: day, - slot: slot, +final result = await ExampleConnector.instance.updateVendorRate( + id: id, ); -updateStaffAvailabilityData data = result.data; +updateVendorRateData data = result.data; final ref = result.ref; ``` @@ -23775,36 +23124,28 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String staffId = ...; -DayOfWeek day = ...; -AvailabilitySlot slot = ...; +String id = ...; -final ref = ExampleConnector.instance.updateStaffAvailability( - staffId: staffId, - day: day, - slot: slot, +final ref = ExampleConnector.instance.updateVendorRate( + id: id, ).ref(); ref.execute(); ``` -### deleteStaffAvailability +### deleteVendorRate #### Required Arguments ```dart -String staffId = ...; -DayOfWeek day = ...; -AvailabilitySlot slot = ...; -ExampleConnector.instance.deleteStaffAvailability( - staffId: staffId, - day: day, - slot: slot, +String id = ...; +ExampleConnector.instance.deleteVendorRate( + id: id, ).execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23814,12 +23155,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteStaffAvailability( - staffId: staffId, - day: day, - slot: slot, +final result = await ExampleConnector.instance.deleteVendorRate( + id: id, ); -deleteStaffAvailabilityData data = result.data; +deleteVendorRateData data = result.data; final ref = result.ref; ``` @@ -23827,14 +23166,702 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String staffId = ...; -DayOfWeek day = ...; -AvailabilitySlot slot = ...; +String id = ...; -final ref = ExampleConnector.instance.deleteStaffAvailability( +final ref = ExampleConnector.instance.deleteVendorRate( + id: id, +).ref(); +ref.execute(); +``` + + +### createWorkforce +#### Required Arguments +```dart +String vendorId = ...; +String staffId = ...; +String workforceNumber = ...; +ExampleConnector.instance.createWorkforce( + vendorId: vendorId, staffId: staffId, - day: day, - slot: slot, + workforceNumber: workforceNumber, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createWorkforce, we created `createWorkforceBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateWorkforceVariablesBuilder { + ... + CreateWorkforceVariablesBuilder employmentType(WorkforceEmploymentType? t) { + _employmentType.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createWorkforce( + vendorId: vendorId, + staffId: staffId, + workforceNumber: workforceNumber, +) +.employmentType(employmentType) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createWorkforce( + vendorId: vendorId, + staffId: staffId, + workforceNumber: workforceNumber, +); +createWorkforceData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorId = ...; +String staffId = ...; +String workforceNumber = ...; + +final ref = ExampleConnector.instance.createWorkforce( + vendorId: vendorId, + staffId: staffId, + workforceNumber: workforceNumber, +).ref(); +ref.execute(); +``` + + +### updateWorkforce +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateWorkforce( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateWorkforce, we created `updateWorkforceBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateWorkforceVariablesBuilder { + ... + UpdateWorkforceVariablesBuilder workforceNumber(String? t) { + _workforceNumber.value = t; + return this; + } + UpdateWorkforceVariablesBuilder employmentType(WorkforceEmploymentType? t) { + _employmentType.value = t; + return this; + } + UpdateWorkforceVariablesBuilder status(WorkforceStatus? t) { + _status.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateWorkforce( + id: id, +) +.workforceNumber(workforceNumber) +.employmentType(employmentType) +.status(status) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateWorkforce( + id: id, +); +updateWorkforceData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateWorkforce( + id: id, +).ref(); +ref.execute(); +``` + + +### deactivateWorkforce +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deactivateWorkforce( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deactivateWorkforce( + id: id, +); +deactivateWorkforceData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deactivateWorkforce( + id: id, +).ref(); +ref.execute(); +``` + + +### createFaqData +#### Required Arguments +```dart +String category = ...; +ExampleConnector.instance.createFaqData( + category: category, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createFaqData, we created `createFaqDataBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateFaqDataVariablesBuilder { + ... + CreateFaqDataVariablesBuilder questions(List? t) { + _questions.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createFaqData( + category: category, +) +.questions(questions) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createFaqData( + category: category, +); +createFaqDataData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String category = ...; + +final ref = ExampleConnector.instance.createFaqData( + category: category, +).ref(); +ref.execute(); +``` + + +### updateFaqData +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateFaqData( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateFaqData, we created `updateFaqDataBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateFaqDataVariablesBuilder { + ... + UpdateFaqDataVariablesBuilder category(String? t) { + _category.value = t; + return this; + } + UpdateFaqDataVariablesBuilder questions(List? t) { + _questions.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateFaqData( + id: id, +) +.category(category) +.questions(questions) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateFaqData( + id: id, +); +updateFaqDataData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.updateFaqData( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteFaqData +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteFaqData( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteFaqData( + id: id, +); +deleteFaqDataData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteFaqData( + id: id, +).ref(); +ref.execute(); +``` + + +### createOrder +#### Required Arguments +```dart +String businessId = ...; +OrderType orderType = ...; +String teamHubId = ...; +ExampleConnector.instance.createOrder( + businessId: businessId, + orderType: orderType, + teamHubId: teamHubId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createOrder, we created `createOrderBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateOrderVariablesBuilder { + ... + + CreateOrderVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + CreateOrderVariablesBuilder status(OrderStatus? t) { + _status.value = t; + return this; + } + CreateOrderVariablesBuilder date(Timestamp? t) { + _date.value = t; + return this; + } + CreateOrderVariablesBuilder startDate(Timestamp? t) { + _startDate.value = t; + return this; + } + CreateOrderVariablesBuilder endDate(Timestamp? t) { + _endDate.value = t; + return this; + } + CreateOrderVariablesBuilder duration(OrderDuration? t) { + _duration.value = t; + return this; + } + CreateOrderVariablesBuilder lunchBreak(int? t) { + _lunchBreak.value = t; + return this; + } + CreateOrderVariablesBuilder total(double? t) { + _total.value = t; + return this; + } + CreateOrderVariablesBuilder eventName(String? t) { + _eventName.value = t; + return this; + } + CreateOrderVariablesBuilder assignedStaff(AnyValue? t) { + _assignedStaff.value = t; + return this; + } + CreateOrderVariablesBuilder shifts(AnyValue? t) { + _shifts.value = t; + return this; + } + CreateOrderVariablesBuilder requested(int? t) { + _requested.value = t; + return this; + } + CreateOrderVariablesBuilder recurringDays(AnyValue? t) { + _recurringDays.value = t; + return this; + } + CreateOrderVariablesBuilder permanentStartDate(Timestamp? t) { + _permanentStartDate.value = t; + return this; + } + CreateOrderVariablesBuilder permanentDays(AnyValue? t) { + _permanentDays.value = t; + return this; + } + CreateOrderVariablesBuilder notes(String? t) { + _notes.value = t; + return this; + } + CreateOrderVariablesBuilder detectedConflicts(AnyValue? t) { + _detectedConflicts.value = t; + return this; + } + CreateOrderVariablesBuilder poReference(String? t) { + _poReference.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createOrder( + businessId: businessId, + orderType: orderType, + teamHubId: teamHubId, +) +.vendorId(vendorId) +.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) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createOrder( + businessId: businessId, + orderType: orderType, + teamHubId: teamHubId, +); +createOrderData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String businessId = ...; +OrderType orderType = ...; +String teamHubId = ...; + +final ref = ExampleConnector.instance.createOrder( + businessId: businessId, + orderType: orderType, + teamHubId: teamHubId, +).ref(); +ref.execute(); +``` + + +### updateOrder +#### Required Arguments +```dart +String id = ...; +String teamHubId = ...; +ExampleConnector.instance.updateOrder( + id: id, + teamHubId: teamHubId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateOrder, we created `updateOrderBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateOrderVariablesBuilder { + ... + UpdateOrderVariablesBuilder vendorId(String? t) { + _vendorId.value = t; + return this; + } + UpdateOrderVariablesBuilder businessId(String? t) { + _businessId.value = t; + return this; + } + UpdateOrderVariablesBuilder status(OrderStatus? t) { + _status.value = t; + return this; + } + UpdateOrderVariablesBuilder date(Timestamp? t) { + _date.value = t; + return this; + } + UpdateOrderVariablesBuilder startDate(Timestamp? t) { + _startDate.value = t; + return this; + } + UpdateOrderVariablesBuilder endDate(Timestamp? t) { + _endDate.value = t; + return this; + } + UpdateOrderVariablesBuilder total(double? t) { + _total.value = t; + return this; + } + UpdateOrderVariablesBuilder eventName(String? t) { + _eventName.value = t; + return this; + } + UpdateOrderVariablesBuilder assignedStaff(AnyValue? t) { + _assignedStaff.value = t; + return this; + } + UpdateOrderVariablesBuilder shifts(AnyValue? t) { + _shifts.value = t; + return this; + } + UpdateOrderVariablesBuilder requested(int? t) { + _requested.value = t; + return this; + } + UpdateOrderVariablesBuilder recurringDays(AnyValue? t) { + _recurringDays.value = t; + return this; + } + UpdateOrderVariablesBuilder permanentDays(AnyValue? t) { + _permanentDays.value = t; + return this; + } + UpdateOrderVariablesBuilder notes(String? t) { + _notes.value = t; + return this; + } + UpdateOrderVariablesBuilder detectedConflicts(AnyValue? t) { + _detectedConflicts.value = t; + return this; + } + UpdateOrderVariablesBuilder poReference(String? t) { + _poReference.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateOrder( + id: id, + teamHubId: teamHubId, +) +.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) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateOrder( + id: id, + teamHubId: teamHubId, +); +updateOrderData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; +String teamHubId = ...; + +final ref = ExampleConnector.instance.updateOrder( + id: id, + teamHubId: teamHubId, +).ref(); +ref.execute(); +``` + + +### deleteOrder +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteOrder( + id: id, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteOrder( + id: id, +); +deleteOrderData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String id = ...; + +final ref = ExampleConnector.instance.deleteOrder( + id: id, ).ref(); ref.execute(); ``` @@ -23953,63 +23980,43 @@ ref.execute(); ``` -### createTeamMember +### createTaskComment #### Required Arguments ```dart -String teamId = ...; -TeamMemberRole role = ...; -String userId = ...; -ExampleConnector.instance.createTeamMember( - teamId: teamId, - role: role, - userId: userId, +String taskId = ...; +String teamMemberId = ...; +String comment = ...; +ExampleConnector.instance.createTaskComment( + taskId: taskId, + teamMemberId: teamMemberId, + comment: comment, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createTeamMember, we created `createTeamMemberBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createTaskComment, we created `createTaskCommentBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class CreateTeamMemberVariablesBuilder { +class CreateTaskCommentVariablesBuilder { ... - CreateTeamMemberVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - CreateTeamMemberVariablesBuilder department(String? t) { - _department.value = t; - return this; - } - CreateTeamMemberVariablesBuilder teamHubId(String? t) { - _teamHubId.value = t; - return this; - } - CreateTeamMemberVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - CreateTeamMemberVariablesBuilder inviteStatus(TeamMemberInviteStatus? t) { - _inviteStatus.value = t; + CreateTaskCommentVariablesBuilder isSystem(bool? t) { + _isSystem.value = t; return this; } ... } -ExampleConnector.instance.createTeamMember( - teamId: teamId, - role: role, - userId: userId, +ExampleConnector.instance.createTaskComment( + taskId: taskId, + teamMemberId: teamMemberId, + comment: comment, ) -.title(title) -.department(department) -.teamHubId(teamHubId) -.isActive(isActive) -.inviteStatus(inviteStatus) +.isSystem(isSystem) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -24019,12 +24026,12 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createTeamMember( - teamId: teamId, - role: role, - userId: userId, +final result = await ExampleConnector.instance.createTaskComment( + taskId: taskId, + teamMemberId: teamMemberId, + comment: comment, ); -createTeamMemberData data = result.data; +createTaskCommentData data = result.data; final ref = result.ref; ``` @@ -24032,75 +24039,55 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -String teamId = ...; -TeamMemberRole role = ...; -String userId = ...; +String taskId = ...; +String teamMemberId = ...; +String comment = ...; -final ref = ExampleConnector.instance.createTeamMember( - teamId: teamId, - role: role, - userId: userId, +final ref = ExampleConnector.instance.createTaskComment( + taskId: taskId, + teamMemberId: teamMemberId, + comment: comment, ).ref(); ref.execute(); ``` -### updateTeamMember +### updateTaskComment #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateTeamMember( +ExampleConnector.instance.updateTaskComment( id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateTeamMember, we created `updateTeamMemberBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateTaskComment, we created `updateTaskCommentBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateTeamMemberVariablesBuilder { +class UpdateTaskCommentVariablesBuilder { ... - UpdateTeamMemberVariablesBuilder role(TeamMemberRole? t) { - _role.value = t; + UpdateTaskCommentVariablesBuilder comment(String? t) { + _comment.value = t; return this; } - UpdateTeamMemberVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - UpdateTeamMemberVariablesBuilder department(String? t) { - _department.value = t; - return this; - } - UpdateTeamMemberVariablesBuilder teamHubId(String? t) { - _teamHubId.value = t; - return this; - } - UpdateTeamMemberVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - UpdateTeamMemberVariablesBuilder inviteStatus(TeamMemberInviteStatus? t) { - _inviteStatus.value = t; + UpdateTaskCommentVariablesBuilder isSystem(bool? t) { + _isSystem.value = t; return this; } ... } -ExampleConnector.instance.updateTeamMember( +ExampleConnector.instance.updateTaskComment( id: id, ) -.role(role) -.title(title) -.department(department) -.teamHubId(teamHubId) -.isActive(isActive) -.inviteStatus(inviteStatus) +.comment(comment) +.isSystem(isSystem) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -24110,10 +24097,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateTeamMember( +final result = await ExampleConnector.instance.updateTaskComment( id: id, ); -updateTeamMemberData data = result.data; +updateTaskCommentData data = result.data; final ref = result.ref; ``` @@ -24123,149 +24110,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateTeamMember( +final ref = ExampleConnector.instance.updateTaskComment( id: id, ).ref(); ref.execute(); ``` -### updateTeamMemberInviteStatus +### deleteTaskComment #### Required Arguments ```dart String id = ...; -TeamMemberInviteStatus inviteStatus = ...; -ExampleConnector.instance.updateTeamMemberInviteStatus( - id: id, - inviteStatus: inviteStatus, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateTeamMemberInviteStatus( - id: id, - inviteStatus: inviteStatus, -); -updateTeamMemberInviteStatusData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; -TeamMemberInviteStatus inviteStatus = ...; - -final ref = ExampleConnector.instance.updateTeamMemberInviteStatus( - id: id, - inviteStatus: inviteStatus, -).ref(); -ref.execute(); -``` - - -### acceptInviteByCode -#### Required Arguments -```dart -String inviteCode = ...; -ExampleConnector.instance.acceptInviteByCode( - inviteCode: inviteCode, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.acceptInviteByCode( - inviteCode: inviteCode, -); -acceptInviteByCodeData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String inviteCode = ...; - -final ref = ExampleConnector.instance.acceptInviteByCode( - inviteCode: inviteCode, -).ref(); -ref.execute(); -``` - - -### cancelInviteByCode -#### Required Arguments -```dart -String inviteCode = ...; -ExampleConnector.instance.cancelInviteByCode( - inviteCode: inviteCode, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.cancelInviteByCode( - inviteCode: inviteCode, -); -cancelInviteByCodeData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String inviteCode = ...; - -final ref = ExampleConnector.instance.cancelInviteByCode( - inviteCode: inviteCode, -).ref(); -ref.execute(); -``` - - -### deleteTeamMember -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteTeamMember( +ExampleConnector.instance.deleteTaskComment( id: id, ).execute(); ``` @@ -24273,7 +24129,7 @@ ExampleConnector.instance.deleteTeamMember( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -24283,10 +24139,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteTeamMember( +final result = await ExampleConnector.instance.deleteTaskComment( id: id, ); -deleteTeamMemberData data = result.data; +deleteTaskCommentData data = result.data; final ref = result.ref; ``` @@ -24296,336 +24152,98 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteTeamMember( +final ref = ExampleConnector.instance.deleteTaskComment( id: id, ).ref(); ref.execute(); ``` -### createRoleCategory +### createTeam #### Required Arguments ```dart -String roleName = ...; -RoleCategoryType category = ...; -ExampleConnector.instance.createRoleCategory( - roleName: roleName, - category: category, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.createRoleCategory( - roleName: roleName, - category: category, -); -createRoleCategoryData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String roleName = ...; -RoleCategoryType category = ...; - -final ref = ExampleConnector.instance.createRoleCategory( - roleName: roleName, - category: category, -).ref(); -ref.execute(); -``` - - -### updateRoleCategory -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateRoleCategory( - id: id, +String teamName = ...; +String ownerId = ...; +String ownerName = ...; +String ownerRole = ...; +ExampleConnector.instance.createTeam( + teamName: teamName, + ownerId: ownerId, + ownerName: ownerName, + ownerRole: ownerRole, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateRoleCategory, we created `updateRoleCategoryBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For createTeam, we created `createTeamBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateRoleCategoryVariablesBuilder { +class CreateTeamVariablesBuilder { ... - UpdateRoleCategoryVariablesBuilder roleName(String? t) { - _roleName.value = t; - return this; - } - UpdateRoleCategoryVariablesBuilder category(RoleCategoryType? t) { - _category.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateRoleCategory( - id: id, -) -.roleName(roleName) -.category(category) -.execute(); -``` - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.updateRoleCategory( - id: id, -); -updateRoleCategoryData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.updateRoleCategory( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteRoleCategory -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteRoleCategory( - id: id, -).execute(); -``` - - - -#### Return Type -`execute()` returns a `OperationResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -final result = await ExampleConnector.instance.deleteRoleCategory( - id: id, -); -deleteRoleCategoryData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String id = ...; - -final ref = ExampleConnector.instance.deleteRoleCategory( - id: id, -).ref(); -ref.execute(); -``` - - -### createTaxForm -#### Required Arguments -```dart -TaxFormType formType = ...; -String firstName = ...; -String lastName = ...; -int socialSN = ...; -String address = ...; -TaxFormStatus status = ...; -String staffId = ...; -ExampleConnector.instance.createTaxForm( - formType: formType, - firstName: firstName, - lastName: lastName, - socialSN: socialSN, - address: address, - status: status, - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createTaxForm, we created `createTaxFormBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateTaxFormVariablesBuilder { - ... - CreateTaxFormVariablesBuilder mInitial(String? t) { - _mInitial.value = t; - return this; - } - CreateTaxFormVariablesBuilder oLastName(String? t) { - _oLastName.value = t; - return this; - } - CreateTaxFormVariablesBuilder dob(Timestamp? t) { - _dob.value = t; - return this; - } - CreateTaxFormVariablesBuilder email(String? t) { + CreateTeamVariablesBuilder email(String? t) { _email.value = t; return this; } - CreateTaxFormVariablesBuilder phone(String? t) { - _phone.value = t; + CreateTeamVariablesBuilder companyLogo(String? t) { + _companyLogo.value = t; return this; } - CreateTaxFormVariablesBuilder city(String? t) { - _city.value = t; + CreateTeamVariablesBuilder totalMembers(int? t) { + _totalMembers.value = t; return this; } - CreateTaxFormVariablesBuilder apt(String? t) { - _apt.value = t; + CreateTeamVariablesBuilder activeMembers(int? t) { + _activeMembers.value = t; return this; } - CreateTaxFormVariablesBuilder state(String? t) { - _state.value = t; + CreateTeamVariablesBuilder totalHubs(int? t) { + _totalHubs.value = t; return this; } - CreateTaxFormVariablesBuilder zipCode(String? t) { - _zipCode.value = t; + CreateTeamVariablesBuilder departments(AnyValue? t) { + _departments.value = t; return this; } - CreateTaxFormVariablesBuilder marital(MaritalStatus? t) { - _marital.value = t; + CreateTeamVariablesBuilder favoriteStaffCount(int? t) { + _favoriteStaffCount.value = t; return this; } - CreateTaxFormVariablesBuilder multipleJob(bool? t) { - _multipleJob.value = t; + CreateTeamVariablesBuilder blockedStaffCount(int? t) { + _blockedStaffCount.value = t; return this; } - CreateTaxFormVariablesBuilder childrens(int? t) { - _childrens.value = t; + CreateTeamVariablesBuilder favoriteStaff(AnyValue? t) { + _favoriteStaff.value = t; return this; } - CreateTaxFormVariablesBuilder otherDeps(int? t) { - _otherDeps.value = t; - return this; - } - CreateTaxFormVariablesBuilder totalCredits(double? t) { - _totalCredits.value = t; - return this; - } - CreateTaxFormVariablesBuilder otherInconme(double? t) { - _otherInconme.value = t; - return this; - } - CreateTaxFormVariablesBuilder deductions(double? t) { - _deductions.value = t; - return this; - } - CreateTaxFormVariablesBuilder extraWithholding(double? t) { - _extraWithholding.value = t; - return this; - } - CreateTaxFormVariablesBuilder citizen(CitizenshipStatus? t) { - _citizen.value = t; - return this; - } - CreateTaxFormVariablesBuilder uscis(String? t) { - _uscis.value = t; - return this; - } - CreateTaxFormVariablesBuilder passportNumber(String? t) { - _passportNumber.value = t; - return this; - } - CreateTaxFormVariablesBuilder countryIssue(String? t) { - _countryIssue.value = t; - return this; - } - CreateTaxFormVariablesBuilder prepartorOrTranslator(bool? t) { - _prepartorOrTranslator.value = t; - return this; - } - CreateTaxFormVariablesBuilder signature(String? t) { - _signature.value = t; - return this; - } - CreateTaxFormVariablesBuilder date(Timestamp? t) { - _date.value = t; - return this; - } - CreateTaxFormVariablesBuilder createdBy(String? t) { - _createdBy.value = t; + CreateTeamVariablesBuilder blockedStaff(AnyValue? t) { + _blockedStaff.value = t; return this; } ... } -ExampleConnector.instance.createTaxForm( - formType: formType, - firstName: firstName, - lastName: lastName, - socialSN: socialSN, - address: address, - status: status, - staffId: staffId, +ExampleConnector.instance.createTeam( + teamName: teamName, + ownerId: ownerId, + ownerName: ownerName, + ownerRole: ownerRole, ) -.mInitial(mInitial) -.oLastName(oLastName) -.dob(dob) .email(email) -.phone(phone) -.city(city) -.apt(apt) -.state(state) -.zipCode(zipCode) -.marital(marital) -.multipleJob(multipleJob) -.childrens(childrens) -.otherDeps(otherDeps) -.totalCredits(totalCredits) -.otherInconme(otherInconme) -.deductions(deductions) -.extraWithholding(extraWithholding) -.citizen(citizen) -.uscis(uscis) -.passportNumber(passportNumber) -.countryIssue(countryIssue) -.prepartorOrTranslator(prepartorOrTranslator) -.signature(signature) -.date(date) -.createdBy(createdBy) +.companyLogo(companyLogo) +.totalMembers(totalMembers) +.activeMembers(activeMembers) +.totalHubs(totalHubs) +.departments(departments) +.favoriteStaffCount(favoriteStaffCount) +.blockedStaffCount(blockedStaffCount) +.favoriteStaff(favoriteStaff) +.blockedStaff(blockedStaff) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -24635,16 +24253,13 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createTaxForm( - formType: formType, - firstName: firstName, - lastName: lastName, - socialSN: socialSN, - address: address, - status: status, - staffId: staffId, +final result = await ExampleConnector.instance.createTeam( + teamName: teamName, + ownerId: ownerId, + ownerName: ownerName, + ownerRole: ownerRole, ); -createTaxFormData data = result.data; +createTeamData data = result.data; final ref = result.ref; ``` @@ -24652,203 +24267,107 @@ final ref = result.ref; Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. An example of how to use the `Ref` object is shown below: ```dart -TaxFormType formType = ...; -String firstName = ...; -String lastName = ...; -int socialSN = ...; -String address = ...; -TaxFormStatus status = ...; -String staffId = ...; +String teamName = ...; +String ownerId = ...; +String ownerName = ...; +String ownerRole = ...; -final ref = ExampleConnector.instance.createTaxForm( - formType: formType, - firstName: firstName, - lastName: lastName, - socialSN: socialSN, - address: address, - status: status, - staffId: staffId, +final ref = ExampleConnector.instance.createTeam( + teamName: teamName, + ownerId: ownerId, + ownerName: ownerName, + ownerRole: ownerRole, ).ref(); ref.execute(); ``` -### updateTaxForm +### updateTeam #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateTaxForm( +ExampleConnector.instance.updateTeam( id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateTaxForm, we created `updateTaxFormBuilder`. For queries and mutations with optional parameters, we return a builder class. +We return a builder for each query. For updateTeam, we created `updateTeamBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: ```dart -class UpdateTaxFormVariablesBuilder { +class UpdateTeamVariablesBuilder { ... - UpdateTaxFormVariablesBuilder formType(TaxFormType? t) { - _formType.value = t; + UpdateTeamVariablesBuilder teamName(String? t) { + _teamName.value = t; return this; } - UpdateTaxFormVariablesBuilder firstName(String? t) { - _firstName.value = t; + UpdateTeamVariablesBuilder ownerName(String? t) { + _ownerName.value = t; return this; } - UpdateTaxFormVariablesBuilder lastName(String? t) { - _lastName.value = t; + UpdateTeamVariablesBuilder ownerRole(String? t) { + _ownerRole.value = t; return this; } - UpdateTaxFormVariablesBuilder mInitial(String? t) { - _mInitial.value = t; + UpdateTeamVariablesBuilder companyLogo(String? t) { + _companyLogo.value = t; return this; } - UpdateTaxFormVariablesBuilder oLastName(String? t) { - _oLastName.value = t; + UpdateTeamVariablesBuilder totalMembers(int? t) { + _totalMembers.value = t; return this; } - UpdateTaxFormVariablesBuilder dob(Timestamp? t) { - _dob.value = t; + UpdateTeamVariablesBuilder activeMembers(int? t) { + _activeMembers.value = t; return this; } - UpdateTaxFormVariablesBuilder socialSN(int? t) { - _socialSN.value = t; + UpdateTeamVariablesBuilder totalHubs(int? t) { + _totalHubs.value = t; return this; } - UpdateTaxFormVariablesBuilder email(String? t) { - _email.value = t; + UpdateTeamVariablesBuilder departments(AnyValue? t) { + _departments.value = t; return this; } - UpdateTaxFormVariablesBuilder phone(String? t) { - _phone.value = t; + UpdateTeamVariablesBuilder favoriteStaffCount(int? t) { + _favoriteStaffCount.value = t; return this; } - UpdateTaxFormVariablesBuilder address(String? t) { - _address.value = t; + UpdateTeamVariablesBuilder blockedStaffCount(int? t) { + _blockedStaffCount.value = t; return this; } - UpdateTaxFormVariablesBuilder city(String? t) { - _city.value = t; + UpdateTeamVariablesBuilder favoriteStaff(AnyValue? t) { + _favoriteStaff.value = t; return this; } - UpdateTaxFormVariablesBuilder apt(String? t) { - _apt.value = t; - return this; - } - UpdateTaxFormVariablesBuilder state(String? t) { - _state.value = t; - return this; - } - UpdateTaxFormVariablesBuilder zipCode(String? t) { - _zipCode.value = t; - return this; - } - UpdateTaxFormVariablesBuilder marital(MaritalStatus? t) { - _marital.value = t; - return this; - } - UpdateTaxFormVariablesBuilder multipleJob(bool? t) { - _multipleJob.value = t; - return this; - } - UpdateTaxFormVariablesBuilder childrens(int? t) { - _childrens.value = t; - return this; - } - UpdateTaxFormVariablesBuilder otherDeps(int? t) { - _otherDeps.value = t; - return this; - } - UpdateTaxFormVariablesBuilder totalCredits(double? t) { - _totalCredits.value = t; - return this; - } - UpdateTaxFormVariablesBuilder otherInconme(double? t) { - _otherInconme.value = t; - return this; - } - UpdateTaxFormVariablesBuilder deductions(double? t) { - _deductions.value = t; - return this; - } - UpdateTaxFormVariablesBuilder extraWithholding(double? t) { - _extraWithholding.value = t; - return this; - } - UpdateTaxFormVariablesBuilder citizen(CitizenshipStatus? t) { - _citizen.value = t; - return this; - } - UpdateTaxFormVariablesBuilder uscis(String? t) { - _uscis.value = t; - return this; - } - UpdateTaxFormVariablesBuilder passportNumber(String? t) { - _passportNumber.value = t; - return this; - } - UpdateTaxFormVariablesBuilder countryIssue(String? t) { - _countryIssue.value = t; - return this; - } - UpdateTaxFormVariablesBuilder prepartorOrTranslator(bool? t) { - _prepartorOrTranslator.value = t; - return this; - } - UpdateTaxFormVariablesBuilder signature(String? t) { - _signature.value = t; - return this; - } - UpdateTaxFormVariablesBuilder date(Timestamp? t) { - _date.value = t; - return this; - } - UpdateTaxFormVariablesBuilder status(TaxFormStatus? t) { - _status.value = t; + UpdateTeamVariablesBuilder blockedStaff(AnyValue? t) { + _blockedStaff.value = t; return this; } ... } -ExampleConnector.instance.updateTaxForm( +ExampleConnector.instance.updateTeam( id: id, ) -.formType(formType) -.firstName(firstName) -.lastName(lastName) -.mInitial(mInitial) -.oLastName(oLastName) -.dob(dob) -.socialSN(socialSN) -.email(email) -.phone(phone) -.address(address) -.city(city) -.apt(apt) -.state(state) -.zipCode(zipCode) -.marital(marital) -.multipleJob(multipleJob) -.childrens(childrens) -.otherDeps(otherDeps) -.totalCredits(totalCredits) -.otherInconme(otherInconme) -.deductions(deductions) -.extraWithholding(extraWithholding) -.citizen(citizen) -.uscis(uscis) -.passportNumber(passportNumber) -.countryIssue(countryIssue) -.prepartorOrTranslator(prepartorOrTranslator) -.signature(signature) -.date(date) -.status(status) +.teamName(teamName) +.ownerName(ownerName) +.ownerRole(ownerRole) +.companyLogo(companyLogo) +.totalMembers(totalMembers) +.activeMembers(activeMembers) +.totalHubs(totalHubs) +.departments(departments) +.favoriteStaffCount(favoriteStaffCount) +.blockedStaffCount(blockedStaffCount) +.favoriteStaff(favoriteStaff) +.blockedStaff(blockedStaff) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -24858,10 +24377,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateTaxForm( +final result = await ExampleConnector.instance.updateTeam( id: id, ); -updateTaxFormData data = result.data; +updateTeamData data = result.data; final ref = result.ref; ``` @@ -24871,18 +24390,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateTaxForm( +final ref = ExampleConnector.instance.updateTeam( id: id, ).ref(); ref.execute(); ``` -### deleteTaxForm +### deleteTeam #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteTaxForm( +ExampleConnector.instance.deleteTeam( id: id, ).execute(); ``` @@ -24890,7 +24409,7 @@ ExampleConnector.instance.deleteTaxForm( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -24900,10 +24419,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteTaxForm( +final result = await ExampleConnector.instance.deleteTeam( id: id, ); -deleteTaxFormData data = result.data; +deleteTeamData data = result.data; final ref = result.ref; ``` @@ -24913,9 +24432,490 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteTaxForm( +final ref = ExampleConnector.instance.deleteTeam( id: id, ).ref(); ref.execute(); ``` + +### createBenefitsData +#### Required Arguments +```dart +String vendorBenefitPlanId = ...; +String staffId = ...; +int current = ...; +ExampleConnector.instance.createBenefitsData( + vendorBenefitPlanId: vendorBenefitPlanId, + staffId: staffId, + current: current, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createBenefitsData( + vendorBenefitPlanId: vendorBenefitPlanId, + staffId: staffId, + current: current, +); +createBenefitsDataData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String vendorBenefitPlanId = ...; +String staffId = ...; +int current = ...; + +final ref = ExampleConnector.instance.createBenefitsData( + vendorBenefitPlanId: vendorBenefitPlanId, + staffId: staffId, + current: current, +).ref(); +ref.execute(); +``` + + +### updateBenefitsData +#### Required Arguments +```dart +String staffId = ...; +String vendorBenefitPlanId = ...; +ExampleConnector.instance.updateBenefitsData( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateBenefitsData, we created `updateBenefitsDataBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateBenefitsDataVariablesBuilder { + ... + UpdateBenefitsDataVariablesBuilder current(int? t) { + _current.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateBenefitsData( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +) +.current(current) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateBenefitsData( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +); +updateBenefitsDataData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +String vendorBenefitPlanId = ...; + +final ref = ExampleConnector.instance.updateBenefitsData( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +).ref(); +ref.execute(); +``` + + +### deleteBenefitsData +#### Required Arguments +```dart +String staffId = ...; +String vendorBenefitPlanId = ...; +ExampleConnector.instance.deleteBenefitsData( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteBenefitsData( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +); +deleteBenefitsDataData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; +String vendorBenefitPlanId = ...; + +final ref = ExampleConnector.instance.deleteBenefitsData( + staffId: staffId, + vendorBenefitPlanId: vendorBenefitPlanId, +).ref(); +ref.execute(); +``` + + +### createMemberTask +#### Required Arguments +```dart +String teamMemberId = ...; +String taskId = ...; +ExampleConnector.instance.createMemberTask( + teamMemberId: teamMemberId, + taskId: taskId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createMemberTask( + teamMemberId: teamMemberId, + taskId: taskId, +); +createMemberTaskData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String teamMemberId = ...; +String taskId = ...; + +final ref = ExampleConnector.instance.createMemberTask( + teamMemberId: teamMemberId, + taskId: taskId, +).ref(); +ref.execute(); +``` + + +### deleteMemberTask +#### Required Arguments +```dart +String teamMemberId = ...; +String taskId = ...; +ExampleConnector.instance.deleteMemberTask( + teamMemberId: teamMemberId, + taskId: taskId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteMemberTask( + teamMemberId: teamMemberId, + taskId: taskId, +); +deleteMemberTaskData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String teamMemberId = ...; +String taskId = ...; + +final ref = ExampleConnector.instance.deleteMemberTask( + teamMemberId: teamMemberId, + taskId: taskId, +).ref(); +ref.execute(); +``` + + +### createStaffAvailabilityStats +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.createStaffAvailabilityStats( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createStaffAvailabilityStats, we created `createStaffAvailabilityStatsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateStaffAvailabilityStatsVariablesBuilder { + ... + CreateStaffAvailabilityStatsVariablesBuilder needWorkIndex(int? t) { + _needWorkIndex.value = t; + return this; + } + CreateStaffAvailabilityStatsVariablesBuilder utilizationPercentage(int? t) { + _utilizationPercentage.value = t; + return this; + } + CreateStaffAvailabilityStatsVariablesBuilder predictedAvailabilityScore(int? t) { + _predictedAvailabilityScore.value = t; + return this; + } + CreateStaffAvailabilityStatsVariablesBuilder scheduledHoursThisPeriod(int? t) { + _scheduledHoursThisPeriod.value = t; + return this; + } + CreateStaffAvailabilityStatsVariablesBuilder desiredHoursThisPeriod(int? t) { + _desiredHoursThisPeriod.value = t; + return this; + } + CreateStaffAvailabilityStatsVariablesBuilder lastShiftDate(Timestamp? t) { + _lastShiftDate.value = t; + return this; + } + CreateStaffAvailabilityStatsVariablesBuilder acceptanceRate(int? t) { + _acceptanceRate.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createStaffAvailabilityStats( + staffId: staffId, +) +.needWorkIndex(needWorkIndex) +.utilizationPercentage(utilizationPercentage) +.predictedAvailabilityScore(predictedAvailabilityScore) +.scheduledHoursThisPeriod(scheduledHoursThisPeriod) +.desiredHoursThisPeriod(desiredHoursThisPeriod) +.lastShiftDate(lastShiftDate) +.acceptanceRate(acceptanceRate) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.createStaffAvailabilityStats( + staffId: staffId, +); +createStaffAvailabilityStatsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.createStaffAvailabilityStats( + staffId: staffId, +).ref(); +ref.execute(); +``` + + +### updateStaffAvailabilityStats +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.updateStaffAvailabilityStats( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateStaffAvailabilityStats, we created `updateStaffAvailabilityStatsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateStaffAvailabilityStatsVariablesBuilder { + ... + UpdateStaffAvailabilityStatsVariablesBuilder needWorkIndex(int? t) { + _needWorkIndex.value = t; + return this; + } + UpdateStaffAvailabilityStatsVariablesBuilder utilizationPercentage(int? t) { + _utilizationPercentage.value = t; + return this; + } + UpdateStaffAvailabilityStatsVariablesBuilder predictedAvailabilityScore(int? t) { + _predictedAvailabilityScore.value = t; + return this; + } + UpdateStaffAvailabilityStatsVariablesBuilder scheduledHoursThisPeriod(int? t) { + _scheduledHoursThisPeriod.value = t; + return this; + } + UpdateStaffAvailabilityStatsVariablesBuilder desiredHoursThisPeriod(int? t) { + _desiredHoursThisPeriod.value = t; + return this; + } + UpdateStaffAvailabilityStatsVariablesBuilder lastShiftDate(Timestamp? t) { + _lastShiftDate.value = t; + return this; + } + UpdateStaffAvailabilityStatsVariablesBuilder acceptanceRate(int? t) { + _acceptanceRate.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateStaffAvailabilityStats( + staffId: staffId, +) +.needWorkIndex(needWorkIndex) +.utilizationPercentage(utilizationPercentage) +.predictedAvailabilityScore(predictedAvailabilityScore) +.scheduledHoursThisPeriod(scheduledHoursThisPeriod) +.desiredHoursThisPeriod(desiredHoursThisPeriod) +.lastShiftDate(lastShiftDate) +.acceptanceRate(acceptanceRate) +.execute(); +``` + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.updateStaffAvailabilityStats( + staffId: staffId, +); +updateStaffAvailabilityStatsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.updateStaffAvailabilityStats( + staffId: staffId, +).ref(); +ref.execute(); +``` + + +### deleteStaffAvailabilityStats +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.deleteStaffAvailabilityStats( + staffId: staffId, +).execute(); +``` + + + +#### Return Type +`execute()` returns a `OperationResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +final result = await ExampleConnector.instance.deleteStaffAvailabilityStats( + staffId: staffId, +); +deleteStaffAvailabilityStatsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String staffId = ...; + +final ref = ExampleConnector.instance.deleteStaffAvailabilityStats( + staffId: staffId, +).ref(); +ref.execute(); +``` + diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/generated.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/generated.dart index 014bce00..5972d515 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/generated.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/generated.dart @@ -4,346 +4,6 @@ import 'package:flutter/foundation.dart'; import 'dart:convert'; import 'package:flutter/foundation.dart'; -part 'create_certificate.dart'; - -part 'update_certificate.dart'; - -part 'delete_certificate.dart'; - -part 'list_orders.dart'; - -part 'get_order_by_id.dart'; - -part 'get_orders_by_business_id.dart'; - -part 'get_orders_by_vendor_id.dart'; - -part 'get_orders_by_status.dart'; - -part 'get_orders_by_date_range.dart'; - -part 'get_rapid_orders.dart'; - -part 'create_recent_payment.dart'; - -part 'update_recent_payment.dart'; - -part 'delete_recent_payment.dart'; - -part 'create_role.dart'; - -part 'update_role.dart'; - -part 'delete_role.dart'; - -part 'list_staff_availabilities.dart'; - -part 'list_staff_availabilities_by_staff_id.dart'; - -part 'get_staff_availability_by_key.dart'; - -part 'list_staff_availabilities_by_day.dart'; - -part 'list_staff_availability_stats.dart'; - -part 'get_staff_availability_stats_by_staff_id.dart'; - -part 'filter_staff_availability_stats.dart'; - -part 'list_tax_forms.dart'; - -part 'get_tax_form_by_id.dart'; - -part 'get_tax_forms_by_staff_id.dart'; - -part 'list_tax_forms_where.dart'; - -part 'get_workforce_by_id.dart'; - -part 'get_workforce_by_vendor_and_staff.dart'; - -part 'list_workforce_by_vendor_id.dart'; - -part 'list_workforce_by_staff_id.dart'; - -part 'get_workforce_by_vendor_and_number.dart'; - -part 'create_hub.dart'; - -part 'update_hub.dart'; - -part 'delete_hub.dart'; - -part 'create_level.dart'; - -part 'update_level.dart'; - -part 'delete_level.dart'; - -part 'create_staff_document.dart'; - -part 'update_staff_document.dart'; - -part 'delete_staff_document.dart'; - -part 'create_vendor_rate.dart'; - -part 'update_vendor_rate.dart'; - -part 'delete_vendor_rate.dart'; - -part 'create_activity_log.dart'; - -part 'update_activity_log.dart'; - -part 'mark_activity_log_as_read.dart'; - -part 'mark_activity_logs_as_read.dart'; - -part 'delete_activity_log.dart'; - -part 'create_assignment.dart'; - -part 'update_assignment.dart'; - -part 'delete_assignment.dart'; - -part 'create_attire_option.dart'; - -part 'update_attire_option.dart'; - -part 'delete_attire_option.dart'; - -part 'create_category.dart'; - -part 'update_category.dart'; - -part 'delete_category.dart'; - -part 'list_staff.dart'; - -part 'get_staff_by_id.dart'; - -part 'get_staff_by_user_id.dart'; - -part 'filter_staff.dart'; - -part 'list_task_comments.dart'; - -part 'get_task_comment_by_id.dart'; - -part 'get_task_comments_by_task_id.dart'; - -part 'get_vendor_by_id.dart'; - -part 'get_vendor_by_user_id.dart'; - -part 'list_vendors.dart'; - -part 'list_assignments.dart'; - -part 'get_assignment_by_id.dart'; - -part 'list_assignments_by_workforce_id.dart'; - -part 'list_assignments_by_workforce_ids.dart'; - -part 'list_assignments_by_shift_role.dart'; - -part 'filter_assignments.dart'; - -part 'list_client_feedbacks.dart'; - -part 'get_client_feedback_by_id.dart'; - -part 'list_client_feedbacks_by_business_id.dart'; - -part 'list_client_feedbacks_by_vendor_id.dart'; - -part 'list_client_feedbacks_by_business_and_vendor.dart'; - -part 'filter_client_feedbacks.dart'; - -part 'list_client_feedback_ratings_by_vendor_id.dart'; - -part 'list_invoices.dart'; - -part 'get_invoice_by_id.dart'; - -part 'list_invoices_by_vendor_id.dart'; - -part 'list_invoices_by_business_id.dart'; - -part 'list_invoices_by_order_id.dart'; - -part 'list_invoices_by_status.dart'; - -part 'filter_invoices.dart'; - -part 'list_overdue_invoices.dart'; - -part 'list_recent_payments.dart'; - -part 'get_recent_payment_by_id.dart'; - -part 'list_recent_payments_by_staff_id.dart'; - -part 'list_recent_payments_by_application_id.dart'; - -part 'list_recent_payments_by_invoice_id.dart'; - -part 'list_recent_payments_by_status.dart'; - -part 'list_recent_payments_by_invoice_ids.dart'; - -part 'list_recent_payments_by_business_id.dart'; - -part 'list_role_categories.dart'; - -part 'get_role_category_by_id.dart'; - -part 'get_role_categories_by_category.dart'; - -part 'list_shifts.dart'; - -part 'get_shift_by_id.dart'; - -part 'filter_shifts.dart'; - -part 'get_shifts_by_business_id.dart'; - -part 'get_shifts_by_vendor_id.dart'; - -part 'create_staff_course.dart'; - -part 'update_staff_course.dart'; - -part 'delete_staff_course.dart'; - -part 'get_staff_course_by_id.dart'; - -part 'list_staff_courses_by_staff_id.dart'; - -part 'list_staff_courses_by_course_id.dart'; - -part 'get_staff_course_by_staff_and_course.dart'; - -part 'create_document.dart'; - -part 'update_document.dart'; - -part 'delete_document.dart'; - -part 'create_invoice.dart'; - -part 'update_invoice.dart'; - -part 'delete_invoice.dart'; - -part 'create_staff_availability_stats.dart'; - -part 'update_staff_availability_stats.dart'; - -part 'delete_staff_availability_stats.dart'; - -part 'create_team.dart'; - -part 'update_team.dart'; - -part 'delete_team.dart'; - -part 'list_teams.dart'; - -part 'get_team_by_id.dart'; - -part 'get_teams_by_owner_id.dart'; - -part 'create_user.dart'; - -part 'update_user.dart'; - -part 'delete_user.dart'; - -part 'create_vendor.dart'; - -part 'update_vendor.dart'; - -part 'delete_vendor.dart'; - -part 'create_benefits_data.dart'; - -part 'update_benefits_data.dart'; - -part 'delete_benefits_data.dart'; - -part 'list_documents.dart'; - -part 'get_document_by_id.dart'; - -part 'filter_documents.dart'; - -part 'create_shift_role.dart'; - -part 'update_shift_role.dart'; - -part 'delete_shift_role.dart'; - -part 'list_applications.dart'; - -part 'get_application_by_id.dart'; - -part 'get_applications_by_shift_id.dart'; - -part 'get_applications_by_shift_id_and_status.dart'; - -part 'get_applications_by_staff_id.dart'; - -part 'list_accepted_applications_by_shift_role_key.dart'; - -part 'list_accepted_applications_by_business_for_day.dart'; - -part 'list_staffs_applications_by_business_for_day.dart'; - -part 'list_categories.dart'; - -part 'get_category_by_id.dart'; - -part 'filter_categories.dart'; - -part 'list_roles.dart'; - -part 'get_role_by_id.dart'; - -part 'list_roles_by_vendor_id.dart'; - -part 'list_roles_byrole_category_id.dart'; - -part 'create_shift.dart'; - -part 'update_shift.dart'; - -part 'delete_shift.dart'; - -part 'list_tasks.dart'; - -part 'get_task_by_id.dart'; - -part 'get_tasks_by_owner_id.dart'; - -part 'filter_tasks.dart'; - -part 'create_team_hud_department.dart'; - -part 'update_team_hud_department.dart'; - -part 'delete_team_hud_department.dart'; - -part 'create_vendor_benefit_plan.dart'; - -part 'update_vendor_benefit_plan.dart'; - -part 'delete_vendor_benefit_plan.dart'; - part 'list_accounts.dart'; part 'get_account_by_id.dart'; @@ -352,71 +12,17 @@ part 'get_accounts_by_owner_id.dart'; part 'filter_accounts.dart'; -part 'create_emergency_contact.dart'; +part 'create_application.dart'; -part 'update_emergency_contact.dart'; +part 'update_application_status.dart'; -part 'delete_emergency_contact.dart'; +part 'delete_application.dart'; -part 'list_invoice_templates.dart'; +part 'create_assignment.dart'; -part 'get_invoice_template_by_id.dart'; +part 'update_assignment.dart'; -part 'list_invoice_templates_by_owner_id.dart'; - -part 'list_invoice_templates_by_vendor_id.dart'; - -part 'list_invoice_templates_by_business_id.dart'; - -part 'list_invoice_templates_by_order_id.dart'; - -part 'search_invoice_templates_by_owner_and_name.dart'; - -part 'create_member_task.dart'; - -part 'delete_member_task.dart'; - -part 'list_benefits_data.dart'; - -part 'get_benefits_data_by_key.dart'; - -part 'list_benefits_data_by_staff_id.dart'; - -part 'list_benefits_data_by_vendor_benefit_plan_id.dart'; - -part 'list_benefits_data_by_vendor_benefit_plan_ids.dart'; - -part 'create_course.dart'; - -part 'update_course.dart'; - -part 'delete_course.dart'; - -part 'list_courses.dart'; - -part 'get_course_by_id.dart'; - -part 'filter_courses.dart'; - -part 'create_custom_rate_card.dart'; - -part 'update_custom_rate_card.dart'; - -part 'delete_custom_rate_card.dart'; - -part 'list_hubs.dart'; - -part 'get_hub_by_id.dart'; - -part 'get_hubs_by_owner_id.dart'; - -part 'filter_hubs.dart'; - -part 'create_message.dart'; - -part 'update_message.dart'; - -part 'delete_message.dart'; +part 'delete_assignment.dart'; part 'list_shifts_for_coverage.dart'; @@ -456,53 +62,97 @@ part 'list_applications_for_performance.dart'; part 'list_staff_for_performance.dart'; -part 'list_vendor_rates.dart'; +part 'list_users.dart'; -part 'get_vendor_rate_by_id.dart'; +part 'get_user_by_id.dart'; -part 'list_businesses.dart'; +part 'filter_users.dart'; -part 'get_businesses_by_user_id.dart'; +part 'list_attire_options.dart'; -part 'get_business_by_id.dart'; +part 'get_attire_option_by_id.dart'; -part 'list_certificates.dart'; +part 'filter_attire_options.dart'; -part 'get_certificate_by_id.dart'; +part 'list_roles.dart'; -part 'list_certificates_by_staff_id.dart'; +part 'get_role_by_id.dart'; -part 'create_conversation.dart'; +part 'list_roles_by_vendor_id.dart'; -part 'update_conversation.dart'; +part 'list_roles_byrole_category_id.dart'; -part 'update_conversation_last_message.dart'; +part 'create_shift.dart'; -part 'delete_conversation.dart'; +part 'update_shift.dart'; -part 'create_faq_data.dart'; +part 'delete_shift.dart'; -part 'update_faq_data.dart'; +part 'create_staff_availability.dart'; -part 'delete_faq_data.dart'; +part 'update_staff_availability.dart'; -part 'create_invoice_template.dart'; +part 'delete_staff_availability.dart'; -part 'update_invoice_template.dart'; +part 'list_staff_availabilities.dart'; -part 'delete_invoice_template.dart'; +part 'list_staff_availabilities_by_staff_id.dart'; -part 'create_task.dart'; +part 'get_staff_availability_by_key.dart'; -part 'update_task.dart'; +part 'list_staff_availabilities_by_day.dart'; -part 'delete_task.dart'; +part 'create_staff_course.dart'; -part 'list_team_hud_departments.dart'; +part 'update_staff_course.dart'; -part 'get_team_hud_department_by_id.dart'; +part 'delete_staff_course.dart'; -part 'list_team_hud_departments_by_team_hub_id.dart'; +part 'get_staff_document_by_key.dart'; + +part 'list_staff_documents_by_staff_id.dart'; + +part 'list_staff_documents_by_document_type.dart'; + +part 'list_staff_documents_by_status.dart'; + +part 'get_workforce_by_id.dart'; + +part 'get_workforce_by_vendor_and_staff.dart'; + +part 'list_workforce_by_vendor_id.dart'; + +part 'list_workforce_by_staff_id.dart'; + +part 'get_workforce_by_vendor_and_number.dart'; + +part 'create_attire_option.dart'; + +part 'update_attire_option.dart'; + +part 'delete_attire_option.dart'; + +part 'list_custom_rate_cards.dart'; + +part 'get_custom_rate_card_by_id.dart'; + +part 'create_document.dart'; + +part 'update_document.dart'; + +part 'delete_document.dart'; + +part 'create_invoice.dart'; + +part 'update_invoice.dart'; + +part 'delete_invoice.dart'; + +part 'list_messages.dart'; + +part 'get_message_by_id.dart'; + +part 'get_messages_by_conversation_id.dart'; part 'create_user_conversation.dart'; @@ -514,18 +164,476 @@ part 'increment_unread_for_user.dart'; part 'delete_user_conversation.dart'; +part 'create_vendor_benefit_plan.dart'; + +part 'update_vendor_benefit_plan.dart'; + +part 'delete_vendor_benefit_plan.dart'; + +part 'list_tasks.dart'; + +part 'get_task_by_id.dart'; + +part 'get_tasks_by_owner_id.dart'; + +part 'filter_tasks.dart'; + +part 'list_courses.dart'; + +part 'get_course_by_id.dart'; + +part 'filter_courses.dart'; + +part 'list_businesses.dart'; + +part 'get_businesses_by_user_id.dart'; + +part 'get_business_by_id.dart'; + part 'create_client_feedback.dart'; part 'update_client_feedback.dart'; part 'delete_client_feedback.dart'; +part 'list_emergency_contacts.dart'; + +part 'get_emergency_contact_by_id.dart'; + +part 'get_emergency_contacts_by_staff_id.dart'; + +part 'create_role.dart'; + +part 'update_role.dart'; + +part 'delete_role.dart'; + +part 'list_role_categories.dart'; + +part 'get_role_category_by_id.dart'; + +part 'get_role_categories_by_category.dart'; + +part 'create_task.dart'; + +part 'update_task.dart'; + +part 'delete_task.dart'; + +part 'list_teams.dart'; + +part 'get_team_by_id.dart'; + +part 'get_teams_by_owner_id.dart'; + +part 'create_category.dart'; + +part 'update_category.dart'; + +part 'delete_category.dart'; + +part 'list_conversations.dart'; + +part 'get_conversation_by_id.dart'; + +part 'list_conversations_by_type.dart'; + +part 'list_conversations_by_status.dart'; + +part 'filter_conversations.dart'; + +part 'create_course.dart'; + +part 'update_course.dart'; + +part 'delete_course.dart'; + +part 'create_message.dart'; + +part 'update_message.dart'; + +part 'delete_message.dart'; + +part 'create_team_hub.dart'; + +part 'update_team_hub.dart'; + +part 'delete_team_hub.dart'; + +part 'create_team_member.dart'; + +part 'update_team_member.dart'; + +part 'update_team_member_invite_status.dart'; + +part 'accept_invite_by_code.dart'; + +part 'cancel_invite_by_code.dart'; + +part 'delete_team_member.dart'; + +part 'list_invoices.dart'; + +part 'get_invoice_by_id.dart'; + +part 'list_invoices_by_vendor_id.dart'; + +part 'list_invoices_by_business_id.dart'; + +part 'list_invoices_by_order_id.dart'; + +part 'list_invoices_by_status.dart'; + +part 'filter_invoices.dart'; + +part 'list_overdue_invoices.dart'; + +part 'create_vendor.dart'; + +part 'update_vendor.dart'; + +part 'delete_vendor.dart'; + +part 'get_vendor_by_id.dart'; + +part 'get_vendor_by_user_id.dart'; + +part 'list_vendors.dart'; + +part 'list_vendor_benefit_plans.dart'; + +part 'get_vendor_benefit_plan_by_id.dart'; + +part 'list_vendor_benefit_plans_by_vendor_id.dart'; + +part 'list_active_vendor_benefit_plans_by_vendor_id.dart'; + +part 'filter_vendor_benefit_plans.dart'; + +part 'create_hub.dart'; + +part 'update_hub.dart'; + +part 'delete_hub.dart'; + +part 'create_tax_form.dart'; + +part 'update_tax_form.dart'; + +part 'delete_tax_form.dart'; + +part 'list_team_members.dart'; + +part 'get_team_member_by_id.dart'; + +part 'get_team_members_by_team_id.dart'; + +part 'list_user_conversations.dart'; + +part 'get_user_conversation_by_key.dart'; + +part 'list_user_conversations_by_user_id.dart'; + +part 'list_unread_user_conversations_by_user_id.dart'; + +part 'list_user_conversations_by_conversation_id.dart'; + +part 'filter_user_conversations.dart'; + +part 'list_documents.dart'; + +part 'get_document_by_id.dart'; + +part 'filter_documents.dart'; + +part 'list_client_feedbacks.dart'; + +part 'get_client_feedback_by_id.dart'; + +part 'list_client_feedbacks_by_business_id.dart'; + +part 'list_client_feedbacks_by_vendor_id.dart'; + +part 'list_client_feedbacks_by_business_and_vendor.dart'; + +part 'filter_client_feedbacks.dart'; + +part 'list_client_feedback_ratings_by_vendor_id.dart'; + +part 'get_my_tasks.dart'; + +part 'get_member_task_by_id_key.dart'; + +part 'get_member_tasks_by_task_id.dart'; + +part 'list_orders.dart'; + +part 'get_order_by_id.dart'; + +part 'get_orders_by_business_id.dart'; + +part 'get_orders_by_vendor_id.dart'; + +part 'get_orders_by_status.dart'; + +part 'get_orders_by_date_range.dart'; + +part 'get_rapid_orders.dart'; + +part 'list_recent_payments.dart'; + +part 'get_recent_payment_by_id.dart'; + +part 'list_recent_payments_by_staff_id.dart'; + +part 'list_recent_payments_by_application_id.dart'; + +part 'list_recent_payments_by_invoice_id.dart'; + +part 'list_recent_payments_by_status.dart'; + +part 'list_recent_payments_by_invoice_ids.dart'; + +part 'list_recent_payments_by_business_id.dart'; + +part 'list_staff_roles.dart'; + +part 'get_staff_role_by_key.dart'; + +part 'list_staff_roles_by_staff_id.dart'; + +part 'list_staff_roles_by_role_id.dart'; + +part 'filter_staff_roles.dart'; + +part 'list_task_comments.dart'; + +part 'get_task_comment_by_id.dart'; + +part 'get_task_comments_by_task_id.dart'; + +part 'list_team_hubs.dart'; + +part 'get_team_hub_by_id.dart'; + +part 'get_team_hubs_by_team_id.dart'; + +part 'list_team_hubs_by_owner_id.dart'; + +part 'create_activity_log.dart'; + +part 'update_activity_log.dart'; + +part 'mark_activity_log_as_read.dart'; + +part 'mark_activity_logs_as_read.dart'; + +part 'delete_activity_log.dart'; + +part 'list_benefits_data.dart'; + +part 'get_benefits_data_by_key.dart'; + +part 'list_benefits_data_by_staff_id.dart'; + +part 'list_benefits_data_by_vendor_benefit_plan_id.dart'; + +part 'list_benefits_data_by_vendor_benefit_plan_ids.dart'; + +part 'create_business.dart'; + +part 'update_business.dart'; + +part 'delete_business.dart'; + +part 'create_conversation.dart'; + +part 'update_conversation.dart'; + +part 'update_conversation_last_message.dart'; + +part 'delete_conversation.dart'; + +part 'list_shifts.dart'; + +part 'get_shift_by_id.dart'; + +part 'filter_shifts.dart'; + +part 'get_shifts_by_business_id.dart'; + +part 'get_shifts_by_vendor_id.dart'; + +part 'create_team_hud_department.dart'; + +part 'update_team_hud_department.dart'; + +part 'delete_team_hud_department.dart'; + +part 'list_team_hud_departments.dart'; + +part 'get_team_hud_department_by_id.dart'; + +part 'list_team_hud_departments_by_team_hub_id.dart'; + +part 'create_invoice_template.dart'; + +part 'update_invoice_template.dart'; + +part 'delete_invoice_template.dart'; + +part 'create_staff_document.dart'; + +part 'update_staff_document.dart'; + +part 'delete_staff_document.dart'; + +part 'list_vendor_rates.dart'; + +part 'get_vendor_rate_by_id.dart'; + +part 'create_certificate.dart'; + +part 'update_certificate.dart'; + +part 'delete_certificate.dart'; + +part 'create_custom_rate_card.dart'; + +part 'update_custom_rate_card.dart'; + +part 'delete_custom_rate_card.dart'; + part 'list_faq_datas.dart'; part 'get_faq_data_by_id.dart'; part 'filter_faq_datas.dart'; +part 'list_levels.dart'; + +part 'get_level_by_id.dart'; + +part 'filter_levels.dart'; + +part 'create_recent_payment.dart'; + +part 'update_recent_payment.dart'; + +part 'delete_recent_payment.dart'; + +part 'create_shift_role.dart'; + +part 'update_shift_role.dart'; + +part 'delete_shift_role.dart'; + +part 'create_account.dart'; + +part 'update_account.dart'; + +part 'delete_account.dart'; + +part 'list_certificates.dart'; + +part 'get_certificate_by_id.dart'; + +part 'list_certificates_by_staff_id.dart'; + +part 'create_level.dart'; + +part 'update_level.dart'; + +part 'delete_level.dart'; + +part 'list_tax_forms.dart'; + +part 'get_tax_form_by_id.dart'; + +part 'get_tax_forms_by_staff_id.dart'; + +part 'list_tax_forms_where.dart'; + +part 'create_user.dart'; + +part 'update_user.dart'; + +part 'delete_user.dart'; + +part 'create_emergency_contact.dart'; + +part 'update_emergency_contact.dart'; + +part 'delete_emergency_contact.dart'; + +part 'create_role_category.dart'; + +part 'update_role_category.dart'; + +part 'delete_role_category.dart'; + +part 'create_staff.dart'; + +part 'update_staff.dart'; + +part 'delete_staff.dart'; + +part 'list_staff.dart'; + +part 'get_staff_by_id.dart'; + +part 'get_staff_by_user_id.dart'; + +part 'filter_staff.dart'; + +part 'get_staff_course_by_id.dart'; + +part 'list_staff_courses_by_staff_id.dart'; + +part 'list_staff_courses_by_course_id.dart'; + +part 'get_staff_course_by_staff_and_course.dart'; + +part 'create_vendor_rate.dart'; + +part 'update_vendor_rate.dart'; + +part 'delete_vendor_rate.dart'; + +part 'create_workforce.dart'; + +part 'update_workforce.dart'; + +part 'deactivate_workforce.dart'; + +part 'list_activity_logs.dart'; + +part 'get_activity_log_by_id.dart'; + +part 'list_activity_logs_by_user_id.dart'; + +part 'list_unread_activity_logs_by_user_id.dart'; + +part 'filter_activity_logs.dart'; + +part 'list_categories.dart'; + +part 'get_category_by_id.dart'; + +part 'filter_categories.dart'; + +part 'create_faq_data.dart'; + +part 'update_faq_data.dart'; + +part 'delete_faq_data.dart'; + +part 'create_order.dart'; + +part 'update_order.dart'; + +part 'delete_order.dart'; + part 'get_shift_role_by_id.dart'; part 'list_shift_roles_by_shift_id.dart'; @@ -546,201 +654,93 @@ part 'list_shift_roles_by_business_and_dates_summary.dart'; part 'get_completed_shifts_by_business_id.dart'; +part 'create_staff_role.dart'; + +part 'delete_staff_role.dart'; + part 'create_task_comment.dart'; part 'update_task_comment.dart'; part 'delete_task_comment.dart'; -part 'list_vendor_benefit_plans.dart'; +part 'create_team.dart'; -part 'get_vendor_benefit_plan_by_id.dart'; +part 'update_team.dart'; -part 'list_vendor_benefit_plans_by_vendor_id.dart'; +part 'delete_team.dart'; -part 'list_active_vendor_benefit_plans_by_vendor_id.dart'; +part 'list_applications.dart'; -part 'filter_vendor_benefit_plans.dart'; +part 'get_application_by_id.dart'; -part 'create_account.dart'; +part 'get_applications_by_shift_id.dart'; -part 'update_account.dart'; +part 'get_applications_by_shift_id_and_status.dart'; -part 'delete_account.dart'; +part 'get_applications_by_staff_id.dart'; -part 'create_order.dart'; +part 'list_accepted_applications_by_shift_role_key.dart'; -part 'update_order.dart'; +part 'list_accepted_applications_by_business_for_day.dart'; -part 'delete_order.dart'; +part 'list_staffs_applications_by_business_for_day.dart'; -part 'create_workforce.dart'; +part 'list_assignments.dart'; -part 'update_workforce.dart'; +part 'get_assignment_by_id.dart'; -part 'deactivate_workforce.dart'; +part 'list_assignments_by_workforce_id.dart'; -part 'list_conversations.dart'; +part 'list_assignments_by_workforce_ids.dart'; -part 'get_conversation_by_id.dart'; +part 'list_assignments_by_shift_role.dart'; -part 'list_conversations_by_type.dart'; +part 'filter_assignments.dart'; -part 'list_conversations_by_status.dart'; +part 'create_benefits_data.dart'; -part 'filter_conversations.dart'; +part 'update_benefits_data.dart'; -part 'list_custom_rate_cards.dart'; +part 'delete_benefits_data.dart'; -part 'get_custom_rate_card_by_id.dart'; +part 'list_hubs.dart'; -part 'create_team_hub.dart'; +part 'get_hub_by_id.dart'; -part 'update_team_hub.dart'; +part 'get_hubs_by_owner_id.dart'; -part 'delete_team_hub.dart'; +part 'filter_hubs.dart'; -part 'list_user_conversations.dart'; +part 'list_invoice_templates.dart'; -part 'get_user_conversation_by_key.dart'; +part 'get_invoice_template_by_id.dart'; -part 'list_user_conversations_by_user_id.dart'; +part 'list_invoice_templates_by_owner_id.dart'; -part 'list_unread_user_conversations_by_user_id.dart'; +part 'list_invoice_templates_by_vendor_id.dart'; -part 'list_user_conversations_by_conversation_id.dart'; +part 'list_invoice_templates_by_business_id.dart'; -part 'filter_user_conversations.dart'; +part 'list_invoice_templates_by_order_id.dart'; -part 'list_attire_options.dart'; +part 'search_invoice_templates_by_owner_and_name.dart'; -part 'get_attire_option_by_id.dart'; +part 'create_member_task.dart'; -part 'filter_attire_options.dart'; +part 'delete_member_task.dart'; -part 'list_levels.dart'; +part 'create_staff_availability_stats.dart'; -part 'get_level_by_id.dart'; +part 'update_staff_availability_stats.dart'; -part 'filter_levels.dart'; +part 'delete_staff_availability_stats.dart'; -part 'list_users.dart'; +part 'list_staff_availability_stats.dart'; -part 'get_user_by_id.dart'; +part 'get_staff_availability_stats_by_staff_id.dart'; -part 'filter_users.dart'; - -part 'create_application.dart'; - -part 'update_application_status.dart'; - -part 'delete_application.dart'; - -part 'create_business.dart'; - -part 'update_business.dart'; - -part 'delete_business.dart'; - -part 'get_my_tasks.dart'; - -part 'get_member_task_by_id_key.dart'; - -part 'get_member_tasks_by_task_id.dart'; - -part 'list_messages.dart'; - -part 'get_message_by_id.dart'; - -part 'get_messages_by_conversation_id.dart'; - -part 'create_staff.dart'; - -part 'update_staff.dart'; - -part 'delete_staff.dart'; - -part 'create_staff_availability.dart'; - -part 'update_staff_availability.dart'; - -part 'delete_staff_availability.dart'; - -part 'create_staff_role.dart'; - -part 'delete_staff_role.dart'; - -part 'create_team_member.dart'; - -part 'update_team_member.dart'; - -part 'update_team_member_invite_status.dart'; - -part 'accept_invite_by_code.dart'; - -part 'cancel_invite_by_code.dart'; - -part 'delete_team_member.dart'; - -part 'list_activity_logs.dart'; - -part 'get_activity_log_by_id.dart'; - -part 'list_activity_logs_by_user_id.dart'; - -part 'list_unread_activity_logs_by_user_id.dart'; - -part 'filter_activity_logs.dart'; - -part 'list_emergency_contacts.dart'; - -part 'get_emergency_contact_by_id.dart'; - -part 'get_emergency_contacts_by_staff_id.dart'; - -part 'create_role_category.dart'; - -part 'update_role_category.dart'; - -part 'delete_role_category.dart'; - -part 'get_staff_document_by_key.dart'; - -part 'list_staff_documents_by_staff_id.dart'; - -part 'list_staff_documents_by_document_type.dart'; - -part 'list_staff_documents_by_status.dart'; - -part 'list_staff_roles.dart'; - -part 'get_staff_role_by_key.dart'; - -part 'list_staff_roles_by_staff_id.dart'; - -part 'list_staff_roles_by_role_id.dart'; - -part 'filter_staff_roles.dart'; - -part 'create_tax_form.dart'; - -part 'update_tax_form.dart'; - -part 'delete_tax_form.dart'; - -part 'list_team_hubs.dart'; - -part 'get_team_hub_by_id.dart'; - -part 'get_team_hubs_by_team_id.dart'; - -part 'list_team_hubs_by_owner_id.dart'; - -part 'list_team_members.dart'; - -part 'get_team_member_by_id.dart'; - -part 'get_team_members_by_team_id.dart'; +part 'filter_staff_availability_stats.dart'; @@ -2758,856 +2758,6 @@ class Unknown extends EnumValue { class ExampleConnector { - CreateCertificateVariablesBuilder createCertificate ({required String name, required CertificateStatus status, required String staffId, }) { - return CreateCertificateVariablesBuilder(dataConnect, name: name,status: status,staffId: staffId,); - } - - - UpdateCertificateVariablesBuilder updateCertificate ({required String id, }) { - return UpdateCertificateVariablesBuilder(dataConnect, id: id,); - } - - - DeleteCertificateVariablesBuilder deleteCertificate ({required String id, }) { - return DeleteCertificateVariablesBuilder(dataConnect, id: id,); - } - - - ListOrdersVariablesBuilder listOrders () { - return ListOrdersVariablesBuilder(dataConnect, ); - } - - - GetOrderByIdVariablesBuilder getOrderById ({required String id, }) { - return GetOrderByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetOrdersByBusinessIdVariablesBuilder getOrdersByBusinessId ({required String businessId, }) { - return GetOrdersByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); - } - - - GetOrdersByVendorIdVariablesBuilder getOrdersByVendorId ({required String vendorId, }) { - return GetOrdersByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - GetOrdersByStatusVariablesBuilder getOrdersByStatus ({required OrderStatus status, }) { - return GetOrdersByStatusVariablesBuilder(dataConnect, status: status,); - } - - - GetOrdersByDateRangeVariablesBuilder getOrdersByDateRange ({required Timestamp start, required Timestamp end, }) { - return GetOrdersByDateRangeVariablesBuilder(dataConnect, start: start,end: end,); - } - - - GetRapidOrdersVariablesBuilder getRapidOrders () { - return GetRapidOrdersVariablesBuilder(dataConnect, ); - } - - - CreateRecentPaymentVariablesBuilder createRecentPayment ({required String staffId, required String applicationId, required String invoiceId, }) { - return CreateRecentPaymentVariablesBuilder(dataConnect, staffId: staffId,applicationId: applicationId,invoiceId: invoiceId,); - } - - - UpdateRecentPaymentVariablesBuilder updateRecentPayment ({required String id, }) { - return UpdateRecentPaymentVariablesBuilder(dataConnect, id: id,); - } - - - DeleteRecentPaymentVariablesBuilder deleteRecentPayment ({required String id, }) { - return DeleteRecentPaymentVariablesBuilder(dataConnect, id: id,); - } - - - CreateRoleVariablesBuilder createRole ({required String name, required double costPerHour, required String vendorId, required String roleCategoryId, }) { - return CreateRoleVariablesBuilder(dataConnect, name: name,costPerHour: costPerHour,vendorId: vendorId,roleCategoryId: roleCategoryId,); - } - - - UpdateRoleVariablesBuilder updateRole ({required String id, required String roleCategoryId, }) { - return UpdateRoleVariablesBuilder(dataConnect, id: id,roleCategoryId: roleCategoryId,); - } - - - DeleteRoleVariablesBuilder deleteRole ({required String id, }) { - return DeleteRoleVariablesBuilder(dataConnect, id: id,); - } - - - ListStaffAvailabilitiesVariablesBuilder listStaffAvailabilities () { - return ListStaffAvailabilitiesVariablesBuilder(dataConnect, ); - } - - - ListStaffAvailabilitiesByStaffIdVariablesBuilder listStaffAvailabilitiesByStaffId ({required String staffId, }) { - return ListStaffAvailabilitiesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - GetStaffAvailabilityByKeyVariablesBuilder getStaffAvailabilityByKey ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { - return GetStaffAvailabilityByKeyVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); - } - - - ListStaffAvailabilitiesByDayVariablesBuilder listStaffAvailabilitiesByDay ({required DayOfWeek day, }) { - return ListStaffAvailabilitiesByDayVariablesBuilder(dataConnect, day: day,); - } - - - ListStaffAvailabilityStatsVariablesBuilder listStaffAvailabilityStats () { - return ListStaffAvailabilityStatsVariablesBuilder(dataConnect, ); - } - - - GetStaffAvailabilityStatsByStaffIdVariablesBuilder getStaffAvailabilityStatsByStaffId ({required String staffId, }) { - return GetStaffAvailabilityStatsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - FilterStaffAvailabilityStatsVariablesBuilder filterStaffAvailabilityStats () { - return FilterStaffAvailabilityStatsVariablesBuilder(dataConnect, ); - } - - - ListTaxFormsVariablesBuilder listTaxForms () { - return ListTaxFormsVariablesBuilder(dataConnect, ); - } - - - GetTaxFormByIdVariablesBuilder getTaxFormById ({required String id, }) { - return GetTaxFormByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetTaxFormsByStaffIdVariablesBuilder getTaxFormsByStaffId ({required String staffId, }) { - return GetTaxFormsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - ListTaxFormsWhereVariablesBuilder listTaxFormsWhere () { - return ListTaxFormsWhereVariablesBuilder(dataConnect, ); - } - - - GetWorkforceByIdVariablesBuilder getWorkforceById ({required String id, }) { - return GetWorkforceByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetWorkforceByVendorAndStaffVariablesBuilder getWorkforceByVendorAndStaff ({required String vendorId, required String staffId, }) { - return GetWorkforceByVendorAndStaffVariablesBuilder(dataConnect, vendorId: vendorId,staffId: staffId,); - } - - - ListWorkforceByVendorIdVariablesBuilder listWorkforceByVendorId ({required String vendorId, }) { - return ListWorkforceByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - ListWorkforceByStaffIdVariablesBuilder listWorkforceByStaffId ({required String staffId, }) { - return ListWorkforceByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - GetWorkforceByVendorAndNumberVariablesBuilder getWorkforceByVendorAndNumber ({required String vendorId, required String workforceNumber, }) { - return GetWorkforceByVendorAndNumberVariablesBuilder(dataConnect, vendorId: vendorId,workforceNumber: workforceNumber,); - } - - - CreateHubVariablesBuilder createHub ({required String name, required String ownerId, }) { - return CreateHubVariablesBuilder(dataConnect, name: name,ownerId: ownerId,); - } - - - UpdateHubVariablesBuilder updateHub ({required String id, }) { - return UpdateHubVariablesBuilder(dataConnect, id: id,); - } - - - DeleteHubVariablesBuilder deleteHub ({required String id, }) { - return DeleteHubVariablesBuilder(dataConnect, id: id,); - } - - - CreateLevelVariablesBuilder createLevel ({required String name, required int xpRequired, }) { - return CreateLevelVariablesBuilder(dataConnect, name: name,xpRequired: xpRequired,); - } - - - UpdateLevelVariablesBuilder updateLevel ({required String id, }) { - return UpdateLevelVariablesBuilder(dataConnect, id: id,); - } - - - DeleteLevelVariablesBuilder deleteLevel ({required String id, }) { - return DeleteLevelVariablesBuilder(dataConnect, id: id,); - } - - - CreateStaffDocumentVariablesBuilder createStaffDocument ({required String staffId, required String staffName, required String documentId, required DocumentStatus status, }) { - return CreateStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,staffName: staffName,documentId: documentId,status: status,); - } - - - UpdateStaffDocumentVariablesBuilder updateStaffDocument ({required String staffId, required String documentId, }) { - return UpdateStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); - } - - - DeleteStaffDocumentVariablesBuilder deleteStaffDocument ({required String staffId, required String documentId, }) { - return DeleteStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); - } - - - CreateVendorRateVariablesBuilder createVendorRate ({required String vendorId, }) { - return CreateVendorRateVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - UpdateVendorRateVariablesBuilder updateVendorRate ({required String id, }) { - return UpdateVendorRateVariablesBuilder(dataConnect, id: id,); - } - - - DeleteVendorRateVariablesBuilder deleteVendorRate ({required String id, }) { - return DeleteVendorRateVariablesBuilder(dataConnect, id: id,); - } - - - CreateActivityLogVariablesBuilder createActivityLog ({required String userId, required Timestamp date, required String title, required String description, required ActivityType activityType, }) { - return CreateActivityLogVariablesBuilder(dataConnect, userId: userId,date: date,title: title,description: description,activityType: activityType,); - } - - - UpdateActivityLogVariablesBuilder updateActivityLog ({required String id, }) { - return UpdateActivityLogVariablesBuilder(dataConnect, id: id,); - } - - - MarkActivityLogAsReadVariablesBuilder markActivityLogAsRead ({required String id, }) { - return MarkActivityLogAsReadVariablesBuilder(dataConnect, id: id,); - } - - - MarkActivityLogsAsReadVariablesBuilder markActivityLogsAsRead ({required List ids, }) { - return MarkActivityLogsAsReadVariablesBuilder(dataConnect, ids: ids,); - } - - - DeleteActivityLogVariablesBuilder deleteActivityLog ({required String id, }) { - return DeleteActivityLogVariablesBuilder(dataConnect, id: id,); - } - - - CreateAssignmentVariablesBuilder createAssignment ({required String workforceId, required String roleId, required String shiftId, }) { - return CreateAssignmentVariablesBuilder(dataConnect, workforceId: workforceId,roleId: roleId,shiftId: shiftId,); - } - - - UpdateAssignmentVariablesBuilder updateAssignment ({required String id, required String roleId, required String shiftId, }) { - return UpdateAssignmentVariablesBuilder(dataConnect, id: id,roleId: roleId,shiftId: shiftId,); - } - - - DeleteAssignmentVariablesBuilder deleteAssignment ({required String id, }) { - return DeleteAssignmentVariablesBuilder(dataConnect, id: id,); - } - - - CreateAttireOptionVariablesBuilder createAttireOption ({required String itemId, required String label, }) { - return CreateAttireOptionVariablesBuilder(dataConnect, itemId: itemId,label: label,); - } - - - UpdateAttireOptionVariablesBuilder updateAttireOption ({required String id, }) { - return UpdateAttireOptionVariablesBuilder(dataConnect, id: id,); - } - - - DeleteAttireOptionVariablesBuilder deleteAttireOption ({required String id, }) { - return DeleteAttireOptionVariablesBuilder(dataConnect, id: id,); - } - - - CreateCategoryVariablesBuilder createCategory ({required String categoryId, required String label, }) { - return CreateCategoryVariablesBuilder(dataConnect, categoryId: categoryId,label: label,); - } - - - UpdateCategoryVariablesBuilder updateCategory ({required String id, }) { - return UpdateCategoryVariablesBuilder(dataConnect, id: id,); - } - - - DeleteCategoryVariablesBuilder deleteCategory ({required String id, }) { - return DeleteCategoryVariablesBuilder(dataConnect, id: id,); - } - - - ListStaffVariablesBuilder listStaff () { - return ListStaffVariablesBuilder(dataConnect, ); - } - - - GetStaffByIdVariablesBuilder getStaffById ({required String id, }) { - return GetStaffByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetStaffByUserIdVariablesBuilder getStaffByUserId ({required String userId, }) { - return GetStaffByUserIdVariablesBuilder(dataConnect, userId: userId,); - } - - - FilterStaffVariablesBuilder filterStaff () { - return FilterStaffVariablesBuilder(dataConnect, ); - } - - - ListTaskCommentsVariablesBuilder listTaskComments () { - return ListTaskCommentsVariablesBuilder(dataConnect, ); - } - - - GetTaskCommentByIdVariablesBuilder getTaskCommentById ({required String id, }) { - return GetTaskCommentByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetTaskCommentsByTaskIdVariablesBuilder getTaskCommentsByTaskId ({required String taskId, }) { - return GetTaskCommentsByTaskIdVariablesBuilder(dataConnect, taskId: taskId,); - } - - - GetVendorByIdVariablesBuilder getVendorById ({required String id, }) { - return GetVendorByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetVendorByUserIdVariablesBuilder getVendorByUserId ({required String userId, }) { - return GetVendorByUserIdVariablesBuilder(dataConnect, userId: userId,); - } - - - ListVendorsVariablesBuilder listVendors () { - return ListVendorsVariablesBuilder(dataConnect, ); - } - - - ListAssignmentsVariablesBuilder listAssignments () { - return ListAssignmentsVariablesBuilder(dataConnect, ); - } - - - GetAssignmentByIdVariablesBuilder getAssignmentById ({required String id, }) { - return GetAssignmentByIdVariablesBuilder(dataConnect, id: id,); - } - - - ListAssignmentsByWorkforceIdVariablesBuilder listAssignmentsByWorkforceId ({required String workforceId, }) { - return ListAssignmentsByWorkforceIdVariablesBuilder(dataConnect, workforceId: workforceId,); - } - - - ListAssignmentsByWorkforceIdsVariablesBuilder listAssignmentsByWorkforceIds ({required List workforceIds, }) { - return ListAssignmentsByWorkforceIdsVariablesBuilder(dataConnect, workforceIds: workforceIds,); - } - - - ListAssignmentsByShiftRoleVariablesBuilder listAssignmentsByShiftRole ({required String shiftId, required String roleId, }) { - return ListAssignmentsByShiftRoleVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,); - } - - - FilterAssignmentsVariablesBuilder filterAssignments ({required List shiftIds, required List roleIds, }) { - return FilterAssignmentsVariablesBuilder(dataConnect, shiftIds: shiftIds,roleIds: roleIds,); - } - - - ListClientFeedbacksVariablesBuilder listClientFeedbacks () { - return ListClientFeedbacksVariablesBuilder(dataConnect, ); - } - - - GetClientFeedbackByIdVariablesBuilder getClientFeedbackById ({required String id, }) { - return GetClientFeedbackByIdVariablesBuilder(dataConnect, id: id,); - } - - - ListClientFeedbacksByBusinessIdVariablesBuilder listClientFeedbacksByBusinessId ({required String businessId, }) { - return ListClientFeedbacksByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); - } - - - ListClientFeedbacksByVendorIdVariablesBuilder listClientFeedbacksByVendorId ({required String vendorId, }) { - return ListClientFeedbacksByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - ListClientFeedbacksByBusinessAndVendorVariablesBuilder listClientFeedbacksByBusinessAndVendor ({required String businessId, required String vendorId, }) { - return ListClientFeedbacksByBusinessAndVendorVariablesBuilder(dataConnect, businessId: businessId,vendorId: vendorId,); - } - - - FilterClientFeedbacksVariablesBuilder filterClientFeedbacks () { - return FilterClientFeedbacksVariablesBuilder(dataConnect, ); - } - - - ListClientFeedbackRatingsByVendorIdVariablesBuilder listClientFeedbackRatingsByVendorId ({required String vendorId, }) { - return ListClientFeedbackRatingsByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - ListInvoicesVariablesBuilder listInvoices () { - return ListInvoicesVariablesBuilder(dataConnect, ); - } - - - GetInvoiceByIdVariablesBuilder getInvoiceById ({required String id, }) { - return GetInvoiceByIdVariablesBuilder(dataConnect, id: id,); - } - - - ListInvoicesByVendorIdVariablesBuilder listInvoicesByVendorId ({required String vendorId, }) { - return ListInvoicesByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - ListInvoicesByBusinessIdVariablesBuilder listInvoicesByBusinessId ({required String businessId, }) { - return ListInvoicesByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); - } - - - ListInvoicesByOrderIdVariablesBuilder listInvoicesByOrderId ({required String orderId, }) { - return ListInvoicesByOrderIdVariablesBuilder(dataConnect, orderId: orderId,); - } - - - ListInvoicesByStatusVariablesBuilder listInvoicesByStatus ({required InvoiceStatus status, }) { - return ListInvoicesByStatusVariablesBuilder(dataConnect, status: status,); - } - - - FilterInvoicesVariablesBuilder filterInvoices () { - return FilterInvoicesVariablesBuilder(dataConnect, ); - } - - - ListOverdueInvoicesVariablesBuilder listOverdueInvoices ({required Timestamp now, }) { - return ListOverdueInvoicesVariablesBuilder(dataConnect, now: now,); - } - - - ListRecentPaymentsVariablesBuilder listRecentPayments () { - return ListRecentPaymentsVariablesBuilder(dataConnect, ); - } - - - GetRecentPaymentByIdVariablesBuilder getRecentPaymentById ({required String id, }) { - return GetRecentPaymentByIdVariablesBuilder(dataConnect, id: id,); - } - - - ListRecentPaymentsByStaffIdVariablesBuilder listRecentPaymentsByStaffId ({required String staffId, }) { - return ListRecentPaymentsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - ListRecentPaymentsByApplicationIdVariablesBuilder listRecentPaymentsByApplicationId ({required String applicationId, }) { - return ListRecentPaymentsByApplicationIdVariablesBuilder(dataConnect, applicationId: applicationId,); - } - - - ListRecentPaymentsByInvoiceIdVariablesBuilder listRecentPaymentsByInvoiceId ({required String invoiceId, }) { - return ListRecentPaymentsByInvoiceIdVariablesBuilder(dataConnect, invoiceId: invoiceId,); - } - - - ListRecentPaymentsByStatusVariablesBuilder listRecentPaymentsByStatus ({required RecentPaymentStatus status, }) { - return ListRecentPaymentsByStatusVariablesBuilder(dataConnect, status: status,); - } - - - ListRecentPaymentsByInvoiceIdsVariablesBuilder listRecentPaymentsByInvoiceIds ({required List invoiceIds, }) { - return ListRecentPaymentsByInvoiceIdsVariablesBuilder(dataConnect, invoiceIds: invoiceIds,); - } - - - ListRecentPaymentsByBusinessIdVariablesBuilder listRecentPaymentsByBusinessId ({required String businessId, }) { - return ListRecentPaymentsByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); - } - - - ListRoleCategoriesVariablesBuilder listRoleCategories () { - return ListRoleCategoriesVariablesBuilder(dataConnect, ); - } - - - GetRoleCategoryByIdVariablesBuilder getRoleCategoryById ({required String id, }) { - return GetRoleCategoryByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetRoleCategoriesByCategoryVariablesBuilder getRoleCategoriesByCategory ({required RoleCategoryType category, }) { - return GetRoleCategoriesByCategoryVariablesBuilder(dataConnect, category: category,); - } - - - ListShiftsVariablesBuilder listShifts () { - return ListShiftsVariablesBuilder(dataConnect, ); - } - - - GetShiftByIdVariablesBuilder getShiftById ({required String id, }) { - return GetShiftByIdVariablesBuilder(dataConnect, id: id,); - } - - - FilterShiftsVariablesBuilder filterShifts () { - return FilterShiftsVariablesBuilder(dataConnect, ); - } - - - GetShiftsByBusinessIdVariablesBuilder getShiftsByBusinessId ({required String businessId, }) { - return GetShiftsByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); - } - - - GetShiftsByVendorIdVariablesBuilder getShiftsByVendorId ({required String vendorId, }) { - return GetShiftsByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - CreateStaffCourseVariablesBuilder createStaffCourse ({required String staffId, required String courseId, }) { - return CreateStaffCourseVariablesBuilder(dataConnect, staffId: staffId,courseId: courseId,); - } - - - UpdateStaffCourseVariablesBuilder updateStaffCourse ({required String id, }) { - return UpdateStaffCourseVariablesBuilder(dataConnect, id: id,); - } - - - DeleteStaffCourseVariablesBuilder deleteStaffCourse ({required String id, }) { - return DeleteStaffCourseVariablesBuilder(dataConnect, id: id,); - } - - - GetStaffCourseByIdVariablesBuilder getStaffCourseById ({required String id, }) { - return GetStaffCourseByIdVariablesBuilder(dataConnect, id: id,); - } - - - ListStaffCoursesByStaffIdVariablesBuilder listStaffCoursesByStaffId ({required String staffId, }) { - return ListStaffCoursesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - ListStaffCoursesByCourseIdVariablesBuilder listStaffCoursesByCourseId ({required String courseId, }) { - return ListStaffCoursesByCourseIdVariablesBuilder(dataConnect, courseId: courseId,); - } - - - GetStaffCourseByStaffAndCourseVariablesBuilder getStaffCourseByStaffAndCourse ({required String staffId, required String courseId, }) { - return GetStaffCourseByStaffAndCourseVariablesBuilder(dataConnect, staffId: staffId,courseId: courseId,); - } - - - CreateDocumentVariablesBuilder createDocument ({required DocumentType documentType, required String name, }) { - return CreateDocumentVariablesBuilder(dataConnect, documentType: documentType,name: name,); - } - - - UpdateDocumentVariablesBuilder updateDocument ({required String id, }) { - return UpdateDocumentVariablesBuilder(dataConnect, id: id,); - } - - - DeleteDocumentVariablesBuilder deleteDocument ({required String id, }) { - return DeleteDocumentVariablesBuilder(dataConnect, id: id,); - } - - - CreateInvoiceVariablesBuilder createInvoice ({required InvoiceStatus status, required String vendorId, required String businessId, required String orderId, required String invoiceNumber, required Timestamp issueDate, required Timestamp dueDate, required double amount, }) { - return CreateInvoiceVariablesBuilder(dataConnect, status: status,vendorId: vendorId,businessId: businessId,orderId: orderId,invoiceNumber: invoiceNumber,issueDate: issueDate,dueDate: dueDate,amount: amount,); - } - - - UpdateInvoiceVariablesBuilder updateInvoice ({required String id, }) { - return UpdateInvoiceVariablesBuilder(dataConnect, id: id,); - } - - - DeleteInvoiceVariablesBuilder deleteInvoice ({required String id, }) { - return DeleteInvoiceVariablesBuilder(dataConnect, id: id,); - } - - - CreateStaffAvailabilityStatsVariablesBuilder createStaffAvailabilityStats ({required String staffId, }) { - return CreateStaffAvailabilityStatsVariablesBuilder(dataConnect, staffId: staffId,); - } - - - UpdateStaffAvailabilityStatsVariablesBuilder updateStaffAvailabilityStats ({required String staffId, }) { - return UpdateStaffAvailabilityStatsVariablesBuilder(dataConnect, staffId: staffId,); - } - - - DeleteStaffAvailabilityStatsVariablesBuilder deleteStaffAvailabilityStats ({required String staffId, }) { - return DeleteStaffAvailabilityStatsVariablesBuilder(dataConnect, staffId: staffId,); - } - - - CreateTeamVariablesBuilder createTeam ({required String teamName, required String ownerId, required String ownerName, required String ownerRole, }) { - return CreateTeamVariablesBuilder(dataConnect, teamName: teamName,ownerId: ownerId,ownerName: ownerName,ownerRole: ownerRole,); - } - - - UpdateTeamVariablesBuilder updateTeam ({required String id, }) { - return UpdateTeamVariablesBuilder(dataConnect, id: id,); - } - - - DeleteTeamVariablesBuilder deleteTeam ({required String id, }) { - return DeleteTeamVariablesBuilder(dataConnect, id: id,); - } - - - ListTeamsVariablesBuilder listTeams () { - return ListTeamsVariablesBuilder(dataConnect, ); - } - - - GetTeamByIdVariablesBuilder getTeamById ({required String id, }) { - return GetTeamByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetTeamsByOwnerIdVariablesBuilder getTeamsByOwnerId ({required String ownerId, }) { - return GetTeamsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); - } - - - CreateUserVariablesBuilder createUser ({required String id, required UserBaseRole role, }) { - return CreateUserVariablesBuilder(dataConnect, id: id,role: role,); - } - - - UpdateUserVariablesBuilder updateUser ({required String id, }) { - return UpdateUserVariablesBuilder(dataConnect, id: id,); - } - - - DeleteUserVariablesBuilder deleteUser ({required String id, }) { - return DeleteUserVariablesBuilder(dataConnect, id: id,); - } - - - CreateVendorVariablesBuilder createVendor ({required String userId, required String companyName, }) { - return CreateVendorVariablesBuilder(dataConnect, userId: userId,companyName: companyName,); - } - - - UpdateVendorVariablesBuilder updateVendor ({required String id, }) { - return UpdateVendorVariablesBuilder(dataConnect, id: id,); - } - - - DeleteVendorVariablesBuilder deleteVendor ({required String id, }) { - return DeleteVendorVariablesBuilder(dataConnect, id: id,); - } - - - CreateBenefitsDataVariablesBuilder createBenefitsData ({required String vendorBenefitPlanId, required String staffId, required int current, }) { - return CreateBenefitsDataVariablesBuilder(dataConnect, vendorBenefitPlanId: vendorBenefitPlanId,staffId: staffId,current: current,); - } - - - UpdateBenefitsDataVariablesBuilder updateBenefitsData ({required String staffId, required String vendorBenefitPlanId, }) { - return UpdateBenefitsDataVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); - } - - - DeleteBenefitsDataVariablesBuilder deleteBenefitsData ({required String staffId, required String vendorBenefitPlanId, }) { - return DeleteBenefitsDataVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); - } - - - ListDocumentsVariablesBuilder listDocuments () { - return ListDocumentsVariablesBuilder(dataConnect, ); - } - - - GetDocumentByIdVariablesBuilder getDocumentById ({required String id, }) { - return GetDocumentByIdVariablesBuilder(dataConnect, id: id,); - } - - - FilterDocumentsVariablesBuilder filterDocuments () { - return FilterDocumentsVariablesBuilder(dataConnect, ); - } - - - CreateShiftRoleVariablesBuilder createShiftRole ({required String shiftId, required String roleId, required int count, }) { - return CreateShiftRoleVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,count: count,); - } - - - UpdateShiftRoleVariablesBuilder updateShiftRole ({required String shiftId, required String roleId, }) { - return UpdateShiftRoleVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,); - } - - - DeleteShiftRoleVariablesBuilder deleteShiftRole ({required String shiftId, required String roleId, }) { - return DeleteShiftRoleVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,); - } - - - ListApplicationsVariablesBuilder listApplications () { - return ListApplicationsVariablesBuilder(dataConnect, ); - } - - - GetApplicationByIdVariablesBuilder getApplicationById ({required String id, }) { - return GetApplicationByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetApplicationsByShiftIdVariablesBuilder getApplicationsByShiftId ({required String shiftId, }) { - return GetApplicationsByShiftIdVariablesBuilder(dataConnect, shiftId: shiftId,); - } - - - GetApplicationsByShiftIdAndStatusVariablesBuilder getApplicationsByShiftIdAndStatus ({required String shiftId, required ApplicationStatus status, }) { - return GetApplicationsByShiftIdAndStatusVariablesBuilder(dataConnect, shiftId: shiftId,status: status,); - } - - - GetApplicationsByStaffIdVariablesBuilder getApplicationsByStaffId ({required String staffId, }) { - return GetApplicationsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - ListAcceptedApplicationsByShiftRoleKeyVariablesBuilder listAcceptedApplicationsByShiftRoleKey ({required String shiftId, required String roleId, }) { - return ListAcceptedApplicationsByShiftRoleKeyVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,); - } - - - ListAcceptedApplicationsByBusinessForDayVariablesBuilder listAcceptedApplicationsByBusinessForDay ({required String businessId, required Timestamp dayStart, required Timestamp dayEnd, }) { - return ListAcceptedApplicationsByBusinessForDayVariablesBuilder(dataConnect, businessId: businessId,dayStart: dayStart,dayEnd: dayEnd,); - } - - - ListStaffsApplicationsByBusinessForDayVariablesBuilder listStaffsApplicationsByBusinessForDay ({required String businessId, required Timestamp dayStart, required Timestamp dayEnd, }) { - return ListStaffsApplicationsByBusinessForDayVariablesBuilder(dataConnect, businessId: businessId,dayStart: dayStart,dayEnd: dayEnd,); - } - - - ListCategoriesVariablesBuilder listCategories () { - return ListCategoriesVariablesBuilder(dataConnect, ); - } - - - GetCategoryByIdVariablesBuilder getCategoryById ({required String id, }) { - return GetCategoryByIdVariablesBuilder(dataConnect, id: id,); - } - - - FilterCategoriesVariablesBuilder filterCategories () { - return FilterCategoriesVariablesBuilder(dataConnect, ); - } - - - ListRolesVariablesBuilder listRoles () { - return ListRolesVariablesBuilder(dataConnect, ); - } - - - GetRoleByIdVariablesBuilder getRoleById ({required String id, }) { - return GetRoleByIdVariablesBuilder(dataConnect, id: id,); - } - - - ListRolesByVendorIdVariablesBuilder listRolesByVendorId ({required String vendorId, }) { - return ListRolesByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - ListRolesByroleCategoryIdVariablesBuilder listRolesByroleCategoryId ({required String roleCategoryId, }) { - return ListRolesByroleCategoryIdVariablesBuilder(dataConnect, roleCategoryId: roleCategoryId,); - } - - - CreateShiftVariablesBuilder createShift ({required String title, required String orderId, }) { - return CreateShiftVariablesBuilder(dataConnect, title: title,orderId: orderId,); - } - - - UpdateShiftVariablesBuilder updateShift ({required String id, }) { - return UpdateShiftVariablesBuilder(dataConnect, id: id,); - } - - - DeleteShiftVariablesBuilder deleteShift ({required String id, }) { - return DeleteShiftVariablesBuilder(dataConnect, id: id,); - } - - - ListTasksVariablesBuilder listTasks () { - return ListTasksVariablesBuilder(dataConnect, ); - } - - - GetTaskByIdVariablesBuilder getTaskById ({required String id, }) { - return GetTaskByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetTasksByOwnerIdVariablesBuilder getTasksByOwnerId ({required String ownerId, }) { - return GetTasksByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); - } - - - FilterTasksVariablesBuilder filterTasks () { - return FilterTasksVariablesBuilder(dataConnect, ); - } - - - CreateTeamHudDepartmentVariablesBuilder createTeamHudDepartment ({required String name, required String teamHubId, }) { - return CreateTeamHudDepartmentVariablesBuilder(dataConnect, name: name,teamHubId: teamHubId,); - } - - - UpdateTeamHudDepartmentVariablesBuilder updateTeamHudDepartment ({required String id, }) { - return UpdateTeamHudDepartmentVariablesBuilder(dataConnect, id: id,); - } - - - DeleteTeamHudDepartmentVariablesBuilder deleteTeamHudDepartment ({required String id, }) { - return DeleteTeamHudDepartmentVariablesBuilder(dataConnect, id: id,); - } - - - CreateVendorBenefitPlanVariablesBuilder createVendorBenefitPlan ({required String vendorId, required String title, }) { - return CreateVendorBenefitPlanVariablesBuilder(dataConnect, vendorId: vendorId,title: title,); - } - - - UpdateVendorBenefitPlanVariablesBuilder updateVendorBenefitPlan ({required String id, }) { - return UpdateVendorBenefitPlanVariablesBuilder(dataConnect, id: id,); - } - - - DeleteVendorBenefitPlanVariablesBuilder deleteVendorBenefitPlan ({required String id, }) { - return DeleteVendorBenefitPlanVariablesBuilder(dataConnect, id: id,); - } - - ListAccountsVariablesBuilder listAccounts () { return ListAccountsVariablesBuilder(dataConnect, ); } @@ -3628,168 +2778,33 @@ class ExampleConnector { } - CreateEmergencyContactVariablesBuilder createEmergencyContact ({required String name, required String phone, required RelationshipType relationship, required String staffId, }) { - return CreateEmergencyContactVariablesBuilder(dataConnect, name: name,phone: phone,relationship: relationship,staffId: staffId,); + CreateApplicationVariablesBuilder createApplication ({required String shiftId, required String staffId, required ApplicationStatus status, required ApplicationOrigin origin, required String roleId, }) { + return CreateApplicationVariablesBuilder(dataConnect, shiftId: shiftId,staffId: staffId,status: status,origin: origin,roleId: roleId,); } - UpdateEmergencyContactVariablesBuilder updateEmergencyContact ({required String id, }) { - return UpdateEmergencyContactVariablesBuilder(dataConnect, id: id,); + UpdateApplicationStatusVariablesBuilder updateApplicationStatus ({required String id, required String roleId, }) { + return UpdateApplicationStatusVariablesBuilder(dataConnect, id: id,roleId: roleId,); } - DeleteEmergencyContactVariablesBuilder deleteEmergencyContact ({required String id, }) { - return DeleteEmergencyContactVariablesBuilder(dataConnect, id: id,); + DeleteApplicationVariablesBuilder deleteApplication ({required String id, }) { + return DeleteApplicationVariablesBuilder(dataConnect, id: id,); } - ListInvoiceTemplatesVariablesBuilder listInvoiceTemplates () { - return ListInvoiceTemplatesVariablesBuilder(dataConnect, ); + CreateAssignmentVariablesBuilder createAssignment ({required String workforceId, required String roleId, required String shiftId, }) { + return CreateAssignmentVariablesBuilder(dataConnect, workforceId: workforceId,roleId: roleId,shiftId: shiftId,); } - GetInvoiceTemplateByIdVariablesBuilder getInvoiceTemplateById ({required String id, }) { - return GetInvoiceTemplateByIdVariablesBuilder(dataConnect, id: id,); + UpdateAssignmentVariablesBuilder updateAssignment ({required String id, required String roleId, required String shiftId, }) { + return UpdateAssignmentVariablesBuilder(dataConnect, id: id,roleId: roleId,shiftId: shiftId,); } - ListInvoiceTemplatesByOwnerIdVariablesBuilder listInvoiceTemplatesByOwnerId ({required String ownerId, }) { - return ListInvoiceTemplatesByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); - } - - - ListInvoiceTemplatesByVendorIdVariablesBuilder listInvoiceTemplatesByVendorId ({required String vendorId, }) { - return ListInvoiceTemplatesByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); - } - - - ListInvoiceTemplatesByBusinessIdVariablesBuilder listInvoiceTemplatesByBusinessId ({required String businessId, }) { - return ListInvoiceTemplatesByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); - } - - - ListInvoiceTemplatesByOrderIdVariablesBuilder listInvoiceTemplatesByOrderId ({required String orderId, }) { - return ListInvoiceTemplatesByOrderIdVariablesBuilder(dataConnect, orderId: orderId,); - } - - - SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder searchInvoiceTemplatesByOwnerAndName ({required String ownerId, required String name, }) { - return SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder(dataConnect, ownerId: ownerId,name: name,); - } - - - CreateMemberTaskVariablesBuilder createMemberTask ({required String teamMemberId, required String taskId, }) { - return CreateMemberTaskVariablesBuilder(dataConnect, teamMemberId: teamMemberId,taskId: taskId,); - } - - - DeleteMemberTaskVariablesBuilder deleteMemberTask ({required String teamMemberId, required String taskId, }) { - return DeleteMemberTaskVariablesBuilder(dataConnect, teamMemberId: teamMemberId,taskId: taskId,); - } - - - ListBenefitsDataVariablesBuilder listBenefitsData () { - return ListBenefitsDataVariablesBuilder(dataConnect, ); - } - - - GetBenefitsDataByKeyVariablesBuilder getBenefitsDataByKey ({required String staffId, required String vendorBenefitPlanId, }) { - return GetBenefitsDataByKeyVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); - } - - - ListBenefitsDataByStaffIdVariablesBuilder listBenefitsDataByStaffId ({required String staffId, }) { - return ListBenefitsDataByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder listBenefitsDataByVendorBenefitPlanId ({required String vendorBenefitPlanId, }) { - return ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder(dataConnect, vendorBenefitPlanId: vendorBenefitPlanId,); - } - - - ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder listBenefitsDataByVendorBenefitPlanIds ({required List vendorBenefitPlanIds, }) { - return ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder(dataConnect, vendorBenefitPlanIds: vendorBenefitPlanIds,); - } - - - CreateCourseVariablesBuilder createCourse ({required String categoryId, }) { - return CreateCourseVariablesBuilder(dataConnect, categoryId: categoryId,); - } - - - UpdateCourseVariablesBuilder updateCourse ({required String id, required String categoryId, }) { - return UpdateCourseVariablesBuilder(dataConnect, id: id,categoryId: categoryId,); - } - - - DeleteCourseVariablesBuilder deleteCourse ({required String id, }) { - return DeleteCourseVariablesBuilder(dataConnect, id: id,); - } - - - ListCoursesVariablesBuilder listCourses () { - return ListCoursesVariablesBuilder(dataConnect, ); - } - - - GetCourseByIdVariablesBuilder getCourseById ({required String id, }) { - return GetCourseByIdVariablesBuilder(dataConnect, id: id,); - } - - - FilterCoursesVariablesBuilder filterCourses () { - return FilterCoursesVariablesBuilder(dataConnect, ); - } - - - CreateCustomRateCardVariablesBuilder createCustomRateCard ({required String name, }) { - return CreateCustomRateCardVariablesBuilder(dataConnect, name: name,); - } - - - UpdateCustomRateCardVariablesBuilder updateCustomRateCard ({required String id, }) { - return UpdateCustomRateCardVariablesBuilder(dataConnect, id: id,); - } - - - DeleteCustomRateCardVariablesBuilder deleteCustomRateCard ({required String id, }) { - return DeleteCustomRateCardVariablesBuilder(dataConnect, id: id,); - } - - - ListHubsVariablesBuilder listHubs () { - return ListHubsVariablesBuilder(dataConnect, ); - } - - - GetHubByIdVariablesBuilder getHubById ({required String id, }) { - return GetHubByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetHubsByOwnerIdVariablesBuilder getHubsByOwnerId ({required String ownerId, }) { - return GetHubsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); - } - - - FilterHubsVariablesBuilder filterHubs () { - return FilterHubsVariablesBuilder(dataConnect, ); - } - - - CreateMessageVariablesBuilder createMessage ({required String conversationId, required String senderId, required String content, }) { - return CreateMessageVariablesBuilder(dataConnect, conversationId: conversationId,senderId: senderId,content: content,); - } - - - UpdateMessageVariablesBuilder updateMessage ({required String id, }) { - return UpdateMessageVariablesBuilder(dataConnect, id: id,); - } - - - DeleteMessageVariablesBuilder deleteMessage ({required String id, }) { - return DeleteMessageVariablesBuilder(dataConnect, id: id,); + DeleteAssignmentVariablesBuilder deleteAssignment ({required String id, }) { + return DeleteAssignmentVariablesBuilder(dataConnect, id: id,); } @@ -3888,123 +2903,233 @@ class ExampleConnector { } - ListVendorRatesVariablesBuilder listVendorRates () { - return ListVendorRatesVariablesBuilder(dataConnect, ); + ListUsersVariablesBuilder listUsers () { + return ListUsersVariablesBuilder(dataConnect, ); } - GetVendorRateByIdVariablesBuilder getVendorRateById ({required String id, }) { - return GetVendorRateByIdVariablesBuilder(dataConnect, id: id,); + GetUserByIdVariablesBuilder getUserById ({required String id, }) { + return GetUserByIdVariablesBuilder(dataConnect, id: id,); } - ListBusinessesVariablesBuilder listBusinesses () { - return ListBusinessesVariablesBuilder(dataConnect, ); + FilterUsersVariablesBuilder filterUsers () { + return FilterUsersVariablesBuilder(dataConnect, ); } - GetBusinessesByUserIdVariablesBuilder getBusinessesByUserId ({required String userId, }) { - return GetBusinessesByUserIdVariablesBuilder(dataConnect, userId: userId,); + ListAttireOptionsVariablesBuilder listAttireOptions () { + return ListAttireOptionsVariablesBuilder(dataConnect, ); } - GetBusinessByIdVariablesBuilder getBusinessById ({required String id, }) { - return GetBusinessByIdVariablesBuilder(dataConnect, id: id,); + GetAttireOptionByIdVariablesBuilder getAttireOptionById ({required String id, }) { + return GetAttireOptionByIdVariablesBuilder(dataConnect, id: id,); } - ListCertificatesVariablesBuilder listCertificates () { - return ListCertificatesVariablesBuilder(dataConnect, ); + FilterAttireOptionsVariablesBuilder filterAttireOptions () { + return FilterAttireOptionsVariablesBuilder(dataConnect, ); } - GetCertificateByIdVariablesBuilder getCertificateById ({required String id, }) { - return GetCertificateByIdVariablesBuilder(dataConnect, id: id,); + ListRolesVariablesBuilder listRoles () { + return ListRolesVariablesBuilder(dataConnect, ); } - ListCertificatesByStaffIdVariablesBuilder listCertificatesByStaffId ({required String staffId, }) { - return ListCertificatesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + GetRoleByIdVariablesBuilder getRoleById ({required String id, }) { + return GetRoleByIdVariablesBuilder(dataConnect, id: id,); } - CreateConversationVariablesBuilder createConversation () { - return CreateConversationVariablesBuilder(dataConnect, ); + ListRolesByVendorIdVariablesBuilder listRolesByVendorId ({required String vendorId, }) { + return ListRolesByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); } - UpdateConversationVariablesBuilder updateConversation ({required String id, }) { - return UpdateConversationVariablesBuilder(dataConnect, id: id,); + ListRolesByroleCategoryIdVariablesBuilder listRolesByroleCategoryId ({required String roleCategoryId, }) { + return ListRolesByroleCategoryIdVariablesBuilder(dataConnect, roleCategoryId: roleCategoryId,); } - UpdateConversationLastMessageVariablesBuilder updateConversationLastMessage ({required String id, }) { - return UpdateConversationLastMessageVariablesBuilder(dataConnect, id: id,); + CreateShiftVariablesBuilder createShift ({required String title, required String orderId, }) { + return CreateShiftVariablesBuilder(dataConnect, title: title,orderId: orderId,); } - DeleteConversationVariablesBuilder deleteConversation ({required String id, }) { - return DeleteConversationVariablesBuilder(dataConnect, id: id,); + UpdateShiftVariablesBuilder updateShift ({required String id, }) { + return UpdateShiftVariablesBuilder(dataConnect, id: id,); } - CreateFaqDataVariablesBuilder createFaqData ({required String category, }) { - return CreateFaqDataVariablesBuilder(dataConnect, category: category,); + DeleteShiftVariablesBuilder deleteShift ({required String id, }) { + return DeleteShiftVariablesBuilder(dataConnect, id: id,); } - UpdateFaqDataVariablesBuilder updateFaqData ({required String id, }) { - return UpdateFaqDataVariablesBuilder(dataConnect, id: id,); + CreateStaffAvailabilityVariablesBuilder createStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { + return CreateStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); } - DeleteFaqDataVariablesBuilder deleteFaqData ({required String id, }) { - return DeleteFaqDataVariablesBuilder(dataConnect, id: id,); + UpdateStaffAvailabilityVariablesBuilder updateStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { + return UpdateStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); } - CreateInvoiceTemplateVariablesBuilder createInvoiceTemplate ({required String name, required String ownerId, }) { - return CreateInvoiceTemplateVariablesBuilder(dataConnect, name: name,ownerId: ownerId,); + DeleteStaffAvailabilityVariablesBuilder deleteStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { + return DeleteStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); } - UpdateInvoiceTemplateVariablesBuilder updateInvoiceTemplate ({required String id, }) { - return UpdateInvoiceTemplateVariablesBuilder(dataConnect, id: id,); + ListStaffAvailabilitiesVariablesBuilder listStaffAvailabilities () { + return ListStaffAvailabilitiesVariablesBuilder(dataConnect, ); } - DeleteInvoiceTemplateVariablesBuilder deleteInvoiceTemplate ({required String id, }) { - return DeleteInvoiceTemplateVariablesBuilder(dataConnect, id: id,); + ListStaffAvailabilitiesByStaffIdVariablesBuilder listStaffAvailabilitiesByStaffId ({required String staffId, }) { + return ListStaffAvailabilitiesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); } - CreateTaskVariablesBuilder createTask ({required String taskName, required TaskPriority priority, required TaskStatus status, required String ownerId, }) { - return CreateTaskVariablesBuilder(dataConnect, taskName: taskName,priority: priority,status: status,ownerId: ownerId,); + GetStaffAvailabilityByKeyVariablesBuilder getStaffAvailabilityByKey ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { + return GetStaffAvailabilityByKeyVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); } - UpdateTaskVariablesBuilder updateTask ({required String id, }) { - return UpdateTaskVariablesBuilder(dataConnect, id: id,); + ListStaffAvailabilitiesByDayVariablesBuilder listStaffAvailabilitiesByDay ({required DayOfWeek day, }) { + return ListStaffAvailabilitiesByDayVariablesBuilder(dataConnect, day: day,); } - DeleteTaskVariablesBuilder deleteTask ({required String id, }) { - return DeleteTaskVariablesBuilder(dataConnect, id: id,); + CreateStaffCourseVariablesBuilder createStaffCourse ({required String staffId, required String courseId, }) { + return CreateStaffCourseVariablesBuilder(dataConnect, staffId: staffId,courseId: courseId,); } - ListTeamHudDepartmentsVariablesBuilder listTeamHudDepartments () { - return ListTeamHudDepartmentsVariablesBuilder(dataConnect, ); + UpdateStaffCourseVariablesBuilder updateStaffCourse ({required String id, }) { + return UpdateStaffCourseVariablesBuilder(dataConnect, id: id,); } - GetTeamHudDepartmentByIdVariablesBuilder getTeamHudDepartmentById ({required String id, }) { - return GetTeamHudDepartmentByIdVariablesBuilder(dataConnect, id: id,); + DeleteStaffCourseVariablesBuilder deleteStaffCourse ({required String id, }) { + return DeleteStaffCourseVariablesBuilder(dataConnect, id: id,); } - ListTeamHudDepartmentsByTeamHubIdVariablesBuilder listTeamHudDepartmentsByTeamHubId ({required String teamHubId, }) { - return ListTeamHudDepartmentsByTeamHubIdVariablesBuilder(dataConnect, teamHubId: teamHubId,); + GetStaffDocumentByKeyVariablesBuilder getStaffDocumentByKey ({required String staffId, required String documentId, }) { + return GetStaffDocumentByKeyVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); + } + + + ListStaffDocumentsByStaffIdVariablesBuilder listStaffDocumentsByStaffId ({required String staffId, }) { + return ListStaffDocumentsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + ListStaffDocumentsByDocumentTypeVariablesBuilder listStaffDocumentsByDocumentType ({required DocumentType documentType, }) { + return ListStaffDocumentsByDocumentTypeVariablesBuilder(dataConnect, documentType: documentType,); + } + + + ListStaffDocumentsByStatusVariablesBuilder listStaffDocumentsByStatus ({required DocumentStatus status, }) { + return ListStaffDocumentsByStatusVariablesBuilder(dataConnect, status: status,); + } + + + GetWorkforceByIdVariablesBuilder getWorkforceById ({required String id, }) { + return GetWorkforceByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetWorkforceByVendorAndStaffVariablesBuilder getWorkforceByVendorAndStaff ({required String vendorId, required String staffId, }) { + return GetWorkforceByVendorAndStaffVariablesBuilder(dataConnect, vendorId: vendorId,staffId: staffId,); + } + + + ListWorkforceByVendorIdVariablesBuilder listWorkforceByVendorId ({required String vendorId, }) { + return ListWorkforceByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); + } + + + ListWorkforceByStaffIdVariablesBuilder listWorkforceByStaffId ({required String staffId, }) { + return ListWorkforceByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + GetWorkforceByVendorAndNumberVariablesBuilder getWorkforceByVendorAndNumber ({required String vendorId, required String workforceNumber, }) { + return GetWorkforceByVendorAndNumberVariablesBuilder(dataConnect, vendorId: vendorId,workforceNumber: workforceNumber,); + } + + + CreateAttireOptionVariablesBuilder createAttireOption ({required String itemId, required String label, }) { + return CreateAttireOptionVariablesBuilder(dataConnect, itemId: itemId,label: label,); + } + + + UpdateAttireOptionVariablesBuilder updateAttireOption ({required String id, }) { + return UpdateAttireOptionVariablesBuilder(dataConnect, id: id,); + } + + + DeleteAttireOptionVariablesBuilder deleteAttireOption ({required String id, }) { + return DeleteAttireOptionVariablesBuilder(dataConnect, id: id,); + } + + + ListCustomRateCardsVariablesBuilder listCustomRateCards () { + return ListCustomRateCardsVariablesBuilder(dataConnect, ); + } + + + GetCustomRateCardByIdVariablesBuilder getCustomRateCardById ({required String id, }) { + return GetCustomRateCardByIdVariablesBuilder(dataConnect, id: id,); + } + + + CreateDocumentVariablesBuilder createDocument ({required DocumentType documentType, required String name, }) { + return CreateDocumentVariablesBuilder(dataConnect, documentType: documentType,name: name,); + } + + + UpdateDocumentVariablesBuilder updateDocument ({required String id, }) { + return UpdateDocumentVariablesBuilder(dataConnect, id: id,); + } + + + DeleteDocumentVariablesBuilder deleteDocument ({required String id, }) { + return DeleteDocumentVariablesBuilder(dataConnect, id: id,); + } + + + CreateInvoiceVariablesBuilder createInvoice ({required InvoiceStatus status, required String vendorId, required String businessId, required String orderId, required String invoiceNumber, required Timestamp issueDate, required Timestamp dueDate, required double amount, }) { + return CreateInvoiceVariablesBuilder(dataConnect, status: status,vendorId: vendorId,businessId: businessId,orderId: orderId,invoiceNumber: invoiceNumber,issueDate: issueDate,dueDate: dueDate,amount: amount,); + } + + + UpdateInvoiceVariablesBuilder updateInvoice ({required String id, }) { + return UpdateInvoiceVariablesBuilder(dataConnect, id: id,); + } + + + DeleteInvoiceVariablesBuilder deleteInvoice ({required String id, }) { + return DeleteInvoiceVariablesBuilder(dataConnect, id: id,); + } + + + ListMessagesVariablesBuilder listMessages () { + return ListMessagesVariablesBuilder(dataConnect, ); + } + + + GetMessageByIdVariablesBuilder getMessageById ({required String id, }) { + return GetMessageByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetMessagesByConversationIdVariablesBuilder getMessagesByConversationId ({required String conversationId, }) { + return GetMessagesByConversationIdVariablesBuilder(dataConnect, conversationId: conversationId,); } @@ -4033,6 +3158,71 @@ class ExampleConnector { } + CreateVendorBenefitPlanVariablesBuilder createVendorBenefitPlan ({required String vendorId, required String title, }) { + return CreateVendorBenefitPlanVariablesBuilder(dataConnect, vendorId: vendorId,title: title,); + } + + + UpdateVendorBenefitPlanVariablesBuilder updateVendorBenefitPlan ({required String id, }) { + return UpdateVendorBenefitPlanVariablesBuilder(dataConnect, id: id,); + } + + + DeleteVendorBenefitPlanVariablesBuilder deleteVendorBenefitPlan ({required String id, }) { + return DeleteVendorBenefitPlanVariablesBuilder(dataConnect, id: id,); + } + + + ListTasksVariablesBuilder listTasks () { + return ListTasksVariablesBuilder(dataConnect, ); + } + + + GetTaskByIdVariablesBuilder getTaskById ({required String id, }) { + return GetTaskByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetTasksByOwnerIdVariablesBuilder getTasksByOwnerId ({required String ownerId, }) { + return GetTasksByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); + } + + + FilterTasksVariablesBuilder filterTasks () { + return FilterTasksVariablesBuilder(dataConnect, ); + } + + + ListCoursesVariablesBuilder listCourses () { + return ListCoursesVariablesBuilder(dataConnect, ); + } + + + GetCourseByIdVariablesBuilder getCourseById ({required String id, }) { + return GetCourseByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterCoursesVariablesBuilder filterCourses () { + return FilterCoursesVariablesBuilder(dataConnect, ); + } + + + ListBusinessesVariablesBuilder listBusinesses () { + return ListBusinessesVariablesBuilder(dataConnect, ); + } + + + GetBusinessesByUserIdVariablesBuilder getBusinessesByUserId ({required String userId, }) { + return GetBusinessesByUserIdVariablesBuilder(dataConnect, userId: userId,); + } + + + GetBusinessByIdVariablesBuilder getBusinessById ({required String id, }) { + return GetBusinessByIdVariablesBuilder(dataConnect, id: id,); + } + + CreateClientFeedbackVariablesBuilder createClientFeedback ({required String businessId, required String vendorId, }) { return CreateClientFeedbackVariablesBuilder(dataConnect, businessId: businessId,vendorId: vendorId,); } @@ -4048,6 +3238,776 @@ class ExampleConnector { } + ListEmergencyContactsVariablesBuilder listEmergencyContacts () { + return ListEmergencyContactsVariablesBuilder(dataConnect, ); + } + + + GetEmergencyContactByIdVariablesBuilder getEmergencyContactById ({required String id, }) { + return GetEmergencyContactByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetEmergencyContactsByStaffIdVariablesBuilder getEmergencyContactsByStaffId ({required String staffId, }) { + return GetEmergencyContactsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + CreateRoleVariablesBuilder createRole ({required String name, required double costPerHour, required String vendorId, required String roleCategoryId, }) { + return CreateRoleVariablesBuilder(dataConnect, name: name,costPerHour: costPerHour,vendorId: vendorId,roleCategoryId: roleCategoryId,); + } + + + UpdateRoleVariablesBuilder updateRole ({required String id, required String roleCategoryId, }) { + return UpdateRoleVariablesBuilder(dataConnect, id: id,roleCategoryId: roleCategoryId,); + } + + + DeleteRoleVariablesBuilder deleteRole ({required String id, }) { + return DeleteRoleVariablesBuilder(dataConnect, id: id,); + } + + + ListRoleCategoriesVariablesBuilder listRoleCategories () { + return ListRoleCategoriesVariablesBuilder(dataConnect, ); + } + + + GetRoleCategoryByIdVariablesBuilder getRoleCategoryById ({required String id, }) { + return GetRoleCategoryByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetRoleCategoriesByCategoryVariablesBuilder getRoleCategoriesByCategory ({required RoleCategoryType category, }) { + return GetRoleCategoriesByCategoryVariablesBuilder(dataConnect, category: category,); + } + + + CreateTaskVariablesBuilder createTask ({required String taskName, required TaskPriority priority, required TaskStatus status, required String ownerId, }) { + return CreateTaskVariablesBuilder(dataConnect, taskName: taskName,priority: priority,status: status,ownerId: ownerId,); + } + + + UpdateTaskVariablesBuilder updateTask ({required String id, }) { + return UpdateTaskVariablesBuilder(dataConnect, id: id,); + } + + + DeleteTaskVariablesBuilder deleteTask ({required String id, }) { + return DeleteTaskVariablesBuilder(dataConnect, id: id,); + } + + + ListTeamsVariablesBuilder listTeams () { + return ListTeamsVariablesBuilder(dataConnect, ); + } + + + GetTeamByIdVariablesBuilder getTeamById ({required String id, }) { + return GetTeamByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetTeamsByOwnerIdVariablesBuilder getTeamsByOwnerId ({required String ownerId, }) { + return GetTeamsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); + } + + + CreateCategoryVariablesBuilder createCategory ({required String categoryId, required String label, }) { + return CreateCategoryVariablesBuilder(dataConnect, categoryId: categoryId,label: label,); + } + + + UpdateCategoryVariablesBuilder updateCategory ({required String id, }) { + return UpdateCategoryVariablesBuilder(dataConnect, id: id,); + } + + + DeleteCategoryVariablesBuilder deleteCategory ({required String id, }) { + return DeleteCategoryVariablesBuilder(dataConnect, id: id,); + } + + + ListConversationsVariablesBuilder listConversations () { + return ListConversationsVariablesBuilder(dataConnect, ); + } + + + GetConversationByIdVariablesBuilder getConversationById ({required String id, }) { + return GetConversationByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListConversationsByTypeVariablesBuilder listConversationsByType ({required ConversationType conversationType, }) { + return ListConversationsByTypeVariablesBuilder(dataConnect, conversationType: conversationType,); + } + + + ListConversationsByStatusVariablesBuilder listConversationsByStatus ({required ConversationStatus status, }) { + return ListConversationsByStatusVariablesBuilder(dataConnect, status: status,); + } + + + FilterConversationsVariablesBuilder filterConversations () { + return FilterConversationsVariablesBuilder(dataConnect, ); + } + + + CreateCourseVariablesBuilder createCourse ({required String categoryId, }) { + return CreateCourseVariablesBuilder(dataConnect, categoryId: categoryId,); + } + + + UpdateCourseVariablesBuilder updateCourse ({required String id, required String categoryId, }) { + return UpdateCourseVariablesBuilder(dataConnect, id: id,categoryId: categoryId,); + } + + + DeleteCourseVariablesBuilder deleteCourse ({required String id, }) { + return DeleteCourseVariablesBuilder(dataConnect, id: id,); + } + + + CreateMessageVariablesBuilder createMessage ({required String conversationId, required String senderId, required String content, }) { + return CreateMessageVariablesBuilder(dataConnect, conversationId: conversationId,senderId: senderId,content: content,); + } + + + UpdateMessageVariablesBuilder updateMessage ({required String id, }) { + return UpdateMessageVariablesBuilder(dataConnect, id: id,); + } + + + DeleteMessageVariablesBuilder deleteMessage ({required String id, }) { + return DeleteMessageVariablesBuilder(dataConnect, id: id,); + } + + + CreateTeamHubVariablesBuilder createTeamHub ({required String teamId, required String hubName, required String address, }) { + return CreateTeamHubVariablesBuilder(dataConnect, teamId: teamId,hubName: hubName,address: address,); + } + + + UpdateTeamHubVariablesBuilder updateTeamHub ({required String id, }) { + return UpdateTeamHubVariablesBuilder(dataConnect, id: id,); + } + + + DeleteTeamHubVariablesBuilder deleteTeamHub ({required String id, }) { + return DeleteTeamHubVariablesBuilder(dataConnect, id: id,); + } + + + CreateTeamMemberVariablesBuilder createTeamMember ({required String teamId, required TeamMemberRole role, required String userId, }) { + return CreateTeamMemberVariablesBuilder(dataConnect, teamId: teamId,role: role,userId: userId,); + } + + + UpdateTeamMemberVariablesBuilder updateTeamMember ({required String id, }) { + return UpdateTeamMemberVariablesBuilder(dataConnect, id: id,); + } + + + UpdateTeamMemberInviteStatusVariablesBuilder updateTeamMemberInviteStatus ({required String id, required TeamMemberInviteStatus inviteStatus, }) { + return UpdateTeamMemberInviteStatusVariablesBuilder(dataConnect, id: id,inviteStatus: inviteStatus,); + } + + + AcceptInviteByCodeVariablesBuilder acceptInviteByCode ({required String inviteCode, }) { + return AcceptInviteByCodeVariablesBuilder(dataConnect, inviteCode: inviteCode,); + } + + + CancelInviteByCodeVariablesBuilder cancelInviteByCode ({required String inviteCode, }) { + return CancelInviteByCodeVariablesBuilder(dataConnect, inviteCode: inviteCode,); + } + + + DeleteTeamMemberVariablesBuilder deleteTeamMember ({required String id, }) { + return DeleteTeamMemberVariablesBuilder(dataConnect, id: id,); + } + + + ListInvoicesVariablesBuilder listInvoices () { + return ListInvoicesVariablesBuilder(dataConnect, ); + } + + + GetInvoiceByIdVariablesBuilder getInvoiceById ({required String id, }) { + return GetInvoiceByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListInvoicesByVendorIdVariablesBuilder listInvoicesByVendorId ({required String vendorId, }) { + return ListInvoicesByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); + } + + + ListInvoicesByBusinessIdVariablesBuilder listInvoicesByBusinessId ({required String businessId, }) { + return ListInvoicesByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); + } + + + ListInvoicesByOrderIdVariablesBuilder listInvoicesByOrderId ({required String orderId, }) { + return ListInvoicesByOrderIdVariablesBuilder(dataConnect, orderId: orderId,); + } + + + ListInvoicesByStatusVariablesBuilder listInvoicesByStatus ({required InvoiceStatus status, }) { + return ListInvoicesByStatusVariablesBuilder(dataConnect, status: status,); + } + + + FilterInvoicesVariablesBuilder filterInvoices () { + return FilterInvoicesVariablesBuilder(dataConnect, ); + } + + + ListOverdueInvoicesVariablesBuilder listOverdueInvoices ({required Timestamp now, }) { + return ListOverdueInvoicesVariablesBuilder(dataConnect, now: now,); + } + + + CreateVendorVariablesBuilder createVendor ({required String userId, required String companyName, }) { + return CreateVendorVariablesBuilder(dataConnect, userId: userId,companyName: companyName,); + } + + + UpdateVendorVariablesBuilder updateVendor ({required String id, }) { + return UpdateVendorVariablesBuilder(dataConnect, id: id,); + } + + + DeleteVendorVariablesBuilder deleteVendor ({required String id, }) { + return DeleteVendorVariablesBuilder(dataConnect, id: id,); + } + + + GetVendorByIdVariablesBuilder getVendorById ({required String id, }) { + return GetVendorByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetVendorByUserIdVariablesBuilder getVendorByUserId ({required String userId, }) { + return GetVendorByUserIdVariablesBuilder(dataConnect, userId: userId,); + } + + + ListVendorsVariablesBuilder listVendors () { + return ListVendorsVariablesBuilder(dataConnect, ); + } + + + ListVendorBenefitPlansVariablesBuilder listVendorBenefitPlans () { + return ListVendorBenefitPlansVariablesBuilder(dataConnect, ); + } + + + GetVendorBenefitPlanByIdVariablesBuilder getVendorBenefitPlanById ({required String id, }) { + return GetVendorBenefitPlanByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListVendorBenefitPlansByVendorIdVariablesBuilder listVendorBenefitPlansByVendorId ({required String vendorId, }) { + return ListVendorBenefitPlansByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); + } + + + ListActiveVendorBenefitPlansByVendorIdVariablesBuilder listActiveVendorBenefitPlansByVendorId ({required String vendorId, }) { + return ListActiveVendorBenefitPlansByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); + } + + + FilterVendorBenefitPlansVariablesBuilder filterVendorBenefitPlans () { + return FilterVendorBenefitPlansVariablesBuilder(dataConnect, ); + } + + + CreateHubVariablesBuilder createHub ({required String name, required String ownerId, }) { + return CreateHubVariablesBuilder(dataConnect, name: name,ownerId: ownerId,); + } + + + UpdateHubVariablesBuilder updateHub ({required String id, }) { + return UpdateHubVariablesBuilder(dataConnect, id: id,); + } + + + DeleteHubVariablesBuilder deleteHub ({required String id, }) { + return DeleteHubVariablesBuilder(dataConnect, id: id,); + } + + + CreateTaxFormVariablesBuilder createTaxForm ({required TaxFormType formType, required String firstName, required String lastName, required int socialSN, required String address, required TaxFormStatus status, required String staffId, }) { + return CreateTaxFormVariablesBuilder(dataConnect, formType: formType,firstName: firstName,lastName: lastName,socialSN: socialSN,address: address,status: status,staffId: staffId,); + } + + + UpdateTaxFormVariablesBuilder updateTaxForm ({required String id, }) { + return UpdateTaxFormVariablesBuilder(dataConnect, id: id,); + } + + + DeleteTaxFormVariablesBuilder deleteTaxForm ({required String id, }) { + return DeleteTaxFormVariablesBuilder(dataConnect, id: id,); + } + + + ListTeamMembersVariablesBuilder listTeamMembers () { + return ListTeamMembersVariablesBuilder(dataConnect, ); + } + + + GetTeamMemberByIdVariablesBuilder getTeamMemberById ({required String id, }) { + return GetTeamMemberByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetTeamMembersByTeamIdVariablesBuilder getTeamMembersByTeamId ({required String teamId, }) { + return GetTeamMembersByTeamIdVariablesBuilder(dataConnect, teamId: teamId,); + } + + + ListUserConversationsVariablesBuilder listUserConversations () { + return ListUserConversationsVariablesBuilder(dataConnect, ); + } + + + GetUserConversationByKeyVariablesBuilder getUserConversationByKey ({required String conversationId, required String userId, }) { + return GetUserConversationByKeyVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); + } + + + ListUserConversationsByUserIdVariablesBuilder listUserConversationsByUserId ({required String userId, }) { + return ListUserConversationsByUserIdVariablesBuilder(dataConnect, userId: userId,); + } + + + ListUnreadUserConversationsByUserIdVariablesBuilder listUnreadUserConversationsByUserId ({required String userId, }) { + return ListUnreadUserConversationsByUserIdVariablesBuilder(dataConnect, userId: userId,); + } + + + ListUserConversationsByConversationIdVariablesBuilder listUserConversationsByConversationId ({required String conversationId, }) { + return ListUserConversationsByConversationIdVariablesBuilder(dataConnect, conversationId: conversationId,); + } + + + FilterUserConversationsVariablesBuilder filterUserConversations () { + return FilterUserConversationsVariablesBuilder(dataConnect, ); + } + + + ListDocumentsVariablesBuilder listDocuments () { + return ListDocumentsVariablesBuilder(dataConnect, ); + } + + + GetDocumentByIdVariablesBuilder getDocumentById ({required String id, }) { + return GetDocumentByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterDocumentsVariablesBuilder filterDocuments () { + return FilterDocumentsVariablesBuilder(dataConnect, ); + } + + + ListClientFeedbacksVariablesBuilder listClientFeedbacks () { + return ListClientFeedbacksVariablesBuilder(dataConnect, ); + } + + + GetClientFeedbackByIdVariablesBuilder getClientFeedbackById ({required String id, }) { + return GetClientFeedbackByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListClientFeedbacksByBusinessIdVariablesBuilder listClientFeedbacksByBusinessId ({required String businessId, }) { + return ListClientFeedbacksByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); + } + + + ListClientFeedbacksByVendorIdVariablesBuilder listClientFeedbacksByVendorId ({required String vendorId, }) { + return ListClientFeedbacksByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); + } + + + ListClientFeedbacksByBusinessAndVendorVariablesBuilder listClientFeedbacksByBusinessAndVendor ({required String businessId, required String vendorId, }) { + return ListClientFeedbacksByBusinessAndVendorVariablesBuilder(dataConnect, businessId: businessId,vendorId: vendorId,); + } + + + FilterClientFeedbacksVariablesBuilder filterClientFeedbacks () { + return FilterClientFeedbacksVariablesBuilder(dataConnect, ); + } + + + ListClientFeedbackRatingsByVendorIdVariablesBuilder listClientFeedbackRatingsByVendorId ({required String vendorId, }) { + return ListClientFeedbackRatingsByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); + } + + + GetMyTasksVariablesBuilder getMyTasks ({required String teamMemberId, }) { + return GetMyTasksVariablesBuilder(dataConnect, teamMemberId: teamMemberId,); + } + + + GetMemberTaskByIdKeyVariablesBuilder getMemberTaskByIdKey ({required String teamMemberId, required String taskId, }) { + return GetMemberTaskByIdKeyVariablesBuilder(dataConnect, teamMemberId: teamMemberId,taskId: taskId,); + } + + + GetMemberTasksByTaskIdVariablesBuilder getMemberTasksByTaskId ({required String taskId, }) { + return GetMemberTasksByTaskIdVariablesBuilder(dataConnect, taskId: taskId,); + } + + + ListOrdersVariablesBuilder listOrders () { + return ListOrdersVariablesBuilder(dataConnect, ); + } + + + GetOrderByIdVariablesBuilder getOrderById ({required String id, }) { + return GetOrderByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetOrdersByBusinessIdVariablesBuilder getOrdersByBusinessId ({required String businessId, }) { + return GetOrdersByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); + } + + + GetOrdersByVendorIdVariablesBuilder getOrdersByVendorId ({required String vendorId, }) { + return GetOrdersByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); + } + + + GetOrdersByStatusVariablesBuilder getOrdersByStatus ({required OrderStatus status, }) { + return GetOrdersByStatusVariablesBuilder(dataConnect, status: status,); + } + + + GetOrdersByDateRangeVariablesBuilder getOrdersByDateRange ({required Timestamp start, required Timestamp end, }) { + return GetOrdersByDateRangeVariablesBuilder(dataConnect, start: start,end: end,); + } + + + GetRapidOrdersVariablesBuilder getRapidOrders () { + return GetRapidOrdersVariablesBuilder(dataConnect, ); + } + + + ListRecentPaymentsVariablesBuilder listRecentPayments () { + return ListRecentPaymentsVariablesBuilder(dataConnect, ); + } + + + GetRecentPaymentByIdVariablesBuilder getRecentPaymentById ({required String id, }) { + return GetRecentPaymentByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListRecentPaymentsByStaffIdVariablesBuilder listRecentPaymentsByStaffId ({required String staffId, }) { + return ListRecentPaymentsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + ListRecentPaymentsByApplicationIdVariablesBuilder listRecentPaymentsByApplicationId ({required String applicationId, }) { + return ListRecentPaymentsByApplicationIdVariablesBuilder(dataConnect, applicationId: applicationId,); + } + + + ListRecentPaymentsByInvoiceIdVariablesBuilder listRecentPaymentsByInvoiceId ({required String invoiceId, }) { + return ListRecentPaymentsByInvoiceIdVariablesBuilder(dataConnect, invoiceId: invoiceId,); + } + + + ListRecentPaymentsByStatusVariablesBuilder listRecentPaymentsByStatus ({required RecentPaymentStatus status, }) { + return ListRecentPaymentsByStatusVariablesBuilder(dataConnect, status: status,); + } + + + ListRecentPaymentsByInvoiceIdsVariablesBuilder listRecentPaymentsByInvoiceIds ({required List invoiceIds, }) { + return ListRecentPaymentsByInvoiceIdsVariablesBuilder(dataConnect, invoiceIds: invoiceIds,); + } + + + ListRecentPaymentsByBusinessIdVariablesBuilder listRecentPaymentsByBusinessId ({required String businessId, }) { + return ListRecentPaymentsByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); + } + + + ListStaffRolesVariablesBuilder listStaffRoles () { + return ListStaffRolesVariablesBuilder(dataConnect, ); + } + + + GetStaffRoleByKeyVariablesBuilder getStaffRoleByKey ({required String staffId, required String roleId, }) { + return GetStaffRoleByKeyVariablesBuilder(dataConnect, staffId: staffId,roleId: roleId,); + } + + + ListStaffRolesByStaffIdVariablesBuilder listStaffRolesByStaffId ({required String staffId, }) { + return ListStaffRolesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + ListStaffRolesByRoleIdVariablesBuilder listStaffRolesByRoleId ({required String roleId, }) { + return ListStaffRolesByRoleIdVariablesBuilder(dataConnect, roleId: roleId,); + } + + + FilterStaffRolesVariablesBuilder filterStaffRoles () { + return FilterStaffRolesVariablesBuilder(dataConnect, ); + } + + + ListTaskCommentsVariablesBuilder listTaskComments () { + return ListTaskCommentsVariablesBuilder(dataConnect, ); + } + + + GetTaskCommentByIdVariablesBuilder getTaskCommentById ({required String id, }) { + return GetTaskCommentByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetTaskCommentsByTaskIdVariablesBuilder getTaskCommentsByTaskId ({required String taskId, }) { + return GetTaskCommentsByTaskIdVariablesBuilder(dataConnect, taskId: taskId,); + } + + + ListTeamHubsVariablesBuilder listTeamHubs () { + return ListTeamHubsVariablesBuilder(dataConnect, ); + } + + + GetTeamHubByIdVariablesBuilder getTeamHubById ({required String id, }) { + return GetTeamHubByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetTeamHubsByTeamIdVariablesBuilder getTeamHubsByTeamId ({required String teamId, }) { + return GetTeamHubsByTeamIdVariablesBuilder(dataConnect, teamId: teamId,); + } + + + ListTeamHubsByOwnerIdVariablesBuilder listTeamHubsByOwnerId ({required String ownerId, }) { + return ListTeamHubsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); + } + + + CreateActivityLogVariablesBuilder createActivityLog ({required String userId, required Timestamp date, required String title, required String description, required ActivityType activityType, }) { + return CreateActivityLogVariablesBuilder(dataConnect, userId: userId,date: date,title: title,description: description,activityType: activityType,); + } + + + UpdateActivityLogVariablesBuilder updateActivityLog ({required String id, }) { + return UpdateActivityLogVariablesBuilder(dataConnect, id: id,); + } + + + MarkActivityLogAsReadVariablesBuilder markActivityLogAsRead ({required String id, }) { + return MarkActivityLogAsReadVariablesBuilder(dataConnect, id: id,); + } + + + MarkActivityLogsAsReadVariablesBuilder markActivityLogsAsRead ({required List ids, }) { + return MarkActivityLogsAsReadVariablesBuilder(dataConnect, ids: ids,); + } + + + DeleteActivityLogVariablesBuilder deleteActivityLog ({required String id, }) { + return DeleteActivityLogVariablesBuilder(dataConnect, id: id,); + } + + + ListBenefitsDataVariablesBuilder listBenefitsData () { + return ListBenefitsDataVariablesBuilder(dataConnect, ); + } + + + GetBenefitsDataByKeyVariablesBuilder getBenefitsDataByKey ({required String staffId, required String vendorBenefitPlanId, }) { + return GetBenefitsDataByKeyVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); + } + + + ListBenefitsDataByStaffIdVariablesBuilder listBenefitsDataByStaffId ({required String staffId, }) { + return ListBenefitsDataByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder listBenefitsDataByVendorBenefitPlanId ({required String vendorBenefitPlanId, }) { + return ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder(dataConnect, vendorBenefitPlanId: vendorBenefitPlanId,); + } + + + ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder listBenefitsDataByVendorBenefitPlanIds ({required List vendorBenefitPlanIds, }) { + return ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder(dataConnect, vendorBenefitPlanIds: vendorBenefitPlanIds,); + } + + + CreateBusinessVariablesBuilder createBusiness ({required String businessName, required String userId, required BusinessRateGroup rateGroup, required BusinessStatus status, }) { + return CreateBusinessVariablesBuilder(dataConnect, businessName: businessName,userId: userId,rateGroup: rateGroup,status: status,); + } + + + UpdateBusinessVariablesBuilder updateBusiness ({required String id, }) { + return UpdateBusinessVariablesBuilder(dataConnect, id: id,); + } + + + DeleteBusinessVariablesBuilder deleteBusiness ({required String id, }) { + return DeleteBusinessVariablesBuilder(dataConnect, id: id,); + } + + + CreateConversationVariablesBuilder createConversation () { + return CreateConversationVariablesBuilder(dataConnect, ); + } + + + UpdateConversationVariablesBuilder updateConversation ({required String id, }) { + return UpdateConversationVariablesBuilder(dataConnect, id: id,); + } + + + UpdateConversationLastMessageVariablesBuilder updateConversationLastMessage ({required String id, }) { + return UpdateConversationLastMessageVariablesBuilder(dataConnect, id: id,); + } + + + DeleteConversationVariablesBuilder deleteConversation ({required String id, }) { + return DeleteConversationVariablesBuilder(dataConnect, id: id,); + } + + + ListShiftsVariablesBuilder listShifts () { + return ListShiftsVariablesBuilder(dataConnect, ); + } + + + GetShiftByIdVariablesBuilder getShiftById ({required String id, }) { + return GetShiftByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterShiftsVariablesBuilder filterShifts () { + return FilterShiftsVariablesBuilder(dataConnect, ); + } + + + GetShiftsByBusinessIdVariablesBuilder getShiftsByBusinessId ({required String businessId, }) { + return GetShiftsByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); + } + + + GetShiftsByVendorIdVariablesBuilder getShiftsByVendorId ({required String vendorId, }) { + return GetShiftsByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); + } + + + CreateTeamHudDepartmentVariablesBuilder createTeamHudDepartment ({required String name, required String teamHubId, }) { + return CreateTeamHudDepartmentVariablesBuilder(dataConnect, name: name,teamHubId: teamHubId,); + } + + + UpdateTeamHudDepartmentVariablesBuilder updateTeamHudDepartment ({required String id, }) { + return UpdateTeamHudDepartmentVariablesBuilder(dataConnect, id: id,); + } + + + DeleteTeamHudDepartmentVariablesBuilder deleteTeamHudDepartment ({required String id, }) { + return DeleteTeamHudDepartmentVariablesBuilder(dataConnect, id: id,); + } + + + ListTeamHudDepartmentsVariablesBuilder listTeamHudDepartments () { + return ListTeamHudDepartmentsVariablesBuilder(dataConnect, ); + } + + + GetTeamHudDepartmentByIdVariablesBuilder getTeamHudDepartmentById ({required String id, }) { + return GetTeamHudDepartmentByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListTeamHudDepartmentsByTeamHubIdVariablesBuilder listTeamHudDepartmentsByTeamHubId ({required String teamHubId, }) { + return ListTeamHudDepartmentsByTeamHubIdVariablesBuilder(dataConnect, teamHubId: teamHubId,); + } + + + CreateInvoiceTemplateVariablesBuilder createInvoiceTemplate ({required String name, required String ownerId, }) { + return CreateInvoiceTemplateVariablesBuilder(dataConnect, name: name,ownerId: ownerId,); + } + + + UpdateInvoiceTemplateVariablesBuilder updateInvoiceTemplate ({required String id, }) { + return UpdateInvoiceTemplateVariablesBuilder(dataConnect, id: id,); + } + + + DeleteInvoiceTemplateVariablesBuilder deleteInvoiceTemplate ({required String id, }) { + return DeleteInvoiceTemplateVariablesBuilder(dataConnect, id: id,); + } + + + CreateStaffDocumentVariablesBuilder createStaffDocument ({required String staffId, required String staffName, required String documentId, required DocumentStatus status, }) { + return CreateStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,staffName: staffName,documentId: documentId,status: status,); + } + + + UpdateStaffDocumentVariablesBuilder updateStaffDocument ({required String staffId, required String documentId, }) { + return UpdateStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); + } + + + DeleteStaffDocumentVariablesBuilder deleteStaffDocument ({required String staffId, required String documentId, }) { + return DeleteStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); + } + + + ListVendorRatesVariablesBuilder listVendorRates () { + return ListVendorRatesVariablesBuilder(dataConnect, ); + } + + + GetVendorRateByIdVariablesBuilder getVendorRateById ({required String id, }) { + return GetVendorRateByIdVariablesBuilder(dataConnect, id: id,); + } + + + CreateCertificateVariablesBuilder createCertificate ({required String name, required CertificateStatus status, required String staffId, }) { + return CreateCertificateVariablesBuilder(dataConnect, name: name,status: status,staffId: staffId,); + } + + + UpdateCertificateVariablesBuilder updateCertificate ({required String id, }) { + return UpdateCertificateVariablesBuilder(dataConnect, id: id,); + } + + + DeleteCertificateVariablesBuilder deleteCertificate ({required String id, }) { + return DeleteCertificateVariablesBuilder(dataConnect, id: id,); + } + + + CreateCustomRateCardVariablesBuilder createCustomRateCard ({required String name, }) { + return CreateCustomRateCardVariablesBuilder(dataConnect, name: name,); + } + + + UpdateCustomRateCardVariablesBuilder updateCustomRateCard ({required String id, }) { + return UpdateCustomRateCardVariablesBuilder(dataConnect, id: id,); + } + + + DeleteCustomRateCardVariablesBuilder deleteCustomRateCard ({required String id, }) { + return DeleteCustomRateCardVariablesBuilder(dataConnect, id: id,); + } + + ListFaqDatasVariablesBuilder listFaqDatas () { return ListFaqDatasVariablesBuilder(dataConnect, ); } @@ -4063,6 +4023,316 @@ class ExampleConnector { } + ListLevelsVariablesBuilder listLevels () { + return ListLevelsVariablesBuilder(dataConnect, ); + } + + + GetLevelByIdVariablesBuilder getLevelById ({required String id, }) { + return GetLevelByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterLevelsVariablesBuilder filterLevels () { + return FilterLevelsVariablesBuilder(dataConnect, ); + } + + + CreateRecentPaymentVariablesBuilder createRecentPayment ({required String staffId, required String applicationId, required String invoiceId, }) { + return CreateRecentPaymentVariablesBuilder(dataConnect, staffId: staffId,applicationId: applicationId,invoiceId: invoiceId,); + } + + + UpdateRecentPaymentVariablesBuilder updateRecentPayment ({required String id, }) { + return UpdateRecentPaymentVariablesBuilder(dataConnect, id: id,); + } + + + DeleteRecentPaymentVariablesBuilder deleteRecentPayment ({required String id, }) { + return DeleteRecentPaymentVariablesBuilder(dataConnect, id: id,); + } + + + CreateShiftRoleVariablesBuilder createShiftRole ({required String shiftId, required String roleId, required int count, }) { + return CreateShiftRoleVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,count: count,); + } + + + UpdateShiftRoleVariablesBuilder updateShiftRole ({required String shiftId, required String roleId, }) { + return UpdateShiftRoleVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,); + } + + + DeleteShiftRoleVariablesBuilder deleteShiftRole ({required String shiftId, required String roleId, }) { + return DeleteShiftRoleVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,); + } + + + CreateAccountVariablesBuilder createAccount ({required String bank, required AccountType type, required String last4, required String ownerId, }) { + return CreateAccountVariablesBuilder(dataConnect, bank: bank,type: type,last4: last4,ownerId: ownerId,); + } + + + UpdateAccountVariablesBuilder updateAccount ({required String id, }) { + return UpdateAccountVariablesBuilder(dataConnect, id: id,); + } + + + DeleteAccountVariablesBuilder deleteAccount ({required String id, }) { + return DeleteAccountVariablesBuilder(dataConnect, id: id,); + } + + + ListCertificatesVariablesBuilder listCertificates () { + return ListCertificatesVariablesBuilder(dataConnect, ); + } + + + GetCertificateByIdVariablesBuilder getCertificateById ({required String id, }) { + return GetCertificateByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListCertificatesByStaffIdVariablesBuilder listCertificatesByStaffId ({required String staffId, }) { + return ListCertificatesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + CreateLevelVariablesBuilder createLevel ({required String name, required int xpRequired, }) { + return CreateLevelVariablesBuilder(dataConnect, name: name,xpRequired: xpRequired,); + } + + + UpdateLevelVariablesBuilder updateLevel ({required String id, }) { + return UpdateLevelVariablesBuilder(dataConnect, id: id,); + } + + + DeleteLevelVariablesBuilder deleteLevel ({required String id, }) { + return DeleteLevelVariablesBuilder(dataConnect, id: id,); + } + + + ListTaxFormsVariablesBuilder listTaxForms () { + return ListTaxFormsVariablesBuilder(dataConnect, ); + } + + + GetTaxFormByIdVariablesBuilder getTaxFormById ({required String id, }) { + return GetTaxFormByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetTaxFormsByStaffIdVariablesBuilder getTaxFormsByStaffId ({required String staffId, }) { + return GetTaxFormsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + ListTaxFormsWhereVariablesBuilder listTaxFormsWhere () { + return ListTaxFormsWhereVariablesBuilder(dataConnect, ); + } + + + CreateUserVariablesBuilder createUser ({required String id, required UserBaseRole role, }) { + return CreateUserVariablesBuilder(dataConnect, id: id,role: role,); + } + + + UpdateUserVariablesBuilder updateUser ({required String id, }) { + return UpdateUserVariablesBuilder(dataConnect, id: id,); + } + + + DeleteUserVariablesBuilder deleteUser ({required String id, }) { + return DeleteUserVariablesBuilder(dataConnect, id: id,); + } + + + CreateEmergencyContactVariablesBuilder createEmergencyContact ({required String name, required String phone, required RelationshipType relationship, required String staffId, }) { + return CreateEmergencyContactVariablesBuilder(dataConnect, name: name,phone: phone,relationship: relationship,staffId: staffId,); + } + + + UpdateEmergencyContactVariablesBuilder updateEmergencyContact ({required String id, }) { + return UpdateEmergencyContactVariablesBuilder(dataConnect, id: id,); + } + + + DeleteEmergencyContactVariablesBuilder deleteEmergencyContact ({required String id, }) { + return DeleteEmergencyContactVariablesBuilder(dataConnect, id: id,); + } + + + CreateRoleCategoryVariablesBuilder createRoleCategory ({required String roleName, required RoleCategoryType category, }) { + return CreateRoleCategoryVariablesBuilder(dataConnect, roleName: roleName,category: category,); + } + + + UpdateRoleCategoryVariablesBuilder updateRoleCategory ({required String id, }) { + return UpdateRoleCategoryVariablesBuilder(dataConnect, id: id,); + } + + + DeleteRoleCategoryVariablesBuilder deleteRoleCategory ({required String id, }) { + return DeleteRoleCategoryVariablesBuilder(dataConnect, id: id,); + } + + + CreateStaffVariablesBuilder createStaff ({required String userId, required String fullName, }) { + return CreateStaffVariablesBuilder(dataConnect, userId: userId,fullName: fullName,); + } + + + UpdateStaffVariablesBuilder updateStaff ({required String id, }) { + return UpdateStaffVariablesBuilder(dataConnect, id: id,); + } + + + DeleteStaffVariablesBuilder deleteStaff ({required String id, }) { + return DeleteStaffVariablesBuilder(dataConnect, id: id,); + } + + + ListStaffVariablesBuilder listStaff () { + return ListStaffVariablesBuilder(dataConnect, ); + } + + + GetStaffByIdVariablesBuilder getStaffById ({required String id, }) { + return GetStaffByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetStaffByUserIdVariablesBuilder getStaffByUserId ({required String userId, }) { + return GetStaffByUserIdVariablesBuilder(dataConnect, userId: userId,); + } + + + FilterStaffVariablesBuilder filterStaff () { + return FilterStaffVariablesBuilder(dataConnect, ); + } + + + GetStaffCourseByIdVariablesBuilder getStaffCourseById ({required String id, }) { + return GetStaffCourseByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListStaffCoursesByStaffIdVariablesBuilder listStaffCoursesByStaffId ({required String staffId, }) { + return ListStaffCoursesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + ListStaffCoursesByCourseIdVariablesBuilder listStaffCoursesByCourseId ({required String courseId, }) { + return ListStaffCoursesByCourseIdVariablesBuilder(dataConnect, courseId: courseId,); + } + + + GetStaffCourseByStaffAndCourseVariablesBuilder getStaffCourseByStaffAndCourse ({required String staffId, required String courseId, }) { + return GetStaffCourseByStaffAndCourseVariablesBuilder(dataConnect, staffId: staffId,courseId: courseId,); + } + + + CreateVendorRateVariablesBuilder createVendorRate ({required String vendorId, }) { + return CreateVendorRateVariablesBuilder(dataConnect, vendorId: vendorId,); + } + + + UpdateVendorRateVariablesBuilder updateVendorRate ({required String id, }) { + return UpdateVendorRateVariablesBuilder(dataConnect, id: id,); + } + + + DeleteVendorRateVariablesBuilder deleteVendorRate ({required String id, }) { + return DeleteVendorRateVariablesBuilder(dataConnect, id: id,); + } + + + CreateWorkforceVariablesBuilder createWorkforce ({required String vendorId, required String staffId, required String workforceNumber, }) { + return CreateWorkforceVariablesBuilder(dataConnect, vendorId: vendorId,staffId: staffId,workforceNumber: workforceNumber,); + } + + + UpdateWorkforceVariablesBuilder updateWorkforce ({required String id, }) { + return UpdateWorkforceVariablesBuilder(dataConnect, id: id,); + } + + + DeactivateWorkforceVariablesBuilder deactivateWorkforce ({required String id, }) { + return DeactivateWorkforceVariablesBuilder(dataConnect, id: id,); + } + + + ListActivityLogsVariablesBuilder listActivityLogs () { + return ListActivityLogsVariablesBuilder(dataConnect, ); + } + + + GetActivityLogByIdVariablesBuilder getActivityLogById ({required String id, }) { + return GetActivityLogByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListActivityLogsByUserIdVariablesBuilder listActivityLogsByUserId ({required String userId, }) { + return ListActivityLogsByUserIdVariablesBuilder(dataConnect, userId: userId,); + } + + + ListUnreadActivityLogsByUserIdVariablesBuilder listUnreadActivityLogsByUserId ({required String userId, }) { + return ListUnreadActivityLogsByUserIdVariablesBuilder(dataConnect, userId: userId,); + } + + + FilterActivityLogsVariablesBuilder filterActivityLogs () { + return FilterActivityLogsVariablesBuilder(dataConnect, ); + } + + + ListCategoriesVariablesBuilder listCategories () { + return ListCategoriesVariablesBuilder(dataConnect, ); + } + + + GetCategoryByIdVariablesBuilder getCategoryById ({required String id, }) { + return GetCategoryByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterCategoriesVariablesBuilder filterCategories () { + return FilterCategoriesVariablesBuilder(dataConnect, ); + } + + + CreateFaqDataVariablesBuilder createFaqData ({required String category, }) { + return CreateFaqDataVariablesBuilder(dataConnect, category: category,); + } + + + UpdateFaqDataVariablesBuilder updateFaqData ({required String id, }) { + return UpdateFaqDataVariablesBuilder(dataConnect, id: id,); + } + + + DeleteFaqDataVariablesBuilder deleteFaqData ({required String id, }) { + return DeleteFaqDataVariablesBuilder(dataConnect, id: id,); + } + + + CreateOrderVariablesBuilder createOrder ({required String businessId, required OrderType orderType, required String teamHubId, }) { + return CreateOrderVariablesBuilder(dataConnect, businessId: businessId,orderType: orderType,teamHubId: teamHubId,); + } + + + UpdateOrderVariablesBuilder updateOrder ({required String id, required String teamHubId, }) { + return UpdateOrderVariablesBuilder(dataConnect, id: id,teamHubId: teamHubId,); + } + + + DeleteOrderVariablesBuilder deleteOrder ({required String id, }) { + return DeleteOrderVariablesBuilder(dataConnect, id: id,); + } + + GetShiftRoleByIdVariablesBuilder getShiftRoleById ({required String shiftId, required String roleId, }) { return GetShiftRoleByIdVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,); } @@ -4113,6 +4383,16 @@ class ExampleConnector { } + CreateStaffRoleVariablesBuilder createStaffRole ({required String staffId, required String roleId, }) { + return CreateStaffRoleVariablesBuilder(dataConnect, staffId: staffId,roleId: roleId,); + } + + + DeleteStaffRoleVariablesBuilder deleteStaffRole ({required String staffId, required String roleId, }) { + return DeleteStaffRoleVariablesBuilder(dataConnect, staffId: staffId,roleId: roleId,); + } + + CreateTaskCommentVariablesBuilder createTaskComment ({required String taskId, required String teamMemberId, required String comment, }) { return CreateTaskCommentVariablesBuilder(dataConnect, taskId: taskId,teamMemberId: teamMemberId,comment: comment,); } @@ -4128,478 +4408,198 @@ class ExampleConnector { } - ListVendorBenefitPlansVariablesBuilder listVendorBenefitPlans () { - return ListVendorBenefitPlansVariablesBuilder(dataConnect, ); + CreateTeamVariablesBuilder createTeam ({required String teamName, required String ownerId, required String ownerName, required String ownerRole, }) { + return CreateTeamVariablesBuilder(dataConnect, teamName: teamName,ownerId: ownerId,ownerName: ownerName,ownerRole: ownerRole,); } - GetVendorBenefitPlanByIdVariablesBuilder getVendorBenefitPlanById ({required String id, }) { - return GetVendorBenefitPlanByIdVariablesBuilder(dataConnect, id: id,); + UpdateTeamVariablesBuilder updateTeam ({required String id, }) { + return UpdateTeamVariablesBuilder(dataConnect, id: id,); } - ListVendorBenefitPlansByVendorIdVariablesBuilder listVendorBenefitPlansByVendorId ({required String vendorId, }) { - return ListVendorBenefitPlansByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); + DeleteTeamVariablesBuilder deleteTeam ({required String id, }) { + return DeleteTeamVariablesBuilder(dataConnect, id: id,); } - ListActiveVendorBenefitPlansByVendorIdVariablesBuilder listActiveVendorBenefitPlansByVendorId ({required String vendorId, }) { - return ListActiveVendorBenefitPlansByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); + ListApplicationsVariablesBuilder listApplications () { + return ListApplicationsVariablesBuilder(dataConnect, ); } - FilterVendorBenefitPlansVariablesBuilder filterVendorBenefitPlans () { - return FilterVendorBenefitPlansVariablesBuilder(dataConnect, ); + GetApplicationByIdVariablesBuilder getApplicationById ({required String id, }) { + return GetApplicationByIdVariablesBuilder(dataConnect, id: id,); } - CreateAccountVariablesBuilder createAccount ({required String bank, required AccountType type, required String last4, required String ownerId, }) { - return CreateAccountVariablesBuilder(dataConnect, bank: bank,type: type,last4: last4,ownerId: ownerId,); + GetApplicationsByShiftIdVariablesBuilder getApplicationsByShiftId ({required String shiftId, }) { + return GetApplicationsByShiftIdVariablesBuilder(dataConnect, shiftId: shiftId,); } - UpdateAccountVariablesBuilder updateAccount ({required String id, }) { - return UpdateAccountVariablesBuilder(dataConnect, id: id,); + GetApplicationsByShiftIdAndStatusVariablesBuilder getApplicationsByShiftIdAndStatus ({required String shiftId, required ApplicationStatus status, }) { + return GetApplicationsByShiftIdAndStatusVariablesBuilder(dataConnect, shiftId: shiftId,status: status,); } - DeleteAccountVariablesBuilder deleteAccount ({required String id, }) { - return DeleteAccountVariablesBuilder(dataConnect, id: id,); + GetApplicationsByStaffIdVariablesBuilder getApplicationsByStaffId ({required String staffId, }) { + return GetApplicationsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); } - CreateOrderVariablesBuilder createOrder ({required String businessId, required OrderType orderType, required String teamHubId, }) { - return CreateOrderVariablesBuilder(dataConnect, businessId: businessId,orderType: orderType,teamHubId: teamHubId,); + ListAcceptedApplicationsByShiftRoleKeyVariablesBuilder listAcceptedApplicationsByShiftRoleKey ({required String shiftId, required String roleId, }) { + return ListAcceptedApplicationsByShiftRoleKeyVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,); } - UpdateOrderVariablesBuilder updateOrder ({required String id, required String teamHubId, }) { - return UpdateOrderVariablesBuilder(dataConnect, id: id,teamHubId: teamHubId,); + ListAcceptedApplicationsByBusinessForDayVariablesBuilder listAcceptedApplicationsByBusinessForDay ({required String businessId, required Timestamp dayStart, required Timestamp dayEnd, }) { + return ListAcceptedApplicationsByBusinessForDayVariablesBuilder(dataConnect, businessId: businessId,dayStart: dayStart,dayEnd: dayEnd,); } - DeleteOrderVariablesBuilder deleteOrder ({required String id, }) { - return DeleteOrderVariablesBuilder(dataConnect, id: id,); + ListStaffsApplicationsByBusinessForDayVariablesBuilder listStaffsApplicationsByBusinessForDay ({required String businessId, required Timestamp dayStart, required Timestamp dayEnd, }) { + return ListStaffsApplicationsByBusinessForDayVariablesBuilder(dataConnect, businessId: businessId,dayStart: dayStart,dayEnd: dayEnd,); } - CreateWorkforceVariablesBuilder createWorkforce ({required String vendorId, required String staffId, required String workforceNumber, }) { - return CreateWorkforceVariablesBuilder(dataConnect, vendorId: vendorId,staffId: staffId,workforceNumber: workforceNumber,); + ListAssignmentsVariablesBuilder listAssignments () { + return ListAssignmentsVariablesBuilder(dataConnect, ); } - UpdateWorkforceVariablesBuilder updateWorkforce ({required String id, }) { - return UpdateWorkforceVariablesBuilder(dataConnect, id: id,); + GetAssignmentByIdVariablesBuilder getAssignmentById ({required String id, }) { + return GetAssignmentByIdVariablesBuilder(dataConnect, id: id,); } - DeactivateWorkforceVariablesBuilder deactivateWorkforce ({required String id, }) { - return DeactivateWorkforceVariablesBuilder(dataConnect, id: id,); + ListAssignmentsByWorkforceIdVariablesBuilder listAssignmentsByWorkforceId ({required String workforceId, }) { + return ListAssignmentsByWorkforceIdVariablesBuilder(dataConnect, workforceId: workforceId,); } - ListConversationsVariablesBuilder listConversations () { - return ListConversationsVariablesBuilder(dataConnect, ); + ListAssignmentsByWorkforceIdsVariablesBuilder listAssignmentsByWorkforceIds ({required List workforceIds, }) { + return ListAssignmentsByWorkforceIdsVariablesBuilder(dataConnect, workforceIds: workforceIds,); } - GetConversationByIdVariablesBuilder getConversationById ({required String id, }) { - return GetConversationByIdVariablesBuilder(dataConnect, id: id,); + ListAssignmentsByShiftRoleVariablesBuilder listAssignmentsByShiftRole ({required String shiftId, required String roleId, }) { + return ListAssignmentsByShiftRoleVariablesBuilder(dataConnect, shiftId: shiftId,roleId: roleId,); } - ListConversationsByTypeVariablesBuilder listConversationsByType ({required ConversationType conversationType, }) { - return ListConversationsByTypeVariablesBuilder(dataConnect, conversationType: conversationType,); + FilterAssignmentsVariablesBuilder filterAssignments ({required List shiftIds, required List roleIds, }) { + return FilterAssignmentsVariablesBuilder(dataConnect, shiftIds: shiftIds,roleIds: roleIds,); } - ListConversationsByStatusVariablesBuilder listConversationsByStatus ({required ConversationStatus status, }) { - return ListConversationsByStatusVariablesBuilder(dataConnect, status: status,); + CreateBenefitsDataVariablesBuilder createBenefitsData ({required String vendorBenefitPlanId, required String staffId, required int current, }) { + return CreateBenefitsDataVariablesBuilder(dataConnect, vendorBenefitPlanId: vendorBenefitPlanId,staffId: staffId,current: current,); } - FilterConversationsVariablesBuilder filterConversations () { - return FilterConversationsVariablesBuilder(dataConnect, ); + UpdateBenefitsDataVariablesBuilder updateBenefitsData ({required String staffId, required String vendorBenefitPlanId, }) { + return UpdateBenefitsDataVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); } - ListCustomRateCardsVariablesBuilder listCustomRateCards () { - return ListCustomRateCardsVariablesBuilder(dataConnect, ); + DeleteBenefitsDataVariablesBuilder deleteBenefitsData ({required String staffId, required String vendorBenefitPlanId, }) { + return DeleteBenefitsDataVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); } - GetCustomRateCardByIdVariablesBuilder getCustomRateCardById ({required String id, }) { - return GetCustomRateCardByIdVariablesBuilder(dataConnect, id: id,); + ListHubsVariablesBuilder listHubs () { + return ListHubsVariablesBuilder(dataConnect, ); } - CreateTeamHubVariablesBuilder createTeamHub ({required String teamId, required String hubName, required String address, }) { - return CreateTeamHubVariablesBuilder(dataConnect, teamId: teamId,hubName: hubName,address: address,); + GetHubByIdVariablesBuilder getHubById ({required String id, }) { + return GetHubByIdVariablesBuilder(dataConnect, id: id,); } - UpdateTeamHubVariablesBuilder updateTeamHub ({required String id, }) { - return UpdateTeamHubVariablesBuilder(dataConnect, id: id,); + GetHubsByOwnerIdVariablesBuilder getHubsByOwnerId ({required String ownerId, }) { + return GetHubsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); } - DeleteTeamHubVariablesBuilder deleteTeamHub ({required String id, }) { - return DeleteTeamHubVariablesBuilder(dataConnect, id: id,); + FilterHubsVariablesBuilder filterHubs () { + return FilterHubsVariablesBuilder(dataConnect, ); } - ListUserConversationsVariablesBuilder listUserConversations () { - return ListUserConversationsVariablesBuilder(dataConnect, ); + ListInvoiceTemplatesVariablesBuilder listInvoiceTemplates () { + return ListInvoiceTemplatesVariablesBuilder(dataConnect, ); } - GetUserConversationByKeyVariablesBuilder getUserConversationByKey ({required String conversationId, required String userId, }) { - return GetUserConversationByKeyVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); + GetInvoiceTemplateByIdVariablesBuilder getInvoiceTemplateById ({required String id, }) { + return GetInvoiceTemplateByIdVariablesBuilder(dataConnect, id: id,); } - ListUserConversationsByUserIdVariablesBuilder listUserConversationsByUserId ({required String userId, }) { - return ListUserConversationsByUserIdVariablesBuilder(dataConnect, userId: userId,); + ListInvoiceTemplatesByOwnerIdVariablesBuilder listInvoiceTemplatesByOwnerId ({required String ownerId, }) { + return ListInvoiceTemplatesByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); } - ListUnreadUserConversationsByUserIdVariablesBuilder listUnreadUserConversationsByUserId ({required String userId, }) { - return ListUnreadUserConversationsByUserIdVariablesBuilder(dataConnect, userId: userId,); + ListInvoiceTemplatesByVendorIdVariablesBuilder listInvoiceTemplatesByVendorId ({required String vendorId, }) { + return ListInvoiceTemplatesByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); } - ListUserConversationsByConversationIdVariablesBuilder listUserConversationsByConversationId ({required String conversationId, }) { - return ListUserConversationsByConversationIdVariablesBuilder(dataConnect, conversationId: conversationId,); + ListInvoiceTemplatesByBusinessIdVariablesBuilder listInvoiceTemplatesByBusinessId ({required String businessId, }) { + return ListInvoiceTemplatesByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); } - FilterUserConversationsVariablesBuilder filterUserConversations () { - return FilterUserConversationsVariablesBuilder(dataConnect, ); + ListInvoiceTemplatesByOrderIdVariablesBuilder listInvoiceTemplatesByOrderId ({required String orderId, }) { + return ListInvoiceTemplatesByOrderIdVariablesBuilder(dataConnect, orderId: orderId,); } - ListAttireOptionsVariablesBuilder listAttireOptions () { - return ListAttireOptionsVariablesBuilder(dataConnect, ); + SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder searchInvoiceTemplatesByOwnerAndName ({required String ownerId, required String name, }) { + return SearchInvoiceTemplatesByOwnerAndNameVariablesBuilder(dataConnect, ownerId: ownerId,name: name,); } - GetAttireOptionByIdVariablesBuilder getAttireOptionById ({required String id, }) { - return GetAttireOptionByIdVariablesBuilder(dataConnect, id: id,); + CreateMemberTaskVariablesBuilder createMemberTask ({required String teamMemberId, required String taskId, }) { + return CreateMemberTaskVariablesBuilder(dataConnect, teamMemberId: teamMemberId,taskId: taskId,); } - FilterAttireOptionsVariablesBuilder filterAttireOptions () { - return FilterAttireOptionsVariablesBuilder(dataConnect, ); + DeleteMemberTaskVariablesBuilder deleteMemberTask ({required String teamMemberId, required String taskId, }) { + return DeleteMemberTaskVariablesBuilder(dataConnect, teamMemberId: teamMemberId,taskId: taskId,); } - ListLevelsVariablesBuilder listLevels () { - return ListLevelsVariablesBuilder(dataConnect, ); + CreateStaffAvailabilityStatsVariablesBuilder createStaffAvailabilityStats ({required String staffId, }) { + return CreateStaffAvailabilityStatsVariablesBuilder(dataConnect, staffId: staffId,); } - GetLevelByIdVariablesBuilder getLevelById ({required String id, }) { - return GetLevelByIdVariablesBuilder(dataConnect, id: id,); + UpdateStaffAvailabilityStatsVariablesBuilder updateStaffAvailabilityStats ({required String staffId, }) { + return UpdateStaffAvailabilityStatsVariablesBuilder(dataConnect, staffId: staffId,); } - FilterLevelsVariablesBuilder filterLevels () { - return FilterLevelsVariablesBuilder(dataConnect, ); + DeleteStaffAvailabilityStatsVariablesBuilder deleteStaffAvailabilityStats ({required String staffId, }) { + return DeleteStaffAvailabilityStatsVariablesBuilder(dataConnect, staffId: staffId,); } - ListUsersVariablesBuilder listUsers () { - return ListUsersVariablesBuilder(dataConnect, ); + ListStaffAvailabilityStatsVariablesBuilder listStaffAvailabilityStats () { + return ListStaffAvailabilityStatsVariablesBuilder(dataConnect, ); } - GetUserByIdVariablesBuilder getUserById ({required String id, }) { - return GetUserByIdVariablesBuilder(dataConnect, id: id,); + GetStaffAvailabilityStatsByStaffIdVariablesBuilder getStaffAvailabilityStatsByStaffId ({required String staffId, }) { + return GetStaffAvailabilityStatsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); } - FilterUsersVariablesBuilder filterUsers () { - return FilterUsersVariablesBuilder(dataConnect, ); - } - - - CreateApplicationVariablesBuilder createApplication ({required String shiftId, required String staffId, required ApplicationStatus status, required ApplicationOrigin origin, required String roleId, }) { - return CreateApplicationVariablesBuilder(dataConnect, shiftId: shiftId,staffId: staffId,status: status,origin: origin,roleId: roleId,); - } - - - UpdateApplicationStatusVariablesBuilder updateApplicationStatus ({required String id, required String roleId, }) { - return UpdateApplicationStatusVariablesBuilder(dataConnect, id: id,roleId: roleId,); - } - - - DeleteApplicationVariablesBuilder deleteApplication ({required String id, }) { - return DeleteApplicationVariablesBuilder(dataConnect, id: id,); - } - - - CreateBusinessVariablesBuilder createBusiness ({required String businessName, required String userId, required BusinessRateGroup rateGroup, required BusinessStatus status, }) { - return CreateBusinessVariablesBuilder(dataConnect, businessName: businessName,userId: userId,rateGroup: rateGroup,status: status,); - } - - - UpdateBusinessVariablesBuilder updateBusiness ({required String id, }) { - return UpdateBusinessVariablesBuilder(dataConnect, id: id,); - } - - - DeleteBusinessVariablesBuilder deleteBusiness ({required String id, }) { - return DeleteBusinessVariablesBuilder(dataConnect, id: id,); - } - - - GetMyTasksVariablesBuilder getMyTasks ({required String teamMemberId, }) { - return GetMyTasksVariablesBuilder(dataConnect, teamMemberId: teamMemberId,); - } - - - GetMemberTaskByIdKeyVariablesBuilder getMemberTaskByIdKey ({required String teamMemberId, required String taskId, }) { - return GetMemberTaskByIdKeyVariablesBuilder(dataConnect, teamMemberId: teamMemberId,taskId: taskId,); - } - - - GetMemberTasksByTaskIdVariablesBuilder getMemberTasksByTaskId ({required String taskId, }) { - return GetMemberTasksByTaskIdVariablesBuilder(dataConnect, taskId: taskId,); - } - - - ListMessagesVariablesBuilder listMessages () { - return ListMessagesVariablesBuilder(dataConnect, ); - } - - - GetMessageByIdVariablesBuilder getMessageById ({required String id, }) { - return GetMessageByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetMessagesByConversationIdVariablesBuilder getMessagesByConversationId ({required String conversationId, }) { - return GetMessagesByConversationIdVariablesBuilder(dataConnect, conversationId: conversationId,); - } - - - CreateStaffVariablesBuilder createStaff ({required String userId, required String fullName, }) { - return CreateStaffVariablesBuilder(dataConnect, userId: userId,fullName: fullName,); - } - - - UpdateStaffVariablesBuilder updateStaff ({required String id, }) { - return UpdateStaffVariablesBuilder(dataConnect, id: id,); - } - - - DeleteStaffVariablesBuilder deleteStaff ({required String id, }) { - return DeleteStaffVariablesBuilder(dataConnect, id: id,); - } - - - CreateStaffAvailabilityVariablesBuilder createStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { - return CreateStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); - } - - - UpdateStaffAvailabilityVariablesBuilder updateStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { - return UpdateStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); - } - - - DeleteStaffAvailabilityVariablesBuilder deleteStaffAvailability ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { - return DeleteStaffAvailabilityVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); - } - - - CreateStaffRoleVariablesBuilder createStaffRole ({required String staffId, required String roleId, }) { - return CreateStaffRoleVariablesBuilder(dataConnect, staffId: staffId,roleId: roleId,); - } - - - DeleteStaffRoleVariablesBuilder deleteStaffRole ({required String staffId, required String roleId, }) { - return DeleteStaffRoleVariablesBuilder(dataConnect, staffId: staffId,roleId: roleId,); - } - - - CreateTeamMemberVariablesBuilder createTeamMember ({required String teamId, required TeamMemberRole role, required String userId, }) { - return CreateTeamMemberVariablesBuilder(dataConnect, teamId: teamId,role: role,userId: userId,); - } - - - UpdateTeamMemberVariablesBuilder updateTeamMember ({required String id, }) { - return UpdateTeamMemberVariablesBuilder(dataConnect, id: id,); - } - - - UpdateTeamMemberInviteStatusVariablesBuilder updateTeamMemberInviteStatus ({required String id, required TeamMemberInviteStatus inviteStatus, }) { - return UpdateTeamMemberInviteStatusVariablesBuilder(dataConnect, id: id,inviteStatus: inviteStatus,); - } - - - AcceptInviteByCodeVariablesBuilder acceptInviteByCode ({required String inviteCode, }) { - return AcceptInviteByCodeVariablesBuilder(dataConnect, inviteCode: inviteCode,); - } - - - CancelInviteByCodeVariablesBuilder cancelInviteByCode ({required String inviteCode, }) { - return CancelInviteByCodeVariablesBuilder(dataConnect, inviteCode: inviteCode,); - } - - - DeleteTeamMemberVariablesBuilder deleteTeamMember ({required String id, }) { - return DeleteTeamMemberVariablesBuilder(dataConnect, id: id,); - } - - - ListActivityLogsVariablesBuilder listActivityLogs () { - return ListActivityLogsVariablesBuilder(dataConnect, ); - } - - - GetActivityLogByIdVariablesBuilder getActivityLogById ({required String id, }) { - return GetActivityLogByIdVariablesBuilder(dataConnect, id: id,); - } - - - ListActivityLogsByUserIdVariablesBuilder listActivityLogsByUserId ({required String userId, }) { - return ListActivityLogsByUserIdVariablesBuilder(dataConnect, userId: userId,); - } - - - ListUnreadActivityLogsByUserIdVariablesBuilder listUnreadActivityLogsByUserId ({required String userId, }) { - return ListUnreadActivityLogsByUserIdVariablesBuilder(dataConnect, userId: userId,); - } - - - FilterActivityLogsVariablesBuilder filterActivityLogs () { - return FilterActivityLogsVariablesBuilder(dataConnect, ); - } - - - ListEmergencyContactsVariablesBuilder listEmergencyContacts () { - return ListEmergencyContactsVariablesBuilder(dataConnect, ); - } - - - GetEmergencyContactByIdVariablesBuilder getEmergencyContactById ({required String id, }) { - return GetEmergencyContactByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetEmergencyContactsByStaffIdVariablesBuilder getEmergencyContactsByStaffId ({required String staffId, }) { - return GetEmergencyContactsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - CreateRoleCategoryVariablesBuilder createRoleCategory ({required String roleName, required RoleCategoryType category, }) { - return CreateRoleCategoryVariablesBuilder(dataConnect, roleName: roleName,category: category,); - } - - - UpdateRoleCategoryVariablesBuilder updateRoleCategory ({required String id, }) { - return UpdateRoleCategoryVariablesBuilder(dataConnect, id: id,); - } - - - DeleteRoleCategoryVariablesBuilder deleteRoleCategory ({required String id, }) { - return DeleteRoleCategoryVariablesBuilder(dataConnect, id: id,); - } - - - GetStaffDocumentByKeyVariablesBuilder getStaffDocumentByKey ({required String staffId, required String documentId, }) { - return GetStaffDocumentByKeyVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); - } - - - ListStaffDocumentsByStaffIdVariablesBuilder listStaffDocumentsByStaffId ({required String staffId, }) { - return ListStaffDocumentsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - ListStaffDocumentsByDocumentTypeVariablesBuilder listStaffDocumentsByDocumentType ({required DocumentType documentType, }) { - return ListStaffDocumentsByDocumentTypeVariablesBuilder(dataConnect, documentType: documentType,); - } - - - ListStaffDocumentsByStatusVariablesBuilder listStaffDocumentsByStatus ({required DocumentStatus status, }) { - return ListStaffDocumentsByStatusVariablesBuilder(dataConnect, status: status,); - } - - - ListStaffRolesVariablesBuilder listStaffRoles () { - return ListStaffRolesVariablesBuilder(dataConnect, ); - } - - - GetStaffRoleByKeyVariablesBuilder getStaffRoleByKey ({required String staffId, required String roleId, }) { - return GetStaffRoleByKeyVariablesBuilder(dataConnect, staffId: staffId,roleId: roleId,); - } - - - ListStaffRolesByStaffIdVariablesBuilder listStaffRolesByStaffId ({required String staffId, }) { - return ListStaffRolesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - ListStaffRolesByRoleIdVariablesBuilder listStaffRolesByRoleId ({required String roleId, }) { - return ListStaffRolesByRoleIdVariablesBuilder(dataConnect, roleId: roleId,); - } - - - FilterStaffRolesVariablesBuilder filterStaffRoles () { - return FilterStaffRolesVariablesBuilder(dataConnect, ); - } - - - CreateTaxFormVariablesBuilder createTaxForm ({required TaxFormType formType, required String firstName, required String lastName, required int socialSN, required String address, required TaxFormStatus status, required String staffId, }) { - return CreateTaxFormVariablesBuilder(dataConnect, formType: formType,firstName: firstName,lastName: lastName,socialSN: socialSN,address: address,status: status,staffId: staffId,); - } - - - UpdateTaxFormVariablesBuilder updateTaxForm ({required String id, }) { - return UpdateTaxFormVariablesBuilder(dataConnect, id: id,); - } - - - DeleteTaxFormVariablesBuilder deleteTaxForm ({required String id, }) { - return DeleteTaxFormVariablesBuilder(dataConnect, id: id,); - } - - - ListTeamHubsVariablesBuilder listTeamHubs () { - return ListTeamHubsVariablesBuilder(dataConnect, ); - } - - - GetTeamHubByIdVariablesBuilder getTeamHubById ({required String id, }) { - return GetTeamHubByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetTeamHubsByTeamIdVariablesBuilder getTeamHubsByTeamId ({required String teamId, }) { - return GetTeamHubsByTeamIdVariablesBuilder(dataConnect, teamId: teamId,); - } - - - ListTeamHubsByOwnerIdVariablesBuilder listTeamHubsByOwnerId ({required String ownerId, }) { - return ListTeamHubsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); - } - - - ListTeamMembersVariablesBuilder listTeamMembers () { - return ListTeamMembersVariablesBuilder(dataConnect, ); - } - - - GetTeamMemberByIdVariablesBuilder getTeamMemberById ({required String id, }) { - return GetTeamMemberByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetTeamMembersByTeamIdVariablesBuilder getTeamMembersByTeamId ({required String teamId, }) { - return GetTeamMembersByTeamIdVariablesBuilder(dataConnect, teamId: teamId,); + FilterStaffAvailabilityStatsVariablesBuilder filterStaffAvailabilityStats () { + return FilterStaffAvailabilityStatsVariablesBuilder(dataConnect, ); } diff --git a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_shift_roles_by_business_and_order.dart b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_shift_roles_by_business_and_order.dart index db4a2fff..ad7b8ab9 100644 --- a/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_shift_roles_by_business_and_order.dart +++ b/apps/mobile/packages/data_connect/lib/src/dataconnect_generated/list_shift_roles_by_business_and_order.dart @@ -255,11 +255,13 @@ class ListShiftRolesByBusinessAndOrderShiftRolesShift { @immutable class ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder { final String? vendorId; + final String? eventName; final Timestamp? date; final ListShiftRolesByBusinessAndOrderShiftRolesShiftOrderTeamHub teamHub; ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder.fromJson(dynamic json): vendorId = json['vendorId'] == null ? null : nativeFromJson(json['vendorId']), + eventName = json['eventName'] == null ? null : nativeFromJson(json['eventName']), date = json['date'] == null ? null : Timestamp.fromJson(json['date']), teamHub = ListShiftRolesByBusinessAndOrderShiftRolesShiftOrderTeamHub.fromJson(json['teamHub']); @override @@ -273,12 +275,13 @@ class ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder { final ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder otherTyped = other as ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder; return vendorId == otherTyped.vendorId && + eventName == otherTyped.eventName && date == otherTyped.date && teamHub == otherTyped.teamHub; } @override - int get hashCode => Object.hashAll([vendorId.hashCode, date.hashCode, teamHub.hashCode]); + int get hashCode => Object.hashAll([vendorId.hashCode, eventName.hashCode, date.hashCode, teamHub.hashCode]); Map toJson() { @@ -286,6 +289,9 @@ class ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder { if (vendorId != null) { json['vendorId'] = nativeToJson(vendorId); } + if (eventName != null) { + json['eventName'] = nativeToJson(eventName); + } if (date != null) { json['date'] = date!.toJson(); } @@ -295,6 +301,7 @@ class ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder { ListShiftRolesByBusinessAndOrderShiftRolesShiftOrder({ this.vendorId, + this.eventName, this.date, required this.teamHub, }); diff --git a/apps/mobile/packages/domain/lib/src/entities/orders/one_time_order.dart b/apps/mobile/packages/domain/lib/src/entities/orders/one_time_order.dart index 6240c797..e0e7ca67 100644 --- a/apps/mobile/packages/domain/lib/src/entities/orders/one_time_order.dart +++ b/apps/mobile/packages/domain/lib/src/entities/orders/one_time_order.dart @@ -11,6 +11,7 @@ class OneTimeOrder extends Equatable { required this.location, required this.positions, this.hub, + this.eventName, this.vendorId, this.roleRates = const {}, }); @@ -26,6 +27,9 @@ class OneTimeOrder extends Equatable { /// Selected hub details for this order. final OneTimeOrderHubDetails? hub; + /// Optional order name. + final String? eventName; + /// Selected vendor id for this order. final String? vendorId; @@ -38,6 +42,7 @@ class OneTimeOrder extends Equatable { location, positions, hub, + eventName, vendorId, roleRates, ]; diff --git a/apps/mobile/packages/features/client/create_order/lib/src/data/repositories_impl/client_create_order_repository_impl.dart b/apps/mobile/packages/features/client/create_order/lib/src/data/repositories_impl/client_create_order_repository_impl.dart index 9c952c6e..602b4b72 100644 --- a/apps/mobile/packages/features/client/create_order/lib/src/data/repositories_impl/client_create_order_repository_impl.dart +++ b/apps/mobile/packages/features/client/create_order/lib/src/data/repositories_impl/client_create_order_repository_impl.dart @@ -79,6 +79,7 @@ class ClientCreateOrderRepositoryImpl teamHubId: hub.id, ) .vendorId(vendorId) + .eventName(order.eventName) .status(dc.OrderStatus.POSTED) .date(orderTimestamp) .execute(); diff --git a/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_bloc.dart b/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_bloc.dart index 6fe4779f..65822ff3 100644 --- a/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_bloc.dart +++ b/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_bloc.dart @@ -15,6 +15,7 @@ class OneTimeOrderBloc extends Bloc { on(_onVendorChanged); on(_onHubsLoaded); on(_onHubChanged); + on(_onEventNameChanged); on(_onDateChanged); on(_onPositionAdded); on(_onPositionRemoved); @@ -149,6 +150,13 @@ class OneTimeOrderBloc extends Bloc { ); } + void _onEventNameChanged( + OneTimeOrderEventNameChanged event, + Emitter emit, + ) { + emit(state.copyWith(eventName: event.eventName)); + } + void _onDateChanged( OneTimeOrderDateChanged event, Emitter emit, @@ -224,6 +232,7 @@ class OneTimeOrderBloc extends Bloc { country: selectedHub.country, zipCode: selectedHub.zipCode, ), + eventName: state.eventName, vendorId: state.selectedVendor?.id, roleRates: roleRates, ); diff --git a/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_event.dart b/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_event.dart index b505448c..7258c2d0 100644 --- a/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_event.dart +++ b/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_event.dart @@ -41,6 +41,14 @@ class OneTimeOrderHubChanged extends OneTimeOrderEvent { List get props => [hub]; } +class OneTimeOrderEventNameChanged extends OneTimeOrderEvent { + const OneTimeOrderEventNameChanged(this.eventName); + final String eventName; + + @override + List get props => [eventName]; +} + class OneTimeOrderDateChanged extends OneTimeOrderEvent { const OneTimeOrderDateChanged(this.date); final DateTime date; diff --git a/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_state.dart b/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_state.dart index 5061f615..872723bc 100644 --- a/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_state.dart +++ b/apps/mobile/packages/features/client/create_order/lib/src/presentation/blocs/one_time_order_state.dart @@ -7,6 +7,7 @@ class OneTimeOrderState extends Equatable { const OneTimeOrderState({ required this.date, required this.location, + required this.eventName, required this.positions, this.status = OneTimeOrderStatus.initial, this.errorMessage, @@ -21,6 +22,7 @@ class OneTimeOrderState extends Equatable { return OneTimeOrderState( date: DateTime.now(), location: '', + eventName: '', positions: const [ OneTimeOrderPosition(role: '', count: 1, startTime: '', endTime: ''), ], @@ -31,6 +33,7 @@ class OneTimeOrderState extends Equatable { } final DateTime date; final String location; + final String eventName; final List positions; final OneTimeOrderStatus status; final String? errorMessage; @@ -43,6 +46,7 @@ class OneTimeOrderState extends Equatable { OneTimeOrderState copyWith({ DateTime? date, String? location, + String? eventName, List? positions, OneTimeOrderStatus? status, String? errorMessage, @@ -55,6 +59,7 @@ class OneTimeOrderState extends Equatable { return OneTimeOrderState( date: date ?? this.date, location: location ?? this.location, + eventName: eventName ?? this.eventName, positions: positions ?? this.positions, status: status ?? this.status, errorMessage: errorMessage ?? this.errorMessage, @@ -70,6 +75,7 @@ class OneTimeOrderState extends Equatable { List get props => [ date, location, + eventName, positions, status, errorMessage, diff --git a/apps/mobile/packages/features/client/create_order/lib/src/presentation/widgets/one_time_order/one_time_order_event_name_input.dart b/apps/mobile/packages/features/client/create_order/lib/src/presentation/widgets/one_time_order/one_time_order_event_name_input.dart new file mode 100644 index 00000000..2fe608d0 --- /dev/null +++ b/apps/mobile/packages/features/client/create_order/lib/src/presentation/widgets/one_time_order/one_time_order_event_name_input.dart @@ -0,0 +1,56 @@ +import 'package:design_system/design_system.dart'; +import 'package:flutter/material.dart'; + +/// A text input for the order name in the one-time order form. +class OneTimeOrderEventNameInput extends StatefulWidget { + const OneTimeOrderEventNameInput({ + required this.label, + required this.value, + required this.onChanged, + super.key, + }); + + final String label; + final String value; + final ValueChanged onChanged; + + @override + State createState() => + _OneTimeOrderEventNameInputState(); +} + +class _OneTimeOrderEventNameInputState + extends State { + late final TextEditingController _controller; + + @override + void initState() { + super.initState(); + _controller = TextEditingController(text: widget.value); + } + + @override + void didUpdateWidget(OneTimeOrderEventNameInput oldWidget) { + super.didUpdateWidget(oldWidget); + if (widget.value != _controller.text) { + _controller.text = widget.value; + } + } + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return UiTextField( + label: widget.label, + controller: _controller, + onChanged: widget.onChanged, + hintText: 'Order name', + prefixIcon: UiIcons.briefcase, + ); + } +} diff --git a/apps/mobile/packages/features/client/create_order/lib/src/presentation/widgets/one_time_order/one_time_order_view.dart b/apps/mobile/packages/features/client/create_order/lib/src/presentation/widgets/one_time_order/one_time_order_view.dart index 3b285159..e36f6100 100644 --- a/apps/mobile/packages/features/client/create_order/lib/src/presentation/widgets/one_time_order/one_time_order_view.dart +++ b/apps/mobile/packages/features/client/create_order/lib/src/presentation/widgets/one_time_order/one_time_order_view.dart @@ -8,6 +8,7 @@ import '../../blocs/one_time_order_bloc.dart'; import '../../blocs/one_time_order_event.dart'; import '../../blocs/one_time_order_state.dart'; import 'one_time_order_date_picker.dart'; +import 'one_time_order_event_name_input.dart'; import 'one_time_order_header.dart'; import 'one_time_order_position_card.dart'; import 'one_time_order_section_header.dart'; @@ -133,6 +134,15 @@ class _OneTimeOrderForm extends StatelessWidget { ), const SizedBox(height: UiConstants.space4), + OneTimeOrderEventNameInput( + label: 'ORDER NAME', + value: state.eventName, + onChanged: (String value) => BlocProvider.of( + context, + ).add(OneTimeOrderEventNameChanged(value)), + ), + const SizedBox(height: UiConstants.space4), + // Vendor Selection Text('SELECT VENDOR', style: UiTypography.footnote2r.textSecondary), const SizedBox(height: 8), diff --git a/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/shift_order_form_sheet.dart b/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/shift_order_form_sheet.dart index 603594b8..5fbb81f0 100644 --- a/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/shift_order_form_sheet.dart +++ b/apps/mobile/packages/features/client/home/lib/src/presentation/widgets/shift_order_form_sheet.dart @@ -53,6 +53,7 @@ class ShiftOrderFormSheet extends StatefulWidget { class _ShiftOrderFormSheetState extends State { late TextEditingController _dateController; late TextEditingController _globalLocationController; + late TextEditingController _orderNameController; late List> _positions; @@ -80,6 +81,9 @@ class _ShiftOrderFormSheetState extends State { widget.initialData?['locationAddress'] ?? '', ); + _orderNameController = TextEditingController( + text: widget.initialData?['eventName']?.toString() ?? '', + ); // Initialize positions _positions = >[ @@ -109,6 +113,7 @@ class _ShiftOrderFormSheetState extends State { void dispose() { _dateController.dispose(); _globalLocationController.dispose(); + _orderNameController.dispose(); super.dispose(); } @@ -212,6 +217,7 @@ class _ShiftOrderFormSheetState extends State { teamHubId: selectedHub.id, ) .vendorId(_selectedVendorId) + .eventName(_orderNameController.text) .status(dc.OrderStatus.POSTED) .date(orderTimestamp) .execute(); @@ -416,6 +422,7 @@ class _ShiftOrderFormSheetState extends State { hubName: teamHub?.hubName, address: teamHub?.address, ); + _orderNameController.text = firstShift.order.eventName ?? ''; final String? vendorId = firstShift.order.vendorId; if (mounted) { @@ -676,6 +683,10 @@ class _ShiftOrderFormSheetState extends State { _buildVendorDropdown(), const SizedBox(height: UiConstants.space4), + _buildSectionHeader('ORDER NAME'), + _buildOrderNameField(), + const SizedBox(height: UiConstants.space4), + _buildSectionHeader('DATE'), _buildDateField(), const SizedBox(height: UiConstants.space4), @@ -952,6 +963,25 @@ class _ShiftOrderFormSheetState extends State { ); } + Widget _buildOrderNameField() { + return Container( + padding: const EdgeInsets.symmetric(horizontal: UiConstants.space3), + decoration: BoxDecoration( + color: UiColors.white, + borderRadius: UiConstants.radiusMd, + border: Border.all(color: UiColors.border), + ), + child: TextField( + controller: _orderNameController, + decoration: const InputDecoration( + hintText: 'Order name', + border: InputBorder.none, + ), + style: UiTypography.body2r.textPrimary, + ), + ); + } + Widget _buildPositionCard(int index, Map pos) { return Container( margin: const EdgeInsets.only(bottom: UiConstants.space3), diff --git a/apps/mobile/packages/features/client/view_orders/lib/src/presentation/widgets/view_order_card.dart b/apps/mobile/packages/features/client/view_orders/lib/src/presentation/widgets/view_order_card.dart index d3dcb040..6aafc173 100644 --- a/apps/mobile/packages/features/client/view_orders/lib/src/presentation/widgets/view_order_card.dart +++ b/apps/mobile/packages/features/client/view_orders/lib/src/presentation/widgets/view_order_card.dart @@ -655,6 +655,7 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { late TextEditingController _dateController; late TextEditingController _globalLocationController; + late TextEditingController _orderNameController; late List> _positions; @@ -677,6 +678,7 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { _globalLocationController = TextEditingController( text: widget.order.locationAddress, ); + _orderNameController = TextEditingController(); _positions = >[ { @@ -699,6 +701,7 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { void dispose() { _dateController.dispose(); _globalLocationController.dispose(); + _orderNameController.dispose(); super.dispose(); } @@ -744,6 +747,7 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { _dateController.text = dateText; _globalLocationController.text = location; + _orderNameController.text = firstShift.order.eventName ?? ''; _shiftId = shiftRoles.first.shiftId; final List> positions = @@ -1161,6 +1165,7 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { .updateOrder(id: widget.order.orderId, teamHubId: selectedHub.id) .vendorId(_selectedVendor?.id) .date(_toTimestamp(orderDateOnly)) + .eventName(_orderNameController.text) .execute(); await _dataConnect @@ -1277,6 +1282,14 @@ class _OrderEditSheetState extends State<_OrderEditSheet> { ), const SizedBox(height: UiConstants.space4), + _buildSectionHeader('ORDER NAME'), + UiTextField( + controller: _orderNameController, + hintText: 'Order name', + prefixIcon: UiIcons.briefcase, + ), + const SizedBox(height: UiConstants.space4), + _buildSectionHeader('HUB'), Container( padding: const EdgeInsets.symmetric( diff --git a/backend/dataconnect/connector/shiftRole/queries.gql b/backend/dataconnect/connector/shiftRole/queries.gql index c12ceb02..b77b490b 100644 --- a/backend/dataconnect/connector/shiftRole/queries.gql +++ b/backend/dataconnect/connector/shiftRole/queries.gql @@ -378,6 +378,7 @@ query listShiftRolesByBusinessAndOrder( order{ vendorId + eventName date #location