@volontariapp/messaging 1.0.4 → 1.1.0-snap-4fcec4b

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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Event queue pusher added
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies []:
12
+ - @volontariapp/database@1.15.0
13
+
3
14
  ## 1.0.4
4
15
 
5
16
  ### Patch Changes
@@ -14,4 +14,5 @@ export interface EventRegistry {
14
14
  [EventMessagingType.EVENT_TAG_LINKED]: EventChangedPayload<IEventTagLinkedPayload>;
15
15
  }
16
16
  export * from './event/payloads.js';
17
+ export * from './utils.js';
17
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,WAAW,EACX,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,kBAAkB;;;;;CAErB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE9F,MAAM,WAAW,aAAa;IAC5B,CAAC,kBAAkB,CAAC,aAAa,CAAC,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAC;IACvE,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC,mBAAmB,CAAC,CAAC;IACnF,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAC;IACnE,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,sBAAsB,CAAC,CAAC;CACpF;AAED,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,WAAW,EACX,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,kBAAkB;;;;;CAErB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE9F,MAAM,WAAW,aAAa;IAC5B,CAAC,kBAAkB,CAAC,aAAa,CAAC,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAC;IACvE,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC,mBAAmB,CAAC,CAAC;IACnF,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAC;IACnE,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,sBAAsB,CAAC,CAAC;CACpF;AAED,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC"}
@@ -3,4 +3,5 @@ export const EventMessagingType = {
3
3
  ...EventEventMessagingType,
4
4
  };
5
5
  export * from './event/payloads.js';
6
+ export * from './utils.js';
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AASpF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,uBAAuB;CAClB,CAAC;AAWX,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AASpF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,uBAAuB;CAClB,CAAC;AAWX,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { ServiceType } from '@volontariapp/shared';
2
+ export interface RedisEventMessage<T = unknown> {
3
+ id: string;
4
+ type: string;
5
+ emitter: string;
6
+ traceId?: string;
7
+ version: number;
8
+ payload: {
9
+ before?: T;
10
+ after: T;
11
+ };
12
+ createdAt: string;
13
+ }
14
+ export declare function getEventStreamName(service: ServiceType | string): string;
15
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/events/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAKxD,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,OAAO;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE;QACP,MAAM,CAAC,EAAE,CAAC,CAAC;QACX,KAAK,EAAE,CAAC,CAAC;KACV,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;CACnB;AAMD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,CAExE"}
@@ -0,0 +1,4 @@
1
+ export function getEventStreamName(service) {
2
+ return `stream:${service}`;
3
+ }
4
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/events/utils.ts"],"names":[],"mappings":"AAsBA,MAAM,UAAU,kBAAkB,CAAC,OAA6B;IAC9D,OAAO,UAAU,OAAO,EAAE,CAAC;AAC7B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volontariapp/messaging",
3
- "version": "1.0.4",
3
+ "version": "1.1.0-snap-4fcec4b",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -37,6 +37,6 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@volontariapp/contracts": "4.0.9",
40
- "@volontariapp/database": "1.14.0"
40
+ "@volontariapp/database": "1.15.0-snap-4fcec4b"
41
41
  }
42
42
  }