├── .arc ├── .gitignore └── app ├── .gitignore ├── .vscode └── settings.json ├── components ├── GenericTable.tsx ├── Labels.tsx ├── Layout.tsx ├── OrderTable.tsx ├── OrderVariations.tsx └── Scanner.tsx ├── hooks ├── useBatch.ts ├── useFocus.tsx └── useShipment.ts ├── interfaces ├── chitchat.d.ts ├── index.ts └── snipcart.d.ts ├── next-env.d.ts ├── package-lock.json ├── package.json ├── pages ├── _app.tsx ├── _document.tsx ├── api │ ├── auth │ │ └── [...nextauth].ts │ ├── batches │ │ ├── [id].ts │ │ └── index.ts │ ├── orders │ │ ├── [token].ts │ │ ├── index.ts │ │ └── refetch-metadata.ts │ ├── products │ │ └── index.ts │ ├── shipments │ │ ├── [id].ts │ │ ├── add_to_batch.ts │ │ └── index.ts │ ├── shipping │ │ └── index.ts │ ├── snipcart │ │ └── [...proxy].ts │ ├── test │ │ └── index.ts │ └── webhook │ │ └── index.ts ├── auth │ └── index.tsx ├── batches │ ├── [batchId].tsx │ └── index.tsx ├── index.tsx └── orders.tsx ├── public └── beep.wav ├── readme.md ├── tsconfig.json └── utils ├── chitchats.ts ├── getShippingQuote.ts ├── initMiddleware.ts ├── snipCart.ts ├── snipCartAPI.ts ├── stallion.ts └── withAuth.ts /.arc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/.arc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/.gitignore -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/.gitignore -------------------------------------------------------------------------------- /app/.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/.vscode/settings.json -------------------------------------------------------------------------------- /app/components/GenericTable.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/components/GenericTable.tsx -------------------------------------------------------------------------------- /app/components/Labels.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/components/Labels.tsx -------------------------------------------------------------------------------- /app/components/Layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/components/Layout.tsx -------------------------------------------------------------------------------- /app/components/OrderTable.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/components/OrderTable.tsx -------------------------------------------------------------------------------- /app/components/OrderVariations.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/components/OrderVariations.tsx -------------------------------------------------------------------------------- /app/components/Scanner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/components/Scanner.tsx -------------------------------------------------------------------------------- /app/hooks/useBatch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/hooks/useBatch.ts -------------------------------------------------------------------------------- /app/hooks/useFocus.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/hooks/useFocus.tsx -------------------------------------------------------------------------------- /app/hooks/useShipment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/hooks/useShipment.ts -------------------------------------------------------------------------------- /app/interfaces/chitchat.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/interfaces/chitchat.d.ts -------------------------------------------------------------------------------- /app/interfaces/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/interfaces/index.ts -------------------------------------------------------------------------------- /app/interfaces/snipcart.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/interfaces/snipcart.d.ts -------------------------------------------------------------------------------- /app/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/next-env.d.ts -------------------------------------------------------------------------------- /app/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/package-lock.json -------------------------------------------------------------------------------- /app/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/package.json -------------------------------------------------------------------------------- /app/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/_app.tsx -------------------------------------------------------------------------------- /app/pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/_document.tsx -------------------------------------------------------------------------------- /app/pages/api/auth/[...nextauth].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/api/auth/[...nextauth].ts -------------------------------------------------------------------------------- /app/pages/api/batches/[id].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/api/batches/[id].ts -------------------------------------------------------------------------------- /app/pages/api/batches/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/api/batches/index.ts -------------------------------------------------------------------------------- /app/pages/api/orders/[token].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/api/orders/[token].ts -------------------------------------------------------------------------------- /app/pages/api/orders/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/api/orders/index.ts -------------------------------------------------------------------------------- /app/pages/api/orders/refetch-metadata.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/api/orders/refetch-metadata.ts -------------------------------------------------------------------------------- /app/pages/api/products/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/api/products/index.ts -------------------------------------------------------------------------------- /app/pages/api/shipments/[id].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/api/shipments/[id].ts -------------------------------------------------------------------------------- /app/pages/api/shipments/add_to_batch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/api/shipments/add_to_batch.ts -------------------------------------------------------------------------------- /app/pages/api/shipments/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/api/shipments/index.ts -------------------------------------------------------------------------------- /app/pages/api/shipping/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/api/shipping/index.ts -------------------------------------------------------------------------------- /app/pages/api/snipcart/[...proxy].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/api/snipcart/[...proxy].ts -------------------------------------------------------------------------------- /app/pages/api/test/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/api/test/index.ts -------------------------------------------------------------------------------- /app/pages/api/webhook/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/api/webhook/index.ts -------------------------------------------------------------------------------- /app/pages/auth/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/auth/index.tsx -------------------------------------------------------------------------------- /app/pages/batches/[batchId].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/batches/[batchId].tsx -------------------------------------------------------------------------------- /app/pages/batches/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/batches/index.tsx -------------------------------------------------------------------------------- /app/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/index.tsx -------------------------------------------------------------------------------- /app/pages/orders.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/pages/orders.tsx -------------------------------------------------------------------------------- /app/public/beep.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/public/beep.wav -------------------------------------------------------------------------------- /app/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/readme.md -------------------------------------------------------------------------------- /app/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/tsconfig.json -------------------------------------------------------------------------------- /app/utils/chitchats.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/utils/chitchats.ts -------------------------------------------------------------------------------- /app/utils/getShippingQuote.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/utils/getShippingQuote.ts -------------------------------------------------------------------------------- /app/utils/initMiddleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/utils/initMiddleware.ts -------------------------------------------------------------------------------- /app/utils/snipCart.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/utils/snipCart.ts -------------------------------------------------------------------------------- /app/utils/snipCartAPI.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/utils/snipCartAPI.ts -------------------------------------------------------------------------------- /app/utils/stallion.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/utils/stallion.ts -------------------------------------------------------------------------------- /app/utils/withAuth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wesbos/chit-chats-snipcart-integration/HEAD/app/utils/withAuth.ts --------------------------------------------------------------------------------