IO-233 ARMS event based updates.
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -113,3 +113,6 @@ firebase/.env
|
|||||||
!.elasticbeanstalk/*.cfg.yml
|
!.elasticbeanstalk/*.cfg.yml
|
||||||
!.elasticbeanstalk/*.global.yml
|
!.elasticbeanstalk/*.global.yml
|
||||||
logs/oAuthClient-log.log
|
logs/oAuthClient-log.log
|
||||||
|
|
||||||
|
|
||||||
|
.node-persist/**
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
Must set the environment variables using:
|
Must set the environment variables using:
|
||||||
|
|
||||||
firebase functions:config:set auth.graphql_endpoint="https://db.development.bodyshop.app/v1/graphql" auth.hasura_secret_admin_key="Dev-BodyShopApp!"
|
firebase functions:config:set auth.graphql_endpoint="https://db.dev.bodyshop.app/v1/graphql" auth.hasura_secret_admin_key="Dev-BodyShopApp!"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
version: 2
|
version: 2
|
||||||
endpoint: https://db.development.bodyshop.app
|
endpoint: https://db.dev.bodyshop.app
|
||||||
admin_secret: Dev-BodyShopApp!
|
admin_secret: Dev-BodyShopApp!
|
||||||
metadata_directory: metadata
|
metadata_directory: metadata
|
||||||
actions:
|
actions:
|
||||||
|
|||||||
@@ -1,30 +1,30 @@
|
|||||||
- function:
|
- function:
|
||||||
schema: public
|
|
||||||
name: search_bills
|
name: search_bills
|
||||||
- function:
|
|
||||||
schema: public
|
schema: public
|
||||||
|
- function:
|
||||||
name: search_cccontracts
|
name: search_cccontracts
|
||||||
- function:
|
|
||||||
schema: public
|
schema: public
|
||||||
|
- function:
|
||||||
name: search_dms_vehicles
|
name: search_dms_vehicles
|
||||||
- function:
|
|
||||||
schema: public
|
schema: public
|
||||||
|
- function:
|
||||||
name: search_exportlog
|
name: search_exportlog
|
||||||
- function:
|
|
||||||
schema: public
|
schema: public
|
||||||
|
- function:
|
||||||
name: search_inventory
|
name: search_inventory
|
||||||
- function:
|
|
||||||
schema: public
|
schema: public
|
||||||
|
- function:
|
||||||
name: search_jobs
|
name: search_jobs
|
||||||
- function:
|
|
||||||
schema: public
|
schema: public
|
||||||
|
- function:
|
||||||
name: search_owners
|
name: search_owners
|
||||||
- function:
|
|
||||||
schema: public
|
schema: public
|
||||||
|
- function:
|
||||||
name: search_payments
|
name: search_payments
|
||||||
- function:
|
|
||||||
schema: public
|
schema: public
|
||||||
|
- function:
|
||||||
name: search_phonebook
|
name: search_phonebook
|
||||||
- function:
|
|
||||||
schema: public
|
schema: public
|
||||||
|
- function:
|
||||||
name: search_vehicles
|
name: search_vehicles
|
||||||
|
schema: public
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -41,6 +41,7 @@
|
|||||||
"moment-timezone": "^0.5.34",
|
"moment-timezone": "^0.5.34",
|
||||||
"multer": "^1.4.5-lts.1",
|
"multer": "^1.4.5-lts.1",
|
||||||
"node-mailjet": "^5.1.0",
|
"node-mailjet": "^5.1.0",
|
||||||
|
"node-persist": "^3.1.0",
|
||||||
"node-quickbooks": "^2.0.39",
|
"node-quickbooks": "^2.0.39",
|
||||||
"nodemailer": "^6.7.7",
|
"nodemailer": "^6.7.7",
|
||||||
"phone": "^3.1.23",
|
"phone": "^3.1.23",
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ app.post("/qbo/payments", fb.validateFirebaseIdToken, qbo.payments);
|
|||||||
|
|
||||||
var data = require("./server/data/data");
|
var data = require("./server/data/data");
|
||||||
app.post("/data/ah", data.autohouse);
|
app.post("/data/ah", data.autohouse);
|
||||||
app.post("/data/arms", data.arms);
|
app.post("/record-handler/arms", data.arms);
|
||||||
|
|
||||||
var taskHandler = require("./server/tasks/tasks");
|
var taskHandler = require("./server/tasks/tasks");
|
||||||
app.post("/taskHandler", taskHandler.taskHandler);
|
app.post("/taskHandler", taskHandler.taskHandler);
|
||||||
@@ -238,6 +238,7 @@ app.get("/", async function (req, res) {
|
|||||||
res.status(200).send("Access Forbidden.");
|
res.status(200).send("Access Forbidden.");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
server.listen(port, (error) => {
|
server.listen(port, (error) => {
|
||||||
if (error) throw error;
|
if (error) throw error;
|
||||||
logger.log(
|
logger.log(
|
||||||
|
|||||||
1621
server/data/arms.js
1621
server/data/arms.js
File diff suppressed because it is too large
Load Diff
@@ -5,7 +5,7 @@ const logger = new graylog2.graylog({
|
|||||||
});
|
});
|
||||||
|
|
||||||
function log(message, type, user, record, object) {
|
function log(message, type, user, record, object) {
|
||||||
if (type !== "ioevent" && type !== "DEBUG")
|
if (type !== "ioevent")
|
||||||
console.log(message, {
|
console.log(message, {
|
||||||
type,
|
type,
|
||||||
env: process.env.NODE_ENV || "development",
|
env: process.env.NODE_ENV || "development",
|
||||||
|
|||||||
@@ -2715,6 +2715,11 @@ node-mailjet@^5.1.0:
|
|||||||
json-bigint "^1.0.0"
|
json-bigint "^1.0.0"
|
||||||
url-join "^4.0.0"
|
url-join "^4.0.0"
|
||||||
|
|
||||||
|
node-persist@^3.1.0:
|
||||||
|
version "3.1.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/node-persist/-/node-persist-3.1.0.tgz#9d4b03950bba70d37d13d3d3551840e25fd17e09"
|
||||||
|
integrity sha512-/j+fd/u71wNgKf3V2bx4tnDm+3GvLnlCuvf2MXbJ3wern+67IAb6zN9Leu1tCWPlPNZ+v1hLSibVukkPK2HqJw==
|
||||||
|
|
||||||
node-quickbooks@^2.0.39:
|
node-quickbooks@^2.0.39:
|
||||||
version "2.0.39"
|
version "2.0.39"
|
||||||
resolved "https://registry.yarnpkg.com/node-quickbooks/-/node-quickbooks-2.0.39.tgz#a2534d24063e8a0cea5bb80c66b0727c1c942081"
|
resolved "https://registry.yarnpkg.com/node-quickbooks/-/node-quickbooks-2.0.39.tgz#a2534d24063e8a0cea5bb80c66b0727c1c942081"
|
||||||
|
|||||||
Reference in New Issue
Block a user