use installed triggers

cannot call external services from default triggers
This commit is contained in:
Ben Miller
2024-11-14 00:50:05 -07:00
parent a5c0a1176d
commit 9b01d6de8a
3 changed files with 34 additions and 5 deletions

View File

@ -1,13 +1,20 @@
/// <reference types="@types/google-apps-script" />
import { onOpen } from "./onOpen"
import { onEdit } from "./onEdit"
import { getShopifyProducts } from "./shopifyApi"
import { runShopifyOrders } from "./shopifyApi"
import { matchProductToShopifyHandler } from "./initMenu"
;(global as any).onOpen = () => onOpen()
;(global as any).onEdit = (e: GoogleAppsScript.Events.SheetsOnEdit) => onEdit(e)
import {
initMenu,
matchProductToShopifyHandler,
reauthorizeScript,
} from "./initMenu"
import { reinstallTriggers } from "./triggers"
import { newSkuHandler } from "./newSku"
;(global as any).onOpen = onOpen
;(global as any).initMenu = initMenu
;(global as any).getShopifyProducts = getShopifyProducts
;(global as any).runShopifyOrders = runShopifyOrders
;(global as any).matchProductToShopifyHandler = matchProductToShopifyHandler
;(global as any).reauthorizeScript = reauthorizeScript
;(global as any).reinstallTriggers = reinstallTriggers
;(global as any).newSkuHandler = newSkuHandler