Initial commit

This commit is contained in:
Rami Bitar
2026-04-19 11:15:55 -04:00
commit eeeafd36d3
78 changed files with 10412 additions and 0 deletions

36
services/shopify/api.ts Normal file
View File

@@ -0,0 +1,36 @@
// Main Shopify API service that combines all functionality
export { shopifyFetch, SHOPIFY_STORE_DOMAIN, SHOPIFY_STOREFRONT_API_URL } from './index.js';
// Product functions
export {
getProducts,
getProduct,
getProductRecommendations,
GET_PRODUCTS_QUERY,
GET_PRODUCT_QUERY,
QUERY_PRODUCT_RECOMMENDATIONS,
ProductFragment
} from '../../graphql/products.js';
// Collection functions
export {
getCollections,
getCollectionProducts,
GET_COLLECTIONS_QUERY,
GET_COLLECTION_PRODUCTS_QUERY
} from '../../graphql/collections.js';
// Cart functions
export {
createCart,
addCartLines,
updateCartLines,
removeCartLines,
getCart,
redirectToCheckout,
CREATE_CART_MUTATION,
ADD_CART_LINES_MUTATION,
UPDATE_CART_LINES_MUTATION,
REMOVE_CART_LINES_MUTATION,
GET_CART_QUERY
} from '../../graphql/cart.js';