import { vlookupByColumns } from "./sheetUtils" export class Config { productPhotosFolderId: string shopifyApiKey: string shopifyApiSecretKey: string shopifyAdminApiAccessToken: string shopifyApiURI: string shopifyStorePublicationId: string shopifyLocationId: string shopifyCountryCodeOfOrigin: string shopifyProvinceCodeOfOrigin: string constructor() { let ss = SpreadsheetApp.getActive() let s = ss.getSheetByName("vars") this.productPhotosFolderId = vlookupByColumns( "vars", "key", "productPhotosFolderId", "value" ) this.shopifyApiKey = vlookupByColumns( "vars", "key", "shopifyApiKey", "value" ) this.shopifyApiSecretKey = vlookupByColumns( "vars", "key", "shopifyApiSecretKey", "value" ) this.shopifyAdminApiAccessToken = vlookupByColumns( "vars", "key", "shopifyAdminApiAccessToken", "value" ) this.shopifyApiURI = vlookupByColumns( "vars", "key", "shopifyApiURI", "value" ) this.shopifyStorePublicationId = vlookupByColumns( "vars", "key", "shopifyStorePublicationId", "value" ) this.shopifyLocationId = vlookupByColumns( "vars", "key", "shopifyLocationId", "value" ) this.shopifyCountryCodeOfOrigin = vlookupByColumns( "vars", "key", "shopifyCountryCodeOfOrigin", "value" ) this.shopifyProvinceCodeOfOrigin = vlookupByColumns( "vars", "key", "shopifyProvinceCodeOfOrigin", "value" ) } }