-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinitialize.js
More file actions
53 lines (50 loc) · 1.13 KB
/
initialize.js
File metadata and controls
53 lines (50 loc) · 1.13 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
export default {
name: "Initialize NetSuite",
description: "Initialize NetSuite",
key: "initialize_netsuite",
version: "0.0.12",
type: "action",
props: {
consumer_key: {
type: "string",
label: "NetSuite Consumer Key",
secret: true,
},
consumer_secret_key: {
type: "string",
label: "NetSuite Consumer Secret",
secret: true,
},
token_id: {
type: "string",
label: "NetSuite Token ID",
secret: true,
},
token_secret: {
type: "string",
label: "NetSuite Token Secret",
secret: true,
},
account_id: {
type: "string",
label: "NetSuite Account ID",
},
base_url: {
type: "string",
label: "NetSuite Base URL",
optional: true,
},
},
async run({ $ }) {
const config = {
consumer_key: this.consumer_key,
consumer_secret_key: this.consumer_secret_key,
token: this.token_id,
token_secret: this.token_secret,
realm: this.account_id,
base_url: this.base_url,
};
$.export("$summary", "Successfully initialized NetSuite configuration.");
return config;
},
};