{"_id":"@amag-ch/cds-messaging","_rev":"11-b04a093c762fa46dd6b8fc778c4b4b30","name":"@amag-ch/cds-messaging","dist-tags":{"latest":"5.1.0"},"versions":{"4.6.0":{"name":"@amag-ch/cds-messaging","version":"4.6.0","author":{"name":"AMAG Corporate Services AG"},"license":"MIT","_id":"@amag-ch/cds-messaging@4.6.0","maintainers":[{"name":"thju-amag-ch","email":"thomas.jurk@amag.ch"},{"name":"integration-amag-ch","email":"integration@amag.ch"}],"homepage":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging#readme","bugs":{"url":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging/issues"},"cds":{"requires":{"kinds":{"composite-messaging":{"impl":"@amag-ch/cds-messaging/composite.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-amqp":{"amqp":{"incomingSessionWindow":100},"format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-http":{"format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"}},"outbox":{"kind":"persistent-outbox"}}},"dist":{"shasum":"20df0462c9bf5f9ea83499be06608858d8a7acde","tarball":"https://registry.npmjs.org/@amag-ch/cds-messaging/-/cds-messaging-4.6.0.tgz","fileCount":11,"integrity":"sha512-uu15XJIDPhcqdwpjt0Ecxygnollu3DyfeD7QZMc/1E02U5oQGa7uhMimntTJ36SlzF9jzGbZiLuvVqEKOSUkzQ==","signatures":[{"sig":"MEQCIAafxyZn5uxuChJYHgXSHCn5ambdABavqaeTIl4jpk3NAiAkmvZwmPTCgkqof8n/9WQ/3euDeru49S0Nsk/ovXj7XA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24356},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"e4a811b7590414bbadf6ce6ee0c01905e50dfe6a","private":false,"_npmUser":{"name":"integration-amag-ch","email":"integration@amag.ch"},"repository":{"url":"git+https://gitlab.com/amag_web/sap/cap/common/cds-messaging.git","type":"git"},"_npmVersion":"10.9.2","description":"Wrapper for communication with cap messaging service","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@sap/cds":">=7"},"peerDependencies":{"@sap/cds":">=7"},"_npmOperationalInternal":{"tmp":"tmp/cds-messaging_4.6.0_1742833946530_0.4569395154490421","host":"s3://npm-registry-packages-npm-production"}},"4.7.0":{"name":"@amag-ch/cds-messaging","version":"4.7.0","author":{"name":"AMAG Corporate Services AG"},"license":"MIT","_id":"@amag-ch/cds-messaging@4.7.0","maintainers":[{"name":"thju-amag-ch","email":"thomas.jurk@amag.ch"},{"name":"integration-amag-ch","email":"integration@amag.ch"}],"homepage":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging#readme","bugs":{"url":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging/issues"},"cds":{"requires":{"kinds":{"composite-messaging":{"impl":"@amag-ch/cds-messaging/composite.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-amqp":{"amqp":{"incomingSessionWindow":100},"format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-http":{"impl":"@amag-ch/cds-messaging/lib/enterprise-messaging.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"}},"outbox":{"kind":"persistent-outbox"}}},"dist":{"shasum":"679fb512ae7ae9b919c4eb40a922e54926181a84","tarball":"https://registry.npmjs.org/@amag-ch/cds-messaging/-/cds-messaging-4.7.0.tgz","fileCount":13,"integrity":"sha512-1e8QWv0T+/qJcY5Vy3e91vEObCHkjxiio/S/H+1sJsAQCsO2aO4hrHdIhUp3OqJfqmpUSPciPUp5t1tCNe7EqA==","signatures":[{"sig":"MEYCIQCMvi1zP1E55u4/42zqfWsAq6b99nS3AI4KQxAzvtcFRAIhAMxCrk42RCb0Q4g6YRnFLzylFIdfKugKasosGxu9SpHP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25575},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"54e3d3f930afd8d2e7d829d27db727854aa7cd9b","private":false,"_npmUser":{"name":"integration-amag-ch","email":"integration@amag.ch"},"repository":{"url":"git+https://gitlab.com/amag_web/sap/cap/common/cds-messaging.git","type":"git"},"_npmVersion":"10.9.2","description":"Wrapper for communication with cap messaging service","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@sap/cds":">=7"},"peerDependencies":{"@sap/cds":">=7"},"_npmOperationalInternal":{"tmp":"tmp/cds-messaging_4.7.0_1742839042414_0.4903722731577931","host":"s3://npm-registry-packages-npm-production"}},"4.8.0":{"name":"@amag-ch/cds-messaging","version":"4.8.0","author":{"name":"AMAG Corporate Services AG"},"license":"MIT","_id":"@amag-ch/cds-messaging@4.8.0","maintainers":[{"name":"thju-amag-ch","email":"thomas.jurk@amag.ch"},{"name":"integration-amag-ch","email":"integration@amag.ch"}],"homepage":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging#readme","bugs":{"url":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging/issues"},"cds":{"requires":{"kinds":{"composite-messaging":{"impl":"@amag-ch/cds-messaging/composite.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-amqp":{"amqp":{"incomingSessionWindow":100},"format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-http":{"impl":"@amag-ch/cds-messaging/lib/enterprise-messaging.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"}},"outbox":{"kind":"persistent-outbox"}}},"dist":{"shasum":"dc2bc89d5c2d4634150022802939b1dec8b0774b","tarball":"https://registry.npmjs.org/@amag-ch/cds-messaging/-/cds-messaging-4.8.0.tgz","fileCount":13,"integrity":"sha512-2SgSy33lzUQZOmR9n5xaZFjkLW7Vim9Rqs1TDvACjr+bQtcDGXMjj+F5JZFEuypzyP2+zjgeZMKxnka7KWIIcA==","signatures":[{"sig":"MEUCIQD7lgGzveNpK3QkQoy3f865Y/pYgZjRc1cIme4bV5hHkQIgTz7u203jomlHCvblXWCtpvH646Yk9H1xIbzq7Mow9b8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25749},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"31e05790d12a49b1ee7f7aa64fc66184c36be0e5","private":false,"_npmUser":{"name":"integration-amag-ch","email":"integration@amag.ch"},"repository":{"url":"git+https://gitlab.com/amag_web/sap/cap/common/cds-messaging.git","type":"git"},"_npmVersion":"10.9.2","description":"Wrapper for communication with cap messaging service","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@sap/cds":">=7"},"peerDependencies":{"@sap/cds":">=7"},"_npmOperationalInternal":{"tmp":"tmp/cds-messaging_4.8.0_1742840121789_0.35970809804777604","host":"s3://npm-registry-packages-npm-production"}},"4.8.1":{"name":"@amag-ch/cds-messaging","version":"4.8.1","author":{"name":"AMAG Corporate Services AG"},"license":"MIT","_id":"@amag-ch/cds-messaging@4.8.1","maintainers":[{"name":"thju-amag-ch","email":"thomas.jurk@amag.ch"},{"name":"integration-amag-ch","email":"integration@amag.ch"}],"homepage":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging#readme","bugs":{"url":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging/issues"},"cds":{"requires":{"kinds":{"composite-messaging":{"impl":"@amag-ch/cds-messaging/composite.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-amqp":{"amqp":{"incomingSessionWindow":100},"format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-http":{"impl":"@amag-ch/cds-messaging/lib/enterprise-messaging.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"}},"outbox":{"kind":"persistent-outbox"}}},"dist":{"shasum":"b89b77e40d6b81a37970a09531fadb597129ccfe","tarball":"https://registry.npmjs.org/@amag-ch/cds-messaging/-/cds-messaging-4.8.1.tgz","fileCount":13,"integrity":"sha512-pJEKVsrNtgSPDdLUJ/V2elD27p3ZEYMoEPJ5zxofQdoZnpSdaARirpdmHQx0S/lhXJfxmCZvSfCsTt9fNoH2kQ==","signatures":[{"sig":"MEUCIQCpW1/osyPvIaMxf8Znd53DfwPLxMq4QNM8zUCYQjXSiQIgbEy7GojNRdG2BTX5aVK9kd02N8rataIPOo6ZuN18nwI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25749},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"b873442610f5c57bff182e1a8941b2669cf12828","private":false,"_npmUser":{"name":"integration-amag-ch","email":"integration@amag.ch"},"repository":{"url":"git+https://gitlab.com/amag_web/sap/cap/common/cds-messaging.git","type":"git"},"_npmVersion":"10.9.2","description":"Wrapper for communication with cap messaging service","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@sap/cds":">=7"},"peerDependencies":{"@sap/cds":">=7"},"_npmOperationalInternal":{"tmp":"tmp/cds-messaging_4.8.1_1742840745862_0.5848111495885295","host":"s3://npm-registry-packages-npm-production"}},"4.9.0":{"name":"@amag-ch/cds-messaging","version":"4.9.0","author":{"name":"AMAG Corporate Services AG"},"license":"MIT","_id":"@amag-ch/cds-messaging@4.9.0","maintainers":[{"name":"thju-amag-ch","email":"thomas.jurk@amag.ch"},{"name":"integration-amag-ch","email":"integration@amag.ch"}],"homepage":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging#readme","bugs":{"url":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging/issues"},"cds":{"requires":{"kinds":{"composite-messaging":{"impl":"@amag-ch/cds-messaging/composite.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-amqp":{"amqp":{"incomingSessionWindow":100},"format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-http":{"impl":"@amag-ch/cds-messaging/lib/enterprise-messaging.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"}},"queue":{"kind":"persistent-outbox"}}},"dist":{"shasum":"9486ac18e782169d48e2fe3e0dec0807ae8033d3","tarball":"https://registry.npmjs.org/@amag-ch/cds-messaging/-/cds-messaging-4.9.0.tgz","fileCount":13,"integrity":"sha512-7zkmBVklnpVoMBryW7mslF2/WWoDpZw+DVUl+26eWAkACECAWfaLz2DCoV2w4F2tAIfJ+YRpq6JBPjsZWOfflQ==","signatures":[{"sig":"MEUCIQDbtNMDTjcIc0nL7/o8M9w3vRcQ9ypNl4CF/ivXFQorgwIgZTjmL/tYnlz0HnHaXu0nsexL2PWjJfYpG4AjGb/LtnQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25748},"main":"index.js","engines":{"node":">=20.0.0"},"gitHead":"86733099ac50125682b2ac7e998182af67ae5f16","private":false,"_npmUser":{"name":"integration-amag-ch","email":"integration@amag.ch"},"repository":{"url":"git+https://gitlab.com/amag_web/sap/cap/common/cds-messaging.git","type":"git"},"_npmVersion":"10.9.2","description":"Wrapper for communication with cap messaging service","directories":{},"_nodeVersion":"22.17.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@sap/cds":">=9"},"peerDependencies":{"@sap/cds":">=9"},"_npmOperationalInternal":{"tmp":"tmp/cds-messaging_4.9.0_1753268725746_0.6740467960797614","host":"s3://npm-registry-packages-npm-production"}},"4.10.0":{"name":"@amag-ch/cds-messaging","version":"4.10.0","author":{"name":"AMAG Corporate Services AG"},"license":"MIT","_id":"@amag-ch/cds-messaging@4.10.0","maintainers":[{"name":"thju-amag-ch","email":"thomas.jurk@amag.ch"},{"name":"integration-amag-ch","email":"integration@amag.ch"}],"homepage":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging#readme","bugs":{"url":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging/issues"},"cds":{"requires":{"kinds":{"composite-messaging":{"impl":"@amag-ch/cds-messaging/composite.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-amqp":{"amqp":{"incomingSessionWindow":100},"format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-http":{"impl":"@amag-ch/cds-messaging/lib/enterprise-messaging.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"}},"outbox":{"kind":"persistent-outbox"}}},"dist":{"shasum":"37751ea0313c320287ec92eb1746bd7d6bd52f22","tarball":"https://registry.npmjs.org/@amag-ch/cds-messaging/-/cds-messaging-4.10.0.tgz","fileCount":13,"integrity":"sha512-5r8ifHfb8TXTNoVCgmL5UNmdDIO40fHK/wWkaPz/6rP5X6AfpRFNoF/rJpo9E+M9Vhqxf0Xn8vAUHpuNvVObVA==","signatures":[{"sig":"MEYCIQCWk3fTCgpCc49kf82MZF/1uIQfSRKD8mD+NmYeFXXWbwIhAP7rnkUGNods7KTSn3l6obFPrTTVmF7SXWwPRkiG8LDA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26038},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"d891083763df0cd01c171642e68c5a37c721a716","private":false,"_npmUser":{"name":"integration-amag-ch","email":"integration@amag.ch"},"repository":{"url":"git+https://gitlab.com/amag_web/sap/cap/common/cds-messaging.git","type":"git"},"_npmVersion":"10.9.3","description":"Wrapper for communication with cap messaging service","directories":{},"_nodeVersion":"22.20.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@sap/cds":">=7"},"peerDependencies":{"@sap/cds":">=7"},"_npmOperationalInternal":{"tmp":"tmp/cds-messaging_4.10.0_1759503536665_0.8055943097397922","host":"s3://npm-registry-packages-npm-production"}},"4.11.0":{"name":"@amag-ch/cds-messaging","version":"4.11.0","author":{"name":"AMAG Corporate Services AG"},"license":"MIT","_id":"@amag-ch/cds-messaging@4.11.0","maintainers":[{"name":"thju-amag-ch","email":"thomas.jurk@amag.ch"},{"name":"integration-amag-ch","email":"integration@amag.ch"}],"homepage":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging#readme","bugs":{"url":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging/issues"},"cds":{"requires":{"kinds":{"composite-messaging":{"impl":"@amag-ch/cds-messaging/composite.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-amqp":{"amqp":{"incomingSessionWindow":100},"format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-http":{"impl":"@amag-ch/cds-messaging/lib/enterprise-messaging.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"}},"outbox":{"kind":"persistent-outbox"}}},"dist":{"shasum":"37785210abe260261eeb81cd37c49e76164faebb","tarball":"https://registry.npmjs.org/@amag-ch/cds-messaging/-/cds-messaging-4.11.0.tgz","fileCount":13,"integrity":"sha512-v5fykG9ZFAwrPAuxtpDarYKcDEQCzrrS8Hiooos+AXP8mThiL+S9q4pNCH5dl6mN41yf2Pk2itEPx11cgY8tyg==","signatures":[{"sig":"MEUCIAkFTKuM7yDGYOIe6NN01doaXy4Kn+UeJp4Bh45RdrJ1AiEAxGfN/25bePtMMcXZmruXlHYe56VmUDv/z6OMqv57cmU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26050},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"99a267537b52f541cbd14f92e14129a49f48b441","private":false,"_npmUser":{"name":"integration-amag-ch","email":"integration@amag.ch"},"repository":{"url":"git+https://gitlab.com/amag_web/sap/cap/common/cds-messaging.git","type":"git"},"_npmVersion":"10.9.3","description":"Wrapper for communication with cap messaging service","directories":{},"_nodeVersion":"22.20.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@sap/cds":">=7 && <9"},"peerDependencies":{"@sap/cds":">=7 && <9"},"_npmOperationalInternal":{"tmp":"tmp/cds-messaging_4.11.0_1759503676131_0.3406316277668102","host":"s3://npm-registry-packages-npm-production"}},"5.0.0":{"name":"@amag-ch/cds-messaging","version":"5.0.0","author":{"name":"AMAG Corporate Services AG"},"license":"MIT","_id":"@amag-ch/cds-messaging@5.0.0","maintainers":[{"name":"thju-amag-ch","email":"thomas.jurk@amag.ch"},{"name":"integration-amag-ch","email":"integration@amag.ch"}],"homepage":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging#readme","bugs":{"url":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging/issues"},"cds":{"requires":{"kinds":{"composite-messaging":{"impl":"@amag-ch/cds-messaging/composite.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-amqp":{"amqp":{"incomingSessionWindow":100},"format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-http":{"impl":"@amag-ch/cds-messaging/lib/enterprise-messaging.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"}},"queue":{"kind":"persistent-outbox"}}},"dist":{"shasum":"130c96dd89050d007b0959fb4a09452658be2bfb","tarball":"https://registry.npmjs.org/@amag-ch/cds-messaging/-/cds-messaging-5.0.0.tgz","fileCount":13,"integrity":"sha512-okvxRknK0n3VoLLjVX1xD8C0wVdUDH10osyyeobrHWzyiBcEPNroQisynBbAgPtwv9E+SeQJaGZmVzUdydzMMQ==","signatures":[{"sig":"MEUCIQDMk+UlIDpULv75w02JriWgsZJTOhIYXNQ995viKAUwUwIgZS77XW4pMw/kD0tTIrI1EV9AOaG6DigPZl6jnKmDe8c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26152},"main":"index.js","engines":{"node":">=20.0.0"},"gitHead":"0321b4ff030dac1710c8dc5b277c522e52f8033d","private":false,"_npmUser":{"name":"integration-amag-ch","email":"integration@amag.ch"},"repository":{"url":"git+https://gitlab.com/amag_web/sap/cap/common/cds-messaging.git","type":"git"},"_npmVersion":"10.9.3","description":"Wrapper for communication with cap messaging service","directories":{},"_nodeVersion":"22.20.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@sap/cds":">=9"},"peerDependencies":{"@sap/cds":">=9"},"_npmOperationalInternal":{"tmp":"tmp/cds-messaging_5.0.0_1759504316872_0.49622800289514446","host":"s3://npm-registry-packages-npm-production"}},"5.0.1":{"name":"@amag-ch/cds-messaging","version":"5.0.1","author":{"name":"AMAG Corporate Services AG"},"license":"MIT","_id":"@amag-ch/cds-messaging@5.0.1","maintainers":[{"name":"thju-amag-ch","email":"thomas.jurk@amag.ch"},{"name":"integration-amag-ch","email":"integration@amag.ch"}],"homepage":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging#readme","bugs":{"url":"https://gitlab.com/amag_web/sap/cap/common/cds-messaging/issues"},"cds":{"requires":{"kinds":{"composite-messaging":{"impl":"@amag-ch/cds-messaging/composite.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-amqp":{"amqp":{"incomingSessionWindow":100},"format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-http":{"impl":"@amag-ch/cds-messaging/lib/enterprise-messaging.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"}},"queue":{"kind":"persistent-outbox"}}},"dist":{"shasum":"ee1c54382742a65dd3e5ed18a8779dd9b91c1c94","tarball":"https://registry.npmjs.org/@amag-ch/cds-messaging/-/cds-messaging-5.0.1.tgz","fileCount":13,"integrity":"sha512-m5I18KrsgAeSjmaCnqgvlgJnTN1cHgBhUm9sXGOucgKcifKPyGwCpqsQGJ9UXfnrUWYbO8/V/0oLLNuASKIo9A==","signatures":[{"sig":"MEYCIQCx1/XollKVnk61zMymcGdi0B/1NYAYaM/dvD2zBQ/zOQIhANPaZpK+nUbOc6sFu4rbWF5XgtaNCJcbYJhUcYNm6j/1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26185},"main":"index.js","engines":{"node":">=20.0.0"},"gitHead":"1fbf20dcd7ce9bb0d619aeed84005edad2539f44","private":false,"_npmUser":{"name":"integration-amag-ch","email":"integration@amag.ch"},"repository":{"url":"git+https://gitlab.com/amag_web/sap/cap/common/cds-messaging.git","type":"git"},"_npmVersion":"10.9.3","description":"Wrapper for communication with cap messaging service","directories":{},"_nodeVersion":"22.20.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@sap/cds":">=9"},"peerDependencies":{"@sap/cds":">=9"},"_npmOperationalInternal":{"tmp":"tmp/cds-messaging_5.0.1_1759510015946_0.8748396902275923","host":"s3://npm-registry-packages-npm-production"}},"5.1.0":{"name":"@amag-ch/cds-messaging","version":"5.1.0","author":{"name":"AMAG Corporate Services AG"},"license":"MIT","_id":"@amag-ch/cds-messaging@5.1.0","maintainers":[{"name":"thju-amag-ch","email":"thomas.jurk@amag.ch"},{"name":"integration-amag-ch","email":"integration@amag.ch"}],"homepage":"https://gitlab.com/amag_web/sap/common/npm/cds-messaging#readme","bugs":{"url":"https://gitlab.com/amag_web/sap/common/npm/cds-messaging/issues"},"cds":{"requires":{"kinds":{"composite-messaging":{"impl":"@amag-ch/cds-messaging/composite.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-amqp":{"amqp":{"incomingSessionWindow":100},"format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"},"enterprise-messaging-http":{"impl":"@amag-ch/cds-messaging/lib/enterprise-messaging.js","format":"cloudevents","publishPrefix":"$namespace/","subscribePrefix":"$namespace/"}},"queue":{"kind":"persistent-outbox"}}},"dist":{"shasum":"018f83d26df36c9d44e00bef651c1d61b62c28cd","tarball":"https://registry.npmjs.org/@amag-ch/cds-messaging/-/cds-messaging-5.1.0.tgz","fileCount":13,"integrity":"sha512-EKyj4vHV64HeSadoPp2JwFkL37ucb1yQGQvXY0ATDrelRyNC4SiDIkdX4krC5mn0d6GRkNORhtpnd5XyKQQ2yw==","signatures":[{"sig":"MEYCIQD8Y/S5GashXdY0YeyH01XMPfgAQCZbwwBzBfBXExqsYgIhAJXDsxzJbHo1gbvyVn1WDBE0zGdfDiAGuLkxfi0f9bhI","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26213},"main":"index.js","type":"commonjs","engines":{"node":">=20.0.0"},"gitHead":"d5584ab8f6732dfea2b2c45a65d0c7652033cc23","private":false,"_npmUser":{"name":"GitLab CI/CD","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"gitlab","oidcConfigId":"oidc:57a1282b-6b70-45f1-9edb-01f30db3c389"}},"repository":{"url":"git+https://gitlab.com/amag_web/sap/common/npm/cds-messaging.git","type":"git"},"_npmVersion":"11.6.2","description":"Wrapper for communication with cap messaging service","directories":{},"_nodeVersion":"24.13.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@sap/cds":">=9"},"peerDependencies":{"@sap/cds":">=9"},"_npmOperationalInternal":{"tmp":"tmp/cds-messaging_5.1.0_1769539198523_0.9246261529297368","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-03-24T16:32:26.399Z","modified":"2026-06-10T21:30:10.649Z","4.6.0":"2025-03-24T16:32:26.717Z","4.7.0":"2025-03-24T17:57:22.618Z","4.8.0":"2025-03-24T18:15:21.969Z","4.8.1":"2025-03-24T18:25:46.032Z","4.9.0":"2025-07-23T11:05:25.938Z","4.10.0":"2025-10-03T14:58:56.852Z","4.11.0":"2025-10-03T15:01:16.316Z","5.0.0":"2025-10-03T15:11:57.055Z","5.0.1":"2025-10-03T16:46:56.141Z","5.1.0":"2026-01-27T18:39:58.675Z"},"bugs":{"url":"https://gitlab.com/amag_web/sap/common/npm/cds-messaging/issues"},"author":{"name":"AMAG Corporate Services AG"},"license":"MIT","homepage":"https://gitlab.com/amag_web/sap/common/npm/cds-messaging#readme","repository":{"url":"git+https://gitlab.com/amag_web/sap/common/npm/cds-messaging.git","type":"git"},"description":"Wrapper for communication with cap messaging service","maintainers":[{"email":"integration@amag.ch","name":"integration-amag-ch"}],"readme":"[![npm version](https://img.shields.io/npm/v/@amag-ch/cds-messaging?style=flat-square)](https://www.npmjs.com/package/@amag-ch/cds-messaging)\n[![npm downloads](https://img.shields.io/npm/dm/@amag-ch/cds-messaging.svg?style=flat-square)](https://npm-stat.com/charts.html?package=@amag-ch/cds-messaging)\n\nWrapper for communication with cap messaging service\n\n## Table of Contents\n\n- [Features](#features)\n- [Installing](#installing)\n- [Configuration](#configuration)\n- [Implementation](#implementation)\n- [License](#license)\n\n## Features\n\n- Simple configuration\n- Using placeholders in topics\n- Optional logging of whole event message (DEBUG=messaging)\n- Set 'x-correlation-id' in event header to follow events over applications\n- Managing composite configuration in combination of local or file based messaging\n- Fully integrated in cdc runtime without hard binding of services to register for events\n- Usage of event prefixes\n- Auto configuration with cds plugin feature\n- Fixes listener registration, if service name in package.json differs to service name\n\nDeprecated\n- Set 'topic' in event header (deprecated: use type and/or source instead)\n\n## Installing\n\nUsing npm:\n\n```bash\n$ npm install @amag-ch/cds-messaging\n```\n\nUsing yarn:\n\n```bash\n$ yarn add @amag-ch/cds-messaging\n```\n\n## Configuration\n\n### Default configuration\n```json\n{\n    \"cds\": {\n        \"requires\": {\n            \"queue\": {\n                \"kind\": \"persistent-outbox\"\n            },\n            \"kinds\": {\n                \"composite-messaging\": {\n                    \"impl\": \"@amag-ch/cds-messaging/composite.js\",\n                    \"format\": \"cloudevents\",\n                    \"subscribePrefix\": \"$namespace/\",\n                    \"publishPrefix\": \"$namespace/\"                    \n                },\n                \"enterprise-messaging-http\": {\n                    \"format\": \"cloudevents\",\n                    \"subscribePrefix\": \"$namespace/\",\n                    \"publishPrefix\": \"$namespace/\"\n                },\n                \"enterprise-messaging-amqp\": {\n                    \"format\": \"cloudevents\",\n                    \"subscribePrefix\": \"$namespace/\",\n                    \"publishPrefix\": \"$namespace/\",                    \n                    \"amqp\": {\n                        \"incomingSessionWindow\": 100\n                    }\n                }\n            }\n        }\n    }\n}\n```\n\n### Set or overwrite defaults\nSimple default configuration over standard messaging object in package.json\n\nAt least only the namespace is needed\n```json\n{\n    \"cds\": {\n        \"requires\": {\n            \"messaging\": {\n                \"kind\": \"enterprise-messaging-http\",\n                \"impl\": \"@amag-ch/cds-messaging/service.js\",\n                \"credentials\": {\n                    \"namespace\": \"btp/<org>-<space>/<application>\"\n                }\n            }\n        }\n    }\n}\n```\n\nThis results in following standard configuration\n```json\n{\n    \"cds\": {\n        \"requires\": {\n            \"messaging\": {\n                \"kind\": \"enterprise-messaging-http\",\n                \"impl\": \"@amag-ch/cds-messaging/service.js\",\n                \"subscribePrefix\": \"$namespace/\",\n                \"publishPrefix\": \"$namespace/\",\n                \"format\": \"cloudevents\",\n                \"credentials\": {\n                    \"namespace\": \"btp/<org>-<space>/<application>\"\n                }\n            }\n        }\n    }\n}\n```\n\n### Configure sepcial queues for own application\n\nSimpliest configuration\n```json\n{\n    \"cds\": {\n        \"requires\": {\n            \"messaging-self-publishes\": {\n                \"kind\": \"enterprise-messaging-http\"\n            }\n        }\n    }\n}\n```\n\nThis results in following standard configuration\n```json\n{\n    \"cds\": {\n        \"requires\": {\n            \"messaging-self-publishes\": {\n                \"kind\": \"enterprise-messaging-http\",\n                \"subscribePrefix\": \"$namespace/\",\n                \"publishPrefix\": \"$namespace/\",\n                \"format\": \"cloudevents\",\n                \"credentials\": {\n                    \"namespace\": \"btp/<org>-<space>/<application>\"\n                },\n                \"queue\": {\n                    \"name\": \"$namespace/self-publishes\",\n                }\n            }\n        }\n    }\n}\n```\n\nOf course, the defaults could be overwritten\n```json\n{\n    \"cds\": {\n        \"requires\": {\n            \"messaging-self-publishes\": {\n                \"kind\": \"enterprise-messaging-http\",\n                \"queue\": {\n                    \"maxDeliveredUnackedMsgsPerFlow\": \"1\"\n                }\n            }\n        }\n    }\n}\n```\n\n### Configure special queues for foreign application events\n\nSimpliest configuration\n```json\n{\n    \"cds\": {\n        \"requires\": {\n            \"messaging-foreign-system\": {\n                \"kind\": \"enterprise-messaging-http\",\n                \"subscribePrefix\": \"foreign/system/namespace/\"\n            }\n        }\n    }\n}\n```\n\nThis results in following standard configuration\n```json\n{\n    \"cds\": {\n        \"requires\": {\n            \"messaging-foreign-system\": {\n                \"kind\": \"enterprise-messaging-http\",\n                \"subscribePrefix\": \"foreign/system/namespace/\",\n                \"publishPrefix\": \"$namespace/\",\n                \"format\": \"cloudevents\",\n                \"credentials\": {\n                    \"namespace\": \"btp/<org>-<space>/<application>\"\n                },\n                \"queue\": {\n                    \"name\": \"$namespace/foreign-system\"\n                }\n            }\n        }\n    }\n}\n```\n\n### Configure messaging with multiple queues with composite procedure\n\n```json\n{\n    \"cds\": {\n        \"requires\": {\n            \"messaging\": {\n                \"kind\": \"composite-messaging\",\n                \"default\": \"messaging-default\",\n                \"credentials\": {\n                    \"namespace\": \"btp/<org>-<space>/<application>\"\n                },\n                \"routes\": {\n                    \"messaging-foreign-system\": [\n                        \"foreign-system:object/changed\",\n                        \"other/object/changed\"\n                    ]\n                }\n            },\n            \"messaging-default\": {\n                \"kind\": \"enterprise-messaging-amqp\",\n                \"[development]\": {\n                    \"kind\": \"file-based-messaging\"\n                }\n            },\n            \"messaging-foreign-system\": {\n                \"kind\": \"enterprise-messaging-http\",\n                \"subscribePrefix\": \"foreign/system/namespace/\"\n            }\n        }\n    }\n}\n```\n\n- A default service definition is required (property default). The name of the default service doesn't matter, but it shouldn't be a service for external events\n- Events are everytime emitted through the default service, except those routes to a local-messaging definition\n- Events in on handlers, which are not defined in the routes, are handled by the default service\n- If the default service is not real messaging service (e.g local or file-based), then only the default service would be created and handle all. Subscribe prefixes are still been considered.\n- Events could be prefixed with pattern [a-zA-Z_-]: to avoid naming collisions with own events in configuration\n\n## Implementation\n\n### Own application events\n```js\nconst messaging = await cds.connect.to('messaging')\nconst { buildEventFromTemplate } = require('@amag-ch/cds-messaging')\n\ncds.once('listening', () => {\n\n    /*\n    * Standard emitting\n    * Signature is same as for standard cap messaging service\n    * \n    * Full topic based on configuration is: $namespace/object/changed => cap/<space>/<application>/object/changed\n    */\n    messaging.emit('object/changed', { ID })  \n    \n    /*\n    * Emitting with replacements\n    * Usefull, if cannot fully control the input value  \n    * \n    * Following call results in event: objectwithillegalcharacters/changed\n    */    \n    messaging.emit({ template: ':1/changed', replacements: ['object-with-illegal_characters']}, { ID })\n\n    /*\n    * Emitting with replacements\n    * Usefull, if cannot fully control the input value  \n    * \n    * Following call results in event: objectwithillegalcharacters/changed\n    */    \n    messaging.emit(buildEventFromTemplate(':1/changed', ['object-with-illegal_characters']), { ID })    \n})\n\n/**\n * Topics, we are listening here are (based on subscribePrefix):\n * - $namespace/object/changed => cap/<space>/<application>/object/changed\n * - $namespace/objectwithillegalcharacters/changed => cap/<space>/<application>/objectwithillegalcharacters/changed\n */\nmessaging.on([\n    'object/changed',\n    'objectwithillegalcharacters/changed'\n], async (msg) => {\n\n    console.log(msg)\n    ...\n})\n\n```\n\n### Foreign application events\n```js\nconst messaging = await cds.connect.to('messaging')\n\n/**\n * Topic, we are listening here is (based on subscribePrefix): foreign/system/namespace/object/changed\n */\nmessaging.on('foreign-system:object/changed', async (msg) => {\n\n    console.log(msg)\n    ...\n\n    /**\n     * This results in topic (based on publishPrefix): $namespace/object/changed => cap/<space>/<application>/object/changed\n     */\n    messaging.emit('object/changed', { ID })  \n})\n\n```\n\n### Integrated in service implementations\n```js\n/**\n * Prefixes needed, to register to other unknown services\n */\nthis.on([\n    'foreign-system:object/changed',\n    'self:objectwithillegalcharacters/changed'\n], async (msg) => {\n\n    console.log(msg)\n    ...\n\n    /**\n     * Event definition in cds service needed\n     * \n     * @topic: 'object/changed'\n     * event ![object/changed] { ID: UUID }\n     */\n    this.emit('object/changed', { ID })\n\n    /**\n     * Event definition in cds service needed\n     * \n     * @topic: 'object/created'\n     * event objectCreated { ID: UUID }\n     */\n    this.emit('objectCreated', { ID })     \n})\n\n```\n\n- Annotation @topic should be used to avoid prepending of service name to the resulting event\n- Usage of template based events is not possible here\n\n## License\n\n[MIT](LICENSE)","readmeFilename":"README.md"}