@cap-js-community/sap-afc-sdk
Version:
SAP Advanced Financial Closing SDK for CDS
245 lines (244 loc) • 6.83 kB
JSON
{
"name": "@cap-js-community/sap-afc-sdk",
"version": "0.5.0",
"description": "SAP Advanced Financial Closing SDK for CDS",
"homepage": "https://cap.cloud.sap/",
"engines": {
"node": ">=22"
},
"author": "Oliver Klemenz <oliver.klemenz@sap.com>, Gruenfelder, Maximilian <maximilian.gruenfelder@sap.com>",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/cap-js-community/sap-afc-sdk.git"
},
"keywords": [
"AFC",
"CAP",
"CDS"
],
"files": [
"app",
"bin",
"db",
"http",
"openapi",
"src",
"srv",
"test/data",
".cdsrc.js",
"cds-plugin.js",
"CHANGELOG.md",
"config.json",
"index.cds",
"index.d.ts"
],
"main": "index.js",
"types": "index.d.ts",
"bin": {
"afc": "./bin/afc.js"
},
"scripts": {
"start": "cds-serve",
"watch": "cds watch",
"test": "jest --silent",
"test:update": "npm test -- -u",
"test:bin": "cd bin && jest --silent",
"test:bin:update": "npm run test:bin -- -u",
"test:java": "cd java/project && npm test",
"lint": "npm run eslint && npm run prettier && npm run prettier:cds",
"lint:ci": "npm run eslint:ci && npm run prettier:ci",
"eslint": "eslint --fix .",
"eslint:ci": "eslint .",
"prettier": "prettier \"**/*.{js,json,java,md,yml,yaml}\" --write --log-level error",
"prettier:ci": "prettier \"**/*.{js,json,java,md,yml,yaml}\" --check",
"prettier:cds": "format-cds app db srv -f",
"upgrade-lock": "npm run upgrade-lock:main && npm run upgrade-lock:app && npm run upgrade-lock:java",
"upgrade-lock:main": "rm -rf package-lock.json node_modules && npm i",
"upgrade-lock:app": "cd app/scheduling.monitoring.job && rm -rf package-lock.json node_modules && npm i",
"upgrade-lock:java": "cd java/project && rm -rf package-lock.json node_modules && npm i",
"prepareRelease": "npm prune --production",
"i18n:pull": "cd scripts && ./i18n-pull.sh",
"i18n:push": "cd scripts && ./i18n-push.sh",
"openapi": "npm run openapi:update && npm run lint",
"openapi:update": "node scripts/openapi",
"openapi:check": "node scripts/openapi -c",
"java:update": "npm run test:java && node scripts/java-plugin",
"java:check": "npm run test:java && node scripts/java-plugin -c",
"audit": "npm audit --only=prod",
"check": "npm run lint:ci && npm run openapi:check && npm test && npm run java:check && npm run test:bin",
"sync": "npm run upgrade-lock && npm run i18n:pull && npm run openapi:update && npm run lint && npm run test:update && npm run java:update && npm run test:bin:update",
"update": "npm run java:update"
},
"dependencies": {
"@cap-js-community/event-queue": "^1.10.10",
"@cap-js-community/feature-toggle-library": "^1.3.0",
"@cap-js-community/websocket": "^1.7.2",
"@sap/cds-common-content": "^3.0.1",
"@sap/sbf": "^6.9.6",
"commander": "^14.0.0",
"cors": "^2.8.5",
"express": "^4.21.2",
"helmet": "^8.1.0",
"http-status-codes": "^2.3.0",
"node-fetch": "^2.7.0",
"openurl": "^1.1.1",
"prompt-sync": "^4.2.0",
"shelljs": "^0.10.0",
"swagger-ui-express": "^5.0.1",
"verror": "^1.10.1",
"xml2js": "^0.6.2",
"yaml": "^2.8.0"
},
"devDependencies": {
"@cap-js-community/sap-afc-sdk": "./",
"@cap-js/cds-test": "^0.4.0",
"@cap-js/sqlite": "^2.0.2",
"@sap/cds": "^9.2.0",
"@sap/cds-dk": "9.1.3",
"@sap/cds-lsp": "^9.1.2",
"eslint": "^9.32.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-jest": "^29.0.1",
"eslint-plugin-n": "^17.21.3",
"globals": "^16.3.0",
"jest": "^30.0.5",
"prettier": "^3.6.2",
"prettier-plugin-java": "^2.7.3",
"ws": "^8.18.3"
},
"cds": {
"server": {
"cors": false
},
"i18n": {
"folders": [
"i18n",
"_i18n",
"/node_modules/@cap-js-community/sap-afc-sdk/srv/i18n",
"/node_modules/@cap-js-community/sap-afc-sdk/srv/scheduling/i18n"
]
},
"websocket": {
"kind": "ws",
"[production]": {
"adapter": {
"local": true,
"impl": "redis"
}
}
},
"eventQueue": {
"useAsCAPOutbox": true
},
"featureToggles": {
"config": {
"eventQueue/active": {
"type": "boolean",
"fallbackValue": true
},
"eventQueue/instanceLoadLimit": {
"type": "number",
"fallbackValue": 100
}
}
},
"requires": {
"SchedulingProcessingService": {
"outbox": {
"kind": "persistent-outbox",
"maxAttempts": 5,
"checkForNextChunk": true,
"parallelEventProcessing": 5,
"events": {
"syncJob": {
"cron": "*/1 * * * *"
}
}
}
},
"SchedulingWebsocketService": {
"outbox": {
"kind": "persistent-outbox",
"transactionMode": "alwaysRollback",
"maxAttempts": 5,
"checkForNextChunk": true,
"parallelEventProcessing": 5,
"events": {
"jobStatusChanged": {
"timeBucket": "*/5 * * * * *",
"[test]": {
"timeBucket": false
}
}
}
}
},
"sap-afc-sdk": {
"model": "@cap-js-community/sap-afc-sdk",
"endpoints": {
"approuter": null,
"server": null
},
"api": {
"cors": {
"origin": true
},
"csp": false
},
"ui": {
"path": "",
"link": true,
"swagger": true,
"launchpad": true,
"scheduling.monitoring.job": true
},
"broker": false,
"[production]": {
"broker": true
},
"mockProcessing": false,
"[test]": {
"mockProcessing": false
},
"[mock]": {
"mockProcessing": {
"min": 0,
"max": 10,
"default": "completed",
"status": {
"completed": 0.5,
"completedWithWarning": 0.2,
"completedWithError": 0.2,
"failed": 0.1
}
}
}
},
"afc": {
"kind": "odata-v4",
"model": "srv/external/afc",
"[production]": {
"credentials": {
"destination": "SAP_AFC"
}
}
},
"auth": {
"kind": "mocked-auth",
"users": {
"zeus": {
"tenant": "t1",
"roles": [
"internal-user",
"system-user"
]
}
}
}
}
},
"sapux": [
"app/scheduling.monitoring.job"
]
}