feat: implement periodic shopify sales sync
- automated sales check (default 10 mins) - manual reconciliation menu - updates 'status' and 'shopify_status' in sheet - updated docs
This commit is contained in:
@ -2,7 +2,8 @@ import { getShopifyProducts, runShopifyOrders } from "./shopifyApi"
|
||||
import { fillProductFromTemplate } from "./fillProductFromTemplate"
|
||||
import { createMissingPhotoFolders } from "./createMissingPhotoFolders"
|
||||
import { matchProductToShopify, updateProductToShopify } from "./match"
|
||||
import { reinstallTriggers } from "./triggers"
|
||||
import { reinstallTriggers, installSalesSyncTrigger } from "./triggers"
|
||||
import { reconcileSalesHandler } from "./salesSync"
|
||||
import { toastAndLog } from "./sheetUtils"
|
||||
import { showSidebar } from "./sidebar"
|
||||
|
||||
@ -23,6 +24,7 @@ export function initMenu() {
|
||||
.addItem("Create missing photo folders", createMissingPhotoFolders.name)
|
||||
.addItem("Run Shopify Orders", runShopifyOrders.name)
|
||||
.addItem("Get Shopify Products", getShopifyProducts.name)
|
||||
.addItem("Reconcile Sales...", reconcileSalesHandler.name)
|
||||
)
|
||||
.addSeparator()
|
||||
.addSubMenu(
|
||||
@ -30,6 +32,7 @@ export function initMenu() {
|
||||
.createMenu("Utilities...")
|
||||
.addItem("Reauthorize script", reauthorizeScript.name)
|
||||
.addItem("Reinstall triggers", reinstallTriggers.name)
|
||||
.addItem("Update Sales Sync Trigger", installSalesSyncTrigger.name)
|
||||
.addItem("Troubleshoot", showSidebar.name)
|
||||
)
|
||||
.addToUi()
|
||||
|
||||
Reference in New Issue
Block a user