@omnia/fx-models 8.0.546-dev → 8.0.548-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/ContextHandler.d.ts +52 -0
- package/Enums.tooling.d.ts +4 -2
- package/Enums.tooling.js +18 -0
- package/Exposes.d.ts +2 -1
- package/Exposes.js +2 -1
- package/Layout.d.ts +1 -0
- package/OmniaDocumentationUrlBuilder.d.ts +3 -0
- package/apps/App.d.ts +2 -2
- package/floweditor/FlowEditorPluginRegistration.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/aurora/stores/ComponentBlueprintStore.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/aurora/stores/ThemeStore.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/http/Http.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/HttpCommon.d.ts +3 -2
- package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/Activity.d.ts +80 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/Activity.js +17 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityDefinition.d.ts +20 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityDefinition.js +24 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityFeed.d.ts +29 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityHubServiceId.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/{OmniaHub.js → activity-hub/activities/ActivityHubServiceId.js} +1 -3
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityRenderer.d.ts +16 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityRenderer.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityRendererLoadingReferences.d.ts +8 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityRendererLoadingReferences.js +2 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivitySubscription.d.ts +16 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivitySubscription.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActorActivity.d.ts +52 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActorActivity.js +17 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/index.d.ts +8 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/activities/index.js +11 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/actors/ActivityActorIdBag.d.ts +11 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/actors/ActivityActorIdBag.js +19 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/actors/Actor.d.ts +31 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/actors/Actor.js +10 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/actors/ExternalActorId.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/actors/ExternalActorId.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/actors/index.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/actors/index.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/channels/ActivityChannel.d.ts +31 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/channels/ActivityChannel.js +13 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/channels/UpdateActivityChannelRequest.d.ts +37 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/channels/UpdateActivityChannelRequest.js +2 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/channels/index.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/channels/index.js +5 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/fileupload/Base64Image.d.ts +4 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/fileupload/Base64Image.js +2 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/fileupload/FileOwnerId.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/fileupload/FileOwnerId.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/fileupload/TemporaryFileId.d.ts +4 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/fileupload/TemporaryFileId.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/fileupload/index.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/fileupload/index.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/index.d.ts +9 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/index.js +12 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/realtime/Realtime.d.ts +28 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/realtime/Realtime.js +19 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/realtime/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/realtime/index.js +4 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/shared/ActivityHubEndpoints.d.ts +5 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/shared/ActivityHubEndpoints.js +2 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/shared/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/shared/index.js +4 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/social/EmojiReaction.d.ts +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/social/EmojiReaction.js +2 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/social/Reaction.d.ts +13 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/social/Reaction.js +12 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/social/Social.d.ts +15 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/social/Social.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/social/index.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/social/index.js +6 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/targeting/ExternalIdentityProperty.d.ts +10 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/targeting/ExternalIdentityProperty.js +19 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/targeting/HubSource.d.ts +4 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/targeting/HubSource.js +8 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/targeting/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/activity-hub/targeting/index.js +4 -0
- package/internal-do-not-import-from-here/shared/models/content-flow/FlowContent.d.ts +11 -0
- package/internal-do-not-import-from-here/shared/models/content-flow/FlowContent.js +2 -0
- package/internal-do-not-import-from-here/shared/models/content-flow/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/content-flow/index.js +4 -0
- package/internal-do-not-import-from-here/shared/models/index.d.ts +3 -2
- package/internal-do-not-import-from-here/shared/models/index.js +3 -2
- package/{shared-mobile/media-picker → internal-do-not-import-from-here/shared/models/media}/MediaPickerMedia.d.ts +32 -2
- package/internal-do-not-import-from-here/shared/models/media/MediaPickerMedia.js +41 -0
- package/internal-do-not-import-from-here/shared/models/media/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/media/index.js +4 -0
- package/internal-do-not-import-from-here/shared/models/theme/Blueprints.d.ts +4 -0
- package/internal-do-not-import-from-here/shared/models/theme/ThemeDefinition.d.ts +19 -8
- package/internal-do-not-import-from-here/shared/providers/DefineHubClientProvider.d.ts +10 -0
- package/internal-do-not-import-from-here/shared/providers/DefineHubCurrentActorProvider.d.ts +7 -0
- package/internal-do-not-import-from-here/shared/providers/DefineRealtimeProvider.d.ts +9 -0
- package/internal-do-not-import-from-here/shared/providers/index.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/services/RealtimeService.d.ts +7 -0
- package/internal-do-not-import-from-here/shared/services/index.d.ts +1 -0
- package/media-gallery/providers/MediaDialogProviderComponentProps.d.ts +1 -1
- package/media-gallery/providers/MediaDisplayProviderComponentProps.d.ts +1 -1
- package/media-picker/SharePointVideoResult.d.ts +1 -2
- package/media-picker/interfaces/IMediaPickerProviderMediaHandler.d.ts +2 -1
- package/media-picker/interfaces/types.d.ts +2 -2
- package/package.json +1 -1
- package/properties/values/MediaPropertyValue.d.ts +1 -2
- package/properties/values/TagsPropertyValue.d.ts +1 -1
- package/richtext-editor-extensions/HashTagExtension.d.ts +1 -1
- package/shared-mobile/Icon.d.ts +1 -2
- package/shared-mobile/SharedMobileEnums.d.ts +0 -31
- package/shared-mobile/SharedMobileEnums.js +1 -39
- package/shared-mobile/Tags.js +2 -0
- package/shared-mobile/identities/UserIdentity.d.ts +3 -1
- package/shared-mobile/index.d.ts +1 -0
- package/shared-mobile/index.js +1 -0
- package/shared-mobile/media-picker/MediaPickerBase64Image.d.ts +1 -1
- package/shared-mobile/media-picker/MediaPickerImageScaling.d.ts +1 -2
- package/shared-mobile/media-picker/MediaPickerProvider.d.ts +1 -2
- package/shared-mobile/media-picker/MediaPickerTransformations.d.ts +1 -1
- package/shared-mobile/media-picker/index.d.ts +0 -1
- package/shared-mobile/media-picker/index.js +1 -1
- package/shared-mobile/properties/values/ImagePropertyValue.d.ts +1 -2
- package/ux/ContextApi.d.ts +31 -0
- package/ux/ContextApi.js +2 -0
- package/ux/index.d.ts +1 -0
- package/ux/index.js +1 -0
- package/internal-do-not-import-from-here/shared/models/OmniaHub.d.ts +0 -5
- package/internal-do-not-import-from-here/shared/models/Realtime.d.ts +0 -13
- /package/{Tags.js → ContextHandler.js} +0 -0
- /package/{internal-do-not-import-from-here/shared/models/Realtime.js → OmniaDocumentationUrlBuilder.js} +0 -0
- /package/{shared-mobile/media-picker/MediaPickerMedia.js → internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityFeed.js} +0 -0
- /package/{Tags.d.ts → shared-mobile/Tags.d.ts} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ActorId } from "../actors";
|
|
2
|
+
import { Id } from "../../Id";
|
|
3
|
+
export type SubscriptionId = Id<string, "SubscriptionId">;
|
|
4
|
+
export declare function SubscriptionId(id: string): SubscriptionId;
|
|
5
|
+
export interface SubscriptionInformation extends ActorSubscription {
|
|
6
|
+
title: Record<string, string>;
|
|
7
|
+
description: Record<string, string>;
|
|
8
|
+
clientId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ActorSubscription {
|
|
11
|
+
id: SubscriptionId;
|
|
12
|
+
subscriptionOwner: ActorId;
|
|
13
|
+
}
|
|
14
|
+
export interface Subscription extends ActorSubscription {
|
|
15
|
+
subscriber: ActorId;
|
|
16
|
+
}
|
package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActorActivity.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Actor, ActorId } from "../actors";
|
|
2
|
+
import { Activity, ActivityId } from "./Activity";
|
|
3
|
+
import { ChannelId } from "../channels/ActivityChannel";
|
|
4
|
+
import { DynamicState } from "../../DynamicState";
|
|
5
|
+
export declare enum ActorActivityStatus {
|
|
6
|
+
new = 0,
|
|
7
|
+
read = 1,
|
|
8
|
+
completed = 2
|
|
9
|
+
}
|
|
10
|
+
export declare enum ActorActivityCategory {
|
|
11
|
+
none = 0,
|
|
12
|
+
important = 1,
|
|
13
|
+
todo = 2,
|
|
14
|
+
snoozed = 3,
|
|
15
|
+
bookmarked = 4
|
|
16
|
+
}
|
|
17
|
+
export interface ActivitySettings {
|
|
18
|
+
category: ActorActivityCategory;
|
|
19
|
+
social: ActivitySocialSettings;
|
|
20
|
+
}
|
|
21
|
+
export interface ActivitySocialSettings {
|
|
22
|
+
comments: boolean;
|
|
23
|
+
reactions: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface ActorActivityBase {
|
|
26
|
+
activityId: ActivityId;
|
|
27
|
+
status: ActorActivityStatus;
|
|
28
|
+
category: ActorActivityCategory;
|
|
29
|
+
}
|
|
30
|
+
export interface ActorActivity<TRenderState extends DynamicState, TState extends DynamicState> extends ActorActivityBase {
|
|
31
|
+
activity: Activity<TRenderState>;
|
|
32
|
+
state?: TState;
|
|
33
|
+
}
|
|
34
|
+
export interface ActorActivityWithJson extends ActorActivityBase {
|
|
35
|
+
stateJson: string;
|
|
36
|
+
}
|
|
37
|
+
export interface NewActivitiesByCreatorBase {
|
|
38
|
+
count: number;
|
|
39
|
+
creator: ActorId;
|
|
40
|
+
}
|
|
41
|
+
export interface NewActivitiesByActor extends NewActivitiesByCreatorBase {
|
|
42
|
+
actor: Actor;
|
|
43
|
+
channelId: ChannelId;
|
|
44
|
+
}
|
|
45
|
+
export interface ActivityCategoryCount {
|
|
46
|
+
category: ActorActivityCategory;
|
|
47
|
+
count: number;
|
|
48
|
+
}
|
|
49
|
+
export interface RecentActorActivities {
|
|
50
|
+
createdBy: ActorId;
|
|
51
|
+
activityId: ActivityId;
|
|
52
|
+
}
|
package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActorActivity.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActorActivityCategory = exports.ActorActivityStatus = void 0;
|
|
4
|
+
var ActorActivityStatus;
|
|
5
|
+
(function (ActorActivityStatus) {
|
|
6
|
+
ActorActivityStatus[ActorActivityStatus["new"] = 0] = "new";
|
|
7
|
+
ActorActivityStatus[ActorActivityStatus["read"] = 1] = "read";
|
|
8
|
+
ActorActivityStatus[ActorActivityStatus["completed"] = 2] = "completed";
|
|
9
|
+
})(ActorActivityStatus || (exports.ActorActivityStatus = ActorActivityStatus = {}));
|
|
10
|
+
var ActorActivityCategory;
|
|
11
|
+
(function (ActorActivityCategory) {
|
|
12
|
+
ActorActivityCategory[ActorActivityCategory["none"] = 0] = "none";
|
|
13
|
+
ActorActivityCategory[ActorActivityCategory["important"] = 1] = "important";
|
|
14
|
+
ActorActivityCategory[ActorActivityCategory["todo"] = 2] = "todo";
|
|
15
|
+
ActorActivityCategory[ActorActivityCategory["snoozed"] = 3] = "snoozed";
|
|
16
|
+
ActorActivityCategory[ActorActivityCategory["bookmarked"] = 4] = "bookmarked";
|
|
17
|
+
})(ActorActivityCategory || (exports.ActorActivityCategory = ActorActivityCategory = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./Activity";
|
|
2
|
+
export * from "./ActorActivity";
|
|
3
|
+
export * from "./ActivityRenderer";
|
|
4
|
+
export * from "./ActivityFeed";
|
|
5
|
+
export * from "./ActivityDefinition";
|
|
6
|
+
export * from "./ActivityRendererLoadingReferences";
|
|
7
|
+
export * from "./ActivitySubscription";
|
|
8
|
+
export * from "./ActivityHubServiceId";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Activity"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ActorActivity"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ActivityRenderer"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ActivityFeed"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ActivityDefinition"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ActivityRendererLoadingReferences"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./ActivitySubscription"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./ActivityHubServiceId"), exports);
|
package/internal-do-not-import-from-here/shared/models/activity-hub/actors/ActivityActorIdBag.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { guid } from "../../Guid";
|
|
2
|
+
declare class UserPropertyBagModel {
|
|
3
|
+
id: guid;
|
|
4
|
+
name: string;
|
|
5
|
+
constructor(id: guid, name: string);
|
|
6
|
+
}
|
|
7
|
+
export declare class ActivityActorIdBag extends UserPropertyBagModel {
|
|
8
|
+
actorId: number;
|
|
9
|
+
constructor();
|
|
10
|
+
}
|
|
11
|
+
export {};
|
package/internal-do-not-import-from-here/shared/models/activity-hub/actors/ActivityActorIdBag.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//import { OmniaService, UserPropetyBagModel } from "@omnia/mobile";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ActivityActorIdBag = void 0;
|
|
5
|
+
const Guid_1 = require("../../Guid");
|
|
6
|
+
class UserPropertyBagModel {
|
|
7
|
+
constructor(id, name) {
|
|
8
|
+
this.id = id;
|
|
9
|
+
this.name = name;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
class ActivityActorIdBag extends UserPropertyBagModel {
|
|
13
|
+
constructor() {
|
|
14
|
+
//TODO: Change to actorid when hub fx is refactored
|
|
15
|
+
super((0, Guid_1.guid)("bb000000-0000-bbbb-0000-0000000000bb"), "hubactorid");
|
|
16
|
+
this.actorId = 0;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.ActivityActorIdBag = ActivityActorIdBag;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ExternalActorId } from "./ExternalActorId";
|
|
2
|
+
import { HubProperty } from "../activities";
|
|
3
|
+
import { Base64Image } from "../fileupload";
|
|
4
|
+
import { Id } from "../../Id";
|
|
5
|
+
export type ActorId = Id<number, "ActorId">;
|
|
6
|
+
export declare function ActorId(id: number): ActorId;
|
|
7
|
+
export interface ActorWithBag<TBag> extends Actor {
|
|
8
|
+
bag: TBag;
|
|
9
|
+
}
|
|
10
|
+
export interface Actor extends ActorBase {
|
|
11
|
+
imageUrl: string;
|
|
12
|
+
name: Record<string, string>;
|
|
13
|
+
description: Record<string, string>;
|
|
14
|
+
type: ActorTypes;
|
|
15
|
+
}
|
|
16
|
+
export interface ActorBase {
|
|
17
|
+
id: ActorId;
|
|
18
|
+
externalId: ExternalActorId;
|
|
19
|
+
}
|
|
20
|
+
export declare enum ActorTypes {
|
|
21
|
+
user = 0,
|
|
22
|
+
app = 1
|
|
23
|
+
}
|
|
24
|
+
export interface UpsertAppActorRequest {
|
|
25
|
+
actorId?: ActorId;
|
|
26
|
+
externalActorId?: ExternalActorId;
|
|
27
|
+
image: Base64Image;
|
|
28
|
+
name: Record<string, string>;
|
|
29
|
+
description: Record<string, string>;
|
|
30
|
+
readPermissions: Array<Array<HubProperty>>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActorTypes = void 0;
|
|
4
|
+
exports.ActorId = ActorId;
|
|
5
|
+
function ActorId(id) { return id; }
|
|
6
|
+
var ActorTypes;
|
|
7
|
+
(function (ActorTypes) {
|
|
8
|
+
ActorTypes[ActorTypes["user"] = 0] = "user";
|
|
9
|
+
ActorTypes[ActorTypes["app"] = 1] = "app";
|
|
10
|
+
})(ActorTypes || (exports.ActorTypes = ActorTypes = {}));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./ExternalActorId"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./Actor"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ActivityActorIdBag"), exports);
|
package/internal-do-not-import-from-here/shared/models/activity-hub/channels/ActivityChannel.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { HubProperty } from "../activities/Activity";
|
|
2
|
+
import { ActorId } from "../actors";
|
|
3
|
+
import { Id } from "../../Id";
|
|
4
|
+
export type ChannelId = Id<number, "ChannelId">;
|
|
5
|
+
export declare function ChannelId(id: number): ChannelId;
|
|
6
|
+
export interface ActivityChannel {
|
|
7
|
+
id: ChannelId;
|
|
8
|
+
type: ChannelTypes;
|
|
9
|
+
name: Record<string, string>;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
admins: Array<ActorId>;
|
|
12
|
+
contributors: Array<ActorId>;
|
|
13
|
+
targeting: Array<Array<HubProperty>>;
|
|
14
|
+
}
|
|
15
|
+
export declare enum ChannelTypes {
|
|
16
|
+
feed = 0,
|
|
17
|
+
chat = 1,
|
|
18
|
+
conversation = 2
|
|
19
|
+
}
|
|
20
|
+
export interface CreateActivityChannelRequest {
|
|
21
|
+
name: Record<string, string>;
|
|
22
|
+
settingsJson: string;
|
|
23
|
+
channelType: ChannelTypes;
|
|
24
|
+
admins: Array<ActorId>;
|
|
25
|
+
contributors: Array<ActorId>;
|
|
26
|
+
targeting: Array<Array<HubProperty>>;
|
|
27
|
+
}
|
|
28
|
+
export interface CreateActivityChannelResult {
|
|
29
|
+
id: ChannelId;
|
|
30
|
+
createdAt: Date;
|
|
31
|
+
}
|
package/internal-do-not-import-from-here/shared/models/activity-hub/channels/ActivityChannel.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChannelTypes = void 0;
|
|
4
|
+
exports.ChannelId = ChannelId;
|
|
5
|
+
function ChannelId(id) {
|
|
6
|
+
return id;
|
|
7
|
+
}
|
|
8
|
+
var ChannelTypes;
|
|
9
|
+
(function (ChannelTypes) {
|
|
10
|
+
ChannelTypes[ChannelTypes["feed"] = 0] = "feed";
|
|
11
|
+
ChannelTypes[ChannelTypes["chat"] = 1] = "chat";
|
|
12
|
+
ChannelTypes[ChannelTypes["conversation"] = 2] = "conversation";
|
|
13
|
+
})(ChannelTypes || (exports.ChannelTypes = ChannelTypes = {}));
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { HubProperty } from "../activities";
|
|
2
|
+
import { ActorId } from "../actors";
|
|
3
|
+
import { ChannelId } from "./ActivityChannel";
|
|
4
|
+
export interface UpdateActivityChannelRequest {
|
|
5
|
+
/**
|
|
6
|
+
* Channel to update
|
|
7
|
+
*/
|
|
8
|
+
channelId: ChannelId;
|
|
9
|
+
/**
|
|
10
|
+
* Update or null to ignore
|
|
11
|
+
*/
|
|
12
|
+
name?: Record<string, string>;
|
|
13
|
+
/**
|
|
14
|
+
* Update or null to ignore
|
|
15
|
+
*/
|
|
16
|
+
settingsJson?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Update or null to ignore
|
|
19
|
+
*/
|
|
20
|
+
adminsToAdd?: Array<ActorId>;
|
|
21
|
+
/**
|
|
22
|
+
* Update or null to ignore
|
|
23
|
+
*/
|
|
24
|
+
adminsToDelete?: Array<ActorId>;
|
|
25
|
+
/**
|
|
26
|
+
* Update or null to ignore
|
|
27
|
+
*/
|
|
28
|
+
contributorsToAdd?: Array<ActorId>;
|
|
29
|
+
/**
|
|
30
|
+
* Update or null to ignore
|
|
31
|
+
*/
|
|
32
|
+
contributorsToDelete?: Array<ActorId>;
|
|
33
|
+
/**
|
|
34
|
+
* Update or null to ignore
|
|
35
|
+
*/
|
|
36
|
+
targeting?: Array<Array<HubProperty>>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./FileOwnerId"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./TemporaryFileId"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./Base64Image"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./shared";
|
|
2
|
+
export * from "./activities";
|
|
3
|
+
export * from "./social";
|
|
4
|
+
export * from "./actors";
|
|
5
|
+
export * from "./fileupload";
|
|
6
|
+
export * from "./targeting";
|
|
7
|
+
export * from "./actors";
|
|
8
|
+
export * from "./realtime";
|
|
9
|
+
export * from "./channels";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./shared"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./activities"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./social"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./actors"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./fileupload"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./targeting"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./actors"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./realtime"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./channels"), exports);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { guid } from "../../Guid";
|
|
2
|
+
export declare abstract class RealtimeChannel {
|
|
3
|
+
/**
|
|
4
|
+
* Construct a unique channel id that can be targeted to users who are set to be in that channel on the client
|
|
5
|
+
* @returns id
|
|
6
|
+
*/
|
|
7
|
+
abstract getId(): string;
|
|
8
|
+
}
|
|
9
|
+
export declare abstract class RealtimeData<TRealtimeChannel extends RealtimeChannel, TRealtimeData> {
|
|
10
|
+
private _channel;
|
|
11
|
+
private _value;
|
|
12
|
+
get channel(): TRealtimeChannel;
|
|
13
|
+
get value(): TRealtimeData;
|
|
14
|
+
abstract getId(): guid;
|
|
15
|
+
constructor(channel: TRealtimeChannel, value?: TRealtimeData);
|
|
16
|
+
}
|
|
17
|
+
export type RealtimeChannelUpdateTypes = "activate" | "deactivate";
|
|
18
|
+
export interface RealtimeChannelUpdateMessage extends RealtimChannelMessage {
|
|
19
|
+
threadId: guid;
|
|
20
|
+
type: RealtimeChannelUpdateTypes;
|
|
21
|
+
}
|
|
22
|
+
export interface RealtimeSendMessage extends RealtimChannelMessage {
|
|
23
|
+
dataId: guid;
|
|
24
|
+
data: any;
|
|
25
|
+
}
|
|
26
|
+
export interface RealtimChannelMessage {
|
|
27
|
+
channelId: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RealtimeData = exports.RealtimeChannel = void 0;
|
|
4
|
+
class RealtimeChannel {
|
|
5
|
+
}
|
|
6
|
+
exports.RealtimeChannel = RealtimeChannel;
|
|
7
|
+
class RealtimeData {
|
|
8
|
+
get channel() {
|
|
9
|
+
return this._channel;
|
|
10
|
+
}
|
|
11
|
+
get value() {
|
|
12
|
+
return this._value;
|
|
13
|
+
}
|
|
14
|
+
constructor(channel, value) {
|
|
15
|
+
this._channel = channel;
|
|
16
|
+
this._value = value;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.RealtimeData = RealtimeData;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Realtime";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ActivityHubEndpoints";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ActorId } from "../actors";
|
|
2
|
+
export interface HubReaction {
|
|
3
|
+
createdBy: ActorId;
|
|
4
|
+
uniqueTypeName: string;
|
|
5
|
+
}
|
|
6
|
+
export declare enum ActivityReactionType {
|
|
7
|
+
Like = "1",
|
|
8
|
+
Love = "2",
|
|
9
|
+
Laugh = "3",
|
|
10
|
+
Surprised = "4",
|
|
11
|
+
Sad = "5",
|
|
12
|
+
Angry = "6"
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActivityReactionType = void 0;
|
|
4
|
+
var ActivityReactionType;
|
|
5
|
+
(function (ActivityReactionType) {
|
|
6
|
+
ActivityReactionType["Like"] = "1";
|
|
7
|
+
ActivityReactionType["Love"] = "2";
|
|
8
|
+
ActivityReactionType["Laugh"] = "3";
|
|
9
|
+
ActivityReactionType["Surprised"] = "4";
|
|
10
|
+
ActivityReactionType["Sad"] = "5";
|
|
11
|
+
ActivityReactionType["Angry"] = "6";
|
|
12
|
+
})(ActivityReactionType || (exports.ActivityReactionType = ActivityReactionType = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Id } from "../../Id";
|
|
2
|
+
import { ActorId } from "../actors";
|
|
3
|
+
import { HubReaction } from "./Reaction";
|
|
4
|
+
export type CommentId = Id<string, "CommentId">;
|
|
5
|
+
export declare function CommentId(id: string): CommentId;
|
|
6
|
+
export type HubComment = {
|
|
7
|
+
createdBy: ActorId;
|
|
8
|
+
id: CommentId;
|
|
9
|
+
inReplyToId?: CommentId;
|
|
10
|
+
rendererJson: string;
|
|
11
|
+
mentions: ActorId[];
|
|
12
|
+
reactions: HubReaction[];
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
modifiedAt: Date;
|
|
15
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Reaction"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./EmojiReaction"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./Social"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ExternalActorId } from "../actors/ExternalActorId";
|
|
2
|
+
import { SourceRelatedHubProperty } from "../activities";
|
|
3
|
+
import { guid } from "../../Guid";
|
|
4
|
+
export declare class HubExternalIdentityProperty implements SourceRelatedHubProperty {
|
|
5
|
+
private externalIdentityId;
|
|
6
|
+
constructor(externalIdentityId: ExternalActorId);
|
|
7
|
+
get propertySourceId(): guid;
|
|
8
|
+
get name(): string;
|
|
9
|
+
get values(): string[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HubExternalIdentityProperty = void 0;
|
|
4
|
+
const HubSource_1 = require("./HubSource");
|
|
5
|
+
class HubExternalIdentityProperty {
|
|
6
|
+
constructor(externalIdentityId) {
|
|
7
|
+
this.externalIdentityId = externalIdentityId;
|
|
8
|
+
}
|
|
9
|
+
get propertySourceId() {
|
|
10
|
+
return HubSource_1.HubSource.Id;
|
|
11
|
+
}
|
|
12
|
+
get name() {
|
|
13
|
+
return "identity";
|
|
14
|
+
}
|
|
15
|
+
get values() {
|
|
16
|
+
return [this.externalIdentityId.toString()];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.HubExternalIdentityProperty = HubExternalIdentityProperty;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HubSource = void 0;
|
|
4
|
+
const Guid_1 = require("../../Guid");
|
|
5
|
+
class HubSource {
|
|
6
|
+
static { this.Id = (0, Guid_1.guid)("eb4fde5f-4f3e-4c70-9893-3d9e048fda0c"); }
|
|
7
|
+
}
|
|
8
|
+
exports.HubSource = HubSource;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ExternalIdentityProperty";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FlowContent";
|