@jomkv/keybud-v2-contracts 1.0.5 → 2.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.
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -2
- package/dist/index.js.map +1 -1
- package/dist/ws/auth/event-names.js +4 -1
- package/dist/ws/auth/event-names.js.map +1 -1
- package/dist/ws/auth/events.js +2 -1
- package/dist/ws/auth/index.js +19 -3
- package/dist/ws/auth/index.js.map +1 -1
- package/dist/ws/auth/payloads.js +2 -1
- package/dist/ws/messages/event-names.js +4 -1
- package/dist/ws/messages/event-names.js.map +1 -1
- package/dist/ws/messages/events.js +2 -1
- package/dist/ws/messages/index.js +19 -3
- package/dist/ws/messages/index.js.map +1 -1
- package/dist/ws/messages/payloads.js +2 -1
- package/dist/ws/messages copy/event-names.d.ts +6 -0
- package/dist/ws/messages copy/event-names.d.ts.map +1 -0
- package/dist/ws/messages copy/event-names.js +8 -0
- package/dist/ws/messages copy/event-names.js.map +1 -0
- package/dist/ws/messages copy/events.d.ts +9 -0
- package/dist/ws/messages copy/events.d.ts.map +1 -0
- package/dist/ws/messages copy/events.js +3 -0
- package/dist/ws/messages copy/events.js.map +1 -0
- package/dist/ws/messages copy/index.d.ts +4 -0
- package/dist/ws/messages copy/index.d.ts.map +1 -0
- package/dist/ws/messages copy/index.js +20 -0
- package/dist/ws/messages copy/index.js.map +1 -0
- package/dist/ws/messages copy/payloads.d.ts +12 -0
- package/dist/ws/messages copy/payloads.d.ts.map +1 -0
- package/dist/ws/messages copy/payloads.js +3 -0
- package/dist/ws/messages copy/payloads.js.map +1 -0
- package/dist/ws/notification/event-names.d.ts +6 -0
- package/dist/ws/notification/event-names.d.ts.map +1 -0
- package/dist/ws/notification/event-names.js +8 -0
- package/dist/ws/notification/event-names.js.map +1 -0
- package/dist/ws/notification/events.d.ts +9 -0
- package/dist/ws/notification/events.d.ts.map +1 -0
- package/dist/ws/notification/events.js +3 -0
- package/dist/ws/notification/events.js.map +1 -0
- package/dist/ws/notification/index.d.ts +4 -0
- package/dist/ws/notification/index.d.ts.map +1 -0
- package/dist/ws/notification/index.js +20 -0
- package/dist/ws/notification/index.js.map +1 -0
- package/dist/ws/notification/payloads.d.ts +19 -0
- package/dist/ws/notification/payloads.d.ts.map +1 -0
- package/dist/ws/notification/payloads.js +3 -0
- package/dist/ws/notification/payloads.js.map +1 -0
- package/package.json +1 -3
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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("./ws/auth/index"), exports);
|
|
18
|
+
__exportStar(require("./ws/messages/index"), exports);
|
|
19
|
+
__exportStar(require("./ws/notification/index"), exports);
|
|
3
20
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,sDAAoC;AACpC,0DAAwC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AUTH_EVENT_NAMES = void 0;
|
|
4
|
+
exports.AUTH_EVENT_NAMES = {
|
|
2
5
|
SUBSCRIBE: "auth:subscribe",
|
|
3
6
|
SUBSCRIBE_SUCCESS: "auth:subscribe_success",
|
|
4
7
|
COMPLETE: "auth:complete", // client completes login
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-names.js","sourceRoot":"","sources":["../../../src/ws/auth/event-names.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"event-names.js","sourceRoot":"","sources":["../../../src/ws/auth/event-names.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,SAAS,EAAE,gBAAgB;IAC3B,iBAAiB,EAAE,wBAAwB;IAC3C,QAAQ,EAAE,eAAe,EAAE,yBAAyB;CAC5C,CAAC"}
|
package/dist/ws/auth/events.js
CHANGED
package/dist/ws/auth/index.js
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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("./event-names"), exports);
|
|
18
|
+
__exportStar(require("./events"), exports);
|
|
19
|
+
__exportStar(require("./payloads"), exports);
|
|
4
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ws/auth/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ws/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,2CAAyB;AACzB,6CAA2B"}
|
package/dist/ws/auth/payloads.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-names.js","sourceRoot":"","sources":["../../../src/ws/messages/event-names.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"event-names.js","sourceRoot":"","sources":["../../../src/ws/messages/event-names.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG;IACjC,SAAS,EAAE,mBAAmB;IAC9B,WAAW,EAAE,aAAa;CAClB,CAAC"}
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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("./event-names"), exports);
|
|
18
|
+
__exportStar(require("./events"), exports);
|
|
19
|
+
__exportStar(require("./payloads"), exports);
|
|
4
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ws/messages/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ws/messages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,2CAAyB;AACzB,6CAA2B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const MESSAGE_EVENT_NAMES: {
|
|
2
|
+
readonly SUBSCRIBE: "message:subscribe";
|
|
3
|
+
readonly NEW_MESSAGE: "message:new";
|
|
4
|
+
};
|
|
5
|
+
export type MessageEventName = (typeof MESSAGE_EVENT_NAMES)[keyof typeof MESSAGE_EVENT_NAMES];
|
|
6
|
+
//# sourceMappingURL=event-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-names.d.ts","sourceRoot":"","sources":["../../../src/ws/messages copy/event-names.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-names.js","sourceRoot":"","sources":["../../../src/ws/messages copy/event-names.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG;IACjC,SAAS,EAAE,mBAAmB;IAC9B,WAAW,EAAE,aAAa;CAClB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MESSAGE_EVENT_NAMES } from "./event-names";
|
|
2
|
+
import type { MessageSubscribePayload, NewMessagePayload } from "./payloads";
|
|
3
|
+
export interface MessageClientToServerEvents {
|
|
4
|
+
[MESSAGE_EVENT_NAMES.SUBSCRIBE]: (payload: MessageSubscribePayload) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface MessageServerToClientEvents {
|
|
7
|
+
[MESSAGE_EVENT_NAMES.NEW_MESSAGE]: (payload: NewMessagePayload) => void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/ws/messages copy/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE7E,MAAM,WAAW,2BAA2B;IAC1C,CAAC,mBAAmB,CAAC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,uBAAuB,KAAK,IAAI,CAAC;CAC7E;AAED,MAAM,WAAW,2BAA2B;IAC1C,CAAC,mBAAmB,CAAC,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,IAAI,CAAC;CACzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/ws/messages copy/events.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ws/messages copy/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./event-names"), exports);
|
|
18
|
+
__exportStar(require("./events"), exports);
|
|
19
|
+
__exportStar(require("./payloads"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ws/messages copy/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,2CAAyB;AACzB,6CAA2B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface NewMessagePayload {
|
|
2
|
+
id: number;
|
|
3
|
+
senderId: number;
|
|
4
|
+
conversationId: number;
|
|
5
|
+
content: string;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
readAt?: Date;
|
|
8
|
+
}
|
|
9
|
+
export interface MessageSubscribePayload {
|
|
10
|
+
userId: number;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=payloads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../src/ws/messages copy/payloads.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,MAAM,CAAC,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payloads.js","sourceRoot":"","sources":["../../../src/ws/messages copy/payloads.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const NOTIFICATION_EVENT_NAMES: {
|
|
2
|
+
readonly SUBSCRIBE: "notification:subscribe";
|
|
3
|
+
readonly NEW_NOTIFICATION: "notification:new";
|
|
4
|
+
};
|
|
5
|
+
export type NotificationEventName = (typeof NOTIFICATION_EVENT_NAMES)[keyof typeof NOTIFICATION_EVENT_NAMES];
|
|
6
|
+
//# sourceMappingURL=event-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-names.d.ts","sourceRoot":"","sources":["../../../src/ws/notification/event-names.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAC/B,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NOTIFICATION_EVENT_NAMES = void 0;
|
|
4
|
+
exports.NOTIFICATION_EVENT_NAMES = {
|
|
5
|
+
SUBSCRIBE: "notification:subscribe",
|
|
6
|
+
NEW_NOTIFICATION: "notification:new",
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=event-names.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-names.js","sourceRoot":"","sources":["../../../src/ws/notification/event-names.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG;IACtC,SAAS,EAAE,wBAAwB;IACnC,gBAAgB,EAAE,kBAAkB;CAC5B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { NOTIFICATION_EVENT_NAMES } from "./event-names";
|
|
2
|
+
import type { NotificationSubscribePayload, NewNotificationPayload } from "./payloads";
|
|
3
|
+
export interface NotificationClientToServerEvents {
|
|
4
|
+
[NOTIFICATION_EVENT_NAMES.SUBSCRIBE]: (payload: NotificationSubscribePayload) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface NotificationServerToClientEvents {
|
|
7
|
+
[NOTIFICATION_EVENT_NAMES.NEW_NOTIFICATION]: (payload: NewNotificationPayload) => void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/ws/notification/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,KAAK,EACV,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,gCAAgC;IAC/C,CAAC,wBAAwB,CAAC,SAAS,CAAC,EAAE,CACpC,OAAO,EAAE,4BAA4B,KAClC,IAAI,CAAC;CACX;AAED,MAAM,WAAW,gCAAgC;IAC/C,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,EAAE,CAC3C,OAAO,EAAE,sBAAsB,KAC5B,IAAI,CAAC;CACX"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/ws/notification/events.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ws/notification/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./event-names"), exports);
|
|
18
|
+
__exportStar(require("./events"), exports);
|
|
19
|
+
__exportStar(require("./payloads"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ws/notification/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,2CAAyB;AACzB,6CAA2B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface NewNotificationPayload {
|
|
2
|
+
recipientId: number;
|
|
3
|
+
status?: {
|
|
4
|
+
id: number;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
};
|
|
8
|
+
sender?: {
|
|
9
|
+
userId: number;
|
|
10
|
+
username: string;
|
|
11
|
+
bio?: string;
|
|
12
|
+
};
|
|
13
|
+
type: string;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
}
|
|
16
|
+
export interface NotificationSubscribePayload {
|
|
17
|
+
userId: number;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=payloads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../src/ws/notification/payloads.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,MAAM,CAAC,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payloads.js","sourceRoot":"","sources":["../../../src/ws/notification/payloads.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jomkv/keybud-v2-contracts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Shared TypeScript contracts for KeyBud V2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"keybud",
|
|
@@ -18,14 +18,12 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"author": "Jom Karlo Verzosa",
|
|
21
|
-
"type": "module",
|
|
22
21
|
"main": "./dist/index.js",
|
|
23
22
|
"types": "./dist/index.d.ts",
|
|
24
23
|
"exports": {
|
|
25
24
|
".": {
|
|
26
25
|
"types": "./dist/index.d.ts",
|
|
27
26
|
"import": "./dist/index.js",
|
|
28
|
-
"default": "./dist/index.js",
|
|
29
27
|
"require": "./dist/index.js"
|
|
30
28
|
}
|
|
31
29
|
},
|