23 lines
593 B
TypeScript
23 lines
593 B
TypeScript
import { Shop } from "./shopifyApi"
|
|
|
|
function initMenu() {
|
|
let ui = SpreadsheetApp.getUi()
|
|
ui.createMenu("BLM")
|
|
.addItem("Fill out product from template", "fillProductFromTemplate")
|
|
.addItem("Create missing photo folders", "createMissingPhotoFolders")
|
|
.addSeparator()
|
|
.addItem("Run Shopify Orders", "runShopifyOrders")
|
|
.addItem("Get Shopify Products", "getShopifyProducts")
|
|
.addToUi()
|
|
}
|
|
|
|
function runShopifyOrders() {
|
|
let shop = new Shop()
|
|
shop.RunOrders()
|
|
}
|
|
|
|
function getShopifyProducts() {
|
|
let shop = new Shop()
|
|
shop.GetProducts()
|
|
}
|