Home > @infiniteobjects/shopify-service
Shopify as a service
Class | Description |
---|---|
ShippingTimes | Utility class for variant shipping times |
ShopifyService | Shopify Service |
Enumeration | Description |
---|---|
InventoryBehaviour | The behaviour to use when updating inventory |
Function | Description |
---|---|
filterAvailableVariants(variants) | Filter all available variants on a list of variants |
filterVariantsByTier(variants, tier) | Filter variants for a given tier |
getLineItems(orders) | Reducer function to extract all LineItems from an array or orders |
getPrintId(item) | Returns the printId of the line item or null |
getProductAvailableSKUs(product) | Parse product variants to available SKUs |
gqlShopMetafieldFormatter(shop) | Transforms Shopify Orders to our Order object |
gqlVariantsFormatter(product, processingTimes) | Transforms Shopify Orders to our Order object |
hasPrintId(item) | Returns true if the item has a printId property |
isRenderable(item) | Returns true if the item is renderable |
lineItemFormatter(order) | Transforms Shopify Line Items to our LineItem object |
metafieldFormatter(metafield) | Transforms Shopify Metafield to our Metafield object |
orderFormatter(order) | Transforms Shopify Orders to our Order object |
Interface | Description |
---|---|
DistinctUnit | |
GqlQuery | GraphQL request body |
IOrder | Order |
IOrderLineItem | Order line item |
IOrderLineItemData | Line Item data for order creation |
IProduct | Product |
IProductVariant | Product variant |
IShopifyCustomer | Shopify Customer |
IShopifyGqlProductVariantNode | GraphQL node for the variants edges |
IShopifyGqlProductWithVariantsResponse | GraphQL response for the product with variants request |
IShopifyGqlShopMetafieldsResponse | GraphQL response for the shop metafields request |
IShopMetafields | Shopify Store Metafields |
ProcessingTimesByDistinctUnit |
Variable | Description |
---|---|
DRAFT_ORDER_APP_ID | Draft order app id |
GQL_API_VERSION | GraphQL API version |
GQL_PRODUCT_ID_PREFIX | GraphQL Product ID prefix |
GQL_PRODUCT_VARIANT_ID_PREFIX | GraphQL Product Variant ID prefix |
RENDERABLE_PRODUCT_IDS | Renderable Shopify Product IDs |
SHOPIFY_HOOK_SIGNATURE | Shopify hook signature |
Type Alias | Description |
---|---|
DistinctUnitType |