modications for hubs and teams

This commit is contained in:
José Salazar
2026-01-22 12:24:57 -05:00
parent 6ef691881a
commit c211c4712d
7 changed files with 11 additions and 11 deletions

View File

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

View File

@@ -1,6 +1,6 @@
mutation createTeam(
$teamName: String!
$ownerId: String!
$ownerId: UUID!
$ownerName: String!
$ownerRole: String!
$email: String

View File

@@ -44,7 +44,7 @@ query getTeamById($id: UUID!) @auth(level: USER) {
}
}
query getTeamsByOwnerId($ownerId: String!) @auth(level: USER) {
query getTeamsByOwnerId($ownerId: UUID!) @auth(level: USER) {
teams(where: { ownerId: { eq: $ownerId } }) {
id
teamName

View File

@@ -3,9 +3,9 @@ mutation createTeamHub(
$hubName: String!
$address: String!
$city: String!
$state: String!
$zipCode: String!
$managerName: String!
$state: String
$zipCode: String
$managerName: String
$isActive: Boolean
$departments: Any
) @auth(level: USER) {

View File

@@ -56,7 +56,7 @@ query getTeamHubsByTeamId($teamId: UUID!) @auth(level: USER) {
# LIST TEAM HUBS BY OWNER (Vendor/Business)
# ------------------------------------------------------------
query listTeamHubsByOwnerId(
$ownerId: String!
$ownerId: UUID!
) @auth(level: USER) {
teamHubs(
where: {

View File

@@ -3,7 +3,7 @@ type Team @table(name: "teams") {
id: UUID! @default(expr: "uuidV4()")
teamName: String!
ownerId: String! #vendor/business
ownerId: UUID! #vendor/business
ownerName: String!
ownerRole: String!
email: String

View File

@@ -7,9 +7,9 @@ type TeamHub @table(name: "team_hubs") {
hubName: String!
address: String!
city: String!
state: String!
zipCode: String!
managerName: String!
state: String
zipCode: String
managerName: String
isActive: Boolean! @default(expr: "true")
departments: Any