@omnia/fx-models 8.0.43-dev → 8.0.44-dev
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/internal-do-not-import-from-here/shared/models/hub/TempSocialReactions.d.ts +13 -0
- package/internal-do-not-import-from-here/shared/models/hub/TempSocialReactions.js +20 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/hub/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Guid } from "../Guid";
|
|
2
|
+
import { RealtimeChannel, RealtimeData } from "../Realtime";
|
|
3
|
+
export declare class SocialRealtimeChannel extends RealtimeChannel {
|
|
4
|
+
getId(): string;
|
|
5
|
+
}
|
|
6
|
+
export interface SocialRealtimeMessage {
|
|
7
|
+
reactionCount: number;
|
|
8
|
+
commentCount: number;
|
|
9
|
+
}
|
|
10
|
+
export declare class SocialRealtimeData extends RealtimeData<SocialRealtimeChannel, SocialRealtimeMessage> {
|
|
11
|
+
constructor(channel: SocialRealtimeChannel);
|
|
12
|
+
getId(): Guid;
|
|
13
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SocialRealtimeData = exports.SocialRealtimeChannel = void 0;
|
|
4
|
+
const Guid_1 = require("../Guid");
|
|
5
|
+
const Realtime_1 = require("../Realtime");
|
|
6
|
+
class SocialRealtimeChannel extends Realtime_1.RealtimeChannel {
|
|
7
|
+
getId() {
|
|
8
|
+
return "social";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.SocialRealtimeChannel = SocialRealtimeChannel;
|
|
12
|
+
class SocialRealtimeData extends Realtime_1.RealtimeData {
|
|
13
|
+
constructor(channel) {
|
|
14
|
+
super(channel);
|
|
15
|
+
}
|
|
16
|
+
getId() {
|
|
17
|
+
return new Guid_1.Guid("445350a8-4565-4a94-ba01-a05dd2cccca6");
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.SocialRealtimeData = SocialRealtimeData;
|
|
@@ -25,6 +25,8 @@ export interface ActivityBase {
|
|
|
25
25
|
notificationTeaser: NotificationTeaser;
|
|
26
26
|
expires?: Date;
|
|
27
27
|
createdAt: Date;
|
|
28
|
+
reactionCount?: number;
|
|
29
|
+
commentCount?: number;
|
|
28
30
|
}
|
|
29
31
|
export interface ActivityRenderState<TActivityState = DynamicState, TIdentityState = DynamicState> {
|
|
30
32
|
activity: TActivityState;
|
|
@@ -5,3 +5,4 @@ tslib_1.__exportStar(require("./activities"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./social"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./ExternalIdentityId"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./fileupload"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./TempSocialReactions"), exports);
|