-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.sample.ts
45 lines (42 loc) · 1.46 KB
/
config.sample.ts
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
/**
* Configuration for connecting to NetSuite via OAuth1.
*
* @typedef {Object} NetsuiteConfig
* @property {string} account - The NetSuite account ID to connect to.
* @property {string} consumerKey - The OAuth1 consumer key for your application.
* @property {string} consumerSecret - The OAuth1 consumer secret for your application.
* @property {string} token - The OAuth1 token for your NetSuite user.
* @property {string} tokenSecret - The OAuth1 token secret for your NetSuite user.
* @property {string} restletUrl - The URL of the NetSuite RESTlet to use.
*/
/**
* Configuration for connecting to NetSuite via SAML.
*
* @typedef {Object} RealmConfig
* @property {string} realm - The NetSuite realm ID to connect to.
*/
/**
* Configuration for connecting to NetSuite.
*
* @typedef {Object} NetSuiteConfig
* @property {NetsuiteConfig} netsuite - Configuration for connecting via OAuth1.
* @property {RealmConfig} realm - Configuration for connecting via SAML.
*/
/**
* Configuration for connecting to NetSuite.
*
* @type {NetSuiteConfig}
*/
export const netsuite = {
account: "1234567-sb1",
consumerKey: "YOUR_CONSUMER_KEY",
consumerSecret: "YOUR_CONSUMER_SECRET",
token: "YOUR_TOKEN",
tokenSecret: "YOUR_TOKEN_SECRET",
restletUrl: "https://1234567-sb1.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=1234&deploy=1",
};
/**
* Configuration for connecting to NetSuite via SAML.
* @type {RealmConfig}
*/
export const realm = "1234567_SB1";