import { CustomerTypeName } from './Customer';
import { InventoryLevelTypeName } from './InventoryLevel';
import { LineItemTypeName } from './LineItem';
import { LocationTypeName } from './Location';
import { OrderTypeName } from './Order';
import { ProductTypeName } from './Product';
import { ProductVariantTypeName } from './ProductVariant';
export var SHOPIFY_OBJECT_FAMILY;
(function (SHOPIFY_OBJECT_FAMILY) {
    SHOPIFY_OBJECT_FAMILY["PRODUCTS_AND_INVENTORY"] = "products_inventory_family";
    SHOPIFY_OBJECT_FAMILY["ORDERS"] = "orders_family";
    SHOPIFY_OBJECT_FAMILY["MISC"] = "misc_family";
})(SHOPIFY_OBJECT_FAMILY || (SHOPIFY_OBJECT_FAMILY = {}));
/**
 * Note: these are in hierarchical order with parents preceding children
 */
export const ShopifyObjectFamilyToTypes = {
    [SHOPIFY_OBJECT_FAMILY.PRODUCTS_AND_INVENTORY]: [ProductTypeName, ProductVariantTypeName, InventoryLevelTypeName],
    [SHOPIFY_OBJECT_FAMILY.ORDERS]: [OrderTypeName, CustomerTypeName, LineItemTypeName],
    [SHOPIFY_OBJECT_FAMILY.MISC]: [LocationTypeName],
};
export const ShopifyObjectTypeToFamily = {
    [OrderTypeName]: SHOPIFY_OBJECT_FAMILY.ORDERS,
    [LineItemTypeName]: SHOPIFY_OBJECT_FAMILY.ORDERS,
    // For now... later we may want to have customers be their own category
    [CustomerTypeName]: SHOPIFY_OBJECT_FAMILY.ORDERS,
    [ProductTypeName]: SHOPIFY_OBJECT_FAMILY.PRODUCTS_AND_INVENTORY,
    [ProductVariantTypeName]: SHOPIFY_OBJECT_FAMILY.PRODUCTS_AND_INVENTORY,
    [InventoryLevelTypeName]: SHOPIFY_OBJECT_FAMILY.PRODUCTS_AND_INVENTORY,
    [LocationTypeName]: SHOPIFY_OBJECT_FAMILY.MISC,
};
//# sourceMappingURL=shopifyObjectFamilies.js.map