-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
31 lines (26 loc) · 969 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { HttpClient } from "./src/HTTPClient.js";
import { LinkActionContext } from "./src/LinkActionContext.js";
import { API } from "./src/API.js";
import { Config } from "./src/Config.js";
import { SchemaUtils } from "./src/utils/schemaUtils.js";
import { CommonUtils } from "./src/utils/CommonUtils.js";
import { JSONUtils } from "./src/utils/JSONUtils.js";
import { logger } from "./src/utils/Logger.js";
import { NetsuiteOAuth2 } from "./src/NetsuiteOAuth2.js";
import { Helper } from "./src/helper.js";
import { LinkActionMain } from "./src/LinkActionMain.js";
async function main() {
CommonUtils.generateBanner('Link Action Sandbox');
const argv = CommonUtils.readArgs();
const { la, file, config } = argv;
await LinkActionMain.testInboundLinkAction(la, file, config);
await LinkActionMain.testOutboundLinkAction(la, file, config);
}
(async () => {
try {
main();
}
catch (err) {
console.log(err);
}
})();