HelenaExpressApp/www/settings.js

73 lines
3.6 KiB
JavaScript
Raw Normal View History

2020-10-10 19:26:30 -06:00
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
var SETTINGS = {
apis: {
// Tracking
2021-10-19 17:31:38 -06:00
track: "http://localhost/helena.express/apis/track/",
trackmultiple: "http://localhost/helena.express/apis/trackmultiple/",
// Shipping rates
2021-10-19 17:31:38 -06:00
rates: "http://localhost/helena.express/apis/rates/",
2022-05-20 12:36:37 -06:00
// ZIP Code lookup
zipcodelookup: "http://localhost/helena.express/apis/zipcodelookup/",
// Get appointment iframe URL
2022-01-19 15:33:40 -07:00
appointmentredirect: "http://localhost/helena.express/apis/appointmentredirect/",
// Request home pickup
2021-10-19 17:31:38 -06:00
requestpickup: "http://localhost/helena.express/apis/requestpickup/",
// Drop and Send
2021-10-19 17:31:38 -06:00
dropandsendlocations: "http://localhost/helena.express/apis/dropandsend/locations/",
dropandsendpickup: "http://localhost/helena.express/apis/dropandsend/requestpickup/",
// Fetch account data
2021-10-19 17:31:38 -06:00
getaccountinfo: "http://localhost/helena.express/apis/account/getinfo/",
// Fetch tracking numbers associated with account
gettrackingnumbers: "http://localhost/helena.express/apis/account/gettrackingnumbers/",
// Account login/registration/onboarding endpoints
2021-10-19 17:31:38 -06:00
authorstartverify: "http://localhost/helena.express/apis/account/authorstartverify/",
verifyauthcode: "http://localhost/helena.express/apis/account/verifyauthcode/",
accountregister: "http://localhost/helena.express/apis/account/register/",
// Setup saved payment method
2021-10-19 17:31:38 -06:00
redirecttopaymentsetup: "http://localhost/helena.express/apis/account/redirecttopaymentsetup/",
finishpaymentsetup: "http://localhost/helena.express/apis/account/finishpaymentsetup/",
// Send a telegram message
2022-01-19 15:33:40 -07:00
sendtelegram: "http://localhost/helena.express/apis/telegram",
// Fetch shop items
2022-01-19 15:33:40 -07:00
shopitems: "http://localhost/helena.express/apis/shop/items",
// Create a shop order
2022-02-01 19:52:22 -07:00
shopbuy: "http://localhost/helena.express/apis/shop/buy",
// Get receipts linked with account
2022-02-01 19:52:22 -07:00
getreceipts: "http://localhost/helena.express/apis/account/getreceipts",
2022-04-06 23:40:20 -06:00
getreceipt: "http://localhost/helena.express/apis/account/getreceipt",
// Crypto: check balance and send transactions
walletbalance: "http://localhost/helena.express/apis/crypto/walletbalance",
2022-04-15 00:25:59 -06:00
getutxo: "http://localhost/helena.express/apis/crypto/getutxo",
broadcasttransaction: "http://localhost/helena.express/apis/crypto/broadcasttransaction",
cryptofees: "http://localhost/helena.express/apis/crypto/fees",
// Service area map
2022-08-31 23:53:27 -06:00
servicearea: "http://localhost/helena.express/apis/servicearea",
trailerschedule: "https://helena.express/mobile/schedule.json"
2020-10-10 19:26:30 -06:00
},
2021-09-10 00:03:48 -06:00
stripe_pubkey: "pk_test_51J6qFXCa1Fboir5UzPO3LCiMsVNiFP2lq4wR0dEcjJJVzAaJ3uRggDekZPB3qeYpMD3ayIYHKyD5sSn0IFLlEXMW001LqrvGSH",
2020-10-10 19:26:30 -06:00
branding: {
2021-01-22 12:06:20 -07:00
apptitle: "Helena Express",
company: "Helena Express",
website: "https://helena.express"
2020-10-10 19:26:30 -06:00
},
maptileurls: {
liberty: {
url: "https://maps.netsyms.net/styles/osm-liberty/{z}/{x}/{y}.png",
json: "https://maps.netsyms.net/styles/osm-liberty/style.json",
name: "Liberty",
bgcolor: "#EFEFEF"
},
libertydark: {
url: "https://maps.netsyms.net/styles/osm-liberty-dark/{z}/{x}/{y}.png",
json: "https://maps.netsyms.net/styles/osm-liberty-dark/style.json",
name: "Dark",
bgcolor: "#1A1A1A"
2020-10-10 19:26:30 -06:00
}
}
}