Inputs
The root Input
type in a GraphQL schema defines all the input entries of a query or mutation.
Mutation Inputs
InputCreatePrice
Field | Type | Description | |
---|---|---|---|
name | String! | ||
taxIncluded | Boolean! | ||
enableByDefault | Boolean! | ||
shopId | String! | The shop associated to this price. |
InputCreateProduct
Field | Type | Description | |
---|---|---|---|
name | String! | The product name. | |
designation | String | The product designation. | |
color | ProductColor | The product color. | |
kind | ProductKind! | The product kind. It is defined as one of the following options: spirituous, wine, beer or simple. | |
family | String | The product family. | |
producer | String | The product producer. | |
country | String | The country where the product comes from. | |
region | String | The region where the product comes from. | |
beerType | String | The beer type when the product has the kind property equal to beer. | |
wineType | ProductWineType | The wine type when the product has the kind property equal to wine. It is defined as one of the following options: still or effervescent. | |
whiteWineType | ProductWhiteWineType | The wine type when the product has the kind property equal to wine. It is defined as one of the following options: dry, semidry, soft or sweet. | |
internalNote | Text | An internal note about the product. | |
taxId | String! | A tax assigned to the product. | |
categoryId | String | A category assigned to the product. | |
shopId | String! | The shop associated with this product. |
InputCreateStockActivity
Field | Type | Description | |
---|---|---|---|
kind | StockActivityKind! | The type of this stock activity. Some types can increment the stock, others can decrement it or reset it. | |
quantity | Int! | The quantity associated to this stock activity. | |
comment | String | A comment about this stock activity. | |
reason | StockActivityLossReason | Represents the possible reasons why the | |
stockKeepingUnit | String | A unique identifier assigned to each activity. | |
capacityUnit | String | The unit used in this stock activity. | |
capacityPrecision | Int | The decimal accuracy of stock activity capacity. | |
variantId | String! | The variant reference. | |
deviceId | String! | The device associated to this stock activity. | |
shopId | String! | The shop associated to this stock activity. |
InputCreateVariant
Field | Type | Description | |
---|---|---|---|
stockKeepingUnit | String | A unique identifier assigned to each variant. | |
name | String! | The variant name. | |
purchasedPrice | Float | The variant purchased price. | |
year | Int | The variant year. | |
capacityValue | Float | The variant capacity | |
capacityUnit | String | The variant capacity unit. | |
capacityPrecision | Int | The variant capacity precision. | |
alcoholVolume | Float | The variant alcohol volume. | |
ean13 | String | The variant European Article Number | |
bulk | Boolean | Specifies if this variant is sold in bulk or not. | |
packaging | Int | The variant packaging number. | |
internalCode | String | An internal code of the variant. | |
productId | String! | The product assigned to the variant. | |
shopId | String! | The shop associated with this variant. |
InputCreateVariantPrices
Field | Type | Description | |
---|---|---|---|
valueIncludingTax | Float! | ||
valueExcludingTax | Float! | ||
fromQuantity | Float | ||
toQuantity | Float | ||
priceId | String! |
InputUpdatePrice
Field | Type | Description | |
---|---|---|---|
name | String! | ||
taxIncluded | Boolean! | ||
enableByDefault | Boolean! |
InputUpdateProduct
Field | Type | Description | |
---|---|---|---|
name | String | The product name. | |
designation | String | The product designation. | |
color | ProductColor | The product color. | |
kind | ProductKind | The product kind. It is defined as one of the following options: spirituous, wine, beer or simple. | |
family | String | The product family. | |
producer | String | The product producer. | |
country | String | The country where the product comes from. | |
region | String | The region where the product comes from. | |
beerType | String | The beer type when the product has the kind property equal to beer. | |
wineType | ProductWineType | The wine type when the product has the kind property equal to wine. It is defined as one of the following options: still or effervescent. | |
whiteWineType | ProductWhiteWineType | The wine type when the product has the kind property equal to wine. It is defined as one of the following options: dry, semidry, soft or sweet. | |
internalNote | Text | An internal note about the product. | |
taxId | String | A tax assigned to the product. | |
categoryId | String | A category assigned to the product. |
InputUpdateVariant
Field | Type | Description | |
---|---|---|---|
stockKeepingUnit | String | A unique identifier assigned to each variant. | |
name | String | The variant name. | |
purchasedPrice | Float | The variant purchased price. | |
year | Int | The variant year. | |
capacityValue | Float | The variant capacity | |
capacityUnit | String | The variant capacity unit. | |
capacityPrecision | Int | The variant capacity precision. | |
alcoholVolume | Float | The variant alcohol volume. | |
ean13 | String | The variant European Article Number | |
internalNote | Text | An internal note about the variant. | |
tastingNote | Text | A note about the variant taste. | |
packaging | Int | The variant packaging number. | |
internalCode | String | An internal code of the variant. |
InputUpdateVariantPrices
Field | Type | Description | |
---|---|---|---|
id | ID | ||
valueIncludingTax | Float! | ||
valueExcludingTax | Float! | ||
fromQuantity | Float | ||
toQuantity | Float | ||
priceId | String! |
InputVariantsOrderBy
Field | Type | Description | |
---|---|---|---|
createdAt | OrderBy | The variant creation date. | |
active | OrderBy | The variant active status. |
Query Inputs
BooleanEqualsFilter
Field | Type | Description | |
---|---|---|---|
_equals | Boolean! | Should equals the specified string. |
DateFilter
Field | Type | Description | |
---|---|---|---|
_after | Datetime | Should be after the specified date. | |
_before | Datetime | Should be before the specified date. | |
_between | [Datetime!] | Should be between the two specified dates. |
InFilter
Field | Type | Description | |
---|---|---|---|
_in | [String!]! | Should contains the specified list of elements. |
StringEqualsFilter
Field | Type | Description | |
---|---|---|---|
_equals | String! | Should equals the specified string. |
InputDevicesQueryFilter
Field | Type | Description | |
---|---|---|---|
slug | StringEqualsFilter | Returns all devices with the specified slug. | |
name | StringEqualsFilter | Returns all devices with the specified name. |
InputProductVariantsQueryFilter
Field | Type | Description | |
---|---|---|---|
archived | ArchivedFilter | Returns all variants with the status specified. |
InputStockActivitiesQueryFilter
Field | Type | Description | |
---|---|---|---|
kind | InFilter | Returns all stock activities with the kind specified. | |
reason | InFilter | Returns all stock activities with the reason specified. | |
date | DateFilter | Returns all stock activities with the date specified. | |
shopIds | InFilter | Returns only the stock activities related to the selected shops. |
InputVariantStockActivitiesQueryFilter
Field | Type | Description | |
---|---|---|---|
kind | InFilter | Returns all stock activities with the kind specified. | |
reason | InFilter | Returns all stock activities with the reason specified. | |
date | DateFilter | Returns all stock activities with the date specified. | |
shopIds | InFilter | Returns only the stock activities related to the selected shops. |
InputVariantsQueryFilter
Field | Type | Description | |
---|---|---|---|
shopIds | InFilter | Returns only the variants related to the selected shops. | |
active | BooleanEqualsFilter | Returns only the variants with the active specified. | |
stockKeepingUnit | StringEqualsFilter | Returns only the variants with the stockKeepingUnit specified. | |
archived | ArchivedFilter | Returns all suppliers with the status specified. |