diff --git a/src/OnEditHandler.ts b/src/OnEditHandler.ts index 80e25e4..1dc03d0 100644 --- a/src/OnEditHandler.ts +++ b/src/OnEditHandler.ts @@ -10,7 +10,7 @@ export function onEditHandler(e: GoogleAppsScript.Events.SheetsOnEdit) { matchProductToShopifyOnEditHandler(e) } -function matchProductToShopifyOnEditHandler( +export function matchProductToShopifyOnEditHandler( e: GoogleAppsScript.Events.SheetsOnEdit ) { var sheet = SpreadsheetApp.getActive().getActiveSheet() diff --git a/src/global.ts b/src/global.ts index 9440473..bfda5a1 100644 --- a/src/global.ts +++ b/src/global.ts @@ -14,11 +14,14 @@ import { reinstallTriggers } from "./triggers" import { newSkuHandler } from "./newSku" import { columnOnEditHandler } from "./OnEditHandler" import { fillProductFromTemplate } from "./fillProductFromTemplate" + +// prettier-ignore ;(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).matchProductToShopifyOnEditHandler = matchProductToShopifyOnEditHandler ;(global as any).updateShopifyProductHandler = updateShopifyProductHandler ;(global as any).columnOnEditHandler = columnOnEditHandler ;(global as any).reauthorizeScript = reauthorizeScript