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.
- package/package.json +1 -1
- package/src/index.js +2 -2
- package/src/sdk/Airwallex.js +1 -7
- package/src/sdk/Base.js +22 -33
- package/src/sdk/BusinessCentral.js +2 -8
- package/src/sdk/Dear.js +1 -7
- package/src/sdk/Dynamics365.js +1 -7
- package/src/sdk/EDI.js +19 -25
- package/src/sdk/Fo.js +1 -7
- package/src/sdk/GP.js +27 -33
- package/src/sdk/InspHire.js +1 -7
- package/src/sdk/Intacct.js +95 -101
- package/src/sdk/JobReady.js +1 -7
- package/src/sdk/JobReadyLive.js +1 -7
- package/src/sdk/MAM.js +19 -25
- package/src/sdk/MSSQL.js +1 -7
- package/src/sdk/MYOBAccountRight.js +1 -7
- package/src/sdk/MYOBAcumatica.js +1 -7
- package/src/sdk/Navision.js +1 -7
- package/src/sdk/Netsuite.js +1 -7
- package/src/sdk/NetsuiteSOAP.js +81 -87
- package/src/sdk/Nexvia.js +1 -7
- package/src/sdk/RetailExpress.js +1 -7
- package/src/sdk/S4.js +9 -22
- package/src/sdk/SAPB1.js +1 -7
- package/src/sdk/SFTP.js +1 -7
- package/src/sdk/Sharepoint.js +1 -7
- package/src/sdk/Skript.js +1 -7
- package/src/sdk/SunSystems.js +1 -7
- package/src/sdk/Sybiz.js +1 -7
- package/src/sdk/X3.js +19 -25
- package/src/sdk/Xero.js +19 -25
- package/src/sdk/Zenoti.js +1 -7
- package/src/sdk/Zudello.js +123 -130
- package/src/sdk/ZudelloAuth.js +2 -6
- package/src/sdk/ZudelloStore.js +7 -12
- package/src/sdk/submodules/jobreadylive/Universal.js +2 -2
- package/src/sdk/submodules/mssql/Universal.js +3 -4
- package/src/utils/ai.js +10 -5
- package/src/utils/apiInstance.js +5 -12
- package/src/utils/bucket.js +20 -11
- package/src/utils/config.js +49 -28
- package/src/utils/context.js +15 -0
- package/src/utils/datasetHelper.js +6 -4
- package/src/utils/ediBucket.js +2 -2
- package/src/utils/fileBucket.js +2 -2
- package/src/utils/formHelper.js +12 -9
- package/src/utils/logger.js +4 -2
- package/src/utils/message.js +10 -5
- package/src/utils/modelHelper.js +6 -4
- package/src/utils/responseHandler.js +23 -23
- package/src/utils/responseHelper.js +10 -7
- package/src/utils/s3Client.js +4 -3
- package/src/utils/trigger.js +10 -5
- package/src/sdk/Auth.js +0 -42
package/src/sdk/MAM.js
CHANGED
|
@@ -1,31 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict'
|
|
2
2
|
|
|
3
|
-
const BaseSDK = require(
|
|
4
|
-
const CreateModule = require(
|
|
3
|
+
const BaseSDK = require('./Base')
|
|
4
|
+
const CreateModule = require('./submodules/mam/Create')
|
|
5
5
|
|
|
6
6
|
class MAMSDK extends BaseSDK {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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 (
|
|
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 (
|
|
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
|
/**
|
package/src/sdk/MYOBAcumatica.js
CHANGED
|
@@ -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 (
|
|
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
|
/**
|
package/src/sdk/Navision.js
CHANGED
|
@@ -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 (
|
|
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
|
/**
|
package/src/sdk/Netsuite.js
CHANGED
|
@@ -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 (
|
|
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
|
/**
|
package/src/sdk/NetsuiteSOAP.js
CHANGED
|
@@ -1,101 +1,95 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict'
|
|
2
2
|
|
|
3
|
-
const _ = require(
|
|
3
|
+
const _ = require('lodash')
|
|
4
4
|
|
|
5
|
-
const BaseSDK = require(
|
|
6
|
-
const VendorBillModule = require(
|
|
7
|
-
const VendorCreditModule = require(
|
|
8
|
-
const UniversalModule = require(
|
|
9
|
-
const UniversalTransactionModule = require(
|
|
10
|
-
const PurchaseOrderModule = require(
|
|
11
|
-
const ReceiptModule = require(
|
|
12
|
-
const AttachmentModule = require(
|
|
13
|
-
const JournalEntryModule = require(
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
27
|
+
this.transformToTypes = ['vendorBill', 'itemReceipt']
|
|
34
28
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
if (!validateIncludes.valid) {
|
|
52
|
+
return this.responseHandler.error(validateIncludes.errors)
|
|
53
|
+
}
|
|
60
54
|
|
|
61
|
-
|
|
55
|
+
const validateIsEmpty = this.validator.isEmpty({ transformFrom })
|
|
62
56
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
57
|
+
if (!validateIsEmpty.valid) {
|
|
58
|
+
return this.responseHandler.error(validateIsEmpty.errors)
|
|
59
|
+
}
|
|
66
60
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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 (
|
|
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
|
/**
|
package/src/sdk/RetailExpress.js
CHANGED
|
@@ -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 (
|
|
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
|
-
|
|
1
|
+
'use strict'
|
|
2
2
|
|
|
3
|
-
const BaseSDK = require(
|
|
4
|
-
const UniversalModule = require(
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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(
|
|
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 (
|
|
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
|
/**
|
package/src/sdk/Sharepoint.js
CHANGED
|
@@ -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 (
|
|
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 (
|
|
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
|
/**
|
package/src/sdk/SunSystems.js
CHANGED
|
@@ -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 (
|
|
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 (
|
|
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
|
-
|
|
1
|
+
'use strict'
|
|
2
2
|
|
|
3
|
-
const BaseSDK = require(
|
|
4
|
-
const UniversalModule = require(
|
|
3
|
+
const BaseSDK = require('./Base')
|
|
4
|
+
const UniversalModule = require('./submodules/x3/Universal')
|
|
5
5
|
|
|
6
6
|
class X3SDK extends BaseSDK {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|