@omnia/velcron 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/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/internal-do-not-import-from-here/shared/models/media/MediaPickerMedia.d.ts +63 -0
- 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/package.json +1 -1
- 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/internal-do-not-import-from-here/shared/models/{Realtime.js → activity-hub/activities/ActivityFeed.js} +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { guid } from "./Guid";
|
|
2
|
+
import { Future } from "./Future";
|
|
2
3
|
export type HttpMethods = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
|
|
3
4
|
export type HttpCacheOptions = "no-cache" | "reload" | "force-cache" | "only-if-cached";
|
|
4
5
|
export type HttpCredentials = "include" | "omit" | "same-origin";
|
|
5
6
|
export interface HttpInterceptOptions {
|
|
6
|
-
beforeRequest?: (request: HttpConfig) => HttpConfig
|
|
7
|
-
afterRequest?: <T>(response: HttpResponse<T>, request: HttpConfig) => HttpResponse<T
|
|
7
|
+
beforeRequest?: (request: HttpConfig) => HttpConfig | Future<HttpConfig> | Promise<HttpConfig>;
|
|
8
|
+
afterRequest?: <T>(response: HttpResponse<T>, request: HttpConfig) => HttpResponse<T> | Future<HttpResponse<T>> | Promise<HttpResponse<T>>;
|
|
8
9
|
}
|
|
9
10
|
export interface HttpConfig {
|
|
10
11
|
baseUrl?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OmniaToken } from "./Tokens";
|
|
2
2
|
import { guid } from "./Guid";
|
|
3
3
|
import { TenantIdentifier } from "./Tenant";
|
|
4
|
-
import { ActorId } from "./OmniaHub";
|
|
5
4
|
import { OmniaBackendRuntimes, OmniaClientRuntimes } from "./Enums";
|
|
5
|
+
import { ActorId } from "./activity-hub";
|
|
6
6
|
export interface OmniaSharedBootstrapData {
|
|
7
7
|
uiThreadId: guid;
|
|
8
8
|
workerThreadId: guid;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { ChannelId } from "../channels/ActivityChannel";
|
|
2
|
+
import { ActivityRenderer, ActivityRendererReference } from "./ActivityRenderer";
|
|
3
|
+
import { ActorActivityCategory } from "./ActorActivity";
|
|
4
|
+
import { TemporaryFileId } from "../fileupload";
|
|
5
|
+
import { ActivityReactionType } from "../social/Reaction";
|
|
6
|
+
import { Id } from "../../Id";
|
|
7
|
+
import { guid } from "../../Guid";
|
|
8
|
+
import { DynamicState } from "../../DynamicState";
|
|
9
|
+
import { ActorId } from "../actors";
|
|
10
|
+
export type ActivityId = Id<string, "ActivityId">;
|
|
11
|
+
export declare function ActivityId(id: string): ActivityId;
|
|
12
|
+
export type ActivityTypeId = Id<guid, "ActivityTypeId">;
|
|
13
|
+
export declare function ActivityTypeId(id: guid): ActivityTypeId;
|
|
14
|
+
export interface Activity<TRenderState = DynamicState> extends ActivityBase {
|
|
15
|
+
id: ActivityId;
|
|
16
|
+
state: TRenderState;
|
|
17
|
+
renderer: ActivityRenderer | ActivityRendererReference;
|
|
18
|
+
createdBy: ActorId;
|
|
19
|
+
}
|
|
20
|
+
export interface ActivityWithJson extends ActivityBase {
|
|
21
|
+
id: ActivityId;
|
|
22
|
+
createdBy: ActorId;
|
|
23
|
+
stateJson: string;
|
|
24
|
+
rendererJson: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ActivityBase {
|
|
27
|
+
channelId: ChannelId;
|
|
28
|
+
activityTypeId: ActivityTypeId;
|
|
29
|
+
targeting: Array<Array<SourceRelatedHubProperty>>;
|
|
30
|
+
notificationTeaser: NotificationTeaser;
|
|
31
|
+
expires?: Date;
|
|
32
|
+
createdAt: Date;
|
|
33
|
+
reactionCount: {
|
|
34
|
+
[K in ActivityReactionType]: number;
|
|
35
|
+
};
|
|
36
|
+
commentCount: number;
|
|
37
|
+
}
|
|
38
|
+
export interface ActivityRenderState<TActivityState = DynamicState, TIdentityState = DynamicState> {
|
|
39
|
+
activity: TActivityState & {
|
|
40
|
+
showDetails: boolean;
|
|
41
|
+
id: ActivityId;
|
|
42
|
+
};
|
|
43
|
+
identity: TIdentityState;
|
|
44
|
+
}
|
|
45
|
+
export interface SourceRelatedHubProperty extends HubProperty {
|
|
46
|
+
propertySourceId: guid;
|
|
47
|
+
}
|
|
48
|
+
export interface HubProperty {
|
|
49
|
+
name: string;
|
|
50
|
+
values: Array<string>;
|
|
51
|
+
}
|
|
52
|
+
export interface NotificationTeaser {
|
|
53
|
+
title: string;
|
|
54
|
+
description: string;
|
|
55
|
+
url: string;
|
|
56
|
+
}
|
|
57
|
+
export declare enum PrivacyLevel {
|
|
58
|
+
Private = 0,
|
|
59
|
+
Public = 1,
|
|
60
|
+
Followers = 2
|
|
61
|
+
}
|
|
62
|
+
export interface CreateActivityRequest {
|
|
63
|
+
channelId: ChannelId;
|
|
64
|
+
activityTypeId: ActivityTypeId;
|
|
65
|
+
createdBy: ActorId;
|
|
66
|
+
stateJson: string;
|
|
67
|
+
rendererJson: string;
|
|
68
|
+
notificationTeaser: NotificationTeaser;
|
|
69
|
+
targeting: Array<Array<HubProperty>>;
|
|
70
|
+
addToActors?: Record<ActorId, PrivacyLevel>;
|
|
71
|
+
category: ActorActivityCategory;
|
|
72
|
+
mentions?: Array<ActorId>;
|
|
73
|
+
activityIdPlaceHolder?: TemporaryFileId;
|
|
74
|
+
expires?: Date;
|
|
75
|
+
createdAt?: Date;
|
|
76
|
+
}
|
|
77
|
+
export interface CreateActivityResult {
|
|
78
|
+
id: ActivityId;
|
|
79
|
+
createdAt: Date;
|
|
80
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrivacyLevel = void 0;
|
|
4
|
+
exports.ActivityId = ActivityId;
|
|
5
|
+
exports.ActivityTypeId = ActivityTypeId;
|
|
6
|
+
function ActivityId(id) {
|
|
7
|
+
return id;
|
|
8
|
+
}
|
|
9
|
+
function ActivityTypeId(id) {
|
|
10
|
+
return id;
|
|
11
|
+
}
|
|
12
|
+
var PrivacyLevel;
|
|
13
|
+
(function (PrivacyLevel) {
|
|
14
|
+
PrivacyLevel[PrivacyLevel["Private"] = 0] = "Private";
|
|
15
|
+
PrivacyLevel[PrivacyLevel["Public"] = 1] = "Public";
|
|
16
|
+
PrivacyLevel[PrivacyLevel["Followers"] = 2] = "Followers";
|
|
17
|
+
})(PrivacyLevel || (exports.PrivacyLevel = PrivacyLevel = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DynamicState } from "../../DynamicState";
|
|
2
|
+
import { ActivityTypeId } from "./Activity";
|
|
3
|
+
import { ActivityRenderer, ActivityRendererReference } from "./ActivityRenderer";
|
|
4
|
+
export declare abstract class FeedActivityDefinition<TFeedItemState> implements ActivityDefinition<TFeedItemState> {
|
|
5
|
+
state: TFeedItemState;
|
|
6
|
+
renderer: ActivityRenderer | ActivityRendererReference;
|
|
7
|
+
activityTypeId: ActivityTypeId;
|
|
8
|
+
constructor(state: TFeedItemState, renderer: ActivityRenderer | ActivityRendererReference, activityTypeId: ActivityTypeId);
|
|
9
|
+
}
|
|
10
|
+
export declare abstract class ChatActivityDefinition<TFeedItemState> implements ActivityDefinition<TFeedItemState> {
|
|
11
|
+
state: TFeedItemState;
|
|
12
|
+
renderer: ActivityRenderer | ActivityRendererReference;
|
|
13
|
+
activityTypeId: ActivityTypeId;
|
|
14
|
+
constructor(state: TFeedItemState, renderer: ActivityRenderer | ActivityRendererReference, activityTypeId: ActivityTypeId);
|
|
15
|
+
}
|
|
16
|
+
export declare abstract class ActivityDefinition<TRenderState = DynamicState> {
|
|
17
|
+
state: TRenderState;
|
|
18
|
+
renderer: ActivityRenderer | ActivityRendererReference;
|
|
19
|
+
abstract activityTypeId: ActivityTypeId;
|
|
20
|
+
}
|
package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityDefinition.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActivityDefinition = exports.ChatActivityDefinition = exports.FeedActivityDefinition = void 0;
|
|
4
|
+
class FeedActivityDefinition {
|
|
5
|
+
constructor(state, renderer, activityTypeId) {
|
|
6
|
+
this.state = state;
|
|
7
|
+
this.renderer = renderer;
|
|
8
|
+
this.activityTypeId = activityTypeId;
|
|
9
|
+
this.activityTypeId = activityTypeId;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.FeedActivityDefinition = FeedActivityDefinition;
|
|
13
|
+
class ChatActivityDefinition {
|
|
14
|
+
constructor(state, renderer, activityTypeId) {
|
|
15
|
+
this.state = state;
|
|
16
|
+
this.renderer = renderer;
|
|
17
|
+
this.activityTypeId = activityTypeId;
|
|
18
|
+
this.activityTypeId = activityTypeId;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.ChatActivityDefinition = ChatActivityDefinition;
|
|
22
|
+
class ActivityDefinition {
|
|
23
|
+
}
|
|
24
|
+
exports.ActivityDefinition = ActivityDefinition;
|
package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityFeed.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ActorId } from "../actors";
|
|
2
|
+
import { Activity, ActivityId, ActivityWithJson } from "./Activity";
|
|
3
|
+
import { ActivityRenderer, ActivityRendererId } from "./ActivityRenderer";
|
|
4
|
+
import { ActivityCategoryCount, ActorActivity, ActorActivityCategory, ActorActivityWithJson, NewActivitiesByCreatorBase, RecentActorActivities } from "./ActorActivity";
|
|
5
|
+
export interface ActivityFeed extends ActivityFeedBase {
|
|
6
|
+
renderers: Record<ActivityRendererId, Array<ActivityRenderer>>;
|
|
7
|
+
actorActivities: Array<ActorActivity<object, object>>;
|
|
8
|
+
activities: Array<Activity>;
|
|
9
|
+
}
|
|
10
|
+
export interface ActivityFeedResult extends ActivityFeedBase {
|
|
11
|
+
actorActivities: Array<ActorActivityWithJson>;
|
|
12
|
+
activities: Array<ActivityWithJson>;
|
|
13
|
+
loadStateHash: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ActivityFeedBase {
|
|
16
|
+
newActivities: Array<NewActivitiesByCreatorBase>;
|
|
17
|
+
nextStartingFromId: ActivityId;
|
|
18
|
+
recentCreators: Array<RecentActorActivities>;
|
|
19
|
+
categories: Array<ActivityCategoryCount>;
|
|
20
|
+
}
|
|
21
|
+
export interface FeedQuery {
|
|
22
|
+
forActorId?: ActorId;
|
|
23
|
+
newerThenId?: ActivityId;
|
|
24
|
+
olderThenId?: ActivityId;
|
|
25
|
+
filterByCreator?: ActorId;
|
|
26
|
+
filterByCategory?: ActorActivityCategory;
|
|
27
|
+
includeRecentCreators?: number;
|
|
28
|
+
includeCategories?: boolean;
|
|
29
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ActivityHubServiceId = void 0;
|
|
4
|
-
|
|
5
|
-
const Guid_1 = require("./Guid");
|
|
6
|
-
function ActorId(id) { return id; }
|
|
4
|
+
const Guid_1 = require("../../Guid");
|
|
7
5
|
exports.ActivityHubServiceId = (0, Guid_1.guid)("92fab26a-90c4-45e2-9b5e-9bdf0e26ea14");
|
package/internal-do-not-import-from-here/shared/models/activity-hub/activities/ActivityRenderer.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FlowContent } from "../../content-flow";
|
|
2
|
+
import { guid } from "../../Guid";
|
|
3
|
+
import { Id } from "../../Id";
|
|
4
|
+
import { VelcronAppDefinition } from "../../velcron";
|
|
5
|
+
export type ActivityRendererId = Id<guid, "ActivityRendererId">;
|
|
6
|
+
export declare function ActivityRendererId(id: guid): ActivityRendererId;
|
|
7
|
+
export interface ActivityRendererReference {
|
|
8
|
+
id: ActivityRendererId;
|
|
9
|
+
version: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ActivityRendererWithJson extends ActivityRendererReference {
|
|
12
|
+
definition: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ActivityRenderer extends ActivityRendererReference {
|
|
15
|
+
definition: FlowContent | VelcronAppDefinition;
|
|
16
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ActivityRendererReference } from "./ActivityRenderer";
|
|
2
|
+
export interface ActivityRendererLoadReference extends ActivityRendererReference {
|
|
3
|
+
versionHash: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ActivityRendererLoadingReferences {
|
|
6
|
+
stateHash: string;
|
|
7
|
+
loadReferences: Array<ActivityRendererLoadReference>;
|
|
8
|
+
}
|
|
@@ -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";
|