zudello-integration-sdk 1.0.83 → 1.0.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +2 -2
  3. package/src/sdk/Airwallex.js +1 -7
  4. package/src/sdk/Base.js +22 -33
  5. package/src/sdk/BusinessCentral.js +2 -8
  6. package/src/sdk/Dear.js +1 -7
  7. package/src/sdk/Dynamics365.js +1 -7
  8. package/src/sdk/EDI.js +19 -25
  9. package/src/sdk/Fo.js +1 -7
  10. package/src/sdk/GP.js +27 -33
  11. package/src/sdk/InspHire.js +1 -7
  12. package/src/sdk/Intacct.js +95 -101
  13. package/src/sdk/JobReady.js +1 -7
  14. package/src/sdk/JobReadyLive.js +1 -7
  15. package/src/sdk/MAM.js +19 -25
  16. package/src/sdk/MSSQL.js +1 -7
  17. package/src/sdk/MYOBAccountRight.js +1 -7
  18. package/src/sdk/MYOBAcumatica.js +1 -7
  19. package/src/sdk/Navision.js +1 -7
  20. package/src/sdk/Netsuite.js +1 -7
  21. package/src/sdk/NetsuiteSOAP.js +81 -87
  22. package/src/sdk/Nexvia.js +1 -7
  23. package/src/sdk/RetailExpress.js +1 -7
  24. package/src/sdk/S4.js +9 -22
  25. package/src/sdk/SAPB1.js +1 -7
  26. package/src/sdk/SFTP.js +1 -7
  27. package/src/sdk/Sharepoint.js +1 -7
  28. package/src/sdk/Skript.js +1 -7
  29. package/src/sdk/SunSystems.js +1 -7
  30. package/src/sdk/Sybiz.js +1 -7
  31. package/src/sdk/X3.js +19 -25
  32. package/src/sdk/Xero.js +19 -25
  33. package/src/sdk/Zenoti.js +1 -7
  34. package/src/sdk/Zudello.js +123 -130
  35. package/src/sdk/ZudelloAuth.js +2 -6
  36. package/src/sdk/ZudelloStore.js +7 -12
  37. package/src/sdk/submodules/jobreadylive/Universal.js +2 -2
  38. package/src/sdk/submodules/mssql/Universal.js +3 -4
  39. package/src/utils/ai.js +10 -5
  40. package/src/utils/apiInstance.js +5 -12
  41. package/src/utils/bucket.js +20 -11
  42. package/src/utils/config.js +49 -28
  43. package/src/utils/context.js +15 -0
  44. package/src/utils/datasetHelper.js +6 -4
  45. package/src/utils/ediBucket.js +2 -2
  46. package/src/utils/fileBucket.js +2 -2
  47. package/src/utils/formHelper.js +12 -9
  48. package/src/utils/logger.js +4 -2
  49. package/src/utils/message.js +10 -5
  50. package/src/utils/modelHelper.js +6 -4
  51. package/src/utils/responseHandler.js +23 -23
  52. package/src/utils/responseHelper.js +10 -7
  53. package/src/utils/s3Client.js +4 -3
  54. package/src/utils/trigger.js +10 -5
  55. package/src/sdk/Auth.js +0 -42
package/src/sdk/MAM.js CHANGED
@@ -1,31 +1,25 @@
1
- "use strict";
1
+ 'use strict'
2
2
 
3
- const BaseSDK = require("./Base");
4
- const CreateModule = require("./submodules/mam/Create");
3
+ const BaseSDK = require('./Base')
4
+ const CreateModule = require('./submodules/mam/Create')
5
5
 
6
6
  class MAMSDK extends BaseSDK {
7
- /**
8
- * Constructor.
9
- * @param {class} auth Auth class object with authorized api instance.
10
- * @param {string} connectionUUID The UUID of the Connection we're working on.
11
- */
12
- constructor(auth, connectionUUID, organizationUUID, apiURL, apiVersion, loggerClass = null) {
13
- super({
14
- auth,
15
- connectionUUID,
16
- organizationUUID,
17
- apiURL,
18
- apiVersion,
19
- appUUIDKey: "mam",
20
- integrationName: "MAM",
21
- loggerClass,
22
- });
7
+ /**
8
+ * Constructor.
9
+ * @param {string} connectionUUID The UUID of the Connection we're working on.
10
+ */
11
+ constructor(connectionUUID) {
12
+ super({
13
+ connectionUUID,
14
+ appUUIDKey: 'mam',
15
+ integrationName: 'MAM',
16
+ })
23
17
 
24
- /**
25
- * Create submodule instances.
26
- */
27
- this.create = new CreateModule(this);
28
- }
18
+ /**
19
+ * Create submodule instances.
20
+ */
21
+ this.create = new CreateModule(this)
22
+ }
29
23
  }
30
24
 
31
- module.exports = MAMSDK;
25
+ module.exports = MAMSDK
package/src/sdk/MSSQL.js CHANGED
@@ -6,19 +6,13 @@ const UniversalModule = require('./submodules/mssql/Universal')
6
6
  class MSSQLSDK extends BaseSDK {
7
7
  /**
8
8
  * Constructor.
9
- * @param {class} auth Auth class object with authorized api instance.
10
9
  * @param {string} connectionUUID The UUID of the Connection we're working on.
11
10
  */
12
- constructor (auth, connectionUUID, organizationUUID, apiURL, apiVersion, loggerClass = null) {
11
+ constructor (connectionUUID) {
13
12
  super({
14
- auth,
15
13
  connectionUUID,
16
- organizationUUID,
17
- apiURL,
18
- apiVersion,
19
14
  appUUIDKey: 'mssql',
20
15
  integrationName: 'MSSQL',
21
- loggerClass
22
16
  })
23
17
 
24
18
  /**
@@ -6,19 +6,13 @@ const UniversalModule = require('./submodules/myobAccountRight/Universal')
6
6
  class MYOBAccountRightSDK extends BaseSDK {
7
7
  /**
8
8
  * Constructor.
9
- * @param {class} auth Auth class object with authorized api instance.
10
9
  * @param {string} connectionUUID The UUID of the Connection we're working on.
11
10
  */
12
- constructor (auth, connectionUUID, organizationUUID, apiURL, apiVersion, loggerClass = null) {
11
+ constructor (connectionUUID) {
13
12
  super({
14
- auth,
15
13
  connectionUUID,
16
- organizationUUID,
17
- apiURL,
18
- apiVersion,
19
14
  appUUIDKey: 'myobAccountRight',
20
15
  integrationName: 'MYOBAccountRight',
21
- loggerClass
22
16
  })
23
17
 
24
18
  /**
@@ -7,19 +7,13 @@ const ODataModule = require('./submodules/myobAcumatica/OData')
7
7
  class MYOBAcumaticaSDK extends BaseSDK {
8
8
  /**
9
9
  * Constructor.
10
- * @param {class} auth Auth class object with authorized api instance.
11
10
  * @param {string} connectionUUID The UUID of the Connection we're working on.
12
11
  */
13
- constructor (auth, connectionUUID, organizationUUID, apiURL, apiVersion, loggerClass = null) {
12
+ constructor (connectionUUID) {
14
13
  super({
15
- auth,
16
14
  connectionUUID,
17
- organizationUUID,
18
- apiURL,
19
- apiVersion,
20
15
  appUUIDKey: 'myobAcumatica',
21
16
  integrationName: 'MYOBAcumatica',
22
- loggerClass
23
17
  })
24
18
 
25
19
  /**
@@ -6,19 +6,13 @@ const UniversalModule = require('./submodules/navision/Universal')
6
6
  class NavisionSDK extends BaseSDK {
7
7
  /**
8
8
  * Constructor.
9
- * @param {class} auth Auth class object with authorized api instance.
10
9
  * @param {string} connectionUUID The UUID of the Connection we're working on.
11
10
  */
12
- constructor (auth, connectionUUID, organizationUUID, apiURL, apiVersion, loggerClass = null) {
11
+ constructor (connectionUUID) {
13
12
  super({
14
- auth,
15
13
  connectionUUID,
16
- organizationUUID,
17
- apiURL,
18
- apiVersion,
19
14
  appUUIDKey: 'navision',
20
15
  integrationName: 'Navision',
21
- loggerClass
22
16
  })
23
17
 
24
18
  /**
@@ -6,19 +6,13 @@ const UniversalModule = require('./submodules/netsuite/Universal')
6
6
  class NetsuiteSDK extends BaseSDK {
7
7
  /**
8
8
  * Constructor.
9
- * @param {class} auth Auth class object with authorized api instance.
10
9
  * @param {string} connectionUUID The UUID of the Connection we're working on.
11
10
  */
12
- constructor (auth, connectionUUID, organizationUUID, apiURL, apiVersion, loggerClass = null) {
11
+ constructor (connectionUUID) {
13
12
  super({
14
- auth,
15
13
  connectionUUID,
16
- organizationUUID,
17
- apiURL,
18
- apiVersion,
19
14
  appUUIDKey: 'netsuite',
20
15
  integrationName: 'Netsuite',
21
- loggerClass
22
16
  })
23
17
 
24
18
  /**
@@ -1,101 +1,95 @@
1
- "use strict";
1
+ 'use strict'
2
2
 
3
- const _ = require("lodash");
3
+ const _ = require('lodash')
4
4
 
5
- const BaseSDK = require("./Base");
6
- const VendorBillModule = require("./submodules/netsuite-soap/VendorBill");
7
- const VendorCreditModule = require("./submodules/netsuite-soap/VendorCredit");
8
- const UniversalModule = require("./submodules/netsuite-soap/Universal");
9
- const UniversalTransactionModule = require("./submodules/netsuite-soap/UniversalTransaction");
10
- const PurchaseOrderModule = require("./submodules/netsuite-soap/PurchaseOrder");
11
- const ReceiptModule = require("./submodules/netsuite-soap/Receipt");
12
- const AttachmentModule = require("./submodules/netsuite-soap/Attachment");
13
- const JournalEntryModule = require("./submodules/netsuite-soap/JournalEntry");
5
+ const BaseSDK = require('./Base')
6
+ const VendorBillModule = require('./submodules/netsuite-soap/VendorBill')
7
+ const VendorCreditModule = require('./submodules/netsuite-soap/VendorCredit')
8
+ const UniversalModule = require('./submodules/netsuite-soap/Universal')
9
+ const UniversalTransactionModule = require('./submodules/netsuite-soap/UniversalTransaction')
10
+ const PurchaseOrderModule = require('./submodules/netsuite-soap/PurchaseOrder')
11
+ const ReceiptModule = require('./submodules/netsuite-soap/Receipt')
12
+ const AttachmentModule = require('./submodules/netsuite-soap/Attachment')
13
+ const JournalEntryModule = require('./submodules/netsuite-soap/JournalEntry')
14
14
 
15
15
  class NetsuiteSoapSDK extends BaseSDK {
16
- /**
17
- * Constructor.
18
- * @param {class} auth Auth class object with authorized api instance.
19
- * @param {string} connectionUUID The UUID of the Connection we're working on.
20
- */
21
- constructor(auth, connectionUUID, organizationUUID, apiURL, apiVersion, loggerClass = null) {
22
- super({
23
- auth,
24
- connectionUUID,
25
- organizationUUID,
26
- apiURL,
27
- apiVersion,
28
- appUUIDKey: "netsuite",
29
- integrationName: "NetsuiteSOAP",
30
- loggerClass,
31
- });
16
+ /**
17
+ * Constructor.
18
+ * @param {string} connectionUUID The UUID of the Connection we're working on.
19
+ */
20
+ constructor(connectionUUID) {
21
+ super({
22
+ connectionUUID,
23
+ appUUIDKey: 'netsuite',
24
+ integrationName: 'NetsuiteSOAP',
25
+ })
32
26
 
33
- this.transformToTypes = ["vendorBill", "itemReceipt"];
27
+ this.transformToTypes = ['vendorBill', 'itemReceipt']
34
28
 
35
- /**
36
- * Create submodule instances.
37
- */
38
- this.vendorBill = new VendorBillModule(this);
39
- this.vendorCredit = new VendorCreditModule(this);
40
- this.universal = new UniversalModule(this);
41
- this.universalTransaction = new UniversalTransactionModule(this);
42
- this.purchaseOrder = new PurchaseOrderModule(this);
43
- this.receipt = new ReceiptModule(this);
44
- this.attach = new AttachmentModule(this);
45
- this.journalEntry = new JournalEntryModule(this);
46
- }
29
+ /**
30
+ * Create submodule instances.
31
+ */
32
+ this.vendorBill = new VendorBillModule(this)
33
+ this.vendorCredit = new VendorCreditModule(this)
34
+ this.universal = new UniversalModule(this)
35
+ this.universalTransaction = new UniversalTransactionModule(this)
36
+ this.purchaseOrder = new PurchaseOrderModule(this)
37
+ this.receipt = new ReceiptModule(this)
38
+ this.attach = new AttachmentModule(this)
39
+ this.journalEntry = new JournalEntryModule(this)
40
+ }
47
41
 
48
- /**
49
- * Transaction transform FROM.
50
- * @param {array} transformFrom.
51
- * @param {string} transformTo.
52
- * @returns {object} Transformed Response.
53
- */
54
- async transform({ transformFrom, transformTo }) {
55
- const validateIncludes = this.validator.includes(this.transformToTypes, transformTo);
42
+ /**
43
+ * Transaction transform FROM.
44
+ * @param {array} transformFrom.
45
+ * @param {string} transformTo.
46
+ * @returns {object} Transformed Response.
47
+ */
48
+ async transform({ transformFrom, transformTo }) {
49
+ const validateIncludes = this.validator.includes(this.transformToTypes, transformTo)
56
50
 
57
- if (!validateIncludes.valid) {
58
- return this.responseHandler.error(validateIncludes.errors);
59
- }
51
+ if (!validateIncludes.valid) {
52
+ return this.responseHandler.error(validateIncludes.errors)
53
+ }
60
54
 
61
- const validateIsEmpty = this.validator.isEmpty({ transformFrom });
55
+ const validateIsEmpty = this.validator.isEmpty({ transformFrom })
62
56
 
63
- if (!validateIsEmpty.valid) {
64
- return this.responseHandler.error(validateIsEmpty.errors);
65
- }
57
+ if (!validateIsEmpty.valid) {
58
+ return this.responseHandler.error(validateIsEmpty.errors)
59
+ }
66
60
 
67
- return await this.makeRequest(
68
- "GET",
69
- `${this.apiURL}/zintegrations/action/d751e693-6bbb-4c93-aff4-6561bba29f03`,
70
- {
71
- mappable_parameters: {
72
- transformFrom: {
73
- value: transformFrom,
74
- },
75
- transformTo: {
76
- value: transformTo,
77
- },
78
- },
79
- _debug: true,
80
- }
81
- );
82
- }
61
+ return await this.makeRequest(
62
+ 'GET',
63
+ `${this.apiURL}/zintegrations/action/d751e693-6bbb-4c93-aff4-6561bba29f03`,
64
+ {
65
+ mappable_parameters: {
66
+ transformFrom: {
67
+ value: transformFrom,
68
+ },
69
+ transformTo: {
70
+ value: transformTo,
71
+ },
72
+ },
73
+ _debug: true,
74
+ }
75
+ )
76
+ }
83
77
 
84
- parseFilters(entries) {
85
- return _.map(entries, (entry) => {
86
- return {
87
- field: {
88
- value: entry.field,
89
- },
90
- operator: {
91
- value: entry.operator,
92
- },
93
- value: {
94
- value: entry.value,
95
- },
96
- };
97
- });
98
- }
78
+ parseFilters(entries) {
79
+ return _.map(entries, (entry) => {
80
+ return {
81
+ field: {
82
+ value: entry.field,
83
+ },
84
+ operator: {
85
+ value: entry.operator,
86
+ },
87
+ value: {
88
+ value: entry.value,
89
+ },
90
+ }
91
+ })
92
+ }
99
93
  }
100
94
 
101
- module.exports = NetsuiteSoapSDK;
95
+ module.exports = NetsuiteSoapSDK
package/src/sdk/Nexvia.js CHANGED
@@ -6,19 +6,13 @@ const UniversalModule = require('./submodules/nexvia/Universal')
6
6
  class NexviaSDK extends BaseSDK {
7
7
  /**
8
8
  * Constructor.
9
- * @param {class} auth Auth class object with authorized api instance.
10
9
  * @param {string} connectionUUID The UUID of the Connection we're working on.
11
10
  */
12
- constructor (auth, connectionUUID, organizationUUID, apiURL, apiVersion, loggerClass = null) {
11
+ constructor (connectionUUID) {
13
12
  super({
14
- auth,
15
13
  connectionUUID,
16
- organizationUUID,
17
- apiURL,
18
- apiVersion,
19
14
  appUUIDKey: 'nexvia',
20
15
  integrationName: 'Nexvia',
21
- loggerClass
22
16
  })
23
17
 
24
18
  /**
@@ -6,19 +6,13 @@ const UniversalModule = require('./submodules/retailExpress/Universal')
6
6
  class RetailExpressSDK extends BaseSDK {
7
7
  /**
8
8
  * Constructor.
9
- * @param {class} auth Auth class object with authorized api instance.
10
9
  * @param {string} connectionUUID The UUID of the Connection we're working on.
11
10
  */
12
- constructor (auth, connectionUUID, organizationUUID, apiURL, apiVersion, loggerClass = null) {
11
+ constructor (connectionUUID) {
13
12
  super({
14
- auth,
15
13
  connectionUUID,
16
- organizationUUID,
17
- apiURL,
18
- apiVersion,
19
14
  appUUIDKey: 'retailExpress',
20
15
  integrationName: 'RetailExpress',
21
- loggerClass
22
16
  })
23
17
 
24
18
  /**
package/src/sdk/S4.js CHANGED
@@ -1,38 +1,25 @@
1
- "use strict";
1
+ 'use strict'
2
2
 
3
- const BaseSDK = require("./Base");
4
- const UniversalModule = require("./submodules/s4/Universal");
3
+ const BaseSDK = require('./Base')
4
+ const UniversalModule = require('./submodules/s4/Universal')
5
5
 
6
6
  class S4SDK extends BaseSDK {
7
7
  /**
8
8
  * Constructor.
9
- * @param {class} auth Auth class object with authorized api instance.
10
9
  * @param {string} connectionUUID The UUID of the Connection we're working on.
11
10
  */
12
- constructor(
13
- auth,
14
- connectionUUID,
15
- organizationUUID,
16
- apiURL,
17
- apiVersion,
18
- loggerClass = null
19
- ) {
11
+ constructor(connectionUUID) {
20
12
  super({
21
- auth,
22
13
  connectionUUID,
23
- organizationUUID,
24
- apiURL,
25
- apiVersion,
26
- appUUIDKey: "s4",
27
- integrationName: "S4",
28
- loggerClass,
29
- });
14
+ appUUIDKey: 's4',
15
+ integrationName: 'S4',
16
+ })
30
17
 
31
18
  /**
32
19
  * Create submodule instances.
33
20
  */
34
- this.universal = new UniversalModule(this);
21
+ this.universal = new UniversalModule(this)
35
22
  }
36
23
  }
37
24
 
38
- module.exports = S4SDK;
25
+ module.exports = S4SDK
package/src/sdk/SAPB1.js CHANGED
@@ -13,19 +13,13 @@ const SaleCreditModule = require('./submodules/sap-b1/sale/Credit')
13
13
  class SAPB1SDK extends BaseSDK {
14
14
  /**
15
15
  * Constructor.
16
- * @param {class} auth Auth class object with authorized api instance.
17
16
  * @param {string} connectionUUID The UUID of the Connection we're working on.
18
17
  */
19
- constructor(auth, connectionUUID, organizationUUID, apiURL, apiVersion, loggerClass = null) {
18
+ constructor(connectionUUID) {
20
19
  super({
21
- auth,
22
20
  connectionUUID,
23
- organizationUUID,
24
- apiURL,
25
- apiVersion,
26
21
  appUUIDKey: 'sapb1',
27
22
  integrationName: 'SAPB1',
28
- loggerClass
29
23
  })
30
24
 
31
25
  /**
package/src/sdk/SFTP.js CHANGED
@@ -6,19 +6,13 @@ const UniversalModule = require('./submodules/sftp/Universal')
6
6
  class SharepointSDK extends BaseSDK {
7
7
  /**
8
8
  * Constructor.
9
- * @param {class} auth Auth class object with authorized api instance.
10
9
  * @param {string} connectionUUID The UUID of the Connection we're working on.
11
10
  */
12
- constructor (auth, connectionUUID, organizationUUID, apiURL, apiVersion, loggerClass = null) {
11
+ constructor (connectionUUID) {
13
12
  super({
14
- auth,
15
13
  connectionUUID,
16
- organizationUUID,
17
- apiURL,
18
- apiVersion,
19
14
  appUUIDKey: 'sftp',
20
15
  integrationName: 'SFTP',
21
- loggerClass
22
16
  })
23
17
 
24
18
  /**
@@ -6,19 +6,13 @@ const UniversalModule = require('./submodules/sharepoint/Universal')
6
6
  class SharepointSDK extends BaseSDK {
7
7
  /**
8
8
  * Constructor.
9
- * @param {class} auth Auth class object with authorized api instance.
10
9
  * @param {string} connectionUUID The UUID of the Connection we're working on.
11
10
  */
12
- constructor (auth, connectionUUID, organizationUUID, apiURL, apiVersion, loggerClass = null) {
11
+ constructor (connectionUUID) {
13
12
  super({
14
- auth,
15
13
  connectionUUID,
16
- organizationUUID,
17
- apiURL,
18
- apiVersion,
19
14
  appUUIDKey: 'sharepoint',
20
15
  integrationName: 'Sharepoint',
21
- loggerClass
22
16
  })
23
17
 
24
18
  /**
package/src/sdk/Skript.js CHANGED
@@ -6,19 +6,13 @@ const UniversalModule = require('./submodules/skript/Universal')
6
6
  class SkriptSDK extends BaseSDK {
7
7
  /**
8
8
  * Constructor.
9
- * @param {class} auth Auth class object with authorized api instance.
10
9
  * @param {string} connectionUUID The UUID of the Connection we're working on.
11
10
  */
12
- constructor (auth, connectionUUID, organizationUUID, apiURL, apiVersion, loggerClass = null) {
11
+ constructor (connectionUUID) {
13
12
  super({
14
- auth,
15
13
  connectionUUID,
16
- organizationUUID,
17
- apiURL,
18
- apiVersion,
19
14
  appUUIDKey: 'skript',
20
15
  integrationName: 'Skript',
21
- loggerClass
22
16
  })
23
17
 
24
18
  /**
@@ -6,19 +6,13 @@ const UniversalModule = require('./submodules/sunsystems/Universal')
6
6
  class SunSystemsSDK extends BaseSDK {
7
7
  /**
8
8
  * Constructor.
9
- * @param {class} auth Auth class object with authorized api instance.
10
9
  * @param {string} connectionUUID The UUID of the Connection we're working on.
11
10
  */
12
- constructor (auth, connectionUUID, organizationUUID, apiURL, apiVersion, loggerClass = null) {
11
+ constructor (connectionUUID) {
13
12
  super({
14
- auth,
15
13
  connectionUUID,
16
- organizationUUID,
17
- apiURL,
18
- apiVersion,
19
14
  appUUIDKey: 'sunsystems',
20
15
  integrationName: 'SunSystems',
21
- loggerClass
22
16
  })
23
17
 
24
18
  /**
package/src/sdk/Sybiz.js CHANGED
@@ -6,19 +6,13 @@ const UniversalModule = require('./submodules/sybiz/Universal')
6
6
  class SybizSDK extends BaseSDK {
7
7
  /**
8
8
  * Constructor.
9
- * @param {class} auth Auth class object with authorized api instance.
10
9
  * @param {string} connectionUUID The UUID of the Connection we're working on.
11
10
  */
12
- constructor (auth, connectionUUID, organizationUUID, apiURL, apiVersion, loggerClass = null) {
11
+ constructor (connectionUUID) {
13
12
  super({
14
- auth,
15
13
  connectionUUID,
16
- organizationUUID,
17
- apiURL,
18
- apiVersion,
19
14
  appUUIDKey: 'sybiz',
20
15
  integrationName: 'Sybiz',
21
- loggerClass
22
16
  })
23
17
 
24
18
  /**
package/src/sdk/X3.js CHANGED
@@ -1,31 +1,25 @@
1
- "use strict";
1
+ 'use strict'
2
2
 
3
- const BaseSDK = require("./Base");
4
- const UniversalModule = require("./submodules/x3/Universal");
3
+ const BaseSDK = require('./Base')
4
+ const UniversalModule = require('./submodules/x3/Universal')
5
5
 
6
6
  class X3SDK extends BaseSDK {
7
- /**
8
- * Constructor.
9
- * @param {class} auth Auth class object with authorized api instance.
10
- * @param {string} connectionUUID The UUID of the Connection we're working on.
11
- */
12
- constructor(auth, connectionUUID, organizationUUID, apiURL, apiVersion, loggerClass = null) {
13
- super({
14
- auth,
15
- connectionUUID,
16
- organizationUUID,
17
- apiURL,
18
- apiVersion,
19
- appUUIDKey: "x3",
20
- integrationName: "X3",
21
- loggerClass,
22
- });
7
+ /**
8
+ * Constructor.
9
+ * @param {string} connectionUUID The UUID of the Connection we're working on.
10
+ */
11
+ constructor(connectionUUID) {
12
+ super({
13
+ connectionUUID,
14
+ appUUIDKey: 'x3',
15
+ integrationName: 'X3',
16
+ })
23
17
 
24
- /**
25
- * Create submodule instances.
26
- */
27
- this.universal = new UniversalModule(this);
28
- }
18
+ /**
19
+ * Create submodule instances.
20
+ */
21
+ this.universal = new UniversalModule(this)
22
+ }
29
23
  }
30
24
 
31
- module.exports = X3SDK;
25
+ module.exports = X3SDK