fragments.graphql
# Default fragment definition
# Groups of fields for a query (use like _FragmentName)
# last revision: 2023-09-12
fragment _IStatus on IStatus {
id
name
}
fragment _Category on Category {
id
title
}
fragment _CategoryNode on Category {
parent_category {
... _Category
}
children_categories {
... _Category
}
}
fragment _ProductsInCategory on Category {
id
products {
... _ProductList
}
}
fragment _Company on Company {
company_name
company_id
vat_id
vat_id2
name
surname
phone
email
}
fragment _InvoicingCompany on InvoicingCompany {
company_name
company_id
vat_id
vat_id2
}
fragment _Person on Person {
name
surname
phone
email
}
fragment _UnauthenticatedEmail on UnauthenticatedEmail {
name
surname
phone
email
}
fragment _Address on AddressData {
street
descriptive_number
orientation_number
city
zip
country
}
fragment _Currency on Currency {
symbol
code
}
fragment _WarehouseItem on WarehouseItem {
id
warehouse_number
ean
weight {
value
unit
}
quantity
status {
... _WarehouseStatus
}
}
fragment _Price on Price {
value
formatted
is_net_price
currency {
... _Currency
}
}
fragment _Order on Order {
id
order_num
pur_date
status {
... _IStatus
}
customer {
... _Person
... _Company
... _UnauthenticatedEmail
}
delivery_address {
... _Address
}
invoice_address {
... _Address
}
price_elements {
id
title
type
tax_rate
value
price {
... _Price
}
}
items {
item_label
ean
import_code
warehouse_number
quantity
tax_rate
weight {
value
unit
}
recycle_fee {
... _Price
}
price {
... _Price
}
}
vat_summary {
amount
tax_rate
tax_base
}
sum {
... _Price
}
}
fragment _Invoice on Invoice {
id
order {
order_num
}
invoice_num
supplier {
company_name
}
customer {
... _Person
... _Company
}
invoice_address {
... _Address
}
price_elements {
id
title
type
tax_rate
value
price {
... _Price
}
}
items {
item_label
warehouse_number
import_code
ean
quantity
weight {
value
unit
}
recycle_fee {
value
currency {
... _Currency
}
}
price {
... _Price
}
}
sum {
... _Price
}
}
fragment _Preinvoice on Preinvoice {
preinvoice_num
}
fragment _Product on Product {
title
link
short
main_category {
... _Category
}
attribute_category {
... _Category
}
attributes {
id
title
values {
id
image
value
}
}
assigned_categories {
... _Category
}
warehouse_items {
... _WarehouseItem
}
}
fragment _OrderStatus on OrderStatus {
id
name
}
fragment _WarehouseStatus on WarehouseStatus{
id
name
allow_order
}
# Pagination fragment
fragment _PageInfo on PageInfo {
hasNextPage
nextCursor
hasPreviousPage
previousCursor
pageIndex
totalPages
}
# Fragments for entity list
fragment _InvoiceList on InvoiceList {
pageInfo {
... _PageInfo
}
data {
... _Invoice
}
}
fragment _OrderList on OrderList {
pageInfo {
... _PageInfo
}
data {
... _Order
}
}
fragment _ProductList on ProductList {
pageInfo {
... _PageInfo
}
data {
... _Product
}
}
fragment _Attribute on Attribute {
id
title
values {
... _AttributeValue
}
}
fragment _AttributeValue on AttributeValue {
id
value
}
fragment _Receipt on Receipt {
receipt_num
created
sum {
..._Price
}
}