WIP quickbooks testing.

This commit is contained in:
Patrick Fic
2025-03-27 11:57:57 -07:00
parent e2ccbf7007
commit 7d59796f49
10 changed files with 755 additions and 1040 deletions

View File

@@ -1,16 +1,19 @@
import { electronApp, is, optimizer } from "@electron-toolkit/utils";
import { app, BrowserWindow, Menu, shell, nativeImage, Tray } from "electron";
import { app, BrowserWindow, Menu, nativeImage, shell, Tray } from "electron";
import log from "electron-log/main";
import { autoUpdater } from "electron-updater";
import path, { join } from "path";
import appIcon from "../../resources/diamond.png?asset";
import icon from "../../resources/icon.png?asset";
import ErrorTypeCheck from "../util/errorTypeCheck";
import {
default as ErrorTypeCheck,
default as errorTypeCheck,
} from "../util/errorTypeCheck";
import ipcTypes from "../util/ipcTypes.json";
import client from "./graphql/graphql-client";
import store from "./store/store";
import appIcon from "../../resources/diamond.png?asset";
import LocalServer from "./http-server/http-server";
import errorTypeCheck from "../util/errorTypeCheck";
import store from "./store/store";
import { TestQB } from "./quickbooks-desktop/quickbooks-desktop";
log.initialize();
const isMac = process.platform === "darwin";
@@ -171,20 +174,9 @@ function createWindow(): void {
type: "separator",
},
{
label: "Temp Test Action - Get Token from Renderer",
label: "Temp Test Action",
click: (): void => {
client
.request(
`
query jobs{
jobs
{
id}}
`,
)
.then((data) => {
log.info("Data from graffle", data);
});
TestQB();
},
},
],