UNPKG

acelga-bus

Version:

An extensible typescript message bus with support for middlewares

263 lines (261 loc) 6.38 kB
export const eventstoreResponse = { entries: [{ event: { eventId: '84741430-1430-1430-1430-153684741430', eventType: 'EventA', eventNumber: 1, data: { hola: ':D:', }, metaData: '{}', streamId: 'test', isJson: true, isMetaData: true, isLinkMetaData: false, positionEventNumber: 1, positionStreamId: 'test', title: '1@test', id: 'http://localhost:2113/streams/test/1', updated: '2018-09-13T14:03:35.091912Z', author: { name: 'EventStore', }, summary: 'test', links: [{ uri: 'https://localhost:2113/streams/test/1', relation: 'edit', }, { uri: 'http://localhost:2113/streams/test/1', relation: 'alternate', }, { uri: 'http://localhost:2113/subscriptions/test/test-subs/ack/84741430-1430-1430-1430-153684741430', relation: 'ack', }, { uri: 'http://localhost:2113/subscriptions/test/test-subs/nack/84741430-1430-1430-1430-153684741430', relation: 'nack', }], }, }, { event: { eventId: '84739125-9125-9125-9125-153684739125', eventType: 'EventB', eventNumber: 0, data: { hola: ':D:', }, metaData: '{}', streamId: 'test', isJson: true, isMetaData: true, isLinkMetaData: false, positionEventNumber: 0, positionStreamId: 'test', title: '0@test', id: 'http://localhost:2113/streams/test/0', updated: '2018-09-13T14:03:34.296854Z', author: { name: 'EventStore', }, summary: 'test', links: [{ uri: 'https://localhost:2113/streams/test/0', relation: 'edit', }, { uri: 'http://localhost:2113/streams/test/0', relation: 'alternate', }, { uri: 'http://localhost:2113/subscriptions/test/test-subs/ack/84739125-9125-9125-9125-153684739125', relation: 'ack', }, { uri: 'http://localhost:2113/subscriptions/test/test-subs/nack/84739125-9125-9125-9125-153684739125', relation: 'nack', }], }, }], }; export const wrongEntries = { entries: [{ event: { eventId: '84741430-1430-1430-1430-153684741430', eventType: '', eventNumber: 1, data: { hola: ':D:', }, metaData: '{}', streamId: 'test', isJson: true, isMetaData: true, isLinkMetaData: false, positionEventNumber: 1, positionStreamId: 'test', title: '1@test', id: 'http://localhost:2113/streams/test/1', updated: '2018-09-13T14:03:35.091912Z', author: { name: 'EventStore', }, summary: 'test', links: [{ uri: 'https://localhost:2113/streams/test/1', relation: 'edit', }, { uri: 'http://localhost:2113/streams/test/1', relation: 'alternate', }, { uri: 'http://localhost:2113/subscriptions/test/test-subs/ack/84741430-1430-1430-1430-153684741430', relation: 'ack', }, { uri: 'http://localhost:2113/subscriptions/test/test-subs/nack/84741430-1430-1430-1430-153684741430', relation: 'nack', }], }, }, { event: { eventId: '84741430-1430-1430-1430-153684741430', eventType: 'test', eventNumber: 1, data: { hola: ':D:', }, metaData: '{}', streamId: 'test', isJson: true, isMetaData: true, isLinkMetaData: false, positionEventNumber: 1, positionStreamId: 'test', title: '1@test', id: 'http://localhost:2113/streams/test/1', updated: '2018-09-13T14:03:35.091912Z', author: { name: 'EventStore', }, summary: 'test', links: [{ uri: 'https://localhost:2113/streams/test/1', relation: 'edit', }, { uri: 'http://localhost:2113/streams/test/1', relation: 'alternate', }, { uri: 'http://localhost:2113/subscriptions/test/test-subs/ack/84741430-1430-1430-1430-153684741430', relation: 'ack', }, { uri: '', relation: 'nack', }], }, }, { event: { eventId: '84741430-1430-1430-1430-153684741430', eventType: 'test', eventNumber: 1, data: { hola: ':D:', }, metaData: '{}', streamId: '', isJson: true, isMetaData: true, isLinkMetaData: false, positionEventNumber: 1, positionStreamId: 'test', title: '1@test', id: 'http://localhost:2113/streams/test/1', updated: '2018-09-13T14:03:35.091912Z', author: { name: 'EventStore', }, summary: 'test', links: [{ uri: 'https://localhost:2113/streams/test/1', relation: 'edit', }, { uri: 'http://localhost:2113/streams/test/1', relation: 'alternate', }, { uri: 'http://localhost:2113/subscriptions/test/test-subs/ack/84741430-1430-1430-1430-153684741430', relation: 'ack', }, { uri: 'http://localhost:2113/subscriptions/test/test-subs/nack/84741430-1430-1430-1430-153684741430', relation: 'nack', }], }, }, { event: { eventId: '', eventType: 'test', eventNumber: 1, data: { hola: ':D:', }, metaData: '{}', streamId: 'test', isJson: true, isMetaData: true, isLinkMetaData: false, positionEventNumber: 1, positionStreamId: 'test', title: '1@test', id: 'http://localhost:2113/streams/test/1', updated: '2018-09-13T14:03:35.091912Z', author: { name: 'EventStore', }, summary: 'test', links: [{ uri: 'https://localhost:2113/streams/test/1', relation: 'edit', }, { uri: 'http://localhost:2113/streams/test/1', relation: 'alternate', }, { uri: 'http://localhost:2113/subscriptions/test/test-subs/ack/84741430-1430-1430-1430-153684741430', relation: 'ack', }, { uri: 'http://localhost:2113/subscriptions/test/test-subs/nack/84741430-1430-1430-1430-153684741430', relation: 'nack', }], }, }, { event: { eventId: '84741430-1430-1430-1430-153684741430', eventType: 'test', eventNumber: 1, data: { hola: ':D:', }, metaData: '{}', streamId: 'test', isJson: true, isMetaData: true, isLinkMetaData: false, positionEventNumber: 1, positionStreamId: 'test', title: '1@test', id: 'http://localhost:2113/streams/test/1', updated: '2018-09-13T14:03:35.091912Z', author: { name: 'EventStore', }, summary: 'test', links: [{ uri: 'https://localhost:2113/streams/test/1', relation: 'edit', }, { uri: 'http://localhost:2113/streams/test/1', relation: 'alternate', }, { uri: 'http://localhost:2113/subscriptions/test/test-subs/ack/84741430-1430-1430-1430-153684741430', relation: 'ack', }, { uri: '', relation: 'nack', }], }, }, { event: null, }, { }], };