adding hubid to order
This commit is contained in:
@@ -2,7 +2,7 @@ mutation createOrder(
|
|||||||
$vendorId: UUID
|
$vendorId: UUID
|
||||||
$businessId: UUID!
|
$businessId: UUID!
|
||||||
$orderType: OrderType!
|
$orderType: OrderType!
|
||||||
$location: String
|
#$location: String
|
||||||
$status: OrderStatus
|
$status: OrderStatus
|
||||||
$date: Timestamp
|
$date: Timestamp
|
||||||
$startDate: Timestamp
|
$startDate: Timestamp
|
||||||
@@ -14,7 +14,7 @@ mutation createOrder(
|
|||||||
$assignedStaff: Any
|
$assignedStaff: Any
|
||||||
$shifts: Any
|
$shifts: Any
|
||||||
$requested: Int
|
$requested: Int
|
||||||
$hub: String
|
$teamHubId: UUID!
|
||||||
$recurringDays: Any
|
$recurringDays: Any
|
||||||
$permanentStartDate: Timestamp
|
$permanentStartDate: Timestamp
|
||||||
$permanentDays: Any
|
$permanentDays: Any
|
||||||
@@ -27,7 +27,7 @@ mutation createOrder(
|
|||||||
vendorId: $vendorId
|
vendorId: $vendorId
|
||||||
businessId: $businessId
|
businessId: $businessId
|
||||||
orderType: $orderType
|
orderType: $orderType
|
||||||
location: $location
|
#location: $location
|
||||||
status: $status
|
status: $status
|
||||||
date: $date
|
date: $date
|
||||||
startDate: $startDate
|
startDate: $startDate
|
||||||
@@ -39,7 +39,7 @@ mutation createOrder(
|
|||||||
assignedStaff: $assignedStaff
|
assignedStaff: $assignedStaff
|
||||||
shifts: $shifts
|
shifts: $shifts
|
||||||
requested: $requested
|
requested: $requested
|
||||||
hub: $hub
|
teamHubId: $teamHubId
|
||||||
recurringDays: $recurringDays
|
recurringDays: $recurringDays
|
||||||
permanentDays: $permanentDays
|
permanentDays: $permanentDays
|
||||||
notes: $notes
|
notes: $notes
|
||||||
@@ -53,7 +53,7 @@ mutation updateOrder(
|
|||||||
$id: UUID!
|
$id: UUID!
|
||||||
$vendorId: UUID
|
$vendorId: UUID
|
||||||
$businessId: UUID
|
$businessId: UUID
|
||||||
$location: String
|
#$location: String
|
||||||
$status: OrderStatus
|
$status: OrderStatus
|
||||||
$date: Timestamp
|
$date: Timestamp
|
||||||
$startDate: Timestamp
|
$startDate: Timestamp
|
||||||
@@ -63,7 +63,7 @@ mutation updateOrder(
|
|||||||
$assignedStaff: Any
|
$assignedStaff: Any
|
||||||
$shifts: Any
|
$shifts: Any
|
||||||
$requested: Int
|
$requested: Int
|
||||||
$hub: String
|
$teamHubId: UUID!
|
||||||
$recurringDays: Any
|
$recurringDays: Any
|
||||||
$permanentDays: Any
|
$permanentDays: Any
|
||||||
$notes: String
|
$notes: String
|
||||||
@@ -75,7 +75,7 @@ mutation updateOrder(
|
|||||||
data: {
|
data: {
|
||||||
vendorId: $vendorId
|
vendorId: $vendorId
|
||||||
businessId: $businessId
|
businessId: $businessId
|
||||||
location: $location
|
#location: $location
|
||||||
status: $status
|
status: $status
|
||||||
date: $date
|
date: $date
|
||||||
startDate: $startDate
|
startDate: $startDate
|
||||||
@@ -85,7 +85,7 @@ mutation updateOrder(
|
|||||||
assignedStaff: $assignedStaff
|
assignedStaff: $assignedStaff
|
||||||
shifts: $shifts
|
shifts: $shifts
|
||||||
requested: $requested
|
requested: $requested
|
||||||
hub: $hub
|
teamHubId: $teamHubId
|
||||||
recurringDays: $recurringDays
|
recurringDays: $recurringDays
|
||||||
permanentDays: $permanentDays
|
permanentDays: $permanentDays
|
||||||
notes: $notes
|
notes: $notes
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ query listOrders(
|
|||||||
vendorId
|
vendorId
|
||||||
businessId
|
businessId
|
||||||
orderType
|
orderType
|
||||||
location
|
#location
|
||||||
status
|
status
|
||||||
date
|
date
|
||||||
startDate
|
startDate
|
||||||
@@ -23,7 +23,6 @@ query listOrders(
|
|||||||
assignedStaff
|
assignedStaff
|
||||||
shifts
|
shifts
|
||||||
requested
|
requested
|
||||||
hub
|
|
||||||
recurringDays
|
recurringDays
|
||||||
permanentDays
|
permanentDays
|
||||||
poReference
|
poReference
|
||||||
@@ -42,6 +41,13 @@ query listOrders(
|
|||||||
id
|
id
|
||||||
companyName
|
companyName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
teamHub {
|
||||||
|
address
|
||||||
|
placeId
|
||||||
|
hubName
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,7 +62,7 @@ query getOrderById($id: UUID!) @auth(level: USER) {
|
|||||||
vendorId
|
vendorId
|
||||||
businessId
|
businessId
|
||||||
orderType
|
orderType
|
||||||
location
|
#location
|
||||||
status
|
status
|
||||||
date
|
date
|
||||||
startDate
|
startDate
|
||||||
@@ -67,7 +73,6 @@ query getOrderById($id: UUID!) @auth(level: USER) {
|
|||||||
assignedStaff
|
assignedStaff
|
||||||
shifts
|
shifts
|
||||||
requested
|
requested
|
||||||
hub
|
|
||||||
recurringDays
|
recurringDays
|
||||||
permanentDays
|
permanentDays
|
||||||
poReference
|
poReference
|
||||||
@@ -86,6 +91,13 @@ query getOrderById($id: UUID!) @auth(level: USER) {
|
|||||||
id
|
id
|
||||||
companyName
|
companyName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
teamHub {
|
||||||
|
address
|
||||||
|
placeId
|
||||||
|
hubName
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -108,7 +120,7 @@ query getOrdersByBusinessId(
|
|||||||
vendorId
|
vendorId
|
||||||
businessId
|
businessId
|
||||||
orderType
|
orderType
|
||||||
location
|
#location
|
||||||
status
|
status
|
||||||
date
|
date
|
||||||
startDate
|
startDate
|
||||||
@@ -119,7 +131,6 @@ query getOrdersByBusinessId(
|
|||||||
assignedStaff
|
assignedStaff
|
||||||
shifts
|
shifts
|
||||||
requested
|
requested
|
||||||
hub
|
|
||||||
recurringDays
|
recurringDays
|
||||||
permanentDays
|
permanentDays
|
||||||
poReference
|
poReference
|
||||||
@@ -138,6 +149,13 @@ query getOrdersByBusinessId(
|
|||||||
id
|
id
|
||||||
companyName
|
companyName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
teamHub {
|
||||||
|
address
|
||||||
|
placeId
|
||||||
|
hubName
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -160,7 +178,7 @@ query getOrdersByVendorId(
|
|||||||
vendorId
|
vendorId
|
||||||
businessId
|
businessId
|
||||||
orderType
|
orderType
|
||||||
location
|
#location
|
||||||
status
|
status
|
||||||
date
|
date
|
||||||
startDate
|
startDate
|
||||||
@@ -171,7 +189,6 @@ query getOrdersByVendorId(
|
|||||||
assignedStaff
|
assignedStaff
|
||||||
shifts
|
shifts
|
||||||
requested
|
requested
|
||||||
hub
|
|
||||||
recurringDays
|
recurringDays
|
||||||
permanentDays
|
permanentDays
|
||||||
poReference
|
poReference
|
||||||
@@ -190,6 +207,13 @@ query getOrdersByVendorId(
|
|||||||
id
|
id
|
||||||
companyName
|
companyName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
teamHub {
|
||||||
|
address
|
||||||
|
placeId
|
||||||
|
hubName
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -212,7 +236,7 @@ query getOrdersByStatus(
|
|||||||
vendorId
|
vendorId
|
||||||
businessId
|
businessId
|
||||||
orderType
|
orderType
|
||||||
location
|
#location
|
||||||
status
|
status
|
||||||
date
|
date
|
||||||
startDate
|
startDate
|
||||||
@@ -223,7 +247,6 @@ query getOrdersByStatus(
|
|||||||
assignedStaff
|
assignedStaff
|
||||||
shifts
|
shifts
|
||||||
requested
|
requested
|
||||||
hub
|
|
||||||
recurringDays
|
recurringDays
|
||||||
permanentDays
|
permanentDays
|
||||||
poReference
|
poReference
|
||||||
@@ -242,6 +265,13 @@ query getOrdersByStatus(
|
|||||||
id
|
id
|
||||||
companyName
|
companyName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
teamHub {
|
||||||
|
address
|
||||||
|
placeId
|
||||||
|
hubName
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -267,7 +297,7 @@ query getOrdersByDateRange(
|
|||||||
vendorId
|
vendorId
|
||||||
businessId
|
businessId
|
||||||
orderType
|
orderType
|
||||||
location
|
#location
|
||||||
status
|
status
|
||||||
date
|
date
|
||||||
startDate
|
startDate
|
||||||
@@ -278,7 +308,6 @@ query getOrdersByDateRange(
|
|||||||
assignedStaff
|
assignedStaff
|
||||||
shifts
|
shifts
|
||||||
requested
|
requested
|
||||||
hub
|
|
||||||
recurringDays
|
recurringDays
|
||||||
permanentDays
|
permanentDays
|
||||||
poReference
|
poReference
|
||||||
@@ -297,6 +326,13 @@ query getOrdersByDateRange(
|
|||||||
id
|
id
|
||||||
companyName
|
companyName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
teamHub {
|
||||||
|
address
|
||||||
|
placeId
|
||||||
|
hubName
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -318,7 +354,7 @@ query getRapidOrders(
|
|||||||
vendorId
|
vendorId
|
||||||
businessId
|
businessId
|
||||||
orderType
|
orderType
|
||||||
location
|
#location
|
||||||
status
|
status
|
||||||
date
|
date
|
||||||
startDate
|
startDate
|
||||||
@@ -329,7 +365,6 @@ query getRapidOrders(
|
|||||||
assignedStaff
|
assignedStaff
|
||||||
shifts
|
shifts
|
||||||
requested
|
requested
|
||||||
hub
|
|
||||||
recurringDays
|
recurringDays
|
||||||
permanentDays
|
permanentDays
|
||||||
poReference
|
poReference
|
||||||
@@ -348,5 +383,12 @@ query getRapidOrders(
|
|||||||
id
|
id
|
||||||
companyName
|
companyName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
teamHub {
|
||||||
|
address
|
||||||
|
placeId
|
||||||
|
hubName
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ type Order @table(name: "orders") {
|
|||||||
business: Business! @ref(fields: "businessId", references: "id")
|
business: Business! @ref(fields: "businessId", references: "id")
|
||||||
|
|
||||||
orderType: OrderType!
|
orderType: OrderType!
|
||||||
location: String
|
#location: String
|
||||||
status: OrderStatus! @default(expr: "'DRAFT'")
|
status: OrderStatus! @default(expr: "'DRAFT'")
|
||||||
duration: OrderDuration
|
duration: OrderDuration
|
||||||
lunchBreak: Int
|
lunchBreak: Int
|
||||||
@@ -44,7 +44,8 @@ type Order @table(name: "orders") {
|
|||||||
shifts: Any @col(dataType: "jsonb")
|
shifts: Any @col(dataType: "jsonb")
|
||||||
|
|
||||||
requested: Int
|
requested: Int
|
||||||
hub: String
|
teamHubId: UUID!
|
||||||
|
teamHub: TeamHub! @ref(fields: "teamHubId", references: "id")
|
||||||
|
|
||||||
date: Timestamp
|
date: Timestamp
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user