@cap-js-community/sap-afc-sdk
Version:
SAP Advanced Financial Closing SDK for CDS
253 lines (252 loc) • 7.26 kB
JSON
{
"name": "@cap-js-community/sap-afc-sdk",
"version": "1.1.0",
"description": "SAP Advanced Financial Closing SDK for CDS",
"homepage": "https://cap.cloud.sap/",
"engines": {
"node": ">=22"
},
"author": "Oliver Klemenz <oliver.klemenz@sap.com>",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git+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": "vitest run",
"test:update": "vitest run -u",
"test:bin": "cd bin && vitest run",
"test:bin:update": "cd bin && vitest run -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",
"kyma:pods": "kubectl get pods -n afc-sdk-dev",
"kyma:ssh": "kubectl exec -it afcsdk-srv-xxx -n afc-sdk-dev -- /bin/sh",
"kyma:deployments": "kubectl get deployments -n afc-sdk-dev",
"kyma:debug": "KUBE_NAMESPACE=afc-sdk-dev cds debug afcsdk-srv --k8s --force",
"audit": "npm audit --only=prod",
"update": "npm run java:update",
"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 openapi:update && npm run lint && npm run test:update && npm run java:update && npm run test:bin:update",
"apply": "npm run i18n:push"
},
"dependencies": {
"@cap-js-community/event-queue": "^2.3.0",
"@cap-js-community/feature-toggle-library": "^1.3.6",
"@cap-js-community/websocket": "^1.11.0",
"@sap-cloud-sdk/connectivity": "^4.8.0",
"@sap-cloud-sdk/http-client": "^4.8.0",
"@sap-cloud-sdk/resilience": "^4.8.0",
"@sap/cds-common-content": "^3.2.0",
"@sap/sbf": "^6.11.7",
"commander": "^15.0.0",
"cors": "^2.8.6",
"express": "^4.22.2 || ^5.2.1",
"helmet": "^8.3.0",
"http-status-codes": "^2.3.0",
"node-fetch": "^3.3.2",
"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.9.0"
},
"devDependencies": {
"@cap-js-community/sap-afc-sdk": "./",
"@cap-js/cds-test": "^1.0.1",
"@cap-js/sqlite": "^3.0.2",
"@sap/cds": "^10.0.4",
"@sap/cds-dk": "^10.0.5",
"@sap/cds-lsp": "^10.0.1",
"@vitest/coverage-v8": "^4.1.10",
"@vitest/eslint-plugin": "^1.6.23",
"eslint": "^10.7.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-n": "^18.2.2",
"globals": "^17.7.0",
"prettier": "^3.9.6",
"prettier-plugin-java": "^2.10.3",
"vitest": "^4.1.10",
"ws": "^8.21.1"
},
"cds": {
"server": {
"cors": false
},
"websocket": {
"kind": "ws",
"[production]": {
"adapter": {
"local": true,
"impl": "redis"
}
}
},
"eventQueue": {
"useAsCAPQueue": true
},
"featureToggles": {
"config": {
"eventQueue/active": {
"type": "boolean",
"fallbackValue": true
},
"eventQueue/instanceLoadLimit": {
"type": "number",
"fallbackValue": 100
}
}
},
"requires": {
"sapafcsdk.scheduling.ProcessingService": {
"queued": {
"kind": "persistent-queue",
"maxAttempts": 5,
"checkForNextChunk": true,
"events": {
"syncJob": {
"cron": "*/1 * * * *"
}
}
}
},
"sapafcsdk.scheduling.WebsocketService": {
"queued": {
"kind": "persistent-queue",
"transactionMode": "alwaysRollback",
"maxAttempts": 5,
"checkForNextChunk": true,
"events": {
"jobStatusChanged": {
"timeBucket": "*/5 * * * * *",
"[test]": {
"timeBucket": false
}
}
}
}
},
"sap-afc-sdk": {
"model": "@cap-js-community/sap-afc-sdk",
"capabilities": {
"supportsNotification": true
},
"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,
"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
}
}
}
},
"auth": {
"kind": "mocked-auth",
"users": {
"zeus": {
"tenant": "t1",
"roles": [
"internal-user",
"system-user"
]
}
}
},
"afc": {
"kind": "rest",
"model": "srv/external/afc",
"service": "sap.afc.IntegrationService",
"queued": {
"kind": "persistent-queue"
},
"[production]": {
"credentials": {
"destination": "SAP_AFC",
"path": "/api/integration/v1"
},
"destinationOptions": {
"selectionStrategy": "alwaysProvider",
"jwt": null
}
}
}
}
},
"sapux": [
"app/scheduling.monitoring.job"
]
}