@yousolution/node-red-contrib-you-sap-service-layer 0.2.1 → 0.2.3
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/.prettierrc +6 -0
- package/.vscode/launch.json +23 -23
- package/CHANGELOG.md +57 -49
- package/README.md +126 -126
- package/docker-compose.yml +14 -14
- package/examples/example.json +625 -625
- package/nodes/SQLQuery.html +179 -179
- package/nodes/SQLQuery.js +46 -46
- package/nodes/authenticateSap.html +146 -146
- package/nodes/authenticateSap.js +129 -129
- package/nodes/closeSap.html +128 -97
- package/nodes/closeSap.js +36 -36
- package/nodes/createSQLQuery.html +165 -165
- package/nodes/createSQLQuery.js +70 -70
- package/nodes/createSap.html +391 -391
- package/nodes/createSap.js +40 -40
- package/nodes/crossJoinSap.html +394 -394
- package/nodes/crossJoinSap.js +37 -37
- package/nodes/deleteSap.html +406 -407
- package/nodes/deleteSap.js +35 -35
- package/nodes/getSap.html +427 -445
- package/nodes/getSap.js +34 -34
- package/nodes/listSap.html +402 -402
- package/nodes/listSap.js +37 -37
- package/nodes/manageErrors.js +38 -38
- package/nodes/manipulateEntitySap.html +176 -176
- package/nodes/manipulateEntitySap.js +46 -46
- package/nodes/nextLink.html +100 -100
- package/nodes/nextLink.js +18 -18
- package/nodes/patchSap.html +424 -434
- package/nodes/patchSap.js +40 -40
- package/nodes/serviceSap.html +206 -206
- package/nodes/serviceSap.js +39 -44
- package/nodes/support.js +363 -363
- package/package.json +65 -65
- package/resources/entities.json +59 -59
- package/resources/services.json +343 -343
- package/test/authenticateSap.spec.js +307 -307
- package/test/closeSap.spec.js +156 -156
- package/test/createSQLQuery.spec.js +174 -174
- package/test/createSap.spec.js +183 -183
- package/test/crossJoinSap.spec.js +156 -156
- package/test/deleteSap.spec.js +156 -156
- package/test/getSap.spec.js +156 -156
- package/test/listSap.spec.js +156 -156
- package/test/manipulateEntitySap.spec.js +191 -191
- package/test/patchSap.spec.js +184 -184
- package/test/serviceSap.spec.js +170 -170
- package/test/support.spec.js +1419 -1419
package/package.json
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@yousolution/node-red-contrib-you-sap-service-layer",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Unofficial module SAP Service Layer for NODE-RED",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"update": "run-script-os",
|
|
8
|
-
"update:linux:darwin": "npm pack && mv yousolution-node-red-contrib-you-sap-service-layer-$npm_package_version.tgz ./data && cd data && npm i yousolution-node-red-contrib-you-sap-service-layer-$npm_package_version.tgz && docker-compose restart",
|
|
9
|
-
"update:win32": "npm pack && copy yousolution-node-red-contrib-you-sap-service-layer-%npm_package_version%.tgz .\\data\\ && cd .\\data\\ && npm i yousolution-node-red-contrib-you-sap-service-layer-%npm_package_version%.tgz && docker-compose restart",
|
|
10
|
-
"update:default": "npm pack && mv yousolution-node-red-contrib-you-sap-service-layer-$npm_package_version.tgz ./data && cd data && npm i yousolution-node-red-contrib-you-sap-service-layer-$npm_package_version.tgz && docker-compose restart",
|
|
11
|
-
"test": "mocha 'test/**/*.spec.js'",
|
|
12
|
-
"coverage": "nyc npm run test"
|
|
13
|
-
},
|
|
14
|
-
"keywords": [
|
|
15
|
-
"node-red",
|
|
16
|
-
"SAP",
|
|
17
|
-
"service layer",
|
|
18
|
-
"API",
|
|
19
|
-
"ERP",
|
|
20
|
-
"integration",
|
|
21
|
-
"youSolution.Cloud"
|
|
22
|
-
],
|
|
23
|
-
"author": "Andrea Trentin <andrea.trentin@yousolution.cloud>",
|
|
24
|
-
"node-red": {
|
|
25
|
-
"version": ">=2.0.0",
|
|
26
|
-
"nodes": {
|
|
27
|
-
"authenticateSap": "/nodes/authenticateSap.js",
|
|
28
|
-
"listSap": "/nodes/listSap.js",
|
|
29
|
-
"createSap": "/nodes/createSap.js",
|
|
30
|
-
"deleteSap": "/nodes/deleteSap.js",
|
|
31
|
-
"getSap": "/nodes/getSap.js",
|
|
32
|
-
"patchSap": "/nodes/patchSap.js",
|
|
33
|
-
"closeSap": "/nodes/closeSap.js",
|
|
34
|
-
"crossJoinSap": "/nodes/crossJoinSap.js",
|
|
35
|
-
"nextLink": "/nodes/nextLink.js",
|
|
36
|
-
"serviceSap": "/nodes/serviceSap.js",
|
|
37
|
-
"manipulateEntitySap": "/nodes/manipulateEntitySap.js",
|
|
38
|
-
"createSQLQuery": "/nodes/createSQLQuery.js",
|
|
39
|
-
"SQLQuery": "/nodes/SQLQuery.js"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"axios": "^1.2.2",
|
|
44
|
-
"odata-query": "^7.0.4"
|
|
45
|
-
},
|
|
46
|
-
"repository": {
|
|
47
|
-
"type": "git",
|
|
48
|
-
"url": "https://github.com/yousolution-cloud/node-red-contrib-you-sap-service-layer.git"
|
|
49
|
-
},
|
|
50
|
-
"publishConfig": {
|
|
51
|
-
"access": "public"
|
|
52
|
-
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
"@types/chai": "^4.3.0",
|
|
55
|
-
"@types/node-red-node-test-helper": "^0.2.2",
|
|
56
|
-
"@types/sinon": "^10.0.6",
|
|
57
|
-
"chai": "^4.3.4",
|
|
58
|
-
"mocha": "^9.1.3",
|
|
59
|
-
"node-red": "^2.1.4",
|
|
60
|
-
"node-red-node-test-helper": "^0.2.7",
|
|
61
|
-
"nyc": "^15.1.0",
|
|
62
|
-
"run-script-os": "^1.1.6",
|
|
63
|
-
"sinon": "^12.0.1"
|
|
64
|
-
}
|
|
65
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@yousolution/node-red-contrib-you-sap-service-layer",
|
|
3
|
+
"version": "0.2.3",
|
|
4
|
+
"description": "Unofficial module SAP Service Layer for NODE-RED",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"update": "run-script-os",
|
|
8
|
+
"update:linux:darwin": "npm pack && mv yousolution-node-red-contrib-you-sap-service-layer-$npm_package_version.tgz ./data && cd data && npm i yousolution-node-red-contrib-you-sap-service-layer-$npm_package_version.tgz && docker-compose restart",
|
|
9
|
+
"update:win32": "npm pack && copy yousolution-node-red-contrib-you-sap-service-layer-%npm_package_version%.tgz .\\data\\ && cd .\\data\\ && npm i yousolution-node-red-contrib-you-sap-service-layer-%npm_package_version%.tgz && docker-compose restart",
|
|
10
|
+
"update:default": "npm pack && mv yousolution-node-red-contrib-you-sap-service-layer-$npm_package_version.tgz ./data && cd data && npm i yousolution-node-red-contrib-you-sap-service-layer-$npm_package_version.tgz && docker-compose restart",
|
|
11
|
+
"test": "mocha 'test/**/*.spec.js'",
|
|
12
|
+
"coverage": "nyc npm run test"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"node-red",
|
|
16
|
+
"SAP",
|
|
17
|
+
"service layer",
|
|
18
|
+
"API",
|
|
19
|
+
"ERP",
|
|
20
|
+
"integration",
|
|
21
|
+
"youSolution.Cloud"
|
|
22
|
+
],
|
|
23
|
+
"author": "Andrea Trentin <andrea.trentin@yousolution.cloud>",
|
|
24
|
+
"node-red": {
|
|
25
|
+
"version": ">=2.0.0",
|
|
26
|
+
"nodes": {
|
|
27
|
+
"authenticateSap": "/nodes/authenticateSap.js",
|
|
28
|
+
"listSap": "/nodes/listSap.js",
|
|
29
|
+
"createSap": "/nodes/createSap.js",
|
|
30
|
+
"deleteSap": "/nodes/deleteSap.js",
|
|
31
|
+
"getSap": "/nodes/getSap.js",
|
|
32
|
+
"patchSap": "/nodes/patchSap.js",
|
|
33
|
+
"closeSap": "/nodes/closeSap.js",
|
|
34
|
+
"crossJoinSap": "/nodes/crossJoinSap.js",
|
|
35
|
+
"nextLink": "/nodes/nextLink.js",
|
|
36
|
+
"serviceSap": "/nodes/serviceSap.js",
|
|
37
|
+
"manipulateEntitySap": "/nodes/manipulateEntitySap.js",
|
|
38
|
+
"createSQLQuery": "/nodes/createSQLQuery.js",
|
|
39
|
+
"SQLQuery": "/nodes/SQLQuery.js"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"axios": "^1.2.2",
|
|
44
|
+
"odata-query": "^7.0.4"
|
|
45
|
+
},
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "https://github.com/yousolution-cloud/node-red-contrib-you-sap-service-layer.git"
|
|
49
|
+
},
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@types/chai": "^4.3.0",
|
|
55
|
+
"@types/node-red-node-test-helper": "^0.2.2",
|
|
56
|
+
"@types/sinon": "^10.0.6",
|
|
57
|
+
"chai": "^4.3.4",
|
|
58
|
+
"mocha": "^9.1.3",
|
|
59
|
+
"node-red": "^2.1.4",
|
|
60
|
+
"node-red-node-test-helper": "^0.2.7",
|
|
61
|
+
"nyc": "^15.1.0",
|
|
62
|
+
"run-script-os": "^1.1.6",
|
|
63
|
+
"sinon": "^12.0.1"
|
|
64
|
+
}
|
|
65
|
+
}
|
package/resources/entities.json
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
{
|
|
2
|
-
"AlertManagementsShow": ["GetAlertManagement", "GetAlertManagementList"],
|
|
3
|
-
"ApprovalStages": ["GetApprovalStage", "RemoveApprovalStage"],
|
|
4
|
-
"ApprovalTemplates": ["GetApprovalTemplate", "RemoveApprovalTemplate"],
|
|
5
|
-
"BankChargesAllocationCodes": ["SetDefaultBankChargesAllocationCode"],
|
|
6
|
-
"BlanketAgreements": ["CancelBlanketAgreement", "GetRelatedDocuments"],
|
|
7
|
-
"BrazilMultiIndexers": ["GetIndexerTypeList"],
|
|
8
|
-
"BrazilNumericIndexers": ["GetIndexerTypeList"],
|
|
9
|
-
"BrazilStringIndexers": ["GetIndexerTypeList"],
|
|
10
|
-
"Campaigns": ["Cancel"],
|
|
11
|
-
"CorrectionInvoice": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
12
|
-
"CorrectionInvoiceReversal": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
13
|
-
"CorrectionPurchaseInvoice": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
14
|
-
"CorrectionPurchaseInvoiceReversal": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
15
|
-
"CreditNotes": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
16
|
-
"DeliveryNotes": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
17
|
-
"Deposits": ["CancelDeposit", "CancelDepositbyCurrentSystemDate"],
|
|
18
|
-
"DownPayments": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
19
|
-
"Drafts": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
20
|
-
"EmployeesInfo": ["Close", "Cancel"],
|
|
21
|
-
"GoodsReturnRequest": ["Close", "Cancel", "Reopen", "SaveDraftToDocument", "CreateCancellationDocument"],
|
|
22
|
-
"IncomingPayments": ["Cancel", "GetApprovalTemplates", "CancelbyCurrentSystemDate"],
|
|
23
|
-
"InventoryCountings": ["Close"],
|
|
24
|
-
"InventoryGenEntries": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
25
|
-
"InventoryGenExits": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
26
|
-
"InventoryTransferRequests": ["Close", "Cancel", "SaveDraftToDocument"],
|
|
27
|
-
"Invoices": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
28
|
-
"Items": ["Cancel"],
|
|
29
|
-
"JournalEntries": ["Cancel"],
|
|
30
|
-
"LandedCosts": ["CloseLandedCost", "CancelLandedCost"],
|
|
31
|
-
"MaterialRevaluation": ["Cancel", "Close"],
|
|
32
|
-
"Messages": ["GetMessage"],
|
|
33
|
-
"Orders": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
34
|
-
"PaymentDrafts": ["Cancel", "SaveDraftToDocument", "GetApprovalTemplates", "CancelbyCurrentSystemDate"],
|
|
35
|
-
"PickLists": ["GetReleasedAllocation"],
|
|
36
|
-
"ProductionOrders": ["Cancel"],
|
|
37
|
-
"ProjectManagements": ["CancelProject"],
|
|
38
|
-
"PurchaseCreditNotes": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
39
|
-
"PurchaseDeliveryNotes": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
40
|
-
"PurchaseDownPayments": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
41
|
-
"PurchaseInvoices": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
42
|
-
"PurchaseOrders": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
43
|
-
"PurchaseQuotations": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
44
|
-
"PurchaseRequests": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
45
|
-
"PurchaseReturns": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
46
|
-
"Quotations": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
47
|
-
"Resources": ["CreateLinkedItem"],
|
|
48
|
-
"ReturnRequest": ["Close", "Cancel", "Reopen", "SaveDraftToDocument", "CreateCancellationDocument"],
|
|
49
|
-
"Returns": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
50
|
-
"SalesOpportunities": ["Close"],
|
|
51
|
-
"ServiceCalls": ["Close"],
|
|
52
|
-
"ServiceContracts": ["Cancel", "Close"],
|
|
53
|
-
"StockTransferDrafts": ["Cancel", "Close", "SaveDraftToDocument"],
|
|
54
|
-
"StockTransfers": ["Cancel", "Close"],
|
|
55
|
-
"TaxInvoiceReport": ["CancelTaxInvoiceReport"],
|
|
56
|
-
"TaxWebSites": ["SetAsDefault"],
|
|
57
|
-
"Users": ["Close"],
|
|
58
|
-
"VendorPayments": ["Cancel", "GetApprovalTemplates", "CancelbyCurrentSystemDate"]
|
|
59
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"AlertManagementsShow": ["GetAlertManagement", "GetAlertManagementList"],
|
|
3
|
+
"ApprovalStages": ["GetApprovalStage", "RemoveApprovalStage"],
|
|
4
|
+
"ApprovalTemplates": ["GetApprovalTemplate", "RemoveApprovalTemplate"],
|
|
5
|
+
"BankChargesAllocationCodes": ["SetDefaultBankChargesAllocationCode"],
|
|
6
|
+
"BlanketAgreements": ["CancelBlanketAgreement", "GetRelatedDocuments"],
|
|
7
|
+
"BrazilMultiIndexers": ["GetIndexerTypeList"],
|
|
8
|
+
"BrazilNumericIndexers": ["GetIndexerTypeList"],
|
|
9
|
+
"BrazilStringIndexers": ["GetIndexerTypeList"],
|
|
10
|
+
"Campaigns": ["Cancel"],
|
|
11
|
+
"CorrectionInvoice": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
12
|
+
"CorrectionInvoiceReversal": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
13
|
+
"CorrectionPurchaseInvoice": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
14
|
+
"CorrectionPurchaseInvoiceReversal": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
15
|
+
"CreditNotes": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
16
|
+
"DeliveryNotes": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
17
|
+
"Deposits": ["CancelDeposit", "CancelDepositbyCurrentSystemDate"],
|
|
18
|
+
"DownPayments": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
19
|
+
"Drafts": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
20
|
+
"EmployeesInfo": ["Close", "Cancel"],
|
|
21
|
+
"GoodsReturnRequest": ["Close", "Cancel", "Reopen", "SaveDraftToDocument", "CreateCancellationDocument"],
|
|
22
|
+
"IncomingPayments": ["Cancel", "GetApprovalTemplates", "CancelbyCurrentSystemDate"],
|
|
23
|
+
"InventoryCountings": ["Close"],
|
|
24
|
+
"InventoryGenEntries": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
25
|
+
"InventoryGenExits": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
26
|
+
"InventoryTransferRequests": ["Close", "Cancel", "SaveDraftToDocument"],
|
|
27
|
+
"Invoices": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
28
|
+
"Items": ["Cancel"],
|
|
29
|
+
"JournalEntries": ["Cancel"],
|
|
30
|
+
"LandedCosts": ["CloseLandedCost", "CancelLandedCost"],
|
|
31
|
+
"MaterialRevaluation": ["Cancel", "Close"],
|
|
32
|
+
"Messages": ["GetMessage"],
|
|
33
|
+
"Orders": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
34
|
+
"PaymentDrafts": ["Cancel", "SaveDraftToDocument", "GetApprovalTemplates", "CancelbyCurrentSystemDate"],
|
|
35
|
+
"PickLists": ["GetReleasedAllocation"],
|
|
36
|
+
"ProductionOrders": ["Cancel"],
|
|
37
|
+
"ProjectManagements": ["CancelProject"],
|
|
38
|
+
"PurchaseCreditNotes": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
39
|
+
"PurchaseDeliveryNotes": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
40
|
+
"PurchaseDownPayments": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
41
|
+
"PurchaseInvoices": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
42
|
+
"PurchaseOrders": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
43
|
+
"PurchaseQuotations": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
44
|
+
"PurchaseRequests": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
45
|
+
"PurchaseReturns": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
46
|
+
"Quotations": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
47
|
+
"Resources": ["CreateLinkedItem"],
|
|
48
|
+
"ReturnRequest": ["Close", "Cancel", "Reopen", "SaveDraftToDocument", "CreateCancellationDocument"],
|
|
49
|
+
"Returns": ["Close", "Cancel", "Reopen", "CreateCancellationDocument"],
|
|
50
|
+
"SalesOpportunities": ["Close"],
|
|
51
|
+
"ServiceCalls": ["Close"],
|
|
52
|
+
"ServiceContracts": ["Cancel", "Close"],
|
|
53
|
+
"StockTransferDrafts": ["Cancel", "Close", "SaveDraftToDocument"],
|
|
54
|
+
"StockTransfers": ["Cancel", "Close"],
|
|
55
|
+
"TaxInvoiceReport": ["CancelTaxInvoiceReport"],
|
|
56
|
+
"TaxWebSites": ["SetAsDefault"],
|
|
57
|
+
"Users": ["Close"],
|
|
58
|
+
"VendorPayments": ["Cancel", "GetApprovalTemplates", "CancelbyCurrentSystemDate"]
|
|
59
|
+
}
|