From 075c3150d0ccc326f2c13f9c223fea5d66820cac Mon Sep 17 00:00:00 2001 From: Achintha Isuru Date: Mon, 2 Feb 2026 10:07:13 -0500 Subject: [PATCH] feat: update mobile makefile to include SDK generation for client and staff apps - Added `dataconnect-generate-sdk` as a prerequisite for mobile installation, client, and staff build commands. - Ensured SDK generation is performed before running or building mobile applications to streamline the development process. --- apps/mobile/apps/client/pubspec.yaml | 2 +- .../dataconnect_generated/.guides/usage.md | 24 +- .../lib/src/dataconnect_generated/README.md | 36268 ++++++++-------- .../src/dataconnect_generated/generated.dart | 3850 +- makefiles/mobile.mk | 10 +- 5 files changed, 20077 insertions(+), 20077 deletions(-) diff --git a/apps/mobile/apps/client/pubspec.yaml b/apps/mobile/apps/client/pubspec.yaml index 1d5e21d6..3ce0b905 100644 --- a/apps/mobile/apps/client/pubspec.yaml +++ b/apps/mobile/apps/client/pubspec.yaml @@ -1,7 +1,7 @@ name: krowwithus_client description: "Krow Client Application" publish_to: "none" -version: 0.0.1-M3+3 +version: 0.0.1-M3+4 resolution: workspace environment: 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 e9af6d30..40707ab7 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.createTaskComment(createTaskCommentVariables).execute(); -ExampleConnector.instance.updateTaskComment(updateTaskCommentVariables).execute(); -ExampleConnector.instance.deleteTaskComment(deleteTaskCommentVariables).execute(); -ExampleConnector.instance.createTaxForm(createTaxFormVariables).execute(); -ExampleConnector.instance.updateTaxForm(updateTaxFormVariables).execute(); -ExampleConnector.instance.deleteTaxForm(deleteTaxFormVariables).execute(); -ExampleConnector.instance.createUserConversation(createUserConversationVariables).execute(); -ExampleConnector.instance.updateUserConversation(updateUserConversationVariables).execute(); -ExampleConnector.instance.markConversationAsRead(markConversationAsReadVariables).execute(); -ExampleConnector.instance.incrementUnreadForUser(incrementUnreadForUserVariables).execute(); +ExampleConnector.instance.listConversations(listConversationsVariables).execute(); +ExampleConnector.instance.getConversationById(getConversationByIdVariables).execute(); +ExampleConnector.instance.listConversationsByType(listConversationsByTypeVariables).execute(); +ExampleConnector.instance.listConversationsByStatus(listConversationsByStatusVariables).execute(); +ExampleConnector.instance.filterConversations(filterConversationsVariables).execute(); +ExampleConnector.instance.createTeamHub(createTeamHubVariables).execute(); +ExampleConnector.instance.updateTeamHub(updateTeamHubVariables).execute(); +ExampleConnector.instance.deleteTeamHub(deleteTeamHubVariables).execute(); +ExampleConnector.instance.createWorkforce(createWorkforceVariables).execute(); +ExampleConnector.instance.updateWorkforce(updateWorkforceVariables).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.listStaffAvailabilitiesByDay({ ... }) -.offset(...) +await ExampleConnector.instance.markConversationAsRead({ ... }) +.lastReadAt(...) .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 b946b31a..655788dd 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,17 +21,39 @@ ExampleConnector.instance.dataConnect.useDataConnectEmulator(host, port); You can also call queries and mutations by using the connector class. ## Queries -### listEmergencyContacts +### listConversations #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listEmergencyContacts().execute(); +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` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -46,8 +68,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listEmergencyContacts(); -listEmergencyContactsData data = result.data; +final result = await ExampleConnector.instance.listConversations(); +listConversationsData data = result.data; final ref = result.ref; ``` @@ -55,18 +77,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.listEmergencyContacts().ref(); +final ref = ExampleConnector.instance.listConversations().ref(); ref.execute(); ref.subscribe(...); ``` -### getEmergencyContactById +### getConversationById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getEmergencyContactById( +ExampleConnector.instance.getConversationById( id: id, ).execute(); ``` @@ -74,7 +96,7 @@ ExampleConnector.instance.getEmergencyContactById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -89,10 +111,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getEmergencyContactById( +final result = await ExampleConnector.instance.getConversationById( id: id, ); -getEmergencyContactByIdData data = result.data; +getConversationByIdData data = result.data; final ref = result.ref; ``` @@ -102,7 +124,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getEmergencyContactById( +final ref = ExampleConnector.instance.getConversationById( id: id, ).ref(); ref.execute(); @@ -111,19 +133,42 @@ ref.subscribe(...); ``` -### getEmergencyContactsByStaffId +### listConversationsByType #### Required Arguments ```dart -String staffId = ...; -ExampleConnector.instance.getEmergencyContactsByStaffId( - staffId: staffId, +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` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -138,10 +183,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getEmergencyContactsByStaffId( - staffId: staffId, +final result = await ExampleConnector.instance.listConversationsByType( + conversationType: conversationType, ); -getEmergencyContactsByStaffIdData data = result.data; +listConversationsByTypeData data = result.data; final ref = result.ref; ``` @@ -149,10 +194,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 staffId = ...; +ConversationType conversationType = ...; -final ref = ExampleConnector.instance.getEmergencyContactsByStaffId( - staffId: staffId, +final ref = ExampleConnector.instance.listConversationsByType( + conversationType: conversationType, ).ref(); ref.execute(); @@ -160,6 +205,813 @@ 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(...); +``` + + +### 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(...); +``` + + +### listFaqDatas +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listFaqDatas().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listFaqDatas(); +listFaqDatasData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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.listFaqDatas().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getFaqDataById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getFaqDataById( + 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.getFaqDataById( + id: id, +); +getFaqDataByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getFaqDataById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterFaqDatas +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterFaqDatas().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterFaqDatas, we created `filterFaqDatasBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterFaqDatasVariablesBuilder { + ... + + FilterFaqDatasVariablesBuilder category(String? t) { + _category.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterFaqDatas() +.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.filterFaqDatas(); +filterFaqDatasData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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.filterFaqDatas().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + ### getShiftRoleById #### Required Arguments ```dart @@ -933,317 +1785,39 @@ ref.subscribe(...); ``` -### listTaskComments +### listStaffAvailabilities #### 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(...); -``` - - -### 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(...); -``` - - -### listOrders -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listOrders().execute(); +ExampleConnector.instance.listStaffAvailabilities().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. +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 ListOrdersVariablesBuilder { +class ListStaffAvailabilitiesVariablesBuilder { ... - ListOrdersVariablesBuilder offset(int? t) { + ListStaffAvailabilitiesVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListOrdersVariablesBuilder limit(int? t) { + ListStaffAvailabilitiesVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listOrders() +ExampleConnector.instance.listStaffAvailabilities() .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 { @@ -1258,8 +1832,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listOrders(); -listOrdersData data = result.data; +final result = await ExampleConnector.instance.listStaffAvailabilities(); +listStaffAvailabilitiesData data = result.data; final ref = result.ref; ``` @@ -1267,578 +1841,40 @@ 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.listOrders().ref(); +final ref = ExampleConnector.instance.listStaffAvailabilities().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(...); -``` - - -### listOrdersByBusinessAndTeamHub -#### Required Arguments -```dart -String businessId = ...; -String teamHubId = ...; -ExampleConnector.instance.listOrdersByBusinessAndTeamHub( - businessId: businessId, - teamHubId: teamHubId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listOrdersByBusinessAndTeamHub, we created `listOrdersByBusinessAndTeamHubBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListOrdersByBusinessAndTeamHubVariablesBuilder { - ... - ListOrdersByBusinessAndTeamHubVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListOrdersByBusinessAndTeamHubVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listOrdersByBusinessAndTeamHub( - businessId: businessId, - teamHubId: teamHubId, -) -.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.listOrdersByBusinessAndTeamHub( - businessId: businessId, - teamHubId: teamHubId, -); -listOrdersByBusinessAndTeamHubData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 teamHubId = ...; - -final ref = ExampleConnector.instance.listOrdersByBusinessAndTeamHub( - businessId: businessId, - teamHubId: teamHubId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getStaffDocumentByKey +### listStaffAvailabilitiesByStaffId #### 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( +ExampleConnector.instance.listStaffAvailabilitiesByStaffId( 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. +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 ListStaffDocumentsByStaffIdVariablesBuilder { +class ListStaffAvailabilitiesByStaffIdVariablesBuilder { ... - ListStaffDocumentsByStaffIdVariablesBuilder offset(int? t) { + ListStaffAvailabilitiesByStaffIdVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListStaffDocumentsByStaffIdVariablesBuilder limit(int? t) { + ListStaffAvailabilitiesByStaffIdVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listStaffDocumentsByStaffId( +ExampleConnector.instance.listStaffAvailabilitiesByStaffId( staffId: staffId, ) .offset(offset) @@ -1847,7 +1883,7 @@ ExampleConnector.instance.listStaffDocumentsByStaffId( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -1862,10 +1898,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listStaffDocumentsByStaffId( +final result = await ExampleConnector.instance.listStaffAvailabilitiesByStaffId( staffId: staffId, ); -listStaffDocumentsByStaffIdData data = result.data; +listStaffAvailabilitiesByStaffIdData data = result.data; final ref = result.ref; ``` @@ -1875,7 +1911,7 @@ An example of how to use the `Ref` object is shown below: ```dart String staffId = ...; -final ref = ExampleConnector.instance.listStaffDocumentsByStaffId( +final ref = ExampleConnector.instance.listStaffAvailabilitiesByStaffId( staffId: staffId, ).ref(); ref.execute(); @@ -1884,3340 +1920,23 @@ 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(...); -``` - - -### 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(...); -``` - - -### listTeamHudDepartments -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listTeamHudDepartments().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listTeamHudDepartments, we created `listTeamHudDepartmentsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListTeamHudDepartmentsVariablesBuilder { - ... - - ListTeamHudDepartmentsVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListTeamHudDepartmentsVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listTeamHudDepartments() -.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.listTeamHudDepartments(); -listTeamHudDepartmentsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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.listTeamHudDepartments().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getTeamHudDepartmentById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getTeamHudDepartmentById( - 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.getTeamHudDepartmentById( - id: id, -); -getTeamHudDepartmentByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.getTeamHudDepartmentById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### listTeamHudDepartmentsByTeamHubId -#### Required Arguments -```dart -String teamHubId = ...; -ExampleConnector.instance.listTeamHudDepartmentsByTeamHubId( - teamHubId: teamHubId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listTeamHudDepartmentsByTeamHubId, we created `listTeamHudDepartmentsByTeamHubIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListTeamHudDepartmentsByTeamHubIdVariablesBuilder { - ... - ListTeamHudDepartmentsByTeamHubIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListTeamHudDepartmentsByTeamHubIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listTeamHudDepartmentsByTeamHubId( - teamHubId: teamHubId, -) -.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.listTeamHudDepartmentsByTeamHubId( - teamHubId: teamHubId, -); -listTeamHudDepartmentsByTeamHubIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String teamHubId = ...; - -final ref = ExampleConnector.instance.listTeamHudDepartmentsByTeamHubId( - teamHubId: teamHubId, -).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(...); -``` - - -### 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(...); -``` - - -### 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(...); -``` - - -### 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(...); -``` - - -### 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(...); -``` - - -### 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(...); -``` - - -### 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(...); -``` - - -### listUsers -#### 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(); -``` - -#### 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(...); -``` - - -### 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(...); -``` - - -### 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(...); -``` - - -### 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(...); -``` - - -### 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 +### getStaffAvailabilityByKey #### Required Arguments ```dart String staffId = ...; -ExampleConnector.instance.getApplicationsByStaffId( +DayOfWeek day = ...; +AvailabilitySlot slot = ...; +ExampleConnector.instance.getStaffAvailabilityByKey( staffId: staffId, + day: day, + slot: slot, ).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; - } - GetApplicationsByStaffIdVariablesBuilder dayStart(Timestamp? t) { - _dayStart.value = t; - return this; - } - GetApplicationsByStaffIdVariablesBuilder dayEnd(Timestamp? t) { - _dayEnd.value = t; - return this; - } - ... -} -ExampleConnector.instance.getApplicationsByStaffId( - staffId: staffId, -) -.offset(offset) -.limit(limit) -.dayStart(dayStart) -.dayEnd(dayEnd) -.execute(); -``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -5232,10 +1951,227 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getApplicationsByStaffId( +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(...); +``` + + +### 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, ); -getApplicationsByStaffIdData data = result.data; +getEmergencyContactsByStaffIdData data = result.data; final ref = result.ref; ``` @@ -5245,7 +2181,7 @@ An example of how to use the `Ref` object is shown below: ```dart String staffId = ...; -final ref = ExampleConnector.instance.getApplicationsByStaffId( +final ref = ExampleConnector.instance.getEmergencyContactsByStaffId( staffId: staffId, ).ref(); ref.execute(); @@ -5254,5752 +2190,6 @@ ref.subscribe(...); ``` -### vaidateDayStaffApplication -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.vaidateDayStaffApplication( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For vaidateDayStaffApplication, we created `vaidateDayStaffApplicationBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class VaidateDayStaffApplicationVariablesBuilder { - ... - VaidateDayStaffApplicationVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - VaidateDayStaffApplicationVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - VaidateDayStaffApplicationVariablesBuilder dayStart(Timestamp? t) { - _dayStart.value = t; - return this; - } - VaidateDayStaffApplicationVariablesBuilder dayEnd(Timestamp? t) { - _dayEnd.value = t; - return this; - } - - ... -} -ExampleConnector.instance.vaidateDayStaffApplication( - staffId: staffId, -) -.offset(offset) -.limit(limit) -.dayStart(dayStart) -.dayEnd(dayEnd) -.execute(); -``` - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.vaidateDayStaffApplication( - staffId: staffId, -); -vaidateDayStaffApplicationData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.vaidateDayStaffApplication( - staffId: staffId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getApplicationByStaffShiftAndRole -#### Required Arguments -```dart -String staffId = ...; -String shiftId = ...; -String roleId = ...; -ExampleConnector.instance.getApplicationByStaffShiftAndRole( - staffId: staffId, - shiftId: shiftId, - roleId: roleId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For getApplicationByStaffShiftAndRole, we created `getApplicationByStaffShiftAndRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class GetApplicationByStaffShiftAndRoleVariablesBuilder { - ... - GetApplicationByStaffShiftAndRoleVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - GetApplicationByStaffShiftAndRoleVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.getApplicationByStaffShiftAndRole( - staffId: staffId, - 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.getApplicationByStaffShiftAndRole( - staffId: staffId, - shiftId: shiftId, - roleId: roleId, -); -getApplicationByStaffShiftAndRoleData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 shiftId = ...; -String roleId = ...; - -final ref = ExampleConnector.instance.getApplicationByStaffShiftAndRole( - staffId: staffId, - shiftId: shiftId, - roleId: roleId, -).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(...); -``` - - -### listCompletedApplicationsByStaffId -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.listCompletedApplicationsByStaffId( - staffId: staffId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For listCompletedApplicationsByStaffId, we created `listCompletedApplicationsByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class ListCompletedApplicationsByStaffIdVariablesBuilder { - ... - ListCompletedApplicationsByStaffIdVariablesBuilder offset(int? t) { - _offset.value = t; - return this; - } - ListCompletedApplicationsByStaffIdVariablesBuilder limit(int? t) { - _limit.value = t; - return this; - } - - ... -} -ExampleConnector.instance.listCompletedApplicationsByStaffId( - 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.listCompletedApplicationsByStaffId( - staffId: staffId, -); -listCompletedApplicationsByStaffIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.listCompletedApplicationsByStaffId( - staffId: staffId, -).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(...); -``` - - -### listFaqDatas -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listFaqDatas().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listFaqDatas(); -listFaqDatasData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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.listFaqDatas().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getFaqDataById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getFaqDataById( - 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.getFaqDataById( - id: id, -); -getFaqDataByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.getFaqDataById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterFaqDatas -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterFaqDatas().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterFaqDatas, we created `filterFaqDatasBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterFaqDatasVariablesBuilder { - ... - - FilterFaqDatasVariablesBuilder category(String? t) { - _category.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterFaqDatas() -.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.filterFaqDatas(); -filterFaqDatasData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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.filterFaqDatas().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) { - _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(...); -``` - - -### 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(...); -``` - - -### listBusinesses -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listBusinesses().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listBusinesses(); -listBusinessesData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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.listBusinesses().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getBusinessesByUserId -#### Required Arguments -```dart -String userId = ...; -ExampleConnector.instance.getBusinessesByUserId( - 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.getBusinessesByUserId( - userId: userId, -); -getBusinessesByUserIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.getBusinessesByUserId( - userId: userId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getBusinessById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getBusinessById( - 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.getBusinessById( - id: id, -); -getBusinessByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.getBusinessById( - id: id, -).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(...); -``` - - -### 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(...); -``` - - -### 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(...); -``` - - -### 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(...); -``` - - -### 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(...); -``` - - -### 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(...); -``` - - -### listAccounts -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.listAccounts().execute(); -``` - - - -#### Return Type -`execute()` returns a `QueryResult` -```dart -/// Result of an Operation Request (query/mutation). -class OperationResult { - OperationResult(this.dataConnect, this.data, this.ref); - Data data; - OperationRef ref; - FirebaseDataConnect dataConnect; -} - -/// Result of a query request. Created to hold extra variables in the future. -class QueryResult extends OperationResult { - QueryResult(super.dataConnect, super.data, super.ref); -} - -final result = await ExampleConnector.instance.listAccounts(); -listAccountsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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.listAccounts().ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getAccountById -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.getAccountById( - 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.getAccountById( - id: id, -); -getAccountByIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.getAccountById( - id: id, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### getAccountsByOwnerId -#### Required Arguments -```dart -String ownerId = ...; -ExampleConnector.instance.getAccountsByOwnerId( - 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.getAccountsByOwnerId( - ownerId: ownerId, -); -getAccountsByOwnerIdData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.getAccountsByOwnerId( - ownerId: ownerId, -).ref(); -ref.execute(); - -ref.subscribe(...); -``` - - -### filterAccounts -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.filterAccounts().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For filterAccounts, we created `filterAccountsBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class FilterAccountsVariablesBuilder { - ... - - FilterAccountsVariablesBuilder bank(String? t) { - _bank.value = t; - return this; - } - FilterAccountsVariablesBuilder type(AccountType? t) { - _type.value = t; - return this; - } - FilterAccountsVariablesBuilder isPrimary(bool? t) { - _isPrimary.value = t; - return this; - } - FilterAccountsVariablesBuilder ownerId(String? t) { - _ownerId.value = t; - return this; - } - - ... -} -ExampleConnector.instance.filterAccounts() -.bank(bank) -.type(type) -.isPrimary(isPrimary) -.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.filterAccounts(); -filterAccountsData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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.filterAccounts().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(...); -``` - - -### 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(...); -``` - - -### 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(...); -``` - - -### 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(...); -``` - - -### 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(...); -``` - - -### 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(...); -``` - - -### 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(...); -``` - - ### listShiftsForCoverage #### Required Arguments ```dart @@ -12046,6 +3236,4467 @@ 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(...); +``` + + +### 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(...); +``` + + +### 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; + } + GetApplicationsByStaffIdVariablesBuilder dayStart(Timestamp? t) { + _dayStart.value = t; + return this; + } + GetApplicationsByStaffIdVariablesBuilder dayEnd(Timestamp? t) { + _dayEnd.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getApplicationsByStaffId( + staffId: staffId, +) +.offset(offset) +.limit(limit) +.dayStart(dayStart) +.dayEnd(dayEnd) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. 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(...); +``` + + +### vaidateDayStaffApplication +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.vaidateDayStaffApplication( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For vaidateDayStaffApplication, we created `vaidateDayStaffApplicationBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class VaidateDayStaffApplicationVariablesBuilder { + ... + VaidateDayStaffApplicationVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + VaidateDayStaffApplicationVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + VaidateDayStaffApplicationVariablesBuilder dayStart(Timestamp? t) { + _dayStart.value = t; + return this; + } + VaidateDayStaffApplicationVariablesBuilder dayEnd(Timestamp? t) { + _dayEnd.value = t; + return this; + } + + ... +} +ExampleConnector.instance.vaidateDayStaffApplication( + staffId: staffId, +) +.offset(offset) +.limit(limit) +.dayStart(dayStart) +.dayEnd(dayEnd) +.execute(); +``` + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.vaidateDayStaffApplication( + staffId: staffId, +); +vaidateDayStaffApplicationData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.vaidateDayStaffApplication( + staffId: staffId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getApplicationByStaffShiftAndRole +#### Required Arguments +```dart +String staffId = ...; +String shiftId = ...; +String roleId = ...; +ExampleConnector.instance.getApplicationByStaffShiftAndRole( + staffId: staffId, + shiftId: shiftId, + roleId: roleId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For getApplicationByStaffShiftAndRole, we created `getApplicationByStaffShiftAndRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class GetApplicationByStaffShiftAndRoleVariablesBuilder { + ... + GetApplicationByStaffShiftAndRoleVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + GetApplicationByStaffShiftAndRoleVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.getApplicationByStaffShiftAndRole( + staffId: staffId, + 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.getApplicationByStaffShiftAndRole( + staffId: staffId, + shiftId: shiftId, + roleId: roleId, +); +getApplicationByStaffShiftAndRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 shiftId = ...; +String roleId = ...; + +final ref = ExampleConnector.instance.getApplicationByStaffShiftAndRole( + staffId: staffId, + shiftId: shiftId, + roleId: roleId, +).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(...); +``` + + +### listCompletedApplicationsByStaffId +#### Required Arguments +```dart +String staffId = ...; +ExampleConnector.instance.listCompletedApplicationsByStaffId( + staffId: staffId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listCompletedApplicationsByStaffId, we created `listCompletedApplicationsByStaffIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListCompletedApplicationsByStaffIdVariablesBuilder { + ... + ListCompletedApplicationsByStaffIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListCompletedApplicationsByStaffIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listCompletedApplicationsByStaffId( + 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.listCompletedApplicationsByStaffId( + staffId: staffId, +); +listCompletedApplicationsByStaffIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.listCompletedApplicationsByStaffId( + staffId: staffId, +).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(...); +``` + + +### 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(...); +``` + + +### listOrdersByBusinessAndTeamHub +#### Required Arguments +```dart +String businessId = ...; +String teamHubId = ...; +ExampleConnector.instance.listOrdersByBusinessAndTeamHub( + businessId: businessId, + teamHubId: teamHubId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listOrdersByBusinessAndTeamHub, we created `listOrdersByBusinessAndTeamHubBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListOrdersByBusinessAndTeamHubVariablesBuilder { + ... + ListOrdersByBusinessAndTeamHubVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListOrdersByBusinessAndTeamHubVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listOrdersByBusinessAndTeamHub( + businessId: businessId, + teamHubId: teamHubId, +) +.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.listOrdersByBusinessAndTeamHub( + businessId: businessId, + teamHubId: teamHubId, +); +listOrdersByBusinessAndTeamHubData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 teamHubId = ...; + +final ref = ExampleConnector.instance.listOrdersByBusinessAndTeamHub( + businessId: businessId, + teamHubId: teamHubId, +).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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### listUsers +#### 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(); +``` + +#### 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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + ### listAssignments #### Required Arguments ```dart @@ -12463,658 +8114,6 @@ 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(...); -``` - - -### 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(...); -``` - - -### 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(...); -``` - - ### listBenefitsData #### Required Arguments ```dart @@ -13448,17 +8447,17 @@ ref.subscribe(...); ``` -### listRoleCategories +### listHubs #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listRoleCategories().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 { @@ -13473,8 +8472,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listRoleCategories(); -listRoleCategoriesData data = result.data; +final result = await ExampleConnector.instance.listHubs(); +listHubsData data = result.data; final ref = result.ref; ``` @@ -13482,18 +8481,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.listRoleCategories().ref(); +final ref = ExampleConnector.instance.listHubs().ref(); ref.execute(); ref.subscribe(...); ``` -### getRoleCategoryById +### getHubById #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.getRoleCategoryById( +ExampleConnector.instance.getHubById( id: id, ).execute(); ``` @@ -13501,7 +8500,7 @@ ExampleConnector.instance.getRoleCategoryById( #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13516,10 +8515,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getRoleCategoryById( +final result = await ExampleConnector.instance.getHubById( id: id, ); -getRoleCategoryByIdData data = result.data; +getHubByIdData data = result.data; final ref = result.ref; ``` @@ -13529,7 +8528,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.getRoleCategoryById( +final ref = ExampleConnector.instance.getHubById( id: id, ).ref(); ref.execute(); @@ -13538,19 +8537,19 @@ ref.subscribe(...); ``` -### getRoleCategoriesByCategory +### getHubsByOwnerId #### Required Arguments ```dart -RoleCategoryType category = ...; -ExampleConnector.instance.getRoleCategoriesByCategory( - category: category, +String ownerId = ...; +ExampleConnector.instance.getHubsByOwnerId( + ownerId: ownerId, ).execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13565,10 +8564,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.getRoleCategoriesByCategory( - category: category, +final result = await ExampleConnector.instance.getHubsByOwnerId( + ownerId: ownerId, ); -getRoleCategoriesByCategoryData data = result.data; +getHubsByOwnerIdData data = result.data; final ref = result.ref; ``` @@ -13576,10 +8575,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 -RoleCategoryType category = ...; +String ownerId = ...; -final ref = ExampleConnector.instance.getRoleCategoriesByCategory( - category: category, +final ref = ExampleConnector.instance.getHubsByOwnerId( + ownerId: ownerId, ).ref(); ref.execute(); @@ -13587,39 +8586,44 @@ ref.subscribe(...); ``` -### listStaffAvailabilities +### filterHubs #### Required Arguments ```dart // No required arguments -ExampleConnector.instance.listStaffAvailabilities().execute(); +ExampleConnector.instance.filterHubs().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. +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 ListStaffAvailabilitiesVariablesBuilder { +class FilterHubsVariablesBuilder { ... - ListStaffAvailabilitiesVariablesBuilder offset(int? t) { - _offset.value = t; + FilterHubsVariablesBuilder ownerId(String? t) { + _ownerId.value = t; return this; } - ListStaffAvailabilitiesVariablesBuilder limit(int? t) { - _limit.value = t; + FilterHubsVariablesBuilder name(String? t) { + _name.value = t; + return this; + } + FilterHubsVariablesBuilder nfcTagId(String? t) { + _nfcTagId.value = t; return this; } ... } -ExampleConnector.instance.listStaffAvailabilities() -.offset(offset) -.limit(limit) +ExampleConnector.instance.filterHubs() +.ownerId(ownerId) +.name(name) +.nfcTagId(nfcTagId) .execute(); ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13634,8 +8638,8 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listStaffAvailabilities(); -listStaffAvailabilitiesData data = result.data; +final result = await ExampleConnector.instance.filterHubs(); +filterHubsData data = result.data; final ref = result.ref; ``` @@ -13643,49 +8647,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.listStaffAvailabilities().ref(); +final ref = ExampleConnector.instance.filterHubs().ref(); ref.execute(); ref.subscribe(...); ``` -### listStaffAvailabilitiesByStaffId +### getWorkforceById #### Required Arguments ```dart -String staffId = ...; -ExampleConnector.instance.listStaffAvailabilitiesByStaffId( - staffId: staffId, +String id = ...; +ExampleConnector.instance.getWorkforceById( + id: id, ).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` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13700,10 +8681,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listStaffAvailabilitiesByStaffId( - staffId: staffId, +final result = await ExampleConnector.instance.getWorkforceById( + id: id, ); -listStaffAvailabilitiesByStaffIdData data = result.data; +getWorkforceByIdData data = result.data; final ref = result.ref; ``` @@ -13711,9 +8692,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 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.listStaffAvailabilitiesByStaffId( +final ref = ExampleConnector.instance.getWorkforceByVendorAndStaff( + vendorId: vendorId, staffId: staffId, ).ref(); ref.execute(); @@ -13722,93 +8757,34 @@ ref.subscribe(...); ``` -### getStaffAvailabilityByKey +### listWorkforceByVendorId #### 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, +String vendorId = ...; +ExampleConnector.instance.listWorkforceByVendorId( + vendorId: vendorId, ).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. +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 ListStaffAvailabilitiesByDayVariablesBuilder { +class ListWorkforceByVendorIdVariablesBuilder { ... - ListStaffAvailabilitiesByDayVariablesBuilder offset(int? t) { + ListWorkforceByVendorIdVariablesBuilder offset(int? t) { _offset.value = t; return this; } - ListStaffAvailabilitiesByDayVariablesBuilder limit(int? t) { + ListWorkforceByVendorIdVariablesBuilder limit(int? t) { _limit.value = t; return this; } ... } -ExampleConnector.instance.listStaffAvailabilitiesByDay( - day: day, +ExampleConnector.instance.listWorkforceByVendorId( + vendorId: vendorId, ) .offset(offset) .limit(limit) @@ -13816,7 +8792,7 @@ ExampleConnector.instance.listStaffAvailabilitiesByDay( ``` #### Return Type -`execute()` returns a `QueryResult` +`execute()` returns a `QueryResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -13831,10 +8807,10 @@ class QueryResult extends OperationResult { QueryResult(super.dataConnect, super.data, super.ref); } -final result = await ExampleConnector.instance.listStaffAvailabilitiesByDay( - day: day, +final result = await ExampleConnector.instance.listWorkforceByVendorId( + vendorId: vendorId, ); -listStaffAvailabilitiesByDayData data = result.data; +listWorkforceByVendorIdData data = result.data; final ref = result.ref; ``` @@ -13842,10 +8818,5034 @@ 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 -DayOfWeek day = ...; +String vendorId = ...; -final ref = ExampleConnector.instance.listStaffAvailabilitiesByDay( - day: day, +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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### listTeamHudDepartments +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listTeamHudDepartments().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listTeamHudDepartments, we created `listTeamHudDepartmentsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListTeamHudDepartmentsVariablesBuilder { + ... + + ListTeamHudDepartmentsVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListTeamHudDepartmentsVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listTeamHudDepartments() +.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.listTeamHudDepartments(); +listTeamHudDepartmentsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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.listTeamHudDepartments().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getTeamHudDepartmentById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getTeamHudDepartmentById( + 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.getTeamHudDepartmentById( + id: id, +); +getTeamHudDepartmentByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getTeamHudDepartmentById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### listTeamHudDepartmentsByTeamHubId +#### Required Arguments +```dart +String teamHubId = ...; +ExampleConnector.instance.listTeamHudDepartmentsByTeamHubId( + teamHubId: teamHubId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For listTeamHudDepartmentsByTeamHubId, we created `listTeamHudDepartmentsByTeamHubIdBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class ListTeamHudDepartmentsByTeamHubIdVariablesBuilder { + ... + ListTeamHudDepartmentsByTeamHubIdVariablesBuilder offset(int? t) { + _offset.value = t; + return this; + } + ListTeamHudDepartmentsByTeamHubIdVariablesBuilder limit(int? t) { + _limit.value = t; + return this; + } + + ... +} +ExampleConnector.instance.listTeamHudDepartmentsByTeamHubId( + teamHubId: teamHubId, +) +.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.listTeamHudDepartmentsByTeamHubId( + teamHubId: teamHubId, +); +listTeamHudDepartmentsByTeamHubIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String teamHubId = ...; + +final ref = ExampleConnector.instance.listTeamHudDepartmentsByTeamHubId( + teamHubId: teamHubId, +).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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### listAccounts +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listAccounts().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listAccounts(); +listAccountsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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.listAccounts().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getAccountById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getAccountById( + 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.getAccountById( + id: id, +); +getAccountByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getAccountById( + id: id, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getAccountsByOwnerId +#### Required Arguments +```dart +String ownerId = ...; +ExampleConnector.instance.getAccountsByOwnerId( + 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.getAccountsByOwnerId( + ownerId: ownerId, +); +getAccountsByOwnerIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getAccountsByOwnerId( + ownerId: ownerId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### filterAccounts +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.filterAccounts().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For filterAccounts, we created `filterAccountsBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class FilterAccountsVariablesBuilder { + ... + + FilterAccountsVariablesBuilder bank(String? t) { + _bank.value = t; + return this; + } + FilterAccountsVariablesBuilder type(AccountType? t) { + _type.value = t; + return this; + } + FilterAccountsVariablesBuilder isPrimary(bool? t) { + _isPrimary.value = t; + return this; + } + FilterAccountsVariablesBuilder ownerId(String? t) { + _ownerId.value = t; + return this; + } + + ... +} +ExampleConnector.instance.filterAccounts() +.bank(bank) +.type(type) +.isPrimary(isPrimary) +.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.filterAccounts(); +filterAccountsData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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.filterAccounts().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) { + _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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### listBusinesses +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.listBusinesses().execute(); +``` + + + +#### Return Type +`execute()` returns a `QueryResult` +```dart +/// Result of an Operation Request (query/mutation). +class OperationResult { + OperationResult(this.dataConnect, this.data, this.ref); + Data data; + OperationRef ref; + FirebaseDataConnect dataConnect; +} + +/// Result of a query request. Created to hold extra variables in the future. +class QueryResult extends OperationResult { + QueryResult(super.dataConnect, super.data, super.ref); +} + +final result = await ExampleConnector.instance.listBusinesses(); +listBusinessesData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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.listBusinesses().ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getBusinessesByUserId +#### Required Arguments +```dart +String userId = ...; +ExampleConnector.instance.getBusinessesByUserId( + 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.getBusinessesByUserId( + userId: userId, +); +getBusinessesByUserIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getBusinessesByUserId( + userId: userId, +).ref(); +ref.execute(); + +ref.subscribe(...); +``` + + +### getBusinessById +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.getBusinessById( + 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.getBusinessById( + id: id, +); +getBusinessByIdData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.getBusinessById( + id: id, +).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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### 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(...); +``` + + +### 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(); @@ -13854,1215 +13854,6 @@ ref.subscribe(...); ## Mutations -### createTaskComment -#### Required Arguments -```dart -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 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 CreateTaskCommentVariablesBuilder { - ... - CreateTaskCommentVariablesBuilder isSystem(bool? t) { - _isSystem.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createTaskComment( - taskId: taskId, - teamMemberId: teamMemberId, - comment: comment, -) -.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.createTaskComment( - taskId: taskId, - teamMemberId: teamMemberId, - comment: comment, -); -createTaskCommentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 = ...; - -final ref = ExampleConnector.instance.createTaskComment( - taskId: taskId, - teamMemberId: teamMemberId, - comment: comment, -).ref(); -ref.execute(); -``` - - -### updateTaskComment -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateTaskComment( - 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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - UpdateTaskCommentVariablesBuilder comment(String? t) { - _comment.value = t; - return this; - } - UpdateTaskCommentVariablesBuilder isSystem(bool? t) { - _isSystem.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateTaskComment( - id: id, -) -.comment(comment) -.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.updateTaskComment( - id: id, -); -updateTaskCommentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.updateTaskComment( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteTaskComment -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteTaskComment( - 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.deleteTaskComment( - id: id, -); -deleteTaskCommentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.deleteTaskComment( - 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) { - _email.value = t; - return this; - } - CreateTaxFormVariablesBuilder phone(String? t) { - _phone.value = t; - return this; - } - 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.createTaxForm( - formType: formType, - firstName: firstName, - lastName: lastName, - socialSN: socialSN, - address: address, - status: status, - staffId: staffId, -) -.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) -.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.createTaxForm( - formType: formType, - firstName: firstName, - lastName: lastName, - socialSN: socialSN, - address: address, - status: status, - staffId: staffId, -); -createTaxFormData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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 = ...; - -final ref = ExampleConnector.instance.createTaxForm( - formType: formType, - firstName: firstName, - lastName: lastName, - socialSN: socialSN, - address: address, - status: status, - staffId: staffId, -).ref(); -ref.execute(); -``` - - -### updateTaxForm -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateTaxForm( - 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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - 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(); -``` - - -### createUserConversation -#### Required Arguments -```dart -String conversationId = ...; -String userId = ...; -ExampleConnector.instance.createUserConversation( - conversationId: conversationId, - userId: userId, -).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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - CreateUserConversationVariablesBuilder unreadCount(int? t) { - _unreadCount.value = t; - return this; - } - CreateUserConversationVariablesBuilder lastReadAt(Timestamp? t) { - _lastReadAt.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createUserConversation( - 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.createUserConversation( - conversationId: conversationId, - userId: userId, -); -createUserConversationData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.createUserConversation( - conversationId: conversationId, - userId: userId, -).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(); -``` - - -### createTask -#### Required Arguments -```dart -String taskName = ...; -TaskPriority priority = ...; -TaskStatus status = ...; -String ownerId = ...; -ExampleConnector.instance.createTask( - taskName: taskName, - priority: priority, - 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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - CreateTaskVariablesBuilder description(String? t) { - _description.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; - 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(); -``` - - ### createTeamHub #### Required Arguments ```dart @@ -15352,6 +14143,190 @@ ref.execute(); ``` +### createWorkforce +#### Required Arguments +```dart +String vendorId = ...; +String staffId = ...; +String workforceNumber = ...; +ExampleConnector.instance.createWorkforce( + vendorId: vendorId, + staffId: staffId, + 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(); +``` + + ### createOrder #### Required Arguments ```dart @@ -15693,340 +14668,503 @@ ref.execute(); ``` -### createTeam +### createRecentPayment #### Required Arguments ```dart -String teamName = ...; -String ownerId = ...; -String ownerName = ...; -String ownerRole = ...; -ExampleConnector.instance.createTeam( - teamName: teamName, - ownerId: ownerId, - ownerName: ownerName, - ownerRole: ownerRole, +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 createTeam, we created `createTeamBuilder`. For queries and mutations with optional parameters, we return a builder class. +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 CreateTeamVariablesBuilder { +class CreateRecentPaymentVariablesBuilder { ... - CreateTeamVariablesBuilder email(String? t) { + + 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(); +``` + + +### createTeamHudDepartment +#### Required Arguments +```dart +String name = ...; +String teamHubId = ...; +ExampleConnector.instance.createTeamHudDepartment( + name: name, + teamHubId: teamHubId, +).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. +The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { + ... + CreateTeamHudDepartmentVariablesBuilder costCenter(String? t) { + _costCenter.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createTeamHudDepartment( + name: name, + teamHubId: teamHubId, +) +.costCenter(costCenter) +.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.createTeamHudDepartment( + name: name, + teamHubId: teamHubId, +); +createTeamHudDepartmentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 teamHubId = ...; + +final ref = ExampleConnector.instance.createTeamHudDepartment( + name: name, + teamHubId: teamHubId, +).ref(); +ref.execute(); +``` + + +### updateTeamHudDepartment +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateTeamHudDepartment( + 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. +The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { + ... + UpdateTeamHudDepartmentVariablesBuilder name(String? t) { + _name.value = t; + return this; + } + UpdateTeamHudDepartmentVariablesBuilder costCenter(String? t) { + _costCenter.value = t; + return this; + } + UpdateTeamHudDepartmentVariablesBuilder teamHubId(String? t) { + _teamHubId.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateTeamHudDepartment( + id: id, +) +.name(name) +.costCenter(costCenter) +.teamHubId(teamHubId) +.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.updateTeamHudDepartment( + id: id, +); +updateTeamHudDepartmentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.updateTeamHudDepartment( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteTeamHudDepartment +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteTeamHudDepartment( + 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.deleteTeamHudDepartment( + id: id, +); +deleteTeamHudDepartmentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.deleteTeamHudDepartment( + id: id, +).ref(); +ref.execute(); +``` + + +### createVendor +#### Required Arguments +```dart +String userId = ...; +String companyName = ...; +ExampleConnector.instance.createVendor( + userId: userId, + companyName: companyName, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createVendor, we created `createVendorBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateVendorVariablesBuilder { + ... + CreateVendorVariablesBuilder email(String? t) { _email.value = t; return this; } - CreateTeamVariablesBuilder companyLogo(String? t) { - _companyLogo.value = t; + CreateVendorVariablesBuilder phone(String? t) { + _phone.value = t; return this; } - CreateTeamVariablesBuilder totalMembers(int? t) { - _totalMembers.value = t; + CreateVendorVariablesBuilder photoUrl(String? t) { + _photoUrl.value = t; return this; } - CreateTeamVariablesBuilder activeMembers(int? t) { - _activeMembers.value = t; + CreateVendorVariablesBuilder address(String? t) { + _address.value = t; return this; } - CreateTeamVariablesBuilder totalHubs(int? t) { - _totalHubs.value = t; + CreateVendorVariablesBuilder billingAddress(String? t) { + _billingAddress.value = t; return this; } - CreateTeamVariablesBuilder departments(AnyValue? t) { - _departments.value = t; + CreateVendorVariablesBuilder timezone(String? t) { + _timezone.value = t; return this; } - CreateTeamVariablesBuilder favoriteStaffCount(int? t) { - _favoriteStaffCount.value = t; + CreateVendorVariablesBuilder legalName(String? t) { + _legalName.value = t; return this; } - CreateTeamVariablesBuilder blockedStaffCount(int? t) { - _blockedStaffCount.value = t; + CreateVendorVariablesBuilder doingBusinessAs(String? t) { + _doingBusinessAs.value = t; return this; } - CreateTeamVariablesBuilder favoriteStaff(AnyValue? t) { - _favoriteStaff.value = t; + CreateVendorVariablesBuilder region(String? t) { + _region.value = t; return this; } - CreateTeamVariablesBuilder blockedStaff(AnyValue? t) { - _blockedStaff.value = t; + CreateVendorVariablesBuilder state(String? t) { + _state.value = t; return this; } - - ... -} -ExampleConnector.instance.createTeam( - teamName: teamName, - ownerId: ownerId, - ownerName: ownerName, - ownerRole: ownerRole, -) -.email(email) -.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` -```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.createTeam( - teamName: teamName, - ownerId: ownerId, - ownerName: ownerName, - ownerRole: ownerRole, -); -createTeamData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 = ...; - -final ref = ExampleConnector.instance.createTeam( - teamName: teamName, - ownerId: ownerId, - ownerName: ownerName, - ownerRole: ownerRole, -).ref(); -ref.execute(); -``` - - -### updateTeam -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateTeam( - 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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - UpdateTeamVariablesBuilder teamName(String? t) { - _teamName.value = t; + CreateVendorVariablesBuilder city(String? t) { + _city.value = t; return this; } - UpdateTeamVariablesBuilder ownerName(String? t) { - _ownerName.value = t; + CreateVendorVariablesBuilder serviceSpecialty(String? t) { + _serviceSpecialty.value = t; return this; } - UpdateTeamVariablesBuilder ownerRole(String? t) { - _ownerRole.value = t; + CreateVendorVariablesBuilder approvalStatus(ApprovalStatus? t) { + _approvalStatus.value = t; return this; } - UpdateTeamVariablesBuilder companyLogo(String? t) { - _companyLogo.value = t; - return this; - } - UpdateTeamVariablesBuilder totalMembers(int? t) { - _totalMembers.value = t; - return this; - } - UpdateTeamVariablesBuilder activeMembers(int? t) { - _activeMembers.value = t; - return this; - } - UpdateTeamVariablesBuilder totalHubs(int? t) { - _totalHubs.value = t; - return this; - } - UpdateTeamVariablesBuilder 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( - id: id, -) -.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` -```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.updateTeam( - id: id, -); -updateTeamData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.updateTeam( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteTeam -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteTeam( - 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.deleteTeam( - id: id, -); -deleteTeamData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.deleteTeam( - id: id, -).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) { + CreateVendorVariablesBuilder isActive(bool? t) { _isActive.value = t; return this; } - CreateVendorBenefitPlanVariablesBuilder createdBy(String? t) { - _createdBy.value = t; + CreateVendorVariablesBuilder markup(double? t) { + _markup.value = t; + return this; + } + CreateVendorVariablesBuilder fee(double? t) { + _fee.value = t; + return this; + } + CreateVendorVariablesBuilder csat(double? t) { + _csat.value = t; + return this; + } + CreateVendorVariablesBuilder tier(VendorTier? t) { + _tier.value = t; return this; } ... } -ExampleConnector.instance.createVendorBenefitPlan( - vendorId: vendorId, - title: title, +ExampleConnector.instance.createVendor( + userId: userId, + companyName: companyName, ) -.description(description) -.requestLabel(requestLabel) -.total(total) +.email(email) +.phone(phone) +.photoUrl(photoUrl) +.address(address) +.billingAddress(billingAddress) +.timezone(timezone) +.legalName(legalName) +.doingBusinessAs(doingBusinessAs) +.region(region) +.state(state) +.city(city) +.serviceSpecialty(serviceSpecialty) +.approvalStatus(approvalStatus) .isActive(isActive) -.createdBy(createdBy) +.markup(markup) +.fee(fee) +.csat(csat) +.tier(tier) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -16036,11 +15174,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createVendorBenefitPlan( - vendorId: vendorId, - title: title, +final result = await ExampleConnector.instance.createVendor( + userId: userId, + companyName: companyName, ); -createVendorBenefitPlanData data = result.data; +createVendorData data = result.data; final ref = result.ref; ``` @@ -16048,78 +15186,399 @@ 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 title = ...; +String userId = ...; +String companyName = ...; -final ref = ExampleConnector.instance.createVendorBenefitPlan( - vendorId: vendorId, - title: title, +final ref = ExampleConnector.instance.createVendor( + userId: userId, + companyName: companyName, ).ref(); ref.execute(); ``` -### updateVendorBenefitPlan +### updateVendor #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateVendorBenefitPlan( +ExampleConnector.instance.updateVendor( 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. +We return a builder for each query. For updateVendor, we created `updateVendorBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { +class UpdateVendorVariablesBuilder { ... - UpdateVendorBenefitPlanVariablesBuilder vendorId(String? t) { - _vendorId.value = t; + UpdateVendorVariablesBuilder companyName(String? t) { + _companyName.value = t; return this; } - UpdateVendorBenefitPlanVariablesBuilder title(String? t) { + UpdateVendorVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + UpdateVendorVariablesBuilder phone(String? t) { + _phone.value = t; + return this; + } + UpdateVendorVariablesBuilder photoUrl(String? t) { + _photoUrl.value = t; + return this; + } + UpdateVendorVariablesBuilder address(String? t) { + _address.value = t; + return this; + } + UpdateVendorVariablesBuilder billingAddress(String? t) { + _billingAddress.value = t; + return this; + } + UpdateVendorVariablesBuilder timezone(String? t) { + _timezone.value = t; + return this; + } + UpdateVendorVariablesBuilder legalName(String? t) { + _legalName.value = t; + return this; + } + UpdateVendorVariablesBuilder doingBusinessAs(String? t) { + _doingBusinessAs.value = t; + return this; + } + UpdateVendorVariablesBuilder region(String? t) { + _region.value = t; + return this; + } + UpdateVendorVariablesBuilder state(String? t) { + _state.value = t; + return this; + } + UpdateVendorVariablesBuilder city(String? t) { + _city.value = t; + return this; + } + UpdateVendorVariablesBuilder serviceSpecialty(String? t) { + _serviceSpecialty.value = t; + return this; + } + UpdateVendorVariablesBuilder approvalStatus(ApprovalStatus? t) { + _approvalStatus.value = t; + return this; + } + UpdateVendorVariablesBuilder isActive(bool? t) { + _isActive.value = t; + return this; + } + UpdateVendorVariablesBuilder markup(double? t) { + _markup.value = t; + return this; + } + UpdateVendorVariablesBuilder fee(double? t) { + _fee.value = t; + return this; + } + UpdateVendorVariablesBuilder csat(double? t) { + _csat.value = t; + return this; + } + UpdateVendorVariablesBuilder tier(VendorTier? t) { + _tier.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateVendor( + id: id, +) +.companyName(companyName) +.email(email) +.phone(phone) +.photoUrl(photoUrl) +.address(address) +.billingAddress(billingAddress) +.timezone(timezone) +.legalName(legalName) +.doingBusinessAs(doingBusinessAs) +.region(region) +.state(state) +.city(city) +.serviceSpecialty(serviceSpecialty) +.approvalStatus(approvalStatus) +.isActive(isActive) +.markup(markup) +.fee(fee) +.csat(csat) +.tier(tier) +.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.updateVendor( + id: id, +); +updateVendorData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.updateVendor( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteVendor +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteVendor( + 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.deleteVendor( + id: id, +); +deleteVendorData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.deleteVendor( + 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; } - UpdateVendorBenefitPlanVariablesBuilder description(String? t) { + UpdateActivityLogVariablesBuilder description(String? t) { _description.value = t; return this; } - UpdateVendorBenefitPlanVariablesBuilder requestLabel(String? t) { - _requestLabel.value = t; + UpdateActivityLogVariablesBuilder isRead(bool? t) { + _isRead.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; + UpdateActivityLogVariablesBuilder activityType(ActivityType? t) { + _activityType.value = t; return this; } ... } -ExampleConnector.instance.updateVendorBenefitPlan( +ExampleConnector.instance.updateActivityLog( id: id, ) -.vendorId(vendorId) +.userId(userId) +.date(date) +.hourStart(hourStart) +.hourEnd(hourEnd) +.totalhours(totalhours) +.iconType(iconType) +.iconColor(iconColor) .title(title) .description(description) -.requestLabel(requestLabel) -.total(total) -.isActive(isActive) -.createdBy(createdBy) +.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 { @@ -16129,10 +15588,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateVendorBenefitPlan( +final result = await ExampleConnector.instance.updateActivityLog( id: id, ); -updateVendorBenefitPlanData data = result.data; +updateActivityLogData data = result.data; final ref = result.ref; ``` @@ -16142,18 +15601,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateVendorBenefitPlan( +final ref = ExampleConnector.instance.updateActivityLog( id: id, ).ref(); ref.execute(); ``` -### deleteVendorBenefitPlan +### markActivityLogAsRead #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteVendorBenefitPlan( +ExampleConnector.instance.markActivityLogAsRead( id: id, ).execute(); ``` @@ -16161,7 +15620,7 @@ ExampleConnector.instance.deleteVendorBenefitPlan( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -16171,10 +15630,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteVendorBenefitPlan( +final result = await ExampleConnector.instance.markActivityLogAsRead( id: id, ); -deleteVendorBenefitPlanData data = result.data; +markActivityLogAsReadData data = result.data; final ref = result.ref; ``` @@ -16184,7 +15643,763 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteVendorBenefitPlan( +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(); +``` + + +### 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(); +``` + + +### 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(); +``` + + +### CreateAssignment +#### Required Arguments +```dart +String workforceId = ...; +String roleId = ...; +String shiftId = ...; +ExampleConnector.instance.createAssignment( + workforceId: workforceId, + roleId: roleId, + shiftId: shiftId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For CreateAssignment, we created `CreateAssignmentBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateAssignmentVariablesBuilder { + ... + CreateAssignmentVariablesBuilder title(String? t) { + _title.value = t; + return this; + } + CreateAssignmentVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + CreateAssignmentVariablesBuilder instructions(String? t) { + _instructions.value = t; + return this; + } + CreateAssignmentVariablesBuilder status(AssignmentStatus? t) { + _status.value = t; + return this; + } + CreateAssignmentVariablesBuilder tipsAvailable(bool? t) { + _tipsAvailable.value = t; + return this; + } + CreateAssignmentVariablesBuilder travelTime(bool? t) { + _travelTime.value = t; + return this; + } + CreateAssignmentVariablesBuilder mealProvided(bool? t) { + _mealProvided.value = t; + return this; + } + CreateAssignmentVariablesBuilder parkingAvailable(bool? t) { + _parkingAvailable.value = t; + return this; + } + CreateAssignmentVariablesBuilder gasCompensation(bool? t) { + _gasCompensation.value = t; + return this; + } + CreateAssignmentVariablesBuilder managers(List? t) { + _managers.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createAssignment( + workforceId: workforceId, + roleId: roleId, + shiftId: shiftId, +) +.title(title) +.description(description) +.instructions(instructions) +.status(status) +.tipsAvailable(tipsAvailable) +.travelTime(travelTime) +.mealProvided(mealProvided) +.parkingAvailable(parkingAvailable) +.gasCompensation(gasCompensation) +.managers(managers) +.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.createAssignment( + workforceId: workforceId, + roleId: roleId, + shiftId: shiftId, +); +CreateAssignmentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 = ...; +String roleId = ...; +String shiftId = ...; + +final ref = ExampleConnector.instance.createAssignment( + workforceId: workforceId, + roleId: roleId, + shiftId: shiftId, +).ref(); +ref.execute(); +``` + + +### UpdateAssignment +#### Required Arguments +```dart +String id = ...; +String roleId = ...; +String shiftId = ...; +ExampleConnector.instance.updateAssignment( + id: id, + roleId: roleId, + shiftId: shiftId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For UpdateAssignment, we created `UpdateAssignmentBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateAssignmentVariablesBuilder { + ... + UpdateAssignmentVariablesBuilder title(String? t) { + _title.value = t; + return this; + } + UpdateAssignmentVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + UpdateAssignmentVariablesBuilder instructions(String? t) { + _instructions.value = t; + return this; + } + UpdateAssignmentVariablesBuilder status(AssignmentStatus? t) { + _status.value = t; + return this; + } + UpdateAssignmentVariablesBuilder tipsAvailable(bool? t) { + _tipsAvailable.value = t; + return this; + } + UpdateAssignmentVariablesBuilder travelTime(bool? t) { + _travelTime.value = t; + return this; + } + UpdateAssignmentVariablesBuilder mealProvided(bool? t) { + _mealProvided.value = t; + return this; + } + UpdateAssignmentVariablesBuilder parkingAvailable(bool? t) { + _parkingAvailable.value = t; + return this; + } + UpdateAssignmentVariablesBuilder gasCompensation(bool? t) { + _gasCompensation.value = t; + return this; + } + UpdateAssignmentVariablesBuilder managers(List? t) { + _managers.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateAssignment( + id: id, + roleId: roleId, + shiftId: shiftId, +) +.title(title) +.description(description) +.instructions(instructions) +.status(status) +.tipsAvailable(tipsAvailable) +.travelTime(travelTime) +.mealProvided(mealProvided) +.parkingAvailable(parkingAvailable) +.gasCompensation(gasCompensation) +.managers(managers) +.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.updateAssignment( + id: id, + roleId: roleId, + shiftId: shiftId, +); +UpdateAssignmentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 = ...; +String shiftId = ...; + +final ref = ExampleConnector.instance.updateAssignment( + id: id, + roleId: roleId, + shiftId: shiftId, +).ref(); +ref.execute(); +``` + + +### DeleteAssignment +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteAssignment( + 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.deleteAssignment( + id: id, +); +DeleteAssignmentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.deleteAssignment( id: id, ).ref(); ref.execute(); @@ -16574,6 +16789,1623 @@ ref.execute(); ``` +### CreateCertificate +#### Required Arguments +```dart +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 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 CreateCertificateVariablesBuilder { + ... + CreateCertificateVariablesBuilder description(String? t) { + _description.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; + return this; + } + + ... +} +ExampleConnector.instance.createCertificate( + name: name, + status: status, + staffId: staffId, +) +.description(description) +.expiry(expiry) +.fileUrl(fileUrl) +.icon(icon) +.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.createCertificate( + name: name, + status: status, + staffId: staffId, +); +CreateCertificateData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 staffId = ...; + +final ref = ExampleConnector.instance.createCertificate( + name: name, + status: status, + staffId: staffId, +).ref(); +ref.execute(); +``` + + +### UpdateCertificate +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateCertificate( + id: id, +).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. +The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { + ... + UpdateCertificateVariablesBuilder name(String? t) { + _name.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) { + _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.updateCertificate( + id: id, +) +.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` +```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(); +``` + + +### 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(); +``` + + +### 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(); +``` + + +### 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) { + _email.value = t; + return this; + } + CreateBusinessVariablesBuilder hubBuilding(String? t) { + _hubBuilding.value = t; + return this; + } + CreateBusinessVariablesBuilder address(String? t) { + _address.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; + return this; + } + + ... +} +ExampleConnector.instance.createBusiness( + businessName: businessName, + userId: userId, + rateGroup: rateGroup, + status: status, +) +.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` +```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.createBusiness( + businessName: businessName, + userId: userId, + rateGroup: rateGroup, + status: status, +); +createBusinessData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 = ...; + +final ref = ExampleConnector.instance.createBusiness( + businessName: businessName, + userId: userId, + rateGroup: rateGroup, + status: status, +).ref(); +ref.execute(); +``` + + +### updateBusiness +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateBusiness( + 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. +The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { + ... + 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) { + _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.updateBusiness( + 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) +.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.updateBusiness( + id: id, +); +updateBusinessData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.updateBusiness( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteBusiness +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteBusiness( + 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.deleteBusiness( + id: id, +); +deleteBusinessData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.deleteBusiness( + id: id, +).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(); +``` + + +### createDocument +#### Required Arguments +```dart +DocumentType documentType = ...; +String name = ...; +ExampleConnector.instance.createDocument( + documentType: documentType, + name: name, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createDocument, we created `createDocumentBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateDocumentVariablesBuilder { + ... + CreateDocumentVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createDocument( + documentType: documentType, + name: name, +) +.description(description) +.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.createDocument( + documentType: documentType, + name: name, +); +createDocumentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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 = ...; +String name = ...; + +final ref = ExampleConnector.instance.createDocument( + documentType: documentType, + name: name, +).ref(); +ref.execute(); +``` + + +### updateDocument +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateDocument( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateDocument, we created `updateDocumentBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateDocumentVariablesBuilder { + ... + UpdateDocumentVariablesBuilder documentType(DocumentType? t) { + _documentType.value = t; + return this; + } + UpdateDocumentVariablesBuilder name(String? t) { + _name.value = t; + return this; + } + UpdateDocumentVariablesBuilder description(String? t) { + _description.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateDocument( + id: id, +) +.documentType(documentType) +.name(name) +.description(description) +.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.updateDocument( + id: id, +); +updateDocumentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.updateDocument( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteDocument +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteDocument( + 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.deleteDocument( + id: id, +); +deleteDocumentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.deleteDocument( + id: id, +).ref(); +ref.execute(); +``` + + +### createAccount +#### Required Arguments +```dart +String bank = ...; +AccountType type = ...; +String last4 = ...; +String ownerId = ...; +ExampleConnector.instance.createAccount( + bank: bank, + type: type, + last4: last4, + ownerId: ownerId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createAccount, we created `createAccountBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateAccountVariablesBuilder { + ... + CreateAccountVariablesBuilder isPrimary(bool? t) { + _isPrimary.value = t; + return this; + } + CreateAccountVariablesBuilder accountNumber(String? t) { + _accountNumber.value = t; + return this; + } + CreateAccountVariablesBuilder routeNumber(String? t) { + _routeNumber.value = t; + return this; + } + CreateAccountVariablesBuilder expiryTime(Timestamp? t) { + _expiryTime.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createAccount( + bank: bank, + type: type, + last4: last4, + ownerId: ownerId, +) +.isPrimary(isPrimary) +.accountNumber(accountNumber) +.routeNumber(routeNumber) +.expiryTime(expiryTime) +.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.createAccount( + bank: bank, + type: type, + last4: last4, + ownerId: ownerId, +); +createAccountData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. +An example of how to use the `Ref` object is shown below: +```dart +String bank = ...; +AccountType type = ...; +String last4 = ...; +String ownerId = ...; + +final ref = ExampleConnector.instance.createAccount( + bank: bank, + type: type, + last4: last4, + ownerId: ownerId, +).ref(); +ref.execute(); +``` + + +### updateAccount +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateAccount( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateAccount, we created `updateAccountBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateAccountVariablesBuilder { + ... + UpdateAccountVariablesBuilder bank(String? t) { + _bank.value = t; + return this; + } + UpdateAccountVariablesBuilder type(AccountType? t) { + _type.value = t; + return this; + } + UpdateAccountVariablesBuilder last4(String? t) { + _last4.value = t; + return this; + } + UpdateAccountVariablesBuilder isPrimary(bool? t) { + _isPrimary.value = t; + return this; + } + UpdateAccountVariablesBuilder accountNumber(String? t) { + _accountNumber.value = t; + return this; + } + UpdateAccountVariablesBuilder routeNumber(String? t) { + _routeNumber.value = t; + return this; + } + UpdateAccountVariablesBuilder expiryTime(Timestamp? t) { + _expiryTime.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateAccount( + id: id, +) +.bank(bank) +.type(type) +.last4(last4) +.isPrimary(isPrimary) +.accountNumber(accountNumber) +.routeNumber(routeNumber) +.expiryTime(expiryTime) +.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.updateAccount( + id: id, +); +updateAccountData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.updateAccount( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteAccount +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteAccount( + 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.deleteAccount( + id: id, +); +deleteAccountData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.deleteAccount( + id: id, +).ref(); +ref.execute(); +``` + + ### createStaffCourse #### Required Arguments ```dart @@ -16782,43 +18614,55 @@ ref.execute(); ``` -### createWorkforce +### createAttireOption #### Required Arguments ```dart -String vendorId = ...; -String staffId = ...; -String workforceNumber = ...; -ExampleConnector.instance.createWorkforce( - vendorId: vendorId, - staffId: staffId, - workforceNumber: workforceNumber, +String itemId = ...; +String label = ...; +ExampleConnector.instance.createAttireOption( + itemId: itemId, + label: label, ).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 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 CreateWorkforceVariablesBuilder { +class CreateAttireOptionVariablesBuilder { ... - CreateWorkforceVariablesBuilder employmentType(WorkforceEmploymentType? t) { - _employmentType.value = t; + 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.createWorkforce( - vendorId: vendorId, - staffId: staffId, - workforceNumber: workforceNumber, +ExampleConnector.instance.createAttireOption( + itemId: itemId, + label: label, ) -.employmentType(employmentType) +.icon(icon) +.imageUrl(imageUrl) +.isMandatory(isMandatory) +.vendorId(vendorId) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -16828,12 +18672,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createWorkforce( - vendorId: vendorId, - staffId: staffId, - workforceNumber: workforceNumber, +final result = await ExampleConnector.instance.createAttireOption( + itemId: itemId, + label: label, ); -createWorkforceData data = result.data; +createAttireOptionData data = result.data; final ref = result.ref; ``` @@ -16841,60 +18684,73 @@ 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 staffId = ...; -String workforceNumber = ...; +String itemId = ...; +String label = ...; -final ref = ExampleConnector.instance.createWorkforce( - vendorId: vendorId, - staffId: staffId, - workforceNumber: workforceNumber, +final ref = ExampleConnector.instance.createAttireOption( + itemId: itemId, + label: label, ).ref(); ref.execute(); ``` -### updateWorkforce +### updateAttireOption #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateWorkforce( +ExampleConnector.instance.updateAttireOption( 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. +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 UpdateWorkforceVariablesBuilder { +class UpdateAttireOptionVariablesBuilder { ... - UpdateWorkforceVariablesBuilder workforceNumber(String? t) { - _workforceNumber.value = t; + UpdateAttireOptionVariablesBuilder itemId(String? t) { + _itemId.value = t; return this; } - UpdateWorkforceVariablesBuilder employmentType(WorkforceEmploymentType? t) { - _employmentType.value = t; + UpdateAttireOptionVariablesBuilder label(String? t) { + _label.value = t; return this; } - UpdateWorkforceVariablesBuilder status(WorkforceStatus? t) { - _status.value = t; + 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.updateWorkforce( +ExampleConnector.instance.updateAttireOption( id: id, ) -.workforceNumber(workforceNumber) -.employmentType(employmentType) -.status(status) +.itemId(itemId) +.label(label) +.icon(icon) +.imageUrl(imageUrl) +.isMandatory(isMandatory) +.vendorId(vendorId) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -16904,10 +18760,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateWorkforce( +final result = await ExampleConnector.instance.updateAttireOption( id: id, ); -updateWorkforceData data = result.data; +updateAttireOptionData data = result.data; final ref = result.ref; ``` @@ -16917,18 +18773,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateWorkforce( +final ref = ExampleConnector.instance.updateAttireOption( id: id, ).ref(); ref.execute(); ``` -### deactivateWorkforce +### deleteAttireOption #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deactivateWorkforce( +ExampleConnector.instance.deleteAttireOption( id: id, ).execute(); ``` @@ -16936,7 +18792,7 @@ ExampleConnector.instance.deactivateWorkforce( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -16946,10 +18802,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deactivateWorkforce( +final result = await ExampleConnector.instance.deleteAttireOption( id: id, ); -deactivateWorkforceData data = result.data; +deleteAttireOptionData data = result.data; final ref = result.ref; ``` @@ -16959,57 +18815,32 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deactivateWorkforce( +final ref = ExampleConnector.instance.deleteAttireOption( id: id, ).ref(); ref.execute(); ``` -### createHub +### createEmergencyContact #### Required Arguments ```dart String name = ...; -String ownerId = ...; -ExampleConnector.instance.createHub( +String phone = ...; +RelationshipType relationship = ...; +String staffId = ...; +ExampleConnector.instance.createEmergencyContact( name: name, - ownerId: ownerId, + phone: phone, + relationship: relationship, + staffId: staffId, ).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` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -17019,11 +18850,13 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createHub( +final result = await ExampleConnector.instance.createEmergencyContact( name: name, - ownerId: ownerId, + phone: phone, + relationship: relationship, + staffId: staffId, ); -createHubData data = result.data; +createEmergencyContactData data = result.data; final ref = result.ref; ``` @@ -17032,67 +18865,61 @@ 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 ownerId = ...; +String phone = ...; +RelationshipType relationship = ...; +String staffId = ...; -final ref = ExampleConnector.instance.createHub( +final ref = ExampleConnector.instance.createEmergencyContact( name: name, - ownerId: ownerId, + phone: phone, + relationship: relationship, + staffId: staffId, ).ref(); ref.execute(); ``` -### updateHub +### updateEmergencyContact #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateHub( +ExampleConnector.instance.updateEmergencyContact( 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. +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 UpdateHubVariablesBuilder { +class UpdateEmergencyContactVariablesBuilder { ... - UpdateHubVariablesBuilder name(String? t) { + UpdateEmergencyContactVariablesBuilder name(String? t) { _name.value = t; return this; } - UpdateHubVariablesBuilder locationName(String? t) { - _locationName.value = t; + UpdateEmergencyContactVariablesBuilder phone(String? t) { + _phone.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; + UpdateEmergencyContactVariablesBuilder relationship(RelationshipType? t) { + _relationship.value = t; return this; } ... } -ExampleConnector.instance.updateHub( +ExampleConnector.instance.updateEmergencyContact( id: id, ) .name(name) -.locationName(locationName) -.address(address) -.nfcTagId(nfcTagId) -.ownerId(ownerId) +.phone(phone) +.relationship(relationship) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -17102,10 +18929,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateHub( +final result = await ExampleConnector.instance.updateEmergencyContact( id: id, ); -updateHubData data = result.data; +updateEmergencyContactData data = result.data; final ref = result.ref; ``` @@ -17115,18 +18942,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateHub( +final ref = ExampleConnector.instance.updateEmergencyContact( id: id, ).ref(); ref.execute(); ``` -### deleteHub +### deleteEmergencyContact #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteHub( +ExampleConnector.instance.deleteEmergencyContact( id: id, ).execute(); ``` @@ -17134,7 +18961,7 @@ ExampleConnector.instance.deleteHub( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -17144,10 +18971,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteHub( +final result = await ExampleConnector.instance.deleteEmergencyContact( id: id, ); -deleteHubData data = result.data; +deleteEmergencyContactData data = result.data; final ref = result.ref; ``` @@ -17157,196 +18984,7 @@ 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(); -``` - - -### 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.deleteEmergencyContact( id: id, ).ref(); ref.execute(); @@ -17701,40 +19339,51 @@ ref.execute(); ``` -### createStaffRole +### createStaffDocument #### Required Arguments ```dart String staffId = ...; -String roleId = ...; -ExampleConnector.instance.createStaffRole( +String staffName = ...; +String documentId = ...; +DocumentStatus status = ...; +ExampleConnector.instance.createStaffDocument( staffId: staffId, - roleId: roleId, + staffName: staffName, + documentId: documentId, + status: status, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For createStaffRole, we created `createStaffRoleBuilder`. 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 CreateStaffRoleVariablesBuilder { +class CreateStaffDocumentVariablesBuilder { ... - CreateStaffRoleVariablesBuilder roleType(RoleType? t) { - _roleType.value = t; + CreateStaffDocumentVariablesBuilder documentUrl(String? t) { + _documentUrl.value = t; + return this; + } + CreateStaffDocumentVariablesBuilder expiryDate(Timestamp? t) { + _expiryDate.value = t; return this; } ... } -ExampleConnector.instance.createStaffRole( +ExampleConnector.instance.createStaffDocument( staffId: staffId, - roleId: roleId, + staffName: staffName, + documentId: documentId, + status: status, ) -.roleType(roleType) +.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 { @@ -17744,11 +19393,13 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createStaffRole( +final result = await ExampleConnector.instance.createStaffDocument( staffId: staffId, - roleId: roleId, + staffName: staffName, + documentId: documentId, + status: status, ); -createStaffRoleData data = result.data; +createStaffDocumentData data = result.data; final ref = result.ref; ``` @@ -17757,367 +19408,64 @@ 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 staffId = ...; -String roleId = ...; +String staffName = ...; +String documentId = ...; +DocumentStatus status = ...; -final ref = ExampleConnector.instance.createStaffRole( +final ref = ExampleConnector.instance.createStaffDocument( staffId: staffId, - roleId: roleId, + staffName: staffName, + documentId: documentId, + status: status, ).ref(); ref.execute(); ``` -### deleteStaffRole +### updateStaffDocument #### Required Arguments ```dart String staffId = ...; -String roleId = ...; -ExampleConnector.instance.deleteStaffRole( - staffId: staffId, - 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.deleteStaffRole( - staffId: staffId, - roleId: roleId, -); -deleteStaffRoleData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.deleteStaffRole( - staffId: staffId, - roleId: roleId, -).ref(); -ref.execute(); -``` - - -### createStaffAvailabilityStats -#### Required Arguments -```dart -String staffId = ...; -ExampleConnector.instance.createStaffAvailabilityStats( +String documentId = ...; +ExampleConnector.instance.updateStaffDocument( staffId: staffId, + documentId: documentId, ).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 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 CreateStaffAvailabilityStatsVariablesBuilder { +class UpdateStaffDocumentVariablesBuilder { ... - 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(); -``` - - -### CreateAssignment -#### Required Arguments -```dart -String workforceId = ...; -String roleId = ...; -String shiftId = ...; -ExampleConnector.instance.createAssignment( - workforceId: workforceId, - roleId: roleId, - shiftId: shiftId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For CreateAssignment, we created `CreateAssignmentBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateAssignmentVariablesBuilder { - ... - CreateAssignmentVariablesBuilder title(String? t) { - _title.value = t; - return this; - } - CreateAssignmentVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - CreateAssignmentVariablesBuilder instructions(String? t) { - _instructions.value = t; - return this; - } - CreateAssignmentVariablesBuilder status(AssignmentStatus? t) { + UpdateStaffDocumentVariablesBuilder status(DocumentStatus? t) { _status.value = t; return this; } - CreateAssignmentVariablesBuilder tipsAvailable(bool? t) { - _tipsAvailable.value = t; + UpdateStaffDocumentVariablesBuilder documentUrl(String? t) { + _documentUrl.value = t; return this; } - CreateAssignmentVariablesBuilder travelTime(bool? t) { - _travelTime.value = t; - return this; - } - CreateAssignmentVariablesBuilder mealProvided(bool? t) { - _mealProvided.value = t; - return this; - } - CreateAssignmentVariablesBuilder parkingAvailable(bool? t) { - _parkingAvailable.value = t; - return this; - } - CreateAssignmentVariablesBuilder gasCompensation(bool? t) { - _gasCompensation.value = t; - return this; - } - CreateAssignmentVariablesBuilder managers(List? t) { - _managers.value = t; + UpdateStaffDocumentVariablesBuilder expiryDate(Timestamp? t) { + _expiryDate.value = t; return this; } ... } -ExampleConnector.instance.createAssignment( - workforceId: workforceId, - roleId: roleId, - shiftId: shiftId, +ExampleConnector.instance.updateStaffDocument( + staffId: staffId, + documentId: documentId, ) -.title(title) -.description(description) -.instructions(instructions) .status(status) -.tipsAvailable(tipsAvailable) -.travelTime(travelTime) -.mealProvided(mealProvided) -.parkingAvailable(parkingAvailable) -.gasCompensation(gasCompensation) -.managers(managers) +.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 { @@ -18127,12 +19475,11 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createAssignment( - workforceId: workforceId, - roleId: roleId, - shiftId: shiftId, +final result = await ExampleConnector.instance.updateStaffDocument( + staffId: staffId, + documentId: documentId, ); -CreateAssignmentData data = result.data; +updateStaffDocumentData data = result.data; final ref = result.ref; ``` @@ -18140,101 +19487,209 @@ 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 workforceId = ...; -String roleId = ...; -String shiftId = ...; +String staffId = ...; +String documentId = ...; -final ref = ExampleConnector.instance.createAssignment( - workforceId: workforceId, - roleId: roleId, - shiftId: shiftId, +final ref = ExampleConnector.instance.updateStaffDocument( + staffId: staffId, + documentId: documentId, ).ref(); ref.execute(); ``` -### UpdateAssignment +### 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(); +``` + + +### createApplication #### Required Arguments ```dart -String id = ...; -String roleId = ...; String shiftId = ...; -ExampleConnector.instance.updateAssignment( - id: id, - roleId: roleId, +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 UpdateAssignment, we created `UpdateAssignmentBuilder`. 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 UpdateAssignmentVariablesBuilder { +class CreateApplicationVariablesBuilder { ... - UpdateAssignmentVariablesBuilder title(String? t) { - _title.value = t; + CreateApplicationVariablesBuilder checkInTime(Timestamp? t) { + _checkInTime.value = t; return this; } - UpdateAssignmentVariablesBuilder description(String? t) { - _description.value = t; + CreateApplicationVariablesBuilder checkOutTime(Timestamp? t) { + _checkOutTime.value = t; return this; } - UpdateAssignmentVariablesBuilder instructions(String? t) { - _instructions.value = t; + + ... +} +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 = ...; +ExampleConnector.instance.updateApplicationStatus( + id: id, +).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; } - UpdateAssignmentVariablesBuilder status(AssignmentStatus? t) { + UpdateApplicationStatusVariablesBuilder staffId(String? t) { + _staffId.value = t; + return this; + } + UpdateApplicationStatusVariablesBuilder status(ApplicationStatus? t) { _status.value = t; return this; } - UpdateAssignmentVariablesBuilder tipsAvailable(bool? t) { - _tipsAvailable.value = t; + UpdateApplicationStatusVariablesBuilder checkInTime(Timestamp? t) { + _checkInTime.value = t; return this; } - UpdateAssignmentVariablesBuilder travelTime(bool? t) { - _travelTime.value = t; + UpdateApplicationStatusVariablesBuilder checkOutTime(Timestamp? t) { + _checkOutTime.value = t; return this; } - UpdateAssignmentVariablesBuilder mealProvided(bool? t) { - _mealProvided.value = t; - return this; - } - UpdateAssignmentVariablesBuilder parkingAvailable(bool? t) { - _parkingAvailable.value = t; - return this; - } - UpdateAssignmentVariablesBuilder gasCompensation(bool? t) { - _gasCompensation.value = t; - return this; - } - UpdateAssignmentVariablesBuilder managers(List? t) { - _managers.value = t; + UpdateApplicationStatusVariablesBuilder roleId(String? t) { + _roleId.value = t; return this; } ... } -ExampleConnector.instance.updateAssignment( +ExampleConnector.instance.updateApplicationStatus( id: id, - roleId: roleId, - shiftId: shiftId, ) -.title(title) -.description(description) -.instructions(instructions) +.shiftId(shiftId) +.staffId(staffId) .status(status) -.tipsAvailable(tipsAvailable) -.travelTime(travelTime) -.mealProvided(mealProvided) -.parkingAvailable(parkingAvailable) -.gasCompensation(gasCompensation) -.managers(managers) +.checkInTime(checkInTime) +.checkOutTime(checkOutTime) +.roleId(roleId) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -18244,58 +19699,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateAssignment( - id: id, - roleId: roleId, - shiftId: shiftId, -); -UpdateAssignmentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 = ...; -String shiftId = ...; - -final ref = ExampleConnector.instance.updateAssignment( - id: id, - roleId: roleId, - shiftId: shiftId, -).ref(); -ref.execute(); -``` - - -### DeleteAssignment -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteAssignment( - 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.deleteAssignment( +final result = await ExampleConnector.instance.updateApplicationStatus( id: id, ); -DeleteAssignmentData data = result.data; +updateApplicationStatusData data = result.data; final ref = result.ref; ``` @@ -18305,276 +19712,138 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteAssignment( +final ref = ExampleConnector.instance.updateApplicationStatus( 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(); -``` - - -### 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 +### deleteApplication #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateEmergencyContact( +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(); +``` + + +### 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 updateEmergencyContact, we created `updateEmergencyContactBuilder`. For queries and mutations with optional parameters, we return a builder class. +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 UpdateEmergencyContactVariablesBuilder { +class UpdateRoleCategoryVariablesBuilder { ... - UpdateEmergencyContactVariablesBuilder name(String? t) { - _name.value = t; + UpdateRoleCategoryVariablesBuilder roleName(String? t) { + _roleName.value = t; return this; } - UpdateEmergencyContactVariablesBuilder phone(String? t) { - _phone.value = t; - return this; - } - UpdateEmergencyContactVariablesBuilder relationship(RelationshipType? t) { - _relationship.value = t; + UpdateRoleCategoryVariablesBuilder category(RoleCategoryType? t) { + _category.value = t; return this; } ... } -ExampleConnector.instance.updateEmergencyContact( +ExampleConnector.instance.updateRoleCategory( id: id, ) -.name(name) -.phone(phone) -.relationship(relationship) +.roleName(roleName) +.category(category) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -18584,10 +19853,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateEmergencyContact( +final result = await ExampleConnector.instance.updateRoleCategory( id: id, ); -updateEmergencyContactData data = result.data; +updateRoleCategoryData data = result.data; final ref = result.ref; ``` @@ -18597,18 +19866,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateEmergencyContact( +final ref = ExampleConnector.instance.updateRoleCategory( id: id, ).ref(); ref.execute(); ``` -### deleteEmergencyContact +### deleteRoleCategory #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteEmergencyContact( +ExampleConnector.instance.deleteRoleCategory( id: id, ).execute(); ``` @@ -18616,7 +19885,7 @@ ExampleConnector.instance.deleteEmergencyContact( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -18626,10 +19895,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteEmergencyContact( +final result = await ExampleConnector.instance.deleteRoleCategory( id: id, ); -deleteEmergencyContactData data = result.data; +deleteRoleCategoryData data = result.data; final ref = result.ref; ``` @@ -18639,7 +19908,7 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteEmergencyContact( +final ref = ExampleConnector.instance.deleteRoleCategory( id: id, ).ref(); ref.execute(); @@ -18996,3735 +20265,72 @@ ref.execute(); ``` -### createAccount +### createVendorRate #### Required Arguments ```dart -String bank = ...; -AccountType type = ...; -String last4 = ...; -String ownerId = ...; -ExampleConnector.instance.createAccount( - bank: bank, - type: type, - last4: last4, - ownerId: ownerId, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createAccount, we created `createAccountBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateAccountVariablesBuilder { - ... - CreateAccountVariablesBuilder isPrimary(bool? t) { - _isPrimary.value = t; - return this; - } - CreateAccountVariablesBuilder accountNumber(String? t) { - _accountNumber.value = t; - return this; - } - CreateAccountVariablesBuilder routeNumber(String? t) { - _routeNumber.value = t; - return this; - } - CreateAccountVariablesBuilder expiryTime(Timestamp? t) { - _expiryTime.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createAccount( - bank: bank, - type: type, - last4: last4, - ownerId: ownerId, -) -.isPrimary(isPrimary) -.accountNumber(accountNumber) -.routeNumber(routeNumber) -.expiryTime(expiryTime) -.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.createAccount( - bank: bank, - type: type, - last4: last4, - ownerId: ownerId, -); -createAccountData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function that creates a `Ref` object, and executes the underlying operation. -An example of how to use the `Ref` object is shown below: -```dart -String bank = ...; -AccountType type = ...; -String last4 = ...; -String ownerId = ...; - -final ref = ExampleConnector.instance.createAccount( - bank: bank, - type: type, - last4: last4, - ownerId: ownerId, -).ref(); -ref.execute(); -``` - - -### updateAccount -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateAccount( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateAccount, we created `updateAccountBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateAccountVariablesBuilder { - ... - UpdateAccountVariablesBuilder bank(String? t) { - _bank.value = t; - return this; - } - UpdateAccountVariablesBuilder type(AccountType? t) { - _type.value = t; - return this; - } - UpdateAccountVariablesBuilder last4(String? t) { - _last4.value = t; - return this; - } - UpdateAccountVariablesBuilder isPrimary(bool? t) { - _isPrimary.value = t; - return this; - } - UpdateAccountVariablesBuilder accountNumber(String? t) { - _accountNumber.value = t; - return this; - } - UpdateAccountVariablesBuilder routeNumber(String? t) { - _routeNumber.value = t; - return this; - } - UpdateAccountVariablesBuilder expiryTime(Timestamp? t) { - _expiryTime.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateAccount( - id: id, -) -.bank(bank) -.type(type) -.last4(last4) -.isPrimary(isPrimary) -.accountNumber(accountNumber) -.routeNumber(routeNumber) -.expiryTime(expiryTime) -.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.updateAccount( - id: id, -); -updateAccountData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.updateAccount( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteAccount -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteAccount( - 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.deleteAccount( - id: id, -); -deleteAccountData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.deleteAccount( - id: id, -).ref(); -ref.execute(); -``` - - -### createConversation -#### Required Arguments -```dart -// No required arguments -ExampleConnector.instance.createConversation().execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createConversation, we created `createConversationBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateConversationVariablesBuilder { - ... - - CreateConversationVariablesBuilder subject(String? t) { - _subject.value = t; - return this; - } - CreateConversationVariablesBuilder status(ConversationStatus? t) { - _status.value = t; - return this; - } - CreateConversationVariablesBuilder conversationType(ConversationType? t) { - _conversationType.value = t; - return this; - } - CreateConversationVariablesBuilder isGroup(bool? t) { - _isGroup.value = t; - return this; - } - CreateConversationVariablesBuilder groupName(String? t) { - _groupName.value = t; - return this; - } - CreateConversationVariablesBuilder lastMessage(String? t) { - _lastMessage.value = t; - return this; - } - CreateConversationVariablesBuilder lastMessageAt(Timestamp? t) { - _lastMessageAt.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createConversation() -.subject(subject) -.status(status) -.conversationType(conversationType) -.isGroup(isGroup) -.groupName(groupName) -.lastMessage(lastMessage) -.lastMessageAt(lastMessageAt) -.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.createConversation(); -createConversationData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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.createConversation().ref(); -ref.execute(); -``` - - -### updateConversation -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateConversation( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateConversation, we created `updateConversationBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateConversationVariablesBuilder { - ... - UpdateConversationVariablesBuilder subject(String? t) { - _subject.value = t; - return this; - } - UpdateConversationVariablesBuilder status(ConversationStatus? t) { - _status.value = t; - return this; - } - UpdateConversationVariablesBuilder conversationType(ConversationType? t) { - _conversationType.value = t; - return this; - } - UpdateConversationVariablesBuilder isGroup(bool? t) { - _isGroup.value = t; - return this; - } - UpdateConversationVariablesBuilder groupName(String? t) { - _groupName.value = t; - return this; - } - UpdateConversationVariablesBuilder lastMessage(String? t) { - _lastMessage.value = t; - return this; - } - UpdateConversationVariablesBuilder lastMessageAt(Timestamp? t) { - _lastMessageAt.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateConversation( - id: id, -) -.subject(subject) -.status(status) -.conversationType(conversationType) -.isGroup(isGroup) -.groupName(groupName) -.lastMessage(lastMessage) -.lastMessageAt(lastMessageAt) -.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.updateConversation( - id: id, -); -updateConversationData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.updateConversation( - id: id, -).ref(); -ref.execute(); -``` - - -### updateConversationLastMessage -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateConversationLastMessage( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateConversationLastMessage, we created `updateConversationLastMessageBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateConversationLastMessageVariablesBuilder { - ... - UpdateConversationLastMessageVariablesBuilder lastMessage(String? t) { - _lastMessage.value = t; - return this; - } - UpdateConversationLastMessageVariablesBuilder lastMessageAt(Timestamp? t) { - _lastMessageAt.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateConversationLastMessage( - id: id, -) -.lastMessage(lastMessage) -.lastMessageAt(lastMessageAt) -.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.updateConversationLastMessage( - id: id, -); -updateConversationLastMessageData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.updateConversationLastMessage( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteConversation -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteConversation( - 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.deleteConversation( - id: id, -); -deleteConversationData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.deleteConversation( - 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(); -``` - - -### 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(); -``` - - -### 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(); -``` - - -### 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( - id: id, -).ref(); -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(); -``` - - -### 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( - 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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - UpdateCustomRateCardVariablesBuilder name(String? t) { - _name.value = t; - return this; - } - 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.updateCustomRateCard( - id: id, -) -.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.updateCustomRateCard( - id: id, -); -updateCustomRateCardData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.updateCustomRateCard( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteCustomRateCard -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteCustomRateCard( - 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.deleteCustomRateCard( - id: id, -); -deleteCustomRateCardData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.deleteCustomRateCard( - 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) { - _email.value = t; - return this; - } - CreateBusinessVariablesBuilder hubBuilding(String? t) { - _hubBuilding.value = t; - return this; - } - CreateBusinessVariablesBuilder address(String? t) { - _address.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; - return this; - } - - ... -} -ExampleConnector.instance.createBusiness( - businessName: businessName, - userId: userId, - rateGroup: rateGroup, - status: status, -) -.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` -```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.createBusiness( - businessName: businessName, - userId: userId, - rateGroup: rateGroup, - status: status, -); -createBusinessData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 = ...; - -final ref = ExampleConnector.instance.createBusiness( - businessName: businessName, - userId: userId, - rateGroup: rateGroup, - status: status, -).ref(); -ref.execute(); -``` - - -### updateBusiness -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateBusiness( - 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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - 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) { - _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.updateBusiness( - 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) -.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.updateBusiness( - id: id, -); -updateBusinessData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.updateBusiness( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteBusiness -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteBusiness( - 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.deleteBusiness( - id: id, -); -deleteBusinessData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.deleteBusiness( - id: id, -).ref(); -ref.execute(); -``` - - -### createClientFeedback -#### Required Arguments -```dart -String businessId = ...; String vendorId = ...; -ExampleConnector.instance.createClientFeedback( - businessId: businessId, +ExampleConnector.instance.createVendorRate( 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. +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 CreateClientFeedbackVariablesBuilder { +class CreateVendorRateVariablesBuilder { ... - CreateClientFeedbackVariablesBuilder rating(int? t) { - _rating.value = t; + CreateVendorRateVariablesBuilder roleName(String? t) { + _roleName.value = t; return this; } - CreateClientFeedbackVariablesBuilder comment(String? t) { - _comment.value = t; + CreateVendorRateVariablesBuilder category(CategoryType? t) { + _category.value = t; return this; } - CreateClientFeedbackVariablesBuilder date(Timestamp? t) { - _date.value = t; + CreateVendorRateVariablesBuilder clientRate(double? t) { + _clientRate.value = t; return this; } - CreateClientFeedbackVariablesBuilder createdBy(String? t) { - _createdBy.value = t; + CreateVendorRateVariablesBuilder employeeWage(double? t) { + _employeeWage.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; + CreateVendorRateVariablesBuilder markupPercentage(double? t) { + _markupPercentage.value = t; return this; } - UpdateClientFeedbackVariablesBuilder vendorId(String? t) { - _vendorId.value = t; + CreateVendorRateVariablesBuilder vendorFeePercentage(double? t) { + _vendorFeePercentage.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(); -``` - - -### createTeamHudDepartment -#### Required Arguments -```dart -String name = ...; -String teamHubId = ...; -ExampleConnector.instance.createTeamHudDepartment( - name: name, - teamHubId: teamHubId, -).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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - CreateTeamHudDepartmentVariablesBuilder costCenter(String? t) { - _costCenter.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createTeamHudDepartment( - name: name, - teamHubId: teamHubId, -) -.costCenter(costCenter) -.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.createTeamHudDepartment( - name: name, - teamHubId: teamHubId, -); -createTeamHudDepartmentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 teamHubId = ...; - -final ref = ExampleConnector.instance.createTeamHudDepartment( - name: name, - teamHubId: teamHubId, -).ref(); -ref.execute(); -``` - - -### updateTeamHudDepartment -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateTeamHudDepartment( - 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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - UpdateTeamHudDepartmentVariablesBuilder name(String? t) { - _name.value = t; - return this; - } - UpdateTeamHudDepartmentVariablesBuilder costCenter(String? t) { - _costCenter.value = t; - return this; - } - UpdateTeamHudDepartmentVariablesBuilder teamHubId(String? t) { - _teamHubId.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateTeamHudDepartment( - id: id, -) -.name(name) -.costCenter(costCenter) -.teamHubId(teamHubId) -.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.updateTeamHudDepartment( - id: id, -); -updateTeamHudDepartmentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.updateTeamHudDepartment( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteTeamHudDepartment -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteTeamHudDepartment( - 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.deleteTeamHudDepartment( - id: id, -); -deleteTeamHudDepartmentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.deleteTeamHudDepartment( - 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(); -``` - - -### CreateUser -#### Required Arguments -```dart -String id = ...; -UserBaseRole role = ...; -ExampleConnector.instance.createUser( - id: id, - role: role, -).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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - CreateUserVariablesBuilder email(String? t) { - _email.value = t; - return this; - } - CreateUserVariablesBuilder fullName(String? t) { - _fullName.value = t; - return this; - } - CreateUserVariablesBuilder userRole(String? t) { - _userRole.value = t; - return this; - } - CreateUserVariablesBuilder photoUrl(String? t) { - _photoUrl.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createUser( - id: id, - role: role, -) -.email(email) -.fullName(fullName) -.userRole(userRole) -.photoUrl(photoUrl) -.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.createUser( - id: id, - role: role, -); -CreateUserData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 = ...; - -final ref = ExampleConnector.instance.createUser( - id: id, - role: role, -).ref(); -ref.execute(); -``` - - -### UpdateUser -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateUser( - 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. -The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { - ... - UpdateUserVariablesBuilder email(String? t) { - _email.value = t; - return this; - } - UpdateUserVariablesBuilder fullName(String? t) { - _fullName.value = t; - return this; - } - UpdateUserVariablesBuilder role(UserBaseRole? t) { - _role.value = t; - return this; - } - UpdateUserVariablesBuilder userRole(String? t) { - _userRole.value = t; - return this; - } - UpdateUserVariablesBuilder photoUrl(String? t) { - _photoUrl.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateUser( - id: id, -) -.email(email) -.fullName(fullName) -.role(role) -.userRole(userRole) -.photoUrl(photoUrl) -.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.updateUser( - id: id, -); -UpdateUserData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.updateUser( - id: id, -).ref(); -ref.execute(); -``` - - -### DeleteUser -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteUser( - 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.deleteUser( - id: id, -); -DeleteUserData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.deleteUser( - id: id, -).ref(); -ref.execute(); -``` - - -### createVendor -#### Required Arguments -```dart -String userId = ...; -String companyName = ...; -ExampleConnector.instance.createVendor( - userId: userId, - companyName: companyName, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createVendor, we created `createVendorBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateVendorVariablesBuilder { - ... - CreateVendorVariablesBuilder email(String? t) { - _email.value = t; - return this; - } - CreateVendorVariablesBuilder phone(String? t) { - _phone.value = t; - return this; - } - CreateVendorVariablesBuilder photoUrl(String? t) { - _photoUrl.value = t; - return this; - } - CreateVendorVariablesBuilder address(String? t) { - _address.value = t; - return this; - } - CreateVendorVariablesBuilder billingAddress(String? t) { - _billingAddress.value = t; - return this; - } - CreateVendorVariablesBuilder timezone(String? t) { - _timezone.value = t; - return this; - } - CreateVendorVariablesBuilder legalName(String? t) { - _legalName.value = t; - return this; - } - CreateVendorVariablesBuilder doingBusinessAs(String? t) { - _doingBusinessAs.value = t; - return this; - } - CreateVendorVariablesBuilder region(String? t) { - _region.value = t; - return this; - } - CreateVendorVariablesBuilder state(String? t) { - _state.value = t; - return this; - } - CreateVendorVariablesBuilder city(String? t) { - _city.value = t; - return this; - } - CreateVendorVariablesBuilder serviceSpecialty(String? t) { - _serviceSpecialty.value = t; - return this; - } - CreateVendorVariablesBuilder approvalStatus(ApprovalStatus? t) { - _approvalStatus.value = t; - return this; - } - CreateVendorVariablesBuilder isActive(bool? t) { + CreateVendorRateVariablesBuilder isActive(bool? t) { _isActive.value = t; return this; } - CreateVendorVariablesBuilder markup(double? t) { - _markup.value = t; - return this; - } - CreateVendorVariablesBuilder fee(double? t) { - _fee.value = t; - return this; - } - CreateVendorVariablesBuilder csat(double? t) { - _csat.value = t; - return this; - } - CreateVendorVariablesBuilder tier(VendorTier? t) { - _tier.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createVendor( - userId: userId, - companyName: companyName, -) -.email(email) -.phone(phone) -.photoUrl(photoUrl) -.address(address) -.billingAddress(billingAddress) -.timezone(timezone) -.legalName(legalName) -.doingBusinessAs(doingBusinessAs) -.region(region) -.state(state) -.city(city) -.serviceSpecialty(serviceSpecialty) -.approvalStatus(approvalStatus) -.isActive(isActive) -.markup(markup) -.fee(fee) -.csat(csat) -.tier(tier) -.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.createVendor( - userId: userId, - companyName: companyName, -); -createVendorData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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 = ...; -String companyName = ...; - -final ref = ExampleConnector.instance.createVendor( - userId: userId, - companyName: companyName, -).ref(); -ref.execute(); -``` - - -### updateVendor -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateVendor( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateVendor, we created `updateVendorBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateVendorVariablesBuilder { - ... - UpdateVendorVariablesBuilder companyName(String? t) { - _companyName.value = t; - return this; - } - UpdateVendorVariablesBuilder email(String? t) { - _email.value = t; - return this; - } - UpdateVendorVariablesBuilder phone(String? t) { - _phone.value = t; - return this; - } - UpdateVendorVariablesBuilder photoUrl(String? t) { - _photoUrl.value = t; - return this; - } - UpdateVendorVariablesBuilder address(String? t) { - _address.value = t; - return this; - } - UpdateVendorVariablesBuilder billingAddress(String? t) { - _billingAddress.value = t; - return this; - } - UpdateVendorVariablesBuilder timezone(String? t) { - _timezone.value = t; - return this; - } - UpdateVendorVariablesBuilder legalName(String? t) { - _legalName.value = t; - return this; - } - UpdateVendorVariablesBuilder doingBusinessAs(String? t) { - _doingBusinessAs.value = t; - return this; - } - UpdateVendorVariablesBuilder region(String? t) { - _region.value = t; - return this; - } - UpdateVendorVariablesBuilder state(String? t) { - _state.value = t; - return this; - } - UpdateVendorVariablesBuilder city(String? t) { - _city.value = t; - return this; - } - UpdateVendorVariablesBuilder serviceSpecialty(String? t) { - _serviceSpecialty.value = t; - return this; - } - UpdateVendorVariablesBuilder approvalStatus(ApprovalStatus? t) { - _approvalStatus.value = t; - return this; - } - UpdateVendorVariablesBuilder isActive(bool? t) { - _isActive.value = t; - return this; - } - UpdateVendorVariablesBuilder markup(double? t) { - _markup.value = t; - return this; - } - UpdateVendorVariablesBuilder fee(double? t) { - _fee.value = t; - return this; - } - UpdateVendorVariablesBuilder csat(double? t) { - _csat.value = t; - return this; - } - UpdateVendorVariablesBuilder tier(VendorTier? t) { - _tier.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateVendor( - id: id, -) -.companyName(companyName) -.email(email) -.phone(phone) -.photoUrl(photoUrl) -.address(address) -.billingAddress(billingAddress) -.timezone(timezone) -.legalName(legalName) -.doingBusinessAs(doingBusinessAs) -.region(region) -.state(state) -.city(city) -.serviceSpecialty(serviceSpecialty) -.approvalStatus(approvalStatus) -.isActive(isActive) -.markup(markup) -.fee(fee) -.csat(csat) -.tier(tier) -.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.updateVendor( - id: id, -); -updateVendorData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.updateVendor( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteVendor -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteVendor( - 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.deleteVendor( - id: id, -); -deleteVendorData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.deleteVendor( - 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(); -``` - - -### createInvoice -#### Required Arguments -```dart -InvoiceStatus status = ...; -String vendorId = ...; -String businessId = ...; -String orderId = ...; -String invoiceNumber = ...; -Timestamp issueDate = ...; -Timestamp dueDate = ...; -double amount = ...; -ExampleConnector.instance.createInvoice( - status: status, - vendorId: vendorId, - businessId: businessId, - orderId: orderId, - invoiceNumber: invoiceNumber, - issueDate: issueDate, - dueDate: dueDate, - amount: amount, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createInvoice, we created `createInvoiceBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateInvoiceVariablesBuilder { - ... - CreateInvoiceVariablesBuilder paymentTerms(InovicePaymentTerms? t) { - _paymentTerms.value = t; - return this; - } - CreateInvoiceVariablesBuilder hub(String? t) { - _hub.value = t; - return this; - } - CreateInvoiceVariablesBuilder managerName(String? t) { - _managerName.value = t; - return this; - } - CreateInvoiceVariablesBuilder vendorNumber(String? t) { - _vendorNumber.value = t; - return this; - } - CreateInvoiceVariablesBuilder roles(AnyValue? t) { - _roles.value = t; - return this; - } - CreateInvoiceVariablesBuilder charges(AnyValue? t) { - _charges.value = t; - return this; - } - CreateInvoiceVariablesBuilder otherCharges(double? t) { - _otherCharges.value = t; - return this; - } - CreateInvoiceVariablesBuilder subtotal(double? t) { - _subtotal.value = t; - return this; - } - CreateInvoiceVariablesBuilder notes(String? t) { + CreateVendorRateVariablesBuilder notes(String? t) { _notes.value = t; return this; } - CreateInvoiceVariablesBuilder staffCount(int? t) { - _staffCount.value = t; - return this; - } - CreateInvoiceVariablesBuilder chargesCount(int? t) { - _chargesCount.value = t; - return this; - } ... } -ExampleConnector.instance.createInvoice( - status: status, +ExampleConnector.instance.createVendorRate( vendorId: vendorId, - businessId: businessId, - orderId: orderId, - invoiceNumber: invoiceNumber, - issueDate: issueDate, - dueDate: dueDate, - amount: amount, ) -.paymentTerms(paymentTerms) -.hub(hub) -.managerName(managerName) -.vendorNumber(vendorNumber) -.roles(roles) -.charges(charges) -.otherCharges(otherCharges) -.subtotal(subtotal) +.roleName(roleName) +.category(category) +.clientRate(clientRate) +.employeeWage(employeeWage) +.markupPercentage(markupPercentage) +.vendorFeePercentage(vendorFeePercentage) +.isActive(isActive) .notes(notes) -.staffCount(staffCount) -.chargesCount(chargesCount) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -22734,17 +20340,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createInvoice( - status: status, +final result = await ExampleConnector.instance.createVendorRate( vendorId: vendorId, - businessId: businessId, - orderId: orderId, - invoiceNumber: invoiceNumber, - issueDate: issueDate, - dueDate: dueDate, - amount: amount, ); -createInvoiceData data = result.data; +createVendorRateData data = result.data; final ref = result.ref; ``` @@ -22752,165 +20351,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 -InvoiceStatus status = ...; String vendorId = ...; -String businessId = ...; -String orderId = ...; -String invoiceNumber = ...; -Timestamp issueDate = ...; -Timestamp dueDate = ...; -double amount = ...; -final ref = ExampleConnector.instance.createInvoice( - status: status, +final ref = ExampleConnector.instance.createVendorRate( vendorId: vendorId, - businessId: businessId, - orderId: orderId, - invoiceNumber: invoiceNumber, - issueDate: issueDate, - dueDate: dueDate, - amount: amount, ).ref(); ref.execute(); ``` -### updateInvoice +### updateVendorRate #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateInvoice( +ExampleConnector.instance.updateVendorRate( id: id, ).execute(); ``` #### Optional Arguments -We return a builder for each query. For updateInvoice, we created `updateInvoiceBuilder`. 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 UpdateInvoiceVariablesBuilder { +class UpdateVendorRateVariablesBuilder { ... - UpdateInvoiceVariablesBuilder status(InvoiceStatus? t) { - _status.value = t; - return this; - } - UpdateInvoiceVariablesBuilder vendorId(String? t) { + UpdateVendorRateVariablesBuilder vendorId(String? t) { _vendorId.value = t; return this; } - UpdateInvoiceVariablesBuilder businessId(String? t) { - _businessId.value = t; + UpdateVendorRateVariablesBuilder roleName(String? t) { + _roleName.value = t; return this; } - UpdateInvoiceVariablesBuilder orderId(String? t) { - _orderId.value = t; + UpdateVendorRateVariablesBuilder category(CategoryType? t) { + _category.value = t; return this; } - UpdateInvoiceVariablesBuilder paymentTerms(InovicePaymentTerms? t) { - _paymentTerms.value = t; + UpdateVendorRateVariablesBuilder clientRate(double? t) { + _clientRate.value = t; return this; } - UpdateInvoiceVariablesBuilder invoiceNumber(String? t) { - _invoiceNumber.value = t; + UpdateVendorRateVariablesBuilder employeeWage(double? t) { + _employeeWage.value = t; return this; } - UpdateInvoiceVariablesBuilder issueDate(Timestamp? t) { - _issueDate.value = t; + UpdateVendorRateVariablesBuilder markupPercentage(double? t) { + _markupPercentage.value = t; return this; } - UpdateInvoiceVariablesBuilder dueDate(Timestamp? t) { - _dueDate.value = t; + UpdateVendorRateVariablesBuilder vendorFeePercentage(double? t) { + _vendorFeePercentage.value = t; return this; } - UpdateInvoiceVariablesBuilder hub(String? t) { - _hub.value = t; + UpdateVendorRateVariablesBuilder isActive(bool? t) { + _isActive.value = t; return this; } - UpdateInvoiceVariablesBuilder managerName(String? t) { - _managerName.value = t; - return this; - } - UpdateInvoiceVariablesBuilder vendorNumber(String? t) { - _vendorNumber.value = t; - return this; - } - UpdateInvoiceVariablesBuilder roles(AnyValue? t) { - _roles.value = t; - return this; - } - UpdateInvoiceVariablesBuilder charges(AnyValue? t) { - _charges.value = t; - return this; - } - UpdateInvoiceVariablesBuilder otherCharges(double? t) { - _otherCharges.value = t; - return this; - } - UpdateInvoiceVariablesBuilder subtotal(double? t) { - _subtotal.value = t; - return this; - } - UpdateInvoiceVariablesBuilder amount(double? t) { - _amount.value = t; - return this; - } - UpdateInvoiceVariablesBuilder notes(String? t) { + UpdateVendorRateVariablesBuilder notes(String? t) { _notes.value = t; return this; } - UpdateInvoiceVariablesBuilder staffCount(int? t) { - _staffCount.value = t; - return this; - } - UpdateInvoiceVariablesBuilder chargesCount(int? t) { - _chargesCount.value = t; - return this; - } - UpdateInvoiceVariablesBuilder disputedItems(AnyValue? t) { - _disputedItems.value = t; - return this; - } - UpdateInvoiceVariablesBuilder disputeReason(String? t) { - _disputeReason.value = t; - return this; - } - UpdateInvoiceVariablesBuilder disputeDetails(String? t) { - _disputeDetails.value = t; - return this; - } ... } -ExampleConnector.instance.updateInvoice( +ExampleConnector.instance.updateVendorRate( id: id, ) -.status(status) .vendorId(vendorId) -.businessId(businessId) -.orderId(orderId) -.paymentTerms(paymentTerms) -.invoiceNumber(invoiceNumber) -.issueDate(issueDate) -.dueDate(dueDate) -.hub(hub) -.managerName(managerName) -.vendorNumber(vendorNumber) -.roles(roles) -.charges(charges) -.otherCharges(otherCharges) -.subtotal(subtotal) -.amount(amount) +.roleName(roleName) +.category(category) +.clientRate(clientRate) +.employeeWage(employeeWage) +.markupPercentage(markupPercentage) +.vendorFeePercentage(vendorFeePercentage) +.isActive(isActive) .notes(notes) -.staffCount(staffCount) -.chargesCount(chargesCount) -.disputedItems(disputedItems) -.disputeReason(disputeReason) -.disputeDetails(disputeDetails) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -22920,10 +20440,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateInvoice( +final result = await ExampleConnector.instance.updateVendorRate( id: id, ); -updateInvoiceData data = result.data; +updateVendorRateData data = result.data; final ref = result.ref; ``` @@ -22933,18 +20453,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateInvoice( +final ref = ExampleConnector.instance.updateVendorRate( id: id, ).ref(); ref.execute(); ``` -### deleteInvoice +### deleteVendorRate #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteInvoice( +ExampleConnector.instance.deleteVendorRate( id: id, ).execute(); ``` @@ -22952,7 +20472,7 @@ ExampleConnector.instance.deleteInvoice( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -22962,10 +20482,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteInvoice( +final result = await ExampleConnector.instance.deleteVendorRate( id: id, ); -deleteInvoiceData data = result.data; +deleteVendorRateData data = result.data; final ref = result.ref; ``` @@ -22975,7 +20495,205 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteInvoice( +final ref = ExampleConnector.instance.deleteVendorRate( + 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(); @@ -23470,72 +21188,175 @@ ref.execute(); ``` -### createVendorRate +### createTaxForm #### Required Arguments ```dart -String vendorId = ...; -ExampleConnector.instance.createVendorRate( - vendorId: vendorId, +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 createVendorRate, we created `createVendorRateBuilder`. 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 CreateVendorRateVariablesBuilder { +class CreateTaxFormVariablesBuilder { ... - CreateVendorRateVariablesBuilder roleName(String? t) { - _roleName.value = t; + CreateTaxFormVariablesBuilder mInitial(String? t) { + _mInitial.value = t; return this; } - CreateVendorRateVariablesBuilder category(CategoryType? t) { - _category.value = t; + CreateTaxFormVariablesBuilder oLastName(String? t) { + _oLastName.value = t; return this; } - CreateVendorRateVariablesBuilder clientRate(double? t) { - _clientRate.value = t; + CreateTaxFormVariablesBuilder dob(Timestamp? t) { + _dob.value = t; return this; } - CreateVendorRateVariablesBuilder employeeWage(double? t) { - _employeeWage.value = t; + CreateTaxFormVariablesBuilder email(String? t) { + _email.value = t; return this; } - CreateVendorRateVariablesBuilder markupPercentage(double? t) { - _markupPercentage.value = t; + CreateTaxFormVariablesBuilder phone(String? t) { + _phone.value = t; return this; } - CreateVendorRateVariablesBuilder vendorFeePercentage(double? t) { - _vendorFeePercentage.value = t; + CreateTaxFormVariablesBuilder city(String? t) { + _city.value = t; return this; } - CreateVendorRateVariablesBuilder isActive(bool? t) { - _isActive.value = t; + CreateTaxFormVariablesBuilder apt(String? t) { + _apt.value = t; return this; } - CreateVendorRateVariablesBuilder notes(String? t) { - _notes.value = t; + 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.createVendorRate( - vendorId: vendorId, +ExampleConnector.instance.createTaxForm( + formType: formType, + firstName: firstName, + lastName: lastName, + socialSN: socialSN, + address: address, + status: status, + staffId: staffId, ) -.roleName(roleName) -.category(category) -.clientRate(clientRate) -.employeeWage(employeeWage) -.markupPercentage(markupPercentage) -.vendorFeePercentage(vendorFeePercentage) -.isActive(isActive) -.notes(notes) +.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) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23545,10 +21366,359 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createVendorRate( - vendorId: vendorId, +final result = await ExampleConnector.instance.createTaxForm( + formType: formType, + firstName: firstName, + lastName: lastName, + socialSN: socialSN, + address: address, + status: status, + staffId: staffId, ); -createVendorRateData data = result.data; +createTaxFormData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper 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 = ...; + +final ref = ExampleConnector.instance.createTaxForm( + formType: formType, + firstName: firstName, + lastName: lastName, + socialSN: socialSN, + address: address, + status: status, + staffId: staffId, +).ref(); +ref.execute(); +``` + + +### updateTaxForm +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateTaxForm( + 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. +The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { + ... + 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(); +``` + + +### 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; ``` @@ -23557,85 +21727,458 @@ 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 vendorId = ...; +String title = ...; -final ref = ExampleConnector.instance.createVendorRate( +final ref = ExampleConnector.instance.createVendorBenefitPlan( vendorId: vendorId, + title: title, ).ref(); ref.execute(); ``` -### updateVendorRate +### updateVendorBenefitPlan #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateVendorRate( +ExampleConnector.instance.updateVendorBenefitPlan( 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. +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 UpdateVendorRateVariablesBuilder { +class UpdateVendorBenefitPlanVariablesBuilder { ... - UpdateVendorRateVariablesBuilder vendorId(String? t) { + UpdateVendorBenefitPlanVariablesBuilder vendorId(String? t) { _vendorId.value = t; return this; } - UpdateVendorRateVariablesBuilder roleName(String? t) { - _roleName.value = t; + UpdateVendorBenefitPlanVariablesBuilder title(String? t) { + _title.value = t; return this; } - UpdateVendorRateVariablesBuilder category(CategoryType? t) { - _category.value = t; + UpdateVendorBenefitPlanVariablesBuilder description(String? t) { + _description.value = t; return this; } - UpdateVendorRateVariablesBuilder clientRate(double? t) { - _clientRate.value = t; + UpdateVendorBenefitPlanVariablesBuilder requestLabel(String? t) { + _requestLabel.value = t; return this; } - UpdateVendorRateVariablesBuilder employeeWage(double? t) { - _employeeWage.value = t; + UpdateVendorBenefitPlanVariablesBuilder total(int? t) { + _total.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) { + UpdateVendorBenefitPlanVariablesBuilder isActive(bool? t) { _isActive.value = t; return this; } - UpdateVendorRateVariablesBuilder notes(String? t) { - _notes.value = t; + UpdateVendorBenefitPlanVariablesBuilder createdBy(String? t) { + _createdBy.value = t; return this; } ... } -ExampleConnector.instance.updateVendorRate( +ExampleConnector.instance.updateVendorBenefitPlan( id: id, ) .vendorId(vendorId) -.roleName(roleName) -.category(category) -.clientRate(clientRate) -.employeeWage(employeeWage) -.markupPercentage(markupPercentage) -.vendorFeePercentage(vendorFeePercentage) +.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(); +``` + + +### createInvoice +#### Required Arguments +```dart +InvoiceStatus status = ...; +String vendorId = ...; +String businessId = ...; +String orderId = ...; +String invoiceNumber = ...; +Timestamp issueDate = ...; +Timestamp dueDate = ...; +double amount = ...; +ExampleConnector.instance.createInvoice( + status: status, + vendorId: vendorId, + businessId: businessId, + orderId: orderId, + invoiceNumber: invoiceNumber, + issueDate: issueDate, + dueDate: dueDate, + amount: amount, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createInvoice, we created `createInvoiceBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateInvoiceVariablesBuilder { + ... + CreateInvoiceVariablesBuilder paymentTerms(InovicePaymentTerms? t) { + _paymentTerms.value = t; + return this; + } + CreateInvoiceVariablesBuilder hub(String? t) { + _hub.value = t; + return this; + } + CreateInvoiceVariablesBuilder managerName(String? t) { + _managerName.value = t; + return this; + } + CreateInvoiceVariablesBuilder vendorNumber(String? t) { + _vendorNumber.value = t; + return this; + } + CreateInvoiceVariablesBuilder roles(AnyValue? t) { + _roles.value = t; + return this; + } + CreateInvoiceVariablesBuilder charges(AnyValue? t) { + _charges.value = t; + return this; + } + CreateInvoiceVariablesBuilder otherCharges(double? t) { + _otherCharges.value = t; + return this; + } + CreateInvoiceVariablesBuilder subtotal(double? t) { + _subtotal.value = t; + return this; + } + CreateInvoiceVariablesBuilder notes(String? t) { + _notes.value = t; + return this; + } + CreateInvoiceVariablesBuilder staffCount(int? t) { + _staffCount.value = t; + return this; + } + CreateInvoiceVariablesBuilder chargesCount(int? t) { + _chargesCount.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createInvoice( + status: status, + vendorId: vendorId, + businessId: businessId, + orderId: orderId, + invoiceNumber: invoiceNumber, + issueDate: issueDate, + dueDate: dueDate, + amount: amount, +) +.paymentTerms(paymentTerms) +.hub(hub) +.managerName(managerName) +.vendorNumber(vendorNumber) +.roles(roles) +.charges(charges) +.otherCharges(otherCharges) +.subtotal(subtotal) .notes(notes) +.staffCount(staffCount) +.chargesCount(chargesCount) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23645,10 +22188,17 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateVendorRate( - id: id, +final result = await ExampleConnector.instance.createInvoice( + status: status, + vendorId: vendorId, + businessId: businessId, + orderId: orderId, + invoiceNumber: invoiceNumber, + issueDate: issueDate, + dueDate: dueDate, + amount: amount, ); -updateVendorRateData data = result.data; +createInvoiceData data = result.data; final ref = result.ref; ``` @@ -23656,202 +22206,165 @@ 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 = ...; +InvoiceStatus status = ...; +String vendorId = ...; +String businessId = ...; +String orderId = ...; +String invoiceNumber = ...; +Timestamp issueDate = ...; +Timestamp dueDate = ...; +double amount = ...; -final ref = ExampleConnector.instance.updateVendorRate( - id: id, +final ref = ExampleConnector.instance.createInvoice( + status: status, + vendorId: vendorId, + businessId: businessId, + orderId: orderId, + invoiceNumber: invoiceNumber, + issueDate: issueDate, + dueDate: dueDate, + amount: amount, ).ref(); ref.execute(); ``` -### deleteVendorRate +### updateInvoice #### 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(); -``` - - -### 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 = ...; -ExampleConnector.instance.updateApplicationStatus( +ExampleConnector.instance.updateInvoice( id: id, ).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. +We return a builder for each query. For updateInvoice, we created `updateInvoiceBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { +class UpdateInvoiceVariablesBuilder { ... - UpdateApplicationStatusVariablesBuilder shiftId(String? t) { - _shiftId.value = t; - return this; - } - UpdateApplicationStatusVariablesBuilder staffId(String? t) { - _staffId.value = t; - return this; - } - UpdateApplicationStatusVariablesBuilder status(ApplicationStatus? t) { + UpdateInvoiceVariablesBuilder status(InvoiceStatus? t) { _status.value = t; return this; } - UpdateApplicationStatusVariablesBuilder checkInTime(Timestamp? t) { - _checkInTime.value = t; + UpdateInvoiceVariablesBuilder vendorId(String? t) { + _vendorId.value = t; return this; } - UpdateApplicationStatusVariablesBuilder checkOutTime(Timestamp? t) { - _checkOutTime.value = t; + UpdateInvoiceVariablesBuilder businessId(String? t) { + _businessId.value = t; return this; } - UpdateApplicationStatusVariablesBuilder roleId(String? t) { - _roleId.value = t; + UpdateInvoiceVariablesBuilder orderId(String? t) { + _orderId.value = t; + return this; + } + UpdateInvoiceVariablesBuilder paymentTerms(InovicePaymentTerms? t) { + _paymentTerms.value = t; + return this; + } + UpdateInvoiceVariablesBuilder invoiceNumber(String? t) { + _invoiceNumber.value = t; + return this; + } + UpdateInvoiceVariablesBuilder issueDate(Timestamp? t) { + _issueDate.value = t; + return this; + } + UpdateInvoiceVariablesBuilder dueDate(Timestamp? t) { + _dueDate.value = t; + return this; + } + UpdateInvoiceVariablesBuilder hub(String? t) { + _hub.value = t; + return this; + } + UpdateInvoiceVariablesBuilder managerName(String? t) { + _managerName.value = t; + return this; + } + UpdateInvoiceVariablesBuilder vendorNumber(String? t) { + _vendorNumber.value = t; + return this; + } + UpdateInvoiceVariablesBuilder roles(AnyValue? t) { + _roles.value = t; + return this; + } + UpdateInvoiceVariablesBuilder charges(AnyValue? t) { + _charges.value = t; + return this; + } + UpdateInvoiceVariablesBuilder otherCharges(double? t) { + _otherCharges.value = t; + return this; + } + UpdateInvoiceVariablesBuilder subtotal(double? t) { + _subtotal.value = t; + return this; + } + UpdateInvoiceVariablesBuilder amount(double? t) { + _amount.value = t; + return this; + } + UpdateInvoiceVariablesBuilder notes(String? t) { + _notes.value = t; + return this; + } + UpdateInvoiceVariablesBuilder staffCount(int? t) { + _staffCount.value = t; + return this; + } + UpdateInvoiceVariablesBuilder chargesCount(int? t) { + _chargesCount.value = t; + return this; + } + UpdateInvoiceVariablesBuilder disputedItems(AnyValue? t) { + _disputedItems.value = t; + return this; + } + UpdateInvoiceVariablesBuilder disputeReason(String? t) { + _disputeReason.value = t; + return this; + } + UpdateInvoiceVariablesBuilder disputeDetails(String? t) { + _disputeDetails.value = t; return this; } ... } -ExampleConnector.instance.updateApplicationStatus( +ExampleConnector.instance.updateInvoice( id: id, ) -.shiftId(shiftId) -.staffId(staffId) .status(status) -.checkInTime(checkInTime) -.checkOutTime(checkOutTime) -.roleId(roleId) +.vendorId(vendorId) +.businessId(businessId) +.orderId(orderId) +.paymentTerms(paymentTerms) +.invoiceNumber(invoiceNumber) +.issueDate(issueDate) +.dueDate(dueDate) +.hub(hub) +.managerName(managerName) +.vendorNumber(vendorNumber) +.roles(roles) +.charges(charges) +.otherCharges(otherCharges) +.subtotal(subtotal) +.amount(amount) +.notes(notes) +.staffCount(staffCount) +.chargesCount(chargesCount) +.disputedItems(disputedItems) +.disputeReason(disputeReason) +.disputeDetails(disputeDetails) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23861,10 +22374,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateApplicationStatus( +final result = await ExampleConnector.instance.updateInvoice( id: id, ); -updateApplicationStatusData data = result.data; +updateInvoiceData data = result.data; final ref = result.ref; ``` @@ -23874,18 +22387,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateApplicationStatus( +final ref = ExampleConnector.instance.updateInvoice( id: id, ).ref(); ref.execute(); ``` -### deleteApplication +### deleteInvoice #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteApplication( +ExampleConnector.instance.deleteInvoice( id: id, ).execute(); ``` @@ -23893,7 +22406,7 @@ ExampleConnector.instance.deleteApplication( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -23903,10 +22416,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteApplication( +final result = await ExampleConnector.instance.deleteInvoice( id: id, ); -deleteApplicationData data = result.data; +deleteInvoiceData data = result.data; final ref = result.ref; ``` @@ -23916,85 +22429,98 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteApplication( +final ref = ExampleConnector.instance.deleteInvoice( id: id, ).ref(); ref.execute(); ``` -### CreateCertificate +### createTeam #### Required Arguments ```dart -String name = ...; -CertificateStatus status = ...; -String staffId = ...; -ExampleConnector.instance.createCertificate( - name: name, - status: status, - staffId: staffId, +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 CreateCertificate, we created `CreateCertificateBuilder`. 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 CreateCertificateVariablesBuilder { +class CreateTeamVariablesBuilder { ... - CreateCertificateVariablesBuilder description(String? t) { - _description.value = t; + CreateTeamVariablesBuilder email(String? t) { + _email.value = t; return this; } - CreateCertificateVariablesBuilder expiry(Timestamp? t) { - _expiry.value = t; + CreateTeamVariablesBuilder companyLogo(String? t) { + _companyLogo.value = t; return this; } - CreateCertificateVariablesBuilder fileUrl(String? t) { - _fileUrl.value = t; + CreateTeamVariablesBuilder totalMembers(int? t) { + _totalMembers.value = t; return this; } - CreateCertificateVariablesBuilder icon(String? t) { - _icon.value = t; + CreateTeamVariablesBuilder activeMembers(int? t) { + _activeMembers.value = t; return this; } - CreateCertificateVariablesBuilder certificationType(ComplianceType? t) { - _certificationType.value = t; + CreateTeamVariablesBuilder totalHubs(int? t) { + _totalHubs.value = t; return this; } - CreateCertificateVariablesBuilder issuer(String? t) { - _issuer.value = t; + CreateTeamVariablesBuilder departments(AnyValue? t) { + _departments.value = t; return this; } - CreateCertificateVariablesBuilder validationStatus(ValidationStatus? t) { - _validationStatus.value = t; + CreateTeamVariablesBuilder favoriteStaffCount(int? t) { + _favoriteStaffCount.value = t; return this; } - CreateCertificateVariablesBuilder certificateNumber(String? t) { - _certificateNumber.value = t; + 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.createCertificate( - name: name, - status: status, - staffId: staffId, +ExampleConnector.instance.createTeam( + teamName: teamName, + ownerId: ownerId, + ownerName: ownerName, + ownerRole: ownerRole, ) -.description(description) -.expiry(expiry) -.fileUrl(fileUrl) -.icon(icon) -.certificationType(certificationType) -.issuer(issuer) -.validationStatus(validationStatus) -.certificateNumber(certificateNumber) +.email(email) +.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 { @@ -24004,12 +22530,13 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createCertificate( - name: name, - status: status, - staffId: staffId, +final result = await ExampleConnector.instance.createTeam( + teamName: teamName, + ownerId: ownerId, + ownerName: ownerName, + ownerRole: ownerRole, ); -CreateCertificateData data = result.data; +createTeamData data = result.data; final ref = result.ref; ``` @@ -24017,100 +22544,401 @@ 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 staffId = ...; +String teamName = ...; +String ownerId = ...; +String ownerName = ...; +String ownerRole = ...; -final ref = ExampleConnector.instance.createCertificate( - name: name, - status: status, - staffId: staffId, +final ref = ExampleConnector.instance.createTeam( + teamName: teamName, + ownerId: ownerId, + ownerName: ownerName, + ownerRole: ownerRole, ).ref(); ref.execute(); ``` -### UpdateCertificate +### updateTeam #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.updateCertificate( +ExampleConnector.instance.updateTeam( id: id, ).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 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 UpdateCertificateVariablesBuilder { +class UpdateTeamVariablesBuilder { ... - UpdateCertificateVariablesBuilder name(String? t) { - _name.value = t; + UpdateTeamVariablesBuilder teamName(String? t) { + _teamName.value = t; return this; } - UpdateCertificateVariablesBuilder description(String? t) { - _description.value = t; + UpdateTeamVariablesBuilder ownerName(String? t) { + _ownerName.value = t; return this; } - UpdateCertificateVariablesBuilder expiry(Timestamp? t) { - _expiry.value = t; + UpdateTeamVariablesBuilder ownerRole(String? t) { + _ownerRole.value = t; return this; } - UpdateCertificateVariablesBuilder status(CertificateStatus? t) { + UpdateTeamVariablesBuilder companyLogo(String? t) { + _companyLogo.value = t; + return this; + } + UpdateTeamVariablesBuilder totalMembers(int? t) { + _totalMembers.value = t; + return this; + } + UpdateTeamVariablesBuilder activeMembers(int? t) { + _activeMembers.value = t; + return this; + } + UpdateTeamVariablesBuilder totalHubs(int? t) { + _totalHubs.value = t; + return this; + } + UpdateTeamVariablesBuilder 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( + id: id, +) +.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` +```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.updateTeam( + id: id, +); +updateTeamData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.updateTeam( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteTeam +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteTeam( + 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.deleteTeam( + id: id, +); +deleteTeamData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.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(); +``` + + +### createConversation +#### Required Arguments +```dart +// No required arguments +ExampleConnector.instance.createConversation().execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createConversation, we created `createConversationBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateConversationVariablesBuilder { + ... + + CreateConversationVariablesBuilder subject(String? t) { + _subject.value = t; + return this; + } + CreateConversationVariablesBuilder status(ConversationStatus? t) { _status.value = t; return this; } - UpdateCertificateVariablesBuilder fileUrl(String? t) { - _fileUrl.value = t; + CreateConversationVariablesBuilder conversationType(ConversationType? t) { + _conversationType.value = t; return this; } - UpdateCertificateVariablesBuilder icon(String? t) { - _icon.value = t; + CreateConversationVariablesBuilder isGroup(bool? t) { + _isGroup.value = t; return this; } - UpdateCertificateVariablesBuilder staffId(String? t) { - _staffId.value = t; + CreateConversationVariablesBuilder groupName(String? t) { + _groupName.value = t; return this; } - UpdateCertificateVariablesBuilder certificationType(ComplianceType? t) { - _certificationType.value = t; + CreateConversationVariablesBuilder lastMessage(String? t) { + _lastMessage.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; + CreateConversationVariablesBuilder lastMessageAt(Timestamp? t) { + _lastMessageAt.value = t; return this; } ... } -ExampleConnector.instance.updateCertificate( - id: id, -) -.name(name) -.description(description) -.expiry(expiry) +ExampleConnector.instance.createConversation() +.subject(subject) .status(status) -.fileUrl(fileUrl) -.icon(icon) -.staffId(staffId) -.certificationType(certificationType) -.issuer(issuer) -.validationStatus(validationStatus) -.certificateNumber(certificateNumber) +.conversationType(conversationType) +.isGroup(isGroup) +.groupName(groupName) +.lastMessage(lastMessage) +.lastMessageAt(lastMessageAt) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -24120,10 +22948,8 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateCertificate( - id: id, -); -UpdateCertificateData data = result.data; +final result = await ExampleConnector.instance.createConversation(); +createConversationData data = result.data; final ref = result.ref; ``` @@ -24131,153 +22957,72 @@ 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 = ...; - -final ref = ExampleConnector.instance.updateCertificate( - id: id, -).ref(); +final ref = ExampleConnector.instance.createConversation().ref(); ref.execute(); ``` -### DeleteCertificate +### updateConversation #### 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(); -``` - - -### 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( +ExampleConnector.instance.updateConversation( 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 updateConversation, we created `updateConversationBuilder`. For queries and mutations with optional parameters, we return a builder class. The builder pattern allows Data Connect to distinguish between fields that haven't been 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 UpdateConversationVariablesBuilder { ... - UpdateFaqDataVariablesBuilder category(String? t) { - _category.value = t; + UpdateConversationVariablesBuilder subject(String? t) { + _subject.value = t; return this; } - UpdateFaqDataVariablesBuilder questions(List? t) { - _questions.value = t; + UpdateConversationVariablesBuilder status(ConversationStatus? t) { + _status.value = t; + return this; + } + UpdateConversationVariablesBuilder conversationType(ConversationType? t) { + _conversationType.value = t; + return this; + } + UpdateConversationVariablesBuilder isGroup(bool? t) { + _isGroup.value = t; + return this; + } + UpdateConversationVariablesBuilder groupName(String? t) { + _groupName.value = t; + return this; + } + UpdateConversationVariablesBuilder lastMessage(String? t) { + _lastMessage.value = t; + return this; + } + UpdateConversationVariablesBuilder lastMessageAt(Timestamp? t) { + _lastMessageAt.value = t; return this; } ... } -ExampleConnector.instance.updateFaqData( +ExampleConnector.instance.updateConversation( id: id, ) -.category(category) -.questions(questions) +.subject(subject) +.status(status) +.conversationType(conversationType) +.isGroup(isGroup) +.groupName(groupName) +.lastMessage(lastMessage) +.lastMessageAt(lastMessageAt) .execute(); ``` #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -24287,10 +23032,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateFaqData( +final result = await ExampleConnector.instance.updateConversation( id: id, ); -updateFaqDataData data = result.data; +updateConversationData data = result.data; final ref = result.ref; ``` @@ -24300,18 +23045,83 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateFaqData( +final ref = ExampleConnector.instance.updateConversation( id: id, ).ref(); ref.execute(); ``` -### deleteFaqData +### updateConversationLastMessage #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteFaqData( +ExampleConnector.instance.updateConversationLastMessage( + id: id, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For updateConversationLastMessage, we created `updateConversationLastMessageBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class UpdateConversationLastMessageVariablesBuilder { + ... + UpdateConversationLastMessageVariablesBuilder lastMessage(String? t) { + _lastMessage.value = t; + return this; + } + UpdateConversationLastMessageVariablesBuilder lastMessageAt(Timestamp? t) { + _lastMessageAt.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateConversationLastMessage( + id: id, +) +.lastMessage(lastMessage) +.lastMessageAt(lastMessageAt) +.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.updateConversationLastMessage( + id: id, +); +updateConversationLastMessageData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.updateConversationLastMessage( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteConversation +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteConversation( id: id, ).execute(); ``` @@ -24319,7 +23129,7 @@ ExampleConnector.instance.deleteFaqData( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -24329,10 +23139,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteFaqData( +final result = await ExampleConnector.instance.deleteConversation( id: id, ); -deleteFaqDataData data = result.data; +deleteConversationData data = result.data; final ref = result.ref; ``` @@ -24342,32 +23152,346 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteFaqData( +final ref = ExampleConnector.instance.deleteConversation( id: id, ).ref(); ref.execute(); ``` -### createRole +### createStaffRole +#### Required Arguments +```dart +String staffId = ...; +String roleId = ...; +ExampleConnector.instance.createStaffRole( + staffId: staffId, + roleId: roleId, +).execute(); +``` + +#### Optional Arguments +We return a builder for each query. For createStaffRole, we created `createStaffRoleBuilder`. For queries and mutations with optional parameters, we return a builder class. +The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: +```dart +class CreateStaffRoleVariablesBuilder { + ... + CreateStaffRoleVariablesBuilder roleType(RoleType? t) { + _roleType.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createStaffRole( + staffId: staffId, + roleId: roleId, +) +.roleType(roleType) +.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.createStaffRole( + staffId: staffId, + roleId: roleId, +); +createStaffRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.createStaffRole( + staffId: staffId, + roleId: roleId, +).ref(); +ref.execute(); +``` + + +### deleteStaffRole +#### Required Arguments +```dart +String staffId = ...; +String roleId = ...; +ExampleConnector.instance.deleteStaffRole( + staffId: staffId, + 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.deleteStaffRole( + staffId: staffId, + roleId: roleId, +); +deleteStaffRoleData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.deleteStaffRole( + staffId: staffId, + roleId: roleId, +).ref(); +ref.execute(); +``` + + +### createTaskComment +#### Required Arguments +```dart +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 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 CreateTaskCommentVariablesBuilder { + ... + CreateTaskCommentVariablesBuilder isSystem(bool? t) { + _isSystem.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createTaskComment( + taskId: taskId, + teamMemberId: teamMemberId, + comment: comment, +) +.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.createTaskComment( + taskId: taskId, + teamMemberId: teamMemberId, + comment: comment, +); +createTaskCommentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 = ...; + +final ref = ExampleConnector.instance.createTaskComment( + taskId: taskId, + teamMemberId: teamMemberId, + comment: comment, +).ref(); +ref.execute(); +``` + + +### updateTaskComment +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateTaskComment( + 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. +The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { + ... + UpdateTaskCommentVariablesBuilder comment(String? t) { + _comment.value = t; + return this; + } + UpdateTaskCommentVariablesBuilder isSystem(bool? t) { + _isSystem.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateTaskComment( + id: id, +) +.comment(comment) +.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.updateTaskComment( + id: id, +); +updateTaskCommentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.updateTaskComment( + id: id, +).ref(); +ref.execute(); +``` + + +### deleteTaskComment +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteTaskComment( + 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.deleteTaskComment( + id: id, +); +deleteTaskCommentData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.deleteTaskComment( + id: id, +).ref(); +ref.execute(); +``` + + +### createCustomRateCard #### Required Arguments ```dart String name = ...; -double costPerHour = ...; -String vendorId = ...; -String roleCategoryId = ...; -ExampleConnector.instance.createRole( +ExampleConnector.instance.createCustomRateCard( name: name, - costPerHour: costPerHour, - vendorId: vendorId, - roleCategoryId: roleCategoryId, ).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` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -24377,13 +23501,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.createRole( +final result = await ExampleConnector.instance.createCustomRateCard( name: name, - costPerHour: costPerHour, - vendorId: vendorId, - roleCategoryId: roleCategoryId, ); -createRoleData data = result.data; +createCustomRateCardData data = result.data; final ref = result.ref; ``` @@ -24392,582 +23513,60 @@ 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 = ...; -double costPerHour = ...; -String vendorId = ...; -String roleCategoryId = ...; -final ref = ExampleConnector.instance.createRole( +final ref = ExampleConnector.instance.createCustomRateCard( name: name, - costPerHour: costPerHour, - vendorId: vendorId, - roleCategoryId: roleCategoryId, ).ref(); ref.execute(); ``` -### updateRole +### updateCustomRateCard #### Required Arguments ```dart String id = ...; -String roleCategoryId = ...; -ExampleConnector.instance.updateRole( +ExampleConnector.instance.updateCustomRateCard( 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. +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 UpdateRoleVariablesBuilder { +class UpdateCustomRateCardVariablesBuilder { ... - UpdateRoleVariablesBuilder name(String? t) { + UpdateCustomRateCardVariablesBuilder name(String? t) { _name.value = t; return this; } - UpdateRoleVariablesBuilder costPerHour(double? t) { - _costPerHour.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.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(); -``` - - -### 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(); -``` - - -### createDocument -#### Required Arguments -```dart -DocumentType documentType = ...; -String name = ...; -ExampleConnector.instance.createDocument( - documentType: documentType, - name: name, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For createDocument, we created `createDocumentBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class CreateDocumentVariablesBuilder { - ... - CreateDocumentVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - - ... -} -ExampleConnector.instance.createDocument( - documentType: documentType, - name: name, -) -.description(description) -.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.createDocument( - documentType: documentType, - name: name, -); -createDocumentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper 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 = ...; -String name = ...; - -final ref = ExampleConnector.instance.createDocument( - documentType: documentType, - name: name, -).ref(); -ref.execute(); -``` - - -### updateDocument -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.updateDocument( - id: id, -).execute(); -``` - -#### Optional Arguments -We return a builder for each query. For updateDocument, we created `updateDocumentBuilder`. For queries and mutations with optional parameters, we return a builder class. -The builder pattern allows Data Connect to distinguish between fields that haven't been set and fields that have been set to null. A field can be set by calling its respective setter method like below: -```dart -class UpdateDocumentVariablesBuilder { - ... - UpdateDocumentVariablesBuilder documentType(DocumentType? t) { - _documentType.value = t; - return this; - } - UpdateDocumentVariablesBuilder name(String? t) { - _name.value = t; - return this; - } - UpdateDocumentVariablesBuilder description(String? t) { - _description.value = t; - return this; - } - - ... -} -ExampleConnector.instance.updateDocument( - id: id, -) -.documentType(documentType) -.name(name) -.description(description) -.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.updateDocument( - id: id, -); -updateDocumentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.updateDocument( - id: id, -).ref(); -ref.execute(); -``` - - -### deleteDocument -#### Required Arguments -```dart -String id = ...; -ExampleConnector.instance.deleteDocument( - 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.deleteDocument( - id: id, -); -deleteDocumentData data = result.data; -final ref = result.ref; -``` - -#### Getting the Ref -Each builder returns an `execute` function, which is a helper function 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.deleteDocument( - 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( +ExampleConnector.instance.updateCustomRateCard( id: id, ) .name(name) -.xpRequired(xpRequired) -.icon(icon) -.colors(colors) +.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 { @@ -24977,10 +23576,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.updateLevel( +final result = await ExampleConnector.instance.updateCustomRateCard( id: id, ); -updateLevelData data = result.data; +updateCustomRateCardData data = result.data; final ref = result.ref; ``` @@ -24990,18 +23589,18 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.updateLevel( +final ref = ExampleConnector.instance.updateCustomRateCard( id: id, ).ref(); ref.execute(); ``` -### deleteLevel +### deleteCustomRateCard #### Required Arguments ```dart String id = ...; -ExampleConnector.instance.deleteLevel( +ExampleConnector.instance.deleteCustomRateCard( id: id, ).execute(); ``` @@ -25009,7 +23608,7 @@ ExampleConnector.instance.deleteLevel( #### Return Type -`execute()` returns a `OperationResult` +`execute()` returns a `OperationResult` ```dart /// Result of an Operation Request (query/mutation). class OperationResult { @@ -25019,10 +23618,10 @@ class OperationResult { FirebaseDataConnect dataConnect; } -final result = await ExampleConnector.instance.deleteLevel( +final result = await ExampleConnector.instance.deleteCustomRateCard( id: id, ); -deleteLevelData data = result.data; +deleteCustomRateCardData data = result.data; final ref = result.ref; ``` @@ -25032,7 +23631,290 @@ An example of how to use the `Ref` object is shown below: ```dart String id = ...; -final ref = ExampleConnector.instance.deleteLevel( +final ref = ExampleConnector.instance.deleteCustomRateCard( + 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(); +``` + + +### 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(); @@ -25244,3 +24126,1121 @@ final ref = ExampleConnector.instance.deleteStaffAvailability( 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(); +``` + + +### 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 = ...; +ExampleConnector.instance.createTask( + taskName: taskName, + priority: priority, + 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. +The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { + ... + CreateTaskVariablesBuilder description(String? t) { + _description.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; + 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(); +``` + + +### CreateUser +#### Required Arguments +```dart +String id = ...; +UserBaseRole role = ...; +ExampleConnector.instance.createUser( + id: id, + role: role, +).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. +The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { + ... + CreateUserVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + CreateUserVariablesBuilder fullName(String? t) { + _fullName.value = t; + return this; + } + CreateUserVariablesBuilder userRole(String? t) { + _userRole.value = t; + return this; + } + CreateUserVariablesBuilder photoUrl(String? t) { + _photoUrl.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createUser( + id: id, + role: role, +) +.email(email) +.fullName(fullName) +.userRole(userRole) +.photoUrl(photoUrl) +.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.createUser( + id: id, + role: role, +); +CreateUserData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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 = ...; + +final ref = ExampleConnector.instance.createUser( + id: id, + role: role, +).ref(); +ref.execute(); +``` + + +### UpdateUser +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.updateUser( + 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. +The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { + ... + UpdateUserVariablesBuilder email(String? t) { + _email.value = t; + return this; + } + UpdateUserVariablesBuilder fullName(String? t) { + _fullName.value = t; + return this; + } + UpdateUserVariablesBuilder role(UserBaseRole? t) { + _role.value = t; + return this; + } + UpdateUserVariablesBuilder userRole(String? t) { + _userRole.value = t; + return this; + } + UpdateUserVariablesBuilder photoUrl(String? t) { + _photoUrl.value = t; + return this; + } + + ... +} +ExampleConnector.instance.updateUser( + id: id, +) +.email(email) +.fullName(fullName) +.role(role) +.userRole(userRole) +.photoUrl(photoUrl) +.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.updateUser( + id: id, +); +UpdateUserData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.updateUser( + id: id, +).ref(); +ref.execute(); +``` + + +### DeleteUser +#### Required Arguments +```dart +String id = ...; +ExampleConnector.instance.deleteUser( + 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.deleteUser( + id: id, +); +DeleteUserData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.deleteUser( + id: id, +).ref(); +ref.execute(); +``` + + +### createUserConversation +#### Required Arguments +```dart +String conversationId = ...; +String userId = ...; +ExampleConnector.instance.createUserConversation( + conversationId: conversationId, + userId: userId, +).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. +The builder pattern allows Data Connect to distinguish between fields that haven't been 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 { + ... + CreateUserConversationVariablesBuilder unreadCount(int? t) { + _unreadCount.value = t; + return this; + } + CreateUserConversationVariablesBuilder lastReadAt(Timestamp? t) { + _lastReadAt.value = t; + return this; + } + + ... +} +ExampleConnector.instance.createUserConversation( + 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.createUserConversation( + conversationId: conversationId, + userId: userId, +); +createUserConversationData data = result.data; +final ref = result.ref; +``` + +#### Getting the Ref +Each builder returns an `execute` function, which is a helper function 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.createUserConversation( + conversationId: conversationId, + userId: userId, +).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(); +``` + 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 d093af9c..b0b45c12 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,33 +4,59 @@ import 'package:flutter/foundation.dart'; import 'dart:convert'; import 'package:flutter/foundation.dart'; -part 'create_task_comment.dart'; +part 'list_conversations.dart'; -part 'update_task_comment.dart'; +part 'get_conversation_by_id.dart'; -part 'delete_task_comment.dart'; +part 'list_conversations_by_type.dart'; -part 'create_tax_form.dart'; +part 'list_conversations_by_status.dart'; -part 'update_tax_form.dart'; +part 'filter_conversations.dart'; -part 'delete_tax_form.dart'; +part 'create_team_hub.dart'; -part 'create_user_conversation.dart'; +part 'update_team_hub.dart'; -part 'update_user_conversation.dart'; +part 'delete_team_hub.dart'; -part 'mark_conversation_as_read.dart'; +part 'create_workforce.dart'; -part 'increment_unread_for_user.dart'; +part 'update_workforce.dart'; -part 'delete_user_conversation.dart'; +part 'deactivate_workforce.dart'; -part 'list_emergency_contacts.dart'; +part 'list_client_feedbacks.dart'; -part 'get_emergency_contact_by_id.dart'; +part 'get_client_feedback_by_id.dart'; -part 'get_emergency_contacts_by_staff_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_faq_datas.dart'; + +part 'get_faq_data_by_id.dart'; + +part 'filter_faq_datas.dart'; + +part 'create_order.dart'; + +part 'update_order.dart'; + +part 'delete_order.dart'; + +part 'create_recent_payment.dart'; + +part 'update_recent_payment.dart'; + +part 'delete_recent_payment.dart'; part 'get_shift_role_by_id.dart'; @@ -52,401 +78,25 @@ part 'list_shift_roles_by_business_and_dates_summary.dart'; part 'get_completed_shifts_by_business_id.dart'; -part 'create_task.dart'; +part 'list_staff_availabilities.dart'; -part 'update_task.dart'; +part 'list_staff_availabilities_by_staff_id.dart'; -part 'delete_task.dart'; +part 'get_staff_availability_by_key.dart'; -part 'list_task_comments.dart'; +part 'list_staff_availabilities_by_day.dart'; -part 'get_task_comment_by_id.dart'; +part 'create_team_hud_department.dart'; -part 'get_task_comments_by_task_id.dart'; +part 'update_team_hud_department.dart'; -part 'create_team_hub.dart'; +part 'delete_team_hud_department.dart'; -part 'update_team_hub.dart'; +part 'create_vendor.dart'; -part 'delete_team_hub.dart'; +part 'update_vendor.dart'; -part 'list_team_members.dart'; - -part 'get_team_member_by_id.dart'; - -part 'get_team_members_by_team_id.dart'; - -part 'create_order.dart'; - -part 'update_order.dart'; - -part 'delete_order.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_orders_by_business_and_team_hub.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_teams.dart'; - -part 'get_team_by_id.dart'; - -part 'get_teams_by_owner_id.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 'list_attire_options.dart'; - -part 'get_attire_option_by_id.dart'; - -part 'filter_attire_options.dart'; - -part 'list_categories.dart'; - -part 'get_category_by_id.dart'; - -part 'filter_categories.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 '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 'list_staff.dart'; - -part 'get_staff_by_id.dart'; - -part 'get_staff_by_user_id.dart'; - -part 'filter_staff.dart'; - -part 'create_team.dart'; - -part 'update_team.dart'; - -part 'delete_team.dart'; - -part 'create_vendor_benefit_plan.dart'; - -part 'update_vendor_benefit_plan.dart'; - -part 'delete_vendor_benefit_plan.dart'; - -part 'list_documents.dart'; - -part 'get_document_by_id.dart'; - -part 'filter_documents.dart'; - -part 'create_shift.dart'; - -part 'update_shift.dart'; - -part 'delete_shift.dart'; - -part 'create_staff_course.dart'; - -part 'update_staff_course.dart'; - -part 'delete_staff_course.dart'; - -part 'list_tasks.dart'; - -part 'get_task_by_id.dart'; - -part 'get_tasks_by_owner_id.dart'; - -part 'filter_tasks.dart'; - -part 'list_users.dart'; - -part 'get_user_by_id.dart'; - -part 'filter_users.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_custom_rate_cards.dart'; - -part 'get_custom_rate_card_by_id.dart'; - -part 'create_hub.dart'; - -part 'update_hub.dart'; - -part 'delete_hub.dart'; - -part 'create_message.dart'; - -part 'update_message.dart'; - -part 'delete_message.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_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 'vaidate_day_staff_application.dart'; - -part 'get_application_by_staff_shift_and_role.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_completed_applications_by_staff_id.dart'; - -part 'list_certificates.dart'; - -part 'get_certificate_by_id.dart'; - -part 'list_certificates_by_staff_id.dart'; - -part 'list_faq_datas.dart'; - -part 'get_faq_data_by_id.dart'; - -part 'filter_faq_datas.dart'; - -part 'create_invoice_template.dart'; - -part 'update_invoice_template.dart'; - -part 'delete_invoice_template.dart'; - -part 'list_levels.dart'; - -part 'get_level_by_id.dart'; - -part 'filter_levels.dart'; - -part 'list_messages.dart'; - -part 'get_message_by_id.dart'; - -part 'get_messages_by_conversation_id.dart'; - -part 'create_staff_role.dart'; - -part 'delete_staff_role.dart'; - -part 'list_businesses.dart'; - -part 'get_businesses_by_user_id.dart'; - -part 'get_business_by_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 'get_my_tasks.dart'; - -part 'get_member_task_by_id_key.dart'; - -part 'get_member_tasks_by_task_id.dart'; - -part 'create_staff_availability_stats.dart'; - -part 'update_staff_availability_stats.dart'; - -part 'delete_staff_availability_stats.dart'; - -part 'list_vendor_rates.dart'; - -part 'get_vendor_rate_by_id.dart'; - -part 'create_assignment.dart'; - -part 'update_assignment.dart'; - -part 'delete_assignment.dart'; - -part 'create_benefits_data.dart'; - -part 'update_benefits_data.dart'; - -part 'delete_benefits_data.dart'; - -part 'create_emergency_contact.dart'; - -part 'update_emergency_contact.dart'; - -part 'delete_emergency_contact.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_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_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_account.dart'; - -part 'update_account.dart'; - -part 'delete_account.dart'; - -part 'create_conversation.dart'; - -part 'update_conversation.dart'; - -part 'update_conversation_last_message.dart'; - -part 'delete_conversation.dart'; - -part 'create_course.dart'; - -part 'update_course.dart'; - -part 'delete_course.dart'; - -part 'create_member_task.dart'; - -part 'delete_member_task.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 '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 'list_accounts.dart'; - -part 'get_account_by_id.dart'; - -part 'get_accounts_by_owner_id.dart'; - -part 'filter_accounts.dart'; +part 'delete_vendor.dart'; part 'create_activity_log.dart'; @@ -458,109 +108,23 @@ part 'mark_activity_logs_as_read.dart'; part 'delete_activity_log.dart'; -part 'create_attire_option.dart'; +part 'create_course.dart'; -part 'update_attire_option.dart'; +part 'update_course.dart'; -part 'delete_attire_option.dart'; +part 'delete_course.dart'; -part 'create_custom_rate_card.dart'; +part 'list_emergency_contacts.dart'; -part 'update_custom_rate_card.dart'; +part 'get_emergency_contact_by_id.dart'; -part 'delete_custom_rate_card.dart'; +part 'get_emergency_contacts_by_staff_id.dart'; -part 'list_hubs.dart'; +part 'create_faq_data.dart'; -part 'get_hub_by_id.dart'; +part 'update_faq_data.dart'; -part 'get_hubs_by_owner_id.dart'; - -part 'filter_hubs.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_business.dart'; - -part 'update_business.dart'; - -part 'delete_business.dart'; - -part 'create_client_feedback.dart'; - -part 'update_client_feedback.dart'; - -part 'delete_client_feedback.dart'; - -part 'list_invoice_templates.dart'; - -part 'get_invoice_template_by_id.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 '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 '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_team_hud_department.dart'; - -part 'update_team_hud_department.dart'; - -part 'delete_team_hud_department.dart'; - -part 'get_vendor_by_id.dart'; - -part 'get_vendor_by_user_id.dart'; - -part 'list_vendors.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 'delete_faq_data.dart'; part 'list_shifts_for_coverage.dart'; @@ -600,23 +164,205 @@ part 'list_applications_for_performance.dart'; part 'list_staff_for_performance.dart'; -part 'create_staff_document.dart'; +part 'list_shifts.dart'; -part 'update_staff_document.dart'; +part 'get_shift_by_id.dart'; -part 'delete_staff_document.dart'; +part 'filter_shifts.dart'; -part 'create_user.dart'; +part 'get_shifts_by_business_id.dart'; -part 'update_user.dart'; +part 'get_shifts_by_vendor_id.dart'; -part 'delete_user.dart'; +part 'list_activity_logs.dart'; -part 'create_vendor.dart'; +part 'get_activity_log_by_id.dart'; -part 'update_vendor.dart'; +part 'list_activity_logs_by_user_id.dart'; -part 'delete_vendor.dart'; +part 'list_unread_activity_logs_by_user_id.dart'; + +part 'filter_activity_logs.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 'vaidate_day_staff_application.dart'; + +part 'get_application_by_staff_shift_and_role.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_completed_applications_by_staff_id.dart'; + +part 'create_assignment.dart'; + +part 'update_assignment.dart'; + +part 'delete_assignment.dart'; + +part 'list_custom_rate_cards.dart'; + +part 'get_custom_rate_card_by_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_orders_by_business_and_team_hub.dart'; + +part 'create_shift.dart'; + +part 'update_shift.dart'; + +part 'delete_shift.dart'; + +part 'create_certificate.dart'; + +part 'update_certificate.dart'; + +part 'delete_certificate.dart'; + +part 'list_documents.dart'; + +part 'get_document_by_id.dart'; + +part 'filter_documents.dart'; + +part 'create_level.dart'; + +part 'update_level.dart'; + +part 'delete_level.dart'; + +part 'create_shift_role.dart'; + +part 'update_shift_role.dart'; + +part 'delete_shift_role.dart'; + +part 'create_business.dart'; + +part 'update_business.dart'; + +part 'delete_business.dart'; + +part 'list_invoice_templates.dart'; + +part 'get_invoice_template_by_id.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 'get_my_tasks.dart'; + +part 'get_member_task_by_id_key.dart'; + +part 'get_member_tasks_by_task_id.dart'; + +part 'list_role_categories.dart'; + +part 'get_role_category_by_id.dart'; + +part 'get_role_categories_by_category.dart'; + +part 'create_staff_availability_stats.dart'; + +part 'update_staff_availability_stats.dart'; + +part 'delete_staff_availability_stats.dart'; + +part 'list_users.dart'; + +part 'get_user_by_id.dart'; + +part 'filter_users.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 'get_vendor_by_id.dart'; + +part 'get_vendor_by_user_id.dart'; + +part 'list_vendors.dart'; + +part 'create_document.dart'; + +part 'update_document.dart'; + +part 'delete_document.dart'; + +part 'create_account.dart'; + +part 'update_account.dart'; + +part 'delete_account.dart'; + +part 'list_staff_availability_stats.dart'; + +part 'get_staff_availability_stats_by_staff_id.dart'; + +part 'filter_staff_availability_stats.dart'; + +part 'create_staff_course.dart'; + +part 'update_staff_course.dart'; + +part 'delete_staff_course.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_teams.dart'; + +part 'get_team_by_id.dart'; + +part 'get_teams_by_owner_id.dart'; part 'list_assignments.dart'; @@ -630,43 +376,23 @@ part 'list_assignments_by_shift_role.dart'; part 'filter_assignments.dart'; -part 'create_category.dart'; +part 'list_benefits_data.dart'; -part 'update_category.dart'; +part 'get_benefits_data_by_key.dart'; -part 'delete_category.dart'; +part 'list_benefits_data_by_staff_id.dart'; -part 'list_courses.dart'; +part 'list_benefits_data_by_vendor_benefit_plan_id.dart'; -part 'get_course_by_id.dart'; +part 'list_benefits_data_by_vendor_benefit_plan_ids.dart'; -part 'filter_courses.dart'; +part 'list_hubs.dart'; -part 'create_invoice.dart'; +part 'get_hub_by_id.dart'; -part 'update_invoice.dart'; +part 'get_hubs_by_owner_id.dart'; -part 'delete_invoice.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_staff.dart'; - -part 'update_staff.dart'; - -part 'delete_staff.dart'; - -part 'create_vendor_rate.dart'; - -part 'update_vendor_rate.dart'; - -part 'delete_vendor_rate.dart'; +part 'filter_hubs.dart'; part 'get_workforce_by_id.dart'; @@ -678,15 +404,53 @@ part 'list_workforce_by_staff_id.dart'; part 'get_workforce_by_vendor_and_number.dart'; -part 'list_benefits_data.dart'; +part 'create_attire_option.dart'; -part 'get_benefits_data_by_key.dart'; +part 'update_attire_option.dart'; -part 'list_benefits_data_by_staff_id.dart'; +part 'delete_attire_option.dart'; -part 'list_benefits_data_by_vendor_benefit_plan_id.dart'; +part 'list_certificates.dart'; -part 'list_benefits_data_by_vendor_benefit_plan_ids.dart'; +part 'get_certificate_by_id.dart'; + +part 'list_certificates_by_staff_id.dart'; + +part 'create_emergency_contact.dart'; + +part 'update_emergency_contact.dart'; + +part 'delete_emergency_contact.dart'; + +part 'create_invoice_template.dart'; + +part 'update_invoice_template.dart'; + +part 'delete_invoice_template.dart'; + +part 'list_messages.dart'; + +part 'get_message_by_id.dart'; + +part 'get_messages_by_conversation_id.dart'; + +part 'create_staff_document.dart'; + +part 'update_staff_document.dart'; + +part 'delete_staff_document.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 'list_team_members.dart'; + +part 'get_team_member_by_id.dart'; + +part 'get_team_members_by_team_id.dart'; part 'create_application.dart'; @@ -694,23 +458,21 @@ part 'update_application_status.dart'; part 'delete_application.dart'; -part 'create_certificate.dart'; +part 'list_invoices.dart'; -part 'update_certificate.dart'; +part 'get_invoice_by_id.dart'; -part 'delete_certificate.dart'; +part 'list_invoices_by_vendor_id.dart'; -part 'create_faq_data.dart'; +part 'list_invoices_by_business_id.dart'; -part 'update_faq_data.dart'; +part 'list_invoices_by_order_id.dart'; -part 'delete_faq_data.dart'; +part 'list_invoices_by_status.dart'; -part 'create_role.dart'; +part 'filter_invoices.dart'; -part 'update_role.dart'; - -part 'delete_role.dart'; +part 'list_overdue_invoices.dart'; part 'create_role_category.dart'; @@ -718,23 +480,199 @@ part 'update_role_category.dart'; part 'delete_role_category.dart'; -part 'create_document.dart'; +part 'list_staff.dart'; -part 'update_document.dart'; +part 'get_staff_by_id.dart'; -part 'delete_document.dart'; +part 'get_staff_by_user_id.dart'; -part 'create_level.dart'; +part 'filter_staff.dart'; -part 'update_level.dart'; +part 'get_staff_document_by_key.dart'; -part 'delete_level.dart'; +part 'list_staff_documents_by_staff_id.dart'; -part 'list_role_categories.dart'; +part 'list_staff_documents_by_document_type.dart'; -part 'get_role_category_by_id.dart'; +part 'list_staff_documents_by_status.dart'; -part 'get_role_categories_by_category.dart'; +part 'list_task_comments.dart'; + +part 'get_task_comment_by_id.dart'; + +part 'get_task_comments_by_task_id.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 'create_vendor_rate.dart'; + +part 'update_vendor_rate.dart'; + +part 'delete_vendor_rate.dart'; + +part 'list_attire_options.dart'; + +part 'get_attire_option_by_id.dart'; + +part 'filter_attire_options.dart'; + +part 'create_hub.dart'; + +part 'update_hub.dart'; + +part 'delete_hub.dart'; + +part 'create_staff.dart'; + +part 'update_staff.dart'; + +part 'delete_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 'list_accounts.dart'; + +part 'get_account_by_id.dart'; + +part 'get_accounts_by_owner_id.dart'; + +part 'filter_accounts.dart'; + +part 'create_tax_form.dart'; + +part 'update_tax_form.dart'; + +part 'delete_tax_form.dart'; + +part 'create_vendor_benefit_plan.dart'; + +part 'update_vendor_benefit_plan.dart'; + +part 'delete_vendor_benefit_plan.dart'; + +part 'create_client_feedback.dart'; + +part 'update_client_feedback.dart'; + +part 'delete_client_feedback.dart'; + +part 'create_invoice.dart'; + +part 'update_invoice.dart'; + +part 'delete_invoice.dart'; + +part 'list_levels.dart'; + +part 'get_level_by_id.dart'; + +part 'filter_levels.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.dart'; + +part 'update_team.dart'; + +part 'delete_team.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_benefits_data.dart'; + +part 'update_benefits_data.dart'; + +part 'delete_benefits_data.dart'; + +part 'create_conversation.dart'; + +part 'update_conversation.dart'; + +part 'update_conversation_last_message.dart'; + +part 'delete_conversation.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_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_businesses.dart'; + +part 'get_businesses_by_user_id.dart'; + +part 'get_business_by_id.dart'; + +part 'list_categories.dart'; + +part 'get_category_by_id.dart'; + +part 'filter_categories.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 'create_member_task.dart'; + +part 'delete_member_task.dart'; + +part 'create_message.dart'; + +part 'update_message.dart'; + +part 'delete_message.dart'; part 'create_staff_availability.dart'; @@ -742,13 +680,75 @@ part 'update_staff_availability.dart'; part 'delete_staff_availability.dart'; -part 'list_staff_availabilities.dart'; +part 'list_tax_forms.dart'; -part 'list_staff_availabilities_by_staff_id.dart'; +part 'get_tax_form_by_id.dart'; -part 'get_staff_availability_by_key.dart'; +part 'get_tax_forms_by_staff_id.dart'; -part 'list_staff_availabilities_by_day.dart'; +part 'list_tax_forms_where.dart'; + +part 'create_category.dart'; + +part 'update_category.dart'; + +part 'delete_category.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 'create_role.dart'; + +part 'update_role.dart'; + +part 'delete_role.dart'; + +part 'create_task.dart'; + +part 'update_task.dart'; + +part 'delete_task.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_user.dart'; + +part 'update_user.dart'; + +part 'delete_user.dart'; + +part 'create_user_conversation.dart'; + +part 'update_user_conversation.dart'; + +part 'mark_conversation_as_read.dart'; + +part 'increment_unread_for_user.dart'; + +part 'delete_user_conversation.dart'; + +part 'list_vendor_rates.dart'; + +part 'get_vendor_rate_by_id.dart'; @@ -2771,73 +2771,138 @@ class Unknown extends EnumValue { class ExampleConnector { - CreateTaskCommentVariablesBuilder createTaskComment ({required String taskId, required String teamMemberId, required String comment, }) { - return CreateTaskCommentVariablesBuilder(dataConnect, taskId: taskId,teamMemberId: teamMemberId,comment: comment,); + ListConversationsVariablesBuilder listConversations () { + return ListConversationsVariablesBuilder(dataConnect, ); } - UpdateTaskCommentVariablesBuilder updateTaskComment ({required String id, }) { - return UpdateTaskCommentVariablesBuilder(dataConnect, id: id,); + GetConversationByIdVariablesBuilder getConversationById ({required String id, }) { + return GetConversationByIdVariablesBuilder(dataConnect, id: id,); } - DeleteTaskCommentVariablesBuilder deleteTaskComment ({required String id, }) { - return DeleteTaskCommentVariablesBuilder(dataConnect, id: id,); + ListConversationsByTypeVariablesBuilder listConversationsByType ({required ConversationType conversationType, }) { + return ListConversationsByTypeVariablesBuilder(dataConnect, conversationType: conversationType,); } - 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,); + ListConversationsByStatusVariablesBuilder listConversationsByStatus ({required ConversationStatus status, }) { + return ListConversationsByStatusVariablesBuilder(dataConnect, status: status,); } - UpdateTaxFormVariablesBuilder updateTaxForm ({required String id, }) { - return UpdateTaxFormVariablesBuilder(dataConnect, id: id,); + FilterConversationsVariablesBuilder filterConversations () { + return FilterConversationsVariablesBuilder(dataConnect, ); } - DeleteTaxFormVariablesBuilder deleteTaxForm ({required String id, }) { - return DeleteTaxFormVariablesBuilder(dataConnect, id: id,); + CreateTeamHubVariablesBuilder createTeamHub ({required String teamId, required String hubName, required String address, }) { + return CreateTeamHubVariablesBuilder(dataConnect, teamId: teamId,hubName: hubName,address: address,); } - CreateUserConversationVariablesBuilder createUserConversation ({required String conversationId, required String userId, }) { - return CreateUserConversationVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); + UpdateTeamHubVariablesBuilder updateTeamHub ({required String id, }) { + return UpdateTeamHubVariablesBuilder(dataConnect, id: id,); } - UpdateUserConversationVariablesBuilder updateUserConversation ({required String conversationId, required String userId, }) { - return UpdateUserConversationVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); + DeleteTeamHubVariablesBuilder deleteTeamHub ({required String id, }) { + return DeleteTeamHubVariablesBuilder(dataConnect, id: id,); } - MarkConversationAsReadVariablesBuilder markConversationAsRead ({required String conversationId, required String userId, }) { - return MarkConversationAsReadVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); + CreateWorkforceVariablesBuilder createWorkforce ({required String vendorId, required String staffId, required String workforceNumber, }) { + return CreateWorkforceVariablesBuilder(dataConnect, vendorId: vendorId,staffId: staffId,workforceNumber: workforceNumber,); } - IncrementUnreadForUserVariablesBuilder incrementUnreadForUser ({required String conversationId, required String userId, required int unreadCount, }) { - return IncrementUnreadForUserVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,unreadCount: unreadCount,); + UpdateWorkforceVariablesBuilder updateWorkforce ({required String id, }) { + return UpdateWorkforceVariablesBuilder(dataConnect, id: id,); } - DeleteUserConversationVariablesBuilder deleteUserConversation ({required String conversationId, required String userId, }) { - return DeleteUserConversationVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); + DeactivateWorkforceVariablesBuilder deactivateWorkforce ({required String id, }) { + return DeactivateWorkforceVariablesBuilder(dataConnect, id: id,); } - ListEmergencyContactsVariablesBuilder listEmergencyContacts () { - return ListEmergencyContactsVariablesBuilder(dataConnect, ); + ListClientFeedbacksVariablesBuilder listClientFeedbacks () { + return ListClientFeedbacksVariablesBuilder(dataConnect, ); } - GetEmergencyContactByIdVariablesBuilder getEmergencyContactById ({required String id, }) { - return GetEmergencyContactByIdVariablesBuilder(dataConnect, id: id,); + GetClientFeedbackByIdVariablesBuilder getClientFeedbackById ({required String id, }) { + return GetClientFeedbackByIdVariablesBuilder(dataConnect, id: id,); } - GetEmergencyContactsByStaffIdVariablesBuilder getEmergencyContactsByStaffId ({required String staffId, }) { - return GetEmergencyContactsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + 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,); + } + + + ListFaqDatasVariablesBuilder listFaqDatas () { + return ListFaqDatasVariablesBuilder(dataConnect, ); + } + + + GetFaqDataByIdVariablesBuilder getFaqDataById ({required String id, }) { + return GetFaqDataByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterFaqDatasVariablesBuilder filterFaqDatas () { + return FilterFaqDatasVariablesBuilder(dataConnect, ); + } + + + 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,); + } + + + 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,); } @@ -2891,993 +2956,53 @@ class ExampleConnector { } - 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,); + ListStaffAvailabilitiesVariablesBuilder listStaffAvailabilities () { + return ListStaffAvailabilitiesVariablesBuilder(dataConnect, ); } - UpdateTaskVariablesBuilder updateTask ({required String id, }) { - return UpdateTaskVariablesBuilder(dataConnect, id: id,); + ListStaffAvailabilitiesByStaffIdVariablesBuilder listStaffAvailabilitiesByStaffId ({required String staffId, }) { + return ListStaffAvailabilitiesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); } - DeleteTaskVariablesBuilder deleteTask ({required String id, }) { - return DeleteTaskVariablesBuilder(dataConnect, id: id,); + GetStaffAvailabilityByKeyVariablesBuilder getStaffAvailabilityByKey ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { + return GetStaffAvailabilityByKeyVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); } - ListTaskCommentsVariablesBuilder listTaskComments () { - return ListTaskCommentsVariablesBuilder(dataConnect, ); + ListStaffAvailabilitiesByDayVariablesBuilder listStaffAvailabilitiesByDay ({required DayOfWeek day, }) { + return ListStaffAvailabilitiesByDayVariablesBuilder(dataConnect, day: day,); } - GetTaskCommentByIdVariablesBuilder getTaskCommentById ({required String id, }) { - return GetTaskCommentByIdVariablesBuilder(dataConnect, id: id,); + CreateTeamHudDepartmentVariablesBuilder createTeamHudDepartment ({required String name, required String teamHubId, }) { + return CreateTeamHudDepartmentVariablesBuilder(dataConnect, name: name,teamHubId: teamHubId,); } - GetTaskCommentsByTaskIdVariablesBuilder getTaskCommentsByTaskId ({required String taskId, }) { - return GetTaskCommentsByTaskIdVariablesBuilder(dataConnect, taskId: taskId,); + UpdateTeamHudDepartmentVariablesBuilder updateTeamHudDepartment ({required String id, }) { + return UpdateTeamHudDepartmentVariablesBuilder(dataConnect, id: id,); } - CreateTeamHubVariablesBuilder createTeamHub ({required String teamId, required String hubName, required String address, }) { - return CreateTeamHubVariablesBuilder(dataConnect, teamId: teamId,hubName: hubName,address: address,); + DeleteTeamHudDepartmentVariablesBuilder deleteTeamHudDepartment ({required String id, }) { + return DeleteTeamHudDepartmentVariablesBuilder(dataConnect, id: id,); } - UpdateTeamHubVariablesBuilder updateTeamHub ({required String id, }) { - return UpdateTeamHubVariablesBuilder(dataConnect, id: id,); + CreateVendorVariablesBuilder createVendor ({required String userId, required String companyName, }) { + return CreateVendorVariablesBuilder(dataConnect, userId: userId,companyName: companyName,); } - DeleteTeamHubVariablesBuilder deleteTeamHub ({required String id, }) { - return DeleteTeamHubVariablesBuilder(dataConnect, id: id,); + UpdateVendorVariablesBuilder updateVendor ({required String id, }) { + return UpdateVendorVariablesBuilder(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,); - } - - - 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,); - } - - - 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, ); - } - - - ListOrdersByBusinessAndTeamHubVariablesBuilder listOrdersByBusinessAndTeamHub ({required String businessId, required String teamHubId, }) { - return ListOrdersByBusinessAndTeamHubVariablesBuilder(dataConnect, businessId: businessId,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,); - } - - - 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,); - } - - - 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,); - } - - - ListAttireOptionsVariablesBuilder listAttireOptions () { - return ListAttireOptionsVariablesBuilder(dataConnect, ); - } - - - GetAttireOptionByIdVariablesBuilder getAttireOptionById ({required String id, }) { - return GetAttireOptionByIdVariablesBuilder(dataConnect, id: id,); - } - - - FilterAttireOptionsVariablesBuilder filterAttireOptions () { - return FilterAttireOptionsVariablesBuilder(dataConnect, ); - } - - - ListCategoriesVariablesBuilder listCategories () { - return ListCategoriesVariablesBuilder(dataConnect, ); - } - - - GetCategoryByIdVariablesBuilder getCategoryById ({required String id, }) { - return GetCategoryByIdVariablesBuilder(dataConnect, id: id,); - } - - - FilterCategoriesVariablesBuilder filterCategories () { - return FilterCategoriesVariablesBuilder(dataConnect, ); - } - - - 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, ); - } - - - 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,); - } - - - 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, ); - } - - - 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,); - } - - - 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,); - } - - - ListDocumentsVariablesBuilder listDocuments () { - return ListDocumentsVariablesBuilder(dataConnect, ); - } - - - GetDocumentByIdVariablesBuilder getDocumentById ({required String id, }) { - return GetDocumentByIdVariablesBuilder(dataConnect, id: id,); - } - - - FilterDocumentsVariablesBuilder filterDocuments () { - return FilterDocumentsVariablesBuilder(dataConnect, ); - } - - - 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,); - } - - - 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,); - } - - - 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, ); - } - - - ListUsersVariablesBuilder listUsers () { - return ListUsersVariablesBuilder(dataConnect, ); - } - - - GetUserByIdVariablesBuilder getUserById ({required String id, }) { - return GetUserByIdVariablesBuilder(dataConnect, id: id,); - } - - - FilterUsersVariablesBuilder filterUsers () { - return FilterUsersVariablesBuilder(dataConnect, ); - } - - - 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, ); - } - - - ListCustomRateCardsVariablesBuilder listCustomRateCards () { - return ListCustomRateCardsVariablesBuilder(dataConnect, ); - } - - - GetCustomRateCardByIdVariablesBuilder getCustomRateCardById ({required String id, }) { - return GetCustomRateCardByIdVariablesBuilder(dataConnect, id: id,); - } - - - 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,); - } - - - 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,); - } - - - 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, ); - } - - - 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,); - } - - - VaidateDayStaffApplicationVariablesBuilder vaidateDayStaffApplication ({required String staffId, }) { - return VaidateDayStaffApplicationVariablesBuilder(dataConnect, staffId: staffId,); - } - - - GetApplicationByStaffShiftAndRoleVariablesBuilder getApplicationByStaffShiftAndRole ({required String staffId, required String shiftId, required String roleId, }) { - return GetApplicationByStaffShiftAndRoleVariablesBuilder(dataConnect, staffId: staffId,shiftId: shiftId,roleId: roleId,); - } - - - 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,); - } - - - ListCompletedApplicationsByStaffIdVariablesBuilder listCompletedApplicationsByStaffId ({required String staffId, }) { - return ListCompletedApplicationsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); - } - - - 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,); - } - - - ListFaqDatasVariablesBuilder listFaqDatas () { - return ListFaqDatasVariablesBuilder(dataConnect, ); - } - - - GetFaqDataByIdVariablesBuilder getFaqDataById ({required String id, }) { - return GetFaqDataByIdVariablesBuilder(dataConnect, id: id,); - } - - - FilterFaqDatasVariablesBuilder filterFaqDatas () { - return FilterFaqDatasVariablesBuilder(dataConnect, ); - } - - - 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,); - } - - - ListLevelsVariablesBuilder listLevels () { - return ListLevelsVariablesBuilder(dataConnect, ); - } - - - GetLevelByIdVariablesBuilder getLevelById ({required String id, }) { - return GetLevelByIdVariablesBuilder(dataConnect, id: id,); - } - - - FilterLevelsVariablesBuilder filterLevels () { - return FilterLevelsVariablesBuilder(dataConnect, ); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - ListVendorRatesVariablesBuilder listVendorRates () { - return ListVendorRatesVariablesBuilder(dataConnect, ); - } - - - GetVendorRateByIdVariablesBuilder getVendorRateById ({required String id, }) { - return GetVendorRateByIdVariablesBuilder(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,); - } - - - 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,); - } - - - 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,); - } - - - 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, ); - } - - - 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,); - } - - - 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, ); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - 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, ); - } - - - ListAccountsVariablesBuilder listAccounts () { - return ListAccountsVariablesBuilder(dataConnect, ); - } - - - GetAccountByIdVariablesBuilder getAccountById ({required String id, }) { - return GetAccountByIdVariablesBuilder(dataConnect, id: id,); - } - - - GetAccountsByOwnerIdVariablesBuilder getAccountsByOwnerId ({required String ownerId, }) { - return GetAccountsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); - } - - - FilterAccountsVariablesBuilder filterAccounts () { - return FilterAccountsVariablesBuilder(dataConnect, ); + DeleteVendorVariablesBuilder deleteVendor ({required String id, }) { + return DeleteVendorVariablesBuilder(dataConnect, id: id,); } @@ -3906,263 +3031,48 @@ class ExampleConnector { } - CreateAttireOptionVariablesBuilder createAttireOption ({required String itemId, required String label, }) { - return CreateAttireOptionVariablesBuilder(dataConnect, itemId: itemId,label: label,); + CreateCourseVariablesBuilder createCourse ({required String categoryId, }) { + return CreateCourseVariablesBuilder(dataConnect, categoryId: categoryId,); } - UpdateAttireOptionVariablesBuilder updateAttireOption ({required String id, }) { - return UpdateAttireOptionVariablesBuilder(dataConnect, id: id,); + UpdateCourseVariablesBuilder updateCourse ({required String id, required String categoryId, }) { + return UpdateCourseVariablesBuilder(dataConnect, id: id,categoryId: categoryId,); } - DeleteAttireOptionVariablesBuilder deleteAttireOption ({required String id, }) { - return DeleteAttireOptionVariablesBuilder(dataConnect, id: id,); + DeleteCourseVariablesBuilder deleteCourse ({required String id, }) { + return DeleteCourseVariablesBuilder(dataConnect, id: id,); } - CreateCustomRateCardVariablesBuilder createCustomRateCard ({required String name, }) { - return CreateCustomRateCardVariablesBuilder(dataConnect, name: name,); + ListEmergencyContactsVariablesBuilder listEmergencyContacts () { + return ListEmergencyContactsVariablesBuilder(dataConnect, ); } - UpdateCustomRateCardVariablesBuilder updateCustomRateCard ({required String id, }) { - return UpdateCustomRateCardVariablesBuilder(dataConnect, id: id,); + GetEmergencyContactByIdVariablesBuilder getEmergencyContactById ({required String id, }) { + return GetEmergencyContactByIdVariablesBuilder(dataConnect, id: id,); } - DeleteCustomRateCardVariablesBuilder deleteCustomRateCard ({required String id, }) { - return DeleteCustomRateCardVariablesBuilder(dataConnect, id: id,); + GetEmergencyContactsByStaffIdVariablesBuilder getEmergencyContactsByStaffId ({required String staffId, }) { + return GetEmergencyContactsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); } - ListHubsVariablesBuilder listHubs () { - return ListHubsVariablesBuilder(dataConnect, ); + CreateFaqDataVariablesBuilder createFaqData ({required String category, }) { + return CreateFaqDataVariablesBuilder(dataConnect, category: category,); } - GetHubByIdVariablesBuilder getHubById ({required String id, }) { - return GetHubByIdVariablesBuilder(dataConnect, id: id,); + UpdateFaqDataVariablesBuilder updateFaqData ({required String id, }) { + return UpdateFaqDataVariablesBuilder(dataConnect, id: id,); } - GetHubsByOwnerIdVariablesBuilder getHubsByOwnerId ({required String ownerId, }) { - return GetHubsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); - } - - - FilterHubsVariablesBuilder filterHubs () { - return FilterHubsVariablesBuilder(dataConnect, ); - } - - - 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,); - } - - - 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,); - } - - - CreateClientFeedbackVariablesBuilder createClientFeedback ({required String businessId, required String vendorId, }) { - return CreateClientFeedbackVariablesBuilder(dataConnect, businessId: businessId,vendorId: vendorId,); - } - - - UpdateClientFeedbackVariablesBuilder updateClientFeedback ({required String id, }) { - return UpdateClientFeedbackVariablesBuilder(dataConnect, id: id,); - } - - - DeleteClientFeedbackVariablesBuilder deleteClientFeedback ({required String id, }) { - return DeleteClientFeedbackVariablesBuilder(dataConnect, id: id,); - } - - - ListInvoiceTemplatesVariablesBuilder listInvoiceTemplates () { - return ListInvoiceTemplatesVariablesBuilder(dataConnect, ); - } - - - GetInvoiceTemplateByIdVariablesBuilder getInvoiceTemplateById ({required String id, }) { - return GetInvoiceTemplateByIdVariablesBuilder(dataConnect, id: id,); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - 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,); - } - - - 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, ); - } - - - 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,); + DeleteFaqDataVariablesBuilder deleteFaqData ({required String id, }) { + return DeleteFaqDataVariablesBuilder(dataConnect, id: id,); } @@ -4261,48 +3171,503 @@ class ExampleConnector { } - 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,); + ListShiftsVariablesBuilder listShifts () { + return ListShiftsVariablesBuilder(dataConnect, ); } - UpdateStaffDocumentVariablesBuilder updateStaffDocument ({required String staffId, required String documentId, }) { - return UpdateStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); + GetShiftByIdVariablesBuilder getShiftById ({required String id, }) { + return GetShiftByIdVariablesBuilder(dataConnect, id: id,); } - DeleteStaffDocumentVariablesBuilder deleteStaffDocument ({required String staffId, required String documentId, }) { - return DeleteStaffDocumentVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); + FilterShiftsVariablesBuilder filterShifts () { + return FilterShiftsVariablesBuilder(dataConnect, ); } - CreateUserVariablesBuilder createUser ({required String id, required UserBaseRole role, }) { - return CreateUserVariablesBuilder(dataConnect, id: id,role: role,); + GetShiftsByBusinessIdVariablesBuilder getShiftsByBusinessId ({required String businessId, }) { + return GetShiftsByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); } - UpdateUserVariablesBuilder updateUser ({required String id, }) { - return UpdateUserVariablesBuilder(dataConnect, id: id,); + GetShiftsByVendorIdVariablesBuilder getShiftsByVendorId ({required String vendorId, }) { + return GetShiftsByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); } - DeleteUserVariablesBuilder deleteUser ({required String id, }) { - return DeleteUserVariablesBuilder(dataConnect, id: id,); + ListActivityLogsVariablesBuilder listActivityLogs () { + return ListActivityLogsVariablesBuilder(dataConnect, ); } - CreateVendorVariablesBuilder createVendor ({required String userId, required String companyName, }) { - return CreateVendorVariablesBuilder(dataConnect, userId: userId,companyName: companyName,); + GetActivityLogByIdVariablesBuilder getActivityLogById ({required String id, }) { + return GetActivityLogByIdVariablesBuilder(dataConnect, id: id,); } - UpdateVendorVariablesBuilder updateVendor ({required String id, }) { - return UpdateVendorVariablesBuilder(dataConnect, id: id,); + ListActivityLogsByUserIdVariablesBuilder listActivityLogsByUserId ({required String userId, }) { + return ListActivityLogsByUserIdVariablesBuilder(dataConnect, userId: userId,); } - DeleteVendorVariablesBuilder deleteVendor ({required String id, }) { - return DeleteVendorVariablesBuilder(dataConnect, id: id,); + ListUnreadActivityLogsByUserIdVariablesBuilder listUnreadActivityLogsByUserId ({required String userId, }) { + return ListUnreadActivityLogsByUserIdVariablesBuilder(dataConnect, userId: userId,); + } + + + FilterActivityLogsVariablesBuilder filterActivityLogs () { + return FilterActivityLogsVariablesBuilder(dataConnect, ); + } + + + 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,); + } + + + VaidateDayStaffApplicationVariablesBuilder vaidateDayStaffApplication ({required String staffId, }) { + return VaidateDayStaffApplicationVariablesBuilder(dataConnect, staffId: staffId,); + } + + + GetApplicationByStaffShiftAndRoleVariablesBuilder getApplicationByStaffShiftAndRole ({required String staffId, required String shiftId, required String roleId, }) { + return GetApplicationByStaffShiftAndRoleVariablesBuilder(dataConnect, staffId: staffId,shiftId: shiftId,roleId: roleId,); + } + + + 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,); + } + + + ListCompletedApplicationsByStaffIdVariablesBuilder listCompletedApplicationsByStaffId ({required String staffId, }) { + return ListCompletedApplicationsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + 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,); + } + + + ListCustomRateCardsVariablesBuilder listCustomRateCards () { + return ListCustomRateCardsVariablesBuilder(dataConnect, ); + } + + + GetCustomRateCardByIdVariablesBuilder getCustomRateCardById ({required String id, }) { + return GetCustomRateCardByIdVariablesBuilder(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, ); + } + + + ListOrdersByBusinessAndTeamHubVariablesBuilder listOrdersByBusinessAndTeamHub ({required String businessId, required String teamHubId, }) { + return ListOrdersByBusinessAndTeamHubVariablesBuilder(dataConnect, businessId: businessId,teamHubId: teamHubId,); + } + + + 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,); + } + + + 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,); + } + + + ListDocumentsVariablesBuilder listDocuments () { + return ListDocumentsVariablesBuilder(dataConnect, ); + } + + + GetDocumentByIdVariablesBuilder getDocumentById ({required String id, }) { + return GetDocumentByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterDocumentsVariablesBuilder filterDocuments () { + return FilterDocumentsVariablesBuilder(dataConnect, ); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + ListInvoiceTemplatesVariablesBuilder listInvoiceTemplates () { + return ListInvoiceTemplatesVariablesBuilder(dataConnect, ); + } + + + GetInvoiceTemplateByIdVariablesBuilder getInvoiceTemplateById ({required String id, }) { + return GetInvoiceTemplateByIdVariablesBuilder(dataConnect, id: id,); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + ListUsersVariablesBuilder listUsers () { + return ListUsersVariablesBuilder(dataConnect, ); + } + + + GetUserByIdVariablesBuilder getUserById ({required String id, }) { + return GetUserByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterUsersVariablesBuilder filterUsers () { + return FilterUsersVariablesBuilder(dataConnect, ); + } + + + 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, ); + } + + + 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, ); + } + + + 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,); + } + + + 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,); + } + + + ListStaffAvailabilityStatsVariablesBuilder listStaffAvailabilityStats () { + return ListStaffAvailabilityStatsVariablesBuilder(dataConnect, ); + } + + + GetStaffAvailabilityStatsByStaffIdVariablesBuilder getStaffAvailabilityStatsByStaffId ({required String staffId, }) { + return GetStaffAvailabilityStatsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + FilterStaffAvailabilityStatsVariablesBuilder filterStaffAvailabilityStats () { + return FilterStaffAvailabilityStatsVariablesBuilder(dataConnect, ); + } + + + 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,); + } + + + 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, ); + } + + + 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,); } @@ -4336,98 +3701,48 @@ class ExampleConnector { } - CreateCategoryVariablesBuilder createCategory ({required String categoryId, required String label, }) { - return CreateCategoryVariablesBuilder(dataConnect, categoryId: categoryId,label: label,); + ListBenefitsDataVariablesBuilder listBenefitsData () { + return ListBenefitsDataVariablesBuilder(dataConnect, ); } - UpdateCategoryVariablesBuilder updateCategory ({required String id, }) { - return UpdateCategoryVariablesBuilder(dataConnect, id: id,); + GetBenefitsDataByKeyVariablesBuilder getBenefitsDataByKey ({required String staffId, required String vendorBenefitPlanId, }) { + return GetBenefitsDataByKeyVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); } - DeleteCategoryVariablesBuilder deleteCategory ({required String id, }) { - return DeleteCategoryVariablesBuilder(dataConnect, id: id,); + ListBenefitsDataByStaffIdVariablesBuilder listBenefitsDataByStaffId ({required String staffId, }) { + return ListBenefitsDataByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); } - ListCoursesVariablesBuilder listCourses () { - return ListCoursesVariablesBuilder(dataConnect, ); + ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder listBenefitsDataByVendorBenefitPlanId ({required String vendorBenefitPlanId, }) { + return ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder(dataConnect, vendorBenefitPlanId: vendorBenefitPlanId,); } - GetCourseByIdVariablesBuilder getCourseById ({required String id, }) { - return GetCourseByIdVariablesBuilder(dataConnect, id: id,); + ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder listBenefitsDataByVendorBenefitPlanIds ({required List vendorBenefitPlanIds, }) { + return ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder(dataConnect, vendorBenefitPlanIds: vendorBenefitPlanIds,); } - FilterCoursesVariablesBuilder filterCourses () { - return FilterCoursesVariablesBuilder(dataConnect, ); + ListHubsVariablesBuilder listHubs () { + return ListHubsVariablesBuilder(dataConnect, ); } - 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,); + GetHubByIdVariablesBuilder getHubById ({required String id, }) { + return GetHubByIdVariablesBuilder(dataConnect, id: id,); } - UpdateInvoiceVariablesBuilder updateInvoice ({required String id, }) { - return UpdateInvoiceVariablesBuilder(dataConnect, id: id,); + GetHubsByOwnerIdVariablesBuilder getHubsByOwnerId ({required String ownerId, }) { + return GetHubsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); } - DeleteInvoiceVariablesBuilder deleteInvoice ({required String id, }) { - return DeleteInvoiceVariablesBuilder(dataConnect, id: id,); - } - - - 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,); - } - - - 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,); - } - - - 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,); + FilterHubsVariablesBuilder filterHubs () { + return FilterHubsVariablesBuilder(dataConnect, ); } @@ -4456,28 +3771,123 @@ class ExampleConnector { } - ListBenefitsDataVariablesBuilder listBenefitsData () { - return ListBenefitsDataVariablesBuilder(dataConnect, ); + CreateAttireOptionVariablesBuilder createAttireOption ({required String itemId, required String label, }) { + return CreateAttireOptionVariablesBuilder(dataConnect, itemId: itemId,label: label,); } - GetBenefitsDataByKeyVariablesBuilder getBenefitsDataByKey ({required String staffId, required String vendorBenefitPlanId, }) { - return GetBenefitsDataByKeyVariablesBuilder(dataConnect, staffId: staffId,vendorBenefitPlanId: vendorBenefitPlanId,); + UpdateAttireOptionVariablesBuilder updateAttireOption ({required String id, }) { + return UpdateAttireOptionVariablesBuilder(dataConnect, id: id,); } - ListBenefitsDataByStaffIdVariablesBuilder listBenefitsDataByStaffId ({required String staffId, }) { - return ListBenefitsDataByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + DeleteAttireOptionVariablesBuilder deleteAttireOption ({required String id, }) { + return DeleteAttireOptionVariablesBuilder(dataConnect, id: id,); } - ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder listBenefitsDataByVendorBenefitPlanId ({required String vendorBenefitPlanId, }) { - return ListBenefitsDataByVendorBenefitPlanIdVariablesBuilder(dataConnect, vendorBenefitPlanId: vendorBenefitPlanId,); + ListCertificatesVariablesBuilder listCertificates () { + return ListCertificatesVariablesBuilder(dataConnect, ); } - ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder listBenefitsDataByVendorBenefitPlanIds ({required List vendorBenefitPlanIds, }) { - return ListBenefitsDataByVendorBenefitPlanIdsVariablesBuilder(dataConnect, vendorBenefitPlanIds: vendorBenefitPlanIds,); + GetCertificateByIdVariablesBuilder getCertificateById ({required String id, }) { + return GetCertificateByIdVariablesBuilder(dataConnect, id: id,); + } + + + ListCertificatesByStaffIdVariablesBuilder listCertificatesByStaffId ({required String staffId, }) { + return ListCertificatesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + 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,); } @@ -4496,48 +3906,43 @@ class ExampleConnector { } - CreateCertificateVariablesBuilder createCertificate ({required String name, required CertificateStatus status, required String staffId, }) { - return CreateCertificateVariablesBuilder(dataConnect, name: name,status: status,staffId: staffId,); + ListInvoicesVariablesBuilder listInvoices () { + return ListInvoicesVariablesBuilder(dataConnect, ); } - UpdateCertificateVariablesBuilder updateCertificate ({required String id, }) { - return UpdateCertificateVariablesBuilder(dataConnect, id: id,); + GetInvoiceByIdVariablesBuilder getInvoiceById ({required String id, }) { + return GetInvoiceByIdVariablesBuilder(dataConnect, id: id,); } - DeleteCertificateVariablesBuilder deleteCertificate ({required String id, }) { - return DeleteCertificateVariablesBuilder(dataConnect, id: id,); + ListInvoicesByVendorIdVariablesBuilder listInvoicesByVendorId ({required String vendorId, }) { + return ListInvoicesByVendorIdVariablesBuilder(dataConnect, vendorId: vendorId,); } - CreateFaqDataVariablesBuilder createFaqData ({required String category, }) { - return CreateFaqDataVariablesBuilder(dataConnect, category: category,); + ListInvoicesByBusinessIdVariablesBuilder listInvoicesByBusinessId ({required String businessId, }) { + return ListInvoicesByBusinessIdVariablesBuilder(dataConnect, businessId: businessId,); } - UpdateFaqDataVariablesBuilder updateFaqData ({required String id, }) { - return UpdateFaqDataVariablesBuilder(dataConnect, id: id,); + ListInvoicesByOrderIdVariablesBuilder listInvoicesByOrderId ({required String orderId, }) { + return ListInvoicesByOrderIdVariablesBuilder(dataConnect, orderId: orderId,); } - DeleteFaqDataVariablesBuilder deleteFaqData ({required String id, }) { - return DeleteFaqDataVariablesBuilder(dataConnect, id: id,); + ListInvoicesByStatusVariablesBuilder listInvoicesByStatus ({required InvoiceStatus status, }) { + return ListInvoicesByStatusVariablesBuilder(dataConnect, status: status,); } - 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,); + FilterInvoicesVariablesBuilder filterInvoices () { + return FilterInvoicesVariablesBuilder(dataConnect, ); } - 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,); + ListOverdueInvoicesVariablesBuilder listOverdueInvoices ({required Timestamp now, }) { + return ListOverdueInvoicesVariablesBuilder(dataConnect, now: now,); } @@ -4556,48 +3961,488 @@ class ExampleConnector { } - CreateDocumentVariablesBuilder createDocument ({required DocumentType documentType, required String name, }) { - return CreateDocumentVariablesBuilder(dataConnect, documentType: documentType,name: name,); + ListStaffVariablesBuilder listStaff () { + return ListStaffVariablesBuilder(dataConnect, ); } - UpdateDocumentVariablesBuilder updateDocument ({required String id, }) { - return UpdateDocumentVariablesBuilder(dataConnect, id: id,); + GetStaffByIdVariablesBuilder getStaffById ({required String id, }) { + return GetStaffByIdVariablesBuilder(dataConnect, id: id,); } - DeleteDocumentVariablesBuilder deleteDocument ({required String id, }) { - return DeleteDocumentVariablesBuilder(dataConnect, id: id,); + GetStaffByUserIdVariablesBuilder getStaffByUserId ({required String userId, }) { + return GetStaffByUserIdVariablesBuilder(dataConnect, userId: userId,); } - CreateLevelVariablesBuilder createLevel ({required String name, required int xpRequired, }) { - return CreateLevelVariablesBuilder(dataConnect, name: name,xpRequired: xpRequired,); + FilterStaffVariablesBuilder filterStaff () { + return FilterStaffVariablesBuilder(dataConnect, ); } - UpdateLevelVariablesBuilder updateLevel ({required String id, }) { - return UpdateLevelVariablesBuilder(dataConnect, id: id,); + GetStaffDocumentByKeyVariablesBuilder getStaffDocumentByKey ({required String staffId, required String documentId, }) { + return GetStaffDocumentByKeyVariablesBuilder(dataConnect, staffId: staffId,documentId: documentId,); } - DeleteLevelVariablesBuilder deleteLevel ({required String id, }) { - return DeleteLevelVariablesBuilder(dataConnect, id: id,); + ListStaffDocumentsByStaffIdVariablesBuilder listStaffDocumentsByStaffId ({required String staffId, }) { + return ListStaffDocumentsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); } - ListRoleCategoriesVariablesBuilder listRoleCategories () { - return ListRoleCategoriesVariablesBuilder(dataConnect, ); + ListStaffDocumentsByDocumentTypeVariablesBuilder listStaffDocumentsByDocumentType ({required DocumentType documentType, }) { + return ListStaffDocumentsByDocumentTypeVariablesBuilder(dataConnect, documentType: documentType,); } - GetRoleCategoryByIdVariablesBuilder getRoleCategoryById ({required String id, }) { - return GetRoleCategoryByIdVariablesBuilder(dataConnect, id: id,); + ListStaffDocumentsByStatusVariablesBuilder listStaffDocumentsByStatus ({required DocumentStatus status, }) { + return ListStaffDocumentsByStatusVariablesBuilder(dataConnect, status: status,); } - GetRoleCategoriesByCategoryVariablesBuilder getRoleCategoriesByCategory ({required RoleCategoryType category, }) { - return GetRoleCategoriesByCategoryVariablesBuilder(dataConnect, category: category,); + 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,); + } + + + 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,); + } + + + 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,); + } + + + ListAttireOptionsVariablesBuilder listAttireOptions () { + return ListAttireOptionsVariablesBuilder(dataConnect, ); + } + + + GetAttireOptionByIdVariablesBuilder getAttireOptionById ({required String id, }) { + return GetAttireOptionByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterAttireOptionsVariablesBuilder filterAttireOptions () { + return FilterAttireOptionsVariablesBuilder(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,); + } + + + 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,); + } + + + 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,); + } + + + ListAccountsVariablesBuilder listAccounts () { + return ListAccountsVariablesBuilder(dataConnect, ); + } + + + GetAccountByIdVariablesBuilder getAccountById ({required String id, }) { + return GetAccountByIdVariablesBuilder(dataConnect, id: id,); + } + + + GetAccountsByOwnerIdVariablesBuilder getAccountsByOwnerId ({required String ownerId, }) { + return GetAccountsByOwnerIdVariablesBuilder(dataConnect, ownerId: ownerId,); + } + + + FilterAccountsVariablesBuilder filterAccounts () { + return FilterAccountsVariablesBuilder(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,); + } + + + 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,); + } + + + CreateClientFeedbackVariablesBuilder createClientFeedback ({required String businessId, required String vendorId, }) { + return CreateClientFeedbackVariablesBuilder(dataConnect, businessId: businessId,vendorId: vendorId,); + } + + + UpdateClientFeedbackVariablesBuilder updateClientFeedback ({required String id, }) { + return UpdateClientFeedbackVariablesBuilder(dataConnect, id: id,); + } + + + DeleteClientFeedbackVariablesBuilder deleteClientFeedback ({required String id, }) { + return DeleteClientFeedbackVariablesBuilder(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,); + } + + + ListLevelsVariablesBuilder listLevels () { + return ListLevelsVariablesBuilder(dataConnect, ); + } + + + GetLevelByIdVariablesBuilder getLevelById ({required String id, }) { + return GetLevelByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterLevelsVariablesBuilder filterLevels () { + return FilterLevelsVariablesBuilder(dataConnect, ); + } + + + 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, ); + } + + + 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,); + } + + + 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, ); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + UpdateTaskCommentVariablesBuilder updateTaskComment ({required String id, }) { + return UpdateTaskCommentVariablesBuilder(dataConnect, id: id,); + } + + + DeleteTaskCommentVariablesBuilder deleteTaskComment ({required String id, }) { + return DeleteTaskCommentVariablesBuilder(dataConnect, id: id,); + } + + + 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,); + } + + + ListCategoriesVariablesBuilder listCategories () { + return ListCategoriesVariablesBuilder(dataConnect, ); + } + + + GetCategoryByIdVariablesBuilder getCategoryById ({required String id, }) { + return GetCategoryByIdVariablesBuilder(dataConnect, id: id,); + } + + + FilterCategoriesVariablesBuilder filterCategories () { + return FilterCategoriesVariablesBuilder(dataConnect, ); + } + + + 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,); + } + + + 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,); + } + + + 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,); } @@ -4616,23 +4461,178 @@ class ExampleConnector { } - ListStaffAvailabilitiesVariablesBuilder listStaffAvailabilities () { - return ListStaffAvailabilitiesVariablesBuilder(dataConnect, ); + ListTaxFormsVariablesBuilder listTaxForms () { + return ListTaxFormsVariablesBuilder(dataConnect, ); } - ListStaffAvailabilitiesByStaffIdVariablesBuilder listStaffAvailabilitiesByStaffId ({required String staffId, }) { - return ListStaffAvailabilitiesByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); + GetTaxFormByIdVariablesBuilder getTaxFormById ({required String id, }) { + return GetTaxFormByIdVariablesBuilder(dataConnect, id: id,); } - GetStaffAvailabilityByKeyVariablesBuilder getStaffAvailabilityByKey ({required String staffId, required DayOfWeek day, required AvailabilitySlot slot, }) { - return GetStaffAvailabilityByKeyVariablesBuilder(dataConnect, staffId: staffId,day: day,slot: slot,); + GetTaxFormsByStaffIdVariablesBuilder getTaxFormsByStaffId ({required String staffId, }) { + return GetTaxFormsByStaffIdVariablesBuilder(dataConnect, staffId: staffId,); } - ListStaffAvailabilitiesByDayVariablesBuilder listStaffAvailabilitiesByDay ({required DayOfWeek day, }) { - return ListStaffAvailabilitiesByDayVariablesBuilder(dataConnect, day: day,); + ListTaxFormsWhereVariablesBuilder listTaxFormsWhere () { + return ListTaxFormsWhereVariablesBuilder(dataConnect, ); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + 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,); + } + + + CreateUserConversationVariablesBuilder createUserConversation ({required String conversationId, required String userId, }) { + return CreateUserConversationVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); + } + + + UpdateUserConversationVariablesBuilder updateUserConversation ({required String conversationId, required String userId, }) { + return UpdateUserConversationVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); + } + + + MarkConversationAsReadVariablesBuilder markConversationAsRead ({required String conversationId, required String userId, }) { + return MarkConversationAsReadVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); + } + + + IncrementUnreadForUserVariablesBuilder incrementUnreadForUser ({required String conversationId, required String userId, required int unreadCount, }) { + return IncrementUnreadForUserVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,unreadCount: unreadCount,); + } + + + DeleteUserConversationVariablesBuilder deleteUserConversation ({required String conversationId, required String userId, }) { + return DeleteUserConversationVariablesBuilder(dataConnect, conversationId: conversationId,userId: userId,); + } + + + ListVendorRatesVariablesBuilder listVendorRates () { + return ListVendorRatesVariablesBuilder(dataConnect, ); + } + + + GetVendorRateByIdVariablesBuilder getVendorRateById ({required String id, }) { + return GetVendorRateByIdVariablesBuilder(dataConnect, id: id,); } diff --git a/makefiles/mobile.mk b/makefiles/mobile.mk index 6fd8bf62..a7ae005b 100644 --- a/makefiles/mobile.mk +++ b/makefiles/mobile.mk @@ -9,7 +9,7 @@ MOBILE_DIR := apps/mobile DEVICE ?= android # --- General --- -mobile-install: install-melos +mobile-install: install-melos dataconnect-generate-sdk @echo "--> Bootstrapping mobile workspace (Melos)..." @cd $(MOBILE_DIR) && melos bootstrap @echo "--> Generating localization files..." @@ -20,11 +20,11 @@ mobile-info: @cd $(MOBILE_DIR) && melos run info # --- Client App --- -mobile-client-dev-android: +mobile-client-dev-android: dataconnect-generate-sdk @echo "--> Running client app on Android (device: $(DEVICE))..." @cd $(MOBILE_DIR) && melos run start:client -- -d $(DEVICE) --dart-define-from-file=../../config.dev.json -mobile-client-build: +mobile-client-build: dataconnect-generate-sdk @if [ -z "$(PLATFORM)" ]; then \ echo "ERROR: PLATFORM is required (e.g. make mobile-client-build PLATFORM=apk)"; exit 1; \ fi @@ -36,11 +36,11 @@ mobile-client-build: melos exec --scope="krowwithus_client" -- "flutter build $(PLATFORM) --$(MODE) --dart-define-from-file=../../config.dev.json" # --- Staff App --- -mobile-staff-dev-android: +mobile-staff-dev-android: dataconnect-generate-sdk @echo "--> Running staff app on Android (device: $(DEVICE))..." @cd $(MOBILE_DIR) && melos run start:staff -- -d $(DEVICE) -mobile-staff-build: +mobile-staff-build: dataconnect-generate-sdk @if [ -z "$(PLATFORM)" ]; then \ echo "ERROR: PLATFORM is required (e.g. make mobile-staff-build PLATFORM=apk)"; exit 1; \ fi