Build Nuxt 4 client cabinet with Apollo and GraphQL flows
This commit is contained in:
10
graphql/operations/auth/register-self.graphql
Normal file
10
graphql/operations/auth/register-self.graphql
Normal file
@@ -0,0 +1,10 @@
|
||||
mutation RegisterSelf($input: RegisterSelfInput!) {
|
||||
registerSelf(input: $input) {
|
||||
id
|
||||
companyName
|
||||
contactName
|
||||
email
|
||||
status
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
17
graphql/operations/catalog/client-products.graphql
Normal file
17
graphql/operations/catalog/client-products.graphql
Normal file
@@ -0,0 +1,17 @@
|
||||
query ClientProducts {
|
||||
clientProducts {
|
||||
id
|
||||
sku
|
||||
name
|
||||
description
|
||||
isCustomizable
|
||||
availableInWarehouses {
|
||||
availableQty
|
||||
warehouse {
|
||||
id
|
||||
code
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
14
graphql/operations/orders/my-current-orders.graphql
Normal file
14
graphql/operations/orders/my-current-orders.graphql
Normal file
@@ -0,0 +1,14 @@
|
||||
query MyCurrentOrders {
|
||||
myCurrentOrders {
|
||||
id
|
||||
code
|
||||
kind
|
||||
status
|
||||
createdAt
|
||||
items {
|
||||
id
|
||||
productName
|
||||
quantity
|
||||
}
|
||||
}
|
||||
}
|
||||
16
graphql/operations/orders/my-orders.graphql
Normal file
16
graphql/operations/orders/my-orders.graphql
Normal file
@@ -0,0 +1,16 @@
|
||||
query MyOrders {
|
||||
myOrders {
|
||||
id
|
||||
code
|
||||
kind
|
||||
status
|
||||
totalPrice
|
||||
deliveryTerms
|
||||
createdAt
|
||||
items {
|
||||
id
|
||||
productName
|
||||
quantity
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
mutation SubmitCalculationOrder($input: SubmitCalculationOrderInput!) {
|
||||
submitCalculationOrder(input: $input) {
|
||||
id
|
||||
code
|
||||
status
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
8
graphql/operations/orders/submit-ready-order.graphql
Normal file
8
graphql/operations/orders/submit-ready-order.graphql
Normal file
@@ -0,0 +1,8 @@
|
||||
mutation SubmitReadyOrder($input: SubmitReadyOrderInput!) {
|
||||
submitReadyOrder(input: $input) {
|
||||
id
|
||||
code
|
||||
status
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
8
graphql/operations/profile/connect-messenger.graphql
Normal file
8
graphql/operations/profile/connect-messenger.graphql
Normal file
@@ -0,0 +1,8 @@
|
||||
mutation ConnectMessenger($input: ConnectMessengerInput!) {
|
||||
connectMessenger(input: $input) {
|
||||
id
|
||||
type
|
||||
channelId
|
||||
isActive
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user