@requ1emz/events 1.0.0

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.
@@ -0,0 +1,7 @@
1
+ export declare const FAMILY_EVENTS: {
2
+ readonly MEMBER_ADD: "family.member.add";
3
+ };
4
+ export interface FamilyMemberAddEvent {
5
+ familyId: string;
6
+ userId: string;
7
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FAMILY_EVENTS = void 0;
4
+ exports.FAMILY_EVENTS = {
5
+ MEMBER_ADD: "family.member.add",
6
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./family";
2
+ export * from "./notification";
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./family"), exports);
18
+ __exportStar(require("./notification"), exports);
@@ -0,0 +1,6 @@
1
+ export declare const NOTIFICATION_EVENTS: {
2
+ readonly ACCEPTED: "notification.accepted";
3
+ };
4
+ export interface NotificationAcceptedEvent {
5
+ payload: Record<string, unknown>;
6
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NOTIFICATION_EVENTS = void 0;
4
+ exports.NOTIFICATION_EVENTS = {
5
+ ACCEPTED: "notification.accepted",
6
+ };
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@requ1emz/events",
3
+ "version": "1.0.0",
4
+ "description": "Shared RabbitMQ events for Family Budget microservice ecosystem",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "scripts": {
14
+ "build": "tsc -p tsconfig.build.json",
15
+ "format": "prettier --write \"src/**/*.ts\""
16
+ },
17
+ "devDependencies": {
18
+ "@types/node": "^25.5.0",
19
+ "prettier": "^3.8.1",
20
+ "typescript": "^5.9.3"
21
+ }
22
+ }