use installed triggers
cannot call external services from default triggers
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user